/* Larkfield CRM replica. Hand-written clean-room styles (no HubSpot CSS). Tokens follow capture/ref/styles.json. */
:root {
  --ink: #333333; --ink-2: #666666; --ink-3: #8a8a8a; --line: #cccccc; --line-2: #e0e0e0; --bg: #f0f0f0; --chrome: #333333;
  --teal: #006162; --teal-d: #00494b; --hover: #e6e6e6; --tab: #ebebeb; --orange: #ff5c35; --blue: #016de1;
  --kpi: #00494b; --pink: #ff9fcc; --green: #00a36b; --purple: #a678ff; --radius: 16px;
  --font: "Lexend Deca", Helvetica, Arial, sans-serif;
  --nav-w: 236px; --top-h: 44px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 300 14px/24px var(--font); color: var(--ink); background: var(--chrome); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
svg.i { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: middle; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
b, strong { font-weight: 600; }

/* ---------- shell ---------- */
.top { position: fixed; inset: 0 0 auto 0; height: var(--top-h); background: var(--chrome); color: #fff; display: flex; align-items: center; z-index: 40; padding: 0 12px 0 0; }
.top .logo { width: var(--nav-w); flex: none; display: flex; align-items: center; padding-left: 18px; height: 100%; }
.top .logo svg { width: 24px; height: 24px; }
.menu-btn { display: none; color: #fff; width: 44px; height: 44px; align-items: center; justify-content: center; }
.gsearch { position: relative; width: 404px; flex: none; }
.gsearch input { width: 100%; height: 32px; border-radius: 16px; border: 1px solid #8a8a8a; background: var(--chrome); color: #fff; padding: 0 40px 0 16px; font-size: 14px; font-weight: 300; outline: none; }
.gsearch input::placeholder { color: #fff; opacity: 1; }
.gsearch input:focus { border-color: #fff; }
.gsearch .mag { position: absolute; right: 14px; top: 8px; color: #fff; }
.gresults { position: absolute; top: 38px; left: 0; width: 100%; min-width: 320px; background: #fff; color: var(--ink); border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.25); padding: 6px 0; z-index: 60; max-height: 420px; overflow: auto; }
.gresults h6 { margin: 6px 16px 2px; font-size: 11px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .4px; }
.gresults a { display: flex; gap: 10px; align-items: center; padding: 6px 16px; color: var(--ink); }
.gresults a:hover, .gresults a.on { background: var(--hover); text-decoration: none; }
.gresults .sub { color: var(--ink-2); font-size: 12px; margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50%; }
.gresults .none { padding: 8px 16px; color: var(--ink-2); }
.tright { margin-left: auto; display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.tbtn { display: inline-flex; align-items: center; gap: 7px; color: #fff; height: 32px; padding: 0 9px; border-radius: 16px; font-size: 13px; font-weight: 400; }
.tbtn:hover { background: rgba(255,255,255,.12); }
.tbtn.ico { width: 32px; padding: 0; justify-content: center; position: relative; }
.tbtn .dot { position: absolute; top: 5px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); border: 1.5px solid var(--chrome); }
.tbtn.test { border: 1px solid #ff8f73; color: #fff; margin-right: 6px; font-weight: 500; }
.tbtn.test svg { color: #ff8f73; }
.tdiv { width: 1px; height: 24px; background: #6a6a6a; margin: 0 6px; }
.acct { display: inline-flex; align-items: center; gap: 8px; color: #fff; height: 32px; padding: 0 6px 0 4px; border-radius: 16px; font-size: 14px; font-weight: 400; }
.acct:hover { background: rgba(255,255,255,.12); }
.avatar { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #7fd1c7, #2d6f8f); display: inline-block; flex: none; }

.nav { position: fixed; top: var(--top-h); bottom: 0; left: 0; width: var(--nav-w); background: var(--chrome); color: #fff; z-index: 35; display: flex; flex-direction: column; }
.nav .items { flex: 1; overflow: auto; padding: 0 12px 0; scrollbar-width: none; }
.nav .items::-webkit-scrollbar { display: none; }
.nav .it { position: relative; display: flex; align-items: center; gap: 10px; height: 40px; margin: 12px 0; padding: 0 10px; border-radius: 20px; color: #fff; font-size: 14px; font-weight: 300; width: 100%; text-align: left; }
.nav .it:hover, .nav .it.open { background: rgba(255,255,255,.18); text-decoration: none; }
.nav .it.on { background: #5c5c5c; }
.nav .it .chev { margin-left: auto; opacity: 0; }
.nav .it:hover .chev, .nav .it.open .chev { opacity: 1; }
.nav .sep { height: 1px; background: #8a8a8a; margin: 17px 12px; }
.nav .it:first-child { margin-top: 6px; }
.nav .more { display: flex; justify-content: center; padding: 6px 0 10px; color: #fff; width: 100%; border-top: 1px solid #555; }
.trial { margin: 8px; border-radius: 16px; background: var(--blue); padding: 14px 12px 12px; color: #fff; }
.trial .t { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; }
.trial .pill { display: block; width: 100%; margin: 10px 0 6px; background: #fff; color: #016de1; border-radius: 12px; height: 24px; font-size: 12px; font-weight: 400; color: #1a4f9c; }
.trial .tlnk { display: block; font-weight: 300; width: 100%; text-align: center; color: #fff; font-size: 12px; }
.flyout { position: fixed; z-index: 50; left: 240px; width: 212px; background: var(--chrome); color: #fff; border-radius: 16px; padding: 10px 8px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.flyout a, .flyout button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; color: #fff; padding: 9px 16px; border-radius: 20px; font-size: 14px; font-weight: 300; line-height: 20px; }
.flyout a:hover, .flyout button:hover { background: rgba(255,255,255,.18); text-decoration: none; }
.flyout a.on { background: #5c5c5c; }
.flyout hr { border: 0; height: 1px; background: #8a8a8a; margin: 8px 16px; }
.flyout .beta { font-size: 10px; font-weight: 600; border: 1px solid #aaa; border-radius: 8px; padding: 0 6px; line-height: 16px; margin-left: auto; }

.main { position: fixed; top: var(--top-h); left: var(--nav-w); right: 0; bottom: 0; background: var(--bg); border-top-left-radius: 16px; overflow: auto; overscroll-behavior: contain; }
.main.flush { left: 0; top: 0; border-radius: 0; z-index: 45; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 34; display: none; }

/* ---------- common atoms ---------- */
.card { background: #fff; border-radius: var(--radius); }
.page-card { margin: 16px; background: #fff; border-radius: 16px; display: flex; flex-direction: column; height: calc(100% - 32px); min-height: 520px; overflow: hidden; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--ink-3); background: #fff; font-size: 12px; font-weight: 400; color: var(--ink); white-space: nowrap; }
.btn:hover { background: #f5f5f5; }
.btn.pri { background: var(--teal-d); border-color: var(--teal-d); color: #fff; }
.btn.pri:hover { background: #006a6c; }
.btn.on { background: var(--hover); }
.btn.round { width: 32px; padding: 0; }
.btn.lg { font-size: 14px; height: 36px; padding: 0 18px; }
.btn.ghost { border-color: transparent; font-weight: 600; }
.btn:disabled { opacity: .5; cursor: default; }
.caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid currentColor; display: inline-block; margin-left: 2px; vertical-align: middle; }
.pill { display: inline-flex; align-items: center; background: var(--bg); border-radius: 12px; font-size: 11px; font-weight: 600; padding: 0 8px; line-height: 20px; color: var(--ink); white-space: nowrap; }
.tag { display: inline-flex; align-items: center; gap: 4px; border-radius: 4px; padding: 0 8px; font-size: 12px; font-weight: 600; line-height: 20px; white-space: nowrap; }
.tag.grey { background: #eaeaea; color: #333; }
.tag.yellow { background: #f5c26b; color: #33280f; }
.tag.red { background: #d9341c; color: #fff; }
.tag.green { background: #d8f2e4; color: #0b5c38; border: 1px solid #2f8c5c; }
.tag.blue { background: #e3f0ff; color: #0b4a8f; }
.chip { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #e8e8e8; font-size: 10px; font-weight: 500; color: #444; flex: none; }
.lnk { color: var(--teal); font-weight: 600; }
.muted { color: var(--ink-2); }
.dash { color: var(--ink); }
.ib { display: inline-flex; align-items: center; gap: 6px; }
.dd { position: fixed; z-index: 70; background: #fff; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.2); border: 1px solid #ddd; padding: 6px 0; min-width: 200px; max-height: 360px; overflow: auto; }
.dd button, .dd a, .dd label { display: flex; gap: 8px; align-items: center; width: 100%; text-align: left; padding: 6px 14px; color: var(--ink); font-size: 14px; font-weight: 300; }
.dd button:hover, .dd a:hover, .dd label:hover { background: var(--hover); text-decoration: none; }
.dd .hd { padding: 6px 14px 2px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.dd hr { border: 0; border-top: 1px solid #e3e3e3; margin: 6px 0; }
.dd .note { padding: 8px 14px 4px; font-size: 12px; line-height: 18px; color: var(--ink-2); max-width: 280px; }
.dd .sel { font-weight: 600; }

/* ---------- index pages ---------- */
.ix-head { display: flex; align-items: center; gap: 10px; padding: 20px 24px 12px; }
.ix-head h1 { margin: 0; font-size: 24px; font-weight: 400; line-height: 29px; display: inline-flex; align-items: center; gap: 8px; }
.ix-head .r { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.vtabs { display: flex; align-items: flex-end; gap: 4px; margin: 0 24px; border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; flex: none; }
.vtabs::-webkit-scrollbar { display: none; }
.vtab { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 6px 6px 0 0; color: var(--ink-2); font-size: 14px; font-weight: 400; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.vtab:hover { color: var(--ink); background: #f6f6f6; }
.vtab.on { background: var(--tab); color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.tbar { display: flex; align-items: center; gap: 8px; padding: 20px 24px 8px; flex-wrap: nowrap; }
.search { position: relative; width: 236px; flex: none; }
.search input { width: 100%; height: 32px; border: 1px solid var(--ink-3); border-radius: 16px; padding: 0 34px 0 16px; font-size: 14px; outline: none; background: #fff; }
.search input:focus { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(0,97,98,.15); }
.search svg { position: absolute; right: 12px; top: 8px; color: #555; }
.tbar .r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.toggle { display: inline-flex; border: 1px solid #ddd; border-radius: 16px; padding: 1px; background: #fafafa; }
.toggle button { width: 30px; height: 28px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: #555; }
.toggle button.on { background: #fff; border: 1px solid var(--ink-3); }
.qf { display: flex; align-items: center; gap: 4px; padding: 2px 16px 14px; overflow-x: auto; scrollbar-width: none; flex: none; }
.qf::-webkit-scrollbar { display: none; }
.qf .q { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.qf .q:hover { background: #f3f3f3; }
.qf .q.set { background: #e5f5f5; color: var(--teal-d); }
.qf .vdiv { width: 1px; height: 32px; background: var(--line); margin: 0 8px; }
.qf .adv { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; position: relative; }
.qf .adv.set { background: var(--hover); }
.qf .adv .bdot { position: absolute; top: -6px; right: 22px; width: 12px; height: 12px; border-radius: 50%; background: #1f6fe0; border: 2px solid #9cc2ff; }
.ix-body { flex: 1; min-height: 0; display: flex; position: relative; }
.twrap { flex: 1; min-width: 0; overflow: auto; margin: 0 0 0 24px; position: relative; }
.gutter { width: 54px; flex: none; border-left: 1px solid var(--line-2); display: flex; flex-direction: column; align-items: center; padding-top: 8px; gap: 18px; color: #555; }
table.t { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; }
table.t th, table.t td { height: 40px; padding: 0 16px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); max-width: 250px; overflow: hidden; text-overflow: ellipsis; }
table.t th { position: sticky; top: 0; background: #fff; color: var(--ink-2); font-weight: 400; z-index: 2; cursor: pointer; user-select: none; }
table.t th.nosort { cursor: default; }
table.t th .si { opacity: 0; margin-left: 6px; }
table.t th:hover .si, table.t th.sorted .si { opacity: 1; }
table.t td { color: var(--ink); width: 250px; }
table.t td.cb, table.t th.cb { width: 48px; min-width: 48px; padding: 0 0 0 12px; }
table.t th.first, table.t td.first { position: sticky; left: 0; background: #fff; z-index: 1; min-width: 250px; }
table.t th.first { z-index: 3; }
table.t td.cb, table.t th.cb { position: sticky; left: 0; z-index: 1; background: #fff; }
table.t th.cb { z-index: 3; }
table.t td.cb + td.first, table.t th.cb + th.first { left: 48px; }
table.t tbody tr:hover td { background: var(--hover); }
table.t .name { display: inline-flex; align-items: center; gap: 8px; max-width: 230px; }
table.t .name a { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
table.t .exp { color: #555; margin-right: 4px; }
table.t td.num { text-align: right; }
.cbx { width: 20px; height: 20px; border: 1px solid #7a7a7a; border-radius: 4px; display: inline-block; vertical-align: middle; background: #fff; appearance: none; margin: 0; cursor: pointer; }
.cbx:checked { background: var(--teal-d); border-color: var(--teal-d); }
.ix-foot { display: flex; align-items: center; gap: 12px; padding: 10px 56px 10px 56px; border-top: 1px solid var(--line-2); flex: none; }
.ix-foot .count { background: var(--bg); border-radius: 17px; padding: 0 16px; line-height: 33px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ix-foot .r { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.pager { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.pager button { min-width: 28px; height: 28px; border-radius: 14px; padding: 0 6px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.pager button.cur { border: 1px solid var(--ink-3); }
.pager button:disabled { color: #aaa; cursor: default; }
.pager select { height: 28px; border: 1px solid #ccc; border-radius: 14px; padding: 0 8px; font-size: 12px; background: #fff; }
.empty { display: flex; align-items: center; justify-content: center; gap: 56px; padding: 56px 24px; flex: 1; }
.empty h3 { margin: 0 0 18px; font-size: 20px; font-weight: 500; line-height: 24px; max-width: 300px; }
.empty p { margin: 0; max-width: 300px; }
.empty .ill { width: 160px; flex: none; }
.fpanel { width: 484px; flex: none; border-left: 1px solid var(--line-2); overflow: auto; padding: 0 16px 24px; background: #fff; }
.fpanel .hd { display: flex; align-items: center; justify-content: space-between; height: 56px; border-bottom: 1px solid var(--line-2); margin-bottom: 16px; }
.fpanel h3 { margin: 0; font-size: 18px; font-weight: 400; }
.fpanel h4 { margin: 10px 0 6px; font-size: 16px; font-weight: 600; }
.fpanel .and { display: flex; align-items: center; gap: 16px; font-weight: 600; margin: 18px 0; }
.fpanel .and:before, .fpanel .and:after { content: ""; flex: 1; height: 1px; background: #ccc; }
.fgroup { border: 1px solid #ccc; border-radius: 12px; padding: 12px 8px 8px; margin-top: 12px; }
.fgroup .gh { display: flex; justify-content: space-between; align-items: center; padding: 0 12px 10px; font-weight: 600; font-size: 16px; }
.fchip { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #f2f2f2; border-radius: 10px; padding: 8px 10px; }
.fchip b { font-weight: 600; }
.fgroup .j { padding: 8px 8px; }
.addf { background: #f2f2f2; border-radius: 10px; padding: 6px 8px; }
.fpick { border: 1px solid #ccc; border-radius: 10px; padding: 10px; margin-top: 8px; background: #fafafa; }
.fpick select, .fpick input { width: 100%; height: 32px; border: 1px solid #bbb; border-radius: 6px; padding: 0 8px; background: #fff; margin-bottom: 8px; }
.fpick .opts { max-height: 160px; overflow: auto; margin-bottom: 8px; }
.fpick .opts label { display: flex; gap: 8px; align-items: center; padding: 2px 0; }
.not-demo { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 60px 24px; flex: 1; }
.not-demo h2 { margin: 8px 0 0; font-size: 20px; font-weight: 500; }
.not-demo p { margin: 0; max-width: 460px; color: var(--ink-2); }
.not-demo .quiet { font-size: 12px; color: var(--ink-3); margin-top: 6px; }

/* ---------- dashboard ---------- */
.dash-card { margin: 16px; background: #fff; border-radius: 16px; min-height: calc(100% - 32px); padding-bottom: 16px; }
.dh { display: flex; align-items: center; gap: 12px; padding: 28px 24px 0; flex-wrap: wrap; }
.dh h1 { margin: 0; font-size: 24px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; letter-spacing: -.2px; }
.dh .r { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dh .mgr { font-size: 12px; font-weight: 600; margin-right: 8px; }
.ddesc { padding: 10px 24px 24px; border-bottom: 1px solid var(--line-2); }
.dfil { display: flex; align-items: center; gap: 0; padding: 18px 24px 10px; font-weight: 600; }
.dfil .vb { width: 2px; height: 24px; background: #333; margin: 0 48px; }
.dfil .r { margin-left: auto; }
.grid6 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; padding: 0 24px; }
.w { border: 1px solid var(--line); border-radius: 8px; padding: 18px 24px; min-width: 0; background: #fff; }
.w h3 { margin: 0; font-size: 16px; font-weight: 500; color: var(--kpi); display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; }
.w h3 span.t { overflow: hidden; text-overflow: ellipsis; }
.w .pill { margin-top: 8px; font-size: 10px; }
.kpi { grid-column: span 3; height: 172px; display: flex; flex-direction: column; }
.kpi .lab { margin-top: auto; text-align: center; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .val { text-align: center; font-size: 28px; font-weight: 600; color: var(--kpi); line-height: 40px; margin-bottom: 6px; }
.wchart { grid-column: span 8; height: 356px; display: flex; flex-direction: column; }
.wchart .ch { flex: 1; min-height: 0; margin-top: 10px; position: relative; }
.wchart .ch svg { width: 100%; height: 100%; display: block; overflow: visible; }
.wneeds { grid-column: span 4; height: 356px; display: flex; flex-direction: column; }
.wstage { grid-column: span 12; height: 356px; display: flex; flex-direction: column; }
.rt { width: 100%; border-collapse: collapse; margin-top: 22px; }
.rt th { text-align: left; font-weight: 400; color: var(--ink); padding: 0 24px; height: 48px; border-bottom: 2px solid #333; white-space: nowrap; cursor: pointer; }
.rt td { padding: 0 24px; height: 47px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rt td.n, .rt th.n { text-align: right; }
.rt td.n { color: var(--kpi); font-weight: 600; }
.rt tr:last-child td { border-bottom: 0; }
@media (max-width: 1360px) { .wneeds .rt th, .wneeds .rt td { padding: 0 12px; } }
.rpager { margin-top: auto; display: flex; justify-content: center; align-items: center; gap: 12px; font-weight: 600; padding-top: 10px; }
.rpager button { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.rpager button:disabled { color: #999; cursor: default; }
.rpager .pg { min-width: 22px; height: 26px; border-radius: 13px; }
.rpager .pg.cur { border: 1px solid #999; }
.dfoot { text-align: right; padding: 18px 24px 0; font-size: 12px; color: var(--ink-2); }
.tip { position: fixed; z-index: 80; background: #fff; border: 1px solid #ccc; border-radius: 8px; padding: 8px 12px; font-size: 12px; line-height: 18px; box-shadow: 0 4px 14px rgba(0,0,0,.15); pointer-events: none; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11px; color: var(--ink-2); margin-top: 4px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* ---------- records ---------- */
.rec { display: grid; grid-template-columns: 261px minmax(360px, 1fr) 262px; gap: 16px; padding: 24px 24px 24px 24px; align-items: start; min-width: 0; }
.rec > div { min-width: 0; }
.rcol-l { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.rcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 8px rgba(20,20,20,.08); }
.rtop { padding: 0 0 18px; }
.rtop .bar { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; height: 48px; border-bottom: 1px solid var(--line-2); font-weight: 600; }
.rtop .bar a { color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.rtop .who { display: flex; align-items: center; gap: 10px; padding: 18px 24px 0; }
.rtop h2 { margin: 0; font-size: 20px; font-weight: 500; line-height: 24px; word-break: break-word; }
.rtop .sub { padding: 6px 24px 0; }
.rtop .em { display: flex; align-items: center; gap: 6px; padding: 0 24px; font-weight: 600; color: var(--teal); min-width: 0; }
.rtop .em span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rtop .kv { padding: 2px 24px; display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; white-space: nowrap; }
.acts { display: flex; justify-content: space-between; padding: 14px 10px 0; }
.acts button { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; width: 44px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.acts .c { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #555; display: inline-flex; align-items: center; justify-content: center; }
.acts button:hover .c { background: #f3f3f3; }
.keyinfo { padding: 6px 0 18px; }
.sect-h { display: flex; align-items: center; gap: 8px; padding: 18px 24px 10px; }
.sect-h h3 { margin: 0; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sect-h .r { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.prop { padding: 6px 24px; }
.prop .l { font-size: 12px; color: var(--ink-2); line-height: 18px; }
.prop .v { line-height: 24px; min-height: 24px; overflow-wrap: anywhere; }
.mtabs { display: flex; align-items: stretch; }
.mtabs .tb { flex: 1; height: 50px; border: 1px solid var(--line); background: #f3f3f3; font-weight: 400; color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; }
.mtabs .tb:first-child { border-top-left-radius: 8px; }
.mtabs .tb.on { background: #fff; border-bottom-color: #fff; font-weight: 500; }
.mtabs .tb + .tb { border-left: 0; }
.mtabs .cust { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; padding: 0 0 0 14px; white-space: nowrap; }
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); margin: 16px 0 0; overflow-x: auto; scrollbar-width: none; }
.subtabs button { padding: 8px 10px; border-bottom: 3px solid transparent; white-space: nowrap; font-weight: 400; }
.subtabs button.on { border-bottom-color: #333; font-weight: 500; }
.tlbar { display: flex; align-items: center; gap: 12px; margin: 14px 0 10px; flex-wrap: wrap; }
.tlbar .search { width: 200px; }
.tlbar .r { margin-left: auto; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.fchips { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; font-weight: 600; }
.fchips .fc { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 6px; }
.fchips .fc.set { background: #eaeaea; }
.month { font-size: 16px; font-weight: 400; margin: 6px 0 10px; }
.ev { background: #fff; border: 1px solid #ddd; border-radius: 16px; padding: 16px 16px 16px 36px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.ev .h { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.ev .h .ts { margin-left: auto; font-weight: 300; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.ev .b { margin-top: 6px; }
.ev .b a { font-weight: 600; }
.ev .task { border: 1px solid #e3e3e3; border-radius: 10px; padding: 10px 12px; margin-top: 8px; background: #fafafa; }
.ev .meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.ev .meta b { color: var(--ink); font-weight: 500; }
.ev.new { border-color: #7fc9b9; }
.sect { margin: 14px 0 8px; display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 500; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 16px; box-shadow: 0 1px 8px rgba(20,20,20,.06); }
.box h4 { margin: 0 0 18px; font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.box h4 .r { margin-left: auto; display: inline-flex; gap: 10px; align-items: center; }
.ai { display: inline-flex; align-items: center; gap: 2px; background: linear-gradient(90deg, #ff2e5f, #ff6b2c); color: #fff; font-size: 10px; font-weight: 600; border-radius: 4px; padding: 0 5px; line-height: 18px; }
.aibox { border: 1px solid var(--pink); border-radius: 16px; padding: 20px 20px 16px; }
.aibox .gen { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.aibox p { margin: 12px 0; }
.aibox .tools { display: flex; align-items: center; gap: 14px; font-size: 12px; }
.ask { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e24; background: #fff2f2; border-radius: 14px; padding: 0 12px; height: 26px; font-size: 12px; margin-top: 14px; }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.pgrid .prop { padding: 0; }
.cen { text-align: center; color: var(--ink); padding: 8px 0; }
.ill-s { width: 90px; display: block; margin: 0 auto 8px; }
.side .sc { margin-bottom: 16px; }
.side .sc .bd { padding: 0 24px 20px; }
.acard { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.acard .t { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.acard .t a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.acard .l { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acard .l a { font-weight: 600; }
.acard .alab { font-size: 12px; font-weight: 600; color: var(--teal); margin-top: 4px; display: block; }
.stagepick { display: inline-flex; align-items: center; gap: 4px; background: #eaeaea; border-radius: 4px; padding: 0 8px; font-size: 12px; font-weight: 600; line-height: 22px; max-width: 150px; }
.stagepick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewall { display: flex; align-items: center; gap: 6px; font-weight: 600; margin-top: 6px; white-space: nowrap; overflow: hidden; max-width: 100%; }
.score { display: grid; grid-template-columns: 120px 1fr; gap: 18px; border: 1px solid #ddd; border-radius: 12px; padding: 18px; }
.ring { width: 84px; height: 84px; border-radius: 50%; border: 5px solid #f26b5b; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 600; margin: 0 auto; }
.kf { font-size: 12px; line-height: 22px; }
.kf b { font-weight: 600; font-size: 12px; display: block; margin-top: 6px; }
.kf .row { display: flex; align-items: center; gap: 8px; }
.collapse-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #999; background: #fff; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- deals board ---------- */
.board { display: flex; gap: 10px; overflow-x: auto; padding: 0 24px 6px; flex: 1; min-height: 0; align-items: stretch; }
.lane { width: 280px; flex: none; background: #f2f2f2; border-radius: 8px; display: flex; flex-direction: column; min-height: 0; }
.lane .lh { display: flex; align-items: center; gap: 10px; padding: 8px 16px; font-size: 12px; font-weight: 600; }
.lane .lh .n { color: var(--ink-2); font-weight: 500; }
.lane .cards { flex: 1; overflow-y: auto; padding: 0 8px 8px; min-height: 80px; }
.lane.drop { outline: 2px dashed var(--teal); outline-offset: -2px; background: #e9f4f4; }
.lane .lf { border-top: 1px solid #ddd; padding: 6px 8px; font-size: 12px; line-height: 18px; }
.lane .lf b { font-weight: 600; }
.dcard { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 10px 12px 8px; margin-bottom: 6px; font-size: 12px; line-height: 18px; cursor: grab; user-select: none; touch-action: pan-x pan-y; }
.dcard:hover { border-color: #aaa; }
.dcard .dn { font-size: 14px; font-weight: 600; color: var(--teal); display: block; margin-bottom: 8px; line-height: 18px; }
.dcard .sep { border-top: 1px solid #ddd; margin: 8px 0; }
.dcard .sc { width: 24px; height: 24px; border-radius: 50%; border: 2px solid; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; }
.dcard .co { display: inline-flex; align-items: center; gap: 4px; }
.dcard .co .chip { width: 22px; height: 22px; font-size: 9px; }
.dcard .co .chip.b { background: #eee; color: #666; }
.dcard .nu { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #f2c94c; background: #fffbea; border-radius: 4px; padding: 0 10px; line-height: 22px; font-size: 12px; }
.dcard .nu.task { border-color: #7fc9b9; background: #effaf6; }
.dcard .ft { display: flex; justify-content: flex-end; gap: 12px; color: #555; margin-top: 6px; }
.dcard.ghost { position: fixed; z-index: 90; pointer-events: none; box-shadow: 0 10px 28px rgba(0,0,0,.25); transform: rotate(2deg); width: 264px; opacity: .95; }
.dcard.dragging { opacity: .35; }
.pipesel { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--ink-3); border-radius: 16px; font-size: 12px; background: #fff; }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(45,62,80,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: #fff; border-radius: 16px; width: 520px; max-width: 100%; max-height: calc(100% - 32px); overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal .mh { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; background: var(--teal-d); color: #fff; border-radius: 16px 16px 0 0; }
.modal .mh h3 { margin: 0; font-size: 18px; font-weight: 500; }
.modal .mh button { color: #fff; }
.modal .mb { padding: 20px 24px; }
.modal .mf { padding: 14px 24px 20px; display: flex; gap: 10px; border-top: 1px solid #eee; }
.fld { margin-bottom: 14px; }
.fld label { display: block; font-weight: 500; margin-bottom: 4px; }
.fld input, .fld select { width: 100%; height: 40px; border: 1px solid #bbb; border-radius: 6px; padding: 0 10px; background: #f8f8f8; }
.fld input:focus, .fld select:focus { outline: 2px solid rgba(0,97,98,.3); border-color: var(--teal); background: #fff; }
.fld .err { color: #c62828; font-size: 12px; }
.modal.lp { width: 980px; background: #F5F8F7; }

/* landing page form (Larkfield's own page) */
.lp-bar { background: #0B5E5E; color: #fff; padding: 18px 32px; display: flex; align-items: center; gap: 12px; font-family: "Helvetica Neue", Arial, sans-serif; }
.lp-bar .mk { width: 34px; height: 34px; border-radius: 8px; background: #E8A33D; display: grid; place-items: center; font-weight: 700; color: #0B5E5E; }
.lp-bar .br { font-size: 19px; font-weight: 700; }
.lp-bar .x { margin-left: auto; color: #fff; }
.lp { font-family: "Helvetica Neue", Arial, sans-serif; color: #1F2A2A; }
.lp .wrap { max-width: 1120px; margin: 0 auto; padding: 40px 32px 24px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.lp h1 { font-size: 36px; line-height: 1.12; margin: 0 0 16px; color: #0B5E5E; }
.lp .lede { font-size: 17px; line-height: 1.5; color: #5B6B6B; margin: 0 0 24px; }
.lp ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lp li { display: flex; gap: 12px; align-items: baseline; font-size: 16px; }
.lp li::before { content: ""; flex: 0 0 10px; height: 10px; border-radius: 50%; background: #E8A33D; }
.lp .fcard { background: #fff; border-radius: 14px; padding: 26px 26px 20px; box-shadow: 0 10px 30px rgba(11,94,94,.12); border-top: 5px solid #0B5E5E; }
.lp .fcard h2 { margin: 0 0 4px; font-size: 22px; }
.lp .fcard .sub { margin: 0 0 16px; color: #5B6B6B; font-size: 15px; }
.lp .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.lp label { display: block; font-size: 14px; font-weight: 600; }
.lp input, .lp select { width: 100%; height: 42px; padding: 8px 12px; border: 1px solid #C9D6D4; border-radius: 8px; font-size: 15px; margin: 4px 0 12px; background: #fff; font-family: inherit; }
.lp input.bad, .lp select.bad { border-color: #c62828; }
.lp .err { color: #c62828; font-size: 12px; margin: -10px 0 8px; }
.lp .go { background: #0B5E5E; color: #fff; border: 0; border-radius: 8px; padding: 13px 22px; font-size: 16px; font-weight: 700; width: 100%; font-family: inherit; }
.lp .go:hover { background: #3A9A9A; }
.lp .thanks { padding: 30px 0; font-size: 17px; line-height: 1.5; }
.lp .foot { text-align: center; color: #5B6B6B; font-size: 13px; padding: 8px 16px 28px; }
.lp .fill { font-size: 12px; color: #0B5E5E; text-decoration: underline; margin: -8px 0 12px; display: inline-block; }

/* ---------- toasts / panels ---------- */
.toasts { position: fixed; left: 252px; bottom: 16px; z-index: 110; display: flex; flex-direction: column; gap: 8px; max-width: 380px; }
.toast { background: #fff; border-left: 4px solid var(--teal); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.2); padding: 10px 14px; font-size: 13px; line-height: 19px; animation: tin .25s ease; }
.toast b { font-weight: 600; display: block; }
.toast a { font-weight: 600; }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.npanel { position: fixed; top: 48px; right: 10px; width: 380px; max-width: calc(100% - 20px); background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.3); z-index: 75; max-height: 70vh; overflow: auto; }
.npanel .nh { padding: 14px 16px; border-bottom: 1px solid #eee; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; }
.npanel .n { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; }
.npanel .n b { font-weight: 600; display: block; }
.npanel .n .s { font-size: 12px; color: var(--ink-2); }
.helpw { position: fixed; right: 16px; top: 455px; width: 54px; background: #fff; border-radius: 12px 0 0 12px; box-shadow: 0 2px 10px rgba(0,0,0,.12); display: flex; flex-direction: column; align-items: center; z-index: 30; }
.helpw span { height: 62px; display: flex; align-items: center; justify-content: center; width: 100%; color: #333; }
.helpw span + span { border-top: 1px solid #eee; }

/* ---------- workflow builder ---------- */
.wf-top { height: 56px; background: var(--chrome); color: #fff; display: flex; align-items: center; padding: 0 8px; position: relative; }
.wf-top .back { height: 40px; padding: 0 24px; border: 1px solid #aaa; border-radius: 20px; color: #fff; font-weight: 600; }
.wf-top .ttl { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; line-height: 20px; white-space: nowrap; }
.wf-top .ttl .n, .wf-top .ttl .on { display: flex; justify-content: center; }
.wf-top .ttl .n { font-size: 20px; font-weight: 300; display: inline-flex; gap: 6px; align-items: center; }
.wf-top .ttl .on { font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.wf-top .ttl .on i { width: 9px; height: 9px; border-radius: 50%; background: #00bf6f; display: inline-block; }
.wf-top .r { margin-left: auto; display: flex; gap: 12px; }
.wf-top .r button { height: 40px; padding: 0 22px; border-radius: 20px; font-weight: 600; border: 1px solid #aaa; color: #fff; }
.wf-top .r button.w { background: #fff; color: #333; border-color: #fff; }
.wf-menu { height: 48px; background: #fff; border-bottom: 1px solid #ddd; display: flex; align-items: center; padding: 0 20px; gap: 34px; font-weight: 600; }
.wf-menu .r { margin-left: auto; display: flex; gap: 12px; }
.wf-menu .r .btn { height: 24px; font-size: 12px; padding: 0 12px; }
.wf-bar { position: absolute; top: 104px; left: 0; right: 0; height: 52px; background: #f0f0f0; border-bottom: 1px solid #ddd; z-index: 6; }
.wf-wrap { position: absolute; top: 156px; left: 0; right: 0; bottom: 0; overflow: auto; background: #f0f0f0; cursor: grab; }
.wf-wrap.panning { cursor: grabbing; }
.wf-tools { position: absolute; top: 116px; left: 20px; z-index: 7; display: flex; align-items: center; gap: 18px; }
.wf-tools .mm { margin-top: 0 !important; }
#minimap { position: absolute; top: 40px; left: 0; }
#minimap .minimap { box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.wf-top .bk-i { display: none; }
.wf-tools .row { display: flex; align-items: center; gap: 8px; }
.wf-tools .grp { display: inline-flex; border: 1px solid #555; border-radius: 16px; background: #fff; }
.wf-tools .grp button { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; color: #555; }
.wf-tools .grp button + button { border-left: 1px solid #555; }
.wf-tools .pct { font-size: 12px; }
.wf-tools .mm { display: block; margin-top: 14px; font-weight: 600; color: var(--teal); }
.minimap { margin-top: 8px; width: 150px; height: 190px; background: #fff; border: 1px solid #ccc; border-radius: 8px; position: relative; overflow: hidden; }
.minimap .vp { position: absolute; border: 2px solid var(--teal); background: rgba(0,97,98,.08); border-radius: 3px; }
.minimap .blk { position: absolute; background: #c9c9c9; border-radius: 2px; }
.wf-canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; padding: 20px 400px 200px; width: max-content; }
.wf-col { display: flex; flex-direction: column; align-items: center; }
.wf-node { width: 350px; background: #fff; border: 1px solid #555; border-radius: 12px; position: relative; cursor: pointer; }
.wf-node:hover { box-shadow: 0 0 0 3px rgba(0,97,98,.18); }
.wf-node.sel { box-shadow: 0 0 0 3px rgba(0,97,98,.4); }
.wf-node.top-g { border-top: 6px solid #3cb878; }
.wf-node.top-p { border-top: 6px solid var(--purple); }
.wf-node.top-k { border-top: 6px solid #222; }
.wf-node .nb { padding: 16px 16px 18px; min-height: 152px; }
.wf-node .nt { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; margin-bottom: 18px; line-height: 16px; }
.wf-node .ic { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #3cb878; display: inline-flex; align-items: center; justify-content: center; color: #1c7a4c; flex: none; background: #f1fbf5; }
.wf-node .ic.p { border-color: var(--purple); color: #6b3fd1; background: #f6f1ff; }
.wf-node .ic.k { border-color: #333; color: #333; background: #fff; }
.wf-node .tx { line-height: 24px; }
.wf-node .tx a, .wf-node .tx .pl { color: var(--teal); font-weight: 600; }
.wf-node .ec { display: inline-block; border: 1px solid #555; border-radius: 4px; background: #eee; padding: 0 8px; font-size: 12px; font-weight: 600; line-height: 22px; margin: 0 2px; }
.wf-node .nf { border-top: 1px solid #555; height: 38px; display: flex; align-items: center; gap: 12px; padding: 0 16px; color: #444; }
.wf-node .nf .det { margin-left: auto; font-weight: 600; color: var(--teal); }
.wf-node .badge { display: flex; align-items: center; gap: 6px; color: var(--teal); font-weight: 600; font-size: 12px; margin-top: 2px; }
.wf-node .badge i { width: 9px; height: 9px; border-radius: 50%; background: #00a36b; }
.wf-trig .nb { min-height: 0; }
.wf-trig .grp1 { border: 1px solid #ccc; border-radius: 12px; padding: 12px 10px 10px; margin-top: 8px; }
.wf-trig .grp1 .gt { font-size: 16px; font-weight: 600; padding: 0 10px 14px; }
.wf-trig .cond { background: #f0f0f0; border-radius: 12px; padding: 12px 12px; line-height: 22px; }
.wf-trig .cond b { font-weight: 600; }
.wf-line { width: 2px; background: #666; height: 36px; position: relative; flex: none; }
.wf-plus { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #555; background: #fff; display: flex; align-items: center; justify-content: center; color: #555; flex: none; }
.wf-branch { display: flex; align-items: flex-start; position: relative; }
.wf-branch > .wf-lane { display: flex; flex-direction: column; align-items: center; position: relative; padding: 0 8px; }
.wf-branch > .wf-lane::before { content: ""; position: absolute; top: 0; height: 2px; background: #666; left: 0; right: 0; }
.wf-branch > .wf-lane:first-child::before { left: 50%; }
.wf-branch > .wf-lane:last-child::before { right: 50%; }
.wf-lab { width: 250px; border: 1px solid #555; border-radius: 12px; background: #fff; text-align: center; padding: 8px 12px; font-size: 14px; font-weight: 600; line-height: 22px; min-height: 60px; display: flex; flex-direction: column; justify-content: center; cursor: pointer; }
.wf-lab .s { font-weight: 300; font-style: italic; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-lab .s.n { font-style: normal; }
.wf-lab .m { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-end { width: 100px; height: 50px; border: 1px solid #555; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.wf-goto .nb { min-height: 130px; }
.wf-svg { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.wf-pop { position: absolute; z-index: 20; width: 360px; background: #fff; border-radius: 12px; border: 1px solid #ddd; box-shadow: 0 8px 30px rgba(0,0,0,.18); padding: 18px 20px; cursor: auto; }
.wf-pop .ph { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; }
.wf-pop .ph .x { margin-left: auto; }
.wf-pop .ok { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-top: 14px; }
.wf-pop .wt { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-top: 12px; }
.wf-pop p { margin: 6px 0 0 20px; }
.wf-pop .cfg { margin: 12px 0 0 20px; border-top: 1px solid #eee; padding-top: 10px; font-size: 13px; line-height: 20px; }
.wf-pop .cfg dt { color: var(--ink-2); font-size: 12px; margin-top: 6px; }
.wf-pop .cfg dd { margin: 0; }
.wf-pop .tpl { background: #f6f6f6; border-radius: 8px; padding: 8px 10px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
.wf-pop .open { margin: 14px 0 0 20px; }
.wf-pop:before { content: ""; position: absolute; left: -8px; top: 26px; width: 14px; height: 14px; background: #fff; border-left: 1px solid #ddd; border-bottom: 1px solid #ddd; transform: rotate(45deg); }

/* ---------- automation + forms index ---------- */
.auto-head { padding: 22px 48px 0; background: #fff; }
.auto-head .row { display: flex; align-items: center; gap: 12px; }
.auto-head h1 { margin: 0; font-size: 20px; font-weight: 500; }
.auto-head .r { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.utabs { display: flex; gap: 0; margin-top: 18px; border-bottom: 1px solid #ccc; overflow-x: auto; scrollbar-width: none; }
.utabs button { padding: 10px 28px; border-bottom: 4px solid transparent; margin-bottom: -1px; font-weight: 500; white-space: nowrap; }
.utabs button.on { border-bottom-color: #333; }
.utabs .rl { margin-left: auto; font-weight: 600; color: var(--teal); padding: 10px 0; white-space: nowrap; }
.banner { margin: 10px 0 12px; border: 1px solid #2c8ff5; background: #e5f5fc; border-radius: 12px; padding: 14px 20px; position: relative; }
.banner h4 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.banner .x { position: absolute; right: 18px; top: 18px; }
.banner .btn { height: 30px; margin-left: 8px; }
.light { background: #fff; min-height: 100%; }
.panel-t { margin: 20px 48px; border: 1px solid #ccc; border-radius: 12px; overflow: hidden; }
.ptabs { display: flex; border-bottom: 1px solid #ccc; overflow-x: auto; scrollbar-width: none; }
.ptabs > * { flex: none; }
.ptabs .pt { width: 224px; display: flex; align-items: center; gap: 6px; padding: 0 16px; height: 38px; background: #f0f0f0; border-right: 1px solid #ccc; }
.ptabs .pt.on { background: #fff; }
.ptabs .pt .x { margin-left: auto; }
.ptabs .cnt { background: #222; color: #fff; border-radius: 10px; font-size: 10px; font-weight: 600; min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.ptabs .pa { padding: 0 20px; display: flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.ptabs .fold { margin-left: auto; padding: 0 18px; display: flex; align-items: center; gap: 8px; background: #f6f6f6; border-left: 1px solid #ccc; }
.pfil { display: flex; align-items: center; gap: 30px; padding: 14px 24px; font-weight: 600; border-bottom: 1px solid #ccc; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.psearch { display: flex; align-items: center; padding: 8px 8px; border-bottom: 1px solid #ccc; }
.psearch .search { width: 250px; }
.psearch .r { margin-left: auto; }
.pwrap { overflow-x: auto; }
table.pt2 { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; }
table.pt2 th, table.pt2 td { padding: 0 14px; height: 46px; text-align: left; border-bottom: 1px solid #ddd; white-space: nowrap; max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
table.pt2 th { font-weight: 400; color: #444; height: 40px; border-bottom: 2px solid #ccc; }
table.pt2 tr:last-child td { border-bottom: 0; }
table.pt2 td.first, table.pt2 th.first { position: sticky; left: 48px; background: #fff; z-index: 1; }
table.pt2 td.cb, table.pt2 th.cb { position: sticky; left: 0; width: 48px; min-width: 48px; background: #fff; z-index: 1; padding-left: 14px; }
table.pt2 td a { font-weight: 600; }
table.pt2 tbody tr:hover td { background: #f6f6f6; }
.pub { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #555; }
.pub i { width: 9px; height: 9px; border-radius: 50%; background: #00a36b; display: inline-block; }
.forms-head { padding: 22px 48px 0; background: #fff; }
.forms-head h1 { margin: 0; font-size: 20px; font-weight: 500; line-height: 24px; }
.forms-head .c { font-size: 12px; font-weight: 600; }

/* ---------- form editor ---------- */
.fe-top { height: 56px; background: var(--chrome); color: #fff; display: flex; align-items: center; padding: 0 12px; position: relative; }
.fe-top .bk { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.fe-top .ttl { position: absolute; left: 50%; transform: translateX(-50%); display: inline-flex; gap: 10px; align-items: center; font-weight: 300; white-space: nowrap; }
.fe-top .r { margin-left: auto; display: flex; gap: 8px; }
.fe-top .r .btn { border-color: #fff; }
.fe-menu { height: 48px; border-bottom: 1px solid #ddd; background: #fff; display: flex; align-items: center; padding: 0 8px; }
.fe-menu .tabs { display: flex; margin: 0 auto; gap: 8px; }
.fe-menu .tabs button { padding: 0 24px; height: 48px; border-bottom: 4px solid transparent; font-weight: 400; }
.fe-menu .tabs button.on { border-bottom-color: #333; font-weight: 500; }
.fe-menu .r { display: flex; gap: 8px; }
.fe-body { position: absolute; top: 104px; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 590px 1fr; background: #fff; }
.fe-left { border-right: 1px solid #ccc; overflow: auto; }
.fe-left .lt { display: grid; grid-template-columns: 1fr 1fr; }
.fe-left .lt button { height: 50px; font-weight: 500; border-bottom: 1px solid #ccc; background: #f0f0f0; }
.fe-left .lt button.on { background: #fff; border-bottom-color: #fff; border-right: 1px solid #ccc; }
.fe-left .search { display: block; width: auto; margin: 34px 36px 10px; }
.fe-left .search input { height: 40px; border-radius: 20px; }
.fe-left .search svg { top: 12px; }
.fe-left h4 { margin: 20px 26px 12px; font-size: 14px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.fe-left .pp { margin: 0 118px 8px 48px; border: 1px solid #555; border-radius: 4px; height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 10px; }
.fe-left .pp.dis { border-color: #ccc; color: #aaa; }
.fe-canvas { overflow: auto; padding: 30px 60px 60px; }
.fe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; max-width: 690px; }
.fe-f { margin-bottom: 34px; }
.fe-f.full { grid-column: 1 / -1; }
.fe-f .fl { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 10px; flex-wrap: wrap; }
.fe-f .fl i { font-weight: 300; font-size: 12px; }
.fe-f .cp { font-size: 12px; font-weight: 600; border: 1px solid #2f8c5c; background: #e6f6ee; border-radius: 4px; padding: 0 8px; line-height: 22px; }
.fe-f .box2 { height: 40px; border: 1px solid #333; border-radius: 3px; display: flex; align-items: center; padding: 0 16px; font-size: 16px; justify-content: space-between; }
.fe-sub { display: inline-flex; align-items: center; height: 44px; padding: 0 26px; border-radius: 22px; background: var(--teal-d); color: #fff; font-weight: 600; }

/* ---------- slack ---------- */
.sl { position: fixed; inset: 0; background: #3f0e40; z-index: 45; display: grid; grid-template-rows: 40px 1fr; font-family: Lato, "Helvetica Neue", Arial, sans-serif; font-weight: 400; }
.sl .stop { display: flex; align-items: center; gap: 10px; padding: 0 12px; color: #fff; }
.sl .stop .nav2 { display: inline-flex; gap: 12px; margin-left: 290px; color: #ccc; }
.sl .stop .ss { flex: 1; max-width: 600px; height: 26px; border-radius: 6px; background: rgba(255,255,255,.2); color: #e8dfe8; font-size: 13px; display: flex; align-items: center; gap: 8px; padding: 0 10px; }
.sl .back { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 6px; background: rgba(255,255,255,.14); color: #fff; font-size: 13px; }
.sl .sbody { display: grid; grid-template-columns: 70px 328px 1fr; min-height: 0; }
.sl .rail { color: #fff; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 6px; font-size: 11px; font-weight: 700; }
.sl .rail .ws { width: 36px; height: 36px; border-radius: 8px; background: #c2c2c2; color: #333; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.sl .rail .ri { display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; }
.sl .rail .ri .c { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.sl .rail .ri.on .c { background: rgba(255,255,255,.25); }
.sl .rail .bdg { position: absolute; top: -2px; right: 2px; background: #cd2553; border-radius: 9px; font-size: 10px; min-width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; }
.sl .side2 { background: #5f2465; border-radius: 8px 0 0 8px; color: #e9d8ea; overflow: auto; padding: 10px 8px; margin-bottom: 4px; }
.sl .side2 .wsn { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 18px; font-weight: 900; padding: 4px 8px 12px; }
.sl .side2 .offer { border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 10px 12px; color: #fff; font-weight: 700; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.sl .side2 .find { border-radius: 6px; background: rgba(255,255,255,.12); padding: 4px 10px; font-size: 13px; margin-bottom: 12px; }
.sl .side2 .si2 { display: flex; align-items: center; gap: 8px; padding: 3px 10px; border-radius: 6px; font-size: 15px; }
.sl .side2 .si2.on { background: #f9edff; color: #3f0e40; font-weight: 700; }
.sl .side2 .si2.b { color: #fff; font-weight: 700; }
.sl .side2 .si2 .bd { margin-left: auto; background: #b896ce; color: #3f0e40; border-radius: 9px; font-size: 11px; padding: 0 7px; font-weight: 700; }
.sl .side2 .gh { padding: 14px 10px 4px; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.sl .side2 .small { font-size: 13px; padding: 0 24px 6px; opacity: .85; }
.sl .side2 hr { border: 0; border-top: 1px solid rgba(255,255,255,.2); margin: 10px 8px; }
.sl .chan { background: #fff; color: #1d1c1d; display: flex; flex-direction: column; min-height: 0; border-radius: 0 8px 0 0; margin-right: 4px; margin-bottom: 4px; }
.sl .ch { display: flex; align-items: center; gap: 10px; padding: 12px 18px 0; font-size: 18px; font-weight: 900; }
.sl .ch .r { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 700; color: #444; }
.sl .ctabs { display: flex; gap: 18px; padding: 8px 18px 0; font-size: 13px; font-weight: 700; color: #555; border-bottom: 1px solid #ddd; }
.sl .ctabs span { padding-bottom: 8px; display: inline-flex; gap: 6px; align-items: center; }
.sl .ctabs span.on { border-bottom: 2px solid #611f69; color: #1d1c1d; }
.sl .msgs { flex: 1; overflow: auto; padding: 8px 0 12px; }
.sl .intro { padding: 20px 20px 10px; }
.sl .intro h2 { margin: 0 0 4px; font-size: 22px; font-weight: 900; }
.sl .intro p { margin: 0; color: #616061; font-size: 15px; }
.sl .day { display: flex; align-items: center; margin: 16px 0 6px; }
.sl .day:before, .sl .day:after { content: ""; flex: 1; border-top: 1px solid #ddd; }
.sl .day span { border: 1px solid #ddd; border-radius: 14px; padding: 2px 14px; font-size: 13px; font-weight: 700; }
.sl .m { display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 6px 20px; }
.sl .m:hover { background: #f8f8f8; }
.sl .m .av { width: 36px; height: 36px; border-radius: 6px; background: #ccc; display: flex; align-items: center; justify-content: center; }
.sl .m .av.hs { background: #ff5c35; }
.sl .m .who { font-weight: 900; font-size: 15px; }
.sl .m .ag { font-size: 10px; font-weight: 700; color: #616061; background: #eee; border-radius: 3px; padding: 0 4px; margin-left: 6px; vertical-align: 2px; }
.sl .m .tm { color: #616061; font-size: 12px; margin-left: 6px; }
.sl .m .tx { font-size: 15px; line-height: 22px; }
.sl .m .tx.sys { color: #1d1c1d; }
.sl .m .btns { border-left: 4px solid #e85a32; padding-left: 12px; margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.sl .m .btns button { border: 1px solid #bbb; border-radius: 4px; height: 28px; padding: 0 10px; font-size: 13px; font-weight: 700; background: #fff; color: #1d1c1d; font-family: inherit; }
.sl .m.fresh { background: #fff8e6; }
.sl .comp { margin: 0 18px 12px; border: 1px solid #bbb; border-radius: 8px; }
.sl .comp .tb { display: flex; gap: 18px; padding: 8px 12px; color: #888; }
.sl .comp .tb { align-items: center; gap: 14px !important; color: #666 !important; background: #f8f8f8; border-radius: 8px 8px 0 0; }
.sl .comp .vs { width: 1px; height: 18px; background: #ccc; }
.sl .comp .in { padding: 10px 14px; color: #888; font-size: 15px; }
.sl .comp .bt { display: flex; align-items: center; gap: 14px; padding: 6px 12px 10px; color: #555; }
.sl .comp .bt .pl { width: 26px; height: 26px; border-radius: 50%; background: #eee; display: inline-flex; align-items: center; justify-content: center; }
.sl .snotif { background: #e8f5fa; color: #1d1c1d; text-align: center; padding: 10px; font-size: 14px; font-weight: 700; display: flex; gap: 6px; align-items: center; justify-content: center; }
.sl .snotif span { color: #1264a3; }
.sl .ishapes { display: flex; gap: 12px; margin-bottom: 16px; }
.sl .ishapes > span { width: 170px; height: 110px; border-radius: 10px; display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.sl .sh1 { background: #fbd38d; } .sl .sh1 i { height: 12px; border-radius: 6px; background: #fff; display: block; } .sl .sh1 i:nth-child(2) { width: 70%; }
.sl .sh2 { background: #bfe9f7; } .sl .sh2 i { height: 30px; border-radius: 6px; background: #fff; display: block; transform: skewY(-8deg); }
.sl .sh3 { background: #f7e6ff; flex-direction: row !important; align-items: center; justify-content: center; } .sl .sh3 b { width: 34px; height: 34px; border-radius: 50%; background: #e4a07a; } .sl .sh3 b:nth-child(2) { background: #7a5233; } .sl .sh3 b:nth-child(3) { background: #f28ab0; }
.sl .notif { position: absolute; left: 70px; right: 4px; bottom: 4px; background: #e8f5fa; color: #1d1c1d; text-align: center; padding: 12px; font-size: 15px; font-weight: 700; border-radius: 0 0 8px 8px; display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1560px) {
  .gsearch { width: 296px; }
  .tbtn.test .full { display: none; }
}
@media (min-width: 1561px) {
  .tbtn.test .short { display: none; }
}
@media (max-width: 1320px) {
  .rec { grid-template-columns: 261px minmax(0, 1fr); }
  .rec .side { grid-column: 2; }
  .gsearch { width: 300px; }
  .tbtn .lbl-wide { display: none; }
}
@media (max-width: 1100px) {
  .grid6 .kpi { grid-column: span 6; }
  .grid6 .wchart, .grid6 .wneeds, .grid6 .wstage { grid-column: span 12; }
  .gsearch { width: 220px; }
  .fe-body { grid-template-columns: 360px 1fr; }
  .fe-left .pp { margin-right: 24px; }
}
@media (max-width: 900px) {
  :root { --nav-w: 0px; }
  .menu-btn { display: inline-flex; }
  .top .logo { width: auto; padding-left: 4px; padding-right: 10px; }
  .nav { width: 260px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 4px 0 20px rgba(0,0,0,.3); }
  body.navopen .nav { transform: none; }
  body.navopen .scrim { display: block; }
  .main { border-top-left-radius: 0; }
  .flyout { left: 12px !important; right: 12px; width: auto; max-height: calc(100% - 80px); overflow: auto; }
  .toasts { left: 12px; right: 12px; max-width: none; }
  .rec { grid-template-columns: 1fr; padding: 12px; }
  .rec .side { grid-column: auto; }
  .rcol-l { position: static; }
  .fe-body { grid-template-columns: 1fr; }
  .fe-left { display: none; }
}
@media (max-width: 760px) {
  body { overflow: hidden; }
  .gsearch { flex: 1; width: auto; min-width: 0; }
  .tbtn.hide-s, .tdiv, .acct .an { display: none; }
  .tbtn.test .lbl { display: none; }
  .tbtn.test { margin-right: 0; padding: 0 8px; }
  .page-card { margin: 8px; height: auto; min-height: calc(100% - 16px); overflow: visible; }
  .ix-head { padding: 14px 14px 6px; flex-wrap: wrap; }
  .ix-head h1 { font-size: 22px; }
  .vtabs { margin: 0 14px; }
  .tbar { padding: 10px 14px 6px; flex-wrap: wrap; }
  .tbar .search { width: 100%; }
  .tbar .r { margin-left: 0; }
  .qf { padding: 2px 6px 8px; }
  .ix-body { flex-direction: column; }
  .twrap { margin: 0 0 0 14px; max-height: none; }
  .gutter { display: none; }
  .fpanel { width: auto; border-left: 0; border-top: 1px solid var(--line-2); }
  .ix-foot { padding: 10px 14px; flex-wrap: wrap; }
  .ix-foot .r { margin-left: 0; flex-wrap: wrap; }
  .empty { flex-direction: column; gap: 20px; padding: 32px 16px; text-align: left; }
  .board { padding: 0 14px 10px; height: 70vh; flex: none; scroll-snap-type: x proximity; }
  .lane { width: 270px; scroll-snap-align: start; }
  .dash-card { margin: 8px; }
  .dh { padding: 18px 14px 0; }
  .dh h1 { font-size: 20px; }
  .dh .r { margin-left: 0; width: 100%; }
  .dh .r .hide-s { display: none; }
  .ddesc { padding: 8px 14px 16px; }
  .dfil { padding: 14px 14px 8px; }
  .dfil .vb { margin: 0 18px; }
  .grid6 { padding: 0 10px; gap: 10px; }
  .grid6 .kpi { grid-column: span 12; height: 150px; }
  .w { padding: 14px 16px; }
  .wchart { height: 330px; }
  .rt th, .rt td { padding: 0 10px; }
  .score { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: 1fr; }
  .auto-head, .forms-head { padding: 16px 14px 0; }
  .auto-head .row { flex-wrap: wrap; }
  .auto-head .r { margin-left: 0; flex-wrap: wrap; }
  .auto-head .r .hide-s { display: none; }
  .panel-t { margin: 14px; }
  .banner { padding-right: 40px; }
  .ptabs .pt { width: 170px; }
  .psearch .search { width: 200px; }
  .wf-top .back { padding: 0 14px; height: 34px; }
  .wf-top .ttl .n { font-size: 15px; }
  .wf-top .ttl { left: 52%; }
  .wf-top .r button { padding: 0 12px; height: 34px; }
  .wf-top .r .hide-s { display: none; }
  .wf-menu { gap: 18px; padding: 0 12px; overflow-x: auto; white-space: nowrap; }
  .wf-menu .r { display: none; }
  .wf-tools { left: 10px; top: 116px; gap: 10px; }
  .wf-tools .mm { font-size: 12px; }
  .wf-top .bk-t { display: none; }
  .wf-top .bk-i { display: inline-flex; }
  .wf-top .back { width: 36px; padding: 0 !important; justify-content: center; }
  .wf-top .ttl { position: static; transform: none; flex: 1; min-width: 0; margin: 0 8px; text-align: left; }
  .wf-top .ttl .n { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; font-size: 14px; }
  .wf-top .ttl .on { justify-content: flex-start; }
  .wf-top .r { margin-left: 0; flex: none; }
  .wf-canvas { padding-top: 20px !important; }
  .wf-pop.sheet { position: fixed; left: 8px !important; right: 8px; top: auto !important; bottom: 8px; width: auto; max-height: 60vh; overflow: auto; }
  .wf-pop.sheet:before { display: none; }
  .fe-top .ttl { position: static; transform: none; margin-left: 12px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
  .fe-top .bk span { display: none; }
  .fe-menu .tabs button { padding: 0 10px; }
  .fe-menu .r { display: none; }
  .fe-menu .tabs { margin: 0; overflow-x: auto; }
  .fe-canvas { padding: 20px 14px 40px; }
  .fe-grid { grid-template-columns: 1fr; }
  .lp .wrap { grid-template-columns: 1fr; padding: 20px 14px; gap: 20px; }
  .lp h1 { font-size: 26px; }
  .lp .row2 { grid-template-columns: 1fr; }
  .lp-bar { padding: 12px 14px; }
  .modal-bg { padding: 0; align-items: stretch; }
  .modal { border-radius: 0; max-height: 100%; width: 100%; }
  .modal.small { border-radius: 16px; margin: auto 10px; max-height: calc(100% - 20px); }
  .modal .mh { border-radius: 0; }
  .modal.small .mh { border-radius: 16px 16px 0 0; }
  .helpw { display: none; }
  .sl .sbody { grid-template-columns: 1fr; }
  .sl .rail, .sl .side2 { display: none; }
  .sl .stop .nav2, .sl .stop .ss { display: none; }
  .wf-canvas { padding-top: 80px; }
  .wf-top .ttl .n svg { display: none; }
  .sl .chan { margin: 0; border-radius: 0; }
  .sl .ch .r .hide-s { display: none; }
  .sl .ishapes > span { width: 100px; height: 70px; }
  .sl .snotif { display: none; }
}
