* { box-sizing:border-box }
.startup-shell { max-width:680px; margin:0 auto; padding:16px; }
.startup-shell h1 { margin:0 0 16px; font-size:20px; }
.startup-cards { display:grid; gap:12px; }
.startup-cards>div { height:120px; border-radius:12px; background:linear-gradient(110deg,#e8edf5,#f8fafc); }
:root { font-family:"Microsoft YaHei",system-ui,sans-serif; color:#18243a; --accent:#315ff4; --background:#f3f6fb; --radius:16px }
body { margin:0; background:var(--background); min-height:100vh }
.pay-jump { display:block; justify-self:end; padding:10px 16px; border-radius:9px; background:var(--accent); color:#fff; text-align:center }
.payment-link { overflow-wrap:anywhere; font-size:13px }
.admin .recharge-note { display:block; max-width:220px; white-space:normal; overflow-wrap:anywhere }
#recharge-dialog .card { border:0; margin:0; padding:24px; gap:14px }
#recharge-dialog h2 { padding-right:32px }
#recharge-dialog .line { flex-wrap:wrap; gap:10px }
#recharge-dialog .actions,#recharge-dialog .form>button,#recharge-dialog .card>button { justify-self:end; margin-left:auto }
#admin-progress { position:fixed; top:12px; left:50%; transform:translateX(-50%); z-index:20; pointer-events:none; padding:6px 12px; border-radius:8px; color:#fff; background:#263750; font-size:13px }
h1,h2,h3,p { margin:0 0 10px }
h1 { font-size:clamp(26px,4vw,38px) }
h2 { font-size:21px }
h3 { font-size:16px }
p,small { color:#526078 }
small { font-size:12px }
a { color:var(--accent); text-decoration:none }
button,input,select,textarea { font:inherit }
button { border:1px solid #d7dfea; border-radius:9px; padding:9px 13px; background:#fff; color:#24354f; cursor:pointer }
button:hover { border-color:var(--accent); color:var(--accent) }
button:disabled { opacity:.55; cursor:wait }
button.primary { color:white; background:var(--accent); border-color:var(--accent); font-weight:700 }
button.primary:hover { filter:brightness(.91) }
input,select,textarea { padding:10px 11px; border:1px solid #d5dce7; background:white; border-radius:9px; min-width:0; color:#1b2943 }
input[type=color] { height:43px; padding:4px }
textarea { min-height:80px; resize:vertical }
:focus-visible { outline:3px solid #4882fb; outline-offset:3px }
.line,.actions { display:flex; align-items:center; gap:12px }
.line { justify-content:space-between }
.actions { flex-wrap:wrap }
.grow { flex:1; min-width:0 }
.card { background:#fff; border:1px solid #e3e8f0; border-radius:var(--radius); padding:18px; min-width:0 }
.empty { padding:42px 15px; text-align:center; color:#56647a; background:#fff8; border:1px dashed #cdd6e3; border-radius:var(--radius) }
.form { display:grid; gap:14px; align-content:start }
.form h2,.form h3,.form p { margin:0 }
.form > button { justify-self:start }
.form-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(128px,1fr)); gap:12px }
label { display:grid; gap:6px; color:#33425c; font-weight:600; font-size:14px }
.check { display:flex; align-items:center; gap:9px; padding:10px 0 }
.check input { accent-color:var(--accent) }
.badge,.tag { display:inline-block; flex-shrink:0; padding:5px 9px; border-radius:6px; background:#eef2fb; color:#31508c; font-size:12px }
.tag.dark { background:#212437; color:#ffe39c }
#toast { position:fixed; z-index:30; inset:auto 15px 82px auto; max-width:calc(100vw - 30px); pointer-events:none; opacity:0; color:#fff; background:#172137; border-radius:10px; padding:12px 17px; transition:opacity .15s }
#toast.show { opacity:1 }
dialog { width:min(92vw,560px); max-height:calc(100dvh - 24px); overflow:auto; border:0; border-radius:18px; padding:0; box-shadow:0 20px 85px #1116; color:inherit }
dialog::backdrop { background:#10182b88 }
.dialog-close { position:absolute; right:12px; top:10px }
.dialog-close button { border:0; font-size:24px; padding:0 8px }
.detail { padding:24px; display:grid; gap:12px }
.detail h2,.detail h3,.detail p { margin:0 }
.detail strong { font-size:22px; color:var(--accent) }
.detail form:not(.dialog-close) { display:grid; gap:10px }
.detail .badge { justify-self:start }
.preserve,.message p { white-space:pre-wrap; overflow-wrap:anywhere }
.front { --front-width:900px }
.front-header { display:flex; justify-content:space-between; align-items:center; padding:14px max(16px,calc((100% - var(--front-width))/2)); background:#fff; border-bottom:1px solid #dce4ec; gap:8px }
.front-header button { border:0; background:transparent; color:inherit }
.front-header-actions { margin-left:auto; display:flex; align-items:center; flex:none; gap:4px }
.front-header-actions .header-messages { position:relative; display:grid; place-items:center; padding:6px }
.header-messages svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linejoin:round }
.header-messages .count { top:-1px; left:auto; right:-3px }
.front-header > button:first-child { flex:1; min-width:0; padding-inline:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:800; font-size:clamp(16px,4.5vw,20px); text-align:left }
.front-header-actions > button[data-page="account"] { max-width:90px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.front-header button span { color:var(--accent) }
.front-content { max-width:var(--front-width); margin:auto; padding:20px 16px 104px }
.preview-bar { text-align:center; background:#ffebad; color:#664b00; padding:7px; font-size:13px }
.studio-shell { display:grid; max-width:var(--studio-width); margin:auto; gap:var(--studio-gap); padding:14px }
.studio-shell .front-content { width:100%; max-width:none; min-width:0; padding:0 }
.studio-shell-side { grid-template-columns:minmax(110px,170px) minmax(0,1fr); align-items:start }
.studio-nav { display:flex; gap:7px; flex-wrap:wrap; padding:8px; background:white; border-radius:var(--radius) }
.studio-nav-side { display:grid; position:sticky; top:10px }
.studio-nav-bottom { position:fixed; z-index:5; inset:auto 0 0; justify-content:center; border-top:1px solid #e2e8f0 }
.studio-shell-bottom { padding-bottom:85px }
.studio-nav button { display:flex; align-items:center; justify-content:center; gap:6px; position:relative; white-space:nowrap }
.studio-nav button[aria-current=page] { color:white; background:var(--accent); border-color:var(--accent) }
.studio-nav svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8 }
.studio-layout,.studio-orders { display:grid; gap:var(--studio-gap) }
.studio-row { display:grid; grid-template-columns:repeat(var(--columns),minmax(0,1fr)); gap:var(--studio-gap); align-items:start }
.studio-block { min-width:0 }
.studio-block .section { margin-top:0 }
.studio-orders-grid { grid-template-columns:repeat(auto-fit,minmax(min(235px,100%),1fr)) }
.studio-order-card h3,.studio-order-card p { margin:8px 0 }
.studio-editor { display:grid; gap:10px }
.studio-editor fieldset { min-width:0; padding:10px; border:1px solid #dce3ee; border-radius:8px }
.studio-editor textarea { width:100%; font-family:monospace; resize:vertical }
.studio-row-editor { display:grid; gap:8px; margin:8px 0 }
@media (max-width:620px) {
  .studio-shell-side,.studio-row { grid-template-columns:minmax(0,1fr) }
  .studio-nav-side { position:static; display:flex }
  .studio-nav-bottom { flex-wrap:nowrap; overflow:auto; justify-content:flex-start }
}
.bottom { position:fixed; z-index:5; bottom:0; left:50%; width:min(100%,var(--front-width)); transform:translateX(-50%); display:flex; justify-content:space-around; background:#fff; border:1px solid #e0e4ec; border-radius:16px 16px 0 0; padding:3px 6px max(4px,env(safe-area-inset-bottom)); box-shadow:0 -5px 24px #1721370a }
.bottom button { flex:1; position:relative; border:0; font-size:12px; color:#526078; padding:4px 2px 7px; background:transparent }
.bottom button span { display:block; font-size:25px; line-height:1.2; margin-bottom:3px }
.bottom button.selected { color:var(--accent); font-weight:800 }
.count { position:absolute; top:1px; left:60%; background:#d52a54; color:white; font-size:10px; border-radius:20px; padding:2px 5px }
.hero { min-height:175px; overflow:hidden; position:relative; display:flex; align-items:center; border-radius:var(--radius); color:white; background:linear-gradient(118deg,#123e3d,var(--accent)); margin-bottom:16px }
.hero img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover }
.hero:has(img)::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#161628bc,#16162820) }
.hero-copy { position:relative; z-index:1; padding:26px }
.hero h1 { margin:8px 0 }
.hero small,.hero p { color:inherit }
.hero small { letter-spacing:.15em }
.tiles,.map-strip,.status-tabs { display:flex; gap:8px; overflow:auto; padding:4px 0 12px }
.tiles button { min-width:88px; font-size:13px; border:0; padding:10px; border-radius:var(--radius) }
.tiles span { display:grid; place-items:center; margin:0 auto 8px; width:40px; height:40px; color:#fff; border-radius:10px; background:#162944; font-size:23px }
.tiles button.selected,.map-strip button.selected,.status-tabs button.selected { color:var(--accent); border-color:var(--accent); font-weight:800 }
.filters { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px }
.filters input { flex:1 1 150px }
.filters select { flex:0 1 auto }
.section { margin:12px 0 15px }
.section h2 { margin:0 }
.products { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px }
.product { overflow:hidden; padding:0 }
.cover { min-height:116px; background:linear-gradient(135deg,#14313c,#23816d); color:#8bffc9; display:flex; justify-content:space-between; padding:16px; align-items:center }
.cover { position:relative; overflow:hidden }
.cover img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover }
.cover small { position:relative; margin-left:auto; padding:4px 8px; border-radius:8px; background:#17243fc9 }
.cover span { font-size:52px; opacity:.85 }
.cover small { color:white }
.card-inner { padding:13px }
.card-inner p,.tactical-card p,.ticket p { font-size:13px }
.card strong { overflow-wrap:anywhere }
.product strong,.tactical-card strong { color:#c52938 }
.product .line { flex-wrap:wrap }
.tactical-card,.ticket,.message { margin-bottom:12px }
.front[data-theme=tactical] { --front-width:820px }
[data-theme=tactical] .front-header { background:#1d2030; color:white }
[data-theme=tactical] .hero { min-height:138px; background:linear-gradient(112deg,#0f1525,#622537 74%,#b65b45) }
.status-tabs button { flex:none; border-width:0 0 2px; border-color:transparent; border-radius:0; background:transparent }
.tactical-card h3 { margin:0; overflow-wrap:anywhere }
.tactical-card .line+.line { margin-top:12px }
.game-name { margin:0; display:flex; gap:10px; align-items:center }
.game-name span { background:#122836; color:#4df5a6; padding:9px; border-radius:8px }
[data-theme=tactical] .tactical-card button { background:#fff; border:1px solid #98a9bd; color:#18243a; border-radius:28px }
.front[data-theme=pastel] { --front-width:500px; color:#1b2431 }
.stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:0 0 14px }
.stats div { background:white; border:1px solid #f6d6df; border-radius:var(--radius); padding:13px 4px; text-align:center }
.stats strong { display:block; color:var(--accent); font-size:clamp(16px,4vw,24px) }
.map-strip button { flex:0 0 auto; border-radius:var(--radius); background:linear-gradient(145deg,#c9f0e9,#fff1ca); min-height:51px }
.ticket { border-color:#f0d4df; box-shadow:0 4px 0 #f2dde4 }
.ticket-icon { flex:none; color:#a42a5b; background:#ffe6ef; display:grid; place-items:center; height:42px; width:42px; border-radius:12px; font-weight:800 }
.ticket .badge { background:#fff1cd; color:#755000 }
.ticket-bottom { margin-top:10px; padding-top:10px; border-top:1px dashed #e0d0d9 }
.ticket-bottom strong { color:#915500; font-size:22px }
.ticket-bottom button.primary { background:#f9c353; border-color:#eeb23a; color:#382300; border-radius:24px }
.auth-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px }
.message.unread { border-left:4px solid var(--accent) }
.admin-shell { min-height:100vh; display:grid; grid-template-columns:220px minmax(0,1fr) }
.sidebar { background:#17243f; color:#fff; padding:22px 14px; display:flex; flex-direction:column; gap:20px }
.brand { display:flex; gap:10px; align-items:center; font-weight:700 }
.brand i,.admin-mark { background:#315ff4; border-radius:11px; color:white; display:grid; place-items:center; width:35px; height:35px; font-style:normal }
.brand small { display:block; margin-top:3px; color:#b5c5e3 }
.sidebar nav { display:grid; gap:7px }
.sidebar button { color:#d5e0f5; background:transparent; border-color:transparent; text-align:left; display:grid; grid-template-columns:20px auto; align-items:center; gap:10px }
.sidebar .menu-icon { text-align:center; line-height:1 }
.binding-preview { display:block; max-width:12em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-bottom:4px }
#binding-details-dialog ul { max-height:45vh; overflow:auto; margin:0; padding-inline-start:1.5em }
#category-form fieldset { display:flex; flex-wrap:wrap; gap:8px 16px; min-width:0; padding:10px 12px; border:1px solid #d7e1ef; border-radius:10px }
#category-form fieldset legend { padding:0 4px; font-weight:700 }
.sidebar button.selected,.sidebar button:hover { background:#293f6d; color:#fff }
.sidebar a { color:#dae6ff; padding:10px }
.admin-header { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:14px 25px; background:white; border-bottom:1px solid #e4e9f2; color:#526078 }
.admin-header-actions { margin-left:auto; justify-content:flex-end; gap:8px }
.admin-header-actions button { white-space:nowrap }
.admin-main { padding:24px; max-width:1480px; margin:auto }
.heading { margin-bottom:18px }
.heading p { margin:0 }
.metrics { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; margin-bottom:15px }
.metric { display:grid; gap:7px }
.metric span { color:#516179; font-size:14px }
.metric strong { font-size:26px }
.chart-card { margin-top:12px }
#trend { height:330px }
details { margin-top:8px }
summary { cursor:pointer }
.table-wrap { overflow:auto; margin-top:12px }
.record-pagination { display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:8px; margin-top:14px; font-size:13px }
.record-page-buttons { display:flex; flex-wrap:wrap; gap:4px }
.record-pagination label { display:flex; flex-direction:row; align-items:center; gap:6px; white-space:nowrap }
.record-pagination select { width:auto }
.record-pagination button { padding:5px 8px; white-space:nowrap }
#order-batch-form label[hidden] { display:none }
.batch-errors { max-height:30vh; overflow:auto; padding-inline-start:1.5em }
#order-batch-form .dialog-status:empty,#template-create .dialog-status:empty { display:none }
table { border-collapse:collapse; width:100%; text-align:left; font-size:14px }
td,th { padding:12px 8px; border-bottom:1px solid #e9edf4; white-space:nowrap }
th { background:#f3f6fc }
td small { display:block; margin-top:5px }
.template-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin-bottom:16px }
.credit-note-menu{position:relative;min-width:220px}.credit-note-menu>div{background:white;border:1px solid #dce3ef;padding:8px;border-radius:8px;max-height:260px;overflow:auto}.credit-note-row{display:flex;gap:6px;margin:5px 0}.credit-note-row button:first-child{flex:1;text-align:left;white-space:normal;overflow-wrap:anywhere}
.chat-records td{vertical-align:top}.chat-preview{min-width:240px;max-width:360px;white-space:normal}.chat-preview>div{overflow-wrap:anywhere;margin-bottom:5px;max-height:5em;overflow:auto}.chat-customer,.chat-customer p{color:#2463cf}.chat-admin,.chat-admin p{color:#d23838}.chat-records details p{max-width:380px;white-space:pre-wrap;overflow-wrap:anywhere}.chat-case-form{display:flex;gap:4px}.chat-order-send{padding:12px;background:#f3f6fc;border-radius:10px;margin-bottom:10px}
.announcement-ticker{margin-bottom:12px;padding:12px;background:#eef4ff;border-radius:10px;color:#2463cf}.announcement-ticker>summary{display:flex;gap:12px;cursor:pointer;align-items:center}.ticker-window{overflow:hidden;flex:1}.ticker-track{display:inline-block;white-space:nowrap;min-width:100%;animation:announcement-scroll 25s linear infinite}.announcement-ticker:hover .ticker-track,.announcement-ticker[open] .ticker-track{animation-play-state:paused}.announcement-ticker article{padding:10px;border-top:1px solid #dce3ef}.announcement-ticker article p{overflow-wrap:anywhere}@keyframes announcement-scroll{from{transform:translateX(100%)}to{transform:translateX(-100%)}}@media(prefers-reduced-motion:reduce){.ticker-track{animation:none;white-space:normal}}
.template-option { display:grid; text-align:left; gap:7px; padding:13px }
.template-option.selected { border:2px solid #315ff4 }
.mini { height:58px; border-radius:8px; background:#eaf5f1; padding:5px; display:grid; grid-template-columns:repeat(2,1fr); gap:4px }
.mini i { background:#9bdcc9; border-radius:4px }
.mini i:first-child { grid-column:span 2; background:#1c846b }
.template-option.tactical .mini,.template-option.pastel .mini { grid-template-columns:1fr }
.template-option.tactical .mini i,.template-option.pastel .mini i { grid-column:1 }
.template-option.tactical .mini { background:#e8edf7 }
.template-option.tactical .mini i { background:#c4d5f1 }
.template-option.tactical .mini i:first-child { background:#242a46 }
.template-option.pastel .mini { background:#fff0f8 }
.template-option.pastel .mini i { background:#ffdaea }
.template-option.pastel .mini i:first-child { background:#e778a5 }
.template-editor { min-width:0 }
.design-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,410px); gap:15px; align-items:start }
.preview-card iframe { display:block; border:1px solid #dce3ef; border-radius:14px; width:100%; height:660px; margin-top:8px }
.admin-auth { min-height:100vh; display:grid; place-items:center; padding:15px }
.admin-auth form { width:min(100%,390px); padding:25px }
.admin-auth h1 { margin:0 }
/* 后台共用控件：覆盖全部管理页，不影响前台模板。 */
.admin { font-size:14px; line-height:1.5; --radius:14px }
.admin .workspace { min-width:0 }
.admin .heading h1 { font-size:28px; letter-spacing:-.5px; margin-bottom:6px }
.admin .card { border-color:#e1e7f0; box-shadow:0 3px 16px #223b6505 }
.admin button { min-height:36px; padding:7px 14px; border-color:#dce3ef; border-radius:8px; font-weight:500; transition:background .15s,border-color .15s,box-shadow .15s }
.admin button:hover:not(:disabled) { background:#f0f5ff; border-color:#a9bdf9; color:#315ff4 }
.admin button.primary { background:#315ff4; border-color:#315ff4; color:#fff; box-shadow:0 2px 5px #315ff425 }
.admin button.primary:hover:not(:disabled) { background:#244cdb; color:#fff }
.admin button:disabled { cursor:not-allowed; box-shadow:none }
.admin :is(input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea) { min-height:var(--admin-control-height,40px); border-color:#dce3ef; border-radius:8px; font-size:var(--admin-control-font,14px); transition:border-color .15s,box-shadow .15s }
.admin :is(input,select,textarea):focus { border-color:#7999fa; box-shadow:0 0 0 3px #315ff412 }
.admin input::placeholder,.admin textarea::placeholder { color:#929db0 }
.admin select { appearance:none; padding-right:34px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='1.7'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 10px center }
.admin :is(input[type=checkbox],input[type=radio]) { width:16px; height:16px; padding:0; margin:0; vertical-align:middle; accent-color:#315ff4; cursor:pointer; flex-shrink:0 }
.admin .status-tabs { gap:6px; padding:5px; margin-bottom:20px; border:1px solid #e1e7f0; border-radius:11px; background:#eaf0f8; width:fit-content; max-width:100% }
.admin .status-tabs button { flex:none; white-space:nowrap; border:1px solid transparent; border-radius:7px; background:transparent; padding:8px 18px; color:#64748b }
.admin .status-tabs button:is(.selected,[aria-pressed=true]) { color:#315ff4; background:#fff; border-color:#dce5fa; box-shadow:0 2px 5px #203a6410; font-weight:700 }
.admin :is(.badge,.tag) { padding:3px 8px; border:1px solid #dce6fc; border-radius:5px; background:#eef4ff; color:#4163a8; font-size:12px; line-height:1.5; vertical-align:middle }
.admin .table-wrap { border:1px solid #e6ebf3; border-radius:10px; scrollbar-width:thin }
.admin th { background:#f5f7fb; color:#64748b; font-size:12px; font-weight:600; padding:12px 14px }
.admin td { --admin-control-height:32px; --admin-control-font:12px; padding:10px 14px; color:#34445f; vertical-align:middle }
.admin tbody tr:last-child td { border-bottom:0 }
.admin tbody tr:hover { background:#f8faff }
.admin td button { min-height:32px; padding:5px 10px; font-size:12px; line-height:20px; vertical-align:middle }
.admin td select { height:32px; padding:5px 30px 5px 10px; line-height:20px; font-size:12px; vertical-align:middle }
.admin form[data-user-messaging] { display:flex; align-items:center; gap:8px; margin:0 }
.admin form[data-user-messaging] :is(select,button) { flex:none }
.admin .user-batch-tools { gap:8px; padding:12px 0 0 }
.admin .user-batch-tools>span { color:#64748b; margin-right:4px }
.admin td button+button { margin-left:4px }
.admin td small { color:#8692a6; font-size:12px }
.admin .record-pagination button { min-height:30px; padding:4px 10px }
.admin .record-pagination button[aria-current=page] { background:#315ff4; color:white; border-color:#315ff4 }
.admin .sidebar button { min-height:42px; border-color:transparent; color:#ced9ef }
.admin .sidebar button:is(.selected,:hover:not(:disabled)) { background:#2b4372; color:#fff; border-color:transparent }
.admin .finance-menu button { border-radius:8px }
.admin .template-option { text-align:left }
.admin dialog { border:1px solid #e2e8f2; border-radius:14px; box-shadow:0 24px 90px #14264640 }
.admin dialog::backdrop { background:#14223966; backdrop-filter:blur(3px) }
.admin dialog .detail { padding:24px; gap:16px }
.admin dialog h2 { font-size:19px; padding-right:24px }
.admin dialog .status-tabs { margin-bottom:0 }
/* 只对底部操作组右对齐，标题关闭按钮、行内编辑和聊天工具保持原位置。 */
.admin dialog :is(.detail,.form)>:is(.actions,.line):last-child { justify-content:flex-end; flex-wrap:wrap; gap:8px; padding-top:16px; border-top:1px solid #e8edf5 }
.admin dialog form>.actions,.admin #order-dialog .detail>.actions { justify-content:flex-end; flex-wrap:wrap; gap:8px }
.admin dialog form:not(.dialog-close)>button:last-child { justify-self:end; margin-top:8px }
.admin dialog .detail>form[method=dialog]:last-child { display:flex; justify-content:flex-end; padding-top:16px; border-top:1px solid #e8edf5 }
.admin dialog .dialog-close button { min-height:28px; padding:0 8px }
.admin dialog .dialog-status { overflow-wrap:anywhere }
/* 状态按真实字段着色；按钮颜色表示将执行的操作。 */
.admin .badge[data-state] { background:#f0f2f5; border-color:#dfe3e9; color:#657084 }
.admin .badge:is([data-state=enabled],[data-state=open],[data-state=active],[data-state=done],[data-state=paid]) { background:#e7efff; border-color:#c5d6ff; color:#2454c6 }
.admin .badge:is([data-state=disabled],[data-state=frozen],[data-state=rejected]) { background:#ffe8e8; border-color:#ffcaca; color:#bb3039 }
.admin .badge:is([data-state=pending],[data-state=submitted],[data-state=review],[data-state=pending_review],[data-state=awaiting_payment]) { background:#fff5d6; border-color:#f4dfa1; color:#936400 }
.admin .badge:is([data-state=unfunded],[data-state=unconfigured],[data-state=refund_pending],[data-state=withdrawing]) { background:#fff0e2; border-color:#ffd3ac; color:#ae5716 }
.admin button:is([data-enabled="0"],[data-enable="0"],[data-frozen="1"],[data-approved="0"],[data-action=reject],[data-action=return],[data-action=close_unpaid],.channel-delete,[data-category-delete],[data-template-delete]) { background:#d9414c; border-color:#d9414c; color:#fff }
.admin button:is([data-enabled="1"],[data-enable="1"],[data-frozen="0"],[data-approved="1"],[data-action=confirm],[data-action=pay]) { background:#315ff4; border-color:#315ff4; color:#fff }
.admin button:is([data-enabled="0"],[data-enable="0"],[data-frozen="1"],[data-approved="0"],[data-action=reject],[data-action=return],[data-action=close_unpaid],.channel-delete,[data-category-delete],[data-template-delete]):hover:not(:disabled) { background:#bf303c; border-color:#bf303c; color:#fff }
.admin button:is([data-enabled="1"],[data-enable="1"],[data-frozen="0"],[data-approved="1"],[data-action=confirm],[data-action=pay]):hover:not(:disabled) { background:#244cdb; border-color:#244cdb; color:#fff }
.admin button:disabled { background:#ffe8e8; border-color:#ffcaca; color:#ad4650; opacity:1 }
.admin form[data-user-messaging] select:has(option[value="0"]:checked) { background-color:#ffe8e8; border-color:#ffcaca; color:#bb3039 }
.admin form[data-user-messaging] select:has(option[value="1"]:checked) { background-color:#e7efff; border-color:#c5d6ff; color:#2454c6 }
@media(max-width:700px) {
  .admin .heading h1 { font-size:24px }
  .admin .admin-header { flex-wrap:wrap }
  .admin .admin-header-actions { flex-wrap:wrap }
  .admin .heading.line,.admin .table-card>.line { flex-wrap:wrap; gap:12px }
  .admin .status-tabs button { padding:7px 12px }
  .admin .template-grid { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .admin dialog .detail { padding:20px 16px }
}
.front[data-theme=tactical] .front-header {
  background:var(--header); display:grid; grid-template-columns:minmax(52px,1fr) auto minmax(52px,1fr); gap:5px;
  min-height:0; text-align:center; padding-top:2px; padding-bottom:2px
}
[data-theme=tactical] .front-header strong { font-size:clamp(19px,4vw,24px) }
.hall-brand { font-style:italic; font-weight:900; font-size:23px; text-align:left; letter-spacing:-1px }
[data-theme=tactical] .front-header button { justify-self:end; padding:0 2px; font-size:12px; white-space:nowrap }
[data-theme=tactical] .front-content { padding-top:0 }
.hall-tools { margin:0 -16px 12px; padding:0 16px 2px; background:white; border-bottom:1px solid #e7e9ef }
.hall-tools .status-tabs { gap:4px; justify-content:space-between; padding-bottom:8px }
.hall-tools .status-tabs button { font-size:13px; padding:11px 5px; white-space:nowrap }
.hall-tools .filters { margin:0 0 8px }
.hero-caption { display:flex; flex-wrap:wrap; align-items:center; gap:8px }
.hero-caption strong { display:inline-block; padding:4px 10px; border-radius:7px; font-size:15px }
.hero-caption p { margin:0 }
[data-theme=tactical] .hero { min-height:155px }
[data-theme=tactical] .hero::after { background:linear-gradient(90deg,#090d18e8,#090d185a 58%,transparent) }
[data-theme=tactical] .hero-copy { padding:17px 16px 32px }
[data-theme=tactical] .hero-caption strong { background:#922436; color:#fff1ef }
.pending-pill { position:absolute; z-index:2; bottom:8px; left:12px; color:white; background:#101723dd; padding:5px 10px; border-radius:20px; font-size:12px }
.pending-pill b { color:#80f3bd }
.tactical-card { box-shadow:0 4px 16px #23344909 }
.tactical-card h3 { margin-bottom:12px }
.tactical-card h3 .tag { margin-right:6px; vertical-align:2px }
.tactical-card .tactical-meta { margin-bottom:11px }
.tactical-price { display:grid; gap:5px; justify-items:end }
.tactical-price strong { font-size:21px }
.tactical-card .game-name .game-logo { width:44px; height:44px; display:grid; place-items:center; font-size:28px; padding:0; line-height:1; border-radius:11px }
.tactical-card .game-name small { display:block; margin-top:3px }
.tag.quality { color:#936116; background:#fff0c4; font-weight:800 }
[data-theme=pastel] svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; vertical-align:middle }
[data-theme=pastel] .front-header { padding:8px max(10px,calc((100% - var(--front-width))/2 + 10px)); background:var(--header) }
.pink-header > button:first-child { display:flex; align-items:center; gap:9px; font-size:21px; font-weight:900; padding:0 }
.pink-header button:last-child { font-size:12px; padding:5px 0 5px 6px }
.pink-header i { font-style:normal; background:#4eae97; color:#fff; font-size:19px; width:34px; height:34px; border-radius:11px; display:grid; place-items:center; transform:rotate(-7deg) }
[data-theme=pastel] .front-content { padding:0 0 90px }
.pink-promo { position:relative; isolation:isolate; overflow:hidden; padding:12px 10px 14px; border-bottom:2px solid #f5bacf; border-radius:0 0 13px 13px; background:repeating-linear-gradient(131deg,#fff4fa33 0 9px,transparent 9px 32px),linear-gradient(115deg,#fff9fc,#f9dcec 60%,#ffeef6); margin-bottom:5px }
.promo-bg { position:absolute; z-index:-2; inset:0; width:100%; height:100%; object-fit:cover; opacity:.4 }
.pink-promo-top,.pink-promo-copy { display:flex; justify-content:space-between; align-items:center; gap:6px }
.pink-promo-top h1 { flex:1; min-width:0; font-size:clamp(16px,5.3vw,27px); font-weight:950; margin:0; color:var(--accent); line-height:1.25; overflow-wrap:anywhere }
.pink-promo-top h1 span { color:#241923 }
.pink-shortcuts { display:flex; flex:none; gap:5px }
.pink-shortcuts button { display:grid; place-items:center; position:relative; width:30px; height:32px; padding:0; border:1px solid #edbbd0; border-radius:9px; color:#85244b; background:#fff8fb; box-shadow:0 3px 0 #ecc4d5 }
.pink-shortcuts svg { width:17px; height:17px }
.pink-promo-copy { justify-content:flex-start; margin-top:12px; flex-wrap:wrap }
.pink-promo-copy strong { color:var(--accent); border:1px solid #e7afc4; background:#fffafd; padding:4px 10px; border-radius:10px; font-size:clamp(19px,6vw,32px); font-weight:950; box-shadow:0 3px 0 #f0ccd9; white-space:nowrap }
.pink-promo-copy p { margin:0; color:#fff; background:var(--accent); padding:5px 9px; border-radius:20px; font-size:clamp(9px,3vw,14px); font-weight:800 }
.stats-panel { padding:7px; background:linear-gradient(115deg,#fff9e6e8,#e7f5d6ab),url('/assets/images/pastel-maps.svg#valley') center/cover; border:1px solid #efe2b6; border-radius:13px; margin-bottom:5px }
.stats-panel h2 { display:inline-block; background:linear-gradient(#ffdf82,#ffc550); color:#47310b; font-size:17px; padding:5px 10px; border-radius:10px; margin:0 0 6px; font-weight:900 }
.stats-panel .stats { margin:0; gap:6px }
.stats-panel .stats div { border-color:#f1e9dc; border-radius:14px; box-shadow:0 3px 0 #c9c2a74d; padding:7px 3px 8px }
.stats-panel .stats strong { font-weight:950; color:#a4385c; margin-bottom:2px }
.stats-panel .stats small { font-weight:750; font-size:11px; color:#4c5664 }
.stats-panel .stats div:first-child strong { color:#14816d }
.stats-panel .stats div:last-child strong { color:#17688e }
[data-theme=pastel] .map-strip { gap:8px; padding:4px 5px 8px; scrollbar-width:none }
.map-strip button { position:relative; overflow:hidden; isolation:isolate; flex:0 0 29%; aspect-ratio:1.34; min-width:86px; min-height:65px; padding:0; border:3px solid white; border-radius:17px; box-shadow:0 2px 5px #5f72734d }
.map-strip button.selected { border-color:var(--accent) }
.map-strip button img { position:absolute; width:100%; height:100%; inset:0; object-fit:cover; z-index:-1 }
.map-strip button i { position:absolute; top:4px; left:5px; border-radius:9px; padding:2px 5px; background:#dd6386; color:#fff; font-size:9px; font-weight:900 }
.map-strip button:nth-child(3) i { background:#207ea7 }
.map-strip button span { display:block; position:absolute; bottom:0; left:0; right:0; padding:7px 1px 5px; background:linear-gradient(transparent,#18383fbc); color:white; font-weight:850; font-size:12px; white-space:nowrap }
.map-strip button span svg { width:13px; height:13px; color:#ffafb2; margin-right:2px }
.pink-filters,.pink-filter-active { margin:0 6px 6px }
.pink-filters .filters { margin:0 }
[data-theme=pastel] .ticket { margin:2px 4px 9px; padding:10px 8px 8px; border:1px solid #f0d2db; border-radius:var(--radius); box-shadow:0 3px 0 #f0dce3 }
.ticket-main { display:flex; align-items:flex-start; gap:8px }
.ticket-icon { width:35px; height:35px; margin-top:2px }
.ticket-icon.runner { color:#88651a; background:#fff3cf }
.ticket-icon.safe { color:#16765e; background:#def6ed }
.ticket h3 { margin:0 0 4px; overflow-wrap:anywhere; color:#17212e; font-size:clamp(13px,4vw,19px); font-weight:900 }
.ticket p { margin:0 0 3px; font-size:12px; font-weight:700 }
.ticket small { font-size:11px }
.ticket-bottom { margin-top:8px; padding-top:8px; gap:4px; border-top:1px dashed #eadde1 }
.ticket-bottom strong { color:#8b590e; font-size:clamp(17px,5.6vw,28px); white-space:nowrap }
.ticket-icons { display:flex; gap:4px }
.ticket-icons span { display:grid; place-items:center; border-radius:8px; width:clamp(17px,5.8vw,27px); height:clamp(20px,6.6vw,28px); background:#fff6de; border:1px solid #e9d8a6; color:#846217 }
.ticket-icons span:nth-child(2) { color:#2b7567; background:#ebfaf4; border-color:#c9e8df }
.ticket-icons span:nth-child(3) { color:#2c6786; background:#edf8ff; border-color:#cfe4ee }
.ticket-icons span:nth-child(4) { color:#97415e; background:#fff0f6; border-color:#efcfdb }
.ticket-icons svg { width:15px; height:15px }
.ticket-bottom button.primary,.pink-claim { border:1px solid #eab44c; box-shadow:0 3px 0 #d8a843; background:linear-gradient(#fff2a940,transparent),var(--claim); color:var(--claim-ink); border-radius:30px; font-weight:900; padding:6px 12px; font-size:14px; white-space:nowrap }
[data-theme=pastel] .bottom { border-radius:15px 15px 0 0; background:#fffdfa; border-color:#f0e2db }
[data-theme=pastel] .bottom button { font-weight:750; color:#4a5360 }
[data-theme=pastel] .bottom button span { display:grid; place-items:center; width:29px; height:29px; margin:1px auto 3px; border-radius:8px }
[data-theme=pastel] .bottom button.selected { color:#166d58 }
[data-theme=pastel] .bottom button.selected span { color:white; background:#4b9e85 }
[data-theme=pastel] .bottom button[data-page=publish] { color:var(--accent) }
[data-theme=pastel] .bottom button[data-page=publish] span { background:#f8d5e5 }
[data-theme=pastel] .front-content > .empty { margin:6px }
.auth-modal { padding:27px 22px 20px }
.auth-modal h2 { padding-right:30px; margin:0 }
.auth-tabs { display:flex; gap:6px; padding:4px; border-radius:11px; background:#f0f3f9 }
.auth-tabs button { flex:1; border:0; background:transparent; padding:8px 3px; white-space:nowrap }
.auth-tabs button[aria-pressed=true] { color:var(--accent); font-weight:800; background:white; box-shadow:0 1px 5px #17243f17 }
.auth-modal .dialog-status:empty { display:none }
.auth-modal .dialog-status { color:#744400; background:#fff6d9; padding:9px; border-radius:8px }
.chat-list { display:grid; gap:6px; min-width:0 }
.chat-list > button { display:flex; gap:10px; align-items:center; text-align:left; width:100%; padding:10px }
.chat-list small { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; margin-top:4px }
.chat-room h2 { padding-right:26px; overflow-wrap:anywhere }
.chat-log { max-height:min(44vh,360px); min-height:100px; overflow:auto; display:flex; flex-direction:column; gap:10px; padding:8px; background:#f2f5fa; border-radius:10px }
.chat-line { flex:none; align-self:flex-start; max-width:89% }
.chat-line.mine { align-self:flex-end; text-align:right }
.chat-line p { margin-top:3px; text-align:left; padding:7px 10px; color:#24354f; background:white; border-radius:9px; white-space:pre-wrap; overflow-wrap:anywhere }
.chat-line.mine p { background:#e5f5ef }
.chat-room [hidden] { display:none!important }
.chat-room .dialog-status:empty { display:none }
.chat-room .dialog-status { color:#8b421e; font-size:13px }
.chat-meta { display:grid; justify-items:end; gap:3px; flex-shrink:0 }
.chat-readonly { color:#63718b; font-size:13px }
[data-theme=pastel] .front-content > .line.section,[data-theme=pastel] .front-content > .chat-list,[data-theme=pastel] .front-content > .message { margin-left:8px; margin-right:8px }
.linked-card { position:relative; isolation:isolate }
.linked-card .order-title::after { content:""; position:absolute; inset:0; z-index:1; border-radius:var(--radius) }
.linked-card button { position:relative; z-index:2 }
.linked-card:has(.order-title:focus-visible) { outline:3px solid var(--accent); outline-offset:2px }
.order-title { display:inline; color:inherit; font-weight:inherit; line-height:inherit }
.order-title:hover { text-decoration:underline }
.order-screen-heading { padding:10px 10px 7px }
.order-screen-heading button { margin-bottom:9px; padding:5px 9px }
.order-screen-heading h2 { margin-bottom:4px; font-size:24px }
.order-screen-heading p { margin:0 }
.order-block { margin:6px 0 10px }
.order-block .section { margin:9px 0 }
.order-price { color:#b3263e; font-size:27px }
.order-facts { display:grid; grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); gap:8px; margin-top:12px }
.order-facts div { padding:8px; background:#f3f6fa; border-radius:8px; display:grid; gap:4px; overflow-wrap:anywhere }
.order-facts strong { font-size:14px }
.account-page .order-facts { grid-template-columns:repeat(3,minmax(0,1fr)) }
.account-page .account-balance { padding:8px; background:#f3f6fa; border:0; border-radius:8px; display:grid; gap:4px; text-align:left; color:inherit; min-width:0; overflow-wrap:anywhere }
.account-balance small { display:block }
.account-balance strong span { margin-left:4px; font-size:12px; font-weight:400 }
.recharge-channels { display:flex; flex-wrap:wrap; gap:10px }
.recharge-channels button { display:flex; align-items:center; gap:8px }
.recharge-channels .payment-icon { width:28px; height:28px; font-size:16px; line-height:28px }
.recharge-memo strong { font-size:22px; letter-spacing:2px; user-select:all }
.order-events { display:grid; gap:10px; padding:0 0 0 14px; margin:0; list-style:none; border-left:2px solid #dce8f4 }
.order-events li { position:relative; display:grid; gap:3px }
.order-events li::before { content:""; position:absolute; width:8px; height:8px; top:5px; left:-19px; border-radius:50%; background:var(--accent) }
.order-events p { margin:0 }
[data-theme=pastel] .order-block,[data-theme=pastel] #publish,[data-theme=pastel] .account-page,[data-theme=pastel] #my-order-filter { margin-left:8px; margin-right:8px }
[data-theme=tactical] .hero::after { background:linear-gradient(90deg,#371120d9,#43213a46 56%,transparent) }
[data-theme=tactical] .hero-caption strong { background:#762b29; color:#fff9db }
[data-theme=tactical] .tactical-card h3 { font-size:clamp(15px,4vw,19px) }
[data-theme=tactical] .tactical-card .game-logo { color:#55ffc2; background:#0c3339 }
.front[data-theme=tactical] { --front-width:540px }
[data-theme=tactical] .bottom { background:#151515; border-color:#292929; border-radius:0; padding:3px 0 max(6px,env(safe-area-inset-bottom)); align-items:center }
[data-theme=tactical] .bottom button { color:#aaa; height:50px; font-size:clamp(14px,4vw,18px); font-weight:700; padding:0 2px }
[data-theme=tactical] .bottom button.selected,[data-theme=tactical] .bottom button:hover { color:white }
[data-theme=tactical] .bottom button[data-page=publish] span { width:42px; height:32px; display:grid; place-items:center; margin:0 auto; color:white; border:3px solid white; border-radius:10px }
[data-theme=tactical] .bottom button[data-page=publish] svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:2.7; stroke-linecap:round }
[data-theme=tactical] .bottom .count { left:61%; top:4px; background:#e62c58 }
[data-theme=tactical] .hero { min-height:clamp(114px,29vw,155px) }
[data-theme=tactical] .tactical-card .tag { font-size:11px }
.payment-qr { width:min(100%,235px); height:auto; background:#fff; border:1px solid #e2e5ec; border-radius:12px; padding:8px }
[data-channel-fields][hidden] { display:none }
.payment-options { display:grid; gap:8px; border:0; padding:0; margin:0; min-width:0 }
.payment-options legend { margin-bottom:7px; font-weight:700 }
.payment-option { display:flex; align-items:center; gap:10px; padding:10px; border:1px solid #dce3ef; border-radius:10px; cursor:pointer }
.payment-option:has(input:checked) { border-color:var(--accent); background:color-mix(in srgb,var(--accent) 7%,white) }
.payment-option input { accent-color:var(--accent) }
.payment-option span { display:grid; gap:3px; flex:1; min-width:0 }
.payment-icon { display:grid; place-items:center; width:35px; height:35px; border-radius:9px; flex:none; font-size:17px; font-weight:900; font-style:normal; color:#fff; background:#6958ad }
.payment-icon.alipay { background:#1677ff }
.payment-icon.wechat { background:#168c57 }
.pay-amount { display:flex; justify-content:space-between; align-items:center; padding:10px 12px; background:#f2f6fb; border-radius:10px }
.pay-amount strong { color:#1f4b88; font-size:22px }
.payment-option small { font-weight:500 }
.category-tabs { display:flex; gap:7px; overflow:auto; padding:5px 1px 10px; scrollbar-width:thin }
.category-tabs button { flex:none; white-space:nowrap; padding:6px 11px; font-size:13px; border-radius:20px }
.category-tabs button.selected { color:var(--accent); background:color-mix(in srgb,var(--accent) 9%,white); border-color:var(--accent); font-weight:800 }
[data-theme=pastel] .category-tabs { margin:0 5px }
.finance-layout { display:grid; grid-template-columns:minmax(150px,210px) minmax(0,1fr); gap:14px; align-items:start }
.finance-panel { min-width:0 }
.finance-panel [data-record-list] { min-width:0 }
.finance-menu { padding:6px; display:grid; gap:3px }
.finance-menu button { display:flex; justify-content:space-between; align-items:center; text-align:left; border:0; border-radius:8px; padding:10px; font-weight:650 }
.finance-menu button[aria-current=true] { color:var(--accent); background:#edf2ff }
.finance-menu button span:last-child { font-size:18px; line-height:1; color:#647492 }
#pay-channel-dialog { max-height:calc(100vh - 40px); overflow:auto }
#pay-channel .dialog-status:empty,#login-settings-dialog .dialog-status:empty { display:none }
#login-settings-dialog { max-height:calc(100vh - 40px); overflow:auto }
#login-settings-dialog .dialog-status { color:var(--accent); overflow-wrap:anywhere }
.channel-delete { color:#ab2940 }
.channel-delete:hover { border-color:#ab2940; color:#ab2940 }
@media(max-width:700px) {
  .finance-layout { grid-template-columns:1fr }
  .finance-menu { grid-template-columns:repeat(2,minmax(0,1fr)) }
}
@media(max-width:850px) {
  .admin-shell { grid-template-columns:165px minmax(0,1fr) }
  .metrics { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .design-layout { grid-template-columns:1fr }
}
@media(max-width:590px) {
  .admin-shell { display:block }
  .sidebar { padding:12px; gap:8px }
  .sidebar nav { display:flex; flex-wrap:wrap }
  .sidebar button { padding:6px }
  .sidebar a { padding:3px }
  .admin-header,.admin-main { padding:13px }
  .template-option { padding:6px }
  .hero-copy { padding:17px }
  .cover { min-height:85px }
  .front-content { padding-top:12px }
  .tactical-card .line { gap:7px }
}

/* 参考图对应两个独立布局；筛选全部使用即时按钮。 */
.button-filters{display:block!important}.filter-menu{display:flex;gap:8px;overflow-x:auto;padding:8px 0;scrollbar-width:none}.filter-menu::-webkit-scrollbar{display:none}.filter-menu button{white-space:nowrap;flex-shrink:0;border:1px solid #dde5ec;border-radius:999px;background:white;padding:7px 15px;color:#657480}.filter-menu button.selected{background:var(--accent);border-color:var(--accent);color:white}.button-filters>input[type=search]{width:100%;margin-bottom:6px}
body:is([data-theme="sunburst"],[data-theme="glacier"]){color:#20252e}
body:is([data-theme="sunburst"],[data-theme="glacier"]) .front-content{max-width:960px;padding-bottom:100px}
body:is([data-theme="sunburst"],[data-theme="glacier"]) .front-header{background:var(--header);border-bottom:1px solid #e5e8ef}
body:is([data-theme="sunburst"],[data-theme="glacier"]) .card,body:is([data-theme="sunburst"],[data-theme="glacier"]) dialog{border:0;border-radius:var(--radius);box-shadow:0 8px 24px #23345b06}
body:is([data-theme="sunburst"],[data-theme="glacier"]) :is(input,textarea,select){background:#f7f9fd;border-color:#dce5ee;border-radius:12px}
body:is([data-theme="sunburst"],[data-theme="glacier"]) .primary{background:var(--claim);color:var(--claim-ink);border:0;border-radius:999px;padding:10px 23px}
.reference-hero{position:relative;aspect-ratio:1.9;overflow:hidden;margin-bottom:0;isolation:isolate}
.reference-art{position:absolute;width:100%;height:100%;object-fit:fill;inset:0;z-index:-1}
.reference-copy{position:absolute;inset:10% 35% 27% 5%;display:flex;flex-direction:column;justify-content:space-around;align-items:flex-start}
.reference-copy h1{font-size:clamp(25px,5.4vw,52px);font-weight:950;font-style:italic;line-height:1.14;color:#fff;text-shadow:2px 2px #132f73,-1px -1px #132f73,3px 3px #132f73;letter-spacing:-1px;white-space:nowrap}
.reference-copy p{color:#fff;font-style:italic;font-size:clamp(17px,4.1vw,36px);font-weight:900;text-shadow:1px 2px #132f73,-1px -1px #132f73;margin:0}
.reference-copy strong{color:#fff;font-size:clamp(14px,3.7vw,30px);font-style:italic;text-shadow:1px 2px #132f73;line-height:1.45}
.hero-foot{position:absolute;bottom:6%;left:5%;right:5%;color:white;text-align:center;font-size:clamp(14px,3.3vw,28px);font-weight:900}
body[data-theme="glacier"] .reference-copy{inset:14% 4% 28% 44%}
body[data-theme="glacier"] .reference-copy h1{color:#249fda;font-size:clamp(22px,4.8vw,45px);text-shadow:1px 2px #173c77,-1px -1px white}
body[data-theme="glacier"] .reference-copy p,body[data-theme="glacier"] .reference-copy strong{color:#171c2e;text-shadow:1px 2px white;font-size:clamp(14px,3.5vw,30px)}
body[data-theme="glacier"] .hero-foot{left:46%;right:4%;bottom:13%;background:#086ac0;box-shadow:0 0 8px #59e8fa;padding:7px 3px;font-size:clamp(10px,2.7vw,24px)}
body:is([data-theme="sunburst"],[data-theme="glacier"]) .category-tabs{display:flex;flex-wrap:nowrap;gap:0;margin:0 0 12px;padding:0;background:white;overflow-x:auto;scrollbar-width:none}
body:is([data-theme="sunburst"],[data-theme="glacier"]) .category-tabs::-webkit-scrollbar{display:none}
body:is([data-theme="sunburst"],[data-theme="glacier"]) .category-tabs button{flex:1;flex-shrink:0;min-width:90px;border:0;border-radius:0;padding:15px 12px;background:white;color:#81858a;font-size:18px;border-bottom:3px solid transparent}
body[data-theme="sunburst"] .category-tabs button{flex:none;min-width:0;padding-left:12px;padding-right:12px}
body[data-theme="sunburst"] .category-tabs button.selected{color:var(--accent);border-bottom-color:var(--accent);background:white}
body[data-theme="glacier"] .category-tabs{gap:10px;padding:10px 0;background:transparent}
body[data-theme="glacier"] .category-tabs button{flex:none;min-width:0;padding:8px 12px;border:1px solid #dde4ed;border-radius:999px;font-size:14px}
body[data-theme="glacier"] .category-tabs button.selected{color:white;background:linear-gradient(135deg,#31b8f7,#2678df);border-color:transparent}
.reference-orders{display:grid;gap:18px;grid-template-columns:repeat(2,minmax(0,1fr))}
.reference-order{min-width:0;margin:0;padding:24px}
.sunburst-order{display:flex;flex-direction:column;gap:14px;background:white}
.delta-mark{color:var(--accent);font-size:48px;line-height:1;font-family:Arial,sans-serif;font-weight:500}
.reference-order h3{font-size:24px;line-height:1.35;margin:0;overflow-wrap:anywhere}.reference-order h3 a{color:#111}
.sunburst-order>p{color:#8b8f93;font-size:17px;line-height:1.7;margin:0}
.reference-tags{display:flex;gap:7px;flex-wrap:wrap}.reference-tags .tag{background:#edfaff;color:#26a3c2;border:0;padding:4px 8px}.reference-tags .quality{background:#fff9df;color:#c3a23e}
.reference-bottom{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin-top:auto;padding-top:18px;border-top:1px dashed #e9eaed}.reference-bottom strong{color:var(--accent);font-size:30px;white-space:nowrap}.reference-state{font-size:15px;color:var(--accent);white-space:nowrap}.reference-bottom .primary{margin-left:auto;white-space:nowrap}
body[data-theme="glacier"] .reference-orders{grid-template-columns:1fr;gap:24px}
.glacier-order{display:grid;grid-template-columns:140px minmax(0,1fr);column-gap:24px;row-gap:10px;background:linear-gradient(130deg,#fff,#fcfdff);border-left:4px solid #6bd0f1!important}
.reference-cover{position:relative;grid-row:span 2;width:140px;height:180px;overflow:hidden;border-radius:14px;background:#17213c}.reference-cover img{height:100%;width:100%;object-fit:cover}.cover-tag{position:absolute;top:0;left:0;background:#80caf4;color:#204c71;padding:5px 12px;border-radius:0 0 12px 0;font-size:14px}
.glacier-order .reference-info b{color:#31566e;font-size:18px}.glacier-order .reference-info h3{margin:12px 0}.glacier-order .reference-info p{color:#92979f;font-size:15px;margin:0 0 15px}.glacier-order .reference-info .badge{background:transparent;color:#c49b51;font-size:14px;padding:0}.glacier-order .reference-tags .tag{color:#647c8c;background:#f5faff;border:1px solid #dae4ee;border-radius:6px;padding:8px 12px}
.glacier-order .reference-bottom{border:0;padding:0;justify-content:flex-end}.glacier-order .reference-bottom strong{color:#176b9c}.glacier-order .reference-bottom .primary{margin:0;background:linear-gradient(135deg,#ffffff18,#00000008),var(--claim);color:var(--claim-ink);box-shadow:0 5px 12px #2c99e12b}
body:is([data-theme="sunburst"],[data-theme="glacier"]) .bottom{max-width:960px;background:white;box-shadow:0 -4px 24px #28487c08}
body[data-theme="sunburst"] .bottom{background:#171719;border-radius:0;border-color:#171719}body:is([data-theme="sunburst"],[data-theme="glacier"]) .bottom button[data-page="publish"]{font-size:0}body:is([data-theme="sunburst"],[data-theme="glacier"]) .bottom button[data-page="publish"] span{font-size:30px}
body[data-theme="sunburst"] .bottom button{color:#929296}body[data-theme="sunburst"] .bottom button.selected{color:white}
body[data-theme="sunburst"] .bottom button[data-page="publish"] span{display:inline-flex;align-items:center;justify-content:center;width:42px;height:34px;border:3px solid white;color:white;border-radius:11px;background:transparent}
body[data-theme="glacier"] .bottom button[data-page="publish"] span{display:inline-grid;place-items:center;border-radius:50%;width:45px;height:45px;color:white;background:linear-gradient(135deg,#34b7ec,#2c7ae2)}
.template-option.sunburst .mini{background:linear-gradient(145deg,#ffd91b 60%,#1461de 60%)}.template-option.glacier .mini{background:linear-gradient(145deg,#e7fbff,#4e96e9)}
@media(max-width:600px){
 body:is([data-theme="sunburst"],[data-theme="glacier"]) .front-content{padding:0 10px 90px}.reference-hero{margin:0 -10px}.reference-copy h1{font-size:5.5vw}.reference-copy p{font-size:4.1vw}.reference-copy strong{font-size:3.4vw}.hero-foot{font-size:3.6vw}
 body[data-theme="glacier"] .reference-copy h1{font-size:4.8vw}.reference-hero+ .category-tabs{margin-left:-10px;margin-right:-10px}
 .reference-orders{gap:12px}.reference-order{padding:17px 12px;border-radius:var(--radius)!important}.sunburst-order{gap:12px;min-height:260px}.delta-mark{font-size:38px}.reference-order h3{font-size:17px}.sunburst-order>p{font-size:13px}.reference-tags{gap:5px}.reference-tags .tag{font-size:11px;padding:3px 6px}.reference-bottom{gap:5px;padding-top:14px}.reference-bottom strong{font-size:22px}.reference-state{font-size:11px}.reference-bottom .primary{padding:8px 13px!important;font-size:14px}
 body:is([data-theme="sunburst"],[data-theme="glacier"]) .category-tabs button{min-width:82px;font-size:15px;padding:12px 8px}
 body[data-theme="sunburst"] .category-tabs button{min-width:0;padding-left:12px;padding-right:12px}
 body[data-theme="glacier"] .category-tabs button{min-width:0;font-size:14px;padding:8px 12px}
 .glacier-order{grid-template-columns:80px minmax(0,1fr);column-gap:12px;min-height:170px}.reference-cover{width:80px;height:110px;border-radius:10px}.cover-tag{font-size:10px;padding:4px 9px}.glacier-order .reference-info b{font-size:13px}.glacier-order .reference-info h3{margin:9px 0;font-size:17px}.glacier-order .reference-info p{font-size:11px;margin-bottom:10px}.glacier-order .reference-info .badge{font-size:11px}.glacier-order .reference-tags .tag{font-size:10px;padding:5px}.glacier-order .reference-bottom{gap:15px}.glacier-order .reference-bottom strong{font-size:26px}
}body:is([data-theme="sunburst"],[data-theme="glacier"]) .front-header [data-filters]{display:grid;place-items:center;padding:6px;margin-left:auto}body:is([data-theme="sunburst"],[data-theme="glacier"]) .front-header [data-filters] svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2}

body:is([data-theme="tactical"],[data-theme="sunburst"],[data-theme="glacier"]) :is(.filter-menu,.category-tabs){gap:1px}
body:is([data-theme="tactical"],[data-theme="sunburst"],[data-theme="glacier"]) .filter-menu button{flex:0 0 auto;width:auto;min-width:0;padding:7px 8px;font-size:14px}

/* 模板表单标签与控件成组横排。 */
#template-form .template-settings-row { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; align-items:center }
#template-form .template-settings-row.four { grid-template-columns:repeat(4,minmax(0,1fr)) }
#template-form .template-settings-row > label { display:flex; align-items:center; gap:8px; min-width:0; white-space:nowrap }
#template-form .template-settings-row input:not([type="checkbox"]):not([type="color"]),#template-form .template-settings-row select { flex:1; width:0; min-width:0 }
#template-form .template-settings-row input[type="color"] { flex:0 0 50px; width:50px }
@media(max-width:1100px) { #template-form .template-settings-row.four { grid-template-columns:repeat(2,minmax(0,1fr)) } }
@media(max-width:650px) { #template-form .template-settings-row,#template-form .template-settings-row.four { grid-template-columns:1fr } }


/* Shared social actions; the account menu inherits each published skin. */
.order-social{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:5px;padding:8px 0;border-top:1px solid #eee;font-size:12px;position:relative;z-index:2;grid-column:1/-1;width:100%;box-sizing:border-box}.order-social button{padding:5px 7px;font-size:12px}.order-social [aria-pressed=true]{color:var(--accent)}.order-social span{overflow:hidden;text-overflow:ellipsis;max-width:90px}.reference-orders .order-social{font-size:11px}
.account-tray{position:relative;z-index:35;--tray-bg:#fff;--tray-ink:#24384b;--tray-line:#e4eaf1;--tray-icon:var(--accent);--tray-hover:#f1f6fb}
.account-tray summary{cursor:pointer;list-style:none;padding:6px;font-size:21px;line-height:1}.account-tray summary::-webkit-details-marker{display:none}
.account-tray .tray-panel{position:absolute;right:0;top:calc(100% + 5px);width:140px;padding:3px 10px;background:var(--tray-bg);color:var(--tray-ink);border:1px solid var(--tray-line);border-radius:min(var(--radius,10px),12px);box-shadow:0 5px 16px #0002;display:flex;flex-direction:column;gap:0;box-sizing:border-box}
.account-tray .tray-panel button{display:flex;align-items:center;justify-content:flex-start;gap:9px;width:100%;min-width:0;margin:0;padding:10px 1px!important;border:0;border-bottom:1px solid var(--tray-line);border-radius:0;background:transparent;color:var(--tray-ink);font-size:13px!important;font-weight:400;text-align:left;white-space:nowrap;line-height:1.3}
.account-tray .tray-panel button:last-child{border-bottom:0}.account-tray .tray-panel button:hover{background:var(--tray-hover)}.account-tray .tray-panel button svg{width:16px;height:16px;flex:0 0 16px;fill:none;stroke:var(--tray-icon);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.account-tray .tray-panel button span{color:inherit!important}
body[data-theme=tactical] .account-tray{--tray-bg:#222536;--tray-ink:#f0f2f7;--tray-line:#414556;--tray-icon:#d6dce8;--tray-hover:#303448}
body[data-theme=pastel] .account-tray{--tray-bg:#fff6fa;--tray-ink:#793d58;--tray-line:#efd4e0;--tray-hover:#fbe7f0}
body[data-theme=sunburst] .account-tray{--tray-bg:#fffdf2;--tray-ink:#393715;--tray-line:#eedf9e;--tray-hover:#fff3ba}
body[data-theme=glacier] .account-tray{--tray-bg:#f4fcff;--tray-ink:#285772;--tray-line:#cde5f2;--tray-icon:#2688c8;--tray-hover:#e5f5ff}
.front-header-actions{overflow:visible}.reference-hero,.pink-promo{overflow:visible}.reference-art,.promo-bg{border-radius:inherit}
.reference-hero>.account-tray{position:absolute;top:8px;left:8px;color:#183f69}.reference-hero>.account-tray .tray-panel,.pink-promo>.account-tray .tray-panel{left:0;right:auto}.reference-hero>.account-tray summary{background:#fffc;border-radius:6px}.pink-promo>.account-tray{position:absolute;left:4px;top:3px}.pink-promo-top h1{padding-left:26px}body[data-theme=glacier] .reference-hero>.account-tray{left:auto;right:8px}body[data-theme=glacier] .reference-hero>.account-tray .tray-panel{left:auto;right:0}

/* 前后台共用即时聊天窗口 */
dialog:has(.chat-room){width:min(94vw,820px)}
.chat-room{padding:22px;background:#f8faff;position:relative}
.chat-room h2{margin:0;padding-bottom:12px;border-bottom:1px solid #e1e8f2;font-size:19px}
.chat-room>p{font-size:12px;color:#718098}
.chat-room .chat-log{max-height:48vh;min-height:240px;padding:20px 15px;gap:20px;background:#edf2f8;border:1px solid #e1e7ef;border-radius:12px 12px 0 0}
.chat-line{position:relative;max-width:80%;padding-left:38px}
.chat-line.mine{padding-left:0;padding-right:38px}
.chat-line small{font-size:11px;color:#8090a6}
.chat-line p{position:relative;margin:6px 0 0;padding:11px 14px;border-radius:0 13px 13px 13px;box-shadow:0 2px 5px #22365608;line-height:1.65}
.chat-line.mine p{background:#d9ecff;border-radius:13px 0 13px 13px}
.chat-line.chat-admin p{color:#bd3535}.chat-line.chat-customer p{color:#245cb5}
.chat-room .chat-compose{background:white;border:1px solid #e1e7ef;border-top:0;border-radius:0 0 12px 12px;padding:10px;gap:6px!important}
.chat-tools{display:flex;align-items:center;gap:8px}.chat-tools button{border:0;background:transparent;color:#566b86;padding:6px 10px}.chat-tools small{margin-left:auto;color:#98a2b2;font-size:11px}
.chat-room textarea{resize:vertical;min-height:82px;max-height:180px;border:0;box-shadow:none;background:white;margin:0;padding:8px;font-size:15px}
.chat-compose>[data-send-text]{justify-self:end;min-width:88px;background:#2483ee;color:white;border:0;border-radius:7px}
.chat-emojis{display:grid;grid-template-columns:repeat(9,1fr);gap:3px;padding:8px;border:1px solid #e6ecf3;border-radius:9px;background:#fafcff;max-height:180px;overflow:auto}
.chat-emojis button{border:0;background:transparent;padding:5px;font-size:23px}.chat-emojis button:hover{background:#e5efff}
.chat-picture{display:block;width:220px;height:160px;max-width:min(260px,52vw);max-height:230px;object-fit:contain;border-radius:7px}
.chat-image-draft{display:flex;align-items:center;gap:8px;padding:8px;background:#f3f7fc;border-radius:8px}.chat-image-draft img{width:70px;height:60px;object-fit:contain}
.chat-picture-viewer{position:absolute;inset:0;z-index:4;background:#142035ed;display:flex;flex-direction:column;align-items:center;padding:20px;border-radius:15px}.chat-picture-viewer button{align-self:flex-end;margin-bottom:12px}.chat-picture-viewer img{max-width:100%;max-height:75vh;min-height:0;object-fit:contain}
.chat-list>button{border:1px solid #e3eaf4;background:#fff;border-radius:12px;padding:14px}.chat-list>button:before{content:'聊';flex-shrink:0;width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#e3efff;color:#3477ce;font-weight:bold}.chat-list>button:hover{background:#f1f7ff;border-color:#b8d7fb}
@media(max-width:600px){.chat-room{padding:16px 10px}.chat-room .chat-log{min-height:220px;padding:14px 8px}.chat-line{max-width:92%}.chat-tools small{display:none}.chat-emojis{grid-template-columns:repeat(8,1fr)}.chat-order-send{padding:8px}}

.pink-promo:has(.account-tray[open]),.reference-hero:has(.account-tray[open]){position:relative;z-index:50}

.chat-room .chat-compose{position:relative}
.chat-room .chat-emojis{position:absolute;left:10px;right:10px;bottom:calc(100% - 4px);z-index:3;box-shadow:0 8px 28px #18385a26;max-height:190px;background:white}
.chat-room .chat-log{max-height:min(40vh,300px);min-height:180px}
.chat-room .chat-order-send{display:flex!important;flex-wrap:wrap;align-items:end;gap:8px;padding:8px;margin:0 0 8px}.chat-order-send label{flex:1;min-width:150px;margin:0}.chat-order-send small{flex-basis:100%}.chat-order-send button{white-space:nowrap}
.chat-room .chat-rating{display:flex!important;align-items:center;gap:10px;margin-bottom:10px}.chat-rating label{display:flex;align-items:center;gap:8px;margin:0}.chat-rating select{width:auto;min-width:85px}.chat-rating button{white-space:nowrap}

.dialog-close:has(+.chat-room){z-index:5}

.chat-room:has(.chat-order-send) .chat-log{max-height:min(20vh,150px);min-height:110px}

.chat-room>p{margin:8px 0}.chat-room .chat-compose textarea{height:72px;min-height:72px}

/* 紧凑会话列表及共用聊天标题栏。 */
.chat-list{gap:0}.chat-list>button{border:0;border-bottom:1px solid #e9e9e9;border-radius:0;padding:10px 12px;gap:10px;min-height:64px}.chat-list>button:before{content:none}.chat-list .grow{min-width:0}.chat-list strong{display:block;font-size:15px;line-height:22px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-list small{font-size:12px;line-height:18px}.chat-meta{flex-shrink:0}
.chat-avatar{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px;border-radius:6px;background:#e0ecfa;color:#3975b9;overflow:hidden}.chat-avatar svg{width:23px;height:23px}.chat-avatar img{width:100%;height:100%;object-fit:cover}.chat-avatar-support{background:#07b75d;color:#fff}.chat-avatar-order{background:#eaf0fc;color:#507bcd}
.chat-room{padding:0 12px 10px;background:#f5f5f5;gap:6px}.chat-header{display:flex;align-items:center;gap:9px;min-height:52px;padding:8px 38px 8px 0;border-bottom:1px solid #dedede;box-sizing:border-box}.chat-room .chat-header h2{padding:0;border:0;margin:0;font-size:16px;line-height:22px;overflow-wrap:anywhere}.chat-header .chat-avatar{width:30px;height:30px}.chat-header .chat-avatar svg{width:21px;height:21px}.chat-room>.chat-description{margin:6px 0;font-size:11px;line-height:16px}.chat-room .chat-log{padding:12px 10px;gap:12px;border-radius:4px 4px 0 0;background:#ededed}.chat-line:before{content:none}.chat-line>.chat-avatar{position:absolute;left:0;top:2px;width:30px;height:30px}.chat-line.mine>.chat-avatar{left:auto;right:0}.chat-room .chat-compose{padding:6px;border-radius:0 0 4px 4px;gap:4px!important}.chat-room .chat-compose textarea{height:44px;min-height:44px;padding:5px}.chat-tools button{padding:3px 7px}.chat-compose>[data-send-text]{padding:6px 16px;min-width:64px}.chat-room .chat-order-send{gap:5px;padding:5px;margin-bottom:5px}.chat-order-send small{font-size:11px}.chat-room .chat-rating{gap:6px;margin-bottom:5px}.chat-room .chat-order-send select,.chat-room .chat-rating select,.chat-room .chat-order-send button,.chat-room .chat-rating button{padding:5px 8px;min-height:30px}.chat-room .dialog-status:empty{display:none}.profile-avatar{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:8px;object-fit:cover;background:#e0ecfa;font-size:32px}.profile-status:empty{display:none}
@media(max-width:600px){.chat-room{padding:0 8px 8px}.chat-header{min-height:48px}.chat-list>button{padding:9px 8px}}

/* 六套前台布局共用的内容边界；保留各模板配色和卡片结构。 */
.front-content :is(.form,.form-grid,label,.section,.reference-info,.game-name,.tactical-meta,.studio-order-card){min-width:0}
.front-content :is(input,select,textarea){max-width:100%}
.front-content :is(h1,h2,h3,.badge,.tag,.game-name small){overflow-wrap:anywhere}
.front-content .line.section{flex-wrap:wrap;gap:10px}
.front-content .line.section>h2{flex-shrink:0}
.front-content .line.section>.actions{flex-wrap:wrap}
.front-content .actions{justify-content:flex-end}
.front-content .line.section>.actions{margin-left:auto}
.front-content .line>button:last-child{margin-left:auto}
.front .form>button,.front .detail form:not(.dialog-close)>button{justify-self:end}
.front-content .product{display:flex;flex-direction:column}
.front-content .product .card-inner{display:flex;flex:1;flex-direction:column}
.front-content .product .card-inner>.line{margin-top:auto}
.front-content .product .order-social{padding-inline:13px}
:is(.products,.reference-orders,.studio-orders)>.empty{grid-column:1/-1;width:100%}
.front-content :is(.ticket-bottom,.tactical-card .line,.studio-order-card .line){flex-wrap:wrap}
.front-content :is(.tag,.badge){max-width:100%;white-space:normal}
.front-content .game-name>span:not(.game-logo){min-width:0;overflow-wrap:anywhere}
.sunburst-order .reference-bottom strong.long-price{max-width:100%;font-size:18px;white-space:normal;overflow-wrap:anywhere}
.chat-room .chat-rating{flex-wrap:wrap}
.chat-order-send label{min-width:min(150px,100%)}
@media(max-width:600px){
 .front-header{gap:4px}
 .front-header-actions{gap:2px;min-width:0}
 .front-header-actions>button[data-page="account"]{max-width:60px;font-size:12px;padding-inline:4px}
 .front[data-theme=tactical] .front-header{grid-template-columns:32px minmax(0,1fr) auto}
 [data-theme=tactical] .front-header strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(16px,4.5vw,24px)}
 .front-header.pink-header>button:first-child{font-size:clamp(16px,4.5vw,21px)}
 .pink-header i{flex:none}
 .ticket-main{flex-wrap:wrap}
 .ticket-main>.grow{flex:1 1 110px}
 .sunburst-order .reference-bottom strong.long-price{font-size:13px}
 .account-page .order-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
 .front-content{padding-bottom:calc(104px + env(safe-area-inset-bottom))}
 [data-theme=pastel] .front-content,body:is([data-theme="sunburst"],[data-theme="glacier"]) .front-content{padding-bottom:calc(100px + env(safe-area-inset-bottom))}
}
/* Compact halls: move actions into unused space, retain wrapping for long content. */
.template-public-link{overflow-wrap:anywhere}.template-public-link small{display:block;margin-top:5px}
.display-number{display:inline-block;font-variant-numeric:tabular-nums;animation:metric-in .4s ease-out}
@keyframes metric-in{from{opacity:.35;transform:translateY(3px)}to{opacity:1;transform:none}}
.online-pill{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;font-size:11px!important;padding:3px 8px!important;bottom:6px!important;left:10px!important;background:#18212dd9;color:white;border-radius:20px;z-index:1}
.online-pill i{width:6px;height:6px;border-radius:50%;background:#44db8c;animation:online-pulse 1.8s ease-in-out infinite}.online-pill b{color:#69ebad}
.stats-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.stats-heading .pink-online{position:static;margin-bottom:4px}
@keyframes online-pulse{50%{opacity:.4}}
body:is([data-theme=glacier],[data-theme=sunburst],[data-theme=mall],[data-theme=studio]) .hero .online-pill,body:is([data-theme=glacier],[data-theme=sunburst]) .reference-hero .online-pill{position:absolute}
body[data-theme=tactical] .hero{min-height:85px;margin:6px 0;padding-bottom:11px}
body[data-theme=tactical] .hero-copy{padding:8px 12px 4px}
body[data-theme=tactical] .hero h1{font-size:21px;margin:2px 0}
body[data-theme=tactical] .hero-caption strong{font-size:12px;padding:3px 6px}
body[data-theme=tactical] .hero-caption{gap:6px}body[data-theme=tactical] .hero-caption p{font-size:11px;margin:0}
body[data-theme=tactical] .hero small{font-size:9px;letter-spacing:1px}
body[data-theme=tactical] .hall-tools{margin-bottom:4px;padding-bottom:0}
body[data-theme=tactical] .hall-tools .status-tabs{padding-bottom:3px}
body[data-theme=tactical] .hall-tools .status-tabs button{padding:7px 3px;font-size:12px}
body[data-theme=tactical] .hall-tools input{padding:7px 10px}
body[data-theme=tactical] .hall-tools .filters{gap:4px;margin-bottom:3px}
body[data-theme=tactical] .filter-menu button{padding:5px 7px;font-size:11px}
body[data-theme=tactical] .filter-menu{padding:3px 0}
body[data-theme=tactical] .category-tabs{margin:4px 0;padding:0}
body[data-theme=tactical] .front-content>.line.section{margin:5px 0}
body[data-theme=tactical] .front-content>.line.section h2{font-size:17px;margin:0}
body[data-theme=tactical] .front-content>.line.section button{padding:5px 8px;font-size:11px}
body[data-theme=tactical] .tactical-card{padding:9px 10px;margin-bottom:7px}
body[data-theme=tactical] .tactical-card h3{font-size:14px;line-height:1.35;margin-bottom:0}
body[data-theme=tactical] .tactical-card .line+.line{margin-top:3px}
body[data-theme=tactical] .tactical-card .game-logo{width:48px;height:48px;flex:none;font-size:38px}
body[data-theme=tactical] .tactical-card .game-name{gap:8px}body[data-theme=tactical] .tactical-card .game-name b{font-size:12px}
body[data-theme=tactical] .tactical-card .tactical-meta{margin:4px 0;gap:5px}
.tactical-footer{display:flex;align-items:center;justify-content:space-between;gap:5px;flex-wrap:wrap}
.tactical-footer .order-social{width:auto;flex:1;justify-content:center;border:0;margin:0!important;padding:0!important}
body[data-theme=tactical] .tactical-price{flex:none;max-width:48%}
body[data-theme=tactical] .tactical-price strong{font-size:18px}
body[data-theme=tactical] .tactical-card button{padding:4px 9px;font-size:11px}
body[data-theme=tactical] .tactical-card .order-social{padding:4px 0 0;margin-top:3px}
body[data-theme=pastel] .pink-promo{padding:8px 8px 9px}body[data-theme=pastel] .pink-promo-copy{margin-top:6px}
body[data-theme=pastel] .pink-promo-copy{align-items:center}
body[data-theme=pastel] .pink-promo-copy strong{font-size:23px;line-height:25px;padding:0 10px;box-shadow:none}
body[data-theme=pastel] .pink-promo-copy p{line-height:14px}
body[data-theme=pastel] .pink-shortcuts button{width:28px;height:28px;padding:5px}
body[data-theme=pastel] .stats-panel{padding:5px;margin-bottom:3px}
body[data-theme=pastel] .stats-panel h2{font-size:13px;padding:3px 8px;margin-bottom:4px}
body[data-theme=pastel] .stats-panel .stats{gap:2px}
body[data-theme=pastel] .stats-panel .stats div{padding:2px 2px;display:flex;flex-direction:column;gap:2px}
body[data-theme=pastel] .stats-panel .stats strong{display:flex;justify-content:center;font-size:18px;line-height:24px;margin:0}body[data-theme=pastel] .stats-panel .stats small{display:block;font-size:9px;line-height:14px}
body[data-theme=pastel] .map-strip{padding:2px 4px 5px;gap:6px}
body[data-theme=pastel] .map-strip button{aspect-ratio:1.85;min-height:48px;border-width:2px;border-radius:12px}
body[data-theme=pastel] .map-strip button span{font-size:10px;padding-bottom:3px}
body[data-theme=pastel] .category-tabs{padding:2px 4px;margin:0 0 5px;gap:5px}
body[data-theme=pastel] .category-tabs button{padding:4px 9px;font-size:11px}
body[data-theme=pastel] .ticket{padding:8px 8px 6px;margin-bottom:7px}
.ticket-main{gap:6px}.ticket h3{font-size:14px;line-height:1.35;margin-bottom:3px}.ticket p{font-size:11px;margin-bottom:0}
.ticket-icon{width:30px;height:30px;flex:none}
.ticket-details{display:flex;align-items:center;justify-content:space-between;gap:5px;flex-wrap:wrap;margin-top:3px}
.ticket-details>small{font-size:9px;flex:1 0 95px}
.ticket-details .order-social{width:auto;flex:0 1 auto;max-width:100%;border:0;padding:0;gap:3px;font-size:9px}
.ticket-details .order-social button{font-size:9px;padding:3px 4px;white-space:nowrap}.ticket-details .order-social span{max-width:55px}
.ticket-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;margin-top:4px;padding-top:4px}.ticket-bottom strong{font-size:23px;justify-self:start;max-width:100%;white-space:normal;overflow-wrap:anywhere}.ticket-bottom .ticket-icons{justify-self:center}.ticket-bottom button{justify-self:end}.ticket-bottom button.primary{padding:4px 12px;font-size:12px}
body[data-theme=glacier] .reference-hero{aspect-ratio:1.9}
body[data-theme=glacier] .reference-copy h1{font-size:clamp(15px,4.6vw,34px)}
body[data-theme=glacier] .reference-copy p,body[data-theme=glacier] .reference-copy strong{font-size:clamp(10px,2.8vw,22px)}
body[data-theme=glacier] .hero-foot{bottom:9%;padding:4px 2px;font-size:clamp(9px,2.6vw,20px)}
body[data-theme=glacier] .category-tabs{padding:6px 0;margin-bottom:5px}body[data-theme=glacier] .category-tabs button{padding:5px 10px;font-size:12px}
body[data-theme=glacier] .reference-orders{gap:8px}
body[data-theme=glacier] .glacier-order{grid-template-columns:64px minmax(0,1fr) 82px;gap:5px 8px;min-height:0;padding:8px;margin-bottom:0;border-radius:var(--radius)!important}
body[data-theme=glacier] .reference-cover{grid-column:1;grid-row:1 / 3;width:64px;height:80px;border-radius:9px;align-self:start}
body[data-theme=glacier] .cover-tag{font-size:9px;padding:3px 7px}
body[data-theme=glacier] .reference-info{grid-column:2 / 4;grid-row:1;min-width:0}
body[data-theme=glacier] .reference-info .line{gap:3px;flex-wrap:wrap}body[data-theme=glacier] .reference-info b{font-size:11px}
body[data-theme=glacier] .reference-info .badge{font-size:10px}body[data-theme=glacier] .reference-info h3{font-size:14px;line-height:1.35;margin:3px 0}
body[data-theme=glacier] .reference-info p{font-size:10px;margin:0 0 4px}body[data-theme=glacier] .reference-tags{gap:3px}
body[data-theme=glacier] .reference-tags .tag{font-size:9px;padding:2px 3px}
body[data-theme=glacier] .reference-bottom{grid-column:3;grid-row:2;flex-direction:column;align-items:flex-end;justify-content:center;gap:4px;margin:0}
body[data-theme=glacier] .reference-bottom strong{font-size:22px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
body[data-theme=glacier] .reference-bottom button.primary{font-size:12px;padding:5px 13px!important}
body[data-theme=glacier] .order-social{grid-column:1;grid-row:2;border:0;padding:0;gap:2px;font-size:10px;align-self:end;justify-content:flex-start;flex-wrap:nowrap}
body[data-theme=glacier] .glacier-features{grid-column:2;grid-row:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;align-self:end;min-width:0}
.glacier-features>span{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:43px;padding:4px 1px;text-align:center;font-size:9px;line-height:1.6;color:#6b839b;background:#f1f6ff;border:1px solid #d7e1ee;border-radius:6px;box-shadow:0 2px 2px #294d6810;overflow-wrap:anywhere}
.glacier-features>span:last-child{color:#bb8449;border-color:#e9ccb8;background:#fff3eb}
body[data-theme=glacier] .order-social button{font-size:9px;padding:3px 4px;white-space:nowrap}body[data-theme=glacier] .order-social span{max-width:65px}
body:is([data-theme=tactical],[data-theme=pastel],[data-theme=glacier]) .order-social button{border:0;background:transparent;border-radius:0;padding:2px 3px;font-size:10px;box-shadow:none;white-space:nowrap}
body[data-theme=glacier] .reference-info b>.tag{font-size:9px;font-weight:400;margin-left:4px;padding:1px 4px;background:#f4faff;border:1px solid #dbe5ef;color:#6a7e8e}
@media(min-width:601px){body[data-theme=glacier] .glacier-order{grid-template-columns:90px minmax(0,1fr) 110px;padding:14px}body[data-theme=glacier] .reference-cover{width:90px;height:90px}body[data-theme=glacier] .reference-info h3{font-size:18px}}
@media(prefers-reduced-motion:reduce){.display-number,.online-pill i{animation:none}}
body:is([data-theme=mall],[data-theme=studio],[data-theme=sunburst]) .order-social{justify-content:flex-start;gap:4px;padding:4px 0;border:0}
body:is([data-theme=mall],[data-theme=studio],[data-theme=sunburst]) .order-social button{border:0;background:transparent;border-radius:0;padding:2px 3px;font-size:10px;box-shadow:none;white-space:nowrap}
@media(max-width:600px){
 body:is([data-theme=mall],[data-theme=studio]) .hero{min-height:86px;margin:5px 0;padding-bottom:20px}
 body:is([data-theme=mall],[data-theme=studio]) .hero-copy{padding:8px 12px}
 body:is([data-theme=mall],[data-theme=studio]) .hero h1{font-size:20px;margin:3px 0}
 body:is([data-theme=mall],[data-theme=studio]) .hero p{font-size:11px;margin:3px 0}
 body:is([data-theme=mall],[data-theme=studio]) .hero small{font-size:8px;letter-spacing:1px}
 body[data-theme=mall] .products{gap:8px}
 body[data-theme=mall] .cover{min-height:32px;padding:2px 8px}
 body[data-theme=mall] .cover span{font-size:30px}
 body[data-theme=mall] .card-inner{padding:8px}
 body[data-theme=mall] .product h3{font-size:13px;line-height:1.35;margin:0 0 4px}
 body[data-theme=mall] .product p{font-size:10px;margin:4px 0}
 body[data-theme=mall] .product .primary{padding:4px 7px;font-size:11px}
 body[data-theme=mall] .front-content .product .order-social{padding:3px 8px 6px}
 body[data-theme=sunburst] .sunburst-order{min-height:0;padding:10px;gap:6px}
 body[data-theme=sunburst] .delta-mark{font-size:29px}
 body[data-theme=sunburst] .sunburst-order h3{font-size:14px}
 body[data-theme=sunburst] .sunburst-order>p{font-size:11px;line-height:1.45}
 body[data-theme=sunburst] .reference-bottom{padding-top:6px;gap:4px}
 body[data-theme=sunburst] .reference-bottom strong{font-size:19px}
 body[data-theme=sunburst] .reference-bottom .primary{padding:4px 9px!important;font-size:12px}
 body[data-theme=studio] .studio-order-card{padding:7px}
 body[data-theme=studio] .studio-order-card h3{font-size:14px;margin:4px 0}
 body[data-theme=studio] .studio-order-card p{font-size:11px;margin:4px 0}
 body[data-theme=studio] .studio-order-card .primary{padding:4px 9px;font-size:12px}
 body[data-theme=studio] .studio-shell{padding:8px;gap:8px;--studio-gap:8px}
 body[data-theme=studio] .studio-shell{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
 body[data-theme=studio] .studio-nav{position:fixed;z-index:5;top:auto;bottom:0;left:50%;right:auto;transform:translateX(-50%);width:min(100%,var(--studio-width));min-height:60px;flex-wrap:nowrap;overflow-x:auto;justify-content:space-around;padding:4px 6px max(4px,env(safe-area-inset-bottom));gap:3px;border:1px solid #e0e4ec;border-radius:16px 16px 0 0;box-shadow:0 -5px 24px #1721370a}
 body[data-theme=studio] .studio-nav button{flex:1;flex-direction:column;padding:4px 5px;font-size:11px;gap:3px;min-width:45px;border:0;background:transparent;color:#68778c}
 body[data-theme=studio] .studio-nav button[aria-current=page]{color:var(--accent);background:transparent}
 body[data-theme=studio] .studio-nav svg{width:20px;height:20px}
 body[data-theme=studio] .studio-row{gap:8px}
 body[data-theme=studio] .studio-block>.card{padding:8px;margin:0}
 body[data-theme=studio] .studio-block>.card h2{font-size:15px;margin:0 0 4px}
 body[data-theme=studio] .studio-block>.card p{font-size:11px;margin:0}
 body[data-theme=studio] .studio-block>.card button{padding:5px 9px;font-size:12px}
 body[data-theme=studio] .studio-orders-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-theme=studio] .studio-orders{gap:8px}
 body:is([data-theme=studio],[data-theme=mall]) .status-tabs{padding:3px 0}
 body:is([data-theme=studio],[data-theme=mall]) .button-filters{gap:5px;padding:0;margin-bottom:6px}
 body:is([data-theme=studio],[data-theme=mall]) .button-filters input[type=search]{padding:6px 9px}
 body:is([data-theme=studio],[data-theme=mall]) .filter-menu{margin:3px 0;gap:3px}
 body:is([data-theme=studio],[data-theme=mall]) .filter-menu button{font-size:11px;padding:5px 8px}
 body[data-theme=studio] .studio-layout .category-tabs{margin:2px 0;padding:2px 0}
 body[data-theme=studio] .studio-layout .status-tabs{margin:0;padding:0}
 body[data-theme=studio] .studio-layout .status-tabs button{padding:7px 8px;font-size:12px}
 body[data-theme=studio] .studio-layout .filter-menu{padding:2px 0;margin:2px 0}
 body[data-theme=studio] .studio-layout .filters{margin:0;padding:0}
 body[data-theme=studio] .studio-order-card h3{font-size:12px;line-height:1.35}
 body[data-theme=studio] .studio-order-card p{font-size:10px;line-height:1.35}
 body[data-theme=studio] .studio-order-card .badge{font-size:10px;padding:3px 5px}
 body[data-theme=sunburst] .reference-orders{gap:8px}
 body[data-theme=sunburst] .sunburst-order .reference-tags .tag{font-size:9px;padding:2px 4px}
 body[data-theme=sunburst] .sunburst-order .reference-bottom{margin-top:0}
 body[data-theme=sunburst] .reference-hero{aspect-ratio:2.5}
 body[data-theme=mall] .hero-caption{gap:3px}
 body[data-theme=mall] .hero-caption strong{font-size:11px;padding:2px 4px}
 body[data-theme=mall] .hero{height:100px;min-height:100px;padding-bottom:10px}
 body[data-theme=mall] .section{margin:5px 0}
 body[data-theme=mall] .section h2{font-size:17px}
 body[data-theme=mall] .filter-menu{padding:2px 0}
 body[data-theme=studio] .studio-row:has(>.studio-block-stats):has(>.studio-block-publish){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 body[data-theme=studio] .studio-block-publish .actions{gap:4px;flex-wrap:wrap;justify-content:flex-start}
 body[data-theme=studio] .studio-block-publish .card button{font-size:10px;padding:4px 6px}
 body[data-theme=studio] .hero{padding-bottom:18px;min-height:70px}
 body[data-theme=studio] .hero h1{font-size:18px;margin:0}
 body[data-theme=studio] .hero-caption{gap:2px}
 body[data-theme=studio] .hero-caption strong{padding:0;font-size:11px}
}

.studio-order-card{display:flex;flex-wrap:wrap;gap:5px;align-content:start}.studio-order-card>.studio-part{width:100%;min-width:0;margin:0}.studio-order-card>[data-card-part=status],.studio-order-card>[data-card-part=amount]{width:calc(50% - 3px)}.studio-order-card>[data-card-part=amount]{text-align:right}
.studio-order-card>[data-card-part=status]{order:var(--ui-order-status,0)}.studio-order-card>[data-card-part=amount]{order:var(--ui-order-amount,1)}.studio-order-card>[data-card-part=title]{order:var(--ui-order-title,2)}.studio-order-card>[data-card-part=meta]{order:var(--ui-order-meta,3)}.studio-order-card>[data-card-part=category]{order:var(--ui-order-category,4)}.studio-order-card>[data-card-part=social]{order:var(--ui-order-social,5)}
.ui-order-line{display:flex;align-items:center;gap:8px;padding:5px}.ui-order-line>span{flex:1}.studio-row-editor legend[draggable]{cursor:grab}.ui-property>span{display:flex;align-items:center;gap:6px}.ui-property input[type=checkbox]{width:auto}
.preview-card{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow:auto}
body[data-theme=studio].studio-picking .order-title::after{display:none}
body[data-theme=studio].studio-picking :is(button,.studio-part,.hero,.card):hover{outline:1px dashed var(--accent);outline-offset:1px;cursor:pointer}
@media(max-width:950px){.preview-card{position:static;max-height:none;overflow:visible}}
@media(max-width:600px){body[data-theme=studio] .studio-order-card{gap:2px}body[data-theme=studio] .studio-order-card>h3,body[data-theme=studio] .studio-order-card>p{margin:0}}

.appearance-editor>.form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.appearance-editor .ui-property{min-width:0}.appearance-editor .ui-property>span{min-height:36px;line-height:1.4}
@media(max-width:700px){.appearance-editor>.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Keep hall controls visible while orders scroll independently. */
body:has(.hall-viewport){height:100dvh;overflow:hidden}
.hall-viewport{height:100dvh;display:flex;flex-direction:column;overflow:hidden}
.hall-viewport>.front-header,.hall-viewport>.preview-bar{flex:none}
.hall-viewport .front-content{width:100%;flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding-bottom:calc(50px + env(safe-area-inset-bottom))}
.hall-viewport .front-content>*{flex-shrink:0}
.hall-viewport .hall-order-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain}
.hall-viewport .studio-shell{flex:1;min-height:0;width:100%;overflow:hidden}
.hall-viewport .studio-shell-side{align-items:stretch}
.hall-viewport .studio-layout[data-studio-page=home]{display:flex;flex-direction:column;flex:1;min-height:0}
.hall-viewport .studio-layout[data-studio-page=home]>.studio-row{flex:none}
.hall-viewport .studio-layout[data-studio-page=home]>.studio-row:has(.studio-block-orders){flex:1;min-height:0;align-items:stretch}
.hall-viewport .studio-block-orders{display:flex;min-height:0;flex-direction:column}
.hall-viewport .studio-shell .front-content{padding-bottom:0}
@media(max-width:600px){body[data-theme=studio] .hall-viewport .studio-shell{padding-bottom:calc(50px + env(safe-area-inset-bottom))}}

body[data-theme=tactical] .hall-viewport .tactical-card{margin-bottom:3px}

body[data-theme=tactical] .hall-viewport .front-content{padding-bottom:calc(50px + env(safe-area-inset-bottom))}

.hall-viewport .studio-shell{grid-template-rows:minmax(0,1fr)}
@media(min-width:601px){.hall-viewport .studio-shell-top{grid-template-rows:auto minmax(0,1fr)}}
.hall-viewport .studio-shell .front-content{height:100%;margin:0}
@media(min-width:601px) and (max-height:950px){
 .hall-viewport .studio-layout[data-studio-page=home]{row-gap:min(var(--studio-gap),8px)}
 .hall-viewport .studio-block-hero .hero{min-height:105px}
 .hall-viewport .studio-block-hero .hero-copy{padding:12px 18px}
 .hall-viewport .studio-block-stats>.card,.hall-viewport .studio-block-publish>.card{padding:8px 12px}
 .hall-viewport .studio-block-stats>.card :is(h2,p){margin:4px 0}
 .hall-viewport .studio-block-games .tiles button{padding:6px}
 .hall-viewport .studio-block-games .tiles span{width:28px;height:28px;margin-bottom:4px}
 .hall-viewport .studio-block-filters .button-filters{display:grid!important;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:4px 8px;padding:0}
 .hall-viewport .studio-block-filters input[type=search]{grid-column:1/-1;margin:0}
 .hall-viewport .studio-block-filters .filter-menu{padding:2px 0}
}

/* 50px menu body; device safe area remains below it. */
body.front nav.bottom{height:calc(50px + env(safe-area-inset-bottom));padding:2px 6px calc(2px + env(safe-area-inset-bottom));align-items:center}
body.front nav.bottom>button{height:44px;padding:0 2px;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.2}
body.front nav.bottom>button>span:not(.count){width:24px;height:24px;margin:0 auto 1px;font-size:23px;line-height:24px;flex:none}
body.front nav.bottom>button>span:not(.count)>svg{width:20px;height:20px}
body.front:is([data-theme=sunburst],[data-theme=glacier]) nav.bottom>button[data-page=publish]{font-size:0}
body.front:is([data-theme=sunburst],[data-theme=tactical]) nav.bottom>button[data-page=publish]>span:not(.count){width:34px;height:28px;margin:0;border-width:2px}
body.front[data-theme=glacier] nav.bottom>button[data-page=publish]>span:not(.count){width:32px;height:32px;margin:0;font-size:26px;line-height:32px}
@media(max-width:600px){
 body.front[data-theme=studio] .studio-nav{height:calc(50px + env(safe-area-inset-bottom));min-height:0;padding:2px 6px calc(2px + env(safe-area-inset-bottom))}
 body.front[data-theme=studio] .studio-nav>button{height:44px;padding:0 5px;gap:2px;line-height:13px}
}

body.front[data-theme=tactical] nav.bottom>button>span:not(.count){width:20px;height:20px;font-size:20px;line-height:20px}
body.front[data-theme=tactical] nav.bottom>button[data-page=publish]>span:not(.count){width:28px;height:20px}
body.front[data-theme=tactical] nav.bottom>button[data-page=publish]>span:not(.count)>svg{width:16px;height:16px}

body.front .hall-viewport .front-content{padding-bottom:calc(50px + env(safe-area-inset-bottom))}
body.front[data-theme=studio] .hall-viewport .studio-shell .front-content{padding-bottom:0}

/* Pink brand header: compact the controls, keep the title font. */
body[data-theme=pastel] .front-header.pink-header{padding-top:2px;padding-bottom:2px}
body[data-theme=pastel] .pink-header i{width:22px;height:22px;font-size:17px;border-radius:7px}
body[data-theme=pastel] .pink-header .front-header-actions button{padding-top:0;padding-bottom:0}
body[data-theme=pastel] .pink-header .header-messages svg{width:18px;height:18px}
body[data-theme=tactical] .front-header .account-tray summary{padding:0 2px;line-height:24px}

body[data-theme=mall] .front-header{padding-top:2px;padding-bottom:2px}
body[data-theme=mall] .front-header .front-header-actions button{padding-top:0;padding-bottom:0}
body[data-theme=mall] .front-header .account-tray summary{padding-top:0;padding-bottom:0;line-height:24px}
body[data-theme=mall] .front-content>.line.section{align-items:center}
body[data-theme=mall] .front-content>.line.section h2{margin:0;line-height:22px}
body[data-theme=mall] .front-content>.line.section>button{height:22px;padding-top:0;padding-bottom:0;line-height:20px}
body[data-theme=mall] .front-header>button{padding-top:0;padding-bottom:0}

body:is([data-theme=glacier],[data-theme=sunburst]) .front-header{padding-top:2px;padding-bottom:2px}
body:is([data-theme=glacier],[data-theme=sunburst]) .front-header>button,body:is([data-theme=glacier],[data-theme=sunburst]) .front-header .front-header-actions button{padding-top:0;padding-bottom:0}
body[data-theme=glacier] .reference-hero{aspect-ratio:auto;height:calc((min(100vw, 960px) - 32px) / 1.9 - 15px)}
@media(max-width:600px){body[data-theme=glacier] .reference-hero{height:calc(100vw / 1.9 - 15px)}}

/* Anonymous account entry follows each template instead of a slash label. */
body.front .front-header-actions>button.header-auth{padding:0 8px;line-height:22px;border:1px solid var(--accent);border-radius:min(var(--radius),10px);background:var(--accent);color:#fff}
body[data-theme=pastel] .front-header-actions>button.header-auth{background:#fff1f6;border-color:#edbbd0;color:var(--accent);border-radius:8px}
body[data-theme=glacier] .front-header-actions>button.header-auth{background:#eaf7ff;border-color:#9cd4f0;color:#176b9c;border-radius:999px}
body[data-theme=sunburst] .front-header-actions>button.header-auth{background:#fff3cf;border-color:#f0cc5c;color:#7a5400;border-radius:6px}
body[data-theme=tactical] .front-header-actions>button.header-auth{background:#2d3342;border-color:#596275;color:#fff;border-radius:6px}

body[data-theme=mall] .mall-heading-actions{gap:8px}
body[data-theme=mall] .mall-heading-actions>button{height:22px;padding-top:0;padding-bottom:0;line-height:20px}
body[data-theme=mall] .mall-heading-actions>.mall-search-button{width:22px;padding:0;display:grid;place-items:center;color:var(--accent)}
.mall-search-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}

/* Additional lobby presets */
body:is([data-theme=nightops],[data-theme=amber],[data-theme=mint]) .front-header{background:var(--header);padding-block:2px}
body:is([data-theme=nightops],[data-theme=amber]) .front-header button,
body:is([data-theme=nightops],[data-theme=amber]) .front-header strong{color:#f5f5ee}
body:is([data-theme=nightops],[data-theme=amber]){--lobby-panel:#192321;--lobby-ink:#f4f7f5;--lobby-muted:#b0c0b8;--lobby-border:#345047}
body[data-theme=amber]{--lobby-panel:#262117;--lobby-ink:#fff5df;--lobby-muted:#d1c1a2;--lobby-border:#4b3d27}
body[data-theme=mint]{--lobby-panel:#fff;--lobby-ink:#182921;--lobby-muted:#4a6055;--lobby-border:#dcebe2}
.new-hall-hero{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:end;justify-content:space-between;gap:8px;min-height:124px;padding:14px;margin-bottom:6px;border:1px solid var(--lobby-border);border-radius:var(--radius);color:#fff;background:#121c19}
.new-hall-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 38%;z-index:-2}
.new-hall-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#101b17f5,#11181537),linear-gradient(0deg,#111815a0,transparent);z-index:-1}
[data-theme=amber] .new-hall-hero::after{background:linear-gradient(90deg,#271d0cf5,#271d0c50)}
[data-theme=mint] .new-hall-hero{color:#15271f;border-color:#86bda8}
[data-theme=mint] .new-hall-hero::after{background:linear-gradient(90deg,#e4f2eaff 28%,#e4f2eaaa 58%,#e4f2ea08)}
.new-hall-hero h1{margin:0;font-size:clamp(19px,5vw,30px);overflow-wrap:anywhere}
.new-hall-hero p{margin:4px 0 0;font-size:12px}
.new-hall-hero button,.new-hall-card button.primary{flex:none;background:var(--claim);color:var(--claim-ink);border-color:var(--claim);padding:4px 10px}
.new-hall-overview{display:flex;margin-bottom:6px;text-align:center;background:var(--lobby-panel);color:var(--lobby-muted);border:1px solid var(--lobby-border);border-radius:var(--radius)}
.new-hall-overview div{flex:1;padding:4px}
.new-hall-overview strong,.new-hall-overview small{display:block}
.new-hall-overview strong{color:var(--accent)}
[data-theme=amber] .map-strip{margin:4px 0}
[data-theme=amber] .map-strip button{height:58px}
.new-hall-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:4px 9px;margin-bottom:7px;padding:9px;background:var(--lobby-panel);color:var(--lobby-ink);border:1px solid var(--lobby-border);border-radius:var(--radius)}
[data-theme=nightops] .new-hall-card{border-top:2px solid var(--accent)}
.new-hall-card h3,.new-hall-card p{margin:0;overflow-wrap:anywhere}
.new-hall-card h3{font-size:16px}
.new-hall-card .order-title{color:var(--lobby-ink)}
.new-hall-card p{font-size:12px;color:var(--lobby-muted)}
.new-hall-mark{display:grid;place-items:center;overflow:hidden;width:40px;height:40px;background:#131c20;color:var(--accent);border-radius:8px;font-size:24px}
.new-hall-mark img{width:100%;height:100%;object-fit:cover}
[data-theme=nightops] .new-hall-mark{width:52px;height:58px}
[data-theme=amber] .new-hall-mark{background:#3c301a}
.new-hall-action{display:flex;flex-direction:column;align-items:flex-end;gap:3px}
.new-hall-action strong{color:var(--accent);font-size:16px;overflow-wrap:anywhere}
[data-theme=mint] .new-hall-action strong{color:#82601b}
.new-hall-card .order-social{grid-column:2/-1}
body:is([data-theme=nightops],[data-theme=amber]) .category-tabs button{color:var(--lobby-ink);background:var(--lobby-panel);border-color:var(--lobby-border)}
body:is([data-theme=nightops],[data-theme=amber]) .category-tabs button.selected{color:#141a16;background:var(--accent);border-color:var(--accent)}
body:is([data-theme=nightops],[data-theme=amber],[data-theme=mint]) .hall-viewport .front-content{padding-top:5px}
.template-option.nightops .mini{background:#19332b}
.template-option.amber .mini{background:#544021}
.template-option.mint .mini{background:#cbe9db}
body:is([data-theme=nightops],[data-theme=amber]) nav.bottom{background:var(--header);border-color:var(--lobby-border)}
body:is([data-theme=nightops],[data-theme=amber]) nav.bottom button{color:var(--lobby-muted)}
body:is([data-theme=nightops],[data-theme=amber]) nav.bottom button.selected{color:var(--accent)}
[data-theme=amber] .new-hall-action{display:contents}
[data-theme=amber] .new-hall-action .badge{grid-column:3;grid-row:1;align-self:start;justify-self:end}
[data-theme=amber] .new-hall-action strong{grid-column:1/3;grid-row:2;align-self:center}
[data-theme=amber] .new-hall-action button{grid-column:3;grid-row:2}
[data-theme=nightops] .new-hall-action strong{color:var(--claim)}
body:is([data-theme=nightops],[data-theme=amber]) .front-content>.line.section>h2,
body:is([data-theme=nightops],[data-theme=amber]) .front-content>.order-screen-heading h2{color:var(--lobby-ink)}
body:is([data-theme=nightops],[data-theme=amber]) .front-content>.order-screen-heading p{color:var(--lobby-muted)}
body:is([data-theme=nightops],[data-theme=amber],[data-theme=mint]) .front-content button.primary,
body:is([data-theme=nightops],[data-theme=amber],[data-theme=mint]) .auth-modal button.primary{background:var(--claim);border-color:var(--claim);color:var(--claim-ink)}
