:root{color-scheme:dark;--bg:#090f19;--panel:#122132;--border:#344659;--gold:#f0c680;--cyan:#91d0df;--text:#eee9de;--muted:#a3b4c1;font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--bg);color:var(--text);font-size:15px;line-height:1.5}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.6;cursor:not-allowed}[hidden]{display:none!important}.ambient{position:fixed;z-index:-1;pointer-events:none;inset:0;background-image:radial-gradient(1px 1px at 15% 22%,#91a5b744 99%,transparent),radial-gradient(1px 1px at 65% 77%,#c4ad7f66 99%,transparent),radial-gradient(1px 1px at 79% 10%,#7a9cab55 99%,transparent),linear-gradient(140deg,#102033,#080d15 78%);background-size:410px 350px,520px 390px,370px 410px,auto}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 27px;border-bottom:1px solid var(--border);background:#0a1521e0}.brand{display:flex;gap:12px;align-items:center}.brand .mark{font-size:43px;color:var(--gold);text-shadow:0 0 21px #f0c68078}.brand strong{display:block;font-size:18px;letter-spacing:.15em}.brand em{color:var(--gold);font-style:normal}.overline{display:block;font-size:10px;font-weight:800;color:var(--gold);letter-spacing:.18em}.top-actions{display:flex;align-items:center;gap:13px;font-size:12px;color:var(--muted)}.connection:before{content:"●";font-size:8px;color:var(--cyan);padding-right:7px}.small-button,.secondary{background:#132436;color:var(--text);border:1px solid var(--border);border-radius:6px;padding:9px 12px}.small-button:hover,.secondary:hover{border-color:var(--gold)}.message{max-width:1500px;margin:12px auto 0;padding:13px 18px;background:#1c2c3b;border:1px solid #70818e;border-radius:7px}.message.error{color:#ffb5ac;border-color:#c27972}
.auth-view{max-width:620px;min-height:calc(100vh - 165px);display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:25px;margin:auto;padding:36px 22px}.hero{text-align:center}.hero h1{font-size:clamp(34px,5vw,50px);letter-spacing:-.045em;line-height:1.12;margin:16px 0}.hero h1 span{color:var(--gold)}.hero p{max-width:470px;color:var(--muted);font-size:16px;margin:0 auto}.decorline{border-top:1px solid var(--gold);width:130px;margin:28px auto}.small{font-size:12px;color:var(--muted);line-height:1.6}.auth-card{border:1px solid #4d6374;background:linear-gradient(145deg,#1b2e40,#0c1624);border-radius:14px;padding:30px;box-shadow:0 25px 80px #0009}.auth-card h2{font-size:25px;margin:0 0 24px}.auth-card label{margin:14px 0}.primary{background:var(--gold);color:#18222d;padding:11px 17px;border-radius:6px;border:1px solid var(--gold);font-weight:800;display:inline-block}.primary:hover{background:#ffdea4}.auth-card .primary{width:100%;margin:13px 0}
label{display:block;font-size:12px;font-weight:700;color:#c8d3dc;margin-bottom:6px}input,select,textarea{background:#0a1624;border:1px solid #41576a;color:var(--text);border-radius:6px;padding:10px 12px;width:100%;outline:none;min-width:0}textarea{min-height:105px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--gold);box-shadow:0 0 0 2px #f0c68030}
.workspace{display:grid;grid-template-columns:230px minmax(0,1fr) 310px;max-width:1950px;min-height:calc(100vh - 132px);margin:auto}.sidebar{padding:19px 13px;background:#0c1928ba;border-right:1px solid var(--border);display:flex;flex-direction:column;gap:12px}.party-box{background:linear-gradient(145deg,#1c3041,#102132);padding:13px;border:1px solid var(--border);border-radius:8px}.party-box p{margin:8px 0 0}.party-box select{margin-top:7px;font-weight:700}.nav-caption{font-size:10px;color:#8e9fad;letter-spacing:.17em;margin:12px 10px 0}.navigation{display:flex;flex-direction:column;gap:2px}.nav-button{display:flex;align-items:center;gap:10px;text-align:left;width:100%;color:#b7c6d0;background:none;border:1px solid transparent;border-radius:7px;padding:10px}.nav-icon{width:21px;font-size:18px;text-align:center;color:var(--cyan)}.nav-button:hover{background:#20354b}.nav-button.active{background:#233d4e;border-color:#485c68;color:var(--gold)}.sidebar-footer{margin-top:auto;padding:20px 11px;border-top:1px solid var(--border);font-size:11px;letter-spacing:.12em;color:var(--gold)}.sidebar-footer p{color:var(--muted);letter-spacing:normal}
.main-panel{padding:24px 28px;min-width:0}.section-bar{border-bottom:1px solid var(--border);padding-bottom:19px;display:flex;align-items:end;justify-content:space-between;gap:20px}.section-bar h1{margin:5px 0 0;font-size:34px;line-height:1.2;letter-spacing:-.045em}.tools{display:flex;gap:9px}.tools input{width:230px;max-width:37vw}.content{padding:21px 0}.intro{font-size:14px;color:var(--muted);margin-top:0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:11px;margin:18px 0}.stat{background:#192c3b;border:1px solid var(--border);border-radius:8px;padding:15px}.stat strong{display:block;color:var(--gold);font-size:31px;line-height:1.2}.stat span{font-size:11px;letter-spacing:.11em;color:var(--muted);text-transform:uppercase}.columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}.panel{padding:17px;background:#142539cc;border:1px solid var(--border);border-radius:9px;margin:0 0 15px}.panel h2{margin:0 0 13px;font-size:19px}.record-list{display:grid;gap:9px}.record{border:1px solid var(--border);background:#142b3b88;width:100%;text-align:left;color:var(--text);padding:12px;border-radius:8px}.record:hover{background:#204156;border-color:var(--gold)}.record strong{display:block;font-size:16px}.record .description{font-size:13px;color:var(--muted);display:block;margin-top:4px}.record-meta,.chips{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:8px}.chip{font-size:10px;letter-spacing:.05em;color:var(--cyan);border:1px solid #425f6e;border-radius:4px;padding:1px 5px}.empty{border:1px dashed var(--border);color:var(--muted);padding:25px;border-radius:7px;text-align:center}.levels{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin:20px 0}.level{background:#102236;border:1px solid var(--border);border-radius:8px;color:var(--text);padding:13px 5px;min-height:86px}.level strong{display:block;color:var(--gold);font-size:25px}.level span{font-size:11px;color:var(--muted)}.level:hover,.level.known{border-color:#78919d}.inspector{padding:25px 20px;background:#0c1928c9;border-left:1px solid var(--border);min-width:0;word-break:break-word}.inspector h2{font-size:24px;margin:9px 0 15px;letter-spacing:-.04em}.inspector p{font-size:14px}.inspector-empty{color:var(--muted);padding:65px 0;text-align:center}.sigil{font-size:57px;color:#bda16c}.article p{white-space:pre-wrap}.article{margin:17px 0}.history{border-left:2px solid var(--gold);padding-left:11px;margin-bottom:13px}.json{max-height:460px;overflow:auto;background:#070e17;padding:9px;border:1px solid var(--border);font-size:11px}.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.editor-grid label.wide{grid-column:1/-1}.editor-grid label{font-size:12px}.editor-grid input,.editor-grid select,.editor-grid textarea{margin-top:5px}.editor-grid textarea{min-height:135px}.editor-grid+.primary{margin:15px 10px 0 0}.footer{border-top:1px solid var(--border);display:flex;justify-content:space-between;padding:15px 25px;font-size:10px;color:#8298a6;letter-spacing:.09em}.footer span{letter-spacing:normal}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:1230px){.workspace{grid-template-columns:208px minmax(0,1fr)}.inspector{grid-column:2;grid-row:2;border-left:0;border-top:1px solid var(--border)}.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:750px){.topbar{padding:13px}.brand strong{font-size:13px}.brand .mark{font-size:27px}.top-actions{gap:7px}.auth-view{padding:25px 15px;gap:20px}.hero h1{font-size:47px}.workspace{display:flex;flex-direction:column}.sidebar{border:0;border-bottom:1px solid var(--border)}.sidebar-footer{display:none}.navigation{flex-direction:row;overflow-x:auto}.nav-button{white-space:nowrap;width:auto}.main-panel{padding:17px}.section-bar{display:block}.section-bar h1{font-size:29px}.tools{margin-top:14px}.tools input{width:100%;max-width:none}.columns{grid-template-columns:1fr}.levels{grid-template-columns:repeat(2,1fr)}.editor-grid{grid-template-columns:1fr}.inspector{padding:20px}.footer{display:block}.footer span{display:block;margin-top:5px}}

/* Full-length GM source and player-approved document reader */
#reader{width:min(960px,94vw);max-height:90vh;overflow:auto;background:#0c1a29;color:var(--text);border:1px solid #668395;border-radius:12px;padding:clamp(20px,3vw,40px);box-shadow:0 24px 90px #000e}
#reader::backdrop{background:#000b;backdrop-filter:blur(4px)}
#reader h2{font-size:clamp(25px,3vw,40px);color:var(--gold);margin:9px 0 20px}
#reader form{position:sticky;bottom:0;display:flex;justify-content:end;margin-top:25px;padding:16px 0 0;border-top:1px solid var(--border);background:#0c1a29}
.article ul,.article ol{padding-left:24px;line-height:1.7}.article li{margin-bottom:6px}.article h3,.article h4,.article h5,.article h6{color:var(--gold);margin:21px 0 9px}.article blockquote{border-left:2px solid var(--gold);padding-left:15px;color:var(--muted);margin:17px 0}.article pre{overflow:auto;background:#07101a;padding:15px;border-radius:6px;border:1px solid var(--border);font-size:12px}.article code{background:#243648;padding:2px 5px;border-radius:4px}.article hr{border:0;border-top:1px solid var(--border);margin:25px 0}

/* Per-account hide controls, GM publication, and verified media thumbnails */
.record-line{display:flex;align-items:stretch;gap:7px}
.record-line .record{flex:1;min-width:0}
.record-hide{flex:0 0 auto;align-self:stretch;border:1px solid var(--border);border-radius:7px;background:#152635;color:var(--muted);padding:6px 12px;font-size:12px}
.record-hide:hover{border-color:var(--gold);color:var(--gold)}
.record-is-hidden{opacity:.66}
.record-thumb{display:block;width:100%;max-width:125px;max-height:95px;object-fit:cover;float:left;margin:0 14px 7px 0;border-radius:5px;border:1px solid var(--border)}
.record:after{content:"";display:block;clear:both}
.inspector-image{display:block;width:100%;height:auto;max-height:280px;object-fit:contain;border-radius:8px;border:1px solid var(--border);margin:14px 0}
#toggle-hidden{white-space:nowrap}
@media(max-width:750px){#toggle-hidden{white-space:normal;font-size:11px}.record-hide{padding:6px}.record-thumb{max-width:95px}}

/* Player login: a focused campaign entry, not an administration dashboard. */
.auth-card{width:100%;max-width:460px;margin:0 auto}.auth-card .small{text-align:center;margin:6px 0 0}.auth-card label{display:block}.hero .overline{letter-spacing:.15em}.sidebar .party-box[hidden]{display:none!important}

/* Responsive RPG characteristic, skill and equipment tables in NPC dossiers. */
.article .table-scroll{overflow-x:auto;max-width:100%;margin:16px 0;border:1px solid var(--border);border-radius:7px}
.article .table-scroll table{width:100%;min-width:340px;border-collapse:collapse;text-align:left;font-size:12px;line-height:1.5}
.article .table-scroll th,.article .table-scroll td{padding:8px 10px;border-bottom:1px solid var(--border);border-right:1px solid var(--border);vertical-align:top}
.article .table-scroll th{background:#21374b;color:var(--gold);font-weight:600}
.article .table-scroll tbody tr:nth-child(even){background:#1a2b3c88}
.article .table-scroll td:last-child,.article .table-scroll th:last-child{border-right:0}
.article .table-scroll tbody tr:last-child td{border-bottom:0}

/* Functional FFG character dossier. All interaction is text/DOM, never baked into art. */
.workspace.sheet-workspace{grid-template-columns:230px minmax(0,1fr)}
.sheet-workspace .inspector{display:none}
.sheet-shell{max-width:1450px;margin:0 auto 4rem}
.sheet-heading{display:flex;align-items:center;gap:18px;margin:14px 0 23px;flex-wrap:wrap}
.sheet-heading>div{flex:1;min-width:270px}
.sheet-portrait{display:block;width:132px;max-width:34vw;height:170px;object-fit:cover;object-position:center top;border:1px solid #506879;border-radius:11px;box-shadow:0 12px 30px #0005;background:#13283a;flex:none}
.sheet-heading h2{font:400 clamp(32px,4vw,48px)/1.1 Georgia,serif;color:#f4e0b8;margin:.4rem 0}
.sheet-heading p{color:#b4c5d6;margin:0}
.sheet-eyebrow{font-size:11px;letter-spacing:.18em;color:#efc482;font-weight:750}
.sheet-notice{color:#f6d69d;border-left:3px solid #e8bd6f;background:#3b312341;padding:13px 17px;border-radius:5px}
.sheet-shell fieldset{border:0;padding:0;min-width:0}
.sheet-shell fieldset[disabled]{opacity:.88}
.sheet-section{border:1px solid #314c62;background:linear-gradient(160deg,#162a3b,#0d1c2a);padding:24px;margin:18px 0;border-radius:13px;box-shadow:0 12px 35px #0003}
.sheet-section>h3{font:500 22px/1.3 Georgia,serif;color:#f2ce94;margin:0 0 18px}
.sheet-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:19px;border-radius:12px;border:1px solid #4b6172;background:#15293c}
.sheet-ownership{display:flex;align-items:center;color:#9fb6ca;font-size:12px}
.sheet-field{min-width:0;margin:0}
.sheet-field>span,.sheet-collection-row label>span{display:block;font-weight:650;font-size:11px;letter-spacing:.04em;color:#a9c2d3;margin-bottom:6px}
.sheet-field input{width:100%;font-size:15px;font-variant-numeric:tabular-nums}
.sheet-attributes{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.sheet-attribute{display:flex;flex-direction:column;text-align:center;border:1px solid #476073;border-radius:11px;background:#102b43;padding:16px 7px;gap:8px;margin:0}
.sheet-attribute span{color:#bdd0df;font-size:12px}
.sheet-attribute input{text-align:center;font-size:28px;color:#f4d79d;font-weight:700;background:#0b1e2f;border-color:#50738b;height:64px}
.sheet-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.sheet-skill-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 18px}
.sheet-skill-head{display:none}
.sheet-skill{display:grid;grid-template-columns:minmax(95px,1fr) 43px 60px 68px;align-items:center;gap:8px;background:#0d2435;border:1px solid #2d4b60;border-radius:6px;padding:7px 10px}
.sheet-skill span{font-size:12px;color:#dae5ec}
.sheet-skill input[type=checkbox]{width:19px;height:19px;margin:auto;accent-color:#efc680}
.sheet-skill input[type=number]{padding:6px;text-align:center;font-weight:750}
.sheet-skill .secondary{padding:6px 5px;font-size:11px}
.sheet-hint{font-size:13px;color:#a9bbcd;margin-top:-5px}
#sheet-pool-result{display:block;min-height:30px;color:#e8ca91;font-size:13px;margin-bottom:10px}
.sheet-collection{display:flex;flex-direction:column;gap:11px}
.sheet-collection-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:8px;align-items:end;padding:12px;background:#0d2435;border:1px solid #304d61;border-radius:8px}
.sheet-collection-row label{margin:0;min-width:0}
.sheet-collection-row input{padding:8px 9px}
.sheet-collection-row .sheet-remove{align-self:end;min-height:39px}
.sheet-collection+.secondary{margin-top:13px}
.sheet-notes{display:block;margin-top:14px}
.sheet-notes span{display:block;margin-bottom:9px}
.sheet-notes textarea{width:100%;resize:vertical;line-height:1.6}
.sheet-statement{margin:17px 0 0;padding:15px;background:#22374a;border-radius:8px;color:#d6e4ec}
.sheet-actions{display:flex;align-items:center;gap:17px;padding:18px 0;flex-wrap:wrap}
.sheet-actions span{font-size:12px;color:#b0c4d2}
.sheet-revision-list{padding-left:21px;line-height:1.8;font-size:13px}
.sheet-revision-list time{font-variant-numeric:tabular-nums;color:#eccc93}
.sheet-gm-source{font-size:11px;color:#94a9ba;word-break:break-all}
@media(max-width:1150px){.sheet-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.sheet-attributes{grid-template-columns:repeat(3,minmax(0,1fr))}.sheet-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.sheet-skill-list{grid-template-columns:1fr}}
@media(max-width:850px){.workspace.sheet-workspace{display:block}.sheet-workspace .sidebar{border-right:0;border-bottom:1px solid var(--border)}.sheet-attributes{grid-template-columns:repeat(3,minmax(0,1fr))}.sheet-section{padding:16px}.sheet-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.sheet-toolbar{grid-template-columns:1fr}.sheet-attributes{grid-template-columns:repeat(2,minmax(0,1fr))}.sheet-stats{grid-template-columns:1fr 1fr}.sheet-skill{grid-template-columns:minmax(83px,1fr) 30px 48px 55px;gap:4px}.sheet-heading>div{min-width:0}.sheet-shell{max-width:100%}.sheet-section{padding:13px}}

/* GM-only credential handoff after account service verifies each new user */
.roster-credentials{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;font:600 13px/1.9 ui-monospace,SFMono-Regular,Consolas,monospace;user-select:text;-webkit-user-select:text;border:1px solid var(--border);padding:16px;border-radius:8px;background:#081725;color:#f3ddb0}
#roster-credentials{margin-top:14px}
#provision-roster:disabled{cursor:wait;opacity:.65}

/* Name-first crew directory and readable, editable character backgrounds */
.crew-record .crew-entry{display:flex;align-items:center;gap:15px;min-height:66px}
.crew-record .record-thumb{width:46px;height:54px;object-fit:cover;flex:none}
.crew-entry-name{font-size:16px;flex:1;min-width:0;text-align:left}
.crew-entry-action{font-size:12px;color:#f2cf96;white-space:nowrap;margin-left:auto}
.sheet-mode-actions{display:flex;align-items:center;justify-content:flex-end}
.sheet-mode-actions button{white-space:nowrap}
.sheet-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.sheet-profile-field{display:block;border:1px solid #355069;border-radius:9px;padding:14px 16px;background:#102335;margin:0;min-width:0}
.sheet-profile-field:first-child{grid-column:1/-1}
.sheet-profile-field h4,.sheet-profile-field>span{margin:0 0 8px;display:block;color:#e7c791;font-size:14px;font-weight:700}
.sheet-profile-field textarea{min-height:100px;line-height:1.6}
.sheet-profile-field:first-child textarea{min-height:185px}
.sheet-profile-copy{color:#e1e5e5;line-height:1.75;white-space:normal;margin:0;overflow-wrap:anywhere}
.sheet-profile-empty{font-size:13px;color:#b4c4d2}
.sheet-shell form[data-edit-mode="0"] input:not([type="checkbox"]),.sheet-shell form[data-edit-mode="0"] textarea{background:transparent;border-color:transparent;box-shadow:none;color:#e4e8ed}
.sheet-shell form[data-edit-mode="0"] .sheet-attribute input{color:#f0d399}
.sheet-shell form[data-edit-mode="0"] input[type="checkbox"]:disabled{opacity:.9}
@media(max-width:720px){.sheet-profile-grid{grid-template-columns:1fr}.sheet-profile-field:first-child{grid-column:auto}.crew-entry-action{font-size:11px}.sheet-mode-actions{width:100%;justify-content:flex-start}}
/* Gatekeeper sheet: reading, editing and FFG advancement */
.sheet-shell [hidden]{display:none!important}
.sheet-mode-bar{display:flex;align-items:center;gap:7px;padding:6px;background:#102435;border:1px solid #355269;border-radius:12px;margin:0 0 12px;max-width:580px}
.sheet-mode-button{border:0;border-radius:8px;min-height:42px;padding:10px 20px;color:#b5cad8;background:transparent;font-size:14px;font-weight:690;flex:1;cursor:pointer}
.sheet-mode-button:hover{background:#233f54;color:#fff}
.sheet-mode-button.is-active{background:#ecd0a1;color:#101b26;box-shadow:0 2px 12px #0004}
.sheet-tab-bar{display:flex;align-items:center;gap:8px;padding:4px 0 13px;margin:0 0 18px;overflow-x:auto;scrollbar-width:thin;border-bottom:1px solid #34516a}
.sheet-tab-button{background:transparent;border:0;border-bottom:2px solid transparent;min-height:45px;padding:10px 17px;color:#b4c6d7;font-size:13px;font-weight:650;cursor:pointer;white-space:nowrap}
.sheet-tab-button.is-active{color:#f5dcae;border-bottom-color:#f5dcae}
.sheet-tab-button:hover{color:#fff}
.sheet-read-view .sheet-section{margin:14px 0 18px}
.sheet-read-attributes{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:11px}
.sheet-read-attribute{min-width:0;border:1px solid #3c5a70;border-radius:11px;background:#0e283d;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:115px;gap:9px}
.sheet-read-attribute span{font-size:12px;color:#b7cbd7;font-weight:620}
.sheet-read-attribute strong{font-size:37px;line-height:1;font-weight:750;color:#efd4a5;font-variant-numeric:tabular-nums}
.sheet-read-grid,.sheet-xp-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.sheet-read-pair{min-width:0;background:#0c2334;border:1px solid #29475c;border-radius:9px;padding:14px 16px;display:flex;flex-direction:column;gap:5px}
.sheet-read-pair>span{font-size:12px;color:#a8bccb}
.sheet-read-pair>strong{font-size:16px;color:#eef1ed;overflow-wrap:anywhere;line-height:1.4}
.sheet-xp-stat-grid .sheet-read-pair:first-child strong{font-size:22px;color:#efca8d}
.sheet-xp-link{margin-top:16px}
.sheet-read-skill-group h4,.sheet-read-section>h4,.sheet-advance-list>h4{margin:22px 0 10px;color:#e4cba0;font-size:15px;font-weight:700}
.sheet-read-skills{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.sheet-read-skill{display:grid;grid-template-columns:minmax(110px,1fr) 48px 58px 58px;align-items:center;gap:7px;border:1px solid #2b4558;background:#102737;border-radius:9px;padding:9px 10px}
.sheet-read-skill>span:first-child{font-size:12px;color:#e7eced;overflow-wrap:anywhere}
.sheet-skill-rank{font-variant-numeric:tabular-nums;font-weight:700;font-size:13px;color:#e7cb96;text-align:center}
.sheet-career-mark{color:#9ddcc7;background:#173d39;padding:4px;border-radius:5px;text-align:center;font-size:10px;font-weight:700}
.sheet-skill-other{color:#688294;text-align:center}
.sheet-read-skill .secondary{padding:7px 3px;font-size:11px;min-height:34px}
.sheet-read-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:10px}
.sheet-read-item{min-width:0;border:1px solid #304e62;border-radius:10px;padding:16px;background:#102a3c}
.sheet-read-item>strong{display:block;font-size:16px;color:#f0e0c7;margin-bottom:8px}
.sheet-read-item p{color:#b5c8d4;line-height:1.5}
.sheet-read-item-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.sheet-read-item-meta .sheet-read-pair{padding:8px}
.sheet-read-item-meta .sheet-read-pair>strong{font-size:12px;font-weight:550}
.sheet-read-empty{color:#adc0ce;font-size:14px}
.sheet-pill-list{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:15px}
.sheet-spec-pill{border:1px solid #726648;border-radius:20px;padding:7px 13px;background:#3a3221;color:#efd59f;font-size:12px}
.sheet-read-notes{white-space:normal;line-height:1.75;background:#0e2435;border:1px solid #365066;padding:20px;border-radius:9px;overflow-wrap:anywhere}
.sheet-xp-hero{display:flex;align-items:center;flex-wrap:wrap;gap:20px;background:linear-gradient(120deg,#233b51,#112636);border:1px solid #45657b;border-radius:14px;padding:19px 23px;margin:18px 0}
.sheet-xp-hero>div{min-width:145px;display:flex;flex-direction:column;gap:7px}
.sheet-xp-hero>div>span{font-size:11px;letter-spacing:.09em;color:#aec7d7;font-weight:760}
.sheet-xp-hero>div>strong{font-size:27px;color:#f5d9a5;font-variant-numeric:tabular-nums}
.sheet-xp-hero>p{flex:1;min-width:230px;color:#c0ced6;line-height:1.55;font-size:13px;margin:0}
.sheet-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.sheet-section-heading h3{margin:0;color:#f2ce94;font-size:22px}
.sheet-section-heading span{font-size:12px;color:#a8bfce}
.sheet-advance-list{margin-top:15px}
.sheet-advance-row{display:grid;grid-template-columns:minmax(160px,1fr) 85px 70px 95px;gap:12px;padding:11px 8px;border-bottom:1px solid #304759;align-items:center}
.sheet-advance-row>span:first-child{display:flex;flex-direction:column;gap:3px}
.sheet-advance-row strong{font-size:13px;color:#e8eef0}
.sheet-advance-row small{font-size:11px;color:#9eb5c5}
.sheet-advance-progress,.sheet-advance-cost{font-variant-numeric:tabular-nums;color:#edd7b3;text-align:center;font-size:13px;font-weight:650}
.sheet-advance-max{color:#a6d5bb;font-size:12px;text-align:center}
.sheet-advance-row button{padding:8px;min-height:37px;font-size:12px}
.sheet-advance-row button:disabled{opacity:.35;cursor:not-allowed}
.sheet-xp-ledger{padding:0;list-style:none;margin:0;display:grid;gap:6px}
.sheet-xp-ledger li{display:flex;justify-content:space-between;gap:16px;background:#0d2739;border-radius:6px;padding:11px 13px;color:#cad6df}
.sheet-xp-ledger li strong{color:#edd2a2;white-space:nowrap}
.sheet-mode-button:focus-visible,.sheet-tab-button:focus-visible,.sheet-advance-row button:focus-visible{outline:2px solid #f7d9a6;outline-offset:2px}
@media(max-width:1080px){.sheet-read-attributes{grid-template-columns:repeat(3,minmax(0,1fr))}.sheet-read-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sheet-read-skills{grid-template-columns:1fr}}
@media(max-width:600px){.sheet-mode-button{padding:10px 5px;font-size:13px}.sheet-read-attributes{grid-template-columns:repeat(3,minmax(0,1fr))}.sheet-read-attribute{min-height:88px}.sheet-read-attribute strong{font-size:29px}.sheet-read-grid,.sheet-xp-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sheet-read-item-meta{grid-template-columns:1fr 1fr}.sheet-read-pair{padding:12px}.sheet-advance-row{grid-template-columns:minmax(100px,1fr) 55px 49px 76px;gap:5px}.sheet-advance-row button{font-size:11px;padding:7px 2px}.sheet-advance-row strong{font-size:12px}.sheet-xp-hero{gap:17px;padding:15px}.sheet-xp-hero p{min-width:100%}.sheet-tab-button{padding:10px 13px}}
@media(max-width:360px){.sheet-read-grid,.sheet-xp-stat-grid{grid-template-columns:1fr}.sheet-read-skill{grid-template-columns:minmax(90px,1fr) 36px 45px 50px;gap:4px}.sheet-advance-row{grid-template-columns:minmax(90px,1fr) 42px 43px 72px}}
.sheet-xp-award-form{display:grid;grid-template-columns:minmax(105px,165px) minmax(170px,1fr) auto;align-items:end;gap:12px}
.sheet-xp-award-form label{display:flex;flex-direction:column;min-width:0;gap:7px;margin:0}
.sheet-xp-award-form label>span{font-weight:700;font-size:12px;color:#c2d3df}
.sheet-xp-award-form input{width:100%;min-height:44px}
.sheet-xp-award-form button{min-height:44px;white-space:nowrap}
@media(max-width:640px){.sheet-xp-award-form{grid-template-columns:1fr 2fr}.sheet-xp-award-form button{grid-column:1/-1}}
@media(max-width:360px){.sheet-xp-award-form{grid-template-columns:1fr}}
