@layer base {
:root{color-scheme:dark;--bg:#09141b;--text:#e1eff0;--muted:#9bb6bf;--cyan:#78e1df;--lime:#d9ed92;--line:#344c59;--red:#f6a397}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 0,#18323f,transparent 65%),var(--bg);font-family:Arial,Helvetica,sans-serif;color:var(--text);font-size:15px;line-height:1.5}button,a,input{font:inherit}button{color:inherit;cursor:pointer}button:disabled{cursor:not-allowed}button,a{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--cyan);outline-offset:4px}button{border:0}a{color:inherit}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.15;font-weight:800}h2{font-size:29px}h3{font-size:20px}.shell{max-width:1520px;margin:auto;padding:0 30px}.topbar{height:92px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:15px;text-decoration:none;font-weight:850;font-size:25px;letter-spacing:1px;line-height:1.1}.brand img{width:51px;height:51px}.brand b{color:var(--lime);font-size:29px}.brand small{display:block;font-size:10px;letter-spacing:2px;color:#97b8c3;margin-top:8px}.header-actions{display:flex;gap:10px}.icon-button{background:transparent;color:#b6d0d6;font-size:25px;width:40px;height:44px}.icon-button:hover{color:var(--cyan)}.city-banner{height:205px;position:relative;overflow:hidden;border:1px solid #38566a;border-radius:5px}.city-art{width:100%;height:100%;object-fit:cover;object-position:center 55%;image-rendering:pixelated;animation:city-pan 32s ease-in-out infinite alternate}.city-overlay{position:absolute;inset:0;background:linear-gradient(90deg,#07131beb,transparent 70%),linear-gradient(270deg,#07131bdd,transparent 35%)}.city-caption{position:absolute;left:25px;top:18px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:1.6px;color:var(--cyan)}.city-caption h1{font-size:53px;letter-spacing:5px;margin:6px 0}.city-caption p{font-size:15px;line-height:1.4;color:#c2d7da;margin:0}.banner-status{position:absolute;right:25px;top:25px;text-align:right;max-width:215px;display:flex;flex-direction:column;align-items:end;line-height:1.1}.banner-status strong{font-size:66px;color:var(--lime);margin:8px 0 2px}.banner-status>span:not(.eyebrow){font-size:10px;letter-spacing:2px}.banner-status p{font-size:10px;letter-spacing:1px;margin:14px 0 0;color:#bdd5d7}.rain{position:absolute;inset:-100%;opacity:.13;pointer-events:none;background:repeating-linear-gradient(105deg,transparent 0,transparent 59px,#b3eef099 60px,transparent 61px);animation:rain 1.8s linear infinite}.dashboard{position:sticky;top:0;z-index:20;background:#0b1920ed;backdrop-filter:blur(15px);padding:14px 0 16px;border-bottom:1px solid #36515e}.dashboard-heading,.panel-heading{display:flex;align-items:center;gap:8px;margin-bottom:10px}.dashboard-heading h2,.panel-heading h2{font-size:12px;letter-spacing:1px;margin:0;color:#c6dce0}.dashboard-heading>span{margin-left:auto;font-size:10px;letter-spacing:.5px;color:#91b7b2}.help-dot{display:inline-flex;align-items:center;justify-content:center;width:27px;height:27px;flex:0 0 27px;border:1px solid #45646c;border-radius:50%;background:#152a33;color:#b5d4db;font-size:13px;font-weight:800}.help-dot:hover{color:var(--lime);border-color:var(--lime)}.resource-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.resource{position:relative;min-width:0;background:linear-gradient(110deg,#24404b,#192e38);border:1px solid #46616d;border-top:2px solid #77acae;padding:12px 16px 22px;border-radius:5px;overflow:hidden}.resource-name{font-size:12px;font-weight:800;letter-spacing:.7px;color:#c7e0e2}.resource-value{display:flex;align-items:baseline;gap:7px;line-height:1.1;margin:8px 0 12px}.resource-value b{font-size:35px;letter-spacing:-1px;color:#edf5e6;font-variant-numeric:tabular-nums}.resource-value small{font-size:12px;font-weight:700;color:#c7d9c4}.credit-symbol{font-size:29px;color:var(--lime)}.bar{height:4px;display:block;background:#071319;border-radius:1px;overflow:hidden}.bar>span{height:100%;display:block;background:linear-gradient(90deg,#68a5a5,#aedcce);transition:width .6s ease}.danger .bar>span{background:#e58f7a}.delta-lane{position:absolute;left:8px;right:8px;bottom:1px;display:flex;justify-content:center;gap:5px;pointer-events:none;z-index:2}.delta-float{font-weight:800;font-size:11px;line-height:1.4;color:#ddfdb8;animation:delta 7s ease both;white-space:nowrap}.delta-float.down{color:#ffc0ad}.workspace{display:grid;grid-template-columns:225px minmax(0,1fr) 268px;gap:19px;align-items:start;margin-top:22px}.left-column,.right-column{min-width:0}.left-column{background:#0d1b22;border:1px solid #263d49;padding:13px;border-radius:5px}.left-column .panel-heading h2{font-size:11px}.faction{display:block;position:relative;text-align:left;width:100%;padding:11px 10px 20px;margin-bottom:8px;background:#152731;border:1px solid #354b59;border-left:3px solid #7897a3;border-radius:4px;min-width:0}.faction:hover{border-color:#668692;background:#1b303a}.faction-top{display:flex;align-items:center;gap:9px}.faction-name{font-weight:750;font-size:12px;line-height:1.25;flex:1;min-width:0}.faction .metric-number{font-size:26px;font-variant-numeric:tabular-nums;color:#daebdb;line-height:1}.faction-status{display:block;font-size:11px;color:#a6bdc4;margin:8px 0;line-height:1.2}.faction .avatar{width:31px;height:35px}.faction.inactive{opacity:.5;border-style:dashed}.faction.inactive .bar{opacity:.3}.avatar{flex-shrink:0;display:block;background-image:url('assets/portraits.webp');background-size:300% 200%;image-rendering:pixelated;overflow:hidden;border-radius:5px}.iris-avatar{object-fit:cover;object-position:center 24%;background:none;image-rendering:auto}.adviser{display:flex;flex-direction:column;align-items:center;position:relative;margin:20px -4px 0;border:0;background:none}.adviser>img{width:100%;max-height:220px;object-fit:cover;object-position:50% 28%;mask-image:linear-gradient(black 60%,transparent 98%);mix-blend-mode:lighten}.adviser>div{padding:0 10px;position:relative;margin-top:-15px}.adviser .eyebrow{font-size:10px}.adviser p{font-size:12px;color:#aac3ca;line-height:1.6;margin:8px 0 12px}.text-button{background:none;padding:8px 0;color:var(--cyan);font-size:12px;text-align:left;font-weight:700}.decision-column{min-width:0;position:relative;padding:23px;background:radial-gradient(ellipse at 30% 0,#25454c,transparent 50%),#152931;border:1px solid #65999a;border-top:4px solid var(--cyan);border-radius:5px 27px 5px 5px;box-shadow:0 20px 55px #0006,0 0 35px #58a09b0c}.audience-topline{display:flex;align-items:center;justify-content:space-between;font-size:10px;letter-spacing:1px;color:#9cc0c5;margin-bottom:21px;gap:10px}.signal{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--cyan);box-shadow:0 0 9px var(--cyan);margin-right:6px;animation:signal 4s ease infinite}.event-header{display:flex;align-items:center;gap:18px;margin-bottom:20px}.speaker-portrait{width:107px;height:125px;flex-basis:107px;border:1px solid #54757d;box-shadow:0 6px 18px #0005}.person-name{font-size:16px;font-weight:800;margin-bottom:5px;color:#d1e4e3}.person-role{font-size:10px;font-weight:700;color:#a2bfc5;letter-spacing:.7px;line-height:1.4;margin-bottom:12px}.event-header h2{font-size:29px;color:#f0f5e5;letter-spacing:-.5px;margin:0}.event-text{font-size:16px;line-height:1.75;color:#cddde0}.event-text p{margin-bottom:17px}.choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:21px}.choice{display:flex;flex-direction:column;align-items:start;position:relative;padding:14px 12px;text-align:left;min-width:0;background:linear-gradient(150deg,#2c4650,#1b313b);border:1px solid #647d80;border-top:3px solid #9fbd9e;border-radius:7px;color:#e9f1e9;transition:background .2s,border-color .2s,transform .2s;overflow-wrap:anywhere}.choice:hover:not(:disabled){background:linear-gradient(150deg,#3b5753,#223c44);border-color:var(--lime);transform:translateY(-3px);box-shadow:0 9px 17px #0003}.choice .number{width:25px;height:25px;display:flex;align-items:center;justify-content:center;border:1px solid #7b9c96;background:#182d32;border-radius:4px;color:var(--lime);font-size:12px;font-weight:800;margin-bottom:12px}.choice-body{display:flex;flex-direction:column;gap:12px;flex:1;width:100%}.choice-title{display:block;font-size:16px;font-weight:800;line-height:1.3;min-height:42px}.effects{display:flex;flex-wrap:wrap;align-items:center;gap:5px}.effect{display:inline-flex;align-items:center;gap:6px;font-size:11px;line-height:1.25;padding:5px 7px;border-radius:4px;background:#283f35;color:#d3f0b9;font-weight:700;border:1px solid #61885c;max-width:100%}.effect strong{font-size:18px;font-weight:900;white-space:nowrap}.effect-money{flex-basis:auto}.effect-money strong{font-size:13px}.effect.negative{color:#ffc5b4;background:#49322e;border-color:#996351}.effect.muted-effect{background:#23363b;border-color:#435c62;color:#a9b9b8}.effect.muted-effect strong{font-size:12px}.choice-detail{display:block;font-size:13px;line-height:1.6;color:#c2d4d7}.choice-addenda{display:flex;flex-direction:column;gap:7px;margin-top:auto}.extra-note{display:block;font-size:11px;color:#c5d4b7;line-height:1.5}.extra-note.risk{color:#e0bba6}.choice:disabled{opacity:.62;border-color:#637278;background:#213038}.choice-lock{display:block;border-left:3px solid #dda787;background:#4c3630;color:#ffd6bc;padding:9px;font-size:12px;line-height:1.5;font-weight:750}.audience-bottom{margin-top:17px;font-size:10px;letter-spacing:.4px;color:#a0b7bd}.last-decision{display:flex;flex-wrap:wrap;gap:8px;align-items:center;background:#11232a;border:1px solid #3a535b;border-radius:4px;padding:9px 11px;margin-bottom:15px;color:#a4b7bd}.recap-title{background:none;padding:0;text-align:left;color:inherit;max-width:100%}.recap-title>span{display:block;font-size:9px;letter-spacing:1px;color:#809ba4}.recap-title b{font-size:12px}.last-decision .effects{gap:4px}.last-decision .effect{font-size:10px;padding:3px 5px}.last-decision .effect strong{font-size:11px}.weekly-news{background:#11232a;border:1px solid #3c555e;border-radius:5px;margin:0 0 18px;padding:10px 12px}.weekly-news summary{font-size:12px;font-weight:750;color:#a9c2c9;cursor:pointer}.news-item{padding:10px 0;border-top:1px solid #30434e;font-size:12px}.news-item:first-of-type{margin-top:9px}.news-item p{font-size:12px;color:#aabfc7;margin:5px 0 8px}.news-item.warning>b,.news-item.attack>b,.news-item.incident>b{color:#edba91}#action-receipt{background:#243832;border:1px solid #4e6e58;padding:11px;border-radius:5px;margin-bottom:16px;font-size:12px}#action-receipt .effects{margin-top:8px}.resolution{padding:18px;background:#263e37;border:1px solid #789872;border-left:4px solid var(--lime);border-radius:6px;margin-top:18px}.resolution h3{font-size:22px;margin:9px 0 12px;color:#e8f2d6}.resolution p{font-size:15px;line-height:1.65;color:#d0e1d2;margin:12px 0 0}.resolution .extra-note{margin-top:9px}.resolved .event-text{font-size:14px;color:#a7bec3}.resolved .speaker-portrait{width:70px;height:82px;flex-basis:70px}.resolved .event-header h2{font-size:24px}.resolved .event-header{margin-bottom:14px}.result-choices{display:flex;flex-wrap:wrap}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;text-align:center;min-height:44px;padding:12px 17px;border-radius:5px;font-size:14px;font-weight:800;line-height:1.4}.primary{background:var(--lime);color:#1d3024;border:1px solid #e6f7b6}.primary:hover{background:#e7f3b1}.primary:disabled{opacity:.45;cursor:not-allowed}.secondary{background:#1b3039;border:1px solid #536f78;color:#c9e0e2}.secondary:hover{border-color:var(--cyan)}.right-column{display:flex;flex-direction:column;gap:13px}.panel{background:#10212a;border:1px solid #3c5261;border-radius:5px;padding:14px}.panel-heading{justify-content:space-between}.right-column .panel-heading h2{font-size:11px;letter-spacing:.65px}#projects{display:flex;flex-direction:column;gap:8px}.project{display:flex;align-items:center;gap:10px;min-width:0;width:100%;text-align:left;background:#1d323a;border:1px solid #4a676c;border-radius:5px;padding:9px}.project:hover{border-color:var(--lime)}.project.locked{background:#162a32;border-color:#3b525e}.project-thumb{width:43px;height:55px;flex:0 0 43px;border-radius:3px;background-size:cover}.art-civic{background-image:url('assets/city.webp');background-position:20% 70%}.art-accord{background-image:url('assets/city.webp');background-position:80% 40%}.art-mesh{background-image:url('assets/server.webp');background-position:50% 45%}.project-copy{min-width:0;flex:1}.project-copy>b{display:flex;justify-content:space-between;gap:5px;font-size:13px;line-height:1.3}.project-copy small{font-size:11px;color:#a9bdb4;white-space:nowrap}.project-cost{display:block;font-size:11px;font-weight:750;color:#bbd6c5;line-height:1.65;margin-top:5px}.lock-short{display:block;font-size:10px;color:#b3adb0;line-height:1.35;margin-top:5px}.pending-item{padding:9px 0;border-bottom:1px solid #304653}.pending-item:last-child{border:0}.pending-item>b{font-size:12px;line-height:1.5;display:block;color:#c9d8d9}.pending-item>span{font-size:10px;letter-spacing:.4px;color:#93abb6}.empty-state{color:#a6bdc5;font-size:13px;margin:2px 0 5px}#action-budget{font-size:11px;line-height:1.5;color:#a9c1c5;margin:0 0 11px}.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.action{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:92px;text-align:center;background:#213740;border:1px solid #4e7175;border-radius:5px;padding:8px 5px}.action:hover{border-color:var(--cyan)}.action-icon{font-size:26px;line-height:1.1;color:var(--cyan)}.action b{font-size:12px;line-height:1.3}.action small{font-size:10px;color:#a5b8bf}.action.locked{background:#182932;border-color:#3a505c}.action.locked .action-icon{color:#8b9ea4}footer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 0;font-size:9px;font-weight:700;letter-spacing:.9px;color:#7695a4}
dialog{background:#10212a;color:var(--text);border:1px solid #66818a;border-radius:9px;width:min(830px,calc(100vw - 28px));max-height:92dvh;padding:0;box-shadow:0 20px 100px #0009;overflow:auto}dialog::backdrop{background:#020a0edb;backdrop-filter:blur(6px)}.modal-content{padding:27px 30px}.modal-heading{display:flex;justify-content:space-between;align-items:start;gap:20px;margin-bottom:18px}.modal-heading h2{font-size:27px;margin:0}.close{width:36px;height:36px;flex-shrink:0;background:#0a1820d9;border:1px solid #4c6974;border-radius:50%;font-size:25px;color:#c8dee0;line-height:1;padding:0}.modal-content p{font-size:16px;line-height:1.65;color:#c6d9df}.modal-content h3{margin-top:22px}.modal-content>.primary{margin:10px 0 0}.modal-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 4px}.briefing{display:grid;grid-template-columns:255px minmax(0,1fr);background:radial-gradient(ellipse at 20% 20%,#1c3e48,transparent 70%)}.briefing-iris{position:relative;min-height:650px;overflow:hidden;display:flex;align-items:end}.briefing-iris img{width:100%;height:100%;object-fit:cover;object-position:50% 40%;mask-image:linear-gradient(90deg,#000 85%,transparent);mix-blend-mode:lighten}.briefing-iris>span{position:absolute;bottom:24px;left:20px;right:12px;font-size:10px;font-weight:800;letter-spacing:.8px;color:var(--cyan)}.briefing-copy{padding:31px 30px 27px 10px}.briefing-copy h2{font-size:32px;line-height:1.15;margin:11px 0 20px;letter-spacing:-.5px}.briefing-copy p{font-size:15px;line-height:1.65;color:#c0d7dd}.briefing-copy .note{font-size:13px}.briefing-copy .primary{width:100%;margin:5px 0}.briefing-copy .text-button{font-size:12px;line-height:1.4}.mission{padding:14px 15px;background:#283b30;border-left:3px solid var(--lime);margin-bottom:17px;border-radius:0 5px 5px 0}.mission>b{color:var(--lime);font-size:12px;letter-spacing:1px}.mission p{margin:6px 0 0;color:#e3eddf;font-weight:600}.iris-message{display:flex;gap:20px;align-items:center;margin-bottom:15px}.iris-message>.avatar{width:110px;height:140px}.iris-message p{margin:0}.project-hero{height:165px;position:relative;background-size:cover}.project-hero:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent,#10212aee)}.project-hero>.close{position:absolute;z-index:2;top:15px;right:15px}.project-hero>div{position:absolute;z-index:1;left:30px;bottom:22px;right:30px}.project-hero h2{font-size:32px;margin:6px 0 0;text-shadow:0 2px 12px #000}.project-detail{padding-top:16px}.project-summary-grid{display:grid;grid-template-columns:1fr 1.25fr;gap:13px}.project-summary-grid>section{padding:15px;background:#192f37;border:1px solid #3a5561;border-radius:7px}.project-summary-grid h3{font-size:21px;margin:9px 0}.project-summary-grid p{font-size:13px;margin:8px 0 0}.bonus-card{padding:16px;border:1px solid #617c53;background:#293c2e;border-radius:6px}.bonus-card h3{color:#d9f5bc;font-size:20px;margin:8px 0}.bonus-card .eyebrow{color:#c7e1b1}.bonus-card p{font-size:14px}.active-bonus{padding:12px 14px;background:#1a3034;border:1px solid #385b5e;margin:12px 0;border-radius:6px;font-size:14px}.project-stages{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}.project-stages li{font-size:12px;line-height:1.4;background:#172a32;border:1px solid #354d59;border-radius:5px;padding:9px;color:#92aeb6}.project-stages .done{color:#d3edb1;border-color:#57774d}.requirements{list-style:none;padding:0;margin:10px 0;display:grid;gap:6px}.project-detail>.requirements{grid-template-columns:repeat(2,minmax(0,1fr))}.requirements li{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:9px 11px;background:#152c32;border-radius:4px;border:1px solid #314a53;font-size:13px}.requirements li>span{font-size:17px;font-weight:900}.requirements li b{flex:1;font-weight:650}.requirements li small{font-size:12px;color:#a2bdc4;margin-left:auto}.requirements .met>span{color:#c8e896}.requirements .unmet{background:#3d2c2c;border-color:#754c49;color:#f1c5b5}.availability{font-size:14px;font-weight:750;padding:12px 14px;margin:12px 0;border:1px solid #4f6c53;border-radius:5px;background:#283d2d;color:#d3eac1}.availability.blocked{background:#422e2d;border-color:#906151;color:#f5c8ae}.instant-gain{margin:14px 0}.instant-gain>b{font-size:13px;color:#adc7cb}.instant-gain .effects{margin-top:8px}.lore{margin-top:20px;border-top:1px solid #38515d;padding-top:15px}.lore summary{font-size:15px;font-weight:700;color:#b4cdd1;cursor:pointer}.lore p{margin-top:12px}.completion-art{height:135px;border-radius:5px;background-size:cover}.action-explainer{display:flex;gap:21px;align-items:center;margin-bottom:20px}.big-action-icon{font-size:58px;color:var(--cyan);padding:5px 18px}.action-explainer p{margin:0}.review-selected{padding:14px;background:#24352f;border:1px solid #476551;border-radius:5px;margin:15px 0}.review-selected .effects{margin-top:9px}.review-option{padding:12px 0;border-bottom:1px solid #344b56}.review-option p{font-size:14px;margin:6px 0 9px}.faction-profile{display:flex;gap:20px;align-items:center}.faction-profile>.avatar{width:125px;height:145px}.faction-profile h3{margin:0 0 10px}.archive-stat{display:flex;gap:19px;align-items:center;border:1px solid #456370;padding:16px;margin:22px 0;background:#192e39;border-radius:6px}.archive-stat>strong{font-size:48px;color:var(--lime)}.archive-stat h3{margin:0 0 7px}.archive-stat p{font-size:14px;margin:0}.journal-entry{padding:13px 0;border-bottom:1px solid #314953}.journal-entry p{font-size:14px;margin:7px 0}.ending-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:23px 0}.ending-stats>div{padding:13px;background:#1a3037;border:1px solid #46616a;border-radius:6px}.ending-stats strong{display:block;font-size:32px;color:var(--lime)}.ending-stats span{font-size:12px;color:#a6c0c7}.endings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ending-tile{display:flex;flex-direction:column;gap:8px;background:#15262e;border:1px solid #2e444e;padding:12px;border-radius:5px;opacity:.5}.ending-tile.found{opacity:1;border-color:#53746a}.ending-tile b{font-size:16px}.ending-tile span{font-size:11px}.save-explainer{padding:15px;background:#1a3038;border:1px solid #3f606d;border-radius:6px}.save-explainer>b{color:var(--cyan);font-size:14px}.save-explainer p{font-size:14px;margin:9px 0 0}.menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:20px}.finale-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.finale-choices .choice-title{min-height:0}.mini-checks{display:grid;gap:5px;font-size:12px;line-height:1.4}.mini-checks .met{color:#a7bcb6}.mini-checks .unmet{color:#f1b397}.muted{color:var(--muted)}#help-tooltip{position:fixed;z-index:100;pointer-events:none;background:#142d36fa;border:1px solid #6c9fa6;border-top:3px solid var(--cyan);box-shadow:0 10px 40px #000a;border-radius:6px;padding:15px;color:#d0e4e7;font-size:14px;line-height:1.6}#help-tooltip strong{font-size:16px;color:var(--lime)}#help-tooltip p{margin:7px 0 0}#toast{position:fixed;bottom:20px;left:50%;transform:translate(-50%,20px);max-width:calc(100vw - 30px);width:max-content;background:#21443b;border:1px solid #78ad8f;box-shadow:0 10px 35px #0006;color:#e1f4dd;padding:12px 18px;border-radius:6px;font-size:14px;z-index:110;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}#toast.show{opacity:1;transform:translate(-50%,0)}[hidden]{display:none}
@keyframes city-pan{from{transform:scale(1.025) translateX(-.7%)}to{transform:scale(1.045) translateX(.7%)}}@keyframes rain{to{transform:translate(-30px,100px)}}@keyframes signal{50%{opacity:.5}}@keyframes delta{0%{opacity:0;transform:translateY(7px)}7%,70%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-5px)}}.reduce-motion *{animation:none;transition:none}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none;transition:none}}
@media(max-width:1250px) and (min-width:761px){.shell{padding:0 20px}.workspace{grid-template-columns:190px minmax(0,1fr) 235px;gap:13px}.decision-column{padding:17px}.choices{grid-template-columns:1fr}.choice{display:grid;grid-template-columns:27px minmax(0,1fr);gap:12px}.choice-title{min-height:0}.choice-body{gap:9px}.choice .number{margin:0}.event-header{gap:12px}.speaker-portrait{width:85px;height:105px;flex-basis:85px}.event-header h2{font-size:25px}.left-column{padding:10px}.resource-value b{font-size:30px}.resource-value small{font-size:10px}.resource-name{font-size:11px}.finale-choices{grid-template-columns:1fr}}
@media(max-width:1000px) and (min-width:761px){.workspace{grid-template-columns:185px minmax(0,1fr)}.right-column{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.right-column>.secondary{grid-column:1/-1}.adviser>img{max-height:180px}}
@media(max-width:760px){body{font-size:16px}.shell{padding:0 10px}.topbar{height:71px;gap:7px}.brand{font-size:16px;gap:8px;letter-spacing:.3px}.brand img{width:35px;height:35px}.brand b{font-size:19px}.brand small{font-size:9px;letter-spacing:.5px;margin-top:4px}.header-actions{gap:0}.icon-button{width:33px;height:38px;font-size:22px}.city-banner{height:142px}.city-caption{left:14px;top:12px}.city-caption .eyebrow{font-size:9px;letter-spacing:.7px}.city-caption h1{font-size:35px;margin:5px 0 6px}.city-caption p{font-size:12px;line-height:1.35}.banner-status{right:13px;top:37px;width:111px}.banner-status .eyebrow{font-size:9px;letter-spacing:.4px}.banner-status strong{font-size:35px;margin:3px 0}.banner-status p{font-size:8px;line-height:1.3;margin-top:8px;letter-spacing:.2px}.banner-status>span:not(.eyebrow){font-size:8px}.dashboard{padding:7px 0 10px}.dashboard-heading{margin-bottom:5px;gap:6px}.dashboard-heading h2{font-size:11px;letter-spacing:.3px}.dashboard-heading .help-dot{width:25px;height:25px;flex-basis:25px}.dashboard-heading>span{font-size:9px;letter-spacing:0}.resource-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.resource{padding:7px 10px 18px}.resource-name{font-size:11px;letter-spacing:0;line-height:1.1;display:block}.resource-value{gap:5px;line-height:1.1;margin:4px 0 6px}.resource-value b{font-size:26px}.resource-value small{font-size:10px;line-height:1.2}.credit-symbol{font-size:22px}.resource .bar{height:3px}.delta-lane{left:1px;right:1px;bottom:0}.delta-float{font-size:9px;padding:2px;line-height:1.2}.workspace{display:flex;flex-direction:column;gap:12px;margin-top:12px}.left-column{width:100%;padding:10px}.left-column>.panel-heading{margin-bottom:7px}.left-column>.panel-heading h2{font-size:11px}.left-column>.panel-heading .help-dot{width:27px;height:27px;flex-basis:27px}#factions{display:flex;gap:6px;overflow-x:auto;padding-bottom:5px;scrollbar-color:#46656a transparent;scrollbar-width:thin}.faction{flex:0 0 145px;padding:8px 7px 16px;margin:0}.faction-name{font-size:11px}.faction .avatar{width:27px;height:31px}.faction .metric-number{font-size:22px}.faction-status{font-size:10px;margin:6px 0;min-height:14px}.adviser{display:none}#dossier{padding:6px 0 0;font-size:11px}.decision-column{width:100%;padding:13px;border-radius:3px 18px 3px 3px}.audience-topline{font-size:9px;letter-spacing:.3px;margin-bottom:13px}.audience-topline .help-dot{width:30px;height:30px;flex-basis:30px}.event-header{gap:12px;margin-bottom:14px;align-items:center}.speaker-portrait{width:85px;height:106px;flex-basis:85px}.person-name{font-size:14px;margin-bottom:3px}.person-role{font-size:9px;letter-spacing:0;line-height:1.3;margin-bottom:7px}.event-header h2{font-size:23px;line-height:1.13;letter-spacing:-.45px}.event-text{font-size:16px;line-height:1.65}.event-text p{margin-bottom:12px}.choices{grid-template-columns:1fr;gap:8px;margin:16px 0 0}.choice{padding:13px;display:grid;grid-template-columns:25px minmax(0,1fr);gap:10px;border-radius:7px}.choice .number{margin:0}.choice-title{font-size:17px;min-height:0}.choice-body{gap:9px}.effect{font-size:12px;padding:4px 6px}.effect strong{font-size:17px}.effect-money strong{font-size:14px}.choice-detail{font-size:14px;line-height:1.5}.choice-lock{font-size:12px;padding:8px}.extra-note{font-size:11px}.last-decision{padding:7px 8px;gap:7px;margin-bottom:13px;display:block}.recap-title{width:100%;margin-bottom:6px}.recap-title b{font-size:12px}.recap-title>span{font-size:9px}.last-decision .effect{font-size:10px}.last-decision .effect strong{font-size:11px}.resolution h3{font-size:20px}.resolution p{font-size:15px}.resolved .speaker-portrait{width:65px;height:77px;flex-basis:65px}.resolved .event-header h2{font-size:20px}.resolved .event-text{font-size:14px}.result-choices{display:flex;margin-top:13px}.result-choices .primary,.result-choices .secondary{width:100%}.right-column{width:100%;display:grid;grid-template-columns:1fr;gap:10px}.panel{padding:13px}.right-column .panel-heading{margin-bottom:9px}.right-column .panel-heading h2{font-size:13px}.help-dot{width:33px;height:33px;flex-basis:33px}#projects{gap:6px}.project{padding:8px 10px}.project-thumb{width:43px;height:48px}.project-copy>b{font-size:15px}.project-copy b small{font-size:12px}.project-cost{font-size:13px}.lock-short{font-size:11px}#action-budget{font-size:12px}.pending-item b{font-size:14px}.pending-item>span{font-size:11px}.empty-state{font-size:13px}.actions{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.action{padding:10px 4px;min-height:90px;gap:8px}.action b{font-size:11px}.action-icon{font-size:24px}.action small{font-size:9px}footer{font-size:8px;gap:10px;flex-wrap:wrap;padding:16px 0}footer>span:nth-child(2){display:none}dialog{width:calc(100vw - 18px);max-height:94dvh;border-radius:8px}.modal-content{padding:23px 18px}.modal-heading h2{font-size:24px}.modal-content h3{font-size:19px}.modal-content p{font-size:16px}.briefing{display:block;position:relative}.briefing-iris{height:220px;min-height:0;background:#122630;display:block}.briefing-iris img{height:100%;width:100%;object-position:center 25%;object-fit:cover;mask-image:linear-gradient(#000 65%,transparent)}.briefing-iris>span{bottom:13px;left:20px;font-size:10px}.briefing-copy{padding:12px 20px 23px}.briefing-copy h2{font-size:27px;line-height:1.14;margin:9px 0 16px}.briefing-copy p{font-size:15px}.briefing-copy .primary{font-size:15px}.iris-message{gap:13px;align-items:start}.iris-message>.avatar{width:75px;height:107px}.iris-message p{font-size:15px}.project-hero{height:155px}.project-hero>div{left:19px;right:19px;bottom:18px}.project-hero h2{font-size:28px}.project-summary-grid{grid-template-columns:1fr;gap:9px}.project-summary-grid>section{padding:13px}.project-summary-grid h3{font-size:21px}.project-summary-grid p{font-size:14px}.project-stages{gap:5px}.project-stages li{font-size:11px;padding:8px;line-height:1.4}.project-detail>.requirements{grid-template-columns:1fr}.availability{font-size:13px}.project-detail>.primary{width:100%}.lore summary{font-size:15px}.faction-profile{gap:13px;align-items:start}.faction-profile>.avatar{width:88px;height:110px}.faction-profile h3{font-size:18px}.faction-profile p{font-size:15px}.archive-stat{padding:12px;gap:13px}.archive-stat p{font-size:14px}.archive-stat>strong{font-size:40px}.menu-grid{gap:7px}.menu-grid button{padding:11px 9px;font-size:13px}.ending-stats{gap:6px}.ending-stats>div{padding:10px}.ending-stats strong{font-size:28px}.ending-stats span{font-size:11px}.endings-grid{grid-template-columns:1fr}.mini-checks{font-size:13px}.big-action-icon{font-size:43px;padding:5px 8px}#toast{font-size:13px;bottom:12px;padding:10px 12px}}

.art-civic,.art-accord,.art-mesh{background-image:url(assets/projects.webp);background-size:300% auto;background-position-y:50%}.art-civic{background-position-x:0}.art-accord{background-position-x:50%}.art-mesh{background-position-x:100%}

@media(min-width:761px){.topbar{height:80px}.city-banner{height:170px}.city-caption h1{font-size:46px}.city-caption p{font-size:13px}.banner-status{top:18px}.banner-status strong{font-size:54px}.dashboard{padding:10px 0 12px}.resource{padding:10px 15px 19px}.resource-value{margin:6px 0 10px}.resource-value b{font-size:32px}}

.new-avatar{background-image:url(assets/contacts.webp);background-size:200% 100%}

/* Faction strength and a quiet, single-use emergency control. */
.favor-number{display:flex;flex-direction:column;gap:4px;align-items:end}.favor-number small{font-size:10px;font-weight:700;color:var(--muted)}
.power-row{display:flex;align-items:center;gap:10px;margin-top:9px;font-size:12px;font-weight:700;color:#adc4cd}.power-meter{display:flex;gap:4px;flex:1;height:7px}.power-meter i{flex:1;background:#0a1821;border:1px solid #3e5663;border-radius:1px}.power-meter i.filled{background:#84b5c7;border-color:#84b5c7}.faction.hostile{border-left-color:#d9b076}.faction.plotting{border-left-color:var(--red)}.faction.plotting .faction-status{color:#f4b4a8;font-weight:800}.effect.power-effect{background:#20333f;border-color:#476879;color:#bad8e4}.effect.power-effect strong{color:#cde8f2}
.emergency-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;padding:12px 14px;text-align:left;background:#10212a;border:1px solid #40525e;border-radius:5px;color:#bfd0d6;font-size:14px;font-weight:650}.emergency-toggle:hover{background:#1a303b;border-color:#83a5b4}.emergency-toggle b{font-size:11px;color:#8dabb7;text-align:right}.emergency-toggle.spent{color:#819aa5}.emergency-control{margin-bottom:12px}.emergency-offers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0}.emergency-offer{display:flex;flex-direction:column;align-items:start;gap:14px;padding:18px;background:#18303b;border:1px solid #56747e;border-radius:7px;text-align:left;min-width:0}.emergency-offer>b{font-size:19px}.emergency-offer>span:not(.effects):not(.action-icon){font-size:14px;color:#c4d6d9}.emergency-offer small{font-size:13px;color:var(--cyan);margin-top:auto}.emergency-offer .effects{gap:6px}.emergency-offer .effect{font-size:12px}.emergency-offer:hover{border-color:var(--cyan);background:#213f49}.emergency-offer .action-icon{font-size:35px}
.promise-reminder{padding:13px 15px;background:#1b303a;border-left:3px solid #adbdcc;margin:14px 0;color:#c9dce0}.promise-reminder>b{font-size:13px}.promise-reminder p{font-size:14px;margin:7px 0 0}.promise-warning{display:block;padding:9px;border:1px solid #926154;border-radius:4px;background:#422e2d;color:#ffd1bc;font-size:13px;font-weight:800}.pending-item.promise{border-left:2px solid #829dad;padding-left:10px}.faction-readout{display:flex;gap:24px;padding:15px 0;flex-wrap:wrap}.faction-readout b{color:var(--lime)}
@media(max-width:760px){.faction{flex-basis:170px}.faction-name{font-size:12px}.faction-status{font-size:12px}.favor-number small{font-size:10px}.power-row{font-size:12px}.emergency-offers{grid-template-columns:1fr}.emergency-offer{padding:16px;gap:10px}.emergency-toggle{min-height:48px}.power-meter{height:8px}.emergency-control{margin:0}}

/* 0.2.3 — a quieter console, with two readable effect columns. */
.effect-layout{display:block;width:100%;min-width:0}.effect-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.effect-column{display:flex;flex-direction:column;gap:5px;min-width:0}.effect-heading{display:block;font-size:10px;font-weight:800;letter-spacing:.9px;color:#9bb2b8;margin:0 0 4px}.effect{display:grid;grid-template-columns:13px minmax(0,1fr) auto;align-items:center;gap:5px;width:100%;padding:6px;border-radius:3px;border:0;border-left:2px solid transparent;line-height:1.25;min-width:0;font-size:12px}.effect strong{font-size:17px;white-space:nowrap;line-height:1.1}.effect-label{overflow-wrap:anywhere;font-weight:700}.effect-symbol{font-size:13px;opacity:.85;font-weight:900}.effect.positive{background:#2c413638;color:#d5e9b9;border-left-color:#91ad6c}.effect.negative{background:#52343150;color:#efbdad;border-left-color:#ba8070}.effect-city{border-bottom:1px solid #9aa6ab35}.effect-faction{border-bottom:1px dashed #9aa6ab50}.effect-money{border:1px solid #978754;background:#48462c45;grid-template-columns:13px 1fr}.effect-money .effect-label{font-size:11px}.effect-money strong{grid-column:2;font-size:15px}.no-effect{color:#657b87;padding:5px}.strength-effects{display:block;border-top:1px solid #50717b55;margin-top:10px;padding-top:8px}.strength-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.effect.power-effect{background:#1b303e70;border-left:2px solid #75a7c1;color:#bed8e6}.effect.muted-effect{background:#1c2d33;color:#a6b8bd;border-left-color:#657d87}.effects{display:block;width:100%;margin:0}.choice{background:linear-gradient(150deg,#29434b,#162b35);border:1px solid #57757b;border-top:2px solid #8fb7ac;box-shadow:0 5px 12px #0002;padding:15px 12px}.choice:hover:not(:disabled){background:linear-gradient(150deg,#33545a,#19313b);border-color:#d9ed92;transform:translateY(-2px)}.choice-body{display:flex;flex-direction:column;gap:12px;min-width:0;height:100%}.choice-title{font-size:18px;min-height:0;line-height:1.25}.choice-detail{font-size:14px;line-height:1.5;color:#c6d8dd;margin:0}.choice .effects{margin-top:auto}.choice-addenda{display:flex;flex-direction:column;gap:6px;border-top:1px solid #66848a38;padding-top:8px}.choice-addenda:empty{display:none}.extra-note{font-size:12px;color:#acc3c5}.choice .number{width:24px;height:24px;font-size:12px;margin-bottom:12px}.choice.locked{opacity:.62}.resolution{background:linear-gradient(125deg,#213b36,#1b3037);border:1px solid #6d8d74;border-left:3px solid var(--lime);padding:18px}.resolution>.effects{max-width:620px}.resolution .effect{font-size:14px;padding:7px 9px}.resolution .effect strong{font-size:18px}.resolution h3{margin:9px 0 16px}.result-choices{display:flex;justify-content:flex-end;flex-wrap:wrap}.result-choices .primary{margin-left:auto}.resolved .event-text{display:none}.resolved .event-header{margin-bottom:15px}.resolved .speaker-portrait{width:74px;height:88px;flex-basis:74px}.effect-heading,.offer-patron{user-select:none}
/* Reports and investigation share Iris's desk, on mobile as well. */
.adviser{display:grid;grid-template-columns:65px minmax(0,1fr);align-items:center;gap:7px;margin:14px 0 0;padding-top:12px;border-top:1px solid #314650}.adviser>img{width:65px;height:150px;object-position:center;object-fit:cover;mask-image:linear-gradient(#000 70%,transparent);align-self:start}.adviser>div{padding:0;margin:0;min-width:0}.adviser .eyebrow{font-size:10px;letter-spacing:.6px}.adviser p{font-size:12px;line-height:1.45;margin:6px 0 9px}.iris-tools{display:grid;gap:5px}.iris-tool{display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:36px;font-size:12px;font-weight:750;background:#172e39;border:1px solid #3d5c6d;border-radius:4px;padding:6px 8px;text-align:left}.iris-tool b{font-variant-numeric:tabular-nums}.iris-tool.evidence{background:#292d39;border-color:#615a77;color:#d3c7e9}.iris-tool.alert{border-color:#c79660;color:#e7c395}.iris-tool.log{background:transparent;color:#a2bbc4;border-color:#2c444f}.iris-tool:hover{border-color:#b3dedc}.report-intro{display:flex;gap:15px;align-items:center}.report-intro .avatar{width:66px;height:90px}.report-intro p{font-size:14px}.news-item{padding:16px 0;border-bottom:1px solid #3b5059}.news-item h3{margin:0 0 8px}.news-item .effect{font-size:13px}.news-item.warning h3,.news-item.attack h3,.news-item.incident h3,.news-item.coalition h3{color:#edb294}
/* Illustrated patron offers, retaining the quiet button on the main desk. */
.emergency-lead{font-weight:800;font-size:21px;color:#e1efde;line-height:1.35}.emergency-rules{font-size:14px;max-width:660px}.emergency-offer{position:relative;padding:0 13px 16px;overflow:hidden;background:linear-gradient(#25434d,#13252f);gap:12px;border-color:#526e7b;box-shadow:0 8px 20px #0004}.emergency-art{display:block;position:relative;height:140px;flex-shrink:0;background-image:linear-gradient(0deg,#142b35,transparent 85%),url(assets/projects.webp);background-size:auto,300% auto;background-position:center,0 50%;isolation:isolate}.emergency-offer>.emergency-art{width:calc(100% + 26px);margin:0 -13px 0}.emergency-recruit{background-position:center,50% 50%}.emergency-network{background-position:center,100% 50%}.emergency-art>.avatar{position:absolute;bottom:0;left:14px;width:95px;height:116px;mask-image:linear-gradient(#000 85%,transparent);border-radius:0}.emergency-art>span:last-child{position:absolute;right:16px;bottom:8px;font-size:34px;color:#c5e9dd;text-shadow:0 2px 12px #000}.offer-patron{font-size:10px;font-weight:800;letter-spacing:.5px;color:#9fb9be}.emergency-offer>b{font-size:19px;line-height:1.3}.emergency-offer .effects{margin-bottom:4px}.emergency-offer>small{padding-top:10px;border-top:1px solid #4a687480;width:100%;font-weight:700}.emergency-detail-art{height:160px;border-radius:6px;margin-bottom:17px;background-size:auto,300% auto}.emergency-detail-art>.avatar{width:125px;height:155px}.emergency-offer:hover{box-shadow:0 10px 22px #0005;border-color:#b6dcd5}.project-price-note{font-size:13px;line-height:1.5;color:#abc4ca}.briefing-copy{padding:28px 26px 28px 10px}.briefing-copy h2{font-size:30px}.briefing-copy p{font-size:16px;line-height:1.6}.briefing-section{padding-top:12px;border-top:1px solid #45636c}.briefing-section>b{color:#d6e8de}.briefing-iris{min-height:0;align-self:stretch}.briefing-iris img{position:absolute;inset:0;object-position:50% 35%}.briefing-iris>span{position:sticky;align-self:end;bottom:24px}
/* City instruments have their own server-room surface, separate from the skyline. */
.resource{background:linear-gradient(105deg,#132832f5 32%,#12323abb),url(assets/server.webp) center/cover;border-top:2px solid #719b9c}.resource[data-metric="army"]{background-position:center,80% 70%}.resource[data-metric="pop"]{background-position:center,15% 80%}.resource-name{font-size:12px;letter-spacing:.3px;text-shadow:0 1px 3px #071117}.resource .bar{height:8px;border:1px solid #3c555d;border-radius:2px}.resource-value b{text-shadow:0 2px 8px #0009}.faction{padding:9px 9px 17px;margin-bottom:6px}.faction-status{margin:6px 0}.faction .bar{height:5px}.power-row{margin-top:7px}.dashboard{border:1px solid #354f5a;border-radius:5px;padding:10px;background:#0e2029f5}.dashboard-heading>span{font-size:10px}.resource{padding:9px 10px 18px}.resource-value{margin:6px 0 9px}.resource-strip{gap:8px}
@media(min-width:1101px){.control-room{display:grid;grid-template-columns:215px minmax(0,1fr) 250px;gap:15px;margin-top:16px;align-items:start}.workspace{display:contents}.dashboard{grid-column:2/4;grid-row:1;top:0}.left-column{grid-column:1;grid-row:1/3}.decision-column{grid-column:2;grid-row:2;padding:20px}.right-column{grid-column:3;grid-row:2}.choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.choice{display:flex;flex-direction:column}.choice-body{flex:1}.finale-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.result-choices{display:flex}.resource-name{font-size:12px}}
@media(min-width:1101px) and (max-width:1320px){.control-room{grid-template-columns:185px minmax(0,1fr) 220px;gap:12px}.decision-column{padding:14px}.choices{grid-template-columns:1fr}.choice{display:grid;grid-template-columns:24px minmax(0,1fr)}.choice-title{font-size:18px}.choice .effects{max-width:480px}.adviser{grid-template-columns:1fr}.adviser>img{display:none}}
@media(max-width:1100px){.control-room{margin-top:12px}.dashboard{padding:9px}.adviser{grid-template-columns:58px minmax(0,1fr)}.adviser>img{width:58px}.effect-columns{gap:9px}.choice .effect{font-size:13px}.briefing-iris>span{position:absolute}}
@media(max-width:760px){.adviser{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px}.adviser>img{display:block;height:105px;width:64px}.adviser p{font-size:13px;line-height:1.4}.iris-tools{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.iris-tool{font-size:12px;min-height:42px;padding:7px;flex-wrap:wrap}.adviser .eyebrow{font-size:11px}.resource .bar{height:7px}.dashboard{padding:7px}.resource{padding:8px 9px 17px}.resource-name{font-size:11px}.choices .choice{display:flex;padding:13px}.choice .number{margin:0 0 9px}.choice-body{gap:12px}.choice-title{font-size:18px}.choice .effect{font-size:13px}.choice .effect strong{font-size:17px}.effect-heading{font-size:10px}.effect-money strong{font-size:15px}.choice-detail{font-size:15px}.effect-columns,.strength-list{gap:7px}.result-choices .primary{width:auto;max-width:100%;font-size:15px}.resolution{padding:13px}.resolution .effect{font-size:12px;padding:6px}.emergency-offers{gap:16px}.emergency-art{height:125px}.emergency-offer .effect{font-size:14px}.emergency-offer .effects{max-width:100%}.briefing-iris{height:175px}.briefing-iris img{position:static;object-position:center 24%}.briefing-copy{padding:10px 19px 23px}.briefing-copy h2{font-size:27px}.briefing-copy p{font-size:16px}.briefing-iris>span{position:absolute}.project-price-note{font-size:13px}}
@media(max-width:360px){.iris-tools{grid-template-columns:1fr 1fr}.iris-tool.log{grid-column:1/-1}.effect{gap:4px;padding:5px}.effect-symbol{font-size:11px}.choice .effect{font-size:12px}.choice .effect strong{font-size:15px}.control-room{min-width:0}}
@media(min-width:1101px) and (max-width:1320px){.adviser{grid-template-columns:44px minmax(0,1fr)}.adviser>img{display:block;width:44px;height:120px}}
.effect.effect-money{display:block;padding:7px 6px}.effect.effect-money strong{display:block;white-space:normal;line-height:1.3;font-size:13px}.emergency-loan{background-position:center,50% 50%}.emergency-recruit{background-position:center,0 50%}

/* 0.2.5: compact mobile instruments, every faction visible, IRIS first. */
#result-text{font-size:17px;line-height:1.55;color:#edf2de;margin:0 0 18px;outline:none}
#event-card:focus{outline:none}.decision-column{overflow-anchor:none}.resolution{scroll-margin-top:16px}
@media(max-width:760px){
 .control-room{display:flex;flex-direction:column;gap:12px}.workspace,.left-column{display:contents}
 .adviser{order:0;margin:0;padding:10px;background:#102630;border:1px solid #314b57;border-radius:5px;grid-template-columns:54px minmax(0,1fr)}
 .adviser>img{height:102px;width:54px}.adviser .eyebrow{font-size:12px}.adviser p{font-size:14px}.iris-tool{font-size:14px}
 .dashboard{order:1;position:static;backdrop-filter:none;padding:7px;width:100%}.dashboard-heading{margin-bottom:6px}.dashboard-heading h2{font-size:12px}
 .resource-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.resource{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px;padding:8px;min-height:66px}
 .resource-name{font-size:12px;letter-spacing:0;line-height:1.25}.resource-value{margin:0;gap:3px;flex-wrap:wrap;justify-content:flex-end}.resource-value b{font-size:25px}.resource-value small{font-size:10px;flex-basis:100%;text-align:right}.resource-value .credit-symbol{font-size:20px}
 .resource .bar{grid-column:1/-1;height:7px}.resource .delta-lane{position:absolute;bottom:2px;left:5px;font-size:10px}
 .faction-panel{order:2;background:#0d1b22;border:1px solid #314b57;border-radius:5px;padding:9px}.faction-panel .panel-heading{margin-bottom:7px}
 #factions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;overflow:visible;padding:0}
 #factions .faction{width:100%;min-width:0;max-width:none;flex-basis:auto;margin:0;padding:8px;min-height:105px}
 .faction-top{gap:5px}.faction-name{font-size:12px;line-height:1.2;overflow-wrap:anywhere}.faction-top .avatar{width:25px;height:33px;flex-basis:25px}.favor-number b{font-size:24px}.favor-number small{font-size:9px}
 .faction-status{font-size:12px;line-height:1.2;margin:5px 0}.power-row{font-size:11px;margin-top:6px}.power-meter{height:8px}.faction .bar{height:4px}
 .decision-column{order:3}.right-column{order:4}.choice.locked .choice-detail{font-size:14px}.finale-choices .choice-body{gap:9px}.finale-choices .mini-checks{line-height:1.4}
 .finale-choices .choice{padding:12px}.finale-choices .choice .effects:empty{display:none}
}

.unprepared-routes{grid-column:1/-1;border-top:1px solid #46616a;padding-top:12px}.unprepared-routes>summary{cursor:pointer;padding:12px 4px;color:#a9bfc6;font-weight:700;font-size:14px}.unprepared-routes>.choices{margin-top:10px}#factions .inactive .favor-number small{visibility:hidden}

/* 0.2.6: mobile result action stays at the bottom; reserve space for it. */
@media(max-width:760px){
 .has-result .shell{padding-bottom:calc(94px + env(safe-area-inset-bottom,0px))}
 .has-result .result-choices{position:fixed;left:0;right:0;bottom:0;z-index:45;display:flex;justify-content:center;margin:0;padding:12px 12px calc(12px + env(safe-area-inset-bottom,0px));background:linear-gradient(#0b1920e8,#0b1920);border-top:1px solid #45636c;box-shadow:0 -6px 20px #0005}
 .has-result .result-choices #next{width:100%;max-width:540px;min-height:48px;margin:0;font-size:16px}
 .has-result #toast{bottom:calc(88px + env(safe-area-inset-bottom,0px))}
 #iris-panel:focus{outline:none}
}

/* Prototype 0.2.7: recurring economy and distinct contact emblems. */
.resource-name{display:flex;align-items:center;justify-content:space-between;gap:3px;min-height:24px}.metric-help{width:24px;height:24px;min-width:24px;flex-basis:24px;font-size:12px;position:relative;z-index:2}.resource{overflow:visible}
.budget-summary{display:grid;grid-template-columns:1.2fr 1fr 1fr 1.4fr;gap:12px;width:100%;text-align:left;border:1px solid #42646d;background:linear-gradient(100deg,#172e35,#10232c);border-radius:4px;padding:10px 14px;margin-top:9px;align-items:center}.budget-summary:hover{border-color:var(--cyan)}.budget-summary small{display:block;font-size:9px;letter-spacing:.7px;color:var(--muted)}.budget-summary b{font-size:14px;white-space:nowrap}.budget-title{font-weight:800;font-size:11px}.budget-deficit b{color:var(--red)}.budget-surplus b{color:var(--lime)}.budget-table{width:100%;border-collapse:collapse;margin:20px 0}.budget-table th,.budget-table td{text-align:left;padding:11px 6px;border-bottom:1px solid var(--line)}.budget-table td:last-child{white-space:nowrap;text-align:right;font-weight:700}.budget-table small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.budget-table tfoot{color:var(--lime)}.tax-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0 24px}.tax-option{background:#19333d;border:1px solid #4c6d74;border-radius:6px;text-align:left;padding:15px;display:flex;flex-direction:column;gap:10px}.tax-option span{font-size:13px}.tax-option small{color:var(--cyan)}.tax-option.selected{border-color:var(--lime)}.tax-option:disabled{opacity:.65}.tax-option:hover:not(:disabled){background:#23484d}.contact-emblem{background-image:repeating-linear-gradient(0deg,#89ffff08 0px,#89ffff08 1px,transparent 1px,transparent 5px),linear-gradient(130deg,#143945,#06141e);background-size:auto;display:grid;place-items:center;color:#83d7e4;border:1px solid #3f727d;position:relative;font-weight:900;font-size:28px}.contact-emblem span{border:2px solid currentColor;transform:rotate(-5deg);padding:3px;line-height:1}.speaker-portrait.contact-emblem{font-size:54px}.faction .contact-emblem{font-size:15px}.faction .contact-emblem span{border-width:1px;padding:2px}.emblem-secret{color:#c2a6dc}.emblem-media{color:#eda29e}
@media(max-width:760px){.budget-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:8px}.budget-title{grid-column:1/-1;display:flex;justify-content:space-between}.budget-summary b{font-size:11px;white-space:normal}.budget-summary small{font-size:8px}.resource-name{font-size:9px;letter-spacing:0;min-height:24px}.resource-strip .resource{padding-top:5px}.tax-options{grid-template-columns:1fr}.tax-option{padding:12px}.budget-table td:last-child{white-space:normal;min-width:80px}.budget-table{font-size:13px}}

/* 0.2.8: keep the audience attached to status, with legible compact panels. */
@media(min-width:1101px){.control-room{grid-template-rows:min-content 1fr}.left-column{display:flex;flex-direction:column}.adviser{order:-1;display:grid;grid-template-columns:48px minmax(0,1fr);align-items:start;gap:8px;margin:0 0 16px;padding:0 0 12px;border-bottom:1px solid #35515b}.adviser>img{display:block;width:48px;height:100px;object-fit:cover;object-position:center}.adviser>div{margin:0;padding:0}.adviser p{font-size:14px;line-height:1.45}.adviser .eyebrow{font-size:12px;letter-spacing:.3px}}
.faction-name{font-size:14px}.faction-status{font-size:12px}.faction .favor-number small,.power-row>span:first-child{font-size:12px}.resource-name{font-size:14px;letter-spacing:0;line-height:1.2}.resource-value small{font-size:12px}.metric-help{width:28px;height:28px;flex-basis:28px;min-width:28px}.budget-summary{grid-template-columns:minmax(130px,1.05fr) repeat(3,minmax(0,1fr));gap:10px}.budget-summary b{font-size:14px;white-space:normal}.budget-summary small{font-size:12px;letter-spacing:0}.budget-title{font-size:14px}.budget-current{display:flex;flex-direction:column;gap:4px;padding:16px;background:#19343d;border-left:3px solid var(--cyan);margin-bottom:14px}.budget-current strong{font-size:26px}.budget-current small{font-size:13px;color:var(--muted)}.budget-current>span{font-size:12px;font-weight:800}.budget-explanation{margin-bottom:16px}.budget-explanation summary{cursor:pointer;color:var(--cyan);font-size:14px;padding:7px 0}.budget-explanation p{margin:8px 0;font-size:14px}.tax-preview{color:var(--lime);font-size:16px}.tax-option span{font-size:14px}.tax-option small{font-size:13px}.tax-option:disabled{opacity:.8}.budget-change{border-left:3px solid #7eafc2;padding:12px 14px;margin-top:14px;background:#142b36;display:grid;gap:7px}.budget-change b{font-size:14px}.budget-change span,.budget-change small{font-size:13px;color:#a9c5cf}.crisis-status{border-left:3px solid #eaaa83;background:#382b2c;padding:9px;display:grid;gap:5px;margin:8px 0;font-size:14px}.crisis-status[hidden]{display:none}.crisis-deadline{font-size:12px;font-weight:800;color:#ffd0a8}.crisis-readiness{font-size:13px;color:#ffc0ad}.crisis-readiness.secured{color:var(--lime)}.ending-notice,.choice-warning,.recurring-note{display:block;font-weight:700;padding:8px;font-size:13px;border-left:2px solid #7eafc2;background:#112731}.ends-run{border-top-color:#d59188}.ends-run .ending-notice,.choice-warning{color:#ffd2be;background:#493032;border-color:#f0a195}.recurring-note{color:#bcdae3}.iris-tool{min-height:38px;font-size:13px}
.faction.inactive .avatar,.faction.inactive .power-row,.faction.inactive>.bar,.faction.inactive .favor-number{display:none}.faction.inactive{padding:9px;min-height:58px}.faction.inactive .faction-status{margin:4px 0 0}.faction.inactive{opacity:.75}
@media(max-width:760px){.budget-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:9px}.budget-title{grid-column:1/-1;display:flex;justify-content:space-between;flex-wrap:wrap}.budget-summary b{font-size:13px;line-height:1.3;display:block}.budget-summary small{font-size:12px}.resource-strip .resource{padding:8px;min-height:82px}.resource-name{font-size:13px;min-height:28px;flex-wrap:wrap}.resource-value small{font-size:12px}.resource-value b{font-size:26px}#factions .faction{padding:8px;min-height:103px}.faction-name{font-size:14px}.faction-status{font-size:12px}.faction-panel{width:100%}.power-row{gap:5px}.power-row>span:first-child{font-size:12px}.adviser .eyebrow{font-size:12px}.iris-tool{font-size:13px;min-height:40px}.budget-table td:last-child{min-width:85px}.budget-table{font-size:14px}.budget-table small{font-size:12px}.tax-options{grid-template-columns:1fr}.tax-option span{font-size:14px}}

@media(max-width:760px){.iris-tool{display:grid;grid-template-columns:1fr auto;align-content:center;gap:3px;font-size:12px;padding:7px 5px}.iris-tool>span:first-child{white-space:nowrap}.iris-tools{grid-column:1/-1}.adviser>div{display:contents}.adviser .eyebrow,.adviser #advice,.adviser #crisis-status{grid-column:2}.adviser>img{grid-row:1/4}.adviser #advice{margin:0 0 5px}}

#city-status:focus,#audience-panel:focus{outline:none}

/* Audience console 0.3.2. Scoped so city, factions and projects keep their layout. */
#audience-panel{--option-ink:#edf3e8;--option-muted:#a8bec7;--option-gold:#dfcc91;background:#0c1822;border:1px solid #476572;border-top:3px solid #81cfc9;border-radius:8px 24px 8px 8px;padding:20px;}
#audience-panel .audience-topline{margin-bottom:16px;font-size:12px;letter-spacing:.7px}
#event-card:not(.resolved) .audience-briefing{display:grid;grid-template-columns:132px minmax(0,1fr);gap:0 20px;margin:0 -20px;padding:22px 20px 24px;background:linear-gradient(115deg,#203743,#12232e);border-top:1px solid #38515d;border-bottom:1px solid #527173}
#event-card:not(.resolved) .event-header{display:contents}
#event-card:not(.resolved) .speaker-portrait{grid-column:1;grid-row:1/3;width:132px;height:154px;align-self:center;border:0;box-shadow:none;border-radius:0;mask-image:linear-gradient(to top,transparent,#000 12%)}
#event-card:not(.resolved) .event-header>div:not(.avatar){grid-column:2;min-width:0}
#event-card:not(.resolved) .person-name{font-size:16px;margin-bottom:4px}
#event-card:not(.resolved) .person-role{font-size:12px;letter-spacing:.5px;margin-bottom:12px}
#event-card:not(.resolved) h2{font-size:clamp(24px,2.25vw,32px);margin:0 0 15px;line-height:1.15}
#event-card:not(.resolved) .event-text{grid-column:2;line-height:1.6;font-size:16px;color:#c4d5da}
#event-card:not(.resolved) .event-text p:last-child{margin-bottom:0}
#event-card .promise-reminder{grid-column:1/-1;margin-top:18px}
.decision-deck{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;perspective:1400px;margin-top:24px;align-items:stretch}
.decision-deck.finale-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
.decision-option{position:relative;min-width:0;display:flex;flex-direction:column;padding:18px 14px 15px;background:linear-gradient(135deg,#233943,#13232e 70%);border:1px solid #4e6671;border-top:2px solid #a4bcb9;border-radius:9px 9px 5px 5px;box-shadow:0 5px 0 #071018,0 6px 0 #344854,0 16px 22px #0005,inset 0 1px 0 #e8ffff15;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;cursor:pointer;touch-action:pan-y pinch-zoom;}
.decision-option:before{content:"";position:absolute;top:13px;right:11px;width:22px;height:3px;background:repeating-linear-gradient(90deg,#536b74 0 3px,transparent 3px 7px);pointer-events:none}
.decision-option.is-locked{border-style:dashed;border-top-style:solid;border-top-color:#6e8691}
.decision-option.ends-run{border-top-color:#d59188}
.option-meta{display:flex;align-items:center;gap:8px;font-size:12px;letter-spacing:.5px;font-weight:750;color:var(--choice-meta,#adc3ca);margin-bottom:15px;min-width:0}
.option-number{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;background:#0b1a24;border:1px solid #526b70;border-radius:3px;font-size:14px;font-weight:800;color:var(--lime);letter-spacing:0}
.decision-option .choice-title{display:block;color:var(--choice-ink,var(--option-ink));font-size:21px;line-height:1.24;font-weight:800;margin:0 0 12px;min-height:52px;overflow-wrap:break-word}
.decision-option .choice-detail{color:var(--choice-copy,#bdcfd5);font-size:15px;line-height:1.55;margin:0 0 18px;}
.option-desktop{display:flex;flex-direction:column;flex:1}
.option-preview,.option-full-copy{display:none}
.option-details{display:flex;flex-direction:column;gap:0;min-width:0}
.option-cash{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:3px 8px;padding:10px 0;margin:0 0 14px;border-top:1px solid #8e826659;border-bottom:1px solid #8e826659;color:var(--choice-gold,var(--option-gold))}
.option-cash>span{font-size:12px;color:var(--choice-meta,#b9c0b4)}.option-cash>strong{font-size:16px;font-weight:800;white-space:normal}
.option-cash.zero,.option-price.zero{color:var(--choice-meta,#9eb2bc)}.option-cash.zero{border-color:#3b515c}
.decision-option .effect-layout{display:flex;flex-direction:column;gap:12px;height:100%}
.decision-option .effect-columns{gap:12px}
.decision-option .effect-column{gap:4px}
.decision-option .effect-heading{font-size:11px;letter-spacing:.6px;margin-bottom:5px;color:var(--choice-meta,#9db4bf)}
.decision-option .effect{padding:3px 0;border:0;border-radius:0;background:none;box-shadow:none;font-size:13px;line-height:1.4;grid-template-columns:10px minmax(0,1fr) auto;gap:2px;align-items:baseline;}
.decision-option .effect-label{font-weight:600;overflow-wrap:break-word}.decision-option .effect-symbol{font-size:12px;color:inherit;opacity:.8}
.decision-option .effect strong{color:inherit;font-size:17px;font-weight:850;letter-spacing:.5px}
.decision-option .effect.positive{color:var(--choice-positive,#c2dcae)}.decision-option .effect.negative{color:var(--choice-negative,#e6b1a5)}.decision-option .effect.power-effect{color:var(--choice-power,#aed0e0)}
.decision-option .strength-effects{margin-top:auto;padding-top:9px;border-top:1px solid #395160}
.decision-option .strength-list{grid-template-columns:1fr;gap:3px}
.decision-option .no-effect{font-size:14px;padding:3px 0}
.decision-option .choice-addenda{margin-top:12px;padding-top:10px;gap:7px;border-top:1px solid #395160}
.decision-option .extra-note,.decision-option .promise-warning{font-size:13px;line-height:1.45}
.decision-option .mini-checks{margin:12px 0 0;font-size:13px;line-height:1.5;display:grid;gap:6px}
.decision-option .choice-lock{display:block;color:#f0baa8;border-left:2px solid #bd8170;padding:8px 10px;margin-top:12px;background:#4c333044;font-size:14px}
.decision-option:focus-within{border-color:#aec8ad}
.decision-option:focus-visible{outline:3px solid var(--cyan);outline-offset:3px}
.decision-deck .unprepared-routes{margin-top:8px}
.decision-deck .unprepared-routes>.decision-deck{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:12px}
@media(hover:hover) and (prefers-reduced-motion:no-preference){body:not(.reduce-motion) .decision-option:not(.is-locked):hover{transform:translateY(-5px) rotateX(1deg);border-color:#adc69e;box-shadow:0 6px 0 #071018,0 7px 0 #5c726b,0 24px 30px #0007,inset 0 1px 0 #ecffff22}}
@media(prefers-reduced-motion:reduce){.decision-option{transition:none}}
.reduce-motion .decision-option{transition:none}
@media(min-width:761px) and (max-width:1100px){.decision-deck{grid-template-columns:1fr}.option-desktop{flex:0}.decision-option .choice-title{min-height:0}.option-details>.effects{max-width:540px}}
@media(max-width:760px){
 #audience-panel{padding:15px 12px 18px;border-radius:8px 20px 8px 8px}
 #audience-panel .audience-topline{font-size:11px;letter-spacing:.5px;margin-bottom:13px}
 #event-card:not(.resolved) .audience-briefing{grid-template-columns:76px minmax(0,1fr);gap:14px;margin:0 -12px;padding:18px 14px}
 #event-card:not(.resolved) .speaker-portrait{grid-row:1;width:76px;height:94px;align-self:start;mask-image:linear-gradient(to top,transparent,#000 8%)}
 #event-card:not(.resolved) .person-name{font-size:15px}#event-card:not(.resolved) .person-role{font-size:11px;margin-bottom:8px}
 #event-card:not(.resolved) h2{font-size:24px;margin-bottom:0;letter-spacing:-.4px}
 #event-card:not(.resolved) .event-text{grid-column:1/-1;font-size:16px;line-height:1.55}
 .decision-deck,.decision-deck.finale-choices,.decision-deck .unprepared-routes>.decision-deck{grid-template-columns:1fr;gap:16px;margin-top:20px}
 .decision-option{padding:0;box-shadow:0 4px 0 #071018,0 5px 0 #344854,0 12px 20px #0005;transform:none}
 .decision-option:before{display:none}.option-desktop{display:none}
 .option-preview{display:block;width:100%;padding:15px 15px 12px;border:0;background:none;text-align:left;border-radius:7px;color:var(--choice-ink,var(--option-ink))}
 .option-meta{margin-bottom:10px;font-size:11px;gap:7px;letter-spacing:.2px;flex-wrap:wrap}
 .option-price{margin-left:auto;color:var(--choice-gold,var(--option-gold));font-size:13px;letter-spacing:0;font-weight:800;white-space:nowrap}
 .option-number{height:26px;width:26px;flex-basis:26px;font-size:13px}
 .option-title{display:block;font-size:21px;line-height:1.23;font-weight:800;margin-bottom:8px;overflow-wrap:break-word}
 .option-tradeoff{display:block;color:var(--choice-copy,#b9cbd1);font-size:15px;line-height:1.5}
 .option-select-label{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:13px;color:var(--choice-meta,#9bc1c8);font-size:13px;font-weight:700;min-height:24px}
 .option-select-label>b{font-size:20px;line-height:1;font-weight:500}
 .option-unavailable{display:block;color:#e2b59e;font-size:13px;margin-top:8px;font-weight:700}
 .decision-option:not(.is-open) .option-details{display:none}
 .decision-option.is-open:not(.is-locked){border-color:#cbe6b8;border-top-color:#deefc8}
 .option-details{padding:14px 15px 16px;border-top:1px solid #47616b;background:var(--choice-detail-bg,#0b192344);border-radius:0 0 5px 5px}
 .option-full-copy{display:block;font-size:15px;line-height:1.55;color:var(--choice-copy,#bfd1d8);margin:0 0 17px}
 .option-cash{display:none}
 .decision-option .effect{font-size:14px;padding:4px 0;gap:2px}
 .decision-option .effect-heading{font-size:12px}.decision-option .effect-columns{gap:14px}
 .decision-option .strength-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 14px}
 .has-result #audience-panel{padding-bottom:18px}
}

@supports(grid-template-rows:subgrid){
 @media(min-width:1101px){
  .decision-deck{row-gap:0}
  .decision-option{display:grid;grid-template-rows:subgrid;grid-row:span 6;row-gap:0;padding-bottom:15px;margin-bottom:18px}
  .option-desktop,.option-details{display:contents}
  .decision-option .choice-title{min-height:0}
  .decision-option .choice-detail{padding-bottom:16px;margin:0}
  .option-notes{min-height:12px}
 }
}

/* A selected card is the confirmation surface; no text overlay covers its contents. */
.decision-option:focus-visible{outline:3px solid #b9f1ec;outline-offset:4px}
.decision-option.is-selected:not(.is-locked){--choice-ink:#152d22;--choice-copy:#293f32;--choice-meta:#3c5040;--choice-gold:#574013;--choice-positive:#24502b;--choice-negative:#842f27;--choice-power:#214b61;--choice-detail-bg:transparent;--choice-note:#514068;--choice-alert-bg:#e0cfb5;--choice-alert-border:#926957;--choice-info-bg:#c2d5b1;background:linear-gradient(130deg,#c5dbb4,#abc696);border-color:#deefc8;color:#152d22;}
.decision-option .extra-note{color:var(--choice-note,#b8ced8)}
.decision-option .clue-note{color:var(--choice-note,#d5c6ef)}
.decision-option .no-effect{color:var(--choice-meta,#9db4bf)}
.decision-option .ending-notice,.decision-option .choice-warning,.decision-option .promise-warning{color:var(--choice-negative,#e6b1a5);background:var(--choice-alert-bg,#422e2d);border-color:var(--choice-alert-border,#926154)}
.decision-option .recurring-note{color:var(--choice-positive,#c2dcae);background:var(--choice-info-bg,#112731)}
.decision-option .mini-checks .met{color:var(--choice-positive,#c2dcae)}
.decision-option.is-selected .option-number{background:#243d2c;border-color:#607e53;color:#e9f4dc}
.decision-option.is-selected .option-select-label{border-top:1px solid #53734760;padding-top:10px;color:#254831}
.decision-option.is-locked{cursor:help}
@media(hover:hover) and (pointer:fine){
 .decision-option:not(.is-locked):hover,.decision-option:not(.is-locked):focus-visible{--choice-ink:#152d22;--choice-copy:#293f32;--choice-meta:#3c5040;--choice-gold:#574013;--choice-positive:#24502b;--choice-negative:#842f27;--choice-power:#214b61;--choice-detail-bg:transparent;--choice-note:#514068;--choice-alert-bg:#e0cfb5;--choice-alert-border:#926957;--choice-info-bg:#c2d5b1;background:linear-gradient(130deg,#c5dbb4,#abc696);border-color:#deefc8;color:#152d22;}
}

/* Information belongs to its owner: contacts, construction, and IRIS's case file. */
.clue-icon{width:19px;height:19px;flex:0 0 19px;vertical-align:-4px}
.clue-note{display:flex;align-items:center;gap:7px;color:#d5c6ef}
.adviser>div{display:contents}
.adviser .eyebrow,.adviser #advice,.adviser #crisis-status{grid-column:2}
.adviser>img{grid-row:1/4}
.iris-tools{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.iris-tool{display:flex;flex-wrap:nowrap;min-width:0;min-height:42px;padding:7px 5px;font-size:13px;gap:3px}
.iris-tool>span:first-child{display:flex;gap:3px;align-items:center;white-space:nowrap}
.iris-tool b{font-size:12px;min-width:8px;text-align:right}
.iris-tool.followups{color:#c9c4b4;background:#242b2c;border-color:#655e48}
.iris-tool.followups.has-items{border-color:#ae9460;color:#e4d4ad}
.iris-tool.log{grid-column:auto}
.faction-panel>.panel-heading{border-bottom:1px solid #35505d;padding-bottom:12px;margin-bottom:10px}
.right-column .agenda{background:linear-gradient(125deg,#192b2e,#0e1d26);border-color:#69634c;border-top:3px solid #b4a572}
.agenda>.panel-heading{color:#eee1b7}
#projects{display:grid;gap:0}
.project-ledger{position:relative;grid-template-columns:44px minmax(0,1fr);gap:10px;padding:15px 0;border:0;border-bottom:1px solid #455354;border-radius:0;background:transparent;box-shadow:none;text-align:left;opacity:1}
.project-ledger:last-child{border-bottom:0;padding-bottom:4px}
.project-ledger:hover{background:#c0dbbb08}
.project-ledger .project-thumb{width:44px;height:58px;border-radius:3px;align-self:start}
.project-ledger .project-copy{min-width:0}
.project-ledger .project-copy>b{display:flex;gap:5px;justify-content:space-between;align-items:start;font-size:15px;line-height:1.35}
.project-ledger .project-copy>b small{font-size:12px;color:#aaa993;white-space:nowrap}
.project-progress{display:flex;gap:4px;height:5px;margin:10px 0}
.project-progress i{flex:1;background:#344245;border-radius:1px}
.project-progress i.done{background:#c0d995;box-shadow:0 0 5px #bad28b28}
.project-ledger .project-cost{font-size:13px;line-height:1.4;color:#d0d9ce}
.project-ledger .project-cost small{display:block;font-size:12px;color:#9eb4b7;margin-top:3px}
.project-ledger .lock-short{font-size:12px;line-height:1.4;color:#a4b5b7;margin-top:5px}
.project-benefit{display:block;font-size:14px;line-height:1.4;color:#dcebc6;margin-bottom:8px}
.project-benefit>span{display:block;font-size:11px;letter-spacing:.8px;font-weight:800;color:#a2b98f;margin-bottom:3px}
.project-complete{display:block;font-size:12px;color:#a7c2a0;line-height:1.4}
.emergency-control{margin-top:2px}
.emergency-toggle{background:linear-gradient(90deg,#33292380,#11242a);border-color:#6b5543;border-left:3px solid #ab8260;padding:12px 13px}
.emergency-toggle>span:first-child{font-size:14px}
.emergency-toggle>b{color:#c9ad8d;font-size:12px}
.emergency-toggle.spent{opacity:.6}
.clue-receipt{display:flex;gap:12px;align-items:center;text-align:left;width:100%;margin-top:17px;padding:13px 14px;border:1px solid #766990;border-left:3px solid #bca2df;background:#2d293a;color:#e0d4f3;border-radius:4px}
.clue-receipt>span:nth-child(2){flex:1;min-width:0}
.clue-receipt small{display:block;font-size:11px;font-weight:800;letter-spacing:.7px;color:#c5b7da;margin-bottom:4px}
.clue-receipt b{font-size:15px;line-height:1.4;font-weight:750}
.clue-receipt:hover{background:#393348;border-color:#c8b0ed}
.clue-receipt:focus-visible,.iris-tool:focus-visible,.project-ledger:focus-visible{outline:2px solid #d8e8c0;outline-offset:3px}
.dossier-heading{display:flex;gap:14px;align-items:center;padding:5px 0 17px;border-bottom:1px solid #67597d}
.dossier-heading>.clue-icon{width:34px;height:34px;flex-basis:34px;color:#cdb4ed}
.dossier-heading h3{font-size:23px;margin:5px 0 0}
.dossier-heading .eyebrow{font-size:11px;color:#bdaaca}
.dossier-total{display:flex;flex-direction:column;margin-left:auto;text-align:right;color:#e6d9f8}
.dossier-total b{font-size:30px;line-height:1.1}
.dossier-total small{font-size:10px;letter-spacing:.9px;margin-top:4px}
.dossier-lead{font-size:15px;line-height:1.6;color:#b9c7cf;margin:17px 0 22px;max-width:65ch}
.clue-records{display:grid;gap:13px}
.clue-record{padding:18px 20px;border:1px solid #4d4960;border-left:3px solid #a68dc2;border-radius:3px;background:linear-gradient(110deg,#282938,#18272f)}
.clue-record-meta{display:flex;justify-content:space-between;gap:10px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;color:#bdaacc}
.clue-record.testimony{border-left-color:#87bbbd}
.clue-record.testimony .clue-record-meta{color:#9fc9ca}
.clue-record.lead{border-left-style:dashed;border-left-color:#c2aa7c}
.clue-record.lead .clue-record-meta{color:#d1ba91}
.clue-record h3{font-size:20px;line-height:1.3;margin:10px 0;color:#eeece7}
.clue-record p{font-size:16px;line-height:1.6;margin:0 0 14px;max-width:69ch}
.clue-record footer{display:flex;flex-direction:column;gap:4px;align-items:start;text-align:left;margin:0;padding:11px 0 0;border-top:1px solid #61718140;color:#b0b9c9;font-size:12px;line-height:1.5}
.clue-confirmations{color:#c8b6df}
.dossier-help{margin:20px 0;padding:13px 0;border-top:1px solid #4a4e60}
.dossier-help summary{cursor:pointer;color:#c8c1db;font-size:14px;font-weight:700}
.dossier-help p{font-size:15px}
.dossier-empty{display:flex;flex-direction:column;gap:10px;padding:25px 20px;border:1px dashed #59606d;border-radius:4px;margin:18px 0 24px;color:#bcc7cf}
.dossier-empty>span{font-size:32px;color:#b9a5ce}
.dossier-empty b{font-size:20px;color:#e3e6df}
.dossier-empty p{font-size:15px;margin:0}
.watchlist-heading{font-size:13px;letter-spacing:.7px;text-transform:uppercase;color:#bfb399;margin:22px 0 10px}
.watchlist{display:grid}
.watch-item{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;padding:17px 0;border-bottom:1px solid #50606666}
.watch-item .watch-symbol{font-size:22px;color:#c1ad81}
.watch-item h3{font-size:18px;margin:0 0 6px}
.watch-item p{font-size:16px;margin:0 0 6px}
.watch-item small{font-size:13px;color:#a8b9bf}
.watchlist+.secondary{margin-top:22px}
.escape-ready{border-left:3px solid #92bba3;background:#1d3435;padding:16px;margin:22px 0}
.escape-ready h3{font-size:18px;margin:8px 0}
.escape-ready p{font-size:15px;margin:0}
@media(min-width:761px) and (max-width:1320px){.iris-tools{grid-template-columns:1fr}.iris-tool{min-height:36px}}
@media(max-width:760px){
 .iris-tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.iris-tool{font-size:14px;padding:9px;min-height:43px}.iris-tool.log{grid-column:auto}
 .project-ledger{grid-template-columns:54px minmax(0,1fr);gap:13px;padding:14px 0}.project-ledger .project-thumb{width:54px;height:64px}.project-ledger .project-copy>b{font-size:16px}
 .clue-receipt{padding:12px 10px;gap:9px}.clue-receipt b{font-size:14px}.clue-receipt small{font-size:10px;letter-spacing:.3px}
 .dossier-heading{gap:10px}.dossier-heading>.clue-icon{width:26px;height:26px;flex-basis:26px}.dossier-heading h3{font-size:19px}.dossier-heading .eyebrow{font-size:10px}.dossier-total b{font-size:26px}.dossier-total small{font-size:9px}
 .clue-record{padding:15px 13px}.clue-record h3{font-size:19px}.clue-record-meta{font-size:10px;gap:6px}.clue-record p{font-size:16px}
}
@media(max-width:360px){.iris-tool{font-size:13px;padding:8px 6px}.iris-tool .clue-icon{width:16px;height:16px;flex-basis:16px}}

/* 0.3.5 — illustrated city readouts and compact construction / emergency modules. */
:root{--selection:#ffe47a;--selection-surface:linear-gradient(145deg,#fff0a4 0%,#ffe47a 52%,#ffdc66 100%)}
.shell{max-width:1580px}
.city-banner{height:170px;margin-bottom:16px}
.banner-status #week{color:var(--selection);text-shadow:0 0 30px #ffe47a25}
.control-room{display:flex;flex-direction:column;align-items:stretch;gap:16px}
.workspace{display:grid;grid-template-columns:215px minmax(0,1fr) 235px;gap:18px;align-items:start;margin:0}
.workspace>.left-column,.workspace>.right-column{display:flex;flex-direction:column;gap:14px;min-width:0;grid-column:auto;grid-row:auto}
.workspace>.left-column{padding:0;border:0;background:none}
.dashboard,.decision-column{grid-column:auto;grid-row:auto;min-width:0}
.dashboard{position:static;backdrop-filter:none;padding:12px;background:linear-gradient(110deg,#10202a,#0c1922);border:1px solid #334d5a;border-radius:7px;margin:0}
.dashboard-heading{margin:0 0 10px}
.dashboard-heading h2{font-size:12px;letter-spacing:1px}
.resource-strip{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.resource-strip .resource{--metric-light:#9bd4b0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:24px 32px 7px;gap:8px;align-items:center;min-height:105px;padding:12px;isolation:isolate;background:#0a171e;border:1px solid #3a535b;border-top:2px solid var(--metric-edge);border-radius:6px;box-shadow:inset 0 1px 0 #ffffff05}
.resource[data-metric="cash"]{--metric-art:url('assets/metric-credits.webp');--metric-edge:#5c9a74;--metric-light:#9bd4b0}
.resource[data-metric="influence"]{--metric-art:url('assets/metric-control.webp');--metric-edge:#915565;--metric-light:#c599ab}
.resource[data-metric="army"]{--metric-art:url('assets/metric-army.webp');--metric-edge:#8175a5;--metric-light:#bcb0df}
.resource[data-metric="pop"]{--metric-art:url('assets/metric-public.webp');--metric-edge:#5995b0;--metric-light:#9dcfe4}
.resource-strip .resource::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:4px;background-image:linear-gradient(90deg,#09161df5 0%,#09161db3 39%,#09161d18 100%),var(--metric-art);background-position:center,right 48%;background-size:100% 100%,auto 150%;background-repeat:no-repeat;opacity:.95;pointer-events:none}
.resource-name{font-size:12px;line-height:1.25;font-weight:800;letter-spacing:.35px;min-height:0;gap:6px;display:flex;color:#e0e8e8;text-shadow:0 1px 5px #000}
.resource-value{margin:0;gap:5px;justify-content:flex-start;flex-wrap:nowrap;line-height:1;text-shadow:0 2px 8px #02080c}
.resource-value b{font-size:32px;line-height:1;font-weight:850;color:#f1f4e9}
.resource-value small{font-size:11px;flex-basis:auto;max-width:70px;text-align:left;line-height:1.2;color:#d6e2d9;font-weight:700}
.resource-value .credit-symbol{font-size:25px}
.resource .bar{grid-column:1/-1;height:7px;margin:0;background:#07131cda;border-color:#92b1bd35}
.resource .bar>span{background:linear-gradient(90deg,var(--metric-edge),var(--metric-light))}
.resource .delta-lane{position:absolute;bottom:0;left:8px}
.resource-strip .resource.danger{border-color:#b56853;border-top-color:#f1a17d;box-shadow:inset 0 0 0 1px #a3543633}
.resource.danger .resource-name::before{content:"!";display:inline-grid;place-items:center;flex:0 0 15px;width:15px;height:15px;border-radius:3px;background:#edac88;color:#34201a;text-shadow:none;font-size:11px;font-weight:900}
.resource.danger .bar>span{background:#edac88}
.metric-help{width:24px;height:24px;min-width:24px;flex-basis:24px;font-size:12px}
.budget-summary{margin-top:10px;padding:10px 12px;border:0;border-top:1px solid #344c58;border-radius:0;background:none;gap:14px;grid-template-columns:1.1fr 1fr 1fr 1fr}
.budget-summary:hover{background:#243c4544}
.budget-title{font-size:12px;letter-spacing:.3px}
.budget-summary small{font-size:10px;letter-spacing:.5px;margin-bottom:3px}
.budget-summary b{font-size:14px}

/* IRIS owns the reports; contacts below belong to the political directory. */
#iris-panel.adviser{display:grid;grid-template-columns:52px minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:2px 14px;order:0;margin:0;padding:10px 14px 10px 8px;background:linear-gradient(100deg,#173039,#101e29 75%);border:1px solid #36555f;border-left:3px solid #79c8c7;border-radius:6px}
#iris-panel>img{grid-column:1;grid-row:1/3;width:52px;height:66px;object-fit:cover;object-position:50% 14%;mask-image:linear-gradient(to top,transparent,#000 18%);margin:0}
#iris-panel>div{display:contents}
#iris-panel .eyebrow{grid-column:2;grid-row:1;font-size:12px;letter-spacing:.8px;color:#8cd8d6;align-self:end}
#iris-panel #advice{grid-column:2;grid-row:2;margin:4px 0 0;font-size:14px;line-height:1.5;align-self:start;color:#c0d0d7;max-width:76ch}
#iris-panel #crisis-status{grid-column:2/-1;grid-row:3;margin:10px 0 0}
#iris-panel .iris-tools{display:grid;grid-column:3;grid-row:1/3;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0}
#iris-panel .iris-tool{min-height:39px;min-width:87px;font-size:12px;padding:8px;gap:10px;justify-content:space-between;border-radius:4px}
#iris-panel .iris-tool b{font-size:13px}
#iris-panel .iris-tool .clue-icon{width:16px;height:16px;flex-basis:16px}

/* Contacts: two independent readings, one compact row per faction. */
.faction-panel{padding:13px 10px;background:#0d1a24;border:1px solid #304a58;border-top:2px solid #689cac;border-radius:6px}
.faction-panel>.panel-heading{padding-bottom:10px;margin-bottom:10px;border-color:#304653}
.faction-panel h2{font-size:12px;letter-spacing:.7px}
.contact-legend{display:grid;grid-template-columns:minmax(0,1fr) 36px 56px;align-items:center;gap:8px;margin:0 7px 7px;font-size:9px;letter-spacing:.3px;font-weight:700;color:#91a9b8}
.contact-legend span:nth-child(2),.contact-legend span:last-child{text-align:center}
#factions{display:grid;grid-template-columns:1fr;gap:5px;overflow:visible;padding:0;margin:0}
#factions .faction{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 32px 56px;gap:4px 8px;align-items:center;min-height:55px;width:100%;max-width:none;min-width:0;margin:0;padding:9px 7px;text-align:left;background:linear-gradient(110deg,#1b303c,#13242e);border:1px solid #314a59;border-left:2px solid #638e9e;border-radius:4px;opacity:1;overflow:visible}
#factions .faction:hover{background:linear-gradient(110deg,#25404b,#192e39);border-color:#7eaeb9}
#factions .faction-top{display:contents}
#factions .faction-name{grid-column:1;font-size:13px;font-weight:750;line-height:1.3;overflow-wrap:normal}
#factions .favor-number{grid-column:2;display:block;text-align:center;margin:0}
#factions .favor-number b{font-size:25px;line-height:1;font-weight:800;color:#dcebdc}
#factions .favor-number small{display:none}
#factions .power-row{grid-column:3;display:block;margin:0}
#factions .power-row>span:first-child{display:none}
#factions .power-meter{display:flex;gap:3px;height:11px;width:100%;margin:0}
#factions .power-meter i{min-width:0;flex:1;border-radius:1px;border:1px solid #426070;background:#0b1821}
#factions .power-meter .filled{background:#8eb9ce;border-color:#8eb9ce;box-shadow:0 0 6px #8eb9ce10}
#factions .faction>.bar,#factions .faction-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0;padding:0}
#factions .faction .delta-lane{position:absolute;top:100%;bottom:auto;left:0;width:100%;z-index:3;pointer-events:none}
#factions .hostile{border-left-color:#d98d79;background:linear-gradient(110deg,#352b30,#182530)}
#factions .hostile .favor-number b{color:#f1a58e}
#factions .plotting{border-color:#b07164}
#factions .faction.inactive{display:block;min-height:43px;border:1px dashed #314956;background:#13232c88;opacity:.68;padding:8px}
#factions .inactive .faction-name{font-size:12px;color:#b0c1c8}
#factions .inactive .faction-status{position:static;display:block;width:auto;height:auto;clip-path:none;white-space:normal;margin-top:3px;font-size:10px;color:#8ba1ae}
#factions .inactive .favor-number,#factions .inactive .power-row{display:none}

/* Construction: artwork gives each project an identity; completed stages stay visible. */
.right-column .agenda{padding:12px;background:linear-gradient(150deg,#1c292b,#0f1b22);border:1px solid #625c48;border-top:2px solid #c9b579;border-radius:7px;box-shadow:inset 0 1px 0 #fff0b90a}
.agenda>.panel-heading{margin-bottom:12px;padding:1px 2px 10px;border-bottom:1px solid #d0b67a25}
.agenda h2{font-size:12px;letter-spacing:1.2px;color:#e4d7b0}
.agenda .help-dot{border-color:#72674d;color:#dbc99b}
#projects{gap:9px}
.projects-notice{display:flex;align-items:start;gap:8px;font-size:11px;line-height:1.5;color:#b4bbb6;margin:0 2px 2px}
.projects-notice svg{width:15px;height:17px;flex:0 0 15px;color:#c7b485}
.project-ledger,.project-ledger:last-child{display:block;position:relative;isolation:isolate;overflow:hidden;width:100%;padding:12px;min-height:0;border:1px solid #706b534d;border-radius:5px;background:#142127;transition:border-color .16s,background .16s}
.project-ledger:hover{border-color:#c3ac74;background:#1b2a2b}
.project-ledger .project-visual{position:absolute;inset:0 0 0 auto;width:65%;z-index:-2;opacity:.65;background-size:300% 100%;filter:saturate(.8);pointer-events:none}
.project-ledger.locked .project-visual{opacity:.48;filter:saturate(.55)}
.project-ledger::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#142127 10%,#142127ed 45%,#1421272b 100%),linear-gradient(0deg,#142127ed,transparent 75%);pointer-events:none}
.project-ledger .project-copy{display:block;position:relative;width:100%}
.project-ledger .project-copy>b{display:flex;align-items:start;gap:8px;font-size:15px;font-weight:800;line-height:1.35;color:#f0ead8;text-shadow:0 1px 4px #081014}
.project-open{font-size:13px;color:#c7b485;font-weight:400;margin-left:auto}
.project-stage-line{display:flex;align-items:center;gap:8px;margin:10px 0 11px}
.project-stage-line>span:first-child{font-size:8px;letter-spacing:.8px;font-weight:750;color:#b7bbae}
.project-stage-line>small{font-size:11px;line-height:1;color:#ddd7c2;font-weight:800;white-space:nowrap}
.project-progress{display:flex;flex:1;gap:4px;height:6px;margin:0}
.project-progress i{display:block;flex:1;background:#081820c7;border:1px solid #8d977052;border-radius:1px}
.project-progress i.next{border-color:#d0b46c;background:#aa975936}
.project-progress i.done{background:#cfc085;border-color:#e5d49a;box-shadow:0 0 6px #deca7722}
.project-ledger .project-benefit{font-size:12px;color:#d2e4bd;margin:0 0 9px;line-height:1.4}
.project-benefit>span{font-size:8px;letter-spacing:1px;color:#a5c193;margin-bottom:3px}
.project-ledger .project-cost{display:block;font-size:12px;line-height:1.4;margin:0;color:#f0d895}
.project-cost strong{font-weight:800}
.project-ledger .project-cost small{display:block;font-size:10px;color:#bdc8c5;margin-top:3px;font-weight:650}
.project-ledger .lock-short{font-size:10px;color:#b7c0bf;margin-top:8px;padding-top:7px;border-top:1px solid #c0c7b41b}
.project-ledger .lock-short.project-ready{color:#e4d393;font-weight:800}
.project-ledger.complete .project-complete{font-size:10px;line-height:1.4;color:#bdd6ad}
.project-ledger.complete{border-color:#77936380}

/* A discreet physical comms socket, distinct from a construction card. */
.emergency-control{margin:0}
.emergency-toggle{position:relative;display:grid;grid-template-columns:32px minmax(0,1fr) 12px;gap:10px;align-items:center;width:100%;padding:15px 11px;text-align:left;background:linear-gradient(115deg,#25292a,#0b171e 65%);border:1px solid #5d5849;border-radius:7px;box-shadow:inset 0 1px 0 #f1d39c12,inset 0 -3px 0 #040b10}
.emergency-toggle:hover{background:linear-gradient(115deg,#35332c,#122129);border-color:#b49b6e}
.emergency-toggle:focus-visible{outline:2px solid #e4c883;outline-offset:3px}
.emergency-port{display:grid;place-items:center;width:32px;height:43px;border:1px solid #74654a;border-radius:16px;background:linear-gradient(135deg,#342f24,#131f23);color:#d4b978;box-shadow:inset 0 2px 5px #0008,0 1px 0 #f8de9d14}
.emergency-port svg{width:23px;height:23px}
.emergency-toggle .emergency-identity{display:block;font-size:13px;font-weight:750;color:#e4ddd0;line-height:1.4}
.emergency-identity small{display:block;font-size:8px;font-weight:650;letter-spacing:.75px;color:#c2ae86;margin:0 0 3px}
.emergency-identity strong{display:block;font-size:13px;font-weight:800}
.emergency-status{display:flex;align-items:center;gap:6px;font-size:8px;font-weight:700;letter-spacing:.5px;color:#aab9b5;margin-top:7px}
.emergency-indicator{display:inline-block;width:5px;height:5px;flex:0 0 5px;border:0;border-radius:50%;background:#9fbea3;box-shadow:0 0 6px #9fbea355}
.emergency-toggle.standby .emergency-indicator{background:#beac7f;box-shadow:none}
.emergency-toggle.spent .emergency-indicator{background:#778287;box-shadow:none}
.emergency-toggle.spent{opacity:.68}
.emergency-arrow{align-self:center;color:#b9a884;font-size:16px}

.banner-status .chapter-caption{margin:10px 0 0;line-height:1.35}
.chapter-caption>span{display:block;font-size:8px;font-weight:700;letter-spacing:1.5px;color:#9bb6c0}
.chapter-caption>b{display:block;font-size:10px;font-weight:800;letter-spacing:.25px;color:#e3e5dd;margin-top:3px}

/* The audience's question outranks the decision titles. */
#audience-panel{background:#0d1b26;border-color:#456473;border-top-color:#83d6cf;padding:22px;border-radius:7px 25px 7px 7px;box-shadow:0 12px 40px #0002}
#event-card:not(.resolved) .audience-briefing{grid-template-columns:92px minmax(0,1fr);gap:0 18px;margin:0;padding:8px 0 24px;border-top:0;border-bottom:1px solid #3a5766;background:none}
#event-card:not(.resolved) .speaker-portrait{width:92px;height:108px;grid-row:1;align-self:start;border-radius:5px;mask-image:linear-gradient(to top,transparent,#000 6%)}
#event-card:not(.resolved) .person-name{font-size:15px;font-weight:750;color:#a8d5dd}
#event-card:not(.resolved) .person-role{font-size:10px;line-height:1.5;color:#99b4bf;margin-bottom:12px}
#event-card:not(.resolved) h2{font-size:clamp(28px,2.6vw,36px);font-weight:850;line-height:1.13;letter-spacing:-.8px;margin:0;color:#f4f5e8;text-wrap:balance}
#event-card:not(.resolved) .event-text{grid-column:1/-1;font-size:21px;font-weight:700;line-height:1.5;color:#e0ebeb;margin-top:20px}
#event-card:not(.resolved) .event-text p{margin:0 0 12px}
.decision-deck{gap:12px;margin-top:23px}
.decision-option{padding:16px 12px 14px;background:linear-gradient(135deg,#253b49,#152630 75%);border-top-color:#97b2b6}
.decision-option .choice-title{font-size:19px;font-weight:800;line-height:1.28}
.decision-option .choice-detail{font-size:14px;line-height:1.55}
.option-meta{font-size:10px;letter-spacing:.5px;gap:6px;margin-bottom:12px}
.option-number{width:23px;height:23px;flex-basis:23px;font-size:12px;color:#ffe47a}
.option-cash{gap:5px;padding:10px 0;margin-bottom:14px}
.option-cash>strong{font-size:15px}
.option-cash>span{font-size:10px}
.effect:not(.effect-money){grid-template-columns:minmax(0,1fr) auto}
.decision-option .effect{grid-template-columns:minmax(0,1fr) auto;font-size:12px;gap:5px;padding:6px 6px;line-height:1.35;border:0;border-left:2px solid transparent;border-radius:4px;background:#d1e2df07;align-items:center}
.decision-option .effect-label{font-weight:700;min-width:0;overflow-wrap:normal}
.decision-option .effect strong{font-size:19px;font-weight:900;letter-spacing:0;white-space:nowrap;line-height:1.1}
.decision-option .effect.positive{color:#c6deb8;border-left-color:#758c65}
.decision-option .effect.negative{color:#f0b6a8;border-left-color:#a16d63}
.decision-option .effect.power-effect{color:#b2d4e4;border-left-color:#6f93a4}
.decision-option .effect-columns{gap:7px}
.decision-option .effect-column{gap:5px}
.decision-option .effect-heading{font-size:9px;letter-spacing:.9px;font-weight:800}
.decision-option .strength-effects{padding-top:12px;margin-top:14px}
.decision-option .strength-list{gap:5px}
.decision-option .extra-note{font-size:12px}
.decision-option .choice-addenda:empty{display:none}

/* Gold selection, with readable independent surfaces for the effects. */
.decision-option:is(.is-selected,:focus-visible):not(.is-locked){--choice-ink:#25271f;--choice-copy:#3b4132;--choice-meta:#5b5130;--choice-gold:#554419;--choice-positive:#26382e;--choice-negative:#422d2a;--choice-power:#263b45;--choice-detail-bg:transparent;--choice-note:#514068;--choice-alert-bg:#efd8b8;--choice-alert-border:#926957;--choice-info-bg:#e8efd7;background:var(--selection-surface);border-color:#fff0a4;color:#25271f;box-shadow:0 5px 0 #071018,0 6px 0 #ab9251,0 18px 28px #0005,inset 0 1px 0 #fff9db}
.decision-option:is(.is-selected,:focus-visible):not(.is-locked) .effect{box-shadow:inset 0 1px 0 #ffffff95,0 1px 2px #4c452417}
.decision-option:is(.is-selected,:focus-visible):not(.is-locked) .effect.positive{background:linear-gradient(115deg,#f4f9e9,#e5f0d8);color:#26382e;border-left-color:#589071}
.decision-option:is(.is-selected,:focus-visible):not(.is-locked) .effect.positive strong{color:#175332}
.decision-option:is(.is-selected,:focus-visible):not(.is-locked) .effect.negative{background:linear-gradient(115deg,#fff0e9,#fbe3dc);color:#422d2a;border-left-color:#bd7466}
.decision-option:is(.is-selected,:focus-visible):not(.is-locked) .effect.negative strong{color:#922f2d}
.decision-option:is(.is-selected,:focus-visible):not(.is-locked) .effect.power-effect{background:linear-gradient(115deg,#eef7f8,#d9edf3);color:#263b45;border-left-color:#789dab}
.decision-option:is(.is-selected,:focus-visible):not(.is-locked) .effect.power-effect strong{color:#214b61}
.decision-option:is(.is-selected,:focus-visible) .option-number{background:#443d20;border-color:#77652a;color:#fff0a4}
.decision-option:is(.is-selected,:focus-visible) .strength-effects,.decision-option:is(.is-selected,:focus-visible) .choice-addenda,.decision-option:is(.is-selected,:focus-visible) .option-details{border-color:#77612640}
.decision-option.is-selected .option-select-label{color:#4b4426;border-color:#77612640}
@media(hover:hover) and (pointer:fine){
 .decision-option:not(.is-locked):hover{--choice-ink:#25271f;--choice-copy:#3b4132;--choice-meta:#5b5130;--choice-gold:#554419;--choice-positive:#26382e;--choice-negative:#422d2a;--choice-power:#263b45;--choice-detail-bg:transparent;--choice-note:#514068;--choice-alert-bg:#efd8b8;--choice-alert-border:#926957;--choice-info-bg:#e8efd7;background:var(--selection-surface);border-color:#fff0a4;color:#25271f;box-shadow:0 5px 0 #071018,0 6px 0 #ab9251,0 20px 28px #0005,inset 0 1px 0 #fff9db}
 .decision-option:not(.is-locked):hover .effect{box-shadow:inset 0 1px 0 #ffffff95,0 1px 2px #4c452417}
 .decision-option:not(.is-locked):hover .effect.positive{background:linear-gradient(115deg,#f4f9e9,#e5f0d8);color:#26382e;border-left-color:#589071}
 .decision-option:not(.is-locked):hover .effect.positive strong{color:#175332}
 .decision-option:not(.is-locked):hover .effect.negative{background:linear-gradient(115deg,#fff0e9,#fbe3dc);color:#422d2a;border-left-color:#bd7466}
 .decision-option:not(.is-locked):hover .effect.negative strong{color:#922f2d}
 .decision-option:not(.is-locked):hover .effect.power-effect{background:linear-gradient(115deg,#eef7f8,#d9edf3);color:#263b45;border-left-color:#789dab}
 .decision-option:not(.is-locked):hover .effect.power-effect strong{color:#214b61}
 .decision-option:not(.is-locked):hover .option-number{background:#443d20;border-color:#77652a;color:#fff0a4}
 .decision-option:not(.is-locked):hover .strength-effects,.decision-option:not(.is-locked):hover .choice-addenda{border-color:#77612640}
}

@media(min-width:761px) and (max-width:1200px){
 .workspace{grid-template-columns:190px minmax(0,1fr)}
 .workspace>.right-column{grid-column:1;grid-row:2}
 .decision-column{grid-column:2;grid-row:1/3}
 .contact-legend,#factions .faction{grid-template-columns:minmax(0,1fr) 28px 46px;gap:5px}
 #factions .faction-name{font-size:12px}
 #iris-panel.adviser{grid-template-columns:52px minmax(0,1fr)}
 #iris-panel .iris-tools{grid-column:2;grid-row:3;display:flex;flex-wrap:wrap;margin-top:8px}
 #iris-panel #crisis-status{grid-row:4}
 #iris-panel .iris-tool{min-width:100px}
 .resource-name{font-size:11px}.resource-value b{font-size:26px}
 .decision-option .choice-title{font-size:18px}
}
@media(min-width:1101px) and (max-width:1200px){.decision-deck{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:761px) and (max-width:1100px){.decision-deck{grid-template-columns:1fr}.decision-option .effect{font-size:14px}.decision-option .effect-heading{font-size:11px}}
@media(max-width:760px){
 .shell{padding:12px}
 .city-banner{height:150px;margin-bottom:12px}
 .control-room{gap:12px}
 .workspace,.workspace>.left-column{display:contents}
 .workspace>.right-column{display:flex;order:4;gap:12px}
 #iris-panel.adviser{order:0;grid-template-columns:48px minmax(0,1fr);gap:3px 10px;padding:10px}
 #iris-panel>img{width:48px;height:72px;grid-row:1/3}
 #iris-panel .eyebrow{font-size:11px}
 #iris-panel #advice{font-size:13px;line-height:1.45;margin-top:3px}
 #iris-panel .iris-tools{grid-column:1/-1;grid-row:4;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-top:8px}
 #iris-panel .iris-tool{min-width:0;min-height:40px;flex-wrap:wrap;justify-content:center;font-size:11px;padding:6px 3px;gap:3px 6px}
 #iris-panel .iris-tool b{font-size:12px}
 #iris-panel #crisis-status{grid-column:1/-1;grid-row:3}
 .dashboard{order:1;padding:8px}
 .dashboard-heading{margin-bottom:8px}
 .dashboard-heading h2{font-size:11px}
 #save-status{font-size:9px}
 .resource-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .resource-strip .resource{grid-template-rows:27px 27px 6px;min-height:96px;padding:9px;gap:7px}
 .resource-name{font-size:10px;min-height:0;flex-wrap:nowrap;letter-spacing:.1px}
 .resource-value b{font-size:26px}
 .resource-value small{font-size:9px;max-width:55px}
 .resource-value .credit-symbol{font-size:21px}
 .resource .bar{height:6px}
 .resource-strip .resource::before{background-size:100% 100%,auto 135%;background-position:center,70% 50%}
 .budget-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:9px 1px 1px}
 .budget-title{grid-column:1/-1;display:flex;justify-content:space-between;font-size:11px}
 .budget-summary small{font-size:9px;letter-spacing:.1px}
 .budget-summary b{font-size:11px;line-height:1.4}
 .faction-panel{order:2;padding:11px 9px}
 .faction-panel>.panel-heading{margin-bottom:8px;padding-bottom:7px}
 .faction-panel h2{font-size:11px}
 .contact-legend{display:none}
 #factions{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 #factions .faction{grid-template-columns:minmax(0,1fr) 32px;min-height:70px;gap:7px 5px;padding:9px}
 #factions .faction-name{font-size:13px}
 #factions .favor-number b{font-size:25px}
 #factions .favor-number small{display:block;font-size:7px;letter-spacing:.15px;color:#9db3bf;margin-top:2px}
 #factions .power-row{grid-column:1/-1;display:flex;gap:9px;align-items:center}
 #factions .power-row>span:first-child{display:block;font-size:9px;letter-spacing:.4px;color:#9db3bf}
 #factions .power-meter{width:auto;flex:1;height:8px;gap:4px}
 #factions .faction.inactive{min-height:46px;padding:8px}
 #factions .inactive .faction-name{font-size:11px}
 #factions .inactive .power-row{display:none}
 #audience-panel{order:3;padding:16px 12px;border-radius:6px 21px 6px 6px}
 #event-card:not(.resolved) .audience-briefing{grid-template-columns:69px minmax(0,1fr);gap:0 12px;margin:0;padding:4px 0 20px}
 #event-card:not(.resolved) .speaker-portrait{width:69px;height:86px}
 #event-card:not(.resolved) .person-name{font-size:14px}
 #event-card:not(.resolved) .person-role{font-size:9px;line-height:1.4;margin-bottom:9px}
 #event-card:not(.resolved) h2{font-size:28px;line-height:1.1;letter-spacing:-.6px}
 #event-card:not(.resolved) .event-text{font-size:20px;line-height:1.48;font-weight:700;margin-top:19px}
 .decision-deck{gap:16px;margin-top:19px}
 .decision-option{padding:0}
 .option-preview{padding:16px}
 .option-title{font-size:20px}
 .option-tradeoff{font-size:14px}
 .option-details{padding:14px 16px 16px}
 .option-price{font-size:12px}
 .option-full-copy{font-size:14px;line-height:1.5}
 .decision-option .effect{font-size:13px;line-height:1.3;padding:8px 7px;min-height:36px;gap:5px}
 .decision-option .effect strong{font-size:21px}
 .decision-option .effect-columns{gap:10px}
 .decision-option .effect-heading{font-size:10px}
 .decision-option .strength-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .decision-option .extra-note{font-size:13px}
 .right-column .agenda{padding:13px}
 .project-ledger,.project-ledger:last-child{padding:14px}
 .project-ledger .project-copy>b{font-size:16px}
 .project-ledger .project-visual{width:50%;max-width:190px}
 .project-stage-line{max-width:240px}
 .project-progress{height:6px}
 .project-ledger .project-benefit{font-size:13px}
 .project-ledger .project-cost{font-size:14px}
 .project-ledger .project-cost small,.project-ledger .lock-short{font-size:11px}
 .projects-notice{font-size:12px}
 .emergency-toggle{grid-template-columns:38px minmax(0,1fr) 16px;padding:14px;gap:13px}
 .emergency-port{width:38px;height:45px}
 .emergency-identity strong{font-size:15px}
 .emergency-identity small,.emergency-status{font-size:9px}
 .banner-status{top:14px;width:118px}
 .banner-status .chapter-caption{margin-top:8px}
 .chapter-caption>b{font-size:9px}
 .chapter-caption>span{font-size:7px}
 .has-result .result-choices{display:flex}
}
@media(max-width:360px){
 .shell{padding:8px}
 .resource-name{font-size:10px}.resource-value b{font-size:24px}
 .resource-value small{font-size:9px;max-width:45px}.metric-help{width:21px;height:21px;min-width:21px;flex-basis:21px}
 #iris-panel .iris-tool{font-size:10px;gap:3px}
 #factions .faction{padding:8px 6px}#factions .faction-name{font-size:12px}
 #event-card:not(.resolved) h2{font-size:25px}
 #event-card:not(.resolved) .event-text{font-size:19px}
 .option-preview{padding:13px}.option-details{padding:12px}
 .decision-option .effect{font-size:12px;padding:7px 5px}.decision-option .effect strong{font-size:19px}
 .option-price{font-size:11px}
}

/* 0.3.6 — fading faction scenery and quiet illustrated decision headers.
   Existing artwork is reused as decoration; layout and game information stay intact. */

#factions .faction{
 --contact-art:url('assets/city.webp');--contact-size:cover;--contact-position:50% 50%;
 isolation:isolate;background:linear-gradient(110deg,#1b303c,#10212c 80%);
 border-color:#3a5360;border-left-color:#719ba8;
}
#factions .faction::before{
 content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:3px;
 background-image:var(--contact-art);background-size:var(--contact-size);background-position:var(--contact-position);
 background-repeat:no-repeat;opacity:.55;
 -webkit-mask-image:linear-gradient(90deg,#000 0%,#000b 33%,transparent 75%);
 mask-image:linear-gradient(90deg,#000 0%,#000b 33%,transparent 75%);
}
#factions [data-faction="corp"],[data-result-faction="corp"]{--contact-art:url('assets/projects.webp');--contact-size:300% auto;--contact-position:50% 38%}
#factions [data-faction="gangs"],[data-result-faction="gangs"]{--contact-art:url('assets/metric-army.webp');--contact-size:180% auto;--contact-position:90% 36%}
#factions [data-faction="net"],[data-result-faction="net"]{--contact-art:url('assets/server.webp');--contact-position:55% 44%}
#factions [data-faction="residents"],[data-result-faction="residents"]{--contact-art:url('assets/projects.webp');--contact-size:300% auto;--contact-position:0% 60%}
#factions [data-faction="cult"],[data-result-faction="cult"]{--contact-art:url('assets/contacts.webp');--contact-size:230% auto;--contact-position:3% 33%}
#factions [data-faction="orbit"],[data-result-faction="orbit"]{--contact-art:url('assets/projects.webp');--contact-size:300% auto;--contact-position:100% 40%}
#factions [data-faction="secret"],[data-result-faction="secret"]{--contact-art:url('assets/metric-control.webp');--contact-size:160% auto;--contact-position:95% 40%}
#factions [data-faction="media"],[data-result-faction="media"]{--contact-art:url('assets/server.webp');--contact-position:15% 20%}
#factions .faction-name{color:#eff3ed;text-shadow:0 1px 4px #04101d,0 0 9px #04101d}
#factions .favor-number{padding:3px 0;border-radius:4px;background:#0c1b25a8;box-shadow:inset 0 1px 0 #fff1}
#factions .power-row{padding:4px 2px;background:#0b1923ad;border-radius:3px}
#factions .faction:hover{background:linear-gradient(110deg,#233b47,#142833 80%);border-color:#89b6bd}
#factions .faction:hover::before{opacity:.7}
#factions .hostile{border-left-color:#e1a087;background:linear-gradient(110deg,#392c32,#14222d 80%)}
#factions .plotting{border-color:#b07164}
#factions .faction.inactive{background:#12232b80;border-color:#314956}
#factions .faction.inactive::before{display:none}
#factions .inactive .faction-name{text-shadow:none;color:#b0c1c8}

/* The art occupies no grid row: it cannot enlarge cards or push their effects down. */
.decision-option{isolation:isolate;--choice-art:url('assets/city.webp');--choice-art-size:cover;--choice-art-position:75% 45%}
.choice-art-finance{--choice-art:url('assets/metric-credits.webp');--choice-art-position:85% 52%}
.choice-art-security{--choice-art:url('assets/metric-army.webp');--choice-art-position:78% 40%}
.choice-art-network{--choice-art:url('assets/server.webp');--choice-art-position:60% 45%}
.choice-art-civic{--choice-art:url('assets/metric-public.webp');--choice-art-position:85% 60%}
.choice-art-diplomacy{--choice-art:url('assets/projects.webp');--choice-art-size:300% auto;--choice-art-position:50% 45%}
.decision-option::before{
 content:"";display:block;position:absolute;top:0;left:0;right:0;width:auto;height:160px;z-index:-1;
 pointer-events:none;border-radius:7px 7px 0 0;
 background-image:linear-gradient(90deg,#162733c9 0%,#16273315 100%),var(--choice-art);
 background-size:100% 100%,var(--choice-art-size);background-position:center,var(--choice-art-position);background-repeat:no-repeat;
 opacity:.42;
 -webkit-mask-image:linear-gradient(180deg,#000 0%,#000a 45%,transparent 100%);
 mask-image:linear-gradient(180deg,#000 0%,#000a 45%,transparent 100%);
}
.decision-option .option-number{box-shadow:inset 0 1px 0 #c8f0f31a,0 2px 6px #00101c66}
.decision-option.is-locked::before{opacity:.18;filter:grayscale(.7)}
.decision-option:is(.is-selected,:focus-visible):not(.is-locked)::before{opacity:.11;filter:grayscale(1);mix-blend-mode:multiply}
@media(hover:hover) and (pointer:fine){
 .decision-option:not(.is-locked):hover::before{opacity:.11;filter:grayscale(1);mix-blend-mode:multiply}
}
@media(max-width:760px){
 #factions .faction::before{
  -webkit-mask-image:linear-gradient(90deg,#000 0%,#0009 38%,transparent 85%);
  mask-image:linear-gradient(90deg,#000 0%,#0009 38%,transparent 85%);
 }
 #factions .power-row{padding:4px 5px;background:#0b1923db}
 #factions .favor-number{padding:4px 0}
 .decision-option::before{height:145px;opacity:.35}
}

/* 0.3.7: contained faction feedback and a higher-contrast decision receipt. */
#factions .faction:not(.inactive){padding-bottom:24px}
#factions .faction .delta-lane{
 position:absolute;top:auto;bottom:5px;left:7px;right:7px;width:auto;height:14px;
 display:block;overflow:hidden;z-index:2;pointer-events:none;text-align:left;
}
#factions .delta-lane .delta-float{
 display:block;max-width:100%;font-size:10px;line-height:14px;font-weight:800;
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
 color:#9cf5ce;text-shadow:0 1px 3px #001016;background:#081722e8;border-radius:2px;padding:0 3px;
 animation:faction-change 7s ease both;
}
#factions .delta-lane .delta-float.down{color:#ffb5a5}
@keyframes faction-change{0%{opacity:0}8%,70%{opacity:1}100%{opacity:0}}
.reduce-motion #factions .delta-float{animation:none}
@media(prefers-reduced-motion:reduce){#factions .delta-lane .delta-float{animation:none}}

.resolution{
 background:radial-gradient(ellipse at 100% 0,#34245a45,transparent 58%),linear-gradient(130deg,#122c3a,#101e30 70%);
 border:1px solid #426e86;border-top-color:#65b5c5;border-left:3px solid #67e3df;
 box-shadow:inset 0 1px 0 #bceeff0c,0 10px 25px #020b1626;
 padding:22px;border-radius:6px 16px 6px 6px;
}
.resolution>.eyebrow{color:#78eeea;letter-spacing:1.5px}
.resolution h3{color:#f6f5e9;font-weight:850;font-size:25px;line-height:1.25}
.resolution p{color:#dbe7ef}
.resolution>.effects{max-width:none;width:100%;margin-top:20px}
.resolution .effect-layout{width:100%}
.resolution .effect-columns{gap:14px}
.resolution .effect-heading{color:#b7d4e2;font-weight:800;letter-spacing:.8px}
.resolution .effect{
 padding:9px 10px;border:1px solid transparent;border-left:3px solid transparent;
 border-radius:5px;font-size:14px;line-height:1.4;min-width:0;
 box-shadow:inset 0 1px 0 #ffffff08;
}
.resolution .effect .effect-label{font-weight:750}
.resolution .effect strong{font-size:21px;font-weight:900}
.resolution .effect.positive{color:#c3f4dc;background:linear-gradient(110deg,#17443c,#183536);border-color:#3a80624f;border-left-color:#64e4a6}
.resolution .effect.positive strong{color:#8fffc3}
.resolution .effect.negative{color:#ffd2c7;background:linear-gradient(110deg,#482b3a,#342635);border-color:#ba66624f;border-left-color:#ff917d}
.resolution .effect.negative strong{color:#ffad99}
.resolution .effect.power-effect{color:#c2e9ff;background:linear-gradient(110deg,#1b3e60,#1c304c);border-color:#5b9fc74f;border-left-color:#7fcaff}
.resolution .effect.power-effect strong{color:#97dfff}
.resolution .effect.effect-money{border-color:#c8a95c90;border-left-color:#f0cf70}
.resolution .strength-effects{border-top-color:#5c86a24d;margin-top:14px;padding-top:12px}
.resolution .clue-receipt{
 background:linear-gradient(110deg,#3d285d,#282442);border-color:#8961b7;border-left:3px solid #ca9aff;
 box-shadow:inset 0 1px 0 #ddbaff13;color:#eee1ff;
}
.resolution .clue-receipt:hover{background:linear-gradient(110deg,#503373,#32284f);border-color:#bf91ed}
.resolution .clue-receipt small{color:#d8b7ff}
.resolution .clue-receipt .clue-icon{color:#d9b5ff}
.resolution>.extra-note{color:#9bb7cc}
.result-choices .primary{background:var(--selection-surface);color:#282717;border:1px solid #ffe899;box-shadow:inset 0 1px 0 #fff4cb55,0 3px 0 #79612955}
.result-choices .primary:hover{background:#ffeb91;box-shadow:inset 0 1px 0 #fff7d4,0 3px 0 #79612980}
@media(max-width:760px){
 #factions .faction:not(.inactive){padding-bottom:24px}
 #factions .faction .delta-lane{left:5px;right:5px}
 #factions .delta-lane .delta-float{font-size:9px}
 .resolution{padding:15px}
 .resolution h3{font-size:22px}
 .resolution .effect-columns{gap:8px}
 .resolution .effect{padding:8px 6px;font-size:12px}
 .resolution .effect strong{font-size:19px}
 .resolution .effect.effect-money strong{font-size:13px}
}

/* 0.3.8 — illustrated choices and a selected-choice receipt. */
.choice-art-corporate{--choice-art:url('assets/choice-corporate.webp')}
.choice-art-industry{--choice-art:url('assets/choice-industry.webp')}
.choice-art-network{--choice-art:url('assets/choice-network.webp')}
.resolution.choice-art-finance{--choice-art:url('assets/metric-credits.webp')}
.resolution.choice-art-security{--choice-art:url('assets/metric-army.webp')}
.resolution.choice-art-civic{--choice-art:url('assets/metric-public.webp')}
.resolution.choice-art-diplomacy{--choice-art:url('assets/choice-corporate.webp')}
.resolution.choice-art-city{--choice-art:url('assets/city.webp')}
#choices .choice-art-diplomacy{--choice-art:url('assets/choice-corporate.webp');--choice-art-size:cover;--choice-art-position:center}
#choices .choice-art-corporate,#choices .choice-art-network,#choices .choice-art-industry{--choice-art-size:cover;--choice-art-position:center}
#choices .decision-option{padding:0 12px 14px;background:linear-gradient(160deg,#172e40,#0c1b2b 78%);border:1px solid #36576b;border-top:1px solid #638497;border-radius:7px;overflow:hidden;color:#e9f4fb}
#choices .decision-option::before{display:none}
#choices .choice-scene{position:relative;height:124px;min-height:124px;margin:0 -12px 15px;background-image:linear-gradient(0deg,#13293b,transparent 42%),var(--choice-art);background-size:100% 100%,var(--choice-art-size,cover);background-position:center,var(--choice-art-position,center);border-bottom:1px solid #6ec9d12b}
#choices .selected-marker{position:absolute;right:0;top:0;background:#68eeeb;color:#082533;padding:6px 10px;font-size:10px;font-weight:900;letter-spacing:1px;opacity:0;transition:opacity .15s}
#choices .is-selected .selected-marker{opacity:1}
#choices .is-locked .choice-scene{filter:grayscale(.8);opacity:.55}
#choices .option-meta{font-size:10px;letter-spacing:.7px;margin-bottom:10px}
#choices .option-number{width:23px;height:23px;flex-basis:23px;font-size:12px}
#choices .choice-title{font-size:19px;line-height:1.25;font-weight:850}
#choices .choice-detail{font-size:14px;line-height:1.5}
#choices .effect-columns{grid-template-columns:1fr;gap:12px}
#choices .effect-heading{font-size:10px;letter-spacing:1px}
#choices .effect{padding:7px 8px;font-size:12px}
#choices .effect strong{font-size:19px}
#choices .decision-option .effect.positive{background:linear-gradient(100deg,#173e38,#122d30);border-left-color:#66d6a1;color:#c2f1d9;box-shadow:inset 0 1px #ffffff06}
#choices .decision-option .effect.positive strong{color:#8ef4be}
#choices .decision-option .effect.negative{background:linear-gradient(100deg,#422c38,#2c2632);border-left-color:#ec907e;color:#ffd0c5;box-shadow:inset 0 1px #ffffff06}
#choices .decision-option .effect.negative strong{color:#ffab96}
#choices .decision-option .effect.power-effect{background:linear-gradient(100deg,#1b3a52,#152b43);border-left-color:#69b4df;color:#c1e3fc;box-shadow:inset 0 1px #ffffff06}
#choices .decision-option .effect.power-effect strong{color:#8ed6ff}
#choices .decision-option:is(.is-selected,:focus-visible):not(.is-locked){--choice-ink:#f3fbff;--choice-copy:#cadce8;--choice-meta:#a8cad8;--choice-gold:#ffe391;--choice-note:#d6b9ff;--choice-detail-bg:#0b1a2a;--choice-alert-bg:#422d36;--choice-alert-border:#d58873;--choice-info-bg:#193e43;background:linear-gradient(145deg,#1a3747,#0d2234);border-color:#66eeed;color:#f3fbff;box-shadow:0 0 0 1px #66eeed,0 0 24px #29c6d128,0 10px 24px #0006}
#choices .decision-option .option-number{background:#0a1a29;border-color:#527c8b;color:#b1edeb}
#choices .decision-option .strength-effects,#choices .decision-option .choice-addenda,#choices .decision-option .option-details{border-color:#527d923d}
#choices .decision-option.is-selected .option-select-label{color:#7cf0e6;border-color:#527d9266}
@media(hover:hover) and (pointer:fine){
 #choices .decision-option:not(.is-locked):hover{--choice-ink:#f3fbff;--choice-copy:#cadce8;--choice-meta:#a8cad8;--choice-gold:#ffe391;--choice-note:#d6b9ff;--choice-detail-bg:#0b1a2a;--choice-alert-bg:#422d36;--choice-alert-border:#d58873;--choice-info-bg:#193e43;background:linear-gradient(145deg,#1a3747,#0d2234);border-color:#66eeed;color:#f3fbff;box-shadow:0 0 0 1px #66eeed,0 0 24px #29c6d128,0 10px 24px #0006}
}
@supports(grid-template-rows:subgrid){@media(min-width:1101px){#choices .decision-option{grid-row:span 7}#choices .choice-scene{align-self:start}}}
/* The chosen illustration fades into the text, keeping the result visually connected. */
#resolution{padding:0 18px 18px;border-color:#398497;border-left:3px solid #65eeed;border-radius:7px;background:linear-gradient(135deg,#112d40,#0b1829);box-shadow:0 0 0 1px #72ddd514,0 0 24px #20bdc313}
#resolution .resolution-heading{position:relative;isolation:isolate;margin:0 -18px 15px;padding:22px 20px 18px;overflow:hidden;border-bottom:1px solid #5794a34d;min-height:160px;background:#10293a}
#resolution .resolution-heading::before{content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(90deg,#10293a 8%,#10293ae6 40%,#10293a33 100%),linear-gradient(0deg,#10293a,transparent 90%),var(--choice-art);background-size:cover;background-position:center;opacity:.85}
#resolution .resolution-heading>.eyebrow{display:inline-block;color:#7affeb;background:#083039d9;border:1px solid #458c99;padding:4px 8px;border-radius:2px;font-size:10px;letter-spacing:1.4px}
#resolution h3{font-size:clamp(23px,2vw,30px);font-weight:850;line-height:1.2;margin:14px 0 12px;max-width:27ch;text-shadow:0 2px 10px #02111f}
#resolution #result-text{font-size:16px;line-height:1.6;max-width:64ch;margin:0;color:#dfedf6;text-shadow:0 1px 5px #051726}
.receipt-effects h4{font-size:10px;letter-spacing:1.2px;color:#9cc2d3;margin:18px 0 9px;font-weight:800}
.receipt-row{--receipt-color:#8cecb6;--receipt-tint:#143c37;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;margin:5px 0;padding:10px 12px;border:1px solid #45687a3d;border-left:2px solid var(--receipt-color);border-radius:3px;background:linear-gradient(90deg,#152d3d 30%,var(--receipt-tint));color:#e4eff4}
.receipt-row .receipt-label{display:flex;flex-direction:column;gap:3px;min-width:0}
.receipt-row b{font-size:14px;font-weight:750}
.receipt-row small{font-size:10px;color:#9ab5c6}
.receipt-row strong{color:var(--receipt-color);font-size:24px;font-weight:900;min-width:76px;text-align:right;border-left:1px solid #81a8bc30;padding-left:15px;font-variant-numeric:tabular-nums}
.receipt-cash{--receipt-color:#ffe08a;--receipt-tint:#3c3629}
.receipt-cash strong{font-size:17px}
.receipt-loss{--receipt-color:#ffac98;--receipt-tint:#3e2635}
.receipt-power{--receipt-color:#91d4ff;--receipt-tint:#1b3656}
#resolution .clue-receipt{margin-top:16px}
@media(max-width:760px){
 #choices .decision-option{padding:0}
 #choices .choice-scene{height:104px;min-height:104px;margin:0;background-position:center,center 45%;border-radius:5px 5px 0 0}
 #choices .option-preview{padding:13px 14px}
 #choices .option-details{padding:14px}
 #choices .effect-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #choices .effect{font-size:12px;padding:7px 6px}
 #resolution{padding:0 12px 14px}
 #resolution .resolution-heading{margin:0 -12px 14px;padding:17px 14px;min-height:0}
 #resolution .resolution-heading::before{background-image:linear-gradient(90deg,#10293af2,#10293abf),var(--choice-art)}
 #resolution h3{font-size:24px}
 #resolution #result-text{font-size:16px}
 .receipt-row{padding:9px 10px;gap:8px}
 .receipt-row b{font-size:13px}
 .receipt-row strong{font-size:22px;min-width:48px;padding-left:10px}
 .receipt-cash strong{font-size:14px}
}
@media(prefers-reduced-motion:reduce){#choices .selected-marker{transition:none}}
#event-card .audience-briefing{position:relative;isolation:isolate;--briefing-art:url('assets/city.webp')}
#event-card .briefing-corp{--briefing-art:url('assets/choice-corporate.webp')}
#event-card .briefing-net,#event-card .briefing-secret{--briefing-art:url('assets/choice-network.webp')}
#event-card .briefing-army,#event-card .briefing-gangs{--briefing-art:url('assets/metric-army.webp')}
#event-card .audience-briefing::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#102534f5 20%,#102534b3 65%,#10253444),var(--briefing-art) center/cover;opacity:.7}
#event-card .audience-briefing h2{color:#f7fbff;text-shadow:0 2px 8px #00111f}
@media(max-width:760px){#event-card .audience-briefing::before{opacity:.4}}

#choices .illustrated-choice{--choice-art-size:cover;--choice-art-position:center}

.ending-illustration{display:block;width:100%;height:auto;aspect-ratio:3;object-fit:cover;max-height:240px;margin:14px 0 20px;border:1px solid #398497;border-radius:7px}

/* 0.4: weekly operating balance and unmistakably locked choices. */
#budget-summary{margin:8px 0 0;grid-column:1/-1;width:100%}
.weekly-flow{display:flex;align-items:center;justify-content:space-between;gap:5px;width:100%;border:0;border-top:1px solid #759b9c55;background:#071923b8;color:#c3d4d8;padding:8px 4px;font:inherit;font-size:11px;text-align:left;cursor:pointer;border-radius:0}
.weekly-flow b{font-size:12px;color:#b4ded6}.weekly-flow.deficit b{color:#ffb19b}.weekly-flow:focus-visible{outline:2px solid #ffda66}
#choices .decision-option.is-locked{opacity:1;transform:none;box-shadow:none;border:1px dashed #72818a;background:repeating-linear-gradient(135deg,#16202b 0px,#16202b 10px,#1e2933 10px,#1e2933 12px);color:#abb4bd;cursor:not-allowed}
#choices .is-locked .choice-scene{filter:grayscale(1);opacity:.38}
#choices .is-locked .choice-title,#choices .is-locked .option-title{color:#b2bbc2}
#choices .is-locked .choice-detail,#choices .is-locked .option-tradeoff,#choices .is-locked .option-full-copy{color:#9facb7}
#choices .is-locked .option-meta,#choices .is-locked .option-cash,#choices .is-locked .option-price,#choices .is-locked .choice-addenda{filter:grayscale(1);color:#a7b0b7}
#choices .is-locked .choice-lock,#choices .is-locked .option-unavailable{display:block;background:#513327;color:#ffe3a0;border-left:3px solid #ffc45e;padding:10px;font-size:12px;font-weight:800;line-height:1.5;filter:none}
#choices .is-locked .option-select-label{color:#bcc6cf;background:transparent}
#choices .is-locked:hover:before{opacity:0}
#modal .close{min-width:46px;min-height:46px;background:#173b48;border:1px solid #7eb5bf;color:#fff;font-size:30px;opacity:1;z-index:10}
.project-back{margin-bottom:18px;min-height:44px}
.commander-avatar{object-fit:cover;object-position:center; background:none}
.clue-excerpt{display:block;font-size:14px;font-weight:400;line-height:1.6;margin-top:8px;color:#d5dee9}
.clue-links{border-left:3px solid #a5b9ed;background:#1a2334;padding:15px;margin:18px 0}.clue-links h3{margin:0 0 10px}.clue-links p{font-size:14px}
@media(max-width:760px){.weekly-flow{flex-wrap:wrap;font-size:10px}.weekly-flow b{font-size:11px}.resource{min-height:0}#choices .is-locked .option-unavailable{font-size:11px}.project-back{width:100%}}

/* 0.4.1: read the choice, open its terms, then confirm. */
#choices.decision-deck{align-items:start;row-gap:16px}
#choices .decision-option{display:flex;grid-row:auto;flex-direction:column;padding:0 12px 12px;margin-bottom:0}
#choices .option-desktop{display:none}
#choices .option-preview{display:block;width:100%;padding:0;border:0;background:none;text-align:left;color:var(--choice-ink,#edf3e8)}
#choices .option-title{display:block;font-size:20px;line-height:1.25;font-weight:800;margin-bottom:10px}
#choices .option-tradeoff{display:block;font-size:14px;line-height:1.55;color:var(--choice-copy,#bdcfd5)}
#choices .option-select-label{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:32px;margin-top:12px;padding-top:8px;border-top:1px solid #527d924d;color:var(--choice-meta,#a8cad8);font-size:12px;font-weight:750}
#choices .option-select-label>b{font-size:20px}
#choices .option-details{display:flex;flex-direction:column;padding:14px 0 0;margin-top:12px;border-top:1px solid #527d9266}
#choices .option-details[hidden]{display:none}
#choices .option-full-copy{display:block;font-size:14px;line-height:1.55;margin:0 0 12px;color:var(--choice-copy,#bdcfd5)}
#choices .option-cash{display:flex;margin-bottom:8px;padding:9px 0}
#choices .choice-addenda{margin-top:6px;padding-top:8px}
#choices .option-notes:empty{display:none}
#choices .option-unavailable{display:block;margin-top:10px}
#choices .decision-option.is-locked{cursor:help}
/* Compact receipt: every actual change remains visible. */
.receipt-effects .receipt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px}
.receipt-effects h4{margin:12px 0 6px}
.receipt-effects .receipt-row{margin:0;padding:6px 8px;gap:6px;border-left-width:2px}
.receipt-effects .receipt-label{gap:0}
.receipt-effects .receipt-row b{font-size:12px;line-height:1.35}
.receipt-effects .receipt-row small{font-size:9px}
.receipt-effects .receipt-row strong{font-size:17px;min-width:30px;padding-left:6px}
.receipt-effects .receipt-cash{grid-column:1/-1}
.receipt-effects .receipt-cash strong{font-size:14px}
/* Projects: title, progress and price form one small overview. */
#projects{gap:7px}
#projects .project-ledger{padding:10px 11px}
#projects .project-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;align-items:center}
#projects .project-copy>b{grid-column:1/-1;font-size:14px}
#projects .project-stage-line{margin:0;gap:5px}
#projects .project-stage-line>span:first-child{display:none}
#projects .project-cost{margin:0;text-align:right;font-size:12px}
#projects .project-cost small{display:none}
#projects .project-benefit{grid-column:1/-1;grid-row:3;font-size:11px;margin:0}
#projects .project-benefit>span{display:none}
#projects .lock-short{grid-column:1/-1;font-size:10px;margin:0;padding-top:5px}
#projects .project-complete{font-size:11px}
.project-hero{height:145px}
.project-detail .project-back{margin-bottom:12px}
.project-detail .project-summary-grid{gap:8px}
.project-detail .project-summary-grid>section{padding:12px}
.project-detail .project-summary-grid h3{font-size:20px;margin:7px 0}
.project-detail .project-summary-grid p,.project-detail .project-price-note,.project-detail .active-bonus{font-size:13px;line-height:1.5;margin:8px 0}
.project-detail .requirements{gap:5px}
.project-detail .requirements li{padding:7px 9px;font-size:12px}
.project-detail .project-stages{margin:12px 0;gap:5px}
.project-detail .project-stages li{padding:7px;font-size:11px}
.project-detail .availability{padding:9px;font-size:13px}
@media(max-width:760px){
 #choices .option-title{font-size:21px}
 #choices .option-tradeoff,#choices .option-full-copy{font-size:15px}
 #choices .option-select-label{min-height:36px;font-size:13px}
 .receipt-effects .receipt-grid{gap:5px}
 .receipt-effects .receipt-row{padding:6px}
 .receipt-effects .receipt-row b{font-size:11px}
 .project-detail .project-summary-grid{grid-template-columns:1fr}
}
@media(max-width:360px){.receipt-effects .receipt-grid{grid-template-columns:1fr}}

/* Keep scene width after replacing the old subgrid with flex cards. */
#choices .decision-option .choice-scene{align-self:stretch;flex-shrink:0}
/* 0.4.2: a project is one investment sheet, not a stack of panels. */
.project-sheet .project-hero{height:136px;border-bottom:1px solid #548c8a55}
.project-sheet .project-hero>div{left:26px;bottom:19px}
.project-sheet .project-hero h2{font-size:30px;margin:5px 0 0}
.project-sheet-body{padding:18px 26px 0}
.project-route{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;list-style:none;padding:0;margin:0 0 16px}
.project-route li{display:flex;align-items:center;gap:8px;border-bottom:2px solid #354b56;padding:0 0 10px;color:#a2b6be;font-size:12px;line-height:1.35}
.project-route li>span{display:grid;place-items:center;flex-shrink:0;width:28px;height:28px;border:1px solid #526774;border-radius:50%;font-size:11px}
.project-route li.current{color:#f4df9e;border-color:#e7cd83}
.project-route li.current>span{background:#3c3929;border-color:#bda763}
.project-route li.done{color:#a2e4c8;border-color:#66a892}
.project-purpose{font-size:14px;line-height:1.6;color:#c2d3d9;margin:0 0 16px}
.investment-overview{display:grid;grid-template-columns:.85fr 1.15fr;border:1px solid #586f7055;background:linear-gradient(110deg,#253337,#162f33);border-radius:5px;overflow:hidden}
.investment-overview section{padding:15px 16px;min-width:0}
.investment-overview section+section{border-left:1px solid #6d85814d;background:#5d895315}
.investment-overview .eyebrow{font-size:9px;letter-spacing:1px;color:#afcac9}
.investment-overview strong{display:block;font-size:20px;line-height:1.35;color:#f4df9e;margin:7px 0}
.investment-overview section+section strong{color:#c4e9b4;font-size:18px}
.investment-overview small{display:block;font-size:11px;line-height:1.5;color:#aabfc2}
.project-section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:18px 0 8px}
.project-section-heading h3{font-size:14px;margin:0;color:#d8e6ea}
.project-section-heading>span{font-size:11px;color:#90b6b8}
.project-sheet .requirements{display:block;margin:0;padding:0;list-style:none;border-top:1px solid #425c624d}
.project-sheet .requirements li{display:grid;grid-template-columns:16px minmax(0,1fr) auto;gap:9px;align-items:baseline;border:0;border-bottom:1px solid #425c624d;border-radius:0;background:none;padding:9px 0;font-size:12px}
.project-sheet .requirements li b{font-size:12px;font-weight:600}
.project-sheet .requirements li small{grid-column:auto;font-size:11px;max-width:125px;text-align:right;color:#afc3c9}
.project-sheet .requirements li.met>span{color:#badea2}
.project-sheet .requirements li.unmet{color:#f4b49e}
.project-immediate{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 0}
.project-immediate>.eyebrow{font-size:9px;letter-spacing:.7px;color:#9ab5b9}
.project-immediate>div{display:flex;flex-wrap:wrap;gap:6px}
.project-gain{display:inline-flex;gap:8px;align-items:center;padding:5px 8px;background:#6587641a;border:1px solid #72977844;border-radius:4px;font-size:11px;color:#c2d9bf}
.project-gain b{font-size:13px;color:#c6eba7}
.project-gain.loss{color:#f0b4a1;border-color:#ab716c55}.project-gain.loss b{color:#f0b4a1}
.project-more{border-top:1px solid #425c6266;margin-top:16px}
.project-more summary{cursor:pointer;padding:13px 0;color:#abc2c7;font-size:12px;font-weight:650}
.project-more-body{padding-bottom:14px}.project-more-body p,.project-protection{font-size:13px;line-height:1.6;color:#b8cbd1}
.project-more-body h3{font-size:14px;margin:18px 0 8px}
.project-sheet-footer{display:block;margin:0;padding:12px 26px 18px;border-top:1px solid #526c6c55;background:#08182099;font-size:12px}
.project-sheet-footer>div{display:flex;justify-content:space-between;align-items:center;gap:12px}
.project-sheet-footer .project-back{margin:0;min-height:42px}
.project-sheet-footer button{font-size:13px;padding:11px 14px}
.project-sheet-footer .investment-status{font-size:12px;line-height:1.5;margin:0 0 10px;color:#b2cdaf}
.project-sheet-footer .investment-status.blocked{color:#edb399}
.project-sheet-footer .primary:disabled{background:#33413c;color:#899b91;opacity:1;border:1px solid #4b5c51;cursor:not-allowed}
.project-finished{color:#bfdca9}
@media(max-width:760px){
 .project-sheet .project-hero{height:120px}
 .project-sheet .project-hero>div{left:18px;right:50px;bottom:15px}
 .project-sheet .project-hero h2{font-size:25px}
 .project-sheet-body{padding:16px 16px 0}
 .project-route{gap:6px}.project-route li{display:block;font-size:11px}.project-route li>span{margin-bottom:7px;width:25px;height:25px}
 .project-purpose{font-size:13px;margin-bottom:13px}
 .investment-overview{grid-template-columns:1fr}
 .investment-overview section{padding:11px 13px}
 .investment-overview section+section{border-left:0;border-top:1px solid #6d85814d}
 .investment-overview strong{font-size:20px;margin:4px 0}
 .investment-overview section+section strong{font-size:17px}
 .project-sheet .requirements li{gap:5px;font-size:11px;grid-template-columns:14px minmax(0,1fr) auto}
 .project-sheet .requirements li b{font-size:11px}.project-sheet .requirements li small{font-size:10px;max-width:85px}
 .project-sheet-footer{padding:12px 16px 16px}
 .project-sheet-footer .project-back{width:auto}
 .project-sheet-footer button{font-size:12px;padding:11px}
 .project-sheet-footer>div{gap:8px}
}
/* 0.4.3: benefits together; a separate checklist with trailing status. */
.investment-overview .project-immediate{display:block;margin:12px 0 0;padding-top:10px;border-top:1px solid #85a08140}
.investment-overview .project-immediate>.eyebrow{display:block;margin-bottom:7px}
.project-requirements{margin:22px 0 16px;padding:15px 16px 5px;border:1px solid #607f8b80;border-top:3px solid #7eafbb;border-radius:5px;background:#08192499;box-shadow:0 4px 14px #0002}
.project-requirements .project-section-heading{margin:0 0 12px}
.project-requirements .project-section-heading h3{font-size:15px;color:#e4f0f2}
.project-sheet .requirements li{grid-template-columns:minmax(0,1fr) auto 26px;align-items:center;gap:12px;padding:10px 0}
.project-sheet .requirements .requirement-status{display:grid;place-items:center;width:26px;height:26px;border:1px solid #86b990;border-radius:5px;background:#294f3b;color:#cdffce}
.project-sheet .requirements .requirement-status svg{width:20px;height:20px}
.project-sheet .requirements .unmet .requirement-status{background:#4c2b2b;border-color:#cb8978;color:#ffd6c7}
@media(max-width:760px){
 .project-requirements{padding:13px 11px 4px;margin-top:18px}
 .project-sheet .requirements li{grid-template-columns:minmax(0,1fr) auto 24px;gap:7px}
 .project-sheet .requirements li small{max-width:72px}
 .project-sheet .requirements .requirement-status{width:24px;height:24px}
}
/* 0.4.4: readable project copy and stage labels. */
.project-sheet .project-route li{font-size:14px;line-height:1.4;color:#c0d0d6}
.project-sheet .project-route li b{font-weight:750}
.project-sheet .project-route li.current{color:#f4df9e}
.project-sheet .project-route li.done{color:#a2e4c8}
.project-sheet .project-purpose{font-size:16px;font-weight:600;line-height:1.6;color:#dce8ec}
.project-sheet .investment-overview small{font-size:12px}
.project-sheet .requirements li b{font-size:13px}
.project-sheet .project-gain{font-size:12px}
@media(max-width:760px){
 .project-sheet .project-route li{font-size:13px}
 .project-sheet .project-purpose{font-size:15px}
 .project-sheet .requirements li b{font-size:12px}
}
/* 0.4.5: section hierarchy, two-part briefing, unified outcome ledger. */
.project-requirements .project-section-heading{padding-bottom:13px;border-bottom:1px solid #6d99a15e;margin-bottom:0}
.project-requirements .project-section-heading h3{font-size:21px;font-weight:850;color:#ffe3a0;letter-spacing:-.3px}
.project-requirements .project-section-heading h3::before{content:"";display:inline-block;width:5px;height:18px;background:#edcd81;margin-right:10px;vertical-align:-2px;border-radius:2px}
.project-requirements .requirements{border-top:0}
.intro-progress{display:flex;gap:16px;border-bottom:1px solid #466873;margin:18px 0 22px}
.intro-progress span{flex:1;font-size:10px;font-weight:750;color:#91abb4;padding-bottom:10px;border-bottom:3px solid transparent}
.intro-progress span.active{color:#f4dc95;border-bottom-color:#f4dc95}
.intro-paged .briefing-copy{padding:28px 26px 0}
.intro-paged .briefing-iris{min-height:0;align-self:stretch}
.intro-paged .briefing-iris img{object-position:50% 20%}
.intro-paged .briefing-section{border-top:1px solid #486b7055;padding-top:16px}
.intro-paged .briefing-section>b{display:inline-block;font-size:18px;color:#efdfa5;margin-bottom:6px}
.intro-navigation{position:sticky;bottom:0;display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:20px -26px 0;padding:16px 26px;background:#10232bf5;border-top:1px solid #486970;z-index:2}
.intro-navigation .primary{flex:1}.intro-navigation .text-button{width:100%;font-size:12px;text-align:left;padding:0;color:#a8c0c6}
.outcome-ledger{margin-top:18px;border:1px solid #496c7c;border-radius:6px;background:linear-gradient(130deg,#142936,#0c1d29);overflow:hidden}
.outcome-caption{display:flex;justify-content:space-between;gap:12px;padding:11px 15px;border-bottom:1px solid #496c7c70;background:#1b3642;font-size:9px;font-weight:800;letter-spacing:1px;color:#a1c2c9}
.outcome-caption>span:first-child{color:#d3e4e7}
.outcome-money{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;background:linear-gradient(110deg,#51493142,#1c3033);border-bottom:1px solid #c6ac7155}
.outcome-money small{display:block;font-size:9px;letter-spacing:1px;color:#c2b691;margin-bottom:5px}
.outcome-money b{font-size:15px;color:#eee2c0}.outcome-money strong{font-size:23px;color:#f5d781;font-variant-numeric:tabular-nums}.outcome-money.loss strong{color:#ffc0aa}
.receipt-effects .outcome-ledger h4{font-size:12px;letter-spacing:.4px;text-transform:none;color:#c4d8df;margin:0 0 11px;font-weight:800}
.outcome-city,.outcome-blocs{padding:15px 16px}
.outcome-city+.outcome-blocs{border-top:1px solid #47637370}
.outcome-city>div{display:flex;gap:8px;flex-wrap:wrap}
.outcome-city>div>div{flex:1;min-width:125px;display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid #4563737a;border-radius:4px;padding:8px 10px;background:#223a4440}
.outcome-city>div>div>span:first-child{font-size:12px;color:#c5d7dd;font-weight:600}
.change-value{font-size:17px;font-weight:850;font-variant-numeric:tabular-nums;white-space:nowrap}.change-value.gain{color:#a7e5be}.change-value.loss{color:#f1ad9c}.change-value.power-change{color:#9ecfff}
.outcome-blocs table{border-collapse:collapse;width:100%;table-layout:fixed}
.outcome-blocs thead th{font-size:10px;font-weight:650;color:#89a8b6;border-bottom:1px solid #496775;padding:0 8px 8px;text-align:right;width:75px}
.outcome-blocs thead th:first-child{width:auto;text-align:left;padding-left:0}
.outcome-blocs tbody th{font-size:13px;font-weight:650;text-align:left;color:#d3e1e5;padding:10px 8px 10px 0}
.outcome-blocs td{text-align:right;padding:8px}
.outcome-blocs tr+tr{border-top:1px solid #3c56634d}
.outcome-blocs td:last-child{background:#1b324933}
.unchanged{color:#627f8b;font-size:13px}
@media(max-width:760px){
 .project-requirements .project-section-heading h3{font-size:19px}
 .project-requirements .project-section-heading>span{white-space:nowrap;font-size:10px}
 .intro-paged .briefing-iris{height:150px}
 .intro-paged .briefing-iris img{object-position:center 28%}
 .intro-paged .briefing-copy{padding:16px 18px 0}
 .intro-progress{gap:10px;margin:12px 0 18px}.intro-progress span{font-size:9px}
 .intro-navigation{margin:18px -18px 0;padding:12px 18px}.intro-navigation button{font-size:13px}
 .outcome-money{padding:12px}.outcome-money strong{font-size:18px}
 .outcome-caption{padding:10px 12px;font-size:8px;letter-spacing:.5px}
 .outcome-city,.outcome-blocs{padding:13px 12px}
 .outcome-city>div>div{min-width:110px;padding:7px}
 .outcome-blocs thead th{width:59px;padding-right:4px}.outcome-blocs td{padding-right:4px}
 .outcome-blocs tbody th{font-size:12px}.change-value{font-size:16px}
}

/* 0.4.6 — shared faction scenery in the decision receipt. */
.outcome-ledger{border-color:#547684;border-radius:8px;box-shadow:0 8px 25px #020c1733}
.outcome-caption{background:linear-gradient(100deg,#27434c,#142c3a);padding-block:12px}
.receipt-effects .outcome-ledger h4{font-size:14px;color:#e2eceb;letter-spacing:.2px}
.outcome-blocs table{border-collapse:separate;border-spacing:0 6px}
.outcome-blocs thead th{border:0;padding-bottom:2px}
.outcome-ledger{--contact-art:url('assets/city.webp');--contact-size:cover;--contact-position:50% 50%}
.outcome-blocs tbody th,.outcome-blocs tbody td{background:#1c3541;border-top:1px solid #47677588;border-bottom:1px solid #47677588;padding:0 12px;height:58px}
.outcome-blocs tbody th{padding-left:0;border-left:1px solid #547887;border-radius:5px 0 0 5px}
.outcome-blocs tbody td:last-child{background:#1c344b;border-right:1px solid #47677588;border-radius:0 5px 5px 0}
.outcome-bloc-name{display:flex;align-items:center;gap:14px;min-width:0;font-size:15px;line-height:1.25}
.outcome-bloc-art{display:block;flex:0 0 102px;height:58px;border-radius:4px 0 0 4px;background-image:var(--contact-art);background-size:var(--contact-size);background-position:var(--contact-position);background-repeat:no-repeat;mask-image:linear-gradient(90deg,#000 65%,transparent)}
.outcome-blocs .change-value{display:inline-block;min-width:36px;text-align:center;padding:5px 6px;border-radius:4px;font-size:19px;background:#0b1e2b88}
.outcome-blocs .change-value.gain{background:#20574677}.outcome-blocs .change-value.loss{background:#623b3977}
.outcome-money{background:linear-gradient(100deg,#473f25db,#1c3033ed),url('assets/metric-credits.webp') center/cover}
@media(max-width:760px){
 .outcome-blocs tbody th,.outcome-blocs tbody td{height:52px;padding-right:5px;padding-left:5px}
 .outcome-blocs tbody th{padding-left:0}
 .outcome-bloc-name{gap:7px;font-size:12px;overflow-wrap:anywhere}
 .outcome-bloc-art{flex-basis:54px;height:52px}
 .outcome-blocs .change-value{font-size:16px;min-width:28px;padding:4px}
 .outcome-blocs thead th{width:49px}
}

/* Reviewable interface prototype on the unchanged 0.5.0 simulation. */
:root{--ui-ink:#edf2ec;--ui-muted:#b2c5ca;--ui-line:#385662;--ui-gold:#ffe08a;--ui-status-height:150px}
html{scroll-padding-top:calc(var(--ui-status-height) + 16px)}
body{color:var(--ui-ink)}
.shell{max-width:1660px;padding:20px 24px}
.topbar{padding:0 0 16px;margin-bottom:0}
.city-banner{height:116px;border-radius:10px;margin-bottom:18px}
.city-caption{bottom:18px;left:24px}.city-caption h1{font-size:34px;letter-spacing:5px;margin:3px 0}.city-caption p{display:none}
.banner-status{top:12px;right:22px;bottom:12px;width:210px;padding:0;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:0 12px;text-align:right}
.banner-status>.eyebrow{grid-column:2;font-size:10px}.banner-status #week{grid-column:1;grid-row:1/4;font-size:48px;line-height:1}.banner-status>span:not(.eyebrow){grid-column:2;font-size:10px}.banner-status .chapter-caption{grid-column:2;margin:0;padding:0;border:0}.chapter-caption>span{display:none}.chapter-caption>b{font-size:10px}
.dashboard{order:-1;position:sticky;top:8px;z-index:12;padding:12px;border-radius:10px;background:#0e2029fa;box-shadow:0 7px 20px #0005}
.dashboard-heading{margin-bottom:8px}.dashboard-heading h2{font-size:12px}.dashboard-heading #save-status{font-size:10px}
.resource-strip{gap:10px}.resource-strip .resource{min-height:88px;grid-template-rows:18px 34px 5px;gap:6px;padding:10px 14px}
.resource-name{font-size:12px}.resource-value b{font-size:34px}.resource .bar{height:5px}
#budget-summary{margin:6px 0 0}.weekly-flow{padding:7px 4px 0;border:0;background:none;justify-content:flex-start;gap:12px;font-size:12px}.weekly-flow b{font-size:13px}.weekly-flow>span:last-child{margin-left:auto}
.control-room{gap:16px}
#iris-panel.adviser{order:-2;padding:12px 16px;grid-template-columns:44px minmax(0,1fr) auto;gap:0 14px;border-left-width:2px;background:#122b34;border-radius:9px}
#iris-panel>img{width:44px;height:58px}#iris-panel #advice{font-size:14px;line-height:1.55}#iris-panel .iris-tool{min-height:44px;min-width:80px;font-size:12px}
.workspace{grid-template-columns:260px minmax(0,1fr) 245px;gap:18px}
.faction-panel{padding:14px 12px;border-radius:9px}.faction-panel h2,.agenda h2{font-size:13px}.contact-legend{font-size:10px;grid-template-columns:minmax(0,1fr) 36px 60px}
#factions{gap:7px}#factions .faction{grid-template-columns:minmax(0,1fr) 36px 60px;gap:8px;padding:10px 9px;min-height:59px;border-radius:5px}#factions .faction-name{font-size:14px}#factions .favor-number b{font-size:27px}#factions .power-meter{height:12px}#factions .faction.inactive{min-height:44px}
#audience-panel{padding:20px;border-radius:10px;background:#102430;border:1px solid #42616d;border-top:2px solid #91b7bc}
.audience-topline{margin-bottom:18px;padding-bottom:10px;font-size:11px}
#event-card{padding:0;margin:0}
#event-card:not(.resolved) .audience-briefing{padding:16px;margin:0;border-radius:7px;overflow:hidden}
#event-card:not(.resolved) h2{font-size:clamp(26px,2.2vw,34px);line-height:1.16;letter-spacing:-.5px}
#event-card:not(.resolved) .event-text{font-size:18px;line-height:1.6;font-weight:650;margin-top:18px}
#event-card:not(.resolved) .person-name{font-size:14px}#event-card:not(.resolved) .person-role{font-size:10px}
#choices.decision-deck{gap:12px;margin-top:18px}
#choices .decision-option{padding:0;border-radius:8px;overflow:hidden;box-shadow:0 5px 12px #0003;transform:none}
#choices .decision-option .choice-scene{height:136px;min-height:136px;margin:0;border-radius:0}
#choices .option-preview{padding:16px}.option-meta{gap:8px}
#choices .option-title{font-size:19px;line-height:1.3}#choices .option-tradeoff{font-size:15px;line-height:1.6}
#choices .option-select-label{min-height:44px;font-size:12px;margin-top:14px}
#choices .option-details{padding:0 16px 16px;margin:0}
#choices .decision-option.is-selected:not(.is-locked){--choice-ink:#fff8dc;--choice-copy:#e3e4cf;--choice-meta:#ffe08a;--choice-gold:#ffe08a;--choice-note:#e2cef6;background:linear-gradient(145deg,#3a3a2b,#1e3034);border-color:#ffe08a;box-shadow:0 0 0 2px #ffe08a,0 7px 20px #0005;color:#fff8dc}
#choices .decision-option.is-selected .option-select-label{color:#ffe08a;border-color:#cbb26366}
#choices .decision-option.is-selected .option-number{background:#ffe08a;color:#24291f;border-color:#ffe08a}
#choices .decision-option.is-selected .option-details{border-top:1px solid #cbb26366}
#choices .is-selected .selected-marker{background:#ffe08a;color:#252b24}
#projects .project-ledger{padding:14px}#projects .project-copy>b{font-size:16px}#projects .project-cost{font-size:14px}#projects .project-benefit{font-size:13px}#projects .lock-short{font-size:12px}#projects{gap:10px}
#resolution{margin-top:0}.outcome-bloc-name{font-size:15px}
.mobile-sections{display:none}
.ui-review-label{font-size:10px;letter-spacing:1px;color:#d8c38a;margin-left:18px}
@media(min-width:761px) and (max-width:1250px){
 .workspace{grid-template-columns:230px minmax(0,1fr)}.workspace>.right-column{grid-column:1;grid-row:2}.workspace>.decision-column{grid-column:2;grid-row:1/3}
 #iris-panel .iris-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
 #choices.decision-deck{grid-template-columns:1fr}
 #choices .decision-option{display:grid;grid-template-columns:140px minmax(0,1fr)}#choices .decision-option .choice-scene{height:100%;grid-column:1;grid-row:1/3}#choices .option-details{grid-column:2}
}
@media(max-width:760px){
 html{scroll-padding-top:calc(var(--ui-status-height) + 12px)}
 .shell{padding:10px max(12px,env(safe-area-inset-right)) calc(88px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));max-width:100%;overflow:visible}
 .topbar{gap:8px;padding:0 0 10px}.brand{min-width:0}.brand img{width:30px;height:34px}.brand>span{font-size:16px}.brand small{font-size:8px}.header-actions{gap:5px}.header-actions .icon-button{width:40px;height:40px;min-width:40px}.ui-review-label{display:none}
 .city-banner{height:65px;margin-bottom:10px}.city-caption{left:14px;bottom:11px}.city-caption .eyebrow{display:none}.city-caption h1{font-size:24px;letter-spacing:3px;margin:0}
 .banner-status{top:9px;right:14px;bottom:9px;width:145px;gap:0 7px}.banner-status #week{font-size:32px}.banner-status .eyebrow{font-size:8px}.chapter-caption>b{font-size:8px}.banner-status>span:not(.eyebrow){font-size:8px}
 .control-room{gap:12px;min-width:0}.workspace{display:contents}.workspace>.left-column{display:contents}.workspace>.right-column{display:flex;order:4;gap:12px}
 .dashboard{top:0;order:-1;padding:8px;border-radius:0 0 9px 9px;margin:0;z-index:15;background:#0b202afa;box-shadow:0 6px 16px #0006}
 .dashboard-heading{margin:0 0 6px;min-height:0}.dashboard-heading h2{font-size:10px;letter-spacing:.7px}.dashboard-heading #save-status{display:none}.dashboard-heading .help-dot{width:26px;height:26px;min-width:26px;flex-basis:26px;font-size:12px}
 .resource-strip{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
 .resource-strip .resource{grid-template-rows:25px 27px 4px;gap:4px;padding:6px;min-height:0;border-radius:5px;align-content:start}
 .resource-name{display:flex;align-items:start;font-size:9px;line-height:1.25;letter-spacing:0;white-space:normal;min-width:0}.resource-name .metric-help{display:none}
 .resource-value{gap:2px;flex-wrap:nowrap}.resource-value b{font-size:25px;line-height:1}.resource-value small{display:none}.resource-value .credit-symbol{display:none}.resource .bar{height:4px}
 .resource.danger .resource-name::before{width:11px;height:11px;flex-basis:11px;font-size:9px}.resource .delta-lane{display:none}
 #budget-summary{margin-top:5px}.weekly-flow{min-height:30px;padding:2px 2px 0;gap:7px;flex-wrap:nowrap;font-size:11px}.weekly-flow b{font-size:11px;white-space:nowrap}
 #iris-panel.adviser{order:-2;grid-template-columns:36px minmax(0,1fr);padding:12px;gap:0 10px}
 #iris-panel>img{width:36px;height:48px}#iris-panel .eyebrow{font-size:10px}#iris-panel #advice{font-size:13px;line-height:1.5;margin-top:3px}
 #iris-panel .iris-tools{grid-column:1/-1;grid-row:4;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-top:10px}#iris-panel .iris-tool{min-width:0;min-height:40px;padding:6px 4px;gap:3px;font-size:10px}#iris-panel .iris-tool b{font-size:11px}#iris-panel .iris-tool .clue-icon{display:none}
 #audience-panel{order:3;padding:12px;border-radius:9px;min-width:0}
 .audience-topline{font-size:9px;margin-bottom:12px;padding-bottom:8px}.audience-topline .help-dot{width:30px;height:30px;flex-basis:30px}
 #event-card:not(.resolved) .audience-briefing{grid-template-columns:54px minmax(0,1fr);gap:0 10px;margin:0;padding:12px;border-radius:6px}
 #event-card:not(.resolved) .speaker-portrait{width:54px;height:70px}
 #event-card:not(.resolved) .person-name{font-size:12px;line-height:1.4}#event-card:not(.resolved) .person-role{font-size:9px;line-height:1.4;margin:4px 0 8px}
 #event-card:not(.resolved) h2{font-size:25px;line-height:1.16;letter-spacing:-.4px;overflow-wrap:anywhere}
 #event-card:not(.resolved) .event-text{font-size:17px;line-height:1.6;font-weight:650;margin-top:16px}
 #choices.decision-deck{grid-template-columns:1fr;gap:14px;margin-top:16px}
 #choices .decision-option{display:flex;padding:0;margin:0;min-width:0}
 #choices .decision-option .choice-scene{height:126px;min-height:126px;margin:0}
 #choices .option-preview{padding:16px}#choices .option-title{font-size:20px;line-height:1.3}#choices .option-tradeoff{font-size:16px;line-height:1.6}#choices .option-details{padding:0 16px 16px}#choices .option-full-copy{font-size:15px;line-height:1.6}#choices .option-select-label{font-size:13px;min-height:44px}
 .faction-panel{order:2;padding:14px 12px}.faction-panel h2{font-size:14px}.contact-legend{display:none}
 #factions{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 #factions .faction{grid-template-columns:minmax(0,1fr) 36px;gap:8px 5px;min-height:96px;padding:12px 9px 25px}
 #factions .faction-name{font-size:14px;line-height:1.3}#factions .favor-number b{font-size:28px}#factions .favor-number small{display:block;font-size:8px}
 #factions .power-row{display:flex;grid-column:1/-1;gap:8px;margin:0;padding:4px 0}#factions .power-row>span:first-child{display:block;font-size:10px}#factions .power-meter{height:10px;flex:1;width:auto}
 #factions .faction.inactive{min-height:55px;padding:10px}#factions .inactive .faction-name{font-size:12px}#factions .inactive .power-row{display:none}
 .workspace>.right-column .agenda{padding:14px}#projects .project-copy>b{font-size:18px}#projects .project-cost{font-size:15px}#projects .project-benefit{font-size:14px}#projects .lock-short{font-size:12px}
 body[data-mobile-section="audience"] .faction-panel,body[data-mobile-section="audience"] .workspace>.right-column{display:none}
 body[data-mobile-section="blocs"] #iris-panel,body[data-mobile-section="blocs"] #audience-panel,body[data-mobile-section="blocs"] .workspace>.right-column{display:none}
 body[data-mobile-section="projects"] #iris-panel,body[data-mobile-section="projects"] #audience-panel,body[data-mobile-section="projects"] .faction-panel{display:none}
 .mobile-sections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));position:fixed;left:0;right:0;bottom:0;z-index:25;padding:8px max(12px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));gap:7px;background:#0a1926fa;border-top:1px solid #607d86;box-shadow:0 -6px 20px #0006}
 .mobile-sections button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-height:48px;padding:7px 4px;border:1px solid #3e5d68;border-radius:6px;background:#132d39;color:#c8d9dd;font-size:13px;font-weight:800}.mobile-sections button small{font-size:9px;color:#99b8c1;font-weight:500}.mobile-sections button[aria-current="page"]{background:#ffe08a;border-color:#ffe9ac;color:#202c2b}.mobile-sections button[aria-current="page"] small{color:#4e5545}
 .mobile-sections button:focus-visible{outline:2px solid #fff;outline-offset:2px}
 .has-result .result-choices{position:static;bottom:auto;left:auto;right:auto;width:auto;padding:14px 0 0;background:none;border:0;box-shadow:none;margin:0;display:flex}
 .has-result .result-choices .primary{width:100%;min-height:50px;font-size:15px}
 #resolution{padding:0 12px 14px}#resolution .resolution-heading{margin:0 -12px 14px;padding:18px 16px}#resolution #result-text{font-size:16px;line-height:1.6}
 .shell>footer{display:none}dialog{max-width:calc(100vw - 24px);width:calc(100vw - 24px);max-height:calc(100dvh - 32px - env(safe-area-inset-bottom));padding:0}#modal-inner{min-width:0}.modal-content{padding:24px 18px}
}
@media(max-width:360px){.resource-value b{font-size:22px}.resource-name{font-size:8px}#factions .faction-name{font-size:12px}#iris-panel .iris-tool{font-size:9px}#event-card:not(.resolved) h2{font-size:23px}#choices .option-preview{padding:14px}#choices .option-details{padding:0 14px 14px}}

.mobile-unit{display:none}
@media(max-width:760px){
 .mobile-unit{display:inline}.resource-name{display:block}
 .dashboard-heading{display:none}
 .dashboard{background:#0b202a}
}

/* UI 02: briefing first, readable section hierarchy and project cards. */
#iris-panel.adviser{border-left:3px solid #8fd5cf;background:linear-gradient(110deg,#193940,#10232e 75%)}
#iris-panel>img{display:block;border-radius:6px;border:1px solid #638c96;object-fit:cover}
#iris-panel .eyebrow{color:#a7e5de;letter-spacing:1px}
#iris-panel .iris-tool{border-radius:5px;background:#0a1d28;border:1px solid #3e606d}
.faction-panel>.panel-heading,.agenda>.panel-heading{padding-bottom:12px;margin-bottom:14px;border-bottom:1px solid #4c6a73}
.faction-panel h2,.agenda h2{border-left:3px solid #e5c77c;padding-left:10px;color:#e9e8d6;letter-spacing:1px}
#projects .project-ledger{border-radius:8px;border:1px solid #3d5a64;background:#122833;box-shadow:0 4px 12px #0002;text-align:left}
#projects .project-copy>b{line-height:1.35;color:#f0efe1}
#projects .project-cost{padding-top:10px;margin-top:10px;border-top:1px solid #415761}
#projects .project-cost strong{color:#f3d998;font-size:17px}
#projects .project-benefit{line-height:1.55;color:#c9ded8}
#projects .project-stage-line{margin-top:9px}
#projects .lock-short{line-height:1.45;color:#bfd0d6}
@media(hover:hover){#projects .project-ledger:hover{border-color:#9bbcbf;background:#19323d}#iris-panel .iris-tool:hover{border-color:#9bcac8;background:#1b3740}}
@media(min-width:761px){#iris-panel.adviser{grid-template-columns:52px minmax(0,1fr)}#iris-panel>div{display:contents}#iris-panel>img{grid-row:1/4;width:52px;height:72px}#iris-panel .eyebrow,#iris-panel #advice,#iris-panel #crisis-status{grid-column:2}#iris-panel #advice{margin:5px 0 10px}#iris-panel .iris-tools{grid-column:2;grid-row:4;grid-template-columns:repeat(4,minmax(0,150px));justify-content:start}}
@media(max-width:760px){#iris-panel.adviser{padding:14px 12px}#iris-panel #advice{font-size:14px;line-height:1.55}#iris-panel .iris-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}#iris-panel .iris-tool.log{grid-column:auto}.agenda h2,.faction-panel h2{font-size:14px}#projects .project-cost strong{font-size:18px}}
#projects .project-copy{grid-template-columns:minmax(0,1fr);gap:8px}
#projects .project-copy>*{grid-column:1}
#projects .project-stage-line{display:flex;align-items:center;gap:8px;margin:2px 0}
#projects .project-stage-line>span:first-child{display:block;font-size:9px;letter-spacing:1px;color:#a9bfc4}
#projects .project-stage-line .project-progress{width:60px;flex:none;margin:0;height:5px}
#projects .project-stage-line>small{font-size:11px;color:#d0dbd3}
#projects .project-cost{text-align:left;margin:2px 0 0;padding-top:8px}
#projects .project-cost small{display:block;font-size:11px;font-weight:400;margin-top:3px;color:#b0c6cd}
#projects .project-benefit{margin:0;padding:0}
/* Compact IRIS: tools beside the briefing whenever there is room. */
@media(min-width:761px){
 #iris-panel.adviser{grid-template-columns:44px minmax(0,1fr) auto;grid-template-rows:auto auto auto;gap:0 14px;padding:10px 14px}
 #iris-panel>img{grid-column:1;grid-row:1/4;width:44px;height:58px}
 #iris-panel .eyebrow,#iris-panel #advice,#iris-panel #crisis-status{grid-column:2}
 #iris-panel #advice{margin:3px 0 0;max-width:none;font-size:14px;line-height:1.45}
 #iris-panel .iris-tools{grid-column:3;grid-row:1/4;grid-template-columns:repeat(4,minmax(76px,auto));gap:6px;margin:0;align-self:center}
 #iris-panel .iris-tool{min-width:76px;min-height:40px;padding:7px 9px;font-size:11px}
}
@media(min-width:761px) and (max-width:1100px){
 #iris-panel .iris-tools{grid-template-columns:repeat(2,minmax(80px,auto));gap:5px}
 #iris-panel .iris-tool{min-height:32px;padding:5px 8px}
}
@media(max-width:760px){
 #iris-panel.adviser{padding:10px 12px}
 #iris-panel .iris-tools{margin-top:6px}
 #iris-panel .iris-tool{min-height:36px;padding:5px 4px}
}
/* UI 04 — hierarchy, compact masthead, comparable choices, visible changes. */
.city-banner{height:100px;margin-bottom:14px;isolation:isolate}
.city-banner>.topbar{display:contents}
.city-banner .brand{position:absolute;top:29px;left:24px;z-index:2;font-size:23px}
.city-banner .brand img{width:42px;height:42px}
.city-banner .brand small{font-size:9px}
.city-banner .header-actions{position:absolute;right:18px;top:28px;z-index:2;gap:6px}
.city-banner .header-actions .icon-button{background:#0b1e29c9;border:1px solid #50636e;border-radius:6px;font-size:20px}
.city-banner .city-caption,.city-banner .ui-review-label{display:none}
.city-banner .banner-status{right:176px;width:210px;top:16px;bottom:16px}
.city-banner .city-overlay{background:linear-gradient(90deg,#07131bf2,#07131b85 55%,#07131bd9)}
.resource-strip .resource{background-blend-mode:normal;isolation:isolate}
.resource-strip .resource::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#091a24b8,#091a2450);z-index:-1;pointer-events:none}
.resource-strip .resource-value{align-items:baseline}
.resource-strip .resource-value small{font-size:10px;line-height:1.2}
.resource-strip .resource-name{color:#d9e5e7;letter-spacing:.5px}
.resource-strip .resource.danger{border-color:#ed9c81}
.resource-strip .resource.danger .resource-name::before{content:'!';display:inline-grid;place-items:center;width:14px;height:14px;margin-right:5px;border:1px solid #ffba9d;color:#ffba9d;font-weight:900;border-radius:50%}
#choices.decision-deck{align-items:stretch}
#choices .decision-option{height:100%}
#choices .option-preview{display:flex;flex-direction:column;flex:1}
#choices .option-title{min-height:2.6em}
#choices .option-tradeoff{margin-top:10px;margin-bottom:16px}
#choices .option-select-label{margin-top:auto;padding-top:12px}
#choices .decision-option.is-selected .option-select-label{font-size:12px;line-height:1.45}
#audience-panel{border-color:#4d6975;border-top-color:#b4d1d2}
.audience-topline{margin-bottom:10px;padding-bottom:7px;color:#97b1bb;font-size:10px;letter-spacing:.6px}
#event-card:not(.resolved) .audience-briefing{padding-top:10px}
#event-card:not(.resolved) h2{font-size:clamp(27px,2.3vw,36px);line-height:1.15}
#event-card:not(.resolved) .event-text{font-size:17px;line-height:1.65;font-weight:500;color:#e1eaeb}
#event-card:not(.resolved) .person-name{font-size:13px;color:#b9d4da}
#event-card:not(.resolved) .person-role{color:#a0bac4}
#factions .faction-name{background:#0919249c;border-radius:3px;padding:3px 4px;margin-left:-4px;text-shadow:none}
#factions .favor-number{background:#091924dd;box-shadow:none;text-align:center}
#factions .power-meter{gap:3px}
.metric-changed{border-color:#c8bd8c}
.change-chip{font-size:11px;font-weight:800;color:#ffdf91;background:#263438;border:1px solid #8d8155;border-radius:4px;padding:2px 5px;line-height:1.3;white-space:nowrap}
.resource>.change-chip{position:absolute;right:9px;bottom:24px}
#factions .faction>.change-chip{grid-column:1/-1;justify-self:end;margin:2px 0 0}
.metric-changed .delta-lane{display:none}
@media(min-width:761px) and (max-width:1250px){#choices .decision-option{height:auto}#choices .option-title{min-height:0}}
@media(max-width:760px){
 .city-banner{height:105px;margin-bottom:10px}
 .city-banner .brand{left:12px;top:12px;gap:7px;font-size:15px}
 .city-banner .brand img{width:28px;height:32px}.city-banner .brand b{font-size:19px}.city-banner .brand small{font-size:7px;letter-spacing:.7px;margin-top:4px}
 .city-banner .header-actions{right:9px;top:11px;gap:4px}.city-banner .header-actions .icon-button{width:32px;min-width:32px;height:34px;font-size:17px}
 .city-banner .banner-status{left:12px;right:12px;top:60px;bottom:9px;width:auto;display:flex;gap:8px;text-align:left}
 .city-banner .banner-status>.eyebrow{display:none}.city-banner .banner-status #week{font-size:25px;order:1}.city-banner .banner-status>span:not(.eyebrow){order:0;font-size:9px}.city-banner .chapter-caption{margin-left:auto;order:2}.city-banner .chapter-caption>b{font-size:9px}
 #choices .option-title{min-height:0}#choices .decision-option{height:auto}
 #event-card:not(.resolved) h2{font-size:26px}#event-card:not(.resolved) .event-text{font-size:17px;font-weight:500}
 .resource>.change-chip{position:static;grid-column:1;justify-self:start;font-size:10px;padding:1px 4px;margin-top:2px}
 #factions .faction>.change-chip{font-size:10px;white-space:normal}
 .resource-strip .resource{overflow:visible}
}
@media(max-width:360px){.city-banner .brand{font-size:13px}.city-banner .brand b{font-size:16px}.city-banner .brand img{width:24px}.city-banner .brand small{font-size:6px}.city-banner .header-actions{gap:3px}.city-banner .header-actions .icon-button{width:29px;min-width:29px}.city-banner .chapter-caption>b{font-size:8px}}
/* Shared detail treatment: readable copy, clear sections, stable actions. */
#choices .option-details{padding:16px;border-top:1px solid #806f43;background:#111f25;line-height:1.6}
#choices .option-cash{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:10px 0 14px;border-bottom:1px solid #455655}
#choices .option-cash>span{font-size:12px;color:#bed1d4;letter-spacing:.8px}
#choices .option-cash strong{font-size:23px;color:#ffe08a;line-height:1.2}
#choices .option-full-copy{font-size:15px;line-height:1.65;margin:14px 0;color:#e0e8e4}
#choices .option-notes{font-size:13px;line-height:1.6}
#modal{border:1px solid #5c7985;border-radius:12px;background:#102430;box-shadow:0 24px 90px #000b}
#modal::backdrop{background:#030c13cf;backdrop-filter:blur(4px)}
.modal-content{padding:28px;line-height:1.65}
.modal-content>h2{font-size:29px;line-height:1.2;padding-right:34px;color:#eff2e7}
.modal-content>p{font-size:16px;color:#d1e0e3}
.modal-content .close,.project-hero .close{width:42px;height:42px;border-radius:6px;background:#0a192bd9;border:1px solid #607b86}
.project-hero{min-height:150px}.project-sheet-body{padding:24px}
.project-purpose{font-size:17px;line-height:1.65;font-weight:500;color:#dce8e8}
.project-route{gap:10px}.project-route li{border-radius:6px}.project-route li b{font-size:14px;line-height:1.4}
.investment-overview{gap:14px}.investment-overview>section{padding:18px;border:1px solid #49626d;border-radius:8px;background:#0c1d28}
.investment-overview strong{font-size:23px;line-height:1.3}.investment-overview small{font-size:13px;line-height:1.6}
.project-requirements{padding:18px;border:1px solid #6a684c;border-radius:8px;background:#192b31;margin-top:22px}
.project-section-heading h3{font-size:20px;color:#ffe08a}
.project-more{margin-top:18px}.project-more summary{min-height:44px;padding:12px;font-size:14px}
.project-sheet-footer{background:#0c1c26;border-top:1px solid #4b626b;padding:16px 24px}
.project-sheet-footer .primary,.modal-content>.primary{min-height:48px;border-radius:6px}
.emergency-lead{font-size:21px;font-weight:700;color:#ececdb}
.emergency-rules{max-width:65ch}
.emergency-offers{gap:14px;align-items:stretch}
.emergency-offer{border:1px solid #496773;border-radius:9px;padding:14px;background:#132b36;display:flex;flex-direction:column;gap:10px;text-align:left}
.emergency-offer>b{font-size:20px;line-height:1.3}.emergency-offer>small{margin-top:auto;border-top:1px solid #42616c;padding-top:12px;min-height:40px}
.emergency-offer .effects{margin:0}.emergency-offer .offer-patron{font-size:10px;letter-spacing:.7px;color:#aac7cf}
.emergency-art{border-radius:6px}.emergency-detail-art{height:150px;margin-bottom:20px}
.promise-reminder{padding:18px;border:1px solid #7d714d;border-left:3px solid #e7c97b;border-radius:6px;background:#292f2c;line-height:1.6}
.promise-reminder>b{color:#ffe08a;font-size:13px}.promise-reminder p{font-size:15px;margin:8px 0 0}
.availability{font-size:14px;line-height:1.55}.modal-content .text-button{min-height:44px}
@media(max-width:760px){
 .modal-content{padding:22px 16px}.modal-content>h2{font-size:25px}.project-sheet-body{padding:16px}
 .project-hero{min-height:120px}.project-route{gap:6px}.project-route li b{font-size:12px}
 .investment-overview{grid-template-columns:1fr}.investment-overview>section{padding:14px}
 .project-requirements{padding:14px}.project-section-heading{gap:10px;flex-wrap:wrap}.project-section-heading h3{font-size:19px}
 .project-sheet-footer{padding:14px 16px}.project-sheet-footer>div{flex-wrap:wrap;gap:8px}.project-sheet-footer .primary{flex:1;white-space:normal}
 .emergency-offers{grid-template-columns:1fr}.emergency-offer{padding:14px}.emergency-detail-art{height:120px}
 #choices .option-cash strong{font-size:22px}.promise-reminder{padding:14px}
}

/* 0.5.4 — graphite / copper. Presentation only; original art and game rules retained. */
:root{--bg:#101214;--text:#eee8df;--muted:#b9b5b0;--cyan:#a7cedd;--lime:#97d8b0;--red:#ed9a88;--line:#4b4540;--ui-ink:#eee8df;--ui-muted:#b9b5b0;--ui-line:#4b4540;--ui-gold:#eac08b;--copper:#c39369;--gold:#eac08b;--surface:#1b1d1f;--surface-raised:#252525}
body{background:radial-gradient(ellipse at 80% 0,#352a222e,transparent 55%),#101214;color:var(--text)}
button{color:var(--text)}button:focus-visible,[role=button]:focus-visible,summary:focus-visible{outline:2px solid #eac08b;outline-offset:3px}
.eyebrow{color:#c7a585}.primary{background:#d5ab7a;color:#171717;border:1px solid #e7c495;box-shadow:none;font-weight:750}.primary:hover{background:#e8be8d;box-shadow:none}.secondary,.icon-button,.text-button{background:#252525;border-color:#62564a;color:#e7ded2}.secondary:hover,.icon-button:hover{background:#353029;border-color:#c39369}
.positive,.effect.positive,.effect.positive strong,.gain,.change-value.gain{color:#99dbb6}.negative,.effect.negative,.effect.negative strong,.loss,.change-value.loss{color:#efaa97}.power-change,.effect.power-effect strong{color:#a4cde3}
.shell{max-width:1740px;padding:20px 28px}.control-room{gap:16px}.workspace{grid-template-columns:260px minmax(0,1fr) 234px;gap:20px;align-items:start}
.city-banner{border-color:#51483f;border-radius:2px 14px 2px 14px;background:#17191b}.city-banner .city-overlay{background:linear-gradient(90deg,#111315df,#11131577 60%,#111315d9)}.city-banner .brand b,.banner-status #week{color:#e0b17d}.city-banner .brand img{filter:grayscale(1) sepia(.35)}.city-banner .header-actions .icon-button{background:#191c1fe8;border-color:#61584e}.city-banner .brand small{color:#c2b5a6}
#iris-panel.adviser{background:#192329;border-color:#3e545f;border-left:2px solid #a7cedd;border-radius:2px 12px 2px 12px}#iris-panel .eyebrow{color:#a7cedd}#iris-panel #advice{color:#d5dee1}#iris-panel .iris-tool{background:#152025;border-color:#455962;color:#d4e5ea}#iris-panel .iris-tool b{color:#e8d0ab}
.dashboard{background:#17191afc;border-color:#49443e;box-shadow:0 6px 18px #0005;border-radius:3px 12px 3px 12px}.dashboard-heading h2{color:#d6c7b6}.resource-strip .resource{border-color:#514a42;background-color:#191c1e}.resource-strip .resource::after{background:linear-gradient(90deg,#121516db,#12151677)}.resource-strip .resource-name{color:#d7d4ce}.resource-value b{color:#f4eadd}.resource[data-metric=cash] .resource-value b,.credit-symbol{color:#eac08b}.resource[data-metric=influence] .bar>span{background:#a4c6dd}.resource[data-metric=army] .bar>span{background:#cf9b85}.resource[data-metric=pop] .bar>span{background:#98c8aa}.resource[data-metric=cash] .bar>span{background:#dbb77f}.weekly-flow{color:#c3bdb4}.weekly-flow.surplus b{color:#9ed3ba}.weekly-flow.deficit b{color:#e7a18e}
.faction-panel,.agenda,#audience-panel{background:#191b1d;border:1px solid #4c4540;border-top-color:#aa8160;border-radius:2px 14px 2px 14px;box-shadow:none}.faction-panel,.agenda{padding:16px 12px}.panel-heading{border-color:#4b4540}.panel-heading h2,.faction-panel h2,.agenda h2{color:#e3c8a7;letter-spacing:1px}.help-dot{background:#20282c;border-color:#53616a;color:#bcd7e1}.contact-legend{display:none}
#factions{gap:9px}#factions .faction{display:grid;grid-template-columns:minmax(0,1fr) 44px 68px;min-height:102px;padding:15px 10px;gap:7px;align-items:end;background:#1c1f21;border:1px solid #4d4944;border-radius:2px 11px 2px 11px;isolation:isolate;overflow:hidden}#factions .faction::before{inset:0;opacity:.87;mask-image:linear-gradient(90deg,#000 0%,#000b 40%,transparent 74%);-webkit-mask-image:linear-gradient(90deg,#000 0%,#000b 40%,transparent 74%)}#factions .faction-top{display:contents}#factions .faction-name{font-size:15px;line-height:1.25;font-weight:750;background:#101416b8;color:#f4eee4;padding:5px 4px;margin:0;text-shadow:0 1px 3px #000}#factions .favor-number{display:flex;flex-direction:column-reverse;align-items:center;gap:5px;background:transparent}#factions .favor-number small{display:block;font-size:9px;color:#c3beb6}#factions .favor-number b{font-size:26px;color:#ebd0a7}#factions .power-row{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:0 0 7px;background:transparent;margin:0;grid-column:auto}#factions .power-row>span:first-child{display:block;color:#c3beb6;font-size:9px}#factions .power-meter{width:100%;height:10px;gap:3px}#factions .power-meter i{background:#2a353c;border:1px solid #536874}#factions .power-meter i.filled{background:#a3c9d7;border-color:#b2d1dc;box-shadow:none}#factions .faction:hover{border-color:#c39369;background:#262522}#factions .faction-status,#factions .bar{display:none}#factions .hostile{border-left:3px solid #ca8d75}#factions .plotting{border-color:#dca38a}.change-chip{color:#f1d4a5;background:#352f24;border-color:#897452}
#audience-panel{padding:22px}.audience-topline{color:#c9ad8d;margin-bottom:14px}.signal{background:#bad3dc;box-shadow:none}
#event-card .audience-briefing,#event-card:not(.resolved) .audience-briefing{display:block;padding:0;margin:0;background:#202224;border:1px solid #4c4842;border-radius:2px 12px 2px 12px;overflow:hidden}#event-card .audience-briefing::before{display:none}.audience-panorama{height:190px;background:var(--briefing-art) center/cover;position:relative}#event-card .event-header{display:flex;align-items:center;padding:22px 24px 0;gap:18px}#event-card:not(.resolved) .speaker-portrait{width:80px;height:100px;border-color:#84705c;border-radius:2px 9px 2px 9px}#event-card:not(.resolved) .person-name{color:#e4bd92;font-size:14px}#event-card:not(.resolved) .person-role{color:#b7bab8}#event-card:not(.resolved) h2{color:#f4eee5;font-size:clamp(25px,2.15vw,36px);text-shadow:none;line-height:1.18}#event-card .event-text,#event-card:not(.resolved) .event-text{margin:18px 0 0;padding:0 24px 22px;font-size:17px;line-height:1.65;font-weight:400;color:#e1ddd5}#event-card .event-text p{margin:0}.resolved .audience-panorama{height:100px}.resolved .event-header{padding:16px 20px 0}.resolved .event-text{font-size:15px;padding-bottom:18px}
#choices.decision-deck{gap:14px;margin-top:18px}#choices .decision-option{background:#222426;border:1px solid #56514b;border-top-color:#8b745d;color:#ede7df;border-radius:2px 12px 2px 12px;box-shadow:none;--choice-ink:#eee8df;--choice-copy:#d0cdc6;--choice-meta:#bcb6aa;--choice-gold:#eac08b;--choice-note:#b9cdd6;--choice-detail-bg:#262624;--choice-alert-bg:#392b28;--choice-alert-border:#ca9278;--choice-info-bg:#253234}#choices .decision-option .choice-scene{height:143px;min-height:143px;background-image:var(--choice-art);background-size:cover;background-position:center;border-color:#514940}#choices .choice-title,#choices .option-title{color:#f1e8dc}#choices .choice-detail,#choices .option-tradeoff{color:#d0cdc6}#choices .option-preview{padding:18px}#choices .option-select-label{color:#d8b38e;border-color:#4f4a43}#choices .option-number{background:#181c1e;border-color:#65594a;color:#e4c29b}
#choices .decision-option:is(.is-selected,:focus-visible):not(.is-locked){background:#302b23;border-color:#e6bd81;box-shadow:0 0 0 1px #e6bd81;--choice-ink:#fff0d9;--choice-copy:#e1d7c6;--choice-meta:#eac08b;--choice-gold:#edc993;--choice-note:#bfd1d9;--choice-detail-bg:#292720;color:#fff0d9}#choices .selected-marker{background:#dfba85;color:#181917}#choices .decision-option.is-selected .option-select-label{color:#f1cf9c;border-color:#7d684a}#choices .option-details{background:#292720;border-color:#806d50;padding:18px}#choices .option-cash{border-color:#66563e}#choices .option-cash strong{color:#f1ca8c}#choices .option-cash>span{color:#d1bd9c}#choices .option-full-copy{color:#e2d9cc}.choice-addenda{color:#bfd0d6}.choice-lock{color:#edb69a}
@media(hover:hover){#choices .decision-option:not(.is-locked):hover{background:#302d27;border-color:#cda578;box-shadow:0 0 0 1px #b68d65;--choice-ink:#f4eadd;--choice-copy:#ded4c6;--choice-meta:#d6b58e;--choice-gold:#eac08b;--choice-detail-bg:#292720}}
#projects .project-ledger{background:#202224;border-color:#514a41;border-radius:2px 11px 2px 11px;min-height:170px}#projects .project-visual{opacity:.58;mask-image:linear-gradient(#000,transparent 95%)}#projects .project-copy>b{color:#f0dfc8}#projects .project-cost strong{color:#eac08b}#projects .project-cost{border-color:#67563e}#projects .project-benefit{color:#b3d5c0}.project-progress .done{background:#a8c8b0}.project-progress .next{border-color:#cdaa79}.emergency-toggle{background:#27241e;border-color:#806e51}.emergency-port,.emergency-identity small{color:#ddba83}.emergency-identity strong{color:#efdfc6}
#resolution{background:#1d2427;border-color:#58727a;border-left-color:#a0c4cc;box-shadow:none;border-radius:2px 12px 2px 12px}#resolution .resolution-heading{background:#1b2427}#resolution .resolution-heading::before{background-image:linear-gradient(90deg,#1b2427f5,#1b2427bb 50%,#1b242744),var(--choice-art)}#resolution h3{color:#f1e7d8}#resolution .resolution-heading>.eyebrow{background:#263b35;border-color:#628d77;color:#b8e1c5}.outcome-ledger{background:#191f21;border-color:#465251}.outcome-money{background:#302b22;border-color:#776347}.outcome-blocs th,.outcome-city h4{color:#c8d4d6}.outcome-blocs tr{border-color:#465051}.budget-change{background:#292b26;border-color:#5e6350;color:#d4d6c2}
/* Shared secondary screens. */
#modal{background:#1b1d1f;border:1px solid #7b6955;border-radius:3px 16px 3px 16px;box-shadow:0 28px 100px #000b;max-width:min(1000px,calc(100vw - 40px));width:880px}#modal::backdrop{background:#090c10d9;backdrop-filter:blur(3px)}.modal-content{background:#1b1d1f;padding:30px;line-height:1.7;color:#e6e0d7}.modal-heading{border-color:#51473c}.modal-heading h2{color:#eee2d1}.modal-content>p{color:#d1cdc6}.close,.modal-content .close,.project-hero .close{background:#171d20eb;border-color:#72706a;color:#f0e5d4}.modal-content h3{color:#dec3a1}.save-explainer,.mission,.lore,.bonus-card,.dossier-empty{background:#242729;border-color:#575048;color:#d9d4cb}.menu-grid button{min-height:52px}.budget-current{background:#252924;border-color:#586654}.budget-table td,.budget-table th{border-color:#4b4843}.budget-table small{color:#b8b7b1}.tax-option{background:#252729;border-color:#514b44;color:#e4ddd2}.tax-option.selected{background:#383023;border-color:#ccaa77}.tax-preview{color:#eac08b}
.project-sheet{background:#1b1d1f;color:#e5ded3}.project-hero{background-color:#202529}.project-sheet-body{padding:26px}.project-purpose{color:#e1d8ca}.project-route li{background:#282a29;border-color:#5b554b}.project-route li.current{background:#393025;border-color:#c9a272}.project-route li b{color:#e8dac4}.investment-overview>section{background:#252725;border-color:#5e6153}.investment-overview strong{color:#bdddc3}.investment-overview small{color:#d1d3c7}.investment-overview .investment-cost{background:#302a23;border-color:#786347}.project-requirements{background:#292722;border:1px solid #847253;border-top:3px solid #c9aa78}.project-section-heading{border-bottom:1px solid #695d47;padding-bottom:14px;margin-bottom:14px}.project-section-heading h3{font-size:22px;color:#f0cf99}.project-check{border-color:#574f40}.project-check.met{color:#b8ddc2}.project-check.unmet{color:#edb39c}.project-sheet-footer{background:#202120;border-color:#65553f}.project-more summary{background:#24282a;color:#cbd6d8}.project-more>div{color:#d4cfc5}.availability.ready{color:#b7d7bf}.availability.blocked{color:#e2b19a}.project-check-status{border-radius:3px}
.emergency-offer{background:#252728;border-color:#635645}.emergency-offer>b{color:#edddc7}.emergency-offer .offer-patron{color:#c4b29a}.emergency-lead{color:#eee0cc}.emergency-rules{color:#c7c9c5}.promise-reminder{background:#302b23;border-color:#806b4d;border-left-color:#ddbb80}.promise-reminder>b{color:#edcc92}.promise-reminder p{color:#ddd1bf}.effect.positive{background:#20352e;border-color:#6c9f82}.effect.negative{background:#3a2a27;border-color:#b67e6a}.effect.power-effect{background:#26343c;border-color:#739aad}.emergency-offer>small{border-color:#5f5546;color:#d3c4b0}.briefing-copy{background:#1b1f22}.briefing-copy h2{color:#f1e4d1}.briefing-copy p{color:#d6d4ce}.briefing-iris{background:#172129}.briefing-strip{background:#23292b;border-color:#586367}.clue-record,.watch-item,.journal-entry,.clue-links{background:#22282b;border-color:#4b5c63;color:#d9e1e2}.clue-record h3,.watch-item h3{color:#d8e6e9}.clue-record footer{color:#b6c3c7;border-color:#44535b}.clue-record-meta{color:#abd0df}.faction-readout{background:#272820;border-color:#766b53}.faction-profile p{color:#bdc7c9}.faction-profile h3{color:#eacba1}#help-tooltip{background:#21282b;border-color:#81939c;color:#e0e5e6}#toast{background:#202827;border-color:#7a9b88;color:#e4ece5}
/* Ending cards and the archive use the same visual grammar as the game. */
#modal:has(.ending-sheet),#modal:has(.archive-sheet){width:1120px;max-width:calc(100vw - 40px)}.ending-topline{padding:13px 26px;display:flex;justify-content:space-between;align-items:center;color:#ccad87;font-size:11px;letter-spacing:1.5px;border-bottom:1px solid #65533f}.ending-topline .close{position:static;width:38px;height:38px}.ending-hero{position:relative;isolation:isolate;min-height:320px;display:flex;align-items:end;background:#161b1e}.ending-hero .ending-image{position:absolute;inset:0;z-index:-2;overflow:hidden}.ending-image img{width:100%;height:100%;object-fit:cover}.ending-hero::after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#1b1d1f 0%,#1b1d1f88 30%,transparent 75%);z-index:-1}.ending-heading{padding:30px 36px 18px;max-width:100%}.file-number{display:block;letter-spacing:1.6px;font-size:11px;color:#e9cfab;margin-bottom:14px}.ending-type{display:inline-block;color:#efb69f;background:#292019db;border:1px solid #bc8a68;font-size:10px;letter-spacing:1px;padding:6px 9px}.ending-type.favorable{color:#bdddc5;background:#1d3028de;border-color:#80ac90}.ending-heading h2{font-size:clamp(28px,3.5vw,48px);line-height:1.12;color:#f9eee0;margin:14px 0 0;max-width:25ch}.ending-body{padding:14px 36px 32px}.ending-epilogue{font-size:20px;line-height:1.65;max-width:76ch;color:#e5dfd4;margin:12px 0 24px}.ending-context{color:#bed0d7}.ending-note{display:flex;gap:22px;align-items:start;padding:18px 20px;border-left:3px solid #d3ac77;background:#302b23}.ending-note>b{white-space:nowrap;font-size:12px;letter-spacing:1px;color:#edc78e}.ending-note p{margin:0;color:#dfd1bd;font-size:15px}.ending-stats{display:flex;gap:32px;padding:20px 0;margin:24px 0;border-top:1px solid #5d5142;border-bottom:1px solid #5d5142}.ending-stats>div{display:flex;align-items:center;gap:12px;border:0;background:none;padding:0}.ending-stats strong{font-size:32px;color:#ebc38e}.ending-stats span{font-size:10px;color:#afc6ce;max-width:10ch;line-height:1.5;letter-spacing:1px}.ending-projects{margin:0 0 24px;border:1px solid #534b40;padding:14px 18px;background:#222322}.ending-projects summary{cursor:pointer;color:#dfc6a4;font-weight:700}.ending-projects summary>span{float:right;color:#bdc7c9;font-size:13px}.ending-projects>div{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:18px}.ending-projects section b{display:flex;justify-content:space-between;color:#e5d6c0;font-size:14px}.ending-projects section p{font-size:13px;color:#bcc9c8}.ending-actions{display:flex;gap:12px;flex-wrap:wrap}.ending-actions button{min-height:48px;padding:12px 22px}.ending-actions .primary{margin-right:auto}.ending-illustration{aspect-ratio:3;max-height:none;border-color:#8d7454;border-radius:2px 12px 2px 12px}
.archive-sheet{padding:28px}.archive-header{display:flex;justify-content:space-between;align-items:start;gap:16px}.archive-header .close{position:static;flex:none}.archive-header h2{font-size:30px;color:#efdfc6;margin:8px 0}.archive-header p{color:#b8c4c8;margin:0}.archive-header p b{font-size:24px;color:#ebc18c}.archive-filters{display:flex;gap:9px;margin:22px 0;flex-wrap:wrap}.archive-filters button{background:#232729;border:1px solid #5a5c58;color:#cbd4d4;padding:10px 16px;border-radius:3px;font-size:13px}.archive-filters [aria-pressed=true]{background:#3b3023;border-color:#caa575;color:#f0d4ae}.archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.archive-file{position:relative;display:flex;flex-direction:column;text-align:left;padding:0;border:1px solid #75664f;background:#252726;border-radius:2px 16px 2px 2px;overflow:hidden;min-width:0;color:#e4d2ba;box-shadow:3px 4px 0 #0f1315;transition:border-color .15s}.archive-file:hover{border-color:#eac08b}.archive-file .file-art{height:115px;position:relative;overflow:hidden;width:100%}.file-art img{width:100%;height:100%;object-fit:cover}.file-tab{display:flex;justify-content:space-between;gap:10px;padding:9px 14px;font-size:10px;letter-spacing:1px;background:#383126;color:#e7c79d;border-top:1px solid #736048}.file-tab>span{font-size:9px}.file-caption{padding:16px;display:flex;flex-direction:column;gap:10px;flex:1}.file-caption>b{font-size:18px;line-height:1.3}.file-caption>small{font-size:10px;letter-spacing:.5px;color:#b1c5ca}.file-open{margin-top:auto;padding-top:10px;color:#dcba8d;font-size:12px}.archive-file.sealed{opacity:1;cursor:default;background:#202426;border-color:#484c4a}.sealed .file-art{opacity:.32;filter:grayscale(.8)}.sealed .file-tab{background:#292e2e;border-color:#454c4b;color:#a9b3b5}.sealed .file-caption>b{font-size:15px;color:#acb7b8}.sealed .file-caption small{color:#8b9b9d}.archive-footer{display:flex;gap:12px;margin-top:24px;padding-top:20px;border-top:1px solid #564c3d}.archive-disclaimer{color:#b4c1c5;font-size:14px}.archive-empty{grid-column:1/-1;color:#c6d0d1;padding:30px 0}
/* Local, reversible film grade. Text and controls are never filtered. */
.film-definitions{position:absolute;pointer-events:none}.film-image{position:relative;isolation:isolate}.film-image img,.city-art,.avatar,#iris-panel>img,#factions .faction::before,.choice-scene,.project-visual,.emergency-art,.emergency-detail-art,.completion-art{filter:url(#city-film)}.audience-panorama{filter:url(#city-film)}
@media(min-width:761px) and (max-width:1250px){.workspace{grid-template-columns:230px minmax(0,1fr);gap:16px}.workspace>.right-column{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:16px}#projects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.projects-notice{grid-column:1/-1}.audience-panorama{height:175px}#choices.decision-deck{grid-template-columns:1fr}#choices .decision-option{display:block}#choices .decision-option .choice-scene{height:155px}.archive-grid{gap:14px}}
@media(max-width:760px){.shell{padding:12px 12px 95px}.workspace{display:contents}.dashboard{top:0;padding:8px;background:#17191afd}.resource-strip .resource{padding:6px;min-height:0;grid-template-rows:25px 27px 4px}.resource-value b{font-size:25px}.workspace>.right-column{display:flex;flex-direction:column}.faction-panel{padding:16px 12px}#factions{grid-template-columns:1fr}#factions .faction{grid-template-columns:minmax(0,1fr) 55px 82px;min-height:105px;padding:18px 14px}#factions .faction-name{font-size:16px}#factions .power-row{grid-column:auto}#factions .favor-number small{font-size:9px}#audience-panel{padding:12px}#event-card:not(.resolved) .audience-briefing{display:block;padding:0}.audience-panorama{height:145px}.event-header{padding:18px 16px 0;gap:12px}#event-card:not(.resolved) .speaker-portrait{width:56px;height:75px}#event-card:not(.resolved) h2{font-size:25px;line-height:1.18}#event-card:not(.resolved) .person-name{font-size:13px}#event-card .event-text,#event-card:not(.resolved) .event-text{padding:0 16px 18px;font-size:16px;line-height:1.65;margin-top:16px}#choices .option-preview{padding:18px 16px}#choices .decision-option .choice-scene{height:145px;min-height:145px}#choices .option-details{padding:16px}#choices .option-cash{gap:10px;flex-wrap:wrap}#choices .option-cash strong{font-size:22px}.mobile-sections{background:#171b1efa;border-color:#716047}.mobile-sections button{background:#272b2d;border-color:#535a58;color:#d8e0df}.mobile-sections button[aria-current=page]{background:#dbb784;border-color:#f0d5a7;color:#201d18}.mobile-sections button[aria-current=page] small{color:#544733}#modal,#modal:has(.ending-sheet),#modal:has(.archive-sheet){width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px)}.modal-content{padding:24px 18px}.project-sheet-body{padding:18px}.ending-topline{padding:10px 16px;font-size:9px}.ending-hero{min-height:260px}.ending-heading{padding:26px 20px 16px}.ending-heading h2{font-size:31px}.ending-body{padding:10px 20px 24px}.ending-epilogue{font-size:17px;line-height:1.65}.ending-note{display:block;padding:15px}.ending-note p{margin-top:9px;font-size:14px}.ending-stats{gap:14px;justify-content:space-between}.ending-stats>div{display:block}.ending-stats strong{font-size:29px}.ending-stats span{display:block;font-size:9px;max-width:10ch}.ending-projects{padding:12px}.ending-projects summary{font-size:14px}.ending-projects summary>span{float:none;display:block;margin-top:6px}.ending-projects>div{grid-template-columns:1fr;gap:8px}.ending-actions{flex-direction:column;gap:10px}.ending-actions button,.ending-actions .primary{width:100%;margin:0}.archive-sheet{padding:20px 16px}.archive-header h2{font-size:25px}.archive-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.archive-file .file-art{height:95px}.file-tab{padding:8px;font-size:9px;flex-direction:column;gap:4px}.file-caption{padding:12px;gap:8px}.file-caption>b{font-size:16px}.sealed .file-caption>b{font-size:14px}.file-caption>small{font-size:9px}.archive-filters{gap:6px}.archive-filters button{padding:10px;font-size:12px}.archive-footer{flex-wrap:wrap}.project-section-heading h3{font-size:20px}.project-sheet-footer{padding:16px}.emergency-lead{font-size:20px}}
@media(max-width:360px){.resource-value b{font-size:22px}.archive-grid{grid-template-columns:1fr}.archive-file .file-art{height:120px}#factions .faction{grid-template-columns:minmax(0,1fr) 44px 68px}}

.film-image::after,#choices .choice-scene::after{content:"";position:absolute;inset:0;pointer-events:none;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxODAiIGhlaWdodD0iMTgwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjgyIiBudW1PY3RhdmVzPSIzIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPjwvZmlsdGVyPjxwYXRoIGZpbGw9IiM4ODgiIGZpbHRlcj0idXJsKCNuKSIgZD0iTTAgMGgxODB2MTgwSDB6Ii8+PC9zdmc+");background-size:180px 180px;mix-blend-mode:soft-light;opacity:.26}

#event-card .event-header>div{min-width:0}#event-card .speaker-portrait{flex-shrink:0}.audience-panorama{clip-path:polygon(0 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%)}
@media(max-width:760px){#event-card .event-header{padding:18px 16px 0;gap:12px;align-items:flex-start}}

}
