:root {
  font-family: "DM Sans", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2937;
  background: #f5f7fa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --blue: #1677ff;
  --blue-light: #e6f4ff;
  --teal: #13a8a8;
  --text: #1f2937;
  --muted: #8c8c8c;
  --line: #e8eaf0;
  --surface: #ffffff;
  --canvas: #f5f7fa;
  --green: #389e0d;
  --amber: #d48806;
  --red: #cf1322;
  --shadow: 0 8px 28px rgba(31, 45, 61, 0.08);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 960px; min-height: 100vh; background: var(--canvas); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.app { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 224px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 5; }
.brand { height: 70px; display: flex; align-items: center; gap: 11px; padding: 0 22px; border-bottom: 1px solid #f0f0f0; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; color: white; display: grid; place-items: center; font-weight: 700; font-size: 16px; background: linear-gradient(145deg,#4096ff,#1677ff); box-shadow: 0 4px 10px #1677ff3b; }
.brand-title { font-weight: 700; letter-spacing: -.2px; color: #182230; font-size: 16px; }
.brand-sub { color: #9aa2af; font-size: 10px; margin-top: 1px; letter-spacing: .6px; }
.nav-caption { color: #a3a8b2; font-size: 10px; font-weight: 700; letter-spacing: 1px; margin: 23px 20px 8px; }
.nav { display: grid; gap: 4px; padding: 0 11px; }
.nav-item { display: flex; align-items: center; gap: 12px; border: 0; background: transparent; padding: 10px 12px; color: #626b7a; border-radius: 7px; text-align: left; font-size: 13px; transition: .16s; }
.nav-item:hover { background: #f6f9ff; color: var(--blue); }
.nav-item.active { color: var(--blue); background: #eaf3ff; font-weight: 600; }
.nav-icon { width: 17px; height: 17px; display: inline-grid; place-items: center; font-size: 15px; opacity: .9; }
.nav-count { margin-left: auto; color: #fff; background: #ff7875; border-radius: 10px; min-width: 18px; height: 18px; text-align: center; line-height: 18px; font-size: 10px; }
.side-bottom { margin-top: auto; padding: 14px 12px; border-top: 1px solid #f0f0f0; }
.team-chip { display: flex; gap: 10px; align-items: center; padding: 9px; border-radius: 8px; background: #fafafa; }
.avatar { display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; width: 30px; height: 30px; font-size: 11px; font-weight: 700; color: #0958d9; background: #d6e4ff; }
.avatar.teal { color: #006d75; background: #b5f5ec; }
.avatar.gold { color: #ad6800; background: #ffe7ba; }
.avatar.pink { color: #c41d7f; background: #ffd6e7; }
.team-name { font-size: 12px; font-weight: 600; }
.team-role { color: var(--muted); font-size: 10px; margin-top: 2px; }
.workspace { margin-left: 224px; min-height: 100vh; }
.topbar { height: 60px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 30px; }
.crumb { color: #9097a3; font-size: 12px; }
.crumb b { color: #434b57; font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.search-box { width: 208px; height: 32px; border: 1px solid #e4e7ec; border-radius: 6px; display: flex; align-items: center; gap: 7px; padding: 0 10px; color: #a1a8b3; font-size: 11px; background: #fff; }
.search-box input { border: 0; outline: 0; width: 100%; color: #444; background: transparent; font-size: 11px; }
.top-icon { position: relative; width: 25px; text-align: center; color: #6e7785; font-size: 16px; }
.notice-dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #ff4d4f; top: 1px; right: 2px; }
.account { display: flex; gap: 8px; align-items: center; font-size: 11px; }
.main { padding: 24px 30px 34px; max-width: 1600px; margin: 0 auto; }
.demo-ribbon { background: #fffbe6; border: 1px solid #ffe58f; border-radius: 7px; display: flex; align-items: center; justify-content: space-between; padding: 9px 13px; color: #874d00; font-size: 11px; margin-bottom: 17px; }
.demo-ribbon strong { font-size: 11px; margin-right: 6px; }
.ribbon-note { color: #ad6800; }
.walkthrough { display: flex; align-items: center; border: 1px solid var(--line); background: white; border-radius: 8px; padding: 12px 17px; margin-bottom: 23px; box-shadow: 0 2px 5px rgba(20,40,70,.025); }
.walk-title { font-size: 10px; color: #9aa2af; font-weight: 700; letter-spacing: .7px; margin-right: 20px; white-space: nowrap; }
.walk-steps { display: flex; align-items: center; flex: 1; }
.walk-step { display: flex; align-items: center; gap: 8px; color: #8c939e; border: 0; background: transparent; padding: 5px 7px; font-size: 11px; white-space: nowrap; }
.walk-step:hover { color: var(--blue); }
.step-circle { width: 21px; height: 21px; border-radius: 50%; background: #f0f2f5; color: #8c939e; display: grid; place-items: center; font-size: 10px; font-weight: 600; }
.walk-step.active { color: var(--blue); font-weight: 600; }
.walk-step.active .step-circle { background: var(--blue); color: white; }
.walk-step.done .step-circle { background: #e6f4ff; color: var(--blue); }
.walk-arrow { color: #c7ccd4; margin: 0 8px; font-size: 12px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; margin: 0 0 18px; }
.page-heading h1 { font-size: 22px; line-height: 1.25; margin: 0; font-weight: 650; color: #1f2733; letter-spacing: -.3px; }
.page-desc { color: #8c939e; font-size: 11px; margin-top: 6px; }
.heading-actions { display: flex; gap: 9px; align-items: center; }
.button { border: 1px solid #d9dde5; background: #fff; color: #444d59; border-radius: 6px; padding: 7px 12px; min-height: 32px; font-size: 11px; transition: .15s; }
.button:hover { border-color: #69b1ff; color: var(--blue); }
.button.primary { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 2px 0 rgba(5,145,255,.1); }
.button.primary:hover { background: #4096ff; }
.button.soft { color: var(--blue); background: #f0f7ff; border-color: #d6eaff; }
.button.danger { color: #cf1322; border-color: #ffccc7; }
.button.small { padding: 5px 9px; min-height: 26px; font-size: 10px; }
.button:disabled { color: #b8bec8; background: #f5f5f5; border-color: #e8e8e8; cursor: not-allowed; }
.card { background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 3px rgba(31,45,61,.025); }
.card-head { min-height: 49px; padding: 0 16px; border-bottom: 1px solid #eff1f4; display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 12px; font-weight: 650; color: #303846; }
.card-body { padding: 15px 16px; }
.toolbar { display: flex; gap: 8px; align-items: center; }
.filter-select { border: 1px solid #e3e7ed; color: #596271; border-radius: 5px; height: 29px; padding: 0 8px; background: #fff; font-size: 10px; }
.tabs { display: flex; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); padding: 0 16px; }
.tab { height: 39px; padding: 0 1px; border: 0; border-bottom: 2px solid transparent; color: #7e8794; background: transparent; font-size: 11px; }
.tab.active { color: var(--blue); font-weight: 600; border-bottom-color: var(--blue); }
.tag { display: inline-flex; align-items: center; border-radius: 4px; padding: 3px 7px; font-size: 9px; line-height: 1.1; white-space: nowrap; }
.tag.blue { color: #0958d9; background: #e6f4ff; }
.tag.green { color: #237804; background: #f6ffed; }
.tag.gold { color: #ad6800; background: #fff7e6; }
.tag.gray { color: #666f7d; background: #f0f2f5; }
.tag.purple { color: #531dab; background: #f9f0ff; }
.tag.red { color: #cf1322; background: #fff1f0; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 5px; background: #52c41a; }
.table-wrap { overflow: hidden; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { height: 38px; background: #fafbfc; color: #8b929d; font-weight: 500; font-size: 10px; border-bottom: 1px solid #eff1f4; padding: 0 12px; }
td { border-bottom: 1px solid #f0f1f4; padding: 12px; font-size: 10px; color: #596271; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.clickable { cursor: pointer; transition: .14s; }
tbody tr.clickable:hover { background: #f8fbff; }
.company-cell { display: flex; align-items: center; gap: 9px; }
.company-mark { width: 28px; height: 28px; display: grid; place-items: center; background: #e6f4ff; color: #1677ff; border-radius: 7px; font-weight: 700; font-size: 10px; }
.company-mark.teal { color: #006d75; background: #e6fffb; }
.company-mark.gold { color: #ad6800; background: #fff7e6; }
.company-name { font-size: 11px; color: #303846; font-weight: 600; }
.company-sub { font-size: 9px; color: #9aa2af; margin-top: 3px; }
.row-link { color: #1677ff; border: 0; background: none; padding: 0; font-size: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 15px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 14px 15px; }
.stat-label { color: #8c939e; font-size: 10px; }
.stat-value { font-size: 21px; font-weight: 650; margin-top: 8px; letter-spacing: -.5px; color: #232b37; }
.stat-foot { margin-top: 6px; font-size: 9px; color: #9aa2af; }
.up { color: #389e0d; font-weight: 600; }
.attention-banner { margin: 14px 0 0; padding: 11px 13px; border-radius: 6px; background: #f0f7ff; color: #315a8b; font-size: 10px; display: flex; align-items: center; gap: 8px; }
.two-col { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(240px,.9fr); gap: 14px; }
.profile-top { display: flex; gap: 14px; align-items: flex-start; padding: 17px; }
.profile-logo { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg,#e6f4ff,#d6e4ff); color: #0958d9; font-size: 16px; font-weight: 700; }
.profile-name { font-weight: 650; font-size: 16px; color: #252d38; }
.profile-meta { color: #848c98; font-size: 10px; margin-top: 5px; display: flex; gap: 13px; }
.profile-right { margin-left: auto; text-align: right; }
.profile-right .owner-label { color: #9aa2af; font-size: 9px; }
.profile-right .owner-name { font-size: 10px; margin-top: 5px; font-weight: 600; }
.profile-content { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(245px,.8fr); gap: 14px; margin-top: 14px; }
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 18px; }
.detail-label { color: #9aa2af; font-size: 9px; margin-bottom: 5px; }
.detail-value { color: #46505d; font-size: 10px; }
.timeline { padding-left: 7px; }
.timeline-item { position: relative; padding: 0 0 18px 17px; border-left: 1px solid #e6eaf0; }
.timeline-item:last-child { border-color: transparent; padding-bottom: 0; }
.timeline-item::before { position: absolute; content: ""; left: -4px; top: 2px; width: 7px; height: 7px; background: #91caff; border-radius: 50%; border: 2px solid white; box-shadow: 0 0 0 1px #91caff; }
.timeline-item.green::before { background: #95de64; box-shadow: 0 0 0 1px #95de64; }
.timeline-date { font-size: 9px; color: #a2a9b3; }
.timeline-title { font-size: 10px; color: #46505d; margin-top: 5px; line-height: 1.5; }
.timeline-user { font-size: 9px; color: #8c939e; margin-top: 3px; }
.contact-card { display: flex; gap: 9px; align-items: center; padding: 9px 0; border-bottom: 1px solid #f1f2f5; }
.contact-card:last-child { border: 0; }
.contact-name { font-size: 10px; font-weight: 600; }
.contact-role { color: #9aa2af; font-size: 9px; margin-top: 3px; }
.pipeline { display: grid; grid-template-columns: repeat(6,minmax(145px,1fr)); gap: 10px; overflow-x: auto; padding: 12px 14px 15px; }
.stage-col { background: #f7f8fa; border-radius: 6px; min-height: 400px; padding: 9px; }
.stage-head { display: flex; justify-content: space-between; align-items: center; margin: 1px 1px 10px; color: #586170; font-size: 10px; font-weight: 600; }
.stage-num { font-size: 9px; color: #a0a7b1; background: #eceff3; padding: 2px 6px; border-radius: 8px; }
.opportunity { border: 1px solid #e9ecf1; background: white; border-radius: 6px; padding: 10px; margin-bottom: 8px; box-shadow: 0 1px 3px rgba(30,50,80,.035); cursor: pointer; transition: .14s; }
.opportunity:hover { border-color: #91caff; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(30,70,140,.08); }
.opp-name { color: #333c49; font-size: 10px; font-weight: 600; line-height: 1.45; }
.opp-company { color: #9299a4; font-size: 9px; margin-top: 5px; }
.opp-value { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 10px; color: #56606e; }
.opp-owner { display: flex; align-items: center; gap: 5px; margin-top: 9px; color: #8f97a2; font-size: 9px; }
.mini-avatar { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 8px; color: #0958d9; background: #d6e4ff; font-weight: 600; }
.detail-strip { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0; }
.strip-item { background: #f7f9fb; padding: 8px 10px; border-radius: 5px; min-width: 105px; }
.strip-label { color: #9aa2af; font-size: 9px; }
.strip-value { color: #424c59; font-weight: 600; font-size: 11px; margin-top: 4px; }
.quote-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(270px,.8fr); gap: 14px; }
.quote-total { padding: 17px; border-radius: 7px; background: #f8fbff; border: 1px solid #e6f4ff; }
.quote-total-label { color: #7f8997; font-size: 10px; }
.quote-total-value { font-size: 24px; font-weight: 700; color: #1d3557; margin: 7px 0 14px; }
.quote-kv { display: flex; justify-content: space-between; font-size: 10px; padding: 7px 0; border-top: 1px solid #e8f0f8; color: #737d8c; }
.quote-kv b { color: #46505d; font-weight: 600; }
.order-progress { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin: 12px 0 18px; }
.progress-step { position: relative; text-align: center; color: #9ba2ad; font-size: 9px; padding-top: 22px; }
.progress-step::before { content: ""; position: absolute; top: 4px; left: calc(50% - 6px); width: 12px; height: 12px; border-radius: 50%; background: #e5e8ed; z-index: 2; }
.progress-step::after { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 1px; background: #e5e8ed; }
.progress-step:first-child::after { left: 50%; }
.progress-step:last-child::after { right: 50%; }
.progress-step.done { color: #1677ff; }
.progress-step.done::before { background: #1677ff; box-shadow: 0 0 0 3px #e6f4ff; }
.progress-step.done::after { background: #91caff; }
.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; z-index: 10; background: rgba(20, 30, 45, .28); animation: fade .15s ease-out; }
.drawer { position: absolute; right: 0; top: 0; height: 100%; width: min(500px, 48vw); background: white; box-shadow: -8px 0 28px rgba(30,40,60,.14); display: flex; flex-direction: column; animation: slide .2s ease-out; }
.drawer-head { padding: 17px 20px; display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid #eff1f4; }
.drawer-heading { font-size: 15px; font-weight: 650; }
.drawer-sub { color: #929aa6; font-size: 10px; margin-top: 5px; }
.close-button { width: 27px; height: 27px; border: 0; background: #f5f6f8; border-radius: 5px; color: #707987; font-size: 16px; }
.drawer-body { padding: 18px 20px; overflow: auto; flex: 1; }
.drawer-foot { border-top: 1px solid #eff1f4; padding: 13px 20px; display: flex; justify-content: flex-end; gap: 8px; }
.drawer-section { margin-bottom: 22px; }
.drawer-section-title { font-size: 10px; font-weight: 650; color: #7f8895; margin-bottom: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-field.full { grid-column: 1 / -1; }
.form-label { font-size: 9px; color: #7b8492; margin-bottom: 6px; display: block; }
.form-input, .form-select, .form-textarea { width: 100%; border: 1px solid #dfe3e9; border-radius: 5px; min-height: 32px; padding: 7px 9px; font-size: 10px; color: #394350; outline: none; background: #fff; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: #69b1ff; box-shadow: 0 0 0 2px #1677ff1c; }
.form-textarea { min-height: 86px; resize: vertical; line-height: 1.6; }
.info-box { border: 1px solid #e6f4ff; background: #f5fbff; border-radius: 6px; padding: 11px 12px; color: #536a84; font-size: 10px; line-height: 1.65; }
.info-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f0f2f5; font-size: 10px; }
.info-row:last-child { border: 0; }
.info-row span:first-child { color: #929aa6; }
.info-row b { font-weight: 550; color: #414b58; }
.toast { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); background: #fff; color: #3c4654; border: 1px solid #edf0f3; border-radius: 6px; padding: 10px 15px; box-shadow: var(--shadow); z-index: 20; font-size: 11px; animation: fade .2s ease-out; }
.modal { width: min(470px, 90vw); position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); background: white; border-radius: 9px; box-shadow: 0 14px 40px rgba(20,30,45,.2); overflow: hidden; }
.modal-body { padding: 17px 20px; }
.modal-title { font-size: 14px; font-weight: 650; }
.modal-desc { font-size: 10px; color: #8e97a3; margin-top: 5px; }
.modal-foot { padding: 12px 20px; border-top: 1px solid #eff1f4; display: flex; justify-content: flex-end; gap: 8px; }
.empty-hint { text-align: center; color: #a0a7b1; padding: 30px 10px; font-size: 10px; }
.mobile-menu { display: none; }
@keyframes fade { from {opacity:0} to {opacity:1} }
@keyframes slide { from {transform:translateX(18px);opacity:.6} to {transform:translateX(0);opacity:1} }
@media (max-width: 1150px) {
  .sidebar { width: 190px; }
  .workspace { margin-left: 190px; }
  .main { padding-left: 20px; padding-right: 20px; }
  .pipeline { grid-template-columns: repeat(6,145px); }
  .walk-title { margin-right: 8px; }
  .walk-step { gap: 5px; padding-left: 4px; padding-right: 4px; }
  .walk-arrow { margin: 0 2px; }
}
