.model-specs{grid-column:1/-1}
.model-specs summary{cursor:pointer;font-weight:600}
.model-specs textarea{font-family:Consolas,monospace;font-size:12px}
.model-specs p{margin:10px 0}

:root{color-scheme:light;--ink:#203633;--muted:#73817c;--line:#e3e7de;--paper:#f5f4ed;--green:#236653;--dark:#172e2a;--red:#a44840;font-family:"PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}
body{margin:0}
button,input,select,textarea{font:inherit}
button,a{touch-action:manipulation}
button{cursor:pointer;color:inherit}
button:disabled{cursor:wait;opacity:.55}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline}
button:focus-visible,a:focus-visible{outline:3px solid #c5a563;outline-offset:3px}
input:focus,select:focus,textarea:focus{outline:2px solid #79a68f;outline-offset:1px}
[hidden]{display:none!important}
h1,h2,h3,p{margin:0}
h1{font-size:30px;font-weight:650;letter-spacing:-1px}
h2{font-size:18px}
h3{font-size:16px}
.muted,.help{color:var(--muted);font-size:13px;line-height:1.8}
.help{font-size:12px}
.eyebrow{color:var(--green);font-size:12px;margin-bottom:9px}
.boot{min-height:100vh;display:grid;place-content:center;padding:24px;color:var(--muted)}
.workspace{min-height:100vh}
.sidebar{position:fixed;inset:0 auto 0 0;width:224px;display:flex;flex-direction:column;background:var(--dark);color:#fff;padding:36px 22px;z-index:2}
.wordmark{font-size:27px;letter-spacing:2px;font-weight:700}
.wordmark span{font-size:12px;font-weight:400;letter-spacing:0;color:#b7cac3;margin-left:8px}
.nav-caption{font-size:11px;color:#91aba1;margin:45px 12px 12px}
.sidebar nav{display:grid;gap:7px}
.side-link{display:block;width:100%;text-align:left;background:none;border:0;border-radius:7px;padding:13px 14px;color:#c1d0ca;font-size:14px}
.side-link:hover{background:#25433a;text-decoration:none}
.side-link.active{background:#315b4d;color:#fff;font-weight:600;box-shadow:inset 3px 0 #c8b37b}
.sidebar-foot{margin-top:auto;padding:24px 10px 0;color:#b7cac3;font-size:12px;line-height:2}
.sidebar-foot p{color:#91aba1}
.sidebar-foot a{display:inline-block;margin-top:12px}
.dot{display:inline-block;width:6px;height:6px;background:#8ebda0;border-radius:50%;margin-right:7px}
.main-shell{margin-left:224px}
.topbar{height:76px;padding:0 40px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}
.topbar strong{color:var(--ink);margin-left:7px}
.topbar a{color:var(--green)}
main{max-width:1600px;margin:auto;padding:34px 40px}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
.page-heading .muted{margin-top:9px}
.button{display:inline-flex;justify-content:center;align-items:center;min-height:40px;border:1px solid transparent;border-radius:7px;padding:10px 17px;font-size:13px;font-weight:600;white-space:nowrap}
.primary{color:#fff;background:var(--green)}
.primary:hover{background:#174e3e}
.secondary{background:#fff;border-color:#d8dfd7}
.secondary:hover{background:#f2f5ef}
.danger{color:#fff;background:var(--red)}
.notice{font-size:12px;line-height:1.9;padding:14px 18px;background:#eeefe2;border:1px solid #e1e2cf;border-radius:8px;color:#63694d}
.notice strong{margin-right:10px;color:#50623e}
.message{font-size:13px;line-height:1.8;min-height:24px;margin:14px 0;color:var(--muted)}
.message.error,.form-error{color:var(--red)}
.panel{background:#fff;border:1px solid var(--line);border-radius:11px;overflow:hidden}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px}
.panel-heading .muted{margin-top:7px}
.count{font-size:12px;border-radius:20px;background:#eaf1e9;color:var(--green);padding:3px 8px;margin-left:6px;vertical-align:middle}
.table-scroll{overflow:auto}
table{width:100%;border-collapse:collapse;text-align:left;min-width:780px}
th{background:#f8f9f5;font-size:12px;font-weight:500;color:var(--muted);padding:14px 22px;border-block:1px solid var(--line);white-space:nowrap}
td{padding:19px 22px;border-bottom:1px solid #edf0e9;font-size:13px;line-height:1.7;vertical-align:top;max-width:300px;overflow-wrap:anywhere}
tr:last-child td{border-bottom:0}
td strong{display:block;font-weight:600}
td small{display:block;font-size:11px;color:var(--muted);margin-top:5px}
.numeric{text-align:right;white-space:nowrap}
.badge{display:inline-block;font-size:11px;line-height:1.5;padding:4px 9px;border-radius:20px;background:#eaf1e9;color:var(--green);white-space:nowrap}
.badge.pending,.badge.open{background:#f7eddb;color:#94702c}
.badge.rejected{background:#f5e9e4;color:var(--red)}
.cell-actions{display:flex;gap:8px;flex-wrap:wrap}
.cell-actions .button{padding:7px 10px;min-height:34px;font-size:12px}
.empty{text-align:center;padding:55px 20px;color:var(--muted)}
label{display:block;font-size:13px;font-weight:500;line-height:1.8}
input,select,textarea{display:block;width:100%;border:1px solid #d9dfd6;border-radius:6px;background:#fff;color:var(--ink);padding:10px 12px;margin-top:7px;min-height:40px}
textarea{resize:vertical;line-height:1.7}
input[aria-invalid=true],textarea[aria-invalid=true]{border-color:var(--red)}
select{min-width:142px}
.search-label{min-width:260px;font-size:11px;color:var(--muted)}
.search-label input{font-size:13px}
.ticket-list{padding:0 24px}
.ticket{padding:24px 0;border-top:1px solid var(--line)}
.ticket-head{display:flex;gap:14px;align-items:center;justify-content:space-between}
.ticket-meta{color:var(--muted);font-size:12px;margin:9px 0 14px}
.ticket-content,.ticket-reply{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;font-size:13px}
.ticket-reply{background:#f4f7f0;border-radius:7px;padding:13px 16px;margin:15px 0}
.ticket .button{margin-top:16px}
fieldset{border:0;padding:0;margin:0;min-width:0}
.config-section{margin-bottom:20px;padding:24px}
.config-section>.panel-heading{padding:0 0 20px}
.config-section>h2{margin-bottom:12px}
.config-section>label,.config-section>.form-grid{margin-top:18px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.full{grid-column:1/-1}
.catalog-list{display:grid;gap:14px}
.catalog-row{padding:18px;background:#f8f9f5;border:1px solid var(--line);border-radius:7px;display:grid;grid-template-columns:1.3fr 1fr 1.5fr 1fr auto;gap:12px;align-items:end}
.catalog-row label{font-size:12px}
.remove-model{background:none;border:0;color:var(--red);min-height:40px;padding:10px;font-size:12px}
.save-bar{position:sticky;bottom:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid var(--line);background:#fffef9;padding:18px 24px;border-radius:8px;box-shadow:0 -4px 20px #20363308}
.save-bar strong{font-size:13px}
.form-error{font-size:13px;line-height:1.8;white-space:pre-wrap;margin-top:14px}
.page-footer{padding-top:30px;text-align:center;color:#8a948c;font-size:11px}
dialog{border:1px solid var(--line);border-radius:12px;box-shadow:0 25px 80px #172e2a33;padding:28px;width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;color:var(--ink)}
dialog::backdrop{background:#12251e70}
.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}
.icon-button{border:0;background:#f2f5ef;border-radius:6px;width:32px;height:32px;font-size:22px}
.dialog-description{font-size:14px;line-height:1.9;margin:20px 0;overflow-wrap:anywhere}
.dialog-buttons{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}
.ticket-context{padding:14px;background:#f5f6f0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;margin-bottom:20px;max-height:220px;overflow:auto}
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:10;max-width:calc(100vw - 32px);padding:14px 22px;background:var(--dark);color:#fff;border-radius:8px;box-shadow:0 8px 30px #172e2a33;line-height:1.7;font-size:13px}
@media(min-width:1600px){main{padding-top:44px}
}
@media(max-width:1100px){main{padding:28px 24px}
.topbar{padding:0 24px}
.sidebar{width:200px;padding:32px 16px}
.main-shell{margin-left:200px}
.catalog-row{grid-template-columns:1fr 1fr}
.catalog-row .remove-model{grid-column:2;justify-self:end}
.panel-heading{align-items:flex-start;flex-wrap:wrap}
}
@media(max-width:700px){.sidebar{position:static;width:auto;padding:20px;gap:0}
.wordmark{font-size:24px}
.nav-caption,.sidebar-foot{display:none}
.sidebar nav{display:flex;overflow:auto;gap:6px;margin-top:20px;padding-bottom:2px}
.side-link{width:auto;flex:0 0 auto;padding:10px 12px;font-size:12px}
.side-link.active{box-shadow:inset 0 -2px #c8b37b}
.main-shell{margin-left:0}
.topbar{height:54px;padding:0 20px;font-size:11px}
main{padding:26px 16px}
h1{font-size:26px}
.page-heading{align-items:flex-start;gap:12px}
.page-heading>.button{font-size:11px;padding:9px 11px}
.page-heading .muted{font-size:12px}
.panel-heading,.config-section{padding:18px}
.form-grid{grid-template-columns:1fr;gap:16px}
.full{grid-column:auto}
.search-label{min-width:0;width:100%}
.ticket-list{padding:0 18px}
.ticket-head{align-items:flex-start}
.ticket-head h3{font-size:14px}
.catalog-row{padding:12px;gap:10px}
.save-bar{padding:14px;align-items:flex-start}
.save-bar .help{font-size:11px}
.save-bar .button{padding:10px 12px;font-size:12px}
.notice{padding:12px 14px}
.toast{width:max-content}
.dialog-buttons .button{flex:1}
.numeric{font-variant-numeric:tabular-nums}
}

/* Shared enterprise workspace: keep existing class and state semantics. */
:root {
  --ink: #25344b;
  --muted: #718096;
  --line: #e4eaf2;
  --paper: #f3f5f9;
  --green: #2563eb;
  --dark: #12233f;
  --gold: #d59b32;
  --red: #cf3e49;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
body { background: var(--paper); line-height: 1.5; }
h1 { font-size: 26px; font-weight: 650; letter-spacing: 0; }
h2 { font-size: 17px; letter-spacing: 0; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #93b8ff; outline-offset: 3px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #93b8ff; outline-offset: 1px; border-color: #5688ec; }
button:disabled { cursor: not-allowed; opacity: .5; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 224px; padding: 28px 16px 20px;
  display: flex; flex-direction: column; gap: 0; overflow-y: auto;
  background: var(--dark); color: #fff; z-index: 3;
}
.wordmark { display: flex; align-items: center; gap: 9px; font-size: 25px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.wordmark span { margin-left: 0; padding-left: 9px; border-left: 1px solid #ffffff30; font-size: 11px; font-weight: 400; letter-spacing: 0; color: #b4c4df; }
.sidebar .wordmark { padding: 0 10px 24px; border-bottom: 1px solid #ffffff12; }
.workspace-label, .nav-caption { margin: 25px 12px 12px; font-size: 11px; letter-spacing: 1px; color: #849bbd; }
.sidebar nav { display: grid; gap: 6px; }
.side-link { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 43px; padding: 11px 14px; border: 0; border-radius: 6px; color: #c0cee4; background: transparent; text-align: left; font-size: 13px; line-height: 1.6; text-decoration: none; }
.side-link > span { width: 20px; font-size: 18px; }
.side-link:hover { color: #fff; background: #1d3558; text-decoration: none; }
.side-link.active { color: #fff; background: #2563eb; font-weight: 600; box-shadow: none; }
.sidebar-bottom, .sidebar-foot { margin-top: auto; padding: 30px 12px 0; color: #b4c4df; font-size: 11px; line-height: 1.9; }
.sidebar-bottom p, .sidebar-foot p { color: #849bbd; font-size: 11px; margin: 5px 0 14px; }
.sidebar-bottom a, .sidebar-foot a { display: inline-block; margin-top: 0; color: #d5e3fb; }
.environment-dot, .dot { background: #5bdbb3; }
.main-shell { margin-left: 224px; min-width: 0; }
.topbar { height: 68px; padding: 0 32px; background: #fff; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; gap: 16px; }
.topbar strong { color: var(--ink); font-weight: 600; }
.topbar a, .text-button { color: var(--green); }
.topbar-actions { gap: 18px; }
.session-indicator { color: #62748f; padding-right: 18px; }
.session-indicator:before { background: #22a47d; }
.breadcrumb { color: var(--muted); }
.breadcrumb-separator { color: #c5cfdd; }
main { max-width: 1680px; margin: 0 auto; padding: 28px 32px 24px; }
.page-heading { margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.page-heading .muted { margin-top: 7px; font-size: 13px; }
.eyebrow, .section-kicker { color: #5275aa; letter-spacing: 1px; }
.button { min-height: 36px; padding: 8px 15px; border-radius: 5px; font-size: 13px; gap: 8px; transition: background .15s, border-color .15s; }
.primary { background: var(--green); border-color: var(--green); color: #fff; }
.primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.secondary { background: #fff; border-color: #d6dfeb; color: #405370; }
.secondary:hover { background: #edf4ff; border-color: #b9cef2; }
.danger { background: var(--red); border-color: var(--red); color: #fff; }
.danger:hover { background: #b72f3a; }
.notice, .sample-notice { margin-bottom: 20px; padding: 11px 15px; border: 1px solid #d8e6fc; border-radius: 6px; background: #edf4ff; color: #526c93; font-size: 12px; line-height: 1.8; }
.notice strong { color: #315f9f; }
.notice-tag { border-color: #b9cff1; color: #315f9f; font-size: 11px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.metric, .metric:first-child { position: relative; overflow: hidden; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 2px 5px #19365f03; }
.metric::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: #3478f6; }
.metric:nth-child(2)::before { background: #e3a240; }
.metric:nth-child(3)::before { background: #6b7ee8; }
.metric:nth-child(4)::before { background: #27a786; }
.metric-label { color: #64748b; font-size: 13px; }
.metric-value { color: #233957; font-size: 32px; font-weight: 650; font-variant-numeric: tabular-nums; margin: 15px 0 9px; letter-spacing: -.5px; }
.metric-caption { color: #8190a5; font-size: 11px; }
.orders-panel, .panel { border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: 0 2px 5px #19365f03; }
.panel-heading { padding: 20px; gap: 16px; flex-wrap: wrap; }
.panel-heading h2 { font-size: 17px; }
.panel-heading p { font-size: 12px; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 7px; margin-left: 6px; background: #edf3ff; color: #356ac6; font-size: 11px; font-weight: 500; border-radius: 4px; }
.filter-tabs { padding: 0 20px; gap: 25px; scrollbar-width: thin; }
.filter-tab { padding-bottom: 13px; font-size: 13px; color: #75839a; }
.filter-tab.active { color: var(--green); border-bottom-color: var(--green); }
.filter-bar { padding: 16px 20px; flex-wrap: wrap; gap: 12px; }
.search-field { background: #fff; border-color: #d6dfeb; }
.search-field > span { color: #899bb4; }
.search-field input { font-size: 12px; padding: 9px 0; }
.status-field { color: #64748b; font-size: 12px; }
input, select, textarea { border-color: #d6dfeb; border-radius: 5px; color: var(--ink); }
select { color: #405370; font-size: 12px; }
.confirm-dialog input, .confirm-dialog textarea, .login-form input { background: #fff; border-color: #d6dfeb; }
.table-scroll { max-width: 100%; overflow: auto; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; }
thead, th { background: #f5f7fb; color: #65758f; }
th { padding: 12px 16px; font-size: 12px; font-weight: 600; border-block: 1px solid var(--line); }
td { padding: 13px 16px; border-bottom: 1px solid #edf0f5; color: #40516b; font-size: 12px; line-height: 1.65; }
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; }
tr:hover td { background: #f7faff; }
.numeric { font-variant-numeric: tabular-nums; }
.order-id, .device-name, td strong { color: #2e4261; font-size: 12px; }
.cell-secondary, td small { margin-top: 5px; color: #8190a5; font-size: 11px; }
.row-detail { color: var(--green); font-size: 12px; }
.badge, .risk-badge { border-radius: 4px; font-size: 11px; padding: 3px 7px; white-space: nowrap; line-height: 1.5; }
.badge { background: #edf3fd; color: #346cbd; }
.badge-review, .badge.pending, .badge.open, .risk-medium { background: #fff5df; color: #956411; border-color: #f0d79e; }
.badge-active { background: #edf3ff; color: #356ac6; }
.badge-complete, .badge.paid, .badge.replied, .risk-low { background: #e8f7f0; color: #18815d; border-color: #bce5d2; }
.badge-ended, .badge.rejected, .risk-high { background: #fff0f0; color: #bd3e4b; border-color: #f0c5ca; }
.risk-unknown { background: #f1f4f8; color: #748398; border-color: #dce3ed; }
.table-footer { padding: 15px 20px; gap: 12px; flex-wrap: wrap; color: #8190a5; font-size: 11px; }
.pagination { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 15px 20px; border-top: 1px solid var(--line); background: #fff; color: #718096; font-size: 12px; }
.pagination button, .pagination a { display: inline-flex; justify-content: center; align-items: center; min-width: 32px; min-height: 32px; padding: 5px 10px; border: 1px solid #d6dfeb; border-radius: 4px; background: #fff; color: #405370; font-size: 12px; text-decoration: none; }
.pagination button:hover:not(:disabled), .pagination a:hover { background: #edf4ff; border-color: #8db3f5; color: #2563eb; }
.pagination .active, .pagination [aria-current="page"] { color: #fff; background: #2563eb; border-color: #2563eb; }
.pagination select { width: auto; min-width: 80px; min-height: 32px; margin: 0; padding: 5px 8px; }
.pagination input { width: 58px; min-height: 32px; margin: 0; padding: 5px 8px; }
#export-orders { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 8px 15px; border: 1px solid #b9cff1; border-radius: 5px; background: #edf4ff; color: #2563eb; font-size: 13px; font-weight: 600; white-space: nowrap; }
#export-orders:hover:not(:disabled) { background: #dfeaff; border-color: #8db3f5; }
.empty, .empty-state { padding: 48px 20px; color: #8190a5; }
.empty-state > span { color: #adbed8; }
.workspace-footer, .page-footer { color: #8a98ad; font-size: 11px; }
.catalog-row, .ticket-context { background: #f6f8fc; border-color: var(--line); }
.ticket-reply { background: #edf4ff; }
.config-section { padding: 22px; }
.save-bar { background: #fff; border-color: #d8e3f2; box-shadow: 0 -4px 20px #142f5510; }
.detail-caution { background: #fff7e7; color: #8b6c35; }
.detail-grid dt, .history p, .risk-reasons { color: #75839a; }
.history li { border-left-color: #d6e2f3; }
.history li:before { background: #5f91e3; }
dialog { background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 90px #0f254a33; }
dialog::backdrop { background: #10213fcc; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 5px; background: #f5f7fb; color: #6c7d96; }
.toast { background: #17365f; border-color: #ffffff20; box-shadow: 0 8px 30px #112d5426; }
.login-story { background: linear-gradient(145deg, #12233f, #173f7b); color: #fff; }
.login-story > p:not(.eyebrow), .story-footer { color: #adbfdd; }
.login-form-wrap { background: #fff; }
.login-form > p, .login-form .login-note { color: #7a89a0; }
.login-form .form-error, .form-error { color: var(--red); }
@media (min-width: 1600px) {
  .sidebar { width: 224px; }
  .main-shell { margin-left: 224px; }
  main { padding-top: 32px; }
  .metric { padding: 22px; }
  .metric-value { font-size: 34px; }
  td { padding-top: 14px; padding-bottom: 14px; }
}
@media (max-width: 1100px) {
  .sidebar { width: 200px; padding-inline: 12px; }
  .main-shell { margin-left: 200px; }
  main { padding: 24px; }
  .topbar { padding-inline: 24px; }
  .metrics { gap: 12px; }
  .metric { padding: 17px; }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: 100%; padding: 18px 16px 12px; overflow: visible; display: flex; }
  .sidebar .wordmark { padding: 0 0 14px; font-size: 23px; }
  .workspace-label, .nav-caption { display: block; margin: 13px 0 8px; font-size: 10px; }
  .sidebar nav { display: flex; flex-wrap: nowrap; gap: 7px; overflow-x: auto; margin-top: 0; padding-bottom: 4px; }
  .side-link { flex: 0 0 auto; width: auto; min-height: 40px; justify-content: center; padding: 9px 12px; font-size: 12px; white-space: nowrap; }
  .side-link.active { box-shadow: none; }
  .side-link > span { width: auto; }
  .sidebar-bottom, .sidebar-foot { display: block; margin-top: 10px; padding: 8px 0 0; border-top: 1px solid #ffffff12; font-size: 10px; }
  .sidebar-bottom p, .sidebar-foot p { display: inline; margin: 0 10px; font-size: 10px; }
  .sidebar-bottom a, .sidebar-foot a { display: inline-block; padding: 4px 0; }
  .main-shell { margin-left: 0; }
  .topbar { height: auto; min-height: 56px; padding: 12px 16px; flex-wrap: wrap; font-size: 11px; gap: 8px; }
  .topbar-actions { gap: 8px; }
  .session-indicator { padding-right: 10px; font-size: 11px; }
  main { padding: 22px 14px; }
  h1, .page-heading h1 { font-size: 23px; }
  .page-heading { gap: 12px; }
  .page-heading .muted { font-size: 12px; }
  .page-heading .button, #export-orders { min-height: 36px; font-size: 12px; padding: 8px 12px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric { padding: 16px; }
  .metric-label { font-size: 12px; }
  .metric-value { font-size: 28px; margin-block: 13px 8px; }
  .metric-caption { font-size: 10px; }
  .panel-heading, .config-section { padding: 16px; }
  .filter-tabs { padding-inline: 16px; gap: 22px; }
  .filter-tab { font-size: 12px; }
  .filter-bar { padding: 14px 16px; }
  .status-field { flex: 1; }
  .search-field { min-width: 0; flex-basis: 100%; }
  .table-footer, .pagination { padding: 13px 16px; }
  .pagination { justify-content: flex-start; }
  .pagination button, .pagination a { min-height: 36px; min-width: 36px; }
  .search-label { min-width: 0; width: 100%; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .full { grid-column: 1 / -1; }
  .catalog-row { grid-template-columns: 1fr 1fr; }
  .save-bar { flex-wrap: wrap; padding: 14px; gap: 12px; }
  .detail-summary { flex-wrap: wrap; }
  .detail-actions .button { min-width: 120px; }
  .detail-header, .detail-content { padding: 18px; }
  .login-story > p:not(.eyebrow), .story-footer { display: block; }
  .login-story > p:not(.eyebrow) { margin-top: 12px; font-size: 13px; }
  .story-footer { padding-top: 22px; font-size: 10px; }
}
@media (max-width: 420px) {
  .catalog-row, .detail-grid { grid-template-columns: 1fr; }
  .catalog-row .remove-model { grid-column: 1; }
  .confirm-buttons, .dialog-buttons { flex-wrap: wrap; }
  .confirm-buttons .button, .dialog-buttons .button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Additional operations panels */
.sidebar nav { overflow-y: auto; min-height: 0; }
.check-line input, .config-checks input { display: inline-block; width: auto; min-height: 0; padding: 0; margin: 0 8px 0 0; vertical-align: middle; }
.check-line { margin-top: 7px; }
.config-checks { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 16px; }
.config-checks label { display: flex; align-items: center; gap: 6px; }
.config-checks label input { flex: 0 0 auto; }
.service-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 20px; padding: 0 20px 20px; align-items: start; }
.service-detail { border: 1px solid var(--line); border-radius: 9px; padding: 16px; min-width: 0; }
.service-detail-head, .service-compose-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.service-detail-head { margin-bottom: 12px; }
.service-detail-head .button { min-height: 34px; padding: 7px 10px; font-size: 12px; }
.service-messages { display: flex; flex-direction: column; gap: 10px; height: min(48vh, 440px); min-height: 180px; overflow: auto; padding: 12px; border-radius: 7px; background: #f7f8f4; }
.service-message { max-width: 88%; padding: 10px 12px; border-radius: 8px; background: #fff; overflow-wrap: anywhere; }
.service-message.admin { align-self: flex-end; background: #eaf1e9; }
.service-message-head { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.service-message-content { white-space: pre-wrap; line-height: 1.7; }
.service-image { display: block; max-width: min(100%, 260px); max-height: 260px; object-fit: contain; border-radius: 6px; }
.service-detail textarea { margin-bottom: 8px; }
.service-compose-actions { align-items: flex-end; }
@media (max-width: 1100px) { .service-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .service-layout { padding-inline: 12px; } .service-detail-head { align-items: flex-start; flex-direction: column; } .config-checks { display: grid; grid-template-columns: 1fr; } }

/* Support workspace: preserve drafts and keep all scrolling within their panels. */
#service-panel{--support-blue:#175bd4;--support-soft:#e9f1ff;--support-ink:#182e49;--support-muted:#53677f;--support-line:#d6e1ee;color:var(--support-ink)}
#service-panel .service-layout{grid-template-columns:minmax(0,1fr) minmax(340px,1.05fr);align-items:start}
#service-panel .service-layout>div{min-width:0}
#service-panel .table-scroll{max-width:100%;overflow:auto}
#service-panel table{min-width:0;table-layout:fixed}
#service-panel th,#service-panel td{padding:12px 10px;font-size:12px}
#service-panel th:nth-child(1){width:28%}#service-panel th:nth-child(2){width:34%}#service-panel th:nth-child(3){width:16%}#service-panel th:nth-child(4){width:22%}
#service-panel td small,#service-panel .badge{font-size:12px}
#service-panel .cell-actions .button{padding:9px 8px;min-width:0;width:100%}
#service-panel .service-detail{border-color:var(--support-line);background:#fff}
#service-panel .service-detail-head{align-items:flex-start;flex-wrap:wrap}
#service-panel .service-detail-head>div{min-width:0;max-width:100%}
#service-panel #service-title,#service-panel #service-state{overflow-wrap:anywhere;white-space:normal}
#service-panel #service-title{font-size:16px;line-height:1.6}
#service-panel .muted,#service-panel .help{color:var(--support-muted);font-size:13px}
#service-panel .button{min-height:44px;white-space:normal;line-height:1.5}
#service-panel .service-detail-head .button{min-height:44px;font-size:13px}
#service-panel .primary{background:var(--support-blue);color:#fff}
#service-panel .service-messages{background:#f0f5fc;scrollbar-gutter:stable;overscroll-behavior:contain}
#service-panel .service-message{border:1px solid var(--support-line);max-width:94%;flex-shrink:0}
#service-panel .service-message.admin{background:var(--support-soft)}
#service-panel .service-message-head{font-size:12px;color:var(--support-muted)}
#service-panel .service-message-content{font-size:14px;color:var(--support-ink);overflow-wrap:anywhere}
#service-panel #service-compose{width:100%;font-size:16px;border:1px solid #a8bdd6;border-radius:8px;resize:vertical;min-height:90px}
#service-panel .service-compose-actions{gap:12px;flex-wrap:wrap}
#service-panel .service-compose-actions .help{flex:1 1 180px}
#service-panel .service-compose-actions .button{margin-left:auto}
@media(max-width:1100px){#service-panel .service-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){#service-panel .service-detail-head>div:last-child{display:flex;width:100%;gap:8px}#service-panel .service-detail-head .button{flex:1 1 0;font-size:13px}#service-panel .service-messages{scrollbar-gutter:auto}#service-panel table{min-width:560px}}

@media (max-width: 700px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  .workspace, .main-shell, main, #config-panel, .panel { min-width: 0; max-width: 100%; }
  .sidebar { width: 100%; max-width: 100%; padding: 14px 12px 10px; overflow: hidden; }
  .sidebar nav { display: flex; width: 100%; max-width: 100%; flex: 0 1 auto; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; gap: 6px; margin-top: 8px; padding: 0 1px 5px; }
  .side-link { flex: 0 0 auto; width: auto; min-height: 38px; padding: 8px 10px; white-space: nowrap; }
  .topbar { width: 100%; min-height: 48px; height: auto; padding: 10px 12px; align-items: flex-start; flex-wrap: wrap; gap: 6px 10px; }
  .topbar > span, .topbar > div { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  main { width: 100%; padding: 18px 10px; }
  .page-heading { width: 100%; align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 16px; }
  .page-heading > div { min-width: 0; max-width: 100%; }
  .page-heading > .button { align-self: flex-end; max-width: 100%; white-space: normal; }
  .notice { overflow-wrap: anywhere; padding: 12px; }
  .panel-heading, .config-section { min-width: 0; padding: 14px; gap: 10px; }
  .panel-heading > div, .panel-heading > label { min-width: 0; max-width: 100%; }
  .panel-heading select { min-width: 0; max-width: 100%; }
  .table-scroll { display: block; width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  table { width: 100%; min-width: 650px; }
  th, td { padding: 10px 9px; }
  th:first-child, td:first-child, th:last-child, td:last-child { padding-inline: 9px; }
  .ticket-list { min-width: 0; padding: 0 12px; }
  .ticket-head { gap: 8px; flex-wrap: wrap; }
  .form-grid, .catalog-row { min-width: 0; grid-template-columns: minmax(0, 1fr); }
  .catalog-row .remove-model { grid-column: 1; justify-self: start; }
  .form-grid > *, .config-section label, .save-bar > * { min-width: 0; max-width: 100%; }
  input, select, textarea { min-width: 0; max-width: 100%; }
  .save-bar { width: 100%; flex-wrap: wrap; align-items: flex-start; gap: 10px; padding: 12px; }
  .save-bar .button { max-width: 100%; }
  .service-layout { width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0 10px 12px; }
  .service-layout > *, .service-detail { min-width: 0; max-width: 100%; }
  .service-detail { padding: 12px; }
  .service-detail-head { width: 100%; min-width: 0; flex-direction: column; align-items: stretch; }
  .service-detail-head > div:last-child { display: flex; flex-wrap: wrap; gap: 7px; }
  .service-detail-head .button { flex: 1 1 110px; white-space: normal; }
  .service-messages { width: 100%; min-width: 0; height: min(48vh, 360px); padding: 8px; }
  .service-message { max-width: 95%; }
  .service-compose-actions { flex-wrap: wrap; align-items: flex-start; }
  .service-compose-actions .button { margin-left: auto; }
  .config-checks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
/* Accessible support text, scoped to the currently visible service workspace. */
#service-panel td { white-space: normal; }
#service-panel td strong, #service-panel td small { white-space: normal; overflow-wrap: anywhere; }
#service-panel td small { color: var(--support-muted); }
#service-panel [data-service-session] { width: 100%; min-width: 0; padding-inline: 8px; white-space: nowrap; }
body:has(#service-panel:not([hidden])) .sidebar .nav-caption,
body:has(#service-panel:not([hidden])) .sidebar .sidebar-foot,
body:has(#service-panel:not([hidden])) .sidebar .sidebar-foot p,
body:has(#service-panel:not([hidden])) #page-message:not(.error),
body:has(#service-panel:not([hidden])) footer { color: #53677f; }
@media (max-height: 500px) {
  #service-panel #service-compose { height: 64px; min-height: 64px; }
}

@media (max-width: 390px) {
  main { padding-inline: 8px; }
  .sidebar { padding-inline: 9px; }
  .wordmark { font-size: 21px; }
  .panel-heading, .config-section { padding: 12px; }
  .service-layout { padding-inline: 8px; }
  .service-detail-head > div:last-child { width: 100%; }
  .service-detail-head .button { flex-basis: 0; padding-inline: 7px; font-size: 11px; }
  .save-bar .button { width: 100%; }
}

/* v34: 账户/实名分页控件 */
.pager{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:12px 0 0}
.pager .button{min-height:36px;padding:0 14px}
.pager span{font-size:13px;color:var(--muted,#53677f)}
.pager .button[disabled]{opacity:.5;cursor:not-allowed}



/* V49 candidate: management workspace alignment and readable controls. */
#workspace .page-heading{gap:16px;flex-wrap:wrap}
#workspace .page-heading>.button{min-height:44px}
#workspace .panel-heading{gap:12px;flex-wrap:wrap;align-items:flex-end}
#workspace .panel-heading label{min-width:0;max-width:100%}
#workspace .panel-heading input,#workspace .panel-heading select{min-height:44px;font-size:14px}
#workspace .pager{gap:8px}
#workspace .pager .button{min-height:40px}
#workspace .table-scroll{max-width:100%;overflow-x:auto}
@media(max-width:767px){
  #workspace .page-heading>.button{width:100%}
  #workspace .panel-heading label{width:100%}
  #workspace .panel-heading label input,#workspace .panel-heading label select{width:100%}
}

