:root {
  --primary: #326df5;
  --primary-deep: #1d50cd;
  --primary-soft: #e9f0ff;
  --ink: #17223b;
  --muted: #7b879f;
  --line: #dfe8f6;
  --bg: #f1f6ff;
  --card: #ffffff;
  --success: #22a56b;
  --success-soft: #e9f9f1;
  --warning: #df961d;
  --warning-soft: #fff6df;
  --danger: #e85b65;
  --danger-soft: #fff0f1;
  --sidebar: #182640;
  --sidebar-muted: #9dabc3;
  --shadow: 0 18px 50px rgba(59, 92, 153, 0.12);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.is-hidden { display: none !important; }

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  background:
    radial-gradient(circle at 16% 24%, rgba(82, 139, 255, 0.28), transparent 34%),
    linear-gradient(135deg, #172743 0 50%, #eef4ff 50% 100%);
}
.login-hero { color: #fff; padding: 9vh 8vw; position: relative; overflow: hidden; }
.login-hero::after {
  content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%; right: -180px; bottom: -190px; box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.02);
}
.brand-mark {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px;
  color: #fff; font-weight: 800; background: linear-gradient(135deg, #6b9aff, #316cf4);
  box-shadow: 0 10px 24px rgba(50,109,245,.32); flex: 0 0 auto;
}
.brand-mark--large { width: 58px; height: 58px; border-radius: 18px; font-size: 22px; margin-bottom: 60px; }
.eyebrow { margin: 0 0 10px; font-size: 12px; letter-spacing: .18em; font-weight: 700; color: #7ea5ff; }
.login-hero h1 { margin: 0; font-size: clamp(38px, 4vw, 62px); line-height: 1.28; letter-spacing: -.04em; }
.login-intro { color: #bdc9dc; max-width: 560px; font-size: 18px; line-height: 1.9; margin: 30px 0 52px; }
.hero-stats { display: flex; gap: 46px; }
.hero-stats div { display: flex; flex-direction: column; gap: 6px; }
.hero-stats strong { font-size: 22px; }
.hero-stats span { color: #9facbf; font-size: 13px; }
.login-panel { display: grid; place-items: center; padding: 50px; }
.login-card { width: min(460px, 100%); background: rgba(255,255,255,.95); border: 1px solid rgba(255,255,255,.8); border-radius: 28px; padding: 42px; box-shadow: var(--shadow); }
.login-card__head { margin-bottom: 28px; }
.login-card__head h2 { margin: 14px 0 8px; font-size: 30px; }
.login-card__head p { margin: 0; color: var(--muted); }
.demo-badge { padding: 5px 9px; border-radius: 8px; color: var(--primary); background: var(--primary-soft); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.form-stack { display: grid; gap: 18px; }
.form-stack label, .field { display: grid; gap: 8px; color: #495671; font-size: 13px; font-weight: 700; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--ink); background: #fff; outline: none; transition: .2s;
}
input:focus, select:focus, textarea:focus { border-color: #8eaffc; box-shadow: 0 0 0 4px rgba(50,109,245,.08); }
textarea { min-height: 120px; resize: vertical; }
.button { border: 0; border-radius: 12px; padding: 10px 16px; font-weight: 700; color: #41506d; background: #edf2fa; transition: transform .15s, box-shadow .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button--large { min-height: 50px; }
.button--primary { color: #fff; background: linear-gradient(135deg, #326df5, #427cff); box-shadow: 0 10px 20px rgba(50,109,245,.22); }
.button--ghost { background: #fff; border: 1px solid var(--line); box-shadow: none; }
.button--danger { color: var(--danger); background: var(--danger-soft); }
.button--success { color: var(--success); background: var(--success-soft); }
.button--small { padding: 7px 11px; border-radius: 9px; font-size: 12px; }
.text-button { border: 0; background: none; color: #8092b2; padding: 5px; }
.demo-accounts { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.demo-accounts p { margin: 0 0 12px; font-weight: 700; color: #5a6680; }
.demo-account-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 10px; }
.demo-account-grid button { border: 1px solid var(--line); border-radius: 10px; background: #f8faff; padding: 9px 6px; font-size: 12px; color: #4a5873; }
.demo-account-grid small { display: block; color: #9ca8bb; margin-top: 3px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 252px 1fr; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 252px; z-index: 5; display: flex; flex-direction: column; padding: 24px 18px; color: #fff; background: var(--sidebar); }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 0 7px 28px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-brand strong { display: block; font-size: 15px; }
.sidebar-brand span { display: block; margin-top: 4px; color: var(--sidebar-muted); font-size: 11px; }
.main-nav { display: grid; gap: 8px; margin-top: 24px; }
.nav-item { position: relative; width: 100%; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 13px; padding: 13px 14px; color: var(--sidebar-muted); background: transparent; text-align: left; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-item.is-active { color: #fff; background: linear-gradient(135deg, rgba(70,125,247,.34), rgba(70,125,247,.16)); box-shadow: inset 3px 0 #62e2c1; }
.nav-icon { width: 24px; text-align: center; font-size: 18px; }
.nav-item em { margin-left: auto; min-width: 22px; padding: 3px 6px; color: #cad6ec; background: rgba(255,255,255,.09); border-radius: 999px; font-size: 10px; font-style: normal; text-align: center; }
.sidebar-foot { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }
.user-mini { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; border-radius: 12px; background: #365c9f; font-weight: 800; }
.user-mini strong { display: block; font-size: 13px; }
.user-mini span { display: block; color: var(--sidebar-muted); font-size: 10px; margin-top: 3px; }
.workspace { grid-column: 2; min-width: 0; }
.topbar { min-height: 98px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 34px; background: rgba(255,255,255,.82); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.breadcrumb { margin: 0 0 5px; color: var(--muted); font-size: 12px; }
.topbar h2 { margin: 0; font-size: 24px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.date-pill { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 12px; color: #53617b; background: #f4f7fc; font-size: 12px; }
.date-pill > span:first-child { color: #4ad0a7; font-size: 9px; }
.page-content { padding: 28px 34px 50px; }

.welcome-strip { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 28px; border-radius: 20px; color: #fff; background: linear-gradient(120deg, #1b3156, #2a5fbd 62%, #3978ef); box-shadow: 0 18px 38px rgba(42,84,159,.18); overflow: hidden; position: relative; }
.welcome-strip::after { content: ""; position: absolute; width: 210px; height: 210px; border-radius: 50%; right: 8%; top: -130px; border: 40px solid rgba(255,255,255,.06); }
.welcome-strip h3 { margin: 0 0 7px; font-size: 24px; }
.welcome-strip p { margin: 0; color: #c9d7f0; font-size: 13px; }
.range-tabs { position: relative; z-index: 1; display: flex; gap: 5px; padding: 5px; border-radius: 12px; background: rgba(255,255,255,.1); }
.range-tabs button { border: 0; border-radius: 9px; padding: 8px 12px; color: #cbd7ea; background: transparent; font-size: 12px; }
.range-tabs button.is-active { color: #1e3f79; background: #fff; font-weight: 800; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.metric-card { min-height: 128px; padding: 20px; border: 1px solid rgba(210,223,243,.85); border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: 0 10px 28px rgba(60,92,150,.07); }
.metric-card p { margin: 0; color: var(--muted); font-size: 13px; }
.metric-card strong { display: block; margin: 12px 0 7px; font-size: 28px; }
.metric-card span { color: #9aa6ba; font-size: 11px; }
.metric-card--blue { background: linear-gradient(145deg, #fff, #eef4ff); }
.metric-card--green { background: linear-gradient(145deg, #fff, #ecfbf5); }
.metric-card--orange { background: linear-gradient(145deg, #fff, #fff7e7); }
.metric-card--pink { background: linear-gradient(145deg, #fff, #fff1f3); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); gap: 18px; }
.panel { border: 1px solid rgba(210,223,243,.85); border-radius: 19px; background: rgba(255,255,255,.95); box-shadow: 0 10px 28px rgba(60,92,150,.07); overflow: hidden; }
.panel + .panel { margin-top: 18px; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; border-bottom: 1px solid #edf1f8; }
.panel__head h3 { margin: 0 0 5px; font-size: 17px; }
.panel__head p { margin: 0; color: var(--muted); font-size: 11px; }
.panel__body { padding: 20px 22px; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 17px 20px; border-bottom: 1px solid #edf1f8; }
.toolbar input, .toolbar select { width: auto; min-width: 150px; padding: 9px 12px; }
.toolbar .search-input { min-width: 250px; }
.toolbar__spacer { margin-left: auto; }
.data-table-wrap { width: 100%; overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 960px; }
.data-table th { padding: 13px 14px; color: #73819a; background: #f8faff; border-bottom: 1px solid #e8eef7; font-size: 11px; font-weight: 700; text-align: left; white-space: nowrap; }
.data-table td { padding: 14px; border-bottom: 1px solid #edf1f7; color: #43506a; font-size: 12px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfdff; }
.customer-cell strong { display: block; color: var(--ink); font-size: 13px; margin-bottom: 4px; }
.customer-cell span { color: #929db1; font-size: 10px; }
.tag { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.tag--blue { color: #2d65dc; background: #edf3ff; }
.tag--green { color: #168355; background: #eaf8f1; }
.tag--orange { color: #b97512; background: #fff4dd; }
.tag--red { color: #c84f59; background: #ffedef; }
.tag--gray { color: #69768d; background: #f0f3f8; }
.actions { display: flex; gap: 7px; white-space: nowrap; }
.link-button { border: 0; color: var(--primary); background: transparent; padding: 4px; font-size: 11px; font-weight: 700; }
.chart-bars { height: 210px; display: flex; align-items: flex-end; justify-content: space-around; gap: 14px; padding-top: 22px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0 41px, #eff3f9 42px); }
.bar-item { height: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; }
.bar-item i { display: block; width: min(44px, 70%); min-height: 8px; border-radius: 8px 8px 2px 2px; background: linear-gradient(#6c96ff, #326df5); box-shadow: 0 8px 18px rgba(50,109,245,.18); }
.bar-item strong { font-size: 10px; }
.bar-item span { color: var(--muted); font-size: 10px; }
.rank-list { display: grid; gap: 9px; }
.rank-row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 12px; background: #f8faff; }
.rank-row em { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; color: #41618f; background: #eaf0fb; font-style: normal; font-size: 10px; }
.rank-row:nth-child(1) em { color: #a66c00; background: #fff2c9; }
.rank-row strong { display: block; font-size: 12px; }
.rank-row span { color: var(--muted); font-size: 10px; }
.rank-row > b { color: var(--primary); font-size: 12px; }
.empty-state { padding: 60px 24px; color: var(--muted); text-align: center; }
.empty-state strong { display: block; color: #53617a; margin-bottom: 7px; }
.section-lead { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 18px; }
.section-lead h3 { margin: 0 0 6px; font-size: 20px; }
.section-lead p { margin: 0; color: var(--muted); font-size: 12px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quick-card { border: 1px solid var(--line); border-radius: 17px; background: #fff; padding: 20px; box-shadow: 0 10px 25px rgba(60,92,150,.06); }
.quick-card__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--primary); background: var(--primary-soft); font-size: 18px; }
.quick-card h4 { margin: 16px 0 7px; }
.quick-card p { min-height: 40px; margin: 0 0 17px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.account-list { display: grid; gap: 10px; }
.account-row { display: grid; grid-template-columns: 1.2fr .8fr .8fr .8fr auto; align-items: center; gap: 14px; padding: 14px; border: 1px solid #edf1f7; border-radius: 13px; }
.account-row strong { font-size: 13px; }
.account-row span { color: var(--muted); font-size: 11px; }
.notice { padding: 13px 15px; border-radius: 12px; color: #53657f; background: #edf4ff; font-size: 11px; line-height: 1.7; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 30px; background: rgba(13,25,48,.48); backdrop-filter: blur(5px); }
.modal { width: min(780px, 96vw); max-height: 90vh; overflow: auto; border-radius: 22px; background: #fff; box-shadow: 0 30px 90px rgba(10,26,58,.32); }
.modal--wide { width: min(980px, 96vw); }
.modal__header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; padding: 21px 24px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.modal__header h3 { margin: 0; font-size: 20px; }
.icon-button { width: 36px; height: 36px; border: 0; border-radius: 10px; color: #68758d; background: #f1f4f9; font-size: 23px; }
.modal__body { padding: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field--full { grid-column: 1 / -1; }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.detail-item { padding: 13px; border-radius: 12px; background: #f7f9fd; }
.detail-item span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 6px; }
.detail-item strong { font-size: 12px; }
.timeline { display: grid; gap: 10px; margin-top: 16px; }
.timeline-item { position: relative; padding: 12px 12px 12px 34px; border: 1px solid #edf1f7; border-radius: 12px; font-size: 11px; color: #59667d; }
.timeline-item::before { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; left: 14px; top: 16px; background: var(--primary); }
.timeline-item strong { display: block; color: var(--ink); margin-bottom: 4px; }
.toast { position: fixed; z-index: 100; left: 50%; top: 22px; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; padding: 11px 18px; border-radius: 11px; color: #fff; background: #1b2a44; box-shadow: 0 12px 35px rgba(12,27,52,.25); font-size: 12px; transition: .25s; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast.is-error { background: #b7424b; }

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; margin: 0 0 22px; border-radius: 12px; background: #eef3fb; }
.auth-tabs button { border: 0; border-radius: 9px; padding: 10px; color: #728099; background: transparent; font-size: 12px; font-weight: 700; }
.auth-tabs button.is-active { color: var(--primary); background: #fff; box-shadow: 0 5px 15px rgba(43,73,129,.08); }
.form-hint { display: block; color: #8b97aa; font-size: 10px; line-height: 1.55; font-weight: 400; }
.form-message { padding: 12px 14px; margin-bottom: 16px; border-radius: 11px; color: #49627f; background: #edf4ff; font-size: 11px; line-height: 1.6; }
.form-message--success { color: #176f4d; background: #e9f9f1; }
.loading-state { min-height: 280px; display: grid; place-items: center; color: var(--muted); }
.card-list { display: grid; gap: 12px; }
.lead-cards { display: none; }
.split-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.status-select { min-width: 120px; padding: 7px 10px; border-radius: 9px; font-size: 11px; }
.pending-banner { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; padding: 16px 18px; border: 1px solid #ffe2a7; border-radius: 15px; color: #8c601b; background: #fff8e8; }
.pending-banner strong { display: block; margin-bottom: 4px; color: #714c13; }
.pending-banner span { font-size: 11px; }
.user-section-title { margin: 24px 0 12px; font-size: 15px; }
.role-chip { display: inline-flex; padding: 5px 8px; border-radius: 999px; color: #365a91; background: #edf3ff; font-size: 10px; font-weight: 700; }
.role-chip--owner { color: #8c6116; background: #fff3cf; }
.role-chip--channel { color: #7352a2; background: #f3ecff; }
.approval-pending { color: #a36a10; }
.approval-rejected { color: #c84f59; }
.rotation-list { display: grid; gap: 9px; }
.rotation-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #f9fbff; }
.rotation-row em { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: var(--primary); background: var(--primary-soft); font-style: normal; font-weight: 800; }
.rotation-row .actions button { padding: 5px 8px; }
.audit-list { display: grid; }
.audit-row { display: grid; grid-template-columns: 160px 110px 150px 1fr; gap: 14px; align-items: center; padding: 13px 18px; border-bottom: 1px solid #edf1f7; color: #56637a; font-size: 11px; }
.audit-row:first-child { color: #76839b; background: #f8faff; font-weight: 700; }
.detail-section { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.detail-section h4 { margin: 0 0 12px; }
.performance-summary { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.performance-summary strong { color: var(--primary); font-size: 20px; }
.import-result { max-height: 240px; overflow: auto; margin-top: 12px; }
.import-error-row { display: grid; grid-template-columns: 60px 120px 1fr; gap: 10px; padding: 8px 10px; border-bottom: 1px solid #edf1f7; color: #7c5360; font-size: 10px; }
.danger-text { color: var(--danger); }
.muted-text { color: var(--muted); }
.nowrap { white-space: nowrap; }
.content-grid > .panel:first-child .data-table { min-width: 620px; }
.lead-scope-tabs { width: max-content; margin: 0 0 16px; background: #e4edfc; }
.performance-add-button { margin-top: 16px; }
.performance-metrics { grid-template-columns: minmax(280px, 420px); }

.filter-bar { display: grid; grid-template-columns: minmax(220px, 1.7fr) repeat(4, minmax(120px, .7fr)); gap: 10px; margin: 0 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.92); }
.filter-bar input, .filter-bar select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; color: var(--ink); background: #fff; }
.grade { display: inline-grid; min-width: 30px; height: 30px; place-items: center; padding: 0 7px; border-radius: 9px; font-size: 12px; font-weight: 900; }
.grade--a { color: #a5444c; background: #ffe9eb; }
.grade--b { color: #a16b10; background: #fff2d3; }
.grade--c { color: #3264ba; background: #e9f1ff; }
.grade--unrated { color: #667085; background: #f0f2f5; }
.grade--level { color: #4b42a8; background: #efedff; }
.task-list { display: grid; padding: 8px 18px 18px; }
.task-row { display: grid; grid-template-columns: 38px minmax(180px,1fr) 110px 200px auto; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid #edf1f7; }
.task-row:last-child { border-bottom: 0; }
.task-row small { display: block; margin-top: 4px; color: var(--muted); }
.task-row--danger { margin: 2px -8px; padding: 13px 12px; border-radius: 12px; background: #fff4f4; }
.task-category { color: #53688e; font-weight: 700; }
.detail-hero { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: -4px 0 20px; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, #edf4ff, #f7fbff); }
.detail-hero h3 { display: inline-block; margin: 0 0 5px 8px; }
.detail-hero p { margin: 0; color: var(--muted); font-size: 11px; }
.action-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.quick-action { min-height: 52px; padding: 10px 12px; border: 1px solid #dce6f6; border-radius: 12px; color: #315f9f; background: #f5f9ff; font-weight: 700; }
.quick-action--danger { color: var(--danger); background: #fff4f4; border-color: #f5d8db; }
.timeline-item--special { border-color: #f0cb7e; background: #fff9e9; }
.check-field { display: flex; align-items: center; gap: 9px; min-height: 42px; color: #51617c; font-size: 11px; }
.check-field input { width: 16px; height: 16px; }
.sales-config-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.sales-config-card { display: grid; grid-template-columns: 1.2fr .65fr .8fr 1fr auto; align-items: end; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fbfdff; }
.sales-config-card > div strong, .sales-config-card > div span { display: block; }
.sales-config-card > div span { margin-top: 5px; color: var(--muted); font-size: 10px; }
.sales-config-card label { color: var(--muted); font-size: 10px; }
.sales-config-card select, .sales-config-card input { width: 100%; margin-top: 5px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.rules-panel { margin-top: 18px; }
.notification-list { display: grid; gap: 10px; }
.notification-item { display: grid; gap: 5px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; color: #5f6e86; }
.notification-item.is-unread { border-color: #aac7ff; background: #f0f6ff; }
.notification-item strong { color: var(--ink); }
.notification-item span, .notification-item small { font-size: 11px; }

button:disabled { cursor: not-allowed; opacity: .5; transform: none !important; }
.help-page { width: min(1080px, 100%); margin: 0 auto; }
.help-page a.button { text-decoration: none; }
.help-panel { margin-top: 18px; }
.acceptance-list { display: grid; gap: 12px; margin: 0 0 24px; padding-left: 25px; color: #4f5e78; line-height: 1.75; font-size: 13px; }
.acceptance-list li::marker { color: var(--primary); font-weight: 800; }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .filter-bar { grid-template-columns: repeat(2, 1fr); }
  .sales-config-grid { grid-template-columns: 1fr; }
  .task-row { grid-template-columns: 38px 1fr 110px auto; }
  .task-row > span:nth-of-type(2) { display: none; }
}
@media (max-width: 850px) {
  .login-shell { grid-template-columns: 1fr; background: #eef4ff; }
  .login-hero { display: none; }
  .login-panel { min-height: 100vh; padding: 24px; }
  .app-shell { grid-template-columns: 78px 1fr; }
  .sidebar { width: 78px; padding: 20px 10px; }
  .sidebar-brand div:last-child, .nav-item span:not(.nav-icon), .nav-item em, .user-mini div:last-child, .sidebar-foot .text-button { display: none; }
  .sidebar-brand { justify-content: center; padding: 0 0 20px; }
  .nav-item { justify-content: center; padding: 13px 8px; }
  .workspace { grid-column: 2; }
  .topbar { padding: 18px; }
  .topbar-actions .date-pill, .topbar-actions .button--ghost { display: none; }
  .page-content { padding: 18px; }
  .metric-grid, .quick-grid { grid-template-columns: 1fr; }
  .welcome-strip { align-items: flex-start; flex-direction: column; }
  .form-grid, .detail-grid { grid-template-columns: 1fr; }
  .filter-bar, .action-grid { grid-template-columns: 1fr; }
  .sales-config-card { grid-template-columns: 1fr 1fr; }
  .field--full, .form-actions { grid-column: 1; }
}
