/* 屯屯鼠 视觉刷新 (2026-12-02, user: 你把整体前端都优化美观一下). Loaded after every other stylesheet on the customer
   site, the reseller page and the administrator site. Only looks change here: colours, spacing, shadows, the shape of
   buttons, inputs, switches, cards and dialogs. Nothing is shown or hidden that the older sheets did not already show
   or hide (the phone fold of 2026-11-18 stays as it is). Targets Chrome 80 / Safari 13 / Firefox 78: anything newer
   (:has) only adds polish. docs/modules/前端视觉刷新.md */

/* ---------- 1. tokens ---------- */
:root{
  --bg:#f3f5f2;--panel:#fff;--ink:#1d2b25;--muted:#6c7a72;--line:#e4e9e3;
  --brand:#1f6a4e;--brand2:#18563f;--brand-soft:#e7f2ea;--brand-tint:#f5f9f6;--brand-line:#cde2d4;
  --amber:#d9860b;--amber-soft:#fff6e5;--amber-line:#f2dcae;--amber-ink:#8a5407;
  --ok:#1f7a4f;--warn:#a8650f;--danger:#b93a2b;--danger-soft:#fdecea;--danger-line:#f1c4bc;
  --nav:#fff;--radius:14px;
  --shadow:0 1px 2px rgba(22,44,33,.04),0 8px 24px rgba(22,44,33,.05);
  --shadow-lift:0 2px 4px rgba(22,44,33,.05),0 14px 34px rgba(22,44,33,.10);
  --ring:0 0 0 3px rgba(31,106,78,.16);
}
body{background:var(--bg);color:var(--ink);font-family:"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif}
.muted,small{color:var(--muted)}
::selection{background:#cfe6d7}

/* ---------- 2. buttons ---------- */
button.primary,button.ghost,.text-button,.icon-button{border-radius:10px;transition:background .15s,border-color .15s,box-shadow .15s,color .15s,transform .05s}
button.primary{border-color:#1b5f46;background:#1f6a4e;background:linear-gradient(180deg,#27785b,#1f6a4e);box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 2px 6px rgba(31,106,78,.22)}
button.primary:hover{background:#1b5f46;background:linear-gradient(180deg,#236f54,#1a5a43);border-color:#174f3b}
button.primary:active,button.ghost:active{transform:translateY(1px)}
button.ghost{border-color:#d6ded7;color:#2f463b;box-shadow:0 1px 1px rgba(22,44,33,.03)}
button.ghost:hover{background:var(--brand-tint);border-color:#b4cbbb;color:var(--brand2)}
.text-button{color:var(--brand);font-weight:600}
.text-button:hover{color:var(--brand2);text-decoration:underline;text-underline-offset:3px}
.icon-button{border-radius:10px}
.icon-button:hover{background:var(--brand-soft);color:var(--brand)}
button:disabled{opacity:.5}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid rgba(31,106,78,.32);outline-offset:2px}

/* ---------- 3. inputs, selects, checks, switches ---------- */
input,select,textarea{border-color:#d5ddd6;border-radius:10px;background-color:#fff;transition:border-color .15s,box-shadow .15s}
input:hover,select:hover,textarea:hover{border-color:#bccabf}
input:focus,select:focus,textarea:focus,input:focus-visible,select:focus-visible,textarea:focus-visible{border-color:#4f9475;box-shadow:var(--ring);outline:0}
input::placeholder,textarea::placeholder{color:#93a098}
input:disabled,select:disabled,textarea:disabled{background-color:#f4f6f4;color:#8a968e}
select{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6b63' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:16px 16px;cursor:pointer;text-overflow:ellipsis}
select::-ms-expand{display:none}
.field>span,.field>label{color:#4d5c54;font-weight:600}

input[type=checkbox],input[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;box-sizing:border-box;width:18px;height:18px;min-height:0;padding:0;border:1.5px solid #b4c1b8;background:#fff;cursor:pointer;vertical-align:-4px;transition:background-color .15s,border-color .15s,box-shadow .15s,background-position .18s}
input[type=checkbox]{border-radius:5px;background-position:center;background-repeat:no-repeat;background-size:12px 12px}
input[type=checkbox]:hover,input[type=radio]:hover{border-color:#4f9475}
input[type=checkbox]:checked{border-color:var(--brand);background-color:var(--brand);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E")}
input[type=radio]{border-radius:50%;margin:0 8px 0 0;flex-shrink:0}
input[type=radio]:checked{border-color:var(--brand);background:radial-gradient(circle,var(--brand) 0,var(--brand) 4.2px,#fff 5.2px)}
input[type=checkbox]:disabled,input[type=radio]:disabled{opacity:.45;cursor:default}
input[type=checkbox]:focus-visible,input[type=radio]:focus-visible{box-shadow:var(--ring);outline:0}

@media (forced-colors:active){input[type=checkbox],input[type=radio]{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}
/* A switch: the checkbox of a .role-switch row. The knob is a gradient, so it also draws where an input has no
   pseudo-elements. */
.role-switch.role-switch input[type=checkbox]{width:40px;height:22px;min-height:22px!important;margin:0;flex:none;border:0;border-radius:11px;background-color:#c9d3cc;background-image:radial-gradient(circle,#fff 0,#fff 7.4px,rgba(0,0,0,.10) 8.2px,rgba(0,0,0,0) 9px);background-size:22px 22px;background-position:0 0;background-repeat:no-repeat}
.role-switch.role-switch input[type=checkbox]:checked{background-color:var(--brand);background-position:18px 0}
.role-switch.role-switch input[type=checkbox]:hover{box-shadow:0 0 0 3px rgba(31,106,78,.10)}
.role-switch.role-switch input[type=checkbox]:focus-visible{box-shadow:var(--ring)}
.role-switch{cursor:pointer}
/* a weekday of 每周每天单独设置 stays a small check: the row is narrow */
.chess-day .role-switch.role-switch input[type=checkbox]{width:18px;height:18px;min-height:18px!important;border:1.5px solid #b4c1b8;border-radius:5px;background-color:#fff;background-image:none;background-size:12px 12px;background-position:center}
.chess-day .role-switch.role-switch input[type=checkbox]:checked{border-color:var(--brand);background-color:var(--brand);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E");background-position:center}

/* ---------- 4. surfaces: panels, tiles, badges, tables ---------- */
.panel,.card,.metric{border-color:var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.panel-heading h2{font-size:16px;font-weight:700;color:var(--ink)}
.panel-heading p{color:var(--muted)}
h2,h3{color:var(--ink)}
hr{border-top-color:var(--line)}
details summary::after{color:#8b9a90}

.metric{padding:18px 20px;transition:box-shadow .2s,transform .2s}
.metric:hover{box-shadow:var(--shadow-lift);transform:translateY(-1px)}
.metric-top{color:#55645b;font-weight:600}
.metric-top .icon{width:32px;height:32px;padding:7px;border-radius:10px;background:var(--brand-soft);color:var(--brand)}
.metrics .metric:nth-child(4n+2) .metric-top .icon{background:#e7f0fb;color:#2f6db0}
.metrics .metric:nth-child(4n+3) .metric-top .icon{background:var(--amber-soft);color:var(--amber)}
.metrics .metric:nth-child(4n+4) .metric-top .icon{background:#f0ebfb;color:#6a55bd}
.metric>strong,.card .value{font-size:30px;font-weight:700;letter-spacing:-.5px;color:var(--ink);margin:8px 0 4px}
.metric>small,.card .label{color:var(--muted)}

.badge{border-radius:999px;padding:2px 10px;font-weight:600;border-color:#e1e7e2;background:#f3f6f3;color:#5d6b63}
.badge i{width:6px;height:6px}
.badge.ok{border-color:#cbe5d4;background:#e6f4ea;color:var(--ok)}
.badge.warn{border-color:var(--amber-line);background:#fff3dc;color:var(--warn)}
.pill{border-radius:999px;background:var(--brand-soft);color:var(--brand2);padding:2px 10px}

.table th{background:#f4f7f4;color:#55645b;font-weight:600;border-bottom-color:var(--line)}
.table td{border-bottom-color:#edf1ed}
.table tbody tr:hover{background:#f7faf7}
.table td b{color:var(--ink)}
.list-pagination{border-top-color:var(--line);color:var(--muted)}
.search-field input{background:#fff}
.search-field .icon{color:#8b9a90}
.empty-state{color:var(--muted)}
.empty-state>.icon{width:52px;height:52px;padding:12px;border-radius:16px;background:var(--brand-soft);color:var(--brand)}
.empty-state h3{font-size:15px;color:var(--ink)}
.empty-state p{color:var(--muted)}
.form-note{background:var(--brand-tint);border:1px solid #e3eee6;border-radius:10px;color:#5d6b63;line-height:1.75}
.form-error{color:var(--danger);font-weight:600}
.form-error:not(:empty){padding:10px 12px;border:1px solid var(--danger-line);border-radius:10px;background:var(--danger-soft)}
.attention-panel{border-color:var(--amber-line);background:var(--amber-soft);color:var(--amber-ink)}
.toast{background:#1c3329;color:#f2f8f4;border:0;border-radius:12px;padding:12px 18px;box-shadow:0 12px 32px rgba(18,38,28,.30);font-weight:500}
.loading-block,.loading-wide{border-color:var(--line);background:linear-gradient(100deg,#e9eeea 25%,#f7f9f7 45%,#e9eeea 65%);background-size:250% 100%}
code{color:var(--brand2)}

/* ---------- 5. shell: side navigation, page header ---------- */
.side{background:var(--nav);border-right-color:var(--line)}
.wordmark{color:var(--brand2);font-weight:700}
.wordmark small{color:var(--muted)}
.nav-group{color:#8b9a90;font-weight:600;letter-spacing:1.5px}
.nav button{border-radius:10px;color:#55645b;font-weight:500}
.nav button:hover{background:#f0f5f1;color:var(--brand2)}
.nav button.active{background:var(--brand-soft);color:var(--brand2);font-weight:700;box-shadow:inset 3px 0 0 var(--brand)}
.nav .nav-roles{border-left-color:var(--brand-line)}
.nav .nav-roles button{color:#66756c;box-shadow:none}
.nav .nav-roles button:hover{color:var(--brand2)}
.nav .nav-roles button.active{background:var(--brand-soft);color:var(--brand2);box-shadow:none}
.side-note{border-color:#dcebe1;background:linear-gradient(135deg,#eef6f0,#f8fbf6);color:#4f7a63;border-radius:12px}
.side-note small{color:#7b8a81}
.side-footer{border-top-color:var(--line)}
.avatar{background:linear-gradient(135deg,#2a7a5c,#1f6a4e);color:#fff;font-weight:700}
.cell-person .avatar{background:var(--brand-soft);color:var(--brand2)}
.workspace-bar{border-bottom-color:var(--line);color:#8b9a90}
.workspace-bar [data-breadcrumb]{color:#3f5348;font-weight:600}
.top h1{font-weight:750;letter-spacing:-.3px;color:var(--ink)}
.top p{color:var(--muted)}
.eyebrow{color:#7d8c83}
.today{border-color:var(--line);border-radius:999px;color:#55645b;padding:8px 14px;box-shadow:0 1px 1px rgba(22,44,33,.03)}
.workspace-footer{color:#8b9a90}
.mobile-nav button.active{color:var(--brand);background:var(--brand-soft)}

/* ---------- 6. dialogs ---------- */
.ui-dialog{border:0;border-radius:18px;box-shadow:0 24px 80px rgba(18,38,28,.30)}
.ui-dialog::backdrop,.fleet-credential::backdrop{background:rgba(20,34,27,.46);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
dialog + .backdrop{background:rgba(20,34,27,.46)}
.dialog-heading{align-items:flex-start}
.dialog-heading .eyebrow{font-size:11px;letter-spacing:2px;color:var(--brand)}
.dialog-heading h2{font-weight:700;font-size:20px;letter-spacing:0;color:var(--ink)}
.dialog-heading .icon-button{background:#f1f4f1;color:#55645b;border-radius:50%;width:34px;min-height:34px}
.dialog-heading .icon-button:hover{background:var(--brand-soft);color:var(--brand)}
.dialog-description{padding:10px 13px;border:1px solid #e3eee6;border-radius:10px;background:var(--brand-tint);color:#55645b;line-height:1.7;margin-bottom:18px}
.dialog-actions{border-top-color:var(--line)}
.dialog-actions button{min-width:96px}
.role-dialog{border-radius:16px!important;padding:22px!important}
.role-dialog .dialog-body{padding-right:6px;scrollbar-width:thin;scrollbar-color:#c5d0c8 transparent}
.role-dialog .dialog-body::-webkit-scrollbar{width:8px}
.role-dialog .dialog-body::-webkit-scrollbar-thumb{background:#c9d3cc;border-radius:8px;border:2px solid #fff}
.announcement{line-height:1.9;font-size:14px}

/* notices: the amber and the red ones keep their meaning, with a softer frame */
.own-card-notice{border:1px solid var(--amber-line);border-left:4px solid var(--amber);border-radius:12px;background:var(--amber-soft);color:#6b4308;padding:14px 16px}
.own-card-notice strong{font-size:15px;color:#6b4308}
.own-card-notice p{font-size:13.5px}
.own-card-notice .ghost{color:#6b4308;border-color:#e3c184;background:#fffdf6}
.own-card-notice.cbg-notice,.own-card-notice.security-notice{border-color:var(--danger-line);border-left-color:var(--danger);background:var(--danger-soft);color:#7a2318}
.own-card-notice.cbg-notice strong,.own-card-notice.security-notice strong{font-size:16px;color:#7a2318}
.qitan-busy{border-radius:10px;border-color:#b9aee6;background:#f2efff;color:#43338f}
.qitan-busy.coop-banned-line{border-color:var(--danger-line);background:var(--danger-soft);color:#7a2318}

/* ---------- 7. the plan form (修改寄养计划 / 新增角色 / 代理开户): groups, rules, stars ---------- */
.dialog-body{counter-reset:plan-step}
.plan-group{counter-increment:plan-step;margin:14px 0;padding:2px 16px 12px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 1px 2px rgba(22,44,33,.03)}
.plan-group>.plan-title{display:flex;align-items:center;gap:10px;margin:14px 0 6px;font-size:15px;font-weight:700;color:var(--ink)}
.plan-group>.plan-title::before{content:counter(plan-step);display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:8px;background:var(--brand);color:#fff;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}
.plan-group>.plan-title small{font-size:12px;font-weight:400;color:var(--muted)}
.ui-dialog .role-switch{display:flex;align-items:center;gap:10px}
.ui-dialog .dialog-body>.role-switch,.ui-dialog .plan-group .role-switch,.ui-dialog .role-rule .role-switch{display:flex;flex-direction:row-reverse;align-items:center;justify-content:space-between;gap:14px;margin:0;padding:11px 0;border-top:1px solid #eef2ee;font-weight:600;font-size:14px;line-height:1.5}
.ui-dialog .plan-group>.plan-title+.role-switch,.ui-dialog .role-rule>legend+.role-switch{border-top:0}
.ui-dialog .plan-group .hint,.ui-dialog .plan-group p.muted,.ui-dialog .role-rule .hint{margin:-4px 0 10px;font-size:12.5px;line-height:1.7}
.ui-dialog .dialog-body .hint{color:#8a6d2f}
.ui-dialog .role-rule{margin:10px 0 12px;padding:6px 14px 14px;border:1px solid #e1e9e3;border-radius:12px;background:#f8fbf9}
.ui-dialog .role-rule legend,.window-picker legend{margin-left:-4px;padding:2px 11px;border-radius:999px;background:var(--brand-soft);color:var(--brand2);font-size:13px;font-weight:700}
.ui-dialog .role-rule .field{margin-bottom:12px}
.ui-dialog .role-field-grid{gap:12px 14px}
.ui-dialog .role-stars{gap:8px}
.ui-dialog .role-stars label{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:4px 12px 4px 9px;border:1px solid #dbe3dc;border-radius:999px;background:#fff;font-size:13px;cursor:pointer;transition:background .15s,border-color .15s}
.ui-dialog .role-stars label:hover{border-color:#9fc0ac}
.ui-dialog .role-stars input[type=checkbox]{width:16px;height:16px;margin:0;border-radius:50%;background-size:10px 10px}
.ui-dialog .role-stars label:has(input:checked){border-color:var(--brand-line);background:var(--brand-soft);color:var(--brand2);font-weight:600}
.plan-group>.field,.plan-group [data-rule-section]>.field{margin:12px 0 4px}
.window-picker{border-color:var(--line);border-radius:14px;background:#fff;padding:8px 16px 16px;box-shadow:0 1px 2px rgba(22,44,33,.03)}
.window-row{border-bottom:1px dashed #e3e9e4}
.window-row select{border-color:#d5ddd6;padding-right:30px}
.fleet-workspace [data-login-profile] select{padding-right:32px}
.window-empty{color:var(--muted)}
/* a top-level fieldset of the form (不上号时段, 其他功能) reads as one more numbered group: its legend sits inside */
.ui-dialog .dialog-body>fieldset.role-rule,.ui-dialog .dialog-body>fieldset.window-picker{counter-increment:plan-step;margin:14px 0;padding:2px 16px 12px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 1px 2px rgba(22,44,33,.03)}
.ui-dialog .dialog-body>fieldset>legend{float:left;width:100%;margin:14px 0 6px;padding:0;border-radius:0;background:none;color:var(--ink);font-size:15px;font-weight:700;line-height:24px}
.ui-dialog .dialog-body>fieldset>legend::before{content:counter(plan-step);display:inline-block;width:24px;height:24px;margin-right:10px;border-radius:8px;background:var(--brand);color:#fff;font-size:13px;font-weight:700;line-height:24px;text-align:center;vertical-align:top;font-variant-numeric:tabular-nums}
.ui-dialog .dialog-body>fieldset>legend+*{clear:both}
.min-note{margin:-4px 0 10px;font-size:12.5px;line-height:1.7;color:var(--danger);font-weight:600}
.pause-choice{font-weight:600;cursor:pointer}
.ui-dialog .dialog-body>.role-switch+p.muted,.ui-dialog .dialog-body>.role-switch+p.hint{margin:-4px 0 10px;font-size:12.5px;line-height:1.7}
/* 每周每天单独设置: one line a day, the 开始 / 结束 titles on the first line only */
.chess-day{align-items:end;margin:8px 0}
.ui-dialog .chess-day .role-switch{flex-direction:row;justify-content:flex-start;gap:8px;min-height:42px;margin:0;padding:0;border:0}
.chess-day .field{margin-bottom:0}
.chess-day+.chess-day .field>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

/* 按卡密上号 (fleet.js, 2026-12-02): the card field with its button, one block per game account, one line per role */
.card-find{display:flex;align-items:flex-end;gap:10px}
.card-find .field{flex:1;margin-bottom:0}
.card-find button{min-height:42px}
[data-card-roles]{margin-top:14px}
.card-role{display:flex;align-items:center;gap:8px;min-height:38px;padding:4px 0;border-top:1px solid #eef2ee;cursor:pointer}
.card-account>legend+.card-role,.card-account>.hint+.card-role{border-top:0}
.card-role input[type=radio]{margin:0}

/* ---------- 8. customer pages: role cards ---------- */
.player-toolbar h2{font-size:17px;font-weight:700}
.player-toolbar p{color:var(--muted)}
.native-account{border-radius:16px;transition:box-shadow .25s}
.native-account.nav-jumped{box-shadow:0 0 0 3px #a9d2ba,var(--shadow-lift)}
.account-heading{border-bottom-color:#edf1ed}
.account-heading h2{font-size:17px;font-weight:700}
.account-heading p{color:#55645b}
.account-heading small{display:inline-block;margin-top:5px;padding:1px 9px;border-radius:999px;background:#f1f4f1;color:#66756c;font-size:11.5px}
.role-avatar{border:0;border-radius:12px;background:linear-gradient(135deg,#dff0e5,#c9e6d3);color:#1f6a4e;font-weight:700;box-shadow:inset 0 0 0 1px rgba(31,106,78,.10)}
.native-state-line{color:#55645b;font-size:12.5px}
.native-timers>div{border-color:#d8e9de;border-radius:12px;background:#f1f8f3;background:linear-gradient(180deg,#eef7f1,#fafdfb)}
.native-timers .own_card{border-color:#f0e0bd;background:#fff7e8;background:linear-gradient(180deg,#fff5e2,#fffdf7)}
.timer-label{color:#3f7a5d;font-weight:600}
.native-timers .own_card .timer-label{color:#a36a10}
.native-timers strong{font-size:19px;font-weight:700;color:#173a2b;margin:8px 0 5px}
.native-timers .own_card strong{color:#5f3f0c}
.native-timers small{color:#66756c}
.foster-reward{font-size:13px;color:#55645b}
.foster-reward b{color:var(--amber-ink)}
.automation-flags{gap:8px}
.automation-flags span{padding:3px 10px;border-radius:999px;background:#f1f4f1;color:#7b877f;font-weight:500}
.automation-flags i{width:6px;height:6px}
.automation-flags .enabled{background:var(--brand-soft);color:var(--ok);font-weight:600}
.account-schedule{color:#66756c;font-size:12.5px;padding:14px 0 12px}
.account-schedule b{color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums}
.account-message{border:1px solid #e3eee6;border-left:3px solid #7fb598;border-radius:10px;background:var(--brand-tint);color:#3f5c4d;padding:9px 12px}
.account-message.hint{border-color:var(--amber-line);border-left-color:var(--amber);background:var(--amber-soft);color:var(--amber-ink)}
.slot-expiry{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:12px 0;font-size:13.5px}
.slot-expiry strong{color:var(--ink)}
.slot-expiry span:not(.badge){color:var(--muted);font-size:12.5px}
.role-plan-summary{border-top:1px solid #edf1ed;padding:12px 0;color:#3f4e46;line-height:1.75}
.role-plan-summary p{margin:4px 0}
.role-windows{color:#2f6a4f}
.role-rewards{border:1px solid #e3eee6;border-radius:12px;background:var(--brand-tint);padding:12px 14px!important}
.role-actions{gap:8px;margin:16px 0}
.role-actions .ghost,.role-actions .primary,.role-more>summary{border-radius:10px}
.role-more>summary{border-color:#d6ded7;color:#2f463b;box-shadow:0 1px 1px rgba(22,44,33,.03)}
.role-more>summary:hover{background:var(--brand-tint);border-color:#b4cbbb}
.role-more-menu{border-color:var(--line);border-radius:12px;box-shadow:0 12px 32px rgba(18,38,28,.16)}
.role-delete,button.ghost.role-delete{color:var(--danger);border-color:var(--danger-line)}
button.ghost.role-delete:hover{background:var(--danger-soft);border-color:#e2a096;color:var(--danger)}
.role-card .role-actions .urgent{border-color:#e0b25c;color:#8a5407;background:var(--amber-soft)}
.role-services{flex-wrap:wrap;gap:8px}
.role-services .text-button{padding:4px 12px;min-height:30px;border-radius:999px;background:#f1ecfb;color:#5a45ad;font-size:12.5px;text-decoration:none}
.role-services .text-button:hover{background:#e6defa;color:#47349a}
.role-history time{color:var(--muted)}
.role-history{border-bottom-color:#edf1ed}
.chess-bar{border-color:#d99a2b;border-radius:12px;background:#f5b335;background:linear-gradient(180deg,#f9c253,#f2aa2a);box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 2px 8px rgba(169,105,19,.22)}
.chess-bar:hover{background:#efa41c;background:linear-gradient(180deg,#f6b83f,#eb9f1c)}
.qitan-bar{border-color:#5b4a9e;background:#7a68c9;background:linear-gradient(180deg,#8876d6,#705dc4);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 2px 8px rgba(76,60,150,.24)}
.qitan-bar:hover{background:#6957b8;background:linear-gradient(180deg,#7d6bcd,#6451b6)}
.other-roles h3{font-size:16px}
.other-role{border-top-color:#edf1ed}
.invite-code{border-color:var(--brand-line);background:var(--brand-tint);border-radius:14px}
.invite-code strong{color:var(--brand2)}
.server-options{border-color:#c5d5ca;border-radius:10px;box-shadow:0 12px 28px rgba(18,38,28,.14)}
.server-options button:hover,.server-options button[aria-selected=true]{background:var(--brand-soft);color:var(--brand2)}

@media(min-width:761px){
  .role-card .role-actions>button,.role-card .role-actions>.role-more{flex:1 1 30%}
  .role-card .role-actions>.role-more{display:flex}
  .role-card .role-actions .role-more>summary{flex:1;width:100%}
  .native-accounts{gap:20px}
}

/* ---------- 9. 服务中心: one card per slot ---------- */
.native-accounts>.panel+.panel{margin-top:0}
.slot-card h2{display:flex;align-items:center;gap:10px;margin:0 0 2px;font-size:17px}
.slot-card .slot-server{margin:0 0 12px;color:var(--muted);font-size:13px}
.slot-lines{margin:0 0 16px;padding:0;list-style:none;border:1px solid #e9eee9;border-radius:12px;overflow:hidden}
.slot-lines li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;font-size:13.5px;border-top:1px solid #eef2ee}
.slot-lines li:first-child{border-top:0;background:var(--brand-tint)}
.slot-lines li span{color:#55645b}
.slot-lines li b{font-weight:600;color:var(--ink);text-align:right;font-variant-numeric:tabular-nums}
.slot-lines li.off b{color:var(--warn)}

/* ---------- 10. customer login page ---------- */
.entry-card{border:1px solid rgba(255,255,255,.9);border-radius:24px;box-shadow:0 24px 70px rgba(30,60,48,.12)}
.entry-brand h1{color:var(--brand2)}
.entry-choices button{border-color:#e0e7e2;border-radius:14px;transition:border-color .15s,box-shadow .15s,transform .15s}
.entry-choices button:hover{border-color:#8fb5a0;box-shadow:0 6px 18px rgba(30,60,48,.08);transform:translateY(-1px)}
.entry-choices button[aria-current=page]{background:#1f6a4e;background:linear-gradient(135deg,#2a7a5c,#1d6249);border-color:#1b5f46;box-shadow:0 8px 20px rgba(31,106,78,.24)}
.entry-form h2{font-weight:700}
.loginbox h2{font-weight:700}
.password-toggle{color:var(--brand);font-weight:600}

/* ---------- 11. phones ---------- */
@media(max-width:760px){
  .metric>strong,.card .value{font-size:27px;margin:7px 0 5px}
  .metric:hover{transform:none}
  .metric-top .icon{width:26px;height:26px;padding:5px;border-radius:8px}
  .native-timers strong{font-size:15px;letter-spacing:-.4px;margin:6px 0 4px}
  .account-heading h2{font-size:16px}
  .mobile-nav{border-top-color:var(--line);box-shadow:0 -4px 18px rgba(22,44,33,.06)}
  .mobile-nav button{color:#66756c}
  .nav button.active{box-shadow:none}
  [data-role=user] .side{border-radius:20px 20px 0 0;box-shadow:0 -12px 36px rgba(18,38,28,.20)}
  [data-role=user] .side .nav>button[data-page]{background:#f5f8f5;border-color:#e4eae5;border-radius:14px;color:#55645b}
  [data-role=user] .side .nav>button[data-page].active{background:var(--brand-soft);border-color:#b7d6c3;color:var(--brand2)}
  [data-role=user] .side .nav .nav-roles button{border-color:#dfe6e0}
  [data-role=user] .mobile-nav [data-mobile-menu].active{color:var(--brand);background:var(--brand-soft)}
  [data-role=user] .metrics.three .metric{border-radius:12px}
  .role-card .role-fold{background:#f1f4f1;color:#55645b}
  .role-card.native-account{border-radius:14px}
  .ui-dialog,.ui-dialog.wide{border-radius:18px}
  .role-dialog{padding:18px 16px!important}
  .plan-group{padding:2px 13px 10px}
  .ui-dialog .role-rule{padding:6px 12px 12px}
  .dialog-actions{box-shadow:0 -10px 14px -12px rgba(22,44,33,.18)}
  .slot-lines li{padding:10px 12px;font-size:13px}
  .ui-dialog .chess-day .role-switch{min-height:44px}
}
