:root {
  color-scheme: light;
  --ink: #172334;
  --ink-soft: #59677a;
  --ink-faint: #8d99a8;
  --paper: #f7f8fa;
  --card: #ffffff;
  --line: #e4e9ef;
  --navy: #1d3048;
  --blue: #2f6fe4;
  --blue-soft: #eaf1ff;
  --teal: #168d83;
  --teal-soft: #e8f7f4;
  --amber: #b56d08;
  --amber-soft: #fff4dc;
  --purple: #7858b8;
  --purple-soft: #f1edfc;
  --red: #bd4f55;
  --red-soft: #fff0f0;
  --shadow-sm: 0 1px 2px rgba(26, 42, 63, 0.04), 0 5px 18px rgba(26, 42, 63, 0.035);
  --shadow-md: 0 12px 35px rgba(31, 52, 81, 0.09);
  --radius: 14px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { min-width: 1000px; background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 6%, rgba(229, 238, 255, 0.8), transparent 23rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(220, 227, 235, 0.85);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--navy);
  border-radius: 10px;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 5px 12px rgba(29, 48, 72, 0.23);
}

.brand-name, .brand-subtitle { display: block; }
.brand-name { font-size: 15px; font-weight: 750; letter-spacing: 0.04em; }
.brand-subtitle { margin-top: 2px; color: var(--ink-faint); font-size: 8px; font-weight: 750; letter-spacing: 0.18em; }

.workspace-context { display: flex; align-items: center; gap: 12px; }
.context-field { display: flex; align-items: center; gap: 8px; color: var(--ink-faint); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.context-field input { width: 188px; height: 34px; padding: 0 10px; color: var(--ink); background: #fbfcfd; border: 1px solid var(--line); border-radius: 8px; outline: none; font-family: var(--mono); font-size: 11px; }
.context-field-small input { width: 110px; }
.context-field input:focus { border-color: #99baf5; box-shadow: 0 0 0 3px var(--blue-soft); }

.workspace-body { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: calc(100vh - 76px); }

.sidebar {
  display: flex;
  flex-direction: column;
  padding: 42px 22px 24px;
  color: #d7e0ec;
  background: var(--navy);
}

.sidebar-intro { padding: 0 14px; }
.eyebrow { display: block; color: var(--ink-faint); font-size: 10px; font-weight: 800; letter-spacing: 0.16em; }
.sidebar .eyebrow { color: #8296b3; }
.sidebar h1 { margin: 18px 0 12px; color: #fff; font-family: Georgia, "Songti SC", serif; font-size: 28px; font-weight: 500; line-height: 1.22; letter-spacing: 0.01em; }
.sidebar h1 em { color: #96bbff; font-style: normal; }
.sidebar-intro p { max-width: 200px; margin: 0; color: #91a3ba; font-size: 12px; line-height: 1.7; }

.primary-nav { display: grid; gap: 7px; margin-top: 45px; }
.nav-item { display: grid; grid-template-columns: 31px minmax(0, 1fr) 17px; align-items: center; gap: 5px; min-height: 58px; padding: 8px 12px; color: #a9bad0; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 11px; transition: 160ms ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-item.is-active { color: #fff; background: rgba(100, 145, 221, 0.2); border-color: rgba(150, 190, 255, 0.18); box-shadow: inset 3px 0 0 #79a6fa; }
.nav-icon { display: grid; width: 25px; height: 25px; place-items: center; color: #8eb7ff; font-size: 20px; }
.nav-item strong, .nav-item small { display: block; }
.nav-item strong { font-size: 13px; font-weight: 750; }
.nav-item small { margin-top: 3px; color: #8397b2; font-size: 10px; }
.nav-item.is-active small { color: #afc5e6; }
.nav-arrow { color: #6581a3; font-size: 18px; }
.nav-item.is-active .nav-arrow { color: #a7c8ff; }

.sidebar-footer { margin-top: auto; padding: 20px 14px 0; border-top: 1px solid rgba(191, 211, 236, 0.12); }
.local-badge { display: flex; align-items: center; gap: 7px; color: #b9cae0; font-size: 10px; font-weight: 750; letter-spacing: 0.03em; }
.pulse-dot { display: inline-block; width: 7px; height: 7px; background: #5cc7a4; border-radius: 50%; box-shadow: 0 0 0 4px rgba(92, 199, 164, 0.12); }
.sidebar-footer p { margin: 11px 0 0; color: #7288a5; font-size: 10px; line-height: 1.65; }

.main-content { position: relative; width: min(1180px, calc(100vw - 270px)); padding: 50px 62px 78px; }
.global-status { position: fixed; top: 88px; right: 44px; z-index: 20; max-width: 350px; padding: 10px 14px; color: #fff; background: var(--navy); border-radius: 9px; box-shadow: var(--shadow-md); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(-7px); transition: 180ms ease; }
.global-status.is-visible { opacity: 1; transform: translateY(0); }
.global-status.is-error { background: var(--red); }

.view { animation: fade-up 180ms ease both; }
.view[hidden] { display: none; }
@keyframes fade-up { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.page-heading { margin-bottom: 34px; }
.page-heading h2 { margin: 10px 0 8px; color: var(--ink); font-family: Georgia, "Songti SC", serif; font-size: 41px; font-weight: 500; letter-spacing: -0.025em; }
.page-heading p { max-width: 630px; margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.heading-with-aside { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.heading-with-aside > .button { margin-top: 18px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 15px; border-radius: 8px; font-size: 12px; font-weight: 750; transition: 150ms ease; }
.button-primary { color: #fff; background: var(--blue); border: 1px solid var(--blue); box-shadow: 0 5px 13px rgba(47, 111, 228, 0.2); }
.button-primary:hover { background: #2360ca; border-color: #2360ca; transform: translateY(-1px); }
.button-ghost { color: var(--ink-soft); background: #fff; border: 1px solid var(--line); }
.button-ghost:hover { color: var(--blue); border-color: #a7c4f5; background: #f8fbff; }
.button-secondary { color: var(--navy); background: #f1f5f9; border: 1px solid #e3eaf2; }
.button-secondary:hover { background: #e6edf6; }
.button-danger { color: var(--red); background: var(--red-soft); border: 1px solid #f3d6d6; }
.button-wide { width: 100%; min-height: 45px; margin-top: 19px; }

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.search-box { display: flex; flex: 1; align-items: center; height: 42px; padding: 0 11px; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow-sm); }
.search-box:focus-within { border-color: #a4c1f3; box-shadow: 0 0 0 3px var(--blue-soft); }
.search-icon { margin-right: 8px; color: var(--ink-faint); font-size: 22px; line-height: 1; transform: rotate(-20deg); }
.search-box input { flex: 1; min-width: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 12px; }
.search-box input::placeholder { color: #a2adba; }
kbd { padding: 3px 6px; color: #9ba8b6; background: #f5f7f9; border: 1px solid #e6ebf0; border-radius: 4px; font-family: var(--mono); font-size: 9px; }
.select-box, .window-select { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 11px; color: var(--ink-faint); background: #fff; border: 1px solid var(--line); border-radius: 9px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.select-box select, .window-select select { padding: 0 2px; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 12px; font-weight: 650; }
.toolbar-count { min-width: 70px; color: var(--ink-faint); text-align: right; font-family: var(--mono); font-size: 10px; }

.asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.asset-card { position: relative; min-height: 180px; padding: 19px; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: 160ms ease; }
.asset-card:hover { border-color: #b9cef0; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.asset-card.is-component { border-style: dashed; }
.asset-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.asset-icon { display: grid; width: 39px; height: 39px; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 11px; font-size: 20px; }
.asset-category { margin-top: 4px; color: var(--ink-faint); font-size: 10px; font-weight: 700; }
.asset-card h3 { margin: 17px 0 6px; overflow: hidden; color: var(--ink); font-size: 15px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.asset-model { min-height: 18px; overflow: hidden; color: var(--ink-soft); font-family: var(--mono); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.asset-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 17px; color: var(--ink-faint); font-size: 10px; }
.asset-meta span { display: inline-flex; align-items: center; gap: 4px; }
.asset-meta strong { color: var(--ink-soft); font-weight: 650; }
.asset-card-action { position: absolute; right: 17px; bottom: 16px; color: var(--blue); background: transparent; border: 0; font-size: 17px; }
.component-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; color: var(--purple); background: var(--purple-soft); border-radius: 5px; font-size: 9px; font-weight: 750; }

.loading-card, .empty-card { grid-column: 1 / -1; display: grid; min-height: 170px; place-items: center; color: var(--ink-faint); background: rgba(255,255,255,0.65); border: 1px dashed #d7e0e9; border-radius: var(--radius); font-size: 12px; }
.spinner { display: inline-block; width: 15px; height: 15px; margin-right: 8px; vertical-align: -3px; border: 2px solid #d5e2f5; border-top-color: var(--blue); border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-card { display: block; padding: 60px 20px; text-align: center; }
.empty-card strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 14px; }

.detail-panel { margin-top: 26px; padding: 27px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-md); }
.detail-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.back-button { padding: 0; color: var(--blue); background: transparent; border: 0; font-size: 12px; font-weight: 750; }
.status-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.status-confirmed { color: var(--teal); background: var(--teal-soft); }
.status-pending { color: var(--amber); background: var(--amber-soft); }
.source-badge { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: 5px; font-size: 9px; font-weight: 800; }
.source-user { color: var(--blue); background: var(--blue-soft); }
.source-web { color: var(--teal); background: var(--teal-soft); }
.source-model { color: var(--purple); background: var(--purple-soft); }
.detail-hero { display: flex; align-items: flex-start; gap: 18px; padding: 25px 0 23px; }
.detail-hero .asset-icon { width: 54px; height: 54px; font-size: 26px; }
.detail-hero h3 { margin: 1px 0 7px; font-family: Georgia, "Songti SC", serif; font-size: 26px; font-weight: 500; }
.detail-hero p { margin: 0; color: var(--ink-soft); font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 25px; }
.detail-stat { padding: 12px 14px; background: #f8fafc; border-radius: 9px; }
.detail-stat small { display: block; margin-bottom: 6px; color: var(--ink-faint); font-size: 9px; font-weight: 750; }
.detail-stat strong { display: block; overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.detail-section { margin-top: 24px; }
.detail-section-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.detail-section-heading h4 { margin: 0; font-size: 13px; }
.detail-section-heading span { color: var(--ink-faint); font-family: var(--mono); font-size: 10px; }
.fact-group { margin-bottom: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.fact-group-heading { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #fbfcfd; border-bottom: 1px solid var(--line); }
.source-dot { width: 7px; height: 7px; border-radius: 50%; }
.source-dot.user_provided { background: var(--blue); }
.source-dot.web_verified { background: var(--teal); }
.source-dot.model_inferred { background: var(--purple); }
.source-label { color: var(--ink-soft); font-size: 10px; font-weight: 750; }
.fact-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) 88px; align-items: start; gap: 12px; padding: 10px 12px; border-bottom: 1px solid #f0f3f6; font-size: 11px; }
.fact-row:last-child { border-bottom: 0; }
.fact-name { color: var(--ink-soft); font-weight: 650; }
.fact-value { overflow-wrap: anywhere; color: var(--ink); line-height: 1.5; }
.confidence { color: var(--ink-faint); text-align: right; font-family: var(--mono); font-size: 9px; }
.component-card { margin-top: 9px; padding: 13px; background: #fbfaff; border: 1px solid #e6def8; border-radius: 10px; }
.component-card h5 { margin: 0 0 7px; color: var(--purple); font-size: 12px; }
.component-card p { margin: 3px 0; color: var(--ink-soft); font-size: 10px; }
.citation-link { display: inline-block; margin-left: 8px; color: var(--blue); font-size: 9px; text-decoration: none; }
.citation-link:hover { text-decoration: underline; }

.ingestion-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: start; gap: 28px; }
.capture-card { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 23px; color: var(--ink); font-size: 13px; font-weight: 750; }
.step-number { display: grid; width: 24px; height: 24px; place-items: center; color: #fff; background: var(--blue); border-radius: 7px; font-family: var(--mono); font-size: 10px; }
.field-label { display: flex; align-items: baseline; justify-content: space-between; margin: 14px 0 8px; color: var(--ink-soft); font-size: 11px; font-weight: 750; }
.field-label span { color: var(--ink-faint); font-size: 9px; font-weight: 500; }
.capture-card textarea, .full-select, .follow-up-input { width: 100%; padding: 12px; color: var(--ink); background: #fbfcfd; border: 1px solid var(--line); border-radius: 8px; outline: none; font-size: 12px; line-height: 1.6; resize: vertical; }
.capture-card textarea:focus, .full-select:focus, .follow-up-input:focus { border-color: #9dbdf2; box-shadow: 0 0 0 3px var(--blue-soft); }
.or-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px; color: var(--ink-faint); font-size: 10px; }
.or-divider::before, .or-divider::after { flex: 1; height: 1px; background: var(--line); content: ""; }
.file-drop { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 12px 14px; color: var(--ink-soft); background: #fafcff; border: 1px dashed #b9cdec; border-radius: 9px; cursor: pointer; }
.file-drop:hover { background: var(--blue-soft); border-color: #8fb0e8; }
.file-drop input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.file-drop-icon { display: grid; width: 34px; height: 34px; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 8px; font-size: 21px; }
.file-drop strong, .file-drop small { display: block; }
.file-drop strong { color: var(--ink); font-size: 11px; }
.file-drop small { margin-top: 4px; color: var(--ink-faint); font-size: 9px; }
.field-hint { margin: 8px 0 0; color: var(--ink-faint); font-size: 10px; line-height: 1.5; }
.process-side { display: grid; gap: 18px; }
.process-rail { padding: 7px 8px 10px; }
.process-step { display: flex; align-items: center; gap: 13px; color: var(--ink-faint); }
.process-step > span { display: grid; width: 33px; height: 33px; place-items: center; color: var(--ink-faint); background: #fff; border: 1px solid var(--line); border-radius: 50%; font-family: var(--mono); font-size: 9px; }
.process-step strong, .process-step small { display: block; }
.process-step strong { color: var(--ink-soft); font-size: 11px; }
.process-step small { margin-top: 3px; font-size: 9px; }
.process-step.is-current > span { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 5px var(--blue-soft); }
.process-step.is-current strong { color: var(--blue); }
.rail-line { height: 24px; margin-left: 16px; border-left: 1px dashed #cbd6e2; }
.note-card { display: flex; gap: 10px; padding: 14px; border-radius: 10px; }
.note-card-blue { color: #315a9c; background: #eff5ff; }
.note-icon { display: grid; flex: 0 0 auto; width: 20px; height: 20px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: Georgia, serif; font-size: 12px; font-weight: 700; }
.note-card strong { display: block; font-size: 10px; }
.note-card p { margin: 5px 0 0; color: #6882aa; font-size: 9px; line-height: 1.6; }
.result-area { margin-top: 23px; }
.inline-result { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 10px; box-shadow: var(--shadow-sm); }
.inline-result.is-error { border-left-color: var(--red); }
.inline-result.is-success { border-left-color: var(--teal); }
.inline-result strong { display: block; margin-bottom: 4px; font-size: 12px; }
.inline-result p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }

.follow-up-panel, .confirmation-panel { margin-top: 20px; padding: 23px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.panel-heading h3 { margin: 0; font-size: 16px; }
.panel-heading p { margin: 5px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.question-list { display: grid; gap: 8px; margin: 0 0 15px; padding: 0; list-style: none; counter-reset: questions; }
.question-list li { counter-increment: questions; display: flex; gap: 8px; padding: 11px; color: var(--ink); background: #f8fafc; border-radius: 8px; font-size: 11px; line-height: 1.5; }
.question-list li::before { content: counter(questions); display: grid; flex: 0 0 auto; width: 18px; height: 18px; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 50%; font-family: var(--mono); font-size: 9px; }
.follow-up-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.follow-up-actions .follow-up-input { flex: 1; min-height: 41px; resize: none; }
.follow-up-actions .button { flex: 0 0 auto; }

.confirmation-panel { border-color: #d4e0f4; }
.confirmation-panel .panel-heading { align-items: center; }
.confirmation-summary { margin: -4px 0 17px; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.fact-review-group { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.fact-review-heading { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: #fbfcfd; border-bottom: 1px solid var(--line); }
.fact-review-heading > span { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 11px; font-weight: 750; }
.fact-review-heading small { color: var(--ink-faint); font-size: 9px; }
.review-row { display: grid; grid-template-columns: 23px 152px minmax(0, 1fr) 72px; align-items: start; gap: 9px; padding: 11px 12px; border-bottom: 1px solid #f0f3f6; }
.review-row:last-child { border-bottom: 0; }
.review-row.is-low-confidence { background: #fffaf0; }
.review-row input[type="checkbox"] { width: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--blue); }
.review-field { color: var(--ink-soft); font-size: 10px; font-weight: 700; line-height: 1.45; }
.review-value { width: 100%; min-height: 28px; padding: 5px 7px; color: var(--ink); background: #fff; border: 1px solid transparent; border-radius: 5px; font-size: 10px; line-height: 1.45; resize: vertical; }
.review-value:focus { border-color: #b4c9ed; outline: 0; }
.review-row.is-low-confidence .review-value { border-color: #f1d79e; }
.review-confidence { color: var(--ink-faint); text-align: right; font-family: var(--mono); font-size: 9px; }
.review-confidence.low { color: var(--amber); font-weight: 750; }
.confirmation-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.confirmation-actions .button:first-child { margin-right: auto; }
.reminder-fact-mark { display: inline-block; margin-top: 4px; padding: 2px 5px; color: var(--amber); background: var(--amber-soft); border-radius: 4px; font-size: 8px; font-weight: 750; }

.ask-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.ai-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; color: var(--purple); background: var(--purple-soft); border-radius: 999px; font-family: var(--mono); font-size: 9px; font-weight: 700; white-space: nowrap; }
.ai-pill .pulse-dot { width: 5px; height: 5px; background: #896bd0; box-shadow: none; }
.ask-shell { min-height: 520px; padding: 28px; background: rgba(255,255,255,0.7); border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow-sm); }
.ask-empty { display: flex; flex-direction: column; align-items: center; padding: 32px 0 24px; text-align: center; }
.ask-orbit { display: grid; width: 63px; height: 63px; place-items: center; margin-bottom: 18px; color: #6d51ad; background: var(--purple-soft); border: 1px solid #ded3f5; border-radius: 50%; box-shadow: 0 0 0 9px rgba(241,237,252,0.55), 0 0 0 18px rgba(241,237,252,0.3); font-size: 28px; }
.ask-empty h3 { margin: 0 0 7px; font-family: Georgia, "Songti SC", serif; font-size: 22px; font-weight: 500; }
.ask-empty p { margin: 0; color: var(--ink-faint); font-size: 11px; }
.suggestion-list { display: flex; gap: 8px; margin-top: 24px; }
.suggestion { padding: 9px 11px; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 7px; font-size: 10px; }
.suggestion:hover { color: var(--blue); border-color: #b6cbed; background: #fafdff; }
.suggestion span { margin-left: 7px; color: var(--blue); }
.ask-messages { display: grid; gap: 16px; max-height: 480px; overflow-y: auto; padding: 3px 4px 18px; }
.ask-messages:empty { display: none; }
.message-row { display: flex; gap: 10px; }
.message-row.user { flex-direction: row-reverse; }
.message-avatar { display: grid; flex: 0 0 auto; width: 29px; height: 29px; place-items: center; color: #fff; background: var(--navy); border-radius: 9px; font-family: Georgia, serif; font-size: 13px; }
.message-row.user .message-avatar { color: var(--blue); background: var(--blue-soft); font-family: var(--mono); font-size: 10px; }
.message-bubble { max-width: 78%; padding: 11px 13px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 4px 12px 12px 12px; box-shadow: var(--shadow-sm); font-size: 12px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-row.user .message-bubble { color: #214a92; background: var(--blue-soft); border-color: #d8e5fc; border-radius: 12px 4px 12px 12px; }
.message-meta { margin-top: 5px; color: var(--ink-faint); font-family: var(--mono); font-size: 9px; }
.message-row.user .message-meta { text-align: right; }
.message-extra { margin-top: 11px; }
.message-note { padding: 9px 10px; color: var(--amber); background: var(--amber-soft); border-radius: 7px; font-size: 10px; line-height: 1.5; }
.message-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.candidate-button { padding: 7px 9px; color: var(--blue); text-align: left; background: #f8fbff; border: 1px solid #cfe0fa; border-radius: 7px; font-size: 10px; }
.candidate-button:hover { background: var(--blue-soft); }
.ask-composer { display: flex; align-items: flex-end; gap: 10px; padding: 11px 11px 11px 14px; background: #fff; border: 1px solid #ced9e6; border-radius: 11px; box-shadow: 0 4px 13px rgba(31, 52, 81, 0.05); }
.ask-composer:focus-within { border-color: #9ebcf0; box-shadow: 0 0 0 3px var(--blue-soft); }
.ask-composer textarea { flex: 1; min-height: 43px; max-height: 120px; padding: 3px 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 12px; line-height: 1.6; resize: vertical; }
.send-button { display: grid; flex: 0 0 auto; width: 35px; height: 35px; place-items: center; color: #fff; background: var(--blue); border: 0; border-radius: 8px; font-size: 20px; line-height: 1; }
.send-button:hover { background: #2360ca; }
.composer-hint { margin: 9px 3px 0; color: var(--ink-faint); font-size: 9px; }

.window-select { margin-top: 17px; }
.reminder-summary { display: flex; align-items: center; gap: 7px; margin: -7px 0 22px; color: var(--ink-faint); font-size: 11px; }
.reminder-summary #reminder-count { color: var(--ink); font-family: var(--mono); font-size: 17px; font-weight: 700; }
.summary-divider { width: 1px; height: 14px; margin: 0 5px; background: var(--line); }
.reminder-list { display: grid; gap: 11px; }
.reminder-card { display: grid; grid-template-columns: 49px minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.reminder-icon { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 12px; font-size: 21px; }
.reminder-icon.consumable { color: var(--amber); background: var(--amber-soft); }
.reminder-icon.warranty { color: var(--teal); background: var(--teal-soft); }
.reminder-title { margin: 0 0 5px; color: var(--ink); font-size: 13px; font-weight: 750; }
.reminder-subtitle { margin: 0; color: var(--ink-soft); font-size: 10px; }
.reminder-date { min-width: 112px; text-align: right; }
.reminder-date strong { display: block; color: var(--ink); font-family: var(--mono); font-size: 12px; }
.reminder-date small { display: block; margin-top: 4px; color: var(--ink-faint); font-size: 9px; }
.purchase-links { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.purchase-link { display: inline-flex; align-items: center; gap: 4px; max-width: 230px; padding: 4px 7px; overflow: hidden; color: var(--blue); background: #f2f7ff; border-radius: 5px; font-size: 9px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.purchase-link:hover { text-decoration: underline; }

@media (max-width: 1160px) {
  .main-content { padding-right: 36px; padding-left: 36px; }
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
