:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#e7eaf0;background:#171a20;font-synthesis:none;text-rendering:optimizeLegibility;--bg: #171a20;--panel: #20252e;--panel-2: #272e39;--line: #363e4b;--muted: #99a3b2;--text: #e7eaf0;--accent: #7ea7dc;--accent-strong: #4e7fbf;--danger: #d96c75}*{box-sizing:border-box}html,body,#app{margin:0;min-width:320px;min-height:100%;width:100%}body{background:transparent}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh;padding:14px;background:linear-gradient(160deg,#1b2028,#16191f 75%);color:var(--text);display:flex;flex-direction:column;gap:12px}.topbar{display:flex;align-items:center;gap:10px;padding:1px 1px 12px;border-bottom:1px solid var(--line)}.brand-mark{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,#35465d,#26303d);border:1px solid #53647a;color:#dbe7f6;font-weight:850;letter-spacing:-1px;font-size:13px}.brand-copy{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.brand-copy strong{font-size:14px;letter-spacing:.2px}.brand-copy span{font-size:10px;color:var(--muted)}.role-pill,.subtle-tag,.gm-only-tag{border-radius:999px;padding:5px 8px;font-size:9px;font-weight:800;letter-spacing:.7px}.role-pill.gm{background:#3c3021;color:#e6bd78;border:1px solid #665132}.role-pill.player{background:#263649;color:#a7c4e8;border:1px solid #3c5874}.notice{padding:8px 10px;background:#2e3947;border:1px solid #43556c;border-radius:9px;color:#c7d9ef;font-size:11px}.token-heading{display:flex;align-items:center;gap:10px;padding:3px 1px 2px}.token-avatar{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border:1px solid #52667e;border-radius:50%;background:radial-gradient(circle at 35% 25%,#54677f,#2c3542 70%);color:#edf4fc;font-size:17px;font-weight:800}.token-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}.token-copy strong{font-size:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.token-copy span{color:var(--muted);font-size:10px}.tabs{display:flex;gap:4px;padding:4px;background:#13161c;border:1px solid #303742;border-radius:10px}.tab{flex:1;border:0;border-radius:7px;padding:9px 6px;color:#aab3c0;background:transparent;font-size:11px;font-weight:700}.tab.active{background:#344357;color:#eaf2fd;box-shadow:inset 0 0 0 1px #526986}.content-section{display:flex;flex-direction:column;gap:12px;min-height:0}.section-heading{display:flex;align-items:center;justify-content:space-between}.section-heading h2{margin:2px 0 0;font-size:19px;line-height:1.2;letter-spacing:-.4px}.eyebrow{font-size:8px;letter-spacing:1.4px;font-weight:900;color:#91a9c7}.subtle-tag{background:#252c36;color:#aeb9c8;border:1px solid #394250;letter-spacing:.2px;font-weight:650}.resource-list{display:grid;grid-template-columns:1fr;gap:8px}.resource-card{padding:11px 12px;background:linear-gradient(145deg,#252c36,#20262f);border:1px solid #37414f;border-radius:11px;display:flex;flex-direction:column;gap:9px}.resource-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.resource-name{display:flex;align-items:center;gap:8px;color:#e0e5ed;font-size:12px;font-weight:700}.resource-dot{width:8px;height:8px;border-radius:50%;box-shadow:0 0 9px color-mix(in srgb,currentColor 20%,transparent)}.resource-value{font-size:13px;font-variant-numeric:tabular-nums}.resource-value span{color:#9ca8b8;font-size:10px;font-weight:500}.progress-track{height:7px;width:100%;border-radius:999px;background:#14181e;overflow:hidden;box-shadow:inset 0 1px 2px #0d1015}.progress-fill{height:100%;border-radius:999px;transition:width .18s ease}.counter-card{gap:8px}.counter-actions{display:flex;justify-content:flex-end;gap:6px}.counter-actions button{width:28px;height:24px;border-radius:7px;color:#dfe8f5;background:#303b49;border:1px solid #48576a;font-size:17px;line-height:1}.counter-actions button:hover{background:#40536b}.marker-section{padding:11px 12px;border:1px solid #343d49;border-radius:11px;background:#1d232b;display:flex;flex-direction:column;gap:9px}.section-mini-title{font-size:11px;text-transform:uppercase;font-weight:850;color:#aebed2;letter-spacing:.8px;display:flex;align-items:center;justify-content:space-between;gap:8px}.section-mini-title.compact-title{margin-top:5px}.marker-list{display:flex;flex-wrap:wrap;gap:6px}.marker-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #665044;border-radius:7px;background:#382b27;color:#e7c2a8;padding:5px 7px;font-size:10px}.marker-chip button{border:0;padding:0 1px;background:transparent;color:#e5b6a9;font-size:13px}.inline-form{display:flex;gap:6px}.inline-form input{flex:1;min-width:0}.permission-note,.helper-text{color:#9aa6b5;font-size:10px;line-height:1.45;margin:0}.field-label{display:flex;flex-direction:column;gap:6px;color:#b9c3d0;font-size:10px;font-weight:700}input:not([type=checkbox]):not([type=color]):not([type=range]),select,textarea{width:100%;min-width:0;border:1px solid #3b4654;border-radius:8px;padding:9px 10px;color:#e7ebf1;background:#171c23;outline:none;font-size:11px}input:focus,select:focus,textarea:focus{border-color:#7296c2;box-shadow:0 0 0 2px #7296c226}textarea{resize:vertical;line-height:1.45}.form-stack{display:flex;flex-direction:column;gap:12px}.primary,.secondary,.small-primary{border-radius:8px;padding:10px 12px;font-size:11px;font-weight:800;border:1px solid transparent}.primary,.small-primary{color:#f2f7ff;background:linear-gradient(180deg,#537eaf,#41688f);border-color:#6d94bf}.primary:hover,.small-primary:hover{filter:brightness(1.1)}.secondary{color:#c5d0de;background:#252d38;border-color:#414d5c}.secondary:hover{background:#303b49}.small-primary{padding:7px 9px;white-space:nowrap;font-size:10px}.external-link{display:block;padding:10px 12px;border:1px solid #49658a;border-radius:9px;color:#c4dcf8;background:#243448;text-decoration:none;font-size:11px;font-weight:750}.external-link:hover{background:#2d435c}.description-block{color:#c2cbd7;white-space:pre-wrap;line-height:1.5;font-size:11px;padding:12px;border-radius:9px;background:#202630;border:1px solid #37404c;min-height:68px}.empty-state{flex:1;min-height:330px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;padding:20px 12px}.empty-icon{width:58px;height:58px;display:grid;place-items:center;border:1px solid #485c73;border-radius:18px;color:#c4d5e8;background:linear-gradient(145deg,#33465d,#242d39);font-size:29px}.empty-state h2{margin:0;font-size:16px}.empty-state p{margin:0;max-width:290px;color:#9da8b7;font-size:11px;line-height:1.5}.no-sheet{min-height:380px;align-items:stretch;text-align:left}.no-sheet .empty-icon{align-self:center}.no-sheet h2,.no-sheet p{text-align:center;align-self:center}.no-sheet select{margin-bottom:1px}.muted{color:#95a0af}.small{font-size:10px}.settings-block{padding:12px;display:flex;flex-direction:column;gap:11px;border:1px solid #38424f;border-radius:11px;background:#202630}.gm-only-tag{background:#3c3021;color:#e7c17e;border:1px solid #665132;font-size:8px;padding:4px 6px}.template-name-row{display:flex;gap:6px}.template-name-row input{flex:1}.schema-list{display:flex;flex-direction:column;gap:6px}.schema-row{display:grid;grid-template-columns:38px minmax(70px,1fr) 58px 36px 25px;align-items:center;gap:5px}.schema-row input:not([type=color]){padding:7px 6px}.schema-kind{font-size:8px;text-align:center;text-transform:uppercase;font-weight:850;color:#aab7c6}.schema-kind.resource{color:#a4c6ed}.schema-kind.counter{color:#d7bd91}.max-input{text-align:center}.color-input{width:32px;height:30px;padding:2px;border:1px solid #4a5665;border-radius:6px;background:#171c23}.icon-button{border:1px solid #465365;background:#2b3440;color:#d5dfeb;border-radius:8px;width:31px;height:31px;font-size:15px}.icon-button.danger{color:#e2a2a6;border-color:#69434a;background:#38282d;width:25px;height:27px}.button-row{display:flex;gap:7px}.button-row>*{flex:1}.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:14px;color:#d7dee8;font-size:11px}.toggle-row span{display:flex;flex-direction:column;gap:4px}.toggle-row small{color:#9ca8b7;font-size:9px;line-height:1.4;font-weight:450}.toggle-row input{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:34px;height:19px;flex:0 0 34px;border-radius:999px;background:#49515d;border:1px solid #697384;position:relative}.toggle-row input:after{content:"";position:absolute;width:13px;height:13px;border-radius:50%;top:2px;left:2px;background:#fff;transition:transform .15s ease}.toggle-row input:checked{background:#4c80b9;border-color:#77a5d5}.toggle-row input:checked:after{transform:translate(15px)}.check-row{display:flex;align-items:center;gap:8px;color:#d0d8e3;font-size:10px}.check-row input{accent-color:#6f9dce}.color-dot{margin-left:auto;width:8px;height:8px;border-radius:50%}.inline-value{color:#d9e5f4;margin-left:auto}input[type=range]{width:100%;accent-color:#78a1d0}.footer{margin-top:auto;display:flex;justify-content:space-between;gap:8px;padding-top:8px;border-top:1px solid #303741;color:#737f8e;font-size:9px}@media(max-width:360px){.app-shell{padding:10px}.schema-row{grid-template-columns:32px minmax(60px,1fr) 50px 32px 23px;gap:4px}.brand-copy strong{font-size:13px}}
