/*
 * Snac Fresh Toned (design system v1.0, "Snac Fresh Admin Portal" handoff): the product layer of the Snac Fresh brand
 * for the staff console. Loaded after theme.css and admin.css, so it restyles the platform's existing classes
 * (sidebar, top bar, card, table, pill, buttons, forms, flash) without changing any page.
 *
 * Rules from the design system: 2px ink frames, 1.5px soft ink on controls and rows; hard shadow only on the one primary
 * action; Space Grotesk 700 sentence-case titles, DM Sans body, JetBrains Mono column heads and labels; four status
 * tones (act now, needs attention, done, not started); seashell canvas, white top bar, ink sidebar.
 */
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --seashell: #FAF6F0; --shell2: #F6EDE2; --shell3: #EFE2D3;
  --pink: #E93372; --pink-d: #C81F5B; --teal: #00CACC; --teal-d: #008F91; --ink: #383838; --orange: #FF6B1A; --green: #7EBF50;
  --muted: rgba(56,56,56,.74); --faint: rgba(56,56,56,.55); --hair: rgba(56,56,56,.13); --line: rgba(56,56,56,.28);
  --act-bg: var(--pink); --act-fg: #fff; --att-bg: #FFE6D6; --att-fg: #A23E06; --att-bd: #F7B48C; --ok-bg: #E5F1DA; --ok-fg: #3D6720; --idle-bd: rgba(56,56,56,.42);
  --display: "Space Grotesk", system-ui, sans-serif; --body: "DM Sans", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --bw: 2px; --r: 14px; --r-sm: 10px; --sh-pri: 3px 3px 0 0 var(--ink); --sh-pop: 4px 4px 0 0 var(--ink); --ease: cubic-bezier(.2,.8,.2,1);
  --sidebar-width: 252px;
  --bs-body-font-family: var(--body); --bs-body-color: var(--ink); --bs-body-bg: var(--seashell); --bs-link-color: var(--ink); --bs-link-color-rgb: 56,56,56;
}

/* ─── Base ─────────────────────────────────────────────────────────────────── */
body { background: var(--seashell); color: var(--ink); font-family: var(--body); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-underline-offset: 2px; }
a:hover { color: var(--pink); }
:focus-visible, button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--teal-d) !important; outline-offset: 2px; box-shadow: none !important; }
code { font-family: var(--mono); font-size: .82em; background: var(--shell2); padding: .05em .35em; border-radius: 6px; color: var(--ink); }
.muted, .hint, dl.facts dt { color: var(--muted); }

/* ─── Sidebar: ink, reversed wordmark, groups, account at the foot ─────────── */
#sidebar-wrapper { background: var(--ink) !important; color: var(--seashell); padding: 18px 12px 14px; }
@media (min-width: 768px) { body:not(.sidebar-collapsed) #sidebar-wrapper { width: var(--sidebar-width); min-width: var(--sidebar-width); } }
/* Phones and tablets: hidden until the menu button slides it over the page (theme.js: body.sidebar-open). */
@media (max-width: 767.98px) { #sidebar-wrapper { padding: 0; } body.sidebar-open #sidebar-wrapper { padding: 18px 12px 14px; } }
.sb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 2px 0 16px 10px; margin-bottom: 10px; border-bottom: 1px solid rgba(250,246,240,.14); }
.sb-brand { display: block; padding-top: 4px; text-decoration: none; }
.sb-brand img { height: 24px; display: block; }
.sb-brand span { display: block; margin-top: 9px; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(250,246,240,.62); }
.sb-icon { display: none; }
.sb-icon img { width: 32px; height: 32px; display: block; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 !important; }
.sidebar-link { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 10px; border: 0; border-radius: var(--r-sm); color: rgba(250,246,240,.86); text-decoration: none; font-weight: 500; line-height: 1.25; }
.sidebar-link i { width: 1.1rem; text-align: center; opacity: .8; }
.sidebar-link:hover, .sidebar-link:focus-visible { background: rgba(250,246,240,.08); color: var(--seashell); }
.sidebar-link.active { background: var(--teal); color: var(--ink); font-weight: 700; border: 0; }
.sidebar-link.active i { opacity: 1; }
.sb-grp { margin: 2px 0 0; }
.sb-grp > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 36px; padding: 0 10px; border-radius: var(--r-sm);
  color: rgba(250,246,240,.62); font-size: 13px; font-weight: 700; cursor: pointer; user-select: none; }
.sb-grp > summary::-webkit-details-marker { display: none; }
.sb-grp > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s var(--ease); margin-right: 4px; }
.sb-grp[open] > summary::after { transform: rotate(45deg); }
.sb-grp > summary:hover { background: rgba(250,246,240,.08); color: var(--seashell); }
.sb-sub { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 8px; }
.sb-sub .sidebar-link { padding-left: 18px; }
.sb-foot { margin-top: auto; padding: 12px 0 0; border-top: 1px solid rgba(250,246,240,.14); }
.sb-me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; color: var(--seashell); }
.sb-me .av { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--teal); color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 700; }
.sb-me > span:nth-child(2) { flex: 1; min-width: 0; }
.sb-me b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-me small { display: block; font-size: 11.5px; color: rgba(250,246,240,.62); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-out { margin: 4px 0 0; }
.sb-out button { width: 100%; justify-content: flex-start !important; background: none !important; border: 0 !important; color: rgba(250,246,240,.7) !important;
  min-height: 34px !important; padding: 0 10px !important; border-radius: var(--r-sm) !important; font-weight: 500 !important; box-shadow: none !important; font-style: normal !important; text-transform: none !important; }
.sb-out button:hover { background: rgba(250,246,240,.08) !important; color: var(--seashell) !important; }

/* Collapsed on desktop: a 64px rail with the S icon, the top links and the open group's page icons (theme.js toggles
   body.sidebar-collapsed); the toggle opens the full menu again. */
@media (min-width: 768px) {
  body.sidebar-collapsed #sidebar-wrapper { width: 64px !important; min-width: 64px !important; padding: 16px 10px; overflow-y: auto; overflow-x: hidden; }
  body.sidebar-collapsed .sb-brand, body.sidebar-collapsed .sb-me > span:nth-child(2), body.sidebar-collapsed .sidebar-link span,
  body.sidebar-collapsed .sb-grp > summary, body.sidebar-collapsed .sb-out button span { display: none; }
  body.sidebar-collapsed .sb-icon { display: block; }
  body.sidebar-collapsed .sb-head { padding-left: 0; justify-content: center; }
  body.sidebar-collapsed .sb-grp > .sb-sub { padding: 0; }
  body.sidebar-collapsed .sidebar-link, body.sidebar-collapsed .sb-sub .sidebar-link { justify-content: center; padding: 6px 0; }
  body.sidebar-collapsed .sb-me { justify-content: center; padding: 6px 0; }
  body.sidebar-collapsed .sb-out button { justify-content: center !important; padding: 0 !important; }
}

/* ─── Top bar: white, 2px ink rule ─────────────────────────────────────────── */
.topbar { background: #fff !important; border-bottom: var(--bw) solid var(--ink) !important; min-height: 64px; padding: 10px 28px !important; position: sticky; top: 0; z-index: 20; justify-content: flex-start !important; gap: 12px; flex-wrap: nowrap; }
.topbar .navbar-brand { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; color: var(--ink) !important; }
.sidebar-toggle { width: 40px; height: 40px; display: inline-flex !important; align-items: center; justify-content: center; padding: 0 !important;
  border: 1.5px solid var(--line) !important; border-radius: var(--r-sm) !important; background: #fff !important; color: var(--ink) !important; }
.sidebar-toggle:hover { border-color: var(--ink) !important; background: var(--seashell) !important; }
.tb-date { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ─── Page ─────────────────────────────────────────────────────────────────── */
.content { max-width: 1280px; padding: 28px !important; gap: 18px; }
.content h1 { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 8px; text-wrap: balance; }
.content h2 { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.015em; margin: 0 0 10px; }
.content h3 { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.content > h1:first-child { font-size: 34px; }

/* Cards and tiles: 2px ink frame, 14px radius, no shadow */
.card { background: #fff; border: var(--bw) solid var(--ink) !important; border-radius: var(--r); box-shadow: none !important; padding: 20px 22px; }
.card.raised { box-shadow: var(--sh-pop) !important; }
.card .card { border-width: 1.5px !important; border-color: var(--line) !important; }

/* Tables: shell-2 header band, mono column heads, hairline rows, seashell hover */
.content table:not(.table) { border-collapse: separate; border-spacing: 0; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.content table:not(.table) th { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  background: var(--shell2); border: 0; padding: 11px 10px; white-space: nowrap; vertical-align: middle; }
.content table:not(.table) thead th:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); padding-left: 14px; }
.content table:not(.table) thead th:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; padding-right: 14px; }
.content table:not(.table) td { padding: 11px 10px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.content table:not(.table) td:first-child { padding-left: 14px; }
.content table:not(.table) td:last-child { padding-right: 14px; }
.content table:not(.table) tbody tr:hover > td { background: var(--seashell); }
.content table:not(.table) tbody tr:last-child > td { border-bottom: 0; }

/* Status: the four tones. Our existing pill classes map onto them. */
.pill, .tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-family: var(--body); font-size: 12px; font-weight: 700; line-height: 1.3;
  border: 1.5px dashed var(--idle-bd); background: transparent; color: var(--muted); }                               /* not started / paused */
.pill.active, .pill.created, .pill.updated, .pill.delivered, .pill.sent, .pill.approved, .pill.ok, .pill.live, .pill.paid { background: var(--ok-bg); color: var(--ok-fg); border: 1.5px solid transparent; }   /* done */
.pill.pending, .pill.invited, .pill.replayed, .pill.warning, .pill.warn, .pill.att { background: var(--att-bg); color: var(--att-fg); border: 1.5px solid var(--att-bd); }                          /* needs attention */
/* A pill with the "att" tone is never the dashboard's .att attention card (same class name): keep the pill shape. */
.pill.att { flex-direction: row; gap: 0; min-width: auto; padding: 3px 10px; border-radius: 999px; transition: none; }
.pill.att:hover { transform: none; }
.pill.suspended, .pill.closed, .pill.rejected, .pill.error, .pill.failed, .pill.critical, .pill.withdrawn, .pill.act { background: var(--act-bg); color: var(--act-fg); border: 1.5px solid transparent; } /* act now */
.tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; padding: 2px 7px; }

/* Buttons: pill shapes. Plain = ink; .secondary = white with ink border; .pink / .primary = the one primary action. */
button:not([class*="btn-"]):not(.sidebar-toggle):not(.navbar-toggler), .btn:not([class*="btn-"]) {
  min-height: 40px; padding: 0 16px; border: var(--bw) solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--seashell);
  font-family: var(--body); font-weight: 700; font-size: 13.5px; transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s; }
button:not([class*="btn-"]):not(.sidebar-toggle):not(.navbar-toggler):hover, .btn:not([class*="btn-"]):hover { background: #2A2A2A; border-color: #2A2A2A; color: var(--seashell); }
button.secondary, .btn.secondary { background: #fff !important; color: var(--ink) !important; border: var(--bw) solid var(--ink) !important; }
button.secondary:hover, .btn.secondary:hover { background: var(--seashell) !important; color: var(--ink) !important; border-color: var(--ink) !important; }
button.pink, .btn.pink, button.primary, .btn.primary { background: var(--pink) !important; border-color: var(--ink) !important; color: #fff !important; box-shadow: var(--sh-pri);
  font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .01em; font-size: 13px; }
button.pink:hover, .btn.pink:hover, button.primary:hover, .btn.primary:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 0 var(--ink); }
button.link { color: var(--ink) !important; font-weight: 700; }
td button:not([class*="btn-"]), td .btn:not([class*="btn-"]) { min-height: 34px; padding: 0 14px; font-size: 13px; }
td button.secondary, td .btn.secondary { border-width: 1.5px !important; border-color: var(--line) !important; }
td button.secondary:hover, td .btn.secondary:hover { border-color: var(--ink) !important; }
/* Every button is a pill (design review, Nov 2026). The rules above skip anything with a "btn-" class (btn-sm, btn-new,
   btn-pick, fba-btn-sm…), which fell back to square corners and a 1px border. Shape only: colours stay as each class sets
   them. Not the sidebar toggles, close crosses, link-style buttons or menu items, which are not buttons to look at. */
.btn:not(.btn-close):not(.btn-link):not(.btn-check):not(.dropdown-item),
button[class*="btn-"]:not(.btn):not(.btn-close):not(.btn-link):not(.btn-plain):not(.btn-close-search):not(.btn-search):not(.dropdown-item):not(.sidebar-toggle):not(.navbar-toggler) {
  border-radius: 999px; border-width: var(--bw); border-style: solid; }
button.btn-sm:not(.btn) { min-height: 34px; padding: 0 12px; font-family: var(--body); font-weight: 700; font-size: 13px; }
td button.secondary.btn-sm, td .btn.secondary.btn-sm { border-width: 1.5px !important; }

/* Forms: 2px ink fields, 12px radius, teal focus */
.content label, .login-wrapper label, dialog label { font-size: 13px; font-weight: 700; }
.content input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=submit]):not(.form-control),
.content select:not(.form-select), .content textarea:not(.form-control),
.login-wrapper input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
dialog input:not([type=checkbox]):not([type=radio]):not([type=hidden]), dialog select, dialog textarea, .drawer select, .drawer textarea, .drawer input[type=text] {
  min-height: 44px; padding: 10px 12px; border: var(--bw) solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); font-family: var(--body); font-size: 14px; }
td input:not([type=checkbox]):not([type=radio]), td select { min-height: 38px !important; border-width: 1.5px !important; border-color: var(--line) !important; }
.content input:focus, .content select:focus, .content textarea:focus, .login-wrapper input:focus, dialog input:focus, dialog select:focus, dialog textarea:focus, .drawer select:focus, .drawer textarea:focus {
  border-color: var(--ink) !important; outline: 2px solid var(--teal-d); outline-offset: 2px; box-shadow: none; }
input[type=checkbox], input[type=radio] { accent-color: var(--teal-d); }

/* Messages as callouts */
.flash { padding: 12px 14px; border-radius: 12px; font-weight: 600; border: 1.5px solid transparent; }
.flash.ok { background: var(--ok-bg); color: var(--ok-fg); border-color: transparent; }
.flash.err { background: var(--pink); color: #fff; border-color: transparent; }
.flash.warn { background: var(--att-bg); color: var(--att-fg); border-color: var(--att-bd); }
.flash.info { background: #fff; color: var(--ink); border-color: var(--line); font-weight: 500; }

/* Filters, pager, definition lists */
.pager { font-size: 13px; color: var(--muted); }
.pager a { font-weight: 700; }
dl.facts dt { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding-top: 2px; }

/* Dashboard tiles (KPI) */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.kpi { background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; text-decoration: none; color: var(--ink); }
a.kpi:hover { background: var(--seashell); color: var(--ink); }
.kpi .l { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi .v { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12.5px; color: var(--muted); }
.kpi.urgent { box-shadow: var(--sh-pop); }
.crumb { margin: 0; font-size: 12.5px; color: var(--muted); }

/* ─── Side menu, text only as in the handoff; counts in pink ─────────────── */
.sidebar-link { justify-content: space-between; }
.sidebar-link i { display: none; }
/* Long labels ("Account states and collections") wrap onto a second line instead of being cut off. */
.sidebar-link { white-space: normal; }
.sidebar-link > span:first-child { min-width: 0; overflow-wrap: anywhere; }
/* A fifth, informational tone (in progress, sent, with someone else), for ViewFormat::status(). */
.pill.info { background: #e3f8f8; color: var(--ink); border: 1.5px solid var(--teal); }
.ct { min-width: 26px; padding: 1px 7px; border-radius: 999px; background: var(--pink); color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 700; text-align: center; line-height: 1.5; }
.sidebar-link.active .ct { background: var(--ink); color: var(--seashell); }
@media (min-width: 768px) {
  body.sidebar-collapsed .sidebar-nav { display: none; }
  body.sidebar-collapsed .sb-foot { margin-top: auto; }
}

/* ─── Top bar: search, bell ────────────────────────────────────────────────── */
.tb-search { flex: 1 1 auto; max-width: 560px; position: relative; margin: 0 0 0 12px; }
.tb-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.tb-search input { width: 100%; height: 42px; padding: 0 16px 0 42px; border: var(--bw) solid var(--ink); border-radius: 999px; background: var(--seashell); color: var(--ink); font: inherit; font-size: 14px; }
.tb-search input:focus { outline: 2px solid var(--teal-d); outline-offset: 2px; background: #fff; }
.tb-r { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tb-ico { position: relative; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: var(--bw) solid var(--ink); border-radius: 50%; background: #fff; color: var(--ink); text-decoration: none; font-size: 17px; }
.tb-ico:hover { background: var(--seashell); color: var(--ink); }
.tb-ico .dot { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--pink); color: #fff; font-family: var(--mono); font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.tb-r .tb-ico:first-child { display: none; }
@media (max-width: 899.98px) { .tb-search { display: none; } .tb-r .tb-ico:first-child { display: inline-flex; } }

/* ─── Page header and the dashboard ────────────────────────────────────────── */
.ph { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ph-l { flex: 1 1 420px; min-width: 0; }
.ph h1 { margin: 6px 0 0 !important; font-size: 34px !important; }
.ph-d { margin: 6px 0 0; color: var(--muted); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.seg a { padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 13.5px; text-decoration: none; color: var(--ink); }
.seg a:hover { background: var(--seashell); color: var(--ink); }
.seg a.on { background: var(--ink); color: var(--seashell); }
.card-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-h h2 { margin: 0; }
.card-h h2 .muted { font-family: var(--body); font-size: 13px; font-weight: 500; margin-left: 8px; }
.card-h a { font-weight: 700; font-size: 13px; }
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.att { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; min-width: 0; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.att:hover { color: var(--ink); border-color: var(--ink); }
.att.t-act { border: var(--bw) solid var(--ink); box-shadow: var(--sh-pop); }
.att.t-act:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 0 var(--ink); }
.att.t-ok { background: var(--seashell); }
.att-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.att-n { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.att-l { font-weight: 700; font-size: 15px; line-height: 1.3; margin-top: 6px; }
.att-s { font-size: 13px; color: var(--muted); }
.results { list-style: none; margin: 0; padding: 0; }
.results li { padding: 10px 0; border-bottom: 1px solid var(--hair); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.results li:last-child { border-bottom: 0; }
.results a { font-weight: 700; }

/* ─── Collapse button beside the logo (the handoff's .sb-tog); the top bar's menu button only on phones ── */
.sb-tog { width: 38px !important; height: 38px; min-height: 38px !important; flex: none; display: inline-flex !important; align-items: center; justify-content: center; padding: 0 !important;
  border: 1.5px solid rgba(250,246,240,.28) !important; border-radius: 10px !important; background: none !important; color: var(--seashell) !important; box-shadow: none !important; font-size: 16px; }
.sb-tog:hover { background: rgba(250,246,240,.1) !important; border-color: rgba(250,246,240,.6) !important; }
.only-m { display: none !important; }
@media (max-width: 767.98px) { .only-m { display: inline-flex !important; } }
@media (min-width: 768px) {
  body.sidebar-collapsed .sb-head { flex-direction: column; align-items: center; gap: 14px; border-bottom: 0; }
}

/* ─── Alerts panel (the bell): slides over from the right ─────────────────── */
.scrim { position: fixed; inset: 0; background: rgba(56,56,56,.45); z-index: 1050; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1060; width: min(480px, 100vw); display: flex; flex-direction: column; background: var(--seashell);
  border-left: var(--bw) solid var(--ink); transform: translateX(100%); transition: transform .22s var(--ease); }
.drawer.on { transform: translateX(0); }
body.drawer-open { overflow: hidden; }
.drawer-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 16px; background: #fff; border-bottom: 1.5px solid var(--line); }
.drawer-h h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.015em; }
.drawer-h p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.drawer-h .x { width: 42px !important; height: 42px; min-height: 42px !important; padding: 0 !important; border: var(--bw) solid var(--ink) !important; border-radius: 50% !important;
  background: #fff !important; color: var(--ink) !important; display: inline-flex !important; align-items: center; justify-content: center; box-shadow: none !important; }
.drawer-h .x:hover { background: var(--seashell) !important; }
.drawer-b { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.drawer-f { padding: 14px 22px; background: #fff; border-top: 1.5px solid var(--line); font-weight: 700; }
.alert { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; margin: 0; }
.alert:hover { color: var(--ink); border-color: var(--ink); }
.alert.t-act { border: var(--bw) solid var(--ink); box-shadow: var(--sh-pop); }
.al-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.al-top b { font-size: 14.5px; }
.al-s { font-size: 13px; color: var(--muted); }

/* ─── Sign-in: the handoff's split screen (ink panel with the promise, framed card on seashell) ───────── */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--seashell); }
.lg-side { background: var(--ink); color: #fff; padding: 40px 44px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 100vh; }
.lg-side img { height: 34px; width: auto; align-self: flex-start; }
.lg-k { margin: 0 0 12px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.lg-t { margin: 0; font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1.15; letter-spacing: -.02em; max-width: 16ch; text-wrap: balance; }
.lg-f2 { margin: 0; font-size: 13.5px; color: rgba(255,255,255,.8); max-width: 36ch; }
.lg-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.lg-card { width: 100%; max-width: 420px; background: #fff; border: var(--bw) solid var(--ink); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.lg-card h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -.02em; line-height: 1.15; }
.lg-s { margin: -6px 0 0; color: var(--muted); line-height: 1.5; }
.lg-logo { display: none; height: 28px; width: auto; align-self: flex-start; }
.lg-f { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.lg-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.lg-field > label { font-size: 13px; font-weight: 700; margin: 0; }
.lg-card input:not([type=checkbox]):not([type=radio]):not([type=hidden]) { width: 100%; min-height: 46px; padding: 10px 14px; border: var(--bw) solid var(--ink); border-radius: 12px;
  background: #fff; color: var(--ink); font: inherit; font-size: 14.5px; }
.lg-card input:focus { outline: 2px solid var(--teal-d); outline-offset: 2px; box-shadow: none; }
.lg-pw { position: relative; display: block; }
.lg-pw input { padding-right: 70px !important; }
.lnk { border: 0 !important; background: none !important; padding: 0 !important; min-height: 32px !important; font: inherit; font-size: 13.5px !important; font-weight: 700 !important;
  text-decoration: underline !important; text-underline-offset: 3px; cursor: pointer; color: var(--ink) !important; box-shadow: none !important; display: inline-flex; align-items: center; }
.lg-pw .lnk { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.lg-err { margin: 0; color: var(--pink-d); font-weight: 600; font-size: 13.5px; line-height: 1.45; }
.lg-card .lg-submit { width: 100%; min-height: 50px !important; margin-top: 4px; background: var(--pink) !important; border: var(--bw) solid var(--ink) !important; color: #fff !important;
  box-shadow: var(--sh-pri) !important; font-weight: 900 !important; font-style: italic !important; text-transform: uppercase; letter-spacing: .01em; font-size: 14px !important; }
.lg-card .lg-submit:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 0 var(--ink) !important; background: var(--pink) !important; }
.callout { margin: 0; padding: 12px 14px; border-radius: 12px; font-weight: 600; border: 1.5px solid transparent; }
.callout.info { background: #fff; border-color: var(--line); color: var(--ink); font-weight: 500; }
.callout.ok { background: var(--ok-bg); color: var(--ok-fg); }
/* display: block — "att" is also the dashboard's Needs-attention card (.att, a flex column), which turned every amber callout's
   words, links and full stop into stacked lines (Staff Console review, Customer activity "stray ." bug). */
.callout.att { display: block; background: var(--att-bg); color: var(--att-fg); border-color: var(--att-bd); transition: none; }
.callout.act { background: var(--pink); color: #fff; }
.lg-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.lg-row form { margin: 0; display: inline-flex; }
.lg-card input.lg-code { font-family: var(--mono); font-size: 22px; letter-spacing: .35em; text-align: center; min-height: 52px; }
.lg-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; line-height: 1.5; }
.lg-key { display: inline-block; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .08em; background: var(--shell2); padding: 2px 8px; border-radius: 8px; word-break: break-all; }
.lg-codes { list-style: none; margin: 0; padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; background: var(--seashell); border: 1.5px dashed var(--idle-bd); border-radius: 12px;
  font-family: var(--mono); font-size: 15px; font-weight: 700; letter-spacing: .08em; text-align: center; }

@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .lg-side { display: none; }
  .lg-logo { display: block; }
  .lg-main { align-items: flex-start; padding: 32px 16px; }
  .lg-card { padding: 24px 20px; }
}

/* ─── Small screens: the sidebar slides over (theme.js), tighter page padding ─ */
@media (max-width: 767.98px) {
  .topbar { padding: 10px 14px !important; }
  .content { padding: 16px !important; }
  .content h1, .content > h1:first-child { font-size: 26px; }
}
@media print { .topbar, #sidebar-wrapper { display: none !important; } body { background: #fff; } .card { border-width: 1px !important; } }

/* Top bar: Ask Nouri and New order for a food business (the handoff's .btn-nouri / .btn-pri). */
.tb-r .btn { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none; }
.btn-nouri { padding: 0 14px 0 10px !important; }
.btn-new .bi { font-size: 15px; }
/* Staff console review (9 Nov 2026): both are full pills in the handoff, and Ask Nouri's label is bold. */
.tb-r .btn-nouri, .tb-r .btn-new, .btn-nouri { border-radius: 999px !important; }
.btn-nouri .lbl, .btn-nouri > span:last-child { font-weight: 700; }
.nl { --npk: var(--pink); --nac: var(--teal); display: inline-flex; align-items: center; font-size: 20px; line-height: 1; vertical-align: middle; }
.nl .so { position: relative; flex: none; width: .8em; height: .8em; border-radius: 50%; overflow: hidden; background: var(--npk); }
.nl .so::before { content: ""; position: absolute; inset: -20%; background: conic-gradient(from 90deg, var(--npk), var(--nac), var(--npk)); filter: blur(.1em); animation: nlspin 6.4s linear infinite; }
.nl .so i { position: absolute; inset: 24%; background: #fff; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation: nltw 3.2s ease-in-out infinite; }
@keyframes nlspin { to { transform: rotate(360deg); } }
@keyframes nltw { 50% { transform: rotate(90deg) scale(.8); } }
@media (prefers-reduced-motion: reduce) { .nl .so::before, .nl .so i { animation: none; } }
.drawer-h h2 .nl { font-size: 22px; margin-right: 4px; }
@media (max-width: 1280px) { .btn-new .xl { display: none; } }
@media (max-width: 1100px) { .btn-nouri .lbl { display: none; } .btn-nouri { width: 42px; padding: 0 !important; justify-content: center; } }
@media (max-width: 640px) { .btn-new .lg { display: none; } .btn-new { width: 42px; padding: 0 !important; justify-content: center; } }

/* New order drawer and page. */
.drawer-form > form { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.nf-field { display: flex; flex-direction: column; gap: 6px; }
.nf-field label, .nf-place > label, .nf-paste label { font-size: 13px; font-weight: 700; margin: 0; }
.nf-field select, .nf-field textarea, .nf-place input[type=text], .nf-paste textarea { width: 100%; }
.nf-hint { display: block; margin: 0; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.nf-orb-wrap { position: relative; }
.nf-orb-wrap textarea { padding-left: 40px; }
.nf-orb { position: absolute; left: 13px; top: 13px; width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(from 90deg, var(--pink), var(--teal), var(--pink)); }
.nf-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.nf-page { max-width: 560px; }
.nf-page form { display: flex; flex-direction: column; gap: 14px; }
.nf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.nf-side { position: sticky; top: 84px; }
@media (max-width: 1000px) { .nf-grid { grid-template-columns: minmax(0, 1fr); } .nf-side { position: static; } }
.nf-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.nf-inline select, .nf-inline input[type=search] { flex: 1 1 260px; min-width: 0; }
.nf-add { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.nf-add input[type=number] { width: 84px; }
.nf-paste { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; align-items: flex-start; }
.nf-prob { color: var(--pink-d); font-size: 12.5px; font-weight: 700; }
.nf-place { display: flex; flex-direction: column; gap: 10px; }
.nf-place fieldset { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; }
.nf-pay { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; font-weight: 400 !important; }
.nf-pay:has(input:checked) { border: var(--bw) solid var(--ink); }
.nf-pay input { margin-top: 3px; accent-color: var(--pink); }
.nf-pay b { display: block; font-size: 14px; }
.nf-pay.off { opacity: .6; cursor: not-allowed; }
.nf-totals { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 6px 0 0; padding-top: 10px; border-top: 1.5px solid var(--line); }
.nf-totals dt { font-weight: 400; color: var(--muted); }
.nf-totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.nf-totals .tot { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink); padding-top: 4px; }
@media (max-width: 640px) { .topbar .navbar-brand { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .topbar .tb-r { gap: 6px; } }

/* Sidebar account button and its menu (the handoff's .sb-me + .menu.acct): opens upwards; to the right of the rail. */
.sb-acct > summary { list-style: none; cursor: pointer; }
.sb-acct > summary::-webkit-details-marker { display: none; }
.sb-acct > summary.sb-me { width: 100%; }
.sb-acct > summary.sb-me:hover, .sb-acct[open] > summary.sb-me { background: rgba(250,246,240,.08); }
.sb-me .chev { font-size: 12px; opacity: .6; transition: transform .15s var(--ease); }
.sb-acct[open] .chev { transform: rotate(-90deg); }
.acct-menu { position: fixed; left: 14px; bottom: 82px; z-index: 1070; width: 280px; max-width: calc(100vw - 28px); display: flex; flex-direction: column; padding: 6px;
  background: #fff; color: var(--ink); border: var(--bw) solid var(--ink); border-radius: 12px; box-shadow: var(--sh-pop); }
.acct-h { display: flex; gap: 12px; align-items: center; padding: 10px 10px 12px; border-bottom: 1px solid var(--hair); margin-bottom: 6px; }
.acct-h .av { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--teal); color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; font-weight: 700; }
.acct-h > div { min-width: 0; }
.acct-h b { display: block; font-size: 15px; }
.acct-h small { display: block; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.acct-h .pill { margin-top: 6px; }
.acct-menu > a, .acct-menu .acct-out { display: flex; align-items: center; justify-content: flex-start !important; width: 100%; min-height: 38px; padding: 8px 10px; border: 0 !important; border-radius: 8px !important; background: none !important;
  color: var(--ink) !important; text-align: left; text-decoration: none; font-size: 13.5px; font-weight: 400; box-shadow: none !important; font-style: normal; text-transform: none; }
.acct-menu > a:hover, .acct-menu > a:focus-visible, .acct-menu .acct-out:hover, .acct-menu .acct-out:focus-visible { background: var(--seashell) !important; }
.acct-menu .acct-out { color: var(--pink-d) !important; font-weight: 700; }
.acct-menu hr { margin: 6px 4px; border: 0; border-top: 1px solid var(--hair); opacity: 1; }
.acct-menu form { margin: 0; }
@media (min-width: 768px) {
  body.sidebar-collapsed .sb-me .chev { display: none; }
  body.sidebar-collapsed .acct-menu { left: 74px; bottom: 14px; }
}
.pw-form { max-width: 520px; display: flex; flex-direction: column; gap: 6px; }
.pw-form label { margin: 8px 0 0; }
.pw-form button { margin-top: 16px; align-self: flex-start; }

/* Layout (staff console and Supplier Portal).
   - The main area sits right next to the sidebar and uses the full width: Bootstrap's .container-fluid centres it
     (margin: auto), which with a max-width left an empty band beside the sidebar on wide screens.
   - The sidebar stays on screen on desktop and its menu scrolls on its own; the page scrolls normally.
   - The content wrapper clips sideways overflow without becoming a scroll container (overflow-x: hidden made it one,
     which stopped the sticky top bar and could trap scrolling). Wide tables scroll inside .tablewrap. */
.content { max-width: none !important; width: 100%; margin-left: 0 !important; margin-right: 0 !important; }
#page-content-wrapper { overflow-x: hidden; overflow-x: clip; }
#sidebar-wrapper .sidebar-nav { min-height: 0; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(250,246,240,.25) transparent; }
#sidebar-wrapper .sb-head, #sidebar-wrapper .sb-foot { flex: none; }
@media (min-width: 768px) {
  /* Its own layer above the page (the sticky sidebar makes a stacking context, so without this its account menu opened
     behind the content); still below drawers and their scrim (1050+). */
  #sidebar-wrapper { position: sticky; top: 0; align-self: flex-start; height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; z-index: 30; }
  body.sidebar-collapsed #sidebar-wrapper { overflow: hidden; }
}
@media (max-width: 767.98px) {
  body.sidebar-open #sidebar-wrapper { display: flex; height: 100vh; height: 100dvh; overflow: hidden; }
}

/* Toasts: one bottom-centre stack for every message (saved, failed, warning, information). Rendered by the server
   for page messages, and by SFToast.show() for AJAX results; toned.js adds auto-dismiss and the close button. */
.sf-toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 1090; display: flex; flex-direction: column-reverse; gap: 10px;
  width: min(560px, calc(100vw - 32px)); pointer-events: none; }
.sf-toasts .sf-toast { position: static; inset: auto; transform: none; min-width: 0; max-width: none; width: 100%; margin: 0; pointer-events: auto;
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 16px; border: var(--bw) solid var(--ink);
  background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(56,56,56,.22); font-size: 14px; font-weight: 600; line-height: 1.4;
  animation: sftIn .22s var(--ease); }
.sf-toasts .sf-toast[hidden] { display: none; }
.sf-toasts .sf-toast.out { opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.sf-toast .ti { flex: none; font-size: 18px; line-height: 1.1; margin-top: 1px; }
.sf-toast .tm { flex: 1; min-width: 0; margin: 0; overflow-wrap: anywhere; padding-top: 1px; }
.sf-toast .tm a { color: inherit; font-weight: 800; }
.sf-toast .tx { flex: none; width: 30px !important; height: 30px; min-height: 30px !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important;
  background: rgba(255,255,255,.14) !important; color: inherit !important; display: inline-flex; align-items: center; justify-content: center; box-shadow: none !important; font-size: 13px; }
.sf-toast .tx:hover { background: rgba(255,255,255,.26) !important; }
.sf-toast.t-ok { background: var(--ink); }
.sf-toast.t-ok .ti { color: #9BE07A; }
.sf-toast.t-err { background: var(--pink); border-color: var(--ink); }
.sf-toast.t-warn { background: var(--att-bg); color: var(--att-fg); border-color: var(--att-fg); }
.sf-toast.t-warn .tx { background: rgba(162,62,6,.12) !important; }
.sf-toast.t-info { background: #fff; color: var(--ink); }
.sf-toast.t-info .ti { color: var(--teal-d); }
.sf-toast.t-info .tx { background: var(--shell2) !important; }
/* Slide only (no fade): if a background tab pauses the animation on its first frame, the message is still readable. */
@keyframes sftIn { from { transform: translateY(10px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .sf-toasts .sf-toast { animation: none; } .sf-toasts .sf-toast.out { transition: none; } }
@media print { .sf-toasts { display: none !important; } }
/* The supplier Help launcher sits bottom right; on phones the stack sits above it. */
@media (max-width: 640px) { body.sp .sf-toasts { bottom: 78px; } }

/* Page header actions, quick-filter chips and the shared pager (Portal/views/_pager.php). */
.ph-a { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ph-a .btn { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 13.5px; }
.chips a:hover { border-color: var(--ink); color: var(--ink); }
.chips a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips .ct { font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--shell2); color: var(--ink); }
.chips a.on .ct { background: var(--seashell); }
nav.pager { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hair); }
nav.pager .pg-info { font-size: 13px; color: var(--muted); }
nav.pager .pg-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
nav.pager .pg-links a, nav.pager .pg-links span { min-width: 38px; min-height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 13.5px; }
nav.pager .pg-links a { border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; }
nav.pager .pg-links a:hover { border-color: var(--ink); }
nav.pager .cur { background: var(--ink); color: #fff; font-weight: 700; }
nav.pager .off { color: var(--faint); }
@media (max-width: 720px) {
  .ph-a { width: 100%; }
  .ph-a .btn { flex: 1 1 auto; justify-content: center; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding: 0 16px 4px 0; scrollbar-width: none; }
  .chips a { flex: none; }
  nav.pager { justify-content: center; }
}

/* Page scrolling: Bootstrap animates every scroll (:root scroll-behavior: smooth), which makes in-page links and
   scripted scrolls lag or stall in slow or background tabs. Scroll straight there, and keep anchored sections clear of
   the sticky top bar. */
html { scroll-behavior: auto !important; scroll-padding-top: 84px; }

/* Toasts, exactly as the handoff's .toast: an ink pill, light semi-bold centred text and a hard teal shadow, sliding up
   from the bottom centre. Text only (the icon stays for screen readers as the role); click a toast to close it.
   Failures keep the same shape but in pink (and warnings amber) so a failure never looks like a success. */
.sf-toasts { align-items: center; gap: 10px; bottom: 24px; }
.sf-toasts .sf-toast { width: auto; max-width: min(560px, calc(100vw - 32px)); padding: 12px 18px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--seashell); box-shadow: 4px 4px 0 0 var(--teal); font-family: var(--body); font-size: 14.5px; font-weight: 600;
  line-height: 1.35; text-align: center; justify-content: center; cursor: pointer; }
.sf-toasts .sf-toast .ti, .sf-toasts .sf-toast .tx { display: none !important; }
.sf-toasts .sf-toast .tm { flex: 0 1 auto; padding: 0; }
.sf-toasts .sf-toast .tm a { color: inherit; text-decoration: underline; }
.sf-toasts .sf-toast.t-ok, .sf-toasts .sf-toast.t-info { background: var(--ink); color: var(--seashell); }
.sf-toasts .sf-toast.t-err { background: var(--pink); color: #fff; box-shadow: 4px 4px 0 0 var(--ink); }
.sf-toasts .sf-toast.t-warn { background: var(--att-bg); color: var(--att-fg); box-shadow: 4px 4px 0 0 var(--ink); }
@media (max-width: 640px) { .sf-toasts .sf-toast { border-radius: 14px; } }

/* Form buttons never sit against the field above them: a submit row at the end of a form (a paragraph or a block
   holding the button, or the button itself) gets room above it. Inline filter bars, where the button sits beside the
   fields in a flex row, are not affected. */
.content form > p:has(> button[type=submit]), .content form > p:has(> button:not([type])),
.content form > div:last-child:has(> button[type=submit]), .content form > button[type=submit],
.content form > .actions, .content form > .row:last-child:has(> button[type=submit]) { margin-top: 18px; }
.content form > p:has(> button[type=submit]) { margin-bottom: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Two-step sign-in by email (App\EmailCode, 16 Nov 2026): the sent message and the resend timer (otp.js). */
.lg-ok { margin: 0; color: #2f6b1d; font-weight: 600; font-size: 13.5px; line-height: 1.45; }
.lg-resend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 6px 0 0; }
.lg-resend .lg-s { margin: 0; font-size: 13.5px; }
.lg-resend button[disabled] { opacity: .6; cursor: default; text-decoration: none; }
