/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.static{position:static}.start{inset-inline-start:var(--spacing)}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.block{display:block}.hidden{display:none}.table{display:table}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}}:root{--ink:#25231f;--muted:#746f66;--line:#ded9cf;--surface:#fff;--surface-soft:#f7f5f0;--canvas:#eeece7;--accent:#b7442f;--accent-deep:#8f2f20;--accent-soft:#f8e9e4;--gold:#b78a3d;--danger:#a32c24}*{box-sizing:border-box}html{background:var(--canvas)}body{color:var(--ink);background:var(--canvas);font-family:var(--font-geist-sans), Arial, sans-serif;margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh}.topbar{z-index:20;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#fffffff0;justify-content:space-between;align-items:center;gap:18px;min-height:68px;padding:12px 24px;display:flex;position:sticky;top:0}.brand{align-items:center;gap:11px;display:flex}.brand-mark{color:#fff;background:var(--accent);border-radius:8px;place-items:center;width:34px;height:34px;font-family:Georgia,serif;font-size:18px;font-weight:700;display:grid}.brand-copy{gap:1px;display:grid}.brand-copy strong{font-size:15px}.brand-copy span,.save-state,.eyebrow,.subtle{color:var(--muted);font-size:12px}.toolbar,.segmented,.preview-tools,.section-heading,.field-row,.ability-grid,.status-line{align-items:center;display:flex}.toolbar,.preview-tools{flex-wrap:wrap;gap:8px}.button,.icon-button,.segment{min-height:36px;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:7px;padding:0 13px;font-weight:600;transition:background-color .12s,border-color .12s,color .12s,transform 80ms,opacity .12s}.button:hover,.segment:hover{background:var(--surface-soft)}.button.primary,.segment.active{color:#fff;background:var(--accent);border-color:var(--accent)}.button.primary:hover{background:var(--accent-deep)}.button:active,.icon-button:active,.segment:active{transform:translateY(1px)}.button:disabled,.icon-button:disabled{cursor:wait;opacity:.62}.toast{z-index:60;color:#fff;background:#2f6e4f;border:1px solid #ffffff38;border-radius:8px;align-items:center;gap:8px;min-height:40px;padding:0 14px;font-size:13px;font-weight:600;animation:.16s ease-out toast-in;display:flex;position:fixed;bottom:24px;right:24px;box-shadow:0 8px 24px #0003}.toast-check{color:#2f6e4f;background:#fff;border-radius:999px;place-items:center;width:18px;height:18px;font-size:12px;display:grid}@keyframes toast-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.button.small{min-height:30px;padding:0 10px;font-size:12px}.button.ghost{color:var(--muted);background:0 0}.workspace-controls{background:var(--surface-soft);border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;padding:12px 24px;display:flex}.segmented{background:#e9e6df;border-radius:9px;gap:3px;padding:3px}.segment{background:0 0;border-color:#0000;min-height:31px;padding:0 12px;font-size:12px}.workspace{grid-template-columns:minmax(390px,.92fr) minmax(480px,1.08fr);min-height:calc(100vh - 126px);display:grid}.editor-pane,.preview-pane{min-width:0;padding:22px 24px 40px}.editor-pane{background:var(--surface);border-right:1px solid var(--line)}.preview-pane{background:var(--canvas)}.pane-title{margin:0 0 4px;font-family:Georgia,serif;font-size:22px}.pane-intro{color:var(--muted);margin:0 0 22px;font-size:13px}.form-stack{gap:18px;display:grid}.picker-stack{gap:15px;display:grid}.pick-field{gap:7px;display:grid}.chips{flex-wrap:wrap;gap:6px;display:flex}.chip{color:#653329;background:var(--accent-soft);border:1px solid #e9bdb4;border-radius:999px;align-items:center;gap:5px;min-height:27px;padding:3px 5px 3px 9px;font-size:12px;font-weight:600;display:inline-flex}.chip button{color:#7a5149;background:0 0;border:0;border-radius:999px;place-items:center;width:19px;height:19px;padding:0;line-height:1;display:grid}.chip button:hover{color:#fff;background:var(--accent)}.picker-row{grid-template-columns:minmax(180px,.8fr) minmax(180px,1fr) auto;gap:8px;display:grid}.picker-row select,.picker-row input{width:100%;min-width:0;height:38px;color:var(--ink);background:#fff;border:1px solid #cbc5ba;border-radius:7px;padding:0 10px}.picker-row select:focus,.picker-row input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);outline:0}.picker-row .button:disabled{cursor:not-allowed;opacity:.5}.form-section{border-top:1px solid var(--line);gap:12px;padding-top:17px;display:grid}.form-section:first-child{border-top:0;padding-top:0}.section-heading{justify-content:space-between;gap:12px}.section-heading h2{margin:0;font-size:14px}.section-heading h2,.section-heading h3,.preview-header h2,.pane-title{color:var(--ink)}.field-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.field-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field{gap:6px;min-width:0;display:grid}.field.full{grid-column:1/-1}.field label,.field-label{color:#4b4740;font-size:12px;font-weight:650}.field input,.field select,.field textarea,.yaml-editor{width:100%;color:var(--ink);background:#fff;border:1px solid #cbc5ba;border-radius:7px;outline:0}.field input,.field select{height:39px;padding:0 10px}.field textarea{resize:vertical;min-height:88px;padding:10px;line-height:1.45}.field input:focus,.field select:focus,.field textarea:focus,.yaml-editor:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.ability-grid{align-items:stretch;gap:8px}.ability-field{text-align:center;flex:1;gap:5px;min-width:0;display:grid}.ability-field label{font-size:11px;font-weight:700}.ability-field input{text-align:center;border:1px solid #cbc5ba;border-radius:6px;width:100%;height:37px}.ability-field span{color:var(--muted);font-size:11px}.repeatable{gap:9px;display:grid}.repeatable-row{grid-template-columns:minmax(120px,.38fr) minmax(180px,1fr) 34px;align-items:start;gap:8px;display:grid}.repeatable-row input,.repeatable-row textarea{border:1px solid #cbc5ba;border-radius:7px;width:100%}.repeatable-row input{height:39px;padding:0 10px}.repeatable-row textarea{resize:vertical;min-height:64px;padding:9px 10px;line-height:1.4}.icon-button{width:34px;min-height:34px;color:var(--muted);background:0 0;place-items:center;padding:0;display:grid}.icon-button:hover{color:var(--danger);background:#fff1ef;border-color:#e5b4ad}.icon-button:disabled{cursor:not-allowed;opacity:.42}.icon-button:disabled:hover{color:var(--muted);border-color:var(--line);background:0 0}.history-button{color:var(--ink);background:var(--surface);font-size:18px;font-weight:700}.yaml-wrap{gap:10px;display:grid}.yaml-editor{resize:vertical;min-height:620px;font-family:var(--font-geist-mono), monospace;tab-size:2;padding:14px;font-size:12px;line-height:1.55}.error-banner{color:#72221b;background:#fff0ed;border:1px solid #efb7ae;border-radius:7px;padding:10px 12px;font-size:12px}.preview-header{justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:14px;display:flex}.preview-header h2{margin:0;font-size:14px}.status-line{color:var(--muted);gap:6px;margin-top:3px;font-size:12px}.status-dot{background:#5a9b69;border-radius:999px;width:7px;height:7px}.statblock{color:#2d251d;background:radial-gradient(circle at 8% 8%,#ae703d12,#0000 25%),#f6f0df;border-top:5px solid #b17834;border-bottom:5px solid #b17834;width:100%;max-width:920px;margin:0 auto;padding:24px 26px 28px;font-family:Georgia,Times New Roman,serif;position:relative;overflow:hidden;box-shadow:0 10px 30px #3b2e2229}.statblock.dark{color:#eeeae1;background:#2d2a24;border-color:#d1a452}.statblock-head{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:16px;display:grid}.statblock h1{color:#722c22;font-variant:small-caps;margin:0 0 3px;font-size:clamp(25px,3vw,38px);line-height:.98}.statblock.dark h1,.statblock.dark h2{color:#f0d1a1}.statblock-subtitle{margin:0;font-size:13px;font-style:italic}.portrait{object-fit:cover;border:3px solid #f6f0df;border-radius:999px;outline:2px solid #8c392a;width:74px;height:74px}.red-rule{background:linear-gradient(90deg,#9d3f31,#ce806b 55%,#0000);height:3px;margin:12px 0 9px}.statblock-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;display:grid}.statblock-column{min-width:0}.statblock-group{break-inside:avoid;margin-bottom:10px}.statblock p{margin:4px 0;font-size:14px;line-height:1.37}.statblock strong{font-weight:700}.statblock h2{color:#722c22;font-variant:small-caps;border-bottom:1px solid;margin:11px 0 5px;padding-bottom:2px;font-size:22px;font-weight:500;line-height:1}.statblock .ability-grid{justify-content:space-around;margin:5px 0}.statblock .ability{text-align:center;gap:2px;font-size:13px;display:grid}.statblock .ability strong{font-size:12px}.markdown a{color:inherit;text-decoration:underline}.empty-state{color:var(--muted);background:var(--surface-soft);text-align:center;border:1px dashed #c7c0b4;border-radius:7px;padding:12px;font-size:12px}.hidden-input{display:none}.site-dark{--ink:#eeeae3;--muted:#aaa49a;--line:#45413b;--surface:#252422;--surface-soft:#302e2a;--canvas:#191a1c;--accent:#cb624e;--accent-deep:#b64c39;--accent-soft:#4c2d28;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}.site-dark .topbar{background:#252422f2}.site-dark input,.site-dark select,.site-dark textarea,.site-dark .button{color:var(--ink);background:#302e2a;border-color:#514c44}.site-dark .segment{background:0 0}.site-dark .segment.active,.site-dark .button.primary{background:var(--accent)}.site-dark .field label,.site-dark .field-label{color:#d3cec5}.site-dark .segmented{background:#1d1c1a}.site-dark .brand-copy strong,.site-dark .section-heading h2,.site-dark .section-heading h3,.site-dark .preview-header h2,.site-dark .pane-title,.site-dark .form-group>summary strong{color:var(--ink)}.site-dark .brand-copy span,.site-dark .save-state,.site-dark .eyebrow,.site-dark .subtle,.site-dark .status-line,.site-dark .form-group>summary>span:last-child,.site-dark .section-nav button{color:var(--muted)}.creature-switcher,.control-cluster,.section-nav,.collapse-actions,.quick-buttons,.entry-actions,.spell-picker,.drawer-actions{flex-wrap:wrap;align-items:center;gap:7px;display:flex}.creature-switcher select,.search-input{min-width:180px;height:36px;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:7px;padding:0 10px}.section-nav{justify-content:center}.section-nav button{color:var(--muted);background:0 0;border:0;padding:3px 5px;font-size:11px}.section-nav button:hover{color:var(--accent)}.workspace{height:calc(100dvh - 126px);min-height:520px;overflow:hidden}.editor-pane,.preview-pane{height:100%;overflow-y:auto}.form-group{background:var(--surface);border:1px solid var(--line);border-radius:9px;scroll-margin-top:18px}.form-group>summary{cursor:pointer;align-items:center;gap:9px;padding:13px 15px;font-size:14px;font-weight:750;list-style:none;display:flex}.form-group>summary::-webkit-details-marker{display:none}.form-group>summary>span:last-child{min-width:0;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:450;overflow:hidden}.chevron{flex:0 0 20px;place-items:center;width:20px;display:grid}.chevron:before{content:"▶";color:var(--muted);font-size:15px;line-height:1;transition:transform .15s;display:inline-block}.form-group[open] .chevron:before{transform:rotate(90deg)}.form-group-content{gap:16px;padding:3px 15px 17px;display:grid}.builder,.repeatable-editor,.spellcasting-editor,.spell-groups{gap:10px;display:grid}.builder-row{grid-template-columns:minmax(130px,.65fr) minmax(90px,.45fr) minmax(100px,.7fr) auto;gap:8px;display:grid}.speed-row{grid-template-columns:minmax(150px,1fr) 34px 34px 34px}.builder-row input,.builder-row select,.modifier-row input,.modifier-row select,.entry-editor input,.entry-editor textarea,.spell-group input,.spell-group textarea{width:100%;min-width:0;color:var(--ink);background:var(--surface);border:1px solid #cbc5ba;border-radius:7px;padding:0 10px}.builder-row input,.builder-row select,.modifier-row input,.modifier-row select,.entry-editor input,.spell-group input{height:38px}.modifier-row{grid-template-columns:minmax(150px,1fr) 90px 90px auto;align-items:center;gap:8px;display:grid}.entry-editor,.spell-group{background:var(--surface-soft);border:1px solid var(--line);border-radius:8px;padding:11px}.entry-editor summary{color:var(--ink);cursor:pointer;font-size:13px;font-weight:700}.entry-body{grid-template-columns:minmax(130px,.4fr) minmax(200px,1fr);gap:9px;margin-top:10px;display:grid}.entry-body textarea,.spell-group textarea{resize:vertical;min-height:82px;padding-top:9px}.entry-actions{grid-column:1/-1}.button.danger{color:var(--danger)}.divider{background:var(--line);height:1px;margin:4px 0}.spell-group-head{grid-template-columns:minmax(120px,.55fr) minmax(180px,1fr) auto;gap:8px;display:grid}.preview-scroll{min-width:100%;overflow:auto}.preview-scale{transform-origin:0 0}.drawer-backdrop{z-index:50;background:#00000073;position:fixed;inset:0}.bestiary-drawer{width:min(520px,92vw);height:100%;color:var(--ink);background:var(--surface);padding:22px;position:absolute;top:0;right:0;overflow-y:auto;box-shadow:-16px 0 40px #0000003d}.drawer-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.creature-list{gap:8px;margin:16px 0;display:grid}.creature-row{background:var(--surface-soft);border:1px solid var(--line);border-radius:8px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;display:grid}.creature-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.export-render{width:900px;position:fixed;top:0;left:-10000px}.export-render .statblock{width:920px;max-width:none;margin:0;transform:none}.site-dark .builder-row input,.site-dark .builder-row select,.site-dark .modifier-row input,.site-dark .modifier-row select,.site-dark .entry-editor input,.site-dark .entry-editor textarea,.site-dark .spell-group input,.site-dark .spell-group textarea,.site-dark .creature-switcher select,.site-dark .search-input{color:var(--ink);background:#302e2a;border-color:#5b554c}.site-dark .entry-editor summary,.site-dark .spell-group-head input{color:var(--ink)}.site-dark .chip{color:#ffd9cf;background:#4c2d28;border-color:#805047}.site-dark .chip button{color:#efbbb0}.site-dark .icon-button:hover{color:#ffb2a5;background:#4b2925;border-color:#805047}.site-dark .error-banner{color:#ffc9bf;background:#4b2925;border-color:#805047}.site-dark .empty-state{border-color:#625d55}@media (width<=1050px){.workspace{grid-template-columns:minmax(340px,.9fr) minmax(400px,1.1fr)}.statblock-grid{grid-template-columns:1fr}}@media (width<=820px){.topbar,.workspace-controls{flex-direction:column;align-items:flex-start;position:static}.workspace{grid-template-columns:1fr;height:auto;min-height:0;overflow:visible}.editor-pane,.preview-pane{height:auto;overflow:visible}.editor-pane{border-right:0;border-bottom:1px solid var(--line)}}@media (width<=560px){.topbar,.workspace-controls,.editor-pane,.preview-pane{padding-left:14px;padding-right:14px}.field-grid,.field-grid.three{grid-template-columns:1fr}.picker-row{grid-template-columns:1fr auto}.picker-row select{grid-column:1/-1}.ability-grid{grid-template-columns:repeat(3,1fr);display:grid}.repeatable-row{grid-template-columns:1fr 34px}.repeatable-row textarea{grid-area:2/1/auto/-1}.builder-row,.modifier-row,.entry-body,.spell-group-head{grid-template-columns:1fr}.preview-header{flex-direction:column;align-items:flex-start}.statblock{padding:18px}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}
