.sheet-skill-checks{display:flex;flex-wrap:wrap;gap:5px;margin:6px 0}
.sheet-skill-checks button{padding:5px 7px;border:1px solid #775425;background:#241b0e;color:#f2d27c;font-size:11px;cursor:pointer}
.sheet-skill-checks button:hover{border-color:#c99b4e;background:#30230f}
.sheet-export-note{margin:0 0 10px;color:#a9b5b8;font-size:11px;line-height:1.4}
.print-record{display:none}
.sheet-roll-history{margin:8px 0 16px;border:1px solid #665438;border-radius:10px;padding:10px;color:#e9dfc9}
.sheet-roll-history summary{cursor:pointer;min-height:32px;line-height:32px}
.sheet-roll-history ol{max-height:260px;overflow:auto;padding-left:24px;font-size:14px;line-height:1.6}
.sheet-roll-history li{padding:8px 0;border-bottom:1px solid #665438;overflow-wrap:anywhere}
.sheet-dice{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.sheet-die{display:grid;place-content:center;width:52px;height:58px;background:#e6c77d;color:#211b12;border:2px solid #fff0bc;border-radius:12px;font:bold 22px Georgia,serif;box-shadow:0 4px 0 #76572d}
.sheet-die::after{content:attr(data-sides);font:11px system-ui;text-align:center}
.sheet-view .sheet-row[hidden]{display:none}
.sheet-view .sheet-block details summary{padding:12px 0;cursor:pointer;color:#f2d27c;font-size:15px}
.sheet-view .sheet-block input[type=search]{width:100%;min-height:44px;margin:8px 0;font-size:16px}
.sheet-view .sheet-row{font-size:14px;line-height:1.5;padding:10px 0}
.sheet-view .sheet-row select{font-size:14px;min-height:44px}
.sheet-view .sheet-output{font-size:15px;line-height:1.6;padding:16px}
.sheet-save-action{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0;color:#e9dfc9}.sheet-save-action p{flex-basis:100%;margin:0;font-size:13px}.sheet-save-action button{min-height:42px}.sheet-resource-reminder{display:block;margin-top:4px;color:#d8c28e;font-size:11px}
@media(max-width:700px){#sheetView .sheet-row button{min-height:44px;min-width:44px;font-size:14px}}
.roll-reveal .sheet-die{animation:sheet-dice-settle 450ms ease-out}
@keyframes sheet-dice-settle{from{transform:translateY(-8px) rotate(-18deg);opacity:.35}to{transform:translateY(0) rotate(0);opacity:1}}
@media(prefers-reduced-motion:reduce){.roll-reveal .sheet-die{animation:none}}
.sheet-mobile-section-jump{display:none}
@media(max-width:700px){.sheet-view button,.sheet-view select,.sheet-section-nav a{min-height:44px}.sheet-skill-checks button{font-size:14px;padding:10px}.sheet-roll-history{font-size:14px}#sheetView .sheet-section-nav{position:sticky;top:0;z-index:3;background:#171d20;padding:8px;display:block;overflow:visible}#sheetView .sheet-section-nav a{display:none}.sheet-mobile-section-jump{display:flex;align-items:center;gap:10px;min-width:0;color:#f2d27c;font-weight:700}.sheet-mobile-section-jump select{flex:1;min-width:0;max-width:100%;background:#20282b;color:#f2d27c;border-color:#665438}.sheet-block{scroll-margin-top:76px}}
@page{size:letter portrait;margin:.38in}
@media print{
  html,body{width:100%!important;min-height:0!important;margin:0!important;background:#fff!important;color:#171717!important;font:9pt/1.25 Arial,sans-serif!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  body.printing-character-sheet> :not(main){display:none!important}
  body.printing-character-sheet main{display:block!important;max-width:none!important;margin:0!important;padding:0!important}
  body.printing-character-sheet main> :not(#workspace){display:none!important}
  body.printing-character-sheet #workspace{display:block!important}
  body.printing-character-sheet #workspace> :not(.character-list){display:none!important}
  body.printing-character-sheet .character-list{display:block!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:#fff!important}
  body.printing-character-sheet .character-list> :not(#sheetView){display:none!important}
  body.printing-character-sheet #sheetView> :not(#sheetPrintout){display:none!important}
  body.printing-character-sheet #sheetPrintout,body.printing-character-sheet #sheetPrintout *{visibility:visible!important}
  body.printing-character-sheet #sheetPrintout{display:block!important;position:static!important;width:100%!important;height:auto!important;margin:0!important;padding:0!important;background:#fff!important;color:#171717!important;font:8.5pt/1.22 Arial,sans-serif!important}
  .print-header,.print-page-title{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:2px solid #222;padding:0 0 7px;margin:0 0 8px}
  .print-header p,.print-page-title p{margin:0 0 3px;font-size:7pt;font-weight:bold;letter-spacing:.12em}
  .print-header h1,.print-page-title h1{margin:0;font:20pt Georgia,serif}
  .print-header span{font-size:7pt;color:#555}
  .print-header img{width:.72in;height:.72in;object-fit:cover;border:1px solid #666;border-radius:50%}
  .print-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;align-items:start}
  .print-identity{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
  .print-combat{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin-top:5px}
  .print-field{min-width:0;min-height:.37in;padding:3px 5px;border:1px solid #777;background:#fff}
  .print-field>span{display:block;margin-bottom:2px;color:#555;font-size:6.5pt;text-transform:uppercase;letter-spacing:.04em}
  .print-field>b{display:block;overflow-wrap:anywhere;font-size:8pt;font-weight:600}
  .print-ability-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin:6px 0}
  .print-ability{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 4px;padding:5px;border:1px solid #555;text-align:center}
  .print-ability>b{font-size:7pt}.print-ability>strong{font-size:12pt}.print-ability>span{font-size:12pt;font-weight:bold}.print-ability>small{grid-column:1/-1;font-size:6pt}
  .print-card{min-width:0;padding:5px;border:1px solid #555;break-inside:avoid}
  .print-card h2{margin:0 0 4px;padding:0 0 3px;border-bottom:1px solid #999;font:bold 9pt Georgia,serif}
  .print-card p{margin:2px 0;overflow-wrap:anywhere}
  .print-row{display:grid;grid-template-columns:minmax(1.1in,1.3fr) .7fr .55fr .8fr;gap:4px;padding:3px 0;border-bottom:1px solid #ccc;overflow-wrap:anywhere}
  .print-row small{grid-column:1/-1;font-size:7pt;color:#444}
  .print-feature{padding:3px 0;border-bottom:1px solid #ccc}.print-feature p{margin:2px 0}
  .print-empty{color:#666;font-style:italic}
  .print-notes{margin-top:6px}
  .print-note-line{height:.22in;border-bottom:1px solid #bbb}
  .print-page-one{grid-template-columns:1fr 1fr;grid-auto-flow:row}
  .print-page-two{grid-template-columns:1fr 1fr}
  .print-page-two .print-card:last-child{grid-column:1/-1}
  .print-spell-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;margin-bottom:4px}
  .print-footer{position:absolute;bottom:0;left:0;right:0;padding:4px 0 0;border-top:1px solid #999;background:#fff!important;color:#555!important;font:6.5pt/1.2 Arial,sans-serif!important}
  .print-page-break{break-before:page;page-break-before:always;height:0}
  .print-page-title{margin-top:0}
  .sheet-view{display:block!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:#fff!important}
}
