/* ClearMCA admin, UX v2.1 (owner, 27 Nov 2026): ClockIn Master's admin pattern in ClearMCA's brand. Loaded after
 * admin.css; it sets the tokens every screen reads and draws what every screen shares:
 *   the menu         ClockIn Master's dark sidebar (264px; a 72px icon rail when collapsed, which opens over the page on
 *                    hover): the brand, who is signed in, sections with small uppercase labels, line icons, the active
 *                    item as a solid pill, red count badges, modules with sub-pages behind a chevron, Collapse and Log out
 *                    at the foot, the version. A drawer below 900px.
 *   the header bar   white, 60px: the page's name (with where it sits) on the left; Refresh, alerts and who is signed in
 *                    on the right as light pills.
 *   the content      a light ground, generous padding, white cards with soft shadows, ClockIn Master's type sizes.
 *   the sign-in      ClockIn Master's split page: a white bar with the logo, "Welcome back" on the left, the card on the
 *                    right.
 * The font is the same file ClockIn Master's web dashboard serves (resources/fonts/PlusJakartaSans-latin.woff2,
 * byte-identical to assets/fonts/plus-jakarta-sans-latin.woff2), body text at Medium 500, as there. ClockIn Master's
 * navy and blue roles take ClearMCA's ledger green and brass. CSP: style-src 'self'; nothing inline. */

:root {
  /* type: ClockIn Master's sizes */
  --fs-2xs: 0.65625rem;  /* 10.5px */
  --fs-xs: 0.71875rem;   /* 11.5px */
  --fs-sm: 0.78125rem;   /* 12.5px */
  --fs: 0.84375rem;      /* 13.5px: body */
  --fs-md: 0.90625rem;   /* 14.5px */
  --fs-lg: 0.96875rem;   /* 15.5px: card titles */
  --fs-xl: 1.125rem;     /* 18px: the header bar's title */
  --fs-h1: 1.5rem;       /* 24px: a screen's own title */
  --fs-fig: 2rem;        /* 32px: key figures */
  --w-body: 500;
  /* ground, cards, lines */
  --paper: #eef2f0;
  --surface: #ffffff;
  --surface-2: #f7f9f8;
  --line: #e3e9e6;
  --line-strong: #cfd9d4;
  --hover: #f1f5f3;
  --text: #3a4b45;
  --muted: #5b6b65;
  /* the menu: ClockIn Master's navy role, in ClearMCA's ledger */
  --side-bg: #0b1f1a;
  --side-raised: #12302a;
  --side-line: rgba(255, 255, 255, 0.08);
  --side-text: #c6d4ce;
  --side-icon: #95ada3;
  --side-dim: #7d968c;
  --side-sub: #a9bdb5;
  --accent: #c9a866;      /* ClockIn Master's blue role: the active item, the primary action */
  --accent-ink: #0b1f1a;  /* text on the accent */
  --badge: #d92d20;
  /* shape */
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --card-shadow: 0 1px 2px rgba(11, 31, 26, 0.04), 0 6px 20px rgba(18, 58, 48, 0.06);
  --control-h: 38px;
  --control-h-sm: 32px;
  --page-x: 24px;
  --page-y: 20px;
  --side: 264px;
  --side-rail: 72px;
  --topbar: 60px;      /* the bar's measured height (app.js trackBarHeight), for screens sized to the window */
  --topbar-min: 60px;  /* the bar's own least height: a constant, so the measurement never feeds back into it */
}

body { font-weight: var(--w-body); font-size: var(--fs); }
h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-lg); font-weight: 700; }
h3 { font-size: var(--fs-md); font-weight: 700; }
strong, b { font-weight: 700; }
.sidebar :focus-visible { outline-color: var(--focus-dark); }

/* ---------- the frame ---------- */
.shell:not(.is-gate) .workspace { margin-left: var(--side); min-width: 0; transition: margin-left 180ms var(--ease-out); }
.shell.is-collapsed:not(.is-gate) .workspace { margin-left: var(--side-rail); }
.main { padding: var(--page-y) var(--page-x) 40px; }

/* ---------- the menu ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--side); display: flex; flex-direction: column;
  background: var(--side-bg); color: var(--side-text); overflow: hidden;
  transition: width 180ms var(--ease-out), box-shadow 180ms var(--ease-out), transform 200ms var(--ease-out);
}
.side-brand { flex: none; display: flex; align-items: center; height: 72px; padding: 0 18px; border-bottom: 1px solid var(--side-line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark {
  width: 36px; height: 36px; flex: none; border-radius: 9px; display: inline-grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 1.1875rem; letter-spacing: -0.02em;
}
.brand-text { display: grid; gap: 3px; min-width: 0; }
.brand-text img { display: block; width: 120px; height: auto; }
.brand-sub { color: var(--side-dim); font-size: var(--fs-2xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.side-user { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--side-line); min-width: 0; }
.whoami-avatar {
  width: 36px; height: 36px; flex: none; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--side-raised); color: var(--accent); font-size: var(--fs-xs); font-weight: 800; box-shadow: inset 0 0 0 1px rgba(201, 168, 102, 0.35);
}
.whoami-text { display: grid; min-width: 0; }
.whoami-name { color: #fff; font-weight: 600; font-size: var(--fs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.whoami-roles { color: var(--side-dim); font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-nav { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.14) transparent; padding-bottom: 8px; }
.nav-list, .nav-items, .nav-subs { list-style: none; margin: 0; padding: 0; }
.nav-section { padding-top: 16px; }
.nav-section-label { padding: 0 22px 8px; color: var(--side-dim); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.nav-link {
  position: relative; display: flex; align-items: center; gap: 12px; width: calc(100% - 16px); min-height: 40px; margin: 0 8px 2px; padding: 9px 14px;
  border: 0; border-radius: 8px; background: transparent; color: var(--side-text); font: inherit; font-size: 0.8125rem; font-weight: 500; text-align: left;
  text-decoration: none; cursor: pointer; white-space: nowrap; overflow: hidden; transition: background-color 120ms var(--ease-out), color 120ms var(--ease-out);
}
.nav-link:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--side-icon); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-link:hover .nav-icon { stroke: #fff; }
.nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav-link[aria-current="page"] { background: var(--accent); color: var(--accent-ink); font-weight: 650; }
.nav-link[aria-current="page"] .nav-icon { stroke: var(--accent-ink); }
.nav-badge {
  flex: none; min-width: 20px; height: 18px; padding: 0 6px; border-radius: var(--r-pill); background: var(--badge); color: #fff;
  font-size: var(--fs-2xs); font-weight: 700; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums;
}
.nav-badge[hidden] { display: none; }
.nav-chevron { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--side-dim); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 160ms var(--ease-out); }
.nav-parent[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-group-item.has-current > .nav-parent { color: #fff; }
.nav-group-item.has-current > .nav-parent .nav-icon { stroke: var(--accent); }
.nav-subs { padding: 2px 0 6px; }
.nav-link.nav-sub { min-height: 34px; padding: 7px 14px 7px 48px; font-size: 0.75rem; color: var(--side-sub); }
.nav-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #4a6a5f; }
.nav-link.nav-sub[aria-current="page"] { background: rgba(201, 168, 102, 0.16); color: #fff; font-weight: 600; }
.nav-link.nav-sub[aria-current="page"] .nav-dot { background: var(--accent); }
.side-foot { flex: none; border-top: 1px solid var(--side-line); padding: 8px 0 0; }
.side-row {
  display: flex; align-items: center; gap: 12px; width: calc(100% - 16px); min-height: 38px; margin: 0 8px 2px; padding: 8px 14px; border: 0; border-radius: 8px;
  background: transparent; color: var(--side-sub); font: inherit; font-size: 0.8125rem; font-weight: 500; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden;
}
.side-row:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.side-row .nav-icon { stroke: currentColor; }
.side-logout { color: #f2b8b0; }
.side-logout:hover { background: rgba(217, 45, 32, 0.16); color: #ffd9d4; }
.side-version { padding: 6px 12px 12px; color: var(--side-dim); font-size: 0.625rem; text-align: center; white-space: nowrap; }

/* collapsed: the 72px icon rail; it opens over the page on hover or keyboard focus */
@media (min-width: 900px) {
  .shell.is-collapsed .sidebar { width: var(--side-rail); }
  .shell.is-collapsed .sidebar.is-open { width: var(--side); box-shadow: 0 18px 44px -14px rgba(11, 31, 26, 0.55); }
  .shell.is-collapsed .sidebar:not(.is-open) :is(.brand-text, .whoami-text, .nav-label, .nav-chevron, .nav-section-label, .nav-subs) { display: none; }
  .shell.is-collapsed .sidebar:not(.is-open) :is(.side-brand, .side-user) { justify-content: center; padding-left: 0; padding-right: 0; }
  .shell.is-collapsed .sidebar:not(.is-open) .nav-section { padding-top: 10px; }
  .shell.is-collapsed .sidebar:not(.is-open) .nav-section + .nav-section { border-top: 1px solid var(--side-line); margin: 6px 16px 0; padding-top: 10px; }
  .shell.is-collapsed .sidebar:not(.is-open) .nav-section + .nav-section .nav-link { margin-left: -8px; margin-right: -8px; width: calc(100% + 16px); }
  .shell.is-collapsed .sidebar:not(.is-open) :is(.nav-link, .side-row) { justify-content: center; padding-left: 0; padding-right: 0; }
  .shell.is-collapsed .sidebar:not(.is-open) .nav-badge { position: absolute; top: 3px; right: 8px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 0.5625rem; box-shadow: 0 0 0 2px var(--side-bg); }
  .shell.is-collapsed .sidebar:not(.is-open) .side-version { font-size: 0; padding-bottom: 8px; }
  .shell.is-collapsed .sidebar:not(.is-open) .nav-group-item.has-current > .nav-parent { background: var(--accent); }
  .shell.is-collapsed .sidebar:not(.is-open) .nav-group-item.has-current > .nav-parent .nav-icon { stroke: var(--accent-ink); }
}
.rail-scrim { position: fixed; inset: 0; z-index: 45; background: rgba(11, 31, 26, 0.45); }

/* ---------- the header bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; min-height: var(--topbar-min); padding: 0 var(--page-x);
  background: #fff; border-bottom: 1px solid #e4e9e6; box-shadow: 0 1px 3px rgba(11, 31, 26, 0.05);
}
.topbar-menu { display: none; background: var(--surface-2); border: 1px solid var(--line); }
.topbar-title { flex: 0 1 auto; min-width: 0; display: grid; }
.topbar-crumb { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-crumb:empty { display: none; }
.topbar-crumb a { color: var(--muted); text-decoration: none; }
.topbar-crumb a:hover { color: var(--ink); text-decoration: underline; }
.topbar-crumb a::before { content: "‹ "; }
.topbar-name { color: #1b2723; font-size: var(--fs-xl); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { flex: none; margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* one header row: the screen's own heading (summary + actions) sits in the bar, after the title and before the person (app.js adoptHead) */
.topbar-slot { flex: 1 1 0; min-width: 0; display: flex; align-items: center; }
.topbar-slot:empty { display: none; }
.topbar-slot .page-head { flex: 1 1 auto; min-width: 0; min-height: 0; margin: 0; flex-wrap: nowrap; gap: 8px 16px; }
.topbar-slot .page-head > :is(div:first-child, .page-title) { flex: 1 1 0; min-width: 0; flex-wrap: nowrap; align-items: center; gap: 0 12px; }
.topbar-slot .page-head > :is(div:first-child, .page-title) > p { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: var(--fs-sm); font-weight: 500; line-height: 1.3; padding-top: 14px; }
.topbar:has(.topbar-crumb:empty) .topbar-slot .page-head > :is(div:first-child, .page-title) > p { padding-top: 0; }
.topbar-slot .page-head > :is(div:first-child, .page-title) > p.dash-hello { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
.topbar-slot .page-head > :is(div:first-child, .page-title) > p.dash-date { color: var(--muted); font-size: var(--fs-sm); }
.topbar-slot .page-head > .page-actions { flex: none; flex-wrap: nowrap; justify-content: flex-end; }
.top-pill {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid #e2e8e5; background: #f9fbfa; color: var(--lamp); font: inherit; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; cursor: pointer;
}
.top-pill:hover { border-color: var(--line-strong); background: #fff; }
.top-pill .icon { width: 16px; height: 16px; }
.top-icon { width: 36px; padding: 0; justify-content: center; }
/* How it works (owner, 28 Nov 2026): "How to" beside Refresh and the bell, its word shown at every width (never an icon alone) */
.top-howto .icon { width: 17px; height: 17px; }
/* the red play badge on "How to" and on every video row (owner, 28 Nov 2026: "red play button like YouTube so they know it") */
.howto-play { display: inline-grid; place-items: center; flex: none; width: 26px; height: 18px; border-radius: 5px; background: #e62117; }
.howto-play .icon, .top-howto .howto-play .icon { width: 11px; height: 11px; fill: #fff; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.top-howto .top-howto-label { white-space: nowrap; }
.top-count {
  position: absolute; top: -4px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill);
  background: var(--badge); color: #fff; font-size: 0.625rem; font-weight: 700; display: inline-grid; place-items: center; box-shadow: 0 0 0 2px #fff;
}
.top-count[hidden] { display: none; }
.top-avatar {
  width: 36px; height: 36px; flex: none; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--side-bg); color: var(--accent); font-size: var(--fs-xs); font-weight: 800;
}

/* ---------- a screen's own heading: the header bar carries the name, so the screen keeps its summary and actions ---------- */
.view > h1.page-h1, .view .page-head h1 { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.page-head { min-height: 38px; margin-bottom: 16px; }
.sk-view .page-head, .view.is-placeholder .page-head { display: none; }
.page-head p { color: var(--text); font-size: var(--fs); }
.view > .crumbs, .view > .rpt > .crumbs, .app-head > .crumbs { display: none; }
.app-head h1 { font-size: var(--fs-h1); font-weight: 700; }
/* the dashboard's greeting, as ClockIn Master's "Today across your stores" */
.page-head .dash-hello { color: var(--ink); font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.page-head .dash-date { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: var(--fs); }
.page-head .dash-date::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #0e9f6e; box-shadow: 0 0 0 3px rgba(14, 159, 110, 0.15); }
.view[data-route="dashboard"] .page-head > .page-title { display: grid; gap: 4px; }

/* ---------- cards, controls, tables, figures (ClockIn Master's sizes) ---------- */
:is(.panel, .table-wrap, .tile, .intg-card, .post-card, .sk-card, .rpt-toolbar, .action-bar, .week-strip, .inbox, .content-banner, .skipped-note) {
  border-radius: var(--r-lg); border-color: #e4eae7; box-shadow: var(--card-shadow);
}
.panel { padding: 18px 20px; }
.panel + .panel { margin-top: 16px; }
.grid-2, .stack, .detail-layout, .dash-grid, .rpt-grid, .rpt-kpis, .broker-top { gap: 16px; }
.panel-head { margin-bottom: 12px; }
.panel-head h2 { font-size: var(--fs-lg); font-weight: 700; }
.panel-head p { font-size: var(--fs-sm); }
.btn { height: var(--control-h); padding: 0 16px; border-radius: var(--r-pill); font-size: var(--fs); font-weight: 600; border-color: #dbe3df; }
.btn-small { height: var(--control-h-sm); padding: 0 13px; font-size: var(--fs-sm); }
.btn-quiet { padding: 0 10px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px -10px rgba(122, 90, 30, 0.8); }
.btn-primary:hover { background: var(--brass-hi); border-color: var(--brass-hi); }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; }
.input, .select { height: 40px; border-radius: var(--r); font-size: 0.875rem; font-weight: 500; padding: 0 12px; }
.textarea { border-radius: var(--r); font-size: 0.875rem; font-weight: 500; }
.field > span, .field > label, legend { font-size: var(--fs-sm); font-weight: 700; }
.filters { gap: 10px; margin-bottom: 16px; }
.filters .field { max-width: 230px; }
.filters .field > span { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.02em; }
.table { font-size: var(--fs); }
.table th, .table td { padding: 11px 14px; }
.table thead th { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 10px; padding-bottom: 10px; }
.table .sub { font-size: var(--fs-xs); }
.chip { font-size: var(--fs-xs); font-weight: 700; padding: 1px 9px; line-height: 19px; }
.facts { font-size: var(--fs); }
.facts dt, .facts dd { padding: 7px 0; }
.hint { font-size: var(--fs-sm); }
/* figures: ClockIn Master's bold sans numbers */
:is(.figure, .tally-figure, .app-amount, .summary-count, .rpt-kpi-amount) {
  font-family: var(--font); font-style: normal; font-weight: 700; letter-spacing: -0.02em;
}
.figure { font-size: var(--fs-fig); line-height: 1.12; }
.app-amount, .tally-figure, .summary-count { font-size: 1.375rem; }
.rpt-kpi-amount { font-size: 1.125rem; }
/* key-number cards: a coloured dot before the label, as ClockIn Master's tiles */
.tile { padding: 16px 18px; }
.tile-label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 600; color: var(--text); }
.tile-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, #16805e); }
.rpt-kpis > .tile:nth-child(2) { --dot: #c9a866; }
.rpt-kpis > .tile:nth-child(3) { --dot: #2b6cb0; }
.rpt-kpis > .tile:nth-child(4) { --dot: #0e9f6e; }
.rpt-kpis > .tile:nth-child(5) { --dot: #b45309; }
/* the dashboard's people lists (under "What to do next") */
.todo-name { font-size: 0.875rem; }

/* Conversations: the header bar is above it now; the screen has its own Refresh and alerts */
.shell[data-route="conversations"] :is(#top-refresh, #top-bell) { display: none; }
/* Messages & comments (owner, 1 Dec 2026): Conversations' own screen, with its own Refresh too */
.shell[data-route="social-inbox"] #top-refresh { display: none; }
.conv-search .conv-search-input { padding-left: 32px; height: 36px; }
.composer .composer-channel { height: 28px; font-size: var(--fs-xs); font-weight: 600; padding: 0 6px 0 10px; border-radius: var(--r-pill); }
.thread-head { flex-wrap: wrap; row-gap: 6px; }
.thread-title { flex: 1 1 240px; }
.thread-tools { margin-left: auto; }
.inbox-page { height: calc(100dvh - var(--topbar) - var(--page-y) - 16px); }
.main:has(.inbox-page) { padding-bottom: 16px; }
.conv-name { font-size: 0.875rem; }
.conv-preview { font-size: var(--fs-sm); }
.msg-text, .composer-text { font-size: 0.875rem; }

/* skeletons sit in the same frame */
.sk-inbox { height: calc(100dvh - var(--topbar) - 90px); }

/* ---------- the sign-in page (ClockIn Master's split layout) ---------- */
.shell.is-gate .main {
  min-height: 100vh; padding: 0; display: block; margin-left: 0;
  background-color: #f6f8f7;
  background-image:
    radial-gradient(780px 780px at 100% 0%, rgba(201, 168, 102, 0.16), rgba(201, 168, 102, 0) 70%),
    radial-gradient(620px 620px at 70% 80%, rgba(31, 107, 84, 0.10), rgba(31, 107, 84, 0) 70%),
    radial-gradient(560px 560px at 0% 100%, rgba(143, 217, 182, 0.14), rgba(143, 217, 182, 0) 70%);
}
.shell.is-gate .main > .loading { padding: 40vh 24px 0; text-align: center; color: var(--muted); }
.signin-page { min-height: 100vh; display: flex; flex-direction: column; }
.signin-top { background: rgba(255, 255, 255, 0.74); border-bottom: 1px solid rgba(11, 31, 26, 0.07); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); }
.signin-top-inner { max-width: 1180px; margin: 0 auto; min-height: 70px; padding: 0 24px; display: flex; align-items: center; gap: 12px; }
.signin-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-size: 1.078rem; font-weight: 800; letter-spacing: -0.02em; }
.signin-brand img { width: 132px; height: auto; display: block; }
.signin-brand span { padding-left: 12px; border-left: 1px solid var(--line-strong); }
.signin-top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.signin-prompt { color: var(--text); font-size: 0.809rem; font-weight: 600; }
.signin-ghost { height: 40px; padding: 0 16px; background: rgba(255, 255, 255, 0.8); }
.signin-grid {
  flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 56px 24px 72px; display: grid; align-items: center;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 64px;
}
.signin-intro { min-width: 0; }
.signin-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 15px 7px 13px; margin-bottom: 22px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.78); border: 1px solid rgba(122, 90, 30, 0.22); color: var(--lamp);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
}
.signin-dot { width: 9px; height: 9px; border-radius: 50%; background-image: linear-gradient(115deg, #1f6b54 0%, #c9a866 100%); }
.signin-h1 { font-size: 2.875rem; line-height: 1.09; font-weight: 800; letter-spacing: -0.035em; color: var(--ink); }
.signin-accent { background-image: linear-gradient(95deg, #1f6b54 5%, #5a6a2c 55%, #8a6420 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.signin-lead { margin-top: 20px; max-width: 520px; color: var(--text); font-size: 1.031rem; line-height: 1.6; }
.signin-card.gate-card {
  width: 100%; max-width: 520px; justify-self: end; display: grid; gap: 18px; padding: 36px; background: #fff;
  border: 1px solid #e3e9e6; border-radius: var(--r-xl); box-shadow: 0 2px 6px rgba(11, 31, 26, 0.05), 0 34px 80px -28px rgba(11, 31, 26, 0.38);
}
.signin-card-head { display: grid; gap: 8px; }
.signin-card-head h2 { font-size: 1.5rem; line-height: 1.25; font-weight: 800; letter-spacing: -0.03em; }
.signin-card-head .hint { color: var(--text); font-size: 0.916rem; line-height: 1.5; }
.signin-card .form-grid { gap: 18px; }
.signin-card .field > span { font-size: 0.8625rem; font-weight: 700; margin-bottom: 4px; }
.signin-card .input { height: 48px; border-radius: 12px; font-size: 0.906rem; padding: 0 14px; }
.signin-card .input:focus-visible { border-color: #1f6b54; box-shadow: 0 0 0 4px rgba(31, 107, 84, 0.14); }
.signin-submit.btn-block {
  height: 52px; border: 0; color: var(--accent-ink); font-size: 0.97rem; font-weight: 700;
  background-image: linear-gradient(115deg, #b38b46 0%, #c9a866 52%, #dcc391 100%); background-size: 170% 100%;
  box-shadow: 0 12px 28px -12px rgba(122, 90, 30, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: background-position 300ms var(--ease-out), transform 140ms var(--ease-out);
}
.signin-submit.btn-block:hover { background-position: 100% 0; }
.signin-forgot { text-align: center; }
.signin-forgot .link-button { color: var(--lamp); font-weight: 700; }
.signin-card .btn-google { height: 48px; border-radius: var(--r-pill); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: var(--fs-sm); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gate-card { width: min(420px, 100%); background: #fff; border-radius: var(--r-xl); padding: 28px; display: grid; gap: 16px; }
.shell.is-gate .main > .gate-card { margin: 15vh auto 0; }

/* ---------- smaller screens ---------- */
@media (max-width: 959px) {
  .signin-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px 16px 40px; align-items: start; }
  .signin-h1 { font-size: 1.875rem; letter-spacing: -0.03em; }
  .signin-lead, .signin-prompt { display: none; }
  .signin-eyebrow { margin-bottom: 12px; }
  .signin-card.gate-card { justify-self: stretch; max-width: none; padding: 22px; }
  .signin-top-inner { padding: 0 16px; min-height: 60px; }
  .signin-brand img { width: 112px; }
}
@media (max-width: 899px) {
  :root { --page-x: 16px; --page-y: 16px; --topbar: 56px; --topbar-min: 56px; }
  .sidebar { width: 280px; transform: translateX(-100%); box-shadow: 0 18px 44px -14px rgba(11, 31, 26, 0.55); }
  .sidebar.is-drawer-open { transform: none; }
  .shell:not(.is-gate) .workspace, .shell.is-collapsed:not(.is-gate) .workspace { margin-left: 0; }
  #side-collapse { display: none; }
  .topbar-menu { display: inline-grid; }
  .top-pill#top-refresh span { display: none; }
  .top-pill#top-refresh { width: 36px; padding: 0; justify-content: center; }
}
/* phones: touch-sized controls */
@media (max-width: 599px) {
  :root { --control-h: 40px; --control-h-sm: 36px; }
  .icon-btn { width: 36px; height: 36px; }
  .seg button { height: 32px; }
  .composer-channel { height: 32px; }
  .composer-info > summary { width: 36px; height: 36px; }
  .nav-link { min-height: 44px; }
  .top-avatar { display: none; }
  .topbar { flex-wrap: wrap; row-gap: 2px; padding-top: 6px; padding-bottom: 6px; }
  .topbar-title { flex: 1 1 0; }
  .topbar-slot { flex: 1 1 100%; order: 3; }
  .topbar-slot .page-head { flex-wrap: wrap; }
  .topbar-slot .page-head > :is(div:first-child, .page-title) { flex: 1 1 100%; }
  .topbar-slot .page-head > :is(div:first-child, .page-title) > p { white-space: normal; padding-top: 0; }
  /* the actions take the row and wrap inside it; flex: none sized them to one line of buttons, past a phone's edge
     (sit-regression F11 Workflows, F12 Consultations) */
  .topbar-slot .page-head > .page-actions { flex: 1 1 100%; min-width: 0; max-width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .topbar-slot .page-head > .page-actions > .btn { max-width: 100%; white-space: normal; }
  .week-step, .post-actions .btn { height: 40px; }
}

/* phones and tablets: the closed menu casts no shadow at the left edge, and its links leave the keyboard order
   (sit-regression 27 Nov 2026, F24). Hidden only after it has slid away; shown at once when it opens. */
@media (max-width: 899px) {
  .sidebar:not(.is-drawer-open) { box-shadow: none; visibility: hidden; transition: transform 200ms var(--ease-out), visibility 0s linear 200ms; }
  .sidebar.is-drawer-open { visibility: visible; }
}
