:root{color-scheme:light dark;--bg:#f4f5f7;--surface:#fff;--soft:#f7f8fa;--line:#dce1e8;--text:#1a2736;--muted:#596779;--accent:#e2a13d;--focus:#1878c9;--side:#14263b;--side-text:#dce6f1;--danger:#a32c3d;--danger-bg:#fff1f2;--success:#217144;--success-bg:#eaf6ed}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit}button:disabled{opacity:.5;cursor:wait}a{color:var(--focus)}h1,h2,h3,p{margin:0}h1{font-size:32px;letter-spacing:-1px;line-height:1.2}h2{font-size:22px;letter-spacing:-.4px;line-height:1.3}h3{font-size:17px}small{display:block;font-size:14px;line-height:1.5;color:var(--muted)}p{line-height:1.6}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}button,.btn,a{touch-action:manipulation}.icon{width:22px;height:22px;flex:none;vertical-align:middle}.full{width:100%}.muted,.footnote{color:var(--muted)}.footnote{font-size:14px;margin:16px 0;line-height:1.6}.overline{font-size:12px;font-weight:700;letter-spacing:1.5px;color:var(--muted)}.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:46px;padding:11px 20px;border:1px solid transparent;border-radius:9px;background:#f3b34e;color:#232a34;font-weight:650;text-decoration:none;line-height:1.4}.btn:hover:not(:disabled){background:#e8a83c}.btn.secondary{background:var(--surface);border-color:var(--line);color:var(--text)}.btn.secondary:hover:not(:disabled){background:var(--soft);border-color:#9aabbd}.btn.small{min-height:44px;padding:9px 14px;font-size:14px}.btn.danger{background:var(--danger);color:white}.text-btn{border:0;background:none;color:var(--focus);padding:10px 0;min-height:44px;text-align:left}.danger-text{color:var(--danger)}.square{width:44px;height:44px;border:1px solid var(--line);background:var(--surface);border-radius:8px;flex:none;font-size:23px}.button-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}#shell{min-height:100dvh}#workspace{min-width:0}header{height:86px;padding:16px 32px;background:var(--surface);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:16px}header>div{flex:1;min-width:0}#breadcrumb{font-size:15px;font-weight:600}.subtle-link{font-size:14px;text-decoration:none;white-space:nowrap}#content{padding:32px;max-width:1560px;margin:auto}.signed-in #workspace{margin-left:248px}#sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:var(--side);color:var(--side-text);display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:10px;align-items:center;padding:24px 20px;text-decoration:none;color:white}.brand>img{width:42px;height:42px;border-radius:12px}.brand>span{font-size:20px;font-weight:700;letter-spacing:-.4px}.brand small{font-size:9px;letter-spacing:1.5px;color:#a4b7cd;margin-top:2px}#sections{flex:1;overflow:auto;padding:0 12px 20px;scrollbar-width:thin}.nav-group{margin:16px 0}.nav-group>span{display:block;padding:0 12px 8px;color:#a8bbd0;font-size:12px;font-weight:650;letter-spacing:.4px}.nav-group button{width:100%;min-height:44px;display:flex;align-items:center;gap:10px;border:0;background:none;border-radius:8px;color:#d8e4f0;text-align:left;font-size:14px;padding:10px 12px;margin:2px 0}.nav-group button .icon{width:20px;height:20px}.nav-group button:hover{background:#213952}.nav-group button.active{background:#314354;color:#ffd18a}.sidebar-foot{border-top:1px solid #ffffff20;padding:16px 24px;display:flex;flex-direction:column}.sidebar-foot>span{font-size:14px;color:#c6d4e5;overflow-wrap:anywhere}.sidebar-foot .text-btn{color:#ffd18a}.card{padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--surface);margin-bottom:20px}.card>h2{margin-bottom:16px}.page-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:28px}.page-heading p{color:var(--muted);margin-top:8px;max-width:700px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.stats .card{padding:20px}.stats span{display:block;color:var(--muted);font-size:14px}.stats b{display:block;font-size:28px;letter-spacing:-.7px;margin-top:8px;overflow-wrap:anywhere}.welcome{background:var(--side);border-color:#28405a;color:white;padding:32px}.welcome .overline{color:#aebed0}.welcome h2{font-size:28px;margin:8px 0 12px}.welcome p{max-width:780px;color:#c8d4e2}.workflow{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.workflow span{font-size:14px;padding:8px 12px;border:1px solid #506278;border-radius:8px;color:#ffe0a8}.dashboard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.section-tile{display:block;text-align:left;margin:0 0 20px;color:var(--text)}.section-tile>.icon{color:#91611e;margin-bottom:14px}.section-tile h3{margin-bottom:8px}.section-tile p{font-size:14px;color:var(--muted)}.section-tile>span{display:block;margin-top:20px;color:var(--focus);font-size:14px;font-weight:600}.list-toolbar{display:flex;gap:12px;align-items:center;margin-bottom:20px}.list-toolbar>input{flex:1;min-width:0}.list-toolbar>select{max-width:220px}.list-toolbar>span{font-size:14px;color:var(--muted);white-space:nowrap}input:not([type=checkbox]):not([type=file]),select,textarea{padding:11px 12px;min-height:46px;color:var(--text);background:var(--surface);border:1px solid #b7c1ce;border-radius:8px;min-width:0;max-width:100%}input[type=checkbox]{width:21px;height:21px;accent-color:#cc8a26;flex:none}textarea{width:100%;resize:vertical}input:disabled{background:var(--soft);color:var(--muted)}.table-wrap{padding:0;overflow-x:auto;scrollbar-width:thin}table{width:100%;border-collapse:collapse;text-align:left}th,td{padding:16px 20px;border-bottom:1px solid var(--line);vertical-align:middle}th{font-size:13px;background:var(--soft);color:var(--muted);font-weight:600}td{font-size:14px}td:last-child{text-align:right}tr:last-child td{border-bottom:0}.record-name{display:flex;align-items:center;gap:14px;min-width:210px}.record-name>span{min-width:0}.record-name b,.record-name small{display:block;overflow-wrap:anywhere}.item-photo{width:52px;height:56px;object-fit:contain;flex:none}.status{display:inline-flex;align-items:center;font-size:12px;font-weight:650;padding:5px 8px;border-radius:6px;line-height:1.3;background:var(--soft);color:var(--muted)}.status.published{background:var(--success-bg);color:var(--success)}.status.draft{background:#fff1d9;color:#80530d}.status.archived{background:var(--soft);color:var(--muted)}.draft-note{font-size:12px;margin-top:5px;color:#91611e}.empty-cell{text-align:center!important;padding:48px 24px;color:var(--muted)}.editor-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;align-items:start}.editor-form{min-width:0}.editor-form>h1{font-size:28px}.editor-form>.muted{font-size:14px;margin:10px 0 24px}.form-field{display:flex;flex-direction:column;gap:8px;margin:20px 0;font-size:15px;font-weight:550;min-width:0}.form-field small{font-weight:400;font-size:14px}.form-field>input,.form-field>select{width:100%}.form-toggle{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:15px;margin:20px 0}.form-toggle>.admin-field-help{width:100%;margin-left:31px}.editor-group{border:1px solid var(--line);border-radius:10px;padding:16px;margin:16px 0;min-width:0}.editor-group summary,.help-block summary{cursor:pointer;font-size:15px;font-weight:650;min-height:32px;line-height:1.5;overflow-wrap:anywhere}.editor-group[open]>summary{margin-bottom:16px}.admin-group-help,.admin-field-help{font-size:14px;line-height:1.6;font-weight:400;color:var(--muted)}.admin-group-help{margin:8px 0 16px}.editor-add{margin-top:12px}.dict-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:8px 0}.dict-row>span{grid-column:1/-1;font-size:14px}.dict-row .form-field{margin:0}.drop-editor{display:grid;grid-template-columns:minmax(0,1fr) 90px 44px;gap:8px;align-items:end;margin:14px 0}.drop-editor label{display:flex;flex-direction:column;font-size:14px;gap:4px}.drop-editor input{width:100%}.round-btn{width:44px;height:46px;border:1px solid var(--line);border-radius:8px;background:var(--soft)}.image-editor{display:grid;gap:12px}.editor-preview{width:100%;height:160px;object-fit:contain;background:var(--soft);border-radius:8px}.image-editor input[type=file]{font-size:14px;width:100%;min-width:0}.editor-actions{display:flex;flex-wrap:wrap;gap:10px;position:sticky;bottom:0;background:var(--surface);padding:16px 0;border-top:1px solid var(--line);z-index:2}.editor-actions .btn{flex:1;min-width:160px}.help-block{margin-top:24px;font-size:14px}.help-block p{margin-top:12px;color:var(--muted)}.preview-column{position:sticky;top:24px;min-width:0}.preview-toolbar{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:12px}.preview-toolbar b{font-size:14px}.preview-toolbar select{font-size:13px;min-height:40px;padding:6px;max-width:130px}.game-preview{background:#101e30;color:#f7f9fc;border:1px solid #3b4f66;border-radius:20px;overflow:hidden;box-shadow:0 8px 24px #14263b12}.game-preview-brand{display:flex;align-items:center;gap:8px;padding:16px;border-bottom:1px solid #ffffff16}.game-preview-brand>img{width:30px;height:30px;border-radius:9px}.game-preview-brand>b{font-size:16px}.game-preview-brand>span{font-size:11px;color:#a9bdd2;margin-left:auto}.game-preview>section{padding:20px}.game-preview h2{font-size:24px;line-height:1.2;overflow-wrap:anywhere}.game-preview h3{margin:20px 0 10px}.game-preview p{font-size:14px;color:#bdcddd;margin:12px 0;overflow-wrap:anywhere}.game-preview>section>.item-photo{height:170px;width:100%;object-fit:contain;margin-bottom:16px}.preview-rarity{display:block;font-size:13px;color:#ffd18a;margin-bottom:8px}.preview-price{display:block;font-size:26px;margin-top:18px}.preview-tags{font-size:13px;color:#becddd;margin-top:16px}.preview-open{margin-top:20px;padding:12px;text-align:center;border-radius:10px;background:#ffb539;color:#192634;font-size:14px;font-weight:700}.preview-drops{display:grid;gap:10px;margin:20px 0}.preview-drops>div{display:flex;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #ffffff20;font-size:13px}.preview-drops>div>span{flex:1;min-width:0;overflow-wrap:anywhere}.preview-drops .item-photo{width:44px;height:48px}.preview-drops b{font-size:13px}.preview-reward{font-size:14px;background:#1c3349;padding:16px;border:1px solid #415a71;border-radius:10px;margin-top:16px;overflow-wrap:anywhere}.room-preview{width:100%;border-radius:10px;margin-top:16px}.preview-line{display:flex;gap:12px;justify-content:space-between;border-bottom:1px solid #ffffff20;padding:10px 0;font-size:13px}.preview-line>span{color:#c0d0e0;flex:1;min-width:0;overflow-wrap:anywhere}.preview-line>b{max-width:55%;text-align:right;overflow-wrap:anywhere}.document-copy{white-space:pre-wrap}.preview-meta{font-size:14px;padding:16px;margin-top:20px}.preview-meta p{color:var(--muted);margin-top:8px}.preview-column.wide .game-preview{border-radius:10px}.preview-column.wide .game-preview>section>.item-photo{height:120px}.preview-column.wide .preview-drops{grid-template-columns:repeat(2,minmax(0,1fr))}.audit-line{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:16px 0;border-bottom:1px solid var(--line);font-size:14px}.audit-line:last-child{border-bottom:0}.audit-line>span:first-child{min-width:0;overflow-wrap:anywhere}.audit-line b{display:block}.audit-line small{margin-top:4px}.login-card{max-width:540px;margin:6vh auto;padding:40px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}.login-card>img{width:68px;height:68px;border-radius:18px;margin-bottom:24px}.login-card h1{font-size:38px;margin:12px 0 20px}.login-card>p:not(.overline){color:var(--muted);margin-bottom:24px}.login-card>.btn{width:100%}.login-card>small{margin-top:24px;text-align:center}.login-code{display:block;text-align:center;font-size:36px;letter-spacing:7px;padding:12px 0 20px}.login-card .muted{font-size:14px;margin-top:16px}.login-card #loginProgress>p:first-child{margin-top:16px}dialog{border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);padding:24px;width:calc(100% - 32px);max-width:560px;max-height:calc(100dvh - 48px);overflow:auto}dialog::backdrop{background:#071729a6;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}.dialog-head h2{font-size:24px}.dialog-head+.button-row,.button-row{margin-top:20px}.dialog-head~p{margin:16px 0}.dialog-head .square{font-size:24px}.dialog-head~.button-row .btn{flex:1}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:14px 20px;background:#173348;color:#fff;border:1px solid #6e899e;border-radius:10px;z-index:100;max-width:calc(100% - 32px);width:max-content;font-size:14px;box-shadow:0 4px 20px #0002}.sr-only{position:absolute;left:0;top:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.pending{border-color:#dca34a;background:#fff8e9}.pending p{margin:12px 0 16px}@media(max-width:1250px){.editor-layout{grid-template-columns:minmax(0,1fr) 300px;gap:16px}.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.signed-in #workspace{margin-left:220px}#sidebar{width:220px}#content{padding:24px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:1000px){.editor-layout{grid-template-columns:minmax(0,1fr)}.preview-column{position:static;max-width:540px;width:100%;justify-self:center}.preview-column.wide{max-width:none}.editor-actions{bottom:0}.signed-in #workspace{margin-left:0}#sidebar{transform:translateX(-100%);transition:transform .18s ease;width:248px;box-shadow:12px 0 40px #0003}.menu-open #sidebar{transform:translateX(0)}#menu{display:block}header{padding:16px 24px}.signed-in header{position:sticky;top:0;z-index:10}.page-heading{align-items:flex-start}.page-heading h1{font-size:28px}}@media(min-width:1001px){.signed-in #menu{display:none!important}}@media(max-width:550px){#content{padding:20px 16px}header{height:78px;padding:12px 16px}header>.subtle-link{font-size:12px;white-space:normal;max-width:72px}.overline{font-size:10px}.login-card{margin:16px 0;padding:24px}.login-card h1{font-size:32px}.page-heading{flex-direction:column;gap:16px;margin-bottom:24px}.page-heading p{font-size:14px}.stats{gap:10px}.stats .card{padding:16px}.stats b{font-size:24px}.card{padding:20px}.welcome{padding:24px}.welcome h2{font-size:24px}.dashboard-grid{grid-template-columns:1fr;gap:0}.list-toolbar{flex-wrap:wrap}.list-toolbar>input{flex:1 1 100%}.list-toolbar>select{flex:1}.table-wrap{padding:0}th,td{padding:14px 12px}table{min-width:570px}.editor-group{padding:12px}.editor-form{padding:20px 16px}.editor-group>.editor-group{margin-left:0;margin-right:0}.drop-editor{grid-template-columns:minmax(0,1fr) 72px 44px}.drop-editor>select{grid-column:1/-1}.drop-editor label{grid-column:1/3}.editor-heading{align-items:flex-start}.editor-heading .status{max-width:120px}.audit-line{flex-wrap:wrap}.preview-toolbar{flex-wrap:wrap}.game-preview>section{padding:16px}.dict-row{grid-template-columns:minmax(0,1fr)}.dict-row>span{grid-column:auto}.workflow{gap:8px}.workflow span{font-size:13px}}@media(prefers-color-scheme:dark){:root{--bg:#111c2a;--surface:#1a2a3d;--soft:#213449;--line:#3b5067;--text:#eff5fc;--muted:#b4c4d6;--focus:#8cc5ff;--side:#101d2c;--danger:#ffabb6;--danger-bg:#452a35;--success:#afe1ba;--success-bg:#204332}.btn.danger{background:#a43749;color:#fff}.status.draft{background:#473923;color:#ffdc9c}.section-tile>.icon,.draft-note{color:#ffd18a}.pending{background:#3a3022}.preview-column .game-preview{box-shadow:none}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.editor-layout.preview-desktop{grid-template-columns:minmax(0,1fr)}.editor-layout.preview-desktop .preview-column{position:static;grid-row:1;width:100%;max-width:none}.editor-layout.preview-desktop .game-preview>section{max-width:1000px;margin:auto}.editor-layout.preview-desktop .preview-drops{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:550px){.editor-layout.preview-desktop .preview-drops{grid-template-columns:repeat(2,minmax(0,1fr))}}
