:root{color-scheme:light;--bg: #efedf6;--surface: #ffffff;--surface-2: #f7f4fb;--surface-3: #ede9f7;--fg: #302f31;--muted: #69636f;--line: #d9d1e6;--accent: #6562e7;--accent-2: #e7a8b8;--accent-blue: #6562e7;--character-primary: #6562e7;--character-secondary: #e7a8b8;--danger: #a93f58;--danger-bg: rgba(169, 63, 88, .1);--shadow: 0 18px 42px rgba(55, 53, 61, .14)}*{box-sizing:border-box}html,body,#root{min-height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,system-ui,sans-serif;background:linear-gradient(rgba(37,99,235,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(37,99,235,.02) 1px,transparent 1px),var(--bg);background-size:28px 28px;color:var(--fg)}button,input,select,textarea{font:inherit}button{border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--fg);cursor:pointer;box-shadow:0 1px 2px #252f460f;transition:border-color .15s ease,background-color .15s ease,color .15s ease,transform .15s ease,box-shadow .15s ease}button:hover,button:focus-visible{border-color:var(--accent);background:#fff8ef;box-shadow:0 8px 18px #a160281f}button svg{flex:0 0 auto}textarea,input,select{width:100%;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--fg);padding:9px 10px;box-shadow:inset 0 1px 2px #252f460a}textarea:focus,input:focus,select:focus{outline:2px solid rgba(37,99,235,.16);border-color:#2563eb9e}textarea{min-height:92px;resize:vertical}.app-shell{min-height:100vh;display:flex;flex-direction:column}.app-header{display:flex;align-items:center;gap:16px;min-height:58px;padding:8px 14px;border-bottom:1px solid var(--line);background:var(--surface)}.brand-button{display:flex;align-items:center;gap:10px;border:0;background:transparent;padding:0;text-align:left}.critical-stage-link{display:flex;align-items:center;gap:10px;min-width:0;border:0;border-radius:12px;background:transparent;color:var(--fg);padding:0;text-align:left;text-decoration:none}.critical-stage-link:hover,.critical-stage-link:focus-visible{background:transparent}.critical-stage-link:focus-visible{outline:2px solid rgba(101,98,231,.28);outline-offset:4px}.brand-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:6px;background:var(--accent);color:#1d1712;font-weight:800}.critical-stage-mark{display:grid;place-items:center;flex:0 0 auto;width:36px;height:36px;overflow:hidden;border-radius:6px;background:#3f3f3e}.critical-stage-mark img{display:block;width:100%;height:100%;object-fit:cover}.brand-button strong,.brand-button small,.critical-stage-link strong,.critical-stage-link small{display:block}.brand-button strong,.critical-stage-link strong{font-size:16px}.brand-button small,.critical-stage-link small{color:var(--muted);font-size:12px}.top-nav{display:flex;gap:6px;margin-left:auto}.account-status{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}.account-status button{min-height:30px;padding:5px 9px}.top-nav button,.system-actions button,.command-row button,.row-actions button,.affiliate-panel button,.affiliate-link,.file-button,.quiet-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:7px 11px}.affiliate-link{border:1px solid var(--line);border-radius:6px;background:var(--surface-3);color:var(--fg);text-decoration:none}.top-nav button.active,.segmented button.active{background:var(--accent);border-color:var(--accent);color:#1d1712}.workspace{flex:1;display:grid;grid-template-columns:260px minmax(0,1fr) 240px;min-height:0}.sidebar,.affiliate-rail{display:flex;flex-direction:column;gap:12px;padding:14px;border-right:1px solid var(--line);background:#18191c}.affiliate-rail{border-left:1px solid var(--line);border-right:0}.main-pane{min-width:0;padding:16px;overflow:auto}.app-mode-srdReference .main-pane{overflow:visible}.panel,.ad-slot{border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:14px}.panel h1,.panel h2{margin:0 0 10px}.panel h1{font-size:24px}.panel h2{font-size:15px}.panel p{color:var(--muted);line-height:1.6}.legal-page p{color:var(--fg)}.legal-page small{display:block;margin-bottom:10px;color:var(--muted)}.notice{margin-bottom:12px;border:1px solid rgba(124,192,177,.38);border-radius:8px;background:#7cc0b11a;color:#d9fff6;padding:10px 12px}.system-actions,.affiliate-panel{display:grid;gap:8px}.segmented{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.segmented button{min-height:32px}.system-filter-panel{gap:12px}.filtered-create-button,.filtered-reference-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:38px;margin-top:10px;border-color:#e7a8b86b;background:#e7a8b81f;color:#4a3f52;font-weight:800}.filtered-reference-button{margin-top:0;border-color:#7cc0b16b;background:#7cc0b11f}.sidebar-list-button{display:inline-flex;align-items:center;justify-content:flex-start;gap:7px;width:100%;min-height:40px;margin-bottom:10px;font-weight:800}.ad-slot{background:#1b1c20;border-style:dashed}.ad-slot span,.system-pill,.character-row span,.tag-row span{display:inline-flex;align-items:center;width:fit-content;border:1px solid var(--line);border-radius:999px;padding:3px 8px;color:var(--muted);font-size:12px}.ad-slot p{color:var(--muted);line-height:1.5}.ad-slot a{color:inherit;text-decoration:none}.character-list{display:grid;gap:10px}.character-row{--character-list-portrait-size: 72px;display:grid;grid-template-columns:var(--character-list-portrait-size) minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:10px}.character-row-clickable{cursor:pointer}.character-row-clickable:focus-visible{outline:3px solid rgba(161,96,40,.24);outline-offset:3px}.portrait-slot,.portrait-preview,.viewer-portrait{display:grid;place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#141416;color:var(--muted)}.portrait-slot{inline-size:var(--character-list-portrait-size, 72px);block-size:var(--character-list-portrait-size, 72px);aspect-ratio:1}.portrait-slot img,.portrait-preview img,.viewer-portrait img{width:100%;height:100%;object-fit:cover}.row-title{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.row-title h2{margin:0;font-size:18px}.character-row-body p,.character-row-body small{margin:4px 0 0;color:var(--muted)}.row-actions,.command-row{display:flex;gap:6px;flex-wrap:wrap}.side-action-panel{display:grid;gap:10px}.side-action-list{display:grid;gap:8px}.side-action-list button{display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;min-height:38px;padding:8px 10px;font-weight:850}.affiliate-rail .side-action-list button{border-color:#e7a8b847;background:#ffffff12;color:#f9f1fb;box-shadow:none}.affiliate-rail .side-action-list button:hover,.affiliate-rail .side-action-list button:focus-visible{border-color:#e7a8b8ad;background:#6562e733;color:#fff8fb}.affiliate-rail .side-action-list button.danger{border-color:#f0a9bd85;background:#a93f5829;color:#fff8fb}.editor-shell,.viewer-shell,.settings-grid,.legal-grid,.admin-grid{display:grid;gap:12px}.admin-lock-panel{max-width:520px}.admin-lock-form{display:grid;gap:12px}.admin-lock-form button{justify-content:center;min-height:40px;font-weight:850}.login-strip{display:grid;grid-template-columns:minmax(240px,1fr) minmax(260px,auto) minmax(220px,.8fr);align-items:center;gap:10px;margin-bottom:12px}.login-strip h2,.login-strip p{margin:0}.oauth-actions{display:flex;gap:8px;flex-wrap:wrap}.oauth-button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--fg);padding:8px 12px;text-decoration:none;font-weight:800;box-shadow:0 1px 2px #252f460f}.oauth-button:hover,.oauth-button:focus-visible{border-color:var(--accent);background:#f4f1ff}.oauth-button.google{border-color:#6562e757}.oauth-button.disabled,.oauth-button.disabled:hover,.oauth-button.disabled:focus-visible{cursor:not-allowed;border-color:#c2cad8b3;background:#f1f4f8;color:#8a94a6;box-shadow:none;opacity:.72}.oauth-button.discord{border-color:#e7a8b87a;background:#e7a8b81c}.login-note{color:var(--muted);font-size:12px;line-height:1.5}.account-status>span{display:grid;gap:2px}.account-status small{color:inherit;font-size:11px;opacity:.74}.account-avatar{width:28px;height:28px;border:1px solid rgba(255,255,255,.28);border-radius:999px;object-fit:cover}.editor-header,.viewer-hero{display:flex;align-items:center;gap:16px;justify-content:space-between;border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:14px}.editor-header h1,.viewer-hero h1,.empty-state h1{margin:0;font-size:24px}.editor-header p,.viewer-hero p,.viewer-hero small{margin:5px 0 0;color:var(--muted)}.field-grid,.sheet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.field,.sheet-item{display:grid;gap:6px}.theme-picker{display:grid;grid-template-columns:minmax(120px,180px) minmax(120px,180px) minmax(160px,1fr);gap:10px;align-items:end}.color-field input[type=color]{min-height:42px;padding:4px}.theme-preview{display:grid;grid-template-columns:1fr 1fr;min-height:42px;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--surface-2)}.theme-preview span:first-child{background:var(--character-primary)}.theme-preview span:last-child{background:var(--character-secondary)}.field span,.sheet-item dt{color:var(--muted);font-size:12px}.field-wide,.sheet-wide{grid-column:1 / -1}.sheet-grid{margin:0}.sheet-item{min-height:74px;border:1px solid var(--line);border-radius:8px;background:#18191c;padding:10px}.sheet-item dd{margin:0;white-space:pre-wrap;line-height:1.5}.system-sheet{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(300px,1fr) minmax(320px,1.25fr);gap:12px;align-items:start}.dnd-sheet,.coc-sheet{grid-template-columns:1fr}.sheet-section{display:grid;gap:10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:12px}.sheet-section h2,.sheet-note h3,.skill-table h3{margin:0}.sheet-section h2{color:var(--fg);font-size:14px;letter-spacing:0}.sheet-toolbar{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.sheet-toolbar button{min-height:30px;padding:5px 9px}.sheet-section-wide{grid-column:1 / -1}.compact-field-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.dnd-header-panel .compact-field-grid{grid-template-columns:minmax(160px,1.2fr) minmax(160px,1.3fr) 92px minmax(150px,1fr) minmax(130px,1fr) 120px minmax(180px,.9fr);align-items:end}.dnd-inspiration{min-height:42px;justify-content:center;border:1px solid var(--line);border-radius:6px;background:#18191c;padding:8px 10px}.dnd-vitals-panel .stat-strip{grid-template-columns:104px 132px 104px minmax(150px,1.2fr) 104px 120px 148px 148px 132px 132px}.dnd-armor-grid{display:grid;grid-template-columns:minmax(220px,1fr) 112px 132px auto;align-items:end;gap:10px}.dnd-shield-field{min-height:42px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:6px;background:#18191c;padding:8px 10px}.dnd-spell-panel .dnd-spell-grid{grid-template-columns:minmax(180px,1fr) 160px 160px}.dnd-ability-section .ability-grid{grid-template-columns:repeat(6,minmax(110px,1fr))}.dnd-main-grid{grid-column:1 / -1;display:grid;grid-template-columns:minmax(240px,.82fr) minmax(300px,1fr) minmax(420px,1.45fr);gap:12px;align-items:start}.dnd-main-grid>.sheet-section{min-width:0}.dnd-save-list .check-row,.dnd-skill-list .check-row{min-height:36px}.dnd-skill-list{grid-template-columns:1fr}.dnd-skill-legend,.dnd-skill-row{grid-template-columns:24px 24px minmax(0,1fr) 52px}.dnd-skill-legend{display:grid;align-items:center;gap:8px;color:var(--muted);font-size:11px;padding:0 8px}.dnd-skill-legend span,.dnd-skill-legend strong{text-align:center}.dnd-skill-legend span:nth-child(2){grid-column:2}.dnd-skill-legend strong{grid-column:4}.dnd-skill-row input{width:16px;height:16px;padding:0}.dnd-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dnd-actions-panel textarea{min-height:108px}.dnd-actions-panel .field-wide textarea{min-height:150px}.dnd-actions-panel .sheet-note:first-child{grid-column:1 / -1;min-height:150px}.dnd-actions-panel .sheet-note{min-height:108px}.dnd-attack-table{display:grid;overflow-x:auto;border:1px solid rgba(62,65,73,.72);border-radius:8px;background:#18191c}.dnd-attack-header,.dnd-attack-row{display:grid;grid-template-columns:minmax(132px,1fr) 76px minmax(124px,.9fr) 84px minmax(148px,1fr) 64px;min-width:700px}.dnd-attack-table-readonly .dnd-attack-header,.dnd-attack-table-readonly .dnd-attack-row{grid-template-columns:minmax(132px,1fr) 76px minmax(124px,.9fr) 84px minmax(148px,1fr);min-width:620px}.dnd-attack-header{background:#30333a;color:var(--muted);font-size:12px}.dnd-attack-header strong,.dnd-attack-row input,.dnd-attack-row span,.dnd-attack-row button{min-width:0;border-width:0 1px 1px 0;border-color:#3e4149b8;border-radius:0}.dnd-attack-header strong,.dnd-attack-row span{display:grid;align-items:center;min-height:36px;padding:6px 8px}.dnd-attack-row input{min-height:36px;background:transparent}.dnd-attack-row button{min-height:36px}.dnd-side-panel .sheet-note{min-height:92px}.stat-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:8px}.stat-box{display:grid;gap:6px;min-height:92px;align-content:center;border:1px solid var(--line);border-radius:8px;background:#18191c;padding:10px}.dnd-sheet .stat-box{min-height:78px;border-color:#f2a36d47;background:#1a1b1e}.dnd-sheet .stat-box span{text-transform:none}.dnd-sheet .stat-box strong,.dnd-sheet .stat-box-readonly strong{font-size:24px}.stat-box span,.ability-card span,.coc-ability-card span,.skill-row small,.check-row small,.sheet-note h3,.skill-table h3,.sheet-kv-grid dt{color:var(--muted);font-size:12px}.stat-box strong,.stat-box-readonly strong{font-size:22px}.stat-box small{color:var(--accent-2);font-weight:700}.stat-box input{text-align:center;font-weight:700}.stat-box-readonly{text-align:center}.ability-grid,.coc-ability-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.coc-ability-grid{grid-template-columns:repeat(8,minmax(88px,1fr))}.coc-sheet .compact-field-grid{grid-template-columns:minmax(180px,1.25fr) 100px 100px minmax(120px,.8fr) minmax(120px,.8fr) minmax(170px,1fr);align-items:end}.coc-sheet .stat-strip{grid-template-columns:repeat(auto-fit,minmax(118px,1fr))}.coc-sheet .stat-box{min-height:58px;border-color:#c3cbd38c;background:#30343c;padding:8px 10px}.coc-sheet .stat-box strong,.coc-sheet .stat-box-readonly strong{font-size:18px}.coc-sheet .stat-box input{min-height:34px;padding:5px 8px}.coc-sheet .sheet-kv-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.coc-sheet .sheet-kv-grid div{min-height:54px;border-width:0 0 1px;border-radius:0;background:transparent;text-align:center}.coc-sheet .sheet-kv-grid dd{font-size:18px;font-weight:800}.coc-sheet .coc-ability-card{min-height:86px;border-width:0 0 1px;border-radius:0;background:transparent}.coc-sheet .coc-ability-card strong{font-size:24px}.coc-main-grid{grid-column:1 / -1;display:grid;grid-template-columns:minmax(560px,.92fr) minmax(360px,1.45fr);gap:12px;align-items:start}.coc-skills-panel,.coc-side-panel{min-width:0}.coc-side-panel .textarea-grid{grid-template-columns:1fr}.coc-side-panel .field textarea{min-height:76px}.coc-side-panel .sheet-note{min-height:58px;border-color:#c3cbd366;background:#1d2024}.coc-side-panel .sheet-note p{max-height:220px;overflow:auto}.jp-tabletop-sheet,.shinobigami-sheet{grid-template-columns:1fr}.jp-tabletop-sheet .compact-field-grid,.shinobigami-sheet .compact-field-grid{grid-template-columns:repeat(auto-fit,minmax(136px,1fr))}.jp-tabletop-sheet .textarea-grid,.shinobigami-sheet .textarea-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.jp-tabletop-sheet .field textarea,.shinobigami-sheet .field textarea{min-height:120px}.shinobi-skill-grid{display:grid;grid-template-columns:34px repeat(6,minmax(118px,1fr)) 34px;overflow:auto;border:1px solid rgba(62,65,73,.72);border-radius:8px;background:linear-gradient(90deg,rgba(21,21,24,.08) 1px,transparent 1px),linear-gradient(180deg,rgba(21,21,24,.08) 1px,transparent 1px),#f4f2ed;background-size:118px 34px,118px 34px,auto;color:#151518}.shinobi-skill-heading{min-width:118px;margin:0;border-right:1px solid #151518;border-bottom:1px solid #151518;background:#272727;color:#f8f6f1;font-size:14px;text-align:center;padding:8px 6px}.shinobi-skill-axis{display:grid;align-items:center;justify-items:center;min-height:34px;border-right:1px solid #151518;border-bottom:1px solid #151518;background:#ece8df;color:#151518;font-size:12px;font-weight:900}.shinobi-skill-grid>.shinobi-skill-axis:nth-child(8n){border-right:0;border-left:1px solid #151518}.shinobi-skill-axis-corner{background:#272727}.shinobi-skill-cell{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;min-width:118px;min-height:34px;border-right:1px solid #151518;border-bottom:1px solid #151518;padding:4px 6px;font-weight:700}.shinobi-skill-cell input{width:18px;height:18px;padding:0}.shinobi-skill-cell i{font-style:normal;text-align:center}.shinobi-skill-cell.active{background:#dceef7}.shinobi-skill-viewer{display:grid;gap:10px}.shinobi-skill-button{width:100%;border-top:0;border-left:0;border-radius:0;background:transparent;color:inherit;cursor:pointer;text-align:left}.shinobi-skill-button:hover,.shinobi-skill-button:focus-visible{background:#fff7d6}.shinobi-skill-cell.is-selected{box-shadow:inset 0 0 0 3px #ce7a00}.shinobi-judge-panel{display:grid;grid-template-columns:minmax(180px,1fr) 120px minmax(220px,2fr);gap:10px;align-items:stretch}.shinobi-judge-panel>div{display:grid;gap:4px;border:1px solid rgba(62,65,73,.18);border-radius:8px;background:#ffffffb8;padding:10px}.shinobi-judge-panel span{color:var(--muted);font-size:12px;font-weight:800}.shinobi-judge-panel strong{color:var(--fg)}.shinobi-judge-results{align-content:start}.shinobi-judge-results p{display:flex;gap:8px;align-items:baseline;margin:0}.shinobi-row-panel{display:grid;gap:10px}.shinobi-row-table{overflow:auto;border:1px solid rgba(62,65,73,.72);border-radius:8px;background:#f4f2ed;color:#151518}.shinobi-row-grid{display:grid;min-width:920px}.shinobi-ninpo-table .shinobi-row-grid{grid-template-columns:44px minmax(150px,1fr) 116px 132px 72px 72px minmax(280px,2fr) 82px 112px}.shinobi-background-table .shinobi-row-grid{grid-template-columns:44px minmax(160px,1fr) 108px 86px minmax(300px,2fr) 82px 112px}.shinobi-ougi-table .shinobi-row-grid{grid-template-columns:44px minmax(150px,1fr) 132px minmax(250px,1.5fr) minmax(250px,1.5fr) 82px 112px}.shinobi-tool-table .shinobi-row-grid{grid-template-columns:44px minmax(180px,1fr) 76px minmax(300px,2fr) 82px 112px}.shinobi-row-header{position:sticky;top:0;z-index:1;background:#272727;color:#f8f6f1}.shinobi-row-header>*,.shinobi-row>*,.shinobi-view-row>*{min-width:0;border-right:1px solid #151518;border-bottom:1px solid #151518;padding:6px}.shinobi-row-header>*{display:grid;place-items:center;min-height:34px;font-size:13px}.shinobi-row>*,.shinobi-view-row>*{display:grid;align-items:center;background:#ffffffb8}.shinobi-row input,.shinobi-row select,.shinobi-row textarea{width:100%;min-width:0}.shinobi-row textarea{min-height:76px;resize:vertical}.shinobi-secret-check{justify-items:center}.shinobi-secret-check input{width:18px;height:18px;padding:0}.shinobi-row-actions{display:flex;align-items:center;justify-content:center;gap:4px}.shinobi-view-row strong,.shinobi-view-row span,.shinobi-view-row p{white-space:pre-wrap;overflow-wrap:anywhere}.shinobi-view-row p{margin:0}.shinobi-view-row.is-masked{color:#5c6370}.shinobi-view-row.is-masked>*{background:#edeff4e6}.shinobi-secret-unlock{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,260px) auto;gap:10px;align-items:end}.shinobi-secret-unlock>div{display:grid;gap:4px}.shinobi-secret-unlock small{color:var(--muted)}.shinobi-secret-error{grid-column:1 / -1;color:var(--danger);font-weight:700}.ability-card,.coc-ability-card{display:grid;min-height:118px;gap:6px;align-content:center;text-align:center;border:1px solid var(--line);border-radius:8px;background:#18191c;padding:10px}.dnd-sheet .ability-card{min-height:124px;border-color:#f2a36d52;background:linear-gradient(180deg,#f2a36d14,#f2a36d00),#18191c}.ability-card strong,.ability-card em,.coc-ability-card strong{font-style:normal;font-size:28px;line-height:1}.ability-card input,.coc-ability-card input{width:min(90px,100%);margin:0 auto;text-align:center;font-weight:700}.ability-card small,.coc-ability-card small{color:var(--muted);line-height:1.3}.check-list{display:grid;gap:5px}.skill-list{grid-template-columns:repeat(2,minmax(0,1fr))}.check-row{display:grid;grid-template-columns:24px minmax(0,1fr) 46px;align-items:center;gap:8px;min-height:34px;border:1px solid rgba(62,65,73,.72);border-radius:6px;background:#18191c;padding:5px 8px}.check-row input{width:16px;height:16px;padding:0}.check-row i{color:var(--accent-2);font-style:normal;text-align:center}.check-row span{display:grid;gap:1px;min-width:0}.check-row strong{color:var(--fg);text-align:right}.note-field{margin-top:4px}.textarea-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.sheet-note{min-height:116px;border:1px solid rgba(62,65,73,.72);border-radius:8px;background:#18191c;padding:10px}.sheet-note p{margin:6px 0 0;white-space:pre-wrap;color:var(--fg);line-height:1.5}.sheet-kv-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:0}.sheet-kv-grid div{min-height:64px;border:1px solid rgba(62,65,73,.72);border-radius:8px;background:#18191c;padding:10px}.sheet-kv-grid dd{margin:4px 0 0;overflow-wrap:anywhere}.skill-table-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.skill-table{display:grid;gap:6px;border:1px solid rgba(62,65,73,.72);border-radius:8px;background:#18191c;padding:10px}.skill-row{display:grid;grid-template-columns:minmax(0,1fr) 72px;align-items:center;gap:8px;min-height:38px;border-top:1px solid rgba(62,65,73,.56);padding-top:6px}.skill-row span{display:grid;gap:2px;min-width:0}.skill-row input,.skill-row strong{width:100%;text-align:center;font-weight:700}.skill-row strong{border:1px solid var(--line);border-radius:6px;background:#151518;padding:8px 10px}.coc-skill-sheet{display:grid;gap:0;overflow:auto;border:1px solid rgba(62,65,73,.72);border-radius:8px;background:#18191c}.coc-skill-panel-heading{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.coc-skill-panel-heading h2{flex:1;min-width:120px;margin:0}.coc-skill-toggle{display:inline-flex;flex:0 0 auto;align-items:center;gap:6px;min-height:28px;border:1px solid rgba(195,203,211,.38);border-radius:6px;background:#ffffffa8;color:#303548;cursor:pointer;font-size:12px;font-weight:850;padding:4px 8px}.coc-skill-toggle input{width:15px;height:15px;margin:0;accent-color:var(--character-primary)}.coc-skill-header,.coc-skill-row{display:grid;grid-template-columns:minmax(148px,1.4fr) repeat(5,minmax(58px,.55fr)) minmax(64px,.65fr);min-width:620px}.coc-skill-header{position:sticky;top:0;z-index:1;background:#3a3d45}.coc-skill-header strong,.coc-skill-row>span,.coc-skill-row>strong{display:grid;place-items:center;min-height:34px;border-right:1px solid rgba(62,65,73,.72);border-bottom:1px solid rgba(62,65,73,.72);padding:4px 6px;text-align:center}.coc-skill-group{display:contents}.coc-skill-group h3{grid-column:1 / -1;min-width:620px;margin:0;border-bottom:1px solid rgba(62,65,73,.72);background:#22252b;color:var(--accent-2);font-size:12px;padding:6px 10px}.coc-skill-row:nth-child(odd){background:#20232a}.coc-skill-row:nth-child(2n){background:#30343c}.coc-skill-row input{min-width:0;height:34px;border:0;border-right:1px solid rgba(62,65,73,.72);border-bottom:1px solid rgba(62,65,73,.72);border-radius:0;background:transparent;text-align:center;font-weight:700}.coc-skill-row>span:first-child{justify-items:center;font-weight:700}.coc-skill-row small{display:block;color:var(--muted);font-size:11px;line-height:1.2}.coc-skill-row>strong{background:#7f95a6;color:#101318}.coc-skill-row-over-limit>span:first-child{color:#ffd7d7}.coc-skill-row-over-limit>strong{background:#f1b5b5;color:#171012;box-shadow:inset 0 0 0 1px #7e232373}.coc-skill-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.coc-skill-summary div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-height:36px;border:1px solid rgba(195,203,211,.4);border-radius:6px;background:#252932;padding:6px 9px}.coc-skill-summary span{color:var(--muted);font-size:12px}.coc-skill-summary strong{font-size:16px}.coc-skill-summary .over-limit{border-color:#f1b5b5b8;background:#7e232333}.coc-skill-summary .over-limit strong{color:#ffd7d7}.image-editor{display:flex;align-items:center;gap:14px}.portrait-preview{width:128px;height:128px}.file-button{position:relative;width:fit-content;border:1px solid var(--line);border-radius:6px;background:var(--surface-3);cursor:pointer}.file-button input{position:absolute;inset:0;opacity:0;cursor:pointer}.file-button.disabled{opacity:.5;cursor:not-allowed}.image-remove{margin-left:8px}.viewer-hero{justify-content:flex-start}.viewer-portrait{width:150px;height:150px}.viewer-hero .command-row{margin-left:auto}.memo-text{white-space:pre-wrap}.tag-row{display:flex;gap:6px;flex-wrap:wrap}.section-heading-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.section-heading-row h2{margin-bottom:0}.empty-note{color:var(--muted)}.session-reward-totals{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}.session-reward-totals div{min-width:140px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);padding:8px 10px}.session-reward-totals dt{color:var(--muted);font-size:12px}.session-reward-totals dd{margin:3px 0 0;font-size:18px;font-weight:800}.session-history-table-wrap{overflow-x:auto}.session-history-table{width:100%;min-width:760px;border-collapse:collapse}.session-history-table th,.session-history-table td{border-bottom:1px solid var(--line);padding:8px;text-align:left;vertical-align:top}.session-history-table th{color:var(--muted);font-size:12px;font-weight:800}.session-history-table td:first-child{width:150px}.session-history-table td:nth-child(2){min-width:180px}.session-history-table td:last-child{width:48px}.session-history-table input,.session-history-table textarea{min-width:0}.session-history-table textarea{min-height:54px}.session-history-table-readonly{min-width:640px}.session-history-table-readonly td{white-space:pre-wrap}.session-history-delete{width:36px;min-height:36px;padding:0}.legal-grid,.admin-grid,.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.legal-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.legal-tabs button.active{background:var(--accent);border-color:var(--accent);color:#1d1712}.metric strong{display:block;margin-top:8px;font-size:28px}.metric span{color:var(--muted)}.ad-admin-list{display:grid;gap:8px}.ad-admin-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;border:1px solid var(--line);border-radius:8px;background:#18191c;padding:10px}.ad-admin-row strong,.ad-admin-row small{display:block}.ad-admin-row small,.ad-admin-row p{color:var(--muted)}.ad-admin-row p{margin:4px 0 0}.admin-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.toggle-field{display:inline-flex;align-items:center;gap:8px;color:var(--muted)}.toggle-field input{width:auto}.muted{opacity:.65}.danger{border-color:#ff9a9a7a;background:var(--danger-bg);color:var(--danger)}.dialog-backdrop{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:#0c0e1294;padding:20px}.confirm-dialog{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;width:min(520px,100%);border:1px solid rgba(255,154,154,.36);border-radius:12px;background:var(--panel);box-shadow:0 24px 70px #0000006b;padding:18px}.confirm-dialog-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:10px}.confirm-dialog-body{display:grid;gap:10px}.confirm-dialog-body h2,.confirm-dialog-body p{margin:0}.confirm-dialog-body p{color:var(--muted)}.confirm-field input{text-transform:none}.confirm-dialog-actions{grid-column:1 / -1;display:flex;justify-content:flex-end;gap:8px}.confirm-dialog-actions button:disabled{cursor:not-allowed;opacity:.46}.row-details-backdrop{position:fixed;inset:0;z-index:110;display:grid;place-items:center;background:#0c0e129e;padding:clamp(12px,4vw,28px)}.row-details-dialog{display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:12px;width:min(720px,100%);max-height:min(760px,calc(100vh - 32px));border:1px solid rgba(101,98,231,.34);border-radius:8px;background:#fffdfd;color:#262124;box-shadow:0 28px 80px #00000061;padding:clamp(14px,3vw,20px)}.row-details-header{display:flex;gap:12px;align-items:start;justify-content:space-between}.row-details-header h2,.row-details-header p{margin:0}.row-details-header h2{color:#262124;font-size:20px}.row-details-header p,.row-details-summary{color:#4f4650;font-size:13px;line-height:1.55}.row-details-summary{border:1px solid rgba(101,98,231,.18);border-radius:7px;background:#6562e714;padding:8px 10px}.row-details-body{min-height:0;overflow:auto;padding-right:2px}.row-details-field-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.row-details-field-grid .field{min-width:0}.empty-state{display:grid;place-items:center;min-height:360px;text-align:center;border:1px dashed var(--line);border-radius:8px;background:#ffffff05;padding:24px}.empty-state p{color:var(--muted)}.route-error{display:grid;justify-items:start;gap:10px;min-height:240px;align-content:center}.route-error h1,.route-error p{margin:0}.app-header{min-height:64px;background:#ffffffeb;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 1px #d8dee8c7;position:sticky;top:0;z-index:10}.brand-button{color:var(--fg)}.brand-mark{border-radius:12px;background:#1f2d3f;color:#f7c873;box-shadow:inset 0 0 0 1px #f7c87352}.top-nav button{border-color:transparent;background:transparent;color:#394456;box-shadow:none}.top-nav button:hover,.top-nav button:focus-visible{background:#f4f6fa;box-shadow:none}.top-nav button.active,.segmented button.active{background:#fff6e8;border-color:#a160285c;color:#7b4214;box-shadow:0 1px #a160281f}.workspace{background:#ffffff47}.sidebar,.affiliate-rail{background:#ffffffc7;border-color:#d8dee8e6}.main-pane{padding:20px}.panel,.ad-slot,.character-row,.editor-header,.viewer-hero,.sheet-section,.metric,.ad-admin-row{border-color:#d8dee8e6;background:#fffffff0;box-shadow:var(--shadow)}.panel,.ad-slot,.character-row,.editor-header,.viewer-hero,.sheet-section{border-radius:12px}.panel h1,.editor-header h1,.viewer-hero h1,.empty-state h1{color:#141a24;letter-spacing:0}.panel h2,.sheet-section h2{color:#202838;font-weight:800}.notice{border-color:#1f7f7347;background:#eefaf7;color:#145d54;box-shadow:0 8px 22px #1f7f7314}.ad-slot{background:#ffffffb8;border-style:solid}.ad-slot span,.system-pill,.character-row span,.tag-row span{border-color:#d8dee8e6;background:#f8fafc;color:#596579}.character-row{transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.character-row:hover{border-color:#2563eb47;transform:translateY(-1px);box-shadow:0 18px 42px #252f4624}.portrait-slot,.portrait-preview,.viewer-portrait{border-color:#c2cad8e6;background:#eef2f7;color:#7b8495;box-shadow:inset 0 0 0 1px #ffffffb8}.portrait-slot,.portrait-preview{border-radius:10px}.viewer-portrait{border-radius:14px}.row-actions button,.command-row button,.file-button,.quiet-link,.affiliate-link{border-radius:9px}.row-actions button{width:36px;padding:7px}.command-row button:first-child,.file-button{border-color:#a160285c;background:#fff7ea;color:#75410f}.command-row button:first-child:hover,.file-button:hover{background:#ffefd5}.danger{border-color:#b4231842;background:var(--danger-bg);color:var(--danger)}.sheet-item,.stat-box,.ability-card,.coc-ability-card,.check-row,.sheet-note,.sheet-kv-grid div,.skill-table,.ad-admin-row{border-color:#d8dee8e6;background:#fff}.sheet-note,.sheet-item,.skill-table{box-shadow:inset 0 1px #ffffffb8}.sheet-note p,.legal-page p,.sheet-item dd{color:#273142}.stat-box{min-height:84px}.stat-box small,.check-row i{color:var(--accent-2)}.stat-box strong,.stat-box-readonly strong,.check-row strong{color:#171e2b}.empty-state{border-color:#c2cad8e6;background:#ffffffc2;box-shadow:var(--shadow)}.login-strip{border-left:4px solid var(--accent-blue)}.dnd-sheet .sheet-section{border-color:#caa05857}.dnd-header-panel,.dnd-vitals-panel,.dnd-spell-panel{background:linear-gradient(180deg,#fff9eed9,#fffffff5),#fff}.dnd-inspiration,.dnd-shield-field{border-color:#caa05861;background:#fff9ef;color:#75410f}.dnd-sheet .stat-box{border-color:#caa0584d;background:#fffdf9}.dnd-sheet .stat-box strong,.dnd-sheet .stat-box-readonly strong{color:#19140e;font-family:Georgia,Times New Roman,serif;font-size:26px}.dnd-sheet .ability-card{min-height:122px;border-color:#caa0586b;background:linear-gradient(180deg,#fff6e5d9,#fffffff5),#fff;box-shadow:inset 0 0 0 1px #ffffffc7}.dnd-sheet .ability-card span{color:#7b4a1d;font-weight:800}.dnd-sheet .ability-card strong,.dnd-sheet .ability-card em{font-family:Georgia,Times New Roman,serif}.dnd-attack-table{border-color:#caa05852;background:#fff}.dnd-attack-header{background:#fff4df;color:#75410f}.dnd-attack-header strong,.dnd-attack-row input,.dnd-attack-row span,.dnd-attack-row button{border-color:#caa0583d}.dnd-attack-row:nth-child(odd){background:#fffdfa}.coc-sheet .sheet-section{border-color:#5476a847}.coc-sheet .sheet-section h2{color:#234a77}.coc-sheet .stat-box{border-color:#5476a83d;background:#f8fbff}.coc-sheet .stat-box strong,.coc-sheet .stat-box-readonly strong{color:#1d4f91;font-size:20px}.coc-sheet .sheet-kv-grid div{border-color:#5476a82e;background:#fbfdff}.coc-sheet .sheet-kv-grid dd{color:#1b2737}.coc-sheet .coc-ability-card{border-color:#5476a83d;background:#fff}.coc-sheet .coc-ability-card span{color:#234a77;font-weight:800}.coc-skill-sheet{border-color:#5476a847;background:#fff}.coc-skill-header{background:#eef5ff;color:#234a77}.coc-skill-group h3{border-color:#5476a83d;background:#f6faff;color:#1f7f73}.coc-skill-header strong,.coc-skill-row>span,.coc-skill-row>strong,.coc-skill-row input{border-color:#5476a82e}.coc-skill-row:nth-child(odd){background:#fff}.coc-skill-row:nth-child(2n){background:#f8fbff}.coc-skill-row>strong{background:#e7f0fb;color:#16395f}.coc-skill-row-over-limit>strong{background:#ffe1df;color:#8f1d14;box-shadow:inset 0 0 0 1px #b4231833}.coc-skill-summary div{border-color:#5476a838;background:#f8fbff}.coc-skill-summary .over-limit{border-color:#b423184d;background:#fff0ef}.coc-skill-summary .over-limit strong{color:#9a1f15}.coc-side-panel .sheet-note{border-color:#5476a82e;background:#fff}.jp-tabletop-sheet .sheet-section,.shinobigami-sheet .sheet-section{background:#fffffff0}.shinobi-skill-grid{border-color:#cfd6e2;background:linear-gradient(90deg,rgba(36,49,69,.08) 1px,transparent 1px),linear-gradient(180deg,rgba(36,49,69,.08) 1px,transparent 1px),#fff;color:#182231}.shinobi-skill-heading,.shinobi-skill-axis,.shinobi-skill-cell{border-color:#d6dce7}.shinobi-skill-heading{background:#243145;color:#fff}.shinobi-skill-axis{background:#eef2f7;color:#243145}.shinobi-skill-axis-corner{background:#243145}.shinobi-skill-cell.active{background:#e9f4ff}.shinobi-row-table{border-color:#cfd6e2;background:#fff;color:#182231}.shinobi-row-header{background:#243145;color:#fff}.shinobi-row-header>*,.shinobi-row>*,.shinobi-view-row>*{border-color:#d6dce7}.shinobi-row>*,.shinobi-view-row>*{background:#fff}.shinobi-view-row.is-masked>*{background:#eef2f7}.quiet-link{margin-top:auto}.character-theme-scope{--character-primary: #6562e7;--character-secondary: #e7a8b8}.character-row.character-theme-scope{position:relative;overflow:hidden;border-left:5px solid var(--character-primary)}.character-row.character-theme-scope:after{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,var(--character-primary),var(--character-secondary));pointer-events:none;z-index:0}.character-row.character-theme-scope>*{position:relative;z-index:1}.character-theme-scope .editor-header,.character-theme-scope .viewer-hero,.character-theme-scope .sheet-section,.character-theme-scope>.panel{position:relative;overflow:hidden}.character-theme-scope .editor-header:before,.character-theme-scope .viewer-hero:before,.character-theme-scope .sheet-section:before,.character-theme-scope>.panel:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,var(--character-primary),var(--character-secondary))}.character-theme-scope .sheet-section h2,.character-theme-scope .panel h2,.character-theme-scope .system-pill,.character-theme-scope .stat-box small,.character-theme-scope .check-row small{color:var(--character-primary)}.character-theme-scope .stat-box,.character-theme-scope .ability-card,.character-theme-scope .coc-ability-card,.character-theme-scope .sheet-note,.character-theme-scope .sheet-kv-grid div,.character-theme-scope .skill-table{border-left:3px solid var(--character-secondary)}.character-theme-scope .dnd-attack-header,.character-theme-scope .coc-skill-header,.character-theme-scope .coc-skill-row>strong{background:#f6f8fb;color:var(--character-primary)}.character-theme-scope .coc-skill-group h3{color:var(--character-secondary)}.character-theme-scope .command-row button:first-child,.character-theme-scope .file-button{border-color:var(--character-secondary);background:#f4f6fb;color:#3d465c}@media(min-width:1180px){.workspace{grid-template-columns:280px minmax(0,1fr) 260px}.main-pane{padding:24px}.editor-shell,.viewer-shell{gap:16px}.dnd-main-grid{grid-template-columns:minmax(260px,.78fr) minmax(340px,1fr) minmax(500px,1.48fr)}.coc-main-grid{grid-template-columns:minmax(620px,1fr) minmax(390px,1.25fr)}}@media(max-width:980px){.workspace{grid-template-columns:1fr}.sidebar,.affiliate-rail{border-right:0;border-left:0;border-bottom:1px solid var(--line)}.main-pane{order:2}.affiliate-rail{order:3}.field-grid,.sheet-grid,.legal-grid,.admin-grid,.settings-grid,.system-sheet,.coc-sheet,.coc-main-grid,.dnd-main-grid,.dnd-armor-grid,.compact-field-grid,.coc-sheet .compact-field-grid,.dnd-header-panel .compact-field-grid,.dnd-spell-panel .dnd-spell-grid,.dnd-detail-grid,.jp-tabletop-sheet .textarea-grid,.shinobigami-sheet .textarea-grid,.textarea-grid,.sheet-kv-grid,.coc-sheet .sheet-kv-grid,.skill-table-grid,.shinobi-secret-unlock{grid-template-columns:1fr}.dnd-vitals-panel .stat-strip{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}.coc-skill-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.dnd-ability-section .ability-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dnd-actions-panel .sheet-note:first-child{grid-column:auto}.coc-ability-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.character-row{--character-list-portrait-size: 56px;grid-template-columns:var(--character-list-portrait-size) minmax(0,1fr)}.ad-admin-row,.admin-edit-grid{grid-template-columns:1fr}.row-actions{grid-column:1 / -1}}@media(max-width:760px){.main-pane,.sidebar,.affiliate-rail{padding:12px}.character-list{gap:12px}.character-row{--character-list-portrait-size: 64px;grid-template-columns:var(--character-list-portrait-size) minmax(0,1fr);align-items:start;padding:12px}.row-title{gap:6px}.row-title h2{flex-basis:100%;font-size:17px}.theme-picker{grid-template-columns:1fr}.theme-preview{min-height:34px}.dnd-ability-section .ability-grid,.coc-ability-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.coc-main-grid,.dnd-main-grid{gap:10px}}@media(max-width:640px){.app-header,.editor-header,.viewer-hero,.image-editor{align-items:stretch;flex-direction:column}.top-nav{width:100%;margin-left:0}.account-status,.login-strip{width:100%}.login-strip{grid-template-columns:1fr}.top-nav button{flex:1}.viewer-hero .command-row{margin-left:0}.stat-strip,.coc-sheet .stat-strip,.skill-list,.coc-skill-summary,.ability-grid,.coc-ability-grid{grid-template-columns:1fr}}:root{--bg: #e8e2d7;--surface: #fffaf1;--surface-2: #f7efe2;--surface-3: #efe3d0;--fg: #23201d;--muted: #736a5c;--line: #d6c5aa;--accent: #c39253;--accent-2: #2f9d92;--accent-blue: #2a668e;--danger: #a33a32;--danger-bg: rgba(163, 58, 50, .1);--shadow: 0 18px 42px rgba(25, 31, 38, .12);--night: #101b27;--night-2: #172635;--paper: #fffaf0;--paper-deep: #f1e4cf;--seal: #a8473d;--gold: #d7ad69}body{background:linear-gradient(rgba(156,125,83,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(156,125,83,.045) 1px,transparent 1px),radial-gradient(circle at 18% 10%,rgba(215,173,105,.16),transparent 34%),var(--bg);background-size:28px 28px,28px 28px,auto,auto;color:var(--fg)}.app-header{min-height:76px;border-bottom-color:#d7ad693d;background:linear-gradient(180deg,#13202d,#0d1722);color:#f6ead8;box-shadow:0 14px 34px #09121c3d}.brand-button,.account-status,.top-nav button{color:#f6ead8}.brand-button small,.account-status{color:#f6ead8b8}.brand-mark{width:42px;height:42px;border:1px solid rgba(215,173,105,.48);border-radius:10px;background:linear-gradient(135deg,rgba(215,173,105,.16),transparent 42%),#172636;color:var(--gold);font-family:Georgia,Times New Roman,serif;letter-spacing:0}.top-nav button{border-color:#d7ad6938;background:#ffffff0a}.top-nav button:hover,.top-nav button:focus-visible,.top-nav button.active{border-color:#d7ad698f;background:#d7ad691f;color:#ffe8bd}.workspace{grid-template-columns:274px minmax(0,1fr) 260px;background:transparent}.sidebar,.affiliate-rail{border-color:#d7ad692e;background:linear-gradient(rgba(215,173,105,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(215,173,105,.028) 1px,transparent 1px),linear-gradient(180deg,#172635f5,#0c1621fa),var(--night);background-size:24px 24px,24px 24px,auto,auto;color:#f4eadc}.sidebar .panel,.affiliate-rail .panel,.sidebar .ad-slot{border-color:#d7ad693d;background:#ffffff0b;box-shadow:none}.sidebar .panel h2,.affiliate-rail .panel h2,.sidebar .panel p,.affiliate-rail .panel p{color:#f5e6ce}.system-actions button,.sidebar .segmented button,.sidebar .sidebar-list-button,.sidebar .filtered-create-button,.sidebar .filtered-reference-button,.affiliate-link{justify-content:flex-start;border-color:#d7ad692e;background:#ffffff0d;color:#efe4d3;box-shadow:none}.system-actions button{min-height:40px}.system-actions button:hover,.sidebar .segmented button:hover,.sidebar .sidebar-list-button:hover,.sidebar .sidebar-list-button:focus-visible,.sidebar .filtered-create-button:hover,.sidebar .filtered-create-button:focus-visible,.sidebar .filtered-reference-button:hover,.sidebar .filtered-reference-button:focus-visible,.affiliate-link:hover,.sidebar .segmented button.active{border-color:#d7ad6994;background:#d7ad6924;color:#ffe6b2}.sidebar .filtered-create-button,.sidebar .filtered-reference-button{justify-content:center;min-height:42px}.sidebar .filtered-create-button{border-color:#d7ad696b;background:#d7ad691f;color:#ffe8bd}.sidebar .filtered-reference-button{border-color:#7cc0b16b;background:#7cc0b11f;color:#d9fff6}.main-pane{padding:24px}.notice{border-color:#2f9d9247;background:#effaf6;color:#1a655f}.panel,.character-row,.editor-header,.viewer-hero,.sheet-section,.metric,.ad-admin-row{border-color:#ab8b5b57;background:linear-gradient(180deg,#fffcf6fa,#fff8edfa);box-shadow:var(--shadow)}.panel,.character-row,.editor-header,.viewer-hero,.sheet-section{border-radius:10px}.panel{padding:16px}.panel h1,.panel h2,.editor-header h1,.viewer-hero h1,.empty-state h1{color:#241d16}.editor-shell{gap:14px}.editor-header{align-items:center;background:linear-gradient(90deg,#fff8edf5,#fcf1def5),var(--paper);padding:18px}.editor-header h1{margin-top:5px;font-family:Georgia,Times New Roman,serif;font-size:28px}.editor-workbench{display:grid;grid-template-columns:minmax(0,1fr) 284px;gap:16px;align-items:start}.editor-main,.editor-sidecar{display:grid;gap:14px}.editor-sidecar{position:sticky;top:92px}.editor-sidecar .panel{background:linear-gradient(180deg,#fffdf8f0,#fff8ece6),url(/sheet-paper-texture-v2.png) center / cover;border-color:#ab8b5b52;color:#241d16}.editor-sidecar .panel h2,.editor-sidecar .panel p,.editor-sidecar .field span{color:#6e604d}.editor-sidecar .panel{box-shadow:0 18px 38px #46321c14}.portrait-panel{display:grid;gap:12px}.portrait-panel .portrait-preview{width:100%;height:auto;aspect-ratio:4 / 5;border-color:#ab8b5b57;background:#fffdf8c7;color:#80613b}.portrait-panel .file-button,.editor-sidecar .file-button,.editor-sidecar button{width:100%}.theme-picker,.editor-sidecar .theme-picker{grid-template-columns:1fr 1fr}.editor-sidecar .theme-preview{grid-column:1 / -1;border-color:#ab8b5b57}.publish-panel{gap:10px}.sidecar-tags{padding-top:2px}.sidecar-tags span{border-color:#ab8b5b47;background:#fff4dfd1;color:#7a4a18}.sidecar-meta{display:grid;gap:0;margin:4px 0 0;border-top:1px solid rgba(171,139,91,.2)}.sidecar-meta div{display:grid;grid-template-columns:82px minmax(0,1fr);gap:10px;padding:9px 0;border-bottom:1px solid rgba(171,139,91,.16)}.sidecar-meta dt,.sidecar-meta dd{margin:0;font-size:12px}.sidecar-meta dt{color:#7b6c58}.sidecar-meta dd{color:#2d2419;text-align:right}.field-grid{grid-template-columns:minmax(180px,1.2fr) minmax(150px,.7fr) minmax(180px,1fr)}textarea,input,select{border-color:#ab8b5b6b;background:#fffdf8f5}textarea:focus,input:focus,select:focus{border-color:#2a668e9e;outline-color:#2a668e2e}button,.file-button{border-radius:8px}button:hover,button:focus-visible{border-color:#c392539e;background:#fff3df}.command-row button:first-child,.file-button{border-color:#c392537a;background:#fff3df;color:#714314}.system-pill,.character-row span,.tag-row span,.ad-slot span{border-color:#ab8b5b5c;background:#fff4df;color:#7a4a18}.sheet-section{background:linear-gradient(rgba(171,139,91,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(171,139,91,.035) 1px,transparent 1px),#fffbf3fa;background-size:22px 22px}.sheet-section h2:before,.panel h2:before{color:var(--gold);content:""}.sheet-item,.stat-box,.ability-card,.coc-ability-card,.check-row,.sheet-note,.sheet-kv-grid div,.skill-table,.dnd-attack-table,.coc-skill-sheet{border-color:#ab8b5b4d;background:#fffdf8}.character-row:hover{border-color:#c392537a;box-shadow:0 18px 40px #45362329}.dnd-sheet .sheet-section,.coc-sheet .sheet-section{background:linear-gradient(180deg,#fffcf6fa,#fff8edfa)}.character-theme-scope .editor-header:before,.character-theme-scope .viewer-hero:before,.character-theme-scope .sheet-section:before,.character-theme-scope>.panel:before{background:linear-gradient(90deg,var(--character-primary),var(--character-secondary),var(--gold))}@media(max-width:1180px){.workspace{grid-template-columns:240px minmax(0,1fr)}.affiliate-rail{display:none}.editor-workbench{grid-template-columns:minmax(0,1fr)}.editor-sidecar{position:static;grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:980px){.workspace,.field-grid,.editor-sidecar{grid-template-columns:1fr}.sidebar,.affiliate-rail{background:linear-gradient(180deg,#172636,#111f2d)}}@media(max-width:640px){.app-header,.editor-header{align-items:stretch;flex-direction:column}.main-pane,.sidebar,.affiliate-rail{padding:12px}}.app-mode-editor .workspace{grid-template-columns:274px minmax(0,1fr)}.app-mode-editor .affiliate-rail{display:none}.editor-main,.editor-main>.panel,.system-sheet,.coc-sheet,.dnd-sheet,.jp-tabletop-sheet,.shinobigami-sheet{min-width:0}.coc-sheet,.dnd-sheet,.jp-tabletop-sheet,.shinobigami-sheet{grid-template-columns:minmax(0,1fr)}.coc-sheet>*,.dnd-sheet>*,.jp-tabletop-sheet>*,.shinobigami-sheet>*,.coc-main-grid>*,.dnd-main-grid>*{min-width:0}.editor-main>.panel{overflow:hidden}.system-sheet{gap:14px}.sheet-section{gap:12px;border-color:#85673b52;border-radius:8px;box-shadow:inset 0 1px #ffffffad}.sheet-section h2{display:flex;align-items:center;gap:9px;min-height:28px;color:#2a3b52;font-size:13px;font-weight:900}.sheet-section h2:before{display:block;width:4px;height:18px;border-radius:999px;background:linear-gradient(180deg,#c7974b,#2a668e);content:""}.sheet-section h2:after{flex:1;height:1px;background:linear-gradient(90deg,rgba(171,139,91,.34),transparent);content:""}.compact-field-grid,.dnd-header-panel .compact-field-grid,.coc-sheet .compact-field-grid{grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:8px}.field label,.sheet-item dt,.sheet-kv-grid dt{color:#6e604d;font-size:11px;font-weight:850}.field input,.field select,.field textarea,.stat-box input,.ability-card input,.coc-ability-card input,.coc-skill-row input,.dnd-attack-row input{box-shadow:inset 0 1px 1px #2b22140f}.field input,.field select{min-height:38px}.field textarea{line-height:1.55}.stat-strip,.ability-grid,.coc-ability-grid{gap:8px}.stat-box,.ability-card,.coc-ability-card,.sheet-kv-grid div,.sheet-note,.check-row{border-color:#8060323d;border-radius:7px;background:linear-gradient(180deg,#ffffffc7,#fff9eddb),#fffdf8}.stat-box{min-height:74px;padding:9px}.stat-box span,.ability-card span,.coc-ability-card span{color:#6f4d1e;font-size:11px;font-weight:900}.stat-box strong,.stat-box-readonly strong,.ability-card strong,.ability-card em,.coc-ability-card strong{color:#172033}.coc-sheet .stat-box{min-height:66px;background:linear-gradient(180deg,#ffffffe6,#f0f8ffb3),#fbfdff}.coc-sheet .coc-ability-card{min-height:96px;padding:10px 9px;border-color:#315d8b38}.coc-sheet .coc-ability-card span{color:#234a77}.coc-sheet .coc-ability-card strong{font-size:25px}.coc-sheet .sheet-kv-grid{grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:8px}.coc-sheet .sheet-kv-grid div{min-height:58px;padding:9px 10px;border-width:1px;border-color:#315d8b2e;background:#fbfdffeb}.coc-sheet .sheet-kv-grid dd{color:#172033;font-size:17px}.app-mode-editor .coc-main-grid{grid-template-columns:minmax(0,1fr)}.app-mode-editor .coc-ability-grid{grid-template-columns:repeat(auto-fit,minmax(82px,1fr))}.app-mode-editor .coc-skills-panel,.app-mode-editor .coc-side-panel{grid-column:auto}.coc-skill-sheet,.dnd-attack-table{overflow:auto;border-color:#3450713d;border-radius:7px;background:#fff;box-shadow:inset 0 0 0 1px #ffffffad}.coc-skill-header,.dnd-attack-header{background:linear-gradient(180deg,#eef5ff,#e5edf8);color:#234a77}.coc-skill-header strong,.coc-skill-row>span,.coc-skill-row>strong,.coc-skill-row input,.dnd-attack-header strong,.dnd-attack-row input,.dnd-attack-row span,.dnd-attack-row button{border-color:#34507129}.coc-skill-header strong,.dnd-attack-header strong{min-height:36px;font-size:11px;font-weight:900}.coc-skill-group h3{min-width:620px;border-color:#34507133;background:linear-gradient(90deg,#f8fbff,#fff8ec);color:#1f7f73;font-weight:900}.coc-skill-row:nth-child(odd),.dnd-attack-row:nth-child(odd){background:#fff}.coc-skill-row:nth-child(2n),.dnd-attack-row:nth-child(2n){background:#f8fbff}.coc-skill-row>span:first-child{justify-items:start;padding-left:10px;text-align:left}.coc-skill-row small{color:#7a8797}.coc-skill-row>strong{background:#e4eef8;color:#17365a;font-weight:900}.coc-skill-row-over-limit>span:first-child{color:#9a1f15}.coc-skill-summary{gap:8px}.coc-skill-summary div{border-color:#34507133;border-radius:7px;background:#f8fbff}.coc-skill-summary strong{color:#1d4f91}.tenkaran-sheet,.tenkaran-sheet>*,.tenkaran-field-grid,.tenkaran-kv-grid,.tenkaran-core-strip{min-width:0}.tenkaran-ability-grid,.tenkaran-readonly-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}.tenkaran-ability-card,.tenkaran-art-row,.tenkaran-history-row{min-width:0;border:1px solid rgba(92,97,118,.24);border-radius:7px;background:#ffffffb8;padding:10px}.tenkaran-ability-card{display:grid;gap:7px}.tenkaran-ability-card label{display:grid;gap:4px;min-width:0}.tenkaran-mini-table{display:grid;gap:8px;min-width:0}.tenkaran-mini-header,.tenkaran-class-row,.tenkaran-simple-row{display:grid;align-items:center;gap:8px;min-width:0}.tenkaran-mini-header,.tenkaran-class-row{grid-template-columns:minmax(120px,1fr) 64px minmax(120px,1fr) 42px}.tenkaran-simple-row{grid-template-columns:minmax(104px,1fr) minmax(68px,.62fr) minmax(104px,1fr) 42px}.tenkaran-mini-header>*,.tenkaran-class-row>*,.tenkaran-simple-row>*{min-width:0}.tenkaran-class-row input,.tenkaran-simple-row input{min-width:0}.tenkaran-mini-header strong{color:#4b5266;font-size:12px;font-weight:900}.tenkaran-mini-header span{min-height:1px}.tenkaran-three-column{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:14px;min-width:0}.tenkaran-add-button{justify-self:start}.tenkaran-remove-button{width:40px;min-width:40px;height:40px;padding:0}.tenkaran-combat-table,.tenkaran-wide-table,.tenkaran-defense-table{display:grid;max-width:100%;overflow-x:auto;border:1px solid rgba(92,97,118,.24);border-radius:8px;background:#ffffffa8;scrollbar-width:thin}.tenkaran-combat-header,.tenkaran-combat-row,.tenkaran-equipment-header,.tenkaran-equipment-row,.tenkaran-defense-header,.tenkaran-defense-row,.tenkaran-defense-total{display:grid;width:max-content}.tenkaran-combat-header,.tenkaran-combat-row{grid-template-columns:92px repeat(9,64px);min-width:668px}.tenkaran-equipment-header,.tenkaran-equipment-row{grid-template-columns:64px 116px repeat(9,46px) 64px 64px 72px 54px 72px 120px 42px;min-width:1082px}.tenkaran-defense-header,.tenkaran-defense-row,.tenkaran-defense-total{grid-template-columns:96px repeat(10,46px) 120px 42px;min-width:718px}.tenkaran-combat-header>*,.tenkaran-combat-row>*,.tenkaran-equipment-header>*,.tenkaran-equipment-row>*,.tenkaran-defense-header>*,.tenkaran-defense-row>*,.tenkaran-defense-total>*{display:grid;align-content:center;min-width:0;min-height:42px;border-right:1px solid rgba(92,97,118,.2);border-bottom:1px solid rgba(92,97,118,.2);padding:4px 6px}.tenkaran-combat-header,.tenkaran-equipment-header,.tenkaran-defense-header{z-index:1;background:#e6e9f1eb;color:#242a3a}.tenkaran-combat-header>*,.tenkaran-equipment-header>*,.tenkaran-defense-header>*{font-size:12px;font-weight:900;line-height:1.16}.tenkaran-combat-row:nth-child(odd),.tenkaran-equipment-row:nth-child(odd),.tenkaran-defense-row:nth-child(odd){background:#ffffffb8}.tenkaran-combat-row:nth-child(2n),.tenkaran-equipment-row:nth-child(2n),.tenkaran-defense-row:nth-child(2n),.tenkaran-defense-total{background:#eef1f8b8}.tenkaran-combat-row input,.tenkaran-equipment-row input,.tenkaran-defense-row input{width:100%;min-width:0;height:34px;border-radius:5px;padding:3px 4px;text-align:center}.tenkaran-equipment-row input:first-child,.tenkaran-equipment-row input:nth-child(2),.tenkaran-defense-row input:first-child,.tenkaran-defense-row input:nth-last-child(2){text-align:left}.tenkaran-combat-header>:first-child,.tenkaran-combat-row>:first-child,.tenkaran-defense-header>:first-child,.tenkaran-defense-row>:first-child,.tenkaran-defense-total>:first-child,.tenkaran-equipment-header>:first-child,.tenkaran-equipment-row>:first-child{position:sticky;left:0;z-index:2;background:inherit;box-shadow:1px 0 #5c617633}.tenkaran-combat-header>:first-child,.tenkaran-defense-header>:first-child,.tenkaran-equipment-header>:first-child{z-index:3}.shinobi-skill-grid{border-radius:7px;border-color:#3450713d}.shinobi-skill-heading{background:linear-gradient(180deg,#253951,#172638)}.shinobi-skill-cell.active{background:#e6f4ff;color:#16395f;font-weight:800}@media(max-width:1180px){.app-mode-editor .workspace{grid-template-columns:240px minmax(0,1fr)}}@media(max-width:980px){.app-mode-editor .workspace{grid-template-columns:1fr}}.dnd-sheet{gap:14px}.dnd-sheet .sheet-section{border-color:#975e2457;background:linear-gradient(180deg,#fffdf8fa,#fff7e8f5),#fffaf0}.dnd-sheet .sheet-section h2{color:#6f4115;font-family:Georgia,Times New Roman,serif;font-size:15px}.dnd-sheet .sheet-section h2:before{background:linear-gradient(180deg,#b02f28,#d0a04f)}.dnd-header-panel .compact-field-grid,.dnd-spell-panel .dnd-spell-grid{grid-template-columns:repeat(auto-fit,minmax(128px,1fr))}.dnd-armor-grid{grid-template-columns:repeat(auto-fit,minmax(118px,1fr));min-width:0}.dnd-inspiration,.dnd-shield-field{min-height:42px;border-color:#975e2447;background:linear-gradient(180deg,#fff9eef5,#fff1d6db),#fff8eb;color:#6f4115;font-weight:850}.dnd-vitals-panel .stat-strip{grid-template-columns:repeat(auto-fit,minmax(92px,1fr));min-width:0}.dnd-sheet .stat-box{min-height:84px;border-color:#975e2447;background:linear-gradient(180deg,#fffefb,#fff5e5),#fffaf0}.dnd-vitals-panel .stat-box{box-shadow:inset 0 0 0 1px #ffffffa8,0 8px 18px #5636140f}.dnd-sheet .stat-box span,.dnd-sheet .ability-card span{color:#7b4a1d;font-family:Georgia,Times New Roman,serif;font-weight:900}.dnd-sheet .stat-box strong,.dnd-sheet .stat-box-readonly strong{color:#20160c;font-family:Georgia,Times New Roman,serif;font-size:25px}.dnd-ability-section .ability-grid{grid-template-columns:repeat(auto-fit,minmax(92px,1fr))}.dnd-sheet .ability-card{min-height:128px;border-color:#975e245c;background:radial-gradient(circle at 50% 12%,rgba(176,47,40,.08),transparent 34px),linear-gradient(180deg,#fffefb,#fff5e5)}.dnd-sheet .ability-card input{border-color:#975e243d;background:#fff;color:#17100a;font-family:Georgia,Times New Roman,serif;font-size:20px}.dnd-sheet .ability-card strong,.dnd-sheet .ability-card em{color:#1d160e;font-family:Georgia,Times New Roman,serif}.dnd-sheet .ability-card small{color:#86643c}.dnd-main-grid{grid-template-columns:minmax(0,.78fr) minmax(0,1fr) minmax(0,1.38fr)}.app-mode-editor .dnd-main-grid{grid-template-columns:minmax(0,1fr)}.dnd-side-panel,.dnd-skill-panel,.dnd-actions-panel{min-width:0}.dnd-save-list .check-row,.dnd-skill-list .check-row{min-height:38px}.dnd-skill-legend{margin-bottom:2px;border-bottom:1px solid rgba(151,94,36,.18);color:#80613b;font-weight:850;padding:0 8px 7px}.dnd-skill-row{border-color:#975e2433;background:#fffdf8eb}.dnd-skill-row:nth-child(2n),.dnd-save-list .check-row:nth-child(2n){background:#fff7e8c2}.dnd-skill-row input{accent-color:#9b2c25}.dnd-skill-row strong,.dnd-save-list .check-row strong{color:#6f4115;font-family:Georgia,Times New Roman,serif}.dnd-attack-table{max-width:100%;border-color:#975e244d;background:#fffdf8}.dnd-attack-header,.dnd-attack-row{grid-template-columns:minmax(126px,1fr) 68px minmax(116px,.9fr) 74px minmax(132px,1fr) 56px;min-width:min(660px,100%)}.dnd-attack-table-readonly .dnd-attack-header,.dnd-attack-table-readonly .dnd-attack-row{grid-template-columns:minmax(126px,1fr) 68px minmax(116px,.9fr) 74px minmax(132px,1fr);min-width:min(590px,100%)}.dnd-attack-header{background:linear-gradient(180deg,#fff0d1,#f3dfba);color:#6f4115}.dnd-attack-header strong{font-family:Georgia,Times New Roman,serif;font-size:12px}.dnd-attack-header strong,.dnd-attack-row input,.dnd-attack-row span,.dnd-attack-row button{border-color:#975e2438}.dnd-attack-row:nth-child(odd){background:#fffdf8}.dnd-attack-row:nth-child(2n){background:#fff8ed}.dnd-attack-row input{color:#20160c}.dnd-detail-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.app-mode-editor .dnd-detail-grid{grid-template-columns:minmax(0,1fr)}.dnd-actions-panel textarea,.dnd-actions-panel .field-wide textarea{min-height:132px}.dnd-actions-panel .sheet-note{border-color:#975e243d;background:#fffdf8f5}.dnd-class-table{display:grid;overflow:auto;border:1px solid rgba(151,94,36,.26);border-radius:7px;background:#fffdf8}.dnd-class-header,.dnd-class-row{display:grid;grid-template-columns:72px minmax(150px,1.15fr) minmax(130px,.9fr) 64px 70px 98px 78px minmax(124px,.9fr) 66px 60px;min-width:1000px}.dnd-class-table-readonly .dnd-class-header,.dnd-class-table-readonly .dnd-class-row{grid-template-columns:minmax(150px,1.2fr) 88px 72px;min-width:320px}.dnd-class-header{background:linear-gradient(180deg,#fff0d1,#f3dfba);color:#6f4115;font-family:Georgia,Times New Roman,serif;font-size:12px}.dnd-class-header strong,.dnd-class-row select,.dnd-class-row input,.dnd-class-row span,.dnd-class-row button{min-width:0;min-height:38px;border-width:0 1px 1px 0;border-color:#975e2433;border-radius:0}.dnd-class-header strong,.dnd-class-row span{display:grid;align-items:center;padding:6px 8px}.dnd-class-row:nth-child(odd){background:#fffdf8}.dnd-class-row:nth-child(2n){background:#fff8ed}.dnd-class-toolbar{justify-content:space-between;gap:10px;color:#7b4a1d;font-size:12px;font-weight:850}.dnd-spell-slot-summary{display:grid;gap:6px;border:1px solid rgba(151,94,36,.24);border-radius:7px;background:linear-gradient(180deg,#fffefb,#fff5e5),#fffaf0;padding:10px 12px}.dnd-spell-slot-summary span{color:#7b4a1d;font-size:11px;font-weight:900}.dnd-spell-slot-summary strong{color:#20160c;font-family:Georgia,Times New Roman,serif;font-size:16px;line-height:1.45}.dnd-save-list .check-row,.dnd-skill-row,.dnd-skill-legend{column-gap:6px}.dnd-save-list .check-row{grid-template-columns:20px minmax(88px,1fr) 46px}.dnd-skill-legend,.dnd-skill-row{grid-template-columns:20px 20px minmax(108px,1fr) 46px}.dnd-skill-row input,.dnd-save-list .check-row input{justify-self:center;margin:0}.dnd-skill-row input:disabled{cursor:not-allowed;opacity:.38}.dnd-skill-row span,.dnd-save-list .check-row span{justify-self:start;text-align:left}@media(max-width:1180px){.dnd-main-grid{grid-template-columns:minmax(0,1fr)}}@media(max-width:640px){.dnd-attack-header,.dnd-attack-row{min-width:620px}.dnd-attack-table-readonly .dnd-attack-header,.dnd-attack-table-readonly .dnd-attack-row{min-width:560px}}.character-list,.settings-grid,.legal-grid,.admin-grid,.ad-admin-list,.panel,.ad-slot,.character-row,.ad-admin-row,.metric{min-width:0}.panel>p,.empty-state p,.legal-page p,.character-row-body p,.character-row-body small,.ad-admin-row p,.affiliate-panel,.notice{max-width:72ch}.character-row{--character-list-portrait-size: 76px;grid-template-columns:var(--character-list-portrait-size) minmax(0,1fr) minmax(128px,auto);padding:12px}.character-row-body{min-width:0}.row-title h2{overflow-wrap:anywhere;line-height:1.25}.character-row-body p,.character-row-body small{overflow-wrap:anywhere;line-height:1.45}.row-actions{justify-content:flex-end}.row-actions button{min-width:38px;padding-inline:10px}.settings-grid,.legal-grid{grid-template-columns:minmax(0,1fr)}.settings-grid{max-width:920px}.legal-tabs{position:sticky;top:0;z-index:2;margin:-2px 0 12px;padding:6px 0 8px;background:linear-gradient(180deg,#e8e2d7f5,#e8e2d7c7),transparent}.legal-tabs button{min-height:34px;white-space:normal}.legal-page{max-width:980px}.legal-page h2{line-height:1.25}.legal-page p{font-size:14px;line-height:1.75}.admin-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.metric{padding:12px}.metric strong{color:#1d160e;font-size:24px;line-height:1.1;overflow-wrap:anywhere}.metric span{font-size:12px;font-weight:800}.ad-admin-row{grid-template-columns:minmax(0,1fr) 92px;align-items:end;padding:12px}.ad-admin-row>button{width:100%}.admin-edit-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.admin-edit-grid>div{min-width:0}.ad-admin-row strong,.ad-admin-row small{overflow-wrap:anywhere}.affiliate-panel{gap:10px}.affiliate-link{justify-content:flex-start;width:100%;min-width:0;text-align:left}.affiliate-link span{min-width:0;overflow-wrap:anywhere}.login-strip{grid-template-columns:minmax(240px,1fr) minmax(260px,auto) minmax(220px,.8fr)}.login-strip p{max-width:56ch;line-height:1.5}.top-nav{min-width:0;flex-wrap:wrap;justify-content:flex-end}.top-nav button{white-space:nowrap}@media(max-width:980px){.main-pane{order:1}.sidebar{order:2}.affiliate-rail{order:3}.sidebar,.affiliate-rail{gap:10px}.system-actions,.segmented{grid-template-columns:repeat(auto-fit,minmax(112px,1fr))}.character-row{--character-list-portrait-size: 64px;grid-template-columns:var(--character-list-portrait-size) minmax(0,1fr);align-items:start}.row-actions{grid-column:2;justify-content:flex-start}.ad-admin-row{grid-template-columns:1fr}.ad-admin-row>button{width:fit-content}}@media(max-width:640px){.app-header{align-items:center;flex-direction:row;gap:10px;flex-wrap:wrap}.brand-button{flex:1 1 220px;width:auto}.critical-stage-link{flex:0 1 270px;margin-left:auto;width:auto}.account-status{align-items:stretch;flex-direction:column;order:3;width:100%}.top-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));order:4;width:100%}.top-nav button{min-width:0;padding-inline:8px}.notice{font-size:13px;line-height:1.5}.character-row{--character-list-portrait-size: 54px;grid-template-columns:var(--character-list-portrait-size) minmax(0,1fr);gap:10px}.row-actions{grid-column:1 / -1}.row-actions button{flex:1 1 92px}.legal-tabs{position:static}.metric strong{font-size:22px}}@media(max-width:430px){.critical-stage-link{flex-basis:100%;margin-left:0}}.admin-console{display:grid;gap:12px}.admin-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;background:linear-gradient(135deg,rgba(37,99,235,.08),transparent 42%),var(--surface)}.admin-hero h1{margin:6px 0 4px;font-size:28px;line-height:1.15}.admin-hero p{margin:0}.admin-hero-status{display:grid;justify-items:end;gap:6px;min-width:180px}.admin-status-ok,.admin-status-warn{border:1px solid rgba(31,127,115,.34);border-radius:999px;background:#1f7f731a;color:#126056;padding:5px 9px;font-size:12px;font-weight:800}.admin-status-warn{border-color:#a1602861;background:#a160281a;color:#7a471a}.admin-tabs{display:flex;flex-wrap:wrap;gap:6px;border:1px solid var(--line);border-radius:8px;background:#ffffffc2;padding:6px}.admin-tabs button{min-height:34px;min-width:96px;border-radius:6px}.admin-tabs button.active{border-color:var(--accent);background:var(--accent);color:#1d1712}.admin-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.8fr);gap:12px;align-items:start}.admin-section{display:grid;gap:12px}.admin-section>h2,.admin-section>p{margin:0}.admin-section-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.admin-section-title-row h2,.admin-section-title-row p{margin:0}.admin-section-title-row p{margin-top:4px}.admin-status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}.admin-status-grid span{border:1px solid var(--line);border-radius:6px;background:var(--surface-2);color:var(--muted);padding:8px 10px;font-size:12px;font-weight:800}.admin-room-list{display:grid;gap:8px}.admin-room-list.compact{max-height:440px;overflow:auto;padding-right:2px}.admin-room{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);padding:10px}.admin-room strong,.admin-room small{display:block;min-width:0;overflow-wrap:anywhere}.admin-room small,.admin-room-stats{color:var(--muted);font-size:12px}.admin-room-stats{display:flex;flex-wrap:wrap;gap:6px;margin-top:5px}.admin-room-stats span{border:1px solid rgba(101,112,132,.22);border-radius:999px;padding:2px 7px}.unsupported-feature-row{border-color:#a1602847;background:#a160280f}.admin-room-actions{display:flex;align-items:end;justify-content:flex-end;gap:8px;flex-wrap:wrap}.inline-limit-field{display:grid;gap:3px;color:var(--muted);font-size:12px}.inline-limit-field input{width:92px}.admin-warning-list{display:grid;gap:8px}.admin-warning-list span{display:flex;align-items:center;gap:8px;border:1px solid rgba(161,96,40,.26);border-radius:6px;background:#a1602814;color:#684019;padding:8px 10px;font-size:13px}.readiness-list span{align-items:flex-start}.readiness-list strong{min-width:96px}.readiness-ok{border-color:#1f7f7347!important;background:#1f7f7314!important;color:#155f55!important}.readiness-error{border-color:#b4231857!important;background:#b4231814!important;color:#8f1d14!important}.asset-audit-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(160px,220px);gap:10px;align-items:end}.asset-audit-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}.asset-audit-card{display:grid;grid-template-rows:150px minmax(0,1fr);min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--surface-2)}.asset-audit-card-missing{border-color:#b4231857;background:#b423180f}.asset-audit-thumb{display:block;width:100%;height:150px;background:#dfe5ef;object-fit:cover}.asset-audit-thumb-state{display:grid;place-items:center;align-content:center;gap:6px;color:var(--muted);font-size:12px;font-weight:800}.asset-audit-card-body{display:grid;gap:6px;min-width:0;padding:10px}.asset-audit-card-body strong,.asset-audit-card-body small,.asset-audit-card-body code{min-width:0;overflow-wrap:anywhere}.asset-audit-card-body small{color:var(--muted);font-size:12px;line-height:1.35}.asset-audit-card-body code{border:1px solid rgba(101,112,132,.2);border-radius:6px;background:#ffffff94;color:var(--muted);padding:5px 6px;font-size:11px;line-height:1.35}.metric{position:relative;overflow:hidden}.metric-icon{display:inline-flex;width:fit-content;border:1px solid rgba(161,96,40,.18);border-radius:999px;color:var(--accent);padding:5px}.affiliate-preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.dashboard-support-link{display:grid;gap:4px;min-width:0;min-height:52px;border:1px solid rgba(161,96,40,.22);border-radius:8px;background:#a1602812;color:var(--fg);padding:9px 10px;text-decoration:none}.dashboard-support-link strong,.dashboard-support-link small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-support-link small{color:var(--muted);font-size:12px}.affiliate-panel-head{display:grid;gap:3px}.affiliate-panel-head h2{margin-bottom:0}.affiliate-panel-head small{color:#f6ead8ad;font-size:11px;line-height:1.4}.affiliate-link span{display:grid;gap:2px}.affiliate-link strong,.affiliate-link small{min-width:0;overflow-wrap:anywhere}.affiliate-link small{color:#f6ead89e;font-size:11px;line-height:1.3}@media(max-width:980px){.admin-dashboard-grid,.affiliate-preview-grid{grid-template-columns:1fr}.admin-hero{flex-direction:column}.admin-hero-status{justify-items:start;min-width:0}}@media(max-width:640px){.admin-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.admin-tabs button{min-width:0}.admin-section-title-row,.admin-room,.admin-user-row{grid-template-columns:1fr}.admin-section-title-row{display:grid}.asset-audit-toolbar{grid-template-columns:1fr}.admin-room-actions{justify-content:flex-start}}:root{--bg: #e2e6ef;--surface: #f8f9fc;--surface-2: #edf1f7;--surface-3: #e2e7f0;--fg: #302f31;--muted: #69636f;--line: #c6cede;--accent: #6562e7;--accent-2: #e7a8b8;--accent-blue: #6562e7;--character-primary: #6562e7;--character-secondary: #e7a8b8;--danger: #a93f58;--danger-bg: rgba(169, 63, 88, .1);--shadow: 0 18px 42px rgba(55, 53, 61, .14);--night: #3f3f3e;--night-2: #4b4a4d;--paper: #fffdf8;--paper-deep: #f2eaf1;--seal: #d5839a;--gold: #e7a8b8}body{background:linear-gradient(rgba(101,98,231,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(231,168,184,.052) 1px,transparent 1px),linear-gradient(180deg,#eef1f7,var(--bg));background-size:28px 28px,28px 28px,auto}button:hover,button:focus-visible{background:var(--color-control-hover-bg);box-shadow:0 8px 18px #6562e724}textarea:focus,input:focus,select:focus{outline-color:var(--color-focus-ring);border-color:#6562e7ad}.app-header{border-bottom-color:#e7a8b847;background:var(--color-shell-bg);box-shadow:0 14px 34px #2b2a2c38}.brand-mark{width:48px;height:48px;overflow:hidden;border:1px solid rgba(238,222,255,.72);border-radius:12px;background:#3f3f3e;color:transparent;box-shadow:0 8px 18px #0003}.brand-mark img{display:block;width:100%;height:100%;object-fit:cover}.critical-stage-link{background:transparent;color:var(--color-shell-text)}.critical-stage-link:hover,.critical-stage-link:focus-visible{background:transparent;box-shadow:none}.critical-stage-link:focus-visible{outline-color:#eedeff8a}.critical-stage-mark{width:48px;height:48px;border:1px solid rgba(238,222,255,.72);border-radius:12px;box-shadow:0 8px 18px #0003}.brand-button strong,.critical-stage-link strong{color:var(--color-shell-text)}.brand-button small,.critical-stage-link small,.account-status{color:var(--color-shell-text-muted)}.top-nav button{border-color:#e7a8b842;background:#ffffff0e}.top-nav button:hover,.top-nav button:focus-visible,.top-nav button.active{border-color:#e7a8b89e;background:#6562e72e;color:var(--color-shell-text)}.sidebar,.affiliate-rail{border-color:#e7a8b838;background:linear-gradient(rgba(238,222,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(238,222,255,.032) 1px,transparent 1px),linear-gradient(180deg,#444344,#343333);background-size:24px 24px,24px 24px,auto}.sidebar .panel,.affiliate-rail .panel,.sidebar .ad-slot{border-color:#e7a8b840;background:#ffffff0d}.system-actions button,.sidebar .segmented button,.sidebar .filtered-create-button,.sidebar .filtered-reference-button,.affiliate-link{border-color:#e7a8b838;background:#ffffff0e;color:#f9f1fb}.system-actions button:hover,.sidebar .segmented button:hover,.sidebar .filtered-create-button:hover,.sidebar .filtered-create-button:focus-visible,.sidebar .filtered-reference-button:hover,.sidebar .filtered-reference-button:focus-visible,.affiliate-link:hover,.sidebar .segmented button.active{border-color:#e7a8b8ad;background:#6562e72e;color:#fff8fb}.sidebar .filtered-create-button{border-color:#e7a8b87a;background:#e7a8b824}.sidebar .filtered-reference-button{border-color:#7cc0b170;background:#7cc0b124}.system-filter-panel .segmented{grid-template-columns:1fr}.notice{border-color:#6562e747;background:#6562e71a;color:#3b3475}.top-nav button.active,.segmented button.active,.admin-tabs button.active{background:var(--accent);border-color:var(--accent);color:var(--color-on-accent)}.metric-icon,.system-pill{border-color:#6562e738;color:var(--accent)}.home-page{display:grid;gap:14px}.home-card-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.home-card-actions button,.home-card-actions a{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 12px;font-weight:850}.home-card-actions a{flex:1 1 120px;border:1px solid rgba(79,99,216,.22);border-radius:999px;background:#4f63d814;color:#4650b5;text-decoration:none}.home-system-section{display:grid;gap:10px}.section-heading h2,.home-system-card h3{margin:0;color:var(--fg)}.home-system-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.home-system-card{display:grid;align-content:space-between;gap:14px;min-height:146px}.home-system-card h3{margin-top:10px;font-size:18px}.home-system-source{display:inline-flex;align-items:center;width:fit-content;margin-top:8px;border:1px solid rgba(79,99,216,.28);border-radius:999px;background:#4f63d814;color:#4955b9;padding:3px 8px;font-size:11px;font-weight:850;line-height:1.2}.home-card-actions button,.home-card-actions a{flex:1 1 120px}.dnd-sheet{gap:12px}.dnd-sheet .sheet-section{gap:9px;border-color:#6c24222e;background:#fffefd;padding:12px;box-shadow:none}.dnd-sheet .sheet-section h2{display:flex;align-items:center;gap:8px;color:#2f3138;font-family:inherit;font-size:16px;font-weight:850}.dnd-sheet .sheet-section h2:before{width:4px;height:18px;border-radius:999px;background:#9b2f3a;content:""}.dnd-header-panel .compact-field-grid,.dnd-spell-panel .dnd-spell-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.dnd-armor-grid{grid-template-columns:repeat(auto-fit,minmax(158px,1fr))}.dnd-vitals-panel .stat-strip{grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:8px}.dnd-sheet .stat-box{min-height:66px;gap:3px;border-color:#ded7de;background:#faf9fb;padding:8px 10px;box-shadow:none}.dnd-sheet .stat-box span,.dnd-sheet .ability-card span,.dnd-spell-slot-summary span,.dnd-class-toolbar,.dnd-sheet .field span,.dnd-sheet .sheet-kv-grid dt{color:#555b68;font-family:inherit;font-size:13px;font-weight:750}.dnd-sheet .stat-box strong,.dnd-sheet .stat-box-readonly strong{color:#171a21;font-family:inherit;font-size:22px}.dnd-ability-section .ability-grid{grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:8px}.dnd-sheet .ability-card{min-height:92px;gap:4px;border-color:#ded7de;background:#fff;padding:8px}.dnd-sheet .ability-card strong,.dnd-sheet .ability-card em{color:#171a21;font-family:inherit}.dnd-sheet .ability-card strong{font-size:23px}.dnd-sheet .ability-card input{min-height:32px;border-color:#d9d6df;background:#faf9fb;color:#171a21;font-family:inherit;font-size:18px}.dnd-sheet .ability-card small{color:#737987}.dnd-main-grid{grid-template-columns:minmax(230px,.85fr) minmax(280px,1fr);gap:10px}.dnd-actions-panel{grid-column:1 / -1}.dnd-save-list .check-row,.dnd-skill-row{min-height:32px;border-color:#e0dce3;background:#fff;padding:5px 8px}.dnd-skill-row:nth-child(2n),.dnd-save-list .check-row:nth-child(2n){background:#f8f7fa}.dnd-save-list .check-row,.dnd-skill-row,.dnd-skill-legend{column-gap:7px}.dnd-save-list .check-row{grid-template-columns:20px minmax(92px,1fr) 48px}.dnd-skill-legend,.dnd-skill-row{grid-template-columns:22px 22px minmax(118px,1fr) 48px}.dnd-skill-legend{margin:0;border-bottom:1px solid #e3dee6;color:#626978;font-size:12px;font-weight:800;padding:0 8px 6px}.dnd-skill-row span,.dnd-save-list .check-row span{color:#202633;font-size:14px;font-weight:700}.dnd-skill-row strong,.dnd-save-list .check-row strong{color:#202633;font-family:inherit;font-size:14px}.dnd-skill-row input{accent-color:#9b2f3a}.dnd-sheet .sheet-note{min-height:72px;border-color:#e1dce4;background:#fbfafc;padding:9px 10px}.dnd-sheet .sheet-note h3{color:#555b68;font-size:13px}.dnd-sheet .sheet-note p{color:#202633;font-size:14px;line-height:1.55}.dnd-actions-panel .sheet-note:first-child,.dnd-actions-panel .sheet-note,.dnd-side-panel .sheet-note{min-height:72px}.dnd-detail-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:8px}.dnd-actions-panel textarea,.dnd-actions-panel .field-wide textarea{min-height:96px}.dnd-attack-table,.dnd-class-table{border-color:#ddd7df;background:#fff}.dnd-attack-header,.dnd-class-header{background:#efedf3;color:#3e4452;font-family:inherit;font-size:13px}.dnd-attack-header,.dnd-attack-row{grid-template-columns:minmax(150px,1.1fr) 70px 92px minmax(170px,1.2fr) 84px 88px minmax(130px,1fr) 56px;min-width:860px}.dnd-attack-table-readonly .dnd-attack-header,.dnd-attack-table-readonly .dnd-attack-row{grid-template-columns:minmax(150px,1.1fr) 70px 92px minmax(140px,1fr) 84px 88px minmax(130px,1fr);min-width:760px}.dnd-class-header,.dnd-class-row{grid-template-columns:minmax(150px,1.2fr) 76px 64px 70px;min-width:0}.dnd-attack-header strong,.dnd-attack-row input,.dnd-attack-row select,.dnd-attack-row span,.dnd-attack-row button,.dnd-class-header strong,.dnd-class-row select,.dnd-class-row input,.dnd-class-row span,.dnd-class-row button{min-height:34px;border-color:#ddd7df;font-family:inherit}.dnd-attack-stack{display:grid;gap:3px;align-content:start}.dnd-attack-stack input,.dnd-attack-stack select{width:100%}.dnd-attack-stack .dnd-adjust-input{width:min(58px,100%)}.dnd-attack-row:nth-child(odd),.dnd-class-row:nth-child(odd){background:#fff}.dnd-attack-row:nth-child(2n),.dnd-class-row:nth-child(2n){background:#f8f7fa}.dnd-spell-slot-summary{border:0;background:transparent;padding:8px 2px 0}.dnd-spell-slot-summary strong{color:#202633;font-family:inherit;font-size:15px}.dnd-spell-slot-boxes{display:flex;flex-wrap:wrap;gap:7px 14px;align-items:center;padding:0}.dnd-spell-slot-group{display:flex;flex-wrap:wrap;gap:5px 10px;align-items:center}.dnd-spell-slot-group-label{color:#596174;font-size:12px;font-weight:850}.dnd-spell-slot-row{display:inline-flex;gap:5px;align-items:center;color:#202633;font-size:13px;font-weight:850;white-space:nowrap}.dnd-slot-box-list{display:inline-flex;gap:3px;align-items:center}.dnd-slot-box-list i{display:inline-block;width:11px;height:11px;border:1.4px solid #2f3544;border-radius:2px;background:#ffffffc7;box-shadow:inset 0 0 0 1px #ffffff9e}.dnd-prepared-spells{display:grid;gap:10px;margin-top:12px}.dnd-prepared-spells h3{margin:0;color:#6f4b24;font-size:13px;font-weight:900}.dnd-prepared-spell-levels{display:grid;gap:8px}.dnd-prepared-spell-level{display:grid;gap:6px;border:1px solid rgba(151,94,36,.24);border-radius:7px;background:#fffcf7c7;padding:8px}.dnd-prepared-spell-level-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.dnd-prepared-spell-level-heading strong{color:#4d341b;font-size:12px;font-weight:900}.dnd-prepared-spell-level-heading button{min-height:28px;padding:5px 9px;font-size:12px}.dnd-prepared-spell-level p,.dnd-prepared-spells>p{margin:0;color:#6f7585;font-size:12px}.dnd-prepared-spell-rows{display:grid;gap:5px}.dnd-prepared-spell-row{display:grid;grid-template-columns:72px minmax(140px,.8fr) minmax(180px,1.2fr) auto;gap:6px;align-items:center}.dnd-prepared-check{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:34px;border:1px solid rgba(151,94,36,.18);border-radius:6px;background:#ffffffbd;color:#4d341b;font-size:12px;font-weight:850}.dnd-prepared-check input{width:15px;height:15px;margin:0}.dnd-language-field{min-width:0}.dnd-language-picker{display:grid;gap:8px;min-width:0;border:1px solid rgba(101,98,231,.18);border-radius:7px;background:#ffffff8f;padding:8px}.dnd-language-group{display:grid;gap:5px;min-width:0}.dnd-language-group strong{color:#4b5266;font-size:12px;font-weight:900}.dnd-language-options{display:flex;flex-wrap:wrap;gap:6px;min-width:0}.dnd-language-options button{min-height:30px;border-color:#6562e738;border-radius:999px;background:#ffffffc7;color:#303548;padding:5px 9px;font-size:12px;line-height:1.2;box-shadow:none}.dnd-language-options button:hover,.dnd-language-options button:focus-visible{border-color:#6562e77a;background:#fff}.dnd-language-options button.is-selected{border-color:#6562e79e;background:linear-gradient(135deg,#6562e72e,#e7a8b833),#ffffffeb;color:#25233f}.dnd-custom-language-row{display:grid;grid-template-columns:minmax(120px,1fr) auto;gap:8px;min-width:0}.dnd-prepared-spells-readonly .dnd-prepared-spell-row{grid-template-columns:18px minmax(140px,.8fr) minmax(180px,1.2fr);min-height:30px;border-radius:5px;background:#ffffffad;padding:5px 6px}.dnd-prepared-state{width:13px;height:13px;border:1.5px solid #8b728f;border-radius:3px;background:#fff}.dnd-prepared-state.is-prepared{background:linear-gradient(135deg,transparent 0 42%,#ffffff 42% 58%,transparent 58%),#6366f1;border-color:#4f46e5}.dnd-coin-grid{display:grid;grid-template-columns:repeat(5,minmax(82px,1fr));gap:8px}.dnd-inventory-panel textarea{min-height:140px}.dnd-coin-readonly{margin-bottom:10px}@media(max-width:720px){.dnd-prepared-spell-row,.dnd-prepared-spells-readonly .dnd-prepared-spell-row{grid-template-columns:1fr}.dnd-prepared-check{justify-content:flex-start;padding:0 9px}.dnd-coin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dnd-custom-language-row{grid-template-columns:1fr}}.viewer-hero{flex-wrap:wrap}.viewer-hero .export-actions{display:flex;flex-wrap:nowrap;flex-basis:100%;justify-content:flex-end;margin-left:auto;max-width:none;overflow-x:auto;scrollbar-width:thin}.viewer-hero .export-actions button{flex:0 0 auto;min-width:126px;justify-content:center;border-color:#6562e73d;background:#ffffffc2;color:#303548}.viewer-hero .export-actions button:hover,.viewer-hero .export-actions button:focus-visible{border-color:#6562e76b;background:#fff}@media(max-width:820px){.app-mode-viewer .main-pane{padding-bottom:calc(96px + env(safe-area-inset-bottom))}.viewer-hero{display:grid;grid-template-columns:68px minmax(0,1fr);align-items:start;padding:13px}.viewer-hero>:not(.viewer-portrait):not(.command-row):not(.export-actions){min-width:0}.viewer-portrait{width:68px;height:68px}.viewer-hero h1{font-size:25px}.viewer-hero h1,.viewer-hero p,.viewer-hero small{overflow-wrap:anywhere}.viewer-hero .command-row,.viewer-hero .export-actions{grid-column:1 / -1;justify-content:flex-start;width:100%;margin-left:0}.viewer-hero .command-row button{flex:1 1 132px}.viewer-hero .export-actions{position:fixed;right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));left:max(8px,env(safe-area-inset-left));z-index:20;width:auto;justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;border:1px solid rgba(80,86,110,.22);border-radius:8px;background:#ffffffe6;padding:8px;box-shadow:0 14px 30px #1c22342e;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.viewer-hero .export-actions button{flex:0 0 auto;min-width:118px}}@media(max-width:720px){.dnd-main-grid,.dnd-detail-grid{grid-template-columns:1fr}.viewer-hero .export-actions{justify-content:flex-start;max-width:none}.viewer-hero .export-actions button{min-width:118px}.dnd-attack-header,.dnd-attack-row{min-width:600px}.dnd-attack-table-readonly .dnd-attack-header,.dnd-attack-table-readonly .dnd-attack-row{min-width:540px}}.app-system-dnd5e{background:linear-gradient(115deg,rgba(101,98,231,.06),transparent 34%),linear-gradient(295deg,rgba(231,168,184,.08),transparent 38%),#e3e8f1}.app-viewer-dnd5e .workspace{grid-template-columns:minmax(220px,270px) minmax(0,1fr) minmax(190px,240px);align-items:start}.app-viewer-dnd5e .main-pane{padding:18px 18px 28px}.dnd-paper-viewer{gap:12px}.dnd-paper-viewer .viewer-hero,.dnd-paper-viewer .paper-sheet-host,.dnd-paper-viewer>.panel:not(.paper-sheet-host){border:1px solid rgba(76,82,104,.34);border-radius:0;background:linear-gradient(180deg,#f7f9fde6,#e7ecf6db),url(/sheet-paper-texture-v2.png) center / cover;box-shadow:0 12px 30px #21263c14,inset 0 1px #ffffffb8}.dnd-paper-viewer .viewer-hero{position:relative;display:grid;grid-template-columns:96px minmax(0,1fr) auto;align-items:center;gap:12px;padding:16px 18px;overflow:hidden}.dnd-paper-viewer .viewer-hero:before{position:absolute;inset:0;border-top:4px solid rgba(81,88,121,.86);background:linear-gradient(90deg,rgba(101,98,231,.14),transparent 42%),linear-gradient(180deg,rgba(45,48,62,.08),transparent 72%);pointer-events:none;content:""}.dnd-paper-viewer .viewer-hero>*{position:relative;z-index:1}.dnd-paper-viewer .viewer-portrait{width:96px;height:96px;border-radius:3px;border:1px solid rgba(80,86,110,.26);background:linear-gradient(135deg,#6562e729,#e7a8b821),#ffffffb8;color:#50566ea3}.dnd-paper-viewer .viewer-hero h1{color:#171923;font-size:clamp(28px,4vw,42px);font-weight:900;line-height:1.05}.dnd-paper-viewer .viewer-hero p{color:#343a4b;font-size:15px;font-weight:750}.dnd-paper-viewer .viewer-hero small{color:#5f6576;font-size:12px}.dnd-paper-viewer .viewer-hero .command-row{grid-column:3;margin-left:0}.dnd-paper-viewer .viewer-hero .export-actions{grid-column:1 / -1;justify-content:flex-end;margin-left:0;padding-top:2px}.dnd-paper-viewer .command-row button{position:relative;min-height:34px;border-color:#38405c5c;border-radius:3px;background:linear-gradient(180deg,#fffffff2,#e7ebf5eb);color:#242a3a;font-size:12px;font-weight:850;box-shadow:0 2px #39405c29}.dnd-paper-viewer .command-row button:hover,.dnd-paper-viewer .command-row button:focus-visible{border-color:#6562e77a;background:#fff}.dnd-paper-viewer .paper-sheet-host{position:relative;padding:18px;overflow:hidden}.dnd-paper-viewer .paper-sheet-host>h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.dnd-paper-viewer .paper-sheet-host:before{position:absolute;right:28px;top:84px;color:#5258720e;font-family:Georgia,Times New Roman,serif;font-size:clamp(82px,12vw,168px);font-weight:900;letter-spacing:0;line-height:.82;white-space:pre;content:"5e/5.5e\aRPG";pointer-events:none}.dnd-paper-viewer .paper-sheet-host:after{position:absolute;right:-120px;bottom:-92px;width:360px;height:360px;border:1px solid rgba(101,98,231,.14);border-radius:999px;background:radial-gradient(circle,rgba(231,168,184,.18),transparent 68%);content:"";pointer-events:none}.dnd-paper-viewer .viewer-system-sheet{position:relative;z-index:1}.dnd-paper-viewer .dnd-sheet{gap:10px}.dnd-paper-viewer .dnd-sheet .sheet-section{border:1px solid rgba(92,97,118,.32);border-radius:4px;background:linear-gradient(180deg,#f7f9fde0,#e6ebf5cc);padding:9px;box-shadow:0 1px #ffffffdb,0 2px 8px #20263a0d}.dnd-paper-viewer .dnd-sheet .sheet-section h2{min-height:26px;margin:-9px -9px 0;border-bottom:1px solid rgba(88,94,116,.28);background:linear-gradient(90deg,#575e7c29,#ffffff38),linear-gradient(180deg,#ffffffe6,#e6e9f1b3);color:#1e2432;font-size:14px;font-weight:900;padding:5px 8px}.dnd-paper-viewer .dnd-sheet .sheet-section h2:before{width:5px;height:18px;border-radius:0;background:linear-gradient(180deg,var(--character-primary),var(--character-secondary))}.dnd-paper-viewer .dnd-header-panel{grid-column:1 / -1}.dnd-paper-viewer .dnd-header-panel .sheet-kv-grid{grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:6px}.dnd-paper-viewer .sheet-kv-grid div,.dnd-paper-viewer .dnd-sheet .stat-box,.dnd-paper-viewer .dnd-sheet .ability-card{border-color:#5c617657;border-radius:3px;background:linear-gradient(180deg,#f8fafde6,#e7ecf6d1)}.dnd-paper-viewer .sheet-kv-grid dt,.dnd-paper-viewer .dnd-sheet .stat-box span,.dnd-paper-viewer .dnd-sheet .ability-card span,.dnd-paper-viewer .dnd-sheet .sheet-note h3{color:#4b5266;font-size:12px;font-weight:850}.dnd-paper-viewer .sheet-kv-grid dd{color:#151923;font-size:15px;font-weight:750}.dnd-paper-viewer .dnd-class-table{margin-top:2px}.dnd-paper-viewer .dnd-vitals-panel .stat-strip{grid-template-columns:96px 112px 96px 110px 104px 96px minmax(132px,1fr) 104px 132px;gap:6px}.dnd-paper-viewer .dnd-sheet .stat-box{min-height:64px;padding:7px 8px}.dnd-paper-viewer .dnd-sheet .stat-box strong,.dnd-paper-viewer .dnd-sheet .stat-box-readonly strong{color:#111722;font-size:24px;font-weight:950;line-height:1}.dnd-paper-viewer .dnd-sheet .stat-box small{color:#5b6274;font-size:11px;line-height:1.25}.dnd-paper-viewer .dnd-spell-panel{grid-column:1 / -1}.dnd-paper-viewer .dnd-spell-panel .sheet-kv-grid{grid-template-columns:minmax(150px,1fr) 120px 130px minmax(260px,2fr);gap:6px}.dnd-paper-viewer .dnd-ability-section{grid-column:1 / -1}.dnd-paper-viewer .dnd-ability-section .ability-grid{grid-template-columns:repeat(6,minmax(92px,1fr));gap:6px}.dnd-paper-viewer .dnd-sheet .ability-card{min-height:84px;padding:7px}.dnd-paper-viewer .dnd-sheet .ability-card strong,.dnd-paper-viewer .dnd-sheet .ability-card em{color:#111722}.dnd-paper-viewer .dnd-sheet .ability-card strong{font-size:24px;font-weight:950}.dnd-paper-viewer .dnd-sheet .ability-card em{font-size:16px;font-style:normal;font-weight:850}.dnd-paper-viewer .dnd-main-grid{display:grid;grid-template-columns:minmax(210px,.72fr) minmax(250px,.9fr) minmax(420px,1.55fr);gap:10px}.dnd-paper-viewer .dnd-actions-panel{grid-column:auto}.dnd-paper-viewer .dnd-side-panel,.dnd-paper-viewer .dnd-skill-panel,.dnd-paper-viewer .dnd-actions-panel{min-width:0}.dnd-paper-viewer .dnd-save-list .check-row,.dnd-paper-viewer .dnd-skill-row{min-height:28px;border-color:#5e647a3d;border-radius:0;background:#ffffff85;padding:4px 7px}.dnd-paper-viewer .dnd-save-list .check-row:nth-child(2n),.dnd-paper-viewer .dnd-skill-row:nth-child(2n),.dnd-paper-viewer .dnd-attack-row:nth-child(2n),.dnd-paper-viewer .dnd-class-row:nth-child(2n){background:#e6e9f185}.dnd-paper-viewer .dnd-save-list .check-row{grid-template-columns:18px minmax(82px,1fr) 44px}.dnd-paper-viewer .dnd-skill-legend,.dnd-paper-viewer .dnd-skill-row{grid-template-columns:20px 20px minmax(104px,1fr) 44px}.dnd-paper-viewer .dnd-skill-legend{border-bottom-color:#5e647a47;color:#596174;padding:0 7px 4px}.dnd-paper-viewer .dnd-save-list .check-row span,.dnd-paper-viewer .dnd-skill-row span{color:#202636;font-size:13px;font-weight:760}.dnd-paper-viewer .dnd-save-list .check-row strong,.dnd-paper-viewer .dnd-skill-row strong{color:#111722;font-size:13px;font-weight:900}.dnd-paper-viewer .dnd-skill-row small{margin-left:5px;color:#687083;font-size:10px}.dnd-paper-viewer .dnd-sheet .sheet-note{min-height:58px;border-color:#5e647a3d;border-radius:0;background:#ffffff80;padding:7px 8px}.dnd-paper-viewer .dnd-sheet .sheet-note p{color:#202636;font-size:13px;line-height:1.45}.dnd-paper-viewer .dnd-detail-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:6px}.dnd-paper-viewer .dnd-attack-table,.dnd-paper-viewer .dnd-class-table{border-color:#5e647a4d;border-radius:0;background:#ffffffa8}.dnd-paper-viewer .dnd-attack-header,.dnd-paper-viewer .dnd-class-header{background:#484f6a24;color:#222939}.dnd-paper-viewer .dnd-attack-table-readonly .dnd-attack-header,.dnd-paper-viewer .dnd-attack-table-readonly .dnd-attack-row{grid-template-columns:minmax(120px,1.2fr) 58px minmax(105px,1fr) 58px minmax(120px,1fr)}.dnd-paper-editor .editor-header,.dnd-paper-editor .editor-main>.panel,.dnd-paper-editor .editor-sidecar .panel{border:1px solid rgba(76,82,104,.34);border-radius:0;background:linear-gradient(180deg,#f7f9fde6,#e7ecf6db),url(/sheet-paper-texture-v2.png) center / cover;color:#151923;box-shadow:0 12px 30px #21263c14,inset 0 1px #ffffffb8}.dnd-paper-editor .editor-header{position:relative;overflow:hidden}.dnd-paper-editor .editor-header:before{height:4px;background:linear-gradient(90deg,#6562e775,#e7a8b861),#515879b8}.dnd-paper-editor .editor-header h1{color:#171923}.dnd-paper-editor .editor-header p,.dnd-paper-editor .editor-sidecar .panel p,.dnd-paper-editor .editor-sidecar .field span{color:#4b5266}.dnd-paper-editor .editor-sidecar .panel h2{color:#1e2432}.dnd-paper-editor .portrait-panel .portrait-preview{border-color:#50566e42;background:linear-gradient(135deg,#6562e729,#e7a8b821),#ffffffb8;color:#50566ea3}.dnd-paper-editor .dnd-sheet .sheet-section{border:1px solid rgba(92,97,118,.36);border-radius:4px;background:linear-gradient(180deg,#f7f9fde0,#e6ebf5cc);box-shadow:0 1px #ffffffdb,0 2px 8px #20263a0d}.dnd-paper-editor .dnd-sheet .sheet-section h2{border-bottom-color:#585e7447;background:linear-gradient(90deg,#575e7c29,#ffffff38),linear-gradient(180deg,#ffffffe6,#e6e9f1b3);color:#1e2432}.dnd-paper-editor .sheet-kv-grid div,.dnd-paper-editor .dnd-sheet .stat-box,.dnd-paper-editor .dnd-sheet .ability-card,.dnd-paper-editor .dnd-sheet .sheet-note,.dnd-paper-editor .dnd-attack-table,.dnd-paper-editor .dnd-class-table{border-color:#5c617657;background:linear-gradient(180deg,#f8fafde6,#e7ecf6d1)}.dnd-paper-editor .dnd-save-list .check-row,.dnd-paper-editor .dnd-skill-row{border-color:#5e647a3d;background:#ffffff85}.dnd-paper-editor .dnd-save-list .check-row:nth-child(2n),.dnd-paper-editor .dnd-skill-row:nth-child(2n),.dnd-paper-editor .dnd-attack-row:nth-child(2n),.dnd-paper-editor .dnd-class-row:nth-child(2n){background:#e6e9f185}.dnd-paper-editor .dnd-attack-header,.dnd-paper-editor .dnd-class-header{background:#484f6a24;color:#222939}.dnd-paper-editor .sheet-kv-grid dt,.dnd-paper-editor .dnd-sheet .stat-box span,.dnd-paper-editor .dnd-sheet .ability-card span,.dnd-paper-editor .dnd-sheet .sheet-note h3,.dnd-paper-editor .dnd-skill-legend,.dnd-paper-editor .dnd-skill-row small{color:#596174}.dnd-paper-editor .sheet-kv-grid dd,.dnd-paper-editor .dnd-sheet .stat-box strong,.dnd-paper-editor .dnd-sheet .stat-box-readonly strong,.dnd-paper-editor .dnd-sheet .ability-card strong,.dnd-paper-editor .dnd-sheet .ability-card em,.dnd-paper-editor .dnd-sheet .sheet-note p,.dnd-paper-editor .dnd-save-list .check-row span,.dnd-paper-editor .dnd-skill-row span,.dnd-paper-editor .dnd-save-list .check-row strong,.dnd-paper-editor .dnd-skill-row strong{color:#111722}.dnd-skill-legend,.dnd-skill-row,.dnd-paper-viewer .dnd-skill-legend,.dnd-paper-viewer .dnd-skill-row{grid-template-columns:34px minmax(0,1fr) 58px;column-gap:10px}.dnd-skill-legend{align-items:end}.dnd-skill-legend span:first-child{grid-column:1;text-align:center}.dnd-skill-legend span:nth-child(2){grid-column:2;text-align:left}.dnd-skill-legend strong{grid-column:3;text-align:right}.dnd-skill-row{align-items:center}.dnd-skill-row .dnd-skill-name{display:grid;min-width:0;justify-self:stretch;text-align:left}.dnd-skill-row .dnd-skill-name small{margin-left:0;color:#687083;font-size:11px;font-weight:800;line-height:1.15}.dnd-skill-row strong{justify-self:end;min-width:44px;text-align:right}.dnd-proficiency-mark{display:inline-block;box-sizing:border-box;width:20px;min-width:20px;height:20px;min-height:20px;justify-self:center;border:2px solid rgba(32,22,12,.36);border-radius:999px;background:#fffdf8b8;box-shadow:none;color:transparent;font-size:0;line-height:0;padding:0}button.dnd-proficiency-mark{cursor:pointer}button.dnd-proficiency-mark:hover,button.dnd-proficiency-mark:focus-visible{border-color:#20160c;background:#fffdf8eb;outline:3px solid rgba(101,98,231,.18)}.dnd-proficiency-proficient{border-color:#20160c;background:#20160c}.dnd-proficiency-expertise{border-color:#20160c;background:radial-gradient(circle at center,#20160c 0 5px,transparent 5.5px),#fffdf8f0}.dnd-proficiency-half{border-color:#20160c;background:linear-gradient(90deg,#20160c 0 50%,#fffdf8f0 50% 100%)}.main-pane .panel,.character-row,.editor-header,.viewer-hero,.sheet-section,.metric,.ad-admin-row,.editor-sidecar .panel{border-color:#5c617657;background:linear-gradient(180deg,#f7f9fde6,#e7ecf6db),url(/sheet-paper-texture-v2.png) center / cover;color:#171923;box-shadow:0 12px 30px #21263c14,inset 0 1px #ffffffb8}.panel h1,.panel h2,.editor-header h1,.viewer-hero h1,.empty-state h1,.editor-sidecar .panel h2{color:#171923}.editor-header p,.viewer-hero p,.viewer-hero small,.editor-sidecar .panel p,.editor-sidecar .field span,.sidecar-meta dt,.dnd-sheet .sheet-section h2,.dnd-sheet .stat-box span,.dnd-sheet .ability-card span,.dnd-skill-legend,.dnd-sheet .sheet-note h3{color:#4b5266}textarea,input,select,.dnd-attack-row input,.dnd-class-row select,.dnd-class-row input{border-color:#50576c6b;background:#fffffffa;color:#151923;box-shadow:inset 0 1px 2px #252f460f,0 1px #ffffff85}textarea:focus,input:focus,select:focus{border-color:#6562e7ad;outline-color:#6562e738;background:#fff}button:hover,button:focus-visible,.command-row button:first-child,.file-button{border-color:#6562e757;background:#fffffff0;color:#242a3a}.system-pill,.character-row span,.tag-row span,.ad-slot span,.sidecar-tags span{border-color:#5c61763d;background:#ebf0f8e0;color:#3d465c}.portrait-panel .portrait-preview,.editor-sidecar .theme-preview{border-color:#5c617657;background:#eef2f9bd;color:#596174}.sidecar-meta{border-top-color:#5c61762e}.sidecar-meta div{border-bottom-color:#5c617624}.sidecar-meta dd{color:#171923}.character-row:hover{border-color:#6562e757;box-shadow:0 18px 40px #21263c1f}.sheet-section,.dnd-sheet .sheet-section,.coc-sheet .sheet-section{background:linear-gradient(180deg,#f7f9fde6,#e7ecf6db),url(/sheet-paper-texture-v2.png) center / cover}.sheet-item,.stat-box,.ability-card,.coc-ability-card,.check-row,.sheet-note,.sheet-kv-grid div,.skill-table,.dnd-attack-table,.dnd-class-table,.coc-skill-sheet{border-color:#5c617657;background:linear-gradient(180deg,#f8fafde6,#e7ecf6d1)}.dnd-sheet .stat-box,.dnd-sheet .ability-card,.dnd-inspiration,.dnd-shield-field,.dnd-skill-row,.dnd-actions-panel .sheet-note{border-color:#5c617657;background:linear-gradient(180deg,#f8fafde6,#e7ecf6d1);color:#151923}.dnd-skill-row:nth-child(odd),.dnd-save-list .check-row:nth-child(odd),.dnd-attack-row:nth-child(odd),.dnd-class-row:nth-child(odd){background:#f8fafdb8}.dnd-skill-row:nth-child(2n),.dnd-save-list .check-row:nth-child(2n),.dnd-attack-row:nth-child(2n),.dnd-class-row:nth-child(2n){background:#dae1ed9e}.dnd-attack-header,.dnd-class-header{background:#484f6a24;color:#222939}.dnd-sheet .stat-box strong,.dnd-sheet .stat-box-readonly strong,.dnd-sheet .ability-card strong,.dnd-sheet .ability-card em,.dnd-skill-row strong,.dnd-save-list .check-row strong,.dnd-attack-row input,.dnd-class-row span{color:#111722;font-family:inherit}.dnd-sheet .ability-card small,.dnd-skill-row .dnd-skill-name small{color:#687083}.dnd-sheet .sheet-section h2:before{background:linear-gradient(180deg,var(--character-primary),var(--character-secondary))}.dnd-basic-abilities,.dnd-basic-combat{display:grid;gap:8px;margin-top:10px}.dnd-basic-abilities h3,.dnd-basic-combat h3{margin:0;color:#1e2432;font-size:13px;font-weight:900}.dnd-basic-abilities .ability-grid,.dnd-paper-viewer .dnd-basic-abilities .ability-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dnd-basic-abilities .ability-card{min-height:104px}.dnd-basic-combat .dnd-armor-grid{grid-template-columns:minmax(180px,1.5fr) 92px auto}.dnd-basic-combat .dnd-core-stat-strip,.dnd-paper-viewer .dnd-basic-combat .dnd-core-stat-strip{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.dnd-basic-combat .dnd-passive-stat-strip,.dnd-paper-viewer .dnd-basic-combat .dnd-passive-stat-strip{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.dnd-basic-combat .stat-box{min-height:58px;padding:7px 8px}.dnd-basic-combat .stat-box strong,.dnd-basic-combat .stat-box input{font-size:19px}.dnd-calculated-stat{gap:3px}.dnd-breakdown{display:flex;flex-wrap:wrap;justify-content:center;gap:2px 6px;color:#687083;font-size:10px;font-weight:750;line-height:1.2}.dnd-adjust-input{width:min(54px,100%);min-height:24px;margin:0 auto;padding:1px 4px;border:1px solid rgba(92,97,118,.24);border-radius:3px;background:#ffffffb8;color:#111722;font-size:13px;font-weight:850;text-align:center}.dnd-ability-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;border:1px solid rgba(92,97,118,.22);border-radius:4px;overflow:hidden;background:#ffffff8a}.dnd-ability-values>span{display:grid;align-content:center;justify-items:center;min-width:0;min-height:72px;border-right:1px solid rgba(92,97,118,.18);gap:2px;padding:5px}.dnd-ability-values>span:last-child{border-right:0}.dnd-ability-values small{color:#596174;font-size:10px;font-weight:850;line-height:1.1}.dnd-sheet .ability-card .dnd-ability-values strong,.dnd-sheet .ability-card .dnd-ability-values em,.dnd-sheet .ability-card .dnd-ability-values input{min-height:30px;margin:0;border:0;background:transparent;color:#111722;font-family:inherit;font-size:21px;font-style:normal;font-weight:900;text-align:center}.dnd-sheet .ability-card .dnd-ability-values input{width:100%;padding:0}.dnd-sheet .ability-card .dnd-ability-values .dnd-adjust-input{width:min(48px,100%);min-height:22px;border:1px solid rgba(92,97,118,.2);background:#ffffffb8;font-size:12px}.dnd-main-grid,.app-mode-editor .dnd-main-grid,.dnd-paper-viewer .dnd-main-grid{grid-template-columns:minmax(220px,.86fr) minmax(320px,1.14fr);align-items:start}.dnd-main-grid .dnd-actions-panel,.dnd-paper-viewer .dnd-actions-panel{grid-column:auto}.dnd-main-grid .dnd-vitals-panel .dnd-armor-grid{grid-template-columns:1fr;gap:8px}.dnd-main-grid .dnd-vitals-panel .stat-strip,.dnd-paper-viewer .dnd-main-grid .dnd-vitals-panel .stat-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.dnd-main-grid .dnd-vitals-panel .stat-box{min-height:58px}.dnd-equipment-panel textarea{min-height:120px}.dnd-catalog-sections{display:grid;gap:14px;margin-top:10px}.dnd-catalog-section{display:grid;gap:8px;min-width:0}.dnd-catalog-section-heading{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:baseline;justify-content:space-between;border-bottom:1px solid rgba(92,97,118,.22);padding:0 2px 6px}.dnd-catalog-section-heading strong{color:#222939;font-size:14px;font-weight:900}.dnd-catalog-section-heading span{color:#596174;font-size:11px;font-weight:800}.dnd-spell-panel .field-wide,.dnd-actions-panel .field-wide{grid-column:1 / -1}.dnd-row-detail-button{justify-content:center;padding-inline:8px}.dnd-feature-panel{grid-column:1 / -1}.dnd-feature-grid{display:grid;grid-template-columns:minmax(220px,.72fr) minmax(320px,1.28fr);gap:10px}.dnd-feature-side-stack{display:grid;gap:8px;min-width:0}.dnd-feature-side-stack textarea{min-height:86px}.dnd-class-feature-field textarea,.dnd-class-feature-readonly .sheet-note{min-height:320px}.dnd-class-details-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.dnd-magic-grid{grid-column:1 / -1;display:grid;grid-template-columns:minmax(280px,.8fr) minmax(460px,1.2fr);gap:12px;align-items:start}.dnd-magic-grid>.dnd-feat-panel,.dnd-magic-grid>.dnd-spell-panel{grid-column:auto;min-width:0}.dnd-feat-table{display:grid;overflow:hidden;border:1px solid rgba(92,97,118,.28);border-radius:4px;background:#ffffff9e}.dnd-feat-header,.dnd-feat-row{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr) 56px minmax(0,1.25fr) 62px;min-width:0}.dnd-feat-table-readonly .dnd-feat-header,.dnd-feat-table-readonly .dnd-feat-row{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr) 56px minmax(0,1.35fr);min-width:0}.dnd-feat-header{background:#484f6a24;color:#222939}.dnd-feat-header strong,.dnd-feat-row input,.dnd-feat-row span,.dnd-feat-row button{display:grid;align-items:center;min-height:34px;border-width:0 1px 1px 0;border-style:solid;border-color:#5c617638;border-radius:0;padding:6px 8px;min-width:0}.dnd-feat-row input{width:100%;min-width:0;background:#ffffffb3;color:#111722}.dnd-feat-row span{overflow-wrap:anywhere}.dnd-feat-row button{justify-content:center}.dnd-feat-row:nth-child(odd){background:#ffffff94}.dnd-feat-row:nth-child(2n){background:#e6e9f161}.dnd-feat-empty{padding:10px;color:#596174;font-size:13px;font-weight:750}.dnd-license-notice{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;border-style:dashed;background:#ffffff57;color:#596174;font-size:11px;line-height:1.55}.dnd-license-notice strong{color:#3a4051;font-size:11px;letter-spacing:0}.dnd-license-notice a{color:#4f63d8;font-weight:800;text-decoration:none}.dnd-license-notice a:hover,.dnd-license-notice a:focus-visible{text-decoration:underline}.dnd-spellcasting-table{display:grid;overflow:auto;border:1px solid rgba(92,97,118,.28);border-radius:4px;background:#ffffff9e}.dnd-spellcasting-header,.dnd-spellcasting-row{display:grid;grid-template-columns:minmax(140px,1.15fr) 92px minmax(92px,.8fr) minmax(92px,.8fr);min-width:460px}.dnd-spellcasting-header{background:#484f6a24;color:#222939}.dnd-spellcasting-header strong,.dnd-spellcasting-row span,.dnd-spellcasting-row strong{display:grid;align-items:center;min-height:34px;border-width:0 1px 1px 0;border-style:solid;border-color:#5c617638;padding:6px 8px}.dnd-spellcasting-row strong{justify-items:center;gap:2px}.dnd-spellcasting-row strong em{color:#111722;font-style:normal;font-size:18px;font-weight:950;line-height:1}.dnd-spellcasting-row:nth-child(odd){background:#ffffff94}.dnd-spellcasting-row:nth-child(2n){background:#e6e9f161}.dnd-spellcasting-empty{padding:10px;color:#596174;font-size:13px;font-weight:750}@media(max-width:1180px){.app-viewer-dnd5e .workspace{grid-template-columns:1fr}.app-viewer-dnd5e .sidebar{order:1;position:static;display:grid;grid-template-columns:minmax(0,1fr);border-right:0;border-bottom:1px solid var(--line)}.app-viewer-dnd5e .main-pane{order:2}.app-viewer-dnd5e .affiliate-rail{order:3;border-left:0;border-top:1px solid var(--line)}.dnd-paper-viewer .dnd-main-grid,.dnd-magic-grid{grid-template-columns:minmax(0,1fr)}}.dnd-paper-viewer .dnd-actions-panel{grid-column:1 / -1}.dialog-backdrop{background:#0f1218ad;padding:clamp(12px,4vw,28px)}.dialog-backdrop .confirm-dialog{width:min(560px,calc(100vw - 32px));grid-template-columns:52px minmax(0,1fr);align-items:start;border:1px solid rgba(169,63,88,.42);background:#fffdfd;color:#262124;box-shadow:0 28px 80px #00000061;opacity:1}.dialog-backdrop .confirm-dialog-body h2{color:#262124}.dialog-backdrop .confirm-dialog-body p,.dialog-backdrop .confirm-field span{color:#3f353a;opacity:1}.confirm-field{display:grid;gap:6px}.dialog-backdrop .confirm-field input{width:100%;max-width:100%;min-height:44px;border-color:#6562e761;background:#fff;color:#211d20;box-shadow:none}.confirm-dialog-actions{align-items:center}.dialog-backdrop .confirm-dialog-actions button{min-width:116px;min-height:42px;background:#fff;color:#262124}.dialog-backdrop .confirm-dialog-actions button:disabled{color:#6b6268;opacity:.68}.dialog-backdrop .confirm-dialog-actions button.danger{border-color:#a93f588a;background:#a93f581f;color:#8d3047}.dialog-backdrop .confirm-dialog-actions button.danger:disabled{color:#8d3047}.dialog-backdrop .confirm-dialog-actions button.danger:not(:disabled):hover,.dialog-backdrop .confirm-dialog-actions button.danger:not(:disabled):focus-visible{background:#a93f58;color:#fff}.unsaved-pill{display:inline-flex;align-items:center;margin-left:8px;padding:3px 8px;border:1px solid rgba(101,98,231,.34);border-radius:999px;background:#6562e71a;color:#4a428e;font-size:12px;font-weight:800;line-height:1.3;white-space:nowrap}.unsaved-dialog .confirm-dialog-icon{border:1px solid rgba(101,98,231,.28);background:#6562e71a;color:#4a428e}.unsaved-dialog-actions{flex-wrap:wrap}.unsaved-dialog-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px}@media(max-width:560px){.confirm-dialog{grid-template-columns:1fr}.confirm-dialog-actions{flex-direction:column-reverse;align-items:stretch}}@media(max-width:820px){.dnd-basic-abilities .ability-grid,.dnd-paper-viewer .dnd-basic-abilities .ability-grid,.dnd-basic-combat .dnd-passive-stat-strip,.dnd-paper-viewer .dnd-basic-combat .dnd-passive-stat-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.dnd-basic-combat .dnd-core-stat-strip,.dnd-paper-viewer .dnd-basic-combat .dnd-core-stat-strip{grid-template-columns:repeat(5,minmax(58px,1fr))}.dnd-basic-combat .dnd-armor-grid{grid-template-columns:1fr}}@media(max-width:820px){.app-viewer-dnd5e .main-pane{padding-top:12px;padding-inline:10px}.dnd-paper-viewer .viewer-hero{grid-template-columns:68px minmax(0,1fr);padding:13px}.dnd-paper-viewer .viewer-portrait{width:68px;height:68px}.dnd-paper-viewer .viewer-hero h1{font-size:25px}.dnd-paper-viewer .viewer-hero .command-row,.dnd-paper-viewer .viewer-hero .export-actions{grid-column:1 / -1;justify-content:flex-start}.dnd-paper-viewer .paper-sheet-host{padding:10px}.dnd-paper-viewer .dnd-header-panel .sheet-kv-grid,.dnd-paper-viewer .dnd-spell-panel .sheet-kv-grid,.dnd-paper-viewer .dnd-main-grid,.dnd-paper-viewer .dnd-detail-grid{grid-template-columns:1fr}.dnd-paper-viewer .dnd-vitals-panel .stat-strip,.dnd-paper-viewer .dnd-ability-section .ability-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dnd-paper-viewer .dnd-attack-table{overflow-x:auto}.dnd-paper-viewer .dnd-attack-table-readonly .dnd-attack-header,.dnd-paper-viewer .dnd-attack-table-readonly .dnd-attack-row{min-width:560px}}@media(max-width:520px){.dnd-paper-viewer .dnd-vitals-panel .stat-strip,.dnd-paper-viewer .dnd-ability-section .ability-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dnd-paper-viewer .command-row button{flex:1 1 132px}}@media(max-width:560px){.section-heading{display:block}}.dnd-class-header,.dnd-class-row{grid-template-columns:72px minmax(150px,1.15fr) minmax(130px,.9fr) 64px 70px 98px 78px minmax(124px,.9fr) 66px 60px;min-width:1000px}.dnd-class-table-readonly .dnd-class-header,.dnd-class-table-readonly .dnd-class-row{grid-template-columns:minmax(150px,1.2fr) 76px 64px;min-width:0}.dnd-class-name-cell,.dnd-class-save-selects{padding:0}.dnd-class-name-cell>input,.dnd-class-name-cell>select,.dnd-class-save-selects>select{width:100%;min-width:0;height:100%;min-height:34px;border:0;border-radius:0;background:transparent;box-shadow:none}@media(max-width:720px){.dnd-class-header,.dnd-class-row{grid-template-columns:62px minmax(138px,1fr) 54px 64px 56px;min-width:374px}.dnd-class-header>:nth-child(3),.dnd-class-header>:nth-child(5),.dnd-class-header>:nth-child(6),.dnd-class-header>:nth-child(7),.dnd-class-header>:nth-child(8),.dnd-class-row>:nth-child(3),.dnd-class-row>:nth-child(5),.dnd-class-row>:nth-child(6),.dnd-class-row>:nth-child(7),.dnd-class-row>:nth-child(8){display:none}.dnd-feature-grid{grid-template-columns:1fr}.dnd-class-feature-field textarea,.dnd-class-feature-readonly .sheet-note{min-height:220px}}.dnd-class-save-selects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.dnd-class-save-selects>select:first-child{border-right:1px solid rgba(92,97,118,.22)}.viewer-shell,.viewer-shell .viewer-hero,.viewer-shell>.panel,.viewer-shell .viewer-system-sheet,.viewer-shell .system-sheet,.viewer-shell .sheet-section,.viewer-shell .sheet-kv-grid,.viewer-shell .stat-strip,.viewer-shell .ability-grid{max-width:100%;min-width:0;box-sizing:border-box}.viewer-shell .viewer-hero h1,.viewer-shell .viewer-hero p,.viewer-shell .viewer-hero small,.viewer-shell .sheet-kv-grid dd{overflow-wrap:anywhere}.dnd-paper-viewer,.dnd-paper-viewer .viewer-hero,.dnd-paper-viewer .paper-sheet-host,.dnd-paper-viewer .viewer-system-sheet,.dnd-paper-viewer .dnd-sheet,.dnd-paper-viewer .dnd-sheet>*,.dnd-paper-viewer .sheet-section,.dnd-paper-viewer .sheet-kv-grid,.dnd-paper-viewer .stat-strip,.dnd-paper-viewer .ability-grid,.dnd-paper-viewer .dnd-attack-table,.dnd-paper-viewer .dnd-class-table,.dnd-paper-viewer .dnd-feat-table,.dnd-paper-viewer .dnd-spellcasting-table{max-width:100%;min-width:0;box-sizing:border-box}.dnd-paper-viewer .viewer-hero h1,.dnd-paper-viewer .viewer-hero p,.dnd-paper-viewer .viewer-hero small,.dnd-paper-viewer .sheet-kv-grid dd{overflow-wrap:anywhere}.dnd-paper-viewer .dnd-attack-table,.dnd-paper-viewer .dnd-class-table,.dnd-paper-viewer .dnd-feat-table,.dnd-paper-viewer .dnd-spellcasting-table{overflow-x:auto}@media(max-width:1180px){.dnd-paper-viewer .dnd-header-panel .sheet-kv-grid,.dnd-paper-viewer .dnd-spell-panel .sheet-kv-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dnd-paper-viewer .dnd-main-grid,.dnd-paper-viewer .dnd-detail-grid{grid-template-columns:1fr}.dnd-paper-viewer .dnd-vitals-panel .stat-strip{grid-template-columns:repeat(4,minmax(0,1fr))}.dnd-paper-viewer .dnd-ability-section .ability-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:820px){.dnd-paper-viewer .dnd-vitals-panel .stat-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:640px){.coc-skill-sheet{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}.coc-skill-header,.coc-skill-row{grid-template-columns:132px repeat(5,48px) 56px;width:max-content;min-width:428px}.coc-skill-group h3{width:max-content;min-width:428px}.coc-skill-header strong,.coc-skill-row>span,.coc-skill-row>strong,.coc-skill-row input{min-height:32px;padding:3px 5px;font-size:12px}.coc-skill-row small{font-size:10px}.coc-skill-header strong:first-child,.coc-skill-row>span:first-child{position:sticky;left:0;z-index:2;background:inherit;box-shadow:1px 0 #3450712e}.coc-skill-header strong:first-child{z-index:3}.coc-skill-row:nth-child(odd)>span:first-child{background:#fff}.coc-skill-row:nth-child(2n)>span:first-child{background:#f8fbff}.tenkaran-three-column{grid-template-columns:1fr}.tenkaran-mini-header,.tenkaran-class-row{grid-template-columns:minmax(100px,1fr) 58px minmax(84px,1fr) 40px;gap:6px}.tenkaran-simple-row{grid-template-columns:minmax(92px,1fr) minmax(58px,.58fr) minmax(92px,1fr) 40px;gap:6px}.tenkaran-combat-header,.tenkaran-combat-row{grid-template-columns:84px repeat(9,52px);min-width:552px}.tenkaran-equipment-header,.tenkaran-equipment-row{grid-template-columns:58px 104px repeat(9,42px) 58px 58px 66px 48px 66px 108px 40px;min-width:990px}.tenkaran-defense-header,.tenkaran-defense-row,.tenkaran-defense-total{grid-template-columns:86px repeat(10,42px) 108px 40px;min-width:654px}.tenkaran-combat-header>*,.tenkaran-combat-row>*,.tenkaran-equipment-header>*,.tenkaran-equipment-row>*,.tenkaran-defense-header>*,.tenkaran-defense-row>*,.tenkaran-defense-total>*{min-height:38px;padding:3px 4px}.tenkaran-combat-header>*,.tenkaran-equipment-header>*,.tenkaran-defense-header>*{font-size:11px}.tenkaran-combat-row input,.tenkaran-equipment-row input,.tenkaran-defense-row input{height:30px;padding:2px 3px;font-size:13px}.dnd-paper-viewer .dnd-header-panel .sheet-kv-grid,.dnd-paper-viewer .dnd-spell-panel .sheet-kv-grid{grid-template-columns:1fr}.dnd-paper-viewer .dnd-header-panel .sheet-kv-grid>div:nth-child(2){grid-column:auto}.dnd-paper-viewer .dnd-vitals-panel .stat-strip,.dnd-basic-combat .dnd-core-stat-strip,.dnd-paper-viewer .dnd-basic-combat .dnd-core-stat-strip,.dnd-basic-combat .dnd-passive-stat-strip,.dnd-paper-viewer .dnd-basic-combat .dnd-passive-stat-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.dnd-paper-viewer .dnd-sheet .stat-box,.dnd-paper-viewer .dnd-sheet .ability-card{min-height:58px}}@media(max-width:420px){.tenkaran-mini-header,.tenkaran-class-row{grid-template-columns:minmax(80px,1fr) 52px minmax(70px,1fr) 36px;gap:5px}.tenkaran-simple-row{grid-template-columns:minmax(80px,1fr) 52px minmax(80px,1fr) 36px;gap:5px}.tenkaran-remove-button{width:36px;min-width:36px;height:36px}}.srd-reference-page{display:grid;gap:14px}.srd-reference-hero{display:grid;grid-template-columns:46px minmax(0,1fr);gap:14px;align-items:start}.srd-hero-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:8px;background:var(--accent);color:#1d1712}.srd-kicker,.srd-section-source,.srd-reference-stats span,.srd-toc a small,.srd-section-heading small{color:var(--muted);font-size:12px}.srd-reference-hero h1{margin:4px 0 8px;font-size:30px}.brp-srd-logo{display:block;width:min(220px,62vw);height:auto;margin:0 0 12px}.srd-reference-hero p{max-width:880px;margin:0}.srd-hero-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.srd-hero-actions a{display:inline-flex;align-items:center;gap:6px;min-height:34px;border:1px solid var(--line);border-radius:8px;background:var(--surface-3);color:var(--fg);padding:7px 10px;text-decoration:none}.srd-reference-switcher{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.srd-reference-switcher button{display:grid;gap:2px;min-height:48px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);color:var(--fg);padding:8px 11px;text-align:left}.srd-reference-switcher button.active{border-color:var(--accent);background:var(--surface-3)}.srd-reference-switcher small{color:var(--muted);font-size:11px}.srd-section-actions{margin-top:0}.srd-reference-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.srd-reference-stats .panel{display:grid;gap:5px;min-height:76px}.srd-reference-stats strong{font-size:22px}.srd-search{display:grid;grid-template-columns:minmax(180px,260px) minmax(0,1fr);gap:10px;align-items:center}.srd-search-heading{display:grid;gap:8px}.srd-search-heading span{display:inline-flex;align-items:center;gap:7px;color:var(--fg);font-weight:800}.srd-search-modes{display:flex;flex-wrap:wrap;gap:6px}.srd-search-modes button{min-height:32px;border:1px solid var(--line);border-radius:7px;background:var(--surface-2);color:var(--fg);padding:5px 9px;font-size:12px;font-weight:800}.srd-search-modes button.active,.srd-search-modes button:hover,.srd-search-modes button:focus-visible{border-color:var(--accent);background:var(--surface-3)}.srd-search-meta{color:var(--muted);font-weight:700;grid-column:2}.srd-reference-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:14px;align-items:start}.srd-toc{position:sticky;top:12px;align-self:start;z-index:2;max-height:calc(100vh - 24px);overflow:auto}.srd-toc-list,.srd-document,.srd-notes{display:grid;gap:10px}.srd-section-card,.srd-local-index-groups section{scroll-margin-top:88px}.srd-toc-branch{display:grid;gap:6px}.srd-toc-branch summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:start;cursor:pointer;list-style-position:outside}.srd-toc-branch summary::marker{color:var(--muted)}.srd-toc-children{display:grid;gap:6px;margin-top:6px;padding-left:10px;border-left:1px solid rgba(101,98,231,.18)}.srd-toc-child-count{align-self:center;border:1px solid var(--line);border-radius:999px;background:var(--surface-2);color:var(--muted);padding:2px 6px;white-space:nowrap}.srd-toc-item{display:grid;gap:2px;border-left:3px solid rgba(101,98,231,.28);color:var(--fg);padding:7px 9px;text-decoration:none}.srd-toc-depth-1{margin-left:12px;padding-block:6px}.srd-toc-depth-2{margin-left:24px;padding-block:5px}.srd-toc-depth-3{margin-left:36px;padding-block:5px}.srd-toc-status-needs-review{border-left-color:#e297486b}.srd-toc-status-outline{border-left-color:#767f916b}.srd-toc-item:hover,.srd-toc-item:focus-visible{border-left-color:var(--accent);background:var(--surface-2)}.srd-section-card{display:grid;gap:10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:16px}.srd-section-heading{display:flex;align-items:start;justify-content:space-between;gap:10px}.srd-section-heading>div{min-width:0}.srd-section-heading h2{margin:4px 0 2px;font-size:21px}.srd-section-source,.srd-section-heading small{overflow-wrap:anywhere}.srd-section-source{white-space:nowrap}.srd-section-card p{margin:0;line-height:1.78}.srd-section-summary{border-left:3px solid rgba(101,98,231,.42);background:#6562e714;padding:10px 12px}.srd-local-index{display:grid;gap:12px;border:1px solid rgba(101,98,231,.22);border-radius:8px;background:#6562e70f;padding:12px}.srd-local-index-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.srd-local-index-heading h3{margin:0;font-size:16px}.srd-local-index-heading span,.srd-local-index-links small{color:var(--muted);font-size:12px}.srd-letter-jump{display:flex;flex-wrap:wrap;gap:6px}.srd-letter-jump a{display:inline-flex;align-items:center;justify-content:center;min-width:30px;min-height:30px;border:1px solid var(--line);border-radius:6px;background:var(--surface-2);color:var(--fg);font-weight:850;text-decoration:none}.srd-local-index-groups{display:grid;gap:8px}.srd-local-index-branch{border:1px solid rgba(101,98,231,.18);border-radius:7px;background:var(--surface)}.srd-local-index-branch summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;padding:8px 10px}.srd-local-index-branch summary strong{color:var(--accent);font-size:14px}.srd-local-index-branch summary small{color:var(--muted);font-size:12px}.srd-local-index-branch[open] summary{border-bottom:1px solid rgba(101,98,231,.18);background:var(--surface-2)}.srd-local-index-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:6px;padding:8px}.srd-local-index-links a{display:grid;gap:2px;min-width:0;border:1px solid rgba(101,98,231,.18);border-radius:6px;background:var(--surface);color:var(--fg);padding:7px 9px;text-decoration:none}.srd-letter-jump a:hover,.srd-letter-jump a:focus-visible,.srd-local-index-links a:hover,.srd-local-index-links a:focus-visible{border-color:var(--accent);background:var(--surface-3)}.srd-status-pill{flex:0 0 auto;border:1px solid rgba(101,98,231,.36);border-radius:999px;background:#6562e71a;color:#3f3bd4;padding:4px 8px;font-size:12px;font-weight:800}.srd-status-needs-review .srd-status-pill{border-color:#a93f5857;background:#a93f5814;color:#a93f58}.srd-status-outline .srd-status-pill{border-color:#69636f52;background:#69636f14;color:var(--muted)}.srd-rule-list{display:grid;gap:8px;margin:0;padding-left:24px;line-height:1.7}.srd-feature-level-list{list-style:none;padding-left:0}.srd-feature-level-list li{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:start;gap:10px}.srd-feature-level-badge,.srd-feature-level-placeholder{display:inline-flex;align-items:center;justify-content:center;width:52px;min-height:24px;border-radius:6px;font-size:12px;font-weight:800;line-height:1.2}.srd-feature-level-badge{border:1px solid rgba(63,59,212,.24);background:#3f3bd414;color:#3f3bd4}.srd-feature-level-placeholder{color:var(--muted)}.srd-table-wrap{overflow-x:auto}.srd-table{width:100%;min-width:520px;border-collapse:collapse;border:1px solid var(--line);font-size:14px}.srd-table th,.srd-table td{border-bottom:1px solid var(--line);padding:9px 10px;text-align:left;vertical-align:top}.srd-table th{background:var(--surface-3)}.srd-notes span{border-left:3px solid rgba(231,168,184,.64);background:#e7a8b81a;color:var(--fg);padding:8px 10px;line-height:1.6}.srd-spell-catalog{display:grid;gap:8px}.srd-spell-catalog-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:6px;background:var(--surface-2);padding:9px 11px}.srd-spell-catalog-meta strong{font-size:18px}.srd-spell-catalog-meta span{color:var(--muted);font-size:13px;text-align:right}.srd-spell-entry{border:1px solid var(--line);border-radius:6px;background:var(--surface)}.srd-spell-entry summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;cursor:pointer;padding:10px 12px}.srd-spell-entry summary>span{display:grid;gap:2px;min-width:0}.srd-spell-entry summary strong,.srd-spell-entry summary small,.srd-spell-entry summary em{overflow-wrap:anywhere}.srd-spell-entry summary small,.srd-spell-entry summary em,.srd-spell-detail-grid dt{color:var(--muted);font-size:12px}.srd-spell-entry summary em{font-style:normal;text-align:right}.srd-spell-entry[open] summary{border-bottom:1px solid var(--line);background:var(--surface-2)}.srd-spell-entry p,.srd-spell-detail-grid{margin:10px 12px}.srd-spell-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.srd-spell-detail-grid div{display:grid;gap:3px;min-width:0;border:1px solid var(--line);border-radius:6px;background:var(--surface-2);padding:7px 9px}.srd-spell-detail-grid dt,.srd-spell-detail-grid dd{margin:0;overflow-wrap:anywhere}.srd-attribution p{color:var(--fg);font-size:13px}.srd-empty-result,.srd-loading-result{max-width:620px}@media(max-width:980px){.srd-reference-layout,.srd-search{grid-template-columns:1fr}.srd-search-meta{grid-column:auto}.srd-toc{position:static;max-height:none}.srd-reference-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.srd-reference-hero,.srd-reference-stats{grid-template-columns:1fr}.srd-section-heading{display:grid}.srd-spell-catalog-meta,.srd-spell-entry summary{grid-template-columns:1fr}.srd-spell-catalog-meta{display:grid}.srd-spell-catalog-meta span,.srd-spell-entry summary em{text-align:left}.srd-spell-detail-grid{grid-template-columns:1fr}}.dnd-spell-hover-card{position:fixed;z-index:60;display:grid;gap:8px;width:min(360px,calc(100vw - 24px));max-height:min(420px,calc(100vh - 24px));overflow:auto;border:1px solid rgba(143,140,255,.38);border-radius:8px;background:linear-gradient(180deg,#302f36fa,#232227fa),#252426;color:#f7f4f8;padding:14px;box-shadow:0 24px 70px #00000070}.dnd-spell-hover-card strong{color:#fff;font-size:16px;line-height:1.35}.dnd-spell-hover-card>span,.dnd-spell-hover-card dt{color:#e2ddebb8}.dnd-spell-hover-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0}.dnd-spell-hover-card dl div{display:grid;gap:2px;min-width:0;border:1px solid rgba(143,140,255,.18);border-radius:4px;background:#8f8cff14;padding:6px 8px}.dnd-spell-hover-card dt,.dnd-spell-hover-card dd,.dnd-spell-hover-card p{margin:0}.dnd-spell-hover-card dd,.dnd-spell-hover-card p{color:#f7f4f8e6;line-height:1.6}.dnd-spell-hover-card b{color:#c9c7ff}.dnd-equipment-hover-card{position:fixed;z-index:60;display:grid;gap:8px;width:min(360px,calc(100vw - 24px));max-height:min(320px,calc(100vh - 24px));overflow:auto;border:1px solid rgba(143,140,255,.38);border-radius:8px;background:linear-gradient(180deg,#302f36fa,#232227fa),#252426;color:#f7f4f8;padding:14px;box-shadow:0 24px 70px #00000070}.dnd-equipment-hover-card strong{color:#fff;font-size:16px;line-height:1.35}.dnd-equipment-hover-card span{color:#e2ddebb8;font-size:12px;font-weight:800;line-height:1.4}.dnd-equipment-hover-card p{margin:0;color:#f7f4f8e6;line-height:1.65;white-space:pre-wrap}:root,:root[data-app-theme=light]{color-scheme:light;--bg: #e2e6ef;--surface: #f8f9fc;--surface-2: #edf1f7;--surface-3: #e2e7f0;--fg: #302f31;--muted: #69636f;--line: #c6cede;--accent: #6562e7;--accent-2: #e7a8b8;--accent-blue: #6562e7;--danger: #a93f58;--danger-bg: rgba(169, 63, 88, .1);--shadow: 0 18px 42px rgba(55, 53, 61, .14);--night: #3f3f3e;--night-2: #4b4a4d;--paper: #fffdf8;--paper-deep: #f2eaf1;--seal: #d5839a;--gold: #e7a8b8;--color-page-bg: var(--bg);--color-surface: var(--surface);--color-surface-muted: var(--surface-2);--color-surface-strong: var(--surface-3);--color-text: var(--fg);--color-text-muted: var(--muted);--color-border: var(--line);--color-accent: var(--accent);--color-accent-2: var(--accent-2);--color-on-accent: #111216;--color-danger: var(--danger);--color-danger-bg: var(--danger-bg);--color-focus-ring: rgba(101, 98, 231, .18);--color-control-bg: #ffffff;--color-control-hover-bg: #f4f1ff;--color-control-text: var(--fg);--color-control-shadow: 0 1px 2px rgba(37, 47, 70, .06);--color-panel-border: rgba(171, 139, 91, .34);--color-panel-bg: linear-gradient(180deg, rgba(255, 252, 246, .98), rgba(255, 248, 237, .98));--color-shell-bg: linear-gradient(180deg, #444344, #373737);--color-shell-text: #fffafa;--color-shell-text-muted: rgba(255, 250, 250, .72)}:root[data-app-theme=light] body{background:linear-gradient(rgba(101,98,231,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(231,168,184,.052) 1px,transparent 1px),linear-gradient(180deg,#eef1f7,var(--color-page-bg));background-size:28px 28px,28px 28px,auto}:root[data-app-theme=dark]{color-scheme:dark;--bg: #252426;--surface: #333235;--surface-2: #3b3a3e;--surface-3: #454349;--fg: #f7f4f8;--muted: #c9c0cf;--line: #5b5564;--accent: #8f8cff;--accent-2: #f0a9bd;--accent-blue: #8f8cff;--shadow: 0 18px 42px rgba(0, 0, 0, .24);--color-page-bg: var(--bg);--color-surface: var(--surface);--color-surface-muted: var(--surface-2);--color-surface-strong: var(--surface-3);--color-text: var(--fg);--color-text-muted: var(--muted);--color-border: var(--line);--color-accent: var(--accent);--color-accent-2: var(--accent-2);--color-on-accent: #111216;--color-danger: var(--danger);--color-danger-bg: var(--danger-bg);--color-focus-ring: rgba(143, 140, 255, .24);--color-control-bg: rgba(51, 50, 55, .96);--color-control-hover-bg: rgba(65, 63, 71, .98);--color-control-text: var(--fg);--color-control-shadow: 0 1px 0 rgba(255, 255, 255, .04);--color-panel-border: rgba(143, 140, 255, .28);--color-panel-bg: linear-gradient(180deg, rgba(59, 58, 62, .96), rgba(45, 44, 48, .96));--color-shell-bg: linear-gradient(180deg, #373638, #2e2d30);--color-shell-text: #fffafd;--color-shell-text-muted: rgba(255, 250, 253, .72)}:root[data-app-theme=dark] body{background:linear-gradient(rgba(143,140,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(240,169,189,.028) 1px,transparent 1px),linear-gradient(180deg,#2d2c2f,var(--bg));background-size:28px 28px,28px 28px,auto}:root[data-app-theme=dark] .app-header,:root[data-app-theme=dark] .sidebar,:root[data-app-theme=dark] .affiliate-rail{background:var(--color-shell-bg)}.theme-choice-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.settings-grid .segmented button{color:var(--color-control-text)}.settings-grid .segmented button:hover,.settings-grid .segmented button:focus-visible,.settings-grid .segmented button.active{color:var(--color-on-accent)}.theme-choice-swatch{min-height:34px;border:1px solid var(--line);border-radius:8px}.theme-choice-light{background:linear-gradient(135deg,#eef1f7 0 50%,#6562e7 50% 74%,#e7a8b8 74%)}.theme-choice-dark{background:linear-gradient(135deg,#252426 0 50%,#8f8cff 50% 74%,#f0a9bd 74%)}.app-shell{background:var(--color-page-bg);color:var(--color-text)}.app-header{position:sticky;top:0;z-index:30;gap:12px;min-height:68px;padding:10px clamp(12px,2vw,22px)}.brand-button,.critical-stage-link,.account-status{min-width:0}.brand-button span:last-child,.critical-stage-link span:last-child,.account-status>span{min-width:0}.brand-button strong,.critical-stage-link strong,.account-status>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.brand-button small,.critical-stage-link small,.account-status small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-nav{align-items:center;min-width:0}.top-nav button{min-width:0;min-height:36px;padding:7px 10px}.top-nav button svg,.command-row button svg,.row-actions button svg,.side-action-list button svg,.home-card-actions button svg,.home-card-actions a svg,.file-button svg,.quiet-link svg{flex:0 0 auto}.workspace{grid-template-columns:minmax(236px,282px) minmax(0,1fr) minmax(220px,280px);align-items:start}.main-pane{min-height:calc(100vh - 68px);padding:clamp(16px,2.4vw,28px);scrollbar-gutter:stable}.sidebar,.affiliate-rail{position:sticky;top:68px;max-height:calc(100vh - 68px);overflow:auto;padding:16px}.panel,.ad-slot,.character-row,.editor-header,.viewer-hero,.sheet-section,.metric,.ad-admin-row{border-color:var(--color-panel-border);border-radius:8px}.panel,.ad-slot,.metric,.ad-admin-row{background:var(--color-panel-bg)}.panel{padding:clamp(14px,1.6vw,18px)}.panel h1,.editor-header h1,.viewer-hero h1,.empty-state h1{font-size:clamp(22px,2.2vw,28px);line-height:1.18}.panel h2,.editor-sidecar .panel h2,.sheet-section h2{font-size:16px;line-height:1.28}.panel p,.notice,.character-row-body p,.character-row-body small,.viewer-hero p,.viewer-hero small{line-height:1.65}.notice{margin-bottom:14px;border-color:#6562e73d;background:color-mix(in srgb,var(--color-accent) 10%,var(--color-surface));color:var(--color-text)}.home-page{gap:20px}.home-system-section{gap:12px}.home-system-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:14px}.home-system-card{min-height:168px;padding:16px}.home-system-card h3{font-size:18px;line-height:1.35}.home-card-actions{gap:8px}.home-card-actions button,.home-card-actions a{min-width:0;min-height:40px;border-radius:8px;white-space:normal}.character-list{gap:12px}.character-row{--character-list-portrait-size: 72px;grid-template-columns:var(--character-list-portrait-size) minmax(0,1fr) minmax(118px,auto);gap:14px;padding:12px;background:var(--color-panel-bg)}.character-row>.portrait-slot{inline-size:var(--character-list-portrait-size);block-size:var(--character-list-portrait-size);min-inline-size:var(--character-list-portrait-size);align-self:start}.row-title{gap:6px}.row-title h2{font-size:18px;line-height:1.28}.row-actions{align-self:stretch;align-content:center}.row-actions button{min-width:38px;min-height:38px}.command-row,.side-action-list,.row-actions,.home-card-actions,.command-row button,.side-action-list button{min-width:0}.settings-grid{width:min(100%,920px)}.settings-grid .panel{display:grid;gap:12px;align-content:start}.info-list{display:grid;gap:0;min-width:0;margin:0;border-top:1px solid var(--color-border)}.info-list div{display:grid;grid-template-columns:minmax(84px,.42fr) minmax(0,1fr);gap:10px;align-items:start;min-width:0;padding:9px 0;border-bottom:1px solid var(--color-border)}.info-list dt,.info-list dd{min-width:0;margin:0;overflow-wrap:anywhere}.info-list dt{color:var(--color-text-muted);font-size:12px;font-weight:800}.info-list dd{color:var(--color-text);text-align:right}.settings-meta{max-width:380px}.status-panel{min-width:0}.status-panel h1,.status-panel p{margin:0;overflow-wrap:anywhere}.status-actions{display:flex;flex-wrap:wrap;gap:8px}.empty-state .status-actions{justify-content:center}.section-heading-row{flex-wrap:wrap;align-items:center;margin-bottom:12px}.section-heading-row h2{min-width:0;overflow-wrap:anywhere}.section-heading-row button{min-height:38px}.session-reward-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,148px),1fr));gap:8px}.session-reward-totals div{min-width:0}.session-history-table-wrap{max-width:100%;border-radius:8px;overflow:auto;overscroll-behavior-inline:contain;scrollbar-gutter:stable}.session-history-table{margin:0}.sheet-host-panel,.system-sheet,.viewer-system-sheet,.sheet-section{min-width:0}.system-sheet,.viewer-system-sheet{gap:clamp(12px,1.6vw,16px)}.sheet-section h2,.sheet-note h3,.sheet-note p,.sheet-kv-grid dt,.sheet-kv-grid dd,.check-row span,.skill-row span,.coc-skill-row>span,.coc-skill-row>strong,.tenkaran-mini-header>*,.tenkaran-class-row>*,.tenkaran-simple-row>*,.tenkaran-combat-row>*,.tenkaran-equipment-row>*,.tenkaran-defense-row>*,.tenkaran-defense-total>*{overflow-wrap:anywhere}.sheet-kv-grid,.stat-strip,.skill-table-grid,.textarea-grid,.coc-ability-grid,.ability-grid,.check-list,.skill-list,.tenkaran-field-grid,.tenkaran-core-strip,.tenkaran-ability-grid,.tenkaran-readonly-grid,.tenkaran-three-column,.tenkaran-mini-table,.tenkaran-readonly-list,.sheet-kv-grid div,.stat-box,.stat-box-readonly,.ability-card,.coc-ability-card,.sheet-note,.skill-table,.check-row,.coc-skill-sheet,.coc-skill-summary div,.tenkaran-ability-card,.tenkaran-art-row,.tenkaran-history-row{min-width:0}.sheet-note p,.memo-text{max-width:80ch}.coc-skill-sheet,.tenkaran-combat-table,.tenkaran-wide-table,.tenkaran-defense-table{overscroll-behavior-inline:contain;scrollbar-gutter:stable}@media(max-width:1180px){.workspace{grid-template-columns:minmax(220px,260px) minmax(0,1fr)}.affiliate-rail{display:none}}@media(max-width:980px){.workspace{grid-template-columns:minmax(0,1fr)}.main-pane{min-height:0;order:1}.sidebar,.affiliate-rail{position:static;max-height:none;order:2;overflow:visible}.affiliate-rail{order:3}.sidebar .panel,.affiliate-rail .panel,.sidebar .ad-slot{padding:14px}}@media(max-width:640px){.app-header{position:static;padding:10px 12px}.brand-button{flex:1 1 calc(100% - 72px)}.account-status{flex:1 1 100%;order:3}.critical-stage-link{flex:1 1 100%;order:4;margin-left:0}.top-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));order:5;width:100%}.top-nav button{justify-content:center;min-height:40px;padding:7px 8px;white-space:normal}.main-pane,.sidebar,.affiliate-rail{padding:12px}.panel{padding:14px}.info-list div{grid-template-columns:minmax(0,1fr);gap:3px}.info-list dd{text-align:left}.character-row{--character-list-portrait-size: 56px;grid-template-columns:var(--character-list-portrait-size) minmax(0,1fr);gap:10px}.row-actions{grid-column:1 / -1}.row-actions button{flex:1 1 72px}.home-system-card{min-height:0}}.viewer-shell:not(.dnd-paper-viewer):not(.coc-paper-viewer),.editor-shell:not(.dnd-paper-editor){gap:16px}.viewer-shell:not(.dnd-paper-viewer):not(.coc-paper-viewer) .viewer-hero{display:grid;grid-template-columns:76px minmax(0,1fr) minmax(132px,auto) minmax(180px,auto);align-items:center;gap:14px}.viewer-shell:not(.dnd-paper-viewer):not(.coc-paper-viewer) .viewer-hero-summary{min-width:0}.viewer-shell:not(.dnd-paper-viewer):not(.coc-paper-viewer) .viewer-hero h1{overflow-wrap:anywhere}.viewer-shell:not(.dnd-paper-viewer):not(.coc-paper-viewer) .viewer-hero p,.viewer-shell:not(.dnd-paper-viewer):not(.coc-paper-viewer) .viewer-hero small{max-width:64ch}.viewer-shell:not(.dnd-paper-viewer):not(.coc-paper-viewer) .viewer-hero .command-row,.viewer-shell:not(.dnd-paper-viewer):not(.coc-paper-viewer) .viewer-hero .export-actions{justify-content:flex-end}.viewer-shell:not(.dnd-paper-viewer):not(.coc-paper-viewer) .viewer-hero .command-row button,.viewer-shell:not(.dnd-paper-viewer):not(.coc-paper-viewer) .viewer-hero .export-actions button{min-height:38px}@media(min-width:1181px){.app-mode-viewer .viewer-hero>.command-row,.app-mode-viewer .viewer-hero>.export-actions{display:none}}.editor-shell:not(.dnd-paper-editor) .editor-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px}.editor-shell:not(.dnd-paper-editor) .editor-header-summary{min-width:0}.editor-shell:not(.dnd-paper-editor) .editor-header h1,.editor-shell:not(.dnd-paper-editor) .editor-header p{overflow-wrap:anywhere}.editor-shell:not(.dnd-paper-editor) .editor-workbench{grid-template-columns:minmax(0,1fr) minmax(260px,300px);gap:16px}.editor-shell:not(.dnd-paper-editor) .editor-main,.editor-shell:not(.dnd-paper-editor) .editor-sidecar{gap:16px}.editor-shell:not(.dnd-paper-editor) .editor-sidecar{top:84px}.editor-shell:not(.dnd-paper-editor) .field-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.editor-shell:not(.dnd-paper-editor) .field input,.editor-shell:not(.dnd-paper-editor) .field select{min-height:40px}.editor-shell:not(.dnd-paper-editor) .field textarea{min-height:112px}@media(max-width:1180px){.viewer-shell:not(.dnd-paper-viewer):not(.coc-paper-viewer) .viewer-hero{grid-template-columns:72px minmax(0,1fr)}.viewer-shell:not(.dnd-paper-viewer):not(.coc-paper-viewer) .viewer-hero .command-row,.viewer-shell:not(.dnd-paper-viewer):not(.coc-paper-viewer) .viewer-hero .export-actions{grid-column:2;justify-content:flex-start}.editor-shell:not(.dnd-paper-editor) .editor-workbench{grid-template-columns:minmax(0,1fr)}.editor-shell:not(.dnd-paper-editor) .editor-sidecar{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.viewer-shell:not(.dnd-paper-viewer):not(.coc-paper-viewer) .viewer-hero{grid-template-columns:56px minmax(0,1fr);gap:10px}.viewer-shell:not(.dnd-paper-viewer):not(.coc-paper-viewer) .viewer-hero .command-row,.viewer-shell:not(.dnd-paper-viewer):not(.coc-paper-viewer) .viewer-hero .export-actions{grid-column:1 / -1}.viewer-shell:not(.dnd-paper-viewer):not(.coc-paper-viewer) .viewer-hero .command-row button,.viewer-shell:not(.dnd-paper-viewer):not(.coc-paper-viewer) .viewer-hero .export-actions button{flex:1 1 116px}.editor-shell:not(.dnd-paper-editor) .editor-header,.editor-shell:not(.dnd-paper-editor) .editor-sidecar{grid-template-columns:minmax(0,1fr)}}.coc-skill-toggle input:disabled{cursor:not-allowed}.coc-skill-sort,.coc-skill-sort-readonly{display:inline-flex;flex:0 0 auto;align-items:center;gap:6px;min-height:28px;color:#303548;font-size:12px;font-weight:850}.coc-skill-sort select{min-height:28px;padding:3px 24px 3px 8px}.sheet-help,.sheet-alert{margin:8px 0 0;color:#616b7e;font-size:12px;font-weight:700}.sheet-alert{border-left:3px solid #d9a441;background:#fff8e1b8;padding:6px 8px}.masked-text{border-radius:3px;background:#121417;color:transparent;-webkit-user-select:none;user-select:none;padding:0 .15em}.masked-text:hover,.masked-text:focus{color:#fff}.coc-secret-help{display:block;margin:2px 0 6px;color:#616b7e;font-size:11px;font-weight:700;line-height:1.35}.coc-secret-field{display:grid;gap:4px;min-width:0}.coc-extra-skill-panel{display:grid;gap:8px;min-width:0;border:1px solid rgba(195,203,211,.34);border-radius:7px;background:#ffffff8a;padding:10px}.coc-extra-skill-panel h3{margin:0;color:#303548;font-size:13px;font-weight:900}.coc-extra-skill-actions{display:flex;flex-wrap:wrap;gap:6px}.coc-extra-skill-actions button{min-height:30px;padding:5px 9px;font-size:12px}.coc-extra-skill-rows{display:grid;gap:6px}.coc-extra-skill-row{display:grid;grid-template-columns:minmax(120px,.9fr) minmax(140px,1fr) 84px auto;gap:6px;align-items:center;min-width:0}.coc-extra-skill-row>*{min-width:0}.coc-weapon-field,.coc-item-field,.coc-backstory-field{display:grid;gap:8px;min-width:0}.coc-weapon-table,.coc-item-table{display:grid;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-gutter:stable;scrollbar-width:thin;border:1px solid rgba(62,65,73,.34);border-radius:7px;background:#ffffff80}.coc-weapon-header,.coc-weapon-row,.coc-item-header,.coc-item-row{display:grid;align-items:stretch}.coc-weapon-header,.coc-weapon-row{grid-template-columns:minmax(120px,1fr) minmax(88px,.8fr) 72px minmax(96px,.9fr) 72px 82px 72px 66px auto;min-width:860px}.coc-weapon-table-readonly .coc-weapon-header,.coc-weapon-table-readonly .coc-weapon-row{grid-template-columns:minmax(120px,1fr) minmax(88px,.8fr) 72px minmax(96px,.9fr) 72px 82px 72px 66px;min-width:780px}.coc-item-header,.coc-item-row{grid-template-columns:minmax(160px,1fr) 86px minmax(220px,1.4fr) auto;min-width:620px}.coc-item-table-readonly .coc-item-header,.coc-item-table-readonly .coc-item-row{grid-template-columns:minmax(160px,1fr) 86px minmax(220px,1.4fr);min-width:520px}.coc-weapon-header,.coc-item-header{background:#1f243014}.coc-weapon-header strong,.coc-item-header strong,.coc-weapon-row input,.coc-weapon-row span,.coc-weapon-row button,.coc-item-row input,.coc-item-row textarea,.coc-item-row span,.coc-item-row button{min-width:0;border:0;border-right:1px solid rgba(62,65,73,.24);border-radius:0;background:transparent;padding:7px 8px;font-size:13px;overflow-wrap:anywhere}.coc-item-row .coc-secret-field{min-width:0;border-right:1px solid rgba(62,65,73,.24);padding:6px 8px}.coc-item-row .coc-secret-field textarea{border:0;border-radius:0;background:transparent;padding:0}.coc-weapon-row,.coc-item-row{border-top:1px solid rgba(62,65,73,.22)}.coc-item-row textarea{min-height:38px;resize:vertical}.coc-backstory-groups,.coc-backstory-view-groups{display:grid;gap:8px}.coc-backstory-group,.coc-backstory-view-group{display:grid;gap:7px;border:1px solid rgba(62,65,73,.24);border-radius:7px;background:#ffffff85;padding:8px}.coc-backstory-group h3,.coc-backstory-view-group h4{margin:0;color:#303548;font-size:13px;font-weight:900}.coc-backstory-row{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;gap:7px;align-items:start;min-width:0}.coc-backstory-row textarea{min-height:78px;min-width:0}.coc-key-connection{display:inline-flex;align-items:center;gap:6px;min-height:34px;color:#303548;font-size:12px;font-weight:800;white-space:normal}.coc-key-connection-badge{display:inline-flex;width:fit-content;border:1px solid rgba(217,164,65,.48);border-radius:999px;background:#fff8e1c7;color:#795a10;padding:2px 8px;font-size:11px;font-weight:900}.coc-backstory-view-row{display:grid;gap:4px;border-top:1px solid rgba(62,65,73,.16);padding-top:7px}.coc-backstory-view-row:first-of-type{border-top:0;padding-top:0}@media(max-width:720px){.coc-extra-skill-row,.coc-backstory-row{grid-template-columns:1fr}}@media(max-width:560px){.coc-skill-panel-heading{align-items:stretch}.coc-skill-toggle,.coc-skill-sort,.coc-skill-sort-readonly{flex:1 1 180px;justify-content:center;white-space:normal}}.coc-compact-band-grid{display:grid;grid-template-columns:minmax(210px,.95fr) minmax(300px,1.5fr) minmax(220px,1.05fr);gap:14px;align-items:start}.coc-compact-col{display:grid;gap:8px;align-content:start;min-width:0}.coc-compact-col>h3{margin:0;color:#303548;font-size:13px;font-weight:900}.coc-compact-col .sheet-help{margin:0}.coc-compact-vitals-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.coc-compact-vitals-head h3{margin:0;color:#303548;font-size:13px;font-weight:900}.coc-compact-vitals-head button{min-height:28px;padding:4px 9px;font-size:12px}.coc-compact-sheet .compact-field-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:end}.coc-compact-sheet .coc-ability-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.coc-compact-sheet .coc-ability-card{min-height:54px;gap:2px}.coc-compact-sheet .coc-ability-card strong{font-size:20px}.coc-compact-sheet .coc-ability-card input{width:min(72px,100%);min-height:30px}.coc-compact-sheet .coc-ability-card small{font-size:11px}.coc-compact-sheet .stat-strip{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.coc-compact-sheet .stat-box{min-height:50px}.coc-compact-sheet .sheet-kv-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.coc-compact-sheet .sheet-kv-grid div{min-height:44px}.coc-compact-sheet .coc-side-panel .field textarea{min-height:54px}.coc-compact-backstory-add{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.coc-compact-backstory-add select{min-height:30px;padding:3px 24px 3px 8px}.coc-compact-backstory-add button{min-height:30px;padding:5px 10px;font-size:12px}.coc-compact-aux{border:1px solid rgba(195,203,211,.34);border-radius:7px;background:#fff6;padding:6px 8px}.coc-compact-aux>summary{cursor:pointer;color:#303548;font-size:12px;font-weight:800}.coc-compact-aux .note-field{margin-top:6px}@media(max-width:960px){.coc-compact-band-grid{grid-template-columns:1fr}}.dnd-ledger-panel{display:grid;gap:14px;min-width:0}.dnd-load-summary{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:8px;min-width:0}.dnd-load-summary>div{display:grid;gap:3px;min-width:0;min-height:58px;padding:9px;border:1px solid rgba(95,84,70,.24);border-radius:8px;background:#ffffffb8}.dnd-load-summary span{color:var(--muted);font-size:12px}.dnd-load-summary strong{align-self:end;font-size:18px;overflow-wrap:anywhere}.dnd-load-summary[data-load-state=注意]>div:last-child{border-color:#aa77168c;background:#fff6dae6}.dnd-load-summary[data-load-state=超過]>div:last-child{border-color:#a93f5880;background:var(--danger-bg)}.dnd-ledger-block{display:grid;gap:9px;min-width:0}.dnd-ledger-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;flex-wrap:wrap}.dnd-ledger-heading h3,.dnd-readonly-list h3{margin:0}.dnd-ledger-table{display:grid;gap:4px;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-gutter:stable;scrollbar-width:thin}.dnd-ledger-table>strong{color:var(--muted);font-size:12px;white-space:nowrap}.dnd-ledger-row{display:contents}.dnd-ledger-row input,.dnd-ledger-row select,.dnd-ledger-row output,.dnd-ledger-row button{min-height:34px}.dnd-ledger-row output{display:grid;align-items:center;padding:7px 9px;border:1px solid var(--line);border-radius:8px;background:#ffffffa6;white-space:nowrap}.dnd-armor-ledger{grid-template-columns:54px minmax(150px,1.2fr) minmax(88px,.7fr) 78px 90px 86px 78px minmax(150px,1fr) 72px}.dnd-item-ledger{grid-template-columns:minmax(150px,1.2fr) minmax(92px,.7fr) 70px 78px 82px 86px minmax(90px,.8fr) minmax(150px,1fr) 72px}.dnd-catalog-strip,.dnd-catalog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:6px;min-width:0}.dnd-catalog-strip button,.dnd-catalog-grid button{display:grid;justify-items:start;gap:2px;min-height:48px;padding:7px 9px;text-align:left}.dnd-catalog-strip small,.dnd-catalog-grid small{color:var(--muted);overflow-wrap:anywhere}.dnd-catalog-details summary{cursor:pointer;color:var(--accent);font-weight:700}.dnd-catalog-details[open] summary{margin-bottom:8px}.dnd-pay-toggle{justify-content:flex-start;margin-bottom:8px}.dnd-readonly-list{display:grid;gap:6px}.dnd-readonly-list p{display:grid;gap:2px;margin:0;padding:8px 9px;border:1px solid rgba(95,84,70,.2);border-radius:8px;background:#ffffffa6}.dnd-readonly-list span{color:var(--muted);font-size:13px}@media(max-width:880px){.dnd-load-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.dnd-ledger-heading{align-items:stretch;flex-direction:column}}.dnd-spellbook-panel{display:grid;gap:14px;min-width:0}.dnd-spell-tools{display:grid;grid-template-columns:minmax(180px,1fr) minmax(120px,180px) repeat(2,max-content);gap:8px;min-width:0}.dnd-spell-tools>*{min-width:0}.dnd-srd-spell-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:7px;min-width:0;max-height:220px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:2px}.dnd-srd-spell-results button{display:grid;justify-items:start;gap:3px;padding:8px 10px;text-align:left}.dnd-srd-spell-results strong{display:inline-flex;flex-wrap:wrap;gap:6px;align-items:baseline;min-width:0;overflow-wrap:anywhere}.dnd-srd-spell-results span,.dnd-spellbook-row summary>span,.dnd-spell-description,.dnd-spell-material{color:var(--muted);font-size:13px}.dnd-spell-source-badge{display:inline-flex;align-items:center;padding:1px 6px;border:1px solid rgba(118,30,36,.36);border-radius:999px;background:#761e2414;color:#762024;font-size:10px;font-style:normal;font-weight:900;line-height:1.4;white-space:nowrap}.dnd-spellbook-list,.dnd-spell-level-group{display:grid;gap:8px;min-width:0}.dnd-spellbook-row{min-width:0;border:1px solid rgba(95,84,70,.24);border-radius:8px;background:#ffffffb3;overflow:hidden}.dnd-spellbook-row summary{display:grid;grid-template-columns:minmax(170px,1.05fr) minmax(180px,1fr) minmax(170px,.8fr);gap:10px;align-items:center;min-width:0;padding:9px 11px;cursor:pointer}.dnd-spellbook-row-editable summary{grid-template-columns:minmax(170px,1.05fr) minmax(180px,1fr) minmax(170px,.8fr) max-content}.dnd-spell-summary-delete{justify-self:end;padding:5px 9px}.dnd-spellbook-row[open] summary{border-bottom:1px solid rgba(95,84,70,.18)}.dnd-spell-state{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.dnd-spell-state label{display:inline-flex;align-items:center;gap:4px;white-space:normal}.dnd-spell-state input{width:auto}.dnd-spell-state-icon{display:inline-grid;place-items:center;width:22px;height:22px;border:1px solid rgba(101,98,231,.22);border-radius:6px;background:#6562e70f;color:#42427875;font-size:12px;font-weight:950;line-height:1}.dnd-spell-state-icon.is-active{border-color:#6562e7c7;background:#6562e72e;color:#24215f;box-shadow:inset 0 0 0 1px #ffffff47}.dnd-spell-state-readonly{display:inline-flex;gap:0;align-items:center}.dnd-spell-state-group{display:inline-flex;gap:4px;align-items:center}.dnd-spell-state-group+.dnd-spell-state-group{margin-left:7px;padding-left:7px;border-left:1px solid rgba(101,98,231,.24)}.dnd-spell-summary-meta{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;min-width:0}.dnd-spell-summary-meta>span:first-child{min-width:0;overflow-wrap:anywhere}.dnd-spell-component-field{align-content:start}.dnd-spell-component-toggles{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:4px}.dnd-spell-component-toggles .toggle-field{min-height:28px;padding:4px 7px}.dnd-custom-spell-grid,.dnd-spell-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:10px 11px 0}.dnd-custom-spell-grid .field-wide{grid-column:1 / -1}.dnd-spell-detail-grid{margin:0}.dnd-spell-detail-grid div{display:grid;gap:2px;min-width:0}.dnd-spell-detail-grid dt{color:var(--muted);font-size:12px}.dnd-spell-detail-grid dd{margin:0;font-weight:700;overflow-wrap:anywhere}.dnd-spell-material,.dnd-spell-description{margin:8px 11px;white-space:pre-wrap}.dnd-spellbook-row>.field,.dnd-spellbook-row>button{margin:0 11px 11px}.dnd-spell-level-group h3{margin:4px 0 0}.dnd-spell-hover-card{position:fixed;z-index:80;display:grid;gap:7px;width:min(360px,calc(100vw - 24px));max-height:min(420px,calc(100vh - 24px));overflow:auto;padding:11px 12px;border:1px solid rgba(95,84,70,.24);border-radius:8px;background:#fffdf8fa;box-shadow:0 14px 38px #231b1238;overscroll-behavior:contain;pointer-events:auto}.dnd-spell-hover-card>span,.dnd-spell-hover-card p{color:var(--muted);font-size:13px}.dnd-spell-hover-card dl{display:grid;gap:4px;margin:0}.dnd-spell-hover-card dl div{display:grid;grid-template-columns:54px 1fr;gap:8px}.dnd-spell-hover-card dt{color:var(--muted);font-size:12px}.dnd-spell-hover-card dd,.dnd-spell-hover-card p{margin:0;overflow-wrap:anywhere}@media(max-width:860px){.dnd-spell-tools,.dnd-spellbook-row summary,.dnd-custom-spell-grid,.dnd-spell-detail-grid{grid-template-columns:1fr}.dnd-spell-tools button,.dnd-spell-summary-delete{justify-self:stretch}}.tenkaran-sheet{grid-template-columns:1fr;gap:14px;min-width:0}.tenkaran-sheet .sheet-section h2{display:flex;align-items:center;gap:8px}.tenkaran-sheet .sheet-section h2:before{content:"";width:4px;height:18px;border-radius:999px;background:linear-gradient(180deg,#9f4f31,#2c6f73)}.tenkaran-field-grid{grid-template-columns:repeat(auto-fit,minmax(132px,1fr));min-width:0}.tenkaran-core-strip{grid-template-columns:repeat(auto-fit,minmax(112px,1fr));min-width:0}.tenkaran-ability-grid,.tenkaran-readonly-grid{display:grid;grid-template-columns:repeat(6,minmax(118px,1fr));gap:8px}.tenkaran-ability-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;min-width:0;border:1px solid rgba(92,97,118,.34);border-radius:6px;background:linear-gradient(180deg,#f8fafdeb,#e7ecf6d6);padding:10px}.tenkaran-ability-card>span,.tenkaran-ability-card>strong,.tenkaran-ability-card>small{grid-column:1 / -1;text-align:center}.tenkaran-ability-card>span,.tenkaran-ability-card label{color:#4b5266;font-size:12px;font-weight:850}.tenkaran-ability-card>strong{color:#111722;font-size:30px;line-height:1}.tenkaran-ability-card input,.tenkaran-combat-row input,.tenkaran-equipment-row input,.tenkaran-defense-row input{min-height:34px;padding:5px 7px}.tenkaran-mini-table,.tenkaran-art-list,.tenkaran-history-list,.tenkaran-readonly-list{display:grid;gap:8px;min-width:0}.tenkaran-mini-table h3{margin:0;color:#1e2432;font-size:13px}.tenkaran-mini-header,.tenkaran-class-row{display:grid;grid-template-columns:minmax(160px,1fr) 80px minmax(160px,1fr) 40px;gap:8px;align-items:end;min-width:0}.tenkaran-three-column{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-width:0}.tenkaran-simple-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(80px,.8fr) minmax(120px,1fr) 40px;gap:6px;align-items:end;min-width:0}.tenkaran-mini-header>*,.tenkaran-class-row>*,.tenkaran-simple-row>*,.tenkaran-class-row input,.tenkaran-simple-row input{min-width:0}.tenkaran-combat-table,.tenkaran-wide-table,.tenkaran-defense-table{display:grid;max-width:100%;overflow-x:auto;border:1px solid rgba(92,97,118,.32);border-radius:6px;background:#ffffff8f;scrollbar-width:thin}.tenkaran-combat-header,.tenkaran-combat-row{display:grid;grid-template-columns:96px repeat(7,86px) repeat(2,112px);justify-self:start;width:max-content;min-width:922px}.tenkaran-equipment-header,.tenkaran-equipment-row{display:grid;grid-template-columns:92px minmax(150px,1.3fr) repeat(9,68px) 76px 82px 84px 72px 82px minmax(140px,1fr) 40px;min-width:1280px}.tenkaran-defense-header,.tenkaran-defense-row,.tenkaran-defense-total{display:grid;grid-template-columns:minmax(112px,1fr) repeat(10,58px) minmax(150px,1.1fr) 40px;min-width:880px}.tenkaran-combat-header,.tenkaran-equipment-header,.tenkaran-defense-header{background:#484f6a24;color:#222939;font-size:12px}.tenkaran-combat-header>*,.tenkaran-combat-row>*,.tenkaran-equipment-header>*,.tenkaran-equipment-row>*,.tenkaran-defense-header>*,.tenkaran-defense-row>*,.tenkaran-defense-total>*{display:grid;align-items:center;min-width:0;min-height:36px;border-width:0 1px 1px 0;border-style:solid;border-color:#5c617633;border-radius:0;padding:6px 8px}.tenkaran-equipment-row input,.tenkaran-defense-row input{border-width:0 1px 1px 0;border-radius:0;background:transparent}.tenkaran-combat-cell input{border-width:1px;background:#ffffff9e;box-shadow:none}.tenkaran-combat-row strong,.tenkaran-defense-total strong{justify-items:center;color:#111722}.tenkaran-art-row,.tenkaran-history-row{position:relative;display:grid;grid-template-columns:repeat(6,minmax(118px,1fr)) 40px;gap:8px;border:1px solid rgba(92,97,118,.3);border-radius:6px;background:#ffffff7a;padding:10px}.tenkaran-art-row .field-wide,.tenkaran-history-row .field-wide{grid-column:1 / -2}.tenkaran-art-row .tenkaran-remove-button,.tenkaran-history-row .tenkaran-remove-button{grid-column:-2 / -1;grid-row:1;align-self:end}.tenkaran-add-button{justify-self:start;display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:7px 10px}.tenkaran-remove-button{min-width:34px;min-height:34px;padding:6px}.tenkaran-kv-grid,.tenkaran-readonly-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}.tenkaran-readonly-list .sheet-note p,.tenkaran-kv-grid .sheet-note p{white-space:pre-wrap}@media(max-width:1100px){.tenkaran-ability-grid,.tenkaran-readonly-grid,.tenkaran-art-row,.tenkaran-history-row{grid-template-columns:repeat(2,minmax(0,1fr))}.tenkaran-art-row .field-wide,.tenkaran-history-row .field-wide,.tenkaran-art-row .tenkaran-remove-button,.tenkaran-history-row .tenkaran-remove-button{grid-column:1 / -1}}@media(max-width:1480px){.tenkaran-three-column{grid-template-columns:1fr}}@media(max-width:640px){.tenkaran-ability-grid,.tenkaran-readonly-grid,.tenkaran-three-column,.tenkaran-art-row,.tenkaran-history-row,.tenkaran-mini-header,.tenkaran-class-row,.tenkaran-simple-row{grid-template-columns:1fr}}.viewer-system-sheet{gap:8px}.viewer-system-sheet .sheet-section{gap:8px;border-color:#4a56705c;background:linear-gradient(180deg,#e5ebf6f5,#d7e0eef0),url(/sheet-paper-texture-v2.png) center / cover}.viewer-system-sheet .stat-box{min-height:50px;gap:3px;border-color:#495b7a6b;background:linear-gradient(180deg,#fffffffa,#f7fafef5),#fff;padding:6px 8px;box-shadow:0 1px 2px #20283c1a,inset 0 1px #ffffffeb}.viewer-system-sheet .stat-box strong,.viewer-system-sheet .stat-box-readonly strong{line-height:1}.viewer-system-sheet .sheet-kv-grid{gap:6px}.viewer-system-sheet .sheet-kv-grid div{min-height:42px;border-color:#495b7a5c;background:linear-gradient(180deg,#fffffff5,#f8fbfff0),#fff;padding:6px 8px;box-shadow:0 1px 2px #20283c12}.viewer-system-sheet .sheet-kv-grid dd{line-height:1.15}.viewer-system-sheet .sheet-note{min-height:48px;border-color:#495b7a5c;background:linear-gradient(180deg,#fffffff5,#f8fbfff0),#fff;padding:6px 8px;box-shadow:0 1px 2px #20283c12}.viewer-system-sheet .sheet-note p{line-height:1.38}.coc-paper-viewer{gap:0}.coc-paper-viewer .viewer-hero,.coc-paper-viewer .paper-sheet-host,.coc-paper-viewer>.panel:not(.paper-sheet-host){border-radius:0}.coc-paper-viewer .viewer-hero{display:grid;grid-template-columns:106px minmax(0,1fr) auto;align-items:center;gap:12px;border-bottom:0;padding:12px 16px}.coc-paper-viewer .viewer-portrait{width:106px;height:106px;border-radius:4px}.coc-paper-viewer .viewer-hero h1{font-size:clamp(25px,3.1vw,38px);line-height:1.05}.coc-paper-viewer .viewer-hero p,.coc-paper-viewer .viewer-hero small{margin-top:3px}.coc-paper-viewer .viewer-hero .command-row{margin-left:0}.coc-paper-viewer .viewer-hero .export-actions{grid-column:2 / -1;flex-basis:auto;padding-top:0}.coc-paper-viewer .viewer-hero .export-actions button{min-width:112px;min-height:32px}.coc-paper-viewer .paper-sheet-host{border-top:0;background:linear-gradient(180deg,#e0e8f4f5,#d3ddecf2),url(/sheet-paper-texture-v2.png) center / cover;padding:0 12px 12px}.coc-paper-viewer .paper-sheet-host>h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.coc-paper-viewer .coc-sheet{gap:8px}.coc-paper-viewer .coc-sheet .sheet-section{border-radius:0;background:linear-gradient(180deg,#e1e9f5fa,#d5dfeef5),url(/sheet-paper-texture-v2.png) center / cover;padding:9px 10px}.coc-paper-viewer .coc-sheet>.sheet-section:first-child{border-top:0;padding-top:10px}.coc-paper-viewer .coc-sheet .sheet-section h2{min-height:22px;font-size:13px}.coc-paper-viewer .coc-sheet .sheet-section h2:before{width:4px;height:16px;border-radius:0}.coc-paper-viewer .coc-sheet .sheet-kv-grid{grid-template-columns:minmax(170px,1.4fr) repeat(2,minmax(86px,.7fr)) repeat(4,minmax(112px,1fr));gap:6px 10px}.coc-paper-viewer .coc-sheet .sheet-kv-grid div{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;min-height:32px;gap:8px;border-width:1px;border-radius:3px;background:linear-gradient(180deg,#fffffff7,#f6fafff2),#fff;padding:4px 7px 5px;text-align:left}.coc-paper-viewer .coc-sheet .sheet-kv-grid dt{white-space:nowrap}.coc-paper-viewer .coc-sheet .sheet-kv-grid dd{font-size:18px;font-weight:900;text-align:center}.coc-paper-viewer .coc-sheet .stat-strip{grid-template-columns:minmax(210px,1.35fr) repeat(8,minmax(72px,.72fr));gap:6px}.coc-paper-viewer .coc-sheet .stat-box{min-height:46px;border-color:#3a527770;background:linear-gradient(180deg,#fffffffa,#f6fafff5),#fff;border-radius:3px;padding:6px 8px}.coc-paper-viewer .coc-sheet .stat-box strong,.coc-paper-viewer .coc-sheet .stat-box-readonly strong{font-size:20px}.coc-paper-viewer .coc-sheet .coc-ability-grid{grid-template-columns:repeat(8,minmax(72px,1fr));gap:6px}.coc-paper-viewer .coc-sheet .coc-ability-card{min-height:66px;gap:3px;border-color:#3a52776b;border-radius:3px;background:linear-gradient(180deg,#fffffffa,#f7fafef5),#fff;padding:6px 5px;box-shadow:0 1px 2px #20283c14}.coc-paper-viewer .coc-sheet .coc-ability-card strong{font-size:25px;line-height:1}.coc-paper-viewer .coc-sheet .coc-ability-card small{font-size:11px;line-height:1.15}.dnd-paper-viewer .viewer-system-sheet{gap:8px}.dnd-paper-viewer .paper-sheet-host{background:linear-gradient(180deg,#e0e8f4f5,#d3ddecf2),url(/sheet-paper-texture-v2.png) center / cover;padding:12px}.dnd-paper-viewer .dnd-sheet{gap:8px}.dnd-paper-viewer .dnd-sheet .sheet-section{gap:7px;border-color:#4a567061;background:linear-gradient(180deg,#e2eaf5fa,#d6e0eff5),url(/sheet-paper-texture-v2.png) center / cover;padding:7px}.dnd-paper-viewer .dnd-sheet .sheet-section h2{min-height:22px;margin:-7px -7px 0;font-size:13px;padding:4px 7px}.dnd-paper-viewer .dnd-header-panel .sheet-kv-grid{grid-template-columns:repeat(auto-fit,minmax(112px,1fr))}@media(min-width:641px){.dnd-paper-viewer .dnd-header-panel .sheet-kv-grid>div:nth-child(2){grid-column:span 2}}.dnd-paper-viewer .sheet-kv-grid div{min-height:36px;border-color:#495b7a66;background:linear-gradient(180deg,#fffffffa,#f7fafef5),#fff;padding:5px 7px}.dnd-paper-viewer .dnd-basic-combat,.dnd-paper-viewer .dnd-basic-abilities{gap:6px;margin-top:6px}.dnd-paper-viewer .dnd-basic-combat h3,.dnd-paper-viewer .dnd-basic-abilities h3{font-size:12px}.dnd-paper-viewer .dnd-vitals-panel .stat-strip,.dnd-basic-combat .dnd-core-stat-strip,.dnd-paper-viewer .dnd-basic-combat .dnd-core-stat-strip,.dnd-basic-combat .dnd-passive-stat-strip,.dnd-paper-viewer .dnd-basic-combat .dnd-passive-stat-strip{gap:5px}.dnd-paper-viewer .dnd-sheet .stat-box{min-height:46px;gap:3px;border-color:#495b7a70;background:linear-gradient(180deg,#fffffffa,#f7fafef5),#fff;padding:5px 6px;box-shadow:0 1px 2px #20283c1a,inset 0 1px #ffffffeb}.dnd-paper-viewer .dnd-sheet .stat-box span{font-size:11px}.dnd-paper-viewer .dnd-sheet .stat-box strong,.dnd-paper-viewer .dnd-sheet .stat-box-readonly strong{font-size:21px}.dnd-paper-viewer .dnd-sheet .stat-box small{font-size:10px}.dnd-paper-viewer .dnd-ability-section .ability-grid,.dnd-paper-viewer .dnd-basic-abilities .ability-grid{gap:5px}.dnd-paper-viewer .dnd-sheet .ability-card{min-height:66px;gap:4px;border-color:#495b7a70;background:linear-gradient(180deg,#fffffffa,#f7fafef5),#fff;padding:5px;box-shadow:0 1px 2px #20283c14}.dnd-paper-viewer .dnd-ability-values>span{min-height:48px;background:#ffffffb8;padding:3px 4px}.dnd-paper-viewer .dnd-ability-values small{font-size:9px}.dnd-paper-viewer .dnd-sheet .ability-card .dnd-ability-values strong,.dnd-paper-viewer .dnd-sheet .ability-card .dnd-ability-values em{min-height:24px;font-size:18px}.dnd-paper-viewer .dnd-save-list .check-row,.dnd-paper-viewer .dnd-skill-row{min-height:25px;padding:3px 6px}.dnd-paper-viewer .dnd-sheet .sheet-note{min-height:44px;border-color:#495b7a61;background:linear-gradient(180deg,#fffffff5,#f8fbfff0),#fff;padding:5px 7px;box-shadow:0 1px 2px #20283c12}.dnd-paper-viewer .dnd-main-grid{gap:8px;grid-template-columns:minmax(240px,.92fr) minmax(320px,1.08fr);align-items:start}.dnd-paper-viewer .dnd-equipment-panel{grid-column:1;grid-row:1}.dnd-paper-viewer .dnd-side-panel{grid-column:1;grid-row:2}.dnd-paper-viewer .dnd-skill-panel{grid-column:2;grid-row:1 / span 2}.dnd-paper-viewer .dnd-equipment-panel,.dnd-paper-viewer .dnd-side-panel,.dnd-paper-viewer .dnd-skill-panel{min-width:0}.dnd-paper-viewer .dnd-equipment-panel .dnd-attack-table{border-color:#495b7a6b;background:#fff;margin-top:6px;overflow-x:auto;box-shadow:0 1px 2px #20283c14}.dnd-paper-viewer .dnd-attack-table-readonly .dnd-attack-header,.dnd-paper-viewer .dnd-attack-table-readonly .dnd-attack-row{grid-template-columns:minmax(96px,1.1fr) 44px 56px minmax(88px,.9fr) 56px 56px minmax(100px,1fr);min-width:560px}@media(max-width:980px){.coc-paper-viewer .viewer-hero{grid-template-columns:82px minmax(0,1fr)}.coc-paper-viewer .viewer-portrait{width:82px;height:82px}.coc-paper-viewer .viewer-hero .command-row,.coc-paper-viewer .viewer-hero .export-actions{grid-column:1 / -1;justify-content:flex-start}.coc-paper-viewer .coc-sheet .sheet-kv-grid,.coc-paper-viewer .coc-sheet .stat-strip,.coc-paper-viewer .coc-sheet .coc-ability-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.coc-paper-viewer .coc-sheet .stat-strip .stat-box:first-child{grid-column:1 / -1}.dnd-paper-viewer .dnd-main-grid{grid-template-columns:minmax(0,1fr)}.dnd-paper-viewer .dnd-equipment-panel,.dnd-paper-viewer .dnd-side-panel,.dnd-paper-viewer .dnd-skill-panel{grid-column:1;grid-row:auto}}@media(max-width:640px){.viewer-system-sheet .sheet-kv-grid div{min-height:38px}.coc-paper-viewer .paper-sheet-host,.dnd-paper-viewer .paper-sheet-host{padding:8px}.coc-paper-viewer .coc-sheet .sheet-kv-grid div{grid-template-columns:1fr;gap:2px;text-align:center}.coc-paper-viewer .coc-sheet .sheet-kv-grid dd{font-size:16px}.coc-paper-viewer .coc-sheet .stat-strip,.coc-paper-viewer .coc-sheet .coc-ability-grid,.dnd-paper-viewer .dnd-header-panel .sheet-kv-grid,.dnd-paper-viewer .dnd-basic-combat .dnd-core-stat-strip,.dnd-paper-viewer .dnd-basic-combat .dnd-passive-stat-strip,.dnd-paper-viewer .dnd-basic-abilities .ability-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dnd-paper-viewer .dnd-header-panel .sheet-kv-grid>div:nth-child(2){grid-column:auto}}:root[data-app-theme=dark] .main-pane .panel,:root[data-app-theme=dark] .character-row,:root[data-app-theme=dark] .editor-header,:root[data-app-theme=dark] .viewer-hero,:root[data-app-theme=dark] .sheet-section,:root[data-app-theme=dark] .metric,:root[data-app-theme=dark] .ad-admin-row,:root[data-app-theme=dark] .editor-sidecar .panel,:root[data-app-theme=dark] .login-strip,:root[data-app-theme=dark] .empty-state,:root[data-app-theme=dark] .ad-slot{border-color:#8f8cff47;background:linear-gradient(180deg,#3b3a3ef5,#2d2c30f5),var(--surface);color:var(--fg);box-shadow:0 16px 36px #0000003d,inset 0 1px #ffffff0d}:root[data-app-theme=dark] .panel h1,:root[data-app-theme=dark] .panel h2,:root[data-app-theme=dark] .editor-header h1,:root[data-app-theme=dark] .viewer-hero h1,:root[data-app-theme=dark] .empty-state h1,:root[data-app-theme=dark] .editor-sidecar .panel h2,:root[data-app-theme=dark] .login-strip h2,:root[data-app-theme=dark] .sheet-section h2,:root[data-app-theme=dark] .dnd-basic-abilities h3,:root[data-app-theme=dark] .dnd-basic-combat h3{color:#fffafd}:root[data-app-theme=dark] .notice{border-color:#8f8cff57;background:#262434f5;color:#fffafd;box-shadow:0 10px 24px #0000002e}:root[data-app-theme=dark] .settings-grid .segmented button{border-color:#5c617657;background:var(--color-control-bg);color:var(--color-control-text)}:root[data-app-theme=dark] .settings-grid .segmented button:hover,:root[data-app-theme=dark] .settings-grid .segmented button:focus-visible{background:var(--color-control-hover-bg);color:#fff}:root[data-app-theme=dark] .settings-grid .segmented button.active{background:var(--color-accent);border-color:var(--color-accent);color:var(--color-on-accent)}:root[data-app-theme=dark] .panel p,:root[data-app-theme=dark] .editor-header p,:root[data-app-theme=dark] .viewer-hero p,:root[data-app-theme=dark] .viewer-hero small,:root[data-app-theme=dark] .editor-sidecar .panel p,:root[data-app-theme=dark] .editor-sidecar .field span,:root[data-app-theme=dark] .character-row-body p,:root[data-app-theme=dark] .character-row-body small,:root[data-app-theme=dark] .login-strip p,:root[data-app-theme=dark] .login-note,:root[data-app-theme=dark] .ad-admin-row p,:root[data-app-theme=dark] .sidecar-meta dt,:root[data-app-theme=dark] .sheet-note p,:root[data-app-theme=dark] .sheet-item dd,:root[data-app-theme=dark] .memo-text,:root[data-app-theme=dark] .legal-page p,:root[data-app-theme=dark] .dnd-sheet .sheet-section h2,:root[data-app-theme=dark] .dnd-sheet .stat-box span,:root[data-app-theme=dark] .dnd-sheet .ability-card span,:root[data-app-theme=dark] .dnd-skill-legend,:root[data-app-theme=dark] .dnd-sheet .sheet-note h3{color:#d9d3df}:root[data-app-theme=dark] .settings-grid .panel p{color:#d9d3df}:root[data-app-theme=dark] .empty-note,:root[data-app-theme=dark] .session-reward-totals dt,:root[data-app-theme=dark] .session-history-table th{color:#bdb6c8}:root[data-app-theme=dark] .session-reward-totals div{border-color:#8f8cff3d;background:#1b1c21d1}:root[data-app-theme=dark] .session-history-table th,:root[data-app-theme=dark] .session-history-table td{border-color:#8f8cff33}:root[data-app-theme=dark] .srd-section-card{border-color:#8f8cff47;background:linear-gradient(180deg,#3b3a3ef5,#2d2c30f5),var(--surface);color:var(--fg);box-shadow:0 16px 36px #0000003d,inset 0 1px #ffffff0d}:root[data-app-theme=dark] .srd-section-card p,:root[data-app-theme=dark] .srd-rule-list,:root[data-app-theme=dark] .srd-attribution p{color:#d9d3df}:root[data-app-theme=dark] .srd-hero-actions a,:root[data-app-theme=dark] .srd-toc-item,:root[data-app-theme=dark] .srd-table th,:root[data-app-theme=dark] .srd-table td,:root[data-app-theme=dark] .srd-notes span,:root[data-app-theme=dark] .srd-spell-catalog-meta,:root[data-app-theme=dark] .srd-spell-entry,:root[data-app-theme=dark] .srd-spell-detail-grid div{border-color:#8f8cff3d}:root[data-app-theme=dark] .srd-hero-actions a,:root[data-app-theme=dark] .srd-toc-item:hover,:root[data-app-theme=dark] .srd-toc-item:focus-visible,:root[data-app-theme=dark] .srd-table th,:root[data-app-theme=dark] .srd-spell-catalog-meta,:root[data-app-theme=dark] .srd-spell-entry[open] summary,:root[data-app-theme=dark] .srd-spell-detail-grid div{background:#3c3a42e0;color:#fffafd}:root[data-app-theme=dark] .srd-status-pill{border-color:#8f8cff6b;background:#8f8cff29;color:#d8d5ff}:root[data-app-theme=dark] .srd-feature-level-badge{border-color:#8f8cff61;background:#8f8cff29;color:#d8d5ff}:root[data-app-theme=dark] .srd-status-needs-review .srd-status-pill{border-color:#f0a9bd6b;background:#f0a9bd24;color:#ffd7e3}:root[data-app-theme=dark] .srd-status-outline .srd-status-pill,:root[data-app-theme=dark] .srd-kicker,:root[data-app-theme=dark] .srd-section-source,:root[data-app-theme=dark] .srd-reference-stats span,:root[data-app-theme=dark] .srd-toc a small,:root[data-app-theme=dark] .srd-section-heading small,:root[data-app-theme=dark] .srd-spell-catalog-meta span,:root[data-app-theme=dark] .srd-spell-entry summary small,:root[data-app-theme=dark] .srd-spell-entry summary em,:root[data-app-theme=dark] .srd-spell-detail-grid dt{color:#c9c0cf}:root[data-app-theme=dark] .srd-section-summary{background:#8f8cff1f}:root[data-app-theme=dark] .srd-notes span{background:#f0a9bd1a;color:#f7f4f8}:root[data-app-theme=dark] textarea,:root[data-app-theme=dark] input,:root[data-app-theme=dark] select,:root[data-app-theme=dark] .dnd-attack-row input,:root[data-app-theme=dark] .dnd-class-row select,:root[data-app-theme=dark] .dnd-class-row input{border-color:#c9c0cf52;background:#252429f5;color:var(--fg);box-shadow:inset 0 1px 2px #0003,0 1px #ffffff0a}:root[data-app-theme=dark] textarea:focus,:root[data-app-theme=dark] input:focus,:root[data-app-theme=dark] select:focus{border-color:#8f8cffc7;outline-color:#8f8cff3d;background:#302f34}:root[data-app-theme=dark] input::placeholder,:root[data-app-theme=dark] textarea::placeholder{color:#a99fb2}:root[data-app-theme=dark] button,:root[data-app-theme=dark] .file-button,:root[data-app-theme=dark] .oauth-button,:root[data-app-theme=dark] .command-row button,:root[data-app-theme=dark] .theme-toolbar button{border-color:#c9c0cf42;background:#333237f5;color:var(--fg)}:root[data-app-theme=dark] button:hover,:root[data-app-theme=dark] button:focus-visible,:root[data-app-theme=dark] .file-button:hover,:root[data-app-theme=dark] .file-button:focus-visible,:root[data-app-theme=dark] .oauth-button:hover,:root[data-app-theme=dark] .oauth-button:focus-visible{border-color:#8f8cff7a;background:#413f47fa;color:#fffafd}:root[data-app-theme=dark] .oauth-button.disabled,:root[data-app-theme=dark] .oauth-button.disabled:hover,:root[data-app-theme=dark] .oauth-button.disabled:focus-visible{border-color:#c9c0cf29;background:#2d2c30c2;color:#9f96a8}:root[data-app-theme=dark] .oauth-button.discord{border-color:#f0a9bd75;background:#f0a9bd29;color:#fff7fb}:root[data-app-theme=dark] .dialog-backdrop .confirm-dialog{border-color:#f0a9bd5c;background:linear-gradient(180deg,#3b3a3efa,#2d2c30fa),var(--surface);color:#fffafd}:root[data-app-theme=dark] .dialog-backdrop .confirm-dialog-body h2{color:#fffafd}:root[data-app-theme=dark] .dialog-backdrop .confirm-dialog-body p,:root[data-app-theme=dark] .dialog-backdrop .confirm-field span{color:#d9d3df}:root[data-app-theme=dark] .dialog-backdrop .confirm-field input{border-color:#c9c0cf5c;background:#1f1e22fa;color:#fffafd}:root[data-app-theme=dark] .dialog-backdrop .confirm-dialog-actions button{border-color:#c9c0cf47;background:#333237f5;color:#fffafd}:root[data-app-theme=dark] .dialog-backdrop .confirm-dialog-actions button:disabled{color:#b7aebc;opacity:.62}:root[data-app-theme=dark] .dialog-backdrop .confirm-dialog-actions button.danger{border-color:#f0a9bd70;background:#a93f582e;color:#f0a9bd}:root[data-app-theme=dark] .dialog-backdrop .confirm-dialog-actions button.danger:disabled{color:#c28a98}:root[data-app-theme=dark] .row-details-dialog{border-color:#8f8cff57;background:linear-gradient(180deg,#3b3a3efa,#2d2c30fa),var(--surface);color:#fffafd}:root[data-app-theme=dark] .row-details-header h2{color:#fffafd}:root[data-app-theme=dark] .row-details-header p,:root[data-app-theme=dark] .row-details-summary{color:#d9d3df}:root[data-app-theme=dark] .row-details-summary{border-color:#8f8cff47;background:#8f8cff24}:root[data-app-theme=dark] .unsaved-pill,:root[data-app-theme=dark] .unsaved-dialog .confirm-dialog-icon{border-color:#8f8cff6b;background:#8f8cff24;color:#d8d5ff}:root[data-app-theme=dark] .system-pill,:root[data-app-theme=dark] .character-row span,:root[data-app-theme=dark] .tag-row span,:root[data-app-theme=dark] .ad-slot span,:root[data-app-theme=dark] .sidecar-tags span{border-color:#8f8cff47;background:#ffffff14;color:#f2eef8}:root[data-app-theme=dark] .home-page{color:var(--fg)}:root[data-app-theme=dark] .section-heading h2{color:#fffafd;font-weight:850}:root[data-app-theme=dark] .home-system-card{border-color:#8f8cff61;background:linear-gradient(180deg,#403e48fa,#2a2930fa),var(--surface);color:var(--fg);box-shadow:0 16px 34px #00000047,inset 0 1px #ffffff0f}:root[data-app-theme=dark] .home-system-card h3{color:#fffafd;font-weight:850}:root[data-app-theme=dark] .home-system-card .system-pill{border-color:#f0a9bd7a;background:#f0a9bd24;color:#ffe6ee;font-weight:850}:root[data-app-theme=dark] .home-system-source{border-color:#8f8cff6b;background:#8f8cff24;color:#d8d5ff}:root[data-app-theme=dark] .home-card-actions button{border-color:#c9c0cf57;background:#222127fa;color:#fffafd}:root[data-app-theme=dark] .home-card-actions button:hover,:root[data-app-theme=dark] .home-card-actions button:focus-visible{border-color:#8f8cff9e;background:#4d4a5afa;color:#fff}:root[data-app-theme=dark] .portrait-panel .portrait-preview,:root[data-app-theme=dark] .editor-sidecar .theme-preview,:root[data-app-theme=dark] .portrait-slot,:root[data-app-theme=dark] .viewer-portrait{border-color:#8f8cff47;background:#27262beb;color:#d6d0dd}:root[data-app-theme=dark] .sidecar-meta{border-top-color:#c9c0cf29}:root[data-app-theme=dark] .sidecar-meta div{border-bottom-color:#c9c0cf1f}:root[data-app-theme=dark] .sidecar-meta dd{color:var(--fg)}:root[data-app-theme=dark] .character-row:hover{border-color:#8f8cff8a;box-shadow:0 20px 44px #0000004d}:root[data-app-theme=dark] .sheet-item,:root[data-app-theme=dark] .stat-box,:root[data-app-theme=dark] .ability-card,:root[data-app-theme=dark] .coc-ability-card,:root[data-app-theme=dark] .check-row,:root[data-app-theme=dark] .sheet-note,:root[data-app-theme=dark] .sheet-kv-grid div,:root[data-app-theme=dark] .skill-table,:root[data-app-theme=dark] .dnd-attack-table,:root[data-app-theme=dark] .dnd-class-table,:root[data-app-theme=dark] .dnd-feat-table,:root[data-app-theme=dark] .coc-skill-sheet,:root[data-app-theme=dark] .dnd-sheet .stat-box,:root[data-app-theme=dark] .dnd-sheet .ability-card,:root[data-app-theme=dark] .dnd-inspiration,:root[data-app-theme=dark] .dnd-shield-field,:root[data-app-theme=dark] .dnd-skill-row,:root[data-app-theme=dark] .dnd-actions-panel .sheet-note,:root[data-app-theme=dark] .dnd-spellcasting-table{border-color:#8f8cff38;background:#2d2c30eb;color:var(--fg)}:root[data-app-theme=dark] .dnd-skill-row:nth-child(odd),:root[data-app-theme=dark] .dnd-save-list .check-row:nth-child(odd),:root[data-app-theme=dark] .dnd-attack-row:nth-child(odd),:root[data-app-theme=dark] .dnd-class-row:nth-child(odd),:root[data-app-theme=dark] .dnd-feat-row:nth-child(odd),:root[data-app-theme=dark] .dnd-spellcasting-row:nth-child(odd){background:#333237e0}:root[data-app-theme=dark] .dnd-skill-row:nth-child(2n),:root[data-app-theme=dark] .dnd-save-list .check-row:nth-child(2n),:root[data-app-theme=dark] .dnd-attack-row:nth-child(2n),:root[data-app-theme=dark] .dnd-class-row:nth-child(2n),:root[data-app-theme=dark] .dnd-feat-row:nth-child(2n),:root[data-app-theme=dark] .dnd-spellcasting-row:nth-child(2n){background:#28272ce6}:root[data-app-theme=dark] .coc-skill-header,:root[data-app-theme=dark] .coc-weapon-header,:root[data-app-theme=dark] .coc-item-header,:root[data-app-theme=dark] .tenkaran-combat-header,:root[data-app-theme=dark] .tenkaran-equipment-header,:root[data-app-theme=dark] .tenkaran-defense-header{background:#8f8cff24;color:#f2eef8}:root[data-app-theme=dark] .coc-skill-row:nth-child(odd),:root[data-app-theme=dark] .coc-weapon-row:nth-child(odd),:root[data-app-theme=dark] .coc-item-row:nth-child(odd),:root[data-app-theme=dark] .tenkaran-combat-row:nth-child(odd),:root[data-app-theme=dark] .tenkaran-equipment-row:nth-child(odd),:root[data-app-theme=dark] .tenkaran-defense-row:nth-child(odd){background:#333237e0}:root[data-app-theme=dark] .coc-skill-row:nth-child(2n),:root[data-app-theme=dark] .coc-weapon-row:nth-child(2n),:root[data-app-theme=dark] .coc-item-row:nth-child(2n),:root[data-app-theme=dark] .tenkaran-combat-row:nth-child(2n),:root[data-app-theme=dark] .tenkaran-equipment-row:nth-child(2n),:root[data-app-theme=dark] .tenkaran-defense-row:nth-child(2n),:root[data-app-theme=dark] .tenkaran-defense-total{background:#28272ce6}:root[data-app-theme=dark] .coc-skill-group h3{border-color:#8f8cff38;background:#f0a9bd1f;color:#ffd7e3}:root[data-app-theme=dark] .coc-skill-header strong,:root[data-app-theme=dark] .coc-skill-row>span,:root[data-app-theme=dark] .coc-skill-row input,:root[data-app-theme=dark] .coc-weapon-header strong,:root[data-app-theme=dark] .coc-item-header strong,:root[data-app-theme=dark] .coc-weapon-row input,:root[data-app-theme=dark] .coc-weapon-row span,:root[data-app-theme=dark] .coc-weapon-row button,:root[data-app-theme=dark] .coc-item-row input,:root[data-app-theme=dark] .coc-item-row textarea,:root[data-app-theme=dark] .coc-item-row span,:root[data-app-theme=dark] .coc-item-row button,:root[data-app-theme=dark] .tenkaran-combat-header>*,:root[data-app-theme=dark] .tenkaran-combat-row>*,:root[data-app-theme=dark] .tenkaran-equipment-header>*,:root[data-app-theme=dark] .tenkaran-equipment-row>*,:root[data-app-theme=dark] .tenkaran-defense-header>*,:root[data-app-theme=dark] .tenkaran-defense-row>*,:root[data-app-theme=dark] .tenkaran-defense-total>*{border-color:#8f8cff2e;color:#f7f4f8}:root[data-app-theme=dark] .coc-skill-row input,:root[data-app-theme=dark] .coc-weapon-row input,:root[data-app-theme=dark] .coc-item-row input,:root[data-app-theme=dark] .coc-item-row textarea,:root[data-app-theme=dark] .tenkaran-combat-row input,:root[data-app-theme=dark] .tenkaran-equipment-row input,:root[data-app-theme=dark] .tenkaran-defense-row input{background:transparent}:root[data-app-theme=dark] .coc-skill-row>strong,:root[data-app-theme=dark] .coc-skill-summary strong,:root[data-app-theme=dark] .tenkaran-combat-row strong,:root[data-app-theme=dark] .tenkaran-defense-total strong{color:#fffafd}:root[data-app-theme=dark] .coc-skill-row>strong{background:#8f8cff29}:root[data-app-theme=dark] .coc-skill-header strong:first-child,:root[data-app-theme=dark] .tenkaran-combat-header>:first-child,:root[data-app-theme=dark] .tenkaran-equipment-header>:first-child,:root[data-app-theme=dark] .tenkaran-defense-header>:first-child{background:#8f8cff24}:root[data-app-theme=dark] .coc-skill-row:nth-child(odd)>span:first-child,:root[data-app-theme=dark] .tenkaran-combat-row:nth-child(odd)>:first-child,:root[data-app-theme=dark] .tenkaran-equipment-row:nth-child(odd)>:first-child,:root[data-app-theme=dark] .tenkaran-defense-row:nth-child(odd)>:first-child{background:#333237}:root[data-app-theme=dark] .coc-skill-row:nth-child(2n)>span:first-child,:root[data-app-theme=dark] .tenkaran-combat-row:nth-child(2n)>:first-child,:root[data-app-theme=dark] .tenkaran-equipment-row:nth-child(2n)>:first-child,:root[data-app-theme=dark] .tenkaran-defense-row:nth-child(2n)>:first-child,:root[data-app-theme=dark] .tenkaran-defense-total>:first-child{background:#28272c}:root[data-app-theme=dark] .coc-skill-summary div,:root[data-app-theme=dark] .coc-extra-skill-panel,:root[data-app-theme=dark] .coc-weapon-table,:root[data-app-theme=dark] .coc-item-table,:root[data-app-theme=dark] .coc-backstory-group,:root[data-app-theme=dark] .coc-backstory-view-group,:root[data-app-theme=dark] .tenkaran-mini-table,:root[data-app-theme=dark] .tenkaran-ability-card,:root[data-app-theme=dark] .tenkaran-combat-table,:root[data-app-theme=dark] .tenkaran-wide-table,:root[data-app-theme=dark] .tenkaran-defense-table,:root[data-app-theme=dark] .tenkaran-art-row,:root[data-app-theme=dark] .tenkaran-history-row{border-color:#8f8cff38;background:#2d2c30e0}:root[data-app-theme=dark] .coc-skill-summary span,:root[data-app-theme=dark] .coc-skill-row small,:root[data-app-theme=dark] .coc-skill-sort,:root[data-app-theme=dark] .coc-skill-sort-readonly,:root[data-app-theme=dark] .sheet-help,:root[data-app-theme=dark] .coc-secret-help,:root[data-app-theme=dark] .coc-extra-skill-panel h3,:root[data-app-theme=dark] .coc-backstory-group h3,:root[data-app-theme=dark] .coc-backstory-view-group h4,:root[data-app-theme=dark] .coc-key-connection,:root[data-app-theme=dark] .tenkaran-ability-card>span,:root[data-app-theme=dark] .tenkaran-ability-card label{color:#d9d3df}:root[data-app-theme=dark] .tenkaran-ability-card>strong,:root[data-app-theme=dark] .tenkaran-mini-table h3{color:#fffafd}:root[data-app-theme=dark] .shinobi-skill-grid{border-color:#8f8cff47;background:linear-gradient(90deg,rgba(143,140,255,.12) 1px,transparent 1px),linear-gradient(180deg,rgba(143,140,255,.1) 1px,transparent 1px),#252429f0;color:#f7f4f8;scrollbar-color:rgba(201,192,207,.58) rgba(37,36,41,.82)}:root[data-app-theme=dark] .shinobi-skill-heading{border-color:#8f8cff3d;background:linear-gradient(180deg,#4a4854fa,#2d2c31fa),#333235;color:#fffafd}:root[data-app-theme=dark] .shinobi-skill-axis{border-color:#8f8cff2e;background:#333237f0;color:#d9d3df}:root[data-app-theme=dark] .shinobi-skill-axis-corner{background:#2b2a30fa}:root[data-app-theme=dark] .shinobi-skill-cell{border-color:#8f8cff2e;background:#2d2c30eb;color:#f7f4f8}:root[data-app-theme=dark] .shinobi-skill-button{background:#2d2c30eb;color:#f7f4f8}:root[data-app-theme=dark] .shinobi-skill-button:hover,:root[data-app-theme=dark] .shinobi-skill-button:focus-visible{border-color:#8f8cff70;background:#413f47fa;color:#fffafd}:root[data-app-theme=dark] .shinobi-skill-cell.active{background:#8f8cff33;color:#fffafd}:root[data-app-theme=dark] .shinobi-skill-cell.is-selected{box-shadow:inset 0 0 0 3px #f0a9bdd1,0 0 0 1px #f0a9bd47}:root[data-app-theme=dark] .shinobi-judge-panel>div{border-color:#8f8cff38;background:#2d2c30eb;color:#f7f4f8}:root[data-app-theme=dark] .shinobi-judge-panel span,:root[data-app-theme=dark] .shinobi-secret-unlock small{color:#c9c0cf}:root[data-app-theme=dark] .shinobi-judge-panel strong{color:#fffafd}:root[data-app-theme=dark] .shinobi-row-table{border-color:#8f8cff47;background:#252429f0;color:#f7f4f8;scrollbar-color:rgba(201,192,207,.58) rgba(37,36,41,.82)}:root[data-app-theme=dark] .shinobi-row-header{background:linear-gradient(180deg,#4a4854fa,#2d2c31fa),#333235;color:#fffafd}:root[data-app-theme=dark] .shinobi-row-header>*,:root[data-app-theme=dark] .shinobi-row>*,:root[data-app-theme=dark] .shinobi-view-row>*{border-color:#8f8cff2e}:root[data-app-theme=dark] .shinobi-row>*,:root[data-app-theme=dark] .shinobi-view-row>*{background:#2d2c30eb;color:#f7f4f8}:root[data-app-theme=dark] .shinobi-row:nth-child(odd)>*,:root[data-app-theme=dark] .shinobi-view-row:nth-child(odd)>*{background:#333237e6}:root[data-app-theme=dark] .shinobi-row input,:root[data-app-theme=dark] .shinobi-row select,:root[data-app-theme=dark] .shinobi-row textarea{background:#252429f5;color:#f7f4f8}:root[data-app-theme=dark] .shinobi-view-row strong,:root[data-app-theme=dark] .shinobi-view-row span,:root[data-app-theme=dark] .shinobi-view-row p{color:#f7f4f8}:root[data-app-theme=dark] .shinobi-view-row.is-masked{color:#c9c0cf}:root[data-app-theme=dark] .shinobi-view-row.is-masked>*{background:#252429e6;color:#c9c0cf}:root[data-app-theme=dark] .shinobi-secret-unlock{color:#f7f4f8}:root[data-app-theme=dark] .shinobi-secret-error{color:#f0a9bd}:root[data-app-theme=dark] .sheet-alert{border-left-color:#f0a9bd9e;background:#f0a9bd1f;color:#f7f4f8}:root[data-app-theme=dark] .coc-key-connection-badge{border-color:#f0a9bd7a;background:#f0a9bd24;color:#ffd7e3}:root[data-app-theme=dark] .dnd-attack-header,:root[data-app-theme=dark] .dnd-class-header,:root[data-app-theme=dark] .dnd-feat-header,:root[data-app-theme=dark] .dnd-spellcasting-header{background:#8f8cff24;color:#f2eef8}:root[data-app-theme=dark] .dnd-feat-header strong,:root[data-app-theme=dark] .dnd-feat-row input,:root[data-app-theme=dark] .dnd-feat-row span,:root[data-app-theme=dark] .dnd-feat-row button{border-color:#8f8cff2e}:root[data-app-theme=dark] .stat-box strong,:root[data-app-theme=dark] .stat-box-readonly strong,:root[data-app-theme=dark] .ability-card strong,:root[data-app-theme=dark] .ability-card em,:root[data-app-theme=dark] .coc-ability-card strong,:root[data-app-theme=dark] .coc-ability-card em,:root[data-app-theme=dark] .sheet-kv-grid dd,:root[data-app-theme=dark] .dnd-sheet .stat-box strong,:root[data-app-theme=dark] .dnd-sheet .stat-box-readonly strong,:root[data-app-theme=dark] .dnd-sheet .ability-card strong,:root[data-app-theme=dark] .dnd-sheet .ability-card em,:root[data-app-theme=dark] .dnd-skill-row span,:root[data-app-theme=dark] .dnd-save-list .check-row span,:root[data-app-theme=dark] .dnd-skill-row strong,:root[data-app-theme=dark] .dnd-save-list .check-row strong,:root[data-app-theme=dark] .dnd-class-row span,:root[data-app-theme=dark] .dnd-feat-header strong,:root[data-app-theme=dark] .dnd-feat-row input,:root[data-app-theme=dark] .dnd-feat-row span,:root[data-app-theme=dark] .dnd-feat-row button,:root[data-app-theme=dark] .dnd-spellcasting-row strong,:root[data-app-theme=dark] .dnd-spellcasting-row strong em{color:#fffafd}:root[data-app-theme=dark] .stat-box span,:root[data-app-theme=dark] .ability-card span,:root[data-app-theme=dark] .coc-ability-card span,:root[data-app-theme=dark] .dnd-sheet .ability-card small,:root[data-app-theme=dark] .dnd-skill-row .dnd-skill-name small,:root[data-app-theme=dark] .skill-row small,:root[data-app-theme=dark] .check-row small,:root[data-app-theme=dark] .sheet-kv-grid dt,:root[data-app-theme=dark] .dnd-feat-empty,:root[data-app-theme=dark] .dnd-spellcasting-empty{color:#cfc7d6}:root[data-app-theme=dark] .dnd-ability-values strong,:root[data-app-theme=dark] .dnd-ability-values em,:root[data-app-theme=dark] .dnd-ability-values input{color:#fffafd}:root[data-app-theme=dark] .dnd-paper-viewer,:root[data-app-theme=dark] .dnd-paper-editor{--dnd-dark-bg: #191719;--dnd-dark-panel: #242124;--dnd-dark-border: rgba(216, 177, 109, .28);--dnd-dark-fg: #fff8ef;--dnd-dark-muted: #d6c7b8;--dnd-dark-dim: #b9a99e;--dnd-dark-gold: #d8b16d;--dnd-dark-rose: #f0a9bd;--dnd-dark-teal: #75c9bf}:root[data-app-theme=dark] .dnd-paper-viewer .viewer-hero,:root[data-app-theme=dark] .dnd-paper-viewer .paper-sheet-host,:root[data-app-theme=dark] .dnd-paper-viewer>.panel:not(.paper-sheet-host),:root[data-app-theme=dark] .dnd-paper-editor .editor-header,:root[data-app-theme=dark] .dnd-paper-editor .editor-main>.panel,:root[data-app-theme=dark] .dnd-paper-editor .editor-sidecar .panel{border-color:var(--dnd-dark-border);background:linear-gradient(180deg,#2d2726f7,#1e1c20fa),var(--dnd-dark-bg);color:var(--dnd-dark-fg);box-shadow:0 18px 42px #00000057,inset 0 1px #fff8ef0f}:root[data-app-theme=dark] .dnd-paper-viewer .viewer-hero:before{border-top-color:#d8b16d9e;background:linear-gradient(90deg,rgba(216,177,109,.18),transparent 44%),linear-gradient(180deg,rgba(117,201,191,.08),transparent 72%)}:root[data-app-theme=dark] .dnd-paper-viewer .paper-sheet-host:before{color:#d8b16d0e}:root[data-app-theme=dark] .dnd-paper-viewer .paper-sheet-host:after{border-color:#f0a9bd1f;background:radial-gradient(circle,rgba(117,201,191,.11),transparent 68%)}:root[data-app-theme=dark] .dnd-paper-viewer .viewer-hero h1,:root[data-app-theme=dark] .dnd-paper-editor .editor-header h1,:root[data-app-theme=dark] .dnd-paper-editor .editor-sidecar .panel h2,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .sheet-section h2,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .sheet-section h2{color:var(--dnd-dark-fg)}:root[data-app-theme=dark] .dnd-paper-viewer .viewer-hero p,:root[data-app-theme=dark] .dnd-paper-viewer .viewer-hero small,:root[data-app-theme=dark] .dnd-paper-editor .editor-header p,:root[data-app-theme=dark] .dnd-paper-editor .editor-sidecar .panel p,:root[data-app-theme=dark] .dnd-paper-editor .editor-sidecar .field span{color:var(--dnd-dark-muted)}:root[data-app-theme=dark] .dnd-paper-viewer .viewer-portrait,:root[data-app-theme=dark] .dnd-paper-editor .portrait-panel .portrait-preview{border-color:#d8b16d57;background:linear-gradient(135deg,#d8b16d1f,#75c9bf14),#201d20;color:var(--dnd-dark-dim)}:root[data-app-theme=dark] .dnd-paper-viewer .command-row button{border-color:#d8b16d57;background:linear-gradient(180deg,#3c3430fa,#252224fa);color:var(--dnd-dark-fg);box-shadow:0 2px #00000047}:root[data-app-theme=dark] .dnd-paper-viewer .command-row button:hover,:root[data-app-theme=dark] .dnd-paper-viewer .command-row button:focus-visible{border-color:#75c9bf8a;background:#3a3332}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .sheet-section,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .sheet-section{border-color:var(--dnd-dark-border);background:linear-gradient(180deg,#2a2525fa,#1f1d20fa),var(--dnd-dark-panel);color:var(--dnd-dark-fg);box-shadow:inset 0 1px #fff8ef0e,0 2px 10px #00000029}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .sheet-section h2,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .sheet-section h2{border-bottom-color:#d8b16d38;background:linear-gradient(90deg,#d8b16d29,#f0a9bd14),linear-gradient(180deg,#37302df5,#262224f5)}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .sheet-section h2:before,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .sheet-section h2:before{background:linear-gradient(180deg,var(--dnd-dark-gold),var(--dnd-dark-teal))}:root[data-app-theme=dark] .dnd-paper-viewer .sheet-kv-grid div,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .stat-box,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .ability-card,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .sheet-note,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-attack-table,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-class-table,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-feat-table,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-spellcasting-table,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-spell-slot-summary,:root[data-app-theme=dark] .dnd-paper-editor .sheet-kv-grid div,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .stat-box,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .ability-card,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .sheet-note,:root[data-app-theme=dark] .dnd-paper-editor .dnd-attack-table,:root[data-app-theme=dark] .dnd-paper-editor .dnd-class-table,:root[data-app-theme=dark] .dnd-paper-editor .dnd-feat-table,:root[data-app-theme=dark] .dnd-paper-editor .dnd-spellcasting-table,:root[data-app-theme=dark] .dnd-paper-editor .dnd-spell-slot-summary,:root[data-app-theme=dark] .dnd-paper-editor .dnd-inspiration,:root[data-app-theme=dark] .dnd-paper-editor .dnd-shield-field{border-color:#d8b16d38;background:linear-gradient(180deg,#342d2be6,#232023eb);color:var(--dnd-dark-fg)}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-ability-values,:root[data-app-theme=dark] .dnd-paper-editor .dnd-ability-values{border-color:#d8b16d33;background:#11101247}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-ability-values>span,:root[data-app-theme=dark] .dnd-paper-editor .dnd-ability-values>span{border-right-color:#d8b16d29}:root[data-app-theme=dark] .dnd-paper-viewer .sheet-kv-grid dt,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .stat-box span,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .ability-card span,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-ability-values small,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .sheet-note h3,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-skill-legend,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-skill-row small,:root[data-app-theme=dark] .dnd-paper-editor .sheet-kv-grid dt,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .stat-box span,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .ability-card span,:root[data-app-theme=dark] .dnd-paper-editor .dnd-ability-values small,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .sheet-note h3,:root[data-app-theme=dark] .dnd-paper-editor .dnd-skill-legend,:root[data-app-theme=dark] .dnd-paper-editor .dnd-skill-row small,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-srd-spell-results span,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-spellbook-row summary>span,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-spell-description,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-spell-material,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-spell-detail-grid dt,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-load-summary span,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-ledger-table>strong,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-readonly-list span,:root[data-app-theme=dark] .dnd-paper-editor .dnd-srd-spell-results span,:root[data-app-theme=dark] .dnd-paper-editor .dnd-spellbook-row summary>span,:root[data-app-theme=dark] .dnd-paper-editor .dnd-spell-hover-card>span,:root[data-app-theme=dark] .dnd-paper-editor .dnd-spell-hover-card p,:root[data-app-theme=dark] .dnd-paper-editor .dnd-spell-hover-card dt,:root[data-app-theme=dark] .dnd-paper-editor .dnd-spell-description,:root[data-app-theme=dark] .dnd-paper-editor .dnd-spell-material,:root[data-app-theme=dark] .dnd-paper-editor .dnd-spell-detail-grid dt,:root[data-app-theme=dark] .dnd-paper-editor .dnd-load-summary span,:root[data-app-theme=dark] .dnd-paper-editor .dnd-ledger-table>strong,:root[data-app-theme=dark] .dnd-paper-editor .dnd-readonly-list span,:root[data-app-theme=dark] .dnd-paper-editor .dnd-catalog-strip small,:root[data-app-theme=dark] .dnd-paper-editor .dnd-catalog-grid small,:root[data-app-theme=dark] .dnd-paper-editor .dnd-spell-slot-group-label{color:var(--dnd-dark-muted)}:root[data-app-theme=dark] .dnd-paper-viewer .sheet-kv-grid dd,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .stat-box strong,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .stat-box-readonly strong,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .ability-card strong,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .ability-card em,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .sheet-note p,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-save-list .check-row span,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-skill-row span,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-save-list .check-row strong,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-skill-row strong,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-spell-detail-grid dd,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-load-summary strong,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-spell-slot-summary strong,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-spell-slot-row,:root[data-app-theme=dark] .dnd-paper-editor .sheet-kv-grid dd,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .stat-box strong,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .stat-box-readonly strong,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .ability-card strong,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .ability-card em,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .sheet-note p,:root[data-app-theme=dark] .dnd-paper-editor .dnd-save-list .check-row span,:root[data-app-theme=dark] .dnd-paper-editor .dnd-skill-row span,:root[data-app-theme=dark] .dnd-paper-editor .dnd-save-list .check-row strong,:root[data-app-theme=dark] .dnd-paper-editor .dnd-skill-row strong,:root[data-app-theme=dark] .dnd-paper-editor .dnd-spell-detail-grid dd,:root[data-app-theme=dark] .dnd-paper-editor .dnd-spell-hover-card dd,:root[data-app-theme=dark] .dnd-paper-editor .dnd-load-summary strong,:root[data-app-theme=dark] .dnd-paper-editor .dnd-spell-slot-summary strong,:root[data-app-theme=dark] .dnd-paper-editor .dnd-spell-slot-row{color:var(--dnd-dark-fg)}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .stat-box small,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .stat-box small{color:var(--dnd-dark-teal)}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-save-list .check-row,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-skill-row,:root[data-app-theme=dark] .dnd-paper-editor .dnd-save-list .check-row,:root[data-app-theme=dark] .dnd-paper-editor .dnd-skill-row{border-color:#d8b16d2e;background:#312b2ac7}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-save-list .check-row:nth-child(2n),:root[data-app-theme=dark] .dnd-paper-viewer .dnd-skill-row:nth-child(2n),:root[data-app-theme=dark] .dnd-paper-viewer .dnd-attack-row:nth-child(2n),:root[data-app-theme=dark] .dnd-paper-viewer .dnd-class-row:nth-child(2n),:root[data-app-theme=dark] .dnd-paper-viewer .dnd-spellcasting-row:nth-child(2n),:root[data-app-theme=dark] .dnd-paper-editor .dnd-save-list .check-row:nth-child(2n),:root[data-app-theme=dark] .dnd-paper-editor .dnd-skill-row:nth-child(2n),:root[data-app-theme=dark] .dnd-paper-editor .dnd-attack-row:nth-child(2n),:root[data-app-theme=dark] .dnd-paper-editor .dnd-class-row:nth-child(2n),:root[data-app-theme=dark] .dnd-paper-editor .dnd-spellcasting-row:nth-child(2n){background:#262224d6}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-attack-header,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-class-header,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-spellcasting-header,:root[data-app-theme=dark] .dnd-paper-editor .dnd-attack-header,:root[data-app-theme=dark] .dnd-paper-editor .dnd-class-header,:root[data-app-theme=dark] .dnd-paper-editor .dnd-spellcasting-header{background:#d8b16d21;color:var(--dnd-dark-fg)}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-attack-header strong,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-attack-row span,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-class-header strong,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-class-row span,:root[data-app-theme=dark] .dnd-paper-editor .dnd-attack-header strong,:root[data-app-theme=dark] .dnd-paper-editor .dnd-attack-row input,:root[data-app-theme=dark] .dnd-paper-editor .dnd-attack-row select,:root[data-app-theme=dark] .dnd-paper-editor .dnd-attack-row span,:root[data-app-theme=dark] .dnd-paper-editor .dnd-class-header strong,:root[data-app-theme=dark] .dnd-paper-editor .dnd-class-row input,:root[data-app-theme=dark] .dnd-paper-editor .dnd-class-row select,:root[data-app-theme=dark] .dnd-paper-editor .dnd-class-row span,:root[data-app-theme=dark] .dnd-paper-editor .dnd-class-row button{border-color:#d8b16d2e;color:var(--dnd-dark-fg)}:root[data-app-theme=dark] .dnd-paper-editor textarea,:root[data-app-theme=dark] .dnd-paper-editor input,:root[data-app-theme=dark] .dnd-paper-editor select,:root[data-app-theme=dark] .dnd-paper-editor .dnd-ledger-row output{border-color:#d8b16d40;background:#161416f5;color:var(--dnd-dark-fg)}:root[data-app-theme=dark] .dnd-paper-editor textarea:focus,:root[data-app-theme=dark] .dnd-paper-editor input:focus,:root[data-app-theme=dark] .dnd-paper-editor select:focus{border-color:#75c9bfb8;outline-color:#75c9bf38;background:#211f22}:root[data-app-theme=dark] .dnd-paper-editor input::placeholder,:root[data-app-theme=dark] .dnd-paper-editor textarea::placeholder{color:#9f9288}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-spellbook-row,:root[data-app-theme=dark] .dnd-paper-editor .dnd-spellbook-row,:root[data-app-theme=dark] .dnd-paper-editor .dnd-spell-hover-card,:root[data-app-theme=dark] .dnd-paper-editor .dnd-load-summary>div,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-load-summary>div,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-readonly-list p,:root[data-app-theme=dark] .dnd-paper-editor .dnd-readonly-list p{border-color:#d8b16d38;background:#2b2626db;color:var(--dnd-dark-fg)}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-spellbook-row[open] summary,:root[data-app-theme=dark] .dnd-paper-editor .dnd-spellbook-row[open] summary{border-bottom-color:#d8b16d2e}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-slot-box-list i,:root[data-app-theme=dark] .dnd-paper-editor .dnd-slot-box-list i{border-color:var(--dnd-dark-gold);background:#d8b16d1f;box-shadow:inset 0 0 0 1px #fff8ef14}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-spell-state-icon,:root[data-app-theme=dark] .dnd-paper-editor .dnd-spell-state-icon{border-color:#8f8cff3d;background:#8f8cff12;color:#cfccff6b}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-spell-state-icon.is-active,:root[data-app-theme=dark] .dnd-paper-editor .dnd-spell-state-icon.is-active{border-color:#8f8cffb8;background:#8f8cff2e;color:#f4f2ff;box-shadow:inset 0 0 0 1px #ffffff0f}:root[data-app-theme=dark] .dnd-spell-state-group+.dnd-spell-state-group{border-left-color:#8f8cff47}:root[data-app-theme=dark] .dnd-paper-editor .dnd-load-summary[data-load-state=注意]>div:last-child,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-load-summary[data-load-state=注意]>div:last-child{border-color:#d8b16d94;background:#d8b16d1f}:root[data-app-theme=dark] .dnd-paper-editor .dnd-load-summary[data-load-state=超過]>div:last-child,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-load-summary[data-load-state=超過]>div:last-child{border-color:#f0a9bd8a;background:#a93f5833}:root[data-app-theme=dark] .dnd-paper-editor .dnd-catalog-details summary{color:var(--dnd-dark-teal)}:root[data-app-theme=dark] .dnd-paper-editor .dnd-catalog-section-heading{border-bottom-color:#8f8cff3d}:root[data-app-theme=dark] .dnd-paper-editor .dnd-catalog-section-heading strong{color:var(--dnd-dark-fg)}:root[data-app-theme=dark] .dnd-paper-editor .dnd-catalog-section-heading span{color:var(--dnd-dark-muted)}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-proficiency-mark,:root[data-app-theme=dark] .dnd-paper-editor .dnd-proficiency-mark{border-color:#d8b16d7a;background:#d8b16d1a}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-proficiency-proficient,:root[data-app-theme=dark] .dnd-paper-editor .dnd-proficiency-proficient{background:var(--dnd-dark-gold)}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-proficiency-expertise,:root[data-app-theme=dark] .dnd-paper-editor .dnd-proficiency-expertise{background:var(--dnd-dark-rose)}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-proficiency-half,:root[data-app-theme=dark] .dnd-paper-editor .dnd-proficiency-half{background:linear-gradient(90deg,var(--dnd-dark-gold) 0 50%,transparent 50%)}@media(max-width:820px){:root[data-app-theme=dark] .dnd-paper-viewer .viewer-hero .export-actions{border-color:#d8b16d47;background:#1e1c20f0}}:root[data-app-theme=dark] .app-viewer-dnd5e .workspace,:root[data-app-theme=dark] .app-editor-dnd5e .workspace{background:linear-gradient(rgba(143,140,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(240,169,189,.028) 1px,transparent 1px),linear-gradient(180deg,#2d2c2f,#252426);background-size:28px 28px,28px 28px,auto}:root[data-app-theme=dark] .app-viewer-dnd5e .main-pane,:root[data-app-theme=dark] .app-editor-dnd5e .main-pane{background:radial-gradient(circle at 18% 8%,rgba(143,140,255,.1),transparent 34%),linear-gradient(180deg,#2d2c30e0,#252426f0)}:root[data-app-theme=dark] .dnd-paper-viewer,:root[data-app-theme=dark] .dnd-paper-editor{--dnd-dark-bg: #252426;--dnd-dark-panel: #333235;--dnd-dark-border: rgba(143, 140, 255, .28);--dnd-dark-fg: #fffafd;--dnd-dark-muted: #d9d3df;--dnd-dark-dim: #c9c0cf;--dnd-dark-gold: #8f8cff;--dnd-dark-rose: #f0a9bd;--dnd-dark-teal: #9be1d8}:root[data-app-theme=dark] .dnd-paper-viewer .viewer-hero,:root[data-app-theme=dark] .dnd-paper-viewer .paper-sheet-host,:root[data-app-theme=dark] .dnd-paper-viewer>.panel:not(.paper-sheet-host),:root[data-app-theme=dark] .dnd-paper-editor .editor-header,:root[data-app-theme=dark] .dnd-paper-editor .editor-main>.panel,:root[data-app-theme=dark] .dnd-paper-editor .editor-sidecar .panel{border-color:#8f8cff52;background:linear-gradient(180deg,#3b3a3ef5,#2d2c30f5),var(--surface);color:var(--dnd-dark-fg)}:root[data-app-theme=dark] .dnd-paper-viewer .paper-sheet-host:before,:root[data-app-theme=dark] .dnd-paper-viewer .paper-sheet-host:after{opacity:.25}:root[data-app-theme=dark] .dnd-paper-viewer .viewer-hero:before{border-top-color:#8f8cff94;background:linear-gradient(90deg,rgba(143,140,255,.16),transparent 44%),linear-gradient(180deg,rgba(240,169,189,.08),transparent 72%)}:root[data-app-theme=dark] .dnd-paper-viewer .command-row button,:root[data-app-theme=dark] .dnd-paper-viewer .viewer-hero .export-actions button{border-color:#8f8cff57;background:linear-gradient(180deg,#3e3d44fa,#2d2c31fa),#333235;color:#fffafd;box-shadow:0 2px #00000040}:root[data-app-theme=dark] .dnd-paper-viewer .command-row button:hover,:root[data-app-theme=dark] .dnd-paper-viewer .command-row button:focus-visible,:root[data-app-theme=dark] .dnd-paper-viewer .viewer-hero .export-actions button:hover,:root[data-app-theme=dark] .dnd-paper-viewer .viewer-hero .export-actions button:focus-visible{border-color:#8f8cffa3;background:linear-gradient(180deg,#4a4854fa,#37353efa),#3f3d43;color:#fffafd}:root[data-app-theme=dark] .dnd-language-picker{border-color:#8f8cff42;background:#25242794}:root[data-app-theme=dark] .dnd-language-group strong{color:var(--dnd-dark-muted)}:root[data-app-theme=dark] .dnd-language-options button{border-color:#8f8cff4d;background:linear-gradient(180deg,#3e3d44f0,#2d2c31f0),#333235;color:#fffafd}:root[data-app-theme=dark] .dnd-language-options button:hover,:root[data-app-theme=dark] .dnd-language-options button:focus-visible{border-color:#8f8cff94;background:linear-gradient(180deg,#4a4854fa,#37353efa),#3f3d43}:root[data-app-theme=dark] .dnd-language-options button.is-selected{border-color:#8f8cffb8;background:linear-gradient(135deg,#8f8cff52,#f0a9bd2e),#3b3946;color:#fffafd}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .sheet-section,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .sheet-section{border-color:#8f8cff47;background:linear-gradient(180deg,#333237fa,#28272cfa),var(--surface)}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .sheet-section h2,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .sheet-section h2{border-bottom-color:#8f8cff38;background:linear-gradient(90deg,#8f8cff2e,#f0a9bd1a),#2d2c30f0}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .sheet-section h2:before,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .sheet-section h2:before{background:linear-gradient(180deg,#8f8cff,#f0a9bd)}:root[data-app-theme=dark] .dnd-paper-viewer .sheet-kv-grid div,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .stat-box,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .ability-card,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .sheet-note,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-attack-table,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-class-table,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-spellcasting-table,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-spell-slot-summary,:root[data-app-theme=dark] .dnd-paper-editor .sheet-kv-grid div,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .stat-box,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .ability-card,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .sheet-note,:root[data-app-theme=dark] .dnd-paper-editor .dnd-attack-table,:root[data-app-theme=dark] .dnd-paper-editor .dnd-class-table,:root[data-app-theme=dark] .dnd-paper-editor .dnd-spellcasting-table,:root[data-app-theme=dark] .dnd-paper-editor .dnd-spell-slot-summary,:root[data-app-theme=dark] .dnd-paper-editor .dnd-inspiration,:root[data-app-theme=dark] .dnd-paper-editor .dnd-shield-field,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-spellbook-row,:root[data-app-theme=dark] .dnd-paper-editor .dnd-spellbook-row,:root[data-app-theme=dark] .dnd-paper-editor .dnd-spell-hover-card,:root[data-app-theme=dark] .dnd-paper-editor .dnd-load-summary>div,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-load-summary>div,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-readonly-list p,:root[data-app-theme=dark] .dnd-paper-editor .dnd-readonly-list p{border-color:#8f8cff38;background:#2d2c30eb}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-ability-values,:root[data-app-theme=dark] .dnd-paper-editor .dnd-ability-values{border-color:#8f8cff33;background:#252429b8}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-ability-values>span,:root[data-app-theme=dark] .dnd-paper-editor .dnd-ability-values>span{border-right-color:#8f8cff29;background:#252429f5}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-save-list .check-row,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-skill-row,:root[data-app-theme=dark] .dnd-paper-editor .dnd-save-list .check-row,:root[data-app-theme=dark] .dnd-paper-editor .dnd-skill-row{border-color:#8f8cff2e;background:#333237e0}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-save-list .check-row:nth-child(2n),:root[data-app-theme=dark] .dnd-paper-viewer .dnd-skill-row:nth-child(2n),:root[data-app-theme=dark] .dnd-paper-viewer .dnd-attack-row:nth-child(2n),:root[data-app-theme=dark] .dnd-paper-viewer .dnd-class-row:nth-child(2n),:root[data-app-theme=dark] .dnd-paper-viewer .dnd-feat-row:nth-child(2n),:root[data-app-theme=dark] .dnd-paper-viewer .dnd-spellcasting-row:nth-child(2n),:root[data-app-theme=dark] .dnd-paper-editor .dnd-save-list .check-row:nth-child(2n),:root[data-app-theme=dark] .dnd-paper-editor .dnd-skill-row:nth-child(2n),:root[data-app-theme=dark] .dnd-paper-editor .dnd-attack-row:nth-child(2n),:root[data-app-theme=dark] .dnd-paper-editor .dnd-class-row:nth-child(2n),:root[data-app-theme=dark] .dnd-paper-editor .dnd-feat-row:nth-child(2n),:root[data-app-theme=dark] .dnd-paper-editor .dnd-spellcasting-row:nth-child(2n){background:#28272ce6}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-attack-header,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-class-header,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-feat-header,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-spellcasting-header,:root[data-app-theme=dark] .dnd-paper-editor .dnd-attack-header,:root[data-app-theme=dark] .dnd-paper-editor .dnd-class-header,:root[data-app-theme=dark] .dnd-paper-editor .dnd-feat-header,:root[data-app-theme=dark] .dnd-paper-editor .dnd-spellcasting-header{background:#8f8cff24}:root[data-app-theme=dark] .dnd-paper-viewer .sheet-kv-grid dt,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .stat-box span,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .ability-card span,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-ability-values small,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .sheet-note h3,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-skill-legend,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-skill-row small,:root[data-app-theme=dark] .dnd-paper-editor .sheet-kv-grid dt,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .stat-box span,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .ability-card span,:root[data-app-theme=dark] .dnd-paper-editor .dnd-ability-values small,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .sheet-note h3,:root[data-app-theme=dark] .dnd-paper-editor .dnd-skill-legend,:root[data-app-theme=dark] .dnd-paper-editor .dnd-skill-row small{color:#cfc7d6}:root[data-app-theme=dark] .dnd-paper-viewer .sheet-kv-grid dd,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .stat-box strong,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .stat-box-readonly strong,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .ability-card strong,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .ability-card em,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-sheet .sheet-note p,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-save-list .check-row span,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-skill-row span,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-feat-row span,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-feat-header strong,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-save-list .check-row strong,:root[data-app-theme=dark] .dnd-paper-viewer .dnd-skill-row strong,:root[data-app-theme=dark] .dnd-paper-editor .sheet-kv-grid dd,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .stat-box strong,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .stat-box-readonly strong,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .ability-card strong,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .ability-card em,:root[data-app-theme=dark] .dnd-paper-editor .dnd-sheet .sheet-note p,:root[data-app-theme=dark] .dnd-paper-editor .dnd-save-list .check-row span,:root[data-app-theme=dark] .dnd-paper-editor .dnd-skill-row span,:root[data-app-theme=dark] .dnd-paper-editor .dnd-feat-header strong,:root[data-app-theme=dark] .dnd-paper-editor .dnd-feat-row input,:root[data-app-theme=dark] .dnd-paper-editor .dnd-feat-row button,:root[data-app-theme=dark] .dnd-paper-editor .dnd-save-list .check-row strong,:root[data-app-theme=dark] .dnd-paper-editor .dnd-skill-row strong{color:#fffafd}:root[data-app-theme=dark] .dnd-paper-editor textarea,:root[data-app-theme=dark] .dnd-paper-editor input,:root[data-app-theme=dark] .dnd-paper-editor select,:root[data-app-theme=dark] .dnd-paper-editor .dnd-ledger-row output{border-color:#c9c0cf52;background:#252429f5;color:#f7f4f8}:root[data-app-theme=dark] .dnd-spell-hover-card{border-color:#8f8cff52;background:linear-gradient(180deg,#3b3a3efa,#2d2c30fa),var(--surface);color:#fffafd;box-shadow:0 20px 48px #0000006b,inset 0 1px #ffffff0f;scrollbar-color:rgba(201,192,207,.58) rgba(37,36,41,.82)}:root[data-app-theme=dark] .dnd-spell-hover-card strong,:root[data-app-theme=dark] .dnd-spell-hover-card dd,:root[data-app-theme=dark] .dnd-spell-hover-card b{color:#fffafd}:root[data-app-theme=dark] .dnd-spell-hover-card>span,:root[data-app-theme=dark] .dnd-spell-hover-card p,:root[data-app-theme=dark] .dnd-spell-hover-card dt{color:#d9d3df}:root[data-app-theme=dark] .dnd-spell-source-badge{border-color:#7e2c369e;background:#5c182247;color:#c78087}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-license-notice,:root[data-app-theme=dark] .dnd-paper-editor .dnd-license-notice{border-color:#8f8cff2e;background:#2524298a;color:#cfc7d6}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-license-notice strong,:root[data-app-theme=dark] .dnd-paper-editor .dnd-license-notice strong{color:#fffafd}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-license-notice a,:root[data-app-theme=dark] .dnd-paper-editor .dnd-license-notice a{color:#c7c3ff}:root[data-app-theme=dark] .dnd-paper-viewer .dnd-spell-slot-summary,:root[data-app-theme=dark] .dnd-paper-editor .dnd-spell-slot-summary{border:0;background:transparent;box-shadow:none}@media(max-width:820px){:root[data-app-theme=dark] .dnd-paper-viewer .viewer-hero .export-actions{border-color:#8f8cff47;background:#2d2c30f0}}
