/* =====================================================================
   C38 SUPPORT — design system
   Editorial minimalism: warm paper, ink type, hairlines, one mango accent.
   Display: Fraunces (Latin) / Source Serif 4 (Cyrillic)
   Text:    Archivo (Latin) / Onest (Cyrillic)
   Figures: JetBrains Mono
   ===================================================================== */

@font-face { font-family: "C38 Serif"; src: url("../fonts/c38-serif-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-024F, U+0259, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215; }
@font-face { font-family: "C38 Serif"; src: url("../fonts/c38-serif-cyrl.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "C38 Sans"; src: url("../fonts/c38-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-024F, U+0259, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215; }
@font-face { font-family: "C38 Sans"; src: url("../fonts/c38-sans-cyrl.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "C38 Mono"; src: url("../fonts/c38-mono.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --brand: #F28C28;                 /* overridden from Admin → Branding */
  --brand-ink: color-mix(in srgb, var(--brand) 62%, #2a1400);
  --brand-soft: color-mix(in srgb, var(--brand) 11%, #fff);
  --brand-line: color-mix(in srgb, var(--brand) 38%, #fff);

  --canvas: #F7F5F0;
  --paper: #FFFFFF;
  --ink: #121211;
  --ink-2: #44423E;
  --ink-3: #85827B;
  --ink-4: #B3AFA6;
  --line: #E6E2DA;
  --line-2: #D5D0C5;
  --hover: #F3F0E9;

  --ok: #2E7D32;
  --warn: #B26A00;
  --bad: #B3261E;
  --info: #3D4E9E;

  --font-display: "C38 Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "C38 Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "C38 Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 4px; --r: 6px; --r-lg: 10px;
  --shadow-pop: 0 1px 0 rgba(18,18,17,.04), 0 18px 40px -18px rgba(18,18,17,.28);
  --ease: cubic-bezier(.2,.7,.2,1);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 400 15px/1.55 var(--font-sans); font-feature-settings: "ss01", "kern";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.ico.sm { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: var(--r-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r); z-index: 100; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- type */
h1, h2, h3, .display { margin: 0; font-weight: 500; letter-spacing: -.012em; }
.display { font: 500 clamp(32px, 4.4vw, 46px)/1.06 var(--font-display); letter-spacing: -.022em; }
h1, .h1 { font: 500 clamp(26px, 3vw, 32px)/1.15 var(--font-display); letter-spacing: -.018em; }
h2, .h2 { font: 500 21px/1.25 var(--font-display); }
h3, .h3 { font: 600 15px/1.35 var(--font-sans); letter-spacing: 0; }
p { margin: 0 0 12px; }
.lede { font-size: 16.5px; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.eyebrow { font: 600 11px/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.mono, .tnum { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.num { font: 500 13px/1 var(--font-mono); letter-spacing: .02em; color: var(--ink-2); }
.figure { font: 400 40px/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; }

/* ---------------------------------------------------------------- layout */
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.main { padding: 36px 0 80px; min-height: calc(100vh - 64px); }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head .eyebrow { display: block; margin-bottom: 10px; }
.stack > * + * { margin-top: 16px; }
.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap-gap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.right { margin-left: auto; }
.hr { height: 1px; background: var(--line); border: 0; margin: 20px 0; }

/* ---------------------------------------------------------------- top bar */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--ink); color: #fff; font: 600 11px/1 var(--font-mono); letter-spacing: .02em; position: relative; }
.brand-mark::after { content: ""; position: absolute; right: -2px; top: -2px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px #fff; }
.brand-word { font: 600 14px/1 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; }
.brand-word span { color: var(--ink-3); font-weight: 500; }
.brand img { height: 28px; width: auto; }
.nav { display: flex; gap: 2px; }
.nav a { position: relative; padding: 8px 12px; border-radius: var(--r); text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 14px; transition: background .15s var(--ease), color .15s; }
.nav a:hover { background: var(--hover); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 2px; background: var(--ink); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r); border: 0; background: transparent; cursor: pointer; color: var(--ink-2); transition: background .15s; }
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }
.dot-count { position: absolute; top: 5px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--brand); color: #1b0d00; font: 600 10.5px/17px var(--font-mono); text-align: center; box-shadow: 0 0 0 2px #fff; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 12px/1 var(--font-sans); letter-spacing: .02em; }
.avatar.lg { width: 44px; height: 44px; font-size: 15px; }
.menu-toggle { display: none; }

/* dropdown / popover */
.pop { position: relative; }
.pop-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); padding: 6px; z-index: 50; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .16s var(--ease), transform .16s var(--ease); }
.pop.open .pop-panel { opacity: 1; transform: none; pointer-events: auto; }
.pop-panel a, .pop-panel button.item { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r); text-decoration: none; background: none; border: 0; text-align: left; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.pop-panel a:hover, .pop-panel button.item:hover { background: var(--hover); color: var(--ink); }
.pop-panel svg { width: 16px; height: 16px; }
.pop-head { padding: 10px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.notif-panel { width: min(380px, calc(100vw - 24px)); padding: 0; }
.notif-panel .pop-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; margin: 0; }
.notif-list { max-height: 420px; overflow: auto; }
.notif-item { display: grid !important; grid-template-columns: 8px 1fr; gap: 12px !important; padding: 12px 16px !important; border-radius: 0 !important; border-bottom: 1px solid var(--line); }
.notif-item:last-child { border-bottom: 0; }
.notif-item .pip { width: 7px; height: 7px; border-radius: 50%; margin-top: 7px; background: transparent; }
.notif-item.unread .pip { background: var(--brand); }
.notif-item.unread .t { color: var(--ink); font-weight: 500; }
.notif-item .t { display: block; font-size: 13.5px; line-height: 1.4; }
.notif-item time { display: block; margin-top: 3px; font: 11.5px var(--font-mono); color: var(--ink-3); }
.pop-foot { display: block; text-align: center; padding: 12px; border-top: 1px solid var(--line); font-size: 13px; text-decoration: none; color: var(--ink-2); }

/* ---------------------------------------------------------------- buttons */
.btn { --bg: var(--paper); --fg: var(--ink); --bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: var(--r); border: 1px solid var(--bd); background: var(--bg); color: var(--fg);
  font: 600 14px/1 var(--font-sans); letter-spacing: .005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s var(--ease), border-color .15s, transform .08s, box-shadow .15s; }
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { --bg: var(--brand); --fg: #1b0d00; --bd: transparent; box-shadow: inset 0 -1px 0 rgba(0,0,0,.12); }
.btn-primary:hover { --bg: color-mix(in srgb, var(--brand) 88%, #000); border-color: transparent; }
.btn-dark { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.btn-dark:hover { --bg: #2a2a28; border-color: #2a2a28; }
.btn-ghost { --bg: transparent; --bd: transparent; color: var(--ink-2); }
.btn-ghost:hover { --bg: var(--hover); border-color: transparent; color: var(--ink); }
.btn-danger { --fg: var(--bad); }
.btn-danger:hover { border-color: var(--bad); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 15px; border-radius: 8px; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }
.btn.is-busy::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- cards & panels */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-pad { padding: 24px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card-head h2 { font-size: 18px; }
.card-body { padding: 22px; }
.card-foot { padding: 14px 22px; border-top: 1px solid var(--line); background: #FCFBF8; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.panel-title { display: flex; justify-content: space-between; align-items: baseline; margin: 36px 0 14px; }
.panel-title h2 { font-size: 20px; }

/* stats strip — one ruled row, not a grid of boxes */
.stats { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.stat { padding: 20px 22px 18px; border-left: 1px solid var(--line); text-decoration: none; transition: background .15s; }
.stat:first-child { border-left: 0; }
a.stat:hover { background: #FCFBF8; }
.stat .label svg { width: 14px; height: 14px; }
.stat .label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); margin-bottom: 14px; }
.stat .figure { font-size: 38px; }
.stat.is-accent .label { color: var(--brand-ink); }
.stat.is-accent .label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.stat .sub { margin-top: 8px; font-size: 12px; color: var(--ink-3); }

/* ---------------------------------------------------------------- forms */
.field { display: block; margin-bottom: 18px; }
.label { display: block; font: 600 13px/1.3 var(--font-sans); margin-bottom: 7px; color: var(--ink); }
.label .opt { font-weight: 400; color: var(--ink-3); margin-left: 4px; }
.hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 13px; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r);
  font-size: 15px; transition: border-color .15s, box-shadow .15s; appearance: none; }
.textarea { height: auto; min-height: 140px; padding: 12px 13px; line-height: 1.55; resize: vertical; }
.select { padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2385827B' stroke-width='1.6'%3E%3Cpath d='M2 4.5 6 8.5l4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-4); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18,18,17,.07); }
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.is-invalid .input, .is-invalid .select, .is-invalid .textarea, .input.is-invalid, .textarea.is-invalid { border-color: var(--bad); }
.field-error { margin: 6px 0 0; font-size: 12.5px; color: var(--bad); }
.input-sm, .select-sm { height: 36px; font-size: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.check input { appearance: none; flex: none; width: 18px; height: 18px; margin: 1px 0 0; border: 1px solid var(--line-2); border-radius: 4px; background: var(--paper); display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px,-1px); }
.switch input { border-radius: 10px; width: 32px; height: 18px; position: relative; }
.switch input::after { content: "" !important; position: absolute; left: 2px; top: 2px; width: 12px !important; height: 12px !important; border: 0 !important; border-radius: 50%; background: var(--ink-4); transform: none !important; transition: left .15s var(--ease), background .15s; }
.switch input:checked::after { left: 16px; background: #fff; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.fieldset { border: 0; padding: 0; margin: 0 0 8px; }
.fieldset legend { font: 600 13px var(--font-sans); margin-bottom: 10px; padding: 0; }
.i18n-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.lang-tag { display: inline-block; min-width: 26px; font: 600 10.5px/1 var(--font-mono); letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; }

/* chips (category picker) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--paper); font-size: 14px; color: var(--ink-2); transition: all .15s var(--ease); }
.chip:hover span { border-color: var(--ink-3); color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* segmented (priority) */
.segmented { display: inline-flex; padding: 3px; background: var(--hover); border-radius: 8px; gap: 2px; flex-wrap: wrap; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 6px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.segmented span i { width: 6px; height: 6px; border-radius: 50%; }
.segmented input:checked + span { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); }

/* ---------------------------------------------------------------- uploader */
.dropzone { display: grid; place-items: center; gap: 6px; padding: 26px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: #FCFBF8; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--ink); background: var(--paper); }
.dropzone svg { width: 22px; height: 22px; color: var(--ink-3); }
.dropzone strong { font-weight: 600; font-size: 14px; }
.dropzone .hint { margin: 0; }
.uploads { display: grid; gap: 8px; margin-top: 10px; }
.upload { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 8px 10px 8px 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.upload .thumb { width: 40px; height: 40px; border-radius: 4px; background: var(--hover) center/cover no-repeat; display: grid; place-items: center; font: 600 9.5px var(--font-mono); color: var(--ink-3); text-transform: uppercase; }
.upload .name { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload .meta { font: 11.5px var(--font-mono); color: var(--ink-3); }
.upload .bar { height: 2px; background: var(--line); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.upload .bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .2s; }
.upload.is-done .bar { display: none; }
.upload.is-error { border-color: color-mix(in srgb, var(--bad) 40%, #fff); }
.upload.is-error .meta { color: var(--bad); }

/* ---------------------------------------------------------------- status & progress */
.status { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px 0 9px; border-radius: 13px; border: 1px solid var(--line); background: var(--paper); font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--ink-3)); }
.status.is-you { background: var(--brand); border-color: var(--brand); color: #1b0d00; font-weight: 600; }
.status.is-you i { background: #1b0d00; }
.status.is-done { color: var(--ok); }
.prio { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.prio i { width: 6px; height: 6px; border-radius: 1px; background: var(--c); transform: rotate(45deg); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; background: var(--hover); font-size: 12px; color: var(--ink-2); }
.tag.is-note { background: #FFF5D6; color: #6B4E00; }

/* slim line progress (lists) */
.line-progress { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.line-progress i { display: block; height: 100%; background: var(--ink); border-radius: 3px; transition: width .6s var(--ease); }
.line-progress.is-you i { background: var(--brand); }
.line-progress.is-done i { background: var(--ok); }

/* signature stage tracker */
.tracker { padding: 26px 28px 24px; }
.tracker-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.tracker-top .figure { font-size: 54px; }
.tracker-top .figure small { font-size: 22px; color: var(--ink-3); margin-left: 2px; }
.tracker-state h2 { font-size: 24px; margin: 6px 0 6px; }
.tracker-state p { margin: 0; color: var(--ink-2); max-width: 52ch; }
.stages { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0; padding: 0; }
.stage { position: relative; }
.stage .seg { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.stage.is-done .seg { background: var(--ink); }
.stage.is-current .seg { background: linear-gradient(90deg, var(--ink) 0 55%, var(--line) 55%); }
.stage.is-current.is-final .seg { background: var(--ok); }
.stage.is-done.is-final .seg { background: var(--ok); }
.stage .lbl { display: block; margin-top: 10px; font-size: 12px; color: var(--ink-3); line-height: 1.3; }
.stage.is-done .lbl { color: var(--ink-2); }
.stage.is-current .lbl { color: var(--ink); font-weight: 600; }
.tracker.is-you { background: linear-gradient(180deg, var(--brand-soft), var(--paper) 70%); border-color: var(--brand-line); }
.tracker.is-you .tracker-state p { display: none; }
.tracker.is-you .stage.is-current .seg { background: linear-gradient(90deg, var(--ink) 0 55%, var(--brand) 55%); }
.you-callout { display: flex; gap: 12px; align-items: center; margin-top: 20px; padding: 12px 14px; border-radius: var(--r); background: var(--brand); color: #1b0d00; font-weight: 600; font-size: 14px; }
.you-callout svg { width: 18px; height: 18px; flex: none; }
.tracker-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.tracker-meta b { font-weight: 500; color: var(--ink-2); }

/* ---------------------------------------------------------------- ticket lists */
.tlist { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.trow { position: relative; display: grid; grid-template-columns: 96px minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 18px 22px; border-top: 1px solid var(--line); text-decoration: none; transition: background .15s; }
.trow:first-child { border-top: 0; }
.trow:hover { background: #FCFBF8; }
.trow .subj { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .subj span { overflow: hidden; text-overflow: ellipsis; }
.trow .meta { margin-top: 4px; font-size: 13px; color: var(--ink-3); display: flex; gap: 6px 14px; flex-wrap: wrap; }
.trow .side { display: grid; justify-items: end; gap: 10px; min-width: 160px; }
.trow .side .line-progress { width: 140px; }
.unread-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--brand); }
.trow.is-you { background: linear-gradient(90deg, var(--brand-soft), transparent 55%); }
.trow.is-you::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); }

/* staff table */
.table-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 600 11px/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 14px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FCFBF8; }
.table th a { text-decoration: none; }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #FCFBF8; }
.table .w-check { width: 40px; }
.table .t-subj a { font-weight: 600; text-decoration: none; }
.table .t-subj a:hover { text-decoration: underline; }
.table .t-client { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.cell-nowrap { white-space: nowrap; }

/* filter bar */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters .search { position: relative; flex: 1 1 260px; }
.filters .search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--ink-3); }
.filters .search .input { padding-left: 38px; }
.filters .select { width: auto; min-width: 140px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--ink-3); font-weight: 500; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs a .cnt { margin-left: 6px; font: 500 11.5px var(--font-mono); color: var(--ink-3); }
.bulkbar { position: sticky; bottom: 16px; z-index: 30; display: none; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding: 10px 12px 10px 16px; background: var(--ink); color: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-pop); }
.bulkbar.is-on { display: flex; }
.bulkbar .select { width: auto; height: 34px; background-color: #222; color: #fff; border-color: #3a3a38; }
.pager { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 22px; font-size: 13px; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 10px; border-radius: var(--r); text-decoration: none; border: 1px solid var(--line); background: var(--paper); font-family: var(--font-mono); }
.pager .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------------------------------------------------------------- conversation */
.thread { display: grid; gap: 18px; }
.msg { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; scroll-margin-top: 90px; animation: rise .35s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg .avatar { width: 36px; height: 36px; font-size: 12px; }
.msg.is-team .avatar { background: var(--brand); color: #1b0d00; }
.msg-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.msg-head strong { font-weight: 600; font-size: 14px; }
.msg-head .role { font: 600 10px/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink); }
.msg-head time { font: 12px var(--font-mono); color: var(--ink-3); }
.msg-body { padding: 15px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 2px var(--r-lg) var(--r-lg) var(--r-lg); font-size: 15px; line-height: 1.62; overflow-wrap: anywhere; }
.msg.is-team .msg-body { background: #FFFDF9; }
.msg.is-note .msg-body { background: #FFF8E1; border-color: #F0DC9C; border-style: dashed; }
.msg.is-note .avatar { background: #6B4E00; color: #fff; }
.msg.is-new .msg-body { box-shadow: 0 0 0 3px var(--brand-soft); border-color: var(--brand-line); }
.msg-body a { color: var(--brand-ink); }
.atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.att { display: inline-flex; align-items: center; gap: 8px; max-width: 280px; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); text-decoration: none; font-size: 13px; transition: border-color .15s; }
.att:hover { border-color: var(--ink-3); }
.att .ext { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 4px; background: var(--hover); font: 600 9px var(--font-mono); text-transform: uppercase; color: var(--ink-2); flex: none; }
.att span.n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att img { width: 30px; height: 30px; object-fit: cover; border-radius: 4px; flex: none; }
.att-img { display: block; max-width: 320px; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.att-img img { width: 100%; height: auto; max-height: 240px; object-fit: cover; }
.composer { margin-top: 26px; }
.composer .textarea { display: block; min-height: 120px; border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: 0; }
.composer-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 0 0 var(--r-lg) var(--r-lg); background: #FCFBF8; }
.composer.is-note .textarea { background: #FFFBEE; }
.earlier { text-align: center; }
.closed-note { padding: 18px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--ink-2); font-size: 14px; text-align: center; }

/* side panel */
.side-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.side-card + .side-card { margin-top: 16px; }
.side-card h3 { padding: 16px 18px 0; font-size: 13px; }
.dl { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 10px 12px; padding: 14px 18px 18px; margin: 0; font-size: 13.5px; }
.dl dt { color: var(--ink-3); }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.side-controls { display: grid; gap: 12px; padding: 14px 18px 18px; }
.side-controls label { font-size: 12px; color: var(--ink-3); display: block; margin-bottom: 5px; }
.timeline { list-style: none; margin: 0; padding: 12px 18px 18px; }
.timeline li { position: relative; padding: 0 0 14px 20px; font-size: 13px; color: var(--ink-2); }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink-3); }
.timeline li::after { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li:first-child::before { background: var(--ink); border-color: var(--ink); }
.timeline time { display: block; font: 11.5px var(--font-mono); color: var(--ink-3); margin-top: 2px; }

/* ---------------------------------------------------------------- feedback */
.toasts { position: fixed; z-index: 90; right: 20px; bottom: 20px; display: grid; gap: 10px; width: min(380px, calc(100vw - 40px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px 13px 16px; background: var(--ink); color: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-pop); font-size: 14px; animation: toastIn .3s var(--ease) both; }
.toast.out { animation: toastOut .25s var(--ease) both; }
.toast::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--ok); }
.toast.error::before { background: #FF8A80; }
.toast.info::before { background: var(--brand); }
.toast button { margin-left: auto; background: none; border: 0; color: #aaa; cursor: pointer; padding: 0 2px; font-size: 18px; line-height: 1; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }
.alert { padding: 13px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); font-size: 14px; margin-bottom: 18px; }
.alert.error { border-color: color-mix(in srgb, var(--bad) 35%, #fff); background: #FFF6F5; color: #7a1a14; }
.alert.success { border-color: #CFE5CF; background: #F5FBF5; }
.alert.warn { border-color: #EED9A8; background: #FFFAEE; }
.empty { padding: 56px 24px; text-align: center; }
.empty .eyebrow { display: block; margin-bottom: 12px; }
.empty h2 { margin-bottom: 8px; }
.empty p { color: var(--ink-3); margin: 0 auto 20px; max-width: 42ch; }
.skeleton { display: block; height: 12px; border-radius: 4px; background: linear-gradient(90deg, var(--hover) 0, #ECE8E0 50%, var(--hover) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* modal */
.modal-back { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(18,18,17,.42); backdrop-filter: blur(2px); animation: fade .15s both; }
.modal { width: min(440px, 100%); background: var(--paper); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 26px; animation: toastIn .2s var(--ease) both; }
.modal h2 { margin-bottom: 8px; }
.modal p { color: var(--ink-2); }
.modal .form-actions { justify-content: flex-end; margin-top: 22px; }
@keyframes fade { from { opacity: 0; } }

/* tooltips */
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: max-content; max-width: 240px; padding: 7px 10px; border-radius: var(--r); background: var(--ink); color: #fff; font: 400 12px/1.4 var(--font-sans); text-transform: none; letter-spacing: 0; z-index: 60; pointer-events: none; }

/* ---------------------------------------------------------------- auth screens */
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.auth-art { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 44px 52px; background: var(--ink); color: #F4F1EA; overflow: hidden; }
.auth-art .brand-mark { background: #F4F1EA; color: var(--ink); }
.auth-art .brand-mark::after { box-shadow: 0 0 0 2px var(--ink); }
.auth-art .brand-word span { color: #8F8B82; }
.auth-art h1 { font: 400 clamp(40px, 5vw, 68px)/1.02 var(--font-display); letter-spacing: -.03em; max-width: 11ch; }
.auth-art h1 em { font-style: italic; color: var(--brand); }
.auth-art p { color: #B9B4A9; max-width: 40ch; margin-top: 18px; }
.auth-stages { display: grid; gap: 0; margin-top: 44px; max-width: 420px; border-top: 1px solid #2E2D2A; }
.auth-stages div { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; padding: 12px 0; border-bottom: 1px solid #2E2D2A; font-size: 13.5px; color: #CFCAC0; }
.auth-stages .n { font: 500 11.5px var(--font-mono); color: #77736B; }
.auth-stages .p { font: 500 12px var(--font-mono); color: #77736B; }
.auth-stages .on { color: #fff; }
.auth-stages .on .p { color: var(--brand); }
.auth-art .foot { font: 12px var(--font-mono); color: #6F6B63; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; background: var(--paper); }
.auth-box { width: min(400px, 100%); }
.auth-box h1 { margin-bottom: 8px; }
.auth-box .lede { margin-bottom: 28px; font-size: 15px; }
.auth-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 44px; }
.auth-alt { margin-top: 22px; font-size: 14px; color: var(--ink-3); text-align: center; }
.auth-alt a { color: var(--ink); font-weight: 600; }
.lang-mini { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--hover); }
.lang-mini button { border: 0; background: none; padding: 5px 9px; border-radius: 6px; cursor: pointer; font: 600 11.5px var(--font-mono); letter-spacing: .04em; color: var(--ink-3); text-transform: uppercase; }
.lang-mini button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.lang-mini button:hover { color: var(--ink); }

/* confirmation */
.confirm-hero { text-align: center; padding: 64px 24px 56px; }
.confirm-hero .check-ring { width: 64px; height: 64px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #1b0d00; animation: pop .5s var(--ease) both; }
.confirm-hero .check-ring svg { width: 28px; height: 28px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.06); } }
.confirm-hero .ticket-no { display: inline-block; margin: 18px 0 8px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: var(--r); font: 500 20px var(--font-mono); letter-spacing: .03em; background: var(--paper); }

/* client hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px; padding: 8px 0 30px; }
.hero .eyebrow { display: block; margin-bottom: 14px; }
.hero p { margin: 14px 0 0; }

/* admin */
.admin-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 32px; align-items: start; }
.admin-nav { position: sticky; top: 88px; display: grid; gap: 1px; }
.admin-nav .eyebrow { margin: 16px 10px 8px; }
.admin-nav .eyebrow:first-child { margin-top: 0; }
.admin-nav a { padding: 8px 10px; border-radius: var(--r); text-decoration: none; color: var(--ink-2); font-size: 14px; }
.admin-nav a:hover { background: var(--hover); color: var(--ink); }
.admin-nav a[aria-current="page"] { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.lookup { padding: 20px 22px; border-top: 1px solid var(--line); }
.lookup:first-of-type { border-top: 0; }
.lookup summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.lookup summary::-webkit-details-marker { display: none; }
.lookup summary .chev { margin-left: auto; color: var(--ink-3); transition: transform .2s; }
.lookup[open] summary .chev { transform: rotate(180deg); }
.lookup .body { margin-top: 18px; }
.swatch { width: 14px; height: 14px; border-radius: 4px; background: var(--c); flex: none; }
.preview-frame { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.code-chip { font: 12px var(--font-mono); padding: 2px 6px; border-radius: 4px; background: var(--hover); }
.kpi-note { font-size: 12px; color: var(--ink-3); margin-top: 10px; }

/* footer */
.footer { padding: 26px 0 36px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- help guide */
.hero-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.help-link { margin-top: 14px; color: var(--ink-2); }
.is-public .topbar .wrap { justify-content: space-between; }
.help-hero { max-width: 780px; padding: 12px 0 34px; }
.help-hero .eyebrow { display: block; margin-bottom: 14px; }
.help-hero .lede { margin-top: 16px; }
.glance { list-style: none; margin: 0 0 44px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.glance li + li { border-left: 1px solid var(--line); }
.glance a { display: grid; gap: 10px; padding: 18px 20px; text-decoration: none; height: 100%; transition: background .15s; }
.glance a:hover { background: #FCFBF8; }
.glance .mono { font-size: 12px; color: var(--brand-ink); }
.glance strong { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.help-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; align-items: start; }
.help-toc { position: sticky; top: 88px; display: grid; gap: 1px; }
.help-toc .eyebrow { margin: 0 10px 10px; }
.help-toc a { display: flex; gap: 12px; padding: 7px 10px; border-radius: var(--r); text-decoration: none; color: var(--ink-2); font-size: 14px; }
.help-toc a:hover { background: var(--hover); color: var(--ink); }
.help-toc .mono { font-size: 11.5px; color: var(--ink-4); padding-top: 2px; }
.help-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; padding: 34px 0; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.help-step:first-child { border-top: 0; padding-top: 0; }
.help-no { font-size: 13px; color: var(--brand-ink); padding-top: 9px; }
.help-content h2 { font-size: 26px; margin-bottom: 10px; }
.help-content .lede { font-size: 16px; max-width: 64ch; }
.help-steps, .help-points { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 66ch; }
.help-steps { counter-reset: hs; }
.help-steps li { counter-increment: hs; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.help-steps li::before { content: counter(hs); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 11.5px/1 var(--font-mono); }
.help-points li { position: relative; padding-left: 20px; }
.help-points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); transform: rotate(45deg); }
.help-tip { margin: 20px 0 0; padding: 13px 16px; border-left: 3px solid var(--brand); background: var(--paper); border-radius: 0 var(--r) var(--r) 0; font-size: 14.5px; color: var(--ink-2); max-width: 66ch; }
.help-tip strong { color: var(--ink); }
.help-content .you-callout { max-width: 520px; }
.help-stages { margin-top: 22px; max-width: 640px; }
.help-stage { display: grid; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); }
.help-stage:first-child { border-top: 0; }
.help-stage p { margin: 0; font-size: 14px; color: var(--ink-2); }
.help-stage.is-you { background: linear-gradient(90deg, var(--brand-soft), transparent 70%); }
.help-end { margin-top: 20px; padding: 30px; }
.help-end h2 { margin-bottom: 8px; }
.help-end .lede { margin-bottom: 20px; }
@media (max-width: 1024px) {
  .help-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .help-toc { position: static; display: none; }
  .glance { grid-template-columns: minmax(0, 1fr); }
  .glance li + li { border-left: 0; border-top: 1px solid var(--line); }
  .glance a { grid-template-columns: 34px 1fr; }
}
@media (max-width: 860px) {
  .help-step { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 26px 0; }
  .help-no { padding-top: 0; }
  .help-content h2 { font-size: 23px; }
  .is-public .brand-word { display: none; }
  .hero-actions .btn { width: 100%; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .admin-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
  .admin-nav .eyebrow { display: none; }
  .admin-nav a { white-space: nowrap; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-grid; }
  .nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0; padding: 8px 12px 16px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-pop); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .18s var(--ease); }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 13px 12px; font-size: 15px; }
  .nav a[aria-current="page"]::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { padding: 28px 24px 30px; }
  .auth-art h1 { font-size: 38px; }
  .auth-stages, .auth-art .foot { display: none; }
  .stats { --n: 2 !important; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero .btn-lg { width: 100%; }
  .trow { grid-template-columns: minmax(0,1fr); gap: 10px; padding: 16px; }
  .trow .side { justify-items: start; grid-auto-flow: column; align-items: center; min-width: 0; }
  .trow .side .line-progress { width: 90px; }
  .trow .num { order: -1; }
  .cols-2, .i18n-grid { grid-template-columns: minmax(0, 1fr); }
  .tracker { padding: 20px; }
  .tracker-top { flex-direction: column-reverse; align-items: flex-start; gap: 6px; }
  .tracker-top .figure { font-size: 42px; }
  .stages { gap: 4px; }
  .stage .lbl { font-size: 10.5px; }
  .card-pad, .card-body { padding: 18px; }
  .main { padding-top: 24px; }
  .brand-word { display: none; }
  .filters .select { flex: 1 1 140px; }
}
@media (max-width: 520px) {
  .stage .lbl { display: none; }
  .trow .subj { white-space: normal; align-items: flex-start; }
  .trow .subj span { overflow: visible; }
  .msg { grid-template-columns: minmax(0, 1fr); }
  .msg .avatar { display: none; }
  .composer-bar .btn-primary { margin-left: auto; }
  .page-head .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  .topbar, .footer, .composer, .side-controls, .bulkbar { display: none !important; }
  body { background: #fff; }
}
