@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --radius: 22px;
  --radius-sm: 14px;
  --ink: #eef2ff;
  --ink-2: #c5cce2;
  --ink-3: #96a0bf;
  --line: rgba(255, 255, 255, .09);
  --accent: #5ec2ff;
  --accent-2: #5eead4;
  --accent-ink: #03131f;
  --ok: #5ee39a;
  --ok-soft: rgba(74, 222, 128, .14);
  --err: #ff8a8a;
  --err-soft: rgba(255, 99, 99, .15);
  --warn: #fcc85a;
  --warn-soft: rgba(251, 191, 36, .14);
  --info: #8fd8ff;
  --info-soft: rgba(125, 211, 252, .13);
  --sky: linear-gradient(180deg, #040714 0%, #08102b 38%, #121a3f 70%, #261d3f 100%);
  --blobs: radial-gradient(900px 640px at -5% -10%, rgba(79, 107, 255, .42), transparent 62%), radial-gradient(760px 560px at 105% 8%, rgba(45, 212, 191, .2), transparent 60%), radial-gradient(1200px 620px at 35% 118%, rgba(255, 140, 70, .3), transparent 62%), radial-gradient(700px 520px at 88% 82%, rgba(168, 85, 247, .26), transparent 62%);
  --stars: url(sky-stars.svg) 0 0 / 480px 480px;
  --route-opacity: 1;
  --glass-bg: linear-gradient(155deg, rgba(46, 54, 86, .58), rgba(18, 22, 40, .38));
  --glass-solid: #151a2e;
  --glass-strong: rgba(34, 40, 66, .92);
  --glass-tint: rgba(255, 255, 255, .05);
  --glass-hi: rgba(255, 255, 255, .14);
  --glass-lo: rgba(0, 0, 0, .3);
  --glass-edge: linear-gradient(135deg, rgba(255, 255, 255, .42), rgba(150, 180, 255, .24) 22%, rgba(255, 255, 255, .03) 48%, rgba(255, 170, 120, .2) 74%, rgba(255, 255, 255, .22));
  --bevel: inset 1px 1px 0 rgba(255, 255, 255, .14), inset -1px -1px 0 rgba(255, 255, 255, .05), inset 0 10px 18px -16px rgba(255, 255, 255, .16), inset 0 -10px 18px -16px rgba(130, 150, 255, .16);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 18px 40px -22px rgba(0, 0, 0, .85);
  --field: rgba(255, 255, 255, .06);
  --field-border: rgba(255, 255, 255, .14);
  --focus: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent);
  --violet: #c4a8ff;
  --c-license: #6cb8ff;
  --c-install: #4fd8c8;
  --c-bug: #ff8080;
  --c-hardware: #c09cff;
  --c-billing: #ffc95c;
  --c-suggestion: #86e28f;
  --c-other: #aab3c9;
  --c-uncategorized: #8e8e93;
  --sheet-bg: linear-gradient(160deg, rgba(40, 48, 80, .5), rgba(14, 18, 34, .42));
  --inner-bg: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  --well: rgba(4, 8, 22, .38);
  --line-strong: rgba(255, 255, 255, .16);
  --unread: #ff4d5e;
  --bubble-them: rgba(255, 255, 255, .07);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --ink: #0e1428;
  --ink-2: #344062;
  --ink-3: #56617f;
  --line: rgba(20, 30, 70, .1);
  --accent: #00699c;
  --accent-2: #0d9488;
  --accent-ink: #ffffff;
  --ok: #167a3c;
  --ok-soft: rgba(22, 163, 74, .12);
  --err: #c0262d;
  --err-soft: rgba(220, 38, 38, .1);
  --warn: #965600;
  --warn-soft: rgba(217, 119, 6, .13);
  --info: #035e8f;
  --info-soft: rgba(2, 132, 199, .1);
  --sky: linear-gradient(180deg, #c9dbff 0%, #e4ecff 38%, #f5eef0 72%, #fde3d2 100%);
  --blobs: radial-gradient(900px 640px at -5% -10%, rgba(99, 120, 255, .32), transparent 62%), radial-gradient(760px 560px at 105% 8%, rgba(45, 212, 191, .22), transparent 60%), radial-gradient(1200px 620px at 35% 118%, rgba(255, 150, 90, .3), transparent 62%), radial-gradient(700px 520px at 88% 82%, rgba(190, 120, 255, .22), transparent 62%);
  --stars: linear-gradient(transparent, transparent);
  --route-opacity: .8;
  --glass-bg: linear-gradient(155deg, rgba(255, 255, 255, .66), rgba(255, 255, 255, .34));
  --glass-solid: #f6f8ff;
  --glass-strong: rgba(255, 255, 255, .9);
  --glass-tint: rgba(255, 255, 255, .45);
  --glass-hi: rgba(255, 255, 255, .95);
  --glass-lo: rgba(20, 24, 40, .06);
  --glass-edge: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(190, 210, 255, .55) 22%, rgba(255, 255, 255, .1) 48%, rgba(255, 200, 170, .5) 74%, rgba(255, 255, 255, .85));
  --bevel: inset 1px 1px 0 rgba(255, 255, 255, .65), inset -1px -1px 0 rgba(255, 255, 255, .22), inset 0 10px 18px -16px rgba(255, 255, 255, .6), inset 0 -10px 18px -16px rgba(90, 110, 255, .16);
  --shadow: 0 1px 2px rgba(16, 20, 40, .05), 0 18px 40px -24px rgba(30, 40, 90, .35);
  --field: rgba(255, 255, 255, .72);
  --field-border: rgba(30, 40, 90, .14);
  --violet: #6b30d0;
  --c-license: #1c5fc4;
  --c-install: #0b7268;
  --c-bug: #c0262d;
  --c-hardware: #6b2fd6;
  --c-billing: #925400;
  --c-suggestion: #1d7a34;
  --c-other: #4d5772;
  --c-uncategorized: #6e6e73;
  --sheet-bg: linear-gradient(160deg, rgba(255, 255, 255, .58), rgba(255, 255, 255, .34));
  --inner-bg: linear-gradient(160deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .56));
  --well: rgba(225, 232, 248, .55);
  --line-strong: rgba(20, 30, 70, .16);
  --unread: #d92036;
  --bubble-them: rgba(255, 255, 255, .92);
  color-scheme: light;
}

body.admin {
  --accent: #ffb85c;
  --accent-ink: #1d1203;
}

:root[data-theme="light"] body.admin {
  --accent: #b45309;
  --accent-ink: #ffffff;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { font-size: 17px; -webkit-text-size-adjust: 100%; background: var(--glass-solid); }

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font: .9rem/1.6 var(--font-body);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  background: transparent;
  overflow-x: hidden;
}

body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body::before { background: var(--stars), var(--blobs), var(--sky); }

body::after {
  z-index: -1;
  background: url(sky-route.svg) center / cover no-repeat;
  opacity: var(--route-opacity);
}

a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 10px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
h1 { font-size: clamp(1.55rem, 1.2rem + 1.25vw, 2.2rem); margin: 0; }
h2 { font-size: 1.17rem; margin: 0; }
h3 { font-size: 0.99rem; margin: 0; }
p { margin: .5rem 0; }

.icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.22em; }

.wrap { width: 100%; max-width: 1520px; margin: 0 auto; padding: 0 clamp(16px, 3.5vw, 56px); }

.glass, .card, .btn.ghost, .alert, .round {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 0;
  box-shadow: var(--bevel), inset 0 -1px 0 var(--glass-lo), var(--shadow);
}

.glass::before, .card::before, .btn.ghost::before, .alert::before, .round::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: var(--glass-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

:root[data-theme="light"] :is(.round, .btn.ghost) { background: linear-gradient(155deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .62)); }

.lg-svg:not([data-theme="light"]) .round {
  -webkit-backdrop-filter: blur(6px) saturate(190%) var(--lg, );
  backdrop-filter: blur(6px) saturate(190%) var(--lg, );
}

.top { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand actions" "tabs tabs"; align-items: center; gap: 10px 20px; padding-top: 14px; padding-bottom: 6px; }
.top .brand { grid-area: brand; }
.top .top-actions { grid-area: actions; }
.top .tabs-float { grid-area: tabs; position: static; display: flex; justify-content: center; min-width: 0; margin: 0 calc(-1 * clamp(16px, 3.5vw, 56px)); padding: 0; pointer-events: auto; }
.top .tabs { max-width: none; padding-left: clamp(16px, 3.5vw, 56px); padding-right: clamp(16px, 3.5vw, 56px); scroll-padding: 0 clamp(16px, 3.5vw, 56px); }
.tabs.more-right { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.tabs.more-left { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
.tabs.more-left.more-right { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 56px), transparent); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.top-actions form { margin: 0; }

.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-text strong { font-family: var(--font-display); font-size: 1.305rem; font-weight: 800; letter-spacing: .03em; }
.brand-text span { font-size: 0.81rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.logo { display: block; width: 64px; height: auto; flex: none; filter: drop-shadow(0 8px 18px rgba(0, 140, 220, .4)); }
.logo-a { stop-color: #2f86c9; }
.logo-b { stop-color: #43aee8; }
.logo-c { stop-color: #a4e4ff; }
:root[data-theme="light"] .logo-a { stop-color: #183859; }
:root[data-theme="light"] .logo-b { stop-color: #006797; }
:root[data-theme="light"] .logo-c { stop-color: #008eca; }

.tag {
  display: inline-block;
  font-size: 0.648rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--accent-ink);
  background: var(--accent);
  align-self: center;
}

.round {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 50%;
  color: var(--ink-2);
  cursor: pointer;
  font: inherit;
  min-height: 0;
}

.round:hover { color: var(--ink); text-decoration: none; filter: none; }
.round .icon { width: 22px; height: 22px; }

.i-sun, :root[data-theme="light"] .i-moon { display: block; }
.i-moon, :root[data-theme="light"] .i-sun { display: none; }

.tabs-float { position: sticky; top: 12px; z-index: 20; display: flex; justify-content: center; padding: 0 clamp(16px, 3.5vw, 56px); margin: 0 0 14px; pointer-events: none; }
.tabs {
  --drop-bg: linear-gradient(180deg, color-mix(in srgb, var(--accent) 34%, transparent), color-mix(in srgb, var(--accent) 20%, transparent));
  --drop-ring: color-mix(in srgb, var(--accent) 50%, transparent);
  --drop-glow: color-mix(in srgb, var(--accent) 45%, transparent);
  position: relative;
  isolation: isolate;
  display: flex;
  gap: 16px;
  align-items: center;
  overflow-x: auto;
  width: 100%;
  max-width: calc(1520px - 2 * clamp(16px, 3.5vw, 56px));
  padding: 6px 0 18px;
  margin: 0 0 -12px;
  background: none;
  border: 0;
  pointer-events: auto;
  scrollbar-width: none;
}
:root[data-theme="light"] .tabs {
  --drop-bg: linear-gradient(180deg, color-mix(in srgb, var(--accent) 20%, transparent), color-mix(in srgb, var(--accent) 11%, transparent));
  --drop-ring: color-mix(in srgb, var(--accent) 38%, transparent);
  --drop-glow: color-mix(in srgb, var(--accent) 45%, transparent);
}
.tabs::-webkit-scrollbar { display: none; }
.tab-group { margin: 0 auto; }
.tab-group { position: relative; display: flex; gap: 4px; padding: 6px; border-radius: 999px; flex: none; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.tab-group::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: var(--glass-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.tab-group::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(4px) saturate(200%) var(--lg, );
  backdrop-filter: blur(4px) saturate(200%) var(--lg, );
  box-shadow: var(--bevel), 0 14px 40px -14px rgba(30, 30, 90, .45), 0 2px 8px -4px rgba(30, 30, 90, .2);
}
.tabs a { position: relative; z-index: 2; flex: none; display: inline-flex; align-items: center; gap: .55rem; min-height: 50px; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 550; font-size: 0.9rem; line-height: 1.2; padding: .6rem 1.2rem; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { font-weight: 600; background: none; box-shadow: none; }
.tabs a.on .icon { color: var(--accent); }
.tabs .icon { width: 20px; height: 20px; transition: color .15s; }
.tabs .count { margin-left: 2px; }
.drop { position: absolute; z-index: 1; left: 0; top: 0; width: 0; height: 0; opacity: 0; border-radius: 999px; pointer-events: none; background: var(--drop-bg); box-shadow: var(--bevel), inset 0 0 0 1px var(--drop-ring), 0 6px 18px -6px var(--drop-glow); }
.no-js .tabs a.on, html:not(.js) .tabs a.on { background: var(--glass-strong); box-shadow: var(--bevel), 0 2px 10px -4px rgba(30, 30, 80, .35); }

@media (max-width: 999px) {
  .tabs-float { padding: 0; }
  .tabs { padding-top: 6px; padding-bottom: 10px; margin-bottom: -6px; }
  .tabs a { padding-left: 1.05rem; padding-right: 1.05rem; }
  .tab-group::after { box-shadow: var(--bevel), 0 4px 12px -6px rgba(30, 30, 90, .35); }
}

@media (max-width: 640px) {
  .tabs { gap: 6px; }
  .tab-group { padding: 5px; }
  .tabs a { min-height: 46px; font-size: 0.9rem; padding: .55rem 1rem; }
  .tabs .icon { width: 20px; height: 20px; }
}


.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 20px; color: #fff; background: var(--unread); box-shadow: 0 0 0 2px color-mix(in srgb, var(--unread) 30%, transparent), 0 4px 10px -3px color-mix(in srgb, var(--unread) 70%, transparent); }

main.wrap { flex: 1; padding-top: 14px; padding-bottom: 26px; }
main.wrap:focus { outline: none; }

.sheet > * { transition: opacity .18s ease; }
.sheet.nav-out > * { opacity: .45; }
.sheet.nav-in > * { animation: nav-in .32s cubic-bezier(.2, .75, .25, 1) backwards; }
@keyframes nav-in { from { opacity: 0; transform: translateY(8px); } }

.nav-progress { position: fixed; z-index: 100; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; opacity: 0; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent); }
.nav-progress.on { opacity: 1; transform: scaleX(.85); transition: transform 6s cubic-bezier(.08, .7, .2, 1), opacity .15s ease; }
.nav-progress.done { opacity: 0; transform: scaleX(1); transition: transform .2s ease, opacity .3s ease .15s; }

footer.site { padding: 0 20px calc(30px + env(safe-area-inset-bottom)); text-align: center; font-size: 0.765rem; color: var(--ink-3); }

.sheet {
  position: relative;
  padding: clamp(16px, 2.6vw, 36px);
  border-radius: 30px;
  background: var(--sheet-bg);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  backdrop-filter: blur(30px) saturate(170%);
  box-shadow: var(--bevel), inset 0 -1px 0 var(--glass-lo), 0 30px 80px -40px rgba(0, 0, 0, .8);
}

.sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: var(--glass-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.sheet :is(.card, .alert, .btn.ghost, .msg) {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.sheet .card { background: none; box-shadow: none; border-radius: 0; padding: 22px 0; margin: 0; border-top: 1px solid var(--line); }
.sheet .card::before { display: none; }
.sheet .card.tight { padding: 6px 0; }
.sheet .card.tight > .card-head { padding: 14px 0 6px; }
.sheet .card.tight table th:first-child, .sheet .card.tight table td:first-child { padding-left: 4px; }
.sheet .card.tight table th:last-child, .sheet .card.tight table td:last-child { padding-right: 4px; }
.sheet .page-head { padding-bottom: 20px; margin-bottom: 0; border-bottom: 1px solid var(--line-strong); }
.sheet .page-head + .card, .sheet .page-head + .grid > .card:first-child, .sheet .page-head + .alert, .sheet .page-head + .toolbar { border-top: 0; }
.sheet .page-head ~ .toolbar, .sheet .page-head ~ .chips { margin-top: 18px; }
.sheet .grid { display: block; }
.sheet .section { margin-top: 0; }
.sheet .section > h2 { padding-top: 24px; margin-bottom: 0; border-top: 1px solid var(--line-strong); }
.sheet .section > h2 + .card { border-top: 0; padding-top: 18px; }
.sheet .card[data-narrow] { max-width: 760px; }
.sheet .alert { --stripe: currentColor; background: none; box-shadow: none; border-radius: 3px; padding: 10px 16px; margin: 20px 0; }
.sheet .alert::before { display: none; }
.sheet .alert.ok { color: var(--ok); }
.sheet .alert.err { color: var(--err); }
.sheet .alert.warn { color: var(--warn); }
.sheet .alert p { color: var(--ink); }
.sheet .fact { background: none; box-shadow: none; padding: 0; border-radius: 0; }
.sheet .facts { gap: 16px 40px; margin: 6px 0; grid-template-columns: repeat(auto-fill, minmax(150px, max-content)); }
.sheet .subpanel { background: none; box-shadow: none; border-radius: 0; padding: 18px 0 0; margin-top: 20px; border-top: 1px dashed var(--line-strong); }
.sheet .file { background: none; box-shadow: none; border-radius: 0; padding: 14px 0; border-top: 1px solid var(--line); }
.sheet .files { gap: 0; }
.sheet .split { gap: 0; padding-top: 22px; }
@media (min-width: 1101px) {
  .sheet .split > * + * { border-left: 1px solid var(--line-strong); padding-left: clamp(20px, 2.6vw, 40px); margin-left: clamp(20px, 2.6vw, 40px); }
}

@media (max-width: 1100px) {
  .sheet .split > * + * { border-top: 1px solid var(--line-strong); padding-top: 24px; margin-top: 24px; }
}
.sheet .split > .card, .sheet .split > * > .card:first-child { border-top: 0; padding-top: 0; }
.sheet .tickets { padding: 0; gap: 0; }
.sheet .tickets li + li { border-top: 1px solid var(--line); }
.sheet .ticket-row { border-radius: 0; background: none; padding-left: 22px; }
.sheet .ticket-row:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--cat, var(--c-other)) 12%, transparent), transparent 60%); }
.sheet .conversation { background: none; box-shadow: none; border-radius: 0; overflow: visible; margin: 0; }
.sheet .conversation .thread { padding: 20px 0; }
.sheet .composer { background: none; padding: 20px 0 0; border-top: 1px solid var(--line-strong); }
.sheet .composer-closed { background: none; padding: 22px 0 0; border-top: 1px solid var(--line-strong); }
.sheet .empty { padding: 34px 0; }
.sheet > :last-child { margin-bottom: 0; }

:root[data-theme="light"] .sheet { box-shadow: var(--bevel), inset 0 -1px 0 var(--glass-lo), 0 30px 80px -40px rgba(30, 40, 90, .45); }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-head .lede { margin: 8px 0 0; color: var(--ink-2); max-width: 70ch; font-size: 0.945rem; }

.eyebrow { margin: 0 0 8px; font-size: 0.72rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.eyebrow .icon { width: 1em; height: 1em; }

.head-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.card { border-radius: var(--radius); padding: 22px; margin-bottom: 18px; min-width: 0; }
.card.tight { padding: 0; }
.card.tight > .card-head { padding: 16px 22px 6px; }
.card[data-narrow], .alert[data-narrow] { max-width: 760px; }

.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.card-head .title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.card-head .eyebrow { margin-bottom: 2px; font-size: 0.648rem; }
.card-head h2.mono { font-size: 1.125rem; letter-spacing: .03em; font-weight: 600; }

.badge-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: .75rem;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  box-shadow: inset 0 1px 0 var(--glass-hi);
  flex: none;
}

.badge-icon .icon { width: 1.2rem; height: 1.2rem; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); align-items: start; }
.grid > .card { margin-bottom: 0; }
.section { margin-top: 44px; }
.section > h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.section > h2 .icon { color: var(--accent); }

.split { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
.support-split { grid-template-columns: minmax(0, 1fr) 380px; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 6px 0 0; }
.facts.wide { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.fact { padding: 11px 13px; border-radius: var(--radius-sm); background: var(--glass-tint); box-shadow: var(--bevel); min-width: 0; }
.fact dt { font-size: 0.684rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.fact dd { margin: 0; font-weight: 600; font-size: 0.945rem; overflow-wrap: anywhere; }

dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
dl.kv dt { color: var(--ink-3); }
dl.kv dd { margin: 0; overflow-wrap: anywhere; }

.subpanel { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--glass-tint); box-shadow: var(--bevel); min-width: 0; }
.subpanel h3 { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; margin-bottom: 10px; color: var(--ink-2); }
.subpanel h3 .icon { color: var(--accent); }

.mono, code, kbd { font-family: var(--font-mono); font-size: .92em; }
.muted { color: var(--ink-3); }
.small { font-size: 0.828rem; }
.tz { font-size: .78em; color: var(--ink-3); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.pill {
  --pc: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px 4px 10px;
  border-radius: 999px;
  font-size: 0.756rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--pc);
  background: color-mix(in srgb, var(--pc) 15%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 34%, transparent);
  vertical-align: middle;
}

.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.pill.neutral { --pc: var(--ink-3); }
.pill.ok { --pc: var(--ok); }
.pill.err { --pc: var(--err); }
.pill.warn { --pc: var(--warn); }
.pill.info { --pc: var(--info); }
.pill.violet { --pc: var(--violet); }
.pill.accent { --pc: var(--accent); }
.pill.cat { --pc: var(--cat); border-radius: 8px; }
.pill.cat::before { border-radius: 2px; transform: rotate(45deg); width: 7px; height: 7px; box-shadow: none; }

.cat-license { --cat: var(--c-license); }
.cat-install { --cat: var(--c-install); }
.cat-bug { --cat: var(--c-bug); }
.cat-hardware { --cat: var(--c-hardware); }
.cat-billing { --cat: var(--c-billing); }
.cat-suggestion { --cat: var(--c-suggestion); }
.cat-other { --cat: var(--c-other); }
.cat-uncategorized { --cat: var(--c-uncategorized); }

.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 15px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 500; }
.alert .icon { margin-top: 2px; }
.alert.ok { background: linear-gradient(155deg, color-mix(in srgb, var(--ok) 20%, transparent), color-mix(in srgb, var(--ok) 7%, transparent)), var(--glass-bg); }
.alert.ok .icon { color: var(--ok); }
.alert.err { background: linear-gradient(155deg, color-mix(in srgb, var(--err) 22%, transparent), color-mix(in srgb, var(--err) 8%, transparent)), var(--glass-bg); }
.alert.err .icon { color: var(--err); }
.alert.warn { background: linear-gradient(155deg, color-mix(in srgb, var(--warn) 22%, transparent), color-mix(in srgb, var(--warn) 8%, transparent)), var(--glass-bg); }
.alert.warn .icon { color: var(--warn); }
.alert p { margin: 0; overflow-wrap: anywhere; }

.btn, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 2.6rem;
  padding: .55rem 1.25rem;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 650;
  font-size: 0.9rem;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  color: var(--accent-ink);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, #fff), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 8px 20px -10px color-mix(in srgb, var(--accent) 85%, transparent);
  transition: transform .15s, filter .15s, box-shadow .15s;
}

.btn:hover, button:hover { filter: brightness(1.06); text-decoration: none; }
.btn:active, button:active { transform: translateY(1px); }
.btn .icon, button .icon { width: 1.1em; height: 1.1em; }
.btn.ghost { color: var(--ink); }
.btn.ghost .icon { color: var(--accent); }
.btn.danger { color: var(--err); background: var(--err-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--err) 40%, transparent); }
.btn.danger:hover { background: color-mix(in srgb, var(--err) 22%, transparent); }
.btn.sm { min-height: max(2.4rem, 40px); padding: .45rem 1rem; font-size: 0.846rem; }
.btn.block { width: 100%; }
.btn.big { min-height: 3.2rem; font-size: 0.972rem; padding: .8rem 1.6rem; }
.composer .send { margin-top: 18px; }
.composer-row .hint { margin: 0; }
.btn.link { min-height: 44px; padding: 6px 10px; background: none; box-shadow: none; color: var(--ink-3); font-weight: 600; }
.btn.link:hover { color: var(--err); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.actions form { margin: 0; display: contents; }
.actions .note { flex: 1 1 200px; }
.actions.center { justify-content: center; }

.field { margin-top: 16px; }
.field:first-child { margin-top: 0; }
label { display: block; font-weight: 650; font-size: 0.855rem; color: var(--ink-2); margin: 0 0 7px; }
.hint { font-size: 0.81rem; color: var(--ink-3); margin-top: 6px; }
.hint .icon { width: 1em; height: 1em; }

input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=search], input[type=number], select, textarea {
  width: 100%;
  min-height: 2.7rem;
  padding: .6rem .9rem;
  border: 1px solid var(--field-border);
  border-radius: 14px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12);
  transition: border-color .15s, box-shadow .15s, background .15s;
}

input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: .85; }
input:focus, select:focus, textarea:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: var(--focus); }
input[disabled] { opacity: .65; }
textarea { min-height: 9rem; resize: vertical; line-height: 1.55; }
textarea.mono { font-size: 0.855rem; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 21px) 50%, calc(100% - 15px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 42px; }
select option { background: var(--glass-solid); color: var(--ink); }
input[type=file] { font: inherit; color: var(--ink-2); max-width: 100%; padding: 8px 0; }
input[type=file]::file-selector-button { font: inherit; font-weight: 650; margin-right: 12px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--field-border); background: var(--field); color: var(--ink); cursor: pointer; }
input[type=date], input[type=time] { color-scheme: inherit; }

.form-grid { display: grid; gap: 16px 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.form-grid .field { margin-top: 0; }
.form-grid .span { grid-column: 1 / -1; }
.inline-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.inline-form .field { margin: 0; flex: 1 1 190px; }

label.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; margin: 0 0 12px; cursor: pointer; min-height: 44px; }
label.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.field-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 7px; }
.field-head > label { margin: 0; white-space: nowrap; }
label.check.permanent { gap: 6px; min-height: 0; font-weight: 500; }
.date-perm { display: flex; align-items: center; gap: 12px; min-width: 0; }
.date-perm > input, .date-perm > .dp { flex: 1 1 auto; min-width: 0; }
.date-perm > label.check.permanent { flex: none; margin: 0; min-height: 44px; }
.inline-form .field.date-field { flex-basis: 280px; }
[data-cust-welcome] button:disabled { opacity: .5; cursor: not-allowed; }
label.check.permanent input { width: 16px; height: 16px; }
.group-picker { border: 0; padding: 0; margin: 0; min-width: 0; }
.group-picker legend { padding: 0; margin: 0 0 7px; font-size: 0.855rem; font-weight: 650; color: var(--ink-2); }
.group-picker .checks { display: flex; flex-wrap: wrap; gap: 0 22px; }
.group-picker label.check { margin-bottom: 0; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.882rem; }
th, td { text-align: left; padding: 11px 15px; vertical-align: middle; }
thead th { font-size: 0.684rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody td { border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: var(--glass-tint); }
td .sub { display: block; font-size: 0.774rem; color: var(--ink-3); }
.card.tight table th:first-child, .card.tight table td:first-child { padding-left: 22px; }
.card.tight table th:last-child, .card.tight table td:last-child { padding-right: 22px; }
.card.tight .table-wrap { padding-bottom: 6px; }
.subpanel table th, .subpanel table td { padding: 11px 12px; }
.subpanel table th:first-child, .subpanel table td:first-child { padding-left: 4px; }
td.num, th.num { text-align: right; }
.row-link { font-weight: 650; color: var(--ink); }
.row-link:hover { color: var(--accent); }
.admin-reason { white-space: nowrap; }

.files { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.file { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--glass-tint); box-shadow: var(--bevel); }
.file-main { display: flex; align-items: center; gap: 14px; flex: 1 1 260px; min-width: 0; }
.file-main .icon { color: var(--accent); width: 1.4rem; height: 1.4rem; }
.file-name { font-weight: 650; overflow-wrap: anywhere; }
.pkg { display: inline-flex; align-items: center; flex: none; width: 2.2rem; color: var(--accent); }
.pkg .pkg-icon, .file-main .pkg .pkg-icon { width: 1.4rem; height: 1.4rem; vertical-align: middle; }
.pkg .pkg-model, .file-main .pkg .pkg-model { width: auto; }
.file-cell { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.file-cell .pkg { width: 2rem; }
.file-cell .pkg .pkg-icon { height: 1.25rem; width: 1.25rem; }
.file-cell .pkg .pkg-model { width: auto; }
.file-meta { font-size: 0.774rem; color: var(--ink-3); overflow-wrap: anywhere; }

.empty { text-align: center; padding: 34px 18px; color: var(--ink-2); }
.empty .badge-icon { margin: 0 auto 12px; width: 50px; height: 50px; border-radius: 16px; }
.empty .badge-icon .icon { width: 22px; height: 22px; }
.empty h3 { margin-bottom: 6px; }
.empty p { margin: 0 auto; max-width: 52ch; color: var(--ink-3); }

.changelog { color: var(--ink-2); }
.changelog h3, .changelog h4, .changelog h5, .changelog h6 { color: var(--ink); margin: 16px 0 6px; font-size: 0.918rem; }
.changelog ul, .changelog ol { padding-left: 1.3rem; margin: 6px 0; }
.changelog li { margin: 4px 0; }
.changelog li::marker { color: var(--accent); }
pre { background: var(--glass-tint); padding: 14px 16px; border-radius: 12px; overflow-x: auto; box-shadow: inset 0 0 0 1px var(--line); }
pre.key { white-space: pre-wrap; word-break: break-all; font-size: 0.774rem; }
code { background: var(--glass-tint); padding: 1px 6px; border-radius: 6px; }
pre code { background: none; padding: 0; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; }
.search { position: relative; flex: 1 1 300px; display: flex; gap: 10px; margin: 0; }
.search > .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input { padding-left: 46px; }

.auth { flex: 1; display: grid; place-items: center; padding: 48px 20px 64px; }
.auth-box { width: 100%; max-width: 480px; }
.auth-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-bottom: 26px; }
.auth-brand .logo { width: 96px; }
.auth-brand h1 { font-size: 1.8rem; }
.auth-brand p { margin: 4px 0 0; color: var(--ink-2); }
.auth .card { padding: 26px; }
.auth .foot { text-align: center; margin-top: 20px; font-size: 0.828rem; color: var(--ink-3); }
.top.top-auth { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; justify-content: flex-end; align-items: flex-start; pointer-events: none; max-width: none; margin: 0; padding: 18px clamp(16px, 2vw, 28px) 0; }
.top.top-auth .top-actions { pointer-events: auto; margin-left: auto; }

.version-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.version-num { font-family: var(--font-display); font-size: 1.53rem; font-weight: 800; letter-spacing: -.02em; }

.tickets { list-style: none; margin: 0; padding: 8px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.tickets li { min-width: 0; }
.ticket-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px 13px 17px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: linear-gradient(90deg, color-mix(in srgb, var(--cat, var(--c-other)) 12%, transparent), transparent 45%);
  --stripe: var(--cat, var(--c-other));
  transition: background .15s;
}
.ticket-row:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--cat, var(--c-other)) 18%, transparent), var(--glass-tint) 60%); text-decoration: none; }
.ticket-row.static { background: none; padding-left: 16px; }
.ticket-row.static::after { display: none; }
.ticket-row .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: transparent; }
.ticket-row.unread .dot { background: var(--unread); box-shadow: 0 0 0 4px color-mix(in srgb, var(--unread) 24%, transparent); }
.ticket-item { display: flex; align-items: center; min-width: 0; }
.ticket-item .ticket-row { flex: 1; min-width: 0; }
.row-action { margin: 0; flex: none; }
.row-action .btn.link { min-width: 44px; justify-content: center; }
.row-action .btn.link:hover { color: var(--unread); }
.ticket-main { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.ticket-subject { font-weight: 650; font-size: 0.954rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-row.unread .ticket-subject { font-weight: 800; }
.ticket-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 0.792rem; color: var(--ink-3); }
.ticket-meta strong { color: var(--unread); }
.ticket-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

.cat-edge { position: relative; padding-left: 20px; }
.cat-edge::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; border-radius: 4px; background: var(--cat); box-shadow: 0 0 18px color-mix(in srgb, var(--cat) 60%, transparent); }
.lede .pill { margin-left: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chips a { display: inline-flex; align-items: center; gap: 8px; min-height: max(2.4rem, 40px); padding: .4rem .95rem; border-radius: 999px; font-size: 0.855rem; font-weight: 650; color: var(--ink-2); background: var(--glass-tint); box-shadow: inset 0 0 0 1px var(--line); }
.chips a:hover { color: var(--ink); text-decoration: none; }
.chips a.on { color: var(--accent-ink); background: var(--accent); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.chips.cats a::before { content: ""; width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg); background: var(--cat, var(--ink-3)); }
.chips.cats a.on { color: var(--ink); background: color-mix(in srgb, var(--cat, var(--accent)) 22%, transparent); box-shadow: inset 0 0 0 1.5px var(--cat, var(--accent)); }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.filters .field { margin: 0; flex: 0 1 340px; }

.conversation { display: flex; flex-direction: column; border-radius: 26px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line), inset 0 2px 12px rgba(0, 0, 0, .12); overflow: hidden; margin-bottom: 20px; }
.thread { list-style: none; margin: 0; padding: clamp(12px, 2vw, 22px); display: flex; flex-direction: column; gap: 12px; }
.msg { --mc: var(--ink-3); --stripe: color-mix(in srgb, var(--mc) 55%, transparent); position: relative; width: 100%; min-width: 0; border-radius: var(--radius-sm); background: var(--bubble-them); box-shadow: inset 0 0 0 1px var(--line), 0 6px 18px -16px rgba(0, 0, 0, .6); overflow: hidden; }
.msg.support { --mc: var(--accent); }
.msg.internal { --mc: var(--warn); --stripe: var(--warn); background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--warn) 10%, transparent) 0 12px, color-mix(in srgb, var(--warn) 3%, transparent) 12px 24px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 45%, transparent); }
.msg-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; padding: 9px 16px 9px 18px; font-size: 0.82rem; background: color-mix(in srgb, var(--mc) 7%, transparent); border-bottom: 1px solid var(--line); }
.msg.support .msg-head { background: color-mix(in srgb, var(--mc) 13%, transparent); }
.msg.internal .msg-head { background: color-mix(in srgb, var(--mc) 12%, transparent); }
.msg-head .who { font-weight: 700; color: var(--ink); display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.msg.internal .who { color: var(--warn); }
.msg-head .when { color: var(--ink-3); font-size: .95em; }
.msg-body { padding: 12px 16px 14px 18px; overflow-wrap: anywhere; line-height: 1.6; }
.msg > .attach { margin: 0; padding: 0 16px 14px 18px; }
.thread > .event { align-self: center; max-width: min(92%, 560px); text-align: center; font-size: 0.78rem; line-height: 1.45; color: var(--ink-3); }
.thread > .event > span { display: inline-block; padding: 3px 12px; border-radius: 999px; background: color-mix(in srgb, var(--ink-3) 12%, transparent); }
.thread > .event .tz { font-size: .9em; }
.inline-status .hint.err { color: var(--err); margin: 0; }
.composer { padding: clamp(14px, 2.4vw, 26px); border-top: 1px solid var(--line); background: var(--inner-bg); }
.composer h2 { font-size: 0.945rem; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.composer h2 .icon { color: var(--accent); }
.composer textarea { min-height: 7rem; }
.composer .actions { margin-top: 14px; }
.composer-row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; margin-top: 14px; }
.composer-row .field { margin: 0; flex: 1 1 220px; }
.composer-closed { padding: 26px; text-align: center; border-top: 1px solid var(--line); background: var(--inner-bg); }
.composer-closed p { margin: 6px auto 0; color: var(--ink-3); max-width: 56ch; }
.attach { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 2.2rem; padding: 7px 14px; border-radius: 999px; font-size: 0.81rem; font-weight: 650; color: var(--ink); background: var(--glass-tint); box-shadow: inset 0 0 0 1px var(--line); }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip small { color: var(--ink-3); font-weight: 500; }
.chip .icon { width: 1.05em; height: 1.05em; color: var(--accent); }
.chip:hover { text-decoration: none; background: var(--glass-strong); }
.media { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 0; padding: 0; }
.media figure { margin: 0; display: grid; gap: 6px; max-width: 100%; }
.media img, .media video { display: block; max-width: min(100%, 520px); max-height: 360px; border-radius: 14px; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.media figcaption { font-size: 0.738rem; color: var(--ink-3); overflow-wrap: anywhere; }

.inline-status { display: flex; flex-wrap: nowrap; gap: 10px; align-items: center; }
.inline-status :is(select, .sel) { width: auto; min-width: 12rem; }
.canned { position: relative; font-size: 0.855rem; }
.canned summary { cursor: pointer; color: var(--accent); font-weight: 650; list-style: none; min-height: 44px; display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px; background: var(--glass-tint); box-shadow: inset 0 0 0 1px var(--line); }
.canned summary::-webkit-details-marker { display: none; }
.canned ul { position: absolute; right: 0; z-index: 5; margin: 6px 0 0; padding: 6px; list-style: none; min-width: 260px; border-radius: var(--radius-sm); background: var(--glass-strong); box-shadow: var(--bevel), var(--shadow); }
.canned li a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.canned li a:hover { background: var(--glass-tint); text-decoration: none; }

@media (max-width: 1300px) {
  html { font-size: 16.5px; }
}

@media (max-width: 1100px) {
  .support-split, .split { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  html { font-size: 16px; }
  .top { padding-top: 12px; }
  .logo { width: 48px; }
  .brand-text strong { font-size: 1.125rem; }
  .brand-text span { font-size: 0.72rem; }
  .round { width: 46px; height: 46px; }
  .top-actions { gap: 8px; }
  .sheet .card { padding: 18px 0; }
  .sheet .facts { grid-template-columns: 1fr 1fr; }
  main.wrap { padding-top: 20px; }
  .card { padding: 18px; border-radius: 20px; }
  .card.tight > .card-head { padding: 16px 18px 4px; }
  .card.tight table th:first-child, .card.tight table td:first-child { padding-left: 18px; }
  .facts { grid-template-columns: 1fr 1fr; }
  dl.kv { grid-template-columns: 1fr; gap: 0; }
  dl.kv dt { margin-top: 10px; font-size: 0.792rem; }
  .subpanel dl.kv { grid-template-columns: max-content 1fr; gap: 6px 14px; }
  .subpanel dl.kv dt { margin-top: 0; }
  th, td { padding: 12px 12px; }
  .page-head { margin-bottom: 20px; }
  .file .btn { width: 100%; }
  .msg-head, .msg-body, .msg > .attach { padding-left: 12px; padding-right: 12px; }
  .chip { min-height: 40px; }
  .sheet { border-radius: 26px; padding: 16px; margin: 0 -6px; }
  .sheet .card { padding: 16px; }
  .ticket-row { padding: 14px 12px 14px 16px; gap: 10px; flex-wrap: wrap; }
  .ticket-pills { width: 100%; justify-content: flex-start; padding-left: 26px; }
  .inline-status { width: 100%; }
  .page-head .head-actions { width: 100%; }
  .inline-status .btn { flex: none; padding: 8px 14px; }
  input[type=file] { width: 100%; font-size: 0.81rem; }
  .inline-status :is(select, .sel) { min-width: 0; flex: 1; }
  .filters .field { flex: 1 1 100%; }
  .audit-find { flex-basis: 100%; }
  .media img, .media video { max-width: 100%; }
}

@media (max-width: 430px) {
  .brand-text span { display: none; }
  .top .tag { font-size: .62rem; padding: 3px 8px; }
  .top { column-gap: 10px; }
  .top .brand { gap: 10px; }
  .top .logo { width: 46px; }
  .top-actions { gap: 6px; }
  .top-actions .round { width: 44px; height: 44px; }
  .top-actions .round .icon { width: 22px; height: 22px; }
}

@media (max-width: 359px) {
  .top .logo { width: 40px; }
  .top .brand { gap: 8px; }
  .top-actions { gap: 4px; }
  .top-actions .round { width: 40px; height: 40px; }
  .top-actions .round .icon { width: 20px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .glass, .card, .tab-group::after, .btn.ghost, .alert, .round, .sheet, .lg-svg .round {
    background: var(--glass-solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .drop { background: color-mix(in srgb, var(--accent) 28%, var(--glass-solid)); }
  body::after { display: none; }
}

@media (forced-colors: active) {
  .card, .tab-group, .alert, .btn, button, .pill, .round { border: 1px solid CanvasText; }
  .rich-btn[aria-pressed="true"] { background: Highlight; color: HighlightText; }
  .rich-area { border: 1px solid CanvasText; }
}

@media print {
  body::before, body::after, .tabs-float, .top-actions { display: none; }
  .card { box-shadow: none; border: 1px solid #ccc; background: #fff; }
}
.card.tickets { padding: 8px; }
.split > *, .conversation, .thread { min-width: 0; }
.dropzone { padding: 22px; border-radius: var(--radius-sm); border: 2px dashed var(--line-strong); background: color-mix(in srgb, var(--accent) 5%, transparent); transition: border-color .15s, background .15s; }
.dropzone.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.dz-head { display: flex; align-items: center; gap: 14px; }
.dz-head > .icon { width: 2rem; height: 2rem; color: var(--accent); }
.dz-head strong { display: block; font-size: 1.05rem; }
.dz-head span { color: var(--ink-3); font-size: .9rem; }
.dz-inputs { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 16px; }
.dz-inputs label.btn { margin: 0; position: relative; }
.dz-platform { margin: 0 0 0 auto; display: grid; gap: 6px; font-weight: 600; }
.dz-platform :is(select, .sel) { min-width: 15rem; }
.dz-list { list-style: none; margin: 14px 0 0; padding: 0; font-family: var(--font-mono); font-size: .8rem; color: var(--ink-2); max-height: 14rem; overflow: auto; }
.dz-list li { padding: 3px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.dz-list:empty { display: none; }
.hash { display: inline-block; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; white-space: nowrap; }
.release { padding: 22px 0; border-top: 1px solid var(--line); }
.release.featured { border-top-color: var(--line-strong); }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.release-head .version-head { align-items: center; }
.release .changelog { margin: 12px 0 6px; }
details.release > summary { list-style: none; cursor: pointer; }
details.release > summary::-webkit-details-marker { display: none; }
details.release > summary .release-head::after { content: "Show"; font-size: .8rem; font-weight: 650; color: var(--accent); }
details.release[open] > summary .release-head::after { content: "Hide"; }
.product-downloads { padding-top: 26px; }
.product-downloads + .product-downloads { margin-top: 18px; border-top: 1px solid var(--line-strong); }
.product-title { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.product-title .icon { color: var(--accent); }
.simbrief { padding: 22px 0; border-top: 1px solid var(--line); }
.simbrief h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.simbrief h3 .icon { color: var(--accent); }
.license-label { margin: 2px 0 0; font-weight: 650; color: var(--ink-2); overflow-wrap: anywhere; }
.programs { margin-top: 14px; }
.programs > summary { cursor: pointer; color: var(--accent); font-weight: 650; font-size: .9rem; list-style: none; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--glass-tint); box-shadow: inset 0 0 0 1px var(--line); }
.programs > summary::-webkit-details-marker { display: none; }
.programs[open] > summary { margin-bottom: 4px; }
.featured-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .8rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--ok); }
.latest { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
@media (max-width: 700px) {
  .dz-platform { margin-left: 0; width: 100%; }
  .dz-platform :is(select, .sel) { min-width: 0; }
  .dz-inputs label.btn { flex: 1 1 auto; }
}
.dz-note { margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; font-size: .85rem; font-weight: 600; color: var(--ok); background: var(--ok-soft); }
.dz-note[hidden] { display: none; }

.actions.auth-actions { justify-content: flex-end; }
@media (max-width: 520px) {
  .actions.auth-actions > button { width: 100%; }
}
.pre-line { white-space: pre-line; }
.break { overflow-wrap: anywhere; word-break: break-all; }
.qr-box { display: flex; justify-content: center; margin: 16px 0 10px; }
.qr-box svg { width: 200px; height: 200px; border-radius: 12px; }
.qr-bg { fill: #fff; }
.qr-fg { fill: #000; }
.recovery-codes { list-style: none; margin: 14px 0 0; padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px 16px; border-radius: var(--radius-sm); background: var(--well); border: 1px solid var(--line); font-size: 14px; }
[data-recovery-box] { margin-top: 18px; }
.dialog { max-width: min(440px, calc(100vw - 32px)); width: 100%; padding: 22px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--glass-solid); color: var(--ink); box-shadow: var(--shadow); }
.dialog::backdrop { background: rgba(2, 4, 12, .6); }
.dialog h2 { margin: 0 0 6px; }
.dialog .alert { margin: 12px 0 0; }
.dialog .actions { justify-content: flex-end; }
.account-btn { text-decoration: none; }

.registry { display: none; }
[data-rotation-progress] { margin: 16px 0 6px; }
[data-rotation-progress] progress { display: block; width: 100%; height: 10px; border: 0; border-radius: 999px; overflow: hidden; background: var(--well); accent-color: var(--accent); }
[data-rotation-progress] progress::-webkit-progress-bar { background: var(--well); border-radius: 999px; }
[data-rotation-progress] progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
[data-rotation-progress] progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }
[data-rotation-result] { margin-top: 18px; }
[data-cust-created] dd, [data-admin-created] dd, [data-admin-reset-result] dd { font-size: 1.05rem; }

.dt { margin-top: 6px; min-width: 0; }
.dt-tools { align-items: flex-end; }
.dt-tools .field { margin: 0; flex: 0 1 auto; }
.dt-tools .dt-scope :is(select, .sel) { min-width: 11rem; }
.dt-tools .dt-per :is(select, .sel) { width: auto; min-width: 5.5rem; }
.dt-tools .dt-search { flex: 1 1 280px; }
.dt-tools label.check { margin: 0; }
.dt[data-ready="1"] [data-dt-apply] { display: none; }
.dt-count { margin: 0 0 10px; }
.dt-card { padding-top: 6px; padding-bottom: 6px; }
.dt-sort { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; color: inherit; }
.dt-sort:hover { color: var(--ink); text-decoration: none; }
.dt-arrow { display: inline-block; width: .9em; text-align: center; opacity: .35; }
.dt-arrow::after { content: "↕"; }
th[aria-sort="ascending"] .dt-arrow::after { content: "↑"; }
th[aria-sort="descending"] .dt-arrow::after { content: "↓"; }
th[aria-sort="ascending"], th[aria-sort="descending"] { color: var(--ink); }
th[aria-sort="ascending"] .dt-arrow, th[aria-sort="descending"] .dt-arrow { opacity: 1; color: var(--accent); }
.dt-table tbody tr:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--cat, var(--c-other)) 12%, transparent), transparent 60%); }
.dt-table td.dt-col-ref { white-space: nowrap; box-shadow: inset 4px 0 0 var(--cat, transparent); }
.card.tight .dt-table :is(th, td).dt-col-ref:first-child { padding-left: 18px; }
.dt-subject { display: inline-block; max-width: 44ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; font-weight: 650; color: var(--ink); }
.dt-table tr.unread .dt-subject { font-weight: 800; }
.dt-table .pill { white-space: nowrap; }
.dt-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--unread); box-shadow: 0 0 0 4px color-mix(in srgb, var(--unread) 24%, transparent); }
.dt .empty[hidden] { display: none; }
.audit-tools { align-items: flex-end; }
.audit-tools .field { margin: 0; }
.audit-find { flex: 1 1 320px; min-width: 0; }
.audit-per :is(select, .sel) { width: auto; min-width: 5.5rem; }
.audit-table th, .audit-table td { padding: 10px 8px; }
.audit-table th:first-child, .audit-table td:first-child { padding-left: 15px; }
.audit-table td .pill + .sub { margin-top: 4px; }
.audit-table td.audit-details { min-width: 7rem; }
@media (max-width: 899px) { .audit-table [data-pii-of] { overflow-wrap: anywhere; } }
.audit-tools [data-audit-apply][hidden] { display: none; }
.picker input { padding-right: 48px; }
.picker input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.picker-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--ink-3); cursor: pointer; }
.picker-clear:hover, .picker-clear:focus-visible { color: var(--ink); background: var(--glass-tint); }
.picker-clear[hidden] { display: none; }
.picker-list { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 6px); min-width: min(300px, calc(100vw - 32px)); margin: 0; padding: 6px; list-style: none; max-height: min(60vh, 24rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-gutter: stable; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--glass-solid); color: var(--ink); box-shadow: var(--bevel), var(--shadow); }
.picker:has(> .picker-list:not([hidden])) { z-index: 50; }
.picker-list[hidden] { display: none; }
.picker-list li { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 10px; cursor: pointer; min-width: 0; }
.picker-list li[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.picker-list li.note { cursor: default; color: var(--ink-3); font-size: 0.81rem; }
.picker-list .who { font-weight: 650; color: var(--ink); overflow-wrap: anywhere; }
.picker-list .sub { font-size: 0.774rem; color: var(--ink-3); overflow-wrap: anywhere; }
.chips a.filter-chip { max-width: 100%; }
.chips a.filter-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chips a.filter-chip .icon:last-child { opacity: .75; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 4px; }
.pager[hidden] { display: none; }
.pager-page { display: inline-grid; place-items: center; min-width: max(2.4rem, 40px); height: max(2.4rem, 40px); padding: 0 .6rem; border-radius: 999px; font-weight: 650; font-size: 0.855rem; color: var(--ink-2); background: var(--glass-tint); box-shadow: inset 0 0 0 1px var(--line); }
.pager-page:hover { color: var(--ink); text-decoration: none; }
.pager-page.on { color: var(--accent-ink); background: var(--accent); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.pager-gap { color: var(--ink-3); padding: 0 2px; }
.avatar { --av: 28px; display: inline-grid; place-items: center; width: var(--av); height: var(--av); border-radius: 50%; flex: none; overflow: hidden; }
.avatar.initials { font-size: calc(var(--av) * .4); line-height: 1; white-space: nowrap; font-weight: 750; letter-spacing: .03em; text-indent: .03em; color: var(--ink); background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--line-strong); }
.avatar-logo { padding: calc(var(--av) * .16); object-fit: contain; background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--line-strong); }
.staff-tag { font-size: 0.738rem; font-weight: 600; color: var(--ink-3); }
.attach .att { display: grid; gap: 8px; max-width: 100%; min-width: 0; }
.att-media { margin: 0; }
.att-media img, .att-media video { display: block; max-width: min(100%, 520px); max-height: 360px; border-radius: 14px; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.att-chip.busy { opacity: .6; cursor: progress; }
.att.att-inline .att-media { display: none; }
.rich { display: grid; min-width: 0; }
.rich-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--field-border); border-bottom: 0; border-radius: 14px 14px 0 0; background: var(--field); }
.rich-btn { display: inline-grid; place-items: center; gap: 0; width: 36px; height: 36px; min-height: 0; padding: 0; border: 0; border-radius: 10px; background: transparent; box-shadow: none; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s; }
.rich-btn .icon { width: 18px; height: 18px; }
.rich-btn:hover { filter: none; background: var(--glass-tint); color: var(--ink); }
.rich-btn:active { transform: none; }
.rich-btn[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); }
.rich-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.rich-sep { width: 1px; height: 20px; margin: 0 4px; background: var(--line-strong); }
.rich-link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--field-border); border-bottom: 0; background: var(--field); }
.rich-link input { flex: 1 1 220px; width: auto; min-height: 2.4rem; }
.rich-link .hint { flex-basis: 100%; margin: 0; }
.rich-area { position: relative; min-height: 7rem; max-height: 60vh; overflow-y: auto; padding: .6rem .9rem; border: 1px solid var(--field-border); border-radius: 0 0 14px 14px; background: var(--field); color: var(--ink); font-size: 0.9rem; line-height: 1.55; overflow-wrap: anywhere; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12); transition: border-color .15s, box-shadow .15s, background .15s; }
.rich-area.tall { min-height: 11rem; }
.rich-area:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: var(--focus); }
.rich-area.is-empty::before { content: attr(data-placeholder); position: absolute; top: .6rem; left: .9rem; right: .9rem; color: var(--ink-3); opacity: .85; pointer-events: none; }
.rich-area.drag-over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--field)); }
:is(.rich-area, .rich-body) p { margin: 0 0 .75em; }
:is(.rich-area, .rich-body) p:last-child { margin-bottom: 0; }
:is(.rich-area, .rich-body) :is(ul, ol) { margin: 4px 0; padding-left: 1.6em; }
:is(.rich-area, .rich-body) li { margin: 1px 0; }
:is(.rich-area, .rich-body) blockquote { margin: 6px 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--line-strong); color: var(--ink-2); }
:is(.rich-area, .rich-body) a { text-decoration: underline; }
:is(.rich-area, .rich-body) img.rich-img { max-width: 100%; height: auto; vertical-align: bottom; }
.rich-area img.rich-img { cursor: default; }
.rich-body img.rich-img:not([src]) { width: 180px; height: 110px; }
.rich-missing { color: var(--ink-3); font-style: italic; }
@media (max-width: 430px) {
  .rich-btn { width: 32px; height: 34px; }
  .rich-sep { margin: 0 2px; }
}
.att-failed .att-chip { box-shadow: inset 0 0 0 1px var(--err); }
.assign-actions { margin-top: 12px; }
@media (max-width: 700px) {
  .dt-tools .field, .dt-tools .dt-search { flex: 1 1 100%; }
  .dt-tools .dt-scope :is(select, .sel), .dt-tools .dt-per :is(select, .sel) { width: 100%; }
  .dt-subject { max-width: 26ch; }
  .att-media img, .att-media video { max-width: 100%; }
  :is(.rich-area, .rich-body) img.rich-img { max-width: 100%; }
}

@media (max-width: 430px) {
  body.admin .top .brand-text { display: none; }
}
.dt-table { font-size: 0.81rem; }
.dt-table th, .dt-table td { padding: 11px 9px; }
.dt-table thead th { white-space: normal; vertical-align: bottom; }
.dt-table .pill { font-size: 0.7rem; }
.dt-table td.dt-col-subject { width: 100%; max-width: 0; min-width: 9rem; }
.dt-table td.dt-col-created, .dt-table td.dt-col-activity { white-space: normal; min-width: 6rem; }
.dt-table .dt-subject { display: block; max-width: none; }
.dt-table td.dt-col-customer, .dt-table td.dt-col-assignee { white-space: nowrap; }
.dt-table td.dt-col-customer .sub { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1499px) {
  .dt[data-dt="staff"] .dt-col-created { display: none; }
}
@media (min-width: 1000px) {
  .tabs { padding-bottom: 44px; margin-bottom: -38px; pointer-events: none; }
  .tab-group { pointer-events: auto; }
}
[data-push-devices] .push-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.hint.push-err { color: var(--err); }
.attach .att .pill[data-quarantine] { justify-self: start; }
.dt-table td.dt-col-unread { padding-top: 0; padding-bottom: 0; text-align: center; }
.dt-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%; background: none; box-shadow: none; color: inherit; vertical-align: middle; }
.dt-toggle:hover { background: var(--glass-tint); filter: none; }
.dt-toggle:active { transform: none; }
.dt-toggle .dt-dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); opacity: .18; transition: opacity .15s, background .15s, box-shadow .15s; }
.dt-toggle.on .dt-dot { opacity: 1; background: var(--unread); box-shadow: 0 0 0 4px color-mix(in srgb, var(--unread) 24%, transparent); }
.dt-table tr:hover .dt-toggle .dt-dot, .dt-toggle:focus-visible .dt-dot { opacity: 1; }
@media (hover: none) {
  .dt-toggle .dt-dot { opacity: .75; }
}
body .top { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
body .top.top-auth { padding-top: calc(18px + env(safe-area-inset-top, 0px)); }
body .wrap { padding-left: max(clamp(16px, 3.5vw, 56px), env(safe-area-inset-left, 0px)); padding-right: max(clamp(16px, 3.5vw, 56px), env(safe-area-inset-right, 0px)); }
#main:focus, #main:focus-visible, main.wrap:focus, main.wrap:focus-visible { outline: none; box-shadow: none; }
.plugin-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.plugin-thumb { flex: none; width: 90px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--glass-tint); box-shadow: inset 0 0 0 1px var(--line); display: inline-grid; place-items: center; color: var(--ink-3); }
.plugin-thumb.is-logo { width: 64px; object-fit: cover; box-shadow: none; }
.plugin-logo-card { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.plugin-logo { flex: none; margin: 0; display: grid; gap: 6px; justify-items: center; font-size: 0.738rem; color: var(--ink-3); }
.plugin-logo img, .plugin-logo.none { display: grid; place-items: center; width: 128px; height: 128px; border-radius: 22px; object-fit: contain; background: var(--glass-tint); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); }
.plugin-logo-forms { flex: 1 1 260px; min-width: 0; display: grid; gap: 12px; }
.plugin-logo-forms form { margin: 0; }
.plugin-images { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.plugin-images li { display: grid; gap: 8px; align-content: start; }
.plugin-images figure { margin: 0; display: grid; gap: 6px; }
.plugin-images img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.plugin-images li:first-child img { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.plugin-images figcaption { font-size: 0.738rem; color: var(--ink-3); }
.plugin-image-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.plugin-image-actions form { margin: 0; }
textarea.plugin-short { min-height: 6.5rem; }
:root {
  --cal-blue: #6cb8ff;
  --cal-teal: #4fd8c8;
  --cal-green: #74e08f;
  --cal-amber: #ffd166;
  --cal-orange: #ffa45c;
  --cal-red: #ff7f7f;
  --cal-purple: #c09cff;
  --cal-slate: #a9b4cc;
  --cal-license: #ff79c6;
}
:root[data-theme="light"] {
  --cal-blue: #1c5fc4;
  --cal-teal: #0b7268;
  --cal-green: #1d7a34;
  --cal-amber: #8a5a00;
  --cal-orange: #b54708;
  --cal-red: #c0262d;
  --cal-purple: #6b2fd6;
  --cal-slate: #4d5772;
  --cal-license: #b4237a;
}
.c-blue { --ec: var(--cal-blue); }
.c-teal { --ec: var(--cal-teal); }
.c-green { --ec: var(--cal-green); }
.c-amber { --ec: var(--cal-amber); }
.c-orange { --ec: var(--cal-orange); }
.c-red { --ec: var(--cal-red); }
.c-purple { --ec: var(--cal-purple); }
.c-slate { --ec: var(--cal-slate); }
.cal-license { --ec: var(--cal-license); }
.icon.flip { transform: scaleX(-1); }
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 18px; }
.cal-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-width: 0; }
.cal-period { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.cal-nav .cal-arrow { flex: none; padding-left: .75rem; padding-right: .75rem; }
.cal-title { margin: 0; font-size: 1.4rem; min-width: 0; }
.btn.cal-label { gap: 8px; padding-left: 1.1rem; padding-right: .85rem; font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; letter-spacing: -.005em; color: var(--ink); cursor: pointer; }
.btn.cal-label .cal-caret { width: 1em; height: 1em; color: var(--accent); transform: rotate(90deg); }
.btn.cal-label:hover { filter: brightness(1.08); }
.btn.cal-label:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.ghost.cal-label[aria-expanded="true"] { background: color-mix(in srgb, var(--accent) 16%, var(--glass-solid)); box-shadow: var(--bevel), inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 65%, transparent), var(--shadow); }
.btn.cal-label[aria-expanded="true"] .cal-caret { transform: rotate(-90deg); }
.cal-now { flex: none; }
span.cal-now { cursor: default; }
span.cal-now:hover, span.cal-now:active { filter: none; transform: none; }
.btn.ghost.cal-now.off { color: var(--ink-3); opacity: .72; }
.btn.ghost.cal-now.off:hover, .btn.ghost.cal-now.off:focus-visible { color: var(--ink); opacity: 1; }
.cal-wk { font-family: var(--font-body); font-size: 0.8rem; font-weight: 650; color: var(--ink-3); }
.cal-cust-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; }
.cal-cust-list:empty { display: none; }
.cal-cust { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 36px; padding: 2px 4px 2px 12px; border-radius: 999px; background: var(--glass-tint); box-shadow: inset 0 0 0 1px var(--line-strong); }
.cal-cust > .icon { flex: none; width: 1em; height: 1em; color: var(--accent); }
.cal-cust a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cal-cust .mono { white-space: nowrap; }
.cal-cust .cal-cust-remove { flex: none; min-height: 30px; width: 30px; padding: 0; border-radius: 999px; color: var(--ink-3); background: transparent; box-shadow: none; }
.cal-cust .cal-cust-remove:hover, .cal-cust .cal-cust-remove:focus-visible { color: var(--err); background: var(--err-soft); filter: none; }
.cal-custs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 4px 0 0 12px; font-size: 0.8rem; color: var(--ink-2); }
.cal-custs .icon { width: 1em; height: 1em; color: var(--ink-3); }
.cal-custs a { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.cal-list > li { min-width: 0; }
.cal-list > li.cal-task { position: relative; }
.cal-task > .cal-item { padding-right: 40px; }
.cal-done-form { position: absolute; top: 6px; right: 6px; margin: 0; }
.cal-done-form .cal-check { width: 28px; height: 28px; }
.cal-done-form .cal-check .icon { width: 16px; height: 16px; }
.cal-task.done .cal-item { opacity: .55; }
.cal-task.done .cal-item strong, .cal-ev.task.done .cal-t, .cal-done-t { text-decoration: line-through; }
.cal-ev.task { background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ec) 45%, transparent); }
.cal-ev.task:hover { background: color-mix(in srgb, var(--ec) 20%, transparent); }
.cal-ev.task.done { opacity: .5; }
.cal-ev .cal-task-i { color: var(--ec); }
.cal-ev.task.done .cal-task-i { color: var(--ok); }
.cal-legend .icon { width: 1em; height: 1em; color: var(--ok); }
.chips.cal-kinds { margin: 0 0 6px; }
.chips.cal-kinds label { display: inline-flex; align-items: center; gap: 8px; min-height: max(2.4rem, 40px); padding: .4rem .95rem; border-radius: 999px; font-size: 0.855rem; font-weight: 650; color: var(--ink-2); background: var(--glass-tint); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.chips.cal-kinds label:hover { color: var(--ink); }
.chips.cal-kinds label:has(input:checked) { color: var(--accent-ink); background: var(--accent); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.chips.cal-kinds label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.cal-task-state { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 18px; }
.cal-task-state p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.cal-task-state p > .icon { color: var(--info); }
.cal-task-state.done p > .icon { color: var(--ok); }
.cal-task-state form { margin: 0; }
.cal-upcoming { margin: 0; padding: 0; list-style: none; }
.cal-upcoming li + li { border-top: 1px solid var(--line); }
.cal-upcoming a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 14px; color: var(--ink); text-decoration: none; }
.cal-upcoming a:hover { background: var(--glass-tint); }
.cal-up-when { color: var(--ink-3); }
.dp { position: relative; display: flex; align-items: center; min-width: 0; }
.dp input { padding-right: 48px; font-variant-numeric: tabular-nums; }
.dp .dp-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: inline-grid; place-items: center; width: 38px; height: 38px; min-height: 0; padding: 0; border-radius: 10px; color: var(--ink-3); background: transparent; box-shadow: none; }
.dp .dp-btn:hover { filter: none; color: var(--accent); background: var(--glass-tint); }
.dp .dp-btn:active { transform: translateY(-50%); }
.dp .dp-btn:disabled { opacity: .45; cursor: default; background: transparent; color: var(--ink-3); }
.dp .dp-btn .icon { width: 1.15em; height: 1.15em; }
.pick.pick-times { width: 136px; padding: 6px; }
.pick-times ul { max-height: 248px; margin: 0; padding: 0; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.pick-times li { padding: 8px 12px; border-radius: 9px; font-weight: 600; font-size: 0.9rem; font-variant-numeric: tabular-nums; cursor: pointer; }
.pick-times li:hover, .pick-times li.active { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.pick-times li[aria-selected="true"] { color: var(--accent); }
.cal-customers .picker { position: relative; }
.sel { position: relative; display: block; width: 100%; min-width: 0; }
.sel > select { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; pointer-events: none; }
.sel-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 2.7rem; padding: .6rem .75rem .6rem .9rem; border: 1px solid var(--field-border); border-radius: 14px; background: var(--field); color: var(--ink); font: inherit; font-size: 0.9rem; font-weight: 500; line-height: 1.35; text-align: left; white-space: nowrap; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12); transition: border-color .15s, box-shadow .15s, background .15s; }
.sel-btn:hover { filter: none; border-color: color-mix(in srgb, var(--accent) 45%, var(--field-border)); }
.sel-btn:active { transform: none; }
.sel-btn:focus-visible, .sel.open .sel-btn { outline: none; border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: var(--focus); }
.sel-btn.invalid { border-color: color-mix(in srgb, var(--err) 70%, transparent); }
.sel-btn:disabled { opacity: .65; cursor: default; }
.sel-btn.sel-unset .sel-text { color: var(--ink-3); }
.sel-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sel-btn .sel-caret { width: 1.05em; height: 1.05em; color: var(--ink-3); }
.sel.open .sel-caret { transform: rotate(180deg); color: var(--accent); }
.sel-pop { position: absolute; z-index: 70; display: flex; flex-direction: column; width: max-content; max-width: min(28rem, calc(100vw - 16px)); padding: 6px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--glass-solid); color: var(--ink); box-shadow: var(--bevel), var(--shadow); font-size: 0.9rem; }
.sel-search { position: relative; flex: none; margin-bottom: 6px; }
.sel-search .sel-glass { position: absolute; left: 11px; top: 50%; width: 1em; height: 1em; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.sel-pop .sel-search input { min-height: 2.4rem; padding: .45rem .75rem .45rem 2.1rem; border-radius: 10px; }
.sel-pop .sel-search input:focus { box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12); }
.sel-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.sel-list { flex: 1 1 auto; min-height: 0; margin: 0; padding: 0; list-style: none; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; outline: none; }
.sel-list li[role="option"] { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; padding: 7px 10px 7px 12px; border-radius: 9px; cursor: pointer; overflow-wrap: anywhere; }
.sel-list li.active { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.sel-list li[aria-selected="true"] { color: var(--accent); font-weight: 650; }
.sel-list li.none .sel-opt { color: var(--ink-3); }
.sel-list li[aria-disabled="true"] { opacity: .5; cursor: default; }
.sel-list .sel-check { width: 1em; height: 1em; }
.sel-group { padding: 8px 12px 4px; font-size: 0.72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.sel-empty { padding: 10px 12px; color: var(--ink-3); font-size: 0.85rem; }
.pick { position: absolute; z-index: 60; width: min(304px, calc(100vw - 16px)); padding: 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--glass-solid); color: var(--ink); box-shadow: var(--bevel), var(--shadow); }
.pick-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 4px; margin-bottom: 6px; }
.pick button { min-height: 40px; padding: 0 8px; border-radius: 10px; color: var(--ink); background: transparent; box-shadow: none; font-weight: 650; font-size: 0.9rem; }
.pick button:hover { filter: none; background: var(--glass-tint); }
.pick button:active { transform: none; }
.pick button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pick .pick-arrow { font-size: 1.35rem; line-height: 1; padding: 0; }
.pick .pick-up:disabled { cursor: default; background: transparent; }
.pick-grid { display: grid; gap: 4px; }
.pick-years, .pick-months { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pick-years .pick-cell, .pick-months .pick-cell { min-height: 56px; }
.pick-days { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.pick-days .pick-cell { min-height: 38px; padding: 0; font-weight: 600; }
.pick-weeks { grid-template-columns: minmax(0, 1fr); }
.pick .pick-weeks .pick-cell { justify-content: space-between; padding: 0 12px; }
.pick-weeks .pick-cell span { color: var(--ink-2); font-weight: 600; }
.pick .pick-cell.out { color: var(--ink-3); opacity: .7; }
.pick .pick-cell.now { color: var(--accent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 70%, transparent); }
.pick .pick-cell.on, .pick .pick-cell.on:hover { color: var(--accent-ink); background: var(--accent); }
.pick .pick-cell.on span { color: inherit; }
.pick-dow { padding: 4px 0; text-align: center; font-size: 0.72rem; font-weight: 650; color: var(--ink-3); }
.pick-foot { display: flex; justify-content: center; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.pick .pick-today { color: var(--accent); font-size: 0.85rem; }
.chips.cal-views { margin: 0; }
.cal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 14px 0 16px; font-size: 0.82rem; color: var(--ink-2); }
.cal-legend { display: inline-flex; align-items: center; gap: 4px; }
.cal-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--ec); }
.cal-zone { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-left: auto; }
.cal-zone .icon { width: 1.05em; height: 1.05em; color: var(--accent); }
.cal-tz { padding: 2px 4px; color: var(--accent); font-size: 0.82rem; }
.cal-tz:hover { color: var(--ink); }
.cal-dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 0 0 6px; }
.cal-dow span { font-size: 0.72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-left: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-radius: var(--radius-sm); overflow: hidden; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); }
.cal-day { display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: 122px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .15s; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day:nth-last-child(-n+7) { border-bottom: 0; }
.cal-day.weekend { background: var(--glass-tint); }
.cal-day:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.cal-day.out > * { opacity: .45; }
.cal-day-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.cal-num { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.cal-num:hover { background: var(--glass-tint); text-decoration: none; }
.cal-day.today .cal-num { color: var(--accent-ink); background: var(--accent); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.cal-add { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--ink-3); opacity: 0; transition: opacity .15s, background .15s; }
.cal-add .icon { width: 16px; height: 16px; }
.cal-add:hover { color: var(--accent); background: var(--glass-tint); text-decoration: none; }
.cal-day:hover .cal-add, .cal-add:focus-visible { opacity: 1; }
.cal-evs { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-ev { display: flex; align-items: center; gap: 5px; min-width: 0; padding: 3px 7px; border-radius: 7px; font-size: 0.75rem; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; color: var(--ink); background: color-mix(in srgb, var(--ec) 18%, transparent); --stripe: var(--ec); --stripe-w: 3px; transition: background .15s; }
.cal-ev.all-day { background: color-mix(in srgb, var(--ec) 32%, transparent); }
.cal-ev:hover { background: color-mix(in srgb, var(--ec) 40%, transparent); text-decoration: none; }
.cal-ev .icon { flex: none; width: 0.95em; height: 0.95em; color: var(--ec); }
.cal-ev.cal-license { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ec) 22%, transparent) 0 6px, color-mix(in srgb, var(--ec) 12%, transparent) 6px 12px); }
.cal-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cal-time { flex: none; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cal-rep { opacity: .8; }
.cal-more { font-size: 0.72rem; font-weight: 650; color: var(--ink-3); padding: 1px 7px; }
.cal-agenda { display: none; margin-top: 16px; }
.cal-aday { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.cal-adate { display: grid; justify-items: center; align-content: start; color: var(--ink-3); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.cal-adate b { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0; color: var(--ink); }
.cal-adate:hover { text-decoration: none; }
.cal-aday.today .cal-adate b { color: var(--accent); }
.cal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0; }
.cal-item { display: grid; gap: 2px; min-width: 0; padding: 8px 10px 8px 13px; border-radius: 10px; color: var(--ink); background: color-mix(in srgb, var(--ec) 13%, transparent); --stripe: var(--ec); transition: background .15s; }
.cal-item:hover { background: color-mix(in srgb, var(--ec) 24%, transparent); text-decoration: none; }
.cal-item.cal-license { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ec) 15%, transparent) 0 8px, color-mix(in srgb, var(--ec) 8%, transparent) 8px 16px); }
.cal-when { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 0.74rem; font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cal-when .icon, .cal-where .icon { width: 1em; height: 1em; color: var(--ec); }
.cal-item strong { font-size: 0.88rem; overflow-wrap: anywhere; }
.cal-where { font-size: 0.78rem; color: var(--ink-2); overflow-wrap: anywhere; }
.cal-desc { font-size: 0.78rem; color: var(--ink-3); white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cal-none { margin: 0; font-size: 0.8rem; color: var(--ink-3); }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.cal-wday { min-width: 0; min-height: 260px; padding: 10px; border-radius: var(--radius-sm); background: var(--inner-bg); box-shadow: inset 0 0 0 1px var(--line); }
.cal-wday.weekend { background: var(--glass-tint); }
.cal-wday.today { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-wday header { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.cal-wdow { font-size: 0.7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.cal-wnum { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.cal-wday.today .cal-wnum { color: var(--accent); }
.cal-wmon { font-size: 0.75rem; color: var(--ink-3); }
.cal-wday .cal-add { margin-left: auto; align-self: center; opacity: 1; }
.cal-year { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cal-mini { min-width: 0; padding: 12px; border-radius: var(--radius-sm); background: var(--inner-bg); box-shadow: inset 0 0 0 1px var(--line); }
.cal-mini.now { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 70%, transparent); }
.cal-mini h3 { margin: 0 0 8px; font-size: 1rem; }
.cal-mini h3 a { color: var(--ink); }
.cal-mini-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.cal-mdow { padding-bottom: 2px; font-size: 0.62rem; font-weight: 700; color: var(--ink-3); }
.cal-md { position: relative; display: grid; place-items: center; aspect-ratio: 1; min-width: 0; border-radius: 8px; font-size: 0.74rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cal-md:hover { background: var(--glass-tint); text-decoration: none; }
.cal-md.weekend { color: var(--ink-3); }
.cal-md.has { color: var(--ink); font-weight: 700; background: color-mix(in srgb, var(--accent) 7%, transparent); }
.cal-md.today span { display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; color: var(--accent-ink); background: var(--accent); font-weight: 700; }
.cal-dots { position: absolute; left: 0; right: 0; bottom: 2px; display: flex; justify-content: center; gap: 2px; }
.cal-dots b { width: 4px; height: 4px; border-radius: 50%; background: var(--ec); }
.cal-md.s2 { grid-column-start: 2; }
.cal-md.s3 { grid-column-start: 3; }
.cal-md.s4 { grid-column-start: 4; }
.cal-md.s5 { grid-column-start: 5; }
.cal-md.s6 { grid-column-start: 6; }
.cal-md.s7 { grid-column-start: 7; }
.cal-time-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cal-when-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 20px; }
.cal-when-row .field { margin: 0; }
.cal-date { flex: 0 1 220px; }
.cal-times { flex: 1 1 280px; max-width: 420px; }
.cal-times .hint { margin-bottom: 0; }
.cal-allday { flex: none; padding-top: 26px; }
.cal-allday label.check { margin-bottom: 0; }
.cal-colors, .cal-customers, .cal-kind { border: 0; padding: 0; margin: 0; min-width: 0; }
.cal-colors legend, .cal-customers legend, .cal-kind legend { padding: 0; margin: 0 0 9px; font-size: 0.855rem; font-weight: 650; color: var(--ink-2); }
.cal-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.cal-swatch { position: relative; margin: 0; cursor: pointer; }
.cal-swatch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cal-swatch i { display: block; width: 36px; height: 36px; border-radius: 50%; background: var(--ec); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22); transition: transform .15s, box-shadow .15s; }
.cal-swatch:hover i { transform: scale(1.08); }
.cal-swatch input:checked ~ i { box-shadow: 0 0 0 3px var(--glass-solid), 0 0 0 5px var(--ec); }
.cal-swatch input:focus-visible ~ i { outline: 2px solid var(--accent); outline-offset: 6px; }
.cal-rule { margin: 0; }
textarea.cal-desc-input { min-height: 6rem; }
.cal-danger .actions { margin-top: 0; }
@media (max-width: 1100px) {
  .cal-year { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cal-week { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
  .cal-wday { min-height: 0; }
}
@media (max-width: 800px) {
  .cal-year { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cal-zone { margin-left: 0; }
}
@media (max-width: 700px) {
  .cal-title { font-size: 1.15rem; }
  .btn.cal-label { padding-left: .9rem; padding-right: .7rem; font-size: .95rem; }
  .cal-period { flex: 1 1 auto; justify-content: space-between; }
  .cal-nav { width: 100%; }
  .cal-dow span { padding-left: 0; text-align: center; font-size: 0.62rem; letter-spacing: 0; }
  .cal-day { min-height: 58px; padding: 3px; align-items: center; }
  .cal-day-head { justify-content: center; }
  .cal-num { min-width: 26px; height: 26px; font-size: 0.78rem; }
  .cal-day .cal-add, .cal-more { display: none; }
  .cal-evs { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 3px; }
  .cal-month .cal-ev { width: 8px; height: 8px; padding: 0; border-radius: 50%; background: var(--ec); box-shadow: none; }
  .cal-month .cal-ev > * { display: none; }
  .cal-agenda { display: block; }
  .cal-week { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .cal-mini { padding: 8px; }
  .cal-md { font-size: 0.68rem; border-radius: 6px; }
}
@media (hover: none) {
  .cal-add { opacity: 1; }
}
.bell { position: relative; display: block; }
.bell-btn .bell-count { position: absolute; top: -4px; right: -4px; padding: 0 5px; color: var(--accent-ink); background: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent), 0 4px 10px -3px color-mix(in srgb, var(--accent) 70%, transparent); pointer-events: none; }
.bell.open .bell-btn { color: var(--accent); }
.bell-pop { position: absolute; z-index: 80; top: calc(100% + 10px); left: 0; display: flex; flex-direction: column; width: min(384px, calc(100vw - 16px)); max-height: min(72vh, 560px); padding: 6px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--glass-solid); color: var(--ink); box-shadow: var(--bevel), var(--shadow); font-size: 0.9rem; text-align: left; }
.bell-pop[hidden] { display: none; }
.bell-pop:focus { outline: none; }
.bell-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); }
.bell-ttl { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.bell-ttl strong { font-family: var(--font-display); font-size: 1.08rem; }
.bell-day { color: var(--ink-2); font-weight: 600; }
.bell-zone { min-width: 0; overflow: hidden; color: var(--ink-3); font-size: 0.75rem; white-space: nowrap; text-overflow: ellipsis; }
.bell-body { flex: 1 1 auto; min-height: 0; padding: 6px 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.bell-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.bell-link { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr) auto; grid-template-areas: "when what hint"; align-items: center; gap: 2px 10px; padding: 9px 10px 9px 13px; border-radius: 10px; color: var(--ink); --stripe: var(--ec); }
.bell-link:hover, .bell-link:focus-visible { background: color-mix(in srgb, var(--ec) 14%, transparent); text-decoration: none; }
.bell-link:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 75%, transparent); }
.bell-when { grid-area: when; color: var(--ec); font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bell-what { grid-area: what; display: flex; flex-direction: column; min-width: 0; }
.bell-title { font-weight: 650; overflow-wrap: anywhere; }
.bell-sub { color: var(--ink-3); font-size: 0.78rem; overflow-wrap: anywhere; }
.bell-hint { grid-area: hint; padding: 2px 8px; border-radius: 999px; color: var(--ink-2); background: var(--glass-tint); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.bell-item[data-state="upcoming"] .bell-hint { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: none; }
.bell-item[data-state="now"] .bell-hint { color: var(--accent-ink); background: var(--accent); box-shadow: none; }
.bell-item[data-state="passed"] .bell-link { opacity: .55; }
.bell-item[data-state="passed"] .bell-link:hover, .bell-item[data-state="passed"] .bell-link:focus-visible { opacity: .85; }
.bell-empty { margin: 0; padding: 24px 12px; color: var(--ink-3); text-align: center; }
.bell-item.task { display: flex; align-items: center; gap: 2px; }
.bell-item.task .bell-link { flex: 1 1 auto; min-width: 0; }
.bell-item[data-state="overdue"] .bell-hint { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); box-shadow: none; }
.bell-item[data-state="done"] .bell-link { opacity: .5; }
.bell-item[data-state="done"] .bell-title { text-decoration: line-through; }
.bell-item[data-state="done"] .bell-link:hover, .bell-item[data-state="done"] .bell-link:focus-visible { opacity: .8; }
.bell-item:not([data-state="done"]) + .bell-item[data-state="done"] { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line); }
.bell-check, .cal-check { flex: none; display: inline-grid; place-items: center; width: 34px; min-height: 0; height: 34px; padding: 0; border-radius: 50%; color: transparent; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.bell-check .icon, .cal-check .icon { width: 18px; height: 18px; }
.bell-check:hover, .cal-check:hover, .bell-check:focus-visible, .cal-check:focus-visible { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); box-shadow: inset 0 0 0 1.5px var(--ok); filter: none; }
.bell-check:focus-visible, .cal-check:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.bell-check.on, .cal-check.on { color: var(--ok); background: color-mix(in srgb, var(--ok) 16%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ok) 60%, transparent); }
.bell-check:disabled { cursor: progress; opacity: .6; }
.bell-foot { display: flex; justify-content: center; padding: 10px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; font-weight: 650; }
.bell-foot:hover, .bell-foot:focus-visible { background: var(--glass-tint); text-decoration: none; }
.bell-foot:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 430px) {
  .bell-link { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "when hint" "what what"; }
}
@media (forced-colors: active) {
  .bell-pop { border: 1px solid CanvasText; }
}
:is(.sheet .alert, .ticket-row, .msg, .cal-ev, .cal-item, .bell-link) { position: relative; overflow: hidden; }
:is(.sheet .alert, .ticket-row, .msg, .cal-ev, .cal-item, .bell-link)::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: var(--stripe-w, 4px); background: var(--stripe); pointer-events: none; }
@media (forced-colors: active) {
  :is(.sheet .alert, .ticket-row, .msg, .cal-ev, .cal-item, .bell-link)::after { forced-color-adjust: none; background: CanvasText; }
}
