:root{color-scheme:dark;font:15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;background:#0a0e13;color:#e9eef2}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 80% -10%,#183a39 0,transparent 36%),radial-gradient(circle at 0 45%,#222537 0,transparent 35%),#0a0e13}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.42;cursor:not-allowed}.shell{max-width:1080px;margin:auto;padding:0 24px}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #253039}.brand{display:flex;align-items:center;gap:12px}.brand-mark{display:grid;place-items:center;background:linear-gradient(145deg,#eab877,#a56d3d);color:#141414;width:40px;height:40px;border-radius:11px;font-size:23px;font-weight:900;box-shadow:0 7px 24px #c28d4928}.brand strong,.brand small{display:block}.brand strong{font-size:17px;letter-spacing:.2px}.brand small{color:#8d9ba5;font-size:11px;letter-spacing:1.4px;text-transform:uppercase}.top-actions{display:flex;align-items:center;gap:12px}.local-pill{border:1px solid #294a40;background:#153127;color:#88d9b1;padding:5px 11px;border-radius:99px;font-size:12px}.icon-button{border:1px solid #34424a;color:#dce8e9;background:#161e26;border-radius:10px;width:35px;height:35px;font-size:23px;line-height:1}.tabs{display:flex;gap:6px;margin:26px 0 27px;border-bottom:1px solid #26323a}.tab{border:0;background:none;color:#91a0aa;padding:12px 18px;border-bottom:2px solid transparent;font-weight:650}.tab:hover{color:#e9eef2}.tab.active{color:#e8be82;border-color:#d7a468}.page{display:none}.page.active{display:block}.page-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:20px}.eyebrow{color:#c89660;font-size:11px;font-weight:800;letter-spacing:2px}.page-heading h1{font-size:32px;line-height:1.1;margin:6px 0 0;letter-spacing:-.8px}.hint,.muted{color:#91a0aa}.hint{font-size:12px}.grid{display:grid;gap:16px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.card{border:1px solid #2a3740;border-radius:17px;background:linear-gradient(160deg,#172129,#111920);padding:22px;box-shadow:0 16px 40px #0002;margin-bottom:16px}.card.accent{border-color:#3b4a43;background:linear-gradient(145deg,#192a2a,#151d22 63%)}.card-head{display:flex;align-items:center;gap:11px;margin-bottom:14px}.card h2,.section-title h2{font-size:16px;margin:0;letter-spacing:.1px}.glyph{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;font-size:17px;font-weight:700}.glyph.orange{background:#453322;color:#f1bd79}.glyph.mint{background:#1b4038;color:#80d8b4}.glyph.blue{background:#26374e;color:#a6c8ff}.report{white-space:pre-line;min-height:52px;margin:0;color:#dbe6e7;font-variant-numeric:tabular-nums}.section-title{display:flex;align-items:baseline;justify-content:space-between;margin:12px 0 13px}.section-title span{color:#7e909a;font-size:12px}.button-row{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}.primary,.secondary{min-height:39px;border-radius:10px;padding:8px 15px;font-weight:700;border:1px solid transparent}.primary{background:#deb079;color:#192024}.primary:hover:not(:disabled){background:#eac18c}.secondary{background:#22303a;border-color:#354752;color:#e3ecef}.secondary:hover:not(:disabled){background:#2c3c46}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-grid label,.inline-form label{display:flex;flex-direction:column;gap:5px;color:#9eacb5;font-size:12px;font-weight:650}.form-grid input,.form-grid select,.inline-form input,.button-row select,.selector-card select{width:100%;background:#10181e;border:1px solid #36454e;border-radius:9px;color:#e9eef2;min-height:39px;padding:7px 10px;outline:none}.form-grid input:focus,.form-grid select:focus,.inline-form input:focus,.button-row select:focus{border-color:#d9ac78}.form-grid .full{grid-column:1/-1}.inline-form{display:flex;gap:10px;align-items:end;margin-top:16px}.inline-form label{max-width:150px}.list{display:grid;gap:0}.list-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #2b3840;padding:13px 0}.list-row:first-child{border-top:0;padding-top:0}.list-row:last-child{padding-bottom:0}.list-row strong,.list-row small{display:block}.list-row small{color:#90a0aa;margin-top:3px}.list-row button{flex-shrink:0}.stage{min-height:110px}.stage-title{font-weight:800;font-size:22px;margin-bottom:4px}.stage-progress{color:#9eacb5;font-size:13px}.progress-track{height:8px;border-radius:99px;background:#36434b;overflow:hidden;margin:14px 0}.progress-fill{height:100%;background:linear-gradient(90deg,#bc8656,#efd2a5);border-radius:99px}.stage-stats{display:flex;gap:13px;flex-wrap:wrap;color:#d1dce0;font-size:13px}.big-number{font-size:31px;font-weight:800;letter-spacing:-.5px;color:#e9eef2;margin:6px 0 2px}.notice{position:fixed;bottom:20px;left:50%;transform:translate(-50%,20px);max-width:min(500px,calc(100vw - 36px));padding:11px 17px;border:1px solid #426a59;border-radius:11px;background:#19352e;color:#d9f4e5;box-shadow:0 15px 45px #0008;opacity:0;pointer-events:none;transition:.2s}.notice.visible{opacity:1;transform:translate(-50%,0)}.notice.error{border-color:#7c4441;background:#472524;color:#ffe0dd}footer{color:#687983;text-align:center;font-size:12px;padding:24px 0 38px}@media(max-width:720px){.shell{padding:0 14px}.topbar{height:65px}.tabs{margin:12px 0 22px}.tab{flex:1;padding:11px 5px;font-size:13px}.page-heading h1{font-size:27px}.hint{display:none}.grid.two{grid-template-columns:1fr}.card{padding:18px;margin-bottom:12px}.form-grid{gap:9px}.section-title span{font-size:11px}.button-row .primary,.button-row .secondary{flex:1}.list-row{align-items:flex-start}.list-row button{font-size:12px;padding:6px 9px}.local-pill{font-size:11px}}
:root{--iron:#101313;--iron-light:#1c211f;--brass:#d3a261;--paper:#e9deca;--muted:#aca99c;color:#ece4d6;background:#111412}
body{background:radial-gradient(circle at 75% -15%,#393022 0,transparent 38%),repeating-linear-gradient(135deg,#ffffff03 0 2px,transparent 2px 7px),#111412}
.shell{max-width:1200px}.topbar{border-color:#6c5b3f}.brand-mark{background:linear-gradient(145deg,#ead3a1,#b07738);border:2px solid #694b25;border-radius:4px;font-family:Georgia,serif;transform:rotate(-3deg)}
.brand strong,.page-heading h1,.guide-intro h2{font-family:Georgia,'Times New Roman',serif}.brand strong{font-size:20px;text-transform:uppercase;letter-spacing:1px}.brand small{color:#b7a68a}
.tabs{border-color:#4c4536}.tab.active{color:#f2c88e;border-color:#d3a261}.tab:hover{color:#f5e6c9}
.card{border-color:#4c4839;border-radius:7px;background:linear-gradient(155deg,#242a26,#181d1b);box-shadow:inset 0 1px #ffffff0b,0 15px 30px #0004}.card.accent{border-color:#766247;background:linear-gradient(145deg,#302a22,#202520)}
.primary{background:linear-gradient(#dfb772,#b67b3c);color:#21180d;border-color:#edca8c;border-radius:5px}.primary:hover:not(:disabled){background:#efc588}.secondary{background:#2d332f;border-color:#5b5947;border-radius:5px;color:#eee0c9}.secondary:hover:not(:disabled){background:#3b4139}
.guide-intro{position:relative;overflow:hidden;border:1px solid #87643a;border-radius:7px;background:linear-gradient(95deg,#34291f,#1c211e 75%);padding:25px 30px;margin-bottom:19px;box-shadow:inset 0 0 40px #0005}.guide-intro:after{content:'✦';position:absolute;right:35px;top:-55px;font-size:180px;color:#c99a4b16}.guide-stamp{display:inline-block;border:1px solid #ba915b;color:#f1c686;padding:2px 9px;transform:rotate(-3deg);font-size:10px;font-weight:900;letter-spacing:2px}.guide-intro h2{font-size:29px;margin:12px 0 5px}.guide-intro p{max-width:600px;color:#c5bba9;margin:0;font-size:13px}
.guide-controls{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:10px}.guide-filters{display:flex;gap:7px;flex-wrap:wrap}.guide-filter{border:1px solid #575444;border-radius:4px;background:#252c27;color:#cbbfa9;padding:9px 13px;font-weight:700}.guide-filter.active{background:#bf8e50;border-color:#f0c689;color:#1d190f}.guide-filter span{opacity:.65;margin-left:6px;font-size:12px}#guide-search{background:#202521;border:1px solid #625b48;border-radius:4px;color:#f5e7d0;padding:9px 12px;min-width:220px}.guide-source{color:#aa9f88;font-size:12px;margin:0 0 15px}.guide-layout{display:grid;grid-template-columns:minmax(210px,260px) minmax(0,1fr);gap:16px;align-items:start}.guide-list{border:1px solid #4c4839;border-radius:6px;background:#1c211e;max-height:680px;overflow:auto;padding:6px}.guide-item{display:flex;width:100%;text-align:left;align-items:center;gap:11px;background:transparent;border:1px solid transparent;border-bottom-color:#373c34;color:#efe6d7;padding:9px;border-radius:4px}.guide-item:hover,.guide-item.selected{background:#39372b;border-color:#947347}.guide-thumb{width:48px;height:48px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 3px 4px #0008)}.guide-item-name{font-weight:800}.guide-item-meta{font-size:11px;color:#aa9f88}.guide-detail{min-height:280px}.guide-detail-head{display:flex;align-items:center;gap:23px;padding-bottom:19px;border-bottom:1px solid #5c503d;margin-bottom:17px}.guide-art{width:110px;height:110px;object-fit:contain;filter:drop-shadow(0 7px 8px #0009)}.guide-detail h2{font-size:29px;font-family:Georgia,serif;margin:5px 0}.guide-fact{display:grid;grid-template-columns:145px 1fr;gap:10px;border-bottom:1px solid #353d36;padding:11px 0}.guide-fact-label{font-size:12px;color:#b5a283;text-transform:uppercase;letter-spacing:.7px;font-weight:800}.guide-fact-value{color:#ece4d6}.guide-subtitle{margin:24px 0 9px;color:#edbd7b;font-family:Georgia,serif;font-size:20px;font-weight:700}.guide-link{display:inline-block;margin-top:20px;color:#eac286;text-underline-offset:3px}.guide-description{color:#c9bda9;margin:5px 0 20px}.checkpoint-row{display:flex;gap:12px;align-items:center;border-top:1px solid #353d36;padding:10px 0}.checkpoint-icon{width:42px;height:42px;object-fit:contain}.checkpoint-name{font-weight:750}.checkpoint-meta,.checkpoint-rewards{font-size:12px;color:#b7ad9a}
@media(max-width:720px){.tabs{overflow-x:auto}.tab{flex:0 0 auto}.guide-controls{align-items:stretch;flex-direction:column}#guide-search{min-width:0;width:100%}.guide-layout{grid-template-columns:1fr}.guide-list{display:flex;overflow-x:auto;max-height:none}.guide-item{min-width:190px;border-bottom:0;border-right:1px solid #373c34}.guide-detail-head{gap:10px}.guide-art{width:75px;height:75px}.guide-detail h2{font-size:23px}.guide-fact{grid-template-columns:110px 1fr}}
.boss-groups{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.boss-group{background:#1e2621;border:1px solid #625840;color:#cbbba1;padding:7px 11px;border-radius:4px}.boss-group.active{background:#645039;color:#ffe2af;border-color:#c49556}[hidden]{display:none!important}
.guide-actions{border:1px solid #80633f;border-radius:5px;background:linear-gradient(145deg,#382e21,#242b25);padding:17px;margin:12px 0 21px;box-shadow:inset 0 1px #ffffff10}.guide-action-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0}.guide-actions label{display:flex;flex-direction:column;gap:5px;color:#cabca4;font-size:12px;font-weight:700}.guide-actions input,.guide-actions select{width:100%;min-height:37px;border:1px solid #6d634e;border-radius:4px;background:#171d1a;color:#f1e7d4;padding:7px 10px}.guide-action-note{font-size:12px;color:#c4b294;margin-top:11px}.guide-actions .button-row{margin-top:12px}.guide-actions .button-row button{flex:1 1 140px}
@media(max-width:720px){.guide-action-fields{grid-template-columns:1fr 1fr}.boss-groups{flex-wrap:nowrap;overflow-x:auto}.boss-group{flex:0 0 auto;font-size:12px}}
.battle-stepper{display:flex;align-items:stretch;gap:6px}.battle-stepper input{min-width:0;text-align:center;flex:1}.battle-stepper button{min-width:37px;padding:4px 8px;font-size:19px;line-height:1}.guide-combo{margin:14px 0;padding:14px;border:1px solid #746044;border-radius:5px;background:#181e1b}.guide-combo label{margin-top:10px}
.battle-stepper input[type=number]{appearance:textfield}.battle-stepper input::-webkit-inner-spin-button,.battle-stepper input::-webkit-outer-spin-button{appearance:none;margin:0}
.boss-control-grid .card{height:100%}.boss-control-grid{margin-bottom:22px}.queue-count{font:700 12px system-ui,sans-serif;color:#deb079;margin-left:6px}.queue-items{min-height:66px;max-height:260px;overflow:auto}.queue-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #454638}.queue-row:last-child{border-bottom:0}.queue-name{font-weight:800}.queue-meta{color:#ada18b;font-size:12px}.queue-row button{font-size:12px;min-height:31px;padding:5px 9px}.queue-run-label{display:block;color:#cabca4;font-size:12px;font-weight:700;margin-top:15px}.queue-run-label select{display:block;width:100%;min-height:39px;margin-top:6px;border:1px solid #6d634e;border-radius:4px;background:#171d1a;color:#f1e7d4;padding:7px 10px}#boss-search{background:#202521;border:1px solid #625b48;border-radius:4px;color:#f5e7d0;padding:9px 12px;min-width:220px}@media(max-width:720px){#boss-search{min-width:0;width:100%}.boss-control-grid .card{height:auto}}
.queue-items{max-height:390px}.queue-row{flex-wrap:wrap}.queue-copy{min-width:150px;flex:1}.queue-row-controls{display:flex;gap:5px;flex-wrap:wrap}.queue-row-controls button{padding:4px 7px}.queue-active{color:#88d9b1;font-size:11px;font-weight:800}.queue-editor{width:100%;padding:12px;border:1px solid #665338;background:#1b211c;border-radius:5px}.queue-editor .guide-action-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.queue-presets{margin-top:18px;padding-top:8px;border-top:1px solid #5c503d}.queue-presets .section-title{align-items:center}.queue-presets .section-title button{min-height:31px}.queue-preset-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #454638;padding:9px 0}@media(max-width:720px){.queue-editor .guide-action-fields{grid-template-columns:1fr}.queue-preset-row{align-items:flex-start;flex-direction:column}}
.boss-history summary{cursor:pointer;font-family:Georgia,serif;font-size:18px;font-weight:700;color:#e9cfab}.queue-history{max-height:300px;overflow:auto}.queue-history-row{border-top:1px solid #454638;padding:8px 0;color:#d4c6ae;font-size:13px}
.queue-options{border-top:1px solid #5c503d;padding-top:12px;margin-top:15px}.queue-options summary{cursor:pointer;color:#e9cfab;font-weight:800}.queue-options label{display:flex;align-items:flex-start;gap:8px;margin-top:12px;color:#c9bda9;font-size:12px}.queue-options input{accent-color:#c79659;margin-top:3px}
.boss-hp{display:flex;align-items:center;gap:12px;margin:13px 0 17px}.boss-hp-bar{position:relative;flex:1;min-width:0;height:31px;overflow:hidden;border:1px solid #805f42;border-radius:8px;background:#442923}.boss-hp-fill{height:100%;background:linear-gradient(90deg,#a54436,#e39755);transition:width .3s}.boss-hp-numbers{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:13px;font-weight:800;font-variant-numeric:tabular-nums;text-shadow:0 1px 3px #000,0 0 5px #000}.boss-hp-percent{min-width:45px;text-align:right;color:#edbe84;font-size:16px;font-variant-numeric:tabular-nums}.manual-hits{margin-top:19px;padding-top:16px;border-top:1px solid #5c503d}.manual-hits-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.manual-hits-head strong{font-family:Georgia,serif;color:#e9cfab}.manual-hits-head button{min-height:34px}.manual-hit-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.manual-hit-buttons button{padding:8px 5px}.manual-hits .guide-action-note{margin:10px 0 0}@media(max-width:720px){.manual-hits-head{align-items:flex-start}.manual-hit-buttons{gap:5px}.manual-hit-buttons button{font-size:12px}.boss-hp-numbers{font-size:11px}}
.boss-current{border-color:#806747;background:radial-gradient(circle at 95% 0,#5a412657,transparent 45%),linear-gradient(145deg,#2a2d25,#181d1b)}.boss-current .card-head{margin-bottom:18px}.boss-state{margin-left:auto;border:1px solid #6b6353;border-radius:99px;padding:4px 10px;color:#c9bda8;font-size:12px;font-weight:800}.boss-state.active{border-color:#527d64;color:#a8e5bf;background:#203b2c}.boss-state.reward{border-color:#aa8246;color:#f5d39a;background:#493922}.boss-current-main{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.boss-current-name{margin:0;color:#f3d8ad;font:700 clamp(24px,4vw,38px)/1.1 Georgia,serif}.boss-current-mode,.boss-current-combo{margin:8px 0 0;color:#d5c7ae;font-weight:650}.boss-current-combo{color:#e6ba75}.boss-wins{margin:0;padding:8px 12px;border:1px solid #6b5a3f;border-radius:5px;color:#e8c88f;white-space:nowrap;font-size:13px;font-weight:800}.boss-current #auto-status{margin:18px 0 0;font-size:12px}.boss-queue .queue-items{max-height:440px}.boss-catalog .guide-layout{grid-template-columns:minmax(210px,280px) minmax(0,1fr)}.boss-catalog .guide-detail{padding:4px 8px 4px 16px;min-height:280px}.boss-catalog .guide-controls{margin-top:4px}.boss-history summary{font:800 13px system-ui,sans-serif}.boss-queue .queue-presets{margin-top:12px}.boss-queue .queue-options:last-child{margin-bottom:0}@media(max-width:720px){.boss-current-main{display:block}.boss-wins{display:inline-block;margin-top:15px}.boss-catalog .guide-layout{grid-template-columns:1fr}.boss-catalog .guide-detail{padding:14px 2px}.boss-state{font-size:11px}}
.boss-catalog .boss-portrait-tall{object-fit:cover;object-position:center bottom}
.manual-weapons{display:grid;gap:9px;margin-top:12px}.manual-weapon{border:1px solid #5c503d;border-radius:6px;background:#1b211d;overflow:hidden}.manual-weapon-toggle{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:0;border-radius:0;padding:9px 12px}.manual-weapon-icon{width:42px;height:42px;object-fit:cover;border:1px solid #8c6948;border-radius:4px}.manual-weapon-name{font-weight:800;flex:1}.manual-weapon-stock{color:#d5c2a1;font-size:12px}.manual-weapon-arrow{color:#e3b979;font-size:18px}.manual-weapon-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px;border-top:1px solid #5c503d}.manual-hit-option{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:60px;text-align:left;padding:6px}.manual-hit-icon{width:38px;height:38px;object-fit:cover;border-radius:3px}.manual-hit-name{font-size:11px;line-height:1.2}.manual-hit-count{color:#eac188;font-weight:900;font-variant-numeric:tabular-nums}@media(max-width:720px){.manual-weapon-options{grid-template-columns:repeat(2,minmax(0,1fr))}.manual-hit-option{grid-template-columns:32px minmax(0,1fr);gap:5px}.manual-hit-icon{width:32px;height:32px}.manual-hit-count{grid-column:2}.manual-weapon-stock{font-size:11px}}
.manual-crit-info{grid-column:1/-1;color:#d5c2a1;font-size:12px;padding:3px 2px 7px}.last-hit{padding:10px 12px;margin:12px 0;border:1px solid #5c503d;border-radius:6px;color:#d5c2a1;font-variant-numeric:tabular-nums}.last-hit.critical{border-color:#e3a54b;color:#ffd28a;background:#44331f;font-weight:800}

.battle-info{margin:18px 0;display:grid;gap:14px}.personal-damage{padding:14px 18px;border:1px solid #a88b50;border-radius:12px;background:linear-gradient(115deg,#33281b,#1e1b16)}.personal-damage-number{font-size:30px;font-weight:800;color:#f5cf7f;font-variant-numeric:tabular-nums}.battle-section-title{font-weight:700;color:#e8d8b4}.battle-person{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px 12px;border-bottom:1px solid #ffffff12;font-size:14px}.battle-person.self{background:#b58f3724;border:1px solid #a88b50;border-radius:8px}.battle-rank{color:#b7a98e}.battle-person-name{overflow-wrap:anywhere}.battle-person-damage{font-weight:700;font-variant-numeric:tabular-nums;color:#f4dfad}.battle-leaders{border:1px solid #ffffff18;border-radius:9px;overflow:hidden}.battle-info details summary{cursor:pointer;padding:10px 0;color:#d6bf8e}.battle-info details[open] .battle-leaders{max-height:420px;overflow:auto}.damage-rewards{display:grid;gap:9px;padding:14px;border:1px solid #ffffff18;border-radius:10px;background:#0000001a}.damage-next{color:#f3cf82;font-weight:700}.damage-progress{position:relative;height:28px;background:#171b18;border:1px solid #776341;border-radius:7px;overflow:hidden}.damage-progress-fill{height:100%;background:linear-gradient(90deg,#72632e,#b09b4b)}.damage-progress-text{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-weight:700;font-size:13px;text-shadow:0 1px 3px #000}.damage-milestones{display:grid;gap:6px;max-height:180px;overflow:auto}.damage-milestone{font-size:13px;color:#c6baa4}.damage-milestone.reached{color:#a8d497}


@media(min-width:760px){.battle-info{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}.battle-info>.personal-damage{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between}.battle-info>.damage-rewards{grid-column:1;grid-row:2/5}.battle-info>.battle-section-title{grid-column:2;grid-row:2}.battle-info>.battle-leaders{grid-column:2;grid-row:3}.battle-info>details{grid-column:2;grid-row:4}}

#game-info-dialog{width:min(850px,94vw);max-height:88vh;overflow:auto;border:1px solid #a88954;border-radius:14px;background:#24241d;color:#eee1c8;padding:24px}#game-info-dialog::backdrop{background:#000a}#game-info-dialog h2{margin-top:0}.info-dialog-content{display:grid;gap:10px;margin-bottom:20px}.reward-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(95px,1fr));gap:10px}.reward-item{padding:8px;background:#131912;border:1px solid #55513e;border-radius:8px;text-align:center}.reward-item.owned{border-color:#79a769;background:#293b25}.reward-item-image{width:100%;height:105px;object-fit:contain}.reward-image-button{padding:0;background:none;border:0;width:100%}.reward-owned{font-size:12px;color:#c7bca4}.reward-item.owned .reward-owned{color:#b4dfa2}.reward-preview-large{width:100%;max-height:65vh;object-fit:contain}.reward-set-description{white-space:pre-line;padding:12px;border:1px solid #706040;border-radius:8px}.battle-person-link{display:flex;align-items:center;gap:9px;min-width:0;background:none;border:0;color:inherit;text-align:left;padding:0}.battle-avatar{width:32px;height:32px;object-fit:cover;border-radius:50%;flex-shrink:0}.profile-avatar{width:80px;height:80px;object-fit:cover;border-radius:50%}
.victory-resources{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}.victory-resource{padding:18px;border:1px solid #927747;background:linear-gradient(135deg,#3c3321,#222018);border-radius:8px;color:#f4d68e;white-space:pre-line;font-size:18px}.victory-portrait{height:150px;max-width:100%;object-fit:contain;justify-self:center}.victory-history{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.victory-history>.battle-section-title{width:100%}.achievement-controls{display:grid;gap:10px}.achievement-list{display:grid;gap:8px}.achievement-card{display:flex;align-items:center;gap:14px;padding:12px;border:1px solid #5a503a;background:#1b1d18;border-radius:8px}.achievement-card.owned{border-color:#64885b;background:#263222}.achievement-icon{width:64px;height:64px;object-fit:contain;flex-shrink:0}.achievement-copy{display:grid;gap:5px}
.victory-dialog .info-dialog-content{gap:6px}.victory-dialog .victory-portrait{height:100px}.victory-dialog .guide-subtitle{margin:8px 0 3px;font-size:19px}.victory-dialog .victory-resource{padding:12px;font-size:16px}
.boss-mode-table { border: 1px solid var(--border, #514b3e); border-radius: 12px; overflow: hidden; }
.boss-mode-row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(190px, 1.5fr) minmax(110px, .8fr); gap: 16px; padding: 16px; border-bottom: 1px solid #514b3e; align-items: start; }
.boss-mode-row:last-child { border-bottom: 0; }
.boss-mode-header { font-size: 12px; text-transform: uppercase; color: #d6bc79; background: #29271f; }
.boss-mode-name { font-weight: 700; text-transform: capitalize; }
.mode-reward-summary, .boss-sets-cell { display: grid; gap: 6px; }
.reward-chip { color: #e6d6aa; font-weight: 600; }
.mode-set-name { color: #d9b85c; font-size: 13px; }
.mode-collection summary { cursor: pointer; color: #e5c474; padding: 8px 0; }
.mode-collection[open] { grid-column: 1 / -1; }
.mode-collection-body { padding-top: 12px; }
.boss-sets-table { display: grid; gap: 0; }
.boss-sets-row { display: grid; grid-template-columns: minmax(90px, .65fr) 1fr 1fr; gap: 16px; padding: 14px; border-bottom: 1px solid #514b3e; }
.boss-sets-row.selected { background: #d8b66512; box-shadow: inset 3px 0 #d8b665; }
.boss-sets-cell progress { width: 100%; height: 7px; accent-color: #c8aa55; }
.set-count { font-weight: 700; }
@media (max-width: 600px) {
  .boss-mode-header { display: none; }
  .boss-mode-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mode-collection { grid-column: 1 / -1; }
  .boss-sets-row { gap: 8px; padding: 12px 4px; grid-template-columns: 70px 1fr 1fr; font-size: 12px; }
}
.boss-sets-cell .muted { font-size: 12px; line-height: 1.35; }
.boss-mode-name { text-transform: none; }
.mode-collection[open] { display: contents; }
.mode-collection[open] > summary { grid-column: 3; }
.mode-collection-body { grid-column: 1 / -1; }
@media (max-width: 600px) { .mode-collection[open] > summary { grid-column: 1 / -1; } }
.dialog-header { position: sticky; top: -24px; z-index: 5; display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; background: #24241d; padding: 16px 0 10px; }
.dialog-header h2 { margin: 0; }
.dialog-close { flex: 0 0 36px; height: 36px; font-size: 26px; line-height: 1; border: 1px solid #a88954; border-radius: 8px; color: #eee1c8; background: #353127; }
.mode-rewards-button { justify-self: start; }
.damage-options { display: grid; gap: 10px; padding: 12px; border: 1px solid #706040; border-radius: 8px; }
.damage-options input[type=range] { width: 100%; }
.battle-special { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.finish-flags { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.damage-choice { display: grid; gap: 8px; }
.damage-choice-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.damage-choice-buttons[hidden] { display: none; }
.damage-choice-button { padding: 9px 14px; border: 1px solid #706040; border-radius: 8px; color: #eee1c8; background: #24241d; }
.damage-choice-button .muted { font-size: 11px; margin-top: 3px; }
.damage-choice-button.selected { border-color: #d4b45c; background: #675326; }
.damage-segment-bar { display: flex; gap: 3px; margin: 8px 0; }
.damage-segment { position: relative; flex: 1; height: 28px; overflow: hidden; background: #151b15; border: 1px solid #6c603f; border-radius: 5px; }
.damage-segment-fill { position: absolute; inset: 0 auto 0 0; background: #8d7637; }
.damage-segment.reached .damage-segment-fill { background: #466d35; }
.damage-segment-caption { position: relative; text-align: center; line-height: 26px; font-size: 12px; color: #fff2d6; }
.guide-actions .damage-choice label,.guide-actions .finish-flags label{flex-direction:row;align-items:center;gap:8px}.guide-actions input[type="checkbox"]{width:18px;min-height:18px;height:18px;padding:0;flex:none;accent-color:#d4b45c}
.reward-setting { display:flex; align-items:center; gap:10px; margin:14px 0; }
.reward-setting input { width:18px; height:18px; min-height:18px; accent-color:#d4b45c; }
.collection-tile { display:inline-grid; grid-template-columns:42px auto; align-items:center; gap:6px 10px; padding:8px; margin:3px; min-width:110px; border:1px solid var(--collection-color); border-radius:8px; color:var(--collection-color); background:#161d17; }
.collection-icon { width:42px; height:42px; object-fit:contain; text-align:center; font-size:30px; }
.collection-count { font-weight:700; font-variant-numeric:tabular-nums; }
.collection-track { grid-column:1 / -1; height:5px; background:#343932; border-radius:5px; overflow:hidden; }
.collection-fill { height:100%; background:var(--collection-color); }
.reward-item.missing { border-color:#e76860; }
.reward-item.owned .reward-owned { color:#42ef65; }
.reward-item.missing .reward-owned { color:#e76860; }
.biceps-button { padding:4px; min-width:44px; background:#273724; border-color:#678c4a; }
.biceps-icon { width:38px; height:38px; object-fit:contain; }
.battle-leader .biceps-button { margin-left:auto; }
.collection-tile { grid-template-columns:24px minmax(0,1fr); min-width:0; max-width:100%; gap:5px 8px; padding:8px 10px; }
.collection-icon { width:24px; height:24px; align-self:start; }
.collection-text { min-width:0; }
.collection-name { color:#eedfc4; font-size:13px; font-weight:600; overflow-wrap:anywhere; }
.collection-count { font-size:12px; margin-top:3px; }
.collection-bonus { color:#c4ba9f; font-size:12px; line-height:1.4; margin-top:4px; white-space:pre-line; }
.boss-reward-layout { display:grid; gap:12px; }
.boss-base-reward { padding:12px; background:#29271f; border:1px solid #685b3b; border-radius:10px; }
.boss-resource-line { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.boss-hp-list { border:1px solid #514b3e; border-radius:10px; overflow:hidden; }
.boss-hp-row { display:grid; grid-template-columns:minmax(110px,.8fr) minmax(0,2fr) auto; align-items:start; gap:12px; padding:12px; border-bottom:1px solid #514b3e; }
.boss-hp-row:last-child { border-bottom:0; }
.boss-health-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:11px 14px; border-bottom:1px solid #514b3e; }
.boss-health-row:last-child { border-bottom:0; }
.boss-health-number { color:#ebc57f; font-weight:700; font-variant-numeric:tabular-nums; white-space:nowrap; }
.boss-collections-button { margin-top:12px; }
.boss-combo-rewards { display:grid; gap:10px; }
.boss-combo-card { display:grid; gap:8px; padding:12px; border:1px solid #514b3e; border-radius:10px; background:#252820; }
.reward-gallery .reward-item { position:relative; background:radial-gradient(ellipse at center,#403823 0,#1a1d16 80%); border-radius:5px; box-shadow:inset 0 0 0 3px #0f130f,0 3px 8px #0005; padding:10px 8px 8px; }
.reward-gallery .reward-item.owned { border-color:#7da45e; }
.reward-gallery .reward-item.missing { border-color:#a35e4e; }
.reward-gallery .reward-item-image { height:118px; filter:drop-shadow(0 3px 3px #0008); }
.reward-caption { font-size:11px; color:#d9c7a3; line-height:1.3; margin-top:5px; overflow-wrap:anywhere; }
.reward-gallery .reward-owned { position:absolute; right:7px; top:5px; padding:0 4px; border-radius:3px; background:#121811dd; }
.house-gallery { grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
.house-gallery .reward-item-image { height:180px; }
#game-preview-dialog { width:min(680px,92vw); max-height:84vh; overflow:auto; padding:20px; border:1px solid #b79b65; border-radius:14px; background:#24241d; color:#eee1c8; }
#game-preview-dialog::backdrop { background:#0009; }
.boss-card-name { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
.boss-card-daily { font-size:12px; font-weight:700; color:#e7c67d; white-space:nowrap; }
.boss-danger { position:relative; width:92px; height:24px; margin:3px 0; }
.boss-danger-image { position:absolute; left:34px; top:-33px; width:24px; height:90px; object-fit:contain; transform:rotate(90deg); filter:brightness(2); }
.boss-medal { position:relative; flex:none; width:42px; height:46px; align-self:center; }
.boss-medal-image { width:42px; height:42px; object-fit:contain; }
.boss-medal.unearned .boss-medal-image { filter:grayscale(1); opacity:.35; }
.boss-medal-count { position:absolute; bottom:0; left:50%; transform:translateX(-50%); min-width:28px; padding:0 3px; background:#151912e8; border:1px solid #7d6942; border-radius:4px; color:#f1d190; font-size:11px; line-height:16px; text-align:center; }
#boss-list .guide-item-copy { flex:1; min-width:110px; }
#boss-list .guide-item { gap:8px; }
.boss-key-access { display:grid; gap:5px; font-size:13px; }
.boss-key-count { color:#e7c67d; font-weight:700; }
.keychain { color:#b8afa0; }
.keychain.unlocked { color:#a4d477; }
.boss-mode-choices { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; }
.boss-mode-choices.has-combo { grid-template-columns:repeat(2,minmax(0,1fr)); }
.boss-choice-column { display:flex; flex-direction:column; gap:8px; min-width:0; }
.boss-choice-column > button { margin-top:auto; width:100%; }
.boss-choice-column > .muted { font-size:11px; min-height:2.8em; }
.choice-rows { display:grid; gap:6px; }
.choice-row { display:flex; flex-direction:column; align-items:flex-start; gap:3px; padding:10px; min-width:0; width:100%; border:1px solid #5b5544; border-radius:8px; background:#252820; color:#e9dec6; text-align:left; }
.choice-row.selected { border-color:#bba05a; background:#48412b; box-shadow:inset 3px 0 #d1b570; }
.choice-row:disabled { opacity:.45; cursor:not-allowed; }
.choice-row:focus-visible { outline:2px solid #e3c880; outline-offset:2px; }
.choice-title { font-weight:700; font-size:13px; }
.choice-hint { color:#cdbf9f; font-size:12px; }
.weapon-choices { grid-template-columns:repeat(3,minmax(0,1fr)); }
.weapon-choices .choice-row { align-items:center; text-align:center; padding:8px 4px; }
.choice-weapon-icon { width:38px; height:38px; object-fit:contain; border-radius:6px; }
.boss-heading-row { display:flex; flex-wrap:wrap; align-items:center; gap:8px; width:100%; }
.boss-heading-row h2 { flex:1; }
.boss-heading-row h2 { margin:0; }
.boss-heading-row > button { flex:none; padding:8px 12px; }
.guide-detail-heading { flex:1; min-width:0; }
.boss-key-count { display:flex; align-items:center; gap:7px; }
.boss-key-icon { width:25px; height:28px; object-fit:contain; }
.combo-progress { display:flex; align-items:center; gap:5px; font-size:11px; color:#b8afa0; }
.combo-progress.bronze { color:#da9864; }
.combo-progress.silver { color:#d3dce5; }
.combo-progress.gold { color:#f4d16d; }
.combo-medal-icon { width:20px; height:20px; object-fit:contain; }
.choice-row.combo-risk { border-color:#b86250; background:#412922; }
.choice-row.combo-risk.selected { border-color:#ee9580; box-shadow:inset 3px 0 #ee9580; }
.combo-budget,.combo-warning { grid-column:1 / -1; }
.combo-budget:empty { display:none; }
.combo-budget { display:grid; gap:8px; padding:12px; border:1px solid #5b5544; border-radius:8px; background:#20271f; }
.combo-expenses { display:flex; flex-wrap:wrap; gap:10px; }
.combo-expense { display:grid; grid-template-columns:28px auto; align-items:center; gap:4px 6px; font-weight:700; }
.combo-expense .muted { grid-column:1 / -1; font-size:11px; font-weight:400; }
.combo-resource-icon { width:28px; height:28px; object-fit:contain; border-radius:4px; }
.combo-price { display:flex; align-items:center; gap:8px; font-size:13px; }
.combo-warning { color:#ffc6b9; background:#482922; border:1px solid #b86250; border-radius:8px; padding:10px; font-size:13px; }
.mode-collection-chips { display:flex; flex-wrap:wrap; gap:6px 9px; }
.mode-collection-chip { display:flex; align-items:center; gap:4px; font-size:12px; font-weight:700; }
.mode-collection-icon { width:21px; height:21px; object-fit:contain; }
.boss-choice-column .choice-row { flex-direction:row; align-items:center; gap:7px; flex-wrap:nowrap; overflow-x:auto; padding:8px; }
.boss-choice-column .choice-title { flex:none; white-space:nowrap; font-size:12px; }
.boss-choice-column .choice-hint { flex:1; white-space:nowrap; font-size:11px; }
.boss-choice-column .mode-collection-chips { flex-wrap:nowrap; flex:none; }
.boss-choice-column .mode-collection-chip { font-size:11px; white-space:nowrap; gap:2px; }
.boss-choice-column .mode-collection-icon { width:17px; height:17px; }
.boss-choice-column .combo-progress { flex:none; white-space:nowrap; gap:3px; }
.boss-choice-column .combo-medal-icon { width:16px; height:16px; }
.help-disclosure { font-size:12px; color:#b8afa0; }
.help-disclosure > summary { display:inline-grid; place-items:center; width:24px; height:24px; border:1px solid #857451; border-radius:50%; color:#efcf88; cursor:pointer; list-style:none; font-weight:700; }
.help-disclosure > summary::-webkit-details-marker { display:none; }
.help-disclosure[open] > :not(summary) { margin-top:8px; }
.victory-leader { display:grid; grid-template-columns:30px minmax(0,1fr) auto 36px; align-items:center; gap:7px; padding:7px 0; }
.victory-leader .battle-avatar,.battle-avatar-placeholder { width:30px; height:30px; object-fit:cover; border-radius:50%; }
.victory-leader-name { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:13px; }
.victory-leader-damage { white-space:nowrap; font-size:12px; }
.victory-leader .biceps-button { min-width:32px; padding:2px; margin:0; }
.victory-leader .biceps-icon { width:28px; height:28px; }
@media(max-width:720px) {
  .boss-mode-choices.has-combo { grid-template-columns:minmax(0,1fr); }
  .boss-choice-column .choice-row { gap:3px; padding:7px 5px; }
  .boss-choice-column .choice-title { font-size:11px; }
  .boss-choice-column .choice-hint { font-size:9px; }
  .boss-choice-column .mode-collection-chip { font-size:10px; }
  .boss-choice-column .mode-collection-icon { width:14px; height:14px; }
  .boss-choice-column .combo-progress { font-size:10px; gap:2px; }
  .boss-choice-column .combo-medal-icon { width:14px; height:14px; }
  #boss-detail .guide-detail-head { flex-wrap:wrap; gap:10px; }
  #boss-detail .guide-detail-heading { flex-basis:100%; }
  .boss-heading-row h2 { flex-basis:100%; }
  .boss-heading-row > button { flex:1; padding:8px 5px; font-size:11px; }
}
.weapon-choices .choice-hint { display:none; }
@media(max-width:720px) { #boss-list .guide-item { min-width:250px; } }
.combo-reward-row { background:#252820; }
.farm-totals { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:10px 0; }
.victory-history { display:grid; gap:8px; }
.farm-total { display:grid; justify-items:center; gap:3px; padding:8px 4px; border:1px solid #ffffff18; border-radius:8px; font-variant-numeric:tabular-nums; }
.farm-total .muted { font-size:10px; white-space:nowrap; }
.farm-gain { color:#a8dd71; font-weight:700; }
.farm-loss { color:#e76860; font-weight:700; }
.victory-history > details { border-top:1px solid #ffffff18; padding:10px 0; }
.victory-history summary { cursor:pointer; color:#dfc488; }
.victory-history details details { padding:8px 12px; }
.victory-history details > button { margin:4px 0; }
.biceps-button:disabled { opacity:.4; cursor:default; }
@media(max-width:600px) {
  .boss-hp-row { grid-template-columns:minmax(0,1fr) auto; gap:8px; }
  .boss-hp-row .mode-reward-summary { grid-column:1 / -1; grid-row:2; }
  .collection-tile { display:grid; margin:3px 0; }
  .boss-sets-row { grid-template-columns:minmax(0,1fr); gap:6px; padding:8px; }
  .boss-sets-cell::before { content:attr(data-scope); color:#d6bc79; font-size:12px; }
  .boss-sets-row.boss-mode-header { display:none; }
  .boss-sets-cell .collection-tile { grid-template-columns:20px minmax(0,1fr); padding:6px; gap:4px; }
  .boss-sets-cell .collection-icon { width:20px; height:20px; }
  .boss-sets-cell .collection-name,.boss-sets-cell .collection-bonus { font-size:11px; }
}

.boss-keychain-icon{width:26px;height:26px;object-fit:contain}.keychain{display:inline-flex;align-items:center;gap:5px}.statistics-dialog-list{display:flex;flex-direction:column;gap:8px}.statistics-dialog-list>button{text-align:left;width:100%}.battle-stepper button{touch-action:none;user-select:none}

.resource-reward-row{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid #544e3c;border-radius:6px;min-width:0}.resource-reward-icon{width:30px;height:30px;object-fit:contain;flex-shrink:0}.resource-reward-name{flex:1;min-width:0}.resource-reward-amount{font-weight:700;color:#a8dd71;white-space:nowrap}.current-queue-controls{margin-bottom:12px}.victory-resources{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}

.random-drop-title{display:flex;align-items:baseline;gap:10px;margin:10px 0}.boss-statistics-summary{display:grid;gap:6px}

.social-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:10px}.social-card{display:flex;align-items:center;gap:12px;text-align:left;padding:12px}.social-card-copy{display:grid;gap:5px;min-width:0}.social-card-name{font-size:17px;font-weight:700}.social-members{display:grid;gap:6px}.social-member{text-align:left}.profile-list-avatar{width:50px;height:50px;object-fit:cover;border-radius:50%}.profile-name{font-size:24px;font-weight:700}.profile-achievements{display:grid;grid-template-columns:1fr 1fr;gap:8px}.profile-stat{background:#2c3027;border-radius:6px;padding:10px}.profile-house{display:flex;align-items:center;gap:8px;align-self:flex-start}.interaction-icon{width:30px;height:30px;object-fit:contain}.profile-interactions button{display:flex;align-items:center;gap:6px}.guild-emblem{position:relative;width:64px;height:76px;flex:none}.guild-emblem>img,.guild-emblem>span{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.guild-emblem-texture{mask-size:contain;mask-position:center;mask-repeat:no-repeat}.guild-emblem-icon{mask-size:contain;mask-position:center;mask-repeat:no-repeat;transform:translateY(-3px)}.victory-items{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.victory-item{display:grid;grid-template-columns:1fr auto;align-content:start;text-align:center}.victory-item .resource-reward-icon{grid-column:1/-1;width:100%;height:220px;object-fit:contain}.victory-item .item-bonus{grid-column:1/-1;color:#b6df8b;font-size:13px}.reward-gallery .reward-item-image{width:100%;height:180px;object-fit:contain}.guild-message{white-space:pre-wrap;padding:10px;border:1px solid #6a5c43;border-radius:6px}
@media(max-width:600px){.victory-items{display:flex;flex-direction:column}.victory-item{display:flex;flex-wrap:wrap;text-align:left}.victory-item .resource-reward-icon{width:42px;height:42px}.victory-item .item-bonus{flex-basis:100%}.reward-gallery .reward-item-image{height:70px}.profile-achievements{grid-template-columns:1fr}.social-list{grid-template-columns:1fr}}

.guild-emblem{mask-image:var(--emblem-pattern);mask-size:contain;mask-position:center;mask-repeat:no-repeat}.vorkuta-mobile{display:none}
@media(max-width:600px){.vorkuta-mobile{display:block}.vorkuta-desktop{display:none}}
.guild-emblem>div{position:absolute;inset:0;width:100%;height:100%}.social-card,.social-member{background:#2b2c25;border:1px solid #60533b;color:#e8dfca;border-radius:8px}.social-card:hover,.social-member:hover{background:#36392d}.social-member{padding:9px 12px}.reward-item .item-bonus{font-size:12px;color:#b6df8b}
#social .guide-filters button,#social input{background:#2b2c25;border:1px solid #60533b;color:#e8dfca;border-radius:6px;padding:8px 12px}#social .guide-filters button.active{border-color:#cfad64;color:#ffe3a4}#social input{flex:1;min-width:160px}.victory-item>details{grid-column:1/-1}

.reward-item.missing .item-bonus,.reward-item.missing .reward-caption{color:#e76860}.reward-item.owned .item-bonus{color:#42ef65}.received-bonus-total{color:#b6df8b;font-weight:700}.received-group summary{cursor:pointer;padding:12px;border:1px solid #60533b;border-radius:8px;color:#e8dfca}.received-group[open] summary{margin-bottom:10px}.received-items-many{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.received-items-many .resource-reward-icon{height:160px}
@media(max-width:600px){.received-items-many .resource-reward-icon{height:42px}.received-rewards{min-width:0}}

.received-compact-list{display:grid;gap:8px}.compact-reward{display:grid;grid-template-columns:30px minmax(0,1fr) auto auto;gap:10px;text-align:left}.compact-reward .resource-reward-icon{width:30px;height:30px}.compact-reward .item-bonus{color:#b6df8b;font-size:12px}.received-group>summary{padding:0;list-style:none}.received-group>summary .resource-reward-row{border:0;display:grid;grid-template-columns:30px minmax(0,1fr) auto auto;gap:10px}.received-group>summary .item-bonus{font-size:12px;color:#b6df8b}.received-group>summary .resource-reward-name::after{content:' ▾';color:#bba16d}.received-group[open]>summary .resource-reward-name::after{content:' ▴'}
.player-profile-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.player-profile-identity{display:flex;align-items:center;gap:14px;min-width:0}.player-profile-guild{display:grid;justify-items:center;gap:5px;max-width:180px;background:none;border:0;color:#e8dfca;padding:8px}.player-profile-guild .guild-emblem{width:58px;height:66px}.player-profile-guild:hover{background:#36392d;border-radius:8px}.player-achievement{display:flex;gap:10px;align-items:center;padding:10px;background:#2c3027;border-radius:8px}.player-achievement-icon{width:32px;height:32px;object-fit:contain;flex:none}.player-achievement-copy{display:grid;gap:4px}.player-achievement-name{font-weight:700}.profile-house{background:none;border:1px solid #60533b;padding:8px;border-radius:8px}.profile-house-icon{width:48px;height:48px;object-fit:contain}
@media(max-width:600px){.compact-reward,.received-group>summary .resource-reward-row{grid-template-columns:30px minmax(0,1fr) auto}.compact-reward .item-bonus,.received-group>summary .item-bonus{grid-column:2/-1}.player-profile-identity{display:grid;gap:8px}.player-profile-heading .profile-name{font-size:19px}.player-profile-guild{max-width:120px;font-size:12px}.damage-track-threshold{font-size:10px}.player-achievement-icon{width:28px;height:28px}}
.profile-house{justify-self:start}.player-profile-heading .profile-name{overflow-wrap:anywhere}.received-group>summary::-webkit-details-marker{display:none}

.player-achievement.confirmed{border:1px solid #486445}.achievement-value{font-weight:700;color:#a8dd71;line-height:1.5}.profile-house-thumbnail{width:100px;height:70px;object-fit:contain;border-radius:5px}.profile-house{padding:5px;background:#18201a;border-color:#50613d}
@media(max-width:600px){.profile-house-thumbnail{width:86px;height:60px}.damage-track{margin-inline:18px}.damage-track-badge{font-size:10px}.damage-track-icon{width:22px;height:22px}}
.profile-portrait{display:grid;justify-items:center;gap:8px;max-width:180px;flex:none}.profile-status{font-size:12px;line-height:1.4;color:#c3c5b6;background:#ffffff05;border-left:2px solid #6d775e;padding:6px 8px;border-radius:4px;overflow-wrap:anywhere;white-space:pre-wrap;text-align:center}.profile-reputation{display:grid;grid-template-columns:28px auto 28px;gap:6px;align-items:center;justify-items:center;flex:none}.profile-reputation>.muted{grid-column:1/-1;font-size:11px}.profile-reputation button{padding:4px 9px}.reputation-value{font-size:20px;color:#a8dd71;font-weight:700}.profile-metric{padding:5px 0;font-size:13px;color:#c8cdbb}.profile-interactions{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;margin-top:12px}.profile-interactions .profile-house{align-self:center}.profile-interactions button{min-width:0;flex-shrink:0}.weapon-balance{display:inline-flex;align-items:center;gap:8px;padding:5px 8px;border:1px solid #49503c;border-radius:6px;margin:4px 8px 4px 0}.weapon-balance img{width:28px;height:28px;object-fit:contain}.profile-lists{margin-top:12px}.profile-lists button.active{border-color:#86a05d;background:#34472c}
@media(max-width:600px){.player-profile-heading{flex-wrap:wrap;gap:10px}.player-profile-identity{flex:1;display:flex;gap:9px}.profile-portrait{max-width:110px}.profile-reputation{margin-left:auto}.player-profile-guild{max-width:100px}.profile-interactions{justify-content:space-between;gap:5px}.profile-interactions button:not(.profile-house)>div{display:none}.profile-interactions button:not(.profile-house){padding:9px}.profile-interactions .profile-house-thumbnail{width:72px;height:51px}.profile-achievements{grid-template-columns:1fr}}
@media(max-width:600px){.player-profile-heading{display:grid;grid-template-columns:1fr auto}.player-profile-identity{grid-column:1/-1}.profile-reputation{margin:0;justify-self:start}.player-profile-guild{grid-column:2;grid-row:2;justify-self:end}.profile-name{word-break:normal}.profile-portrait{max-width:100px}}
.profile-reputation{display:flex;flex-direction:column;gap:3px}.profile-reputation button{padding:3px 7px;font-size:20px;line-height:1.2;background:transparent;border:1px solid transparent;filter:grayscale(1);opacity:.65}.profile-reputation button.active{filter:none;opacity:1;background:#33482a;border-color:#86af64;box-shadow:0 0 5px #91bd5733}.profile-reputation .reputation-value{font-size:18px}.profile-interactions button:not(.profile-house)>div{display:none}.profile-interactions .profile-list-toggle{padding:9px 8px;font-weight:700;font-size:12px}.profile-list-toggle.active{border-color:#86a05d;background:#34472c}.profile-list-toggle[data-list=black].active{border-color:#b36c67;background:#482c2b}
@media(max-width:600px){.profile-interactions{gap:4px;justify-content:space-between}.profile-interactions button:not(.profile-house){padding:6px}.profile-interactions .interaction-icon{width:25px;height:25px}.profile-interactions .profile-house-thumbnail{width:58px;height:42px}.profile-interactions .profile-list-toggle{font-size:11px;padding:6px 5px}}
/* Continuous damage fill; milestone drips are filled only at the threshold. */
.damage-track{position:relative;height:40px;margin:12px 18px 96px;border:2px solid #9a77b2;border-radius:999px;background:linear-gradient(180deg,#37373b 0%,#131316 44%,#09080c 85%,#19141e);box-shadow:inset 0 2px 2px #ffffffe0,inset 0 -2px 3px #5d4a71,0 0 0 2px #211629,0 0 6px #7d35ab66}
.damage-track-fill{position:absolute;inset:1px auto 1px 1px;max-width:calc(100% - 2px);border-radius:999px;background:linear-gradient(180deg,#f6bbff 0%,#df61ff 13%,#b818fa 32%,#6f04ad 67%,#44076c 86%,#922cd3 100%);box-shadow:inset 0 2px 2px #ffddffc9,inset 0 -2px 3px #c982ff88,0 0 7px #ba2dff88}
.damage-track-threshold{position:absolute;top:0;height:100%;display:grid;place-items:center;padding:0 4px;text-align:center;color:#fff2ff;font-size:11px;font-weight:700;text-shadow:0 1px 3px #180327;line-height:1.25;z-index:3;overflow-wrap:anywhere}
.damage-track-marker{position:absolute;top:0;height:0;border:0;z-index:2}.damage-track-drop{position:absolute;top:-1px;left:0;transform:translateX(-50%);width:36px;height:68px;pointer-events:none;--drip-light:#39313f;--drip-mid:#161019;--drip-dark:#08060c}.damage-track-drop svg{display:block;width:100%;height:100%;overflow:visible}.drip-light{stop-color:var(--drip-light)}.drip-mid{stop-color:var(--drip-mid)}.drip-dark{stop-color:var(--drip-dark)}.drip-body{stroke:#8962a1;stroke-width:1.25;stroke-linejoin:round}.drip-shine{fill:none;stroke:#d1b4e1;stroke-width:1;stroke-linecap:round;opacity:.25}.damage-track-marker.reached .damage-track-drop{--drip-light:#e092ff;--drip-mid:#ad24ec;--drip-dark:#530481;filter:drop-shadow(0 1px 2px #a621cf66)}.damage-track-marker.reached .drip-body{stroke:#d89cff}.damage-track-marker.reached .drip-shine{stroke:#ffe6ff;opacity:.8}
.damage-track-badge{position:absolute;top:76px;left:0;transform:translateX(-50%);display:flex;align-items:center;gap:4px;padding:0;border:0;background:none;color:#8b9d80;white-space:nowrap;font-size:11px}.damage-track-marker.reward-rubles:last-child .damage-track-badge{transform:translateX(-100%)}.damage-track-icon{width:24px;height:24px;object-fit:contain;opacity:.55;filter:grayscale(.7)}.damage-track-marker.reached .damage-track-badge{color:#a8dd71}.damage-track-marker.reached .damage-track-icon{opacity:1;filter:none}
@media(max-width:600px){.damage-track-threshold{font-size:9px}.damage-track-icon{width:22px;height:22px}.damage-track-badge{font-size:10px}}
.damage-track-marker:last-child{left:calc(100% - 18px)!important}.damage-track-marker:last-child .damage-track-drop{top:7px;width:30px;height:58px}.damage-track-marker:last-child .damage-track-drop svg{overflow:hidden}
.home-battle{display:grid;gap:8px}.home-fight-state{font-size:12px;padding:7px 10px;border:1px solid #4c4d3c;border-radius:7px}.home-fight-state.active{color:#c0e49d;background:#263d23;border-color:#61874c}.home-fight-name{font-size:22px;font-weight:700}.battle-timer{font-variant-numeric:tabular-nums;font-size:13px;color:#b8c8a4}.home-fight-wins{font-size:13px;color:#d8c7a4}.home-resources{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.home-resource{display:grid;grid-template-columns:25px minmax(0,1fr) auto;gap:7px;align-items:center;padding:6px;border:1px solid #454939;border-radius:6px;font-size:11px}.home-resource .resource-reward-icon{width:25px;height:25px;object-fit:contain}.home-resource-count{font-weight:700;color:#b9d88e;font-variant-numeric:tabular-nums}.settings-section{border:1px solid #504b3a;border-radius:7px;padding:10px;margin:8px 0}.settings-section>summary{cursor:pointer;font-weight:700}.settings-section[open]>summary{margin-bottom:12px}.settings-section details{padding:8px 0}.settings-section .card{padding:10px;background:none}
@media(max-width:600px){.home-resources{grid-template-columns:1fr 1fr}.home-resource{font-size:10px;gap:4px;padding:5px;grid-template-columns:22px minmax(0,1fr) auto}.home-resource .resource-reward-icon{width:22px;height:22px}}
#overview .grid.two{align-items:start}.home-resources{max-height:480px;overflow:auto}.home-key-resources{grid-column:1/-1;padding:8px;border:1px solid #454939;border-radius:6px}.home-key-resources>summary{cursor:pointer;font-size:12px}.home-key-resources[open]>summary{margin-bottom:8px}
.home-resource-column,.home-battle-column{min-width:0}.home-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-bottom:10px}
.home-metrics .home-resource{padding:7px;background:#252a20;font-size:10px;grid-template-columns:1fr}
.home-metrics .resource-reward-icon{width:21px;height:21px;grid-row:auto;grid-column:1}
.home-metrics .home-resource-name,.home-metrics .home-resource-balance{grid-column:1}
.home-resource{grid-template-columns:25px minmax(0,1fr);gap:4px 8px}
.home-resource .resource-reward-icon{grid-row:1/3;align-self:center}
.home-resource-name,.home-resource-balance{grid-column:2;overflow-wrap:anywhere}
.home-resource-balance{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px}
.home-resource-delta{font-size:11px;color:#939b86;font-variant-numeric:tabular-nums}
.home-resource-delta.positive{color:#a8dd71}.home-resource-delta.negative{color:#ee9288}
.match-black{filter:grayscale(1) brightness(.65)}
.home-daily-hint{font-size:11px;color:#a4ad96;margin:0 0 10px}
.home-fight-indicator{width:11px;height:11px;flex-shrink:0;border-radius:50%;background:#e36359;box-shadow:0 0 7px #e3635980}
.home-fight-indicator.active{background:#81d66b;box-shadow:0 0 9px #81d66b90;animation:home-battle-blink 1.4s ease-in-out infinite}
@keyframes home-battle-blink{0%,100%{opacity:1}50%{opacity:.25}}
.home-weapons{margin-top:10px;padding:8px;border:1px solid #454939;border-radius:9px;background:#1c2421}
.home-weapons-table{width:100%;border-collapse:collapse;font-size:11px;table-layout:fixed}
.home-weapons-table caption{caption-side:bottom;padding-top:8px;font-size:10px;color:#a4ad96;text-align:left}
.home-weapons-table th,.home-weapons-table td{padding:6px 4px;border-bottom:1px solid #354038;border-right:1px solid #354038;text-align:center}
.home-weapons-table th:first-child{width:55px;font-size:9px;text-align:left;font-weight:400;color:#a8b6a4}
.home-weapons-table tr:last-child>*{border-bottom:0}.home-weapons-table tr>*:last-child{border-right:0}
.home-weapon-icon{width:18px;height:18px;object-fit:contain;vertical-align:middle;margin-right:4px}
.home-weapons-table thead th{color:#ddd9bd}.home-weapons-table thead th div{display:inline}
.game-mode-icon{display:inline-block;width:22px;height:22px;object-fit:contain;vertical-align:middle;margin:0 5px 0 2px}
select.select-mode-icon{background-repeat:no-repeat;background-size:22px 22px;background-position:8px center;padding-left:38px}
.reward-track-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start}.reward-track-heading .help-disclosure[open]{grid-column:1/-1}.reward-track-heading .help-disclosure{font-weight:400}
.reward-track-icon{width:23px;height:23px;object-fit:contain;opacity:.5;filter:grayscale(.6) brightness(.9) drop-shadow(0 0 2px #a680c055)}
.profile-portrait{display:flex;align-items:center;gap:14px;max-width:none;min-width:0}
.profile-avatar{flex:none}.profile-status{position:relative;background:#fffaf0;color:#302b26;border:0;border-radius:13px;padding:12px 15px;box-shadow:0 3px 10px #0004;text-align:left;max-width:300px;font-size:13px}
.profile-status:before{content:'';position:absolute;left:-9px;top:24px;border-top:9px solid transparent;border-bottom:9px solid transparent;border-right:10px solid #fffaf0}
.player-profile-identity{flex-direction:column;align-items:flex-start;gap:9px;flex:1}
.profile-reputation{display:flex;flex-direction:row;align-items:center;gap:8px;padding:7px 10px;border:1px solid #625b42;background:#1a211a;border-radius:10px}
.profile-highlight-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.profile-highlight-metric{display:grid;grid-template-columns:36px 1fr;gap:3px 10px;padding:13px;border:1px solid #6c6647;border-radius:10px;background:linear-gradient(140deg,#34392a,#1b251c)}
.profile-metric-icon{width:34px;height:34px;object-fit:contain;grid-row:1/3}.profile-metric-value{font-size:19px;color:#c7e9a6;font-weight:700;font-variant-numeric:tabular-nums}
.profile-daily-damage{display:grid;gap:6px;border:1px solid #59674b;border-radius:10px;padding:12px;background:#1b251d}.home-observed-damage{font-size:12px;color:#b6c4a9;margin-top:7px}
.profile-interactions .profile-list-toggle{position:relative;padding:5px;border:1px solid #78664d;border-radius:8px;background:linear-gradient(#3b3b30,#202a23);min-width:42px;min-height:42px;justify-content:center}
.list-toggle-icon{display:grid;place-items:center;color:#e0d4a4;font-size:28px;background:linear-gradient(135deg,#727958,#26352b);border:1px solid #b4b183;border-radius:6px;text-shadow:0 2px 2px #000}
.profile-list-toggle[data-list=black] .list-toggle-icon{background:linear-gradient(135deg,#724747,#281d1c);color:#dfc2b8;border-color:#a87764}
.list-toggle-label{position:absolute;right:-3px;bottom:-4px;border-radius:4px;background:#18221b;border:1px solid #6d7654;padding:1px 3px;font-size:9px;line-height:1.2}
.profile-list-toggle.active .list-toggle-icon{box-shadow:0 0 8px #c5da71;filter:brightness(1.2)}
@media(max-width:600px){.profile-status{font-size:12px;padding:10px;max-width:220px}.profile-portrait{max-width:none}.player-profile-identity{display:flex;flex-direction:column}.profile-highlight-metric{padding:9px;grid-template-columns:28px 1fr}.profile-metric-icon{width:27px;height:27px}.profile-metric-value{font-size:17px}}
.home-weapon-value{font-weight:700;font-variant-numeric:tabular-nums;color:#d9e6cd}.home-weapons-table .home-resource-delta{font-size:10px}
@media(max-width:600px){.home-metrics{gap:3px}.home-metrics .home-resource{font-size:9px;padding:5px}.home-metrics .home-resource-count{font-size:9px}.home-weapons-table{font-size:10px}}
@media(max-width:600px){.home-metrics .home-resource{padding:6px;font-size:10px}.home-resource{grid-template-columns:22px minmax(0,1fr)}}
/* Shared typography and compact game panels. */
:root{--ui-font:"Segoe UI",Arial,sans-serif;font-family:var(--ui-font);font-size:14px}
*,*::before,*::after{font-family:var(--ui-font)!important;font-variant-numeric:tabular-nums}
.home-fight-heading{gap:9px;flex-wrap:nowrap;margin-bottom:10px;font-size:14px}.home-fight-heading h2{font-size:14px}.home-fight-heading #home-fight-name{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-fight-heading #home-fight-mode{margin-left:auto;white-space:nowrap;font-size:13px}
.home-fight-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px}.home-fight-meta .battle-timer,.home-fight-wins{margin:0;font-size:inherit}
.boss-hp{display:block;margin-top:12px}.boss-hp-bar{position:relative;height:22px;border:1px solid #278476;border-radius:6px;overflow:hidden;background:#071b19;box-shadow:0 0 8px #24dfbc30,inset 0 0 7px #071310}.boss-hp-fill{height:100%;box-shadow:0 0 12px #48ffd5}.boss-hp-numbers{position:absolute;inset:0;display:flex;align-items:center;justify-content:flex-start;padding:0 54px 0 8px;font-size:12px;font-weight:600;color:#f0fff9;text-shadow:0 1px 3px #000}.boss-hp-percent{position:absolute;inset:0 8px 0 auto;display:flex;align-items:center;font-size:12px;color:#effff9;text-shadow:0 1px 3px #000}
.home-weapons-table{font-size:13px}.home-weapons-table caption,.home-daily-hint{display:none}.home-resource,.home-resource-count{font-size:12px}.home-events{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 18px}.home-event{display:grid;justify-items:center;gap:4px;border:1px solid #67583f;border-radius:10px;background:#20271f;padding:7px 12px;color:#e9deca;font-size:12px}.home-event-icon{width:84px;height:51px;object-fit:contain}.home-event-preview{width:140px;height:86px;object-fit:contain}
.damage-dashboard-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.damage-dashboard-heading>.help-disclosure{margin-left:auto}.damage-dashboard-heading>.help-disclosure[open]{width:100%}.damage-dashboard-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.damage-dashboard-metric{padding:12px;border:1px solid #4b6550;border-radius:10px;background:#17251d}.damage-dashboard-value{font-size:22px;font-weight:700;color:#b3f1d4;overflow-wrap:anywhere}.damage-hours{display:grid;grid-template-columns:repeat(24,minmax(25px,1fr));gap:4px;overflow:auto;padding:6px 0}.damage-hour{height:92px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:9px;background:#141d18;border:1px solid #364c3d;border-radius:5px;color:#b6c8bd;padding:7px 2px;font-size:11px}.damage-hour-column{width:65%;border-radius:3px;background:linear-gradient(#5df6c3,#1b6851);box-shadow:0 0 5px #43faca28}.damage-hour[aria-pressed=true]{border-color:#64eec1;background:#203e30;color:#e0ffee}.damage-hour-selection{padding:10px 0;color:#cdf5df;font-size:13px}.damage-top-button{font-size:12px;min-height:32px}.damage-top-row{display:block;width:100%;text-align:left;padding:10px;border:0;border-bottom:1px solid #405342;background:#17231c;color:#d9e9dc}
.battle-info{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}.battle-info>.damage-rewards{grid-column:1;grid-row:auto}.battle-leaderboard{grid-column:2;grid-row:auto;overflow:hidden;border:1px solid #695c42;border-radius:10px;background:#161f18}.battle-leaderboard>.battle-section-title{padding:12px}.battle-leaderboard .battle-leaders{border:0;border-radius:0}.battle-leaderboard>details{border-top:1px solid #4a513c}.battle-leaderboard>details>summary{padding:10px 12px}.battle-person.self{border-radius:0;background:#254538;border:0;border-bottom:1px solid #607e61}.reward-track-details>summary{margin-left:auto}.reward-track-details[open]>div{font-weight:400}.reward-detail-row{display:flex;align-items:center;gap:8px}.reward-track-details .reward-track-icon{opacity:1;filter:none}
#game-info-dialog.player-room-dialog.has-room{background-image:linear-gradient(#101a1566,#101a15b3),var(--player-room);background-size:cover;background-position:center;background-repeat:no-repeat}.player-room-dialog .info-dialog-content{gap:12px}.profile-ratings{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-top:8px}.profile-rating-box{display:grid;gap:5px}.profile-top-interactions{margin:0 0 8px}.profile-top-interactions button{display:flex;align-items:center;gap:8px;padding:7px 11px;background:#192b23dd;border:1px solid #7c6b43;border-radius:8px;color:#ece0c8}.profile-top-interactions button>div{display:block;font-size:12px}.profile-rank{font-size:12px;color:#8bdbb7;grid-column:2}.profile-day-damage{font-size:13px;color:#d3eace}.player-room-dialog .resource-reward,.player-room-dialog .player-achievement,.player-room-dialog .profile-daily-damage{background:#17251ce3}.player-room-dialog .profile-highlight-metric{background:#1d2d23e6}
@media(max-width:720px){.battle-info{grid-template-columns:1fr}.battle-info>.damage-rewards,.battle-leaderboard{grid-column:1}.damage-dashboard-metrics{gap:7px}.damage-dashboard-metric{padding:9px}.damage-dashboard-value{font-size:17px}.home-fight-heading #home-fight-mode{font-size:12px}.home-fight-heading{gap:7px}.home-fight-meta{flex-wrap:wrap}.profile-top-interactions button>div{display:none}}
.profile-interactions.profile-top-interactions button:not(.profile-house)>div{display:block;font-size:12px}
@media(max-width:720px){.profile-interactions.profile-top-interactions button:not(.profile-house)>div{display:none}}
.damage-rewards{grid-template-columns:minmax(0,1fr) 28px;gap:12px;padding:16px}
.reward-track-heading{grid-column:1;align-self:center;line-height:1.4}
.reward-track-details{display:contents}
.reward-track-details::details-content{grid-column:1/-1}
.damage-rewards .reward-track-details>summary{grid-column:2;grid-row:1;display:grid;place-items:center;box-sizing:border-box;width:28px;height:28px;margin:0;padding:0;line-height:1;font-size:14px;background:#28291f}
.reward-track-details>summary:hover{border-color:#e7c789;color:#fff2c7;background:#353527}
.reward-track-details>:not(summary){grid-column:1/-1;margin:0!important;line-height:1.5;overflow-wrap:anywhere}
.reward-track-details[open]>:nth-child(2){padding-top:10px;border-top:1px solid #ffffff14}
@media(max-width:600px){.damage-rewards{padding:12px;gap:10px}.reward-track-heading{font-size:13px}}
/* Notebook and pen artwork adapted from the supplied damage-scale HTML. */
.damage-rewards{--notebook-ink:#1c38a8;position:relative;color:var(--notebook-ink);border:1px solid #dcd6c4;border-radius:4px;padding:18px 18px 16px 30px;background:linear-gradient(90deg,transparent 18px,#d63c3c66 18px,#d63c3c66 20px,transparent 20px),linear-gradient(#4678c82e 1px,transparent 1px) 0 0/22px 22px,linear-gradient(90deg,#4678c82e 1px,transparent 1px) 0 0/22px 22px,#fbfaf3;box-shadow:0 2px 0 #dcd6c4,0 4px 0 #cfc8b4,0 8px 18px #0003}
.damage-rewards .reward-track-heading,.damage-rewards .reward-track-heading *,.notebook-progress,.notebook-progress *{font-family:"Segoe Print","Comic Sans MS",cursive!important}
.damage-rewards .reward-track-heading{font-size:19px;color:var(--notebook-ink);text-decoration:underline wavy #c62f28;text-decoration-thickness:1px;text-underline-offset:5px}
.damage-rewards .reward-track-details>summary{border-color:#1c38a880;background:#fbfaf3;color:var(--notebook-ink)}
.damage-rewards .reward-track-details>summary:hover{background:#e9edfa;border-color:#1c38a8;color:#1c38a8}
.damage-rewards .reward-track-details .muted,.damage-rewards .reward-detail-row{color:#1c38a8c9;font-size:12px}
.damage-rewards .reward-track-details[open]>:nth-child(2){border-color:#1c38a833}
.notebook-progress{grid-column:1/-1;min-width:0;color:var(--notebook-ink)}
.notebook-counter{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap;font-size:17px;line-height:1.5}
.notebook-current{font-size:26px;font-weight:700}
.notebook-viewport{min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-color:#1c38a866 #e9e7da;scrollbar-width:thin}
.notebook-bar{position:relative;height:150px}
.notebook-bar canvas{position:absolute;inset:0;width:100%;height:150px}
.notebook-pen{--pen-angle:-28deg;--pen-wiggle:-24deg;--pen-offset:0px;--pen-flip:1;position:absolute;top:0;left:0;width:0;height:22px;pointer-events:none;z-index:3}
.notebook-pen.at-edge{--pen-angle:28deg;--pen-wiggle:24deg;--pen-offset:76px;--pen-flip:-1}
.notebook-pen.at-edge svg{left:-76px}
.notebook-pen svg{display:block;position:relative;width:76px;height:22px;overflow:visible;transform:translateX(var(--pen-offset)) rotate(var(--pen-angle)) scaleX(var(--pen-flip));transform-origin:0 50%;filter:drop-shadow(2px 3px 2px #0003)}
.notebook-pen.writing svg{animation:notebook-scribble .14s linear infinite alternate}
@keyframes notebook-scribble{from{transform:translateX(var(--pen-offset)) rotate(var(--pen-angle)) scaleX(var(--pen-flip))}to{transform:translateX(var(--pen-offset)) rotate(var(--pen-wiggle)) scaleX(var(--pen-flip))}}
.notebook-labels{position:absolute;inset:0;pointer-events:none}
.notebook-milestone{position:absolute;top:72px;width:70px;transform:translateX(-50%);text-align:center;line-height:1.2;color:#1c38a8a6}
.notebook-threshold{font-size:20px;font-weight:700}
.notebook-reward-icons{display:flex;align-items:center;justify-content:center;gap:3px;flex-wrap:wrap;font-size:15px;margin-top:9px}
.notebook-reward-icon{width:22px;height:22px;object-fit:contain}
.notebook-milestone.done{color:#c62f28;font-weight:700}
.notebook-milestone.done .notebook-reward-icons::before{content:'✓';color:#c62f28}
@media(max-width:600px){.damage-rewards{padding:14px 12px 12px 24px;background-position:0 0}.damage-rewards .reward-track-heading{font-size:16px}.notebook-counter{font-size:15px}.notebook-current{font-size:23px}.notebook-threshold{font-size:18px}}
@media(prefers-reduced-motion:reduce){.notebook-pen.writing svg{animation:none}}
.damage-hour-column.unknown{background:#6e7f71;opacity:.3;box-shadow:none}
dialog.player-room-dialog.has-room{background-image:linear-gradient(#101a1566,#101a15b3),var(--player-room)!important;background-size:cover;background-position:center;background-repeat:no-repeat}
.current-queue-controls{justify-content:center}.current-queue-controls button{min-width:210px}.current-queue-controls button.running{background:#694433;border-color:#ae795b}
.manual-hits[hidden],.victory-history[hidden]{display:none}.damage-date{color-scheme:dark;border:1px solid #58654c;border-radius:7px;background:#18261e;color:#dce7cd;padding:5px 8px;font:inherit}
.damage-dashboard-heading{display:grid;grid-template-columns:auto minmax(0,1fr) 24px;align-items:center}.damage-date{justify-self:start;max-width:100%}
.damage-dashboard-heading>.help-disclosure,.damage-dashboard-heading>.help-disclosure[open]{display:contents;margin:0;width:auto}.damage-dashboard-heading>.help-disclosure>summary{grid-column:3;grid-row:1}.damage-dashboard-heading>.help-disclosure>:not(summary){grid-column:1/-1}
.help-disclosure>summary{display:grid;margin-left:auto;flex-shrink:0}.help-disclosure:not([open])>:not(summary){display:none}.reward-track-heading .help-disclosure[open]{grid-column:auto}.reward-track-heading .help-disclosure{min-width:24px}
.home-events{gap:8px}.home-event{padding:8px 10px;min-width:76px;flex:1;max-width:125px;font-size:11px}.home-event-icon{width:26px;height:26px}.home-event-preview{width:48px;height:48px}.activity-status{font-size:10px;color:#99ceac}.activity-section{border-top:1px solid #4d5c46;padding-top:12px}.activity-calendar{display:grid;gap:6px}.activity-day{padding:8px;border:1px solid #3d503f;border-radius:7px}.activity-day.today{border-color:#80c6aa}.activity-day.completed{background:#244030}.activity-reward{display:grid;gap:6px;padding:10px;background:#17271d;border-radius:8px}.activity-description{white-space:pre-line;line-height:1.5}
.home-activities{width:100%;font-size:12px;color:#c9d6ba}.home-activities>summary{cursor:pointer;padding:6px 0}.activity-icons{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:7px;margin-top:10px}.activity-icons .home-event{max-width:none;width:100%;min-width:0}.activity-icons .home-event-icon{width:26px;height:26px}
.profile-interactions .profile-list-toggle{padding:4px;width:110px;min-height:102px;background:#202020;border-color:#524b3b;border-radius:9px}
.list-art{display:block;width:100px;height:92px;background-image:url('/assets/player-lists.png');background-size:100% 200%;background-repeat:no-repeat;background-position:center top}
.list-art-black{background-position:center bottom}.profile-list-toggle.active .list-art{filter:brightness(1.15)}.profile-interactions .profile-list-toggle.active{border-color:#80c774;box-shadow:0 0 9px #80c77455}.profile-interactions .profile-list-toggle[data-list=black].active{border-color:#dd5757;box-shadow:0 0 9px #dd575755}
.profile-highlight-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-daily-damage,.player-room-dialog .profile-daily-damage{position:relative;grid-template-columns:minmax(0,1fr);align-content:start;gap:5px;padding:11px 12px;border:1px solid #b94459;border-radius:9px;background:#471c26}
.profile-damage-heading{display:flex;gap:6px;align-items:center;padding-right:28px}.profile-damage-icon{width:18px;height:18px;object-fit:contain;border-radius:3px}.profile-damage-title{font-size:11px;font-weight:800;text-transform:uppercase;color:#fff1d9}
.profile-damage-amount{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}.profile-daily-damage .profile-metric-value{font-size:21px;line-height:1.2;color:#fff;font-weight:800}.profile-daily-damage .profile-day-damage{color:#83e5a2;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}.profile-daily-damage .profile-rank{grid-column:1;color:#e6bcc5;font-size:11px}.profile-daily-damage>.help-disclosure{position:static;margin:0;width:100%}.profile-daily-damage>.help-disclosure>summary{position:absolute;top:9px;right:10px}.profile-daily-damage>.help-disclosure[open]>div{margin-top:8px}
@media(max-width:600px){.profile-highlight-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-interactions .profile-list-toggle{width:94px;min-height:88px}.list-art{width:84px;height:78px}}
.profile-reputation{flex-direction:row;align-items:center;gap:9px}.player-room-dialog .dialog-header{background:#273d31;border-radius:9px;padding:12px}.player-profile-identity>.profile-name{background:#273d31;border:1px solid #58725b;border-radius:8px;padding:6px 12px}.list-art-black{position:relative}.list-art-black::after{content:'×';position:absolute;left:73%;top:61%;width:12%;height:14%;display:grid;place-items:center;background:#532c2b;color:#ff3030;font-size:17px;font-weight:900;line-height:1;transform:rotate(8deg)}
.boss-current>.card-head{justify-content:center}.boss-current #boss-state{margin:0;background:none;border:0;font-weight:700}.boss-current #boss-state::before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;background:#d86165;margin-right:8px}.boss-current #boss-state.active::before{background:#6cec9f;box-shadow:0 0 7px #6cec9f;animation:fight-state-pulse 1.2s ease-in-out infinite}@keyframes fight-state-pulse{50%{opacity:.35}}
.monthly-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;margin-top:12px}.monthly-weekday{text-align:center;font-size:12px;color:#b3c7ad}.monthly-day{position:relative;display:grid;justify-items:center;gap:5px;min-width:0;padding:9px 4px;border:1px solid #6e6a4c;border-radius:9px;background:#243526;color:#ebdfc8}.monthly-day.today{border-color:#e2b76e;box-shadow:0 0 7px #e2b76e55}.monthly-day.completed{background:#365338}.monthly-day.expired{opacity:.55}.monthly-day-number{justify-self:start;font-size:12px;font-weight:800;padding:0 4px}.monthly-task-icon{width:42px;height:42px;object-fit:contain}.monthly-day-progress{font-size:11px}.vpi-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.vpi-card{align-content:start;border:1px solid #695b43;background:linear-gradient(#393224,#18261e);min-width:0;padding:10px}.vpi-card.current{border-color:#d3a954;box-shadow:0 0 8px #d3a95444}.vpi-card-art{width:100%;height:165px;object-fit:contain}.vpi-card>.battle-section-title{font-size:13px}.vpi-card .resource-reward{font-size:12px;gap:5px;padding:4px}.vpi-card .resource-reward-icon{width:22px;height:22px}.vpi-card .primary{font-size:12px;padding:6px;margin-top:auto}.vpi-card .muted{font-size:11px}.vpi-card .resource-reward-amount{font-size:12px}
@media(max-width:600px){.monthly-calendar{gap:4px}.monthly-task-icon{width:30px;height:30px}.monthly-day{padding:6px 2px}.vpi-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
.vpi-card-art{height:115px}.vpi-card .resource-reward-row{grid-template-columns:22px minmax(0,1fr) auto;font-size:11px;gap:4px;padding:4px}.vpi-card .resource-reward-row .resource-reward-icon{width:20px;height:20px}.vpi-card .resource-reward-row .resource-reward-amount{font-size:11px}.vpi-card .primary{align-self:end}
.monthly-day{padding:6px 4px;gap:3px}.monthly-calendar .monthly-task-icon{width:32px;height:32px}
dialog.player-room-dialog{width:min(640px,94vw)!important;max-height:88vh!important;padding:18px!important}dialog.player-room-dialog.has-room{background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}.player-room-dialog .dialog-header{background:transparent;border:0;border-radius:0;padding:5px 0 12px;top:-18px;text-shadow:0 2px 5px #000}.player-room-dialog .profile-avatar{width:64px;height:64px}.player-room-dialog .profile-ratings{flex-wrap:nowrap;justify-content:space-between;gap:12px}.profile-ratings>.profile-interactions{margin:0;gap:6px}.profile-ratings .profile-list-toggle{width:84px;min-height:96px;padding:2px;background:transparent;border-color:transparent}.profile-ratings .list-art{width:78px;height:92px;background-size:200% auto;background-position:left center}.profile-ratings .list-art-black{background-position:right center}.list-art-black::after{content:none}
dialog.vpi-dialog{width:min(710px,94vw)!important}.vpi-current-tier,.vpi-damage-left{padding:10px 12px;border-radius:8px;border:1px solid #837249;background:#283c2c;font-weight:750;color:#eed498}.vpi-damage-left{color:#dcb4ff;background:#32263f;border-color:#785691}.vpi-card-art{display:none}
@media(max-width:600px){.player-room-dialog .profile-ratings{gap:7px}.profile-ratings .profile-list-toggle{width:67px;min-height:80px}.profile-ratings .list-art{width:62px;height:74px}.player-room-dialog .profile-avatar{width:56px;height:56px}.profile-rating-box{font-size:12px}}
.profile-reputation.negative{border-color:#ba6469;background:#462726cc}.profile-reputation.negative .reputation-value{color:#ff858c}.profile-reputation button[data-vote="-1"].active{background:#63282ddd;border-color:#ee747b;box-shadow:0 0 7px #f9575c55}.profile-reputation.positive{border-color:#6b9d72}.profile-reputation.positive .reputation-value{color:#a8dd71}
.profile-daily-damage,.player-room-dialog .profile-daily-damage{background:#1d2d23e6;border-color:#59674b}.profile-daily-damage .profile-rank{color:#8bdbb7}.profile-damage-icon{object-fit:contain;width:22px;height:22px}
.profile-friendship{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.profile-friend-button{display:flex;align-items:center;justify-content:center;gap:10px;background:#1d342acc;border:1px solid #668d68;border-radius:9px;color:#dce8cc;padding:9px 12px;min-width:0}.profile-friend-button.remove{background:#392523cc;border-color:#925b58;color:#f2cecb}.friend-action-icon{display:grid;place-items:center;width:30px;height:30px;border:2px solid currentColor;border-radius:50%;font-size:26px;line-height:1;flex:none}.profile-friend-button:disabled{opacity:.45}
.damage-chart{display:grid;grid-template-columns:64px minmax(0,1fr);gap:8px;padding-top:12px}.damage-axis{height:150px;position:relative;color:#a9c6b5;font-size:11px;font-variant-numeric:tabular-nums}.damage-axis-tick{position:absolute;right:0;transform:translateY(-50%);white-space:nowrap}.damage-chart-scroll{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-color:#547b65 #17251d}.damage-hours{height:180px;min-width:720px;grid-template-columns:repeat(24,minmax(28px,1fr));gap:2px;overflow:visible;padding:0;align-items:start;background:repeating-linear-gradient(to top,#668e683d 0,#668e683d 1px,transparent 1px,transparent var(--damage-grid-step));background-size:100% 150px;background-repeat:no-repeat}.damage-hour{height:178px;display:grid;grid-template-rows:150px 24px;gap:4px;padding:0;background:transparent;border:0;border-radius:0}.damage-hour-plot{height:150px;display:flex;align-items:flex-end;justify-content:center;border-radius:4px}.damage-hour-column{width:62%;min-height:0;border-radius:3px 3px 0 0}.damage-hour-label{font-size:11px}.damage-hour[aria-pressed=true]{background:transparent;color:#e0ffee}.damage-hour[aria-pressed=true] .damage-hour-plot{background:#5bdca019;outline:1px solid #64eec166}.damage-hour:hover .damage-hour-plot{background:#5bdca012}
@media(max-width:600px){.damage-chart{grid-template-columns:50px minmax(0,1fr);gap:6px}.damage-hours{min-width:768px}.profile-friend-button{font-size:12px;padding:8px 6px;gap:6px}.friend-action-icon{width:25px;height:25px;font-size:22px}}
@media(max-width:600px){.damage-dashboard-metrics{grid-template-columns:1fr;gap:6px;margin:14px 0}.damage-dashboard-metric{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px}.damage-dashboard-value{font-size:18px;white-space:nowrap}.damage-dashboard-metric>.muted{font-size:12px}.damage-hour-selection{font-size:12px}}
.hub-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:16px 0}.hub-flow{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin:18px 0}.hub-flow-node{position:relative;display:flex;gap:10px;align-items:center;padding:14px;border:1px solid #516952;border-radius:10px;background:#18372b80;line-height:1.5}.hub-flow-node:not(:last-child)::after{content:'→';position:absolute;right:-12px;color:#97cfb3;z-index:1}.hub-flow-number{display:grid;place-items:center;border:1px solid #728d63;border-radius:50%;width:28px;height:28px;flex:none;color:#b9edbc}.hub-banner-icon{width:46px;height:65px;object-fit:contain;float:right}.hub-tasks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}.hub-task{display:grid;gap:12px;position:relative;padding-left:80px}.hub-task-icon{width:40px;height:40px;object-fit:contain}.hub-task>.hub-task-icon{position:absolute;left:22px;top:22px;width:44px;height:44px}.hub-task.completed{border-color:#6ba47b;background:#203829c9}.hub-task-progress{font-size:20px;color:#b7e9bb;font-variant-numeric:tabular-nums}.hub-task progress{width:100%;height:8px;accent-color:#80d5aa}.hub-map-row{display:grid;grid-template-columns:48px 150px 1fr;align-items:center;gap:12px;padding:12px;border-bottom:1px solid #4b5d46}.hub-facts{display:grid;gap:8px;margin:12px 0}.hub-fact{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:8px 12px;background:#203b2c66;border-radius:6px}.hub-fact-title{font-weight:600;line-height:1.5}.hub-game-menu{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.hub-game-tab{display:flex;gap:10px;align-items:center;background:#233127;padding:12px 16px;color:#ecdfc3;border:1px solid #637350;border-radius:9px}.hub-game-tab.active{border-color:#9cd9b0;background:#345941}.hub-game-actions{flex-wrap:wrap;margin:20px 0}.hub-game-actions button{min-height:40px}.hub-card-hand{font-size:24px;font-weight:700;letter-spacing:3px;padding:18px;background:#eee3c6;color:#332f24;border-radius:10px}.hub-podogrev-image{width:100%;height:100px;object-fit:contain}.hub-inbox{display:grid;gap:8px;margin:16px 0}.hub-inbox-row{display:flex;align-items:center;gap:12px;background:#26372b;padding:12px;border:1px solid #5d6950;border-radius:9px}.hub-inbox-row .profile-avatar,.hub-winner .profile-avatar{width:36px;height:36px}.hub-inbox-row>button{margin-left:auto}.hub-loot-image{width:140px;height:160px;object-fit:contain}.hub-session{margin-top:16px;font-size:18px;color:#b9e6c4}.hub-winner{padding:12px;border-bottom:1px solid #4b5d46}.hub-intro{overflow:hidden}.page>div>details{margin:16px 0;border:1px solid #53684b;padding:14px;border-radius:9px}.tabs{overflow-x:auto;flex-wrap:nowrap}.tabs .tab{white-space:nowrap;flex-shrink:0}
@media(max-width:650px){.hub-tasks{grid-template-columns:1fr}.hub-task{padding-left:66px}.hub-task>.hub-task-icon{left:14px;width:36px;height:36px}.hub-flow{grid-template-columns:1fr 1fr}.hub-flow-node{font-size:12px;padding:10px}.hub-map-row{grid-template-columns:40px 1fr}.hub-map-row>.muted{grid-column:2}.hub-inbox-row{flex-wrap:wrap}.hub-inbox-row>div{font-size:12px}.hub-grid{grid-template-columns:1fr 1fr}.hub-mode{padding:14px}.hub-mode .resource-reward-name{font-size:11px}}
.hub-yard-map{background:linear-gradient(#15291adb,#142d22cf),url('https://oldprison-prod-assets-cdn-yandex.luckygem.online/assets/DVOR/Autumn/Yard.webp') center/cover no-repeat}.hub-image-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:12px;padding:16px 0}.hub-gallery-image{width:100%;height:110px;object-fit:contain;background:#17251dc9;border:1px solid #4d6550;border-radius:9px;padding:8px}.hub-room-image{width:100%;height:140px;object-fit:cover;border-radius:8px}.hub-camera{display:grid;gap:10px}

.hub-playing-cards{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.hub-playing-card{width:85px;height:122px;object-fit:contain}.hub-game-actions label{max-width:100%}@media(max-width:650px){.hub-playing-card{width:54px;height:78px}.hub-fact{padding:6px;gap:6px}.hub-grid .card{min-width:0}.hub-task .button-row{gap:6px}.hub-task .button-row button{font-size:12px;padding:8px}}

.hub-slot-field{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;padding:15px;background:#12241c;border:1px solid #4f7157;border-radius:10px}.hub-slot-field .hub-task-icon{width:100%;height:60px}

.vpi-tier-heading{display:flex;align-items:center;justify-content:space-between;gap:6px}.vpi-tier-heading>.battle-section-title{font-size:13px;min-width:0}.vpi-mine-badge{flex:none;font-size:10px;font-weight:700;padding:3px 6px;border:1px solid #87dca3;border-radius:6px;background:#70d99624;color:#b5f0c7}.vpi-card.current{border-color:#87dca3;background:linear-gradient(#32513c,#182e23);box-shadow:0 0 8px #70d99633}

.vpi-expiry{display:grid;gap:6px;padding:12px 14px;border:1px solid #9ece89;border-radius:9px;background:#31523570}.vpi-expiry-date{color:#e5f3c3;font-size:18px;font-weight:700}.vpi-expiry-remaining{color:#9fe6bc;font-weight:700;font-variant-numeric:tabular-nums}.vpi-expiry.expired{border-color:#c77b70}.vpi-expiry.expired .vpi-expiry-remaining{color:#f3a59d}.hub-collection{display:grid;gap:6px;margin:12px 0;padding-top:10px;border-top:1px solid #53694c}.hub-collection-count{margin:0}.hub-collection-count.complete,.hub-damage-progress.complete .resource-reward-amount{color:#a8ebac}.hub-collection-count.partial,.hub-damage-progress.partial .resource-reward-amount{color:#efcf85}.hub-collection-count.empty,.hub-damage-progress.empty .resource-reward-amount,.hub-damage-progress.unknown .resource-reward-amount{color:#a4aea3}.hub-damage-progress{font-size:12px}.hub-damage-progress .resource-reward-icon{width:24px;height:24px}
.game-maintenance{position:fixed;inset:0;margin:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;padding:24px;border:0;border-radius:0;background:#0b0b13f5;color:#eee;overflow:auto;overscroll-behavior:contain}
.game-maintenance:not([open]){display:none}
.game-maintenance[open]{display:grid;place-items:center}
.game-maintenance::backdrop{background:#0b0b13}
.maintenance-card{width:min(760px,100%);overflow:hidden;border:1px solid #ac854e;border-radius:20px;background:linear-gradient(120deg,#251d32,#30271c);box-shadow:0 18px 70px #0009}
.maintenance-card>img{display:block;width:100%;height:min(48dvh,410px);object-fit:cover;object-position:center 45%}
.maintenance-copy{padding:25px;text-align:center}
.maintenance-copy h2{margin:8px 0 10px;color:#f4dbad;font-size:clamp(23px,4vw,32px)}
.maintenance-copy p{max-width:470px;margin:0 auto;color:#ddd1bd;line-height:1.5;font-size:15px}
.maintenance-check{display:block;margin-top:18px;color:#ac9dbd;font-size:12px}
@media(max-width:600px){.game-maintenance{padding:max(14px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom))}.maintenance-card{width:min(390px,100%);border-radius:18px}.maintenance-card>img{height:clamp(170px,44dvh,350px);object-position:57% center}.maintenance-copy{padding:20px 17px}.maintenance-copy p{font-size:14px}.maintenance-check{margin-top:14px}}
@media(max-height:450px) and (min-width:601px){.maintenance-card{display:grid;grid-template-columns:1fr 1fr}.maintenance-card>img{height:min(85dvh,350px)}.maintenance-copy{align-self:center;padding:16px}}

.poker-auto-controls{display:grid;gap:12px;padding:14px 0}.poker-auto-status{display:grid;gap:8px;padding:12px;border:1px solid #659875;border-radius:8px;background:#24453280}.poker-auto-history{display:grid;gap:6px}.poker-auto-controls .button-row{flex-wrap:wrap}
.poker-auto-controls label{display:grid;gap:8px}.poker-auto-controls input{width:110px;padding:9px 12px;border:1px solid #657666;border-radius:8px;background:#18251e;color:#f3e5c7;font:inherit}
.poker-auto-controls select{max-width:100%;padding:9px 12px;border:1px solid #657666;border-radius:8px;background:#18251e;color:#f3e5c7;font:inherit}
.poker-keep-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:12px 0}
.poker-keep-options label{display:flex;align-items:center;gap:7px;padding:9px;border:1px solid #625840;border-radius:7px;background:#1e2621;font-size:13px;cursor:pointer}
.poker-keep-options label:has(input:checked){border-color:#8ad59d;color:#b7efc6;background:#294535}
.poker-keep-options input{width:17px;height:17px;flex:none;accent-color:#8ad59d}
@media(max-width:600px){.poker-keep-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
.hub-playing-card.poker-card-pending{outline:2px solid #f2b756;outline-offset:3px;box-shadow:0 0 18px #f2b75670}
.hub-playing-card.poker-card-changed{outline:2px solid #8ad59d;outline-offset:3px;box-shadow:0 0 16px #8ad59d50}
.poker-live-draw{margin-top:6px;font-size:12px;color:#b7c7bd}

/* Notebook text colours: every light-on-dark colour of the game palette gets a readable ink. Generated from the base rules; explicit notebook rules below take precedence. */
:root[data-theme="notebook"]{--paper-good:#276b36;--paper-bad:#b32c25;--paper-violet:#5b2a86}
:root[data-theme="notebook"][data-theme-variant="graphite"]{--paper-good:#1d4d2a;--paper-bad:#8a1f18;--paper-violet:#3f2a55}
:root[data-theme="notebook"] .local-pill{color:var(--paper-good);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .icon-button{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .tab{color:var(--theme-muted)}
:root[data-theme="notebook"] .tab:hover{color:var(--theme-accent)}
:root[data-theme="notebook"] .tab.active{color:var(--theme-accent)}
:root[data-theme="notebook"] .eyebrow{color:var(--theme-accent)}
:root[data-theme="notebook"] .hint,
:root[data-theme="notebook"] .muted{color:var(--theme-muted)}
:root[data-theme="notebook"] .card{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .card.accent{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .glyph.orange{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .glyph.mint{color:var(--paper-good);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .glyph.blue{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .report{color:var(--theme-ink)}
:root[data-theme="notebook"] .secondary{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .secondary:hover:not(:disabled){background:#1c38a814;text-shadow:none}
:root[data-theme="notebook"] .form-grid label,
:root[data-theme="notebook"] .inline-form label{color:var(--theme-muted)}
:root[data-theme="notebook"] .form-grid input,
:root[data-theme="notebook"] .form-grid select,
:root[data-theme="notebook"] .inline-form input,
:root[data-theme="notebook"] .button-row select,
:root[data-theme="notebook"] .selector-card select{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .list-row small{color:var(--theme-muted)}
:root[data-theme="notebook"] .stage-progress{color:var(--theme-muted)}
:root[data-theme="notebook"] .progress-track{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .stage-stats{color:var(--theme-ink)}
:root[data-theme="notebook"] .big-number{color:var(--theme-accent)}
:root[data-theme="notebook"] .brand small{color:var(--theme-accent)}
:root[data-theme="notebook"] .tab.active{color:var(--theme-accent)}
:root[data-theme="notebook"] .tab:hover{color:var(--theme-accent)}
:root[data-theme="notebook"] .card{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .card.accent{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .secondary{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .secondary:hover:not(:disabled){background:#1c38a814;text-shadow:none}
:root[data-theme="notebook"] .guide-intro{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .guide-stamp{color:var(--theme-accent)}
:root[data-theme="notebook"] .guide-intro p{color:var(--theme-muted)}
:root[data-theme="notebook"] .guide-filter{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] #guide-search{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .guide-source{color:var(--theme-muted)}
:root[data-theme="notebook"] .guide-list{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .guide-item{color:var(--theme-accent)}
:root[data-theme="notebook"] .guide-item:hover,
:root[data-theme="notebook"] .guide-item.selected{background:#1c38a814;text-shadow:none}
:root[data-theme="notebook"] .guide-item-meta{color:var(--theme-muted)}
:root[data-theme="notebook"] .guide-fact-label{color:var(--theme-accent)}
:root[data-theme="notebook"] .guide-fact-value{color:var(--theme-accent)}
:root[data-theme="notebook"] .guide-subtitle{color:var(--theme-accent)}
:root[data-theme="notebook"] .guide-link{color:var(--theme-accent)}
:root[data-theme="notebook"] .guide-description{color:var(--theme-accent)}
:root[data-theme="notebook"] .checkpoint-meta,
:root[data-theme="notebook"] .checkpoint-rewards{color:var(--theme-muted)}
:root[data-theme="notebook"] .boss-group{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .boss-group.active{color:var(--theme-accent);background:#1c38a814;text-shadow:none}
:root[data-theme="notebook"] .guide-actions{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .guide-actions label{color:var(--theme-accent)}
:root[data-theme="notebook"] .guide-actions input,
:root[data-theme="notebook"] .guide-actions select{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .guide-action-note{color:var(--theme-accent)}
:root[data-theme="notebook"] .guide-combo{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .queue-count{color:var(--theme-accent)}
:root[data-theme="notebook"] .queue-meta{color:var(--theme-muted)}
:root[data-theme="notebook"] .queue-run-label{color:var(--theme-accent)}
:root[data-theme="notebook"] .queue-run-label select{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] #boss-search{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .queue-active{color:var(--paper-good)}
:root[data-theme="notebook"] .queue-editor{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .boss-history summary{color:var(--theme-accent)}
:root[data-theme="notebook"] .queue-history-row{color:var(--theme-accent)}
:root[data-theme="notebook"] .queue-options summary{color:var(--theme-accent)}
:root[data-theme="notebook"] .queue-options label{color:var(--theme-accent)}
:root[data-theme="notebook"] .manual-hits-head strong{color:var(--theme-accent)}
:root[data-theme="notebook"] .boss-current{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .boss-state{color:var(--theme-accent)}
:root[data-theme="notebook"] .boss-state.active{color:var(--paper-good);background:#1c38a814;text-shadow:none}
:root[data-theme="notebook"] .boss-state.reward{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .boss-current-name{color:var(--theme-accent)}
:root[data-theme="notebook"] .boss-current-mode,
:root[data-theme="notebook"] .boss-current-combo{color:var(--theme-accent)}
:root[data-theme="notebook"] .boss-current-combo{color:var(--theme-accent)}
:root[data-theme="notebook"] .boss-wins{color:var(--theme-accent)}
:root[data-theme="notebook"] .manual-weapon{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .manual-weapon-stock{color:var(--theme-accent)}
:root[data-theme="notebook"] .manual-weapon-arrow{color:var(--theme-accent)}
:root[data-theme="notebook"] .manual-hit-count{color:var(--theme-accent)}
:root[data-theme="notebook"] .manual-crit-info{color:var(--theme-accent)}
:root[data-theme="notebook"] .last-hit{color:var(--theme-accent)}
:root[data-theme="notebook"] .last-hit.critical{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .personal-damage{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .personal-damage-number{color:var(--theme-accent)}
:root[data-theme="notebook"] .battle-section-title{color:var(--theme-accent)}
:root[data-theme="notebook"] .battle-rank{color:var(--theme-accent)}
:root[data-theme="notebook"] .battle-person-damage{color:var(--theme-accent)}
:root[data-theme="notebook"] .battle-info details summary{color:var(--theme-accent)}
:root[data-theme="notebook"] .damage-next{color:var(--theme-accent)}
:root[data-theme="notebook"] .damage-progress{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .damage-progress-text{color:var(--theme-ink)}
:root[data-theme="notebook"] .damage-milestone{color:var(--theme-accent)}
:root[data-theme="notebook"] .damage-milestone.reached{color:var(--paper-good)}
:root[data-theme="notebook"] #game-info-dialog{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .reward-item{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .reward-item.owned{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .reward-owned{color:var(--theme-accent)}
:root[data-theme="notebook"] .reward-item.owned .reward-owned{color:var(--paper-good)}
:root[data-theme="notebook"] .victory-resource{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .achievement-card{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .achievement-card.owned{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .boss-mode-header{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .reward-chip{color:var(--theme-accent)}
:root[data-theme="notebook"] .mode-set-name{color:var(--theme-accent)}
:root[data-theme="notebook"] .mode-collection summary{color:var(--theme-accent)}
:root[data-theme="notebook"] .dialog-header{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .dialog-close{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .damage-choice-button{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .damage-choice-button.selected{background:#1c38a814;text-shadow:none}
:root[data-theme="notebook"] .damage-segment{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .damage-segment-caption{color:var(--theme-accent)}
:root[data-theme="notebook"] .collection-tile{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .collection-track{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .reward-item.owned .reward-owned{color:var(--paper-good)}
:root[data-theme="notebook"] .biceps-button{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .collection-name{color:var(--theme-accent)}
:root[data-theme="notebook"] .collection-bonus{color:var(--theme-accent)}
:root[data-theme="notebook"] .boss-base-reward{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .boss-health-number{color:var(--theme-accent)}
:root[data-theme="notebook"] .boss-combo-card{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .reward-gallery .reward-item{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .reward-caption{color:var(--theme-accent)}
:root[data-theme="notebook"] .reward-gallery .reward-owned{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] #game-preview-dialog{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .boss-card-daily{color:var(--theme-accent)}
:root[data-theme="notebook"] .boss-medal-count{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .boss-key-count{color:var(--theme-accent)}
:root[data-theme="notebook"] .keychain{color:var(--theme-muted)}
:root[data-theme="notebook"] .keychain.unlocked{color:var(--paper-good)}
:root[data-theme="notebook"] .choice-row{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .choice-row.selected{background:#1c38a814;text-shadow:none}
:root[data-theme="notebook"] .choice-hint{color:var(--theme-accent)}
:root[data-theme="notebook"] .combo-progress{color:var(--theme-muted)}
:root[data-theme="notebook"] .combo-progress.bronze{color:var(--theme-accent)}
:root[data-theme="notebook"] .combo-progress.silver{color:var(--theme-accent)}
:root[data-theme="notebook"] .combo-progress.gold{color:var(--theme-accent)}
:root[data-theme="notebook"] .choice-row.combo-risk{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .combo-budget{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .combo-warning{color:var(--paper-bad);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .help-disclosure{color:var(--theme-muted)}
:root[data-theme="notebook"] .help-disclosure > summary{color:var(--theme-accent)}
:root[data-theme="notebook"] .combo-reward-row{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .farm-gain{color:var(--paper-good)}
:root[data-theme="notebook"] .victory-history summary{color:var(--theme-accent)}
:root[data-theme="notebook"] .resource-reward-amount{color:var(--paper-good)}
:root[data-theme="notebook"] .profile-stat{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .victory-item .item-bonus{color:var(--paper-good)}
:root[data-theme="notebook"] .social-card,
:root[data-theme="notebook"] .social-member{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .social-card:hover,
:root[data-theme="notebook"] .social-member:hover{background:#1c38a814;text-shadow:none}
:root[data-theme="notebook"] .reward-item .item-bonus{color:var(--paper-good)}
:root[data-theme="notebook"] #social .guide-filters button,
:root[data-theme="notebook"] #social input{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] #social .guide-filters button.active{color:var(--theme-accent)}
:root[data-theme="notebook"] .reward-item.owned .item-bonus{color:var(--paper-good)}
:root[data-theme="notebook"] .received-bonus-total{color:var(--paper-good)}
:root[data-theme="notebook"] .received-group summary{color:var(--theme-accent)}
:root[data-theme="notebook"] .compact-reward .item-bonus{color:var(--paper-good)}
:root[data-theme="notebook"] .received-group > summary .item-bonus{color:var(--paper-good)}
:root[data-theme="notebook"] .received-group > summary .resource-reward-name::after{color:var(--theme-accent)}
:root[data-theme="notebook"] .player-profile-guild{color:var(--theme-accent)}
:root[data-theme="notebook"] .player-profile-guild:hover{background:#1c38a814;text-shadow:none}
:root[data-theme="notebook"] .player-achievement{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .achievement-value{color:var(--paper-good)}
:root[data-theme="notebook"] .profile-house{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .profile-status{color:var(--theme-ink)}
:root[data-theme="notebook"] .reputation-value{color:var(--paper-good)}
:root[data-theme="notebook"] .profile-metric{color:var(--theme-ink)}
:root[data-theme="notebook"] .profile-lists button.active{background:#1c38a814;text-shadow:none}
:root[data-theme="notebook"] .profile-reputation button.active{background:#1c38a814;text-shadow:none}
:root[data-theme="notebook"] .profile-list-toggle.active{background:#1c38a814;text-shadow:none}
:root[data-theme="notebook"] .profile-list-toggle[data-list="black"].active{background:#1c38a814;text-shadow:none}
:root[data-theme="notebook"] .damage-track{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .damage-track-threshold{color:var(--paper-violet)}
:root[data-theme="notebook"] .damage-track-marker.reached .damage-track-badge{color:var(--paper-good)}
:root[data-theme="notebook"] .home-fight-state.active{color:var(--paper-good);background:#1c38a814;text-shadow:none}
:root[data-theme="notebook"] .battle-timer{color:var(--paper-good)}
:root[data-theme="notebook"] .home-fight-wins{color:var(--theme-accent)}
:root[data-theme="notebook"] .home-resource-count{color:var(--paper-good)}
:root[data-theme="notebook"] .home-metrics .home-resource{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .home-resource-delta.positive{color:var(--paper-good)}
:root[data-theme="notebook"] .home-resource-delta.negative{color:var(--paper-bad)}
:root[data-theme="notebook"] .home-daily-hint{color:var(--theme-muted)}
:root[data-theme="notebook"] .home-weapons{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .home-weapons-table caption{color:var(--theme-muted)}
:root[data-theme="notebook"] .home-weapons-table th:first-child{color:var(--theme-muted)}
:root[data-theme="notebook"] .home-weapons-table thead th{color:var(--theme-accent)}
:root[data-theme="notebook"] .profile-reputation{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .profile-highlight-metric{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .profile-metric-value{color:var(--paper-good)}
:root[data-theme="notebook"] .profile-daily-damage{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .home-observed-damage{color:var(--theme-muted)}
:root[data-theme="notebook"] .profile-interactions .profile-list-toggle{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .list-toggle-icon{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .profile-list-toggle[data-list="black"] .list-toggle-icon{color:var(--paper-bad);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .list-toggle-label{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .home-weapon-value{color:var(--paper-good)}
:root[data-theme="notebook"] .home-event{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .damage-dashboard-metric{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .damage-dashboard-value{color:var(--paper-good)}
:root[data-theme="notebook"] .damage-hour{color:var(--theme-ink);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .damage-hour[aria-pressed="true"]{color:var(--paper-good);background:#1c38a814;text-shadow:none}
:root[data-theme="notebook"] .damage-hour-selection{color:var(--paper-good)}
:root[data-theme="notebook"] .damage-top-row{color:var(--paper-good);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .battle-leaderboard{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .battle-person.self{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .profile-top-interactions button{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .profile-rank{color:var(--paper-good)}
:root[data-theme="notebook"] .profile-day-damage{color:var(--paper-good)}
:root[data-theme="notebook"] .damage-rewards .reward-track-details > summary{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .reward-track-details > summary:hover{color:var(--theme-accent);background:#1c38a814;text-shadow:none}
:root[data-theme="notebook"] .current-queue-controls button.running{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .damage-date{color:var(--paper-good);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .activity-status{color:var(--paper-good)}
:root[data-theme="notebook"] .activity-day.completed{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .activity-reward{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .home-activities{color:var(--paper-good)}
:root[data-theme="notebook"] .profile-interactions .profile-list-toggle{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .profile-daily-damage{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .profile-damage-title{color:var(--theme-accent)}
:root[data-theme="notebook"] .profile-daily-damage .profile-metric-value{color:var(--theme-ink)}
:root[data-theme="notebook"] .profile-daily-damage .profile-day-damage{color:var(--paper-good)}
:root[data-theme="notebook"] .profile-daily-damage .profile-rank{color:var(--paper-bad)}
:root[data-theme="notebook"] .player-profile-identity > .profile-name{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .monthly-weekday{color:var(--theme-ink)}
:root[data-theme="notebook"] .monthly-day{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .monthly-day.completed{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .vpi-card{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .vpi-current-tier,
:root[data-theme="notebook"] .vpi-damage-left{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .vpi-damage-left{color:var(--paper-violet);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .profile-reputation.negative{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .profile-reputation.negative .reputation-value{color:var(--paper-bad)}
:root[data-theme="notebook"] .profile-reputation button[data-vote="-1"].active{background:#1c38a814;text-shadow:none}
:root[data-theme="notebook"] .profile-reputation.positive .reputation-value{color:var(--paper-good)}
:root[data-theme="notebook"] .profile-daily-damage{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .profile-daily-damage .profile-rank{color:var(--paper-good)}
:root[data-theme="notebook"] .profile-friend-button{color:var(--paper-good);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .profile-friend-button.remove{color:var(--paper-bad);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .damage-axis{color:var(--theme-muted)}
:root[data-theme="notebook"] .damage-hour[aria-pressed="true"]{color:var(--paper-good)}
:root[data-theme="notebook"] .hub-flow-node{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .hub-flow-node:not(:last-child)::after{color:var(--paper-good)}
:root[data-theme="notebook"] .hub-flow-number{color:var(--paper-good)}
:root[data-theme="notebook"] .hub-task.completed{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .hub-task-progress{color:var(--paper-good)}
:root[data-theme="notebook"] .hub-fact{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .hub-game-tab{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .hub-game-tab.active{background:#1c38a814;text-shadow:none}
:root[data-theme="notebook"] .hub-inbox-row{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .hub-session{color:var(--paper-good)}
:root[data-theme="notebook"] .hub-gallery-image{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .hub-slot-field{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .vpi-mine-badge{color:var(--paper-good)}
:root[data-theme="notebook"] .vpi-card.current{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .vpi-expiry{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .vpi-expiry-date{color:var(--paper-good)}
:root[data-theme="notebook"] .vpi-expiry-remaining{color:var(--paper-good)}
:root[data-theme="notebook"] .vpi-expiry.expired .vpi-expiry-remaining{color:var(--paper-bad)}
:root[data-theme="notebook"] .hub-collection-count.complete,
:root[data-theme="notebook"] .hub-damage-progress.complete .resource-reward-amount{color:var(--paper-good)}
:root[data-theme="notebook"] .hub-collection-count.partial,
:root[data-theme="notebook"] .hub-damage-progress.partial .resource-reward-amount{color:var(--theme-accent)}
:root[data-theme="notebook"] .hub-collection-count.empty,
:root[data-theme="notebook"] .hub-damage-progress.empty .resource-reward-amount,
:root[data-theme="notebook"] .hub-damage-progress.unknown .resource-reward-amount{color:var(--theme-muted)}
:root[data-theme="notebook"] .poker-auto-status{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .poker-auto-controls input{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .poker-auto-controls select{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .poker-keep-options label{background:#ffffff38;text-shadow:none}
:root[data-theme="notebook"] .poker-keep-options label:has(input:checked){color:var(--paper-good);background:#1c38a814;text-shadow:none}
:root[data-theme="notebook"] .poker-live-draw{color:var(--theme-ink)}
:root[data-theme="notebook"] .theme-field input,
:root[data-theme="notebook"] .theme-field select{color:var(--theme-accent);background:#ffffff38;text-shadow:none}
@media (max-width: 600px){
:root[data-theme="notebook"] .boss-sets-cell::before{color:var(--theme-accent)}
}
/* Themes are an extra layer. No theme rules apply to the original game palette. */
:root[data-theme="notebook"]{--theme-paper:#fbfaf3;--theme-accent:#1c38a8;--theme-ink:#1c38a8;--theme-muted:#52638b;--theme-line:#9daac3;--theme-grid:#4678c82e;color-scheme:light;color:var(--theme-ink);background:#26282b}
:root[data-theme="notebook"] body{background:radial-gradient(ellipse at top,#414348,#1c1e21 70%);color:var(--theme-ink)}
:root[data-theme="notebook"] .shell{margin:20px auto;padding:0 30px 28px;border:1px solid #dcd6c4;border-radius:4px;background:linear-gradient(90deg,transparent 18px,#c62f2866 18px,#c62f2866 20px,transparent 20px),linear-gradient(var(--theme-grid) 1px,transparent 1px) 0 0/22px 22px,linear-gradient(90deg,var(--theme-grid) 1px,transparent 1px) 0 0/22px 22px,var(--theme-paper);box-shadow:0 3px 0 #dcd6c4,0 6px 0 #cfc8b4,0 18px 36px #0005}
:root[data-theme="notebook"] *{font-family:"Segoe Print","Comic Sans MS",cursive!important}
:root[data-theme="notebook"] :is(h1,h2,.brand strong,.boss-current-name){color:var(--theme-accent)}
:root[data-theme="notebook"] :is(.page-heading h1,.section-title h2){text-decoration:underline wavy #c62f28;text-decoration-thickness:1px;text-underline-offset:6px}
:root[data-theme="notebook"] .topbar{border-bottom:2px solid var(--theme-line)}
:root[data-theme="notebook"] .brand-mark{background:var(--theme-paper);border:2px solid var(--theme-accent);color:var(--theme-accent);box-shadow:none;border-radius:8px 3px 7px 4px;transform:rotate(-4deg)}
:root[data-theme="notebook"] .tabs{border-bottom-color:var(--theme-line)}
:root[data-theme="notebook"] .tab{color:var(--theme-muted)}
:root[data-theme="notebook"] .tab.active{color:var(--theme-accent);border-color:var(--theme-accent);background:#1c38a80a}
:root[data-theme="notebook"] .card,:root[data-theme="notebook"] .guide-intro{background:#ffffff38;border-color:var(--theme-line);border-radius:6px 3px 7px 4px;box-shadow:0 3px 0 #1c38a811}
:root[data-theme="notebook"] :is(dialog:not(.game-maintenance),#game-info-dialog,#game-preview-dialog){background:linear-gradient(var(--theme-grid) 1px,transparent 1px) 0 0/22px 22px,linear-gradient(90deg,var(--theme-grid) 1px,transparent 1px) 0 0/22px 22px,var(--theme-paper);color:var(--theme-ink);border-color:var(--theme-accent);box-shadow:0 5px 0 #dcd6c4,0 15px 40px #0005}
:root[data-theme="notebook"] :is(.dialog-header,.player-room-dialog .dialog-header){background:var(--theme-paper);color:var(--theme-ink);text-shadow:none;border-bottom:1px solid var(--theme-line)}
:root[data-theme="notebook"] dialog.player-room-dialog.has-room{background-image:linear-gradient(#fbfaf3e8,#fbfaf3e8),var(--player-room)!important}
:root[data-theme="notebook"] :is(button,summary){color:var(--theme-ink)}
:root[data-theme="notebook"] button{background:var(--theme-paper);border-color:var(--theme-line);text-shadow:none}
:root[data-theme="notebook"] :is(.primary,.icon-button,.secondary,.dialog-close,.guide-filter,.guide-button,.social-card,.boss-card,.manual-weapon-toggle,.manual-hit-option,.profile-top-interactions button,.home-event,.hub-mode,.hub-action,.hub-task,.queue-preset){background:var(--theme-paper);color:var(--theme-ink);border-color:var(--theme-line);box-shadow:none}
:root[data-theme="notebook"] .primary{border:2px solid var(--theme-accent);color:var(--theme-accent);border-radius:9px 4px 8px 5px;font-weight:700}
:root[data-theme="notebook"] button:hover:not(:disabled){background:#1c38a812;color:var(--theme-accent)}
:root[data-theme="notebook"] :is(button.active,button[aria-pressed="true"],.guide-filter.active,.guide-item.selected,.choice-row.selected,.boss-card.selected,.guide-record.selected){background:#1c38a814;color:var(--theme-accent);border-color:var(--theme-accent);box-shadow:inset 3px 0 var(--theme-accent)}
:root[data-theme="notebook"] :is(input,select,textarea){background:var(--theme-paper)!important;color:var(--theme-ink)!important;border-color:var(--theme-line)!important;accent-color:var(--theme-accent);color-scheme:light}
:root[data-theme="notebook"] :is(input,select,textarea):focus-visible,:root[data-theme="notebook"] button:focus-visible,:root[data-theme="notebook"] summary:focus-visible{outline:2px dashed var(--theme-accent);outline-offset:3px}
:root[data-theme="notebook"] :is(.muted,.hint,.eyebrow,.brand small,.report,.guide-action-note,.guide-subtitle,.guide-source,.guide-note,.queue-meta,.home-fight-meta,.battle-timer,.battle-rank,.boss-current-mode,.boss-current-combo,.boss-wins,.section-title span,.home-fight-wins,.battle-person-name,.battle-person-damage,.battle-section-title,.resource-reward-name,.resource-reward-amount,.home-resource-count,.home-weapon-value,.player-achievement-name,.profile-metric-value,.profile-rank,.profile-day-damage,.profile-name,.profile-guild-name,.achievement-copy,.theme-field,.guide-field,.guide-field span,.reward-caption,.reward-owned,.queue-options label){color:var(--theme-ink);text-shadow:none}
:root[data-theme="notebook"] :is(.muted,.hint,.brand small,.guide-action-note,.guide-source,.battle-rank,.queue-meta){color:var(--theme-muted)}
:root[data-theme="notebook"] :is(.home-weapons,.home-resource,.home-metrics,.home-metrics>*,.battle-leaderboard,.battle-person.self,.manual-weapon,.queue-item,.queue-history-row,.resource-reward,.resource-reward-row,.reward-item,.reward-set-description,.achievement-card,.player-achievement,.profile-highlight-metric,.profile-daily-damage,.profile-reputation,.profile-house,.settings-section,.damage-dashboard-metric,.damage-hour,.damage-top-row,.guide-mode,.boss-mode-option,.mode-option,.collection-tile,.collection-progress,.hub-task,.hub-map-row,.hub-flow-node,.hub-inbox-row,.activity-day,.activity-reward,.monthly-day,.vpi-card,.vpi-expiry,.guild-message,.social-player,.social-guild){background:#ffffff38;color:var(--theme-ink);border-color:var(--theme-line);box-shadow:none;text-shadow:none}
:root[data-theme="notebook"] :is(.reward-item.owned,.achievement-card.owned,.player-achievement.confirmed,.monthly-day.completed){background:#276b3610;border-color:var(--paper-good)}
:root[data-theme="notebook"] :is(.reward-item.owned .item-bonus,.reward-item.owned .reward-owned,.received-bonus-total,.item-bonus,.achievement-value,.home-resource-delta.positive){color:var(--paper-good)}
:root[data-theme="notebook"] :is(.reward-item.missing .item-bonus,.reward-item.missing .reward-caption,.home-resource-delta.negative,.combo-warning,.danger){color:var(--paper-bad)}
:root[data-theme="notebook"] .collection-count{color:color-mix(in srgb,var(--collection-color) 40%,#172319)}
:root[data-theme="notebook"] :is(.boss-hp-numbers,.boss-hp-percent){color:#fff;text-shadow:0 1px 3px #000}
:root[data-theme="notebook"] :is(.battle-leaderboard>details,.battle-person,.home-weapons-table th,.home-weapons-table td,.queue-options,.guide-section,.received-group>summary){border-color:var(--theme-line)}
:root[data-theme="notebook"] .help-disclosure{color:var(--theme-muted)}
:root[data-theme="notebook"] .help-disclosure>summary{background:var(--theme-paper);color:var(--theme-accent);border-color:var(--theme-line)}
:root[data-theme="notebook"] .local-pill{background:#276b3612;color:var(--paper-good);border-color:var(--paper-good)}
:root[data-theme="notebook"] .notice{background:var(--theme-paper);color:var(--theme-ink);border-color:var(--theme-accent);box-shadow:0 4px 16px #0003}
:root[data-theme="notebook"] .home-resource-delta{color:#465f49}
:root[data-theme="notebook"] :is(.guide-list,.guide-actions,.queue-editor,.combo-budget,.combo-reward-row,.guild-message,.profile-status,.profile-portrait,.personal-damage,.received-group>summary,.profile-interactions .profile-list-toggle){background:#ffffff38;color:var(--theme-ink);border-color:var(--theme-line);box-shadow:none}
:root[data-theme="notebook"] .guide-actions :is(label,.choice-title,.choice-hint){color:var(--theme-ink)}
:root[data-theme="notebook"] :is(.battle-person-link,.player-profile-guild,.reward-image-button){background:transparent}
:root[data-theme="notebook"] .choice-row.selected{background:#1c38a814;color:var(--theme-accent);border-color:var(--theme-accent)}
:root[data-theme="notebook"] :is(.guide-item-meta,.guide-fact-label,.guide-fact-value,.guide-description,.checkpoint-meta,.checkpoint-rewards,.choice-hint,.combo-progress,.queue-count,.boss-card-daily,.boss-key-count,.keychain,.home-weapons-table th,.home-weapons-table td,.home-weapons-table th div,.manual-crit-info,.manual-weapon-stock,.manual-hit-count,.profile-rating-box,.profile-guild-name,.home-weapons-table caption){color:var(--theme-ink)}
:root[data-theme="notebook"] :is(.boss-state.active,.keychain.unlocked,.home-fight-state.active){color:var(--paper-good)}
:root[data-theme="notebook"] .choice-row.combo-risk,:root[data-theme="notebook"] .combo-warning{background:#b32c2510;color:var(--paper-bad);border-color:var(--paper-bad)}
:root[data-theme="notebook"] :is(.home-resource-count,.home-resource-balance,.home-weapon-value,.resource-reward-amount,.battle-person-damage,.profile-metric-value,.victory-leader-damage,.personal-damage-number,.farm-total,.achievement-value,.damage-dashboard-value){font-family:"Segoe UI",Arial,sans-serif!important;font-variant-numeric:tabular-nums;overflow-wrap:normal;word-break:normal}
:root[data-theme="notebook"] .home-metrics .home-resource-count{font-size:12px;white-space:nowrap}
:root[data-theme="notebook"] .glyph{background:#1c38a80d;color:var(--theme-accent);border:1px solid var(--theme-line);border-radius:4px}
:root[data-theme="notebook"] .game-maintenance h2{color:#f0d4aa}
:root[data-theme="notebook"] #notice{background:var(--theme-paper);color:var(--theme-ink);border-color:var(--theme-accent)}
/* Custom palettes use the same components. Text contrast is chosen from the card color. */
:root[data-custom-theme="true"][data-theme="game"]{color:var(--theme-ink)}
:root[data-custom-theme="true"][data-theme="game"] body{background:var(--theme-paper);color:var(--theme-ink)}
:root[data-custom-theme="true"][data-theme="game"] :is(.card,.home-weapons,.home-metrics>*,.battle-leaderboard,.settings-section,.queue-item,.resource-reward,.reward-item,.achievement-card,.player-achievement,.social-card,.guide-intro,dialog,#game-info-dialog,#game-preview-dialog,.dialog-header){background:var(--theme-paper);color:var(--theme-ink);border-color:var(--theme-line)}
:root[data-custom-theme="true"][data-theme="game"] :is(h1,h2,.boss-current-name,.battle-section-title,.report,.home-resource-count,.home-weapon-value,.profile-metric-value,.resource-reward-name,.resource-reward-amount,.player-achievement-name,.theme-field){color:var(--theme-ink)}
:root[data-custom-theme="true"][data-theme="game"] :is(.muted,.hint,.brand small,.battle-person-name,.battle-person-damage,.guide-item-name,.guide-item-meta,.choice-hint,.boss-current-mode,.boss-current-combo,.boss-wins,.queue-meta,.battle-timer,.home-fight-mode,.home-fight-wins,.home-weapons-table th,.home-weapons-table td,.home-weapons-table th div){color:var(--theme-ink)}
:root[data-custom-theme="true"][data-theme="game"] :is(input,select,textarea){background:var(--theme-paper)!important;color:var(--theme-ink)!important;border-color:var(--theme-line)!important;accent-color:var(--theme-accent)}
:root[data-custom-theme="true"][data-theme="game"] :is(.primary,.tab.active,.guide-filter.active){background:var(--theme-accent);color:var(--theme-paper);border-color:var(--theme-accent)}
:root[data-custom-theme="true"] .damage-rewards{background:linear-gradient(#4678c82e 1px,transparent 1px) 0 0/22px 22px,linear-gradient(90deg,#4678c82e 1px,transparent 1px) 0 0/22px 22px,#fbfaf3}
.theme-controls{display:grid;gap:12px}.theme-controls p{margin:0;font-size:12px}.theme-field{display:flex;flex-direction:column;gap:5px;font-size:13px}.theme-field input,.theme-field select{min-height:38px;background:#18221c;color:#e8dfca;border:1px solid #647052;border-radius:7px;padding:7px 10px;max-width:100%;width:100%}.theme-field input[type="color"]{padding:3px;width:100%;max-width:140px;height:40px;cursor:pointer}.theme-controls>button{justify-self:start}.theme-controls [hidden]{display:none}
@media(max-width:600px){:root[data-theme="notebook"] .shell{margin:8px auto;padding:0 18px 20px;background-image:linear-gradient(90deg,transparent 8px,#c62f2866 8px,#c62f2866 10px,transparent 10px),linear-gradient(var(--theme-grid) 1px,transparent 1px),linear-gradient(90deg,var(--theme-grid) 1px,transparent 1px);background-size:auto,22px 22px,22px 22px}:root[data-theme="notebook"] .top-actions{gap:6px}:root[data-theme="notebook"] .card{padding:14px}:root[data-theme="notebook"] .brand small{letter-spacing:.5px}:root[data-theme="notebook"] .home-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:360px){:root[data-theme="notebook"] .home-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
.notebook-pen .notebook-pencil{display:none}
:root[data-theme-variant="graphite"] .notebook-pen .notebook-ballpen{display:none}
:root[data-theme-variant="graphite"] .notebook-pen .notebook-pencil{display:block;filter:drop-shadow(2px 3px 2px #34362e35)}
:root[data-theme-variant="graphite"] .damage-rewards{--notebook-ink:#34352f}
/* Soft graphite rubbed across warm grey notebook paper. */
:root[data-theme="notebook"][data-theme-variant="graphite"]{--theme-paper:#b9b6ab;--theme-accent:#35352f;--theme-ink:#34352f;--theme-muted:#55554c;--theme-line:#7f8177;--theme-grid:#585e5630;--graphite-smears:radial-gradient(ellipse 190px 28px at 23% 16%,#33352d26,transparent 76%),radial-gradient(ellipse 260px 35px at 76% 42%,#383a3223,transparent 80%),radial-gradient(ellipse 190px 48px at 32% 74%,#34362e18,transparent 80%);background:#3f423c}
:root[data-theme-variant="graphite"] body{background:radial-gradient(ellipse at top,#62655e,#3f423d 85%)}
:root[data-theme-variant="graphite"] .shell{background:var(--graphite-smears),repeating-linear-gradient(168deg,transparent 0 43px,#494b4210 44px,transparent 47px 102px),linear-gradient(90deg,transparent 18px,#80695c66 18px,#80695c66 20px,transparent 20px),linear-gradient(var(--theme-grid) 1px,transparent 1px) 0 0/22px 22px,linear-gradient(90deg,var(--theme-grid) 1px,transparent 1px) 0 0/22px 22px,var(--theme-paper);border-color:#a4a297;box-shadow:0 3px 0 #a4a297,0 6px 0 #96958a,0 18px 36px #0004}
:root[data-theme-variant="graphite"] :is(.card,.guide-intro,.home-weapons,.settings-section,.battle-leaderboard){background:radial-gradient(ellipse 160px 14px at 80% 85%,#33352d12,transparent 80%),linear-gradient(162deg,#dedbd024,#85897d0a);box-shadow:0 2px 0 #45483e15;border-color:var(--theme-line)}
:root[data-theme-variant="graphite"] :is(.page-heading h1,.section-title h2){text-decoration-color:#6b6257}
:root[data-theme-variant="graphite"] :is(h1,h2,.brand strong,.guide-item-name,.boss-current-name,.choice-title){text-shadow:.4px .6px 1px #30322c35}
:root[data-theme-variant="graphite"] .primary{background:linear-gradient(166deg,#cbc8ba,#b9b6ab);border-color:#57594e;box-shadow:inset 0 -2px 4px #53554818}
:root[data-theme-variant="graphite"] .primary:hover:not(:disabled){background:#cfccbf;color:var(--theme-accent)}
:root[data-theme-variant="graphite"] :is(button.active,button[aria-pressed="true"],.tab.active,.guide-filter.active,.guide-item.selected,.choice-row.selected){background:#44473e15;color:var(--theme-accent);border-color:var(--theme-accent)}
:root[data-theme-variant="graphite"] .glyph{background:#41443b12;color:var(--theme-accent)}
:root[data-theme-variant="graphite"] .damage-rewards{background:var(--graphite-smears),linear-gradient(90deg,transparent 18px,#80695c66 18px,#80695c66 20px,transparent 20px),linear-gradient(var(--theme-grid) 1px,transparent 1px) 0 0/22px 22px,linear-gradient(90deg,var(--theme-grid) 1px,transparent 1px) 0 0/22px 22px,var(--theme-paper);border-color:#929589;box-shadow:0 2px 0 #a4a297,0 4px 0 #96958a,0 8px 18px #0002}
:root[data-theme-variant="graphite"] .damage-rewards :is(.reward-track-heading,.reward-track-heading *,.notebook-progress,.notebook-milestone,.reward-detail-row,.muted){color:var(--theme-ink);text-decoration-color:#6b6257}
:root[data-theme-variant="graphite"] .damage-rewards .notebook-milestone.done,:root[data-theme-variant="graphite"] .damage-rewards .notebook-milestone.done .notebook-reward-icons::before{color:#28613a}
:root[data-theme-variant="graphite"] :is(dialog:not(.game-maintenance),#game-info-dialog,#game-preview-dialog){background:var(--graphite-smears),linear-gradient(var(--theme-grid) 1px,transparent 1px) 0 0/22px 22px,linear-gradient(90deg,var(--theme-grid) 1px,transparent 1px) 0 0/22px 22px,var(--theme-paper);border-color:#73776b;box-shadow:0 5px 0 #96958a,0 15px 40px #0005}
:root[data-theme-variant="graphite"] .help-disclosure>summary{color:var(--theme-ink);border-color:var(--theme-line);background:var(--theme-paper)}
@media(max-width:600px){:root[data-theme-variant="graphite"] .shell{background:var(--graphite-smears),linear-gradient(90deg,transparent 8px,#80695c66 8px,#80695c66 10px,transparent 10px),linear-gradient(var(--theme-grid) 1px,transparent 1px) 0 0/22px 22px,linear-gradient(90deg,var(--theme-grid) 1px,transparent 1px) 0 0/22px 22px,var(--theme-paper)}}
/* Torn paper surfaces are decoration only; controls and focus outlines are never clipped. */
:root[data-theme="notebook"]{
  --paper-left:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20preserveAspectRatio%3D%22none%22%20viewBox%3D%220%200%2024%20160%22%3E%3Cpolygon%20points%3D%2224%2C0%205%2C0%206%2C9%202%2C15%208%2C17%207%2C26%204%2C29%206%2C37%205%2C47%2010%2C50%2017%2C54%2012%2C58%207%2C59%204%2C64%206%2C73%202%2C75%208%2C80%203%2C87%206%2C100%2014%2C102%2011%2C106%204%2C109%203%2C118%207%2C121%205%2C135%209%2C140%201%2C147%204%2C150%206%2C160%2024%2C160%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E");
  --paper-right:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20preserveAspectRatio%3D%22none%22%20viewBox%3D%220%200%2024%20160%22%3E%3Cpolygon%20points%3D%220%2C0%2019%2C0%2018%2C9%2022%2C15%2016%2C17%2017%2C26%2020%2C29%2018%2C37%2019%2C47%2014%2C50%207%2C54%2012%2C58%2017%2C59%2020%2C64%2018%2C73%2022%2C75%2016%2C80%2021%2C87%2018%2C100%2010%2C102%2013%2C106%2020%2C109%2021%2C118%2017%2C121%2019%2C135%2015%2C140%2023%2C147%2020%2C150%2018%2C160%200%2C160%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E");
  --paper-top:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20preserveAspectRatio%3D%22none%22%20viewBox%3D%220%200%20160%2024%22%3E%3Cpolygon%20points%3D%220%2C24%200%2C5%209%2C6%2015%2C2%2017%2C8%2026%2C7%2029%2C4%2037%2C6%2047%2C5%2050%2C10%2054%2C17%2058%2C12%2059%2C7%2064%2C4%2073%2C6%2075%2C2%2080%2C8%2087%2C3%20100%2C6%20102%2C14%20106%2C11%20109%2C4%20118%2C3%20121%2C7%20135%2C5%20140%2C9%20147%2C1%20150%2C4%20160%2C6%20160%2C24%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E");
  --paper-bottom:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20preserveAspectRatio%3D%22none%22%20viewBox%3D%220%200%20160%2024%22%3E%3Cpolygon%20points%3D%220%2C0%200%2C19%209%2C18%2015%2C22%2017%2C16%2026%2C17%2029%2C20%2037%2C18%2047%2C19%2050%2C14%2054%2C7%2058%2C12%2059%2C17%2064%2C20%2073%2C18%2075%2C22%2080%2C16%2087%2C21%20100%2C18%20102%2C10%20106%2C13%20109%2C20%20118%2C21%20121%2C17%20135%2C19%20140%2C15%20147%2C23%20150%2C20%20160%2C18%20160%2C0%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E");
  --paper-margin:#c62f2855;
  --paper-shadow:#4b453634;
  --paper-wear:radial-gradient(ellipse at 12% 18%,#92764726,transparent 33%),radial-gradient(ellipse at 85% 72%,#fff6,transparent 32%),radial-gradient(ellipse at 66% 22%,#675b3e16,transparent 39%),linear-gradient(90deg,#80612e28,transparent 12% 89%,#80612e2c),linear-gradient(#80612e20,transparent 14% 86%,#80612e30),url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22220%22%20height%3D%22220%22%3E%3Cfilter%20id%3D%22grain%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.7%22%20numOctaves%3D%223%22%20seed%3D%2212%22%20stitchTiles%3D%22stitch%22%2F%3E%3CfeColorMatrix%20type%3D%22saturate%22%20values%3D%220%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20filter%3D%22url(%23grain)%22%20opacity%3D%22.1%22%2F%3E%3C%2Fsvg%3E");
  --paper-sheet:linear-gradient(90deg,transparent 18px,var(--paper-margin) 18px,var(--paper-margin) 20px,transparent 20px),
    linear-gradient(var(--theme-grid) 1px,transparent 1px) 0 0/22px 22px,
    linear-gradient(90deg,var(--theme-grid) 1px,transparent 1px) 0 0/22px 22px,var(--theme-paper);
}
:root[data-theme-variant="graphite"]{
  --paper-margin:#80695c66;--paper-shadow:#35382d4d;
  --paper-sheet:var(--graphite-smears),linear-gradient(90deg,transparent 18px,var(--paper-margin) 18px,var(--paper-margin) 20px,transparent 20px),
    linear-gradient(var(--theme-grid) 1px,transparent 1px) 0 0/22px 22px,
    linear-gradient(90deg,var(--theme-grid) 1px,transparent 1px) 0 0/22px 22px,var(--theme-paper);
}
:root[data-theme="notebook"] :is(.shell,.card,.guide-intro,.home-weapons,.damage-rewards,.battle-leaderboard,.settings-section){
  position:relative;isolation:isolate;background:none!important;border-color:transparent;border-radius:0;box-shadow:none!important;
}
:root[data-theme="notebook"] :is(.shell,.card,.guide-intro,.home-weapons,.damage-rewards,.battle-leaderboard,.settings-section)::before,
:root[data-theme="notebook"] :is(.shell,.card,.guide-intro,.home-weapons,.damage-rewards,.battle-leaderboard,.settings-section)::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  mask-image:linear-gradient(#000,#000),var(--paper-left),var(--paper-right),var(--paper-top),var(--paper-bottom);
  mask-size:calc(100% - var(--paper-edge) * 2) calc(100% - var(--paper-edge) * 2),var(--paper-edge) 160px,var(--paper-edge) 160px,160px var(--paper-edge),160px var(--paper-edge);
  mask-position:center,left top,right top,left top,left bottom;
  mask-repeat:no-repeat,repeat-y,repeat-y,repeat-x,repeat-x;
}
:root[data-theme="notebook"] :is(.shell,.card,.guide-intro,.home-weapons,.damage-rewards,.battle-leaderboard,.settings-section)::before{
  z-index:-2;background:var(--paper-shadow);transform:translate(1px,2px);
}
:root[data-theme="notebook"] :is(.shell,.card,.guide-intro,.home-weapons,.damage-rewards,.battle-leaderboard,.settings-section)::after{
  z-index:-1;background:var(--paper-wear),var(--paper-sheet);
}
:root[data-theme="notebook"] .shell{
  --paper-wear:radial-gradient(ellipse at 12% 18%,#92764726,transparent 33%),radial-gradient(ellipse at 85% 72%,#fff6,transparent 32%),radial-gradient(ellipse at 66% 22%,#675b3e16,transparent 39%),linear-gradient(90deg,#80612e28,transparent 12% 89%,#80612e2c),linear-gradient(#80612e20,transparent 14% 86%,#80612e30),url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22220%22%20height%3D%22220%22%3E%3Cfilter%20id%3D%22grain%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.7%22%20numOctaves%3D%223%22%20seed%3D%2212%22%20stitchTiles%3D%22stitch%22%2F%3E%3CfeColorMatrix%20type%3D%22saturate%22%20values%3D%220%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20filter%3D%22url(%23grain)%22%20opacity%3D%22.1%22%2F%3E%3C%2Fsvg%3E");
}
:root[data-theme="notebook"] :is(.card,.guide-intro,.home-weapons,.damage-rewards,.battle-leaderboard,.settings-section){
  --paper-wear:radial-gradient(ellipse at 12% 18%,#92764726,transparent 33%),radial-gradient(ellipse at 85% 72%,#fff6,transparent 32%),radial-gradient(ellipse at 66% 22%,#675b3e16,transparent 39%),linear-gradient(90deg,#80612e28,transparent 12% 89%,#80612e2c),linear-gradient(#80612e20,transparent 14% 86%,#80612e30),url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22220%22%20height%3D%22220%22%3E%3Cfilter%20id%3D%22grain%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.7%22%20numOctaves%3D%223%22%20seed%3D%2212%22%20stitchTiles%3D%22stitch%22%2F%3E%3CfeColorMatrix%20type%3D%22saturate%22%20values%3D%220%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20filter%3D%22url(%23grain)%22%20opacity%3D%22.1%22%2F%3E%3C%2Fsvg%3E");
}
:root[data-theme="notebook"] .card:nth-of-type(3n),
:root[data-theme="notebook"] .home-weapons,
:root[data-theme="notebook"] .damage-rewards{
  --paper-wear:radial-gradient(ellipse at 12% 18%,#92764726,transparent 33%),radial-gradient(ellipse at 85% 72%,#fff6,transparent 32%),radial-gradient(ellipse at 66% 22%,#675b3e16,transparent 39%),linear-gradient(90deg,#80612e28,transparent 12% 89%,#80612e2c),linear-gradient(#80612e20,transparent 14% 86%,#80612e30),url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22220%22%20height%3D%22220%22%3E%3Cfilter%20id%3D%22grain%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.7%22%20numOctaves%3D%223%22%20seed%3D%2212%22%20stitchTiles%3D%22stitch%22%2F%3E%3CfeColorMatrix%20type%3D%22saturate%22%20values%3D%220%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20filter%3D%22url(%23grain)%22%20opacity%3D%22.1%22%2F%3E%3C%2Fsvg%3E");
}
:root[data-theme="notebook"] :is(.primary,.secondary,.guide-group,.boss-group,.choice-row,.theme-controls select){
  border-radius:9px 3px 7px 4px/4px 8px 3px 7px;border-bottom-width:2px;
}
:root[data-theme="notebook"] :is(.guide-item,.guide-actions,.queue-editor,.resource-reward,.home-resource,.player-achievement,.profile-highlight-metric,.profile-daily-damage,.reward-item,.theme-field input){
  border-radius:3px 7px 4px 8px/7px 3px 8px 4px;
}
:root[data-theme="notebook"] :is(dialog:not(.game-maintenance),#game-info-dialog,#game-preview-dialog){
  border-radius:3px 9px 4px 7px;border-width:1px 2px 2px 1px;
}
@media(max-width:600px){
  :root[data-theme="notebook"]{--paper-sheet:linear-gradient(90deg,transparent 8px,var(--paper-margin) 8px,var(--paper-margin) 10px,transparent 10px),
    linear-gradient(var(--theme-grid) 1px,transparent 1px) 0 0/22px 22px,
    linear-gradient(90deg,var(--theme-grid) 1px,transparent 1px) 0 0/22px 22px,var(--theme-paper)}
  :root[data-theme="notebook"] .shell{padding-left:20px;padding-right:20px}
}

/* Aging replaces the prominent folds: broad scuffs, faded patches and browned edges. */
:root[data-theme="notebook"] :is(.manual-hits-head strong,.manual-weapon-arrow){color:var(--theme-ink)}
:root[data-theme="notebook"]{--theme-paper:#f0e5c6;--paper-edge:12px}
:root[data-theme="notebook"][data-theme-variant="graphite"]{--theme-paper:#b8b09a}
:root[data-theme="notebook"] .shell{--paper-edge:24px}
:root[data-theme="notebook"] :is(.card,.home-weapons,.damage-rewards,.guide-intro,.battle-leaderboard,.settings-section){--paper-edge:12px}
:root[data-theme="notebook"] .card:nth-of-type(3n),:root[data-theme="notebook"] .home-weapons,:root[data-theme="notebook"] .damage-rewards{--paper-wear:radial-gradient(ellipse at 82% 12%,#7e603325,transparent 37%),radial-gradient(ellipse at 28% 68%,#fff7,transparent 34%),radial-gradient(ellipse at 8% 90%,#a3783930,transparent 30%),linear-gradient(90deg,#80612e35,transparent 14% 84%,#80612e30),linear-gradient(#80612e26,transparent 18% 86%,#80612e38),url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22220%22%20height%3D%22220%22%3E%3Cfilter%20id%3D%22grain%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.7%22%20numOctaves%3D%223%22%20seed%3D%2212%22%20stitchTiles%3D%22stitch%22%2F%3E%3CfeColorMatrix%20type%3D%22saturate%22%20values%3D%220%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20filter%3D%22url(%23grain)%22%20opacity%3D%22.1%22%2F%3E%3C%2Fsvg%3E")}

/* Writing follows a 22px notebook row. Wear contains no diagonal fold strokes. */
:root[data-theme="notebook"]{font-size:16px;line-height:22px;--theme-line:#7183a6;--theme-grid:#4678c83b}
:root[data-theme="notebook"][data-theme-variant="graphite"]{--theme-line:#65695c;--theme-grid:#585e5640}
:root[data-theme="notebook"] :is(.page-heading h1,.section-title h2){text-decoration:none}
:root[data-theme="notebook"] :is(.page-heading h1,.section-title h2,.battle-section-title,.manual-hits-head strong){text-decoration:underline;text-decoration-color:#c62f2870;text-decoration-thickness:2px;text-underline-offset:4px}
:root[data-theme="notebook"] .topbar{height:88px}
:root[data-theme="notebook"] .tabs{margin:22px 0;gap:6px}
:root[data-theme="notebook"] .tab{padding:10px 16px;line-height:22px;min-height:44px}
:root[data-theme="notebook"] .page-heading{margin-bottom:22px}
:root[data-theme="notebook"] .page-heading h1{line-height:44px;margin:0;font-size:30px}
:root[data-theme="notebook"] :is(.eyebrow,.brand strong,.brand small){line-height:22px}
:root[data-theme="notebook"] :is(.card,.guide-intro,.home-weapons,.damage-rewards,.battle-leaderboard,.settings-section){padding:22px;margin-bottom:22px}
:root[data-theme="notebook"] :is(p,li,summary,button,label,td,th,.report,.home-resource-name,.home-resource-count,.home-resource-balance,.battle-person-name,.battle-person-damage,.queue-meta,.choice-title,.choice-hint,.player-achievement-name,.reward-caption,.theme-field){line-height:22px}
:root[data-theme="notebook"] p{margin-top:0;margin-bottom:22px}
:root[data-theme="notebook"] :is(.card h2,.section-title h2,.battle-section-title){line-height:22px;font-size:18px}
:root[data-theme="notebook"] .card-head{min-height:22px;margin-bottom:22px}
:root[data-theme="notebook"] .boss-current-name{font-size:32px;line-height:44px;margin:0}
:root[data-theme="notebook"] :is(.home-resource,.battle-person,.queue-item,.choice-row,.player-achievement){padding-top:10px;padding-bottom:10px}
:root[data-theme="notebook"] :is(.tab.active,.guide-item.selected,.choice-row.selected,button[aria-pressed="true"]){background:#1c38a828;border-color:var(--theme-accent);box-shadow:inset 3px 0 var(--theme-accent)}
:root[data-theme-variant="graphite"] :is(.tab.active,.guide-item.selected,.choice-row.selected,button[aria-pressed="true"]){background:#44473e2b}
:root[data-theme="notebook"] :is(.primary,.secondary,.guide-filter,.manual-weapon,.home-resource,.player-achievement){border-color:var(--theme-line)}
:root[data-theme="notebook"] :is(.primary,.reward-item.owned,.player-achievement.confirmed){border-width:2px}
:root[data-theme="notebook"] .help-disclosure>summary{border-width:2px}

.hp-notebook-canvas,.hp-notebook-brush{display:none;pointer-events:none}
:root[data-theme="notebook"] .boss-hp{margin:0 0 22px}
:root[data-theme="notebook"] .boss-hp-bar{height:88px;overflow:visible;background:transparent;border:0;border-radius:0;box-shadow:none}
:root[data-theme="notebook"] .boss-hp-fill{display:none}
:root[data-theme="notebook"] .hp-notebook-canvas{display:block;position:absolute;inset:0;width:100%;height:88px}
:root[data-theme="notebook"] .hp-notebook-brush{display:block;position:absolute;left:0;top:0;width:84px;height:24px;z-index:2}
:root[data-theme="notebook"] .hp-notebook-brush[hidden]{display:none}
.hp-notebook-brush svg{display:block;width:84px;height:24px;transform:rotate(-42deg);transform-origin:left center;filter:drop-shadow(2px 3px 2px #403b3033)}
.hp-notebook-brush.idle svg{transform:rotate(-55deg) translate(6px,-10px)}
.hp-notebook-brush.at-edge svg{transform:rotate(-138deg)}
.hp-notebook-brush.at-edge.idle svg{transform:rotate(-125deg) translate(6px,-10px)}
:root[data-theme="notebook"] .boss-hp-numbers{inset:calc(var(--hp-sketch-top,22px) + 11px) auto auto 22px;display:block;width:max-content;max-width:calc(100% - 88px);height:22px;padding:0 6px;background:#fffefbe8;color:var(--theme-ink);text-shadow:none;border-radius:3px;font-size:14px;font-weight:700;line-height:22px;white-space:nowrap}
:root[data-theme="notebook"] .boss-hp-percent{inset:calc(var(--hp-sketch-top,22px) + 11px) 22px auto auto;height:22px;min-width:44px;justify-content:center;padding:0 3px;background:#fffefbe8;color:var(--theme-ink);text-shadow:none;border-radius:3px;font-size:14px;line-height:22px}
@media(max-width:600px){
  :root[data-theme="notebook"] .shell{padding-left:20px;padding-right:20px}
  :root[data-theme="notebook"] :is(.card,.guide-intro,.home-weapons,.damage-rewards,.battle-leaderboard,.settings-section){padding:22px 14px}
  :root[data-theme="notebook"] .tab{padding:10px 12px}
  :root[data-theme="notebook"] :is(.boss-hp-numbers,.boss-hp-percent){font-size:12px}
  :root[data-theme="notebook"] .boss-hp-numbers{left:12px;padding:0 3px}
  :root[data-theme="notebook"] .boss-hp-percent{right:12px}
}
@media(prefers-reduced-motion:reduce){.hp-notebook-brush{display:none!important}}

/* Notebook grid. Every block starts and ends on a 22px line of the sheet; text sits in one cell per line. */
:root[data-theme="notebook"]{--cell:22px}
:root[data-theme="notebook"] .shell{box-sizing:border-box;max-width:none;padding:0 calc(var(--cell) * 2) calc(var(--cell) * 2);width:min(1200px,calc(100% - 40px));width:calc(round(down,min(1200px,100% - 40px) - 110px,44px) + 110px)}
:root[data-theme="notebook"] .topbar{height:88px;border-bottom:0;box-shadow:inset 0 -2px var(--theme-line)}
:root[data-theme="notebook"] .tabs{margin:22px 0;height:44px;border-bottom:0;box-shadow:inset 0 -1px var(--theme-line);gap:0}
:root[data-theme="notebook"] .tab{height:44px;min-height:44px;padding:11px 18px 9px;line-height:22px;border-bottom-width:2px}
:root[data-theme="notebook"] .page-heading{margin:0 0 22px;min-height:66px;align-items:end}
:root[data-theme="notebook"] .page-heading .eyebrow{display:block;line-height:22px;height:22px}
:root[data-theme="notebook"] .page-heading h1{line-height:44px;height:44px;margin:0}
:root[data-theme="notebook"] .page-heading .hint{line-height:22px}
:root[data-theme="notebook"] :is(.grid,.battle-info,.home-battle-column,.home-resource-column){gap:22px}
:root[data-theme="notebook"] :is(.home-battle-column,.home-resource-column){display:grid;align-content:start}
:root[data-theme="notebook"] :is(.card,.guide-intro,.home-weapons,.damage-rewards,.battle-leaderboard,.settings-section){border:0!important;padding:22px;margin:0 0 22px}
:root[data-theme="notebook"] :is(.grid,.home-battle-column,.home-resource-column,.battle-info)>:is(.card,.home-weapons,.damage-rewards,.battle-leaderboard,.home-metrics){margin:0}
:root[data-theme="notebook"] .card-head{min-height:22px;height:22px;margin:0 0 22px;line-height:22px}
:root[data-theme="notebook"] .glyph{width:22px;height:22px;font-size:14px;line-height:20px}
:root[data-theme="notebook"] :is(h1,h2,h3,p,.report,.muted){margin-top:0}
:root[data-theme="notebook"] :is(.card h2,.section-title h2,.battle-section-title){line-height:22px;margin:0}
/* Home: fight, weapons, metrics, resources */
:root[data-theme="notebook"] .home-fight-heading{margin-bottom:22px}
:root[data-theme="notebook"] .home-fight-meta{min-height:22px;line-height:22px;row-gap:0}
:root[data-theme="notebook"] .home-battle .boss-hp{margin:22px 0 0}
:root[data-theme="notebook"] .home-weapons{padding:22px}
:root[data-theme="notebook"] .home-weapons-table{border-collapse:separate;border-spacing:0;font-size:13px}
:root[data-theme="notebook"] .home-weapons-table :is(th,td){height:44px;padding:0 4px;border:0;line-height:22px;vertical-align:middle}
:root[data-theme="notebook"] .home-weapons-table thead th{height:44px}
:root[data-theme="notebook"] .home-weapons-table tbody tr+tr :is(th,td),:root[data-theme="notebook"] .home-weapons-table tbody tr:first-child :is(th,td){box-shadow:inset 0 1px var(--theme-line)}
:root[data-theme="notebook"] .home-weapons-table th:first-child{font-size:12px;width:66px}
:root[data-theme="notebook"] .home-weapons-table .home-resource-delta{display:block;height:0;margin-top:-2px;line-height:14px;font-size:11px;overflow:visible}
:root[data-theme="notebook"] .home-weapon-icon{width:22px;height:22px;vertical-align:middle}
:root[data-theme="notebook"] .home-weapons-table thead th{line-height:22px}
:root[data-theme="notebook"] .home-weapons-table thead th>*{display:inline-flex;vertical-align:middle;margin:0 2px}
:root[data-theme="notebook"] .home-metrics{gap:22px 0;margin:0;grid-template-columns:repeat(5,minmax(0,1fr))}
:root[data-theme="notebook"] :is(.home-resource,.home-metrics .home-resource){height:66px;padding:10px 10px;border-width:1px;column-gap:8px;row-gap:0;align-items:center;align-content:start;font-size:13px;line-height:22px}
:root[data-theme="notebook"] .home-resource{grid-template-columns:22px minmax(0,1fr)}
:root[data-theme="notebook"] .home-resource .resource-reward-icon{width:22px;height:22px;grid-row:1/3;grid-column:1}
:root[data-theme="notebook"] .home-metrics .home-resource{grid-template-columns:22px minmax(0,1fr)}
:root[data-theme="notebook"] .home-metrics .home-resource .resource-reward-icon{grid-row:1/3}
:root[data-theme="notebook"] :is(.home-resource,.home-metrics .home-resource) :is(.home-resource-name,.home-resource-balance){grid-column:2;height:22px;line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root[data-theme="notebook"] .home-resource-balance{flex-wrap:nowrap}
:root[data-theme="notebook"] .home-resources{gap:22px 0;max-height:none;column-gap:0}
:root[data-theme="notebook"] .home-resources .home-resource:nth-child(odd){margin-right:11px}
:root[data-theme="notebook"] .home-resources .home-resource:nth-child(even){margin-left:11px}
:root[data-theme="notebook"] .home-daily-hint{line-height:22px;margin:0 0 22px}
:root[data-theme="notebook"] .home-events:empty{display:none}
/* Damage statistics */
:root[data-theme="notebook"] .damage-dashboard-heading{min-height:44px;column-gap:22px}
:root[data-theme="notebook"] :is(input,select){height:44px;min-height:44px;line-height:22px;padding-top:0;padding-bottom:0}
:root[data-theme="notebook"] .damage-dashboard-metrics{gap:22px;margin:22px 0}
:root[data-theme="notebook"] .damage-dashboard-metric{height:66px;padding:10px 12px;border-width:1px;display:grid;align-content:start}
:root[data-theme="notebook"] .damage-dashboard-metric>*{line-height:22px;height:22px;margin:0}
:root[data-theme="notebook"] .damage-dashboard-value{font-size:18px;color:var(--theme-accent)!important}
:root[data-theme="notebook"] .damage-chart{padding-top:0;gap:0 22px;grid-template-columns:66px minmax(0,1fr)}
:root[data-theme="notebook"] .damage-hours{height:198px;background:none;gap:0}
:root[data-theme="notebook"] .damage-hour{height:198px;padding:0;border:0;background:none}
:root[data-theme="notebook"] .damage-hour-plot{height:176px;border-radius:0}
:root[data-theme="notebook"] .damage-hour-label{height:22px;line-height:22px;display:block}
:root[data-theme="notebook"] .damage-axis{height:176px}
:root[data-theme="notebook"] .damage-axis-tick{color:var(--theme-muted)}
:root[data-theme="notebook"] .damage-hour-column{background:repeating-linear-gradient(-55deg,var(--theme-accent) 0 1.6px,transparent 1.6px 5px);border:1.5px solid var(--theme-accent);border-bottom:0;border-radius:2px 2px 0 0;box-shadow:none;width:60%}
:root[data-theme="notebook"] .damage-hour-column.unknown{background:none;border:0;border-bottom:1.5px dashed var(--theme-muted)}
:root[data-theme="notebook"] .damage-hour[aria-pressed=true] .damage-hour-plot{background:#c62f2812;outline:1.5px solid #c62f2899;outline-offset:-1px}
:root[data-theme="notebook"] .damage-hour:hover .damage-hour-plot{background:#1c38a80d}
:root[data-theme="notebook"] .damage-hour-selection{line-height:22px;margin:0 0 22px;color:var(--theme-ink)}
:root[data-theme="notebook"] .damage-chart{margin:0 0 22px}
/* Buttons are two cells tall */
:root[data-theme="notebook"] :is(.primary,.secondary,.guide-filter,.boss-group,.icon-button,.queue-item button){min-height:44px;height:auto;padding-top:10px;padding-bottom:10px;line-height:22px;border-top-width:1px;border-bottom-width:1px}
:root[data-theme="notebook"] button.primary{padding-top:9px;padding-bottom:9px;border-width:2px}
:root[data-theme="notebook"] .shell{border:0}
:root[data-theme="notebook"] .home-battle{gap:0}
:root[data-theme="notebook"] img.game-mode-icon{vertical-align:top;height:22px;width:auto}
:root[data-theme="notebook"] .icon-button{width:44px;height:44px;padding:0}
:root[data-theme="notebook"] .button-row{margin-top:22px;gap:22px}
/* Bosses: current fight */
:root[data-theme="notebook"] .boss-current .card-head{justify-content:center}
:root[data-theme="notebook"] .boss-state{height:22px;line-height:20px;padding:0 10px}
:root[data-theme="notebook"] .current-queue-controls{margin:0 0 22px;justify-content:center}
:root[data-theme="notebook"] .boss-current-main{gap:22px;margin:0 0 22px}
:root[data-theme="notebook"] .boss-current-main>div>*{margin:0;line-height:22px}
:root[data-theme="notebook"] .boss-current-name{line-height:44px!important;height:44px}
:root[data-theme="notebook"] .boss-wins{height:44px;margin:0;padding:10px 12px;line-height:22px;border-width:1px}
:root[data-theme="notebook"] #boss-hp{margin:0 0 22px}
:root[data-theme="notebook"] :is(#boss-timer,#auto-status,#boss-finishing-estimate){min-height:22px;line-height:22px;margin:0 0 22px}
:root[data-theme="notebook"] #boss-timer[hidden],:root[data-theme="notebook"] #boss-finishing-estimate[hidden]{display:none}
:root[data-theme="notebook"] .battle-info{margin:0 0 22px}
:root[data-theme="notebook"] .damage-rewards{gap:0}
:root[data-theme="notebook"] .reward-track-heading{min-height:22px;line-height:22px;margin:0 0 22px}
:root[data-theme="notebook"] .damage-rewards .help-disclosure{margin-top:0}
:root[data-theme="notebook"] .battle-leaderboard{padding:22px}
:root[data-theme="notebook"] .battle-leaderboard>.battle-section-title{display:block;margin:0 0 22px;padding:0}
:root[data-theme="notebook"] .battle-person{height:44px;padding:0 6px;border-bottom:0;box-shadow:inset 0 -1px var(--theme-line);line-height:22px}
:root[data-theme="notebook"] .battle-person-link{min-height:0;height:44px}
:root[data-theme="notebook"] .battle-avatar{width:22px;height:22px}
:root[data-theme="notebook"] .battle-info details summary{height:44px;padding:11px 0;line-height:22px}
:root[data-theme="notebook"] .manual-hits{padding-top:22px;margin-top:0;border-top:0;box-shadow:inset 0 1px var(--theme-line)}
:root[data-theme="notebook"] .manual-hits-head{height:22px;line-height:22px;margin:0}
:root[data-theme="notebook"] .manual-hits .guide-action-note{margin:0 0 22px;line-height:22px}
:root[data-theme="notebook"] .manual-weapons{gap:22px;margin:0 0 22px}
:root[data-theme="notebook"] .manual-weapon{border:0;border-radius:0}
:root[data-theme="notebook"] .manual-weapon-toggle{height:66px;padding:10px 12px;border:1px solid var(--theme-line)!important;border-radius:3px 7px 4px 8px/7px 3px 8px 4px}
:root[data-theme="notebook"] .manual-weapon-icon{width:44px;height:44px}
:root[data-theme="notebook"] .manual-weapon-options{padding:22px 0 0;gap:22px}
:root[data-theme="notebook"] .battle-special{gap:22px;margin:0 0 22px}
:root[data-theme="notebook"] #manual-hit-hint{margin:0}
/* Bosses: queue and catalog */
:root[data-theme="notebook"] .boss-queue>.guide-action-note,:root[data-theme="notebook"] #queue-run-hint{margin:0 0 22px;line-height:22px}
:root[data-theme="notebook"] .queue-items{gap:0;margin:0 0 22px}
:root[data-theme="notebook"] .queue-item{min-height:66px;padding:0;border:0;box-shadow:inset 0 -1px var(--theme-line);border-radius:0}
:root[data-theme="notebook"] .queue-options{padding:0;margin:0;border:0;box-shadow:inset 0 -1px var(--theme-line)}
:root[data-theme="notebook"] .queue-options>summary{height:44px;padding:11px 0;line-height:22px}
:root[data-theme="notebook"] .guide-controls{gap:22px;margin:0 0 22px}
@media(max-width:600px){
  :root[data-theme="notebook"] .shell{width:calc(100% - 16px);width:calc(round(down,100% - 16px - 44px,22px) + 44px);padding:0 22px 44px}
  :root[data-theme="notebook"] :is(.card,.guide-intro,.home-weapons,.damage-rewards,.battle-leaderboard,.settings-section){padding:22px}
  :root[data-theme="notebook"] .home-metrics{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:22px}
  :root[data-theme="notebook"] .home-resources{column-gap:22px}
  :root[data-theme="notebook"] .home-resources .home-resource:nth-child(n){margin:0}
  :root[data-theme="notebook"] .home-resource{padding-left:6px;padding-right:6px;column-gap:6px}
  :root[data-theme="notebook"] .damage-dashboard-metrics{grid-template-columns:1fr;gap:22px}
  :root[data-theme="notebook"] .damage-chart{grid-template-columns:44px minmax(0,1fr);column-gap:11px}
  :root[data-theme="notebook"] .tab{padding:11px 11px 9px}
}
:root[data-theme="notebook"] .damage-dashboard-heading{height:44px;align-items:center}
:root[data-theme="notebook"] .help-disclosure>summary{width:22px;height:22px;line-height:18px}
:root[data-theme="notebook"] #battle-top50{border:0;margin:0}
:root[data-theme="notebook"] .home-weapons-table thead th>*{display:block;margin:0 auto;height:22px;line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root[data-theme="notebook"] .home-weapons-table thead th>img{width:22px}
:root[data-theme="notebook"] .queue-row{padding:11px 0;border-bottom:0;box-shadow:inset 0 -1px var(--theme-line);row-gap:0;column-gap:22px}
:root[data-theme="notebook"] .queue-row:last-child{box-shadow:none;padding-bottom:0}
:root[data-theme="notebook"] .queue-row:first-child{padding-top:0}
:root[data-theme="notebook"] .queue-copy>*{line-height:22px;min-height:22px;margin:0}
:root[data-theme="notebook"] .queue-row button{min-height:44px;font-size:13px;padding:10px 9px}
:root[data-theme="notebook"] .queue-row-controls{gap:11px}
:root[data-theme="notebook"] .queue-count{line-height:22px}
:root[data-theme="notebook"] .queue-options>:not(summary){margin:0 0 22px}
:root[data-theme="notebook"] .queue-presets .section-title{margin:0 0 22px}
:root[data-theme="notebook"] .queue-options label{min-height:44px;margin:0 0 22px}
:root[data-theme="notebook"] .queue-options input[type=checkbox]{height:22px;min-height:22px;margin:0 8px 0 0}
:root[data-theme="notebook"] .guide-controls{align-items:center;flex-wrap:wrap}
:root[data-theme="notebook"] :is(.boss-groups,.guide-filters){margin:0;gap:11px}
:root[data-theme="notebook"] .guide-layout{gap:22px}
:root[data-theme="notebook"] .guide-list{padding:0}
:root[data-theme="notebook"] .guide-item{height:66px;padding:10px 11px;border-width:1px}
:root[data-theme="notebook"] .guide-item .guide-thumb{width:44px;height:44px}
:root[data-theme="notebook"] .guide-item-copy>*{line-height:22px}
:root[data-theme="notebook"] .guide-detail{padding:0}
:root[data-theme="notebook"] .guide-detail-head{padding:0 0 21px;margin:0 0 22px;border-bottom-width:1px;min-height:88px}
:root[data-theme="notebook"] .guide-detail-head .guide-thumb{width:88px;height:88px}
:root[data-theme="notebook"] .guide-actions{margin:0 0 22px;padding:21px;border-width:1px}
:root[data-theme="notebook"] .guide-actions>*{margin-top:0;margin-bottom:22px}
:root[data-theme="notebook"] .guide-actions>:last-child{margin-bottom:0}
:root[data-theme="notebook"] .damage-hour-selection{padding:0;height:22px;border:0;background:none}
:root[data-theme="notebook"] .damage-top-button{vertical-align:top}
/* Reward notebook: seven 22px rows — three for the pen, then bar, threshold, rewards and a spare row. */
.notebook-bar{height:154px}
.notebook-bar canvas{height:154px}
.notebook-counter{min-height:44px;align-items:center;line-height:22px}
.notebook-milestone{top:88px;width:88px;line-height:22px}
.notebook-threshold{display:block;height:22px;line-height:22px}
.notebook-reward-icons{height:22px;margin-top:0;flex-wrap:nowrap;line-height:22px}
.notebook-milestone.just-done .notebook-reward-icons{animation:reward-pop .5s cubic-bezier(.3,1.6,.5,1)}
@keyframes reward-pop{0%{transform:scale(.6);opacity:.4}60%{transform:scale(1.18)}100%{transform:none}}
.notebook-milestone.done .notebook-threshold{color:var(--notebook-ink);opacity:.6}
.notebook-pen{transition:opacity .25s}
.notebook-pen.idle svg{transform:translateX(var(--pen-offset)) rotate(var(--pen-angle)) scaleX(var(--pen-flip));transition:transform .3s}
:root[data-theme="notebook"] .damage-rewards .notebook-counter{margin:0}
:root[data-theme="notebook"] .damage-rewards .reward-track-details{margin:0}
/* Main HP: fill, numbers and brush share one easing; a red hit number floats up after each loss. */
.boss-hp-fill{transition:width var(--hp-duration,300ms) cubic-bezier(.33,1,.68,1)}
.hp-hit{position:absolute;top:-4px;z-index:4;transform:translateX(-50%);font-weight:800;font-size:13px;color:#ff8f7a;text-shadow:0 1px 3px #000;pointer-events:none;white-space:nowrap;animation:hp-hit 1.1s ease-out forwards}
:root[data-theme="notebook"] .hp-hit{top:calc(var(--hp-sketch-top,22px) - 24px);color:#c62f28;text-shadow:none;font-size:16px}
@keyframes hp-hit{0%{opacity:0;translate:0 8px}15%{opacity:1;translate:0 0}100%{opacity:0;translate:0 -22px}}
@media(prefers-reduced-motion:reduce){.hp-hit{display:none}.boss-hp-fill{transition:none}.notebook-milestone.just-done :is(.notebook-reward-icons,.notebook-threshold){animation:none}}
:root[data-theme="notebook"] .battle-info .help-disclosure>summary{height:22px;width:22px;padding:0;line-height:18px}
:root[data-theme="notebook"] .damage-hour-plot{width:100%}
:root[data-theme="notebook"] .damage-hour-column{width:60%;max-width:22px}
:root[data-theme="notebook"] .damage-hour[aria-pressed=true]{background:none;box-shadow:none;border:0}
:root[data-theme="notebook"] .damage-hour[aria-pressed=true] .damage-hour-label{color:var(--paper-bad);font-weight:700}
:root[data-theme="notebook"] .home-metrics .home-resource{grid-template-columns:22px minmax(0,1fr);grid-template-areas:"name name" "icon value"}
:root[data-theme="notebook"] .home-metrics .home-resource .resource-reward-icon{grid-area:icon}
:root[data-theme="notebook"] .home-metrics .home-resource .home-resource-name{grid-area:name;font-size:12px}
:root[data-theme="notebook"] .home-metrics .home-resource .home-resource-balance{grid-area:value}

/* Motion. Short, purposeful transitions; everything is switched off for reduced motion. */
.tab{transition:color .2s,border-color .2s,background-color .2s}
button{transition:background-color .15s,border-color .15s,color .15s,transform .1s,box-shadow .15s}
button:active:not(:disabled){transform:translateY(1px)}
.page.page-enter>*{animation:page-item .36s cubic-bezier(.2,.7,.2,1) both}
.page.page-enter>:nth-child(2){animation-delay:.04s}
.page.page-enter>:nth-child(3){animation-delay:.08s}
.page.page-enter>:nth-child(4){animation-delay:.12s}
.page.page-enter>:nth-child(n+5){animation-delay:.16s}
@keyframes page-item{from{opacity:0;transform:translateY(10px)}}
:root[data-theme="notebook"] .page.page-enter>*{animation-name:page-item-paper}
@keyframes page-item-paper{from{opacity:0;transform:translateY(-8px) rotate(-.4deg)}}
dialog[open]:not(.game-maintenance){animation:dialog-in .24s cubic-bezier(.2,.8,.2,1)}
dialog[open]:not(.game-maintenance)::backdrop{animation:backdrop-in .24s ease-out}
:root[data-theme="notebook"] dialog[open]:not(.game-maintenance){animation-name:dialog-paper-in}
@keyframes dialog-in{from{opacity:0;transform:translateY(12px) scale(.97)}}
@keyframes dialog-paper-in{from{opacity:0;transform:translateY(-16px) rotate(-1.2deg)}}
@keyframes backdrop-in{from{opacity:0}}
.notice{transition:opacity .25s,transform .35s cubic-bezier(.3,1.4,.5,1)}
:root[data-theme="notebook"] .notice{background:#fff1a0;color:#3b3317;border:0;border-radius:2px 2px 6px 3px;box-shadow:0 10px 22px #0003,inset 0 -3px 0 #e8d77c;transform:translate(-50%,24px) rotate(-1.5deg);font-size:16px;line-height:22px;padding:11px 22px}
:root[data-theme="notebook"] .notice.visible{transform:translate(-50%,0) rotate(-1.5deg)}
:root[data-theme="notebook"] .notice.error{background:#ffd3cb;color:#5a1a14;box-shadow:0 10px 22px #0003,inset 0 -3px 0 #f0b0a5}
#refresh.loading{animation:spin .8s linear infinite;pointer-events:none}
@keyframes spin{to{transform:rotate(360deg)}}
.home-resource.value-up .home-resource-count{animation:value-up 1.4s ease-out}
.home-resource.value-down .home-resource-count{animation:value-down 1.4s ease-out}
@keyframes value-up{0%{color:#7fe3a0;text-shadow:0 0 10px #7fe3a080}}
@keyframes value-down{0%{color:#ff8f7a;text-shadow:0 0 10px #ff8f7a80}}
:root[data-theme="notebook"] .home-resource.value-up .home-resource-count{animation-name:value-up-ink}
:root[data-theme="notebook"] .home-resource.value-down .home-resource-count{animation-name:value-down-ink}
@keyframes value-up-ink{0%{color:var(--paper-good);background:#276b3618}}
@keyframes value-down-ink{0%{color:var(--paper-bad);background:#b32c2518}}
@media(prefers-reduced-motion:reduce){
  .page.page-enter>*,dialog[open],dialog[open]::backdrop,#refresh.loading,.home-resource :is(.home-resource-count){animation:none!important}
  .tab,button,.notice{transition:none}
}

:root[data-theme="notebook"] footer{color:var(--theme-muted)}

/* One sheet. Blocks are drawn straight on the page and outlined with a highlighter by hand; no pasted paper, tears or creases. */
:root[data-theme="notebook"]{--marker-0:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cpath d='M8.14126042931258,26.606660816810937 L13.5,12.0 L18.9,12.0 L24.2,12.1 L29.6,12.1 L35.0,12.2 L40.3,12.2 L45.7,12.1 L51.0,11.9 L56.4,12.0 L61.8,12.5 L67.1,13.3 L72.5,14.0 L77.8,14.2 L83.2,14.0 L88.6,13.3 L93.9,12.7 L99.3,12.4 L104.7,12.6 L110.0,13.0 L115.4,13.3 L120.8,13.2 L126.1,12.5 L131.5,11.4 L136.8,10.5 L142.2,10.1 L147.6,10.5 L152.9,11.5 L158.3,12.8 L163.6,13.9 L169.0,14.3 L174.4,14.3 L179.7,13.9 L185.1,13.5 L190.5,13.3 L195.8,13.3 L201.2,13.3 L206.6,13.3 L211.9,13.4 L217.3,13.4 L222.6,13.5 L228.0,13.5 L228.0,18.9 L227.9,24.2 L227.9,29.6 L227.8,35.0 L227.8,40.3 L227.8,45.7 L227.7,51.0 L227.8,56.4 L227.8,61.8 L227.6,67.1 L227.0,72.5 L226.1,77.8 L225.4,83.2 L225.1,88.6 L225.6,93.9 L226.8,99.3 L228.3,104.7 L229.5,110.0 L230.1,115.4 L229.8,120.8 L228.9,126.1 L227.9,131.5 L227.2,136.8 L227.0,142.2 L227.2,147.6 L227.5,152.9 L227.5,158.3 L227.2,163.6 L226.6,169.0 L226.1,174.4 L225.9,179.7 L226.1,185.1 L226.4,190.5 L226.7,195.8 L226.7,201.2 L226.7,206.6 L226.6,211.9 L226.6,217.3 L226.5,222.6 L226.5,228.0 L221.1,228.0 L215.8,227.9 L210.4,227.9 L205.1,227.8 L199.7,227.8 L194.3,227.8 L189.0,227.8 L183.6,227.7 L178.2,227.7 L172.9,227.8 L167.5,228.2 L162.2,228.9 L156.8,229.4 L151.4,229.5 L146.1,228.8 L140.7,227.4 L135.3,225.9 L130.0,224.6 L124.6,224.2 L119.2,224.6 L113.9,225.6 L108.5,226.7 L103.2,227.4 L97.8,227.6 L92.4,227.4 L87.1,227.0 L81.7,226.8 L76.4,227.0 L71.0,227.4 L65.6,227.7 L60.3,227.7 L54.9,227.5 L49.5,227.0 L44.2,226.7 L38.8,226.7 L33.4,226.7 L28.1,226.6 L22.7,226.6 L17.4,226.5 L12.0,226.5 L12.0,221.1 L12.1,215.8 L12.1,210.4 L12.2,205.1 L12.2,199.7 L12.2,194.3 L12.3,189.0 L12.6,183.6 L13.1,178.2 L13.6,172.9 L13.7,167.5 L13.3,162.2 L12.3,156.8 L11.1,151.4 L10.1,146.1 L9.7,140.7 L10.2,135.3 L11.2,130.0 L12.4,124.6 L13.2,119.2 L13.4,113.9 L13.2,108.5 L12.8,103.2 L12.7,97.8 L13.1,92.4 L13.8,87.1 L14.4,81.7 L14.8,76.4 L14.6,71.0 L14.0,65.6 L13.4,60.3 L13.0,54.9 L13.0,49.5 L13.3,44.2 L13.3,38.8 L13.3,33.4 L13.4,28.1 L13.4,22.7 L13.5,17.4 L13.5,12.0 L27.298740734108456,14.923798237785324' fill='none' stroke='%23f5c400' stroke-opacity='0.4' stroke-width='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M9.6,25.6 L15.0,11.0 L20.4,11.0 L25.7,11.1 L31.1,11.1 L36.5,11.2 L41.8,11.2 L47.2,11.1 L52.5,10.9 L57.9,11.0 L63.3,11.5 L68.6,12.3 L74.0,13.0 L79.3,13.2 L84.7,13.0 L90.1,12.3 L95.4,11.7 L100.8,11.4 L106.2,11.6 L111.5,12.0 L116.9,12.3 L122.3,12.2 L127.6,11.5 L133.0,10.4 L138.3,9.5 L143.7,9.1 L149.1,9.5 L154.4,10.5 L159.8,11.8 L165.1,12.9 L170.5,13.3 L175.9,13.3 L181.2,12.9 L186.6,12.5 L192.0,12.3 L197.3,12.3 L202.7,12.3 L208.1,12.3 L213.4,12.4 L218.8,12.4 L224.1,12.5 L229.5,12.5 L229.5,17.9 L229.4,23.2 L229.4,28.6 L229.3,34.0 L229.3,39.3 L229.3,44.7 L229.2,50.0 L229.3,55.4 L229.3,60.8 L229.1,66.1 L228.5,71.5 L227.6,76.8 L226.9,82.2 L226.6,87.6 L227.1,92.9 L228.3,98.3 L229.8,103.7 L231.0,109.0 L231.6,114.4 L231.3,119.8 L230.4,125.1 L229.4,130.5 L228.7,135.8 L228.5,141.2 L228.7,146.6 L229.0,151.9 L229.0,157.3 L228.7,162.6 L228.1,168.0 L227.6,173.4 L227.4,178.7 L227.6,184.1 L227.9,189.5 L228.2,194.8 L228.2,200.2 L228.2,205.6 L228.1,210.9 L228.1,216.3 L228.0,221.6 L228.0,227.0 L222.6,227.0 L217.3,226.9 L211.9,226.9 L206.6,226.8 L201.2,226.8 L195.8,226.8 L190.5,226.8 L185.1,226.7 L179.7,226.7 L174.4,226.8 L169.0,227.2 L163.7,227.9 L158.3,228.4 L152.9,228.5 L147.6,227.8 L142.2,226.4 L136.8,224.9 L131.5,223.6 L126.1,223.2 L120.7,223.6 L115.4,224.6 L110.0,225.7 L104.7,226.4 L99.3,226.6 L93.9,226.4 L88.6,226.0 L83.2,225.8 L77.9,226.0 L72.5,226.4 L67.1,226.7 L61.8,226.7 L56.4,226.5 L51.0,226.0 L45.7,225.7 L40.3,225.7 L34.9,225.7 L29.6,225.6 L24.2,225.6 L18.9,225.5 L13.5,225.5 L13.5,220.1 L13.6,214.8 L13.6,209.4 L13.7,204.1 L13.7,198.7 L13.7,193.3 L13.8,188.0 L14.1,182.6 L14.6,177.2 L15.1,171.9 L15.2,166.5 L14.8,161.2 L13.8,155.8 L12.6,150.4 L11.6,145.1 L11.2,139.7 L11.7,134.3 L12.7,129.0 L13.9,123.6 L14.7,118.2 L14.9,112.9 L14.7,107.5 L14.3,102.2 L14.2,96.8 L14.6,91.4 L15.3,86.1 L15.9,80.7 L16.3,75.4 L16.1,70.0 L15.5,64.6 L14.9,59.3 L14.5,53.9 L14.5,48.5 L14.8,43.2 L14.8,37.8 L14.8,32.4 L14.9,27.1 L14.9,21.7 L15.0,16.4 L15.0,11.0 L28.8,13.9' fill='none' stroke='%23f5c400' stroke-opacity='0.28' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");--marker-1:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cpath d='M9.53485173761848,23.49835057407401 L13.5,12.0 L18.9,12.0 L24.2,12.1 L29.6,12.1 L35.0,12.2 L40.3,12.2 L45.7,12.2 L51.0,11.9 L56.4,11.6 L61.8,11.3 L67.1,11.5 L72.5,12.2 L77.8,13.2 L83.2,14.2 L88.6,14.8 L93.9,14.7 L99.3,14.1 L104.7,13.2 L110.0,12.7 L115.4,12.6 L120.8,12.9 L126.1,13.3 L131.5,13.5 L136.8,13.1 L142.2,12.2 L147.6,11.3 L152.9,10.7 L158.3,10.8 L163.6,11.4 L169.0,12.4 L174.4,13.3 L179.7,13.7 L185.1,13.8 L190.5,13.5 L195.8,13.3 L201.2,13.3 L206.6,13.3 L211.9,13.4 L217.3,13.4 L222.6,13.5 L228.0,13.5 L228.0,18.9 L227.9,24.2 L227.9,29.6 L227.8,35.0 L227.8,40.3 L227.8,45.7 L227.8,51.0 L227.6,56.4 L227.1,61.8 L226.5,67.1 L225.9,72.5 L225.8,77.8 L226.3,83.2 L227.5,88.6 L228.8,93.9 L229.7,99.3 L230.0,104.7 L229.6,110.0 L228.6,115.4 L227.7,120.8 L227.1,126.1 L227.1,131.5 L227.5,136.8 L227.7,142.2 L227.6,147.6 L227.1,152.9 L226.3,158.3 L225.6,163.6 L225.3,169.0 L225.5,174.4 L226.1,179.7 L226.6,185.1 L226.8,190.5 L226.7,195.8 L226.7,201.2 L226.7,206.6 L226.6,211.9 L226.6,217.3 L226.5,222.6 L226.5,228.0 L221.1,228.0 L215.8,227.9 L210.4,227.9 L205.1,227.8 L199.7,227.8 L194.3,227.8 L189.0,228.1 L183.6,228.4 L178.2,228.5 L172.9,228.2 L167.5,227.4 L162.2,226.3 L156.8,225.4 L151.4,225.0 L146.1,225.2 L140.7,226.1 L135.3,227.1 L130.0,227.8 L124.6,228.0 L119.2,227.6 L113.9,227.2 L108.5,227.0 L103.2,227.3 L97.8,228.0 L92.4,228.8 L87.1,229.2 L81.7,228.9 L76.4,228.2 L71.0,227.2 L65.6,226.4 L60.3,226.0 L54.9,226.1 L49.5,226.5 L44.2,226.7 L38.8,226.7 L33.4,226.7 L28.1,226.6 L22.7,226.6 L17.4,226.5 L12.0,226.5 L12.0,221.1 L12.1,215.8 L12.1,210.4 L12.2,205.1 L12.2,199.7 L12.3,194.3 L12.6,189.0 L12.6,183.6 L12.2,178.2 L11.4,172.9 L10.7,167.5 L10.4,162.2 L10.7,156.8 L11.5,151.4 L12.4,146.1 L13.1,140.7 L13.3,135.3 L13.1,130.0 L12.7,124.6 L12.6,119.2 L13.1,113.9 L13.9,108.5 L14.8,103.2 L15.4,97.8 L15.2,92.4 L14.4,87.1 L13.3,81.7 L12.3,76.4 L11.8,71.0 L11.8,65.6 L12.3,60.3 L12.8,54.9 L13.2,49.5 L13.3,44.2 L13.3,38.8 L13.3,33.4 L13.4,28.1 L13.4,22.7 L13.5,17.4 L13.5,12.0 L34.39298017459614,14.318183532703022' fill='none' stroke='%23f5c400' stroke-opacity='0.4' stroke-width='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M10.2,22.4 L14.2,10.9 L19.6,10.9 L24.9,11.0 L30.3,11.0 L35.7,11.1 L41.0,11.1 L46.4,11.1 L51.7,10.8 L57.1,10.5 L62.5,10.2 L67.8,10.4 L73.2,11.1 L78.5,12.1 L83.9,13.1 L89.3,13.7 L94.6,13.6 L100.0,13.0 L105.4,12.1 L110.7,11.6 L116.1,11.5 L121.5,11.8 L126.8,12.2 L132.2,12.4 L137.5,12.0 L142.9,11.1 L148.3,10.2 L153.6,9.6 L159.0,9.7 L164.3,10.3 L169.7,11.3 L175.1,12.2 L180.4,12.6 L185.8,12.7 L191.2,12.4 L196.5,12.2 L201.9,12.2 L207.3,12.2 L212.6,12.3 L218.0,12.3 L223.3,12.4 L228.7,12.4 L228.7,17.8 L228.6,23.1 L228.6,28.5 L228.5,33.9 L228.5,39.2 L228.5,44.6 L228.5,49.9 L228.3,55.3 L227.8,60.7 L227.2,66.0 L226.6,71.4 L226.5,76.7 L227.0,82.1 L228.2,87.5 L229.5,92.8 L230.4,98.2 L230.7,103.6 L230.3,108.9 L229.3,114.3 L228.4,119.7 L227.8,125.0 L227.8,130.4 L228.2,135.7 L228.4,141.1 L228.3,146.5 L227.8,151.8 L227.0,157.2 L226.3,162.5 L226.0,167.9 L226.2,173.3 L226.8,178.6 L227.3,184.0 L227.5,189.4 L227.4,194.7 L227.4,200.1 L227.4,205.5 L227.3,210.8 L227.3,216.2 L227.2,221.5 L227.2,226.9 L221.8,226.9 L216.5,226.8 L211.1,226.8 L205.8,226.7 L200.4,226.7 L195.0,226.7 L189.7,227.0 L184.3,227.3 L178.9,227.4 L173.6,227.1 L168.2,226.3 L162.9,225.2 L157.5,224.3 L152.1,223.9 L146.8,224.1 L141.4,225.0 L136.0,226.0 L130.7,226.7 L125.3,226.9 L119.9,226.5 L114.6,226.1 L109.2,225.9 L103.9,226.2 L98.5,226.9 L93.1,227.7 L87.8,228.1 L82.4,227.8 L77.1,227.1 L71.7,226.1 L66.3,225.3 L61.0,224.9 L55.6,225.0 L50.2,225.4 L44.9,225.6 L39.5,225.6 L34.1,225.6 L28.8,225.5 L23.4,225.5 L18.1,225.4 L12.7,225.4 L12.7,220.0 L12.8,214.7 L12.8,209.3 L12.9,204.0 L12.9,198.6 L13.0,193.2 L13.3,187.9 L13.3,182.5 L12.9,177.1 L12.1,171.8 L11.4,166.4 L11.1,161.1 L11.4,155.7 L12.2,150.3 L13.1,145.0 L13.8,139.6 L14.0,134.2 L13.8,128.9 L13.4,123.5 L13.3,118.1 L13.8,112.8 L14.6,107.4 L15.5,102.1 L16.1,96.7 L15.9,91.3 L15.1,86.0 L14.0,80.6 L13.0,75.3 L12.5,69.9 L12.5,64.5 L13.0,59.2 L13.5,53.8 L13.9,48.4 L14.0,43.1 L14.0,37.7 L14.0,32.3 L14.1,27.0 L14.1,21.6 L14.2,16.3 L14.2,10.9 L35.1,13.3' fill='none' stroke='%23f5c400' stroke-opacity='0.28' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");--marker-2:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cpath d='M8.050346686661431,27.449414806032166 L13.5,12.0 L18.9,12.0 L24.2,12.1 L29.6,12.1 L35.0,12.2 L40.3,12.2 L45.7,12.2 L51.0,12.2 L56.4,12.4 L61.8,12.5 L67.1,12.4 L72.5,12.0 L77.8,11.3 L83.2,10.5 L88.6,10.1 L93.9,10.4 L99.3,11.5 L104.7,13.0 L110.0,14.5 L115.4,15.4 L120.8,15.4 L126.1,14.8 L131.5,13.8 L136.8,13.1 L142.2,12.8 L147.6,13.0 L152.9,13.4 L158.3,13.6 L163.6,13.4 L169.0,13.0 L174.4,12.5 L179.7,12.3 L185.1,12.5 L190.5,12.9 L195.8,13.3 L201.2,13.3 L206.6,13.3 L211.9,13.4 L217.3,13.4 L222.6,13.5 L228.0,13.5 L228.0,18.9 L227.9,24.2 L227.9,29.6 L227.8,35.0 L227.8,40.3 L227.8,45.7 L228.1,51.0 L228.4,56.4 L228.6,61.8 L228.4,67.1 L227.9,72.5 L227.5,77.8 L227.3,83.2 L227.5,88.6 L227.8,93.9 L227.9,99.3 L227.5,104.7 L226.5,110.0 L225.3,115.4 L224.4,120.8 L224.1,126.1 L224.8,131.5 L226.1,136.8 L227.6,142.2 L228.7,147.6 L229.1,152.9 L228.8,158.3 L228.1,163.6 L227.4,169.0 L227.0,174.4 L226.8,179.7 L226.9,185.1 L226.8,190.5 L226.7,195.8 L226.7,201.2 L226.7,206.6 L226.6,211.9 L226.6,217.3 L226.5,222.6 L226.5,228.0 L221.1,228.0 L215.8,227.9 L210.4,227.9 L205.1,227.8 L199.7,227.8 L194.3,227.7 L189.0,227.7 L183.6,227.8 L178.2,228.0 L172.9,227.9 L167.5,227.7 L162.2,227.5 L156.8,227.6 L151.4,228.2 L146.1,229.0 L140.7,229.7 L135.3,229.9 L130.0,229.3 L124.6,227.9 L119.2,226.2 L113.9,224.8 L108.5,224.2 L103.2,224.4 L97.8,225.3 L92.4,226.3 L87.1,227.1 L81.7,227.3 L76.4,227.2 L71.0,226.9 L65.6,226.7 L60.3,226.8 L54.9,226.9 L49.5,226.9 L44.2,226.7 L38.8,226.7 L33.4,226.7 L28.1,226.6 L22.7,226.6 L17.4,226.5 L12.0,226.5 L12.0,221.1 L12.1,215.8 L12.1,210.4 L12.2,205.1 L12.2,199.7 L12.2,194.3 L12.0,189.0 L11.6,183.6 L11.2,178.2 L11.1,172.9 L11.5,167.5 L12.2,162.2 L12.8,156.8 L13.1,151.4 L13.0,146.1 L12.7,140.7 L12.5,135.3 L12.8,130.0 L13.6,124.6 L14.6,119.2 L15.4,113.9 L15.5,108.5 L14.8,103.2 L13.6,97.8 L12.2,92.4 L11.2,87.1 L10.9,81.7 L11.3,76.4 L12.0,71.0 L12.7,65.6 L13.2,60.3 L13.3,54.9 L13.3,49.5 L13.3,44.2 L13.3,38.8 L13.3,33.4 L13.4,28.1 L13.4,22.7 L13.5,17.4 L13.5,12.0 L26.265359696838637,13.596512952059946' fill='none' stroke='%23f5c400' stroke-opacity='0.4' stroke-width='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M7.2,27.7 L12.6,12.3 L18.0,12.3 L23.3,12.4 L28.7,12.4 L34.1,12.5 L39.4,12.5 L44.8,12.5 L50.1,12.5 L55.5,12.7 L60.9,12.8 L66.2,12.7 L71.6,12.3 L76.9,11.6 L82.3,10.8 L87.7,10.4 L93.0,10.7 L98.4,11.8 L103.8,13.3 L109.1,14.8 L114.5,15.7 L119.9,15.7 L125.2,15.1 L130.6,14.1 L135.9,13.4 L141.3,13.1 L146.7,13.3 L152.0,13.7 L157.4,13.9 L162.7,13.7 L168.1,13.3 L173.5,12.8 L178.8,12.6 L184.2,12.8 L189.6,13.2 L194.9,13.6 L200.3,13.6 L205.7,13.6 L211.0,13.7 L216.4,13.7 L221.7,13.8 L227.1,13.8 L227.1,19.2 L227.0,24.5 L227.0,29.9 L226.9,35.3 L226.9,40.6 L226.9,46.0 L227.2,51.3 L227.5,56.7 L227.7,62.1 L227.5,67.4 L227.0,72.8 L226.6,78.1 L226.4,83.5 L226.6,88.9 L226.9,94.2 L227.0,99.6 L226.6,105.0 L225.6,110.3 L224.4,115.7 L223.5,121.1 L223.2,126.4 L223.9,131.8 L225.2,137.1 L226.7,142.5 L227.8,147.9 L228.2,153.2 L227.9,158.6 L227.2,163.9 L226.5,169.3 L226.1,174.7 L225.9,180.0 L226.0,185.4 L225.9,190.8 L225.8,196.1 L225.8,201.5 L225.8,206.9 L225.7,212.2 L225.7,217.6 L225.6,222.9 L225.6,228.3 L220.2,228.3 L214.9,228.2 L209.5,228.2 L204.2,228.1 L198.8,228.1 L193.4,228.0 L188.1,228.0 L182.7,228.1 L177.3,228.3 L172.0,228.2 L166.6,228.0 L161.3,227.8 L155.9,227.9 L150.5,228.5 L145.2,229.3 L139.8,230.0 L134.4,230.2 L129.1,229.6 L123.7,228.2 L118.3,226.5 L113.0,225.1 L107.6,224.5 L102.3,224.7 L96.9,225.6 L91.5,226.6 L86.2,227.4 L80.8,227.6 L75.5,227.5 L70.1,227.2 L64.7,227.0 L59.4,227.1 L54.0,227.2 L48.6,227.2 L43.3,227.0 L37.9,227.0 L32.5,227.0 L27.2,226.9 L21.8,226.9 L16.5,226.8 L11.1,226.8 L11.1,221.4 L11.2,216.1 L11.2,210.7 L11.3,205.4 L11.3,200.0 L11.3,194.6 L11.1,189.3 L10.7,183.9 L10.3,178.5 L10.2,173.2 L10.6,167.8 L11.3,162.5 L11.9,157.1 L12.2,151.7 L12.1,146.4 L11.8,141.0 L11.6,135.6 L11.9,130.3 L12.7,124.9 L13.7,119.5 L14.5,114.2 L14.6,108.8 L13.9,103.5 L12.7,98.1 L11.3,92.7 L10.3,87.4 L10.0,82.0 L10.4,76.7 L11.1,71.3 L11.8,65.9 L12.3,60.6 L12.4,55.2 L12.4,49.8 L12.4,44.5 L12.4,39.1 L12.4,33.7 L12.5,28.4 L12.5,23.0 L12.6,17.7 L12.6,12.3 L25.4,13.9' fill='none' stroke='%23f5c400' stroke-opacity='0.28' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");}
:root[data-theme="notebook"][data-theme-variant="graphite"]{--marker-0:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cpath d='M9.972447669227368,29.905476817951573 L13.5,12.0 L18.9,12.0 L24.2,12.1 L29.6,12.1 L35.0,12.2 L40.3,12.2 L45.7,12.1 L51.0,11.9 L56.4,11.9 L61.8,12.3 L67.1,13.1 L72.5,13.9 L77.8,14.3 L83.2,14.2 L88.6,13.6 L93.9,12.9 L99.3,12.5 L104.7,12.5 L110.0,12.9 L115.4,13.3 L120.8,13.3 L126.1,12.8 L131.5,11.8 L136.8,10.8 L142.2,10.2 L147.6,10.3 L152.9,11.2 L158.3,12.4 L163.6,13.5 L169.0,14.2 L174.4,14.3 L179.7,14.0 L185.1,13.6 L190.5,13.3 L195.8,13.3 L201.2,13.3 L206.6,13.3 L211.9,13.4 L217.3,13.4 L222.6,13.5 L228.0,13.5 L228.0,18.9 L227.9,24.2 L227.9,29.6 L227.8,35.0 L227.8,40.3 L227.8,45.7 L227.6,51.0 L227.2,56.4 L226.6,61.8 L226.3,67.1 L226.4,72.5 L227.1,77.8 L228.2,83.2 L229.3,88.6 L229.9,93.9 L229.8,99.3 L229.1,104.7 L228.1,110.0 L227.3,115.4 L227.1,120.8 L227.3,126.1 L227.7,131.5 L227.8,136.8 L227.4,142.2 L226.6,147.6 L225.7,152.9 L225.0,158.3 L225.0,163.6 L225.5,169.0 L226.2,174.4 L226.9,179.7 L227.1,185.1 L227.0,190.5 L226.7,195.8 L226.7,201.2 L226.7,206.6 L226.6,211.9 L226.6,217.3 L226.5,222.6 L226.5,228.0 L221.1,228.0 L215.8,227.9 L210.4,227.9 L205.1,227.8 L199.7,227.8 L194.3,227.7 L189.0,227.8 L183.6,227.9 L178.2,228.0 L172.9,227.8 L167.5,227.6 L162.2,227.6 L156.8,227.9 L151.4,228.6 L146.1,229.4 L140.7,229.9 L135.3,229.6 L130.0,228.6 L124.6,227.0 L119.2,225.4 L113.9,224.3 L108.5,224.2 L103.2,224.8 L97.8,225.9 L92.4,226.8 L87.1,227.3 L81.7,227.3 L76.4,227.1 L71.0,226.8 L65.6,226.8 L60.3,226.9 L54.9,227.0 L49.5,227.0 L44.2,226.7 L38.8,226.7 L33.4,226.7 L28.1,226.6 L22.7,226.6 L17.4,226.5 L12.0,226.5 L12.0,221.1 L12.1,215.8 L12.1,210.4 L12.2,205.1 L12.2,199.7 L12.1,194.3 L11.8,189.0 L11.6,183.6 L11.8,178.2 L12.2,172.9 L12.7,167.5 L13.0,162.2 L12.9,156.8 L12.7,151.4 L12.5,146.1 L12.7,140.7 L13.5,135.3 L14.5,130.0 L15.3,124.6 L15.5,119.2 L14.8,113.9 L13.5,108.5 L12.0,103.2 L10.8,97.8 L10.4,92.4 L10.8,87.1 L11.6,81.7 L12.5,76.4 L13.1,71.0 L13.3,65.6 L13.3,60.3 L13.2,54.9 L13.2,49.5 L13.3,44.2 L13.3,38.8 L13.3,33.4 L13.4,28.1 L13.4,22.7 L13.5,17.4 L13.5,12.0 L28.394293668781973,15.37938636316717' fill='none' stroke='%235d6152' stroke-opacity='0.22' stroke-width='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8.9,29.3 L12.4,11.4 L17.8,11.4 L23.1,11.5 L28.5,11.5 L33.9,11.6 L39.2,11.6 L44.6,11.5 L49.9,11.3 L55.3,11.3 L60.7,11.7 L66.0,12.5 L71.4,13.3 L76.7,13.7 L82.1,13.6 L87.5,13.0 L92.8,12.3 L98.2,11.9 L103.6,11.9 L108.9,12.3 L114.3,12.7 L119.7,12.7 L125.0,12.2 L130.4,11.2 L135.7,10.2 L141.1,9.6 L146.5,9.7 L151.8,10.6 L157.2,11.8 L162.5,12.9 L167.9,13.6 L173.3,13.7 L178.6,13.4 L184.0,13.0 L189.4,12.7 L194.7,12.7 L200.1,12.7 L205.5,12.7 L210.8,12.8 L216.2,12.8 L221.5,12.9 L226.9,12.9 L226.9,18.3 L226.8,23.6 L226.8,29.0 L226.7,34.4 L226.7,39.7 L226.7,45.1 L226.5,50.4 L226.1,55.8 L225.5,61.2 L225.2,66.5 L225.3,71.9 L226.0,77.2 L227.1,82.6 L228.2,88.0 L228.8,93.3 L228.7,98.7 L228.0,104.1 L227.0,109.4 L226.2,114.8 L226.0,120.2 L226.2,125.5 L226.6,130.9 L226.7,136.2 L226.3,141.6 L225.5,147.0 L224.6,152.3 L223.9,157.7 L223.9,163.0 L224.4,168.4 L225.1,173.8 L225.8,179.1 L226.0,184.5 L225.9,189.9 L225.6,195.2 L225.6,200.6 L225.6,206.0 L225.5,211.3 L225.5,216.7 L225.4,222.0 L225.4,227.4 L220.0,227.4 L214.7,227.3 L209.3,227.3 L204.0,227.2 L198.6,227.2 L193.2,227.1 L187.9,227.2 L182.5,227.3 L177.1,227.4 L171.8,227.2 L166.4,227.0 L161.1,227.0 L155.7,227.3 L150.3,228.0 L145.0,228.8 L139.6,229.3 L134.2,229.0 L128.9,228.0 L123.5,226.4 L118.1,224.8 L112.8,223.7 L107.4,223.6 L102.1,224.2 L96.7,225.3 L91.3,226.2 L86.0,226.7 L80.6,226.7 L75.3,226.5 L69.9,226.2 L64.5,226.2 L59.2,226.3 L53.8,226.4 L48.4,226.4 L43.1,226.1 L37.7,226.1 L32.3,226.1 L27.0,226.0 L21.6,226.0 L16.3,225.9 L10.9,225.9 L10.9,220.5 L11.0,215.2 L11.0,209.8 L11.1,204.5 L11.1,199.1 L11.0,193.7 L10.7,188.4 L10.5,183.0 L10.7,177.6 L11.1,172.3 L11.6,166.9 L11.9,161.6 L11.8,156.2 L11.6,150.8 L11.4,145.5 L11.6,140.1 L12.4,134.7 L13.4,129.4 L14.2,124.0 L14.4,118.6 L13.7,113.3 L12.4,107.9 L10.9,102.6 L9.7,97.2 L9.3,91.8 L9.7,86.5 L10.5,81.1 L11.4,75.8 L12.0,70.4 L12.2,65.0 L12.2,59.7 L12.1,54.3 L12.1,48.9 L12.2,43.6 L12.2,38.2 L12.2,32.8 L12.3,27.5 L12.3,22.1 L12.4,16.8 L12.4,11.4 L27.3,14.8' fill='none' stroke='%235d6152' stroke-opacity='0.15' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");--marker-1:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cpath d='M8.095660943367669,25.375473620472764 L13.5,12.0 L18.9,12.0 L24.2,12.1 L29.6,12.1 L35.0,12.2 L40.3,12.2 L45.7,12.2 L51.0,12.2 L56.4,12.3 L61.8,12.5 L67.1,12.5 L72.5,12.2 L77.8,11.5 L83.2,10.6 L88.6,10.1 L93.9,10.2 L99.3,11.1 L104.7,12.6 L110.0,14.1 L115.4,15.2 L120.8,15.5 L126.1,15.0 L131.5,14.1 L136.8,13.3 L142.2,12.9 L147.6,12.9 L152.9,13.3 L158.3,13.5 L163.6,13.5 L169.0,13.1 L174.4,12.7 L179.7,12.4 L185.1,12.5 L190.5,12.9 L195.8,13.3 L201.2,13.3 L206.6,13.3 L211.9,13.4 L217.3,13.4 L222.6,13.5 L228.0,13.5 L228.0,18.9 L227.9,24.2 L227.9,29.6 L227.8,35.0 L227.8,40.3 L227.8,45.7 L227.7,51.0 L227.6,56.4 L227.7,61.8 L227.8,67.1 L227.8,72.5 L227.5,77.8 L226.7,83.2 L225.7,88.6 L224.9,93.9 L224.7,99.3 L225.4,104.7 L226.7,110.0 L228.3,115.4 L229.5,120.8 L230.0,126.1 L229.6,131.5 L228.7,136.8 L227.7,142.2 L227.1,147.6 L227.0,152.9 L227.2,158.3 L227.4,163.6 L227.3,169.0 L227.0,174.4 L226.6,179.7 L226.4,185.1 L226.4,190.5 L226.7,195.8 L226.7,201.2 L226.7,206.6 L226.6,211.9 L226.6,217.3 L226.5,222.6 L226.5,228.0 L221.1,228.0 L215.8,227.9 L210.4,227.9 L205.1,227.8 L199.7,227.8 L194.3,227.8 L189.0,227.8 L183.6,227.9 L178.2,227.9 L172.9,227.8 L167.5,227.6 L162.2,227.6 L156.8,228.1 L151.4,228.9 L146.1,229.6 L140.7,229.9 L135.3,229.4 L130.0,228.1 L124.6,226.4 L119.2,225.0 L113.9,224.2 L108.5,224.3 L103.2,225.1 L97.8,226.2 L92.4,227.1 L87.1,227.4 L81.7,227.3 L76.4,227.0 L71.0,226.8 L65.6,226.8 L60.3,227.0 L54.9,227.1 L49.5,227.0 L44.2,226.7 L38.8,226.7 L33.4,226.7 L28.1,226.6 L22.7,226.6 L17.4,226.5 L12.0,226.5 L12.0,221.1 L12.1,215.8 L12.1,210.4 L12.2,205.1 L12.2,199.7 L12.3,194.3 L12.5,189.0 L12.4,183.6 L11.9,178.2 L11.2,172.9 L10.6,167.5 L10.6,162.2 L11.1,156.8 L12.0,151.4 L12.8,146.1 L13.3,140.7 L13.2,135.3 L12.8,130.0 L12.6,124.6 L12.8,119.2 L13.5,113.9 L14.4,108.5 L15.2,103.2 L15.4,97.8 L14.9,92.4 L13.8,87.1 L12.6,81.7 L11.8,76.4 L11.6,71.0 L11.9,65.6 L12.4,60.3 L12.9,54.9 L13.2,49.5 L13.3,44.2 L13.3,38.8 L13.3,33.4 L13.4,28.1 L13.4,22.7 L13.5,17.4 L13.5,12.0 L34.937793635045665,15.06644074823974' fill='none' stroke='%235d6152' stroke-opacity='0.22' stroke-width='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M7.9,24.2 L13.3,10.9 L18.7,10.9 L24.0,11.0 L29.4,11.0 L34.8,11.1 L40.1,11.1 L45.5,11.1 L50.8,11.1 L56.2,11.2 L61.6,11.4 L66.9,11.4 L72.3,11.1 L77.6,10.4 L83.0,9.5 L88.4,9.0 L93.7,9.1 L99.1,10.0 L104.5,11.5 L109.8,13.0 L115.2,14.1 L120.6,14.4 L125.9,13.9 L131.3,13.0 L136.6,12.2 L142.0,11.8 L147.4,11.8 L152.7,12.2 L158.1,12.4 L163.4,12.4 L168.8,12.0 L174.2,11.6 L179.5,11.3 L184.9,11.4 L190.3,11.8 L195.6,12.2 L201.0,12.2 L206.4,12.2 L211.7,12.3 L217.1,12.3 L222.4,12.4 L227.8,12.4 L227.8,17.8 L227.7,23.1 L227.7,28.5 L227.6,33.9 L227.6,39.2 L227.6,44.6 L227.5,49.9 L227.4,55.3 L227.5,60.7 L227.6,66.0 L227.6,71.4 L227.3,76.7 L226.5,82.1 L225.5,87.5 L224.7,92.8 L224.5,98.2 L225.2,103.6 L226.5,108.9 L228.1,114.3 L229.3,119.7 L229.8,125.0 L229.4,130.4 L228.5,135.7 L227.5,141.1 L226.9,146.5 L226.8,151.8 L227.0,157.2 L227.2,162.5 L227.1,167.9 L226.8,173.3 L226.4,178.6 L226.2,184.0 L226.2,189.4 L226.5,194.7 L226.5,200.1 L226.5,205.5 L226.4,210.8 L226.4,216.2 L226.3,221.5 L226.3,226.9 L220.9,226.9 L215.6,226.8 L210.2,226.8 L204.9,226.7 L199.5,226.7 L194.1,226.7 L188.8,226.7 L183.4,226.8 L178.0,226.8 L172.7,226.7 L167.3,226.5 L162.0,226.5 L156.6,227.0 L151.2,227.8 L145.9,228.5 L140.5,228.8 L135.1,228.3 L129.8,227.0 L124.4,225.3 L119.0,223.9 L113.7,223.1 L108.3,223.2 L103.0,224.0 L97.6,225.1 L92.2,226.0 L86.9,226.3 L81.5,226.2 L76.2,225.9 L70.8,225.7 L65.4,225.7 L60.1,225.9 L54.7,226.0 L49.3,225.9 L44.0,225.6 L38.6,225.6 L33.2,225.6 L27.9,225.5 L22.5,225.5 L17.2,225.4 L11.8,225.4 L11.8,220.0 L11.9,214.7 L11.9,209.3 L12.0,204.0 L12.0,198.6 L12.1,193.2 L12.3,187.9 L12.2,182.5 L11.7,177.1 L11.0,171.8 L10.4,166.4 L10.4,161.1 L10.9,155.7 L11.8,150.3 L12.6,145.0 L13.1,139.6 L13.0,134.2 L12.6,128.9 L12.4,123.5 L12.6,118.1 L13.3,112.8 L14.2,107.4 L15.0,102.1 L15.2,96.7 L14.7,91.3 L13.6,86.0 L12.4,80.6 L11.6,75.3 L11.4,69.9 L11.7,64.5 L12.2,59.2 L12.7,53.8 L13.0,48.4 L13.1,43.1 L13.1,37.7 L13.1,32.3 L13.2,27.0 L13.2,21.6 L13.3,16.3 L13.3,10.9 L34.7,13.9' fill='none' stroke='%235d6152' stroke-opacity='0.15' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");--marker-2:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cpath d='M8.443819544786663,29.7529863915214 L13.5,12.0 L18.9,12.0 L24.2,12.1 L29.6,12.1 L35.0,12.2 L40.3,12.2 L45.7,12.3 L51.0,12.6 L56.4,12.6 L61.8,12.4 L67.1,12.3 L72.5,12.3 L77.8,12.5 L83.2,12.8 L88.6,12.9 L93.9,12.4 L99.3,11.5 L104.7,10.4 L110.0,9.7 L115.4,9.8 L120.8,10.7 L126.1,12.2 L131.5,13.8 L136.8,15.0 L142.2,15.3 L147.6,15.0 L152.9,14.2 L158.3,13.5 L163.6,13.1 L169.0,13.1 L174.4,13.3 L179.7,13.4 L185.1,13.4 L190.5,13.3 L195.8,13.3 L201.2,13.3 L206.6,13.3 L211.9,13.4 L217.3,13.4 L222.6,13.5 L228.0,13.5 L228.0,18.9 L227.9,24.2 L227.9,29.6 L227.8,35.0 L227.8,40.3 L227.7,45.7 L227.7,51.0 L228.0,56.4 L228.6,61.8 L229.0,67.1 L229.0,72.5 L228.6,77.8 L228.0,83.2 L227.4,88.6 L227.3,93.9 L227.5,99.3 L227.8,104.7 L227.9,110.0 L227.5,115.4 L226.5,120.8 L225.3,126.1 L224.4,131.5 L224.2,136.8 L224.8,142.2 L226.1,147.6 L227.4,152.9 L228.3,158.3 L228.6,163.6 L228.3,169.0 L227.7,174.4 L227.1,179.7 L226.9,185.1 L226.8,190.5 L226.7,195.8 L226.7,201.2 L226.7,206.6 L226.6,211.9 L226.6,217.3 L226.5,222.6 L226.5,228.0 L221.1,228.0 L215.8,227.9 L210.4,227.9 L205.1,227.8 L199.7,227.8 L194.3,227.8 L189.0,227.7 L183.6,227.7 L178.2,228.0 L172.9,228.4 L167.5,229.0 L162.2,229.3 L156.8,229.0 L151.4,228.0 L146.1,226.6 L140.7,225.3 L135.3,224.4 L130.0,224.4 L124.6,225.2 L119.2,226.3 L113.9,227.3 L108.5,227.7 L103.2,227.6 L97.8,227.2 L92.4,226.9 L87.1,226.9 L81.7,227.3 L76.4,227.9 L71.0,228.2 L65.6,228.1 L60.3,227.7 L54.9,227.1 L49.5,226.8 L44.2,226.7 L38.8,226.7 L33.4,226.7 L28.1,226.6 L22.7,226.6 L17.4,226.5 L12.0,226.5 L12.0,221.1 L12.1,215.8 L12.1,210.4 L12.2,205.1 L12.2,199.7 L12.2,194.3 L12.3,189.0 L12.5,183.6 L12.6,178.2 L12.5,172.9 L12.4,167.5 L12.5,162.2 L13.0,156.8 L13.9,151.4 L14.7,146.1 L15.1,140.7 L14.7,135.3 L13.5,130.0 L12.0,124.6 L10.6,119.2 L9.8,113.9 L9.9,108.5 L10.8,103.2 L11.9,97.8 L12.9,92.4 L13.3,87.1 L13.3,81.7 L13.1,76.4 L12.9,71.0 L13.0,65.6 L13.3,60.3 L13.5,54.9 L13.5,49.5 L13.3,44.2 L13.3,38.8 L13.3,33.4 L13.4,28.1 L13.4,22.7 L13.5,17.4 L13.5,12.0 L27.227576660383182,14.41765588084807' fill='none' stroke='%235d6152' stroke-opacity='0.22' stroke-width='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M7.9,30.0 L13.0,12.3 L18.4,12.3 L23.7,12.4 L29.1,12.4 L34.5,12.5 L39.8,12.5 L45.2,12.6 L50.5,12.9 L55.9,12.9 L61.3,12.7 L66.6,12.6 L72.0,12.6 L77.3,12.8 L82.7,13.1 L88.1,13.2 L93.4,12.7 L98.8,11.8 L104.2,10.7 L109.5,10.0 L114.9,10.1 L120.3,11.0 L125.6,12.5 L131.0,14.1 L136.3,15.3 L141.7,15.6 L147.1,15.3 L152.4,14.5 L157.8,13.8 L163.1,13.4 L168.5,13.4 L173.9,13.6 L179.2,13.7 L184.6,13.7 L190.0,13.6 L195.3,13.6 L200.7,13.6 L206.1,13.6 L211.4,13.7 L216.8,13.7 L222.1,13.8 L227.5,13.8 L227.5,19.2 L227.4,24.5 L227.4,29.9 L227.3,35.3 L227.3,40.6 L227.2,46.0 L227.2,51.3 L227.5,56.7 L228.1,62.1 L228.5,67.4 L228.5,72.8 L228.1,78.1 L227.5,83.5 L226.9,88.9 L226.8,94.2 L227.0,99.6 L227.3,105.0 L227.4,110.3 L227.0,115.7 L226.0,121.1 L224.8,126.4 L223.9,131.8 L223.7,137.1 L224.3,142.5 L225.6,147.9 L226.9,153.2 L227.8,158.6 L228.1,163.9 L227.8,169.3 L227.2,174.7 L226.6,180.0 L226.4,185.4 L226.3,190.8 L226.2,196.1 L226.2,201.5 L226.2,206.9 L226.1,212.2 L226.1,217.6 L226.0,222.9 L226.0,228.3 L220.6,228.3 L215.3,228.2 L209.9,228.2 L204.6,228.1 L199.2,228.1 L193.8,228.1 L188.5,228.0 L183.1,228.0 L177.7,228.3 L172.4,228.7 L167.0,229.3 L161.7,229.6 L156.3,229.3 L150.9,228.3 L145.6,226.9 L140.2,225.6 L134.8,224.7 L129.5,224.7 L124.1,225.5 L118.7,226.6 L113.4,227.6 L108.0,228.0 L102.7,227.9 L97.3,227.5 L91.9,227.2 L86.6,227.2 L81.2,227.6 L75.9,228.2 L70.5,228.5 L65.1,228.4 L59.8,228.0 L54.4,227.4 L49.0,227.1 L43.7,227.0 L38.3,227.0 L32.9,227.0 L27.6,226.9 L22.2,226.9 L16.9,226.8 L11.5,226.8 L11.5,221.4 L11.6,216.1 L11.6,210.7 L11.7,205.4 L11.7,200.0 L11.7,194.6 L11.8,189.3 L12.0,183.9 L12.1,178.5 L12.0,173.2 L11.9,167.8 L12.0,162.5 L12.5,157.1 L13.4,151.7 L14.2,146.4 L14.6,141.0 L14.2,135.6 L13.0,130.3 L11.5,124.9 L10.1,119.5 L9.3,114.2 L9.4,108.8 L10.3,103.5 L11.4,98.1 L12.4,92.7 L12.8,87.4 L12.8,82.0 L12.6,76.7 L12.4,71.3 L12.5,65.9 L12.8,60.6 L13.0,55.2 L13.0,49.8 L12.8,44.5 L12.8,39.1 L12.8,33.7 L12.9,28.4 L12.9,23.0 L13.0,17.7 L13.0,12.3 L26.7,14.7' fill='none' stroke='%235d6152' stroke-opacity='0.15' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");}
:root[data-theme="notebook"] .shell::before,:root[data-theme="notebook"] .shell::after{mask-image:none}
:root[data-theme="notebook"] .shell::before{transform:translate(2px,3px)}
:root[data-theme="notebook"] :is(.card,.guide-intro,.home-weapons,.damage-rewards,.battle-leaderboard,.settings-section)::after{content:none}
:root[data-theme="notebook"] :is(.card,.guide-intro,.home-weapons,.damage-rewards,.battle-leaderboard,.settings-section)::before{
  inset:-9px -10px;mask-image:none;background:none;transform:none;z-index:-1;
  border:22px solid transparent;border-image:var(--marker-0) 44 / 22px round}
:root[data-theme="notebook"] :is(.card,.home-weapons,.damage-rewards,.battle-leaderboard,.settings-section):nth-child(2n)::before{border-image-source:var(--marker-1)}
:root[data-theme="notebook"] :is(.card,.home-weapons,.damage-rewards,.battle-leaderboard,.settings-section):nth-child(3n)::before{border-image-source:var(--marker-2)}

/* Compact bars: main HP is one cell tall, the reward bar five rows; pen and brush shrink on phones. */
:root[data-theme="notebook"] .boss-hp-bar{height:66px}
:root[data-theme="notebook"] .hp-notebook-canvas{height:66px}
:root[data-theme="notebook"] .boss-hp-numbers{inset:var(--hp-sketch-top,22px) auto auto 22px;font-size:13px}
:root[data-theme="notebook"] .boss-hp-percent{inset:var(--hp-sketch-top,22px) 22px auto auto;font-size:13px}
.hp-notebook-brush svg,.notebook-pen svg{scale:.8}
.notebook-bar{height:110px}
.notebook-bar canvas{height:110px}
.notebook-milestone{width:76px}
.notebook-threshold{font-size:16px}
@media(max-width:600px){
  .hp-notebook-brush svg,.notebook-pen svg{scale:.6}
  :root[data-theme="notebook"] :is(.boss-hp-numbers,.boss-hp-percent){font-size:11px;padding:0 3px}
  :root[data-theme="notebook"] .boss-hp-numbers{left:14px}
  :root[data-theme="notebook"] .boss-hp-percent{right:14px;min-width:0}
  .notebook-milestone{width:62px}
  .notebook-threshold{font-size:14px}
  .notebook-reward-icons{font-size:12px;gap:1px}
  .notebook-reward-icon{width:18px;height:18px}
  .notebook-counter{min-height:22px;font-size:14px}
  .notebook-current{font-size:18px}
}
:root[data-theme="notebook"] :is(.battle-leaderboard,.card,.home-weapons,.damage-rewards,.settings-section){overflow:visible}

/* Layout audit: keep decorative lines inside their panels and leave room for wrapped copy. */
.card,.guide-detail,.home-resource-column,.home-battle-column,.hub-grid>*{min-width:0}
.card-head{flex-wrap:wrap}
.card-head :is(h2,strong){min-width:0;overflow-wrap:anywhere}
.hub-recipient-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px 22px;margin:22px 0}
.hub-recipient-form>label{display:grid;gap:6px;min-width:0;align-content:start}
.hub-recipient-form>label :is(input,select){width:100%;min-width:0;font:inherit;border:1px solid #647052;border-radius:6px;padding:8px;background:#18221c;color:#e8dfca}
.hub-recipient-form>label:has(select){grid-column:2;grid-row:1/3}
.hub-recipient-form select[multiple]{height:132px!important;min-height:132px!important;padding:6px!important}
.hub-recipient-form .hub-all-friends{display:flex;align-items:center;gap:8px;min-height:44px}
.hub-recipient-form .hub-all-friends input{width:16px;height:16px;min-height:16px;margin:0;flex:none}
.hub-grid>.hub-mode{display:flex;flex-direction:column;gap:11px;align-items:flex-start}
.hub-grid>.hub-mode>button{margin-top:auto}
.hub-grid>.hub-mode>.hub-task-icon{width:44px;height:44px;object-fit:contain}
.hub-intro{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;gap:22px}
.hub-intro>.hub-banner-icon{grid-column:2;grid-row:1;float:none;width:44px;height:44px;margin:0!important}
.hub-intro>.battle-section-title{grid-column:1;grid-row:1;min-width:0}
.hub-grid>.card>.hub-podogrev-image{display:block;width:100%;height:110px;object-fit:contain;margin-bottom:11px}
.hub-task{padding-left:22px!important;grid-template-columns:44px minmax(0,1fr);column-gap:14px;align-content:start}
.hub-task>.hub-task-icon{position:static;grid-column:1;grid-row:1;width:44px;height:44px}
.hub-task>.battle-section-title{grid-column:2;min-height:44px}
.hub-task>:not(.hub-task-icon):not(.battle-section-title){grid-column:1/-1}
.hub-map-row img,.hub-inbox-row img,.social-card img,.guide-thumb,.guide-art{object-fit:contain;flex-shrink:0}
.hub-game-menu{align-items:stretch}
.hub-game-tab{display:flex;align-items:center;justify-content:center;gap:8px;min-height:66px}
.theme-line-settings{padding-top:12px;border-top:1px solid var(--theme-line,#647052)}
.theme-line-settings>summary{cursor:pointer;font-weight:700}
.theme-line-editor{display:grid;grid-template-columns:140px minmax(0,1fr);gap:12px;margin-top:12px}
.theme-line-editor>button,.theme-line-editor>p{grid-column:1/-1}
.theme-line-editor>button{justify-self:start}
.theme-line-editor input[type=text]{font-family:monospace!important}
:root[data-custom-lines="true"][data-theme="game"] :is(.card,.guide-intro,.manual-weapon,.settings-section,.home-resource,.resource-reward,.guide-list,.queue-options,.hub-flow-node,.hub-map-row,.hub-inbox-row){border-color:var(--theme-line)}
:root[data-theme="notebook"] :is(.card,.guide-intro,.home-weapons,.damage-rewards,.battle-leaderboard,.settings-section)::before{inset:0;border-width:14px;border-image-width:14px;border-image-repeat:stretch}
:root[data-theme="notebook"] .card-head{height:auto;min-height:22px;row-gap:11px}
:root[data-theme="notebook"] .home-weapons-table tbody :is(th,td){height:66px;padding:10px 4px;line-height:22px}
:root[data-theme="notebook"] .home-weapons-table .home-resource-delta{height:22px;margin:0;line-height:22px}
:root[data-theme="notebook"] .home-metrics{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:22px}
:root[data-theme="notebook"] .home-metrics .home-resource{height:88px;min-height:88px;padding:10px;grid-template-rows:22px auto;align-content:start}
:root[data-theme="notebook"] .home-metrics .home-resource :is(.home-resource-name,.home-resource-balance){height:auto;min-height:22px;overflow:visible;white-space:normal}
:root[data-theme="notebook"] .home-metrics .home-resource-balance{display:block}
:root[data-theme="notebook"] .home-metrics .home-resource-delta{display:block;margin:0;height:22px;line-height:22px}
:root[data-theme="notebook"] :is(.home-fight-heading,.home-fight-meta){height:auto;flex-wrap:wrap;gap:0 11px}
:root[data-theme="notebook"] .home-fight-heading{min-height:22px}
:root[data-theme="notebook"] .home-resource-name{white-space:normal;overflow:visible;height:auto;min-height:22px}
:root[data-theme="notebook"] .home-resources .home-resource{height:auto;min-height:66px;align-content:center}
:root[data-theme="notebook"] .home-resources .home-resource-balance{height:auto;min-height:22px;flex-wrap:wrap;overflow:visible;gap:0 6px}
:root[data-theme="notebook"] :is(.battle-person,.queue-row,.guide-item){height:auto;min-height:44px}
:root[data-theme="notebook"] .battle-person-link{height:auto;min-height:44px}
:root[data-theme="notebook"] .guide-item{min-height:66px;align-items:center}
:root[data-theme="notebook"] .guide-item-copy{min-width:0}
:root[data-theme="notebook"] .guide-item-copy>*{overflow-wrap:anywhere}
:root[data-theme="notebook"] :is(.hub-grid,.hub-tasks,.hub-flow){gap:22px;margin:22px 0}
:root[data-theme="notebook"] .hub-grid>.card,:root[data-theme="notebook"] .hub-tasks>.card{margin:0}
:root[data-theme="notebook"] .hub-mode .battle-section-title{line-height:22px;min-height:22px}
:root[data-theme="notebook"] .hub-task>.battle-section-title{line-height:22px;height:auto}
:root[data-theme="notebook"] .hub-banner-icon{float:none;display:block;margin:0 0 11px auto;height:44px;width:44px}
:root[data-theme="notebook"] input[type=checkbox],:root[data-theme="notebook"] input[type=radio]{width:16px;height:16px;min-height:16px;padding:0;vertical-align:middle;flex:none}
:root[data-theme="notebook"] .guide-detail-head{height:auto;align-items:center;gap:22px}
:root[data-theme="notebook"] .guide-detail-head h2{line-height:33px;margin:0;overflow-wrap:anywhere}
:root[data-theme="notebook"] .guide-detail-head .guide-art{width:88px;height:88px}
.hp-notebook-brush .hp-eraser{display:none}
:root[data-theme-variant="graphite"] .hp-notebook-brush .hp-correction-brush{display:none}
:root[data-theme-variant="graphite"] .hp-notebook-brush .hp-eraser{display:block;transform:rotate(-10deg);transform-origin:left center;filter:drop-shadow(1px 2px 1px #403b3028)}
:root[data-theme-variant="graphite"] .hp-notebook-brush.at-edge .hp-eraser{transform:rotate(-170deg)}
:root[data-theme-variant="graphite"] :is(.boss-hp-numbers,.boss-hp-percent){background:var(--theme-paper);box-shadow:0 0 3px var(--theme-paper)}
:root[data-theme="notebook"] :is(.boss-hp-numbers,.boss-hp-percent){z-index:3}
@media(max-width:720px){
  .hub-recipient-form{grid-template-columns:minmax(0,1fr)}
  .hub-recipient-form>label:has(select){grid-column:1;grid-row:auto}
  .hub-task{column-gap:11px}
}
@media(max-width:600px){
  :root[data-theme="notebook"] .home-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
  :root[data-theme="notebook"] .home-metrics .home-resource{padding:10px 6px}
  :root[data-theme="notebook"] .home-metrics .home-resource-count{font-size:12px}
  :root[data-theme="notebook"] .topbar{min-height:88px;height:auto;flex-wrap:wrap;gap:11px;padding:11px 0}
  :root[data-theme="notebook"] .boss-current-main{flex-wrap:wrap;gap:11px}
  :root[data-theme="notebook"] .battle-info{grid-template-columns:minmax(0,1fr)}
  :root[data-theme="notebook"] :is(.damage-rewards,.battle-leaderboard){min-width:0}
  :root[data-theme="notebook"] .battle-person{grid-template-columns:22px minmax(0,1fr) auto;gap:6px;padding:0}
  :root[data-theme="notebook"] .battle-person-link{gap:6px}
  :root[data-theme="notebook"] .battle-person-name{font-size:12px}
  :root[data-theme="notebook"] .battle-person-damage{font-size:11px}
  :root[data-theme="notebook"] .guide-detail-head{gap:11px}
  .theme-line-editor{grid-template-columns:90px minmax(0,1fr)}
  :root[data-theme="notebook"] .tabs{height:66px;min-height:66px;overflow-x:auto;overflow-y:hidden}
  :root[data-theme="notebook"] .local-pill{display:none}
  :root[data-theme="notebook"] .topbar{height:88px;padding:0;flex-wrap:nowrap}
  :root[data-theme="notebook"] .brand{gap:8px;min-width:0}
  :root[data-theme="notebook"] .brand strong{font-size:16px}
  :root[data-theme="notebook"] .brand small{font-size:9px}
  :root[data-theme="notebook"] .top-actions{gap:6px;flex-shrink:0}
  :root[data-theme="notebook"] .home-resources{grid-template-columns:minmax(0,1fr);gap:11px}
  .boss-groups{flex-wrap:wrap;max-width:100%}
  .boss-groups .boss-group{flex:1 1 130px;min-width:0}
  :root[data-theme="notebook"] #boss-detail>.guide-detail-head{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;align-items:center}
  :root[data-theme="notebook"] #boss-detail .guide-detail-heading,:root[data-theme="notebook"] #boss-detail .boss-heading-row{display:contents}
  :root[data-theme="notebook"] #boss-detail .guide-detail-head>.guide-art{grid-column:1;grid-row:1/3;width:66px;height:66px;justify-self:start}
  :root[data-theme="notebook"] #boss-detail .boss-heading-row h2{grid-column:2/-1;grid-row:1;font-size:22px;line-height:33px}
  :root[data-theme="notebook"] #boss-detail .boss-key-access{grid-column:2/-1;grid-row:2;font-size:12px;line-height:22px;margin:0}
  :root[data-theme="notebook"] #boss-detail .boss-heading-row>button{grid-row:3;font-size:12px;line-height:22px;padding:9px 4px;min-height:44px}
}

.page-title-with-icon{display:flex;align-items:center;gap:11px}
.page-title-icon{display:block;width:44px;height:44px;object-fit:contain;flex:none}
:root[data-theme="notebook"] .page-title-with-icon{line-height:44px}
:root[data-theme="notebook"] .page-title-icon{width:44px;height:44px}
@media(max-width:720px){:root[data-theme="notebook"] .tabs{height:66px;min-height:66px;overflow-y:hidden}}
@media(max-width:600px){.hub-mode .resource-reward{max-width:100%;gap:6px}.hub-mode .resource-reward-name{display:none}}

/* Compact battle controls share the left column with damage milestones. */
.battle-actions-column{display:grid;gap:12px;min-width:0;grid-column:1}
.battle-actions-column>.damage-rewards{margin:0!important}
#manual-hits-panel{min-width:0;margin:0;padding:11px 0 0;border-top:1px solid var(--theme-line,#5c503d);box-shadow:none}
#manual-hits-panel .manual-hits-head{height:22px;line-height:22px;margin:0 0 8px;font-size:14px}
#manual-hits-panel .manual-weapons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0}
#manual-hits-panel .manual-weapon{display:contents}
#manual-hits-panel .manual-weapon-toggle{display:grid;grid-template-columns:28px minmax(0,1fr) 8px;grid-template-rows:22px 16px;gap:0 6px;grid-row:1;min-width:0;height:48px;min-height:44px;padding:4px 6px;font-size:12px;border:1px solid var(--theme-line,#5c503d);border-radius:6px}
#manual-hits-panel .manual-weapon-toggle[aria-expanded=true]{box-shadow:inset 0 -2px var(--theme-accent,#c79659);background:#a8bba31c}
#manual-hits-panel .manual-weapon-icon{grid-row:1/3;width:28px;height:28px;align-self:center;border-radius:4px}
#manual-hits-panel .manual-weapon-name{grid-column:2;line-height:22px;font-size:12px;white-space:nowrap}
#manual-hits-panel .manual-weapon-stock{grid-column:2;grid-row:2;line-height:16px;font-size:11px}
#manual-hits-panel .manual-weapon-arrow{grid-column:3;grid-row:1/3;align-self:center;font-size:12px}
#manual-hits-panel .manual-weapon-options{grid-column:1/-1;grid-row:2;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:4px 0 0;border:0}
#manual-hits-panel .manual-crit-info{grid-column:1/-1;line-height:22px;font-size:11px;color:var(--theme-muted,#91a0aa)}
#manual-hits-panel .manual-hit-option{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:5px;border-radius:5px}
#manual-hits-panel .manual-hit-icon{width:24px;height:24px;border-radius:3px}
#manual-hits-panel .manual-hit-name{display:none}
#manual-hits-panel .manual-hit-count{font-size:13px;line-height:22px;white-space:nowrap}
#manual-hits-panel .battle-special{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:8px 0 0}
#manual-hits-panel .battle-special button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:5px 4px;font-size:12px;line-height:22px}
.battle-special-icon{width:20px;height:20px;object-fit:contain}
#manual-hits-panel .guide-action-note{margin:6px 0 0;line-height:22px;font-size:12px}
@media(max-width:720px){.battle-actions-column{grid-column:1}#manual-hits-panel .manual-weapon-toggle{grid-template-columns:22px minmax(0,1fr);gap:0 4px;padding:4px}#manual-hits-panel .manual-weapon-icon{width:22px;height:22px}#manual-hits-panel .manual-weapon-name{font-size:11px}#manual-hits-panel .manual-weapon-arrow{display:none}}

/* Compact spacing keeps the notebook's 22px text baseline and touch targets. */
.card{padding:16px;margin-bottom:12px}
.grid,.battle-info{gap:12px}
.page-heading{margin-bottom:12px}
.card-head{margin-bottom:11px}
.button-row{margin-top:12px;gap:8px}
.section-title{margin:8px 0}
.tabs{margin:16px 0}
.boss-current>.card-head{margin-bottom:6px}
.boss-current .current-queue-controls{margin:0 0 11px}
.boss-current .boss-current-main{margin-bottom:6px;gap:11px}
.boss-current .boss-wins{height:22px;min-height:22px;padding:0 7px;line-height:20px;font-size:12px;align-self:center}
.boss-current #boss-hp{margin:0 0 6px}
.boss-current :is(#boss-timer,#auto-status,#boss-finishing-estimate){margin:0 0 6px;line-height:22px}
.boss-current .battle-info{margin:11px 0 0}
.battle-actions-column{gap:11px}
.notebook-counter{min-height:22px}
:root[data-theme="notebook"] :is(.card,.guide-intro,.home-weapons,.damage-rewards,.battle-leaderboard,.settings-section){padding:11px 22px;margin-bottom:11px}
:root[data-theme="notebook"] :is(.grid,.battle-info,.home-battle-column,.home-resource-column){gap:11px}
:root[data-theme="notebook"] .page-heading{margin-bottom:11px}
:root[data-theme="notebook"] .card-head{margin-bottom:11px}
:root[data-theme="notebook"] .button-row{margin-top:11px;gap:11px}
:root[data-theme="notebook"] .boss-current>.card-head{margin-bottom:0}
:root[data-theme="notebook"] .boss-current .current-queue-controls{margin:0 0 11px}
:root[data-theme="notebook"] .boss-current .boss-current-main{margin:0;gap:11px}
:root[data-theme="notebook"] .boss-current .boss-wins{height:22px;padding:0 7px;line-height:20px}
:root[data-theme="notebook"] .boss-current #boss-hp{margin:0}
:root[data-theme="notebook"] .boss-current :is(#boss-timer,#auto-status,#boss-finishing-estimate){margin:0;min-height:22px;line-height:22px}
:root[data-theme="notebook"] .boss-current #auto-status{font-size:12px}
:root[data-theme="notebook"] .boss-current .battle-info{margin:11px 0 0}
:root[data-theme="notebook"] .reward-track-heading{margin-bottom:0}
:root[data-theme="notebook"] .battle-leaderboard>.battle-section-title{margin-bottom:11px}
:root[data-theme="notebook"] :is(.home-fight-heading,.home-weapons-table,.damage-chart,.guide-controls,.queue-items){margin-bottom:11px}
@media(max-width:720px){
  /* Desktop retains rewards above weapons; phone puts weapons before rewards. */
  .battle-actions-column{display:flex;flex-direction:column;gap:11px}
  .battle-actions-column>#manual-hits-panel{order:-1;padding-top:0;border-top:0}
  .battle-info>.battle-leaderboard{grid-column:1}
  .boss-current .boss-current-main{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:6px;row-gap:0}
  .boss-current .boss-current-main>div{display:contents}
  .boss-current #boss-status{grid-column:1;grid-row:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .boss-current #boss-wins{grid-column:2;grid-row:1;white-space:nowrap}
  .boss-current :is(#boss-mode,#boss-combo){grid-column:1/-1;margin:0;line-height:22px}
}
@media(max-width:600px){
  :root[data-theme="notebook"] :is(.card,.guide-intro,.home-weapons,.damage-rewards,.battle-leaderboard,.settings-section){padding:11px}
  :root[data-theme="notebook"] .topbar{height:66px;min-height:66px}
  :root[data-theme="notebook"] .tabs{height:44px;min-height:44px;margin:11px 0}
  :root[data-theme="notebook"] .boss-current .boss-current-main{gap:0 6px}
  :root[data-theme="notebook"] .boss-current-name{font-size:28px}
}

/* Home balances: one notebook line per resource, five compact desktop metrics. */
#player-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px;margin:0 0 11px;background:none;min-width:0}
#player-metrics .home-resource{display:grid;grid-template-columns:22px auto;grid-template-rows:22px 22px;grid-template-areas:"icon name" "value value";justify-content:center;align-content:center;align-items:center;gap:0 6px;height:44px;min-height:44px;min-width:0;padding:0 4px;border:0;border-radius:3px;box-shadow:inset 0 0 0 1px var(--theme-line,#454939);text-align:center}
#player-metrics .resource-reward-icon{grid-area:icon;grid-row:1;grid-column:1;width:22px;height:22px;justify-self:center}
#player-metrics .home-resource-name{grid-area:name;grid-row:1;grid-column:2;min-height:22px;height:22px;font-size:12px;line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#player-metrics .home-resource-balance{grid-area:value;grid-column:1/-1;grid-row:2;display:flex;align-items:center;justify-content:center;gap:4px;height:22px;min-height:22px;white-space:nowrap;flex-wrap:nowrap;overflow:visible;line-height:22px}
#player-metrics .home-resource-count{font-size:13px;line-height:22px;white-space:nowrap}
#player-metrics .home-resource-delta{display:inline;height:22px;line-height:22px;font-size:10px;margin:0}
#player-overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:0 11px;max-height:none;overflow:visible;min-width:0}
#player-overview .home-resource{display:grid;grid-template-columns:22px minmax(0,1fr) auto;grid-template-rows:22px;align-items:center;align-content:center;gap:0 6px;height:22px;min-height:22px;margin:0;padding:0;border:0;border-radius:0;box-shadow:inset 0 -1px var(--theme-line,#454939);background:none;font-size:12px;line-height:22px}
#player-overview .resource-reward-icon{grid-column:1;grid-row:1;width:22px;height:22px;object-fit:contain}
#player-overview .home-resource-name{grid-column:2;grid-row:1;min-width:0;min-height:22px;height:22px;line-height:22px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#player-overview .home-resource-balance{grid-column:3;grid-row:1;display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:4px;min-height:22px;height:22px;line-height:22px;white-space:nowrap;overflow:visible}
#player-overview .home-resource-count{font-size:12px;line-height:22px}
#player-overview .home-resource-delta{font-size:10px;line-height:22px;margin:0}

/* HP values sit above the drawing, outside the eraser's path. */
.boss-hp-meta{display:flex;align-items:center;justify-content:space-between;gap:11px;height:22px;line-height:22px;font-size:12px;font-variant-numeric:tabular-nums}
:root[data-theme="notebook"] .boss-hp-meta{padding:0 var(--hp-sketch-right,22px) 0 var(--hp-sketch-left,22px)}
.boss-hp-meta :is(.boss-hp-numbers,.boss-hp-percent),
:root[data-theme="notebook"] .boss-hp-meta :is(.boss-hp-numbers,.boss-hp-percent){position:static;inset:auto;display:block;height:22px;line-height:22px;margin:0;padding:0;background:none;box-shadow:none;text-shadow:none;color:inherit;font-size:inherit;border-radius:0}
.boss-hp-meta .boss-hp-numbers,:root[data-theme="notebook"] .boss-hp-meta .boss-hp-numbers{flex:1;min-width:0;max-width:none;width:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}
.boss-hp-meta .boss-hp-percent,:root[data-theme="notebook"] .boss-hp-meta .boss-hp-percent{flex:none;min-width:32px;text-align:right}

/* Boss labels use the theme's ink instead of oversized coloured raster text. */
.boss-danger-text{display:none}
:root[data-theme="notebook"] .boss-danger{height:22px;margin:0;font-size:11px;line-height:22px;color:var(--theme-ink)}
:root[data-theme="notebook"] .boss-danger.has-text{width:auto}
:root[data-theme="notebook"] .boss-danger-image{filter:grayscale(1) brightness(.6)}
:root[data-theme="notebook"] .boss-danger.has-text .boss-danger-image{display:none}
:root[data-theme="notebook"] .boss-danger-text{display:block;font-size:11px;line-height:22px;color:inherit}
:root[data-theme="notebook"] #boss-list .guide-item{min-height:66px;height:66px;padding:0 6px;gap:6px}
:root[data-theme="notebook"] #boss-list .guide-item-copy>*{margin:0;line-height:22px}
:root[data-theme="notebook"] .boss-catalog .guide-layout{gap:11px}
:root[data-theme="notebook"] #boss-detail>.guide-detail-head{min-height:66px;padding-bottom:11px;margin-bottom:11px;gap:11px}
:root[data-theme="notebook"] #boss-detail .guide-detail-head .guide-art{width:66px;height:66px}
:root[data-theme="notebook"] #boss-detail .guide-actions{padding:11px;margin-bottom:11px}
:root[data-theme="notebook"] #boss-detail .guide-actions>*{margin-bottom:11px}
:root[data-theme="notebook"] #boss-detail .guide-actions>:last-child{margin-bottom:0}
:root[data-theme="notebook"] .boss-queue .queue-options>:not(summary){margin-bottom:11px}
@media(min-width:721px) and (max-width:1000px){#player-metrics .home-resource-delta{display:none}}
@media(max-width:720px){
  #player-metrics{grid-template-columns:1fr;gap:0}
  #player-metrics .home-resource{grid-template-columns:22px minmax(0,1fr) auto;grid-template-rows:22px;grid-template-areas:"icon name value";justify-content:stretch;height:22px;min-height:22px;padding:0;border-radius:0;box-shadow:inset 0 -1px var(--theme-line,#454939);text-align:left}
  #player-metrics .home-resource-name{grid-column:2;text-align:left}
  #player-metrics .home-resource-balance{grid-column:3;grid-row:1;justify-content:flex-end}
  #player-metrics .home-resource-count{font-size:12px}
  #player-overview{grid-template-columns:minmax(0,1fr);gap:0}
}

/* Keep character metrics with resources; exact desktop damage, compact phone damage. */
.home-resource-column>#player-metrics{margin:0;gap:6px}
@media(min-width:721px){
  #player-metrics .home-resource-name{font-size:11px}
  #player-metrics .home-resource-count{font-size:11px}
  #player-metrics .home-resource-delta{display:none}
}
.damage-number-compact{display:none}
#server-damage .damage-chart{grid-template-columns:var(--damage-axis-width,110px) minmax(0,1fr)}
#server-damage .damage-dashboard-metrics{gap:11px;margin:11px 0}
#server-damage .damage-dashboard-metric{min-width:0;height:auto;min-height:66px;padding:10px 11px}
#server-damage .damage-dashboard-metric>.muted{font-size:12px;white-space:nowrap;line-height:22px}
#server-damage .damage-dashboard-value{font-size:clamp(13px,1.45vw,18px);line-height:22px;white-space:nowrap;overflow-wrap:normal;word-break:normal}
#server-damage .damage-hour,#server-damage .damage-hour[aria-pressed=true]{background:none;box-shadow:none;border:0;outline:0}
#server-damage .damage-hour-plot,#server-damage .damage-hour:hover .damage-hour-plot{background:none;outline:0;box-shadow:none}
#server-damage .damage-hour[aria-pressed=true] .damage-hour-plot{background:#c62f2812;outline:1px solid #c62f2899;outline-offset:-1px}
#server-damage .damage-hour[aria-pressed=true] .damage-hour-label{color:var(--paper-bad,#ee897d);font-weight:700}
#server-damage .damage-hour:focus-visible{outline:1px solid #c62f28;outline-offset:-1px}
#server-damage .damage-hour-selection{display:flex;align-items:baseline;gap:0 6px;flex-wrap:wrap;height:auto;min-height:22px;line-height:22px}
@media(max-width:720px){
  .home-resource-column>#player-metrics{gap:0}
  #server-damage .damage-number-full{display:none}
  #server-damage .damage-number-compact{display:inline}
  #server-damage .damage-chart{grid-template-columns:66px minmax(0,1fr)}
  #server-damage .damage-axis-tick{font-size:11px}
  #server-damage .damage-dashboard-metrics{grid-template-columns:minmax(0,1fr);gap:0}
  #server-damage .damage-dashboard-metric{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:22px;height:auto;padding:0 4px;border:0;border-radius:0;background:none;box-shadow:inset 0 -1px var(--theme-line,#454939)}
  #server-damage .damage-dashboard-value{font-size:14px}
}

/* Compact notebook rows: a value and its daily change always share a baseline. */
#home-weapons{min-width:0;padding:11px;overflow-x:auto}
:root[data-theme="notebook"] #home-weapons{padding:11px}
#home-weapons .home-weapons-table{width:100%;margin:0;border-spacing:0;table-layout:auto;font-size:12px}
#home-weapons .home-weapons-table :is(th,td){height:22px;padding:0 4px;line-height:22px;vertical-align:middle}
#home-weapons .home-weapons-table thead th{height:44px;white-space:nowrap}
#home-weapons .home-weapons-table thead th>*{display:inline-block;vertical-align:middle;height:22px;line-height:22px;margin:0 2px}
#home-weapons .home-weapons-table th:first-child{width:60px;font-size:11px;white-space:nowrap;text-align:left}
#home-weapons .home-weapon-icon{width:22px;height:22px;object-fit:contain}
#home-weapons .home-weapon-balance{display:flex;justify-content:center;align-items:baseline;flex-wrap:nowrap;gap:5px;line-height:22px;white-space:nowrap}
#home-weapons .home-weapons-table .home-resource-delta{display:inline;min-height:0;height:auto;line-height:22px;font-size:11px;margin:0}
#home-weapons .home-weapon-value{font-size:12px;line-height:22px}
#player-metrics .home-resource-balance{gap:5px}
#player-metrics .home-resource-delta{display:inline;white-space:nowrap}

/* Hints expand in normal document flow, leaving the chart below them. */
.help-disclosure,.help-disclosure[open]{display:block;position:static;min-width:0;height:auto;max-height:none;overflow:visible;line-height:22px}
.help-disclosure::details-content{height:auto}
.help-disclosure[open]>:not(summary){position:static;min-height:22px;height:auto;line-height:22px;white-space:normal;overflow-wrap:anywhere;margin:0;padding-top:6px}
.damage-dashboard-heading>.help-disclosure,.damage-dashboard-heading>.help-disclosure[open]{display:block;grid-column:3;grid-row:auto;width:auto;margin:0}
.damage-dashboard-heading>.help-disclosure[open]{grid-column:1/-1}
.damage-dashboard-heading>.help-disclosure>summary{position:static}
.damage-dashboard-heading,:root[data-theme="notebook"] .damage-dashboard-heading{height:auto;min-height:44px;align-items:start}
.damage-rewards .reward-track-details{display:block;grid-column:1/-1;grid-row:auto}
.damage-rewards .reward-track-details>summary{position:static;margin-left:auto}
.help-disclosure[open] .reward-detail-row{display:flex;align-items:center;gap:6px}
.theme-font-settings{padding:11px 0;border-bottom:1px solid var(--theme-line,#647052)}
.theme-font-settings>summary{cursor:pointer;font-weight:700;line-height:22px;margin-bottom:11px}
.theme-font-settings .theme-field{margin:0}
.theme-font-settings .muted{line-height:22px;margin:11px 0 0}
:root[data-ui-font] *,:root[data-ui-font] *::before,:root[data-ui-font] *::after{font-family:var(--selected-font)!important}
/* Keep damage readable even when the selected theme uses handwriting. */
:root :is(.choice-hint,.boss-hp-numbers,.boss-hp-percent,.notebook-counter,.battle-person-damage,.damage-number,.damage-number span,.home-weapon-value,.home-resource-delta){font-family:"Segoe UI",Arial,sans-serif!important;font-variant-numeric:tabular-nums}
:root .boss-choice-column .choice-hint{font-size:13px;font-weight:650;line-height:22px}
.boss-choice-column .choice-row{min-width:0;min-height:44px}
.mobile-navigation{display:none}

@media(max-width:720px){
  body{padding-bottom:calc(66px + env(safe-area-inset-bottom,0px))}
  body[data-active-tab="bosses"]{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
  .shell>.tabs,:root[data-theme="notebook"] .shell>.tabs{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:51;flex-wrap:nowrap;align-items:center;gap:0;height:calc(44px + env(safe-area-inset-bottom,0px));min-height:44px;margin:0;padding:0 11px env(safe-area-inset-bottom,0px);overflow-x:auto;overflow-y:hidden;scrollbar-width:none;background:var(--theme-paper,#20271f);border:0;border-top:1px solid var(--theme-line,#647052);box-shadow:0 -3px 10px #0002;overscroll-behavior-x:contain}
  .shell>.tabs::-webkit-scrollbar{display:none}
  .shell>.tabs .tab,:root[data-theme="notebook"] .shell>.tabs .tab{flex:0 0 auto;min-width:0;min-height:44px;height:44px;padding:0 12px;font-size:13px;line-height:22px;white-space:nowrap;border-radius:0}
  .mobile-navigation{display:block;position:fixed;bottom:calc(44px + env(safe-area-inset-bottom,0px));left:0;right:0;z-index:50;padding:0 11px;background:var(--theme-paper,#20271f);border-top:1px solid var(--theme-line,#647052)}
  .mobile-navigation:not(:has(.mobile-boss-shortcuts:not([hidden]))){display:none}
  .mobile-boss-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:min(100%,440px);margin-left:auto}
  .mobile-boss-shortcuts[hidden]{display:none}
  .mobile-navigation button{display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 3px;line-height:22px;font-size:12px;white-space:nowrap;border:0;border-radius:0;color:var(--theme-ink,#eee1c8);background:transparent}
  :root[data-theme="notebook"] .mobile-navigation button{box-shadow:none;transform:none}
  #bosses :is(.boss-current,.boss-queue,.boss-catalog){scroll-margin-top:11px;scroll-margin-bottom:120px}
  #home-weapons .home-weapons-table thead th{font-size:11px}
  #home-weapons .home-weapons-table th:first-child{width:50px;font-size:10px}
  #home-weapons .home-weapons-table :is(th,td){padding-left:2px;padding-right:2px}
  #home-weapons .home-weapon-balance{gap:3px}
  #home-weapons .home-weapon-value{font-size:12px}
  #home-weapons .home-weapons-table .home-resource-delta{font-size:10px}
  :root .boss-choice-column .choice-hint{font-size:12px}
  .boss-choice-column .choice-row{flex-wrap:wrap;overflow:visible;gap:0 6px}
  .boss-choice-column .choice-title{min-width:0;font-size:12px}
  .boss-choice-column .choice-hint{flex:1 0 auto}
  .boss-choice-column .mode-collection-chips{flex-wrap:wrap}
  .help-disclosure[open]>:not(summary){line-height:22px}
}

/* The HP numbers use the preceding notebook row; no empty canvas rows separate them. */
:root[data-theme="notebook"] .boss-hp{margin:0;min-width:0}
:root[data-theme="notebook"] .boss-hp-bar{height:22px;min-height:22px;flex:none}
:root[data-theme="notebook"] .hp-notebook-canvas{height:44px}
:root[data-theme="notebook"] .boss-hp-meta{height:22px;min-height:22px;line-height:22px;font-size:13px;margin:0}
:root[data-theme="notebook"] .boss-hp-meta :is(.boss-hp-numbers,.boss-hp-percent){line-height:22px;font-size:13px}
.home-fight-meta :is(.battle-timer,.home-fight-wins){font-size:12px;font-weight:500;line-height:22px;font-family:var(--selected-font,"Segoe UI"),Arial,sans-serif!important;font-variant-numeric:tabular-nums}
:root[data-theme="notebook"] .home-fight-meta :is(.battle-timer,.home-fight-wins){font-size:12px;font-weight:500;line-height:22px;font-family:var(--selected-font,"Segoe Print"),"Comic Sans MS",cursive!important;color:var(--theme-ink)}
.home-fight-meta{margin:0;min-height:22px;row-gap:0}
:root[data-theme="notebook"] .home-battle{gap:0}
:root[data-theme="notebook"] .home-fight-heading{margin:0;min-height:22px;line-height:22px}
:root[data-theme="notebook"] .home-battle .boss-hp{margin:0}
:root[data-theme="notebook"] :is(.guide-action-note,.guide-note,.queue-meta,.guide-description,.guide-fact-label,.guide-fact-value,.info-dialog-content .muted){height:auto;min-height:22px;line-height:22px;overflow-wrap:anywhere}
:root[data-theme="notebook"] :is(.page,.info-dialog-content){line-height:22px}
:root[data-theme="notebook"] :is(.guide-item-name,.guide-item-meta,.queue-name,.queue-count,.resource-reward-name,.resource-reward-amount,.reward-owned,.reward-caption,.reward-set-description,.player-achievement-name,.achievement-value,.profile-rank,.profile-guild-name,.home-resource-name,.home-resource-count,.home-resource-balance,.home-weapon-value,.damage-hour-selection,.hub-fact-title,.activity-description){line-height:22px}
:root[data-theme="notebook"] .help-disclosure[open]>:not(summary){line-height:22px;padding-top:0}
:root[data-theme="notebook"] :is(#auto-status,#boss-combo,#boss-mode,.guide-source):empty{display:none}

/* A graphite stamp keeps the game's emphatic lettering without coloured raster text. */
:root[data-theme="notebook"] .boss-danger.has-text{display:inline-flex;align-items:center;justify-content:flex-start;height:22px;max-width:100%;margin:0;padding:0 3px;overflow:visible}
:root[data-theme="notebook"] .boss-danger.has-text .boss-danger-text{display:inline-block;position:relative;font-size:11px;font-weight:900;line-height:20px;letter-spacing:.07em;text-transform:uppercase;color:var(--theme-ink);transform:rotate(-2deg);text-shadow:.4px .3px 0 currentColor}
:root[data-theme="notebook"] .boss-danger.has-text .boss-danger-text::after{content:"";position:absolute;left:-2px;right:-2px;bottom:1px;height:2px;background:currentColor;opacity:.4;clip-path:polygon(0 40%,20% 0,43% 45%,70% 10%,100% 35%,98% 90%,65% 70%,38% 100%,0 80%)}
/* Preserve the game medal and its original dark/gold counter in graphite. */
:root[data-theme-variant="graphite"] .boss-medal-count{background:#151912e8;color:#f1d190;border:1px solid #7d6942;border-radius:4px;font:11px/16px "Segoe UI",Arial,sans-serif!important;text-shadow:none}
:root[data-theme-variant="graphite"] .boss-medal-image{filter:none;opacity:1}
:root[data-theme-variant="graphite"] .boss-medal.unearned .boss-medal-image{filter:grayscale(1);opacity:.35}
@media(min-width:721px){
  #boss-list{scrollbar-width:none;cursor:grab;user-select:none}
  #boss-list::-webkit-scrollbar{display:none;width:0;height:0}
  #boss-list.drag-scrolling,#boss-list.drag-scrolling *{cursor:grabbing;scroll-behavior:auto}
}

/* Current battle: one notebook row per pair, then one blank row before HP. */
.boss-current .boss-current-main,:root[data-theme="notebook"] .boss-current .boss-current-main{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:22px 22px;grid-auto-rows:22px;align-items:center;gap:0 11px;margin:0 0 22px;padding:0}
:root .boss-current .boss-current-main #boss-status{grid-column:1;grid-row:1;min-width:0;height:22px;margin:0;padding:0;font-size:22px;line-height:22px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root .boss-current .boss-current-main #boss-wins{grid-column:2;grid-row:1;justify-self:end;align-self:center;min-height:22px;height:22px;margin:0;padding:0 6px;border:0;box-shadow:inset 0 0 0 1px var(--theme-line,#6b5a3f);font-size:12px;font-weight:500;line-height:22px;white-space:nowrap}
:root .boss-current .boss-current-main #boss-mode{grid-column:1;grid-row:2;min-width:0;height:22px;margin:0;font-size:13px;font-weight:500;line-height:22px;white-space:nowrap}
:root .boss-current .boss-current-main #boss-timer{grid-column:2;grid-row:2;justify-self:end;height:22px;min-height:22px;margin:0;font-size:12px;font-weight:500;line-height:22px;white-space:nowrap}
:root .boss-current .boss-current-main #boss-combo{grid-column:1/-1;grid-row:3;min-width:0;height:22px;margin:0;font-size:12px;line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.battle-time-caption,.battle-time-value{display:inline;line-height:inherit;font-size:inherit;font-weight:inherit}
:root[data-theme="notebook"] .boss-current .boss-current-main #boss-timer,:root[data-theme="notebook"] .home-fight-meta .battle-timer :is(.battle-time-caption,.battle-time-value){font-family:var(--selected-font,"Segoe Print"),"Comic Sans MS",cursive!important}
.boss-current-main :is(#boss-wins,#boss-timer,#boss-combo)[hidden]{display:none}
.damage-rewards .reward-track-heading,:root[data-theme="notebook"] .damage-rewards .reward-track-heading{height:22px;min-height:22px;margin:0;font-size:15px;line-height:22px;white-space:nowrap}
.damage-rewards .notebook-counter,:root[data-theme="notebook"] .damage-rewards .notebook-counter{height:22px;min-height:22px;margin:0;display:flex;align-items:center;flex-wrap:nowrap;gap:5px;white-space:nowrap;font-size:14px;line-height:22px}
.damage-rewards .notebook-counter *{font-family:var(--selected-font,"Segoe UI"),Arial,sans-serif!important;font-size:14px;line-height:22px;white-space:nowrap}
.damage-rewards .notebook-counter .notebook-current{font-size:16px;font-weight:700}
@media(max-width:720px){
  .boss-current .boss-current-main,:root[data-theme="notebook"] .boss-current .boss-current-main{column-gap:6px}
  :root .boss-current .boss-current-main #boss-mode{font-size:11px}
  :root .boss-current .boss-current-main #boss-mode .game-mode-icon{width:auto;height:16px;margin:0 3px 0 0}
  #boss-mode .boss-mode-prefix,#boss-timer .battle-time-caption{display:none}
  :root .boss-current .boss-current-main #boss-timer{font-size:11px}
  :root .boss-current .boss-current-main #boss-wins{font-size:11px;padding:0 4px}
  .damage-rewards .reward-track-heading,:root[data-theme="notebook"] .damage-rewards .reward-track-heading{font-size:14px}
}

/* Character values sit directly on the paper, within the same drawn frames as cards. */
#player-metrics .home-resource{background:transparent!important;min-width:0;max-width:100%;grid-template-columns:22px minmax(0,1fr);justify-content:stretch;container-type:inline-size}
#player-metrics .home-resource-name{min-width:0;text-align:left}
#player-metrics .home-resource-balance{min-width:0;max-width:100%;gap:3px;overflow-x:auto;scrollbar-width:none;justify-content:safe center}
#player-metrics .home-resource-balance::-webkit-scrollbar{display:none}
#player-metrics .home-resource-count{flex:none;font-size:clamp(9px,8cqi,12px)}
#player-metrics .home-resource-delta{flex:none;font-size:clamp(8px,7cqi,10px)}
:root[data-theme="notebook"] #player-metrics .home-resource{position:relative;isolation:isolate;box-shadow:none;border:0;border-radius:0;background:none!important}
:root[data-theme="notebook"] #player-metrics .home-resource::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;border:10px solid transparent;border-image:var(--marker-0) 44 / 10px round}
.resources-heading-icon{display:block;flex:none;width:22px;height:22px;object-fit:contain}
.biceps-art{display:inline-block;vertical-align:middle;color:inherit;flex:none}
.biceps-art-game,.biceps-art-sketch,.biceps-art-sketch svg{display:block;width:100%;height:100%;object-fit:contain}
.biceps-art-sketch{display:none}
:root[data-theme="notebook"] .biceps-art-game{display:none}
:root[data-theme="notebook"] .biceps-art-sketch{display:block;color:var(--theme-ink)}
@media(max-width:720px){
  .shell>.tabs,:root[data-theme="notebook"] .shell>.tabs{direction:rtl;flex-direction:row;justify-content:flex-start}
  .shell>.tabs .tab{direction:ltr}
  #player-metrics .home-resource{grid-template-columns:22px minmax(0,1fr) auto;grid-template-areas:"icon name value";grid-template-rows:22px;background:none!important;border:0;box-shadow:none}
  :root[data-theme="notebook"] #player-metrics .home-resource::before{content:none}
  #player-metrics .home-resource-balance{justify-content:flex-end;overflow:visible}
  #player-metrics .home-resource-count{font-size:12px}
  #player-metrics .home-resource-delta{font-size:10px}
}

.birthday-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;vertical-align:middle;overflow:hidden}
.birthday-icon>span{display:block;flex:none;background-repeat:no-repeat}
.birthday-content{gap:11px;line-height:22px}
.birthday-heading,.birthday-ingredient-heading,.birthday-boss-note{display:flex;align-items:center;gap:8px;min-width:0}
.birthday-dates{display:flex;flex-wrap:wrap;gap:0 22px;font-size:12px}
.birthday-phase{font-size:13px;font-weight:700}
.birthday-ingredients{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.birthday-ingredient,.birthday-final{min-width:0;padding:11px;border:1px solid var(--theme-line,#647052);border-radius:7px;background:transparent}
.birthday-ingredient-heading{font-size:14px;font-weight:700;line-height:22px;margin-bottom:11px}
.birthday-ingredient-heading>div{min-width:0}
.birthday-count{margin-left:auto;white-space:nowrap;font-variant-numeric:tabular-nums}
.birthday-ingredient progress{display:block;width:100%;height:8px;margin:0 0 11px;accent-color:var(--paper-good,#7abb80)}
.birthday-ingredient.claimed{border-color:var(--paper-good,#7abb80)}
.birthday-ingredient.ready{box-shadow:inset 3px 0 var(--paper-good,#7abb80)}
.birthday-ingredient>.muted,.birthday-final>.muted{font-size:12px;line-height:22px;margin:0}
.birthday-sources,.birthday-rewards{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 11px}
.birthday-sources button{font-size:12px;padding:4px 8px;min-height:33px}
.birthday-rewards .resource-reward-row{display:flex;flex-wrap:nowrap;align-items:center;gap:5px;width:auto;min-width:0;padding:3px 6px;background:none}
.birthday-rewards .resource-reward-icon{width:22px;height:22px;object-fit:contain}
.birthday-rewards :is(.resource-reward-name,.resource-reward-amount){font-size:12px;line-height:22px;white-space:nowrap}
.birthday-ingredient>button{width:100%;min-height:44px}
.birthday-final{display:flex;flex-wrap:wrap;align-items:center;gap:11px}
.birthday-house{display:block;width:100%;max-height:55vh;object-fit:contain}
.boss-card-status{display:flex;align-items:center;gap:5px;height:22px;min-width:0}
.birthday-boss-note{flex-wrap:wrap;margin:0 0 11px;font-size:12px;line-height:22px;min-height:44px}
@media(max-width:600px){.birthday-ingredients{grid-template-columns:minmax(0,1fr)}.birthday-final{gap:6px}.birthday-ingredient-heading{font-size:13px}}

/* Compact game panels share the existing game, notebook and graphite palettes. */
.yard-heading{display:flex;align-items:center;gap:11px;min-height:44px;margin:11px 0}
.yard-heading>button{margin-left:auto;min-width:36px}
.yard-menu{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;padding:4px 0 11px;touch-action:pan-x}
.yard-menu::-webkit-scrollbar{display:none}
.yard-menu .hub-game-tab{min-height:44px;flex:0 0 auto;padding:6px 11px;font-size:13px;white-space:nowrap}
.yard-menu .hub-task-icon{width:24px;height:24px;object-fit:contain}
.yard-balances{display:flex;align-items:center;flex-wrap:wrap;gap:7px 18px;padding:11px 0;margin-bottom:11px;border-bottom:1px solid #66715a}
.yard-balances .resource-reward-row,.yard-bag-head .resource-reward-row,.yard-series-status .resource-reward-row{display:flex;align-items:center;gap:6px;margin:0;min-width:0;line-height:22px}
.yard-balances .resource-reward-icon,.yard-bag-head .resource-reward-icon,.yard-series-status .resource-reward-icon{width:22px;height:22px;object-fit:contain;flex:none}
.yard-balances .resource-reward-name{font-size:12px}
.yard-level{font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap;line-height:22px}
.yard-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:16px;align-items:start}
.yard-layout:not(:has(.yard-bags)){grid-template-columns:minmax(0,1fr)}
.yard-main,.yard-play,.yard-bags,.yard-series,.yard-journal{display:grid;gap:11px;min-width:0}
.yard-layout .card{margin:0;padding:16px;min-width:0}
.yard-disclosure{border:1px solid #59674f;border-radius:6px;padding:9px 11px;min-width:0}
.yard-disclosure>summary{cursor:pointer;font-weight:650;line-height:22px;overflow-wrap:anywhere}
.yard-disclosure[open]>summary{margin-bottom:11px}
.yard-play .hub-playing-cards{justify-content:center;margin:0;gap:7px}
.yard-play .hub-playing-card{width:clamp(45px,6vw,85px);height:auto;aspect-ratio:85/122}
.yard-actions{margin:0!important;align-items:end;gap:7px!important}
.yard-actions button{min-height:36px;font-size:13px}
.yard-bag{display:grid;gap:5px;padding:11px 0;border-top:1px solid #66715a;min-width:0}
.yard-bag-head{display:flex;align-items:center;justify-content:space-between;gap:11px;flex-wrap:wrap;font-weight:650;line-height:22px}
.yard-bag .muted{font-size:13px;line-height:22px;overflow-wrap:anywhere}
.yard-bag-count{font-size:12px;line-height:22px}
.yard-bag .button-row{margin:0;gap:7px}
.yard-bag .button-row button{font-size:12px;min-height:32px;padding:4px 11px}
.yard-series-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;min-width:0}
.yard-series-fields input,.yard-series-fields select{max-width:100%;width:100%;box-sizing:border-box}
.yard-series-fields .reward-setting{grid-column:1/-1}
.yard-series-fields .reward-setting input{width:auto}
.yard-series .muted{font-size:12px;line-height:22px}
.yard-series-status{display:grid;gap:5px;border-left:3px solid #8ba673;padding:6px 11px;min-width:0}
.yard-series-status .hub-playing-cards{margin:0}
.yard-slot-field{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;max-width:540px;width:100%;margin:0 auto}
.yard-slot-cell{display:grid;place-items:center;aspect-ratio:1.2;background:#17251d80;border:1px solid #697458;border-radius:5px;min-width:0}
.yard-slot-symbol{width:75%;height:75%;object-fit:contain}
.yard-slot-cell>.muted{font:700 24px/1 Georgia,serif;opacity:.5}
.yard-wheel-sectors{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.yard-wheel-sector{padding:6px;border:1px solid #66715a;border-radius:4px;line-height:22px;font-size:12px;overflow-wrap:anywhere}
.yard-bets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.yard-bet{display:grid;gap:7px;padding:11px;border:1px solid #66715a;border-radius:5px;min-width:0}
.yard-bet .resource-reward-row{display:flex;align-items:center;gap:5px;margin:0}
.yard-bet .resource-reward-icon{width:22px;height:22px;object-fit:contain}
.yard-fact-title{font-size:14px;line-height:22px;font-weight:700}
.yard-dice{display:flex;flex-wrap:wrap;gap:7px}
.yard-die{position:relative;cursor:pointer;line-height:1}
.yard-die input{position:absolute;opacity:0}
.yard-die span{display:block;font-family:Arial,sans-serif;font-size:48px;border:2px solid transparent;border-radius:7px}
.yard-die input:checked+span{border-color:#82b883;color:#a4d49e}
.yard-die input:focus-visible+span{outline:2px solid currentColor;outline-offset:2px}
.yard-combinations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;font-variant-numeric:tabular-nums}
.yard-set-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:11px;margin:11px 0}
.yard-set-item{display:grid;align-content:start;gap:5px;border:1px solid #66715a;border-radius:5px;padding:7px;min-width:0;font-size:12px;line-height:22px;overflow-wrap:anywhere}
.yard-tattoo{width:100%;height:100px;object-fit:contain}
.yard-set-item.owned{border-color:#549857;color:#9fdc9c}
.yard-set-item.missing{border-color:#a05a53;color:#e9988d}
.yard-item-bonus{font-variant-numeric:tabular-nums}
:root[data-theme="notebook"] :is(.yard-disclosure,.yard-bag,.yard-bet,.yard-slot-cell,.yard-wheel-sector,.yard-set-item,.yard-balances){border-color:var(--theme-line);background:transparent;color:var(--theme-ink);box-shadow:none}
:root[data-theme="notebook"] .yard-layout{gap:22px}
:root[data-theme="notebook"] .yard-layout .card{padding:11px 22px;margin:0}
:root[data-theme="notebook"] :is(.yard-heading,.yard-balances,.yard-bag-head,.yard-bag-count,.yard-level,.yard-fact-title,.yard-disclosure>summary,.yard-series-status){line-height:22px}
:root[data-theme="notebook"] .yard-menu .hub-game-tab{min-height:44px;line-height:22px}
:root[data-theme="notebook"] .yard-menu .hub-game-tab.active{background:color-mix(in srgb,var(--theme-accent) 10%,transparent)}
:root[data-theme="notebook"] .yard-series-status{border-color:var(--theme-line)}
:root[data-theme="notebook"] .yard-set-item.owned{border-color:#477c42;color:#30652e}
:root[data-theme="notebook"] .yard-set-item.missing{border-color:#aa4742;color:#973631}
:root[data-theme="notebook"] .yard-die input:checked+span{border-color:var(--theme-ink);color:var(--theme-ink)}
@media(max-width:900px){.yard-layout{grid-template-columns:minmax(0,1fr)}.yard-bags{grid-template-columns:repeat(2,minmax(0,1fr))}.yard-bags>.battle-section-title{grid-column:1/-1}}
@media(max-width:600px){.yard-menu .hub-game-tab{padding:4px 8px;font-size:12px;gap:5px}.yard-menu .hub-task-icon{width:22px;height:22px}.yard-balances{gap:5px 11px}.yard-balances .resource-reward-name{font-size:11px}.yard-layout .card,:root[data-theme="notebook"] .yard-layout .card{padding:11px}.yard-bags{grid-template-columns:1fr}.yard-bets{grid-template-columns:repeat(2,minmax(0,1fr))}.yard-series-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.yard-wheel-sectors{grid-template-columns:repeat(2,minmax(0,1fr))}.yard-combinations{grid-template-columns:repeat(2,minmax(0,1fr))}.yard-actions button{font-size:12px;padding:6px 9px}.yard-disclosure{padding:7px}.yard-play .hub-playing-card{width:clamp(39px,13vw,66px)}}
@media(prefers-reduced-motion:reduce){.yard-slot-symbol,.hub-playing-card{animation:none!important;transition:none!important}}
.yard-bag-progress{display:grid;gap:7px}.yard-set-progress{min-width:0;color:#d18c7b}.yard-set-progress[data-progress="middle"]{color:#d2a25d}.yard-set-progress[data-progress="high"]{color:#9aba71}.yard-set-progress[data-progress="complete"]{color:#71c277}.yard-set-progress-title{display:flex;justify-content:space-between;align-items:baseline;gap:7px;font-size:12px;line-height:22px}.yard-set-progress-title>div:first-child{min-width:0;overflow-wrap:anywhere}.yard-set-progress-title>div:last-child{white-space:nowrap;font-variant-numeric:tabular-nums}.yard-set-progress progress{display:block;width:100%;height:4px;accent-color:currentColor;color:inherit;border:0}.yard-set-progress progress::-webkit-progress-bar{background:#5a61444d;border-radius:3px}.yard-set-progress progress::-webkit-progress-value{background:currentColor;border-radius:3px}:root[data-theme="notebook"] .yard-set-progress{color:#9e4c44}:root[data-theme="notebook"] .yard-set-progress[data-progress="middle"]{color:#94642e}:root[data-theme="notebook"] .yard-set-progress[data-progress="high"]{color:#5d783b}:root[data-theme="notebook"] .yard-set-progress[data-progress="complete"]{color:#327c38}.yard-payouts{display:grid;gap:11px}.yard-payout{padding-bottom:11px;border-bottom:1px solid #66715a}.yard-winners .hub-winner{display:flex;align-items:center;gap:11px;flex-wrap:wrap}:root[data-theme="notebook"] .yard-payout{border-color:var(--theme-line)}
.resource-reward-icon[alt="Спички костей"]{filter:grayscale(1) brightness(.55)}
@keyframes yard-reveal{from{opacity:.45;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
.yard-play .hub-playing-card,.yard-slot-symbol{animation:yard-reveal .2s ease-out}
@media(prefers-reduced-motion:reduce){.yard-play .hub-playing-card,.yard-slot-symbol{animation:none}}

/* Handwriting in the cells. The notebook font is bundled, and its ascent/descent are overridden so the
   letters' cap height sits centred in every line box; with 22px lines that is exactly inside a cell.
   The same correction is applied to the optional system fonts. */
@font-face{font-family:"Notebook Hand";src:url(/assets/fonts/caveat-cyrillic.woff2) format("woff2");font-weight:400 700;font-display:swap;unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;size-adjust:125%;ascent-override:83.8%;descent-override:16.2%;line-gap-override:0%}
@font-face{font-family:"Notebook Hand";src:url(/assets/fonts/caveat-latin.woff2) format("woff2");font-weight:400 700;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;size-adjust:125%;ascent-override:83.8%;descent-override:16.2%;line-gap-override:0%}
@font-face{font-family:"Notebook Symbols";src:local("Segoe UI Symbol"),local("Segoe UI"),local("Arial"),local("DejaVu Sans");ascent-override:85.5%;descent-override:14.5%;line-gap-override:0%}
@font-face{font-family:"Grid Arial";src:local("Arial"),local("ArialMT"),local("Liberation Sans");ascent-override:85.8%;descent-override:14.2%;line-gap-override:0%}
@font-face{font-family:"Grid Segoe";src:local("Segoe UI"),local("SegoeUI"),local("Arial"),local("Liberation Sans");ascent-override:85.0%;descent-override:15.0%;line-gap-override:0%}
@font-face{font-family:"Grid Georgia";src:local("Georgia"),local("DejaVu Serif");ascent-override:84.6%;descent-override:15.4%;line-gap-override:0%}
:root:root:root[data-theme="notebook"]:not([data-ui-font]) *{font-family:"Notebook Hand","Notebook Symbols","Segoe Print",cursive!important;font-variant-numeric:normal}
:root:root:root[data-theme="notebook"][data-ui-font="arial"] *{font-family:"Grid Arial",Arial,sans-serif!important}
:root:root:root[data-theme="notebook"][data-ui-font="segoe"] *{font-family:"Grid Segoe","Segoe UI",Arial,sans-serif!important}
:root:root:root[data-theme="notebook"][data-ui-font="georgia"] *{font-family:"Grid Georgia",Georgia,serif!important}
:root[data-theme="notebook"]:not([data-ui-font]){-webkit-font-smoothing:antialiased;font-synthesis:none}

/* ===== Cell layout (notebook themes) =====
   Every line of text occupies one 22px row of the sheet, so letters are written inside a cell.
   Vertical spacing is therefore always a whole number of cells. Controls take a single row and draw
   their frame half a cell outside it (outline + offset), like a box sketched around a word; an
   invisible ::after keeps the touch target large. Tiles with several rows use the same idea. */
:root[data-theme="notebook"]{--row:22px;--frame-out:7px}
:root[data-theme="notebook"] :is(.shell,dialog) :not(svg):not(svg *):not(canvas):not(img){line-height:22px!important}
/* Page frame */
:root[data-theme="notebook"] .topbar{height:88px!important;min-height:88px!important;padding-block:0!important;margin:0!important;align-items:center}
:root[data-theme="notebook"] .tabs{height:44px!important;min-height:44px!important;margin:22px 0!important;align-items:center;padding-block:11px!important;box-sizing:border-box;gap:14px!important;overflow-y:visible}
:root[data-theme="notebook"] .page-heading{min-height:44px!important;height:auto;margin:0 0 22px!important;padding:0!important;align-items:end}
:root[data-theme="notebook"] .page-heading .eyebrow{display:block;height:22px;margin:0!important}
:root[data-theme="notebook"] .page-heading h1,:root[data-theme="notebook"] .section-title h1{font-size:24px!important;height:22px;margin:0!important}
:root[data-theme="notebook"] .page-title-with-icon{height:22px}
:root[data-theme="notebook"] .page-title-icon{width:22px!important;height:22px!important}
:root[data-theme="notebook"] .section-title{margin:0 0 22px!important;min-height:22px;align-items:center}
:root[data-theme="notebook"] footer{padding:22px 0!important;margin:0!important}
/* Blocks and gaps are whole cells */
:root[data-theme="notebook"] :is(.card,.guide-intro,.home-weapons,#home-weapons,.damage-rewards,.battle-leaderboard,.settings-section){padding-block:22px!important;margin:0 0 22px!important;border-top-width:0!important;border-bottom-width:0!important}
:root[data-theme="notebook"] :is(.grid,.battle-info,.home-battle-column,.home-resource-column,.battle-actions-column,.hub-grid,.hub-tasks,.hub-flow,.guide-layout,.boss-catalog .guide-layout,.damage-dashboard-metrics,#server-damage .damage-dashboard-metrics,.manual-weapons,#manual-hits-panel .manual-weapons,.queue-items,.social-list){row-gap:22px!important}
:root[data-theme="notebook"] :is(.grid,.battle-info,.home-battle-column,.home-resource-column,.battle-actions-column,.hub-grid,.hub-tasks,.guide-layout)>*{margin-block:0!important}
:root[data-theme="notebook"] .home-resource-column>#player-metrics{row-gap:22px!important;margin:0!important}
:root[data-theme="notebook"] :is(.card-head,.home-fight-heading,.battle-leaderboard>.battle-section-title,.reward-track-heading,.damage-dashboard-heading,.damage-dashboard-metrics,.damage-chart,.guide-controls,.queue-items,.home-weapons-table,.boss-current .current-queue-controls,.boss-current .boss-current-main,.boss-current .battle-info,.manual-hits .guide-action-note,.hub-intro,.hub-recipient-form,.boss-queue>.guide-action-note,#queue-run-hint){margin-top:0!important;margin-bottom:22px!important}
:root[data-theme="notebook"] :is(.card-head,.home-fight-heading){min-height:22px;row-gap:0!important}
:root[data-theme="notebook"] .card-head .glyph{width:22px!important;height:22px!important}
:root[data-theme="notebook"] :is(p,.report,.muted,.hint,.guide-action-note,.guide-source,.stage-title,.stage-progress,.stage-stats,.big-number,.guide-description,.guide-subtitle){margin-top:0!important;margin-bottom:22px!important;padding-block:0!important}
:root[data-theme="notebook"] :is(p,.report,.muted,.hint,.guide-action-note,.guide-description,.stage-stats):last-child{margin-bottom:0!important}
:root[data-theme="notebook"] .big-number{font-size:22px!important;height:22px}
:root[data-theme="notebook"] .button-row{margin:22px 0 0!important;row-gap:22px!important;column-gap:22px!important;align-items:center}
/* Single-row controls: frame drawn outside the text row */
:root[data-theme="notebook"] :is(.primary,.secondary,.tab,.icon-button,.guide-filter,.boss-group,[data-social-kind],[data-boss-section],.queue-row button,.dialog-close,.hub-action,.hub-mode>button){
  position:relative;box-sizing:border-box;height:22px!important;min-height:22px!important;padding-block:0!important;margin-block:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;line-height:22px!important;vertical-align:top;
  outline:1px solid var(--theme-line);outline-offset:var(--frame-out);-webkit-tap-highlight-color:transparent}
:root[data-theme="notebook"] :is(.primary,.secondary,.tab,.icon-button,.guide-filter,.boss-group,[data-social-kind],[data-boss-section],.queue-row button,.dialog-close,.hub-action,.hub-mode>button)::after{content:"";position:absolute;inset:calc(var(--frame-out) * -1);border-radius:3px 8px 4px 7px/7px 3px 8px 4px;pointer-events:auto}
:root[data-theme="notebook"] .primary{outline-width:2px;outline-color:var(--theme-accent)}
:root[data-theme="notebook"] :is(.primary,.secondary,.tab,.icon-button,.guide-filter,.boss-group,[data-social-kind],[data-boss-section],.queue-row button,.dialog-close,.hub-action,.hub-mode>button):hover:not(:disabled)::after{background:#1c38a80f}
:root[data-theme="notebook"] :is(.tab.active,.guide-filter.active,.boss-group.active,[data-social-kind].active,button[aria-pressed="true"]){outline-color:var(--theme-accent);outline-width:2px}
:root[data-theme="notebook"] :is(.tab.active,.guide-filter.active,.boss-group.active,[data-social-kind].active,button[aria-pressed="true"])::after{background:#1c38a814}
:root[data-theme="notebook"][data-theme-variant="graphite"] :is(.tab.active,.guide-filter.active,.boss-group.active,[data-social-kind].active,button[aria-pressed="true"])::after{background:#44473e22}
:root[data-theme="notebook"] :is(.primary,.secondary,.tab,.icon-button,.guide-filter,.boss-group,[data-social-kind],[data-boss-section],.queue-row button,.dialog-close,.hub-action,.hub-mode>button):focus-visible{outline-style:dashed;outline-color:var(--theme-accent);outline-offset:var(--frame-out)}
:root[data-theme="notebook"] .icon-button{width:30px!important;font-size:18px!important;padding:0!important}
:root[data-theme="notebook"] .tab{padding-inline:12px!important}
:root[data-theme="notebook"] .tab.active{box-shadow:none!important}
:root[data-theme="notebook"] :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]),select:not([multiple])){
  box-sizing:border-box;height:30px!important;min-height:30px!important;margin-block:-4px!important;padding-block:3px!important;border-width:1px!important;line-height:22px!important;vertical-align:top}
:root[data-theme="notebook"] .brand-mark{width:30px!important;height:30px!important;margin-block:-4px;line-height:30px!important;font-size:20px!important}
:root[data-theme="notebook"] .brand{gap:14px}
:root[data-theme="notebook"] .brand>div{display:grid}
:root[data-theme="notebook"] .local-pill{height:22px;padding-block:0!important;line-height:22px!important;outline:1px solid currentColor;outline-offset:3px;border:0!important}

:root[data-theme="notebook"] .topbar{align-items:flex-start!important;padding-top:22px!important;box-sizing:border-box}
:root[data-theme="notebook"] .top-actions{gap:22px!important;align-items:center;height:22px}
:root[data-theme="notebook"] .tabs{height:22px!important;min-height:22px!important;padding-block:0!important}
/* Multi-row tiles: rows sit on the sheet, the frame is drawn half a cell outside */
:root[data-theme="notebook"] :is(#player-metrics .home-resource,#server-damage .damage-dashboard-metric,.damage-dashboard-metric,.manual-weapon-toggle,#manual-hits-panel .manual-weapon-toggle,.guide-item,#boss-list .guide-item,.list-row,.checkpoint-row,.hub-game-tab,.social-card,.hub-inbox-row,.manual-hit-option,#manual-hits-panel .manual-hit-option,#manual-hits-panel .battle-special button,.home-event){
  box-sizing:border-box;padding-block:0!important;border-color:transparent!important;border-width:0!important;box-shadow:none!important;outline:1px solid var(--theme-line);outline-offset:var(--frame-out);height:auto!important;min-height:22px!important;background:transparent!important}
:root[data-theme="notebook"] :is(#player-metrics,.damage-dashboard-metrics,#server-damage .damage-dashboard-metrics,.manual-weapons,#manual-hits-panel .manual-weapons,#manual-hits-panel .manual-weapon-options,#manual-hits-panel .battle-special,.hub-game-menu,.guide-list,#boss-list){column-gap:22px!important;row-gap:22px!important}
:root[data-theme="notebook"] #player-metrics .home-resource{height:44px!important;padding-inline:4px!important}
:root[data-theme="notebook"] :is(#server-damage .damage-dashboard-metric,.damage-dashboard-metric){height:44px!important;padding-inline:11px!important;display:grid;align-content:start}
:root[data-theme="notebook"] :is(.manual-weapon-toggle,#manual-hits-panel .manual-weapon-toggle){height:44px!important;grid-template-rows:22px 22px!important}
:root[data-theme="notebook"] #manual-hits-panel .manual-weapon-stock{line-height:22px!important}
:root[data-theme="notebook"] :is(.guide-item,#boss-list .guide-item){height:66px!important;align-items:center}
:root[data-theme="notebook"] :is(#manual-hits-panel .manual-hit-option,#manual-hits-panel .battle-special button){height:22px!important}
:root[data-theme="notebook"] #manual-hits-panel .manual-hit-icon,:root[data-theme="notebook"] .battle-special-icon{width:22px!important;height:22px!important}
:root[data-theme="notebook"] .guide-list,:root[data-theme="notebook"] #boss-list{padding:7px!important}
:root[data-theme="notebook"] #home-weapons .home-weapons-table thead th{height:22px!important}
:root[data-theme="notebook"] #home-weapons .home-weapons-table thead th>*{vertical-align:top!important}

:root[data-theme="notebook"] :is(#player-metrics .home-resource,.damage-dashboard-metric,.manual-weapon-toggle,.guide-item,.list-row,.checkpoint-row,.hub-game-tab,.social-card,.hub-inbox-row,.manual-hit-option,.home-event,.choice-row,.queue-row,.battle-person) :is(p,.muted,.report,.hint,.guide-action-note){margin:0!important}
:root[data-theme="notebook"] #player-metrics .home-resource{outline:0!important}
:root[data-theme="notebook"] #player-metrics .home-resource::before{inset:-9px -7px!important}
:root[data-theme="notebook"] :is(.home-weapons-table,.damage-chart,.queue-items,.guide-controls,.boss-current .battle-info):last-child{margin-bottom:0!important}
:root[data-theme="notebook"] :is(.battle-person,.battle-leaders .battle-person){height:22px!important;min-height:22px!important;padding-block:0!important}
:root[data-theme="notebook"] :is(.battle-person-link){height:22px!important;min-height:22px!important}
:root[data-theme="notebook"] .battle-avatar{width:22px!important;height:22px!important}
:root[data-theme="notebook"] .battle-info details>summary,:root[data-theme="notebook"] #battle-top50>summary{height:22px!important;padding-block:0!important;margin-top:22px}

:root[data-theme="notebook"] .boss-current .boss-current-main :is(p,div){margin:0!important}
:root[data-theme="notebook"] .boss-current .boss-current-main{row-gap:0!important}
:root[data-theme="notebook"] #manual-hits-panel{padding:22px 0 0!important;border:0!important;box-shadow:inset 0 1px var(--theme-line)!important}
:root[data-theme="notebook"] #manual-hits-panel .manual-hits-head{height:22px;margin:0 0 22px!important}
:root[data-theme="notebook"] #manual-hits-panel .battle-special{margin:22px 0 0!important}
:root[data-theme="notebook"] #manual-hits-panel .manual-weapon-options{padding:22px 0 0!important}
:root[data-theme="notebook"] #manual-hits-panel .guide-action-note{margin:22px 0 0!important}

:root[data-theme="notebook"] .glyph{box-sizing:border-box}
:root[data-theme="notebook"] #manual-hits-panel .manual-weapon-arrow{align-self:start!important;grid-row:1!important}
:root[data-theme="notebook"] .help-disclosure>summary{box-sizing:border-box;width:22px!important;height:22px!important;padding:0!important}
/* Mixed font sizes on one line must not grow the 22px line box. */
:root[data-theme="notebook"] :is(.shell,dialog) :is(h1,h2,h3,h4,summary,.section-title,.card-head)>:is(span,small,b,strong,em,time){vertical-align:top}
:root[data-theme="notebook"] :is(.shell,dialog) details>summary{padding-block:0!important;min-height:22px}
:root[data-theme="notebook"] .boss-queue details.queue-options+details.queue-options{margin-top:22px!important}
:root[data-theme="notebook"] .boss-queue .button-row+details.queue-options{margin-top:22px!important}
/* Boss queue rows */
:root[data-theme="notebook"] .queue-row{padding-block:0!important;border-top:0!important;border-bottom:0!important}
:root[data-theme="notebook"] .queue-row+.queue-row{margin-top:22px!important}
/* Framed lists and panels: frame drawn on the grid line, content one cell inside */
:root[data-theme="notebook"] :is(.guide-list,#boss-list){border:0!important;padding:22px 11px!important;box-shadow:inset 0 0 0 1px var(--theme-line)!important;border-radius:0!important}
:root[data-theme="notebook"] :is(.guide-actions,.damage-options){border:0!important;padding:22px!important;box-shadow:inset 0 0 0 1px var(--theme-line)!important;margin:0 0 22px!important}
:root[data-theme="notebook"] .damage-options:last-child{margin-bottom:0!important}
:root[data-theme="notebook"] :is(.guide-actions,.damage-options,.guide-action-fields,.boss-mode-choices,.choice-rows){row-gap:22px!important}
:root[data-theme="notebook"] .boss-choice-column{gap:0!important}
:root[data-theme="notebook"] .boss-choice-column>.muted{margin:0 0 22px!important;height:auto!important}
:root[data-theme="notebook"] .guide-actions .eyebrow{margin:0 0 22px!important}
:root[data-theme="notebook"] .damage-options .eyebrow{margin:0!important}
:root[data-theme="notebook"] :is(.guide-actions,.damage-options) label{gap:0!important}
:root[data-theme="notebook"] :is(.guide-action-fields,.boss-mode-choices){margin:0 0 22px!important}
:root[data-theme="notebook"] .choice-rows:empty{display:none}
:root[data-theme="notebook"] button.choice-row{box-sizing:border-box;height:66px!important;padding:0 11px!important;gap:0!important;border:0!important;background:transparent!important;outline:1px solid var(--theme-line);outline-offset:var(--frame-out)}
:root[data-theme="notebook"] button.choice-row.selected,:root[data-theme="notebook"] button.choice-row[aria-pressed="true"]{outline:2px solid var(--theme-accent)}
:root[data-theme="notebook"] .choice-weapon-icon{height:44px!important;width:auto;padding:3px 0;box-sizing:border-box;object-fit:contain}
:root[data-theme="notebook"] .weapon-choices{column-gap:22px!important}
:root[data-theme="notebook"] .guide-detail-head{padding:0!important;margin:0 0 22px!important;border:0!important;align-items:flex-start!important;gap:22px!important}
:root[data-theme="notebook"] .guide-art{width:66px!important;height:66px!important}
:root[data-theme="notebook"] .guide-detail-heading{margin:0!important}
:root[data-theme="notebook"] .finish-flags label input{margin-block:3px!important}
:root[data-theme="notebook"] .queue-row{align-items:flex-start!important}
:root[data-theme="notebook"] .queue-row-controls{margin:0!important;align-self:flex-start!important}
:root:root[data-theme="notebook"] #boss-list .guide-item{height:44px!important;min-height:44px!important}
:root[data-theme="notebook"] #boss-list .guide-item+.guide-item{margin-top:22px!important}
:root[data-theme="notebook"] #boss-list .guide-thumb{width:44px!important;height:44px!important}
:root[data-theme="notebook"] .boss-choice-column>.muted{min-height:0!important}
:root[data-theme="notebook"] :is(.shell,dialog) details[open]>summary{margin-bottom:22px!important}
:root[data-theme="notebook"] .queue-options>:not(summary){margin:0!important;padding:0!important;border:0!important}
:root[data-theme="notebook"] .queue-options>:not(summary)+:not(summary){margin-top:22px!important}
:root[data-theme="notebook"] .queue-presets .section-title{margin:0 0 22px!important;height:22px}
:root[data-theme="notebook"] .queue-presets .section-title h2{margin:0!important}
:root[data-theme="notebook"] :is(.shell,dialog) label>input:is([type="checkbox"],[type="radio"]){margin-block:3px!important;height:16px!important;vertical-align:top}
:root[data-theme="notebook"] .topbar .brand-mark{box-sizing:border-box;width:32px!important;height:32px!important;margin:-5px 0 0!important;align-self:flex-start!important;place-items:center;line-height:28px!important}
:root:root[data-theme="notebook"] .help-disclosure>summary{line-height:18px!important;margin-bottom:0!important}
/* Caption + field labels: caption row then a 22px field row, no extra gap */
:root[data-theme="notebook"] :is(.shell,dialog) label:has(>:is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.battle-stepper)){gap:0!important;row-gap:0!important}
:root[data-theme="notebook"] :is(.shell,dialog) .form-grid{gap:22px!important}
:root[data-theme="notebook"] .list-row{align-items:flex-start!important}
:root[data-theme="notebook"] .list-row small{margin:0!important;display:block}
:root[data-theme="notebook"] .list-row+.list-row{margin-top:22px!important}
:root[data-theme="notebook"] .social-card{height:66px!important;align-items:flex-start!important}
:root[data-theme="notebook"] .social-card .guild-emblem{height:66px!important;width:66px!important;flex:0 0 66px}
:root[data-theme="notebook"] .social-card-copy{gap:0!important;align-self:flex-start!important}
/* Damage chart: plot height is whole cells per axis step; labels sit in the cell under their line. */
:root[data-theme="notebook"] :is(.damage-axis,.damage-hour-plot){height:var(--damage-plot-height,176px)!important}
:root[data-theme="notebook"] :is(.damage-hours,.damage-hour){height:calc(var(--damage-plot-height,176px) + 22px)!important}
:root[data-theme="notebook"] .damage-axis-tick{transform:none!important;height:22px;line-height:22px!important}
/* Hub tabs (zaruba, podogrev): stacks of whole cells */
:root[data-theme="notebook"] :is(.hub-grid,.hub-tasks):empty{display:none!important}
:root[data-theme="notebook"] :is(.hub-mode,.hub-task){gap:0!important;row-gap:0!important}
:root[data-theme="notebook"] :is(.hub-mode,.hub-task)>*{margin-top:0!important;margin-bottom:0!important}
:root[data-theme="notebook"] :is(.hub-mode,.hub-task)>:is(button,.button-row,.primary,.secondary){margin-top:22px!important}
:root[data-theme="notebook"] .hub-task-icon{height:44px!important;width:44px!important;object-fit:contain}
:root[data-theme="notebook"] .resource-reward-row{box-sizing:border-box;height:22px!important;min-height:22px!important;padding:0 4px!important;border:0!important;box-shadow:none!important;background:transparent!important;outline:1px solid var(--theme-line);outline-offset:var(--frame-out);align-items:center}
:root[data-theme="notebook"] .resource-reward-row .resource-reward-icon{width:22px!important;height:22px!important}
:root[data-theme="notebook"] .hub-mode>.resource-reward-row{margin-block:22px!important}
:root[data-theme="notebook"] .hub-task progress{display:block;height:8px!important;margin:7px 0!important}
:root[data-theme="notebook"] .hub-task .battle-section-title{min-height:22px}
:root[data-theme="notebook"] #zaruba-content details,:root[data-theme="notebook"] #podogrev-content details,:root[data-theme="notebook"] .hub-details{border:0!important;border-radius:0!important;margin:0 0 22px!important;padding:22px!important;box-shadow:inset 0 0 0 1px var(--theme-line)!important}
:root[data-theme="notebook"] .hub-map-row{box-sizing:border-box;padding:0!important;gap:0 22px!important;min-height:44px!important;height:auto!important;align-items:start!important}
:root[data-theme="notebook"] .hub-map-row+.hub-map-row{margin-top:22px!important}
:root[data-theme="notebook"] .hub-map-row .hub-task-icon{height:44px!important;width:44px!important}
/* Podogrev */
:root[data-theme="notebook"] .hub-flow-node{box-sizing:border-box;border:0!important;border-radius:0!important;padding:22px 11px!important;box-shadow:inset 0 0 0 1px var(--theme-line)!important;align-items:flex-start!important;gap:0 11px!important;min-height:88px;height:auto!important}
:root[data-theme="notebook"] .hub-flow-number{box-sizing:border-box;width:22px!important;height:22px!important;min-width:22px;line-height:20px!important;place-items:center}
:root[data-theme="notebook"] .hub-recipient-form{gap:22px!important;align-items:start!important}
:root[data-theme="notebook"] .hub-recipient-form select[multiple]{box-sizing:border-box;padding:0!important;border:0!important;outline:1px solid var(--theme-line);outline-offset:0;margin:0!important}
:root[data-theme="notebook"] .hub-recipient-form select[multiple] option{box-sizing:border-box;height:22px;line-height:22px!important;padding-block:0!important}
:root[data-theme="notebook"] .hub-podogrev-image{height:88px!important;width:auto;object-fit:contain;margin:0 0 22px!important}
:root[data-theme="notebook"] .hub-inbox{margin:22px 0!important;gap:22px!important}
:root[data-theme="notebook"] .hub-inbox-row{align-items:flex-start!important}
:root[data-theme="notebook"] .hub-all-friends{align-items:flex-start!important;align-self:start!important;height:auto!important;min-height:22px}
:root[data-theme="notebook"] .hub-recipient-form{grid-template-rows:auto 1fr}
@media(max-width:720px){:root[data-theme="notebook"] .hub-recipient-form{grid-template-rows:none}}
/* Yard */
:root[data-theme="notebook"] .yard-menu{margin:0!important;padding:22px 8px!important;gap:22px!important;row-gap:22px!important;align-items:flex-start!important}
:root[data-theme="notebook"] .yard-menu .hub-game-tab{box-sizing:border-box;height:22px!important;min-height:22px!important;padding:0 4px!important;gap:6px!important;align-items:center}
:root[data-theme="notebook"] .yard-menu .hub-task-icon{width:22px!important;height:22px!important}
:root[data-theme="notebook"] .yard-heading{margin:0 0 22px!important;min-height:44px;align-items:flex-start!important}
:root[data-theme="notebook"] .yard-heading .hub-task-icon{width:44px!important;height:44px!important}
:root[data-theme="notebook"] .yard-balances{padding:0!important;border:0!important;margin:0 0 22px!important;gap:0 22px!important;min-height:22px}
:root[data-theme="notebook"] :is(.yard-balances,.yard-bag-head,.yard-series-status) .resource-reward-row{outline:0!important}
:root[data-theme="notebook"] .yard-layout .card{padding:22px!important}
:root[data-theme="notebook"] :is(.yard-main,.yard-play,.yard-bags,.yard-series,.yard-journal,.yard-series-fields){gap:22px!important}
:root[data-theme="notebook"] .yard-play>*,:root[data-theme="notebook"] .yard-main>*{margin-top:0!important;margin-bottom:0!important}
:root[data-theme="notebook"] .yard-disclosure{border:0!important;border-radius:0!important;padding:0 11px!important;outline:1px solid var(--theme-line);outline-offset:var(--frame-out)}
:root[data-theme="notebook"] .yard-series-status{border-left:0!important;padding:0 11px!important;gap:0!important;box-shadow:inset 2px 0 var(--theme-line)}
/* Guide */
:root[data-theme="notebook"] .guide-intro .guide-stamp{box-sizing:border-box;height:22px!important;padding:0 6px!important;line-height:20px!important;vertical-align:top;margin:0!important}
:root[data-theme="notebook"] .guide-intro h2{margin:0!important}
:root[data-theme="notebook"] .guide-intro>p{margin:0!important}
:root[data-theme="notebook"] .guide-item+.guide-item,:root[data-theme="notebook"] .checkpoint-row+.checkpoint-row{margin-top:22px!important}
:root[data-theme="notebook"] .checkpoint-row{border-top:0!important;align-items:flex-start!important}
:root[data-theme="notebook"] .checkpoint-icon{width:44px!important;height:44px!important}
/* Dialogs: one grid that scrolls with the content; sticky header carries its own copy of the grid */
:root[data-theme="notebook"] :is(dialog:not(.game-maintenance),#game-info-dialog,#game-preview-dialog){padding:22px!important;background-attachment:local!important}
:root[data-theme="notebook"] :is(dialog,#game-info-dialog) .dialog-header{top:-22px!important;padding:0!important;height:22px;min-height:22px;margin:0 0 22px!important;align-items:flex-start!important;border-bottom:0!important;box-shadow:0 11px 0 var(--theme-paper),0 12px 0 var(--theme-line);background:linear-gradient(var(--theme-grid) 1px,transparent 1px) 0 0/22px 22px,linear-gradient(90deg,var(--theme-grid) 1px,transparent 1px) 0 0/22px 22px,var(--theme-paper)!important;border-radius:0!important}
:root[data-theme="notebook"] .dialog-header h2{margin:0!important;font-size:20px}
:root[data-theme="notebook"] .info-dialog-content{gap:0!important;row-gap:0!important;margin:0!important}
:root[data-theme="notebook"] .info-dialog-content>.settings-section:last-child{margin-bottom:0!important}
:root[data-theme="notebook"] :is(.theme-controls,.poker-auto-controls,.victory-history,.theme-line-editor){gap:22px!important;row-gap:22px!important;padding:0!important;margin:0!important}
:root[data-theme="notebook"] .settings-section .reward-setting{margin:0!important;min-height:22px}
:root[data-theme="notebook"] .settings-section>label{display:flex!important;min-height:22px}
:root[data-theme="notebook"] .settings-section>:not(summary)+:not(summary){margin-top:22px!important}
:root[data-theme="notebook"] .settings-section>.reward-setting+.reward-setting{margin-top:0!important}
:root[data-theme="notebook"] .settings-section>:not(summary){margin-bottom:0!important}
:root[data-theme="notebook"] .settings-section details{padding:0!important;margin:22px 0 0!important;border:0!important}
:root[data-theme="notebook"] .poker-keep-options{margin:0!important;gap:22px!important}
:root[data-theme="notebook"] .poker-keep-options>label{box-sizing:border-box;height:22px!important;min-height:22px!important;padding:0 4px!important;border:0!important;background:transparent!important;outline:1px solid var(--theme-line);outline-offset:var(--frame-out);align-items:center}
:root[data-theme="notebook"] .poker-auto-status{border:0!important;border-radius:0!important;padding:0 11px!important;gap:0!important;background:transparent!important;outline:1px solid var(--theme-line);outline-offset:var(--frame-out)}
:root[data-theme="notebook"] .poker-auto-status:empty,:root[data-theme="notebook"] .poker-auto-history:empty{display:none}
:root[data-theme="notebook"] .poker-auto-history{gap:0!important}
:root[data-theme="notebook"] .report{min-height:0!important;height:auto!important;padding-block:0!important}
:root[data-theme="notebook"] .farm-totals{margin:0!important;gap:22px!important}
:root[data-theme="notebook"] .farm-total{box-sizing:border-box;border:0!important;border-radius:0!important;padding:0 11px!important;gap:0!important;background:transparent!important;outline:1px solid var(--theme-line);outline-offset:var(--frame-out)}
:root[data-theme="notebook"] .victory-history>*{margin-top:0!important;margin-bottom:0!important}
:root[data-theme="notebook"] .farm-total .combo-resource-icon{width:22px!important;height:22px!important;object-fit:contain}
@media(max-width:720px){
  /* Fixed bottom bars carry their own grid, shifted so the 22px controls sit inside a cell. */
  :root[data-theme="notebook"] :is(.shell>.tabs,.mobile-navigation){box-sizing:border-box;background:linear-gradient(var(--theme-grid) 1px,transparent 1px) 0 11px/22px 22px,linear-gradient(90deg,var(--theme-grid) 1px,transparent 1px) 0 0/22px 22px,var(--theme-paper)!important;border-top:0!important;box-shadow:0 -1px var(--theme-line),0 -3px 10px #0002!important}
  :root[data-theme="notebook"] .shell>.tabs{height:calc(44px + env(safe-area-inset-bottom,0px))!important;min-height:44px!important;margin:0!important;padding:11px 18px env(safe-area-inset-bottom,0px)!important;align-items:flex-start!important;gap:22px!important}
  :root[data-theme="notebook"] .shell>.tabs .tab{height:22px!important;min-height:22px!important;padding:0 4px!important}
  :root[data-theme="notebook"] .mobile-navigation{padding:11px 18px!important;height:44px}
  :root[data-theme="notebook"] .mobile-navigation .mobile-boss-shortcuts{gap:22px!important}
  :root[data-theme="notebook"] .mobile-navigation button{box-sizing:border-box;height:22px!important;min-height:22px!important;outline:1px solid var(--theme-line);outline-offset:var(--frame-out)}
}
:root[data-theme="notebook"] .boss-groups{gap:22px!important;row-gap:22px!important}
:root[data-theme="notebook"] .guide-item-copy{max-height:44px;overflow:hidden}
@media(max-width:720px){
  :root[data-theme="notebook"] :is(.guide-list,#boss-list){gap:22px!important}
  :root[data-theme="notebook"] .guide-item+.guide-item,:root[data-theme="notebook"] #boss-list .guide-item+.guide-item{margin-top:0!important}
}
:root[data-theme="notebook"] .damage-dashboard-metric{gap:0!important;row-gap:0!important}
:root[data-theme="notebook"] .home-weapons-table :is(th,td){height:22px!important;padding-block:0!important;vertical-align:top}
:root[data-theme="notebook"] .home-weapon-balance{height:22px;max-height:22px;display:flex;align-items:flex-start;flex-wrap:nowrap;gap:4px;justify-content:inherit}
:root[data-theme="notebook"] .home-weapon-balance>*{height:22px;margin:0!important}
:root[data-theme="notebook"] :is(.guide-filters,.boss-groups,.button-row,.yard-actions){row-gap:22px!important;column-gap:22px!important}
:root[data-theme="notebook"] .finish-flags{row-gap:0!important;column-gap:22px!important;flex-wrap:wrap}
:root[data-theme="notebook"] :is(.boss-card-name,.boss-card-status){height:22px!important;max-height:22px;align-items:flex-start!important;overflow:visible}
:root[data-theme="notebook"] :is(.boss-card-name,.boss-card-status)>*{max-height:22px}
:root[data-theme="notebook"] .damage-hour{grid-template-rows:var(--damage-plot-height,176px) 22px!important;gap:0!important;align-content:start!important}
:root[data-theme="notebook"] :is(.queue-row-controls,.boss-heading-row,.battle-stepper,.guide-detail-heading .button-row){column-gap:22px!important;gap:22px!important}
:root[data-theme="notebook"] .queue-options{border:0!important;box-shadow:none!important}
/* One frame language: square-ish hand frames for tiles and buttons alike */
:root[data-theme="notebook"] :is(.guide-item,.damage-dashboard-metric,.list-row,.checkpoint-row,.social-card,.hub-inbox-row,.choice-row,.farm-total,.poker-auto-status,.yard-disclosure,.resource-reward-row,.manual-weapon-toggle,.hub-game-tab,.home-event){border-radius:3px!important}
:root[data-theme="notebook"] .damage-axis-tick:last-child{visibility:hidden}
/* Cards that sit in a gapped grid do not add their own bottom margin (avoids double empty rows). */
:root[data-theme="notebook"] :is(.grid,.home-battle-column,.home-resource-column,.battle-info,.hub-grid,.hub-tasks,.yard-main,.yard-layout)>:is(.card,.home-weapons,.damage-rewards,.battle-leaderboard,article,div.card){margin-bottom:0!important}
@media(max-width:720px){
  :root[data-theme="notebook"] #player-metrics{row-gap:0!important}
}
/* One-row controls never wrap their caption (a second line would leave the cell). */
:root[data-theme="notebook"] :is(.primary,.secondary,.tab,.guide-filter,.boss-group,.hub-action,.dialog-close){white-space:nowrap!important}
@media(max-width:720px){
  :root[data-theme="notebook"] .queue-row-controls{margin-top:22px!important}
  :root[data-theme="notebook"] .guide-action-fields{grid-template-columns:minmax(0,1fr)!important}
  :root[data-theme="notebook"] .button-row>:is(.primary,.secondary){flex:1 1 auto}
  :root[data-theme="notebook"] .boss-groups{overflow:visible!important}
}
:root[data-theme="notebook"] .queue-row{box-shadow:none!important}
/* Scrollable queue: room for the frames drawn outside the buttons without moving the rows off the grid */
:root[data-theme="notebook"] #queue-items{padding:8px 8px 8px!important;margin:-8px -8px 14px!important}
/* Visual audit: frames stay inside their own layout space, without changing the paper grid. */
.tabs{overflow-y:hidden!important;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.home-events{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin:0;min-width:0}
.home-events .home-event{box-sizing:border-box;display:grid;place-items:center;flex:0 0 58px;width:58px;height:58px;min-width:58px;min-height:58px;padding:9px;border-radius:8px;line-height:1}
.home-events .home-event .home-event-icon{display:block;width:36px;height:36px;max-width:36px;max-height:36px;object-fit:contain;margin:0}
.home-event:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.home-events .home-event::after{pointer-events:none}
:root[data-theme="notebook"] .home-events{gap:22px!important;padding:0 8px!important}
:root[data-theme="notebook"] .home-events .home-event{height:44px!important;min-height:44px!important;width:44px!important;min-width:44px!important;flex-basis:44px;padding:4px!important}
:root[data-theme="notebook"] :is(.social-list,.guide-controls){column-gap:22px!important;row-gap:22px!important}
:root[data-theme="notebook"] .resource-reward-row{outline:none!important;box-shadow:none!important;border:0!important}
:root[data-theme="notebook"] .home-resources .home-resource{border-bottom:0!important;box-shadow:none!important}
:root[data-theme="notebook"] :is(.social-card,.hub-inbox-row,.list-row,.checkpoint-row){outline-offset:0!important;border-radius:3px!important}
:root[data-theme="notebook"] :is(.guide-controls,.button-row,.queue-row-controls,.boss-heading-row){min-width:0}
:root[data-theme="notebook"] .guide-controls>*{max-width:100%;min-width:0}
:root[data-theme="notebook"] .social-card-copy{flex:1;min-width:0}
:root[data-theme="notebook"] .social-card-name{overflow-wrap:anywhere;height:auto!important;max-height:none!important}
:root[data-theme="notebook"] .social-card{height:auto!important;min-height:66px!important}
:root[data-theme="notebook"] :is(.guide-actions,.damage-options){box-shadow:none!important;border:1px solid var(--theme-line)!important;padding:21px!important}
:root[data-theme="notebook"] .damage-options .damage-options{border:0!important;padding:0!important}
:root[data-theme="notebook"] :is(.card-head,.section-title,.page-heading,.guide-detail-heading){height:auto!important;min-width:0;overflow-wrap:anywhere}
:root[data-theme="notebook"] :is(.hub-inbox-row,.social-member,.queue-row,.battle-person){min-width:0}
:root[data-theme="notebook"] .hub-inbox-row{gap:11px!important;align-items:center;flex-wrap:wrap}
:root[data-theme="notebook"] .hub-inbox-row>div{height:auto;min-width:0;overflow-wrap:anywhere}
:root[data-theme="notebook"] .hub-flow-node::after{display:none}
:root[data-theme="notebook"] .hub-flow-node{align-items:start}
:root[data-theme="notebook"] .hub-flow-node>*{min-width:0;overflow-wrap:anywhere}
:root[data-theme="notebook"] .guild-message{white-space:pre-wrap;line-height:22px;overflow-wrap:anywhere}
.guild-emblem{isolation:isolate;overflow:hidden}
.guild-emblem>.guild-emblem-pattern{z-index:0}
.guild-emblem>.guild-emblem-texture{z-index:1}
.guild-emblem>.guild-emblem-icon{z-index:2}
.guild-emblem>.guild-emblem-glow{z-index:3}
.game-reward-track{display:none}
:root[data-theme="game"] .damage-rewards{--notebook-ink:#e2d4b5;color:#e2d4b5;background:linear-gradient(145deg,#293025,#19211c);border:1px solid #776346;border-radius:9px;box-shadow:inset 0 1px #d8bd7520;padding:14px 16px;gap:11px;grid-template-columns:minmax(0,1fr)}
:root[data-theme="game"] .damage-rewards .reward-track-heading{color:#ead5aa;text-decoration:none;font:700 16px/22px var(--selected-font,"Segoe UI"),Arial,sans-serif!important;white-space:normal;height:auto}
:root[data-theme="game"] .notebook-progress,:root[data-theme="game"] .notebook-progress *{font-family:var(--selected-font,"Segoe UI"),Arial,sans-serif!important}
:root[data-theme="game"] .notebook-counter{color:#bdc7b3;font-size:13px;line-height:22px;height:auto;min-height:22px;flex-wrap:wrap;white-space:normal}
:root[data-theme="game"] .notebook-current{color:#f2ddb1}
:root[data-theme="game"] .notebook-viewport{display:none}
:root[data-theme="game"] .game-reward-track{display:block;overflow-x:auto;overflow-y:hidden;padding:11px 2px 3px;scrollbar-width:thin;scrollbar-color:#796746 #1a251f}
.game-reward-rail{position:relative;height:22px;margin:0 5px;background:#0c1b17;border:1px solid #89704b;border-radius:5px;box-shadow:inset 0 2px 5px #0008}
.game-reward-fill{height:100%;width:0;border-radius:4px;background:linear-gradient(90deg,#107564,#39c1a4);box-shadow:inset 0 1px #a2ffe25c;transition:width .35s ease-out}
.game-reward-mark{position:absolute;top:-4px;bottom:-4px;width:3px;transform:translateX(-100%);background:#8f7957;border:1px solid #b19c71;border-radius:2px;box-shadow:0 0 0 2px #1c251e}
.game-reward-mark.reached{background:#8dd6a2;border-color:#b5efbf;box-shadow:0 0 7px #62bc7966}
.game-reward-captions{display:grid;margin-top:7px;gap:7px}
.game-reward-caption{display:grid;justify-items:center;gap:4px;color:#bfb29b;font-size:12px;line-height:20px;min-width:0}
.game-reward-caption.reached{color:#b8dfab}
.game-reward-threshold{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.game-reward-icons{display:flex;justify-content:center;align-items:center;gap:4px;flex-wrap:wrap}
.game-reward-icon{width:22px;height:22px;object-fit:contain}
:root[data-theme="game"] .damage-rewards .reward-track-details>summary{background:#273028;color:#d4c09b;border-color:#7b694b}
:root[data-theme="game"] .damage-rewards .reward-track-details :is(.muted,.reward-detail-row){color:#bdc7b3;font-family:var(--selected-font,"Segoe UI"),Arial,sans-serif}
@media(max-width:720px){
  :root[data-theme="notebook"] .button-row>:is(button.primary,button.secondary){height:auto!important;min-height:22px!important;white-space:normal!important;overflow-wrap:anywhere;max-width:100%}
  :root[data-theme="notebook"] .guide-controls{gap:22px!important}
  :root[data-theme="notebook"] .home-events{padding:0 8px!important}
  :root[data-theme="notebook"] .social-card .guild-emblem{width:44px!important;height:66px!important;flex-basis:44px}
  :root[data-theme="game"] .damage-rewards{padding:12px;gap:8px}
}
@media(prefers-reduced-motion:reduce){.game-reward-fill{transition:none}}
:root[data-theme="game"] .damage-rewards .reward-track-heading *{font-family:var(--selected-font,"Segoe UI"),Arial,sans-serif!important;font-size:inherit}
.game-reward-captions{display:block;position:relative;height:48px;margin:7px 5px 0}
.game-reward-caption{position:absolute;top:0;width:68px;transform:translateX(-50%)}
:root[data-theme="notebook"] #home-events.home-events{gap:11px!important;padding:0!important}
:root[data-theme="notebook"] #home-events.home-events .home-event{box-sizing:border-box;flex:0 0 44px!important;width:44px!important;height:44px!important;min-height:44px!important;padding:4px!important;outline-offset:0!important}
@media(max-width:720px){
  :root[data-theme="notebook"] .home-resource-column>#player-metrics.home-metrics{row-gap:0!important}
  :root[data-theme="notebook"] #player-metrics.home-metrics .home-resource{height:22px!important;min-height:22px!important;padding:0!important;margin:0!important;outline:none!important}
}
.guide-list{scrollbar-width:none}
.guide-list::-webkit-scrollbar{display:none}
:root[data-theme="notebook"] :is(#guide-list,#boss-list){box-shadow:none!important;border:0!important}
:root[data-theme="notebook"] .guide-intro h2{height:auto!important;min-height:22px!important;font-size:22px!important;line-height:22px!important}
:root[data-theme="notebook"] .achievement-controls{display:grid;gap:22px;padding:11px 0;margin-bottom:22px}
:root[data-theme="notebook"] .achievement-controls>label{display:grid;gap:0;min-width:0}
:root[data-theme="notebook"] .achievement-controls>label:has(input[type="checkbox"]){display:flex;align-items:center;gap:11px}
:root[data-theme="notebook"] .achievement-controls>button{justify-self:start;margin-block:0!important;max-width:100%}
:root[data-theme="notebook"] .achievement-list{gap:22px}
:root[data-theme="notebook"] .achievement-list>.guide-subtitle{height:auto;min-height:22px;margin:0}
:root[data-theme="notebook"] .achievement-card{padding:10px;gap:11px;min-width:0;align-items:center}
:root[data-theme="notebook"] .achievement-icon{width:66px!important;height:66px!important}
:root[data-theme="notebook"] .achievement-copy{gap:0;min-width:0;overflow-wrap:anywhere}
:root[data-theme="notebook"] .profile-highlight-metric,:root[data-theme="notebook"] .profile-daily-damage{row-gap:0!important;align-content:start!important;min-height:0!important}
:root[data-theme="notebook"] .profile-highlight-metrics{align-items:start}
:root[data-theme="notebook"] .profile-metric-value{margin-block:0!important;line-height:22px!important}
:root[data-theme="notebook"] .yard-bet{gap:11px!important}
:root[data-theme="notebook"] .yard-bet .yard-disclosure{outline-offset:0!important;padding:0 7px!important}
:root[data-theme="notebook"] .yard-bag .button-row{column-gap:22px!important;row-gap:22px!important;padding:7px 0}
.game-settings-dialog :is(.info-dialog-content,.settings-section,.poker-auto-controls,.victory-history){min-width:0;max-width:100%}
.game-settings-dialog .settings-section label:has(>input[type="number"]){display:grid!important;grid-template-columns:minmax(0,1fr);gap:0;min-width:0;line-height:22px}
.game-settings-dialog input[type="number"]{box-sizing:border-box;max-width:100%;min-width:0}
.settings-boss-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:0 11px;margin-top:11px}
.settings-boss-choices>label{display:flex;align-items:center;justify-content:space-between;gap:7px;min-width:0;line-height:22px}
:root[data-theme="notebook"] .player-room-dialog .info-dialog-content{row-gap:22px!important}
:root[data-theme="notebook"] .profile-highlight-metrics{gap:22px!important}
:root[data-theme="notebook"] .profile-highlight-metric>.muted{overflow-wrap:normal;font-size:18px!important}
:root[data-theme="notebook"] .profile-highlight-metric :is(.profile-metric-value,.profile-rank){grid-column:1/-1;overflow-wrap:normal}
:root[data-theme="notebook"] .profile-highlight-metric .profile-metric-value{font-size:20px!important}
:root[data-theme="notebook"] .profile-daily-damage{grid-column:1/-1}
:root[data-theme="notebook"] .hub-grid{align-items:start}
:root[data-theme="notebook"] .hub-grid>.card>button{display:block;margin:22px 0 0!important;max-width:100%;white-space:normal!important;height:auto!important;min-height:22px!important;line-height:22px!important}
:root[data-theme="notebook"] .yard-bet>button{outline-offset:0!important}
:root[data-theme="notebook"] .birthday-sources{gap:11px!important}
:root[data-theme="notebook"] .birthday-sources>button{outline-offset:0!important}
:root[data-theme="notebook"] :is(dialog,#game-info-dialog) .dialog-header{height:auto!important;min-height:22px!important}
:root[data-theme="notebook"] .dialog-header h2{min-width:0;height:auto!important;line-height:22px!important;white-space:normal!important;overflow-wrap:anywhere}
:root[data-theme="notebook"] .dialog-header .dialog-close{flex-shrink:0}
/* The brush can rise above HP without its invisible box widening the phone page. */
:root[data-theme="notebook"] .boss-hp-bar{overflow-x:clip!important;overflow-y:visible!important}
#telegram-gate {
  width: min(100% - 32px, 440px);
  margin: clamp(36px, 14vh, 120px) auto;
  padding: 24px;
  color: #f5e7d0;
  background: #24251e;
  border: 1px solid #746044;
  border-radius: 12px;
}
#telegram-gate h1 { margin: 0; font-size: 26px; }
#telegram-gate a { color: #edc58d; }
body[data-telegram-gate] > :not(#telegram-gate) { display: none !important; }
.panel-feedback { padding-top: 10px; align-items: center; }
.panel-feedback textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  resize: vertical;
  padding: 8px;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 5px;
}
@media(max-width:720px){
  .game-settings-dialog :is(button.primary,button.secondary){white-space:normal!important;overflow-wrap:anywhere;max-width:100%;height:auto!important;min-height:22px!important;line-height:22px!important}
  :root[data-theme="notebook"] .game-settings-dialog .farm-totals{gap:22px!important;grid-template-columns:repeat(2,minmax(0,1fr))}
  .game-settings-dialog .button-row{flex-wrap:wrap}
}
