:root { --ink:#17231e; --muted:#758078; --line:#e7e9e5; --surface:#ffffff; --canvas:#f6f6f2; --green:#183c30; --green-2:#2d5a48; --mint:#e8f0eb; --coral:#d96c4f; --sand:#f1e7d7; --shadow:0 16px 45px rgba(34,48,41,.07); }
* { box-sizing:border-box; }
body { margin:0; font-family:"Poppins","Alexandria",sans-serif; color:var(--ink); background:var(--canvas); }
button,input,textarea { font:inherit; }
button { cursor:pointer; }
.app-shell { min-height:100vh; display:grid; grid-template-columns:242px 1fr; }
.sidebar { position:sticky; top:0; height:100vh; background:#112b22; color:#fff; padding:28px 18px 20px; display:flex; flex-direction:column; }
.brand { display:flex; gap:12px; align-items:center; padding:0 10px 34px; }
.brand-mark { width:42px; height:42px; display:grid; place-items:center; border:1px solid #789084; border-radius:50%; font-family:"Poppins","Alexandria",sans-serif; font-weight:700; }
.brand div,.user div { display:grid; }
.brand strong { font-family:"Poppins","Alexandria",sans-serif; font-size:19px; }
.brand small,.user small { color:#9eb0a8; font-size:11px; margin-top:2px; }
nav { display:grid; gap:5px; }
.nav-item { border:0; width:100%; color:#b7c6bf; background:transparent; display:flex; align-items:center; gap:12px; padding:12px 13px; border-radius:9px; text-align:left; }
.nav-item span { font-size:18px; width:20px; }
.nav-item b { margin-left:auto; color:#17382d; background:#d7a08e; min-width:22px; height:22px; border-radius:12px; display:grid; place-items:center; font-size:11px; }
.nav-item.active,.nav-item:hover { color:#fff; background:#21483a; }
.side-bottom { margin-top:auto; }
.user { border-top:1px solid #2f4b41; margin-top:14px; padding:20px 8px 0; display:flex; gap:10px; align-items:center; }
.user .avatar { width:35px; height:35px; border-radius:50%; display:grid; place-items:center; background:#d7a08e; color:#17382d; font-weight:700; }
.user strong { font-size:12px; }
.user > span { margin-left:auto; }
main { padding:0 38px 48px; min-width:0; }
header { min-height:122px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); margin-bottom:26px; }
h1,h2,h3,p { margin-top:0; }
h1 { font-family:"Poppins","Alexandria",sans-serif; margin-bottom:5px; font-size:30px; }
h2 { font-family:"Poppins","Alexandria",sans-serif; margin-bottom:5px; font-size:22px; }
h3 { font-family:"Poppins","Alexandria",sans-serif; font-size:20px; }
header p,.view-toolbar p { color:var(--muted); margin-bottom:0; }
.eyebrow { color:#657269; font-size:10px; font-weight:700; letter-spacing:.14em; margin-bottom:7px; }
.eyebrow.coral { color:var(--coral); }
.header-actions,.view-toolbar > div:last-child,.modal-actions { display:flex; align-items:center; gap:10px; }
.primary,.secondary,.light-button { border:0; padding:11px 16px; border-radius:8px; font-weight:600; }
.primary { background:var(--green); color:#fff; }
.primary:hover { background:var(--green-2); }
.secondary { border:1px solid var(--line); background:#fff; color:var(--ink); }
.light-button { background:#fff; color:var(--green); width:100%; margin-top:18px; }
.icon-button { width:42px; height:42px; border:1px solid var(--line); background:#fff; border-radius:9px; position:relative; }
.icon-button i { width:7px; height:7px; border-radius:50%; background:var(--coral); position:absolute; right:8px; top:7px; }
.view { display:none; animation:fade .22s ease; }
.view.active { display:block; }
@keyframes fade { from { opacity:.3; transform:translateY(4px); } }
.system-status { background:#edf3ef; border:1px solid #d7e4dc; padding:12px 16px; display:flex; gap:10px; align-items:center; border-radius:9px; font-size:12px; margin-bottom:18px; }
.system-status span:nth-of-type(2) { color:var(--muted); }
.system-status small { margin-left:auto; color:var(--green); font-weight:600; }
.pulse { width:9px; height:9px; border-radius:50%; background:#4da075; box-shadow:0 0 0 4px #d8e9df; }
.metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:18px; }
.metric-card { background:#fff; border:1px solid var(--line); padding:20px; border-radius:11px; display:grid; gap:7px; }
.metric-card span,.metric-card small { color:var(--muted); font-size:12px; }
.metric-card strong { font-family:"Poppins","Alexandria",sans-serif; font-size:27px; }
.metric-card small { color:#478360; }
.layout-grid { display:grid; grid-template-columns:1.55fr .75fr; gap:18px; margin-bottom:18px; }
.layout-grid.lower { grid-template-columns:1fr 1fr; }
.panel { background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow); padding:22px; }
.panel-head { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:12px; }
.text-button { border:0; background:transparent; color:var(--green-2); font-size:12px; font-weight:700; }
.opportunity-row { display:grid; grid-template-columns:35px minmax(180px,1fr) 90px 115px 34px; align-items:center; gap:12px; padding:15px 0; border-top:1px solid var(--line); }
.rank { font-family:"Poppins","Alexandria",sans-serif; color:#a2aaa5; }
.opportunity-row > div:nth-child(2),.mini-stat { display:grid; gap:3px; }
.opportunity-row span,.mini-stat span { color:var(--muted); font-size:11px; }
.mini-stat strong { font-size:13px; }
.arrow-button { border:1px solid var(--line); background:#fff; width:32px; height:32px; border-radius:50%; color:var(--green); }
.ai-panel { background:var(--green); color:#fff; padding:26px; }
.ai-panel .eyebrow { color:#a9c1b7; }
.ai-panel > p:not(.eyebrow) { color:#c1d0ca; line-height:1.55; font-size:13px; }
.ai-icon { width:44px; height:44px; display:grid; place-items:center; background:#d8a08c; color:#19382d; border-radius:50%; margin-bottom:30px; font-size:20px; }
.recommendation { border-top:1px solid #416054; border-bottom:1px solid #416054; padding:15px 0; margin-top:18px; display:grid; gap:5px; }
.recommendation span,.recommendation small { color:#a9c1b7; font-size:11px; }
.conversation-row { display:grid; grid-template-columns:38px 1fr auto; gap:11px; align-items:center; padding:13px 0; border-top:1px solid var(--line); }
.conversation-row p { white-space:nowrap; text-overflow:ellipsis; overflow:hidden; color:var(--muted); font-size:12px; margin:3px 0 0; max-width:330px; }
.channel { width:36px; height:36px; display:grid; place-items:center; border-radius:50%; color:#fff; font-weight:700; background:#477b66; }
.channel.instagram { background:#9b5e76; }.channel.website { background:#b47a4f; }.channel.facebook { background:#57769f; }
.conversation-meta { display:grid; justify-items:end; gap:4px; color:var(--muted); font-size:11px; }
.conversation-meta b { width:18px; height:18px; border-radius:50%; display:grid; place-items:center; color:#fff; background:var(--coral); }
.pipeline { display:grid; grid-template-columns:repeat(7,auto); align-items:center; justify-content:space-between; padding:28px 0; }
.pipeline div { display:grid; text-align:center; gap:5px; }
.pipeline strong { font-family:"Poppins","Alexandria",sans-serif; font-size:25px; }.pipeline span { color:var(--muted); font-size:10px; }
.pipeline i { width:28px; height:1px; background:#cfd5d1; }
.conversion { border-top:1px solid var(--line); padding-top:16px; display:flex; justify-content:space-between; font-size:12px; }
.conversion em { color:#4a8a64; font-style:normal; font-size:11px; margin-left:5px; }
.view-toolbar { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:20px; }
.view-toolbar h2 { font-size:28px; }
.filter-bar { display:flex; gap:8px; margin-bottom:12px; }
.filter-bar input,.filter-bar button,.inbox-search input { border:1px solid var(--line); background:#fff; border-radius:8px; padding:11px 13px; }
.filter-bar input { flex:1; }.filter-bar button { color:var(--muted); }
.table-panel { overflow:auto; padding:0; }
table { width:100%; border-collapse:collapse; font-size:12px; }
th { text-align:left; color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.08em; background:#fafaf8; }
th,td { padding:15px 17px; border-bottom:1px solid var(--line); vertical-align:middle; }
td small { color:var(--muted); display:block; margin-top:4px; }.contact { display:flex; gap:10px; align-items:center; }.contact > span { width:34px; height:34px; border-radius:50%; background:var(--sand); display:grid; place-items:center; font-weight:700; }
.source-dot { width:7px; height:7px; display:inline-block; border-radius:50%; margin-right:7px; background:#4d936c; }.source-dot.instagram{background:#aa6680}.source-dot.facebook{background:#5f7ca5}.source-dot.website{background:#b47a4f}
.stage,.status,.priority { padding:5px 8px; border-radius:12px; background:#edf2ee; color:#32644e; font-size:10px; font-weight:700; }
.status.awaiting-approval { background:#f4e8dc; color:#9a5c32; }.status.active { background:#e6f0e9; color:#31704f; }.status.completed { background:#edf0f3; color:#566571; }
.occupancy-hero { background:var(--green); color:#fff; border-radius:12px; padding:25px 28px; display:flex; justify-content:space-between; align-items:end; margin-bottom:18px; }.occupancy-hero > div:first-child { display:grid; gap:5px; }.occupancy-hero span,.occupancy-hero small { color:#afc3bb; font-size:12px; }.occupancy-hero strong { font-family:"Poppins","Alexandria",sans-serif; font-size:42px; }
.occupancy-bars { height:75px; display:flex; align-items:end; gap:9px; }.occupancy-bars i { width:25px; display:block; background:#d69a83; border-radius:4px 4px 0 0; }
.cards { display:grid; grid-template-columns:repeat(3,1fr); gap:15px; }.opportunity-card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:20px; }.card-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:24px; font-size:11px; }.priority.high { background:#fae7e1;color:#a14b35}.opportunity-card h3 { margin-bottom:4px; }.opportunity-card > p { color:var(--muted); font-size:12px; }.card-stats { display:grid; gap:11px; padding:14px 0; border-top:1px solid var(--line); }.card-stats div { display:flex; justify-content:space-between; font-size:12px; }.card-stats span { color:var(--muted); }.full { width:100%; margin-top:10px; }
.inbox-layout { display:grid; grid-template-columns:420px 1fr; gap:16px; }.inbox-list { padding:12px 20px; }.inbox-search { padding:7px 0 12px; }.inbox-search input { width:100%; }.empty-chat { min-height:440px; display:grid; place-content:center; text-align:center; }.empty-chat div { margin:auto auto 16px; width:54px;height:54px;display:grid;place-items:center;border-radius:50%;background:var(--mint);font-size:23px}.empty-chat p { color:var(--muted); max-width:300px; }
.chart-panel { min-height:340px; }.bars { display:grid; gap:22px; padding-top:20px; }.bars div { display:grid; grid-template-columns:140px 1fr 100px; align-items:center; gap:15px; font-size:12px; }.bars i { height:12px; background:linear-gradient(to right,var(--green) var(--w),#edf0ed var(--w)); border-radius:8px; }.bars strong { text-align:right; }
.modal-backdrop { position:fixed; inset:0; background:rgba(12,24,19,.55); display:none; place-items:center; z-index:10; padding:20px; }.modal-backdrop.show { display:grid; }.modal { background:#fff; width:min(560px,100%); border-radius:14px; padding:28px; position:relative; box-shadow:0 35px 100px rgba(0,0,0,.25); }.modal-close { position:absolute; right:18px; top:14px; border:0; background:transparent; font-size:25px; }.modal label { display:grid; gap:6px; margin-top:16px; color:var(--muted); font-size:12px; }.modal input,.modal textarea { width:100%; border:1px solid var(--line); border-radius:8px; padding:11px; color:var(--ink); }.modal textarea { min-height:110px; resize:vertical; line-height:1.5; }.modal-actions { justify-content:flex-end; margin-top:20px; }
.modal select { width:100%; border:1px solid var(--line); border-radius:8px; padding:11px; color:var(--ink); background:#fff; }.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 14px; }.check-label { display:flex!important; align-items:center; gap:8px!important; }.check-label input { width:auto; }
.toast { position:fixed; right:28px; bottom:28px; background:#15372b; color:#fff; padding:13px 18px; border-radius:8px; opacity:0; transform:translateY(15px); transition:.2s; pointer-events:none; }.toast.show { opacity:1; transform:none; }
.fatal { min-height:100vh; display:grid; place-content:center; text-align:center; }
@media (max-width:1100px) { .metrics { grid-template-columns:repeat(2,1fr); }.layout-grid,.layout-grid.lower { grid-template-columns:1fr; }.cards { grid-template-columns:1fr; }.opportunity-row { grid-template-columns:35px 1fr 80px 34px; }.opportunity-row .mini-stat:nth-of-type(3) { display:none; } }
@media (max-width:760px) { .app-shell { grid-template-columns:1fr; }.sidebar { position:static; width:100%; height:auto; }.sidebar nav { display:flex; overflow:auto; }.side-bottom { display:none; }.nav-item { min-width:max-content; }.brand { padding-bottom:18px; } main { padding:0 16px 35px; } header { min-height:110px; }.header-actions .icon-button { display:none; }.metrics { grid-template-columns:1fr; }.system-status span:nth-of-type(2),.system-status small { display:none; }.filter-bar { overflow:auto; }.filter-bar input { min-width:240px; }.inbox-layout { grid-template-columns:1fr; }.empty-chat { display:none; }.view-toolbar { align-items:flex-start; gap:15px; }.view-toolbar > div:last-child { flex-direction:column; }.occupancy-bars { display:none; }.form-grid { grid-template-columns:1fr; } }

[hidden] {display:none!important;} #login-screen {min-height:100vh;display:grid;place-items:center;padding:24px;background:#112b22;} #login-error {color:#a63e2b;margin-top:16px;}

.modal {max-height:90vh;overflow:auto;} .task-row {display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:12px 0;} .task-row small {display:block;color:var(--muted);margin-top:4px;} #contact-tasks {margin-top:24px;}

.filter-bar select {border:1px solid var(--line);border-radius:8px;padding:10px;background:white;color:var(--ink);max-width:180px;} #tag-filter {max-width:150px;} #audience-count {color:var(--muted);font-size:14px;}

#operations > .panel {margin-top:24px} #integration-status {white-space:pre-wrap;overflow-wrap:anywhere;padding:16px;font-size:13px} #workflow-list,#all-tasks,#audit-list {padding:0 20px 20px} .task-row small{display:block} #audit-list{max-height:400px;overflow:auto}

.conversation-row[role=button]{cursor:pointer}.conversation-row[role=button]:focus{outline:2px solid var(--coral)}.chat-panel{padding:24px;min-height:440px}.chat-link{display:flex;gap:8px;flex-wrap:wrap}.chat-messages{margin:20px 0;max-height:350px;overflow:auto}.chat-message{padding:14px;background:var(--mint);border-radius:12px;margin-bottom:10px}.chat-message p{white-space:pre-wrap;margin:8px 0}.chat-message small,.chat-note{color:var(--muted);font-size:12px}.conversation-row[hidden]{display:none}#contact-journey{padding:18px 0;border-bottom:1px solid var(--line)}

#content > .panel{margin-top:20px}#content-calendar{padding:0 24px 24px}#content-form textarea{min-height:170px}

#timeline-list{max-height:280px;overflow:auto}.timeline-event{padding:12px 16px;border-inline-start:3px solid var(--mint);margin:8px 0}.timeline-event small{display:block;color:var(--muted)}.timeline-event p{white-space:pre-wrap;margin:6px 0;font-size:13px}#task-summary{padding:0 24px}


.chat-planner {padding:16px;margin:16px 0;border:1px solid var(--border,#ddd);border-radius:12px;}
.chat-planner summary {cursor:pointer;font-weight:600;}
#chat-enquiry {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0;}
#chat-enquiry label {display:grid;gap:6px;}
#chat-enquiry input,#chat-enquiry select {width:100%;min-width:0;padding:10px;}
@media(max-width:600px){#chat-enquiry{grid-template-columns:1fr;}}

/* Bait Zain identity: original website palette and typography. */
:root{--ink:#26363a;--muted:#66767a;--line:#e3ecec;--canvas:#f2f5f8;--green:#246B6E;--green-2:#2C8C88;--mint:#e8f3f2;--coral:#8c713d;--sand:#f4efe4;--shadow:0 12px 36px rgba(36,107,110,.07)}
.sidebar{background:#fff;color:var(--ink);border-right:1px solid var(--line)}
.brand{display:grid;gap:0;padding:0 12px 24px}.brand-logo{width:145px;height:105px;object-fit:contain}.brand div{padding-left:14px}.brand strong{display:none}.brand small{color:var(--muted);font-size:11px;letter-spacing:.1em}
.nav-item{color:#536b6e;border-radius:18px}.nav-item.active,.nav-item:hover{background:var(--mint);color:var(--green)}.nav-item b{background:#f1e9d8;color:#6f592e}
.user{border-color:var(--line)}.user small{color:var(--muted)}.user .avatar{background:var(--mint);color:var(--green)}
.primary,.secondary,.light-button{border-radius:999px}.primary{background:linear-gradient(120deg,#246B6E,#2C8C88)}
h1,h2,h3{font-weight:600;letter-spacing:-.035em}.panel,.metric-card{border-radius:22px}.sidebar a{color:var(--green)}
.login-brand{width:160px;height:110px;display:block;margin:0 auto 18px}button:focus-visible,a:focus-visible{outline:3px solid #C2A66B;outline-offset:3px}

.accounting-layout{grid-template-columns:1.35fr .65fr}.ledger-head{padding:22px 22px 0}.ledger-filters{margin:0}.finance-chart{height:245px;display:flex;align-items:end;justify-content:space-around;gap:18px;padding:22px 8px 0}.finance-month{height:100%;display:grid;grid-template-rows:1fr auto auto;gap:6px;text-align:center;min-width:82px}.finance-bars{display:flex;align-items:end;justify-content:center;gap:8px;height:100%;border-bottom:1px solid var(--line)}.finance-bars i{width:24px;min-height:4px;background:var(--green-2);border-radius:7px 7px 0 0}.finance-bars i.expense{background:#C2A66B}.finance-month small{font-size:10px;color:var(--muted)}.ai-finance{background:var(--green);color:#fff}.ai-finance .eyebrow,.ai-finance>p{color:#bfd1ca}.ledger-type{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:700}.ledger-type.income{background:#e5f3eb;color:#267048}.ledger-type.expense,.ledger-type.refund{background:#fae9e5;color:#9b4d38}.ledger-type.payout{background:#f4eddf;color:#80652e}.ledger-amount{font-weight:700}.ledger-amount.income{color:#267048}.ledger-amount.expense,.ledger-amount.refund,.ledger-amount.payout{color:#9b4d38}.ai-connection{padding:8px 12px;border-radius:999px;font-size:11px;font-weight:700}.ai-connection.pending{background:#f4eddf;color:#80652e}.ai-status .pulse.pending{background:#C2A66B;box-shadow:0 0 0 4px #eee4cd}.ai-agent-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-bottom:18px}.agent-card p{color:var(--muted);line-height:1.65}.agent-card ul{margin:18px 0 0;padding-left:20px;color:#536b6e;font-size:12px;line-height:1.9}.agent-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.agent-top span{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--mint);color:var(--green);font-size:20px}.agent-top b{font-size:10px;color:#267048;background:#e5f3eb;padding:5px 9px;border-radius:999px}.ai-activation{display:grid;grid-template-columns:.7fr 1.3fr;gap:40px}.activation-list{display:grid;gap:14px}.activation-list>div{display:flex;gap:12px;align-items:flex-start}.activation-list span{width:28px;height:28px;flex:0 0 28px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700}.activation-list .check{background:#e5f3eb;color:#267048}.activation-list .wait{background:#f4eddf;color:#80652e}.activation-list small{display:block;color:var(--muted);margin-top:3px}
@media(max-width:900px){.ai-agent-grid{grid-template-columns:1fr}.ai-activation{grid-template-columns:1fr}.accounting-layout{grid-template-columns:1fr}.ledger-head{display:grid;gap:12px}.ledger-filters{overflow:auto}}
.ai-workbench{margin-top:22px}.ai-workbench textarea{min-height:120px}.ai-workbench .recommendation{white-space:pre-wrap;line-height:1.65}.ai-workbench .recommendation.generated{background:#eef8f5;border-color:#bcded3;color:#184f46}.button-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;margin-top:12px}.demo-banner .text-button{margin-left:auto;color:inherit}.modal-backdrop#transaction-modal .modal{max-width:720px}
