:root {
  --bg:#eef2f5;
  --surface:#ffffff;
  --ink:#17202c;
  --muted:#657385;
  --line:#d7dee8;
  --soft:#f7f9fb;
  --nav:#111827;
  --teal:#0f766e;
  --teal-dark:#115e59;
  --blue:#2563eb;
  --amber:#b7791f;
  --red:#b42318;
  --green:#087443;
  --violet:#6d5bd0;
}

* { box-sizing:border-box; }
html { min-height:100%; }
body {
  margin:0;
  min-height:100%;
  font-family:Inter, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--ink);
}
a { color:var(--teal-dark); text-decoration:none; font-weight:700; }
h1,h2,h3,p { margin:0; }
h1 { font-size:clamp(26px, 3vw, 44px); line-height:1.06; letter-spacing:0; }
h2 { font-size:18px; letter-spacing:0; }
h3 { font-size:16px; letter-spacing:0; }
p { color:var(--muted); line-height:1.5; }

.app-top {
  height:64px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:0 28px 0 12px;
  background:#ffffff;
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:5;
}
.brand {
  height:42px;
  display:inline-flex;
  align-items:center;
  color:var(--ink);
}
.brand img {
  display:block;
  height:100%;
  width:auto;
  max-width:min(300px, 54vw);
  object-fit:contain;
}
.top-actions { display:flex; align-items:center; gap:14px; }
.tenant { color:var(--muted); font-size:14px; }
.language-switcher {
  position:relative;
  display:block;
}
.language-switcher-trigger {
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 10px;
  border-radius:7px;
  background:#edf2f7;
  color:var(--ink);
  cursor:pointer;
  font-weight:800;
  list-style:none;
}
.language-switcher-trigger:hover,
.language-switcher[open] .language-switcher-trigger {
  background:#dce5ee;
  color:var(--ink);
}
.language-switcher-trigger::-webkit-details-marker {
  display:none;
}
.language-switcher-trigger span {
  font-size:12px;
  line-height:1;
}
.language-switcher-trigger strong {
  font-size:12px;
}
.language-menu {
  position:absolute;
  top:42px;
  right:0;
  z-index:20;
  width:220px;
  display:grid;
  gap:4px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:8px;
  background:#ffffff;
  box-shadow:0 14px 32px rgba(17, 24, 39, .16);
}
.language-switcher:not([open]) .language-menu {
  display:none;
}
.language-menu p {
  padding:4px 8px 6px;
  font-size:12px;
  font-weight:800;
}
.language-menu a {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border-radius:7px;
  padding:9px 8px;
  color:var(--ink);
  font-size:13px;
}
.language-menu a:hover,
.language-menu a[aria-current="true"] {
  background:var(--soft);
}
.language-menu a strong {
  color:var(--muted);
  font-size:12px;
}
button,.button {
  height:38px;
  border:0;
  border-radius:7px;
  background:var(--teal);
  color:white;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
}
button:hover,.button:hover { background:var(--teal-dark); color:white; }
button.secondary,.button.secondary { background:#475467; }
button.secondary:hover,.button.secondary:hover { background:#344054; }
button.accent,.button.accent { background:#e11d48; }
button.accent:hover,.button.accent:hover { background:#be123c; }
button.ghost,.ghost { background:#edf2f7; color:var(--ink); }
button.ghost:hover,.ghost:hover { background:#dce5ee; color:var(--ink); }
button.danger { background:var(--red); }
button.danger:hover { background:#8f1d15; }
button.ghost-danger {
  background:#fff3f0;
  color:var(--red);
  border:1px solid #f4b8ae;
}
button.ghost-danger:hover {
  background:#ffe3de;
  color:#8f1d15;
}
button:disabled { opacity:.45; cursor:not-allowed; }
.secondary-link { color:var(--ink); }

input,select,textarea {
  width:100%;
  border:1px solid var(--line);
  border-radius:7px;
  padding:0 10px;
  color:var(--ink);
  background:white;
  font:inherit;
}
input,select { height:40px; }
textarea { min-height:88px; padding:10px; resize:vertical; }
label { display:grid; gap:6px; color:var(--muted); font-size:13px; font-weight:700; }
fieldset { border:1px solid var(--line); border-radius:8px; padding:12px; }
legend { color:var(--muted); font-size:13px; font-weight:800; }

.landing { width:min(1180px, calc(100% - 32px)); margin:28px auto 56px; }
.public-dashboard { width:min(1040px, calc(100% - 32px)); margin:28px auto 56px; display:grid; gap:16px; }
.public-hero {
  min-height:360px;
  display:grid;
  align-items:center;
  border:1px solid var(--line);
  border-radius:8px;
  background:#ffffff;
  padding:32px;
}
.public-hero > div { display:grid; gap:16px; max-width:720px; }
.public-hero p { font-size:18px; }
.hero-band {
  min-height:520px;
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(360px, .92fr);
  gap:34px;
  align-items:center;
  padding:40px 0;
}
.hero-copy { display:grid; gap:18px; }
.hero-copy p { max-width:640px; font-size:18px; }
.hero-actions { display:flex; gap:12px; align-items:center; }
.eyebrow { color:var(--teal-dark); font-size:12px; text-transform:uppercase; letter-spacing:.08em; font-weight:850; }
.product-preview {
  border:1px solid #cfd8e3;
  border-radius:8px;
  background:#fbfcfe;
  box-shadow:0 22px 60px rgba(17, 24, 39, .12);
  padding:18px;
}
.preview-head,.section-head,.page-head,.button-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
}
.preview-head span,.pill {
  border:1px solid var(--line);
  border-radius:999px;
  padding:5px 9px;
  color:var(--muted);
  background:white;
  font-size:12px;
  font-weight:800;
}
.preview-kpis { display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; margin:18px 0; }
.preview-kpis div,.metric,.compact-row {
  border:1px solid var(--line);
  border-radius:8px;
  padding:12px;
  background:var(--soft);
}
.preview-kpis span,.metric span,.points-badge span { color:var(--muted); display:block; font-size:12px; font-weight:750; }
.preview-kpis b,.metric strong,.points-badge strong { display:block; margin-top:4px; font-size:24px; }
.mini-heatmap { display:grid; grid-template-columns:repeat(7, 1fr); gap:8px; }
.heat { height:46px; border-radius:6px; background:#dce5ee; }
.h0 { background:#d9f3ed; } .h1 { background:#bfe8de; } .h2 { background:#dbeafe; }
.h3 { background:#fdecc8; } .h4 { background:#f9cfc9; } .h5 { background:#d9d6f6; }
.three-columns { display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; }
.three-columns article { border-top:3px solid var(--teal); padding:18px 0; }

.auth-page,.narrow { min-height:calc(100vh - 64px); display:grid; place-items:center; padding:28px; }
.auth-panel {
  width:min(440px, 100%);
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:8px;
  padding:24px;
  display:grid;
  gap:16px;
}
.form-stack { display:grid; gap:14px; }
.form-error { color:var(--red); background:#fff3f0; border:1px solid #f4b8ae; padding:10px; border-radius:7px; }

.app-shell {
  display:grid;
  grid-template-columns:232px minmax(0, 1fr);
  min-height:calc(100vh - 64px);
  transition:grid-template-columns .18s ease;
}
.app-shell.nav-collapsed {
  grid-template-columns:52px minmax(0, 1fr);
}
.side-nav {
  background:var(--nav);
  padding:18px 12px;
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
  height:calc(100vh - 64px);
  position:sticky;
  top:64px;
  overflow:hidden auto;
  align-self:start;
  transition:padding .18s ease;
}
.app-shell.nav-collapsed .side-nav {
  padding:18px 8px;
}
.nav-toggle {
  width:100%;
  height:38px;
  padding:0;
  border:1px solid #334155;
  background:#1f2937;
  color:#e5edf6;
  font-size:16px;
  margin-bottom:8px;
}
.nav-toggle:hover {
  background:#2b3a50;
}
.nav-toggle span {
  line-height:1;
}
.side-nav a {
  color:#cbd5e1;
  border-radius:7px;
  padding:11px 12px;
  font-size:14px;
  white-space:nowrap;
}
.app-shell.nav-collapsed .side-nav a {
  opacity:0;
  pointer-events:none;
}
.side-nav a.active,.side-nav a:hover { background:#243145; color:white; }
.content { width:min(1280px, calc(100% - 32px)); margin:22px auto 48px; display:grid; gap:16px; }
.content.solo { width:min(1180px, calc(100% - 32px)); margin:22px auto 48px; }
.page-head { align-items:flex-start; }
.panel,.notice {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:8px;
  padding:18px;
}
.notice { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.notice.danger { border-color:#f1aaa0; background:#fff7f5; }
.muted,.empty-state,small { color:var(--muted); }

.metric-grid { display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:12px; }
.metric small { display:block; margin-top:4px; color:var(--muted); }
.journey-row { display:grid; grid-template-columns:repeat(6, minmax(0, 1fr)); gap:10px; }
.journey-step,.journey-card {
  border:1px solid var(--line);
  border-radius:8px;
  padding:12px;
  background:var(--soft);
}
.journey-step span {
  width:26px;
  height:26px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#dce5ee;
  margin-bottom:8px;
  font-weight:850;
}
.journey-step strong {
  display:block;
  line-height:1.2;
}
.journey-step small,.journey-percent {
  display:block;
  width:100%;
  margin-top:6px;
  color:var(--muted);
}
.journey-step.todo,.journey-card.todo {
  border-color:var(--line);
  background:var(--soft);
}
.journey-step.in_progress,.journey-card.in_progress {
  border-color:#efd38a;
  background:#fff9ea;
}
.journey-step.done,.journey-card.done {
  border-color:#96d9b8;
  background:#effbf5;
}
.journey-list { display:grid; grid-template-columns:1fr; gap:12px; }

.journey-action-list {
  display:grid;
  gap:10px;
  margin-top:14px;
}
.journey-action-list.compact {
  margin-top:10px;
}
.journey-action-row {
  border:1px solid var(--line);
  border-radius:8px;
  background:#ffffff;
  padding:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.journey-action-row.todo {
  border-color:#d7dee8;
}
.journey-action-row.in_progress {
  border-color:#efd38a;
  background:#fffbf0;
}
.journey-action-row.done {
  border-color:#96d9b8;
  background:#f3fcf7;
}
.journey-action-row span {
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

.action-grid,.grid-list,.compare-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:14px; }
.action-card {
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--soft);
  padding:14px;
  display:grid;
  gap:9px;
}
.action-card > span { color:var(--teal-dark); font-size:12px; font-weight:850; }
.button-row { justify-content:flex-start; flex-wrap:wrap; }
.button-row form { display:inline-flex; }
.action-controls {
  display:grid;
  gap:10px;
}
.action-controls-primary,
.action-controls-secondary {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:flex-start;
}
.action-controls-primary {
  justify-content:flex-start;
}
.action-controls-secondary {
  justify-content:flex-end;
  position:relative;
}
.action-controls form {
  display:inline-flex;
}
.action-controls button,
.action-controls .button {
  font-family:Inter, Segoe UI, Roboto, Arial, sans-serif;
  font-size:13px;
  line-height:1;
  font-weight:800;
}
.action-controls-secondary .inline-details {
  width:fit-content;
  position:relative;
  flex:0 0 auto;
}
.action-controls-secondary .inline-details > summary.button {
  display:inline-flex;
  width:fit-content;
  min-width:0;
  height:38px;
  padding:0 14px;
  white-space:nowrap;
}
.action-controls-secondary .inline-details > p,
.action-controls-secondary .inline-details > .consultation-form {
  position:absolute;
  top:46px;
  right:0;
  z-index:10;
  width:420px;
  max-width:min(420px, calc(100vw - 48px));
  box-shadow:0 14px 32px rgba(17, 24, 39, .16);
}
.inline-form { display:inline-flex; margin-top:10px; }
.inline-details {
  display:grid;
  gap:8px;
  align-content:start;
}
.inline-details summary {
  list-style:none;
  cursor:pointer;
}
.inline-details summary::-webkit-details-marker {
  display:none;
}
.inline-details p,
.consultation-form {
  width:min(520px, 100%);
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--soft);
  padding:12px;
}
.consultation-form {
  display:grid;
  gap:10px;
}

.actions-panel {
  display:grid;
  gap:14px;
}
.tab-input {
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.action-tabs {
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  border-bottom:1px solid var(--line);
  padding-bottom:10px;
}
.action-tabs label {
  min-height:28px;
  border:0;
  border-radius:0;
  padding:0 0 8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:transparent;
  color:var(--ink);
  font-size:13px;
  font-weight:850;
  cursor:pointer;
  border-bottom:2px solid transparent;
}
.action-tabs label span {
  min-width:22px;
  height:22px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:var(--soft);
  color:var(--muted);
  font-size:12px;
}
#actions-tab-todo:checked ~ .action-tabs label[for="actions-tab-todo"],
#actions-tab-progress:checked ~ .action-tabs label[for="actions-tab-progress"],
#actions-tab-done:checked ~ .action-tabs label[for="actions-tab-done"],
#actions-tab-archived:checked ~ .action-tabs label[for="actions-tab-archived"] {
  border-bottom-color:var(--teal);
  background:transparent;
  color:var(--teal-dark);
}
.action-tab-panels {
  min-height:520px;
}
.action-tab-panel {
  display:none;
  gap:10px;
}
#actions-tab-todo:checked ~ .action-tab-panels .todo-panel,
#actions-tab-progress:checked ~ .action-tab-panels .progress-panel,
#actions-tab-done:checked ~ .action-tab-panels .done-panel,
#actions-tab-archived:checked ~ .action-tab-panels .archived-panel {
  display:grid;
}
.action-accordion {
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--soft);
  overflow:hidden;
}
.action-accordion summary {
  padding:12px 14px;
  display:grid;
  grid-template-columns:minmax(110px, .32fr) minmax(0, 1fr) auto;
  gap:12px;
  align-items:center;
  cursor:pointer;
  list-style:none;
}
.action-accordion summary::-webkit-details-marker {
  display:none;
}
.action-accordion summary span {
  color:var(--teal-dark);
  font-size:12px;
  font-weight:850;
}
.action-accordion summary strong {
  min-width:0;
}
.action-accordion summary small {
  white-space:nowrap;
}
.action-accordion[open] {
  background:#ffffff;
}
.action-detail-grid {
  border-top:1px solid var(--line);
  padding:14px;
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
}
.action-detail-grid div {
  padding:2px 0;
}
.action-detail-grid h3 {
  margin-bottom:6px;
}
.action-accordion .button-row {
  border-top:1px solid var(--line);
  padding:12px 14px 14px;
  background:#ffffff;
}
.action-accordion .action-controls {
  border-top:1px solid var(--line);
  padding:12px 14px 14px;
  background:#ffffff;
}

.slot-map { display:grid; grid-template-columns:repeat(7, minmax(120px, 1fr)); gap:8px; }
.slot-map.compact { grid-template-columns:repeat(8, minmax(90px, 1fr)); }
.slot-cell {
  min-height:74px;
  border-radius:7px;
  padding:10px;
  border:1px solid var(--line);
  display:grid;
  gap:4px;
}
.slot-cell strong { font-size:18px; }
.empty_value { background:#edf4f7; border-color:#cdd7df; }
.growth { background:#eef2ff; border-color:#c6cdfd; }
.balanced { background:#e8f8f2; border-color:#a6dcc7; }
.hot { background:#fff5da; border-color:#efd187; }
.peak_risk { background:#fff0ed; border-color:#f0aaa0; }
.prime { background:#efeefe; border-color:#c8c2f3; }
.legend { display:flex; flex-wrap:wrap; align-items:center; gap:10px; color:var(--muted); font-weight:750; }
.dot { width:12px; height:12px; border-radius:999px; display:inline-flex; border:1px solid var(--line); }
.inline-toolbar,.map-toolbar {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.view-form {
  display:flex;
  align-items:end;
}
.view-form label {
  width:168px;
}
.upload-map-form {
  display:flex;
  align-items:end;
}
.file-button {
  height:40px;
  border-radius:7px;
  background:var(--teal);
  color:white;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  white-space:nowrap;
}
.file-button:hover {
  background:var(--teal-dark);
}
.file-button input {
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

.calendar-grid {
  display:grid;
  grid-template-columns:72px repeat(7, minmax(132px, 1fr));
  gap:1px;
  overflow:auto;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--line);
  margin-top:14px;
}
.calendar-grid.compact-calendar {
  grid-template-columns:62px repeat(7, minmax(94px, 1fr));
}
.calendar-head,.calendar-time,.calendar-cell {
  background:#fff;
}
.calendar-head {
  min-height:38px;
  padding:10px 8px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:sticky;
  top:0;
  z-index:2;
  color:var(--muted);
  font-size:12px;
  font-weight:850;
  text-transform:uppercase;
}
.calendar-time-head {
  left:0;
  z-index:3;
}
.calendar-time {
  min-height:54px;
  padding:9px 8px;
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
  position:sticky;
  left:0;
  z-index:1;
  color:var(--muted);
  font-size:12px;
  font-weight:850;
}
.calendar-cell {
  min-height:72px;
  padding:4px;
  position:relative;
}
.calendar-slot {
  width:100%;
  min-height:64px;
  border:1px solid var(--line);
  border-radius:7px;
  padding:8px;
  display:grid;
  align-content:start;
  gap:3px;
  position:relative;
  overflow:visible;
}
.calendar-slot span {
  color:var(--muted);
  font-size:11px;
  font-weight:850;
}
.calendar-slot strong {
  font-size:20px;
  line-height:1;
}
.calendar-slot small {
  line-height:1.25;
}
.slot-main-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.slot-info {
  width:max-content;
  position:relative;
  margin-left:auto;
  flex:0 0 auto;
}
.slot-info summary {
  width:22px;
  height:22px;
  border:1px solid rgba(23, 32, 44, .18);
  border-radius:999px;
  display:grid;
  place-items:center;
  background:rgba(255, 255, 255, .78);
  color:var(--ink);
  font-size:12px;
  font-weight:900;
  cursor:pointer;
  list-style:none;
}
.slot-info summary::-webkit-details-marker {
  display:none;
}
.slot-info[open] summary {
  background:var(--ink);
  color:white;
}
.slot-info-box {
  position:absolute;
  left:0;
  top:28px;
  z-index:8;
  width:210px;
  display:grid;
  gap:4px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#ffffff;
  box-shadow:0 12px 30px rgba(17, 24, 39, .16);
}
.slot-info-box small {
  display:block;
  color:var(--muted);
}
.compact-calendar .calendar-slot {
  padding:7px;
}
.compact-calendar .calendar-slot strong {
  font-size:17px;
}

.board { display:grid; grid-template-columns:repeat(5, minmax(220px, 1fr)); gap:12px; align-items:start; overflow:auto; }
.board-column {
  border:1px solid var(--line);
  border-radius:8px;
  background:#f8fafc;
  padding:12px;
  display:grid;
  gap:10px;
  min-height:260px;
}
.board-column h2 { font-size:15px; }
.clean-list { margin:10px 0 0; padding-left:18px; color:var(--muted); line-height:1.7; }
.table-panel { overflow:auto; }
table { width:100%; border-collapse:collapse; min-width:920px; }
th,td { border-bottom:1px solid var(--line); padding:10px; text-align:left; vertical-align:top; font-size:14px; }
th { color:var(--muted); background:var(--soft); }
.admin-inline-form { display:flex; gap:8px; align-items:center; }
.settings-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:14px; align-items:end; }
.settings-grid.compact-form { grid-template-columns:repeat(5, minmax(0, 1fr)); }
.wide-label { grid-column:1 / -1; }
.field-stack {
  display:grid;
  gap:6px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}
.field-label {
  display:block;
}
.plan-duration-entry-row {
  display:grid;
  grid-template-columns:minmax(180px, 220px) minmax(220px, 260px);
  gap:14px;
  align-items:start;
  justify-content:start;
}
.sub-check {
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:max-content;
  max-width:100%;
  color:var(--ink);
  font-size:13px;
  font-weight:750;
  line-height:1.2;
  white-space:nowrap;
  justify-content:flex-start;
}
.sub-check input {
  width:14px !important;
  height:14px !important;
  min-width:14px;
  flex:0 0 14px;
  margin:0;
}
.plan-confirmation-panel {
  border-color:#f3a6b7;
  box-shadow:0 16px 42px rgba(190, 18, 60, .12);
}
.plan-summary-list {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  margin:14px 0;
}
.plan-summary-list div {
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--soft);
  padding:12px;
}
.plan-slot-settings {
  display:grid;
  gap:12px;
}
.plan-all-slots {
  width:max-content;
}
.plan-days-row {
  display:flex;
  flex-wrap:nowrap;
  gap:12px;
  overflow:auto;
  padding-bottom:2px;
}
.plan-days-row .check-label {
  flex:0 0 auto;
}
.plan-time-settings {
  display:grid;
  gap:10px;
  align-items:start;
  justify-items:start;
}
.plan-add-range-button {
  width:max-content;
}
.time-range-list {
  width:100%;
  display:grid;
  gap:8px;
}
.time-range-row {
  display:grid;
  grid-template-columns:auto minmax(120px, 160px) minmax(120px, 160px) 38px;
  gap:10px;
  align-items:end;
  width:max-content;
  max-width:100%;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--soft);
  padding:10px;
}
.icon-button {
  width:38px;
  padding:0;
  border-radius:999px;
  background:#edf2f7;
  color:var(--ink);
  font-size:18px;
}
.icon-button:hover {
  background:#dce5ee;
  color:var(--ink);
}
.plan-card { display:grid; gap:10px; }
.plan-card.archived { opacity:.64; }
.plan-edit-form { margin-top:10px; }
.dashboard-language-grid {
  display:grid;
  gap:12px;
}
.dashboard-language-panel {
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--soft);
  padding:0;
}
.dashboard-language-panel > summary {
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 12px;
  cursor:pointer;
  font-weight:850;
}
.dashboard-language-panel > summary strong {
  border:1px solid var(--line);
  border-radius:999px;
  padding:4px 8px;
  background:#ffffff;
  color:var(--muted);
  font-size:12px;
}
.dashboard-language-panel > .settings-grid {
  padding:12px;
  border-top:1px solid var(--line);
}
.map-init-grid { display:grid; grid-template-columns:minmax(0, 1.7fr) minmax(280px, .8fr); gap:16px; align-items:start; margin-top:14px; }
.csv-form { display:grid; gap:10px; }
.weekday-box { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:14px; }
.weekday-box label,.check-label { display:flex; align-items:center; gap:8px; color:var(--ink); }
.weekday-box input,.check-label input { width:auto; height:auto; }
.join-box,.billing-status { display:grid; grid-template-columns:repeat(2, 1fr); gap:12px; margin:0; }
dt { color:var(--muted); font-size:12px; font-weight:800; }
dd { margin:4px 0 0; font-weight:850; overflow-wrap:anywhere; }
.billing-status dd { font-size:18px; }

.member-shell .side-nav { background:#0f172a; }
.member-hero {
  background:#ffffff;
  border:1px solid var(--line);
  border-radius:8px;
  padding:22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.points-badge {
  min-width:100px;
  border:1px solid #b7ded3;
  background:#edf9f5;
  border-radius:8px;
  padding:12px;
  text-align:center;
}
.slot-list { display:grid; gap:10px; }
.member-slot {
  border:1px solid var(--line);
  border-radius:8px;
  padding:12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.member-slot span,.member-slot small { display:block; margin-top:4px; }
.member-map { grid-template-columns:repeat(4, minmax(150px, 1fr)); }
.inline-complete { display:flex; gap:8px; margin-top:8px; }

@media (max-width:1080px) {
  .hero-band,.app-shell { grid-template-columns:1fr; }
  .app-shell.nav-collapsed { grid-template-columns:52px minmax(0, 1fr); }
  .side-nav { z-index:3; flex-direction:row; overflow:auto hidden; height:auto; max-height:calc(100vh - 64px); }
  .app-shell.nav-collapsed .side-nav { flex-direction:column; overflow:hidden; }
  .metric-grid,.journey-row,.action-grid,.grid-list,.compare-grid,.three-columns,.settings-grid,.join-box,.billing-status { grid-template-columns:1fr 1fr; }
  .settings-grid.compact-form,.map-init-grid { grid-template-columns:1fr; }
  .member-map { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .board { grid-template-columns:repeat(3, minmax(220px, 1fr)); }
}

@media (max-width:700px) {
  .app-top { padding:0 14px 0 12px; }
  .top-actions { gap:8px; }
  .tenant { display:none; }
  .landing,.content,.content.solo { width:min(100% - 20px, 100%); }
  .hero-band { min-height:auto; padding:20px 0; }
  .metric-grid,.journey-row,.journey-list,.action-grid,.grid-list,.compare-grid,.three-columns,.settings-grid,.join-box,.billing-status,.preview-kpis { grid-template-columns:1fr; }
  .settings-grid.compact-form,.map-init-grid { grid-template-columns:1fr; }
  .plan-duration-entry-row { grid-template-columns:1fr; }
  .plan-summary-list { grid-template-columns:1fr; }
  .time-range-row { grid-template-columns:1fr; width:100%; }
  .member-map { grid-template-columns:1fr; }
  .action-detail-grid { grid-template-columns:1fr; }
  .action-accordion summary { grid-template-columns:1fr; }
  .page-head,.section-head,.notice,.member-hero,.member-slot,.journey-action-row { align-items:flex-start; flex-direction:column; }
  .board { grid-template-columns:1fr; }
  .auth-page { padding:16px; }
}
