:root {
  --navy: #061a36;
  --navy-2: #0b2a53;
  --blue: #087fd7;
  --blue-dark: #0567b2;
  --orange: #f26a2e;
  --dop: #b75e00;
  --green: #16835f;
  --green-soft: #eaf8f2;
  --red: #c83f4b;
  --ink: #10243e;
  --muted: #667991;
  --line: #d8e2ee;
  --surface: #edf3f9;
  --white: #fff;
  --shadow: 0 18px 45px rgba(17, 42, 77, .1);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--surface); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

.boot-screen {
  display: grid;
  min-height: 100vh;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 24px;
  color: var(--navy);
  background: var(--surface);
}

.boot-brand {
  display: grid;
  justify-items: center;
}

.boot-screen img {
  width: min(210px, 68vw);
  padding: 12px;
  background: var(--navy);
  border-radius: 7px;
}

.boot-brand span {
  margin-top: 4px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.boot-brand strong { color: var(--navy); font-size: 1.55rem; line-height: 1; letter-spacing: -.04em; }

.boot-screen strong { font-size: .92rem; }

.boot-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #c4dae9;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: bootSpin .75s linear infinite;
}

@keyframes bootSpin { to { transform: rotate(360deg); } }

button, input, select, textarea { font: inherit; }
button { letter-spacing: 0; }

.shell {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 18px;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: center;
  min-height: 184px;
  overflow: hidden;
  padding: 28px;
  color: var(--white);
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero::before {
  content: "DOKSALDO  ·  WERKWEEK  ·  OVERZICHT  ·  DOKSALDO  ·";
  position: absolute;
  z-index: -1;
  left: 0;
  bottom: -22px;
  width: max-content;
  color: rgba(255, 255, 255, .035);
  font-size: 76px;
  font-weight: 900;
  white-space: nowrap;
  animation: harborMove 28s linear infinite;
}

@keyframes harborMove {
  from { transform: translateX(0); }
  to { transform: translateX(-34%); }
}

.brand-lockup {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 3px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 7px;
  background: rgba(255, 255, 255, .04);
}

.brand-lockup strong { color: var(--white); font-size: 1.75rem; line-height: 1; letter-spacing: -.04em; }
.brand-lockup > span { color: #b9d9f0; font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.brand-lockup small { margin-top: 10px; color: #8fa9c0; font-size: .62rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }

.hero p, .heading p {
  margin: 0;
  color: #46b2f3;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1 {
  margin: 5px 0 8px;
  font-size: clamp(2.25rem, 5vw, 3.3rem);
  line-height: .95;
  letter-spacing: 0;
}

.hero > div:nth-child(2) > span { color: #d7e8fa; }

.pot-total {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 7px;
  background: rgba(255, 255, 255, .08);
}

.pot-total > span { font-size: .82rem; color: #cce0f5; }
.pot-total strong { font-size: 2.2rem; line-height: 1.05; }
.pot-total small { margin-top: 3px; color: #e3effa; }

.tabs {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 5px;
  margin: 14px 0;
  padding: 6px;
  background: rgba(237, 243, 249, .94);
  border: 1px solid rgba(216, 226, 238, .85);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

button {
  min-height: 42px;
  padding: 8px 12px;
  color: #173a61;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

button:hover { transform: translateY(-1px); border-color: #9bb8d6; box-shadow: 0 7px 16px rgba(18, 55, 92, .1); }
button:active { transform: translateY(0); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(8, 127, 215, .23); outline-offset: 2px; }

.tabs button { min-width: 0; padding-inline: 7px; font-size: .83rem; }
.tabs .active, .primary { color: var(--white); background: var(--blue); border-color: var(--blue); }
.tabs .active:hover, .primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.panel {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: panelIn .26s ease both;
}

.daily-allowances {
  margin: 0;
  padding: 12px;
  border: 1px solid #bad8eb;
  border-radius: 6px;
  background: #f4faff;
}

.daily-allowances legend {
  padding: 0 6px;
  color: #27618e;
  font-size: .76rem;
  font-weight: 900;
}

.daily-allowances > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.daily-allowances label { display: grid; gap: 6px; color: #48617a; font-size: .78rem; font-weight: 850; }

.allowance-settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.allowance-settings label { display: grid; grid-template-columns: auto 1fr; gap: 7px; align-items: center; padding: 12px; color: #314b68; background: #f8fbff; border: 1px solid var(--line); border-radius: 7px; font-size: .82rem; font-weight: 850; }
.allowance-settings input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--blue); }
.allowance-settings input:not([type="checkbox"]) { grid-column: 1 / -1; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; }
.allowance-settings label > span { display: grid; gap: 2px; }
.allowance-settings label > span small { color: var(--muted); font-size: .67rem; font-weight: 700; line-height: 1.35; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.heading h2 { margin: 4px 0 0; font-size: 1.45rem; letter-spacing: 0; }
.heading > div:last-child { display: flex; gap: 6px; }
.heading button { min-height: 36px; padding: 6px 10px; }
.heading select { width: auto; min-width: 180px; }

.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }

.day {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  gap: 8px;
  min-height: 150px;
  padding: 13px;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--line);
  border-top: 4px solid #cbd7e4;
  box-shadow: none;
}

.day span { color: var(--muted); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.day strong { font-size: 1.7rem; line-height: 1; }
.day small { color: #49647f; font-size: .74rem; font-weight: 750; line-height: 1.35; }
.day b, .day em { align-self: end; font-size: .82rem; font-style: normal; white-space: nowrap; }
.day .day-amount { color: var(--blue); }
.day .amount-dop { color: var(--dop); }
.day .pot-in { color: var(--green); }
.day .pot-out { color: var(--red); }
.day.worked { border-top-color: var(--green); background: #fbfffd; }
.day.payout { border-top-color: var(--orange); background: #fffaf7; }
.day.waiting { border-top-color: var(--blue); background: #f3f9ff; }
.day.dop { border-top-color: var(--orange); background: #fff8f1; }
.day.status { border-top-color: var(--blue); }
.day.holiday { border-top-color: var(--green); background: var(--green-soft); }
.holiday, .message { color: var(--green); }
.wage-update { display: flex; flex-wrap: wrap; gap: 7px 10px; align-items: center; margin: 12px 0; padding: 11px 14px; color: #744500; background: #fff7e8; border: 1px solid #f2d090; border-left: 4px solid var(--orange); border-radius: 6px; font-size: .86rem; }

.entry-list { display: grid; gap: 7px; margin-top: 18px; }
.entry-row { display: grid; grid-template-columns: minmax(0, 1fr) 38px; gap: 6px; margin: 0; }
.entry-edit { display: grid; grid-template-columns: 110px 110px minmax(130px, 1fr) minmax(90px, .75fr) auto auto; gap: 12px; align-items: center; min-height: 48px; text-align: left; box-shadow: none; }
.entry-edit .entry-company { color: #49647f; font-size: .82rem; font-weight: 800; }
.entry-edit em { min-width: 90px; color: var(--muted); font-style: normal; text-align: right; }
.entry-edit b { white-space: nowrap; }
.entry-edit .amount-work { color: var(--blue); }
.amount-dop { color: var(--dop); }
.entry-edit .amount-in, .entry-edit .pot-in { color: var(--green); }
.entry-edit .amount-out { color: var(--red); }
.entry-edit .pot-out { color: var(--red); }
.entry-delete { min-height: 48px; padding: 0; color: var(--red); background: #fff8f8; border-color: #efc6ca; font-size: 1.1rem; }
.entry-delete:hover { color: #a62f3b; background: #fff0f1; border-color: #db939b; }

.firms-panel { max-width: 1060px; margin-inline: auto; }
.heat-panel { max-width: 980px; margin-inline: auto; }
.heat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.heat-grid article, .heat-schedule div { padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: #fbfdff; }
.heat-grid h3, .heat-tips h3 { margin: 0 0 8px; font-size: 1rem; }
.heat-grid p { margin: 0; color: #48617a; line-height: 1.55; }
.heat-alert-dot { display: inline-block; width: 9px; height: 9px; margin-left: 6px; border: 2px solid white; border-radius: 50%; background: #dc3545; box-shadow: 0 0 0 2px rgba(220,53,69,.18); vertical-align: middle; }
.heat-live { margin: 18px 0; padding: 16px; border: 1px solid #f2b5b9; border-left: 4px solid #dc3545; border-radius: 6px; background: #fff6f6; }
.heat-live > p { margin: 0 0 4px; color: #c92d3b; font-size: .72rem; font-weight: 900; }
.heat-live > p .heat-alert-dot { margin: 0 5px 0 0; border-color: #fff6f6; }
.heat-live h3 { margin: 0 0 12px; font-size: 1rem; }
.heat-live > div { display: grid; gap: 7px; }
.heat-live article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding-top: 9px; border-top: 1px solid #d6e5f0; }
.heat-live article:first-child { padding-top: 0; border-top: 0; }
.heat-live strong { font-size: .88rem; }.heat-live span { color: #4d6781; font-size: .76rem; font-weight: 800; }.heat-live small { grid-column: 1 / -1; color: #48617a; line-height: 1.4; white-space: pre-line; }
.heat-conditions { display: grid; gap: 4px; margin-top: 14px; padding: 12px; color: #49647f; background: rgba(255,255,255,.66); border: 1px solid #d6e5f0; border-radius: 5px; }
.heat-conditions strong { margin-top: 5px; color: #294a6b; font-size: .78rem; }
.heat-conditions strong:first-child { margin-top: 0; }
.heat-conditions span { color: #48617a; font-size: .8rem; font-weight: 650; line-height: 1.45; }
.guide-steps { display: grid; gap: 10px; margin: 18px 0; text-align: left; }
.guide-steps article { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #f8fbfe; color: #48617a; line-height: 1.45; }
.guide-steps strong { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: white; background: var(--blue); }
.heat-schedule { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.heat-schedule div { display: grid; gap: 5px; }
.heat-schedule strong { color: var(--blue); }
.heat-schedule span { font-weight: 900; }
.heat-schedule small { color: var(--muted); }
.heat-tips { margin-top: 18px; padding: 18px; border-left: 4px solid var(--orange); background: #fff9f1; }
.heat-tips ul { display: grid; gap: 7px; margin: 10px 0 0; padding-left: 20px; color: #48617a; }
.firms-grid { margin-top: 20px; }
.firma-card {
  display: grid;
  gap: 8px;
  min-height: 170px;
  padding: 18px;
  color: var(--ink);
  text-align: left;
  background: #fbfdff;
}
.firma-card > span { color: #49647f; font-size: .82rem; font-weight: 900; }
.firma-card > strong { color: var(--blue); font-size: 1.55rem; }
.firma-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 0; }
.firma-card dl div { display: grid; gap: 2px; }
.firma-card dt { color: var(--muted); font-size: .68rem; font-weight: 750; }
.firma-card dd { margin: 0; font-size: .78rem; font-weight: 850; }
.firma-card .amount-in { color: var(--green); }
.firma-card .amount-out { color: var(--red); }
.firma-card.selected { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(8, 127, 215, .14); }

.management-backdrop { position: fixed; z-index: 900; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(7, 25, 48, .58); }
.management-dialog { width: min(680px, 100%); max-height: min(740px, calc(100dvh - 32px)); display: grid; gap: 16px; overflow: auto; padding: 20px; color: var(--ink); background: #fff; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 22, 50, .35); }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.dialog-heading p { margin: 0 0 3px; color: var(--blue); font-size: .72rem; font-weight: 900; }
.dialog-heading h2 { margin: 0; font-size: 1.3rem; }
.dialog-heading span { color: var(--muted); font-size: .82rem; }
.icon-button { width: 38px; min-width: 38px; height: 38px; padding: 0; font-size: 1rem; }

.form-panel { max-width: 980px; margin-inline: auto; }
.setting-section { display: grid; gap: 13px; padding: 21px 0; border-top: 1px solid var(--line); }
.setting-section:first-of-type { padding-top: 0; border-top: 0; }
.setting-section h3 { margin: 0; font-size: 1rem; }
.setting-section .muted { margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid label { display: grid; align-content: start; gap: 6px; color: #50667f; font-size: .8rem; font-weight: 800; }
.field-warning { margin: -4px 0 0; padding: 10px 12px; color: #81540b; background: #fff7e6; border-left: 4px solid #e8a62f; border-radius: 5px; font-size: .82rem; font-weight: 750; }
.form-grid label:has(input[type="checkbox"]) { grid-template-columns: auto 1fr; align-items: center; align-content: center; min-height: 42px; }
.form-grid input, .form-grid select, .form-grid textarea, .heading select {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fbfdff;
  border: 1px solid #cbd9e7;
  border-radius: 6px;
}

.form-grid input[type="checkbox"] { width: 19px; min-height: 19px; accent-color: var(--blue); }
.form-grid textarea { min-height: 92px; resize: vertical; }
.full { grid-column: 1 / -1; }

.proposal, .notice {
  margin: 16px 0;
  padding: 13px 15px;
  border-radius: 6px;
}

.proposal { color: #e8f3ff; background: var(--navy-2); }
.notice { color: #244967; background: #eaf4fc; border-left: 4px solid var(--blue); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions button, .file-input { padding: 9px 15px; }
.danger { color: var(--white); background: var(--red); border-color: var(--red); }

.file-input {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  overflow: hidden;
  color: #173a61;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

.file-input input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.cards, .summary-grid { display: grid; gap: 12px; }
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards .panel { box-shadow: 0 10px 28px rgba(17, 42, 77, .07); }
.amount { display: block; margin: 12px 0 18px; font-size: 2rem; }
dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
dt, .muted { color: var(--muted); font-size: .8rem; }
dd { margin: 2px 0 0; font-weight: 900; }

.summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.summary-grid article { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 7px; }
.summary-grid span { color: var(--muted); font-size: .78rem; font-weight: 800; }
.summary-grid strong { font-size: 1.45rem; }
.wage-index-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.wage-index-summary article { display: grid; gap: 6px; padding: 14px; color: var(--white); background: var(--navy-2); border-radius: 7px; }
.wage-index-summary span { color: #b9d5ee; font-size: .75rem; font-weight: 850; }
.wage-index-summary strong { font-size: 1.25rem; }
.wage-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; }
.wage-table > div { display: grid; grid-template-columns: minmax(170px, 1.45fr) repeat(7, minmax(105px, .9fr)); min-width: 900px; }
.wage-table .wage-head { color: #dcecff; background: var(--navy-2); font-size: .72rem; font-weight: 900; }
.wage-table .wage-head span { padding: 12px 10px; }
.wage-table .wage-row { background: var(--white); border-top: 1px solid var(--line); }
.wage-table .wage-row:nth-child(odd) { background: #f7fbff; }
.wage-table .wage-row strong, .wage-table .wage-row span { display: flex; align-items: center; min-height: 48px; padding: 10px; }
.wage-table .wage-row strong { color: #173a61; font-size: .82rem; }
.wage-table .wage-row span { justify-content: flex-end; color: var(--blue); border-left: 1px solid #e2ecf4; font-size: .82rem; font-weight: 850; white-space: nowrap; }
.company-add-panel { margin-bottom: 14px; }
.feature-gate { position: relative; }
.feature-gate-content { min-width: 0; }
.feature-gate.is-locked { min-height: 360px; overflow: hidden; }
.feature-gate.is-locked .feature-gate-content { filter: blur(6px); pointer-events: none; user-select: none; }
.premium-overlay { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 9px; padding: 28px; color: var(--white); text-align: center; background: rgba(5, 24, 48, .72); }
.premium-overlay p { margin: 0; color: #65c5ff; font-size: .74rem; font-weight: 950; }
.premium-overlay strong { font-size: 1.35rem; }
.premium-overlay span { max-width: 320px; color: #d5e6f5; }
.document-list { display: grid; gap: 9px; }
.document-list article { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 7px; }
.document-list article > div { display: grid; gap: 5px; min-width: 0; }
.document-list strong { color: var(--ink); }
.document-list span { color: #49647f; line-height: 1.45; }
.document-list small { color: var(--muted); font-size: .75rem; }
.document-list article.is-locked { background: #f7f9fc; border-color: #dfe6ef; }
.document-list article.is-locked > div:first-child { opacity: .68; }
.document-lock { display: grid; gap: 4px; min-width: 176px; padding: 10px 12px; color: #766126; background: #fff8df; border: 1px solid #ebd087; border-radius: 6px; }
.document-lock strong { color: #71570b; font-size: .78rem; }
.document-lock span { color: #806918; font-size: .75rem; line-height: 1.35; }
.admin-documents { margin-top: 14px; }
.admin-documents .document-sort-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.document-order-actions { display: flex; align-items: center; gap: 6px; }
.document-order-actions button { min-width: 34px; padding: 7px; }
.report-controls { display: flex; gap: 6px; }
.report-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 0 0 16px; }
.report-filters label { display: grid; gap: 5px; min-width: 180px; color: var(--muted); font-size: .75rem; font-weight: 850; }
.report-filters select { min-height: 40px; padding: 8px; color: var(--ink); background: #fbfdff; border: 1px solid var(--line); border-radius: 6px; }
.report-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.report-breakdown article { display: grid; gap: 6px; padding: 14px; background: #f8fbfe; border: 1px solid var(--line); border-radius: 6px; }
.report-breakdown span { color: var(--muted); font-size: .78rem; font-weight: 850; }
.report-breakdown strong { font-size: 1.32rem; }
.report-breakdown small { color: #536d85; }
.report-heading { margin: 28px 0 10px; font-size: 1rem; }
.report-list { display: grid; gap: 6px; }
.report-list article { display: grid; grid-template-columns: 100px 110px minmax(120px, 1fr) minmax(150px, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 6px; font-size: .84rem; }
.report-list article > span { color: #4d6781; }
.report-list article b { white-space: nowrap; }
.report-list article em { min-width: 78px; color: var(--green); font-style: normal; text-align: right; }

.account-panel { max-width: 760px; margin-inline: auto; }
.admin-list { display: grid; gap: 8px; }
.admin-list article { display: grid; grid-template-columns: 230px 1fr 180px; gap: 16px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 6px; }
.admin-list article div { display: grid; gap: 3px; }
.admin-list article span, .admin-list article small { color: var(--muted); font-size: .78rem; }
.admin-list article p { margin: 0; white-space: pre-line; }
.admin-heading { margin: 28px 0 12px; font-size: 1rem; }
.user-list { display: grid; gap: 7px; }
.user-list article { display: grid; grid-template-columns: 1fr 180px; gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 6px; }
.user-list article div { display: grid; gap: 3px; }
.user-list article span { color: var(--muted); font-size: .78rem; }
.user-list select { min-height: 38px; padding: 7px; color: var(--ink); background: #fbfdff; border: 1px solid var(--line); border-radius: 6px; }
.user-list-item { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px; color: var(--ink); text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.user-list-item:hover { border-color: var(--blue); background: #f8fbff; }
.user-list-item span { display: grid; gap: 3px; min-width: 0; }
.user-list-item small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.user-list-item em { padding: 4px 7px; color: var(--blue); background: #eef7ff; border-radius: 5px; font-size: .72rem; font-style: normal; font-weight: 850; white-space: nowrap; }

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  color: #173a61;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 850;
  text-decoration: none;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}

.button-link:hover { transform: translateY(-1px); border-color: #9bb8d6; }
.button-link.primary { color: var(--white); background: var(--blue); border-color: var(--blue); }
.button-link.ghost { color: var(--white); background: transparent; border-color: rgba(255, 255, 255, .35); }

.public-hero {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  overflow: hidden;
  padding: 22px 28px 36px;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.public-hero::before {
  content: "DOKSALDO  ·  AGENDA  ·  OVERZICHT  ·";
  position: absolute;
  z-index: -1;
  top: 145px;
  left: -20px;
  width: max-content;
  color: rgba(255, 255, 255, .035);
  font-size: 92px;
  font-weight: 950;
  white-space: nowrap;
  animation: harborMove 30s linear infinite;
}

.public-nav { display: flex; align-items: center; gap: 14px; min-height: 54px; }
.public-brand { display: flex; align-items: baseline; gap: 8px; color: var(--white); text-decoration: none; }
.public-brand span { font-size: 1.18rem; font-weight: 950; letter-spacing: -.03em; }
.public-brand small { color: #9eb9d1; font-size: .62rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.public-nav > div { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.public-nav > div > a:not(.button-link) { color: #cfe1f3; font-size: .85rem; font-weight: 800; text-decoration: none; }
.sponsor-note { display: flex; align-items: center; gap: 7px; margin-left: 10px; color: #93acc3; font-size: .59rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.sponsor-note img { width: 66px; opacity: .58; }

.public-intro { display: grid; justify-items: center; max-width: 830px; margin: 78px auto 42px; text-align: center; }
.public-intro p, .section-heading p, .tier-band p, .login-panel > div > p, .upgrade-panel > p { margin: 0; color: #48b4f5; font-size: .72rem; font-weight: 950; }
.public-intro h1 { margin: 7px 0 13px; font-size: clamp(4rem, 11vw, 7.4rem); line-height: .86; letter-spacing: 0; }
.public-intro > strong { max-width: 700px; color: #d9e9f8; font-size: clamp(1.05rem, 2.5vw, 1.42rem); line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 24px; }
.member-benefit { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 15px; padding: 7px 10px; color: #dceaf6; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .17); border-radius: 5px; font-size: .76rem; }
.member-benefit strong { color: #ff9b69; }

.preview-board { max-width: 970px; margin: 0 auto; padding: 15px; color: var(--ink); background: #f8fbfe; border: 1px solid rgba(255, 255, 255, .3); border-radius: 8px; box-shadow: 0 26px 70px rgba(0, 0, 0, .28); transform: translateY(4px); }
.preview-top { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 4px 4px 14px; }
.preview-top span { color: var(--muted); font-size: .78rem; font-weight: 800; }
.preview-top strong { font-size: .92rem; }
.preview-top em { padding: 5px 9px; color: var(--green); background: var(--green-soft); border-radius: 5px; font-size: .78rem; font-style: normal; font-weight: 900; }
.preview-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.preview-days article { display: grid; gap: 6px; min-height: 105px; padding: 11px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 6px; }
.preview-days span { color: var(--muted); font-size: .68rem; font-weight: 900; }
.preview-days strong { min-height: 20px; font-size: .78rem; }
.preview-days b { align-self: end; color: var(--blue); font-size: .92rem; white-space: nowrap; }
.preview-days small { color: #4f6983; }
.preview-days .preview-pot { border-top-color: var(--orange); }
.preview-days .preview-pot b, .preview-days .preview-holiday b { color: var(--green); }
.preview-days .preview-dop { border-top-color: var(--orange); }
.preview-days .preview-dop b { color: var(--orange); }
.preview-days .preview-out { border-top-color: var(--red); }.preview-days .preview-out b { color: var(--red); }
.preview-days .preview-holiday { background: var(--green-soft); }

.feature-preview { padding: 82px 16px 30px; }
.section-heading { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.section-heading h2 { margin: 7px 0 12px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; letter-spacing: 0; }
.section-heading > span { color: var(--muted); line-height: 1.6; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feature-card { display: grid; align-content: start; gap: 14px; min-height: 278px; padding: 19px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 12px 28px rgba(32, 61, 94, .06); transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(32, 61, 94, .11); }
.feature-card-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.feature-card-head p { margin: 0; color: var(--blue); font-size: .69rem; font-weight: 950; }
.feature-card-head h3 { margin: 3px 0 0; font-size: 1.05rem; }
.feature-card-head small { padding: 4px 7px; color: #244967; background: #eaf4fc; border-radius: 4px; font-size: .68rem; font-weight: 900; }
.mini-agenda { display: grid; gap: 6px; }
.mini-agenda > div { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 3px 8px; align-items: center; padding: 9px; border-left: 4px solid var(--green); background: #fbfdff; }
.mini-agenda span { grid-row: span 2; color: #58718a; font-size: .66rem; font-weight: 950; }
.mini-agenda strong { min-width: 0; overflow: hidden; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.mini-agenda em { color: #607b94; font-size: .68rem; font-style: normal; }
.mini-agenda b { grid-column: 3; grid-row: span 2; color: var(--blue); font-size: .78rem; white-space: nowrap; }
.mini-agenda .is-pot { border-left-color: var(--orange); background: #fffaf3; }
.mini-agenda .is-pot b { color: var(--green); }
.mini-agenda .is-free { border-left-color: #8da5ba; background: #f5f9fc; }
.mini-agenda .is-free b { color: #5e7890; }
.mini-agenda .is-dop { border-left-color: var(--orange); background: #fbfaff; }
.mini-agenda .is-dop b { color: var(--dop); }
.mini-firms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.mini-firms section { display: grid; gap: 5px; padding: 10px; color: var(--ink); background: #fbfdff; border: 1px solid #d8e4ee; border-radius: 5px; }
.mini-firms > section > strong { min-width: 0; overflow: hidden; font-size: .73rem; text-overflow: ellipsis; white-space: nowrap; }
.mini-firms > section > b { color: var(--blue); font-size: .98rem; }
.mini-firms dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; margin: 1px 0 0; }
.mini-firms dl div { min-width: 0; }
.mini-firms dt { color: #6a8198; font-size: .59rem; }
.mini-firms dd { margin: 1px 0 0; color: #48647d; font-size: .62rem; font-weight: 800; white-space: nowrap; }
.mini-firms dd.amount-in { color: var(--green); }
.mini-firms dd.amount-out { color: var(--red); }
.mini-wage-notice { margin: -2px 0 0; padding: 8px; color: #4e6982; background: #f4f8fc; border-left: 3px solid #91b7d8; font-size: .67rem; line-height: 1.4; }
.mini-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.mini-summary-grid section { display: grid; gap: 4px; padding: 10px; background: #fbfdff; border: 1px solid #dae6ef; border-radius: 5px; }
.mini-summary-grid span { color: #617a92; font-size: .64rem; font-weight: 800; }
.mini-summary-grid strong { color: var(--blue); font-size: .86rem; white-space: nowrap; }
.mini-summary-grid .mini-total { color: white; background: var(--navy); border-color: var(--navy); }
.mini-summary-grid .mini-total span { color: #c8daea; }
.mini-summary-grid .mini-total strong { color: white; }
.mini-report-breakdown { display: grid; gap: 6px; }
.mini-report-breakdown span { display: flex; justify-content: space-between; gap: 10px; color: #5b748b; font-size: .7rem; }
.mini-report-breakdown b { color: var(--green); }
.mini-report-breakdown span + span b { color: var(--ink); }
.wage-mini-lines b { color: var(--blue); }
.heat-mini-alert { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; color: #743120; background: #fff3ed; border-left: 4px solid var(--orange); }
.heat-mini-alert strong { font-size: .84rem; }
.heat-mini-alert span { font-size: .76rem; font-weight: 850; white-space: nowrap; }
.heat-popup-backdrop { position: fixed; z-index: 950; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(5, 20, 42, .58); }
.heat-popup { display: grid; gap: 10px; width: min(100%, 420px); padding: 26px; color: var(--ink); background: var(--white); border-top: 5px solid var(--orange); border-radius: 7px; box-shadow: 0 24px 72px rgba(0, 0, 0, .3); }
.heat-popup > p { margin: 0; color: #d65d27; font-size: .72rem; font-weight: 950; }
.heat-popup h2 { margin: 0; font-size: 1.65rem; }
.heat-popup > span { color: var(--muted); font-size: .78rem; font-weight: 800; }
.heat-popup-message { padding: 13px; color: #3a526b; background: #fff5ee; border-left: 4px solid var(--orange); font-weight: 800; line-height: 1.55; white-space: pre-line; }
.heat-popup button { justify-self: start; margin-top: 4px; }
.heat-empty { margin: 18px 0; padding: 14px; color: #567089; background: #f4f8fc; border-left: 4px solid #b8cce0; }
.document-mini { display: grid; gap: 3px; padding: 11px; border: 1px solid #d6e2ed; border-radius: 5px; }
.document-mini span { color: #173956; font-size: .78rem; font-weight: 900; }
.document-mini em { color: #688098; font-size: .7rem; font-style: normal; }
.document-mini.is-locked { opacity: .55; }
.backup-mini-status { display: flex; align-items: center; justify-content: space-between; padding: 14px; background: var(--green-soft); border: 1px solid #bce2d1; border-radius: 6px; }
.backup-mini-status span { color: #416d5a; font-size: .75rem; font-weight: 850; }
.backup-mini-status strong { color: #14865d; font-size: .84rem; }
.backup-mini-date { padding: 0 3px; }
.backup-mini-date b { color: var(--blue); }
.feature-footnote { margin: 0; color: #65809a; font-size: .72rem; line-height: 1.45; }

.tier-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 38px 0 12px; padding: 34px; color: var(--white); background: var(--navy-2); border-radius: 8px; }
.tier-band h2 { max-width: 780px; margin: 6px 0 0; font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: 0; }

.login-shell { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(360px, 1.2fr); min-height: calc(100vh - 90px); overflow: hidden; background: var(--navy); border-radius: 8px; box-shadow: var(--shadow); }
.login-brand { position: relative; display: grid; align-content: center; justify-items: center; gap: 10px; padding: 40px; color: var(--white); text-decoration: none; }
.login-brand::after { content: ""; }
.login-brand img { order: 0; width: min(142px, 58%); opacity: .62; }
.login-brand span { order: -1; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 950; letter-spacing: -.04em; }
.login-brand small { order: 1; color: #91abc3; font-size: .62rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.login-panel { display: grid; align-content: center; gap: 14px; padding: clamp(30px, 7vw, 90px); background: var(--white); }
.login-panel h1 { margin: 5px 0 8px; font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: .95; letter-spacing: 0; }
.login-panel > div > span { color: var(--muted); }
.login-panel label { display: grid; gap: 6px; color: #50667f; font-size: .8rem; font-weight: 850; }
.login-panel input { min-height: 46px; padding: 10px 12px; color: var(--ink); background: #f8fbfe; border: 1px solid #cbd9e7; border-radius: 6px; }
.login-panel label.privacy-check { display: flex; align-items: flex-start; }
.login-panel label.privacy-check input { flex: 0 0 19px; min-height: 19px; padding: 0; }
.login-panel > button, .login-panel > .button-link { width: 100%; }
.login-panel button:disabled { cursor: not-allowed; opacity: .58; transform: none; box-shadow: none; }
.login-message { margin: 0; padding: 11px; color: #7b2028; background: #fff0f1; border-radius: 6px; }
.login-success { margin: 0; padding: 11px; color: #116846; background: #eaf8f1; border-left: 4px solid var(--green); border-radius: 6px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: #70859a; font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #dbe4ed; }
.google-auth { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; color: #26394d; background: #fff; border: 1px solid #c5d2df; box-shadow: 0 2px 7px rgba(18, 55, 92, .08); }
.google-auth:hover { background: #f8fbfe; border-color: #9bb8d6; box-shadow: 0 6px 15px rgba(18, 55, 92, .12); }
.google-auth svg { flex: 0 0 20px; width: 20px; height: 20px; }
.google-auth span { font-weight: 850; }
.button-link { display: block; text-align: center; text-decoration: none; }
.text-button { color: var(--blue); background: transparent; border-color: transparent; box-shadow: none; }
.access-gate { display: grid; justify-items: center; gap: 14px; min-height: 55vh; place-content: center; text-align: center; }
.privacy-shell { display: grid; min-height: calc(100vh - 110px); place-items: center; padding: 24px; }
.privacy-panel { display: grid; gap: 17px; width: min(100%, 650px); padding: clamp(25px, 7vw, 56px); background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.privacy-panel img { width: 104px; opacity: .62; }
.privacy-panel p { margin: 0; color: var(--blue); font-size: .72rem; font-weight: 950; }
.privacy-panel h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); line-height: .95; letter-spacing: 0; }
.privacy-panel > span { color: var(--muted); line-height: 1.6; }
.privacy-panel ul { display: grid; gap: 8px; margin: 0; padding-left: 20px; color: #3d5874; }
.privacy-check { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-weight: 800; }
.privacy-check input { width: 19px; height: 19px; margin-top: 1px; accent-color: var(--blue); }

.hero-logout { min-height: 30px; margin-top: 5px; padding: 4px 8px; color: #dbeafa; background: transparent; border-color: rgba(255, 255, 255, .25); font-size: .72rem; }
.backup-reminder { display: flex; align-items: center; gap: 12px; margin: 10px 0 0; padding: 12px 15px; color: #6d4b08; background: #fff8df; border: 1px solid #efd58b; border-radius: 6px; }
.backup-reminder span { flex: 1; font-size: .86rem; }
.backup-reminder button { min-height: 34px; padding: 5px 9px; color: #725008; background: #fffdf6; border-color: #dfbd61; font-size: .78rem; }
.online-backup { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 16px 0; padding: 13px; background: var(--green-soft); border: 1px solid #bee4d4; border-radius: 6px; }
.online-backup > div:first-child { display: grid; gap: 3px; }
.online-backup > div:first-child small { color: #426d5d; }
.online-backup > div:first-child b { color: #167b57; }
.premium-hint { margin: 16px 0; padding: 12px; color: #5d4a16; background: #fff8df; border-left: 4px solid #e7b42d; }
.upgrade-panel { display: grid; justify-items: start; gap: 12px; max-width: 760px; margin-inline: auto; padding: 34px; }
.upgrade-panel h2 { margin: 0; font-size: 2rem; }
.upgrade-panel > span { color: var(--muted); line-height: 1.6; }

footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 14px; padding: 25px; color: var(--muted); font-size: .78rem; text-align: center; }
footer a { color: var(--blue); font-weight: 800; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.privacy-page { display: grid; min-height: calc(100vh - 110px); place-items: start center; padding: clamp(24px, 5vw, 72px) 18px; }
.privacy-document { display: grid; gap: 22px; width: min(100%, 820px); padding: clamp(26px, 6vw, 58px); background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.privacy-document > img { width: 108px; opacity: .62; }
.privacy-document > p { margin: 0; color: var(--blue); font-size: .75rem; font-weight: 950; }
.privacy-document > h1 { margin: -11px 0 0; font-size: clamp(2rem, 5vw, 3.3rem); line-height: .98; letter-spacing: 0; }
.privacy-document > span { margin-top: -13px; color: var(--muted); font-size: .84rem; }
.privacy-document section { display: grid; gap: 8px; }
.privacy-document h2 { margin: 0; font-size: 1.08rem; }
.privacy-document section p { margin: 0; color: #405873; line-height: 1.65; }
.privacy-document code { padding: 2px 5px; color: #244a71; background: #edf4fb; border-radius: 3px; }
.privacy-document a, .terms-check a, .terms-acceptance a { color: var(--blue-dark); font-weight: 850; }
.terms-document section { padding-top: 4px; border-top: 1px solid var(--line); }
.terms-check { padding: 12px; background: #f3f8fc; border: 1px solid #d4e2ee; border-radius: 6px; line-height: 1.45; }
.terms-check span { color: #405873; font-size: .78rem; }
.final-backup-popup { width: min(100%, 560px); border-top-color: var(--blue); }
.final-backup-popup .heat-popup-message { color: #294d6d; background: #edf6fd; border-left-color: var(--blue); font-weight: 700; }
.toast-host { position: fixed; z-index: 1100; right: 20px; bottom: 20px; display: grid; gap: 10px; width: min(390px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 13px 13px 13px 15px; color: #294d6d; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: 7px; box-shadow: 0 14px 32px rgba(20, 47, 76, .18); font-size: .88rem; font-weight: 750; line-height: 1.45; pointer-events: auto; animation: toast-in .18s ease-out; }
.toast-success { color: #245d44; background: var(--green-soft); border-left-color: var(--green); }
.toast-error { color: #7b2028; background: #fff0f1; border-left-color: #bf3f4b; }
.toast-warning { color: #744500; background: #fff7e8; border-left-color: var(--orange); }
.toast button { display: grid; place-items: center; width: 26px; min-width: 26px; height: 26px; min-height: 26px; padding: 0; color: currentColor; background: transparent; border: 0; border-radius: 50%; font-size: 1.25rem; font-weight: 500; line-height: 1; }
.toast button:hover, .toast button:focus-visible { background: rgba(31, 69, 105, .1); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.final-backup-status { display: grid; gap: 5px; }
.final-backup-status span { line-height: 1.5; }
.admin-user-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 12px; }
.admin-user-pagination span { min-width: 130px; color: var(--muted); font-size: .78rem; font-weight: 850; text-align: center; }

.guide-shell { width: min(100%, 1120px); margin: 0 auto; padding: 10px 0; }
.user-guide { display: grid; gap: 22px; color: var(--ink); }
.user-guide.is-onboarding { padding: 18px 0; }
.guide-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: clamp(24px, 5vw, 48px); color: var(--white); background: var(--navy); border-radius: 8px; box-shadow: var(--shadow); }
.guide-header p, .guide-copy p:first-child { margin: 0; color: #48b7f7; font-size: .7rem; font-weight: 950; }
.guide-header h1 { margin: 6px 0 10px; font-size: clamp(2rem, 5vw, 3.4rem); line-height: .98; letter-spacing: 0; }
.guide-header > div:first-child > span { color: #d4e6f6; line-height: 1.5; }
.guide-progress { display: grid; justify-items: center; width: 118px; padding: 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 7px; background: rgba(255,255,255,.07); }
.guide-progress strong { font-size: 2.4rem; line-height: 1; }
.guide-progress span { margin-top: 6px; color: #cfe3f5; font-size: .7rem; text-align: center; }
.guide-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.guide-index button { display: flex; gap: 9px; align-items: center; min-width: 0; padding: 10px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 5px; text-align: left; }
.guide-index button:hover { border-color: #83bce4; }
.guide-index button.active { color: var(--white); background: var(--navy); border-color: var(--navy); }
.guide-index button.active strong { color: var(--navy); background: var(--white); }
.guide-index strong { display: grid; flex: 0 0 27px; height: 27px; place-items: center; color: var(--white); background: var(--blue); border-radius: 4px; font-size: .72rem; }
.guide-index span { min-width: 0; overflow: hidden; font-size: .74rem; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.guide-list { display: grid; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.guide-step { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: clamp(24px, 5vw, 58px); align-items: center; padding: clamp(26px, 5vw, 52px); scroll-margin-top: 78px; }
.guide-step + .guide-step { border-top: 1px solid var(--line); }
.guide-copy { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 16px; align-items: start; }
.guide-number { color: #a9c3d9; font-size: 1.55rem; font-weight: 950; }
.guide-copy h2 { margin: 5px 0 11px; font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: 0; }
.guide-copy p:not(:first-child) { margin: 0 0 10px; color: #405a74; line-height: 1.6; }
.guide-copy ul { display: grid; gap: 7px; margin: 10px 0 0; padding-left: 19px; color: #405a74; line-height: 1.45; }
.guide-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 16px 0; }
.guide-details section { display: grid; align-content: start; gap: 5px; padding: 11px; background: #f3f8fc; border-top: 3px solid var(--blue); }
.guide-details strong { color: var(--ink); font-size: .72rem; }
.guide-details span { color: #506b84; font-size: .69rem; line-height: 1.45; }
.guide-warning { padding: 10px 12px; background: #fff8df; border-left: 4px solid #e1b434; }
.guide-demo { min-width: 0; padding: 16px; background: #f6f9fc; border: 1px solid #d6e2ed; border-radius: 6px; }
.settings-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.settings-demo label { display: grid; gap: 5px; padding: 10px; color: var(--muted); background: var(--white); font-size: .68rem; }
.settings-demo label:first-child { grid-column: 1 / -1; }
.settings-demo label strong { color: var(--ink); font-size: .78rem; }
.settings-demo small { display: block; color: var(--muted); font-size: .63rem; font-weight: 700; line-height: 1.35; }
.settings-demo > div { display: flex; justify-content: space-between; gap: 10px; grid-column: 1 / -1; padding: 8px 10px; background: var(--white); font-size: .72rem; }
.settings-demo em { color: var(--muted); font-style: normal; font-weight: 900; }
.guide-week { display: grid; gap: 7px; }
.guide-week button { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 4px 8px; min-height: 64px; padding: 10px; text-align: left; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--green); }
.guide-week button.is-holding { border-left-color: var(--orange); }
.guide-week button.is-dop { border-left-color: var(--orange); }
.guide-week span { grid-row: span 2; color: var(--muted); font-size: .68rem; font-weight: 950; }
.guide-week strong, .guide-week small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guide-week strong { font-size: .78rem; }.guide-week small { color: #58718a; font-size: .68rem; }.guide-week b { grid-column: 3; grid-row: span 2; color: var(--blue); font-size: .8rem; }
.amount-demo, .holding-demo, .payout-demo, .report-demo, .backup-demo { display: grid; gap: 12px; }
.amount-demo header, .holding-demo > div { display: flex; justify-content: space-between; gap: 12px; }
.amount-demo header span, .payout-demo > span { color: var(--muted); font-size: .7rem; font-weight: 900; }
.amount-demo dl, .holding-demo dl { display: grid; gap: 7px; margin: 0; }
.amount-demo dl div, .holding-demo dl div { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; border-top: 1px solid var(--line); }
.amount-demo dt, .holding-demo dt { color: var(--muted); font-size: .72rem; }.amount-demo dd, .holding-demo dd { margin: 0; font-size: .74rem; font-weight: 900; }
.amount-demo .total { color: var(--blue); }
.holding-demo > div strong, .payout-demo > strong { color: var(--blue); font-size: 1.35rem; }
.payout-demo { border-left: 4px solid var(--red); }.payout-demo > small { color: var(--muted); }.payout-demo > div { padding: 9px; color: #6f3037; background: #fff0f1; font-size: .73rem; }
.status-demo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.status-demo div { display: grid; gap: 6px; padding: 12px; background: var(--white); border-top: 4px solid var(--orange); }.status-demo span { color: var(--muted); font-size: .7rem; }.status-demo strong { font-size: .8rem; }
.report-demo { grid-template-columns: 1fr 1fr; }.report-demo > div { display: grid; gap: 4px; padding: 10px; background: var(--white); }.report-demo span { color: var(--muted); font-size: .68rem; }.report-demo strong { color: var(--blue); font-size: .84rem; }.report-demo .total { color: white; background: var(--navy); }.report-demo .total span, .report-demo .total strong { color: white; }.report-demo small { grid-column: 1 / -1; color: var(--green); font-weight: 850; }
.backup-demo button { pointer-events: none; color: white; background: var(--blue); border-color: var(--blue); }.backup-demo span, .backup-demo small { color: var(--muted); font-size: .72rem; }
.guide-page { animation: guide-page-in .2s ease-out; }
.guide-page { grid-template-columns: 1fr; align-items: start; }
.guide-live-wrap { display: grid; grid-column: 1 / -1; gap: 8px; min-width: 0; }
.guide-live-label { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 9px 12px; color: #31516e; background: #eaf4fb; border: 1px solid #c9deed; border-radius: 5px; }
.guide-live-label strong { color: var(--blue); font-size: .68rem; }
.guide-live-label span { font-size: .68rem; font-weight: 750; }
.guide-live-preview { min-width: 0; overflow: hidden; border: 1px solid #b9cddd; border-radius: 7px; background: var(--white); box-shadow: 0 12px 30px rgba(7, 34, 65, .09); }
.guide-live-preview > .panel { border: 0; border-radius: 0; box-shadow: none; }
.guide-live-preview > .panel + .panel { border-top: 1px solid var(--line); }
.guide-dialog-preview { margin: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); box-shadow: var(--shadow); }
.guide-live-preview button, .guide-live-preview input, .guide-live-preview select, .guide-live-preview textarea, .guide-live-preview .file-input { cursor: default; }
.guide-live-preview .day { min-width: 0; }
.guide-settings-reference { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.guide-settings-reference > section { min-width: 0; padding: 17px; background: #f7fafc; border: 1px solid var(--line); border-radius: 6px; }
.guide-settings-reference > section:last-child { grid-column: 1 / -1; }
.guide-settings-reference p { margin: 0 0 10px; color: var(--blue); font-size: .68rem; font-weight: 950; }
.guide-settings-reference dl { display: grid; gap: 10px; margin: 0; }
.guide-settings-reference dl div { display: grid; gap: 3px; padding-top: 10px; border-top: 1px solid #dce6ef; }
.guide-settings-reference dl div:first-child { padding-top: 0; border-top: 0; }
.guide-settings-reference dt { color: var(--ink); font-size: .76rem; font-weight: 900; }
.guide-settings-reference dd { margin: 0; color: #506b84; font-size: .72rem; line-height: 1.5; }
.guide-field-reference { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.guide-field-reference > section { min-width: 0; padding: 17px; background: #f7fafc; border: 1px solid var(--line); border-radius: 6px; }
.guide-field-reference p { margin: 0 0 10px; color: var(--blue); font-size: .68rem; font-weight: 950; }
.guide-field-reference dl { display: grid; gap: 10px; margin: 0; }
.guide-field-reference dl div { display: grid; gap: 3px; padding-top: 10px; border-top: 1px solid #dce6ef; }
.guide-field-reference dl div:first-child { padding-top: 0; border-top: 0; }
.guide-field-reference dt { color: var(--ink); font-size: .76rem; font-weight: 900; }
.guide-field-reference dd { margin: 0; color: #506b84; font-size: .72rem; line-height: 1.5; }
@keyframes guide-page-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.guide-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 7px; }
.guide-actions > div { display: grid; flex: 1; gap: 3px; }.guide-actions span { color: var(--muted); font-size: .78rem; }
.zone-map-preview { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: #f8fbfe; }
.zone-map-preview img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #071b39; border-radius: 4px; }
.zone-map-preview div { display: grid; justify-items: start; gap: 7px; }
.zone-map-preview p, .zone-map-modal-head p { margin: 0; color: var(--blue); font-size: .72rem; font-weight: 900; }
.zone-map-preview h3 { margin: 0; font-size: 1rem; }
.zone-map-preview span { color: #4d6781; line-height: 1.45; }
.zone-map-preview button { margin-top: 4px; }
.zone-map-modal { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(5,20,42,.72); }
.zone-map-modal > section { position: relative; display: grid; grid-template-rows: auto minmax(0,1fr); width: min(1240px,100%); height: min(860px,100%); overflow: hidden; border-radius: 7px; background: #edf3f9; box-shadow: 0 24px 72px rgba(0,0,0,.34); }
.zone-map-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; background: var(--navy); color: white; }
.zone-map-modal-head h2 { margin: 2px 0 0; font-size: 1.05rem; }
.zone-map-modal-head small { display: block; margin-top: 4px; color: #b9d9f4; font-size: .74rem; }
.zone-map-modal-head button { width: 36px; height: 36px; padding: 0; color: white; background: transparent; border-color: #7790ad; font-size: 1.25rem; }
.zone-map-frame { width: 100%; height: 100%; min-height: 0; border: 0; background: #edf3f9; }
.zone-map-loading { position: absolute; z-index: 2; inset: 64px 0 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--navy); background: rgba(237,243,249,.96); }
.zone-map-loading small { color: var(--muted); text-align: center; }
.zone-map-loading progress { width: min(300px, calc(100vw - 48px)); height: 8px; accent-color: var(--blue); }
.loading, .startup-error { display: grid; place-content: center; min-height: 70vh; gap: 8px; padding: 24px; text-align: center; }
.startup-error p { max-width: 760px; overflow-wrap: anywhere; color: var(--red); }

#blazor-error-ui {
  display: none;
  position: fixed;
  z-index: 1000;
  right: 16px;
  bottom: 16px;
  max-width: calc(100% - 32px);
  padding: 13px 44px 13px 16px;
  color: #52191f;
  background: #fff0f1;
  border: 1px solid #efadb3;
  border-radius: 7px;
  box-shadow: var(--shadow);
}

#blazor-error-ui .dismiss { position: absolute; top: 8px; right: 12px; cursor: pointer; }

.premium-tab { color: #fff; background: var(--orange); border-color: var(--orange); }
.premium-tab:hover { color: #fff; background: #d9551f; border-color: #d9551f; }
.premium-home-band > div:first-child { display: grid; gap: 7px; }
.premium-home-band > div:first-child > span { color: #c9dbed; }
.tier-band-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.premium-hero {
  position: relative;
  isolation: isolate;
  min-height: 460px;
  overflow: hidden;
  padding: 22px 28px 62px;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.premium-hero::before {
  content: "PREMIUM  ·  DOKSALDO  ·  PREMIUM  ·  DOKSALDO  ·";
  position: absolute;
  z-index: -1;
  left: -24px;
  bottom: -18px;
  width: max-content;
  color: rgba(255,255,255,.035);
  font-size: 86px;
  font-weight: 950;
  white-space: nowrap;
  animation: harborMove 30s linear infinite;
}
.premium-brand { display: flex; align-items: baseline; gap: 8px; color: #fff; font-weight: 900; text-decoration: none; }
.premium-brand span { font-size: 1.18rem; font-weight: 950; letter-spacing: -.03em; }
.premium-brand small { color: #9eb9d1; font-size: .62rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.premium-intro { display: grid; justify-items: center; max-width: 850px; margin: 78px auto 0; text-align: center; }
.premium-intro > p { margin: 0; color: #55bdff; font-size: .74rem; font-weight: 950; }
.premium-intro h1 { margin: 8px 0 16px; font-size: clamp(2.8rem, 7vw, 5rem); line-height: .96; letter-spacing: 0; }
.premium-intro > span { max-width: 720px; color: #d7e7f7; font-size: 1.08rem; line-height: 1.6; }
.premium-intro-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 25px; }
.premium-intro-points span { padding: 7px 10px; color: #eaf5ff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.17); border-radius: 5px; font-size: .76rem; font-weight: 850; }

.premium-loading { display: grid; min-height: 340px; place-content: center; justify-items: center; gap: 12px; }
.billing-banner, .billing-account-strip { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: 7px; box-shadow: 0 10px 24px rgba(32,61,94,.06); }
.billing-banner.success { border-left-color: var(--green); background: var(--green-soft); }
.billing-banner.warning { border-left-color: #dda923; background: #fff9e8; }
.billing-banner > div, .billing-account-strip > div:first-child { display: grid; gap: 4px; }
.billing-banner p, .billing-account-strip p { margin: 0; color: var(--blue); font-size: .7rem; font-weight: 950; }
.billing-banner span, .billing-account-strip span { color: #506b84; line-height: 1.45; }
.billing-account-strip h2 { margin: 0; font-size: 1.2rem; }
.cancel-confirm { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; gap: 8px; align-items: center; max-width: 670px; }
.cancel-confirm span { font-size: .76rem; }
.danger { color: #fff; background: var(--red); border-color: var(--red); }
.billing-message, .billing-unavailable { margin: 14px 0 0; padding: 13px 15px; color: #7b2028; background: #fff0f1; border-left: 4px solid var(--red); border-radius: 5px; }
.billing-test-mode { display: flex; align-items: center; gap: 9px; margin: 14px 0 0; padding: 11px 14px; color: #684b0d; background: #fff8df; border: 1px solid #ead18b; border-radius: 6px; }
.billing-test-mode span { font-size: .78rem; }
.billing-unavailable { width: min(100%, 760px); margin: 0 auto 18px; color: #6d4b08; background: #fff8df; border-left-color: #d6a72c; }

.pricing-page { padding: 74px 14px 24px; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.price-card { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 20px; min-width: 0; padding: 23px 20px; background: #fff; border: 1px solid var(--line); border-top: 5px solid #b7c8d9; border-radius: 7px; box-shadow: 0 14px 34px rgba(30,59,91,.07); }
.price-card.premium-plan { border-top-color: var(--blue); }
.price-card.member-plan { border-top-color: var(--orange); }
.price-card.recommended { border-color: #63b4eb; border-top-color: var(--blue); box-shadow: 0 20px 44px rgba(8,127,215,.15); }
.recommended-label { position: absolute; top: -15px; right: 13px; padding: 5px 8px; color: #fff; background: var(--orange); border-radius: 4px; font-size: .65rem; font-weight: 950; }
.price-card-head { display: grid; align-content: start; gap: 5px; min-height: 91px; }
.price-card-head p { margin: 0; color: var(--blue); font-size: .67rem; font-weight: 950; }
.member-plan .price-card-head p { color: #d95823; }
.price-card-head h3 { margin: 0; font-size: 1.25rem; }
.price-card-head span { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.plan-price { display: grid; gap: 2px; min-height: 66px; }
.plan-price strong { font-size: 2.15rem; line-height: 1; }
.plan-price span { color: var(--muted); font-size: .73rem; }
.price-card ul { display: grid; align-content: start; gap: 10px; margin: 0; padding: 0; list-style: none; }
.price-card li { position: relative; padding-left: 21px; color: #3f5871; font-size: .79rem; line-height: 1.45; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 950; }
.price-card > button, .price-card > .button-link { width: 100%; min-height: 46px; align-self: end; }
.price-card button:disabled { color: #7a8da1; background: #edf2f6; border-color: #d5e0e9; cursor: not-allowed; box-shadow: none; transform: none; }
.member-button { color: #9d3d18; background: #fff5ef; border-color: #ffc3a5; }
.saving-line { margin: -13px 0 -6px; padding: 8px; color: #116b4a; background: var(--green-soft); border-radius: 5px; font-size: .7rem; font-weight: 850; line-height: 1.4; }
.billing-consent { display: flex; gap: 12px; width: min(100%, 780px); margin: 26px auto 0; padding: 16px; color: #2e4a65; background: #fff; border: 1px solid #bfd5e7; border-radius: 7px; box-shadow: 0 10px 26px rgba(32,61,94,.06); }
.billing-consent input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); }
.billing-consent span { display: grid; gap: 4px; font-size: .78rem; line-height: 1.5; }
.billing-consent a { color: var(--blue-dark); font-weight: 850; }

.premium-detail-band { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 34px; align-items: center; margin: 72px 0 0; padding: 38px; color: #fff; background: var(--navy-2); border-radius: 8px; }
.premium-detail-band p { margin: 0; color: #55bdff; font-size: .7rem; font-weight: 950; }
.premium-detail-band h2 { margin: 6px 0 0; font-size: clamp(1.7rem,3vw,2.5rem); line-height: 1.08; }
.premium-detail-list { display: grid; gap: 10px; }
.premium-detail-list span { display: flex; gap: 11px; align-items: center; color: #dceafa; font-size: .86rem; }
.premium-detail-list b { display: grid; flex: 0 0 29px; width: 29px; height: 29px; place-items: center; color: var(--navy); background: #fff; border-radius: 50%; }
.pricing-faq { padding: 72px 0 18px; }
.pricing-faq > div:last-child { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 30px; border-top: 1px solid var(--line); }
.pricing-faq article { padding: 22px 0; border-bottom: 1px solid var(--line); }
.pricing-faq h3 { margin: 0 0 7px; font-size: 1rem; }
.pricing-faq p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 155px 1fr; }
  .pot-total { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; }
  .pot-total small { grid-column: 1 / -1; }
  .tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards, .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wage-index-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .report-list article { grid-template-columns: 90px 100px minmax(120px, 1fr) auto; }
  .report-list article > span:nth-of-type(2) { display: none; }
  .admin-list article { grid-template-columns: 180px 1fr; }
  .admin-list article small { grid-column: 1 / -1; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
}

@media (max-width: 640px) {
  .shell { padding: 10px; }
  .hero { grid-template-columns: 1fr; gap: 18px; min-height: 0; padding: 20px; }
  .brand-lockup { width: 170px; }
  .pot-total { grid-column: auto; }
  .tabs { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { padding: 16px; }
  .heading { align-items: stretch; flex-direction: column; }
  .heading > div:last-child { display: grid; grid-template-columns: repeat(3, 1fr); }
  .heading button { padding-inline: 6px; }
  .week { grid-template-columns: 1fr; }
  .day { grid-template-columns: 45px 48px 1fr auto; grid-template-rows: auto; align-items: center; min-height: 72px; border-top-width: 1px; border-left: 4px solid #cbd7e4; }
  .day.worked { border-left-color: var(--green); }
  .day.payout { border-left-color: var(--orange); }
  .day.holiday { border-left-color: var(--green); }
  .form-grid, .cards, .summary-grid, .wage-index-summary { grid-template-columns: 1fr; }
  .wage-table { overflow: visible; border: 0; }
  .wage-table > div { min-width: 0; }
  .wage-table .wage-head { display: none; }
  .wage-table .wage-row { grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; }
  .wage-table .wage-row strong { grid-column: 1 / -1; min-height: 28px; padding: 0 0 6px; border-bottom: 1px solid var(--line); font-size: .92rem; }
  .wage-table .wage-row span { justify-content: space-between; min-height: 32px; padding: 4px 0; border: 0; font-size: .78rem; }
  .wage-table .wage-row span::before { content: attr(data-label); color: var(--muted); font-size: .7rem; font-weight: 800; }
  .heat-grid, .heat-schedule { grid-template-columns: 1fr; }
  .daily-allowances > div { grid-template-columns: 1fr; }
  .allowance-settings { grid-template-columns: 1fr; }
  .settings-panel .setting-section { padding: 18px 0; }
  .settings-panel .primary { width: 100%; min-height: 46px; }
  .report-breakdown { grid-template-columns: 1fr; }
  .report-list article { grid-template-columns: 1fr auto; }
  .report-list article > span:nth-of-type(1), .report-list article > span:nth-of-type(2), .report-list article em { display: none; }
  .entry-edit { grid-template-columns: 1fr auto; }
  .entry-edit .entry-shift { display: none; }
  .entry-edit em { display: block; }
  .admin-list article { grid-template-columns: 1fr; }
  .user-list article { grid-template-columns: 1fr; }
  .user-list-item { align-items: start; flex-direction: column; gap: 7px; }
  .management-backdrop { align-items: end; padding: 0; }
  .management-dialog { width: 100%; max-height: 88dvh; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 8px 8px 0 0; }
  .document-list article { align-items: stretch; flex-direction: column; }
  .document-list .button-link, .document-list .danger, .document-lock { width: 100%; }
  .admin-documents .document-sort-item { grid-template-columns: minmax(0, 1fr); }
  .admin-documents .document-order-actions { grid-column: 1 / -1; width: 100%; }
  .admin-documents .document-order-actions button { flex: 1; }
  .public-hero { min-height: 0; padding: 16px; }
  .public-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; min-height: 44px; }
  .public-nav > span:not(.sponsor-note) { display: none; }
  .public-nav > div { margin-left: 0; }
  .public-nav > div > a:not(.button-link) { display: none; }
  .public-nav .button-link { min-height: 38px; padding: 7px 10px; font-size: .78rem; white-space: nowrap; }
  .public-nav .sponsor-note { grid-column: 1 / -1; justify-self: end; margin-left: 0; }
  .public-nav .sponsor-note img { width: 62px; }
  .premium-hero { min-height: 0; padding: 16px 16px 42px; }
  .premium-brand small { display: none; }
  .premium-intro { margin: 58px auto 0; }
  .premium-intro h1 { font-size: clamp(2.45rem, 13vw, 3.7rem); }
  .premium-intro > span { font-size: .94rem; }
  .pricing-page { padding: 54px 0 14px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 17px; }
  .price-card { padding: 21px 18px; }
  .price-card-head { min-height: 0; }
  .billing-banner, .billing-account-strip { align-items: stretch; flex-direction: column; }
  .billing-banner button, .billing-account-strip > button { width: 100%; }
  .cancel-confirm { grid-template-columns: 1fr; }
  .cancel-confirm button { width: 100%; }
  .premium-detail-band { grid-template-columns: 1fr; gap: 24px; margin-top: 50px; padding: 25px 20px; }
  .pricing-faq { padding-top: 50px; }
  .pricing-faq > div:last-child { grid-template-columns: 1fr; }
  .tier-band-actions { width: 100%; }
  .tier-band-actions .button-link { width: 100%; }
  .public-intro { margin: 65px auto 34px; }
  .public-intro h1 { font-size: clamp(3.7rem, 20vw, 5.5rem); }
  .preview-top { grid-template-columns: 1fr; gap: 5px; }
  .preview-days { grid-template-columns: repeat(2, 1fr); }
  .preview-days article:last-child { grid-column: 1 / -1; }
  .feature-preview { padding: 58px 0 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .tier-band { align-items: flex-start; flex-direction: column; padding: 24px; }
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { min-height: 220px; }
  .login-panel { padding: 28px 20px; }
  .online-backup { align-items: flex-start; flex-direction: column; }
  .backup-reminder { align-items: flex-start; flex-wrap: wrap; }
  .backup-reminder span { flex-basis: 100%; }
  .zone-map-preview { grid-template-columns: 100px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .zone-map-modal { padding: 0; }
  .zone-map-modal > section { width: 100%; height: 100%; border-radius: 0; }
  .guide-shell { padding: 0; }
  .guide-header { grid-template-columns: 1fr; padding: 24px 20px; }
  .guide-progress { grid-template-columns: auto 1fr; justify-items: start; align-items: center; width: 100%; gap: 9px; padding: 10px 13px; }
  .guide-progress strong { font-size: 1.4rem; }
  .guide-progress span { margin: 0; }
  .guide-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-step { grid-template-columns: 1fr; gap: 20px; padding: 28px 18px; }
  .guide-copy { grid-template-columns: 38px minmax(0, 1fr); gap: 8px; }
  .guide-number { font-size: 1rem; }
  .guide-details, .guide-settings-reference, .guide-field-reference { grid-template-columns: 1fr; }
  .guide-live-label { align-items: flex-start; flex-direction: column; gap: 3px; }
  .guide-live-preview .panel { padding: 14px; }
  .guide-live-preview .week { grid-template-columns: 1fr; }
  .guide-live-preview .day { grid-template-columns: 42px 44px minmax(0, 1fr) auto; min-height: 68px; }
  .guide-live-preview .report-filters { grid-template-columns: 1fr; }
  .guide-dialog-preview { margin: 10px; padding: 14px; }
  .guide-settings-reference > section:last-child { grid-column: auto; }
  .guide-settings-reference > section { padding: 14px; }
  .status-demo { grid-template-columns: 1fr; }
  .guide-actions { align-items: stretch; flex-direction: column; }
  .guide-actions > div { margin-bottom: 5px; }
  .guide-actions button { width: 100%; }
  .final-backup-popup { padding: 22px 18px; }
  .admin-user-pagination { justify-content: stretch; }
  .admin-user-pagination button { flex: 1; }
}

/* Month agenda keeps seven columns, including on phones. */
.agenda-controls, .agenda-view { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.agenda-view { padding-right: 8px; }
.agenda-view .active { background: var(--blue); color: white; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.month-weekday { text-align: center; font-size: .75rem; font-weight: 800; padding: 6px 0; }
.month-grid .day { min-width: 0; min-height: 130px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: 5px; padding: 9px; }
.month-grid .day > span { display: none; }
.month-grid .outside-month { opacity: .5; }
.month-grid .is-today { outline: 2px solid var(--blue); outline-offset: -2px; }
@media (max-width: 600px) {
  .month-grid { gap: 3px; }
  .month-grid .day { min-height: 96px; padding: 5px 2px; border-left-width: 1px; gap: 4px; }
  .month-grid .day strong { font-size: 1rem; }
  .month-grid .day small { font-size: .55rem; overflow-wrap: anywhere; }
  .month-grid .day b, .month-grid .day em { font-size: .55rem; white-space: normal; overflow-wrap: anywhere; }
}

/* Keep view selection above the three period navigation buttons. */
.agenda-controls { flex-direction: column; align-items: flex-end; gap: 8px; }
.agenda-controls .agenda-view { padding-right: 0; }
.agenda-navigation { display: flex; flex-wrap: nowrap; gap: 6px; }
.agenda-navigation button { white-space: nowrap; }

.heading > .agenda-controls:last-child { display: flex; flex-direction: column; align-items: flex-end; }
.month-grid .day { min-height: 68px; height: 68px; align-content: center; justify-items: center; border: 1px solid var(--line); background: white; padding: 5px; }
.month-grid .day strong { font-size: 1.15rem; }
.month-grid .day.selected-day { background: var(--green-soft); box-shadow: inset 0 0 0 2px var(--green); }
.month-grid .day.holiday { background: var(--green-soft); }
.month-dots { display: flex; justify-content: center; gap: 4px; min-height: 8px; }
.month-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.worked-dot { background: var(--green); }
.pot-dot { background: var(--blue); }
.dop-dot { background: var(--orange); }
.payout-dot { background: var(--red); }
.other-dot { background: var(--muted); }
.month-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: .72rem; }
.month-legend span { display: inline-flex; align-items: center; gap: 5px; }
.month-selection { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
@media (max-width: 600px) { .month-grid .day { min-height: 54px; height: 54px; } }

.split-pot-balances { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.split-pot-balances span { display: grid; gap: 5px; }
.entry-company small { display: block; font-size: .7rem; }

.personal-company { display:grid; gap:8px; padding:14px 0; border-bottom:1px solid var(--line); }
.personal-company.has-balance { background:#f1f3f5; color:#666; padding:14px; }

.overtime-fields { display:flex; align-items:center; flex-wrap:wrap; gap:16px; }
.overtime-fields > label:first-child { flex:1; min-width:150px; }
.overtime-fields .overtime-toggle { display:flex; flex-direction:row; align-items:center; gap:8px; }
.overtime-toggle input { width:auto; }

.entry-distribution { display:grid; gap:8px; padding:16px; margin:16px 0; border:1px solid var(--line); background:#f1f8ff; border-radius:10px; }
.entry-distribution > div { display:flex; justify-content:space-between; gap:12px; }
.undo-agenda { display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:12px; margin:12px auto; max-width:1200px; background:#f1f8ff; border-radius:10px; }
.entry-row { grid-template-columns:minmax(0,1fr) 66px; }
.entry-actions { display:grid; gap:4px; }
.entry-actions button { padding:4px; font-size:.75rem; min-height:30px; }
.pot-history-table { overflow-x:auto; }
.pot-history-table table { width:100%; border-collapse:collapse; }
.pot-history-table th,.pot-history-table td { padding:10px 6px; border-bottom:1px solid var(--line); text-align:left; }
.pot-history-table td:nth-child(n+3) { white-space:nowrap; }
.pot-history-dialog { max-width:760px; }

.daily-allowance-field { display: grid; gap: 6px; align-content: start; }
.daily-allowances .daily-allowance-toggle { display: flex; align-items: center; gap: 7px; }
.daily-allowance-toggle input[type="checkbox"] { width: 16px; height: 16px; margin: 0; flex: 0 0 auto; }

.premium-fields { border:1px solid var(--border, #d5dce5); border-radius:10px; padding:16px; min-width:0; }
.premium-fields .premium-toggle { display:flex; flex-direction:row; align-items:center; gap:10px; margin-bottom:12px; }
.premium-fields .premium-toggle input { width:auto; }
.premium-fields .form-grid { margin:0; }

/* Interactive guide: isolated practice next to the complete text reference. */
.guide-mode-shell { display:grid; gap:20px; }
.guide-view[hidden] { display:none !important; }
.guide-mode-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.guide-mode-heading p, .practice-eyebrow { color:var(--blue-dark); font-size:.72rem; font-weight:800; letter-spacing:.08em; margin:0 0 6px; }
.guide-mode-heading h2 { margin:0; }
.guide-mode-heading > span { color:var(--muted); }
.guide-mode-switch { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.guide-mode-switch button { text-align:left; display:grid; gap:5px; padding:17px 20px; border:2px solid var(--line); background:white; border-radius:12px; color:var(--ink); }
.guide-mode-switch button span { font-size:.85rem; font-weight:400; }
.guide-mode-switch .selected { border-color:var(--blue); background:#eef8ff; }
.practice-guide { display:grid; gap:18px; }
.practice-hero { padding:32px; border-radius:14px; background:var(--navy); color:white; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.practice-hero p { color:#79cffc; font-size:.74rem; font-weight:800; letter-spacing:.09em; margin:0 0 10px; }
.practice-hero h1 { font-size:clamp(1.8rem,4vw,2.8rem); margin:0 0 12px; line-height:1.12; }
.practice-hero span { color:#dfedf9; }
.practice-hero .practice-badge { flex-shrink:0; padding:10px 14px; border:1px solid #52708d; border-radius:25px; color:#b4efdc; font-size:.8rem; }
.practice-safety { margin:0; color:var(--muted); line-height:1.6; }
.practice-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.practice-steps button { display:flex; align-items:center; gap:8px; padding:12px 10px; border:1px solid var(--line); border-radius:10px; color:var(--muted); background:white; }
.practice-steps button span { width:25px; height:25px; border-radius:50%; background:var(--surface); display:grid; place-items:center; flex-shrink:0; }
.practice-steps .active { color:var(--blue-dark); border-color:var(--blue); background:#eef8ff; }
.practice-steps .active span { color:white; background:var(--blue); }
.practice-layout { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr); gap:22px; align-items:start; }
.practice-workbench, .practice-balances { background:white; border:1px solid var(--line); border-radius:14px; padding:24px; min-width:0; }
.practice-workbench h2, .practice-balances h2 { margin:0 0 10px; font-size:1.3rem; }
.practice-workbench > p { line-height:1.6; }
.practice-workbench .premium-fields { margin:16px 0; }
.practice-workbench .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.practice-entry-fields { border:0; margin:0; padding:0; min-width:0; }
.practice-presets { display:flex; gap:8px; flex-wrap:wrap; margin:20px 0; }
.practice-presets button { font-size:.8rem; padding:9px 12px; border-radius:20px; }
.practice-tip { padding:14px 16px; border-left:3px solid var(--blue); background:#eff8ff; color:var(--ink); font-size:.9rem; }
.practice-day { padding:14px 16px; background:var(--surface); border-radius:8px; display:flex; gap:12px; justify-content:space-between; flex-wrap:wrap; }
.practice-balances { position:sticky; top:20px; }
.practice-balances > p { font-size:.82rem; color:var(--muted); line-height:1.5; }
.practice-pot { border:1px solid #a4d5c4; background:var(--green-soft); border-radius:12px; padding:18px; display:grid; gap:6px; margin-top:14px; }
.practice-pot > strong { font-size:2rem; color:#126348; font-variant-numeric:tabular-nums; }
.practice-pot > small { color:var(--muted); }
.practice-pot.premium { background:#eff6ff; border-color:#bdd5ef; }
.practice-pot.premium > strong { color:var(--blue-dark); }
.practice-received { display:grid; gap:8px; padding:18px 0; }
.practice-received strong { font-size:1.5rem; font-variant-numeric:tabular-nums; }
.practice-proposal { padding:16px; border:1px dashed var(--line); border-radius:10px; }
.practice-proposal h3 { font-size:.95rem; margin:0 0 12px; }
.practice-proposal > div { display:flex; justify-content:space-between; gap:10px; margin:10px 0; font-size:.9rem; }
.practice-proposal > small { display:block; margin-top:14px; color:var(--muted); line-height:1.5; }
.practice-warning { padding:14px; background:#fff3e4; border:1px solid #eccba0; color:#704300; border-radius:8px; line-height:1.6; }
.practice-feedback { color:#126348; min-height:1.6em; margin:14px 0 0; font-size:.9rem; }
.practice-footer { display:flex; gap:12px; align-items:center; flex-wrap:wrap; justify-content:space-between; padding:10px 0; }
.practice-footer .actions { margin:0; }
.practice-history { display:grid; gap:12px; margin:20px 0; }
.practice-history article { display:grid; gap:7px; padding:16px; border:1px solid var(--line); border-radius:10px; }
.practice-history article span { color:var(--muted); font-size:.9rem; }
@media (max-width:850px) {
  .practice-layout { grid-template-columns:1fr; }
  .practice-balances { position:static; }
  .practice-hero { flex-direction:column; align-items:flex-start; }
  .practice-steps { display:flex; overflow-x:auto; padding-bottom:5px; }
  .practice-steps button { flex-shrink:0; }
  .guide-mode-heading { align-items:flex-start; flex-direction:column; gap:8px; }
}
@media (max-width:480px) {
  .guide-mode-switch { grid-template-columns:1fr; }
  .practice-hero, .practice-workbench, .practice-balances { padding:18px; }
  .practice-workbench .form-grid { grid-template-columns:1fr; }
}

.practice-workbench > label, .practice-entry-fields > label { display:grid; gap:8px; margin:14px 0; font-weight:700; }
.practice-workbench select, .practice-workbench input:not([type="checkbox"]) { width:100%; min-width:0; padding:11px 12px; border:1px solid var(--line); border-radius:8px; background:white; color:var(--ink); font:inherit; }

/* First access, guided practice help and clear account choices. */
.guide-welcome { max-width:900px; margin:28px auto; padding:clamp(24px,5vw,48px); background:white; border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow); }
.guide-welcome > p:first-child { color:var(--blue-dark); font-weight:800; font-size:.75rem; letter-spacing:.08em; }
.guide-welcome h1 { font-size:clamp(2rem,5vw,3rem); line-height:1.12; margin:12px 0; }
.guide-welcome > span { color:var(--muted); line-height:1.6; }
.guide-welcome-options { display:grid; gap:12px; margin:28px 0; }
.guide-welcome-options button { display:grid; gap:8px; text-align:left; padding:20px; border-radius:12px; }
.guide-welcome-options strong { font-size:1.1rem; }
.guide-welcome-options span { font-weight:400; line-height:1.5; }
.guide-welcome-note { font-size:.9rem; line-height:1.6; color:var(--muted); }
.practice-help-toggle { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:18px 0; }
.practice-help-toggle span { color:var(--muted); font-size:.85rem; }
.practice-help { padding:18px; border:1px solid #b3d5eb; border-radius:10px; background:#f1f9ff; margin-bottom:20px; }
.practice-help h3 { margin:0 0 10px; font-size:1rem; }
.practice-help ol { padding-left:22px; line-height:1.65; }
.practice-help li { margin:10px 0; }
.practice-help small { display:block; margin-top:12px; color:var(--muted); line-height:1.5; }
.auth-mode-switch { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:8px 0; }
.auth-mode-switch button { border:2px solid var(--line); border-radius:10px; padding:12px; background:white; color:var(--ink); }
.auth-mode-switch button[aria-pressed="true"] { border-color:var(--blue); background:#edf8ff; color:var(--blue-dark); }
.auth-recovery { border:1px solid #eccba0; background:#fff7eb; border-radius:12px; padding:18px; }
.auth-recovery p { margin:0 0 12px; line-height:1.6; }
.auth-recovery .actions { display:flex; flex-wrap:wrap; gap:10px; margin:0; }
.auth-feedback { padding:16px; border:1px solid var(--line); border-radius:10px; background:#f1f9ff; line-height:1.6; }
.auth-feedback p { margin:0; }
@media(max-width:480px) { .auth-mode-switch { gap:8px; } .guide-welcome { margin:12px 0; } }
.auth-recovery { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:12px; }

.agenda-note { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }

.entry-edit.note-entry { grid-template-columns: 110px minmax(0, 1fr); }
.entry-edit.note-entry .entry-company { display: none; }
@media (max-width: 600px) { .entry-edit.note-entry { grid-template-columns: 1fr; } }
