:root {
  --paper: #f3f1ec;
  --paper-light: #fbfaf6;
  --paper-deep: #e7e4dc;
  --ink: #202b3c;
  --ink-soft: #697281;
  --ink-faint: #9ca2aa;
  --line: #dedbd4;
  --line-dark: #c7c4bc;
  --panel: #fffefa;
  --red: #a92e42;
  --red-dark: #7d2335;
  --red-pale: #f5e5e8;
  --teal: #287d79;
  --teal-dark: #1d5f5c;
  --teal-pale: #e2f0ed;
  --gold: #b07835;
  --gold-pale: #f6eddc;
  --navy: #222d3f;
  --shadow: 0 18px 50px rgba(32, 43, 60, .07);
  --shadow-lift: 0 22px 60px rgba(32, 43, 60, .14);
  --sans: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --serif: "Source Serif 4", "Noto Serif SC", serif;
  --mono: "DM Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(32, 43, 60, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 43, 60, .035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: var(--sans);
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, transparent 0 49.8%, rgba(169, 46, 66, .035) 49.8% 50.2%, transparent 50.2%);
  opacity: .7;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(40, 125, 121, .24);
  outline-offset: 2px;
}
::selection { color: #fff; background: var(--red); }

.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: 244px;
  padding: 30px 18px 22px;
  overflow: hidden;
  background: var(--navy);
  color: #f5f3ef;
  box-shadow: 9px 0 35px rgba(26, 37, 53, .06);
}
.sidebar::before {
  position: absolute;
  inset: 0 0 auto;
  height: 176px;
  content: "";
  background:
    linear-gradient(90deg, transparent 49%, rgba(255,255,255,.075) 49% 50%, transparent 50%),
    linear-gradient(rgba(255,255,255,.075) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .45;
  mask-image: linear-gradient(#000, transparent);
}
.sidebar > * { position: relative; z-index: 1; }
.brand-lockup { display: flex; align-items: center; gap: 11px; padding: 0 10px 28px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.58);
  color: #fff7e9;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1;
  box-shadow: 4px 4px 0 rgba(214, 186, 143, .28);
}
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.brand-subtitle { margin-top: 2px; color: rgba(255,255,255,.53); font-size: 11px; }
.issue-stamp {
  position: relative;
  margin: 0 10px 29px;
  padding: 16px 15px 14px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.045);
}
.issue-stamp::after {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 6px;
  height: 6px;
  border: 1px solid #d6ba8f;
  content: "";
  transform: rotate(45deg);
}
.stamp-eyebrow, .eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.stamp-eyebrow { color: #d6ba8f; }
.stamp-title { margin-top: 8px; color: #fff7e9; font-family: var(--serif); font-size: 24px; }
.stamp-meta { margin-top: 2px; color: rgba(255,255,255,.58); font-size: 12px; }
.stamp-rule { width: 100%; height: 1px; margin: 14px 0 11px; background: rgba(255,255,255,.13); }
.stamp-deadline { display: flex; align-items: center; gap: 7px; color: #e7cfc4; font-size: 11px; }
.status-dot, .connection-light {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cc775e;
  box-shadow: 0 0 0 3px rgba(204,119,94,.12);
}
.connection-light.is-on { background: #65b5a2; box-shadow: 0 0 0 3px rgba(101,181,162,.13); }
.main-nav { display: grid; gap: 5px; }
.nav-item {
  display: grid;
  grid-template-columns: 19px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: rgba(255,255,255,.6);
  text-align: left;
  font-size: 13px;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.nav-item svg { width: 16px; height: 16px; stroke-width: 1.8; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); transform: translateX(3px); }
.nav-item.is-active {
  border-left-color: #d6ba8f;
  background: rgba(255,255,255,.1);
  color: #fff7e9;
  box-shadow: inset -2px 0 0 rgba(255,255,255,.05);
}
.nav-item.is-active::after { width: 4px; height: 4px; border-radius: 50%; background: #d6ba8f; content: ""; }
.nav-hint { color: rgba(255,255,255,.28); font-family: var(--mono); font-size: 10px; }
.sidebar-footer { margin-top: auto; padding: 18px 10px 0; border-top: 1px solid rgba(255,255,255,.11); }
.connection-row { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; color: rgba(255,255,255,.48); font-size: 11px; }
.footer-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.68);
  font-size: 12px;
}
.footer-button:hover { color: #fff; }
.footer-button svg { width: 15px; height: 15px; }

.main-area { width: calc(100% - 244px); min-height: 100vh; margin-left: 244px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 42px;
  border-bottom: 1px solid rgba(222,219,212,.9);
  background: rgba(243,241,236,.88);
  backdrop-filter: blur(14px);
}
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--ink-faint); font-size: 12px; }
.breadcrumb svg { width: 14px; height: 14px; }
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.topbar-date { color: var(--ink-faint); font-family: var(--mono); font-size: 10px; }
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.42);
  color: var(--ink-soft);
  transition: transform .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
}
.icon-button:hover { border-color: var(--ink-soft); background: #fff; color: var(--ink); transform: rotate(8deg); }
.icon-button svg { width: 16px; height: 16px; }
.avatar {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-family: var(--serif);
  font-size: 15px;
  box-shadow: 0 0 0 5px rgba(169,46,66,.09);
}

.view { display: none; padding: 42px; animation: view-in .35s ease both; }
.view.is-visible { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  max-width: 1220px;
  margin: 0 auto 30px;
}
.page-heading.compact { margin-bottom: 27px; }
.eyebrow { color: var(--red); }
.page-heading h1 {
  position: relative;
  max-width: 800px;
  margin: 7px 0 9px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.17;
}
.page-heading h1::after {
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 15px;
  background: var(--red);
  content: "";
  animation: title-rule 1.1s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes title-rule { from { width: 0; opacity: 0; } to { width: 52px; opacity: 1; } }
.page-heading p { max-width: 660px; margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.85; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid #ded5c7;
  background: rgba(255,254,250,.56);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .02em;
}
.hero-badge::before { width: 4px; height: 4px; margin-right: 6px; border-radius: 50%; background: var(--gold); content: ""; }
.heading-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 11px;
  border: 1px solid #d5e6e1;
  background: var(--teal-pale);
  color: var(--teal);
  font-size: 11px;
  white-space: nowrap;
}
.heading-note.warm { border-color: #ebddc7; background: var(--gold-pale); color: var(--gold); }
.heading-note svg { width: 14px; height: 14px; animation: gentle-spin 5s linear infinite; }
@keyframes gentle-spin { to { transform: rotate(360deg); } }
.panel {
  border: 1px solid var(--line);
  background: rgba(255,254,250,.91);
  box-shadow: var(--shadow);
  transition: box-shadow .25s ease, transform .25s ease;
}
.panel:hover { box-shadow: var(--shadow-lift); }
.topic-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 23px; max-width: 1220px; min-height: 632px; margin: 0 auto; }
.chat-panel { display: flex; flex-direction: column; min-height: 632px; overflow: hidden; }
.panel-topline { display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 13px 19px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(169,46,66,.035), transparent 48%); }
.panel-title { display: flex; align-items: center; gap: 11px; }
.panel-title strong { display: block; font-size: 13px; font-weight: 700; }
.panel-title span:not(.ai-orb):not(.file-orb) { display: block; margin-top: 3px; color: var(--ink-faint); font-size: 11px; }
.ai-orb, .file-orb {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red-pale);
  color: var(--red);
  box-shadow: 0 0 0 5px rgba(169,46,66,.06);
}
.ai-orb { animation: orb-breathe 3.2s ease-in-out infinite; }
@keyframes orb-breathe { 50% { box-shadow: 0 0 0 8px rgba(169,46,66,.02); transform: translateY(-1px); } }
.file-orb { background: var(--teal-pale); color: var(--teal); box-shadow: 0 0 0 5px rgba(40,125,121,.06); }
.ai-orb svg, .file-orb svg { width: 16px; height: 16px; }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 0; border: 0; background: transparent; color: var(--ink-faint); font-size: 11px; }
.text-button:hover { color: var(--red); }.text-button svg { width: 13px; height: 13px; transition: transform .2s ease; }.text-button:hover svg { transform: rotate(-45deg); }
.chat-messages { flex: 1; overflow: auto; padding: 25px 26px 12px; scroll-behavior: smooth; }
.message { display: flex; gap: 11px; max-width: 750px; margin-bottom: 22px; animation: message-in .35s ease both; }
.message.user { justify-content: flex-end; max-width: none; }
@keyframes message-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.message-mark { display: grid; flex: 0 0 auto; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--serif); font-size: 13px; box-shadow: 0 0 0 4px rgba(169,46,66,.08); }
.message.user .message-mark { order: 2; background: var(--ink); box-shadow: 0 0 0 4px rgba(32,43,60,.08); }
.message-body { max-width: 700px; }
.message-meta { margin: 0 0 6px 1px; color: var(--ink-faint); font-family: var(--mono); font-size: 9px; letter-spacing: .04em; }
.message.user .message-meta { text-align: right; }
.message-bubble { padding: 13px 15px; border: 1px solid #e3e0d9; background: #fcfbf8; color: #354052; font-size: 13px; line-height: 1.8; }
.message.user .message-bubble { border-color: #d2d9e2; background: #edf1f4; color: var(--ink); }
.message-bubble h2, .message-bubble h3 { margin: 12px 0 5px; color: var(--ink); font-family: var(--serif); font-size: 16px; font-weight: 600; }
.message-bubble h2:first-child, .message-bubble h3:first-child { margin-top: 0; }
.message-bubble p { margin: 4px 0; }.message-bubble ul, .message-bubble ol { margin: 5px 0 6px; padding-left: 19px; }.message-bubble li { margin: 3px 0; }.message-bubble strong { color: var(--red-dark); font-weight: 700; }
.typing { display: inline-flex; align-items: center; gap: 4px; height: 24px; }.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--red); animation: typing 1.1s infinite; }.typing i:nth-child(2) { animation-delay: .14s; }.typing i:nth-child(3) { animation-delay: .28s; }
@keyframes typing { 0%, 60%, 100% { opacity: .28; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.prompt-bank { padding: 13px 25px 10px; border-top: 1px solid var(--line); background: rgba(247,245,239,.65); }
.prompt-label { display: block; margin-bottom: 8px; color: var(--ink-faint); font-size: 10px; }
.prompt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.prompt-chip { padding: 7px 9px; border: 1px solid #e1ded8; border-radius: 2px; background: #fff; color: #6f7680; font-size: 11px; text-align: left; transition: border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; }
.prompt-chip:hover { border-color: #c8a9ae; color: var(--red); transform: translateY(-2px); box-shadow: 0 5px 12px rgba(169,46,66,.08); }
.composer { margin: 0 16px 16px; padding: 11px 13px 9px; border: 1px solid #cfcfc9; background: #fff; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.composer:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(40,125,121,.1), 0 8px 20px rgba(40,125,121,.05); transform: translateY(-2px); }
.composer textarea { display: block; width: 100%; min-height: 48px; resize: vertical; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; line-height: 1.7; }
.composer textarea::placeholder { color: #b2b4b7; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; color: var(--ink-faint); font-size: 10px; }
.composer-footer span { display: inline-flex; align-items: center; gap: 4px; }.composer-footer svg { width: 12px; height: 12px; }
.send-button { display: grid; place-items: center; width: 29px; height: 29px; border: 0; border-radius: 50%; background: var(--red); color: white; transition: .2s ease; box-shadow: 0 5px 12px rgba(169,46,66,.2); }
.send-button:hover { background: var(--red-dark); transform: translateY(-2px) rotate(-4deg); }.send-button:disabled { opacity: .5; cursor: wait; transform: none; }.send-button svg { width: 15px; height: 15px; }
.briefing-column { display: flex; flex-direction: column; gap: 21px; }
.briefing-section { padding: 17px 16px; border-top: 2px solid var(--ink); background: rgba(255,254,250,.62); transition: border-color .2s ease, transform .2s ease; }
.briefing-section:hover { border-top-color: var(--red); transform: translateY(-2px); }
.section-kicker { display: flex; align-items: center; justify-content: space-between; color: var(--ink); font-family: var(--mono); font-size: 10px; letter-spacing: .05em; }.section-kicker svg { width: 14px; height: 14px; color: var(--red); }.section-count { color: var(--ink-faint); font-family: var(--sans); letter-spacing: 0; }
.topic-list { display: grid; gap: 5px; margin-top: 14px; }
.topic-row { display: grid; grid-template-columns: 22px 1fr 14px; align-items: center; gap: 5px; padding: 8px 6px; border: 0; border-bottom: 1px solid #e8e5df; background: transparent; color: var(--ink-soft); text-align: left; transition: background .2s ease, color .2s ease, padding .2s ease; }
.topic-row:hover { padding-left: 10px; background: #fff; color: var(--red); }.topic-row.is-selected { background: var(--red-pale); color: var(--red-dark); box-shadow: inset 3px 0 0 var(--red); }
.topic-num { color: var(--ink-faint); font-family: var(--mono); font-size: 10px; }.topic-row.is-selected .topic-num { color: var(--red); }.topic-name { font-size: 11px; line-height: 1.4; }.topic-row svg { width: 13px; height: 13px; opacity: .5; transition: transform .2s ease; }.topic-row:hover svg { transform: translate(2px, -2px); }
.submission-brief { margin-top: auto; border-top-color: var(--red); }.brief-line { margin-top: 19px; color: var(--red); font-family: var(--serif); font-size: 33px; line-height: 1; }.brief-line strong { font-weight: 600; }.brief-line span { margin-left: 5px; font-size: 15px; }.brief-meta { margin-top: 8px; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }.brief-email { display: flex; align-items: center; gap: 6px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #e7e2d9; color: var(--teal); font-family: var(--mono); font-size: 10px; }.brief-email svg { width: 13px; height: 13px; }

.review-layout { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(330px, .97fr); gap: 23px; max-width: 1220px; margin: 0 auto; }.review-input, .review-result { min-height: 660px; }.draft-label { padding: 5px 8px; background: var(--paper-deep); color: var(--ink-faint); font-size: 10px; transition: background .2s ease, color .2s ease; }.review-input:has(textarea:not(:placeholder-shown)) .draft-label { background: var(--teal-pale); color: var(--teal); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 20px 22px 0; }.field { display: block; }.field > span { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: 11px; }.field input, .field select, .field textarea { width: 100%; border: 1px solid #d8d5ce; background: #fff; color: var(--ink); font-size: 12px; transition: border-color .2s ease, box-shadow .2s ease; }.field input, .field select { height: 38px; padding: 0 11px; }.field select { cursor: pointer; }.field textarea { padding: 11px; resize: vertical; line-height: 1.7; outline: 0; }.field input::placeholder, .field textarea::placeholder { color: #b4b6b8; }.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: 0; box-shadow: 0 0 0 3px rgba(40,125,121,.1); }
.upload-zone { position: relative; display: flex; align-items: center; gap: 11px; min-height: 74px; margin: 18px 22px; padding: 12px 14px; border: 1px dashed #c7c3bc; background: #faf9f5; color: var(--ink-soft); transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease; }.upload-zone:hover, .upload-zone.is-dragging { border-color: var(--teal); background: #f5fbf9; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(40,125,121,.08); }.upload-zone.is-dragging .upload-icon { animation: upload-bounce .7s ease-in-out infinite alternate; }@keyframes upload-bounce { to { transform: translateY(-4px); } }.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }.upload-icon { display: grid; flex: 0 0 auto; place-items: center; width: 32px; height: 32px; background: var(--teal-pale); color: var(--teal); }.upload-icon svg { width: 16px; height: 16px; }.upload-zone strong, .upload-zone span { display: block; }.upload-zone strong { color: var(--ink); font-size: 11px; }.upload-zone div > span { margin-top: 3px; color: var(--ink-faint); font-size: 10px; }.upload-status { margin-left: auto; color: var(--teal); font-size: 10px; text-align: right; }
.manuscript-field { padding: 0 22px; }.manuscript-field textarea { min-height: 280px; }.review-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px 17px; }.char-count { color: var(--ink-faint); font-family: var(--mono); font-size: 10px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 15px; border: 0; background: var(--red); color: white; font-size: 12px; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; box-shadow: 0 7px 15px rgba(169,46,66,.17); }.primary-button:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(169,46,66,.23); }.primary-button:disabled { opacity: .55; cursor: wait; }.primary-button svg { width: 15px; height: 15px; }
.empty-result { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-height: 600px; padding: 45px; text-align: center; }.empty-mark { display: grid; place-items: center; width: 55px; height: 55px; margin-bottom: 17px; border: 1px solid #d8e6e1; border-radius: 50%; background: var(--teal-pale); color: var(--teal); animation: float-mark 3s ease-in-out infinite; }.empty-mark svg { width: 25px; height: 25px; stroke-width: 1.4; }@keyframes float-mark { 50% { transform: translateY(-6px); box-shadow: 0 12px 24px rgba(40,125,121,.1); } }.empty-result h2 { margin: 0; font-family: var(--serif); font-size: 23px; font-weight: 600; }.empty-result p { max-width: 310px; margin: 10px 0 21px; color: var(--ink-soft); font-size: 12px; line-height: 1.8; }.result-checks { display: grid; gap: 8px; text-align: left; color: var(--ink-soft); font-size: 11px; }.result-checks span { display: flex; align-items: center; gap: 8px; }.result-checks svg { width: 14px; height: 14px; color: var(--teal); }
.result-filled { padding: 20px 22px 28px; animation: result-in .4s ease both; }@keyframes result-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }.result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }.result-head h2 { margin: 3px 0 5px; font-family: var(--serif); font-size: 21px; font-weight: 600; }.result-head p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }.decision-badge { flex: 0 0 auto; padding: 7px 9px; background: var(--gold-pale); color: var(--gold); font-size: 10px; }.result-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 15px 0 18px; }.metric { padding: 10px; background: #faf9f5; border-bottom: 2px solid var(--teal); transition: transform .2s ease, background .2s ease; }.metric:hover { background: var(--teal-pale); transform: translateY(-3px); }.metric-value { color: var(--red); font-family: var(--serif); font-size: 23px; }.metric-value small { margin-left: 2px; color: var(--ink-faint); font-family: var(--mono); font-size: 9px; }.metric-label { margin-top: 2px; color: var(--ink-faint); font-size: 10px; }.result-answer { max-height: 420px; overflow: auto; padding-right: 4px; }.result-answer h2, .result-answer h3 { margin: 17px 0 7px; font-family: var(--serif); font-size: 16px; font-weight: 600; }.result-answer h2:first-child, .result-answer h3:first-child { margin-top: 0; }.result-answer p, .result-answer li { color: #455062; font-size: 12px; line-height: 1.75; }.result-answer ul, .result-answer ol { margin: 5px 0; padding-left: 18px; }.result-answer strong { color: var(--red-dark); }.result-actions { display: flex; justify-content: flex-end; margin-top: 17px; }.copy-button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; border: 0; background: transparent; color: var(--ink-soft); font-size: 11px; }.copy-button:hover { color: var(--red); }.copy-button svg { width: 14px; height: 14px; }

.rules-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 23px; max-width: 1220px; margin: 0 auto; }.rules-list { padding: 22px 24px 26px; }.panel-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }.panel-heading-row h2 { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 600; }.source-tag { color: var(--ink-faint); font-size: 10px; }.rule-item { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 19px 0; border-bottom: 1px solid #e7e3dd; transition: padding .2s ease, background .2s ease; }.rule-item:hover { padding-left: 8px; background: #fff; }.rule-item:last-child { border-bottom: 0; }.rule-index { color: var(--red); font-family: var(--mono); font-size: 11px; }.rule-item p { margin: 0; color: #465063; font-size: 13px; line-height: 1.8; }
.contact-card { align-self: start; padding: 23px 20px; border-top: 2px solid var(--teal); background: #e6f0ec; transition: transform .25s ease, box-shadow .25s ease; }.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }.contact-symbol { margin-bottom: 20px; color: var(--teal); font-family: var(--serif); font-size: 42px; }.contact-card .eyebrow { color: var(--teal); }.contact-card h2 { margin: 7px 0 9px; font-family: var(--serif); font-size: 23px; font-weight: 600; }.contact-card p { margin: 0 0 22px; color: #4f6b68; font-size: 12px; line-height: 1.8; }.contact-detail { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--teal); font-family: var(--mono); font-size: 10px; }.contact-detail svg { width: 14px; height: 14px; }

.issue-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; max-width: 1220px; margin: 0 auto; }.issue-card { --tilt-x: 0deg; --tilt-y: 0deg; position: relative; min-height: 206px; padding: 20px 21px; overflow: hidden; border: 1px solid var(--line); border-top: 2px solid var(--red); background: rgba(255,254,250,.93); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }.issue-card::after { position: absolute; right: -18px; bottom: -28px; z-index: 0; width: 94px; height: 94px; border: 1px solid rgba(169,46,66,.12); border-radius: 50%; content: ""; pointer-events: none; transition: transform .35s ease; }.issue-card:hover { border-color: #cbb3b7; transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-6px); box-shadow: var(--shadow-lift); }.issue-card:hover::after { transform: scale(1.25); }.issue-card-top, .issue-card h2, .issue-card p, .issue-card-bottom { position: relative; z-index: 1; }.issue-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }.issue-card-num { color: var(--red); font-family: var(--mono); font-size: 11px; }.issue-card-top > svg { width: 15px; height: 15px; color: var(--ink-faint); }.issue-card h2 { margin: 6px 0 8px; font-family: var(--serif); font-size: 19px; line-height: 1.35; font-weight: 600; }.issue-card p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.75; }.issue-card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 12px; border-top: 1px solid #ebe7e0; }.issue-card-bottom span { color: var(--ink-faint); font-size: 10px; }.issue-card-bottom button { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: var(--red); font-size: 10px; }.issue-card-bottom button:hover { color: var(--red-dark); }.issue-card-bottom svg { width: 13px; height: 13px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: rgba(31,40,54,.42); animation: backdrop-in .2s ease both; }.modal-backdrop[hidden] { display: none; }.modal { position: relative; width: min(420px, 100%); padding: 28px; background: var(--panel); box-shadow: 0 18px 70px rgba(24,31,43,.2); animation: modal-in .25s ease both; }.modal-close { position: absolute; top: 15px; right: 15px; }.modal h2 { margin: 7px 0 10px; font-family: var(--serif); font-size: 25px; }.modal p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.8; }.setup-box { display: grid; gap: 8px; margin: 18px 0; padding: 13px; background: #f2f1ed; }.setup-box code { color: var(--ink); font-family: var(--mono); font-size: 10px; word-break: break-all; }.modal-status { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 11px; }.modal-action { width: 100%; margin-top: 22px; }@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }@keyframes modal-in { from { opacity: 0; transform: translateY(9px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.toast { position: fixed; right: 28px; bottom: 23px; z-index: 20; max-width: 360px; padding: 10px 13px; border-left: 3px solid var(--gold); background: var(--ink); color: #fff; font-size: 11px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: .22s ease; }.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1080px) {
  .view { padding: 32px 28px; }.topbar { padding: 0 28px; }.topic-layout, .rules-layout { grid-template-columns: minmax(0, 1fr) 260px; }.review-layout { grid-template-columns: 1fr; }.review-result { min-height: 500px; }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: 100%; min-height: auto; padding: 17px 16px 12px; }.app-shell { display: block; }.main-area { width: 100%; margin-left: 0; }.brand-lockup { padding: 0 2px 16px; }.issue-stamp, .sidebar-footer { display: none; }.main-nav { display: flex; overflow-x: auto; padding-bottom: 3px; }.nav-item { min-width: 112px; grid-template-columns: 17px 1fr; padding: 9px 8px; }.nav-hint { display: none; }.topbar { height: 57px; padding: 0 16px; }.topbar-date { display: none; }.view { padding: 26px 15px 30px; }.page-heading { display: block; margin-bottom: 22px; }.page-heading h1 { font-size: 29px; }.heading-note { display: inline-flex; margin-top: 15px; }.topic-layout, .rules-layout, .review-layout { display: block; }.briefing-column { margin-top: 20px; }.submission-brief { margin-top: 20px; }.chat-panel { min-height: 640px; }.chat-messages { padding: 20px 15px 10px; }.prompt-bank { padding: 12px 15px 10px; }.prompt-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }.prompt-chip { flex: 0 0 auto; }.form-grid { grid-template-columns: 1fr; padding: 17px 15px 0; }.upload-zone { margin: 15px; }.manuscript-field { padding: 0 15px; }.review-footer { padding: 14px 15px 16px; }.review-result { margin-top: 20px; }.empty-result { min-height: 450px; padding: 32px 20px; }.rules-list { padding: 17px 15px 20px; }.panel-heading-row { align-items: flex-start; flex-direction: column; }.contact-card { margin-top: 20px; }.issue-grid { grid-template-columns: 1fr; }.issue-card h2 { font-size: 18px; }.result-filled { padding: 18px 15px 24px; }.result-head h2 { font-size: 19px; }.hero-badges { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.writing-layout {
  display: grid;
  grid-template-columns: 275px minmax(0, 1fr);
  gap: 23px;
  max-width: 1220px;
  margin: 0 auto;
}
.writing-rail {
  align-self: start;
  overflow: hidden;
}
.writing-rail-head {
  padding: 17px 18px 15px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(40,125,121,.05), transparent);
}
.writing-topic-field {
  display: block;
  padding: 16px 17px 12px;
}
.writing-topic-field span {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 10px;
}
.writing-topic-field select {
  width: 100%;
  height: 35px;
  padding: 0 9px;
  border: 1px solid #d8d5ce;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
}
.writing-steps {
  display: grid;
  gap: 3px;
  padding: 4px 10px 15px;
}
.writing-step {
  position: relative;
  display: grid;
  grid-template-columns: 25px 1fr 15px;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 7px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  text-align: left;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.writing-step:hover { background: #faf9f5; color: var(--ink); transform: translateX(2px); }
.writing-step.is-active {
  border-left-color: var(--teal);
  background: var(--teal-pale);
  color: var(--teal-dark);
}
.writing-step > span {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 10px;
}
.writing-step.is-active > span { color: var(--teal); }
.writing-step strong, .writing-step small { display: block; }
.writing-step strong { font-size: 11px; font-weight: 600; }
.writing-step small { margin-top: 3px; color: var(--ink-faint); font-size: 9px; }
.writing-step > svg { width: 13px; height: 13px; color: var(--teal); opacity: 0; transform: scale(.7); transition: opacity .2s ease, transform .2s ease; }
.writing-step.is-done > svg { opacity: 1; transform: scale(1); }
.writing-progress {
  margin: 0 17px 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.writing-progress-top { display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: 10px; }
.writing-progress-top strong { color: var(--teal); font-family: var(--mono); font-size: 10px; }
.progress-track { height: 4px; margin: 9px 0 8px; overflow: hidden; background: #e2e2dc; }
.progress-track span { display: block; height: 100%; background: var(--teal); transition: width .35s ease; }
.writing-progress small { display: block; color: var(--ink-faint); font-size: 10px; line-height: 1.6; }
.writing-workbench { min-height: 680px; overflow: hidden; }
.writing-main-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(280px, .78fr); min-height: 610px; }
.writing-editor-column { min-width: 0; padding: 20px 22px 22px; border-right: 1px solid var(--line); }
.writing-task-card { padding: 14px 15px; border-left: 3px solid var(--gold); background: var(--gold-pale); }
.writing-task-card .section-kicker { color: var(--gold); }
.writing-task-card p { margin: 8px 0 0; color: #695437; font-size: 12px; line-height: 1.75; }
.writing-draft-field { margin-top: 19px; }
.writing-draft-field textarea { min-height: 315px; }
.writing-editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 11px; }
.writing-editor-actions { display: flex; align-items: center; gap: 10px; }
.writing-editor-actions .primary-button { min-height: 33px; padding: 0 11px; font-size: 11px; }
.writing-next-button { background: var(--teal); box-shadow: 0 7px 15px rgba(40,125,121,.16); }
.writing-next-button:hover { background: var(--teal-dark); box-shadow: 0 10px 20px rgba(40,125,121,.22); }
.writing-quick-prompts { margin-top: 19px; padding-top: 13px; border-top: 1px solid var(--line); }
.writing-quick-prompts > span { display: block; margin-bottom: 8px; color: var(--ink-faint); font-size: 10px; }
#writingQuickPrompts { display: flex; flex-wrap: wrap; gap: 6px; }
.writing-quick-prompt { padding: 6px 8px; border: 1px solid #dfddd5; background: #fff; color: var(--ink-soft); font-size: 10px; transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.writing-quick-prompt:hover { border-color: #b7d6d0; color: var(--teal); transform: translateY(-2px); }
.writing-coach { min-width: 0; padding: 20px 20px 24px; background: rgba(248,250,247,.58); }
.writing-coach-head { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.writing-coach-head h2 { margin: 4px 0 0; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.writing-coach-head > svg { width: 17px; height: 17px; color: var(--teal); animation: gentle-spin 5s linear infinite; }
.writing-feedback { overflow: auto; max-height: 515px; padding-top: 18px; }
.writing-feedback-empty { display: flex; flex-direction: column; align-items: flex-start; padding: 28px 8px; }
.writing-feedback-empty > svg { width: 27px; height: 27px; margin-bottom: 16px; color: var(--teal); stroke-width: 1.4; }
.writing-feedback-empty strong { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.writing-feedback-empty p { max-width: 245px; margin: 8px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.8; }
.writing-feedback-answer h2, .writing-feedback-answer h3 { margin: 16px 0 7px; font-family: var(--serif); font-size: 17px; font-weight: 600; }
.writing-feedback-answer h2:first-child, .writing-feedback-answer h3:first-child { margin-top: 0; }
.writing-feedback-answer p, .writing-feedback-answer li { color: #455062; font-size: 12px; line-height: 1.8; }
.writing-feedback-answer ul, .writing-feedback-answer ol { margin: 5px 0 8px; padding-left: 18px; }
.writing-feedback-answer strong { color: var(--teal-dark); }
.writing-feedback-loading { display: flex; flex-direction: column; align-items: flex-start; padding: 25px 8px; color: var(--ink-soft); }
.writing-feedback-loading p { margin: 9px 0 0; font-size: 11px; }

@media (max-width: 1080px) {
  .writing-layout { grid-template-columns: 235px minmax(0, 1fr); }
  .writing-main-grid { grid-template-columns: 1fr; }
  .writing-editor-column { border-right: 0; border-bottom: 1px solid var(--line); }
  .writing-coach { min-height: 340px; }
}
@media (max-width: 760px) {
  .writing-layout { display: block; }
  .writing-rail { margin-bottom: 20px; }
  .writing-steps { grid-template-columns: repeat(5, minmax(132px, 1fr)); overflow-x: auto; padding-bottom: 10px; }
  .writing-step { min-width: 132px; border-top: 2px solid transparent; border-left: 0; }
  .writing-step.is-active { border-top-color: var(--teal); border-left: 0; }
  .writing-main-grid { display: block; }
  .writing-workbench { min-height: 0; }
  .writing-editor-column { padding: 16px 15px 18px; }
  .writing-editor-footer { align-items: flex-start; flex-direction: column; }
  .writing-editor-actions { width: 100%; justify-content: space-between; gap: 6px; }
  .writing-editor-actions .primary-button { flex: 1; }
  .writing-coach { min-height: 360px; padding: 18px 15px 22px; }
}
