:root { --console-ink: #202330; --console-muted: #596274; --console-line: #dce0e8; --console-accent: #5345cd; --wash: #f6f7fa; --muted: var(--console-muted); --quiet: #626b7d; --line: var(--console-line); }
body { background: var(--wash); color: var(--console-ink); }
.content { max-width: 1550px; padding: clamp(19px,2.7vw,42px) clamp(16px,2.8vw,48px) 54px; }
.sidebar { background: #20212c; }
.brand small { letter-spacing: 0; }
.nav-item { min-height: 40px; border-radius: 6px; }
.nav-item[aria-current="page"] { background: #353545; box-shadow: inset 3px 0 #c0abff; }
.nav-item[aria-current="page"] .icon { color: #d9cfff; }
.nav-heading { margin-top: 24px; color: #b4aec2; font-weight: 620; letter-spacing: .055em; }
.project-dot { border-radius: 3px; width: 9px; height: 9px; }
.project-nav:nth-of-type(3n+1) .project-dot { background: #a397da; }
.project-nav:nth-of-type(3n+2) .project-dot { background: #83b0a5; }
.project-nav .nav-name { font-size: 12px; }
.topbar { background: #fff; height: 56px; }
.global-search { background: #f6f7fa; border-color: var(--console-line); }
.global-search:hover { background: #eff0f6; }
.my-work { max-width: none; }
.desk-titlebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0 18px; color: var(--console-ink); border-bottom: 1px solid #d1d6e0; }
.desk-date { color: #657082; margin: 0; font-size: 12px; font-weight: 520; }
.desk-titlebar h1,.page-heading h1,.site-title h1,.explorer-mast h1 { font: 660 clamp(32px,3.2vw,51px)/1.04 "Instrument Sans",Inter,sans-serif; letter-spacing: -.054em; }
.desk-titlebar .my-work-new { background: #292735; border-color: #292735; color: #fff; }
.desk-titlebar .my-work-secondary { background: white; border-color: #c9cfdb; color: #353748; }
.desk-titlebar .btn { min-height: 40px; }
.work-desk { display: grid; grid-template-columns: minmax(0,2.15fr) minmax(210px,.88fr); gap: clamp(16px,2vw,29px); align-items: start; margin-top: 20px; }
.desk-mail,.desk-shelf,.desk-shelf section,.follow-copy { min-width: 0; }
.desk-section-head,.folder-toolbar,.explorer-mast { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.desk-section-head { margin-bottom: 11px; }
.desk-section-head h2,.section-label,.folder-toolbar h2,.workspace-dialog-header h2 { font: 660 clamp(18px,1.55vw,25px)/1.18 "Instrument Sans",Inter,sans-serif; letter-spacing: -.035em; }
.desk-link,.desk-create { display: inline-flex; align-items: center; gap: 3px; color: #4c429d; font-size: 12px; font-weight: 650; }
.desk-link .icon { font-size: 15px; }
.desk-link:hover,.desk-create:hover,.review-action:hover { text-decoration: underline; text-underline-offset: 3px; }
.desk-shelf > section + section { margin-top: 22px; }
.desk-shelf .status-panel { font-size: 13px; margin-block: 0; }
.desk-create { padding-inline: 2px; min-height: 36px; }
.jacket-grid { grid-template-columns: repeat(auto-fill,minmax(min(100%,200px),1fr)); gap: 8px; }
.jacket-grid .project-jacket { background: #fff; border-color: var(--console-line); border-radius: 8px; min-height: 57px; padding: 10px; }
.jacket-grid .project-jacket:hover { border-color: #ada4dd; background: #f8f7fe; }
.jacket-grid .project-icon { width: 31px; height: 31px; margin: 0; align-self: center; border: 0; border-radius: 7px; background: #eeeafc; color: #67569b; }
.jacket-grid .project-jacket:nth-child(3n+2) .project-icon { background: #e4f1ed; color: #317161; }
.jacket-grid .project-jacket:nth-child(3n) .project-icon { background: #f6ecd8; color: #8c6732; }
.jacket-grid .project-icon .icon { font-size: 17px; }
#home-projects .jacket-grid { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--console-line); border-radius: 9px; overflow: hidden; background: white; }
#home-projects .project-jacket { border: 0; border-radius: 0; min-height: 49px; }
#home-projects .project-jacket + .project-jacket { border-top: 1px solid #eceef3; }
#home-projects .project-jacket:focus-visible { outline-offset: -3px; }
#follow-ups { border: 1px solid var(--console-line); border-radius: 10px; background: #fff; overflow: hidden; }
#follow-ups:not(:has(.follow-row)) { padding: 0; }
#follow-ups:not(:has(*)) { padding: 19px; }
.queue-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 10px 13px; border-bottom: 1px solid var(--console-line); background: #fcfcfe; gap: 6px 10px; }
.queue-filters { display: flex; align-items: center; gap: 3px; }
.queue-filter { font-size: 12px; min-height: 32px; padding: 0 9px; background: transparent; border: 0; border-radius: 5px; color: #586272; }
.queue-filter[aria-pressed="true"] { color: #4638a1; background: #ece9fb; }
.queue-metric { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.queue-count { font: 560 11px/1.3 Inter,sans-serif; color: var(--console-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.queue-list .follow-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px 18px; padding: 14px 17px; background: #fff; border: 0; }
.queue-list .follow-row + .follow-row { border-top: 1px solid #e5e8ef; }
.follow-title { font: 650 16px/1.28 "Instrument Sans",Inter,sans-serif; letter-spacing: -.02em; }
.follow-state { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 620; color: #326756; margin: 0 0 6px; }
.follow-state::before { width: 6px; height: 6px; margin: 0; }
.follow-source { color: #51596a; line-height: 1.45; }
.follow-source a { color: #485377; text-underline-offset: 2px; }
.follow-evidence { color: #687180; line-height: 1.45; }
.queue-row-actions { display: grid; align-items: center; justify-items: end; gap: 4px; }
.queue-row-actions .btn-secondary { color: #35324a; background: white; border: 1px solid #c8c9d7; min-height: 33px; padding: 0 10px; font-size: 12px; }
.queue-row-actions .btn-secondary:hover { background: #f3f2fa; border-color: #a09bb7; }
.review-action,.queue-undo { min-height: 30px; color: #544b86; border: 0; background: transparent; padding: 0 3px; font-size: 12px; font-weight: 580; }
.queue-feedback { display: flex; align-items: center; gap: 10px; color: #394a43; font-size: 12px; background: #f2f7f4; }
.queue-feedback:has(span:not(:empty)) { min-height: 36px; padding: 4px 14px; border-top: 1px solid #dce8e1; }
.queue-undo { color: #3d4f46; text-decoration: underline; }
.queue-scope { margin: 0; padding: 9px 15px; color: var(--console-muted); font-size: 11px; }
.queue-empty,.quiet-desk { padding: 20px; }
.queue-empty strong { font-size: 15px; }
.queue-empty p,.quiet-desk p { color: var(--console-muted); font-size: 13px; }
.queue-empty p { margin: 5px 0 0; }
.quiet-desk p { margin: 0 0 14px; }
.desk-search-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 7px; }
.desk-search-form label { display: grid; flex: 1 1 160px; min-width: 0; gap: 6px; font-size: 12px; font-weight: 650; }
.desk-search-form input { min-width: 0; min-height: 39px; padding: 8px 10px; border: 1px solid #b6becd; border-radius: 6px; }
.desk-search-submit { min-height: 39px; background: #37324b; color: #fff; }
.explorer-mast,.project-list-heading { margin: 0; border: 0; padding: 0 0 17px; }
.explorer-mast h1 { margin-top: 5px; overflow-wrap: anywhere; }
.project-back,.folder-link-copy { color: #554998; font-size: 12px; }
.project-back:hover { text-decoration: underline; }
.library-tabs { display: flex; gap: 18px; overflow-x: auto; border-bottom: 1px solid #d3d8e3; }
.library-tabs a { padding: 12px 2px; font-size: 13px; font-weight: 600; color: var(--console-muted); white-space: nowrap; }
.library-tabs a[aria-current] { box-shadow: inset 0 -3px #6a56c0; color: #4e418e; }
.library-tabs a:focus-visible { outline-offset: -3px; }
.site-path { margin: 13px 0 5px; }
.folder-toolbar { padding-bottom: 14px; border-bottom: 1px solid var(--console-line); }
.folder-title-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 12px; }
.folder-toolbar h2 { font-size: 25px; overflow-wrap: anywhere; }
.folder-link-copy { min-height: 32px; }
.folder-link-copy .icon { font-size: 15px; }
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,185px),1fr)); gap: 8px; }
.folder-tile { display: flex; align-items: center; gap: 10px; min-height: 49px; padding: 10px 12px; background: white; border: 1px solid var(--console-line); border-radius: 7px; font-size: 13px; font-weight: 610; overflow-wrap: anywhere; }
.folder-tile:hover { border-color: #aaa3c4; background: #faf9fd; }
.folder-tile > .icon { margin-left: auto; font-size: 16px; color: #83859a; }
.folder-shape { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none; background: #efedf9; color: #6959a0; border-radius: 5px; }
.folder-shape::before { content: "folder"; font: 18px/1 "Material Symbols Rounded"; }
.explorer-group { margin-top: 20px; }
.explorer-group h3 { margin: 0 0 10px; font: 650 15px "Instrument Sans",Inter,sans-serif; }
.folder-empty { padding: 25px; text-align: center; border: 1px dashed #c4cad6; border-radius: 9px; margin-top: 15px; }
.folder-empty h3 { font-size: 17px; margin: 6px 0; }
.folder-empty p { margin: 0; font-size: 13px; color: var(--console-muted); }
.explorer-return { display: inline-block; margin-top: 12px; }
[data-search-key="ctrl"] .global-search kbd::before { content: "Ctrl K"; }
.follow-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 10px; }
.follow-heading .follow-state { margin: 0; font-size: 10.5px; }
.queue-row-actions .review-action { font-size: 11.5px; }
#follow-ups.queue-error { padding: 15px; }
.queue-empty .workspace-link { font-size: 12px; display: inline-block; margin-top: 9px; }
.queue-keys { display: none; margin: 0; padding: 7px 14px; color: #574f74; background: #f3f1fa; font-size: 11px; }
#follow-ups:has(.review-action:focus-visible) .queue-keys { display: block; }
.desk-titlebar > div:first-child { display: flex; gap: 7px 16px; align-items: baseline; flex-wrap: wrap; }
.desk-titlebar h1 { order: -1; font-size: clamp(30px,3.2vw,44px); }
.queue-focus-toggle,.queue-step { min-height: 32px; border: 1px solid #c6ccd8; background: white; color: #41495a; border-radius: 5px; padding: 0 9px; font-size: 12px; font-weight: 630; }
.queue-focus-toggle[aria-pressed="true"] { background: #252c3c; border-color: #252c3c; color: white; }
.queue-focus-toggle[aria-pressed="true"]::before { content: "✓ "; }
.queue-stepper { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--console-line); background: #f8f9fc; }
.queue-position { font-size: 11px; color: var(--console-muted); font-variant-numeric: tabular-nums; }
.queue-list .queue-lead { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0,1fr); align-content: center; gap: 17px; min-height: 190px; padding: 22px clamp(17px,2.4vw,34px); color: #fdfdfd; overflow: hidden; --signal-color: #a9ddce; --signal-surface: #1d2d31; background: var(--signal-surface); }
.queue-lead::before { content: ""; position: absolute; z-index: -1; inset: 0 0 0 35%; background: linear-gradient(90deg,var(--signal-surface),transparent 85%),url(assets/my-work-relief.webp) right 50% / cover; opacity: .68; }
.queue-lead .follow-copy { padding-right: 90px; max-width: 100%; }
.queue-lead .follow-state { margin: 0 0 9px; color: #c2edd6; font-size: 11.5px; }
.queue-lead .follow-state::before { background: #82d7ad; }
.queue-lead[data-state="unmatched"] .follow-state { color: #f3d799; }
.queue-lead[data-state="unavailable"] .follow-state { color: #e1d5e8; }
.queue-lead .follow-title { font-size: clamp(25px,2.8vw,43px); letter-spacing: -.045em; font-weight: 630; line-height: 1.06; color: #fff; }
.queue-lead .follow-source { margin-top: 8px; color: #edf0f9; }
.queue-lead .follow-source a { color: #fff; }
.queue-lead .follow-evidence { color: #cbd2df; }
.queue-lead .queue-row-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.queue-lead .queue-row-actions .btn-secondary { background: #f5ce55; color: #262124; border-color: #f5ce55; min-height: 36px; padding: 0 14px; }
.queue-lead .queue-row-actions .btn-secondary:hover { background: #ffe28b; }
.queue-lead .review-action { padding-inline: 5px; color: #f8f8fb; }
.queue-lead :focus-visible { outline-color: #ffd762; }
.queue-list .follow-row:not(.queue-lead) { padding-block: 10px; }
.queue-loading { display: flex; align-items: center; gap: 14px; min-height: 118px; padding: 22px; color: #424b59; }
.queue-loading-mark { width: 27px; height: 27px; border: 3px solid #e0e2ea; border-top-color: #7967a2; border-radius: 50%; }
.queue-empty:has(.workspace-link) { border-left: 4px solid #5e987b; background: #f0f7f2; display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 3px 14px; padding-block: 24px; }
.quiet-desk { border-left: 4px solid #b8a06b; }
.desk-titlebar .my-work-new:hover { background: #443d50; }
.queue-empty:has(.workspace-link)::before { content: "✓"; grid-row: 1 / 4; display: grid; place-items: center; align-self: start; width: 42px; height: 42px; border: 1px solid #97b6a2; border-radius: 50%; color: #315940; font: 650 22px Inter,sans-serif; background: #d8ebdf; }
.queue-track { display: flex; gap: 3px; padding: 7px 9px; border-bottom: 1px solid #cbd2df; background: #eef1f6; }
.queue-segment { --signal: #728396; position: relative; display: flex; flex: 1 1 0; align-items: center; gap: 6px; min-width: 0; min-height: 35px; padding: 4px 7px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #435265; text-align: left; font: 580 11px Inter,sans-serif; }
.queue-segment[data-state="matched"] { --signal: #3e8c79; }
.queue-segment[data-state="unmatched"] { --signal: #b37825; }
.queue-segment::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: 2px; background: var(--signal); opacity: .42; }
.queue-segment[aria-pressed="true"] { background: #fff; color: #202635; border-color: #b6bdcb; box-shadow: 0 1px 2px #26304712; }
.queue-segment[aria-pressed="true"]::after,.queue-segment.is-reviewed::after { opacity: 1; }
.queue-segment:hover { background: #fff; }
.queue-segment.is-reviewed { background: #e1f0e7; color: #34664b; --signal: #4e956a; }
.queue-segment .icon { color: var(--signal); font-size: 16px; }
.queue-segment .segment-check { font: 700 15px Inter,sans-serif; }
.queue-segment-title { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.queue-lead[data-state="unmatched"] { --signal-color: #f4d496; --signal-surface: #352c28; }
.queue-lead[data-state="unavailable"] { --signal-color: #c3cfe8; --signal-surface: #263041; }
.lead-signal { position: absolute; top: 24px; right: clamp(17px,2.3vw,32px); display: grid; place-items: center; width: 67px; height: 78px; border: 1px solid var(--signal-color); border-radius: 4px 13px 4px 4px; background: var(--signal-surface); box-shadow: -5px 5px 0 #10202755; color: var(--signal-color); font: 700 15px/1 Inter,sans-serif; letter-spacing: .04em; }
.queue-lead[data-state="matched"] .lead-signal::before { content: ""; position: absolute; top: 0; right: 0; width: 12px; height: 12px; border-left: 1px solid var(--signal-color); border-bottom: 1px solid var(--signal-color); border-radius: 0 10px 0 1px; }
.queue-lead[data-state="unmatched"] .lead-signal { border-style: dashed; border-radius: 7px; }
.queue-lead[data-state="unavailable"] .lead-signal { width: 68px; height: 68px; border-radius: 50%; }
.lead-signal .icon { font-size: 30px; }

@media (max-width: 1100px) {
  .work-desk { grid-template-columns: minmax(0,1fr); }
  .desk-shelf { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .desk-shelf > section + section { margin: 0; }
}

@media (max-width: 720px) {
  .content { padding: 15px 13px 40px; }
  .sidebar:not(.open) { visibility: hidden; }
  .desk-titlebar { min-height: 0; padding: 0 0 13px; gap: 9px; }
  .desk-titlebar .btn,.queue-row-actions .btn,.queue-filter,.review-action,.queue-undo { min-height: 44px; }
  .work-desk { margin-top: 19px; }
  .queue-toolbar { padding: 6px 9px; gap: 3px 7px; column-gap: 5px; }
  .queue-list .follow-row { padding: 12px; grid-template-columns: minmax(0,1fr); gap: 6px; }
  .queue-row-actions { display: flex; justify-content: flex-start; gap: 12px; flex-wrap: wrap; }
  .desk-shelf { grid-template-columns: 1fr; }
  .folder-toolbar .workspace-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .folder-grid { grid-template-columns: repeat(auto-fill,minmax(min(100%,140px),1fr)); }
  .queue-filter { padding-inline: 8px; }
  .desk-titlebar .my-work-actions { margin: 0; }
  .desk-titlebar .desk-date { font-size: 11px; }
  .queue-focus-toggle,.queue-step { min-height: 44px; }
  .queue-focus-toggle { font-size: 11.5px; order: 1; }
  .queue-list .queue-lead { min-height: 182px; padding: 15px; gap: 10px; }
  .queue-lead .queue-row-actions .btn-secondary { min-height: 44px; }
  .queue-metric { order: 2; }
  .queue-track { padding: 4px; gap: 1px; }
  .queue-segment { flex-direction: column; justify-content: center; align-items: center; min-height: 44px; gap: 2px; padding: 3px; font-size: 10px; }
  .queue-segment-title { width: 100%; text-align: center; }
  .queue-lead .follow-copy { padding-right: 49px; }
  .lead-signal,.queue-lead[data-state="unavailable"] .lead-signal { top: 15px; right: 12px; width: 39px; height: 44px; font-size: 9px; }
  .queue-lead[data-state="unavailable"] .lead-signal { height: 39px; }
  .lead-signal .icon { font-size: 21px; }
}

@media (prefers-reduced-motion: no-preference) {
  .queue-loading-mark { animation: queue-load 1s linear infinite; }
  .queue-lead.lead-enter .follow-copy { animation: focus-enter .16s ease-out; }
  @keyframes queue-load { to { transform: rotate(360deg); } }
  @keyframes focus-enter { from { transform: translateY(3px); opacity: .9; } to { transform: none; opacity: 1; } }
}

@media (forced-colors: active) {
  .desk-titlebar { background: Canvas; color: CanvasText; }
  .queue-filter[aria-pressed="true"],.library-tabs a[aria-current] { outline: 1px solid Highlight; outline-offset: -2px; }
  .queue-lead::before { display: none; }
  .queue-list .queue-lead { background: Canvas; color: CanvasText; border: 1px solid; }
  .queue-segment[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -2px; }
}
