/* 后台样式：组件外观交给 antd 主题（admin/src/main.tsx），这里只管页面骨架、表单栅格、弹窗滚动与少量业务块。 */
body { margin: 0; background: #f7f4ee; }
.hidden { display: none !important; }
.muted, .helper { color: rgba(0, 0, 0, .5); font-size: 13px; }
.helper { margin: 4px 0 12px; line-height: 1.6; }
.err { color: #cf1322; }
.full { width: 100% !important; }
.mono, .json textarea, textarea.json { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
td.mono { max-width: 360px; word-break: break-all; }

/* 登录 */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; box-sizing: border-box; background: linear-gradient(160deg, #eef3ff 0%, #f3f5f9 55%); }
.login-card { width: min(420px, 100%); box-shadow: 0 10px 30px rgba(30, 50, 100, .08); }
.login-card h3 { margin-top: 0; }
.login-msg { margin-top: 16px; }

/* 骨架 */
.admin-layout { min-height: 100vh; }
.admin-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #e8ebf0; box-shadow: 0 1px 4px rgba(20, 30, 60, .04); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand strong { font-size: 16px; white-space: nowrap; }
.brand .ant-tag { margin: 0; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.game-switch { display: flex; align-items: center; gap: 8px; color: rgba(0, 0, 0, .55); font-size: 13px; }
.game-switch .ant-select { min-width: 148px; }
.admin-sider { position: sticky; top: 56px; height: calc(100vh - 56px); overflow: auto; border-right: 1px solid #e8ebf0; }
.admin-sider .ant-menu, .menu-drawer .ant-menu { border-inline-end: none !important; padding-top: 8px; }
.workspace-main { padding: 20px 24px 48px; min-width: 0; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.page-heading h3 { margin: 0 0 2px !important; }
#status.ok, #status.err { margin-bottom: 16px; }
#content { display: grid; gap: 16px; min-width: 0; }
#content > * { min-width: 0; }
.stack { display: grid; gap: 16px; min-width: 0; }

/* 卡片与工具条 */
.section { min-width: 0; }
.section-title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; }
.section .ant-card-head { min-height: 52px; }
.section .ant-card-extra { margin-inline-start: 16px; }
.section > .ant-card-body > * + * { margin-top: 16px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px dashed #e5e8ee; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.filters .ant-form-item { margin-bottom: 0; min-width: 180px; }
.config-tabs > .ant-tabs-nav { margin-bottom: 16px; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--min, 200px), 1fr)); column-gap: 16px; }
.subsection { border: 1px solid #e9ecf2; border-radius: 10px; padding: 12px 16px 4px; margin: 0 0 16px; min-width: 0; background: #fff; }
.subsection > legend { float: none; width: auto; padding: 0 6px; margin: 0 0 0 -6px; font-size: 14px; font-weight: 600; border: 0; color: rgba(0, 0, 0, .85); }
.subsection > legend .count { margin-left: 8px; font-weight: 400; font-size: 12px; color: rgba(0, 0, 0, .45); }
.config-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); column-gap: 16px; align-items: end; min-width: 0; }
.config-grid > fieldset, .config-grid > .config-extra { grid-column: 1 / -1; }
.config-check { padding-bottom: 22px; }
.config-extra { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.config-collapse { background: #fafbfd; margin-bottom: 10px; }
.config-collapse > .ant-collapse-item > .ant-collapse-header { align-items: center !important; padding: 8px 12px !important; }
.config-collapse .ant-collapse-content-box { padding: 12px 12px 0 !important; background: #fff; }
.entry-title { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 10px; row-gap: 2px; min-width: 0; }
.entry-title strong { font-weight: 600; }
.entry-summary { color: rgba(0, 0, 0, .45); font-size: 12px; }
.entry-off { margin: 0; }
.config-list-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.config-list-foot > :only-child { margin-left: auto; }

/* 弹窗：正文单独滚动，标题与底栏常驻 */
.admin-modal .ant-modal-container { display: flex; flex-direction: column; max-height: calc(100dvh - 120px); box-sizing: border-box; }
.admin-modal .ant-modal-header, .admin-modal .ant-modal-footer { flex-shrink: 0; }
.admin-modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; margin-right: -12px; padding-right: 12px; }
.admin-modal .ant-modal-footer { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #f0f0f0; }
.admin-modal .ant-modal-footer > .ant-btn { margin-inline-start: 0 !important; }
.footer-meta { margin-right: auto; color: rgba(0, 0, 0, .45); font-size: 12px; }
.admin-modal .ant-modal-footer > .modal-note { flex: 1 0 100%; margin: 0 0 4px; text-align: left; }
:not(.ant-modal-footer) > .modal-note { margin-top: 12px; }
.confirm-message { margin: 4px 0 16px; line-height: 1.7; }
.comparison { margin-top: 16px; }
.comparison h3 { font-size: 14px; margin: 0 0 8px; }

/* 表格 */
.data-table { min-width: 0; }
.data-table .ant-table-wrapper { min-width: 0; }
.pager { margin-top: 12px; display: flex; justify-content: flex-end; }
.summary .ant-descriptions-item-label { width: 140px; white-space: nowrap; }

/* 物品选择 */
.item-picker .picker-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.picker-head { margin: 10px 0 8px; }
.picker-summary { font-size: 13px; color: rgba(0, 0, 0, .55); }
.picker-summary.err { color: #cf1322; }
.picker-selected { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.picker-selected .ant-tag { margin: 0; }
.picker-list { max-height: 300px; overflow: auto; border: 1px solid #eef0f4; border-radius: 8px; margin-bottom: 12px; }
.picker-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 12px; border-bottom: 1px solid #f4f5f8; }
.picker-item:last-child { border-bottom: 0; }
.picker-item.on { background: #f0f5ff; }
.picker-name small { display: block; color: rgba(0, 0, 0, .45); font-size: 12px; }
.picker-item .ant-input-number { width: 88px; flex: none; }

@media (max-width: 767px) {
  .admin-header { padding: 0 8px !important; gap: 6px; }
  .brand strong { font-size: 15px; }
  .brand .ant-tag { display: none; }
  .game-switch > span { display: none; }
  .game-switch .ant-select { min-width: 112px; }
  .header-actions { gap: 6px; }
  .workspace-main { padding: 12px 12px 40px; }
  .page-heading h3 { font-size: 18px !important; }
  .section .ant-card-head { padding: 0 14px; }
  .section .ant-card-body { padding: 14px; }
  .section .ant-card-head-wrapper { flex-wrap: wrap; gap: 8px; padding: 10px 0; }
  .section .ant-card-extra { margin-inline-start: 0; }
  .admin-modal.ant-modal { max-width: calc(100vw - 16px) !important; top: 8px; padding-bottom: 8px; }
  .admin-modal .ant-modal-container { max-height: calc(100dvh - 16px); padding: 16px 14px; }
  .admin-modal-body { margin-right: 0; padding-right: 0; }
  .admin-modal .footer-meta { display: none; }
  .section .ant-card-head-title { white-space: normal; overflow: visible; }
  .toolbar { gap: 6px; }
  .toolbar .ant-btn { height: 30px; padding: 0 10px; font-size: 13px; }
  .subsection { padding: 10px 10px 2px; }
  .config-grid, .form-grid { grid-template-columns: 1fr; }
}

/* 玩家与存档 */
.filters > .ant-btn { margin-bottom: 0; }
.reward-cell { min-width: 160px; max-width: 320px; white-space: normal; }
td.code-text { letter-spacing: .02em; white-space: nowrap; }
.ant-modal-title .ant-tag { margin-left: 8px; vertical-align: 2px; }
.detail-tabs { margin-top: -8px; }
.detail-tabs > .ant-tabs-nav { margin-bottom: 16px; }
.detail-body { min-height: 120px; }
.rewards-list .filters .ant-form-item { min-width: 150px; }
.playtime-range { max-width: 220px; }
.confirm-uid { max-width: 360px; }
.created-note { margin-bottom: 12px; }
.account-warn { margin-bottom: 16px; }
.span-2 { grid-column: span 2; }
.save-editor { display: grid; gap: 14px; min-width: 0; }
.save-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.save-head .toolbar { padding: 0; margin: 0; border: 0; }
.save-meta { margin: 0; color: rgba(0, 0, 0, .5); font-size: 13px; }
.save-layout { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 20px; align-items: start; min-width: 0; }
.save-categories { position: sticky; top: 0; display: grid; gap: 2px; padding: 6px; background: #f5f7fb; border-radius: 10px; }
.save-categories button { all: unset; box-sizing: border-box; padding: 9px 12px; border-radius: 7px; font-size: 13px; color: rgba(0, 0, 0, .7); cursor: pointer; overflow-wrap: anywhere; }
.save-categories button:hover { background: rgba(47, 107, 255, .06); }
.save-categories button.on { background: #fff; color: #2f6bff; font-weight: 600; box-shadow: 0 1px 3px rgba(20, 40, 90, .08); }
.save-categories button:focus-visible { outline: 2px solid #2f6bff; outline-offset: -2px; }
.save-category-content { min-width: 0; }
.save-category-content > h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.save-category-content > .helper { margin-top: 0; }
.save-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); column-gap: 16px; align-items: start; min-width: 0; }
.save-cell { min-width: 0; }
.save-cell.wide { grid-column: 1 / -1; }
.save-root-field.wide + .save-root-field.wide, .save-cell.wide { margin-bottom: 12px; }
.save-object .ant-collapse-content-box { padding: 12px 14px 0 !important; }
.save-object-title { font-weight: 600; }
.save-check { padding: 30px 0 22px; }
.save-check small { margin-left: 8px; }
.save-unset { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: 4px 0 16px; }
.save-optional > .save-presence { margin-bottom: 8px; }
.save-ro { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; margin-bottom: 8px; background: #f7f8fb; border-radius: 6px; font-size: 13px; }
.save-ro-label { color: rgba(0, 0, 0, .5); }
.save-ro-value { color: rgba(0, 0, 0, .88); text-align: right; overflow-wrap: anywhere; }
.save-list { border: 1px solid #e9ecf2; border-radius: 10px; padding: 12px 14px; margin-bottom: 4px; min-width: 0; background: #fff; }
.save-list > h4 { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.save-list > h4 .count { margin-left: 8px; font-weight: 400; font-size: 12px; color: rgba(0, 0, 0, .45); }
.save-list td.save-list-key { width: 28%; white-space: normal; }
.save-list td.save-list-actions { width: 1%; white-space: nowrap; }
.save-list td .ant-input-number, .save-list td .ant-select, .save-list td .ant-input { min-width: 140px; }
.save-short { color: rgba(0, 0, 0, .65); font-size: 13px; }
.save-list-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.save-list-tools > :only-child.save-add { margin-left: auto; }
.save-add-key { min-width: 180px; }
.save-row-editor { margin-top: 12px; padding: 12px 14px 0; border: 1px dashed #c9d6f2; border-radius: 10px; background: #f8faff; }
.save-row-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.save-json-type { max-width: 260px; }
.save-append { margin: 4px 0 16px; max-width: 520px; }
.save-append .ant-select { min-width: 96px; }
.save-preview, .save-comparison { border-color: #c9d6f2; }
.save-confirm { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.save-confirm .ant-form-item { margin-bottom: 0; min-width: 240px; }
.save-extra .ant-collapse-content-box > * + * { margin-top: 10px; }
.save-raw-actions { margin-top: 10px; }
.save-loadout > h4 { margin: 4px 0 10px; font-size: 14px; font-weight: 600; }
.save-loadout .loadout-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin-bottom: 16px; }
.save-loadout .loadout-slot { display: block; padding: 10px 12px 0; background: #fafbfd; border: 1px solid #eef0f4; border-radius: 10px; }
.save-loadout .loadout-slot > strong { display: block; margin-bottom: 8px; font-weight: 600; }
.save-loadout .loadout-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
.save-loadout-deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); column-gap: 12px; }
@media (max-width: 767px) {
  .save-layout { grid-template-columns: minmax(0, 1fr); }
  .save-head { align-items: flex-start; }
  .save-loadout .loadout-slots { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .confirm-uid, .playtime-range { max-width: none; }
  .save-list { padding: 10px; }
  .save-list td.save-list-key { width: auto; }
  .save-list td .ant-input-number, .save-list td .ant-select, .save-list td .ant-input { min-width: 110px; }
  .save-confirm .ant-form-item { min-width: 0; width: 100%; }
  .save-add-key { min-width: 140px; }
}

/* 排行榜、签到与扩展页 */
.filters.stretch .ant-form-item { min-width: 240px; }
.filters.stretch .ant-form-item-control { flex: 1; min-width: 0; }
.filters.stretch .ant-select, .filters.stretch .ant-picker { width: 100%; min-width: 160px; }
.rank-tag { margin: 0; font-variant-numeric: tabular-nums; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 10px; }
.block-head h3, .block-title { margin: 0; font-size: 14px; font-weight: 600; }
.block-title { margin: 20px 0 10px; }
.group-select { min-width: 160px; }
.tier-list { display: grid; gap: 10px; margin: 4px 0 16px; }
.tier-card { display: grid; grid-template-columns: 128px 168px auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px 14px; padding: 10px 14px; border: 1px solid #e6e9f0; border-radius: 10px; background: #fff; }
.tier-card.off { background: #fafbfd; }
.tier-card .rank-tag { justify-self: start; }
.tier-rank { width: 100%; }
.tier-reward { min-width: 0; font-size: 13px; color: rgba(0, 0, 0, .78); overflow-wrap: anywhere; }
.tier-card.off .tier-reward { color: rgba(0, 0, 0, .4); }
.json-collapse { margin-bottom: 4px; }
.json-apply { margin-top: 10px; }
.preview-box { margin-top: 16px; padding: 12px 14px; border: 1px solid #d6e4ff; background: #f5f8ff; border-radius: 10px; }
.preview-box h3 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.preview-box h3 ~ h3 { margin-top: 14px; }
.preview-box > p { margin: 0 0 10px; color: rgba(0, 0, 0, .7); }
.preview-box .day-grid, .preview-box .mile-row { margin-bottom: 10px; }
.day-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.day-grid.weekly { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.day-cell { display: flex; flex-direction: column; gap: 4px; min-height: 78px; padding: 8px 10px; border: 1px solid #e6e9f0; border-radius: 10px; background: #fff; }
.day-cell.empty { background: #fafbfd; }
.day-cell.big { border-color: #efc36b; background: linear-gradient(180deg, #fff7e1 0%, #fff 70%); }
.day-no { display: flex; justify-content: space-between; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: rgba(0, 0, 0, .5); }
.day-cell.big .day-no { color: #ad6800; }
.day-no .ant-tag { margin: 0; padding: 0 5px; font-size: 11px; line-height: 18px; }
.day-reward { flex: 1; font-size: 13px; line-height: 1.5; color: rgba(0, 0, 0, .82); overflow-wrap: anywhere; }
.day-cell.empty .day-reward { color: rgba(0, 0, 0, .35); }
.day-edit { align-self: flex-start; height: auto !important; padding: 0 !important; }
.mile-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.mile-card { padding: 8px 12px; border: 1px dashed #d9b968; border-radius: 10px; background: #fffbf0; }
.mile-at { margin-bottom: 2px; font-size: 13px; font-weight: 600; color: #ad6800; }
.mile-reward { font-size: 13px; overflow-wrap: anywhere; }
.mile-edit { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; align-items: end; column-gap: 16px; border-bottom: 1px solid #f1f2f5; padding-top: 6px; }
.mile-edit-reward { padding-bottom: 22px; font-size: 13px; overflow-wrap: anywhere; }
.mile-edit-actions { display: flex; gap: 4px; padding-bottom: 20px; }
.mile-add { margin: 12px 0 14px; }
.check-list { display: grid; gap: 12px; margin: 4px 0 12px; }
.stat-row { display: flex; flex-wrap: wrap; gap: 12px 48px; }
.daily-state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.daily-state .ant-tag { margin: 0; }
td.wrap-cell { min-width: 240px; max-width: 480px; white-space: normal; overflow-wrap: anywhere; }
.loadout-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: rgba(0, 0, 0, .55); }
.loadout-meta .ant-tag { margin: 0; }
.loadout-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.loadout-slot { padding: 10px 12px 0; border: 1px solid #e6e9f0; border-radius: 10px; }
.loadout-slot > strong { display: block; margin-bottom: 8px; }
.loadout-actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.loadout-actions .ant-form-item { min-width: 200px; margin-bottom: 0; }
@media (max-width: 767px) {
  .filters.stretch > .ant-form-item { width: 100%; min-width: 0; }
  #leaderboard-edit-dialog .footer-meta, #checkin-edit-dialog .footer-meta { display: none; }
  .checkin-card .ant-card-head-title { flex-basis: 100%; white-space: normal; }
  .tier-card { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; }
  .tier-card .rank-tag { grid-column: 1; grid-row: 1; }
  .tier-remove { grid-column: 2; grid-row: 1; }
  .tier-rank { grid-column: 1; }
  .tier-on { grid-column: 2; }
  .tier-reward { grid-column: 1 / -1; }
  .tier-edit { grid-column: 1 / -1; justify-self: start; }
  .day-grid, .day-grid.weekly { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mile-edit { grid-template-columns: 1fr auto; }
  .mile-edit > .ant-form-item { grid-column: 1 / -1; margin-bottom: 6px; }
  .mile-edit-reward, .mile-edit-actions { padding-bottom: 12px; }
  .stat-row { gap: 12px 28px; }
  .loadout-actions .ant-form-item { width: 100%; }
}
th.mono { font-family: inherit !important; font-size: inherit !important; }
@media (max-width: 767px) {
  .wrap-head .ant-card-head-wrapper { flex-wrap: wrap; }
  .wrap-head .ant-card-head-title { flex: 1 0 100%; }
  .grow-filters > .ant-form-item { flex: 1 1 140px; min-width: 0 !important; }
  /* 详情页签在窄屏换行铺开，不收进「…」 */
  .detail-tabs > .ant-tabs-nav .ant-tabs-nav-wrap { overflow: visible !important; }
  .detail-tabs > .ant-tabs-nav .ant-tabs-nav-list { flex-wrap: wrap; gap: 4px; transform: none !important; }
  .detail-tabs > .ant-tabs-nav .ant-tabs-nav-operations { display: none !important; }
  .detail-tabs > .ant-tabs-nav .ant-tabs-ink-bar { display: none; }
  .detail-tabs > .ant-tabs-nav .ant-tabs-tab { margin: 0 !important; padding: 5px 10px; border-radius: 6px; background: #f5f7fb; }
  .detail-tabs > .ant-tabs-nav .ant-tabs-tab-active { background: #e8efff; }
  .detail-tabs > .ant-tabs-nav::before { display: none; }
}
@media (max-width: 767px) { #save-edit-dialog .narrow-hide { display: none; } }

/* 橙兔筑梦管控台：暖色品牌与清晰的运行环境标识。 */
.login-wrap { grid-template-columns: minmax(260px, 470px) minmax(300px, 430px); gap: 64px; justify-content: center; background: radial-gradient(ellipse at 24% 35%, #ffe4bd, transparent 58%), #f8f3e9; }
.login-art { text-align: center; color: #75502f; }
.login-art img { display: block; width: 148px; height: 148px; margin: 0 auto 24px; border-radius: 40px; box-shadow: 0 18px 45px #a96a2b20; }
.login-art > span { font-size: 12px; letter-spacing: .24em; }
.login-art h1 { margin: 12px 0 !important; font-size: 38px !important; color: #59391e; }
.login-art p { font-size: 15px; }
.login-card { border: 1px solid #eadfce; border-radius: 20px; box-shadow: 0 18px 60px #7c542414; }
.login-card .ant-card-body { padding: 36px; }
.login-card h3 { margin: 20px 0 12px; }
.login-card .ant-btn { margin-top: 18px; height: 44px; }
.admin-header { border-bottom-color: #e9e0d4; box-shadow: 0 2px 12px #66441f05; height: 72px; }
.brand img { width: 38px; height: 38px; border-radius: 12px; }
.brand strong { display: block; font-size: 17px; color: #66401f; line-height: 24px; }
.brand small { display: block; font-size: 10px; color: #9a8067; line-height: 16px; letter-spacing: .1em; }
.admin-sider { top: 72px; height: calc(100vh - 72px); border-right-color: #e9e0d4; }
.header-actions > .ant-select { min-width: 170px; }
.operator-name { font-size: 13px; color: #8a7561; }
.workspace-main { padding: 24px 28px 48px; }
.runtime-banner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding: 16px 20px; margin-bottom: 24px; border: 1px solid #e9dfce; border-left: 4px solid #cf8c3a; border-radius: 12px; background: #fff8e9; color: #70542f; }
.runtime-banner > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.runtime-banner strong { margin-right: 8px; font-size: 16px; }
.runtime-banner .ant-tag { margin: 0; }
.runtime-banner > span { font-size: 12px; }
.runtime-banner.production { background: #fff2ec; border-left-color: #bd563b; }
.section.ant-card { border-color: #e9e2d9; box-shadow: 0 3px 15px #57391c04; }
@media (max-width: 767px) {
  .login-wrap { display: flex; flex-direction: column; gap: 24px; padding: 32px 20px; }
  .login-art img { width: 90px; height: 90px; margin-bottom: 16px; border-radius: 25px; }
  .login-art h1 { font-size: 28px !important; }
  .login-art p { margin-bottom: 0; }
  .login-card .ant-card-body { padding: 24px; }
  .admin-header { height: auto; min-height: 72px; padding: 12px; flex-wrap: wrap; gap: 8px; }
  .brand { flex: 1; }
  .brand small, .operator-name { display: none; }
  .header-actions { width: 100%; max-width: 100%; min-width: 0; gap: 8px; }
  .header-actions > .ant-select { min-width: 0; width: 0; flex: 1 1 0; }
  .game-switch { flex: 1; min-width: 0; }
  .game-switch .ant-select { width: 100%; min-width: 0; }
  .workspace-main { padding: 16px 12px 32px; }
  .runtime-banner { padding: 12px; margin-bottom: 18px; }
}

/* 部署（ADR-0017）：主机卡片按列铺开，窄屏一列；进程组卡片与预览块之间留白。 */
.deploy-hosts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.deploy-host .ant-progress { margin-bottom: 2px; }
.deploy-memory { margin-bottom: 8px; }
.deploy-group { margin-bottom: 12px; }
.deploy-preview { display: grid; gap: 10px; margin-top: 8px; }
@media (max-width: 600px) { .deploy-hosts { grid-template-columns: 1fr; } }
.offline-permit { padding-inline-start: 24px; margin-top: 6px; }
.offline-policy-note { margin-bottom: 12px; }

/* 渠道选择（ADR-0020）：框里只写渠道名，没开的跟一个小灰字「未开」，宽度按「微信 未开」留够；
   下拉弹层按内容定宽（popupMatchSelectWidth=false），「抖音（未开）」整串显示。
   窄屏一行放不下运行、游戏、渠道、退出四个控件，折成两行：运行 + 退出，游戏 + 渠道。运行的基准宽度只给退出留 120px，
   第一行就放不下游戏，游戏换到第二行，占去渠道与间距之外的整行；部署等页没有游戏、渠道时，运行照样撑满第一行。 */
#channel-switch .ant-select { min-width: 112px; }
#channel-switch .channel-closed { margin-inline-start: 4px; font-size: 12px; color: rgba(0, 0, 0, .45); }
@media (max-width: 767px) {
  .header-actions { flex-wrap: wrap; }
  .header-actions > .ant-select { flex: 1 1 calc(100% - 120px); }
  #logout { order: 1; }
  #game-switch { order: 2; flex: 1 1 calc(100% - 112px); }
  #channel-switch { order: 3; flex: 0 0 104px; }
  #channel-switch .ant-select { min-width: 104px; }
}
