:root{font-family:Inter,"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;font-size:16px;color-scheme:dark;--bg:#0d121a;--side:#101720;--surface:#141c27;--surface2:#192330;--surface3:#202d3b;--border:#26313e;--text:#edf2f5;--muted:#93a1b2;--accent:#69dfb0;--accent-rgb:105,223,176;--accent-ink:#0c3023;--danger:#f29494;--radius:16px;--shadow:0 24px 80px #0005;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button,a{touch-action:manipulation}button{color:inherit}a{color:inherit;text-decoration:none}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:4px}button{border:0}svg{flex-shrink:0}.icon{width:20px;height:20px;display:inline-block;vertical-align:middle;stroke-width:1.7}button .icon{pointer-events:none}.skip-link{position:fixed;left:20px;top:-100px;z-index:100;background:var(--accent);color:var(--accent-ink);padding:14px;border-radius:10px}.skip-link:focus{top:12px}button, a, .panel, input, select{transition:background .18s,color .18s,border-color .18s,box-shadow .18s,transform .18s}h1,h2,h3,p{margin:0}h1{font-size:1.9rem;font-weight:650;letter-spacing:-1.1px}h2{font-size:1.06rem;font-weight:600;letter-spacing:-.25px}h3{font-size:1rem;font-weight:600}p{line-height:1.6}.muted{color:var(--muted)}.small{font-size:.875rem}.eyebrow{font-size:.75rem;letter-spacing:1.7px;font-weight:650;text-transform:uppercase;color:var(--muted)}.accent-text{color:var(--accent)}.hidden{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.sidebar{position:fixed;z-index:40;left:0;top:0;bottom:0;width:244px;background:var(--side);border-right:1px solid var(--border);display:flex;flex-direction:column;padding:28px 18px 16px}.brand{display:flex;align-items:center;gap:10px;padding:0 12px 28px;font-size:1.68rem;font-weight:750;letter-spacing:-1.2px}.brand img{width:35px;height:35px}.brand small{align-self:flex-start;font-size:.6rem;letter-spacing:.8px;color:var(--accent);margin-top:6px;border:1px solid rgba(var(--accent-rgb),.25);border-radius:4px;padding:2px 4px}.server-select{display:flex;gap:10px;align-items:center;width:100%;text-align:left;background:var(--surface2);border:1px solid var(--border);padding:12px 10px;border-radius:11px;margin-bottom:28px}.server-symbol{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;border-radius:10px;background:linear-gradient(140deg,#6a6584,#383d61);color:#e7d6fe;font-weight:700}.server-name{font-size:.875rem;font-weight:600;display:block;max-width:129px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.server-caption{font-size:.75rem;color:var(--muted);display:block;margin-top:4px}.server-select>.icon{width:15px;color:var(--muted);margin-left:auto}.nav-scroll{overflow:auto;scrollbar-width:thin;flex:1}.nav-label{font-size:.69rem;letter-spacing:1.5px;color:#718296;font-weight:650;padding:0 14px;margin:0 0 10px}.nav-label.second{margin-top:26px}.nav-link{display:flex;align-items:center;gap:12px;padding:12px 14px;color:var(--muted);font-size:.875rem;margin:3px 0;border-radius:9px;position:relative}.nav-link:hover{background:var(--surface2);color:var(--text)}.nav-link.active{background:rgba(var(--accent-rgb),.09);color:var(--accent);font-weight:600}.nav-link.active:before{content:"";width:3px;height:18px;border-radius:3px;background:var(--accent);position:absolute;left:-18px}.nav-link .icon{width:18px;height:18px}.nav-tag{font-size:.65rem;letter-spacing:.6px;background:rgba(var(--accent-rgb),.09);color:var(--accent);padding:3px 6px;border-radius:4px;margin-left:auto}.upgrade-card{margin:24px 0 18px;border:1px solid #514431;border-radius:12px;padding:15px 13px;background:radial-gradient(ellipse at top right,#78571e22,transparent 70%),var(--surface)}.upgrade-card>.icon{color:#e4be77;width:19px;margin-bottom:10px}.upgrade-card strong{display:block;font-size:.875rem;margin-bottom:7px}.upgrade-card p{font-size:.75rem;line-height:1.6;color:var(--muted);margin-bottom:13px}.upgrade-card button{width:100%;border:1px solid #675539;background:#352c20;color:#edd09a;border-radius:7px;padding:8px;font-size:.75rem;font-weight:600}.account{border-top:1px solid var(--border);padding:16px 4px 0;display:flex;gap:10px;align-items:center}.avatar{display:grid;place-items:center;background:#34423e;color:#c0dfcc;width:35px;height:35px;border-radius:50%;font-size:.8rem;font-weight:650;flex-shrink:0}.account strong{font-size:.8125rem;display:block}.account span{font-size:.72rem;color:var(--muted)}.account button{margin-left:auto}
.workspace{margin-left:244px}.topbar{height:82px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 38px;gap:20px;background:var(--bg)}.breadcrumb{display:flex;align-items:center;gap:11px;color:var(--muted);font-size:.8125rem;white-space:nowrap}.breadcrumb .icon{width:15px;height:15px}.breadcrumb strong{color:var(--text);font-weight:500}.top-actions{display:flex;align-items:center;gap:15px}.wallet{display:flex;align-items:center;gap:8px;border-right:1px solid var(--border);padding-right:20px;font-size:.875rem}.wallet>.icon{color:#dab673;width:18px}.wallet strong{font-size:.9rem;font-weight:600}.wallet .private-icon{width:12px;height:12px;color:var(--muted)}.icon-button{height:36px;width:36px;display:inline-grid;place-items:center;border-radius:9px;background:transparent;color:var(--muted);position:relative}.icon-button:hover{background:var(--surface2);color:var(--text)}.notify-dot{position:absolute;right:7px;top:6px;height:5px;width:5px;border-radius:50%;background:var(--accent)}.language-switch{border:0;background:transparent;color:var(--muted);font-size:.75rem;font-weight:650;display:flex;align-items:center;gap:6px;padding:10px 5px}.language-switch .icon{height:16px;width:16px}.mobile-menu{display:none}.content{max-width:1550px;padding:34px 38px 28px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.page-heading p{font-size:.875rem;color:var(--muted);margin-top:9px}.heading-actions{display:flex;align-items:center;gap:12px}.badge{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border);padding:6px 9px;border-radius:6px;font-size:.6875rem;color:var(--muted);font-weight:500;white-space:nowrap}.badge .icon{width:13px;height:13px}.badge.green{background:rgba(var(--accent-rgb),.07);color:var(--accent);border-color:rgba(var(--accent-rgb),.2)}.demo-badge{background:var(--surface);cursor:pointer}.primary,.secondary,.text-button,.danger-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:.8125rem;font-weight:600;border-radius:9px;padding:11px 15px;min-height:41px}.primary{background:var(--accent);color:var(--accent-ink);border:1px solid transparent}.primary:hover{filter:brightness(1.08);box-shadow:0 3px 15px rgba(var(--accent-rgb),.12)}.secondary{background:var(--surface2);color:var(--text);border:1px solid var(--border)}.secondary:hover{background:var(--surface3)}.text-button{background:transparent;color:var(--muted);padding:8px 0;min-height:32px;font-weight:500}.text-button:hover{color:var(--accent)}.danger-button{background:#f2949412;color:var(--danger);border:1px solid #f2949430}.primary .icon,.secondary .icon{width:16px;height:16px}.button-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.hero{min-height:276px;border:1px solid #355047;border-radius:var(--radius);background:#122321 url('/assets/realm.svg') center right/cover no-repeat;overflow:hidden;position:relative;padding:31px 32px;margin-bottom:23px;display:flex;align-items:center}.hero-content{position:relative;z-index:1;max-width:500px}.hero-label{font-size:.6875rem;letter-spacing:2px;color:#a6c9b8;display:flex;align-items:center;gap:8px;font-weight:600;margin-bottom:15px}.hero-label .icon{height:15px;width:15px}.hero h2{font-size:2.5rem;line-height:1.16;letter-spacing:-1.4px;color:#f1f8f2;font-weight:600}.hero h2 em{font-style:normal;color:#8ee2b7}.hero p{font-size:.8125rem;color:#b6c7bf;max-width:350px;line-height:1.7;margin-top:13px}.hero .button-row{margin-top:20px}.hero .text-button{color:#c4d8ca;margin-left:8px}.hero .primary{padding:10px 15px;font-size:.75rem;min-height:37px;background:#86e4b8;color:#143a2c}.hero-corner{position:absolute;bottom:18px;right:20px;display:flex;gap:6px;color:#c0d2b7;font-size:.65rem;letter-spacing:.4px}.hero-corner .icon{width:13px;height:13px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:28px}.stat-card{border:1px solid var(--border);border-radius:12px;background:var(--surface);padding:18px 18px 15px;position:relative;overflow:hidden;min-height:131px}.stat-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:.75rem;gap:8px}.stat-top .icon{width:17px;height:17px}.stat-number{font-size:1.75rem;font-weight:600;letter-spacing:-.7px;margin-top:13px;display:block}.stat-bottom{font-size:.65rem;color:var(--muted);margin-top:7px;display:flex;gap:6px;align-items:center}.stat-bottom b{color:var(--accent);font-weight:500}.sparkline{position:absolute;width:76px;height:35px;right:12px;bottom:16px;opacity:.6}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px;align-items:start}.section-top{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.section-top h2{display:flex;gap:8px;align-items:center}.section-top .text-button{font-size:.75rem}.section-subtitle{font-size:.75rem;color:var(--muted);margin-top:6px}.search-box{display:flex;gap:8px;align-items:center;border:1px solid var(--border);border-radius:8px;padding:0 10px;background:var(--surface);max-width:220px}.search-box .icon{width:15px;color:var(--muted)}.search-box input{background:transparent!important;border:0!important;min-width:0;width:100%;padding:9px 0!important;font-size:.75rem!important;color:var(--text);outline-offset:2px}.modules-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.module-card{border:1px solid var(--border);border-radius:12px;padding:18px;background:var(--surface);display:flex;flex-direction:column;min-height:177px}.module-card:hover{border-color:#425366;transform:translateY(-2px)}.module-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.module-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:10px}.module-icon .icon{width:20px;height:20px}.tint-mint{background:#56d8a514;color:#74deb3}.tint-purple{background:#ad8fe817;color:#b69be9}.tint-blue{background:#6eaeed17;color:#8bbaf3}.tint-gold{background:#e0b56c15;color:#e4bd78}.tint-rose{background:#e58ea817;color:#ed9fba}.tint-cyan{background:#60c9db17;color:#7bcddc}.module-card h3{font-size:.875rem}.module-card p{color:var(--muted);font-size:.75rem;line-height:1.6;margin-top:8px;max-width:290px}.module-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:13px}.module-state{font-size:.65rem;color:var(--accent);display:flex;gap:5px;align-items:center}.module-state:before{content:"";height:4px;width:4px;border-radius:50%;background:currentColor}.module-state.off{color:var(--muted)}.module-bottom .text-button{font-size:.69rem;min-height:20px;padding:0}.switch{width:33px;height:19px;border-radius:15px;background:#3c4857;padding:3px;display:inline-flex;align-items:center;flex-shrink:0}.switch:after{content:"";height:13px;width:13px;border-radius:50%;background:#c6d0dc;transition:transform .2s}.switch[aria-checked=true]{background:var(--accent)}.switch[aria-checked=true]:after{transform:translateX(14px);background:#122d24}.panel{border:1px solid var(--border);background:var(--surface);border-radius:13px;padding:21px}.calendar-panel{background:radial-gradient(ellipse at 100% 0,#9275b816,transparent 65%),var(--surface);margin-bottom:20px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.panel-heading h2{font-size:.875rem;display:flex;align-items:center;gap:8px}.panel-heading h2 .icon{width:16px;height:16px;color:var(--muted)}.calendar-tag{font-size:.6rem;letter-spacing:.7px;color:#bda0e5;background:#ad8fe812;padding:4px 6px;border-radius:4px}.calendar-date{display:flex;gap:15px;align-items:center;margin-top:3px}.day-number{font-size:2.8rem;line-height:1;font-weight:500;letter-spacing:-2px}.calendar-date strong{display:block;font-size:.875rem;font-weight:500;color:#c0abd9}.calendar-date span{display:block;font-size:.75rem;color:var(--muted);margin-top:6px}.calendar-progress{height:4px;border-radius:4px;background:var(--surface3);margin:22px 0 9px;overflow:hidden}.calendar-progress>span{display:block;height:100%;background:#af93da;border-radius:4px}.calendar-meta{display:flex;justify-content:space-between;gap:10px;font-size:.65rem;color:var(--muted)}.panel-divider{height:1px;background:var(--border);margin:19px 0 13px}.calendar-panel>.text-button{font-size:.75rem;width:100%;min-height:24px}.activity-list{display:flex;flex-direction:column;gap:21px}.activity-item{display:flex;align-items:flex-start;gap:11px}.activity-icon{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;flex-shrink:0}.activity-icon .icon{height:14px;width:14px}.activity-item p{font-size:.75rem;line-height:1.6}.activity-item p strong{font-weight:500}.activity-time{font-size:.65rem;color:var(--muted);margin-top:5px;display:block}.activity-panel>.text-button{width:100%;font-size:.75rem;border-top:1px solid var(--border);border-radius:0;margin-top:18px;padding-top:15px}.workspace-footer{display:flex;justify-content:space-between;gap:10px;color:#6f8092;font-size:.65rem;padding-top:30px}.workspace-footer span{display:flex;align-items:center;gap:6px}.workspace-footer .icon{height:12px;width:12px}.footer-dot{background:var(--accent);width:5px;height:5px;border-radius:50%;display:inline-block}.empty-state{text-align:center;padding:45px 20px;color:var(--muted);grid-column:1/-1}.empty-state .icon{width:32px;height:32px;margin-bottom:12px}
.form-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:22px;align-items:start}.form-panel{padding:25px}.form-panel h2{margin-bottom:7px}.form-intro{font-size:.8125rem;color:var(--muted);margin-bottom:25px}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:20px}.field>label,.field-label{font-size:.8125rem;font-weight:500}.field small{font-size:.75rem;color:var(--muted);line-height:1.6}.input,input[type=text],input[type=number],input[type=url],input[type=password],textarea,select{background:var(--bg);border:1px solid var(--border);border-radius:8px;color:var(--text);padding:11px 12px;width:100%;font-size:.875rem;min-height:43px}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2393a1b2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:35px}textarea{resize:vertical;min-height:100px;line-height:1.6}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--border);padding-top:20px;margin-top:10px}.info-box{background:rgba(var(--accent-rgb),.05);border:1px solid rgba(var(--accent-rgb),.15);border-radius:10px;padding:15px;font-size:.8125rem;line-height:1.7;color:var(--muted);display:flex;gap:12px}.info-box .icon{color:var(--accent);width:18px;margin-top:3px}.info-box strong{color:var(--text);font-weight:500}.stack{display:flex;flex-direction:column;gap:20px}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 0;border-bottom:1px solid var(--border)}.setting-row:first-child{padding-top:0}.setting-row:last-child{border-bottom:0;padding-bottom:0}.setting-row strong{font-size:.875rem;font-weight:500;display:block}.setting-row p{font-size:.75rem;color:var(--muted);margin-top:6px}.color-options{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}.color-swatch{width:35px;height:35px;border-radius:50%;background:var(--swatch);border:3px solid var(--surface);outline:1px solid var(--border);display:grid;place-items:center}.color-swatch.selected{outline:2px solid var(--text)}.color-swatch .icon{width:16px;height:16px;color:#112023}.theme-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:11px}.theme-option{border:1px solid var(--border);background:var(--bg);border-radius:10px;padding:10px;color:var(--muted);font-size:.75rem}.theme-option.selected{border-color:var(--accent);color:var(--accent);background:rgba(var(--accent-rgb),.05)}.theme-preview{height:55px;display:flex;gap:4px;padding:5px;border-radius:5px;margin-bottom:9px;overflow:hidden;border:1px solid #ffffff0d;background:#111923}.theme-preview:before{content:"";width:22%;background:#293442;border-radius:2px}.theme-preview:after{content:"";width:78%;background:linear-gradient(#334638 0 45%,transparent 45% 55%,#26323d 55%);border-radius:2px}.theme-preview.light{background:#edf1f5}.theme-preview.light:before{background:#cfd8df}.theme-preview.light:after{background:linear-gradient(#bad8cd 0 45%,transparent 45% 55%,#d5dfe6 55%)}.theme-preview.auto{background:linear-gradient(90deg,#111923 50%,#edf1f5 50%)}.appearance-sample{border-radius:12px;overflow:hidden;border:1px solid var(--border);margin-top:20px}.sample-banner{height:110px;background:#163b32 url('/assets/realm.svg') center/cover}.sample-body{padding:18px;background:var(--surface)}.sample-body h3{margin-bottom:7px}.sample-body p{font-size:.75rem;color:var(--muted)}.sample-body .primary{margin-top:17px}.inline-code{font-family:ui-monospace,Consolas,monospace;font-size:.75rem;color:var(--accent);border:1px solid var(--border);border-radius:5px;padding:4px 7px;background:var(--bg)}.token-list{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0}.token-list button{cursor:pointer}.preview-box{padding:18px;background:var(--bg);border:1px dashed var(--border);border-radius:10px;margin-top:12px;line-height:1.7;font-size:.875rem;white-space:pre-wrap;overflow-wrap:anywhere}.data-table{width:100%;border-collapse:collapse;font-size:.8125rem}.table-wrap{overflow-x:auto}.data-table th{text-align:left;color:var(--muted);font-size:.75rem;font-weight:500;padding:13px 16px;border-bottom:1px solid var(--border);white-space:nowrap}.data-table td{padding:17px 16px;border-bottom:1px solid var(--border)}.data-table tr:last-child td{border-bottom:0}.table-panel{padding:0;overflow:hidden;margin-top:24px}.table-panel .panel-heading{padding:20px 20px 0}.item-name{display:flex;align-items:center;gap:10px}.item-symbol{font-size:1.2rem;display:grid;place-items:center;width:35px;height:35px;background:var(--surface2);border-radius:8px}.item-name small{display:block;font-size:.7rem;color:var(--muted);margin-top:5px}.tag{background:var(--surface2);border:1px solid var(--border);padding:5px 8px;border-radius:5px;color:var(--muted);font-size:.7rem;white-space:nowrap}.rule-card{display:flex;gap:16px;align-items:flex-start;padding:20px;border-bottom:1px solid var(--border)}.rule-card:last-child{border-bottom:0}.rule-body{flex:1;min-width:0}.rule-body h3{font-size:.875rem}.rule-body p{font-size:.75rem;color:var(--muted);margin-top:7px}.rule-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.rule-actions{display:flex;gap:5px}.test-result{padding:13px;border-radius:8px;margin-top:14px;font-size:.8125rem;line-height:1.6}.test-result.match{background:#e4bd7812;color:#e4bd78;border:1px solid #e4bd7830}.test-result.safe{background:rgba(var(--accent-rgb),.07);color:var(--accent);border:1px solid rgba(var(--accent-rgb),.2)}.dice-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.dice-result{min-height:290px;display:flex;align-items:center;justify-content:center;flex-direction:column;border:1px solid rgba(var(--accent-rgb),.25);background:radial-gradient(circle at center,rgba(var(--accent-rgb),.08),transparent 70%),var(--surface);border-radius:14px;padding:25px;text-align:center}.dice-shape{width:135px;height:140px;display:grid;place-items:center;font-size:3rem;font-weight:600;color:var(--accent);background:rgba(var(--accent-rgb),.07);clip-path:polygon(50% 0,97% 25%,97% 75%,50% 100%,3% 75%,3% 25%);margin:15px 0}.dice-result p{font-size:.8125rem;color:var(--muted)}.dice-shortcuts{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.dice-shortcuts button{font-size:.75rem;padding:9px 11px}.characters-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.character-card{overflow:hidden;border-radius:13px;border:1px solid var(--border);background:var(--surface)}.character-art{height:135px;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 120%,#668d6e55,transparent),linear-gradient(120deg,#293338,#18272b);position:relative}.character-art .icon{height:67px;width:67px;color:#b8d5c1;stroke-width:.8}.character-art.purple{background:radial-gradient(ellipse at 50% 120%,#9a69af55,transparent),linear-gradient(120deg,#302d43,#20212e)}.character-art.purple .icon{color:#c8b6e9}.character-art.gold{background:radial-gradient(ellipse at 50% 120%,#b58b4155,transparent),linear-gradient(120deg,#3a332c,#22282b)}.character-art.gold .icon{color:#d9c7a6}.character-content{padding:20px}.character-content p{font-size:.75rem;color:var(--muted);margin:7px 0 18px}.character-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.character-stats div{background:var(--bg);padding:10px;border-radius:7px;text-align:center}.character-stats span{font-size:.65rem;color:var(--muted);display:block}.character-stats strong{font-size:.875rem;display:block;margin-top:5px}.character-content>.secondary{width:100%;margin-top:20px}.log-list{display:flex;flex-direction:column}.log-row{display:flex;gap:15px;align-items:center;padding:18px 0;border-bottom:1px solid var(--border)}.log-row:last-child{border:0}.log-row p{font-size:.875rem}.log-row small{font-size:.75rem;color:var(--muted)}.log-row time{margin-left:auto;color:var(--muted);font-size:.75rem;white-space:nowrap}
.modal-backdrop{position:fixed;inset:0;background:#050a12a8;backdrop-filter:blur(5px);z-index:80;display:flex;justify-content:center;align-items:center;padding:24px;animation:fade-in .15s ease}.modal{width:min(540px,100%);max-height:90dvh;overflow-y:auto;background:var(--surface);border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow);padding:26px;animation:slide-in .2s ease}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px;gap:15px}.modal-header h2{font-size:1.1rem}.modal .field:last-child{margin-bottom:0}.drawer-backdrop{justify-content:flex-end;padding:0}.drawer{height:100dvh;max-height:100dvh;width:min(440px,100%);border-radius:0;border-right:0;padding:27px;animation:drawer-in .2s ease}.drawer .section-subtitle{margin-bottom:27px;line-height:1.7}.toast{position:fixed;left:calc(50% + 122px);bottom:26px;transform:translate(-50%,20px);background:var(--surface3);border:1px solid rgba(var(--accent-rgb),.4);box-shadow:var(--shadow);padding:14px 20px;border-radius:11px;z-index:100;display:flex;align-items:center;gap:10px;font-size:.875rem;opacity:0;pointer-events:none;max-width:calc(100vw - 32px);transition:opacity .2s,transform .2s}.toast.visible{opacity:1;transform:translate(-50%,0)}.toast .icon{color:var(--accent)}.mobile-backdrop{display:none}.no-results{padding:25px;color:var(--muted);font-size:.875rem}.notification-list p{font-size:.875rem;margin-bottom:14px}.notification-list small{font-size:.75rem;color:var(--muted)}
[data-theme=light]{color-scheme:light;--bg:#f4f6f8;--side:#fff;--surface:#fff;--surface2:#eef2f5;--surface3:#e3eaf0;--border:#dfe5eb;--text:#20313d;--muted:#657585;--shadow:0 24px 80px #16304420}.theme-light .hero{}.layout-compact .module-card{min-height:150px;padding:15px}.layout-compact .content{max-width:1350px}.layout-compact .stat-card{min-height:115px}.layout-compact .hero{min-height:245px}.layout-compact .activity-list{gap:15px}
@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes slide-in{from{transform:translateY(8px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes drawer-in{from{transform:translateX(30px);opacity:0}to{transform:translateX(0);opacity:1}}
@media(min-width:1550px){.hero{min-height:300px}.hero h2{font-size:2.8rem}.module-card{min-height:188px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 340px}.stats-grid{gap:22px}}
@media(max-width:1200px){.sidebar{width:220px;padding-left:14px;padding-right:14px}.workspace{margin-left:220px}.topbar{padding:0 26px}.content{padding:28px 26px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 275px;gap:18px}.module-card{padding:15px}.stats-grid{gap:12px}.stat-card{padding:16px 13px}.sparkline{width:54px;opacity:.4}.hero{background-position:60% center}.toast{left:calc(50% + 110px)}.characters-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:1020px){.dashboard-grid{grid-template-columns:1fr}.right-column{display:grid;grid-template-columns:1fr 1fr;gap:18px}.calendar-panel{margin-bottom:0}.hero h2{font-size:2.3rem}.form-layout{grid-template-columns:1fr}.top-actions{gap:8px}.breadcrumb>span:first-of-type{display:none}.stats-grid{grid-template-columns:repeat(2,1fr)}.stat-card{padding:18px}.sparkline{width:90px}.hero{background-position:62% center}.wallet{padding-right:12px}.dice-grid{gap:18px}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);visibility:hidden;width:260px;transition:transform .2s,visibility .2s}.sidebar.open{transform:translateX(0);visibility:visible;z-index:70}.mobile-backdrop.open{display:block;position:fixed;inset:0;background:#040910a8;z-index:65;backdrop-filter:blur(3px)}.workspace{margin-left:0}.topbar{height:68px;padding:0 20px;gap:10px;position:sticky;top:0;z-index:30;background:var(--bg)}.mobile-menu{display:inline-grid}.breadcrumb{display:none}.top-actions{gap:8px}.wallet{font-size:.75rem;gap:6px;border-right:0;padding-right:4px}.wallet strong{font-size:.8125rem}.top-actions>.avatar{display:none}.language-switch{padding:8px 4px}.content{padding:25px 20px}.page-heading{margin-bottom:22px;gap:12px;align-items:flex-start}h1{font-size:1.6rem;letter-spacing:-.7px}.page-heading p{font-size:.8125rem;line-height:1.6;margin-top:7px;max-width:240px}.heading-actions{gap:7px;flex-wrap:wrap;justify-content:flex-end}.heading-actions>.secondary{padding:10px;min-width:40px}.heading-actions>.secondary>span{display:none}.demo-badge{font-size:.6rem;padding:6px}.hero{min-height:310px;padding:26px 23px;background-position:65% center;background-size:auto 100%}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#12232199,#12232122)}.hero h2{font-size:2.25rem}.hero p{max-width:265px;font-size:.8125rem}.hero-label{font-size:.6rem;letter-spacing:1.6px}.hero .text-button{font-size:.75rem;margin-left:0}.hero .button-row{gap:13px}.hero-corner{font-size:.55rem;bottom:11px;right:12px}.stats-grid{gap:12px;margin-bottom:26px}.stat-card{padding:15px;min-height:125px}.stat-number{font-size:1.55rem}.stat-top{font-size:.7rem}.stat-bottom{font-size:.6rem;max-width:100px;line-height:1.5}.sparkline{width:50px;right:7px;bottom:15px;opacity:.4}.modules-grid{gap:12px}.module-card{padding:15px;min-height:193px}.module-card p{font-size:.75rem}.module-card h3{font-size:.8125rem}.module-top{margin-bottom:12px}.section-top{gap:10px}.section-top h2{font-size:.9375rem}.search-box{max-width:160px}.search-box input{font-size:.7rem!important}.module-icon{width:34px;height:34px}.right-column{grid-template-columns:1fr 1fr;gap:12px}.panel{padding:18px}.panel-heading h2{font-size:.8125rem}.panel-heading{gap:6px}.calendar-tag{font-size:.5rem}.activity-item{gap:8px}.activity-icon{width:26px;height:26px}.activity-item p{font-size:.7rem}.activity-list{gap:17px}.day-number{font-size:2.4rem}.calendar-date{gap:9px}.calendar-date strong{font-size:.75rem}.calendar-date span{font-size:.65rem}.calendar-meta{font-size:.6rem}.workspace-footer{font-size:.6rem;line-height:1.6}.toast{left:50%;width:max-content;font-size:.8125rem}.form-panel{padding:21px}.form-row{gap:13px}.dice-grid{grid-template-columns:1fr}.dice-result{min-height:240px}.characters-grid{gap:15px}.character-content{padding:16px}.character-stats{gap:6px}.character-stats div{padding:9px 5px}.rule-card{padding:17px;gap:11px}.table-panel .panel-heading{padding:17px 17px 0}.data-table th,.data-table td{padding:13px}.log-row time{font-size:.65rem}.drawer{padding:24px}}
@media(max-width:420px){.right-column{grid-template-columns:1fr}.content{padding:22px 16px}.topbar{padding:0 14px}.top-actions{gap:3px}.wallet{gap:4px}.wallet>.icon{width:15px}.page-heading p{max-width:200px}.heading-actions{max-width:110px}.hero{padding:25px 21px}.hero h2{font-size:2.1rem}.hero .text-button{font-size:.69rem}.hero .primary{font-size:.7rem;padding:10px 12px}.module-card{padding:13px}.module-card h3{font-size:.8rem}.module-bottom .text-button{font-size:.65rem}.module-state{font-size:.6rem}.search-box{max-width:142px}.characters-grid{grid-template-columns:1fr}.form-row{grid-template-columns:1fr;gap:0}.calendar-panel .panel-heading h2{font-size:.875rem}.calendar-date strong{font-size:.875rem}.calendar-date span{font-size:.75rem}.calendar-date{gap:15px}.day-number{font-size:2.8rem}.calendar-meta{font-size:.7rem}.activity-item p{font-size:.8125rem}.activity-time{font-size:.7rem}.activity-list{gap:20px}.workspace-footer>span:last-child{display:none}}
.hero p{font-size:.875rem}.module-card h3{font-size:.9375rem}.module-card p{font-size:.875rem}.module-bottom .text-button,.module-state{font-size:.75rem}.stat-top{font-size:.8125rem}.section-subtitle{font-size:.8125rem}.activity-item p{font-size:.8125rem}.activity-time{font-size:.75rem}.calendar-meta{font-size:.75rem}.calendar-tag{font-size:.65rem}.workspace-footer{font-size:.75rem}.rule-tags .tag{max-width:100%;white-space:normal;overflow-wrap:anywhere}.setting-row>div:first-child{min-width:0}.character-content h2{overflow-wrap:anywhere}.form-layout>*{min-width:0}.color-swatch{position:relative}
@media(max-width:760px){.page-heading h1{font-size:1.5rem}.module-card{min-height:214px}.module-card h3{font-size:.875rem}.module-card p{font-size:.8125rem}.module-bottom .text-button,.module-state{font-size:.75rem}.workspace-footer{font-size:.6875rem}.stat-top{font-size:.8125rem}.right-column .calendar-meta{font-size:.6875rem}}
@media(max-width:420px){.modules-grid{grid-template-columns:1fr}.module-card{min-height:180px;padding:18px}.module-card h3{font-size:.9375rem}.module-card p{font-size:.875rem;max-width:none}.module-bottom .text-button,.module-state{font-size:.8125rem}.module-top{margin-bottom:10px}.rule-card{flex-wrap:wrap}.rule-actions{margin-left:auto}.module-card .module-top .switch{width:37px;height:22px}.module-card .module-top .switch:after{height:16px;width:16px}.module-card .module-top .switch[aria-checked=true]:after{transform:translateX(15px)}.workspace-footer>span:first-child{flex-wrap:wrap;row-gap:2px}.stat-top .icon{width:15px;height:15px}.stat-top{font-size:.75rem}.hero .text-button{font-size:.75rem}}
.login-shell{min-height:100dvh;background:radial-gradient(ellipse at 15% 70%,rgba(var(--accent-rgb),.045),transparent 60%),var(--bg);padding:0 6vw}.login-shell>header{height:105px;display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:1440px;margin:auto}.login-brand{padding:0}.login-grid{max-width:1250px;margin:60px auto 80px;display:grid;grid-template-columns:1.1fr 1fr;gap:110px;align-items:center}.login-story{position:relative;padding-bottom:25px}.login-story h1{font-size:clamp(3.1rem,4.5vw,4.9rem);line-height:1.1;letter-spacing:-2.9px;font-weight:600;position:relative;z-index:1}.login-story h1 em{color:var(--accent);font-style:normal}.login-story>p{font-size:1rem;color:var(--muted);max-width:405px;margin-top:25px;position:relative;z-index:1}.login-story .hero-label{color:var(--muted);font-size:.75rem}.login-realm{height:220px;margin:25px -20px -15px 0;background:url('/assets/realm.svg') center right/cover;border-radius:16px;mask-image:linear-gradient(transparent,black 25%,black 65%,transparent)}.login-feature-list{display:flex;gap:25px;color:var(--muted);font-size:.875rem}.login-feature-list>span{display:flex;align-items:center;gap:9px}.login-feature-list .icon{width:18px;height:18px;color:var(--accent)}.login-card{padding:36px;max-width:480px;background:linear-gradient(135deg,rgba(var(--accent-rgb),.035),transparent 50%),var(--surface);box-shadow:0 25px 90px #00000020;border-radius:20px}.login-card>.module-icon{width:46px;height:46px;margin-bottom:25px;background:rgba(var(--accent-rgb),.09);color:var(--accent)}.login-card>h2{font-size:1.6rem;line-height:1.35;letter-spacing:-.7px}.login-card>p{font-size:.875rem;color:var(--muted);margin-top:14px;line-height:1.8}.login-button{width:100%;margin-top:27px;min-height:48px;font-size:.875rem}.connection-checklist{display:flex;flex-direction:column;gap:13px;margin:23px 0;color:var(--muted);font-size:.8125rem}.connection-checklist>span{display:flex;gap:10px;align-items:center}.connection-checklist .icon{width:16px;height:16px}.connection-checklist .complete .icon{color:var(--accent)}.setup-notice{background:var(--bg);border:1px solid var(--border);border-radius:10px;padding:16px}.setup-notice strong{font-size:.8125rem;font-weight:600}.setup-notice p{font-size:.8125rem;color:var(--muted);line-height:1.7;margin-top:8px}.setup-notice .text-button{font-size:.8125rem;color:var(--accent);margin-top:6px}.login-demo{display:flex;flex-direction:column;text-align:center;margin-top:22px;align-items:center}.login-demo small{color:var(--muted);font-size:.75rem;line-height:1.7;margin-top:6px}.login-demo .text-button{font-size:.875rem}.login-footer{font-size:.75rem;color:var(--muted);padding:25px;text-align:center;border-top:1px solid var(--border);max-width:1440px;margin:auto}.loading-world{min-height:70vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:25px}.loading-world h1{font-size:1.5rem}.loading-gem img{width:70px;height:70px;animation:gem-pulse 1.5s ease infinite}.server-picker{max-width:1200px;margin:45px auto 80px}.server-picker>h1{margin:14px 0;font-size:2.25rem}.server-picker>p{color:var(--muted)}.server-picker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:35px 0}.guild-card{display:flex;flex-direction:column;align-items:flex-start;gap:18px;min-height:250px}.guild-card h2{font-size:1.1rem;overflow-wrap:anywhere}.guild-card>.primary,.guild-card>.secondary{width:100%;margin-top:auto}.guild-icon{width:56px;height:56px;border-radius:15px;background:rgba(var(--accent-rgb),.1);color:var(--accent);display:grid;place-items:center;font-size:1.1rem;font-weight:650;overflow:hidden}.guild-icon img{width:100%;height:100%;object-fit:cover}.setup-list{padding-left:23px;color:var(--muted);font-size:.875rem;line-height:1.8}.setup-list li{padding:0 0 14px 5px}.setup-list~.field .preview-box{margin:0}.connection-status{display:none;align-items:center;gap:10px;border:1px solid #d4ad6d44;background:#d4ad6d0a;color:var(--muted);font-size:.8125rem;line-height:1.6;padding:12px 16px;border-radius:9px;margin-bottom:22px;flex-wrap:wrap}.connection-status.visible{display:flex}.connection-status .icon{width:17px;color:#d4ad6d}.connection-status .text-button{font-size:.75rem;color:var(--accent);padding:0}.demo-exit{font-size:.75rem!important;line-height:1.5;justify-content:flex-start;text-align:left;margin-bottom:10px;color:var(--accent)}.approval-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,1fr);gap:22px;align-items:start}.approval-layout>*{min-width:0}.sheet-filter{width:150px;font-size:.8125rem;min-height:36px;padding:8px 30px 8px 10px}.live-sheet{padding:20px 0;border-bottom:1px solid var(--border)}.live-sheet:first-of-type{padding-top:5px}.live-sheet:last-child{border:0;padding-bottom:0}.live-sheet-top{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.live-sheet-top>div:nth-child(2){flex:1;min-width:100px}.live-sheet h3{font-size:.9375rem;overflow-wrap:anywhere}.live-sheet-top p{font-size:.8125rem;color:var(--muted);margin-top:6px;overflow-wrap:anywhere}.sheet-status{font-size:.75rem;color:#cfb5ed;border:1px solid #af93da33;background:#af93da0d;padding:6px 8px;border-radius:6px;white-space:nowrap}.sheet-status.approved{color:var(--accent);background:rgba(var(--accent-rgb),.07);border-color:rgba(var(--accent-rgb),.2)}.sheet-status.rejected,.sheet-status.delivery_failed{color:var(--danger);background:#f294940d;border-color:#f2949430}.live-sheet-actions{display:flex;gap:9px;justify-content:flex-end;align-items:center;flex-wrap:wrap;margin-top:17px}.live-sheet-actions .text-button{margin-right:auto;font-size:.8125rem}.live-sheet-actions .primary,.live-sheet-actions .secondary{font-size:.75rem;padding:9px 12px;min-height:35px}.rejection-note{display:flex;gap:9px;font-size:.8125rem;color:var(--muted);background:var(--bg);border:1px solid var(--border);padding:12px;border-radius:8px;margin-top:15px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.resource-checks{padding:0;border:0;margin:0 0 23px;min-width:0}.resource-checks legend{font-size:.875rem;font-weight:500;padding:0;margin-bottom:8px}.resource-checks>div{max-height:170px;overflow-y:auto;border:1px solid var(--border);border-radius:8px;background:var(--bg);padding:8px 12px;margin-top:11px}.resource-checks label{display:flex;align-items:center;gap:10px;font-size:.875rem;padding:9px 0}.resource-checks input{width:16px;height:16px;accent-color:var(--accent);flex-shrink:0}.resource-checks span{overflow-wrap:anywhere;min-width:0}.form-error{font-size:.875rem;color:var(--danger);line-height:1.7;margin-top:12px}.approval-steps{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin:25px 0}.approval-steps span{display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:10px;background:var(--bg);padding:16px;font-size:.875rem}.approval-steps .icon{color:var(--accent)}
@keyframes gem-pulse{50%{opacity:.4;transform:translateY(-5px)}}
@media(max-width:1200px){.login-grid{gap:60px;margin-top:35px}.login-shell{padding:0 5vw}.approval-layout{grid-template-columns:1fr}.server-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.login-shell{padding:0 22px}.login-shell>header{height:85px}.login-grid{grid-template-columns:1fr;gap:25px;margin:25px auto 45px;max-width:500px}.login-story{padding-bottom:0}.login-story h1{font-size:3.2rem;letter-spacing:-2px}.login-story>p{font-size:.9375rem;margin-top:18px}.login-realm{height:160px;margin:10px 0 -10px}.login-feature-list{display:none}.login-card{padding:27px;max-width:none}.login-card>h2{font-size:1.4rem}.login-card>.module-icon{margin-bottom:18px}.login-footer{padding:20px 0}.server-picker{margin-top:25px}.server-picker>h1{font-size:1.8rem}.server-picker-grid{grid-template-columns:1fr}.guild-card{min-height:230px}.server-picker>p{font-size:.875rem}.approval-layout{gap:18px}.live-sheet-actions{gap:7px}.sheet-status{font-size:.6875rem}.login-shell>header>.top-actions>span{display:none}.login-shell>header .brand{font-size:1.5rem}.approval-steps{grid-template-columns:1fr}.page-heading:has(+.info-box) .heading-actions>.primary{font-size:.75rem;padding:9px 11px}.sheet-filter{width:135px}.connection-status{padding:12px}.login-story .hero-label{font-size:.6875rem}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Connected shop and configurable character sheets */
.economy-banner{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 30px;border:1px solid rgba(var(--accent-rgb),.24);border-radius:var(--radius);background:radial-gradient(ellipse at top right,rgba(var(--accent-rgb),.11),transparent 70%),var(--surface);margin-bottom:22px}.economy-banner h2{font-size:1.7rem;margin:10px 0 7px}.economy-banner p{color:var(--muted);font-size:.875rem}.economy-wallet{padding-left:24px;text-align:right;border-left:1px solid var(--border)}.economy-wallet>span{display:flex;align-items:center;justify-content:flex-end;gap:7px;font-size:.8rem;color:var(--muted)}.economy-wallet .icon{width:14px}.economy-wallet strong{display:block;font-size:2rem;letter-spacing:-1px;color:var(--accent);margin-top:10px;white-space:nowrap}.economy-tabs{display:flex;gap:6px;overflow:auto;border-bottom:1px solid var(--border);padding-bottom:12px;margin:24px 0;scrollbar-width:thin}.economy-tabs button{border-radius:8px;background:transparent;padding:11px 14px;white-space:nowrap;color:var(--muted);font-size:.875rem}.economy-tabs button:hover{background:var(--surface2);color:var(--text)}.economy-tabs button.selected{background:rgba(var(--accent-rgb),.1);color:var(--accent)}.economy-tabs button span{border-radius:5px;padding:2px 6px;background:var(--surface3);margin-left:8px;font-size:.75rem}.economy-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:start}.economy-layout>section,.schema-layout>*{min-width:0}.shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.shop-card{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:var(--surface)}.shop-item-art{height:140px;position:relative;display:grid;place-items:center;background:radial-gradient(ellipse,#69dfb014,transparent 75%),var(--surface2)}.shop-item-art>span:first-child{font-size:3.4rem;filter:drop-shadow(0 10px 12px #0003)}.shop-item-art.rare{background:radial-gradient(ellipse,#7ea9f433,transparent 75%),var(--surface2)}.shop-item-art.epic{background:radial-gradient(ellipse,#b79aee33,transparent 75%),var(--surface2)}.shop-item-art.legendary{background:radial-gradient(ellipse,#e4be7733,transparent 75%),var(--surface2)}.rarity-label{position:absolute;top:13px;right:14px;color:var(--muted);font-size:.75rem;background:var(--surface);border:1px solid var(--border);border-radius:6px;padding:4px 7px}.shop-card-body{padding:21px}.shop-item-category{font-size:.75rem;text-transform:uppercase;letter-spacing:1px;color:var(--muted)}.shop-card h3,.inventory-card h3{font-size:1.05rem;margin:10px 0}.shop-card-body>p,.inventory-card>p{color:var(--muted);font-size:.875rem;min-height:44px;white-space:pre-wrap;overflow-wrap:anywhere}.shop-card-body>.primary,.shop-card-body>.secondary{width:100%}.shop-price-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 17px}.shop-price-row strong{color:var(--accent);font-size:1.06rem}.shop-price-row>span{color:var(--muted);font-size:.8rem}.item-disabled .shop-item-art{opacity:.55}.inventory-item-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.inventory-emoji{font-size:2.1rem;flex-shrink:0}.inventory-card .button-row{margin-top:24px;flex-wrap:wrap}.trade-access{display:flex;gap:8px;font-size:.875rem;color:var(--muted);margin:18px 0}.trade-access.allowed{color:var(--accent)}.quota-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:17px 0;font-size:.8rem}.quota-row>span{color:var(--muted)}.quota-row strong{white-space:nowrap;font-weight:550}.economy-note{margin-bottom:22px}.economy-section-note{margin:0 0 20px;line-height:1.6}.market-section{margin-bottom:22px}.market-row{display:flex;align-items:center;gap:16px;padding:22px 0;border-bottom:1px solid var(--border);flex-wrap:wrap}.market-row:last-child{border-bottom:0;padding-bottom:0}.market-item-info{flex:1;min-width:150px}.market-item-info p{font-size:.8rem;color:var(--muted);margin:6px 0 9px}.market-row>strong{font-size:.95rem;color:var(--accent)}.market-buttons{display:flex;gap:8px;flex-wrap:wrap}.market-buttons button{font-size:.8rem}.ledger-item{display:block;color:var(--muted);margin-top:6px}.econ-checkbox{display:flex;align-items:center;gap:12px;color:var(--text);font-size:.875rem;margin:20px 0;line-height:1.5}.econ-checkbox input{width:18px;height:18px;accent-color:var(--accent);flex-shrink:0}.role-overrides{display:grid;gap:16px;margin:22px 0}.role-override{display:grid;grid-template-columns:minmax(120px,1.4fr) repeat(2,minmax(85px,1fr)) 36px;gap:10px;align-items:end;padding:15px;background:var(--surface2);border:1px solid var(--border);border-radius:10px}.role-override .field{margin:0}.role-override .field label{font-size:.75rem;line-height:1.5}.role-override .icon-button{margin-bottom:3px}.purchase-total{display:flex;align-items:center;justify-content:space-between;padding:20px;border:1px solid var(--border);border-radius:10px;background:var(--surface2);margin-top:24px}.purchase-total span{color:var(--muted)}.purchase-total strong{color:var(--accent);font-size:1.2rem}.schema-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,1fr);gap:24px;align-items:start}.schema-preview>h2{margin:12px 0 24px}.schema-preview .field{margin-bottom:22px}.schema-fields{display:grid;gap:12px;margin-top:20px}.schema-field{display:flex;align-items:center;gap:14px;padding:17px;border:1px solid var(--border);border-radius:11px;background:var(--surface2)}.schema-field>div:nth-child(2){flex:1;min-width:0}.schema-field strong{font-size:.9rem;overflow-wrap:anywhere}.schema-field p{font-size:.8rem;color:var(--muted);margin:5px 0}.schema-field code{font-size:.75rem;color:var(--muted)}.schema-field-actions{display:flex;gap:2px}.field-label-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}.field-label-row label{margin:0!important}.field-label-row>span{font-size:.72rem;color:var(--muted)}.schema-submit-divider{border-top:1px solid var(--border);padding-top:22px;margin:24px 0}.sheet-value-list{display:grid;gap:12px;margin:22px 0}.sheet-value-list>div{display:flex;justify-content:space-between;gap:20px;padding:15px;border:1px solid var(--border);border-radius:9px}.sheet-value-list span{color:var(--muted);font-size:.875rem}.sheet-value-list strong{font-size:.875rem;font-weight:500;white-space:pre-wrap;overflow-wrap:anywhere}.schema-preview .field input,.schema-preview .field select,.schema-preview .field textarea{background:var(--surface2)}
@media(min-width:1500px){.shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1150px){.economy-layout{grid-template-columns:minmax(0,1fr)}.economy-layout>aside{display:grid;grid-template-columns:1fr 1fr;align-items:start}.schema-layout{grid-template-columns:minmax(0,1fr)}.schema-layout>aside{display:grid;grid-template-columns:minmax(0,1fr)}.role-override{grid-template-columns:minmax(120px,1.4fr) repeat(2,minmax(85px,1fr)) 36px}}
@media(max-width:600px){.economy-banner{padding:22px;align-items:flex-start;flex-direction:column;gap:22px}.economy-wallet{border-left:0;border-top:1px solid var(--border);padding:18px 0 0;text-align:left;width:100%}.economy-wallet>span{justify-content:flex-start}.economy-wallet strong{font-size:1.8rem}.shop-grid{grid-template-columns:minmax(0,1fr)}.shop-item-art{height:140px}.economy-layout>aside{display:flex}.economy-tabs{margin:18px 0}.economy-tabs button{padding:11px}.schema-field{padding:13px;gap:10px}.schema-field .module-icon{display:none}.schema-field-actions{flex-direction:column}.role-override{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 36px;padding:12px}.role-override>.field:first-child{grid-column:1/-1}.role-override .field label{min-height:36px}.market-row{gap:12px}.market-buttons{width:100%}.market-buttons button{flex:1}.sheet-value-list>div{flex-direction:column;gap:10px}.schema-layout .section-top{align-items:flex-start;gap:15px;flex-wrap:wrap}.schema-layout .section-top button{font-size:.8rem}.economy-layout,.schema-layout{gap:20px}}
.sheet-order-list{display:grid;gap:8px;margin:20px 0}.sheet-order-list>div{display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:9px;padding:9px 12px;background:var(--surface2)}.sheet-order-list>div>span{font-size:.75rem;color:var(--muted);min-width:20px}.sheet-order-list strong{flex:1;font-size:.875rem;font-weight:500;overflow-wrap:anywhere}.sheet-order-list .icon-button{flex-shrink:0;font-size:1.2rem}
.command-locales{display:block;font-size:.75rem;line-height:1.7;margin-top:8px;color:var(--muted);white-space:normal;overflow-wrap:anywhere}textarea[readonly]{color:var(--muted);background:var(--surface2)}
.shop-item-art>[data-item-image]{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:12px;z-index:1}.shop-item-art.item-image-ready>.item-image-fallback{visibility:hidden}.inventory-emoji:has(.small-item-image){position:relative;display:inline-block;width:52px;height:52px;line-height:52px;text-align:center}.small-item-image{position:absolute;inset:0;object-fit:contain;width:52px;height:52px;background:var(--surface);border-radius:9px}.inventory-emoji.item-image-ready{font-size:0}
.premium-facts{display:grid;gap:18px;margin:24px 0}.premium-facts>div{display:flex;justify-content:space-between;gap:18px;padding-bottom:14px;border-bottom:1px solid var(--border)}.premium-facts dt{color:var(--muted)}.premium-facts dd{margin:0;text-align:right;overflow-wrap:anywhere}.setup-list{overflow-wrap:anywhere}

@media(max-width:420px){.topbar{gap:6px}.top-actions{gap:6px}.top-actions .wallet{padding-right:6px;gap:5px}.top-actions>.avatar{display:none}}

.rpg-list-row{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--border)}.rpg-list-row>div{flex:1;min-width:0;overflow-wrap:anywhere}.rpg-list-row h3{font-size:.95rem}.rpg-list-row p{margin-top:7px}.rpg-section{margin:28px 0 18px}.rpg-message-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.8fr);gap:28px}.rpg-message-layout>aside{position:sticky;top:20px;align-self:start}.discord-embed{background:var(--surface2);border-left:4px solid var(--accent);padding:18px;border-radius:5px;overflow-wrap:anywhere;line-height:1.65}.discord-embed h3{margin:0 0 12px;font-size:1.1rem}.discord-embed small{display:block;margin-top:14px;font-size:.73rem}.rpg-pre-content{white-space:pre-wrap;margin:14px 0;font-size:.9rem}.embed-image{display:block;max-width:100%;max-height:320px;border-radius:6px;margin-top:16px}.embed-thumbnail{float:right;max-width:70px;max-height:70px;margin-left:14px}.embed-fields{display:flex;flex-wrap:wrap;gap:14px;margin-top:16px}.embed-fields>div{width:100%}.embed-fields>div.inline{flex:1;min-width:90px}.embed-fields p{margin-top:4px}.rpg-message-layout textarea{min-height:100px}@media(max-width:1000px){.rpg-message-layout{grid-template-columns:minmax(0,1fr)}.rpg-message-layout>aside{position:static}}

/* RPG progression and plan comparison */
.rpg-rule-card{padding:22px;border:1px solid var(--border);border-radius:16px;margin-bottom:24px;background:var(--surface)}
.rpg-rule-card h2,.rpg-rule-card h3{margin-bottom:16px}.rpg-rule-card .small{line-height:1.7;margin:12px 0}.rpg-stat-grid,.premium-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.premium-intro{margin-bottom:24px}.premium-comparison article{padding:22px;border:1px solid var(--border);border-radius:16px}.premium-comparison article:last-child{background:rgba(167,139,250,.07)}.premium-comparison h3{margin:16px 0 10px}.premium-comparison p{line-height:1.9;color:var(--muted)}.backup-list{line-height:1.8;overflow-wrap:anywhere;margin-top:16px}.backup-list a{color:var(--accent)}@media(max-width:640px){.rpg-stat-grid,.premium-comparison{grid-template-columns:1fr}.rpg-rule-card{padding:16px}.page-heading{flex-wrap:wrap;gap:12px}}

.role-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:22px}.role-card h2{display:flex;align-items:center;gap:10px;overflow-wrap:anywhere}.role-color-dot{display:inline-block;width:12px;height:12px;border-radius:50%;flex-shrink:0;box-shadow:0 0 0 3px #ffffff08}.role-permission-summary{font-size:.82rem;color:var(--muted);line-height:1.8;margin-top:16px;overflow-wrap:anywhere}.role-card .token-list{margin-top:14px}.role-live-preview{margin:8px 0 22px}.role-preview-pill{display:inline-flex;align-items:center;gap:9px;border:1px solid currentColor;background:var(--surface2);padding:8px 14px;border-radius:999px;font-weight:600}.item-image-editor{border:1px solid var(--border);background:var(--surface2);padding:20px;border-radius:14px;margin:22px 0}.item-image-editor h3{margin-bottom:12px}.item-image-editor input[type=file]{padding:12px;width:100%;max-width:100%;font-size:.8rem}.item-image-preview{margin:16px 0;display:grid;place-items:center;gap:8px}.item-image-preview img{max-height:220px;max-width:100%;object-fit:contain;border-radius:12px}.item-image-preview.hidden{display:none}@media(max-width:900px){.role-card-grid{grid-template-columns:1fr}.role-card .panel-heading{flex-wrap:wrap;gap:12px}}

/* Optional RPG modules, private player interface and installable app */
.optional-module-grid,.equipment-settings-grid,.adventure-card-grid,.app-setup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:22px 0}.optional-module-card{padding:20px;border:1px solid var(--border);border-radius:14px;background:var(--surface2)}.adventure-definitions{margin:24px 0 36px}.adventure-line-fieldset{padding:18px;border:1px solid var(--border);border-radius:14px;margin:22px 0}.adventure-line-fieldset legend{padding:0 8px;font-weight:650}.adventure-form-line{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}.adventure-form-line:has(select[name^="ranks:"]){grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,2fr)}.player-hud{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 24px;border:1px solid rgba(var(--accent-rgb),.3);border-radius:16px;background:linear-gradient(110deg,rgba(var(--accent-rgb),.08),var(--surface));margin-bottom:22px}.player-hud strong{display:block}.player-hud .eyebrow{font-size:.65rem;margin-bottom:7px}.private-health{min-width:180px;flex:1;max-width:420px}.private-health>div{display:flex;justify-content:space-between;margin-bottom:10px}.private-health progress,.quest-objective progress{display:block;width:100%;height:9px;border:0;accent-color:var(--accent)}.hud-money{display:flex;align-items:center;gap:10px;color:var(--accent)}.hud-money .icon{width:22px}.equipment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0}.equipment-slot{min-height:200px;display:flex;align-items:center;flex-direction:column;gap:12px;text-align:center;padding:20px;border:1px dashed var(--border);border-radius:16px;background:var(--surface)}.equipment-slot.filled{border-style:solid;background:radial-gradient(ellipse at top,rgba(var(--accent-rgb),.06),transparent),var(--surface)}.equipment-art{height:80px;display:grid;place-items:center}.equipment-art img{max-width:100%;width:80px;height:80px;object-fit:contain;border-radius:10px}.equipment-emoji{font-size:2rem;color:var(--muted)}.slot-label{font-size:.75rem;color:var(--muted)}.attribute-comparison{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.attribute-comparison>div{display:flex;justify-content:space-between;gap:10px;background:var(--surface2);padding:12px;border-radius:9px}.player-inventory-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:18px}.player-item p{font-size:.85rem;line-height:1.7;color:var(--muted);margin:10px 0}.adventure-card h2{margin-bottom:12px}.adventure-card>p{color:var(--muted);font-size:.85rem;line-height:1.8;margin:12px 0}.quest-objective{display:grid;grid-template-columns:1fr auto;gap:8px;margin:18px 0}.quest-objective progress{grid-column:1/-1}.reward-chips,.recipe-materials{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.reward-chips span,.recipe-materials span{font-size:.75rem;border:1px solid var(--border);border-radius:8px;padding:7px 10px;background:var(--surface2)}.profession-list{display:flex;flex-wrap:wrap;gap:20px;margin-top:20px}.profession-list article{flex:1;min-width:170px;padding:16px;border:1px solid var(--border);border-radius:12px}.profession-list p{margin:10px 0;color:var(--muted);font-size:.8rem}.world-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.world-status-grid h2{font-size:1.6rem;margin:14px 0}.world-weather{background:linear-gradient(140deg,#8270c822,var(--surface))}.faction-score{display:flex;gap:12px;align-items:center;margin:22px 0}.faction-score strong{font-size:2rem;color:var(--accent)}.faction-score span{font-size:.8rem;color:var(--muted)}.trade-offers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}.trade-offers>div{padding:15px;border:1px solid var(--border);border-radius:12px;overflow-wrap:anywhere}.trade-offers span,.trade-offers strong,.trade-offers small{display:block;margin-bottom:12px}.trade-offers span,.trade-offers small{font-size:.75rem;color:var(--muted)}.trade-offers ul{font-size:.8rem;padding-left:18px;line-height:1.8}.app-preview-icon{width:80px;border-radius:18px;margin-bottom:22px}.app-setup-grid h2{margin-bottom:12px}.app-server-url{display:block;overflow-wrap:anywhere;border:1px solid var(--border);padding:12px;border-radius:10px;margin:12px 0;color:var(--accent)}.app-setup-grid .small{line-height:1.8}.adventure-card-grid:empty{display:none}@media(max-width:1000px){.adventure-card-grid{grid-template-columns:1fr}.attribute-comparison{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.optional-module-grid,.equipment-settings-grid,.app-setup-grid,.world-status-grid{grid-template-columns:1fr}.equipment-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.equipment-slot{padding:15px;min-height:190px}.player-hud{flex-wrap:wrap;gap:16px;padding:18px}.private-health{min-width:100%;order:3}.attribute-comparison,.adventure-form-line,.adventure-form-line:has(select[name^="ranks:"]){grid-template-columns:1fr}.trade-offers{grid-template-columns:1fr}.adventure-card .button-row{gap:8px}.app-setup-grid .primary,.app-setup-grid .secondary{white-space:normal;overflow-wrap:anywhere}}

.app-update-status{margin:18px 0}.app-update-status.update-available{color:var(--accent)}.app-install-link{margin:18px 0}.app-update-badge{font-size:.75rem;padding:8px 10px;white-space:nowrap}

@media(max-width:640px){.app-update-badge{font-size:0;width:32px;padding:8px}.app-update-badge:before{content:"↻";font-size:16px}}

.plan-summary{margin:0 0 20px;padding:13px 17px;border:1px solid var(--border,#2c3e4b);border-radius:11px;color:var(--muted,#90a7b7);font-size:12px;line-height:1.7;background:var(--panel,#14202b)}.plan-summary a{color:var(--accent,#7ddeaf);margin-left:8px;text-decoration:underline}
.embed-compose-layout{grid-template-columns:minmax(0,1fr) minmax(260px,.75fr);align-items:start}.embed-compose-layout>div{min-width:0}.embed-compose-layout aside{max-height:calc(100vh - 110px);overflow:auto;padding:2px 8px 12px 2px}.embed-text-block{margin:8px 0 24px}.embed-label-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}.embed-label-row label{margin:0}.embed-toolbar{display:flex;flex-wrap:wrap;gap:3px;padding:5px;border:1px solid var(--border);border-bottom:0;border-radius:10px 10px 0 0;background:var(--surface2)}.embed-toolbar button{min-width:34px;min-height:34px;border:0;border-radius:6px;color:var(--text);background:transparent;cursor:pointer}.embed-toolbar button:hover,.embed-toolbar button:focus-visible{background:var(--surface);outline:2px solid var(--accent)}.embed-toolbar+textarea{border-radius:0 0 10px 10px!important;margin:0 0 9px}.embed-compose-card{border:1px solid var(--border);border-radius:14px;overflow:hidden;margin-bottom:18px;background:var(--surface)}.embed-compose-card>header{display:flex;align-items:center;gap:10px;padding:13px 17px;background:var(--surface2);border-bottom:1px solid var(--border)}.embed-compose-card>header h2{font-size:.95rem;margin:0}.embed-number{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:var(--accent);color:var(--bg);font-weight:700;font-size:.8rem}.embed-card-actions{display:flex;margin-left:auto;gap:4px}.embed-card-body{padding:20px}.embed-card-body .field{margin-bottom:18px}.embed-plus{display:grid;place-items:center;width:30px;height:30px;flex-shrink:0;border:1px solid var(--border);border-radius:8px;background:var(--surface2);color:var(--accent);cursor:pointer;font-size:20px}.embed-plus:hover{border-color:var(--accent)}.embed-section{border-left:3px solid var(--accent);background:var(--surface2);padding:15px;border-radius:0 10px 10px 0;margin-bottom:16px}.embed-section>input{margin-bottom:12px}.embed-section>label{display:block;margin-bottom:8px}.embed-section .econ-checkbox{margin:8px 0 0}.embed-media{margin-top:22px;border-top:1px solid var(--border);padding-top:16px}.embed-media summary{cursor:pointer;font-weight:600;font-size:.9rem;padding:5px 0}.embed-media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;margin-top:16px}.embed-media-grid .field{margin:0}.embed-color-control{display:flex;align-items:center;gap:10px;border:1px solid var(--border);padding:9px;border-radius:10px;min-height:50px}.embed-color-control input[type=color]{padding:0;width:42px;height:30px;border:0;cursor:pointer}.embed-color-control code{font-size:.8rem;color:var(--text)}.embed-add-card{width:100%;padding:16px;border:1px dashed var(--border);border-radius:12px;background:transparent;color:var(--accent);font-weight:600;cursor:pointer;margin:0 0 16px}.embed-add-card span{margin-left:12px;font-size:.8rem;color:var(--muted)}.embed-send-bar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;border-top:1px solid var(--border);padding-top:20px;margin-top:20px}.embed-over-limit{color:#ff6b81!important}.embed-compose-layout .discord-embed+.discord-embed{margin-top:12px}.embed-quote{display:inline-block;border-left:3px solid var(--muted);padding-left:9px}.embed-spoiler{background:var(--surface);border-radius:3px;padding:0 4px}.embed-automation-settings{border-bottom:1px solid var(--border);padding-bottom:14px;margin-bottom:22px}@media(max-width:1150px){.embed-compose-layout{grid-template-columns:minmax(0,1fr)}.embed-compose-layout>aside{position:static;max-height:none;overflow:visible}}@media(max-width:600px){.embed-media-grid{grid-template-columns:minmax(0,1fr)}.embed-card-body{padding:14px}.embed-send-bar .button-row{width:100%;flex-wrap:wrap}.embed-send-bar .primary{width:100%}.embed-section{padding:12px}.embed-toolbar button{min-width:36px;min-height:36px}}
/* RPG loadout uses fixed 3 x 4 positions, including disabled spaces. */
.equipment-config-preview{display:grid;grid-template-columns:repeat(3,68px);grid-template-rows:repeat(4,68px);gap:10px;width:max-content;max-width:100%;margin:22px auto 30px;padding:18px;border:1px solid var(--border,#2b3746);border-radius:18px;background:#111c28}.equipment-config-icon{display:grid;place-items:center;border:1px solid #566678;border-radius:9px;color:#a1b1c0;background:#162332}.equipment-config-icon svg{width:70%;height:70%}.equipment-config-icon.slot-off{opacity:.18;border-style:dashed}.game-equipment-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-width:580px;margin:24px auto;padding:20px;gap:14px;border-radius:22px;background:radial-gradient(ellipse,#2a3945,#101923)}.game-equipment-grid .equipment-slot{min-width:0;aspect-ratio:1;border:1px solid #526675;box-shadow:inset 0 2px 8px #0006;background:#111c28;padding:12px;border-radius:13px}.game-equipment-grid .equipment-art{height:auto;min-height:0;flex:1}.game-equipment-grid .equipment-art svg{width:58px;max-width:80%;height:58px;color:#8d9eaa}.game-equipment-grid .equipment-slot strong{font-size:.8rem}.game-equipment-grid .equipment-slot button{padding:6px 10px;font-size:.8rem}@media(max-width:600px){.game-equipment-grid{gap:9px;padding:12px}.game-equipment-grid .equipment-slot{padding:8px}.game-equipment-grid .equipment-art svg{height:38px}.game-equipment-grid .equipment-slot button{font-size:.72rem}}
.character-portrait{margin:20px 0;padding:20px;border:1px solid var(--border,#2b3b4c);border-radius:14px;background:#111c2677}.character-portrait h3{margin:0 0 14px}.character-portrait-image{display:block;max-width:100%;width:auto;max-height:420px;object-fit:contain;margin:16px auto;border-radius:12px}.portrait-file-button{position:relative;display:inline-flex;cursor:pointer;margin-right:8px}.portrait-file-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.portrait-file-button:focus-within{outline:2px solid var(--accent,#81dfc3);outline-offset:3px}[data-portrait-notice]{margin-top:14px;font-size:.9rem}
