:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;justify-content:center;align-items:center;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}:root{--bg: #f4f4f4;--text: #1a1a1a}@media (prefers-color-scheme: dark){:root{--bg: #1a1a1a;--text: #f4f4f4}}.popover-help-popover{background:#222;color:#fff;position:absolute;left:110%;top:50%;transform:translateY(-50%);z-index:100;padding:.75em 1em;border-radius:8px;box-shadow:0 2px 8px #0000004d;min-width:200px;max-width:300px;font-size:.95em;white-space:normal}@media (max-width: 530px){.popover-help-popover{left:0!important;top:120%!important;transform:none!important;min-width:150px!important;width:45vw!important;max-width:95vw!important;white-space:normal!important;box-sizing:border-box!important;font-size:.85em}}@media (max-width: 450px){.popover-help-popover{left:0!important;top:120%!important;transform:none!important;min-width:150px!important;width:41vw!important;max-width:95vw!important;white-space:normal!important;box-sizing:border-box!important;font-size:.85em}}@media (max-width: 382px){.popover-help-popover{left:0!important;top:120%!important;transform:none!important;min-width:200px!important;width:58vw!important;max-width:95vw!important;white-space:normal!important;box-sizing:border-box!important;font-size:.85em}}body{background:#222;color:#eee;font-family:sans-serif;margin:1;padding:0 .5rem}.app-container{min-height:100vh;padding:0;margin:0}.inner-container{width:100%;max-width:500px;margin:0 auto;padding:0}h1{font-size:2rem;margin-bottom:1rem;margin-top:.5rem;text-align:center}.form-row{display:flex;gap:.5rem;margin-bottom:0;align-items:flex-end}.form-row>label{flex:1 1 0;min-width:0}.client-row{gap:.5rem}.field-heading{white-space:nowrap}@media (max-width: 325px){.form-row{flex-direction:column;gap:.5rem;align-items:stretch}.client-row{flex-direction:row;align-items:flex-end}}:root{--dropdown-bg: #fff;--dropdown-border: #ddd;--dropdown-color: #111}body.theme-dark,[data-theme=dark]{--dropdown-bg: #181818;--dropdown-border: #444;--dropdown-color: #eee}.autocomplete-suggestions{position:absolute;z-index:10;background:var(--dropdown-bg);color:var(--dropdown-color);border:1px solid var(--dropdown-border);width:100%;max-height:120px;overflow-y:auto;list-style:none;margin:0;padding:0}.autocomplete-suggestions li{padding:.25rem .5rem;cursor:pointer}.autocomplete-suggestions li:hover{background:var(--dropdown-border)}.autocomplete-suggestions li.active{background:#444!important;color:#fff!important}.instructions-container{margin-bottom:0;background:var(--card-background);color:var(--card-foreground);border-radius:6px;padding:0;transition:background .3s,color .3s}.instructions-toggle{background:var(--background);color:var(--foreground);border:none;padding:.5em 1em;font-weight:700;border-radius:4px;cursor:pointer;margin-bottom:.5em;transition:background .3s,color .3s}.instructions-content{margin-top:.5em}.instruction-section{border-top:1px solid #555;padding:.6rem 0}.instruction-section summary{cursor:pointer;font-weight:600}.instruction-section li{margin-bottom:.5rem}form.form-card{background:#262626;padding:1.25rem;border-radius:1rem;box-shadow:0 1px 8px #00000026;display:flex;flex-direction:column;gap:.18rem}.form-section{display:grid;gap:4px;min-width:0;margin:0;padding:.3rem .6rem .6rem;border:1px solid #555;border-radius:.85rem}.form-section legend{padding:0 .35rem;font-size:.9rem;color:#ccc}.form-section+.form-section{margin-top:.45rem}.form-card label{display:block;margin-bottom:0}.form-card input[type=text],.form-card input[type=number],.form-card input[type=date],.form-card select,.form-card textarea{width:100%;padding:.5rem;border-radius:.5rem;border:1px solid #444;background:#181818;color:#eee;font-size:1rem;box-sizing:border-box}.form-card input[type=text],.form-card input[type=number],.form-card input[type=date],.form-card select{display:block;height:38px;min-width:0;line-height:1.25}.form-card textarea{min-height:60px;resize:vertical}.form-card .checkbox-row{display:flex;align-items:center}.form-card input[type=checkbox]{margin-right:.5rem;width:1em;height:1em}.form-card button[type=submit]{width:100%;padding:1rem;background:#111;color:#fff;border-radius:.5rem;border:none;font-size:1.1rem;font-weight:700;margin-top:.5rem;cursor:pointer}.copied-toast{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#222;color:#fff;padding:1rem 2rem;border-radius:.5rem;box-shadow:0 0 10px #0000004d;z-index:999;font-size:1.2rem}.output-pre{white-space:pre-wrap;background-color:#181818;color:#eee;padding:1rem;margin:1.5rem 0 0;border-radius:.7rem;font-family:monospace;border:1px solid #444;font-size:1rem;overflow-x:auto}.app-container label:has(>input[type=checkbox]){display:inline-flex;align-items:center;line-height:1.25}.app-container label>input[type=checkbox]{font-size:inherit;margin:0 4px 0 0;transform:translateY(-1px);flex-shrink:0}.output-controls{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:1rem}.output-controls button{background:#333;color:#eee;border:1px solid #666;border-radius:.4rem;padding:.4rem .6rem;cursor:pointer}.output-controls button[aria-pressed=true]{border-color:#9dc6ef;background:#384b5e}.output-controls button:last-child:not([aria-pressed]){margin-left:auto}.output-section .output-pre{margin-top:.4rem;overflow-wrap:anywhere}.sheet-preview{margin-top:.4rem;border:1px solid #444;border-radius:.4rem;overflow:hidden}.sheet-preview-pair{display:grid;grid-template-columns:minmax(7rem,40%) minmax(0,1fr);border-top:1px solid #444}.sheet-preview-pair:first-child{border-top:0}.sheet-preview-label,.sheet-preview-value{padding:.4rem .6rem;overflow-wrap:anywhere}.sheet-preview-label{background:#303030;font-weight:600}.sheet-preview-value{background:#181818}.sheet-layout-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem;margin:.6rem 0}.sheet-layout-actions button,.sheet-layout-move button{background:#333;color:#eee;border:1px solid #666;border-radius:.4rem;padding:.35rem .55rem;cursor:pointer}.sheet-layout-actions button:disabled,.sheet-layout-move button:disabled{opacity:.45;cursor:default}.sheet-layout-editor{border:1px solid #555;border-radius:.4rem;margin:.5rem 0}.sheet-layout-column{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:end;gap:.5rem;padding:.5rem;border-top:1px solid #555}.sheet-layout-column:first-child{border-top:0}.sheet-layout-toggle{display:flex;align-items:center;gap:.25rem;padding-bottom:.35rem;white-space:nowrap}.sheet-layout-flags{align-self:center}.sheet-layout-name{min-width:0}.sheet-layout-name input{box-sizing:border-box;width:100%}.sheet-layout-blank{align-self:center;overflow-wrap:anywhere}.sheet-layout-move{display:flex;gap:.2rem;padding-bottom:.1rem}.sheet-layout-notice{margin:.25rem 0;font-size:.9rem;overflow-wrap:anywhere}.sheet-template-row,.sheet-template-new{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:end;gap:.4rem;margin-top:.6rem}.sheet-template-row label,.sheet-template-new label{min-width:0}.sheet-template-row select,.sheet-template-new input{box-sizing:border-box;width:100%;padding:.4rem;border:1px solid #555;border-radius:.4rem;background:#181818;color:#eee}.sheet-template-row button,.sheet-template-new button{padding:.4rem .6rem;border:1px solid #666;border-radius:.4rem;background:#333;color:#eee}.sheet-template-row button:disabled{opacity:.45}.sheet-template-new{grid-template-columns:minmax(0,1fr) auto}.header-container{position:relative;width:100%;display:flex;justify-content:center;align-items:center}.header-container h1{margin:0;padding-top:1rem;width:100%;text-align:center;padding-left:1rem;padding-right:1rem}.return-btn{display:inline-flex;align-items:center;background:#111;color:#fff;border-radius:.5rem;border:none;font-size:.95rem;font-weight:700;cursor:pointer;box-shadow:0 1px 5px #0000001f;margin:.5em 0 0;text-decoration:none;overflow:hidden;transition:width .25s cubic-bezier(.4,0,.2,1),padding .25s cubic-bezier(.4,0,.2,1);width:.5em;padding:.2em .4em;white-space:nowrap;position:absolute;left:0;top:50%;transform:translateY(-50%)}.return-btn .arrow,.return-btn .return-text{opacity:0;width:0;margin:0;transition:opacity .2s,width .2s,margin .2s;overflow:hidden;display:inline-flex}.return-btn:hover,.return-btn:focus{width:7em;padding:.2em 1em}.return-btn:hover .arrow,.return-btn:focus .arrow,.return-btn:hover .return-text,.return-btn:focus .return-text{opacity:1;width:auto;margin-left:.5em}.return-btn .dots{opacity:1;transition:opacity .2s;font-size:1.2em;line-height:1;margin-right:.1em}.return-btn:hover .dots,.return-btn:focus .dots{opacity:0}.return-btn.expanded{width:11.5em;padding:.2em 1em}.return-btn.expanded .arrow,.return-btn.expanded .return-text{opacity:1;width:auto;margin-left:.5em}.return-btn.expanded .dots{opacity:0}footer{margin-top:2rem;text-align:center;font-size:.875rem;padding-top:1rem}footer a{color:#888;text-decoration:none;transition:color .25s}footer a:hover{color:#646cff;text-decoration:underline}.paizo-notice{margin-top:1.5rem;font-size:.75rem;color:#666;line-height:1.6;max-width:800px;margin-left:auto;margin-right:auto}.paizo-notice a{color:#666}.paizo-notice a:hover{color:#888}.item-options-row{display:flex;flex-wrap:wrap;align-items:center;gap:4px .5rem}.rune-options-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:.5rem;min-height:28px}.rune-options-row label{white-space:nowrap}.form-card .rune-transfer-select{display:flex;align-items:center;gap:.4rem;min-width:0}.form-card .rune-options-row select{height:28px;padding:.15rem .4rem}.form-card .rune-transfer-select select{flex:1;min-width:0}.rune-options-row .upgrade-price{display:block}.item-options-row,.upgrade-heading,.form-card .formula-checkbox{min-height:28px;align-items:center}.character-saves{min-width:0;position:relative}.character-save-buttons{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.form-card .character-save-buttons button,.form-card .character-picker-actions button{min-height:44px;padding:4px 2px;margin:0;font-size:.8rem;background:#333;color:#eee;border:1px solid #777;border-radius:5px;cursor:pointer}.character-save-note{font-size:.85rem;overflow-wrap:anywhere;margin:0 0 .3rem}.form-card .character-save-buttons button,.form-card .character-picker-actions button{min-height:26px;padding:2px;line-height:1.2}.character-save-note:empty{display:none}.character-picker{min-width:0;padding:4px 0}.form-card .character-picker select{width:100%;min-width:0;min-height:26px;padding:2px 4px}.character-picker-actions{display:flex;gap:8px}.character-picker-actions button{flex:1}.character-saves button:focus-visible{outline:2px solid #8dc8ff;outline-offset:2px}body{box-sizing:border-box}.minimum-cost-estimate{margin:0 0 .35rem;font-size:.8rem;color:#ccc;overflow-wrap:anywhere}.upgrade-heading{display:flex;align-items:center;flex-wrap:wrap;gap:0 .5rem}.form-card .upgrade-heading label{margin-bottom:0;white-space:nowrap}.upgrade-price{color:#ccc;font-size:.72rem;white-space:nowrap}.crafting-columns,.crafting-options-row{display:grid;grid-template-columns:minmax(0,1.5fr) repeat(2,minmax(0,1fr));gap:.5rem}.crafting-options-row{align-items:center}.form-card .crafting-options-row label{display:inline-flex;align-items:center;margin-bottom:0;white-space:nowrap;line-height:1.25}.form-card .crafting-options-row input[type=checkbox]{margin:0 4px 0 0;flex-shrink:0}.form-card .crafting-options-row .natural-roll-control{display:inline-flex;align-items:center;gap:.3rem;min-width:0}.form-card .natural-roll-control select{flex:1;width:0;height:28px;padding:.25rem}@media (max-width: 480px){.form-card input[type=date]::-webkit-calendar-picker-indicator{display:none}.form-card .crafting-options-row .natural-roll-control{gap:.2rem}.form-card .natural-roll-control select{padding:.15rem}}@media (max-width: 380px){.rune-options-row{font-size:.8rem}.form-card .rune-transfer-select select,.form-card .natural-roll-control select,.form-card .natural-roll-control option{font-size:inherit}.app-container label:has(>input[type=checkbox]){font-size:.8rem}.app-container input[type=checkbox]{width:1em;height:1em;font-size:inherit}.crafting-options-row{row-gap:.25rem;font-size:.8rem}.form-card .crafting-options-row input[type=checkbox]{width:1em;height:1em}.form-card .crafting-options-row .natural-roll-control{gap:.2rem}.form-card .natural-roll-control select{padding:.15rem}}@media (max-width: 325px){.crafting-columns,.crafting-options-row{grid-template-columns:1fr}}
