:root{color-scheme:dark;--bg:#101719;--panel:#192326;--line:#334145;--text:#eeeae0;--muted:#a3b2b1;--gold:#e5bd7b;--teal:#91c8be;font:15px/1.55 system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,textarea,select{font:inherit}button{cursor:pointer;background:var(--gold);color:#1c2425;border:1px solid transparent;border-radius:6px;padding:10px 17px;font-weight:650}button:hover{filter:brightness(1.12)}button.secondary{background:transparent;color:var(--text);border-color:var(--line)}button.danger{background:transparent;color:#f4a9a3;border-color:#7c4545}button:disabled{opacity:.5;cursor:wait}a{color:var(--teal)}input,textarea,select{width:100%;background:#10191c;color:var(--text);border:1px solid #445457;border-radius:5px;padding:10px}textarea{resize:vertical;min-height:90px}label{display:block;color:var(--muted);font-size:13px;margin:13px 0}label input,label textarea,label select{display:block;margin-top:6px}h1,h2,h3,p{margin-top:0}h1,h2,.brand{font-family:Georgia,serif;font-weight:normal}h1{font-size:42px;line-height:1.15}h2{font-size:28px}h3{font-size:17px}small,.muted{color:var(--muted)}.eyebrow{letter-spacing:2.5px;font-size:11px;text-transform:uppercase;color:var(--gold);margin-bottom:14px}.brand{font-size:24px;letter-spacing:1px}.brand em{color:var(--gold);font-style:normal}.top{height:78px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px;background:#131d20}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.spread{justify-content:space-between}.shell{max-width:1500px;margin:auto;display:grid;grid-template-columns:235px 1fr;min-height:calc(100vh - 78px)}aside{border-right:1px solid var(--line);padding:28px 20px}.nav{display:block;width:100%;text-align:left;margin:6px 0;background:transparent;color:var(--muted)}.nav.active{background:#29383b;color:var(--gold)}main{padding:38px;min-width:0}.hero{padding-bottom:26px;border-bottom:1px solid var(--line);margin-bottom:28px}.badge{display:inline-block;font-size:11px;letter-spacing:1px;text-transform:uppercase;border:1px solid #4f6565;padding:3px 8px;border-radius:4px;color:var(--teal)}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}.card{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:23px}.card p{color:var(--muted)}.card .title{font-family:Georgia,serif;font-size:24px;margin:12px 0}.tag{display:inline-block;border:1px solid #536361;border-radius:4px;margin:4px 4px 0 0;padding:3px 8px;color:var(--teal);font-size:13px}.weak{color:#e1a69d;border-color:#73534e}.empty{text-align:center;padding:55px 20px;border:1px dashed var(--line);border-radius:8px}.split{display:grid;grid-template-columns:1fr 1fr;gap:24px}.auth{max-width:1100px;min-height:100vh;display:grid;grid-template-columns:1.2fr 1fr;gap:80px;align-items:center;padding:50px;margin:auto}.auth h1{font-size:64px}.auth .intro{font-size:18px;color:var(--muted)}.auth form{padding:32px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}.stack>*{margin-bottom:15px}.roster{margin-top:35px;padding-top:20px;border-top:1px solid var(--line)}.person{padding:8px 0;color:var(--muted)}.dot{display:inline-block;width:7px;height:7px;background:var(--teal);border-radius:50%;margin-right:9px}.roll{border-bottom:1px solid var(--line);padding:18px 0}.roll:first-child{padding-top:0}.score{font-size:30px;font-family:Georgia,serif;color:var(--gold)}.roll p{margin:6px 0}.log{max-height:650px;overflow:auto}.help{font-size:13px;color:var(--muted)}dialog{color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:10px;max-width:920px;width:calc(100% - 30px);max-height:90vh;padding:28px}dialog::backdrop{background:#000b}.theme{margin:15px 0}.actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.error{color:#ffb1a8;min-height:20px}#toast{position:fixed;bottom:24px;right:24px;max-width:360px;background:var(--gold);color:#192326;border-radius:6px;padding:0;z-index:10}#toast:not(:empty){padding:13px 20px}.pre{white-space:pre-wrap;overflow-wrap:anywhere}.full{width:100%}.inline-check{display:flex;align-items:center;gap:8px}.inline-check input{width:auto;margin:0}.section-head{margin-bottom:22px}.stat{font-size:38px;font-family:Georgia,serif;color:var(--gold)}:focus-visible{outline:2px solid var(--gold);outline-offset:3px}

.crew-card{border-color:var(--teal);margin-bottom:24px}.crew-card h3{margin:10px 0}

/* Character workspace: shared crew, personal themes, and move tools. */
.character-workspace{--bg:#04141b;--panel:#0a2029;--line:#2c4d5b;--text:#edf1f3;--muted:#a9c1d2;--teal:#59d9cb;--gold:#f1cb69;background:radial-gradient(ellipse at 35% 40%,#0a222a66,transparent 65%),var(--bg);min-height:100vh;font-size:14px;line-height:1.45}
.character-top{height:58px;padding:0 28px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);background:linear-gradient(110deg,#102832,#06151c 65%,#102832)}
.character-top .brand{border:0;background:none;color:var(--text);padding:0;font-size:27px;font-weight:bold;letter-spacing:1px}.character-top .brand em{color:#c6d0d8}.character-top>span{font:18px Georgia,serif}.character-top>.secondary{padding:6px 12px;font-size:12px}
.character-layout{display:grid;grid-template-columns:minmax(0,1fr) 430px;max-width:1920px;margin:auto}.character-main{padding:0 20px 28px;min-width:0}.character-identity{display:flex;align-items:center;flex-wrap:wrap;gap:18px;padding:20px 6px;min-height:116px}.character-avatar{flex-shrink:0;width:78px;height:82px;display:grid;place-items:center;border:1px solid #3b6979;border-radius:7px;font:30px Georgia,serif;letter-spacing:3px;color:#8ed3d7;background:radial-gradient(ellipse at 50% 25%,#3d6e7866,transparent 70%),linear-gradient(135deg,#183749,#07161e);box-shadow:inset 0 0 30px #020d1680}.character-title{min-width:220px;flex:1}.character-title h1{font:bold 30px/1.1 Georgia,serif;text-transform:uppercase;letter-spacing:1px;margin:0 0 6px;overflow-wrap:anywhere}.character-title p{font:17px/1.4 Georgia,serif;margin:0}.character-title p>span{color:var(--teal)}.character-title small{font:12px system-ui,sans-serif}.character-visibility{font-size:12px;padding:7px 10px;border:1px solid #274754;border-radius:5px;color:#bed1df;background:#0c202a;white-space:nowrap}.character-identity>.secondary{margin-left:auto;flex-shrink:0}
.character-workspace button.secondary{background:linear-gradient(#122e3a,#10232d);border:1px solid #426579;color:#f3f4f6;border-radius:5px;padding:8px 14px;font:14px Georgia,serif;box-shadow:inset 0 0 0 3px #11232c88}.character-workspace button:disabled{cursor:default;opacity:.5}.character-workspace button:focus-visible{outline:2px solid #7adee6;outline-offset:3px}
.character-crew{border:1px solid #9471d4;border-top:7px solid #9471d4;border-radius:8px;background:linear-gradient(130deg,#242138aa,#111a2d99);padding:16px 18px 20px;margin-bottom:22px}.crew-heading{display:flex;justify-content:space-between;gap:16px;margin-bottom:22px}.crew-kicker{font-size:13px;letter-spacing:1.5px;font-weight:650;color:#c4a6ff;margin-bottom:2px}.crew-name-row{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.crew-name-row h2{font:34px/1.2 Georgia,serif;margin:2px 0}.crew-link{display:flex;align-items:center;gap:8px;font-size:24px;color:#c8b6ff}.crew-link small{font:13px Georgia,serif;color:inherit}.crew-actions{display:flex;flex-direction:column;align-items:flex-end;gap:10px;flex-shrink:0}.crew-visibility{font-size:11px;border:1px solid #9b7bda;border-radius:4px;background:#30294e;padding:4px 8px;color:#dfd4ff}.crew-details{display:grid;grid-template-columns:1.5fr 2fr 1.2fr auto auto;gap:18px;align-items:start}.crew-details>div+div{border-left:1px solid #34465e;padding-left:18px}.field-caption,.theme-track>span{display:block;color:#b7d0e2;font:14px/1.4 Georgia,serif;margin-bottom:6px}.crew-details p{margin:0;font-size:16px}.tag-list{display:flex;flex-wrap:wrap;gap:8px}.sheet-tag{font:12px/1.4 system-ui,sans-serif;padding:7px 10px;background:linear-gradient(#16323e,#0e222c);color:#e4edf4;border:1px solid #416375;border-radius:4px;box-shadow:inset 0 0 0 2px #0a1a2266;text-align:left;font-weight:400}.sheet-tag.weak{color:#f3c4c9;border-color:#89505d;background:linear-gradient(#382731,#241d27)}.sheet-tag.chosen{border-color:var(--accent,var(--teal));color:var(--accent,var(--teal));box-shadow:inset 0 0 0 1px var(--accent,var(--teal));background:#10333a}.character-crew .sheet-tag.chosen{--accent:#c2a0ff}.sheet-tag:disabled{opacity:1}.pips{display:flex;gap:7px}.pip{display:block;width:17px;height:17px;border-radius:50%;border:1px solid #90b0c3;background:#061722;box-shadow:inset 0 0 0 2px #071822}.pip.filled{background:linear-gradient(135deg,#8ce8df,var(--accent,#59ccbf));border-color:var(--accent,#59ccbf);box-shadow:none}.character-crew .pip.filled{--accent:#ad8be9;background:linear-gradient(135deg,#d0b5ff,#9a7ade)}
.personal-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:10px}.personal-heading h2{font:19px Georgia,serif;letter-spacing:.8px;margin:0;color:#d4e0eb}.rift-themes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}.rift-theme{--accent:#5cdbcf;border:1px solid #297771;border-top:4px solid #54b9ad;border-radius:7px;background:linear-gradient(120deg,#15393666,#0b232c66);min-width:0;overflow:hidden}.rift-theme.logos{--accent:#f0ca64;border-color:#897441;border-top-color:#c4ab61;background:linear-gradient(120deg,#3b362666,#0c242d77)}.theme-heading{display:flex;align-items:center;gap:13px;padding:12px 16px}.theme-symbol{font:40px/.9 Georgia,serif;color:var(--accent);width:40px;text-align:center;flex-shrink:0}.theme-name{flex:1;min-width:0}.theme-name h3{font:bold 20px/1.25 Georgia,serif;margin:0 0 3px;overflow-wrap:anywhere}.theme-kind{font-size:13px;letter-spacing:1px;color:var(--accent)}.theme-kind-detail{font:13px Georgia,serif;color:#b2ced7}.logos .theme-kind-detail{color:#dcc89e}.theme-toggle{padding:0;width:28px;height:32px;background:none;border:0;color:var(--accent);font:25px system-ui,sans-serif;flex-shrink:0}.theme-body{padding:0 16px 16px}.theme-identity{border-top:1px solid #29424b;padding-top:10px}.theme-identity p{margin:0 0 12px}.theme-tag-groups{display:grid;grid-template-columns:minmax(0,3fr) minmax(90px,1fr);gap:14px;min-height:70px}.weakness-group{border-left:1px solid #28444c;padding-left:14px}.theme-tracks{display:flex;gap:24px;border-top:1px solid #28444c;margin-top:18px;padding-top:10px}.theme-tracks>div+div{border-left:1px solid #345464;padding-left:24px}.folded{border-top-width:1px}.folded .theme-heading{padding:14px 16px}.folded .theme-name h3{font-size:18px}.folded .theme-symbol{font-size:32px}.folded .theme-kind-detail{display:none}.compact-tracks{display:flex;gap:12px;border-left:1px solid #294651;padding-left:14px}.compact-tracks .theme-track>span{font-size:11px}.compact-tracks .pip{width:13px;height:13px}.compact-tracks .pips{gap:5px}.theme-heading>small{font-size:11px;white-space:nowrap}.quiet{color:#8eacbc;font-size:12px}
.character-sidebar{padding:20px 16px 28px;border-left:1px solid var(--line);background:#06161c}.move-panel,.status-panel,.sheet-info{border:1px solid #315569;border-radius:7px;background:linear-gradient(130deg,#0b212b,#091c24);padding:16px;margin-bottom:16px}.character-sidebar h2{font:bold 19px Georgia,serif;letter-spacing:.6px;display:flex;align-items:center;gap:16px;margin:0 0 14px;padding-bottom:14px;border-bottom:1px solid #2b4655}.character-sidebar h2>span{font-size:29px;line-height:1}.character-sidebar label{font-size:14px;color:#edf1f3;margin:14px 0}.character-sidebar select{background:#0d222d;border-color:#385b6e;padding:10px;font:16px Georgia,serif}.selected-caption{display:block;margin:14px 0 6px}.selected-tag{display:flex;align-items:center;gap:9px;width:100%;padding:8px;margin-bottom:7px;border:1px solid #37596d;border-radius:5px;background:linear-gradient(#102e3a,#0c2029);color:#fff;font-size:12px;font-weight:400;text-align:left}.selected-tag i{width:15px;height:15px;border-radius:50%;background:#58cabc;flex-shrink:0}.selected-tag.logos i{background:#eac256}.selected-tag.crew i{background:#ac88eb}.selected-tag.negative i{background:#db8895}.selected-tag span{flex:1}.selected-tag strong{font-weight:500;white-space:nowrap}.selected-tag b{font-size:10px;border:1px solid #9c7bd7;background:#2b2549;border-radius:3px;padding:2px 5px}.tag-hint{border:1px dashed #2e4c5e;border-radius:5px;padding:14px;line-height:1.6}.modifier-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0}.modifier-row input{width:65px;text-align:right;margin:0;background:#0c2029;border:1px solid #37596d;padding:5px}.power-total{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #36556a;padding:13px 0;font:16px Georgia,serif}.power-total strong:last-child{font-size:24px}.roll-button{background:linear-gradient(120deg,#ffde77,#d0a64d);border:1px solid #f7d774;color:#08121a;width:100%;padding:12px 8px;font:bold 22px Georgia,serif;box-shadow:inset 0 0 15px #fae5b044}.roll-visibility{font:12px Georgia,serif;text-align:center;color:#b9cbd6;margin:12px 0 0}.status-list{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.status-chip{border:1px solid #a8616f;color:#f4c4d0;background:linear-gradient(120deg,#3c2431,#221e2a);padding:8px 12px;border-radius:5px;font:14px Georgia,serif}.status-chip:nth-child(even){border-color:#718bcd;background:#15283b;color:#dce6ff}.status-panel .help{margin:12px 0 0;font-size:11px}.sheet-info{display:flex;gap:16px;color:#9fc3d6;padding:14px 16px}.sheet-info>span{font-size:20px}.sheet-info p{font:14px/1.5 Georgia,serif;margin:0}.character-bottom{margin-top:24px;border-top:1px solid #3b6375}.sheet-tabs{display:flex;gap:24px;border-bottom:1px solid #315365}.sheet-tabs button{font:15px Georgia,serif;color:#aebfcc;background:none;border:0;border-top:3px solid transparent;border-radius:0;padding:14px 18px}.sheet-tabs button[aria-selected=true]{color:#f2f4f5;border-top-color:#73cfe8;background:#102a35}.sheet-tab-content{padding:18px 4px}.story-tag-summary .tag{font-size:12px;color:#a9d6d3}.latest-roll{display:flex;gap:12px;align-items:center;border-top:1px solid #36556a;padding-top:12px;margin-top:14px}.latest-roll>strong{font:34px Georgia,serif;color:var(--gold)}.latest-roll small{display:block;font-size:11px;margin-top:4px}




@media(prefers-reduced-motion:no-preference){.sheet-tag,.selected-tag,.theme-toggle{transition:background .15s,border-color .15s,filter .15s}}
.rift-theme.logos .pip.filled{background:linear-gradient(135deg,#ffe49a,#e7bd54)}



/* Desktop workspace: preserve the two-column sheet and side panel. */
body{min-width:1200px}
/* Direct sheet editing and question-linked tags. */
button.pip{padding:0;min-width:17px;cursor:pointer}.compact-tracks button.pip{min-width:13px}.pip:disabled{opacity:1;cursor:default}.pip:not(:disabled):hover{outline:2px solid var(--accent,#b99ee8);outline-offset:3px}
.question-tag{display:inline-flex;position:relative;align-items:stretch;max-width:100%;border-radius:4px}.question-tag .sheet-tag{border-top-left-radius:0;border-bottom-left-radius:0}.question-letter{display:flex;position:relative;align-items:center;justify-content:center;min-width:25px;padding:4px 6px;border:1px solid #426375;border-right:0;border-radius:4px 0 0 4px;background:#152d3a;color:var(--accent,#c9b1fb);font:bold 12px Georgia,serif;cursor:help}.question-tooltip{position:absolute;display:none;z-index:20;bottom:calc(100% + 9px);left:0;width:280px;max-width:35vw;padding:12px 14px;background:#1a3040;color:#f4f5f8;border:1px solid var(--accent,#bfa2f5);border-radius:6px;box-shadow:0 5px 20px #0009;font:13px/1.5 system-ui,sans-serif;white-space:normal;overflow-wrap:anywhere;pointer-events:none}.question-tooltip strong{display:block;color:var(--accent,#c8b2fb);margin-bottom:4px}.question-letter:hover,.question-letter:focus-visible{background:#345166;color:#fff;outline:2px solid var(--accent,#c6aaff);outline-offset:1px}.question-letter:hover .question-tooltip,.question-letter:focus-visible .question-tooltip{display:block}.question-tag:has(.question-letter:hover) .sheet-tag,.question-tag:has(.question-letter:focus-visible) .sheet-tag{border-color:var(--accent,#c6aaff);background:#203c4c}.rift-theme{overflow:visible}.tag-editor h4{margin:18px 0 6px}.tag-editor-row{position:relative;border:1px solid var(--line);border-radius:6px;margin-bottom:10px;padding:10px;display:grid;grid-template-columns:1fr 100px 32px;gap:8px}.tag-editor-row label{margin:0}.tag-editor-row label:nth-child(3){grid-column:1/3}.tag-editor-row textarea{min-height:65px}.tag-editor-row>button{grid-column:3;grid-row:1;align-self:end;padding:7px}.status-list{display:block}.status-row{display:flex;gap:8px;align-items:center;margin-bottom:10px}.status-row .status-chip{flex:1;text-align:left;margin:0;font-weight:400}.status-row .status-chip strong{white-space:nowrap}.status-roll-controls{display:flex;gap:4px}.status-roll-controls button{background:#102b37;color:#d4e5ed;border:1px solid #406376;border-radius:4px;padding:6px;font-size:12px;min-width:31px}.status-roll-controls button[data-status-sign="1"]{color:#9ee4b9;border-color:#39644c;background:#152e23}.status-roll-controls button[data-status-sign="-1"]{color:#efb0b5;border-color:#75484e;background:#321f25}.status-roll-controls button[data-status-sign="1"].active{background:#26573c;border-color:#7adc9d;color:#ddffea;box-shadow:inset 0 0 0 1px #7adc9d44}.status-roll-controls button[data-status-sign="-1"].active{background:#653039;border-color:#ed8997;color:#ffe1e7;box-shadow:inset 0 0 0 1px #ed899744}.selected-tag.status i,.selected-tag.status.negative i{background:#8eb6df}.question-tag .sheet-tag{overflow-wrap:anywhere}.status-name{overflow-wrap:anywhere}
.theme-tag-groups{grid-template-columns:minmax(0,2fr) minmax(130px,1fr)}.question-tag .sheet-tag{overflow-wrap:normal;word-break:normal}.question-tag .tag{margin:0;border-top-left-radius:0;border-bottom-left-radius:0}.status-row:nth-child(even) .status-chip{border-color:#718bcd;background:#15283b;color:#dce6ff}
.selected-entry{display:flex;align-items:stretch;margin-bottom:7px}.selected-entry .selected-tag{margin-bottom:0;min-width:0}.selected-entry>.question-letter{border-radius:4px 0 0 4px}.selected-entry>.question-letter+.selected-tag{border-top-left-radius:0;border-bottom-left-radius:0}.selected-entry .question-tooltip{left:auto;right:0}.selected-tag.negative i{background:#db8895}
/* Outcomes use stored classifications: ordinary 12+ rolls stay strong hits. */
.outcome-miss{--result-color:#f18d96;--result-tint:#49242b}.outcome-strong{--result-color:#70dda0;--result-tint:#183c2c}.outcome-dynamite{--result-color:#c2a0ff;--result-tint:#352550}.outcome-hit{--result-color:var(--gold);--result-tint:#3b3020}
.roll.outcome-hit,.roll.outcome-miss,.roll.outcome-strong,.roll.outcome-dynamite{border-left:3px solid var(--result-color);padding-left:14px;background:linear-gradient(90deg,var(--result-tint),transparent)}
.roll .score,.latest-roll>strong{color:var(--result-color,var(--gold))}.outcome-hit .outcome-badge,.outcome-miss .outcome-badge,.outcome-strong .outcome-badge,.outcome-dynamite .outcome-badge{color:var(--result-color);border-color:var(--result-color)}
.latest-roll.outcome-hit,.latest-roll.outcome-miss,.latest-roll.outcome-strong,.latest-roll.outcome-dynamite{color:var(--result-color);border-color:var(--result-color);border-left:3px solid var(--result-color);border-radius:4px;padding:12px;background:var(--result-tint)}.latest-roll small{color:var(--muted)}
.dynamite-option{border:1px solid #4b4264;padding:10px 12px;border-radius:5px;background:#201d2e;cursor:pointer}.dynamite-option input{accent-color:#b28aef;width:auto;margin:0}.dynamite-option small{display:block;color:#ad9bc9;font-size:11px}.dynamite-option.enabled{border-color:#b28aef;background:#302441}.character-sidebar .dynamite-option{display:flex;align-items:center;gap:10px;font-size:14px}
/* Move-specific resolution: benefits, choices, complications, and source pages. */
.resolved-move{border:1px solid var(--result-color,var(--gold));border-left:4px solid var(--result-color,var(--gold));border-radius:7px;padding:20px 22px;margin:0 0 24px;background:linear-gradient(115deg,var(--result-tint,#29271c),#0b2029 70%)}.resolved-move h2{font:26px Georgia,serif;margin:0}.resolved-move .eyebrow{color:var(--result-color,var(--gold));margin:0 0 6px}.resolved-score{display:flex;align-items:center;gap:12px;color:var(--result-color,var(--gold))}.resolved-score>strong{font:42px Georgia,serif}.resolved-score>span{font-size:16px;font-weight:650}.outcome-summary{font-size:15px;line-height:1.6;margin:12px 0;color:var(--text)}.outcome-resources{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.outcome-resources>span{border:1px solid var(--result-color,var(--gold));border-radius:5px;padding:7px 12px;color:var(--result-color,var(--gold));background:#07131b88}.outcome-resources strong{font-size:20px;margin-right:5px}.outcome-section{border-top:1px solid #34505c;padding-top:12px;margin-top:14px}.outcome-section h4{font-size:14px;color:var(--result-color,var(--gold));margin:0 0 8px}.outcome-section ul{padding-left:22px;margin:0}.outcome-section li{margin:8px 0;line-height:1.5}.outcome-notes{border-top:1px solid #34505c;margin-top:16px;padding-top:8px;font-size:13px;color:var(--muted)}.outcome-notes p{margin:8px 0}.rules-reference{font-size:11px;color:var(--muted);margin:14px 0 0}.outcome-details>summary{cursor:pointer;color:var(--result-color,var(--gold));font-size:13px;padding:5px 0}.roll .outcome-summary{font-size:14px;margin:12px 0 6px}.roll .outcome-section{font-size:13px}.roll .outcome-notes{font-size:12px}.roll .outcome-section li{margin:6px 0}.move-panel input:disabled{opacity:.45}.dynamite-option:has(input:checked){border-color:#b28aef}
/* Status spectrum cards: six tiers plus progress toward the next tier. */
.status-card{border:1px solid #36586e;border-radius:7px;background:linear-gradient(135deg,#122938,#0d202d);padding:12px;margin:0 0 13px}.status-card-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.status-card-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:10px}.status-card .status-roll-controls button{font-size:11px;min-width:31px;padding:5px}.status-card button:disabled,.status-card select:disabled{opacity:.4;cursor:default}

/* Neutral blue tier/pip progress, with signed green/red roll controls. */
.status-progress-track{display:grid;grid-template-columns:repeat(16,minmax(0,1fr));gap:3px;background:#07171e;border:1px solid var(--line);padding:5px;border-radius:5px}.status-track-cell{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:48px;min-width:0;border:1px solid #35515d;border-radius:2px;background:#0d242e;padding:0 0 5px;color:#859ca9;cursor:pointer;box-shadow:none}.status-track-cell strong{font:600 21px/1 Georgia,serif}.status-track-cell small{position:absolute;top:5px;left:0;right:0;text-align:center;font:600 6px/1 system-ui,sans-serif;color:inherit;letter-spacing:.1px}.status-track-cell.filled-position{background:linear-gradient(#2c5677,#22445f);color:#e1efff;border-color:#547fa3}.status-track-cell.current-tier strong{font-weight:bold;color:#fff}.status-track-cell.selected-position{border-color:#9ecbf6;box-shadow:inset 0 0 0 1px #9ecbf6;background:linear-gradient(#3c6d97,#315a7e)}.status-track-cell:hover:not(:disabled){border-color:#a8ceef;background:#284760;filter:none;z-index:2}.status-track-cell:focus-visible{outline:2px solid #9ecbf6;outline-offset:2px;z-index:3}.status-card .status-track-cell:disabled{opacity:1;cursor:default}.printed-status-card .status-card-footer{margin-top:12px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Compact status controls: editable title, remove action, and roll modifiers. */
.status-name-input{flex:1;min-width:0;border:1px solid transparent;border-radius:4px;background:transparent;padding:4px 5px;color:var(--text);font:bold 17px/1.35 Georgia,serif;cursor:text}.status-name-input:not([readonly]):hover{border-color:var(--line)}.status-name-input:focus{background:#0c2030;border-color:#9ecbf6;outline:1px solid #9ecbf6;outline-offset:0}.status-name-input[readonly]{cursor:default}.status-remove{flex-shrink:0;width:27px;height:27px;padding:0;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--muted);font:22px/1 system-ui,sans-serif}.status-remove:hover:not(:disabled){color:#ffb0bc;background:#512b34;border-color:#df8193}.printed-status-card .status-card-heading{margin-bottom:8px}.printed-status-card .status-card-footer{justify-content:space-between;margin-top:8px}.status-tier-label{font-size:12px;color:#adc3d8}.add-status-inline{display:flex;align-items:center;gap:8px}.add-status-inline input{min-width:0;flex:1;font-size:13px;padding:8px 10px}.character-workspace .add-status-inline .secondary{font:13px system-ui,sans-serif;white-space:nowrap;padding:8px 12px}
/* Consistent adjustment stepper and controls for Mythos / Logos moves. */
.adjustment-control{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:18px 0;color:var(--text);font-size:14px}.adjustment-stepper{display:flex;align-items:center;border:1px solid #3a5b6d;border-radius:6px;overflow:hidden;background:#0b202a;flex-shrink:0}.adjustment-step{display:grid;place-items:center;width:34px;height:36px;padding:0;border:0;border-radius:0;background:#16313e;color:#c4dbe6}.adjustment-step[data-step="1"]:hover{background:#20503b;color:#c0ffda}.adjustment-step[data-step="-1"]:hover{background:#4d2931;color:#ffd5df}.adjustment-stepper input{width:52px;height:36px;appearance:textfield;-moz-appearance:textfield;border:0;border-left:1px solid #304b5b;border-right:1px solid #304b5b;border-radius:0;background:#0b202a;text-align:center;padding:0 4px;margin:0;font-size:16px;font-variant-numeric:tabular-nums}.adjustment-stepper input::-webkit-inner-spin-button,.adjustment-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.adjustment-step:focus-visible{outline-offset:-3px}.adjustment-stepper input:focus-visible{outline-offset:-2px}.adjustment-control[hidden],.stop-sacrifice[hidden],.dynamite-option[hidden],#power-tags[hidden]{display:none!important}.stop-sacrifice{border:1px solid #735985;background:#211f31;border-radius:6px;padding:0 12px 10px;margin:16px 0}.stop-sacrifice .help{margin-bottom:0;font-size:12px}.stop-sacrifice select{border-color:#715e86}.character-sidebar .stop-sacrifice label{margin:10px 0}.character-workspace optgroup{font-weight:650;color:#b7cbd8}.character-workspace option{color:var(--text);font-weight:400}
/* Personal theme palettes: violet Mythos, parchment Logos, teal shared crew. */
.rift-theme.mythos,.personal-theme-editor.mythos{--accent:#d5a2ed;border-color:#79558e;border-top-color:#a469c1;background:linear-gradient(120deg,#34213eaa,#181d30aa)}
.rift-theme.logos,.personal-theme-editor.logos{--accent:#e9dcc1;border-color:#857a63;border-top-color:#c5b48e;background:linear-gradient(120deg,#37342baa,#16242caa)}
.rift-theme.mythos .pip.filled{background:linear-gradient(135deg,#e4bef7,#a66bc5);border-color:#c395dc}.rift-theme.logos .pip.filled{background:linear-gradient(135deg,#fff3d6,#c7b58c);border-color:#dfcfac}
.rift-theme.mythos .theme-kind-detail{color:#c5afd6}.rift-theme.logos .theme-kind-detail{color:#d3c8b2}.rift-theme.mythos .sheet-tag.chosen{background:#392846}.rift-theme.logos .sheet-tag.chosen{background:#35342c}
.character-crew{--accent:#86cfc0;border-color:#4b8e83;border-top-color:#6ab7a6;background:linear-gradient(130deg,#173d36aa,#10293299)}.crew-kicker,.crew-link{color:#a2ddcd}.crew-visibility{color:#c5eee4;border-color:#5b9b8b;background:#1b4038}.character-crew .sheet-tag.chosen{--accent:#a0dfce;background:#194438}.character-crew .pip.filled{--accent:#8ed5c2;background:linear-gradient(135deg,#b8f0da,#61ad99)}
.selected-tag.mythos i{background:#c291df}.selected-tag.logos i{background:#dfcfaa}.selected-tag.crew i{background:#8bd2bc}.selected-tag b{border-color:#5c9b89;background:#1a4038;color:#bceada}.character-title p span{color:#d0a7e7}
/* Rulebook-guided theme editor. Each theme has its own collapsible workspace. */
#personal-themes{display:flex;flex-direction:column;gap:14px;margin:18px 0 26px}.personal-theme-editor{border:1px solid #79558e;border-top:3px solid var(--accent);border-radius:8px;min-width:0}.personal-theme-editor>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:14px;padding:15px 20px}.personal-theme-editor>summary::-webkit-details-marker{display:none}.personal-theme-editor>summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:5px}.editor-theme-number{display:grid;place-items:center;flex-shrink:0;border:1px solid var(--accent);border-radius:50%;width:30px;height:30px;color:var(--accent);font:18px Georgia,serif}.personal-theme-editor summary strong{display:block;font:bold 20px Georgia,serif}.personal-theme-editor summary small{display:block;color:var(--accent);font-size:12px;margin-top:4px}.editor-expand{margin-left:auto;color:var(--accent);font-size:24px}.personal-theme-editor[open] .editor-expand{transform:rotate(180deg)}.personal-theme-fields{padding:0 22px 22px;border-top:1px solid #77618455}.theme-setup{display:grid;grid-template-columns:160px 1fr;gap:16px}.themebook-intro{border-left:3px solid var(--accent);padding:9px 12px;color:var(--accent);background:#11172266;margin:2px 0 18px;font-size:14px}.personal-theme-fields textarea{min-height:70px}.personal-theme-fields label{color:#c8c2d2}.personal-theme-fields input:focus,.personal-theme-fields select:focus,.personal-theme-fields textarea:focus{outline-color:var(--accent);border-color:var(--accent)}.theme-answer-group{margin:24px 0;padding-top:20px;border-top:1px solid #77618455}.theme-answer-group h4{font:21px Georgia,serif;margin:0;color:var(--accent)}.answer-count{font-size:12px;color:var(--muted)}.theme-answer{padding:14px 16px;margin-bottom:12px;border:1px solid #6c5a7655;border-radius:6px;background:#0e162166}.answer-question{display:flex;align-items:center;gap:12px}.answer-question label{flex:1;min-width:0;margin:0}.answer-question select{font-size:13px}.answer-remove{width:30px;height:32px;padding:0;font-size:22px;align-self:flex-end}.answer-remove:hover{color:#ffb0bc;border-color:#b56778;background:#512b34}.answer-prompt{font:16px/1.5 Georgia,serif;color:var(--accent);margin:12px 0 10px}.custom-question{display:grid;grid-template-columns:100px 1fr;gap:12px}.custom-question[hidden]{display:none}.custom-question textarea{min-height:65px}.theme-progress-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.themebook-source{color:var(--muted);font-size:12px}.personal-theme-editor .help{font-size:12px;line-height:1.6}.personal-theme-editor button[data-remove-theme]:hover{color:#ffb0bc;border-color:#b56778}.personal-theme-fields select{min-width:0}.personal-theme-fields>label>textarea{min-height:70px}
/* Immutable roll contributions, shown in every result and log entry. */
.roll-applied-effects{margin:14px 0;padding:12px 14px;border:1px solid #3c5363;border-radius:5px;background:#0c1d2980}.roll-applied-effects ul{list-style:none;padding:0;margin:0}.roll-applied-effects li{display:flex;align-items:baseline;gap:14px;justify-content:space-between;margin:6px 0;font-size:13px}.roll-applied-effects li span{overflow-wrap:anywhere}.roll-applied-effects li strong{white-space:nowrap;font-size:12px}.roll-applied-effects .positive strong{color:#a8d8b9}.roll-applied-effects .negative strong{color:#e4a0ac}.roll-applied-effects .help{margin:8px 0 0}.roll-effects-legacy{font-style:italic;font-size:12px}
/* Shared themebook and improvements use the same guided editor as personal themes. */
.personal-theme-editor.crew{--accent:#a0dfce;border-color:#4b8e83;border-top-color:#6ab7a6;background:linear-gradient(120deg,#173d36aa,#10293299)}.crew-book-label{align-self:center;color:var(--accent);font:20px Georgia,serif}.crew-book-label span{display:block;color:var(--muted);font:12px system-ui,sans-serif;margin-top:6px}.theme-extra-help[hidden]{display:none}.theme-improvement-editor{border-top:1px solid #77618455;margin-top:22px;padding-top:20px}.theme-improvement-editor>h4{font:22px Georgia,serif;color:var(--accent);margin:0 0 10px}.theme-improvement-editor h4>span{font:12px system-ui,sans-serif;color:var(--muted);margin-left:8px}.improvement-preview{font:15px/1.6 Georgia,serif;color:var(--accent);padding:12px 14px;border-left:2px solid var(--accent);background:#101b2466}.acquired-improvement{border:1px solid #77618466;background:#111b2366;border-radius:6px;padding:12px 14px;margin:12px 0}.acquired-improvement h5{font:bold 17px Georgia,serif;color:var(--accent);margin:0}.acquired-improvement p{font-size:13px;line-height:1.7;margin:10px 0}.acquired-improvement textarea{min-height:60px}.acquired-improvement button{font-size:20px;padding:0;width:28px;height:28px}.acquired-improvement button:hover{color:#ffb0bc;border-color:#b56778}.standard-advancements{border:1px solid #6c637966;border-radius:5px;padding:12px 14px;margin:18px 0}.standard-advancements summary{cursor:pointer;color:var(--accent)}.standard-advancements li{font-size:13px;margin:8px 0}.theme-improvements{border-top:1px solid #5d647255;margin-top:16px;padding-top:12px}.theme-improvements details{margin:6px 0}.theme-improvements summary{cursor:pointer;color:var(--accent,#a0dfce);font:14px/1.5 Georgia,serif}.theme-improvements p{font-size:12px;line-height:1.65;margin:8px 0;color:#d1d7df}.theme-improvements .improvement-note{white-space:pre-wrap;color:#bdc5d1;border-left:2px solid var(--accent,#a0dfce);padding-left:10px}.crew-card{--accent:#a0dfce}.personal-theme-editor>summary small{max-width:100%}
.question-source{margin-top:10px}.question-source>summary{font-size:11px;color:var(--muted);cursor:pointer}.question-source label{max-width:360px}.browse-improvements{font-size:12px}
/* Compact theme headers and full-width powers, with weakness and borrowed power rows. */
.rift-theme .theme-heading{display:grid;grid-template-columns:28px minmax(0,1fr) auto 22px;gap:10px;padding:12px 14px}.rift-theme .theme-symbol{width:28px;font-size:30px}.rift-theme .theme-name h3{font-size:18px}.rift-theme .theme-kind{font-size:11px}.rift-theme .theme-kind-detail{font-size:12px}.rift-theme .compact-tracks{padding-left:10px;gap:10px}.rift-theme .compact-tracks .pips{gap:4px}.rift-theme .theme-toggle{width:22px}.rift-theme .theme-meta{display:block;font-size:10px;color:var(--muted);margin-top:3px}.folded .theme-kind-detail{display:inline}.rift-theme .theme-body{padding:0 14px 14px}.theme-tag-groups{display:flex;flex-direction:column;gap:13px;min-height:0}.theme-tag-groups>section{min-width:0}.theme-tag-groups .weakness-group,.crew-tag-groups .weakness-group{border-left:0;padding:10px 0 0;border-top:1px solid #78526066}.weakness-group>.field-caption{font-size:12px;color:#d4b1ba;margin-bottom:7px}.foreign-powers{padding-top:9px;border-top:1px dashed #6b608366}.foreign-power-caption{display:block;font-size:10px;color:var(--accent);letter-spacing:.6px;text-transform:uppercase;margin-bottom:7px}.tag-list{gap:7px}.rift-theme .theme-improvements{margin-top:13px;padding-top:10px}.theme-identity p{font-size:14px;margin-bottom:12px}.theme-identity .field-caption{font-size:12px}
.power-tag-pair .sheet-tag{border-radius:0;border-right:0}.tag-burn{display:grid;place-items:center;width:24px;flex-shrink:0;padding:0;border:1px solid #416375;border-radius:0 4px 4px 0;background:#122633;color:#8d9da9}.tag-burn:hover:not(:disabled){color:#ffd096;background:#493427;border-color:#bd9669;filter:none}.tag-burn.active{color:#efbc7c;border-color:#8e6c47;background:#322b27}.tag-burn:disabled{opacity:.65;cursor:default}.burned-tag .sheet-tag,.burned-tag .tag{text-decoration:line-through;color:#83919c;background:#15232c;border-color:#46535d;box-shadow:none}.burned-tag>.question-letter{color:#97a0aa;background:#1a2630;border-color:#46535d}.burned-tag .sheet-tag:disabled{cursor:default}.inline-check.burned-tag{color:#83919c;text-decoration:line-through}.editor-burned{font-size:12px;margin-bottom:0}.crew-header-controls{display:flex;align-items:center;gap:18px}.crew-header-controls .compact-tracks{border-left:0;padding-left:0}.crew-details{grid-template-columns:minmax(170px,1fr) minmax(0,3fr)}.crew-tag-groups{display:flex;flex-direction:column;gap:12px}.crew-details>div+div{padding-left:18px}.crew-header-controls .theme-track>span{color:#b8d9ce}
.theme-tag-groups .weakness-group,.crew-tag-groups .weakness-group{display:flex;align-items:flex-start;gap:12px}.weakness-group>.field-caption{flex-shrink:0;margin:7px 0 0}.weakness-group>.tag-list{flex:1;min-width:0}.crew-name-row{gap:12px}.crew-heading{margin-bottom:16px}
/* Explicit burn-for-a-hit mode; ordinary burn controls remain available. */
.burn-hit-option{display:flex;align-items:center;gap:10px;border:1px solid #4b5967;background:#142532;border-radius:5px;padding:10px 12px;cursor:pointer}.burn-hit-option input{width:auto;margin:0;accent-color:#e69b61}.burn-hit-option>span:last-child{flex:1}.burn-hit-option small{display:block;color:var(--muted);font-size:11px;line-height:1.5;margin-top:3px}.burn-hit-icon{color:#a3afbb;display:flex;align-items:center}.burn-hit-option.enabled{background:#302820;border-color:#bc895e}.burn-hit-option.enabled .burn-hit-icon{color:#e7a26c}.burn-hit-option:has(input:disabled){opacity:.6;cursor:default}.burn-hit-option[hidden]{display:none}.selected-burn-note{display:block;color:#d8ad83;font-size:10px;margin-top:2px}.flame-core{fill:#122633}.tag-burn.active{color:#8d9da9;border-color:#56616a;background:#1e2b34}.tag-burn.active .flame-core{fill:#1e2b34}.tag-burn:hover:not(:disabled),.tag-burn:focus-visible{color:#f39751;background:#3c2c21;border-color:#bd865a;filter:none}.tag-burn:hover:not(:disabled) .flame-core,.tag-burn:focus-visible .flame-core{fill:#ffe1a0}.burn-hit-option .flame-core{fill:#142532}.burn-hit-option.enabled .flame-core{fill:#302820}.burn-hit-option:hover:not(:has(input:disabled)) .flame-outer{fill:#f39751}.burn-hit-option:hover:not(:has(input:disabled)) .flame-core{fill:#ffe1a0}.burn-hit-record{display:flex;align-items:center;gap:7px;flex-wrap:wrap;color:#e6b383;font-size:12px;margin:0 0 12px}.burn-hit-record .flame-core{fill:#0c1d29}.roll-button .flame-core{fill:#e1bc62}.roll-button .flame-icon{vertical-align:middle;margin-right:2px}
/* One compact options row; explanations appear on hover/focus, calculation only when armed. */
.move-options{margin:12px 0}.move-options[hidden],.move-options label[hidden],.burn-hit-calculation[hidden]{display:none!important}.move-options-row{display:flex;align-items:center;gap:18px;min-height:29px}.move-options .dynamite-option,.move-options .burn-hit-option,.character-sidebar .move-options .dynamite-option{position:relative;display:inline-flex;align-items:center;gap:7px;flex-shrink:0;border:0;border-radius:4px;background:none;margin:0;padding:4px 0;font:500 13px/1.4 system-ui,sans-serif;color:#c8d3de;cursor:pointer}.move-options .dynamite-option.enabled,.move-options .dynamite-option:has(input:checked){background:none;color:#c9adf4}.move-options .burn-hit-option.enabled{background:none;color:#e6b080}.move-options input{width:auto;margin:0;flex-shrink:0}.move-options .burn-hit-option>span:last-child{flex:none}.move-options .burn-hit-option .flame-icon{width:13px;height:16px}.move-options .burn-hit-option .flame-core,.move-options .burn-hit-option.enabled .flame-core{fill:#0b202a}.move-options .burn-hit-option:hover .flame-core{fill:#ffe1a0}.move-option-tooltip{position:absolute;display:none;z-index:30;bottom:calc(100% + 8px);left:0;width:265px;padding:10px 12px;border:1px solid #6a6b83;border-radius:5px;background:#182c3b;color:#e7e9ed;box-shadow:0 4px 16px #0008;font:12px/1.6 system-ui,sans-serif;white-space:normal;pointer-events:none}.burn-hit-option .move-option-tooltip{left:auto;right:0;border-color:#a27a55}.move-options label:hover .move-option-tooltip,.move-options label:focus-within .move-option-tooltip{display:block}.move-options label:focus-within{outline:1px solid #8ca8bc;outline-offset:4px}.burn-hit-calculation{margin:5px 0 0;color:#cba781;font-size:11px;line-height:1.5}

/* Match power/weakness label alignment; one quiet separator for additional tags. */
.theme-tag-groups .weakness-group,.crew-tag-groups .weakness-group{display:block}.weakness-group>.field-caption{display:block;margin:0 0 7px}.foreign-powers{padding-top:10px}.tag-options{display:flex;align-items:center;gap:22px;padding-right:30px}.tag-options>label:first-child{flex:1}.tag-options .inline-check{margin:14px 0 0}.theme-answer{position:relative}.story-remove{position:absolute;right:10px;top:14px;padding:0;width:26px;height:28px}.answer-question .answer-remove{display:none}.duration-icon{font:19px system-ui,sans-serif}.question-tag.avatar-gift{--accent:#bcdcf4}.avatar-gift>.question-letter,.avatar-gift>.sheet-tag,.avatar-gift>.tag,.avatar-gift>.tag-burn{color:#c9e3f6;border-color:#789db7;background:#213746}.avatar-gift>.sheet-tag.chosen{background:#365971!important;border-color:#c2e2f8!important;box-shadow:inset 0 0 0 1px #c2e2f8}.avatar-gift.burned-tag>.sheet-tag{color:#8397a6;background:#182936}.selected-tag.avatar-gift{border-color:#789db7}.tag-options select{font-size:13px}
.selected-tag.avatar-gift i{background:#bcdcf4}.inline-check.avatar-gift{color:#c9e3f6}

/* Crown badges distinguish gifts; only selected gifts receive a brighter fill. */
.after-avatar{border-top:1px dashed #90bdd466;padding-top:10px}.avatar-gift>.sheet-tag:hover:not(:disabled){background:#2a465a;border-color:#a6cadf}.selected-tag.avatar-gift{background:#213746;color:#c9e3f6}

/* One combined bar for earned power questions and improvements. */
.rift-theme:has(.theme-development){border-top-width:1px}.theme-development{position:relative;border-radius:6px 6px 0 0;outline-offset:3px;cursor:help}.development-track{height:7px;display:flex;gap:2px;overflow:hidden;border-radius:6px 6px 0 0;background:#07141d}.development-pip{display:block;flex:1;min-width:0;background:color-mix(in srgb,var(--accent) 24%,#17232f);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 48%,#263441)}.development-pip.earned{background:linear-gradient(180deg,color-mix(in srgb,var(--accent) 75%,white),var(--accent));box-shadow:0 0 6px color-mix(in srgb,var(--accent) 45%,transparent)}.theme-development.complete .development-track{box-shadow:0 0 9px color-mix(in srgb,var(--accent) 35%,transparent)}.development-tooltip{display:none;position:absolute;top:calc(100% + 8px);left:10px;z-index:30;padding:9px 12px;max-width:calc(100% - 20px);border:1px solid var(--accent);border-radius:5px;background:#172b3a;color:#e5ecf2;font:11px/1.6 system-ui,sans-serif;box-shadow:0 4px 14px #0008;pointer-events:none}.theme-development:hover .development-tooltip,.theme-development:focus-visible .development-tooltip{display:block}.theme-development:focus-visible{outline:1px solid var(--accent)}.theme-development.unknown .development-track{background:#263441}

/* Equal compact theme cards, with one full-width detail panel after the active row. */
.rift-themes{align-items:stretch}.theme-summary-card .theme-heading{display:block;padding:0;height:132px}.theme-summary-button{display:flex;align-items:center;gap:10px;width:100%;height:82px;padding:12px 14px;text-align:left;border:0;background:none;color:inherit;border-radius:0;font:inherit}.theme-summary-button:hover{background:#ffffff06;filter:none}.theme-summary-button:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}.theme-summary-card .theme-symbol{font-size:26px;width:26px}.theme-summary-card .theme-name strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font:bold 18px/1.25 Georgia,serif;overflow-wrap:anywhere;margin-bottom:4px}.theme-summary-card .theme-kind-detail{font-size:11px}.theme-chevron{font:22px system-ui,sans-serif;color:var(--accent)}.theme-summary-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 14px 10px;height:50px;box-sizing:border-box}.theme-summary-footer>small{font:10px/1.5 system-ui,sans-serif;color:var(--muted);max-width:105px}.theme-summary-footer .compact-tracks{border-left:0;padding-left:0;gap:14px}.theme-summary-card.active-theme{box-shadow:0 0 0 1px var(--accent);background-image:linear-gradient(120deg,#ffffff08,#00000008)}.theme-detail{grid-column:1/-1;min-width:0;--accent:#cea0e6;border:1px solid #8756a0;border-radius:7px;background:linear-gradient(120deg,#292035,#13212d);overflow:visible}.theme-detail.logos{--accent:#e4d4ac;border-color:#968563;background:linear-gradient(120deg,#2c2c25,#12242d)}.theme-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px 10px}.theme-detail-heading h3{font:bold 21px Georgia,serif;margin:0;color:var(--accent)}.theme-detail-heading button{font-size:12px;padding:6px 10px}.theme-detail .theme-body{padding:0 18px 18px}.theme-detail .theme-identity{padding-top:12px}.theme-detail .theme-identity p{font-size:15px}.theme-detail .theme-tag-groups{gap:12px}.theme-detail .theme-improvements{margin-top:14px}.theme-detail .sheet-tag.chosen{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
/* Shared crew stays accessible without dominating the character sheet. */
.character-crew.crew-strip{padding:0;border-top-width:1px;margin-bottom:20px;background:linear-gradient(100deg,#17342f88,#10252d88)}.crew-strip-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 14px}.crew-strip-toggle{display:flex;align-items:center;gap:10px;flex:1;min-width:0;padding:0;border:0;background:none;color:#c9e4da;text-align:left}.crew-strip-toggle:hover{background:none;filter:none;color:#e1fff2}.crew-strip-icon{font:25px Georgia,serif;color:#90c9b6}.crew-strip-toggle>span:nth-child(2){min-width:0;flex:1}.crew-strip-toggle small{display:block;font:9px system-ui,sans-serif;letter-spacing:1px;color:#92b5aa;margin-bottom:3px}.crew-strip-toggle strong{display:block;font:18px Georgia,serif;overflow-wrap:anywhere}.crew-strip-chevron{font-size:20px;color:#9bcdbb}.crew-strip .crew-header-controls{gap:16px;flex-shrink:0}.crew-strip .crew-header-controls>.secondary{font-size:11px;padding:7px 10px}.crew-strip .compact-tracks .pip{width:11px;height:11px}.crew-strip .theme-track>span{font-size:10px}.crew-strip #crew-strip-details{padding:14px 18px 18px;border-top:1px solid #36564d}.crew-strip .crew-details{margin:0;padding:0;border:0}.crew-strip .crew-details p{font-size:14px}.crew-strip .theme-improvements{margin-bottom:0}

/* Character and crew share the personal card grid and detail behavior. */
.theme-summary-card.character-card,.theme-detail.character-card{--accent:#9bc3e2;border-color:#557e9c;background:linear-gradient(120deg,#1b3040,#15242f)}.theme-summary-card.crew,.theme-detail.crew{--accent:#a0dfce;border-color:#568a7c;background:linear-gradient(120deg,#1a3932,#14272e)}.auxiliary-accent{height:7px;border-radius:6px 6px 0 0;background:var(--accent);opacity:.6}.character-card .buildup-track .pips{gap:5px}.character-card .buildup-track .pip{width:13px;height:13px}.character-card .buildup-track>span{color:#bcd6e8}.character-concepts{display:grid;grid-template-columns:1fr 1fr;gap:20px;border-top:1px solid #426075;padding-top:12px}.character-concepts p{margin:4px 0 14px}.character-improvements,.character-relationships,.character-story-tags{border-top:1px solid #41607566;padding-top:12px;margin-top:12px}.character-improvements details{margin:9px 0}.character-improvements summary{color:var(--accent);cursor:pointer}.character-improvements summary small{color:var(--muted);font:10px system-ui,sans-serif;margin-left:7px}.character-improvements p{font-size:13px;line-height:1.6}.character-relationships table{width:100%;border-collapse:collapse;margin-top:8px;font-size:14px}.character-relationships th,.character-relationships td{padding:6px 10px;text-align:left;border-bottom:1px solid #42607544}.character-relationships th:not(:first-child),.character-relationships td:not(:first-child){width:65px;text-align:center}.character-relationships td:nth-child(2){color:#a6dbb6}.character-relationships td:nth-child(3){color:#e4a4ae}.character-hindering{margin-top:8px}.character-acquired{border:1px solid #496780;border-radius:5px;padding:12px;margin-bottom:12px}.character-acquired p{font-size:13px;line-height:1.6}.character-acquired textarea{min-height:65px}.character-relationship-editor{display:grid;grid-template-columns:minmax(150px,1fr) 85px 85px 32px;gap:10px;align-items:end}.character-story-editor{display:grid;grid-template-columns:minmax(160px,2fr) 150px 180px auto 32px;gap:10px;align-items:end;border-bottom:1px solid #46607855;padding-bottom:12px;margin:12px 0}.character-story-editor label,.character-relationship-editor label{margin-bottom:0}.character-story-editor .inline-check{font-size:11px;margin-bottom:10px}.character-card-editor h3{margin-top:24px}.selected-tag.story i{background:#a6bdcc}

.rift-theme.theme-summary-card:has(.auxiliary-accent){border-top-width:1px}

/* Personal theme order is editable only while unlocked. */
.theme-order-lock{display:inline-flex;align-items:center;gap:7px}.theme-order-lock.unlocked{border-color:#b6a1d4;color:#e0ccf6;background:#2d2540}.theme-reorder-tools{display:flex;align-items:center;gap:7px}.theme-reorder-tools button{width:27px;height:26px;padding:0;font:17px system-ui,sans-serif}.theme-drag-grip{font:22px system-ui,sans-serif;color:#b4a7cb;cursor:grab}.theme-summary-card.order-unlocked{cursor:grab;border-style:dashed}.theme-summary-card.theme-dragging{opacity:.45}.theme-summary-card.theme-drop-target{outline:2px solid var(--accent);outline-offset:3px;background-color:#354052}.theme-summary-card.order-unlocked .theme-summary-button{cursor:grab}#app[aria-busy="true"]{cursor:progress}

/* Shared play feed fills the right column; statuses and notes belong to the sheet. */
.character-top{position:sticky;top:0;z-index:40}.character-sidebar{position:sticky;top:58px;height:calc(100vh - 58px);box-sizing:border-box;display:flex;flex-direction:column;align-self:start;min-height:520px;padding:16px 14px}.game-feed{display:flex;flex-direction:column;flex:1;min-height:230px;border:1px solid #315569;border-radius:7px;background:#081c26;overflow:hidden}.feed-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border-bottom:1px solid #2d4c5d;flex-shrink:0}.feed-heading h2,.character-sidebar .feed-heading h2{font:bold 17px Georgia,serif;letter-spacing:.3px;margin:0;padding:0;border:0}.feed-filters{display:flex;gap:3px}.feed-filters button{font:11px system-ui,sans-serif;padding:4px 7px;border:1px solid transparent;border-radius:4px;background:none;color:#a9c1cf}.feed-filters button[aria-pressed="true"]{border-color:#557c93;background:#1b394a;color:#e9f4fa}.feed-scroll{overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0;padding:10px;scrollbar-color:#3d6074 #0a1b25;scrollbar-width:thin}.feed-entry{border:1px solid #355366;border-radius:6px;margin:0 0 10px;padding:11px;background:#102735;overflow-wrap:anywhere}.feed-entry:last-child{margin-bottom:0}.feed-entry-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.feed-entry-heading>strong{font:600 12px system-ui,sans-serif}.feed-entry-heading time{font:10px system-ui,sans-serif;color:#94abba;white-space:nowrap}.feed-chat{background:#0d232e;border-color:#2e4d5d}.feed-chat p{white-space:pre-wrap;font:13px/1.55 system-ui,sans-serif;color:#d8e5ee;margin:7px 0 0}.feed-roll-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;font:17px Georgia,serif;margin:7px 0}.feed-roll-heading small{display:block;font:10px system-ui,sans-serif;color:#a9bac8;margin-top:4px}.feed-score{font:bold 28px Georgia,serif}.feed-roll-math{font:11px/1.5 system-ui,sans-serif;color:#a7bdcc;margin:7px 0}.feed-roll-details>summary{cursor:pointer;font:11px system-ui,sans-serif;color:#b9d1df;padding:6px 0}.feed-roll-details .roll-applied-effects{margin:8px 0;padding:8px 10px}.feed-roll-details .roll-applied-effects li{font-size:11px}.feed-roll-details .outcome-summary{font-size:12px;line-height:1.6}.feed-roll-details .outcome-section h4{font-size:14px}.feed-roll-details .outcome-section li,.feed-roll-details .outcome-notes p{font-size:12px;line-height:1.6}.feed-compose{border-top:1px solid #2f4f60;padding:10px;flex-shrink:0;background:#0c232e}.feed-compose textarea{width:100%;box-sizing:border-box;min-height:48px;max-height:120px;resize:vertical;padding:8px 10px;margin:0;font:13px/1.5 system-ui,sans-serif;background:#071a24;border-color:#3b5e71}.feed-compose-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:7px}.feed-compose-footer>span{font:10px system-ui,sans-serif;color:#8da8ba}.feed-compose-footer button{font:12px system-ui,sans-serif;padding:5px 12px}.feed-empty{font:12px/1.6 system-ui,sans-serif;color:#91adbf;padding:12px 6px}.workspace-feed{height:calc(100vh - 230px);min-height:420px;max-width:900px}.character-statuses{margin:22px 0 18px;padding:16px}.character-statuses h2{display:flex;align-items:center;gap:12px;margin:0 0 14px;font:bold 19px Georgia,serif}.character-statuses h2>span{font-size:26px}.character-statuses .status-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px}.character-statuses .status-card{margin:0;min-width:0}.character-statuses .add-status-inline{max-width:420px}.character-notes-section{border-top:1px solid #335468;margin-top:20px;padding-top:14px}.character-notes-section h2{font:19px Georgia,serif;margin:0}.character-notes-section>p{font-size:14px;color:#b4c9d6}

/* Three move columns: setup, stacked effects, and a roomy roll action. */
.wide-move{margin:0 0 22px;padding:16px 18px}.wide-move>h2{display:flex;align-items:center;gap:12px;font:bold 18px Georgia,serif;letter-spacing:.6px;margin:0 0 13px;padding:0 0 11px;border-bottom:1px solid #2b4655}.wide-move>h2>span{font-size:23px;line-height:1}.wide-move #character-roll{display:grid;grid-template-columns:minmax(190px,.9fr) minmax(250px,1.35fr) minmax(245px,1.2fr);gap:18px;align-items:stretch}.move-inputs{min-width:0}.wide-move .move-select-label{display:block;margin:0;color:#c4d7e2;font-size:12px}.wide-move select{width:100%;margin-top:6px;padding:10px;background:#0d222d;border-color:#385b6e;font:15px Georgia,serif}.wide-move .adjustment-control{display:flex;flex-direction:column;align-items:stretch;gap:7px;margin:14px 0 0;font-size:12px;height:auto}.wide-move .adjustment-stepper{width:100%;box-sizing:border-box}.wide-move .adjustment-step{width:36px;height:36px}.wide-move .adjustment-stepper input{flex:1;width:0;min-width:0;height:36px}.wide-move .move-effect-set{min-width:0;border-left:1px solid #345466;padding-left:18px}.wide-move .selected-caption{font-size:12px;color:#b5cbd9;margin:0 0 9px}.wide-move #selected-tags{display:flex;flex-direction:column;gap:7px;min-width:0}.wide-move .selected-entry{width:100%;min-width:0}.wide-move .selected-tag{width:100%;box-sizing:border-box;padding:9px 11px;margin:0;gap:9px;font-size:13px;line-height:1.45}.wide-move .selected-tag i{width:12px;height:12px}.wide-move .selected-tag span{min-width:0;overflow-wrap:anywhere}.wide-move .selected-tag strong{padding-left:5px;font-size:14px}.wide-move .selected-burn-note{font-size:11px;line-height:1.5}.wide-move .tag-hint{width:100%;box-sizing:border-box;padding:11px;margin:0;font-size:12px}.wide-move .move-options{margin:14px 0 0}.wide-move .move-options-row{flex-direction:column;align-items:flex-start;gap:5px}.wide-move .move-options label{font-size:12px}.wide-move .stop-sacrifice{margin:13px 0 0;padding:0 9px 9px}.wide-move .stop-sacrifice label{font-size:12px;margin:8px 0}.wide-move .stop-sacrifice select{font-size:13px}.move-roll-action{min-width:0;border-left:1px solid #345466;padding-left:18px;display:flex;flex-direction:column;justify-content:center;min-height:130px}.wide-move .power-total{border-top:0;padding:0 0 15px;font-size:15px}.wide-move .power-total strong:last-child{font-size:30px}.wide-move .roll-button{display:flex;align-items:center;justify-content:center;gap:7px;font-size:18px;padding:14px 8px;line-height:1.3}.wide-move #character-roll-label{white-space:nowrap}.wide-move #character-roll-icon{display:inline-flex;align-items:center;flex-shrink:0}.wide-move .roll-visibility{font-size:11px;margin:11px 0 0;line-height:1.5}.wide-move .move-option-tooltip{bottom:auto;top:calc(100% + 8px);left:0;right:auto;width:260px}

.wide-move .move-reset{margin-left:auto;padding:5px 10px;font:12px system-ui,sans-serif;letter-spacing:0;color:#bed1df}.wide-move .move-reset:hover{color:#eef6fc;border-color:#6f99af}

/* Sheet-specific theme layouts. Personal cards expand naturally without internal scrolling. */
.theme-layout-control{display:flex;align-items:center;gap:8px;margin:0;color:var(--muted);font-size:12px}.theme-layout-control select{width:220px;margin:0;padding:8px 10px;font-size:12px}.personal-heading{flex-wrap:wrap}.personal-heading>.row{flex-wrap:wrap;justify-content:flex-end}.theme-inline-card{grid-column:1/-1}.theme-inline-card .theme-heading{height:auto;min-height:88px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}.theme-inline-card .theme-summary-button{height:auto;min-height:88px}.theme-inline-card .theme-summary-footer{height:auto;padding:12px 16px;gap:18px}.theme-inline-card .theme-summary-footer>small{max-width:none}.theme-inline-card .theme-body{padding:0 18px 18px}.theme-inline-card .theme-name strong{-webkit-line-clamp:unset}.theme-inline-card .theme-identity{padding-top:14px}.theme-inline-card .theme-improvements{margin-top:14px}

.theme-open-row{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:stretch}.theme-open-row .theme-inline-card{grid-column:auto}.theme-open-row .theme-heading{display:flex;flex-direction:column;align-items:stretch;min-height:0}.theme-open-row .theme-summary-button{min-height:100px;align-items:flex-start;padding:14px 10px}.theme-open-row .theme-symbol{width:20px;font-size:22px;margin-top:3px}.theme-open-row .theme-name strong{font-size:17px}.theme-open-row .theme-summary-footer{flex-wrap:wrap;align-items:flex-start;padding:0 10px 14px;gap:10px}.theme-open-row .theme-summary-footer>small{width:100%}.theme-open-row .compact-tracks{gap:12px}.theme-open-row .theme-body{padding:0 10px 14px}.theme-open-row .tag-list{display:flex;flex-direction:column;align-items:stretch;gap:6px}.theme-open-row .theme-tag-groups{display:block}.theme-open-row .weakness-group{display:block}.theme-open-row .theme-identity p{overflow-wrap:anywhere}.theme-open-row .theme-improvements{overflow-wrap:anywhere}.theme-open-row .theme-reorder-tools{width:100%}
.theme-open-row .question-tag{width:100%;min-width:0}.theme-open-row .sheet-tag{flex:1;min-width:0;overflow-wrap:anywhere;padding:7px}.theme-open-row .question-letter{flex-shrink:0;box-sizing:border-box}.theme-open-row .theme-summary-footer .compact-tracks{padding-left:0}

/* Shared grid rows align sections to the tallest content in each four-card row. */
.theme-powers{display:flex;flex-direction:column;gap:13px;min-width:0}
.theme-open-row>.theme-inline-card{display:grid;grid-template-rows:subgrid;grid-row:span 6;row-gap:0;align-content:stretch}
.theme-open-row>.theme-inline-card>[id^="theme-body-"],.theme-open-row .theme-body,.theme-open-row .theme-tag-groups{display:contents}
.theme-open-row .theme-development{grid-row:1}.theme-open-row .theme-heading{grid-row:2;align-self:stretch;justify-content:space-between}
.theme-open-row .theme-identity{grid-row:3;margin:0 10px;padding:14px 0 0}.theme-open-row .theme-powers{grid-row:4;padding:0 10px 14px}
.theme-open-row .weakness-group{grid-row:5;margin:0 10px;padding:12px 0 14px}.theme-open-row .theme-improvements{grid-row:6;margin:0 10px;padding:12px 0 14px}

/* Four compact status cards per desktop row. */
.character-statuses .status-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.character-statuses .status-card{padding:9px}.character-statuses .status-card-heading{gap:3px}.character-statuses .status-name-input{font-size:15px;padding:3px 2px}.character-statuses .status-remove{width:22px;height:24px}.character-statuses .status-progress-track{gap:2px;padding:3px}.character-statuses .status-track-cell{height:40px;padding-bottom:4px}.character-statuses .status-track-cell strong{font-size:12px}.character-statuses .status-track-cell small{display:none}.character-statuses .status-card-footer{flex-wrap:wrap;gap:6px}.character-statuses .status-tier-label{font-size:11px}.character-statuses .status-roll-controls{margin-left:auto}.character-statuses .status-roll-controls button{min-width:27px;padding:4px;font-size:11px}

/* Avatar patrons: deep crimson and warmer rose, with a readable neutral tag surface. */
.rift-theme.avatar-corbin-payne,.theme-detail.avatar-corbin-payne,.personal-theme-editor.avatar-corbin-payne{--accent:#eb939f;--avatar-edge:#a95165;--avatar-surface:#381b25;--avatar-selected:#542836}
.rift-theme.avatar-rosaline,.theme-detail.avatar-rosaline,.personal-theme-editor.avatar-rosaline{--accent:#f4a3bd;--avatar-edge:#bb6a88;--avatar-surface:#412334;--avatar-selected:#60344a}
.rift-theme.avatar-theme,.theme-detail.avatar-theme,.personal-theme-editor.avatar-theme{border-color:var(--avatar-edge);background:linear-gradient(125deg,var(--avatar-surface),#15212b)}
.avatar-theme .theme-avatar-badge{display:block;color:var(--accent);font:11px/1.4 system-ui,sans-serif;letter-spacing:.2px;margin-top:5px}.theme-avatar-badge>span{font-size:15px;vertical-align:-1px;margin-right:3px}
.rift-theme.avatar-theme .theme-kind-detail{color:color-mix(in srgb,var(--accent) 65%,#dbd8de)}.rift-theme.avatar-theme .pip.filled{border-color:var(--accent);background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 65%,white),var(--avatar-edge))}
.rift-theme.avatar-theme .sheet-tag.chosen,.theme-detail.avatar-theme .sheet-tag.chosen{background:var(--avatar-selected)}.avatar-theme .theme-identity{border-top-color:var(--avatar-edge)}.theme-avatar-field[hidden]{display:none}.theme-avatar-field select{border-color:var(--avatar-edge,var(--line))}
.theme-summary-card.avatar-theme .theme-summary-button{height:auto;min-height:82px}.theme-summary-card.avatar-theme .theme-heading{height:auto;min-height:132px}
.theme-open-row .avatar-theme .theme-heading{min-height:0}.theme-open-row .avatar-theme .theme-summary-button{min-height:100px}
