:root {
  --bg: #f6f4ee; --panel: #ffffff; --panel-2: #faf8f3; --ink: #0f1f1b; --ink-2: #34453f; --mute: #6f7d77; --faint: #a3aea9;
  --line: #e5e1d6; --line-2: #eeebe3; --side: #012C23; --side-2: #033a2f; --side-ink: #bccbc4;
  --v: #0E6B55; --b: #164975; --t: #C79A4B; --gold: #C9A45C; --grad: linear-gradient(120deg, #07382F 0%, #0E6B55 48%, #C9A45C 100%);
  --amber: #c27c05; --amber-bg: #fdf1d8; --blue: #1f5fb8; --blue-bg: #e6eefa; --violet: #6d4bd8; --violet-bg: #efeafd;
  --green: #0b8a5f; --green-bg: #e0f3ea; --teal: #0d7f73; --teal-bg: #ddf1ee; --red: #c62f2a; --red-bg: #fbe7e5; --gray-bg: #efede6;
  --r: 18px; --r-sm: 11px; --sh: 0 1px 2px rgba(15, 31, 27, .04), 0 10px 30px -14px rgba(15, 31, 27, .16);
  --sh-lg: 0 30px 80px -20px rgba(1, 44, 35, .38);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; --serif: 'Instrument Serif', Georgia, serif; --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
svg:not([width]) { width: 16px; height: 16px; flex: none; }
.eyebrow svg { width: 14px; height: 14px; }
::selection { background: #efe3c4; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: -.01em; }
.muted { color: var(--mute); }
.faint { color: var(--faint); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- boot ---------- */
.boot { height: 100vh; display: grid; place-items: center; }
.boot-mark { border-radius: 14px; animation: pulse 1.2s ease-in-out infinite; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; padding: 20px 14px; overflow: hidden; }
.side::before { content: ''; position: absolute; inset: -120px -80px auto; height: 300px; background: radial-gradient(closest-side, rgba(14, 107, 85, .35), transparent 70%), radial-gradient(closest-side at 70% 60%, rgba(201, 164, 92, .22), transparent 70%); pointer-events: none; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 4px 8px 18px; position: relative; }
.brand-logo { height: 36px; width: auto; display: block; }
.brand small { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #8fa89e; padding-left: 2px; }
.login-hero .brand-logo { height: 46px; }
.brand .word { font-weight: 800; font-size: 20px; letter-spacing: -.03em; color: #fff; }
.brand .word small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #8fa89e; margin-top: -2px; }
.workspace { position: relative; margin: 0 4px 18px; padding: 11px 12px; border-radius: 13px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); display: flex; align-items: center; gap: 10px; }
.workspace .ws-av { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(140deg, #2f5db8, #5b8cff); font-size: 13px; }
.workspace b { color: #fff; font-size: 13.5px; display: block; line-height: 1.2; }
.workspace span { font-size: 11px; color: #8fa89e; }
.nav { display: flex; flex-direction: column; gap: 2px; position: relative; }
.nav-label { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #6f8a80; padding: 14px 12px 6px; font-weight: 700; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9.5px 12px; border-radius: 11px; font-weight: 600; font-size: 13.5px; transition: background .15s, color .15s; position: relative; }
.nav a svg { width: 18px; height: 18px; opacity: .8; }
.nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.nav a.on { background: rgba(255, 255, 255, .08); color: #fff; }
.nav a.on::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--grad); }
.nav a .count { margin-left: auto; font-size: 11px; font-weight: 800; background: var(--gold); color: #1d1405; border-radius: 20px; padding: 1px 7px; }
.side-cta { margin: 16px 4px 0; }
.side-foot { margin-top: auto; position: relative; }
.mode { display: flex; align-items: center; gap: 8px; font-size: 11.5px; padding: 9px 12px; border-radius: 11px; background: rgba(255, 255, 255, .04); margin-bottom: 10px; }
.mode i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(217, 138, 6, .18); }
.mode.live i { background: var(--t); box-shadow: 0 0 0 4px rgba(201, 164, 92, .18); }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border-top: 1px solid rgba(255, 255, 255, .07); }
.me b { color: #fff; font-size: 12.5px; display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me span { font-size: 11px; color: #8fa89e; text-transform: capitalize; }
.me button { margin-left: auto; }
.main { min-width: 0; }
.view { padding: 30px 38px 60px; max-width: 1360px; margin: 0 auto; }
.view.enter { animation: rise .45s cubic-bezier(.2, .8, .2, 1); }

/* ---------- typography / page head ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.title { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.02; letter-spacing: -.01em; margin: 0; }
.title em { font-style: italic; background: linear-gradient(120deg, #0E6B55 10%, #B8893B 90%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 4px; }
.sub { color: var(--mute); margin: 8px 0 0; max-width: 640px; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
h3 { font-size: 15px; margin: 0; letter-spacing: -.01em; }
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--mute); font-size: 12.5px; font-weight: 600; margin-bottom: 10px; }
.crumbs a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: transform .12s, box-shadow .2s, background .2s, border-color .2s; }
.btn svg { width: 16px; height: 16px; }
.btn:hover { border-color: #d6d2c6; box-shadow: 0 4px 14px -6px rgba(12, 15, 36, .18); }
.btn:active { transform: translateY(1px); }
.btn.primary { border: 0; color: #fff; background: var(--grad); background-size: 140% 100%; box-shadow: 0 8px 22px -10px rgba(10, 77, 63, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.primary:hover { background-position: 100% 0; box-shadow: 0 12px 26px -10px rgba(10, 77, 63, .9); }
.btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(12, 15, 36, .05); box-shadow: none; }
.btn.danger { color: var(--red); }
.btn.sm { height: 32px; padding: 0 11px; border-radius: 9px; font-size: 12.5px; }
.btn.lg { height: 50px; padding: 0 22px; border-radius: 14px; font-size: 15px; }
.btn.w-full { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .spin { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 0; background: transparent; cursor: pointer; color: inherit; }
.icon-btn:hover { background: rgba(12, 15, 36, .06); }
.side .icon-btn:hover { background: rgba(255, 255, 255, .08); }
.icon-btn svg { width: 17px; height: 17px; }
.link { background: none; border: 0; padding: 0; color: var(--v); font-weight: 700; cursor: pointer; }

/* ---------- cards / grid ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head p { margin: 2px 0 0; color: var(--mute); font-size: 12.5px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: 1.35fr 1fr; }
.g2e { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.divider { height: 1px; background: var(--line-2); margin: 16px 0; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { position: relative; overflow: hidden; padding: 18px 18px 16px; }
.kpi .k { font-size: 12px; font-weight: 700; color: var(--mute); display: flex; align-items: center; gap: 7px; }
.kpi .k svg { width: 15px; height: 15px; }
.kpi .v { font-size: 30px; font-weight: 800; letter-spacing: -.035em; margin-top: 8px; line-height: 1; }
.kpi .v small { font-size: 14px; font-weight: 700; color: var(--mute); letter-spacing: 0; margin-left: 3px; }
.kpi .d { font-size: 12px; color: var(--mute); margin-top: 8px; }
.kpi.hero { background: var(--side); color: #fff; border-color: var(--side); }
.kpi.hero .k, .kpi.hero .d { color: #a6bab2; }
.kpi.hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(closest-side, rgba(14, 107, 85, .6), transparent); }

/* ---------- pills / chips / avatars ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 30px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: var(--gray-bg); color: var(--ink-2); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.pill.plain::before { display: none; }
.pill.amber { background: var(--amber-bg); color: var(--amber); }
.pill.blue { background: var(--blue-bg); color: var(--blue); }
.pill.violet { background: var(--violet-bg); color: var(--violet); }
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.teal { background: var(--teal-bg); color: var(--teal); }
.pill.red { background: var(--red-bg); color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 30px; background: var(--panel); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.chip b { color: var(--ink); }
button.chip { cursor: pointer; }
button.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.av { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #fff; flex: none; }
.av.sm { width: 26px; height: 26px; border-radius: 8px; font-size: 10.5px; }
.avs { display: flex; }
.avs .av { border: 2px solid #fff; margin-left: -7px; }
.avs .av:first-child { margin-left: 0; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: var(--gray-bg); color: var(--ink-2); }
.tag.rec { background: var(--grad); color: #fff; }
.tag.price { background: var(--green-bg); color: var(--green); }
.tag.fast { background: var(--blue-bg); color: var(--blue); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 700; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.field > span em { color: var(--red); font-style: normal; }
.field > span small { font-weight: 600; color: var(--faint); }
.input, .field input, .field select, .field textarea { height: 42px; border: 1px solid var(--line); border-radius: 11px; padding: 0 13px; background: var(--panel); outline: none; transition: border-color .15s, box-shadow .15s; width: 100%; }
.field textarea { height: auto; min-height: 90px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23767b93' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--v); box-shadow: 0 0 0 4px rgba(14, 107, 85, .12); }
.field.err input, .field.err select { border-color: var(--red); box-shadow: 0 0 0 4px rgba(224, 65, 58, .1); }
.field .hint { font-size: 11.5px; color: var(--mute); }
.fgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 16px; }
.fgrid.c3 { grid-template-columns: repeat(3, 1fr); }
.fgrid.c4 { grid-template-columns: repeat(4, 1fr); }
.span2 { grid-column: span 2; }
.span3 { grid-column: span 3; }
.span-all { grid-column: 1 / -1; }
.suffix { position: relative; }
.suffix input { padding-right: 58px; }
.suffix i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12px; font-weight: 700; color: var(--mute); pointer-events: none; }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--mute); }
.search input { padding-left: 36px; height: 40px; width: 280px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); outline: none; }
.search input:focus { border-color: var(--v); box-shadow: 0 0 0 4px rgba(14, 107, 85, .12); }
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-weight: 600; user-select: none; }
.check input { appearance: none; width: 19px; height: 19px; border-radius: 6px; border: 1.5px solid #cfccc1; background: #fff; margin: 0; display: grid; place-items: center; cursor: pointer; transition: all .15s; flex: none; }
.check input:checked { background: var(--v); border-color: var(--v); }
.check input:checked::after { content: ''; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.switch { position: relative; width: 40px; height: 23px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 30px; background: #d8d5cb; cursor: pointer; transition: .2s; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--v); }
.switch input:checked + span::after { transform: translateX(17px); }
.range { width: 100%; accent-color: var(--v); }
.section-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 13px; margin: 0 0 14px; }
.section-title i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #e6f1ec; color: var(--v); font-style: normal; }
.section-title i svg { width: 15px; height: 15px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.t th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--panel-2); }
.t th:first-child { border-top-left-radius: 10px; } .t th:last-child { border-top-right-radius: 10px; }
.t td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr { transition: background .12s; }
.t tbody tr:hover { background: #faf9f5; }
.t .num { text-align: right; font-variant-numeric: tabular-nums; }
.t tr.best td { background: linear-gradient(90deg, rgba(14, 107, 85, .06), rgba(201, 164, 92, .04)); }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 320px; }

/* ---------- tracker ---------- */
.tracker { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.tr-step { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding-right: 12px; }
.tr-step::before { content: ''; position: absolute; top: 17px; left: 36px; right: 0; height: 2px; background: var(--line); border-radius: 2px; }
.tr-step:last-child::before { display: none; }
.tr-step.done::before { background: var(--grad); }
.tr-step.cur::before { background: linear-gradient(90deg, var(--v), var(--line) 70%); }
.tr-dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 2px solid var(--line); color: var(--faint); position: relative; z-index: 1; }
.tr-dot svg { width: 16px; height: 16px; }
.tr-step.done .tr-dot { background: var(--grad); border-color: transparent; color: #fff; }
.tr-step.cur .tr-dot { border-color: var(--v); color: var(--v); box-shadow: 0 0 0 6px rgba(14, 107, 85, .12); animation: ring 2s ease-in-out infinite; }
.tr-label { font-weight: 800; font-size: 13px; margin-top: 12px; }
.tr-step:not(.done):not(.cur) .tr-label { color: var(--faint); }
.tr-sub { font-size: 12px; color: var(--mute); margin-top: 2px; line-height: 1.4; }
.tr-bar { width: 80%; height: 5px; border-radius: 5px; background: var(--line-2); margin-top: 8px; overflow: hidden; }
.tr-bar i { display: block; height: 100%; background: var(--grad); border-radius: 5px; transition: width .6s; }
.mini-track { display: flex; align-items: center; gap: 4px; }
.mini-track i { width: 22px; height: 5px; border-radius: 5px; background: var(--line); }
.mini-track i.done { background: var(--grad); }
.mini-track i.cur { background: var(--v); opacity: .45; animation: pulse 1.6s ease-in-out infinite; }
.pending-note { margin-top: 18px; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 13px; background: var(--amber-bg); color: #7a4d00; font-size: 13px; }
.pending-note.ok { background: var(--violet-bg); color: #4a2f9f; }
.pending-note.done { background: var(--green-bg); color: #075e42; }
.pending-note svg { width: 18px; height: 18px; flex: none; }

/* ---------- inquiries list ---------- */
.stage-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.stage-card { text-align: left; cursor: pointer; border: 1px solid var(--line); background: var(--panel); border-radius: 16px; padding: 16px; transition: all .18s; position: relative; overflow: hidden; }
.stage-card:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.stage-card .n { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-top: 10px; }
.stage-card .l { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.stage-card .h { font-size: 11.5px; color: var(--mute); margin-top: 4px; }
.stage-card.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--sh); }
.stage-card .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.rfq-list { display: flex; flex-direction: column; gap: 10px; }
.rfq-row { display: grid; grid-template-columns: 130px minmax(200px, 1.6fr) 1.3fr 110px 120px 140px 20px; gap: 16px; align-items: center; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; transition: all .18s; }
.rfq-row:hover { border-color: #d3cfc2; box-shadow: var(--sh); transform: translateY(-1px); }
.rfq-row b { font-size: 14.5px; letter-spacing: -.01em; }
.rr-meta { font-size: 12px; color: var(--mute); margin-top: 2px; }
.rr-best { font-weight: 800; font-variant-numeric: tabular-nums; }
.rr-best span { display: block; font-size: 11px; color: var(--mute); font-weight: 600; }
.chev { color: var(--faint); }
.chev svg { width: 18px; height: 18px; }

/* ---------- dashboard ---------- */
.pipeline { display: flex; flex-direction: column; gap: 14px; }
.pipe-bar { display: flex; height: 12px; border-radius: 12px; overflow: hidden; background: var(--line-2); gap: 3px; }
.pipe-bar i { display: block; height: 100%; min-width: 4px; transition: flex .6s; }
.pipe-legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pipe-legend a { padding: 12px; border-radius: 13px; background: var(--panel-2); border: 1px solid var(--line-2); transition: .15s; }
.pipe-legend a:hover { border-color: var(--line); background: #fff; }
.pipe-legend .n { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.pipe-legend .l { font-size: 12px; font-weight: 700; color: var(--mute); display: flex; gap: 6px; align-items: center; }
.pipe-legend .l i { width: 8px; height: 8px; border-radius: 3px; }
.decision { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.decision:last-child { border-bottom: 0; }
.decision .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--violet-bg); color: var(--violet); flex: none; }
.decision .ic svg { width: 18px; height: 18px; }
.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: 12px; padding: 10px 0; position: relative; }
.feed-item:not(:last-child)::after { content: ''; position: absolute; left: 14px; top: 40px; bottom: -4px; width: 1.5px; background: var(--line-2); }
.feed-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--gray-bg); color: var(--ink-2); }
.feed-ic svg { width: 15px; height: 15px; }
.feed-item p { margin: 0; font-size: 13px; line-height: 1.45; }
.feed-item span { font-size: 11.5px; color: var(--mute); }
.how { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 18px; padding: 0; overflow: hidden; }
.how-step { padding: 20px; border-right: 1px solid var(--line-2); position: relative; }
.how-step:last-child { border-right: 0; }
.how-step .n { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--faint); }
.how-step b { display: block; margin-top: 10px; font-size: 13.5px; }
.how-step p { margin: 4px 0 0; font-size: 12.5px; color: var(--mute); }
.how-step .ic { position: absolute; right: 18px; top: 20px; color: var(--v); }
.how-step .ic svg { width: 18px; height: 18px; }
.bar-list { display: flex; flex-direction: column; gap: 12px; }
.bar-item .top { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; margin-bottom: 5px; gap: 10px; }
.bar-item .track { height: 8px; background: var(--line-2); border-radius: 8px; overflow: hidden; }
.bar-item .track i { display: block; height: 100%; border-radius: 8px; background: var(--grad); }

/* ---------- RFQ detail ---------- */
.rec { position: relative; border: 0; background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; overflow: hidden; }
.rec::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(14, 107, 85, .1), transparent); pointer-events: none; }
.rec-body { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; }
.ring { position: relative; width: 120px; height: 120px; }
.ring svg { transform: rotate(-90deg); }
.ring .rv { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .rv b { font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.ring .rv span { font-size: 10.5px; font-weight: 700; color: var(--mute); text-transform: uppercase; letter-spacing: .1em; display: block; }
.rec h2 { font-size: 24px; letter-spacing: -.025em; margin: 4px 0 8px; }
.reasons { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.reasons li { display: flex; gap: 8px; font-size: 13px; color: var(--ink-2); }
.reasons li svg { width: 16px; height: 16px; color: var(--t); flex: none; margin-top: 2px; }
.rec-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.rec-stats div { padding: 11px 13px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); }
.rec-stats span { font-size: 11px; font-weight: 700; color: var(--mute); display: block; }
.rec-stats b { font-size: 16px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cmp-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.cmp-row { display: grid; grid-template-columns: 190px 1fr 92px 64px; gap: 14px; align-items: center; }
.cmp-row .nm { font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-track { height: 30px; border-radius: 9px; background: var(--panel-2); position: relative; overflow: hidden; border: 1px solid var(--line-2); }
.cmp-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: #d7e2dc; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; font-size: 12px; font-weight: 800; color: var(--ink); transition: width .6s cubic-bezier(.2, .8, .2, 1); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cmp-row.best .cmp-track i { background: var(--grad); color: #fff; }
.cmp-row .lead { font-size: 12.5px; font-weight: 700; text-align: right; }
.cmp-row .sc { font-weight: 800; text-align: right; font-size: 15px; }
.weights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 14px 16px; border-radius: 14px; background: var(--panel-2); border: 1px dashed var(--line); margin-bottom: 18px; }
.weights label { font-size: 12px; font-weight: 700; display: flex; justify-content: space-between; margin-bottom: 4px; }
.resp { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; overflow: hidden; transition: border-color .15s; }
.resp:hover { border-color: #d6d2c6; }
.resp > summary { list-style: none; display: grid; grid-template-columns: 34px 1fr auto auto 20px; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; }
.resp > summary::-webkit-details-marker { display: none; }
.resp[open] > summary { border-bottom: 1px solid var(--line-2); background: var(--panel-2); }
.resp[open] > summary .chev svg { transform: rotate(90deg); }
.resp .chev svg { transition: transform .2s; }
.resp-body { padding: 16px; }
.kv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.kv-grid div { padding: 10px 12px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--line-2); min-width: 0; }
.kv-grid span { font-size: 11px; font-weight: 700; color: var(--mute); display: block; }
.kv-grid b { font-size: 13.5px; word-break: break-word; }
pre.raw { margin: 0; white-space: pre-wrap; font-family: var(--mono); font-size: 12px; line-height: 1.6; background: #0b2620; color: #d8e4de; padding: 14px 16px; border-radius: 12px; max-height: 300px; overflow: auto; }
.spec { display: flex; flex-direction: column; }
.spec div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); font-size: 13px; }
.spec div:last-child { border-bottom: 0; }
.spec span { color: var(--mute); flex: none; }
.spec b { text-align: right; font-weight: 700; }
.timeline .feed-item p { font-size: 12.5px; }

/* ---------- wizard ---------- */
.stepper { display: flex; gap: 8px; align-items: center; margin-bottom: 22px; }
.stepper .st { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 40px; background: var(--panel); border: 1px solid var(--line); font-weight: 700; font-size: 13px; color: var(--mute); }
.stepper .st i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gray-bg); font-style: normal; font-size: 12px; }
.stepper .st.on { color: var(--ink); border-color: var(--ink); }
.stepper .st.on i { background: var(--grad); color: #fff; }
.stepper .st.done i { background: var(--ink); color: #fff; }
.stepper .ln { width: 40px; height: 2px; background: var(--line); }
.wizard { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.summary { position: sticky; top: 24px; background: var(--side); color: #fff; border: 0; overflow: hidden; }
.summary::before { content: ''; position: absolute; inset: auto -80px -120px auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(14, 107, 85, .55), transparent); }
.summary .eyebrow { color: #a5b9b0; }
.summary h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.05; margin: 4px 0 14px; word-break: break-word; }
.summary .spec div { border-color: rgba(255, 255, 255, .1); }
.summary .spec span { color: #a5b9b0; }
.doc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wiz-foot { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.vendor-pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }
.vp-list { max-height: 560px; overflow: auto; margin: 0 -8px; padding: 0 8px; }
.vp-item { display: grid; grid-template-columns: 22px 34px 1fr auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 13px; border: 1px solid transparent; cursor: pointer; transition: .15s; }
.vp-item:hover { background: var(--panel-2); }
.vp-item.focus { border-color: var(--v); background: #eef5f1; }
.vp-item.off { opacity: .5; }
.vp-item b { display: block; font-size: 13.5px; }
.vp-item span { font-size: 12px; color: var(--mute); }
.mail-frame { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: 14px; background: #f3f3f7; }
.mail-head { padding: 12px 14px; border-radius: 13px; background: var(--panel-2); border: 1px solid var(--line-2); margin-bottom: 10px; font-size: 12.5px; }
.mail-head div { display: flex; gap: 10px; padding: 2px 0; }
.mail-head span { color: var(--mute); width: 56px; flex: none; }
.sticky-foot { position: sticky; bottom: 0; margin: 18px -38px -60px; padding: 14px 38px; background: rgba(244, 243, 238, .86); backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; z-index: 5; }
.success { text-align: center; padding: 50px 30px; }
.success .big { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--grad); color: #fff; box-shadow: 0 20px 40px -14px rgba(10, 77, 63, .7); animation: pop .6s cubic-bezier(.2, 1.6, .4, 1); }
.success .big svg { width: 38px; height: 38px; }
.sending { display: flex; flex-direction: column; gap: 8px; max-width: 460px; margin: 20px auto 0; text-align: left; }
.sending div { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px; background: var(--panel-2); font-size: 13px; animation: rise .35s both; }
.sending svg { width: 16px; height: 16px; color: var(--green); }

/* ---------- settings ---------- */
.tabs { display: flex; gap: 4px; padding: 5px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 18px; overflow-x: auto; }
.tabs a { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; font-weight: 700; font-size: 13px; color: var(--mute); white-space: nowrap; }
.tabs a svg { width: 16px; height: 16px; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { background: var(--ink); color: #fff; }
.set-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.set-grid:first-child { padding-top: 0; }
.set-grid:last-child { border-bottom: 0; padding-bottom: 0; }
.set-grid h4 { margin: 0 0 4px; font-size: 14px; }
.set-grid p { margin: 0; color: var(--mute); font-size: 12.5px; }
.banner { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; margin-bottom: 18px; border: 1px solid; }
.banner svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.banner.warn { background: var(--amber-bg); border-color: #f5dea9; color: #6d4700; }
.banner.ok { background: var(--green-bg); border-color: #b9e8d4; color: #06543a; }
.banner.info { background: #eaf3ee; border-color: #cfe3d9; color: #0b4a3c; }
.banner b { display: block; margin-bottom: 2px; }
.steps-help { margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); }
.steps-help li { margin: 3px 0; }
.dropzone { border: 2px dashed #d3cfc2; border-radius: 16px; padding: 38px; text-align: center; cursor: pointer; transition: .2s; background: var(--panel-2); }
.dropzone:hover, .dropzone.drag { border-color: var(--v); background: #eef5f1; }
.dropzone svg { width: 34px; height: 34px; color: var(--v); }
.map-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.preset { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.secret-note { font-size: 11.5px; color: var(--green); font-weight: 700; }
.logo-prev { height: 64px; border-radius: 12px; border: 1px dashed var(--line); display: flex; align-items: center; padding: 0 18px; background: #fff; }

/* ---------- empty / misc ---------- */
.empty { text-align: center; padding: 50px 20px; color: var(--mute); }
.empty .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 14px; background: #e6f1ec; color: var(--v); }
.empty .ic svg { width: 26px; height: 26px; }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.skeleton { background: linear-gradient(90deg, #eceae3 0%, #f6f5f0 50%, #eceae3 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 12px; }
.dir-in { color: var(--teal); } .dir-out { color: var(--v); }
.mail-row { cursor: pointer; }
.drop { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-lg); padding: 6px; z-index: 30; animation: rise .15s; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border: 0; background: none; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 13px; text-align: left; }
.menu button:hover { background: var(--panel-2); }
.menu button svg { width: 16px; height: 16px; color: var(--mute); }
.menu button small { display: block; font-size: 11.5px; color: var(--mute); font-weight: 500; }

/* ---------- modal / toast ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(10, 12, 31, .45); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; opacity: 0; transition: opacity .2s; }
.modal-wrap.open { opacity: 1; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: var(--panel); border-radius: 22px; box-shadow: var(--sh-lg); transform: translateY(14px) scale(.98); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.modal.lg { width: min(820px, 100%); }
.modal.xl { width: min(1040px, 100%); }
.modal-wrap.open .modal { transform: none; }
.modal header { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 0; gap: 12px; }
.modal header h3 { font-size: 18px; letter-spacing: -.02em; }
.modal-body { padding: 18px 22px; overflow: auto; }
.modal footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; border-top: 1px solid var(--line-2); }
.opt { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; margin-bottom: 8px; transition: .15s; }
.opt:hover { border-color: #cfcabc; }
.opt.on { border-color: var(--v); background: #eef5f1; }
.opt input { accent-color: var(--v); width: 17px; height: 17px; margin: 0; }
.notify { margin-top: 14px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 14px; background: var(--panel-2); }
.nt-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 12px; }
.nt-list .check { align-items: flex-start; font-weight: 700; }
#toasts { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: var(--sh-lg); font-weight: 600; font-size: 13.5px; animation: rise .3s cubic-bezier(.2, .8, .2, 1); max-width: 420px; }
.toast svg { width: 18px; height: 18px; color: var(--t); flex: none; }
.toast.err svg { color: #ff8a80; }
.toast.out { opacity: 0; transform: translateY(8px); transition: .3s; }

/* ---------- login ---------- */
.login { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100vh; }
.login-hero { position: relative; overflow: hidden; background: var(--side); color: #fff; padding: 36px 48px; display: flex; flex-direction: column; }
.login-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 400px at 10% 0%, rgba(14, 107, 85, .45), transparent 60%), radial-gradient(500px 400px at 100% 100%, rgba(201, 164, 92, .28), transparent 60%); }
.login-hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%); }
.login-hero > * { position: relative; z-index: 1; }
.hero-copy { margin-top: auto; max-width: 560px; }
.hero-copy .eyebrow { color: #a5b9b0; }
.hero-copy h1 { font-family: var(--serif); font-weight: 400; font-size: 54px; line-height: 1; margin: 0 0 16px; letter-spacing: -.015em; }
.hero-copy h1 em { background: linear-gradient(120deg, #F4E7C4, #E0B76D 55%, #C79A4B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy p { color: #b9c8c1; font-size: 15px; max-width: 480px; margin: 0; }
.flow { display: grid; grid-template-columns: 1fr 70px 1.05fr 70px 1fr; align-items: center; margin: 40px 0 auto; gap: 0; }
.flow-col { display: flex; flex-direction: column; gap: 9px; }
.flow-cap { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #86a096; font-weight: 700; margin-bottom: 2px; }
.node { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 13px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(4px); }
.node i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); flex: none; font-style: normal; }
.node i svg { width: 15px; height: 15px; }
.node b { font-size: 12.5px; display: block; line-height: 1.2; }
.node span { font-size: 10.5px; color: #8fa89e; }
.node.on { background: rgba(14, 107, 85, .18); border-color: rgba(224, 183, 109, .5); box-shadow: 0 0 30px -6px rgba(14, 107, 85, .6); }
.node.on i { background: linear-gradient(140deg, #2f5db8, #5b8cff); }
.node.dim { opacity: .55; border-style: dashed; }
.flow-link { position: relative; height: 150px; }
.flow-link::before, .flow-link::after { content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 5px, transparent 5px 10px); }
.flow-link::before { top: 45%; } .flow-link::after { top: 60%; }
.pkt { position: absolute; font-size: 9px; font-weight: 800; letter-spacing: .06em; padding: 2px 6px; border-radius: 5px; background: #fff; color: var(--ink); left: 0; animation: travel 3.2s linear infinite; white-space: nowrap; }
.pkt.a { top: calc(45% - 9px); }
.pkt.b { top: calc(60% - 9px); animation-name: travel-back; animation-delay: 1.6s; background: #E0B76D; }
.pkt.c { top: calc(45% - 9px); animation-delay: 1.6s; background: #E0B76D; }
.flow-core { text-align: center; padding: 18px 14px; border-radius: 22px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 0 60px -10px rgba(14, 107, 85, .55); }
.core-mark { width: 62px; height: 62px; margin: 0 auto 8px; position: relative; }
.core-mark::before { content: ''; position: absolute; inset: -8px; border-radius: 22px; border: 1.5px dashed rgba(224, 183, 109, .5); animation: spin 14s linear infinite; }
.flow-core b { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.flow-core small { display: block; font-size: 10px; letter-spacing: .16em; color: #a5b9b0; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }
.flow-core ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; text-align: left; }
.flow-core li { font-size: 11.5px; padding: 6px 9px; border-radius: 8px; background: rgba(255, 255, 255, .06); display: flex; align-items: center; gap: 7px; color: #d9e3de; }
.flow-core li svg { width: 13px; height: 13px; color: #E0B76D; }
.hero-foot { display: flex; gap: 22px; margin-top: 30px; color: #8fa89e; font-size: 12px; }
.hero-foot span { display: flex; align-items: center; gap: 7px; }
.hero-foot svg { width: 15px; height: 15px; color: #E0B76D; }
.login-panel { display: grid; place-items: center; padding: 40px; background: radial-gradient(500px 300px at 80% 10%, rgba(14, 107, 85, .08), transparent 70%), var(--bg); }
.login-card { width: min(420px, 100%); }
.login-card h2 { font-family: var(--serif); font-weight: 400; font-size: 42px; margin: 0 0 6px; letter-spacing: -.01em; }
.login-card > p { color: var(--mute); margin: 0 0 28px; }
.login-card form { display: flex; flex-direction: column; gap: 16px; }
.login-card .field input { height: 50px; font-size: 15px; border-radius: 13px; }
.otp-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; }
.otp-boxes input { height: 58px; text-align: center; font-size: 24px; font-weight: 800; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; outline: none; font-family: var(--mono); transition: .15s; width: 100%; }
.otp-boxes input:focus { border-color: var(--v); box-shadow: 0 0 0 4px rgba(14, 107, 85, .14); }
.otp-sent { font-size: 13px; color: var(--ink-2); }
.dev-otp { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--ink); color: #fff; position: relative; overflow: hidden; animation: rise .4s; }
.dev-otp::before { content: ''; position: absolute; inset: 0; background: radial-gradient(200px 80px at 100% 0, rgba(14, 107, 85, .5), transparent); }
.dev-otp > * { position: relative; }
.dev-otp .k { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #abbdb5; font-weight: 800; }
.dev-otp p { margin: 2px 0 0; font-size: 12px; color: #cdd9d3; }
.dev-otp button { font-family: var(--mono); font-size: 24px; font-weight: 700; letter-spacing: .2em; padding: 6px 12px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.dev-otp button:hover { background: rgba(255, 255, 255, .16); }
.otp-foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); }
.lc-foot { margin-top: 30px; display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--mute); }
.lc-foot svg { width: 15px; height: 15px; color: var(--green); }
.form-err { color: var(--red); font-size: 13px; font-weight: 600; min-height: 1em; margin: -6px 0 0; }

/* ---------- animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 5px rgba(14, 107, 85, .12); } 50% { box-shadow: 0 0 0 10px rgba(14, 107, 85, .04); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes travel { 0% { left: -10%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 90%; opacity: 0; } }
@keyframes travel-back { 0% { left: 90%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: -10%; opacity: 0; } }
.stagger > * { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.stagger > *:nth-child(2) { animation-delay: .04s; } .stagger > *:nth-child(3) { animation-delay: .08s; } .stagger > *:nth-child(4) { animation-delay: .12s; }
.stagger > *:nth-child(5) { animation-delay: .16s; } .stagger > *:nth-child(6) { animation-delay: .2s; } .stagger > *:nth-child(n+7) { animation-delay: .24s; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .rfq-row { grid-template-columns: 120px minmax(180px, 1.5fr) 1.2fr 100px 130px 20px; }
  .rfq-row .rr-quotes { display: none; }
}
@media (max-width: 1100px) {
  .app { grid-template-columns: 1fr; }
  .side { position: relative; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
  .side .nav { flex-direction: row; flex-wrap: wrap; }
  .nav-label, .workspace, .side-foot .mode { display: none; }
  .side-foot { margin: 0 0 0 auto; }
  .g2, .g2e, .g3, .detail-grid, .wizard, .vendor-pick, .set-grid { grid-template-columns: 1fr; }
  .stage-cards, .how { grid-template-columns: repeat(2, 1fr); }
  .login { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .sticky-foot { margin: 18px -20px -60px; padding: 14px 20px; }
  .view { padding: 22px 20px 60px; }
}
@media (max-width: 720px) {
  .kpis, .fgrid, .fgrid.c3, .fgrid.c4, .kv-grid, .rec-stats, .pipe-legend, .map-grid, .weights { grid-template-columns: 1fr 1fr; }
  .rfq-row { grid-template-columns: 1fr; gap: 8px; }
  .tracker { grid-template-columns: 1fr; gap: 14px; }
  .tr-step::before { display: none; }
  .cmp-row { grid-template-columns: 110px 1fr 60px; }
  .cmp-row .lead { display: none; }
  .title { font-size: 34px; }
  .search input { width: 100%; }
}

/* ---------- v2: RLD workflow components ---------- */
.kpis.k6 { grid-template-columns: repeat(6, 1fr); }
.kpi.alert { border-color: #f3c3bf; background: linear-gradient(180deg, #fff, #fdf1f0); }
.kpi.alert .v { color: var(--red); }
.tracker.t6 { grid-template-columns: repeat(6, 1fr); }
.pending-note.bad { background: var(--red-bg); color: #8c1f1a; }
.decision .ic.ok { background: var(--teal-bg); color: var(--teal); }
.decision .ic.bad { background: var(--red-bg); color: var(--red); }
.ptype-pill { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; background: #e6f1ec; color: #0b5c49; font-weight: 800; letter-spacing: .02em; text-transform: none; font-size: 11.5px; }
.ptype-pill.sm { font-size: 10.5px; padding: 1px 7px; margin-right: 4px; }
.chip.rev { background: var(--blue-bg); color: var(--blue); border-color: #cfdcf5; font-weight: 800; }

/* key notices */
.notices { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin: 16px 0 4px; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid; background: #fff; animation: rise .4s both; }
.notice .n-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.notice .n-ic svg { width: 17px; height: 17px; }
.notice .n-t { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.notice .n-b { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; line-height: 1.45; }
.notice .big { font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin-bottom: 1px; }
.notice.teal { border-color: #bfe6df; background: linear-gradient(135deg, #f1fbf9, #fff 70%); } .notice.teal .n-ic { background: var(--teal-bg); color: var(--teal); } .notice.teal .n-t { color: var(--teal); }
.notice.green { border-color: #bfe6d2; } .notice.green .n-ic { background: var(--green-bg); color: var(--green); } .notice.green .n-t { color: var(--green); }
.notice.red { border-color: #f3c3bf; background: linear-gradient(135deg, #fdf1f0, #fff 70%); } .notice.red .n-ic { background: var(--red-bg); color: var(--red); } .notice.red .n-t { color: var(--red); }
.notice.amber { border-color: #f1dcae; } .notice.amber .n-ic { background: var(--amber-bg); color: var(--amber); } .notice.amber .n-t { color: var(--amber); }
.notice.blue { border-color: #cfdcf5; } .notice.blue .n-ic { background: var(--blue-bg); color: var(--blue); } .notice.blue .n-t { color: var(--blue); }
.notice.violet { border-color: #ddd3fb; } .notice.violet .n-ic { background: var(--violet-bg); color: var(--violet); } .notice.violet .n-t { color: var(--violet); }
.notice.remark { border-color: #f1dcae; background: #fffaf0; border-left: 4px solid #d98a06; } .notice.remark .n-ic { background: var(--amber-bg); color: var(--amber); } .notice.remark .n-t { color: #8a5a00; } .notice.remark .n-b { color: #4a3510; }

/* page tabs */
.page-tabs { margin: 18px 0 16px; position: sticky; top: 8px; z-index: 6; box-shadow: var(--sh); }
.page-tabs .tcount { font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 20px; background: var(--gray-bg); color: var(--ink-2); }
.page-tabs a.on .tcount { background: rgba(255, 255, 255, .18); color: #fff; }
.tdot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); display: inline-block; }
.tdot.red { background: var(--red); }

/* quote board */
.qb-card { padding: 0; overflow: hidden; }
.qb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; background: linear-gradient(180deg, #fff, var(--panel-2)); }
.qb-stats { display: flex; gap: 26px; flex-wrap: wrap; }
.qb-stats span { display: block; font-size: 11px; font-weight: 700; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.qb-stats b { font-size: 17px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.qb-stats small { font-size: 12px; color: var(--mute); font-weight: 700; margin-left: 2px; }
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--gray-bg); gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-weight: 700; font-size: 12.5px; color: var(--mute); cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 31, 27, .12); }
table.qb { width: 100%; border-collapse: collapse; font-size: 13px; }
.qb th { text-align: left; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--mute); font-weight: 800; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--panel-2); }
.qb td { padding: 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.qb .num { text-align: right; font-variant-numeric: tabular-nums; }
.qb-row { cursor: pointer; transition: background .12s; }
.qb-row:hover { background: #fbfaf6; }
.qb-row.open { background: #f7f6f1; }
.qb-row.open td { border-bottom-color: transparent; }
.qb-row.won { background: linear-gradient(90deg, rgba(14, 107, 85, .07), transparent 60%); }
.qb-row.won td:first-child { box-shadow: inset 3px 0 0 var(--v); }
.qb-row .chev svg { transition: transform .2s; }
.qb-row.open .chev svg { transform: rotate(90deg); }
.qb-name { font-size: 13.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 230px; }
.qb-sub { font-size: 11.5px; color: var(--mute); margin-top: 2px; }
.qb-sub s { color: var(--faint); }
.qb-price { font-size: 15.5px; font-weight: 800; letter-spacing: -.02em; }
.qb-inline { display: inline-flex; gap: 6px; margin-left: 12px; vertical-align: middle; }
.muted-row td { color: var(--mute); }
.lead { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.lead::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.lead.ok::before { background: var(--green); } .lead.over::before { background: var(--red); }
.clamp1 { max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.remark { background: #fff6e0; color: #5c3f07; border-left: 3px solid #d98a06; padding: 6px 9px; border-radius: 6px; font-size: 12.5px; line-height: 1.45; max-width: 290px; }
.remark.block { max-width: none; padding: 11px 14px; margin-top: 12px; font-size: 13px; }
.remark.block b { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #8a5a00; margin-bottom: 3px; }
.remark.info { background: var(--blue-bg); color: #1b3f7a; border-left-color: var(--blue); }
.remark.info b { color: var(--blue); }
.rev-badge { display: inline-block; margin-top: 4px; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: var(--blue-bg); color: var(--blue); }
.rev-badge.warn { background: var(--amber-bg); color: var(--amber); }
.qb-detail td { background: #f7f6f1; padding: 0 14px 16px; }
.qd { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.qd .kv-grid { margin-bottom: 0; }
.qd-neg { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.qd-neg div { display: flex; gap: 8px; align-items: center; color: var(--ink-2); }
.qd-neg svg { color: var(--violet); }
.raw-wrap { margin-top: 12px; }
.raw-wrap summary { cursor: pointer; font-weight: 700; font-size: 12.5px; color: var(--v); margin-bottom: 8px; }
pre.raw.light { background: var(--panel-2); color: var(--ink-2); border: 1px solid var(--line-2); }
.award-bar { padding: 14px 18px; margin-bottom: 14px; border-color: #bfe0d4; background: linear-gradient(90deg, #eef7f3, #fff); }
.award-bar svg { color: var(--v); width: 20px; height: 20px; }

/* negotiation */
.neg-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.neg-vendors { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.neg-vendors .check { align-items: flex-start; }
.draft { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; background: var(--panel-2); }
.draft-h { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.draft-h .mono { margin-left: auto; font-size: 11.5px; }
.draft textarea { background: #fff; font-size: 13.5px; line-height: 1.55; }

/* shipment */
.ship-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sk { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel-2); min-width: 0; }
.sk span { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.sk span svg { width: 14px; height: 14px; }
.sk b { display: block; font-size: 18px; letter-spacing: -.02em; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk em { font-style: normal; font-size: 12px; color: var(--mute); display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk.hl { background: linear-gradient(135deg, #e7f6f2, #fff); border-color: #bfe6df; } .sk.hl b { color: var(--teal); }
.sk.ok { background: var(--green-bg); border-color: #bfe6d2; } .sk.ok b { color: var(--green); }
.sk.alert { background: var(--red-bg); border-color: #f3c3bf; } .sk.alert b { color: var(--red); }
.spark { width: 100%; height: 100px; margin-top: 18px; display: block; background: var(--panel-2); border-radius: 12px; border: 1px solid var(--line-2); }
.spark-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--mute); margin-top: 6px; }
.spark-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.auto-fu { margin-top: 18px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line); gap: 12px; cursor: pointer; }

/* specification */
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 22px; }
.spec-grid div { padding: 10px 0; border-bottom: 1px dashed var(--line-2); min-width: 0; }
.spec-grid span { display: block; font-size: 11px; font-weight: 700; color: var(--mute); text-transform: uppercase; letter-spacing: .07em; }
.spec-grid b { font-size: 13.5px; word-break: break-word; }
.rev-item { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.rev-item:last-child { border-bottom: 0; }

/* form bits */
.ptype select { border-color: #bfe0d4; background-color: #f4faf7; font-weight: 700; }
.remark-field textarea { border-color: #f1dcae; background: #fffcf4; }
.remark-field > span svg { color: var(--amber); width: 14px; height: 14px; }
.check-field { justify-content: flex-end; }
.danger-ic { color: var(--red); }
.btn.danger { color: var(--red); }

@media (max-width: 1280px) { .kpis.k6 { grid-template-columns: repeat(3, 1fr); } .spec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1100px) { .neg-grid, .ship-kpis { grid-template-columns: 1fr 1fr; } .tracker.t6 { grid-template-columns: repeat(3, 1fr); row-gap: 18px; } .page-tabs { position: static; } }
@media (max-width: 720px) { .ship-kpis, .neg-grid, .spec-grid, .kpis.k6 { grid-template-columns: 1fr; } .tracker.t6 { grid-template-columns: 1fr; } .qb-stats { gap: 14px; } }
.remark.clamp { padding-top: 0; padding-bottom: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; min-width: 210px; max-width: 280px; }
.qb th:nth-child(8) { min-width: 230px; }

/* ---------- Sapione Scout lockup ---------- */
.brand-lockup { display: flex; align-items: center; gap: 11px; }
.brand-scout { font-family: var(--serif); font-style: italic; font-size: 29px; line-height: 1; padding: 2px 0 2px 11px; border-left: 1px solid rgba(224, 183, 109, .45); background: linear-gradient(180deg, #F4E7C4 0%, #D9B97F 100%); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .01em; }
.login-hero .brand-scout { font-size: 37px; padding-left: 14px; }
.login-hero .brand-lockup { gap: 14px; }
