:root {
  color-scheme: light;
  --ink: #202f38;
  --muted: #637078;
  --paper: #f6f6f2;
  --line: #dce2df;
  --teal: #2c655e;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: not-allowed; color: #717b80; background: #eff1ee; border-color: #dce2df; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #367eae; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 10; padding: 12px; background: white; color: var(--ink); }
.skip-link:focus { top: 10px; }
.masthead { min-height: 88px; background: #1e3039; color: #f9faf7; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 4vw; }
.brand { display: flex; gap: 13px; align-items: center; color: inherit; text-decoration: none; font-size: 14px; letter-spacing: .2em; font-weight: 600; }
.brand-mark { display: grid; place-items: center; border: 1px solid #80928f; width: 38px; height: 42px; font: 29px Georgia, serif; color: #e0d4b6; }
.brand-sub { display: block; color: #b2c1c4; font-size: 9px; letter-spacing: .14em; margin-top: 6px; }
.session { font-size: 12px; display: flex; align-items: center; gap: 9px; color: #d2dddd; }
.session-dot { width: 6px; height: 6px; border-radius: 50%; background: #c9b37f; flex-shrink: 0; }
.workspace { max-width: 1800px; margin: auto; padding: 0 4vw; }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 42px 0 30px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 650; color: var(--teal); }
h1 { font: 38px/1.2 Georgia, "Times New Roman", serif; letter-spacing: -.025em; margin: 11px 0 12px; }
.subtitle { font-size: 14px; color: var(--muted); line-height: 1.6; }
.intro-aside { display: grid; gap: 10px; padding-left: 25px; border-left: 1px solid #c8d0ca; font: italic 17px Georgia, serif; color: #64746e; }
.intro-aside .eyebrow { font-style: normal; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.notice { padding: 12px 16px; border: 1px solid #d6dfd9; background: #ecf1ec; color: #496256; border-radius: 5px; font-size: 12px; line-height: 1.6; margin-bottom: 25px; }
.notice a { color: inherit; text-underline-offset: 3px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.views { display: flex; gap: 24px; }
.view-button { background: none; border: 0; padding: 16px 0; border-bottom: 2px solid transparent; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.view-button.selected { color: var(--teal); border-color: var(--teal); font-weight: 650; }
.view-button span { background: #e6ebe6; padding: 2px 6px; border-radius: 4px; font-size: 10px; font-variant-numeric: tabular-nums; }
.tools, .detail-actions { display: flex; align-items: center; gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #ccd5d0; background: white; border-radius: 5px; padding: 9px 12px; font-size: 12px; min-height: 36px; line-height: 1.4; }
.button:hover:not(:disabled) { background: #eaf0ec; border-color: #a9b9b1; }
.button.primary:not(:disabled) { background: var(--teal); color: white; border-color: var(--teal); }
.button.quiet { background: transparent; border-color: transparent; }
.filterbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 20px 0 26px; }
.search-wrap { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 0 12px; width: min(340px, 100%); }
.search-wrap svg { width: 16px; height: 16px; stroke: #798780; fill: none; stroke-width: 1.6; flex-shrink: 0; }
.search-wrap input { min-width: 0; width: 100%; padding: 11px 0; background: transparent; border: 0; font-size: 12px; color: var(--ink); }
input::placeholder, textarea::placeholder { color: #707b7e; opacity: 1; }
.project-filter select { background: transparent; border: 1px solid var(--line); border-radius: 5px; padding: 10px 28px 10px 12px; font-size: 12px; color: var(--ink); max-width: 220px; }
.availability { color: var(--muted); font-size: 11px; line-height: 1.6; }
.filterbar .availability { margin-left: auto; }
.view-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.view-heading h2 { font-size: 12px; font-weight: 600; }
.view-heading > span { font-size: 11px; color: var(--muted); }
.columns { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; align-items: start; }
.column { min-width: 0; --stage: #87979b; }
.column[data-stage="ready"] { --stage: #9e9479; }
.column[data-stage="active"] { --stage: #477e92; }
.column[data-stage="review"] { --stage: #8c7a9a; }
.column[data-stage="blocked"] { --stage: #b17b5d; }
.column[data-stage="complete"] { --stage: #5d8e79; }
.column-heading { display: flex; gap: 8px; align-items: center; border-top: 2px solid var(--stage); padding: 13px 2px; }
.column-heading h3 { font-size: 11px; font-weight: 650; }
.column-count { margin-left: auto; font-size: 10px; color: var(--muted); }
.card { display: block; text-align: left; width: 100%; margin-bottom: 12px; border: 1px solid #dce2dd; background: #fff; border-radius: 6px; padding: 15px 13px 12px; box-shadow: 0 2px 3px #20382c03; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: #a1b5aa; box-shadow: 0 5px 13px #20382c09; transform: translateY(-2px); }
.card-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.project-tag { font-size: 9px; letter-spacing: .07em; font-weight: 650; color: #426659; background: #edf2ed; border-radius: 3px; padding: 4px 6px; overflow-wrap: anywhere; }
.priority { font-size: 10px; color: #697777; text-transform: capitalize; }
.priority.high, .priority.urgent { color: #96573d; }
.card-title { display: block; font-size: 13px; font-weight: 600; line-height: 1.55; margin: 13px 0 9px; overflow-wrap: anywhere; }
.card-summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11px; line-height: 1.6; color: var(--muted); margin-bottom: 20px; overflow-wrap: anywhere; }
.card-owner { display: flex; gap: 7px; align-items: center; font-size: 10px; color: #576866; overflow-wrap: anywhere; }
.avatar { display: inline-grid; place-items: center; border: 1px solid #dde5dd; background: #f3f5f0; width: 23px; height: 23px; border-radius: 50%; font-size: 9px; flex-shrink: 0; }
.card-footer { display: flex; flex-wrap: wrap; gap: 6px 10px; border-top: 1px solid #edf0ec; margin-top: 13px; padding-top: 10px; font-size: 9px; color: #637078; }
.column-empty { border: 1px dashed #dce2da; border-radius: 5px; padding: 24px 8px; font-size: 11px; text-align: center; color: #718077; }
.empty-state { text-align: center; border: 1px dashed #d0d9d2; border-radius: 6px; padding: 55px 20px; margin-top: 20px; }
.empty-symbol { color: #80998a; font-size: 30px; }
.empty-state h3 { font: 24px Georgia, serif; margin: 15px 0 10px; }
.empty-state p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.empty-state .button { margin-top: 18px; }
.task-list { border-top: 1px solid var(--line); }
.task-row { display: flex; align-items: center; gap: 20px; padding: 19px 14px; border-bottom: 1px solid var(--line); background: #ffffff80; }
.row-main { flex: 1; min-width: 0; }
.row-main h3 { font-size: 14px; font-weight: 550; margin: 8px 0; overflow-wrap: anywhere; }
.row-main p { font-size: 11px; color: var(--muted); }
.row-actions { display: flex; gap: 8px; }
.workspace-footer { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 20px 0 30px; margin-top: 45px; color: #69756e; font-size: 10px; letter-spacing: .02em; }
.footer-divider { padding: 0 10px; color: #a4afa6; }
.detail { position: fixed; inset: 0 0 0 auto; width: min(640px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--line); background: #fcfcf9; color: var(--ink); box-shadow: -20px 0 80px #162a3222; }
.detail::backdrop { background: #152a3255; }
body:has(.detail[open]) { overflow: hidden; }
.detail.expanded { width: min(1000px, 100%); }
.detail-top { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); padding: 17px 28px; background: #fcfcf9; }
.detail-content { padding: 30px; }
.detail-tags { display: flex; align-items: center; gap: 10px; }
.stage-tag { font-size: 11px; color: var(--muted); }
.detail h2 { font: 30px/1.3 Georgia, serif; letter-spacing: -.02em; margin: 17px 0 10px; overflow-wrap: anywhere; }
.muted { font-size: 11px; color: var(--muted); }
.detail-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 23px; margin: 25px 0 0; background: #eff2ed; border-radius: 5px; }
.detail-meta dt { font-size: 10px; color: var(--muted); margin-bottom: 7px; }
.detail-meta dd { font-size: 12px; margin: 0; overflow-wrap: anywhere; }
.detail-section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.detail-section h3 { font-size: 12px; font-weight: 650; margin-bottom: 16px; }
.description, .comment-body { font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
.subtask { display: flex; gap: 11px; align-items: flex-start; padding: 10px 0; font-size: 12px; line-height: 1.5; }
.subtask input { accent-color: var(--teal); margin: 2px 0 0; }
.comment { padding: 15px 0; }
.comment.reply { margin-left: 20px; padding-left: 14px; border-left: 2px solid var(--line); }
.comment-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 11px; margin-bottom: 8px; }
.comment-head time { color: var(--muted); }
.comment-label { display: block; font-size: 11px; margin: 20px 0 9px; }
textarea { width: 100%; display: block; resize: vertical; padding: 12px; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; line-height: 1.6; background: #f3f5f1; margin-bottom: 10px; }
.file { padding: 14px; border: 1px solid var(--line); border-radius: 5px; margin-bottom: 10px; overflow-wrap: anywhere; }
.file-name { display: block; font-size: 12px; margin-bottom: 7px; }
.file-note { font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 8px; }
.file-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.detail-content > .availability { margin-top: 20px; }
@media (min-width: 1500px) { .card { padding: 18px 16px 14px; } .card-title { font-size: 14px; } }
@media (max-width: 1150px) { .columns { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 16px; } .intro-aside { display: none; } }
@media (max-width: 700px) {
  .masthead { min-height: 76px; padding: 17px 20px; } .brand { font-size: 12px; } .brand-sub { font-size: 8px; } .session { font-size: 10px; max-width: 110px; }
  .workspace { padding: 0 20px; } .intro { padding: 30px 0 24px; } h1 { font-size: 31px; } .subtitle { font-size: 13px; }
  .toolbar { flex-wrap: wrap; gap: 0; } .views { gap: 19px; } .tools { margin: 8px 0; } .filterbar { gap: 10px; } .search-wrap { flex: 1; min-width: 180px; } .filterbar .availability { margin: 0; flex-basis: 100%; }
  .columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; } .card-title { font-size: 14px; } .card-summary { font-size: 12px; }
  .task-row { flex-wrap: wrap; gap: 12px; } .row-actions { width: 100%; } .workspace-footer { flex-direction: column; font-size: 10px; }
  .detail-top { padding: 15px 20px; } .detail-content { padding: 24px 20px; } .detail h2 { font-size: 28px; } .button { min-height: 42px; }
}
@media (max-width: 440px) { .columns { grid-template-columns: 1fr; } .search-wrap { flex-basis: 100%; } .column-empty { padding: 15px; } .brand-sub { max-width: 160px; line-height: 1.5; } .detail-meta { padding: 17px; gap: 20px 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
.editor { width: min(580px, calc(100% - 32px)); max-height: calc(100dvh - 32px); border: 1px solid var(--line); border-radius: 10px; padding: 28px; color: var(--ink); background: #fcfcf9; }
.editor::backdrop { background: #152a3270; }
.editor h2 { font: 28px Georgia, serif; }
.editor label { display: block; font-size: 12px; margin: 18px 0 7px; }
.editor input, .editor select, .inline-form input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 5px; padding: 10px; background: white; color: var(--ink); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.inline-form { display: flex; gap: 10px; margin-top: 16px; }
.inline-form .button { flex-shrink: 0; }
.form-message { white-space: pre-wrap; font-size: 12px; color: #8d432f; line-height: 1.6; margin: 16px 0; }
.file a { color: var(--teal); font-size: 12px; text-underline-offset: 3px; }
audio { width: 100%; margin-top: 12px; }
body:has(dialog[open]) { overflow: hidden; }
@media (max-width: 440px) { .form-grid { grid-template-columns: 1fr; } .editor { padding: 20px; } .inline-form { flex-wrap: wrap; } }
