:root {
  --rn-ink: #261910;
  --rn-ink-soft: #503a2b;
  --rn-muted: #786654;
  --rn-paper: #fbf5e8;
  --rn-paper-deep: #ead8b8;
  --rn-line: rgba(108, 68, 34, .18);
  --rn-ochre: #b9672f;
  --rn-ochre-deep: #74351d;
  --rn-gold: #d29b4d;
  --rn-purple: #6d566f;
  --rn-jade: #46695a;
  --rn-jade-deep: #274a3e;
  --rn-red: #9d342c;
  --rn-red-soft: #fff0e9;
  --rn-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", ui-serif, Georgia, serif;
  --rn-ui: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Inter, ui-sans-serif, system-ui, sans-serif;
  --rn-shadow: 0 28px 70px -42px rgba(28, 12, 5, .82);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: #1b110a; }
body { min-height: 100vh; margin: 0; color: var(--rn-ink); background: #1b110a; font-family: var(--rn-ui); }
body.rn-lock { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #efad55; outline-offset: 3px; }
[hidden] { display: none !important; }
.rn-bg { position: fixed; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(24, 12, 5, .42), rgba(27, 15, 8, .84)), url("assets/hero-renji-bg.jpg") center / cover no-repeat; }
.rn-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 13% 8%, rgba(226, 151, 69, .2), transparent 33%), radial-gradient(circle at 88% 82%, rgba(70, 105, 90, .18), transparent 35%); pointer-events: none; }
.rn-shell { position: relative; z-index: 1; width: min(1320px, calc(100% - 36px)); margin: 0 auto; padding: 18px 0 40px; }
.rn-top { min-height: 64px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; color: #fff0d5; }
.rn-back, .rn-top-btn { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 15px; border: 1px solid rgba(255, 220, 157, .34); border-radius: 999px; color: #fff0d4; background: rgba(34, 18, 9, .48); text-decoration: none; font-size: 12px; transition: .18s ease; }
.rn-back:hover, .rn-top-btn:hover { transform: translateY(-1px); border-color: rgba(255, 220, 157, .72); background: rgba(58, 29, 13, .7); }
.rn-brand { min-width: 0; display: flex; align-items: center; gap: 12px; }
.rn-seal { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255, 222, 166, .52); border-radius: 50%; color: #fff4dc; background: linear-gradient(145deg, #bd692f, #6e2d17); box-shadow: inset 0 1px 0 rgba(255,255,255,.26), 0 0 22px rgba(221,132,55,.22); font: 700 23px/1 var(--rn-serif); }
.rn-brand-copy { min-width: 0; display: grid; gap: 2px; }
.rn-brand-copy b { overflow: hidden; font: 650 21px/1.2 var(--rn-serif); letter-spacing: .12em; text-overflow: ellipsis; white-space: nowrap; }
.rn-brand-copy span { color: rgba(255,236,204,.7); font-size: 10px; letter-spacing: .11em; }
.rn-top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.rn-member { min-height: 30px; display: inline-flex; align-items: center; padding: 6px 11px; border: 1px solid rgba(255,217,148,.35); border-radius: 999px; color: #3b2114; background: linear-gradient(135deg,#ffe2a4,#d39448); font-size: 10.5px; font-weight: 750; letter-spacing: .06em; }
.rn-intro { margin: 8px 0 16px; padding: 14px 17px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid rgba(247,205,132,.25); border-radius: 14px; color: rgba(255,239,210,.82); background: rgba(40,20,9,.52); backdrop-filter: blur(14px); }
.rn-intro p { margin: 0; font-size: 12px; line-height: 1.65; }
.rn-intro strong { color: #ffe7b7; }
.rn-intro-tag { flex: 0 0 auto; padding: 6px 10px; border: 1px solid rgba(255,218,151,.3); border-radius: 999px; color: #ffdda0; font: 600 10.5px/1.2 var(--rn-serif); letter-spacing: .1em; white-space: nowrap; }
.rn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 16px; }
.rn-entry { min-width: 0; min-height: 580px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(240,210,161,.52); border-radius: 22px; background: linear-gradient(180deg, rgba(255,250,239,.98), rgba(241,225,196,.96)); box-shadow: var(--rn-shadow), inset 0 1px 0 rgba(255,255,255,.92); }
.rn-entry.is-syndrome { border-color: rgba(168,197,179,.48); background: linear-gradient(180deg,rgba(250,251,241,.98),rgba(224,230,207,.96)); }
.rn-entry-head { min-height: 170px; position: relative; padding: 25px 26px 22px; border-bottom: 1px solid var(--rn-line); background: radial-gradient(circle at 94% 0%, rgba(190,113,48,.18), transparent 35%), rgba(255,255,255,.32); }
.rn-entry.is-syndrome .rn-entry-head { background: radial-gradient(circle at 94% 0%, rgba(70,105,90,.22), transparent 36%), rgba(255,255,255,.3); }
.rn-kicker { display: block; margin-bottom: 7px; color: var(--rn-ochre); font-size: 9.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.rn-entry.is-syndrome .rn-kicker { color: var(--rn-jade); }
.rn-entry-head h1, .rn-entry-head h2 { max-width: calc(100% - 64px); margin: 0; font: 650 clamp(26px, 2.5vw, 36px)/1.2 var(--rn-serif); letter-spacing: .08em; }
.rn-entry-head p { max-width: 560px; margin: 10px 0 0; color: var(--rn-muted); font-size: 12px; line-height: 1.7; }
.rn-entry-mark { position: absolute; top: 24px; right: 25px; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(169,97,42,.3); border-radius: 50%; color: var(--rn-ochre-deep); background: rgba(255,246,227,.86); font: 600 16px/1 var(--rn-serif); }
.rn-entry.is-syndrome .rn-entry-mark { color: var(--rn-jade-deep); border-color: rgba(70,105,90,.28); background: rgba(239,246,231,.86); }
.rn-entry-body { flex: 1; display: flex; flex-direction: column; gap: 15px; padding: 20px 25px 25px; }
.rn-case { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 14px 15px; border: 1px solid rgba(125,84,47,.18); border-left: 3px solid var(--rn-ochre); border-radius: 12px; background: rgba(255,255,255,.58); }
.rn-case-copy { min-width: 0; display: grid; gap: 4px; }
.rn-case-copy b { overflow: hidden; font: 650 15px/1.3 var(--rn-serif); letter-spacing: .05em; text-overflow: ellipsis; white-space: nowrap; }
.rn-case-copy span { color: var(--rn-muted); font-size: 10.5px; line-height: 1.55; }
.rn-case a { color: var(--rn-ochre-deep); font-size: 10.5px; text-decoration: none; white-space: nowrap; }
.rn-system-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rn-system-card { min-width: 0; padding: 14px; border: 1px solid rgba(125,84,47,.15); border-radius: 13px; background: rgba(255,253,247,.68); }
.rn-system-card i { width: 29px; height: 29px; display: grid; place-items: center; margin-bottom: 9px; border-radius: 50%; color: white; background: var(--rn-ochre-deep); font: normal 600 13px/1 var(--rn-serif); }
.rn-system-card.is-ziwei i { background: var(--rn-purple); }
.rn-system-card b { display: block; font: 650 13px/1.3 var(--rn-serif); }
.rn-system-card span { display: block; margin-top: 5px; color: var(--rn-muted); font-size: 10px; line-height: 1.55; }
.rn-explain { margin: 0; padding: 12px 13px; border-radius: 10px; color: #69523e; background: rgba(216,184,129,.2); font-size: 10.5px; line-height: 1.65; }
.rn-feature-list { display: grid; gap: 9px; }
.rn-feature-row { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 11px; align-items: start; padding: 12px 13px; border: 1px solid rgba(70,105,90,.15); border-radius: 12px; background: rgba(255,255,255,.58); }
.rn-feature-row span:first-child { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #f7f1dd; background: var(--rn-jade-deep); font: 600 11px/1 var(--rn-serif); }
.rn-feature-row b { display: block; font: 650 12.5px/1.35 var(--rn-serif); }
.rn-feature-row small { display: block; margin-top: 3px; color: var(--rn-muted); font-size: 10px; line-height: 1.55; }
.rn-entry-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.rn-entry-meta span { padding: 5px 8px; border: 1px solid rgba(70,105,90,.18); border-radius: 999px; color: var(--rn-jade-deep); background: rgba(255,255,255,.44); font-size: 9.5px; }
.rn-entry-action { margin-top: auto; display: grid; gap: 8px; }
.rn-primary, .rn-secondary, .rn-danger-btn { min-height: 50px; width: 100%; border-radius: 12px; font-weight: 750; letter-spacing: .06em; }
.rn-primary { border: 1px solid rgba(111,53,29,.45); color: #fff8e9; background: linear-gradient(135deg,var(--rn-ochre),var(--rn-ochre-deep)); box-shadow: 0 14px 26px -18px rgba(116,53,29,.9); }
.rn-entry.is-syndrome .rn-primary, .rn-primary.is-jade { border-color: rgba(39,74,62,.45); background: linear-gradient(135deg,#5c7e69,var(--rn-jade-deep)); box-shadow: 0 14px 26px -18px rgba(39,74,62,.9); }
.rn-primary:disabled { cursor: not-allowed; opacity: .52; filter: grayscale(.15); }
.rn-secondary { border: 1px solid var(--rn-line); color: var(--rn-ink-soft); background: rgba(255,255,255,.55); }
.rn-danger-btn { border: 1px solid rgba(157,52,44,.3); color: var(--rn-red); background: var(--rn-red-soft); }
.rn-call-note { color: var(--rn-muted); font-size: 9.5px; text-align: center; }
.rn-foot { margin: 15px auto 0; color: rgba(255,238,207,.63); font-size: 9.5px; line-height: 1.65; text-align: center; }

.rn-layer { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(22,12,6,.7); backdrop-filter: blur(12px); }
.rn-layer-card { width: min(980px,100%); max-height: min(90vh,920px); overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(235,201,143,.52); border-radius: 20px; background: linear-gradient(180deg,#fbf5e9,#ecdbc0); box-shadow: 0 35px 100px -32px rgba(17,8,3,.95); }
.rn-layer-card.is-history { width: min(760px,100%); }
.rn-layer-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; border-bottom: 1px solid var(--rn-line); background: rgba(255,255,255,.38); }
.rn-layer-title { min-width: 0; }
.rn-layer-title span { display: block; color: var(--rn-ochre); font-size: 8.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.rn-layer-title h2, .rn-layer-title h3 { margin: 3px 0 0; font: 650 18px/1.25 var(--rn-serif); letter-spacing: .07em; }
.rn-icon-btn { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--rn-line); border-radius: 50%; color: var(--rn-ink); background: rgba(255,255,255,.54); font-size: 20px; line-height: 1; }
.rn-layer-body { min-height: 0; overflow: auto; padding: 18px; }
.rn-layer-actions { flex: 0 0 auto; display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--rn-line); background: rgba(255,255,255,.38); }
.rn-layer-actions button { width: auto; min-height: 40px; padding: 8px 14px; border-radius: 10px; font-size: 11px; }
.rn-loading { min-height: 430px; display: grid; align-content: center; justify-items: center; gap: 20px; text-align: center; }
.rn-loading-orbit { width: 92px; height: 92px; position: relative; display: grid; place-items: center; border: 1px solid rgba(185,103,47,.25); border-radius: 50%; }
.rn-loading-orbit::before, .rn-loading-orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px dashed rgba(185,103,47,.42); animation: rn-spin 8s linear infinite; }
.rn-loading-orbit::before { inset: 9px; }
.rn-loading-orbit::after { inset: -8px; animation-direction: reverse; animation-duration: 13s; }
.rn-loading-orbit b { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; color: #fff6e4; background: linear-gradient(145deg,var(--rn-ochre),var(--rn-ochre-deep)); font: 650 22px/1 var(--rn-serif); }
@keyframes rn-spin { to { transform: rotate(360deg); } }
.rn-loading-copy h3 { margin: 0; font: 650 22px/1.3 var(--rn-serif); letter-spacing: .07em; }
.rn-loading-copy p { margin: 7px 0 0; color: var(--rn-muted); font-size: 11px; }
.rn-progress-list { width: min(460px,100%); display: grid; gap: 9px; }
.rn-progress-item { display: grid; grid-template-columns: 22px minmax(0,1fr); align-items: center; gap: 9px; color: #9b8873; font-size: 11px; text-align: left; transition: color .25s; }
.rn-progress-item i { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--rn-line); border-radius: 50%; font-style: normal; font-size: 9px; }
.rn-progress-item.is-active { color: var(--rn-ochre-deep); font-weight: 700; }
.rn-progress-item.is-active i { color: white; border-color: var(--rn-ochre); background: var(--rn-ochre); box-shadow: 0 0 0 4px rgba(185,103,47,.12); }
.rn-progress-item.is-done { color: var(--rn-jade); }
.rn-progress-item.is-done i { color: white; border-color: var(--rn-jade); background: var(--rn-jade); }
.rn-error-state { min-height: 350px; display: grid; align-content: center; justify-items: center; gap: 11px; text-align: center; }
.rn-error-state h3 { margin: 0; font: 650 21px/1.3 var(--rn-serif); }
.rn-error-state p { max-width: 580px; margin: 0; color: var(--rn-muted); font-size: 11px; line-height: 1.65; }
.rn-report { display: grid; gap: 14px; }
.rn-report-hero { padding: 20px; border: 1px solid rgba(185,103,47,.2); border-radius: 16px; background: linear-gradient(135deg,rgba(255,252,242,.94),rgba(236,211,169,.72)); }
.rn-report-hero h2 { margin: 5px 0 8px; font: 650 clamp(24px,3vw,34px)/1.25 var(--rn-serif); letter-spacing: .07em; }
.rn-report-hero p { margin: 0; color: var(--rn-ink-soft); font-size: 12px; line-height: 1.8; }
.rn-mini-label { color: var(--rn-ochre); font-size: 8.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.rn-keywords { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.rn-keywords span { padding: 5px 9px; border: 1px solid rgba(185,103,47,.18); border-radius: 999px; color: var(--rn-ochre-deep); background: rgba(255,255,255,.54); font-size: 10px; }
.rn-evidence-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rn-evidence-detail { padding: 16px; border: 1px solid var(--rn-line); border-radius: 14px; background: rgba(255,255,255,.58); }
.rn-evidence-detail.is-ziwei { border-color: rgba(109,86,111,.24); }
.rn-evidence-detail h3 { margin: 5px 0 7px; font: 650 16px/1.4 var(--rn-serif); }
.rn-evidence-detail p, .rn-report-section p { margin: 0; color: var(--rn-ink-soft); font-size: 11px; line-height: 1.75; }
.rn-report-section { padding: 16px; border: 1px solid var(--rn-line); border-radius: 14px; background: rgba(255,255,255,.46); }
.rn-report-section > h3, .rn-secondary-wrap > h3 { margin: 0 0 11px; font: 650 15px/1.35 var(--rn-serif); letter-spacing: .06em; }
.rn-report-list { margin: 8px 0 0; padding-left: 18px; color: var(--rn-ink-soft); font-size: 10.5px; line-height: 1.7; }
.rn-report-list li + li { margin-top: 4px; }
.rn-signal-grid, .rn-focus-grid, .rn-advice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.rn-signal-card, .rn-focus-card, .rn-advice-card, .rn-secondary-card, .rn-dimension, .rn-classic-card { min-width: 0; padding: 12px; border: 1px solid var(--rn-line); border-radius: 11px; background: rgba(255,255,255,.56); }
.rn-signal-card > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rn-signal-card b, .rn-focus-card h4, .rn-advice-card > b, .rn-secondary-card b, .rn-dimension b, .rn-classic-card b { margin: 0; font: 650 12px/1.35 var(--rn-serif); }
.rn-signal-card p, .rn-focus-card p, .rn-secondary-card p, .rn-dimension p, .rn-classic-card p { margin: 6px 0 0; color: var(--rn-muted); font-size: 10px; line-height: 1.65; }
.rn-strength { flex: 0 0 auto; padding: 3px 6px; border-radius: 999px; font-size: 8.5px; }
.rn-strength.is-high { color: #7d2b23; background: #f7ddd1; }
.rn-strength.is-mid { color: #70511b; background: #f4e6bd; }
.rn-strength.is-low { color: #466252; background: #dce9de; }
.rn-subblock { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--rn-line); }
.rn-subblock > b { color: var(--rn-muted); font-size: 9px; letter-spacing: .08em; }
.rn-advice-card .rn-report-list { padding-left: 16px; }
.rn-report-section.is-boundary { border-style: dashed; background: rgba(230,217,190,.34); }
.rn-safety-result { padding: 17px; border: 1px solid rgba(70,105,90,.25); border-radius: 14px; background: #edf3ea; }
.rn-safety-result.is-care { border-color: rgba(185,103,47,.3); background: #fbefd8; }
.rn-safety-result.is-urgent { border-color: rgba(157,52,44,.38); background: var(--rn-red-soft); }
.rn-safety-result h2 { margin: 5px 0 0; font: 650 18px/1.45 var(--rn-serif); }
.rn-syndrome-hero { border-color: rgba(70,105,90,.23); background: linear-gradient(135deg,rgba(249,253,243,.95),rgba(203,220,198,.74)); }
.rn-syndrome-hero .rn-mini-label { color: var(--rn-jade); }
.rn-report-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rn-confidence { flex: 0 0 auto; padding: 5px 9px; border: 1px solid rgba(70,105,90,.22); border-radius: 999px; color: var(--rn-jade-deep); background: rgba(255,255,255,.62); font-size: 9px; font-weight: 750; }
.rn-syndrome-v2 h2 { max-width: 780px; }
.rn-watershed-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.rn-watershed-card { min-width: 0; overflow: hidden; border: 1px solid var(--rn-line); border-radius: 12px; background: rgba(255,255,255,.58); }
.rn-watershed-card::before { content: ""; display: block; height: 3px; background: #9a927f; }
.rn-watershed-card.is-support::before { background: var(--rn-jade); }
.rn-watershed-card.is-conflict::before { background: var(--rn-red); }
.rn-watershed-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 12px 7px; }
.rn-watershed-card header b { font: 650 12px/1.35 var(--rn-serif); }
.rn-watershed-card header span { flex: 0 0 auto; padding: 3px 7px; border-radius: 999px; color: #5e594f; background: rgba(154,146,127,.15); font-size: 8.5px; }
.rn-watershed-card.is-support header span { color: var(--rn-jade-deep); background: rgba(70,105,90,.12); }
.rn-watershed-card.is-conflict header span { color: var(--rn-red); background: rgba(157,52,44,.1); }
.rn-watershed-card dl { margin: 0; }
.rn-watershed-card dl > div { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 9px; padding: 8px 12px; border-top: 1px solid rgba(119,91,50,.1); }
.rn-watershed-card dt { color: var(--rn-muted); font-size: 8.5px; }
.rn-watershed-card dd { margin: 0; color: var(--rn-ink-soft); font-size: 10px; line-height: 1.6; }
.rn-channel-grid { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: 12px; }
.rn-primary-channel { padding: 17px; border-radius: 14px; color: #f8f1de; background: linear-gradient(145deg,#557563,var(--rn-jade-deep)); }
.rn-primary-channel > span { display: block; color: rgba(248,241,222,.68); font-size: 8.5px; letter-spacing: .15em; }
.rn-primary-channel > b { display: block; margin: 7px 0; font: 650 30px/1.15 var(--rn-serif); letter-spacing: .1em; }
.rn-primary-channel p { margin: 0; color: rgba(248,241,222,.83); font-size: 11px; line-height: 1.7; }
.rn-primary-channel .rn-report-list { color: rgba(248,241,222,.76); }
.rn-secondary-wrap { padding: 15px; border: 1px solid var(--rn-line); border-radius: 14px; background: rgba(255,255,255,.46); }
.rn-secondary-card + .rn-secondary-card { margin-top: 8px; }
.rn-dimension-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.rn-classic-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.rn-classic-card small { display: block; margin-top: 7px; color: var(--rn-red); font-size: 9px; line-height: 1.55; }
.rn-care-priority-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.rn-care-priority { position: relative; min-width: 0; padding: 14px; border: 1px solid rgba(70,105,90,.16); border-radius: 12px; background: rgba(255,255,255,.58); }
.rn-care-priority > span { position: absolute; top: 10px; right: 11px; color: rgba(70,105,90,.32); font: 700 20px/1 var(--rn-serif); }
.rn-care-priority h4 { max-width: calc(100% - 30px); margin: 0 0 6px; font: 650 13px/1.4 var(--rn-serif); }
.rn-care-priority > p { margin: 0; color: var(--rn-muted); font-size: 10px; line-height: 1.65; }
.rn-fourteen-day { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.rn-fourteen-day article { padding: 13px; border: 1px solid rgba(185,103,47,.15); border-radius: 11px; background: rgba(255,251,240,.58); }
.rn-fourteen-day article > b { font: 650 12px/1.4 var(--rn-serif); }
.rn-fourteen-day article.is-review { grid-column: 1 / -1; border-color: rgba(70,105,90,.18); background: rgba(229,237,218,.5); }
.rn-fourteen-day article.is-review p { margin: 7px 0 0; color: var(--rn-ink-soft); font-size: 10.5px; line-height: 1.7; }
.rn-muted { color: var(--rn-muted); font-size: 10.5px; }

.rn-history-list { display: grid; gap: 9px; }
.rn-history-item { padding: 12px; border: 1px solid var(--rn-line); border-radius: 11px; background: rgba(255,255,255,.56); }
.rn-history-item-head { display: flex; justify-content: space-between; gap: 12px; }
.rn-history-item-head b { font: 650 12.5px/1.35 var(--rn-serif); }
.rn-history-item-head time { color: var(--rn-muted); font-size: 9px; }
.rn-history-item p { margin: 6px 0 0; color: var(--rn-muted); font-size: 10px; line-height: 1.55; }
.rn-history-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 9px; }
.rn-history-actions button { min-height: 32px; padding: 5px 10px; border: 1px solid var(--rn-line); border-radius: 8px; color: var(--rn-ink-soft); background: rgba(255,255,255,.55); font-size: 9.5px; }
.rn-history-actions button:last-child { color: var(--rn-red); }
.rn-history-empty { padding: 34px 12px; color: var(--rn-muted); text-align: center; font-size: 11px; }

.rn-gate { width: min(430px,100%); padding: 30px 26px; border: 1px solid rgba(236,202,143,.55); border-radius: 20px; background: linear-gradient(180deg,#fff8e9,#ead5b1); box-shadow: 0 35px 90px -28px rgba(17,8,3,.95); text-align: center; }
.rn-gate .rn-seal { margin: 0 auto 14px; }
.rn-gate h2 { margin: 0; font: 650 23px/1.35 var(--rn-serif); letter-spacing: .07em; }
.rn-gate p { margin: 10px 0 19px; color: var(--rn-muted); font-size: 11px; line-height: 1.7; }
.rn-gate-actions { display: grid; gap: 8px; }
.rn-gate-actions a { min-height: 44px; display: grid; place-items: center; border-radius: 11px; text-decoration: none; font-size: 11px; font-weight: 700; }
.rn-gate-pay { color: white; background: linear-gradient(135deg,var(--rn-ochre),var(--rn-ochre-deep)); }
.rn-gate-back { color: var(--rn-ink-soft); border: 1px solid var(--rn-line); background: rgba(255,255,255,.45); }
.auth-pending .rn-shell { visibility: hidden; }

/* Six-channel wizard */
.rn-wizard-shell { width: min(1060px,calc(100% - 36px)); }
.rn-wizard { overflow: hidden; border: 1px solid rgba(227,210,172,.54); border-radius: 22px; background: linear-gradient(180deg,rgba(252,250,238,.98),rgba(226,231,209,.97)); box-shadow: var(--rn-shadow); }
.rn-wizard-head { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 16px; padding: 21px 24px 17px; border-bottom: 1px solid rgba(70,105,90,.17); background: radial-gradient(circle at 92% 0%,rgba(70,105,90,.18),transparent 35%),rgba(255,255,255,.34); }
.rn-wizard-head h1 { margin: 4px 0 6px; font: 650 clamp(25px,3vw,34px)/1.2 var(--rn-serif); letter-spacing: .08em; }
.rn-wizard-head p { margin: 0; color: var(--rn-muted); font-size: 11px; line-height: 1.65; }
.rn-progress-count { color: var(--rn-jade-deep); font: 650 12px/1 var(--rn-serif); }
.rn-progress-track { height: 4px; background: rgba(70,105,90,.12); }
.rn-progress-track i { height: 100%; display: block; width: 12.5%; background: linear-gradient(90deg,#73927d,var(--rn-jade-deep)); transition: width .25s ease; }
.rn-wizard-body { min-height: 530px; padding: 24px; }
.rn-step-panel { max-width: 800px; margin: 0 auto; }
.rn-step-intro { margin-bottom: 18px; }
.rn-step-intro span { color: var(--rn-jade); font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.rn-step-intro h2 { margin: 5px 0 7px; font: 650 clamp(22px,3vw,30px)/1.3 var(--rn-serif); letter-spacing: .06em; }
.rn-step-intro p { margin: 0; color: var(--rn-muted); font-size: 11px; line-height: 1.7; }
.rn-step-phase { display: inline-flex; align-items: center; gap: 6px; }
.rn-branch-intro { margin: -7px 0 13px; padding: 7px 10px; border-left: 3px solid var(--rn-ochre); color: var(--rn-ochre-deep); background: rgba(185,103,47,.08); font-size: 10px; line-height: 1.6; }
.rn-watershed-note { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 10px; margin-bottom: 14px; padding: 11px 12px; border: 1px solid rgba(70,105,90,.18); border-radius: 12px; background: linear-gradient(135deg,rgba(228,237,218,.68),rgba(255,255,255,.44)); }
.rn-watershed-note b { padding: 4px 7px; border-radius: 999px; color: #fffaf0; background: var(--rn-jade); font-size: 8.5px; letter-spacing: .08em; white-space: nowrap; }
.rn-watershed-note p { margin: 0; color: var(--rn-ink-soft); font-size: 10.5px; line-height: 1.65; }
.rn-question { display: grid; gap: 9px; padding: 14px; border: 1px solid rgba(70,105,90,.16); border-radius: 13px; background: rgba(255,255,255,.55); }
.rn-question + .rn-question { margin-top: 10px; }
.rn-question > label, .rn-question > b { font: 650 12px/1.4 var(--rn-serif); }
.rn-choice-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.rn-choice { min-height: 38px; padding: 8px 12px; border: 1px solid rgba(70,105,90,.2); border-radius: 10px; color: var(--rn-ink-soft); background: rgba(255,255,255,.56); font-size: 10.5px; }
.rn-choice[aria-pressed="true"] { color: white; border-color: var(--rn-jade); background: var(--rn-jade); box-shadow: 0 7px 18px -12px rgba(39,74,62,.8); }
.rn-choice.is-danger[aria-pressed="true"] { border-color: var(--rn-red); background: var(--rn-red); }
.rn-textarea, .rn-input, .rn-select { width: 100%; border: 1px solid rgba(70,105,90,.22); border-radius: 10px; color: var(--rn-ink); background: rgba(255,255,255,.72); outline: none; }
.rn-textarea { min-height: 112px; resize: vertical; padding: 11px 12px; font-size: 11px; line-height: 1.65; }
.rn-input, .rn-select { min-height: 42px; padding: 8px 11px; font-size: 11px; }
.rn-textarea:focus, .rn-input:focus, .rn-select:focus { border-color: var(--rn-jade); box-shadow: 0 0 0 3px rgba(70,105,90,.1); }
.rn-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rn-field { display: grid; gap: 6px; }
.rn-field.is-full { grid-column: 1 / -1; }
.rn-field label { color: var(--rn-muted); font-size: 9.5px; }
.rn-emergency { margin-top: 12px; padding: 16px; border: 1px solid rgba(157,52,44,.34); border-radius: 12px; color: #792921; background: var(--rn-red-soft); }
.rn-emergency h3 { margin: 0 0 6px; font: 650 16px/1.4 var(--rn-serif); }
.rn-emergency p { margin: 0; font-size: 11px; line-height: 1.7; }
.rn-validation { min-height: 18px; margin: 8px 0 0; color: var(--rn-red); font-size: 10px; }
.rn-review { display: grid; gap: 10px; }
.rn-review-group { padding: 12px 13px; border: 1px solid var(--rn-line); border-radius: 11px; background: rgba(255,255,255,.55); }
.rn-review-group b { display: block; margin-bottom: 5px; font: 650 11px/1.35 var(--rn-serif); }
.rn-review-group p { margin: 0; color: var(--rn-muted); font-size: 10px; line-height: 1.65; white-space: pre-wrap; }
.rn-consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; padding: 12px; border: 1px solid rgba(70,105,90,.18); border-radius: 11px; background: rgba(239,246,231,.64); color: var(--rn-ink-soft); font-size: 10px; line-height: 1.6; }
.rn-consent input { margin-top: 2px; accent-color: var(--rn-jade); }
.rn-wizard-actions { display: flex; justify-content: space-between; gap: 9px; padding: 14px 24px; border-top: 1px solid rgba(70,105,90,.16); background: rgba(255,255,255,.3); }
.rn-wizard-actions button { width: auto; min-width: 110px; padding: 8px 18px; }
.rn-wizard-actions .rn-primary { margin-left: auto; }
.rn-wizard-loading { min-height: 560px; display: grid; align-content: center; justify-items: center; gap: 19px; padding: 28px; text-align: center; }
.rn-wizard-loading .rn-loading-orbit b { background: linear-gradient(145deg,#648471,var(--rn-jade-deep)); }
.rn-wizard-result { padding: 20px; }
.rn-result-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rn-result-actions button, .rn-result-actions a { min-height: 40px; width: auto; display: inline-flex; align-items: center; justify-content: center; padding: 8px 13px; border-radius: 10px; text-decoration: none; font-size: 10.5px; }
.rn-privacy { margin: 12px 0 0; color: rgba(255,238,207,.62); font-size: 9.5px; line-height: 1.6; text-align: center; }

@media (max-width: 900px) {
  .rn-grid { grid-template-columns: 1fr; }
  .rn-entry { min-height: auto; }
  .rn-dimension-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rn-care-priority-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { padding-bottom: env(safe-area-inset-bottom); }
  .rn-shell, .rn-wizard-shell { width: calc(100% - 14px); padding: max(7px,env(safe-area-inset-top)) 0 28px; }
  .rn-top { min-height: 54px; grid-template-columns: 42px minmax(0,1fr) auto; gap: 7px; }
  .rn-top-actions { min-width: 0; grid-column: auto; gap: 5px; }
  .rn-brand { gap: 8px; }
  .rn-brand-copy b { font-size: 16px; letter-spacing: .08em; }
  .rn-brand-copy span { overflow: hidden; font-size: 8px; letter-spacing: .05em; text-overflow: ellipsis; white-space: nowrap; }
  .rn-seal { width: 36px; height: 36px; font-size: 18px; }
  .rn-back { width: 42px; min-height: 42px; padding: 0; font-size: 0; }
  .rn-back::before { content: "←"; font-size: 16px; }
  .rn-top-btn { min-height: 40px; padding: 7px 10px; font-size: 10px; }
  .rn-intro { display: grid; gap: 9px; margin: 7px 0 13px; padding: 12px 13px; }
  .rn-intro p { font-size: 12.5px; line-height: 1.75; }
  .rn-intro-tag { justify-self: start; }
  .rn-grid { gap: 12px; }
  .rn-entry { border-radius: 17px; }
  .rn-entry-head { min-height: auto; padding: 19px 16px 17px; }
  .rn-entry-head h1, .rn-entry-head h2 { font-size: 25px; line-height: 1.25; }
  .rn-entry-head p { margin-top: 9px; font-size: 12.5px; line-height: 1.75; }
  .rn-entry-mark { top: 17px; right: 14px; width: 40px; height: 40px; }
  .rn-entry-body { gap: 12px; padding: 14px 14px 16px; }
  .rn-case { grid-template-columns: 1fr; gap: 8px; padding: 13px; }
  .rn-case-copy span, .rn-system-card span, .rn-feature-row small, .rn-explain { font-size: 11.5px; line-height: 1.65; }
  .rn-system-pair { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .rn-system-card { padding: 12px; }
  .rn-system-card i { margin-bottom: 8px; }
  .rn-feature-row { padding: 11px 12px; }
  .rn-entry-meta span { padding: 6px 9px; font-size: 10.5px; }
  .rn-call-note, .rn-foot { font-size: 10.5px; line-height: 1.6; }
  .rn-primary, .rn-secondary, .rn-danger-btn { min-height: 52px; font-size: 13px; }
  .rn-evidence-pair, .rn-signal-grid, .rn-focus-grid, .rn-advice-grid, .rn-channel-grid, .rn-classic-grid, .rn-field-grid, .rn-watershed-grid, .rn-fourteen-day { grid-template-columns: 1fr; }
  .rn-field.is-full { grid-column: auto; }
  .rn-layer { place-items: stretch; padding: 0; }
  .rn-layer-card, .rn-layer-card.is-history { width: 100%; height: 100dvh; max-height: none; border-width: 0; border-radius: 0; }
  .rn-layer-body { padding: 13px; overscroll-behavior: contain; }
  .rn-layer-head { padding: max(10px,env(safe-area-inset-top)) 13px 10px; }
  .rn-layer-actions { padding: 10px 13px max(10px,env(safe-area-inset-bottom)); box-shadow: 0 -12px 28px -24px rgba(38,25,16,.9); }
  .rn-layer-actions { display: flex; }
  .rn-layer-actions button { min-width: 0; flex: 1 1 0; width: 100%; padding-inline: 8px; }
  .rn-icon-btn { width: 44px; height: 44px; }
  .rn-layer-actions button, .rn-history-actions button, .rn-result-actions button, .rn-result-actions a, .rn-choice { min-height: 44px; }
  .rn-loading { min-height: calc(100dvh - 150px); }
  .rn-report { gap: 11px; }
  .rn-report-hero, .rn-report-section, .rn-safety-result, .rn-primary-channel, .rn-secondary-wrap { padding: 14px; border-radius: 13px; }
  .rn-report-hero h2 { font-size: 23px; overflow-wrap: anywhere; }
  .rn-report-hero p, .rn-evidence-detail p, .rn-report-section p, .rn-primary-channel p { font-size: 12.5px; line-height: 1.78; }
  .rn-report-list { font-size: 12px; line-height: 1.75; }
  .rn-report-section > h3, .rn-secondary-wrap > h3 { font-size: 16px; }
  .rn-signal-card p, .rn-focus-card p, .rn-secondary-card p, .rn-dimension p, .rn-classic-card p { font-size: 11.5px; }
  .rn-primary-channel > b { font-size: 26px; }
  .rn-dimension-grid { grid-template-columns: 1fr; }
  .rn-wizard { overflow: visible; border-radius: 15px; }
  .rn-wizard-head { position: sticky; top: 0; z-index: 8; padding: 15px 13px 12px; backdrop-filter: blur(18px); }
  .rn-wizard-head h1 { font-size: 24px; }
  .rn-wizard-head p { font-size: 11.5px; }
  .rn-progress-track { position: sticky; top: 96px; z-index: 9; }
  .rn-wizard-body { min-height: 0; padding: 16px 12px 96px; }
  .rn-step-intro { margin-bottom: 14px; }
  .rn-step-intro h2 { font-size: 23px; line-height: 1.38; }
  .rn-step-intro p { font-size: 12px; }
  .rn-question { gap: 10px; padding: 12px; }
  .rn-question > label, .rn-question > b { font-size: 13px; }
  .rn-choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .rn-choice { width: 100%; padding: 9px 8px; font-size: 12px; line-height: 1.4; }
  .rn-wizard-actions { position: fixed; z-index: 18; left: 7px; right: 7px; bottom: max(7px,env(safe-area-inset-bottom)); padding: 8px; border: 1px solid rgba(70,105,90,.18); border-radius: 14px; background: rgba(250,248,235,.92); box-shadow: 0 18px 45px rgba(25,13,7,.34); backdrop-filter: blur(18px); }
  .rn-wizard-actions button { min-width: 0; min-height: 48px; padding: 9px 13px; font-size: 12.5px; }
  .rn-wizard-loading { min-height: calc(100dvh - 72px); padding: 22px 16px; }
  .rn-wizard-result { padding: 11px; }
  .rn-result-actions { position: sticky; bottom: max(7px,env(safe-area-inset-bottom)); z-index: 12; display: grid; grid-template-columns: 1fr 1fr; padding: 8px; border: 1px solid rgba(70,105,90,.16); border-radius: 13px; background: rgba(250,248,235,.92); box-shadow: 0 18px 42px rgba(25,13,7,.28); backdrop-filter: blur(18px); }
  .rn-result-actions button, .rn-result-actions a { width: 100%; font-size: 11.5px; }
  .rn-watershed-note { grid-template-columns: 1fr; }
  .rn-watershed-note b { justify-self: start; }
  .rn-watershed-card dl > div { grid-template-columns: 1fr; gap: 4px; }
  .rn-fourteen-day article.is-review { grid-column: auto; }
  .rn-report-heading { align-items: flex-start; }
}
@media (max-width: 360px) {
  .rn-brand-copy span { display: none; }
  .rn-top-btn { padding-inline: 8px; }
  .rn-system-pair, .rn-choice-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
