
    :root {
      color-scheme: light;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: #151b28;
      background: #fff;
      font-synthesis: none;
      text-rendering: optimizeLegibility;
      --ink: #151b28;
      --muted: #667085;
      --muted-2: #8791a2;
      --line: #e8ebf1;
      --soft: #f6f8fb;
      --side: #f8f9fc;
      --blue: #2c5ce6;
      --blue-dark: #2049c6;
      --blue-soft: #edf2ff;
      --green: #228a62;
      --red: #bd3b42;
      --shadow: 0 14px 44px rgba(21, 35, 68, .11);
    }
    * { box-sizing: border-box; }
    html, body { width: 100%; height: 100%; margin: 0; }
    body { min-width: 320px; overflow: hidden; -webkit-font-smoothing: antialiased; }
    button, textarea, input { font: inherit; }
    button { color: inherit; }
    button:focus-visible, textarea:focus-visible, input:focus-visible, a:focus-visible {
      outline: 3px solid rgba(44, 92, 230, .35);
      outline-offset: 2px;
    }
    button { cursor: pointer; }
    .app-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); width: 100%; height: 100%; background: #fff; }
    .sidebar { display: flex; flex-direction: column; min-width: 0; padding: 22px 14px 16px; background: var(--side); border-right: 1px solid var(--line); }
    .brand-row { display: flex; align-items: center; gap: 11px; padding: 0 9px; margin-bottom: 27px; }
    .brand-mark { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(140deg, #376af0, #254dc8); box-shadow: 0 5px 12px rgba(44, 92, 230, .2); }
    .brand-name { font-size: 15px; font-weight: 700; letter-spacing: -.35px; }
    .brand-subtitle { margin-top: 2px; color: var(--muted-2); font-size: 11px; letter-spacing: .2px; }
    .new-chat { display: flex; align-items: center; justify-content: center; gap: 9px; height: 44px; width: 100%; border: 1px solid #dfe5f0; border-radius: 12px; background: #fff; color: #25334a; font-size: 13px; font-weight: 600; transition: background .18s, border-color .18s, transform .18s; }
    .new-chat:hover { background: #f1f5ff; border-color: #cbd8fb; transform: translateY(-1px); }
    .side-search { display: flex; align-items: center; gap: 8px; height: 40px; margin: 14px 0 22px; padding: 0 11px; border: 1px solid transparent; border-radius: 10px; color: #8a93a2; background: #f0f2f6; }
    .side-search:focus-within { border-color: #bdccf7; background: #fff; }
    .side-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
    .side-search input::placeholder { color: #8a93a2; }
    .section-label { padding: 0 10px; margin: 0 0 9px; color: #8992a1; font-size: 10px; font-weight: 700; letter-spacing: .95px; text-transform: uppercase; }
    .chat-list { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #d9deea transparent; }
    .chat-row { display: flex; align-items: center; gap: 4px; min-height: 38px; padding: 0 4px 0 9px; margin: 2px 0; border: 1px solid transparent; border-radius: 9px; color: #596274; transition: background .16s, color .16s; }
    .chat-row:hover, .chat-row.active { color: #252d3b; background: #eef1f7; }
    .chat-row.active { border-color: #e4e8f0; }
    .chat-title { flex: 1; min-width: 0; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; border: 0; padding: 7px 0; background: transparent; color: inherit; font-size: 12px; }
    .delete-chat { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 7px; color: #8992a1; background: transparent; opacity: .55; }
    .delete-chat:hover { color: #a22c36; background: #fff; opacity: 1; }
    .empty-history { padding: 12px 10px; color: #8c95a4; font-size: 12px; line-height: 1.55; }
    .sidebar-bottom { display: grid; gap: 5px; padding-top: 12px; border-top: 1px solid var(--line); }
    .side-action { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 39px; padding: 0 10px; border: 0; border-radius: 9px; text-align: left; color: #556072; background: transparent; font-size: 12px; }
    .side-action:hover { background: #eef1f7; color: var(--ink); }
    .profile-row { display: flex; align-items: center; gap: 10px; margin: 12px 3px 0; padding: 12px 7px 2px; border-top: 1px solid var(--line); }
    .profile-avatar { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border: 1px solid #dce2ee; border-radius: 50%; color: #4661a8; background: #e8edfa; font-size: 10px; font-weight: 700; }
    .profile-name { color: #354052; font-size: 11px; font-weight: 600; }
    .profile-plan { margin-top: 2px; color: #8992a1; font-size: 10px; }
    .main-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; }
    .topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 66px; flex: 0 0 auto; padding: 0 28px; border-bottom: 1px solid #eef0f4; }
    .top-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
    .mobile-menu { display: none !important; }
    .selector-wrap { position: relative; }
    .selector-button { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 10px; border: 1px solid transparent; border-radius: 10px; background: #fff; color: #263247; font-size: 12px; font-weight: 650; transition: background .16s, border-color .16s; }
    .selector-button:hover, .selector-button[aria-expanded="true"] { border-color: var(--line); background: #fafbfc; }
    .selector-button .chevron { color: #8a93a2; }
    .model-glyph { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 8px; color: #3559c7; background: #edf2ff; }
    .selector-divider { height: 23px; width: 1px; margin: 0 2px; background: var(--line); }
    .selector-caption { color: #8992a1; font-size: 11px; font-weight: 500; }
    .popover { position: absolute; z-index: 20; top: calc(100% + 9px); left: 0; width: 252px; padding: 9px; border: 1px solid #e5e8ef; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
    .popover[hidden] { display: none; }
    .popover-label { padding: 7px 9px 5px; color: #8992a1; font-size: 10px; font-weight: 700; letter-spacing: .75px; text-transform: uppercase; }
    .model-option { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 9px; color: #233047; }
    .model-option.active { background: #f3f6ff; }
    .option-title { font-size: 12px; font-weight: 650; }
    .option-note { margin-top: 3px; color: #8a93a2; font-size: 10px; }
    .reason-option { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 39px; padding: 0 10px; border: 0; border-radius: 9px; text-align: left; background: #fff; color: #475266; font-size: 12px; }
    .reason-option:hover { background: #f4f6fa; }
    .reason-option[aria-checked="true"] { color: #244dc7; font-weight: 650; background: #f0f4ff; }
    .reason-help { margin: 7px 9px 4px; padding-top: 9px; border-top: 1px solid var(--line); color: #8992a1; font-size: 10px; line-height: 1.45; }
    .top-right { display: flex; align-items: center; gap: 9px; }
    .connection-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 10px; border: 1px solid #eee2c8; border-radius: 999px; color: #806328; background: #fffaf0; font-size: 10px; font-weight: 600; white-space: nowrap; }
    .connection-pill.ready { border-color: #cde8dc; color: #287351; background: #f2fbf6; }
    .status-dot { width: 7px; height: 7px; border-radius: 50%; background: #d29e30; }
    .connection-pill.ready .status-dot { background: #36a474; }
    .icon-button { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid transparent; border-radius: 10px; color: #697386; background: transparent; transition: background .16s, border-color .16s, color .16s; }
    .icon-button:hover { border-color: var(--line); color: #263247; background: #f8f9fb; }
    .conversation { position: relative; flex: 1; min-height: 0; overflow-y: auto; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #d9deea transparent; }
    .conversation-inner { width: min(100%, 850px); min-height: 100%; margin: 0 auto; padding: 36px 28px 34px; }
    .welcome { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: min(610px, calc(100vh - 255px)); padding: 20px 0 30px; text-align: center; }
    .welcome-mark { display: grid; width: 58px; height: 58px; place-items: center; margin-bottom: 23px; border: 1px solid #e3e9fb; border-radius: 20px; color: #3159d4; background: linear-gradient(155deg, #f6f8ff, #eaf0ff); box-shadow: 0 8px 24px rgba(36, 74, 175, .09); }
    .welcome h1 { margin: 0; color: #172033; font-size: clamp(25px, 3vw, 33px); font-weight: 650; letter-spacing: -1.1px; }
    .welcome-sub { max-width: 440px; margin: 10px 0 29px; color: #798294; font-size: 14px; line-height: 1.65; }
    .suggestions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 710px); gap: 11px; text-align: left; }
    .suggestion-card { display: flex; min-height: 84px; flex-direction: column; justify-content: space-between; gap: 13px; padding: 13px 14px; border: 1px solid #e8ebf2; border-radius: 14px; text-align: left; color: #394457; background: #fff; transition: transform .18s, border-color .18s, box-shadow .18s; }
    .suggestion-card:hover { transform: translateY(-2px); border-color: #ced9f8; box-shadow: 0 8px 20px rgba(28, 52, 104, .06); }
    .suggestion-icon { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; color: #4666c7; background: #f0f4ff; }
    .suggestion-text { font-size: 11px; font-weight: 600; line-height: 1.4; }
    .messages { display: flex; flex-direction: column; gap: 28px; padding: 16px 0 42px; }
    .messages[hidden], .welcome[hidden] { display: none; }
    .message-row { display: flex; align-items: flex-start; gap: 12px; width: 100%; }
    .message-row.user { justify-content: flex-end; }
    .assistant-avatar { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; margin-top: 2px; border: 1px solid #e2e8f7; border-radius: 10px; color: #3559c7; background: #f0f4ff; }
    .assistant-body { min-width: 0; width: min(100%, 700px); color: #253044; }
    .assistant-label { margin: 2px 0 8px; color: #697386; font-size: 11px; font-weight: 650; }
    .assistant-text { color: #293448; font-size: 14px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
    .user-bubble { max-width: min(78%, 610px); padding: 12px 15px; border: 1px solid #e4e9f2; border-radius: 17px 17px 5px 17px; color: #273246; background: #f5f7fb; font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
    .message-files { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
    .message-file { display: inline-flex; align-items: center; gap: 7px; max-width: 230px; padding: 6px 9px; border: 1px solid #e1e6ef; border-radius: 9px; color: #5d687a; background: #fff; font-size: 10px; }
    .file-ext { display: grid; min-width: 23px; height: 22px; place-items: center; padding: 0 4px; border-radius: 6px; color: #4562bf; background: #edf2ff; font-size: 8px; font-weight: 750; text-transform: uppercase; }
    .message-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .message-note { margin-top: 10px; padding: 9px 11px; border-left: 2px solid #d8a94f; border-radius: 0 8px 8px 0; color: #7d6738; background: #fffaf0; font-size: 11px; line-height: 1.5; }
    .message-error .assistant-text { color: #9e363e; }
    .message-actions { display: flex; gap: 4px; margin-top: 9px; }
    .message-action { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border: 0; border-radius: 7px; color: #8992a1; background: transparent; font-size: 10px; }
    .message-action:hover { color: #495569; background: #f3f5f8; }
    .typing-row { display: flex; align-items: center; gap: 11px; color: #7d8798; font-size: 12px; }
    .typing-dots { display: flex; align-items: center; gap: 4px; height: 14px; }
    .typing-dots i { width: 5px; height: 5px; border-radius: 50%; background: #8295cf; animation: pulse 1.1s infinite ease-in-out; }
    .typing-dots i:nth-child(2) { animation-delay: .14s; }
    .typing-dots i:nth-child(3) { animation-delay: .28s; }
    @keyframes pulse { 0%, 70%, 100% { transform: translateY(0); opacity: .38; } 35% { transform: translateY(-3px); opacity: 1; } }
    .compose-area { position: relative; z-index: 2; flex: 0 0 auto; padding: 11px 26px max(14px, env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(255,255,255,0), #fff 18%); }
    .compose-inner { position: relative; width: min(100%, 790px); margin: 0 auto; }
    .composer { padding: 10px 12px 9px; border: 1px solid #e2e6ee; border-radius: 19px; background: #fff; box-shadow: 0 6px 20px rgba(25, 43, 80, .055); transition: border-color .18s, box-shadow .18s; }
    .composer:focus-within { border-color: #c6d2f3; box-shadow: 0 7px 24px rgba(34, 64, 140, .09); }
    .composer.dragging { border-color: #6685ea; background: #f7f9ff; }
    .file-tray { display: flex; flex-wrap: wrap; gap: 7px; padding: 1px 3px 8px; }
    .file-tray[hidden] { display: none; }
    .queued-file { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: min(100%, 260px); padding: 6px 7px 6px 8px; border: 1px solid #e3e8f1; border-radius: 10px; background: #f8f9fc; }
    .queued-file .file-ext { min-width: 26px; height: 25px; }
    .queued-info { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
    .queued-name { max-width: 155px; overflow: hidden; color: #445064; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
    .queued-size { color: #9aa2af; font-size: 9px; }
    .remove-file { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 7px; color: #818a9b; background: transparent; }
    .remove-file:hover { color: #a62d38; background: #fff; }
    .prompt-input { display: block; width: 100%; min-height: 31px; max-height: 180px; resize: none; padding: 7px 8px 9px; border: 0; outline: 0; color: #263247; background: transparent; font-size: 13px; line-height: 1.55; }
    .prompt-input::placeholder { color: #9aa2af; }
    .composer-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 2px 0; }
    .compose-left, .compose-right { display: flex; align-items: center; gap: 8px; }
    .attach-button { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 9px; border: 0; border-radius: 9px; color: #617086; background: transparent; font-size: 11px; font-weight: 600; }
    .attach-button:hover { color: #284da9; background: #f2f5fc; }
    .attach-help { color: #a0a7b2; font-size: 9px; }
    .send-button { display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 11px; color: #fff; background: var(--blue); transition: background .16s, transform .16s, opacity .16s; }
    .send-button:hover:not(:disabled) { transform: translateY(-1px); background: var(--blue-dark); }
    .send-button:disabled { cursor: default; opacity: .42; }
    .stop-button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #e5e8ef; border-radius: 11px; color: #687386; background: #fff; }
    .stop-button:hover { color: #ab3039; border-color: #f0c8ca; background: #fff8f8; }
    .compose-disclaimer { margin: 8px auto 0; color: #a1a8b3; text-align: center; font-size: 9px; line-height: 1.45; }
    .notice { position: absolute; z-index: 30; left: 50%; bottom: calc(100% + 10px); max-width: min(92vw, 520px); padding: 10px 14px; transform: translateX(-50%); border: 1px solid #e4e8ef; border-radius: 10px; color: #475266; background: #fff; box-shadow: var(--shadow); font-size: 11px; line-height: 1.5; }
    .notice[hidden] { display: none; }
    .drop-overlay { position: absolute; z-index: 15; inset: 0; display: grid; place-items: center; border: 2px dashed #7893e6; border-radius: 18px; color: #3157c4; background: rgba(242, 246, 255, .96); font-size: 14px; font-weight: 650; pointer-events: none; }
    .drop-overlay[hidden] { display: none; }
    .mobile-scrim { display: none; }
    .modal-layer { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(21, 29, 45, .32); backdrop-filter: blur(4px); }
    .modal-layer[hidden] { display: none; }
    .modal { width: min(100%, 430px); padding: 22px; border: 1px solid #e6e9ef; border-radius: 18px; background: #fff; box-shadow: 0 22px 80px rgba(14, 25, 48, .2); }
    .modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
    .modal-icon { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 12px; color: #3159d1; background: #eef3ff; }
    .modal-close { display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 8px; color: #7e8797; background: transparent; }
    .modal-close:hover { background: #f2f4f7; color: #354052; }
    .modal h2 { margin: 16px 0 7px; color: #1b2538; font-size: 18px; letter-spacing: -.35px; }
    .modal-desc { margin: 0; color: #687386; font-size: 12px; line-height: 1.65; }
    .setting-card { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 18px; padding: 13px; border: 1px solid #e8ebf1; border-radius: 12px; background: #fafbfc; }
    .setting-label { color: #354052; font-size: 11px; font-weight: 650; }
    .setting-value { margin-top: 4px; color: #7e8797; font-size: 10px; }
    .setup-badge { padding: 5px 8px; border: 1px solid #eee2c8; border-radius: 999px; color: #806328; background: #fffaf0; font-size: 9px; font-weight: 650; white-space: nowrap; }
    .modal-note { margin: 15px 0 0; padding: 11px 12px; border-radius: 10px; color: #6f654e; background: #fffaf1; font-size: 10px; line-height: 1.55; }
    .modal-footer { display: flex; justify-content: flex-end; margin-top: 20px; }
    .primary-button { min-height: 36px; padding: 0 13px; border: 0; border-radius: 10px; color: #fff; background: var(--blue); font-size: 11px; font-weight: 650; }
    .primary-button:hover { background: var(--blue-dark); }
    @media (max-width: 850px) {
      .app-shell { grid-template-columns: 235px minmax(0,1fr); }
      .sidebar { padding-left: 11px; padding-right: 11px; }
      .topbar { padding-left: 18px; padding-right: 16px; }
      .conversation-inner { padding-left: 22px; padding-right: 22px; }
      .selector-caption { display: none; }
    }
    @media (max-width: 680px) {
      body { min-width: 320px; }
      .app-shell { display: block; }
      .sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; width: min(84vw, 290px); transform: translateX(-104%); transition: transform .22s ease; box-shadow: none; }
      .sidebar.open { transform: translateX(0); box-shadow: 12px 0 42px rgba(18, 29, 50, .16); }
      .mobile-scrim.open { position: fixed; z-index: 35; inset: 0; display: block; background: rgba(20, 28, 43, .24); }
      .main-panel { width: 100%; height: 100%; }
      .topbar { height: 60px; padding: 0 12px; gap: 7px; }
      .mobile-menu { display: grid !important; }
      .top-left { gap: 3px; }
      .selector-button { min-height: 35px; gap: 6px; padding: 0 7px; font-size: 11px; }
      .model-glyph { width: 21px; height: 21px; }
      .selector-divider { margin: 0; }
      .connection-pill { min-height: 28px; padding: 0 8px; font-size: 9px; }
      .top-right { gap: 3px; }
      .icon-button { width: 32px; height: 32px; }
      .conversation-inner { padding: 22px 15px 26px; }
      .welcome { min-height: min(560px, calc(100vh - 225px)); padding-bottom: 20px; }
      .welcome-mark { width: 52px; height: 52px; margin-bottom: 18px; border-radius: 17px; }
      .welcome-sub { margin: 9px 0 23px; font-size: 12px; }
      .suggestions { grid-template-columns: 1fr; width: min(100%, 390px); gap: 8px; }
      .suggestion-card { min-height: 55px; flex-direction: row; align-items: center; justify-content: flex-start; padding: 9px 11px; }
      .suggestion-icon { width: 27px; height: 27px; flex: 0 0 auto; }
      .suggestion-text { font-size: 11px; }
      .compose-area { padding: 8px 9px max(10px, env(safe-area-inset-bottom)); }
      .composer { padding: 8px 8px 7px; border-radius: 16px; }
      .prompt-input { font-size: 13px; padding-left: 7px; }
      .attach-help { display: none; }
      .attach-button { padding: 0 7px; }
      .compose-disclaimer { padding: 0 6px; font-size: 8px; }
      .messages { gap: 23px; }
      .assistant-text { font-size: 13px; }
      .user-bubble { max-width: 88%; font-size: 12px; }
      .popover { width: 230px; }
      .reasoning-popover { left: auto; right: 0; }
    }
    @media (max-width: 400px) {
      .topbar { padding-right: 8px; padding-left: 8px; }
      .connection-pill { gap: 5px; padding: 0 6px; }
      .top-right { gap: 1px; }
      .selector-button { font-size: 10px; }
      .model-glyph { display: none; }
      .compose-disclaimer { font-size: 7.5px; }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    }
  
.auth-gate[hidden], .app-shell[hidden], .admin-backdrop[hidden] { display:none !important; }
.auth-gate { min-height:100vh; display:grid; place-items:center; padding:28px; background:radial-gradient(circle at 50% 10%, #eef3ff 0, #f8f9fc 42%, #f6f8fb 100%); }
.auth-card { width:min(100%, 430px); padding:42px 40px 34px; border:1px solid #e7eaf1; border-radius:22px; background:#fff; box-shadow:0 18px 64px rgba(25,38,68,.09); text-align:center; }
.auth-brand { display:flex; justify-content:center; align-items:center; gap:10px; font-weight:750; font-size:18px; letter-spacing:-.04em; color:#1e2a45; }
.auth-brand-mark { display:grid; place-items:center; width:34px; height:34px; border-radius:11px; color:#3159d4; background:#eef2ff; font-size:20px; }
.auth-eyebrow { margin:28px 0 10px; color:#778195; font-size:10px; font-weight:750; letter-spacing:.12em; }
.auth-card h1 { margin:0; color:#1b2434; font-size:28px; line-height:1.15; letter-spacing:-.045em; }
.auth-copy { max-width:315px; margin:13px auto 25px; color:#687286; font-size:14px; line-height:1.65; }
.google-signin { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:52px; padding:0 17px; border:1px solid #d9deea; border-radius:11px; color:#202939; background:#fff; text-decoration:none; font-size:14px; font-weight:650; transition:border-color .15s, box-shadow .15s, transform .15s; }
.google-signin:hover { border-color:#aebce7; box-shadow:0 5px 18px rgba(30,61,140,.1); transform:translateY(-1px); }
.google-signin:focus-visible,.account-menu:focus-visible,.team-limits-button:focus-visible,.admin-dialog button:focus-visible,.admin-dialog input:focus-visible { outline:3px solid rgba(44,92,230,.3); outline-offset:2px; }
.google-g { font-family:Arial,sans-serif; font-size:18px; font-weight:800; color:#4285f4; }
.auth-domain { margin:19px 0 0; color:#58647a; font-size:12px; }
.auth-domain strong { color:#26334c; }
.auth-privacy { margin:27px 0 0; padding-top:18px; border-top:1px solid #edf0f5; color:#8992a2; font-size:11px; line-height:1.6; }
.auth-error { margin:17px 0 0; padding:10px 12px; border-radius:9px; color:#a5353d; background:#fff2f2; font-size:12px; line-height:1.5; }
.account-footer { margin-top:auto; padding:14px 12px 12px; border-top:1px solid #e7eaf0; }
.account-topline { display:flex; align-items:center; gap:9px; min-width:0; }
.account-avatar { display:grid; flex:0 0 auto; place-items:center; width:31px; height:31px; border-radius:50%; color:#2449bb; background:#eaf0ff; font-size:12px; font-weight:750; text-transform:uppercase; }
.account-copy { display:flex; flex:1; min-width:0; flex-direction:column; gap:2px; }
.account-copy strong { overflow:hidden; color:#273349; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.account-copy span { overflow:hidden; color:#7a8495; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.account-menu { display:grid; flex:0 0 auto; place-items:center; width:30px; height:30px; border:0; border-radius:8px; color:#798396; background:transparent; cursor:pointer; }
.account-menu:hover { color:#24324b; background:#edf0f6; }
.account-usage { display:flex; justify-content:space-between; gap:10px; margin:13px 0 7px; color:#768195; font-size:11px; }
.account-usage strong { color:#48566e; font-size:11px; font-weight:650; }
.usage-track { height:4px; overflow:hidden; border-radius:9px; background:#e9edf4; }
.usage-track span { display:block; width:0; height:100%; border-radius:inherit; background:#315ce3; transition:width .18s ease; }
.usage-track span.at-limit { background:#c94852; }
.team-limits-button { width:100%; margin-top:11px; padding:8px 10px; border:1px solid #e2e7f0; border-radius:8px; color:#36445c; background:#fff; font-size:11px; font-weight:600; text-align:left; cursor:pointer; }
.team-limits-button:hover { border-color:#cbd5e6; background:#f9faff; }
.admin-backdrop { position:fixed; z-index:90; inset:0; display:grid; place-items:center; padding:20px; background:rgba(20,28,44,.42); }
.admin-dialog { width:min(100%, 690px); max-height:min(84vh, 760px); overflow:hidden; display:flex; flex-direction:column; padding:26px; border:1px solid #e8ebf1; border-radius:18px; background:#fff; box-shadow:0 24px 80px rgba(18,29,51,.2); }
.admin-header { display:flex; justify-content:space-between; gap:22px; padding-bottom:20px; border-bottom:1px solid #edf0f5; }
.admin-header .auth-eyebrow { margin:0 0 7px; }
.admin-header h2 { margin:0; color:#1d283b; font-size:22px; letter-spacing:-.04em; }
.admin-intro { margin:8px 0 0; color:#717c8f; font-size:12px; line-height:1.55; }
.admin-list-heading { display:grid; grid-template-columns:minmax(0,1fr) 240px; gap:16px; padding:15px 4px 9px; color:#7b8595; font-size:10px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.admin-user-list { overflow:auto; min-height:90px; }
.admin-user-row { display:grid; grid-template-columns:minmax(0,1fr) 90px 64px 76px; align-items:center; gap:10px; padding:12px 4px; border-top:1px solid #f0f2f6; }
.admin-user-identity { min-width:0; display:flex; flex-direction:column; gap:3px; }
.admin-user-identity strong { overflow:hidden; color:#2c3749; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.admin-user-identity span { overflow:hidden; color:#808a99; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.admin-user-usage { color:#5b6679; font-size:11px; white-space:nowrap; }
.admin-limit-input { width:100%; min-width:0; height:34px; padding:0 8px; border:1px solid #dfe4ec; border-radius:7px; color:#273349; background:#fff; font-size:12px; }
.admin-save,.admin-default { min-height:34px; border:1px solid #dfe4ec; border-radius:7px; color:#39465d; background:#fff; font-size:11px; font-weight:600; cursor:pointer; }
.admin-save { border-color:#315ce3; color:#fff; background:#315ce3; }
.admin-save:hover { background:#244dc9; }
.admin-default:hover { background:#f5f7fb; }
.admin-empty { padding:24px 4px; color:#7a8597; font-size:12px; }
.admin-footnote { margin:12px 0 0; padding-top:14px; border-top:1px solid #edf0f5; color:#8791a1; font-size:10px; line-height:1.5; }
@media (max-width:600px) {
  .auth-card { padding:34px 23px 28px; }
  .admin-backdrop { padding:10px; }
  .admin-dialog { max-height:90vh; padding:18px 14px; }
  .admin-list-heading { grid-template-columns:minmax(0,1fr) 154px; gap:8px; font-size:9px; }
  .admin-user-row { grid-template-columns:minmax(0,1fr) 76px 58px; gap:8px; }
  .admin-user-row .admin-default { grid-column:2 / 4; justify-self:end; width:106px; }
  .admin-user-usage { font-size:10px; }
}
@media (prefers-reduced-motion:reduce) { .auth-gate *, .admin-backdrop * { transition:none !important; } }/* SAPH brand palette: yellow, black and white */:root {  color: #171717;  --ink: #171717;  --muted: #5f5d55;  --muted-2: #77746b;  --line: #e7e2d2;  --soft: #fbfaf5;  --side: #f7f6ef;  --blue: #f2c400;  --blue-dark: #d9ad00;  --blue-soft: #fff5c9;  --shadow: 0 14px 44px rgba(23, 23, 23, .10);}button:focus-visible, textarea:focus-visible, input:focus-visible, a:focus-visible,.google-signin:focus-visible, .account-menu:focus-visible, .team-limits-button:focus-visible,.admin-dialog button:focus-visible, .admin-dialog input:focus-visible {  outline: 3px solid #171717;  outline-offset: 2px;  box-shadow: 0 0 0 3px #f2c400;}.app-shell, .main-panel { background: #fff; }.sidebar { background: #f7f6ef; }.brand-mark { color: #ffd52a; background: linear-gradient(145deg, #292929, #111); box-shadow: 0 5px 12px rgba(23,23,23,.18); }.new-chat:hover, .side-action:hover { color: #171717; border-color: #e1c64b; background: #fff5c9; }.side-search:focus-within { border-color: #d7ad00; background: #fff; }.chat-row:hover, .chat-row.active { color: #171717; background: #fff5c9; }.chat-row.active { border-color: #e5cc65; }.profile-avatar { border-color: #e6d47a; color: #171717; background: #fff3b8; }.profile-name, .account-copy strong { color: #171717; }.model-glyph { color: #171717; background: #ffe57a; }.model-option.active, .reason-option[aria-checked="true"] { color: #171717; background: #fff5c9; }.reason-option[aria-checked="true"] { font-weight: 700; }.welcome-mark, .modal-icon { border-color: #171717; color: #ffd52a; background: linear-gradient(145deg, #292929, #111); box-shadow: 0 8px 24px rgba(23,23,23,.14); }.welcome h1 { color: #171717; }.suggestion-card:hover { border-color: #d7ad00; box-shadow: 0 8px 20px rgba(23,23,23,.07); }.suggestion-icon, .assistant-avatar { border-color: #eadb94; color: #171717; background: #fff3b8; }.user-bubble { border-color: #eadb94; color: #171717; background: #fff7d9; }.file-ext { color: #171717; background: #ffe57a; }.typing-dots i { background: #e2b700; }.composer:focus-within { border-color: #d7ad00; box-shadow: 0 7px 24px rgba(184,145,0,.16); }.composer.dragging { border-color: #d7ad00; background: #fff9df; }.attach-button:hover { color: #171717; background: #fff5c9; }.send-button, .primary-button { color: #171717; background: #f2c400; }.send-button:hover:not(:disabled), .primary-button:hover { background: #d9ad00; }.drop-overlay { border-color: #d7ad00; color: #171717; background: rgba(255, 247, 214, .96); }.auth-gate { background: radial-gradient(circle at 50% 10%, #fff5c9 0, #fbfaf5 42%, #fff 100%); }.auth-card { border-color: #e7e2d2; box-shadow: 0 18px 64px rgba(23,23,23,.10); }.auth-brand, .auth-card h1, .auth-domain strong { color: #171717; }.auth-brand-mark { color: #ffd52a; background: #171717; }.auth-eyebrow { color: #6c6758; }.auth-copy, .auth-domain { color: #5f5d55; }.google-signin { border-color: #171717; color: #171717; background: #fff; box-shadow: inset 3px 0 0 #f2c400; }.google-signin:hover { border-color: #171717; background: #e7b800; box-shadow: 0 6px 18px rgba(23,23,23,.14); }.google-signin .google-icon { display: block; width: 20px; height: 20px; }.auth-error { color: #a5353d; background: #fff2f2; }.account-avatar { color: #171717; background: #fff0a8; }.account-menu:hover, .team-limits-button:hover { color: #171717; border-color: #e1c64b; background: #fff5c9; }.usage-track span { background: #e2b700; }.admin-dialog { border-color: #e7e2d2; }.admin-save { border-color: #171717; color: #171717; background: #f2c400; }.admin-save:hover { border-color: #171717; color: #171717; background: #d9ad00; }


/* SAPH robot emblem */
.auth-brand-mark {
  display: block;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  object-fit: contain;
  border: 1px solid #eee7d0;
  border-radius: 14px;
  background: #fff;
}
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #eee7d0;
  border-radius: 12px;
  background: #fff;
}
.brand-mark svg { display: none; }
.brand-mark::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: url("/saph-robot-logo.png") center / contain no-repeat;
}


/* Borderless SAPH mark */
.auth-brand-mark,
.brand-mark {
  border: 0 !important;
  box-shadow: none !important;
}
