/* ============================================================
   GrowLeafy AI â€” product design system (ai.growleafy.in)
   Premium, minimal, production-grade. No bundler (repo convention).
   ============================================================ */
:root {
    --ai-bg: #f6f8f6;
    --ai-surface: #ffffff;
    --ai-surface-2: #eef2ee;
    --ai-ink: #101613;
    --ai-ink-2: #3c4741;
    --ai-muted: #66736b;
    --ai-line: #e3e9e4;
    --ai-line-2: #cfd9d1;
    --ai-pri: #0e8a5f;
    --ai-pri-d: #0a6b49;
    --ai-pri-deep: #0a4026;
    --ai-pri-wash: #e7f4ee;
    --ai-warn: #b26a00;
    --ai-warn-wash: #fdf3e3;
    --ai-danger: #c0392b;
    --ai-danger-wash: #fdecea;
    --ai-info: #2563a8;
    --ai-info-wash: #e8f1fa;
    --ai-r-sm: 8px;
    --ai-r-md: 12px;
    --ai-r-lg: 16px;
    --ai-sh-sm: 0 1px 2px rgba(16, 22, 19, .05);
    --ai-sh-md: 0 8px 24px -14px rgba(10, 64, 38, .25);
    --ai-font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body.ai-app { font-family: var(--ai-font); background: var(--ai-bg); color: var(--ai-ink); font-size: 14.5px; -webkit-font-smoothing: antialiased; }
a { color: var(--ai-pri); text-decoration: none; }

/* ---------- shell chrome ---------- */
.ai-shell { display: grid; grid-template-rows: 58px 1fr; height: 100vh; overflow: hidden; }
.ai-header { display: flex; align-items: center; gap: 14px; padding: 0 18px; background: var(--ai-surface); border-bottom: 1px solid var(--ai-line); }
.ai-logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 16.5px; letter-spacing: -.02em; color: var(--ai-ink); }
.ai-logo .mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #12a374, #0a4026); display: grid; place-items: center; color: #fff; font-size: 15px; }
.ai-logo .sub { color: var(--ai-muted); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.ai-header .spacer { flex: 1; }
.ai-plan-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--ai-line-2); background: var(--ai-surface); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; color: var(--ai-ink-2); cursor: pointer; }
.ai-plan-chip b { color: var(--ai-pri); }
.ai-btn { border: 0; cursor: pointer; border-radius: 10px; padding: 8px 14px; font-family: var(--ai-font); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.ai-btn.primary { background: var(--ai-pri); color: #fff; }
.ai-btn.primary:hover { background: var(--ai-pri-d); }
.ai-btn.ghost { background: transparent; border: 1px solid var(--ai-line-2); color: var(--ai-ink-2); }
.ai-btn.ghost:hover { background: var(--ai-surface-2); }

/* ---------- three-pane layout ---------- */
.ai-main { display: grid; grid-template-columns: 252px minmax(380px, 1fr); height: 100%; overflow: hidden; }
.ai-main.with-workbench { grid-template-columns: 252px minmax(360px, 1fr) 470px; }
.ai-side { border-right: 1px solid var(--ai-line); background: var(--ai-surface); display: flex; flex-direction: column; min-height: 0; }
.ai-side-head { padding: 12px; }
.ai-new-chat { width: 100%; }
.ai-chats { flex: 1; overflow-y: auto; padding: 4px 8px 10px; }
.ai-chat-item { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; cursor: pointer; color: var(--ai-ink-2); font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; }
.ai-chat-item:hover { background: var(--ai-surface-2); }
.ai-chat-item.active { background: var(--ai-pri-wash); color: var(--ai-pri-deep); font-weight: 700; }
.ai-chat-item .t { overflow: hidden; text-overflow: ellipsis; }
.ai-side-foot { border-top: 1px solid var(--ai-line); padding: 12px; }
.ai-meter { display: grid; gap: 6px; }
.ai-meter .row { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ai-muted); font-weight: 600; }
.ai-meter .bar { height: 7px; border-radius: 999px; background: var(--ai-surface-2); overflow: hidden; }
.ai-meter .bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #34c08e, var(--ai-pri)); transition: width .6s ease; }

/* ---------- chat column ---------- */
.ai-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--ai-bg); }
.ai-chat-scroll { flex: 1; overflow-y: auto; padding: 26px 20px 10px; scroll-behavior: smooth; }
.ai-msg-wrap { max-width: 760px; margin: 0 auto; display: grid; gap: 18px; }
.ai-msg { display: flex; gap: 12px; }
.ai-msg .avatar { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; font-size: 15px; background: linear-gradient(135deg, #12a374, #0a4026); color: #fff; }
.ai-msg.user .avatar { background: var(--ai-surface-2); }
.ai-msg .bubble { min-width: 0; }
.ai-msg .meta { font-size: 11px; color: var(--ai-muted); font-weight: 700; margin-bottom: 4px; }
.ai-msg.user { flex-direction: row-reverse; }
.ai-msg.user .bubble { display: flex; justify-content: flex-end; }
.ai-msg .content { background: var(--ai-surface); border: 1px solid var(--ai-line); border-radius: 4px 14px 14px 14px; padding: 11px 15px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; font-size: 14.5px; box-shadow: var(--ai-sh-sm); }
.ai-msg.user .content { background: var(--ai-pri-deep); color: #f2faf6; border: 0; border-radius: 14px 4px 14px 14px; }
.ai-msg .content p { margin: 0 0 8px; }
.ai-msg .content p:last-child { margin-bottom: 0; }
.ai-typing { display: inline-flex; gap: 4px; padding: 6px 2px; }
.ai-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ai-muted); animation: ai-bounce 1.2s infinite; }
.ai-typing i:nth-child(2) { animation-delay: .15s; }
.ai-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ai-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* cards inside assistant messages */
.ai-card { border: 1px solid var(--ai-line); border-radius: 14px; background: var(--ai-surface); overflow: hidden; margin-top: 10px; box-shadow: var(--ai-sh-sm); }
.ai-card .hd { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ai-muted); border-bottom: 1px solid var(--ai-line); background: var(--ai-surface-2); }
.ai-card .bd { padding: 12px 14px; font-size: 13.5px; }
.ai-check { display: flex; gap: 8px; padding: 3px 0; color: var(--ai-ink-2); }
.ai-check .ok { color: var(--ai-pri); font-weight: 800; }
.ai-usage-bar { margin-top: 10px; }
.ai-usage-bar .bar { height: 8px; border-radius: 999px; background: var(--ai-surface-2); overflow: hidden; }
.ai-usage-bar .bar i { display: block; height: 100%; background: linear-gradient(90deg, #34c08e, var(--ai-pri)); }
.ai-usage-bar .lbl { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ai-muted); margin-top: 5px; font-weight: 600; }
.ai-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ai-pill { border: 1px solid var(--ai-line-2); border-radius: 999px; padding: 7px 13px; font-size: 12.5px; font-weight: 700; color: var(--ai-pri-deep); background: var(--ai-surface); cursor: pointer; }
.ai-pill:hover { background: var(--ai-pri-wash); border-color: var(--ai-pri); }

/* composer */
.ai-composer-wrap { border-top: 1px solid var(--ai-line); background: var(--ai-surface); padding: 12px 20px 14px; }
.ai-composer { max-width: 760px; margin: 0 auto; border: 1.5px solid var(--ai-line-2); border-radius: 16px; background: var(--ai-surface); padding: 8px 10px; display: grid; gap: 6px; box-shadow: var(--ai-sh-md); transition: border-color .15s; }
.ai-composer:focus-within { border-color: var(--ai-pri); }
.ai-composer textarea { border: 0; outline: 0; resize: none; width: 100%; font-family: var(--ai-font); font-size: 14.5px; line-height: 1.5; max-height: 160px; color: var(--ai-ink); background: transparent; padding: 4px 6px; }
.ai-composer .row { display: flex; align-items: center; gap: 8px; }
.ai-composer .spacer { flex: 1; }
.ai-ico-btn { border: 0; background: transparent; cursor: pointer; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--ai-muted); font-size: 16px; }
.ai-ico-btn:hover { background: var(--ai-surface-2); }
.ai-send { width: 36px; height: 36px; border-radius: 11px; border: 0; background: var(--ai-pri); color: #fff; cursor: pointer; font-size: 15px; display: grid; place-items: center; }
.ai-send:disabled { background: var(--ai-line-2); cursor: default; }
.ai-hint { text-align: center; font-size: 11px; color: var(--ai-muted); margin-top: 7px; }
.ai-attach-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-attach-chip { display: inline-flex; gap: 6px; align-items: center; background: var(--ai-surface-2); border-radius: 8px; padding: 4px 10px; font-size: 12px; font-weight: 600; color: var(--ai-ink-2); }

/* ---------- workbench ---------- */
.ai-workbench { border-left: 1px solid var(--ai-line); background: var(--ai-surface); display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ai-wb-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--ai-line); }
.ai-wb-title { font-weight: 800; font-size: 13.5px; letter-spacing: .02em; }
.ai-wb-title .state { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ai-pri); margin-left: 8px; }
.ai-wb-tabs { display: flex; border-bottom: 1px solid var(--ai-line); }
.ai-wb-tab { border: 0; background: transparent; cursor: pointer; padding: 9px 12px; font-family: var(--ai-font); font-size: 12px; font-weight: 700; color: var(--ai-muted); border-bottom: 2px solid transparent; }
.ai-wb-tab.active { color: var(--ai-pri-deep); border-bottom-color: var(--ai-pri); }
.ai-wb-body { flex: 1; min-height: 0; overflow: hidden; position: relative; }
.ai-wb-pane { display: none; height: 100%; overflow: auto; }
.ai-wb-pane.active { display: block; }
.ai-wb-empty { height: 100%; display: grid; place-items: center; text-align: center; color: var(--ai-muted); padding: 30px; }
.ai-wb-empty .ico { font-size: 34px; margin-bottom: 10px; }
.ai-preview-frame { width: 100%; height: 100%; border: 0; background: #fff; }
.ai-device-frame { height: 100%; display: grid; place-items: center; background: var(--ai-surface-2); padding: 26px; }
.ai-device-frame .phone { width: 320px; max-width: 90%; height: 640px; max-height: 92%; border: 8px solid #101613; border-radius: 34px; overflow: hidden; background: #fff; box-shadow: var(--ai-sh-md); }
.ai-device-frame .phone iframe { width: 100%; height: 100%; border: 0; }
.ai-file-row { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--ai-line); font-size: 12.5px; font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; cursor: pointer; }
.ai-file-row:hover { background: var(--ai-surface-2); }
.ai-file-row .ico { font-size: 13px; }
.ai-timeline { padding: 16px 18px; }
.ai-step { display: flex; gap: 10px; padding: 6px 0; align-items: flex-start; }
.ai-step .dot { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 10px; margin-top: 1px; background: var(--ai-surface-2); color: var(--ai-muted); }
.ai-step.done .dot { background: var(--ai-pri-wash); color: var(--ai-pri); }
.ai-step.active .dot { background: var(--ai-pri); color: #fff; animation: ai-pulse 1.2s infinite; }
.ai-step.failed .dot { background: var(--ai-danger-wash); color: var(--ai-danger); }
@keyframes ai-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(14, 138, 95, .35); } 50% { box-shadow: 0 0 0 6px rgba(14, 138, 95, 0); } }
.ai-step .l { font-weight: 700; font-size: 13px; }
.ai-step .s { font-size: 11px; color: var(--ai-muted); }
.ai-badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 800; }
.ai-badge.ok { background: var(--ai-pri-wash); color: var(--ai-pri); }
.ai-badge.warn { background: var(--ai-warn-wash); color: var(--ai-warn); }
.ai-badge.err { background: var(--ai-danger-wash); color: var(--ai-danger); }
.ai-badge.info { background: var(--ai-info-wash); color: var(--ai-info); }
.ai-code { background: #101613; color: #d7e6dd; border-radius: 12px; padding: 14px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; overflow: auto; white-space: pre; }

/* welcome / auth gate */
.ai-gate { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(1000px 500px at 80% -10%, #dcefe5, transparent), var(--ai-bg); padding: 30px; }
.ai-gate-card { width: 100%; max-width: 420px; background: var(--ai-surface); border: 1px solid var(--ai-line); border-radius: 20px; padding: 30px 28px; box-shadow: var(--ai-sh-md); }
.ai-gate-card h1 { font-size: 23px; letter-spacing: -.02em; margin: 10px 0 6px; }
.ai-gate-card .sub { color: var(--ai-muted); font-size: 13.5px; margin-bottom: 18px; }
.ai-field { margin-bottom: 12px; }
.ai-field label { display: block; font-size: 12px; font-weight: 700; color: var(--ai-ink-2); margin-bottom: 5px; }
.ai-field input { width: 100%; border: 1.5px solid var(--ai-line-2); border-radius: 10px; padding: 11px 12px; font-family: var(--ai-font); font-size: 14px; }
.ai-field input:focus { outline: none; border-color: var(--ai-pri); }
.ai-gate-msg { font-size: 12.5px; min-height: 18px; margin: 8px 0; }
.ai-gate-msg.err { color: var(--ai-danger); }
.ai-gate-msg.ok { color: var(--ai-pri); }
.ai-switch { font-size: 13px; color: var(--ai-muted); text-align: center; margin-top: 12px; }
.ai-switch a { font-weight: 700; cursor: pointer; }

/* hero (welcome page) */
.ai-hero { text-align: center; padding: 80px 20px 40px; }
.ai-hero h1 { font-size: clamp(30px, 5vw, 52px); letter-spacing: -.03em; margin: 16px 0 10px; }
.ai-hero .sub { color: var(--ai-muted); font-size: 17px; max-width: 620px; margin: 0 auto 26px; }
.ai-hero-chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ai-hero-chip { background: var(--ai-surface); border: 1px solid var(--ai-line); border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 600; color: var(--ai-ink-2); }

/* responsive */
.ai-wb-close { display: none; }
@media (max-width: 1180px) {
    .ai-main.with-workbench { grid-template-columns: 232px minmax(340px, 1fr) 400px; }
}
@media (max-width: 960px) {
    .ai-main, .ai-main.with-workbench { grid-template-columns: 1fr; }
    .ai-side { display: none; }
    .ai-workbench { position: fixed; inset: 58px 0 0 0; z-index: 40; transform: translateX(100%); transition: transform .25s ease; border-left: 0; }
    .ai-workbench.open { transform: translateX(0); }
    .ai-wb-close { display: grid; }
}

/* ============================================================
   GrowLeafy PARENT-ORGANIZATION shell (§1–§5/§15/§16/§14)
   ============================================================ */
body.ai-app { padding-top: 54px; }
.gl-head { position: fixed; top: 0; left: 0; right: 0; height: 54px; z-index: 60; display: flex; align-items: center; gap: 14px; padding: 0 18px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--ai-line); backdrop-filter: blur(8px); }
.gl-head-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gl-switcher { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; cursor: pointer; font-family: var(--ai-font); font-weight: 800; font-size: 15.5px; color: var(--ai-ink); padding: 6px 8px; border-radius: 10px; }
.gl-switcher:hover { background: var(--ai-surface-2); }
.gl-switcher .gl-mark { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, #12a374, #0a4026); display: grid; place-items: center; color: #fff; font-size: 13px; }
.gl-sep { color: var(--ai-line-2); font-size: 16px; font-weight: 300; }
.gl-brand { font-weight: 800; font-size: 15.5px; color: var(--ai-ink); text-decoration: none; letter-spacing: -.01em; }
.gl-brand:hover { color: var(--ai-pri); }
.caret { font-size: 11px; color: var(--ai-muted); }
.gl-head-center { flex: 1; display: flex; justify-content: center; }
.gl-search { border: 1px solid var(--ai-line-2); background: var(--ai-surface); border-radius: 999px; padding: 8px 18px; color: var(--ai-muted); font-family: var(--ai-font); font-size: 13px; cursor: pointer; min-width: min(420px, 50vw); text-align: left; }
.gl-head-right { display: flex; align-items: center; gap: 6px; }
.gl-icon { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; font-size: 15px; color: var(--ai-ink-2); display: grid; place-items: center; }
.gl-icon:hover { background: var(--ai-surface-2); }
.gl-bell { position: relative; }
.gl-account { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ai-line-2); border-radius: 999px; padding: 4px 12px 4px 4px; background: var(--ai-surface); cursor: pointer; font-family: var(--ai-font); font-size: 13px; font-weight: 700; color: var(--ai-ink); }
.gl-account .gl-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--ai-pri-wash); display: grid; place-items: center; font-size: 13px; }
.gl-account:hover { background: var(--ai-surface-2); }
.gl-eco-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(16,22,19,.16); display: none; }
.gl-eco-scrim.open { display: block; }
.gl-eco-pop { position: fixed; top: 62px; left: 18px; z-index: 80; width: 300px; background: var(--ai-surface); border: 1px solid var(--ai-line); border-radius: 16px; box-shadow: var(--ai-sh-md); overflow: hidden; }
.gl-eco-pop.open { display: block; }
.gl-pop-right { right: 18px; left: auto; }
.gl-pop-hd { padding: 14px 16px 10px; border-bottom: 1px solid var(--ai-line); }
.gl-pop-hd b { display: block; font-size: 14.5px; letter-spacing: -.01em; }
.gl-pop-hd small { color: var(--ai-muted); font-size: 11.5px; }
.gl-switcher-products { padding: 8px; }
.gl-sw-prod { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ai-ink); }
.gl-sw-prod:hover { background: var(--ai-surface-2); }
.gl-sw-prod .ico { width: 30px; height: 30px; border-radius: 9px; background: var(--ai-surface-2); display: grid; place-items: center; flex: none; color: var(--ai-pri); font-size: 14px; }
.gl-sw-prod b { display: block; font-size: 13.5px; }
.gl-sw-prod small { color: var(--ai-muted); font-size: 11.5px; }
.gl-sw-prod.current { background: var(--ai-pri-wash); }
.gl-sw-prod.current .ico { background: var(--ai-pri); color: #fff; }
.gl-check { margin-left: auto; color: var(--ai-pri); font-weight: 800; }
.gl-menu-list { padding: 8px; }
.gl-menu-list a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ai-ink); font-size: 13px; font-weight: 600; }
.gl-menu-list a:hover { background: var(--ai-surface-2); }
.gl-menu-list a span { width: 22px; }
.gl-menu-foot { padding: 10px 12px; border-top: 1px solid var(--ai-line); }
.gl-btn { width: 100%; border: 1px solid var(--ai-line-2); border-radius: 10px; padding: 8px; background: var(--ai-surface); font-family: var(--ai-font); font-weight: 700; color: var(--ai-ink-2); cursor: pointer; }
.gl-btn:hover { background: var(--ai-surface-2); }
.gl-notify-list { max-height: 380px; overflow: auto; padding: 8px; }
.gl-notify { display: flex; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 12.5px; }
.gl-notify:hover { background: var(--ai-surface-2); }
.gl-notify .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 4px; background: var(--ai-muted); flex: none; }
.gl-notify.ok .dot { background: var(--ai-pri); }
.gl-notify.err .dot { background: var(--ai-danger); }
.gl-notify.warn .dot { background: var(--ai-warn); }
.gl-notify b { font-size: 12.5px; }
.gl-notify small { color: var(--ai-muted); font-size: 11.5px; word-break: break-word; }
.gl-empty { color: var(--ai-muted); font-size: 12.5px; padding: 12px; text-align: center; }
.gl-search-modal { position: fixed; inset: 0; z-index: 90; background: rgba(16,22,19,.5); display: grid; place-items: start center; padding-top: 12vh; }
.gl-search-box { width: min(640px, 92vw); background: var(--ai-surface); border-radius: 16px; box-shadow: var(--ai-sh-md); overflow: hidden; }
.gl-search-box input { width: 100%; border: 0; outline: 0; padding: 18px 20px; font-family: var(--ai-font); font-size: 16px; }
.gl-search-results { max-height: 50vh; overflow: auto; border-top: 1px solid var(--ai-line); }
.gl-sr { display: flex; gap: 10px; align-items: center; padding: 11px 20px; text-decoration: none; color: var(--ai-ink); font-size: 14px; }
.gl-sr:hover { background: var(--ai-surface-2); }
.gl-sr small { margin-left: auto; color: var(--ai-muted); font-size: 11px; }

@media (max-width: 860px) {
    .gl-head-center { display: none; }
    .gl-uname { display: none; }
}

/* ============ AI product workspace (parent-org shell) ============ */
.ai-nav { padding: 4px 8px 8px; border-bottom: 1px solid var(--ai-line); }
.ai-nav-item { display: flex; width: 100%; align-items: center; gap: 9px; border: 0; background: transparent; cursor: pointer; padding: 9px 12px; border-radius: 10px; font-family: var(--ai-font); font-size: 13px; font-weight: 600; color: var(--ai-ink-2); text-align: left; }
.ai-nav-item:hover { background: var(--ai-surface-2); }
.ai-nav-item.active { background: var(--ai-pri-wash); color: var(--ai-pri-deep); font-weight: 700; }
.ai-nav-count { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--ai-pri); }
.ai-group { padding: 9px 12px 3px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ai-muted); }
.ai-ren { border: 0; background: transparent; color: var(--ai-muted); cursor: pointer; font-size: 12px; opacity: 0; margin-left: auto; }
.ai-chat-item:hover .ai-ren { opacity: 1; }
.ai-usage-widget { border: 1px solid var(--ai-line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.uw-row { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ai-muted); font-weight: 600; }
.uw-row b { color: var(--ai-ink); }
.uw-bar { height: 6px; border-radius: 999px; background: var(--ai-surface-2); overflow: hidden; margin-bottom: 2px; }
.uw-bar i { display: block; height: 100%; background: linear-gradient(90deg, #34c08e, var(--ai-pri)); }
.uw-bar.uw-host i { background: linear-gradient(90deg, #5b8def, #2563a8); }
.uw-bar.uw-stor i { background: linear-gradient(90deg, #e0a43c, #b57a12); }
.uw-view { font-size: 11px; font-weight: 700; color: var(--ai-pri); margin-top: 2px; }
.ai-account-link { display: block; border-top: 1px solid var(--ai-line); padding: 9px 12px; font-size: 12px; color: var(--ai-ink-2); text-decoration: none; }
.ai-account-link b { color: var(--ai-pri); }
.ai-headcrumb { max-width: 760px; margin: 0 auto; padding: 2px 20px 14px; }
.ai-headcrumb span { font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.ai-headcrumb .ai-back { display: none; float: right; }
.ai-landing { flex: 1; display: flex; align-items: center; justify-content: center; overflow: auto; padding: 28px 20px; }
.ai-landing-inner { width: min(760px, 100%); text-align: center; }
.ai-landing-hello { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; color: var(--ai-ink); line-height: 1.1; margin-bottom: 22px; }
.ai-suggest { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 26px; }
.ai-sug { border: 1.5px solid var(--ai-line-2); background: var(--ai-surface); border-radius: 999px; padding: 11px 18px; font-family: var(--ai-font); font-size: 13.5px; font-weight: 600; color: var(--ai-ink-2); cursor: pointer; }
.ai-sug:hover { border-color: var(--ai-pri); color: var(--ai-pri-deep); background: var(--ai-pri-wash); }
.ai-landing-composer { display: flex; gap: 8px; align-items: center; border: 1.5px solid var(--ai-line-2); border-radius: 16px; background: var(--ai-surface); padding: 8px 10px; box-shadow: var(--ai-sh-md); }
.ai-landing-composer:focus-within { border-color: var(--ai-pri); }
.ai-landing-composer input { border: 0; outline: 0; flex: 1; padding: 8px 10px; font-family: var(--ai-font); font-size: 15px; }
.ai-projects { max-width: 900px; margin: 0 auto; padding: 8px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ai-project-card { background: var(--ai-surface); border: 1px solid var(--ai-line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--ai-sh-sm); }
.ai-project-card .pc-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 6px; }
.ai-project-card b { font-size: 15px; letter-spacing: -.01em; }
.ai-project-card .pc-meta { color: var(--ai-muted); font-size: 12px; margin-bottom: 12px; }
.ai-project-card .pc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-task-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--ai-surface); border: 1px solid var(--ai-line); border-radius: 12px; padding: 12px 14px; }
.ai-active-task { position: fixed; left: 264px; right: auto; bottom: 18px; z-index: 45; display: flex; align-items: center; gap: 12px; background: var(--ai-surface); border: 1px solid var(--ai-line-2); border-radius: 14px; padding: 10px 14px; box-shadow: var(--ai-sh-md); max-width: 420px; }
.ai-active-task .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--ai-pri); animation: ai-pulse 1.2s infinite; flex: none; }
.ai-active-task .at-body b { display: block; font-size: 12.5px; }
.ai-active-task .at-body span { color: var(--ai-muted); font-size: 11.5px; }
@keyframes ai-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(14,138,95,.35);} 50% { box-shadow: 0 0 0 6px rgba(14,138,95,0);} }
@media (max-width: 960px) {
  .ai-active-task { left: 14px; right: 14px; max-width: none; }
  .ai-headcrumb .ai-back { display: grid; }
}
