.sheet-export-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:18px 0}.sheet-export-controls small{flex-basis:100%;color:var(--muted)}.sheet-export-status{font-size:13px;overflow-wrap:anywhere}.creator-layout.review-layout{grid-template-columns:minmax(0,1fr)}.review-layout>.creator-summary{display:none}.paper-character{max-width:950px;margin:20px auto;background:#fffefb;color:#27232c;border:1px solid #b4a07c;box-shadow:0 6px 24px #32241519;padding:32px;font-family:Arial,sans-serif}.paper-character .paper-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;border-bottom:2px solid #80693e;padding-bottom:20px}.paper-heading>div{min-width:0}.paper-heading img{width:120px;height:160px;object-fit:contain;border:1px solid #b9a884;background:#f3eee4}.paper-heading h1{font-family:Georgia,serif;font-size:32px;line-height:1.2;color:#27232c;overflow-wrap:anywhere}.paper-heading p{margin:12px 0 6px}.paper-kicker{font-size:12px;letter-spacing:2px;color:#796035}.paper-character p,.paper-character small{color:#36313b;font-size:12px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.paper-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0}.paper-stats>div{border:1px solid #ae9b78;text-align:center;padding:10px 5px;outline:1px solid #d4cab5;outline-offset:-4px}.paper-stats strong{display:block;font-size:23px}.paper-stats span{font-size:12px;text-transform:uppercase;letter-spacing:.6px}.paper-core{display:grid;grid-template-columns:1fr 1fr;gap:24px}.paper-section{margin:14px 0 22px;min-width:0}.paper-section h2{font-family:Georgia,serif;font-size:19px;color:#382c20;border-bottom:1px solid #ab9570;padding:0 0 6px;margin:0 0 10px}.paper-section p{margin:0 0 9px}.paper-section table{width:100%;border-collapse:collapse;font-size:12px;table-layout:fixed}.paper-section th,.paper-section td{text-align:left;padding:7px 4px;border-bottom:1px solid #ddd5c6;overflow-wrap:anywhere}.paper-section th:first-child,.paper-section td:first-child{width:43%}.paper-section th{background:#f3eee2}.paper-character footer{margin-top:24px;padding:14px 0 0;border-top:1px solid #ab9570;font-size:12px;display:block;color:#75613c}.review-layout .creator-content{min-width:0}.review-layout .paper-character{width:100%}@media(max-width:650px){.paper-character{padding:16px}.paper-heading img{width:78px;height:104px}.paper-heading h1{font-size:24px}.paper-core{grid-template-columns:1fr}.paper-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.sheet-export-controls .button{flex:1 1 130px}}@media print{@page{size:letter;margin:12mm}.sidebar,.topbar,.main-shell>footer,.print-controls,.sheet-export-controls,.creator-heading,.creator-attribution,.rules-bar,.edition-bar,.step-strip,.creator-pagination,.creator-summary,.creator-step-strip,.creator-section,#creator-auth,#creator-error,.creator-intro,#toast,dialog{display:none!important}.creator-content>*:not(#creator-review){display:none!important}.main-shell,#app,.creator-layout,.creator-content,#creator-review{display:block!important;margin:0!important;padding:0!important;border:0!important;background:white!important;max-width:none!important;width:100%!important;box-shadow:none!important}.paper-character{margin:0;padding:0;border:0;box-shadow:none;width:100%;max-width:none}.paper-character *{box-shadow:none!important;text-shadow:none!important}.paper-character .paper-heading{break-inside:avoid}.paper-heading h1{font-size:24pt}.paper-heading img{width:80px;height:110px}.paper-core{display:block;columns:2;column-gap:20px}.paper-core>div{break-inside:avoid}.paper-section{break-inside:auto}.paper-section h2{break-after:avoid;font-size:13pt}.paper-section p{orphans:3;widows:3;font-size:10pt;line-height:1.35}.paper-section tr{break-inside:avoid}.paper-section thead{display:table-header-group}.paper-stats{grid-template-columns:repeat(4,1fr);break-inside:avoid;margin:14px 0}.paper-stats strong{font-size:16pt}.paper-character footer{position:static}.paper-character:before,.paper-character:after{display:none!important}}

/* Original linework with generous, unshaded pencil spaces. */
.paper-emblem{width:52px;height:64px;flex:none;color:#80693e}.paper-heading>div{flex:1}.paper-character{border:3px double #9b865f}.paper-stats>div{border-radius:14px 14px 24px 24px}.paper-stat-write{height:24px;border-bottom:1px solid #b5aa97;margin:0 10px 5px}.paper-section h2:before{content:'◇';margin-right:8px;color:#80693e}.paper-ledger td{height:38px;border:1px solid #d0c7b7;vertical-align:top}.paper-ledger th:first-child,.paper-ledger td:first-child{width:42%}.paper-ledger th:nth-child(2),.paper-ledger td:nth-child(2){width:18%}.paper-writing>div{height:30px;border-bottom:1px solid #c8bfae}.paper-writing{margin-top:10px}.paper-chapter{border-block:3px double #80693e;padding:12px 0;font:700 20px Georgia,serif;letter-spacing:2px;margin:30px 0 12px}.paper-chapter span{display:block;font:11px Arial,sans-serif;letter-spacing:1px;margin-top:6px}.paper-play .paper-section{margin-bottom:28px}.paper-character .paper-hint{font-size:12px;color:#706551}.paper-play{margin-top:28px}@media(max-width:650px){.paper-emblem{width:30px}.paper-character .paper-heading{gap:10px}.paper-chapter{font-size:16px;letter-spacing:1px}}@media print{.paper-play,.paper-details{break-before:page}.paper-play .paper-chapter,.paper-details{margin-top:0}.paper-ledger td{height:8mm}.paper-writing>div{height:7mm}.paper-stat-write{height:5mm}.paper-play .paper-section{margin-bottom:4mm}.paper-chapter{font-size:15pt}.paper-emblem{width:40px}.paper-core{columns:auto;display:grid;grid-template-columns:1fr 1fr;gap:20px}.paper-section h2:before{color:#555}}

.sheet-pencil-option{display:flex;align-items:center;gap:10px;flex-basis:100%;font-weight:600;padding:12px 14px;border:1px solid #b4a07c;background:#fffaf0;color:#382c20}.sheet-pencil-option input{width:18px;height:18px;flex:none;accent-color:#76502c}

.sheet-format-option{display:flex;flex-wrap:wrap;align-items:center;gap:12px;flex-basis:100%;font-weight:600}.sheet-format-option select{min-width:180px;padding:10px}.sheet-format-option small{font-weight:400}.paper-optimized-combat{display:grid;grid-template-columns:1fr 1fr;gap:22px}.paper-optimized .paper-chapter{text-transform:uppercase;font-size:17px}.paper-optimized .paper-section{border:1px solid #b4a07c;padding:10px}.paper-optimized .paper-section h2{background:#f3eee2;padding:8px}.paper-optimized .paper-ledger td{height:32px}@media(max-width:650px){.paper-optimized-combat{grid-template-columns:1fr}}@media print{.paper-optimized-combat{display:grid;grid-template-columns:1fr 1fr}.paper-optimized .paper-chapter{break-after:avoid}.paper-optimized .paper-ledger td{height:7mm}}
.sheet-disclosure>summary{display:list-item;cursor:pointer;font-family:Georgia,serif;font-size:18px;line-height:1.5;overflow-wrap:anywhere}
.sheet-disclosure>summary:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
.sheet-disclosure[open]>summary{margin-bottom:18px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.sheet-disclosure .stat-grid{margin:0}
.sheet-section-body{min-width:0}
.character-rolls form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin:16px 0}
.character-rolls form .field{flex:1 1 140px;margin:0}
.character-rolls small{display:block;font-size:12px;color:var(--muted)}
.character-quick-dice{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:16px 0}
#character-roll-result{display:block;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.held-character-roll{grid-column:1/-1;min-width:0;max-width:100%;margin:10px 0 18px;padding:12px;border:1px solid var(--line);background:#f6efe1;overflow-wrap:anywhere}
.held-character-roll>header{display:flex;justify-content:space-between;align-items:center;gap:10px}
.held-character-roll h4{font-size:12px;margin:0}
.held-character-roll header>strong{font:26px Georgia,serif}
.held-character-roll>small{display:block;font-size:12px}
.held-dice{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
.held-dice .roll-die-images{display:flex}
.held-dice .roll-die-token{display:flex;flex-direction:column;align-items:center}
.held-dice .discarded{opacity:.45}
.held-character-roll .character-quick-dice{margin:12px 0 0}
.character-rolls form>.button{max-width:100%}
.sheet-roll-mode-bar{position:sticky;top:8px;z-index:10;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px;margin:16px 0;background:#fffaf0;border:1px solid var(--line);box-shadow:0 2px 8px #32241519}
.sheet-roll-mode-bar>span{font-size:12px;font-weight:600}
.sheet-roll-mode-bar>small{flex-basis:100%;font-size:12px;color:var(--muted)}
.sheet-roll-mode-bar [aria-pressed=true]{background:#493741;color:#fff;border-color:#493741}
.sheet-main .action-row{flex-wrap:wrap}
@media(max-width:480px){.sheet-roll-mode-bar>span{flex-basis:100%}.sheet-roll-mode-bar>.button{flex:1;padding:8px 5px}}

.resource-pips{display:flex;flex-wrap:wrap;gap:4px}.resource-pip{min-width:32px;min-height:32px;border:1px solid var(--line);border-radius:50%;font-size:20px}.resource-pip[aria-pressed=true]{background:var(--gold);color:#252a20}.skill-row .prof{font:700 12px/1.6 sans-serif;min-width:24px;text-align:center}

.sheet-manage{position:relative}.sheet-manage-items{display:flex;flex-wrap:wrap;gap:8px;padding:10px;border:1px solid var(--line);border-radius:6px}.sheet-manage summary{list-style:none}

@media(max-width:650px){
 .sheet-heading{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px;margin:14px 0}
 .sheet-heading .sheet-portrait{width:64px;height:82px;min-height:0;object-fit:contain;margin:0}
 .sheet-heading h1{font-size:24px;line-height:1.15}
 .sheet-heading .sheet-controls{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:6px}
 .sheet-heading .sheet-controls>.button,.sheet-heading .sheet-manage>summary{padding:9px 6px;min-height:38px;font-size:12px}
 .sheet-heading .sheet-manage{min-width:0}.sheet-heading .sheet-manage>summary{height:100%;text-align:center}
 .stat-grid{margin:14px 0;gap:8px}
}
