/* A retains the approved dark glass workspace. B and C share light content,
   with independent navigation and density rules below. */
.workspace-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #b9e6ff30;
}
.workspace-label { margin-right: auto; color: #c1ddec; font-size: 12px; }
.workspace-tools label { display: flex; align-items: center; gap: 10px; }
.workspace-tools select { width: auto; min-width: 205px; min-height: 36px; padding: 6px 10px; }
.theme-status { font-size: 11px; color: #cce7f7; }
html[data-theme="A"] { color-scheme: dark; }

/* B and C use navy text on light frosted surfaces. */
html:is([data-theme="B"], [data-theme="C"]) { color-scheme: light; }
html:is([data-theme="B"], [data-theme="C"]) body {
  color: #102b47;
  background: linear-gradient(110deg, #dbeef9e6, #e7f5fccc 55%, #b9d8ed99),
              url('/assets/mountains.png') center / cover fixed;
}
html:is([data-theme="B"], [data-theme="C"]) .glass {
  color: #102b47;
  background: linear-gradient(120deg, #ffffffeb, #eef8ffda);
  border-color: #ffffffd9;
  box-shadow: inset 0 1px #fff, 0 8px 26px #163c5d13;
}
html:is([data-theme="B"], [data-theme="C"]) :is(input, select, textarea) {
  color: #102b47;
  background: #f8fcfff0;
  border-color: #9abbd3;
}
html:is([data-theme="B"], [data-theme="C"]) :is(input, select, textarea):focus {
  background: #fff;
  outline-color: #1785df;
}
html:is([data-theme="B"], [data-theme="C"]) input::placeholder { color: #627c92; }
html:is([data-theme="B"], [data-theme="C"]) select option { color: #102b47; background: #fff; }
html:is([data-theme="B"], [data-theme="C"]) button {
  color: #123b60;
  background: #e2f0fcbd;
  border-color: #a6cbe5;
}
html:is([data-theme="B"], [data-theme="C"]) button:hover { background: #d4e9fc; }
html:is([data-theme="B"], [data-theme="C"]) button.primary { color: white; background: linear-gradient(#238efa, #1260d0); }
html:is([data-theme="B"], [data-theme="C"]) button.danger { color: #9b2532; background: #ffe9ed; border-color: #e9a8b1; }
html:is([data-theme="B"], [data-theme="C"]) a { color: #075fbb; }
html:is([data-theme="B"], [data-theme="C"]) :is(.muted, .empty-state, .activity-empty, .workspace-label, .theme-status) { color: #4c6981; }
html:is([data-theme="B"], [data-theme="C"]) .error { color: #9c3430; }
html:is([data-theme="B"], [data-theme="C"]) :is(.row, .history, .workspace-tools) { border-color: #b7cee2; }
html:is([data-theme="B"], [data-theme="C"]) .badge { color: #064f89; background: #d5eafb; border-color: #b3d6ef; }
html:is([data-theme="B"], [data-theme="C"]) .master-row { background: #f7fbffb5; border-color: #c7dceb; }
html:is([data-theme="B"], [data-theme="C"]) .metric-icon { background: #dcefff; color: #1473d7; }
html:is([data-theme="B"], [data-theme="C"]) .flow-progress span { color: #426480; border-color: #acc9df; }
html:is([data-theme="B"], [data-theme="C"]) .flow-progress span.active { color: #0a4f93; background: #d7ebff; }
html:is([data-theme="B"], [data-theme="C"]) dialog { color: #102b47; background: #f2f9fff5; border-color: #a8c9e1; }
html:is([data-theme="B"], [data-theme="C"]) .login h1 { color: #19517d; }
html:is([data-theme="B"], [data-theme="C"]) .settings-tabs button { color: #274f70; background: transparent; }
html:is([data-theme="B"], [data-theme="C"]) .settings-tabs button[aria-current="true"] { color: #075bae; background: #d4eaff; border-color: #a4cceb; }

/* B uses a compact horizontal desktop navigation and denser work lists. */
html[data-theme="B"] { --gap: 14px; }
html[data-theme="B"] main { padding: 24px; max-width: none; }
html[data-theme="B"] :is(h1, h2, p) { margin-bottom: 9px; }
html[data-theme="B"] h1 { font-size: 25px; }
html[data-theme="B"] h2 { font-size: 18px; }
html[data-theme="B"] .glass { border-radius: 11px; }
html[data-theme="B"] .row { padding: 10px 0; }
html[data-theme="B"] .master-row { padding: 12px; }
html[data-theme="B"] .metrics button { padding: 15px; }
html[data-theme="B"] .metrics strong { font-size: 27px; }
html[data-theme="B"] .settings-panel { padding: 20px; }
@media (min-width: 701px) {
  html[data-theme="B"] .shell { display: block; }
  html[data-theme="B"] .shell > nav {
    position: sticky;
    top: 0;
    height: auto;
    z-index: 30;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    padding: 9px 18px;
    overflow-x: auto;
    background: #071d37f5;
    border: 0;
    border-bottom: 1px solid #79aad744;
  }
  html[data-theme="B"] nav b { flex-shrink: 0; font-size: 17px; color: white; margin: 0 18px 0 0; }
  html[data-theme="B"] nav button {
    flex-shrink: 0;
    flex-direction: row;
    white-space: nowrap;
    color: #dbefff;
    background: transparent;
    border-color: transparent;
    font-size: 12px;
    gap: 7px;
    padding: 9px 12px;
  }
  html[data-theme="B"] nav button[aria-current="true"] { color: white; background: #1477bb; border-color: #77bded66; }
  html[data-theme="B"] nav .nav-icon { width: 16px; height: 16px; }
  html[data-theme="B"] #logout { margin: 0 0 0 auto; }
}

/* C uses a floating rounded sidebar and more generous card spacing. */
html[data-theme="C"] { --gap: 22px; }
html[data-theme="C"] .glass { border-radius: 19px; }
html[data-theme="C"] .metrics strong { color: #176fd7; }
@media (min-width: 701px) {
  html[data-theme="C"] .shell { grid-template-columns: 215px minmax(0, 1fr); gap: 0; padding: 20px; }
  html[data-theme="C"] .shell > nav {
    top: 20px;
    height: calc(100vh - 40px);
    padding: 24px 14px;
    border-radius: 20px;
    background: #f6fbffe3;
    border: 1px solid #ffffffd9;
    box-shadow: 0 12px 30px #113b6618;
    backdrop-filter: blur(22px);
  }
  html[data-theme="C"] nav b { color: #14395d; font-size: 19px; }
  html[data-theme="C"] nav button { color: #274d70; background: transparent; border-color: transparent; }
  html[data-theme="C"] nav button:hover { background: #e2effb; }
  html[data-theme="C"] nav button[aria-current="true"] { color: #075bae; background: #cce5ff; border-color: #a7cff2; box-shadow: none; }
  html[data-theme="C"] #logout { color: #4b6983; }
  html[data-theme="C"] main { padding: 12px 0 22px 24px; }
}

/* Mobile keeps reachable bottom navigation in all three designs. */
@media (max-width: 700px) {
  .workspace-tools { gap: 8px; }
  .workspace-label { display: none; }
  .workspace-tools label { flex: 1; }
  .workspace-tools select { flex: 1; min-width: 0; }
  .theme-status { width: 100%; }
  html:is([data-theme="B"], [data-theme="C"]) .mobile-brand { color: #f4faff; background: #071d37ed; }
  html:is([data-theme="B"], [data-theme="C"]) .shell > nav { background: #071d37f5; border-top: 1px solid #6da7d066; }
  html:is([data-theme="B"], [data-theme="C"]) nav button { color: #d9ebf8; background: transparent; border-color: transparent; }
  html:is([data-theme="B"], [data-theme="C"]) nav button[aria-current="true"] { color: white; background: #126abd; border-color: #72bbef66; }
  html:is([data-theme="B"], [data-theme="C"]) #logout { color: #c4dbea; }
  html[data-theme="B"] main { padding: 18px 14px 110px; }
  html[data-theme="C"] main { padding: 22px 16px 110px; }
  html[data-theme="C"] { --gap: 18px; }
}

.dashboard-grid { display: grid; gap: var(--gap); align-items: start; }
.today-panel { display: none; }
.today-panel .master-row + .master-row { margin-top: 10px; }
html[data-theme="B"] .today-panel { display: block; }
@media (min-width: 1101px) {
  html[data-theme="B"] .dashboard-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  }
  html[data-theme="B"] .performance-panel { grid-column: 1 / -1; }
  html[data-theme="C"] .dashboard-grid {
    grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr);
  }
  html[data-theme="C"] .performance-panel .master-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  html[data-theme="C"] .performance-panel .master-row strong { grid-column: 1 / -1; }
  html[data-theme="C"] .staff-workspace .today-panel { display: block; }
  html:is([data-theme="B"], [data-theme="C"]) .dashboard-grid .row {
    grid-template-columns: minmax(110px, 1.3fr) 1fr 80px auto;
  }
  html:is([data-theme="B"], [data-theme="C"]) .dashboard-grid .row > span:nth-child(2),
  html:is([data-theme="B"], [data-theme="C"]) .dashboard-grid .row > span:nth-child(4) { display: none; }
}
@media (max-width: 1100px) {
  html[data-theme="C"] .staff-workspace .today-panel { display: block; }
}
@media (max-width: 700px) {
  html[data-theme="B"] .today-panel { grid-row: 1; }
  html[data-theme="A"] .metrics { grid-template-columns: 1fr; }
  html[data-theme="A"] .metrics button { display: flex; text-align: left; padding: 12px 16px; }
  html[data-theme="A"] .metrics button > span:last-child { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 12px; }
  html[data-theme="A"] .metrics strong { margin-top: 0; }
  html[data-theme="A"] .metric-icon { margin-bottom: 0; }
}

/* Theme C — approved teal-sidebar dashboard reference. */
.c-toolbar-search, .c-notifications, .c-avatar { display: none; }
html[data-theme="C"] {
  --gap: 20px;
  --edge: #bbd5e5;
}
html[data-theme="C"] body {
  background: radial-gradient(ellipse at 25% 15%, #087783 0, #064b61 40%, #092c43 100%) fixed;
  color: #122d45;
}
html[data-theme="C"] .glass {
  background: linear-gradient(145deg, #ffffff, #f3faff);
  border: 1px solid #bdd8e8;
  border-radius: 18px;
  box-shadow: 0 4px 12px #123b5710, inset 0 1px #ffffff;
  backdrop-filter: none;
}
html[data-theme="C"] main { background: #eff8fd; }
html[data-theme="C"] .workspace-tools {
  padding: 0 0 20px;
  margin-bottom: 4px;
  border-bottom: 1px solid #c5dce9;
  gap: 14px;
}
html[data-theme="C"] .workspace-label { display: none; }
html[data-theme="C"] .c-toolbar-search {
  display: block;
  flex: 1;
  max-width: 600px;
  margin-right: auto;
}
html[data-theme="C"] .c-toolbar-search input {
  min-height: 42px;
  background: #ffffffdb;
  border: 1px solid #a8c9df;
  font-size: 14px;
}
html[data-theme="C"] .c-notifications {
  display: grid;
  place-items: center;
  position: relative;
  width: 42px;
  min-width: 42px;
  background: transparent;
  border-color: transparent;
  padding: 8px;
}
html[data-theme="C"] .notification-count {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 16px;
  border-radius: 10px;
  background: #d94747;
  color: white;
  font-size: 9px;
  line-height: 16px;
}
html[data-theme="C"] .c-avatar {
  display: grid;
  place-items: center;
  order: 4;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #087780;
  color: white;
  font-weight: 700;
}
html[data-theme="C"] .workspace-tools label { font-size: 0; }
html[data-theme="C"] .workspace-tools select { font-size: 13px; min-width: 170px; }
html[data-theme="C"] .theme-status { order: 5; flex-basis: 100%; font-size: 11px; }
html[data-theme="C"] .theme-status:empty { display: none; }
html[data-theme="C"] h1 { color: #0d253a; font-size: 32px; }
html[data-theme="C"] .metrics button { padding: 22px; gap: 16px; }
html[data-theme="C"] .metrics strong { color: #0d253a; font-size: 34px; }
html[data-theme="C"] .metric-icon { color: #075cb6; background: #dff2ff; }
html[data-theme="C"] .metrics button:nth-child(2) .metric-icon { color: #168642; background: #e1f8e9; }
html[data-theme="C"] .metrics button:nth-child(3) .metric-icon { color: #a16a13; background: #fff3df; }
html[data-theme="C"] .today-panel { display: block; }
html[data-theme="C"] .performance-panel { grid-column: 1 / -1; }
html[data-theme="C"] .today-panel .master-row {
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #d0e3ee;
}
html[data-theme="C"] .today-panel .master-row:last-child { border-bottom: 0; }
html[data-theme="C"] .today-panel .master-row p { font-size: 12px; }
html[data-theme="C"] .settings-panel,
html[data-theme="C"] dialog { box-shadow: 0 5px 20px #123b5714; }
@media (min-width: 701px) {
  html[data-theme="C"] .shell {
    grid-template-columns: 215px minmax(0, 1fr);
    max-width: 1500px;
    min-height: calc(100vh - 48px);
    margin: 24px auto;
    padding: 0;
    border: 1px solid #91bdcd;
    border-radius: 22px;
    background: #eff8fd;
    overflow: clip;
  }
  html[data-theme="C"] .shell > nav {
    top: 0;
    height: 100vh;
    padding: 30px 14px;
    border: 0;
    border-right: 1px solid #0b6676;
    border-radius: 0;
    background: linear-gradient(165deg, #035760, #033b4b 60%, #052a40);
    box-shadow: none;
  }
  html[data-theme="C"] nav b { color: white; font-size: 21px; margin-bottom: 32px; }
  html[data-theme="C"] nav button { color: #e6f7fb; border-color: transparent; font-size: 14px; }
  html[data-theme="C"] nav button:hover { background: #08778499; }
  html[data-theme="C"] nav button[aria-current="true"] {
    color: white;
    background: linear-gradient(100deg, #0796a1, #047a89);
    border-color: #46b6c255;
  }
  html[data-theme="C"] #logout { color: #c2e4eb; }
  html[data-theme="C"] main { padding: 24px; }
}
@media (min-width: 1101px) {
  html[data-theme="C"] .dashboard-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  }
  html[data-theme="C"] .performance-panel .master-row {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  html[data-theme="C"] .performance-panel .master-row strong { flex: 1; }
}
@media (min-width: 701px) and (max-width: 1548px) {
  html[data-theme="C"] .shell { margin: 20px; }
}
@media (max-width: 700px) {
  html[data-theme="C"] .shell { border-radius: 0; margin: 0; padding: 0; }
  html[data-theme="C"] .mobile-brand {
    background: linear-gradient(110deg, #03555d, #043c50);
    color: white;
    padding: 18px 16px;
  }
  html[data-theme="C"] .workspace-tools { gap: 8px; padding-bottom: 14px; }
  html[data-theme="C"] .c-toolbar-search { flex-basis: 100%; order: 5; }
  html[data-theme="C"] .workspace-tools label { flex: 1; }
  html[data-theme="C"] .workspace-tools select { min-width: 0; width: 100%; }
  html[data-theme="C"] .c-avatar { width: 36px; height: 36px; }
  html[data-theme="C"] .theme-status { order: 6; }
  html[data-theme="C"] .shell > nav {
    background: #f8fcfff5;
    border-top: 1px solid #b5d3e3;
  }
  html[data-theme="C"] nav button { color: #33586f; }
  html[data-theme="C"] nav button[aria-current="true"] { color: white; background: #067b82; border-color: #04717b; }
  html[data-theme="C"] #logout { color: #33586f; }
  html[data-theme="C"] main { padding: 18px 14px 110px; }
  html[data-theme="C"] h1 { font-size: 25px; }
  html[data-theme="C"] .metrics { gap: 9px; }
  html[data-theme="C"] .metrics button { padding: 14px 7px; font-size: 11px; gap: 8px; }
  html[data-theme="C"] .metrics strong { font-size: 29px; }
  html[data-theme="C"] .metric-icon { padding: 7px; width: fit-content; margin: 0 auto 9px; border-radius: 9px; }
  html[data-theme="C"] .today-panel { grid-row: auto; }
}
