:root {
  --paper: #f5f7fb;
  --surface: #fcfdff;
  --ink: #1e2b43;
  --muted: #62718a;
  --line: #e1e7f0;
  --blue: #315fe5;
  --blue-hover: #214bca;
  --blue-pale: #eaf0ff;
  --sage: #eef2f8;
  --forest: var(--blue);
  --forest-hover: var(--blue-hover);
  --orange: #936500;
  --orange-pale: #fff4dc;
  --red: #b43f35;
  --sidebar: 196px;
  --radius: 8px;
  font-family: "Noto Sans CJK SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 16px;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; border: 0; min-height: 44px; color: inherit; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; }
h2 { font-size: 1.07rem; line-height: 1.6; }
h3 { font-size: 1rem; line-height: 1.7; }
small { font-size: .8rem; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #8caaf7; outline-offset: 2px; }
input, select, textarea { width: 100%; min-height: 46px; border: 1px solid #cbd4e2; border-radius: 6px; background: var(--surface); color: var(--ink); padding: 10px 12px; }
input::placeholder, textarea::placeholder { color: #738098; opacity: 1; }
textarea { min-height: 112px; resize: vertical; line-height: 1.8; }
input[type=checkbox] { width: 18px; min-height: 18px; accent-color: var(--blue); }
input[type=file] { padding: 10px; font-size: .87rem; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px; background: var(--ink); color: var(--surface); }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; clip: rect(0,0,0,0); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }

/* Workspace frame */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); display: flex; flex-direction: column; background: #f8faff; border-right: 1px solid var(--line); padding: 25px 12px 18px; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.sidebar .brand { padding: 0 10px 35px; }
.brand-mark { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 8px; font-size: 20px; font-weight: 700; color: var(--blue); background: var(--blue-pale); line-height: 1; letter-spacing: -1px; }
.brand-copy { display: flex; flex-direction: column; gap: 1px; }
.brand-name { font-family: "Avenir Next", "Noto Sans", sans-serif; font-weight: 650; font-size: 19px; letter-spacing: -.6px; }
.brand-sub { font-size: .8rem; color: var(--muted); }
.nav-label { padding: 0 12px; font-size: .8rem; color: #76829a; margin-bottom: 12px; }
.navigation { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 12px; min-height: 44px; border-radius: 6px; background: transparent; color: #53617a; font-size: .93rem; }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item.active { color: #2c55c5; background: #e9efff; font-weight: 600; }
.nav-item:not(.active):hover { background: #eef2f9; color: var(--ink); }
.nav-count { margin-left: auto; font-size: .8rem; min-width: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.sidebar-footer { margin-top: auto; border-top: 1px solid var(--line); padding: 18px 8px 0; }
.workspace-account { display: flex; align-items: center; gap: 9px; }
.account-avatar { width: 32px; height: 32px; display: grid; place-items: center; background: #e9edf5; border-radius: 50%; font-size: .87rem; color: #566783; font-weight: 600; }
.workspace-account div { display: flex; flex-direction: column; gap: 2px; }
.workspace-account strong { font-size: .8rem; font-weight: 500; }
.workspace-account div span { font-size: .8rem; color: var(--muted); }
.sidebar-footer .btn { margin-top: 10px; padding-left: 0; font-size: .8rem; color: var(--muted); }
.workspace { margin-left: var(--sidebar); min-height: 100vh; }
.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border-bottom: 1px solid var(--line); padding: 12px clamp(24px,3vw,44px); background: var(--surface); }
.topbar-left { display: flex; align-items: center; gap: 10px; }
.topbar-context { display: flex; gap: 12px; align-items: center; white-space: nowrap; font-size: .87rem; }
.topbar-context>span { color: var(--muted); }
.topbar-context b { font-weight: 500; }
.topbar-context b::before { content: "/"; color: #bcc5d3; margin-right: 12px; font-weight: 400; }
.topbar-sync { display: flex; align-items: center; gap: 9px; min-width: 0; margin-left: auto; }
.topbar-sync>div { display: flex; flex-direction: column; gap: 1px; }
.sync-cadence, .sync-last { font-size: .8rem; white-space: nowrap; line-height: 1.7; }
.sync-cadence { color: #66758f; }
.sync-last { color: #46556f; }
.sync-indicator { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #8a96aa; }
.sync-indicator.ready { background: #56836d; }
.sync-indicator.attention { background: #c28a28; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.search-box { display: block; position: relative; width: 210px; height: 42px; }
.search-box svg { position: absolute; top: 12px; left: 12px; width: 17px; height: 17px; color: #75839c; pointer-events: none; }
.search-box input { height: 42px; min-height: 42px; padding: 9px 30px 9px 37px; font-size: .87rem; background: #f5f7fb; border: 1px solid #edf0f6; }
.search-key { position: absolute; top: 10px; right: 10px; font-size: .8rem; color: var(--muted); }
.topbar-refresh { padding: 8px 9px !important; min-width: 44px; font-size: .8rem !important; color: #5a6984 !important; }
.topbar-refresh svg { width: 17px; height: 17px; }
.mobile-menu, .mobile-brand { display: none; }
.main { padding: 30px clamp(24px,3vw,44px) 44px; max-width: 1530px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; }
.page-heading h1 { font-size: clamp(24px,2vw,28px); line-height: 1.4; letter-spacing: -.6px; }
.page-heading p { font-size: .87rem; color: var(--muted); margin-top: 7px; line-height: 1.8; }
.eyebrow { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.heading-actions, .actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 6px; padding: 10px 15px; background: transparent; color: var(--ink); font-size: .87rem; line-height: 1.4; font-weight: 500; white-space: nowrap; text-decoration: none; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { background: var(--blue); color: var(--surface); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-secondary { background: var(--surface); border-color: #d3dbe7; }
.btn-secondary:hover { background: #f0f4fb; }
.btn-text { padding: 8px 4px; color: var(--blue); font-size: .87rem; }
.btn-text:hover { text-decoration: underline; }
.btn-danger { color: var(--red); background: #fff1ee; border-color: #f1d2cb; }
.btn-small { font-size: .8rem; padding: 8px 12px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.section-head h2 { font-size: 1.07rem; }
.section-head h3 { font-size: 1rem; }
.count { margin-left: 7px; font-size: .8rem; font-weight: 400; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .87rem; line-height: 1.8; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 4px; font-size: .8rem; line-height: 1.5; font-weight: 400; background: #edf1f7; color: #5d6b83; white-space: nowrap; }
.tag.warning { background: #fff3d7; color: #8c650d; }
.tag.success { background: #eaf4ee; color: #3c7057; }
.tag.danger { background: #fcece9; color: #a34d42; }
.tag.neutral { background: #edf1f7; color: #596a84; }
.connection-dot { width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.source-status { white-space: normal; overflow-wrap: anywhere; }
.row-main { flex: 1; min-width: 0; }
.row-main h3 { font-size: .93rem; font-weight: 500; }
.row-meta { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; margin-top: 5px; font-size: .8rem; color: var(--muted); line-height: 1.7; }
.row-hint { margin-top: 5px; font-size: .8rem; color: var(--muted); }
.info-band, .compact-notice { display: flex; gap: 11px; align-items: flex-start; border: 1px solid #e2e9f5; border-radius: 6px; padding: 13px 16px; background: #f0f4fc; font-size: .87rem; line-height: 1.8; margin-bottom: 24px; color: #52637f; }
.info-band svg, .compact-notice svg { flex: 0 0 17px; height: 17px; margin-top: 4px; }
.compact-notice { border: 0; padding: 10px 0; background: transparent; margin-bottom: 17px; }
.empty-state { text-align: center; padding: 35px 20px; color: var(--muted); font-size: .87rem; line-height: 1.9; }
.empty-state strong { display: block; font-size: .93rem; font-weight: 500; color: #465570; margin-bottom: 7px; }
.empty-mark { display: none; }
.empty-state .btn { margin-top: 14px; }
.view-footer { border-top: 1px solid var(--line); margin-top: 38px; padding-top: 16px; display: flex; justify-content: space-between; gap: 16px; color: #74819a; font-size: .8rem; }

/* Overview: decisions first, then real media. */
.overview-top { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 24px; margin-bottom: 30px; align-items: start; }
.priority-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.priority-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.priority-header h2 { font-size: 1rem; }
.priority-header>span { color: var(--muted); font-size: .8rem; }
.inbox-row { display: flex; align-items: center; gap: 12px; padding: 15px 20px; border-bottom: 1px solid #edf0f6; }
.inbox-row:last-child { border-bottom: 0; }
.inbox-state { flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: #cda453; }
.inbox-row h3 { font-size: .93rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-row .row-meta { flex-wrap: nowrap; overflow: hidden; }
.inbox-row .row-meta .tag { flex-shrink: 0; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-row .row-meta>span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-row>.btn { flex-shrink: 0; }
.panel-foot { padding: 12px 20px; font-size: .8rem; color: var(--muted); background: #f9fbff; }
.overview-sync { padding: 3px 0; }
.overview-sync .section-head { margin-bottom: 3px; }
.overview-sync .section-head .btn { font-size: .8rem; }
.sync-node-row { padding: 12px 0 14px; border-bottom: 1px solid var(--line); }
.sync-node-title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.sync-node-title svg { width: 17px; height: 17px; color: #697a94; }
.sync-node-title strong { font-size: .87rem; font-weight: 500; }
.sync-node-title .tag { margin-left: auto; font-size: .8rem; }
.sync-node-row>p { margin-top: 7px; font-size: .8rem; color: var(--muted); }
.sync-issue-list { list-style: none; margin: 10px 0 0; padding: 9px 11px; border-radius: 5px; background: #fff7e8; }
.sync-issue-list li { display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; line-height: 1.9; color: #806129; }
.sync-footnote { color: var(--muted); font-size: .8rem; line-height: 1.8; margin-top: 12px; }
.overview-section { margin-top: 28px; }
.overview-bottom, .two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; }
.simple-list { border-top: 1px solid var(--line); }
.simple-row { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 13px; }
.simple-row h3 { font-size: .93rem; font-weight: 500; }
.simple-row>.btn { margin-top: -3px; }
.schedule-day { flex: 0 0 36px; text-align: center; padding-top: 1px; }
.schedule-day b { display: block; font-size: 21px; font-weight: 500; line-height: 1.3; font-variant-numeric: tabular-nums; }
.schedule-day span { display: block; font-size: .8rem; color: var(--muted); }
.task-dot { flex: 0 0 7px; width: 7px; height: 7px; border: 1px solid #8d9ab0; border-radius: 50%; margin-top: 18px; }
.task-dot.blocked { background: #d5aa53; border-color: #d5aa53; }
.task-dot.done { background: #66957b; border-color: #66957b; }
.task-status { width: 106px; min-height: 44px; padding: 8px 7px; font-size: .8rem; background: var(--surface); border-color: #d7dfeb; }

/* Work collection */
.work-mode-tabs { display: flex; gap: 24px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.work-mode { position: relative; display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 10px 0 14px; background: transparent; color: var(--muted); font-size: .93rem; }
.work-mode span { font-size: .8rem; padding: 1px 6px; background: #edf1f8; border-radius: 4px; }
.work-mode.active { color: var(--blue); font-weight: 600; }
.work-mode.active::after { position: absolute; content: ""; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--blue); }
.work-project-filter { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.work-project-filter label { font-size: .87rem; font-weight: 500; white-space: nowrap; }
.work-project-filter select { max-width: 208px; min-height: 44px; padding: 9px 12px; font-size: .87rem; }
.work-project-filter>span { font-size: .8rem; color: var(--muted); }
.collection-summary { display: flex; justify-content: space-between; gap: 14px; margin: 16px 0; font-size: .8rem; line-height: 1.7; color: var(--muted); }
.works-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.works-list.overview-media { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.work-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.work-preview { position: relative; aspect-ratio: 4/3; background: #edf1f7; display: grid; place-items: center; overflow: hidden; }
.work-preview img { width: 100%; height: 100%; position: absolute; object-fit: contain; }
.media-placeholder { display: flex; flex-direction: column; align-items: center; gap: 12px; color: #8997af; }
.media-placeholder svg { width: 35px; height: 35px; stroke-width: 1.2; }
.media-placeholder span { font-size: .8rem; color: #6e7e99; }
.preview-kind, .preview-version { position: absolute; padding: 3px 7px; border-radius: 4px; background: #f6f9fd; color: #53637d; font-size: .8rem; line-height: 1.6; }
.preview-kind { bottom: 11px; left: 12px; }
.preview-version { top: 11px; right: 12px; }
.source-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgb(19 34 63 / .78); color: #f7faff; }
.source-play svg { width: 25px; height: 25px; }
.source-play:hover { background: var(--blue); }
.work-card-body { padding: 15px 16px 0; }
.work-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.work-card-project, .source-card-origin { font-size: .8rem; color: var(--muted); }
.source-card-origin { color: #7e8ba0; white-space: nowrap; }
.work-title { display: block; min-height: 44px; padding: 4px 0; background: transparent; color: var(--ink); font-size: 1rem; line-height: 1.7; font-weight: 500; text-align: left; overflow-wrap: anywhere; }
.work-title:hover { color: var(--blue); }
.work-card .work-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.work-card-status { min-height: 31px; margin: 7px 0 10px; }
.work-card-status .tag { max-width: 100%; }
.work-card-status .source-status { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: fit-content; }
.work-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #e8edf5; font-size: .8rem; color: var(--muted); min-height: 51px; }
.work-card-footer .btn { font-size: .8rem; padding-left: 0; padding-right: 0; }
.source-evidence { border-top: 1px solid #e8edf5; font-size: .8rem; color: var(--muted); }
.source-evidence summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: #6b7b94; }
.source-evidence summary::after { content: "+"; margin-left: auto; font-size: 17px; }
.source-evidence[open] summary::after { content: "−"; }
.source-evidence .source-record-dates { margin: 0; padding: 0 0 8px; }
.source-evidence p { line-height: 1.8; padding-bottom: 14px; }
.source-record-dates { display: flex; flex-wrap: wrap; gap: 3px 16px; font-size: .8rem; line-height: 1.8; color: var(--muted); margin-top: 9px; }
.source-evidence .source-record-dates { flex-direction: column; }
.overview-media .work-card-body { padding: 13px 13px 0; }
.overview-media .work-title { font-size: .93rem; }
.overview-media .source-card-origin { display: none; }
.full-width { grid-column: 1 / -1; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 25px; border-top: 1px solid var(--line); padding-top: 18px; font-size: .8rem; color: var(--muted); }
.pagination>div { display: flex; gap: 9px; }
.pagination .btn { min-width: 84px; font-size: .87rem; }
.filter-bar { border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.filters { display: flex; gap: 25px; max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
.filter { position: relative; min-height: 47px; padding: 10px 0 13px; background: transparent; color: var(--muted); font-size: .87rem; white-space: nowrap; }
.filter.active { color: var(--blue); font-weight: 500; }
.filter.active::after { position: absolute; content: ""; bottom: 0; left: 0; right: 0; height: 2px; background: var(--blue); }
.filter span { font-size: .8rem; margin-left: 6px; color: #7b89a0; }

/* Project records and concise activity lists */
.content-section { margin-top: 32px; }
.projects-list { border-top: 1px solid var(--line); }
.project-row { display: grid; grid-template-columns: minmax(180px,1fr) minmax(160px,1.1fr) minmax(190px,1fr) auto; gap: 22px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.project-identity { display: flex; gap: 12px; align-items: center; min-width: 0; }
.project-symbol { width: 38px; height: 40px; flex: 0 0 38px; display: grid; place-items: center; font-size: 17px; border-radius: 7px; background: #eaf0fa; color: #57739b; font-weight: 500; }
.project-identity h3 { font-size: .93rem; font-weight: 500; }
.project-identity p { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.project-description { font-size: .87rem; color: var(--muted); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-time { font-size: .8rem; color: var(--muted); line-height: 1.8; }
.project-time .tag { margin-bottom: 3px; }
.source-activity-list, .events-list { border-top: 1px solid var(--line); }
.source-activity-row { display: flex; gap: 18px; align-items: flex-start; padding: 17px 0; border-bottom: 1px solid var(--line); }
.source-type-label { flex: 0 0 88px; font-size: .8rem; color: var(--muted); padding-top: 10px; }
.source-activity-row .work-title { font-size: .93rem; min-height: 38px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.source-activity-row .source-status { max-width: 100%; }
.source-activity-summary { font-size: .87rem; line-height: 1.8; color: var(--muted); margin-top: 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.source-activity-row>.btn { flex-shrink: 0; min-width: 44px; }
.event-row { display: grid; grid-template-columns: 158px 8px 1fr; gap: 16px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.event-time { font-size: .8rem; color: var(--muted); line-height: 1.9; }
.event-dot { width: 6px; height: 6px; background: #93a5c4; border-radius: 50%; margin-top: 9px; }
.event-row h3 { font-size: .93rem; font-weight: 500; }
.event-row p { font-size: .87rem; line-height: 1.8; color: var(--muted); margin-top: 6px; overflow-wrap: anywhere; white-space: pre-wrap; }
.node-list { border-top: 1px solid var(--line); }
.node { display: flex; align-items: flex-start; gap: 13px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.node>svg { width: 19px; height: 19px; margin-top: 4px; color: #64799b; }
.node>.tag { margin-left: auto; }
.node-detail { font-size: .87rem; color: var(--muted); line-height: 1.8; margin-top: 8px; }

/* Contests are a scanable list, with full evidence in the detail sheet. */
.contest-list { border-top: 1px solid var(--line); }
.contest-row { display: grid; grid-template-columns: minmax(0,1fr) 235px 114px; gap: 24px; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--line); }
.contest-main { min-width: 0; }
.contest-main .work-title { font-size: 1rem; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.contest-summary { color: var(--muted); font-size: .87rem; line-height: 1.8; margin-top: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.contest-row-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .8rem; color: #78859b; margin-top: 9px; }
.contest-row-meta>span:last-child:not(.tag) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 100%; }
.contest-group-label { color: var(--muted); font-size: .8rem; }
.contest-deadline { font-size: .87rem; line-height: 1.9; color: #4c5e7b; margin-top: 5px; }
.contest-deadline.expired { color: #92703b; }
.contest-actions { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
.contest-actions .btn { font-size: .87rem; }
.contest-actions>a { display: inline-flex; align-items: center; min-height: 44px; font-size: .8rem; color: var(--muted); }
.contest-detail-deadline { background: #f0f4fc; color: #405a86; border-radius: 6px; padding: 13px 15px; font-size: .93rem; line-height: 1.8; margin-top: 18px; }

/* Publication plans */
.plan-list { border-top: 1px solid var(--line); }
.plan-row { display: grid; grid-template-columns: 82px minmax(0,1fr) 160px auto; gap: 22px; align-items: center; padding: 21px 0; border-bottom: 1px solid var(--line); }
.plan-time .date { font-size: 19px; font-weight: 500; font-variant-numeric: tabular-nums; }
.plan-time .time { font-size: .87rem; color: var(--muted); margin-top: 2px; }
.plan-title { font-size: 1rem; font-weight: 500; line-height: 1.8; }
.plan-note { font-size: .87rem; color: var(--muted); margin-top: 8px; line-height: 1.8; overflow-wrap: anywhere; }
.plan-actions { display: flex; gap: 7px; }
.plan-channel .small { font-size: .8rem; }

/* Settings and forms */
.settings-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 56px; max-width: 1100px; }
.settings-section { padding-bottom: 28px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.settings-section h2 { margin-bottom: 7px; }
.settings-section>p { font-size: .87rem; color: var(--muted); line-height: 1.8; margin-bottom: 20px; }
.settings-note { padding: 19px 0; border-top: 1px solid var(--line); }
.settings-note h3 { font-size: .93rem; margin-bottom: 10px; }
.settings-note p { color: var(--muted); font-size: .87rem; line-height: 1.9; }
.settings-note p+p { margin-top: 10px; }
.slack-settings { min-width: 0; }
.slack-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; margin-bottom: 7px; }
.slack-heading h2 { margin: 0; }
.slack-setup { margin: 0 0 24px; }
.slack-setup ol { margin: 14px 0 0; padding-left: 1.5em; color: var(--muted); font-size: .87rem; line-height: 1.9; }
.slack-setup li+li { margin-top: 3px; }
.slack-settings .field-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
.slack-settings .field { min-width: 0; }
.slack-settings .field input, .slack-settings .field textarea { min-width: 0; width: 100%; }
.slack-settings .field-help, .slack-settings .inline-note, .slack-settings .form-error { overflow-wrap: anywhere; }
.slack-settings .form-error { scroll-margin-top: 130px; }
.slack-features { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 2px; }
.slack-features .checkbox-field>span { min-width: 0; }
.slack-features .field-help { display: block; margin-top: 3px; }
.slack-feature-state { display: inline-block; margin-left: 7px; color: var(--muted); font-size: .8rem; font-weight: 400; white-space: nowrap; }
.slack-availability { margin: 0 0 18px; }
.slack-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.slack-save-note { margin-top: 10px; min-height: 1.9em; }
.slack-delivery { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 17px; }
.slack-delivery>div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 8px; }
.slack-delivery strong { font-size: .93rem; font-weight: 500; }
.slack-delivery ul { list-style: none; margin: 4px 0 0; padding: 0; }
.slack-delivery li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3px 16px; color: var(--muted); font-size: .8rem; padding: 6px 0; }
.slack-delivery time { font-variant-numeric: tabular-nums; }
.slack-review-link { margin-top: 12px; }
.slack-review-link .btn { padding-left: 0; }
@media(max-width:720px) { .slack-settings .field-row { grid-template-columns: minmax(0,1fr); } .slack-actions .btn { flex: 1 1 auto; } }
.sync-settings { padding-bottom: 25px; }
.sync-settings .section-head p { color: var(--muted); font-size: .87rem; margin-top: 3px; }
.sync-rhythm { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; max-width: 750px; padding: 12px 0; }
.sync-rhythm>div { display: flex; flex-direction: column; gap: 4px; }
.sync-rhythm strong { font-size: 17px; font-weight: 500; }
.sync-rhythm span { font-size: .87rem; color: var(--muted); }
.sync-source-table { margin: 20px 0 13px; border-top: 1px solid var(--line); }
.sync-source-row { display: grid; grid-template-columns: minmax(160px,1fr) 130px minmax(150px,1fr) minmax(150px,1fr); align-items: center; gap: 22px; border-bottom: 1px solid var(--line); padding: 15px 0; }
.sync-source-row>div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sync-source-row strong { font-size: .87rem; font-weight: 500; }
.sync-source-row span:not(.tag) { font-size: .8rem; color: var(--muted); }
.sync-source-row time { font-size: .87rem; color: #4d5c75; }
.sync-source-row>.tag { justify-self: start; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field>label { font-size: .93rem; font-weight: 500; }
.field-help { font-size: .8rem; color: var(--muted); line-height: 1.9; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.checkbox-field { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; line-height: 1.8; margin: 20px 0; }
.checkbox-field input { margin-top: 5px; flex-shrink: 0; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.form-error { padding: 12px 14px; border-radius: 6px; color: #a13d34; background: #fceeea; font-size: .93rem; line-height: 1.8; margin-bottom: 18px; }
.form-error:empty { display: none; }
.inline-note { font-size: .87rem; color: var(--muted); line-height: 1.9; margin: 13px 0; }

/* Native detail sheets */
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(700px,100%); height: 100%; max-width: 100%; max-height: 100%; border: 0; border-left: 1px solid var(--line); padding: 0; background: var(--surface); color: var(--ink); overflow-y: auto; }
.drawer::backdrop { background: rgb(25 38 64 / .28); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; z-index: 2; padding: 18px 28px; background: var(--surface); border-bottom: 1px solid var(--line); }
.drawer-header h2 { font-size: 1.07rem; }
.close-button { width: 44px; min-width: 44px; height: 44px; border-radius: 5px; font-size: 25px; font-weight: 300; background: transparent; color: var(--muted); }
.close-button:hover { background: #edf2fa; }
.drawer-body { padding: 26px 28px 36px; }
.detail-head { margin: 14px 0 23px; }
.detail-head h1 { font-size: 24px; line-height: 1.6; letter-spacing: -.4px; overflow-wrap: anywhere; }
.detail-head .row-meta { margin-top: 9px; }
.detail-copy { font-size: 1rem; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; color: #4b5d78; }
.detail-media { background: #edf1f7; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; margin: 22px 0; }
.detail-media video, .detail-media img { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #e8edf5; }
.detail-media a { display: flex; align-items: center; gap: 9px; padding: 17px; font-size: .93rem; overflow-wrap: anywhere; }
.detail-media svg { width: 18px; height: 18px; flex-shrink: 0; }
.detail-section { margin-top: 25px; padding-top: 23px; border-top: 1px solid var(--line); }
.detail-section h3 { font-size: 1rem; margin-bottom: 13px; }
.detail-section>p { margin-top: 8px; }
.detail-section summary, .source-group summary { display: list-item; min-height: 44px; padding: 9px 0; font-size: .93rem; line-height: 1.8; font-weight: 500; cursor: pointer; }
.revision-list { list-style: none; margin: 0; padding: 0; }
.revision-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .87rem; line-height: 1.8; }
.revision-list li:last-child { border-bottom: 0; }
.path { font-size: .87rem; color: var(--muted); overflow-wrap: anywhere; line-height: 1.9; }
.sync-summary { border: 1px solid var(--line); background: #f7f9fd; border-radius: 6px; padding: 17px; margin: 18px 0; }
.sync-summary .section-head { align-items: flex-start; gap: 12px; margin-bottom: 11px; }
.sync-summary .section-head h3 { font-size: .93rem; margin: 0; }
.sync-summary>p { font-size: .87rem; line-height: 1.8; overflow-wrap: anywhere; }
.sync-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 22px; margin: 16px 0; }
.sync-facts dt { font-size: .8rem; color: var(--muted); margin-bottom: 3px; }
.sync-facts dd { font-size: .87rem; margin: 0; line-height: 1.8; overflow-wrap: anywhere; }
.source-detail-fields { margin: 0; }
.source-detail-fields>div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.source-detail-fields dt { color: var(--muted); font-size: .87rem; line-height: 1.9; }
.source-detail-fields dd { margin: 0; font-size: .93rem; line-height: 1.9; overflow-wrap: anywhere; white-space: pre-wrap; }
.source-group { margin: 20px 0; }
.source-group .source-type-label { display: none; }
.source-file-list { list-style: none; padding: 0; margin: 14px 0; }
.source-file-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .87rem; line-height: 1.8; }
.source-file-list li>span { min-width: 0; overflow-wrap: anywhere; }
.source-file-list a { min-height: 44px; display: inline-flex; align-items: center; flex-shrink: 0; white-space: nowrap; }
.source-file-list small { color: var(--muted); font-size: .8rem; }
.source-link { font-size: .87rem; margin-top: 14px; }
.source-link a { display: inline-flex; min-height: 44px; align-items: center; }
.loading-placeholder { padding: 35px 0; font-size: .93rem; color: var(--muted); }
.loading-placeholder::before, .loading-placeholder::after { content: ""; display: block; height: 13px; border-radius: 3px; background: #e9eff7; }
.loading-placeholder::before { width: 65%; margin-bottom: 20px; }
.loading-placeholder::after { width: 85%; margin-top: 20px; }
.toast { position: fixed; bottom: 26px; left: calc(50% + 98px); transform: translateX(-50%); max-width: min(570px,calc(100vw - 32px)); border-radius: 6px; background: #233657; color: #f6f9ff; padding: 13px 20px; z-index: 80; font-size: .93rem; line-height: 1.8; box-shadow: 0 5px 20px rgb(31 50 84 / .12); }
.toast.error { background: #8f4239; }

/* Private sign-in */
.boot { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; }
.boot p { font-size: .93rem; color: var(--muted); }
.auth { min-height: 100svh; padding: 50px 24px 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f3f6fb; }
.auth-panel { width: 100%; max-width: 420px; padding: 32px 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.auth-panel>.brand { margin-bottom: 32px; }
.auth-form h1 { font-size: 24px; line-height: 1.5; letter-spacing: -.4px; margin-bottom: 10px; }
.auth-form>p { font-size: .93rem; color: var(--muted); line-height: 1.8; margin-bottom: 24px; }
.auth-form .btn-primary { width: 100%; margin-top: 5px; }
.auth-footnote { font-size: .8rem; color: var(--muted); line-height: 1.8; margin-top: 22px; }
.auth-caption { color: #8390a7; font-size: .8rem; margin-top: 24px; }
.noscript { padding: 24px; font-size: .93rem; }

/* Content-driven responsive layouts */
@media(min-width:1450px) {
  .works-list { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media(max-width:1250px) {
  .topbar { gap: 15px; }
  .topbar-context>span { display: none; }
  .topbar-context b::before { display: none; }
  .search-box { width: 185px; }
  .topbar-refresh span { display: none; }
  .project-row { grid-template-columns: minmax(170px,1fr) minmax(200px,1fr) auto; gap: 18px; }
  .project-description { display: none; }
  .overview-top { grid-template-columns: minmax(0,1fr) 285px; gap: 20px; }
  .contest-row { grid-template-columns: minmax(0,1fr) 205px 100px; gap: 20px; }
  .plan-row { grid-template-columns: 75px minmax(0,1fr) 125px; gap: 17px; }
  .plan-actions { grid-column: 2 / -1; }
  .settings-grid { grid-template-columns: minmax(0,1fr) 255px; gap: 32px; }
}
@media(max-width:1050px) {
  .topbar-context { display: none; }
  .topbar-left { display: none; }
  .topbar-sync { margin-left: 0; }
  .topbar-right { margin-left: auto; }
  .overview-top { grid-template-columns: 1fr; }
  .overview-sync { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; padding-top: 2px; }
  .overview-sync>.section-head, .overview-sync>.sync-footnote { grid-column: 1 / -1; }
  .works-list, .works-list.overview-media { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contest-row { grid-template-columns: minmax(0,1fr) 180px; gap: 12px 18px; }
  .contest-actions { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-end; gap: 17px; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
  .sync-source-row { grid-template-columns: 1fr 130px; gap: 10px 20px; }
  .sync-source-row>.tag { justify-self: end; }
  .sync-source-row>div:nth-last-child(-n+2) { padding-top: 3px; }
  .work-project-filter>span { display: none; }
}
@media(max-width:720px) {
  :root { --sidebar: 196px; font-size: 16px; }
  .sidebar { display: none; top: 112px; bottom: 0; width: 240px; padding-top: 17px; box-shadow: 9px 8px 24px rgb(27 47 83 / .12); }
  body.nav-open .sidebar { display: flex; }
  .sidebar>.brand { display: none; }
  .sidebar .nav-label { margin-bottom: 10px; }
  .sidebar .nav-item { min-height: 48px; }
  .workspace { margin-left: 0; }
  .topbar { position: sticky; top: 0; z-index: 15; display: grid; grid-template-columns: 1fr auto 44px; grid-template-areas: "identity status refresh" "search search search"; gap: 7px 10px; padding: 9px 16px 10px; min-height: 112px; }
  .topbar-left { display: flex; grid-area: identity; gap: 6px; }
  .topbar-context { display: none; }
  .mobile-menu { display: grid; place-items: center; width: 35px; min-width: 35px; height: 44px; padding: 0; background: transparent; color: #536580; }
  .mobile-menu svg { width: 20px; height: 20px; }
  .mobile-brand { display: block; font-family: "Avenir Next",sans-serif; font-size: 19px; font-weight: 600; letter-spacing: -.6px; }
  .topbar-sync { grid-area: status; gap: 6px; justify-self: end; margin: 0; }
  .sync-cadence { font-size: .8rem; max-width: 154px; white-space: normal; line-height: 1.4; }
  .sync-last { font-size: .8rem; line-height: 1.5; max-width: 154px; white-space: normal; }
  .sync-indicator { display: none; }
  .topbar-right { display: contents; }
  .search-box { grid-area: search; width: 100%; height: 40px; }
  .search-box input { height: 40px; min-height: 40px; font-size: 16px; padding-left: 36px; }
  .search-box svg { top: 11px; }
  .search-key { display: none; }
  .topbar-refresh { grid-area: refresh; padding: 8px !important; width: 44px; }
  .topbar-refresh span { display: none; }
  .main { padding: 23px 17px 32px; }
  .page-heading { align-items: flex-start; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
  .page-heading h1 { font-size: 25px; }
  .page-heading p { font-size: .87rem; margin-top: 6px; }
  .heading-actions { gap: 8px; }
  .heading-actions .btn { padding: 10px 12px; }
  .section-head { margin-bottom: 12px; gap: 12px; }
  .section-head h2 { font-size: 1.07rem; }
  .section-head .btn { font-size: .8rem; }
  .overview-top { gap: 22px; margin-bottom: 24px; }
  .priority-header { padding: 14px 15px; }
  .priority-header>span { font-size: .8rem; }
  .inbox-row { padding: 13px 15px; gap: 10px; }
  .inbox-row h3 { font-size: .93rem; }
  .inbox-row .row-meta { flex-wrap: wrap; gap: 4px 7px; }
  .inbox-row .row-meta>.tag { max-width: 160px; }
  .inbox-row .row-meta>span:last-child { width: 100%; }
  .inbox-row>.btn { font-size: .8rem; padding-left: 3px; padding-right: 0; }
  .inbox-row>.btn svg { display: none; }
  .overview-sync { display: block; }
  .sync-node-row { padding: 11px 0 13px; }
  .overview-section { margin-top: 23px; }
  .overview-bottom, .two-columns { grid-template-columns: 1fr; gap: 24px; margin-top: 27px; }
  .works-list { grid-template-columns: 1fr; gap: 20px; }
  .works-list.overview-media { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
  .overview-media .work-preview { aspect-ratio: 4/3; }
  .overview-media .work-card-body { padding: 11px 11px 0; }
  .overview-media .work-title { font-size: .93rem; line-height: 1.7; min-height: 48px; }
  .overview-media .work-card-footer { flex-wrap: wrap; gap: 0; padding-top: 7px; }
  .overview-media .work-card-footer>.btn { min-height: 44px; }
  .overview-media .work-card-status { min-height: 31px; margin-bottom: 8px; }
  .overview-media .work-card-project { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .overview-media .source-evidence summary { font-size: .8rem; }
  .work-preview { aspect-ratio: 4/3; }
  .work-card-body { padding: 15px 16px 0; }
  .work-card .work-title { font-size: 1rem; }
  .work-mode-tabs { gap: 22px; margin-bottom: 19px; }
  .work-mode { font-size: .93rem; gap: 7px; }
  .work-project-filter { margin-bottom: 15px; }
  .work-project-filter select { width: 100%; max-width: none; font-size: 16px; }
  .collection-summary { flex-wrap: wrap; gap: 3px; font-size: .8rem; margin: 13px 0 17px; }
  .collection-summary>span:last-child { margin-left: auto; }
  .filters { gap: 23px; }
  .filter { font-size: .87rem; }
  .pagination { flex-wrap: wrap; margin-top: 20px; padding-top: 15px; gap: 14px; }
  .pagination>div { margin-left: auto; }
  .pagination .btn { padding: 10px 12px; min-width: 78px; }
  .project-row { grid-template-columns: minmax(0,1fr) auto; gap: 8px 14px; padding: 18px 0; }
  .project-time { grid-column: 1; margin-left: 50px; }
  .project-row>.btn { grid-column: 2; grid-row: 1 / 3; font-size: .8rem; padding-right: 0; }
  .project-identity h3 { font-size: .93rem; }
  .project-description { display: none; }
  .source-activity-row { gap: 8px 12px; flex-wrap: wrap; padding: 15px 0; }
  .source-type-label { flex-basis: 100%; padding: 0; font-size: .8rem; }
  .source-activity-row .work-title { font-size: .93rem; min-height: 44px; }
  .source-activity-row>.btn { min-width: 32px; padding: 8px 4px; }
  .source-activity-summary { font-size: .87rem; }
  .source-record-dates { flex-direction: column; gap: 2px; font-size: .8rem; }
  .source-group .source-activity-row { flex-wrap: nowrap; }
  .event-row { grid-template-columns: 7px minmax(0,1fr); gap: 6px 12px; padding: 17px 0; }
  .event-time { grid-column: 2; }
  .event-dot { grid-column: 1; grid-row: 1 / 3; margin-top: 7px; }
  .event-content { grid-column: 2; }
  .event-row h3 { font-size: .93rem; }
  .contest-row { grid-template-columns: minmax(0,1fr) auto; gap: 13px 10px; padding: 16px 0; }
  .contest-main { grid-column: 1 / -1; }
  .contest-main .work-title { font-size: 1rem; }
  .contest-summary { font-size: .87rem; }
  .contest-row-meta { gap: 6px; }
  .contest-date { grid-column: 1; min-width: 0; }
  .contest-group-label { display: none; }
  .contest-deadline { font-size: .87rem; margin: 0; line-height: 1.8; }
  .contest-actions { grid-column: 2; flex-direction: column; gap: 0; align-items: flex-end; }
  .contest-actions .btn { font-size: .8rem; padding-right: 0; }
  .contest-actions>a { font-size: .8rem; }
  .compact-notice { font-size: .87rem; margin-bottom: 14px; gap: 9px; }
  .plan-row { grid-template-columns: 65px minmax(0,1fr); gap: 11px 15px; padding: 20px 0; }
  .plan-time .date { font-size: 18px; }
  .plan-channel { grid-column: 2; }
  .plan-actions { grid-column: 2; flex-wrap: wrap; gap: 6px; }
  .plan-actions .btn { font-size: .8rem; }
  .plan-title { font-size: .93rem; }
  .settings-aside { display: block; }
  .sync-rhythm { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
  .sync-rhythm strong { font-size: 16px; }
  .sync-rhythm span { font-size: .8rem; }
  .sync-source-row { grid-template-columns: minmax(0,1fr) auto; gap: 10px 12px; padding: 14px 0; }
  .sync-source-row time { font-size: .8rem; }
  .sync-source-row>div:nth-last-child(-n+2) { grid-column: auto; }
  .sync-settings .section-head { align-items: flex-start; }
  .sync-settings .section-head .btn { font-size: .8rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field input, .field textarea, .field select { font-size: 16px; }
  .drawer-header { padding: 14px 18px; }
  .drawer-body { padding: 21px 18px 32px; }
  .detail-head h1 { font-size: 22px; }
  .detail-copy { font-size: .93rem; }
  .info-band { padding: 12px 14px; font-size: .87rem; }
  .sync-summary { padding: 14px; }
  .sync-summary .section-head { flex-wrap: wrap; gap: 7px; }
  .sync-facts { gap: 14px; }
  .source-detail-fields>div { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .source-detail-fields dt { font-size: .8rem; }
  .source-detail-fields dd { font-size: .93rem; }
  .source-file-list li { gap: 12px; font-size: .87rem; }
  .toast { left: 50%; bottom: 20px; font-size: .87rem; }
  .view-footer { flex-wrap: wrap; gap: 7px; font-size: .8rem; margin-top: 30px; }
  .auth { padding: 24px 17px; }
  .auth-panel { padding: 27px 24px; }
  .auth-form h1 { font-size: 24px; }
}
@media(max-width:360px) {
  .topbar { gap: 7px; padding-left: 12px; padding-right: 12px; }
  .mobile-brand { font-size: 17px; }
  .mobile-menu { width: 31px; min-width: 31px; }
  .sync-cadence, .sync-last { max-width: 140px; }
  .main { padding-left: 14px; padding-right: 14px; }
  .overview-media .work-card-body { padding-left: 9px; padding-right: 9px; }
}

/* Keep body copy readable; reserve smaller type for metadata and navigation. */
.cadence-short { display: none; }
.nav-item { font-size: .875rem; }
.detail-copy, .source-activity-summary, .contest-summary, .settings-section>p, .settings-note p, .info-band, .compact-notice, .inline-note, .form-error, .auth-form>p { font-size: 1rem; }
.row-main h3, .simple-row h3, .inbox-row h3, .source-activity-row .work-title, .project-identity h3, .event-row h3, .plan-title, .overview-media .work-title { font-size: 1rem; }
@media(max-width:720px) { .cadence-full { display: none; } .cadence-short { display: inline; } .sync-cadence, .sync-last { max-width: 154px; font-size: .75rem; } .detail-copy { font-size: 1rem; } }

/* Preserve lettering in portrait artwork; mobile controls retain full tap targets. */
.work-preview img { object-fit: contain; background: #edf1f7; }
@media(max-width:720px) { .mobile-menu { width: 44px; min-width: 44px; } }
@media(pointer:coarse) { button, .btn, .work-title { min-height: 44px; } }

@media(max-width:720px) { .sync-last .cadence-short { white-space: nowrap; } }

/* Shared progress: a compact work ledger, with activity and delivery kept distinct. */
.sidebar { overflow-y: auto; }
.tag.activity { color: #294fc0; background: #eaf0ff; }
.section-caption { font-size: .83rem; color: var(--muted); margin-top: 2px; }
.coord-overview { margin-bottom: 32px; }
.coord-summary { display: flex; align-items: center; gap: 25px; padding: 2px 0 13px; border-bottom: 1px solid var(--line); }
.coord-summary button { display: flex; align-items: center; gap: 8px; padding: 5px 0; background: transparent; font-size: .87rem; }
.coord-summary button:hover { color: var(--blue); }
.coord-summary strong { font-size: 1.2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.summary-marker, .job-state-dot { width: 6px; height: 6px; border-radius: 50%; background: #8998b1; flex: 0 0 6px; }
.summary-marker.running, .job-state-dot.running { background: var(--blue); }
.summary-marker.waiting, .job-state-dot.waiting { background: #95a6c1; }
.summary-marker.blocked, .job-state-dot.blocked { background: #b57b20; }
.job-state-dot.finished { background: #6d897b; }
.coord-cadence { margin-left: auto; font-size: .8rem; color: var(--muted); }
.jobs-list { min-width: 0; }
.job-row { display: grid; grid-template-columns: 6px minmax(0,1fr) minmax(135px,180px); align-items: start; column-gap: 18px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.job-row:last-child { border-bottom-color: transparent; }
.job-row.compact { padding: 17px 0; }
.job-state-dot { margin-top: 10px; }
.job-main, .job-terminal, .routine-identity, .routine-schedule { min-width: 0; }
.job-eyebrow { display: flex; flex-wrap: wrap; gap: 3px 10px; align-items: center; color: var(--muted); font-size: .78rem; line-height: 1.6; overflow-wrap: anywhere; }
.job-eyebrow>span+span::before { content: "·"; color: #9aa7bb; margin-right: 10px; }
.job-title { display: block; font-size: 1rem; font-weight: 600; line-height: 1.65; min-height: 0; margin: 4px 0 6px; padding: 0; text-align: left; overflow-wrap: anywhere; }
.job-stage { color: #5c6d85; font-size: .875rem; line-height: 1.7; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-row-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 17px; margin-top: 9px; font-size: .77rem; color: #6b7890; }
.job-row-meta>span { display: inline-flex; gap: 6px; align-items: center; }
.job-row-meta .tag { font-size: .75rem; }
.turn-state { display: inline-flex; align-items: center; gap: 7px; color: #687a94; font-size: .8rem; line-height: 1.8; }
.turn-state i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: 0 0 5px; }
.turn-state.activity { color: #315bc6; }
.turn-state.warning { color: #996b16; }
.checkpoint-missing { color: #8490a2; }
.job-terminal { display: flex; flex-direction: column; align-items: flex-end; padding-top: 1px; text-align: right; }
.job-terminal strong { font-size: .83rem; font-weight: 500; overflow-wrap: anywhere; }
.job-terminal>span { color: var(--muted); font-size: .77rem; font-variant-numeric: tabular-nums; margin-top: 5px; }
.job-terminal .btn { font-size: .8rem; margin-top: 9px; padding: 7px 0 7px 8px; }
.coord-error { display: flex; gap: 10px; align-items: center; border: 1px solid #eddcba; background: #fffaef; padding: 11px 14px; margin: 0 0 17px; color: #8b641f; border-radius: 5px; font-size: .87rem; }
.coord-error>svg { width: 18px; height: 18px; flex: 0 0 18px; }
.coord-error>p { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.coord-error p span { display: block; margin-top: 2px; font-size: .8rem; }
.coord-error .btn { flex-shrink: 0; }
.client-strip { display: flex; flex-wrap: wrap; gap: 18px 28px; padding: 2px 0 24px; margin-bottom: 5px; }
.client-item { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.client-glyph { display: flex; color: #8291aa; }
.client-glyph svg { width: 21px; height: 21px; }
.client-item>div { min-width: 0; }
.client-item strong { display: block; font-size: .83rem; font-weight: 600; overflow-wrap: anywhere; }
.client-item div>span { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; overflow-wrap: anywhere; }
.coord-footnote { color: var(--muted); font-size: .8rem; border-top: 1px solid var(--line); padding-top: 17px; margin-top: 18px; line-height: 1.8; }
.routine-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(140px,.45fr) 185px; gap: 24px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.routine-identity h2 { font-size: 1rem; margin-top: 5px; overflow-wrap: anywhere; }
.routine-identity p { font-size: .87rem; color: #63748c; line-height: 1.8; margin-top: 7px; overflow-wrap: anywhere; white-space: pre-wrap; }
.routine-schedule { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.routine-schedule>span:first-child, .routine-times dt { color: var(--muted); font-size: .77rem; }
.routine-schedule strong { font-size: .875rem; font-weight: 500; overflow-wrap: anywhere; }
.routine-times { margin: 0; }
.routine-times>div+div { margin-top: 10px; }
.routine-times dd { margin: 3px 0 0; font-size: .83rem; font-variant-numeric: tabular-nums; }
.routine-stale { margin-top: 9px; color: #976b23; font-size: .77rem; }
.job-detail-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; }
.job-detail-status>span:last-child { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .8rem; }
.job-detail .detail-head { margin-top: 16px; }
.job-id { font-size: .77rem; overflow-wrap: anywhere; }
.job-facts { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px 24px; padding: 20px 0; margin-top: 5px; border-bottom: 1px solid var(--line); }
.job-facts>div { min-width: 0; }
.job-facts span { display: block; color: var(--muted); font-size: .78rem; }
.job-facts strong { display: block; margin-top: 5px; font-size: .875rem; font-weight: 500; overflow-wrap: anywhere; white-space: pre-wrap; }
.job-observation-note { margin-top: 15px; font-size: .8rem; color: var(--muted); line-height: 1.9; overflow-wrap: anywhere; }
.job-observation-note .path { font-size: .8rem; }
.job-detail .section-head h3 { margin-bottom: 0; }
.job-detail .form-actions { margin-top: 19px; }
.checkpoint-empty { padding: 17px 18px; background: #f3f6fc; border-radius: 5px; }
.checkpoint-empty strong { font-size: .93rem; font-weight: 500; }
.checkpoint-empty p { margin-top: 7px; color: var(--muted); font-size: .87rem; line-height: 1.8; }
.checkpoint-fields { margin: 18px 0 0; }
.checkpoint-fields>div { margin-top: 16px; }
.checkpoint-fields dt { color: var(--muted); font-size: .78rem; margin-bottom: 5px; }
.checkpoint-fields dd { margin: 0; font-size: .93rem; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.checkpoint-fields dd.path { font-size: .83rem; }
.checkpoint-evidence { margin-top: 18px; }
.job-references { margin: 7px 0 0; padding: 0; list-style: none; }
.job-references li { padding: 4px 0; font-size: .83rem; line-height: 1.8; overflow-wrap: anywhere; }
.job-references a { display: inline; }
.reference-text { color: #5b6c86; }
.checkpoint-date { margin-top: 14px; }
.detail-empty { font-size: .87rem; line-height: 1.9; color: var(--muted); }
.job-artifacts { margin: 0; padding: 0; list-style: none; }
.job-artifacts>li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.job-artifacts>li:first-child { padding-top: 0; }
.job-artifacts strong { font-size: .93rem; font-weight: 500; overflow-wrap: anywhere; }
.artifact-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.artifact-hash { font-size: .75rem; color: #7a879c; overflow-wrap: anywhere; margin-top: 9px; }
.job-event-list { padding: 0 0 0 18px; margin: 8px 0 16px; color: var(--muted); }
.job-event-list li { padding: 9px 0 14px 2px; font-size: .83rem; overflow-wrap: anywhere; }
.job-event-list strong { display: block; color: #445772; font-weight: 500; font-size: .87rem; }
.job-event-list p { margin-top: 4px; }
.job-event-list time { display: block; font-size: .76rem; margin-top: 5px; }
.checkpoint-history { border-bottom: 1px solid var(--line); padding: 12px 0 20px; margin-bottom: 12px; }
.run-progress { display: flex; align-items: center; gap: 13px; margin-top: 18px; }
.run-progress progress { flex: 1; min-width: 0; height: 6px; accent-color: var(--blue); }
.run-progress span { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.handoff-heading { margin-bottom: 23px; }
.handoff-heading h1 { font-size: 1.3rem; font-weight: 600; line-height: 1.7; overflow-wrap: anywhere; }
.handoff-heading p { font-size: .875rem; margin-top: 6px; color: var(--muted); }
.job-detail-error:empty { display: none; }
@media(max-width:1100px) {
  .routine-row { grid-template-columns: minmax(0,1fr) 180px; gap: 15px 24px; }
  .routine-times { grid-column: 1 / -1; display: flex; gap: 30px; }
  .routine-times>div+div { margin-top: 0; }
  .coord-cadence { max-width: 150px; text-align: right; }
}
@media(max-width:720px) {
  .coord-overview { margin-bottom: 26px; }
  .coord-overview .section-head { align-items: flex-start; }
  .coord-overview .section-head>.btn { margin-top: -5px; }
  .coord-summary { gap: 10px 17px; flex-wrap: wrap; padding-bottom: 13px; }
  .coord-summary button { gap: 6px; font-size: .8rem; }
  .coord-summary strong { font-size: 1.13rem; }
  .coord-cadence { flex: 0 0 100%; margin-left: 0; max-width: none; text-align: left; font-size: .75rem; }
  .job-row, .job-row.compact { grid-template-columns: 5px minmax(0,1fr); gap: 0 11px; padding: 17px 0; }
  .job-main { grid-column: 2; }
  .job-state-dot { grid-column: 1; grid-row: 1 / 3; }
  .job-terminal { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding-top: 9px; text-align: left; }
  .job-terminal strong { font-size: .76rem; }
  .job-terminal>span { margin: 0; font-size: .73rem; }
  .job-terminal .btn { margin: 0 0 0 auto; font-size: .77rem; }
  .job-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; min-height: 44px; padding: 7px 0 5px; margin: 0; font-size: 1rem; }
  .job-stage { font-size: .87rem; }
  .job-row-meta { gap: 6px 12px; margin-top: 10px; font-size: .75rem; }
  .job-row-meta .checkpoint-missing { flex-basis: 100%; }
  .turn-state { font-size: .77rem; }
  .client-strip { gap: 15px 20px; padding-bottom: 20px; }
  .client-item { flex: 1 1 140px; }
  .client-item div>span { font-size: .73rem; }
  .job-filters { gap: 19px; }
  .job-filters .filter { font-size: .83rem; gap: 6px; }
  .routine-row { grid-template-columns: minmax(0,1fr); gap: 18px; padding: 20px 0; }
  .routine-identity h2 { font-size: 1rem; }
  .routine-schedule { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
  .routine-schedule strong { flex: 1; }
  .routine-times { grid-column: 1; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 15px; }
  .routine-times dd { font-size: .78rem; overflow-wrap: anywhere; }
  .coord-error { align-items: flex-start; gap: 8px; padding: 12px; flex-wrap: wrap; }
  .coord-error>.btn { margin-left: 25px; padding-top: 0; padding-bottom: 0; }
  .job-facts { gap: 18px 16px; }
  .job-facts strong { font-size: .83rem; }
  .job-detail-status { gap: 6px 16px; }
  .job-detail-status>span:last-child { font-size: .77rem; }
  .run-progress { flex-wrap: wrap; }
  .run-progress progress { flex-basis: 100%; }
  .checkpoint-empty { padding: 15px; }
  .job-detail .form-actions .btn { padding: 10px 12px; font-size: .83rem; }
}
@media(max-width:360px) {
  .job-filters { justify-content: space-between; gap: 10px; }
  .job-filters .filter { gap: 4px; font-size: .8rem; }
  .job-terminal>span { flex-basis: calc(100% - 120px); }
  .job-facts { grid-template-columns: minmax(0,1fr); gap: 15px; }
}

/* Grok dispatch follows the task lifecycle; trigger receipts are not completion. */
.grok-settings { min-width: 0; }
.grok-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; margin-bottom: 7px; }
.grok-heading h2 { margin: 0; }
.grok-setting-facts { margin: 0 0 24px; }
.grok-setting-facts>div { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 8px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .87rem; }
.grok-setting-facts dt { color: var(--muted); }
.grok-setting-facts dd { margin: 0; overflow-wrap: anywhere; }
.grok-setting-facts .field-help { display: inline-block; margin: 0 0 0 8px; }
.grok-settings .field input { min-width: 0; width: 100%; }
.grok-settings .checkbox-field .field-help { display: block; margin-top: 4px; }
.grok-settings .field-help, .grok-settings .inline-note, .grok-settings .form-error { overflow-wrap: anywhere; }
.grok-settings .form-error { scroll-margin-top: 130px; }
.grok-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.grok-save-note { margin-top: 10px; min-height: 1.9em; }
.grok-recent { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.grok-recent h3 { margin-bottom: 8px; font-size: .93rem; }
.grok-recent ul { list-style: none; padding: 0; margin: 0; }
.grok-recent li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.grok-recent li:last-child { border-bottom: 0; }
.grok-recent li>div { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.grok-recent li p, .grok-recent time { color: var(--muted); font-size: .8rem; line-height: 1.9; overflow-wrap: anywhere; }
.grok-recent time { display: block; margin-top: 4px; font-variant-numeric: tabular-nums; }
.grok-job-dispatch .section-head { flex-wrap: wrap; gap: 8px; }
.grok-job-dispatch .field-help { margin: 0; }
@media(max-width:720px) {
  .grok-setting-facts>div { grid-template-columns: minmax(0,1fr); gap: 3px; }
  .grok-actions .btn, .grok-job-dispatch .form-actions .btn { flex: 1 1 auto; }
}
