/* Handwriting studio: vibrant, accessible dark interface + true-size white paper */
.hp-workspace{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)}
.hp-workspace .ev-form-panel,.hp-workspace .ev-preview-panel{padding:13px;background:#111c34;border-color:#364c77;box-shadow:0 22px 65px #080c2442}
.hp-workspace .ev-panel-head{padding:8px 12px;color:#fff}
.hp-workspace .ev-panel-head h2{color:#f3f7ff}
.hp-workspace .ev-privacy{background:#0d4a49;color:#aeffdc}
.hp-workspace .ev-live{background:#203e5e;color:#aef3ff}
.hp-studio{--hp-txt:#eef5ff;--hp-sub:#adc1e2;--hp-line:#405780;--hp-field:#192c4b;--hp-button:#1e375c;color:var(--hp-txt);background:radial-gradient(circle at 100% 2%,#243c79 0%,#132443 37%,#101b32 85%);padding:24px;border-radius:17px;display:grid;gap:16px;box-shadow:inset 0 1px #91a6db36}
.hp-studio .hp-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:11px;color:#b9e9ff;font-weight:800}
.hp-pill{letter-spacing:.12em;background:linear-gradient(115deg,#7461e0,#198ac5);border:1px solid #bcd3ff5c;padding:9px 11px;border-radius:50px;color:white;box-shadow:0 8px 25px #6460cf33}
.hp-studio h3{margin:10px 0 0;font-size:15px;color:#f9fbff;display:flex;align-items:center;gap:10px;letter-spacing:-.01em}
.hp-studio h3 b{width:34px;height:34px;border-radius:12px;background:#bff7ff;color:#12304b;display:grid;place-items:center;box-shadow:0 5px 19px #38dfff25}
.hp-studio label{font-size:12px;font-weight:800;line-height:1.45;display:grid;gap:8px;color:#dcecff;min-width:0}
.hp-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hp-studio input:not([type=checkbox]),.hp-studio select,.hp-studio textarea{width:100%;min-width:0;border-radius:11px;background:var(--hp-field);border:1px solid var(--hp-line);color:#f7faff;padding:12px 12px;font:inherit;font-size:13px;line-height:1.4;outline-offset:2px}
.hp-studio input:focus,.hp-studio textarea:focus,.hp-studio select:focus{outline:2px solid #51d6f1;border-color:#8b9ee4}
.hp-studio select{color-scheme:dark;cursor:pointer}
.hp-studio textarea{resize:vertical;min-height:108px;max-height:330px;font-size:14px;line-height:1.65}
.hp-studio input::placeholder,.hp-studio textarea::placeholder{color:#a4b4cc}
.hp-studio p{color:var(--hp-sub);font-size:12px;line-height:1.55;margin:0}
.hp-presets{display:flex;flex-wrap:wrap;gap:8px}
.hp-presets button,.hp-actions button{border:1px solid #5875a6;background:linear-gradient(145deg,#253c64,#1d3051);color:#f3f9ff;font-size:12px;font-weight:850;line-height:1.4;padding:11px 13px;border-radius:11px;cursor:pointer;transition:transform .16s,border-color .16s,box-shadow .16s}
.hp-presets button:hover,.hp-actions button:hover{transform:translateY(-2px);border-color:#70ddff;box-shadow:0 8px 22px #30bce61f}
.hp-studio button:focus-visible,.hp-preview button:focus-visible{outline:3px solid #61dcff;outline-offset:3px}
.hp-studio .hp-check{display:flex;align-items:center;gap:11px;padding:13px;background:#142d48;border:1px solid #345a75;border-radius:12px}
.hp-check input{accent-color:#40d7e9;width:17px;height:17px;flex:none}
.hp-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.hp-actions button{min-height:50px}
.hp-actions .hp-main{grid-column:1/-1;background:linear-gradient(120deg,#22bce3,#5573eb 72%,#8951d9);color:#fff;font-size:15px;border-color:#90c9ff;box-shadow:0 10px 28px #186adc48}
#hpError:not([hidden]){display:block;padding:13px;border:1px solid #ff9d9d;background:#673041;color:#fff3f1;border-radius:12px;font-size:12px;font-weight:750;line-height:1.5}
.hp-workspace .ev-preview-content{display:block;overflow:visible;min-width:0;padding:0}
.hp-preview{width:100%;max-width:100%;background:radial-gradient(circle at 30% -10%,#315885 0%,#172b4b 40%,#101c35 95%);padding:16px;border-radius:16px;color:#f3f7ff;min-width:0}
.hp-preview-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.hp-preview-top>div:first-child{display:grid;gap:5px}
.hp-preview-top small{letter-spacing:.13em;color:#79e7ff;font-size:10px;font-weight:900}
.hp-preview-top strong{font-size:17px;color:#fff}
.hp-page-nav{display:flex;gap:7px}
.hp-page-nav button{cursor:pointer;border:1px solid #5c79a9;background:#2a4473;color:#effaff;font-size:22px;width:38px;height:38px;border-radius:12px;font-weight:bold}
.hp-page-nav button:disabled{opacity:.35;cursor:not-allowed}
.hp-visual{background:#dde9f5;border:1px solid #7595b7;box-shadow:0 8px 30px #0005;border-radius:8px;overflow:hidden;min-height:180px;display:grid;place-items:center;padding:8px}
.hp-visual svg{display:block;width:100%;height:auto;max-height:min(71vh,770px);background:#fff;box-shadow:0 8px 20px #00122b24;object-fit:contain;aspect-ratio:auto}
.hp-preview-foot{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;padding:13px 2px 2px;color:#bdd6f3;font-size:11px;font-weight:800}
.hp-preview-jump,.hp-edit-jump{display:inline-flex;align-items:center;gap:5px;border-radius:10px;font-size:12px;font-weight:850;color:#7ce9ff;text-decoration:underline;text-underline-offset:3px}
.hp-preview-jump:focus-visible,.hp-edit-jump:focus-visible{outline:2px solid #6bdcfa;outline-offset:4px}
.hp-preview-jump{margin-top:-6px}
.hp-edit-jump{margin-top:12px}
@media(min-width:1101px){.hp-preview-jump,.hp-edit-jump{display:none}}
.hp-guide article{max-width:910px}
.hp-guide article h2,.hp-guide article h3{scroll-margin-top:90px}
#hpPrintRoot{display:none}
@media(max-width:1100px){.hp-workspace{grid-template-columns:minmax(0,1fr)}.hp-workspace .ev-preview-panel{position:static}}
@media(max-width:640px){.hp-studio{padding:14px;gap:15px}.hp-fields{grid-template-columns:1fr 1fr;gap:9px}.hp-studio input:not([type=checkbox]),.hp-studio select{padding:12px 9px;font-size:12px}.hp-studio h3{font-size:14px}.hp-actions{grid-template-columns:1fr}.hp-actions .hp-main{grid-column:auto}.hp-workspace .ev-form-panel,.hp-workspace .ev-preview-panel{padding:10px}.hp-visual{padding:5px}.hp-preview{padding:12px}}
@media(max-width:340px){.hp-fields{grid-template-columns:1fr}}
@page{margin:0;size:auto}
@media print{
 html,body{margin:0!important;padding:0!important;background:white!important;color:#000!important}
 body>*:not(#hpPrintRoot){display:none!important}
 #hpPrintRoot{position:static!important;display:block!important;width:100%!important;margin:0!important;padding:0!important;visibility:visible!important}
 #hpPrintRoot .hp-sheet{display:block!important;break-after:page;page-break-after:always;margin:0!important;padding:0!important;overflow:hidden!important}
 #hpPrintRoot .hp-sheet:last-child{break-after:auto;page-break-after:auto}
 #hpPrintRoot svg{display:block!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}
}