:root {
  --ink: #18231f;
  --ink-soft: #33443e;
  --green: #1e5948;
  --green-2: #2f7560;
  --mint: #dcebe5;
  --cream: #f6f3ec;
  --paper: #fffefa;
  --line: #e3dfd5;
  --muted: #5f6a66;
  --coral: #e46f50;
  --amber: #d39b40;
  --shadow: 0 18px 55px rgba(28, 47, 40, .08);
  --shadow-soft: 0 8px 24px rgba(28, 47, 40, .055);
}

* { box-sizing: border-box; }
html { background: var(--cream); }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.muted { color: var(--muted); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 26px 18px 20px; color: #edf5f1; background: #183d33; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 9px 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; color: #173b32; background: #f0bf73; font: 700 19px Georgia, serif; }
.brand strong, .brand small { display: block; }.brand strong { font-size: 15px; letter-spacing: .02em; }.brand small { margin-top: 3px; color: #91afa4; font-size: 9px; letter-spacing: .17em; }
.main-nav { display: grid; gap: 5px; padding: 24px 0; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 13px; border: 0; border-radius: 10px; color: #b9cec6; background: transparent; text-align: left; }
.nav-item span { width: 20px; color: #86aa9d; font-size: 18px; text-align: center; }.nav-item:hover, .nav-item.active { color: white; background: rgba(255,255,255,.11); }
.sidebar-section { min-height: 0; flex: 1; overflow: hidden; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; }
.sidebar-label { margin: 0 10px 10px; color: #789b8e; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.recent-projects { display: grid; gap: 4px; overflow: auto; max-height: calc(100vh - 330px); }
.recent-project { width: 100%; padding: 10px 11px; border: 0; border-radius: 9px; color: #dce9e4; background: transparent; text-align: left; }
.recent-project:hover { background: rgba(255,255,255,.08); }.recent-project strong, .recent-project small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.recent-project strong { font-size: 13px; }.recent-project small { margin-top: 4px; color: #83a397; font-size: 10px; }
.sidebar-footer { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 16px 9px 0; border-top: 1px solid rgba(255,255,255,.12); }.sidebar-footer strong, .sidebar-footer small { display: block; }.sidebar-footer strong { font-size: 11px; }.sidebar-footer small { margin-top: 3px; color: #789b8e; font-size: 9px; }.system-dot { width: 8px; height: 8px; border-radius: 50%; background: #7fd3a9; box-shadow: 0 0 0 5px rgba(127,211,169,.12); }

.main-area { min-width: 0; padding: 0 3.3vw 64px; }
.app-header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }.breadcrumb { margin: 0 0 7px; color: var(--muted); font-size: 11px; letter-spacing: .04em; }.app-header h1 { margin: 0; font: 500 clamp(25px, 3vw, 34px) Georgia, "Microsoft YaHei UI", serif; }.header-actions { display: flex; align-items: center; gap: 9px; }
.primary-button, .secondary-button, .light-button, .icon-button, .back-button, .text-button, .action-button { border-radius: 9px; }
.primary-button { padding: 11px 17px; border: 1px solid var(--green); color: white; background: var(--green); font-weight: 700; }.primary-button:hover { background: #15473a; }.secondary-button { padding: 10px 15px; border: 1px solid var(--line); color: var(--ink); background: var(--paper); }.secondary-button:hover { border-color: var(--green); }.icon-button { width: 41px; height: 41px; border: 1px solid var(--line); color: var(--ink-soft); background: var(--paper); font-size: 19px; }.text-button { padding: 0; border: 0; color: var(--green-2); background: transparent; font-size: 12px; }.back-button { margin-bottom: 18px; padding: 0; border: 0; color: var(--muted); background: transparent; }
.page-view { display: none; }.page-view.active { display: block; }

.welcome-card { min-height: 260px; display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; padding: 42px 45px; border-radius: 22px; color: white; background: radial-gradient(circle at 88% 18%, rgba(240,191,115,.34), transparent 26%), linear-gradient(125deg, #163d33, #285f4e); box-shadow: var(--shadow); overflow: hidden; }.welcome-card h2 { max-width: 640px; margin: 10px 0 15px; font: 500 clamp(28px, 4vw, 47px)/1.18 Georgia, "Microsoft YaHei UI", serif; }.welcome-card p { max-width: 650px; margin: 0; color: #cfe0da; line-height: 1.8; }.kicker { color: #d5a95f; font-size: 10px; font-weight: 800; letter-spacing: .18em; }.light-button { flex: 0 0 auto; padding: 13px 18px; border: 1px solid rgba(255,255,255,.32); color: white; background: rgba(255,255,255,.1); }.light-button span { margin-left: 16px; }.light-button:hover { background: rgba(255,255,255,.18); }
.welcome-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin: 18px 0 38px; }.stat-card { position: relative; padding: 20px 21px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }.stat-card::before { content: ""; position: absolute; top: 19px; right: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--stat-color, var(--green)); }.stat-card strong { display: block; font: 500 31px Georgia, serif; }.stat-card span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 18px; }.section-heading > div:first-child { display: flex; gap: 14px; align-items: start; }.section-index { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--coral); font: 700 10px Georgia, serif; }.section-heading h2 { margin: 0 0 5px; font: 500 22px Georgia, "Microsoft YaHei UI", serif; }.section-heading p { margin: 0; color: var(--muted); font-size: 12px; }.filter-row { display: flex; gap: 8px; }.filter-row input, .filter-row select { min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--paper); }.filter-row input { width: 210px; }
.n3-filter-row { display: grid; grid-template-columns: minmax(0,1.4fr) repeat(2,minmax(0,1fr)); align-items: end; }
.n3-filter-row > input,.n3-filter-row > select { width: 100%; min-width: 0; }
.n3-filter-row > label { min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 8px; color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.n3-filter-row > label input { width: 100%; min-width: 0; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 14px; }.project-card { position: relative; min-height: 224px; display: flex; flex-direction: column; padding: 21px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 10px 30px rgba(30,54,45,.045); transition: .18s ease; }.project-card:hover { transform: translateY(-3px); border-color: #b9c8c2; box-shadow: var(--shadow); }.project-card-header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }.project-card h3 { margin: 12px 0 5px; font: 500 21px Georgia, "Microsoft YaHei UI", serif; }.project-id { color: var(--muted); font: 10px Consolas, monospace; }.phase-badge { display: inline-block; padding: 5px 9px; border-radius: 99px; color: var(--green); background: var(--mint); font-size: 10px; font-weight: 700; }.article-type { padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 10px; }.project-metrics { display: flex; gap: 15px; margin: 17px 0; color: var(--muted); font-size: 11px; }.project-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 15px; border-top: 1px solid #ece9e1; }.project-card-footer small { color: var(--muted); }.action-button { padding: 8px 11px; border: 0; color: white; background: var(--green); font-size: 11px; }.empty-state { grid-column: 1/-1; padding: 55px; border: 1px dashed #c9c5bb; border-radius: 16px; color: var(--muted); text-align: center; background: rgba(255,255,255,.35); }.empty-state h3 { color: var(--ink); font: 500 24px Georgia, serif; }

.project-hero { padding-top: 4px; }.project-title-row { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 16px; padding-bottom: 24px; }.student-avatar { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px; color: white; background: linear-gradient(145deg, var(--green-2), var(--green)); font: 600 22px Georgia, serif; }.project-title-row h2 { margin: 6px 0 4px; font: 500 27px Georgia, "Microsoft YaHei UI", serif; }.project-title-row p { margin: 0; color: var(--muted); font-size: 12px; }.project-next { min-width: 176px; padding: 13px 15px; border-left: 3px solid var(--coral); background: rgba(255,255,255,.52); }.project-next small, .project-next strong { display: block; }.project-next small { margin-bottom: 5px; color: var(--muted); font-size: 10px; }.project-next strong { font-size: 13px; }
.workflow-nav { display: grid; grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr 28px 1fr; align-items: center; padding: 15px 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }.workflow-nav button { display: grid; grid-template-columns: 30px minmax(0,1fr); grid-template-rows: auto auto; column-gap: 9px; padding: 7px; border: 0; color: var(--muted); background: transparent; text-align: left; }.workflow-nav button span { grid-row: 1/3; width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: var(--cream); font-size: 11px; }.workflow-nav button strong { color: inherit; font-size: 12px; }.workflow-nav button small { margin-top: 2px; font-size: 9px; }.workflow-nav button.active { color: var(--green); }.workflow-nav button.active span { border-color: var(--green); color: white; background: var(--green); }.workflow-nav button.done span { border-color: var(--green-2); color: var(--green); background: var(--mint); }.workflow-nav i { height: 1px; background: var(--line); }
.workspace-layout { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 16px; margin-top: 16px; }.stage-content { min-height: 590px; }.stage-panel, .rail-card { border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }.stage-panel { padding: 25px; }.stage-panel + .stage-panel { margin-top: 13px; }.stage-header { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 23px; }.stage-header h2 { margin: 4px 0 7px; font: 500 25px Georgia, "Microsoft YaHei UI", serif; }.stage-header p { max-width: 620px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }.stage-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.stage-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }.info-card { padding: 17px; border: 1px solid #e8e4db; border-radius: 12px; background: #fcfaf5; }.info-card h3 { margin: 0 0 8px; font-size: 13px; }.info-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }.metric-number { display: block; margin-bottom: 5px; font: 500 27px Georgia, serif; color: var(--green); }.warning-list { display: grid; gap: 7px; }.warning-item { padding: 10px 12px; border-left: 3px solid var(--amber); border-radius: 7px; color: #795f30; background: #fcf5e7; font-size: 11px; }.timeline-list { display: grid; gap: 0; }.timeline-item { position: relative; padding: 0 0 18px 20px; border-left: 1px solid var(--line); }.timeline-item:last-child { border-left-color: transparent; }.timeline-item::before { content: ""; position: absolute; left: -4px; top: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--green-2); }.timeline-item strong { display: block; margin-bottom: 4px; font-size: 12px; }.timeline-item p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.artifact-card { margin-top: 12px; padding: 19px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }.artifact-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }.artifact-card-header h3 { margin: 0; font: 500 17px Georgia, "Microsoft YaHei UI", serif; }.artifact-card-header small { color: var(--muted); }.artifact-link { padding: 0; border: 0; color: var(--green-2); background: transparent; font-size: 11px; }.angle-grid { display: grid; gap: 9px; }.angle-card { padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: #fcfaf6; }.angle-card.selected { border-color: var(--green); background: #eff7f3; }.angle-card h4 { margin: 0 0 6px; }.angle-card p { margin: 0 0 9px; color: var(--muted); font-size: 11px; line-height: 1.6; }.angle-footer { display: flex; align-items: center; justify-content: space-between; }.score { color: var(--coral); font-size: 11px; font-weight: 700; }.coverage-list { display: grid; gap: 7px; }.coverage-row { display: grid; grid-template-columns: 150px 95px minmax(0,1fr); gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #edeae3; font-size: 11px; }.coverage-row:last-child { border-bottom: 0; }.status-pill { width: max-content; padding: 4px 8px; border-radius: 99px; color: var(--green); background: var(--mint); }.status-pill.missing, .status-pill.conflicting { color: #934d36; background: #f9e5dd; }.status-pill.needs_detail { color: #7d612f; background: #f7edda; }
.outline-list, .question-list, .fact-list, .writing-list { display: grid; gap: 9px; }.outline-row { display: grid; grid-template-columns: 86px minmax(0,1fr) auto; gap: 13px; padding: 14px; border: 1px solid #e8e4db; border-radius: 11px; }.time-block { color: var(--green); font: 600 12px Georgia, serif; }.outline-row h4, .question-card h4, .fact-card h4 { margin: 0 0 5px; }.outline-row p, .question-card p, .fact-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }.question-card, .fact-card { padding: 15px; border: 1px solid #e8e4db; border-radius: 11px; }.question-meta, .fact-meta { display: flex; gap: 8px; margin-top: 9px; color: var(--muted); font-size: 10px; }.mini-tag { padding: 3px 7px; border-radius: 99px; color: var(--green); background: var(--mint); }.upload-zone { display: grid; place-items: center; padding: 35px; border: 1px dashed #bbb7ad; border-radius: 13px; background: #fbf8f1; text-align: center; }.upload-zone strong { display: block; margin-bottom: 7px; }.upload-zone p { margin: 0 0 15px; color: var(--muted); font-size: 11px; }.upload-zone input { max-width: 280px; margin-bottom: 12px; }
.article-editor { display: grid; gap: 11px; }.article-title-input, .paragraph-editor textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #fff; }.article-title-input { padding: 13px; font: 500 20px Georgia, "Microsoft YaHei UI", serif; }.paragraph-editor { padding: 15px; border: 1px solid #e8e4db; border-radius: 11px; }.paragraph-editor textarea { min-height: 115px; padding: 12px; resize: vertical; line-height: 1.8; }.paragraph-toolbar { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; color: var(--muted); font-size: 10px; }.paragraph-toolbar label { display: flex; align-items: center; gap: 5px; }
.search-evidence { display: flex; gap: 8px; margin-top: 14px; }.search-evidence input { flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }.search-results { margin-top: 10px; }.search-result { padding: 11px 0; border-bottom: 1px solid var(--line); }.search-result strong { font-size: 11px; }.search-result p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.context-rail { display: grid; align-content: start; gap: 12px; }.rail-card { padding: 16px; }.rail-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: 11px; font-weight: 700; }.rail-heading strong { color: var(--green); }.progress-track { height: 5px; overflow: hidden; border-radius: 99px; background: #e5e2da; }.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--coral); transition: width .3s; }.progress-list { display: grid; gap: 7px; margin-top: 13px; }.progress-item { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }.progress-item::before { content: ""; width: 14px; height: 14px; border: 1px solid var(--line); border-radius: 50%; }.progress-item.done { color: var(--ink); }.progress-item.done::before { content: "✓"; display: grid; place-items: center; border-color: var(--green); color: white; background: var(--green); font-size: 8px; }.version-list { display: grid; gap: 6px; max-height: 260px; overflow: auto; }.version-list.collapsed { display: none; }.version-entry { width: 100%; padding: 8px; border: 1px solid #e8e4db; border-radius: 8px; color: var(--ink); background: #fcfaf6; text-align: left; }.version-entry strong, .version-entry small { display: block; }.version-entry strong { font-size: 10px; }.version-entry small { margin-top: 3px; color: var(--muted); font-size: 9px; }.evidence-list { max-height: 360px; overflow: auto; }.evidence-entry { padding: 8px 0; border-bottom: 1px solid #ece9e2; word-break: break-all; }.evidence-entry strong, .evidence-entry small { display: block; }.evidence-entry strong { font-size: 10px; }.evidence-entry small { margin-top: 3px; color: var(--muted); font: 9px Consolas, monospace; }

dialog { color: var(--ink); border: 0; border-radius: 18px; background: var(--paper); box-shadow: 0 30px 100px rgba(10,30,24,.28); }dialog::backdrop { background: rgba(18,36,30,.55); backdrop-filter: blur(3px); }.project-dialog { width: min(680px, calc(100vw - 30px)); padding: 0; }.project-dialog form { padding: 28px; }.artifact-dialog { width: min(960px, calc(100vw - 30px)); max-height: 90vh; padding: 26px; }.artifact-dialog .dialog-header { position: sticky; top: 0; z-index: 2; background: var(--paper); }.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 18px; }.dialog-header h2 { margin: 7px 0 7px; font: 500 27px Georgia, "Microsoft YaHei UI", serif; }.dialog-header p { margin: 0; color: var(--muted); font-size: 11px; }.dialog-close { width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--muted); background: var(--cream); font-size: 22px; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 25px 0; }.form-grid label { display: grid; gap: 7px; font-size: 11px; font-weight: 700; }.form-grid input, .form-grid select { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: white; }.form-grid small { color: var(--muted); font-size: 9px; font-weight: 400; }.file-field { grid-column: 1/-1; }.dialog-actions { display: flex; justify-content: end; gap: 8px; }.create-progress { min-height: 20px; margin-bottom: 9px; font-size: 11px; }.artifact-toolbar { display: flex; justify-content: space-between; margin: 17px 0; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; }.artifact-toolbar a { color: var(--green); }.artifact-preview { max-height: 52vh; overflow: auto; padding-right: 8px; }.artifact-preview h3 { font: 500 19px Georgia, "Microsoft YaHei UI", serif; }.artifact-preview article { padding: 12px 0; border-bottom: 1px solid var(--line); }.artifact-preview p { line-height: 1.75; }.structured-editor { margin-top: 18px; }.structured-editor summary { color: var(--green); cursor: pointer; font-size: 11px; }.structured-editor textarea { width: 100%; margin: 10px 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; font: 11px/1.6 Consolas, monospace; }
.hidden { display: none !important; }

/* New content project dialog */
.project-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 22px;
}
.project-dialog form { padding: 30px 32px 26px; }
.project-dialog .dialog-header { padding-bottom: 22px; border-bottom: 1px solid #ebe7de; }
.project-dialog .dialog-header h2 { margin: 8px 0 6px; font-size: 29px; letter-spacing: -.02em; }
.project-dialog .dialog-header p { max-width: 520px; line-height: 1.7; }
.project-dialog .dialog-close { flex: 0 0 auto; transition: transform .18s ease, color .18s ease, background .18s ease; }
.project-dialog .dialog-close:hover { color: var(--ink); background: #ebe8df; transform: rotate(4deg); }
.project-form-sections { display: grid; gap: 14px; padding: 20px 0; }
.project-form-section { padding: 17px 18px 18px; border: 1px solid #e7e3da; border-radius: 14px; background: #fff; }
.form-section-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.form-section-heading > span { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--green); background: var(--mint); font: 700 9px Georgia, serif; }
.form-section-heading strong, .form-section-heading small { display: block; }
.form-section-heading strong { font-size: 12px; }
.form-section-heading small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.student-fields { display: grid; grid-template-columns: minmax(150px, .72fr) minmax(0, 1.7fr); gap: 12px; }
.content-settings-fields { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(110px, .62fr); gap: 12px; }
.project-form-section label { display: grid; align-content: start; gap: 7px; min-width: 0; color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.project-form-section input, .project-form-section select { width: 100%; height: 43px; min-width: 0; padding: 0 12px; border: 1px solid #d8d5cc; border-radius: 9px; color: var(--ink); background: #fff; outline: none; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.project-form-section input:hover, .project-form-section select:hover { border-color: #b8c2bd; }
.project-form-section input:focus, .project-form-section select:focus { border-color: var(--green-2); background: #fff; box-shadow: 0 0 0 3px rgba(47,117,96,.11); }
.project-form-section input::placeholder { color: #a1a8a5; }
.project-form-section label > small { min-height: 13px; color: var(--muted); font-size: 8.5px; font-weight: 400; line-height: 1.5; }
.length-input-wrap { position: relative; }
.length-input-wrap input { padding-right: 34px; }
.length-input-wrap > span { position: absolute; right: 12px; top: 50%; color: var(--muted); font-size: 9px; font-weight: 400; transform: translateY(-50%); pointer-events: none; }
.dialog-footer { min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 18px; border-top: 1px solid #ebe7de; }
.project-dialog .create-progress { flex: 1; min-height: 0; margin: 0; line-height: 1.5; }
.project-dialog .dialog-actions { flex: 0 0 auto; }
.project-dialog .dialog-actions button { min-height: 42px; }
.project-dialog .dialog-actions .primary-button { padding-inline: 18px; box-shadow: 0 8px 20px rgba(30,89,72,.15); }
.project-dialog .dialog-actions .primary-button span { margin-left: 8px; }
#toast { position: fixed; z-index: 20; right: 24px; bottom: 24px; max-width: 380px; padding: 12px 16px; border-radius: 9px; color: white; background: var(--ink); box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); transition: .2s; pointer-events: none; font-size: 12px; }#toast.show { opacity: 1; transform: none; }

@media (max-width: 1100px) { .app-shell { grid-template-columns: 205px minmax(0,1fr); }.sidebar { padding-inline: 12px; }.workflow-nav { overflow-x: auto; grid-template-columns: repeat(9, minmax(max-content, auto)); }.workspace-layout { grid-template-columns: 1fr; }.context-rail { grid-template-columns: repeat(3,1fr); }.evidence-list { max-height: 180px; } }
@media (max-width: 760px) { .app-shell { display: block; }.sidebar { position: static; width: auto; height: auto; padding: 14px; }.brand { padding-bottom: 14px; }.main-nav { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 4px; padding: 12px 0 0; }.main-nav .nav-item { min-width: 0; gap: 7px; padding: 10px 8px; font-size: 12px; }.sidebar-section, .sidebar-footer { display: none; }.main-area { width: 100%; min-width: 0; overflow: hidden; padding: 0 14px 45px; }.app-header { min-width: 0; min-height: 86px; }.app-header h1 { font-size: 25px; }.header-actions #headerNewProject { display: none; }.primary-button { padding: 10px 12px; }.welcome-card { width: 100%; min-width: 0; max-width: 100%; min-height: 320px; align-items: start; flex-direction: column; padding: 30px 25px; }.welcome-card > div, .welcome-card h2 { min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-all; }.stats-grid { min-width: 0; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }.stat-card { min-width: 0; }.section-heading { align-items: stretch; flex-direction: column; }.filter-row { flex-direction: column; }.filter-row input, .filter-row select { width: 100%; }.project-title-row { grid-template-columns: 48px 1fr; }.student-avatar { width: 48px; height: 48px; }.project-next { grid-column: 1/-1; }.workflow-nav { margin-inline: -14px; border-radius: 0; border-inline: 0; }.stage-panel { padding: 18px; }.stage-header { flex-direction: column; }.stage-actions { justify-content: start; }.stage-grid { grid-template-columns: 1fr; }.context-rail { grid-template-columns: 1fr; }.coverage-row { grid-template-columns: 1fr; gap: 5px; }.outline-row { grid-template-columns: 65px 1fr; }.form-grid { grid-template-columns: 1fr; }.file-field { grid-column: auto; }.project-dialog form { padding: 23px 18px 18px; }.project-dialog .dialog-header h2 { font-size: 25px; }.student-fields, .content-settings-fields { grid-template-columns: 1fr; }.project-form-section { padding: 15px; }.dialog-footer { align-items: stretch; flex-direction: column; }.project-dialog .dialog-actions { width: 100%; }.project-dialog .dialog-actions button { flex: 1; } }
@media (max-width: 760px) { .header-actions #headerUploadDocument { display: none; }.welcome-actions { width: 100%; flex-direction: column; align-items: stretch; }.welcome-actions .light-button { width: 100%; } }

/* Visual refinement v0.5 */
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(47,117,96,.18); outline-offset: 2px; }
button:disabled { cursor: wait; opacity: .58; transform: none !important; box-shadow: none !important; }

.app-shell { grid-template-columns: 236px minmax(0, 1fr); }
.sidebar { background: linear-gradient(180deg, #173f34 0%, #12372e 100%); box-shadow: 12px 0 32px rgba(20,50,42,.07); }
.nav-item { position: relative; border: 1px solid transparent; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.nav-item:hover, .nav-item.active { border-color: rgba(255,255,255,.06); background: rgba(255,255,255,.095); }
.nav-item.active::after { content: ""; position: absolute; right: 9px; width: 4px; height: 4px; border-radius: 50%; background: #f0bf73; }
.main-area { padding-inline: clamp(24px, 3.3vw, 58px); padding-bottom: 72px; }

.primary-button, .secondary-button, .light-button, .icon-button, .back-button, .text-button, .action-button { border-radius: 10px; transition: transform .16s ease, border-color .16s ease, color .16s ease, background .16s ease, box-shadow .16s ease; }
.primary-button { min-height: 40px; padding: 10px 17px; border-color: var(--green); background: linear-gradient(180deg, #216752, #175846); box-shadow: 0 7px 18px rgba(23,88,70,.16); }
.primary-button:hover { background: linear-gradient(180deg, #1c5d4a, #124a3b); box-shadow: 0 9px 22px rgba(23,88,70,.22); transform: translateY(-1px); }
.secondary-button { min-height: 40px; padding: 9px 15px; border-color: #d9d5ca; background: #fff; box-shadow: 0 2px 6px rgba(28,47,40,.035); font-weight: 600; }
.secondary-button:hover { border-color: #9fb8ae; color: var(--green); background: #fbfdfc; box-shadow: 0 6px 16px rgba(28,47,40,.07); transform: translateY(-1px); }
.action-with-arrow::after { content: "↗"; display: inline-block; margin-left: 8px; color: var(--green-2); font-size: 12px; }
.icon-button:hover { border-color: #b8c5bf; color: var(--green); background: #fff; transform: rotate(18deg); }
.text-button { padding-block: 2px; font-weight: 700; }
.text-button:hover { color: var(--green); }
.back-button { padding-block: 4px; }
.back-button:hover { color: var(--green); transform: translateX(-2px); }
.action-button { padding: 8px 12px; border: 1px solid var(--green); box-shadow: 0 5px 14px rgba(23,88,70,.13); font-weight: 700; }
.action-button:hover { background: #124a3b; transform: translateY(-1px); }

.project-card { border-radius: 17px; box-shadow: var(--shadow-soft); }
.workflow-nav { border-radius: 16px; box-shadow: var(--shadow-soft); }
.workflow-nav button { padding: 8px; border-radius: 10px; transition: color .16s ease, background .16s ease; }
.workflow-nav button:hover { color: var(--green); background: #f6faf8; }
.workflow-nav button.active { background: #f1f8f5; }
.workflow-nav button.active span { box-shadow: 0 0 0 4px rgba(23,88,70,.1); }
.workspace-layout { grid-template-columns: minmax(0,1fr) 280px; gap: 20px; margin-top: 20px; }
.stage-panel, .rail-card { border-radius: 17px; box-shadow: var(--shadow-soft); }
.stage-panel { padding: clamp(22px, 2vw, 30px); }
.stage-panel + .stage-panel { margin-top: 16px; }
.stage-header { gap: 22px; margin-bottom: 25px; }
.stage-header h2 { margin-top: 5px; font-size: 26px; letter-spacing: -.02em; }
.stage-header p { max-width: 680px; line-height: 1.75; }

.artifact-card { margin-top: 14px; padding: 20px; border-color: #e5e1d8; border-radius: 14px; }
.artifact-card-header { margin-bottom: 15px; }
.artifact-card-header h3 { font-size: 18px; }
.artifact-link { position: relative; padding: 4px 0; font-weight: 700; }
.artifact-link::after { content: "→"; display: inline-block; margin-left: 5px; transition: transform .16s ease; }
.artifact-link:hover { color: var(--green); }
.artifact-link:hover::after { transform: translateX(3px); }

.outline-list, .question-list, .fact-list, .writing-list { gap: 10px; }
.outline-row { grid-template-columns: 92px minmax(0,1fr) 68px; align-items: center; gap: 16px; min-height: 78px; padding: 15px 16px; border-radius: 12px; background: #fff; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease; }
.outline-row:hover { border-color: #c9d6d0; background: #fdfefc; box-shadow: 0 7px 18px rgba(28,47,40,.05); transform: translateY(-1px); }
.time-block { color: var(--green); font: 700 13px Georgia, "Microsoft YaHei UI", serif; white-space: nowrap; }
.time-block small { display: block; margin-top: 3px; color: #8b9691; font: 500 9px "Microsoft YaHei UI", sans-serif; letter-spacing: .08em; }
.outline-copy { min-width: 0; }
.outline-copy small { display: block; margin-top: 7px; color: var(--muted); line-height: 1.55; }
.outline-copy ul { margin: 9px 0 0; padding-left: 18px; color: #4f5d57; font-size: 11px; line-height: 1.7; }
.dossier-summary { margin-bottom: 14px; border-left: 3px solid var(--green-2); }
.status-pill.single_source, .status-pill.needs_verification { color: #7d612f; background: #f7edda; }
.outline-row h4 { margin-bottom: 6px; font-size: 14px; }
.priority-badge { justify-self: end; width: max-content; min-width: 58px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 9px; border: 1px solid transparent; border-radius: 8px; font-size: 10px; font-weight: 700; line-height: 1; white-space: nowrap; }
.priority-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.priority-high { color: #af5138; border-color: #f1d3ca; background: #fff2ed; }
.priority-medium { color: #8a662d; border-color: #ead9b8; background: #fbf5e8; }
.priority-low { color: #66736e; border-color: #dfe4e1; background: #f4f6f5; }
.question-card, .fact-card { padding: 16px; border-radius: 12px; background: #fff; transition: border-color .16s ease, box-shadow .16s ease; }
.question-card:hover, .fact-card:hover { border-color: #cbd7d2; box-shadow: 0 7px 18px rgba(28,47,40,.045); }
.question-meta, .fact-meta { flex-wrap: wrap; margin-top: 10px; }
.mini-tag { width: max-content; padding: 4px 8px; border: 1px solid #d5e5df; border-radius: 7px; background: #f0f7f4; font-size: 10px; font-weight: 700; line-height: 1.2; }

.context-rail { position: sticky; top: 16px; }
.rail-card { padding: 17px; }
.progress-track span { background: linear-gradient(90deg, var(--coral), #ef8a6f); }
.progress-item::before { width: 15px; height: 15px; flex: 0 0 auto; }
.version-entry { padding: 9px; border-radius: 9px; transition: .16s ease; }
.version-entry:hover { border-color: #bfcfc8; background: #f6faf8; }
.evidence-list > .muted { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.upload-zone { border-color: #c9c5ba; background: linear-gradient(180deg, #fdfbf7, #faf7f0); }
.upload-zone::before { content: "↑"; width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 4px; border: 1px solid #cfe0d9; border-radius: 10px; color: var(--green); background: #edf6f2; font-size: 16px; font-weight: 700; }
.upload-zone input[type="file"] { width: min(360px, 100%); max-width: none; padding: 5px; border: 1px solid #dedad0; border-radius: 10px; color: var(--muted); background: #fff; font-size: 10px; }
.upload-zone input[type="file"]::file-selector-button { margin-right: 10px; padding: 7px 10px; border: 0; border-right: 1px solid #d9e5e0; border-radius: 7px; color: var(--green); background: #edf6f2; cursor: pointer; font-weight: 700; }
.upload-zone input[type="file"]::file-selector-button:hover { background: #e2f0ea; }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 205px minmax(0,1fr); }
  .workspace-layout { grid-template-columns: 1fr; }
  .context-rail { position: static; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .main-area { padding-inline: 14px; }
  .stage-actions { width: 100%; }
  .stage-actions .secondary-button, .stage-actions .primary-button { width: 100%; }
  .outline-row { grid-template-columns: 74px minmax(0,1fr); align-items: start; gap: 12px; }
  .priority-badge { grid-column: 2; justify-self: start; margin-top: -2px; }
}

/* Article revision workbench */
.article-draft-card .kicker { display: block; margin-bottom: 7px; }
.article-draft-card .artifact-card-header { align-items: start; }
.article-draft-preview { max-height: 250px; overflow: hidden; color: var(--ink-soft); line-height: 1.85; mask-image: linear-gradient(#000 70%, transparent); }
.article-draft-preview p { margin: 0 0 12px; }
.article-draft-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

.article-workbench-topbar { position: sticky; top: 0; z-index: 8; min-height: 78px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 18px; margin: 0 -12px 18px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,254,250,.96); box-shadow: var(--shadow-soft); backdrop-filter: blur(12px); }
.article-workbench-topbar .back-button { margin: 0; }
.article-workbench-meta strong, .article-workbench-meta small { display: block; }
.article-workbench-meta strong { margin-top: 4px; font-size: 13px; }
.article-workbench-meta small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.article-workbench-actions { display: flex; align-items: center; gap: 8px; }
.editor-export-link { display: inline-flex; align-items: center; text-decoration: none; font-size: 11px; }

.article-workbench-layout { display: grid; grid-template-columns: 205px minmax(480px,1fr) 300px; align-items: start; gap: 16px; }
.article-outline-panel, .article-document-panel, .article-ai-panel { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow-soft); }
.article-outline-panel, .article-ai-panel { position: sticky; top: 96px; max-height: calc(100vh - 118px); overflow: auto; }
.article-outline-panel { padding: 15px; }
.workbench-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.workbench-panel-heading strong { font-size: 12px; }
.workbench-panel-heading span { color: var(--muted); font-size: 9px; }
.article-outline-list { display: grid; gap: 5px; }
.article-outline-item { display: grid; grid-template-columns: 18px minmax(0,1fr); align-items: center; gap: 5px; }
.article-outline-item > input { accent-color: var(--green); }
.article-outline-item > button { min-width: 0; display: grid; grid-template-columns: 25px minmax(0,1fr); align-items: center; gap: 6px; padding: 8px 7px; border: 0; border-radius: 8px; color: var(--ink-soft); background: transparent; text-align: left; }
.article-outline-item > button:hover { background: #f2f7f4; }
.article-outline-item span { color: var(--green-2); font: 700 9px Georgia, serif; }
.article-outline-item strong { overflow: hidden; font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.editor-version-panel { margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); }
.editor-version-entry { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 5px; padding: 8px 9px; border: 1px solid transparent; border-radius: 8px; color: var(--ink-soft); background: transparent; text-align: left; }
.editor-version-entry:hover, .editor-version-entry.active { border-color: #cfe0d9; background: #f0f7f4; }
.editor-version-entry strong { font-size: 10px; }.editor-version-entry small { color: var(--muted); font-size: 8px; }

.article-document-panel { min-width: 0; padding: clamp(22px,3vw,42px); }
.editor-field-label { display: block; margin: 0 0 7px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.editor-article-title, .editor-article-subtitle { width: 100%; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; outline: none; }
.editor-article-title { padding: 7px 0 14px; font: 500 clamp(25px,3vw,35px)/1.35 Georgia, "Microsoft YaHei UI", serif; }
.editor-article-subtitle { margin-bottom: 13px; padding: 12px 0; color: var(--ink-soft); font-size: 14px; }
.editor-article-title:focus, .editor-article-subtitle:focus { border-bottom-color: var(--green-2); box-shadow: none; }
.editor-document-meta { display: flex; flex-wrap: wrap; gap: 14px; margin: 9px 0 22px; color: var(--muted); font-size: 9px; }
.editor-paragraph-list { display: grid; gap: 13px; }
.editor-paragraph-card { border: 1px solid #e9e5dc; border-radius: 12px; background: #fff; transition: border-color .16s ease, box-shadow .16s ease; }
.editor-paragraph-card.selected { border-color: #8fb5a7; box-shadow: 0 0 0 3px rgba(47,117,96,.08); }
.editor-paragraph-card header { display: flex; align-items: center; justify-content: space-between; padding: 9px 13px 0; color: var(--muted); font-size: 9px; }
.editor-paragraph-card textarea { width: 100%; min-height: 150px; padding: 13px; border: 0; color: var(--ink); background: transparent; resize: vertical; outline: none; font: 15px/1.9 "Microsoft YaHei UI", "PingFang SC", sans-serif; }

.article-ai-panel { padding: 19px; }
.article-ai-panel h3 { margin: 7px 0 5px; font-size: 18px; }
.article-ai-panel > div:first-child p { margin: 0 0 17px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.edit-mode-list { display: grid; gap: 7px; }
.edit-mode-list label { display: grid; grid-template-columns: 17px minmax(0,1fr); gap: 8px; padding: 10px; border: 1px solid #e5e1d8; border-radius: 10px; cursor: pointer; }
.edit-mode-list label:has(input:checked) { border-color: #9dbeb2; background: #f0f7f4; }
.edit-mode-list input { margin-top: 3px; accent-color: var(--green); }
.edit-mode-list strong, .edit-mode-list small { display: block; }.edit-mode-list strong { font-size: 11px; }.edit-mode-list small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.editor-prompt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 15px 0; }
.editor-prompt-chips button { padding: 6px 8px; border: 1px solid var(--line); border-radius: 99px; color: var(--green); background: #fff; font-size: 9px; }
.editor-prompt-chips button:hover { border-color: #a9c2b8; background: #f2f8f5; }
.editor-instructions { width: 100%; min-height: 112px; padding: 10px; border: 1px solid #dcd8cf; border-radius: 9px; resize: vertical; font-size: 10px; line-height: 1.65; }
.editor-selection-hint { margin: 9px 0; color: var(--muted); font-size: 9px; }
.editor-generate-button { width: 100%; }

.article-preview-dialog { width: min(900px,calc(100vw - 30px)); max-height: 88vh; padding: 26px; }
.article-preview-dialog .dialog-header { position: sticky; top: 0; z-index: 2; background: var(--paper); }
.article-preview-body { margin-top: 17px; }
.edit-preview-summary { display: flex; justify-content: space-between; margin-bottom: 14px; padding: 11px 13px; border-radius: 9px; background: var(--cream); font-size: 11px; }
.edit-preview-summary span { color: var(--muted); }
.edit-diff-block { margin-bottom: 13px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; }
.edit-diff-block h3 { margin: 0 0 9px; font-size: 11px; }
.diff-before, .diff-after { padding: 10px 12px; border-radius: 8px; font-size: 11px; line-height: 1.7; white-space: pre-wrap; }
.diff-before { color: #8b5b4d; background: #fff2ed; text-decoration-color: #dba898; }
.diff-before::before { content: "修改前"; display: block; margin-bottom: 5px; color: #b66b53; font-size: 8px; font-weight: 700; }
.diff-after { margin-top: 7px; color: #275e4d; background: #eef7f3; }
.diff-after::before { content: "修改后"; display: block; margin-bottom: 5px; color: #3c8069; font-size: 8px; font-weight: 700; }
.edit-preview-actions { position: sticky; bottom: -26px; margin: 18px -26px -26px; padding: 15px 26px 20px; border-top: 1px solid var(--line); background: var(--paper); }
.article-reading-subtitle { margin: -8px 0 24px; color: var(--muted); font-size: 13px; }
.article-reading-content { max-width: 720px; margin: auto; font: 15px/2 Georgia, "Microsoft YaHei UI", serif; }
.article-reading-content p { margin: 0 0 18px; }
.article-preview-export { display: flex; align-items: center; justify-content: end; gap: 12px; margin-top: 25px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.article-preview-export a { color: var(--green); }

@media (max-width: 1250px) {
  .article-workbench-layout { grid-template-columns: 180px minmax(430px,1fr); }
  .article-ai-panel { position: static; grid-column: 2; max-height: none; }
}
@media (max-width: 850px) {
  .article-workbench-topbar { position: static; grid-template-columns: 1fr; }
  .article-workbench-actions { flex-wrap: wrap; }
  .article-workbench-layout { grid-template-columns: 1fr; }
  .article-outline-panel, .article-ai-panel { position: static; grid-column: auto; max-height: none; }
  .article-outline-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .article-document-panel { padding: 19px 15px; }
}

/* Conversation intake — staged, durable import workflow */
.project-dialog { width: min(980px, calc(100vw - 34px)); max-height: calc(100vh - 30px); overflow: auto; border-radius: 26px; }
.project-dialog form { padding: 0; }
.import-dialog-header { position: sticky; top: 0; z-index: 5; padding: 28px 32px 23px; border-bottom: 1px solid #e7e3da; background: rgba(252,250,245,.96); backdrop-filter: blur(16px); }
.import-dialog-header h2 { margin: 8px 0 6px; font-size: 30px; }
.import-dialog-header p { max-width: 620px; font-size: 11px; line-height: 1.65; }
.import-layout { display: grid; grid-template-columns: 190px minmax(0,1fr); min-height: 470px; background: #f8f6f0; }
.import-stepper { padding: 27px 21px; border-right: 1px solid #e4e0d7; background: linear-gradient(180deg,#173f34 0%,#12362d 100%); }
.import-step { position: relative; display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; min-height: 91px; color: #b9cfc7; }
.import-step:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 39px; bottom: 6px; width: 1px; background: rgba(255,255,255,.13); }
.import-step > span { position: relative; z-index: 1; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; font: 700 9px Georgia,serif; background: #173d33; }
.import-step strong,.import-step small { display: block; }
.import-step strong { margin-top: 3px; color: inherit; font-size: 11px; }
.import-step small { margin-top: 5px; font-size: 8px; line-height: 1.45; }
.import-step.active { color: white; }
.import-step.active > span { border-color: #efbd70; color: #173f34; background: #efbd70; box-shadow: 0 0 0 5px rgba(239,189,112,.12); }
.import-step.done { color: rgba(255,255,255,.82); }
.import-step.done > span { border-color: #89b6a6; color: white; background: #4c8b74; }
.import-step.done > span { font-size: 0; }
.import-step.done > span::after { content: "✓"; font: 700 11px Arial,sans-serif; }
.import-workspace { display: grid; align-content: start; gap: 14px; min-width: 0; padding: 26px 29px 28px; }
.import-panel,.student-preview,.import-progress-panel { border: 1px solid #e3dfd6; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(34,55,47,.035); }
.import-panel { padding: 19px 20px 20px; }
.import-panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-eyebrow { display: block; margin-bottom: 4px; color: #80500f; font: 700 8px/1.2 Arial,sans-serif; letter-spacing: .15em; }
.import-panel-heading h3,.import-progress-top h3 { margin: 0; font: 500 17px Georgia,"Microsoft YaHei UI",serif; }
.secure-note { padding: 5px 8px; border-radius: 99px; color: #445f57; background: #eef5f2; font-size: 8px; }
.import-panel label { display: grid; align-content: start; gap: 7px; min-width: 0; color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.import-panel input,.import-panel select { width: 100%; height: 44px; min-width: 0; padding: 0 12px; border: 1px solid #d8d5cc; border-radius: 10px; color: var(--ink); background: #fff; outline: none; }
.import-panel input:focus,.import-panel select:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(47,117,96,.1); }
.import-panel label > small { min-height: 13px; color: var(--muted); font-size: 8.5px; font-weight: 400; line-height: 1.5; }
.student-preview { overflow: hidden; border-color: #cddfd8; background: linear-gradient(135deg,#f5fbf8 0%,#fff 64%); }
.student-preview-head { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 20px; }
.preview-avatar { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; color: white; background: linear-gradient(145deg,#2f7560,#175443); box-shadow: 0 9px 18px rgba(23,84,67,.18); font: 600 19px Georgia,serif; }
.verified-badge { display: inline-block; margin-bottom: 5px; color: #2f7560; font-size: 9px; font-weight: 700; }
.student-preview-title h3 { margin: 0 0 4px; font: 500 20px Georgia,"Microsoft YaHei UI",serif; }
.student-preview-title p { margin: 0; color: var(--muted); font-size: 10px; }
.coverage-badge { min-width: 78px; padding: 10px 12px; border-left: 1px solid #d7e5df; text-align: center; }
.coverage-badge strong,.coverage-badge span { display: block; }
.coverage-badge strong { color: var(--green); font: 600 22px Georgia,serif; }
.coverage-badge span { margin-top: 2px; color: var(--muted); font-size: 8px; }
.student-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid #dfeae5; background: rgba(255,255,255,.62); }
.student-facts > div { min-width: 0; padding: 13px 15px; border-right: 1px solid #e6ece9; }
.student-facts > div:last-child { border-right: 0; }
.student-facts span,.student-facts strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.student-facts span { margin-bottom: 5px; color: var(--muted); font-size: 8px; }
.student-facts strong { font-size: 10px; }
.existing-project-notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 15px; border-top: 1px solid #edd9b8; color: #765a2e; background: #fcf4e6; font-size: 9px; }
.existing-project-notice strong { font-size: 9px; }
.import-progress-panel { padding: 22px; }
.import-progress-top { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.import-progress-top p { margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.progress-percent { color: var(--green); font: 500 28px Georgia,serif; }
.import-progress-track { height: 8px; margin: 19px 0 17px; overflow: hidden; border-radius: 99px; background: #e8e5dd; }
.import-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2e7761,#76a994); box-shadow: 0 0 14px rgba(47,117,96,.28); transition: width .45s ease; }
.import-live-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.import-live-stats > div { padding: 11px 12px; border: 1px solid #e8e4db; border-radius: 10px; background: #fbfaf6; }
.import-live-stats span,.import-live-stats strong { display: block; }
.import-live-stats span { margin-bottom: 5px; color: var(--muted); font-size: 8px; }
.import-live-stats strong { font-size: 11px; }
.current-activity { display: flex; align-items: center; gap: 9px; margin-top: 13px; padding: 10px 12px; border-radius: 9px; color: #45665b; background: #eef6f2; font-size: 9px; }
.current-activity i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #4d947b; box-shadow: 0 0 0 4px rgba(77,148,123,.12); animation: importPulse 1.45s ease-in-out infinite; }
.import-failure-notice { margin-top: 11px; padding: 10px 12px; border-radius: 9px; color: #914d3d; background: #fff0eb; font-size: 9px; line-height: 1.55; }
@keyframes importPulse { 50% { opacity: .42; transform: scale(.78); } }
.project-dialog .dialog-footer { position: sticky; bottom: 0; z-index: 5; min-height: 70px; margin: 0; padding: 14px 32px; border-top: 1px solid #e3dfd6; background: rgba(252,250,245,.97); backdrop-filter: blur(16px); }
.project-dialog .create-progress { color: var(--muted); font-size: 9px; }
  .project-dialog .dialog-actions .primary-button { min-width: 165px; }

@media (max-width: 760px) {
  .project-dialog { width: calc(100vw - 18px); max-height: calc(100vh - 18px); }
  .import-dialog-header { padding: 22px 20px 18px; }
  .import-layout { grid-template-columns: 1fr; }
  .import-stepper { display: grid; grid-template-columns: repeat(4,1fr); padding: 13px 14px; border-right: 0; }
  .import-step { display: block; min-height: 0; text-align: center; }
  .import-step:not(:last-child)::after { left: calc(50% + 20px); right: calc(-50% + 20px); top: 16px; bottom: auto; width: auto; height: 1px; }
  .import-step > span { margin: 0 auto 5px; }
  .import-step small { display: none; }
  .import-workspace { padding: 16px 14px 18px; }
  .student-preview-head { grid-template-columns: 46px minmax(0,1fr); }
  .preview-avatar { width: 46px; height: 46px; }
  .coverage-badge { grid-column: 1/-1; border-left: 0; border-top: 1px solid #d7e5df; }
  .student-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .student-facts > div:nth-child(2) { border-right: 0; }
  .student-facts > div:nth-child(-n+2) { border-bottom: 1px solid #e6ece9; }
  .content-settings-fields,.import-live-stats { grid-template-columns: 1fr; }
  .project-dialog .dialog-footer { align-items: stretch; padding: 12px 16px 16px; }
}

/* Four-node interview workflow */
.four-node-nav { grid-template-columns: minmax(0,1fr) 24px minmax(0,1fr) 24px minmax(0,1fr) 24px minmax(0,1fr); }
.six-node-nav { grid-template-columns: minmax(0,1fr) 18px minmax(0,1fr) 18px minmax(0,1fr) 18px minmax(0,1fr) 18px minmax(0,1fr) 18px minmax(0,1fr); }
.production-editor { width: 100%; min-height: 460px; resize: vertical; padding: 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; font: 13px/1.8 Consolas, "Microsoft YaHei UI", monospace; }
.production-status-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 16px 0; }
.production-status-grid > div { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); }
.production-status-grid small,.production-status-grid strong { display: block; }.production-status-grid small { color: var(--muted); font-size: 9px; }.production-status-grid strong { margin-top: 5px; font-size: 11px; overflow-wrap: anywhere; }
.meeting-source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.meeting-source-grid form { padding: 16px; border: 1px solid var(--line); border-radius: 12px; }.meeting-source-grid label { display: grid; gap: 7px; margin-bottom: 10px; font-size: 10px; font-weight: 700; }.meeting-source-grid input { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.workflow-nav button::after { content: attr(data-status); grid-column: 2; margin-top: 4px; color: var(--muted); font-size: 8px; }
.section-index { color: #a44731; }
.stage-panel .kicker, .rail-card .kicker, dialog .kicker { color: #805717; }
.workflow-nav button.blocked span { border-color: #c96f52; color: #9b422f; background: #fff0eb; }
.background-task-bar { display: flex; min-height: 42px; align-items: center; gap: 8px; margin: 12px 0; overflow-x: auto; }
.task-chip { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #dce8e3; border-radius: 10px; background: #f2f8f5; font-size: 9px; }
.task-chip.unpublished { border-color: #e7c994; color: #7b5928; background: #fff8e9; }
.task-chip button { border: 0; color: var(--green); background: transparent; font-weight: 700; cursor: pointer; }
.node-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.node-summary span { padding: 7px 10px; border-radius: 99px; color: var(--ink-soft); background: var(--cream); font-size: 9px; }
.profile-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-bottom: 15px; }
.profile-summary > div { min-width: 0; padding: 10px; border-radius: 9px; background: var(--cream); }.profile-summary small,.profile-summary strong { display: block; overflow-wrap: anywhere; }.profile-summary small { color: var(--muted); font-size: 8px; }.profile-summary strong { margin-top: 4px; font-size: 10px; }
.notification-center { position: relative; }.notification-center .icon-button { position: relative; }.notification-center .icon-button span { position: absolute; right: -4px; top: -5px; min-width: 17px; height: 17px; display: grid; place-items: center; border-radius: 99px; color: white; background: #bc563f; font-size: 8px; }
.notification-panel { position: absolute; z-index: 30; right: 0; top: calc(100% + 8px); width: min(340px,calc(100vw - 28px)); max-height: 430px; overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); box-shadow: 0 20px 55px rgba(20,50,42,.18); }.notification-panel.hidden { display: none; }
.notification-item { width: 100%; display: grid; gap: 4px; padding: 10px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; cursor: pointer; }.notification-item.unread { background: #eef7f3; }.notification-item small,.notification-item span { color: var(--muted); font-size: 8px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.record-list,.chapter-list,.knowledge-list,.review-list { display: grid; gap: 10px; }
.record-row,.timeline-edit-row,.highlight-row,.knowledge-row,.review-item { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 14px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.record-row p,.timeline-edit-row p,.highlight-row p,.knowledge-row p,.review-item p { margin: 5px 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.record-row small,.timeline-edit-row small,.highlight-row small,.review-item small { color: var(--muted); font-size: 8px; }
.timeline-edit-row > div:last-child { display: grid; gap: 7px; }
.timeline-edit-row select,.highlight-row select { max-width: 150px; }
.timeline-edit-row { grid-template-columns: minmax(0,1fr) minmax(220px,240px); }
.timeline-event-controls { min-width: 0; display: grid; gap: 8px; }
.timeline-event-controls label { min-width: 0; display: grid; grid-template-columns: 70px minmax(0,1fr); align-items: center; gap: 8px; color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.timeline-event-controls .timeline-missing-time { margin: -5px 0 0 78px; }
.timeline-event-controls input[type="date"],.timeline-event-controls select { width: 100%; min-width: 0; height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; font-size: 12px; }
.timeline-event-controls button { width: 100%; min-height: 36px; padding: 7px 9px; font-size: 11px; }
.question-editor { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.question-editor + .question-editor { margin-top: 10px; }
.question-editor:focus { outline: 3px solid rgba(47,117,96,.15); border-color: var(--green-2); }
.question-editor header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.question-editor header strong { flex: 1; }
.order-handle { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 9px; }
.question-editor textarea,.field-stack textarea,.form-grid textarea,.resolution-sheet textarea { width: 100%; min-width: 0; resize: vertical; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font: inherit; line-height: 1.6; }
.question-source { margin-top: 10px; color: var(--muted); font-size: 12px; }
.question-source summary { width: max-content; max-width: 100%; color: var(--green); cursor: pointer; font-weight: 700; }
.question-source p { margin: 8px 0; line-height: 1.6; white-space: pre-wrap; }
.question-source small { display: flex; flex-wrap: wrap; gap: 8px; }
.question-purpose { color: var(--muted); font-size: 9px; }
.inline-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 10px; color: var(--muted); font-size: 9px; }
.inline-fields input { width: 70px; padding: 6px; border: 1px solid var(--line); border-radius: 7px; }
.inline-fields button,.timeline-edit-row button,.highlight-row button,.review-item button,.knowledge-row button,.pagination button,.conflict-panel button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--green); background: #fff; cursor: pointer; }
.danger-link,.danger-button { color: #9f4937 !important; }
.field-stack,.form-grid label,.resolution-sheet label { display: grid; gap: 6px; color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.form-grid .wide { grid-column: 1/-1; }
.form-grid input,.form-grid select,.resolution-sheet input,.resolution-sheet select { width: 100%; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 16px; font-size: 9px; }
.conflict-panel { position: sticky; top: 10px; z-index: 8; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; padding: 13px; border: 1px solid #db9b83; border-radius: 12px; background: #fff4ef; box-shadow: var(--shadow-soft); }
.conflict-panel > div { min-width: 220px; flex: 1; }.conflict-panel p { margin: 3px 0 0; font-size: 9px; }
.offline-status { width: max-content; max-width: 100%; margin: -4px 0 12px; padding: 7px 10px; border: 1px solid #c7795e; border-radius: 999px; color: #713521; background: #fff4ef; font-size: 10px; font-weight: 700; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.conflict-comparison { flex-basis: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 6px; }
.conflict-comparison section { min-width: 0; padding: 9px; border: 1px solid #e8c8bb; border-radius: 8px; background: #fff; }
.conflict-comparison h4 { margin: 0 0 6px; font-size: 10px; }
.conflict-comparison pre { max-height: 190px; margin: 0; overflow: auto; white-space: pre-wrap; word-break: break-word; font: 9px/1.45 Consolas, monospace; }
@media (max-width: 700px) { .conflict-comparison { grid-template-columns: 1fr; } }

/* Uploaded source-document editor */
.project-document-button { float: right; margin: 0 0 12px 14px; }
.document-editor-dialog { width: min(1040px, calc(100vw - 30px)); }
.document-editor-toolbar { align-items: center; gap: 12px; }
.document-editor-toolbar > div { display: flex; flex-wrap: wrap; gap: 7px; }
.document-editor-toolbar a { text-decoration: none; }
.document-editor-body { padding-top: 4px; }
.document-editor-body label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 12px; font-weight: 700; }
.document-editor-body textarea { width: 100%; min-height: 52vh; resize: vertical; padding: 20px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fffefa; font: 14px/1.75 Consolas, "Microsoft YaHei UI", monospace; }
.document-editor-body textarea[readonly] { color: var(--muted); background: #f3f1eb; }
.document-editor-body p { margin: 9px 0 0; font-size: 11px; line-height: 1.6; }

@media (max-width: 760px) {
  .project-document-button { float: none; width: 100%; margin: 0 0 14px; }
  .document-editor-dialog { padding: 18px; }
  .document-editor-toolbar { align-items: stretch; flex-direction: column; }
  .document-editor-toolbar > div { display: grid; grid-template-columns: 1fr; }
  .document-editor-toolbar a { text-align: center; }
  .document-editor-body textarea { min-height: 46vh; padding: 14px; }
}
.review-panel { border-color: #dfae74; background: #fffaf0; }
.resolution-sheet { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(15,35,29,.58); }
.resolution-sheet form { position: relative; width: min(540px,100%); max-height: calc(100vh - 36px); display: grid; gap: 13px; overflow: auto; padding: 28px; border-radius: 18px; background: var(--paper); box-shadow: 0 25px 80px rgba(0,0,0,.25); }
.resolution-sheet h2 { margin: 0; }.resolution-sheet p { color: var(--muted); }
.knowledge-row { grid-template-columns: minmax(0,1fr) auto; }.knowledge-row details { grid-column: 1/-1; color: #914d3d; font-size: 9px; }
.question-example-dialog { width: min(760px, calc(100vw - 30px)); }
.question-example-dialog .form-grid { margin: 20px 0; }
.example-tag-field { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.example-tag-field legend { padding: 0 5px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.example-tag-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; max-height: 180px; overflow: auto; }
.example-tag-grid label, .question-example-dialog .example-confirm { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 400; }
.example-tag-grid input, .question-example-dialog .example-confirm input { width: auto; flex: 0 0 auto; }
.example-error { min-height: 20px; color: #a3412c; font-size: 12px; }
.question-example-row { align-items: start; }
.question-example-row h3 { margin: 6px 0; font-size: 14px; line-height: 1.5; }
.question-example-row .example-details { color: var(--ink-soft); font-size: 11px; }
.file-button { position: relative; overflow: hidden; }.file-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.evidence-item { padding: 9px 0; border-bottom: 1px solid var(--line); }.evidence-item strong,.evidence-item span { display: block; font-size: 8px; }.evidence-item span { margin-top: 3px; color: var(--muted); overflow-wrap: anywhere; }.evidence-item p { font-size: 9px; line-height: 1.5; }
.progress-item small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.error-panel { color: #8f4435; background: #fff3ee; }.fatal-view,.fatal-view body { min-height: 100%; }.fatal-view { display: grid; place-items: center; }

@media (max-width: 760px) { .n3-filter-row { grid-template-columns: minmax(0,1fr); } }

/* Evidence rail and source context */
.evidence-list { display: grid; gap: 9px; max-height: 420px; padding: 2px 3px 2px 0; }
.evidence-item { width: 100%; min-width: 0; display: grid; justify-items: start; gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; text-align: left; white-space: normal; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.evidence-item:hover { border-color: #a9c5ba; background: #f8fbf9; box-shadow: 0 5px 14px rgba(28,47,40,.06); }
.evidence-item:focus-visible { outline: 3px solid rgba(47,117,96,.24); outline-offset: 2px; }
.evidence-item-type { width: max-content; max-width: 100%; padding: 3px 7px; border-radius: 99px; color: var(--green); background: #edf6f2; font-size: 10px; font-weight: 700; line-height: 1.4; }
.evidence-item-title { max-width: 100%; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.evidence-item-value { max-width: 100%; color: var(--ink-soft); font-size: 12px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.evidence-item-hint { color: var(--muted); font-size: 10px; line-height: 1.5; }
.evidence-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.evidence-detail-grid > div { min-width: 0; display: grid; gap: 5px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.evidence-detail-grid small, .evidence-detail-value > small { color: var(--muted); font-size: 11px; }
.evidence-detail-grid strong { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.artifact-preview .structured-evidence-detail { display: grid; gap: 14px; margin: 0; padding: 17px; border: 1px solid #cfe0d9; border-radius: 13px; background: #f7fbf9; }
.evidence-detail-value { padding: 14px 16px; border-left: 3px solid var(--green-2); border-radius: 8px; background: #fff; }
.artifact-preview .evidence-detail-value p { margin: 6px 0 0; color: var(--ink); font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; white-space: pre-wrap; }
.structured-evidence-detail details { border-top: 1px solid var(--line); padding-top: 10px; }
.structured-evidence-detail summary { color: var(--green); cursor: pointer; font-size: 12px; font-weight: 700; }
.structured-evidence-detail dl { display: grid; gap: 8px; margin: 10px 0 0; }
.structured-evidence-detail dl > div { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 12px; font-size: 11px; line-height: 1.6; }
.structured-evidence-detail dt { color: var(--muted); }
.structured-evidence-detail dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.artifact-preview .source-context-item { margin: 0 0 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.artifact-preview .source-context-item.focused { border-color: #83ad9e; background: #f0f7f4; box-shadow: 0 0 0 3px rgba(47,117,96,.09); }
.source-context-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: 11px; }
.source-context-meta strong { color: var(--green); font-size: 11px; }
.artifact-preview .source-context-item p { margin: 9px 0 0; color: var(--ink); font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; white-space: pre-wrap; }

@media (max-width: 760px) {
  .evidence-detail-grid { grid-template-columns: minmax(0,1fr); }
  .artifact-dialog { padding: 18px; }
  .artifact-preview { max-height: 58vh; }
}

/* N1 rule evidence details */
.rule-evidence-details { grid-column: 1 / -1; min-width: 0; border-top: 1px solid var(--line); padding-top: 9px; }
.rule-evidence-details summary { width: max-content; max-width: 100%; color: var(--green); cursor: pointer; font-size: 11px; font-weight: 700; }
.rule-evidence-body { display: grid; gap: 8px; margin-top: 10px; padding: 12px; border-radius: 10px; background: #f8fbf9; }
.rule-evidence-body > p { display: grid; gap: 3px; margin: 0; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.rule-evidence-body > p small { color: var(--muted); font-size: 10px; }
.rule-evidence-body > p strong { color: var(--ink); font-size: 11px; }
.rule-evidence-links { display: flex; flex-wrap: wrap; gap: 7px; }
.rule-evidence-link { padding: 6px 9px; border: 1px solid #cfe0d9; border-radius: 8px; color: var(--green); background: #fff; font-size: 10px; font-weight: 700; cursor: pointer; }
.rule-evidence-link:hover { border-color: var(--green-2); background: #edf6f2; }
.rule-evidence-link.conflict { color: #934d36; border-color: #ead0c5; background: #fff8f5; }
.rule-no-evidence { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.rule-source-context { padding: 10px 12px; border-left: 3px solid var(--green-2); border-radius: 7px; background: #fff; }
.rule-source-context > strong { color: var(--green); font-size: 10px; }
.rule-source-context > p { margin: 5px 0 8px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.rule-source-context dl { display: grid; gap: 7px; margin: 0; }
.rule-source-context dl > div { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 10px; font-size: 11px; line-height: 1.6; }
.rule-source-context dt { color: var(--muted); }
.rule-source-context dd { min-width: 0; margin: 0; color: var(--ink); overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .four-node-nav { grid-template-columns: repeat(7,minmax(max-content,auto)); }
  .six-node-nav { grid-template-columns: repeat(11,minmax(max-content,auto)); overflow-x: auto; }
}
@media (max-width: 760px) {
  html,body { max-width: 100%; overflow-x: clip; }
  .main-nav { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .four-node-nav { width: auto; max-width: calc(100% + 28px); overflow-x: auto; overscroll-behavior-inline: contain; }
  .six-node-nav { width: auto; max-width: calc(100% + 28px); overflow-x: auto; overscroll-behavior-inline: contain; }
  .production-status-grid,.meeting-source-grid { grid-template-columns: minmax(0,1fr); }
  .workspace-layout,.stage-content,.stage-panel { min-width: 0; max-width: 100%; }
  .record-row,.timeline-edit-row,.highlight-row,.knowledge-row,.review-item { grid-template-columns: minmax(0,1fr); align-items: start; }
  .form-grid { grid-template-columns: minmax(0,1fr); }.form-grid .wide { grid-column: auto; }
  .profile-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .inline-fields { align-items: stretch; }.inline-fields button { min-height: 39px; }
  .resolution-sheet { padding: 8px; }.resolution-sheet form { padding: 22px 16px; }
}
