/* Xiantu workspace uses the shared public shell tokens and navigation. */
.page-xiantu{--text:var(--ink);--accent-ink:#fff;--danger:#b34550;font-size:14px;line-height:1.65}
[data-theme=dark] .page-xiantu{--accent-ink:#10251b;--danger:#f49aa6}
.page-xiantu button{min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:11px;background:var(--panel);color:var(--ink);font:inherit;font-size:13px;line-height:1.4;cursor:pointer;touch-action:manipulation}
.page-xiantu button:hover:not(:disabled){border-color:var(--primary);background:var(--surface)}.page-xiantu button:disabled{opacity:.45;cursor:not-allowed}.page-xiantu button.primary{background:var(--primary);color:var(--accent-ink);border-color:var(--primary);font-weight:650}.page-xiantu button.primary:hover:not(:disabled){filter:brightness(.96)}.page-xiantu .danger{color:var(--danger);border-color:color-mix(in srgb,var(--danger) 35%,var(--line))}
.page-xiantu input:not([type=checkbox]):not([type=hidden]){width:100%;min-width:0;min-height:44px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--ink);padding:10px 12px;font:inherit}.page-xiantu input[type=checkbox]{width:18px;height:18px;accent-color:var(--primary);flex:none;margin:0}.page-xiantu label{min-width:0;font-size:13px}.page-xiantu label>input:not([type=checkbox]){display:block;margin-top:7px}
.page-xiantu h1,.page-xiantu h2,.page-xiantu h3,.page-xiantu p{margin:0}.page-xiantu h1{font-size:34px;letter-spacing:-1px;line-height:1.35}.page-xiantu h2{font-size:17px;line-height:1.5}.page-xiantu h3{font-size:14px;line-height:1.5}.muted{color:var(--muted)}.small{font-size:12px}.selectable{user-select:text}.spacer{flex:1}.eyebrow{color:var(--primary);letter-spacing:2px;font-size:10px;font-weight:700;margin-bottom:6px}.message{overflow-wrap:anywhere;white-space:pre-wrap;margin-top:12px!important;color:var(--muted);font-size:13px}.message:empty{display:none}.message[data-level=error]{color:var(--danger)}.field-title{color:var(--muted);font-size:12px;margin:18px 0 8px}
.xiantu-main{width:min(1440px,calc(100% - 48px));margin:0 auto;padding:32px 0 0}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.page-heading p{margin-top:8px;font-size:13px}.status-pill{padding:8px 12px;border:1px solid var(--line);border-radius:24px;font-size:12px;background:var(--panel);color:var(--muted);flex-shrink:0}.workspace-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}.workspace-shortcuts{display:flex;gap:4px;flex-wrap:wrap}.workspace-shortcuts a{padding:9px 12px;border-radius:9px;font-size:13px;min-height:40px}.workspace-shortcuts a:hover{background:var(--surface);color:var(--primary)}.workspace-user{display:flex;align-items:center;gap:12px;flex-shrink:0}.workspace-user>span{max-width:180px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px;color:var(--muted)}
.workbench{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px;align-items:start}.control-column{min-width:0;display:grid;gap:18px}.card{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:var(--shadow);min-width:0}.top-cards{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}.section-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:18px}.section-heading.compact{margin:18px 0 10px}.section-heading .action-row{margin:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.full{grid-column:1/-1}.check{display:flex;align-items:center;gap:8px;line-height:1.7}.consent{margin:16px 0;font-size:12px!important;align-items:flex-start;color:var(--muted)}.check input{margin-top:3px!important}.server-choice{width:100%;margin-top:7px;text-align:left;min-height:44px}.action-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.action-row>*{max-width:100%}
.account-card{border-top:3px solid var(--primary)}.account-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:10px;margin-bottom:14px}.account-choices button{display:grid;gap:5px;text-align:left;max-width:100%;min-width:0;padding:13px 14px;overflow-wrap:anywhere}.account-choices strong{font-size:14px}.account-choices small{font-size:12px;color:var(--muted);font-weight:400}#selectedStatus{font-size:13px}#nextRun{margin-top:4px}.page-xiantu button[aria-pressed=true]{border-color:var(--primary);color:var(--primary);background:var(--surface)}.choice-group{display:flex;gap:8px;flex-wrap:wrap}.choice-group button{flex:1 1 auto}.task-options{display:grid;grid-template-columns:1fr;gap:9px;margin-top:16px}.task-option{display:flex;align-items:flex-start;gap:9px;border:1px solid var(--line);border-radius:11px;padding:12px;font-size:13px;line-height:1.7;min-height:46px}.task-option input{margin-top:3px!important}.task-option:has(input:checked){border-color:color-mix(in srgb,var(--primary) 30%,var(--line));background:var(--surface)}.task-option:has(input:disabled){color:var(--muted)}.unavailable{opacity:.45}.script-actions{display:flex;gap:8px;margin:18px 0 10px}.script-actions button{flex:1}.task-card>#saveMode{width:100%}.task-card .section-heading{margin-top:20px}.task-card>#taskHint{margin-top:14px;font-size:12px;line-height:1.8}.task-card #taskState{font-size:12px}.schedule-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-bottom:16px}.schedule-row{display:flex;align-items:flex-end;gap:8px}.schedule-row label{flex:1;min-width:0;color:var(--muted);font-size:12px}.schedule-row button{padding:10px 11px}.schedule-card>.action-row{gap:8px}.schedule-card>.action-row>button{flex:1 1 40%}.schedule-card .spacer{display:none}.schedule-card #removeAccount{flex-basis:100%;margin-top:8px}.schedule-card #scheduleState{font-size:12px}
.account-editor>summary,.bot-card>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;list-style:none;cursor:pointer;font-size:15px;font-weight:650;min-height:28px}.account-editor>summary::-webkit-details-marker,.bot-card>summary::-webkit-details-marker{display:none}.account-editor>summary::after,.bot-card>summary::after{content:'＋';font-size:20px;flex-shrink:0;color:var(--primary)}.account-editor[open]>summary::after,.bot-card[open]>summary::after{content:'−'}.account-editor summary>span,.bot-card summary>span{margin-left:auto;font-weight:400}.account-editor-body{padding-top:22px;margin-top:18px;border-top:1px solid var(--line)}.bot-row{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding-top:18px;margin-top:18px;border-top:1px solid var(--line)}.bot-row p{margin-top:6px}.bot-card .bot-row>div:first-child h3{display:none}
.table-scroll{overflow:auto;max-width:100%}.table-scroll table{width:100%;border-collapse:collapse;font-size:13px}.table-scroll th,.table-scroll td{padding:12px 10px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}.table-scroll th:first-child,.table-scroll td:first-child{text-align:left}.table-scroll th{color:var(--muted);font-size:12px;font-weight:500;background:var(--surface)}.table-scroll td:first-child{font-weight:600}.log-card{min-height:180px}#logs{height:190px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;padding:14px;background:var(--bg);border-radius:12px;font:12px/1.9 Consolas,"Microsoft YaHei",monospace;color:var(--muted);overscroll-behavior:contain}
.game-column{min-width:0;position:sticky;top:98px;display:grid;gap:14px}.game-panel{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#0e1a16}.game-toolbar{padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--panel);min-height:64px}.game-toolbar strong{font-size:13px;overflow-wrap:anywhere}.game-toolbar button{min-height:44px;padding:9px 11px;font-size:12px}.game-viewport{aspect-ratio:9/16;position:relative}.game-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#8ba99c}.game-orbit{border:1px solid #5dc6a54d;border-radius:24px;width:68px;height:68px;display:grid;place-items:center;font-size:32px;color:#7ad6b7;margin-bottom:20px}.game-empty h2{font-size:26px;letter-spacing:8px;padding-left:8px;color:#d3e7dd}.game-empty p{font-size:13px;line-height:1.9;text-align:center;margin-top:14px}#gameFrame,#xiantuVisualFrame{position:absolute;inset:0;width:100%;height:100%;border:0}.game-entry{padding:16px}.game-entry .check{flex-wrap:wrap;gap:4px}.game-entry .primary{width:100%;margin-top:14px}.game-entry>.muted{margin-top:12px;font-size:12px;line-height:1.8}.game-display-option{display:grid;gap:6px;padding:12px 14px;border-bottom:1px solid var(--line);background:var(--panel)}.game-display-option .check{font-size:13px;color:var(--ink);cursor:pointer}.game-display-option input:disabled{cursor:not-allowed}#localTerms{flex-wrap:wrap}
.auth-card{width:min(440px,100%);margin:6vh auto;padding:30px}.auth-card h1{font-size:30px;margin:8px 0}.auth-card p{font-size:13px}.auth-card form{display:grid;gap:16px;margin-top:24px}.auth-card label{display:block;color:var(--muted)}.auth-tabs{margin-top:22px}.auth-tabs button{flex:1}.loading{padding:12vh 0;text-align:center;color:var(--muted)}.page-xiantu dialog{background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:18px;padding:22px;width:min(620px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto;box-shadow:0 25px 80px #0004;overscroll-behavior:contain}.page-xiantu dialog::backdrop{background:#071c1499;backdrop-filter:blur(4px)}.page-xiantu dialog>.section-heading{position:sticky;top:-22px;z-index:2;padding:12px 0;background:var(--panel);margin-bottom:16px}.server-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px;max-height:50dvh;overflow:auto}.page-xiantu .history-dialog{width:min(820px,calc(100vw - 28px))}.history-dialog h3{margin:18px 0 10px}.history-run{border-top:1px solid var(--line);padding-top:14px;margin-top:20px}#confirmText{margin:16px 0 22px;white-space:pre-wrap}.history-months{margin:16px 0}.history-months button{min-width:110px}
@media(max-width:1200px){.top-cards{grid-template-columns:minmax(0,1fr)}.workbench{grid-template-columns:minmax(0,1fr) 290px;gap:18px}.task-options{grid-template-columns:1fr 1fr}.schedule-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-toolbar{flex-wrap:wrap}.workspace-user{margin-left:auto}}
@media(max-width:850px){.workbench{grid-template-columns:minmax(0,1fr)}.game-column{position:static;width:min(100%,430px);justify-self:center;display:flex;flex-direction:column;gap:14px}.game-entry{order:-1}.workspace-user{margin:0;justify-content:space-between;flex:1 1 100%;border-top:1px solid var(--line);padding-top:10px}.xiantu-main{width:calc(100% - 32px);padding-top:24px}.game-column{scroll-margin-top:82px}.control-column>*{scroll-margin-top:82px}.workspace-shortcuts{width:100%;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}.workspace-shortcuts a{padding:10px 4px;text-align:center;min-height:44px;font-size:12px}}
@media(max-width:600px){.xiantu-main{width:calc(100% - 28px);padding-top:22px}.page-xiantu h1{font-size:28px}.page-heading{align-items:flex-start;gap:12px;flex-direction:column;margin-bottom:16px}.page-heading p{font-size:12px}.status-pill{font-size:12px;padding:6px 11px}.workspace-toolbar{padding:10px;margin-bottom:16px}.workspace-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.workspace-shortcuts a{background:var(--surface);font-size:13px}.workspace-user>span{max-width:190px}.card{padding:16px;border-radius:15px}.control-column,.top-cards{gap:14px}.section-heading{gap:10px;margin-bottom:14px}.section-heading .action-row{flex-wrap:nowrap;gap:6px}.page-xiantu button{min-height:44px;font-size:13px;padding:10px 12px}.page-xiantu input:not([type=checkbox]):not([type=hidden]){font-size:16px;min-height:46px}.page-xiantu input[type=checkbox]{width:20px;height:20px}.form-grid{grid-template-columns:minmax(0,1fr);gap:14px}.task-options{grid-template-columns:minmax(0,1fr);gap:8px}.task-option{font-size:13px}.schedule-grid{grid-template-columns:minmax(0,1fr);gap:12px}.account-choices{grid-template-columns:minmax(0,1fr)}.account-choices button{padding:13px 14px;min-height:72px}.account-card>.section-heading{align-items:flex-start;flex-direction:column}.account-card>.section-heading .action-row{width:100%}.account-card>.section-heading button{flex:1}.choice-group{gap:7px}.choice-group button{min-height:44px;padding-inline:10px}.field-title{font-size:12px}.account-editor>summary,.bot-card>summary{font-size:14px;min-height:44px;flex-wrap:wrap;gap:8px}.account-editor summary>span,.bot-card summary>span{display:none}.account-editor summary::after,.bot-card summary::after{margin-left:auto}.account-editor-body{padding-top:16px;margin-top:12px}.consent{font-size:12px!important}.bot-row{margin-top:10px;padding-top:14px}.bot-row .action-row{width:100%}.bot-row .action-row button{flex:1}.rewards-card .section-heading{align-items:flex-start}.rewards-card .section-heading .action-row{flex:1 1 100%;justify-content:space-between}.log-card .section-heading .action-row{width:100%;justify-content:space-between}.table-scroll th,.table-scroll td{padding:10px 8px;font-size:12px}.game-column{max-width:390px}.game-toolbar{padding:10px 12px}.game-entry .check{font-size:12px}.game-entry .primary{min-height:46px}.server-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.page-xiantu dialog{padding:16px;width:calc(100vw - 20px);border-radius:16px;max-height:calc(100dvh - 24px)}.page-xiantu dialog>.section-heading{top:-16px;padding-block:10px}.history-months{gap:8px}.history-months button{min-width:0;flex:1 1 40%}.auth-card{margin-top:3vh;padding:22px}.auth-card h1{font-size:27px}.page-xiantu .site-theme{font-size:21px}.page-xiantu .site-header-actions button{padding:9px 11px}}
@media(prefers-reduced-motion:reduce){.page-xiantu *{scroll-behavior:auto!important}}

.page-xiantu .icp-record{text-align:center;margin:18px auto 0;padding:16px 12px 0;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.page-xiantu .icp-record p{margin:0}.page-xiantu .icp-record p+p{margin-top:7px}.page-xiantu .icp-record span{display:inline-flex;align-items:center;gap:5px}.page-xiantu .icp-record img{display:block;flex:none;width:16px;height:16px}.page-xiantu .icp-record a:hover{text-decoration:underline}

.page-xiantu section[id],#newAccountPanel{scroll-margin-top:100px}
