/* The two demos: a copy of the platform's look with sample data. --brand is the company's colour. */
:root { --brand: #2f6bff; --brand-soft: color-mix(in srgb, var(--brand) 9%, #fff); --ink: #111827; --ink-2: #374151; --muted: #6b7280; --line: #e5e7eb; --bg: #f5f8fb; --ok: #16a34a; --ok-soft: #e8f7ee; --warn: #b7791f; --warn-soft: #fdf3dc; }
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--ink); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

/* Demo bar (ours, not part of the product) */
.demobar { background: #101828; color: #fff; font-size: 13px; }
.demobar .in { max-width: 1200px; margin: 0 auto; padding: 8px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.demobar a { color: #fff; text-decoration: none; font-weight: 600; }
.demobar .lab { color: #98a2b3; }
.demobar .spacer { flex: 1; }
.demobar input[type=text] { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 7px; padding: 4px 9px; width: 170px; font-size: 13px; }
.swatches { display: inline-flex; gap: 6px; vertical-align: middle; }
.swatches button { width: 20px; height: 20px; border-radius: 50%; border: 2px solid transparent; padding: 0; }
.swatches button[aria-pressed="true"] { border-color: #fff; }
.demobar .switch { background: rgba(255,255,255,.12); padding: 5px 12px; border-radius: 7px; }
body.embed .demobar { display: none; }

/* Product chrome */
.appbar { background: #fff; border-bottom: 1px solid var(--line); }
.appbar .in { max-width: 1240px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 12px; }
.co { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; }
.co .mark { width: 26px; height: 26px; border-radius: 7px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 800; }
.appbar .sp { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 7px 12px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.chip svg, .pill svg, .btn svg { width: 15px; height: 15px; }
.chip.bell { position: relative; padding: 7px 9px; }
.chip.bell b { position: absolute; top: -6px; right: -6px; background: var(--brand); color: #fff; font-size: 10.5px; border-radius: 99px; min-width: 17px; height: 17px; display: grid; place-items: center; }
select.chip { appearance: none; padding-right: 26px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.500l3 3 3-3' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") right 8px center/12px no-repeat; }
.avatar { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.who { font-size: 13.5px; color: var(--muted); }

.pills { max-width: 1200px; margin: 12px auto 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 13px; display: flex; gap: 5px; box-shadow: 0 1px 2px rgba(17,24,39,.04); overflow-x: auto; }
.pills-wrap { padding: 0 20px; }
.pill { flex: 1; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 9px; border: 1px solid var(--line); background: #f8fafc; font-weight: 600; font-size: 14px; color: var(--ink); }
.pill[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pill .n { font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.pill[aria-selected="true"] .n { background: rgba(255,255,255,.2); border-color: transparent; color: #fff; }
.pills.small { margin-top: 0; box-shadow: none; }

main { max-width: 1160px; margin: 0 auto; padding: 28px 20px 70px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.card + .card { margin-top: 22px; }
.card-h { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-h h2 { font-size: 16.5px; font-weight: 700; }
.card-h p { font-size: 13.5px; color: var(--muted); width: 100%; margin-top: -8px; }
.card-b { padding: 22px 24px; }
h1.page { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.sub { color: var(--muted); margin: 2px 0 18px; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 22px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 196px; }
.tile::after { content: ''; position: absolute; right: -26px; top: -26px; width: 96px; height: 96px; border-radius: 50%; background: var(--tint, #f1f5f9); opacity: .6; }
.tile .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--tint, #f1f5f9); color: var(--tc, var(--ink)); display: grid; place-items: center; margin-bottom: 14px; }
.tile .ic svg { width: 20px; height: 20px; }
.tile .big { font-size: 20px; font-weight: 750; letter-spacing: -.01em; }
.tile .big.xl { font-size: 28px; }
.tile .small { color: var(--muted); font-size: 13.5px; }
.tile .btn { margin-top: auto; }
.tile.center { align-items: center; text-align: center; }
@media (max-width: 980px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 13.5px; text-decoration: none; color: var(--ink); }
.btn.full { width: 100%; }
.btn.brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.tint { background: var(--tint); border-color: color-mix(in srgb, var(--tc) 25%, #fff); color: var(--tc); }
.btn.sm { padding: 6px 11px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: default; }

.bar { height: 5px; border-radius: 99px; background: #eef1f5; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .3s; }
.bar.ok i { background: var(--ok); }

.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 7px; background: #f1f5f9; color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.cur { background: var(--brand-soft); color: var(--brand); }
.badge.info { background: #e8f0ff; color: #1d4fd8; }
.badge.ai { background: #f3e8ff; color: #7e22ce; }

.pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pay > div { border: 1px solid var(--line); background: #f8fafc; border-radius: 12px; padding: 16px; }
.pay > div.paid { background: #f3fbf6; border-color: #b7e4c7; }
.pay .t { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ink-2); }
.pay .t b { font-size: 19px; letter-spacing: -.01em; color: var(--ink); }
.pay p { color: var(--muted); font-size: 13.5px; margin: 8px 0 10px; }
@media (max-width: 760px) { .pay { grid-template-columns: 1fr; } }

.group { margin-top: 22px; } .group:first-child { margin-top: 0; }
.group > h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.task { border-bottom: 1px solid var(--line); }
.task > button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 13px; width: 100%; padding: 13px 0; }
.box { width: 21px; height: 21px; border-radius: 6px; border: 2px solid #d1d5db; flex: none; display: grid; place-items: center; }
.task.done .box { background: var(--ok); border-color: var(--ok); }
.task.done .box::after { content: ''; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-1px); }
.task.cur .box { border-color: var(--brand); }
.task .name { flex: 1; font-weight: 500; }
.task.done .name { text-decoration: line-through; color: var(--muted); }
.task .more { display: none; padding: 0 0 16px 34px; color: var(--ink-2); max-width: 760px; }
.task.open .more { display: block; }
.task .chev { color: var(--muted); transition: transform .2s; } .task.open .chev { transform: rotate(180deg); }
.video { margin-top: 10px; display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px; font-weight: 600; font-size: 13.5px; background: #f8fafc; }
.video i { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; } .video i::after { content: ''; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }

.doc { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.doc:last-child { border-bottom: 0; }
.doc .d { flex: 1; min-width: 200px; } .doc .d b { font-weight: 600; display: block; } .doc .d span { color: var(--muted); font-size: 13px; }
.note { width: 100%; background: var(--warn-soft); border-radius: 10px; padding: 10px 13px; font-size: 13.5px; color: #7a5210; }
.note b { font-weight: 600; }

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.list li { padding-left: 26px; position: relative; }
.list li::before { content: ''; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4.3 8.300l2.3 2.3 5-5.2' stroke='%2316a34a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; } .two .card + .card { margin-top: 0; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

.chat { display: flex; flex-direction: column; gap: 10px; min-height: 180px; max-height: 320px; overflow-y: auto; margin-bottom: 14px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 13px; background: #f1f5f9; }
.msg.me { align-self: flex-end; background: var(--brand); color: #fff; }
.ask { display: flex; gap: 8px; } .ask input { flex: 1; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.quick button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 13px; font-size: 13px; font-weight: 500; }

input[type=text], input[type=number], input[type=email], select.f, textarea { border: 1px solid #d1d5db; border-radius: 9px; padding: 9px 12px; background: #fff; width: 100%; }
label.f { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .form .wide { grid-column: 1 / -1; }
@media (max-width: 700px) { .form { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kv > div { background: #f8fafc; border-radius: 10px; padding: 12px 14px; }
.kv span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; color: var(--muted); text-transform: none; }
.kv b { font-weight: 600; }
@media (max-width: 700px) { .kv { grid-template-columns: 1fr; } }

.tabs2 { display: flex; gap: 22px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.tabs2 button { all: unset; cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs2 button[aria-selected="true"] { color: var(--brand); border-color: var(--brand); }
.filters { display: flex; gap: 10px; padding: 14px 16px; flex-wrap: wrap; } .filters input { flex: 1; min-width: 180px; } .filters select { width: auto; }
.tw { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); background: #f8fafc; padding: 10px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; } tr.click:hover td { background: #fafbfc; }
.person { display: flex; align-items: center; gap: 12px; } .person i { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-style: normal; font-weight: 700; font-size: 13px; display: grid; place-items: center; flex: none; }
.person b { font-weight: 600; display: block; } .person span { color: var(--muted); font-size: 12.5px; }
.stage::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c, #9ca3af); margin-right: 7px; vertical-align: 1px; }
.prog { display: flex; align-items: center; gap: 10px; min-width: 130px; } .prog .bar { flex: 1; } .prog span { color: var(--muted); font-size: 12.5px; }
.foot { padding: 11px 16px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); background: #f8fafc; border-radius: 0 0 14px 14px; }
.back { all: unset; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 13.5px; display: inline-flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.row .sp { flex: 1; }
.toggle { position: relative; width: 38px; height: 22px; border-radius: 99px; background: #d1d5db; border: 0; padding: 0; flex: none; transition: background .15s; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.toggle[aria-pressed="true"] { background: var(--brand); } .toggle[aria-pressed="true"]::after { left: 19px; }
td input[type=number] { width: 96px; padding: 7px 9px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: #f1f5f9; padding: 3px 8px; border-radius: 6px; }
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } @media (max-width: 860px) { .pcards { grid-template-columns: 1fr; } }
.pcard { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff; } .pcard b { display: block; font-weight: 600; } .pcard p { color: var(--muted); font-size: 13.5px; margin: 4px 0 12px; }
.preview { border: 1px dashed #cbd5e1; border-radius: 12px; padding: 18px; background: #f8fafc; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: #111827; color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 13.5px; font-weight: 500; opacity: 0; pointer-events: none; transition: all .25s; max-width: 92vw; z-index: 99; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

body.embed main { padding-bottom: 34px; }
