:root{color-scheme:light;--ink:#253a33;--muted:#66716a;--paper:#fffdf8;--canvas:#ebece5;--line:#cbd0c4;--accent:#8d392d;--serif:"Noto Serif CJK SC","Source Han Serif SC","Songti SC","SimSun",serif;--sans:"Microsoft YaHei","PingFang SC",system-ui,sans-serif}
*{box-sizing:border-box}
body{margin:0;background:var(--canvas);color:var(--ink);font:16px/1.7 var(--sans)}
button,a{-webkit-tap-highlight-color:transparent}
button{font:inherit;cursor:pointer}
button:focus-visible,a:focus-visible{outline:3px solid #b5732c;outline-offset:5px}
[hidden]{display:none!important}
.skip-link{position:absolute;left:20px;top:-80px;z-index:10;padding:10px 20px;background:var(--ink);color:white}
.skip-link:focus{top:10px}
.masthead{max-width:1480px;margin:auto;min-height:120px;padding:26px 4.5%;display:flex;align-items:center;justify-content:space-between;gap:20px}
.wordmark{color:var(--ink);text-decoration:none;display:flex;align-items:center;gap:16px;font:700 25px/1.35 var(--serif);letter-spacing:2px}
.wordmark small{display:block;font:10px/2 var(--sans);letter-spacing:2.5px;margin-top:4px}
.seal{display:grid;place-items:center;width:43px;height:47px;border:2px solid var(--accent);outline:1px solid var(--accent);outline-offset:3px;color:var(--accent);font:700 30px var(--serif);transform:rotate(-3deg);letter-spacing:0}
.edition{font-size:13px;white-space:nowrap;display:flex;align-items:center;gap:9px;color:var(--muted)}
.status-dot{width:6px;height:6px;border-radius:50%;background:#47765c}
.version{margin-left:4px;padding:1px 7px;border:1px solid var(--line);font:12px/1.6 monospace}
.layout{max-width:1480px;margin:auto;padding:7px 4.5% 24px;display:grid;grid-template-columns:230px minmax(0,1fr) 190px;gap:28px;align-items:start}
.section-label{display:flex;justify-content:space-between;font:11px/1.7 monospace;letter-spacing:1px;border-top:2px solid var(--ink);padding-top:12px}
.section-label span{font-size:12px;letter-spacing:0}
.profile{padding-top:2px}
.profile-caption{margin:32px 0 7px;font-size:14px;color:var(--muted)}
h1{font:700 29px/1.5 var(--serif);margin:0 0 29px;letter-spacing:1px}
h1 span{display:block;font:14px/1.8 var(--sans);font-weight:400;color:var(--muted);letter-spacing:0;margin-top:9px}
.identity{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:19px 0;display:grid;grid-template-columns:1fr;gap:3px;font-size:14px}
.identity span{color:var(--muted);font-size:12px}
.identity strong{font-weight:400;margin-bottom:8px}
.identity strong:last-child{margin-bottom:0}
.stats{margin-top:26px;display:grid;gap:22px}
.stat-heading{display:flex;justify-content:space-between;align-items:center;font-size:14px;margin-bottom:7px}
.stat-heading strong{font:23px/1.2 Georgia,serif}
.stat-heading small{font:12px var(--sans);color:var(--muted);margin-left:5px}
progress{appearance:none;display:block;border:none;background:#d3d8cc;width:100%;height:4px;color:var(--ink)}
progress::-webkit-progress-bar{background:#d3d8cc}
progress::-webkit-progress-value{background:var(--ink);transition:width .4s}
progress::-moz-progress-bar{background:var(--ink)}
#energy-bar{color:var(--accent)}
#energy-bar::-webkit-progress-value{background:var(--accent)}
#energy-bar::-moz-progress-bar{background:var(--accent)}
.profile-note{font:14px/1.9 var(--serif);margin-top:35px;color:var(--muted)}
.file-footer{display:flex;justify-content:space-between;margin-top:24px;padding-top:12px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.story-panel{background:var(--paper);border:1px solid #c9ccbf;box-shadow:0 5px 20px #26392e08;position:relative;min-width:0}
.chapter-line{padding:17px 30px;display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #dddcd0;color:var(--muted);font-size:12px;letter-spacing:.6px}
#round{font-family:monospace;white-space:nowrap}
.story-body{padding:32px 36px 23px}
.event-meta{display:flex;align-items:center;gap:14px;color:var(--muted);font-size:12px}
.event-tag{border:1px solid #b78a76;color:var(--accent);padding:1px 8px;letter-spacing:1px}
h2#event-title{font:700 clamp(27px,2.45vw,37px)/1.55 var(--serif);letter-spacing:1px;margin:20px 0 20px;outline:none}
.narrative{font:16px/2 var(--serif);color:#374039}
.narrative p{margin:0 0 16px}
blockquote{margin:21px 0;padding:13px 17px;border-left:2px solid #a56c4f;background:#f2f0e7;color:#595247;font-size:16px;line-height:1.95}
.choice-prompt{margin:27px 0 12px;font-size:14px;font-weight:600}
.choices{display:grid;gap:10px}
.choice{width:100%;text-align:left;padding:14px 15px;display:grid;grid-template-columns:25px 1fr 18px;gap:9px;align-items:start;background:transparent;color:var(--ink);border:1px solid #c9cec2;transition:background .15s,border-color .15s,transform .15s}
.choice:not(:disabled):hover{background:#f0f3e9;border-color:#4a6353;transform:translateX(2px)}
.choice-letter{font:16px/1.5 Georgia,serif;color:#7d8579}
.choice-title{display:block;font-size:15px;font-weight:600;line-height:1.6}
.choice-hint{display:block;font-size:12px;line-height:1.6;color:var(--muted);margin-top:4px}
.choice-arrow{font-size:16px;color:#7b887b}
.choice:disabled{cursor:default;opacity:.43}
.choice.selected{opacity:1;background:#e8eee2;border-color:#607c64}
.choice.selected .choice-letter{color:var(--ink)}
.outcome{border-left:3px solid var(--accent);padding:12px 15px;margin-top:19px;background:#f4f0e8;font-size:14px;line-height:1.85}
.outcome p{margin:0 0 8px}
.changes{display:flex;flex-wrap:wrap;gap:5px 16px;font-size:12px;color:#465e48}
.changes .negative{color:var(--accent)}
.next-row{margin-top:22px;display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:38px}
#step-note{color:#818578;font-size:12px}
.continue-button{border:1px solid var(--ink);background:var(--ink);color:#fffdf8;padding:9px 20px;font-size:14px;white-space:nowrap}
.continue-button:hover{background:#355748}
.continue-button span{margin-left:15px}
.paper-footer{border-top:1px solid #dddcd0;padding:12px 25px;display:flex;justify-content:space-between;gap:12px;color:#8a8d7f;font:11px/1.8 var(--serif);letter-spacing:1px}
.journal{padding-top:2px}
.journal h2{font:700 22px/1.5 var(--serif);margin:29px 0 9px}
.journal-intro{font-size:13px;line-height:1.9;color:var(--muted);margin:0 0 28px}
.history{padding:0 0 0 15px;margin:0 0 30px;list-style:none;border-left:1px solid #bdc5b6}
.history li{position:relative;margin:0 0 23px}
.history li::before{content:"";position:absolute;left:-19px;top:9px;width:7px;height:7px;border-radius:50%;background:#54705a;box-shadow:0 0 0 4px var(--canvas)}
.history-time{font-size:11px;color:#777f70}
.history p{font:14px/1.9 var(--serif);margin:6px 0}
.preview-note{border-top:1px solid var(--line);padding-top:17px;color:var(--muted)}
.preview-note span{font-size:12px;color:var(--accent)}
.preview-note p{font-size:12px;line-height:1.9;margin:8px 0}
.restart-button{padding:9px 0;margin-top:13px;font-size:13px;background:none;border:0;border-bottom:1px solid #9da998;color:var(--ink)}
.restart-button span{margin-left:26px}
.site-footer{max-width:1480px;margin:8px auto 0;padding:20px 4.5% 28px;display:flex;justify-content:space-between;gap:20px;font-size:11px;color:#7b8375}
.ending-quote{font-size:19px;line-height:1.9;color:var(--accent);margin-bottom:24px!important}
.ending-stats{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:24px 0;margin:26px 0;text-align:center}
.ending-stats strong{display:block;font:32px/1.6 Georgia,serif;color:var(--ink)}
.ending-stats span{font:12px/1.8 var(--sans);color:var(--muted)}
.noscript{position:fixed;bottom:20px;left:20px;right:20px;background:#fff;padding:20px;border:2px solid var(--accent)}
@media(min-width:1450px){.layout{grid-template-columns:250px minmax(0,1fr) 205px;gap:37px}.story-body{padding:38px 45px 28px}.narrative{font-size:17px}}
@media(max-width:1120px){.layout{grid-template-columns:200px minmax(0,1fr);gap:24px}.journal{grid-column:1/-1;display:grid;grid-template-columns:200px 1fr;gap:0 24px}.journal .section-label{grid-column:1/-1}.journal h2{margin:18px 0 5px}.journal-intro{grid-column:1;grid-row:3}.history{grid-column:2;grid-row:2/5;display:flex;flex-wrap:wrap;gap:0 30px;margin:20px 0 0}.history li{max-width:210px}.preview-note{grid-column:1}.restart-button{grid-column:1;justify-self:start}}
@media(max-width:700px){.masthead{padding:25px 22px;min-height:98px}.wordmark{font-size:21px;gap:13px}.wordmark small{font-size:8px;letter-spacing:1.4px}.seal{width:34px;height:39px;font-size:25px}.edition{font-size:11px;gap:6px}.version{display:none}.layout{padding:0 16px 12px;grid-template-columns:1fr;gap:22px}.profile{display:grid;grid-template-columns:1fr 1fr;gap:0 16px;padding:0 7px}.profile .section-label{grid-column:1/-1;font-size:10px}.profile-caption{margin:13px 0 2px;grid-column:1;font-size:12px}h1{font-size:23px;margin:0;grid-column:1}h1 span{font-size:12px;margin-top:2px}.identity,.profile-note,.file-footer{display:none}.stats{grid-column:2;grid-row:2/4;margin:14px 0 0;gap:9px}.stat-heading{font-size:11px;margin-bottom:4px}.stat-heading strong{font-size:17px}.stat-heading small{font-size:10px}progress{height:3px}.chapter-line{padding:13px 20px;font-size:11px}.story-body{padding:25px 22px 18px}h2#event-title{font-size:29px;margin-top:19px}.narrative{font-size:16px;line-height:1.95}.choice{padding:13px 11px;grid-template-columns:20px 1fr 13px;gap:7px}.choice-title{font-size:14px}.choice-hint{font-size:12px}.paper-footer{padding:11px 17px;font-size:10px}.paper-footer span:last-child{display:none}.journal{grid-column:1;display:block;margin:0 7px}.journal h2{font-size:20px;margin:17px 0 9px}.journal-intro{display:none}.history{display:block;margin:0 0 23px 3px}.history li{max-width:none;margin-bottom:17px}.history p br{display:none}.preview-note{padding-top:12px}.site-footer{margin-top:0;padding:12px 23px 24px;font-size:10px;flex-direction:column;gap:5px}.next-row{align-items:flex-start}#step-note{font-size:11px;max-width:54%}.event-meta{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

/* v0.2: preserve the paper dossier, expand it into a playable life archive. */
button:disabled{cursor:not-allowed;opacity:.46}
input,select,textarea{font:14px/1.6 var(--sans);color:var(--ink);border:1px solid #bdc5b8;background:#fffefa;border-radius:0;padding:10px 12px;min-width:0;max-width:100%}
select{min-height:44px;cursor:pointer}
input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #59755e;outline-offset:3px}
input[type=checkbox],input[type=radio]{accent-color:var(--ink);width:17px;height:17px;flex:0 0 auto}
input[type=file]{max-width:100%;font-size:13px}
textarea{width:100%;resize:vertical}
summary{cursor:pointer;font-size:14px;line-height:1.8;min-height:36px;padding:7px 0;color:var(--ink)}
details[open]>summary{margin-bottom:8px}
details summary::marker{color:#76876e;font-size:12px}
h3{font:600 18px/1.6 var(--serif);margin:15px 0 10px}
h4{font-size:14px;margin:0 0 12px}
#view-title{font:700 clamp(27px,2.35vw,36px)/1.6 var(--serif);letter-spacing:.5px;margin:18px 0 22px;outline:none;overflow-wrap:anywhere}
.muted{color:var(--muted)}
.intro{font-size:14px;line-height:1.9;margin:0 0 25px}
.fine-print{color:var(--muted);font-size:12px;line-height:1.9;margin:10px 0 14px}
.eyebrow{color:var(--accent);font-size:12px;letter-spacing:.5px}
.masthead{flex-wrap:wrap}
.wordmark small{font:12px/1.8 var(--sans);letter-spacing:4px}
.header-tools{display:flex;align-items:center;gap:15px;flex-wrap:wrap}
.header-tools .edition{margin-right:10px}
.text-button{background:none;border:0;border-bottom:1px solid transparent;padding:7px 2px;color:var(--ink);font-size:13px;min-height:36px}
.text-button:hover,.text-button[aria-pressed=true]{border-bottom-color:var(--ink)}
.save-button{padding:8px 14px;min-height:39px;border:1px solid #7b8e78;background:transparent;color:var(--ink);font-size:13px}
.save-button:hover{background:#dee5d8}
.primary-button,.secondary-button{font-size:14px;line-height:1.7;padding:10px 18px;min-height:44px;border:1px solid var(--ink);white-space:normal;transition:background .15s}
.primary-button{background:var(--ink);color:var(--paper)}
.primary-button:not(:disabled):hover{background:#385b49}
.secondary-button{background:transparent;color:var(--ink);border-color:#bdc7b6}
.secondary-button:not(:disabled):hover{background:#edf1e7}
.next-row{margin-top:26px;align-items:center}
.next-row>.primary-button{flex-shrink:0;max-width:60%}
.step-note{font-size:12px;color:var(--muted);max-width:50%}
.section-label{font-size:12px}
.profile-caption{display:flex;justify-content:space-between;gap:9px}
.profile-caption>span{font-size:12px}
.profile h1{font-size:28px;margin-bottom:25px}
.profile h1 span{font-size:13px;letter-spacing:0}
.stat-heading{position:relative}
.stat-heading strong{margin-left:auto}
.stat-change{font:12px var(--sans);color:#4e7654;margin-left:7px;animation:delta-arrive .5s ease-out}
.stat.tone-danger progress::-webkit-progress-value{background:var(--accent)}
.stat.tone-danger progress::-moz-progress-bar{background:var(--accent)}
.resource-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:25px 0 18px;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.resource-totals strong{font:23px/1.7 Georgia,serif;display:block;overflow-wrap:anywhere}
.resource-totals span{font-size:12px;color:var(--muted)}
.profile-more>summary{font-size:13px}
.mini-rows{font-size:12px}
.mini-row{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:7px 0;font-size:13px;border-bottom:1px dotted #d0d5c8}
.mini-row>span{color:var(--muted);flex-shrink:0}
.mini-row>strong{font-weight:400;text-align:right;overflow-wrap:anywhere}
.badge-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}
.badge{display:inline-block;padding:1px 7px;border:1px solid #c3cbbd;color:#506849;font:12px/1.7 var(--sans);white-space:normal}
.profile-note{font-size:13px;margin-top:22px}
.view-tabs{display:flex;gap:0;border-bottom:1px solid #d0d3c6}
.view-tab{flex:1;padding:13px 5px;min-height:47px;font-size:13px;border:0;border-bottom:2px solid transparent;background:#f5f5ed;color:var(--muted)}
.view-tab:hover{background:#edf0e6}
.view-tab.active{color:var(--ink);border-bottom-color:var(--ink);background:var(--paper)}
.year-steps{display:flex;gap:26px;align-items:center;margin-bottom:24px;color:#929889;font-size:12px}
.year-steps span{display:flex;align-items:center;gap:7px}
.year-steps i{font:12px/1.5 Georgia,serif;border-bottom:1px solid #bfc7b7;padding:1px 3px}
.year-steps .active{color:var(--ink)}
.year-steps .active i{background:var(--ink);color:var(--paper);border:0}
.story-body{padding:30px 32px 25px}
.narrative{font-size:17px;line-height:2.05}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:30px}
.form-grid label{display:flex;flex-direction:column;gap:7px;font-size:13px}
.form-grid input,.form-grid select{width:100%}
.origin-note{font:14px/1.9 var(--serif);color:var(--muted);padding:13px 16px;border-left:2px solid #a9b39e;background:#f2f3e9;margin:20px 0 28px}
.personality-field{padding:0;border:0;margin:0;display:grid;gap:10px}
.personality-field legend{font-size:14px;font-weight:600;margin-bottom:13px}
.personality-card{display:flex;gap:13px;padding:15px 17px;border:1px solid #ccd2c4;cursor:pointer;transition:background .15s,border-color .15s}
.personality-card:has(input:checked){background:#ebf0e3;border-color:#79916f}
.personality-card input{margin-top:5px}
.personality-card strong{font-size:15px;display:inline-block;margin-right:14px}
.personality-card em{font:14px/1.9 var(--serif);font-style:normal;color:#627057}
.personality-card small{font-size:12px;line-height:1.9;display:block;margin-top:7px;color:var(--muted)}
.start-actions{display:flex;justify-content:space-between;flex-wrap:wrap;gap:15px;margin-top:28px}
.rumor-note{border-left:2px solid #b9a387;padding:11px 16px;background:#f3f1e8;margin:0 0 30px}
.rumor-note>span{font-size:12px;color:var(--accent)}
.rumor-note p{font:14px/1.95 var(--serif);color:#69705f;margin:5px 0 0}
.planning-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.planning-heading h3{margin:0}
.selection-count{font:13px/1.6 monospace;color:var(--muted)}
.target-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin:19px 0 22px}
.target-control{display:flex;flex-direction:column;gap:6px;font-size:12px}
.target-control select{width:100%;background:#fafbf4}
.target-control small{font-size:12px;color:var(--muted);line-height:1.8}
.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.action-card{display:flex;align-items:flex-start;gap:10px;text-align:left;background:transparent;border:1px solid #cbd1c2;color:var(--ink);padding:15px 13px;transition:background .15s,border-color .15s}
.action-card:not(:disabled):hover{background:#f0f3e9;border-color:#7b9174}
.action-card.selected{background:#e9eee0;border-color:#617959;box-shadow:inset 3px 0 #657d5e}
.action-number{font:15px/1.6 Georgia,serif;color:#7a8970;min-width:20px}
.action-content{min-width:0}
.action-content strong{font-size:14px;display:block;font-weight:600}
.action-short{display:block;font-size:12px;color:#68745e;margin-top:3px}
.action-content small{display:block;margin-top:9px;font-size:12px;color:var(--muted);line-height:1.85}
.action-card:disabled{opacity:.48}
.custom-plan{border-top:1px dashed #c8cfbf;margin-top:25px;padding-top:12px}
.custom-plan .secondary-button{margin-top:10px;font-size:13px;padding:6px 13px}
.plan-check{background:#f1f3e9;border:1px solid #dce1d3;padding:12px 14px;font-size:13px;margin-top:22px}
.plan-check small{display:block;font-size:12px;color:var(--muted);margin-top:5px}
.supply-box{margin-top:20px;padding:16px;background:#f4f0e6;border:1px dashed #c6bca4}
.supply-option{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:13px;margin:9px 0}
.supply-option small{font-size:12px;color:var(--muted);display:block;width:100%;padding-left:27px}
.quiet-actions{text-align:right;margin-top:16px}
.action-recap{margin:0 0 23px;border-top:1px solid #d6dacd;border-bottom:1px solid #d6dacd;padding:5px 0}
.action-recap summary{font-size:12px;color:var(--muted)}
.action-recap ul{margin:8px 0 15px;padding-left:19px;font-size:13px;line-height:1.95;color:#586250}
.action-recap li{margin:7px 0}
.choice{padding:16px 16px;grid-template-columns:25px 1fr 17px}
.choice-hint{font-size:13px;line-height:1.9;margin-top:7px}
.choice-title{font-size:15px}
.probability{display:block;font:12px/1.8 var(--sans);color:#55764d;margin-top:6px}
.gray-choice{border-color:#ceb3a1}
.gray-choice .choice-letter{color:var(--accent)}
.intervention{margin-top:18px;padding-top:12px;display:flex;align-items:center;gap:14px;border-top:1px dashed #c9cebf}
.intervention>span{font-size:12px;line-height:1.8;color:var(--muted);flex:1}
.intervention button{flex-shrink:0}
.event-footer{margin-top:20px}
.chosen-label{padding:12px 16px;background:#eaf0e1;border-left:3px solid #6e875e;font-size:14px;font-weight:600}
.result-text{font:17px/2.05 var(--serif);margin:25px 0}
.year-result h3{font-size:14px;font-family:var(--sans);margin:20px 0 13px}
.changes{gap:8px 13px;margin:12px 0 20px;font-size:13px}
.changes>span{padding:3px 8px;border:1px solid #d3ddc8;background:#f1f5e9}
.changes .negative{border-color:#e5d2c2;background:#f8f0e7}
.positive{color:#4f754c}.negative{color:var(--accent)}
.milestone-box{padding:17px 20px;border:1px solid #bcb393;background:#f6f1df;margin:24px 0}
.milestone-box p{font:16px/1.9 var(--serif);margin:10px 0}
.year-deltas{border-top:1px solid #d7dccd;padding-top:7px}
.diary-details{border-top:1px solid #d7dccd;border-bottom:1px solid #d7dccd;padding:9px 0;margin-top:15px}
.diary-details summary{font:18px/1.9 var(--serif)}
.diary-details summary>span{display:block;padding-left:16px;font:12px/1.8 var(--sans);color:var(--muted)}
.diary-prose{padding-top:20px}
.diary-prose p{margin-bottom:24px}
.era-block{margin:24px 0 25px}
.era-block h2{font:700 21px/1.6 var(--serif);margin:10px 0}
.era-block p{font:13px/1.95 var(--serif);color:var(--muted);margin:0}
.goal-block{padding:19px 0;border-top:1px solid #bdc7b5;border-bottom:1px solid #bdc7b5;margin-bottom:25px}
.goal-block h3{font-size:17px;margin:8px 0 14px}
.requirements{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.requirements li{display:flex;align-items:baseline;gap:7px;color:#848b79;font-size:12px;line-height:1.75}
.requirements .met{color:#3b6941}
.requirements small{margin-left:auto;white-space:nowrap;font:12px monospace}
.journal .journal-heading{font-size:20px;margin:20px 0}
.history-entry{padding:0;border:0;background:none;color:var(--ink);text-align:left;font:14px/1.9 var(--serif)}
.history-entry:hover{text-decoration:underline;text-underline-offset:4px}
.journal-link{padding:7px 0;border:0;border-bottom:1px solid #b1bda4;background:transparent;color:var(--ink);font-size:13px}
.journal .history-time{font-size:12px}
.summary-numbers{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;text-align:center;margin:26px 0;padding:21px 0;border-top:1px solid #c9d0be;border-bottom:1px solid #c9d0be}
.summary-numbers strong{font:30px/1.6 Georgia,serif;display:block}
.summary-numbers span{font-size:12px;color:var(--muted)}
.archive-section{margin:29px 0}
.archive-section>h3{border-bottom:1px solid #d5d9cc;padding-bottom:12px}
.empty-state{padding:23px 20px;border:1px dashed #c9d0be;font:14px/1.9 var(--serif);color:var(--muted);background:#f7f8f0}
.works-list{list-style:none;padding:0;margin:0}
.works-list li{display:flex;align-items:baseline;gap:20px;padding:19px 0;border-bottom:1px solid #e1e4d8}
.work-year{font:14px Georgia,serif;color:#858d77;flex-shrink:0}
.works-list strong{font:600 16px/1.9 var(--serif)}
.works-list p{font-size:12px;color:var(--muted);margin:7px 0 0}
.works-list .badge{margin-left:12px}
.inventory-grid{display:grid;gap:10px}
.inventory-item{padding:15px 17px;background:#f5f3e8;border:1px solid #d8d3c2}
.inventory-item strong{display:flex;justify-content:space-between;font-size:14px;font-weight:500}
.inventory-item p{font-size:12px;color:var(--muted);margin:8px 0 0}
.honor-list{font-size:13px}
.honor-list .badge{margin-right:12px}
.relation-grid{display:grid;gap:15px}
.relation-card{padding:20px;border:1px solid #cfd6c6;background:#fcfcf5}
.relation-card>div:first-child{display:flex;justify-content:space-between;gap:12px;align-items:center}
.relation-card h3{font-size:18px;margin:0}
.relation-card p{font:14px/1.9 var(--serif);color:var(--muted);margin:12px 0}
.relation-meter{display:flex;align-items:center;gap:13px}
.relation-meter progress{flex:1}
.relation-meter span{font:12px monospace;white-space:nowrap}
.student-list{list-style:none;padding:0;font-size:14px}
.student-list li{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px 16px;padding:11px 0;border-bottom:1px dotted #cfd6c6}
.student-list strong{font-weight:400}.student-list span{font-size:12px;color:var(--muted)}
.school-label{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:18px 0;font-size:14px}
.school-label select{width:60%}
.school-requirements{margin:20px 0;gap:12px}.school-requirements li{font-size:14px}
.skill-list{display:grid;gap:10px}
.skill{border-left:2px solid #c8cdbf;padding:12px 15px;color:#8b907f;background:#f4f5ed}
.skill.unlocked{color:var(--ink);border-color:#6c865d;background:#ecf1e2}
.skill strong{font-size:14px;font-weight:500}.skill p{font-size:12px;margin:6px 0 0;line-height:1.9}
.ending-body{padding-top:38px}.ending-quote{font:19px/1.95 var(--serif)}
.ending-badges{margin-bottom:25px}.ending-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.ending-lines{margin:20px 0}.footer-dot{margin:0 8px;color:#a9b29c}
.storage-banner,.conflict-banner{max-width:1345px;margin:0 auto 20px;padding:12px 20px;background:#f8eed9;border:1px solid #d8c8a7;font-size:13px;line-height:1.85;color:#76542e}
.conflict-banner{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.conflict-banner button{font-size:13px;padding:5px 10px;border:1px solid #bba788;background:#fffaf1;color:#76542e}
.toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:1100;background:#243d30;color:#fffdf5;padding:13px 22px;max-width:min(580px,calc(100% - 32px));box-shadow:0 4px 20px #12200c22;font-size:14px;line-height:1.8;border:1px solid #537052}
dialog{width:min(700px,calc(100vw - 32px));max-height:86vh;padding:0;border:1px solid #7f8f73;color:var(--ink);background:var(--paper);box-shadow:0 25px 90px #15271333}
dialog::backdrop{background:#1b2e235c;backdrop-filter:blur(3px)}
.dialog-heading{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:21px 27px;border-bottom:1px solid #cbd1c2;background:var(--paper);z-index:1}
.dialog-heading h2{font:700 23px/1.5 var(--serif);margin:0;outline:none}
.close-button{border:0;background:transparent;color:var(--ink);font:30px/1 sans-serif;padding:3px 8px;min-width:40px;min-height:40px}
#dialog-body{padding:25px 28px 30px}
#dialog-body>p{font-size:14px;line-height:1.9}
.dialog-actions{display:flex;justify-content:flex-end;gap:14px;margin-top:25px}
.autosave-info{border-left:3px solid #7b916d;background:#f0f3e7;padding:14px 18px;margin-bottom:16px}
.autosave-info strong{font:600 17px/1.8 var(--serif)}
.autosave-info p{font-size:13px;margin:7px 0 0;color:var(--muted)}
.save-slot{padding:20px 0;border-bottom:1px solid #d4dacb;display:flex;flex-wrap:wrap;justify-content:space-between;gap:15px}
.save-slot h3{font:600 16px/1.7 var(--serif);margin:0}
.save-slot p{font-size:13px;margin:7px 0;line-height:1.8}.save-slot small{font-size:12px;color:var(--muted)}
.slot-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.slot-actions button{font-size:13px;padding:7px 12px}
.file-tools{display:flex;flex-direction:column;align-items:flex-start;gap:20px;margin-top:24px}
.import-label{display:flex;flex-direction:column;gap:10px;font-size:14px;width:100%}
.save-footer{border-top:1px solid #d4dacb;margin-top:20px;padding-top:10px}
.help-item{border-bottom:1px solid #d4dacb;padding:7px 0}
.help-item summary{font-weight:600}.help-item p{font:15px/2 var(--serif);margin:5px 0 18px}
.all-history{list-style:none;padding:0}.all-history li{border-bottom:1px solid #d4dacb}
.history-row{display:flex;gap:20px;align-items:baseline;justify-content:space-between;text-align:left;padding:16px 0;width:100%;border:0;background:none;color:var(--ink)}
.history-row>span:nth-child(2){flex:1}.history-row strong{font:600 16px/1.8 var(--serif)}
.history-row small{display:block;font-size:12px;color:var(--muted);margin-top:6px;line-height:1.9}
.diary-heading h3{font-size:24px;margin:16px 0}.diary-heading p{font-size:14px}
.route-list{display:grid;gap:12px}.route-option{text-align:left;border:1px solid #c4cebb;padding:17px 19px;background:#f6f8ef;color:var(--ink)}
.route-option strong{display:block;font:600 17px/1.8 var(--serif)}.route-option small{display:block;font:13px/1.9 var(--sans);color:var(--muted);margin-top:6px}
.large-text .narrative,.large-text .result-text,.large-text .help-item p{font-size:20px;line-height:2.1}
.large-text .choice-title{font-size:17px}.large-text .choice-hint{font-size:15px}
.basis-note{grid-column:1/-1;margin:5px 0 0;line-height:1.85}
.story-panel{scroll-margin-top:20px}
/* v0.3: keep state, goals and consequences at the point of decision. */
.form-grid{align-items:start}
.identity strong,.profile-caption,.rail-stage{overflow-wrap:anywhere}
.stat-label{font:inherit;border:0;background:none;color:inherit;padding:5px 0;text-align:left;text-decoration:underline;text-decoration-color:#bdc5b6;text-underline-offset:4px}
.stat.tone-caution progress::-webkit-progress-value{background:#97702f}
.stat.tone-caution progress::-moz-progress-bar{background:#97702f}
.tone-danger{color:#923c2e}
.tone-caution{color:#7c591f}
.status-rail{position:sticky;top:0;z-index:5;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 10px;padding:7px 18px;background:#f6f6ec;border-bottom:1px solid #cbd0c4;box-shadow:0 3px 9px #26392e09}
.rail-stage{font-size:12px;color:var(--muted)}
.stat-chip{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;min-width:0;padding:6px 3px;border:0;background:none;font:12px/1.5 var(--sans);color:var(--ink)}
.stat-chip strong{font:600 18px/1.3 Georgia,serif}
.stat-chip small{font-size:10px;color:var(--muted)}
.stat-chip.tone-danger,.stat-chip.tone-danger small{color:#923c2e}
.stat-chip.tone-caution,.stat-chip.tone-caution small{color:#7c591f}
.stat-chip:hover{background:#e9eee0}
.rail-panel-button{border:0;border-bottom:1px solid #a4b19b;padding:5px 0;background:none;min-height:44px;font-size:12px;color:var(--ink)}
.planning-compass{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:3px 12px;border-left:2px solid #6a8062;padding:4px 0 4px 12px;font-size:13px}
.planning-compass .text-button{font-size:12px;min-height:36px}
.first-year-guide{font-size:13px;line-height:1.9;color:var(--muted);margin:14px 0 24px}
.suggested-label{display:inline-block;margin-left:7px;padding:1px 5px;background:#eaf0e1;color:#506648;font:10px/1.7 var(--sans);vertical-align:middle}
.decision-card{margin-top:24px;padding:19px 20px;background:#f5f6ec;border:1px solid #becbb4;scroll-margin-top:105px;outline-offset:4px}
.decision-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:5px 12px}
.decision-heading .text-button{font-size:12px;min-height:36px}
.decision-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:3px 0 16px;border-bottom:1px solid #d7dfce;padding-bottom:10px}
.decision-stats .stat-chip{flex-wrap:wrap;align-content:center;gap:1px 5px}
.decision-stats small{flex-basis:100%;text-align:center}
.decision-card h3{font:600 22px/1.6 var(--serif);margin:8px 0 2px}
.goal-caption{font:12px/1.8 var(--sans);color:var(--muted);margin:3px 0 13px}
.decision-requirements{margin:0 0 10px;font-size:13px}
.decision-requirements li{display:grid;grid-template-columns:16px minmax(0,1fr) auto;gap:5px;align-items:baseline;margin:6px 0}
.decision-requirements small{white-space:nowrap}
.decision-card .fine-print{font-size:12px;line-height:1.85;margin:8px 0}
.state-notice{margin:16px 0;padding:13px 15px;background:#f6eee3;border-left:3px solid #b58750;font-size:13px;line-height:1.9}
.state-notice.tone-danger{background:#f7ece5;border-color:#a95740}
.state-notice p{margin:5px 0 0}
.plan-outlook{margin:17px 0;padding:13px 0;border-top:1px dashed #bcc8b4;border-bottom:1px dashed #bcc8b4;font-size:13px}
.outlook-values{display:flex;flex-wrap:wrap;gap:6px 17px;margin-top:8px;font-size:13px}
.plan-outlook>p.tone-danger{margin:8px 0 0;font-size:12px;line-height:1.85}
.next-suggestion{margin-top:16px;font-size:13px}
.next-suggestion>p{margin:5px 0;line-height:1.9}
.next-suggestion summary{font-size:12px;min-height:36px}
.next-suggestion .secondary-button{font-size:12px;margin-top:7px;min-height:44px}
.suggestion-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px 15px}
.suggestion-actions .text-button{font-size:12px;min-height:44px}
.action-card{scroll-margin-top:110px}
.next-teaser{margin:17px 0 0;border-top:1px solid #d7dfce;padding-top:13px;font:13px/1.9 var(--serif);color:#52674c}
.stat-explanation{padding:12px 15px;background:#f0f3e7}
#view-title{scroll-margin-top:110px}
@media(max-width:700px){.status-rail{padding:5px 12px;gap:2px 7px}.rail-stage{flex-basis:100%;font-size:11px}.status-rail .stat-chip{justify-content:flex-start}.decision-card{padding:14px}.decision-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.decision-card h3{font-size:20px}.decision-heading .eyebrow{font-size:10px}.decision-requirements{font-size:12px}.state-notice{padding:11px 12px}.stat-label{padding:3px 0}.suggested-label{margin-left:4px;font-size:10px}}
@keyframes delta-arrive{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
.career-board{margin:22px 0 26px;border:1px solid #c8cfbf;background:#f8f8f0;padding:20px;min-width:0}
.career-path{list-style:none;padding:0;margin:0 0 20px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;font-size:11px;text-align:center;color:#798174}
.career-path li{border-top:2px solid #d4dacb;padding-top:7px;min-width:0;overflow-wrap:anywhere}
.career-path span{display:block;font:12px/1.6 Georgia,serif}
.career-path .complete{color:#536849;border-color:#8aa17c}.career-path .current{color:var(--accent);border-color:var(--accent);font-weight:600}
.chapter-intro h3{font:600 23px/1.6 var(--serif);margin:6px 0}.chapter-intro p{font-size:13px;line-height:1.9;margin:7px 0 18px;color:#526149}
.career-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px;border-top:1px solid #d4dacb;padding-top:18px}
.career-pair>div{min-width:0}.career-pair h4{font:600 17px/1.65 var(--serif);margin:7px 0;overflow-wrap:anywhere}
.career-pair p{font-size:12px;line-height:1.8;margin:7px 0}.career-pair .representative-mini{color:var(--muted)}
.career-goal{padding-right:16px;border-right:1px solid #d4dacb}.career-goal progress{margin:12px 0}
.career-board .text-button{font-size:12px;min-height:42px;padding:4px 0;text-align:left}
.stage-opportunity{border-top:1px dashed #c2ccb7;border-bottom:1px dashed #c2ccb7;margin:10px 0 4px;padding:10px 0;font-size:13px}
.stage-opportunity summary{display:flex;justify-content:space-between;gap:8px;min-height:44px;align-items:center;cursor:pointer}
.stage-opportunity summary:before{content:'＋';color:var(--accent)}.stage-opportunity[open] summary:before{content:'−'}
.stage-opportunity small{color:var(--muted);white-space:nowrap}.stage-opportunity .secondary-button,.collection-track .secondary-button{font-size:12px;min-height:44px}
.collection-track{border-bottom:1px solid var(--line);padding:12px 0}.collection-track summary{cursor:pointer;min-height:44px}.collection-track summary span{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.year-highlights{margin:20px 0 24px}.reward-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.reward-card{padding:16px;background:#f3f0e3;border:1px solid #c9bc98;border-top:3px solid #987449;min-width:0;animation:delta-arrive .35s ease-out}
.reward-card:last-child:nth-child(odd){grid-column:1/-1}.reward-kind{font-size:11px;color:#825832}.reward-card h3{font:600 19px/1.65 var(--serif);margin:7px 0;overflow-wrap:anywhere}.reward-card p{font-size:12px;line-height:1.9;color:#655a44;margin:0}
.full-portfolio{margin:25px 0;padding:20px;border:1px solid var(--line);background:#f9f8f0;overflow-wrap:anywhere}
.full-portfolio>h3{font:600 23px/1.6 var(--serif);margin:7px 0}.portfolio-identity{font-size:13px;color:var(--muted)}
.portfolio-stats{display:grid;grid-template-columns:1fr 1fr;gap:0 18px;margin:12px 0}.full-portfolio .mini-row{font-size:12px;flex-wrap:wrap;gap:4px 12px}
.portfolio-group{border-top:1px solid #d9ddcf;margin-top:18px;padding-top:14px}.portfolio-group h4{font:600 16px/1.7 var(--serif);margin:0 0 10px}
.portfolio-list{margin:0;padding-left:21px;font-size:13px}.portfolio-list li{padding:7px 0}.portfolio-list strong{font-weight:500;display:block}.portfolio-list span{display:block;font-size:12px;color:var(--muted);margin-top:4px}
@media(max-width:700px){.career-board{padding:15px;margin:18px 0 22px}.career-path{font-size:11px;gap:3px}.chapter-intro h3{font-size:21px}.career-pair{gap:12px}.career-goal{padding-right:12px}.career-pair h4{font-size:16px}.reward-grid{grid-template-columns:1fr}.reward-card h3{font-size:18px}.full-portfolio{padding:15px}.full-portfolio>h3{font-size:20px}.portfolio-stats{gap:0 12px}.stage-opportunity summary{flex-wrap:wrap;justify-content:flex-start}}
.ending-share{margin:30px 0;padding:23px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.ending-share h3{font:600 24px/1.7 var(--serif);margin:9px 0}
.ending-share-content{margin-top:18px}
.ending-share-image{display:block;width:100%;max-width:480px;height:auto;margin:0 auto;background:var(--paper);border:1px solid #cbd0c4;box-shadow:0 8px 24px #26392e12;-webkit-touch-callout:default;user-select:auto}
.share-image-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:20px 0 13px}
.share-image-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;text-decoration:none;font-size:14px}
@media(max-width:700px){.ending-share h3{font-size:21px}.share-image-actions a{flex:1;padding:11px 10px;font-size:13px}}
@media(min-width:1450px){.story-body{padding:35px 40px 28px}}
@media(max-width:1120px){.journal{display:grid;grid-template-columns:1fr 1fr;gap:22px}.journal>.section-label{grid-column:1/-1}.era-block{margin:0;grid-column:1;grid-row:2}.goal-block{margin:0;grid-column:2;grid-row:2;padding:0 0 20px;border-top:0}.journal .journal-heading{grid-column:1/-1;margin:0}.journal .history{grid-column:1/-1;grid-row:auto;margin:0;display:flex;flex-wrap:wrap;gap:0 30px}.journal-link{justify-self:start;grid-column:1/-1}.story-body{padding:28px}}
@media(max-width:700px){.masthead{padding:23px 20px;gap:16px}.wordmark{font-size:21px}.wordmark small{font-size:12px;letter-spacing:2px}.header-tools{gap:12px}.header-tools .edition{display:none}.header-tools .text-button{font-size:12px}.save-button{font-size:12px;padding:6px 11px}.profile{grid-template-columns:1fr 1.05fr;padding:0 6px;gap:0 18px}.profile>.section-label{grid-column:1/-1}.profile-person{grid-column:1;grid-row:2;align-self:center}.profile-caption{display:flex;font-size:12px;margin:18px 0 4px}.profile-caption>span{font-size:12px}.profile h1{font-size:26px;margin:0}.profile h1 span{font-size:12px;line-height:1.8}.profile .stats{grid-column:2;grid-row:2;margin:17px 0 0;gap:11px}.stat-heading{font-size:12px}.stat-heading strong{font-size:18px}.stat-heading small{font-size:12px}.stat-change{font-size:10px;margin-left:4px}.resource-totals{grid-column:1/-1;margin:20px 0 7px;padding:10px 0;text-align:center}.resource-totals strong{font-size:21px}.resource-totals span{font-size:12px}.profile-more{grid-column:1/-1}.profile .badge-list{grid-column:1/-1;margin-top:7px}.profile .profile-note{grid-column:1/-1;margin:7px 0 0;font-size:12px;display:block}.profile-more summary{font-size:12px}.layout{gap:18px}.story-body{padding:24px 20px 22px}#view-title{font-size:28px;line-height:1.55}.year-steps{gap:22px;margin-bottom:21px}.event-meta{font-size:12px;flex-wrap:wrap;gap:9px}.form-grid{gap:15px}.personality-card{padding:14px 12px}.personality-card strong{font-size:14px}.personality-card em{font-size:13px}.personality-card small{font-size:12px}.form-grid label{font-size:13px}.start-actions{gap:11px}.start-actions button{flex:1;font-size:13px;padding:11px 9px}.narrative{font-size:17px}.action-grid{gap:9px}.action-card{padding:13px 10px;gap:7px}.action-number{min-width:13px;font-size:12px}.action-content strong{font-size:14px}.action-content small{font-size:12px}.action-short{font-size:12px}.target-controls{grid-template-columns:1fr}.next-row{flex-wrap:wrap;gap:15px}.step-note{max-width:100%;flex:1;min-width:120px}.next-row>.primary-button{max-width:100%;font-size:14px}.choice{padding:15px 12px;grid-template-columns:19px 1fr 12px}.choice-title{font-size:15px}.choice-hint{font-size:13px}.intervention{gap:10px}.intervention>span{font-size:12px}.journal{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:8px 6px}.era-block{grid-column:1;grid-row:2}.era-block h2{font-size:19px}.goal-block{grid-column:2;grid-row:2}.goal-block h3{font-size:16px}.journal .history{display:block;grid-column:1/-1;margin:0 0 0 3px}.journal .history li{max-width:none}.journal .journal-heading{grid-column:1/-1;font-size:19px}.requirements small{font-size:11px}.paper-footer{flex-wrap:wrap;padding:13px 17px}.paper-footer span:last-child{display:block;font:12px/1.6 var(--sans);letter-spacing:0}.paper-footer span:first-child{font-size:12px}.summary-numbers{grid-template-columns:1fr 1fr;gap:18px}.summary-numbers strong{font-size:30px}.summary-numbers span{font-size:12px}.works-list li{gap:13px}.works-list strong{font-size:15px}.site-footer{font-size:12px;line-height:1.9}.relation-card{padding:16px}.relation-card h3{font-size:17px}.relation-card .badge{font-size:12px}.ending-actions button{flex:1;font-size:13px}.storage-banner,.conflict-banner{margin:0 16px 18px;font-size:12px}.dialog-heading{padding:17px 20px}.dialog-heading h2{font-size:21px}#dialog-body{padding:20px}.slot-actions{width:100%}.slot-actions button{flex:1}.history-row{gap:12px}.history-row strong{font-size:15px}}
@media(max-width:390px){.header-tools{margin-left:auto}.form-grid{grid-template-columns:1fr}.action-grid{grid-template-columns:1fr}.action-card{padding:15px}.action-content small{margin-top:5px}.personality-card em{display:block;margin-top:4px}.journal{grid-template-columns:1fr}.era-block,.goal-block{grid-column:1;grid-row:auto}.goal-block{padding:18px 0;border-top:1px solid var(--line)}.next-row>.primary-button{width:100%}.next-row>.step-note{max-width:100%}.profile-caption{flex-wrap:wrap;gap:4px}.stat-heading small{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* Annual notes stay comfortably readable even when expanded by default. */
.diary-prose.narrative{font-size:15px;line-height:1.9}.diary-prose.narrative p{margin:0 0 11px}.diary-details summary{font-size:14px}.large-text .diary-prose.narrative{font-size:17px;line-height:1.95}
@media(prefers-reduced-motion:reduce){.reward-card{animation:none}.career-board progress{transition:none}}

.ending-portfolio>summary{cursor:pointer;min-height:44px;padding:8px 0;font:600 17px/1.7 var(--serif)}#share-invitation-text{width:100%;resize:vertical;font:14px/1.9 var(--sans)}

/* School transitions, real age windows and the postdoctoral chapter. */
.career-path{grid-template-columns:repeat(7,minmax(0,1fr))}
.school-outlook{margin:20px 0;padding:18px 0;border-top:1px dashed #bfc9b4;border-bottom:1px dashed #bfc9b4}
.school-outlook h3{font-size:18px;margin:7px 0}.school-outlook h4{font-size:14px;margin:12px 0 5px}.school-assessment>p{font-size:13px;margin:5px 0}
.age-outlook{margin:13px 0;padding:12px;background:#efede0;font-size:13px}.age-outlook p{margin:6px 0}.window-caution{color:#89552c;font-size:13px;line-height:1.85}
.gap-choice{margin:14px 0}.gap-choice>label{display:flex;gap:10px;align-items:flex-start;font-size:13px;cursor:pointer;min-height:44px}.gap-choice input{width:18px;height:18px;margin:4px 0;flex-shrink:0;accent-color:var(--ink)}
.education-history{margin:20px 0;border-top:1px solid var(--line);padding-top:16px}.education-history h4{font:600 17px/1.7 var(--serif);margin:0 0 12px}.education-history ol{list-style:none;padding:0;margin:0}.education-history li{display:grid;grid-template-columns:82px 1fr;gap:12px;border-left:2px solid #b8c6ad;padding:5px 0 15px 12px}.education-history li:last-child{padding-bottom:4px}.education-year{font-size:11px;color:var(--muted)}.education-history strong{display:block;font-size:14px}.education-history p{font-size:12px;color:var(--muted);margin:5px 0;line-height:1.8}.education-history .badge{font-size:10px;margin:3px 0}
@media(max-width:700px){.career-path{font-size:10px}.education-history li{grid-template-columns:64px 1fr;gap:8px;padding-left:9px}.school-outlook{padding:14px 0}.school-outlook h3{font-size:17px}}

/* Opening school draws: large touch targets, result stays on the page. */
.setup-body .form-grid>label:last-child{grid-column:1/-1}
.university-draw{margin:22px 0;padding:20px;border:1px solid var(--line);background:var(--paper)}
.university-draw>.fine-print{margin:0;line-height:1.8}
.university-result{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:9px 0 18px}
.university-result output{font:600 24px/1.5 var(--serif);overflow-wrap:anywhere}
.university-rolls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:14px}
.university-roll{min-height:46px;padding:10px 7px;border:1px solid var(--line);background:transparent;color:var(--ink);font:14px/1.5 var(--sans);cursor:pointer}
.university-roll:hover{border-color:var(--accent)}
.university-roll[aria-pressed=true]{border-color:var(--accent);color:var(--accent);background:#f5ece6}
@media(max-width:500px){.university-draw{padding:16px}.university-rolls{grid-template-columns:repeat(2,minmax(0,1fr))}.university-result output{font-size:22px}}

/* Public release notes share the game's paper style without loading its state. */
.doctoral-paths{margin:18px 0;padding:18px 0;border-top:1px solid var(--line)}
#retirement-decision .dialog-actions{flex-wrap:wrap;justify-content:flex-start}
#retirement-decision .dialog-actions button{flex:1 1 200px;min-width:0}
#retirement-notice summary{cursor:pointer;min-height:44px;display:list-item;padding-top:10px}
#rehire-requirements h4{font-size:15px;margin:20px 0 12px}
.doctoral-paths>h3{font:700 22px/1.6 var(--serif);margin:0 0 12px}
.doctoral-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.doctoral-option{border:1px solid var(--line);padding:16px;background:var(--paper);display:flex;flex-direction:column;min-width:0}
.doctoral-option h4{font-size:16px;margin:0 0 8px}
.doctoral-option p{font-size:13px;line-height:1.9;margin:8px 0}
.doctoral-option .route-age{font-weight:700;color:var(--accent)}
.doctoral-option .primary-button{margin-top:auto;white-space:normal;min-height:44px;width:100%;font-size:13px;padding:11px 9px}
@media(max-width:700px){.doctoral-options{grid-template-columns:1fr}.doctoral-paths>h3{font-size:20px}}
.updates-layout{max-width:880px;margin:0 auto 24px;width:calc(100% - 40px)}
.updates-page .masthead,.updates-page .site-footer{max-width:1060px}
.updates-page a{color:var(--ink);text-underline-offset:4px}
.updates-page h1{font-size:clamp(25px,4vw,32px);margin-bottom:15px}
.updates-intro{font-size:15px;line-height:1.9}
.release-entry{border-top:1px solid var(--line);padding:20px 0;font-size:14px;line-height:1.9}
.current-release{margin-top:25px;border-top:2px solid var(--ink)}
.release-entry h2,.release-entry summary{font:700 20px/1.7 var(--serif);margin:0;overflow-wrap:anywhere}
.release-entry summary{cursor:pointer;padding:5px 0;min-height:44px}
.release-entry summary:focus-visible{outline:3px solid #b5732c;outline-offset:4px}
.release-version{color:var(--accent);font:600 14px/1.7 var(--sans);margin-right:10px;white-space:nowrap}
.release-date{font-size:12px;color:var(--muted);margin:10px 0 16px}
.release-entry h3{font-size:14px;margin:17px 0 5px}
.release-entry ul{padding-left:21px;margin:6px 0 16px}
.release-entry li{margin:6px 0;overflow-wrap:anywhere}
@media(max-width:700px){.updates-layout{width:calc(100% - 32px)}.release-entry h2,.release-entry summary{font-size:18px}.updates-page .chapter-line{flex-wrap:wrap}.updates-page .masthead>.text-button{font-size:13px;min-height:44px;display:flex;align-items:center}}
