@font-face{font-family:Display;src:url('vendor/BebasNeue-Regular.ttf')}@font-face{font-family:Symbols;src:url('vendor/NotoSansSymbols2-Regular.ttf')}@font-face{font-family:Roboto;src:url('vendor/Roboto-Regular.ttf')}@font-face{font-family:Roboto;src:url('vendor/Roboto-Medium.ttf');font-weight:700}@font-face{font-family:Roboto;src:url('vendor/Roboto-Italic.ttf');font-style:italic}
@font-face{font-family:Roboto;src:url('vendor/Roboto-MediumItalic.ttf');font-weight:700;font-style:italic}
.rich-field{margin:12px 0 18px}.rich-field>label{margin:0 0 5px}.rich-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:5px;padding:6px;background:#f0f4ed;border:1px solid #cad4c6;border-bottom:0;border-radius:4px 4px 0 0}.rich-toolbar button{min-height:32px;min-width:34px;padding:4px 9px;font-size:14px}.rich-toolbar .rich-clear{margin-left:auto;font-size:11px}.rich-toolbar .rich-size{margin:0;max-width:115px}.rich-size select{margin:0;min-height:32px;padding:3px 6px;font-size:12px;background:white}.rich-field textarea{margin:0;border-radius:0 0 4px 4px}.rich-help{margin-top:6px;color:#778371;font-size:11px}.rich-help summary{cursor:pointer;width:fit-content}.rich-help p{margin:7px 0;line-height:1.6}.rich-help code{background:#edf1e8;padding:1px 3px;border-radius:2px;color:#43553f}
*{box-sizing:border-box}body{margin:0;background:#f4f5f2;color:#26302c;font:14px/1.5 'Segoe UI',Arial,sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer;background:#fff;border:1px solid #ccd2cc;border-radius:4px;padding:9px 12px;color:inherit}button:hover{border-color:#ed4b22}button:focus-visible,input:focus,textarea:focus,select:focus{outline:2px solid #ed4b22;outline-offset:2px}button:disabled{opacity:.4;cursor:default}button[hidden]{display:none}.primary{background:#ed4b22;color:white;border-color:#ed4b22;font-weight:650}header{height:72px;background:#151a18;color:#fff;display:flex;align-items:center;gap:34px;padding:0 24px;border-bottom:3px solid #ed4b22}.brand{text-decoration:none;color:#f5542e;display:flex;gap:9px;align-items:center;font-size:28px}.brand span{font-size:16px;letter-spacing:1px;color:white}.brand b{font-weight:400;color:#abb3ae}.project-name{font-size:13px;color:#d3dbd4}.header-actions{margin-left:auto;display:flex;gap:8px}.header-actions button:not(.primary){color:white;background:#252d28;border-color:#465249}
.workspace{display:grid;grid-template-columns:204px minmax(355px,1fr) minmax(365px,1.04fr);min-height:calc(100vh - 72px)}aside{padding:28px 14px;background:#fff;border-right:1px solid #dce1da;display:flex;flex-direction:column}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.6px;color:#7b887e}nav{display:grid;gap:6px;margin-top:23px}nav button{display:flex;justify-content:space-between;gap:6px;text-align:left;border:0;background:transparent;padding:12px 10px;font-size:13px}nav button small{color:#7d897f;white-space:nowrap}nav button.active{background:#e9efe5;color:#273f2b;box-shadow:inset 3px 0 #70816e}.sidebar-bottom{margin-top:auto;padding:40px 8px 0;font-size:11px;color:#849084}.edition{font-size:9px;letter-spacing:.8px;color:#677962}main{min-width:0;padding:26px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}h1{font-size:27px;line-height:1.2;font-weight:650;margin:7px 0 15px;letter-spacing:-.6px}.section-heading button{font-size:12px;white-space:nowrap}.section-note{color:#7c897c;font-size:12px;margin:0 0 19px}.section-note:empty{display:none}#record-list{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:23px}.record{text-align:left;font-size:11px;display:flex;gap:8px;align-items:baseline;padding:9px}.record small{color:#9aa394;font-size:10px}.record.active{background:#fff0e9;border-color:#ed4b22;color:#ac381b}.panel{background:#fff;border:1px solid #dce2d9;border-radius:5px;padding:18px;margin-bottom:16px}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:10px;font-weight:750;font-size:10px;letter-spacing:1.1px;border-bottom:1px solid #e6ebe4;padding-bottom:12px;margin-bottom:16px}.panel-title span{font-size:10px;font-weight:400;letter-spacing:0;color:#8c9789;text-align:right}label{display:block;color:#7b8778;font-size:12px;margin:12px 0}input,textarea,select{display:block;width:100%;background:#fafcf8;color:#26302c;border:1px solid #cad4c6;border-radius:3px;padding:8px 9px;margin-top:5px;font-size:14px;line-height:1.5}textarea{min-height:135px;resize:vertical;font-family:Roboto,Symbols,sans-serif}.field-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 10px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.checkbox{display:flex;align-items:center;gap:8px}.checkbox input{width:17px;height:17px;margin:0}.hint{font-size:11px;color:#8a9585;line-height:1.7}.row-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.danger{color:#ae4935}.small{font-size:11px;padding:6px 9px}.nested{border:1px solid #dbe2d6;background:#fbfcf9;border-radius:3px;padding:12px;margin-bottom:10px}.nested summary{cursor:pointer;font-size:13px;font-weight:650;color:#52694c}.nested[open] summary{padding-bottom:8px;border-bottom:1px solid #e3e9df;margin-bottom:12px}.add-inline{width:100%;border-style:dashed;color:#6b805f;font-size:12px}.loadout{padding-bottom:16px;border-bottom:1px solid #e6ebe2;margin-bottom:16px}input[type=color]{width:65px;height:36px;padding:3px}.import-label{display:inline-block;cursor:pointer;background:#fff;border:1px solid #ccd2cc;padding:9px 12px;margin:0;border-radius:4px}.import-label input{display:none}
#preview-panel{padding:28px 26px;background:#dfe6dc;border-left:1px solid #d0d8cd;position:sticky;top:0;align-self:start;height:calc(100vh - 72px);min-height:620px;overflow:auto}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:28px}.badge{font-size:11px;border:1px solid #bfcbb9;border-radius:3px;padding:3px 7px;color:#7e9074}.physical-card{position:relative;margin:auto;filter:drop-shadow(0 8px 10px #23362024)}.physical-card.portrait{max-width:345px}.physical-card.landscape{max-width:640px;margin-top:60px}.physical-card svg{display:block;width:100%;height:auto}.side-controls{display:flex;justify-content:center;align-items:center;gap:17px;margin-top:24px;font-size:11px;color:#718267}.side-controls button{padding:5px 12px;background:transparent;border-color:#bdcbb5}.side-controls button:disabled{visibility:hidden}#preview-note{font-size:11px;text-align:center;color:#7d8e72;max-width:370px;margin:15px auto;line-height:1.6}.print-hint{border-top:1px solid #c8d3c0;display:flex;flex-direction:column;text-align:center;padding:20px 0;margin-top:26px;font-size:11px;color:#8b9b80;gap:5px}.print-hint b{letter-spacing:2px;font-size:10px}#toast{display:none;position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:min(600px,90vw);padding:13px 20px;border-radius:5px;background:#223027;color:#fff;z-index:50;box-shadow:0 3px 18px #0003}
#view-toggle{display:none}
.physical-card.lore-page{max-width:595px}.lore-empty{aspect-ratio:210/297;max-width:430px;margin:auto;background:#fff;border:1px solid #c5cfc0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;font-size:32px;color:#b5c0ae}.lore-empty span{font-size:13px;text-align:center;max-width:240px}.lore-image-item{border:1px solid #dce2d9;border-radius:5px;padding:12px;margin-bottom:14px}.lore-image-item>img{display:block;max-width:100%;height:140px;margin:auto;object-fit:contain}.lore-image-item textarea{min-height:60px}.lore-image-item .row-actions{margin-bottom:0}.lore-image-item button{font-size:12px}
.roster-row{border-bottom:1px solid #e2e8de;padding:8px 0 14px}.roster-row>.checkbox{font-weight:650;color:#43553f}.roster-options{display:flex;align-items:end;gap:12px}.roster-options label{max-width:110px;margin:0}.roster-options button{margin-bottom:2px}.roster-row:last-of-type{border-bottom:0}
@media(min-width:1600px){main{padding:35px 45px}.physical-card.portrait{max-width:390px}.workspace{grid-template-columns:225px minmax(420px,1fr) minmax(450px,1.05fr)}}@media(max-width:1100px){.workspace{grid-template-columns:180px minmax(330px,1fr)}#view-toggle{display:block;width:100%;margin-bottom:20px;color:#536e47}#preview-panel{display:none;grid-column:2;position:static;height:auto}.show-preview #editor{display:none}.show-preview #preview-panel{display:block}aside{grid-row:span 2}.project-name{display:none}}@media(max-width:700px){header{height:auto;min-height:72px;flex-wrap:wrap;gap:12px;padding:14px}.header-actions{margin-left:0;width:100%}.workspace{display:block}aside{padding:15px}nav{display:flex;overflow:auto;margin-top:10px}nav button{white-space:nowrap}.sidebar-bottom{display:none}main,#preview-panel{padding:22px}#preview-panel{min-height:0}.physical-card.portrait{max-width:310px}.physical-card.landscape{margin-top:0}}

[hidden]{display:none!important}
.studio-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 24px;background:#fff;border-bottom:1px solid #dce2d9}.studio-tabs{display:flex;gap:4px;margin:0}.studio-tabs button{padding:9px 15px;white-space:nowrap}.studio-tabs button.active{background:#fff0e9;color:#ac381b;box-shadow:inset 0 -2px #ed4b22}.cloud-indicator{display:flex;align-items:center;gap:10px;font-size:12px;color:#62745a}.cloud-indicator button{font-size:11px;padding:5px 8px}#cloud-status[data-state=error]{color:#ae4935}#cloud-status[data-state=pending]{color:#8b691f}
#community-panel{max-width:1400px;margin:0 auto;padding:36px 28px 60px}.community-heading{display:flex;justify-content:space-between;align-items:center;gap:24px}.community-heading p{color:#65745f;max-width:700px}.community-heading button{flex-shrink:0}#library-search-label{max-width:460px;margin:26px 0}.team-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:20px;margin-top:26px}.team-tile{background:#fff;border:1px solid #dce2d9;border-radius:8px;padding:24px;display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere}.team-tile-top,.team-tile-meta{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#778371}.team-state{font-size:9px;letter-spacing:1px;color:#49643f;font-weight:700}.team-tile h2{margin:18px 0 4px;font-size:23px;line-height:1.25}.team-tile>p{color:#778371;font-size:13px;margin:6px 0 24px}.team-tile-meta{margin-top:auto;padding-top:12px}.team-tile button{margin-top:22px;align-self:flex-start}.team-tile .draft-note{font-size:11px;margin:12px 0 0}.community-empty{grid-column:1/-1;padding:36px;border:1px dashed #cad4c6;border-radius:8px;background:#fafcf8;color:#6c7b64;line-height:1.8}#library-pages{display:flex;justify-content:center;align-items:center;gap:20px;margin-top:26px;color:#778371;font-size:12px}
#publication-dialog{width:min(1200px,calc(100% - 32px));max-height:92vh;border:1px solid #cad4c6;border-radius:10px;padding:28px;color:#26302c;background:#f4f5f2}#publication-dialog::backdrop{background:#152019bb}.publication-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.publication-heading h2{margin:5px 0;font-size:28px;overflow-wrap:anywhere}.publication-heading p{color:#778371;font-size:12px}#publication-nav{display:flex;flex-wrap:wrap;gap:6px;margin:15px 0 25px}#publication-nav button{background:#fff;border:1px solid #dce2d9}#publication-nav button.active{background:#e9efe5}#publication-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:28px}.published-card{min-width:0}.published-card h3{font-size:13px;color:#65745f;overflow-wrap:anywhere}.published-card .physical-card{margin:16px auto 24px}.published-card .physical-card.portrait{max-width:300px}.published-card .physical-card.landscape{max-width:520px}
@media(max-width:900px){.studio-bar{flex-wrap:wrap;padding:10px 14px;gap:8px}.cloud-indicator{width:100%;font-size:11px}.studio-tabs button{padding:8px 12px}#community-panel{padding:24px 18px}.community-heading{align-items:flex-start;flex-direction:column;gap:8px}.team-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}#publication-dialog{padding:18px}#publication-nav{gap:4px}#publication-nav button{font-size:11px;padding:8px}.header-actions button{font-size:12px}}
header{gap:18px}
.project-picker{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%}.project-picker #new-project{flex-shrink:0;white-space:nowrap;background:#252d28;color:white;border-color:#465249}
.crop-dialog{width:min(1040px,calc(100% - 32px));max-height:92vh;overflow:auto;padding:24px;border:1px solid #cbd4c7;border-radius:10px;color:#26302c;box-shadow:0 18px 80px #0005}.crop-dialog::backdrop{background:#152019bb}.crop-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.crop-heading h2{font-size:22px;line-height:1.3;margin:0}.crop-heading button{padding:6px 10px}.crop-help{color:#677962;font-size:13px;margin:12px 0 20px}.crop-layout{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:24px;align-items:start}.crop-board{display:flex;align-items:center;justify-content:center;min-width:0;min-height:80px;background:#e8ede5;padding:8px;border-radius:5px;overflow:hidden}.crop-stage{position:relative;flex:none;touch-action:none;user-select:none;cursor:crosshair;overflow:hidden;max-width:100%}.crop-image{display:block;width:100%;height:100%;pointer-events:none}.crop-selection{position:absolute;border:2px solid #f34b16;box-shadow:0 0 0 2000px #101b16a6;cursor:move;touch-action:none}.crop-selection[hidden]{display:none}.crop-selection:before,.crop-selection:after{content:'';position:absolute;inset:33.333% 0;border-top:1px solid #ffffff60;border-bottom:1px solid #ffffff60;pointer-events:none}.crop-selection:after{inset:0 33.333%;border:0;border-left:1px solid #ffffff60;border-right:1px solid #ffffff60}.crop-handle{position:absolute;width:22px;height:22px;min-width:0;padding:0;border:2px solid white;border-radius:3px;background:#f34b16;z-index:1;touch-action:none}.crop-nw{left:-2px;top:-2px;cursor:nwse-resize}.crop-ne{right:-2px;top:-2px;cursor:nesw-resize}.crop-sw{left:-2px;bottom:-2px;cursor:nesw-resize}.crop-se{right:-2px;bottom:-2px;cursor:nwse-resize}.crop-preview>span{display:block;color:#677962;font-size:12px;margin-bottom:10px}.crop-preview canvas{display:block;width:100%;height:180px;max-width:100%;max-height:180px;object-fit:contain;margin:0 auto;background:repeating-conic-gradient(#e4e9e0 0% 25%,#f8faf5 0% 50%) 50% / 16px 16px;border:1px solid #cbd4c7}.crop-status{font-size:12px;color:#677962;min-height:18px;margin:16px 0}.crop-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.crop-actions [data-crop-reset]{margin-right:auto}@media(max-width:700px){.crop-dialog{padding:16px;width:calc(100% - 20px)}.crop-heading h2{font-size:18px}.crop-layout{grid-template-columns:minmax(0,1fr);gap:14px}.crop-preview{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:8px}.crop-preview canvas{height:90px;max-height:90px}.crop-preview .hint{display:none}.crop-actions button{padding:8px;font-size:12px}}
.operative-image-editor{display:flex;align-items:center;gap:16px}.operative-image-thumb,.operative-image-empty{width:100px;height:78px;flex-shrink:0;object-fit:contain;border-radius:5px;background:#141718;border:1px solid #dce2d9}.operative-image-empty{display:grid;place-items:center;color:#aab4a8;background:#f4f7f1;font-size:26px}.operative-image-editor button{margin:3px 6px 3px 0;font-size:12px}.operative-image-editor .hint{margin-bottom:0}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
header{height:auto;min-height:72px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px}.header-actions{flex-wrap:wrap}.header-actions button{white-space:nowrap}
#tts-dialog{border:1px solid #cbd4c7;border-radius:10px;padding:28px;max-width:620px;width:calc(100% - 32px);max-height:90vh;color:#26302c;box-shadow:0 18px 80px #0005}#tts-dialog::backdrop{background:#152019aa}.tts-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.tts-heading h2{font-size:27px;margin:6px 0}#tts-summary{color:#677962}#tts-decks{border-top:1px solid #dce2d9;border-bottom:1px solid #dce2d9;margin:20px 0;padding:10px 0}#tts-decks>div{display:flex;justify-content:space-between;padding:5px 0}#tts-status{font-weight:600}#tts-result[hidden]{display:none}.download-button{display:inline-block;background:#273f2b;color:white;padding:12px 18px;border-radius:5px;text-decoration:none;font-weight:650}#tts-result p{font-size:12px;color:#677962}

/* Project navigation and deletion. */
.team-tile-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:20px}.team-tile-actions button{margin-top:0}
.project-dialog{width:min(560px,calc(100% - 28px));max-height:90vh;overflow:auto;padding:24px;border:1px solid #cad4c6;border-radius:10px;background:#f4f5f2;color:#26302c}
.project-dialog::backdrop{background:#152019bb}.project-dialog h2{margin:0;font-size:24px;overflow-wrap:anywhere}.project-dialog p{overflow-wrap:anywhere}.project-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}
.project-templates{display:grid;gap:10px;margin-top:20px}.project-templates button{display:grid;gap:4px;text-align:left;min-height:68px}.project-templates span{font-size:12px;color:#65745f}.project-dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:24px}.project-dialog-error{color:#a1261c}.project-dialog-error:empty{display:none}
#confirm-delete-project{background:#b52c23;border-color:#b52c23;color:white;min-height:42px}#cancel-delete-project{min-height:42px}
.studio-login-dialog{max-width:460px}.studio-login-dialog h2{font-size:22px}.studio-login-tabs{display:flex;gap:8px;margin:20px 0 16px}.studio-login-tabs button{flex:1;min-height:42px}.studio-login-tabs button.active{border-color:#bd3413;color:#a72e10;background:#fff0e8}.studio-login-dialog label{display:block;margin:12px 0;font-size:14px}.studio-login-dialog input{display:block;width:100%;min-height:42px;margin-top:6px;padding:9px 12px}.studio-login-dialog [hidden]{display:none!important}#studio-login-submit{width:100%;min-height:44px;margin-top:8px;background:#bd3413;border-color:#bd3413}.studio-login-note{margin:18px 0 0;color:#65745f;font-size:12px}

.project-name{display:block;min-width:0;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.team-author a{color:inherit;text-decoration:underline;text-underline-offset:3px}.team-author a:hover{color:#c9370b}.publication-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.publication-actions button{min-height:44px}#publication-export-status{font-size:13px;line-height:1.5}#publication-export-status:empty{display:none}
