:root {
  --paper: oklch(94.8% 0.008 85);
  --paper-deep: oklch(91.5% 0.014 82);
  --paper-soft: oklch(97.6% 0.006 85);
  --ink: oklch(18.5% 0.018 255);
  --ink-soft: oklch(39% 0.025 255);
  --navy: oklch(48% 0.075 255);
  --navy-dark: oklch(34% 0.06 255);
  --blue-wash: oklch(91% 0.035 250);
  --red: oklch(50% 0.17 25);
  --line: oklch(82% 0.018 250);
  --white-glass: rgba(248, 249, 250, 0.72);
  --shadow: 0 24px 70px rgba(5, 10, 20, 0.2);
  --focus: oklch(67% 0.16 255);
  --radius: 20px;
  --sidebar-width: 274px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  overflow-x: hidden;
}

button,
textarea,
select,
input {
  font: inherit;
}

button,
a,
select,
label[for] {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:not(:disabled),
select:not(:disabled),
label[for] {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Login */
.login-page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  color: #fff;
  background: #101722;
  font-family: Aptos, Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.login-backdrop,
.login-backdrop::after {
  position: fixed;
  inset: 0;
}

.login-backdrop {
  background: #111a28;
}

.login-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 38%;
  filter: saturate(0.7) contrast(1.04);
}

.login-backdrop::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 12, 21, 0.98) 0%, rgba(7, 12, 21, 0.9) 28%, rgba(7, 12, 21, 0.55) 53%, rgba(7, 12, 21, 0.08) 78%),
    linear-gradient(0deg, rgba(5, 9, 15, 0.48), transparent 42%);
}

.login-header,
.login-footer,
.login-main {
  position: relative;
  z-index: 1;
}

.login-header {
  display: flex;
  align-items: center;
  gap: 25px;
  min-height: 104px;
  padding: 22px clamp(24px, 5vw, 76px);
}

.askroan-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.sifa-logo {
  position: relative;
  display: block;
  width: 202px;
  height: 58px;
  flex-shrink: 0;
  overflow: hidden;
}

.sifa-logo img {
  /* Trim only the supplied square file's transparent margins. */
  position: absolute;
  top: -97px;
  left: -26px;
  width: 250px;
  height: auto;
  max-width: none;
}

.login-product {
  font-size: 1.25rem;
  font-weight: 650;
}

.login-main {
  display: flex;
  align-items: center;
  padding: 28px clamp(24px, 7vw, 108px) 48px;
}

.login-card {
  position: relative;
  isolation: isolate;
  width: min(100%, 460px);
  padding: 28px 30px;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: rgba(226, 234, 244, 0.075);
  box-shadow: 0 18px 50px rgba(5, 10, 20, 0.16);
  backdrop-filter: blur(22px) saturate(115%);
  -webkit-backdrop-filter: blur(22px) saturate(115%);
}

.entry-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.entry-tabs button {
  min-height: 42px;
  padding: 9px 20px;
  border: 0;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font-weight: 650;
  font-size: 0.88rem;
}

.entry-tabs button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.entry-tabs button[aria-selected="true"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.entry-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.entry-form label {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
}

.entry-form input {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
}

.eyebrow,
.panel-kicker,
.header-kicker,
.rail-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.login-card h1 {
  margin: 0 0 15px;
  font-family: inherit;
  font-size: 2.25rem;
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.login-intro {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  line-height: 1.6;
}

.service-context {
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.76rem;
}

.signin-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 11px 18px;
  border: 0;
  border-radius: 11px;
  color: #121925;
  background: #f4f3ef;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.signin-link:hover {
  transform: translateY(-2px);
  background: #fff;
}

.auth-ownership,
.login-note {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  line-height: 1.55;
}

.login-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 14px clamp(24px, 5vw, 76px);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.68rem;
  letter-spacing: 0;
}

.powered-logo {
  width: 148px;
  height: auto;
}

.privacy-copy {
  margin-left: auto;
  letter-spacing: 0;
}

/* Client shell */
.client-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--paper-soft);
}

.client-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
}

.sidebar {
  min-height: 0;  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 23px 17px 18px;
  border-right: 1px solid var(--line);
  background: var(--paper-deep);
}

.sidebar-top {
  padding: 0 7px;
}

.askroan-brand {
  color: var(--ink);
  letter-spacing: -0.01em;
}

.askroan-seal {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--navy-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 400;
}

.new-thread {
  width: 100%;
  margin-top: 27px;
  padding: 12px 14px;
  border: 1px solid var(--navy-dark);
  border-radius: 12px;
  color: #fff;
  background: var(--navy-dark);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: left;
  transition: background 160ms ease, transform 160ms ease;
}

.new-thread:hover {
  background: var(--navy);
  transform: translateY(-1px);
}

.new-thread span {
  margin-right: 5px;
  font-size: 1.05rem;
}

.conversation-navigation {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  margin-top: 29px;
  padding: 0 2px;
}

.rail-label {
  padding: 0 9px;
  color: var(--ink-soft);
}

.thread-list {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.thread-item {
  width: 100%;
  padding: 11px 10px;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: left; text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-item:hover,
.thread-item.selected {
  background: rgba(57, 77, 114, 0.12);
}

.thread-item.selected {
  color: var(--navy-dark);
  font-weight: 700;
}

.thread-list .empty {
  padding: 8px 10px;
  color: var(--ink-soft);
  font-size: 0.77rem;
  line-height: 1.55;
}

.sidebar-bottom {
  display: grid;
  gap: 5px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.rail-button {
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 0.8rem;
  text-align: left;
}

.rail-button:hover {
  background: rgba(57, 77, 114, 0.1);
}

.rail-button span {
  display: inline-block;
  width: 22px;
}

.rail-disclosure {
  margin: 12px 8px 0;
  color: var(--ink-soft);
  font-size: 0.65rem;
  line-height: 1.5;
}

.chat-main {
  min-height: 0;  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  height: 100%;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.94), transparent 38%),
    var(--paper-soft);
}

.chat-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 13px clamp(18px, 3.2vw, 48px);
  border-bottom: 1px solid rgba(112, 121, 134, 0.18);
  background: rgba(247, 248, 248, 0.82);
  backdrop-filter: blur(16px);
}

.header-title-group,
.header-actions,
.country-control {
  display: flex;
  align-items: center;
}

.header-title-group {
  gap: 12px;
}

.header-kicker {
  color: var(--ink-soft);
  font-size: 0.56rem;
}

.chat-header h1 {
  margin: 1px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 400;
}

.header-actions {
  gap: 10px;
}

.country-control {
  gap: 7px;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.65);
}

.country-symbol {
  color: var(--navy);
}

.country-control select {
  max-width: 130px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 650;
}

.voice-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--navy);
  border-radius: 11px;
  color: var(--navy-dark);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
}

.voice-button:not(:disabled):hover {
  background: var(--blue-wash);
}

.voice-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.icon-button,
.menu-toggle {
  display: inline-grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 1.1rem;
}

.icon-button:hover,
.menu-toggle:hover {
  background: #fff;
}

.menu-toggle {
  display: none;
}

.messages {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 32px clamp(18px, 7vw, 110px) 48px;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.welcome {
  width: min(100%, 720px);
  margin: auto;
  padding: 36px 0 26px;
  text-align: center;
}

.welcome-portrait {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 8px 24px rgba(18, 27, 42, 0.17);
}

.welcome h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3.1vw, 2.65rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.welcome > p {
  max-width: 590px;
  margin: 13px auto 25px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.prompt-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.prompt-suggestions button {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy-dark);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.prompt-suggestions button:hover {
  transform: translateY(-1px);
  border-color: var(--navy);
  background: var(--blue-wash);
}

.message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: min(100%, 860px);
  margin: 0 auto 26px;
}

.message.user {
  align-items: flex-end;
  justify-content: flex-end;
}

.message-content {
  max-width: min(78%, 690px);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.93rem;
  line-height: 1.7;
}

.message.user .message-content {
  padding: 12px 17px;
  border-radius: 19px 19px 5px 19px;
  background: var(--blue-wash);
  box-shadow: inset 0 0 0 1px rgba(57, 77, 114, 0.09);
}

.message.assistant .message-content {
  max-width: 100%;
  padding-top: 3px;
}

.message-content a,
.document-link {
  color: var(--navy-dark);
  text-underline-offset: 3px;
}

.citation {
  display: inline-block;
  max-width: 100%;
  text-align: left;
  overflow-wrap: anywhere;
  padding: 7px 10px;
  margin: 3px 2px 0 4px;
  padding: 1px 5px;
  border: 1px solid rgba(57, 77, 114, 0.35);
  border-radius: 5px;
  color: var(--navy-dark);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
  vertical-align: super;
}

.composer-wrap {
  position: relative;
  z-index: 6;
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 10px clamp(18px, 4vw, 42px) 15px;
  background: linear-gradient(0deg, var(--paper-soft) 68%, transparent);
}

.client-status {
  min-height: 22px;
  padding: 0 4px 5px;
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.client-status:empty {
  display: none;
}

.composer {
  padding: 10px 11px 9px 16px;
  border: 1px solid rgba(92, 105, 125, 0.28);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 36px rgba(28, 39, 56, 0.1);
  backdrop-filter: blur(18px);
}

.composer:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(57, 77, 114, 0.12), 0 12px 36px rgba(28, 39, 56, 0.12);
}

.composer textarea {
  display: block;
  width: 100%;
  min-height: 28px;
  max-height: 160px;
  padding: 4px 2px;
  resize: none;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  line-height: 1.45;
}

.composer textarea::placeholder {
  color: #69717e;
}

.composer-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 33px;
}

.attachment-label {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.attachment-label:hover,
.attachment-label:focus-within {
  color: var(--navy-dark);
  background: var(--blue-wash);
}

.composer-hint,
.companion-note {
  color: var(--ink-soft);
  font-size: 0.64rem;
}

.composer-hint {
  flex: 1;
}

.send-button {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--navy-dark);
  font-size: 1.15rem;
}

.companion-note {
  margin: 7px 0 0;
  text-align: center;
}

/* Evidence and documents */
.detail-panel {
  position: fixed;
  z-index: 15;
  top: 74px;
  right: 0;
  bottom: 0;
  width: min(92vw, 400px);
  padding: 25px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: rgba(244, 246, 247, 0.95);
  box-shadow: -18px 0 50px rgba(20, 29, 43, 0.12);
  backdrop-filter: blur(18px);
}

.detail-heading,
.voice-session-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.panel-kicker {
  color: var(--ink-soft);
  font-size: 0.57rem;
}

.detail-heading h2,
.voice-session-heading h2 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 400;
}

.evidence-content,
.document-list {
  display: grid;
  gap: 12px;
  margin-top: 25px;
}

.citation + .citation {
  margin-top: 8px;
}

.document-link {
  display: block;
  padding: 14px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 0.82rem;
  line-height: 1.5;
  text-decoration: none;
}

.document-list .empty,
.evidence-content .empty {
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* Live voice */
.voice-session {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  width: min(calc(100vw - 48px), 390px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 22px;
  color: #f8f9fb;
  background: rgba(25, 34, 49, 0.9);
  box-shadow: 0 24px 70px rgba(5, 10, 20, 0.36), inset 0 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px);
}

.voice-session .panel-kicker,
.voice-status {
  color: rgba(255, 255, 255, 0.7);
}

.voice-session .icon-button {
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.voice-status {
  min-height: 44px;
  margin: 22px 0 15px;
  font-size: 0.82rem;
  line-height: 1.55;
}

.voice-controls {
  display: flex;
  gap: 9px;
}

.voice-controls button {
  flex: 1;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
}

.voice-controls .voice-start:not(:disabled) {
  border-color: #fff;
  color: var(--ink);
  background: #fff;
}

.voice-help {
  display: inline-block;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  :root {
    --sidebar-width: min(84vw, 300px);
  }

  .client-shell {
    display: block;
  }

  .sidebar {
  min-height: 0;    position: fixed;
    z-index: 20;
    inset: 0 auto 0 0;
    transform: translateX(-102%);
    box-shadow: 18px 0 60px rgba(10, 17, 28, 0.22);
    transition: transform 220ms ease;
  }

  .sidebar-open .sidebar {
  min-height: 0;    transform: translateX(0);
  }

  .menu-toggle {
    display: inline-grid;
  }

  .chat-header {
    min-height: 66px;
    padding: 10px 14px;
  }

  .header-kicker {
    display: none;
  }

  .chat-header h1 {
    margin: 0;
    font-size: 1.12rem;
  }

  .header-actions {
    gap: 6px;
  }

  .country-control {
    min-height: 38px;
    padding: 0 8px;
  }

  .country-control select {
    max-width: 78px;
    font-size: 0.72rem;
  }

  .voice-button {
    width: 38px;
    min-height: 38px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .voice-dot {
    width: 9px;
    height: 9px;
  }

  .messages {
    padding: 20px 14px 32px;
  }

  .welcome {
    padding-top: 20px;
  }

  .prompt-suggestions {
    align-items: stretch;
    flex-direction: column;
  }

  .prompt-suggestions button {
    border-radius: 12px;
    text-align: left;
  }

  .message-content {
    max-width: 91%;
  }

  .composer-wrap {
    padding: 8px 10px 10px;
  }

  .composer {
    border-radius: 17px;
  }

  .composer-hint,
  .companion-note {
    display: none;
  }

  .detail-panel {
    top: 66px;
    width: 100%;
  }

  .voice-session {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
}

@media (max-width: 430px) {
  .login-backdrop img {
    object-position: 69% center;
  }

  .login-backdrop::after {
    background: linear-gradient(180deg, rgba(7, 12, 21, 0.72) 0%, rgba(7, 12, 21, 0.45) 30%, rgba(7, 12, 21, 0.95) 55%, #070c15 100%);
  }

  .login-header {
    min-height: 90px;
    gap: 18px;
    padding: 20px 18px;
  }

  .sifa-logo {
    width: 176px;
    height: 48px;
  }

  .sifa-logo img {
    width: 220px;
    top: -86px;
    left: -22px;
  }

  .login-product {
    font-size: 1.1rem;
  }

  .login-main {
    align-items: flex-end;
    padding: 24px 14px 30px;
  }

  .login-card {
    padding: 24px;
    border-radius: 20px;
  }

  .login-card h1 {
    font-size: 2rem;
  }

  .login-intro {
    font-size: 0.9rem;
  }

  .login-footer {
    min-height: 58px;
    padding: 12px 18px;
  }

  .privacy-copy {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Keep the compact navigation fully off canvas when closed. */
#close-navigation { display: none; }
@media (max-width: 760px) {
  .sidebar { width: var(--sidebar-width); visibility: hidden; }
  .sidebar-open .sidebar { visibility: visible; }
  #close-navigation { display: block; margin: 0 0 14px auto; background: transparent; border: 0; padding: 8px; }
  .composer-actions { display: flex; }
  .send-button { margin-left: auto; }
}

.particle-portrait { width: 210px; margin: 0 auto 20px; background: #14191e; border-radius: 38% 38% 24% 24%; overflow: hidden; box-shadow: 0 12px 35px #17233120; }
#roan-particles { display: block; width: 100%; aspect-ratio: 280 / 300; }
#portrait-motion { display: block; width: 100%; border: 0; background: transparent; color: #b9cbd6; padding: 8px 4px 12px; font-size: 10px; }
.welcome { padding-top: 8px; }
@media (max-height: 800px), (max-width: 760px) { .particle-portrait { width: 150px; margin-bottom: 14px; } }

/* Finance card (askroan/finance): compact live figures under an answer. */
.finance-card { margin-top: 12px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; }
.finance-card h3 { margin: 0 0 2px; font-size: 1rem; }
.finance-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 10px 0; }
.finance-tile { padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.05); }
.finance-tile dt { font-size: .78rem; opacity: .75; }
.finance-tile dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.finance-card td { font-variant-numeric: tabular-nums; }
