@charset "UTF-8";
:root {
  --ink: #10253e;
  --blue: #235be8;
  --paper: #f2f5f9;
  --white: #ffffff;
  --muted: #63748a;
  --line: #dce4ee;
  --amber: #a56514;
  --success: #167264;
  --danger: #b83f45;
  --body: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --display: "Avenir Next", "Trebuchet MS", var(--body);
  --mono: "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 14px/1.65 var(--body); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #81a7ff; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font: 650 30px/1.3 var(--display); letter-spacing: -.8px; }
h2 { font-size: 18px; font-weight: 650; line-height: 1.5; }
h3 { font-size: 15px; font-weight: 650; }
small, .muted { color: var(--muted); }
.muted { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 12px; }
.skip-link { position: fixed; top: -50px; z-index: 100; padding: 8px 15px; background: white; }
.skip-link:focus { top: 8px; left: 8px; }
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; }
.brand-monogram { display: inline-grid; place-items: center; width: 40px; height: 40px; background: var(--blue); color: white; font: 750 25px var(--display); border-radius: 10px 10px 10px 2px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 224px minmax(0, 1fr); }
.sidebar { background: var(--ink); color: white; padding: 31px 18px 20px; position: sticky; top: 0; height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.sidebar > .brand, .sidebar > .nav-label, .sidebar-bottom { flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 11px 33px; }
.brand-word { font: 700 19px/1.15 var(--display); letter-spacing: 1.3px; }
.brand-word small { display: block; font: 10px/1.8 var(--body); color: #a4b7cc; letter-spacing: .6px; margin-top: 5px; white-space: nowrap; }
.nav-label { padding: 0 13px 11px; color: #88a0ba; font-size: 11px; letter-spacing: 2px; }
.nav { display: flex; flex-direction: column; gap: 5px; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #617b96 transparent; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; padding: 12px 14px; color: #afc1d6; background: transparent; border-radius: 7px; text-align: left; font-weight: 550; }
.nav-item:hover { background: #1a334f; color: white; }
.nav-item.active { background: #274563; color: white; box-shadow: inset 3px 0 #709eff; }
.nav-icon { display: inline-grid; place-items: center; width: 20px; font: 19px/1 var(--display); }
.sidebar-bottom { margin-top: auto; border-top: 1px solid #28405c; padding: 19px 11px 0; }
.sidebar-bottom p { font-size: 12px; color: #93aac2; margin-top: 6px; }
.user-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.logout { border: 0; background: transparent; padding: 5px; color: #b2c5da; font-size: 12px; }
.workspace { min-width: 0; }
.topbar { background: var(--white); border-bottom: 1px solid var(--line); padding: 17px 36px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.breadcrumb { color: var(--muted); font-size: 12px; letter-spacing: .4px; }
.breadcrumb span { margin-left: 10px; color: var(--ink); }
.topbar-right { display: flex; gap: 16px; align-items: center; }
.server-state { display: flex; gap: 7px; align-items: center; font-size: 12px; color: var(--muted); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.main { max-width: 1540px; padding: 33px 36px 60px; margin: auto; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 25px; }
.eyebrow { font: 600 11px var(--mono); color: var(--muted); letter-spacing: 1.6px; margin-bottom: 8px; }
.page-head p { margin-top: 9px; color: var(--muted); max-width: 800px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn { border: 1px solid var(--line); background: var(--white); color: var(--ink); display: inline-flex; gap: 8px; align-items: center; justify-content: center; border-radius: 6px; padding: 9px 15px; font-size: 13px; font-weight: 550; text-decoration: none; white-space: nowrap; min-height: 40px; }
.btn:hover { background: #f5f8fd; text-decoration: none; border-color: #b4c5dc; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: white; }
.btn.primary:hover { background: #194acb; }
.btn.small { min-height: 31px; padding: 5px 10px; font-size: 12px; }
.btn.danger { color: var(--danger); }
.btn.text { padding: 4px 1px; min-height: 28px; border: 0; color: var(--blue); background: transparent; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--line); }
.metric { background: white; padding: 22px 25px; }
.metric-label { color: var(--muted); font-size: 12px; }
.metric-value { font: 600 34px/1.3 var(--display); margin-top: 9px; letter-spacing: -1px; }
.metric-value em { font: 12px var(--body); font-style: normal; color: var(--muted); margin-left: 9px; letter-spacing: 0; }
.metric.attention .metric-value { color: var(--danger); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 22px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.panel-head { padding: 20px 23px; display: flex; justify-content: space-between; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); }
.panel-head p { margin-top: 3px; font-size: 12px; color: var(--muted); }
.panel-body { padding: 22px 23px; }
.panel-body > p + p { margin-top: 9px; }
.onboard { padding: 17px 22px; background: #eaf0ff; border: 1px solid #cfdbff; border-radius: 8px; margin-bottom: 24px; display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.onboard p { font-size: 13px; color: #465f8e; margin-top: 4px; }
.task-row { padding: 18px 22px; display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 17px; align-items: start; position: relative; border-bottom: 1px solid #eaf0f6; }
.task-row:last-child { border-bottom: 0; }
.task-time { font: 600 17px/1.5 var(--display); color: var(--ink); }
.task-time small { display: block; font: 11px var(--body); color: var(--muted); margin-top: 1px; }
.task-row.overdue .task-time { color: var(--danger); }
.task-detail { border-left: 2px solid #dae4f3; padding-left: 18px; min-width: 0; }
.task-row.overdue .task-detail { border-color: #e4a2a7; }
.task-detail h3 { line-height: 1.6; }
.task-sub { color: var(--muted); font-size: 12px; margin-top: 5px; display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.evidence { color: var(--muted); background: #f5f7fa; border-left: 2px solid #b7c7db; padding: 8px 12px; margin-top: 10px; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.badge { display: inline-block; padding: 2px 8px; color: #536c8b; background: #edf2f8; border-radius: 4px; font-size: 11px; font-weight: 550; line-height: 1.7; white-space: nowrap; }
.badge.green { color: var(--success); background: #e9f5f1; }
.badge.amber { color: var(--amber); background: #fff2df; }
.badge.red { color: var(--danger); background: #fff0f0; }
.badge.blue { color: #315dd0; background: #edf1ff; }
.device-mini { padding: 15px 0; border-bottom: 1px solid #eaf0f6; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.device-mini:first-child { padding-top: 0; }
.device-mini:last-child { padding-bottom: 0; border: 0; }
.device-mini small { display: block; margin-top: 4px; }
.empty { text-align: center; padding: 47px 24px; max-width: 570px; margin: auto; }
.empty-symbol { font: 30px var(--display); color: #a6b9d0; margin-bottom: 11px; }
.empty h3 { font-size: 16px; }
.empty p { color: var(--muted); font-size: 13px; margin: 7px 0 17px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { color: var(--muted); background: #f8fafd; font-size: 11px; font-weight: 550; padding: 12px 18px; white-space: nowrap; border-bottom: 1px solid var(--line); }
td { padding: 16px 18px; border-bottom: 1px solid #eaf0f6; font-size: 13px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcff; }
.cell-main { font-weight: 600; }
.cell-sub { font-size: 11px; color: var(--muted); margin-top: 4px; }
.cell-actions { min-width: 130px; }
.toolbar { display: flex; gap: 12px; justify-content: space-between; margin-bottom: 17px; align-items: center; }
.search { width: 310px; max-width: 100%; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tab { border: 0; background: transparent; padding: 7px 13px; border-radius: 5px; font-size: 12px; color: var(--muted); }
.tab.active { background: #e3eaf5; color: var(--ink); font-weight: 600; }
.customer-header { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.avatar { width: 53px; height: 53px; display: grid; place-items: center; border-radius: 8px; color: #275ecf; background: #e5edff; font: 600 21px var(--display); flex-shrink: 0; }
.detail-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 22px; align-items: start; }
.key-value { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 8px 12px; font-size: 13px; margin: 0; }
.key-value dt { color: var(--muted); }
.key-value dd { margin: 0; overflow-wrap: anywhere; }
.message-list { max-height: 650px; overflow: auto; }
.message { padding: 17px 22px; border-bottom: 1px solid #eaf0f6; }
.message-head { display: flex; gap: 9px; align-items: center; margin-bottom: 6px; font-size: 11px; color: var(--muted); }
.message p { white-space: pre-wrap; overflow-wrap: anywhere; }
.message.self { background: #f7faff; }
.device-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.device-card .panel-body { display: flex; flex-direction: column; gap: 15px; }
.device-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 30px 0 14px; }
.device-section-head .eyebrow { margin-bottom: 4px; }
.mobile-device-card { border-top: 3px solid var(--blue); }
.mobile-device-card.has-attention { border-top-color: var(--danger); }
.mobile-device-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: var(--line); gap: 1px; }
.mobile-summary-item { display: flex; min-width: 0; flex-direction: column; gap: 5px; padding: 12px 10px; background: #f8faff; }
.mobile-summary-item span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.mobile-summary-item strong { font: 600 22px/1.2 var(--display); }
.mobile-summary-item.attention strong { color: var(--danger); }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; cursor: pointer; }
.check-row input { width: 17px; height: 17px; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--blue); }
.check-row small { display: block; margin-top: 3px; line-height: 1.7; }
.notice { padding: 12px 15px; border: 1px solid #dbe5f7; background: #f4f7fd; color: #506586; font-size: 12px; border-radius: 6px; }
.notice.warn { border-color: #f0dfc4; background: #fff8eb; color: #8b672f; }
.notice.error { border-color: #efcacf; background: #fff2f3; color: #a23442; }
.notice.success { border-color: #c8e4da; background: #eff9f5; color: var(--success); }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr); gap: 22px; align-items: start; }
.prospect-campaigns { display: flex; flex-direction: column; gap: 20px; margin: 20px 0; }
.prospect-campaign-status { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.prospect-grid { display: grid; gap: 16px; }
.prospect-lead { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfe; }
.prospect-lead-head, .draft-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.prospect-lead > p { margin-top: 9px; }
.prospect-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 11px; font-size: 12px; }
.prospect-research { margin-top: 17px; padding: 17px; background: white; border: 1px solid #e4eaf2; border-radius: 7px; }
.source-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 14px; }
.source-item { min-width: 0; padding: 12px; background: #f5f7fa; border-radius: 5px; font-size: 12px; }
.source-item p { color: var(--muted); margin: 4px 0 7px; overflow-wrap: anywhere; }
.draft-box { margin-top: 17px; padding: 18px; color: #19314e; background: #eef4ff; border: 1px solid #d4e0f6; border-radius: 7px; }
.draft-head { margin-bottom: 13px; }
.draft-head strong { display: block; overflow-wrap: anywhere; }
.draft-box pre { padding: 15px; background: white; border-radius: 5px; }
.prospect-actions { margin-top: 16px; }
.prospect-history { gap: 14px; }
.payment-summary { display: grid; grid-template-columns: 58px repeat(3,minmax(0,1fr)); gap: 8px; padding: 11px 13px; margin-bottom: 12px; background: #eef5ff; border-radius: 6px; font-size: 12px; }
.lifecycle-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 13px 0; border-bottom: 1px solid #eaf0f6; }
.lifecycle-row:last-child { border-bottom: 0; padding-bottom: 0; }
.lifecycle-row:first-child { padding-top: 0; }
.lifecycle-row p { margin-top: 3px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label { font-size: 12px; color: #475b73; font-weight: 550; }
.field small { font-size: 11px; line-height: 1.65; }
input, select, textarea { width: 100%; border: 1px solid #cdd8e7; border-radius: 5px; padding: 9px 11px; color: var(--ink); background: white; min-height: 40px; }
input::placeholder, textarea::placeholder { color: #8d9db0; }
input:hover, select:hover, textarea:hover { border-color: #a7bbd8; }
textarea { min-height: 100px; resize: vertical; }
textarea.code { font: 12px/1.7 var(--mono); min-height: 140px; }
.form-section { padding-bottom: 23px; margin-bottom: 21px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; margin-bottom: 0; }
.form-section h3 { margin-bottom: 14px; }
.form-footer { display: flex; justify-content: flex-end; gap: 10px; padding-top: 22px; }
.form-error { color: var(--danger); font-size: 13px; margin-top: 15px; white-space: pre-wrap; }
.form-error:empty { display: none; }
.section-help { color: var(--muted); font-size: 12px; margin-bottom: 15px; }
.route-options { display: grid; gap: 14px; margin-top: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: #f8fafd; }
.route-priority { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; background: #edf2ff; color: var(--blue); font: 650 13px var(--mono); }
.route-capabilities { display: flex; flex-wrap: wrap; gap: 6px; min-width: 120px; }
.inline-controls { display: flex; gap: 10px; align-items: end; }
.inline-controls > .field { flex: 1; }
details { margin-top: 15px; }
summary { cursor: pointer; color: var(--muted); font-size: 12px; margin-bottom: 12px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font: 12px/1.7 var(--mono); }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.login-story { padding: 65px 13%; background: var(--ink); color: white; display: flex; flex-direction: column; }
.login-story .brand { padding: 0; }
.login-story h1 { font: 600 42px/1.45 var(--display); margin-top: auto; letter-spacing: -1px; }
.login-story p { color: #a9bcd2; margin: 18px 0 auto; max-width: 355px; line-height: 2; }
.login-note { color: #a3bad3; font: 11px var(--mono); letter-spacing: 1.7px; margin-top: 50px; }
.login-form-area { display: grid; align-content: center; justify-content: center; padding: 45px 28px; }
.login-form { width: 360px; max-width: calc(100vw - 56px); }
.login-form > p { color: var(--muted); margin: 9px 0 30px; }
.login-form .field { margin-top: 17px; }
.login-form .btn { width: 100%; margin-top: 23px; }
.login-form .notice { margin-top: 20px; }
dialog { border: 0; border-radius: 12px; padding: 0; color: var(--ink); background: white; width: 680px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 42px); box-shadow: 0 18px 90px #10253e30; }
dialog::backdrop { background: #081d3b75; backdrop-filter: blur(2px); }
.dialog-head { padding: 21px 25px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: white; z-index: 2; }
.dialog-close { border: 0; background: #f1f5fa; color: var(--muted); border-radius: 5px; width: 30px; height: 30px; font-size: 20px; }
.dialog-body { padding: 24px 25px; }
.dialog-body > .notice { margin-bottom: 19px; }
.pair-code { font: 650 31px var(--mono); letter-spacing: 6px; padding: 22px 15px; margin: 15px 0; text-align: center; background: #f0f5ff; border: 1px dashed #b1c9f7; border-radius: 7px; user-select: all; overflow-wrap: anywhere; }
.contact-line { padding: 15px; background: #f6f8fb; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 12px; }
.import-section { margin: 24px 0; }
.import-section > h2 { margin-bottom: 12px; }
.import-record { margin: 12px 0; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.import-record .notice { margin-top: 14px; }
.import-record details .table-wrap { margin-top: 18px; }
.import-evidence { min-width: 140px; max-width: 320px; overflow-wrap: anywhere; white-space: pre-wrap; }
.import-warnings { margin: 0; padding-left: 18px; overflow-wrap: anywhere; }
.import-source { margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: 6px; }
.import-source h3 { margin-bottom: 8px; }
.import-source .table-wrap { margin: 12px 0; }
.page-head h1, .cell-main { overflow-wrap: anywhere; }
.assistant-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); gap: 22px; align-items: start; }
.assistant-intro { display: flex; gap: 14px; align-items: center; padding: 16px; margin-bottom: 19px; color: #18375f; background: linear-gradient(135deg, #eef3ff, #f6f9ff); border: 1px solid #d9e4fb; border-radius: 9px; }
.assistant-orb { width: 45px; height: 45px; display: grid; place-items: center; flex: 0 0 45px; color: white; background: linear-gradient(135deg, #235be8, #6b4fe3); border-radius: 14px 14px 14px 4px; box-shadow: 0 7px 20px #315ed433; font: 700 13px var(--mono); }
.assistant-feed { max-height: 680px; overflow: auto; }
.assistant-turn { padding: 19px 22px; border-bottom: 1px solid #eaf0f6; }
.assistant-turn:last-child { border-bottom: 0; }
.assistant-user { margin-left: 28px; padding: 12px 14px; background: #edf3ff; border-radius: 11px 11px 3px 11px; overflow-wrap: anywhere; }
.assistant-meta { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; color: #4f6380; font-size: 11px; }
.assistant-reply { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 13px 28px 0 0; padding: 13px 14px; background: #f6f8fb; border: 1px solid #e6ecf4; border-radius: 3px 11px 11px 11px; }
.assistant-reply strong { display: block; margin-bottom: 2px; }
.manager-home { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 22px; align-items: stretch; }
.manager-welcome { min-height: 520px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(32px, 6vw, 82px); background: var(--white); border: 1px solid var(--line); border-radius: 9px; position: relative; overflow: hidden; }
.manager-welcome::after { content: "EXPORT / FOLLOW-UP / CUSTOMER"; position: absolute; right: -88px; top: 74px; transform: rotate(90deg); color: #d7e0eb; font: 11px var(--mono); letter-spacing: 3px; }
.manager-welcome h2 { max-width: 620px; font: 650 clamp(25px, 3vw, 40px)/1.35 var(--display); letter-spacing: -1px; }
.manager-welcome > p { max-width: 650px; margin: 17px 0 25px; color: var(--muted); }
.manager-welcome > .muted { margin: 24px 0 0; font-size: 12px; }
.manager-stamp { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 25px; color: var(--blue); border: 2px solid var(--blue); border-radius: 50%; font: 700 13px var(--mono); letter-spacing: 1px; transform: rotate(-7deg); }
.manager-capabilities { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; }
.manager-capabilities span { padding: 5px 9px; color: #536c8b; background: #edf2f8; border-radius: 4px; font-size: 11px; }
.manager-archive { max-height: 680px; overflow: auto; }
.manager-archive-item { width: 100%; padding: 16px 18px; border: 0; border-bottom: 1px solid #eaf0f6; background: white; color: var(--ink); text-align: left; }
.manager-archive-item:last-child { border-bottom: 0; }
.manager-archive-item:hover { background: #f7f9fc; }
.manager-archive-item.active { background: #edf2ff; box-shadow: inset 3px 0 var(--blue); }
.manager-archive-title, .manager-archive-preview, .manager-archive-meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manager-archive-title { font-weight: 650; }
.manager-archive-preview { margin-top: 5px; color: #4d6178; font-size: 12px; }
.manager-archive-meta { margin-top: 7px; color: var(--muted); font: 10px var(--mono); }
.manager-desk { display: grid; grid-template-columns: 230px minmax(420px, 1fr) 260px; gap: 18px; align-items: start; }
.manager-rail { position: sticky; top: 78px; }
.manager-rail .manager-archive { max-height: calc(100vh - 190px); }
.manager-ledger { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.manager-ledger-head { min-height: 61px; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); color: var(--muted); font: 11px var(--mono); letter-spacing: 1.4px; text-transform: uppercase; }
.manager-turns { background: #f6f8fb; }
.manager-turn { padding: 24px 25px; border-bottom: 1px solid #e1e8f1; }
.manager-user-entry { margin-left: clamp(22px, 9%, 82px); padding: 14px 16px; background: #eaf0ff; border: 1px solid #d4dff5; border-radius: 8px 8px 2px 8px; overflow-wrap: anywhere; }
.manager-entry-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; color: var(--muted); font: 10px var(--mono); letter-spacing: .4px; }
.manager-response { display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 12px; margin: 17px clamp(22px, 9%, 82px) 0 0; }
.manager-response-mark { width: 31px; height: 31px; display: grid; place-items: center; color: white; background: var(--ink); border-radius: 3px; font: 700 11px var(--mono); }
.manager-response-body { padding: 15px 16px; background: white; border: 1px solid #dfe6ef; border-radius: 2px 8px 8px 8px; overflow-wrap: anywhere; }
.manager-response-body > p { white-space: pre-wrap; }
.manager-response-body > .btn { margin-top: 13px; }
.manager-approval { margin-top: 16px; padding: 16px 17px; background: #fff8eb; border: 1px solid #ead6b4; border-left: 4px solid var(--amber); border-radius: 3px 7px 7px 3px; }
.manager-approval-kicker { margin-bottom: 5px; color: var(--amber); font: 700 10px var(--mono); letter-spacing: 1.7px; }
.manager-approval p { margin: 6px 0 12px; color: #725b39; font-size: 12px; }
.manager-saved { margin-top: 14px; padding: 11px 13px; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--success); background: #eff9f5; border: 1px solid #c8e4da; border-radius: 5px; font-size: 12px; }
.manager-composer { padding: 22px 24px 25px; background: white; border-top: 1px solid var(--line); }
.manager-composer > p { margin: 4px 0 17px; }
.manager-composer textarea { min-height: 92px; }
.manager-dossier { position: sticky; top: 78px; padding: 21px; background: #fefefe; border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: 4px 4px 9px 9px; }
.manager-dossier-label { margin-bottom: 10px; color: var(--muted); font: 10px var(--mono); letter-spacing: 1.5px; text-transform: uppercase; }
.manager-dossier h2 { overflow-wrap: anywhere; }
.manager-company { margin-top: 4px; color: var(--muted); font-size: 12px; }
.manager-dossier dl { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px 9px; margin: 20px 0; font-size: 12px; }
.manager-dossier dt { color: var(--muted); }
.manager-dossier dd { margin: 0; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
@media (max-width: 600px) { .nav { overflow-x: auto; } .nav-item { flex: 0 0 60px; } .import-record { padding: 14px; } .source-list { grid-template-columns: 1fr; } .prospect-lead-head, .draft-head { flex-direction: column; } .payment-summary { grid-template-columns: 1fr 1fr; } .mobile-device-summary { grid-template-columns: 1fr 1fr; } }
#toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); background: var(--ink); color: white; padding: 12px 21px; border-radius: 8px; box-shadow: 0 7px 35px #10253e25; z-index: 10; max-width: calc(100vw - 32px); opacity: 0; pointer-events: none; transition: opacity .2s; }
#toast.visible { opacity: 1; }
.loading { padding: 70px 25px; color: var(--muted); text-align: center; }
.loading::before { content: ""; display: inline-block; width: 14px; height: 14px; border: 2px solid #cbd8ef; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; margin-right: 10px; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 1600px) { .main { padding-top: 42px; } }
@media (max-width: 1180px) { .app-shell { grid-template-columns: 195px minmax(0, 1fr); } .main { padding: 27px 24px 45px; } .topbar { padding: 15px 24px; } .sidebar { padding-left: 12px; padding-right: 12px; } .dashboard-grid { grid-template-columns: minmax(0, 1fr); } .dashboard-grid > .stack { display: grid; grid-template-columns: 1fr 1fr; align-items: start; } .detail-grid { grid-template-columns: 260px minmax(0, 1fr); } .settings-grid, .assistant-layout { grid-template-columns: 1fr; } .manager-desk { grid-template-columns: 220px minmax(0, 1fr); } .manager-dossier { grid-column: 2; grid-row: 1; position: static; margin-bottom: 18px; } .manager-ledger { grid-column: 2; grid-row: 2; } .manager-rail { grid-row: 1 / span 2; } }
@media (max-width: 850px) { .app-shell { grid-template-columns: 76px minmax(0, 1fr); } .sidebar { padding: 22px 9px; } .brand { padding: 0 8px 28px; } .brand-word, .nav-label, .nav-item .nav-text, .sidebar-bottom { display: none; } .nav-item { justify-content: center; padding: 13px 7px; } .nav-item.active { box-shadow: inset 3px 0 #709eff; } .nav-icon { font-size: 22px; } .metrics { grid-template-columns: 1fr 1fr; } .device-grid { grid-template-columns: 1fr; } .detail-grid { grid-template-columns: 1fr; } .login-story { padding: 45px 10%; } .login-story h1 { font-size: 33px; } .manager-home, .manager-desk { grid-template-columns: 1fr; } .manager-welcome { min-height: 430px; } .manager-rail { grid-row: auto; position: static; } .manager-rail .manager-archive { display: flex; max-height: none; overflow-x: auto; } .manager-rail .manager-archive-item { flex: 0 0 230px; border-right: 1px solid #eaf0f6; border-bottom: 0; } .manager-dossier, .manager-ledger { grid-column: 1; grid-row: auto; } }
@media (max-width: 600px) { .app-shell { display: block; padding-bottom: 66px; } .sidebar { height: auto; position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 5; padding: 7px 3px max(7px, env(safe-area-inset-bottom)); background: white; border-top: 1px solid var(--line); } .sidebar > .brand { display: none; } .nav { flex-direction: row; gap: 0; } .nav-item { flex: 1; color: var(--muted); display: flex; flex-direction: column; gap: 5px; padding: 6px 0; font-size: 9px; border-radius: 4px; } .nav-item .nav-text { display: block; } .nav-item.active { background: #edf2ff; color: var(--blue); box-shadow: none; } .nav-icon { font-size: 18px; } .main { padding: 24px 16px 35px; } .topbar { padding: 13px 16px; } .topbar-right .server-state { display: none; } .page-head { flex-direction: column; gap: 15px; } h1 { font-size: 26px; } .page-head p { font-size: 13px; } .onboard { flex-direction: column; align-items: flex-start; gap: 12px; } .metric { padding: 15px 20px; } .metric-value { font-size: 29px; } .dashboard-grid > .stack { display: flex; } .task-row { padding: 17px 15px; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; } .task-row > .actions { grid-column: 2; padding-left: 15px; } .task-detail { padding-left: 14px; } .task-time { font-size: 15px; } .panel-head, .panel-body { padding: 18px; } .toolbar { flex-direction: column; align-items: stretch; } .search { width: 100%; } .form-grid { grid-template-columns: 1fr; } .form-grid > .field { grid-column: 1; } .assistant-turn { padding: 16px; } .assistant-user { margin-left: 12px; } .assistant-reply { margin-right: 12px; } .login-layout { grid-template-columns: 1fr; } .login-story { display: none; } .login-form-area { min-height: 100vh; } .dialog-head { padding: 18px; } .dialog-body { padding: 20px 18px; } .pair-code { font-size: 25px; letter-spacing: 4px; } .manager-welcome { min-height: auto; padding: 34px 25px; } .manager-welcome::after { display: none; } .manager-turn { padding: 18px 14px; } .manager-user-entry { margin-left: 12px; } .manager-response { margin-right: 12px; grid-template-columns: 27px minmax(0, 1fr); gap: 8px; } .manager-response-mark { width: 27px; height: 27px; } .manager-composer { padding: 19px 16px; } .manager-saved { align-items: flex-start; flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
/* Keep employee/admin navigation usable after adding more workspace sections. */
@media (max-width: 600px) {
  .nav { overflow-x: auto; }
  .nav-item { flex: 0 0 72px; width: 72px; min-height: 56px; }
  .nav-item .nav-text { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
:is(.portal-management) {display:grid;gap:22px}
.portal-item-editor {border:1px solid #dfe6ef;padding:18px;margin:20px 0;border-radius:8px;min-width:0}
.portal-item-editor legend {padding:0 8px;font-weight:600}
.portal-share {background:#edf3fa;border:1px solid #dbe4ee;border-radius:8px;padding:20px;margin-bottom:20px}
.portal-share .mono {overflow-wrap:anywhere;user-select:all;font-size:16px}
.portal-share .actions {flex-wrap:wrap}
.payment-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.batch-band .payment-heading h2 {margin:0}
.payment-visibility {display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;min-width:0;max-width:100%;font-size:13px}
.payment-visibility label {display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer;max-width:100%;overflow-wrap:anywhere}
.payment-visibility input {appearance:none;-webkit-appearance:none;position:relative;flex:0 0 44px;width:44px;height:26px;min-height:26px;margin:0;padding:0;border:1px solid #8291a2;border-radius:20px;background:#8b98a7;cursor:pointer}
.payment-visibility input:before {content:'';position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:white;transition:transform .15s}
.payment-visibility input:checked {background:#177969;border-color:#177969}
.payment-visibility input:checked:before {transform:translateX(18px)}
.payment-visibility input:disabled {cursor:wait;opacity:.65}
.payment-visibility small {font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.payment-visibility[data-visible=true] small {color:var(--success)}
.payment-visibility[data-visible=unknown] small {color:var(--amber)}
.panel-head:has(.payment-visibility) {flex-wrap:wrap}
@media (max-width:760px) {
  .batch-workspace .batch-table-scroll {overflow:visible}
  .batch-workspace .batch-table,.batch-workspace .batch-table tbody {display:block;width:100%;min-width:0}
  .batch-workspace .batch-table thead {display:none}
  .batch-workspace .batch-table tr {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px;padding:18px 0;border-bottom:1px solid var(--line)}
  .batch-workspace .batch-table td {display:block;padding:0;max-width:none;min-width:0;border:0;line-height:1.75}
  .batch-workspace .batch-table td:before {content:attr(data-label);display:block;font-size:11px;font-weight:400;color:var(--muted);margin-bottom:4px}
  .batch-workspace .batch-table td:last-child:nth-child(odd) {grid-column:1/-1}
}
@media (max-width:600px) {
  .sidebar {overflow:visible}
  .sidebar .nav {flex:initial;overflow-x:auto;overflow-y:hidden;scrollbar-color:#afbdd0 transparent}
  .sidebar .nav-item {flex:0 0 80px;width:80px;min-height:64px;font-size:10px}
  .sidebar .nav-text {max-width:76px;min-height:27px;line-height:1.35;white-space:normal;overflow:visible;overflow-wrap:anywhere;text-align:center}
  .app-shell {padding-bottom:calc(96px + env(safe-area-inset-bottom, 0px))}
  .payment-heading {gap:6px}
  .payment-visibility {width:100%;justify-content:space-between;gap:4px 10px}
}
