/* Application layout built on the supplied offer.zip design tokens. */
html { color-scheme: dark; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button, summary, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
button:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
input, select { color-scheme: dark; }
body { min-height: 100vh; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
.skipLink { position: absolute; left: 20px; top: -90px; z-index: 2000; padding: 8px 16px; background: var(--panel); border: 1px solid var(--accent); }
.skipLink:focus { top: 10px; }
.wordmark { line-height: 1; display: grid; gap: 10px; }
.wordmark > span { font-weight: 650; font-size: 52px; letter-spacing: .12em; color: var(--heading); }
.wordmark small { font-size: 9px; letter-spacing: .19em; color: var(--textSoft); }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #9db7da; }
.hero .eyebrow { margin-bottom: 9px; }
.releaseTag { letter-spacing: .03em; text-transform: none; font-size: 11px; margin-left: 8px; padding: 3px 7px; color: var(--textSoft); border: 1px solid var(--borderSoft); border-radius: 5px; }
.heroSubtitle { font-size: 14px; color: var(--textSoft); margin: 10px 0 0; line-height: 1.5; }
.viewNav { display: flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--border); margin: -7px 0 28px; padding-bottom: 12px; }
.viewTab { color: var(--textSoft); background: transparent; border: 1px solid transparent; border-radius: 9px; padding: 9px 17px; font-size: 14px; min-height: 42px; }
.viewTab:hover { color: var(--heading); background: rgba(255,255,255,.035); }
.viewTab.isActive { color: #dceaff; background: var(--infoBg); border-color: rgba(108,163,255,.35); }
.smallCount { display: inline-flex; margin-left: 6px; padding: 0 5px; border-radius: 4px; font-size: 10px; color: var(--textSoft); background: rgba(255,255,255,.07); }
.viewHeading { display: flex; gap: 18px; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.viewHeading h2 { font-size: 25px; }
.viewHeading p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; }
.primaryButton, .secondaryButton { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 42px; padding: 9px 15px; border: 1px solid rgba(108,163,255,.55); border-radius: 9px; background: rgba(108,163,255,.14); color: var(--heading); font-size: 13px; font-weight: 500; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.primaryButton:hover { background: rgba(108,163,255,.22); }
.secondaryButton { background: var(--panelAlt); border-color: var(--borderSoft); color: var(--text); }
.secondaryButton:hover { background: #182230; border-color: var(--accent); }
.textButton { border: 0; background: transparent; color: #9cc3ff; font-size: 12px; padding: 6px 4px; line-height: 1.5; text-underline-offset: 3px; white-space: nowrap; }
.textButton:hover { text-decoration: underline; color: #c5ddff; }
.sourceButton { letter-spacing: .01em; }
.iconButton { width: 38px; height: 38px; border: 1px solid var(--borderSoft); border-radius: 9px; background: var(--panelAlt); color: var(--text); font-size: 23px; display: grid; place-items: center; flex-shrink: 0; }
.iconButton:hover { border-color: var(--accent); }
.strategyCard { padding: 0 var(--panelPad); overflow: clip; margin-bottom: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.16); }
.strategyCard > summary { display: flex; align-items: center; list-style: none; gap: 0; padding: 16px 0; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.strategyCard .stepBadge { min-width: 64px; margin-bottom: 0; flex-shrink: 0; font-size: 13px; padding: 9px 12px; margin-right: 18px; }
.strategyLabel { display: grid; gap: 4px; flex: 1; min-width: 0; }
.strategyTitle { color: var(--heading); font-size: 18px; font-weight: 600; line-height: 1.4; }
.strategyDescription { font-size: 13px; color: var(--textSoft); line-height: 1.4; }
.statusTag { font-size: 10px; color: #a9bdd7; border: 1px solid var(--border); border-radius: 5px; padding: 2px 7px; margin: 0 16px; white-space: nowrap; }
.researchTag { color: #e5b57f; border-color: rgba(209,125,41,.32); }
.disclosureMark { display: block; width: 9px; height: 9px; border: solid var(--textSoft); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .16s ease; margin-right: 3px; flex-shrink: 0; }
details[open] > summary .disclosureMark { transform: rotate(225deg); }
.strategyCard[open] { border-color: #405675; }
.strategyBody { border-top: 1px solid var(--border); padding: 16px 0 8px; }
.sourceLine { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 0 0 16px; }
.sourceLine code { font-size: 10px; border: none; background: transparent; padding: 0; color: #8fa6c5; overflow-wrap: anywhere; }
.prose { color: var(--text); }
.prose > :last-child { margin-bottom: 8px; }
.prose h2 { margin: 0 0 20px; }
.prose h3 { font-size: 17px; }
.prose table { width: 100%; min-width: 540px; font-size: 14px; line-height: 1.65; }
.prose th, .prose td { padding: 11px 12px; }
.prose .warningBox, .prose .infoBox { font-size: 14px; }
.prose .warningBox p:last-child, .prose .infoBox p:last-child { margin-bottom: 0; }
.prose code { overflow-wrap: anywhere; }
.sourceList .sectionHeader { margin-bottom: 18px; }
.sourceListRow { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 13px 0; border-top: 1px solid var(--border); }
.sourceListRow strong { font-size: 15px; }
.sourceListRow code { display: block; border: 0; background: transparent; padding: 0; font-size: 11px; color: var(--textSoft); overflow-wrap: anywhere; }
.siteFooter { margin-top: 30px; padding: 20px 0 0; border-top: 1px solid var(--border); color: #8fa0b7; font-size: 11px; display: flex; justify-content: space-between; gap: 10px; }
.indexGlyph { width: 23px; display: grid; gap: 5px; }
.indexGlyph i { height: 2px; border-radius: 1px; background: currentColor; position: relative; margin-left: 6px; }
.indexGlyph i::before { content: ''; position: absolute; left: -6px; top: -1px; width: 3px; height: 3px; background: currentColor; border-radius: 50%; }
.sectionsClose { font-size: 26px; }
.sectionsToggle { top: 47%; }
.inlineHelp { margin: 0; }
.inlineHelp > summary { padding: 11px 0; font-size: 12px; color: #9bb7de; cursor: pointer; list-style: none; }
.inlineHelp > summary::before { content: '+'; display: inline-block; width: 16px; color: var(--accent); }
.inlineHelp[open] > summary::before { content: '-'; }
.helpBody { padding: 8px 0 10px; font-size: 14px; line-height: 1.7; }
.helpBody .sourceLine { align-items: flex-start; }
.helpBody .sourceLine code { max-width: 70%; }
.toolbarActions { display: flex; gap: 8px; }
.fileButton { cursor: pointer; }
.fileButton input { width: 1px; height: 1px; position: absolute; opacity: 0; }
.fileButton:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.field { display: grid; gap: 7px; min-width: 0; font-size: 13px; color: var(--textSoft); }
.field .questionInput { width: 100%; min-height: 42px; font-size: 14px; line-height: 1.4; }
.fieldGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.questionInput { color: var(--heading); }
.questionInput:invalid { border-color: var(--dangerBorder); }
.checkboxField { display: flex; gap: 10px; align-items: center; }
input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.smallText { font-size: 12px; }
.dangerText { color: #eeaaa7; }
.reviewDialog, .packDialog, .ragGoalDialog { background: var(--panel); color: var(--text); border: 1px solid #405675; border-radius: 14px; box-shadow: 0 24px 90px rgba(0,0,0,.6); padding: 0; max-width: calc(100vw - 32px); max-height: calc(100dvh - 40px); }
.reviewDialog { width: 1180px; }
.packDialog { width: 960px; }
.ragGoalDialog { width: 960px; }
dialog::backdrop { background: rgba(3,7,12,.82); backdrop-filter: blur(3px); }
.dialogHeader { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.dialogHeader h2 { font-size: 23px; margin-top: 4px; }
.sourceToolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--border); background: var(--panelAlt); }
.sourceToolbar > code { flex: 1; font-size: 11px; border: 0; padding: 0; background: transparent; overflow-wrap: anywhere; }
.segmented { display: inline-flex; border: 1px solid var(--borderSoft); border-radius: 8px; overflow: hidden; }
.segmented button { border: 0; border-right: 1px solid var(--borderSoft); color: var(--textSoft); padding: 8px 11px; background: transparent; font-size: 12px; }
.segmented button:last-child { border: 0; }
.segmented button[aria-pressed="true"] { color: var(--heading); background: var(--infoBg); }
.sourceCompare { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); min-height: 220px; }
.sourcePane, .renderedPane { min-width: 0; max-height: 65dvh; overflow: auto; }
.sourcePane { border-right: 1px solid var(--border); background: #0b1118; }
.paneLabel { padding: 10px 22px; background: var(--panelAlt); color: #91accf; font-size: 10px; letter-spacing: .1em; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1; }
.sourcePane pre { padding: 22px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.8; font-family: Consolas, Monaco, monospace; color: #c0d0e4; }
.renderedPane > .prose { padding: 22px; font-size: 15px; line-height: 1.75; }
.sourceCompare[data-mode="rendered"], .sourceCompare[data-mode="markdown"] { grid-template-columns: minmax(0,1fr); }
.sourceCompare[data-mode="rendered"] .sourcePane, .sourceCompare[data-mode="markdown"] .renderedPane { display: none; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 2500; width: max-content; max-width: calc(100vw - 40px); border: 1px solid #456494; border-radius: 10px; background: #172537; padding: 11px 18px; color: var(--text); font-size: 13px; box-shadow: var(--shadow); }
.embeddedApp { padding: 20px; background: var(--bg); }
@media (max-width: 900px) {
    .sourceCompare { grid-template-columns: minmax(0,1fr); }
    .sourceCompare[data-mode="compare"] .sourcePane, .sourceCompare[data-mode="compare"] .renderedPane { max-height: 32dvh; }
    .sourcePane { border-right: 0; border-bottom: 1px solid var(--border); }
    .sourceToolbar > code { flex-basis: 100%; }
}
@media (max-width: 699px) {
    .heroInner { grid-template-columns: 90px minmax(0,1fr); }
    .wordmark > span { font-size: 34px; }
    .wordmark small { font-size: 6px; letter-spacing: .09em; }
    .hero .eyebrow { font-size: 9px; }
    .releaseTag { font-size: 9px; padding: 2px 4px; margin-left: 3px; }
    .heroSubtitle { font-size: 11px; margin-top: 8px; }
    .viewNav { gap: 4px; margin-bottom: 22px; }
    .viewTab { padding: 8px 12px; font-size: 12px; }
    .smallCount { display: none; }
    .viewHeading { flex-direction: column; align-items: flex-start; gap: 12px; }
    .viewHeading h2 { font-size: 23px; }
    .viewHeading p { font-size: 13px; }
    .strategyCard .stepBadge { min-width: 42px; margin-right: 12px; padding: 8px; font-size: 12px; }
    .strategyTitle { font-size: 16px; }
    .strategyDescription { font-size: 12px; padding-right: 12px; }
    .statusTag { display: none; }
    .sourceLine { gap: 8px; align-items: flex-start; flex-wrap: wrap; }
    .sourceLine code { font-size: 9px; }
    .strategyBody .sourceLine code { flex-basis: 100%; }
    .sourceListRow { gap: 10px; }
    .sourceListRow strong { font-size: 14px; }
    .sourceListRow code { font-size: 10px; }
    .siteFooter { flex-direction: column; font-size: 10px; }
    .reviewDialog, .packDialog, .ragGoalDialog { max-width: calc(100vw - 16px); max-height: calc(100dvh - 24px); }
    .dialogHeader { padding: 16px; }
    .dialogHeader h2 { font-size: 19px; }
    .sourceToolbar { padding: 12px 16px; gap: 10px; }
    .sourceToolbar .secondaryButton { padding: 8px 10px; min-height: 36px; font-size: 11px; }
    .sourcePane pre, .renderedPane > .prose { padding: 16px; }
    .sourcePane pre { font-size: 11px; }
    .embeddedApp { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
    .sectionsToggle, .viewNav, .toolbarActions, .sourceButton, .sourceLine, dialog, .advancedPanel, .toast, .calcFootnote, .siteFooter { display: none !important; }
    .hero { box-shadow: none; }
    .page { max-width: none; }
    .panel { break-inside: avoid; box-shadow: none; }
    .sk-app { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* v1.1 execution-first runbook: preserve the supplied navy design system. */
.runIntro { padding: 24px 27px; margin-bottom: 18px; }
.runIntroTop { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.runIntroTop h2 { color: var(--heading); margin: 3px 0 5px; font-size: clamp(22px,2.3vw,28px); letter-spacing: -.01em; }
.runIntroTop p { font-size: 13px; line-height: 1.55; margin: 0; max-width: 690px; }
.runIntroTop > button { flex-shrink: 0; }
.runIntroStats { display: grid; grid-template-columns: .83fr 1.55fr 1.3fr 1.1fr; gap: 10px; margin-top: 22px; }
.runIntroStats > div { min-width: 0; background: rgba(6,13,22,.48); border: 1px solid #293547; padding: 11px 13px; border-radius: 8px; }
.runIntroStats small { display: block; color: #8ca5c7; font-size: 10px; letter-spacing: .03em; line-height: 1.3; margin-bottom: 6px; text-transform: uppercase; }
.runIntroStats strong { display: block; font-size: 13px; line-height: 1.4; color: var(--heading); overflow-wrap: anywhere; }
.progressTrack { height: 5px; background: #243043; border-radius: 999px; margin-top: 15px; overflow: hidden; }
.progressTrack > div { height: 100%; width: 0; background: linear-gradient(90deg, #568dea, #8fbdff); transition: width 220ms ease; }
.phaseRibbon { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin: 18px 0 28px; }
.phaseRibbon button { text-align: left; display: grid; gap: 4px; background: #111a26; color: #d7e6fc; border: 1px solid #2c3950; padding: 12px 14px; border-radius: 8px; font-size: 12px; line-height: 1.35; }
.phaseRibbon button:hover { border-color: #6ca3ff; background: #172438; }
.phaseRibbon button small { color: #91a8c7; font-size: 11px; }
.runbookTimeline { position: relative; padding-left: 17px; margin-left: 8px; border-left: 1px solid #354a68; }
.runPhase { scroll-margin-top: 28px; margin-bottom: 35px; position: relative; }
.phaseHeader { margin-bottom: 14px; }
.phaseHeader::before { content: ''; display: block; position: absolute; left: -23px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: #8cb8fc; border: 2px solid #1a2739; }
.phaseHeaderInfo { display: flex; align-items: flex-start; gap: 18px; }
.phaseWindow { display: inline-flex; align-items: center; justify-content: center; min-width: 97px; border: 1px solid #3c5b87; color: #b3d0f6; background: rgba(51,93,160,.18); font-size: 11px; font-weight: 600; border-radius: 5px; padding: 6px 9px; line-height: 1.2; }
.phaseHeader h2 { font-size: 21px; line-height: 1.3; margin: 0; color: var(--heading); }
.phaseHeader p { font-size: 13px; color: var(--textSoft); line-height: 1.55; margin: 3px 0 0; }
.runbookStep { scroll-margin-top: 16px; border-radius: 10px; background: rgba(19,27,40,.96); box-shadow: 0 4px 14px rgba(0,0,0,.14); }
.runbookStep > summary { padding: 16px 0; }
.runbookStep .stepBadge { align-self: flex-start; min-width: 48px; margin-right: 16px; padding: 9px 10px; }
.runbookStep .strategyLabel { gap: 3px; }
.strategyTime { color: #86aee4; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.completionGate { display: block; font-size: 12px; line-height: 1.5; color: #95a9c2; padding-top: 3px; }
.completionGate b { font-weight: 600; color: #c8d5e7; }
.stepCompletion { border: 1px solid #3c4b61; border-radius: 4px; padding: 4px 7px; margin: 0 17px; font-size: 10px; color: #a1b1c5; min-width: 73px; text-align: center; line-height: 1.4; flex-shrink: 0; }
.runbookStep.isComplete .stepCompletion { color: #9fd7ac; border-color: #3b7353; background: rgba(59,115,83,.11); }
.runbookStep.isComplete .stepBadge { border-color: #4a8a62; color: #b5e8c2; }
.runbookStep[open] .strategyBody { border-color: #33455f; }
.runbookStep .prose { max-width: 950px; font-size: 15px; line-height: 1.75; }
.runbookStep .prose h2 { font-size: 20px; margin: 17px 0 11px; }
.runbookStep .prose p { margin: 0 0 13px; }
.runbookStep .prose li { margin-bottom: 4px; }
.runbookStep .prose table { min-width: 520px; font-size: 13px; }
.runbookStep .prose td,.runbookStep .prose th { padding: 8px 11px; }
.stepActions { margin: 18px 0 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; border-top: 1px solid var(--border); padding-top: 18px; }
.stepActions .primaryButton { background: #223b5c; }
.runReferences { padding-top: 24px; border-top: 1px solid var(--border); margin-top: 12px; }
.runReferences .viewHeading { margin-bottom: 15px; }
.researchCard > summary { padding-top: 13px; padding-bottom: 13px; }
.refBadge { background: #233046 !important; border-color: #405170 !important; color: #b2c9e5 !important; font-size: 10px !important; }
.phaseIndexLink { margin-top: 12px; border-top: 1px solid rgba(153,178,216,.15); padding-top: 12px !important; color: #b5d2ff; font-weight: 600; }
.phaseIndexLink .sectionsNavNumber { color: #79aefb; }
@media (max-width: 900px) { .runIntroStats { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 699px) {
 .runIntro { padding: 18px; }
 .runIntroTop { align-items: flex-start; flex-direction: column; gap: 12px; }
 .runIntroStats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 15px; }
 .runIntroStats > div { padding: 9px; }
 .runIntroStats strong { font-size: 12px; }
 .phaseRibbon { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
 .phaseRibbon button { padding: 10px; font-size: 11px; }
 .runbookTimeline { margin-left: 3px; padding-left: 11px; }
 .phaseHeader::before { left: -17px; }
 .phaseHeaderInfo { gap: 9px; }
 .phaseWindow { min-width: 65px; font-size: 9px; padding: 5px; }
 .phaseHeader h2 { font-size: 17px; }
 .phaseHeader p { font-size: 11px; }
 .runbookStep { --panelPad: 12px; }
 .runbookStep .stepBadge { min-width: 33px; margin-right: 9px; padding: 7px 4px; }
 .runbookStep .strategyTitle { font-size: 15px; }
 .runbookStep .strategyDescription { font-size: 11px; }
 .completionGate { font-size: 11px; padding-top: 4px; }
 .stepCompletion { font-size: 9px; min-width: 40px; padding: 3px; margin: 0 10px 0 2px; }
 .runbookStep .prose { font-size: 13px; }
 .stepActions .primaryButton,.stepActions .secondaryButton { font-size: 11px; padding: 8px 11px; }
}
@media print {
 .phaseRibbon, .runIntroTop button, .stepActions, .stepCompletion, .runReferences .textButton { display: none !important; }
 .runbookTimeline { border: 0; padding: 0; }
 .runbookStep .strategyBody { display: block !important; }
}

/* Parallel Day 1-15 guide. Original Runbook style and layout remain intact. */
.viewNav{flex-wrap:wrap}
.dayIntro .runIntroStats{grid-template-columns:.75fr 1.4fr 1.3fr 1.3fr}
.eventUncertainty{border:1px solid #486186;border-left:3px solid #8fbbff;background:rgba(49,81,120,.13);padding:13px 17px;color:#b5c6dd;font-size:13px;line-height:1.65;border-radius:8px;margin:15px 0}
.eventUncertainty strong{color:#e1edff}
.dayPhaseRibbon{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:18px 0 27px}
.dayPhaseRibbon button{display:flex;align-items:center;gap:11px;text-align:left;padding:12px;background:#111a26;border:1px solid #2c3950;border-radius:9px;color:#d7e6fc;font-size:12px}
.dayPhaseRibbon button:hover{background:#172438;border-color:#6ca3ff}
.dayPhaseRibbon button b{color:#b6d5ff;min-width:55px;font-size:12px;letter-spacing:.06em}
.dayPhaseRibbon button span{color:#a6b8d1;line-height:1.35}
.dayCard .stepBadge{min-width:49px}
.dayCard .strategyTime{color:#8db8ef}
.dayCard.isComplete .stepBadge{color:#b5e8c2}
.eventsSection{margin-top:36px;padding-top:25px;border-top:1px solid var(--border);scroll-margin-top:24px}
.eventCardGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.eventCard{margin-bottom:0;align-self:start}
.eventCard .stepBadge{min-width:42px;margin-right:13px}
.eventStepBadge{background:rgba(109,130,190,.13)!important;border-color:#405981!important;color:#bed5f8!important}
.eventCard .strategyTitle{font-size:16px}
.eventCard .strategyDescription{font-size:12px}
.eventCard .strategyBody .prose{font-size:13px;line-height:1.7}
.dayCard,.eventCard{scroll-margin-top:25px}
@media(max-width:950px){.eventCardGrid{grid-template-columns:1fr}.dayIntro .runIntroStats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:699px){.dayPhaseRibbon{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.dayPhaseRibbon button{font-size:11px;gap:6px;padding:10px}.dayPhaseRibbon button b{min-width:44px;font-size:11px}.dayIntro .runIntroStats strong{font-size:11px}.eventUncertainty{font-size:12px;padding:10px 12px}.viewNav{gap:3px}.viewTab{padding:8px 10px;font-size:12px}}
@media print{.dayPhaseRibbon,.eventCardGrid .sourceButton{display:none!important}}

/* 90-day evidence-based event calendar: extends the supplied dark design system. */
.viewNav { flex-wrap: wrap; }
.calendarTopMetrics { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0 22px; }
.calendarTopMetrics>div { display:grid;gap:7px;border:1px solid var(--borderSoft);border-radius:10px;padding:14px;background:var(--panelAlt);min-width:0; }
.calendarTopMetrics small { color:var(--textSoft);font-size:11px; }
.calendarTopMetrics strong { color:var(--heading);font-size:14px;line-height:1.4; }
.calendarLayout { display:grid;grid-template-columns:minmax(250px,.86fr) minmax(0,1.7fr);gap:16px;align-items:start; }
.calendarNavigation,.calendarDetails { padding:20px;min-width:0; }
.calendarSectionTitle { margin:0 0 12px; }
.calendarSectionTitle h3 { font-size:16px;margin:0 0 5px;color:var(--heading); }
.calendarSectionTitle p { font-size:12px;color:var(--textSoft);margin:0; }
.calendarWeeks { display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin-bottom:24px; }
.calendarPick,.calendarDayPick { border:1px solid var(--borderSoft);color:var(--textSoft);background:var(--panelAlt);border-radius:7px;min-width:0;min-height:40px;padding:8px 4px;font-size:12px;font-weight:600; }
.calendarPick:hover,.calendarDayPick:hover { color:var(--heading);border-color:var(--accent); }
.calendarPick.selected,.calendarDayPick.selected { color:var(--heading);border-color:var(--accent);background:var(--infoBg); }
.calendarDays { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-bottom:20px; }
.calendarDayPick { font-size:13px;min-height:46px; }
.calendarToggle { display:flex;align-items:center;gap:10px;font-size:13px;color:var(--text);margin-bottom:17px;cursor:pointer; }
.calendarNavigation .secondaryButton { width:100%; }
.calendarDetailTop { display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding-bottom:20px;border-bottom:1px solid var(--border); }
.calendarDetailTop h3 { font-size:26px;margin:7px 0; }
.calendarDetailTop p { color:var(--textSoft);font-size:13px;line-height:1.5;margin:0; }
.calendarDayBadge { background:var(--infoBg);border:1px solid var(--borderSoft);color:var(--heading);border-radius:7px;padding:6px 10px;font-size:12px;white-space:nowrap; }
.calendarLegend { display:flex;flex-wrap:wrap;gap:7px;padding:16px 0; }
.evidenceBadge { font-size:10px;border-radius:5px;border:1px solid rgba(144,171,206,.25);color:#b8c5d9;padding:4px 7px;white-space:nowrap;font-weight:600;letter-spacing:.01em; }
.evidenceBadge.confirmed { color:#9fe4d0;border-color:rgba(94,194,158,.4);background:rgba(30,123,92,.17); }
.evidenceBadge.observed { color:#add4fd;border-color:rgba(126,187,255,.4);background:rgba(46,107,155,.17); }
.evidenceBadge.scheduled { color:#d8c49e;border-color:rgba(189,149,86,.45);background:rgba(127,97,48,.16); }
.evidenceBadge.projected { color:#b4b8c4;border-style:dashed; }
.evidenceBadge.scenario { color:#d4c6e9;border-color:rgba(166,135,213,.38);background:rgba(104,78,149,.12);border-style:dashed; }
.calendarEventList { display:grid;gap:9px; }
.calendarEntry { padding:13px 14px;border:1px solid var(--borderSoft);background:var(--panelAlt);border-radius:9px;min-width:0; }
.calendarEntry.isProjection { border-style:dashed; }
.calendarEntryHeader { display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px; }
.calendarEntryHeader h4 { color:var(--heading);font-size:14px;line-height:1.4;margin:0; }
.calendarEntryNote { font-size:12px;color:var(--text);margin:8px 0 0;line-height:1.5; }
.calendarEvidence { color:var(--textSoft);font-size:10px;overflow-wrap:anywhere;margin:8px 0 0; }
.calendarEmpty { color:var(--textSoft);line-height:1.65;font-size:14px;padding:14px 0; }
.calendarHelp { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:14px; }
.calendarHelp>details { border:1px solid var(--borderSoft);border-radius:9px;padding:4px 16px;background:var(--panel); }
@media(max-width:920px) { .calendarLayout { grid-template-columns:minmax(0,1fr); }.calendarTopMetrics { grid-template-columns:repeat(2,minmax(0,1fr)); }.calendarHelp{ grid-template-columns:1fr; } }
@media(max-width:520px) { .calendarTopMetrics { grid-template-columns:1fr 1fr; }.calendarTopMetrics>div { padding:10px; }.calendarTopMetrics strong{font-size:12px;}.calendarWeeks{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;}.calendarPick{padding:7px 2px;font-size:11px;min-height:38px;}.calendarNavigation,.calendarDetails{padding:14px;}.calendarDetailTop h3{font-size:21px;}.calendarDayPick{font-size:12px;}.calendarLegend{gap:4px;}.evidenceBadge{font-size:9px;}.viewNav { gap:4px; } }

/* v1.4 r3 - Ragnarök strategy. Same approved navy design system. */
[data-view="ragnarok"] { min-width:0; }
.ragTitle { margin-bottom:16px; }
.ragTitle h2 { letter-spacing:-.018em; }
.ragTitle .primaryButton { white-space:nowrap; }
.ragStatusLine { border:1px solid #3b5374;border-left:3px solid #84b5ff;background:rgba(63,94,148,.14);padding:12px 16px;color:#b7c7de;font-size:12px;line-height:1.7;border-radius:9px;margin:0 0 15px; }
.ragStatusLine strong { color:#e4efff; }
.ragOverview { padding:24px 27px; }
.ragOverviewHead { display:flex;align-items:center;justify-content:space-between;gap:20px; }
.ragOverviewHead > div:first-child { flex:1;min-width:0; }
.ragOverviewHead h3 { color:var(--heading);font-size:clamp(20px,2.4vw,27px);margin:6px 0 7px;line-height:1.25; }
.ragOverviewHead p { color:var(--textSoft);font-size:13px;line-height:1.6;margin:0;max-width:650px; }
.ragReviewBox { padding:12px 15px;background:var(--panelAlt);border:1px solid var(--borderSoft);border-radius:9px;min-width:192px; }
.ragReviewBox small { display:block;color:#9eafc9;font-size:10px;text-transform:uppercase;letter-spacing:.04em;margin-bottom:5px; }
.ragReviewBox strong { color:#e4edfa;font-size:13px; }
.ragReviewBox .progressTrack { margin-top:11px; }
.ragMechanism { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:22px 0 15px; }
.ragMechanism > div { border:1px solid #35465f;background:#0e1826;padding:16px 14px 15px;border-radius:9px;min-width:0;position:relative; }
.ragMechanism > div + div:before { content:'›';position:absolute;left:-9px;top:29px;color:#b7cfff;font-size:20px;z-index:1; }
.ragMechanism span { display:inline-block;color:#91b7f1;font-size:11px;letter-spacing:.11em;margin-bottom:11px;border:1px solid #46638a;background:rgba(71,119,200,.12);padding:3px 6px;border-radius:4px; }
.ragMechanism b { display:block;color:#f0f6ff;font-size:12px;line-height:1.5;letter-spacing:.035em; }
.ragMechanism p { margin:5px 0 0;color:#a6b8d0;font-size:11px;line-height:1.6; }
.ragOverviewNote { border:1px solid #455b7c;border-radius:8px;padding:12px 14px;background:rgba(31,60,102,.18);font-size:13px;line-height:1.7;color:#b5cbea; }
.ragOverviewNote strong,.ragOverviewNote b { color:#e3edff; }
.ragOverview .sourceLine { margin-top:16px; }
.ragExplanation { margin-top:12px;border-top:1px solid #334358;padding-top:13px; }
.ragExplanation > summary { color:#9cc5ff;cursor:pointer;font-size:13px;font-weight:600;padding:7px 0; }
.ragExplanation > .prose { margin:8px 0 0;padding:14px 18px;background:#101a27;border:1px solid #2b4059;border-radius:9px; }
.ragJumpNav { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:16px 0 25px; }
.ragJumpNav button { text-align:left;display:flex;align-items:center;gap:10px;padding:11px 12px;color:#b0c0db;background:#101927;border:1px solid #304057;border-radius:8px;min-width:0; }
.ragJumpNav button:hover,.ragJumpNav button:focus-visible { color:#edf5ff;border-color:#7facf2;background:#182943; }
.ragJumpNav b { flex:none;color:#bed7ff;font-size:12px;padding:5px 6px;background:rgba(77,129,219,.16);border-radius:4px; }
.ragJumpNav span { font-size:11px;line-height:1.45; }
.ragTimeline { margin-top:7px; }
.ragStageCard { scroll-margin-top:23px; }
.ragStageCard .stepBadge { background:#1d314c;border-color:#4b70a1;color:#bdd9ff; }
.ragStageCard.isComplete .stepBadge { color:#b4e8c2; }
.ragShopSection { margin-top:30px;padding-top:23px;border-top:1px solid var(--border); }
.ragShopGrid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px; }
.ragShop { padding:19px 20px;scroll-margin-top:25px; }
.ragShopHead { padding:0 0 9px;border-bottom:1px solid #2f425c; }
.ragShopHead h3 { font-size:17px;margin:6px 0 2px;color:var(--heading); }
.ragShop .sourceLine { padding:10px 0 8px; }
.ragShop .prose { font-size:13px;line-height:1.72; }
.ragShop .prose h2 { font-size:16px;margin-top:15px; }
.ragCheck { margin:17px 0 20px;scroll-margin-top:25px; }
.ragCheck .strategyCard { width:100%; }
@media(max-width:1050px) {
  .ragJumpNav { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .ragMechanism { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ragMechanism > div + div:before { display:none; }
}
@media(max-width:740px) {
  .ragOverview { padding:17px 14px; }
  .ragOverviewHead { display:block; }
  .ragReviewBox { margin-top:14px; }
  .ragMechanism { gap:7px; }
  .ragMechanism > div { padding:12px; }
  .ragMechanism p { font-size:10px; }
  .ragJumpNav { grid-template-columns:repeat(2,minmax(0,1fr));gap:6px; }
  .ragJumpNav button { padding:9px 8px; }
  .ragJumpNav span { font-size:10px; }
  .ragShopGrid { grid-template-columns:minmax(0,1fr); }
  .ragTitle .primaryButton { font-size:12px; }
  .ragShop { padding:16px; }
  .ragStageCard .stepBadge { min-width:36px; }
}
@media(max-width:420px) {
  .ragMechanism { grid-template-columns:minmax(0,1fr); }
  .ragMechanism > div { display:grid;grid-template-columns:38px 1fr;gap:4px 10px;align-items:center; }
  .ragMechanism > div span { grid-row:1/3;margin:0;text-align:center;padding:5px 2px; }
  .ragMechanism > div b { font-size:11px; }
  .ragMechanism > div p { grid-column:2;margin:0; }
}
@media print { .ragJumpNav,.ragTitle .primaryButton,.ragStageCard .stepActions{display:none!important;} }

/* r5 evidence detail reuses the approved dark design system. */
.calendarDateWindow { color: var(--text-muted, #9db4cc); font-size: .85rem; line-height: 1.6; }
.calendarUnresolved { margin-top: 1rem; padding: 1rem 1.25rem; }
.calendarUnresolved summary { cursor: pointer; font-weight: 700; }
.calendarTableWrap { overflow-x: auto; }
.calendarTableWrap table { min-width: 520px; }


/* v1.4 r7: Ragnarok data sheets, using the existing Dark Space tokens. */
.ragSubtabs { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 20px; padding:7px; background:var(--panelAlt); border:1px solid var(--border); border-radius:11px; }
.ragSubtabs button { border:1px solid transparent; background:transparent; color:var(--textSoft); border-radius:8px; padding:10px 15px; min-height:42px; font-size:13px; font-weight:600; }
.ragSubtabs button:hover { color:var(--heading); background:rgba(108,163,255,.08); }
.ragSubtabs button[aria-selected="true"] { color:#e6f1ff; background:var(--infoBg); border-color:rgba(108,163,255,.5); }
.ragSubtabs span { font-weight:400; color:#98afcb; font-size:10px; margin-left:5px; }
.ragDataIntro { padding:22px 24px; }
.ragDataIntroTop { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.ragDataIntro h3, .ragShopOnlyIntro h3 { color:var(--heading); font-size:23px; margin:7px 0; line-height:1.3; }
.ragDataIntro p, .ragShopOnlyIntro p { color:var(--textSoft); font-size:13px; line-height:1.7; margin:5px 0 12px; }
.ragDataIntro .sourceLine { margin:12px 0; }
.ragDataTag { white-space:nowrap; border:1px solid var(--borderSoft); color:var(--textSoft); border-radius:5px; padding:5px 9px; font-size:10px; }
.ragDataRules { display:flex; flex-wrap:wrap; gap:8px; }
.ragDataRules span { padding:5px 9px; background:var(--panelAlt); border:1px solid var(--borderSoft); border-radius:6px; font-size:11px; color:#a9bdd6; }
.ragDataSheet { min-width:0; padding:22px 23px; }
.ragDataHeader { display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:15px; margin-bottom:16px; }
.ragDataHeader h3 { margin:6px 0 6px; color:var(--heading); font-size:20px; line-height:1.3; }
.ragDataHeader p { color:var(--textSoft); font-size:12px; line-height:1.65; margin:0; max-width:730px; }
.ragDataScroll { overflow:auto; max-width:100%; max-height:min(72vh,740px); border:1px solid var(--borderSoft); border-radius:9px; scrollbar-color:#536e90 #101927; }
.ragDataScroll:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.ragDataTable { width:100%; border-spacing:0; border-collapse:separate; font-size:12px; font-variant-numeric:tabular-nums; text-align:left; }
.ragGoalSummary { min-width:800px; }
.ragGoalDetailsTable { min-width:480px; }
.ragShopDataTable { min-width:1080px; }
.ragDataTable th, .ragDataTable td { padding:11px 12px; white-space:nowrap; border-bottom:1px solid #26364a; border-right:1px solid #26364a; }
.ragDataTable tr > :last-child { border-right:0; }
.ragDataTable tbody tr:last-child > * { border-bottom:0; }
.ragDataTable thead th { color:#d3e4fc; font-size:11px; font-weight:650; background:#1b2b41; position:sticky; top:0; z-index:2; }
.ragDataTable thead tr:nth-child(2) th { top:39px; background:#172538; }
.ragDataTable tbody tr:nth-child(odd) > * { background:#121d2b; }
.ragDataTable tbody tr:nth-child(even) > * { background:#101925; }
.ragDataTable tbody tr:hover > * { background:#1a2c42; }
.ragDataTable .ragLevelColumn { position:sticky; left:0; z-index:3; min-width:82px; text-align:left; border-right:2px solid #47628a; color:#d8e9ff; }
.ragDataTable thead .ragLevelColumn { z-index:5; background:#253750; }
.ragDataTable .ragNumeral { text-align:right; }
.ragDataTable .ragPrimaryMetric { color:#d7eaff; font-weight:700; }
.ragNoData { color:#788fa9; font-size:12px; font-style:italic; text-align:center; }
.ragDataFoot { color:#94aaca; font-size:11px; line-height:1.65; margin-top:11px; }
.ragDataLink { color:#a9ccff; font-weight:650; background:transparent; border:0; padding:3px 2px; font-size:12px; text-decoration:underline; text-decoration-color:#42628a; text-underline-offset:3px; }
.ragDataLink:hover { color:#fff; }
/* r9: native modal follows the existing source/pack dialog design system. */
.ragGoalDialog[open] { display:flex; flex-direction:column; }
.ragGoalDialog .dialogHeader { flex-shrink:0; }
.ragGoalModalBody { padding:15px 22px 20px; min-height:0; overflow-y:auto; }
.ragGoalModalLead { color:var(--textSoft); font-size:12px; line-height:1.6; margin:0 0 12px; }
.ragGoalDialog .ragDataScroll { max-height:calc(100dvh - 245px); }
.ragGoalModalPanel[hidden] { display:none; }
@media (max-width:699px) {
  .ragGoalModalBody { padding:12px 12px 16px; }
  .ragGoalDialog .ragDataScroll { max-height:min(56dvh, 540px); }
  .ragGoalDetailsTable { min-width:0; font-size:11px; }
  .ragGoalDetailsTable th, .ragGoalDetailsTable td { padding:9px 6px; }
  .ragGoalDetailsTable thead th { white-space:normal; font-size:10px; }
}

.ragDataSwitcher { display:flex; flex-wrap:wrap; gap:5px; border:1px solid var(--borderSoft); background:var(--panelAlt); padding:4px; border-radius:8px; }
.ragDataSwitcher button { min-height:34px; padding:6px 11px; border:1px solid transparent; border-radius:6px; background:transparent; color:var(--textSoft); font-size:12px; }
.ragDataSwitcher button[aria-pressed="true"] { border-color:#44668d; background:var(--infoBg); color:#e4eeff; }
.ragLevelDetails { scroll-margin-top:18px; border:1px solid var(--borderSoft); border-radius:8px; margin-bottom:8px; overflow:clip; }
.ragLevelDetails[open] { border-color:#55749b; }
.ragLevelDetails summary { cursor:pointer; display:flex; align-items:center; gap:11px; padding:11px 13px; color:var(--text); background:#111c29; font-size:12px; line-height:1.45; }
.ragLevelDetails summary:hover { background:#18283c; }
.ragLevelPill { display:inline-block; border:1px solid #55769e; border-radius:5px; padding:2px 8px; font-weight:700; color:#d8e9ff; }
.ragDetailHint { margin-left:auto; color:#8ba7c8; font-size:10px; }
.ragLevelDetails .ragDataScroll { border:none; border-radius:0; max-height:510px; }
.ragDataEmpty { margin:0; padding:14px; background:#101b28; text-align:left; }
.ragVerified { color:#9bc8aa; }
.ragInferred { color:#e8c995; }
.ragShopOnlyIntro { margin:0 0 17px; }
.ragShopDataTable[data-epic="jormungandr"] [data-rag-shop-column="fenrir"], .ragShopDataTable[data-epic="fenrir"] [data-rag-shop-column="jormungandr"] { display:none; }
.ragShopDataTable[data-epic="jormungandr"] [data-rag-shop-combined], .ragShopDataTable[data-epic="fenrir"] [data-rag-shop-combined] { display:none; }
.ragShopDataTable[data-epic="jormungandr"], .ragShopDataTable[data-epic="fenrir"] { min-width:590px; }
/* r8: the combined capacity is a derived cross-shop total, not a third currency. */
.ragDataTable thead .ragCombinedHeader { border-left:2px solid var(--accent); background:#233951; color:var(--heading); }
.ragDataTable .ragCombinedTotal { border-left:2px solid var(--accent); color:var(--heading); font-weight:750; }
[data-rag-subpanel] { min-width:0; }
@media(max-width:680px) {
  .ragSubtabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; padding:5px; }
  .ragSubtabs button { padding:8px 5px; font-size:11px; white-space:normal; }
  .ragSubtabs span { display:block; margin:2px 0 0; }
  .ragDataIntro, .ragDataSheet { padding:15px 13px; }
  .ragDataIntroTop { display:block; }
  .ragDataTag { display:inline-block; margin-bottom:10px; }
  .ragDataHeader h3 { font-size:18px; }
  .ragDataTable th, .ragDataTable td { padding:10px 9px; }
  .ragDataTable .ragLevelColumn { min-width:66px; }
}
@media print { .ragSubtabs, .ragDataSwitcher { display:none !important; } .ragDataScroll { max-height:none; overflow:visible; } }

/* v1.4 r12 Forest Events: reuse native panels, tables, dialog and color tokens. */
[data-view="forest"] { min-width: 0; }
.forestTitle { margin-bottom: 18px; }
.forestIntro { margin-bottom: 18px; }
.forestEventChooser { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin: 0 0 16px; }
.forestEventChooser button { min-width: 0; min-height: 65px; background: var(--panelAlt); border: 1px solid var(--borderSoft); border-radius: 9px; color: var(--text); text-align: left; padding: 11px 12px; display:flex; flex-direction:column; justify-content:space-between; gap: 5px; }
.forestEventChooser button:hover,.forestEventChooser button:focus-visible { color: var(--heading); border-color: var(--accent); }
.forestEventChooser button[aria-selected="true"] { color: var(--heading); background: var(--infoBg); border-color: #628fc7; }
.forestEventChooser button span { font-size:13px; font-weight:600; line-height:1.35; }
.forestEventChooser button small { font-size:11px; color: var(--textSoft); }
.forestSheet { min-width: 0; }
.forestOverviewTable { min-width: 1040px; }
.forestOverviewTable td,.forestOverviewTable th { vertical-align:middle; }
.forestOtherResources { font-size: 11px; color: var(--textSoft); min-width: 170px; line-height:1.5; }
.forestCoinMetric { color:#b3d9ff; font-weight:700; }
.forestMissing { text-align: center; }
.forestScopeNote { color: var(--textSoft); font-size: 12px; line-height:1.6; padding: 8px 0; }
.forestGoalDialog { width: 1050px; }
.forestMilestoneTable { width: 100%; table-layout: auto; }
.forestMilestoneTable th:first-child,.forestMilestoneTable td:first-child { width: 45px; }
.forestMilestoneTable th:nth-child(2),.forestMilestoneTable td:nth-child(2) { white-space:nowrap; }
.forestRewardCell { min-width: 200px; }
.forestRewardLine { display:flex; gap:10px; align-items:baseline; justify-content:space-between; font-size:12px; line-height:1.55; padding:3px 0; }
.forestRewardLine + .forestRewardLine { border-top:1px solid var(--borderSoft); }
.forestRewardLine span { color:var(--textSoft); }
.forestRewardLine strong { color:var(--heading); font-variant-numeric:tabular-nums; white-space:nowrap; }
.forestUnresolved { background:rgba(170,118,51,.1); }
.forestUnresolved .forestRewardLine strong { color:#eed0a6; }
.forestItemTotals { padding:16px 0 4px; }
.forestItemTotals h3 { color:var(--heading); font-size:15px; margin:0 0 12px; }
.forestTotalGrid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.forestTotalGrid > div { border:1px solid var(--borderSoft); background:var(--panelAlt); border-radius:7px; padding:10px 12px; min-width:0; }
.forestTotalGrid small { display:block; color:var(--textSoft); font-size:11px; margin-bottom:6px; }
.forestTotalGrid strong { color:var(--heading); font-size:14px; font-variant-numeric:tabular-nums; }
@media(max-width: 900px) { .forestEventChooser { grid-template-columns: repeat(3,minmax(0,1fr)); } .forestTotalGrid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width: 600px) { .forestEventChooser { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }.forestEventChooser button { min-height:58px; padding:9px; }.forestEventChooser button span { font-size:12px; }.forestTotalGrid {grid-template-columns:repeat(2,minmax(0,1fr));}.forestGoalDialog {max-width:calc(100vw - 14px);}.forestMilestoneTable th,.forestMilestoneTable td {padding:8px 7px; font-size:11px;}.forestMilestoneTable .forestRewardCell { min-width:125px; }.forestRewardLine {font-size:11px; gap:6px;}.forestMilestoneTable th:nth-child(2) {max-width:100px; white-space:normal;}.forestMilestoneTable th:last-child {max-width:92px; white-space:normal;} }
@media print { .forestEventChooser {display:none!important;} }
/* Keep all four Forest milestone columns readable on compact phones. */
@media (max-width: 600px) {
  .forestMilestoneTable { width:100%; min-width:0; table-layout:fixed; }
  .forestMilestoneTable th,.forestMilestoneTable td { box-sizing:border-box; padding:8px 4px; font-size:10px; overflow-wrap:anywhere; }
  .forestMilestoneTable th:first-child,.forestMilestoneTable td:first-child {width:29px;}
  .forestMilestoneTable th:nth-child(2),.forestMilestoneTable td:nth-child(2) {width:73px;white-space:normal;}
  .forestMilestoneTable th:nth-child(4),.forestMilestoneTable td:nth-child(4) {width:85px;white-space:normal;}
  .forestMilestoneTable .forestRewardCell {min-width:0;}
  .forestMilestoneTable .forestRewardLine {font-size:10px;gap:4px;align-items:flex-start;flex-wrap:wrap;}
  .forestMilestoneTable .forestRewardLine span {min-width:0;overflow-wrap:anywhere;}
  .forestMilestoneTable .forestRewardLine strong {font-size:10px;}
}


/* r16: SK Start special period, extending the existing Dark Space calendar. */
.skStartPanel { padding:20px; margin:0 0 20px; }
.skStartHeader { display:flex; align-items:start; justify-content:space-between; gap:20px; }
.skStartHeader h3 { color:var(--heading); font-size:22px; line-height:1.3; margin:6px 0 6px; }
.skStartHeader p { color:var(--textSoft); font-size:13px; line-height:1.65; margin:0; max-width:760px; }
.skStartHeader strong,.skStartResearchNote strong { color:var(--heading); }
.skStartDayTag { border:1px solid var(--borderSoft);border-radius:7px;color:#b9d2f1;background:var(--infoBg);padding:7px 11px;font-size:12px;white-space:nowrap; }
.skStartFacts { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:18px 0 12px; }
.skStartFacts>div { padding:12px 13px;border:1px solid var(--borderSoft);background:var(--panelAlt);border-radius:8px;min-width:0; }
.skStartFacts small { display:block;color:var(--textSoft);font-size:11px;line-height:1.5;margin-bottom:6px; }
.skStartFacts strong { color:#d9e9fd;font-size:13px;line-height:1.45;display:block; }
.skStartModels { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0; }
.skStartModels>div { background:var(--panelAlt);border:1px solid var(--borderSoft);border-radius:8px;padding:13px 15px; }
.skStartModels strong { color:#d9e9fd;font-size:13px; }
.skStartModels p { color:var(--textSoft);font-size:12px;line-height:1.6;margin:6px 0 0; }
.skStartResearchNote { color:var(--textSoft);font-size:12px;line-height:1.65;margin:12px 0 18px; }
.skStartTimelineHeading { display:flex;justify-content:space-between;align-items:end;gap:16px;flex-wrap:wrap;margin-bottom:10px; }
.skStartTimelineHeading h4 { color:var(--heading);font-size:16px;margin:0; }
.skStartTimelineHeading p { color:var(--textSoft);font-size:12px;line-height:1.55;margin:0;max-width:670px; }
.skStartLegend { display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px; }
.skStartTimeline { border:1px solid var(--borderSoft);border-radius:8px;overflow:hidden; }
.skStartRow { display:grid;grid-template-columns:106px minmax(0,1fr);gap:0;border-bottom:1px solid var(--borderSoft);background:#111a27; }
.skStartRow:nth-child(even) { background:#101722; }
.skStartRow:last-child { border-bottom:0; }
.skStartDayButton { border:0;border-right:1px solid var(--borderSoft);border-radius:0;color:#bad7ff;background:rgba(85,126,185,.08);font-size:12px;font-weight:650;cursor:pointer; }
.skStartDayButton:hover,.skStartDayButton:focus-visible { background:var(--infoBg);color:var(--heading);outline:2px solid var(--accent);outline-offset:-2px; }
.skStartRowContents { padding:9px 12px;min-width:0; }
.skStartEventChips { display:flex;flex-wrap:wrap;gap:6px;align-items:center; }
.skStartChip { font-size:11px;line-height:1.35;border:1px solid var(--borderSoft);padding:5px 7px;border-radius:5px;max-width:100%;overflow-wrap:anywhere; }
.skStartChip.confirmed { color:#9fe4d0;background:rgba(30,123,92,.14);border-color:rgba(94,194,158,.38); }
.skStartChip.observed { color:#add4fd;background:rgba(46,107,155,.14);border-color:rgba(126,187,255,.38); }
.skStartChip.scheduled { color:#d8c49e;background:rgba(127,97,48,.14);border-color:rgba(189,149,86,.38); }
.skStartNoDated { font-size:12px;color:var(--textSoft);font-style:italic; }
.skStartBackground { color:#92a4bc;font-size:11px;line-height:1.55;margin:8px 0 0; }
.skStartEvidence { border-top:1px solid var(--borderSoft);margin-top:15px;padding:13px 0 0;font-size:12px;color:var(--textSoft);line-height:1.65; }
.skStartEvidence summary { cursor:pointer;color:#abcfff;font-weight:600; }
.skStartEvidence p { margin:9px 0 2px; }
.calendarPick.isSkStart { box-shadow:inset 0 -2px 0 #486fa4; }
@media(max-width:920px) { .skStartFacts {grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(max-width:640px) { .skStartPanel{padding:14px}.skStartHeader{display:block}.skStartDayTag{display:inline-block;margin-top:10px}.skStartModels{grid-template-columns:1fr}.skStartFacts{gap:7px}.skStartFacts>div{padding:10px}.skStartFacts strong{font-size:12px}.skStartRow{grid-template-columns:75px minmax(0,1fr)}.skStartRowContents{padding:8px}.skStartDayButton{font-size:11px}.skStartChip{font-size:10px;padding:5px 6px}.skStartBackground{font-size:10px}.skStartHeader h3{font-size:20px} }
/* r18: smart calendar follows the existing Dark Space tokens and panel styles. */
.calendarDirectory { padding:18px 20px; margin-bottom:16px; }
.calendarDirectory h3, .calendarEventDetails h3 { margin:0 0 5px; color:var(--heading);font-size:20px; }
.calendarDirectory p, .calendarEventDetailsHeading p { margin:5px 0 0; color:var(--textSoft);font-size:12px;line-height:1.55; }
.calendarDirectoryControls { display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:14px 0 8px; }
.calendarDirectoryControls select { flex:1 1 255px;max-width:510px;min-width:0;min-height:42px;border:1px solid var(--borderSoft);border-radius:8px;background:var(--panelAlt);color:var(--heading);padding:8px 10px; }
.calendarLocalNote { font-size:11px;color:var(--textSoft);line-height:1.55;margin:9px 0 0; }
.calendarEventLink { color:var(--heading);text-decoration:underline;text-decoration-color:#587cb3;text-underline-offset:3px;font-size:14px;font-weight:600;border:0;background:transparent;padding:2px 0;cursor:pointer;text-align:left; }
.calendarEventLink:hover,.calendarInlineLink:hover { color:var(--accent); }
.calendarOccurrenceActions { margin-top:11px;display:flex;gap:8px;flex-wrap:wrap;align-items:center; }
.calendarOccurrenceActions .secondaryButton,.calendarTableActions .secondaryButton { min-height:32px;padding:5px 9px;font-size:11px; }
.calendarConfirmedText { color:var(--heading);font-size:12px; }
.calendarInlineLink { border:0;background:transparent;padding:3px 0;text-decoration:underline;color:var(--heading);font-weight:600;cursor:pointer;white-space:nowrap; }
.calendarEventDetails { padding:20px; margin-bottom:18px; }
.calendarEventDetailsHeading { display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:18px 0 16px;align-items:center; }
.calendarEventDetailsHeading strong { border:1px solid var(--borderSoft);border-radius:7px;color:var(--heading);font-size:12px;line-height:1.5;padding:9px 11px;background:var(--panelAlt); }
.calendarOccurrenceTable { min-width:680px;width:100%;border-collapse:collapse;font-size:12px; }
.calendarOccurrenceTable td,.calendarOccurrenceTable th { padding:10px;border-bottom:1px solid var(--borderSoft);text-align:left;vertical-align:middle; }
.calendarOccurrenceTable td:first-child,.calendarOccurrenceTable th:first-child { position:sticky;left:0;z-index:1;background:var(--panel); }
.calendarOccurrenceTable th { color:var(--heading);font-size:11px; }
.calendarTableActions { min-width:195px;white-space:normal; }
.calendarTableActions .secondaryButton { margin:2px 4px 2px 0; }
.calendarCorrectionDialog { width:760px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);overflow:auto;background:var(--panel);color:var(--text);border:1px solid #405675;border-radius:14px;box-shadow:0 24px 90px rgba(0,0,0,.6);padding:0; }
.calendarCorrectionBody { padding:19px 24px;display:grid;gap:14px; }
.calendarCorrectionGrid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
.calendarCorrectionGrid .questionInput:read-only { opacity:.72;cursor:default; }
.calendarCorrectionPreview { margin:0;color:var(--heading);font-size:12px; }
.calendarCorrectionActions { display:flex;justify-content:flex-end;gap:9px;align-items:center;flex-wrap:wrap;padding:14px 24px;border-top:1px solid var(--borderSoft); }
.calendarCorrectionBody .dangerText { margin:0;min-height:13px;font-size:12px; }
.calendarLayout[hidden],.skStartPanel[hidden],.calendarEventDetails[hidden]{display:none!important;}
@media(max-width:650px) {
  .calendarDirectory,.calendarEventDetails { padding:13px; }
  .calendarDirectoryControls .secondaryButton { flex:1 1 auto; }
  .calendarEventDetailsHeading h3 { font-size:18px; }
  .calendarCorrectionGrid { grid-template-columns:1fr; }
  .calendarCorrectionBody { padding:15px; }
  .calendarCorrectionActions { padding:12px 15px; }
  .calendarCorrectionActions .secondaryButton,.calendarCorrectionActions .primaryButton { flex:1 1 auto; }
}

/* v1.4 r19 - additive Dark Space Settings components, no palette changes. */
.settingsGrid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.settingsPanel { padding:18px; min-width:0; margin-bottom:16px; }
.settingsPanel h3 { margin:0 0 14px; }
.settingsForm { display:grid; gap:14px; }
.settingsForm .field { display:grid; gap:6px; }
.settingsForm .field small { opacity:.8; line-height:1.45; }
.settingsActions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.settingsInfo { display:grid; grid-template-columns:minmax(120px,1fr) minmax(0,2fr); gap:10px; margin:0 0 20px; }
.settingsInfo dt { color:var(--muted,#9da9bf); }
.settingsInfo dd { margin:0; overflow-wrap:anywhere; }
.settingsStatus { min-height:1.3em; margin:0; font-size:.9rem; }
.settingsPanel .calendarLocalNote { margin-top:12px; }
@media (max-width:800px) { .settingsGrid { grid-template-columns:1fr; } }

/* v1.4 r20 - Event Registry Data Sheet. Existing Dark Space tokens are preserved. */
.eventSheetMetricRow { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:17px; }
.eventSheetMetricRow>div { padding:12px 15px;background:var(--panel);border:1px solid var(--borderSoft);border-radius:8px;min-width:0; }
.eventSheetMetricRow small { display:block;color:var(--textSoft);font-size:11px;margin-bottom:5px; }
.eventSheetMetricRow strong { display:block;color:var(--heading);font-size:17px; }
.eventSheetPanel { padding:18px 20px;margin-bottom:17px; }
.eventSheetPanel h3 { color:var(--heading);margin:0 0 8px;font-size:19px; }
.eventSheetPanel p.muted { font-size:12px;line-height:1.65; }
.eventSheetControlRow { display:grid;grid-template-columns:minmax(210px,1.5fr) minmax(155px,1fr) minmax(155px,1fr);gap:12px; }
.eventSheetControlRow .field { display:grid;gap:6px;font-size:12px;color:var(--textSoft); }
.eventSheetControlRow .questionInput { min-height:42px;min-width:0; }
.eventSheetSummary { display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin:14px 0 10px;color:var(--textSoft);font-size:11px; }
.eventSheetSummary strong { color:var(--heading);font-size:12px; }
.eventSheetTable { min-width:960px;width:100%;border-collapse:collapse;table-layout:auto;font-size:12px; }
.eventSheetTable th,.eventSheetTable td,.eventSheetResearchTable th,.eventSheetResearchTable td { border-bottom:1px solid var(--borderSoft);padding:10px 9px;text-align:left;vertical-align:middle; }
.eventSheetTable th,.eventSheetResearchTable th { color:var(--heading);font-size:11px; }
.eventSheetTable td:first-child,.eventSheetTable th:first-child { position:sticky;left:0;z-index:2;background:var(--panel);min-width:180px;max-width:265px; }
.eventSheetTable td:first-child { box-shadow:1px 0 0 var(--borderSoft); }
.eventSheetLinked { color:var(--textSoft);font-size:11px;line-height:1.5;max-width:265px; }
.eventSheetActions { display:flex;gap:5px;align-items:center;flex-wrap:wrap; }
.eventSheetActions .secondaryButton { font-size:11px;min-height:31px;padding:5px 8px; }
.eventSheetActions .secondaryButton:disabled { opacity:.35;cursor:not-allowed; }
.eventSheetTable tr[hidden] { display:none!important; }
.eventSheetEmpty { color:var(--textSoft);font-size:12px;margin:14px 0 0; }
.eventSheetSources { display:flex;flex-wrap:wrap;gap:12px;margin:12px 0; }
.eventSheetSources a { color:var(--heading);text-decoration:underline;text-decoration-color:var(--borderSoft);text-underline-offset:3px;font-size:13px; }
.eventSheetResearch { border-top:1px solid var(--borderSoft);padding-top:10px;font-size:12px; }
.eventSheetResearch summary { cursor:pointer;color:var(--heading); }
.eventSheetResearchTable { min-width:650px;border-collapse:collapse;width:100%;font-size:12px;margin-top:11px; }
.eventSheetDialog { width:800px; }
.eventSheetDialogBody { padding:16px 22px;max-height:60dvh;overflow:auto; }
.eventSheetDetailType { color:var(--textSoft);font-size:11px;letter-spacing:.04em;margin:0 0 10px; }
.eventSheetDetailIntro { color:var(--heading);font-size:13px;line-height:1.6;margin:0 0 13px; }
.eventSheetDetailList { margin:0;display:grid;gap:0; }
.eventSheetDetailField { display:grid;grid-template-columns:minmax(140px,0.38fr) minmax(0,1fr);gap:10px;padding:9px 2px;border-bottom:1px solid var(--borderSoft); }
.eventSheetDetailField dt { color:var(--textSoft);font-size:11px; }
.eventSheetDetailField dd { margin:0;color:var(--heading);font-size:12px;overflow-wrap:anywhere; }
/* Opening template is EXPECTED/ASSUMED in its entirety; source status is internal. */
.skStartChip,.skStartChip.confirmed,.skStartChip.observed,.skStartChip.scheduled,.skStartChip.projected { color:var(--text);background:var(--panelAlt);border-color:var(--borderSoft);font-weight:400;font-style:normal; }
@media(max-width:920px) { .eventSheetMetricRow { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:640px) { .eventSheetPanel { padding:12px; }.eventSheetControlRow { grid-template-columns:1fr;gap:9px; }.eventSheetMetricRow { gap:7px; }.eventSheetMetricRow>div{padding:10px}.eventSheetDetailField{grid-template-columns:1fr;gap:3px}.eventSheetDialogBody{padding:12px}.eventSheetTable{font-size:11px}.eventSheetTable td:first-child,.eventSheetTable th:first-child{min-width:144px;max-width:186px} }

/* EVENTS reference tables: existing Dark Space tokens, fixed name column. */
.eventReferenceIntro { margin-bottom:20px; }
.eventReferenceIntro p { font-size:13px; line-height:1.6; margin:7px 0; }
.eventReferencePanel { background:var(--panel); border:1px solid var(--border); border-radius:10px; padding:16px; margin-bottom:20px; min-width:0; }
.eventReferenceHeading { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom:10px; }
.eventReferenceHeading h3 { margin:0; font-size:18px; }
.eventReferencePanel > p { font-size:13px; line-height:1.6; margin:0 0 12px; }
.eventReferenceScroll { overflow-x:auto; max-width:100%; border:1px solid var(--borderSoft); border-radius:7px; }
.eventReferenceTable { border-collapse:separate; border-spacing:0; width:100%; min-width:1190px; table-layout:fixed; font-size:13px; }
.eventReferenceNameCol { width:190px; }.eventReferenceKingdomCol { width:130px; }.eventReferenceTimingCol { width:137px; }
.eventReferenceNotesCol { width:auto; }
.eventReferenceTable th,.eventReferenceTable td { padding:8px; border-right:1px solid var(--border); border-bottom:1px solid var(--border); text-align:left; vertical-align:top; }
.eventReferenceTable thead th { background:var(--panelAlt); color:var(--heading); text-align:center; vertical-align:middle; }
.eventReferenceTable .eventReferenceName { position:sticky; left:0; z-index:2; background:var(--panel); box-shadow:1px 0 0 var(--borderSoft); text-align:left; overflow-wrap:anywhere; }
.eventReferenceName small { display:block; font-size:11px; font-weight:400; }
.eventReferenceExpected { color:var(--warnBorder); }
.eventReferenceTable input,.eventReferenceTable select,.eventReferenceTable textarea { display:block; width:100%; min-width:0; padding:7px; border:1px solid var(--borderSoft); border-radius:5px; background:var(--panelAlt); color:var(--text); font:inherit; line-height:1.5; }
.eventReferenceTable textarea { min-height:90px; resize:vertical; }
.eventReferenceTable input:focus,.eventReferenceTable select:focus,.eventReferenceTable textarea:focus { outline:1px solid var(--accent); }
.eventReferenceTable input:disabled,.eventReferenceTable select:disabled,.eventReferenceTable textarea:disabled { opacity:1; color:var(--textSoft); cursor:default; }
.eventReferenceActions { display:flex; align-items:center; flex-wrap:wrap; gap:5px; margin:5px 0; }
.eventReferenceActions .secondaryButton { min-height:30px; padding:4px 10px; font-size:12px; }
.eventReferenceActions button:disabled { opacity:.45; cursor:not-allowed; }
.eventReferenceTable [data-event-reference-row-status] { display:block; color:var(--textSoft); font-size:11px; }
.eventReferenceDirty .eventReferenceName { box-shadow:inset 3px 0 var(--warnBorder); }
.eventReferenceSources { font-size:11px; line-height:1.5; overflow-wrap:anywhere; color:var(--textSoft); }
.eventReferenceSources summary { cursor:pointer; }
.eventReferenceSources ul { margin:4px 0; padding-left:16px; }
.eventReferenceOpening { overflow-x:auto; font-size:13px; }
.eventReferenceOpening h1 { font-size:16px; }
@media(max-width:640px) { .eventReferencePanel { padding:10px; }.eventReferenceNameCol { width:145px; }.eventReferenceTable { min-width:1145px; }.eventReferenceTable th,.eventReferenceTable td { padding:6px; } }

.eventReferenceTable textarea.eventReferenceTiming { min-height:58px; height:58px; resize:none; overflow:auto; }
.eventReferenceOpening h2 { font-size:17px; }
