/* THE JERKY Panel — design system.
   Apple-like: system type (SF Pro on Apple devices), translucent bars, soft continuous corners,
   quiet hairlines, springy motion. Brand: red #a42325 as the tint, beige #e8d5c7, dark #1a0e0c,
   the "tj" emblem and the plate lockup from the site's video poster. */

:root {
  color-scheme: light;
  --tint: #a42325;
  --tint-hover: #8f1c1e;
  --tint-text: #a42325;
  --tint-soft: rgba(164, 35, 37, 0.10);
  --tint-ring: rgba(164, 35, 37, 0.28);
  --beige: #e8d5c7;
  --brand-dark: #1a0e0c;

  --bg: #f5f1ed;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #faf7f4;
  --fill: rgba(118, 104, 96, 0.10);
  --fill-2: rgba(118, 104, 96, 0.06);
  --fill-strong: rgba(118, 104, 96, 0.16);
  --label: #1a0e0c;
  --label-2: rgba(26, 14, 12, 0.62);
  --label-3: rgba(26, 14, 12, 0.40);
  --label-4: rgba(26, 14, 12, 0.22);
  --separator: rgba(60, 30, 20, 0.12);
  --separator-strong: rgba(60, 30, 20, 0.18);
  --bar: rgba(245, 241, 237, 0.72);
  --shadow-card: 0 0.5px 1px rgba(26, 14, 12, 0.04), 0 2px 10px rgba(26, 14, 12, 0.045);
  --shadow-pop: 0 1px 2px rgba(26, 14, 12, 0.06), 0 12px 40px rgba(26, 14, 12, 0.16);
  --scrim: rgba(26, 14, 12, 0.32);

  /* status colours (Apple system palette, tuned for the warm background) */
  --s-idea: #8e8a87;
  --s-idea-text: #6d6865;
  --s-draft: #f29400;
  --s-draft-text: #b26b00;
  --s-review: #0a74e6;
  --s-review-text: #0a62c4;
  --s-approved: #5a55d6;
  --s-approved-text: #4a45c2;
  --s-scheduled: #a42325;
  --s-scheduled-text: #a42325;
  --s-published: #2f9e52;
  --s-published-text: #23803f;
  --danger: #d70015;
  --ok: #2f9e52;

  --r-xs: 6px;
  --r-sm: 9px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --font-plate: "Fira Sans Extra Condensed", "Arial Narrow", sans-serif;
}

/* Dark palette — applied by the media query (auto) or by data-theme="dark". */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --tint-text: #ff6b62;
    --tint-soft: rgba(255, 92, 82, 0.14);
    --tint-ring: rgba(255, 92, 82, 0.32);
    --bg: #110a08;
    --bg-elevated: #1c1411;
    --surface: #1c1411;
    --surface-2: #231915;
    --fill: rgba(235, 215, 200, 0.10);
    --fill-2: rgba(235, 215, 200, 0.06);
    --fill-strong: rgba(235, 215, 200, 0.16);
    --label: #f6ece5;
    --label-2: rgba(246, 236, 229, 0.64);
    --label-3: rgba(246, 236, 229, 0.42);
    --label-4: rgba(246, 236, 229, 0.24);
    --separator: rgba(255, 235, 220, 0.10);
    --separator-strong: rgba(255, 235, 220, 0.16);
    --bar: rgba(17, 10, 8, 0.72);
    --shadow-card: 0 0 0 0.5px rgba(255, 235, 220, 0.06), 0 2px 12px rgba(0, 0, 0, 0.35);
    --shadow-pop: 0 0 0 0.5px rgba(255, 235, 220, 0.08), 0 16px 48px rgba(0, 0, 0, 0.55);
    --scrim: rgba(0, 0, 0, 0.5);
    --s-idea: #9a9490; --s-idea-text: #b9b2ad;
    --s-draft: #ff9f0a; --s-draft-text: #ffb340;
    --s-review: #0a84ff; --s-review-text: #5eb0ff;
    --s-approved: #6e6af0; --s-approved-text: #a29ffb;
    --s-scheduled: #e5453f; --s-scheduled-text: #ff7a72;
    --s-published: #30d158; --s-published-text: #5ee07e;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --tint-text: #ff6b62;
  --tint-soft: rgba(255, 92, 82, 0.14);
  --tint-ring: rgba(255, 92, 82, 0.32);
  --bg: #110a08;
  --bg-elevated: #1c1411;
  --surface: #1c1411;
  --surface-2: #231915;
  --fill: rgba(235, 215, 200, 0.10);
  --fill-2: rgba(235, 215, 200, 0.06);
  --fill-strong: rgba(235, 215, 200, 0.16);
  --label: #f6ece5;
  --label-2: rgba(246, 236, 229, 0.64);
  --label-3: rgba(246, 236, 229, 0.42);
  --label-4: rgba(246, 236, 229, 0.24);
  --separator: rgba(255, 235, 220, 0.10);
  --separator-strong: rgba(255, 235, 220, 0.16);
  --bar: rgba(17, 10, 8, 0.72);
  --shadow-card: 0 0 0 0.5px rgba(255, 235, 220, 0.06), 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-pop: 0 0 0 0.5px rgba(255, 235, 220, 0.08), 0 16px 48px rgba(0, 0, 0, 0.55);
  --scrim: rgba(0, 0, 0, 0.5);
  --s-idea: #9a9490; --s-idea-text: #b9b2ad;
  --s-draft: #ff9f0a; --s-draft-text: #ffb340;
  --s-review: #0a84ff; --s-review-text: #5eb0ff;
  --s-approved: #6e6af0; --s-approved-text: #a29ffb;
  --s-scheduled: #e5453f; --s-scheduled-text: #ff7a72;
  --s-published: #30d158; --s-published-text: #5ee07e;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font: 400 15px/1.4 var(--font);
  letter-spacing: -0.009em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
a { color: var(--tint-text); text-decoration: none; }
img { display: block; }
.i { width: 18px; height: 18px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--tint-ring); border-radius: var(--r-sm); }
[hidden] { display: none !important; }

/* ---------- brand lockup ---------- */
.lockup { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.lockup img { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 0.5px var(--separator); }
.plates { display: flex; align-items: center; }
.plate {
  font: 900 14px/1 var(--font-plate);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 7px 4px;
  box-shadow: 2px 2px 0 var(--brand-dark);
}
.plate.red { background: var(--tint); color: #fff; }
.plate.beige { background: var(--beige); color: var(--brand-dark); margin-left: -2px; }

/* ---------- top bar (translucent, sticky) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: 56px;
  display: flex; align-items: center; gap: 22px;
  padding: 0 24px;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--separator);
}
.sections { display: flex; gap: 2px; margin-left: 8px; }
.sections button {
  display: flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--label-2);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.sections button:hover { background: var(--fill-2); color: var(--label); }
.sections button.on { color: var(--label); background: var(--fill); font-weight: 600; }
.sections button .i { width: 17px; height: 17px; }
.sections button[aria-disabled="true"] { color: var(--label-3); }
.sections .soon { font-size: 10.5px; font-weight: 600; color: var(--label-3); background: var(--fill-2); border-radius: 5px; padding: 1px 5px; }
.topbar .spacer { flex: 1; }
.avatar-btn { display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 4px 0 10px; border-radius: 18px; font-size: 14px; font-weight: 500; color: var(--label-2); }
.avatar-btn:hover { background: var(--fill-2); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--beige); color: var(--brand-dark); display: grid; place-items: center; font: 600 13px/1 var(--font); overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 24px; height: 24px; font-size: 11px; }

/* ---------- layout ---------- */
.page { max-width: 1480px; margin: 0 auto; padding: 26px 28px 60px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--label-3); letter-spacing: 0; margin-bottom: 2px; }
.large-title { font: 700 34px/1.1 var(--font-display); letter-spacing: -0.024em; margin: 0; }
.page-head .actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: 980px;
  font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em;
  background: var(--fill); color: var(--label);
  transition: transform .15s var(--ease), background .2s var(--ease), opacity .2s, box-shadow .2s;
  white-space: nowrap; user-select: none;
}
.btn:hover { background: var(--fill-strong); }
.btn:active { transform: scale(0.97); }
.btn .i { width: 17px; height: 17px; }
.btn.primary { background: var(--tint); color: #fff; box-shadow: 0 1px 2px rgba(164, 35, 37, .25); }
.btn.primary:hover { background: var(--tint-hover); }
.btn.tinted { background: var(--tint-soft); color: var(--tint-text); }
.btn.tinted:hover { background: rgba(164, 35, 37, .16); }
.btn.ok { background: var(--ok); color: #fff; }
.btn.danger { color: var(--danger); background: rgba(215, 0, 21, .08); }
.btn.plain { background: none; color: var(--tint-text); padding: 0 8px; }
.btn.plain:hover { background: var(--fill-2); }
.btn.lg { height: 44px; font-size: 16px; padding: 0 20px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--label-2); transition: background .2s var(--ease), transform .15s var(--ease); }
.icon-btn:hover { background: var(--fill); color: var(--label); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.filled { background: var(--fill); }
.icon-btn:disabled { opacity: .3; cursor: default; background: none; transform: none; }

/* ---------- segmented control (iOS) ---------- */
.seg { display: inline-flex; background: var(--fill); border-radius: 9px; padding: 2px; gap: 0; position: relative; }
.seg button {
  height: 28px; padding: 0 13px; border-radius: 7px;
  font-size: 13px; font-weight: 500; color: var(--label);
  display: inline-flex; align-items: center; gap: 6px; position: relative;
  transition: background .25s var(--ease), box-shadow .25s var(--ease);
}
.seg button .i { width: 15px; height: 15px; }
.seg button.on { background: var(--bg-elevated); font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); }
:root[data-theme="dark"] .seg button.on { background: #3a2c27; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg button.on { background: #3a2c27; } }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.kpi {
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: 14px 16px 13px; text-align: left; min-width: 0;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
button.kpi:hover { transform: translateY(-1px); box-shadow: var(--shadow-pop); }
.kpi .k-top { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--label-2); }
.kpi .k-ico { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: #fff; flex: none; }
.kpi .k-ico .i { width: 14px; height: 14px; stroke-width: 2.2; }
.kpi .k-num { font: 700 30px/1.15 var(--font-rounded); letter-spacing: -0.02em; margin-top: 6px; display: flex; align-items: baseline; gap: 4px; }
.kpi .k-num small { font-size: 17px; color: var(--label-3); font-weight: 600; }
.kpi .k-sub { font-size: 12.5px; color: var(--label-2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.warn .k-num { color: var(--tint-text); }

/* ---------- toolbar ---------- */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.period { font: 700 22px/1.2 var(--font-display); letter-spacing: -0.02em; margin: 0 4px 0 6px; min-width: 210px; }
.nav-group { display: flex; align-items: center; gap: 4px; }
.toolbar .spacer { flex: 1; }
.chips { display: flex; gap: 6px; }
.chip-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 11px 0 6px; border-radius: 980px;
  font-size: 13px; font-weight: 600; color: var(--label-2);
  background: var(--fill-2); box-shadow: inset 0 0 0 0.5px var(--separator);
  transition: background .2s, color .2s, opacity .2s;
}
.chip-toggle.on { background: var(--surface); color: var(--label); box-shadow: var(--shadow-card); }
.chip-toggle:not(.on) .pb { filter: grayscale(1); opacity: .45; }

/* platform badges */
.pb { width: 18px; height: 18px; border-radius: 5px; display: inline-grid; place-items: center; flex: none; }
.pb svg { width: 100%; height: 100%; }
.pb-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.pb-fb { background: #1877f2; border-radius: 50%; }
.pb-threads { background: #000; border-radius: 50%; }
.pb-tiktok { background: #000; box-shadow: inset -1.5px -1px 0 rgba(254, 44, 85, .9), inset 1.5px 1px 0 rgba(37, 244, 238, .9); }
.pb-youtube { background: #ff0033; }
.pb-x { background: #000; }
.pb-blog { background: var(--tint); }
.pb-snapchat { background: #fffc00; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,.15); }
:root[data-theme="dark"] .pb-threads { box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.pb.xs { width: 14px; height: 14px; border-radius: 4px; }
.pb.xs.pb-fb, .pb.xs.pb-threads { border-radius: 50%; }
.chips { flex-wrap: wrap; }
.plats { display: inline-flex; gap: 3px; align-items: center; }

/* ---------- status ---------- */
.st-idea { --sc: var(--s-idea); --st: var(--s-idea-text); }
.st-draft { --sc: var(--s-draft); --st: var(--s-draft-text); }
.st-review { --sc: var(--s-review); --st: var(--s-review-text); }
.st-approved { --sc: var(--s-approved); --st: var(--s-approved-text); }
.st-scheduled { --sc: var(--s-scheduled); --st: var(--s-scheduled-text); }
.st-published { --sc: var(--s-published); --st: var(--s-published-text); }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px 0 8px; border-radius: 980px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  color: var(--st); background: color-mix(in srgb, var(--sc) 13%, transparent);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sc); }
.pill.sm { height: 20px; font-size: 11.5px; padding: 0 8px 0 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sc); display: inline-block; flex: none; }

/* ---------- month grid ---------- */
.card { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-card); overflow: hidden; }
.month { display: grid; grid-template-columns: 58px repeat(7, minmax(0, 1fr)); }
.month .wd { padding: 10px 10px 8px; font-size: 12px; font-weight: 600; color: var(--label-3); text-transform: uppercase; letter-spacing: .04em; border-bottom: 0.5px solid var(--separator); }
.month .wd.we { color: var(--label-4); }
.month .wk {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding-top: 10px; border-right: 0.5px solid var(--separator); border-bottom: 0.5px solid var(--separator);
  background: var(--surface-2);
}
.month .wk small { font: 600 10.5px/1 var(--font); color: var(--label-3); letter-spacing: .02em; }
.target {
  font: 700 13px/1 var(--font-rounded); padding: 5px 7px; border-radius: 7px; white-space: nowrap;
  color: var(--s-published-text); background: color-mix(in srgb, var(--s-published) 14%, transparent);
}
.target.low { color: var(--tint-text); background: var(--tint-soft); }
.target.na { color: var(--label-4); background: none; }
.month .cell {
  position: relative; min-height: 124px; padding: 6px 6px 8px;
  border-right: 0.5px solid var(--separator); border-bottom: 0.5px solid var(--separator);
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.month .cell:nth-child(8n) { border-right: 0; }
.month .cell.out { background: var(--fill-2); }
.month .cell.out .num { color: var(--label-4); }
.month .cell.past:not(.today) .num { color: var(--label-3); }
.month .num { display: flex; align-items: center; gap: 6px; height: 24px; font: 500 13.5px/1 var(--font); color: var(--label-2); padding-left: 3px; }
.month .cell.today .num b { background: var(--tint); color: #fff; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; margin-left: -3px; font-weight: 600; }
.month .cell.today .num em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--tint-text); text-transform: uppercase; letter-spacing: .04em; }
.month .add {
  position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; color: var(--tint-text); opacity: 0; transition: opacity .15s, background .15s;
}
.month .add .i { width: 15px; height: 15px; stroke-width: 2.2; }
.month .cell:hover .add { opacity: 1; }
.month .add:hover { background: var(--tint-soft); }
.month .more { font-size: 12px; font-weight: 600; color: var(--label-2); text-align: left; padding: 1px 6px; border-radius: 6px; }
.month .more:hover { background: var(--fill-2); }

/* event chip (Apple Calendar style) */
.ev {
  display: flex; gap: 6px; align-items: flex-start; width: 100%; text-align: left;
  padding: 4px 6px 4px 4px; border-radius: 7px;
  background: color-mix(in srgb, var(--sc) 12%, transparent);
  position: relative; overflow: hidden;
  transition: transform .15s var(--ease), background .2s;
}
.ev::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--sc); }
.ev:hover { background: color-mix(in srgb, var(--sc) 19%, transparent); }
.ev:active { transform: scale(.98); }
.ev.sel { box-shadow: inset 0 0 0 1.5px var(--sc); }
.ev .th { width: 22px; height: 30px; border-radius: 4px; object-fit: cover; flex: none; margin-left: 3px; background: var(--fill); }
.ev .th.ph { display: grid; place-items: center; color: var(--st); background: color-mix(in srgb, var(--sc) 14%, transparent); }
.ev .th.ph .i { width: 13px; height: 13px; }
.ev .b { min-width: 0; flex: 1; }
.ev .t { display: flex; align-items: center; gap: 3px; font: 600 11px/1.2 var(--font); color: var(--st); font-variant-numeric: tabular-nums; }
.ev .t .pb { width: 12px; height: 12px; border-radius: 3px; }
.ev .t .pb-fb, .ev .t .pb-threads { border-radius: 50%; }
.ev .n { font-size: 12px; font-weight: 600; line-height: 1.22; color: var(--label); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.ev.done .n { color: var(--label-2); }

/* ---------- week board ---------- */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.wcol { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wcol-h { display: flex; align-items: baseline; gap: 6px; padding: 4px 4px 6px; }
.wcol-h .wdn { font-size: 13px; font-weight: 600; color: var(--label-3); text-transform: uppercase; letter-spacing: .04em; }
.wcol-h .dnum { font: 700 22px/1 var(--font-display); letter-spacing: -0.02em; }
.wcol.today .wcol-h .dnum { color: #fff; background: var(--tint); border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; font-size: 17px; }
.wcol.past .wcol-h .dnum { color: var(--label-3); }
.wadd { height: 40px; border-radius: var(--r-md); border: 1.5px dashed var(--separator-strong); color: var(--label-3); display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 13px; font-weight: 600; transition: all .2s var(--ease); }
.wadd:hover { color: var(--tint-text); border-color: var(--tint-ring); background: var(--tint-soft); }

.pcard {
  display: block; width: 100%; text-align: left;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.pcard:active { transform: scale(.98); }
.pcard .cover { aspect-ratio: 4 / 5; background: var(--fill) center/cover no-repeat; position: relative; }
.pcard .cover.ph { display: grid; place-items: center; color: var(--st); background: color-mix(in srgb, var(--sc) 10%, var(--surface)); }
.pcard .cover.ph .i { width: 30px; height: 30px; stroke-width: 1.5; }
.pcard .cover .fmt { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 980px; background: rgba(20, 12, 10, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-size: 11.5px; font-weight: 600; }
.pcard .cover .fmt .i { width: 13px; height: 13px; }
.pcard .pb-row { position: absolute; right: 8px; top: 8px; display: flex; gap: 4px; }
.pcard .body { padding: 10px 12px 12px; }
.pcard .time { font: 600 12px/1 var(--font); color: var(--label-2); font-variant-numeric: tabular-nums; }
.pcard .ttl { font-size: 14px; font-weight: 600; line-height: 1.25; margin: 5px 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- list (iOS inset grouped) ---------- */
.list-wrap { max-width: 860px; }
.group-h { display: flex; align-items: baseline; gap: 8px; margin: 22px 4px 8px; }
.group-h:first-child { margin-top: 0; }
.group-h h3 { margin: 0; font: 700 17px/1.2 var(--font-display); letter-spacing: -0.015em; }
.group-h span { font-size: 13px; color: var(--label-3); font-weight: 500; }
.group-h.today h3 { color: var(--tint-text); }
.group { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 14px 10px 12px; position: relative; transition: background .15s; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 70px; right: 0; height: 0.5px; background: var(--separator); }
.row:hover { background: var(--fill-2); }
.row:active { background: var(--fill); }
.row .th { width: 44px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; background: var(--fill); }
.row .th.ph { display: grid; place-items: center; color: var(--st); background: color-mix(in srgb, var(--sc) 12%, transparent); }
.row .th.ph .i { width: 20px; height: 20px; }
.row .b { flex: 1; min-width: 0; }
.row .ttl { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 13px; color: var(--label-2); }
.row .meta .st { display: none; }
.row .chev { color: var(--label-4); }
.row .chev .i { width: 16px; height: 16px; }
.empty { padding: 34px 20px; text-align: center; color: var(--label-2); }
.empty .i { width: 34px; height: 34px; color: var(--label-4); margin: 0 auto 10px; stroke-width: 1.4; }
.empty h4 { margin: 0 0 4px; font-size: 17px; color: var(--label); }

/* banners */
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-lg); margin-bottom: 14px; font-size: 14px; }
.banner .i { width: 20px; height: 20px; flex: none; }
.banner.review { background: color-mix(in srgb, var(--s-review) 10%, var(--surface)); color: var(--label); box-shadow: inset 0 0 0 0.5px color-mix(in srgb, var(--s-review) 30%, transparent); }
.banner.review .i { color: var(--s-review-text); }
.banner.warn { background: var(--tint-soft); }
.banner.warn .i { color: var(--tint-text); }
.banner b { font-weight: 600; }
.banner .btn { margin-left: auto; height: 30px; font-size: 13px; padding: 0 12px; }

/* ---------- inspector (side panel / sheet) ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.scrim.open { opacity: 1; pointer-events: auto; }
.inspector {
  position: fixed; z-index: 45; top: 68px; right: 16px; bottom: 16px; width: 420px;
  background: var(--bg-elevated); border-radius: var(--r-xl); box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateX(calc(100% + 32px)); transition: transform .42s var(--ease-sheet);
}
.inspector.open { transform: none; }
.insp-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 4px 18px; }
.insp-head .grow { flex: 1; }
.insp-body { flex: 1; overflow-y: auto; padding: 4px 18px 18px; overscroll-behavior: contain; }
.insp-when { font-size: 13.5px; color: var(--label-2); font-weight: 500; margin-top: 8px; }
.insp-title { font: 700 24px/1.15 var(--font-display); letter-spacing: -0.02em; margin: 4px 0 14px; word-break: break-word; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 9px 10px; font-size: 14px; margin-bottom: 16px; }
.kv dt { color: var(--label-2); }
.kv dd { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 500; min-width: 0; }
.section-h { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--label-2); text-transform: uppercase; letter-spacing: .05em; margin: 18px 0 8px; }
.section-h .btn { height: 26px; font-size: 12.5px; padding: 0 10px; text-transform: none; letter-spacing: 0; }
.gallery { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.gallery .tile { position: relative; flex: none; width: 104px; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: var(--fill) center/cover no-repeat; scroll-snap-align: start; box-shadow: inset 0 0 0 0.5px var(--separator); }
.gallery .tile.square { aspect-ratio: 4 / 5; width: 120px; }
.gallery .tile .play { position: absolute; inset: 0; display: grid; place-items: center; }
.gallery .tile .play span { width: 34px; height: 34px; border-radius: 50%; background: rgba(20, 12, 10, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: grid; place-items: center; color: #fff; }
.gallery .tile .play .i { width: 15px; height: 15px; margin-left: 2px; }
.gallery .tile .cover-badge { position: absolute; left: 6px; top: 6px; height: 20px; padding: 0 7px; border-radius: 980px; background: rgba(20, 12, 10, .55); color: #fff; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.gallery .tile .dur { position: absolute; right: 6px; bottom: 6px; font: 600 11px/1 var(--font); color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.textblock { background: var(--surface-2); border-radius: var(--r-md); padding: 11px 13px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; box-shadow: inset 0 0 0 0.5px var(--separator); position: relative; }
.textblock + .textblock { margin-top: 8px; }
.textblock .lbl { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; font-weight: 700; color: var(--label-3); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }
.textblock .lbl button { color: var(--tint-text); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; display: inline-flex; gap: 4px; align-items: center; }
.textblock .lbl .i { width: 14px; height: 14px; }
.textblock.muted { color: var(--label-3); font-style: italic; }
.tags { color: var(--s-review-text); }
.timeline { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.timeline li { display: flex; gap: 10px; padding: 5px 0; color: var(--label-2); }
.timeline li .dot { margin-top: 6px; }
.timeline li time { color: var(--label-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.timeline li b { color: var(--label); font-weight: 600; }
.comments { display: flex; flex-direction: column; gap: 10px; }
.cmt { display: flex; gap: 9px; }
.cmt .bubble { background: var(--fill-2); border-radius: 14px; padding: 8px 12px; font-size: 14px; line-height: 1.4; flex: 1; min-width: 0; white-space: pre-wrap; word-break: break-word; }
.cmt .who { font-size: 12px; font-weight: 600; color: var(--label-2); margin-bottom: 2px; display: flex; gap: 6px; }
.cmt .who time { font-weight: 500; color: var(--label-3); }
.cmt.return .bubble { background: var(--tint-soft); }
.composer { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.composer textarea { flex: 1; resize: none; min-height: 38px; max-height: 140px; padding: 9px 14px; border-radius: 19px; border: 0; background: var(--fill-2); box-shadow: inset 0 0 0 0.5px var(--separator); outline: none; font-size: 14px; line-height: 1.4; }
.composer textarea:focus { box-shadow: 0 0 0 3px var(--tint-ring); }
.composer .icon-btn { background: var(--tint); color: #fff; width: 36px; height: 36px; }
.insp-foot { padding: 12px 16px 16px; border-top: 0.5px solid var(--separator); display: flex; gap: 8px; flex-wrap: wrap; background: var(--bg-elevated); }
.insp-foot .btn { flex: 1; height: 42px; font-size: 15px; }
.insp-foot .btn.icon-only { flex: none; width: 42px; padding: 0; }

/* ---------- editor sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; pointer-events: none; }
.sheet {
  pointer-events: auto; width: min(700px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  background: var(--bg-elevated); border-radius: var(--r-xl); box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(24px) scale(.98); opacity: 0;
  transition: transform .38s var(--ease-sheet), opacity .25s var(--ease);
}
.sheet.open { transform: none; opacity: 1; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px 20px; border-bottom: 0.5px solid var(--separator); }
.sheet-head h2 { margin: 0; font: 700 19px/1.2 var(--font-display); letter-spacing: -0.015em; flex: 1; }
.sheet-body { overflow-y: auto; padding: 18px 20px 6px; overscroll-behavior: contain; }
.sheet-foot { display: flex; gap: 10px; padding: 12px 20px 16px; border-top: 0.5px solid var(--separator); align-items: center; }
.sheet-foot .grow { flex: 1; }
.field { margin-bottom: 16px; }
.field > label, .field > .flabel { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; color: var(--label-2); margin: 0 2px 6px; }
.field > label small, .field > .flabel small { font-weight: 500; color: var(--label-3); font-variant-numeric: tabular-nums; }
.field small.over { color: var(--danger); }
.input, .textarea {
  width: 100%; border: 0; outline: none; border-radius: 11px;
  background: var(--fill-2); box-shadow: inset 0 0 0 0.5px var(--separator);
  padding: 10px 12px; font-size: 15px; line-height: 1.4;
  transition: box-shadow .2s var(--ease), background .2s;
}
.input:focus, .textarea:focus { background: var(--surface); box-shadow: 0 0 0 3.5px var(--tint-ring), inset 0 0 0 0.5px var(--tint); }
.input.title { font-size: 18px; font-weight: 600; padding: 12px 14px; }
.textarea { resize: vertical; min-height: 92px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toggles { display: flex; gap: 8px; flex-wrap: wrap; }
.toggle {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 9px; border-radius: 11px;
  background: var(--fill-2); box-shadow: inset 0 0 0 0.5px var(--separator); font-size: 14px; font-weight: 600; color: var(--label-2);
  transition: all .2s var(--ease);
}
.toggle .pb { width: 20px; height: 20px; }
.toggle.on { background: var(--surface); color: var(--label); box-shadow: 0 0 0 2px var(--tint), var(--shadow-card); }
.toggle:not(.on) .pb { filter: grayscale(1); opacity: .5; }
.drop {
  border: 1.5px dashed var(--separator-strong); border-radius: var(--r-lg); padding: 18px; text-align: center;
  color: var(--label-2); font-size: 14px; transition: all .2s var(--ease); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.drop .i { width: 26px; height: 26px; color: var(--tint-text); margin-bottom: 4px; }
.drop b { color: var(--tint-text); }
.drop.over { border-color: var(--tint); background: var(--tint-soft); }
.drop small { display: block; color: var(--label-3); margin-top: 3px; font-size: 12.5px; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-top: 12px; }
.file { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 9 / 14; background: var(--fill) center/cover no-repeat; box-shadow: inset 0 0 0 0.5px var(--separator); }
.file .fname { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 7px 6px; font-size: 11px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file .ops { position: absolute; right: 5px; top: 5px; display: flex; gap: 4px; }
.file .ops button { width: 26px; height: 26px; border-radius: 50%; background: rgba(20, 12, 10, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; display: grid; place-items: center; }
.file .ops button .i { width: 14px; height: 14px; }
.file .ops button.on { background: var(--tint); }
.file .prog { position: absolute; left: 8px; right: 8px; bottom: 30px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.file .prog i { display: block; height: 100%; background: #fff; border-radius: 2px; transition: width .2s linear; }
.file.uploading::after { content: ""; position: absolute; inset: 0; background: rgba(20, 12, 10, .25); }
.file.failed { box-shadow: inset 0 0 0 2px var(--danger); }
.form-error { color: var(--danger); font-size: 13.5px; font-weight: 500; margin: 0 2px 12px; }
.hint { font-size: 12.5px; color: var(--label-3); margin: 6px 2px 0; }

/* ---------- menus, toasts, lightbox ---------- */
.menu {
  position: fixed; z-index: 70; min-width: 220px; padding: 6px;
  background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  border-radius: 14px; box-shadow: var(--shadow-pop); animation: pop .18s var(--ease);
}
.menu .mh { padding: 8px 10px 8px; border-bottom: 0.5px solid var(--separator); margin-bottom: 4px; }
.menu .mh b { display: block; font-size: 14px; }
.menu .mh span { font-size: 12.5px; color: var(--label-2); }
.menu button { display: flex; align-items: center; gap: 9px; width: 100%; height: 34px; padding: 0 10px; border-radius: 8px; font-size: 14px; text-align: left; }
.menu button:hover { background: var(--tint); color: #fff; }
.menu button.on::after { content: "✓"; margin-left: auto; font-weight: 700; }
.menu .sep { height: 0.5px; background: var(--separator); margin: 4px 6px; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } to { opacity: 1; transform: none; } }

.toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 980px;
  background: rgba(30, 20, 17, .86); color: #fff; font-size: 14px; font-weight: 500;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
  animation: toast-in .35s var(--ease-sheet);
}
.toast .i { width: 18px; height: 18px; }
.toast.err .i { color: #ff7a72; }
.toast.ok .i { color: #5ee07e; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }

.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(8, 5, 4, .92); display: grid; place-items: center; animation: fade .25s var(--ease); }
.lightbox img, .lightbox video { max-width: calc(100vw - 48px); max-height: calc(100vh - 80px); border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox .icon-btn { position: absolute; top: 18px; right: 18px; background: rgba(255, 255, 255, .14); color: #fff; width: 38px; height: 38px; }
.lightbox .cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .7); font-size: 13px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- login ---------- */
.login {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(1200px 600px at 15% -10%, color-mix(in srgb, var(--beige) 70%, transparent), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, color-mix(in srgb, var(--tint) 14%, transparent), transparent 60%),
    var(--bg);
}
.login-card { width: min(420px, 100%); background: var(--bg-elevated); border-radius: 28px; box-shadow: var(--shadow-pop); padding: 40px 34px 30px; text-align: center; animation: toast-in .5s var(--ease-sheet); }
.login-card .emblem { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 18px; box-shadow: 0 6px 20px rgba(26, 14, 12, .25); }
.login-card .plates { justify-content: center; margin-bottom: 18px; }
.login-card .plate { font-size: 22px; padding: 7px 10px 6px; box-shadow: 3px 3px 0 var(--brand-dark); }
.login-card h1 { font: 700 24px/1.2 var(--font-display); letter-spacing: -0.02em; margin: 0 0 6px; }
.login-card p { color: var(--label-2); margin: 0 0 24px; font-size: 15px; }
.login-card .gbtn { display: flex; justify-content: center; min-height: 44px; }
.login-card .note { font-size: 12.5px; color: var(--label-3); margin-top: 18px; }
.login-card .err { color: var(--danger); font-size: 14px; margin-top: 14px; }
.dev-logins { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- loading ---------- */
.skeleton { background: linear-gradient(90deg, var(--fill-2) 0%, var(--fill) 50%, var(--fill-2) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: var(--r-lg); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--fill-strong); border-top-color: var(--tint); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- phone (≤ 760 px): iOS layout ---------- */
.tabbar { display: none; }
.phone-only { display: none; }
@media (max-width: 760px) {
  body { font-size: 16px; }
  .desktop-only { display: none !important; }
  .phone-only { display: revert; }
  .topbar { height: 50px; padding: 0 14px; gap: 10px; }
  .topbar .sections { display: none; }
  .lockup img { width: 28px; height: 28px; }
  .plate { font-size: 13px; padding: 4px 6px 3px; }
  .avatar-btn span.nm { display: none; }
  .page { padding: 12px 16px 120px; }
  .page-head { margin-bottom: 12px; align-items: center; }
  .large-title { font-size: 32px; }
  .eyebrow { display: none; }
  .page-head .actions .btn span { display: none; }
  .page-head .actions .btn.primary { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
  .page-head .actions .btn.primary .i { width: 20px; height: 20px; stroke-width: 2.2; }
  .kpis { display: flex; overflow-x: auto; gap: 10px; margin: 0 -16px 16px; padding: 2px 16px 6px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
  .kpis::-webkit-scrollbar { display: none; }
  .kpi { flex: 0 0 152px; scroll-snap-align: start; padding: 12px 13px; }
  .kpi .k-num { font-size: 26px; }
  .toolbar { gap: 8px; margin-bottom: 12px; }
  .toolbar .seg { width: 100%; order: -1; }
  .toolbar .seg button { flex: 1; justify-content: center; height: 30px; }
  .period { font-size: 20px; min-width: 0; flex: 1 1 auto; margin: 0; white-space: nowrap; order: 0; }
  .toolbar .nav-group { order: 1; }
  .toolbar .nav-group .btn { height: 30px !important; padding: 0 11px !important; }
  .toolbar .spacer { display: none; }
  .row > .pill { display: none; }
  .row .meta .st { display: inline-flex; align-items: center; gap: 5px; color: var(--st); font-weight: 600; }
  .chips { display: none; }
  .month-phone .mgrid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-card); padding: 10px 6px 12px; }
  .mgrid .mwd { text-align: center; font-size: 11.5px; font-weight: 600; color: var(--label-3); padding-bottom: 4px; }
  .mgrid .md { display: flex; flex-direction: column; align-items: center; gap: 3px; height: 46px; padding-top: 2px; }
  .mgrid .md b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; font-weight: 500; }
  .mgrid .md.out b { color: var(--label-4); }
  .mgrid .md.today b { color: var(--tint-text); font-weight: 700; }
  .mgrid .md.sel b { background: var(--label); color: var(--bg); font-weight: 600; }
  .mgrid .md.sel.today b { background: var(--tint); color: #fff; }
  .mgrid .md .dots { display: flex; gap: 2px; height: 5px; }
  .mgrid .md .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--sc); }
  .wstrip { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-card); padding: 10px 4px; margin-bottom: 4px; }
  .wstrip .md { display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .wstrip small { font-size: 11px; font-weight: 600; color: var(--label-3); text-transform: uppercase; }
  .wstrip .md b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; font-weight: 500; }
  .wstrip .md.today b { color: var(--tint-text); font-weight: 700; }
  .wstrip .md.sel b { background: var(--label); color: var(--bg); font-weight: 600; }
  .wstrip .md.sel.today b { background: var(--tint); color: #fff; }
  .wstrip .dots { display: flex; gap: 2px; height: 5px; }
  .wstrip .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--sc); }
  .row + .row::before { left: 68px; }
  .inspector { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: calc(100% - 44px); border-radius: 14px 14px 0 0; transform: translateY(100%); }
  .inspector.open { transform: none; }
  .inspector::before { content: ""; position: absolute; top: 6px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--label-4); }
  .insp-head { padding-top: 18px; }
  .insp-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .sheet-wrap { place-items: end center; }
  .sheet { width: 100%; max-height: calc(100% - 30px); border-radius: 14px 14px 0 0; transform: translateY(100%); opacity: 1; }
  .sheet.open { transform: none; }
  .sheet-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .row2 { grid-template-columns: 1fr 1fr; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    padding: 7px 6px calc(6px + env(safe-area-inset-bottom));
    background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-top: 0.5px solid var(--separator);
  }
  .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--label-3); }
  .tabbar button .i { width: 25px; height: 25px; stroke-width: 1.7; }
  .tabbar button.on { color: var(--tint-text); }
  .toasts { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .menu { left: 12px !important; right: 12px; }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis .kpi:nth-child(n+4) { display: none; }
  .sections .soon { display: none; }
  .ev .th { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- alert dialog (iOS style) ---------- */
.dlg-wrap { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; background: var(--scrim); padding: 20px; animation: fade .2s var(--ease); }
.dlg {
  width: min(380px, 100%); background: var(--bg-elevated); border-radius: 20px; box-shadow: var(--shadow-pop);
  padding: 22px 18px 16px; text-align: center; animation: pop .28s var(--ease-sheet);
}
.dlg h3 { margin: 0 0 6px; font: 600 18px/1.3 var(--font-display); letter-spacing: -0.015em; }
.dlg p { margin: 0 0 16px; font-size: 14px; color: var(--label-2); }
.dlg .field { text-align: left; margin-bottom: 12px; }
.dlg .btns { display: flex; gap: 8px; margin-top: 6px; }
.dlg .btns .btn { flex: 1; height: 42px; font-size: 15px; }

/* ---------- items from Instagram / Facebook (outside the plan) ---------- */
.ev.ext { background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sc) 38%, transparent); color: inherit; }
.ev.ext::before { background: repeating-linear-gradient(to bottom, var(--sc) 0 4px, transparent 4px 7px); }
.ev .t .lk { width: 11px; height: 11px; margin-left: auto; color: var(--label-3); stroke-width: 2; }
a.pcard, a.row { color: inherit; }
.pcard.ext { background: transparent; box-shadow: inset 0 0 0 1px var(--separator-strong); }
.pcard.ext .body { opacity: .9; }
.row.ext .chev { color: var(--label-3); }
.feed-link { display: flex !important; gap: 10px; align-items: center; color: var(--label); white-space: normal !important; }
.feed-link + .feed-link { margin-top: 8px; }
.feed-link .fl-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.feed-link .fl-b b { font-weight: 600; font-size: 14px; }
.feed-link .fl-b span { color: var(--label-2); font-size: 13px; }
.feed-link > .i { color: var(--label-3); }
.feed-btn.spinning .i { animation: spin .9s linear infinite; }

/* language hint: every post text is in English */
.lang-warn { display: flex; align-items: center; gap: 7px; margin: 8px 2px 0; padding: 8px 11px; border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--s-draft-text); background: color-mix(in srgb, var(--s-draft) 12%, transparent); }
.lang-warn[hidden] { display: none; }
.lang-warn .i { width: 16px; height: 16px; flex: none; }
.section-h + .lang-warn { margin: 0 0 8px; }
#cnt-en span.over { color: var(--danger); }

/* compact platform filter: icon toggles with tooltips (7 platforms) */
.chips { gap: 4px; padding: 3px; border-radius: 12px; background: var(--fill-2); }
.chip-toggle.icon { width: 34px; height: 30px; padding: 0; justify-content: center; border-radius: 9px; background: transparent; box-shadow: none; }
.chip-toggle.icon.on { background: var(--surface); box-shadow: var(--shadow-card); }
.chip-toggle.icon .pb { width: 19px; height: 19px; }

/* language switch (login card) and the menu's section label */
.lang-switch { display: inline-flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--fill); margin: -14px 0 18px; }
.lang-switch button { height: 26px; min-width: 38px; padding: 0 9px; border-radius: 7px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--label-2); }
.lang-switch button.on { background: var(--bg-elevated); color: var(--label); box-shadow: 0 2px 6px rgba(0, 0, 0, .1); }
.menu .mlabel { padding: 6px 10px 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--label-3); }

/* «Ready» posts go out automatically (marketer autopilot) */
.auto-note { display: flex; gap: 9px; align-items: flex-start; margin: -4px 0 14px; padding: 10px 12px; border-radius: var(--r-md); font-size: 13.5px; line-height: 1.4;
  background: color-mix(in srgb, var(--s-approved) 11%, transparent); color: var(--label); box-shadow: inset 0 0 0 0.5px color-mix(in srgb, var(--s-approved) 30%, transparent); }
.auto-note .i { width: 17px; height: 17px; flex: none; color: var(--s-approved-text); margin-top: 1px; }
.auto-note.warn { background: color-mix(in srgb, var(--danger) 10%, transparent); box-shadow: inset 0 0 0 0.5px color-mix(in srgb, var(--danger) 35%, transparent); }
.auto-note.warn .i { color: var(--danger); }
.auto-note.muted { background: var(--fill); box-shadow: none; color: var(--label-2); }
.auto-note.muted .i { color: var(--label-3); }

/* ======================================================================
   Tasks — own task boards (copied from Trello on 06.10.2026)
   ====================================================================== */
.btn.sm { height: 28px; padding: 0 10px; font-size: 13px; }
.grow { flex: 1; }

/* page: on desktop the board fills the window and every column scrolls by itself */
.tasks-page.board-mode { max-width: none; display: flex; flex-direction: column; height: calc(100dvh - 56px); padding-bottom: 14px; }
.tasks-page.board-mode #tview { flex: 1; min-height: 380px; }
.tboards button { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; line-height: 28px; }
.kpi .k-lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* toolbar */
.tsearch { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 10px; background: var(--fill); min-width: 280px; color: var(--label-3); cursor: text; transition: box-shadow .2s, background .2s; }
.tsearch:focus-within { box-shadow: 0 0 0 3px var(--tint-ring); background: var(--surface); }
.tsearch .i { width: 16px; height: 16px; }
.tsearch input { border: 0; outline: none; background: transparent; flex: 1; min-width: 0; font-size: 14px; color: var(--label); }
.tsearch input::-webkit-search-cancel-button { display: none; }
.tfound { font-size: 12px; font-weight: 600; color: var(--label-3); white-space: nowrap; }
.tarch-btn { height: 32px; font-size: 13.5px; padding: 0 12px; }
.tarch-btn .i { width: 16px; height: 16px; }

/* board */
.tboard { height: 100%; display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 10px; scroll-snap-type: x proximity; }
.tcol { flex: 0 0 292px; min-width: 0; display: flex; flex-direction: column; max-height: 100%; background: var(--fill-2); border-radius: 18px; box-shadow: inset 0 0 0 0.5px var(--separator); scroll-snap-align: start; }
.tcol-h { display: flex; align-items: center; gap: 4px; padding: 9px 8px 5px 14px; }
.tcol-h h3 { margin: 0; flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font: 650 14.5px/1.25 var(--font-display); letter-spacing: -0.01em; }
.tcol-h h3 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcol-h h3 .i { width: 16px; height: 16px; flex: none; color: var(--s-published-text); stroke-width: 2.4; }
.tcol-h .cnt { font: 600 12px/1 var(--font-rounded); color: var(--label-3); background: var(--fill); padding: 4px 7px; border-radius: 7px; margin-right: 2px; }
.tcol-h .icon-btn { width: 28px; height: 28px; }
.tcol-h .icon-btn .i { width: 17px; height: 17px; }
.tcol-cards { flex: 1; min-height: 46px; overflow-y: auto; padding: 4px 8px 10px; display: flex; flex-direction: column; gap: 7px; overscroll-behavior: contain; }
.tcol-empty { padding: 14px 6px; text-align: center; font-size: 13px; color: var(--label-3); }
.tcol-add { flex: 0 0 230px; height: 46px; border-radius: 14px; border: 1.5px dashed var(--separator-strong); color: var(--label-2); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all .2s var(--ease); }
.tcol-add:hover { color: var(--tint-text); border-color: var(--tint-ring); background: var(--tint-soft); }
.tmore { width: 100%; padding: 8px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--tint-text); flex: none; }
.tmore:hover { background: var(--fill); }
.tlist > .tmore { margin-top: 6px; }
.tdrop { flex: none; border-radius: 12px; background: var(--tint-soft); box-shadow: inset 0 0 0 1.5px var(--tint-ring); }

/* card */
.tcard { position: relative; display: block; flex: none; text-align: left; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-card); padding: 9px 11px 8px; cursor: pointer; overflow: hidden; transition: box-shadow .2s var(--ease), transform .15s var(--ease); -webkit-user-select: none; user-select: none; }
.tcard:hover { box-shadow: var(--shadow-pop); }
.tcard:active { transform: scale(.985); }
.tcard.sel { box-shadow: 0 0 0 2px var(--tint), var(--shadow-card); }
.tcard.dragging { opacity: .35; }
.tcover { display: block; width: calc(100% + 22px); margin: -9px -11px 9px; max-height: 170px; object-fit: cover; background: var(--fill); }
.tc-title { display: flex; gap: 7px; align-items: flex-start; font-size: 14px; line-height: 1.33; font-weight: 500; word-break: break-word; }
.tc-title > span { flex: 1; min-width: 0; }
.tcard.is-done .tc-title > span, .trow.is-done .ttl { color: var(--label-2); }
.tc-check { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--label-4); display: grid; place-items: center; color: transparent; transition: all .18s var(--ease); }
.tc-check .i { width: 12px; height: 12px; stroke-width: 2.8; }
.tc-check:hover { box-shadow: inset 0 0 0 1.5px var(--ok); color: var(--ok); }
.tc-check.on { background: var(--ok); box-shadow: none; color: #fff; }
.tcard .tc-check:not(.on) { width: 0; margin-right: -7px; opacity: 0; }
.tcard:hover .tc-check, .tcard:focus-visible .tc-check { width: 18px; margin-right: 0; opacity: 1; }
.tbadges { display: flex; flex-wrap: wrap; gap: 4px 9px; align-items: center; margin-top: 7px; font-size: 12px; font-weight: 500; color: var(--label-2); }
.tb { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.tb .i { width: 14px; height: 14px; }
.tb.full { color: var(--s-published-text); }
.tdue { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px 0 5px; border-radius: 6px; font-weight: 600; font-size: 11.5px; background: var(--fill); color: var(--label-2); white-space: nowrap; }
.tdue .i { width: 13px; height: 13px; }
.tdue.overdue { background: color-mix(in srgb, var(--danger) 13%, transparent); color: var(--danger); }
.tdue.soon { background: color-mix(in srgb, var(--s-draft) 16%, transparent); color: var(--s-draft-text); }
.tdue.done { background: color-mix(in srgb, var(--s-published) 15%, transparent); color: var(--s-published-text); }
.tnum { margin-left: auto; font: 500 11px/1 var(--font); color: var(--label-3); font-variant-numeric: tabular-nums; }
.tnum.big { margin-left: 4px; font-size: 13px; }

/* labels */
.lc-green { --lc: #34c759; } .lc-yellow { --lc: #f5c400; } .lc-orange { --lc: #ff9500; } .lc-red { --lc: #ff3b30; }
.lc-purple { --lc: #af52de; } .lc-blue { --lc: #0a84ff; } .lc-sky { --lc: #5ac8fa; } .lc-lime { --lc: #9ccc3c; }
.lc-pink { --lc: #ff2d78; } .lc-black { --lc: #48484a; } .lc-none { --lc: #a19b97; }
.tlabels { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.tlabel { display: inline-flex; align-items: center; height: 17px; padding: 0 7px; border-radius: 5px; font-size: 11px; font-weight: 700; color: #fff; background: var(--lc); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tlabel.bar { width: 36px; height: 7px; padding: 0; border-radius: 4px; }
.tlabel.sm { height: 15px; font-size: 10.5px; padding: 0 6px; }
.tlabel.sm.bar { width: 22px; height: 6px; padding: 0; }
.tlabel.lg { height: 24px; padding: 0 10px; font-size: 12.5px; border-radius: 6px; }
.tlabel.lg.bar { width: 42px; height: 24px; padding: 0; }
.tlabel.swatch { width: 28px; height: 18px; padding: 0; font-size: 0; flex: none; }
.tlabel-add { width: 28px; height: 24px; border-radius: 6px; background: var(--fill); display: grid; place-items: center; color: var(--label-2); }
.tlabel-add .i { width: 15px; height: 15px; }

/* inline composer */
.tcomposer { flex: none; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-card), 0 0 0 2px var(--tint-ring); padding: 8px 9px; }
.tcomposer textarea { width: 100%; border: 0; outline: none; resize: none; background: transparent; font-size: 14px; line-height: 1.35; min-height: 40px; }
.tc-row { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.tc-row .btn { height: 30px; font-size: 13px; padding: 0 13px; }
.tcomposer-wrap { padding: 8px; margin-bottom: 8px; }
.tcomposer-wrap .tcomposer { box-shadow: 0 0 0 2px var(--tint-ring); }

/* list view (phone + desktop "Список") */
.tlist { max-width: 900px; }
.group-h .btn.plain.sm { margin-left: auto; }
.trow { display: flex; align-items: center; gap: 11px; padding: 10px 12px 10px 14px; cursor: pointer; position: relative; transition: background .15s; }
.trow + .trow::before { content: ""; position: absolute; top: 0; left: 46px; right: 0; height: 0.5px; background: var(--separator); }
.trow:hover { background: var(--fill-2); }
.trow.sel { background: var(--tint-soft); }
.trow.static { cursor: default; }
.trow .tc-check { width: 22px; height: 22px; }
.trow .b { flex: 1; min-width: 0; }
.trow .ttl { font-size: 15px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.trow .ttl .i { width: 16px; height: 16px; vertical-align: -3px; }
.trow .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; font-size: 12px; color: var(--label-2); }
.trow .th { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; flex: none; background: var(--fill); }
.trow .chev { color: var(--label-4); }
.trow .chev .i { width: 16px; height: 16px; }
.trow > .btn { flex: none; height: 30px; font-size: 13px; }
.empty.small { padding: 18px; font-size: 14px; }
.tpills { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 12px; padding: 2px 16px 4px; scrollbar-width: none; }
.tpills::-webkit-scrollbar { display: none; }
.tpill { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 17px; background: var(--fill); font-size: 14px; font-weight: 600; color: var(--label-2); white-space: nowrap; }
.tpill span { font: 600 12px/1 var(--font-rounded); color: var(--label-3); }
.tpill.on { background: var(--label); color: var(--bg); }
.tpill.on span { color: inherit; opacity: .65; }

/* side panel */
.tinsp { width: 470px; }
.tinsp .insp-head .pill { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.tinsp-cover { display: block; width: calc(100% + 36px); margin: 4px -18px 14px; height: 170px; background: var(--fill) center/cover no-repeat; }
.tinsp .insp-title { display: flex; gap: 10px; align-items: flex-start; border-radius: 8px; margin-left: -6px; padding: 2px 6px; }
.tinsp .insp-title.editable { cursor: text; }
.tinsp .insp-title.editable:hover { background: var(--fill-2); }
.tinsp .insp-title .tc-check { width: 26px; height: 26px; margin-top: 2px; }
.tinsp .insp-title .tc-check .i { width: 15px; height: 15px; }
.tedit-title { font: 700 20px/1.25 var(--font-display); resize: none; margin: 4px 0 2px; }
.tedit-row { display: flex; gap: 8px; align-items: center; margin: 6px 0 12px; flex-wrap: wrap; }
.tedit-row .btn { height: 32px; font-size: 13.5px; }
.tedit-row .hint { margin: 0; }
.tkv { grid-template-columns: 92px 1fr; align-items: center; }
.tkv dd.muted { color: var(--label-2); font-weight: 500; }
.tselect { appearance: none; -webkit-appearance: none; border: 0; border-radius: 9px; background: var(--fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23887d78' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5 12 15.5l6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 13px; padding: 6px 28px 6px 10px; font-size: 14px; font-weight: 600; max-width: 100%; color: var(--label); outline: none; }
.tselect:focus { box-shadow: 0 0 0 3px var(--tint-ring); }
.input.sm { height: 32px; padding: 5px 9px; font-size: 14px; border-radius: 9px; }
.tdue-edit { gap: 6px; }
.tdue-edit input[type="date"] { width: 150px; }
.tdue-edit input[type="time"] { width: 98px; }
.tdue-done { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 9px; background: var(--fill); font-size: 13px; font-weight: 600; color: var(--label-2); }
.tdue-done .i { width: 14px; height: 14px; stroke-width: 2.4; }
.tdue-done.on { background: color-mix(in srgb, var(--s-published) 16%, transparent); color: var(--s-published-text); }
.tdue-done.overdue:not(.on) { color: var(--danger); }
.tadd-desc { width: 100%; text-align: left; cursor: text; }
.tadd-row { margin: 12px 0 0; }

/* markdown */
.md, .textblock.md, .tcomments .cmt .bubble { white-space: normal; }
.md p { margin: 0 0 8px; }
.md p:last-child, .md ul:last-child, .md ol:last-child { margin-bottom: 0; }
.md ul, .md ol { margin: 4px 0 8px; padding-left: 20px; }
.md li { margin: 2px 0; }
.md li ul { margin: 2px 0; }
.md code { font: 12.5px/1.4 var(--font-mono); background: var(--fill); padding: 1px 5px; border-radius: 5px; word-break: break-word; }
.md pre { background: var(--fill); border-radius: 9px; padding: 9px 11px; overflow-x: auto; margin: 6px 0 8px; }
.md pre code { background: none; padding: 0; white-space: pre; }
.md blockquote { margin: 6px 0; padding: 2px 0 2px 11px; border-left: 3px solid var(--separator-strong); color: var(--label-2); }
.md h4 { margin: 10px 0 4px; font-size: 15px; }
.md hr { border: 0; border-top: 0.5px solid var(--separator); margin: 10px 0; }
.md a { color: var(--tint-text); text-decoration: underline; text-decoration-color: var(--tint-ring); text-underline-offset: 2px; word-break: break-word; }
.md a.card-link { text-decoration: none; background: var(--tint-soft); padding: 0 5px; border-radius: 5px; }

/* checklists — Reminders style */
.section-h > .i { width: 16px; height: 16px; flex: none; }
.section-h .cl-name { flex: 1; min-width: 0; margin-left: 6px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--label); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.section-h .cl-count, .cnt-inline { font: 600 12px/1 var(--font-rounded); color: var(--label-3); text-transform: none; letter-spacing: 0; margin-left: 6px; }
.section-h .icon-btn { width: 26px; height: 26px; }
.section-h .btn.plain { height: 26px; padding: 0 8px; font-size: 12.5px; text-transform: none; letter-spacing: 0; }
.section-h .btn.plain .i { width: 15px; height: 15px; }
.tprogress { height: 5px; border-radius: 3px; background: var(--fill); overflow: hidden; margin: -2px 0 6px; }
.tprogress i { display: block; height: 100%; background: var(--s-review); border-radius: 3px; transition: width .3s var(--ease); }
.tprogress.full i { background: var(--ok); }
.tchecklist { list-style: none; margin: 0 0 6px; padding: 0; }
.tchecklist li { display: flex; align-items: flex-start; gap: 9px; padding: 5px 4px; border-radius: 8px; }
.tchecklist li:hover { background: var(--fill-2); }
.tcircle { flex: none; width: 21px; height: 21px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--label-4); display: grid; place-items: center; color: transparent; transition: all .18s var(--ease); }
.tcircle .i { width: 13px; height: 13px; stroke-width: 2.8; }
.tcircle.on { background: var(--ok); box-shadow: none; color: #fff; }
.tcircle:not(.on):not([disabled]):hover { box-shadow: inset 0 0 0 1.5px var(--ok); }
.ci-text { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; padding-top: 1px; word-break: break-word; }
.tchecklist li.done .ci-text { color: var(--label-3); text-decoration: line-through; text-decoration-color: var(--label-4); }
.ci-del { width: 24px; height: 24px; opacity: 0; }
.ci-del .i { width: 14px; height: 14px; }
.tchecklist li:hover .ci-del, .ci-del:focus-visible { opacity: 1; }
@media (hover: none) { .ci-del { opacity: .7; } }
.tcl-input { width: 100%; margin: 0 0 4px; }

/* attachments */
.tatts { display: grid; grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); gap: 8px; }
.tatt { position: relative; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 0.5px var(--separator); overflow: hidden; }
.tatt-main { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 96px; padding: 10px; text-align: left; background: center/cover no-repeat; }
.tatt.img .tatt-main { justify-content: flex-end; min-height: 112px; }
.tatt.img .tatt-main::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .58)); }
.tatt.img .tatt-name, .tatt.img .tatt-meta { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.tatt-name, .tatt-meta { position: relative; max-width: 100%; }
.tatt-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--fill); display: grid; place-items: center; color: var(--label-2); margin-bottom: 6px; }
.tatt-ico .i { width: 17px; height: 17px; }
.tatt-ico .spinner { width: 16px; height: 16px; border-width: 2px; }
.tatt-name { font-size: 13px; font-weight: 600; line-height: 1.25; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tatt-meta { font-size: 11.5px; color: var(--label-3); }
.tatt-more { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; background: rgba(20, 12, 10, .45); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tatt:not(.img) .tatt-more { background: var(--fill); color: var(--label-2); }
.tatt.failed { box-shadow: inset 0 0 0 1.5px var(--danger); }

/* comments + history */
.tcomposer-cmt { margin: 0 0 12px; }
.tcomments .cmt .who { align-items: center; }
.cmt-more { margin-left: auto; width: 24px; height: 18px; display: grid; place-items: center; color: var(--label-3); border-radius: 6px; }
.cmt-more:hover { background: var(--fill); }
.cmt-more .i { width: 16px; height: 16px; }
.tcomments .bubble .textarea { margin-top: 4px; min-height: 70px; }
.thist-toggle { width: 100%; justify-content: flex-start; gap: 0; cursor: pointer; }
.thist-toggle > .i { width: 15px; height: 15px; margin-left: auto; }

/* menus: links, destructive items */
.menu a.mlink { display: flex; align-items: center; gap: 9px; width: 100%; height: 34px; padding: 0 10px; border-radius: 8px; font-size: 14px; color: var(--label); }
.menu a.mlink:hover { background: var(--tint); color: #fff; }
.menu .i { width: 16px; height: 16px; }
.menu button.danger { color: var(--danger); }
.menu button.danger:hover { background: var(--danger); color: #fff; }
.labels-menu button span:not(.tlabel) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* labels editor */
.tlabels-sheet { width: min(540px, calc(100vw - 32px)); }
.tlabel-edit { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 0.5px solid var(--separator); flex-wrap: wrap; }
.swatches { display: flex; gap: 5px; flex-wrap: wrap; }
.sw { width: 22px; height: 22px; border-radius: 50%; background: var(--lc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.sw.on { box-shadow: 0 0 0 2px var(--bg-elevated), 0 0 0 4px var(--lc); }
.tlabel-edit .input { flex: 1; min-width: 150px; }

@media (max-width: 760px) {
  .tasks-page .page-head .tboards { display: none; }
  .ttoolbar .tboards { order: -3; width: 100%; }
  .ttoolbar .tboards button { flex: 1; justify-content: center; max-width: none; }
  .ttoolbar .tsearch { order: -2; min-width: 0; flex: 1 1 100%; height: 38px; }
  .ttoolbar .tfilter { order: 0; width: auto; flex: 1 1 0; }
  .ttoolbar .tfilter button { flex: 1; justify-content: center; padding: 0 6px; }
  .tarch-btn span { display: none; }
  .tarch-btn { width: 36px; padding: 0; }
  .tinsp { width: auto; }
  .tinsp .tkv { grid-template-columns: 84px 1fr; }
  .tdue-edit input[type="date"] { width: 140px; }
  .tlist { max-width: none; }
}
@media (min-width: 761px) { .ttoolbar .tboards { display: none; } }

/* ======================================================================
   Tasks — the panel's own Jira (since 07.10.2026): projects, types, priorities, sprints, epics, roadmap, JQL, reports
   ====================================================================== */
.tviews { display: flex; gap: 4px; margin: -6px 0 14px; padding: 3px; background: var(--fill-2); border-radius: 12px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tviews::-webkit-scrollbar { display: none; }
.tviews button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--label-2); white-space: nowrap; }
.tviews button .i { width: 16px; height: 16px; }
.tviews button:hover { color: var(--label); background: var(--fill-2); }
.tviews button.on { background: var(--bg-elevated); color: var(--label); font-weight: 600; box-shadow: 0 2px 6px rgba(0, 0, 0, .10), 0 1px 1px rgba(0, 0, 0, .04); }
.tscope-btn { gap: 7px; max-width: 280px; }
.tscope-btn span:not(.rm-swatch) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tscope-btn .i:last-child { width: 14px; height: 14px; opacity: .6; }
.tscope-short { display: none; font: 700 13px/1 var(--font-mono); }
@media (max-width: 760px) { .tscope-short { display: inline-block; max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; line-height: 1.2; } }
.tscope-menu button em { margin-left: auto; font: 600 12px/1 var(--font-rounded); color: var(--label-3); font-style: normal; padding-left: 12px; }
.tscope-menu .tscope-group { font-weight: 700; }
.tscope-menu .tscope-area { padding-left: 30px; }
.tscope-menu .tscope-area .tkey { min-width: 42px; display: inline-block; }
.tscope-menu { min-width: min(300px, calc(100vw - 24px)); }
.tscope-menu button > span:not(.rm-swatch) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tscope-menu button.on, .tchip-menu button.on, .menu button.on { background: var(--tint-soft); color: var(--tint-text); }
.ttoolbar[hidden] { display: none; }
.ttoolbar .btn.sm .i { width: 15px; height: 15px; }
.ttoolbar .tselect { height: 32px; padding-top: 4px; padding-bottom: 4px; font-size: 13.5px; max-width: 260px; }

/* issue types (Jira colours) and priorities */
.ttype { flex: none; width: 18px; height: 18px; border-radius: 5px; display: inline-grid; place-items: center; color: #fff; background: #4bade8; }
.ttype .i { width: 13px; height: 13px; stroke-width: 2.3; }
.ttype.sm { width: 15px; height: 15px; border-radius: 4px; }
.ttype.sm .i { width: 11px; height: 11px; }
.ty-epic { background: #8f55e0; } .ty-story { background: #5cb23c; } .ty-task { background: #3d9be9; } .ty-bug { background: #e5493a; } .ty-subtask { background: #6fb6ec; }
.tprio { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; }
.tprio .i { width: 16px; height: 16px; stroke-width: 2.4; }
.pr-highest { color: #e3342f; } .pr-high { color: #f0623a; } .pr-medium { color: #e8a317; } .pr-low { color: #2f9e6a; } .pr-lowest { color: #6aa98a; }
.tkey { font: 600 11.5px/1 var(--font-mono); color: var(--label-3); white-space: nowrap; letter-spacing: -.02em; }
button.tkey { border-radius: 6px; padding: 3px 6px; }
button.tkey:hover { background: var(--fill); color: var(--label); }
.tkey.big { font-size: 13px; color: var(--label-2); }
.tproj-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 600; color: var(--label-2); background: color-mix(in srgb, var(--lc) 16%, transparent); max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tstatus { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
.tstatus.sm { height: 19px; font-size: 10.5px; padding: 0 6px; }
.tstatus.cat-backlog, .tstatus.cat-todo { background: var(--fill); color: var(--label-2); }
.tstatus.cat-progress { background: color-mix(in srgb, var(--s-review) 15%, transparent); color: var(--s-review-text); }
.tstatus.cat-done { background: color-mix(in srgb, var(--s-published) 16%, transparent); color: var(--s-published-text); }
.tstatus.cat-info { background: color-mix(in srgb, var(--s-approved) 14%, transparent); color: var(--s-approved-text); }
.tcat-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--label-4); }
.tcat-dot.cat-progress { background: var(--s-review); } .tcat-dot.cat-done { background: var(--s-published); } .tcat-dot.cat-info { background: var(--s-approved); } .tcat-dot.cat-backlog { background: transparent; box-shadow: inset 0 0 0 1.5px var(--label-4); }
.tselect.cat-progress { color: var(--s-review-text); } .tselect.cat-done { color: var(--s-published-text); }
.tepic { display: inline-block; vertical-align: middle; height: 19px; line-height: 19px; padding: 0 7px; border-radius: 5px; font-size: 11px; font-weight: 700; color: color-mix(in srgb, var(--lc) 75%, var(--label)); background: color-mix(in srgb, var(--lc) 17%, transparent); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard .tepic { margin-top: 6px; }
.tpoints { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--fill); font: 700 11px/1 var(--font-rounded); color: var(--label-2); }
.avatar.xs { width: 22px; height: 22px; font-size: 10px; }
.avatar.pk-session { background: color-mix(in srgb, var(--s-review) 18%, var(--surface)); color: var(--s-review-text); }
.avatar.pk-owner { background: var(--tint); color: #fff; }
.avatar.tnobody { background: transparent; box-shadow: inset 0 0 0 1.5px var(--label-4); color: var(--label-4); }
.avatar.tnobody .i { width: 13px; height: 13px; }
.tperson { display: inline-flex; flex: none; }
.tblocked { color: var(--danger); }
.tparent { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--label-3); margin-bottom: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tparent-t { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* board cards: Jira footer */
.tc-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; margin-top: 8px; font-size: 12px; color: var(--label-2); }
.tc-foot .tb { font-weight: 500; }
.tcol-h .tcat-dot { margin-right: 1px; }
.tcol.cat-done .tcol-h h3 { color: var(--s-published-text); }

/* swimlanes */
.tboard.lanes { display: block; overflow: auto; padding: 0 2px 10px; }
.tlane-head { display: flex; gap: 12px; position: sticky; top: 0; z-index: 2; background: var(--bg); padding-bottom: 6px; width: max-content; }
.tlane-head .tcol { max-height: none; }
.tlane { width: max-content; margin-bottom: 10px; }
.tlane-title { display: flex; align-items: center; gap: 8px; position: sticky; left: 0; width: max-content; max-width: 90vw; padding: 8px 6px; font-size: 14px; }
.tlane-title .muted { color: var(--label-3); font-size: 12.5px; }
.tlane-title .cnt { font: 600 12px/1 var(--font-rounded); color: var(--label-3); background: var(--fill); padding: 4px 7px; border-radius: 7px; }
.tlane-title .icon-btn { width: 26px; height: 26px; }
.tlane-dot { width: 12px; height: 12px; border-radius: 4px; background: var(--lc); }
.tlane-row { display: flex; gap: 12px; align-items: stretch; }
.tlane-row .tcol { max-height: none; }
.tlane-row .tcol-cards { overflow: visible; min-height: 60px; }

/* sprint banner on the board */
.tsprint-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-card); padding: 9px 12px 9px 14px; margin-bottom: 12px; }
.tsb-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; flex: 1; font-size: 14px; }
.tsb-main .i { width: 16px; height: 16px; color: var(--s-draft-text); }
.tsb-main .muted { color: var(--label-3); font-size: 13px; }
.tsb-main b, .tsb-main .muted { white-space: nowrap; }
.tsb-goal { font-size: 13px; color: var(--label-2); max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tsb-left { font: 600 12px/1 var(--font-rounded); padding: 4px 8px; border-radius: 7px; background: var(--fill); color: var(--label-2); white-space: nowrap; }
.tsb-left.soon { background: color-mix(in srgb, var(--s-draft) 16%, transparent); color: var(--s-draft-text); }
.tsb-left.over { background: color-mix(in srgb, var(--danger) 13%, transparent); color: var(--danger); }
.tsb-prog { display: flex; align-items: center; gap: 8px; font: 600 12.5px/1 var(--font-rounded); color: var(--label-2); }
.tsb-prog .tprogress { width: 140px; margin: 0; }
.tquick-people { display: flex; align-items: center; }
.tquick-people { gap: 3px; }
.tqp { border-radius: 50%; transition: transform .15s var(--ease); }
.tqp:hover { transform: translateY(-2px); z-index: 1; }
.tqp.on { box-shadow: 0 0 0 2px var(--tint); z-index: 1; }

/* small issue rows (panel, dashboard) */
.tminis { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.tmini { display: flex; align-items: center; gap: 7px; padding: 6px 7px; border-radius: 9px; cursor: pointer; min-width: 0; font-size: 13.5px; }
.tmini:hover { background: var(--fill-2); }
.tmini .ttl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmini.is-done .ttl { color: var(--label-3); text-decoration: line-through; text-decoration-color: var(--label-4); }
.tminis .tdue { height: 18px; font-size: 11px; }

/* side panel: fields */
.tkv dd { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.tfield-person, .tfield-prio, .tfield-type { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tro { display: inline-flex; align-items: center; gap: 6px; }
.tref { display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px; margin-left: -7px; border-radius: 8px; font-size: 14px; text-align: left; min-width: 0; }
.tref:hover { background: var(--fill-2); }
.tpoints-input { width: 90px; }
.tsub-input { width: 100%; margin: 2px 0 6px; }
.tlink-group { margin-bottom: 6px; }
.tlink-type { font-size: 12px; font-weight: 600; color: var(--label-3); margin: 6px 0 2px 7px; }
.tlink-row { display: flex; align-items: center; gap: 4px; }
.tlink-row .tmini { flex: 1; }
.tlink-row .icon-btn { width: 26px; height: 26px; opacity: .55; }
.tlink-row:hover .icon-btn { opacity: 1; }

/* create dialog + settings */
.tcreate-sheet { width: min(640px, calc(100vw - 32px)); }
.tform { display: flex; flex-direction: column; gap: 12px; }
.tform label, .tform-labels { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tform label > span, .tform-labels > span { font-size: 12.5px; font-weight: 600; color: var(--label-2); }
.tform-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tform .tselect { width: 100%; max-width: none; }
.tform .input { width: 100%; }
.tform-note { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--label-2); background: var(--fill-2); border-radius: 10px; padding: 8px 10px; }
.tform-note .i { width: 16px; height: 16px; }
.tform-labels > div { display: flex; flex-wrap: wrap; gap: 5px; }
.tlabel-pick { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px 0 5px; border-radius: 8px; background: var(--fill-2); font-size: 12.5px; }
.tlabel-pick.on { box-shadow: inset 0 0 0 2px var(--tint-ring); background: var(--tint-soft); }
.tcheck { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--label-2); cursor: pointer; white-space: nowrap; }
.tadmin-sheet { width: min(760px, calc(100vw - 32px)); }
.tadm-tabs { margin: 0 18px 4px; }
.tadm-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 0.5px solid var(--separator); flex-wrap: wrap; }
.tadm-row .input { flex: 1; min-width: 140px; }
.tadm-row .tadm-key { flex: none; width: 82px; min-width: 0; font-family: var(--font-mono); text-transform: uppercase; }
.tadm-row .tadm-aliases { flex: 1.6; }
.tadm-row.off { opacity: .55; }
.tadm-row .icon-btn { width: 28px; height: 28px; }
.tadm-row .tselect { max-width: 170px; }
.tadm-group { border: 0.5px solid var(--separator); border-radius: 12px; padding: 2px 12px 8px; margin: 10px 0; }
.tadm-group > .tadm-row:last-of-type { border-bottom: 0; }
.tadm-ghead .input { flex: 0 1 230px; font-weight: 700; }
.tadm-home { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--label-2); }
.tadm-area { padding-left: 12px; }
.tadm-area { gap: 7px; }
.tadm-area .input:not(.tadm-key) { min-width: 90px; }
.tadm-area .tadm-key { width: 72px; }
.tadm-group .btn.plain.sm { margin-top: 4px; }

/* backlog */
.tbacklog { display: flex; flex-direction: column; gap: 14px; max-width: 1180px; }
.bsec { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 4px 0 6px; }
.bsec.active { box-shadow: var(--shadow-card), inset 3px 0 0 var(--s-published); }
.bsec-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px 6px 8px; }
.bsec-h h3 { margin: 0; display: flex; align-items: center; gap: 7px; font: 700 15.5px/1.2 var(--font-display); }
.bsec-h h3 .i { width: 16px; height: 16px; color: var(--label-3); }
.bsec.backlog .bsec-h { padding-left: 16px; }
.bsec-h .muted { color: var(--label-3); font-size: 13px; }
.bcount { font-size: 12.5px; color: var(--label-3); font-weight: 500; }
.bsec-h .icon-btn { width: 28px; height: 28px; }
.bgoal { margin: -2px 16px 6px 44px; font-size: 13px; color: var(--label-2); }
.brows { min-height: 30px; padding: 0 6px; }
.brow { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 9px; cursor: pointer; min-width: 0; position: relative; }
.brow + .brow::before { content: ""; position: absolute; top: 0; left: 34px; right: 8px; height: 0.5px; background: var(--separator); }
.brow:hover { background: var(--fill-2); }
.brow.sel { background: var(--tint-soft); }
.brow.dragging { opacity: .35; }
.brow.is-done .bttl { color: var(--label-3); text-decoration: line-through; text-decoration-color: var(--label-4); }
.bgrip { color: var(--label-4); cursor: grab; display: grid; }
.bgrip .i { width: 15px; height: 15px; }
.bttl { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bmeta { display: flex; align-items: center; gap: 6px; flex: none; max-width: 52%; overflow: hidden; }
.bmeta .tepic { max-width: 170px; }
.bempty { padding: 10px 14px; font-size: 13px; color: var(--label-3); }
.bdrop { height: 4px; border-radius: 2px; background: var(--tint); margin: 2px 8px; }
.badd { display: flex; align-items: center; gap: 6px; margin: 2px 8px 0; padding: 7px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--label-2); }
.badd:hover { background: var(--fill-2); color: var(--tint-text); }
.badd .i { width: 15px; height: 15px; }
.bcomposer { display: flex; align-items: center; gap: 6px; margin: 4px 12px 2px; }
.bcomposer .input { flex: 1; }

/* roadmap */
.rm { display: grid; grid-template-columns: 320px 1fr; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.rm-left { border-right: 0.5px solid var(--separator); min-width: 0; }
.rm-corner { height: 50px; display: flex; align-items: flex-end; padding: 0 14px 8px; font-size: 12.5px; font-weight: 600; color: var(--label-3); border-bottom: 0.5px solid var(--separator); }
.rm-right { overflow-x: auto; position: relative; }
.rm-canvas { position: relative; min-width: 100%; }
.rm-head { position: relative; height: 26px; border-bottom: 0.5px solid var(--separator); }
.rm-head:first-child { height: 50px; }
.rm-head.weeks { height: 22px; margin-top: -24px; border-bottom: 0; }
.rm-month { position: absolute; top: 0; bottom: 0; border-left: 0.5px solid var(--separator); display: flex; align-items: flex-start; padding: 8px 8px 0; font-size: 12.5px; font-weight: 600; color: var(--label-2); text-transform: capitalize; white-space: nowrap; overflow: hidden; }
.rm-week { position: absolute; top: 0; height: 22px; display: grid; place-items: center; font: 600 10.5px/1 var(--font-rounded); color: var(--label-3); border-left: 0.5px solid var(--fill); }
.rm-grid { position: relative; }
.rm-vline { position: absolute; top: 0; bottom: 0; width: 0.5px; background: var(--separator); }
.rm-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--tint); z-index: 1; opacity: .7; }
.rm-row { height: 40px; display: flex; align-items: center; gap: 6px; padding: 0 8px; position: relative; border-bottom: 0.5px solid var(--fill-2); }
.rm-left .rm-row { padding-left: 4px; }
.rm-row.child { height: 32px; font-size: 13px; color: var(--label-2); }
.rm-left .rm-row.child { padding-left: 34px; cursor: pointer; }
.rm-left .rm-row.child:hover { background: var(--fill-2); }
.rm-row.sel { background: var(--tint-soft); }
.rm-row .icon-btn { width: 26px; height: 26px; }
.rm-swatch { width: 11px; height: 11px; border-radius: 3px; background: var(--lc); flex: none; display: inline-block; }
.rm-name { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; font-size: 14px; font-weight: 600; text-align: left; border-radius: 6px; padding: 2px 4px; }
.rm-name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-name:hover { background: var(--fill-2); }
.rm-ct { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-prog { width: 54px; flex: none; }
.rm-prog .tprogress { margin: 0; }
.rm-bar { position: absolute; top: 8px; height: 24px; border-radius: 7px; background: color-mix(in srgb, var(--lc) 26%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lc) 55%, transparent); overflow: hidden; display: flex; align-items: center; cursor: grab; user-select: none; touch-action: none; }
.rm-bar[data-act] { cursor: pointer; }
.rm-bar.open-end { background: linear-gradient(90deg, color-mix(in srgb, var(--lc) 26%, var(--surface)) 70%, transparent); }
.rm-bar.done { opacity: .65; }
.rm-bar.dragging { cursor: grabbing; box-shadow: inset 0 0 0 1px var(--lc), var(--shadow-pop); z-index: 3; }
.rm-fill { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--lc) 45%, transparent); }
.rm-bar-t { position: relative; padding: 0 9px; font-size: 12px; font-weight: 700; white-space: nowrap; color: color-mix(in srgb, var(--lc) 60%, var(--label)); overflow: hidden; text-overflow: ellipsis; }
.rm-h { position: absolute; top: 0; bottom: 0; width: 8px; cursor: ew-resize; z-index: 1; }
.rm-h.l { left: 0; } .rm-h.r { right: 0; }
.rm-bar.child { top: 9px; height: 14px; background: var(--fill); box-shadow: none; cursor: default; }
.rm-dot { position: absolute; top: 11px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--s-review); cursor: pointer; box-shadow: 0 0 0 2px var(--surface); }
.rm-dot.done { background: var(--s-published); }
.rm-card .trow.sub { padding-left: 32px; }
.rm-card .trow .tprogress { margin: 6px 0 0; }

/* issue search */
.tjql { position: relative; display: flex; align-items: flex-start; gap: 6px; flex: 1; min-width: 320px; }
.tjql textarea { flex: 1; min-height: 34px; max-height: 140px; resize: none; padding: 7px 11px; border: 0; border-radius: 10px; background: var(--fill); font: 13.5px/1.45 var(--font-mono); color: var(--label); outline: none; }
.tjql textarea:focus { box-shadow: 0 0 0 3px var(--tint-ring); background: var(--surface); }
.tjql.bad textarea { box-shadow: inset 0 0 0 1.5px var(--danger); }
.tjql .btn { height: 34px; }
.tjql-sug { position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; min-width: 280px; max-width: 520px; max-height: 300px; overflow-y: auto; background: var(--bg-elevated); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 5px; }
.tjql-sug button { display: flex; align-items: center; gap: 12px; width: 100%; height: 32px; padding: 0 10px; border-radius: 8px; font: 13px/1 var(--font-mono); text-align: left; }
.tjql-sug button span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tjql-sug button em { font: 500 11px/1 var(--font); color: var(--label-3); font-style: normal; }
.tjql-sug button.on, .tjql-sug button:hover { background: var(--tint); color: #fff; }
.tjql-sug button.on em, .tjql-sug button:hover em { color: rgba(255, 255, 255, .8); }
.tjql-err { width: 100%; display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--danger); }
.tjql-err .i { width: 15px; height: 15px; }
.tchip { gap: 4px; }
.tchip .i { width: 13px !important; height: 13px !important; opacity: .55; }
.tsearch-count { font-size: 13px; color: var(--label-3); font-weight: 500; margin: 0 4px 8px; }
.tsearch-wrap { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow-x: auto; }
.ttable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ttable th { position: sticky; top: 0; background: var(--surface); text-align: left; font-size: 12px; font-weight: 600; color: var(--label-3); padding: 10px 10px 8px; border-bottom: 0.5px solid var(--separator); white-space: nowrap; }
.ttable th.sortable { cursor: pointer; }
.ttable th.sortable:hover, .ttable th.on { color: var(--label); }
.ttable th .i { width: 12px; height: 12px; vertical-align: -1px; margin-left: 3px; }
.ttable td { padding: 7px 10px; border-bottom: 0.5px solid var(--fill-2); vertical-align: middle; }
.ttable tbody tr { cursor: pointer; }
.ttable tbody tr:hover { background: var(--fill-2); }
.ttable tr.sel { background: var(--tint-soft); }
.ttable tr.is-done .ttitle-cell { color: var(--label-3); }
.ttable tr.is-archived { opacity: .6; }
.ttable .ttitle-cell { min-width: 260px; font-weight: 500; }
.ttable .ttitle-cell .tlabel { margin-left: 6px; vertical-align: 1px; }
.ttable td.nowrap { white-space: nowrap; }
.ttable td.nowrap > span:not(.tkey):not(.tdue):not(.tperson) { color: var(--label-2); }
.ttable .tcb { width: 34px; padding-right: 0; }
.ttable .muted { color: var(--label-3); }
.tbulk { position: sticky; top: 64px; z-index: 5; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: var(--label); color: var(--bg); border-radius: 14px; padding: 7px 10px; margin-bottom: 10px; box-shadow: var(--shadow-pop); }
.tbulk b { margin: 0 6px 0 4px; font-size: 13.5px; }
.tbulk .btn { background: rgba(255, 255, 255, .14); color: inherit; }
.tbulk .btn:hover { background: rgba(255, 255, 255, .24); }
.tbulk .btn.plain { background: none; color: inherit; opacity: .8; }

/* reports + dashboard */
.trep-card { padding: 16px 18px 18px; overflow: visible; }
.trep-h h3 { margin: 0; font: 700 18px/1.2 var(--font-display); }
.trep-h p { margin: 4px 0 12px; font-size: 13px; color: var(--label-2); }
.trep-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.trep-kinds { overflow-x: auto; max-width: 100%; }
.trep-kpis { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.trep-kpis > div { background: var(--fill-2); border-radius: 12px; padding: 9px 13px; min-width: 120px; }
.trep-kpis span { display: block; font-size: 12px; color: var(--label-3); font-weight: 600; }
.trep-kpis b { font: 700 19px/1.3 var(--font-rounded); }
.trep-kpis b.neg { color: var(--danger); } .trep-kpis b.pos { color: var(--s-published-text); }
.trep-kpis.compact > div { min-width: 0; flex: 1; }
.tchart-box { width: 100%; overflow: hidden; }
.tchart { max-width: 100%; height: auto; display: block; }
.tchart .grid { stroke: var(--separator); stroke-width: 1; }
.tchart .ax { fill: var(--label-3); font: 500 11px var(--font); }
.tchart .ln { fill: none; stroke-width: 2.4; stroke-linejoin: round; }
.tchart .ln.dash { stroke-dasharray: 6 5; stroke-width: 1.6; }
.tchart .ln.ideal { stroke: var(--label-4); }
.tchart .ln.actual { stroke: var(--tint); }
.tchart .dot.actual { fill: var(--tint); }
.tchart .ln.created { stroke: var(--s-draft); } .tchart .ln.resolved { stroke: var(--s-published); }
.tchart .bar.committed { fill: var(--label-4); } .tchart .bar.completed { fill: var(--s-published); }
.tchart .mark { stroke: var(--s-review); stroke-dasharray: 3 3; }
.tchart .mark-t { fill: var(--s-review-text); }
.tlegend { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--label-2); margin-top: 6px; }
.tlegend .lg { width: 14px; height: 4px; border-radius: 2px; display: inline-block; margin-right: -8px; }
.lg.ideal { background: var(--label-4); } .lg.actual { background: var(--tint); } .lg.created { background: var(--s-draft); } .lg.resolved { background: var(--s-published); }
.lg.committed { background: var(--label-4); } .lg.completed { background: var(--s-published); } .lg.cat-progress { background: var(--s-review); } .lg.cat-todo { background: var(--label-4); }
.thbars { display: flex; flex-direction: column; gap: 6px; }
.thbar { display: grid; grid-template-columns: minmax(120px, 210px) 1fr 40px; align-items: center; gap: 10px; font-size: 13px; padding: 3px 4px; border-radius: 8px; }
.thbar[data-act] { cursor: pointer; }
.thbar[data-act]:hover { background: var(--fill-2); }
.thb-l { display: flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; white-space: nowrap; }
.thb-l span:not(.tkey):not(.tstatus):not(.ttype):not(.tprio) { overflow: hidden; text-overflow: ellipsis; }
.thb-track { display: flex; height: 10px; border-radius: 5px; background: var(--fill-2); overflow: hidden; }
.thb-track i { height: 100%; }
.thb-track i.cat-progress { background: var(--s-review); } .thb-track i.cat-todo { background: color-mix(in srgb, var(--label-3) 55%, transparent); }
.thbar b { font: 700 13px/1 var(--font-rounded); text-align: right; }
.trep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.tdash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.tgadget { padding: 12px 14px 12px; }
.tg-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tg-h h3 { margin: 0; flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; font: 700 15.5px/1.2 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-h h3 .i { width: 16px; height: 16px; color: var(--label-3); flex: none; }
.tg-h .muted { font-size: 12.5px; color: var(--label-3); }
.tepics { display: flex; flex-direction: column; gap: 2px; }
.tep-row { display: grid; grid-template-columns: 11px minmax(0, 1fr) 90px 44px; align-items: center; gap: 9px; padding: 7px 6px; border-radius: 9px; text-align: left; font-size: 13.5px; }
.tep-row:hover { background: var(--fill-2); }
.tep-row .tprogress { margin: 0; }
.tep-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tep-row .muted { font: 600 12px/1 var(--font-rounded); color: var(--label-3); text-align: right; }

@media (max-width: 760px) {
  .tviews { width: auto; margin-left: -16px; margin-right: -16px; border-radius: 0; padding: 3px 12px; background: transparent; }
  .tviews button { height: 34px; background: var(--fill-2); }
  .tviews button.on { background: var(--label); color: var(--bg); box-shadow: none; }
  .tasks-page .page-head .actions .tscope-btn span:not(.rm-swatch) { max-width: 110px; }
  .ttoolbar .tquick-people, .ttoolbar .tboard-mode { order: 1; }
  .ttoolbar .tselect { flex: 1 1 100%; width: 100%; min-width: 0; max-width: 100%; }
  .ttoolbar { max-width: 100%; }
  .tform-row.two { grid-template-columns: 1fr; }
  .tdash, .trep-grid { grid-template-columns: 1fr; }
  .tjql { min-width: 0; flex: 1 1 100%; }
  .bmeta .tepic, .bmeta .tlabel, .bmeta .tstatus { display: none; }
  .bsec-h .btn span { display: none; }
  .thbar { grid-template-columns: minmax(90px, 130px) 1fr 32px; }
  .tsprint-banner { gap: 8px 10px; }
  .tsb-main { flex: 1 1 100%; }
  .tsb-prog { flex: 1; }
  .tsb-prog .tprogress { width: auto; flex: 1; max-width: 160px; }
  .tsb-goal { display: none; }
  .tadm-row .input { min-width: 0; flex: 1 1 100%; }
}

/* ======================================================================
   Chat — the team's own Slack (since 07.10.2026)
   ====================================================================== */
.nav-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--tint); color: #fff; font: 700 11px/18px var(--font-rounded); text-align: center; }
.sections .nav-badge { margin-left: 2px; }
.tabbar button { position: relative; }
.tabbar .nav-badge { position: absolute; top: -2px; left: calc(50% + 6px); }

.chat-page { max-width: none; padding: 0; height: calc(100dvh - 56px); }
.chat { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: 100%; }
.chat.with-thread { grid-template-columns: 300px minmax(0, 1fr) 400px; }
.chat-side { display: flex; flex-direction: column; min-height: 0; padding: 22px 12px 12px; border-right: 0.5px solid var(--separator); background: var(--surface-2); }
.chat-side-h { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 12px; }
.chat-search { min-width: 0; margin: 0 4px 12px; }
.chat-channels { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.chan { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 12px; transition: background .15s; }
.chan:hover { background: var(--fill-2); }
.chan.on { background: var(--surface); box-shadow: var(--shadow-card); }
.chan .hash { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--fill); color: var(--label-2); flex: none; }
.chan .hash .i { width: 17px; height: 17px; }
.chan.on .hash { background: var(--tint); color: #fff; }
.chan .cn { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chan .cn b { font-size: 14.5px; font-weight: 600; }
.chan .cn small { font-size: 12.5px; color: var(--label-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chan.unread .cn b { font-weight: 800; }
.chan.unread .cn small { color: var(--label-2); }
.chan .ub { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--tint); color: #fff; font: 700 11.5px/20px var(--font-rounded); text-align: center; }
.chan time { font-size: 11.5px; color: var(--label-3); white-space: nowrap; }

.chat-main, .chat-thread { position: relative; display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--bg-elevated); }
.chat-thread { border-left: 0.5px solid var(--separator); }
.chat-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px 12px; border-bottom: 0.5px solid var(--separator); }
.chat-h .ch-title { flex: 1; min-width: 0; }
.chat-h h2 { margin: 0; font: 700 19px/1.2 var(--font-display); letter-spacing: -0.015em; }
.chat-h p { margin: 2px 0 0; font-size: 13px; color: var(--label-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-scroll, .thread-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.chat-msgs { padding: 10px 0 14px; }
.thread-scroll { padding: 10px 0; }
.chat-start { padding: 18px 20px 10px; }
.chat-start h3 { margin: 0 0 4px; font: 700 22px/1.2 var(--font-display); }
.chat-start p { margin: 0; color: var(--label-2); font-size: 14px; }
.chat-msgs > .tmore { margin: 4px auto 8px; display: block; width: auto; padding: 6px 14px; }
.day-sep, .new-sep { display: flex; align-items: center; gap: 10px; margin: 14px 18px 6px; font-size: 12px; font-weight: 700; color: var(--label-3); }
.day-sep::before, .day-sep::after, .new-sep::before, .new-sep::after { content: ""; flex: 1; height: 0.5px; background: var(--separator-strong); }
.day-sep span { padding: 3px 10px; border-radius: 980px; background: var(--fill-2); }
.new-sep { color: var(--tint-text); }
.new-sep::before, .new-sep::after { background: var(--tint-ring); }

.msg { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 6px 18px 4px; }
.msg.compact { padding-top: 1px; }
.msg:hover { background: var(--fill-2); }
.msg .m-av .avatar { width: 36px; height: 36px; font-size: 13px; }
.msg.compact .m-av time { display: block; text-align: right; font-size: 10.5px; color: var(--label-3); padding-top: 4px; opacity: 0; font-variant-numeric: tabular-nums; }
.msg.compact:hover .m-av time { opacity: 1; }
.avatar.claude { background: #d97757; color: #fff; font-weight: 700; }
.avatar.bot { color: #fff; background: var(--s-idea); }
.avatar.bot .i { width: 19px; height: 19px; }
.avatar.bot.b-order { background: #2f9e52; }
.avatar.bot.b-alert { background: var(--danger); }
.avatar.bot.b-alert.ok { background: var(--ok); }
.m-h { display: flex; align-items: baseline; gap: 8px; }
.m-h b { font-size: 14.5px; font-weight: 700; }
.m-h time { font-size: 11.5px; color: var(--label-3); font-variant-numeric: tabular-nums; }
.m-t { font-size: 14.5px; line-height: 1.45; word-break: break-word; }
.m-t.muted { color: var(--label-3); font-style: italic; }
.m-edited { font-size: 11.5px; color: var(--label-3); }
.msg.is-bot .m-t { padding: 7px 11px; border-radius: 10px; background: var(--fill-2); box-shadow: inset 3px 0 0 var(--bc, var(--s-idea)); }
.msg.bt-order { --bc: #2f9e52; }
.msg.bt-alert { --bc: var(--danger); }
.msg.bt-task { --bc: var(--s-review); }
.msg.mentions-me .m-t { background: color-mix(in srgb, var(--s-draft) 12%, transparent); border-radius: 8px; padding: 2px 6px; margin-left: -6px; }
.mention { color: var(--s-review-text); background: color-mix(in srgb, var(--s-review) 12%, transparent); border-radius: 5px; padding: 0 3px; font-weight: 600; }
.m-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 13px; font-weight: 600; color: var(--tint-text); }
.m-link .i { width: 15px; height: 15px; }
.m-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.m-img { position: relative; width: 240px; max-width: 100%; max-height: 260px; min-height: 90px; border-radius: 12px; background: var(--fill) center/cover no-repeat; box-shadow: inset 0 0 0 0.5px var(--separator); }
.m-img .play { position: absolute; inset: 0; display: grid; place-items: center; }
.m-img .play span { width: 38px; height: 38px; border-radius: 50%; background: rgba(20, 12, 10, .5); display: grid; place-items: center; color: #fff; }
.m-doc { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px 8px 10px; border-radius: 12px; background: var(--fill-2); box-shadow: inset 0 0 0 0.5px var(--separator); color: var(--label); max-width: 320px; }
.m-doc .i { width: 22px; height: 22px; color: var(--tint-text); flex: none; }
.m-doc span { display: flex; flex-direction: column; min-width: 0; }
.m-doc b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-doc small { font-size: 12px; color: var(--label-3); }
.m-reacts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.react { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border-radius: 13px; background: var(--fill-2); box-shadow: inset 0 0 0 0.5px var(--separator); font-size: 14px; }
.react b { font: 600 12px/1 var(--font-rounded); color: var(--label-2); }
.react.on { background: var(--tint-soft); box-shadow: inset 0 0 0 1px var(--tint-ring); }
.react.on b { color: var(--tint-text); }
.m-thread { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; padding: 3px 8px 3px 6px; border-radius: 8px; font-size: 13px; color: var(--tint-text); }
.m-thread.unread b { color: var(--tint-text); }
.m-thread em { font: 600 11.5px/1 var(--font-rounded); font-style: normal; padding: 3px 7px; border-radius: 9px; background: var(--tint); color: #fff; }
.m-thread:hover { background: var(--fill); }
.m-thread .i { width: 15px; height: 15px; }
.m-thread span { color: var(--label-3); font-weight: 500; }
.m-tools { position: absolute; top: -12px; right: 14px; display: none; gap: 2px; padding: 3px; border-radius: 10px; background: var(--bg-elevated); box-shadow: var(--shadow-pop); }
.msg:hover .m-tools, .msg:focus-within .m-tools { display: flex; }
.m-tools button { width: 30px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--label-2); font-size: 15px; }
.m-tools button:hover { background: var(--fill); }
.m-tools .i { width: 16px; height: 16px; }
.m-edit { margin-top: 4px; min-height: 60px; }
.thread-count { margin: 8px 18px 4px; font-size: 12.5px; font-weight: 700; color: var(--label-3); }
.react-menu { min-width: 0; }
.react-pick { display: grid; grid-template-columns: repeat(4, 40px); gap: 2px; }
.react-pick button { width: 40px; height: 38px; justify-content: center; font-size: 20px; padding: 0; }
.react-pick button:hover { background: var(--fill); color: inherit; }

.chat-composer { margin: 0 14px 14px; padding: 6px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-card), inset 0 0 0 0.5px var(--separator); }
.chat-composer:focus-within { box-shadow: 0 0 0 3px var(--tint-ring), var(--shadow-card); }
.chat-composer .c-row { display: flex; align-items: flex-end; gap: 6px; }
.chat-composer textarea { flex: 1; resize: none; border: 0; outline: none; background: transparent; padding: 8px 4px; min-height: 38px; max-height: 200px; font-size: 15px; line-height: 1.4; }
.chat-composer .icon-btn { width: 36px; height: 36px; flex: none; }
.chat-composer .icon-btn.send { background: var(--tint); color: #fff; }
.c-ups { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 4px 6px; }
.c-up { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 4px 0 4px; border-radius: 9px; background: var(--fill-2); font-size: 12.5px; max-width: 240px; }
.c-up img { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; }
.c-up > .i { width: 18px; height: 18px; color: var(--label-2); }
.c-up span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-up em { font-style: normal; color: var(--label-3); font-variant-numeric: tabular-nums; }
.c-up button { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--label-3); }
.c-up button .i { width: 13px; height: 13px; }
.c-up.failed { box-shadow: inset 0 0 0 1px var(--danger); }
.c-up.done { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 40%, transparent); }
.chat-readonly { margin: 0 14px 14px; padding: 12px; text-align: center; color: var(--label-3); font-size: 14px; }
.chat-newbelow { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 2; height: 32px; padding: 0 14px; border-radius: 16px; background: var(--tint); color: #fff; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-pop); }
.search-hit { display: flex; flex-direction: column; gap: 3px; width: calc(100% - 24px); margin: 0 12px 6px; padding: 10px 12px; text-align: left; border-radius: 12px; background: var(--fill-2); }
.search-hit:hover { background: var(--fill); }
.search-hit .sh-h { font-size: 12.5px; color: var(--label-3); }
.search-hit .sh-h b { color: var(--label); }
.search-hit .sh-t { font-size: 14px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }

@media (max-width: 760px) {
  .chat-page { height: calc(100dvh - 50px); }
  .chat, .chat.with-thread { grid-template-columns: minmax(0, 1fr); }
  .chat-page:not(.phone-conv) .chat-main { display: none; }
  .chat-page.phone-conv .chat-side { display: none; }
  .chat-side { border-right: 0; background: var(--bg); padding: 12px 10px calc(84px + env(safe-area-inset-bottom)); }
  .chat-main { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .chat-thread:not([hidden]) { position: fixed; inset: 0; z-index: 50; padding-bottom: env(safe-area-inset-bottom); }
  .chat-h { padding: 10px 12px; }
  .msg { padding-left: 12px; padding-right: 12px; grid-template-columns: 34px minmax(0, 1fr); }
  .msg .m-av .avatar { width: 32px; height: 32px; }
  .m-tools { display: none !important; }
  .msg:active { background: var(--fill-2); }
  .chat-composer { margin: 0 8px 8px; }
  .m-img { width: 200px; }
}
.chat-composer textarea:focus-visible, .chat-composer textarea:focus { box-shadow: none; outline: none; }
.chat-search { flex: none; min-width: 0; }
.chat-side, .chat-channels, .chan { min-width: 0; }
