.sheet-dialog{width:min(940px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:0;color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:20px;box-shadow:0 30px 100px #000a;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.sheet-dialog::backdrop{background:#000b;backdrop-filter:blur(7px)}
.sheet-dialog :is(input,textarea,button,summary):focus-visible{outline:2px solid var(--lime);outline-offset:2px}
html[data-theme="light"] .sheet-dialog :focus-visible{outline-color:#59664a}
.sheet-header{display:flex;justify-content:space-between;gap:20px;padding:28px 30px 22px;background:radial-gradient(ellipse at top right,#b0be8820,transparent 65%),var(--panel)}
.sheet-header h2{font:600 clamp(24px,4vw,34px)/1.2 Manrope,sans-serif;letter-spacing:-.045em;margin:8px 0}.sheet-header p,.sheet-intro,.sheet-help{color:var(--muted);font-size:12px;line-height:1.7;margin:0}
.sheet-close,.sheet-remove{cursor:pointer;border:1px solid var(--line);background:var(--panel-2);color:var(--muted);border-radius:9px;font-size:23px;width:34px;height:34px;flex-shrink:0}.sheet-close:hover,.sheet-remove:hover{color:var(--text);border-color:var(--muted)}
.sheet-tools{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;padding:14px 30px;border-block:1px solid var(--line)}.sheet-tools>div{display:flex;gap:7px;flex-wrap:wrap}.sheet-intro{padding:16px 30px 0}.sheet-body{padding:20px 30px 24px;display:grid;gap:18px}
.sheet-section{border:1px solid var(--line);border-radius:14px;padding:20px;background:var(--panel)}.sheet-section h3{font:600 15px Manrope,sans-serif;margin:0 0 18px}.sheet-section h3>span{color:var(--lime);font:11px 'DM Mono',monospace;margin-right:9px}.sheet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.sheet-grid .field-label{margin:0;display:grid;gap:7px}.sheet-dialog input,.sheet-dialog textarea{width:100%;min-width:0}.sheet-dialog textarea{resize:vertical;min-height:90px;line-height:1.7}.sheet-combat input{font:600 20px Manrope,sans-serif;min-height:48px}.sheet-section-heading{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.sheet-help{margin-bottom:14px}
.sheet-attributes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.sheet-attribute{display:grid;grid-template-columns:minmax(0,1fr) 70px 30px;align-items:center;gap:7px;padding:9px;background:var(--bg);border:1px solid var(--line);border-radius:10px}.sheet-attribute label{min-width:0}.sheet-attribute input{padding:8px}.sheet-remove{width:29px;height:29px;font-size:19px}.sheet-notes{border-top:1px solid var(--line);padding:13px 0}.sheet-notes summary{cursor:pointer;font-size:12px;color:var(--text)}.sheet-notes label{display:block;margin-top:12px}.sheet-footer{position:sticky;bottom:0;background:var(--panel);border-top:1px solid var(--line);padding:16px 30px;display:flex;gap:15px;align-items:center;justify-content:space-between}.sheet-footer p{margin:0;color:var(--muted);font-size:11px;max-width:65%}.sheet-footer .is-error{color:#f0a195}.sheet-footer button{flex-shrink:0}.sheet-print{display:none}.sheet-card-action{white-space:nowrap;min-height:30px}.sheet-dialog .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:600px){.sheet-header,.sheet-body,.sheet-tools,.sheet-footer{padding:18px}.sheet-intro{padding:14px 18px 0}.sheet-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sheet-attributes{grid-template-columns:1fr}.sheet-section{padding:14px}.sheet-footer{align-items:flex-start}.sheet-footer p{max-width:55%}.sheet-header h2{overflow-wrap:anywhere}}
@media print{body.has-sheet-print> :not(.sheet-print){display:none!important}body.has-sheet-print{background:white!important;color:black!important}.has-sheet-print .sheet-print{display:block!important;font:12px/1.5 sans-serif;color:black;background:white;padding:12mm}.sheet-print h1{font-size:28px}.sheet-print h2{font-size:17px}.sheet-print p{white-space:pre-wrap;overflow-wrap:anywhere}.sheet-print-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;border-bottom:1px solid #ccc}.sheet-print section{break-inside:avoid}.sheet-print section h2{border-bottom:1px solid #ccc}}
