/* A quieter identity: warm paper, champagne brass, generous breathing room. */
:root {
  --gold-0: #f7ead2;
  --gold-1: #e7c78c;
  --gold-2: #c3a167;
  --gold-3: #a38c60;
  --gold-glow: rgba(231, 199, 140, .1);
  --grad: linear-gradient(110deg, #ecd7a9, #d4b371);
  --grad-135: linear-gradient(135deg, #ecd7a9, #d4b371);
  --muted: #aaa4a0;
  --faint: #837d85;
  --line-gold: rgba(231, 199, 140, .24);
}
.aurora span { opacity: .15; }
.aurora .g2 { opacity: .09; }
.aurora .g3 { opacity: .1; }
.noise { opacity: .4; }
h1, h2, h3 { font-weight: 700; }
.display-title, .page-title { font-weight: 700; letter-spacing: -.025em; }
.page-title { font-size: clamp(28px, 3.5vw, 36px); }
.page-subtitle { font-size: 14px; }
.record-count { color: var(--muted); font-size: 12px; }
.chip-empty > img { mask-image: radial-gradient(ellipse, #000 48%, transparent 76%); }
.eyebrow { letter-spacing: .07em; }
.panel { box-shadow: 0 14px 40px rgba(0, 0, 0, .12); animation: none; }
.button, .send-button { box-shadow: none; }
.button:hover { box-shadow: 0 4px 16px rgba(231, 199, 140, .12); }
.button.ghost { border-color: rgba(231, 199, 140, .3); font-weight: 500; }
.brand-symbol { display: block; width: 48px; height: 48px; flex: 0 0 auto; object-fit: contain; }
.brand { gap: 9px; margin-bottom: 32px; }
.brand-name, .login-brand { font-weight: 500; letter-spacing: -.025em; }
.brand-name { font-size: 17px; }
.login-brand .brand-symbol { width: 54px; height: 54px; }
.nav-glyph { flex: 0 0 auto; }
.nav-link { gap: 12px; min-height: 46px; font-size: 13px; }
.nav-link.active, .mobile-link.active { color: var(--gold-0); background: rgba(231, 199, 140, .095); font-weight: 500; }
.mobile-link { gap: 4px; }
.roxy-avatar { width: 36px; height: 36px; flex: 0 0 auto; }
.login-story { justify-content: flex-start; gap: 0; }
.login-story-copy { margin: auto 0 0; }
.login-key-art { margin: 26px 0 auto; max-height: 30vh; }
.login-intro { margin-top: 22px; font-size: 15px; }
.login-product-label { font-size: 25px; }
.login-product-number { color: var(--gold-1); }
.login-form .button[type=submit] { background: var(--grad); box-shadow: none; }

/* One recommendation is visible; its reasoning remains one click away. */
.roxy-says { margin: 16px 0 24px; border-color: rgba(198, 185, 203, .16); background: linear-gradient(145deg, rgba(36, 31, 43, .85), rgba(17, 16, 25, .94)); box-shadow: none; }
.roxy-says::before { display: none; }
.roxy-says .roxy-says-head { display: flex; align-items: center; gap: 10px; }
.roxy-says-head h2 { margin: 0; color: var(--paper); font-size: 14px; font-weight: 500; }
.roxy-says .roxy-says-grid { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; margin-top: 16px; }
.roxy-says .roxy-says-focus { color: var(--paper); font-size: 18px; line-height: 1.6; font-weight: 500; text-wrap: pretty; }
.roxy-says-advice { color: var(--muted); font-size: 13px; line-height: 1.85; }
.roxy-says-grid .button { margin-top: 5px; }
.roxy-reason { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.roxy-reason > summary { width: fit-content; color: var(--muted); font-size: 11px; cursor: pointer; }
.roxy-reason[open] > summary { margin-bottom: 12px; }
.roxy-reason .roxy-says-summary, .roxy-reason .roxy-says-note { color: var(--muted); font-size: 12px; line-height: 1.8; }
.roxy-reason .roxy-says-note { margin-top: 10px; padding-top: 0; border: 0; }
.page-help { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.page-help > summary { width: fit-content; cursor: pointer; }
.page-help-content { max-width: 560px; padding: 16px 0 4px; font-size: 12px; line-height: 1.85; }
.page-help-content strong { color: var(--paper); font-weight: 500; }
.page-help-content p { margin: 8px 0; }
.page-help-content ul { padding-left: 18px; margin: 8px 0; }
.page-help-content li { margin: 6px 0; }

/* The conversation keeps its writing space until an attachment needs attention. */
.chat-page { display: flex; flex-direction: column; height: 100dvh; }
.chat-header { position: relative; flex: 0 0 auto; margin-bottom: 16px; }
.chat-heading { display: flex; gap: 12px; align-items: center; min-width: 0; }
.chat-header h1 { font-size: clamp(20px, 2.5vw, 26px); font-weight: 500; letter-spacing: -.025em; }
.chat-header .roxy-avatar { width: 42px; height: 42px; }
.quick-prompts { flex: 0 0 auto; }
.message-list { flex: 1 1 auto; min-height: 0; }
.chat-info { flex: 0 0 auto; position: relative; }
.chat-info > summary { display: grid; width: 38px; height: 38px; place-items: center; list-style: none; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 22px; cursor: pointer; }
.chat-info > summary::-webkit-details-marker { display: none; }
.chat-info-content { position: absolute; z-index: 45; top: 46px; right: 0; width: min(300px, calc(100vw - 32px)); padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #1a1722; box-shadow: var(--shadow); font-size: 12px; color: var(--muted); }
.chat-info-content p { margin-bottom: 12px; }
.chat-info-content { max-height: calc(100dvh - 110px); overflow-y: auto; }
.chat-info-content small { display: block; font-size: 11px; overflow-wrap: anywhere; }
.chat-info-content .page-help { margin-top: 14px; }
.chat-welcome .roxy-avatar { width: 72px; height: 72px; margin-bottom: 24px; }
.chat-welcome h2 { font-size: 24px; font-weight: 500; }
.chat-welcome p { font-size: 14px; }
.message-mentor { border-left-width: 2px; border-left-color: rgba(231, 199, 140, .45); }
.message-draft .message-content:empty::after { content: none; }
.message-meta time { font-size: 10px; }
.message-followup { background: rgba(231, 199, 140, .045); border-color: rgba(231, 199, 140, .18); }
.composer { flex: 0 0 auto; padding: 10px; border-color: rgba(231, 199, 140, .24); box-shadow: 0 12px 32px rgba(0, 0, 0, .16); }
.mentor-status, .draft-restore { flex: 0 0 auto; }
.composer textarea { min-height: 38px; }
.upload-button { position: relative; }
.upload-button input { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-button:focus-within { outline: 2px solid var(--gold-1); outline-offset: 3px; }
.upload-privacy-note, .upload-privacy-consent { line-height: 1.7; }

@media (max-width: 850px) {
  .login-story { gap: 30px; padding-bottom: 28px; }
  .login-story-copy { margin: 0; padding-right: 58px; }
  .login-key-art { width: 122px; top: 112px; right: 0; margin: 0; }
  .login-brand .brand-symbol { width: 44px; height: 44px; }
}
@media (max-width: 760px) {
  .chat-page { height: calc(100dvh - 112px); }
  .chat-header { gap: 10px; }
  .chat-heading { gap: 9px; }
  .chat-header .roxy-avatar { width: 34px; height: 34px; }
  .chat-header h1 { font-size: 20px; }
  .mobile-bar { border-color: rgba(231, 199, 140, .18); }
  .roxy-says .roxy-says-focus { font-size: 17px; }
  .roxy-says .roxy-says-grid { gap: 9px; }
}
