
    :root {
      color-scheme: dark;
      --ink: #071018;
      --panel: #0b1721;
      --panel-2: #101f2b;
      --panel-3: #142735;
      --line: rgba(180, 214, 228, .14);
      --line-strong: rgba(180, 214, 228, .24);
      --text: #eef7fa;
      --muted: #90a8b5;
      --teal: #3de6d0;
      --teal-dim: rgba(61, 230, 208, .12);
      --amber: #f6b94a;
      --amber-dim: rgba(246, 185, 74, .12);
      --danger: #ff776d;
      --radius: 18px;
      --font: "DM Sans", system-ui, sans-serif;
      --mono: "Space Mono", ui-monospace, monospace;
    }

    * { box-sizing: border-box; }
    html, body { margin: 0; min-height: 100%; background: var(--ink); color: var(--text); font-family: var(--font); }
    button, textarea, input { font: inherit; }
    button { color: inherit; }
    button:focus-visible, textarea:focus-visible, input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
    .app { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr) 308px; overflow: hidden; }

    .sidebar { min-height: 100vh; background: #08131c; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 20px 14px; }
    .brand { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 2px 8px 23px; }
    .wwaog-logo { display: block; width: 194px; max-width: 100%; height: auto; }
    .mobile-logo { display: none; width: 86px; height: auto; flex-shrink: 0; }
    .brand-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(61,230,208,.18), rgba(246,185,74,.08)); border: 1px solid rgba(61,230,208,.28); }
    .brand-mark svg { width: 23px; height: 23px; }
    .brand-name { font-weight: 700; letter-spacing: -.02em; }
    .brand-name small { display: block; color: var(--muted); font-family: var(--mono); font-weight: 400; font-size: .62rem; letter-spacing: .07em; margin-top: 2px; text-transform: uppercase; }
    .new-chat { width: 100%; border: 1px solid rgba(61,230,208,.35); background: var(--teal-dim); border-radius: 12px; padding: 11px 13px; text-align: left; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 600; }
    .new-chat:hover { background: rgba(61,230,208,.19); }
    .new-chat span:last-child { color: var(--teal); font-size: 1.25rem; line-height: 1; }
    .nav-label { font-family: var(--mono); font-size: .68rem; color: #6f8997; text-transform: uppercase; letter-spacing: .1em; margin: 26px 9px 9px; }
    .nav-list { display: grid; gap: 3px; }
    .nav-item { border: 0; background: transparent; padding: 9px 10px; border-radius: 10px; display: flex; align-items: center; gap: 10px; text-align: left; color: #b5c8d0; cursor: pointer; font-size: .9rem; }
    .nav-item:hover, .nav-item.active { background: var(--panel-2); color: var(--text); }
    .nav-item.active { box-shadow: inset 2px 0 var(--teal); }
    .nav-icon { width: 18px; opacity: .8; }
    .nav-dot { margin-left: auto; min-width: 21px; padding: 1px 6px; text-align: center; border-radius: 12px; background: rgba(255,255,255,.06); color: var(--muted); font-family: var(--mono); font-size: .65rem; }
    .side-bottom { margin-top: auto; display: grid; gap: 9px; }
    .usage { padding: 13px; border: 1px solid var(--line); background: rgba(255,255,255,.018); border-radius: 13px; }
    .usage-row { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .78rem; }
    .usage strong { color: var(--text); font-family: var(--mono); font-size: .7rem; }
    .usage-bar { height: 4px; margin-top: 9px; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,.07); }
    .usage-bar i { display: block; width: 36%; height: 100%; background: linear-gradient(90deg, var(--teal), #75a8ff); }
    .upgrade { border: 0; width: 100%; border-radius: 11px; background: var(--amber); color: #1e1605; padding: 10px 12px; font-weight: 700; cursor: pointer; }
    .upgrade:hover { filter: brightness(1.06); }

    .main { min-width: 0; height: 100vh; display: grid; grid-template-rows: auto 1fr auto; background: radial-gradient(circle at 50% -10%, rgba(61,230,208,.055), transparent 36%), var(--ink); }
    .topbar { height: 67px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 25px; }
    .mobile-menu { display: none; border: 0; background: transparent; padding: 7px; cursor: pointer; font-size: 1.15rem; }
    .crumb { display: flex; align-items: center; gap: 8px; min-width: 0; }
    .crumb strong { font-size: .94rem; white-space: nowrap; }
    .crumb span { color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
    .status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: #a9c0ca; font-size: .75rem; }
    .status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(61,230,208,.08); }
    .icon-button { border: 1px solid var(--line); background: rgba(255,255,255,.02); border-radius: 9px; width: 34px; height: 34px; cursor: pointer; display: grid; place-items: center; }
    .icon-button:hover { border-color: var(--line-strong); background: rgba(255,255,255,.04); }

    .chat-scroll { overflow-y: auto; padding: 34px max(24px, calc((100% - 800px)/2)) 25px; scroll-behavior: smooth; }
    .intro { display: grid; grid-template-columns: 52px 1fr; gap: 16px; margin-bottom: 22px; }
    .ai-avatar { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--teal); background: var(--teal-dim); border: 1px solid rgba(61,230,208,.24); font-family: var(--mono); font-weight: 700; }
    .intro h1 { font-size: clamp(1.3rem, 2.3vw, 1.8rem); letter-spacing: -.035em; margin: 2px 0 7px; line-height: 1.15; }
    .intro p { color: #b3c7d0; line-height: 1.62; margin: 0; max-width: 690px; }
    .intro .guide-entry { margin-top: 12px; font-size: .88rem; }
    .guide-entry a { color: var(--teal); text-underline-offset: 3px; }
    .trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
    .trust-chip { border: 1px solid var(--line); padding: 6px 9px; border-radius: 999px; color: var(--muted); font-size: .73rem; display: flex; align-items: center; gap: 6px; }
    .trust-chip b { color: var(--teal); font-size: .72rem; }
    .quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 24px 0 30px 68px; }
    .quick-card { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(16,31,43,.92), rgba(11,23,33,.75)); border-radius: 14px; padding: 15px; text-align: left; cursor: pointer; min-height: 104px; transition: transform .16s ease, border-color .16s ease; }
    .quick-card:hover { transform: translateY(-2px); border-color: rgba(61,230,208,.32); }
    .quick-card .eyebrow { font-family: var(--mono); color: var(--teal); font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; }
    .quick-card strong { display: block; margin: 8px 0 5px; font-size: .9rem; }
    .quick-card p { margin: 0; color: var(--muted); font-size: .77rem; line-height: 1.4; }
    .message { display: grid; grid-template-columns: 42px 1fr; gap: 13px; margin: 24px 0; animation: rise .28s ease both; }
    @keyframes rise { from { opacity: 0; transform: translateY(7px); } }
    .message-avatar { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--panel-2); font-family: var(--mono); font-size: .68rem; color: var(--muted); }
    .message.ai .message-avatar { color: var(--teal); border-color: rgba(61,230,208,.23); background: var(--teal-dim); }
    .bubble { max-width: 720px; border: 1px solid var(--line); background: var(--panel); border-radius: 4px 15px 15px 15px; padding: 15px 16px; color: #d9e7ec; line-height: 1.58; }
    .message.user .bubble { background: #122634; }
    .bubble p { margin: 0; }
    .bubble ul { margin: 10px 0 0; padding-left: 19px; }
    .bubble li + li { margin-top: 5px; }
    .citation { display: inline-flex; align-items: center; gap: 5px; padding: 2px 6px; margin-left: 4px; border-radius: 5px; background: var(--teal-dim); color: var(--teal); font-family: var(--mono); font-size: .65rem; vertical-align: 1px; }
    .demo-note { margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: .73rem; }
    .typing { display: flex; gap: 5px; align-items: center; min-height: 20px; }
    .typing i { width: 6px; height: 6px; background: var(--muted); border-radius: 50%; animation: blink 1s infinite alternate; }
    .typing i:nth-child(2) { animation-delay: .2s; }
    .typing i:nth-child(3) { animation-delay: .4s; }
    @keyframes blink { to { opacity: .25; transform: translateY(-2px); } }

    .composer-shell { border-top: 1px solid var(--line); padding: 15px max(24px, calc((100% - 800px)/2)) 18px; background: rgba(7,16,24,.95); backdrop-filter: blur(12px); }
    .attachment-row { display: none; gap: 7px; margin-bottom: 8px; }
    .attachment-row.show { display: flex; }
    .file-chip { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid rgba(246,185,74,.26); background: var(--amber-dim); color: #e8c77e; padding: 5px 9px; border-radius: 7px; font-size: .72rem; }
    .composer { border: 1px solid var(--line-strong); background: var(--panel); border-radius: 16px; padding: 11px 12px 10px; box-shadow: 0 16px 45px rgba(0,0,0,.22); }
    .composer textarea { width: 100%; min-height: 48px; max-height: 160px; resize: none; border: 0; outline: 0; background: transparent; color: var(--text); line-height: 1.5; font-size: 1rem; padding: 3px 4px; }
    .composer textarea::placeholder { color: #6f8997; }
    .composer-tools { display: flex; align-items: center; gap: 7px; margin-top: 5px; }
    .tool-button { border: 0; background: transparent; color: var(--muted); border-radius: 8px; padding: 7px 8px; cursor: pointer; font-size: .78rem; }
    .tool-button:hover { background: rgba(255,255,255,.05); color: var(--text); }
    .verify-toggle { display: flex; gap: 7px; align-items: center; color: #aac0c9; font-size: .72rem; margin-left: 3px; }
    .verify-toggle i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
    .send { margin-left: auto; width: 38px; height: 36px; border: 0; border-radius: 10px; background: var(--teal); color: #05211d; cursor: pointer; font-weight: 800; font-size: 1.1rem; }
    .send:hover { filter: brightness(1.07); }
    .fineprint { text-align: center; color: #627a87; font-size: .66rem; margin-top: 8px; }

    .evidence { min-height: 100vh; background: #09151e; border-left: 1px solid var(--line); padding: 20px 17px; overflow-y: auto; }
    .evidence-head { display: flex; align-items: center; justify-content: space-between; height: 29px; margin-bottom: 21px; }
    .evidence-head strong { font-size: .9rem; }
    .evidence-head span { font-family: var(--mono); font-size: .63rem; color: var(--teal); border: 1px solid rgba(61,230,208,.26); padding: 4px 6px; border-radius: 6px; }
    .panel-section { margin-bottom: 25px; }
    .section-title { font-family: var(--mono); color: #6f8997; font-size: .65rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 10px; }
    .source-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: rgba(255,255,255,.015); margin-bottom: 8px; }
    .source-top { display: flex; gap: 10px; align-items: flex-start; }
    .doc-icon { width: 30px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; background: var(--panel-3); border-radius: 7px; color: var(--teal); font-family: var(--mono); font-size: .58rem; }
    .source-card strong { display: block; font-size: .77rem; line-height: 1.35; }
    .source-card small { color: var(--muted); font-size: .65rem; }
    .source-match { display: flex; align-items: center; gap: 7px; margin-top: 10px; color: var(--muted); font-size: .65rem; }
    .source-match i { height: 3px; flex: 1; border-radius: 4px; background: linear-gradient(90deg, var(--teal) 86%, rgba(255,255,255,.06) 86%); }
    .output-card { border: 1px solid rgba(246,185,74,.19); background: var(--amber-dim); border-radius: 12px; padding: 12px; }
    .output-card strong { font-size: .78rem; }
    .output-card p { color: #bba66f; font-size: .69rem; line-height: 1.48; margin: 7px 0 11px; }
    .output-card button { border: 1px solid rgba(246,185,74,.28); background: transparent; color: #ebc778; border-radius: 8px; padding: 7px 9px; cursor: pointer; font-size: .69rem; }
    .guardrail { display: grid; grid-template-columns: 20px 1fr; gap: 8px; color: var(--muted); font-size: .68rem; line-height: 1.5; }
    .guardrail b { color: var(--teal); }

    dialog { width: min(760px, calc(100% - 28px)); border: 1px solid var(--line-strong); background: #0a1721; color: var(--text); border-radius: 22px; padding: 0; box-shadow: 0 28px 90px rgba(0,0,0,.55); }
    dialog::backdrop { background: rgba(2,8,12,.78); backdrop-filter: blur(5px); }
    .modal-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 23px 24px 17px; border-bottom: 1px solid var(--line); }
    .modal-head h2 { margin: 0 0 4px; font-size: 1.35rem; }
    .modal-head p { margin: 0; color: var(--muted); font-size: .8rem; }
    .close-modal { background: transparent; border: 1px solid var(--line); width: 31px; height: 31px; border-radius: 9px; cursor: pointer; }
    .plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 22px; }
    .plan { position: relative; border: 1px solid var(--line); border-radius: 15px; padding: 17px; background: rgba(255,255,255,.018); }
    .plan.featured { border-color: rgba(61,230,208,.35); background: linear-gradient(160deg, rgba(61,230,208,.095), rgba(255,255,255,.014)); }
    .plan-tag { position: absolute; top: -9px; right: 12px; background: var(--teal); color: #06241f; padding: 3px 7px; border-radius: 6px; font-family: var(--mono); font-size: .58rem; font-weight: 700; text-transform: uppercase; }
    .plan h3 { margin: 0 0 6px; font-size: 1rem; }
    .price { font-size: 1.5rem; font-weight: 700; letter-spacing: -.04em; }
    .price small { font-size: .875rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }
    .plan ul { padding-left: 17px; color: #b6c8d0; font-size: 1rem; line-height: 1.55; min-height: 130px; }
    .plan button { width: 100%; border: 1px solid var(--line-strong); background: var(--panel-2); border-radius: 9px; padding: 9px; cursor: pointer; font-size: .75rem; font-weight: 700; }
    .plan.featured button { background: var(--teal); color: #06231f; border-color: var(--teal); }
    .plan button { font-size: .875rem; }
    .plan button:disabled { cursor: not-allowed; opacity: .65; }
    .modal-head p { font-size: .875rem; line-height: 1.5; }
    .modal-foot { padding: 0 22px 22px; color: var(--muted); font-size: .875rem; line-height: 1.6; text-align: center; }
    .toast { position: fixed; z-index: 20; right: 20px; bottom: 20px; max-width: 320px; padding: 12px 14px; border: 1px solid var(--line-strong); background: #10232f; border-radius: 11px; color: #dbe9ed; box-shadow: 0 18px 50px rgba(0,0,0,.35); font-size: .78rem; transform: translateY(20px); opacity: 0; pointer-events: none; transition: .2s ease; }
    .toast.show { transform: translateY(0); opacity: 1; }

    @media (max-width: 1080px) {
      .app { grid-template-columns: 220px minmax(0, 1fr); }
      .evidence { display: none; }
    }
    @media (max-width: 760px) {
      .app { display: block; }
      .sidebar { display: none; position: fixed; inset: 0 auto 0 0; z-index: 12; width: min(290px, 84vw); box-shadow: 25px 0 70px rgba(0,0,0,.5); }
      .sidebar.open { display: flex; }
      .main { height: 100dvh; }
      .mobile-menu { display: block; }
      .mobile-logo { display: block; }
      .crumb span { display: none; }
      .crumb strong { font-size: .8rem; white-space: normal; }
      .topbar { padding: 0 14px; }
      .status-pill span { display: none; }
      .chat-scroll { padding: 25px 16px; }
      .quick-grid { grid-template-columns: 1fr; margin-left: 0; }
      .quick-card { min-height: 0; }
      .composer-shell { padding: 12px 13px 14px; }
      .plans { grid-template-columns: 1fr; }
      .plan ul { min-height: 0; }
      dialog { max-height: 88vh; overflow: auto; }
    }
  [hidden] { display:none !important; }
.muted { color:var(--muted); font-size:.875rem; line-height:1.5; }
.account-button,.primary { border:1px solid var(--teal); background:var(--teal); color:#05211d; border-radius:9px; padding:9px 13px; font-weight:700; cursor:pointer; }
.plan-button { border:0; background:var(--amber); color:#1e1605; border-radius:9px; padding:9px 13px; font-weight:700; cursor:pointer; white-space:nowrap; }
.billing-status { margin:0 24px 16px; color:var(--amber); line-height:1.5; }
.billing-status:empty { display:none; }
@media(max-width:760px){ .topbar { height:auto; min-height:67px; flex-wrap:wrap; gap:6px; padding:10px 12px; } .top-actions { gap:6px; } .status-pill,.top-actions .icon-button { display:none; } .crumb { display:none; } .plans .featured { order:-1; } .sidebar { max-height:100dvh; overflow-y:auto; } }
button:disabled { opacity:.6; cursor:not-allowed; }
.account-body { padding:24px; }
.account-body form { display:grid; gap:12px; }
.account-body label,.parts-fields label { font-size:.875rem; }
.account-body input,.parts-fields input { width:100%; padding:11px; border-radius:8px; border:1px solid var(--line-strong); color:var(--text); background:var(--panel-2); font-size:1rem; }
.text-button { background:transparent; color:var(--teal); border:0; padding:12px; cursor:pointer; }
.account-body select,.account-body textarea { width:100%; padding:11px; border-radius:8px; border:1px solid var(--line-strong); color:var(--text); background:var(--panel-2); font:inherit; }
.answer-actions { display:flex; flex-wrap:wrap; gap:8px; border-top:1px solid var(--line); margin-top:14px; }
.mode-picker { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.mode-picker button { color:var(--muted); background:transparent; border:1px solid var(--line); border-radius:9px; padding:7px 12px; cursor:pointer; font-size:.875rem; }
.mode-picker button[aria-pressed=true] { color:var(--teal); background:var(--teal-dim); border-color:var(--teal); }
.parts-fields { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:12px; }
.parts-fields label { display:grid; gap:5px; }
.parts-fields select { width:100%; padding:11px; border-radius:8px; border:1px solid var(--line-strong); color:var(--text); background:var(--panel-2); font-size:1rem; }
.parts-fields label:last-child { grid-column:1/-1; }
.connection-notice { color:#edcc85; background:var(--amber-dim); border:1px solid rgba(246,185,74,.25); border-radius:10px; padding:12px; margin-bottom:12px; font-size:.875rem; line-height:1.45; }
.answer-text { white-space:pre-wrap; overflow-wrap:anywhere; }
a { color:var(--teal); }
.answer-sources { display:flex; flex-wrap:wrap; gap:10px; border-top:1px solid var(--line); margin-top:14px; padding-top:10px; font-size:.875rem; }
.part-results { display:grid; gap:12px; margin-top:16px; }
.part-result { padding:14px; border:1px solid var(--line-strong); border-radius:10px; }
.part-result h3 { font-family:var(--mono); margin:0 0 9px; font-size:1rem; overflow-wrap:anywhere; }
.part-result p { margin:8px 0; }
.part-result a { font-size:.875rem; }
.limitations { color:var(--muted); font-size:.875rem; }
.waiting { padding:16px; color:var(--muted); }
.error { color:var(--danger); }
.nav-label,.trust-chip,.verify-toggle,.status-pill,.section-title,.guardrail,.source-card small,.source-card strong,.source-match,.output-card p,.output-card button,.fineprint,.quick-card p,.quick-card .eyebrow,.usage-row,.usage strong { font-size:.875rem; }
.brand-name small,.plan-tag { font-size:.75rem; }
.source-card { overflow-wrap:anywhere; }
#recentConversations .nav-item { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:block; }
.topbar { min-height:67px; height:auto; padding-block:10px; }
.fineprint { color:var(--muted); }
.evidence .source-card a { font-size:.875rem; }
@media (max-width:760px) {
 .top-actions { gap:5px; }
 .status-pill { display:none; }
 .account-button { font-size:.875rem; padding:8px; }
 .topbar { gap:5px; }
 .mobile-logo { width:72px; }
 .parts-fields { grid-template-columns:1fr; }
 .connection-notice { font-size:.875rem; }
 .intro { grid-template-columns:1fr; }
 .intro .ai-avatar { display:none; }
 .message { grid-template-columns:1fr; }
 .message-avatar { display:none; }
 .bubble { max-width:100%; }
}
.photo-fields {padding:12px 6px;}
.photo-fields label {display:block;font-weight:600;margin-bottom:10px;}
.photo-fields input {max-width:100%;padding:8px 0;}
.photo-fields p {font-size:12px;line-height:1.5;color:var(--muted,#9eaeb9);max-width:720px;}
.mode-picker {flex-wrap:wrap;}

/* Conversation first: focused chat, with optional tools and workspaces. */
.app { grid-template-columns:244px minmax(0,1fr); height:var(--app-height,100dvh); min-height:0; }
.main { height:var(--app-height,100dvh); min-height:0; background:#101923; }
.sidebar { height:var(--app-height,100dvh); min-height:0; overflow:hidden; padding:18px 14px; background:#0b131c; }
.sidebar-header { display:flex; align-items:flex-start; flex-shrink:0; }
.sidebar-header .brand { flex:1; min-width:0; }
.sidebar-close { display:none; }
.sidebar-scroll { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; margin-top:12px; }
.sidebar > .new-chat,.sidebar > .side-bottom { flex-shrink:0; }
.sidebar-backdrop { display:none; }
.brand { padding-bottom:18px; }
.wwaog-logo { width:164px; }
.brand-name { font-size:.88rem; }
.brand-name small { display:none; }
.workspace-menu { margin-top:20px; }
.workspace-menu summary { color:var(--muted); font-size:.82rem; cursor:pointer; padding:8px 10px; }
.workspace-menu .nav-list { margin-top:6px; }
.nav-label { font-family:var(--font); text-transform:none; letter-spacing:0; font-size:.8rem; margin-top:24px; }
#recentConversations { display:flex; flex-direction:column; min-height:40px; margin-bottom:12px; }
#recentConversations .nav-item { display:block; flex-shrink:0; min-height:44px; line-height:1.4; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; width:100%; }
.side-bottom { padding-top:18px; }
.topbar { border:0; background:#101923; }
.status-pill { display:none; }
.crumb span { font-size:.75rem; }
.plan-button { background:transparent; border:1px solid var(--line-strong); color:var(--text); }
.account-button { background:transparent; color:var(--text); border-color:var(--line-strong); }
.chat-scroll { min-height:0; padding:28px max(24px,calc((100% - 780px)/2)); overflow-anchor:none; }
.intro { display:block; text-align:center; margin:clamp(20px,9vh,110px) auto 0; max-width:640px; }
.ai-avatar { margin:0 auto 22px; border:0; background:transparent; color:var(--teal); font-size:2rem; }
.intro h1 { font-size:clamp(1.55rem,2.7vw,2.15rem); line-height:1.25; font-weight:500; }
.intro p { font-size:.95rem; color:#9cafbb; margin:14px auto 0; max-width:510px; }
.quick-grid { display:flex; flex-wrap:wrap; justify-content:center; gap:9px; margin:26px auto 22px; }
.quick-card { min-height:44px; padding:10px 15px; border-radius:22px; background:transparent; }
.quick-card strong { margin:0; font-size:.85rem; font-weight:500; }
.message { display:block; margin:22px 0 30px; }
.message-avatar { display:none; }
.bubble { max-width:none; border:0; background:transparent; border-radius:18px; padding:0; font-size:1rem; line-height:1.72; color:#e5edf2; }
.message.user { display:flex; justify-content:flex-end; }
.message.user .bubble { max-width:85%; background:#24323e; padding:12px 18px; }
.answer-actions { border:0; margin-top:12px; gap:6px; }
.answer-actions .text-button { color:var(--muted); padding:8px 10px; font-size:.8rem; }
.answer-sources { font-size:.8rem; }
.answer-sources summary { cursor:pointer; color:var(--muted); padding:6px 0; }
.answer-sources a { display:block; margin:6px 0; }
.credit-plan { margin:18px 22px; display:flex; align-items:center; gap:20px; }
.credit-plan p { line-height:1.5; font-size:.85rem; }
.credit-plan button { min-width:165px; }
.composer-shell { border:0; background:#101923; padding:12px max(24px,calc((100% - 780px)/2)) 18px; backdrop-filter:none; }
.composer { border-color:rgba(180,214,228,.2); background:#1b2834; border-radius:23px; padding:13px 14px 10px; box-shadow:none; }
.composer textarea { min-height:32px; font-size:1rem; }
.composer-tools { margin-top:7px; }
.attach-button { font-size:1.6rem; padding:0 7px; line-height:1; }
.tool-button { min-width:40px; min-height:40px; font-size:.85rem; }
.send { width:40px; height:40px; border-radius:50%; }
.mode-reset { font-size:.78rem; padding:8px; }
.mode-picker { margin:0 0 10px; padding:12px; background:var(--panel); border:1px solid var(--line); border-radius:14px; }
.mode-picker button { min-height:42px; }
.composer-status { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:10px 4px 0; font-size:.7rem; color:var(--muted); }
.composer-status button { color:#b6d4df; border:0; background:transparent; padding:6px 0; font-size:.75rem; white-space:nowrap; cursor:pointer; }
.photo-fields p { font-size:.78rem; line-height:1.45; }
.waiting { color:var(--muted); line-height:1.5; }
.waiting.error { color:var(--amber); border:1px solid rgba(246,185,74,.3); border-radius:14px; padding:14px; }
@media(max-width:760px){
 .sidebar { width:min(320px,88vw); padding:12px 14px max(12px,env(safe-area-inset-bottom)); box-shadow:12px 0 35px rgba(0,0,0,.3); }
 .sidebar-header .brand { padding:4px 8px 14px; }
 .sidebar-header .wwaog-logo { width:138px; }
 .sidebar-close { display:grid; place-items:center; width:44px; height:44px; flex-shrink:0; border:1px solid var(--line); border-radius:12px; background:var(--panel-2); font-size:1.8rem; line-height:1; cursor:pointer; }
 .sidebar-backdrop:not([hidden]) { display:block; position:fixed; inset:0; z-index:11; border:0; padding:0; background:rgba(0,0,0,.6); cursor:pointer; }
 .sidebar-scroll .workspace-menu { margin-top:0; }
 .side-bottom { padding-top:10px; gap:7px; }
 .side-bottom .nav-item { min-height:44px; }
 .mobile-menu { min-width:44px; min-height:44px; }
 .credit-plan { display:block; margin:16px; }.credit-plan button { width:100%; }
 .app { display:block; }.sidebar { z-index:12; }.topbar { min-height:60px; padding:10px 14px; flex-wrap:nowrap; }.top-actions { gap:6px; }
 .mobile-logo { width:82px; }.crumb { display:none; }.topbar .plan-button,.topbar .account-button { font-size:.8rem; padding:9px 10px; }
 .chat-scroll { padding:12px 18px 20px; }.intro { margin-top:clamp(15px,6vh,64px); }.intro h1 { font-size:1.6rem; }.intro p { font-size:.9rem; }
 .quick-grid { gap:8px; margin-top:22px; }.quick-card { padding:10px 12px; }.quick-card strong { font-size:.78rem; }
 .composer-shell { padding:8px 12px max(10px,env(safe-area-inset-bottom)); }.composer { border-radius:21px; }.composer-status { display:block; text-align:center; margin-top:6px; }.composer-status span { display:block; font-size:.62rem; }.composer-status button { padding:5px; font-size:.73rem; }
 .message { margin:18px 0 28px; }.bubble { line-height:1.65; }.message.user .bubble { max-width:92%; }.photo-fields p { max-height:80px; overflow:auto; }
 .top-actions .icon-button { display:none; }.parts-fields { max-height:30dvh; overflow:auto; }
}
@media(max-width:760px) and (max-height:560px){
 .sidebar-header .brand { padding:0 8px 8px; }
 .sidebar-header .wwaog-logo { width:94px; }
 .sidebar-header .brand-name { display:none; }
 .side-bottom { gap:6px; }
 .side-bottom .nav-item { min-height:36px; padding:6px 10px; }
 .sidebar .usage { padding:9px 12px; }
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important;}}
