:root {
  /* 工作电脑令牌（壳与内容共用） */
  --ink: #1b1b1b;
  --muted: #616161;
  --line: #e5e5e5;
  --line-strong: #cfcfcf;
  --paper: #f5f6f8;
  --surface: #ffffff;
  --chrome: #1b1b1b;
  --chrome-2: #f3f3f3;
  --green: #0f6cbd;
  --green-dark: #115ea3;
  --red: #c42b1c;
  --amber: #b8860b;
  --cyan: #0f7a6c;
  --purple: #6247b8;
  --shadow: 0 8px 28px rgba(0, 0, 0, .12);
  --sidebar: 224px;
  --chrome-h: 94px;
  /* 内容区高度偏移：原先散落 86 / 87 / 96 三个魔法数字，统一收口 */
  --content-offset: 86px;
  --content-offset-lg: 96px;
  --pc-accent: #0f6cbd;
  --pc-accent-hover: #115ea3;
  --pc-text: #1b1b1b;
  --pc-muted: #616161;
  --pc-line: #e5e5e5;
  --pc-surface: #ffffff;
  --pc-canvas: #f5f6f8;
  --pc-taskbar: rgba(249, 249, 249, .92);
  --pc-titlebar: #f9f9f9;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: #e8eef4;
  font-family: "Segoe UI", "Microsoft YaHei UI", "Noto Sans SC", system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #0f6cbd;
  outline-offset: 2px;
}

.app-shell { min-height: 100vh; }

.browser-chrome {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: var(--chrome-h);
  color: #eef2ef;
  background: var(--chrome);
  border-bottom: 1px solid #090b0a;
}

.browser-toolbar {
  height: 52px;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
}

.browser-controls, .toolbar-actions, .notes-tools, .inline-actions, .segmented, .evidence-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-button, .tool-button, .progress-button, .address-bar, .browser-tabs button {
  min-height: 34px;
  border: 1px solid #3b443f;
  color: #e9eeeb;
  background: #202622;
  border-radius: 4px;
}

.icon-button {
  width: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-size: 18px;
}

.icon-button:hover, .tool-button:hover, .progress-button:hover, .browser-tabs button:hover { background: #303832; }

.tool-button {
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.address-bar {
  min-width: 0;
  padding: 0 14px;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #bfc8c2;
  background: #101311;
}

.progress-button {
  min-width: 218px;
  padding: 5px 10px;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 9px;
  align-items: center;
}

.progress-button strong { font-size: 12px; color: #fff; }
.progress-button small {
  min-width: 0;
  grid-column: 2;
  color: #adb8b1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.browser-tabs {
  height: 42px;
  display: flex;
  align-items: end;
  gap: 3px;
  padding: 0 12px;
  overflow-x: auto;
  background: var(--chrome-2);
}

.browser-tabs button {
  height: 34px;
  max-width: 230px;
  padding: 0 13px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  color: #bfc8c2;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.browser-tabs button[aria-selected="true"] {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.app-body {
  height: calc(100vh - var(--chrome-h));
  margin-top: var(--chrome-h);
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
}

.system-sidebar {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 0;
  color: #d9dfdb;
  background: #1b211d;
  border-right: 1px solid #111512;
}

.case-mark {
  padding: 22px 18px 18px;
  display: grid;
  gap: 3px;
  border-bottom: 1px solid #343c36;
}

.case-mark-code, .eyebrow {
  color: #8f9b94;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.case-mark strong { font-size: 20px; color: #f4f6f4; }
.case-mark span:last-child { color: #929e97; font-size: 12px; }

.system-nav { padding: 12px 8px; display: grid; gap: 4px; }
.system-nav button {
  min-height: 44px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 2px;
  color: #bbc4be;
  background: transparent;
  text-align: left;
}
.system-nav button:hover { background: #262e29; color: #fff; }
.system-nav button.active { border-left-color: #72a689; background: #303a34; color: #fff; }
.system-nav button span:first-child { text-align: center; font-size: 18px; }

.sidebar-status {
  margin-top: auto;
  padding: 15px 18px;
  display: grid;
  gap: 7px;
  color: #8d9992;
  font-size: 11px;
  border-top: 1px solid #343c36;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #67a582;
  box-shadow: 0 0 0 3px rgba(103, 165, 130, .12);
}

.page-viewport {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: var(--paper);
}

.page-shell { min-height: 100%; }
.page-header {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.page-header h1 { margin: 2px 0 0; font-size: 19px; font-weight: 600; line-height: 1.25; }
.page-header p { max-width: 720px; margin: 4px 0 0; color: var(--muted); line-height: 1.55; font-size: 12px; }
.page-meta { flex: 0 0 auto; display: grid; gap: 4px; text-align: right; color: var(--muted); font-size: 12px; }

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  min-height: calc(100vh - var(--chrome-h) - var(--content-offset));
}
.workspace-main { min-width: 0; padding: 22px 28px 56px; }
.workspace-aside { min-width: 0; padding: 20px; border-left: 1px solid var(--line); background: #edf0ec; }

.section-block { margin-bottom: 28px; }
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}
.section-heading h2, .section-heading h3 { margin: 0; }
.section-heading h2 { font-size: 18px; }
.section-heading h3 { font-size: 15px; }
.section-heading span { color: var(--muted); font-size: 12px; }

.panel, .record-card, .suspect-row, .document-sheet, .query-result, .claim-panel {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}
.panel { padding: 18px; }
.panel + .panel { margin-top: 14px; }
.panel h3 { margin: 0 0 9px; font-size: 15px; }
.panel p { color: var(--muted); line-height: 1.7; }

.scene-layout { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(300px, 1.1fr); border: 1px solid var(--line); }
.scene-visual { min-height: 280px; background: #171c19; }
.scene-visual canvas { display: block; width: 100%; height: 100%; min-height: 280px; }
.scene-copy { padding: 24px; background: #fff; }
.scene-copy h2 { margin: 0 0 10px; font-size: 22px; }
.scene-copy p { line-height: 1.75; color: #4e5752; }

.status-line, .source-line, .record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 11px;
}

.badge, .source-badge, .state-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: #4f5953;
  background: #f4f6f3;
  font-size: 11px;
  font-weight: 700;
}
.source-badge { color: #285443; border-color: #8bb19f; background: #edf6f1; }
.state-badge.warning { color: #714f16; border-color: #d7b877; background: #fff6dc; }
.state-badge.danger { color: #822f2b; border-color: #d9a09c; background: #fff0ef; }
.state-badge.complete { color: #245840; border-color: #8bb69f; background: #eaf5ef; }

.primary-button, .secondary-button, .quiet-button, .notes-tools button, .inline-actions button, .segmented button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
}
.primary-button { color: #fff; border-color: var(--green-dark); background: var(--green); }
.primary-button:hover { background: var(--green-dark); }
.secondary-button:hover, .quiet-button:hover, .notes-tools button:hover, .inline-actions button:hover { background: #e9ede9; }
.quiet-button { color: var(--muted); background: transparent; }
.danger-quiet { color: var(--red) !important; }
button:disabled { cursor: not-allowed; opacity: .48; }

.record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.record-card { padding: 15px; min-width: 0; }
.record-card header { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.record-card h3 { margin: 0; font-size: 14px; }
.record-card p { margin: 10px 0; color: #505953; line-height: 1.65; }
.record-card .evidence-actions { justify-content: flex-end; margin-top: 12px; }
.record-card.fixed { border-left: 3px solid var(--green); }
.record-card.anomaly { border-left: 3px solid var(--red); }

.document-sheet {
  position: relative;
  padding: 22px;
  font-family: "SimSun", serif;
  line-height: 1.8;
  background-color: #e9e3d4;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(65, 69, 61, .08) 28px);
  box-shadow: inset 0 0 40px rgba(83, 69, 43, .08);
}
.document-sheet h3 { margin: 0 0 8px; font-family: "Microsoft YaHei UI", sans-serif; }
.document-sheet .stamp { position: absolute; right: 20px; top: 18px; color: rgba(139, 39, 34, .66); border: 2px solid rgba(139, 39, 34, .55); padding: 5px 9px; transform: rotate(-5deg); font-family: "SimSun", serif; }
.document-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; margin: 0 90px 14px 0; color: #696558; font: 11px "Microsoft YaHei UI", sans-serif; }
.document-quote { margin: 12px 0; padding: 12px 0 12px 16px; border-left: 2px solid rgba(66, 70, 62, .35); font-size: 15px; }
.document-boundary { color: #514f47; font: 12px/1.7 "Microsoft YaHei UI", sans-serif; }
.old-case-review { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.old-case-review > div, .old-case-review > button { grid-column: 1 / -1; }
.old-case-review h3 { margin: 4px 0; }
.old-case-review p { margin: 0; color: var(--muted); }
.old-case-finding { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 12px; padding: 15px; border: 1px solid #bdd7c6; background: #f3faf5; }
.old-case-finding p { margin: 5px 0 0; color: var(--muted); line-height: 1.6; }
.old-case-prompt { color: #39433d; background: #f6f8f6; border-color: #d8ded9; font-family: "Microsoft YaHei UI", sans-serif; }

.identity-board { display: grid; gap: 14px; }
.candidate-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.candidate-option { display: block; padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: #fafbf9; }
.candidate-option input { margin-right: 7px; }
.candidate-option small { display: block; margin: 6px 0 0 22px; color: var(--muted); line-height: 1.45; }

.suspect-list { display: grid; gap: 9px; }
.suspect-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px; }
.portrait-canvas { width: 58px; height: 70px; display: block; border: 1px solid #aeb6b0; background: #dce1dd; }
.suspect-row h3 { margin: 0 0 4px; font-size: 14px; }
.suspect-row p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

.query-console { border: 1px solid var(--line); background: #fff; }
.query-form { display: grid; grid-template-columns: 180px minmax(180px, 1fr) auto; gap: 8px; padding: 14px; border-bottom: 1px solid var(--line); background: #e8ece8; }
.query-form select, .query-form input, .form-control {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
}
.query-help { padding: 9px 14px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); }
.query-history { display: flex; gap: 6px; overflow-x: auto; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.query-history button { flex: 0 0 auto; border: 0; color: #315f4c; background: transparent; text-decoration: underline; }
.query-output { min-height: 300px; padding: 18px; }

.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th, .data-table td { padding: 9px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { color: #333; background: #f0f0f0; }
.data-table tr.selected td { background: #e8f1fb; }
.mono { font-family: Consolas, "SFMono-Regular", monospace; font-size: .94em; }
.code-token { color: #0f6cbd; border: 0; padding: 0; background: none; text-decoration: underline; }

.graph-frame { min-height: 420px; position: relative; border: 1px solid #2a3830; background: #111713; }
.graph-frame canvas { display: block; width: 100%; height: 440px; }
.graph-legend { display: flex; flex-wrap: wrap; gap: 12px; padding: 10px 12px; color: #c5cec8; background: #1c241f; font-size: 11px; }
.legend-key { display: inline-flex; align-items: center; gap: 6px; }
.legend-key i { width: 18px; height: 3px; display: inline-block; background: var(--key-color); }

.overlay-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: calc(100vh - var(--chrome-h) - var(--content-offset)); }
.overlay-tools { padding: 16px; border-right: 1px solid var(--pc-line); color: var(--pc-text); background: #fafafa; }
.overlay-tools h3 { margin: 0 0 12px; color: var(--pc-text); font-size: 13px; font-weight: 600; }
.layer-list { display: grid; gap: 8px; }
.layer-item { padding: 10px; border: 1px solid var(--pc-line); border-radius: 4px; background: #fff; color: var(--pc-text); }
.layer-item label { display: flex; gap: 8px; align-items: start; }
.layer-item small { display: block; margin-top: 5px; color: var(--pc-muted); }
.overlay-stage { min-width: 0; padding: 20px; background: #0f1511; }
.overlay-stage .section-heading { color: #e9eeeb; }
.overlay-stage .section-heading span { color: #93a098; }
.overlay-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.photo-overlay-stage { color: var(--pc-text); background: #eef1ee; }
.photo-overlay-stage .section-heading { color: var(--pc-text); }
.photo-overlay-stage .section-heading span { color: var(--pc-muted); }
.photo-layer-item label { align-items: start; }
.photo-rule { margin-top: 14px; padding: 10px; color: #4e5852; border: 1px solid #cbd2cd; background: #fff; font-size: 11px; line-height: 1.55; }
.photo-rule p { margin: 4px 0 0; }
.photo-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 380px; margin-top: 12px; }
.photo-compare-grid figure, .photo-empty-slot { min-width: 0; margin: 0; display: grid; grid-template-rows: minmax(300px, 1fr) auto; border: 1px solid #aeb8b1; background: #141a17; overflow: hidden; }
.photo-compare-grid img { width: 100%; height: 100%; min-height: 300px; max-height: 460px; object-fit: contain; background: #141a17; }
.photo-compare-grid figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; color: #dce4df; border-top: 1px solid #38443d; background: #1d2521; font-size: 11px; }
.photo-compare-grid figcaption span { color: #9caaa1; font-family: Consolas, monospace; }
.photo-empty-slot { place-items: center; grid-template-rows: 1fr; color: #7e8982; border-style: dashed; background: #dde2de; }
.photo-inspection-strip { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: 10px; padding: 9px 11px; border: 1px solid #c5ccc7; background: #fff; font-size: 11px; }
.photo-inspection-strip strong { padding: 3px 6px; color: #254f3b; border: 1px solid #b7c9be; background: #eff6f1; }
.photo-inspection-strip span:last-child { margin-left: auto; color: var(--muted); }
.segmented { flex-wrap: wrap; }
.segmented button.active { color: #fff; border-color: #115ea3; background: #0f6cbd; }
.analysis-output { margin-top: 12px; padding: 13px; min-height: 54px; color: #c4cec7; border: 1px solid #38443c; background: #171e1a; font-family: Consolas, monospace; font-size: 12px; line-height: 1.7; }
.terminal-anomaly { color: #d8ddd9; border-left: 3px solid #b84943; background: #0d120f; }
.ending-panel { border-left: 3px solid var(--green); }
.modal-body section + section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.modal-dialog.conclusion-dialog { width: min(920px, 100%); }
.conclusion-dialog header { align-items: start; }
.conclusion-dialog header small { display: block; margin-top: 4px; color: var(--muted); }
.conclusion-body { background: #f5f6f7; }
.conclusion-section { padding: 18px; border: 1px solid #d8dce0; background: #fff; }
.conclusion-section + .conclusion-section { margin-top: 14px !important; padding-top: 18px !important; }
.conclusion-title { display: grid; grid-template-columns: 34px 1fr; gap: 10px; margin-bottom: 14px; }
.conclusion-title > span { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: #0f6cbd; font: 700 12px Consolas, monospace; }
.conclusion-title h3 { margin: 0; font-size: 16px; }
.conclusion-title p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.conclusion-section > label { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: center; gap: 10px; font-weight: 600; }
.conclusion-section .evidence-picker { max-height: 235px; }
.exclusion-fieldset { margin: 18px 0 0; padding: 14px; border: 1px solid #b8c8d6; background: #f7fbfe; }
.exclusion-fieldset legend { padding: 0 6px; color: #0f5f9e; font-weight: 700; }
.exclusion-fieldset > p { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.exclusion-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.exclusion-options label { display: grid; grid-template-columns: 20px 1fr; gap: 7px; padding: 10px; border: 1px solid #c9d7e2; background: #fff; }
.exclusion-options small { display: block; margin-top: 3px; color: var(--muted); line-height: 1.45; }
.conclusion-audit { display: grid; gap: 6px; margin-top: 14px; padding: 12px; border: 1px solid var(--line); background: #f7f8f7; font-size: 11px; }
.audit-row { display: grid; grid-template-columns: minmax(110px, 1fr) repeat(3, auto); gap: 7px; align-items: center; }
.audit-row span { padding: 3px 6px; border: 1px solid #ccd2ce; background: #fff; }
.audit-row span.pass { color: #24643f; border-color: #a8c9b5; background: #eef8f1; }
.audit-row span.fail { color: #8b332e; border-color: #d6b0ac; background: #fff2f0; }

.source-checker { max-width: 840px; padding: 22px; }
.source-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.relation-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.relation-options label { padding: 10px; border: 1px solid var(--line); background: #fff; }

.interview-shell { min-height: 100%; background: #e9ece8; }
.interview-topbar { display: flex; align-items: center; gap: 14px; padding: 12px 20px; color: var(--pc-text); background: #fff; border-bottom: 1px solid var(--pc-line); }
.interview-topbar canvas { width: 48px; height: 58px; }
.interview-topbar h2 { margin: 0; font-size: 16px; font-weight: 600; }
.interview-topbar p { margin: 3px 0 0; color: var(--pc-muted); font-size: 12px; }
.interview-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; min-height: calc(100vh - var(--chrome-h) - var(--content-offset)); }
.transcript { padding: 24px; overflow: auto; }
.utterance { max-width: 760px; margin-bottom: 12px; padding: 14px 16px; border-left: 3px solid var(--line-strong); background: #fff; line-height: 1.7; }
.utterance.interviewer { margin-left: 26px; border-left-color: #0f6cbd; background: #f5f9fd; }
.utterance.suspect { border-left-color: var(--red); }
.utterance.system { color: #1b1b1b; border-left-color: #0f6cbd; background: #eef6fc; }
.interview-claim-heading { max-width: 760px; display: flex; justify-content: space-between; gap: 14px; align-items: start; margin-bottom: 14px; }
.interview-claim-heading h2 { margin: 4px 0 0; font-size: 20px; letter-spacing: 0; }
.interview-round { max-width: 790px; margin: 20px 0; padding-top: 18px; border-top: 1px solid #d8dce0; }
.interview-round .utterance { margin-bottom: 8px; }
.round-audit { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-left: 26px; color: var(--muted); font-size: 11px; }
.round-audit span:first-child { color: #0f6cbd; font-weight: 600; }
.transcript-empty { max-width: 760px; margin: 22px 0; padding: 18px; color: var(--muted); border: 1px dashed #bfc5c1; background: rgba(255,255,255,.55); text-align: center; }
.resolution-note { border-left-color: #28824f !important; background: #eef8f1 !important; }
.claim-list { padding: 17px; border-left: 1px solid var(--line); background: #f7f8f6; }
.claim-button { width: 100%; margin-bottom: 7px; padding: 11px; border: 1px solid var(--line); border-radius: 3px; text-align: left; background: #fff; }
.claim-button strong { display: block; }
.claim-button small { display: block; margin-top: 4px; color: var(--muted); }
.claim-button.active { border-color: var(--green); box-shadow: inset 3px 0 var(--green); }
.claim-button.resolved { background: #eaf4ee; }
.evidence-picker { max-height: 280px; margin: 10px 0; overflow: auto; border: 1px solid var(--line); background: #fff; }
.evidence-picker label { display: grid; grid-template-columns: 20px 1fr; gap: 5px; padding: 9px; border-bottom: 1px solid #e2e5e2; }
.evidence-picker small { grid-column: 2; color: var(--muted); }
.evidence-picker small b { color: #0f6cbd; font-weight: 600; }
.picker-empty { margin: 0; padding: 14px; color: var(--muted); line-height: 1.6; }
.challenge-panel { padding: 13px; border: 1px solid #d8dce0; background: #fff; }
.challenge-heading { display: flex; justify-content: space-between; gap: 10px; align-items: end; }
.challenge-heading h3 { margin: 3px 0 0; }
.challenge-heading > span { color: var(--muted); font-size: 11px; }
.challenge-help { margin: 8px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.challenge-source-summary { min-height: 54px; padding: 9px 10px; border: 1px solid #d6dce1; background: #f5f7f8; color: #4c555c; font-size: 11px; line-height: 1.5; }
.challenge-source-summary > span { margin-right: 10px; }
.challenge-source-summary p { margin: 5px 0 0; }
.challenge-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; }
.audit-anomaly { display: block; margin-top: 10px; padding-top: 9px; color: #d6c2a5; border-top: 1px solid #465147; }

.archive-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: calc(100vh - var(--chrome-h) - var(--content-offset)); }
.archive-sidebar { padding: 18px; border-right: 1px solid #aeb5ad; background: #d9ddd5; }
.archive-sidebar h3 { font-family: "SimSun", serif; }
.archive-main { padding: 24px 28px 60px; background: #eceee8; }
.archive-search { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.search-result { padding: 14px 0; border-bottom: 1px dotted #949e95; }
.search-result a, .archive-link { color: #1d4e3b; text-decoration: underline; }
.archive-page { max-width: 900px; padding: 30px; border: 1px solid #aab1a9; background: #f9faf5; box-shadow: var(--shadow); font-family: "SimSun", serif; line-height: 1.85; }
.archive-page h2 { font-size: 25px; border-bottom: 3px double #4f5c53; padding-bottom: 9px; }
.archive-page .updated { color: #777f78; font-size: 12px; }
.archive-asset { display: block; width: min(360px, 100%); max-height: 420px; object-fit: cover; margin: 16px 0; border: 1px solid #9da59d; background: #d8dcd5; filter: saturate(.75) contrast(.96); }
.archive-asset.wide { width: min(620px, 100%); aspect-ratio: 16 / 9; }
.cache-notice { padding: 9px 11px; margin-bottom: 14px; color: #574a26; border: 1px solid #b8a56e; background: #fff7dc; font-family: sans-serif; }

.progress-drawer, .notes-drawer {
  position: fixed;
  z-index: 60;
  top: var(--chrome-h);
  right: 0;
  bottom: 0;
  width: min(390px, 92vw);
  transform: translateX(102%);
  transition: transform .18s ease;
  border-left: 1px solid var(--line-strong);
  background: #f8faf7;
  box-shadow: var(--shadow);
}
.side-drawer.open { transform: translateX(0); }
.drawer-backdrop { position: fixed; z-index: 55; inset: var(--chrome-h) 0 0; background: rgba(11, 15, 12, .25); }
.drawer-header { display: flex; justify-content: space-between; align-items: start; padding: 18px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 3px 0 0; font-size: 19px; }
.progress-body { height: calc(100% - 77px); overflow: auto; padding: 18px; }
.progress-meter { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin-bottom: 18px; }
.progress-number { font-size: 30px; font-weight: 800; color: var(--green-dark); }
.progress-track { height: 7px; background: #d8ded9; }
.progress-track i { display: block; height: 100%; background: var(--green); }
.direction-block { margin-bottom: 12px; padding: 14px; border-left: 3px solid #0f6cbd; background: #eef6fc; }
.direction-block h3 { margin: 0 0 5px; font-size: 14px; }
.direction-block p { margin: 0; color: var(--muted); line-height: 1.55; }
.hint-details { margin: 10px 0; border: 1px solid var(--line); background: #fff; }
.hint-details summary { padding: 11px; cursor: pointer; font-weight: 700; }
.hint-details p { margin: 0; padding: 0 11px 12px; color: var(--muted); line-height: 1.6; }
.confirmed-list { display: grid; gap: 6px; margin-top: 18px; }
.confirmed-item { padding: 9px; color: #425049; border-bottom: 1px solid var(--line); font-size: 12px; }

.notes-drawer { display: grid; grid-template-rows: auto auto 1fr auto; }
.notes-tools { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.notes-tools button { min-height: 30px; padding: 0 9px; font-size: 12px; }
#notesText { width: 100%; height: 100%; resize: none; padding: 18px; border: 0; color: #252a27; background: #fffef8; line-height: 1.7; font-family: Consolas, "Microsoft YaHei UI", monospace; }
.notes-footer { display: flex; justify-content: space-between; padding: 8px 14px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }

.modal-root { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(11, 15, 12, .55); }
.modal-dialog { width: min(560px, 100%); max-height: 86vh; overflow: auto; border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; box-shadow: var(--shadow); }
.modal-dialog header { display: flex; justify-content: space-between; padding: 17px; border-bottom: 1px solid var(--line); }
.modal-dialog h2 { margin: 0; font-size: 18px; }
.modal-body { padding: 18px; line-height: 1.7; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 18px; border-top: 1px solid var(--line); }

.toast-region { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: grid; gap: 8px; pointer-events: none; }
.toast { max-width: 360px; padding: 11px 14px; color: #1b1b1b; border: 1px solid #d0d0d0; border-left: 3px solid #0f6cbd; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.14); animation: toast-in .18s ease; }
.toast.error { border-left-color: #c42b1c; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

.empty-state { min-height: 220px; display: grid; place-items: center; text-align: center; color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 7px; color: var(--ink); }
.mobile-nav, .mobile-progress { display: none; }

@media (max-width: 980px) {
  :root { --sidebar: 190px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .workspace-aside { border-left: 0; border-top: 1px solid var(--line); }
  .interview-layout { grid-template-columns: 1fr 310px; }
  .progress-button { min-width: 180px; }
}

@media (max-width: 760px) {
  :root { --chrome-h: 88px; }
  body { overflow: hidden; }
  .browser-toolbar { height: 48px; grid-template-columns: auto minmax(0, 1fr) auto; padding: 6px 8px; }
  .browser-controls .icon-button:nth-child(3), .browser-controls .icon-button:nth-child(4) { display: none; }
  .browser-controls { gap: 3px; }
  .icon-button { width: 32px; min-height: 32px; }
  .address-bar { padding: 0 8px; min-height: 32px; }
  .toolbar-actions .tool-button span:last-child { display: none; }
  .toolbar-actions .tool-button { width: 34px; padding: 0; justify-content: center; }
  .progress-button { display: none; }
  .browser-tabs { height: 40px; padding: 0 8px; }
  .browser-tabs button { height: 32px; max-width: 145px; padding: 0 10px; }
  .app-body { height: calc(100vh - var(--chrome-h) - var(--content-offset-lg)); grid-template-columns: 1fr; }
  .system-sidebar { display: none; }
  .page-header { min-height: 78px; padding: 14px 16px; align-items: start; }
  .page-header h1 { font-size: 21px; }
  .page-header p { font-size: 13px; }
  .page-meta { display: none; }
  .workspace-main, .workspace-aside, .archive-main { padding: 16px; }
  .scene-layout { grid-template-columns: 1fr; }
  .scene-visual, .scene-visual canvas { min-height: 205px; }
  .record-grid, .candidate-list { grid-template-columns: 1fr; }
  .old-case-review { grid-template-columns: 1fr; }
  .old-case-review > div, .old-case-review > button { grid-column: auto; }
  .old-case-finding { grid-template-columns: 1fr; }
  .query-form { grid-template-columns: 1fr auto; }
  .query-form select { grid-column: 1 / -1; }
  .data-table { min-width: 620px; }
  .query-output { overflow-x: auto; }
  .overlay-layout { grid-template-columns: 1fr; }
  .overlay-tools { border-right: 0; border-bottom: 1px solid #354038; }
  .overlay-stage { padding: 12px; }
  .graph-frame, .graph-frame canvas { min-height: 340px; height: 340px; }
  .photo-compare-grid { grid-template-columns: 1fr; min-height: 0; }
  .photo-compare-grid figure, .photo-empty-slot { grid-template-rows: minmax(220px, 46vh) auto; }
  .photo-compare-grid img { min-height: 220px; max-height: 46vh; }
  .photo-inspection-strip span:last-child { width: 100%; margin-left: 0; }
  .source-check-grid { grid-template-columns: 1fr; }
  .relation-options { grid-template-columns: 1fr; }
  .interview-layout { grid-template-columns: 1fr; }
  .claim-list { border-left: 0; border-top: 1px solid var(--line); }
  .transcript { padding: 16px; }
  .interview-claim-heading { align-items: center; }
  .utterance.interviewer, .round-audit { margin-left: 0; }
  .modal-dialog.conclusion-dialog { max-height: calc(100vh - 24px); }
  .conclusion-body { padding: 10px; }
  .conclusion-section { padding: 12px; }
  .conclusion-section > label { grid-template-columns: 1fr; gap: 5px; }
  .exclusion-options { grid-template-columns: 1fr; }
  .audit-row { grid-template-columns: 1fr 1fr; }
  .audit-row strong { grid-column: 1 / -1; }
  .archive-layout { grid-template-columns: 1fr; }
  .archive-sidebar { border-right: 0; border-bottom: 1px solid #aeb5ad; }
  .archive-page { padding: 20px; }
  .mobile-progress {
    position: fixed;
    z-index: 35;
    left: 0;
    right: 0;
    bottom: 52px;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 7px 12px;
    color: #eef2ef;
    background: #29322c;
    border-top: 1px solid #3f4a43;
    font-size: 12px;
  }
  .mobile-nav {
    position: fixed;
    z-index: 36;
    left: 0;
    right: 0;
    bottom: 0;
    height: 52px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    background: #171c19;
  }
  .mobile-nav button { border: 0; color: #9eaaa2; background: transparent; display: grid; place-items: center; align-content: center; gap: 2px; }
  .mobile-nav button.active { color: #fff; background: #29322c; }
  .mobile-nav span { font-size: 17px; }
  .mobile-nav small { font-size: 10px; }
  .side-drawer { top: var(--chrome-h); width: 100%; bottom: 0; }
  .drawer-backdrop { inset: var(--chrome-h) 0 0; }
  .toast-region { right: 10px; bottom: 105px; left: 10px; }
  .toast { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Isolated workstation shell */
[hidden] { display: none !important; }
.os-body { min-height: 100vh; overflow: hidden; background: #18201c; }
.os-login { position: fixed; inset: 0; display: grid; grid-template-rows: auto 1fr auto; color: #e9eeeb; background: #18201c; }
.login-brand { display: flex; align-items: center; gap: 12px; padding: 26px 32px; border-bottom: 1px solid #344039; }
.login-brand div { display: grid; gap: 2px; }
.login-brand strong { font-size: 17px; }
.login-brand small { color: #8f9c94; }
.login-emblem { width: 44px; height: 44px; display: grid; place-items: center; color: #17221c; background: #9bb6a6; border: 3px double #17221c; font-weight: 900; }
.login-panel { align-self: center; width: min(430px, calc(100vw - 32px)); margin: 0 auto; padding: 28px; border: 1px solid #4b5b52; border-radius: 5px; background: #f4f6f3; color: var(--ink); box-shadow: 0 18px 48px rgba(0,0,0,.28); }
.login-panel h1 { margin: 5px 0 8px; font-size: 25px; }
.login-panel > p { color: var(--muted); line-height: 1.65; }
.login-panel form { display: grid; gap: 14px; margin-top: 20px; }
.login-panel label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; }
.handover-slip { display: grid; gap: 4px; margin-top: 20px; padding: 12px; color: #36433b; border: 1px dashed #a8b1aa; background: #e7ebe6; font-family: Consolas, monospace; font-size: 12px; }
.handover-slip small { margin-top: 4px; color: #69736d; }
.login-error { min-height: 20px; margin: 10px 0 0 !important; color: var(--red) !important; }
.login-footer { display: flex; justify-content: space-between; gap: 18px; padding: 13px 28px; color: #87948c; border-top: 1px solid #344039; font-size: 11px; }

.os-desktop { position: fixed; inset: 0; overflow: hidden; color: #edf2ef; background: #303633; }
.desktop-wallpaper { position: absolute; inset: 0; overflow: hidden; background: #303633; }
.desktop-wallpaper::before { content: "YC\A SOUTH YARD"; white-space: pre; position: absolute; right: 5vw; bottom: 13vh; color: rgba(223,233,227,.08); font: 900 clamp(42px,8vw,112px)/.82 Consolas, monospace; text-align: right; }
.desktop-wallpaper i { position: absolute; left: -10vw; right: -10vw; height: 2px; background: rgba(166,193,177,.12); transform-origin: left; }
.desktop-wallpaper i:nth-child(1) { top: 28%; transform: rotate(7deg); }
.desktop-wallpaper i:nth-child(2) { top: 34%; transform: rotate(7deg); }
.desktop-wallpaper i:nth-child(3) { top: 61%; transform: rotate(-5deg); }
.desktop-wallpaper i:nth-child(4) { top: 67%; transform: rotate(-5deg); }
.desktop-statusbar { position: absolute; z-index: 12; top: 0; left: 0; right: 0; height: 38px; display: grid; grid-template-columns: 1fr minmax(250px,360px) auto; align-items: center; gap: 16px; padding: 0 12px; color: #dbe3de; border-bottom: 1px solid #35433b; background: #141a17; box-shadow: 0 1px 8px rgba(0,0,0,.22); }
.desktop-statusbar > div:first-child { display: grid; }
.desktop-statusbar > div:first-child span { color: #7f8c84; font-size: 10px; }
.desktop-session { justify-self: end; display: flex; gap: 14px; color: #9da9a1; font-size: 11px; }
.desktop-progress { min-height: 28px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 10px; color: #dbe3de; border: 1px solid #34423a; border-radius: 2px; background: #1d2521; font-size: 11px; }
.desktop-progress strong { color: #a9c5b5; }
/* 旧工业桌面皮作废：由 Shell v3 覆盖 */
.desktop-icons { position: absolute; z-index: 2; top: 76px; left: 14px; bottom: 56px;
  display: grid; grid-template-columns: repeat(2, 88px); grid-auto-rows: 88px; gap: 4px 8px;
  align-content: start; overflow: auto; padding-bottom: 4px; }
.desktop-icons button { color: var(--pc-text); text-shadow: none; }
.desktop-icon { border-radius: 8px; }

.os-window { position: absolute; z-index: 20; inset: 58px 34px 56px 122px; min-width: 0; min-height: 0; overflow: hidden; color: var(--ink); border: 1px solid #0c100e; border-radius: 3px; background: var(--paper); box-shadow: 0 15px 40px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.07); transition: inset .12s ease; }
.os-window.maximized { inset: 38px 0 40px; border-width: 0; border-radius: 0; box-shadow: none; }
.window-titlebar { height: 34px; display: flex; justify-content: space-between; align-items: center; color: #e8edea; background: #1a211d; border-bottom: 1px solid #38443d; user-select: none; }
.window-titlebar > div:first-child { min-width: 0; display: flex; align-items: center; gap: 9px; padding-left: 11px; }
.window-titlebar strong { font-size: 12px; }
.window-titlebar small { color: #8d9a92; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.window-app-icon { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid #526158; border-radius: 2px; font-size: 11px; }
.window-controls { align-self: stretch; display: flex; }
.window-controls button { width: 42px; border: 0; color: #c9d1cc; background: transparent; font-size: 15px; }
.window-controls button:hover { color: #fff; background: #303a34; }
.window-controls button:last-child:hover { background: #8d3733; }
.os-window .app-shell { height: calc(100% - 34px); min-height: 0; }
.os-desktop .browser-chrome, .os-desktop .system-sidebar { display: none !important; }
.os-desktop .app-body { height: 100%; margin-top: 0; grid-template-columns: 1fr; }
.os-desktop .page-viewport { height: 100%; }
.os-desktop .side-drawer { top: 38px; bottom: 40px; }
.os-desktop .drawer-backdrop { inset: 38px 0 40px; }
.os-desktop .page-header { min-height: 72px; align-items: center; padding: 12px 20px; }
.os-desktop .page-header h1 { font-size: 20px; }
.os-desktop .page-header p { margin-top: 3px; font-size: 12px; line-height: 1.45; }
.os-desktop .workspace-main, .os-desktop .workspace-aside { padding-top: 18px; }

.os-taskbar { position: absolute; z-index: 40; left: 0; right: 0; bottom: 0; height: 40px; display: grid; grid-template-columns: 48px 1fr auto; color: #e5ebe7; border-top: 1px solid #435148; background: #151b18; box-shadow: 0 -1px 8px rgba(0,0,0,.18); }
.os-taskbar button { border: 0; color: inherit; background: transparent; }
.taskbar-home { display: grid; place-items: center; }
.taskbar-home span { width: 28px; height: 26px; display: grid; place-items: center; color: #162019; background: #9eb9a9; border-radius: 2px; font-size: 11px; font-weight: 900; }
.taskbar-home:hover, .taskbar-home:focus-visible { background: #115ea3; color: #fff; }
.taskbar-apps { display: flex; min-width: 0; gap: 2px; padding: 3px 4px; overflow-x: auto; }
.taskbar-apps button {
  min-width: 116px; max-width: 180px;
  display: flex; align-items: center; gap: 7px;
  padding: 0 10px; height: 36px;
  border: 1px solid transparent; border-bottom: 2px solid #c5d9ef;
  color: #1b1b1b; background: rgba(255, 255, 255, .75);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px;
}
.taskbar-apps button.active {
  color: #1b1b1b; border-color: #c5d9ef; border-bottom-color: #0f6cbd;
  background: #fff; box-shadow: inset 0 -2px 0 #0f6cbd;
}
.taskbar-tray { display: flex; align-items: center; gap: 10px; padding-left: 12px; color: #89968e; border-left: 1px solid #39453e; font: 10px Consolas, monospace; }
.taskbar-tray button { min-width: 58px; height: 100%; padding: 0 12px; color: #d5ddd8; font: 11px Consolas, monospace; }
.taskbar-tray button:hover { background: #29332d; }

.start-menu { position: absolute; z-index: 60; left: 6px; bottom: 46px; width: 330px; color: #e8edea; border: 1px solid #536159; border-radius: 3px; background: #1a211d; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.start-menu > header { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid #39443e; background: #222a25; }
.start-menu > header .login-emblem { width: 34px; height: 34px; font-size: 11px; }
.start-menu > header div { display: grid; gap: 2px; }
.start-menu > header small { color: #8f9c94; font-size: 10px; }
.start-menu nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 8px; }
.start-menu nav button { min-width: 0; min-height: 56px; display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: center; gap: 8px; padding: 7px; color: #dbe2de; border: 0; background: transparent; text-align: left; }
.start-menu nav button:hover { background: #303a34; }
.start-menu nav button > span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #59675f; background: #28312c; }
.start-menu nav button div { min-width: 0; display: grid; gap: 2px; }
.start-menu nav button strong, .start-menu nav button small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.start-menu nav button strong { font-size: 11px; }
.start-menu nav button small { color: #87938c; font-size: 9px; }
.start-menu > footer { display: flex; justify-content: flex-end; gap: 4px; padding: 8px; border-top: 1px solid #39443e; }
.start-menu > footer button { min-height: 30px; padding: 0 10px; color: #cbd4ce; border: 1px solid #48564e; background: #252e29; font-size: 10px; }

.browser-favorites { display: flex; gap: 5px; padding: 8px 12px; overflow-x: auto; border-bottom: 1px solid #b7beb8; background: #dfe3dd; }
.browser-favorites strong { flex: 0 0 auto; white-space: nowrap; }
.browser-favorites button { flex: 0 0 auto; border: 0; color: #315b49; background: transparent; text-decoration: underline; }

.file-layout { display: grid; grid-template-columns: 230px minmax(0,1fr) 300px; min-height: calc(100vh - 190px); }
.file-sidebar { padding: 14px; border-right: 1px solid var(--line); background: #e7eae6; }
.file-sidebar h3 { margin: 4px 0 12px; }
.file-tree { display: grid; gap: 2px; }
.file-tree button { min-height: 34px; padding: 0 8px; border: 0; text-align: left; color: #3f4b44; background: transparent; }
.file-tree button.active, .file-tree button:hover { background: #d1d8d2; }
.file-main { min-width: 0; padding: 16px; background: #f8f9f7; }
.file-toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.file-path { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); background: #fff; font: 12px Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list { border: 1px solid var(--line); background: #fff; }
.file-list-head { min-height: 30px; display: grid; grid-template-columns: 32px minmax(170px,1fr) 110px 145px 90px; gap: 8px; align-items: center; padding: 0 10px; color: #68716c; border-bottom: 1px solid #cfd5d0; background: #eef1ed; font-size: 10px; }
.file-row { width: 100%; min-height: 46px; display: grid; grid-template-columns: 32px minmax(170px,1fr) 110px 145px 90px; gap: 8px; align-items: center; padding: 0 10px; color: var(--ink); border: 0; border-bottom: 1px solid #e1e5e1; text-align: left; background: #fff; }
.file-row:hover, .file-row.selected { background: #eaf1ed; }
.file-row small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-name-cell { min-width: 0; display: flex; align-items: center; gap: 7px; overflow: hidden; }
.file-name-cell > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-name-cell > em { flex: 0 0 auto; padding: 2px 5px; color: #24643f; border: 1px solid #a8c9b5; background: #eef8f1; font-size: 10px; font-style: normal; font-weight: 600; }
.upload-state { color: #24643f !important; border-color: #a8c9b5 !important; background: #eef8f1 !important; }
.file-glyph { color: #6d795f; font-size: 20px; text-align: center; }
.file-preview { padding: 16px; border-left: 1px solid var(--line); background: #ecefeb; overflow: auto; }
.file-preview canvas { display: block; width: 100%; aspect-ratio: 4/3; border: 1px solid #9ca69f; background: #202622; }
.file-preview h3 { margin: 12px 0 5px; }
.locked-folder { max-width: 560px; margin: 42px auto; padding: 24px; border: 1px solid var(--line); background: #fff; }
.lock-mark { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 12px; color: #fff; background: #555f59; font-size: 25px; }

.notepad-app { height: 100%; display: grid; grid-template-rows: auto 1fr auto; background: #fffef8; }
.notepad-menu { display: flex; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #eceeea; }
.notepad-app textarea { width: 100%; height: 100%; resize: none; padding: 22px; border: 0; color: #272d29; background: #fffef8; font: 14px/1.75 Consolas, "Microsoft YaHei UI", monospace; }
.notepad-status { display: flex; justify-content: space-between; padding: 7px 12px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }

@media (max-width: 1150px) and (min-width: 761px) {
  .os-window { left: 96px; right: 10px; }
  .file-layout { grid-template-columns: 180px minmax(0,1fr) 240px; }
  .file-row { grid-template-columns: 28px minmax(140px,1fr) 86px; }
  .file-list-head { grid-template-columns: 28px minmax(140px,1fr) 86px; }
  .file-row small:nth-of-type(2), .file-row small:nth-of-type(3) { display: none; }
  .file-list-head span:nth-of-type(3), .file-list-head span:nth-of-type(4) { display: none; }
  .file-sidebar { padding: 10px; }
}

@media (max-width: 760px) {
  .login-brand { padding: 18px; }
  .login-panel { padding: 20px; }
  .login-footer span:nth-child(2) { display: none; }
  .desktop-statusbar { display: none; }
  .desktop-icons { top: 24px; left: 16px; right: 16px; grid-template-columns: repeat(3, minmax(76px,1fr)); justify-items: center; }
  .os-window, .os-window.maximized { inset: 0 0 40px; border: 0; border-radius: 0; }
  .window-titlebar { height: 44px; }
  .os-window .app-shell { height: calc(100% - 44px); }
  .os-desktop .app-body { height: 100%; }
  .file-layout { grid-template-columns: 1fr; min-height: 100%; }
  /* 目录树改为横向条，预览面板保留（上传按钮只存在于预览面板） */
  .file-sidebar { padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .file-sidebar h3 { display: none; }
  /* 提高特异性：1434 行有同名的 .file-tree button 规则且不在媒体查询内，会覆盖此处 */
  .file-layout .file-tree { grid-auto-flow: column; grid-auto-columns: max-content; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
  .file-layout .file-tree button { display: flex; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: #333; white-space: nowrap; font-size: 12px; }
  .file-layout .file-tree button.active, .file-layout .file-tree button:hover { background: #dde5df; color: #1b1b1b; }
  .file-preview { border-left: 0; border-top: 1px solid var(--line); padding: 12px; }
  .file-preview canvas { max-height: 220px; }
  .file-main { padding: 10px; }
  .file-row { grid-template-columns: 30px minmax(150px,1fr) 74px; }
  .file-list-head { grid-template-columns: 30px minmax(150px,1fr) 74px; }
  .file-row small:nth-of-type(2), .file-row small:nth-of-type(3) { display: none; }
  .file-list-head span:nth-of-type(3), .file-list-head span:nth-of-type(4) { display: none; }
  .os-desktop .side-drawer { top: 0; bottom: 40px; }
  .os-desktop .drawer-backdrop { inset: 0 0 40px; }
  .start-menu { right: 6px; width: auto; }
  .taskbar-tray > span { display: none; }
}

/* ══════════════════════════════════════════════════════
   Shell v3 — 工作电脑 / 个人电脑风格
   ══════════════════════════════════════════════════════ */

:root {
  --pc-accent: #0f6cbd;
  --pc-accent-hover: #115ea3;
  --pc-text: #1b1b1b;
  --pc-muted: #616161;
  --pc-line: #e5e5e5;
  --pc-surface: #ffffff;
  --pc-canvas: #f5f6f8;
  --pc-taskbar: rgba(249, 249, 249, .92);
  --pc-titlebar: #f9f9f9;
}

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.glyph { width: 1em; height: 1em; display: block; }
.glyph.sm { width: 14px; height: 14px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* —— 登录 —— */
.os-login {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-rows: 1fr auto;
  color: var(--pc-text);
  font-family: "Segoe UI", "Microsoft YaHei UI", system-ui, sans-serif;
  background: #dbe4ee;
}
.login-backdrop {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 700px at 20% 20%, rgba(255, 255, 255, .55), transparent 55%),
    radial-gradient(900px 600px at 80% 70%, rgba(15, 108, 189, .18), transparent 50%),
    linear-gradient(145deg, #c9d7e6 0%, #e8eef5 45%, #d5e0ea 100%);
}
.login-backdrop::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px);
  background-size: 24px 24px; opacity: .35;
}
.login-card-wrap {
  position: relative; z-index: 1;
  align-self: center;
  display: grid; grid-template-columns: minmax(280px, 360px) minmax(200px, 240px);
  gap: 28px; align-items: center; justify-content: center;
  padding: 32px 24px;
}
.login-user { text-align: center; }
.user-avatar {
  width: 96px; height: 96px; margin: 0 auto 16px;
  display: grid; place-items: center;
  color: #fff; background: linear-gradient(160deg, #3d8fd4, #0f6cbd);
  border-radius: 50%;
  font-size: 36px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(15, 108, 189, .28);
}
.login-user h1 { margin: 0 0 6px; font-size: 28px; font-weight: 600; }
.user-account { margin: 0 0 22px; color: var(--pc-muted); font-size: 13px; }
.login-form { display: grid; gap: 10px; }
.password-row { display: grid; grid-template-columns: 1fr 40px; gap: 6px; }
.password-input {
  min-height: 40px; padding: 0 14px;
  border: 1px solid #c5c5c5; border-radius: 4px;
  background: #fff; color: var(--pc-text); font-size: 14px;
}
.password-input:focus {
  outline: none; border-color: var(--pc-accent);
  box-shadow: 0 0 0 2px rgba(15, 108, 189, .2);
}
.password-go {
  min-height: 40px; display: grid; place-items: center;
  color: #fff; background: var(--pc-accent);
  border: 0; border-radius: 4px;
}
.password-go:hover { background: var(--pc-accent-hover); }
.login-hint { margin: 4px 0 0; color: var(--pc-muted); font-size: 12px; }
.login-hint strong { color: var(--pc-text); font-weight: 600; }
.login-error { min-height: 18px; margin: 8px 0 0 !important; color: #c42b1c !important; font-size: 13px; }
.login-switch { margin: 18px 0 0; color: var(--pc-accent); font-size: 13px; }
.login-secondary {
  margin-top: 16px;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center;
  color: var(--pc-muted); font-size: 12px;
}
.login-secondary .footer-credit { color: #0f6cbd; font-size: 12px; }
.login-secondary .footer-credit:hover { text-decoration: underline; }

.handover-slip {
  padding: 16px 18px;
  color: #333;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
  backdrop-filter: blur(12px);
  text-align: left;
}
.handover-slip header {
  margin: 0 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--pc-line);
  font-size: 13px; font-weight: 600;
}
.handover-slip dl { margin: 0; display: grid; gap: 8px; }
.handover-slip dl > div { display: grid; grid-template-columns: 3.2em 1fr; gap: 8px; font-size: 12px; }
.handover-slip dt { color: var(--pc-muted); }
.handover-slip dd { margin: 0; font-weight: 600; font-family: Consolas, monospace; }
.handover-slip p { margin: 12px 0 0; color: var(--pc-muted); font-size: 12px; line-height: 1.5; }

.login-footer {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px; color: #444; font-size: 12px;
}
.login-footer-left, .login-footer-right { display: flex; align-items: center; gap: 12px; }
.net-dot { width: 8px; height: 8px; border-radius: 50%; background: #107c10; }
.foot-sep { color: #aaa; }

/* —— 桌面 —— */
.os-desktop {
  position: fixed; inset: 0; overflow: hidden;
  color: var(--pc-text);
  font-family: "Segoe UI", "Microsoft YaHei UI", system-ui, sans-serif;
  background: #e8eef4;
}
.desktop-wallpaper {
  position: absolute; inset: 0;
  background:
    radial-gradient(1000px 500px at 15% 0%, rgba(255, 255, 255, .55), transparent 50%),
    linear-gradient(160deg, #d7e3ee 0%, #eef3f7 40%, #cfdce8 100%),
    #d7e3ee;
  background-size: cover;
  background-position: center;
}
.desktop-wallpaper.has-image {
  background-image:
    linear-gradient(180deg, rgba(245, 248, 251, .35) 0%, rgba(232, 238, 244, .2) 40%, rgba(210, 222, 234, .25) 100%),
    url("assets/wallpaper-workpc.webp");
  background-size: cover;
  background-position: center;
}
.desktop-wallpaper::after {
  content: "雁城铁路公安 · 工作电脑";
  position: absolute; right: 4vw; bottom: 10vh;
  color: rgba(30, 50, 70, .07);
  font-size: clamp(22px, 4vw, 48px);
  font-weight: 600; letter-spacing: .12em;
}
.desktop-wallpaper.has-image::after { display: none; }
.desktop-wallpaper::before,
.desktop-wallpaper i { display: none !important; }

.desktop-statusbar {
  position: absolute; z-index: 12; top: 12px; left: 16px; right: 16px;
  min-height: 44px;
  display: grid; grid-template-columns: auto minmax(180px, 520px) auto;
  gap: 12px; align-items: center;
  padding: 6px 12px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  backdrop-filter: blur(16px);
}
.desk-id { display: grid; gap: 1px; min-width: 0; }
.desk-id strong { font-size: 12px; font-weight: 600; }
.desk-id span { color: var(--pc-muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desktop-progress {
  min-height: 32px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 0 12px; color: var(--pc-text); background: #fff;
  border: 1px solid var(--pc-line); border-radius: 6px;
  font-size: 12px; text-align: left;
}
.desktop-progress:hover { background: #f3f7fb; border-color: #b9d3ec; }
.desktop-progress strong { color: var(--pc-accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.desktop-session { justify-self: end; color: var(--pc-muted); font-size: 12px; font-variant-numeric: tabular-nums; }

.desktop-icons {
  position: absolute; z-index: 2; top: 76px; left: 14px; bottom: 56px;
  display: grid;
  grid-template-columns: repeat(2, 88px);
  grid-auto-rows: 88px;
  gap: 4px 8px;
  align-content: start;
  overflow: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.desktop-icons button {
  width: 88px; height: 88px;
  display: grid; justify-items: center; align-content: center; gap: 6px;
  padding: 6px 4px; color: var(--pc-text);
  border: 1px solid transparent; border-radius: 6px; background: transparent;
}
.desktop-icons button:hover,
.desktop-icons button:focus-visible {
  background: rgba(255, 255, 255, .55);
  border-color: rgba(15, 108, 189, .25);
}
.desktop-icons strong {
  max-width: 84px; font-size: 12px; font-weight: 500; line-height: 1.3; text-align: center;
}
.desktop-icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  color: #fff; border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}
.desktop-icon .glyph { width: 22px; height: 22px; }
.icon-case { background: linear-gradient(160deg, #4a90d9, #0f6cbd); }
.icon-search { background: linear-gradient(160deg, #5b8def, #3b6fd4); }
.icon-files { background: linear-gradient(160deg, #e8a33d, #c97a12); }
.icon-browser { background: linear-gradient(160deg, #2f9e8f, #0f7a6c); }
.icon-overlay { background: linear-gradient(160deg, #8b6fd4, #6247b8); }
.icon-notes { background: linear-gradient(160deg, #6b7c8c, #4a5a68); }

/* —— 窗口 —— */
.os-window {
  position: absolute; z-index: 20;
  inset: 68px 28px 56px 112px;
  display: grid;
  grid-template-rows: 40px 28px 36px minmax(0, 1fr) 30px;
  color: var(--pc-text);
  background: var(--pc-surface);
  border: 1px solid #d0d0d0;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .18);
  overflow: hidden;
  transition: inset .12s ease;
}
.os-window.maximized { inset: 0 0 48px; border-radius: 0; border-width: 0; }
.os-window.dragging {
  transition: none !important;
  user-select: none;
  box-shadow: 0 20px 56px rgba(0, 0, 0, .22);
}
.window-titlebar { cursor: grab; touch-action: none; }
.os-window.dragging .window-titlebar { cursor: grabbing; }
.os-window.maximized .window-titlebar { cursor: default; }
.window-controls button { cursor: default; }
/* utility 无页签 */
.os-window[data-chrome="utility"] {
  grid-template-rows: 40px 28px 36px minmax(0, 1fr) 30px;
}
/* browser 用地址栏代替命令栏 */
.os-window[data-chrome="browser"] {
  grid-template-rows: 40px 28px 40px 32px minmax(0, 1fr) 30px;
}
.os-window[data-chrome="browser"] .window-cmdbar { display: none !important; }
.os-window:not([data-chrome="browser"]) .window-browserbar { display: none !important; }

.window-titlebar {
  height: 40px; display: flex; justify-content: space-between; align-items: center;
  color: var(--pc-text); background: var(--pc-titlebar);
  border-bottom: 1px solid var(--pc-line); user-select: none;
}
.window-title-left {
  min-width: 0; overflow: hidden; display: flex; align-items: center; gap: 8px; padding-left: 12px;
}
.window-title-left strong {
  min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-size: 13px; font-weight: 600;
}
.window-title-left small {
  color: var(--pc-muted); font-size: 11px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.window-app-icon {
  width: 22px; height: 22px; display: grid; place-items: center;
  color: #fff; border-radius: 4px; background: var(--pc-accent);
}
.window-app-icon .glyph { width: 13px; height: 13px; }
.window-controls { align-self: stretch; display: flex; }
.window-controls button { width: 46px; border: 0; color: #444; background: transparent; font-size: 14px; }
.window-controls button:hover { background: #eaeaea; }
.window-controls button:last-child:hover { background: #c42b1c; color: #fff; }

/* —— 本机菜单栏 —— */
.window-menubar {
  display: flex; align-items: stretch; gap: 0;
  padding: 0 6px;
  background: #f3f3f3;
  border-bottom: 1px solid var(--pc-line);
  font-size: 12px;
  user-select: none;
}
.menu-group { position: relative; display: flex; align-items: stretch; }
.menu-title {
  height: 100%; padding: 0 12px;
  color: var(--pc-text); background: transparent; border: 0;
  font-size: 12px;
}
.menu-title:hover, .menu-group:hover .menu-title { background: #e8e8e8; }
.menu-drop {
  display: none;
  position: absolute; top: 100%; left: 0; z-index: 70;
  min-width: 180px; padding: 4px;
  background: #fff; border: 1px solid #d0d0d0; border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}
.menu-group:hover .menu-drop { display: grid; }
.menu-drop button {
  min-height: 30px; padding: 0 12px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  color: var(--pc-text); background: transparent; border: 0; border-radius: 3px;
  font-size: 12px; text-align: left;
}
.menu-drop button:hover { background: #f0f6fc; }
.menu-drop button:disabled { color: #999; }
.menu-hint { color: var(--pc-muted); font-size: 11px; }
.menu-sep { height: 1px; margin: 4px 8px; background: var(--pc-line); }

/* —— 应用命令栏 —— */
.window-cmdbar,
.window-browserbar {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 8px;
  background: #fafafa;
  border-bottom: 1px solid var(--pc-line);
}
.window-browserbar {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px;
}
.cmdbar-btn {
  min-height: 28px; padding: 0 12px;
  color: var(--pc-text); background: #fff;
  border: 1px solid #d4d4d4; border-radius: 4px;
  font-size: 12px;
}
.cmdbar-btn:hover { background: #f0f6fc; border-color: #b9d3ec; }
.cmdbar-sep { width: 1px; height: 18px; background: #ddd; margin: 0 4px; }
.window-cmdbar .progress-button {
  min-height: 28px; min-width: 200px; max-width: 300px; padding: 0 10px;
  display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center;
  color: var(--pc-text); background: #fff;
  border: 1px solid #d4d4d4; border-radius: 4px; text-align: left; font-size: 12px;
}
.window-cmdbar .progress-button span {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--pc-muted);
}
.window-cmdbar .progress-button strong { color: var(--pc-accent); font-variant-numeric: tabular-nums; }
.window-cmdbar .progress-button:hover { background: #f0f6fc; border-color: #b9d3ec; }
.window-browserbar .icon-button {
  width: 30px; min-height: 30px; display: inline-grid; place-items: center;
  border: 1px solid #d4d4d4; border-radius: 4px; background: #fff; color: var(--pc-text);
}
.window-browserbar .icon-button:hover { background: #f0f6fc; }
.window-browserbar .address-bar {
  min-width: 0; min-height: 30px; padding: 0 12px; text-align: left;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  color: #555; background: #fff; border: 1px solid #d4d4d4; border-radius: 4px;
  font: 12px Consolas, monospace;
}
.window-browserbar .tool-button {
  min-height: 30px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px;
  color: var(--pc-text); background: #fff; border: 1px solid #d4d4d4; border-radius: 4px; font-size: 12px;
}

.window-tabs {
  display: flex; align-items: end; gap: 2px;
  padding: 0 8px; overflow-x: auto;
  background: #f3f3f3; border-bottom: 1px solid var(--pc-line);
}
.window-tabs button {
  height: 30px; padding: 0 14px; color: #555; background: transparent;
  border: 0; border-bottom: 2px solid transparent;
  font-size: 12px; white-space: nowrap;
}
.window-tabs button:hover { color: var(--pc-text); background: #eaeaea; }
.window-tabs button[aria-selected="true"] {
  color: var(--pc-accent); border-bottom-color: var(--pc-accent); background: #fff;
}
.window-tabs .browser-page-tab { min-width: 180px; max-width: 260px; text-align: left; }
.window-tabs .browser-page-tab span { display: block; overflow: hidden; text-overflow: ellipsis; }
.window-tabs .tab-icon-button {
  width: 30px; padding: 0; display: grid; place-items: center;
  color: var(--pc-muted); font-size: 16px;
}

.os-window .app-shell {
  height: auto; min-height: 0; overflow: hidden;
  display: grid; grid-template-rows: minmax(0, 1fr);
  background: var(--pc-canvas);
}
.os-window .page-viewport { height: 100%; min-height: 0; background: var(--pc-canvas); }

.window-statusbar {
  display: flex; align-items: center; gap: 8px; padding: 0 12px;
  color: var(--pc-muted); background: #fafafa; border-top: 1px solid var(--pc-line);
  font-size: 11px; overflow: hidden; white-space: nowrap;
}
.status-sep { color: #ccc; }

.os-window:not([data-chrome="browser"]) .window-tabs { display: none !important; }
.os-window[data-chrome="browser"] .window-tabs button[aria-selected="true"] {
  border-radius: 4px 4px 0 0;
  border: 1px solid var(--pc-line); border-bottom-color: #fff;
  margin-bottom: -1px;
}

/* 抽屉顶部：titlebar + menubar + cmdbar/browserbar + tabs */
.os-window .side-drawer {
  position: absolute; top: 104px; bottom: 30px; right: 0; z-index: 40;
  width: min(320px, 42%); background: #fff;
  border-left: 1px solid var(--pc-line);
  transform: translateX(102%); transition: transform .18s ease;
  box-shadow: -8px 0 24px rgba(0, 0, 0, .08);
}
.os-window[data-chrome="utility"] .side-drawer { top: 104px; }
.os-window[data-chrome="browser"] .side-drawer { top: 140px; }
.os-window .side-drawer.open { transform: translateX(0); }
.os-window .drawer-backdrop {
  position: absolute; inset: 104px 0 30px; z-index: 35; background: rgba(0, 0, 0, .2);
}
.os-window[data-chrome="utility"] .drawer-backdrop { inset: 104px 0 30px; }
.os-window[data-chrome="browser"] .drawer-backdrop { inset: 140px 0 30px; }
.os-window .modal-root { position: absolute; inset: 0; z-index: 80; background: rgba(0, 0, 0, .35); }
.os-window .toast-region { position: absolute; right: 14px; bottom: 42px; z-index: 100; }
.os-window .mobile-progress { display: none; }

/* —— 任务栏 / 开始菜单 —— */
.os-taskbar {
  position: absolute; z-index: 40; left: 0; right: 0; bottom: 0;
  height: 48px; display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center;
  padding: 0 10px; color: var(--pc-text);
  background: var(--pc-taskbar); border-top: 1px solid #e0e0e0;
  backdrop-filter: blur(18px);
}
.taskbar-home {
  width: 40px; height: 36px; display: grid; place-items: center;
  color: #fff; background: var(--pc-accent); border: 0; border-radius: 6px;
  font-size: 11px; font-weight: 700;
}
.taskbar-home:hover { background: var(--pc-accent-hover); }
.taskbar-apps {
  display: flex; min-width: 0; gap: 4px; padding: 4px 2px; overflow-x: auto;
}
.taskbar-apps button {
  min-width: 120px; max-width: 180px; display: flex; align-items: center; gap: 7px;
  padding: 0 12px; height: 36px; color: var(--pc-text);
  background: rgba(255, 255, 255, .7); border: 1px solid transparent; border-radius: 6px;
  font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.taskbar-apps button:hover { background: #fff; border-color: #d0d0d0; }
.taskbar-apps button.active {
  background: #fff; border-color: #c5d9ef; box-shadow: inset 0 -2px 0 var(--pc-accent);
}
.taskbar-apps button .glyph { width: 14px; height: 14px; color: var(--pc-accent); flex: 0 0 auto; }
.taskbar-tray {
  display: flex; align-items: center; gap: 10px; padding-left: 10px;
  border-left: 1px solid #e0e0e0; color: var(--pc-muted); font-size: 11px;
}
.taskbar-tray button {
  min-width: 56px; height: 36px; padding: 0 8px;
  color: var(--pc-text); background: transparent; border: 0; border-radius: 4px;
  font-size: 12px; font-variant-numeric: tabular-nums;
}
.taskbar-tray button:hover { background: rgba(0, 0, 0, .05); }

.start-menu {
  position: absolute; z-index: 60; left: 10px; bottom: 56px;
  width: min(360px, calc(100vw - 20px)); color: var(--pc-text);
  background: rgba(255, 255, 255, .96);
  border: 1px solid #e0e0e0; border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
  backdrop-filter: blur(20px); overflow: hidden;
}
.start-menu > header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--pc-line);
}
.start-menu > header .login-emblem {
  width: 36px; height: 36px; display: grid; place-items: center;
  color: #fff; background: var(--pc-accent); border: 0; border-radius: 50%;
  font-size: 11px; font-weight: 700;
}
.start-menu > header div { display: grid; gap: 2px; }
.start-menu > header strong { font-size: 13px; }
.start-menu > header small { color: var(--pc-muted); font-size: 11px; }
.start-menu nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px; }
.start-menu nav button {
  min-width: 0; min-height: 56px;
  display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 8px;
  padding: 8px; color: var(--pc-text); border: 0; border-radius: 6px;
  background: transparent; text-align: left;
}
.start-menu nav button:hover { background: #f0f6fc; }
.start-menu nav button > svg.glyph { width: 18px; height: 18px; color: var(--pc-accent); }
.start-menu nav button div { min-width: 0; display: grid; gap: 2px; }
.start-menu nav button strong,
.start-menu nav button small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.start-menu nav button strong { font-size: 12px; }
.start-menu nav button small { color: var(--pc-muted); font-size: 10px; }
.start-menu > footer {
  display: flex; justify-content: flex-end; gap: 6px;
  padding: 10px; border-top: 1px solid var(--pc-line); background: #fafafa;
}
.start-menu > footer button {
  min-height: 32px; padding: 0 12px; color: var(--pc-text); background: #fff;
  border: 1px solid #d4d4d4; border-radius: 4px; font-size: 12px;
}
.start-menu > footer button:hover { background: #f0f6fc; border-color: #b9d3ec; }

.os-window .page-header { background: #fff; }
.os-window .panel,
.os-window .record-card,
.os-window .document-sheet,
.os-window .query-result,
.os-window .claim-panel { border-radius: 6px; }

@media (max-width: 900px) {
  .login-card-wrap { grid-template-columns: 1fr; gap: 16px; }
  .handover-slip { max-width: 360px; width: 100%; margin: 0 auto; }
  .desktop-icons { grid-template-columns: repeat(2, 88px); }
}

@media (max-width: 760px) {
  .desktop-statusbar { display: none; }
  .desktop-icons {
    top: 12px; left: 10px; right: 10px; bottom: 56px;
    grid-template-columns: repeat(3, minmax(72px, 1fr));
    grid-auto-rows: 84px;
    justify-items: center;
  }
  .desktop-icons button { width: 100%; max-width: 88px; }
  .os-window, .os-window.maximized {
    /* A desktop drag writes an inline inset. Mobile always owns the viewport. */
    inset: 0 0 48px !important; border-radius: 0; border-width: 0;
    grid-template-rows: 44px 28px 36px minmax(0, 1fr);
  }
  .os-window[data-chrome="utility"],
  .os-window[data-chrome="utility"].maximized {
    grid-template-rows: 44px 28px 36px minmax(0, 1fr);
  }
  .os-window[data-chrome="browser"],
  .os-window[data-chrome="browser"].maximized {
    grid-template-rows: 44px 28px 40px 30px minmax(0, 1fr);
  }
  .window-titlebar { height: 44px; }
  .window-title-left small { display: none; }
  .window-controls button { width: 40px; }
  .window-statusbar { display: none; }
  .window-cmdbar .progress-button { display: none; }
  .window-cmdbar { overflow-x: auto; }
  .browser-favorites { align-items: center; padding: 7px 10px; }
  .archive-sidebar {
    display: flex; gap: 8px; align-items: center; overflow-x: auto;
    padding: 9px 12px; white-space: nowrap;
  }
  .archive-sidebar h3 { display: none; }
  .archive-sidebar p { flex: 0 0 auto; margin: 0; }
  .os-window .side-drawer { top: 108px; bottom: 0; width: 100%; height: auto; }
  .os-window[data-chrome="utility"] .side-drawer { top: 108px; }
  .os-window[data-chrome="browser"] .side-drawer { top: 142px; }
  .os-window .drawer-backdrop { inset: 108px 0 0; }
  .os-window[data-chrome="utility"] .drawer-backdrop { inset: 108px 0 0; }
  .os-window[data-chrome="browser"] .drawer-backdrop { inset: 142px 0 0; }
  .os-window .mobile-progress {
    display: flex; position: absolute; left: 0; right: 0; bottom: 0; z-index: 30;
    min-height: 40px; padding: 0 12px; align-items: center;
    color: #fff; background: var(--pc-accent); border: 0;
    font-size: 12px; text-align: left;
  }
  .os-window .page-viewport { scroll-padding-bottom: 48px; }
  .start-menu { left: 8px; right: 8px; width: auto; }
  .taskbar-tray > span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .os-window, .os-window .side-drawer { transition: none; }
}

/* ══════════════════════════════════════════════════════
   故事引导页
   ══════════════════════════════════════════════════════ */
.prologue-screen {
  position: fixed; inset: 0; z-index: 200;
  overflow: auto;
  color: #1b1b1b;
  font-family: "Segoe UI", "Microsoft YaHei UI", system-ui, sans-serif;
  background: #f3f4f6;
}
.prologue-screen[hidden] { display: none !important; }
.prologue-nav {
  position: sticky; top: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px;
  background: rgba(247, 250, 252, .88);
  border-bottom: 1px solid rgba(15, 108, 189, .16);
  backdrop-filter: blur(14px) saturate(1.2);
}
.prologue-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; letter-spacing: .02em; color: #10223a;
}
.prologue-brand i {
  width: 11px; height: 11px; border-radius: 3px;
  background: linear-gradient(135deg, #2f8fe0, #0f6cbd);
  box-shadow: 0 0 0 3px rgba(15, 108, 189, .14);
}
.prologue-resume {
  min-height: 34px; padding: 0 14px;
  color: #0f6cbd;
  background: #fff; border: 1px solid #c5d9ef; border-radius: 6px;
  font-size: 12px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 108, 189, .06);
}
.prologue-resume:hover { background: #eef5fd; border-color: #9ec3ea; }
.prologue-resume:focus-visible { outline: 2px solid #0f6cbd; outline-offset: 2px; }
.prologue-resume.hidden { display: none !important; }

.prologue-hero {
  position: relative; overflow: hidden;
  min-height: min(86vh, 780px);
  display: grid; align-items: center;
  padding: clamp(64px, 12vh, 110px) clamp(24px, 6vw, 72px) 88px;
  background:
    linear-gradient(90deg, rgba(8, 13, 18, .84) 0%, rgba(8, 13, 18, .52) 42%, rgba(10, 16, 22, .28) 100%),
    linear-gradient(180deg, rgba(6, 10, 14, .38) 0%, rgba(6, 10, 14, .12) 46%, rgba(6, 10, 14, .82) 100%),
    url("assets/prologue-hero.webp") center 32% / cover no-repeat,
    #0e151c;
  color: #eef3f7;
  box-shadow: inset 0 -46px 66px -34px rgba(0, 0, 0, .6);
}
/* 档案坐标角标：悬疑 / 取证氛围 */
.prologue-coord {
  position: absolute; top: 16px; right: clamp(18px, 4vw, 40px);
  color: rgba(214, 232, 245, .7);
  font: 500 12px Consolas, monospace; letter-spacing: .14em;
}
.prologue-hero-copy { max-width: 640px; width: 100%; }
.prologue-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  color: #96c9ee; font-size: 13px; font-weight: 600; letter-spacing: .1em;
}
.prologue-kicker i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ffb4ae; box-shadow: 0 0 10px 2px rgba(255, 120, 110, .55);
  animation: prologue-pulse 1.8s ease-in-out infinite;
}
.prologue-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(30px, 5.4vw, 46px); line-height: 1.22; font-weight: 700;
  color: #fff; letter-spacing: .01em;
  text-shadow: 0 3px 26px rgba(0, 0, 0, .5);
}
.prologue-lead {
  margin: 0 0 30px;
  color: #dbe6ee; font-size: clamp(14px, 1.6vw, 15.5px); line-height: 1.8;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
}
.prologue-lead b { color: #ffb4ae; font-weight: 700; }
.prologue-alert {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 15px 18px;
  background: rgba(8, 12, 16, .78);
  border: 1px solid rgba(255, 120, 110, .4);
  border-radius: 10px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 120, 110, .08);
  backdrop-filter: blur(10px);
}
.prologue-alert-dot {
  flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%;
  background: #ff5448; box-shadow: 0 0 12px 2px rgba(255, 84, 72, .75);
  animation: prologue-pulse 1.5s ease-in-out infinite;
}
@keyframes prologue-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.prologue-alert-code {
  min-width: 76px; text-align: center;
  color: #fff; background: linear-gradient(180deg, #c8423c, #a52824);
  border-radius: 6px; padding: 11px 8px;
  font: 800 15px Consolas, monospace; letter-spacing: .06em;
}
.prologue-alert small { display: block; color: #93a6b4; font-size: 11px; letter-spacing: .04em; }
.prologue-alert b { display: block; color: #fff; font-size: 14px; margin: 2px 0; font-weight: 650; }
.prologue-alert span { color: #93a6b4; font-size: 12px; }

/* 底部铁轨装饰 */
.prologue-track {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 38px;
  display: flex; align-items: center; justify-content: space-evenly;
  padding: 0 6vw;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .6));
}
.prologue-track i, .prologue-track span { display: block; height: 4px; width: 26px; border-radius: 2px; }
.prologue-track i { background: rgba(255, 255, 255, .55); box-shadow: 0 12px 12px rgba(0, 0, 0, .45); }
.prologue-track span { background: rgba(130, 158, 176, .22); box-shadow: 0 12px 12px rgba(0, 0, 0, .38); }

.prologue-scroll {
  position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%);
  color: #9fb0bd; font-size: 11px; letter-spacing: .14em;
  display: grid; justify-items: center; gap: 8px;
}
.prologue-scroll span {
  width: 1px; height: 30px; background: linear-gradient(#8ec4ea, transparent);
}

.prologue-content { max-width: 920px; margin: 0 auto; padding: 30px 24px 84px; }
.prologue-section-title { margin: 44px 0 20px; }
.prologue-section-title span {
  display: inline-flex; align-items: center; gap: 10px;
  color: #0f6cbd; font-size: 12px; font-weight: 700; letter-spacing: .08em; margin-bottom: 10px;
  font-family: Consolas, monospace;
}
.prologue-section-title span::before { content: ""; width: 20px; height: 2px; background: #0f6cbd; border-radius: 2px; }
.prologue-section-title h2 { margin: 0; font-size: clamp(20px, 3vw, 24px); font-weight: 650; letter-spacing: .01em; }
.prologue-section-title p { color: #616161; font-size: 13px; line-height: 1.65; max-width: 560px; }

.prologue-timeline {
  position: relative; display: grid; gap: 12px;
}
.prologue-timeline::before {
  content: ""; position: absolute; left: 27px; top: 20px; bottom: 20px; width: 1px;
  background: linear-gradient(180deg, rgba(15,108,189,.25), rgba(15,108,189,.05));
}
.prologue-timeline article {
  position: relative;
  display: grid; grid-template-columns: 110px 1fr; gap: 16px;
  padding: 18px 20px 18px 46px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}
.prologue-timeline article::before {
  content: ""; position: absolute; left: 21px; top: 24px;
  width: 13px; height: 13px; border-radius: 50%;
  background: #fff; border: 3px solid #0f6cbd;
}
.prologue-timeline article.now {
  border-color: #b9d6f2;
  box-shadow: 0 0 0 1px rgba(15,108,189,.1), 0 6px 18px rgba(15,108,189,.06);
}
.prologue-timeline article.now::before {
  background: #0f6cbd; box-shadow: 0 0 0 4px rgba(15,108,189,.15);
}
.prologue-timeline time {
  color: #0f6cbd; font: 600 13px Consolas, monospace; padding-top: 2px;
}
.prologue-timeline p { margin: 0; color: #333; font-size: 14px; line-height: 1.65; }

.prologue-content blockquote {
  margin: 28px 0 8px; padding: 20px 24px;
  color: #1b1b1b; background: #fff;
  border-left: 3px solid #0f6cbd;
  font-size: 15px; line-height: 1.7;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 10px rgba(15,108,189,.05);
}

.prologue-methods {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.prologue-methods article {
  padding: 18px 16px; background: #fff; border: 1px solid #e5e5e5; border-radius: 8px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.prologue-methods article:hover {
  transform: translateY(-2px);
  border-color: #c5d9ef;
  box-shadow: 0 8px 18px rgba(15,108,189,.08);
}
.prologue-methods b {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px; padding: 0 4px;
  color: #0f6cbd; font: 700 12px Consolas, monospace; margin-bottom: 10px;
  background: rgba(15,108,189,.08); border-radius: 6px;
}
.prologue-methods h3 { margin: 0 0 8px; font-size: 16px; }
.prologue-methods p { margin: 0; color: #616161; font-size: 12px; line-height: 1.55; }

.prologue-mission {
  margin-top: 52px; padding: 38px 30px 34px;
  background: linear-gradient(180deg, #fff 0%, #f7fafd 100%);
  border: 1px solid #e3ebf4;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 12px 34px rgba(15,108,189,.07);
}
.prologue-mission > span {
  display: block; color: #6b7b8b; font-size: 12px; margin-bottom: 12px; letter-spacing: .04em;
}
.prologue-mission h2 {
  margin: 0 0 14px; font-size: clamp(20px, 3vw, 23px); line-height: 1.45; font-weight: 700;
}
.prologue-mission p { margin: 0 0 8px; color: #555; font-size: 13px; line-height: 1.6; }
.prologue-fiction { color: #888 !important; font-size: 12px !important; }
.prologue-enter {
  margin-top: 22px; min-height: 48px; padding: 0 34px;
  color: #fff; cursor: pointer;
  background: linear-gradient(180deg, #1486dd, #0f6cbd);
  border: 0; border-radius: 8px;
  font-size: 15px; font-weight: 650; letter-spacing: .02em;
  box-shadow: 0 8px 20px rgba(15,108,189,.3);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.prologue-enter:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(15,108,189,.36); }
.prologue-enter:active { transform: translateY(0); }
.prologue-enter:focus-visible { outline: 2px solid #0f6cbd; outline-offset: 3px; }
.prologue-enter i { font-style: normal; margin-left: 8px; }
.prologue-footer {
  padding: 20px 24px 30px; text-align: center;
  color: #8a95a0; font-size: 12px;
}

@media (max-width: 1280px) {
  .prologue-hero { min-height: 640px; }
}
@media (min-width: 1440px) {
  .prologue-hero { min-height: 86vh; }
}
@media (max-width: 860px) {
  .prologue-nav { padding: 12px 20px; }
  .prologue-methods { grid-template-columns: 1fr 1fr; }
  .prologue-timeline article { grid-template-columns: 1fr; gap: 6px; }
  .prologue-hero { min-height: 74vh; padding: 46px 20px 88px; }
  .prologue-hero h1 { font-size: clamp(26px, 6vw, 34px); }
  .prologue-coord { top: 12px; right: 18px; font-size: 11px; }
  .prologue-content { padding: 24px 20px 72px; }
}
@media (max-width: 560px) {
  .prologue-methods { gap: 10px; }
  .prologue-mission { padding: 30px 20px; }
}
@media (max-width: 520px) {
  .prologue-hero { min-height: 0; padding: 44px 20px 84px; }
  .prologue-track { display: none; }
  .prologue-alert { align-items: flex-start; }
}
@media (max-width: 480px) {
  .prologue-methods { grid-template-columns: 1fr; }
  .prologue-enter { width: 100%; }
}
@media (max-width: 380px) {
  .prologue-nav { padding: 10px 14px; }
  .prologue-brand { font-size: 13px; }
  .prologue-resume { padding: 0 10px; min-height: 32px; }
  .prologue-hero { padding: 34px 16px 80px; }
  .prologue-hero h1 { font-size: 23px; }
  .prologue-lead { font-size: 14px; }
  .prologue-alert { padding: 12px 14px; gap: 10px; }
  .prologue-alert-code { min-width: 62px; font-size: 14px; }
  .prologue-content { padding: 20px 16px 60px; }
  .prologue-timeline article { padding: 16px 16px 16px 44px; }
  .prologue-mission h2 { font-size: 19px; }
  .prologue-footer { padding: 16px 16px 24px; }
}

/* Windows 任务栏再压一档：更接近真机 */
.os-taskbar {
  height: 48px;
  padding: 0 8px;
  gap: 6px;
}
.taskbar-home {
  width: 40px; height: 40px;
  border-radius: 4px;
}
.taskbar-apps { justify-content: flex-start; padding: 4px 0; }
.taskbar-apps button {
  min-width: 132px; height: 40px;
  border-radius: 4px;
  font-size: 12px;
}
.taskbar-tray {
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.taskbar-tray button {
  min-width: 64px; height: 40px;
  font-size: 12px;
  line-height: 1.2;
}
.start-menu {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}
.desktop-icon {
  width: 48px; height: 48px;
  border-radius: 6px;
}
.desktop-icon .glyph { width: 24px; height: 24px; }

/* 最终稳定：任务栏文字对比 + 残留旧皮清理 */
.os-taskbar { color: #1b1b1b !important; background: rgba(249, 249, 249, .94) !important; }
.taskbar-home {
  color: #fff !important; background: #0f6cbd !important; border: 0 !important;
}
.taskbar-home:hover, .taskbar-home:focus-visible { background: #115ea3 !important; }
.taskbar-apps button {
  color: #1b1b1b !important;
  background: rgba(255, 255, 255, .8) !important;
  border: 1px solid transparent !important;
  border-bottom: 2px solid #c5d9ef !important;
  font-size: 12px !important;
  height: 36px;
}
.taskbar-apps button:hover {
  color: #1b1b1b !important;
  background: #fff !important;
  border-color: #d0d0d0 !important;
  border-bottom-color: #0f6cbd !important;
}
.taskbar-apps button.active {
  color: #1b1b1b !important;
  background: #fff !important;
  border-color: #c5d9ef !important;
  border-bottom-color: #0f6cbd !important;
  box-shadow: inset 0 -2px 0 #0f6cbd !important;
}
.taskbar-apps button .glyph { color: #0f6cbd !important; }
.taskbar-tray { color: #616161 !important; border-left-color: #e0e0e0 !important; }
.taskbar-tray button { color: #1b1b1b !important; }

.os-desktop { color: #1b1b1b; }
.os-window .primary-button,
.primary-button { background: #0f6cbd !important; border-color: #115ea3 !important; color: #fff !important; }
.primary-button:hover { background: #115ea3 !important; }
.os-window .page-header { background: #fff; }
.os-window .workspace-aside { background: #fafafa; }
.os-window .interview-shell { background: #f5f6f8; }
.os-window .interview-topbar { background: #fff; color: #1b1b1b; }
.os-window .claim-list { background: #fafafa; }
.os-window .query-form { background: #f3f3f3; }

/* 开始钮与开始菜单头像 */
.taskbar-home {
  width: 40px !important; height: 36px !important;
  display: grid !important; place-items: center !important;
  color: #fff !important; background: #0f6cbd !important;
  border: 0 !important; border-radius: 6px !important;
  padding: 0 !important;
}
.taskbar-home .start-glyph { width: 18px; height: 18px; display: block; }
.start-avatar {
  width: 36px; height: 36px; flex: 0 0 auto;
  display: grid; place-items: center;
  color: #fff; background: linear-gradient(160deg, #3d8fd4, #0f6cbd);
  border-radius: 50%; font-size: 14px; font-weight: 600;
}
.start-menu > header .login-emblem {
  width: 36px; height: 36px; display: grid; place-items: center;
  color: #fff; background: #0f6cbd; border: 0; border-radius: 50%;
  font-size: 11px; font-weight: 700;
}

/* 文件管理图标 */
.file-tree button {
  display: flex; align-items: center; gap: 8px; min-height: 34px;
  padding: 0 8px; border: 0; border-radius: 4px;
  color: #333; background: transparent; text-align: left; font-size: 12px;
}
.file-tree button.active,
.file-tree button:hover { background: #e8f1fb; color: #1b1b1b; }
.file-tree-icon { width: 16px; height: 16px; color: #0f6cbd; flex: 0 0 auto; }
.file-tree-icon .glyph { width: 16px; height: 16px; }
.file-glyph {
  width: 22px; height: 22px; display: grid; place-items: center;
  color: #0f6cbd; background: #eef6fc; border-radius: 4px;
}
.file-glyph .glyph { width: 14px; height: 14px; }
.file-home { display: inline-grid; place-items: center; min-width: 32px; min-height: 32px; padding: 0; }
.lock-mark {
  width: 48px; height: 48px; display: grid; place-items: center;
  margin-bottom: 12px; color: #0f6cbd; background: #eef6fc;
  border: 1px solid #c5d9ef; border-radius: 8px;
}
.lock-mark .glyph { width: 24px; height: 24px; }

/* 表单与次级按钮统一 */
.form-control, .query-form select, .query-form input, .password-input {
  border: 1px solid #d4d4d4; border-radius: 4px; background: #fff; color: var(--pc-text);
}
.form-control:focus, .query-form select:focus, .query-form input:focus {
  outline: none; border-color: #0f6cbd; box-shadow: 0 0 0 2px rgba(15, 108, 189, .18);
}
.secondary-button, .quiet-button, .notes-tools button, .inline-actions button {
  border-radius: 4px; border-color: #d4d4d4; background: #fff; color: var(--pc-text);
}
.secondary-button:hover, .quiet-button:hover, .notes-tools button:hover, .inline-actions button:hover {
  background: #f0f6fc; border-color: #b9d3ec;
}
.claim-button { border-radius: 6px; border-color: #e5e5e5; }
.claim-button.active { border-color: #0f6cbd; box-shadow: inset 3px 0 #0f6cbd; }
.claim-button.resolved { background: #e8f1fb; }
.evidence-picker { border-color: #e5e5e5; background: #fff; }

/* 对照台图例：浅条 + 深画布 */
.graph-legend {
  color: #333; background: #f3f3f3; border-bottom: 1px solid #e5e5e5;
}
.os-window .graph-frame { border-color: #2a3830; }

/* 作者署名与关于 */
.footer-credit, .status-credit {
  border: 0; background: transparent; color: inherit;
  font: inherit; padding: 0; cursor: default; text-decoration: none;
}
.footer-credit { color: #5a6e62; }
.footer-credit:hover, .status-credit:hover { color: #0f6cbd; text-decoration: underline; }
.status-credit { margin-left: auto; font-size: 10px; }
.about-panel .about-title { margin: 0 0 4px; font-size: 20px; font-weight: 600; }
.about-panel .about-spine {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--pc-line);
  color: var(--pc-muted); font-size: 12px; line-height: 1.55;
}
.about-dialog .modal-body { padding: 18px 20px; }
.muted-note { color: var(--pc-muted); font-size: 12px; }

/* ══════════════════════════════════════════════════════
   Shell v4 — Windows 11 拟真
   开机 / 锁屏登录 / 居中任务栏 / 居中开始菜单 / 圆角窗口
   ══════════════════════════════════════════════════════ */

:root {
  --win11-accent: #0067c0;
  --win11-accent-soft: #e8f1fb;
  --win11-ink: #1b1b1b;
  --win11-muted: #5c6370;
  --win11-line: rgba(0, 0, 0, .09);
  --win11-mica: rgba(243, 246, 249, .82);
  --win11-radius: 8px;
}

/* —— 开机自检 —— */
.boot-screen {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: #000; cursor: pointer;
  opacity: 1; transition: opacity .4s ease;
}
.boot-screen[hidden] { display: none !important; }
.boot-screen.boot-leave { opacity: 0; }
.boot-inner { display: grid; justify-items: center; gap: 34px; }
.boot-logo { width: 78px; height: 78px; fill: #fff; }
.boot-spinner { position: relative; width: 42px; height: 42px; }
.boot-spinner i {
  position: absolute; left: 50%; top: 50%;
  width: 4.5px; height: 4.5px; margin: -2.25px 0 0 -2.25px;
  border-radius: 50%; background: #fff;
  transform: rotate(var(--a)) translateY(-15px);
  animation: boot-dot 1.1s linear infinite;
}
.boot-spinner i:nth-child(1) { --a: 0deg;   animation-delay: 0s; }
.boot-spinner i:nth-child(2) { --a: 72deg;  animation-delay: -.18s; }
.boot-spinner i:nth-child(3) { --a: 144deg; animation-delay: -.36s; }
.boot-spinner i:nth-child(4) { --a: 216deg; animation-delay: -.54s; }
.boot-spinner i:nth-child(5) { --a: 288deg; animation-delay: -.72s; }
@keyframes boot-dot { 0%, 100% { opacity: .18; } 35% { opacity: 1; } }
.boot-subtitle {
  position: absolute; left: 0; right: 0; bottom: 92px;
  margin: 0; text-align: center;
  color: #8fa3b8; font-size: 12px; letter-spacing: .22em;
}
.boot-skip {
  position: absolute; right: 22px; bottom: 18px; margin: 0;
  color: #55606e; font-size: 11px;
}

/* —— 登录：Win11 模糊壁纸锁屏 —— */
.os-login { background: #0b1119; }
.os-login .login-backdrop {
  background:
    linear-gradient(180deg, rgba(9, 15, 23, .52), rgba(9, 15, 23, .68)),
    url("assets/wallpaper-workpc.webp") center / cover no-repeat;
}
.login-backdrop::after { display: none; }
.login-card-wrap { gap: 34px; }
.login-user h1 { color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.user-account { color: rgba(255, 255, 255, .82) !important; }
.user-avatar {
  border: 3px solid rgba(255, 255, 255, .55);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
}
.password-input {
  min-height: 42px; border-radius: 6px;
  border-color: rgba(255, 255, 255, .7);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
}
.password-go { min-height: 42px; border-radius: 6px; position: relative; }
.password-go.is-busy svg { opacity: 0; }
.password-go.is-busy::after {
  content: ""; position: absolute; width: 15px; height: 15px;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  border-radius: 50%; animation: win-spin .7s linear infinite;
}
@keyframes win-spin { to { transform: rotate(360deg); } }
.login-hint { color: rgba(255, 255, 255, .78) !important; }
.login-hint strong { color: #fff; }
.login-error { color: #ff9b95 !important; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.login-switch { color: #8fc4f5 !important; }
.login-secondary span:not(.foot-sep) { color: rgba(255, 255, 255, .72); }
.login-secondary .footer-credit { color: #8fc4f5 !important; }
.login-secondary .footer-credit:hover { color: #cfe6ff !important; }
.handover-slip {
  color: #f2f6fb;
  background: rgba(28, 38, 50, .5);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .3);
  backdrop-filter: blur(22px) saturate(1.3);
}
.handover-slip header { border-bottom-color: rgba(255, 255, 255, .18); }
.handover-slip dt { color: rgba(255, 255, 255, .62) !important; }
.handover-slip dd { color: #fff !important; }
.handover-slip p { color: rgba(255, 255, 255, .72) !important; }
.login-footer {
  border-top: 0;
  color: rgba(255, 255, 255, .82);
  background: linear-gradient(transparent, rgba(0, 0, 0, .3));
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}
.login-footer .footer-credit { color: rgba(255, 255, 255, .82) !important; }
.login-footer .footer-credit:hover { color: #fff !important; }
.foot-sep { color: rgba(255, 255, 255, .35); }
.footer-power {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; border-radius: 6px; background: transparent;
  color: rgba(255, 255, 255, .82);
}
.footer-power:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* —— 桌面图标：Windows 纵列填充 —— */
.desktop-icons {
  top: 12px; left: 8px; right: auto; bottom: 54px; width: auto;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 84px);
  grid-auto-columns: 78px;
  gap: 2px;
}
@media (max-height: 700px) { .desktop-icons { grid-template-rows: repeat(4, 84px); } }
.desktop-icons button {
  width: 78px; height: 84px;
  border-radius: 4px; border: 1px solid transparent;
  color: #fff; background: transparent;
  gap: 5px;
}
.desktop-icons button:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .28);
}
.desktop-icons button:active,
.desktop-icons button.selected {
  background: rgba(0, 103, 192, .32);
  border-color: rgba(130, 191, 255, .7);
}
.desktop-icons strong {
  max-width: 74px; color: #fff;
  font-size: 12px; font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .95), 0 0 10px rgba(0, 0, 0, .7);
}
.desktop-icon { width: 42px; height: 42px; border-radius: 7px; }
.desktop-icon .glyph { width: 22px; height: 22px; }
.desktop-icons.icons-refresh button { animation: icon-refresh .55s ease both; }
@keyframes icon-refresh {
  0% { opacity: .15; transform: scale(.9) rotate(-2deg); }
  100% { opacity: 1; transform: none; }
}

/* —— 窗口：Win11 圆角 + 弹窗动画 —— */
.os-window {
  inset: 60px 28px 56px 104px;
  border: 1px solid rgba(0, 0, 0, .22);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .32), 0 2px 8px rgba(0, 0, 0, .18);
}
.os-window.maximized {
  inset: 0 0 48px;
  border-width: 0; border-radius: 0;
  box-shadow: none;
}
.os-window:not([hidden]) { animation: win11-open .18s cubic-bezier(.2, .9, .25, 1); }
.os-window.dragging { animation: none; }
@keyframes win11-open {
  from { opacity: 0; transform: scale(.985) translateY(10px); }
  to { opacity: 1; transform: none; }
}
.window-titlebar {
  height: 40px;
  background: #fafbfc;
  border-bottom: 1px solid #eceef1;
}
.window-app-icon { width: 18px; height: 18px; border-radius: 4px; }
.window-app-icon .glyph { width: 11px; height: 11px; }
.window-title-left strong { font-size: 12.5px; font-weight: 600; }
.window-controls { gap: 0; position: relative; z-index: 9; }
.window-controls button {
  width: 46px; height: 40px;
  display: grid; place-items: center;
  color: #1b1b1b; border-radius: 0;
}
.window-controls button:hover { background: #e9ebee; color: #1b1b1b; }
.window-controls button:active { background: #dce0e4; }
.window-controls button.win-close:hover { background: #c42b1c; color: #fff; }
.window-controls button.win-close:active { background: #b02417; }
.win-glyph { width: 15px; height: 15px; display: block; }
.win-glyph.show-restore { display: none; }
.os-window.maximized .win-glyph.show-max { display: none; }
.os-window.maximized .win-glyph.show-restore { display: block; }

/* 边缘 / 角点缩放热区 */
.win-resize { position: absolute; z-index: 8; }
.os-window.maximized .win-resize,
.os-window.dragging .win-resize { display: none; }
.win-resize[data-dir="n"] { left: 10px; right: 10px; top: 0; height: 7px; cursor: ns-resize; }
.win-resize[data-dir="s"] { left: 10px; right: 10px; bottom: 0; height: 7px; cursor: ns-resize; }
.win-resize[data-dir="e"] { top: 10px; bottom: 10px; right: 0; width: 7px; cursor: ew-resize; }
.win-resize[data-dir="w"] { top: 10px; bottom: 10px; left: 0; width: 7px; cursor: ew-resize; }
.win-resize[data-dir="ne"] { right: 0; top: 0; width: 12px; height: 12px; cursor: nesw-resize; }
.win-resize[data-dir="nw"] { left: 0; top: 0; width: 12px; height: 12px; cursor: nwse-resize; }
.win-resize[data-dir="se"] { right: 0; bottom: 0; width: 12px; height: 12px; cursor: nwse-resize; }
.win-resize[data-dir="sw"] { left: 0; bottom: 0; width: 12px; height: 12px; cursor: nesw-resize; }

/* 顶边吸附预览 */
.snap-preview {
  position: absolute; z-index: 15; inset: 6px 6px 52px;
  border: 2px solid rgba(43, 128, 212, .85); border-radius: 8px;
  background: rgba(0, 103, 192, .16);
  pointer-events: none;
}
.snap-preview[hidden] { display: none !important; }

/* —— 任务栏：Win11 居中图标组 —— */
.os-taskbar {
  display: flex !important; align-items: stretch;
  gap: 6px; padding: 0 8px;
  color: var(--win11-ink) !important;
  background: var(--win11-mica) !important;
  border-top: 1px solid var(--win11-line);
  backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: 0 -1px 6px rgba(0, 0, 0, .06);
}
.taskbar-side { flex: 1 1 0; display: flex; align-items: center; min-width: 0; }
.taskbar-right { justify-content: flex-end; }
.taskbar-center {
  flex: 0 1 auto; display: flex; align-items: center; gap: 2px; min-width: 0;
}
.taskbar-home,
.taskbar-search {
  width: 40px !important; height: 40px; align-self: center;
  display: grid !important; place-items: center;
  border: 0 !important; border-radius: 6px;
  background: transparent !important;
  color: var(--win11-accent) !important;
  padding: 0 !important;
}
.taskbar-home:hover, .taskbar-home:focus-visible,
.taskbar-search:hover, .taskbar-search:focus-visible { background: rgba(0, 0, 0, .06) !important; }
.taskbar-home .start-glyph { width: 22px; height: 22px; }
.taskbar-search .glyph { width: 18px; height: 18px; color: #3a424d; }

/* 左侧案件进展小组件 */
.taskbar-widget {
  max-width: 280px; height: 38px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px; margin-left: 4px;
  border: 0; border-radius: 19px;
  background: rgba(255, 255, 255, .62);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07);
  color: #2b323b; font-size: 12px; text-align: left;
}
.taskbar-widget:hover { background: rgba(255, 255, 255, .92); }
.taskbar-widget .glyph { width: 15px; height: 15px; flex: 0 0 auto; color: var(--win11-accent); }
.taskbar-widget span {
  min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  color: var(--win11-muted);
}
.taskbar-widget strong { flex: 0 0 auto; color: var(--win11-accent); font-variant-numeric: tabular-nums; }

/* 运行中的应用 */
.taskbar-apps {
  display: flex; align-items: center; gap: 2px;
  flex: 0 1 auto; min-width: 0; padding: 0; overflow-x: auto;
}
.taskbar-apps button.taskbar-app {
  position: relative;
  min-width: 40px; width: 40px; height: 40px; padding: 0 6px;
  display: grid; place-items: center;
  border: 0 !important; border-radius: 6px;
  background: transparent !important;
  color: #3a424d !important;
  box-shadow: none !important;
}
.taskbar-apps button.taskbar-app:hover { background: rgba(0, 0, 0, .06) !important; }
.taskbar-apps button.taskbar-app.active { background: rgba(0, 0, 0, .08) !important; }
.taskbar-apps button .glyph { width: 20px; height: 20px; color: inherit !important; }
.tb-app-label { display: none; }
.tb-run {
  position: absolute; bottom: 3px; left: 50%;
  width: 5px; height: 3px; margin-left: -2.5px;
  border-radius: 2px; background: #6b7480;
  transition: width .15s ease;
}
.taskbar-apps button.active .tb-run {
  width: 18px; margin-left: -9px;
  background: var(--win11-accent);
}

/* 托盘 */
.taskbar-tray {
  display: flex; align-items: center; gap: 2px; height: 40px; align-self: center;
  padding: 0 6px; border: 0 !important;
  border-radius: 6px; color: var(--win11-ink) !important;
}
.taskbar-tray:hover { background: rgba(0, 0, 0, .05); }
.tray-tag {
  padding: 2px 6px; border-radius: 4px;
  background: rgba(0, 0, 0, .07); color: #4b5563;
  font: 600 10px Consolas, monospace;
}
.tray-icon {
  width: 30px; height: 36px; display: grid; place-items: center;
  color: #3a424d;
}
.tray-icon .glyph { width: 16px; height: 16px; }
.taskbar-tray button {
  min-width: 78px !important; height: 36px; padding: 0 8px !important;
  border: 0; border-radius: 6px;
  color: var(--win11-ink) !important; background: transparent;
  display: grid; align-content: center; gap: 0; line-height: 1.2;
}
.taskbar-tray button:hover { background: rgba(0, 0, 0, .07); }
.tb-date, .tb-time { display: block; text-align: right; font-variant-numeric: tabular-nums; }
.tb-date { font-size: 11px; color: var(--win11-muted); }
.tb-time { font-size: 12px; font-weight: 600; }

/* —— 开始菜单：Win11 居中浮层 —— */
.start-menu {
  position: absolute; z-index: 60;
  left: 50%; bottom: 56px;
  transform: translateX(-50%);
  width: min(520px, calc(100vw - 24px));
  height: min(624px, calc(100vh - 68px));
  display: flex; flex-direction: column; gap: 4px;
  padding: 26px 26px 14px;
  color: var(--win11-ink);
  background: rgba(246, 248, 251, .9);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 12px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 0, 0, .06);
  backdrop-filter: blur(30px) saturate(1.5);
  overflow: hidden;
  transform-origin: bottom center;
  animation: start-pop .2s cubic-bezier(.15, .9, .25, 1);
}
@keyframes start-pop {
  from { opacity: 0; transform: translateX(-50%) translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
.start-search {
  display: flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 14px; margin-bottom: 16px;
  border-radius: 19px; background: #fff;
  border: 1px solid #d9dee5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.start-search:focus-within {
  border-color: var(--win11-accent);
  box-shadow: 0 0 0 2px rgba(0, 103, 192, .16);
}
.start-search .glyph { width: 16px; height: 16px; color: #6b7480; }
.start-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 13px; color: var(--win11-ink);
}
.start-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 10px 2px 8px;
}
.start-section-head strong { font-size: 13px; font-weight: 600; }
.start-allapps {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; border: 0; border-radius: 5px;
  background: #e7ebf0; color: #3a424d; font-size: 11px;
}
.start-allapps:hover { background: #dde2e8; }
.start-allapps i { font-style: normal; font-size: 13px; line-height: 1; }
.start-pinned {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
}
.start-pinned button {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  min-height: 0; padding: 12px 4px 10px;
  border: 0; border-radius: 7px;
  background: transparent; color: var(--win11-ink);
  text-align: center;
}
.start-pinned button:hover { background: rgba(0, 0, 0, .05); }
.start-pinned button.is-hidden,
.start-reco button.is-hidden,
.start-section-head.is-hidden { display: none !important; }
.pin-icon {
  width: 40px; height: 40px; display: grid; place-items: center;
  color: #fff; border-radius: 9px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .14);
}
.pin-icon .glyph { width: 21px; height: 21px; }
.start-pinned strong {
  max-width: 100%; font-size: 12px; font-weight: 400;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.start-reco { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.start-reco button {
  display: flex; align-items: center; gap: 10px;
  min-height: 0; padding: 9px 10px;
  border: 0; border-radius: 7px;
  background: transparent; color: var(--win11-ink); text-align: left;
}
.start-reco button:hover { background: rgba(0, 0, 0, .05); }
.reco-icon {
  width: 32px; height: 32px; flex: 0 0 auto;
  display: grid; place-items: center;
  color: #fff; border-radius: 7px;
}
.reco-icon .glyph { width: 17px; height: 17px; }
.reco-text { min-width: 0; display: grid; gap: 1px; }
.reco-text strong {
  font-size: 12px; font-weight: 500;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.reco-text small {
  color: var(--win11-muted); font-size: 10px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.start-empty { padding: 24px 0; text-align: center; color: var(--win11-muted); font-size: 12px; }
.start-foot {
  margin-top: auto; padding-top: 10px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, .08);
  background: transparent;
}
.start-user {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border: 0; border-radius: 6px;
  background: transparent; color: var(--win11-ink); font-size: 13px;
}
.start-user:hover { background: rgba(0, 0, 0, .05); }
.start-user .start-avatar {
  width: 32px; height: 32px; margin: 0;
  font-size: 13px; border-radius: 50%;
  color: #fff; background: linear-gradient(160deg, #3d8fd4, #0f6cbd);
  display: grid; place-items: center; font-weight: 600;
}
.start-power {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: #3a424d;
}
.start-power:hover { background: rgba(0, 0, 0, .06); color: #1b1b1b; }
.start-power .glyph { width: 18px; height: 18px; }

/* —— 桌面右键菜单 —— */
.desktop-menu {
  position: fixed; z-index: 90;
  width: 232px; padding: 6px;
  background: rgba(248, 249, 252, .92);
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 10px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .26), 0 0 0 1px rgba(0, 0, 0, .05);
  backdrop-filter: blur(24px) saturate(1.4);
  transform-origin: top left;
  animation: ctx-pop .12s ease-out;
}
@keyframes ctx-pop {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}
.desktop-menu[hidden] { display: none !important; }
.desktop-menu button {
  width: 100%; display: flex; align-items: center; gap: 11px;
  padding: 8px 12px;
  border: 0; border-radius: 6px;
  background: transparent; color: #252a31;
  font-size: 13px; text-align: left;
}
.desktop-menu button .glyph { width: 16px; height: 16px; color: #5c6370; }
.desktop-menu button:hover { background: var(--win11-accent-soft); color: #0b4a8c; }
.desktop-menu button:hover .glyph { color: var(--win11-accent); }
.ctx-sep { height: 1px; margin: 5px 10px; background: rgba(0, 0, 0, .1); }

/* —— 模态层：Win11 暗色亚克力遮罩 —— */
.os-desktop .modal-root {
  z-index: 100;
  background: rgba(0, 0, 0, .38);
  backdrop-filter: blur(2px);
}
.os-desktop .modal-dialog {
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .32);
  overflow: hidden;
}

/* —— 通知：Win11 Toast —— */
.toast-region {
  right: 14px; bottom: 58px; left: auto;
  gap: 10px;
}
.toast {
  width: 344px; max-width: calc(100vw - 28px);
  padding: 13px 15px;
  color: var(--win11-ink);
  background: rgba(250, 251, 253, .94);
  border: 1px solid rgba(255, 255, 255, .5);
  border-left: 0; border-radius: 10px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .22), 0 0 0 1px rgba(0, 0, 0, .05);
  backdrop-filter: blur(22px) saturate(1.4);
  font-size: 13px; line-height: 1.5;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.toast-leave { opacity: 0; transform: translateX(26px); }
.toast-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 5px; color: var(--win11-muted); font-size: 12px;
}
.toast-head .glyph { width: 15px; height: 15px; color: var(--win11-accent); }
.toast-head strong { color: #252a31; font-size: 12.5px; font-weight: 600; }
.toast-head span { margin-left: auto; font-size: 11px; }
.toast p { margin: 0; color: #333941; }
.toast.error .toast-head .glyph { color: #c42b1c; }

/* —— 小屏适配 —— */
@media (max-width: 1180px) {
  .taskbar-widget span { display: none; }
  .taskbar-widget { max-width: none; gap: 6px; }
}
@media (max-width: 760px) {
  .desktop-icons {
    top: 14px; left: 10px; right: 10px; bottom: 56px; width: auto;
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: 86px;
    justify-items: center;
  }
  .desktop-icons button { width: 100%; max-width: 84px; }
  .os-window, .os-window.maximized {
    border-radius: 0; border-width: 0;
  }
  .os-window .win-resize { display: none !important; }
  .taskbar-widget { display: none; }
  .taskbar-side { flex: 0 0 0; }
  .taskbar-center { flex: 1 1 auto; justify-content: center; }
  .tray-tag { display: none; }
  .tb-date { display: none; }
  .taskbar-tray button { min-width: 52px !important; }
  .taskbar-tray { padding: 0 2px; gap: 0; }
  .start-menu {
    left: 8px; right: 8px; bottom: 54px;
    width: auto; height: min(600px, calc(100vh - 66px));
    padding: 20px 16px 12px;
    transform: none;
    animation: start-pop-mobile .18s ease;
  }
  @keyframes start-pop-mobile {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
  .start-pinned { grid-template-columns: repeat(4, 1fr); }
  .pin-icon { width: 36px; height: 36px; }
  .toast-region { left: 10px; right: 10px; bottom: 56px; }
  .toast { width: auto; max-width: none; }
}

/* 旧皮肤 .start-menu nav/footer 规则特异性修正（新结构沿用了 nav/footer 元素） */
.start-menu .start-pinned,
.start-menu nav.start-pinned {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px; padding: 0;
}
.start-menu .start-pinned button,
.start-menu nav.start-pinned button {
  min-height: 0;
  display: flex; flex-direction: column; align-items: center;
  grid-template-columns: none;
  gap: 7px; padding: 12px 4px 10px;
  border: 0; border-radius: 7px;
  background: transparent; color: var(--win11-ink);
  text-align: center;
}
.start-menu .start-pinned button:hover,
.start-menu nav.start-pinned button:hover { background: rgba(0, 0, 0, .05); }
.start-menu .start-pinned button > span,
.start-menu nav.start-pinned button > span {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0; border-radius: 9px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .14);
}
.start-menu .start-pinned button strong,
.start-menu nav.start-pinned button strong {
  font-size: 12px; font-weight: 400;
  max-width: 100%;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.start-menu nav.start-pinned button > span.pin-icon.icon-case    { background: linear-gradient(160deg, #4a90d9, #0f6cbd); }
.start-menu nav.start-pinned button > span.pin-icon.icon-search  { background: linear-gradient(160deg, #5b8def, #3b6fd4); }
.start-menu nav.start-pinned button > span.pin-icon.icon-files   { background: linear-gradient(160deg, #e8a33d, #c97a12); }
.start-menu nav.start-pinned button > span.pin-icon.icon-browser { background: linear-gradient(160deg, #2f9e8f, #0f7a6c); }
.start-menu nav.start-pinned button > span.pin-icon.icon-overlay { background: linear-gradient(160deg, #8b6fd4, #6247b8); }
.start-menu nav.start-pinned button > span.pin-icon.icon-notes   { background: linear-gradient(160deg, #6b7c8c, #4a5a68); }

.start-menu > footer.start-foot,
.start-menu footer.start-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: auto; padding: 10px 0 0;
  border: 0; border-top: 1px solid rgba(0, 0, 0, .08);
  background: transparent;
}
.start-menu footer.start-foot button {
  min-height: 0; border: 0; background: transparent;
  color: var(--win11-ink);
}

/* —— 显示缩放：模拟 Win11 高分屏 DPI（1080p 100% / 2K 125%） —— */
#bootScreen, #loginScreen, #osDesktop { zoom: 1; }
@media (min-width: 1800px) {
  #bootScreen, #loginScreen, #osDesktop { zoom: 1.15; }
}
@media (min-width: 2304px) {
  #bootScreen, #loginScreen, #osDesktop { zoom: 1.25; }
}

@media (prefers-reduced-motion: reduce) {
  .boot-spinner i, .os-window:not([hidden]), .start-menu,
  .desktop-menu, .desktop-icons.icons-refresh button { animation: none !important; }
}

/* —— v16：任务栏全屏按钮 + 桌面图标自由摆放 —— */
.taskbar-tray .tray-fs {
  width: 32px; min-width: 32px !important; height: 32px; padding: 0 !important;
  display: grid; place-items: center;
  border: 0; border-radius: 6px;
  color: var(--win11-ink) !important; background: transparent;
}
.taskbar-tray .tray-fs .glyph { width: 16px; height: 16px; }
.taskbar-tray .tray-fs:hover { background: rgba(0, 0, 0, .07); }
.taskbar-tray .tray-fs.is-fullscreen { background: rgba(0, 103, 192, .14); }

/* 图标工作区铺满桌面（JS 按像素写入行列网格），原纵排观感由默认槽位保持 */
.desktop-icons {
  right: 12px;
  grid-auto-flow: row;
  user-select: none;
  -webkit-user-select: none;
}
.desktop-icons button { touch-action: none; }
.desktop-icons button.is-drag-source {
  opacity: .35;
  background: rgba(0, 103, 192, .22);
  border-color: rgba(130, 191, 255, .7);
}
.icon-drop-slot {
  width: 78px; height: 84px;
  border-radius: 4px;
  border: 1px solid rgba(130, 191, 255, .95);
  background: rgba(0, 103, 192, .25);
  pointer-events: none;
}
.icon-drag-ghost {
  position: fixed; z-index: 90;
  width: 78px; height: 84px;
  display: flex; flex-direction: column; align-items: center;
  gap: 5px; padding-top: 2px;
  border-radius: 4px;
  border: 1px solid rgba(130, 191, 255, .95);
  background: rgba(15, 84, 166, .55);
  color: #fff; pointer-events: none;
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .4);
}
.icon-drag-ghost .desktop-icon { width: 42px; height: 42px; border-radius: 7px; }
.icon-drag-ghost .glyph { width: 22px; height: 22px; }
.icon-drag-ghost strong {
  max-width: 74px;
  font-size: 12px; font-weight: 400; line-height: 1.25;
  text-align: center; color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .95), 0 0 10px rgba(0, 0, 0, .7);
}
@media (max-width: 760px) {
  .taskbar-tray .tray-fs { width: 30px; min-width: 30px !important; }
}
