:root {
  --bg: #f3f7f6;
  --panel: #ffffff;
  --ink: #1b3032;
  --muted: #657779;
  --line: #dce7e5;
  --primary: #17666b;
  --primary-dark: #123f43;
  --primary-soft: #e1f1ef;
  --accent: #c98755;
  --danger: #a83c3c;
  --danger-soft: #f9e8e8;
  --warning: #8a641f;
  --warning-soft: #fbf3df;
  --shadow: 0 12px 35px rgba(18, 54, 59, .07);
  --radius: 16px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: #12363b; color: #eaf3ed; padding: 24px 18px; display: flex; flex-direction: column; z-index: 10; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; margin: 0 6px 30px; }
.brand:hover { color: inherit; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, #287d80, #c98755); color: white; font-weight: 800; font-size: 21px; box-shadow: 0 8px 20px rgba(0,0,0,.22); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: .02em; }
.brand small { color: #a9bcb0; font-size: 11px; margin-top: 2px; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a { color: #b8c9bf; padding: 11px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.sidebar nav a:hover, .sidebar nav a.active { background: rgba(255,255,255,.09); color: #fff; }
.sidebar nav a.active { box-shadow: inset 3px 0 #c98755; }
.vendor-nav { border-top: 1px solid rgba(255,255,255,.13); margin-top: 18px; padding-top: 12px; }
.vendor-nav summary { cursor: pointer; color: #d5e4e2; font-size: 12px; font-weight: 700; padding: 10px 14px; }
.vendor-nav a { display: block; padding-left: 23px !important; }
.sidebar-footer { margin-top: auto; padding: 18px 8px 0; border-top: 1px solid rgba(255,255,255,.1); }
.user-card strong, .user-card small { display: block; }
.user-card small { color: #93aa9c; font-size: 11px; margin-top: 3px; overflow-wrap: anywhere; }
.link-button { border: 0; background: transparent; color: #c4d3ca; padding: 12px 0 0; }
.main { min-width: 0; padding: 30px 38px 50px; }
.topbar { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 24px; }
.topbar h1 { margin: 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; }
.topbar p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.top-actions { display: flex; gap: 10px; }
.footer { color: #7d8981; font-size: 12px; padding-top: 26px; text-align: center; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 22px; min-width: 0; }
.panel h2 { margin: 0 0 15px; font-size: 18px; }
.panel h3 { margin: 18px 0 10px; font-size: 15px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.panel-head h2 { margin: 0; }
.panel-head p, .panel p.muted { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(130px,1fr)); gap: 14px; margin-bottom: 22px; }
.metric { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 17px; box-shadow: 0 7px 22px rgba(27,54,39,.05); }
.metric span, .metric small { display: block; color: var(--muted); }
.metric span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.metric strong { display: block; font-size: 30px; margin: 8px 0 4px; letter-spacing: -.04em; }
.metric small { font-size: 11px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.compact-grid .panel { min-height: 100%; }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid #edf0ed; vertical-align: top; }
tbody tr:hover { background: #fafcf9; }
td strong, td small { display: block; }
td small { color: var(--muted); margin-top: 3px; max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px; background: #edf1ee; color: #445047; font-size: 10px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.badge-high, .badge-qualified, .badge-active, .badge-delivered, .badge-replied, .badge-sent, .badge-succeeded, .badge-admin { background: var(--primary-soft); color: var(--primary-dark); }
.badge-medium, .badge-submitted, .badge-operator, .badge-contacted { background: #eaf0fa; color: #325a90; }
.badge-low, .badge-warning, .badge-queued, .badge-pending, .badge-soft-bounce, .badge-running { background: var(--warning-soft); color: var(--warning); }
.badge-non-target, .badge-disqualified, .badge-hard-bounce, .badge-complaint, .badge-failed, .badge-dead, .badge-stopped, .badge-cancelled, .badge-unsubscribed { background: var(--danger-soft); color: var(--danger); }
.badge-unknown, .badge-viewer, .badge-draft, .badge-unverified, .badge-archived { background: #efeff4; color: #59596b; }
.badge-researching, .badge-scored { background: #f2ebfb; color: #6a3c97; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #cdd6cf; background: #fff; color: var(--ink); border-radius: 9px; padding: 9px 14px; font-weight: 700; font-size: 13px; min-height: 38px; }
.btn:hover { border-color: #a7b6aa; color: var(--primary-dark); background: #fbfcfb; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; border-color: var(--primary-dark); }
.btn-block { width: 100%; }
.stack-form { display: grid; gap: 13px; }
label { display: grid; gap: 6px; color: #49544d; font-size: 12px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #cfd8d1; background: #fff; color: var(--ink); border-radius: 9px; padding: 10px 11px; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: #4c9872; box-shadow: 0 0 0 3px rgba(23,107,70,.1); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.check { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 8px; }
.check input { width: auto; }
.filter-bar, .inline-controls { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar input { min-width: 260px; flex: 1; }
.filter-bar select, .inline-controls select { width: auto; min-width: 150px; }
.inline-controls input { min-width: 220px; flex: 1; }
.text-link { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 13px; }
.muted { color: var(--muted); font-size: 12px; }
.flash { border-radius: 10px; padding: 13px 16px; margin-bottom: 18px; border: 1px solid; transition: opacity .4s, transform .4s; }
.flash-success { background: var(--primary-soft); border-color: #b8dac6; color: var(--primary-dark); }
.flash-warning { background: var(--warning-soft); border-color: #e7d3a2; color: var(--warning); }
.flash-error { background: var(--danger-soft); border-color: #edbbbb; color: var(--danger); }
.fade-out { opacity: 0; transform: translateY(-5px); }
.empty { padding: 35px 16px; text-align: center; color: var(--muted); background: #fafbfa; border: 1px dashed #d9dfda; border-radius: 11px; }
.timeline { display: grid; gap: 5px; }
.timeline-item { display: grid; grid-template-columns: 12px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #eef1ef; }
.timeline-item .dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; }
.timeline-item strong { font-size: 13px; }
.timeline-item p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.usage-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.usage-grid div { background: #f8faf8; border: 1px solid #e6ebe7; padding: 13px; border-radius: 10px; }
.usage-grid span, .usage-grid strong { display: block; }
.usage-grid span { color: var(--muted); font-size: 11px; }
.usage-grid strong { margin-top: 5px; font-size: 20px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.record-hero { display: flex; align-items: center; gap: 20px; background: linear-gradient(135deg, #122a1e, #1e563a); color: #f1f7f3; border-radius: var(--radius); padding: 22px; margin-bottom: 22px; box-shadow: var(--shadow); }
.record-hero p { color: #c7d8cd; margin: 8px 0 0; line-height: 1.55; }
.record-hero .badge { border: 1px solid rgba(255,255,255,.16); }
.record-hero .action-cluster { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.record-hero .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: white; }
.score-ring { width: 84px; height: 84px; flex: 0 0 84px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: rgba(255,255,255,.09); border: 2px solid rgba(213,170,85,.7); }
.score-ring strong { font-size: 29px; line-height: 1; }
.score-ring span { color: #bcd0c3; font-size: 10px; }
.record-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.action-cluster { display: flex; gap: 8px; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; align-items: center; font-size: 12px; }
.chips span { background: var(--primary-soft); color: var(--primary-dark); border-radius: 999px; padding: 5px 9px; }
.chips em { color: var(--muted); }
.assessment-list details, .message-list details { border: 1px solid var(--line); border-radius: 11px; margin-bottom: 9px; overflow: hidden; }
.assessment-list summary, .message-list summary { list-style: none; cursor: pointer; padding: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fafbfa; }
.assessment-list summary::-webkit-details-marker, .message-list summary::-webkit-details-marker { display: none; }
.assessment-list details > p { padding: 0 14px; line-height: 1.6; font-size: 13px; }
.assessment-list details > small { display: block; padding: 10px 14px 14px; color: var(--muted); }
.dimension-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 0 14px; }
.dimension-grid div { background: #f4f7f4; padding: 9px; border-radius: 8px; }
.dimension-grid span, .dimension-grid strong { display: block; }
.dimension-grid span { color: var(--muted); font-size: 10px; }
.dimension-grid strong { margin-top: 3px; }
.evidence-list, .contact-cards { display: grid; gap: 10px; max-height: 680px; overflow: auto; padding-right: 3px; }
.evidence-list article, .contact-cards article { border: 1px solid #e4e9e5; border-radius: 10px; padding: 13px; }
.evidence-list article > div, .contact-cards article > div { display: flex; justify-content: space-between; gap: 12px; }
.evidence-list p { font-size: 13px; line-height: 1.6; }
.evidence-list small, .contact-cards small { color: var(--muted); font-size: 11px; display: block; margin-top: 7px; }
.contact-cards p { margin: 6px 0; color: var(--muted); font-size: 12px; }
.inline-form { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 13px; }
.inline-form summary { cursor: pointer; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.sequence-card { border: 1px solid var(--line); color: var(--ink); border-radius: 12px; padding: 16px; transition: transform .15s, box-shadow .15s; }
.sequence-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.sequence-card > div { display: flex; justify-content: space-between; gap: 10px; }
.sequence-card h3 { margin: 0; }
.sequence-card p { color: var(--muted); min-height: 40px; font-size: 12px; line-height: 1.5; }
.sequence-card small { color: #748077; font-size: 10px; }
.note-panel { background: #12363b; color: white; border-color: #12363b; }
.note-panel p { color: #c4d2c9; line-height: 1.6; }
.step-list { display: grid; gap: 12px; }
.step-list article { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 12px; border: 1px solid var(--line); border-radius: 11px; padding: 13px; }
.step-number { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: white; font-weight: 800; }
.step-list h3 { margin: 0 0 7px; }
.step-list p { margin: 0; white-space: pre-line; max-height: 130px; overflow: hidden; color: #4d5951; font-size: 12px; line-height: 1.5; }
.step-list small { display: block; margin-top: 8px; color: var(--muted); }
.token-help { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.token-help strong { width: 100%; font-size: 12px; }
.token-help code { background: #eef3ef; border-radius: 6px; padding: 4px 6px; font-size: 10px; }
.message-list { display: grid; gap: 8px; }
.message-list summary { display: grid; grid-template-columns: 76px minmax(0,1fr) auto; }
.message-list summary div strong, .message-list summary div small { display: block; }
.message-list summary small { color: var(--muted); margin-top: 4px; font-size: 10px; }
.message-direction { color: var(--muted); text-transform: uppercase; font-size: 10px; font-weight: 800; }
.message-body { padding: 15px; }
.message-body pre { white-space: pre-wrap; font-family: inherit; line-height: 1.6; background: #f8faf8; border-radius: 9px; padding: 13px; }
dl { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 5px 12px; font-size: 11px; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.json-view { white-space: pre-wrap; max-width: 500px; font-size: 10px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.mini-list { display: grid; gap: 8px; }
.mini-list > div { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #edf0ed; }
.mini-list strong, .mini-list small { display: block; }
.mini-list small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.secret-reveal { display: flex; align-items: center; gap: 12px; background: #fff4d8; border: 1px solid #e8cf8f; padding: 14px; border-radius: 11px; margin-bottom: 18px; }
.secret-reveal code { flex: 1; background: white; padding: 8px; border-radius: 7px; overflow-wrap: anywhere; }
.login-body { min-height: 100vh; background: #10251a; display: grid; place-items: center; padding: 30px; }
.login-wrap { width: min(1050px, 100%); display: grid; grid-template-columns: 1.25fr .75fr; border-radius: 24px; overflow: hidden; box-shadow: 0 35px 90px rgba(0,0,0,.35); }
.login-intro { padding: clamp(38px,7vw,80px); background: linear-gradient(145deg, rgba(21,73,48,.96), rgba(13,36,24,.98)), radial-gradient(circle at top right,#c59036,transparent 45%); color: white; }
.brand-large { margin: 0 0 60px; }
.brand-large .brand-mark { width: 50px; height: 50px; font-size: 25px; }
.login-intro h1 { font-size: clamp(34px,5vw,58px); line-height: 1.05; letter-spacing: -.045em; max-width: 700px; margin: 0; }
.login-intro > p { color: #c8d8ce; font-size: 16px; line-height: 1.7; max-width: 660px; }
.login-points { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 30px; }
.login-points span { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); padding: 7px 10px; border-radius: 999px; font-size: 11px; }
.login-card { background: #fff; padding: clamp(35px,5vw,60px); display: flex; flex-direction: column; justify-content: center; }
.login-card h2 { font-size: 25px; margin: 0; }
.login-card > p { color: var(--muted); margin: 7px 0 24px; }
.login-card .muted { margin-top: 18px; line-height: 1.5; }
@media (max-width: 1200px) {
  .metric-grid { grid-template-columns: repeat(3,1fr); }
  .grid-3, .card-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; padding: 14px; }
  .sidebar .brand { margin-bottom: 12px; }
  .sidebar nav { display: flex; overflow-x: auto; }
  .sidebar nav a { white-space: nowrap; }
  .sidebar-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 10px; padding-top: 10px; }
  .sidebar-footer .user-card { min-width: 0; }
  .sidebar-footer .link-button { padding: 5px 0; white-space: nowrap; }
  .main { padding: 22px 18px 40px; }
  .grid-2, .grid-3, .card-grid { grid-template-columns: 1fr; }
  .record-hero { align-items: flex-start; flex-wrap: wrap; }
  .record-hero .action-cluster { margin-left: 0; width: 100%; justify-content: flex-start; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-intro { display: none; }
}
@media (max-width: 600px) {
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .usage-grid { grid-template-columns: repeat(2,1fr); }
  .form-row { grid-template-columns: 1fr; }
  .topbar { display: block; }
  .top-actions { margin-top: 14px; }
  .filter-bar, .inline-controls { display: grid; grid-template-columns: 1fr; }
  .filter-bar input, .filter-bar select, .inline-controls input, .inline-controls select { min-width: 0; width: 100%; }
  .dimension-grid { grid-template-columns: repeat(2,1fr); }
  .message-list summary { grid-template-columns: 1fr auto; }
  .message-direction { display: none; }
  .secret-reveal { align-items: stretch; flex-direction: column; }
}
.inline-mini { display: inline; margin-left: 6px; }
.link-button.dark { color: var(--primary); padding: 0; font-size: 11px; }
.review-actions { display: flex; gap: 8px; align-items: center; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.review-actions .btn { min-height: 32px; padding: 6px 10px; }
.review-result { margin-left: auto; color: var(--muted); font-size: 11px; }
.report-metrics { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
.badge-accepted { background: var(--primary-soft); color: var(--primary-dark); }
.badge-rejected { background: var(--danger-soft); color: var(--danger); }
@media (max-width: 900px) { .report-metrics { grid-template-columns: repeat(2,1fr); } }
.process-strip { display: grid; grid-template-columns: repeat(4,1fr); overflow: hidden; border-radius: 14px; background: #12363b; color: #e7f3f1; margin-bottom: 20px; box-shadow: var(--shadow); }
.process-strip span { padding: 16px 18px; border-left: 3px solid var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.process-strip span + span { border-left-color: rgba(201,135,85,.55); }
.business-metrics { grid-template-columns: repeat(4,minmax(150px,1fr)); }
.business-metrics .metric:first-child { border-top: 3px solid var(--accent); }
.business-metrics .metric strong { font-family: Georgia, serif; font-size: 35px; }
.work-list { display: grid; }
.work-list > a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.work-list > a:last-child { border-bottom: 0; }
.work-list strong, .work-list small { display: block; }
.work-list strong { color: var(--ink); font-size: 14px; }
.work-list small { color: var(--muted); margin-top: 4px; font-size: 12px; }
.work-arrow { white-space: nowrap; font-size: 12px; font-weight: 700; }
.vendor-panel { margin: 4px 0 22px; }
.vendor-panel > summary { cursor: pointer; padding: 14px 18px; border: 1px dashed #9cb7b4; border-radius: 12px; color: var(--primary-dark); background: #edf5f3; font-weight: 700; }
.vendor-panel[open] > summary { margin-bottom: 16px; }
.company-description { line-height: 1.65; color: #3e5254; }
.technical-details { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.technical-details summary { cursor: pointer; color: var(--primary); font-size: 12px; }
.message-note { color: var(--danger); font-size: 12px; }
:focus-visible { outline: 3px solid #c98755; outline-offset: 2px; }
@media (max-width: 900px) { .business-metrics { grid-template-columns: repeat(2,1fr); } .process-strip { grid-template-columns: repeat(2,1fr); } .sidebar nav .vendor-nav { flex: 0 0 auto; } }
@media (max-width: 600px) { .process-strip { grid-template-columns: 1fr 1fr; } .process-strip span { padding: 12px; font-size: 11px; } .business-metrics { grid-template-columns: repeat(2,1fr); } .work-list > a { align-items: flex-start; } }
.admin-portal { --bg: #f6f5f1; --primary: #72532f; --primary-dark: #4f3922; --primary-soft: #f3eadc; --line: #e6dfd3; --accent: #bb8253; }
.admin-portal .sidebar { background: #252a2d; }
.admin-portal .brand-mark { background: linear-gradient(145deg,#a77748,#5c6265); }
.admin-portal .sidebar nav a.active { box-shadow: inset 3px 0 #d5a874; }
.admin-portal .topbar { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.metric-link { color: var(--ink); display: block; transition: transform .15s, border-color .15s; }
.metric-link:hover { color: var(--ink); border-color: var(--primary); transform: translateY(-2px); }
.progress-steps { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 8px; padding: 0; margin: 18px 0; }
.progress-steps li { border-top: 3px solid var(--line); padding: 12px 8px; display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.progress-steps li.is-done { border-color: var(--primary); color: var(--ink); }
.progress-steps strong, .progress-steps small { display: block; }
.progress-dot { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #e9eeee; color: var(--muted); font-weight: 800; }
.is-done .progress-dot { background: var(--primary); color: #fff; }
.business-timeline { display: grid; gap: 0; max-height: 540px; overflow: auto; }
.business-timeline > div { display: grid; grid-template-columns: 95px minmax(0,1fr); gap: 13px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.business-timeline time, .business-timeline small { color: var(--muted); font-size: 11px; }
.business-timeline strong, .business-timeline small { display: block; }
.business-timeline strong { font-size: 13px; }
.business-timeline small { margin-top: 4px; white-space: normal; overflow-wrap: anywhere; }
.conversation-list { display: grid; gap: 15px; }
.conversation-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fcfdfc; }
.conversation-card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.conversation-card h2 { margin: 0 0 4px; font-size: 17px; }
.conversation-card header small { color: var(--muted); }
.conversation-message { border-top: 1px solid var(--line); }
.conversation-message summary { display: flex; align-items: center; gap: 10px; padding: 12px 2px; cursor: pointer; font-size: 12px; }
.conversation-message summary strong { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.conversation-message summary small { color: var(--muted); white-space: nowrap; }
.conversation-message .message-body { padding: 0 8px 12px; }
.conversation-message pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 380px; overflow: auto; }
.funnel-metrics { grid-template-columns: repeat(4,minmax(150px,1fr)); margin-bottom: 8px; }
.quality-details > summary { cursor: pointer; padding: 15px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; font-weight: 700; margin-bottom: 15px; }
@media (max-width: 1200px) { .funnel-metrics { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 900px) { .progress-steps { grid-template-columns: repeat(3,1fr); } .funnel-metrics { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .progress-steps { grid-template-columns: repeat(2,1fr); } .business-timeline > div { grid-template-columns: 72px minmax(0,1fr); } .conversation-message summary { flex-wrap: wrap; } .conversation-message summary strong { flex-basis: 100%; order: 2; } }
.admin-intro { background: #252a2d; color: #f7f4ee; border-radius: var(--radius); padding: 27px 30px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.admin-intro h2 { margin: 7px 0 5px; font-size: 25px; }
.admin-intro p { margin: 0; color: #bfc4c3; font-size: 13px; }
.admin-intro .eyebrow { color: #d5a874; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.admin-state { white-space: nowrap; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 8px 12px; font-size: 12px; }
.admin-metrics { grid-template-columns: repeat(4,minmax(140px,1fr)); }
.readiness-list { display: grid; gap: 0; margin-bottom: 12px; }
.readiness-list > div { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.admin-actions { display: grid; gap: 8px; }
.admin-actions a { display: flex; justify-content: space-between; padding: 12px 14px; background: #f9f7f3; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-weight: 700; font-size: 13px; }
.admin-actions a:hover { color: var(--primary-dark); border-color: #c6ad8e; }
@media (max-width: 900px) { .admin-metrics { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .admin-intro { display: block; } .admin-state { display: inline-flex; margin-top: 14px; } }
.admin-login { background: #252a2d; --primary: #72532f; --primary-dark: #4f3922; }
.admin-login .login-intro { background: linear-gradient(145deg,#41474a,#252a2d); }
.admin-login .brand-mark { background: linear-gradient(145deg,#a77748,#5c6265); }

/* HUAMICA customer workspace — material layers, clear daily work. */
:root { --bg:#f3f6fa; --ink:#24344a; --muted:#687a8e; --line:#e1e8f0; --primary:#246a78; --primary-dark:#194957; --primary-soft:#e6f2f4; --accent:#d8a076; --radius:18px; font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; }
.ui-icon { width:20px; height:20px; flex:0 0 20px; vertical-align:middle; }
.skip-link { position:fixed; top:-60px; left:20px; z-index:100; padding:12px 20px; background:white; border-radius:8px; }
.skip-link:focus { top:12px; }
:focus-visible { outline:3px solid #7cb9c4; outline-offset:4px; }
.app-shell { grid-template-columns:236px minmax(0,1fr); }
.sidebar { background:#101d32; padding:30px 20px 24px; border-right:1px solid rgba(255,255,255,.08); }
.brand { gap:13px; margin:0 8px 42px; }
.brand strong { font-family:"SF Pro Display",Bahnschrift,-apple-system,sans-serif; font-size:21px; letter-spacing:.12em; }
.brand small { font-size:11px; letter-spacing:.09em; color:#a3b6ca; margin-top:7px; }
.brand-mark { position:relative; flex:0 0 37px; width:37px; height:43px; background:transparent; box-shadow:none; border-radius:0; }
.brand-mark i { position:absolute; width:30px; height:20px; left:3px; border:1px solid #d8a076; background:#183148; transform:skewY(-25deg); }
.brand-mark i:nth-child(1) { top:18px; opacity:.45; }
.brand-mark i:nth-child(2) { top:10px; opacity:.75; }
.brand-mark i:nth-child(3) { top:2px; background:linear-gradient(130deg,#eed0b5,#b57d58); border-color:#eed0b5; }
.sidebar nav { display:flex; flex-direction:column; gap:8px; }
.nav-caption { color:#748aa2; font-size:10px; letter-spacing:.18em; padding:0 14px 12px; }
.sidebar nav > a { display:flex; align-items:center; gap:13px; color:#a9bbce; padding:13px 15px; font-weight:500; font-size:14px; }
.sidebar nav > a.active { background:linear-gradient(100deg,rgba(112,187,199,.18),rgba(112,187,199,.06)); box-shadow:inset 2px 0 #d8a076; color:#f2f6fb; }
.sidebar nav > a:hover { background:rgba(255,255,255,.06); }
.sidebar nav > a.active .ui-icon { color:#e2b894; }
.workspace-note { margin:38px 8px 0; padding:18px 12px 0; border-top:1px solid rgba(255,255,255,.08); color:#a0b3c8; }
.workspace-note strong { display:block; font-size:12px; color:#ccd8e6; margin-top:12px; font-weight:500; }
.workspace-note p { font-size:11px; line-height:1.9; margin-bottom:0; }
.note-orbit { color:#8bbfc7; }
.sidebar-footer { border-color:rgba(255,255,255,.08); }
.user-card small { color:#9bafc5; }
.main { padding:0 36px 35px; }
.workspace-bar { display:flex; gap:18px; align-items:center; height:83px; border-bottom:1px solid var(--line); margin-bottom:29px; font-size:12px; }
.workspace-breadcrumb { color:var(--muted); min-width:0; }
.workspace-breadcrumb > span { margin:0 12px; color:#abb9c8; }
.global-search { display:flex; align-items:center; gap:8px; margin-left:auto; width:240px; color:var(--muted); }
.global-search input { border:0; background:transparent; padding:8px 2px; font-size:12px; min-width:0; }
.workspace-user { display:flex; align-items:center; gap:9px; white-space:nowrap; font-size:12px; }
.avatar { display:inline-grid; place-items:center; width:31px; height:31px; border-radius:50%; background:#e4ecf3; color:#354c64; font-weight:600; }
.menu-toggle, .nav-scrim { display:none; }
.page-heading { margin-bottom:26px; align-items:center; }
.page-heading h1 { font-size:27px; font-weight:650; letter-spacing:-.045em; }
.page-heading p { font-size:12px; line-height:1.8; }
.btn { gap:8px; min-height:41px; border-radius:10px; font-size:12px; font-weight:600; }
.btn .ui-icon { width:16px; height:16px; flex-basis:16px; }
.panel { box-shadow:0 8px 30px rgba(21,40,66,.035); padding:24px; }
.panel h2 { font-weight:600; }
input, select, textarea { border-color:#d8e2ec; }
input:focus, select:focus, textarea:focus { border-color:#6fa9b7; box-shadow:0 0 0 3px rgba(112,187,199,.15); }
label { color:#4b5d73; }
th { letter-spacing:.03em; }
td { padding:18px 12px; border-color:#edf1f6; line-height:1.7; }
tbody tr:hover { background:#f6f9fc; }
.metric strong { font-variant-numeric:tabular-nums; }
.record-hero { background:radial-gradient(ellipse at top right,#284760,transparent 65%),#172a42; padding:28px; }
.record-hero p { color:#bacadc; }
.score-ring { border-color:#d8a076; }
.company-monogram { display:inline-grid; place-items:center; flex:0 0 39px; width:39px; height:39px; background:#e9f0f6; border:1px solid #dbe5ee; border-radius:11px; color:#426079; font-family:Bahnschrift,sans-serif; font-size:17px; }
.eyebrow { font-family:Bahnschrift,-apple-system,sans-serif; font-size:10px; font-weight:500; letter-spacing:.19em; }
/* Showcase home. Decorative material artwork does not encode business results. */
.client-home { --bg:#101d32; --panel:#17273d; --ink:#edf3fa; --muted:#a6b9ce; --line:#2a3b52; --primary:#90c7d0; --primary-dark:#cce8eb; --primary-soft:#233e50; }
.client-home .main { background:radial-gradient(ellipse at 86% 4%,rgba(80,120,151,.15),transparent 40%); }
.client-home .sidebar { background:#0c182b; }
.client-home .workspace-bar { border-color:rgba(255,255,255,.08); }
.client-home .workspace-user .avatar { background:#2a3d53; color:#e6d4c3; }
.client-home .page-heading h1 { font-size:22px; font-weight:500; }
.client-home .page-heading .btn-primary { background:#d8a076; border-color:#d8a076; color:#192a3c; }
.client-home .btn:not(.btn-primary) { background:#1e3047; color:#d4e2ee; border-color:#3d536c; }
.discovery-hero { display:grid; grid-template-columns:1.3fr 1fr; position:relative; overflow:hidden; min-height:315px; border:1px solid #30445c; border-radius:24px; background:radial-gradient(ellipse at 80% 30%,#29435b 0,transparent 52%),linear-gradient(125deg,#1a2f48,#17263b); margin-bottom:25px; }
.hero-copy { padding:34px 38px 29px; position:relative; z-index:1; }
.hero-copy > .eyebrow { color:#ddb691; }
.hero-copy h2 { font-family:"SF Pro Display",-apple-system,"PingFang SC",sans-serif; font-size:clamp(27px,3.15vw,44px); font-weight:550; letter-spacing:-.055em; line-height:1.4; margin:14px 0 13px; }
.hero-copy h2 > span { color:#d8a076; }
.hero-copy > p { font-size:12px; color:#a7bdd2; line-height:1.9; margin:0; }
.hero-tags { display:flex; flex-wrap:wrap; gap:18px; margin-top:22px; color:#c9d9e7; font-size:11px; }
.hero-tags > span { display:flex; align-items:center; gap:8px; }
.hero-tags .ui-icon { width:15px; height:15px; flex-basis:15px; color:#87bcc7; }
.material-scene { position:relative; display:grid; place-items:center; min-width:0; overflow:hidden; }
.material-stack { width:235px; height:150px; position:relative; margin-top:-22px; transform:rotate(-16deg) skewY(11deg); animation:material-float 8s ease-in-out infinite; }
.material-slab { position:absolute; width:235px; height:145px; border-radius:12px; border:1px solid rgba(255,255,255,.25); box-shadow:8px 20px 22px rgba(2,11,22,.25); }
.slab-bottom { transform:translate(-15px,40px); background:repeating-linear-gradient(0deg,#275568,#275568 1px,#23475d 2px,#23475d 6px); }
.slab-middle { transform:translate(-7px,20px); background:linear-gradient(150deg,#c99872,#74513e); border-color:#d7b08a; }
.slab-top { background:repeating-linear-gradient(110deg,transparent 0,rgba(255,255,255,.015) 2px,transparent 4px),linear-gradient(130deg,#c0cfdb,#7d99ac 45%,#365774); }
.slab-top > span { position:absolute; bottom:22px; left:23px; font-size:14px; font-family:Bahnschrift,sans-serif; letter-spacing:.25em; color:#e3eaf0; }
.slab-top > i { position:absolute; width:60px; height:60px; right:22px; top:20px; border:1px solid rgba(255,255,255,.35); border-radius:50%; }
.slab-top > i::before { content:""; position:absolute; inset:10px; border:1px solid rgba(255,255,255,.3); border-radius:50%; }
.scene-orbit { position:absolute; width:355px; height:355px; border:1px solid rgba(145,186,212,.12); border-radius:50%; }
.orbit-two { width:440px; height:440px; border-style:dashed; opacity:.5; }
.scene-caption { position:absolute; bottom:34px; font-family:Bahnschrift,sans-serif; font-size:8px; letter-spacing:.22em; color:#95adc1; }
.hero-foot { grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:center; gap:14px; padding:14px 38px; border-top:1px solid rgba(255,255,255,.08); font-size:10px; color:#9db2c8; background:rgba(10,23,39,.23); }
.sync-state { display:inline-flex; align-items:center; gap:7px; color:#bbc8d6; }
.sync-state > i { width:6px; height:6px; border-radius:50%; background:#d8a076; }
.sync-state.is-fresh > i { background:#8ec7c5; box-shadow:0 0 0 4px rgba(142,199,197,.08); }
.automation-label { margin-left:auto; }
.section-line { display:flex; justify-content:space-between; align-items:flex-end; gap:20px; margin:0 0 18px; }
.section-line .eyebrow { color:#7f9bb6; font-size:9px; }
.section-line h2 { margin:7px 0 0; font-size:18px; font-weight:500; }
.section-line p { margin:0; color:#829bb6; font-size:10px; }
.development-track { margin:29px 0; }
.stage-rail { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); border:1px solid #2b3d55; border-radius:16px; overflow:hidden; background:#15253b; }
.stage-node { padding:18px 19px; border-right:1px solid #2b3d55; color:#b1c3d7; transition:background .2s; }
.stage-node:last-child { border-right:0; }
.stage-node:hover { background:#1d344d; color:#e2edf5; }
.stage-node > span:not(.stage-index) { display:block; font-size:11px; margin:8px 0 14px; }
.stage-index { font-family:Bahnschrift,sans-serif; font-size:9px; letter-spacing:.15em; color:#607e9c; }
.stage-node.has-records .stage-index { color:#d3ac89; }
.stage-node strong { display:block; font-family:Bahnschrift,sans-serif; font-size:29px; color:#eef4fa; font-weight:500; font-variant-numeric:tabular-nums; }
.stage-node small { display:block; margin-top:5px; font-size:9px; color:#7e9bb6; }
.daily-goal { display:grid; grid-template-columns:1.3fr 1fr auto; align-items:center; gap:30px; padding:22px 26px; border:1px solid #2f425b; border-radius:17px; margin-bottom:24px; background:linear-gradient(110deg,#1b2e46,#16273c); }
.daily-goal .eyebrow { font-size:8px; color:#c39d7e; }
.daily-goal h2 { margin:7px 0; font-size:17px; font-weight:500; }
.daily-goal p { margin:0; font-size:10px; color:#8ea8c2; line-height:1.6; }
.goal-value > strong { font-family:Bahnschrift,sans-serif; font-size:36px; font-weight:500; }
.goal-value > span { margin-left:8px; font-size:11px; color:#9cb4cb; }
.goal-track { width:100%; height:4px; border-radius:4px; background:#31445b; margin-top:12px; overflow:hidden; }
.goal-track > i { display:block; height:100%; border-radius:4px; background:linear-gradient(90deg,#75bac7,#d8a076); transition:width .5s; }
.goal-total { border-left:1px solid #35485f; padding-left:25px; display:flex; align-items:center; gap:12px; }
.goal-total > strong { font-size:28px; font-family:Bahnschrift,sans-serif; font-weight:500; }
.goal-total > span { font-size:9px; line-height:1.7; color:#8fa8c1; }
.client-home .metric { background:#172a41; border-color:#2c4058; box-shadow:none; }
.client-home .metric strong { color:#edf3fa; font-family:Bahnschrift,-apple-system,sans-serif; font-weight:500; }
.client-home .metric span { letter-spacing:0; color:#afc4d7; }
.client-home .metric small { color:#8ba5be; line-height:1.7; }
.client-home .panel { border-color:#2b4057; box-shadow:none; }
.client-home .panel-head h2 { font-size:16px; font-weight:500; }
.client-home .panel-head p { color:#8fa7bf; }
.client-home .empty { background:rgba(10,23,38,.16); border-color:#3b516a; color:#a2b8cd; font-size:12px; }
.client-home .work-list a { color:#e1ebf4; border-color:#30435a; background:transparent; }
.client-home .work-list a:hover { background:#20364d; }
.client-home .work-list small { color:#8ca7c1; }
.client-home th { color:#8ea6bf; border-color:#30435a; }
.client-home td { border-color:#263b53; }
.client-home td small { color:#819db7; }
.client-home tbody tr:hover { background:#1d334a; }
.client-home .badge { background:#2e4357; color:#bbcedd; }
.client-home .badge-high { background:#2c4853; color:#a8d3d2; }
.client-home .footer { color:#68849f; }
@keyframes material-float { 0%,100% { transform:rotate(-16deg) skewY(11deg) translateY(0); } 50% { transform:rotate(-16deg) skewY(11deg) translateY(-8px); } }
/* Sales and conversations use the quiet, light workspace. */
.sales-overview { background:radial-gradient(ellipse at top right,#e1edf3,transparent 60%),#edf2f7; padding:27px 30px; border:1px solid #dce6ef; border-radius:18px; margin-bottom:24px; }
.sales-overview > .eyebrow { color:#7c94a7; }
.sales-overview h2 { font-size:23px; font-weight:550; margin:10px 0; }
.sales-overview p { font-size:12px; color:var(--muted); margin:0; }
.sales-tabs { display:flex; gap:7px; flex-wrap:wrap; margin-bottom:23px; }
.sales-tabs a { display:flex; gap:12px; align-items:center; padding:11px 17px; border-radius:10px; color:#74859a; font-size:12px; }
.sales-tabs a.active { background:#fff; color:#22475b; box-shadow:0 5px 15px rgba(20,40,70,.05); }
.sales-tabs strong { border-radius:5px; background:#e7edf3; font-size:10px; padding:3px 6px; }
.sales-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.sales-card { border:1px solid #dfe7ef; border-radius:16px; padding:23px; background:white; }
.sales-card-top { display:flex; justify-content:space-between; align-items:center; }
.sales-card h2 { font-size:17px; margin:19px 0 8px; }
.sales-card h2 a { color:#263d53; }
.sales-card > p { font-size:11px; color:#8392a4; line-height:1.7; }
.sales-owner, .sales-next { display:flex; gap:9px; align-items:center; font-size:11px; color:#6a7e91; margin-top:16px; }
.sales-owner .ui-icon, .sales-next .ui-icon { width:16px; height:16px; flex-basis:16px; }
.sales-card > .btn { margin-top:25px; width:100%; }
.sales-empty { text-align:center; padding:58px 20px; }
.empty-orbit { display:inline-grid; place-items:center; height:66px; width:66px; border-radius:50%; background:#eef4f8; color:#829fb4; margin-bottom:20px; }
.sales-empty > h2 { font-weight:500; }
.sales-empty > p { font-size:12px; color:#7b8da1; line-height:1.8; }
.sales-empty .btn { margin-top:18px; }
.inbox-layout { display:grid; grid-template-columns:255px minmax(0,1fr); gap:24px; }
.inbox-people { border-right:1px solid var(--line); padding-right:19px; }
.inbox-caption { display:flex; justify-content:space-between; font-size:11px; color:#8b9aad; margin:7px 0 15px; }
.inbox-person { display:flex; gap:10px; text-align:left; align-items:center; width:100%; border:0; border-radius:11px; padding:13px 8px; margin-bottom:7px; color:#526a82; background:transparent; }
.inbox-person.is-selected { background:#eaf1f6; color:#223f58; }
.inbox-person:hover { background:#f0f5f9; }
.inbox-person > span:nth-child(2) { min-width:0; flex:1; }
.inbox-person strong { display:block; font-size:12px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.inbox-person small { display:block; font-size:10px; color:#8b9aad; margin-top:6px; }
.inbox-person > .ui-icon { width:14px; height:14px; flex-basis:14px; }
.inbox-person .company-monogram { width:33px; height:33px; flex-basis:33px; font-size:13px; border-radius:9px; }
.conversation-card { background:#fff; padding:8px 0; border:0; }
.conversation-card > header { padding:10px 0 20px; border-bottom:1px solid var(--line); }
.conversation-card h2 { font-size:20px; }
.conversation-card header small { font-size:11px; }
.conversation-message { margin:12px 0; border:1px solid #e3eaf1; border-radius:12px; padding:8px 14px; }
.conversation-message .message-body pre { font-family:inherit; font-size:13px; line-height:1.9; }
.conversation-card[hidden] { display:none; }
/**** Customer preview — native modal handles keyboard focus trapping. ****/
.customer-preview { position:fixed; inset:0 0 0 auto; margin:0; width:min(460px,100vw); height:100dvh; max-height:100dvh; border:0; border-left:1px solid #dce5ee; padding:30px; color:#24344a; background:#f8fafc; box-shadow:-15px 0 80px rgba(10,28,48,.15); }
.customer-preview[open] { display:flex; flex-direction:column; animation:preview-enter .2s ease-out; }
.customer-preview::backdrop { background:rgba(10,23,38,.35); backdrop-filter:blur(3px); }
.preview-head { display:flex; align-items:center; justify-content:space-between; }
.preview-head .eyebrow { color:#7f92a6; }
.icon-button { display:grid; place-items:center; padding:9px; border:1px solid #dce5ee; border-radius:10px; background:#fff; color:#516b83; }
#preview-content { flex:1; overflow:auto; margin:28px 0; }
#preview-title { font-size:27px; line-height:1.4; margin:0 0 12px; letter-spacing:-.035em; }
.preview-meta { font-size:12px; color:#7c90a4; line-height:1.9; }
.preview-block { border-top:1px solid #dfe7ef; padding-top:22px; margin-top:25px; }
.preview-block h3 { font-size:13px; font-weight:600; }
.preview-block p { font-size:13px; line-height:1.9; color:#566d84; white-space:pre-wrap; overflow-wrap:anywhere; }
.preview-open { flex-shrink:0; }
@keyframes preview-enter { from { transform:translateX(25px); opacity:.6; } to { transform:translateX(0); opacity:1; } }
/* Branded sign-in, without external imagery or font requests. */
.login-body { display:grid; place-items:center; min-height:100vh; background:#edf2f7; padding:30px; }
.login-wrap { display:grid; grid-template-columns:1.25fr 1fr; gap:0; width:min(1050px,100%); overflow:hidden; border:1px solid #dbe4ed; border-radius:26px; box-shadow:0 25px 90px rgba(29,47,73,.09); }
.login-intro { display:block; position:relative; overflow:hidden; padding:43px 45px 30px; background:radial-gradient(ellipse at bottom right,#29465f,transparent 65%),#14263c; color:#edf3fa; }
.login-intro .brand { margin:0 0 52px; }
.login-intro > .eyebrow { color:#c7a483; font-size:9px; }
.login-intro h1 { font-size:44px; font-weight:500; line-height:1.35; letter-spacing:-.06em; margin:17px 0 20px; position:relative; z-index:1; }
.login-intro h1 em { font-style:normal; color:#dcad86; }
.login-intro > p { font-size:12px; color:#9fb6cd; line-height:1.9; position:relative; z-index:1; }
.login-points { display:flex; gap:18px; margin-top:45px; position:relative; z-index:1; }
.login-points span { display:inline-flex; gap:6px; align-items:center; background:transparent; border:0; padding:0; color:#b6cbdc; font-size:10px; }
.login-points .ui-icon { height:15px; width:15px; flex-basis:15px; }
.login-brand-line { display:block; margin-top:38px; font-size:7px; letter-spacing:.14em; color:#6788a4; }
.login-material { position:absolute; width:180px; height:180px; right:-60px; bottom:60px; transform:rotate(-28deg); opacity:.45; }
.login-material > span { position:absolute; width:155px; height:155px; border-radius:14px; border:1px solid #8cabbd; background:linear-gradient(120deg,#849caa,rgba(93,131,153,.1)); }
.login-material > span:nth-child(2) { transform:translate(-18px,18px); border-color:#cca180; background:rgba(194,144,104,.25); }
.login-material > span:nth-child(3) { transform:translate(-36px,36px); background:transparent; }
.login-card { border:0; border-radius:0; box-shadow:none; padding:80px 49px 40px; background:#fff; align-self:stretch; }
.login-card > .eyebrow { color:#97a7b8; font-size:9px; }
.login-card h2 { font-size:27px; font-weight:550; margin:17px 0 10px; }
.login-card > p { font-size:12px; color:#8a9bad; margin-bottom:36px; }
.login-card .stack-form { gap:23px; }
.login-card label { font-size:11px; font-weight:500; gap:9px; }
.login-card input { padding:13px 14px; font-size:12px; background:#f9fbfd; }
.login-card .btn { margin-top:10px; min-height:48px; background:#254e66; border-color:#254e66; justify-content:space-between; padding:0 17px; }
.login-card .btn:hover { background:#1c3f56; }
.login-help { text-align:center; margin-top:32px; font-size:10px; color:#91a1b2; line-height:1.9; }
.login-help > span { color:#afb9c4; }
@media (min-width:1700px) { .main { padding-left:55px; padding-right:55px; } .hero-copy { padding:45px; } }
@media (max-width:1200px) { .app-shell { grid-template-columns:210px minmax(0,1fr); } .main { padding-left:25px; padding-right:25px; } .brand strong { font-size:18px; } .hero-copy { padding:30px; } .material-stack { transform:scale(.85) rotate(-16deg) skewY(11deg); animation:none; } .stage-node { padding:16px 12px; } .sales-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .workspace-breadcrumb { max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .daily-goal { gap:20px; } .inbox-layout { grid-template-columns:210px minmax(0,1fr); gap:18px; } }
@media (max-width:900px) { .app-shell { display:block; } .sidebar { display:flex; position:fixed; inset:0 auto 0 0; height:100dvh; width:248px; padding:30px 20px; transform:translateX(-100%); transition:transform .2s; overflow-y:auto; z-index:40; } .sidebar nav { display:flex; flex-direction:column; } .menu-open .sidebar { transform:translateX(0); } .menu-open .nav-scrim { display:block; position:fixed; inset:0; z-index:35; border:0; width:100%; height:100%; background:rgba(4,15,30,.45); } .menu-toggle { display:grid; place-items:center; border:0; padding:6px; color:var(--ink); background:transparent; } .workspace-bar { height:70px; margin-bottom:23px; } .workspace-breadcrumb { flex:1; } .global-search { width:160px; margin-left:0; } .workspace-user { font-size:0; } .workspace-user .avatar { font-size:12px; } .workspace-note { margin-top:35px; } .sidebar-footer { margin-top:auto; } .hero-copy h2 { font-size:34px; } .material-stack { width:190px; height:140px; transform:scale(.75) rotate(-16deg) skewY(11deg); } .discovery-hero { min-height:290px; } .hero-foot { padding:14px 30px; } .stage-rail { grid-template-columns:repeat(3,minmax(0,1fr)); } .stage-node:nth-child(3) { border-right:0; } .stage-node:nth-child(-n+3) { border-bottom:1px solid #2b3d55; } .daily-goal { grid-template-columns:1fr 1fr; } .goal-total { display:none; } .login-wrap { grid-template-columns:1fr 1fr; } .login-intro { padding:38px 30px; } .login-intro h1 { font-size:36px; } .login-card { padding:70px 30px 35px; } .login-points { flex-wrap:wrap; } }
@media (max-width:600px) { .main { padding:0 17px 30px; } .workspace-bar { gap:10px; } .workspace-breadcrumb { font-size:10px; max-width:none; } .workspace-breadcrumb > span { margin:0 7px; } .global-search { display:none; } .page-heading { gap:10px; margin-bottom:22px; } .page-heading h1 { font-size:23px; } .page-heading p { font-size:11px; } .top-actions .btn { min-height:36px; padding:8px 10px; font-size:10px; } .client-home .page-heading h1 { font-size:17px; } .client-home .page-heading p { font-size:10px; } .discovery-hero { grid-template-columns:1fr; min-height:0; } .hero-copy { padding:27px 25px 22px; } .hero-copy h2 { font-size:clamp(24px,7vw,30px); } .hero-copy > p { font-size:11px; } .hero-tags { font-size:9px; gap:12px; margin-top:17px; } .material-scene { min-height:170px; margin-top:-8px; } .material-stack { transform:scale(.7) rotate(-16deg) skewY(11deg); margin-top:-12px; width:235px; height:150px; } .scene-caption { bottom:13px; font-size:6px; } .hero-foot { padding:13px 22px; gap:8px 12px; font-size:9px; } .automation-label { flex-basis:100%; margin-left:0; } .development-track { margin:26px 0; } .section-line { display:block; } .section-line p { margin-top:8px; font-size:9px; } .stage-node { padding:15px 13px; } .stage-node > span:not(.stage-index) { font-size:10px; margin-bottom:10px; } .stage-node strong { font-size:24px; } .stage-node small { font-size:8px; } .daily-goal { grid-template-columns:1fr; padding:22px; gap:16px; } .goal-value { max-width:100%; } .goal-value > strong { font-size:31px; } .business-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; } .metric { padding:16px 12px; } .metric strong { font-size:26px; } .metric span { font-size:10px; } .metric small { font-size:9px; } .panel { padding:20px 16px; } .panel-head { gap:10px; } .panel-head h2 { font-size:16px; } .panel-head p { font-size:11px; } .panel-head > a { font-size:10px; white-space:nowrap; } .filter-bar input { min-width:0; width:100%; flex-basis:100%; } .filter-bar select { min-width:0; max-width:100%; flex:1; } .sales-grid { grid-template-columns:1fr; } .sales-overview { padding:23px; } .sales-overview h2 { font-size:21px; line-height:1.5; } .sales-tabs { gap:2px; } .sales-tabs a { padding:10px; font-size:11px; gap:7px; } .inbox-layout { grid-template-columns:1fr; gap:12px; } .inbox-people { border-right:0; border-bottom:1px solid var(--line); padding:0 0 12px; max-height:260px; overflow:auto; } .inbox-person { margin-bottom:3px; padding:11px 8px; } .conversation-card h2 { font-size:18px; } .conversation-message { padding:6px 10px; } .record-hero { flex-wrap:wrap; padding:22px; gap:15px; } .record-hero > div:nth-child(2) { flex:1; min-width:150px; } .score-ring { width:66px; height:66px; flex-basis:66px; } .customer-preview { padding:24px; } .login-body { padding:18px; align-items:start; } .login-wrap { grid-template-columns:1fr; border-radius:20px; } .login-intro { padding:28px 28px 25px; } .login-intro .brand { margin-bottom:30px; } .login-intro h1 { font-size:33px; margin:13px 0; } .login-intro h1 br:nth-of-type(2) { display:none; } .login-points { margin-top:25px; gap:14px; } .login-brand-line { display:none; } .login-card { padding:35px 28px; } .login-card h2 { font-size:25px; } .login-card > p { margin-bottom:25px; } }
@media (prefers-reduced-motion:reduce) { *, *::before, *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }

/* Product knowledge and dimensional analytics */
.knowledge-result { padding:18px 0; border-bottom:1px solid var(--line); }
.knowledge-result > div { display:flex; gap:15px; justify-content:space-between; flex-wrap:wrap; }
.knowledge-result pre { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; font-size:13px; line-height:1.7; color:var(--muted); }
.analysis-dimension { padding:13px 0; border-top:1px solid var(--line); }
.analysis-dimension > summary { cursor:pointer; font-weight:600; padding:8px 0; }
.chips a { padding:5px 10px; border-radius:6px; background:var(--bg); font-size:12px; }

/* HUAMICA material-led customer workspace, v2. */
.client-home .business-metrics{margin-bottom:20px}
.compact-hero{min-height:260px;padding-top:34px;padding-bottom:58px}
.compact-hero .hero-copy h2{font-size:clamp(27px,3vw,42px);line-height:1.2}
.compact-hero .hero-copy p{margin-top:14px;line-height:1.65}
.compact-hero .material-scene{min-height:190px;max-height:210px}
.compact-hero .material-stack{transform:scale(.8)}
.real-material{background-image:linear-gradient(130deg,#172b4030,#192b4870),url('/static/hpl-material-wood.jpg');background-size:160%;background-position:15% 48%;overflow:hidden}
.real-material:after{content:"";position:absolute;inset:-100%;background:linear-gradient(100deg,transparent 40%,#ffffff25 50%,transparent 60%);transform:translateX(-50%);animation:material-light 14s ease-in-out infinite;pointer-events:none}
@keyframes material-light{0%,65%,100%{transform:translateX(-50%)}85%{transform:translateX(40%)}}
.data-changed{animation:data-highlight 1.4s ease-out}
@keyframes data-highlight{0%{color:#27828d;text-shadow:0 0 20px #70bbc78a}100%{text-shadow:none}}
.record-tabs{display:flex;gap:6px;flex-wrap:wrap;background:#e9eef4;border:1px solid #dce3ec;padding:6px;border-radius:14px;margin:22px 0;position:sticky;top:10px;z-index:4;box-shadow:0 6px 22px #15243b08}
.record-tabs a{padding:11px 19px;border-radius:10px;color:#52667d;font-weight:600;text-decoration:none}
.record-tabs a.active{background:#14253b;color:#fff;box-shadow:0 4px 12px #12203725}
[hidden]{display:none!important}
.raw-source{margin:16px 0;border-top:1px solid #e1e7ef;padding-top:12px}
.raw-source pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:350px;overflow:auto;background:#f5f7fa;padding:16px;line-height:1.7}
.cadence-plan{padding:20px 0;border-top:1px solid #e1e7ef}
.cadence-heading{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;color:#53677e}
.cadence-rail{display:grid;grid-template-columns:repeat(8,minmax(75px,1fr));list-style:none;padding:0;margin:24px 0;gap:10px}
.cadence-rail li{padding:15px 8px;border:1px solid #e2e8ef;border-radius:12px;text-align:center;background:#f6f8fb;display:flex;flex-direction:column;gap:7px;color:#788a9e}
.cadence-rail li>span{align-self:center;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#e5ebf2}
.cadence-rail small,.cadence-rail time{font-size:11px}
.cadence-rail .cadence-confirmed{background:#eef8f6;border-color:#a6d6cc;color:#277366}
.cadence-rail .cadence-confirmed>span{background:#27828d;color:#fff}
.cadence-rail .cadence-submitted,.cadence-rail .cadence-queued{border-color:#d8a076;background:#fff7ee;color:#8f6043}
.cadence-rail .cadence-held,.cadence-rail .cadence-unknown{background:#fff3ed;color:#a0522c}
.commercial-rail{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
.commercial-rail span{padding:10px 16px;border-radius:9px;background:#edf1f6;color:#687c91}
.commercial-rail span.active{background:#14253b;color:#edbd98}
.commercial-filters{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 25px}
.commercial-filters a{padding:10px 14px;background:#fff;border:1px solid #dce5ed;border-radius:10px;text-decoration:none;color:#52667d}
.commercial-filters a.active{background:#14253b;color:#fff}
.sales-context{display:grid;grid-template-columns:110px 1fr;gap:10px;margin:20px 0;overflow-wrap:anywhere}
.sales-context dt{color:#7b899b}.sales-context dd{margin:0}
.conversation-context{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:22px;background:#f1f5f9;border:1px solid #e1e8f0;border-radius:13px;margin:20px 0}
.conversation-context h3{margin:8px 0}.conversation-context p{line-height:1.7;margin-bottom:10px}
.conversation-context dl{display:grid;grid-template-columns:80px 1fr;gap:10px;margin:0}
.conversation-context dt{color:#6e8095}.conversation-context dd{margin:0;overflow-wrap:anywhere}
.context-actions,.conversation-context details{grid-column:1/-1}.context-actions{display:flex;gap:8px;flex-wrap:wrap}
.report-visuals{display:grid;grid-template-columns:1.35fr 1fr;gap:20px;margin:20px 0}
.chart-switch{display:flex;gap:7px;flex-wrap:wrap}.chart-switch button[aria-pressed=true]{background:#14253b;color:#fff}
.business-chart svg,.market-map svg{display:block;width:100%;height:auto;max-width:100%}.chart-label{font-size:13px;fill:#72849a}.chart-empty{font-size:16px;fill:#71869a}.chart-selection{font-size:12px;color:#71869a;min-height:20px}
.business-chart a:focus circle,.market-map a:focus circle{stroke:#d8a076;stroke-width:3;outline:none}
.round-chart{padding:18px 0}.round-bar-row{display:grid;grid-template-columns:88px 1fr 90px;align-items:center;gap:10px;padding:12px 0;color:#53677e;text-decoration:none;font-size:13px}
.round-bar{height:10px;border-radius:6px;background:#edf1f5;overflow:hidden}.round-bar i{display:block;height:100%;background:linear-gradient(90deg,#70bbc7,#27828d);border-radius:6px;min-width:0}
.market-layout{display:grid;grid-template-columns:1.5fr 1fr;gap:25px;align-items:center}.market-row,.work-item{display:flex;justify-content:space-between;gap:12px;padding:17px 0;border-bottom:1px solid #e1e7ef;color:#53677e;text-decoration:none}.market-row span{font-size:12px}
.document-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.document-card{border:1px solid #e1e7ee;border-radius:14px;overflow:hidden;background:#fff;transition:box-shadow .2s,transform .2s}.document-card:hover{box-shadow:0 12px 35px #18294313;transform:translateY(-3px)}
.document-card>img{display:block;width:100%;height:220px;object-fit:cover;object-position:center top;background:#eef1f5}.document-card>div:last-child{padding:20px}.document-card h3{font-size:15px;line-height:1.6;min-height:48px;overflow-wrap:anywhere}.document-card small{color:#8191a4}
.document-actions{display:flex;gap:13px;align-items:center;flex-wrap:wrap;font-size:12px}.document-text-cover{height:220px;display:flex;flex-direction:column;justify-content:space-between;padding:24px;background:linear-gradient(140deg,#152941,#2c415a);color:#fff}.document-text-cover strong{font-size:30px;color:#e0b08c}.document-text-cover small{letter-spacing:2px}
.document-dialog{border:0;border-radius:18px;padding:25px;width:min(1050px,94vw);height:90vh;color:#263b52;box-shadow:0 30px 100px #0005}.document-dialog::backdrop{background:#101d32b0;backdrop-filter:blur(5px)}.document-dialog header{display:flex;justify-content:space-between;align-items:center;gap:20px}.document-dialog h2{font-size:18px;overflow-wrap:anywhere}.document-dialog iframe{width:100%;height:calc(100% - 160px);min-height:240px;border:1px solid #dce5ed;border-radius:10px;margin:12px 0}.document-dialog a{margin-top:10px}
@media(max-width:1200px){.cadence-rail{grid-template-columns:repeat(4,minmax(75px,1fr))}.document-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.report-visuals,.market-layout,.conversation-context{grid-template-columns:1fr}.document-grid{grid-template-columns:1fr}.record-tabs{top:4px}.record-tabs a{padding:9px 13px;font-size:13px}.cadence-rail{grid-template-columns:repeat(2,minmax(75px,1fr))}.compact-hero{min-height:240px;padding:26px 22px 60px}.round-bar-row{grid-template-columns:80px 1fr 85px}.sales-context{grid-template-columns:80px 1fr}.document-dialog{padding:16px}.document-dialog iframe{height:calc(100% - 190px)}.document-dialog header{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){.real-material:after,.data-changed{animation:none}.document-card{transition:none}.document-card:hover{transform:none}}
.compact-hero{padding:0;min-height:260px}.compact-hero .hero-copy{padding:25px 34px 22px}.compact-hero .hero-foot{padding:12px 34px}.client-home .work-item{color:#afc4d7;border-color:#30435a}.client-home .bottleneck-panel>p{color:#91a9c1}
@media(max-width:760px){.compact-hero{padding:0;min-height:220px}.compact-hero .hero-copy{padding:25px 22px}.compact-hero .hero-foot{padding:14px 22px}}
.document-dialog #document-text{white-space:pre-wrap;overflow-wrap:anywhere;height:calc(100% - 160px);overflow:auto;padding:20px;background:#f5f7fa;border:1px solid #e0e7ef;border-radius:10px;line-height:1.8;font:14px/1.8 -apple-system,"PingFang SC",sans-serif}
.funnel-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.funnel-metrics .metric{padding:16px;min-height:100px}.funnel-metrics .metric strong{font-size:28px;margin:9px 0 4px}.funnel-metrics .metric span{font-size:11px}.funnel-metrics .metric small{font-size:10px}
.message-filter-note{padding:12px 16px;background:#f1f5f9;border-radius:10px;color:#526a84;font-size:13px}
@media(max-width:1000px){.funnel-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.funnel-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Reply evidence stays beside the existing sales action. */
.sales-reply-context{margin:18px 0 10px;padding-top:14px;border-top:1px solid #dfe7ef;font-size:13px;line-height:1.65;overflow-wrap:anywhere}.sales-reply-context dt{font-weight:600;margin-top:10px}.sales-reply-context dt:first-child{margin-top:0}.sales-reply-context dt small{font-weight:400;color:#6a7e91;margin-left:5px}.sales-reply-context dd{margin:3px 0 0}.sales-card .sales-reply-meta{overflow-wrap:anywhere;margin:8px 0;font-size:12px}.sales-card [data-original-reply]{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:13px}

.sales-quick-follow{margin-top:18px;padding-top:14px;border-top:1px solid #dfe7ef}.sales-quick-follow label{font-size:12px}.sales-quick-follow .btn{width:100%;min-height:44px}.sales-card-top>span:last-child{display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end}
