:root {
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #272427;
  --muted: #625a5f;
  --canvas: #f6f4f2;
  --surface-soft: #faf8f6;
  --surface-hover: #eeebe8;
  --line: #e4ded9;
  --control-line: #877e83;
  --nav: #242124;
  --nav-light: #3b3438;
  --nav-line: #4d4449;
  --nav-ink: #f0ebee;
  --nav-muted: #c6bcc1;
  --accent: #b42318;
  --accent-hover: #941d14;
  --accent-light: #ff9187;
  --accent-soft: #fcecea;
  --accent-line: #efc2bd;
  --white: #fff;
  --card-shadow: 0 2px 5px #24212409;
  --panel-gutter: clamp(15px, 2.5vw, 27px);
  color: var(--ink);
  background: var(--canvas);
  accent-color: var(--accent);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
a { color: var(--accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; }
button:disabled { opacity: .62; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [contenteditable]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link { position: fixed; inset: 9px auto auto 9px; z-index: 6; padding: 8px 13px; border-radius: 7px; background: var(--white); color: var(--accent-hover); font-weight: 650; }
.skip-link:not(:focus) { width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.sidebar :focus-visible { outline-color: var(--accent-light); }
svg { width: 19px; height: 19px; flex: 0 0 auto; vertical-align: -4px; }
h1,h2,p { margin: 0; }
h1 { font-size: clamp(1.85rem, 3.5vw, 2.8rem); font-weight: 740; letter-spacing: -.04em; line-height: 1.12; overflow-wrap: anywhere; }
h2 { font-size: 1.1rem; line-height: 1.25; letter-spacing: -.016em; }
small { color: var(--muted); font-size: .79rem; }
[hidden] { display: none !important; }
.layout { min-height: 100vh; display: grid; grid-template-columns: 230px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 24px 16px 17px; background: var(--nav); color: var(--nav-ink); }
.sidebar nav { margin-top: 28px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0 10px; }
.brand-logo { display: block; width: 100%; height: auto; }
.brand .brand-logo { max-width: 160px; }
.brand span { color: var(--nav-muted); font-size: .66rem; font-weight: 680; letter-spacing: .12em; text-transform: uppercase; }
.brand:hover, .nav-item:hover, .account:hover { text-decoration: none; }
.nav-label { font-size: .72rem; color: var(--nav-muted); font-weight: 680; margin: 0 11px 7px; }
.nav-item { color: var(--nav-ink); display: flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 550; padding: 7px 11px; border-radius: 7px; min-height: 36px; margin-bottom: 2px; overflow-wrap: anywhere; }
.nav-item svg { color: var(--nav-muted); }
.nav-item:hover,.nav-item.current { background: var(--nav-light); }
.nav-item.current { color: #fff; box-shadow: inset 2px 0 var(--accent-light); }
.nav-item.current svg { color: var(--accent-light); }
.side-projects { overflow: auto; }
.side-project { font-size: .81rem; padding-top: 7px; padding-bottom: 7px; line-height: 1.35; }
.project-dot { flex: 0 0 6px; height: 6px; border-radius: 50%; background: var(--nav-muted); margin-left: 6px; }
.side-project.current .project-dot { background: var(--accent-light); }
.account { display: flex; align-items: center; gap: 9px; padding: 10px 8px 2px; color: var(--white); margin-top: auto; border-top: 1px solid var(--nav-line); font-size: .84rem; min-width: 0; }
.account > span:nth-child(2) { flex: 1; overflow-wrap: anywhere; }
.account svg { color: var(--nav-muted); width: 15px; }
.account small { display: block; color: var(--nav-muted); font-size: .66rem; margin-top: 2px; }
.topbar { min-height: 58px; background: var(--surface-soft); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(18px, 4vw, 52px); gap: 10px; }
.breadcrumbs { display: flex; align-items: center; gap: 7px; font-size: .82rem; min-width: 0; }
.breadcrumbs a { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breadcrumbs a:last-child { color: var(--ink); font-weight: 560; }
.breadcrumbs svg { width: 12px; color: var(--muted); }
.review { color: #715213; background: #fff4d6; padding: 4px 9px; border-radius: 99px; font-size: .72rem; white-space: nowrap; }
.review i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 6px; background: #946e16; }
.mobile-menu { display: none !important; }
.mobile-brand, .nav-scrim { display: none; }
.main { margin: 0 auto; width: 100%; max-width: 1680px; padding: clamp(24px, 2.5vw, 40px) clamp(20px, 4vw, 52px) 64px; }
.surface { min-width: 0; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 14px 22px; margin-bottom: 26px; }
.heading p { margin-top: 7px; color: var(--muted); max-width: 58ch; }
.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 13px; min-height: 37px; border: 1px solid transparent; border-radius: 8px; font-size: .84rem; font-weight: 670; text-decoration: none; text-align: center; color: var(--ink); white-space: nowrap; }
.button svg { width: 16px; height: 16px; }
.button.primary { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 1px 2px #24212420; }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.secondary, .icon-button { border-color: var(--line); background: var(--surface-soft); }
.button.secondary:hover, .icon-button:hover { border-color: var(--control-line); background: var(--surface-hover); text-decoration: none; }
.button-set { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.icon-button { width: 36px; padding: 5px; }
.text-button { color: var(--accent-hover); border: 0; padding: 6px; border-radius: 4px; background: transparent; font-size: .8rem; }
.text-button:hover { text-decoration: underline; }
.text-button.danger { color: var(--accent-hover); margin-top: 8px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 228px), 1fr)); gap: 16px; }
.project-card { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); box-shadow: var(--card-shadow); position: relative; display: flex; flex-direction: column; min-height: 154px; }
.project-card:hover { text-decoration: none; border-color: var(--control-line); }
.project-card h2 { margin-top: 15px; margin-bottom: 5px; flex: 1; overflow-wrap: anywhere; }
.project-icon, .row-icon,.empty-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 7px; background: var(--accent-soft); color: var(--accent-hover); }
.project-icon[data-tone="1"] { background: #e4f0ed; color: #29675f; }
.project-icon[data-tone="2"] { background: #f9efda; color: #835813; }
.project-icon[data-tone="3"] { background: #eeeafa; color: #65509b; }
.card-arrow { position: absolute; top: 21px; right: 19px; color: var(--muted); }
.card-arrow svg { width: 16px; }
.card-summary { display: flex; gap: 12px; color: var(--muted); font-size: .76rem; }
.track { background: var(--surface-hover); border-radius: 3px; height: 4px; margin-top: 12px; overflow: hidden; }
.track > span { height: 100%; display: block; background: var(--accent); border-radius: inherit; }
.panel { border: 1px solid var(--line); border-radius: 13px; background: var(--white); box-shadow: var(--card-shadow); overflow: hidden; margin-bottom: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px var(--panel-gutter); min-height: 60px; border-bottom: 1px solid var(--line); }
.collection-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px var(--panel-gutter); background: var(--surface-soft); }
.collection-more:first-child { border-bottom: 1px solid var(--line); }
.collection-rows + .collection-more { border-top: 1px solid var(--line); }
.row, .task-row, .person-row { display: flex; align-items: center; width: 100%; min-height: 58px; gap: 12px; padding: 11px var(--panel-gutter); border-bottom: 1px solid var(--line); color: var(--ink); }
.row:last-child,.task-row:last-child,.person-row:last-child { border-bottom: 0; }
.row > svg:last-child { color: var(--muted); width: 14px; }
.row:hover { background: var(--surface-soft); text-decoration: none; }
.row-icon { flex: 0 0 auto; width: 32px; height: 32px; }
.row-icon svg { width: 16px; }
.list-preview + .list-preview { border-top: 1px solid var(--line); }
.preview-head { display: flex; align-items: center; gap: 10px; padding: 7px var(--panel-gutter); background: var(--surface-soft); }
.preview-head h3 { margin: 0; min-width: 0; }
.preview-head h3 button { display: flex; align-items: center; gap: 8px; padding: 7px 3px; border: 0; background: none; color: inherit; font-weight: 680; font-size: .95rem; text-align: left; overflow-wrap: anywhere; }
.preview-head h3 svg { width: 14px; height: 14px; color: var(--muted); }
.preview-head h3 button[aria-expanded="true"] svg { transform: rotate(90deg); }
.preview-head small, .preview-link { flex: none; font-size: .8rem; }
.preview-link { margin-left: auto; }
.list-preview .task-row { min-height: 40px; padding-block: 6px; }
.preview-pages { display: flex; align-items: center; gap: 8px; padding: 2px 12px; }
.preview-empty { padding: 9px 17px; color: var(--muted); font-size: .85rem; }
@media (max-width: 530px) {
  .preview-head { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 8px; padding-inline: 10px; }
  .preview-head small { grid-row: 2; padding-left: 25px; }
  .preview-link { grid-column: 2; grid-row: 1 / 3; }
}
.row-name,.person-row > span:nth-child(2),.person-row > div:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.row-name small,.person-row small { display: block; margin-top: 2px; }
.row-name strong, .person-row strong { font-weight: 660; font-size: .91rem; }
.tabs { display: flex; gap: 7px; margin-bottom: 22px; padding-bottom: 7px; overflow: auto; }
.tabs a { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 7px; font-size: .87rem; color: var(--muted); white-space: nowrap; }
.tabs a.selected { color: var(--accent-hover); background: var(--accent-soft); font-weight: 700; }
.tabs a:focus-visible { outline-offset: -2px; }
.tabs svg { width: 16px; height: 16px; }
.overview { margin: -7px 0 24px; color: var(--muted); max-width: 72ch; }
.filters { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 10px var(--panel-gutter); border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.segments { display: flex; flex-wrap: wrap; gap: 3px; }
.segments button { padding: 6px 9px; border-radius: 6px; color: var(--muted); background: transparent; border: 1px solid transparent; font-size: .8rem; }
.segments button.selected { background: var(--accent-soft); color: var(--accent-hover); border-color: var(--accent-line); font-weight: 700; }
.segments span { font-size: .69rem; color: var(--muted); margin-left: 2px; }
.search { display: flex; align-items: center; gap: 7px; background: var(--white); color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; }
.search svg { width: 14px; }
.search input { border: 0; outline-offset: 1px; background: transparent; width: min(20vw, 155px); font-size: .8rem; padding: 4px 0; }
.roster-pages { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.roster-pages .button[aria-disabled="true"] { opacity: .5; cursor: default; }
.check { display: grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; padding: 0; border-radius: 5px; color: #fff; border: 1px solid var(--control-line); background: #fff; }
.check:hover { border-color: var(--accent); background: var(--accent-soft); }
.check:has(svg) { background: var(--accent); border-color: var(--accent); }
.check svg { width: 13px; height: 13px; }
.done .row-name strong { text-decoration: line-through; color: var(--muted); }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 13px; min-width: 0; max-width: 55%; font-size: .76rem; color: var(--muted); }
.task-meta svg { width: 14px; height: 14px; vertical-align: -3px; }
.task-group:not(:last-child) { border-bottom: 1px solid var(--line); }
.child-tasks { list-style: none; margin: 0; padding: 0 var(--panel-gutter) 0 calc(var(--panel-gutter) + 32px); background: var(--surface-soft); }
.child-task { display: flex; align-items: center; gap: 10px; min-height: 40px; padding-block: 6px; }
.child-task + .child-task { border-top: 1px solid var(--line); }
.subtask-preview { background: var(--surface-soft); }
.subtask-preview summary { padding: 6px var(--panel-gutter) 7px calc(var(--panel-gutter) + 32px); color: var(--accent-hover); font-size: .8rem; cursor: pointer; }
.subtask-preview summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.subtask-preview .child-tasks { max-height: 15rem; overflow: auto; scroll-padding-block: 4px; }
.child-title { flex: 1; min-width: 0; color: var(--ink); font-size: .85rem; overflow-wrap: anywhere; }
.child-task.done .child-title { color: var(--muted); text-decoration: line-through; }
.due { white-space: nowrap; }
.avatar { display: inline-grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; font-size: .63rem; font-weight: 750; line-height: 1; background: hsl(var(--hue,215) 49% 89%); color: hsl(var(--hue,215) 57% 28%); overflow: hidden; vertical-align: middle; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-stack { display: inline-flex; align-items: center; max-width: 100%; margin-left: 3px; vertical-align: middle; }
.avatar-stack .avatar { box-shadow: 0 0 0 2px #fff; margin-left: -3px; }
.avatar-count { flex: 0 0 auto; margin-inline-start: 3px; padding: 3px 5px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface-soft); color: var(--muted); font-size: .71rem; font-weight: 680; white-space: nowrap; }
.main.document { --panel-gutter: clamp(16px, 2vw, 28px); }
.document .heading, .main > .heading:has(> .button-set) { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; margin-bottom: 18px; }
.document .heading > .button-set { justify-content: flex-start; }
.document .heading h1 { font-size: clamp(1.9rem, 3.5vw, 2.65rem); }
.thread-body { padding: var(--panel-gutter); }
.thread-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 23px; font-size: .86rem; }
.thread-meta > div { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.thread-meta small { display: block; }
.assignee-roster { list-style: none; display: grid; gap: 3px; padding: 0; margin: 3px 0 0; }
.assignee-roster li { display: flex; align-items: center; gap: 7px; min-width: 0; }
.assignee-details { width: min(14rem, 100%); }
.assignee-details summary { cursor: pointer; padding-block: 3px; }
.assignee-details .assignee-roster { max-height: 9rem; overflow: auto; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; }
.assignee-details :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.thread-meta + .rich, .thread-body > .author + .rich { margin-top: 26px; }
.rich { overflow-wrap: anywhere; line-height: 1.65; }
.rich > * + * { margin-top: .78em; }
.rich ul, .rich ol { padding-inline-start: 1.5em; }
.rich li + li { margin-top: .25em; }
.thread-body > .rich, .comment > .rich { max-width: 72ch; }
.thread-body > .rich { font-size: 1.02rem; }
.rich img { display: block; max-width: 100%; max-height: 560px; height: auto; border-radius: 5px; object-fit: contain; }
.rich figure { margin-left: 0; margin-right: 0; }
.rich pre, .rich table { max-width: 100%; overflow: auto; }
.rich table { border-collapse: collapse; display: block; }
.rich th,.rich td { border: 1px solid var(--line); padding: 4px; }
.rich blockquote { border-left: 3px solid var(--line); padding-left: 10px; margin-inline-start: 0; color: var(--muted); }
.rich a { text-decoration: underline; }
.subtasks { margin-top: 29px; padding-top: 9px; border-top: 1px solid var(--line); }
.inline-heading, .subtask { display: flex; gap: 10px; align-items: center; padding: 8px 0; }
.inline-heading { justify-content: space-between; }
.subtask { border-top: 1px solid var(--line); }
.subtask span { flex: 1; overflow-wrap: anywhere; }
.author { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.author strong { min-width: 0; font-size: .84rem; overflow-wrap: anywhere; }
.author button { margin-left: auto; }
.comment { padding: 18px var(--panel-gutter); border-bottom: 1px solid var(--line); }
.comment:last-of-type { border-bottom: 0; }
.comment .rich { margin: 11px 0 2px; }
.discussion-empty,.padded { padding: 17px var(--panel-gutter); }
#reply-slot { padding: 16px var(--panel-gutter) 19px; background: var(--surface-soft); border-top: 1px solid var(--line); }
.reply-launch { display: flex; align-items: center; gap: 10px; }
.reply-trigger { flex: 1; min-height: 42px; padding-inline: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--muted); text-align: start; }
.reply-trigger:hover { border-color: var(--control-line); }
.reply-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; }
.reply-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.attachments { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 7px; }
.attachments a { padding: 4px 7px; border: 1px solid var(--line); border-radius: 4px; font-size: .77rem; overflow-wrap: anywhere; }
.attachments svg { width: 14px; height: 14px; }
.collection-rows:has(> .attachment-entry) { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.attachment-entry { min-width: 0; }
.attachment-entry:has(.attachment-video) { flex-basis: 100%; }
.attachment-entry .attachments { margin-top: 0; }
.collection-rows:has(> .attachment-entry) + .collection-more { margin-top: 10px; padding-inline: 10px; }
.attachment-video { margin-top: 12px; }
.attachment-video video { display: block; width: min(100%, 720px); max-height: min(60vh, 480px); background: #111; border-radius: 6px; }
.attachment-video button { margin-top: 6px; }
.empty { text-align: center; padding: 28px 14px; color: var(--ink); }
.empty-icon { margin: 0 auto 8px; }
.empty p { color: var(--muted); font-size: .84rem; margin-top: 3px; }
.activity-row { display: flex; gap: 10px; padding: 13px var(--panel-gutter); border-bottom: 1px solid var(--line); }
.activity-row:last-child { border-bottom: 0; }
.activity-row > div { min-width: 0; overflow-wrap: anywhere; }
.activity-row a { text-decoration: underline; }
.activity-row small { display: block; }
.profile-row { display: flex; gap: 13px; align-items: center; }
.profile-row > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.profile-row .avatar { width: 42px; height: 42px; font-size: .9rem; }
.padded > .button-set { margin-top: 12px; }
.login { min-height: 100dvh; display: grid; place-items: center; padding: 20px; background: radial-gradient(ellipse at 80% 0, #49363a, var(--nav) 55%); }
.login-card { width: min(100%, 438px); background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 17px 54px #17131580; }
.login-brand { background: var(--nav); padding: 25px clamp(23px, 6vw, 42px); }
.login-brand .brand-logo { max-width: 250px; }
.login-content { padding: clamp(23px, 6vw, 42px); }
.login-card h1 { font-size: clamp(1.7rem, 7vw, 2.05rem); }
.login-card p { color: var(--muted); margin: 10px 0 15px; }
.login-card button { margin: 3px 5px 3px 0; }
dialog { border: 0; border-radius: 16px; width: min(calc(100% - 24px), 560px); max-height: min(92dvh, calc(100% - 24px)); padding: 0; scroll-padding-block: 66px; color: var(--ink); background: var(--white); box-shadow: 0 24px 76px #24212460; }
dialog:has(.editor) { width: min(calc(100% - 24px), 730px); }
dialog::backdrop { background: #24212490; }
.modal-head,.modal-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 13px var(--panel-gutter); border-bottom: 1px solid var(--line); background: var(--white); }
.modal-head { position: sticky; top: 0; z-index: 1; }
.modal-footer { justify-content: flex-end; border-bottom: 0; border-top: 1px solid var(--line); position: sticky; bottom: 0; z-index: 1; }
dialog:has(.editor) :is(.modal-head, .modal-footer) { border-color: var(--surface-hover); }
dialog:has(.editor) .modal-head h2 { color: var(--muted); font-size: .93rem; }
dialog:has(.editor) .modal-head .icon-button { border-color: transparent; background: transparent; color: var(--muted); }
dialog:has(.editor) .modal-head .icon-button:hover { background: var(--surface-hover); color: var(--ink); }
.modal-body { padding: 19px var(--panel-gutter) 21px; overflow-wrap: anywhere; }
.modal-body > * + * { margin-top: 14px; }
.modal-body input:not([type=checkbox]):not(.visually-hidden),.modal-body select { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--control-line); border-radius: 8px; color: var(--ink); background: var(--white); }
.field-label { display: grid; gap: 5px; min-width: 0; color: var(--ink); font-size: .87rem; font-weight: 650; }
.modal-body .compose-title input[required] { padding: 4px 0 7px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; font-size: clamp(1.35rem, 3vw, 1.75rem); line-height: 1.2; letter-spacing: -.027em; }
.compose-title input::placeholder { color: var(--muted); opacity: 1; }
.modal-body .compose-title input:focus-visible { outline: none; border-bottom-color: var(--accent); }
.task-fields { display: grid; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 14px; }
.task-fields > .field-label { grid-template-columns: minmax(0, 1fr); }
.task-fields input[type=date] { box-sizing: border-box; display: block; inline-size: 100%; min-inline-size: 0; max-inline-size: 100%; min-block-size: 42px; }
/* Safari on iOS uses a content box for the default native appearance. */
@supports (-webkit-touch-callout: none) {
  .task-fields input[type=date] { -webkit-appearance: none; appearance: none; }
}
.task-fields input[type=date]::-webkit-date-and-time-value { min-inline-size: 0; text-align: start; }
people-picker { display: block; min-width: 0; }
people-picker fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
people-picker legend { padding: 0; margin-bottom: 5px; font-size: .87rem; font-weight: 650; }
.people-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid var(--control-line); border-radius: 8px; background: var(--white); color: var(--ink); text-align: start; }
.people-trigger > span:first-child { display: flex; align-items: baseline; min-width: 0; gap: 5px; }
.people-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.people-count { flex: none; font-weight: 650; color: var(--muted); }
.people-chevron { flex: none; width: 7px; height: 7px; margin-inline-end: 2px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.people-trigger[aria-expanded=true] .people-chevron { transform: rotate(225deg); }
dialog.people-panel { position: fixed; inset: var(--people-center, 50%) 0 auto; transform: translateY(-50%); margin: 0 auto; width: min(30rem, calc(100% - 16px)); height: min(34rem, calc(var(--people-height, 100dvh) - 16px)); max-height: none; overflow: hidden; }
.people-panel[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.people-heading { display: grid; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.people-heading h2 { font-size: 1.05rem; }
.people-heading h2:focus { outline: none; }
.people-panel [role=listbox] { overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 4px 8px; }
.people-panel [role=option] { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 46px; padding: 7px 10px; border: 0; border-radius: 6px; text-align: start; color: var(--ink); background: transparent; overflow-wrap: anywhere; }
.people-panel [role=option]:focus-visible { outline-offset: -2px; }
.people-panel [role=option][aria-selected=true] { background: var(--accent-soft); }
.people-panel [role=option]:is(:hover,.active) { box-shadow: inset 0 0 0 1px var(--control-line); }
.people-panel [role=option] small { display: block; color: var(--muted); }
.people-panel [aria-selected=true] b::after { content: '✓'; color: var(--accent); }
.people-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px; border-top: 1px solid var(--line); }
.people-status { color: var(--muted); }
.compose-files { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; }
.attach-control { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--accent-hover); padding: 5px 7px; border-radius: 6px; font-size: .86rem; font-weight: 670; }
.attach-control:hover { background: var(--accent-soft); }
.attach-control:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.attach-control svg { width: 15px; height: 15px; }
.file-names { min-width: 0; color: var(--muted); font-size: .81rem; overflow-wrap: anywhere; }
.inline-field { display: flex; align-items: center; gap: 5px; padding: 3px 0; font-size: .83rem; }
.form-error { color: var(--accent-hover) !important; background: var(--accent-soft); padding: 7px; border-radius: 4px; }
#toast { position: fixed; z-index: 5; inset: auto 15px 15px auto; padding: 8px 13px; display: none; color: #fff; background: var(--nav); border-radius: 6px; max-width: min(420px,calc(100% - 30px)); box-shadow: 0 6px 14px #0003; }
#toast.visible { display: block; }
#toast.error { background: var(--accent-hover); }
@media (max-width: 1050px) {
  .layout { grid-template-columns: 208px minmax(0,1fr); }
}
@media (max-width: 720px) {
  .layout { display: block; }
  .sidebar { display: none; }
  .sidebar.mobile-open { display: flex; position: fixed; z-index: 4; top: 54px; left: 0; bottom: 0; width: min(270px, 88vw); height: auto; overflow-y: auto; overscroll-behavior: contain; box-shadow: 6px 10px 22px #24212444; }
  .nav-scrim { display: block; position: fixed; z-index: 2; inset: 54px 0 0; width: 100%; border: 0; background: #24212450; }
  .topbar { min-height: 54px; padding: 0 12px; position: sticky; z-index: 3; top: 0; }
  .breadcrumbs { flex: 1; }
  .breadcrumbs:has(a:nth-of-type(2)) > :not(:last-child) { display: none; }
  .mobile-menu { display: inline-flex !important; }
  .mobile-brand { display: grid; place-items: center; flex: 0 0 36px; height: 36px; margin-inline: -4px; border-radius: 6px; }
  .mobile-brand:hover { background: var(--surface-hover); }
  .main { padding: 24px 13px 48px; }
  .heading { margin-bottom: 18px; align-items: flex-start; flex-wrap: wrap; }
  .document .heading > .button-set { justify-content: flex-start; max-width: 100%; width: 100%; }
  .search input { width: 105px; }
}
@media (max-width: 410px) {
  .project-grid { grid-template-columns: minmax(0,1fr); }
  .project-card { min-height: 116px; }
  .tabs { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 3px; }
  .tabs a { justify-content: center; padding-inline: 4px; }
  .tabs svg { display: none; }
  .filters { flex-direction: column; align-items: stretch; gap: 7px; }
  .search input { width: 100%; }
  .task-row { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 5px 8px; }
  .child-task { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 4px 8px; }
  .task-meta { grid-column: 2; justify-content: start; max-width: 100%; gap: 6px; }
  .task-meta:empty { display: none; }
  .person-row:has(.button-set) { display: grid; grid-template-columns: auto minmax(0,1fr); }
  .person-row .button-set { grid-column: 2; }
  .profile-row { flex-wrap: wrap; }
  .profile-row > div { flex-basis: calc(100% - 55px); }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.issue-key, .issue-reference > span {
  font: 650 .76rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}
.issue-key { color: var(--muted); margin-inline-end: .4em; }
.heading .issue-key { display: block; margin-bottom: .45rem; color: var(--accent-hover); }
a.issue-reference { color: var(--ink); text-decoration: none; background: var(--surface-soft); border: 1px solid var(--line); border-radius: .4em; padding: .08em .38em; box-decoration-break: clone; -webkit-box-decoration-break: clone; font-size: .94em; overflow-wrap: anywhere; }
a.issue-reference:hover { background: var(--accent-soft); border-color: var(--accent-line); }
.issue-reference > span { color: var(--accent-hover); white-space: nowrap; }
.issue-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); }
.issue-links > a { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.issue-links h2 { flex-basis: 100%; font-size: .86rem; color: var(--muted); }

@media (max-height: 520px) {
  .sidebar { overflow-y: auto; overscroll-behavior: contain; }
  .sidebar nav { flex: none; margin-top: 14px; }
  .sidebar .side-projects { overflow: visible; }
  .sidebar .account { flex: none; }
  .modal-head,.modal-footer { padding-block: 7px; }
  dialog { scroll-padding-block: 55px; }
}
@media (pointer: coarse) {
  .modal-body input:not([type=checkbox]):not(.visually-hidden),
  .modal-body select,
  .search input { font-size: 16px; }
}

:is(.task-row .row-name, .child-title, .subtask-title, .view-results li > a, .release-issue > a):has(> .issue-key) {
  display: grid; grid-template-columns: auto minmax(0,1fr); align-items: baseline; column-gap: .55rem;
}
.task-row .row-name > small { grid-column: 2; }
:is(.task-row .row-name, .child-title, .subtask-title, .view-results li > a, .release-issue > a) > .issue-key {
  inline-size: min(calc(var(--issue-key-length, 5) * 1ch), 17ch);
  margin: 0; overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  :is(.task-row .row-name, .child-title, .subtask-title, .view-results li > a, .release-issue > a) > .issue-key { max-inline-size: 10ch; }
}
