/* MCP 超市 · Swiss: one blue, white surfaces, aligned information. */
:root {
  color-scheme: light;
  --white: #fff;
  --surface: #f7f7f8;
  --ink: #181a20;
  --muted: #626570;
  --line: #e2e3e7;
  --line-strong: #c6c8d0;
  --blue: #002fa7;
  --blue-hover: #002582;
  --blue-tint: #edf2ff;
  --sidebar: 240px;
  --radius: 4px;
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; scrollbar-gutter: stable; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, select, textarea { border-radius: var(--radius); }
input, textarea { caret-color: var(--blue); }
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; opacity: .5; }
button:disabled:hover { transform: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, a, input, select, textarea, summary, [tabindex] { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--blue); }
::selection { color: var(--white); background: var(--blue); }
::placeholder { color: var(--muted); opacity: 1; }
* { scrollbar-width: thin; scrollbar-color: #b2b5be var(--surface); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: #b2b5be; border: 2px solid var(--surface); border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(26px, 2.3vw, 34px); line-height: 1.3; letter-spacing: -.025em; }
h2 { font-size: 19px; line-height: 1.45; letter-spacing: -.015em; }
h3 { font-size: 15px; line-height: 1.5; }
img, video { display: block; max-width: 100%; }
svg.icon { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.app-shell { min-height: 100dvh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: var(--sidebar); display: flex; flex-direction: column; background: var(--white); border-right: 1px solid var(--line); padding: 32px 20px 20px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 34px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; color: var(--white); background: var(--blue); font-size: 16px; font-weight: 600; }
.brand-title { color: var(--ink); font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -.02em; }
.brand-title, .brand-subtitle { display: block; }
.nav-count { margin-left: auto; font-variant-numeric: tabular-nums; }
.local-note { display: flex; align-items: center; gap: 8px; padding-top: 15px; }
.local-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.brand-subtitle { color: var(--muted); font-size: 11px; margin-top: 3px; }
.sidebar nav { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 10px 13px; border: 0; border-radius: var(--radius); text-decoration: none; background: transparent; color: var(--muted); text-align: left; font-weight: 500; }
.nav-item:hover { background: var(--surface); color: var(--ink); }
.nav-item[aria-current="page"] { color: var(--blue); background: var(--blue-tint); }
.nav-item .count { margin-left: auto; font-size: 12px; font-variant-numeric: tabular-nums; }
.sidebar-footer { margin-top: auto; padding: 22px 10px 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.sidebar-footer::before { content: ""; display: block; height: 1px; background: var(--line); margin-bottom: 17px; }
.workspace { min-width: 0; margin-left: var(--sidebar); }
.topbar { min-height: 72px; padding: 14px 36px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar-trail { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.topbar-trail a { text-decoration: none; }
.topbar-trail a:hover { color: var(--blue); }
.topbar-actions, .actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page { max-width: 1600px; padding: 38px 36px 64px; margin: 0 auto; min-width: 0; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 32px; }
.page-heading > :first-child { min-width: 0; }
.page-heading .description { max-width: 68ch; margin-top: 10px; color: var(--muted); line-height: 1.8; }
.page-heading .actions { padding-top: 3px; flex-shrink: 0; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border: 1px solid transparent; background: transparent; color: var(--ink); border-radius: var(--radius); font-weight: 500; line-height: 1.5; text-decoration: none; white-space: nowrap; transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease; }
.button.primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.button.primary:hover:not(:disabled) { background: var(--blue-hover); border-color: var(--blue-hover); }
.button.secondary { border-color: var(--line-strong); background: var(--white); }
.button.secondary:hover:not(:disabled) { background: var(--surface); border-color: #9a9da7; }
.button.quiet:hover:not(:disabled), .button.icon-button:hover:not(:disabled) { background: var(--surface); color: var(--blue); }
.button.danger { color: var(--ink); border-color: var(--line-strong); text-decoration: underline; text-underline-offset: 3px; }
.button.danger:hover:not(:disabled) { color: var(--white); background: var(--ink); border-color: var(--ink); }
.button.small { min-height: 44px; padding: 8px 11px; font-size: 12px; }
.button.icon-button { width: 44px; min-width: 44px; padding: 11px; }
.button[aria-busy="true"] { cursor: progress; opacity: .7; }
.mode-switch { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
.mode-switch a, .mode-switch button { min-height: 44px; display: flex; align-items: center; padding: 8px 14px; border: 0; border-radius: 3px; color: var(--muted); background: transparent; text-decoration: none; font-size: 12px; }
.mode-switch [aria-pressed="true"], .mode-switch [aria-current="page"], .mode-switch .active { background: var(--white); color: var(--blue); }
.stats-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.stat { padding: 22px 24px; border-right: 1px solid var(--line); min-width: 0; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat-label { color: var(--muted); font-size: 12px; }
.stat-value { font-size: 30px; font-weight: 500; letter-spacing: -.03em; line-height: 1.3; margin: 8px 0 5px; font-variant-numeric: tabular-nums; }
.stat-note { color: var(--muted); font-size: 11px; }
.stat-label, .stat-value, .stat-note { display: block; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 32px; align-items: start; }
.overview-grid > *, .panel, .detail-main, .detail-side { min-width: 0; }
.overview-grid > aside { border-left: 1px solid var(--line); padding-left: 25px; }
.panel + .panel { margin-top: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 19px; }
.section-heading h2 { font-size: 17px; }
.section-heading .meta { font-size: 12px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.search-field { display: flex; align-items: center; gap: 10px; width: min(100%, 320px); min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--muted); background: var(--white); }
.search-field:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.search-field input { min-width: 0; width: 100%; height: 42px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filters select, .toolbar > select { min-height: 44px; max-width: 100%; border: 1px solid var(--line-strong); padding: 8px 30px 8px 12px; background: var(--white); color: var(--ink); font-size: 12px; }
.table-scroll { position: relative; width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
.project-table { min-width: 690px; table-layout: fixed; }
.project-table th:nth-child(1) { width: 36%; }
.project-table th:nth-child(2) { width: 17%; }
.project-table th:nth-child(3) { width: 24%; }
.project-table th:nth-child(4) { width: 16%; }
.project-table th:nth-child(5) { width: 7%; }
.project-table td:last-child { padding: 0; }
.task-table { min-width: 740px; }
th { height: 42px; color: var(--muted); background: var(--surface); font-size: 11px; font-weight: 500; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
th, td { padding: 13px 14px; }
td { border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 12px; }
th:first-child, td:first-child { padding-left: 16px; }
tbody tr:hover { background: #fafafb; }
.project-table td { height: 94px; }
.project-cell { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.project-cell > div:last-child { min-width: 0; }
.project-initial { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; background: var(--surface); color: var(--blue); font-size: 13px; font-weight: 600; }
.project-name { display: inline-block; max-width: 100%; color: var(--ink); font-size: 14px; line-height: 1.5; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.project-name:hover { color: var(--blue); text-decoration: underline; }
.project-summary { color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { display: inline-flex; align-items: center; gap: 5px; min-height: 23px; max-width: 100%; padding: 2px 7px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); color: var(--muted); font-size: 11px; line-height: 1.5; white-space: nowrap; }
.tag.blue, .tag.success { background: var(--blue-tint); border-color: #d9e2ff; color: var(--blue); }
.tag.sample, .tag.muted { color: var(--muted); background: var(--surface); }
.tag.warning { color: var(--ink); background: var(--surface); border-color: var(--line-strong); }
.project-name + .tag { margin-left: 7px; vertical-align: 1px; }
.progress-track { height: 3px; width: 100%; max-width: 180px; background: #e8e9ed; overflow: hidden; }
.progress-fill { display: block; height: 100%; max-width: 100%; background: var(--blue); }
.progress-caption { display: flex; justify-content: space-between; gap: 8px; max-width: 180px; margin-top: 7px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.progress-caption { margin-bottom: 7px; }
.attention-tags { display: flex; gap: 6px; margin-top: 10px; }
.footnote { margin-top: 20px; line-height: 1.9; }
.empty-state { padding: 40px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
.empty-state h2, .empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 65ch; }
.empty-state .button { margin-top: 18px; }
.attention-list { display: grid; }
.attention-item { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.attention-item:first-child { padding-top: 0; }
.attention-item h3, .attention-item strong { font-size: 13px; line-height: 1.6; font-weight: 500; }
.attention-item .meta { display: block; margin-top: 6px; }
a.attention-item:hover h3, a.attention-item:hover strong { color: var(--blue); }
.text-link { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; color: var(--blue); font-size: 12px; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.meta, .muted { color: var(--muted); font-size: 12px; }
.tabbar { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin: 8px 0 30px; overflow-x: auto; }
.tabbar button, .tabbar .tab { position: relative; min-height: 49px; padding: 10px 1px 14px; border: 0; border-radius: 0; background: transparent; color: var(--muted); white-space: nowrap; font-size: 13px; text-decoration: none; }
.tabbar [aria-selected="true"], .tabbar [aria-current="page"], .tabbar .active { color: var(--blue); box-shadow: inset 0 -2px var(--blue); }
.tabbar button:hover { color: var(--blue); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; align-items: start; }
.detail-side { border-left: 1px solid var(--line); padding-left: 27px; }
.detail-side dl { margin: 0; }
.detail-side dt { margin: 20px 0 5px; color: var(--muted); font-size: 12px; }
.detail-side dt:first-child { margin-top: 0; }
.detail-side dd { margin: 0; overflow-wrap: anywhere; }
.detail-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.description-text { max-width: 72ch; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.description-text + .section-heading { margin-top: 34px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.checkbox-field.full { grid-column: 1 / -1; }
fieldset.field { margin: 0; padding: 16px; border: 1px solid var(--line); }
.upload-panel .field-grid { grid-template-columns: minmax(0, 1fr); margin: 20px 0 16px; }
.upload-panel .button { margin-top: 16px; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; color: var(--muted); font-size: 12px; margin-bottom: 26px; }
.publish-project { padding: 26px 0; border-top: 1px solid var(--line); }
.field label, .field-label { font-size: 12px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); color: var(--ink); background: var(--white); }
.field textarea { min-height: 112px; resize: vertical; line-height: 1.8; }
.field input[type="file"] { padding: 7px; font-size: 12px; }
input::file-selector-button { min-height: 30px; margin-right: 12px; padding: 4px 10px; border: 0; border-radius: 2px; color: var(--ink); background: var(--surface); cursor: pointer; font: inherit; }
.field small, .field .help { color: var(--muted); font-size: 11px; line-height: 1.7; }
.field [aria-invalid="true"] { border-color: var(--ink); border-width: 2px; padding: 9px 11px; }
.form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.checkbox-field { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13px; cursor: pointer; }
.checkbox-field input { width: 17px; height: 17px; min-height: 0; flex: 0 0 17px; accent-color: var(--blue); }
.editor-section + .editor-section { margin-top: 30px; }
.editor-section > h2, .editor-section > h3 { margin-bottom: 16px; }
.section-rule { height: 1px; margin: 28px 0; border: 0; background: var(--line); }
.notice { padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.notice.info { color: var(--blue); border-color: #d9e2ff; background: var(--blue-tint); }
.notice.error { color: var(--ink); border-color: #9295a0; }
.notice + .field-grid, .notice + .section-heading, .notice + .panel { margin-top: 24px; }
.asset-list { border-top: 1px solid var(--line); }
.asset-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.asset-row > :first-child { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.asset-row .actions { flex-shrink: 0; }
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 20px 0; }
.media-item { margin: 0; min-width: 0; }
.media-item img, .media-item video { width: 100%; height: auto; max-height: 480px; object-fit: contain; background: var(--surface); border: 1px solid var(--line); }
.media-item figcaption, .media-item .meta { margin-top: 8px; overflow-wrap: anywhere; }
.source-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); border: 1px solid var(--line); min-height: 340px; max-width: 100%; }
.source-tree { padding: 8px; border-right: 1px solid var(--line); min-width: 0; max-height: 540px; overflow: auto; }
.source-tree button { display: block; width: 100%; min-height: 44px; padding: 8px 10px; border: 0; text-align: left; background: transparent; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.source-tree button:hover { color: var(--ink); background: var(--surface); }
.source-tree button[aria-selected="true"], .source-tree button.active { color: var(--blue); background: var(--blue-tint); }
.source-tree button[aria-current="true"] { color: var(--blue); background: var(--blue-tint); }
.source-tree button { display: flex; align-items: flex-start; gap: 7px; }
.source-tree button span { min-width: 0; }
.source-layout > :last-child { min-width: 0; }
.code-toolbar { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--line); font-size: 12px; overflow-wrap: anywhere; }
pre.code-view { margin: 0; padding: 20px; min-height: 290px; max-height: 540px; overflow: auto; background: var(--surface); color: var(--ink); font: 12px/1.8 Consolas, "SFMono-Regular", Menlo, monospace; tab-size: 4; }
.publication-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.task-group + .task-group { margin-top: 28px; }
.task-group > h3 { margin-bottom: 13px; }
.milestone-row { display: flex; align-items: flex-start; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.milestone-content { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.milestone-content .meta { margin-top: 5px; }
.milestone-images { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0; }
.milestone-images figure { margin: 0; width: 130px; max-width: 100%; }
.milestone-images img { display: block; width: 130px; max-width: 100%; height: 96px; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; }
.milestone-images figcaption { font-size: 12px; overflow-wrap: anywhere; margin-top: 4px; }
.milestone-row > .tag { margin-top: 2px; }
.showcase-shell { min-height: 100dvh; background: var(--white); }
.showcase-nav { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 86px; padding: 18px max(32px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid var(--line); }
.showcase-nav .brand { padding: 0; }
.showcase-header { max-width: 1180px; margin: 0 auto; padding: 68px 0 50px; }
.showcase-page { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.showcase-header-meta { display: flex; gap: 24px; padding-top: 26px; color: var(--muted); font-size: 12px; }
.showcase-footer { display: flex; justify-content: space-between; gap: 20px; max-width: 1180px; margin: 0 auto; padding: 25px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.showcase-header h1 { max-width: 900px; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.2; letter-spacing: -.035em; }
.showcase-header p { margin-top: 21px; max-width: 65ch; color: var(--muted); font-size: 15px; line-height: 1.85; }
.showcase-list { max-width: 1180px; margin: 0 auto; padding-bottom: 70px; }
.showcase-item { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 28px; align-items: start; padding: 33px 0; border-top: 1px solid var(--line); text-decoration: none; }
.showcase-number { padding-top: 5px; font-size: 14px; line-height: 1.4; color: var(--blue); }
.showcase-body { min-width: 0; }
.showcase-title { font-size: 25px; line-height: 1.4; letter-spacing: -.025em; }
.showcase-title a { text-decoration: none; }
.showcase-title a:hover, a.showcase-item:hover .showcase-title { color: var(--blue); }
.showcase-description { margin-top: 13px; max-width: 65ch; color: var(--muted); font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
.showcase-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 20px; color: var(--muted); font-size: 11px; }
.showcase-item > img, .showcase-cover { width: 100%; height: 150px; object-fit: cover; background: var(--surface); border: 1px solid var(--line); }
.showcase-detail { max-width: 1000px; margin: 0 auto; padding: 48px 0 80px; }
.showcase-detail .description-text { font-size: 15px; line-height: 1.95; }
.showcase-detail .section-heading { margin-top: 38px; }
.showcase-detail-heading { margin: 24px 0 32px; }
.showcase-detail-heading h1 { margin: 16px 0; font-size: clamp(28px, 3.4vw, 44px); overflow-wrap: anywhere; }
.showcase-detail-heading .actions { margin-top: 24px; }
.showcase-detail > .notice { margin-bottom: 32px; }
.showcase-shell > .publication-bar { padding: 20px 32px; background: var(--blue-tint); }
.publication-bar p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.skip-link:focus { position: fixed; z-index: 200; top: 8px; left: 8px; width: auto; height: auto; clip: auto; margin: 0; padding: 12px; background: var(--white); }
dialog#editor-dialog { width: min(760px, calc(100vw - 40px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 6px; color: var(--ink); background: var(--white); box-shadow: 0 20px 70px #181a202b; }
dialog::backdrop { background: #181a2066; }
dialog[open] { animation: dialog-open 180ms cubic-bezier(.16, 1, .3, 1); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 26px 18px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 20px; }
.dialog-body { max-height: calc(100dvh - 240px); overflow-y: auto; padding: 25px 26px; overscroll-behavior: contain; }
.dialog-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 17px 26px; border-top: 1px solid var(--line); }
.dialog-footer .meta { margin-right: auto; }
#toast { position: fixed; z-index: 100; bottom: 24px; right: 28px; width: min(420px, calc(100vw - 40px)); pointer-events: none; }
.toast { padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--ink); background: var(--white); font-size: 13px; line-height: 1.7; pointer-events: auto; }
.toast.error { border-color: var(--ink); }
.loading-state { padding: 48px 0; color: var(--muted); font-size: 13px; }
@keyframes dialog-open { from { transform: translateY(8px); } to { transform: translateY(0); } }
@media (min-width: 1600px) {
  .page { padding-left: 52px; padding-right: 52px; }
  .overview-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
}
@media (max-width: 1199px) {
  :root { --sidebar: 212px; }
  .sidebar { padding-left: 14px; padding-right: 14px; }
  .topbar { padding-left: 28px; padding-right: 28px; }
  .page { padding: 32px 28px 52px; }
  .overview-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .overview-grid > aside { border-left: 0; padding: 0; border-top: 1px solid var(--line); padding-top: 25px; }
  .attention-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .attention-item:first-child { padding-top: 16px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 210px; gap: 25px; }
  .detail-side { padding-left: 22px; }
  .showcase-header, .showcase-list, .showcase-detail { margin-left: 32px; margin-right: 32px; }
}
@media (max-width: 900px) {
  .page-heading { flex-wrap: wrap; gap: 18px; }
  .page-heading .actions { padding-top: 0; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-side { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat { padding-left: 15px; padding-right: 15px; }
  .source-layout { grid-template-columns: 170px minmax(0, 1fr); }
  .showcase-item { grid-template-columns: 100px minmax(0, 1fr) auto; gap: 20px; }
}
@media (max-width: 700px) {
  html { scrollbar-gutter: auto; }
  .sidebar { position: static; width: 100%; padding: 18px 20px 0; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .brand { padding: 0 0 18px; }
  .sidebar nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 0 -4px; padding: 0 4px 10px; }
  .nav-item { width: auto; flex: 0 0 auto; min-height: 44px; gap: 7px; padding: 9px 11px; font-size: 12px; }
  .nav-item .count { margin-left: 3px; }
  .sidebar-footer { display: none; }
  .workspace { margin-left: 0; }
  .topbar { min-height: 62px; padding: 9px 20px; gap: 10px; }
  .topbar-actions { gap: 4px; }
  .mode-switch a, .mode-switch button { padding-left: 10px; padding-right: 10px; }
  .page { padding: 28px 20px 48px; }
  .page-heading { margin-bottom: 26px; }
  .page-heading .description { font-size: 13px; margin-top: 8px; }
  .page-heading .actions { gap: 8px; }
  .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 28px; }
  .stat { padding: 17px 18px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .stat-value { font-size: 27px; }
  .section-heading { margin-bottom: 14px; }
  .search-field { width: 100%; }
  .filters { width: 100%; }
  .filters select { flex: 1; min-width: 0; }
  .attention-list { grid-template-columns: minmax(0, 1fr); }
  .attention-item:first-child { padding-top: 0; }
  .tabbar { gap: 23px; margin-bottom: 24px; }
  .field-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .media-grid { grid-template-columns: minmax(0, 1fr); }
  .source-layout { grid-template-columns: minmax(0, 1fr); }
  .source-tree { max-height: 185px; border-right: 0; border-bottom: 1px solid var(--line); }
  .asset-row { gap: 8px; }
  .asset-row .actions { flex-wrap: wrap; justify-content: flex-end; max-width: 100px; gap: 2px; }
  .publication-bar { align-items: flex-start; }
  .showcase-nav { padding: 16px 20px; min-height: 76px; gap: 12px; flex-wrap: wrap; }
  .showcase-nav .brand-subtitle { display: none; }
  .showcase-header, .showcase-list { margin-left: 0; margin-right: 0; }
  .showcase-detail { margin-left: 20px; margin-right: 20px; }
  .showcase-page { padding-left: 20px; padding-right: 20px; }
  .showcase-header { padding: 40px 0 34px; }
  .showcase-header h1 { font-size: 34px; }
  .showcase-header p { margin-top: 16px; font-size: 13px; }
  .showcase-item { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 26px 0; }
  .showcase-number { font-size: 13px; }
  .showcase-item > .button { justify-self: start; }
  .showcase-nav > .meta { display: none; }
  .showcase-shell > .publication-bar { padding: 18px 20px; }
  .showcase-title { font-size: 22px; }
  .showcase-item > img, .showcase-item > .showcase-cover { grid-column: 2; width: 100%; height: auto; max-height: 220px; }
  .showcase-detail { padding-top: 28px; }
  dialog#editor-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .dialog-header { padding: 14px 18px; }
  .dialog-body { padding: 20px 18px; max-height: calc(100dvh - 200px); }
  .dialog-footer { padding: 14px 18px; flex-wrap: wrap; }
  #toast { bottom: 16px; right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.brand-logo { width: 38px; height: 38px; object-fit: contain; }
.home-logo-preview { width: 90px; max-height: 70px; object-fit: contain; object-position: left; }
.showcase-tag-filter { display:flex; align-items:center; gap:10px; margin:0 0 16px; color:var(--muted); font-size:13px; }
.showcase-tag-filter select { min-height:44px; min-width:150px; }
.markdown-preview { border:1px solid var(--line); padding:16px; min-height:80px; }
.markdown { overflow-wrap:anywhere; line-height:1.8; }
.markdown p,.markdown ul,.markdown ol,.markdown pre { margin:0 0 1em; }
.markdown h1,.markdown h2,.markdown h3,.markdown h4 { margin:1.2em 0 .5em; }
.markdown pre { overflow:auto; padding:16px; background:var(--surface); white-space:pre; }
.markdown img { max-width:100%; height:auto; }
.markdown table { border-collapse:collapse; width:100%; }
.markdown th,.markdown td { padding:8px; border:1px solid var(--line); text-align:left; }
.git-commits { padding-left:20px; overflow-wrap:anywhere; }
.git-commits li { padding:5px 0; }
.progress-overview { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px; margin-bottom:32px; padding-bottom:24px; border-bottom:1px solid var(--line); }
.progress-overview h2 { font-size:16px; margin:0 0 12px; }
.progress-overview p { margin:6px 0; }
@media (max-width:700px) { .progress-overview { grid-template-columns:1fr; gap:20px; } }
.login-page { max-width:520px; margin:10vh auto; padding:32px; }
.login-page h1 { margin-bottom:10px; }
.login-page p { color:var(--muted); margin-bottom:28px; }
.login-page .field-grid { grid-template-columns:1fr; }
.grant-row { display:flex; flex-wrap:wrap; align-items:center; gap:10px 24px; padding:14px 0; border-top:1px solid var(--line); }
.grant-row strong { min-width:180px; flex:1; }
.project-icon{width:42px;height:42px;object-fit:cover;border-radius:4px;border:1px solid var(--line);flex:0 0 auto}
.project-metrics{display:grid;gap:12px;margin:14px 0 20px;max-width:720px}.project-metrics.compact{gap:9px;margin:6px 0;min-width:230px}.metric-row{min-width:0}.metric-row.public-metric-spacer{min-height:44px}.metric-row .progress-caption{gap:12px}.metric-row .meta{line-height:1.4;margin-top:4px}.metric-row .progress-track{max-width:none}.showcase-number .project-icon,.showcase-number .project-initial{margin-bottom:10px}.showcase-detail-heading>.project-icon{width:64px;height:64px}.project-table td{vertical-align:top;padding-top:19px;padding-bottom:19px}.showcase-body .project-metrics{margin-top:18px}.grant-row .project-icon{vertical-align:middle}
.project-table{min-width:960px}.project-table th:nth-child(1){width:30%}.project-table th:nth-child(2){width:15%}.project-table th:nth-child(3){width:35%}.project-table th:nth-child(4){width:13%}.project-table th:nth-child(5){width:7%}.project-metrics.compact{min-width:0}.project-metrics>.tag{justify-self:start}

/* Linear-inspired showcase landing. The workspace and detail page retain their own design. */
.landing-shell {
  --landing-canvas:#010102;
  --landing-panel:#0f1011;
  --landing-panel-raised:#141516;
  --landing-line:#23252a;
  --landing-line-strong:#34343a;
  --landing-ink:#f7f8f8;
  --landing-muted:#8a8f98;
  --landing-soft:#d0d6e0;
  --landing-accent:#5e6ad2;
  min-height:100dvh;
  color:var(--landing-ink);
  background:var(--landing-canvas);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;
  font-size:16px;
  line-height:1.5;
}
.landing-shell :focus-visible { outline:2px solid #828fff; outline-offset:4px; }
.landing-shell a { color:inherit; }
.landing-shell .button { min-height:44px; border-radius:8px; font-size:14px; font-weight:500; }
.landing-shell .button.primary { color:#fff; background:#5e6ad2; border-color:#5e6ad2; }
.landing-shell .button.primary:hover { background:#828fff; border-color:#828fff; }
.landing-shell .button.secondary { color:var(--landing-ink); background:var(--landing-panel); border-color:var(--landing-line-strong); }
.landing-shell .button.secondary:hover { background:#18191a; border-color:#3e3e44; }
.landing-shell .button.quiet { color:var(--landing-soft); }
.landing-shell .button.quiet:hover { background:var(--landing-panel-raised); color:var(--landing-ink); }
.landing-nav { border-bottom:1px solid var(--landing-line); }
.landing-nav-inner { width:min(1200px,calc(100% - 64px)); min-height:72px; margin:auto; display:flex; align-items:center; gap:40px; }
.landing-brand { display:inline-flex; align-items:center; gap:10px; font-size:16px; font-weight:650; white-space:nowrap; text-decoration:none; }
.landing-brand-mark { width:28px; height:28px; flex:0 0 28px; display:grid; place-items:center; border-radius:6px; background:#5e6ad2; color:#fff; font-size:14px; }
.landing-brand .brand-logo { width:30px; height:30px; object-fit:contain; }
.landing-nav-links { display:flex; align-items:center; gap:28px; flex:1; }
.landing-nav-links a,.landing-nav-links button { padding:8px 0; border:0; background:none; color:var(--landing-muted); font-size:14px; text-decoration:none; white-space:nowrap; }
.landing-nav-links a:hover,.landing-nav-links button:hover { color:var(--landing-ink); }
.landing-nav-actions { margin-left:auto; display:flex; align-items:center; gap:8px; }
.landing-nav-actions .button { min-height:40px; padding:8px 14px; }
.landing-nav-login { display:inline-flex; align-items:center; gap:6px; min-height:40px; color:var(--landing-soft)!important; font-size:14px; text-decoration:none; white-space:nowrap; }
.landing-nav-login:hover { color:var(--landing-ink)!important; }
.landing-preview-label { color:var(--landing-muted); font-size:12px; white-space:nowrap; }
.landing-main { min-width:0; }
.landing-hero,.landing-features,.landing-projects,.landing-cta { width:min(1200px,calc(100% - 64px)); margin-inline:auto; }
.landing-hero { padding:112px 0 96px; border-bottom:1px solid var(--landing-line); }
.landing-hero-inner { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:60px; }
.landing-eyebrow { color:var(--landing-soft); font-size:13px; font-weight:500; letter-spacing:.01em; }
.landing-eyebrow-dot { display:inline-block; width:7px; height:7px; margin-right:8px; border-radius:50%; background:#5e6ad2; vertical-align:2px; }
.landing-shell .landing-hero .showcase-header { max-width:none; margin:0; padding:0; border:0; }
.landing-shell .landing-hero .showcase-header h1 { margin:24px 0 20px; font-size:clamp(42px,4.8vw,64px); line-height:1.12; text-wrap:pretty; word-break:auto-phrase; }
.landing-shell .landing-keep { white-space:nowrap; }
.landing-shell .landing-hero .showcase-header p { margin:0; color:var(--landing-muted); font-size:18px; line-height:1.7; }
.landing-hero-title { max-width:680px; margin:24px 0 20px; color:var(--landing-ink); font-size:clamp(44px,5.5vw,72px); line-height:1.08; letter-spacing:-.04em; font-weight:600; overflow-wrap:anywhere; }
.landing-hero-copy { max-width:540px; color:var(--landing-muted); font-size:18px; line-height:1.7; }
.landing-hero-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:32px; }
.landing-button { min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 16px; border:1px solid var(--landing-line-strong); border-radius:8px; color:var(--landing-ink); background:var(--landing-panel); font-size:14px; font-weight:500; text-decoration:none; }
.landing-button-primary { background:#5e6ad2; border-color:#5e6ad2; color:#fff!important; }
.landing-button-primary:hover { background:#828fff; border-color:#828fff; }
.landing-button-secondary:hover { background:#18191a; border-color:#3e3e44; }
.landing-hero-note { margin-top:20px; color:var(--landing-muted); font-size:12px; }
.landing-hero-visual { min-width:0; overflow:hidden; border:1px solid var(--landing-line-strong); border-radius:16px; background:var(--landing-panel); }
.landing-window-bar { display:flex; align-items:center; gap:12px; min-height:48px; padding:0 20px; border-bottom:1px solid var(--landing-line); color:var(--landing-muted); font-size:12px; }
.landing-window-dots { display:flex; gap:5px; flex:0 0 auto; }
.landing-window-dots i { display:block; width:6px; height:6px; border-radius:50%; background:#62666d; }
.landing-window-status { margin-left:auto; color:var(--landing-muted); }
.landing-window-heading { padding:28px 24px 18px; }
.landing-window-heading h2,.landing-window-heading h3,.landing-window-heading strong { display:block; font-size:17px; line-height:1.4; font-weight:600; }
.landing-window-heading p,.landing-window-heading small { display:block; margin-top:6px; color:var(--landing-muted); font-size:13px; line-height:1.6; }
.landing-window-rows { padding:0 24px; }
.landing-window-row { display:flex; justify-content:space-between; align-items:center; gap:16px; min-height:66px; padding:12px 0; border-top:1px solid var(--landing-line); }
.landing-window-row { text-decoration:none; }
.landing-window-row:hover .landing-window-name strong { color:#aab4ff; }
.landing-window-project { display:flex; align-items:center; gap:12px; min-width:0; }
.landing-window-glyph { display:grid; place-items:center; width:34px; height:34px; flex:0 0 34px; border:1px solid var(--landing-line-strong); border-radius:8px; color:var(--landing-soft); background:var(--landing-panel-raised); font-size:13px; }
.landing-window-glyph .project-icon,.landing-window-glyph .project-initial { width:32px; height:32px; margin:0; border-radius:7px; background:transparent; color:var(--landing-soft); }
.landing-window-name { min-width:0; }
.landing-window-name strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--landing-ink); font-size:14px; font-weight:500; }
.landing-window-name small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-top:4px; color:var(--landing-muted); font-size:12px; }
.landing-hero-visual .tag { color:var(--landing-soft); background:var(--landing-panel-raised); border-color:var(--landing-line-strong); }
.landing-window-badge { display:inline-flex; align-items:center; gap:4px; flex:0 0 auto; color:var(--landing-soft); font-size:12px; }
.landing-window-badge .icon,.landing-window-footer .icon { width:14px; height:14px; flex-basis:14px; }
.landing-window-empty { margin:0; padding:28px 0; border-top:1px solid var(--landing-line); color:var(--landing-muted); font-size:13px; }
.landing-window-footer { margin:0 24px; padding:16px 0 22px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid var(--landing-line); color:var(--landing-muted); font-size:12px; }
.landing-window-footer button { display:inline-flex; align-items:center; gap:4px; padding:6px 0; border:0; color:var(--landing-soft); background:none; font-size:12px; white-space:nowrap; }
.landing-features,.landing-projects { padding:96px 0; border-bottom:1px solid var(--landing-line); }
.landing-section-head { display:flex; justify-content:space-between; align-items:end; gap:24px; margin-bottom:32px; }
.landing-section-head h2 { color:var(--landing-ink); font-size:clamp(28px,3vw,40px); line-height:1.2; letter-spacing:-.025em; }
.landing-section-head p { max-width:540px; margin-top:12px; color:var(--landing-muted); font-size:15px; line-height:1.7; }
.landing-section-label { display:block; margin-bottom:14px; color:var(--landing-soft); font-size:13px; font-weight:500; }
.landing-project-count { flex:0 0 auto; color:var(--landing-muted); font-size:13px; }
.landing-feature-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.landing-feature-card { min-width:0; min-height:230px; display:flex; flex-direction:column; align-items:flex-start; padding:28px; border:1px solid var(--landing-line); border-radius:12px; background:var(--landing-panel); }
.landing-feature-card:hover { border-color:var(--landing-line-strong); background:var(--landing-panel-raised); }
.landing-feature-icon { display:grid; place-items:center; width:40px; height:40px; margin-bottom:28px; border:1px solid var(--landing-line-strong); border-radius:8px; color:var(--landing-soft); background:var(--landing-panel-raised); }
.landing-feature-card h3 { color:var(--landing-ink); font-size:20px; line-height:1.3; font-weight:500; }
.landing-feature-card p { margin-top:10px; color:var(--landing-muted); font-size:14px; line-height:1.7; }
.landing-feature-link { display:inline-flex; align-items:center; gap:6px; min-height:44px; margin-top:auto; padding:14px 0 0; border:0; background:none; color:var(--landing-soft)!important; font-size:13px; font-weight:400; text-decoration:none; }
.landing-feature-link:hover { color:var(--landing-ink)!important; }
.landing-projects .toolbar { margin-bottom:16px; }
.landing-projects .search-field { border-color:var(--landing-line-strong); border-radius:8px; background:var(--landing-panel); color:var(--landing-muted); }
.landing-projects .search-field input { color:var(--landing-ink); }
.landing-projects .search-field input::placeholder { color:var(--landing-muted); }
.landing-projects .search-field:focus-within { outline-color:#828fff; }
.landing-projects .filters select,.landing-projects .showcase-tag-filter select { min-height:44px; border:1px solid var(--landing-line-strong); border-radius:8px; background:var(--landing-panel); color:var(--landing-soft); }
.landing-projects .showcase-tag-filter { color:var(--landing-muted); }
.landing-projects .showcase-list { max-width:none; padding-bottom:0; }
.landing-projects .showcase-item { border-color:var(--landing-line); }
.landing-projects .showcase-number { color:var(--landing-muted); }
.landing-projects .showcase-title { color:var(--landing-ink); }
.landing-projects .showcase-title a:hover { color:#aab4ff; }
.landing-projects .showcase-description,.landing-projects .showcase-meta,.landing-projects .meta { color:var(--landing-muted); }
.landing-projects .tag { color:var(--landing-soft); border-color:var(--landing-line-strong); background:var(--landing-panel-raised); }
.landing-projects .project-initial { color:var(--landing-soft); background:var(--landing-panel-raised); }
.landing-projects .project-icon { border-color:var(--landing-line-strong); }
.landing-projects .progress-track { background:#34343a; }
.landing-projects .progress-fill { background:#828fff; }
.landing-projects .progress-caption { color:var(--landing-soft); }
.landing-projects .empty-state { padding:32px 0; border-color:var(--landing-line); }
.landing-projects .empty-state p { color:var(--landing-muted); }
.landing-cta { padding:80px 0 96px; }
.landing-cta h2 { color:var(--landing-ink); font-size:clamp(28px,3.5vw,44px); line-height:1.2; letter-spacing:-.025em; }
.landing-cta p { max-width:620px; margin-top:14px; color:var(--landing-muted); font-size:16px; line-height:1.7; }
.landing-cta .button { margin-top:24px; }
.landing-footer { display:flex; align-items:flex-start; justify-content:space-between; gap:32px; min-height:160px; padding:40px max(32px,calc((100% - 1200px)/2)); border-top:1px solid var(--landing-line); color:var(--landing-muted); font-size:13px; }
.landing-footer strong { color:var(--landing-ink); font-size:15px; }
.landing-footer p { margin-top:8px; }
.landing-footer nav { display:flex; flex-wrap:wrap; gap:20px; }
.landing-footer a,.landing-footer button { padding:0; border:0; background:none; color:var(--landing-muted); font-size:13px; text-decoration:none; }
.landing-footer a:hover,.landing-footer button:hover { color:var(--landing-ink); }
.landing-shell > .publication-bar { padding:18px max(32px,calc((100vw - 1200px)/2)); background:#141516; border-bottom:1px solid var(--landing-line); color:var(--landing-ink); }
.landing-shell > .publication-bar p { color:var(--landing-muted); }
@media(max-width:1000px) {
  .landing-nav-inner { gap:24px; }
  .landing-hero-inner { gap:32px; }
  .landing-hero { padding:80px 0; }
  .landing-feature-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .landing-feature-card { padding:22px; }
}
@media(max-width:760px) {
  .landing-nav-inner,.landing-hero,.landing-features,.landing-projects,.landing-cta { width:calc(100% - 40px); }
  .landing-nav-inner { min-height:64px; gap:14px; flex-wrap:wrap; padding:10px 0; }
  .landing-nav-links { order:3; flex:1 0 100%; gap:20px; overflow:auto; padding-bottom:4px; }
  .landing-nav-actions .button { padding-inline:10px; }
  .landing-hero { padding:64px 0 72px; }
  .landing-hero-inner { grid-template-columns:minmax(0,1fr); gap:36px; }
  .landing-shell .landing-hero .showcase-header h1 { margin:18px 0 16px; font-size:clamp(38px,10vw,54px); }
  .landing-shell .landing-hero .showcase-header p { font-size:16px; }
  .landing-features,.landing-projects { padding:72px 0; }
  .landing-section-head { display:block; }
  .landing-feature-grid { grid-template-columns:minmax(0,1fr); }
  .landing-feature-card { min-height:0; padding:24px; }
  .landing-feature-icon { margin-bottom:20px; }
  .landing-projects .showcase-item { grid-template-columns:minmax(0,1fr); gap:14px; }
  .landing-cta { padding:64px 0 80px; }
  .landing-footer { flex-wrap:wrap; padding:32px 20px; }
  .landing-shell > .publication-bar { padding:18px 20px; }
}

.platform-note { margin: 12px 0 14px; }
