.create-header{flex-direction:column;align-items:center;gap:12px;display:flex}.create-intro-copy,.create-instructions{width:min(100%,1000px);line-height:1.55}.create-form{width:100%;min-width:0;margin-top:32px}.background-display{width:100%}.form{--content-width:min(1440px, 100%);--content-height:min(700px, 80vh);width:var(--content-width);flex-direction:column;align-items:center;margin:0 auto;display:flex}.create-instructions{margin:0 auto 12px}.create-overview{box-sizing:border-box;border:1px solid var(--border-strong);background:linear-gradient(135deg,#75cfff17,#ffffff05);border-radius:10px;grid-template-columns:minmax(240px,.8fr) minmax(0,1.2fr);align-items:center;gap:24px;width:min(1440px,100%);margin:24px auto 0;padding:clamp(18px,2.5vw,28px);display:grid}.create-overview h3,.create-overview p{margin:0}.create-overview h3{margin:4px 0 8px}.create-overview>div>p:last-child,.create-eyebrow,.section-description,.spell-slots-section>p,.background-group>p{color:var(--text-muted)}.create-eyebrow{letter-spacing:.12em;text-transform:uppercase;font-size:.78rem;font-weight:800}.create-section-nav{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:9px;display:grid}.create-section-nav a{border:1px solid var(--border);background:var(--field-bg);min-height:42px;color:var(--text);text-align:center;border-radius:7px;place-items:center;padding:6px 10px;text-decoration:none;display:grid}.create-section-nav a:hover,.create-section-nav a:focus-visible{border-color:var(--accent);background:var(--accent-bg-strong)}.create-id-lookup{box-sizing:border-box;border:1px solid var(--border);background:#ffffff05;border-radius:8px;grid-template-columns:minmax(220px,1fr) minmax(360px,1.2fr);align-items:end;gap:24px;width:100%;margin-top:24px;padding:20px;display:grid}.create-id-lookup h3,.create-id-lookup p{margin:0}.create-id-lookup h3{margin:4px 0 6px}.create-id-lookup>div>p:last-child{color:var(--text-muted)}.create-id-lookup-controls{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px 12px;display:grid}.create-id-lookup-controls label{grid-column:1/-1;font-weight:700}.create-id-lookup-controls .button{min-width:120px;height:40px}.top-form-row{grid-template-columns:minmax(420px,1.05fr) minmax(340px,.95fr);align-items:stretch;gap:32px;width:100%;display:grid}.character-form-grid,.create-appearance{box-sizing:border-box;border:1px solid var(--border);background:#ffffff05;border-radius:8px;min-width:0;margin-top:24px;padding:28px}.character-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:14px;display:grid}.character-form-grid label{text-align:right;white-space:nowrap;align-self:center}.character-form-grid .core-field{min-width:0;color:var(--text-muted);text-align:left;white-space:normal;align-content:start;align-self:stretch;gap:6px;font-size:.78rem;font-weight:800;display:grid}.character-form-grid .core-field>span:first-child{min-height:1.15rem}.form .form-select,.form .form-input{box-sizing:border-box;border:1px solid var(--border);background:var(--field-bg);width:100%;min-width:0;height:40px;color:var(--text);font:inherit;border-radius:7px;margin:0;padding:8px 10px}.character-form-heading{border-bottom:1px solid var(--border);grid-column:1/-1;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 14px;padding-bottom:16px;display:grid}.character-form-heading h3,.character-form-heading p,.character-form-heading small{margin:0}.character-form-heading p,.character-form-heading h3,.character-form-heading small{grid-column:1}.character-form-heading small{color:var(--text-muted)}.ability-roll-button{border:1px solid var(--accent);background:var(--accent-bg-strong);min-height:42px;color:var(--text);cursor:pointer;border-radius:6px;grid-area:1/2/4;padding:8px 12px}.ability-roll-button:disabled{cursor:not-allowed;opacity:.55}.ability-roll-button.is-rolled{border-color:var(--border-strong);color:var(--text-muted);background:#15181c;box-shadow:inset 0 2px 5px #00000080}.ability-input-row{grid-template-columns:minmax(0,1fr) 48px;align-items:center;gap:8px;min-width:0;display:grid}.ability-input-row output{border:1px solid var(--border-strong);background:var(--accent-bg-strong);min-height:38px;color:var(--text-heading);border-radius:7px;place-items:center;font-weight:800;display:grid}.form input[type=number]{appearance:textfield}.form input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.form input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.form .form-select:focus,.form .form-input:focus,.form textarea:focus{border-color:var(--border-strong);outline:2px solid var(--accent);outline-offset:1px}.form textarea{border:1px solid var(--border);background:var(--field-bg);color:var(--text);font:inherit}.form input::placeholder,.form textarea::placeholder{color:var(--text-muted);opacity:.85}.create-appearance{grid-template-rows:auto minmax(420px,1fr) auto auto;align-items:stretch;gap:12px;display:grid}.create-appearance p{text-align:center;width:90%;margin-bottom:16px}.appearance-display{border:1px solid var(--border);border-radius:8px;justify-content:center;align-items:center;width:100%;height:100%;min-height:420px;display:flex;overflow:hidden}.create-character-image{object-fit:cover;width:100%;height:100%}.placeholder-image{color:var(--text);text-align:center;padding:12px}.appearance-input{box-sizing:border-box;resize:none;border-radius:7px;width:100%;min-height:100px;margin-top:0;padding:10px 12px}.appearance-file-actions{box-sizing:border-box;align-items:center;gap:12px;width:100%;padding:0;display:flex}.appearance-file{flex:auto;min-width:0}.form .appearance-remove-button{flex:none;width:auto;min-width:150px;height:40px}.create-form-actions .button{border-radius:6px;align-self:center;width:200px;height:40px;font-size:medium}.form .button:hover{background-color:var(--button-hover-bg)}.form .button:active{border:1px solid var(--border-strong);background-color:var(--accent-bg-strong)}.background-group,.locations-section,.spell-slots-section,.inventory-section,.entry-list-section{border:1px solid var(--border);background:#ffffff05;border-radius:8px;width:100%;margin-top:32px;scroll-margin-top:24px}.top-form-row,.list-attr-group,.name-description-sections{scroll-margin-top:24px}.background-group h3,.background-group>p,.spell-slots-section>h3,.spell-slots-section>p,.locations-section>h3,.locations-section>.section-description{margin-inline:20px}.background-group h3,.spell-slots-section>h3,.locations-section>h3{margin-bottom:6px}.background-group>p,.spell-slots-section>p,.locations-section>.section-description{margin-top:0}.background-input{box-sizing:border-box;resize:none;border-radius:7px;width:95%;min-height:130px;margin:20px auto;padding:10px 12px;display:block}.list-attr-group{grid-template-columns:repeat(3,minmax(0,1fr));align-items:flex-start;gap:24px;width:100%;margin-top:32px;display:grid}.spell-slots-section,.inventory-section,.entry-list-section{box-sizing:border-box;padding:20px}.spell-slot-grid{grid-template-columns:repeat(3,minmax(150px,1fr));gap:12px;display:grid}.spell-slot-heading{justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:18px;display:flex}.spell-slot-heading h3,.spell-slot-heading p{margin:0}.spell-slot-heading>p{color:var(--text-muted);text-align:right;font-size:.84rem}.spell-slot-control{border:1px solid var(--border);background:var(--field-bg);border-radius:8px;gap:10px;min-width:0;padding:12px;display:grid}.spell-slot-control label,.inventory-editor label{flex-direction:column;gap:6px;display:flex}.spell-slot-control label span{color:var(--text-heading);font-weight:800}.spell-slot-control label small{color:var(--text-muted)}.spell-slot-control>div{grid-template-columns:38px minmax(52px,1fr) 38px;gap:7px;display:grid}.spell-slot-control button{border:1px solid var(--border-strong);background:var(--accent-bg-strong);min-width:0;color:var(--text-heading);font:inherit;cursor:pointer;border-radius:6px;padding:0;font-size:1.15rem;font-weight:800}.spell-slot-control button:disabled{cursor:not-allowed;opacity:.45}.spell-slot-control .form-input{text-align:center;font-weight:800}.inventory-heading{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:flex-start;gap:20px;margin-bottom:18px;display:grid}.inventory-heading h3,.inventory-heading p{margin:0}.inventory-heading p,.inventory-heading>span{color:var(--text-muted)}.record-copy-lookup{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:6px 8px;width:min(100%,420px);display:grid}.record-copy-lookup label{color:var(--text-muted);grid-column:1/-1;font-size:.78rem;font-weight:700}.record-copy-lookup .button{width:auto;min-width:72px;height:40px;padding-inline:12px}.inventory-copy-lookup{margin:0 0 18px auto}.inventory-heading>span{flex:none;grid-column:3;justify-self:end}.inventory-editor{border:1px solid var(--border);background:var(--field-bg);border-radius:7px;grid-template-columns:minmax(0,1fr) 190px;align-items:stretch;gap:20px;min-width:0;padding:18px;display:grid}.inventory-editor-main{align-content:start;gap:16px;min-width:0;display:grid}.inventory-identity-fields{grid-template-columns:minmax(0,1fr);gap:16px;display:grid}.inventory-type-input{grid-template-columns:40px minmax(0,1fr);align-items:center;gap:10px;display:grid}.item-type-marker{box-sizing:border-box;border:2px solid var(--accent);background:var(--accent-bg-strong);border-radius:2px;flex:0 0 16px;width:16px;height:16px;display:inline-block}.item-type-icon{width:40px;height:40px;color:var(--accent)}.inventory-type-input .item-type-marker{width:40px;height:40px}.inventory-modifiers{border:1px solid var(--border);border-radius:7px;min-width:0;margin:0;padding:14px}.inventory-modifiers legend{padding:0 6px;font-weight:700}.inventory-modifier-grid{grid-template-rows:repeat(3,minmax(0,1fr));grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.inventory-editor .inventory-modifier-cell{box-sizing:border-box;border:1px solid var(--border);background:#ffffff08;border-radius:7px;justify-content:center;align-items:center;gap:4px;min-width:0;padding:6px;font-weight:700;overflow:hidden}.form .inventory-modifier-cell .form-input{text-align:center;width:100%;min-width:0}.inventory-editor-actions{grid-template-columns:112px minmax(180px,240px);align-items:end;gap:16px;display:grid}.inventory-effectiveness-input{max-width:112px}.form .inventory-effectiveness-input .form-input{text-align:center;width:100%}.form .inventory-save-button{width:100%;min-height:44px}.inventory-editor-buttons{gap:8px;display:flex}.inventory-editor-buttons .inventory-save-button{flex:1}.inventory-cancel-button{min-height:44px}.inventory-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr));gap:14px;margin-top:20px;display:grid}.inventory-card{border:1px solid var(--border);border-radius:7px;min-width:0;padding:16px}.inventory-card-heading{min-width:0}.inventory-card-body{grid-template-columns:minmax(0,1fr) 142px;align-items:stretch;gap:16px;display:grid}.inventory-card h4{overflow-wrap:anywhere;margin:8px 0}.inventory-item-type{overflow-wrap:anywhere;align-items:center;gap:7px;margin:0 0 8px;display:flex}.inventory-item-type>span:last-child{min-width:0}.inventory-effectiveness{border:1px solid var(--border);width:fit-content;color:var(--text-muted);border-radius:999px;flex-direction:row;align-items:center;gap:6px;margin:0;padding:2px 6px;font-size:.68rem;line-height:1.2;display:inline-flex}.inventory-effectiveness span{color:var(--text-heading);font-size:.78rem;font-weight:700}.inventory-card-modifiers{border-left:1px solid var(--border);grid-template-rows:repeat(3,minmax(0,1fr));grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0;margin:0;padding-left:16px;display:grid}.inventory-card-modifiers div{box-sizing:border-box;border:1px solid var(--border);text-align:center;border-radius:5px;place-content:center;min-width:0;padding:5px 3px;display:grid}.inventory-card-modifiers dt{color:var(--text-muted);font-size:.78rem}.inventory-card-modifiers dd{text-align:center;margin:3px 0 0;font-weight:700}.inventory-card-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px;display:grid}.name-description-sections{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:24px;width:100%;margin-top:32px;display:grid}.name-description-sections>.entry-list-section{box-sizing:border-box;flex-direction:column;height:100%;margin-top:0;display:flex}.name-description-sections>.entry-list-section>p{color:var(--text-muted);margin:16px 0 0}.entry-list-heading{text-align:left;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:18px;display:flex}.entry-list-heading h3,.entry-list-heading p{margin:0}.entry-list-eyebrow{color:var(--text-muted);letter-spacing:.1em;text-transform:uppercase;font-size:.7rem;font-weight:800;margin-bottom:4px!important}.entry-list-heading>span,.entry-list-heading>div>p{color:var(--text-muted)}.entry-list-warning{color:var(--danger)!important;margin-top:6px!important}.entry-list-editor{border:1px solid var(--border-strong);background:var(--field-bg);text-align:left;border-radius:9px;grid-template-rows:auto auto;gap:14px;padding:14px;display:grid}.entry-primary-fields{grid-template-columns:minmax(150px,.7fr) minmax(0,1.3fr);align-items:stretch;gap:10px;min-height:64px;display:grid}.entry-list-status .entry-primary-fields{grid-template-columns:minmax(0,1fr)}.entry-primary-fields label{grid-template-rows:auto minmax(40px,1fr);gap:5px;font-size:.78rem;font-weight:700;display:grid}.entry-primary-fields label>span{color:var(--text-muted)}.entry-primary-fields textarea{box-sizing:border-box;border:1px solid var(--border);width:100%;height:100%;min-height:40px;color:var(--text);resize:vertical;background:#00000029;border-radius:7px;padding:10px}.entry-editor-footer{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;display:grid}.entry-list-add{align-self:end;width:72px;min-width:72px;height:38px;min-height:38px;padding:6px 10px}.entry-modifier-editor{border:1px solid var(--border);background:#0000001f;border-radius:7px;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;min-width:0;margin:0;padding:8px;display:grid}.entry-modifier-editor legend{color:var(--text-muted);padding:0 0 5px;font-size:.74rem;font-weight:700}.entry-modifier-editor label{text-align:left;background:#ffffff06;border:1px solid #ffffff12;border-radius:5px;grid-template-columns:minmax(28px,auto) minmax(44px,64px);justify-content:space-between;align-items:center;gap:6px;padding:4px 6px;font-size:.75rem;font-weight:700;display:grid}.entry-modifier-editor input{box-sizing:border-box;text-align:center;width:100%;min-width:0;height:34px;padding:5px 3px}.entry-modifier-list{flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}.entry-modifier-list span{border-radius:999px;padding:2px 7px;font-size:.75rem;font-weight:700}.entry-list-status .entry-modifier-list span,.entry-list-passive .entry-modifier-list span{color:#9bc6ff;background:#4e80c424}@media (width<=720px){.name-description-sections,.entry-primary-fields{grid-template-columns:1fr}.entry-editor-footer{grid-template-columns:1fr;align-items:stretch}.entry-modifier-editor{grid-template-columns:repeat(3,minmax(60px,1fr))}.entry-list-add{width:100%}}@media (width<=430px){.entry-modifier-editor{grid-template-columns:repeat(2,minmax(0,1fr))}}.entry-list-grid{box-sizing:border-box;align-content:start;gap:12px;width:100%;max-height:480px;margin-top:16px;padding:0;display:grid;overflow-y:auto}.entry-list-grid article{box-sizing:border-box;border:1px solid var(--border);background:var(--field-bg);text-align:left;border-radius:7px;grid-template-columns:minmax(0,1fr) auto;justify-self:stretch;align-items:center;gap:14px;width:100%;min-width:0;margin:0;padding:14px;display:grid}.entry-list-status .entry-list-card{border-left:3px solid #d89924}.entry-list-passive .entry-list-card{border-left:3px solid #65d997}.entry-list-grid h4{overflow-wrap:anywhere;margin:0 0 6px}.entry-list-grid p{overflow-wrap:anywhere}.entry-list-remove{align-items:center;gap:4px;min-height:40px;padding:7px 10px;display:inline-flex}.inventory-item-action{border:1px solid var(--border-strong);min-height:44px;color:var(--text);cursor:pointer;background:0 0;border-radius:6px;justify-content:center;align-items:center;gap:4px;padding:8px 12px;display:inline-flex}.inventory-card .remove-button:hover{border-color:var(--danger);background:var(--danger-bg)}.inventory-card .xicon{color:var(--danger)}.inventory-heading{justify-content:space-between;align-items:flex-start;display:flex}.inventory-heading>div{text-align:left;grid-column:auto}.inventory-heading>span{border:0;border-radius:0;grid-column:auto;padding:0}.inventory-editor{grid-template-columns:minmax(0,1fr) minmax(220px,300px);gap:18px;padding:clamp(16px,2vw,24px)}.inventory-identity-fields{grid-area:1/1/span 2;grid-template-columns:minmax(0,1fr);align-content:start}.inventory-identity-fields label,.inventory-card-heading,.inventory-heading,.inventory-saved-heading{text-align:left}.form .inventory-description-input{resize:vertical;height:auto;min-height:112px}.inventory-effectiveness-input{grid-area:2/2;width:100%;max-width:none}.inventory-modifiers{grid-area:1/2;padding:12px 14px 14px}.inventory-modifiers legend span{color:var(--text-muted);margin-left:5px;font-size:.72rem;font-weight:400}.inventory-modifier-grid{grid-template-rows:repeat(3,minmax(0,1fr));grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-editor .inventory-modifier-cell{padding:5px;font-size:.78rem}.form .inventory-modifier-cell .form-input{height:34px;padding:5px 6px}.inventory-editor-actions{grid-area:3/1/auto/-1;justify-content:flex-end;display:flex}.inventory-editor-buttons{width:auto}.form .inventory-save-button,.inventory-cancel-button{width:auto;min-width:132px;min-height:38px;padding:7px 14px}.inventory-saved-heading{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:16px;margin-top:26px;padding-bottom:10px;display:flex}.inventory-saved-heading h4{margin:0}.inventory-saved-heading span,.inventory-empty{color:var(--text-muted)}.inventory-empty{text-align:center;padding:24px}.inventory-list{box-sizing:border-box;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;max-height:1200px;padding:0;overflow-y:auto}.inventory-card{background:var(--field-bg)}.inventory-card-body{grid-template-columns:minmax(0,1fr) minmax(112px,142px);gap:14px;display:grid}.inventory-card-details{border-left:1px solid var(--border);align-content:start;gap:8px;padding-left:14px;display:grid}.inventory-card-heading h4{margin:10px 0 8px;font-size:1.05rem}.inventory-card-title{align-items:center;gap:8px;margin:10px 0 8px;display:flex}.inventory-card-title h4{min-width:0;margin:0}.copy-record-id{border:1px solid var(--border);width:30px;height:30px;color:var(--text-muted);cursor:pointer;background:0 0;border-radius:6px;flex:0 0 30px;place-items:center;padding:0;display:inline-grid}.copy-record-id:hover,.copy-record-id:focus-visible{border-color:var(--accent);color:var(--text-heading)}.copy-record-id svg{width:16px;height:16px}.inventory-card-icon{width:40px;height:40px}.inventory-item-type{color:var(--text-muted);margin:0;font-size:.8rem}.inventory-item-description{color:var(--text-muted);white-space:pre-wrap;margin:10px 0 0;font-size:.8rem;line-height:1.5}.inventory-card-modifiers{border-left:0;grid-template-rows:repeat(3,minmax(0,1fr));grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:0}.inventory-card-details .inventory-effectiveness{box-sizing:border-box;border-radius:5px;justify-content:space-between;width:100%}.inventory-card-modifiers div:not(.is-neutral){border-color:var(--border-strong)}.inventory-card-modifiers .is-neutral dd{color:var(--text-muted)}.inventory-card-modifiers dd.is-positive{color:#75cfff}.inventory-card-modifiers dd.is-negative{color:#ff8f8f}.locations-section{box-sizing:border-box;border:1px solid var(--border);background:#ffffff05;border-radius:8px;padding:20px}.section-copy-heading{justify-content:space-between;align-items:center;gap:20px;margin:0 0 18px;display:flex}.section-copy-heading h3,.section-copy-heading p{margin-inline:0}.section-copy-heading h3{text-align:left;margin-top:0}.record-name-with-copy{justify-content:flex-start;align-items:center;gap:8px;display:inline-flex}.location-editor{border:1px solid var(--border-strong);background:var(--field-bg);border-radius:8px;grid-template-columns:minmax(160px,.8fr) minmax(160px,.8fr) minmax(260px,1.4fr) auto;align-items:stretch;gap:10px;padding:14px;display:grid}.location-editor input,.location-editor textarea{box-sizing:border-box;border:1px solid var(--border);width:100%;min-width:0;min-height:48px;color:var(--text);font:inherit;text-align:left;background:#ffffff06;border-radius:7px;margin:0;padding:10px 12px}.location-editor textarea{resize:vertical;min-height:76px}.location-editor input::placeholder{text-align:center}.location-background-field{min-width:0;display:grid}.location-background-field>textarea,.location-background-field>span{grid-area:1/1}.location-background-field>span{z-index:2;color:var(--text-muted);opacity:.85;pointer-events:none;text-align:center;place-items:center;padding:10px 12px;display:grid}.location-add-button{min-width:124px;min-height:48px;color:var(--text);cursor:pointer;border:1px solid var(--border-strong);background-color:var(--button-bg);border-radius:6px;font-size:medium}.locations-empty{color:var(--text-muted);margin:18px 0 0}.location-card-list{box-sizing:border-box;grid-template-columns:minmax(0,1fr);gap:12px;width:100%;max-height:310px;margin-top:14px;padding:0;display:grid;overflow-y:auto}.location-card{box-sizing:border-box;border:1px solid var(--border);background:var(--field-bg);border-radius:8px;justify-self:stretch;gap:10px;width:100%;min-width:0;margin:0;padding:14px;display:grid}.location-card-heading{justify-content:space-between;align-items:center;gap:12px;min-width:0;display:flex}.location-card-heading strong{color:var(--text-heading);overflow-wrap:anywhere;font-size:1rem}.location-card-relation{max-width:min(42%,280px);color:var(--text-muted);overflow-wrap:anywhere;text-align:right;font-size:.8rem}.location-card-background{color:var(--text-muted);overflow-wrap:anywhere;margin:0;line-height:1.5}.location-card-actions{border-top:1px solid var(--border);justify-content:flex-end;gap:8px;padding-top:10px;display:flex}.locations-section .location-row-action{border:1px solid var(--border-strong);width:auto;min-width:88px;height:36px;color:var(--text);cursor:pointer;background:0 0;border-radius:6px;justify-content:center;align-items:center;gap:4px;padding:0 12px;display:inline-flex}.locations-section .remove-button:hover{border-color:var(--danger);background:var(--danger-bg)}.locations-section .edit-button:hover{border-color:var(--accent);background:var(--accent-bg-strong)}.locations-section .xicon{color:var(--danger)}.create-form-actions{z-index:20;box-sizing:border-box;border:1px solid var(--border-strong);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#0d0f12f0;border-radius:10px;flex-flow:wrap;justify-content:center;gap:20px;width:min(100%,720px);margin-top:32px;padding:14px;display:flex;position:sticky;bottom:12px;box-shadow:0 12px 28px #00000059}.create-form .error-message{color:var(--danger);text-align:center;margin:9px}.character-form-grid .error-message-grid{color:var(--danger);text-align:center;grid-column:1/-1;margin:5px}@media (width<=960px){.location-editor{grid-template-columns:repeat(2,minmax(0,1fr))}.location-background-field,.location-add-button{grid-column:1/-1}.top-form-row,.create-overview,.create-id-lookup{grid-template-columns:1fr}.character-form-grid,.create-appearance{width:100%;min-height:auto}.appearance-display{min-height:420px}.list-attr-group{grid-template-columns:repeat(2,minmax(0,1fr))}.name-description-sections{grid-template-columns:1fr}.spell-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-editor{grid-template-columns:1fr}.inventory-identity-fields,.inventory-modifiers,.inventory-effectiveness-input,.inventory-editor-actions{grid-area:auto/1}.inventory-identity-fields{grid-template-columns:minmax(0,1fr)}.inventory-modifier-grid{grid-template-rows:repeat(3,minmax(0,1fr));grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=640px){.location-editor,.location-card-list{grid-template-columns:1fr}.location-background-field,.location-add-button{grid-column:1}.location-card-heading{flex-direction:column;align-items:flex-start}.location-card-relation{text-align:left;max-width:100%}.location-card-actions{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.locations-section .location-row-action{width:100%;min-width:0}.create-overview,.create-id-lookup,.character-form-grid,.create-appearance,.spell-slots-section,.inventory-section,.entry-list-section{padding:16px}.create-section-nav,.create-id-lookup-controls{grid-template-columns:1fr}.create-id-lookup-controls label{grid-column:1}.create-id-lookup-controls .button{width:100%}.record-copy-lookup{grid-template-columns:1fr;width:100%}.record-copy-lookup label{grid-column:1}.record-copy-lookup .button{width:100%}.section-copy-heading{flex-direction:column;align-items:stretch}.character-form-grid{grid-template-columns:1fr;gap:8px}.create-appearance{grid-template-rows:auto minmax(300px,1fr) auto auto}.character-form-heading{grid-template-columns:1fr}.ability-roll-button{grid-area:auto/1;width:100%;margin-top:10px}.character-form-grid label{text-align:left;margin-top:8px}.appearance-display{min-height:320px}.appearance-file-actions{flex-direction:column;align-items:stretch}.appearance-file,.form .appearance-remove-button,.create-form-actions .button{width:100%}.spell-slot-grid,.list-attr-group,.entry-list-grid article{grid-template-columns:1fr}.inventory-heading{flex-direction:column;align-items:center;gap:8px}.inventory-heading>div,.inventory-heading>span{grid-column:1;justify-self:center}.inventory-editor-actions{justify-content:stretch}.inventory-editor-buttons{width:100%}.inventory-identity-fields{grid-template-columns:1fr}.inventory-effectiveness-input{grid-column:auto;max-width:100%}.inventory-card-body{grid-template-columns:minmax(0,1fr) minmax(112px,142px)}.inventory-card-modifiers{border-top:0;border-left:0;grid-template-rows:repeat(2,minmax(0,1fr));grid-template-columns:repeat(3,minmax(0,1fr));padding:0}.inventory-modifier-grid{grid-template-rows:repeat(3,minmax(0,1fr));grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-list{grid-template-columns:1fr}}.list-attr{box-sizing:border-box;border:1px solid var(--border);background:#ffffff05;border-radius:8px;flex-direction:column;gap:16px;width:100%;min-width:0;min-height:292px;padding:20px;display:flex}.list-input-row{grid-template-columns:minmax(0,1fr) 90px;align-items:center;gap:10px;display:grid}.list-label{text-align:right;white-space:nowrap}.list-control{box-sizing:border-box;width:100%;height:44px}.add-small-button{width:90px;height:44px}.list-header{text-align:center;color:var(--text);margin-top:2px;font-weight:700}.list-items{flex-direction:column;flex:0 0 142px;gap:8px;width:100%;height:142px;max-height:142px;display:flex;overflow-y:hidden}.list-items.is-scrollable{scrollbar-gutter:stable;padding-right:4px;overflow-y:auto}.list-row{box-sizing:border-box;border:1px solid var(--border);border-radius:6px;flex:0 0 42px;grid-template-columns:1fr 32px;align-items:center;gap:8px;height:42px;min-height:42px;padding:0 4px 0 8px;display:grid}.list-item{text-align:center;overflow-wrap:anywhere}.x-button{cursor:pointer;background:0 0;border:none;border-radius:5px;justify-content:center;align-items:center;width:30px;height:34px;display:flex}.x-button:hover{background:var(--danger-bg);border:1px solid var(--danger)}.xicon{color:red;width:26px;height:26px}.list-empty{text-align:center;opacity:.65;border:1px dashed var(--border);border-radius:6px;margin:0;padding:8px;font-size:.9rem}.modal{z-index:1000;background:#00000073;justify-content:center;align-items:center;display:none;position:fixed;inset:0}.modal.modal-open{display:flex}.modal-content{background:var(--bg);min-width:260px;color:var(--text,black);border:1px solid var(--border);text-align:center;border-radius:10px;padding:24px 32px;box-shadow:0 8px 24px #00000040}.spinner{border:4px solid var(--border);border-top:4px solid var(--accent);border-radius:50%;width:42px;height:42px;margin:0 auto 16px;animation:.8s linear infinite spin}.modal-content p{margin:0;font-size:16px;font-weight:500}@keyframes spin{to{transform:rotate(360deg)}}.popup-overlay{z-index:1000;background:#111315d1;justify-content:center;align-items:center;padding:clamp(1rem,4vw,2rem);display:flex;position:fixed;inset:0}.popup-modal{box-sizing:border-box;background:var(--bg);width:min(100%,26rem);max-height:calc(100dvh - 2rem);box-shadow:var(--shadow);border:2px solid;border-radius:.625rem;padding:clamp(1.25rem,5vw,1.75rem);position:relative;overflow-y:auto}.popup-modal--success{border-color:#16a34a}.popup-modal--failure{border-color:#dc2626}.popup-modal--roll{border-color:var(--accent);background:var(--bg)}.popup-modal__close{width:2.25rem;height:2.25rem;color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:50%;place-items:center;font-size:1.5rem;display:grid;position:absolute;top:.5rem;right:.5rem}.popup-modal__close:hover,.popup-modal__close:focus-visible{background:var(--button-hover-bg);outline:2px solid var(--border-strong);outline-offset:2px}.popup-modal__title{color:var(--success);text-align:center;margin:0 2.5rem .625rem;font-size:clamp(1.125rem,3vw,1.375rem);line-height:1.25}.popup-modal--failure .popup-modal__title{color:var(--danger)}.popup-modal--roll .popup-modal__title{color:var(--text-heading)}.popup-modal__message{color:var(--text);overflow-wrap:anywhere;text-align:center;margin:0;line-height:1.5}.popup-modal__actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-top:1.25rem;display:grid}.popup-modal__actions button{border:1px solid var(--border-strong);background:var(--field-bg);min-height:2.75rem;color:var(--text);font:inherit;cursor:pointer;border-radius:.375rem;padding:.625rem .75rem;font-weight:700}.popup-modal__actions button:hover,.popup-modal__actions button:focus-visible{background:var(--button-hover-bg);outline:2px solid var(--accent);outline-offset:2px}.popup-modal__footer{border-top:1px solid var(--border);margin-top:1.25rem;padding-top:1rem}.popup-modal__total{justify-content:space-between;align-items:baseline;gap:1rem;margin:0;display:flex}.popup-modal__total span{color:var(--text-muted);letter-spacing:.08em;text-transform:uppercase;font-size:.8rem;font-weight:700}.popup-modal__total strong{color:var(--text-heading);font-family:Georgia,Times New Roman,serif;font-size:2rem}@media (width<=420px){.popup-modal__actions{grid-template-columns:1fr}}.character-list{width:100%;min-width:0}.character-list-header,#char_list{text-align:center;flex-direction:column;align-items:center;margin-bottom:32px;display:flex}.character-list-header p,#char_list p{max-width:900px;line-height:1.5}.character-list-section{width:min(1440px,100%);margin:0 auto}.empty-message{text-align:center;opacity:.8;font-size:18px}.character-grid{flex-direction:column;gap:24px;display:flex}.character-card{border:1px solid var(--border);background:var(--surface);border-radius:12px;width:100%;overflow:hidden}.character-card-top{align-items:stretch;gap:24px;padding:20px;display:flex}.character-image-box{border:1px solid var(--border);border-radius:10px;justify-content:center;align-items:center;width:248px;min-width:248px;height:248px;display:flex;overflow:hidden}.character-card-image{object-fit:cover;width:100%;height:100%}.character-placeholder{opacity:.7;text-align:center}.character-info{text-align:left;flex-direction:column;flex:1;justify-content:flex-start;min-width:200px;display:flex}.character-info h3{margin:0;font-size:24px}.character-name-row{align-items:center;gap:10px;margin-bottom:14px;display:flex}.character-copy-id{border:1px solid var(--border);background:var(--field-bg);width:34px;height:34px;color:var(--text-muted);cursor:pointer;border-radius:6px;flex:0 0 34px;place-items:center;padding:0;display:inline-grid}.character-copy-id:hover,.character-copy-id:focus-visible{border-color:var(--accent);color:var(--text-heading)}.character-copy-id svg{width:18px;height:18px}.character-copy-status{z-index:30;border:1px solid var(--border);background:var(--surface);min-height:20px;color:var(--text);border-radius:7px;padding:8px 12px;position:fixed;bottom:20px;right:20px;box-shadow:0 8px 24px #00000047}.character-copy-status:empty{display:none}.character-info p{margin:6px 0}.character-actions{gap:12px;margin-top:auto;display:flex}.character-card .character-action-button{border:1px solid var(--border);cursor:pointer;width:112px;height:42px;color:var(--text);background:0 0;border-radius:6px;justify-content:center;align-items:center;padding:0 14px;display:inline-flex}.character-card .character-action-button:hover{background:var(--button-hover-bg)}.character-card .character-action-button:disabled{cursor:not-allowed;opacity:.6}.character-card .character-remove-button:hover{border-color:var(--danger);background:var(--danger-bg)}.character-abilities{border-left:1px solid var(--border);text-align:left;flex-direction:column;flex:0 0 240px;align-self:flex-start;height:248px;padding-left:24px;display:flex}.character-abilities h4{text-align:center;margin:0 0 14px}.ability-score-grid{flex:1;grid-template-rows:repeat(3,minmax(0,1fr));grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-height:0;margin:0;display:grid}.ability-score{border:1px solid var(--border);background:var(--field-bg);border-radius:8px;flex-direction:column;justify-content:center;align-items:center;min-height:0;display:flex}.ability-score dt{color:var(--text-muted);letter-spacing:.08em;font-size:.78rem;font-weight:700}.ability-score dd{color:var(--text-heading);margin:2px 0 0;font-family:Georgia,Times New Roman,serif;font-size:1.35rem;font-weight:700}.character-background-section{border-top:1px solid var(--border);text-align:left;padding:18px 20px}.character-background-section h4{margin:0 0 10px}.character-background-section p{margin:0;line-height:1.5}@media (width<=900px){.character-card-top{flex-wrap:wrap}.character-abilities{border-top:1px solid var(--border);border-left:0;flex-basis:100%;align-self:stretch;height:auto;padding:20px 0 0}.ability-score-grid{grid-template-rows:none;grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=700px){.character-card-top{flex-direction:column}.character-image-box{aspect-ratio:1;width:100%;min-width:0;height:auto}.character-actions{flex-wrap:wrap;margin-top:18px}.character-card .character-action-button{flex:112px}.ability-score-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ability-score{min-height:68px}}.home-page{width:min(1440px,100%);min-width:0;margin:0 auto;padding:40px 0}.home-hero{text-align:center;max-width:780px;margin:0 auto 48px}.home-eyebrow{color:var(--text-muted);letter-spacing:.1em;text-transform:uppercase;margin-bottom:10px;font-size:.85rem;font-weight:700}.home-hero h1{margin:0 0 18px;font-size:clamp(2.25rem,6vw,4rem);line-height:1.05}.home-intro{color:var(--text-muted);font-size:1.1rem;line-height:1.65}.home-actions{text-align:center;width:min(1120px,100%);margin:0 auto}.home-actions h2{text-align:center;margin-bottom:20px}.home-card-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:24px;display:grid}.home-card{border:1px solid var(--border);background:var(--surface);min-height:245px;box-shadow:var(--shadow);text-align:center;border-radius:12px;flex-direction:column;align-items:center;padding:28px;display:flex}.home-card h3{margin:0 0 12px;font-size:1.35rem}.home-card p{color:var(--text-muted);margin-bottom:24px;line-height:1.55}.home-card-link{border:1px solid var(--border-strong);background:var(--button-bg);min-height:42px;color:var(--text-heading);border-radius:6px;justify-content:center;align-items:center;margin-top:auto;padding:8px 16px;text-decoration:none;display:inline-flex}.home-card-link:hover{border-color:var(--text-muted);background:var(--button-hover-bg)}@media (width<=700px){.home-page{padding:20px 0}.home-hero{margin-bottom:32px}.home-card-grid{grid-template-columns:1fr}}.login-container{border:1px solid var(--border);background:var(--panel-dark);border-radius:12px;flex-direction:column;gap:16px;width:100%;max-width:400px;padding:32px;display:flex;box-shadow:0 8px 24px #00000052}.login-container h1{text-align:center;justify-content:center;margin:0 0 8px;font-size:35px}.login-container h2{text-align:center;color:var(--text);justify-content:center;margin:0 0 8px;font-size:25px}.login-container input{border:2px solid var(--border);background:var(--field-bg);width:100%;color:var(--text);box-sizing:border-box;border-radius:8px;padding:12px 14px;font-size:16px}.login-container input:focus{border-color:var(--accent);outline:none}.login-container .auth-switch-prompt{text-align:center;margin:0}.login-container .auth-switch-prompt a{color:#86a9c5;text-underline-offset:3px}.login-container .auth-switch-prompt a:hover,.login-container .auth-switch-prompt a:focus-visible{color:#a2bdd2}.button-row{flex-direction:row;gap:10px;display:flex}.login-container button{border:2px solid var(--border);background:var(--button-bg);width:100%;color:var(--text);box-sizing:border-box;border-radius:8px;padding:12px 14px;font-size:16px}.login-container button:hover{background:var(--button-hover-bg);border-color:var(--accent);cursor:pointer}.play-sheet{text-align:left;width:min(1440px,100%);min-width:0;margin:0 auto}.play-header{grid-template-columns:minmax(240px,360px) minmax(0,1fr);align-items:stretch;gap:clamp(20px,3vw,40px);display:grid}.play-portrait-column{align-content:stretch;gap:12px;min-width:0;display:grid}.play-header img,.play-no-image{object-fit:cover;border:1px solid var(--border);border-radius:8px;width:100%;height:100%;min-height:250px}.play-no-image{color:var(--text-muted);place-items:center;display:grid}.play-portrait-description{border:1px solid var(--border);background:#ffffff05;border-radius:8px;padding:14px 16px}.play-portrait-description h3{margin:0 0 6px;font-size:1rem}.play-portrait-description p{color:var(--text-muted);overflow-wrap:anywhere;line-height:1.5}.play-summary{align-content:center;gap:18px;min-width:0;display:grid}.play-identity-panel,.play-metadata,.play-panel,.play-detail-card{border:1px solid var(--border);background:#ffffff05;border-radius:8px;padding:clamp(16px,2vw,24px)}.play-name-row{flex-wrap:wrap;align-items:baseline;gap:8px 16px;margin-top:4px;display:flex}.play-identity-panel h2{overflow-wrap:anywhere;margin:0;font-size:clamp(1.7rem,4vw,2.7rem)}.play-eyebrow{color:var(--text-muted);text-transform:uppercase;letter-spacing:.12em;font-size:.78rem;font-weight:800}.play-level{color:var(--text-muted);white-space:nowrap;margin:0;font-size:1rem;font-weight:700}.play-metadata{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px 20px;display:grid}.play-panel{min-width:0;margin-top:24px}.play-core-row{grid-template-columns:minmax(300px,.75fr) minmax(0,1.25fr);gap:18px;margin-top:24px;display:grid}.play-core-row .play-panel{margin-top:0}.play-compact-heading,.play-panel-heading,.play-detail-heading,.play-section-heading{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.play-compact-heading h3,.play-compact-heading p,.play-panel-heading h3,.play-panel-heading p,.play-detail-heading h3,.play-section-heading h2,.play-section-heading p{margin:0}.play-hp-panel{position:relative;overflow:hidden}.health-indicator{border:1px solid var(--border);text-transform:uppercase;letter-spacing:.06em;border-radius:999px;align-items:center;gap:7px;padding:5px 9px;font-size:.76rem;font-weight:800;display:inline-flex}.health-indicator i{background:#4ade80;border-radius:50%;width:8px;height:8px;display:block}.health-wounded .health-indicator i{background:#fbbf24}.health-critical .health-indicator,.health-dead .health-indicator{color:#ffbcbc;border-color:#9e4545}.health-critical .health-indicator i,.health-dead .health-indicator i{background:#ef4444;box-shadow:0 0 0 4px #ef444421}.hp-compact-value{align-items:baseline;gap:8px;margin:16px 0 10px;display:flex}.hp-compact-value strong{color:var(--text-heading);font-family:Georgia,Times New Roman,serif;font-size:clamp(2.2rem,4vw,3.2rem);line-height:1}.hp-compact-value span{color:var(--text-muted);font-weight:700}.hp-bar{border:1px solid var(--border-strong);background:var(--field-bg);border-radius:999px;height:14px;overflow:hidden}.hp-bar span{background:#35a968;height:100%;transition:width .25s,background .25s;display:block}.health-wounded .hp-bar span{background:#d89924}.health-critical .hp-bar span,.health-dead .hp-bar span,.is-taking-damage .hp-bar span{background:#d94a4a}.health-dead .hp-bar{border-color:#9e4545}.damage-indicator,.health-warning{color:#ffbcbc;margin-top:9px;font-size:.8rem;font-weight:700}.damage-indicator{animation:.9s damage-pulse}.play-abilities{grid-template-columns:repeat(6,minmax(64px,1fr));gap:8px;margin:16px 0 0;display:grid}.play-abilities div{border:1px solid var(--border);background:var(--field-bg);border-radius:6px;justify-items:center;min-width:0;padding:9px;display:grid}.play-abilities dt{color:var(--text-muted);font-size:.72rem;font-weight:800}.play-abilities dd{color:var(--text-heading);margin:1px 0 0;font-size:1.35rem;font-weight:800}.play-details{margin-top:34px}.play-section-heading{border-bottom:1px solid var(--border);align-items:end;margin-bottom:14px;padding-bottom:12px}.play-detail-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.play-detail-card{min-width:0;padding:16px}.play-detail-heading{align-items:center}.play-detail-heading h3{margin:0;font-size:1rem}.play-detail-card>p{color:var(--text-muted);margin-top:12px}.play-value-list{scrollbar-gutter:stable;flex-wrap:wrap;align-content:flex-start;gap:6px;max-height:114px;margin-top:12px;display:flex;overflow-y:auto}.play-value-list span{border:1px solid var(--border);background:var(--field-bg);overflow-wrap:anywhere;border-radius:6px;padding:6px 10px;font-size:.78rem}.play-panel-heading{align-items:center}.play-background-panel>p{color:var(--text-muted);white-space:pre-wrap;margin-top:14px;line-height:1.65}.play-card-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px;margin-top:16px;display:grid}.play-card-grid article{border:1px solid var(--border);background:var(--field-bg);border-radius:7px;min-width:0;padding:14px}.play-card-grid h4,.play-card-grid p{overflow-wrap:anywhere}.play-location-heading{justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:10px;display:flex}.play-location-heading h4{margin:0}.play-location-heading span{max-width:50%;color:var(--text-muted);text-align:right;font-size:.76rem}.play-location-list article>p{color:var(--text-muted);line-height:1.5}.play-inventory-list{box-sizing:border-box;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;max-height:min(960px,70vh);padding:0;overflow-y:auto}.play-location-list{box-sizing:border-box;grid-template-columns:minmax(0,1fr);width:100%;max-height:min(310px,70vh);padding:0;overflow-y:auto}.play-card-grid .play-inventory-card{grid-template-columns:minmax(0,1fr) minmax(112px,142px);gap:14px;padding:16px;display:grid}.play-inventory-card h4{margin:0 0 8px;font-size:1.05rem}.play-inventory-identity{text-align:left;grid-template-rows:auto auto auto minmax(0,1fr) auto;align-content:stretch;min-height:100%;display:grid}.play-inventory-details{border-left:1px solid var(--border);grid-template-rows:minmax(0,1fr) auto auto;align-content:stretch;gap:8px;min-height:100%;padding-left:14px;display:grid}.play-item-type{min-width:0;color:var(--text-muted);overflow-wrap:anywhere;align-items:center;gap:7px;font-size:.78rem;display:inline-flex}.play-item-type-marker{box-sizing:border-box;border:2px solid var(--accent);background:var(--accent-bg-strong);border-radius:3px;flex:0 0 12px;width:12px;height:12px;display:inline-block}.play-inventory-icon{width:38px;height:38px;color:var(--accent);margin-bottom:10px;display:block}.play-item-description{color:var(--text-muted);white-space:pre-wrap;margin:10px 0 0;font-size:.8rem;line-height:1.5}.play-effectiveness{box-sizing:border-box;border:1px solid var(--border);background:#ffffff08;border-radius:5px;justify-content:space-between;align-items:center;gap:8px;width:100%;padding:4px 8px;display:flex}.play-effectiveness small{color:var(--text-muted);text-transform:uppercase;font-size:.62rem}.play-effectiveness strong{color:var(--text-heading);font-size:1rem}.play-item-modifiers{grid-template-rows:repeat(3,minmax(0,1fr));grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0;display:grid}.play-item-modifiers div{border:1px solid var(--border);text-align:center;border-radius:5px;min-width:0;padding:6px 3px}.play-item-modifiers div:not(.is-neutral){border-color:var(--border-strong)}.play-item-modifiers dt{color:var(--text-muted);font-size:.62rem}.play-item-modifiers dd{text-align:center;margin:1px 0 0;font-weight:800}.play-item-modifiers .is-neutral dd{color:var(--text-muted)}.play-item-modifiers dd.is-positive{color:#75cfff}.play-item-modifiers dd.is-negative{color:#ff8f8f}.play-action-dashboard{border:1px solid var(--border-strong);background:linear-gradient(145deg,#75cfff14,#ffffff05);border-radius:10px;margin-top:24px;padding:clamp(16px,2.5vw,28px)}.play-action-heading,.play-log-heading{justify-content:space-between;align-items:center;gap:16px;display:flex}.play-action-heading h3,.play-log-heading h4{margin:0}.play-action-feedback{min-height:32px}.play-action-feedback p{border-radius:6px;margin:8px 0 0;padding:7px 10px}.play-action-error{color:#ffbcbc;background:#9e45452e;border:1px solid #9e4545}.play-action-success{color:#b8f1d7;background:#397a602e;border:1px solid #397a60}.play-action-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:12px;display:grid}.play-tool-card{border:1px solid var(--border);background:#090b0ec7;border-radius:8px;min-width:0;padding:16px}.play-tool-card h4{margin:0 0 14px}.play-tool-card form{gap:6px;margin-top:12px;display:grid}.play-tool-card label{color:var(--text-muted);font-size:.82rem;font-weight:700}.play-tool-card input,.play-tool-card select{box-sizing:border-box;border:1px solid var(--border);background:var(--field-bg);width:100%;min-width:0;height:40px;color:var(--text);font:inherit;border-radius:6px;padding:7px 10px}.play-tool-card input:focus-visible,.play-tool-card select:focus-visible,.play-tool-card button:focus-visible{outline-offset:2px;outline:3px solid #75cfff99}.play-inline-control{grid-template-columns:minmax(70px,1fr) auto;gap:8px;display:grid}.play-inline-control .button{min-width:126px}.play-damage-roll{grid-template-columns:90px 1fr;gap:8px;margin-top:4px;display:grid}.play-damage-roll button{border:1px solid var(--border);background:var(--field-bg);color:var(--text);border-radius:6px}.play-danger-button{background:#6f2f2f;border-color:#9e4545}.play-tool-note{color:var(--text-muted);font-size:.86rem}.play-effects-layout{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px;display:grid}.play-effect-heading{justify-content:center;align-items:center;gap:12px;min-height:38px;display:flex;position:relative}.play-effect-heading h4,.play-effect-heading p{margin:0}.play-effect-heading .play-section-edit{position:absolute;right:0}.play-effect-card{grid-template-rows:auto minmax(0,1fr);display:grid}.play-status-list,.play-skill-actions{box-sizing:border-box;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));place-content:start center;gap:10px;width:100%;max-height:346px;margin-top:14px;padding:0;display:grid;overflow-y:auto}.play-status-list article,.play-passive-entry{border:1px solid var(--border-strong);background:var(--field-bg);text-align:center;border-radius:7px;align-content:start;justify-items:center;gap:8px;min-height:76px;padding:12px;display:grid}.play-passive-entry>span{color:var(--text-muted);text-align:center;font-size:.78rem}.play-effect-modifiers{flex-wrap:wrap;justify-content:center;gap:6px;display:flex}.play-effect-modifiers span{border:1px solid;border-radius:5px;padding:3px 7px;font-size:.72rem;font-weight:800}.play-effect-modifiers .is-positive{color:#65d997;background:#22c55e1f}.play-effect-modifiers .is-negative{color:#ff8f8f;background:#dc26261f}.play-spell-actions{margin-top:16px}.play-spell-actions>h4{text-align:center}.play-spell-actions>div{box-sizing:border-box;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));justify-content:center;gap:8px;width:100%;max-height:330px;padding:0;display:grid;overflow-y:auto}.play-spell-actions article{border:1px solid var(--border);text-align:center;border-radius:6px;justify-items:center;gap:6px;padding:9px;display:grid}.play-spell-actions article>span{color:var(--text-muted);font-size:.78rem}.play-spell-actions article div{grid-template-columns:1fr 1fr;gap:5px;width:100%;display:grid}.play-spell-actions button,.play-check-grid button,.play-dice-grid button,.play-log-heading button{border:1px solid var(--border);background:var(--field-bg);color:var(--text);border-radius:5px;padding:6px}.play-roll-layout{grid-template-columns:minmax(0,.9fr) minmax(280px,1.15fr) minmax(0,1fr);gap:16px;margin-top:16px;display:grid}.play-check-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;display:grid}.play-check-grid button{grid-template-rows:auto 1fr;place-items:start stretch;gap:6px;min-height:116px;padding:10px 8px;display:grid}.play-check-grid button>strong{text-align:center}.play-check-grid button span{color:var(--text-muted);font-size:.8rem}.play-dice-grid{grid-template-columns:repeat(auto-fit,minmax(52px,1fr));gap:8px;display:grid}.play-dice-grid button{min-height:42px;font-weight:700;transition:border-color .18s,background .18s,transform .18s}.play-dice-grid button.is-rolling{border-color:var(--accent);background:var(--accent-bg-strong);transform:translateY(-2px);box-shadow:0 0 0 2px #75cfff2e}.play-dice-heading{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.play-dice-heading h4,.play-dice-heading p{margin:0}.play-dice-heading>span{max-width:55%;color:var(--text-muted);text-align:right;overflow-wrap:anywhere;font-size:.8rem}.play-dice-ability{grid-template-columns:auto minmax(120px,1fr);align-items:center;gap:10px;margin-top:12px;display:grid}.play-dice-ability select{height:36px}.play-die-stage{border:1px dashed var(--border-strong);background:radial-gradient(circle,#75cfff1c,#0000 68%);border-radius:8px;place-items:center;min-height:168px;margin:12px 0;padding:14px;display:grid}.play-die-stage>p{color:var(--text-muted);text-align:center}.play-roll-display{grid-template-columns:minmax(110px,1fr) minmax(80px,.8fr);align-items:center;gap:16px;width:100%;animation:.5s cubic-bezier(.2,.8,.2,1) tray-roll-in;display:grid}.play-die-visual{color:#071018;clip-path:polygon(50% 0,96% 25%,96% 75%,50% 100%,4% 75%,4% 25%);background:linear-gradient(145deg,#b9ebff,#75cfff 58%,#4d9fc5);grid-template-rows:auto 1fr;justify-self:center;place-items:center;width:118px;height:118px;padding:17px;animation:.7s cubic-bezier(.25,.8,.25,1) die-tumble;display:grid;box-shadow:0 14px 28px #00000052,inset 0 0 0 3px #ffffff61}.play-die-d4{clip-path:polygon(50% 2%,98% 94%,2% 94%);padding-top:30px}.play-die-d6{clip-path:none;border-radius:18px}.play-die-d8{clip-path:polygon(50% 0,96% 50%,50% 100%,4% 50%)}.play-die-d10,.play-die-d100{clip-path:polygon(50% 0,91% 28%,78% 88%,22% 88%,9% 28%)}.play-die-d12{clip-path:polygon(50% 0,88% 18%,100% 58%,73% 96%,27% 96%,0 58%,12% 18%)}.play-die-d20{clip-path:polygon(50% 0,92% 22%,100% 68%,70% 100%,30% 100%,0 68%,8% 22%)}.play-die-visual span{letter-spacing:.08em;text-transform:uppercase;align-self:start;font-size:.72rem;font-weight:800}.play-die-visual strong{align-self:center;margin-top:-10px;font-family:Georgia,Times New Roman,serif;font-size:2.4rem;line-height:1}.play-roll-total{justify-items:center;min-width:0;display:grid}.play-roll-total span,.play-roll-total small{color:var(--text-muted);text-align:center}.play-roll-total strong{color:var(--text-heading);font-family:Georgia,Times New Roman,serif;font-size:clamp(2.6rem,6vw,4rem);line-height:1}.play-log-card ol{max-height:180px;margin:12px 0 0;padding-left:24px;overflow-y:auto}.play-log-card li{overflow-wrap:anywhere;margin:5px 0}.play-log-heading button{padding-inline:10px}.play-log-actions{flex-wrap:wrap;justify-content:flex-end;gap:7px;display:flex}.play-tool-card button:disabled{cursor:not-allowed;opacity:.5}.play-empty-state{border:1px solid var(--border);text-align:center;background:#ffffff05;border-radius:8px;width:min(800px,100%);margin:auto;padding:36px 24px}.play-empty-state p{color:var(--text-muted)}.play-empty-actions{flex-wrap:wrap;justify-content:center;gap:12px;margin-top:24px;display:flex}.play-empty-action{min-width:180px;padding:10px 16px;text-decoration:none}@keyframes die-tumble{0%{opacity:.2;transform:rotate(-22deg)scale(.58)}55%{transform:rotate(14deg)scale(1.12)}to{opacity:1;transform:rotate(0)scale(1)}}@keyframes tray-roll-in{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@keyframes damage-pulse{0%,to{opacity:1}45%{opacity:.45}}@media (prefers-reduced-motion:reduce){.play-roll-display,.play-die-visual,.damage-indicator{animation:none}.play-dice-grid button{transition:none}}@media (width<=1050px){.play-core-row{grid-template-columns:1fr}.play-detail-grid,.play-inventory-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=760px){.play-header{grid-template-columns:1fr}.play-header img,.play-no-image{aspect-ratio:4/3;height:auto;min-height:0}.play-abilities{grid-template-columns:repeat(3,minmax(0,1fr))}.play-inventory-list{grid-template-columns:1fr}.play-item-modifiers{grid-template-columns:repeat(2,minmax(0,1fr))}.play-action-grid,.play-roll-layout,.play-effects-layout{grid-template-columns:1fr}}@media (width<=480px){.play-save-actions{top:10px;right:10px}.play-save-actions .button{min-width:118px;min-height:40px;padding:7px 10px}.play-detail-grid{grid-template-columns:1fr}.play-abilities,.play-item-modifiers{grid-template-columns:repeat(2,minmax(0,1fr))}.play-compact-heading,.play-panel-heading{align-items:flex-start}.play-inline-control{grid-template-columns:1fr}.play-inline-control .button{width:100%}.play-damage-roll{grid-template-columns:1fr 1fr}.play-action-heading{align-items:flex-start}}.modifier-breakdown{grid-template-columns:minmax(48px,.7fr) minmax(74px,1fr);align-items:stretch;gap:6px;width:100%;margin-top:5px;display:grid}.modifier-total{place-content:center;display:grid}.modifier-total small{text-transform:uppercase;font-weight:800;color:inherit!important;font-size:.58rem!important}.modifier-total strong{font-size:1.15rem}.modifier-parts{gap:3px;display:grid}.modifier-source{text-align:left;padding:1px 0;font-weight:800;line-height:1.2;font-size:.62rem!important}.modifier-total.is-positive,.modifier-base.is-positive{color:#75cfff!important}.modifier-total.is-negative,.modifier-base.is-negative,.modifier-item.is-negative{color:#ff8f8f!important}.modifier-total.is-neutral,.modifier-base.is-neutral,.modifier-item.is-neutral{color:var(--text-muted)!important}.modifier-item.is-positive{color:#f4d35e!important}.modifier-effect.is-positive{color:#65d997!important}.modifier-effect.is-negative{color:#ff8f8f!important}.modifier-effect.is-neutral{color:var(--text-muted)!important}.play-effects-list{gap:8px;margin-top:12px;display:grid}.play-effects-list article{border:1px solid var(--border);background:var(--field-bg);border-radius:6px;padding:9px}.play-effects-list article>strong,.play-effects-list article>small{display:block}.play-effects-list article>small{color:var(--text-muted);margin-top:2px}.play-effects-list article>p{color:var(--text-muted);margin:6px 0;font-size:.78rem}.play-effects-list article>div{flex-wrap:wrap;gap:5px;margin-top:7px;display:flex}.play-effects-list article>div span{color:#9bc6ff;font-size:.76rem;font-weight:800}.play-inventory-icon{width:38px;height:38px;color:var(--accent)}.play-equip-actions{grid-template-columns:minmax(0,1fr);gap:8px;width:100%;display:grid}.play-inventory-actions{align-self:end;width:100%;margin-top:14px}.play-equip-actions button{width:100%}.play-equip-actions button,.equipment-slot button{border:1px solid var(--border-strong);color:var(--text);cursor:pointer;background:0 0;border-radius:6px;padding:7px 10px}.play-delete-item,.play-confirm-delete{font:inherit;cursor:pointer;border-radius:6px;padding:7px 10px;font-weight:700;color:#ffbcbc!important;background:#9e454529!important;border:1px solid #9e4545!important}.play-delete-item:disabled,.play-confirm-delete:disabled{cursor:not-allowed;opacity:.6}.play-inventory-details .play-delete-item{align-self:end;width:100%;margin-top:4px}.play-equipment-layout{grid-template-columns:minmax(320px,1.35fr) minmax(240px,.65fr);align-items:stretch;gap:18px;margin-top:16px;display:grid}.play-equipment-group{box-sizing:border-box;border:1px solid var(--border);background:#ffffff04;border-radius:8px;grid-template-rows:auto minmax(0,1fr);min-height:424px;padding:16px;display:grid}.play-equipment-group>h4{text-align:center;margin:0 0 14px}.play-armor-figure{grid-template-rows:repeat(3,minmax(0,1fr));grid-template-columns:repeat(2,minmax(130px,1fr));grid-template-areas:"head chestplate""gauntlets leggings""feet feet";gap:10px;min-height:0;display:grid}.equipment-head{grid-area:head}.equipment-chestplate{grid-area:chestplate}.equipment-gauntlets{grid-area:gauntlets}.equipment-leggings{grid-area:leggings}.equipment-feet{grid-area:feet}.play-items-group>div{grid-template-rows:repeat(3,minmax(0,1fr));gap:10px;min-height:0;display:grid}.equipment-slot{box-sizing:border-box;border:1px solid var(--border);background:var(--field-bg);text-align:center;border-radius:7px;grid-template-rows:auto minmax(0,1fr) 34px;align-items:center;gap:8px;min-height:112px;padding:12px;display:grid;overflow:hidden}.equipment-slot>span{min-height:0;color:var(--text-muted);overflow-wrap:anywhere;justify-content:center;align-items:center;gap:7px;display:flex;overflow:hidden}.equipment-slot svg{width:28px;height:28px;color:var(--accent)}.equipment-slot button{height:34px}.play-section-edit{border:1px solid var(--border-strong);width:38px;height:38px;color:var(--accent);cursor:pointer;background:0 0;border-radius:6px;place-items:center;padding:0;display:grid}.play-section-edit svg{width:20px;height:20px}.play-sheet .popup-modal{background:var(--bg);text-align:center;margin:auto}.play-save-actions{z-index:70;justify-content:flex-end;margin:0;padding:0;display:flex;position:fixed;top:18px;right:24px}.play-save-actions .button{border-color:var(--accent);min-width:150px;min-height:44px;padding:9px 16px;box-shadow:0 8px 28px #00000057}.effects-editor-modal{border-color:var(--accent);width:min(760px,100%);max-height:calc(100dvh - 2rem)}.effects-editor-heading{text-align:center}.effects-editor-heading h3,.effects-editor-heading p{margin:0}.effects-editor-heading>p:last-child{color:var(--text-muted);margin-top:6px}.effects-editor-sections{text-align:left;grid-template-columns:minmax(0,1fr);gap:18px;display:grid}.effects-editor-sections .entry-list-section{margin-top:20px}.effects-editor-actions{border-top:1px solid var(--border);justify-content:flex-end;gap:10px;margin-top:18px;padding-top:16px;display:flex}.effects-editor-actions button{border:1px solid var(--border-strong);background:var(--field-bg);min-width:130px;min-height:42px;color:var(--text);font:inherit;border-radius:6px;padding:8px 14px;font-weight:700}.sheet-editor-modal{border-color:var(--accent);width:min(1050px,100%)}.sheet-editor-modal .effects-editor-actions{border-top:0;padding-top:0}.sheet-editor-heading{text-align:center}.sheet-editor-heading h3,.sheet-editor-heading p{margin:0}.sheet-background-editor{color:var(--text-muted);gap:8px;margin-top:22px;font-weight:700;display:grid}.sheet-background-editor textarea{min-height:260px}.sheet-editor-modal input,.sheet-editor-modal select,.sheet-editor-modal textarea{box-sizing:border-box;border:1px solid var(--border);background:var(--field-bg);width:100%;min-width:0;color:var(--text);font:inherit;border-radius:6px;padding:9px 10px}.sheet-editor-modal textarea{resize:vertical}.sheet-single-record-editor{text-align:left;gap:14px;margin-top:22px;display:grid}.sheet-record-picker{color:var(--text-muted);font-size:.82rem;font-weight:700;display:block}.sheet-editor-form{scrollbar-gutter:stable;border:1px solid var(--border);background:#ffffff05;border-radius:7px;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:min(620px,62vh);padding:14px;display:grid;overflow-y:auto}.sheet-editor-form label{color:var(--text-muted);align-content:start;gap:5px;font-size:.78rem;font-weight:700;display:grid}.sheet-wide-field,.sheet-item-modifiers{grid-column:1/-1}.sheet-editor-form textarea.sheet-wide-field{min-height:86px}.sheet-item-modifiers{border:1px solid var(--border);border-radius:6px;grid-template-columns:repeat(6,minmax(60px,1fr));gap:8px;margin:0;padding:10px;display:grid}.sheet-item-modifiers legend{color:var(--text-muted);font-size:.78rem}.sheet-item-modifiers input{text-align:center}.sheet-remove-button{border-radius:6px;padding:7px 12px;color:#ffbcbc!important;background:#9e454529!important;border:1px solid #9e4545!important}@media (width<=760px){.play-equipment-layout,.effects-editor-sections{grid-template-columns:1fr}.sheet-item-modifiers{grid-template-columns:repeat(3,minmax(60px,1fr))}}@media (width<=520px){.sheet-record-picker,.sheet-editor-form{grid-template-columns:1fr}.sheet-wide-field,.sheet-item-modifiers{grid-column:1}}:root{--text:#d1d5db;--text-muted:#9ca3af;--text-heading:#f3f4f6;--bg:#111315;--surface:#1a1d21;--surface-raised:#23272d;--panel-dark:#14171b;--field-bg:#0d0f12;--border:#3b424b;--border-strong:#59616c;--accent:#d1d5db;--accent-bg:#d1d5db1f;--accent-bg-strong:#d1d5db33;--button-bg:#2b3037;--button-hover-bg:#3a414a;--danger:#f87171;--danger-bg:#f871711f;--success:#4ade80;--shadow:0 10px 30px #00000047;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font:18px/145% Trebuchet MS,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{overflow-x:hidden}.layout{min-height:100vh;display:flex}.sidebar{width:64px;height:100vh;color:var(--text);background:var(--bg);border-inline:1px solid var(--border);box-sizing:border-box;flex-direction:column;gap:14px;padding:24px 12px;transition:width .3s;display:flex;position:fixed;top:0;left:0;overflow:hidden auto}.sidebar:hover{width:260px}.sidebar .icon{flex-shrink:0;justify-content:center;align-items:center;width:40px;min-width:40px;display:flex}.sidebar .linktext{opacity:0;white-space:normal;transition:opacity .25s;position:absolute;left:52px}.sidebar:hover .linktext{opacity:1}.sidebar .sidebar-title{font-size:.9rem;line-height:1.2}.sidebar .sidebar-brand-icon{width:38px;min-width:38px;height:38px}.sidebar .sidebar-title .linktext{white-space:nowrap}.sidebar .sidebar-brand-text{left:52px}.sidebar .sidebar-brand-text span{display:block}body{background:var(--bg)}#root{width:100%;min-height:100svh}h1,h2,h3,h4{color:var(--text-heading);font-family:Georgia,Times New Roman,serif;font-weight:600}h1{letter-spacing:0;margin:32px 0;font-size:56px}h2{letter-spacing:0;margin:0 0 8px;font-size:24px;line-height:118%}p{margin:0}button,input,select,textarea{font:inherit;border-color:var(--border);background:var(--surface);color:var(--text)}input,select,textarea{background:var(--field-bg)}input::placeholder,textarea::placeholder{color:var(--text-muted);opacity:.85}button:disabled,input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;opacity:.65}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.button,.edit-button,.remove-button{border:1px solid var(--border-strong);background:var(--button-bg);color:var(--text);cursor:pointer;border-radius:6px}.button:hover,.edit-button:hover,.remove-button:hover{background:var(--button-hover-bg)}.button:disabled,.edit-button:disabled,.remove-button:disabled{cursor:not-allowed;opacity:.6}.error-message{color:var(--danger);text-align:center}@media (width<=1024px){:root{font-size:16px}h1{margin:20px 0;font-size:36px}h2{font-size:20px}}.sidebar .active{color:var(--text-heading);font-weight:700}.sidebar .tabdisplay{align-items:center;min-height:32px;display:flex;position:relative}.sidebar a{color:var(--text);border-radius:6px;width:100%;margin:0;padding:10px 0;text-decoration:none}.page-content{text-align:center;flex-direction:column;flex:1;min-width:0;margin:0 0 0 64px;padding:clamp(20px,3vw,48px);display:flex;overflow-x:clip}@media (width<=520px){.page-content{padding:18px 14px}}.menu-button{color:var(--text);background-color:#0000;border:#0000;margin:15px;padding:10px 12px;font-size:medium}.auth-layout{background:var(--bg);justify-content:center;align-items:center;min-height:100vh;display:flex}.auth{justify-content:center;align-items:center;width:100%;display:flex}
