/* Theme: one bright, calm look in forest green and lime. No dark mode.
   Loaded last, so it restyles styles.css and plus.css without editing them. */

:root {
  color-scheme: light;
  --page: #f4f7f3; --surface: #ffffff; --surface-2: #edf2ed; --pop: #ffffff; --text: #12261d; --text-2: #3d5046; --muted: #63756a;
  --grid: #e6ece6; --axis: #c9d4cc; --border: rgba(18, 38, 29, 0.12); --hover: rgba(18, 38, 29, 0.05);
  --accent: #1c6442; --accent-ink: #ffffff; --accent-soft: #e1f0e5; --series-1: #1c6442; --series-2: #9bc92f;
  --seq-1: #124a2c; --seq-2: #1c6442; --seq-3: #57a077; --seq-4: #a9d3b6; --pos: #1c6442;
  --forest: #14382a; --forest-2: #1d4a38; --lime: #b8e34b;
  --tag-good: #dcefdc; --tag-warn: #fdeecb; --tag-serious: #fbe0cc; --tag-bad: #ffe3de; --tag-info: #d9e8f2;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(18, 38, 29, 0.06), 0 14px 36px rgba(18, 38, 29, 0.12);
  --font: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

body { font-size: 15px; line-height: 1.5; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
a { font-weight: 500; }
h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 14px; }

/* ---------- sidebar */
.sidebar {
  background: var(--forest); border-right-color: transparent; padding: 20px 14px 16px; gap: 14px;
  --text: #f3f8f3; --text-2: #c9dacd; --muted: #93ad9c; --border: rgba(255, 255, 255, 0.13); --hover: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.07); --accent-soft: rgba(255, 255, 255, 0.12); --accent: var(--lime);
}
.sidebar select { color: #f3f8f3; color-scheme: dark; height: 42px; font-size: 15px; }
.sidebar select option { background: #14382a; color: #f3f8f3; }
.sidebar kbd { display: none; }
.brand { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; }
.sidebar .brand { padding: 2px 8px 6px; }
.biz-switch select { border-color: var(--border); background-color: rgba(255, 255, 255, 0.06); border-radius: 10px; }
.biz-switch select:hover { background-color: var(--hover); }
.search-btn { height: 42px; border-color: transparent; background: rgba(255, 255, 255, 0.06); color: var(--text-2); border-radius: 10px; font-size: 15px; padding: 0 12px; gap: 12px; }
.search-btn:hover { background: var(--hover); text-decoration: none; }
.sidebar nav { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.nav-group { gap: 3px; }
.nav-group + .nav-group { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.nav-link { min-height: 44px; padding: 0 12px; gap: 12px; border-radius: 10px; font-size: 15.5px; font-weight: 600; color: var(--text-2); }
.nav-link .ic { width: 20px; height: 20px; }
.nav-link:hover { background: var(--hover); color: #ffffff; }
.nav-link.active { background: var(--lime); color: #14382a; box-shadow: none; }
.nav-link.active .ic { color: #14382a; }
#plusAi .ic { color: var(--lime); }
.me-box { margin-top: 0; padding: 14px 6px 0; }
.me-box .who { font-size: 14px; line-height: 1.3; }
.me-box .who b { color: #ffffff; }
.avatar { background: var(--lime); color: #14382a; }
.sidebar .icon-btn { color: var(--text-2); width: 36px; height: 36px; }

/* ---------- page frame */
.topbar { position: static; border-bottom: 0; background: transparent; backdrop-filter: none; padding: 30px 40px 6px; gap: 10px; }
.topbar h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.topbar .sub { display: none; }
main { padding: 18px 40px 72px; max-width: 1240px; }
.hubbar { padding: 6px 40px 0; max-width: 1240px; }
.hub-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; width: fit-content; max-width: 100%; }
.hub-tabs a { padding: 8px 16px; border-radius: 10px; color: var(--text-2); font-weight: 600; white-space: nowrap; }
.hub-tabs a:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.hub-tabs a.on { background: var(--forest); color: #ffffff; }
.hub-desc { margin: 14px 2px 0; font-size: 16px; color: var(--text-2); max-width: 68ch; }
.period-note { font-size: 13px; }

/* ---------- surfaces */
.card { padding: 24px; border-radius: var(--radius); box-shadow: 0 1px 2px rgba(18, 38, 29, 0.04); }
.card-head { margin-bottom: 16px; align-items: center; }
.card-head .muted { font-size: 13.5px; }
.stack, .grid { gap: 20px; }
.tiles { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.tile { border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 1px 2px rgba(18, 38, 29, 0.04); }
.tile .label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.tile .value { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin: 6px 0 4px; }
.tile .foot { font-size: 13px; }
.tile.hero { background: var(--forest); border-color: transparent; color: #ffffff; grid-column: auto; }
.tile.hero .label { color: var(--lime); }
.tile.hero .value { font-size: 30px; }
.tile.hero .delta.flat, .tile.hero .foot { color: rgba(255, 255, 255, 0.72); }
.tile.hero .delta.up { color: var(--lime); }
.tile.hero .delta.down { color: #ffb3a8; }
.plus-tiles .tile { border-top: 0; }
.summary-strip .tile { box-shadow: none; padding: 14px 16px; }
.summary-strip .tile .value { font-size: 20px; }
.empty { padding: 44px 16px; font-size: 16px; color: var(--text-2); }
.loading { font-size: 16px; }

/* ---------- controls */
.btn { height: 42px; padding: 0 16px; border-radius: 10px; font-weight: 600; font-size: 15px; gap: 8px; border-color: var(--axis); }
.btn .ic { width: 18px; height: 18px; }
.btn.primary { background: var(--forest); color: #ffffff; }
.btn.primary:hover { background: var(--forest-2); filter: none; }
.btn.ghost { border-color: transparent; }
#exportBtn { border-color: transparent; background: transparent; color: var(--text-2); }
#exportBtn:hover { background: var(--hover); }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; }
input, select, textarea { border-radius: 10px; padding: 9px 12px; font-size: 15px; min-height: 42px; border-color: var(--axis); }
input[type="checkbox"], input[type="radio"] { min-height: 0; width: 18px; height: 18px; padding: 0; }
input[type="file"] { min-height: 0; }
label.field { font-size: 14px; gap: 6px; color: var(--text); }
label.check { font-size: 15px; }
.hint { font-size: 13px; }
.seg { border-radius: 10px; border-color: var(--axis); }
.seg button { padding: 9px 14px; font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--forest); color: #ffffff; }
.step { border-radius: 12px; padding: 14px 16px; font-weight: 600; }
.steps { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.linkish { font-size: 14px; }

/* ---------- tags */
.badge { padding: 4px 11px 4px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.badge.tone-good { background: var(--tag-good); }
.badge.tone-warn { background: var(--tag-warn); }
.badge.tone-serious { background: var(--tag-serious); }
.badge.tone-bad { background: var(--tag-bad); }
.badge.tone-info { background: var(--tag-info); }

/* ---------- tables and boards */
.toolbar { gap: 10px; margin-bottom: 16px; }
.toolbar .search { max-width: 380px; }
.toolbar .count { font-size: 13.5px; }
.table-wrap { margin: 0 -24px; }
.table { font-size: 15px; }
.table th, .table td { padding: 15px 14px; }
.table th:first-child, .table td:first-child { padding-left: 24px; }
.table th:last-child, .table td:last-child { padding-right: 24px; }
.table th { background: var(--surface); color: var(--muted); font-size: 13.5px; font-weight: 600; }
.table .num { font-variant-numeric: tabular-nums; }
.table .strong { font-weight: 700; }
.table tbody tr.clickable:hover td { background: #f3f8f1; }
.pager { font-size: 13.5px; }
.board-col { border-radius: 14px; padding: 12px; }
.board-card { border: 0; border-radius: 10px; padding: 12px; font-size: 14.5px; box-shadow: 0 0 0 1px var(--border), 0 2px 4px rgba(18, 38, 29, 0.06); }

/* ---------- things that float */
.modal-backdrop { background: rgba(14, 32, 24, 0.5); }
.modal { border-radius: 18px; background: var(--pop); box-shadow: var(--shadow); }
.modal > header { padding: 20px 24px; }
.modal > header h2 { font-size: 20px; }
.modal-body { padding: 24px; }
.modal > footer { padding: 16px 24px; }
.plus-fab-menu { background: var(--pop); border-radius: 14px; }
.plus-fab-btn { background: var(--lime); color: #14382a; }
.toast { border-radius: 12px; font-size: 15px; padding: 12px 16px; background: var(--forest); color: #ffffff; }
.cal-head div { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.cal-cell.today .cal-num { background: var(--forest); color: #ffffff; }
.meter-fill { background: linear-gradient(90deg, var(--accent), var(--lime)); }

/* ---------- home */
#plusChooser { display: none; }
.home-hello { margin: 0 0 4px; font-size: 17px; color: var(--text-2); }
.home-more-btn { justify-self: center; }
.agenda-row, .finding { font-size: 15px; }

/* ---------- bring your data in */
.bring p { margin: 0 0 16px; font-size: 15.5px; color: var(--text-2); }
.bring-list { display: grid; gap: 10px; }
.bring-row { display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 18px; border: 1px solid var(--axis); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.bring-row:hover { border-color: var(--forest); background: #f6faf4; text-decoration: none; }
.bring-row b { display: block; font-size: 16px; }
.bring-row span { display: block; color: var(--text-2); font-size: 14px; margin-top: 2px; font-weight: 400; }
.bring-row > div { flex: 1; min-width: 0; }
.bring-row em { font-style: normal; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* ---------- notes */
.notes { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.note-folders { display: grid; gap: 4px; padding: 12px; }
.note-folders h2 { font-size: 14px; color: var(--muted); font-weight: 600; margin: 4px 10px 8px; }
.folder-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.folder-btn:hover { background: var(--hover); }
.folder-btn.on { background: var(--accent-soft); color: var(--forest); }
.folder-btn .n { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 13.5px; }
.folder-btn span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.note-card { display: flex; flex-direction: column; gap: 8px; min-height: 150px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(18, 38, 29, 0.04); }
.note-card:hover { border-color: var(--forest); text-decoration: none; box-shadow: 0 6px 18px rgba(18, 38, 29, 0.08); }
.note-card b { font-size: 17px; line-height: 1.3; }
.note-card p { margin: 0; color: var(--text-2); font-size: 14.5px; font-weight: 400; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.note-card .meta { margin-top: auto; display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 500; }
.note { max-width: 820px; padding: 0; overflow: hidden; }
.note-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--grid); }
.note-top .spacer { flex: 1; }
.note-top label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.note-tools { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 20px; border-bottom: 1px solid var(--grid); background: #fafcf9; }
.note-tools button { height: 38px; padding: 0 14px; border: 1px solid var(--axis); border-radius: 9px; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.note-tools button:hover { border-color: var(--forest); }
.note-title { display: block; width: 100%; border: 0; padding: 26px 32px 6px; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; background: transparent; min-height: 0; border-radius: 0; }
.note-title:focus { outline: 0; }
.note-body { min-height: 360px; padding: 8px 32px 40px; font-size: 17px; line-height: 1.65; outline: 0; }
.note-body:empty::before { content: attr(data-ph); color: var(--muted); }
.note-body p { margin: 0 0 10px; }
.note-body h2 { font-size: 22px; margin: 22px 0 8px; }
.note-body h3 { font-size: 18px; margin: 18px 0 6px; color: var(--text); }
.note-body h4 { font-size: 16px; margin: 14px 0 6px; }
.note-body ul, .note-body ol { margin: 0 0 12px; padding-left: 26px; }
.note-body li { margin: 4px 0; }
.note-body ul.todos { list-style: none; padding-left: 0; }
.note-body ul.todos li { position: relative; padding-left: 34px; }
.note-body ul.todos li::before { content: ""; position: absolute; left: 0; top: 4px; box-sizing: border-box; width: 20px; height: 20px; border: 2px solid var(--axis); border-radius: 6px; background: var(--surface); cursor: pointer; }
.note-body ul.todos li.done { color: var(--muted); text-decoration: line-through; }
.note-body ul.todos li.done::before { content: "\2713"; background: var(--forest); border-color: var(--forest); color: #ffffff; font-size: 13px; font-weight: 700; line-height: 16px; text-align: center; }
.note-body blockquote { margin: 0 0 12px; padding: 4px 16px; border-left: 4px solid var(--lime); color: var(--text-2); }

/* ---------- sign in */
.auth { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); padding: 0; background: var(--page); place-items: stretch; }
.auth-side { background: var(--forest); color: #ffffff; padding: 56px 56px 48px; display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.auth-side .brand { color: #ffffff; font-size: 22px; }
.auth-side .brand img { width: 36px; height: 36px; }
.auth-side h2 { font-size: 40px; line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; max-width: 13ch; color: #ffffff; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 18px; color: #dbe8de; }
.auth-points li { display: flex; gap: 12px; align-items: center; }
.auth-points li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); flex: none; }
.auth-safe { margin: 12px 0 0; font-size: 15px; color: #a9c2b1; max-width: 40ch; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { max-width: 460px; border-radius: 20px; padding: 36px; box-shadow: var(--shadow); border-color: transparent; }
.auth-card > .brand { display: none; }
.auth-card h1 { margin: 0 0 6px; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.auth-card .muted { font-size: 15.5px; color: var(--text-2); }
.auth-card form { gap: 16px; margin-top: 22px; }
.auth-card form .btn.primary { height: 48px !important; font-size: 16px; }
.auth-card .switch { font-size: 15px; margin-top: 20px; }
.google-box { margin-top: 22px; display: grid; gap: 16px; }
.google-btn { justify-content: center; height: 48px; font-size: 16px; width: 100%; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--grid); }
.google-box + form { margin-top: 16px; }

@media (min-width: 861px) { .shell { grid-template-columns: 272px minmax(0, 1fr); } }
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .main-wrap { min-width: 0; }
  .topbar { padding: 16px 16px 4px; }
  .topbar h1 { font-size: 24px; }
  .topbar .actions { flex-wrap: wrap; }
  .topbar .actions .btn { height: 40px; padding: 0 12px; }
  #exportBtn { display: none; }
  main { padding: 14px 16px 88px; }
  .hubbar { padding: 4px 16px 0; }
  .hub-tabs { flex-wrap: nowrap; overflow-x: auto; width: auto; }
  .hub-desc { font-size: 15px; }
  .card { padding: 18px; }
  .table-wrap { margin: 0 -18px; }
  .table th:first-child, .table td:first-child { padding-left: 18px; }
  .notes { grid-template-columns: 1fr; }
  .note-title { padding: 20px 18px 4px; font-size: 24px; }
  .note-body { padding: 8px 18px 32px; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 28px 24px; gap: 12px; }
  .auth-side h2 { font-size: 26px; max-width: none; }
  .auth-points, .auth-safe { display: none; }
  .auth-main { padding: 24px 16px 40px; }
  .auth-card { padding: 24px; }
}

/* ---------- waiting */
.loading, .boot { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 72px 16px; color: var(--muted); font-size: 15px; }
.loading::before, .boot::before { content: ""; width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--grid); border-top-color: var(--forest); animation: bt-spin 0.8s linear infinite; }
@keyframes bt-spin { to { transform: rotate(360deg); } }
main > * { animation: bt-in 0.22s ease-out; }
@keyframes bt-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  .loading::before, .boot::before { animation-duration: 2.4s; }
  main > * { animation: none; }
}

/* ---------- choosing an AI */
.ai-now { margin: 0 0 12px; }
.ai-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.ai-pick button { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--axis); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ai-pick button b { font-size: 16px; }
.ai-pick button span { font-size: 13px; color: var(--text-2); }
.ai-pick button:hover { border-color: var(--forest); }
.ai-pick button[aria-pressed="true"] { border-color: var(--forest); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--forest); }
.google-box .btn + .btn { margin-top: -6px; }

/* ---------- find a section */
.nav-find { position: relative; }
.nav-find input { width: 100%; height: 42px; border: 1px solid transparent; border-radius: 10px; background: #ffffff; color: #12261d; font-size: 15px; padding: 0 12px; }
.nav-find input::placeholder { color: #63756a; }
.nav-find-list { position: absolute; left: 0; right: 0; top: 48px; z-index: 20; display: grid; gap: 2px; padding: 6px; border-radius: 12px; background: #ffffff; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28); }
.nav-find-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px; color: #12261d; }
.nav-find-list a:hover, .nav-find-list a:first-child { background: #e1f0e5; text-decoration: none; }
.nav-find-list b { font-weight: 600; }
.nav-find-list span { font-size: 13px; color: #63756a; }
.nav-find-list p { margin: 0; padding: 10px 12px; color: #3d5046; font-size: 14px; }
.ai-ask p { margin: 0 0 16px; font-size: 15.5px; color: var(--text-2); }
.ai-ask .hint { margin: 16px 0 0; font-size: 13.5px; }

.ai-ask .ai-pick { grid-template-columns: 1fr 1fr; }

/* ---------- the page a customer sees */
.pubdoc { min-height: 100vh; padding: 40px 16px 56px; background: var(--page); }
.pub-card { max-width: 720px; margin: 0 auto; padding: 36px; }
.pub-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.pub-from { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--accent); }
.pub-card h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.pub-meta { display: flex; flex-wrap: wrap; gap: 12px 40px; padding: 18px 0; border-top: 1px solid var(--grid); border-bottom: 1px solid var(--grid); margin-bottom: 8px; }
.pub-meta span, .pub-total span { display: block; font-size: 13.5px; color: var(--muted); }
.pub-meta b { font-size: 16px; }
.pub-total { display: grid; justify-items: end; gap: 8px; padding: 20px 0; }
.pub-total div { text-align: right; }
.pub-total .big b { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.pub-actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding-top: 20px; border-top: 1px solid var(--grid); }
.pub-actions form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; flex: 1 1 320px; }
.pub-actions form .field { flex: 1 1 220px; }
.pub-ok { margin: 0; flex: 1 1 100%; font-size: 16px; font-weight: 600; color: var(--accent); }
.pub-foot { text-align: center; margin: 20px 0 0; color: var(--muted); font-size: 13.5px; }
@media (max-width: 860px) { .pub-card { padding: 22px; } .pub-card h1 { font-size: 24px; } }
@media print { .pubdoc { padding: 0; background: #ffffff; } .pub-card { box-shadow: none; border: 0; } .pub-actions, .pub-foot, #toasts { display: none !important; } }

/* ---------- the till */
.till { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.till-find { display: flex; gap: 10px; margin-bottom: 16px; }
.till-find input { flex: 1; height: 48px; font-size: 16px; }
.till-find .btn { height: 48px; }
.till-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.till-item { display: grid; gap: 4px; align-content: start; min-height: 104px; padding: 14px; border: 1px solid var(--axis); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.till-item:hover { border-color: var(--forest); background: #f6faf4; }
.till-item:active { transform: scale(0.98); }
.till-item b { font-size: 15.5px; line-height: 1.25; }
.till-item span { font-weight: 700; color: var(--accent); }
.till-item small { font-size: 12.5px; color: var(--muted); }
.till-item small.out { color: var(--bad-text); }
.till-cart h2 { margin-bottom: 12px; }
.till-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--grid); }
.till-line span { display: block; font-size: 13px; color: var(--muted); }
.till-qty { display: flex; align-items: center; gap: 10px; }
.till-qty button { width: 36px; height: 36px; border: 1px solid var(--axis); border-radius: 10px; background: var(--surface); font-size: 20px; line-height: 1; cursor: pointer; color: var(--text); }
.till-qty button:hover { border-color: var(--forest); }
.till-sum { display: grid; gap: 6px; padding: 16px 0; }
.till-sum div { display: flex; justify-content: space-between; align-items: baseline; }
.till-sum span { color: var(--text-2); }
.till-sum .big b { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.till-pay { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.till-pay button { flex: 1 1 auto; height: 42px; padding: 0 14px; border: 1px solid var(--axis); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.till-pay button[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: #ffffff; }
.till-done { width: 100%; height: 54px; justify-content: center; font-size: 17px; }
.till-cart .btn.ghost { width: 100%; justify-content: center; margin-top: 6px; }
.till-cart .hint { margin: 10px 0 0; }
.till-video { width: 100%; border-radius: 12px; background: #000000; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 1000px) { .till { grid-template-columns: 1fr; } }

/* ---------- clocking in, comments, automations, public forms */
.clock { margin-bottom: 20px; }
.clock-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.clock-row .field { min-width: 220px; }
.clock-state { flex: 1 1 220px; display: grid; gap: 2px; }
.clock-state b { font-size: 18px; }
.clock-state span { color: var(--text-2); font-size: 14px; }
.clock-btn { height: 54px; padding: 0 32px; font-size: 17px; }
.rec-comments { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--grid); }
.rec-comments h3 { font-size: 16px; color: var(--text); margin-bottom: 12px; }
.rc-list { display: grid; gap: 10px; margin-bottom: 12px; }
.rc-list .muted { margin: 0; }
.rc { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.rc b { font-size: 14px; }
.rc span { margin-left: 8px; font-size: 12.5px; color: var(--muted); }
.rc p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rc-add { display: flex; gap: 10px; }
.rc-add input { flex: 1; }
.auto-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.auto-card p { margin: 6px 0 0; color: var(--text-2); }
.auto-switch { display: inline-flex; align-items: center; gap: 10px; border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--text-2); cursor: pointer; padding: 6px; }
.auto-switch i { position: relative; width: 52px; height: 30px; border-radius: 999px; background: var(--axis); transition: background 0.15s; }
.auto-switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.15s; }
.auto-switch[aria-checked="true"] { color: var(--accent); }
.auto-switch[aria-checked="true"] i { background: var(--forest); }
.auto-switch[aria-checked="true"] i::after { transform: translateX(22px); }
.auto-switch:disabled { opacity: 0.6; cursor: default; }
.pub-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pub-card .form-grid .full, .pub-card .form-grid .field.full { grid-column: 1 / -1; }
@media (max-width: 640px) { .pub-card .form-grid { grid-template-columns: 1fr; } .auto-card { flex-direction: column; align-items: flex-start; } .rc-add { flex-direction: column; } }

/* ---- booking times ---- */
.pub-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 6px; }
.pub-slots p { grid-column: 1 / -1; margin: 0; }
.pub-slot { font: inherit; font-weight: 600; padding: 11px 8px; border-radius: 10px; border: 1px solid #cfd9d2; background: #fff; color: #14382a; cursor: pointer; transition: border-color .15s, background .15s; }
.pub-slot:hover { border-color: #14382a; }
.pub-slot[aria-pressed="true"] { background: #14382a; border-color: #14382a; color: #fff; }
.pub-slot:focus-visible { outline: 3px solid #b8e34b; outline-offset: 2px; }
.pub-none { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fdf3d7; color: #5c4400; }
.hours-days { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.hours-day { position: relative; }
.hours-day input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.hours-day span { display: block; padding: 8px 14px; border-radius: 999px; border: 1px solid #cfd9d2; background: #fff; font-weight: 600; color: #14382a; }
.hours-day input:checked + span { background: #14382a; border-color: #14382a; color: #fff; }
.hours-day input:focus-visible + span { outline: 3px solid #b8e34b; outline-offset: 2px; }

/* ---- payroll ---- */
.payrun-note { margin: 0 0 16px; color: #4a5a51; max-width: 70ch; }
.payrun-wrap { overflow-x: auto; margin-top: 16px; }
.payrun-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.payrun-table th { text-align: left; font-weight: 600; color: #4a5a51; padding: 8px 10px; border-bottom: 1px solid #dfe6e1; white-space: nowrap; }
.payrun-table td { padding: 8px 10px; border-bottom: 1px solid #eef2ef; vertical-align: middle; }
.payrun-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.payrun-table input[type="number"] { width: 112px; text-align: right; padding: 6px 8px; }
.payrun-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: #14382a; }
.payrun-table tfoot td { border-bottom: 0; font-weight: 700; padding-top: 12px; }
.payrun-table tfoot .muted { font-weight: 400; margin-left: 6px; }
.payrun-table tr.is-done td { color: #7b8a81; }
.pr-tag { display: block; font-size: 12px; color: #7b6a00; }
.payrun-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 14px; }
.payrun-places div { display: grid; gap: 2px; background: #f1f6f2; border-radius: 12px; padding: 10px 12px; }
.payrun-places b { font-size: 16px; }
.payrun-places small { color: #4a5a51; }
.pay-places { margin-bottom: 16px; padding: 20px 24px; }
.pay-places h3 { margin: 0 0 2px; }
.pay-places p { margin: 0; }
.payrun-table input:disabled { background: #f1f4f2; color: #7b8a81; }
.pub-card .field > span { display: block; font-weight: 600; }

/* ---- for your accountant ---- */
.taxpack .card { padding: 20px 24px; }
.taxpack h3 { margin: 0 0 4px; }
.tp-range .form-grid { max-width: 520px; }
.tp-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.tp-range p { margin: 0; }
.tp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.tp-card { display: grid; gap: 6px; background: #fff; border: 1px solid #e3e9e5; border-radius: 16px; padding: 18px 20px; }
.tp-card span { color: #4a5a51; font-size: 14px; }
.tp-card b { font-size: 26px; letter-spacing: -0.01em; color: #14382a; font-variant-numeric: tabular-nums; }
.tp-card.main { background: #14382a; border-color: #14382a; }
.tp-card.main span { color: #b8e34b; }
.tp-card.main b { color: #fff; }
.tp-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
@media (max-width: 980px) { .tp-cols { grid-template-columns: minmax(0, 1fr); } }
.tp-table { margin-top: 8px; }
.tp-table .tp-head td { padding-top: 18px; font-weight: 700; color: #14382a; border-bottom: 1px solid #dfe6e1; }
.tp-table .tp-total td { font-weight: 700; }
.tp-table .tp-grand td { font-weight: 800; font-size: 16px; background: #f1f6f2; }
.tp-small { font-size: 13px; margin: 12px 0 0; }
.tp-checks, .tp-files { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.tp-checks li { padding: 10px 12px; border-radius: 10px; background: #fdf3d7; color: #5c4400; }
.tp-checks li.ok { background: #e9f5e1; color: #1f4a12; }
.tp-files { gap: 0; }
.tp-files li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eef2ef; }
.tp-files small { color: #4a5a51; white-space: nowrap; }
.payslip { break-after: page; page-break-after: always; margin-bottom: 24px; }
.payslip:last-child { break-after: auto; page-break-after: auto; }

/* ---- home: metrics first ---- */
.onboarding.onb-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 18px; }
.onb-mini > :not(.card-head):not(.steps) { display: none; }
.onb-mini .card-head { display: contents; }
.onb-mini h2 { order: 1; margin: 0; font-size: 15px; }
.onb-mini .steps { order: 2; display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; margin: 0; }
.onb-mini .step.done { display: none; }
.onb-mini .step { padding: 6px 12px; }
.onb-mini #hideOnboarding { order: 3; margin-left: auto; }
.tile[data-go] { cursor: pointer; transition: box-shadow .15s, transform .15s; }
.tile[data-go]:hover { box-shadow: 0 6px 18px rgba(20, 56, 42, .12); transform: translateY(-1px); }
.tile[data-go]:focus-visible { outline: 3px solid #b8e34b; outline-offset: 2px; }
.plus-soon .soon-sub { margin: 14px 0 4px; font-size: 13px; font-weight: 700; color: #4a5a51; }
.plus-soon .soon-sub.late { color: #a33a1c; }
.auto-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 20px; }
.auto-hint > div { display: grid; gap: 2px; flex: 1 1 260px; }
.auto-hint span { color: #4a5a51; }
/* ---- one search box ---- */
.nav-find-list .nf-group { margin: 0; padding: 8px 12px 2px; font-size: 12px; font-weight: 700; color: #6a7a71; }
/* ---- checkout ---- */
.till .till-how { margin: 12px 0 8px; font-weight: 600; color: #14382a; }
.till-jump { display: none; }
@media (max-width: 860px) {
  .till-jump { display: block; position: sticky; bottom: 14px; z-index: 5; width: calc(100% - 76px); margin: 14px 0 0; padding: 14px 16px; border: 0; border-radius: 14px; background: #14382a; color: #fff; font: inherit; font-weight: 700; text-align: left; box-shadow: 0 8px 22px rgba(20, 56, 42, .28); cursor: pointer; }
  .till-jump[hidden] { display: none; }
}

/* ---- home welcome banner ---- */
.home-hello.home-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 0 0 14px; padding: 26px 30px; border-radius: 20px; color: #fff; font-size: 15px;
  background: radial-gradient(circle at 88% -30%, rgba(184, 227, 75, .55), transparent 44%), radial-gradient(circle at 104% 130%, rgba(184, 227, 75, .22), transparent 46%), linear-gradient(120deg, #14382a 0%, #1c5a40 62%, #23704e 100%);
  box-shadow: 0 14px 34px rgba(20, 56, 42, .22); }
.home-hero h2 { margin: 0 0 6px; font-size: 30px; line-height: 1.15; letter-spacing: -.01em; color: #fff; }
.home-hero p { margin: 0; color: #d9ead0; }
.home-hero p b { margin-left: 10px; color: #b8e34b; }
.home-hero p i { margin-left: 10px; font-style: normal; opacity: .85; }
.hero-side { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 14px; background: rgba(255, 255, 255, .14); }
.hero-side:empty { display: none; }
.hero-side > span { font-size: 13px; font-weight: 700; letter-spacing: .02em; color: #e8f3df; }
.tile[data-go] { border-top: 4px solid transparent; }
.tile[data-go="accounting"] { border-top-color: #b8e34b; }
.tile[data-go="orders"] { border-top-color: #23704e; }
.tile[data-go="customers"] { border-top-color: #14382a; }
@media (max-width: 640px) { .home-hello.home-hero { padding: 20px; } .home-hero h2 { font-size: 24px; } .home-hero p b, .home-hero p i { display: block; margin: 4px 0 0; } }
/* ---- language switch on the sign-in page ---- */
.auth-lang { position: fixed; top: 16px; right: 16px; z-index: 60; display: flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid #dfe6e1; border-radius: 999px; box-shadow: 0 6px 18px rgba(20, 56, 42, .12); }
.auth-lang button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font: inherit; font-weight: 600; color: #14382a; cursor: pointer; }
.auth-lang button[aria-pressed="true"] { background: #14382a; color: #fff; }
.auth-lang button:focus-visible { outline: 3px solid #b8e34b; outline-offset: 2px; }
.home-hero .hero-text { flex: 1 1 0; min-width: 240px; }
.home-hero .hero-side { flex: 0 0 auto; }
.hero-side .seg { flex-wrap: wrap; }
.lk-tasks { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e3e9e5; }
.lk-tasks h3 { margin: 0 0 4px; font-size: 15px; }
.lk-task { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #f1f6f2; color: inherit; text-decoration: none; }
.lk-task:hover { background: #e6f0e8; }
.lk-task span { color: #4a5a51; font-size: 13px; white-space: nowrap; }
.home-hero .hero-text { flex: 1 1 420px; }
/* ---- payment systems ---- */
.pay-lead { margin: 0 0 10px; color: #4a5a51; }
.pay-kinds button[aria-pressed="true"] { border-color: #14382a; box-shadow: inset 0 0 0 1px #14382a; background: #f1f6f2; }
.pay-kinds button:focus-visible { outline: 3px solid #b8e34b; outline-offset: 2px; }
.pay-panel { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e3e9e5; }
.pay-panel h3 { margin: 0; font-size: 16px; }
.pay-panel ol { margin: 8px 0 14px; padding-left: 20px; color: #4a5a51; }
.pay-panel li { margin: 3px 0; }
.pay-note { margin: 12px 0 0; font-size: 13px; max-width: 72ch; }
.pay-line { margin: 8px 0 14px; color: #4a5a51; max-width: 72ch; }
.pay-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Home: the period buttons belong in the welcome banner. They stay hidden in the top bar while the page loads. */
#pageActions:not(.keep-range) .seg:has([data-days]) { display: none; }
