:root {
  --paper:#f5f3ed; --panel:#fffefa; --ink:#272824; --muted:#62645c; --line:#dcdad0;
  --coal:#242728; --coal-text:#eeeee7; --terra:#a13c24; --terra-hover:#83311d; --peach:#f2d6c8;
  --focus:#945020; --soft:#edeae1; --danger:#9c302b; --radius:12px;
  font-family:"Source Sans 3","Segoe UI",Arial,sans-serif; font-size:15px; color:var(--ink); background:var(--paper);
  line-height:1.5; font-synthesis:none; color-scheme:light; scrollbar-color:#a9a89c var(--paper);
}
* { box-sizing:border-box; }
body { margin:0; }
button,input,textarea,select { font:inherit; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
a { color:var(--terra); text-underline-offset:.17em; }
button:disabled { cursor:wait; opacity:.57; }
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,[tabindex]:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
::selection { background:#f0ccae; color:#291e15; }
input,textarea { caret-color:var(--terra); }
[hidden] { display:none!important; }
h1,h2,h3,p { margin:0; }
h1,h2,h3 { line-height:1.18; overflow-wrap:anywhere; text-wrap:balance; }
h1 { font-weight:720; font-size:clamp(2rem,3.15vw,3.2rem); letter-spacing:-.04em; }
h2 { font-size:1.27rem; font-weight:680; letter-spacing:-.025em; }
h3 { font-size:1.03rem; }
strong,b { font-weight:650; }
.skip { position:fixed; top:8px; left:8px; z-index:20; padding:9px 14px; background:white; transform:translateY(-160%); }
.skip:focus { transform:translateY(0); }
.boot { min-height:100dvh; display:grid; place-items:center; color:var(--muted); }
.shell { min-height:100dvh; display:grid; grid-template-columns:232px minmax(0,1fr); align-items:start; }
.sidebar { position:sticky; top:0; height:100dvh; z-index:5; background:var(--coal); color:var(--coal-text); padding:36px 16px 16px; display:flex; flex-direction:column; }
.brand { display:inline-flex; align-items:center; gap:11px; font-size:22px; font-weight:720; letter-spacing:-.035em; line-height:1.1; }
.sidebar > .brand { margin:0 13px 43px; }
.brand small { display:block; font-weight:500; margin-top:5px; color:inherit; opacity:.76; font-size:11px; line-height:1; letter-spacing:.03em; }
.mark { width:34px; height:36px; background:#d97851; display:flex; gap:2px; justify-content:center; align-items:center; border-radius:9px; overflow:hidden; flex:none; }
.mark i { display:block; width:4px; height:14px; background:#211f1d; transform:skew(-20deg); }
.mark i:first-child { height:9px; align-self:center; margin-top:7px; }
.mark i:last-child { height:19px; margin-top:-6px; }
.sidebar nav { display:grid; gap:14px; }
.nav-group { display:grid; gap:4px; }
.nav-group + .nav-group { border-top:1px solid #444748; padding-top:14px; }
.nav-link { width:100%; background:transparent; color:#d6d7ce; border:0; display:flex; align-items:center; gap:12px; min-height:44px; padding:9px 12px; border-radius:7px; font-size:.94rem; text-align:left; font-weight:540; }
.nav-link:hover,.exit:hover { background:#353939; color:white; }
.help-link { text-decoration:none; }
.i-guide::before { inset:1px 2px; border:var(--stroke) solid; border-radius:2px; }
.i-guide::after { left:6px; top:2px; bottom:2px; border-left:var(--stroke) solid; }
.login-footer { display:flex; flex-wrap:wrap; align-items:center; gap:5px 20px; max-width:70%; font-size:.9rem; }
@media(max-width:620px) { .login-footer { max-width:100%; } }
.nav-link.active { background:#41433f; color:#fff3e6; }
.nav-link.active .ico { color:#f2a781; }
.nav-count { margin-left:auto; padding:1px 7px; min-width:21px; text-align:center; border-radius:6px; background:#f2a781; color:#281e16; font-variant-numeric:tabular-nums; font-size:.77rem; }
.profile { margin-top:auto; border-top:1px solid #464846; padding:18px 3px 3px; display:flex; gap:9px; align-items:center; }
.avatar { display:inline-grid; place-items:center; flex:none; width:37px; height:37px; border-radius:50%; background:#eee3d4; color:#694832; font-size:.82rem; font-weight:680; }
.avatar.invert { background:#444845; color:#ebe8de; }
.avatar.soft { color:var(--muted); background:var(--soft); }
.who { display:grid; min-width:0; line-height:1.3; }
.who b { font-size:.87rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.who small { font-size:.75rem; color:#bfc1b8; margin-top:3px; }
.mobile-bar,.scrim { display:none; }
.icon-button.drawer-close { display:none; }
.workspace { min-width:0; }
#content:focus { outline:0; }
.page { width:100%; max-width:1520px; margin:0 auto; padding:clamp(32px,4.4vw,74px) clamp(22px,4.6vw,76px) 80px; }
.page-head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:0 0 30px; }
.page-head > div:first-child { min-width:0; }
.page-head p { color:var(--muted); margin-top:10px; max-width:68ch; }
.actions,.row-actions,.dialog-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.actions { flex-shrink:0; }
.button,.icon-button,.attach-button { line-height:1.25; display:inline-flex; align-items:center; justify-content:center; gap:8px; box-shadow:none; min-height:40px; padding:9px 14px; border-radius:7px; border:1px solid #c9c9be; background:var(--panel); color:var(--ink); text-decoration:none; font-size:.88rem; font-weight:600; }
.button:hover,.icon-button.compact:hover,.attach-button:hover { background:#eeede5; border-color:#b3b4a7; }
.button.primary { background:var(--terra); border-color:var(--terra); color:#fffaf2; }
.button.primary:hover { background:var(--terra-hover); border-color:var(--terra-hover); }
.button.subtle { background:transparent; }
.button.small { min-height:34px; padding:7px 11px; font-size:.81rem; }
.quiet-danger { color:var(--danger); }
.icon-button { width:40px; height:40px; padding:0; font-size:0; gap:0; flex:none; }
.icon-button.exit { min-height:35px; width:35px; height:35px; border:0; color:#c9cbc1; background:transparent; margin-left:auto; }
.back,.text-button { display:inline-flex; align-items:center; gap:7px; border:0; background:transparent; color:var(--terra); padding:5px 1px; font-size:.87rem; font-weight:600; }
.back { color:var(--muted); margin-bottom:18px; }
.back:hover,.text-button:hover { text-decoration:underline; text-underline-offset:3px; }
.filters { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:14px; }
input:not([type="radio"]):not([type="file"]),select,textarea { background:var(--panel); color:var(--ink); border:1px solid #bfc0b4; border-radius:7px; padding:10px 12px; min-width:0; line-height:1.35; }
input::placeholder,textarea::placeholder { color:#74746b; opacity:1; }
select { padding-right:29px; max-width:100%; }
.filters select { font-size:.87rem; min-height:40px; max-width:min(240px,100%); }
.search { display:flex; align-items:center; gap:10px; padding:0 12px; border:1px solid #bfc0b4; border-radius:7px; background:var(--panel); color:var(--muted); flex:1 1 210px; max-width:345px; }
.search:focus-within { outline:3px solid var(--focus); outline-offset:2px; }
.search input[type="search"] { width:100%; background:transparent; border:0; padding:10px 0; min-height:38px; font-size:.9rem; outline:0; }
.panel { background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); min-width:0; }
.ticket-row { display:grid; grid-template-columns:minmax(150px,1.7fr) minmax(105px,1.02fr) minmax(110px,.87fr) minmax(65px,.48fr); align-items:center; gap:14px; width:100%; padding:15px clamp(13px,1.7vw,25px); }
.table-head { color:var(--muted); background:#f0eee6; font-size:.76rem; font-weight:600; border-radius:var(--radius) var(--radius) 0 0; padding-top:11px; padding-bottom:11px; }
.row-link { background:transparent; border:0; color:var(--ink); text-align:left; transition:background-color .15s ease-out; }
.row-link:hover { background:#f5f2e9; }
.row-link:focus-visible { outline-offset:-3px; }
.row-link + .row-link,.table-head + .row-link { border-top:1px solid var(--line); }
.row-link:last-child { border-radius:0 0 var(--radius) var(--radius); }
.ticket-name,.ticket-project,.project-name,.grow { display:grid; min-width:0; }
.ticket-name strong,.ticket-project strong,.project-name strong,.grow strong { overflow-wrap:anywhere; }
.ticket-name strong { font-size:.97rem; }
.ticket-project strong { font-weight:550; font-size:.88rem; }
.ticket-name small,.ticket-project small,.project-name small,.grow small,.when { color:var(--muted); font-size:.8rem; margin-top:3px; overflow-wrap:anywhere; }
.numeric,.when,.count { font-variant-numeric:tabular-nums; }
.status { width:fit-content; display:inline-flex; align-items:center; gap:6px; border-radius:5px; padding:4px 7px; line-height:1.25; font-size:.76rem; font-weight:600; }
.status i { width:6px; height:6px; background:currentColor; border-radius:50%; flex:none; }
.blue { background:#deedf1; color:#30586a; }
.ochre { background:#f6e9bb; color:#705410; }
.violet { background:#ebe5f2; color:#614870; }
.green { background:#dfece0; color:#385d40; }
.neutral { background:#e8e8e2; color:#52544c; }
.empty { min-height:255px; padding:40px 22px; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; }
.empty-icon { display:grid; place-items:center; width:48px; height:48px; background:#ede7d9; color:#765b41; border-radius:13px; margin-bottom:17px; }
.empty-icon .ico { transform:scale(1.18); }
.empty h2 { font-size:1.34rem; }
.empty p { margin-top:8px; color:var(--muted); font-size:.92rem; max-width:41ch; }
.empty .button { margin-top:18px; }
.project-row,.access-row { display:flex; width:100%; align-items:center; gap:15px; padding:18px 22px; }
.project-row:only-child { border-radius:var(--radius); }
.project-monogram { flex:none; display:grid; place-items:center; width:46px; height:46px; border-radius:10px; color:#723e2b; background:#f0ddca; font-weight:720; }
.project-name,.grow { flex:1; }
.project-name strong { font-size:1.05rem; }
.project-version { color:var(--muted); font-size:.88rem; }
.project-row>.ico { color:var(--muted); }
.information,.facts-box { padding:23px; }
.subhead,.section-label { display:flex; gap:12px; align-items:center; justify-content:space-between; }
.facts { margin:20px 0 0; display:grid; gap:16px; grid-template-columns:repeat(3,minmax(0,1fr)); }
.facts div { min-width:0; }
.facts dt,.field-note,.field small { font-size:.81rem; color:var(--muted); }
.facts dd { margin:4px 0 0; font-size:.93rem; overflow-wrap:anywhere; }
.facts.vertical { display:grid; grid-template-columns:1fr; gap:14px; }
.information h3 { margin:22px 0 7px; }
.information p { max-width:70ch; }
.tags { display:flex; flex-wrap:wrap; gap:4px; }
.tag,.count { border-radius:4px; background:var(--soft); color:#51534c; font-size:.78rem; padding:2px 7px; }
.section-label { justify-content:flex-start; margin:28px 0 12px; flex-wrap:wrap; }
.section-label .text-button { margin-left:auto; }
.tabs { display:flex; gap:21px; margin-bottom:16px; border-bottom:1px solid var(--line); }
.tabs button { background:transparent; border:0; border-bottom:2px solid transparent; margin-bottom:-1px; padding:9px 2px 11px; color:var(--muted); font-weight:600; }
.tabs button[aria-pressed="true"] { border-color:var(--terra); color:var(--terra); }
.access-row + .access-row { border-top:1px solid var(--line); }
.row-actions { justify-content:flex-end; }
.thread-state { display:flex; flex-wrap:wrap; gap:11px; align-items:center; margin-bottom:10px; color:var(--muted); font-size:.92rem; }
.thread-head { margin-bottom:23px; }
.thread-head h1 { font-size:clamp(1.75rem,2.7vw,2.55rem); max-width:36ch; }
.thread-head .actions { margin-top:16px; }
.thread-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(175px,245px); align-items:start; gap:16px; }
.conversation { overflow:hidden; }
.conversation>.subhead { padding:18px 20px; border-bottom:1px solid var(--line); flex-wrap:wrap; gap:4px 10px; }
.waiting,.delivery { color:var(--muted); font-size:.77rem; }
.message-list { display:grid; gap:15px; padding:20px; max-height:65dvh; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; }
.message-list:focus-visible { outline-offset:-3px; }
.jump-row { padding:0 20px 8px; text-align:right; }
.message-list article { min-width:0; }
.bubble { display:table; max-width:93%; padding:11px 14px; border-radius:2px 12px 12px; background:#efeee6; }
.bubble.mine { margin-left:auto; background:#f2dfd1; border-radius:12px 2px 12px 12px; }
.bubble.system { width:100%; max-width:none; background:transparent; border:1px dashed #cfcec3; border-radius:7px; }
.message-top { display:flex; gap:11px; align-items:baseline; justify-content:space-between; flex-wrap:wrap; font-size:.8rem; margin-bottom:4px; }
.message-top time { font-size:.72rem; color:#625e52; }
.preserve { white-space:pre-wrap; overflow-wrap:anywhere; }
.delivery { display:block; margin-top:5px; }
.attachment { margin-top:7px; max-width:min(100%,460px); }
.attachment img,.attachment video { display:block; max-width:100%; max-height:340px; object-fit:contain; border-radius:6px; }
.attachment audio { display:block; width:100%; min-width:0; max-width:320px; }
.file-link { display:flex; gap:6px; align-items:center; color:#634431; font-size:.86rem; padding:4px 0; }
.file-link span { min-width:0; overflow-wrap:anywhere; }
.file-link small { white-space:nowrap; color:#625e52; }
.composer { border-top:1px solid var(--line); padding:16px 20px; }
.composer>label,.field>span,fieldset legend { display:block; font-size:.86rem; font-weight:620; margin-bottom:5px; }
textarea { resize:vertical; width:100%; }
.composer textarea { min-height:78px; }
.composer-actions { margin-top:8px; display:flex; align-items:flex-end; flex-wrap:wrap; gap:8px; }
.composer-actions>[type="submit"] { margin-left:auto; }
.attach-button { position:relative; overflow:hidden; cursor:pointer; background:transparent; font-weight:550; }
.attach-button input { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; }
.attach-button:focus-within { outline:3px solid var(--focus); outline-offset:2px; }
.selection { width:100%; display:grid; gap:4px; }
.selection:empty { display:none; }
.chosen-file { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:5px 8px; border:1px solid var(--line); border-radius:5px; font-size:.84rem; }
.chosen-file>span { min-width:0; overflow-wrap:anywhere; }
.chosen-file small { color:var(--muted); }
.loading { padding:28px; color:var(--muted); }
dialog { width:min(560px,calc(100vw - 32px)); max-height:calc(100dvh - 38px); padding:0; border:1px solid #b7b8ad; background:var(--panel); color:var(--ink); border-radius:15px; box-shadow:0 16px 60px #1f231e40; }
dialog::backdrop { background:#1e211ec2; }
.dialog-head { position:sticky; top:0; z-index:1; background:var(--panel); display:flex; align-items:center; gap:12px; justify-content:space-between; border-bottom:1px solid var(--line); padding:14px 21px; }
.dialog-head h2 { font-size:1.4rem; }
.dialog-head .icon-button { width:34px; height:34px; min-height:34px; border-color:transparent; }
.form { display:grid; gap:15px; padding:20px 22px 22px; }
.field { display:grid; min-width:0; }
.field>span { margin-bottom:5px; }
.field small { margin-top:4px; }
.field input,.field textarea,.field select { width:100%; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:13px; }
.field-stack { display:grid; gap:12px; }
.radio-list { border:0; margin:0; padding:0; }
.radio-list label { display:flex; gap:10px; align-items:center; padding:7px 0; }
input[type="radio"] { accent-color:var(--terra); width:17px; height:17px; flex:none; margin:0; }
.compact-radio { display:flex; gap:15px; flex-wrap:wrap; }
.compact-radio legend { width:100%; }
.dialog-actions { justify-content:flex-end; padding-top:10px; }
.inline-error,.form-error { color:var(--danger); font-size:.9rem; }
.form-error { margin-top:6px; border-radius:6px; padding:8px 11px; background:#f9e7de; }
.notice { position:fixed; z-index:30; bottom:max(20px,env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); width:max-content; max-width:calc(100% - 32px); border-radius:9px; padding:11px 18px; box-shadow:0 6px 20px #1b211e26; background:#304d3e; color:#fffaf0; font-size:.91rem; }
.notice.bad { background:#74372d; }
.login { min-height:100dvh; display:grid; place-items:center; padding:clamp(18px,5vw,70px); }
.login-panel { position:relative; isolation:isolate; overflow:hidden; width:min(100%,950px); min-height:475px; display:flex; align-items:flex-start; flex-direction:column; justify-content:space-between; padding:clamp(28px,5vw,64px); background:var(--panel); border:1px solid var(--line); border-radius:16px; }
.login-panel::before { content:""; position:absolute; z-index:-1; top:0; bottom:0; right:0; width:27%; background:#2e3230; }
.login-symbol { position:absolute; right:8.5%; bottom:42%; display:flex; align-items:flex-end; gap:6px; transform:skew(-20deg); }
.login-symbol i { display:block; width:15px; background:#df946b; height:55px; }
.login-symbol i:first-child { height:32px; }
.login-symbol i:last-child { height:77px; }
.dialog-notice { margin:0 20px 14px; font-size:.86rem; color:#34513b; }
.login-copy { max-width:65%; margin:38px 0; }
.login-copy h1 { font-size:clamp(2rem,4vw,3.5rem); }
.login-copy p { margin:12px 0 22px; max-width:43ch; color:var(--muted); }
.button.large { min-height:45px; padding:11px 18px; }
.login-note { display:flex; align-items:center; gap:8px; font-size:.83rem; color:var(--muted); }

.ico { --stroke:1.65px; position:relative; display:inline-block; width:17px; height:17px; flex:none; color:inherit; vertical-align:middle; }
.ico::before,.ico::after { content:""; pointer-events:none; position:absolute; box-sizing:border-box; }
.i-plus::before,.i-close::before,.i-menu::before { top:8px; left:2px; width:13px; border-top:var(--stroke) solid; }
.i-plus::after,.i-close::after { top:2px; left:8px; height:13px; border-left:var(--stroke) solid; }
.i-close { transform:rotate(45deg); }
.i-menu::before { box-shadow:0 -5px currentColor,0 5px currentColor; }
.i-search::before { border:var(--stroke) solid; inset:1px 4px 4px 1px; border-radius:50%; }
.i-search::after { right:0; bottom:2px; width:7px; border-top:var(--stroke) solid; transform:rotate(45deg); }
.i-inbox::before { inset:2px 0; border:var(--stroke) solid; border-radius:3px; }
.i-inbox::after { left:1px; right:1px; top:8px; height:4px; border-top:var(--stroke) solid; clip-path:polygon(0 0,33% 0,35% 80%,65% 80%,67% 0,100% 0,100% 100%,0 100%); background:currentColor; }
.i-chat::before { inset:2px 1px 4px; border:var(--stroke) solid; border-radius:4px; }
.i-chat::after { left:4px; bottom:2px; width:5px; height:5px; border-left:var(--stroke) solid; transform:skewY(-30deg); }
.i-stack::before { width:11px; height:11px; top:1px; left:3px; border:var(--stroke) solid; transform:rotate(45deg) skew(-9deg,-9deg); }
.i-stack::after { width:11px; height:11px; left:3px; top:4px; border-right:var(--stroke) solid; border-bottom:var(--stroke) solid; transform:rotate(45deg) skew(-9deg,-9deg); }
.i-folder::before { inset:4px 0 1px; border:var(--stroke) solid; border-radius:2px; }
.i-folder::after { left:0; top:2px; width:8px; height:5px; border-left:var(--stroke) solid; border-top:var(--stroke) solid; border-radius:2px; }
.i-people::before { width:7px; height:7px; top:1px; left:4px; border:var(--stroke) solid; border-radius:50%; }
.i-people::after { width:14px; height:7px; left:1px; bottom:1px; border:var(--stroke) solid; border-radius:9px 9px 2px 2px; }
.i-key::before { width:9px; height:9px; left:0; top:0; border:var(--stroke) solid; border-radius:50%; }
.i-key::after { width:11px; height:4px; right:0; bottom:3px; border-bottom:var(--stroke) solid; border-right:var(--stroke) solid; transform:rotate(45deg); }
.i-lock::before { width:12px; height:9px; bottom:1px; left:2px; border:var(--stroke) solid; border-radius:2px; }
.i-lock::after { width:8px; height:8px; top:1px; left:4px; border:var(--stroke) solid; border-radius:5px 5px 1px 1px; }
.i-arrow::before,.i-left::before,.i-external::before { top:8px; left:1px; width:14px; border-top:var(--stroke) solid; }
.i-arrow::after,.i-left::after,.i-external::after,.i-exit::after { width:7px; height:7px; right:2px; top:5px; border-top:var(--stroke) solid; border-right:var(--stroke) solid; transform:rotate(45deg); }
.i-left { transform:rotate(180deg); }
.i-external { transform:rotate(-45deg); }
.i-exit::before { top:2px; left:0; bottom:1px; width:9px; border:var(--stroke) solid; border-right:0; }
.i-clip { transform:rotate(38deg); }
.i-clip::before { inset:0 4px 1px; border:var(--stroke) solid; border-radius:6px; }
.i-clip::after { inset:0 7px 4px; border-bottom:var(--stroke) solid; border-left:var(--stroke) solid; border-radius:0 0 2px 2px; }
.i-refresh::before { inset:2px; border:var(--stroke) solid; border-right-color:transparent; border-radius:50%; }
.i-refresh::after { width:6px; height:6px; top:0; right:1px; border-bottom:var(--stroke) solid; border-right:var(--stroke) solid; }
.login-alt { margin-top:18px; width:min(100%,400px); }
.login-alt summary { width:fit-content; cursor:pointer; color:var(--terra); font-size:.91rem; font-weight:600; }
.login-alt .form { padding:13px 0 0; }
.login-copy .form-error { margin:0; }
.login-alt .button { justify-self:start; }
.profile-open { text-align:left; background:transparent; border:0; color:inherit; padding:3px 0; }
.profile-open:hover b { text-decoration:underline; }
.grant-assets { margin-top:7px; }
.grant-assets summary { color:var(--terra); width:fit-content; cursor:pointer; font-size:.85rem; }
.grant-assets .preserve { margin:7px 0; font-size:.9rem; }
.grant-title { justify-self:start; background:transparent; border:0; padding:0; color:var(--ink); font-weight:650; text-align:left; overflow-wrap:anywhere; }
.grant-title:hover { text-decoration:underline; text-underline-offset:3px; }
.grant-controls { margin-top:14px; }
.work-steps { border-bottom:1px solid var(--line); padding:14px 20px; }
.work-steps summary { cursor:pointer; font-weight:600; }
.work-steps dl { margin-top:10px; }
.public-item { padding:15px 20px; }
.public-item + .public-item { border-top:1px solid var(--line); }
.public-item small { color:var(--muted); display:block; margin-bottom:4px; }
.missing-files { margin:0; padding-left:20px; overflow-wrap:anywhere; }
.missing-files li + li { margin-top:12px; }
.missing-files small,.pending-slot span { color:var(--muted); font-size:.83rem; }
.pending-slot { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:4px; }
.pending-caption { padding:8px 12px; background:var(--soft); border-radius:5px; }
@media(max-width:1050px) {
  .shell { grid-template-columns:205px minmax(0,1fr); }
  .sidebar { padding-left:11px; padding-right:11px; }
  .page { padding-left:25px; padding-right:25px; }
  .thread-layout { grid-template-columns:minmax(0,1fr) minmax(153px,190px); }
  .facts-box { padding:17px; }
  .ticket-row { gap:10px; }
}
@media(max-width:800px) {
  .shell { display:block; }
  .mobile-bar { display:flex; align-items:center; gap:13px; padding:9px 18px; border-bottom:1px solid var(--line); background:var(--panel); }
  .mobile-bar .brand { font-size:18px; }
  .mobile-bar .brand small { display:none; }
  .mobile-bar .mark { width:25px; height:27px; border-radius:6px; }
  .sidebar { position:fixed; inset:0 auto 0 0; width:min(270px,85vw); transform:translateX(-103%); visibility:hidden; height:100dvh; padding:27px 15px 16px; }
  .menu-open .sidebar { transform:translateX(0); visibility:visible; }
  .icon-button.drawer-close { display:inline-flex; position:absolute; top:27px; right:13px; border:none; min-height:33px; width:33px; height:33px; color:#e6e3db; background:transparent; }
  .menu-open .scrim { display:block; position:fixed; inset:0; z-index:4; border:0; background:#171a17a6; }
  .menu-open { overflow:hidden; }
  .page { padding:27px 20px 60px; }
  .thread-layout { grid-template-columns:minmax(0,1fr) minmax(155px,195px); }
}
@media(max-width:620px) {
  .page { padding:22px 13px 54px; }
  .page-head { align-items:flex-start; gap:10px; flex-wrap:wrap; margin-bottom:19px; }
  .page-head h1 { font-size:1.98rem; }
  .page-head p { margin-top:6px; font-size:.92rem; }
  .actions { flex-wrap:wrap; }
  .page-head .actions { flex-shrink:1; }
  .filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
  .search { grid-column:1/-1; max-width:none; }
  .filters select { width:100%; }
  .ticket-row { grid-template-columns:minmax(0,1fr) auto; gap:4px 8px; padding:13px; align-items:start; }
  .ticket-row.table-head { display:none; }
  .table-head + .row-link { border-top:0; border-radius:var(--radius) var(--radius) 0 0; }
  .ticket-name { grid-column:1; grid-row:1; }
  .ticket-project { grid-column:1; grid-row:2; display:block; }
  .ticket-project strong { font-weight:500; font-size:.79rem; color:var(--muted); }
  .ticket-project small { display:none; }
  .ticket-row>span:nth-child(3) { grid-column:2; grid-row:1; justify-self:end; max-width:119px; }
  .ticket-row .when { grid-column:2; grid-row:2; justify-self:end; margin:0; }
  .empty { min-height:224px; padding:32px 17px; }
  .project-row,.access-row { gap:10px; padding:14px 12px; flex-wrap:wrap; }
  .access-row .grow { min-width:calc(80% - 50px); }
  .project-version { display:none; }
  .row-actions { justify-content:flex-start; margin-left:46px; }
  .button,.attach-button,.filters select,.text-button { min-height:41px; }
  .information,.facts-box { padding:17px; }
  .facts { grid-template-columns:1fr; gap:11px; }
  .subhead { align-items:flex-start; flex-wrap:wrap; gap:7px; }
  .thread-layout { display:flex; flex-direction:column; }
  .conversation,.facts-box { width:100%; }
  .facts.vertical { grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
  .thread-head { margin-bottom:16px; }
  .conversation>.subhead,.message-list,.composer,.work-steps { padding:14px; }
  .bubble { max-width:95%; }
  .message-top { gap:3px 8px; }
  .form-grid { grid-template-columns:1fr; gap:12px; }
  .form { padding:14px; gap:12px; }
  .dialog-head { padding:11px 14px; }
  dialog { max-height:calc(100dvh - 20px); width:calc(100% - 18px); }
  .dialog-actions { gap:7px; }
  .login { padding:13px; }
  .login-panel { min-height:460px; padding:24px; }
  .login-panel::before,.login-symbol { display:none; }
  .login-copy { max-width:100%; margin:30px 0; }
  .empty-icon { width:43px; height:43px; }
}
@media(prefers-reduced-motion:no-preference) {
  dialog[open] { animation:open-dialog .16s cubic-bezier(.13,.75,.33,1); }
  @keyframes open-dialog { from { transform:translateY(5px); opacity:.88; } to { transform:translateY(0); opacity:1; } }
}
