@font-face {
  font-family: "Service Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/service-assets/fonts/inter-cyrillic.woff2") format("woff2-variations");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: "Service Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/service-assets/fonts/inter-latin.woff2") format("woff2-variations");
  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 {
  --green-950: #003b2c;
  --green-900: #004633;
  --green-800: #07543d;
  --green-700: #0f654a;
  --green-300: #91cbb2;
  --green-100: #dff2e7;
  --paper: #fbf9f5;
  --surface: #ffffff;
  --surface-soft: #f7f3ec;
  --line: #e7ded2;
  --line-soft: #efe8df;
  --ink: #17211d;
  --muted: #66716b;
  --gold: #b98535;
  --gold-soft: #f6ead6;
  --gold-light: #f0cf91;
  --warning: #8a5100;
  --warning-bg: #fff1dc;
  --danger: #a52a23;
  --danger-bg: #ffe7e3;
  --shadow: 0 14px 42px rgba(49, 37, 24, 0.09);
  --sidebar: 250px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Service Inter", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; min-height: 100vh; background: var(--paper); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: #fff; background: var(--green-700); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--surface-soft); }
::-webkit-scrollbar-thumb { border: 3px solid var(--surface-soft); border-radius: 10px; background: #a8b3ad; }
:focus-visible { outline: 3px solid rgba(185, 133, 53, .42); outline-offset: 2px; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed; top: -60px; left: 18px; z-index: 100;
  padding: 10px 14px; border-radius: 10px; color: #fff; background: var(--green-900);
  font-size: 13px; font-weight: 750; text-decoration: none;
}
.skip-link:focus { top: 14px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; margin: -1px !important; padding: 0 !important; border: 0 !important; white-space: nowrap !important; }

.brand-lockup { display: flex; align-items: center; gap: 12px; min-width: 0; color: #fff; }
.brand-lockup > span:last-child { display: grid; min-width: 0; gap: 2px; }
.brand-lockup strong { font-size: 14px; line-height: 1.2; letter-spacing: -.01em; }
.brand-lockup small { overflow: hidden; color: #b9d0c7; font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.brand-mark { display: block; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 11px; }
.brand-lockup--large { color: #fff; }
.brand-lockup--large .brand-mark { width: 44px; height: 44px; flex-basis: 44px; }
.brand-lockup--large strong { font-size: 16px; }
.brand-lockup--large small { color: #b9d0c7; font-size: 11px; }

.auth-shell { position: relative; display: grid; min-height: 100svh; place-items: center; overflow: hidden; padding: 32px; background: var(--green-950); }
.auth-brand { position: absolute; top: clamp(24px, 4vw, 48px); left: clamp(24px, 4vw, 48px); }
.auth-panel { width: min(100%, 380px); }
.auth-panel form { display: grid; justify-items: center; gap: 14px; width: 100%; }
.auth-field { display: grid; width: 100%; min-height: 58px; grid-template-columns: 24px 1fr; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,.26); border-radius: 14px; padding: 0 18px; color: #b9d0c7; background: rgba(255,255,255,.055); transition: border-color 160ms ease-out, background-color 160ms ease-out, box-shadow 160ms ease-out; }
.auth-field:hover { border-color: rgba(255,255,255,.44); background: rgba(255,255,255,.075); }
.auth-field:focus-within { border-color: #f0cf91; background: rgba(255,255,255,.08); box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.auth-field svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.auth-field input { width: 100%; min-width: 0; height: 56px; border: 0; outline: 0; color: #fff; background: transparent; font-size: 16px; caret-color: #f0cf91; }
.auth-field input:-webkit-autofill,
.auth-field input:-webkit-autofill:hover,
.auth-field input:-webkit-autofill:focus,
.auth-field input:-webkit-autofill:active {
  box-shadow: 0 0 0 1000px var(--green-950) inset;
  -webkit-text-fill-color: #fff;
  caret-color: #f0cf91;
  transition: background-color 9999s ease-out 0s;
}
.auth-field input:autofill { color: #fff; background: var(--green-950); }
.auth-panel form:has(#login-message:not(:empty)) .auth-field { border-color: #e28a83; }
.auth-submit { display: grid; width: 52px; height: 52px; margin-top: 6px; place-items: center; border: 0; border-radius: 14px; color: var(--green-950); background: #f0cf91; box-shadow: 0 10px 26px rgba(0,0,0,.16); cursor: pointer; transition: background-color 160ms ease-out, box-shadow 160ms ease-out, transform 160ms ease-out; }
.auth-submit:hover { background: #f6dca9; transform: translateY(-1px); }
.auth-submit:active { transform: translateY(0); }
.auth-submit:focus-visible { outline: 3px solid rgba(240,207,145,.42); outline-offset: 3px; }
.auth-submit:disabled { cursor: wait; opacity: .58; transform: none; }
.auth-submit svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }

.form-message { min-height: 20px; margin: 6px 0 0; color: #ffd0cb; font-size: 12px; line-height: 1.45; }
.form-message.is-success { color: var(--green-700); }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 11px; padding: 0 16px; font-size: 13px; font-weight: 780; cursor: pointer; transition: background-color 160ms ease-out, color 160ms ease-out, box-shadow 160ms ease-out, transform 160ms ease-out; }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: wait; opacity: .62; transform: none; }
.button--primary { color: #fff; background: var(--green-800); box-shadow: 0 8px 20px rgba(0,70,51,.17); }
.button--primary:hover { background: var(--green-900); }
.button--wide { width: 100%; }
.button--quiet { border: 1px solid var(--line); color: var(--ink); background: var(--surface); box-shadow: none; }
.button--quiet:hover { background: var(--surface-soft); }
.button--compact { min-height: 36px; padding-inline: 12px; font-size: 11px; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; width: var(--sidebar); flex-direction: column; padding: 22px 16px 16px; color: #fff; background: var(--green-950); }
.sidebar .brand-lockup { padding: 0 7px 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
.primary-nav { display: grid; gap: 3px; margin-top: 20px; }
.nav-item { display: grid; min-height: 42px; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px; border: 0; border-radius: 11px; padding: 0 11px; color: #bdd0c9; background: transparent; font-size: 12px; font-weight: 680; text-align: left; cursor: pointer; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-item.is-active { color: #fff; background: rgba(255,255,255,.12); }
.nav-item svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.nav-count { min-width: 25px; padding: 2px 6px; border-radius: 999px; color: #cae0d7; background: rgba(255,255,255,.08); font-size: 10px; font-variant-numeric: tabular-nums; text-align: center; }
.nav-item.is-active .nav-count { color: var(--green-950); background: #f0cf91; }
.sidebar-foot { display: grid; gap: 12px; margin-top: auto; padding: 16px 7px 0; border-top: 1px solid rgba(255,255,255,.1); }
.user-identity { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 10px; min-width: 0; }
.user-identity > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: var(--green-950); background: #f0cf91; font-size: 11px; font-weight: 850; }
.user-identity div { display: grid; min-width: 0; gap: 2px; }
.user-identity strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.user-identity small { color: #9fb8ae; font-size: 9px; }
.sidebar-foot form button { border: 0; padding: 0; color: #a9c0b7; background: transparent; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sidebar-foot form button:hover { color: #fff; }

.workspace { min-height: 100vh; margin-left: var(--sidebar); background: var(--paper); }
.topbar { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 30px; border-bottom: 1px solid var(--line); background: rgba(251,249,245,.96); }
.topbar h1 { margin: 0; color: var(--ink); font-size: 24px; line-height: 1.2; letter-spacing: -.025em; }
.topbar p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.system-state { display: inline-flex; align-items: center; gap: 7px; color: var(--green-700); font-size: 11px; font-weight: 750; }
.system-state i { width: 8px; height: 8px; border-radius: 50%; background: #35a06f; box-shadow: 0 0 0 4px rgba(53,160,111,.12); }

.dashboard { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; max-width: 1540px; margin: 0 auto; padding: 24px 30px 42px; }
.situation { grid-column: 1; overflow: hidden; border-radius: 16px; color: #fff; background: var(--green-900); box-shadow: var(--shadow); }
.situation > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 22px 13px; }
.situation h2, .support-control h2, .queue-ledger h2, .queue-index h2 { margin: 0; font-size: 15px; line-height: 1.3; letter-spacing: -.01em; }
.situation header p, .ledger-head p, .queue-index header p { margin: 4px 0 0; font-size: 11px; }
.situation header p { color: #bad0c7; }
.situation time { color: #b4cac1; font-size: 10px; font-variant-numeric: tabular-nums; }
.metric-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 7px 22px 21px; }
.metric-strip article { display: grid; gap: 4px; padding: 4px 18px; border-left: 1px solid rgba(255,255,255,.14); }
.metric-strip article:first-child { padding-left: 0; border-left: 0; }
.metric-strip strong { font-size: 30px; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.metric-strip span { color: #c5d8d0; font-size: 10px; }
.metric-strip .metric-alert strong { color: #ffd2cc; }
.load-line { height: 3px; background: rgba(255,255,255,.1); }
.load-line span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left center; background: #f0cf91; transition: transform 500ms cubic-bezier(.2,.75,.25,1); }

.support-control { grid-column: 2; grid-row: 1; padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.support-control > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.queue-code { display: inline-flex; min-height: 24px; align-items: center; border-radius: 999px; padding: 0 8px; color: var(--green-800); background: var(--green-100); font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.support-route { display: grid; gap: 0; }
.support-route > div { position: relative; display: grid; min-height: 42px; grid-template-columns: 18px 1fr; gap: 9px; }
.support-route > div:not(:last-child)::after { position: absolute; top: 16px; bottom: -4px; left: 5px; width: 1px; background: var(--line); content: ""; }
.support-route p { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0; color: var(--muted); font-size: 10px; }
.support-route strong { color: var(--ink); font-size: 18px; font-variant-numeric: tabular-nums; }
.state-dot { z-index: 1; width: 11px; height: 11px; margin-top: 4px; border: 2px solid var(--surface); border-radius: 50%; box-shadow: 0 0 0 1px currentColor; background: currentColor; }
.state-dot--new { color: #718078; }
.state-dot--active { color: #d18a24; }
.state-dot--wait { color: #8a62aa; }
.state-dot--done { color: #2f8a62; }
.support-rule { margin: 7px 0 0; padding-top: 13px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 10px; line-height: 1.5; }

.queue-ledger { grid-column: 1; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ledger-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.ledger-head p, .queue-index header p { color: var(--muted); }
.search-field { display: flex; width: min(260px, 42vw); min-height: 36px; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; color: var(--muted); background: var(--surface-soft); }
.search-field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(185,133,53,.13); }
.search-field svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.7; }
.search-field input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; caret-color: var(--green-700); }
.search-field input::placeholder { color: #7b8580; }
.saved-view-control { display: flex; align-items: center; gap: 6px; }
.saved-view-control select { min-width: 180px; height: 34px; border: 1px solid var(--line); border-radius: 9px; padding: 0 30px 0 9px; color: var(--ink); background: var(--surface); font-size: 9px; font-weight: 680; }
.saved-view-control select:focus { border-color: var(--gold); outline: 3px solid rgba(185,133,53,.13); }
.saved-view-control.is-error select { border-color: var(--danger); }
.saved-view-dialog form { display: grid; gap: 12px; }
.saved-view-dialog form > label:not(.native-check) { display: grid; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 780; text-transform: uppercase; }
.saved-view-dialog form > label input { min-height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; color: var(--ink); background: var(--surface); }
.ledger-table-wrap { width: 100%; height: calc(100dvh - var(--topbar) - 210px); min-height: 280px; overflow: auto; }
.ledger-table { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; }
.ledger-table th { padding: 10px 15px; color: var(--muted); background: var(--surface-soft); font-size: 9px; font-weight: 800; letter-spacing: .045em; text-align: left; text-transform: uppercase; }
.ledger-table th:first-child { width: 44%; }
.ledger-table th:nth-child(2) { width: 12%; }
.ledger-table th:nth-child(3) { width: 17%; }
.ledger-table th:nth-child(4) { width: 14%; }
.ledger-table th:nth-child(5) { width: 13%; }
.ledger-table td { height: 50px; padding: 9px 15px; border-top: 1px solid var(--line-soft); color: var(--ink); font-size: 11px; vertical-align: middle; }
.ledger-table .virtual-list-spacer td { height: 0; border: 0; padding: 0; background: transparent; pointer-events: none; }
.ledger-table tbody tr:first-child td { border-top: 0; }
.ledger-table tbody tr:hover td { background: #fdfbf8; }
.task-row { cursor: pointer; }
.task-row:focus { outline: 0; }
.task-row:focus-visible td { background: var(--gold-soft); box-shadow: inset 0 2px 0 rgba(185,133,53,.42), inset 0 -2px 0 rgba(185,133,53,.42); }
.task-name { display: grid; gap: 3px; min-width: 0; }
.task-name strong { overflow: hidden; font-size: 11px; font-weight: 730; text-overflow: ellipsis; white-space: nowrap; }
.task-name small { color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.status-tag, .priority-tag { display: inline-flex; min-height: 24px; align-items: center; border-radius: 999px; padding: 0 8px; font-size: 9px; font-weight: 730; white-space: nowrap; }
.status-tag { color: var(--green-800); background: var(--green-100); }
.status-tag[data-group="started"] { color: var(--warning); background: var(--warning-bg); }
.status-tag[data-group="completed"] { color: var(--green-800); background: #e5f6eb; }
.status-tag[data-group="cancelled"] { color: var(--danger); background: var(--danger-bg); }
.priority-tag { color: var(--muted); background: var(--surface-soft); }
.priority-tag[data-priority="urgent"] { color: var(--danger); background: var(--danger-bg); }
.priority-tag[data-priority="high"] { color: var(--warning); background: var(--warning-bg); }
.table-loading { height: 180px !important; color: var(--muted) !important; text-align: center; }
.pagination-feedback { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #efc7c2; padding: 8px 16px; color: var(--danger); background: var(--danger-bg); }
.pagination-feedback p { margin: 0; font-size: 14px; font-weight: 680; line-height: 1.45; }
.pagination-feedback .button { flex: 0 0 auto; min-height: 40px; border-color: #e6b7b1; color: var(--danger); background: var(--surface); }
.load-recovery { display: grid; width: min(100%, 520px); min-height: 190px; align-content: center; justify-items: center; gap: 8px; margin: auto; padding: 24px; color: var(--muted); text-align: center; }
.load-recovery strong { color: var(--ink); font-size: 14px; }
.load-recovery p { max-width: 52ch; margin: 0 0 6px; line-height: 1.5; }
.load-recovery .button { min-width: 150px; }
.empty-state { display: grid; min-height: 270px; place-content: center; justify-items: center; gap: 8px; padding: 30px; text-align: center; }
.empty-state svg { width: 46px; height: 46px; fill: none; stroke: var(--green-700); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.empty-state h3 { margin: 6px 0 0; font-size: 14px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 11px; }

.queue-index { grid-column: 2; grid-row: 2; align-self: start; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.queue-index > header { padding: 18px 18px 12px; }
.queue-list { display: grid; }
.queue-entry { display: grid; min-height: 54px; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; border: 0; border-top: 1px solid var(--line-soft); padding: 7px 16px; background: transparent; text-align: left; cursor: pointer; }
.queue-entry:hover { background: var(--surface-soft); }
.queue-entry.is-active { background: var(--gold-soft); }
.queue-entry code { color: var(--green-800); font-family: ui-monospace, "Cascadia Mono", monospace; font-size: 10px; font-weight: 800; }
.queue-entry span { display: grid; gap: 2px; min-width: 0; }
.queue-entry strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.queue-entry small { color: var(--muted); font-size: 9px; }
.queue-entry b { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }

.task-view { min-height: 100vh; outline: 0; }
.task-page-loading { display: grid; min-height: 60vh; place-items: center; color: var(--muted); font-size: 12px; }
.task-page-shell { width: 100%; max-width: none; margin: 0; padding: 24px 30px 50px; }
.task-page-header { display: grid; gap: 28px; margin-bottom: 24px; }
.task-page-titleline { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.task-page-titleline .button { flex: 0 0 auto; }
.task-page-heading-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.task-page-shell.is-archived .task-page-keyline { color: var(--warning); }
.task-page-shell.is-archived .task-relation-remove { display: none; }
.task-page-shell.is-archived .task-attachments { background: var(--surface-soft); }
.back-button { display: inline-flex; width: max-content; min-height: 36px; align-items: center; gap: 7px; border: 0; border-radius: 10px; padding: 0 8px 0 4px; color: var(--green-700); background: transparent; font-size: 11px; font-weight: 760; cursor: pointer; }
.back-button:hover { color: var(--green-950); background: var(--green-100); }
.back-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.task-page-heading { display: grid; max-width: 900px; gap: 10px; }
.task-page-keyline { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.task-access-mode { padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: var(--surface-raised); font-weight: 700; }
.task-access-notice { width: fit-content; margin: 10px 0 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink-soft); background: var(--accent-soft); font-size: 12px; font-weight: 650; }
.task-page-shell.is-readonly :is(input, select, textarea, button):disabled { opacity: .58; cursor: not-allowed; filter: grayscale(.35); }
.task-page-heading h1 { max-width: 28ch; margin: 0; color: var(--ink); font-size: clamp(28px, 3.1vw, 42px); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.task-page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 24px; }
.task-page-main { display: grid; min-width: 0; gap: 18px; }
.task-content, .task-postmortem, .task-relations, .task-attachments, .task-worklog, .task-discussion, .task-history, .task-development-field--main, .task-sidebar { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.task-content, .task-postmortem, .task-relations, .task-attachments, .task-worklog, .task-discussion, .task-history { padding: 22px; }
.task-content h2, .task-postmortem h2, .task-relations h2, .task-attachments h2, .task-worklog h2, .task-discussion h2, .task-history h2, .task-sidebar h2 { margin: 0; font-size: 14px; line-height: 1.3; letter-spacing: -.01em; }
.task-postmortem { display: grid; gap: 14px; }
.task-postmortem[hidden] { display: none; }
.task-postmortem > header, .task-postmortem > header > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.task-postmortem > header > div { justify-content: flex-start; }
.task-postmortem > header span { border-radius: 999px; padding: 5px 8px; color: var(--green-800); background: var(--green-100); font-size: 10px; font-weight: 800; }
.task-postmortem-hint { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.task-postmortem form { display: grid; gap: 12px; }
.task-postmortem form > label, .postmortem-grid label, .postmortem-actions label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 760; }
.task-postmortem textarea, .task-postmortem select { width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 11px; color: var(--ink); background: #fff; font: inherit; resize: vertical; }
.task-postmortem :is(textarea,select):focus { outline: 3px solid var(--focus); border-color: var(--green-700); }
.postmortem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.postmortem-actions { display: grid; gap: 9px; margin: 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.postmortem-actions legend { padding: 0 5px; color: var(--ink); font-size: 11px; font-weight: 800; }
#postmortem-action-list { display: grid; gap: 6px; }
.postmortem-action-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 9px; padding: 9px 10px; background: var(--surface-soft); font-size: 11px; }
.postmortem-action-row span { color: var(--muted); }
.task-postmortem footer { display: flex; justify-content: flex-end; gap: 8px; }
.task-content p { max-width: 72ch; margin: 14px 0 0; color: #3e4944; font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.task-content-form { display: grid; gap: 14px; margin-top: 18px; }
.task-content-form[hidden] { display: none; }
.task-content-form label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.task-content-form :is(input, textarea) { width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); background: #fff; font: inherit; }
.task-content-form input { min-height: 42px; padding: 0 12px; }
.task-content-form textarea { min-height: 140px; padding: 11px 12px; line-height: 1.55; resize: vertical; }
.task-content-form :is(input, textarea):focus { outline: 3px solid var(--focus); border-color: var(--green-700); }
.task-content-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.task-content-actions .form-message { margin: 0 auto 0 0; }
.task-relations > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.task-relations > header > div:first-child { display: flex; align-items: center; gap: 9px; }
.task-relations > header > div:first-child > span { display: grid; min-width: 28px; min-height: 24px; place-items: center; border-radius: 999px; color: var(--green-800); background: var(--green-100); font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }
.task-relations-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.relation-form { display: grid; grid-template-columns: minmax(180px,.8fr) minmax(280px,1.5fr) auto; align-items: end; gap: 12px; margin-top: 16px; border-radius: 12px; padding: 14px; background: var(--surface-soft); }
.relation-form--create { grid-template-columns: minmax(220px,1.1fr) minmax(280px,1.6fr) 150px; }
.relation-form-heading { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; }
.relation-form-heading strong { font-size: 11px; }
.relation-form-heading span { color: var(--muted); font-size: 9px; }
.relation-form label { display: grid; min-width: 0; gap: 6px; color: var(--muted); font-size: 9px; font-weight: 760; }
.relation-form :is(input,select,textarea) { width: 100%; min-height: 38px; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; color: var(--ink); background: var(--surface); font: inherit; }
.relation-form textarea { min-height: 64px; resize: vertical; line-height: 1.45; }
.relation-form :is(input,select,textarea):focus { border-color: var(--gold); outline: 0; box-shadow: 0 0 0 3px rgba(185,133,53,.13); }
.relation-form-actions { display: flex; grid-column: 1 / -1; align-items: center; justify-content: flex-end; gap: 12px; }
.relation-form-actions .form-message { margin-right: auto; color: var(--danger); font-size: 9px; }
.relation-issue-field { position: relative; }
.relation-combobox-options { position: absolute; z-index: 20; top: 100%; right: 0; left: 0; display: grid; max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px; background: var(--surface); box-shadow: 0 14px 32px rgba(0,36,27,.16); }
.relation-combobox-options[hidden] { display: none; }
.relation-combobox-options [role="option"] { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px; width: 100%; min-height: 44px; align-items: center; border: 0; border-radius: 7px; padding: 7px 9px; color: var(--ink); background: transparent; text-align: left; }
.relation-combobox-options [role="option"] code { color: var(--green-700); font-size: 9px; font-weight: 800; }
.relation-combobox-options [role="option"] span { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.relation-combobox-options [role="option"]:hover, .relation-combobox-options [role="option"][aria-selected="true"] { background: var(--green-100); }
.relation-combobox-hint { margin: 0; padding: 9px; color: var(--muted); font-size: 9px; }
.task-relation-list { display: grid; margin-top: 14px; }
.task-relation-item { display: grid; grid-template-columns: minmax(0,1fr) minmax(270px,auto) auto; align-items: center; gap: 14px; min-height: 58px; border-top: 1px solid var(--line-soft); padding: 9px 0; }
.task-relation-main { display: grid; min-width: 0; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 10px; border: 0; padding: 0; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.task-relation-main:hover strong { color: var(--green-700); }
.task-relation-identity { display: grid; min-width: 0; gap: 3px; }
.task-relation-identity strong, .task-relation-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-relation-identity strong { font-size: 11px; }
.task-relation-identity small { color: var(--muted); font-size: 9px; }
.task-relation-meta { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.task-relation-meta .status-tag, .task-relation-meta .priority-tag { white-space: nowrap; }
.task-relation-meta .person-stack { flex: 0 0 auto; }
.task-relation-due { color: var(--ink-soft); font-size: 9px; font-weight: 720; white-space: nowrap; }
.task-relation-due.is-empty { color: var(--muted); font-weight: 620; }
.task-relation-remove { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 9px; padding: 0 9px; color: var(--muted); background: transparent; font: 720 9px/1 var(--font); cursor: pointer; }
.task-relation-remove:hover { border-color: var(--line); color: var(--danger); background: var(--danger-bg); }
.task-relation-remove svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.task-relations-empty { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.task-relations.is-empty { padding-block: 16px; }
.task-attachments { transition: border-color 160ms ease-out, background-color 160ms ease-out; }
.task-attachments.is-empty { padding-block: 14px; }
.task-attachments.is-dragging { border-color: var(--gold); background: var(--gold-soft); }
.task-attachments > header, .task-discussion > header, .task-history > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.attachment-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 16px; }
.attachment-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 12px; background: var(--surface-soft); }
.attachment-thumb::after { position: absolute; inset: 0; border: 1px solid rgba(23,33,29,.08); border-radius: inherit; content: ""; pointer-events: none; }
.attachment-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 180ms cubic-bezier(.2,.75,.25,1); }
.attachment-thumb:hover img { transform: scale(1.025); }
.attachment-file { display: grid; min-height: 92px; align-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; color: var(--green-950); background: var(--surface-soft); text-decoration: none; }
.attachment-file strong { width: max-content; border-radius: 6px; padding: 4px 7px; color: var(--green-800); background: var(--green-100); font-size: 10px; }
.attachment-file span { overflow: hidden; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.attachment-file:hover { border-color: var(--gold); }
.attachment-empty, .comment-empty { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.task-attachments .form-message, .task-discussion .form-message { color: var(--danger); }
.task-attachments .form-message:empty { display: none; }
.section-feedback { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 14px; margin: 14px 0 2px; border: 1px solid var(--line); border-radius: 11px; padding: 8px 10px 8px 12px; }
.section-feedback p { margin: 0; font-size: 14px; line-height: 1.45; }
.section-feedback.is-loading { color: var(--muted); background: var(--surface-soft); }
.section-feedback.is-error { border-color: #efc7c2; color: var(--danger); background: var(--danger-bg); }
.section-feedback.is-error .button { flex: 0 0 auto; min-height: 40px; border-color: #e6b7b1; color: var(--danger); background: var(--surface); }
.task-discussion > header > span, .task-history > header > span { display: grid; min-width: 28px; min-height: 24px; place-items: center; border-radius: 999px; color: var(--green-800); background: var(--green-100); font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }
.comment-list { display: grid; margin-top: 8px; }
.comment-item { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.comment-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: var(--green-950); background: var(--gold-soft); font-size: 10px; font-weight: 850; }
.comment-item > div { min-width: 0; }
.comment-item header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.comment-item header strong { font-size: 11px; }
.comment-access-badge { display: inline-flex; min-height: 20px; align-items: center; margin-left: 8px; border-radius: 999px; padding: 0 7px; color: var(--green-800); background: var(--green-100); font-size: 8px; font-weight: 780; }
.comment-access-badge.is-internal { color: var(--warning); background: var(--warning-bg); }
.comment-item time { color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.comment-item p { max-width: 72ch; margin: 8px 0 0; color: #3e4944; font-size: 12px; line-height: 1.65; white-space: pre-wrap; }
.comment-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 170px)); gap: 8px; margin-top: 12px; }
.comment-form { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.comment-form .form-message:empty { display: none; }
.comment-form textarea { width: 100%; min-height: 112px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; color: var(--ink); background: var(--surface); font-size: 12px; line-height: 1.55; caret-color: var(--green-700); }
.comment-form textarea:focus, .task-status-field select:focus { border-color: var(--gold); outline: 0; box-shadow: 0 0 0 3px rgba(185,133,53,.13); }
.comment-paste-hint { margin: -3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.comment-actions { display: grid; grid-template-columns: auto minmax(160px, auto) minmax(170px, auto) auto 1fr; align-items: center; gap: 10px; }
.comment-actions > .button--primary { justify-self: end; }
.comment-access select, .comment-mention select, .comment-quick-reply select { min-height: 36px; border: 1px solid var(--line); border-radius: 11px; padding: 0 32px 0 11px; color: var(--ink); background: var(--surface); font-size: 11px; font-weight: 700; cursor: pointer; }
.comment-access select:focus, .comment-mention select:focus, .comment-quick-reply select:focus { border-color: var(--gold); outline: 0; box-shadow: 0 0 0 3px rgba(185,133,53,.13); }
.comment-pending-images { display: flex; flex-wrap: wrap; gap: 7px; }
.comment-pending-images span { display: inline-flex; min-height: 28px; max-width: 100%; align-items: center; gap: 7px; border-radius: 999px; padding: 0 6px 0 10px; color: var(--green-800); background: var(--green-100); font-size: 10px; }
.comment-pending-images button { display: grid; width: 20px; height: 20px; place-items: center; border: 0; border-radius: 50%; color: var(--green-800); background: rgba(0,70,51,.08); cursor: pointer; }
.status-history-list { display: grid; margin-top: 14px; }
.status-history-item { position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; min-height: 48px; padding: 5px 0 13px; }
.status-history-item:not(:last-child)::before { position: absolute; top: 16px; bottom: -5px; left: 5px; width: 1px; background: var(--line); content: ""; }
.status-history-marker { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 2px; border: 3px solid var(--green-100); border-radius: 50%; background: var(--green-700); }
.status-history-item > div { display: grid; gap: 5px; }
.status-history-item strong { color: var(--ink); font-size: 11px; font-weight: 720; }
.status-history-item div span { color: var(--muted); font-size: 9px; }
.status-history-item .status-history-detail { color: var(--ink-soft); line-height: 1.45; }
.status-history-empty { margin: 16px 0 0; color: var(--muted); font-size: 11px; }
.task-sidebar { position: sticky; top: 24px; max-height: calc(100dvh - 48px); overflow-x: hidden; overflow-y: auto; scrollbar-color: var(--green-300) transparent; scrollbar-width: thin; }
.task-sidebar-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-soft); padding: 18px 18px 14px; }
.task-sidebar-heading h2 { padding: 0; border: 0; }
.task-sidebar-heading span { color: var(--muted); font-size: 8px; }
.task-status-field { display: grid; gap: 7px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); }
.task-status-field > span, .task-control-field > span, .task-field-list dt { color: var(--muted); font-size: 9px; font-weight: 780; letter-spacing: .04em; text-transform: uppercase; }
.task-status-field select, .task-control-field :is(select,input) { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 11px; padding: 0 34px 0 11px; color: var(--ink); background: var(--surface); font-size: 11px; font-weight: 720; cursor: pointer; }
.task-control-field input[type="date"] { padding-right: 10px; font-variant-numeric: tabular-nums; }
.task-status-field select:hover, .task-control-field :is(select,input):hover { border-color: var(--green-300); }
.task-status-field select:disabled, .task-control-field :is(select,input):disabled { cursor: not-allowed; opacity: .62; }
.task-primary-fields, .task-edit-fields { display: grid; border-bottom: 1px solid var(--line-soft); }
.task-secondary-fields { border-bottom: 1px solid var(--line-soft); }
.task-secondary-fields > summary { position: relative; display: grid; min-height: 58px; gap: 4px; padding: 12px 38px 12px 18px; list-style: none; cursor: pointer; }
.task-secondary-fields > summary::-webkit-details-marker { display: none; }
.task-secondary-fields > summary::after { position: absolute; top: 21px; right: 20px; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); content: ""; transform: rotate(45deg); transition: transform 150ms ease-out; }
.task-secondary-fields[open] > summary::after { transform: translateY(3px) rotate(225deg); }
.task-secondary-fields > summary span { color: var(--green-800); font-size: 10px; font-weight: 800; }
.task-secondary-fields > summary strong { color: var(--muted); font-size: 9px; font-weight: 650; }
.task-secondary-fields .task-edit-fields { border-top: 1px solid var(--line-soft); border-bottom: 0; background: var(--surface-soft); }
.task-itsm-field { display: grid; gap: 10px; border-bottom: 1px solid var(--line-soft); padding: 14px 18px; background: var(--surface-soft); }
.task-itsm-field > header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.task-itsm-field h3 { margin: 0; color: var(--green-800); font-size: 11px; }
.task-itsm-field header span { color: var(--muted); font-size: 9px; }
.task-itsm-field form, .task-itsm-field fieldset { display: grid; gap: 10px; }
.task-itsm-field fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
.task-itsm-field legend { margin-bottom: 2px; padding: 0; color: var(--muted); font-size: 9px; font-weight: 780; letter-spacing: .04em; text-transform: uppercase; }
.task-itsm-field fieldset > div:not(.task-change-approval) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.task-itsm-field label { display: grid; min-width: 0; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 760; }
.task-itsm-field :is(input:not([type="checkbox"]),select,textarea) { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; color: var(--ink); background: var(--surface); font: inherit; font-size: 11px; outline: 0; }
.task-itsm-field select, .task-itsm-field input:not([type="checkbox"]) { padding-block: 0; }
.task-itsm-field textarea { resize: vertical; line-height: 1.45; }
.task-itsm-field :is(input,select,textarea):focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(185,133,53,.13); }
.task-itsm-field .native-check { display: flex; min-height: 38px; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; color: var(--ink); background: var(--surface); font-size: 10px; }
.task-itsm-field .native-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--green-700); }
.task-change-approval { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.task-change-approval > strong { color: var(--green-800); font-size: 11px; }
.task-change-approval > span { color: var(--muted); font-size: 9px; line-height: 1.4; }
.task-change-approval > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.task-itsm-field form > .button { width: 100%; }
.task-control-field { display: grid; gap: 7px; padding: 12px 18px; border-bottom: 1px solid var(--line-soft); }
.task-control-field:last-child { border-bottom: 0; }
.task-control-field :is(select,input):focus { border-color: var(--gold); outline: 0; box-shadow: 0 0 0 3px rgba(185,133,53,.13); }
.task-requester-field { display: grid; gap: 10px; border-bottom: 1px solid var(--line-soft); padding: 14px 18px; }
.task-service-field { display: grid; gap: 8px; border-bottom: 1px solid var(--line-soft); padding: 14px 18px; }
.task-service-field header { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.task-service-field h3 { margin: 0; color: var(--green-800); font-size: 10px; }
.task-service-field header span { color: var(--muted); font-size: 9px; }
.task-service-field > strong { font-size: 12px; }
.task-service-field dl { display: grid; gap: 0; margin: 0; }
.task-service-field dl div { display: grid; min-height: 32px; grid-template-columns: minmax(90px,.8fr) minmax(0,1.2fr); align-items: center; gap: 9px; border-top: 1px solid var(--line-soft); font-size: 9px; }
.task-service-field dt { color: var(--muted); }.task-service-field dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.task-requester-field h3 { margin: 0; color: var(--green-800); font-size: 10px; letter-spacing: .02em; }
.task-requester-card { display: grid; gap: 4px; border-radius: 10px; padding: 10px 11px; background: var(--surface-soft); }
.task-requester-card strong { font-size: 11px; }
.task-requester-card span { overflow-wrap: anywhere; color: var(--muted); font-size: 9px; }
.task-requester-card a { width: fit-content; color: var(--green-700); font-size: 9px; font-weight: 760; text-underline-offset: 3px; }
.task-requester-field .task-control-field { padding: 0; border: 0; }
.task-requester-field .form-message { min-height: 12px; margin: -3px 0 0; color: var(--green-700); font-size: 9px; }
.task-requester-field .form-message.is-error { color: var(--danger); }
.task-person-picker { border-bottom: 1px solid var(--line-soft); }
.task-sidebar > .section-feedback { margin: 12px 12px 0; }
.task-person-picker summary { position: relative; display: grid; gap: 5px; padding: 12px 38px 12px 18px; list-style: none; cursor: pointer; }
.task-person-picker summary::-webkit-details-marker { display: none; }
.task-person-picker summary::after { position: absolute; top: 19px; right: 20px; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); content: ""; transform: rotate(45deg); transition: transform 150ms ease-out; }
.task-person-picker[open] summary::after { transform: translateY(3px) rotate(225deg); }
.task-person-picker summary > span { color: var(--muted); font-size: 9px; font-weight: 780; letter-spacing: .04em; text-transform: uppercase; }
.task-person-picker summary > strong { overflow: hidden; color: var(--ink); font-size: 11px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.person-options { display: grid; max-height: 220px; overflow-y: auto; border-top: 1px solid var(--line-soft); padding: 6px; background: var(--surface-soft); }
.person-option { display: grid; min-height: 44px; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 9px; border-radius: 9px; padding: 8px 10px; cursor: pointer; }
.person-option:hover { background: var(--surface); }
.person-option input { width: 15px; height: 15px; margin: 0; accent-color: var(--green-700); }
.person-option > span { display: grid; min-width: 0; gap: 2px; }
.person-option strong, .person-option small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-option strong { font-size: 10px; }
.person-option small { color: var(--muted); font-size: 8px; }
.person-options-empty { margin: 8px 10px; color: var(--muted); font-size: 10px; }
.person-picker-actions { display: flex; min-height: 50px; align-items: center; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line-soft); padding: 8px 10px; }
.person-picker-actions .form-message { margin-right: auto; color: var(--danger); font-size: 9px; }
.task-multi-picker { border-bottom: 1px solid var(--line-soft); }
.task-multi-picker summary { position: relative; display: grid; gap: 5px; min-height: 58px; padding: 12px 38px 12px 18px; list-style: none; cursor: pointer; }
.task-multi-picker summary::-webkit-details-marker { display: none; }
.task-multi-picker summary::after { position: absolute; top: 22px; right: 20px; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); content: ""; transform: rotate(45deg); transition: transform 150ms ease-out; }
.task-multi-picker[open] summary::after { transform: translateY(3px) rotate(225deg); }
.task-multi-picker summary > span { color: var(--muted); font-size: 9px; font-weight: 780; letter-spacing: .04em; text-transform: uppercase; }
.task-multi-picker summary > strong { overflow: hidden; color: var(--ink); font-size: 11px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.task-option-list, .task-subtask-list { display: grid; max-height: 240px; overflow-y: auto; border-top: 1px solid var(--line-soft); padding: 6px; background: var(--surface-soft); }
.task-option { display: grid; min-height: 44px; grid-template-columns: 18px 10px minmax(0,1fr); align-items: center; gap: 9px; border-radius: 9px; padding: 8px 10px; font-size: 10px; cursor: pointer; }
.task-option:hover { background: var(--surface); }
.task-option input { width: 15px; height: 15px; margin: 0; accent-color: var(--green-700); }
.task-option i { width: 9px; height: 9px; border-radius: 3px; background: var(--label-color); }
.task-option.is-inactive { color: var(--muted); }
.task-option.is-inactive:has(input:disabled) { cursor: default; }
.task-option.is-inactive small { grid-column: 3 / -1; margin-top: -5px; color: var(--warning); font-size: 8px; font-weight: 700; }
.task-options-empty, .task-subtask-list > p { margin: 8px 10px; color: var(--muted); font-size: 10px; }
.task-picker-actions { display: flex; min-height: 50px; align-items: center; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line-soft); padding: 8px 10px; }
.task-picker-actions .form-message { margin-right: auto; color: var(--green-700); font-size: 9px; }
.task-picker-actions .form-message.is-error { color: var(--danger); }
.task-subtask-link { display: grid; min-height: 48px; gap: 3px; border: 0; border-radius: 9px; padding: 8px 10px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.task-subtask-link:hover { background: var(--surface); }
.task-subtask-link span { color: var(--green-700); font-size: 8px; font-weight: 800; }
.task-subtask-link strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.task-subtask-actions { display: flex; justify-content: flex-end; border-top: 1px solid var(--line-soft); padding: 8px 10px; }
.task-subtask-form { display: grid; gap: 10px; border-top: 1px solid var(--line-soft); padding: 12px 10px; background: var(--surface-soft); }
.task-subtask-form[hidden] { display: none; }
.task-subtask-form > label, .task-subtask-form > div > label { display: grid; min-width: 0; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 760; }
.task-subtask-form > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.task-subtask-form input, .task-subtask-form select { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; color: var(--ink); background: var(--surface); font: inherit; }
.task-subtask-form input:focus-visible, .task-subtask-form select:focus-visible { border-color: var(--gold); outline: 2px solid color-mix(in srgb, var(--gold) 28%, transparent); outline-offset: 1px; }
.task-subtask-form .form-message { min-height: 14px; margin: 0; color: var(--danger); font-size: 9px; line-height: 1.4; }
.task-subtask-form footer { display: flex; justify-content: flex-end; gap: 8px; }
.task-development-field { border-bottom: 1px solid var(--line-soft); }
.task-development-field--main { overflow: hidden; border-bottom: 1px solid var(--line); }
.task-delivery-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 18px 0; }
.task-development-field--main .task-delivery-heading { padding: 18px 22px 0; }
.task-development-field--main .task-delivery-heading > div { display: flex; align-items: center; gap: 10px; }
.task-development-field--main .task-delivery-heading h2 { font-size: 15px; }
.task-development-field h3 { margin: 0; color: var(--green-800); font-size: 11px; letter-spacing: .01em; }
.task-delivery-summary { margin: 7px 18px 12px; color: var(--ink-soft); font-size: 9px; line-height: 1.45; }
.task-delivery-trace { border-top: 1px solid var(--line-soft); }
.delivery-section { border-bottom: 1px solid var(--line-soft); }
.delivery-section h4 { display: flex; min-height: 31px; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 0 18px; color: var(--muted); background: var(--surface-soft); font-size: 9px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.delivery-section h4 span { min-width: 20px; border-radius: 999px; padding: 2px 6px; color: var(--green-800); background: var(--green-100); text-align: center; font-size: 9px; font-variant-numeric: tabular-nums; }
.delivery-list { display: grid; }
.delivery-item { position: relative; display: grid; min-width: 0; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 4px 8px; padding: 9px 18px; border-top: 1px solid var(--line-soft); }
.delivery-item:first-child { border-top: 0; }
.delivery-item-title { min-width: 0; color: var(--ink); font-size: 10px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
a.delivery-item-title { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a.delivery-item-title:hover { color: var(--green-950); }
a.delivery-item-title:focus-visible { border-radius: 3px; outline: 2px solid var(--gold); outline-offset: 2px; }
.delivery-item code { justify-self: end; color: var(--ink-soft); font-family: ui-monospace, "Cascadia Mono", monospace; font-size: 9px; }
.delivery-commit-link { justify-self: end; color: var(--green-700); font-family: ui-monospace, "Cascadia Mono", monospace; font-size: 10px; font-weight: 760; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.delivery-commit-link:hover { color: var(--green-950); }
.delivery-commit-link:focus-visible { border-radius: 3px; outline: 2px solid var(--gold); outline-offset: 2px; }
.delivery-item-meta { grid-column: 1 / -1; color: var(--muted); font-size: 9px; line-height: 1.35; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.delivery-state { display: inline-flex; min-height: 21px; align-items: center; border-radius: 999px; padding: 0 7px; color: var(--muted); background: var(--surface-soft); font-size: 9px; font-weight: 790; white-space: nowrap; }
.delivery-state.is-success { color: var(--green-800); background: var(--green-100); }
.delivery-state.is-active { color: var(--warning); background: var(--warning-bg); }
.delivery-state.is-danger { color: var(--danger); background: var(--danger-bg); }
.delivery-empty { margin: 0; padding: 8px 18px; color: var(--muted); font-size: 9px; }
.task-commit-field { display: grid; grid-template-columns: minmax(150px,.7fr) minmax(240px,1.4fr) auto; align-items: end; gap: 8px; border-top: 1px solid var(--line-soft); padding: 14px 22px 16px; background: var(--surface-soft); }
.task-commit-field[hidden] { display: none; }
.task-commit-field > label { display: grid; min-width: 0; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 780; }
.task-commit-field :is(input,select) { width: 100%; min-width: 0; height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 9px; background: var(--surface); color: var(--ink); font: 650 12px/1 var(--font); }
.task-commit-field input { font-variant-numeric: tabular-nums; }
.task-commit-field :is(input,select):focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.task-commit-field .form-message { grid-column: 1 / -1; min-height: 0; margin: 0; }
.task-commit-field .form-message:empty { display: none; }
.task-field-list { display: grid; margin: 0; }
.task-field-list > div { display: grid; gap: 5px; padding: 12px 18px; border-bottom: 1px solid var(--line-soft); }
.task-field-list > div:last-child { border-bottom: 0; }
.task-field-list dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 11px; font-weight: 680; }
.task-field-list--readonly { background: var(--surface-soft); }
.task-field-list--readonly dd { color: var(--ink-soft); font-weight: 620; }
.task-service-heading { margin: 0; border-top: 1px solid var(--line-soft); padding: 14px 18px 10px; color: var(--green-800); background: var(--surface-soft); font-size: 10px; letter-spacing: .02em; }

.task-flow-metrics { border-bottom: 1px solid var(--line-soft); padding: 12px 18px; background: var(--surface-soft); }
.task-flow-metrics h3 { margin: 0 0 8px; color: var(--green-800); font-size: 10px; }
.task-flow-metrics dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.task-flow-metrics dl div { display: grid; gap: 2px; }
.task-flow-metrics dt { color: var(--muted); font-size: 8px; }.task-flow-metrics dd { margin: 0; font-size: 11px; font-weight: 760; font-variant-numeric: tabular-nums; }
.task-on-call { display: grid; gap: 5px; border-bottom: 1px solid var(--line-soft); padding: 12px 18px; background: var(--surface-soft); }
.task-on-call h3 { margin: 0; color: var(--green-800); font-size: 10px; }
.task-on-call strong { font-size: 11px; }
.task-on-call > span { color: var(--muted); font-size: 9px; line-height: 1.4; }
.task-on-call .button { width: 100%; margin-top: 3px; }
.task-on-call .form-message { min-height: 0; margin: 0; font-size: 9px; }
.task-worklog > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.task-worklog > header > div { display: flex; align-items: baseline; gap: 9px; }.task-worklog > header span { color: var(--green-700); font-size: 10px; font-weight: 800; }
.worklog-summary { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; color: var(--muted); font-size: 9px; }
.worklog-summary > span { border-radius: 999px; padding: 5px 8px; color: var(--green-800); background: var(--green-100); font-weight: 700; }
.worklog-list { display: grid; margin-top: 12px; border-top: 1px solid var(--line-soft); }
.worklog-row { display: grid; min-height: 56px; grid-template-columns: minmax(150px,.45fr) minmax(0,1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-soft); padding: 8px 0; }
.worklog-row > div { display: grid; gap: 3px; }.worklog-row strong { font-size: 10px; }.worklog-row span { color: var(--muted); font-size: 8px; font-variant-numeric: tabular-nums; }
.worklog-row p { margin: 0; color: var(--ink-soft); font-size: 10px; line-height: 1.45; }.worklog-remove { min-height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 9px; color: var(--danger); background: var(--surface); font-size: 9px; font-weight: 700; cursor: pointer; }
.worklog-remove:hover { background: var(--danger-bg); }.worklog-remove:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.worklog-empty { margin: 14px 0 0; color: var(--muted); font-size: 10px; }
.worklog-form { display: grid; grid-template-columns: 150px 120px minmax(180px,1fr) auto; align-items: end; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.worklog-form label { display: grid; gap: 5px; color: var(--muted); font-size: 8px; font-weight: 780; }.worklog-form input { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; color: var(--ink); background: var(--surface); font-size: 10px; }
.worklog-form input:focus-visible { border-color: var(--gold); outline: 2px solid rgba(185,133,53,.18); outline-offset: 1px; }.worklog-form .form-message { grid-column: 1 / -1; min-height: 0; margin: 0; color: var(--danger); font-size: 9px; }
.worklog-form .form-message:empty { display: none; }

.confirm-dialog { width: min(460px, calc(100vw - 28px)); border: 0; border-radius: 16px; padding: 0; color: var(--ink); background: var(--surface); box-shadow: 0 24px 70px rgba(11,35,27,.28); }
.confirm-dialog::backdrop { background: rgba(0,36,27,.48); }
.confirm-dialog form { display: grid; gap: 12px; padding: 24px; }
.confirm-dialog-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: var(--danger); background: var(--danger-bg); }
.confirm-dialog-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.confirm-dialog h2 { margin: 4px 0 0; font-size: 20px; letter-spacing: -.02em; }
.confirm-dialog > form > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.confirm-dialog-task { display: grid; gap: 4px; border-radius: 11px; padding: 11px 12px; background: var(--surface-soft); }
.confirm-dialog-task span { color: var(--green-700); font-size: 9px; font-weight: 820; }
.confirm-dialog-task strong { font-size: 11px; }
.confirm-dialog .form-message { min-height: 14px; color: var(--danger); font-size: 10px; }
.confirm-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.button--danger { border-color: var(--danger); color: #fff; background: var(--danger); }
.button--danger:hover { filter: brightness(.92); }

.ticket-panel { position: fixed; inset: 0 0 0 auto; z-index: 50; width: min(460px, 100vw); overflow-y: auto; padding: 26px; background: var(--surface); box-shadow: -20px 0 50px rgba(27,35,31,.15); animation: panel-in 220ms cubic-bezier(.16,1,.3,1); }
@keyframes panel-in { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
.ticket-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.ticket-panel header > div { display: grid; gap: 10px; }
.ticket-panel h2 { margin: 0; font-size: 25px; letter-spacing: -.025em; }
.ticket-panel > p { margin: 14px 0 25px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.icon-button { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); cursor: pointer; }
.icon-button:hover { background: var(--surface-soft); }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.ticket-panel form { display: grid; gap: 8px; }
.ticket-panel label { margin-top: 10px; color: var(--ink); font-size: 11px; font-weight: 760; }
.ticket-panel :is(input, textarea, select) { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; color: var(--ink); background: var(--surface); caret-color: var(--green-700); }
.ticket-panel :is(input, textarea, select):focus { border-color: var(--gold); outline: 0; box-shadow: 0 0 0 3px rgba(185,133,53,.13); }
.ticket-panel textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.ticket-panel .form-message { color: var(--danger); }
.ticket-panel .form-message.is-success { color: var(--green-700); }
.panel-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 12px; }
.panel-scrim { position: fixed; inset: 0; z-index: 45; border: 0; background: rgba(0,36,27,.38); cursor: default; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 70; max-width: 420px; padding: 13px 16px; border-radius: 12px; color: #fff; background: var(--green-900); box-shadow: var(--shadow); font-size: 12px; font-weight: 700; pointer-events: none; }

@media (max-width: 1120px) {
  :root { --sidebar: 216px; }
  .dashboard { grid-template-columns: 1fr; }
  .situation, .support-control, .queue-ledger, .queue-index { grid-column: 1; grid-row: auto; }
  .support-control { display: grid; grid-template-columns: 190px 1fr; gap: 16px; }
  .support-control > header { align-content: start; }
  .support-rule { grid-column: 1 / -1; }
  .queue-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .queue-entry:nth-child(2) { border-top: 1px solid var(--line-soft); }
  .task-page-grid { grid-template-columns: minmax(0, 1fr) 270px; }
}

@media (max-width: 900px) {
  .task-page-grid { grid-template-columns: 1fr; }
  .task-sidebar { position: static; grid-row: 1; max-height: none; overflow: visible; }
  .task-page-main { grid-row: 2; }
  .task-view .button, .task-view select, .task-view input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) { min-height: 44px; }
}

@media (max-width: 780px) {
  :root { --sidebar: 72px; }
  .button, .nav-item { min-height: 44px; }
  .sidebar { padding-inline: 10px; }
  .sidebar .brand-lockup > span:last-child { display: none; }
  .nav-item:not(.is-active) .nav-count, .nav-item { font-size: 0; }
  .sidebar .brand-lockup { justify-content: center; padding-inline: 0; }
  .nav-item { display: grid; grid-template-columns: 1fr; justify-items: center; padding: 0; }
  .nav-item svg { width: 21px; height: 21px; }
  .nav-item.is-active::after { display: none; }
  .nav-count { position: absolute; margin: -28px 0 0 30px; font-size: 8px; }
  .user-identity { grid-template-columns: 1fr; justify-items: center; }
  .user-identity div { display: none; }
  .sidebar-foot { padding-inline: 0; text-align: center; }
  .topbar { min-height: 78px; padding: 15px 18px; }
  .topbar p, .system-state { display: none; }
  .topbar h1 { font-size: 20px; }
  .topbar .button { width: 44px; min-height: 44px; padding: 0; font-size: 0; }
  .topbar .button svg { width: 20px; height: 20px; }
  .dashboard { padding: 18px; }
  .metric-strip { grid-template-columns: 1fr 1fr; gap: 0; padding-inline: 18px; }
  .metric-strip article { padding: 10px 12px; }
  .metric-strip article:nth-child(3) { border-left: 0; }
  .support-control { display: block; }
  .ledger-head { align-items: flex-start; flex-direction: column; }
  .search-field { width: 100%; }
  .saved-view-control { width: 100%; flex-wrap: wrap; }
  .saved-view-control select { min-width: 0; min-height: 44px; flex: 1 1 100%; }
  .saved-view-control .button { min-height: 44px; flex: 1; }
  .queue-list { grid-template-columns: 1fr; }
  .auth-shell { padding: 24px; }
  .auth-brand { top: 24px; left: 24px; }
  .auth-panel { width: min(100%, 360px); }
  .task-page-shell { padding: 20px 18px 40px; }
  .task-page-header { gap: 22px; }
  .task-page-grid { grid-template-columns: 1fr; }
  .task-sidebar { position: static; max-height: none; overflow: visible; }
  .delivery-item { min-height: 44px; }
  .task-commit-field { grid-template-columns: 1fr; }
  .task-commit-field .button { min-height: 44px; }
  .relation-form, .relation-form--create { grid-template-columns: 1fr; }
  .relation-form-heading, .relation-form-actions { grid-column: 1; }
  .relation-form-heading { align-items: flex-start; flex-direction: column; }
  .task-relation-item { grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
  .task-relation-meta { grid-column: 1; justify-content: flex-start; flex-wrap: wrap; padding-left: 60px; }
  .task-relation-remove { grid-column: 2; grid-row: 1 / span 2; width: 44px; padding: 0; }
  .task-relation-remove span { display: none; }
  .task-subtask-form > div { grid-template-columns: 1fr; }
  .task-subtask-form input, .task-subtask-form select { min-height: 44px; }
}

@media (max-width: 520px) {
  .dashboard { padding: 12px; }
  .situation > header { padding: 17px 16px 10px; }
  .metric-strip { padding: 5px 16px 17px; }
  .metric-strip strong { font-size: 25px; }
  .ticket-panel { padding: 20px; }
  .task-page-shell { padding: 16px 12px 32px; }
  .task-page-titleline { align-items: stretch; flex-direction: column; }
  .task-page-heading-actions { justify-content: flex-start; }
  .task-page-keyline { flex-wrap: wrap; }
  .task-page-heading h1 { font-size: 28px; }
  .task-content, .task-postmortem, .task-relations, .task-attachments, .task-worklog, .task-discussion, .task-history { padding: 18px; }
  .postmortem-grid { grid-template-columns: 1fr; }
  .task-postmortem footer { align-items: stretch; flex-direction: column-reverse; }
  .task-relations > header { align-items: stretch; flex-direction: column; }
  .task-relations-actions { justify-content: stretch; }
  .task-relations-actions .button { flex: 1; }
  .relation-form, .relation-form--create { grid-template-columns: 1fr; }
  .relation-form-heading, .relation-form-actions { grid-column: 1; }
  .relation-form-heading { align-items: flex-start; flex-direction: column; }
  .attachment-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comment-item { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
  .comment-avatar { width: 30px; height: 30px; border-radius: 9px; }
  .comment-item header { align-items: flex-start; flex-direction: column; gap: 3px; }
  .comment-actions { align-items: stretch; flex-direction: column; }
  .comment-actions { display: flex; }
  .comment-access select, .comment-mention select, .comment-quick-reply select { width: 100%; }
  .comment-actions .button { width: 100%; }
  .toast { right: 12px; bottom: 12px; left: 84px; }
  .confirm-dialog form { padding: 20px; }
  .confirm-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .confirm-dialog-actions .button { width: 100%; }
}

/* Полноэкранное рабочее место: список, канбан и Гант */
:root { --sidebar: 218px; --topbar: 72px; }
.sidebar { padding: 18px 12px 14px; }
.sidebar .brand-lockup { padding: 0 8px 18px; }
.primary-nav { margin-top: 14px; }
.nav-item--settings { margin-top: 10px; border-top: 1px solid rgba(255,255,255,.1); border-radius: 0 0 11px 11px; }
.topbar { position: sticky; top: 0; z-index: 15; min-height: var(--topbar); padding: 12px 18px; }
.topbar h1 { font-size: 21px; }
.dashboard { width: 100%; max-width: none; margin: 0; padding: 14px 16px 18px; gap: 14px; grid-template-columns: minmax(0,1fr) 260px; }
.dashboard.is-queue-view { height: calc(100dvh - var(--topbar)); grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr); padding: 0; }
.dashboard.is-queue-view :is(.situation,.support-control,.queue-index) { display: none; }
.dashboard.is-queue-view .queue-ledger { grid-column: 1; grid-row: 1; height: 100%; border: 0; border-radius: 0; }
.dashboard.is-queue-view .ledger-table-wrap { height: calc(100dvh - var(--topbar) - 139px); overflow: auto; }
.dashboard.is-queue-view :is(.kanban-board,.gantt-view) { height: calc(100dvh - var(--topbar) - 139px); }
.queue-ledger { grid-column: 1; min-width: 0; }
.ledger-head { min-height: 66px; padding: 12px 16px; }
.ledger-head p { display: flex; align-items: center; gap: 7px; }
#result-count { display: inline-grid; min-width: 25px; height: 20px; place-items: center; border-radius: 999px; color: var(--green-800); background: var(--green-100); font-size: 9px; font-variant-numeric: tabular-nums; }
.workbench-toolbar { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; overflow-x: auto; border-bottom: 1px solid var(--line); padding: 9px 14px; background: var(--surface); }
.kanban-settings-button { flex: 0 0 auto; margin-right: auto; }
.view-switch { display: inline-flex; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 11px; padding: 3px; background: var(--surface-soft); }
.view-switch button { display: inline-flex; min-height: 32px; align-items: center; gap: 6px; border: 0; border-radius: 8px; padding: 0 10px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 760; cursor: pointer; }
.view-switch button:hover { color: var(--ink); }
.view-switch button.is-active { color: #fff; background: var(--green-800); }
.view-switch button:disabled { cursor: not-allowed; opacity: .45; }
.view-switch svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.75; }
.archive-toggle { flex: 0 0 auto; }
.archive-toggle.is-active { border-color: var(--gold); color: var(--green-950); background: var(--gold-soft); }
.archive-toggle:disabled { cursor: not-allowed; }
.filter-strip { display: flex; min-width: max-content; align-items: end; gap: 7px; }
.filter-strip label { display: grid; gap: 3px; }
.filter-strip label > span { color: var(--muted); font-size: 8px; font-weight: 780; letter-spacing: .035em; text-transform: uppercase; }
.filter-strip select { min-width: 124px; height: 32px; border: 1px solid var(--line); border-radius: 9px; padding: 0 28px 0 9px; color: var(--ink); background: var(--surface); font-size: 10px; font-weight: 650; }
.filter-strip select:focus { border-color: var(--gold); outline: 0; box-shadow: 0 0 0 3px rgba(185,133,53,.13); }
.filter-reset { height: 32px; border: 0; padding: 0 8px; color: var(--green-700); background: transparent; font-size: 9px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bulk-bar { position: fixed; z-index: 24; right: 16px; bottom: 16px; left: calc(var(--sidebar) + 16px); display: flex; min-height: 64px; align-items: center; gap: 10px; border: 1px solid rgba(240,207,145,.42); border-radius: 14px; padding: 9px 10px 9px 14px; color: #fff; background: var(--green-950); box-shadow: 0 16px 38px rgba(0,38,28,.24); }
.bulk-selection-summary { display: grid; min-width: 136px; gap: 2px; }
.bulk-selection-summary strong { font-size: 11px; font-variant-numeric: tabular-nums; }
.bulk-clear { width: max-content; border: 0; padding: 0; color: var(--gold-light); background: transparent; font-size: 9px; font-weight: 720; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bulk-clear:disabled { cursor: wait; opacity: .55; }
.bulk-field { display: grid; min-width: 180px; gap: 3px; }
.bulk-field > span { color: rgba(255,255,255,.7); font-size: 8px; font-weight: 780; letter-spacing: .035em; text-transform: uppercase; }
.bulk-field select { width: 100%; height: 38px; border: 1px solid rgba(255,255,255,.22); border-radius: 9px; padding: 0 30px 0 10px; color: var(--ink); background: var(--surface); font-size: 10px; font-weight: 650; }
.bulk-field select:focus { border-color: var(--gold-light); outline: 3px solid rgba(240,207,145,.2); outline-offset: 1px; }
.bulk-field select:disabled { cursor: not-allowed; opacity: .58; }
.bulk-restriction { min-width: 0; flex: 1; margin: 0; color: rgba(255,255,255,.76); font-size: 9px; line-height: 1.4; }
.bulk-apply { flex: 0 0 auto; min-height: 40px; color: var(--green-950); background: var(--gold-light); }
.bulk-apply:hover { background: #f6dca9; }
.bulk-apply:disabled { cursor: not-allowed; opacity: .5; }
.selection-column { width: 48px !important; padding-right: 4px !important; padding-left: 8px !important; }
.selection-control { position: relative; display: grid; width: 34px; height: 34px; place-items: center; cursor: pointer; }
.selection-control input { position: absolute; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.selection-control span { display: block; width: 17px; height: 17px; border: 1px solid #b8c0bb; border-radius: 5px; pointer-events: none; background: var(--surface); }
.selection-control input:checked + span { border-color: var(--green-700); background: var(--green-700); }
.selection-control input:checked + span::after { display: block; width: 7px; height: 4px; margin: 4px 0 0 4px; border-bottom: 2px solid #fff; border-left: 2px solid #fff; transform: rotate(-45deg); content: ""; }
.selection-control input:indeterminate + span { border-color: var(--green-700); background: var(--green-700); }
.selection-control input:indeterminate + span::after { display: block; width: 7px; height: 2px; margin: 7px 0 0 4px; background: #fff; content: ""; }
.selection-control input:focus-visible + span { outline: 3px solid rgba(185,133,53,.22); outline-offset: 2px; }
.task-row.is-selected td { background: #f1f8f4; }
.task-row.is-selected:hover td { background: #e8f4ed; }
.ledger-table { min-width: 1630px; table-layout: fixed; }
.ledger-table thead { position: sticky; top: 0; z-index: 2; }
.ledger-table th:nth-child(2) { width: 29%; }
.ledger-table th:nth-child(3) { width: 7%; }
.ledger-table th:nth-child(4) { width: 11%; }
.ledger-table th:nth-child(5) { width: 9%; }
.ledger-table th:nth-child(6) { width: 13%; }
.ledger-table th:nth-child(7) { width: 8%; }
.ledger-table th:nth-child(8) { width: 11%; }
.ledger-table th:nth-child(9), .ledger-table th:nth-child(10) { width: 8%; }
.ledger-table th:nth-child(11) { width: 8%; }
.ledger-table td { height: 46px; padding: 7px 12px; }
.task-row { content-visibility: auto; contain-intrinsic-size: 46px; }
.task-name { grid-template-columns: 74px minmax(0,1fr); align-items: center; gap: 8px; }
.task-name small { grid-column: 1; grid-row: 1; }
.task-name strong { grid-column: 2; grid-row: 1; }
.cell-empty { color: #9aa29e; font-size: 10px; }
.label-stack { display: flex; min-width: 0; align-items: center; gap: 4px; }
.label-chip { position: relative; display: inline-flex; min-width: 0; max-width: 112px; min-height: 22px; align-items: center; overflow: hidden; border-radius: 7px; padding: 0 7px 0 15px; color: #3d4843; background: var(--surface-soft); font-size: 8px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.label-chip::before { position: absolute; left: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--label-color, var(--gold)); content: ""; }
.label-stack small { color: var(--muted); font-size: 8px; }
.epic-badge { display: inline-flex; min-height: 22px; align-items: center; border-radius: 7px; padding: 0 7px; color: #62427b; background: #f0e6f7; font-size: 8px; font-weight: 800; }
.person-stack { display: inline-flex; align-items: center; padding-left: 4px; }
.person-stack i, .person-stack b { display: grid; width: 25px; height: 25px; place-items: center; margin-left: -4px; border: 2px solid var(--surface); border-radius: 9px; color: #fff; background: var(--green-700); font-size: 7px; font-style: normal; font-weight: 820; }
.person-stack i:nth-child(2) { background: var(--gold); }
.person-stack b { color: var(--green-800); background: var(--green-100); }

.kanban-board { display: flex; min-height: 420px; gap: 10px; overflow: auto; padding: 12px; background: var(--surface-soft); }
.kanban-column { display: flex; width: min(310px, 82vw); min-width: 286px; flex-direction: column; align-self: stretch; }
.kanban-column > header { position: sticky; top: 0; z-index: 2; display: flex; min-height: 38px; align-items: center; justify-content: space-between; padding: 0 4px; color: var(--ink); background: var(--surface-soft); }
.kanban-column > header strong { font-size: 11px; }
.kanban-column > header span { display: grid; min-width: 24px; height: 21px; place-items: center; border-radius: 999px; color: var(--green-800); background: var(--green-100); font-size: 8px; font-variant-numeric: tabular-nums; }
.kanban-cards { display: grid; min-height: 72px; align-content: start; gap: 7px; border-radius: 10px; }
.kanban-card { display: grid; gap: 9px; min-height: 142px; border: 1px solid var(--line); border-radius: 12px; padding: 11px; background: var(--surface); cursor: pointer; }
.kanban-card[draggable="true"] { cursor: grab; }
.kanban-card[draggable="true"]:active { cursor: grabbing; }
.kanban-card:hover { border-color: #cfc2b2; background: #fffdf9; }
.kanban-card.is-selected { border-color: var(--gold); background: #fffaf0; box-shadow: 0 7px 18px rgba(64,43,12,.08); }
.kanban-card:focus-visible { border-color: var(--gold); outline: 3px solid rgba(185,133,53,.18); outline-offset: 1px; }
.kanban-card.is-dragging { opacity: .42; }
.kanban-cards.is-drop-target { background: rgba(0,70,51,.045); box-shadow: inset 0 0 0 1px var(--green-300); }
.kanban-drop-indicator { height: 3px; border-radius: 99px; background: var(--gold); box-shadow: 0 0 0 2px rgba(185,133,53,.14); }
.kanban-card { touch-action: pan-y; }
.kanban-board.is-touch-dragging { touch-action: none; user-select: none; }
.kanban-card.is-touch-dragging { opacity: .72; transform: scale(.985); box-shadow: 0 14px 32px rgba(0,36,27,.2); }
.kanban-card-head { justify-content: space-between; }
.selection-control--card { width: 34px; height: 34px; margin: -7px -7px -7px auto; cursor: pointer; }
.kanban-card code { color: var(--green-700); font-size: 8px; font-weight: 850; }
.kanban-card-link { display: block; min-height: 31px; max-height: 31px; overflow: hidden; color: var(--ink); font-size: 11px; font-weight: 700; line-height: 1.4; text-decoration: none; text-overflow: ellipsis; }
.kanban-card-link:hover { color: var(--green-700); text-decoration: underline; text-underline-offset: 2px; }
.kanban-card-link:focus-visible { border-radius: 4px; outline: 2px solid var(--gold); outline-offset: 2px; }
.kanban-card > div { display: flex; min-width: 0; align-items: center; gap: 6px; }
.kanban-card .priority-tag { min-height: 22px; }
.kanban-card .person-stack { margin-left: auto; }
.kanban-classification { min-height: 22px; overflow: hidden; }
.issue-type-chip, .epic-chip { display: inline-flex; min-width: 0; min-height: 22px; align-items: center; overflow: hidden; border-radius: 7px; padding: 0 7px; font-size: 8px; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.issue-type-chip { color: var(--green-800); background: var(--green-100); }
.epic-chip { max-width: 155px; color: #62427b; background: #f0e6f7; }
.kanban-show-more { min-height: 34px; border: 1px dashed var(--green-300); border-radius: 10px; color: var(--green-800); background: var(--green-100); font-size: 9px; font-weight: 760; cursor: pointer; }
.kanban-show-more:hover { border-style: solid; }
.kanban-show-more:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.kanban-board.is-readonly::before { position: sticky; left: 12px; z-index: 4; display: block; min-width: max-content; height: 28px; align-self: start; border-radius: 8px; padding: 7px 10px; color: var(--muted); background: var(--surface); box-shadow: var(--shadow); font-size: 9px; content: "Для перемещения задач выберите одну очередь"; }

.gantt-view { min-height: 420px; overflow: auto; background: var(--surface); }
.gantt-shell { position: relative; min-width: 1050px; }
.gantt-legend { position: sticky; top: 0; z-index: 4; display: flex; min-height: 32px; align-items: center; justify-content: flex-end; gap: 16px; border-bottom: 1px solid var(--line-soft); padding: 0 14px; color: var(--muted); background: var(--surface); font-size: 9px; }
.gantt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.gantt-legend i { width: 23px; height: 9px; border-radius: 4px; }
.gantt-legend-plan { border: 2px solid var(--green-700); background: transparent; }
.gantt-legend-fact { background: var(--gold); }
.gantt-legend-blocks { position: relative; height: 2px !important; border-radius: 0 !important; background: var(--danger); }.gantt-legend-blocks::after { position: absolute; top: -3px; right: -1px; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid var(--danger); content: ""; }
.gantt-axis, .gantt-row { display: grid; grid-template-columns: 310px minmax(720px,1fr); }
.gantt-axis { position: sticky; top: 32px; z-index: 3; min-height: 42px; border-bottom: 1px solid var(--line); color: var(--muted); background: var(--surface-soft); font-size: 8px; font-weight: 780; text-transform: uppercase; }
.gantt-axis > span { display: flex; align-items: center; padding: 0 14px; border-right: 1px solid var(--line); }
.gantt-axis > div { display: flex; align-items: center; justify-content: space-between; padding: 0 12px; }
.gantt-axis time { font-variant-numeric: tabular-nums; }
.gantt-row { min-height: 45px; border-bottom: 1px solid var(--line-soft); content-visibility: auto; contain-intrinsic-size: 45px; }
.gantt-row > button { display: grid; min-width: 0; grid-template-columns: 70px minmax(0,1fr); align-items: center; gap: 7px; border: 0; border-right: 1px solid var(--line); padding: 0 14px; background: var(--surface); text-align: left; cursor: pointer; }
.gantt-row > button:hover { background: var(--surface-soft); }
.gantt-row code { color: var(--green-700); font-size: 8px; font-weight: 820; }
.gantt-row button span { overflow: hidden; font-size: 9px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.gantt-track { position: relative; overflow: hidden; background-image: linear-gradient(to right, transparent calc(25% - 1px), var(--line-soft) 25%, transparent calc(25% + 1px), transparent calc(50% - 1px), var(--line-soft) 50%, transparent calc(50% + 1px), transparent calc(75% - 1px), var(--line-soft) 75%, transparent calc(75% + 1px)); }
.gantt-bar { position: absolute; min-width: 10px; border-radius: 5px; box-shadow: 0 3px 8px rgba(0,70,51,.12); }
.gantt-bar--planned { border: 2px solid var(--green-700); background: rgba(0,70,51,.08); }
.gantt-bar--planned { top: 6px; height: 14px; }.gantt-bar--actual { top: 25px; height: 11px; background: var(--gold); }
.gantt-dependencies { position: absolute; z-index: 2; top: 74px; left: 0; width: 100%; pointer-events: none; overflow: visible; }
.gantt-dependencies path { fill: none; stroke: var(--danger); stroke-width: 1.5; vector-effect: non-scaling-stroke; }.gantt-dependencies marker path { fill: var(--danger); stroke: none; }
.gantt-bar.is-milestone { width: 12px !important; min-width: 12px; border-radius: 50%; }
.gantt-undated { margin: 0; padding: 12px 14px; color: var(--muted); background: var(--surface-soft); font-size: 9px; }
.gantt-empty { display: grid; min-height: 360px; place-content: center; justify-items: center; gap: 7px; color: var(--muted); text-align: center; }
.gantt-empty strong { color: var(--ink); font-size: 14px; }
.gantt-empty span { font-size: 10px; }
.gantt-axis-empty { justify-content: flex-start !important; color: var(--muted); }
.gantt-track-undated { display: flex; align-items: center; padding-inline: 18px; color: var(--muted); font-size: 10px; background: repeating-linear-gradient(135deg, rgba(26, 77, 61, .035) 0 8px, transparent 8px 16px); }
.gantt-row-undated { opacity: .82; }

.settings-view { min-height: calc(100dvh - var(--topbar)); padding: 22px; background: var(--surface-soft); }
.knowledge-view { min-height: calc(100dvh - var(--topbar)); padding: 22px; background: var(--surface-soft); }
.knowledge-head, .knowledge-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.knowledge-head h2 { margin: 0; font-size: 22px; }.knowledge-head p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.knowledge-toolbar { justify-content: flex-start; }.knowledge-toolbar .search-field { width: min(460px,45vw); }.knowledge-toolbar > label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 760; }.knowledge-toolbar select { min-width: 220px; height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: var(--surface); }
.knowledge-layout { display: grid; min-height: calc(100dvh - var(--topbar) - 154px); grid-template-columns: minmax(280px,.7fr) minmax(420px,1.3fr); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.knowledge-list { border-right: 1px solid var(--line); overflow: auto; }.knowledge-row { display: grid; width: 100%; gap: 5px; border: 0; border-bottom: 1px solid var(--line-soft); padding: 14px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }.knowledge-row:hover { background: var(--surface-soft); }.knowledge-row span, .knowledge-row small { color: var(--muted); font-size: 9px; }.knowledge-row strong { font-size: 11px; }
.knowledge-reader, .knowledge-editor { padding: 22px; }.knowledge-reader h3 { margin: 0 0 8px; font-size: 20px; }.knowledge-reader p { white-space: pre-wrap; line-height: 1.65; }.knowledge-reader header { margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }.knowledge-editor { display: grid; gap: 12px; }.knowledge-editor[hidden] { display: none; }.knowledge-editor header, .knowledge-editor footer, .knowledge-editor > div { display: flex; justify-content: space-between; gap: 10px; }.knowledge-editor label { display: grid; flex: 1; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 760; }.knowledge-editor :is(input,select,textarea) { border: 1px solid var(--line); border-radius: 10px; padding: 10px; color: var(--ink); background: var(--surface); }.knowledge-editor textarea { resize: vertical; line-height: 1.55; }.knowledge-editor footer { justify-content: flex-end; }
.reports-view { min-height: calc(100dvh - var(--topbar)); padding: 22px; background: var(--surface-soft); }
.sla-filters input { height: 38px; border: 1px solid var(--line); border-radius: 9px; padding: 0 9px; color: var(--ink); background: var(--surface); }
.report-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 14px 0; }.report-metrics article { display: grid; gap: 7px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface); }.report-metrics span, .report-metrics small { color: var(--muted); font-size: 9px; }.report-metrics strong { color: var(--green-800); font-size: 24px; }
.report-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: 14px; }.report-row { display: grid; grid-template-columns: 90px minmax(0,1fr) 120px 100px; gap: 10px; align-items: center; border-top: 1px solid var(--line-soft); padding: 11px 14px; font-size: 10px; }.report-row span, .report-row time { color: var(--muted); }.report-load-row { display: flex; justify-content: space-between; border-top: 1px solid var(--line-soft); padding: 12px 14px; font-size: 10px; }
.settings-intro { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 16px; }
.settings-intro h2 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.settings-intro p { max-width: 72ch; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.settings-tabs { display: flex; gap: 4px; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.settings-tabs button { min-height: 40px; border: 0; border-bottom: 2px solid transparent; padding: 0 13px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 760; cursor: pointer; }
.settings-tabs button:hover { color: var(--ink); background: var(--surface); }
.settings-tabs button.is-active { border-bottom-color: var(--green-700); color: var(--green-800); }
.settings-section { min-width: 0; }
.planning-settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.automation-settings-layout { display: grid; min-height: calc(100dvh - var(--topbar) - 178px); grid-template-columns: minmax(360px,.8fr) minmax(520px,1.2fr); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.automation-ledger { min-width: 0; border-right: 1px solid var(--line); }
.automation-ledger > header, .automation-journal > header { display: flex; min-height: 54px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); padding: 10px 14px; }
.automation-settings h4 { margin: 0; font-size: 11px; }
.automation-settings header p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }
.automation-list, #automation-executions-list { display: grid; max-height: calc(100dvh - var(--topbar) - 235px); overflow: auto; }
.automation-row, .automation-execution-row { display: grid; gap: 4px; border: 0; border-top: 1px solid var(--line-soft); padding: 11px 14px; color: var(--ink); background: transparent; text-align: left; }
button.automation-row { cursor: pointer; }
button.automation-row:hover, button.automation-row.is-active { background: var(--surface-soft); }
.automation-row strong, .automation-execution-row strong { font-size: 10px; }
.automation-row span, .automation-execution-row span { color: var(--muted); font-size: 8px; }
.automation-row small { color: var(--green-700); font-size: 8px; }
.automation-row.is-disabled small { color: var(--muted); }
.automation-editor { display: grid; min-width: 0; align-content: start; }
#automation-form { display: grid; gap: 11px; border-bottom: 1px solid var(--line); padding: 14px; }
#automation-form > header { display: flex; align-items: start; justify-content: space-between; }
.automation-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.automation-form-grid > label, .automation-form-grid fieldset label { display: grid; gap: 5px; color: var(--muted); font-size: 8px; font-weight: 780; text-transform: uppercase; }
.automation-wide { grid-column: 1 / -1; }
.automation-form-grid :is(input,select,textarea) { width: 100%; min-height: 38px; border: 1px solid var(--line); border-radius: 9px; padding: 9px; color: var(--ink); background: var(--surface); font-size: 10px; }
.automation-form-grid textarea { resize: vertical; line-height: 1.55; }
.quick-reply-head-actions { display: flex; align-items: end; gap: 10px; }
#quick-reply-form { display: grid; gap: 11px; border-bottom: 1px solid var(--line); padding: 14px; }
#quick-reply-form[hidden] { display: none; }
#quick-reply-form > header { display: flex; align-items: start; justify-content: space-between; }
#quick-reply-form footer { display: flex; justify-content: flex-end; gap: 8px; }
.automation-form-grid fieldset { margin: 0; border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px; }
.automation-form-grid legend { padding: 0 5px; font-size: 9px; font-weight: 800; }
.automation-form-grid fieldset > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.automation-active { display: flex; align-items: center; gap: 8px; font-size: 9px; }
.automation-active input { width: 16px; height: 16px; accent-color: var(--green-700); }
.automation-execution-row.is-failed strong { color: var(--danger); }
.automation-execution-row.is-succeeded strong { color: var(--green-700); }
.automation-event-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.planning-ledger { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.planning-ledger > header, .planning-form > header { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-soft); padding: 10px 14px; }
.planning-ledger h4, .planning-form h5 { margin: 0; font-size: 12px; }.planning-ledger header p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.planning-list { display: grid; max-height: 48dvh; overflow: auto; }.planning-row { display: grid; min-height: 56px; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-soft); padding: 8px 12px 8px 14px; }
.planning-row > div { display: grid; min-width: 0; gap: 3px; }.planning-row strong, .planning-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.planning-row strong { font-size: 10px; }.planning-row span { color: var(--muted); font-size: 8px; }
.planning-empty { margin: 0; padding: 18px 14px; color: var(--muted); font-size: 10px; line-height: 1.5; }.planning-form { display: grid; gap: 9px; border-top: 1px solid var(--line); padding: 0 14px 14px; background: var(--surface-soft); }.planning-form[hidden] { display: none; }
.planning-form > header { margin: 0 -14px; background: var(--surface); }.planning-form > label, .planning-form > div label { display: grid; gap: 5px; color: var(--muted); font-size: 8px; font-weight: 780; }.planning-form > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.planning-form :is(input,select) { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; color: var(--ink); background: var(--surface); font-size: 10px; }.planning-form :is(input,select):focus-visible { border-color: var(--gold); outline: 2px solid rgba(185,133,53,.18); outline-offset: 1px; }.planning-form .form-message { min-height: 12px; margin: 0; color: var(--danger); font-size: 9px; }.planning-form footer { display: flex; justify-content: flex-end; }
.planning-form > .planning-active-check { display: flex; min-height: 40px; grid-template-columns: none; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; color: var(--ink); background: var(--surface); cursor: pointer; }.planning-form > .planning-active-check:has(input:checked) { border-color: #9bc3b1; color: var(--green-800); background: var(--green-100); }.planning-form .planning-active-check input { width: 15px; min-height: 15px; height: 15px; padding: 0; accent-color: var(--green-700); }
.settings-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 12px; }
.settings-section-head h3 { margin: 0; font-size: 15px; }
.settings-section-head p { max-width: 72ch; margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.settings-queue { display: grid; min-width: 220px; gap: 5px; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.settings-queue select { height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; color: var(--ink); background: var(--surface); font-size: 11px; font-weight: 700; }
.csat-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.csat-summary article { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface); }
.csat-summary span { color: var(--muted); font-size: 9px; font-weight: 760; text-transform: uppercase; }
.csat-summary strong { color: var(--green-800); font-size: 22px; }
.csat-list { display: grid; }
.csat-row { display: grid; grid-template-columns: 90px minmax(140px,.6fr) minmax(140px,.6fr) minmax(240px,1.5fr) 130px; gap: 12px; align-items: center; border-top: 1px solid var(--line-soft); padding: 12px 14px; font-size: 10px; }
.csat-row strong { color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.csat-row span, .csat-row time { color: var(--muted); }
.status-manager { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,390px); margin-bottom: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.status-ledger { min-width: 0; }
.status-ledger > header, .status-editor > header { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.status-ledger h4, .status-editor h4 { margin: 0; font-size: 13px; }
.status-ledger header p, .status-editor header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.status-list { display: grid; }
.status-row { display: grid; min-height: 58px; grid-template-columns: minmax(180px,1fr) 150px minmax(120px,auto) auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-soft); padding: 8px 12px 8px 16px; }
.status-row:last-child { border-bottom: 0; }
.status-row:hover { background: var(--surface-soft); }
.status-identity { display: flex; min-width: 0; align-items: center; gap: 9px; }
.status-identity i { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--status-color); }
.status-identity strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.status-category { color: var(--muted); font-size: 10px; font-weight: 700; }
.status-usage { color: var(--muted); font-size: 9px; }
.status-actions { display: flex; gap: 4px; }
.status-actions button { min-width: 34px; min-height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; color: var(--ink); background: var(--surface); font-size: 10px; font-weight: 750; cursor: pointer; }
.status-actions button:hover:not(:disabled) { border-color: var(--green-700); color: var(--green-700); }
.status-actions button:disabled { opacity: .35; cursor: default; }
.status-actions .status-delete:hover:not(:disabled) { border-color: var(--danger); color: var(--danger); }
.status-editor { border-left: 1px solid var(--line); background: var(--surface-soft); }
.status-editor[hidden] { display: none; }
.status-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding: 14px 16px 0; }
.status-form-grid label, .status-replacement { display: grid; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.status-form-grid input:not([type="color"]), .status-form-grid select, .status-replacement select { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; color: var(--ink); background: var(--surface); font-size: 11px; outline: none; }
.status-color-field { grid-column: 1 / -1; }
.status-color-field input { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 4px; background: var(--surface); cursor: pointer; }
.status-editor .form-message { padding: 0 16px; }
.status-editor footer { display: flex; justify-content: flex-end; padding: 0 16px 14px; }
.status-replacement { margin-top: 14px; text-align: left; }
.workflow-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.workflow-panel-head { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 12px 16px; }
.workflow-panel-head > div { display: grid; gap: 3px; }
.workflow-panel-head strong { font-size: 14px; }
.workflow-panel-head span { color: var(--muted); font-size: 9px; }
.workflow-enabled { display: inline-flex; min-height: 34px; align-items: center; gap: 8px; margin-left: auto; color: var(--ink); font-size: 10px; font-weight: 700; }
.workflow-enabled input { width: 16px; height: 16px; margin: 0; accent-color: var(--green-700); }
.workflow-grid { display: grid; }
.workflow-row { display: grid; grid-template-columns: 230px minmax(0,1fr); min-height: 66px; border-bottom: 1px solid var(--line-soft); }
.workflow-row:last-child { border-bottom: 0; }
.workflow-from { display: flex; align-items: center; gap: 9px; border-right: 1px solid var(--line-soft); padding: 12px 16px; font-size: 10px; font-weight: 760; }
.workflow-from i { width: 9px; height: 9px; border-radius: 50%; background: var(--state-color, var(--green-700)); }
.workflow-targets { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 10px 14px; }
.workflow-target { display: inline-flex; min-height: 32px; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 9px; padding: 0 9px; color: var(--muted); background: var(--surface); font-size: 9px; font-weight: 680; cursor: pointer; }
.workflow-target:has(input:checked) { border-color: #9bc3b1; color: var(--green-800); background: var(--green-100); }
.workflow-target input { width: 14px; height: 14px; margin: 0; accent-color: var(--green-700); }
.workflow-message { min-height: 24px; margin: 0; padding: 7px 16px; color: var(--green-700); background: var(--surface-soft); font-size: 10px; }
.workflow-message.is-error { color: var(--danger); background: var(--danger-bg); }
.admin-layout { display: grid; min-height: calc(100dvh - var(--topbar) - 178px); grid-template-columns: minmax(560px,1fr) minmax(330px,420px); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.admin-ledger { min-width: 0; border-right: 1px solid var(--line); }
.admin-ledger > header, .group-manager > header { display: flex; min-height: 58px; align-items: center; justify-content: space-between; padding: 11px 15px; border-bottom: 1px solid var(--line-soft); }
.admin-ledger h4, .admin-editor h4, .group-manager h4 { margin: 0; font-size: 13px; }
.admin-ledger header p, .admin-editor header p, .group-manager header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.admin-table-wrap { overflow: auto; max-height: calc(100dvh - var(--topbar) - 238px); }
.admin-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.admin-table th { position: sticky; top: 0; z-index: 1; height: 36px; padding: 0 11px; border-bottom: 1px solid var(--line); color: var(--muted); background: var(--surface-soft); font-size: 10px; font-weight: 800; text-align: left; text-transform: uppercase; }
.admin-table th:nth-child(1) { width: 31%; }.admin-table th:nth-child(2) { width: 24%; }.admin-table th:nth-child(3) { width: 14%; }.admin-table th:nth-child(4) { width: 14%; }.admin-table th:nth-child(5) { width: 17%; }
.admin-table td { height: 58px; padding: 8px 11px; border-bottom: 1px solid var(--line-soft); font-size: 11px; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: var(--surface-soft); }
.admin-person { display: grid; min-width: 0; gap: 3px; }
.admin-person strong, .admin-person span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-person strong { font-size: 11px; }.admin-person span { color: var(--muted); font-size: 10px; }
.admin-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.admin-badge { display: inline-flex; min-height: 25px; align-items: center; border-radius: 999px; padding: 0 8px; color: var(--green-800); background: var(--green-100); font-size: 10px; font-weight: 750; }
.admin-badge--muted { color: var(--muted); background: var(--surface-soft); }
.admin-badge--danger { color: var(--danger); background: var(--danger-bg); }
.admin-edit-button { min-height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 9px; color: var(--ink); background: var(--surface); font-size: 11px; font-weight: 720; cursor: pointer; }
.admin-edit-button:hover { border-color: var(--green-700); color: var(--green-700); }
.admin-editor { min-width: 0; background: var(--surface-soft); }
.admin-editor > form { padding: 15px; border-bottom: 1px solid var(--line); background: var(--surface); }
.admin-editor form > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.admin-form-grid label, .group-manager form label { display: grid; min-width: 0; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.admin-form-grid input, .group-manager form input { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; color: var(--ink); background: var(--surface); font-size: 12px; outline: none; }
.admin-form-grid input:focus, .group-manager form input:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(0,91,65,.12); }
.admin-form-grid input:disabled { color: var(--muted); background: var(--surface-soft); }
.admin-form-wide { grid-column: 1 / -1; }
.admin-form-wide small { color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.45; text-transform: none; }
.group-options { margin: 14px 0 0; border: 0; padding: 0; }
.group-options legend { margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.group-options > div { display: flex; flex-wrap: wrap; gap: 6px; }
.group-options label, .admin-switches label { display: inline-flex; min-height: 36px; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 9px; padding: 0 9px; background: var(--surface); font-size: 11px; font-weight: 700; cursor: pointer; }
.group-options label:has(input:checked), .admin-switches label:has(input:checked) { border-color: #9bc3b1; color: var(--green-800); background: var(--green-100); }
.group-options input, .admin-switches input { width: 14px; height: 14px; margin: 0; accent-color: var(--green-700); }
.queue-access { margin: 14px 0 0; border: 0; padding: 0; }
.queue-access legend { color: var(--ink); font-size: 11px; font-weight: 800; }
.queue-access > p { margin: 4px 0 9px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.queue-access > div { display: grid; gap: 6px; }
.queue-access label { display: grid; min-height: 42px; grid-template-columns: minmax(0,1fr) 150px; align-items: center; gap: 10px; border-top: 1px solid var(--line-soft); padding-top: 6px; color: var(--ink); font-size: 10px; font-weight: 720; }
.queue-access select { width: 100%; height: 36px; border: 1px solid var(--line); border-radius: 9px; padding: 0 9px; color: var(--ink); background: var(--surface); font-size: 10px; outline: none; }
.queue-access select:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(0,91,65,.12); }
.admin-switches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.admin-editor form > footer { display: flex; justify-content: flex-end; margin-top: 10px; }
.form-message { min-height: 18px; margin: 8px 0 0; color: var(--green-700); font-size: 11px; }
.form-message.is-error { color: var(--danger); }
.group-manager { padding-bottom: 10px; }
.group-manager form { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: end; gap: 7px; padding: 11px 15px; }
.group-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 15px; }
.group-list button { display: inline-flex; min-height: 34px; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 0 10px; color: var(--ink); background: var(--surface); font-size: 11px; font-weight: 700; cursor: pointer; }
.group-list button svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.group-list button small { color: var(--muted); font-size: 9px; font-weight: 650; }
.group-list button:hover { border-color: var(--green-700); color: var(--green-700); }
.group-manager > .form-message { padding: 0 15px; }
.mailbox-layout { display: grid; min-height: calc(100dvh - var(--topbar) - 178px); grid-template-columns: minmax(440px, .9fr) minmax(390px, 1.1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.mailbox-ledger { min-width: 0; border-right: 1px solid var(--line); }
.mailbox-ledger > header, .mailbox-editor form > header { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 15px; border-bottom: 1px solid var(--line-soft); }
.mailbox-ledger h4, .mailbox-editor h4 { margin: 0; font-size: 13px; }
.mailbox-ledger header p, .mailbox-editor header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.mailbox-list { display: grid; max-height: calc(100dvh - var(--topbar) - 238px); overflow: auto; }
.mailbox-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 12px; min-height: 78px; padding: 11px 15px; border-bottom: 1px solid var(--line-soft); }
.mailbox-row:hover { background: var(--surface-soft); }
.mailbox-row > div:first-child { display: grid; min-width: 0; gap: 3px; }
.mailbox-row strong, .mailbox-row a, .mailbox-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mailbox-row strong { font-size: 12px; }.mailbox-row a { color: var(--green-700); font-size: 11px; text-underline-offset: 3px; }.mailbox-row small { color: var(--muted); font-size: 9px; }
.channel-code { overflow: hidden; color: var(--green-700); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mailbox-row-state, .mailbox-readiness { display: flex; flex-wrap: wrap; gap: 5px; }
.delivery-failures { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.delivery-failure-row { grid-template-columns: minmax(0, 1fr) auto; }
.delivery-failure-row small { white-space: normal; overflow-wrap: anywhere; line-height: 1.45; }
.mailbox-ready { display: inline-flex; min-height: 25px; align-items: center; border-radius: 999px; padding: 0 8px; color: var(--warning); background: var(--warning-bg); font-size: 9px; font-weight: 760; }
.mailbox-ready.is-ready { color: var(--green-800); background: var(--green-100); }
.mailbox-empty { max-width: 46ch; padding: 24px 15px; }.mailbox-empty strong { font-size: 13px; }.mailbox-empty p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.mailbox-editor { min-width: 0; background: var(--surface-soft); }
.mailbox-editor > form { background: var(--surface); }
.mailbox-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding: 15px 15px 0; }
.mailbox-form-grid label { display: grid; min-width: 0; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.mailbox-form-grid :is(input, select, textarea) { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; color: var(--ink); background: var(--surface); font: inherit; font-size: 12px; outline: none; text-transform: none; }
.mailbox-form-grid :is(input, select) { height: 40px; }.mailbox-form-grid textarea { min-height: 88px; padding-block: 10px; resize: vertical; }
.mailbox-form-grid :is(input, select, textarea):focus { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(0,91,65,.12); }
.mailbox-form-grid :is(input, select, textarea):disabled { color: var(--muted); background: var(--surface-soft); cursor: not-allowed; }
.mailbox-form-wide { grid-column: 1 / -1; }.mailbox-form-wide small { color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.45; text-transform: none; }
.mailbox-switches { padding: 12px 15px 0; }.mailbox-switches label { display: inline-flex; min-height: 38px; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; font-size: 11px; font-weight: 720; cursor: pointer; }.mailbox-switches label:has(input:checked) { border-color: #9bc3b1; color: var(--green-800); background: var(--green-100); }.mailbox-switches input { width: 15px; height: 15px; accent-color: var(--green-700); }
.mailbox-readiness { padding: 12px 15px 0; }.mailbox-editor .form-message { padding: 0 15px; }.mailbox-editor footer { display: flex; justify-content: flex-end; padding: 0 15px 15px; }
.mailbox-editor .channel-form-actions { justify-content: space-between; gap: 10px; }
.channel-key-value { display: grid; gap: 6px; margin: 18px 0 8px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.channel-key-value input { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; color: var(--ink); background: var(--surface-soft); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; text-transform: none; }
.channel-key-dialog .confirm-dialog-actions { flex-wrap: wrap; }
.kanban-settings-dialog { width: min(520px, calc(100vw - 28px)); border: 0; border-radius: 16px; padding: 0; color: var(--ink); background: var(--surface); box-shadow: 0 24px 70px rgba(0,36,27,.28); }
.kanban-settings-dialog::backdrop { background: rgba(0,36,27,.48); }
.kanban-settings-dialog form { padding: 20px; }
.kanban-settings-dialog header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.kanban-settings-dialog h2 { margin: 0; font-size: 18px; }
.kanban-settings-dialog header p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.kanban-status-options { display: grid; gap: 7px; margin: 18px 0 8px; }
.kanban-status-options label { display: grid; min-height: 42px; grid-template-columns: 18px 10px minmax(0,1fr); align-items: center; gap: 10px; border: 1px solid var(--line-soft); border-radius: 10px; padding: 8px 10px; font-size: 10px; font-weight: 700; cursor: pointer; }
.kanban-status-options input { width: 16px; height: 16px; margin: 0; accent-color: var(--green-700); }
.kanban-status-options i { width: 9px; height: 9px; border-radius: 50%; background: var(--state-color, var(--green-700)); }
.task-page-shell { width: 100%; max-width: none; }

.structure-load-message { margin: -4px 0 10px; }
.structure-guidance { margin: -4px 0 12px; border: 1px solid #d9c18d; border-radius: 10px; padding: 9px 11px; color: #6f541e; background: var(--warning-bg); font-size: 10px; line-height: 1.5; }
.structure-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.structure-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.structure-panel--wide { grid-column: 1 / -1; }
.structure-panel > header, .structure-form > header { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 15px; border-bottom: 1px solid var(--line-soft); }
.structure-panel h4, .structure-form h5 { margin: 0; color: var(--ink); font-size: 13px; }
.structure-panel header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.structure-list { display: grid; max-height: 280px; overflow: auto; }
.structure-list--queues { grid-template-columns: repeat(2,minmax(0,1fr)); }
.structure-list--queues .structure-row:nth-child(even) { border-left: 1px solid var(--line-soft); }
.structure-row { display: grid; min-height: 60px; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 9px 12px 9px 15px; border-bottom: 1px solid var(--line-soft); }
.structure-row:last-child { border-bottom: 0; }
.structure-row:hover { background: var(--surface-soft); }
.structure-row.is-inactive { opacity: .62; }
.structure-row > div:first-child { display: grid; min-width: 0; gap: 4px; }
.structure-row--color > div:first-child { position: relative; padding-left: 17px; }
.structure-row--color > div:first-child::before { position: absolute; top: 4px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--structure-color); content: ""; }
.structure-row strong { font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.structure-row span { color: var(--muted); font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.structure-row > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.structure-empty { margin: 0; padding: 24px 15px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.structure-form { display: grid; gap: 11px; padding: 0 15px 15px; border-top: 1px solid var(--line); background: var(--surface-soft); }
.structure-form[hidden] { display: none; }
.structure-form > header { margin: 0 -15px; border-bottom-color: var(--line); background: var(--surface); }
.structure-form > label, .structure-form-row label { display: grid; min-width: 0; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.structure-form :is(input:not([type="checkbox"]),select,textarea) { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; color: var(--ink); background: var(--surface); font: inherit; font-size: 11px; outline: 0; text-transform: none; }
.structure-form input[type="color"] { padding: 4px; cursor: pointer; }
.structure-form textarea { resize: vertical; line-height: 1.5; }
.structure-form :is(input:not([type="checkbox"]),select,textarea):focus { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(0,91,65,.12); }
.structure-form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.structure-form-row > .native-check { display: flex; min-height: 40px; align-items: center; gap: 8px; align-self: end; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; color: var(--ink); background: var(--surface); font-size: 10px; font-weight: 700; text-transform: none; cursor: pointer; }
.structure-form-row > .native-check:has(input:checked) { border-color: #9bc3b1; color: var(--green-800); background: var(--green-100); }
.structure-form-row > .native-check input { width: 15px; height: 15px; margin: 0; accent-color: var(--green-700); }
.structure-form small { color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.45; text-transform: none; }
.structure-kind-options { margin: 0; border: 0; padding: 0; }
.structure-kind-options legend { color: var(--ink); font-size: 10px; font-weight: 800; }
.structure-kind-options > p { margin: 4px 0 8px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.structure-kind-options > div, .structure-switches { display: flex; flex-wrap: wrap; gap: 6px; }
.structure-kind-options label, .structure-switches label { display: inline-flex; min-height: 36px; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 9px; padding: 0 9px; color: var(--ink); background: var(--surface); font-size: 10px; font-weight: 700; cursor: pointer; }
.structure-kind-options label i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--label-color, var(--green-700)); }
.structure-kind-options label:has(input:checked), .structure-switches label:has(input:checked) { border-color: #9bc3b1; color: var(--green-800); background: var(--green-100); }
.structure-kind-options label.is-inactive { border-style: dashed; color: var(--muted); background: var(--surface-soft); cursor: default; }
.structure-kind-options input, .structure-switches input { width: 15px; height: 15px; margin: 0; accent-color: var(--green-700); }
.structure-form > .native-check { display: inline-flex; min-height: 38px; align-items: center; gap: 8px; justify-self: start; color: var(--ink); font-size: 10px; font-weight: 700; text-transform: none; cursor: pointer; }
.structure-form > .native-check input { width: 15px; height: 15px; margin: 0; accent-color: var(--green-700); }
.structure-form footer { display: flex; justify-content: flex-end; }
.service-form-fields { margin: 0; border: 0; padding: 0; }
.service-form-fields > legend { color: var(--ink); font-size: 10px; font-weight: 800; }
.service-form-fields > p { margin: 4px 0 9px; color: var(--muted); font-size: 10px; line-height: 1.45; }
#support-service-fields { display: grid; gap: 8px; }
.service-field-config { display: grid; gap: 9px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--surface); transition: border-color 160ms ease-out, background-color 160ms ease-out; }
.service-field-config.is-selected { border-color: #9bc3b1; background: rgba(0,91,65,.035); }
.service-field-toggle { display: grid; min-height: 36px; grid-template-columns: 16px minmax(0,1fr); align-items: center; gap: 9px; color: var(--ink); cursor: pointer; }
.service-field-toggle input { width: 16px; height: 16px; margin: 0; accent-color: var(--green-700); }
.service-field-toggle span { display: grid; gap: 2px; }.service-field-toggle strong { font-size: 11px; }.service-field-toggle small { font-size: 9px; }
.service-field-settings { display: grid; grid-template-columns: minmax(160px,1fr) minmax(190px,1.3fr) 90px repeat(2,minmax(110px,.6fr)); gap: 8px; }
.service-field-settings label { display: grid; min-width: 0; gap: 4px; color: var(--muted); font-size: 9px; font-weight: 760; text-transform: none; }
.service-field-settings .native-check { display: flex; min-height: 40px; align-items: center; gap: 7px; align-self: end; border: 1px solid var(--line); border-radius: 9px; padding: 0 9px; color: var(--ink); background: var(--surface); cursor: pointer; }
.service-field-settings .native-check:has(input:checked) { border-color: #9bc3b1; color: var(--green-800); background: var(--green-100); }
.service-field-settings .native-check input { width: 15px; height: 15px; margin: 0; accent-color: var(--green-700); }
.service-field-config:not(.is-selected) .service-field-settings { opacity: .52; }

.git-load-message { margin: -4px 0 10px; }
.git-settings-layout { display: grid; min-height: calc(100dvh - var(--topbar) - 178px); grid-template-columns: minmax(420px,.9fr) minmax(480px,1.1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.git-repository-ledger { min-width: 0; border-right: 1px solid var(--line); }
.git-repository-ledger > header, .git-repository-detail form > header, .git-delivery-journal > header { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 15px; border-bottom: 1px solid var(--line-soft); }
.git-repository-ledger h4, .git-repository-detail h4, .git-delivery-journal h4 { margin: 0; font-size: 13px; }
.git-repository-ledger header p, .git-repository-detail header p, .git-delivery-journal header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.git-repository-list { display: grid; max-height: calc(100dvh - var(--topbar) - 240px); overflow: auto; }
.git-repository-row { display: grid; min-height: 86px; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 7px 14px; border: 0; border-bottom: 1px solid var(--line-soft); padding: 12px 15px; color: var(--ink); background: var(--surface); text-align: left; cursor: pointer; }
.git-repository-row:hover { background: var(--surface-soft); }
.git-repository-row.is-selected { background: var(--gold-soft); box-shadow: inset 3px 0 0 var(--gold); }
.git-repository-identity { display: grid; min-width: 0; gap: 4px; }
.git-repository-identity strong, .git-repository-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.git-repository-identity strong { font-size: 12px; }.git-repository-identity small { color: var(--muted); font-size: 9px; }
.git-readiness, .git-activity, .git-delivery-state { display: inline-flex; min-height: 25px; align-items: center; border-radius: 999px; padding: 0 8px; font-size: 9px; font-weight: 760; white-space: nowrap; }
.git-readiness.is-ready, .git-delivery-state.is-ready, .git-activity.is-active { color: var(--green-800); background: var(--green-100); }
.git-readiness.is-warning, .git-delivery-state.is-pending { color: var(--warning); background: var(--warning-bg); }
.git-activity { color: var(--muted); background: var(--surface-soft); }
.git-repository-counts { color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.git-repository-counts b { color: var(--ink); }
.git-repository-row .git-activity { justify-self: end; }
.git-repository-detail { min-width: 0; background: var(--surface-soft); }
.git-repository-detail > form { background: var(--surface); }
.git-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; padding: 15px 15px 0; }
.git-form-grid label { display: grid; min-width: 0; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.git-form-wide { grid-column: 1 / -1; }
.git-form-grid :is(input,select) { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; color: var(--ink); background: var(--surface); font: inherit; font-size: 11px; outline: 0; text-transform: none; }
.git-form-grid :is(input,select):focus { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(0,91,65,.12); }
.git-form-grid :is(input,select):disabled { color: var(--muted); background: var(--surface-soft); cursor: not-allowed; }
.git-identity-note { margin: 12px 15px 0; border: 1px solid #d9c18d; border-radius: 10px; padding: 9px 11px; color: #6f541e; background: var(--warning-bg); font-size: 10px; line-height: 1.45; }
.git-active-check { display: inline-flex; min-height: 38px; align-items: center; gap: 8px; margin: 12px 15px 0; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; font-size: 10px; font-weight: 720; cursor: pointer; }
.git-active-check:has(input:checked) { border-color: #9bc3b1; color: var(--green-800); background: var(--green-100); }
.git-active-check:has(input:disabled) { color: var(--muted); cursor: default; }
.git-active-check input { width: 15px; height: 15px; margin: 0; accent-color: var(--green-700); }
.git-webhook-box { display: grid; gap: 9px; margin: 12px 15px 0; border-radius: 12px; padding: 12px; background: var(--green-950); color: #fff; }
.git-webhook-box > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.git-webhook-box span { color: #bed3ca; font-size: 9px; font-weight: 780; text-transform: uppercase; }
.git-webhook-box strong { border-radius: 999px; padding: 5px 8px; font-size: 9px; }.git-webhook-box strong.is-ready { color: var(--green-950); background: var(--gold-light); }.git-webhook-box strong.is-warning { color: #ffe5b6; background: rgba(255,255,255,.1); }
.git-webhook-copy { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.git-webhook-copy code { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 9px; padding: 10px; color: #e9f1ee; background: rgba(255,255,255,.055); font: 600 9px/1.45 ui-monospace,"Cascadia Mono",monospace; text-overflow: ellipsis; white-space: nowrap; }
.git-webhook-copy .button { border-color: rgba(255,255,255,.26); color: #fff; background: rgba(255,255,255,.08); }
.git-webhook-box small { color: #bed3ca; font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
.git-repository-detail form > .form-message { padding: 0 15px; }
.git-repository-detail form > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 0 15px 15px; }
.git-delivery-journal { border-top: 1px solid var(--line); background: var(--surface-soft); }
.git-delivery-list { display: grid; max-height: 340px; overflow: auto; }
.git-delivery-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; border-bottom: 1px solid var(--line); padding: 12px 15px; background: var(--surface); }
.git-delivery-row > div:first-child { display: grid; min-width: 0; gap: 4px; }
.git-delivery-row strong { font-size: 11px; }.git-delivery-row code { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.git-delivery-state.is-error { color: var(--danger); background: var(--danger-bg); }
.git-delivery-row dl { display: flex; grid-column: 1 / -1; gap: 20px; margin: 0; }
.git-delivery-row dl div { display: grid; gap: 2px; }.git-delivery-row dt { color: var(--muted); font-size: 8px; font-weight: 760; text-transform: uppercase; }.git-delivery-row dd { margin: 0; font-size: 9px; font-variant-numeric: tabular-nums; }
.git-delivery-row > p { grid-column: 1 / -1; margin: 0; border-radius: 8px; padding: 8px 9px; color: var(--danger); background: var(--danger-bg); font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
.git-empty { display: grid; gap: 5px; padding: 24px 15px; color: var(--muted); }.git-empty strong { color: var(--ink); font-size: 12px; }.git-empty span { font-size: 10px; line-height: 1.5; }
.git-inline-error { margin: 0; padding: 18px 15px; color: var(--danger); font-size: 10px; line-height: 1.5; }

.task-custom-fields { display: grid; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); background: var(--surface-soft); }
.task-custom-fields > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.task-custom-fields h3 { margin: 0; font-size: 11px; }
.task-custom-fields header span { color: var(--muted); font-size: 9px; }
.task-custom-fields form, #task-custom-fields-list { display: grid; gap: 9px; }
.task-custom-field { display: grid; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 780; }
.task-custom-field > :is(input,select) { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; color: var(--ink); background: var(--surface); font-size: 11px; outline: 0; }
.task-custom-field > :is(input,select):focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(185,133,53,.13); }
.task-custom-boolean { display: flex; min-height: 40px; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; color: var(--ink); background: var(--surface); font-size: 11px; }
.task-custom-boolean input { width: 16px; height: 16px; margin: 0; accent-color: var(--green-700); }
.task-custom-fields .button { justify-self: stretch; }

@media (max-width: 1120px) {
  :root { --sidebar: 204px; }
  .dashboard { grid-template-columns: minmax(0,1fr); }
  .queue-index { display: none; }
  .queue-ledger { grid-column: 1; }
  .workbench-toolbar { align-items: flex-start; flex-direction: column; }
  .filter-strip { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .dashboard.is-queue-view .ledger-table-wrap, .dashboard.is-queue-view :is(.kanban-board,.gantt-view) { height: calc(100dvh - var(--topbar) - 184px); }
}

@media (max-width: 780px) {
  :root { --sidebar: 66px; --topbar: 66px; }
  .dashboard { padding: 10px; }
  .dashboard.is-queue-view { padding: 0; }
  .ledger-head { align-items: stretch; padding: 10px 12px; }
  .pagination-feedback, .section-feedback { align-items: stretch; flex-direction: column; }
  .pagination-feedback .button, .section-feedback .button { width: 100%; }
  .search-field { width: 100%; }
  .filter-strip label > span { display: none; }
  .filter-strip select { min-width: 118px; }
  .view-switch { width: 100%; }
  .view-switch button { flex: 1; justify-content: center; }
  .bulk-bar { right: 8px; bottom: 8px; left: calc(var(--sidebar) + 8px); display: grid; max-height: calc(100dvh - 16px); grid-template-columns: minmax(0,1fr) auto; gap: 7px 8px; overflow: auto; padding: 10px; }
  .bulk-selection-summary { min-width: 0; }
  .bulk-field { min-width: 0; grid-column: 1 / -1; }
  .bulk-field select, .bulk-apply, .bulk-clear, .selection-control { min-height: 44px; }
  .bulk-clear { display: flex; min-height: 28px; align-items: center; }
  .bulk-restriction { grid-column: 1 / -1; }
  .bulk-apply { min-width: 104px; grid-column: 2; grid-row: 1; }
  .selection-control { width: 44px; height: 44px; }
  .selection-control--card { margin: -11px -11px -11px auto; }
  .settings-view { padding: 14px; }
  .settings-intro, .settings-section-head, .workflow-panel-head { align-items: stretch; flex-direction: column; }
  .settings-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .settings-tabs button { min-width: 0; padding-inline: 5px; line-height: 1.25; }
  .settings-queue { min-width: 0; }
  .status-manager { grid-template-columns: 1fr; }
  .status-editor { border-top: 1px solid var(--line); border-left: 0; }
  .status-row { grid-template-columns: minmax(0,1fr); gap: 6px; padding-block: 11px; }
  .status-category, .status-usage { padding-left: 19px; }
  .status-actions { width: 100%; padding-top: 3px; }
  .status-actions button { min-width: 44px; min-height: 44px; flex: 1; }
  .workflow-row { grid-template-columns: 1fr; }
  .workflow-from { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .workflow-panel-head .button { width: 100%; }
  .admin-layout { min-height: 0; grid-template-columns: 1fr; }
  .mailbox-layout { min-height: 0; grid-template-columns: 1fr; }
  .git-settings-layout { min-height: 0; grid-template-columns: 1fr; }
  .automation-settings-layout { min-height: 0; grid-template-columns: 1fr; }
  .automation-ledger { border-right: 0; border-bottom: 1px solid var(--line); }
  .git-repository-ledger { border-right: 0; border-bottom: 1px solid var(--line); }
  .git-repository-list { max-height: 45dvh; }
  .git-form-grid { grid-template-columns: 1fr; }
  .git-form-wide { grid-column: auto; }
  .git-form-grid :is(input,select), .git-active-check { min-height: 44px; }
  .git-webhook-copy { grid-template-columns: 1fr; }
  .git-webhook-copy .button { width: 100%; min-height: 44px; }
  .mailbox-ledger { border-right: 0; border-bottom: 1px solid var(--line); }
  .mailbox-list { max-height: 48dvh; }
  .mailbox-row { grid-template-columns: 1fr; align-items: stretch; }
  .mailbox-row-state { justify-content: flex-start; }
  .mailbox-form-grid { grid-template-columns: 1fr; }
  .mailbox-form-wide { grid-column: auto; }
  .mailbox-form-grid :is(input, select) { height: 44px; }
  .channel-form-actions { flex-direction: column-reverse; }
  .channel-form-actions .button, .channel-key-dialog .button { width: 100%; min-height: 44px; }
  .admin-ledger { border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-table-wrap { max-height: 52dvh; }
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 11px; border-bottom: 1px solid var(--line-soft); }
  .admin-table td { height: auto; min-width: 0; border: 0; padding: 0; }
  .admin-table td:first-child, .admin-table td:last-child { grid-column: 1 / -1; }
  .admin-edit-button { width: 100%; }
  .settings-tabs button, .admin-edit-button, .group-list button, .group-options label, .admin-switches label { min-height: 44px; }
  .queue-access label { grid-template-columns: 1fr; align-items: stretch; padding: 9px 0 3px; }
  .queue-access select { height: 44px; }
  .admin-form-grid input, .group-manager form input { height: 44px; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form-wide { grid-column: auto; }
  .group-manager form { grid-template-columns: 1fr 1fr; }
  .group-manager form label { grid-column: 1 / -1; }
  .structure-grid { grid-template-columns: 1fr; }
  .structure-list--queues { grid-template-columns: 1fr; }
  .structure-list--queues .structure-row:nth-child(even) { border-left: 0; }
  .structure-panel--wide { grid-column: auto; }
  .structure-row { grid-template-columns: 1fr; align-items: stretch; }
  .structure-row > div:last-child { justify-content: stretch; }
  .structure-row > div:last-child .button { min-height: 44px; flex: 1; }
  .structure-form-row { grid-template-columns: 1fr; }
  .service-field-settings { grid-template-columns: 1fr; }
  .service-field-toggle, .service-field-settings :is(input,.native-check) { min-height: 44px; }
  .structure-form :is(input:not([type="checkbox"]),select,textarea), .structure-form .button, .structure-kind-options label, .structure-switches label { min-height: 44px; }
  .task-custom-field > :is(input,select), .task-custom-boolean, .task-custom-fields .button, .task-itsm-field :is(input:not([type="checkbox"]),select,textarea,.button) { min-height: 44px; }
  .task-itsm-field fieldset > div:not(.task-change-approval) { grid-template-columns: 1fr; }
  .planning-settings-grid { grid-template-columns: 1fr; }.planning-row .button, .planning-form :is(input,select,.button) { min-height: 44px; }
  .worklog-row { grid-template-columns: minmax(0,1fr) auto; }.worklog-row p { grid-column: 1 / -1; }.worklog-remove { min-height: 44px; grid-column: 2; grid-row: 1 / span 2; }
  .worklog-form { grid-template-columns: 1fr; }.worklog-form .form-message { grid-column: 1; }.worklog-form :is(input,.button) { min-height: 44px; }
}

/* Карточка задачи читается как основной рабочий экран, поэтому её кегль на шаг крупнее плотных журналов. */
.task-view :is(.back-button, .task-page-keyline, .task-relations-empty, .attachment-empty, .comment-empty, .status-history-empty, .task-postmortem-hint) { font-size: 12px; }
.task-view :is(.task-content p, .comment-item p, .comment-form textarea) { font-size: 14px; }
.task-view :is(.task-content h2, .task-postmortem h2, .task-relations h2, .task-attachments h2, .task-worklog h2, .task-discussion h2, .task-history h2, .task-sidebar h2) { font-size: 15px; }
.task-view :is(.task-status-field > span, .task-control-field > span, .task-field-list dt, .task-person-picker summary > span, .task-multi-picker summary > span, .worklog-form label, .task-delivery-summary, .delivery-section h4, .delivery-item-meta, .delivery-item code, .delivery-empty, .comment-paste-hint) { font-size: 10px; }
.task-view :is(.task-status-field select, .task-control-field select, .task-control-field input, .task-person-picker summary > strong, .task-multi-picker summary > strong, .task-field-list dd, .delivery-item-title, .worklog-form input, .worklog-empty, .worklog-row strong, .worklog-row p) { font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* SLA: сигнальный слой диспетчерского журнала */
.sla-chip { display: inline-flex; min-height: 23px; max-width: 172px; align-items: center; overflow: hidden; border-radius: 7px; padding: 0 7px; color: var(--green-800); background: var(--green-100); font-size: 8px; font-weight: 820; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sla-chip.is-warning { color: var(--warning); background: var(--warning-bg); }
.sla-chip.is-danger { color: var(--danger); background: var(--danger-bg); }
.sla-chip.is-paused, .sla-chip.is-stopped, .sla-chip.is-none { color: var(--muted); background: var(--surface-soft); }
.kanban-sla { justify-self: start; max-width: 100%; }

.task-sla { display: grid; gap: 8px; border-bottom: 1px solid var(--line-soft); padding: 16px 18px; }
.task-sla header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.task-sla h3 { margin: 0; font-size: 11px; }
.task-sla header span { border-radius: 7px; padding: 4px 7px; color: var(--green-800); background: var(--green-100); font-size: 8px; font-weight: 820; }
.task-sla[data-tone="warning"] header span { color: var(--warning); background: var(--warning-bg); }
.task-sla[data-tone="danger"] header span { color: var(--danger); background: var(--danger-bg); }
.task-sla > strong { color: var(--ink); font-size: 18px; font-variant-numeric: tabular-nums; }
.task-sla > p { margin: -4px 0 2px; color: var(--muted); font-size: 9px; }
.task-sla dl { display: grid; gap: 0; margin: 0; }
.task-sla dl div { display: flex; min-height: 28px; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line-soft); font-size: 9px; }
.task-sla dt { color: var(--muted); }
.task-sla dd { margin: 0; color: var(--ink); font-weight: 720; text-align: right; font-variant-numeric: tabular-nums; }

.sla-view { min-height: calc(100dvh - var(--topbar)); padding: 22px; background: var(--surface-soft); }
.sla-view-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.sla-view-head h2 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.sla-view-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.sla-filters { display: flex; gap: 8px; }
.sla-filters label { display: grid; min-width: 180px; gap: 4px; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.sla-filters select { min-height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 30px 0 10px; color: var(--ink); background: var(--surface); font-size: 10px; }
.sla-summary { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.sla-summary article { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 12px; border-left: 1px solid var(--line-soft); padding: 12px 18px; }
.sla-summary article:first-child { border-left: 0; }
.sla-summary span { color: var(--muted); font-size: 10px; }
.sla-summary strong { font-size: 25px; font-variant-numeric: tabular-nums; }
.sla-summary .is-danger strong { color: var(--danger); }
.sla-report-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 14px; margin-top: 14px; }
.sla-report-ledger, .sla-events { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.sla-report-ledger > header, .sla-events > header { display: flex; min-height: 51px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); padding: 0 15px; }
.sla-report-ledger h3, .sla-events h3 { margin: 0; font-size: 12px; }
.sla-report-ledger header span { color: var(--muted); font-size: 9px; }
.sla-report-table-wrap { height: calc(100dvh - var(--topbar) - 255px); min-height: 360px; overflow: auto; }
.sla-report-ledger table { width: 100%; border-collapse: collapse; font-size: 9px; }
.sla-report-ledger th { position: sticky; top: 0; z-index: 1; height: 36px; padding: 0 10px; color: var(--muted); background: var(--surface-soft); text-align: left; text-transform: uppercase; }
.sla-report-ledger td { height: 48px; border-top: 1px solid var(--line-soft); padding: 7px 10px; font-variant-numeric: tabular-nums; }
.sla-report-ledger td:first-child { display: grid; min-width: 180px; gap: 2px; }
.sla-report-ledger td small { color: var(--muted); }
.sla-report-row { cursor: pointer; }
.sla-report-row:hover { background: #fffdf9; }
.sla-report-row:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
#sla-event-list { display: grid; max-height: calc(100dvh - var(--topbar) - 255px); overflow: auto; }
.sla-event { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; border: 0; border-top: 1px solid var(--line-soft); padding: 12px 14px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.sla-event:first-child { border-top: 0; }
.sla-event:hover { background: var(--surface-soft); }
.sla-event span { grid-row: span 2; align-self: start; border-radius: 6px; padding: 3px 5px; color: var(--warning); background: var(--warning-bg); font-size: 7px; font-weight: 820; }
.sla-event.is-danger span { color: var(--danger); background: var(--danger-bg); }
.sla-event strong { font-size: 10px; }
.sla-event small { color: var(--muted); font-size: 8px; }
.sla-report-error { display: grid; gap: 6px; padding: 16px; }
.sla-report-error strong { font-size: 11px; }
.sla-report-error span { color: var(--muted); font-size: 9px; }
.sla-report-error button { justify-self: start; }

.change-calendar-view { min-height: calc(100dvh - var(--topbar)); padding: 22px; background: var(--surface-soft); }
.change-calendar-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.change-calendar-head h2 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.change-calendar-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.change-calendar-nav { display: flex; align-items: center; gap: 6px; }
.change-calendar-nav select { min-height: 36px; border: 1px solid var(--line); border-radius: 10px; padding: 0 30px 0 10px; color: var(--ink); background: var(--surface); font-size: 10px; font-weight: 720; }
.change-calendar-filters { display: grid; grid-template-columns: repeat(4,minmax(150px,1fr)); gap: 8px; margin-bottom: 10px; }
.change-calendar-filters label { display: grid; gap: 4px; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.change-calendar-filters select { width: 100%; min-height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 30px 0 10px; color: var(--ink); background: var(--surface); font-size: 10px; }
.change-calendar-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.change-calendar-summary article { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; border-left: 1px solid var(--line-soft); padding: 10px 16px; }
.change-calendar-summary article:first-child { border-left: 0; }
.change-calendar-summary span { color: var(--muted); font-size: 10px; }
.change-calendar-summary strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.change-calendar-summary .is-warning strong { color: var(--warning); }
.change-calendar-summary .is-danger strong { color: var(--danger); }
.change-calendar-period { display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 16px; }
.change-calendar-period strong { font-size: 12px; }
.change-calendar-period span { color: var(--muted); font-size: 9px; }
.change-calendar-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.change-calendar-grid { display: grid; min-width: 980px; grid-template-columns: repeat(7,minmax(132px,1fr)); align-items: stretch; }
.change-calendar-grid > .table-loading { grid-column: 1 / -1; margin: 0; }
.change-calendar-day { min-height: 178px; border-left: 1px solid var(--line-soft); border-top: 1px solid var(--line-soft); padding: 9px; background: var(--surface); }
.change-calendar-day:nth-child(7n + 1) { border-left: 0; }
.change-calendar-day:nth-child(-n + 7) { border-top: 0; }
.change-calendar-day.is-outside { background: var(--surface-soft); }
.change-calendar-day.is-today { background: #fffaf0; }
.change-calendar-day > header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.change-calendar-day > header strong { font-size: 10px; }
.change-calendar-day > header span { color: var(--muted); font-size: 8px; text-transform: capitalize; }
.change-calendar-day.is-today > header strong { color: var(--green-800); }
.change-calendar-items { display: grid; gap: 6px; }
.change-entry { display: grid; width: 100%; gap: 4px; border: 1px solid var(--line); border-radius: 9px; padding: 8px; color: var(--ink); background: var(--surface-soft); text-align: left; cursor: pointer; }
.change-entry:hover { border-color: #c7b9a8; background: #fffdf9; }
.change-entry:focus-visible { border-color: var(--gold); outline: 3px solid rgba(185,133,53,.2); outline-offset: 1px; }
.change-entry.is-conflict { border-color: #e7bd7f; background: var(--warning-bg); }
.change-entry.is-rejected { border-color: #efc7c2; background: var(--danger-bg); }
.change-entry-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.change-entry time { color: var(--green-800); font-size: 8px; font-weight: 820; font-variant-numeric: tabular-nums; }
.change-entry em { border-radius: 999px; padding: 3px 5px; color: var(--warning); background: #fff; font-size: 7px; font-style: normal; font-weight: 820; }
.change-entry strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.change-entry b { overflow: hidden; font-size: 9px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.change-entry small { overflow: hidden; color: var(--muted); font-size: 7px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.change-day-empty { margin: 22px 0 0; color: #8a948f; font-size: 8px; text-align: center; }
.change-calendar-message { min-height: 24px; padding: 8px 2px 0; color: var(--muted); font-size: 10px; }
.change-calendar-message.is-error { color: var(--danger); }
.portfolio-view { min-height: calc(100dvh - var(--topbar)); padding: 22px; background: var(--surface-soft); }
.portfolio-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.portfolio-head h2 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.portfolio-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.portfolio-filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-bottom: 10px; }
.portfolio-filters label { display: grid; gap: 4px; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.portfolio-filters select { min-height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 30px 0 10px; color: var(--ink); background: var(--surface); font-size: 10px; }
.portfolio-summary { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.portfolio-summary article { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 10px; border-left: 1px solid var(--line-soft); padding: 12px 15px; }
.portfolio-summary article:first-child { border-left: 0; }
.portfolio-summary span { color: var(--muted); font-size: 9px; }
.portfolio-summary strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.portfolio-summary .is-warning strong { color: var(--warning); }
.portfolio-summary .is-danger strong { color: var(--danger); }
.portfolio-ledger { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.portfolio-ledger > header { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-soft); padding: 10px 15px; }
.portfolio-ledger h3 { margin: 0; font-size: 12px; }
.portfolio-ledger header p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }
.portfolio-ledger header > span { color: var(--muted); font-size: 9px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(290px,1fr)); gap: 10px; padding: 10px; }
.portfolio-card { display: grid; min-height: 230px; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 15px; color: var(--ink); background: var(--surface); text-align: left; cursor: pointer; }
.portfolio-card:hover { border-color: #c7b9a8; background: #fffdf9; }
.portfolio-card:focus-visible { outline: 3px solid rgba(185,133,53,.25); outline-offset: 2px; }
.portfolio-card.is-over { border-color: #e7aaa2; }
.portfolio-card.is-high { border-color: #e7bd7f; }
.portfolio-card-head { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 8px; }
.portfolio-card-head > span { display: grid; min-width: 0; gap: 3px; }
.portfolio-card-head strong { font-size: 13px; }
.portfolio-card-head b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.portfolio-risk { border-radius: 7px; padding: 5px 7px; color: var(--green-800); background: var(--green-100); font-size: 8px; font-style: normal; font-weight: 820; }
.portfolio-card.is-over .portfolio-risk { color: var(--danger); background: var(--danger-bg); }
.portfolio-card.is-high .portfolio-risk, .portfolio-card.is-medium .portfolio-risk { color: var(--warning); background: var(--warning-bg); }
.portfolio-card-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.portfolio-card-meta span { border-radius: 6px; padding: 4px 6px; color: var(--muted); background: var(--surface-soft); font-size: 8px; }
.portfolio-capacity { display: grid; gap: 6px; }
.portfolio-capacity > span { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 8px; }
.portfolio-capacity > span strong { color: var(--ink); font-size: 9px; font-variant-numeric: tabular-nums; }
.portfolio-capacity-bar { height: 7px; overflow: hidden; border-radius: 999px; background: var(--green-100); }
.portfolio-capacity-bar i { display: block; height: 100%; border-radius: inherit; background: var(--green-600); }
.portfolio-card.is-over .portfolio-capacity-bar i { background: var(--danger); }
.portfolio-card.is-high .portfolio-capacity-bar i, .portfolio-card.is-medium .portfolio-capacity-bar i { background: var(--warning); }
.portfolio-metrics { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); margin: auto 0 0; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.portfolio-metrics span { display: grid; gap: 3px; border-left: 1px solid var(--line-soft); color: var(--muted); font-size: 7px; text-align: center; }
.portfolio-metrics span:first-child { border-left: 0; }
.portfolio-metrics strong { color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.portfolio-owner { color: var(--muted); font-size: 8px; }
.portfolio-message { min-height: 20px; margin: 8px 0 0; color: var(--muted); font-size: 9px; }
.portfolio-empty { grid-column: 1 / -1; display: grid; min-height: 220px; place-items: center; color: var(--muted); font-size: 10px; text-align: center; }
.portfolio-error { grid-column: 1 / -1; display: grid; min-height: 220px; place-content: center; justify-items: center; gap: 8px; color: var(--muted); font-size: 10px; text-align: center; }

.itsm-analytics-view { min-height: calc(100dvh - var(--topbar)); padding: 22px; background: var(--surface-soft); }
.itsm-analytics-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.itsm-analytics-head h2 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.itsm-analytics-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.itsm-analytics-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-bottom: 10px; }
.itsm-analytics-filters label { display: grid; gap: 4px; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.itsm-analytics-filters select { min-height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 30px 0 10px; color: var(--ink); background: var(--surface); font-size: 10px; }
.itsm-analytics-summary { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.itsm-analytics-summary article { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 10px; border-left: 1px solid var(--line-soft); border-top: 1px solid var(--line-soft); padding: 11px 14px; }
.itsm-analytics-summary article:nth-child(-n+5) { border-top: 0; }
.itsm-analytics-summary article:nth-child(5n+1) { border-left: 0; }
.itsm-analytics-summary span { color: var(--muted); font-size: 8px; }
.itsm-analytics-summary strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.itsm-analytics-summary .is-danger strong { color: var(--danger); }
.itsm-analytics-summary .is-warning strong { color: var(--warning); }
.itsm-analytics-summary .is-success strong { color: var(--green-700); }
.itsm-trend { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.itsm-trend > header { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line-soft); padding: 10px 15px; }
.itsm-trend h3 { margin: 0; font-size: 12px; }
.itsm-trend header p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }
.itsm-trend-legend { display: flex; gap: 12px; color: var(--muted); font-size: 8px; }
.itsm-trend-legend span::before { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 2px; background: var(--gold); content: ""; }
.itsm-trend-legend .is-restored::before { background: var(--green-600); }
.itsm-trend-scroll { overflow-x: auto; padding: 14px 12px 8px; }
.itsm-trend-chart { display: grid; min-width: 100%; min-height: 240px; grid-auto-flow: column; grid-auto-columns: minmax(20px,1fr); align-items: end; gap: 4px; }
.itsm-trend-day { display: grid; height: 220px; grid-template-rows: 1fr auto; gap: 6px; }
.itsm-trend-bars { display: flex; height: 190px; align-items: end; justify-content: center; gap: 2px; border-bottom: 1px solid var(--line-soft); }
.itsm-trend-bars i { display: block; width: min(8px,42%); border-radius: 3px 3px 0 0; background: var(--gold); }
.itsm-trend-bars i:last-child { background: var(--green-600); }
.itsm-trend-day time { min-height: 12px; overflow: hidden; color: var(--muted); font-size: 7px; text-align: center; text-overflow: clip; white-space: nowrap; }
.itsm-trend-empty { place-self: center; color: var(--muted); font-size: 10px; }
.itsm-analytics-message { min-height: 20px; margin: 8px 0 0; color: var(--muted); font-size: 9px; }
.itsm-analytics-message.is-error { color: var(--danger); }

.notifications-view { min-height: calc(100dvh - var(--topbar)); padding: 22px; background: var(--surface-soft); }
.notifications-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.notifications-head h2 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.notifications-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.notifications-actions { display: flex; align-items: center; gap: 8px; }
.notifications-actions .native-check { display: flex; min-height: 36px; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 0 11px; background: var(--surface); font-size: 10px; }
.notifications-actions .native-check input { width: 16px; height: 16px; accent-color: var(--green-700); }
.notifications-layout { display: grid; min-height: 0; grid-template-columns: minmax(0,1fr) minmax(280px,340px); gap: 14px; }
.notifications-ledger { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.notifications-ledger > header { display: flex; min-height: 52px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); padding: 0 16px; }
.notifications-ledger h3 { margin: 0; font-size: 12px; }
.notifications-ledger header span { color: var(--muted); font-size: 9px; }
.notification-list { display: grid; max-height: calc(100dvh - var(--topbar) - 160px); min-height: 320px; overflow: auto; }
.notification-row { display: grid; min-height: 72px; grid-template-columns: 10px minmax(0,1fr) auto; align-items: center; gap: 12px; border: 0; border-top: 1px solid var(--line-soft); padding: 11px 16px; color: var(--ink); background: var(--surface); text-align: left; cursor: pointer; transition: background-color 160ms ease-out; }
.notification-row:first-child { border-top: 0; }
.notification-row:hover { background: var(--surface-soft); }
.notification-row.is-unread { background: #fffdf9; }
.notification-row.is-unread:hover { background: var(--gold-soft); }
.notification-state { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.notification-row.is-unread .notification-state { background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.notification-copy { display: grid; min-width: 0; gap: 3px; }
.notification-copy strong, .notification-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-copy strong { font-size: 11px; }
.notification-copy span { color: #3e4944; font-size: 10px; }
.notification-copy small { color: var(--muted); font-size: 9px; }
.notification-open { color: var(--green-700); font-size: 9px; font-weight: 780; }
.notification-empty { display: grid; max-width: 48ch; place-self: center; justify-items: center; gap: 6px; padding: 32px; text-align: center; }
.notification-empty strong { font-size: 13px; }
.notification-empty p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.notification-preferences { align-self: start; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.notification-preferences > header { border-bottom: 1px solid var(--line-soft); padding: 14px 16px 12px; }
.notification-preferences h3 { margin: 0; font-size: 12px; }
.notification-preferences header p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.notification-preferences form { display: grid; gap: 0; padding: 6px 14px 14px; }
.notification-preferences .native-check { display: grid; min-height: 58px; grid-template-columns: 18px minmax(0,1fr); align-items: center; gap: 9px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.notification-preferences .native-check input { width: 17px; height: 17px; accent-color: var(--green-700); }
.notification-preferences .native-check span { display: grid; gap: 3px; }
.notification-preferences .native-check strong { font-size: 10px; }
.notification-preferences .native-check small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.notification-preferences .form-message { min-height: 18px; margin: 8px 0 4px; }
.notification-preferences .button { width: 100%; }

.sla-admin-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.sla-admin-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.sla-admin-panel > header { min-height: 54px; border-bottom: 1px solid var(--line-soft); padding: 12px 15px; }
.sla-admin-panel h4 { margin: 0; font-size: 12px; }
.sla-admin-panel header p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.sla-admin-list { display: grid; max-height: 190px; overflow: auto; border-bottom: 1px solid var(--line); }
.sla-admin-row { display: grid; min-height: 46px; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 10px; border: 0; border-top: 1px solid var(--line-soft); padding: 7px 13px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.sla-admin-row:first-child { border-top: 0; }
.sla-admin-row:hover { background: var(--surface-soft); }
.sla-admin-row > span { display: grid; gap: 2px; min-width: 0; }
.sla-admin-row strong, .sla-admin-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sla-admin-row strong { font-size: 10px; }
.sla-admin-row small { color: var(--muted); font-size: 8px; }
.sla-admin-row b { border-radius: 6px; padding: 4px 6px; color: var(--green-800); background: var(--green-100); font-size: 8px; }
.sla-admin-row em { color: var(--green-700); font-size: 8px; font-style: normal; font-weight: 760; }
.sla-admin-panel form { display: grid; gap: 9px; padding: 14px; }
.sla-admin-panel form > label, .sla-time-row label, .sla-deadline-row label { display: grid; gap: 5px; color: var(--muted); font-size: 8px; font-weight: 780; text-transform: uppercase; }
.sla-admin-panel :is(input,select) { width: 100%; min-height: 38px; border: 1px solid var(--line); border-radius: 9px; padding: 0 9px; color: var(--ink); background: var(--surface); font-size: 10px; outline: 0; }
.sla-admin-panel :is(input,select):focus { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(0,91,65,.12); }
.sla-time-row, .sla-deadline-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.sla-deadline-row { grid-template-columns: repeat(3,minmax(0,1fr)); }
.sla-admin-panel .native-check { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 9px; text-transform: none; }
.sla-admin-panel .native-check input, .sla-priority-options input { width: 16px; min-height: 16px; accent-color: var(--green-700); }
.sla-admin-panel footer { display: flex; gap: 7px; }
.sla-priority-options { margin: 0; border: 0; padding: 0; }
.sla-priority-options legend { color: var(--ink); font-size: 9px; font-weight: 800; }
.sla-priority-options > p { margin: 3px 0 7px; color: var(--muted); font-size: 8px; }
.sla-priority-options > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
.sla-priority-options label { display: flex; align-items: center; gap: 7px; font-size: 9px; }

@media (max-width: 1120px) {
  .sla-report-layout { grid-template-columns: 1fr; }
  #sla-event-list { max-height: 260px; }
  .notifications-layout { grid-template-columns: 1fr; }
  .notification-preferences { order: -1; }
  .portfolio-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .portfolio-summary article:nth-child(4) { border-left: 0; border-top: 1px solid var(--line-soft); }
  .portfolio-summary article:nth-child(5) { border-top: 1px solid var(--line-soft); }
  .itsm-analytics-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .itsm-analytics-summary article:nth-child(n) { border-top: 1px solid var(--line-soft); }
  .itsm-analytics-summary article:nth-child(-n+3) { border-top: 0; }
  .itsm-analytics-summary article:nth-child(3n+1) { border-left: 0; }
}

@media (max-width: 780px) {
  .metric-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-strip article:nth-child(odd) { border-left: 0; }
  .sla-view { padding: 14px; }
  .sla-view-head { align-items: stretch; flex-direction: column; }
  .change-calendar-view { padding: 14px; }
  .change-calendar-head { align-items: stretch; flex-direction: column; }
  .change-calendar-nav { display: grid; grid-template-columns: 44px 1fr 44px 1.2fr; }
  .change-calendar-nav :is(button,select) { width: 100%; min-height: 44px; }
  .change-calendar-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .change-calendar-filters select { min-height: 44px; font-size: 11px; }
  .change-calendar-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .change-calendar-summary article:nth-child(3) { border-left: 0; border-top: 1px solid var(--line-soft); }
  .change-calendar-summary article:nth-child(4) { border-top: 1px solid var(--line-soft); }
  .change-calendar-grid { min-width: 910px; }
  .change-entry { min-height: 44px; }
  .portfolio-view { padding: 14px; }
  .portfolio-head { align-items: stretch; flex-direction: column; }
  .portfolio-head .button { min-height: 44px; }
  .portfolio-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .portfolio-filters select { min-height: 44px; }
  .portfolio-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .portfolio-summary article { border-top: 1px solid var(--line-soft); }
  .portfolio-summary article:nth-child(odd) { border-left: 0; }
  .portfolio-summary article:nth-child(-n+2) { border-top: 0; }
  .itsm-analytics-view { padding: 14px; }
  .itsm-analytics-head { align-items: stretch; flex-direction: column; }
  .itsm-analytics-head .button { min-height: 44px; }
  .itsm-analytics-filters { grid-template-columns: 1fr; }
  .itsm-analytics-filters select { min-height: 44px; }
  .itsm-analytics-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .itsm-analytics-summary article:nth-child(n) { border-top: 1px solid var(--line-soft); }
  .itsm-analytics-summary article:nth-child(-n+2) { border-top: 0; }
  .itsm-analytics-summary article:nth-child(odd) { border-left: 0; }
  .notifications-view { padding: 14px; }
  .notifications-head, .notifications-actions { align-items: stretch; flex-direction: column; }
  .notifications-actions :is(.button,.native-check) { width: 100%; min-height: 44px; }
  .notification-list { max-height: none; min-height: 280px; }
  .notification-row { min-height: 84px; padding: 12px; }
  .notification-open { display: none; }
  .sla-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sla-filters label { min-width: 0; }
  .sla-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sla-summary article:nth-child(3) { border-left: 0; border-top: 1px solid var(--line-soft); }
  .sla-summary article:nth-child(4) { border-top: 1px solid var(--line-soft); }
  .sla-admin-grid { grid-template-columns: 1fr; }
  .settings-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .automation-form-grid, .automation-form-grid fieldset > div, .automation-event-options { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .sla-view { padding: 10px; }
  .change-calendar-view { padding: 10px; }
  .change-calendar-filters { grid-template-columns: 1fr; }
  .portfolio-view { padding: 10px; }
  .itsm-analytics-view { padding: 10px; }
  .portfolio-filters { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; padding: 7px; }
  .portfolio-card { min-height: 250px; padding: 12px; }
  .portfolio-summary article { min-height: 54px; padding: 9px 11px; }
  .sla-filters, .sla-time-row, .sla-deadline-row, .sla-priority-options > div { grid-template-columns: 1fr; }
  .sla-summary article { min-height: 54px; padding: 9px 11px; }
  .sla-report-table-wrap { min-height: 420px; }
  .sla-report-ledger table { min-width: 760px; }
  .sla-admin-panel footer { align-items: stretch; flex-direction: column; }
  .sla-admin-panel form > label, .sla-time-row label, .sla-deadline-row label { font-size: 10px; }
  .sla-admin-panel :is(input,select), .sla-admin-panel footer .button, .sla-admin-row { min-height: 44px; font-size: 11px; }
  .sla-admin-panel .native-check, .sla-priority-options label { min-height: 44px; font-size: 10px; }
  .sla-admin-panel .native-check input, .sla-priority-options input { width: 20px; min-height: 20px; }
  .toast { top: 58px; right: 10px; bottom: auto; left: 56px; }
}

@media (max-width: 780px), (pointer: coarse) {
  :is(
    .button,
    .icon-button,
    .back-button,
    .nav-item,
    .view-switch button,
    .filter-reset,
    .selection-control,
    .kanban-show-more,
    .task-relation-remove,
    .worklog-remove,
    .status-actions button,
    .admin-edit-button,
    .group-list button
  ) { min-width: 44px; min-height: 44px; }

  :is(
    .search-field,
    .filter-strip select,
    .bulk-field select,
    .comment-access select,
    .comment-mention select,
    .relation-form input,
    .relation-form select,
    .relation-form textarea,
    .task-subtask-form input,
    .task-subtask-form select,
    .task-commit-field input,
    .worklog-form input,
    .settings-queue select,
    .queue-access select,
    .admin-form-grid input,
    .mailbox-form-grid input,
    .mailbox-form-grid select,
    .git-form-grid input,
    .git-form-grid select,
    .planning-form input,
    .planning-form select,
    .structure-form input:not([type="checkbox"]),
    .structure-form select,
    .structure-form textarea,
    .task-custom-field input,
    .task-custom-field select,
    .sla-filters select,
    .sla-admin-panel input:not([type="checkbox"]),
    .sla-admin-panel select
  ) { min-height: 44px; }

  :is(
    .person-option,
    .task-option,
    .native-check,
    .workflow-enabled,
    .workflow-target,
    .group-options label,
    .admin-switches label,
    .mailbox-switches label,
    .kanban-status-options label,
    .structure-kind-options label,
    .structure-switches label,
    .git-active-check,
    .task-custom-boolean
  ) { min-height: 44px; }

  .comment-pending-images button { width: 44px; height: 44px; }
}
