﻿:root {
  --window: #edf0f4;
  --shell: #f6f8fb;
  --surface: #ffffff;
  --sunken: #f3f5f8;
  --border: #e1e6ed;
  --border-strong: #c8d1de;
  --ink: #253349;
  --muted: #68758a;
  --subtle: #8e99a8;
  --navy: #17345e;
  --navy-hover: #204576;
  --cyan: #169db9;
  --cyan-dark: #0d748c;
  --cyan-soft: #e8f8fb;
  --green: #27834e;
  --green-soft: #eaf7ef;
  --green-border: #a8d9b7;
  --red: #b6424b;
  --red-soft: #fff0f1;
  --warning: #8a5a08;
  --shadow: 0 14px 40px rgba(28, 45, 72, .10);
  --card-shadow: 0 8px 24px rgba(29, 46, 73, .08);
  --motion: 220ms cubic-bezier(.4, 0, .2, 1);
  font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--window);
}

* { box-sizing: border-box; }
html, body { width: 100%; min-width: 960px; height: 100%; margin: 0; overflow: hidden; }
body { background: var(--window); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; transition: background var(--motion), color var(--motion), border-color var(--motion), opacity var(--motion), transform 80ms cubic-bezier(.4, 0, .6, 1); }
button:hover:not(:disabled), a:hover { transform: translateY(-1px); }
button:active:not(:disabled), a:active { transform: scale(.99); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.desktop-advisory { display: none; }
.demo-frame { width: 100vw; height: 100vh; padding: 10px; background: var(--window); }
.titlebar { position: relative; z-index: 12; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 38px; padding: 0 10px 0 14px; background: #f8f9fb; border: 1px solid var(--border); border-bottom: 0; border-radius: 18px 18px 0 0; color: var(--navy); }
.titlebar-brand { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.titlebar-brand img { width: 18px; height: 18px; }
.titlebar-meta { display: flex; align-items: center; justify-content: center; gap: 8px; }
.demo-badge, .preset-badge { display: inline-flex; align-items: center; height: 23px; padding: 0 10px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.demo-badge { color: #0c7188; background: #e6f7fa; border: 1px solid #b8e3eb; text-transform: uppercase; }
.preset-badge { color: #647187; background: #f0f2f5; border: 1px solid #e0e4ea; }
.window-controls { display: flex; justify-content: flex-end; gap: 18px; color: #6d7887; font-size: 14px; }

.workspace { --rail-width: 64px; --records-width: 250px; --ai-width: 390px; position: relative; display: grid; grid-template-columns: var(--rail-width) var(--records-width) minmax(430px, 1fr) var(--ai-width); height: calc(100vh - 88px); min-height: 0; overflow: hidden; background: var(--shell); border: 1px solid var(--border); border-bottom: 0; transition: grid-template-columns var(--motion); }
.rail, .record-panel, .editor-panel, .ai-panel { min-width: 0; min-height: 0; transition: opacity var(--motion), filter var(--motion), transform var(--motion), box-shadow var(--motion), outline-color var(--motion); }
.rail { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 14px 9px; background: var(--surface); border-right: 1px solid var(--border); }
.brand-button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--navy); box-shadow: 0 5px 12px rgba(23,52,94,.22); }
.brand-button img { width: 24px; height: 24px; filter: brightness(0) invert(1); }
.rail-group { display: grid; gap: 8px; }
.rail-bottom { margin-top: auto; }
.rail-button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #6b7483; background: transparent; }
.rail-button.active { color: #fff; background: var(--navy); box-shadow: 0 4px 10px rgba(23,52,94,.20); }
.rail-button:not(.active):hover { background: #edf1f6; color: var(--navy); }
.icon { position: relative; display: block; width: 18px; height: 18px; border: 1.7px solid currentColor; border-radius: 2px; }
.icon-records::before, .icon-records::after { position: absolute; left: 3px; right: 3px; height: 1px; background: currentColor; content: ""; }
.icon-records::before { top: 5px; box-shadow: 0 4px currentColor; }
.icon-records::after { top: 13px; right: 7px; }
.icon-idea { border-radius: 50% 50% 45% 45%; }
.icon-idea::after { position: absolute; left: 4px; right: 4px; bottom: -4px; height: 2px; border-top: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor; content: ""; }
.icon-task { border: 0; border-radius: 0; transform: rotate(-8deg); }
.icon-task::before { position: absolute; width: 15px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); content: ""; }
.icon-maintenance { border-radius: 50%; }
.icon-maintenance::before, .icon-maintenance::after { position: absolute; inset: 7px -3px; height: 2px; background: currentColor; transform: rotate(45deg); content: ""; }
.icon-maintenance::after { transform: rotate(-45deg); }
.icon-trash { border-radius: 2px 2px 5px 5px; }
.icon-trash::before { position: absolute; left: -3px; right: -3px; top: -4px; height: 2px; background: currentColor; content: ""; }
.icon-collapse { border: 0; }
.icon-collapse::before { position: absolute; width: 9px; height: 9px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translate(5px,4px) rotate(45deg); content: ""; }

.record-panel { display: flex; flex-direction: column; padding: 22px 18px; background: var(--surface); border-right: 1px solid var(--border); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; }
.eyebrow { margin: 0 0 5px; color: #8190a2; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h2 { margin: 0; color: var(--ink); font-size: 20px; line-height: 1.2; }
.add-button { width: 32px; height: 32px; border-radius: 8px; color: var(--navy); background: #f0f3f7; font-size: 19px; }
.record-tabs, .editor-tabs { display: flex; align-items: center; gap: 4px; }
.record-tabs { margin: 20px 0 22px; padding: 4px; background: #f2f4f7; border-radius: 9px; }
.record-tabs button, .editor-tabs button { flex: 1; padding: 7px 12px; border-radius: 7px; color: #738094; background: transparent; font-size: 12px; }
.record-tabs button.selected, .editor-tabs button.selected { color: var(--navy); background: var(--surface); box-shadow: 0 2px 7px rgba(31,48,74,.08); font-weight: 700; }
.date-label { margin: 0 0 8px; color: #8a96a6; font-size: 11px; }
.record-row { display: flex; flex-direction: column; gap: 5px; width: 100%; padding: 12px; text-align: left; color: var(--ink); background: #f6f8fa; border: 1px solid #e8ebf0; border-radius: 10px; }
.record-row.selected { background: #eff4fa; border-color: #d8e2ef; }
.record-row span { overflow: hidden; text-overflow: ellipsis; font-size: 13px; font-weight: 700; white-space: nowrap; }
.record-row small { color: #8a96a6; font-size: 10px; }
.record-context { display: flex; align-items: flex-start; gap: 9px; margin-top: auto; padding: 12px; color: #657287; background: #f5f7fa; border-radius: 10px; }
.context-dot { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: #83a0c6; }
.record-context p { margin: 0; font-size: 11px; line-height: 1.5; }
.record-context small { color: #909aaa; }

.editor-panel { position: relative; z-index: 2; display: flex; flex-direction: column; background: var(--surface); }
.editor-header { display: grid; grid-template-columns: 150px 1fr 150px; align-items: center; min-height: 62px; padding: 0 24px; border-bottom: 1px solid var(--border); }
.editor-tabs { padding: 4px; background: #f3f5f8; border-radius: 9px; }
.save-slot { display: flex; justify-content: center; }
.save-indicator { display: inline-flex; align-items: center; min-height: 30px; padding: 6px 11px; border-radius: 999px; color: #667286; background: #f2f4f7; font-size: 11px; font-weight: 650; white-space: nowrap; transition: color var(--motion), background var(--motion), transform var(--motion); }
.save-indicator.editing { color: #215da7; background: #eaf2ff; }
.save-indicator.saved { color: #207447; background: #e9f7ef; }
.save-indicator.pulse { transform: scale(1.04); }
.editor-content { display: flex; flex: 1; flex-direction: column; min-height: 0; padding: 30px clamp(28px, 4vw, 58px) 20px; }
.title-field input { width: 100%; padding: 0 0 13px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid #e6e9ee; outline: 0; font-size: clamp(24px, 2vw, 31px); font-weight: 700; }
.title-field input::placeholder, .body-field textarea::placeholder { color: #a4adba; }
.body-field { display: flex; flex: 1; min-height: 0; }
.body-field textarea { flex: 1; width: 100%; min-height: 0; padding: 18px 0; resize: none; color: #354359; background: transparent; border: 0; outline: 0; font-size: clamp(13px, .95vw, 15px); line-height: 1.8; }
.editor-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid #edf0f4; color: #7c8798; font-size: 11px; }
.editor-meta label { display: flex; align-items: center; gap: 9px; }
.editor-meta input { padding: 4px 7px; color: #657187; background: #f5f7f9; border: 1px solid #e4e8ee; border-radius: 6px; }
.text-button { color: #617087; background: transparent; font-size: 11px; }

.ai-panel { position: relative; z-index: 3; display: flex; flex-direction: column; min-height: 0; overflow: auto; padding: 20px 19px 16px; background: var(--surface); border-left: 1px solid var(--border); }
.ai-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.ai-header h2 { font-size: 18px; }
.primary-button { flex: 0 0 auto; min-width: 148px; padding: 9px 12px; color: #fff; background: var(--navy); border-radius: 8px; font-size: 11px; font-weight: 700; }
.primary-button:hover:not(:disabled) { background: var(--navy-hover); }
.primary-button:disabled { color: #9aa4b2; background: #edf0f4; }
.truth-note { align-self: flex-start; margin: 10px 0 0; padding: 5px 8px; color: #657287; background: #f3f5f7; border: 1px solid #e4e8ed; border-radius: 6px; font-size: 9px; }
.ai-empty { display: grid; place-items: center; margin: auto 0; padding: 36px 10px; color: #6e7a8d; text-align: center; }
.spark { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 15px; color: #6882a6; background: #eff3f8; border-radius: 50%; font-size: 20px; }
.ai-empty p { margin: 0; font-size: 12px; line-height: 1.7; }
.ai-empty small { margin-top: 10px; color: #9aa3b0; font-size: 9px; }
.ai-results { padding-top: 2px; }
.result-section { padding: 15px 0; border-bottom: 1px solid #e8ebf0; opacity: 0; transform: translateY(4px); animation: result-in 160ms cubic-bezier(.2,.8,.2,1) forwards; }
.result-section:nth-child(2) { animation-delay: 100ms; }
.result-section:nth-child(3) { animation-delay: 200ms; }
.result-section h3, .task-context h3 { margin: 0 0 9px; color: #334158; font-size: 12px; }
.result-section p, .result-section li { color: #4b5a71; font-size: 10.5px; line-height: 1.65; }
.result-section p { margin: 0; }
.result-section ul { display: grid; gap: 5px; margin: 0; padding-left: 17px; }
.candidate-card { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; padding: 9px 10px; background: #f2f3f5; border: 1px solid #e1e4e9; border-radius: 9px; transition: background var(--motion), border-color var(--motion), transform var(--motion), opacity var(--motion); }
.candidate-card strong { min-width: 0; overflow: hidden; color: #3a485d; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.candidate-card[data-status="confirmed"] { background: var(--green-soft); border-color: var(--green-border); }
.candidate-card[data-status="confirmed"] strong { color: #216b41; }
.muted-candidate { opacity: .68; }
.candidate-actions { display: flex; flex: 0 0 auto; gap: 5px; }
.candidate-button { display: grid; place-items: center; width: 28px; height: 26px; padding: 0; color: #68758a; background: #fff; border: 1px solid #dce1e7; border-radius: 6px; font-size: 15px; }
.candidate-button.accept:not(:disabled):hover { color: #fff; background: var(--green); border-color: var(--green); }
.candidate-button.reject:not(:disabled):hover { color: #fff; background: var(--red); border-color: var(--red); }
.candidate-card[data-status="confirmed"] .candidate-button.accept { color: #fff; background: var(--green); border-color: var(--green); }
.task-context { padding-top: 15px; }
.task-empty { margin: 0; color: #919ba9; font-size: 10px; }
.task-item { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 9px 10px; background: #f7f9fb; border: 1px solid #e1e6ed; border-radius: 9px; opacity: 0; transform: translateY(5px); animation: task-in 220ms cubic-bezier(.2,.8,.2,1) forwards; }
.task-check { display: grid; place-items: center; width: 20px; height: 20px; color: #fff; background: var(--navy); border-radius: 6px; font-size: 11px; }
.task-item strong { overflow: hidden; color: #334158; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.task-status { color: #7c8798; font-size: 9px; }

.fact-footer { position: relative; z-index: 12; display: flex; align-items: center; justify-content: center; gap: 8px; height: 30px; padding: 0 14px; color: #7a8595; background: #f8f9fb; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 18px 18px; font-size: 9px; }

.overlay { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(232, 237, 243, .76); backdrop-filter: blur(2px); }
.intro-card, .complete-card { width: min(520px, calc(100vw - 48px)); padding: 34px 38px; text-align: center; background: #fff; border: 1px solid #dbe2eb; border-radius: 18px; box-shadow: var(--shadow); }
.intro-mark { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--navy); font-size: 13px; font-weight: 750; }
.intro-mark img { width: 25px; height: 25px; }
.intro-kicker { margin: 0 0 10px; color: var(--cyan-dark); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.intro-card h1 { margin: 0; color: var(--ink); font-size: 31px; }
.intro-path, .complete-path { margin: 20px 0 12px; color: var(--navy); font-size: 12px; font-weight: 750; }
.intro-path span, .complete-path span { margin: 0 5px; color: #9aa6b4; }
.intro-copy { margin: 0; color: #667388; font-size: 13px; line-height: 1.7; }
.intro-fact { display: flex; align-items: center; gap: 10px; margin: 22px 0; padding: 12px 14px; text-align: left; background: var(--cyan-soft); border: 1px solid #c8eaf0; border-radius: 10px; }
.intro-fact > span { display: grid; place-items: center; flex: 0 0 auto; width: 20px; height: 20px; color: #fff; background: var(--cyan); border-radius: 50%; font-family: Georgia, serif; font-size: 12px; font-weight: 700; }
.intro-fact p { margin: 0; color: #44616a; font-size: 11px; line-height: 1.55; }
.intro-cta, .guide-action { min-width: 132px; padding: 11px 18px; color: #fff; background: var(--cyan-dark); border-radius: 8px; font-size: 12px; font-weight: 750; }
.intro-cta:hover, .guide-action:hover { background: #095f74; }
.intro-card > small { display: block; margin-top: 16px; color: #919baa; font-size: 9px; }

.guide-shade { position: fixed; z-index: 18; inset: 48px 10px 40px; pointer-events: none; background: rgba(23,52,94,.045); }
.guided-active .guided-dim { opacity: .42; filter: saturate(.75); }
.guided-active .guided-dim.contains-guided-target { opacity: 1; filter: none; }
.guided-zone.is-guided-target { position: relative; z-index: 22; opacity: 1; filter: none; outline: 2px solid var(--cyan); outline-offset: -3px; box-shadow: inset 0 0 0 5px rgba(22,157,185,.06); }
#candidateTarget.is-guided-target { z-index: 23; outline: 2px solid var(--cyan); outline-offset: 2px; box-shadow: 0 0 0 5px rgba(22,157,185,.08); }
#analyzeButton.is-guided-target { position: relative; z-index: 23; outline: 2px solid var(--cyan); outline-offset: 3px; }
#taskContext.is-guided-target { position: relative; z-index: 23; outline: 2px solid var(--cyan); outline-offset: 5px; border-radius: 8px; }
.guide-card { position: fixed; z-index: 30; width: 286px; padding: 18px 20px; background: #fff; border: 1px solid #c5e6ec; border-radius: 13px; box-shadow: 0 10px 28px rgba(28,58,78,.14); }
.guide-card::before { position: absolute; top: var(--arrow-top, 30px); left: var(--arrow-left, -7px); width: 12px; height: 12px; background: #fff; border-left: 1px solid #c5e6ec; border-bottom: 1px solid #c5e6ec; transform: rotate(45deg); content: ""; }
.guide-card.arrow-right::before { left: auto; right: -7px; border: 0; border-top: 1px solid #c5e6ec; border-right: 1px solid #c5e6ec; }
.guide-progress { margin: 0 0 8px; color: var(--cyan-dark); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.guide-card h2 { margin: 0 0 9px; font-size: 17px; }
.guide-card > p:not(.guide-progress) { margin: 0; color: #5f6e81; font-size: 11px; line-height: 1.65; }
.guide-action { margin-top: 15px; padding: 9px 14px; }

.complete-overlay { background: rgba(232,237,243,.80); }
.complete-card { width: min(610px, calc(100vw - 48px)); padding: 30px 40px; }
.complete-check { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 14px; color: #fff; background: var(--green); border-radius: 50%; font-size: 21px; }
.complete-card h2 { font-size: 25px; }
.complete-card > p:not(.intro-kicker):not(.complete-path) { max-width: 480px; margin: 0 auto; color: #637187; font-size: 12px; line-height: 1.7; }
.principle { display: grid; gap: 5px; margin: 20px 0; padding: 13px; color: #355665; background: var(--cyan-soft); border: 1px solid #c6e7ed; border-radius: 10px; }
.principle span { color: #6b7f87; font-size: 9px; letter-spacing: .08em; }
.principle strong { color: #1d6675; font-size: 16px; }
.principle small { font-size: 10px; }
.complete-actions { display: flex; justify-content: center; gap: 10px; }
.secondary-button, .link-button { display: inline-flex; align-items: center; justify-content: center; min-width: 126px; padding: 10px 15px; border-radius: 8px; font-size: 11px; font-weight: 700; text-decoration: none; }
.secondary-button { color: var(--navy); background: #eef2f7; border: 1px solid #d7dee8; }
.link-button { color: #fff; background: var(--navy); }
.link-button.is-pending { color: #8993a1; background: #edf0f4; pointer-events: none; }
.pdf-pending { display: block; margin-top: 9px; color: #9aa3af; font-size: 9px; }

@keyframes result-in { to { opacity: 1; transform: translateY(0); } }
@keyframes task-in { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1360px) {
  .workspace { --rail-width: 60px; --records-width: 230px; grid-template-columns: var(--rail-width) var(--records-width) minmax(450px, 1fr); }
  .ai-panel { position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(388px, 34vw); min-width: 340px; border: 1px solid var(--border); border-radius: 13px; box-shadow: var(--card-shadow); opacity: .98; }
  .editor-content { padding-right: min(36vw, 420px); }
  .preset-badge { display: none; }
}

@media (max-width: 1080px) {
  .workspace { --rail-width: 58px; --records-width: 210px; grid-template-columns: var(--rail-width) var(--records-width) minmax(420px, 1fr); }
  .record-panel { padding: 18px 14px; }
  .ai-panel { width: 340px; min-width: 340px; }
  .editor-header { grid-template-columns: 135px 1fr 90px; padding: 0 18px; }
  .editor-content { padding-left: 28px; padding-right: 360px; }
  .titlebar-meta { transform: translateX(20px); }
  .fact-footer { justify-content: flex-start; overflow: hidden; white-space: nowrap; }
}

@media (max-width: 959px) {
  html, body { min-width: 0; overflow: hidden; }
  .demo-frame { display: none; }
  .desktop-advisory { display: grid; place-items: center; width: 100vw; height: 100vh; padding: 30px; color: var(--navy); text-align: center; background: var(--window); font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  button:hover:not(:disabled), a:hover, button:active:not(:disabled), a:active { transform: none; }
}



/* V1.2 final-candidate additions */
.free-explore-tools { position: absolute; top: 4px; right: 12px; z-index: 4; display: flex; align-items: center; gap: 7px; }
.free-explore-tools button, .free-explore-tools a { padding: 5px 9px; color: var(--navy); background: #eef2f7; border: 1px solid #d8e0ea; border-radius: 7px; font-size: 9px; font-weight: 700; text-decoration: none; }
.free-explore-badge { padding: 5px 9px; color: #0d748c; background: var(--cyan-soft); border: 1px solid #b8e3eb; border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.free-explore-active .window-controls { visibility: hidden; }
.free-explore-active .titlebar-meta { transform: translateX(-120px); }
.icon-settings { border-radius: 50%; }
.icon-settings::before { position: absolute; inset: 5px; border: 1.7px solid currentColor; border-radius: 50%; content: ""; }
.icon-profile { border-radius: 50%; }
.icon-profile::before { position: absolute; left: 5px; top: 3px; width: 6px; height: 6px; border: 1.7px solid currentColor; border-radius: 50%; content: ""; }
.icon-profile::after { position: absolute; left: 3px; bottom: 2px; width: 9px; height: 5px; border: 1.7px solid currentColor; border-radius: 8px 8px 3px 3px; content: ""; }
.icon-collapse.reverse::before { transform: translate(2px,4px) rotate(225deg); }
.free-record-list { display: grid; gap: 14px; margin-top: 14px; overflow: auto; }
.free-record-list section { display: grid; gap: 7px; }
.free-record-list .record-row { margin: 0; }
.editor-actions { display: flex; justify-content: flex-end; }
.compact-control { width: 30px; height: 30px; border: 1px solid var(--border); background: #f5f7fa; }
.ai-header-actions { display: flex; align-items: center; gap: 7px; }
.truth-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.reserved-chip { margin-top: 10px; padding: 5px 8px; color: #657287; background: #f7f8fa; border: 1px dashed #cbd3de; border-radius: 6px; font-size: 9px; }
.reserved-chip:disabled { opacity: .7; }
.ai-free-note { margin: 10px 0 0; padding: 9px 10px; color: #496772; background: var(--cyan-soft); border: 1px solid #c8e9ef; border-radius: 8px; font-size: 10px; line-height: 1.55; }
.workspace.record-list-collapsed { --records-width: 0px; }
.workspace.record-list-collapsed .record-panel { padding-left: 0; padding-right: 0; opacity: 0; pointer-events: none; overflow: hidden; border-right: 0; }
.workspace.ai-collapsed { --ai-width: 0px; }
.workspace.ai-collapsed .ai-panel { opacity: 0; pointer-events: none; transform: translateX(105%); border-left: 0; padding-left: 0; padding-right: 0; }
.workspace[data-view="trash"], .workspace[data-view="maintenance"] { grid-template-columns: var(--rail-width) minmax(0, 1fr) !important; }
.workspace[data-view="trash"] .record-panel, .workspace[data-view="trash"] .editor-panel, .workspace[data-view="trash"] .ai-panel,
.workspace[data-view="maintenance"] .record-panel, .workspace[data-view="maintenance"] .editor-panel, .workspace[data-view="maintenance"] .ai-panel { display: none; }
.explore-page { grid-column: 2 / -1; min-width: 0; overflow: auto; padding: 26px clamp(28px, 5vw, 76px); background: #f8fafc; }
.explore-page-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; color: #7a8799; font-size: 10px; }
.explore-view { max-width: 860px; margin: 0 auto; }
.explore-view h1 { margin: 5px 0 22px; font-size: 27px; }
.explore-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.explore-tabs button { padding: 7px 13px; color: #68758a; background: #eef2f6; border-radius: 7px; font-size: 10px; }
.explore-tabs button.selected { color: #fff; background: var(--navy); }
.empty-state-card { display: grid; place-items: center; min-height: 300px; padding: 40px; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--card-shadow); }
.empty-state-card .empty-icon { width: 28px; height: 28px; color: #8d99a8; }
.empty-state-card h2 { margin: 18px 0 8px; font-size: 18px; }
.empty-state-card p { max-width: 440px; margin: 0; color: #748094; font-size: 11px; line-height: 1.7; }
.maintenance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.maintenance-grid article { padding: 22px; background: #fff; border: 1px solid var(--border); border-radius: 13px; box-shadow: var(--card-shadow); }
.maintenance-grid h2 { margin: 0 0 12px; font-size: 14px; }
.maintenance-grid strong { color: var(--navy); font-size: 12px; }
.maintenance-grid p { margin: 10px 0 0; color: #748094; font-size: 10px; line-height: 1.7; }
.maintenance-feedback { margin-top: 13px; color: #68758a; font-size: 10px; }
.free-primary-button { min-width: 150px; padding: 10px 15px; color: #fff; background: var(--cyan-dark); border-radius: 8px; font-size: 11px; font-weight: 750; }
.tertiary-link { display: inline-flex; align-items: center; justify-content: center; min-width: 126px; padding: 10px 15px; color: var(--navy); background: transparent; border: 1px solid #d7dee8; border-radius: 8px; font-size: 11px; font-weight: 700; text-decoration: none; }
.complete-actions { flex-wrap: wrap; }
.planning-backdrop { position: fixed; z-index: 70; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(232,237,243,.82); backdrop-filter: blur(2px); }
.planning-dialog { width: min(430px, calc(100vw - 48px)); padding: 28px 30px; text-align: center; background: #fff; border: 1px solid #d9e1eb; border-radius: 16px; box-shadow: var(--shadow); }
.planning-tag { display: inline-flex; padding: 5px 9px; color: #0d748c; background: var(--cyan-soft); border-radius: 999px; font-size: 9px; font-weight: 800; }
.planning-dialog h2 { margin: 16px 0 10px; font-size: 22px; }
.planning-dialog p { margin: 0 0 20px; color: #68758a; font-size: 12px; line-height: 1.75; }
.planning-dialog p strong { display: block; color: var(--navy); }
.guide-card.guide-enter { animation: guide-card-in 300ms cubic-bezier(.2,.8,.2,1); }
@keyframes guide-card-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1360px) {
  .workspace.ai-collapsed .ai-panel { transform: translateX(calc(100% + 24px)); }
  .free-explore-active .titlebar-meta { transform: translateX(-150px); }
}
@media (max-width: 1180px) {
  .free-explore-badge { display: none; }
  .free-explore-active .titlebar-meta { visibility: hidden; }
}
