@import "./01-tokens-and-shell.css";
@import "./02-support-and-layout.css";
@import "./03-help-and-dashboard.css";
@import "./04-chat-and-forms.css";
@import "./05-views-calendar-auth.css";
@import "./06-ui-utilities-responsive.css";

/* Minimal skin with one restrained accent color. */
:root {
  --bg-body: #ffffff;
  --bg-main: #ffffff;
  --bg-main-soft: #ffffff;
  --bg-sidebar: #ffffff;
  --bg-sidebar-2: #ffffff;
  --bg-card: #ffffff;
  --bg-card-soft: #ffffff;
  --text-main: #101010;
  --text-muted: #5f6f7f;
  --text-dim: #8a98a7;
  --line: rgba(0, 0, 0, 0.12);
  --line-strong: rgba(0, 0, 0, 0.24);
  --border: rgba(0, 0, 0, 0.16);
  --primary: #111111;
  --primary-2: #2a2a2a;
  --primary-soft: rgba(0, 0, 0, 0.08);
  --accent: #0f766e;
  --accent-rgb: 15, 118, 110;
  --success: #0f766e;
  --warning: #d97706;
  --danger: #9f3f35;
  --dashboard-hover-from: #ffffff;
  --dashboard-hover-to: #ffffff;
  --dashboard-hover-shadow: rgba(8, 37, 48, 0.14);
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --shadow-card: 0 10px 24px rgba(0, 0, 0, 0.06);
  --shadow-soft: 0 6px 16px rgba(0, 0, 0, 0.05);
  --shadow-hard: 0 22px 46px rgba(0, 0, 0, 0.18);
}

body {
  background: #ffffff !important;
}

body::before,
body::after {
  display: none !important;
}

body[data-mode="auth"],
body[data-mode="team-select"],
body[data-mode="pending"] {
  background: #ffffff !important;
}

#sidebar {
  background: #ffffff !important;
  border-right-color: rgba(15, 118, 110, 0.16) !important;
}

.sidebar-header {
  border-bottom-color: rgba(15, 118, 110, 0.14) !important;
}

.sidebar-logo {
  color: #111111 !important;
}

.nav-section {
  color: #73807d !important;
}

.nav-item {
  color: #2f3b39 !important;
}

.nav-item:hover {
  background: #edf7f6 !important;
  border-color: rgba(15, 118, 110, 0.18) !important;
  color: #0f5f59 !important;
}

#sidebar .text-sm,
#sidebar .text-dim {
  color: #4f5d5a !important;
}

#main,
#view-container {
  background: var(--bg-main) !important;
}

.card,
.auth-box,
.modal-content,
.help-drawer-panel,
.guided-tour-card,
.dashboard-hero-panel,
.dashboard-summary-card,
.dashboard-insight-card,
.dashboard-mobile-card,
.dashboard-problem-row,
.auth-pricing-card,
.auth-workflow-preview,
.auth-proof-grid > div,
.table-container {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  box-shadow: var(--shadow-card) !important;
}

.form-control,
input,
select,
textarea {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.18) !important;
}

.btn-primary,
.tab-btn.active,
.nav-item.active {
  background: #0f766e !important;
  border-color: #0f766e !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.18) !important;
}

.btn-secondary,
.btn-ghost,
.btn-soft {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.18) !important;
  color: #111111 !important;
  box-shadow: none !important;
}

.badge,
.badge-green,
.badge-yellow,
.badge-amber,
.badge-blue,
.badge-gray,
.badge-outline {
  background: #edf7f6 !important;
  border-color: rgba(15, 118, 110, 0.18) !important;
  color: #0f5f59 !important;
}

.badge-red {
  background: #a53a32 !important;
  border-color: #a53a32 !important;
  color: #ffffff !important;
}

.btn-danger {
  background: #a53a32 !important;
  background-image: none !important;
  border-color: #a53a32 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 16px rgba(165, 58, 50, 0.16) !important;
}

.btn-danger:hover {
  background: #8f312b !important;
  background-image: none !important;
  border-color: #8f312b !important;
}

.btn-danger:disabled {
  background: #fff5f4 !important;
  background-image: none !important;
  border-color: rgba(165, 58, 50, 0.24) !important;
  color: rgba(122, 43, 37, 0.58) !important;
  box-shadow: none !important;
  opacity: 0.86 !important;
}

.dashboard-grid > .card:hover,
.dashboard-overview-shell > .card.dashboard-hero-panel:hover,
.dashboard-overview-shell > .card.dashboard-critical-card:hover,
.dashboard-summary-card:hover,
.dashboard-insight-card:hover,
.dashboard-mobile-card:hover,
.stock-card:hover,
.auth-pricing-card:hover,
.onboarding-plan-choice:hover {
  background: #ffffff !important;
  border-color: rgba(15, 118, 110, 0.22) !important;
  color: var(--text-main) !important;
}

.auth-pricing-card.is-featured {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.24) !important;
}

.card,
.dashboard-grid > .card,
.dashboard-overview-shell > .card,
.dashboard-hero-panel,
.dashboard-summary-card,
.dashboard-insight-card,
.dashboard-mobile-card,
.dashboard-problem-row,
.page-hero-card,
.page-hero-stat,
.auth-pricing-card,
.onboarding-step-card,
.onboarding-step-card--plan,
.onboarding-plan-choice,
.onboarding-plan-choice.is-selected,
.table-container,
.stock-card,
.modal-content,
.auth-box,
.guided-tour-card,
.help-drawer-panel {
  background: #ffffff !important;
  background-image: none !important;
}

/* Professional refinement pass: keep the existing light/teal identity, but reduce the template feel. */
:root {
  --bg-body: #f7f9f8;
  --bg-main: #f7f9f8;
  --bg-main-soft: #f3f6f5;
  --bg-card: #ffffff;
  --text-main: #17211f;
  --text-muted: #62726f;
  --text-dim: #8b9996;
  --line: rgba(23, 33, 31, 0.1);
  --line-strong: rgba(23, 33, 31, 0.18);
  --border: rgba(23, 33, 31, 0.13);
  --primary: #0f766e;
  --primary-2: #0a5f59;
  --primary-soft: rgba(15, 118, 110, 0.075);
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --shadow-card: 0 12px 28px rgba(18, 30, 28, 0.07);
  --shadow-soft: 0 8px 18px rgba(18, 30, 28, 0.06);
  --shadow-hard: 0 24px 54px rgba(18, 30, 28, 0.18);
}

body,
body[data-mode="auth"],
body[data-mode="team-select"],
body[data-mode="pending"] {
  background: #f7f9f8 !important;
}

body[data-mode="app"] #main,
body[data-mode="app"] #view-container,
#main,
#view-container {
  background: #f7f9f8 !important;
}

#view-container {
  padding-top: 26px;
}

#topbar {
  border-bottom-color: rgba(23, 33, 31, 0.1) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.topbar-title,
.card-title,
.dashboard-hero-title,
.page-hero-title {
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.topbar-title {
  font-size: 22px;
  font-weight: 760;
  max-width: min(42vw, 520px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-sub {
  letter-spacing: 0.03em;
  text-transform: none;
  max-width: min(42vw, 520px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#sidebar {
  background: #fbfcfb !important;
  border-right-color: rgba(23, 33, 31, 0.1) !important;
}

.sidebar-logo {
  letter-spacing: 0.05em !important;
  display: block !important;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#shell-sidebar-user-name,
#shell-sidebar-team-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-section {
  margin-top: 14px;
  letter-spacing: 0.08em !important;
  color: #7f8d8a !important;
}

.nav-item {
  min-height: 42px;
  border-radius: 8px !important;
  letter-spacing: 0.035em !important;
  font-weight: 720;
}

.nav-item:hover {
  transform: none !important;
  background: #eef7f5 !important;
}

.nav-item.active {
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.16) !important;
}

.card,
.auth-box,
.modal-content,
.help-drawer-panel,
.guided-tour-card,
.dashboard-hero-panel,
.dashboard-summary-card,
.dashboard-insight-card,
.dashboard-mobile-card,
.dashboard-problem-row,
.auth-pricing-card,
.auth-workflow-preview,
.auth-proof-grid > div,
.table-container {
  border-color: rgba(23, 33, 31, 0.11) !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 24px rgba(18, 30, 28, 0.055) !important;
}

.card {
  padding: 22px;
}

.card-header {
  gap: 12px;
  margin-bottom: 14px;
}

.card-title {
  font-size: 18px;
  font-weight: 760;
  line-height: 1.2;
}

.dashboard-overview-shell {
  gap: 18px;
}

.dashboard-hero-panel {
  padding: 26px !important;
  border-top: 3px solid rgba(15, 118, 110, 0.72) !important;
}

.dashboard-hero-title {
  font-size: clamp(30px, 3.2vw, 44px) !important;
  line-height: 1.05 !important;
  font-weight: 740 !important;
}

.dashboard-hero-copy {
  max-width: 760px;
  color: #586966 !important;
  font-size: 15px;
  line-height: 1.58;
}

.dashboard-summary-grid,
.dashboard-insight-strip {
  gap: 12px;
}

.dashboard-summary-card,
.dashboard-insight-card {
  min-height: 132px;
  padding: 17px 18px !important;
  background: #fcfdfc !important;
}

.dashboard-summary-label,
.dashboard-insight-label,
.page-hero-stat-label,
label {
  letter-spacing: 0.045em !important;
  font-weight: 720 !important;
}

.dashboard-summary-value,
.page-hero-stat-value {
  font-weight: 760;
  letter-spacing: 0;
}

.dashboard-grid > .card,
.dashboard-overview-shell > .card.dashboard-hero-panel,
.dashboard-overview-shell > .card.dashboard-critical-card {
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease !important;
}

.dashboard-grid > .card:hover,
.dashboard-overview-shell > .card.dashboard-hero-panel:hover,
.dashboard-overview-shell > .card.dashboard-critical-card:hover,
.dashboard-grid > .card.no-dark-hover:hover,
.dashboard-overview-shell > .card.no-dark-hover:hover {
  transform: none !important;
  background: #ffffff !important;
  border-color: rgba(15, 118, 110, 0.2) !important;
  box-shadow: 0 12px 28px rgba(18, 30, 28, 0.075) !important;
}

.dashboard-overview-shell .card,
.dashboard-grid > .card {
  background: #ffffff !important;
  background-image: none !important;
  border-color: rgba(15, 118, 110, 0.13) !important;
}

.dashboard-hero-panel {
  background: #ffffff !important;
  background-image: none !important;
  border-top: 3px solid rgba(15, 118, 110, 0.72) !important;
}

.dashboard-summary-card,
.dashboard-insight-card,
.dashboard-today-overview,
.dashboard-today-empty,
.dashboard-today-next-panel,
.dashboard-team-spotlight,
.dashboard-team-code-block,
.dashboard-info-row,
.dashboard-problem-row {
  background: #f7fcfb !important;
  background-image: none !important;
  border-color: rgba(15, 118, 110, 0.14) !important;
}

.dashboard-insight-ok,
.dashboard-insight-warn,
.dashboard-insight-danger {
  background: #f7fcfb !important;
  background-image: none !important;
}

.dashboard-insight-ok {
  border-left: 3px solid rgba(15, 118, 110, 0.65) !important;
}

.dashboard-insight-warn {
  border-left: 3px solid rgba(176, 122, 15, 0.58) !important;
}

.dashboard-insight-danger {
  border-left: 3px solid rgba(184, 63, 42, 0.58) !important;
}

.dashboard-problem-row,
.task-template-item,
.dashboard-mobile-item,
.dash-cal-item {
  border-radius: 8px !important;
}

.dashboard-today-card {
  min-width: 0;
  height: 100% !important;
  min-height: 368px !important;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.dashboard-today-card .dashboard-scroll-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.dashboard-today-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.dashboard-today-date {
  margin-top: 4px;
  color: #61706d;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
}

.dashboard-today-link {
  flex: 0 0 auto;
  min-height: 34px;
  padding-inline: 12px !important;
}

.dashboard-calendar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.dashboard-today-overview {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  background: #f7fcfb;
  padding: 12px;
}

.dashboard-today-overview-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-today-overview-copy strong {
  color: #182422;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 760;
}

.dashboard-today-overview-copy span {
  color: #61706d;
  font-size: 13px;
  line-height: 1.35;
}

.dashboard-calendar-item {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(86px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 50px;
  text-align: left;
  color: #182422;
  font: inherit;
  box-shadow: none !important;
}

.dashboard-today-card .dash-cal-item {
  background: #ffffff !important;
  border-color: rgba(15, 118, 110, 0.13) !important;
}

.dashboard-today-card .dash-cal-item:hover {
  background: #ffffff !important;
  border-color: rgba(15, 118, 110, 0.24) !important;
}

.dashboard-today-card .dash-cal-item.tone-teal,
.dashboard-today-card .dash-cal-item.tone-blue,
.dashboard-today-card .dash-cal-item.tone-violet {
  border-left-color: rgba(15, 118, 110, 0.68) !important;
}

.dashboard-today-card .dash-cal-item.tone-amber {
  border-left-color: rgba(176, 122, 15, 0.62) !important;
}

.dashboard-calendar-time {
  color: #0f766e;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 760;
  white-space: nowrap;
}

.dashboard-calendar-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dashboard-calendar-copy strong,
.dashboard-calendar-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-calendar-copy strong {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 760;
}

.dashboard-calendar-copy small {
  color: #687774;
  font-size: 12px;
  line-height: 1.25;
}

.dashboard-calendar-more {
  border: 0;
  background: transparent;
  color: #0f766e;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 740;
  padding: 4px 2px 0;
  text-align: left;
}

.dashboard-today-empty {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  border: 1px dashed rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background: #f7fcfb;
  color: #61706d;
  padding: 18px;
}

.dashboard-today-empty-filled {
  flex: 1;
}

.dashboard-today-empty-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dashboard-today-empty strong {
  color: #182422;
  font-size: 15px;
  line-height: 1.25;
}

.dashboard-today-empty span {
  font-size: 13px;
  line-height: 1.45;
}

.dashboard-calendar-list-upcoming {
  margin-top: auto;
  flex: 0 0 auto;
}

.dashboard-today-next-panel {
  margin-top: auto;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 8px;
  background: #f7fcfb;
  padding: 10px;
}

.dashboard-today-next-title {
  margin-bottom: 8px;
  color: #61706d;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

.dashboard-today-next-panel .dashboard-calendar-item {
  background: #ffffff !important;
}

.dashboard-today-next-panel .dashboard-calendar-item + .dashboard-calendar-item {
  margin-top: 8px;
}

.dashboard-today-action-tile {
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.dashboard-today-action-tile strong {
  display: block;
  color: #182422;
  font-size: 14px;
  line-height: 1.25;
}

.dashboard-today-action-tile span {
  display: block;
  margin-top: 4px;
  color: #61706d;
  font-size: 12px;
  line-height: 1.35;
}

.dashboard-today-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.dashboard-today-footer-row {
  padding-top: 12px;
  border-top: 1px solid rgba(15, 118, 110, 0.1);
}

@media (max-width: 900px) {
  .dashboard-today-card {
    height: auto !important;
    min-height: 0 !important;
  }

  .dashboard-today-empty {
    min-height: 150px;
  }
}

.dashboard-pill,
.dashboard-qty-pill,
.badge,
.badge-green,
.badge-yellow,
.badge-amber,
.badge-blue,
.badge-gray,
.badge-outline {
  border-radius: 999px !important;
  font-weight: 720;
}

.form-control,
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  min-height: 44px;
  border-radius: 8px !important;
  border-color: rgba(23, 33, 31, 0.16) !important;
  background-color: #ffffff !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus {
  border-color: rgba(15, 118, 110, 0.52) !important;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1) !important;
}

.btn {
  min-height: 40px;
  border-radius: 8px !important;
  letter-spacing: 0.015em !important;
  text-transform: none !important;
  font-weight: 740;
}

.btn-sm {
  min-height: 32px;
  height: 32px;
  border-radius: 7px !important;
}

.btn:hover {
  transform: none !important;
}

.btn-primary,
.tab-btn.active,
.nav-item.active {
  background: #0f766e !important;
  border-color: #0f766e !important;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.16) !important;
}

.btn-secondary,
.btn-ghost,
.btn-soft {
  background: #ffffff !important;
  border-color: rgba(23, 33, 31, 0.14) !important;
  color: #17211f !important;
}

.btn-secondary:hover,
.btn-ghost:hover,
.btn-soft:hover {
  border-color: rgba(15, 118, 110, 0.28) !important;
  background: #f8fbfa !important;
}

.table-container {
  border-radius: 10px !important;
}

.table-container thead th {
  background: #f2f5f4 !important;
  color: #62726f !important;
  letter-spacing: 0.055em !important;
}

.table-container tbody tr:hover {
  background: #f8fbfa !important;
}

.landing-site {
  background: #f7f9f8 !important;
}

.landing-nav {
  min-height: 66px;
  border-bottom-color: rgba(23, 33, 31, 0.1);
  background: rgba(255, 255, 255, 0.94) !important;
}

.landing-logo {
  letter-spacing: 0.055em;
}

.landing-nav-links a,
.landing-login-btn {
  letter-spacing: 0.035em;
  text-transform: none;
}

.landing-hero,
.landing-section,
.landing-image-band {
  width: min(1120px, calc(100% - 48px));
}

.landing-hero {
  grid-template-columns: minmax(320px, 0.88fr) minmax(460px, 1.12fr);
  gap: clamp(36px, 6vw, 78px);
}

.landing-hero h1,
.landing-section h2,
.landing-image-copy h2 {
  color: #17211f;
  font-weight: 660;
  letter-spacing: 0;
}

.landing-hero h1 {
  max-width: 650px;
  font-size: clamp(36px, 3.8vw, 52px);
  line-height: 1.08;
}

.landing-hero p,
.landing-section p {
  color: #5d6c69;
}

.landing-work-panel,
.landing-image-layout,
.landing-solution-card,
.landing-module-list,
.landing-comparison-table,
.landing-phone-preview,
.landing-feature-card,
.landing-proof-grid > div,
.landing-faq-item,
.auth-pricing-card {
  border-radius: 10px !important;
  border-color: rgba(23, 33, 31, 0.11) !important;
  box-shadow: 0 10px 24px rgba(18, 30, 28, 0.055) !important;
}

.landing-work-panel {
  border-top: 3px solid rgba(15, 118, 110, 0.72) !important;
}

.landing-work-list > div {
  grid-template-columns: 86px minmax(0, 1fr) auto;
  border-bottom-color: rgba(23, 33, 31, 0.09);
}

.landing-work-list span,
.landing-work-list em,
.landing-work-head span,
.landing-work-bottom span,
.landing-image-copy span {
  font-weight: 720;
  letter-spacing: 0.02em;
}

.landing-work-bottom > div,
.landing-image-layout > div,
.landing-phone-card {
  border-radius: 8px !important;
  border-color: rgba(23, 33, 31, 0.1) !important;
}

.landing-image-layout {
  overflow: hidden;
}

.landing-feature-card,
.landing-solution-card,
.landing-proof-grid > div,
.landing-faq-item {
  background: #ffffff !important;
}

.landing-solution-card {
  border-top: 3px solid rgba(15, 118, 110, 0.68) !important;
}

.landing-feature-card h3,
.landing-step-card h3,
.landing-solution-card h3,
.landing-proof-grid strong,
.landing-faq-item summary {
  color: #193f3b !important;
}

.landing-module-row,
.landing-comparison-row {
  border-top-color: rgba(23, 33, 31, 0.09);
}

.landing-comparison-head {
  background: #193f3b !important;
}

.landing-flow-list {
  border-left-color: rgba(15, 118, 110, 0.2);
}

.landing-flow-step::before {
  box-shadow: 0 0 0 5px #f7f9f8;
}

.landing-auth-page .auth-box,
.auth-box {
  border-radius: 10px !important;
}

@media (max-width: 900px) {
  #view-container {
    padding-top: 16px;
  }

  .card {
    padding: 18px;
  }

  .dashboard-hero-panel {
    padding: 20px !important;
  }

  .landing-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px 18px;
  }

  .landing-nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .landing-hero,
  .landing-image-band,
  .landing-split-section,
  .landing-deep-section,
  .landing-mobile-section,
  .landing-flow-section,
  .landing-auth-section {
    width: min(100% - 36px, 640px) !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
  }

  .landing-hero {
    min-height: auto;
    padding-top: 48px;
  }

  .landing-hero h1 {
    max-width: 12ch;
    font-size: clamp(38px, 11vw, 52px);
  }

  .landing-work-panel {
    width: 100%;
    padding: 24px !important;
  }

  .landing-work-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .landing-work-bottom,
  .landing-image-layout,
  .landing-proof-grid,
  .landing-feature-grid,
  .landing-solution-grid,
  .landing-pricing-grid,
  .auth-pricing-strip {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .landing-image-layout > div {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid rgba(23, 33, 31, 0.1);
  }

  .landing-image-layout > div:first-child {
    border-top: 0;
  }

  .landing-comparison-row,
  .landing-module-row,
  .landing-flow-step {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .landing-phone-preview {
    justify-self: start;
  }
}

/* Dropdowns: remove the grey gradient from select fields app-wide. */
select:not([multiple]):not([size]),
.form-control:is(select),
body[data-view="tasks"] .task-filter-grid select.form-control,
body[data-view="jobs_dispatch"] .task-filter-grid select.form-control,
.cal-event-modal select,
body.compact-layout .cal-event-modal select,
body.compact-layout select[style*="min-width:200px"] {
  color: #566966 !important;
  -webkit-text-fill-color: #566966 !important;
  border-color: rgba(15, 118, 110, 0.18) !important;
  background-color: #ffffff !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5L7 7l5.5-5.5' fill='none' stroke='%230f766e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 14px 9px !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
}

select:not([multiple]):not([size]):hover,
.form-control:is(select):hover,
body[data-view="tasks"] .task-filter-grid select.form-control:hover,
body[data-view="jobs_dispatch"] .task-filter-grid select.form-control:hover,
.cal-event-modal select:hover {
  border-color: rgba(15, 118, 110, 0.28) !important;
  background-color: #fbfdfc !important;
}

select:not([multiple]):not([size]):focus,
.form-control:is(select):focus,
body[data-view="tasks"] .task-filter-grid select.form-control:focus,
body[data-view="jobs_dispatch"] .task-filter-grid select.form-control:focus,
.cal-event-modal select:focus {
  color: #17211f !important;
  -webkit-text-fill-color: #17211f !important;
  border-color: rgba(15, 118, 110, 0.5) !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1) !important;
}

.cal-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cal-picker-head .card-title {
  margin: 0;
}

.year-item.is-current-year {
  border-color: rgba(15, 118, 110, 0.28);
  color: #0f5f59;
  background: #f4fbf9;
}

.year-item.active.is-current-year {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

/* App-wide color cleanup: replace the neutral grey wash with the Stockdoo white/teal system. */
:root {
  --bg-body: #fbfdfc;
  --bg-main: #fbfdfc;
  --bg-main-soft: #f3faf8;
  --bg-card-soft: #f7fcfb;
  --bg-input: #ffffff;
  --text-muted: #60736f;
  --text-dim: #81918d;
  --line: rgba(15, 118, 110, 0.11);
  --line-strong: rgba(15, 118, 110, 0.2);
  --border: rgba(15, 118, 110, 0.14);
  --warning: #d97706;
  --danger: #9f3f35;
}

html,
body,
body[data-mode="app"],
body[data-mode="auth"],
body[data-mode="team-select"],
body[data-mode="pending"],
body[data-mode="app"] #main,
body[data-mode="app"] #view-container,
#main,
#view-container,
.auth-container.landing-site,
.landing-site {
  background: #fbfdfc !important;
  background-image: none !important;
}

#topbar,
.landing-nav {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(15, 118, 110, 0.11) !important;
}

#sidebar {
  background: #ffffff !important;
  border-right-color: rgba(15, 118, 110, 0.12) !important;
}

.card,
.page-hero-card,
.page-hero-stat,
.dashboard-summary-card,
.dashboard-insight-card,
.dashboard-mobile-card,
.dashboard-problem-row,
.task-card,
.task-filter-card,
.task-template-item,
.forecast-item,
.stock-card,
.stock-item-header,
.stock-body,
.support-filter-card,
.support-compose-card,
.support-side-card,
.support-focus-card,
.support-thread-block,
.onboarding-step-card,
.onboarding-step-card--plan,
.modal-content,
.auth-box,
.table-container,
.landing-work-panel,
.landing-feature-card,
.landing-solution-card,
.landing-proof-grid > div,
.landing-faq-item {
  background: #ffffff !important;
  background-image: none !important;
  border-color: rgba(15, 118, 110, 0.13) !important;
}

.card:hover,
.forecast-item:hover,
.task-template-item:hover,
.stock-card:hover {
  background: #ffffff !important;
  border-color: rgba(15, 118, 110, 0.22) !important;
}

.task-filter-card,
.stock-toolbar-card,
body[data-view="stock"] .stock-toolbar-card,
body[data-view="stock_forecast"] .stock-toolbar-card,
.quick-action-strip,
.support-filter-card,
.support-compose-card,
.notif-thread,
.year-list,
.calendar-audience-list {
  background: #ffffff !important;
  background-image: none !important;
  border-color: rgba(15, 118, 110, 0.13) !important;
}

.dashboard-summary-card,
.dashboard-insight-card,
.page-hero-stat,
.landing-work-bottom > div,
.empty-state,
.ux-form-section,
.support-thread-block,
.support-ticket-panel,
.support-check-list div,
.support-focus-card,
.calendar-audience-item,
.dash-cal-item,
.cal-cell.muted,
.cal-date,
.cal-ev,
.cal-day-item,
.year-item,
.task-meta-pill,
.forecast-meta .task-meta-pill,
.stock-open-metric,
.buy-estimator-field {
  background: #f7fcfb !important;
  background-image: none !important;
  border-color: rgba(15, 118, 110, 0.14) !important;
}

.cal-cell,
.cal-main-card,
body[data-view="calendar"] #view-container,
body[data-view="stock"] #view-container,
body[data-view="stock_forecast"] #view-container {
  background: #fbfdfc !important;
  background-image: none !important;
}

.table-container thead th {
  background: #f3faf8 !important;
  background-image: none !important;
  color: #526864 !important;
}

.table-container tbody tr:hover {
  background: #f7fcfb !important;
}

.badge,
.badge-gray,
.badge-outline,
.badge-blue,
.badge-yellow,
.badge-amber,
.dashboard-pill-neutral,
.dashboard-pill-muted,
.task-meta-pill,
.cal-time-badge.tone-gray,
.cal-ev.tone-gray {
  background: #eef8f6 !important;
  background-image: none !important;
  border-color: rgba(15, 118, 110, 0.18) !important;
  color: #0f5f59 !important;
}

.badge-red,
.dashboard-pill-critical,
.dashboard-qty-critical {
  background: #fff3f0 !important;
  border-color: rgba(159, 63, 53, 0.24) !important;
  color: #9f3f35 !important;
}

.btn-ghost,
.btn-secondary,
.btn-soft,
body[data-view="stock"] .stock-toolbar-actions .btn,
body[data-view="stock_forecast"] .stock-toolbar-actions .btn {
  background: #ffffff !important;
  background-image: none !important;
  border-color: rgba(15, 118, 110, 0.16) !important;
  color: #17211f !important;
}

.btn-ghost:hover,
.btn-secondary:hover,
.btn-soft:hover,
body[data-view="stock"] .stock-toolbar-actions .btn:hover,
body[data-view="stock_forecast"] .stock-toolbar-actions .btn:hover {
  background: #f7fcfb !important;
  border-color: rgba(15, 118, 110, 0.28) !important;
}

.btn:disabled,
.btn-secondary:disabled,
.btn-ghost:disabled,
.btn-soft:disabled {
  background: #f7fcfb !important;
  background-image: none !important;
  border-color: rgba(15, 118, 110, 0.16) !important;
  color: rgba(23, 33, 31, 0.58) !important;
  box-shadow: none !important;
  opacity: 0.72 !important;
}

.btn.btn-danger:disabled {
  background: #fff5f4 !important;
  background-image: none !important;
  border-color: rgba(165, 58, 50, 0.28) !important;
  color: rgba(122, 43, 37, 0.64) !important;
  box-shadow: none !important;
  opacity: 0.9 !important;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea,
.form-control {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-color: rgba(15, 118, 110, 0.16) !important;
}

input::placeholder,
textarea::placeholder {
  color: #8a9a96 !important;
}

.text-muted,
.text-dim,
.forecast-meta,
.stock-item-header .text-muted,
.task-template-meta,
.support-ticket-meta,
.support-ticket-preview {
  color: #60736f !important;
}

body[data-view="settings"] .text-muted,
body[data-view="team"] .text-muted,
body[data-view="policies"] .text-muted,
body[data-view="audit_log"] .text-muted,
body[data-view="integrations"] .text-muted,
body[data-view="settings"] .text-dim,
body[data-view="team"] .text-dim,
body[data-view="policies"] .text-dim,
body[data-view="audit_log"] .text-dim,
body[data-view="integrations"] .text-dim,
body[data-view="settings"] label,
body[data-view="team"] label,
body[data-view="policies"] label,
body[data-view="audit_log"] label,
body[data-view="integrations"] label,
body[data-view="settings"] summary,
body[data-view="team"] summary,
body[data-view="policies"] summary,
body[data-view="audit_log"] summary,
body[data-view="integrations"] summary {
  color: #17211f !important;
}

body[data-view="settings"] input:not([type="checkbox"]):not([type="radio"]),
body[data-view="team"] input:not([type="checkbox"]):not([type="radio"]),
body[data-view="policies"] input:not([type="checkbox"]):not([type="radio"]),
body[data-view="audit_log"] input:not([type="checkbox"]):not([type="radio"]),
body[data-view="integrations"] input:not([type="checkbox"]):not([type="radio"]),
body[data-view="settings"] select,
body[data-view="team"] select,
body[data-view="policies"] select,
body[data-view="audit_log"] select,
body[data-view="integrations"] select,
body[data-view="settings"] textarea,
body[data-view="team"] textarea,
body[data-view="policies"] textarea,
body[data-view="audit_log"] textarea,
body[data-view="integrations"] textarea,
body[data-view="settings"] .form-control,
body[data-view="team"] .form-control,
body[data-view="policies"] .form-control,
body[data-view="audit_log"] .form-control,
body[data-view="integrations"] .form-control {
  color: #17211f !important;
  -webkit-text-fill-color: #17211f !important;
}

body[data-view="settings"] input::placeholder,
body[data-view="team"] input::placeholder,
body[data-view="policies"] input::placeholder,
body[data-view="audit_log"] input::placeholder,
body[data-view="integrations"] input::placeholder,
body[data-view="settings"] textarea::placeholder,
body[data-view="team"] textarea::placeholder,
body[data-view="policies"] textarea::placeholder,
body[data-view="audit_log"] textarea::placeholder,
body[data-view="integrations"] textarea::placeholder {
  color: #17211f !important;
  opacity: 1;
}

body[data-view="settings"] .badge-gray,
body[data-view="team"] .badge-gray,
body[data-view="policies"] .badge-gray,
body[data-view="audit_log"] .badge-gray,
body[data-view="integrations"] .badge-gray,
body[data-view="settings"] .badge-blue,
body[data-view="team"] .badge-blue,
body[data-view="policies"] .badge-blue,
body[data-view="audit_log"] .badge-blue,
body[data-view="integrations"] .badge-blue,
body[data-view="settings"] .badge-outline,
body[data-view="team"] .badge-outline,
body[data-view="policies"] .badge-outline,
body[data-view="audit_log"] .badge-outline,
body[data-view="integrations"] .badge-outline {
  background: #ffffff !important;
  background-image: none !important;
  border-color: rgba(15, 118, 110, 0.2) !important;
  color: #17211f !important;
}

.cal-dot.tone-gray {
  background: #0f766e !important;
}

.cal-day-item.tone-gray {
  border-left-color: #0f766e !important;
}

/* Zähler für ungelesene Chat-Nachrichten (Seitenleiste, Chat-Liste, Cleaner-Leiste). */
.chat-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: auto;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  flex: 0 0 auto;
}
.chat-nav-btn .chat-unread-badge { align-self: center; }
.cleaner-nav-btn .chat-unread-badge { margin-left: 6px; }

/* Orts-Auswahl beim Anlegen von Artikeln: Dropdown mit Mehrfachauswahl. */
.loc-dropdown { position: relative; }
.loc-dropdown-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  padding-left: 14px;
  padding-right: 14px;
}
.loc-dropdown-summary::-webkit-details-marker { display: none; }
.loc-dropdown-summary::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 2px solid var(--accent, #0f766e);
  border-bottom: 2px solid var(--accent, #0f766e);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s ease;
}
.loc-dropdown[open] .loc-dropdown-summary::after { transform: translateY(2px) rotate(-135deg); }
.loc-dropdown-summary > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
/* Das Panel liegt im Fluss des Formulars (nicht absolut darüber): In Dialogen mit
   eigenem Scrollbereich wurde ein überstehendes Panel sonst abgeschnitten – vor allem
   unter Windows (klassische Scrollbalken, kleinere Fenster, Skalierung 125 %). */
.loc-dropdown-panel {
  position: static;
  margin-top: 6px;
  padding: 8px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}
.loc-dropdown-search { margin-bottom: 6px; }
.loc-dropdown-list { max-height: 220px; overflow-y: auto; overscroll-behavior: contain; }
.loc-dropdown-group {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 8px 4px 2px;
}
.loc-dropdown-option {
  /* Formular-Labels sind sonst GROSS + fett – hier normale Schrift wie in einem Select. */
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-main);
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 4px;
  border-radius: 8px;
  cursor: pointer;
}
.loc-dropdown-option:hover { background: rgba(var(--accent-rgb, 15, 118, 110), 0.08); }
.loc-dropdown-option[hidden] { display: none; }
.loc-dropdown-option input { width: 16px; height: 16px; flex: 0 0 auto; }
.loc-dropdown-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border, rgba(0, 0, 0, 0.12));
}

/* Support: Gesprächsverlauf (Nutzer ↔ Support) */
.support-conversation { display: flex; flex-direction: column; gap: 10px; }
.support-msg {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
  background: var(--bg-card, #fff);
  align-self: flex-start;
}
.support-msg.is-support { background: rgba(var(--accent-rgb, 15, 118, 110), 0.07); border-color: rgba(var(--accent-rgb, 15, 118, 110), 0.25); }
.support-msg.is-mine { align-self: flex-end; }
.support-msg-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.support-msg-meta strong { color: var(--text-main); }
.support-msg-text { font-size: 14px; line-height: 1.55; white-space: pre-line; word-break: break-word; color: var(--text-main); }
.support-followup-textarea { resize: vertical; min-height: 72px; }

/* Menüknopf (Handy/Tablet): gut sichtbar – grüne Fläche, weißes ☰ und "Menü".
   Vorher standen die drei Striche nebeneinander (kein flex-direction) und waren
   grau auf fast weiß, also kaum zu erkennen. */
.mobile-nav-toggle {
  width: auto;
  min-width: 44px;
  height: 42px;
  min-height: 42px;
  padding: 0 14px 0 12px;
  gap: 8px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.32);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus-visible {
  background: var(--accent-ink, #0f5f59);
  border-color: var(--accent-ink, #0f5f59);
  color: #ffffff;
}
.mobile-nav-toggle .mnt-bars,
.mobile-nav-toggle .mnt-label {
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
}
.mobile-nav-toggle .mnt-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
}
.mobile-nav-toggle .mnt-bars i {
  display: block;
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
}
.mobile-nav-toggle .mnt-label { display: inline; line-height: 1; }
@media (max-width: 340px) {
  .mobile-nav-toggle .mnt-label { display: none; }
  .mobile-nav-toggle { padding: 0 12px; }
}

/* Belegungsplan: Breite der Wohnungs-Spalte kommt aus dem Code (--bel-side),
   damit Spalte, Heute-Linie und Tageslinien immer exakt übereinander liegen. */
.belegung-side { width: var(--bel-side, 244px); min-width: var(--bel-side, 244px); }
.bel-short { display: none; }

@media (max-width: 640px) {
  .belegung-page-title { display: none; }
  .belegung-head { margin-bottom: 8px !important; }
  .belegung-actions { width: 100%; gap: 6px !important; flex-wrap: nowrap !important; }
  .belegung-actions .btn { flex: 1 1 0; min-height: 36px; height: 36px; padding: 0 8px; font-size: 12px; white-space: nowrap; }
  .bel-long { display: none; }
  .bel-short { display: inline; }

  .belegung-controls-card { padding: 8px 10px !important; margin-bottom: 8px !important; }
  .belegung-controls { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 8px; align-items: center; }
  .belegung-nav { gap: 6px; flex-wrap: nowrap; }
  .belegung-nav .btn { min-height: 36px; height: 36px; min-width: 38px; padding: 0 10px; font-size: 13px; }
  .belegung-controls .form-group { min-width: 0; margin: 0; }
  .belegung-controls .form-group label { display: none; }
  .belegung-controls .form-control { min-height: 36px; height: 36px; padding: 0 10px; font-size: 13px; }
  .belegung-start { min-width: 0; }
  .belegung-range-label { margin: 0; font-size: 12px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* Plan scrollt in sich: Tageszeile oben bleibt beim Scrollen stehen. */
  .belegung-scroll { max-height: calc(100dvh - 210px); overflow: auto; border-radius: 12px; -webkit-overflow-scrolling: touch; }
  .belegung-side { padding: 6px 8px; gap: 2px; }
  .belegung-side-head { font-size: 12px; }
  .belegung-side-name { font-size: 12.5px; line-height: 1.25; -webkit-line-clamp: 3; overflow-wrap: anywhere; hyphens: auto; }
  .belegung-side-meta { display: none; }
  .belegung-day-head { padding: 6px 0 5px; }
  .belegung-day-num { font-size: 14px; }
  .belegung-day-dow { font-size: 10px; }
  .belegung-day-head.is-today { border-radius: 6px 6px 0 0; }
  .belegung-track { min-height: 54px; }
  .belegung-bar { border-radius: 10px; padding: 0 6px; gap: 4px; font-size: 12px; border-width: 1.25px; }
  .belegung-bar-count { font-size: 11px; }
}
