@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600&family=Hind+Siliguri:wght@400;500;600&display=swap');

:root {
  --bg: #f4f6f5;
  --panel: #ffffff;
  --ink: #0f1f1c;
  --ink-2: #4b5b57;
  --ink-3: #8a9894;
  --line: #e4e9e7;
  --line-2: #eef2f0;
  --brand: #0f6b5c;
  --brand-2: #0b5247;
  --brand-soft: #e3f2ee;
  --gold: #c69a3c;
  --gold-soft: #fbf3e2;
  --side: #0c2a25;
  --side-2: #12372f;
  --red: #d64545; --red-soft: #fdecec;
  --amber: #d98a16; --amber-soft: #fdf3e1;
  --blue: #2f6fdb; --blue-soft: #e8f0fd;
  --violet: #7a4fd6; --violet-soft: #f1ebfd;
  --green: #1f9d5c; --green-soft: #e4f6ec;
  --fb: #1877f2; --ig: #d62976; --wa: #25d366;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 40, 34, .05), 0 4px 16px rgba(16, 40, 34, .05);
  --shadow-lg: 0 24px 60px rgba(10, 30, 26, .22);
  font-family: 'Inter', 'Hind Siliguri', system-ui, -apple-system, Segoe UI, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, var(--side) 0%, #0a231f 100%); color: #cfe0db; padding: 18px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; }
.brand-logo { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--gold), #e8c470); display: grid; place-items: center; color: #1b1405; font-weight: 800; box-shadow: 0 6px 18px rgba(198, 154, 60, .35); }
.brand-name { font-weight: 700; color: #fff; font-size: 15px; line-height: 1.15; }
.brand-sub { font-size: 11px; color: #8fb3aa; letter-spacing: .04em; text-transform: uppercase; }
.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: #6f958c; padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: #cfe0db; font-weight: 500; transition: .15s; }
.nav a:hover { background: var(--side-2); color: #fff; }
.nav a.active { background: rgba(198, 154, 60, .14); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.nav a svg { width: 18px; height: 18px; opacity: .9; flex: none; }
.nav .count { margin-left: auto; background: var(--gold); color: #1b1405; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.side-foot { margin-top: auto; padding: 12px 8px 4px; border-top: 1px solid rgba(255, 255, 255, .06); display: flex; align-items: center; gap: 10px; }
.side-foot .who { flex: 1; min-width: 0; }
.side-foot .who b { display: block; color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot .who span { font-size: 11px; color: #8fb3aa; text-transform: capitalize; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 28px; background: rgba(244, 246, 245, .85); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 19px; font-weight: 700; }
.topbar .sub { color: var(--ink-3); font-size: 13px; }
.topbar .spacer { flex: 1; }
.status-dots { display: flex; gap: 6px; }
.sdot { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); color: var(--ink-2); }
.sdot i { width: 7px; height: 7px; border-radius: 50%; background: #c3ccc9; }
.sdot.on i { background: var(--green); box-shadow: 0 0 0 3px rgba(31, 157, 92, .15); }
.content { padding: 24px 28px 60px; max-width: 1480px; width: 100%; }
.btn.menu-btn { display: none; }
.grid > * { min-width: 0; }

/* ---------- primitives ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--panel); padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 13px; cursor: pointer; transition: .15s; white-space: nowrap; color: var(--ink); }
.btn:hover { border-color: #cdd6d3; background: #fafcfb; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-2); }
.btn.gold { background: linear-gradient(135deg, #c69a3c, #ddb45c); border-color: #c69a3c; color: #1b1405; }
.btn.ai { background: linear-gradient(135deg, #6d4ad6, #9b6cf0); border-color: transparent; color: #fff; }
.btn.ai:hover { filter: brightness(1.05); }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #06341a; }
.btn.danger { color: var(--red); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--line-2); }
.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn.icon { padding: 7px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px 0; }
.card-h h3 { font-size: 14.5px; font-weight: 700; }
.card-h .hint { color: var(--ink-3); font-size: 12px; }
.card-h .right { margin-left: auto; display: flex; gap: 6px; }
.card-b { padding: 14px 18px 18px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g-7-5 { grid-template-columns: 7fr 5fr; }
.g-5-7 { grid-template-columns: 5fr 7fr; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.b { font-weight: 700; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.right { margin-left: auto; }
.empty { padding: 34px 10px; text-align: center; color: var(--ink-3); }
.empty svg { width: 34px; height: 34px; opacity: .45; display: block; margin: 0 auto 8px; }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; background: var(--line-2); color: var(--ink-2); text-transform: capitalize; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-new { background: var(--blue-soft); color: var(--blue); }
.st-contacted { background: #eef1f4; color: #55657a; }
.st-interested { background: var(--amber-soft); color: var(--amber); }
.st-site_visit { background: var(--violet-soft); color: var(--violet); }
.st-negotiation { background: var(--gold-soft); color: #a77c22; }
.st-closed { background: var(--green-soft); color: var(--green); }
.st-lost { background: var(--red-soft); color: var(--red); }
.pf { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: #fff; flex: none; }
.pf svg { width: 15px; height: 15px; }
.pf-facebook { background: var(--fb); }
.pf-instagram { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.pf-whatsapp { background: var(--wa); }

.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12.5px; color: #fff; flex: none; background: var(--brand); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.field .help { font-size: 11.5px; color: var(--ink-3); }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 12px; outline: none; transition: .15s; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 107, 92, .12); }
textarea.input { resize: vertical; min-height: 90px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.search { position: relative; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; color: var(--ink-3); }
.search .input { padding-left: 34px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .input { width: auto; min-width: 140px; }
.toggle { display: inline-flex; background: var(--line-2); border-radius: 10px; padding: 3px; }
.toggle button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 12.5px; cursor: pointer; color: var(--ink-2); }
.toggle button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.kpi { padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; position: relative; overflow: hidden; }
.kpi .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.kpi .ic svg { width: 20px; height: 20px; }
.kpi .v { font-size: 25px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.kpi .l { color: var(--ink-3); font-size: 12.5px; font-weight: 500; }
.kpi .d { font-size: 11.5px; font-weight: 600; margin-top: 4px; }
.up { color: var(--green); } .down { color: var(--red); }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 600; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #fafcfb; position: sticky; top: 0; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: #f8fbfa; }
.table-wrap { overflow: auto; border-radius: var(--radius); }
.name-cell { display: flex; align-items: center; gap: 10px; }
.name-cell b { display: block; font-weight: 600; }
.name-cell span { font-size: 12px; color: var(--ink-3); }
.score { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12.5px; }
.score .bar { width: 46px; height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.score .bar i { display: block; height: 100%; border-radius: 99px; }

/* ---------- lists ---------- */
.list { display: flex; flex-direction: column; }
.li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.li:last-child { border-bottom: 0; }
.li .grow { flex: 1; min-width: 0; }
.li .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .s { color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.when { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 7px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.when.over { background: var(--red-soft); color: var(--red); }
.when.today { background: var(--amber-soft); color: var(--amber); }

/* ---------- charts ---------- */
.chart svg { width: 100%; display: block; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.hbar { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: 10px; margin: 9px 0; font-size: 12.5px; }
.hbar .track { height: 22px; background: var(--line-2); border-radius: 7px; overflow: hidden; position: relative; }
.hbar .fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #13806e, #1ea38c); border-radius: 7px; }
.hbar .hot { position: absolute; inset: 0 auto 0 0; background: var(--gold); border-radius: 7px; opacity: .95; }
.hbar .n { font-weight: 700; text-align: right; }
.funnel-row { display: grid; grid-template-columns: 96px 1fr 30px; gap: 10px; align-items: center; margin: 7px 0; font-size: 12.5px; }
.funnel-row .track { height: 10px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.funnel-row .track i { display: block; height: 100%; border-radius: 99px; }
.plat { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #fafcfb; border: 1px solid var(--line-2); }
.plat .v { font-size: 22px; font-weight: 800; margin-left: auto; }

/* AI brief */
.ai-box { background: linear-gradient(135deg, #f6f1ff, #fdfaf3); border: 1px solid #e6dcfb; border-radius: 12px; padding: 14px 16px; white-space: pre-wrap; font-size: 13.5px; position: relative; }
.ai-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--violet); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.ai-tag svg { width: 13px; height: 13px; }

/* ---------- drawer / modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(8, 24, 21, .45); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; animation: fade .15s; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 640px; box-shadow: var(--shadow-lg); animation: pop .18s; }
.modal.wide { max-width: 920px; }
.modal-h { display: flex; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-h h3 { font-size: 16px; }
.modal-b { padding: 20px 22px; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: #fafcfb; border-radius: 0 0 18px 18px; }
.drawer-wrap { position: fixed; inset: 0; z-index: 40; background: rgba(8, 24, 21, .35); animation: fade .15s; }
.drawer { position: absolute; right: 0; top: 0; bottom: 0; width: min(720px, 100%); background: var(--bg); box-shadow: var(--shadow-lg); overflow-y: auto; animation: slide .2s; }
.drawer-h { background: #fff; padding: 20px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.drawer-b { padding: 18px 24px 40px; display: flex; flex-direction: column; gap: 14px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kv div span { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.kv div b { font-weight: 600; font-size: 13.5px; }
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl { position: relative; padding: 0 0 14px; }
.tl::before { content: ''; position: absolute; left: -18px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); }
.tl .t { font-size: 13px; }
.tl .s { font-size: 11.5px; color: var(--ink-3); }
@keyframes fade { from { opacity: 0 } }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0 } }
@keyframes slide { from { transform: translateX(40px); opacity: 0 } }

.toast-box { position: fixed; bottom: 22px; right: 22px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 11px; box-shadow: var(--shadow-lg); font-weight: 500; animation: pop .2s; max-width: 380px; }
.toast.err { background: var(--red); }
.toast.ok { background: var(--brand); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 7px; align-items: center; }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }
.tabs .c { background: var(--line-2); color: var(--ink-2); font-size: 11px; padding: 1px 7px; border-radius: 99px; }
.tabs button.on .c { background: var(--brand-soft); color: var(--brand); }
.tabs .c.red { background: var(--red-soft); color: var(--red); }

/* ---------- projects ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.pcard { overflow: hidden; cursor: pointer; transition: .18s; display: flex; flex-direction: column; }
.pcard:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(16, 40, 34, .10); }
.cover { height: 180px; position: relative; background: linear-gradient(135deg, #0f6b5c, #0c2a25); overflow: hidden; }
.cover img, .cover video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover .ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .22); }
.cover .ph svg { width: 70px; height: 70px; }
.cover .tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.cover .tags span { background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; text-transform: capitalize; }
.cover .vid { position: absolute; bottom: 12px; right: 12px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 99px; display: flex; gap: 5px; align-items: center; }
.cover .vid svg { width: 12px; height: 12px; }
.pbody { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pbody h3 { font-size: 16px; }
.price { font-weight: 800; color: var(--brand); font-size: 15px; }
.meta-row { display: flex; gap: 12px; color: var(--ink-2); font-size: 12.5px; flex-wrap: wrap; }
.meta-row span { display: inline-flex; gap: 5px; align-items: center; }
.meta-row svg { width: 14px; height: 14px; color: var(--ink-3); }
.match-badge { display: inline-flex; gap: 6px; align-items: center; background: var(--gold-soft); color: #94701f; font-weight: 700; font-size: 12px; padding: 5px 10px; border-radius: 9px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gitem { position: relative; border-radius: 11px; overflow: hidden; background: #000; aspect-ratio: 16/10; }
.gitem img, .gitem video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gitem .x { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; opacity: 0; transition: .15s; }
.gitem:hover .x { opacity: 1; }
.gitem .x button { border: 0; background: rgba(255, 255, 255, .92); border-radius: 7px; padding: 4px 7px; font-size: 11px; font-weight: 600; cursor: pointer; }
.drop { border: 2px dashed #cbd8d4; border-radius: 12px; padding: 22px; text-align: center; color: var(--ink-3); cursor: pointer; transition: .15s; background: #fafcfb; }
.drop:hover, .drop.drag { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.drop svg { width: 28px; height: 28px; display: block; margin: 0 auto 6px; }
.progress { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; background: var(--brand); width: 0; transition: width .2s; }

/* ---------- kanban ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.col { background: #eaefed; border-radius: 13px; padding: 10px; min-height: 300px; }
.col.over { background: var(--brand-soft); }
.col-h { display: flex; align-items: center; gap: 8px; padding: 4px 4px 10px; font-weight: 700; font-size: 13px; text-transform: capitalize; }
.col-h .n { margin-left: auto; color: var(--ink-3); font-weight: 600; font-size: 12px; }
.kcard { background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--shadow); cursor: grab; border: 1px solid var(--line); }
.kcard b { display: block; font-size: 13px; }
.kcard .s { font-size: 11.5px; color: var(--ink-3); }

/* ---------- social ---------- */
.fb-preview { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.fb-preview .hd { display: flex; gap: 10px; align-items: center; padding: 12px; }
.fb-preview .cap { padding: 0 12px 12px; white-space: pre-wrap; font-size: 13px; max-height: 220px; overflow: auto; }
.fb-preview .md { background: #0c2a25; aspect-ratio: 16/10; display: grid; place-items: center; color: rgba(255, 255, 255, .3); }
.fb-preview .md video, .fb-preview .md img { width: 100%; height: 100%; object-fit: cover; }
.plat-toggle { display: flex; gap: 10px; }
.plat-toggle label { flex: 1; display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; font-weight: 600; }
.plat-toggle input { display: none; }
.plat-toggle label.on { border-color: var(--brand); background: var(--brand-soft); }
.post-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.post-thumb { width: 64px; height: 48px; border-radius: 9px; background: linear-gradient(135deg, #0f6b5c, #0c2a25); overflow: hidden; display: grid; place-items: center; color: rgba(255,255,255,.4); }
.post-thumb video, .post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.st-scheduled { background: var(--blue-soft); color: var(--blue); }
.st-published { background: var(--green-soft); color: var(--green); }
.st-simulated { background: var(--violet-soft); color: var(--violet); }
.st-failed { background: var(--red-soft); color: var(--red); }
.st-partial, .st-publishing { background: var(--amber-soft); color: var(--amber); }
.st-link { background: var(--blue-soft); color: var(--blue); }
.st-sent { background: var(--green-soft); color: var(--green); }

/* inbox */
.inbox { display: grid; grid-template-columns: 380px 1fr; gap: 16px; min-height: 560px; }
.msg-item { display: flex; gap: 11px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.msg-item:hover, .msg-item.on { background: #f5faf8; }
.msg-item.unread .t { font-weight: 700; }
.msg-item.unread::after { content: ''; width: 8px; height: 8px; background: var(--brand); border-radius: 50%; align-self: center; flex: none; }
.bubble { background: #fff; border: 1px solid var(--line); padding: 12px 14px; border-radius: 4px 14px 14px 14px; max-width: 80%; white-space: pre-wrap; }
.bubble.out { background: var(--brand-soft); border-color: #cbe6df; border-radius: 14px 4px 14px 14px; margin-left: auto; }

/* settings */
.set-sec { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.set-sec:first-child { padding-top: 4px; }
.set-sec h3 { font-size: 15px; margin-bottom: 4px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: var(--line-2); padding: 8px 10px; border-radius: 8px; word-break: break-all; }

/* login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: radial-gradient(1200px 600px at 10% 10%, #145e52 0%, #0c2a25 55%, #071a17 100%); color: #e7f1ee; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art h2 { font-size: 40px; line-height: 1.1; font-weight: 800; max-width: 520px; letter-spacing: -.03em; }
.login-art h2 span { color: var(--gold); }
.login-art p { color: #a9c6bf; max-width: 460px; font-size: 15px; }
.login-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; }
.login-feats div { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.login-feats b { display: block; color: #fff; margin-bottom: 2px; }
.login-form { display: grid; place-items: center; padding: 40px; }
.login-form form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.login-form h1 { font-size: 26px; }

@media (max-width: 1200px) { .kpis { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; z-index: 60; width: 260px; transform: translateX(-100%); transition: .2s; }
  .sidebar.open { transform: none; }
  .btn.menu-btn { display: inline-flex; }
  .g2, .g3, .g-7-5, .g-5-7, .inbox, .set-sec, .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .content { padding: 18px 14px 60px; }
  .topbar { padding: 0 14px; }
  .status-dots { display: none; }
  .kv { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

span.code { padding: 1px 6px; border-radius: 6px; font-size: 11.5px; }

.toggle button svg { width: 16px; height: 16px; display: block; }
.toolbar .search .input { width: 100%; }
@media (max-width: 960px) { .topbar h1 { font-size: 16px; } .topbar .sub { display: none; } }

.pf-web { background: #0f6b5c; }
.sold-ribbon { position: absolute; top: 18px; right: -38px; transform: rotate(35deg); background: #d64545; color: #fff; font-weight: 800; letter-spacing: .12em; font-size: 13px; padding: 6px 48px; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 2; }
.toggle { flex-wrap: wrap; }


/* =====================================================================
   THEME — "Nordic Estate"
   Calm, architectural, European. Cool stone paper, graphite ink,
   Prussian navy as the single working accent, brass only for "hot".
   Serif (Newsreader) for titles and figures; Albert Sans for the UI.
   ===================================================================== */
:root {
  --bg: #f2f3f1;
  --panel: #ffffff;
  --ink: #1b1f24;
  --ink-2: #4c535a;
  --ink-3: #8b9096;
  --line: #dfe2df;
  --line-2: #eceeec;
  --brand: #22385a;
  --brand-2: #182a45;
  --brand-soft: #e9edf3;
  --gold: #9c7b4b;
  --gold-soft: #f4efe6;
  --side: #ffffff;
  --side-2: #f2f3f1;
  --red: #a2453f; --red-soft: #f6eae8;
  --amber: #b07a2a; --amber-soft: #f6efe3;
  --blue: #4a6a94; --blue-soft: #eaeff5;
  --violet: #6b5b8e; --violet-soft: #efedf4;
  --green: #3e7254; --green-soft: #e8f0eb;
  --radius: 6px;
  --shadow: none;
  --shadow-lg: 0 30px 80px rgba(27, 31, 36, .18);
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, 'Hind Siliguri', serif;
  font-family: 'Albert Sans', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
body { font-size: 14px; letter-spacing: .005em; }
::selection { background: #22385a; color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* sidebar — white, hairline, typographic */
.sidebar { background: var(--side); color: var(--ink-2); border-right: 1px solid var(--line); padding: 26px 18px; }
.brand { padding: 0 8px 26px; gap: 12px; }
.brand-logo { width: 36px; height: 36px; border-radius: 2px; background: var(--brand); color: #fff; box-shadow: none; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.brand-name { color: var(--ink); font-family: var(--serif); font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.brand-sub { color: var(--ink-3); font-size: 12px; text-transform: none; letter-spacing: 0; }
.nav-label { text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--ink-3); padding: 18px 10px 6px; font-weight: 500; }
.nav a { color: var(--ink-2); border-radius: 3px; padding: 8px 10px; font-weight: 500; }
.nav a:hover { background: var(--side-2); color: var(--ink); }
.nav a.active { background: var(--side-2); color: var(--ink); box-shadow: inset 2px 0 0 var(--brand); }
.nav a svg { width: 17px; height: 17px; opacity: .75; stroke-width: 1.6; }
.nav .count { background: transparent; color: var(--ink-2); border: 1px solid var(--line); font-weight: 600; font-size: 11px; }
.side-foot { border-top: 1px solid var(--line); padding-top: 16px; }
.side-foot .who b { color: var(--ink); }
.side-foot .who span { color: var(--ink-3); }
.side-foot .btn.ghost { color: var(--ink-3) !important; }

/* topbar — editorial page title */
.topbar { height: 84px; background: rgba(242, 243, 241, .9); border-bottom: 1px solid var(--line); padding: 0 40px; }
.topbar h1 { font-family: var(--serif); font-weight: 400; font-size: 27px; letter-spacing: -.015em; }
.topbar .sub { font-size: 13px; margin-top: 1px; }
.sdot { background: transparent; border: 0; padding: 4px 6px; font-weight: 500; color: var(--ink-3); }
.sdot.on { color: var(--ink-2); }
.sdot.on i { background: var(--green); box-shadow: none; }
.content { padding: 32px 40px 72px; }

/* buttons — quiet, square-ish */
.btn { border-radius: 3px; font-weight: 500; border-color: var(--line); padding: 8px 15px; }
.btn:hover { background: var(--side-2); border-color: #cfd3cf; }
.btn svg { stroke-width: 1.7; }
.btn.primary { background: var(--brand); border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.ai { background: #fff; color: var(--brand); border-color: #c5cfdd; }
.btn.ai:hover { background: var(--brand-soft); filter: none; }
.btn.gold { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.wa { background: #fff; color: #1d7a45; border-color: #bcd8c6; }
.btn.wa:hover { background: #eef6f1; }
.btn.sm { border-radius: 3px; }

/* panels — hairline, no shadow */
.card { border-radius: var(--radius); box-shadow: none; border-color: var(--line); }
.card-h { padding: 20px 22px 0; }
.card-h h3 { font-family: var(--serif); font-weight: 500; font-size: 17px; letter-spacing: -.005em; }
.card-b { padding: 16px 22px 22px; }
.grid { gap: 20px; }
.mt { margin-top: 20px; }

/* KPI band — one ledger instead of eight tiles */
.kpis { gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.kpis .kpi { border: 0; border-radius: 0; border-right: 1px solid var(--line); padding: 22px 24px 20px; background: transparent; }
.kpis .kpi:nth-child(4n) { border-right: 0; }
.kpis .kpi:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
.kpis .kpi .ic { display: none; }
.kpi .l { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.kpi .v { font-family: var(--serif); font-weight: 400; font-size: 36px; letter-spacing: -.02em; line-height: 1.15; margin-top: 4px; font-variant-numeric: lining-nums tabular-nums; }
.kpi .d { font-weight: 500; color: var(--ink-3); }
.up { color: var(--green); } .down { color: var(--red); }

/* AI brief — a signed note, not a gradient */
.ai-box { background: #fafaf8; border: 1px solid var(--line); border-left: 2px solid var(--gold); border-radius: 2px; font-size: 14px; line-height: 1.6; }
.ai-tag { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--gold); }

/* tables */
.table th { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; color: var(--ink-3); background: #fafaf9; padding: 12px 16px; }
.table td { padding: 13px 16px; }
.table tr.click:hover td { background: #f7f8f6; }
.name-cell b { font-weight: 600; }
.avatar { font-weight: 600; font-size: 12px; letter-spacing: .02em; }

/* pills — small, sentence case, outline-tinted */
.pill { text-transform: none; border-radius: 2px; font-weight: 500; padding: 3px 8px; font-size: 12px; }
.pill i { width: 5px; height: 5px; }
.when { border-radius: 2px; font-weight: 500; }
.match-badge { border-radius: 2px; background: var(--gold-soft); color: #7a5f37; font-weight: 600; }

/* charts */
.hbar .track { height: 18px; border-radius: 2px; background: var(--line-2); }
.hbar .fill { background: var(--brand); border-radius: 2px; }
.hbar .hot { background: var(--gold); border-radius: 2px; }
.hbar .n, .funnel-row b { font-family: var(--serif); font-weight: 500; font-size: 15px; }
.funnel-row .track { height: 6px; border-radius: 0; }
.funnel-row .track i { border-radius: 0; }
.plat { border-radius: 3px; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: 10px 2px; }
.plat:last-of-type { border-bottom: 0; }
.plat .v { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.pf { border-radius: 3px; }
.pf-web { background: var(--brand); }
.score { font-weight: 600; }
.score .bar { border-radius: 0; height: 4px; }
.score .bar i { border-radius: 0; }

/* lists & tabs */
.li { padding: 13px 0; }
.tabs button { font-weight: 500; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.tabs .c { border-radius: 2px; }
.tabs button.on .c { background: var(--ink); color: #fff; }
.toggle { border-radius: 3px; background: var(--line-2); }
.toggle button { border-radius: 2px; font-weight: 500; }
.toggle button.on { box-shadow: 0 0 0 1px var(--line); }

/* forms */
.input, select.input, textarea.input { border-radius: 3px; border-color: var(--line); }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(34, 56, 90, .1); }
.field label { font-weight: 500; }

/* project cards — gallery-like */
.pcard { border-radius: var(--radius); }
.pcard:hover { transform: none; box-shadow: none; border-color: #c9cdc9; }
.cover { background: #2a3440; height: 200px; }
.cover .tags span { border-radius: 2px; font-weight: 500; text-transform: none; background: rgba(255,255,255,.94); }
.cover .vid { border-radius: 2px; }
.pbody { padding: 18px 20px 20px; gap: 9px; }
.pbody h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; letter-spacing: -.01em; }
.price { color: var(--ink); font-family: var(--serif); font-weight: 400; font-size: 17px; }
.sold-ribbon { background: var(--red); letter-spacing: .2em; font-weight: 600; font-size: 12px; }
.drop { border-radius: 3px; border-width: 1px; }
.gitem, .post-thumb { border-radius: 3px; }
.post-thumb { background: #2a3440; }

/* board */
.col { background: #e9ebe8; border-radius: 3px; }
.kcard { border-radius: 3px; box-shadow: none; }
.col-h { text-transform: none; font-weight: 600; }

/* drawer / modal */
.modal { border-radius: 6px; }
.modal-f { border-radius: 0 0 6px 6px; }
.modal-h h3, .drawer-h h2 { font-family: var(--serif); font-weight: 500; }
.drawer-h h2 { font-size: 24px !important; }
.overlay, .drawer-wrap { background: rgba(27, 31, 36, .38); }
.timeline::before { width: 1px; }
.tl::before { width: 9px; height: 9px; border-width: 1.5px; border-color: var(--brand); }
.toast { border-radius: 3px; background: var(--ink); }
.toast.ok { background: var(--brand); }
.toast.err { background: var(--red); }

/* social */
.plat-toggle label { border-radius: 3px; border-width: 1px; font-weight: 500; }
.plat-toggle label.on { border-color: var(--brand); background: var(--brand-soft); }
.fb-preview { border-radius: 4px; }
.fb-preview .md { background: #2a3440; }

/* inbox */
.bubble { border-radius: 2px 10px 10px 10px; }
.bubble.out { background: var(--brand-soft); border-color: #d5dde8; border-radius: 10px 2px 10px 10px; }
.msg-item.unread::after { background: var(--brand); }
.msg-item:hover, .msg-item.on { background: #f6f7f5; }

/* settings */
.set-sec { padding: 28px 0; }
.set-sec h3 { font-family: var(--serif); font-weight: 500; font-size: 18px; }
.code { border-radius: 2px; }

/* login — architecture first */
.login-art { background: linear-gradient(180deg, rgba(20, 30, 46, .25) 0%, rgba(20, 30, 46, .82) 70%), url('/login.jpg') center/cover; padding: 56px 64px; }
.login-art .brand-logo { background: #fff; color: var(--brand); }
.login-art .brand-name { color: #fff; }
.login-art .brand-sub { color: rgba(255,255,255,.7); }
.login-art h2 { font-family: var(--serif); font-weight: 400; font-size: 46px; letter-spacing: -.025em; line-height: 1.08; }
.login-art h2 span { color: inherit; font-style: normal; }
.login-art p { color: rgba(255,255,255,.78); }
.login-feats div { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); border-radius: 3px; backdrop-filter: blur(4px); }
.login-form h1 { font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: -.02em; }
.login-form { background: #fff; }

/* public project page */
.hero { border-radius: 4px !important; }
.chat { border-radius: 6px; }
.msg.me { background: var(--brand) !important; }
.msg { border-radius: 10px !important; }
.msg.ai { border-top-left-radius: 2px !important; }
.msg.me { border-top-right-radius: 2px !important; }
.chips button { border-radius: 3px !important; }
.sold-banner { border-radius: 3px !important; font-weight: 600 !important; letter-spacing: .01em; }
.agent { border-radius: 4px !important; background: var(--brand-soft) !important; }
h1 { font-family: var(--serif); font-weight: 500; }

@media (max-width: 1200px) {
  .kpis .kpi:nth-child(4n) { border-right: 1px solid var(--line); }
  .kpis .kpi:nth-child(2n) { border-right: 0; }
  .kpis .kpi:nth-child(-n+6) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .topbar { height: 66px; padding: 0 16px; }
  .topbar h1 { font-size: 20px; }
  .content { padding: 20px 14px 60px; }
  .kpi .v { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.kpi .ic { border-radius: 3px; }
.cover .tags span { text-transform: capitalize; }
.login-art .small { color: rgba(255,255,255,.55) !important; }

/* notifications bell */
.bell-wrap { position: relative; }
.bell-wrap .btn svg { width: 19px; height: 19px; }
.bell-dot { position: absolute; top: 2px; right: 0; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.bell-pop { position: absolute; right: 0; top: 46px; width: 360px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-lg); z-index: 30; }
.notif { display: grid; gap: 2px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.notif:hover { background: #f7f8f6; }
.notif b { font-weight: 600; font-size: 13.5px; }
.notif span { font-size: 12.5px; color: var(--ink-2); }
.notif em { font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.notif.unread { box-shadow: inset 2px 0 0 var(--brand); background: #fafbfd; }
/* capacity */
.cap-row { display: grid; grid-template-columns: 120px 1fr 56px; gap: 12px; align-items: center; margin: 10px 0; font-size: 13px; }
.cap-row .track { height: 8px; background: var(--line-2); }
.cap-row .track i { display: block; height: 100%; }
.cap-row b { font-family: var(--serif); font-weight: 500; font-size: 17px; text-align: right; }
.cap-row b small { font-size: 12px; color: var(--ink-3); font-family: 'Albert Sans', sans-serif; }
/* meetings */
.date-chip { width: 44px; text-align: center; border: 1px solid var(--line); border-radius: 3px; padding: 3px 0; flex: none; }
.date-chip b { display: block; font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.1; }
.date-chip span { font-size: 11px; color: var(--ink-3); }
.day-h { font-family: var(--serif); font-weight: 500; font-size: 18px; margin: 24px 0 10px; }
.day-h:first-of-type { margin-top: 6px; }
.meet-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 18px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.meet-row:last-child { border-bottom: 0; }
.meet-time b { display: block; font-family: var(--serif); font-weight: 500; font-size: 22px; }
.meet-time span { font-size: 12px; color: var(--ink-3); }
@media (max-width: 960px) { .meet-row { grid-template-columns: 1fr; gap: 8px; } .bell-pop { position: fixed; left: 10px; right: 10px; width: auto; top: 70px; } }
