:root {
  --ink: #10233b;
  --muted: #718096;
  --cream: #f2f6fb;
  --paper: #ffffff;
  --line: #dce5ef;
  --forest: #102b49;
  --forest-2: #1b5572;
  --terra: #22bba8;
  --terra-dark: #159d91;
  --gold: #e6b958;
  --sage: #e3f4f1;
  --shadow: 0 18px 48px #102b4914;
}

body, html { background: var(--cream); color: var(--ink); }
.pacha-app { background: var(--cream); }
.sidebar { background: #102b49; color: #f7fbff; border-right: 1px solid #ffffff12; }
.brand-block { padding-bottom: 25px; }
.brand-block b, .topbar h1, .message-content p, .composer textarea { font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
.brand-block b { letter-spacing: -.03em; font-size: 20px; }
.brand-block small { color: #9fc4d1; letter-spacing: .12em; }
.brand-symbol { background: #153d5c; border: 1px solid #5cdac71f; border-radius: 15px; box-shadow: 0 8px 22px #071a2b55; }
.brand-symbol span { font-size: 0; }
.brand-symbol::after { content: ""; width: 31px; height: 31px; background: url("/pacha-neurons.svg") center / contain no-repeat; }
.empty-chat { position: relative; isolation: isolate; padding-top: 12vh; }
.empty-chat::before { content: ""; z-index: -1; position: absolute; top: 2vh; left: 50%; width: min(34vw, 300px); aspect-ratio: 1; transform: translateX(-50%); background: url("/pacha-neurons.svg") center / contain no-repeat; opacity: .055; pointer-events: none; }
.empty-symbol { width: 72px; height: 72px; color: transparent; font-size: 0; border-radius: 22px; background: #12395a url("/pacha-neurons.svg") center / 78% no-repeat; box-shadow: 0 12px 28px #12395a20; }
.empty-chat h2 { font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(25px, 3vw, 36px); letter-spacing: -.04em; }
.empty-chat p { font-size: 13px; }
.message.assistant .message-avatar { color: transparent; font-size: 0; background: #12395a url("/pacha-neurons.svg") center / 76% no-repeat; border: 1px solid #70e7d433; }
.message.user .message-content { background: #e8f0fa; border-color: #d8e4f1; }
.message-content p { font-size: 14px; }
.composer-zone { background: linear-gradient(180deg, #ffffff00, #f8fbff 24%); }
.composer { border-color: #d7e2ee; border-radius: 18px; box-shadow: 0 16px 34px #15314b12; }
.composer:focus-within { border-color: #27bba8; box-shadow: 0 0 0 4px #27bba81a, 0 16px 34px #15314b12; }
.composer textarea { font-size: 14px; }
.composer textarea::placeholder { color: #8997a8; }
.composer-foot b, .assistant-grid span, .model-top>span { color: #139f91; }
.model-top { display: flex !important; border-color: #d7e2ee; border-radius: 12px; }
.model-top select { max-width: 160px; color: #183958; }
.assistant-top { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid #d7e2ee; background: #fff; border-radius: 12px; color: #718096; font-size: 10px; }
.assistant-top select { max-width: 150px; color: #183958; background: transparent; border: 0; outline: 0; font-size: 10px; font-weight: 750; }
.topbar { background: #ffffffed; border-color: #e0e8f1; }
.topbar small { color: #718096; }
.secure-state { color: #208d7d; }
.assistant-grid button { border-color: #dce5ef; border-radius: 12px; }
.assistant-grid button:hover { border-color: #27bba8; background: #f4fbfa; }
.ai-settings-link { display: block; color: #a9c6d1; text-decoration: none; padding: 8px 9px; border-radius: 9px; font-size: 10px; }
.ai-settings-link span { display: inline-block; width: 27px; color: #70e7d4; }
.ai-settings-link:hover, .admin-link:hover { color: #fff; background: #ffffff12; }
.admin-link { border-radius: 9px; }
.user-card { border: 1px solid #ffffff12; }
.login-card { border-color: #dce5ef; box-shadow: var(--shadow); }
.login-copy h1 { font-family: Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: -.04em; }
.login-copy>span { color: #139f91; }
.login-card input:focus { border-color: #27bba8; box-shadow: 0 0 0 3px #27bba81a; }
.login-card form>button { background: #102b49; }
.login-card form>button:hover { background: #19446a; }
.auth-screen { background: radial-gradient(circle at 80% 18%, #26bda619, transparent 31%), radial-gradient(circle at 14% 85%, #e6b9581a, transparent 29%), #f2f6fb; }
.loading-mark { background: #102b49 url("/pacha-neurons.svg") center / 76% no-repeat; color: transparent; font-size: 0; }
.side-bottom { border-color: #ffffff1c; }

@media (max-width: 820px) {
  .top-actions { gap: 4px; }
  .assistant-top { padding: 6px; }
  .assistant-top>span { display: none; }
  .assistant-top select, .model-top select { max-width: 108px; font-size: 9px; }
}

@media (max-width: 780px) { .assistant-top, .model-top { display: flex !important; } .assistant-top select, .model-top select { max-width: 92px; } }
