:root {
  --brand: #bf0000;
  --brand-dark: #8f001d;
  --brand-deep: #670013;
  --brand-soft: #fff1f2;
  --accent: #0f766e;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e6ebf0;
  --line-strong: #d7dee7;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --canvas: #f4f6f8;
  --canvas-warm: #fafafa;
  --success: #0f766e;
  --success-soft: #ecfdf5;
  --warning: #a15c08;
  --warning-soft: #fff8e8;
  --danger: #be123c;
  --danger-soft: #fff1f2;
  --info: #2563a7;
  --info-soft: #eff6ff;
  --unread: #e11d48;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .04);
  --shadow-md: 0 2px 6px rgba(15, 23, 42, .08), 0 20px 48px rgba(15, 23, 42, .08);
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; color-scheme: light; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.brandline, .login-brandline {
  height: 4px;
  background: linear-gradient(90deg, var(--brand-dark) 0%, var(--accent) 46%, #e5005a 100%);
}

/* 品牌与顶栏 */
.site-header { background: var(--surface); box-shadow: 0 1px 0 rgba(40, 22, 28, .08); }
.utility-bar {
  width: min(1180px, calc(100% - 40px));
  height: 31px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #77717a;
  font-size: 11px;
  letter-spacing: .03em;
}
.utility-status { display: inline-flex; align-items: center; gap: 7px; }
.utility-status i { width: 7px; height: 7px; border-radius: 50%; background: #26a269; box-shadow: 0 0 0 3px #dff4e9; }
.header-main {
  width: min(1180px, calc(100% - 40px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 2px 14px 2px 14px;
  color: #fff;
  background: linear-gradient(145deg, #ae002c, #790018);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15);
  font: 800 19px/1 Arial, sans-serif;
  letter-spacing: -.04em;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-copy strong { color: #590015; font-size: 21px; letter-spacing: .035em; }
.brand-copy small { margin-top: 6px; color: #807982; font-size: 10px; letter-spacing: .2em; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.user-block { display: flex; align-items: center; gap: 10px; padding-left: 22px; border-left: 1px solid var(--line); }
.user-block > span:not(.user-avatar) { display: flex; flex-direction: column; line-height: 1.35; }
.user-block strong { font-size: 13px; }
.user-block small { color: var(--muted); font-size: 11px; }
.user-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--brand); background: var(--brand-soft); font-weight: 800; }
.text-button, .icon-button { padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.text-button:hover, .icon-button:hover { color: var(--brand); border-color: var(--brand); }
.main-nav { background: linear-gradient(180deg, #970020 0%, #810019 100%); border-bottom: 3px solid #6b0015; }
.nav-inner { width: min(1180px, 100%); min-height: 49px; margin: 0 auto; display: flex; }
.nav-inner a {
  min-width: 150px;
  padding: 0 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: rgba(255,255,255,.9);
  border-left: 1px solid rgba(255,255,255,.16);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  position: relative;
}
.nav-inner a:last-child { border-right: 1px solid rgba(255,255,255,.16); }
.nav-inner a:hover { background: rgba(255,255,255,.09); }
.nav-inner a.active { color: #fff; background: rgba(65,0,14,.42); }
.nav-inner a.active::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 4px; background: #fff; }
.nav-icon { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.48); border-radius: 50%; font-size: 11px; }
.mobile-only { display: none; }

/* 页面基础 */
.page-shell { width: min(1180px, calc(100% - 40px)); min-height: calc(100vh - 260px); margin: 0 auto; padding: 28px 0 60px; outline: none; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; color: var(--muted); font-size: 12px; }
.breadcrumbs a { color: var(--brand); }
.breadcrumbs i { color: #aaa3aa; font-style: normal; }
.page-heading { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.page-heading h1 { margin: 0; font-size: 28px; line-height: 1.25; letter-spacing: .025em; }
.page-heading p { margin: 7px 0 0; color: var(--muted); }
.heading-mark { border-left: 5px solid var(--brand); padding-left: 15px; }
.heading-side { color: var(--muted); font-size: 12px; text-align: right; }
.heading-side strong { display: block; color: var(--ink); font-size: 14px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 0 15px; }
.section-heading h2 { margin: 0; font-size: 18px; }
.section-heading p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.section-link { color: var(--brand); font-size: 12px; font-weight: 700; }
.section-link:hover { text-decoration: underline; }
.page-loading { height: 260px; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); }
.spinner { width: 30px; height: 30px; border: 3px solid #e7dadd; border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 工作台 */
.welcome-banner {
  min-height: 132px;
  margin-bottom: 22px;
  padding: 26px 31px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  position: relative;
  color: #fff;
  background: linear-gradient(118deg, #690014 0%, #990025 56%, #b00037 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.welcome-banner::after { content: ""; position: absolute; width: 330px; height: 330px; right: -85px; top: -180px; border: 50px solid rgba(255,255,255,.08); border-radius: 50%; }
.welcome-banner::before { content: ""; position: absolute; width: 150px; height: 150px; right: 170px; bottom: -125px; border: 32px solid rgba(255,255,255,.07); border-radius: 50%; }
.welcome-banner > * { position: relative; z-index: 1; }
.welcome-banner .eyebrow { color: #ffd6e0; }
.welcome-banner h1 { margin: 4px 0 3px; font-size: 26px; }
.welcome-banner p { margin: 0; color: rgba(255,255,255,.8); }
.banner-date { min-width: 140px; text-align: right; }
.banner-date strong { display: block; font-size: 27px; letter-spacing: .04em; }
.banner-date span { color: #ffd6e0; font-size: 12px; }
.eyebrow { margin: 0; color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.stat-card { min-height: 142px; padding: 20px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: var(--radius); box-shadow: var(--shadow-sm); position: relative; }
.stat-card:nth-child(2) { border-top-color: #b72d4b; }
.stat-card:nth-child(3) { border-top-color: #604a8d; }
.stat-card.warning { border-top-color: #d46b13; }
.stat-top { display: flex; justify-content: space-between; align-items: center; }
.stat-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.stat-badge { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--brand); background: var(--brand-soft); font-size: 11px; font-weight: 800; }
.stat-card.warning .stat-badge { color: var(--warning); background: var(--warning-soft); }
.stat-value { margin: 9px 0 2px; font-size: 34px; font-weight: 800; line-height: 1.1; }
.stat-meta { color: #88818a; font-size: 11px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, .7fr); gap: 20px; }
.content-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.content-card-pad { padding: 22px; }
.quick-list { display: grid; gap: 10px; }
.quick-link { padding: 15px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 6px; transition: .16s ease; }
.quick-link:hover { transform: translateY(-1px); border-color: #bd7c8c; box-shadow: var(--shadow-sm); }
.quick-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: none; border-radius: 50%; color: #fff; background: var(--brand); font-weight: 800; }
.quick-link:nth-child(2) .quick-icon { background: #704e83; }
.quick-link:nth-child(3) .quick-icon { background: #a65a18; }
.quick-link > span:not(.quick-icon):not(.quick-arrow) { display: flex; flex: 1; flex-direction: column; }
.quick-link strong { font-size: 13px; }
.quick-link small { color: var(--muted); font-size: 11px; }
.quick-arrow { color: var(--brand); font-size: 22px; }

/* 表格、队列、标签 */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 11px 13px; color: #5e5861; background: #f3f1f2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line-strong); font-size: 11px; text-align: left; white-space: nowrap; }
.data-table td { padding: 14px 13px; border-bottom: 1px solid #ebe8ea; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fdfafb; }
.table-link { color: var(--brand); font-weight: 800; }
.table-link:hover { text-decoration: underline; }
.table-link-button { padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer; }
.code-text { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 12px; letter-spacing: .02em; }
.subtext { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-open { color: var(--info); background: var(--info-soft); }
.badge-resolved, .badge-closed { color: var(--success); background: var(--success-soft); }
.badge-deleted { color: #667085; background: #eef1f4; box-shadow: inset 0 0 0 1px #d5dbe1; }
.badge-hold { color: var(--warning); background: var(--warning-soft); }
.badge-high { color: var(--danger); background: var(--danger-soft); }
.badge-normal { color: #68616a; background: #f1eff0; }
.badge-returned { color: #8a5200; background: #fff0cf; box-shadow: inset 0 0 0 1px #e7bd72; }
.ticket-status-stack { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.empty-state { min-height: 220px; padding: 40px 20px; display: grid; place-items: center; text-align: center; }
.empty-state-icon { width: 52px; height: 52px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; color: var(--brand); background: var(--brand-soft); font-weight: 800; }
.empty-state h3 { margin: 0 0 4px; font-size: 16px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 12px; }
.tabs { margin-bottom: 19px; display: flex; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.tab-button { flex: 1; min-height: 52px; padding: 10px 18px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-right: 1px solid var(--line); color: #5d5760; background: #fff; cursor: pointer; font-weight: 700; }
.tab-button:last-child { border-right: 0; }
.tab-button:hover { color: var(--brand); background: #fffafb; }
.tab-button.active { color: #fff; background: linear-gradient(180deg, #a50029, #85001c); }
.tab-count { min-width: 21px; padding: 1px 6px; border-radius: 999px; color: var(--brand); background: var(--brand-soft); font-size: 10px; }
.tab-button.active .tab-count { color: var(--brand); background: #fff; }
.queue-toolbar { margin-bottom: 14px; padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.queue-summary { color: var(--muted); font-size: 12px; }
.queue-summary strong { color: var(--brand); font-size: 16px; }
.filter-row { display: flex; align-items: center; gap: 9px; }
.select-compact { min-width: 130px; height: 36px; padding: 0 31px 0 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--ink); background: #fff; }
.workspace-l1 .tabs { overflow-x: auto; }
.workspace-l1 .tab-button { min-width: 112px; }
.l1-queue-search { margin-bottom: 14px; padding: 15px 16px; position: relative; z-index: 5; display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.l1-queue-search > label { color: #344054; font-size: 12px; font-weight: 750; }
.l1-queue-search-control { position: relative; }
.l1-queue-search .search-input { min-height: 42px; padding-right: 128px; background: #fbfcfe; }
.l1-search-hint { position: absolute; top: 50%; right: 12px; color: var(--muted); font-size: 10px; transform: translateY(-50%); pointer-events: none; }
.l1-search-results { max-height: 340px; position: absolute; top: calc(100% - 7px); right: 16px; left: 132px; overflow-y: auto; background: #fff; border: 1px solid #cfd7e2; border-radius: 0 0 12px 12px; box-shadow: 0 16px 36px rgba(15, 23, 42, .16); }
.l1-search-results[hidden] { display: none; }
.l1-search-result { padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; color: inherit; border-bottom: 1px solid #edf0f3; }
.l1-search-result:last-child { border-bottom: 0; }
.l1-search-result:hover, .l1-search-result:focus { background: #f5f9ff; outline: none; }
.l1-search-result > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.l1-search-result > span:last-child { align-items: flex-end; }
.l1-search-result strong, .customer-name-cell { color: #1d2939; font-size: 12px; }
.l1-search-result small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.l1-search-result b { color: var(--brand); }
.l1-search-empty { padding: 18px; color: var(--muted); font-size: 12px; text-align: center; }
.l1-search-empty.is-error { color: var(--danger); }

/* 工单详情 */
.ticket-hero { margin-bottom: 18px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.ticket-hero-top { padding: 18px 23px 14px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.ticket-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ticket-title-row h1 { margin: 0; font-size: 21px; }
.ticket-hero-meta { display: flex; align-items: center; justify-content: flex-end; gap: 14px; color: var(--muted); font-size: 12px; }
.ticket-back-button { min-height: 44px; padding-inline: 21px; white-space: nowrap; box-shadow: 0 4px 12px rgba(112,0,26,.22); }
.ticket-code { padding: 22px 23px 24px; background: linear-gradient(95deg, #fff 0%, #fff7f9 100%); }
.ticket-code-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .09em; }
.ticket-code-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ticket-code strong { overflow-wrap: anywhere; color: var(--brand-dark); font: 800 clamp(22px, 3vw, 36px)/1.25 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .035em; }
.ticket-layout { display: grid; grid-template-columns: minmax(280px, .83fr) minmax(420px, 1.35fr); gap: 18px; align-items: start; }
.panel { margin-bottom: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel-header { min-height: 57px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.panel-header h2 { margin: 0; font-size: 16px; }
.panel-header small { color: var(--muted); }
.panel-body { padding: 18px; }
.return-banner {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #e3b56f;
  border-left: 4px solid #c47b00;
  border-radius: 8px;
  background: #fff8ec;
}
.return-banner strong { display: block; margin-bottom: 4px; color: #8a5200; }
.return-banner p { margin: 4px 0; }
.action-hint.warn { color: #8a1c1c; background: #fff1f1; padding: 10px 12px; border-radius: 6px; }
.info-list { margin: 0; }
.info-list-full .info-row dt { min-width: 7.5em; }
.info-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px dashed #e6e1e4; }
.info-row:last-child { border-bottom: 0; }
.info-row dt { color: var(--muted); font-size: 12px; }
.info-row dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.action-stack { display: grid; gap: 14px; }
.deleted-ticket-note { padding: 14px 15px; display: flex; flex-direction: column; gap: 3px; color: #475467; background: #f2f4f7; border: 1px solid #d0d5dd; border-radius: 8px; }
.deleted-ticket-note strong { color: #344054; }
.deleted-ticket-note span { font-size: 11px; }
.action-box { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.action-box > summary { padding: 13px 15px; list-style: none; display: flex; align-items: center; justify-content: space-between; color: #413b43; background: #faf8f9; cursor: pointer; font-weight: 700; }
.action-box > summary::-webkit-details-marker { display: none; }
.action-box > summary::after { content: "+"; color: var(--brand); font-size: 19px; line-height: 1; }
.action-box[open] > summary { color: var(--brand); border-bottom: 1px solid var(--line); }
.action-box[open] > summary::after { content: "−"; }
.action-body { padding: 15px; }
.action-hint { margin: 0 0 12px; padding: 9px 11px; color: #635c64; background: #f4f2f3; border-left: 3px solid #988d94; font-size: 11px; }
.button-row { display: flex; flex-wrap: wrap; gap: 9px; }
.state-actions { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.state-actions h3 { margin: 0 0 9px; font-size: 12px; }
.copy-button { flex: none; }

/* 表单 */
.form-stack { display: grid; gap: 17px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { display: grid; gap: 6px; }
.field > span:first-child, .field-label { color: #4b454d; font-size: 12px; font-weight: 700; }
.field input, .field textarea, .field select, .search-input {
  width: 100%;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 82px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus, .search-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(155,0,31,.09); }
.checkbox-field { display: flex; align-items: flex-start; gap: 8px; color: #4d474f; font-size: 12px; }
.checkbox-field input { margin-top: 4px; accent-color: var(--brand); }
.button {
  min-height: 39px;
  padding: 8px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  transition: .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button-primary { color: #fff; background: linear-gradient(180deg, #af0030, #89001d); border-color: #750018; box-shadow: 0 2px 4px rgba(112,0,26,.2); }
.button-primary:hover { background: linear-gradient(180deg, #bd0035, #970021); }
.button-secondary { color: var(--brand); background: #fff; border-color: #bd8895; }
.button-secondary:hover { background: var(--brand-soft); }
.button-neutral { color: #4f4951; background: #f6f4f5; border-color: var(--line-strong); }
.button-danger { color: var(--danger); background: var(--danger-soft); border-color: #e7a7b2; }
.button-small { min-height: 32px; padding: 5px 11px; font-size: 11px; }
.button-wide { width: 100%; min-height: 50px; justify-content: space-between; padding: 10px 19px; }
.form-message { display: none; padding: 10px 12px; color: var(--danger); background: var(--danger-soft); border: 1px solid #edbec6; border-radius: var(--radius-sm); font-size: 12px; }
.form-message.visible { display: block; }
.sr-only { width: 1px; height: 1px; padding: 0; margin: -1px; position: absolute; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.l2-send-confirm-layer {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 15, 11, .76);
  backdrop-filter: blur(3px);
}
.l2-send-confirm-dialog {
  width: min(430px, 100%);
  overflow: hidden;
  color: #f4fbf7;
  background: #13231d;
  border: 1px solid rgba(122, 207, 164, .3);
  border-radius: 15px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .5);
}
.l2-send-confirm-dialog header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 20px 22px 13px;
}
.l2-send-confirm-dialog header span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: none;
  color: #0e261b;
  background: #6fd39d;
  border-radius: 50%;
  font-weight: 900;
}
.l2-send-confirm-dialog h2 { margin: 0; color: #fff; font-size: 20px; }
.l2-send-confirm-dialog p { margin: 0; padding: 0 22px 22px; color: #c9dbd1; font-size: 15px; }
.l2-send-confirm-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 22px 19px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.l2-send-confirm-dialog .l2-send-confirm-cancel {
  color: #e3eee8;
  background: transparent;
  border-color: rgba(255, 255, 255, .25);
}
.l2-send-confirm-dialog .l2-send-confirm-submit {
  color: #062013;
  background: #70d79f;
  border-color: #70d79f;
  font-weight: 800;
}
.l2-send-confirm-dialog .button:focus-visible { outline: 3px solid #b9f3d2; outline-offset: 3px; }
@media (max-width: 520px) {
  .l2-send-confirm-layer { padding: 16px; align-items: end; }
  .l2-send-confirm-dialog { border-radius: 15px 15px 10px 10px; }
}

/* L2 LINE 核客工作台：对话优先 */
.workspace-l2 .site-footer { display: none; }
#app.line-desk-shell { width: min(1680px, calc(100% - 32px)); max-width: none; min-height: 0; padding-top: 14px; padding-bottom: 14px; }
.line-desk-topbar { min-height: 42px; margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.line-desk-topbar h1 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: .02em; }
.line-desk-stage { position: relative; }
.line-desk-layout {
  height: calc(100vh - 234px);
  min-height: 0;
  display: grid;
  grid-template-columns: 252px minmax(440px, 1fr) 388px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.line-desk-layout > * { height: 100%; min-height: 0; }
.line-conversation-panel { min-width: 0; display: grid; grid-template-rows: auto minmax(0, 38%) minmax(0, 1fr); overflow: hidden; background: #fbfafb; border-right: 1px solid var(--line); }
.line-conversation-panel:has([data-line-fold="subs"].is-collapsed) { grid-template-rows: auto auto minmax(0, 1fr); }
.line-conversation-panel:has([data-line-fold="list"].is-collapsed) { grid-template-rows: auto minmax(0, 1fr) auto; }
.line-conversation-panel > header { min-height: 54px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff; border-bottom: 1px solid var(--line); }
.line-conversation-panel > header strong { font-size: 14px; }
.line-fold-section { min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr); overflow: hidden; }
.line-fold-list { min-height: 0; }
.line-fold-header { min-height: 34px; padding: 6px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #f3f6f4; border-bottom: 1px solid var(--line); }
.line-fold-header strong { font-size: 12px; }
.line-fold-header-actions { display: flex; align-items: center; gap: 6px; }
.line-fold-hint { display: none; width: 100%; margin: 0; padding: 8px 10px; color: #4e5652; text-align: left; background: #eef3f0; border: 0; border-bottom: 1px solid var(--line); font-size: 11px; cursor: pointer; }
.line-form-count { min-width: 20px; height: 20px; padding: 0 5px; display: inline-grid; place-items: center; color: #fff; background: #e45b2f; border-radius: 999px; font-size: 9px; font-weight: 800; }
.line-fold-hint .line-fold-form-badge { margin-left: 6px; vertical-align: middle; }
.line-fold-section.is-collapsed { grid-template-rows: auto auto 0fr; }
.line-fold-section.is-collapsed .line-fold-body { display: none; }
.line-fold-section.is-collapsed .line-fold-hint { display: block; }
.line-fold-hint.has-new { color: #9a1d3a; background: #fdecef; font-weight: 700; }
.line-conversation-heading { min-width: 0; display: flex; align-items: center; gap: 7px; }
.line-total-unread { min-width: 22px; height: 22px; font-size: 9px; }
.line-sub-switcher {
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #eef2f6;
}
.line-sub-tab { min-width: 0; min-height: 31px; padding: 5px 7px; display: flex; align-items: center; gap: 6px; color: #4e5652; text-align: left; background: #f5f7f6; border: 1px solid #e0e6e2; border-radius: 999px; cursor: pointer; }
.line-sub-tab > span:nth-child(2) { min-width: 0; overflow: hidden; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.line-sub-tab b { min-width: 17px; height: 17px; margin-left: auto; display: grid; place-items: center; color: #fff; background: #e03b64; border-radius: 999px; font-size: 8px; }
.line-sub-tab .line-form-count { margin-left: 0; background: #e45b2f; }
.line-sub-tab.active { color: #0c6b40; background: #eaf8f0; border-color: #8fd3ad; }
.line-sub-dot { width: 7px; height: 7px; flex: none; background: #9aa6a0; border-radius: 50%; }
.line-sub-tab.active .line-sub-dot { background: #16a05f; box-shadow: 0 0 0 3px #d5f1e2; }
.line-sub-empty { grid-column: 1 / -1; padding: 8px; color: var(--muted); background: #f7f6f6; border-radius: 6px; font-size: 10px; text-align: center; }
.line-conversation-list {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #eef2f6;
}
.line-sub-switcher::-webkit-scrollbar,
.line-conversation-list::-webkit-scrollbar { width: 8px; }
.line-sub-switcher::-webkit-scrollbar-track,
.line-conversation-list::-webkit-scrollbar-track { background: #eef2f6; }
.line-sub-switcher::-webkit-scrollbar-thumb,
.line-conversation-list::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 8px; }
.line-conversation-list .page-loading { height: 100%; }
.line-conversation { width: 100%; min-height: 76px; padding: 10px 11px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 9px; align-items: center; text-align: left; background: transparent; border: 0; border-bottom: 1px solid #ebe7e9; cursor: pointer; }
.line-conversation-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; border-bottom: 1px solid #ebe7e9; }
.line-conversation-row .line-conversation { border-bottom: 0; }
.line-conversation-delete { align-self: center; margin-right: 6px; color: #9a1d3a; }
.line-closed-tag { color: #8a5a16; background: #fff4d6; border-radius: 999px; padding: 1px 6px; font-size: 10px; }
.line-conversation:hover { background: #fff; }
.line-conversation.active { background: #eef9f3; box-shadow: inset 3px 0 0 #0f7a4a; }
.line-avatar { width: 38px; height: 38px; display: inline-grid; place-items: center; flex: none; color: #fff; background: linear-gradient(145deg, #19a564, #0d7043); border-radius: 50%; font-weight: 800; }
.line-conversation-copy { min-width: 0; display: grid; gap: 3px; }
.line-conversation-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.line-conversation-top strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.line-conversation-top time { color: var(--muted); font-size: 8px; white-space: nowrap; }
.line-preview { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.line-conversation-tags { min-width: 0; display: flex; align-items: center; gap: 4px; overflow: hidden; }
.line-conversation-tags .badge { padding: 1px 5px; font-size: 8px; }
.line-binding-state { width: fit-content; max-width: 100%; padding: 1px 6px; overflow: hidden; color: #7c7379; background: #eee9ec; border-radius: 999px; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.line-binding-state.is-bound { color: #0d7043; background: #daf2e5; }
.line-conversation-badges { align-self: stretch; padding-top: 1px; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; gap: 5px; }
.line-form-badge { padding: 2px 6px; color: #fff; background: #e45b2f; border-radius: 999px; font-size: 9px; font-weight: 800; line-height: 1.35; white-space: nowrap; }
.line-unread { min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; color: #fff; background: #e03b64; border-radius: 999px; font-size: 9px; font-weight: 800; }
.line-list-empty, .line-chat-empty { height: 100%; min-height: 0; padding: 20px; display: grid; place-content: center; color: var(--muted); text-align: center; }
.line-list-empty strong, .line-chat-empty strong { font-size: 13px; font-weight: 650; }

.line-chat-pane { min-width: 0; min-height: 0; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #f2f7f4; }
.line-chat-pane > .page-loading, .line-chat-pane > .error-panel, .line-chat-pane > .line-chat-empty { grid-row: 1 / -1; }
.line-chat-header { min-height: 58px; padding: 8px 15px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border-bottom: 1px solid var(--line); }
.line-chat-header > div { min-width: 0; display: flex; align-items: center; gap: 10px; }
.line-chat-header > div > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.line-chat-header strong, .line-chat-header small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-chat-header small { color: var(--muted); font-size: 10px; }
.line-message-stream { min-height: 0; padding: 18px clamp(18px, 3vw, 34px); display: flex; flex-direction: column; justify-content: flex-start; gap: 9px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.line-stream-empty { min-height: 0; margin: auto 0; padding: 16px; display: grid; place-content: center; gap: 4px; color: var(--muted); text-align: center; }
.line-stream-empty strong { color: var(--ink); font-size: 14px; }
.line-stream-empty span { font-size: 11px; }
.line-message { max-width: 72%; display: flex; flex-direction: column; align-items: flex-start; }
.line-message.out { margin-left: auto; align-items: flex-end; }
.line-bubble { padding: 9px 12px; white-space: pre-wrap; overflow-wrap: anywhere; background: #fff; border: 1px solid #d8e1dc; border-radius: 4px 14px 14px 14px; box-shadow: 0 2px 5px rgba(29,64,45,.06); }
.line-message.out .line-bubble { color: #fff; background: #117c4b; border-color: #117c4b; border-radius: 14px 4px 14px 14px; }
.line-message-content { display: inline; }
.line-read-status { margin-left: 7px; padding: 1px 5px; vertical-align: 1px; border-radius: 999px; font-size: 8px; font-weight: 750; line-height: 1.5; white-space: nowrap; }
.line-read-status.is-unread { color: #fff; background: #d85835; }
.line-read-status.is-read { color: #52645c; background: #dce9e2; }
.line-message-meta { margin-top: 3px; display: flex; align-items: center; gap: 6px; color: #777f7a; font-size: 9px; }
.line-recall-button { padding: 0; color: #66758a; background: transparent; border: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.line-recall-button:hover { color: #b42318; }
.line-recall-button:disabled { color: #a5adb8; cursor: wait; }
.line-message.is-recalled .line-bubble { color: #87909d; background: #eef1f3; border-color: #dce1e5; box-shadow: none; text-decoration: line-through; }
.line-system-message { margin: 2px auto 7px; display: flex; flex-direction: column; align-items: center; color: var(--muted); font-size: 10px; }
.line-system-message span { padding: 3px 10px; background: rgba(255,255,255,.76); border-radius: 999px; }
.line-system-message time { margin-top: 2px; font-size: 9px; }
.line-composer { width: 100%; min-width: 0; padding: 10px 13px; grid-row: 3; align-self: end; background: #fff; border-top: 1px solid var(--line); }
.line-composer textarea { width: 100%; min-height: 58px; max-height: 130px; padding: 9px 11px; resize: vertical; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 6px; outline: none; }
.line-composer textarea:focus { border-color: #0f7a4a; box-shadow: 0 0 0 3px rgba(15,122,74,.1); }
.line-image-preview { display:flex; align-items:center; gap:10px; margin-bottom:8px; padding:8px; border:1px solid var(--line); border-radius:8px; background:#f7faf8; }
.line-image-preview[hidden] { display:none !important; }
.line-image-preview img { width:72px; height:72px; object-fit:cover; border-radius:6px; background:#fff; }
.line-image-preview div { display:flex; flex-direction:column; gap:4px; min-width:0; }
.line-image-preview strong { font-size:12px; }
.line-image-preview span { color:var(--muted); font-size:11px; }
.line-composer > div { margin-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.line-composer > div > span { color: var(--muted); font-size: 9px; }

/* 客户摘要；编辑表单仅在明确点击后挂载 */
.line-profile-column { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; background: #fff; border-left: 1px solid var(--line); }
.line-desk-code-form { min-width: 0; padding: 10px 11px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; background: #fff; border-bottom: 1px solid var(--line); }
.line-desk-code-form .search-input { min-height: 34px; padding-block: 6px; letter-spacing: normal; }
.desk-search-list { display: grid; gap: 8px; padding: 10px 11px; }
.desk-search-count { margin: 0; color: #475569; font-size: 13px; }
.desk-search-empty { padding: 16px 12px; }
.desk-search-empty strong { display: block; margin-bottom: 6px; }
.desk-search-pick { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; padding: 10px 12px; border: 1px solid #d5dee8; border-radius: 10px; background: #fff; cursor: pointer; }
.desk-search-pick:hover { border-color: #0f7a4a; background: #f4fbf7; }
.desk-search-pick small { color: #475569; }
.line-customer-pane { min-width: 0; min-height: 0; overflow: hidden; background: #fff; }
.line-customer-pane > .page-loading { height: 100%; }
.line-customer-summary, .line-customer-edit-form { height: 100%; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.line-customer-header { min-height: 86px; padding: 15px 16px 13px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; background: linear-gradient(120deg, #fff 0%, #fff7f9 100%); border-bottom: 1px solid var(--line); }
.line-customer-identity { min-width: 0; }
.line-customer-header h2 { margin: 0 0 6px; overflow: hidden; color: #1a1a1a; font-size: 21px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.line-customer-code { min-height: 24px; padding: 0; color: #7f001a; background: transparent; border: 0; font: 800 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: left; cursor: copy; user-select: all; }
.line-customer-code span { margin-left: 3px; color: #75676c; font-family: system-ui, sans-serif; font-size: 11px; font-weight: 700; }
.line-customer-code:hover { color: #b00030; text-decoration: underline; }
.line-customer-header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.line-customer-header-actions .badge { padding: 3px 7px; font-size: 11px; }
.line-customer-header-actions .button, .line-customer-actions .button, .line-customer-summary-actions .button { white-space: nowrap; }
.line-customer-binding { max-width: 190px; padding: 5px 9px; color: #5f565c; background: #eee9ec; border-radius: 999px; font-size: 12px; font-weight: 700; text-align: center; }
.line-customer-binding.is-bound { color: #0d7043; background: #daf2e5; }
.line-customer-summary-scroll, .line-customer-edit-scroll { min-height: 0; padding: 14px 14px 20px; overflow-y: auto; scrollbar-gutter: stable; }
.line-customer-summary-groups, .line-customer-edit-groups { display: grid; gap: 12px; }
.line-customer-summary-group, .line-customer-edit-group { overflow: hidden; background: #fff; border: 1px solid #ded8db; border-radius: 9px; box-shadow: 0 2px 7px rgba(60,35,44,.045); }
.line-customer-summary-group > h3, .line-customer-edit-group > h3 { margin: 0; padding: 9px 12px; color: #6e0018; background: #faf5f7; border-bottom: 1px solid #e7dfe2; font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.line-customer-summary-grid { margin: 0; padding: 1px 12px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 18px; }
.line-summary-item { min-width: 0; padding: 10px 0 11px; border-bottom: 1px solid #eee9eb; }
.line-summary-item dt { margin-bottom: 4px; color: #6b6267; font-size: 13px; font-weight: 700; line-height: 1.25; }
.line-summary-item dd { min-height: 21px; margin: 0; overflow-wrap: anywhere; color: #1a1a1a; font-size: 15.5px; font-weight: 720; line-height: 1.4; }
.line-summary-mono dd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.line-summary-emphasis dd { color: #700017; font-size: 16px; font-weight: 800; }
.line-summary-wide { grid-column: 1 / -1; }
.line-customer-summary-grid > .line-summary-item:nth-last-child(-n + 2) { border-bottom-color: transparent; }
.line-customer-summary-grid > .line-summary-wide:last-child { border-bottom-color: transparent; }
.line-customer-summary-group.is-bound > h3 { color: #0d7043; background: #eff9f4; }
.line-customer-remark-group .line-summary-item dd { white-space: pre-wrap; }
.line-desk-handoff { overflow: hidden; border: 1px solid #9fd8bb; border-radius: 10px; background: #f5fcf8; box-shadow: 0 3px 12px rgba(15, 122, 74, .07); }
.line-desk-handoff-heading { min-height: 42px; padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #0d7043; background: #e7f7ef; border-bottom: 1px solid #bfe5d1; }
.line-desk-handoff-heading h3 { margin: 0; font-size: 14px; font-weight: 850; }
.line-desk-handoff-heading span { padding: 3px 7px; color: #0d7043; background: #fff; border: 1px solid #bfe5d1; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.line-desk-handoff > p { margin: 0; padding: 10px 12px 0; color: #52675c; font-size: 11px; line-height: 1.55; }
.line-desk-handoff .form-stack { padding: 10px 12px 13px; gap: 9px; }
.line-desk-handoff .field { gap: 4px; }
.line-desk-handoff .field > span { color: #40554a; font-size: 11px; }
.line-desk-handoff .field input, .line-desk-handoff .field textarea { min-height: 36px; padding: 8px 9px; font-size: 13px; }
.line-desk-handoff .field textarea { min-height: 58px; }
.line-desk-handoff .field input[readonly] { color: #33473c; background: #eef7f2; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.line-desk-handoff .checkbox-field { padding: 8px 9px; color: #304a3b; background: #fff; border: 1px solid #d5e8dd; border-radius: 7px; font-size: 11px; }
.line-customer-fields { padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.line-desk-field { min-width: 0; display: grid; gap: 4px; }
.line-desk-field > span { color: #5e555a; font-size: 13px; font-weight: 750; }
.line-desk-field input, .line-desk-field textarea { width: 100%; min-width: 0; padding: 9px 10px; color: #1a1a1a; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 15px; outline: none; }
.line-desk-field textarea { resize: vertical; }
.line-desk-field input:focus, .line-desk-field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(155,0,31,.08); }
.line-desk-field-wide { grid-column: 1 / -1; }
.line-customer-actions, .line-customer-summary-actions { min-height: 58px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 9px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -5px 14px rgba(52,32,40,.045); }
.line-customer-actions .button { flex: 1; }
.line-customer-summary-actions .button { min-height: 38px; padding-inline: 15px; font-size: 13px; }
.line-desk-handoff-submit { min-width: 138px; margin-left: auto; background: #0f7a4a; border-color: #0f7a4a; }
.line-desk-handoff-submit:hover { background: #0c693f; border-color: #0c693f; }
.line-customer-ticket-actions { min-width: 0; margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.line-desk-return-line-missing { white-space: normal !important; line-height: 1.35; }
.line-linked-note { color: #0f6b61; font-size: 12px; font-weight: 700; }
.ticket-status-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.ticket-status-actions .button { white-space: nowrap; }
.ticket-status-actions-queue { min-width: 190px; }
.line-customer-binding-actions { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.line-link-hint { font-size: 12px; color: #6b7280; white-space: normal; max-width: 160px; line-height: 1.35; }
.line-customer-binding-actions .button-primary { min-width: 72px; font-weight: 700; }
.ticket-status-actions-l2 { margin-left: auto; flex-wrap: nowrap; }
.line-ticket-reference { color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.line-customer-summary-actions:has(.ticket-status-actions-l2) { align-items: center; }

@media (max-width: 1280px) {
  .line-customer-summary-actions { flex-wrap: wrap; }
  .line-desk-handoff-submit { flex: 1 1 150px; }
  .line-customer-ticket-actions { width: 100%; margin-left: 0; }
  .ticket-status-actions-l2 { width: 100%; margin-left: 0; justify-content: stretch; }
  .ticket-status-actions-l2 .button { flex: 1 1 auto; }
}
.line-customer-empty { height: 100%; min-height: 0; padding: 20px; display: grid; place-content: center; color: var(--muted); text-align: center; }
.line-customer-empty strong { font-size: 13px; font-weight: 650; }
.line-customer-empty.is-error strong { color: var(--danger); }

/* 顶栏工单 pills 与右侧抽屉 */
.l2-queue-tabs { display: flex; align-items: center; gap: 6px; }
.l2-queue-tab { min-height: 30px; padding: 4px 6px 4px 10px; display: inline-flex; align-items: center; gap: 7px; color: #5c555b; background: #fff; border: 1px solid #dedadd; border-radius: 999px; cursor: pointer; }
.l2-queue-tab span { font-size: 10px; font-weight: 750; }
.l2-queue-tab b { min-width: 19px; height: 19px; padding: 0 4px; display: grid; place-items: center; color: #625a60; background: #f1eff0; border-radius: 999px; font-size: 9px; }
.l2-queue-tab:hover, .l2-queue-tab.active { color: #0d7043; background: #eaf8f0; border-color: #91d2ae; }
.l2-queue-tab.active b { color: #fff; background: #0f7a4a; }
.l2-queue-drawer { width: min(620px, calc(100% - 252px)); position: absolute; inset: 0 0 0 auto; z-index: 12; overflow: hidden; background: rgba(255,255,255,.99); border: 1px solid #cfd9d3; border-radius: 0 10px 10px 0; box-shadow: -18px 0 44px rgba(40,54,46,.18); }
.l2-queue-drawer[hidden] { display: none; }
.l2-queue-drawer > header { min-height: 56px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.l2-queue-drawer h2 { margin: 0; font-size: 17px; }
.l2-queue-drawer h2 span { color: #0f7a4a; }
.l2-queue-drawer-body { max-height: calc(100% - 56px); padding: 12px 14px 18px; overflow: auto; }
.l2-queue-drawer-body .empty-state { min-height: 220px; }

/* 管理端操作情况 */
.ops-main-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(350px, .8fr); gap: 18px; align-items: start; }
.ops-main-grid .panel { min-width: 0; }
.ops-section-heading { margin-top: 28px; }
.ops-event-list { margin: 0; padding: 0; list-style: none; }
.ops-event-list li { padding: 12px 0; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; border-bottom: 1px solid #eee9ec; }
.ops-event-list li:last-child { border-bottom: 0; }
.ops-event-icon { width: 28px; height: 28px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 50%; font-size: 10px; font-weight: 800; }
.ops-event-list strong { font-size: 12px; }
.ops-event-list p { margin: 1px 0; color: var(--muted); font-size: 10px; }
.ops-event-list p a { color: var(--brand); font-weight: 700; }
.ops-event-list div > span { display: block; overflow: hidden; color: #5a535b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ops-event-list time, .ops-record-list time { color: var(--muted); font-size: 9px; white-space: nowrap; }
.ops-record-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ops-record-list { margin: 0; padding: 0; list-style: none; }
.ops-record-list li { padding: 10px 0; display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid #eee9ec; }
.ops-record-list li:last-child { border-bottom: 0; }
.ops-record-list li > div { min-width: 0; display: flex; flex-direction: column; }
.ops-record-list strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.ops-record-list span { color: var(--muted); font-size: 10px; }
.ops-empty-inline { margin: 0; padding: 18px 0; color: var(--muted); text-align: center; }
.ops-agent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ops-agent-card { min-width: 0; padding: 13px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 9px; align-items: center; border: 1px solid var(--line); border-radius: 7px; }
.ops-agent-card .user-avatar { width: 38px; height: 38px; }
.ops-agent-card > div { min-width: 0; display: flex; flex-direction: column; }
.ops-agent-card strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ops-agent-card span, .ops-agent-card small, .ops-agent-card time { color: var(--muted); font-size: 9px; }
.ops-agent-card > div:nth-of-type(2) { align-items: center; }
.ops-agent-card b { color: var(--brand); font-size: 19px; line-height: 1; }
.ops-agent-card time { grid-column: 2 / -1; }

/* 管理端 LINE 子号分配 */
.workspace-admin .nav-inner a { min-width: 0; flex: 1; padding-inline: 12px; }
.workspace-admin .nav-inner a[data-nav="line-admin"] { flex: 1.35; font-size: 13px; white-space: nowrap; }
.line-admin-heading-actions { display: flex; align-items: center; gap: 9px; }
.line-admin-heading-actions .button { white-space: nowrap; }
.line-admin-stats .stat-card { min-height: 126px; }
.line-admin-sticky-note { margin: -5px 0 18px; padding: 13px 16px; display: flex; align-items: flex-start; gap: 12px; color: #604b22; background: #fff9eb; border: 1px solid #ecd9ac; border-radius: var(--radius); }
.line-admin-sticky-note > span { width: 30px; height: 30px; flex: none; display: grid; place-items: center; color: #fff; background: #9c6713; border-radius: 50%; font-size: 10px; font-weight: 800; }
.line-admin-sticky-note strong { display: block; font-size: 12px; }
.line-admin-sticky-note p { margin: 1px 0 0; color: #786b51; font-size: 10px; }
.line-admin-panel { overflow: hidden; }
.line-admin-panel .panel-header > div { min-width: 0; }
.line-admin-panel .panel-header h2 + small { display: block; margin-top: 2px; }
.line-admin-live { display: inline-flex; align-items: center; gap: 7px; color: var(--success); font-size: 10px; font-weight: 700; white-space: nowrap; }
.line-admin-live i { width: 7px; height: 7px; background: #26a269; border-radius: 50%; box-shadow: 0 0 0 3px #dff4e9; }
.line-admin-table { width: 1180px; min-width: 1030px; }
.line-admin-table th:last-child, .line-admin-table td:last-child { width: 350px; }
.line-admin-table td { height: 86px; }
.line-admin-sub-name { font-size: 13px; }
.line-admin-channel { max-width: 220px; display: block; overflow: hidden; color: #514a52; font: 600 11px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.line-admin-mail-count { color: var(--brand); font-size: 18px; line-height: 1; }
.line-admin-qr { min-width: 112px; display: flex; align-items: center; gap: 9px; }
.line-admin-qr img, .line-admin-qr-placeholder { width: 48px; height: 48px; flex: none; display: grid; place-items: center; object-fit: cover; background: #fff; border: 1px solid #ddd5d9; border-radius: 6px; }
.line-admin-qr-placeholder { color: #8a7d83; background: #f4f1f2; font-size: 10px; font-weight: 800; }
.line-admin-qr > span:last-child { display: flex; flex-direction: column; }
.line-admin-qr strong { color: var(--success); font-size: 11px; }
.line-admin-qr.no-qr strong { color: var(--muted); }
.line-admin-qr small { color: var(--muted); font-size: 8px; white-space: nowrap; }
.line-admin-mail-quota { min-width: 120px; display: grid; gap: 5px; }
.line-admin-mail-quota > span { display: flex; align-items: baseline; gap: 3px; }
.line-admin-mail-quota > span > b { color: #514a52; font-size: 10px; }
.line-admin-mail-quota > i { width: 100%; height: 5px; overflow: hidden; background: #eee9eb; border-radius: 999px; }
.line-admin-mail-quota > i > b { height: 100%; display: block; background: linear-gradient(90deg, #9b001f, #cf4167); border-radius: inherit; }
.line-admin-mail-quota > small { color: var(--muted); font-size: 9px; }
.line-admin-unbound { color: #8b5a00; font-size: 12px; font-weight: 750; }
.line-admin-bound { display: flex; align-items: center; gap: 9px; }
.line-admin-bound > span:nth-child(2), .line-admin-unavailable { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.line-admin-bound strong, .line-admin-unavailable strong { font-size: 11px; }
.line-admin-bound small, .line-admin-unavailable small { color: var(--muted); font-size: 9px; }
.line-admin-bound .button { margin-left: auto; }
.line-admin-lock { width: 29px; height: 29px; flex: none; display: grid; place-items: center; color: var(--success); background: var(--success-soft); border: 1px solid #cfe8db; border-radius: 50%; font-size: 9px; font-weight: 800; }
.line-admin-unavailable strong { color: var(--muted); }
.line-admin-assign-form { display: grid; grid-template-columns: minmax(170px, 1fr) auto; gap: 8px; align-items: center; }
.line-admin-assign-form .select-compact { width: 100%; min-width: 0; }
.line-admin-assign-form .button { white-space: nowrap; }
.line-admin-assign-form select:disabled, .line-admin-assign-form button:disabled { cursor: not-allowed; opacity: .58; }
.line-admin-agent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.line-admin-agent-card { min-width: 0; padding: 15px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 9px 11px; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.line-admin-agent-card.is-full { background: #faf9f9; }
.line-admin-agent-card .user-avatar { width: 40px; height: 40px; }
.line-admin-agent-copy { min-width: 0; display: flex; flex-direction: column; }
.line-admin-agent-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.line-admin-agent-copy span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.line-admin-agent-card > b { color: var(--brand); font-size: 21px; line-height: 1; }
.line-admin-agent-card > b small { color: var(--muted); font-size: 10px; font-weight: 600; }
.line-admin-capacity { height: 5px; grid-column: 2 / -1; overflow: hidden; background: #eee9eb; border-radius: 999px; }
.line-admin-capacity i { height: 100%; display: block; background: linear-gradient(90deg, #9b001f, #cf4167); border-radius: inherit; }
.line-admin-agent-card.is-full .line-admin-capacity i { background: #a77b28; }

/* 管理端邮局联调只读状态 */
.heading-side .button { margin-bottom: 8px; }
.postal-panel { margin-bottom: 18px; }
.postal-table th { white-space: nowrap; }
.postal-table td { vertical-align: top; }
.postal-table strong { font-size: 12px; }
.postal-id-pair { color: #514a52; font-size: 10px; white-space: nowrap; }
.postal-counts { color: var(--muted); font-size: 10px; white-space: nowrap; }
.postal-counts b { color: var(--success); font-weight: 700; }
.postal-counts em { color: var(--danger); font-style: normal; font-weight: 700; }
.postal-error-text { max-width: 230px; margin-top: 4px; display: block; overflow: hidden; color: var(--danger); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.postal-bottom-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, .75fr); gap: 18px; align-items: start; }
.postal-failure-list { margin: 0; padding: 0; list-style: none; }
.postal-failure-list li { padding: 11px 0; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 9px; border-bottom: 1px solid #eee9ec; }
.postal-failure-list li:last-child { border-bottom: 0; }
.postal-failure-icon { width: 24px; height: 24px; display: grid; place-items: center; color: var(--danger); background: var(--danger-soft); border-radius: 50%; font-size: 11px; font-weight: 800; }
.postal-failure-list strong { font-size: 11px; }
.postal-failure-list p { margin: 1px 0 4px; color: var(--muted); font-size: 9px; }
.postal-failure-list div > span { display: block; color: #4f484f; font-size: 10px; overflow-wrap: anywhere; }
.postal-failure-list time { grid-column: 2; color: var(--muted); font-size: 9px; }
.postal-cli-tip, .postal-schema-notice { margin-bottom: 18px; padding: 14px 16px; display: flex; align-items: flex-start; gap: 12px; border-radius: var(--radius); }
.postal-cli-tip { color: #3f4852; background: var(--info-soft); border: 1px solid #cfe0ef; }
.postal-cli-tip > span { padding: 3px 8px; color: #fff; background: var(--info); border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.postal-cli-tip strong, .postal-schema-notice strong { display: block; font-size: 12px; }
.postal-cli-tip p, .postal-schema-notice p { margin: 2px 0 0; font-size: 10px; }
.postal-cli-tip code, .postal-schema-notice code { padding: 2px 5px; background: rgba(255,255,255,.72); border-radius: 3px; font-size: 10px; }
.postal-schema-notice { display: block; color: #714200; background: var(--warning-soft); border: 1px solid #efd6b6; }
.postal-schema-notice code { margin-top: 8px; display: inline-block; }

/* 时间线 */
.timeline { margin: 0; padding: 2px 0 2px 12px; list-style: none; }
.timeline-item { padding: 0 0 23px 28px; position: relative; border-left: 1px solid #d9cdd1; }
.timeline-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline-dot { width: 13px; height: 13px; position: absolute; left: -7px; top: 4px; border: 3px solid #fff; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 1px #bd7c8c; }
.timeline-head { display: flex; justify-content: space-between; gap: 12px; }
.timeline-head strong { font-size: 13px; }
.timeline-time { color: var(--muted); font-size: 10px; white-space: nowrap; }
.timeline-status { margin-top: 3px; color: var(--muted); font-size: 11px; }
.timeline-note { margin-top: 7px; padding: 8px 10px; color: #5b555c; background: #f7f5f6; border-radius: 4px; font-size: 11px; white-space: pre-wrap; }

/* 客户查询 */
.search-hero { margin-bottom: 20px; padding: 30px; color: #fff; background: linear-gradient(115deg, #700017, #a3002a); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.search-hero h1 { margin: 0 0 6px; font-size: 25px; }
.search-hero p { margin: 0 0 20px; color: rgba(255,255,255,.78); }
.search-form { display: flex; gap: 9px; }
.search-form .search-input { min-height: 48px; border-color: transparent; }
.search-form .button { min-width: 130px; box-shadow: none; color: var(--brand); background: #fff; border-color: #fff; }
.customer-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 24px; }
.customer-name { margin: 0 0 4px; font-size: 21px; }
.customer-code { color: var(--brand); font-family: ui-monospace, monospace; font-weight: 800; overflow-wrap: anywhere; }
.customer-actions { min-width: 215px; padding-left: 23px; border-left: 1px solid var(--line); }
.customer-actions h3 { margin: 0 0 10px; font-size: 13px; }
.customer-actions .button { width: 100%; margin-top: 8px; }

/* 提示 */
.toast-region { width: min(390px, calc(100% - 30px)); position: fixed; right: 18px; bottom: 18px; z-index: 100; display: grid; gap: 9px; }
.toast { padding: 13px 15px; display: flex; gap: 10px; align-items: flex-start; color: #fff; background: #363139; border-left: 5px solid #9f969d; border-radius: 5px; box-shadow: 0 12px 30px rgba(0,0,0,.25); animation: toast-in .2s ease; }
.toast.success { border-left-color: #5bd291; }
.toast.error { border-left-color: #ff6a82; }
.toast strong { display: block; font-size: 12px; }
.toast span { color: rgba(255,255,255,.82); font-size: 11px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
.error-panel { min-height: 250px; padding: 40px; display: grid; place-content: center; justify-items: center; text-align: center; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--danger); border-radius: var(--radius); }
.error-panel strong { margin-bottom: 5px; font-size: 18px; }
.error-panel p { margin: 0 0 15px; color: var(--muted); }

/* 登录 */
.login-page { background: #f3f1f2; }
.login-header { width: min(1160px, calc(100% - 40px)); height: 88px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.secure-caption { color: var(--muted); font-size: 12px; }
.secure-caption span { color: var(--success); }
.login-main { min-height: calc(100vh - 145px); padding: 34px max(28px, calc((100vw - 1160px) / 2)) 52px; display: grid; grid-template-columns: minmax(520px, 1.35fr) minmax(350px, .78fr); gap: 78px; align-items: center; position: relative; background: radial-gradient(circle at 18% 36%, rgba(255,255,255,.98) 0 10%, transparent 34%), linear-gradient(112deg, #fbfafb 0%, #f6f1f3 58%, #eee7e9 100%); overflow: hidden; perspective: 1500px; }
.login-main::before { content: ""; width: 590px; height: 590px; position: absolute; left: -285px; bottom: -390px; border: 85px solid rgba(151,0,35,.04); border-radius: 50%; }
.login-main::after { content: ""; width: 260px; height: 260px; position: absolute; left: 50%; top: -205px; border: 54px solid rgba(151,0,35,.035); border-radius: 50%; }
.login-intro, .login-card { position: relative; z-index: 1; }
.login-intro { width: min(100%, 650px); min-height: 520px; display: flex; flex-direction: column; justify-content: center; perspective: 1100px; }
.login-intro-copy { position: relative; z-index: 8; padding-left: 4px; }
.login-intro h1 { margin: 6px 0 7px; color: #32292e; font-size: clamp(38px, 4vw, 56px); line-height: 1.16; letter-spacing: .075em; }
.login-lead { margin: 0; color: var(--muted); font-size: 14px; letter-spacing: .16em; }

/* 登录页抽象立体装饰 */
.deco-scene { width: 590px; height: 350px; margin: -8px 0 0 3px; position: relative; transform-style: preserve-3d; transform: rotateX(2deg) rotateY(-4deg); }
.deco-halo { width: 310px; height: 310px; position: absolute; left: 102px; top: 18px; border: 1px solid rgba(151,0,35,.12); border-radius: 50%; transform: translateZ(-50px) rotateX(68deg); box-shadow: 0 0 0 38px rgba(151,0,35,.022), 0 0 0 78px rgba(151,0,35,.018); }
.deco-grid { width: 470px; height: 245px; position: absolute; left: 38px; bottom: -12px; opacity: .42; background-image: linear-gradient(rgba(137,99,111,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(137,99,111,.16) 1px, transparent 1px); background-size: 34px 34px; transform-origin: center bottom; transform: rotateX(66deg) translateZ(-48px); -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%); }
.deco-panel { position: absolute; overflow: hidden; background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 28px 50px rgba(74,32,45,.16), inset 0 0 0 1px rgba(151,0,35,.04); transform-style: preserve-3d; backdrop-filter: blur(7px); }
.deco-panel-back { width: 280px; height: 168px; left: 228px; top: 72px; padding: 20px; border-radius: 18px; transform: translateZ(-45px) rotateY(-10deg) rotateZ(5deg); opacity: .73; }
.deco-panel-back .deco-dot { width: 7px; height: 7px; margin-right: 5px; display: inline-block; background: #d8c8ce; border-radius: 50%; }
.deco-panel-back i { width: 76%; height: 8px; margin-top: 22px; display: block; background: linear-gradient(90deg, #eadfe2, rgba(234,223,226,.2)); border-radius: 10px; }
.deco-panel-back i:nth-of-type(2) { width: 55%; margin-top: 12px; }
.deco-panel-back i:nth-of-type(3) { width: 66%; margin-top: 29px; background: linear-gradient(90deg, rgba(151,0,35,.18), rgba(151,0,35,.025)); }
.deco-panel-main { width: 300px; height: 190px; left: 102px; top: 78px; border-radius: 20px; transform: translateZ(52px) rotateY(8deg) rotateZ(-4deg); animation: deco-panel-float 6.5s ease-in-out infinite; }
.deco-panel-top { height: 38px; padding: 0 16px; display: flex; align-items: center; gap: 6px; background: linear-gradient(90deg, #84001b, #b40035); }
.deco-panel-top span { width: 6px; height: 6px; display: block; border-radius: 50%; background: rgba(255,255,255,.48); }
.deco-panel-body { height: calc(100% - 38px); padding: 25px 23px; position: relative; }
.deco-emblem { width: 50px; height: 50px; display: grid; place-items: center; float: left; margin-right: 16px; color: #fff; background: linear-gradient(145deg, #b80034, #760017); border-radius: 5px 17px 5px 17px; box-shadow: 0 10px 20px rgba(126,0,29,.2); font: 800 16px/1 Arial, sans-serif; }
.deco-line { width: 42%; height: 7px; margin: 10px 0; display: block; overflow: hidden; background: #e9dfe2; border-radius: 8px; }
.deco-line-wide { width: 58%; padding-top: 2px; background: #cbb9bf; }
.deco-chip { width: 94px; height: 27px; position: absolute; left: 23px; bottom: 22px; background: linear-gradient(90deg, #f5e4e9, #fff); border: 1px solid #edd4dc; border-radius: 16px; }
.deco-cube { width: 78px; height: 78px; position: absolute; left: 31px; top: 149px; transform-style: preserve-3d; transform: translateZ(95px) rotateX(-20deg) rotateY(35deg) rotateZ(-7deg); animation: deco-cube-float 7s ease-in-out infinite; }
.deco-cube span { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.7); }
.deco-cube span:nth-child(1) { background: linear-gradient(145deg, #bd0036, #87001c); transform: translateZ(39px); box-shadow: 0 18px 30px rgba(116,0,24,.2); }
.deco-cube span:nth-child(2) { background: #6f0017; transform: rotateY(90deg) translateZ(39px); }
.deco-cube span:nth-child(3) { background: #df6a88; transform: rotateX(90deg) translateZ(39px); }
.deco-orb { width: 92px; height: 92px; position: absolute; right: 42px; top: 34px; border-radius: 50%; background: radial-gradient(circle at 31% 27%, #fff 0 4%, #f9b6c7 8%, #bd1647 36%, #720018 75%, #4c0010 100%); box-shadow: inset -16px -18px 28px rgba(46,0,12,.26), 0 24px 38px rgba(86,0,19,.2); transform: translateZ(88px); animation: deco-orb-float 5.7s ease-in-out infinite; }
.deco-orb span { width: 126px; height: 35px; position: absolute; left: -18px; top: 28px; border: 4px solid rgba(173,0,44,.24); border-radius: 50%; transform: rotateX(68deg) rotateZ(-17deg); }
.deco-tile { width: 72px; height: 72px; position: absolute; right: 75px; bottom: 20px; display: grid; place-items: center; color: #a3002b; background: rgba(255,255,255,.9); border: 1px solid #eadde1; border-radius: 17px; box-shadow: 0 19px 35px rgba(74,32,45,.14); transform: translateZ(72px) rotateY(-13deg) rotateZ(10deg); animation: deco-tile-float 6.8s ease-in-out infinite; }
.deco-tile span { font-size: 19px; transform: rotateZ(-10deg); }
.deco-shadow { width: 350px; height: 54px; position: absolute; left: 84px; bottom: 2px; background: radial-gradient(ellipse, rgba(75,34,46,.21), transparent 68%); filter: blur(7px); transform: translateZ(-65px) rotateX(68deg); }
@keyframes deco-panel-float { 0%, 100% { transform: translateZ(52px) rotateY(8deg) rotateZ(-4deg) translateY(0); } 50% { transform: translateZ(66px) rotateY(8deg) rotateZ(-3deg) translateY(-9px); } }
@keyframes deco-cube-float { 0%, 100% { transform: translateZ(95px) rotateX(-20deg) rotateY(35deg) rotateZ(-7deg) translateY(0); } 50% { transform: translateZ(105px) rotateX(-16deg) rotateY(43deg) rotateZ(-3deg) translateY(-12px); } }
@keyframes deco-orb-float { 0%, 100% { transform: translateZ(88px) translateY(0); } 50% { transform: translateZ(101px) translateY(-13px); } }
@keyframes deco-tile-float { 0%, 100% { transform: translateZ(72px) rotateY(-13deg) rotateZ(10deg) translateY(0); } 50% { transform: translateZ(82px) rotateY(-9deg) rotateZ(7deg) translateY(-10px); } }

.login-card { padding: 34px; background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.95); border-top: 5px solid var(--brand); border-radius: 12px; box-shadow: -10px 22px 48px rgba(61,29,40,.16), 16px 28px 60px rgba(61,29,40,.1); transform: rotateY(-2.2deg) translateZ(18px); transform-origin: right center; transition: transform .35s ease, box-shadow .35s ease; }
.login-card:hover, .login-card:focus-within { transform: rotateY(-.4deg) translateZ(24px) translateY(-2px); box-shadow: -8px 28px 58px rgba(61,29,40,.18), 18px 34px 70px rgba(61,29,40,.1); }
.login-card-head { margin-bottom: 25px; }
.login-card-head h2 { margin: 5px 0 2px; font-size: 25px; }
.login-card-head > p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.input-with-icon { position: relative; display: block; }
.input-with-icon input { height: 47px; padding-left: 43px; }
.field-icon { width: 42px; position: absolute; left: 0; top: 0; bottom: 0; display: grid; place-items: center; z-index: 1; color: #8a7e84; font-size: 11px; }
.login-help { margin: 20px 0 0; padding-top: 18px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; text-align: center; }
.login-footer, .site-footer { color: #746d75; background: #fff; border-top: 1px solid var(--line); font-size: 11px; }
.login-footer { min-height: 53px; display: grid; place-items: center; }
.site-footer { min-height: 75px; padding: 0 max(20px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer div { display: flex; flex-direction: column; }
.site-footer strong { color: var(--brand-dark); font-size: 12px; }

@media (max-width: 1100px) and (min-width: 901px) {
  .line-desk-layout { grid-template-columns: 224px minmax(350px, 1fr) 348px; }
  .line-customer-summary-scroll, .line-customer-edit-scroll { padding-inline: 10px; }
  .line-customer-summary-grid { column-gap: 14px; }
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid, .ticket-layout { grid-template-columns: 1fr; }
  .nav-inner a { min-width: 0; flex: 1; padding: 0 12px; }
  .login-main { grid-template-columns: 1fr 390px; gap: 35px; }
  .login-intro h1 { font-size: 36px; }
  .line-chat-layout, .ops-main-grid, .postal-bottom-grid { grid-template-columns: 1fr; }
  #app.line-desk-shell { width: calc(100% - 28px); }
  .line-desk-layout { height: auto; grid-template-columns: 1fr; overflow: hidden; }
  .line-desk-layout > * { height: auto; }
  .line-conversation-panel { height: min(360px, calc(100vh - 160px)); border-right: 0; border-bottom: 1px solid var(--line); }
  .line-chat-pane { height: min(620px, calc(100vh - 150px)); }
  .line-profile-column { height: min(620px, calc(100vh - 120px)); border-top: 1px solid var(--line); border-left: 0; }
  .l2-queue-drawer { width: auto; position: fixed; inset: 80px 14px 14px; border-radius: 10px; }
  .ops-record-grid, .ops-agent-grid { grid-template-columns: 1fr 1fr; }
  .line-admin-agent-grid { grid-template-columns: 1fr 1fr; }
  .deco-scene { margin-top: -16px; transform: scale(.72) rotateX(2deg) rotateY(-4deg); transform-origin: left center; }
}

@media (max-width: 700px) {
  .utility-bar { display: none; }
  .header-main { width: calc(100% - 28px); height: 70px; }
  .brand-mark { width: 40px; height: 40px; font-size: 16px; }
  .brand-copy strong { font-size: 17px; }
  .brand-copy small { display: none; }
  .user-block { display: none; }
  .header-actions { gap: 8px; }
  .mobile-only { display: inline-flex; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .nav-inner { display: grid; grid-template-columns: 1fr 1fr; }
  .nav-inner a { min-height: 48px; border-bottom: 1px solid rgba(255,255,255,.13); }
  .page-shell { width: calc(100% - 28px); padding-top: 20px; }
  .page-heading { align-items: flex-start; }
  .page-heading h1 { font-size: 23px; }
  .heading-side { display: none; }
  .welcome-banner { padding: 22px; }
  .welcome-banner h1 { font-size: 21px; }
  .banner-date { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { min-height: 126px; padding: 16px; }
  .stat-value { font-size: 28px; }
  .tabs { overflow: hidden; }
  .tab-button { min-width: 0; padding-inline: 8px; gap: 6px; }
  .queue-toolbar { align-items: flex-start; flex-direction: column; }
  .ticket-hero-top, .ticket-code-row { align-items: flex-start; flex-direction: column; }
  .ticket-hero-meta { width: 100%; align-items: stretch; flex-direction: column; }
  .ticket-back-button { width: 100%; min-height: 48px; }
  .form-grid { grid-template-columns: 1fr; }
  .customer-card { grid-template-columns: 1fr; }
  .customer-actions { min-width: 0; padding: 18px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .login-header { width: calc(100% - 30px); height: 76px; }
  .secure-caption { display: none; }
  .login-main { min-height: calc(100vh - 133px); padding: 34px 20px 50px; display: block; }
  .login-intro { display: none; }
  .login-card, .login-card:hover, .login-card:focus-within { max-width: 430px; margin: 0 auto; padding: 27px 23px; transform: none; }
  .site-footer { padding: 18px 20px; align-items: flex-start; flex-direction: column; gap: 4px; }
  .line-chat-layout { min-height: 0; }
  .line-desk-topbar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .line-desk-topbar h1 { font-size: 20px; }
  .l2-queue-tabs { width: 100%; }
  .l2-queue-tab { flex: 1; justify-content: center; }
  .line-customer-binding { max-width: none; }
  .line-sub-switcher { grid-template-columns: 1fr 1fr; }
  .l2-queue-tabs { gap: 5px; }
  .l2-queue-tab { padding-inline: 7px; gap: 5px; }
  .line-customer-fields { grid-template-columns: 1fr; }
  .line-desk-field-wide { grid-column: auto; }
  .line-message-stream { padding: 15px; }
  .line-message { max-width: 88%; }
  .ops-record-grid, .ops-agent-grid { grid-template-columns: 1fr; }
  .line-admin-heading { align-items: stretch; flex-direction: column; }
  .line-admin-heading-actions { width: 100%; }
  .line-admin-heading-actions .button { flex: 1; }
  .line-admin-agent-grid { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  .stats-grid { grid-template-columns: 1fr; }
  .search-hero { padding: 22px 18px; }
  .search-form { flex-direction: column; }
  .search-form .button { width: 100%; }
  .ticket-code strong { font-size: 19px; }
  .content-card-pad, .panel-body { padding: 15px; }
}

@media (max-width: 700px) {
  .l1-queue-search { grid-template-columns: 1fr; gap: 7px; }
  .l1-queue-search .search-input { padding-right: 12px; }
  .l1-search-hint { display: none; }
  .l1-search-results { right: 10px; left: 10px; }
  .l1-search-result { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .l1-search-result > span:last-child { align-items: flex-start; }
}

/* 一 / 二 / 三线独立工作台视觉分区 */
.workspace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0 28px;
}
.workspace-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.workspace-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.workspace-badge {
  display: inline-grid; place-items: center;
  min-width: 42px; height: 28px; padding: 0 10px;
  border-radius: 999px; color: #fff; font-weight: 700; font-size: 12px;
}
.workspace-card h2 { margin: 12px 0 8px; font-size: 20px; }
.workspace-card p { margin: 0 0 12px; color: var(--muted); }
.workspace-modules { margin: 0 0 16px; padding-left: 18px; color: #3b3640; }
.workspace-modules li { margin: 4px 0; }
.workspace-card strong { color: var(--brand); }
.workspace-card-l1 { border-top: 4px solid #0b5cab; }
.workspace-card-l1 .workspace-badge { background: #0b5cab; }
.workspace-card-l2 { border-top: 4px solid #0f7a4a; }
.workspace-card-l2 .workspace-badge { background: #0f7a4a; }
.workspace-card-l3 { border-top: 4px solid #8f001d; }
.workspace-card-l3 .workspace-badge { background: #8f001d; }

.brandline-l1 { background: linear-gradient(90deg, #074a8a, #1d7ed8 50%, #4aa3ef); }
.brandline-l2 { background: linear-gradient(90deg, #0a5c38, #14965b 50%, #3fc987); }
.brandline-l3 { background: linear-gradient(90deg, #560011, #8f001d 50%, #cf003d); }
.brand-mark-l1 { background: linear-gradient(145deg, #0b5cab, #1d7ed8) !important; }
.brand-mark-l2 { background: linear-gradient(145deg, #0f7a4a, #19a564) !important; }
.brand-mark-l3 { background: linear-gradient(145deg, #8f001d, #cf003d) !important; }
.nav-l1 a.active, .workspace-l1 .main-nav a.active { box-shadow: inset 0 -3px 0 #0b5cab; }
.nav-l2 a.active, .workspace-l2 .main-nav a.active { box-shadow: inset 0 -3px 0 #0f7a4a; }
.nav-l3 a.active, .workspace-l3 .main-nav a.active { box-shadow: inset 0 -3px 0 #8f001d; }
.welcome-l1 { border-left: 6px solid #0b5cab; }
.welcome-l2 { border-left: 6px solid #0f7a4a; }
.welcome-l3 { border-left: 6px solid #8f001d; }
.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 0 8px;
}
.module-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px 12px;
}
.module-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .04em;
  color: #fff;
  background: #5b5560;
  border-radius: 999px;
  padding: 2px 8px;
}
.workspace-l1 .module-tag { background: #0b5cab; }
.workspace-l2 .module-tag { background: #0f7a4a; }
.workspace-l3 .module-tag { background: #8f001d; }
.module-card h3 { margin: 10px 0 6px; font-size: 15px; }
.module-card p { margin: 0; color: var(--muted); font-size: 13px; }
.compose-panel { margin: 8px 0 18px; }
.compose-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.compose-steps li { display: flex; gap: 14px; align-items: flex-start; }
.step-no {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: var(--brand); font-weight: 700; flex: 0 0 auto;
}
.compose-note {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--brand-soft);
  border: 1px solid #f0d0d8;
}
.footer-l1, .footer-l2, .footer-l3 { font-size: 12px; }

@media (max-width: 960px) {
  .workspace-grid, .module-grid { grid-template-columns: 1fr; }
}

/* 2026-08-08 客服台视觉系统：Freshdesk 清晰度 + Intercom 对话优先 + Linear 间距 */
body {
  background:
    radial-gradient(circle at 12% -20%, rgba(191, 0, 0, .035), transparent 28rem),
    var(--canvas);
  letter-spacing: .005em;
}

/* 顶栏：保留楽天红品牌锚，压缩视觉高度并增强操作状态 */
.brandline, .login-brandline { height: 3px; }
.site-header {
  position: relative;
  z-index: 30;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .07);
}
.utility-bar { height: 27px; color: #7b8798; }
.header-main { height: 70px; }
.brand { gap: 12px; }
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px 15px 10px 15px;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .14), 0 7px 18px rgba(143, 0, 29, .14);
}
.brand-copy strong { color: #4d0011; font-size: 20px; letter-spacing: .02em; }
.brand-copy small { margin-top: 4px; color: #8390a2; letter-spacing: .14em; }
.header-actions { gap: 14px; }
.user-block { padding-left: 18px; border-color: var(--line); }
.user-avatar { color: var(--brand-dark); background: var(--brand-soft); box-shadow: inset 0 0 0 1px rgba(191, 0, 0, .06); }
.text-button, .icon-button {
  min-height: 36px;
  padding: 7px 13px;
  border-color: var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: color .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.text-button:hover, .icon-button:hover {
  color: var(--brand);
  border-color: #e3a9b4;
  background: #fff8f9;
  box-shadow: 0 5px 14px rgba(15, 23, 42, .07);
  transform: translateY(-1px);
}
.main-nav {
  background: linear-gradient(90deg, #8f001d 0%, #b00025 52%, #9b001f 100%);
  border-bottom: 0;
  box-shadow: 0 5px 18px rgba(92, 0, 20, .12);
}
.nav-inner { min-height: 45px; }
.nav-inner a { min-width: 138px; padding-inline: 20px; border-color: rgba(255, 255, 255, .12); font-size: 13px; }
.nav-inner a:hover { background: rgba(255, 255, 255, .1); }
.nav-inner a.active { background: rgba(65, 0, 14, .3); }
.nav-inner a.active::after { left: 18px; right: 18px; height: 3px; border-radius: 3px 3px 0 0; }
.nav-icon { width: 21px; height: 21px; border-color: rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .06); }

/* 页面、标题和通用卡片 */
.page-shell { width: min(1240px, calc(100% - 40px)); padding-top: 26px; }
.breadcrumbs { margin-bottom: 14px; }
.breadcrumbs a, .section-link { text-underline-offset: 3px; }
.page-heading { margin-bottom: 22px; align-items: center; }
.page-heading h1 { color: #111827; font-size: 27px; letter-spacing: -.015em; }
.page-heading p { margin-top: 5px; color: var(--muted); }
.heading-mark { padding-left: 14px; border-left-width: 4px; border-radius: 2px; }
.heading-side {
  padding: 8px 12px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.content-card, .panel, .ticket-hero, .queue-toolbar {
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.content-card, .panel { overflow: hidden; }
.panel-header {
  min-height: 60px;
  padding: 15px 18px;
  background: linear-gradient(180deg, #fff, #fcfdff);
  border-color: var(--line);
}
.panel-header h2 { color: #172033; letter-spacing: -.01em; }
.panel-header small { color: #7c899a; }
.panel-body { padding: 20px; }

/* 统计卡：弱边框、轻阴影、明确 hover，不再依赖厚重色块 */
.stats-grid { gap: 16px; margin-bottom: 24px; }
.stat-card {
  min-height: 132px;
  padding: 19px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.stat-card::after {
  content: "";
  width: 76px;
  height: 76px;
  position: absolute;
  right: -30px;
  bottom: -34px;
  background: radial-gradient(circle, rgba(191, 0, 0, .07), transparent 70%);
  border-radius: 50%;
}
.stat-card:hover { transform: translateY(-2px); border-color: #d8e0e9; box-shadow: 0 3px 8px rgba(15, 23, 42, .07), 0 16px 32px rgba(15, 23, 42, .055); }
.stat-card.warning::after { background: radial-gradient(circle, rgba(161, 92, 8, .1), transparent 70%); }
.stat-label { color: #66758a; font-size: 12px; }
.stat-badge { width: 32px; height: 32px; border-radius: 10px; }
.stat-value { margin-top: 10px; color: #111827; font-size: 32px; letter-spacing: -.03em; }

/* 工单 Tab、工具栏、表格 */
.tabs {
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  gap: 4px;
  border-color: var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.tab-button {
  min-width: 150px;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  color: #556277;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}
.tab-button:hover { color: var(--brand); background: #fff5f7; }
.tab-button.active { color: var(--brand-dark); background: #fff1f3; box-shadow: inset 0 0 0 1px #f2c9d1; }
.tab-count { min-width: 24px; color: #64748b; background: #eef2f6; }
.tab-button.active .tab-count { color: #fff; background: var(--brand); }
.queue-toolbar { padding: 12px 15px; background: rgba(255, 255, 255, .85); }
.select-compact { border-color: var(--line-strong); border-radius: var(--radius-sm); background-color: #fff; outline: 0; }
.select-compact:focus { border-color: #c9a0a9; box-shadow: 0 0 0 3px rgba(191, 0, 0, .07); }
.data-table th {
  padding: 12px 14px;
  color: #526075;
  background: #f8fafc;
  border-top: 0;
  border-bottom-color: var(--line);
  font-size: 11px;
  letter-spacing: .035em;
  text-transform: none;
}
.data-table td { padding: 14px; border-color: #edf1f5; }
.data-table tbody tr { transition: background .14s ease, box-shadow .14s ease; }
.data-table tbody tr:hover { background: #fafcfe; box-shadow: inset 3px 0 0 rgba(15, 118, 110, .32); }
.table-link { color: #9f001f; text-underline-offset: 3px; }
.badge { min-height: 24px; padding: 3px 9px; font-size: 11px; }
.badge::before { width: 6px; height: 6px; }
.empty-state { min-height: 230px; background: linear-gradient(145deg, #fff, #fbfcfe); }
.empty-state-icon { border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(191, 0, 0, .07); }

/* 表单和按钮统一交互 */
.field input, .field textarea, .field select, .search-input,
.line-desk-field input, .line-desk-field textarea, .line-composer textarea {
  border-color: var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .025);
}
.button {
  min-height: 40px;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 5px 13px rgba(15, 23, 42, .09); }
.button:active { transform: translateY(0); box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }
.button:focus-visible, .text-button:focus-visible, .icon-button:focus-visible,
.tab-button:focus-visible, .l2-queue-tab:focus-visible, .line-sub-tab:focus-visible, .line-conversation:focus-visible {
  outline: 3px solid rgba(37, 99, 167, .22);
  outline-offset: 2px;
}
.button-primary { background: linear-gradient(180deg, #c50027, #a00020); border-color: #95001d; box-shadow: 0 3px 8px rgba(143, 0, 29, .18); }
.button-primary:hover { background: linear-gradient(180deg, #d0002a, #ad0023); box-shadow: 0 7px 16px rgba(143, 0, 29, .2); }
.button-secondary { border-color: #e2aab5; }
.button-neutral { color: #475569; background: #fff; border-color: var(--line-strong); }
.button-neutral:hover { color: #243047; background: #f8fafc; border-color: #bdc8d5; }
.button-small { min-height: 34px; padding-inline: 12px; }

/* 工单详情与动作区 */
.ticket-hero { border-top-width: 3px; }
.ticket-hero-top { padding: 18px 21px; }
.ticket-code { background: linear-gradient(100deg, #fff 0%, #fff8fa 100%); }
.ticket-layout { gap: 20px; }
.info-row { border-color: #e9eef3; }
.action-box { border-color: var(--line); border-radius: 10px; }
.action-box > summary { padding: 14px 16px; background: #f8fafc; }
.action-box[open] > summary { color: var(--brand-dark); background: #fff8fa; }
.action-hint { border-left-color: #94a3b8; border-radius: 0 8px 8px 0; background: #f8fafc; }

/* L2：真正的会话优先三栏 */
#app.line-desk-shell { width: min(1720px, calc(100% - 32px)); padding-top: 13px; padding-bottom: 16px; }
.line-desk-topbar { min-height: 49px; margin-bottom: 10px; }
.line-desk-title { min-width: 190px; display: flex; align-items: center; gap: 12px; }
.line-desk-title-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #159165, #0f766e);
  border-radius: 10px;
  box-shadow: 0 7px 16px rgba(15, 118, 110, .18);
  font-size: 12px;
  font-weight: 800;
}
.line-desk-title-copy { display: flex; flex-direction: column; }
.line-desk-kicker { color: #718096; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.line-desk-topbar h1 { color: #172033; font-size: 20px; letter-spacing: -.01em; }
.line-desk-live { display: inline-flex; align-items: center; gap: 6px; color: #0f766e; font-size: 10px; font-weight: 750; }
.line-desk-live i { width: 7px; height: 7px; background: #10b981; border-radius: 50%; box-shadow: 0 0 0 3px #dff8ed; }
.line-desk-layout {
  height: calc(100vh - 214px);
  grid-template-columns: 304px minmax(460px, 1fr) 368px;
  background: #fff;
  border-color: #dce3ea;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .06), 0 20px 50px rgba(15, 23, 42, .07);
}
.line-conversation-panel { background: #f8fafc; border-color: var(--line); }
.line-conversation-panel > header { min-height: 62px; padding: 12px 14px; }
.line-conversation-heading { gap: 9px; }
.line-conversation-heading strong { color: #182235; font-size: 15px; }
.line-unread {
  min-width: 24px;
  height: 24px;
  padding-inline: 7px;
  background: var(--unread);
  box-shadow: 0 3px 9px rgba(225, 29, 72, .23);
  font-size: 10px;
}
.line-unread[hidden] { display: none !important; }
.line-total-unread { min-width: 27px; height: 27px; font-size: 10px; }
.line-sub-switcher { padding: 10px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.line-sub-tab {
  min-height: 34px;
  padding: 6px 8px;
  color: #526075;
  background: #f8fafc;
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
}
.line-sub-tab > span:nth-child(2) { font-size: 10.5px; }
.line-sub-tab b { min-width: 19px; height: 19px; background: var(--unread); }
.line-sub-tab:hover { background: #fff; border-color: #cbd5df; }
.line-sub-tab.active { color: #0f6b61; background: #ecfdf5; border-color: #8dd3bd; box-shadow: 0 2px 7px rgba(15, 118, 110, .08); }
.line-conversation-list { padding: 5px 0 10px; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.line-conversation {
  min-height: 84px;
  padding: 11px 13px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  border-color: #edf1f5;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.line-conversation:hover { z-index: 1; background: #fff; box-shadow: 0 6px 18px rgba(15, 23, 42, .055); }
.line-conversation.active { background: #effaf6; box-shadow: inset 4px 0 0 #0f766e; }
.line-avatar { width: 42px; height: 42px; background: linear-gradient(145deg, #1ea873, #0f766e); box-shadow: 0 4px 10px rgba(15, 118, 110, .16); }
.line-conversation-top strong { color: #182235; font-size: 12.5px; }
.line-conversation-top time { color: #8995a5; font-size: 9px; }
.line-preview { color: #66758a; font-size: 10.5px; }
.line-binding-state { background: #eef2f6; }
.line-binding-state.is-bound { color: #0f6b61; background: #dff7ed; }

.line-chat-pane {
  background:
    radial-gradient(circle at 50% 36%, rgba(15, 118, 110, .035), transparent 25rem),
    #f7faf9;
}
.line-chat-header { min-height: 64px; padding: 10px 17px; border-color: var(--line); box-shadow: 0 2px 8px rgba(15, 23, 42, .025); }
.line-chat-contact { min-width: 0; display: flex; align-items: center; gap: 11px; }
.line-chat-contact-copy { min-width: 0; display: flex; flex-direction: column; }
.line-chat-contact strong { color: #172033; font-size: 14px; }
.line-chat-contact small { color: #718096; }
.line-message-stream { padding: 24px clamp(22px, 3.5vw, 50px); gap: 12px; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.line-message { max-width: min(76%, 680px); }
.line-bubble {
  padding: 10px 14px;
  color: #243047;
  background: #fff;
  border-color: #e0e7ee;
  border-radius: 5px 16px 16px 16px;
  box-shadow: 0 2px 7px rgba(15, 23, 42, .055);
}
.line-message.out .line-bubble {
  color: #164e46;
  background: #dcf7ed;
  border-color: #b9ead9;
  border-radius: 16px 5px 16px 16px;
  box-shadow: 0 2px 7px rgba(15, 118, 110, .08);
}
.line-message.is-recalled .line-bubble {
  color: #87909d;
  background: #eef1f3;
  border-color: #dce1e5;
  box-shadow: none;
  text-decoration: line-through;
}
.line-message-meta { color: #8793a3; font-size: 9.5px; }
.line-system-message span { color: #778397; background: rgba(255, 255, 255, .9); border: 1px solid #edf1f5; }
.line-composer { padding: 12px 15px; border-color: var(--line); box-shadow: 0 -8px 24px rgba(15, 23, 42, .035); }
.line-composer textarea { min-height: 66px; padding: 11px 13px; background: #fcfdff; }
.line-composer textarea:focus { background: #fff; }
.line-composer > div { margin-top: 8px; }
.line-composer > div > span { color: #8290a2; font-size: 10px; }
.line-chat-empty, .line-customer-empty, .line-list-empty { position: relative; background: linear-gradient(145deg, rgba(255, 255, 255, .75), rgba(248, 250, 252, .82)); }
.line-chat-empty::before, .line-customer-empty::before, .line-list-empty::before {
  content: "•••";
  width: 48px;
  height: 42px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  color: #8a9aaa;
  background: #fff;
  border: 1px solid #dfe6ed;
  border-radius: 16px 16px 16px 5px;
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  letter-spacing: 2px;
}
.line-customer-empty::before { content: "客"; color: #0f766e; border-radius: 14px; font-weight: 800; letter-spacing: 0; }
.line-list-empty::before { content: "线"; color: var(--brand); border-radius: 14px; font-weight: 800; letter-spacing: 0; }
.line-chat-empty strong, .line-customer-empty strong, .line-list-empty strong { color: #526075; font-size: 13px; }

/* 右资料栏：标题、检索、信息组清楚分层 */
.line-profile-column { background: #fbfcfe; border-color: var(--line); }
.line-desk-code-form { min-height: 62px; padding: 12px 13px; background: #fff; border-color: var(--line); }
.line-desk-code-form .search-input { min-height: 38px; background: #f8fafc; }
.line-customer-pane { background: #fbfcfe; }
.line-customer-header { min-height: 92px; padding: 16px 17px; background: linear-gradient(120deg, #fff 0%, #fff8fa 100%); border-color: var(--line); }
.line-customer-header h2 { color: #172033; font-size: 21px; }
.line-customer-code { color: #9f001f; }
.line-customer-summary-scroll, .line-customer-edit-scroll { padding: 14px 13px 22px; }
.line-customer-summary-groups, .line-customer-edit-groups { gap: 13px; }
.line-customer-summary-group, .line-customer-edit-group {
  border-color: #e0e6ed;
  border-radius: 11px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .035), 0 7px 20px rgba(15, 23, 42, .025);
}
.line-customer-summary-group > h3, .line-customer-edit-group > h3 {
  padding: 10px 12px;
  color: #7f1028;
  background: #fff7f8;
  border-color: #f1e1e5;
  font-size: 12px;
}
.line-customer-summary-grid { padding-inline: 13px; column-gap: 18px; }
.line-summary-item { padding: 10px 0; border-color: #edf1f5; }
.line-summary-item dt { color: #718096; font-size: 11px; }
.line-summary-item dd { color: #172033; font-size: 14px; }
.line-summary-emphasis dd { color: #8f001d; font-size: 15px; }
.line-customer-summary-group.is-bound > h3 { color: #0f6b61; background: #effcf7; border-color: #d9f2e8; }
.line-customer-binding { color: #66758a; background: #eef2f6; }
.line-customer-binding.is-bound { color: #0f6b61; background: #dff7ed; }
.line-customer-actions, .line-customer-summary-actions { min-height: 62px; border-color: var(--line); box-shadow: 0 -6px 18px rgba(15, 23, 42, .035); }

/* L2 顶部工单胶囊和抽屉 */
.l2-queue-tabs { padding: 3px; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-sm); }
.l2-queue-tab { min-height: 34px; padding: 5px 7px 5px 11px; border: 0; border-radius: 9px; }
.l2-queue-tab:hover, .l2-queue-tab.active { color: #0f6b61; background: #ecfdf5; border-color: transparent; }
.l2-queue-tab b { min-width: 21px; height: 21px; }
.l2-queue-tab.active b { background: #0f766e; }
.l2-queue-drawer { width: min(680px, calc(100% - 304px)); border-color: #dce3ea; border-radius: 0 16px 16px 0; box-shadow: -22px 0 55px rgba(15, 23, 42, .16); }
.l2-queue-drawer > header { background: #fff; }

/* 管理列表、操作情况 */
.line-admin-sticky-note { border-color: #efd8a4; border-radius: var(--radius); box-shadow: 0 1px 2px rgba(15, 23, 42, .035); }
.line-admin-panel { border-radius: 14px; }
.line-admin-table { min-width: 1120px; }
.line-admin-table th { background: #f7f9fc; }
.line-admin-table td { padding-block: 16px; }
.line-admin-agent-card, .ops-agent-card {
  border-color: var(--line);
  border-radius: 11px;
  background: linear-gradient(145deg, #fff, #fbfcfe);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .035);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.line-admin-agent-card:hover, .ops-agent-card:hover { transform: translateY(-1px); border-color: #d5dee8; box-shadow: var(--shadow-sm); }
.line-admin-qr { min-width: 118px; }
.line-admin-qr img, .line-admin-qr-placeholder { border-radius: 9px; }
.line-admin-bound, .line-admin-assign-form { padding: 8px; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; }
.line-admin-mail-quota > i, .line-admin-capacity { background: #e9eef3; }
.ops-main-grid, .ops-record-grid { gap: 18px; }
.ops-event-list li, .ops-record-list li { border-color: #edf1f5; }
.ops-event-icon { border-radius: 9px; }

/* 一级/三级工作台保留区分色，但使用同一空间系统 */
.workspace-card, .module-card { border-color: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.workspace-card { padding: 21px; }
.workspace-card:hover { border-color: #d5dee8; }
.workspace-l1 .tab-button.active { color: #0b5cab; background: #eff6ff; box-shadow: inset 0 0 0 1px #bfdbfe; }
.workspace-l1 .tab-button.active .tab-count { background: #0b5cab; }
.workspace-l2 .tab-button.active { color: #0f766e; background: #ecfdf5; box-shadow: inset 0 0 0 1px #b7e6d5; }
.workspace-l2 .tab-button.active .tab-count { background: #0f766e; }

/* 响应：窄桌面维持三栏优先，平板与手机顺序堆叠 */
@media (max-width: 1280px) and (min-width: 901px) {
  .line-desk-layout { grid-template-columns: 252px minmax(390px, 1fr) 344px; }
  .line-desk-layout { height: calc(100vh - 214px); }
  .line-conversation { grid-template-columns: 38px minmax(0, 1fr) auto; padding-inline: 10px; }
  .line-avatar { width: 38px; height: 38px; }
  .line-customer-summary-scroll, .line-customer-edit-scroll { padding-inline: 10px; }
  .line-customer-summary-grid { column-gap: 14px; }
}

@media (max-width: 900px) {
  .line-desk-layout { height: auto; grid-template-columns: minmax(0, 1fr); overflow: hidden; border-radius: 14px; }
  .line-desk-layout > * { width: 100%; height: auto; }
  .line-conversation-panel { height: min(390px, calc(100vh - 150px)); }
  .line-chat-pane { height: min(650px, calc(100vh - 130px)); }
  .line-profile-column { height: min(680px, calc(100vh - 100px)); }
  .l2-queue-drawer { inset: 78px 12px 12px; width: auto; border-radius: 14px; }
}

@media (max-width: 700px) {
  .header-main { height: 67px; }
  .brand-mark { width: 40px; height: 40px; }
  .nav-inner { gap: 0; }
  .page-shell { padding-top: 18px; }
  .page-heading { margin-bottom: 18px; }
  .tabs { width: 100%; }
  .tab-button { min-width: 0; min-height: 42px; padding-inline: 7px; }
  #app.line-desk-shell { width: calc(100% - 20px); padding-top: 10px; }
  .line-desk-topbar { align-items: stretch; }
  .line-desk-title { min-width: 0; }
  .l2-queue-tabs { width: 100%; }
  .l2-queue-tab { flex: 1; justify-content: center; }
  .line-message-stream { padding: 18px 15px; }
  .line-message { max-width: 88%; }
  .line-customer-summary-scroll, .line-customer-edit-scroll { padding-inline: 10px; }
  .line-admin-heading-actions .button { min-height: 40px; }
}

@media (max-width: 440px) {
  .stats-grid { gap: 10px; }
  .stat-card { min-height: 116px; }
  .line-desk-title-icon { display: none; }
  .line-conversation-panel { height: 350px; }
  .line-chat-pane, .line-profile-column { height: 590px; }
}

/* 三线顶栏：仅工作台名 + 系统状态，无品牌方块 */
.site-header .brand-mark { display: none !important; }
.site-header .brand { gap: 0; }
.site-header .nav-icon { display: none !important; }
.utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* L1 锁定界面：短类型标识 + 手机可用的联系信息卡 */
.l1-type-strip {
  margin-bottom: 12px;
}
.l1-type-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid;
  border-radius: 10px;
}
.l1-type-banner strong { font-size: 14px; }
.l1-type-banner span { font-size: 12px; font-weight: 700; }
.l1-type-banner-urge { color: #075985; background: #f0f9ff; border-color: #bae6fd; }
.l1-type-banner-failed { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.l1-type-banner-line-return { color: #0b5cab; background: #eff6ff; border-color: #bfdbfe; }
.l1-contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 12px;
  margin-bottom: 10px;
}
.l1-contact-item,
.l1-completed-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
}
.l1-contact-item > span,
.l1-completed-contact > span {
  grid-column: 1 / -1;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}
.l1-contact-item strong,
.l1-completed-contact strong {
  min-width: 0;
  color: #0f172a;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.l1-contact-item strong.is-missing,
.l1-completed-contact strong.is-missing { color: #b45309; font-size: 15px; }
.l1-contact-item .button,
.l1-completed-contact .button { min-height: 40px; }
.l1-order-note { margin: 0 0 12px; color: #64748b; font-size: 13px; }
.l1-completed-contact { margin-bottom: 10px; }
@media (max-width: 720px) {
  .l1-type-banner { align-items: flex-start; flex-direction: column; gap: 2px; }
  .l1-contact-card { grid-template-columns: 1fr; }
}

.l1-phone-options { min-width: 0; }
.l1-latest-call-note {
  min-width: 0;
  max-width: 280px;
  color: #475569;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: normal;
}
.l1-latest-call-note-detail {
  max-width: none;
  padding: 11px 12px;
  grid-column: 1 / -1;
  border: 1px solid #dce3ea;
  border-radius: 10px;
  background: #f8fafc;
}
.l1-latest-call-note-detail span { color: #64748b; font-size: 12px; font-weight: 750; }
.l1-latest-call-note-detail p { margin: 4px 0 0; color: #1e293b; font-size: 14px; }
.l1-call-note-field { min-width: 0; }
.l1-call-note-field small { color: #64748b; font-size: 12px; font-weight: 500; }
.l1-call-note-field textarea { width: 100%; max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
.l1-phone-options,
.line-consent-options {
  min-width: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  border: 0;
}
.l1-phone-options legend,
.line-consent-options legend { margin-bottom: 2px; color: #475569; font-size: 13px; font-weight: 750; }
.l1-phone-option,
.line-consent-option {
  min-width: 0;
  min-height: 52px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-wrap: anywhere;
  border: 1px solid #dce3ea;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.l1-phone-option:has(input:checked),
.line-consent-option:has(input:checked) { color: #0b5cab; background: #eff6ff; border-color: #93c5fd; }
.l1-phone-option input,
.line-consent-option input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: #0b5cab; }
.l1-phone-option > span { min-width: 0; display: grid; gap: 2px; }
.l1-phone-option strong { font-size: 15px; letter-spacing: .02em; }
.l1-phone-option small { color: #64748b; font-size: 12px; }
.field-error { margin: 0; color: #b91c1c; font-size: 12px; font-weight: 700; }
.l1-phone-empty,
.l1-call-history-empty { padding: 10px 12px; color: #64748b; background: #f8fafc; border-radius: 8px; font-size: 13px; }
.l1-call-history { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.l1-call-history h3 { margin: 0 0 9px; color: #334155; font-size: 13px; }
.l1-call-history ol { margin: 0; padding: 0; display: grid; gap: 7px; list-style: none; }
.l1-call-history li { min-width: 0; padding: 9px 10px; display: flex; justify-content: space-between; gap: 12px; background: #f8fafc; border-radius: 8px; }
.l1-call-history li > div { min-width: 0; display: grid; gap: 2px; overflow-wrap: anywhere; }
.l1-call-history li span,
.l1-call-history time { color: #64748b; font-size: 12px; }

@media (max-width: 520px) {
  .l1-phone-option { width: 100%; min-height: 58px; padding: 11px; }
  .line-consent-option { min-height: 50px; }
  .l1-call-history li { align-items: flex-start; flex-direction: column; gap: 4px; }
  .line-customer-ticket-actions { align-items: stretch; flex-direction: column; }
  .line-customer-ticket-actions .button { width: 100%; margin-left: 0; }
  .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .tab-button { width: 100%; justify-content: space-between; }
}

/* 已完成订单只读详情 */
.completed-ticket-panel {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.completed-ticket-panel .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.completed-ticket-panel .panel-header h2 {
  margin: 0;
  font-size: 15px;
}
.completed-ticket-panel .panel-body {
  padding: 8px 14px 14px;
}

/* 详情页「状态操作」：大号按钮，与业务主操作同级可点 */
.state-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.state-actions > h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
}
.state-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.state-action-button {
  min-height: 44px;
  min-width: 7.5rem;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
}
.state-actions .button-secondary.state-action-button,
.state-actions .button-primary.state-action-button {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
@media (max-width: 720px) {
  .state-action-button {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
  }
}

/* 队列行：仅「办理」按钮进详情，不整行跳转 */
.table-link-static {
  color: var(--brand, #bf0d3e);
  font-weight: 700;
}
.queue-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.queue-row-actions .ticket-status-actions {
  display: inline-flex;
  gap: 6px;
}
.queue-row-actions .button-primary {
  min-width: 4.5rem;
}
.queue-banli-button {
  min-height: 40px;
  min-width: 5.5rem;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* L1/L3 详情状态操作：确保办理台同样大号 */
.ticket-layout .state-action-button {
  min-height: 44px;
  min-width: 7.5rem;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
}

/* L3 来电接待：受理编码载入后打开完整工单 */
.l3-reception-window {
  margin: 0 0 24px;
  padding: 22px;
  border: 1px solid #e7c8cf;
  border-top: 4px solid #8f001d;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff 0%, #fff9fa 100%);
  box-shadow: 0 12px 30px rgba(89, 0, 20, .08);
}
.l3-reception-intro {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.l3-reception-intro h2 { margin: 0; color: #520012; font-size: 24px; }
.l3-reception-intro p { margin: 4px 0 0; color: #6b5b60; font-size: 14px; }
.l3-reception-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: #8f001d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.l3-reception-code-form {
  padding: 18px;
  border: 1px solid #efd8dd;
  border-radius: 12px;
  background: #fff;
}
.l3-reception-code-form > label { display: block; margin-bottom: 9px; color: #35151d; font-size: 14px; font-weight: 800; }
.l3-reception-code-row { display: grid; grid-template-columns: minmax(220px, 420px) auto; gap: 10px; align-items: stretch; }
.l3-reception-code-row input {
  width: 100%;
  min-height: 52px;
  padding: 10px 16px;
  border: 2px solid #c894a0;
  border-radius: 10px;
  outline: none;
  color: #2b0b13;
  background: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .22em;
}
.l3-reception-code-row input:focus { border-color: #8f001d; box-shadow: 0 0 0 4px rgba(143, 0, 29, .11); }
.l3-reception-code-row .button { min-height: 52px; padding-inline: 24px; }
.l3-reception-code-form > p { margin: 8px 0 0; color: #7b6670; font-size: 12px; }
.l3-reception-result { margin-top: 16px; }
.l3-reception-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 16px 18px;
  border: 1px dashed #d7b5bd;
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
}
.l3-reception-empty > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #8f001d;
  background: #fbecef;
  font-weight: 900;
}
.l3-reception-empty strong { color: #5d1424; }
.l3-reception-empty p { margin: 4px 0 0; color: #78656a; font-size: 13px; }
.l3-reception-loaded { overflow: hidden; border: 1px solid #d9bcc3; border-radius: 12px; background: #fff; }
.l3-reception-loaded-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  color: #fff;
  background: linear-gradient(110deg, #670016, #9c1632);
}
.l3-reception-loaded-head span { color: #f4cfd7; font-size: 12px; font-weight: 700; }
.l3-reception-loaded-head h3 { margin: 3px 0 0; font-size: 20px; }
.l3-reception-loaded-head h3 small { color: #f6d9df; font-size: 12px; font-weight: 600; }
.l3-reception-loaded-code { text-align: right; }
.l3-reception-loaded-code strong { display: block; margin-top: 3px; color: #fff; font-size: 25px; letter-spacing: .16em; }
.l3-reception-body { display: block; }
.l3-reception-summary { padding: 18px; }
.l3-reception-summary h4 { margin: 0 0 12px; color: #4f1723; font-size: 16px; }
.l3-reception-summary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0 0 16px; background: #eadde0; }
.l3-reception-summary dl > div { min-width: 0; padding: 10px 12px; background: #fff; }
.l3-reception-summary dt { color: #806b70; font-size: 11px; font-weight: 700; }
.l3-reception-summary dd { margin: 3px 0 0; color: #23181b; font-size: 14px; overflow-wrap: anywhere; }
.l3-reception-open-ticket { min-height: 46px; padding-inline: 24px; }
@media (max-width: 820px) {
  .l3-reception-window { padding: 16px; }
  .l3-reception-code-row { grid-template-columns: 1fr; }
  .l3-reception-code-row .button { width: 100%; }
  .l3-reception-empty { grid-template-columns: auto 1fr; }
  .l3-reception-open-ticket { width: 100%; }
}
@media (max-width: 560px) {
  .l3-reception-intro, .l3-reception-loaded-head { align-items: flex-start; flex-direction: column; }
  .l3-reception-loaded-code { text-align: left; }
  .l3-reception-summary dl { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* LINE inbound media */
.line-message-image {
  display: block;
  max-width: min(280px, 100%);
  max-height: 360px;
  border-radius: 8px;
  object-fit: contain;
  background: #f3f4f6;
}
.line-message-sticker {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: contain;
}
.line-message-media-link { display: inline-block; }
.line-message-file { font-weight: 600; }
.line-message-caption { margin-top: 4px; opacity: 0.85; font-size: 12px; }


/* LINE history scroll */
.line-message-stream {
  justify-content: flex-start !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}
.line-message-stream::before {
  content: '';
  flex: 1 1 auto;
  min-height: 0;
}
.line-history-loading,
.line-history-end {
  margin: 4px auto 10px;
  padding: 4px 10px;
  color: #6b7280;
  background: rgba(255,255,255,.88);
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 11px;
}
.line-history-loading.is-error {
  color: #b91c1c;
  border-color: #fecaca;
}

/* Trusted device management */
.device-link, .device-back-link { color: inherit; text-decoration: none; }
.device-shell { max-width: 1120px; }
.device-message { min-height: 20px; padding: 0 20px; color: var(--brand); font-size: 13px; font-weight: 700; }
.device-table td:first-child strong { display: inline-block; margin-right: 8px; }
.device-table td:first-child small { display: block; max-width: 38rem; margin-top: 5px; color: var(--muted); overflow-wrap: anywhere; }
.device-user-field { max-width: 420px; margin-bottom: 20px; }
.device-user-field select { width: 100%; }
.device-error { padding: 16px; color: #9f1239; background: #fff1f2; border-radius: 8px; }
@media (max-width: 760px) {
  .header-actions .device-link { display: none; }
  .device-page .header-actions .device-back-link { display: inline-flex; }
}
.anomaly-confirmation-empty{padding:18px;color:#6c737f;text-align:center;background:#f7f8fa;border:1px dashed #cfd4dc;border-radius:10px}.anomaly-confirmation-readback{border:1px solid #d9dee7;border-radius:10px;overflow:hidden;background:#fff}.anomaly-confirmation-readback>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;background:#f7f8fb;border-bottom:1px solid #e1e5eb}.anomaly-confirmation-readback>header div,.anomaly-confirmation-readback>header strong,.anomaly-confirmation-readback>header small{display:block}.anomaly-confirmation-readback>header small{margin-top:3px;color:#697181;font-size:11px}.anomaly-confirmation-readback>header>span{color:#0f6d3f;background:#e7f6ee;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800;white-space:nowrap}.anomaly-confirmation-readback dl{margin:0;padding:5px 15px}.anomaly-confirmation-readback dl>div{display:grid;grid-template-columns:128px minmax(0,1fr);gap:14px;padding:10px 0;border-bottom:1px solid #edf0f4}.anomaly-confirmation-readback dl>div:last-child{border-bottom:0}.anomaly-confirmation-readback dt{color:#6a7280;font-size:12px}.anomaly-confirmation-readback dd{margin:0;font-weight:700;overflow-wrap:anywhere}.anomaly-confirmation-signature{display:block;width:min(240px,100%);height:92px;object-fit:contain;background:#fff;border:1px solid #dfe3e8;border-radius:6px}.anomaly-confirmation-readback.is-compact{margin:0 0 12px}.anomaly-confirmation-readback.is-compact dl>div{grid-template-columns:105px minmax(0,1fr)}
.l3-orders-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.l3-card-orders-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;align-items:start}.l3-order-card{position:relative;background:#fff;border:1px solid #dce7e1;border-radius:14px;box-shadow:0 8px 24px #163b2810;padding:16px;min-width:0;cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.l3-order-card:hover{border-color:#9bc8b1;box-shadow:0 12px 28px #163b2820;transform:translateY(-1px)}.l3-order-card:focus-visible{outline:3px solid #82c5a4;outline-offset:3px}.l3-order-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.l3-order-identity{min-width:0}.l3-order-card h2,.l3-order-card .l3-order-code{display:block;font-size:18px;line-height:1.4;font-weight:800}.l3-order-card h2{margin:6px 0 0;overflow-wrap:anywhere}.l3-order-code{color:#0f7a4a;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.l3-order-open-hint{display:block;margin-top:14px;padding-top:11px;border-top:1px solid #edf1ef;color:#60736a;font-size:12px;font-weight:700}.l3-order-status{display:inline-flex;border-radius:999px;padding:5px 9px;background:#eef2f0;color:#526058;font-size:11px;font-weight:800;white-space:nowrap}.l3-order-status.status-blocked{background:#fde8e7;color:#a3261f}.l3-order-status.status-appointment{background:#fff1d8;color:#8a5900}.l3-order-status.status-issued{background:#e8f7ee;color:#087b3a}.l3-order-status.status-expected{background:#e9f0ff;color:#2757a5}.l3-order-detail-open{overflow:hidden}.l3-order-detail-layer[hidden]{display:none}.l3-order-detail-layer{position:fixed;z-index:1000;inset:0;display:grid;place-items:center;padding:24px;background:#10201899;overflow:auto}.l3-order-detail-dialog{width:min(720px,100%);max-height:calc(100vh - 48px);overflow:auto;background:#fff;border-radius:18px;box-shadow:0 28px 80px #07140d66;padding:22px}.l3-order-detail-back{border:0;background:transparent;color:#0f7a4a;font:inherit;font-weight:800;padding:5px 0 14px;cursor:pointer}.l3-order-detail-back:focus-visible{outline:3px solid #82c5a4;outline-offset:3px;border-radius:4px}.l3-order-detail-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:16px;border-bottom:1px solid #edf1ef}.l3-order-detail-title .l3-order-code{display:block;font-size:15px}.l3-order-detail-title h2{margin:5px 0 0;font-size:26px;line-height:1.35}.l3-order-facts{display:grid;gap:0;margin:16px 0}.l3-order-facts>div{display:grid;grid-template-columns:92px 1fr;gap:14px;padding:10px 0;border-bottom:1px solid #edf1ef}.l3-order-facts dt{color:#78817d;font-size:13px}.l3-order-facts dd{margin:0;font-size:14px;overflow-wrap:anywhere}.l3-order-readback{margin:12px 0 0;padding:11px 12px;border-radius:9px;background:#f5faf7;color:#526058;font-size:13px}.l3-order-status-form{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid #edf1ef}.l3-order-status-form label{display:flex;flex-direction:column;gap:5px;font-size:11px;color:#66716b}.l3-order-status-form select,.l3-order-status-form input{width:100%;border:1px solid #ccd8d1;border-radius:8px;background:#fff;padding:8px;font:inherit;color:#17211c}.l3-order-status-form footer{grid-column:1/-1;display:flex;justify-content:space-between;gap:8px;margin-top:2px}@media(max-width:640px){.l3-orders-heading{align-items:flex-start;flex-direction:column}.l3-card-orders-grid{grid-template-columns:1fr}.l3-order-detail-layer{padding:0;place-items:stretch}.l3-order-detail-dialog{width:100%;max-height:100vh;min-height:100vh;border-radius:0;padding:18px}.l3-order-status-form{grid-template-columns:1fr}}

.l3-order-card-facts{display:grid;gap:0;margin:14px 0 0}.l3-order-card-facts>div{display:grid;grid-template-columns:58px minmax(0,1fr);gap:10px;padding:7px 0;border-top:1px solid #edf1ef}.l3-order-card-facts dt{color:#78817d;font-size:12px}.l3-order-card-facts dd{margin:0;font-size:13px;font-weight:700;overflow-wrap:anywhere}.l3-order-card-facts strong{color:#0f7a4a}

.l3-order-read-state{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:7px;margin:0 0 14px;padding:9px 11px;border:1px solid transparent;border-radius:9px;font-size:12px}.l3-order-read-state strong{font-size:13px}.l3-order-read-state.is-unread{background:#fff1e8;border-color:#f3ad7e;color:#922e08;box-shadow:inset 4px 0 #e45317}.l3-order-read-state.is-read{background:#edf8f1;border-color:#b9ddc7;color:#17633a}.l3-order-read-dot{width:9px;height:9px;border-radius:50%;background:currentColor;box-shadow:0 0 0 3px #fff9}.l3-order-copy-row{display:flex;align-items:center;gap:8px;min-width:0}.l3-order-copy-row+.l3-order-copy-row{margin-top:6px}.l3-order-copy-row h2{margin:0}.l3-order-copy-button{flex:0 0 auto;border:1px solid #9fc8b2;border-radius:6px;background:#f4faf6;color:#0f7146;padding:3px 7px;font:inherit;font-size:11px;font-weight:800;line-height:1.35;cursor:pointer}.l3-order-copy-button:hover{background:#e5f5eb;border-color:#72ad8c}.l3-order-copy-button:focus-visible{outline:3px solid #82c5a4;outline-offset:2px}.l3-order-detail-title .l3-order-copy-row+.l3-order-copy-row{margin-top:5px}.l3-order-bank-shortcut{display:flex;width:100%;justify-content:center;margin-top:12px}.l3-order-detail-card>.l3-order-bank-shortcut{margin-top:14px}
.l3-order-new-badge{position:absolute;z-index:2;top:-7px;right:-7px;display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:20px;padding:0 7px;border:2px solid #fff;border-radius:999px;background:#d20b2f;color:#fff;box-shadow:0 3px 9px #8b001f42;font-size:10px;font-weight:900;line-height:1;letter-spacing:.04em;pointer-events:none}

.l3-public-hall-card{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff;border:1px solid #dce7e1;border-radius:14px;box-shadow:0 8px 24px #163b2810;padding:18px;min-width:0}.l3-public-hall-number{color:#17211c;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:18px;font-weight:800;overflow-wrap:anywhere}.l3-public-hall-claim{flex:0 0 auto}
.l3-public-hall-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.l3-public-hall-actions{display:flex;align-items:flex-end;gap:8px;min-width:190px}.l3-public-hall-actions label{display:grid;gap:4px;min-width:0;flex:1}.l3-public-hall-actions label span,.l3-line-added-control>legend{color:#66716b;font-size:11px;font-weight:700}.l3-public-hall-actions select{width:100%;min-height:34px;border:1px solid #bfd0c7;border-radius:8px;background:#fff;padding:6px 8px;color:#17211c;font:inherit;font-size:12px}.l3-line-added-control{display:grid;gap:4px;min-width:166px;margin:0;padding:0;border:0}.l3-line-added-control>legend{padding:0}.l3-line-added-options{display:flex;align-items:stretch;gap:6px}.l3-line-added-options label{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:34px;padding:6px 9px;border:1px solid #bfd0c7;border-radius:8px;background:#fff;color:#33433b;font-size:12px;font-weight:800;cursor:pointer}.l3-line-added-options input{width:14px;height:14px;margin:0;accent-color:#0f7a4a;cursor:pointer}.l3-line-added-options label:has(input:checked){border-color:#62a982;background:#eaf7ef;color:#0f6840}.l3-line-added-options label:has(input:disabled){cursor:wait;opacity:.68}.l3-order-card-actions .l3-line-added-control{flex:1 1 166px}.l3-order-detail-actions .l3-line-added-control{flex:1 1 166px}
.l3-unified-page{display:grid;gap:24px}.l3-public-hall-section{overflow:hidden;background:#f7faf8;border:1px solid #dce7e1;border-radius:16px;box-shadow:0 8px 24px #163b280d}.l3-public-hall-section>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;cursor:pointer;list-style:none;background:#eef7f2;color:#173d2a}.l3-public-hall-section>summary::-webkit-details-marker{display:none}.l3-public-hall-section>summary span{display:flex;align-items:baseline;gap:10px;min-width:0}.l3-public-hall-section>summary strong{font-size:18px}.l3-public-hall-section>summary small{color:#64766d;font-size:12px}.l3-public-hall-section>summary em{font-size:12px;font-style:normal;font-weight:800;color:#0f7a4a;white-space:nowrap}.l3-public-hall-section>.l3-public-hall-grid{padding:16px}.l3-claimed-section{display:grid;gap:14px}.l3-claimed-section>header{display:flex;align-items:end;justify-content:space-between}.l3-claimed-section>header h2{margin:2px 0 0;font-size:24px}.l3-order-card-actions,.l3-order-detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.l3-order-card-actions .button,.l3-order-detail-actions .button{margin:0}.l3-order-copy-button{border:1px solid #b8d8c7;border-radius:8px;background:#edf8f1;color:#17633a;padding:7px 10px;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.l3-order-copy-button:hover{background:#dff1e6}.l3-order-copy-button:focus-visible{outline:3px solid #82c5a4;outline-offset:2px}
@media(max-width:640px){.l3-public-hall-section>summary span{align-items:flex-start;flex-direction:column;gap:3px}.l3-public-hall-section>.l3-public-hall-grid{padding:12px}.l3-public-hall-card{align-items:stretch;flex-direction:column}.l3-public-hall-actions{width:100%}}

/* L3 坐席：快速检索和已接单卡，仅作用于办理台。 */
.workspace-l3 .l3-unified-page{gap:22px}.workspace-l3 .l3-seat-search{position:relative;overflow:hidden;padding:22px 24px;display:grid;grid-template-columns:minmax(250px,.8fr) minmax(360px,1.2fr);gap:18px 28px;align-items:center;color:#fff;background:radial-gradient(circle at 92% 0,#58b98c55,transparent 34%),linear-gradient(118deg,#123c2b,#0b6942 64%,#07804d);border:1px solid #176c49;border-radius:18px;box-shadow:0 16px 38px #123c2b2e}.workspace-l3 .l3-seat-search::after{content:"";position:absolute;right:-55px;bottom:-105px;width:220px;height:220px;border:38px solid #ffffff0d;border-radius:50%;pointer-events:none}.workspace-l3 .l3-seat-search>*{position:relative;z-index:1}.workspace-l3 .l3-seat-search-copy{display:flex;align-items:center;gap:14px}.workspace-l3 .l3-seat-search-copy>span{width:50px;height:50px;display:grid;place-items:center;flex:none;background:#ffffff17;border:1px solid #ffffff2b;border-radius:14px;font-size:30px}.workspace-l3 .l3-seat-search .eyebrow{margin:0;color:#aee7ca}.workspace-l3 .l3-seat-search h2{margin:2px 0;font-size:22px}.workspace-l3 .l3-seat-search p{margin:0;color:#d4eee1;font-size:12px}.workspace-l3 .l3-seat-search form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}.workspace-l3 .l3-seat-search .search-input{height:50px;padding:0 16px;color:#17211c;background:#fff;border:1px solid #ffffff80;border-radius:11px;font:inherit;font-size:14px;outline:none;box-shadow:0 4px 16px #0827191c}.workspace-l3 .l3-seat-search .search-input:focus{border-color:#8ce0b6;box-shadow:0 0 0 4px #8ce0b633}.workspace-l3 .l3-seat-search form .button{min-width:112px;background:#fff;color:#075f3b;border-color:#fff}.workspace-l3 .l3-seat-search-results{grid-column:1/-1}.workspace-l3 .l3-seat-search-results:empty{display:none}.workspace-l3 .l3-seat-search-loading{min-height:60px;display:flex;align-items:center;justify-content:center;gap:10px;border-top:1px solid #ffffff24;color:#dcf3e7}.workspace-l3 .l3-seat-search-loading .spinner{width:22px;height:22px;border-color:#ffffff44;border-top-color:#fff}.workspace-l3 .l3-seat-search-message,.workspace-l3 .l3-seat-search-empty{padding:13px 15px;color:#e6f6ed;background:#ffffff0d;border:1px solid #ffffff24;border-radius:10px}.workspace-l3 .l3-seat-search-empty{display:flex;flex-direction:column}.workspace-l3 .l3-seat-search-empty span{color:#cce9da;font-size:11px}.workspace-l3 .l3-seat-search-empty.is-error{color:#ffe4e4}.workspace-l3 .l3-seat-search-result-head{padding:14px 1px 9px;display:flex;justify-content:space-between;border-top:1px solid #ffffff24}.workspace-l3 .l3-seat-search-result-head span{color:#cce9da;font-size:11px}.workspace-l3 .l3-seat-search-result-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:8px}.workspace-l3 .l3-seat-search-result{padding:12px 13px;display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:center;color:#17211c;text-align:left;background:#fff;border:1px solid #d7e8df;border-radius:10px;cursor:pointer}.workspace-l3 .l3-seat-search-result:hover,.workspace-l3 .l3-seat-search-result:focus-visible{border-color:#6bc093;background:#f6fcf8;outline:none}.workspace-l3 .l3-seat-search-result span{min-width:0;display:flex;flex-direction:column}.workspace-l3 .l3-seat-search-result strong,.workspace-l3 .l3-seat-search-result b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workspace-l3 .l3-seat-search-result small{overflow:hidden;color:#6e7d75;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.workspace-l3 .l3-seat-search-result em{color:#0a7045;font-size:11px;font-style:normal;font-weight:800;white-space:nowrap}
.workspace-l3 #l3-claimed-orders-grid{grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:18px}.workspace-l3 .l3-order-card{padding:0;overflow:visible;border-color:#d8e4dd;border-radius:17px;box-shadow:0 9px 25px #183b2914}.workspace-l3 .l3-order-card::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:linear-gradient(#0b7a49,#65b78d);border-radius:17px 0 0 17px}.workspace-l3 .l3-order-card:hover{border-color:#8fc2a7;box-shadow:0 16px 34px #173c2824;transform:translateY(-2px)}.workspace-l3 .l3-order-card.is-search-match{animation:l3SearchMatch 1.8s ease}.workspace-l3 .l3-order-card-head{padding:18px 18px 15px 21px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:0}.workspace-l3 .l3-order-identity{min-width:0}.workspace-l3 .l3-order-card-kicker{display:flex;align-items:center;gap:8px}.workspace-l3 .l3-order-card-kicker>span{color:#718078;font-size:10px;font-weight:800;letter-spacing:.06em}.workspace-l3 .l3-order-card .l3-order-code{color:#087046;font-size:14px;letter-spacing:.025em}.workspace-l3 .l3-order-customer-name{margin-top:8px}.workspace-l3 .l3-order-card h2{margin:0;overflow:hidden;color:#14231b;font-size:21px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.workspace-l3 .l3-order-card-state{padding:5px 8px;color:#087046;background:#e8f6ee;border:1px solid #c5e7d4;border-radius:999px;font-size:10px;font-weight:900;white-space:nowrap}.workspace-l3 .l3-order-card-spotlight{margin:0 16px 4px 20px;padding:13px 15px;display:grid;grid-template-columns:1fr 1.2fr;gap:12px;background:linear-gradient(135deg,#f2f8f4,#f8fbf9);border:1px solid #e0ebe5;border-radius:12px}.workspace-l3 .l3-order-card-spotlight>div{min-width:0;display:flex;flex-direction:column;gap:3px}.workspace-l3 .l3-order-card-spotlight>div+div{padding-left:13px;border-left:1px solid #dce8e1}.workspace-l3 .l3-order-card-spotlight span{color:#7b8881;font-size:10px;font-weight:700}.workspace-l3 .l3-order-card-spotlight strong{overflow:hidden;color:#12633f;font-size:16px;text-overflow:ellipsis;white-space:nowrap}.workspace-l3 .l3-order-card-facts{margin:5px 18px 0 21px}.workspace-l3 .l3-order-card-facts>div{grid-template-columns:64px minmax(0,1fr);gap:9px;padding:8px 1px;border-color:#edf1ef}.workspace-l3 .l3-order-card-facts dt{color:#7a8680;font-size:11px}.workspace-l3 .l3-order-card-facts dd{overflow:hidden;color:#2b3932;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.workspace-l3 .l3-order-card-facts .l3-order-card-product dd{font-size:13px}.workspace-l3 .l3-order-card-actions{margin:12px 18px 0 21px;padding-top:12px;border-top:1px solid #e9efec}.workspace-l3 .l3-order-card-actions .l3-line-added-control{flex-basis:100%}.workspace-l3 .l3-order-card-actions .l3-order-bank-shortcut{width:auto;flex:1}.workspace-l3 .l3-order-open-hint{margin-top:14px;padding:11px 18px 12px 21px;display:flex;justify-content:space-between;color:#4f6c5c;background:#f7faf8;border-top:1px solid #edf1ef;border-radius:0 0 17px 17px}.workspace-l3 .l3-order-open-hint b{color:#0b7a49;font-size:15px}.workspace-l3 .l3-order-detail-dialog{border-top:5px solid #0b7a49}.workspace-l3 .l3-order-facts{grid-template-columns:1fr 1fr;column-gap:24px}.workspace-l3 .l3-order-facts>div{grid-template-columns:86px minmax(0,1fr)}
@keyframes l3SearchMatch{0%,100%{box-shadow:0 9px 25px #183b2914}22%,72%{border-color:#12a05f;box-shadow:0 0 0 5px #19a96626,0 18px 40px #173c2830}}
@media(max-width:820px){.workspace-l3 .l3-seat-search{grid-template-columns:1fr}.workspace-l3 .l3-seat-search-results{grid-column:auto}.workspace-l3 .l3-order-facts{grid-template-columns:1fr}}
@media(max-width:640px){.workspace-l3 .l3-seat-search{padding:18px}.workspace-l3 .l3-seat-search form{grid-template-columns:1fr}.workspace-l3 .l3-seat-search form .button{width:100%}.workspace-l3 .l3-seat-search-result{grid-template-columns:1fr auto}.workspace-l3 .l3-seat-search-result span:nth-child(2){display:none}.workspace-l3 #l3-claimed-orders-grid{grid-template-columns:1fr}}

.l3-claim-state{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:8px;margin:0 0 12px;padding:9px 11px;border:1px solid;border-radius:9px;font-size:12px}.l3-claim-state>span{color:#66716b}.l3-claim-state>strong{font-size:13px}.l3-claim-state>em{min-width:0;overflow:hidden;color:#24543d;font-style:normal;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.l3-claim-state.is-unclaimed{grid-template-columns:auto 1fr;background:#fff7e6;border-color:#eed296;color:#795100}.l3-claim-state.is-claimed{background:#edf8f1;border-color:#b9ddc7;color:#17633a}
.workspace-l3-dispatch{background:#f0f3f5}.workspace-l3-dispatch .brandline{background:linear-gradient(90deg,#560012,#a50029 42%,#0f766e)}.workspace-l3-dispatch .page-shell{width:min(1240px,calc(100% - 40px))}.workspace-l3-dispatch .site-footer{margin-top:10px}
.l3-dispatch-hero{min-height:176px;margin-bottom:18px;padding:30px 34px;display:flex;align-items:center;justify-content:space-between;gap:28px;position:relative;overflow:hidden;color:#fff;background:radial-gradient(circle at 83% 20%,rgba(255,255,255,.16),transparent 26%),linear-gradient(118deg,#520012 0%,#8f001d 57%,#ad0630 100%);border-radius:18px;box-shadow:0 18px 45px #52001229}.l3-dispatch-hero::after{content:"";width:230px;height:230px;position:absolute;right:13%;bottom:-190px;border:44px solid rgba(255,255,255,.07);border-radius:50%}.l3-dispatch-hero>*{position:relative;z-index:1}.l3-dispatch-hero .eyebrow{color:#ffc4d2}.l3-dispatch-hero h1{margin:4px 0 5px;font-size:34px;line-height:1.2}.l3-dispatch-hero p{margin:0;color:#f6dce3}.l3-dispatch-live{min-width:170px;padding:13px 15px;display:grid;grid-template-columns:auto 1fr;gap:1px 9px;align-items:center;background:#ffffff14;border:1px solid #ffffff2e;border-radius:12px;backdrop-filter:blur(5px)}.l3-dispatch-live i{width:9px;height:9px;grid-row:1/3;background:#5ee0a0;border:2px solid #dffbec;border-radius:50%;box-shadow:0 0 0 4px #54da9730}.l3-dispatch-live span{font-size:12px;font-weight:800}.l3-dispatch-live strong{color:#f3cbd5;font-size:10px;font-weight:600}
.l3-dispatch-search{margin-bottom:22px;padding:22px 24px;display:grid;grid-template-columns:minmax(220px,.7fr) minmax(360px,1.3fr);gap:18px 30px;align-items:center;background:#fff;border:1px solid #dbe1e7;border-radius:16px;box-shadow:var(--shadow-sm)}.l3-dispatch-search-copy{display:flex;align-items:center;gap:13px}.l3-dispatch-search-copy>span{width:46px;height:46px;display:grid;place-items:center;flex:none;color:#fff;background:linear-gradient(145deg,#a50029,#720017);border-radius:13px;font-size:27px;font-weight:300}.l3-dispatch-search h2{margin:1px 0;font-size:20px}.l3-dispatch-search p{margin:0;color:var(--muted);font-size:11px}.l3-dispatch-search form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}.l3-dispatch-search .search-input{height:48px;padding:0 16px;border:1px solid #bfc8d2;border-radius:10px;background:#f8fafc;font-size:14px;outline:none}.l3-dispatch-search .search-input:focus{border-color:#a50029;background:#fff;box-shadow:0 0 0 4px #a5002914}.l3-dispatch-search form .button{min-width:112px}.l3-dispatch-search-results{grid-column:1/-1}.l3-dispatch-search-results:empty{display:none}.l3-dispatch-search-loading{min-height:90px;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted);border-top:1px solid var(--line)}.l3-dispatch-search-loading .spinner{width:22px;height:22px}.l3-dispatch-result-head{padding:15px 1px 10px;display:flex;justify-content:space-between;border-top:1px solid var(--line)}.l3-dispatch-result-head span{color:var(--muted);font-size:11px}.l3-dispatch-result-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:9px}.l3-dispatch-result-card{padding:13px 14px;display:grid;grid-template-columns:1fr 1fr auto;gap:14px;align-items:center;text-align:left;background:#fbfcfd;border:1px solid #dde3e9;border-radius:10px;cursor:pointer}.l3-dispatch-result-card:hover{border-color:#c48896;background:#fff8fa}.l3-dispatch-result-card span{min-width:0;display:flex;flex-direction:column}.l3-dispatch-result-card strong,.l3-dispatch-result-card b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.l3-dispatch-result-card small{overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.l3-dispatch-result-card em{color:var(--brand);font-size:11px;font-style:normal;font-weight:800;white-space:nowrap}.l3-dispatch-search-empty{padding:22px;display:flex;flex-direction:column;align-items:center;border-top:1px solid var(--line);background:#fafbfc;border-radius:10px}.l3-dispatch-search-empty span{color:var(--muted);font-size:11px}.l3-dispatch-search-empty.is-error{color:var(--danger)}
.l3-admin-desk{display:grid;gap:15px}.l3-dispatch-board-toolbar{display:flex;align-items:end;justify-content:space-between}.l3-dispatch-board-toolbar h2{margin:1px 0 0;font-size:23px}.l3-dispatch-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.l3-dispatch-stats article{min-height:112px;padding:17px 19px;display:grid;grid-template-columns:1fr auto;align-items:start;background:#fff;border:1px solid var(--line);border-top:3px solid #9b0025;border-radius:12px;box-shadow:var(--shadow-sm)}.l3-dispatch-stats article:nth-child(2){border-top-color:#0f766e}.l3-dispatch-stats article:nth-child(3){border-top-color:#b45309}.l3-dispatch-stats article:nth-child(4){border-top-color:#604a8d}.l3-dispatch-stats span{color:var(--muted);font-size:11px;font-weight:700}.l3-dispatch-stats strong{grid-row:1/3;grid-column:2;font-size:32px;line-height:1}.l3-dispatch-stats strong i{color:var(--muted);font-size:14px;font-style:normal}.l3-dispatch-stats small{align-self:end;color:#8a929d;font-size:10px}
.l3-admin-seat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.l3-admin-seat{min-width:0;background:#fff;border:1px solid #dbe2e7;border-radius:14px;box-shadow:var(--shadow-sm);overflow:hidden}.l3-admin-seat>header{padding:17px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:linear-gradient(135deg,#fafbfc,#f4f7f8);border-bottom:1px solid var(--line)}.l3-admin-seat>header>div{min-width:0}.l3-admin-seat h3{margin:3px 0 0;font-size:21px}.l3-admin-seat header small{display:block;color:var(--muted);font-size:10px}.l3-admin-seat>header>strong{display:flex;align-items:baseline;gap:5px;color:var(--muted);font-size:11px;white-space:nowrap}.l3-admin-seat>header>strong b{color:#7c001b;font-size:25px}.l3-dispatch-seat-state{display:inline-flex;align-items:center;gap:5px;color:#8d98a5;font-size:10px;font-weight:800}.l3-dispatch-seat-state i{width:7px;height:7px;background:#adb5bf;border-radius:50%}.l3-dispatch-seat-state.is-online{color:#0b704d}.l3-dispatch-seat-state.is-online i{background:#28a875;box-shadow:0 0 0 3px #d8f3e8}.l3-dispatch-seat-list{max-height:315px;padding:8px;display:grid;gap:6px;overflow:auto}.l3-dispatch-mini-card{width:100%;padding:11px;display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:center;text-align:left;background:#fff;border:1px solid #e5e9ed;border-radius:9px;cursor:pointer}.l3-dispatch-mini-card:hover{background:#fff8fa;border-color:#d6a2ae}.l3-dispatch-mini-card span{min-width:0;display:flex;flex-direction:column}.l3-dispatch-mini-card strong,.l3-dispatch-mini-card b{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.l3-dispatch-mini-card small{overflow:hidden;color:var(--muted);font-size:9px;text-overflow:ellipsis;white-space:nowrap}.l3-dispatch-mini-card em{padding:3px 6px;color:#9b4b00;background:#fff4df;border-radius:999px;font-size:9px;font-style:normal;font-weight:800;white-space:nowrap}.l3-dispatch-mini-card em.is-added{color:#08744b;background:#e9f8f1}.l3-dispatch-seat-empty{padding:32px 12px;color:var(--muted);font-size:11px;text-align:center}
.l3-admin-hall{margin-top:8px;padding:20px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-sm)}.l3-admin-hall>header{display:flex;align-items:end;justify-content:space-between;gap:16px}.l3-admin-hall h2{margin:2px 0 0;font-size:22px}.l3-admin-hall>header>span{padding:5px 10px;color:#8b001f;background:#fff0f3;border-radius:999px;font-size:11px;font-weight:800}.l3-admin-hall-note{margin:3px 0 14px;color:var(--muted);font-size:11px}.l3-dispatch-hall-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.l3-dispatch-hall-card{padding:16px;background:#fafbfc;border:1px solid #dce2e8;border-left:4px solid #a50029;border-radius:11px}.l3-dispatch-hall-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.l3-dispatch-hall-card>header>div{display:flex;flex-direction:column}.l3-dispatch-hall-card>header>div strong{font-size:15px}.l3-dispatch-hall-card>header span{color:var(--muted);font-size:10px}.l3-dispatch-hall-card>header button{padding:0;color:var(--brand);background:transparent;border:0;font-size:11px;font-weight:800;cursor:pointer}.l3-dispatch-hall-card dl{margin:13px 0;display:grid;grid-template-columns:1fr 1fr;gap:7px 14px}.l3-dispatch-hall-card dl div{min-width:0}.l3-dispatch-hall-card dt{color:var(--muted);font-size:9px}.l3-dispatch-hall-card dd{margin:0;overflow:hidden;font-size:11px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.l3-admin-assign{padding-top:12px;display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:end;border-top:1px solid var(--line)}.l3-admin-assign label{min-width:0;display:grid;gap:4px}.l3-admin-assign label span{color:var(--muted);font-size:9px;font-weight:700}.l3-admin-assign select{width:100%;min-height:38px;border:1px solid #cbd3dc;border-radius:8px;background:#fff;padding:6px 8px;font-size:11px}.l3-admin-assign .button{height:38px;padding-inline:14px;font-size:11px;white-space:nowrap}.l3-dispatch-hall-empty{grid-column:1/-1;min-height:150px;display:grid;place-content:center;justify-items:center;color:var(--muted);background:#f8faf9;border:1px dashed #cbd8d1;border-radius:11px}.l3-dispatch-hall-empty span{width:34px;height:34px;display:grid;place-items:center;margin-bottom:6px;color:#08744b;background:#e1f4eb;border-radius:50%;font-weight:900}.l3-dispatch-hall-empty strong{color:var(--ink)}.l3-dispatch-hall-empty p{margin:0;font-size:10px}
.l3-dispatch-detail-layer[hidden]{display:none}.l3-dispatch-detail-layer{position:fixed;z-index:1100;inset:0;padding:22px;display:grid;place-items:center;background:#19060bba;overflow:auto}.l3-dispatch-detail{width:min(870px,100%);max-height:calc(100vh - 44px);padding:22px;overflow:auto;background:#f5f7f8;border-radius:18px;box-shadow:0 30px 90px #12020780}.l3-dispatch-customer-detail{display:grid;grid-template-columns:1fr 1fr;gap:13px}.l3-dispatch-customer-detail>header{grid-column:1/-1;padding:20px;display:flex;justify-content:space-between;gap:20px;color:#fff;background:linear-gradient(120deg,#650015,#9b0025);border-radius:12px}.l3-dispatch-customer-detail>header h2{margin:3px 0;font-size:27px}.l3-dispatch-customer-detail>header .code-text{color:#ffd6df}.l3-dispatch-source{height:max-content;padding:5px 10px;background:#ffffff1f;border:1px solid #ffffff32;border-radius:999px;font-size:10px;font-weight:800;white-space:nowrap}.l3-dispatch-customer-detail>section{padding:17px;background:#fff;border:1px solid var(--line);border-radius:11px}.l3-dispatch-customer-detail h3{margin:0 0 8px;font-size:14px}.l3-dispatch-customer-detail dl{margin:0}.l3-dispatch-customer-detail dl div{padding:8px 0;display:grid;grid-template-columns:82px minmax(0,1fr);gap:12px;border-bottom:1px solid #edf0f2}.l3-dispatch-customer-detail dl div:last-child{border-bottom:0}.l3-dispatch-customer-detail dt{color:var(--muted);font-size:10px}.l3-dispatch-customer-detail dd{margin:0;overflow-wrap:anywhere;font-size:12px;font-weight:700}.l3-dispatch-customer-detail .l3-dispatch-bank{border-top:3px solid #0f766e}.l3-dispatch-bank>p{margin:8px 0 0;color:var(--muted);font-size:9px}
@media(max-width:900px){.l3-admin-seat-grid{grid-template-columns:1fr}.l3-dispatch-seat-list{max-height:230px}.l3-dispatch-hall-grid{grid-template-columns:1fr}.l3-dispatch-search{grid-template-columns:1fr}.l3-dispatch-search-results{grid-column:auto}.l3-dispatch-customer-detail{grid-template-columns:1fr}}
@media(max-width:640px){.workspace-l3-dispatch .page-shell{width:min(100% - 24px,1240px)}.l3-dispatch-hero{padding:24px;align-items:flex-start;flex-direction:column}.l3-dispatch-live{width:100%}.l3-dispatch-search{padding:18px}.l3-dispatch-search form{grid-template-columns:1fr}.l3-dispatch-stats{grid-template-columns:1fr}.l3-dispatch-result-card{grid-template-columns:1fr auto}.l3-dispatch-result-card span:nth-child(2){display:none}.l3-admin-assign{grid-template-columns:1fr}.l3-dispatch-hall-card dl{grid-template-columns:1fr 1fr}.l3-dispatch-detail-layer{padding:0;place-items:stretch}.l3-dispatch-detail{width:100%;max-height:100vh;min-height:100vh;border-radius:0}.l3-dispatch-customer-detail>header{flex-direction:column}.l3-dispatch-source{align-self:flex-start}}

/* L3 round-robin admin console: scoped to the new management page. */
.rr-console-note { margin: 16px 20px; color: var(--muted); }
.rr-console .data-table { min-width: 680px; }
.rr-console-switch { display: inline-flex; position: relative; align-items: center; cursor: pointer; }
.rr-console-switch input { position: absolute; opacity: 0; width: 46px; height: 26px; margin: 0; }
.rr-console-switch span { width: 46px; height: 26px; padding: 3px; border-radius: 20px; background: #64748b; pointer-events: none; }
.rr-console-switch span::before { content: ''; display: block; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
.rr-console-switch input:checked + span { background: var(--accent); }
.rr-console-switch input:checked + span::before { transform: translateX(20px); }
.rr-console-switch input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.rr-console-switch input:disabled + span { opacity: .5; }
