/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

[hidden] {
  display: none !important;
}

a.btn {
  text-decoration: none;
}

.container:has(.landing) {
  margin-top: 2rem;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  margin-top: 7rem;
  padding: 0 1.25rem;
  display: flex;
}

.page {
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .page {
    width: 66.6667%;
  }
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
}

.alert {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
}

.alert-error {
  background-color: #fef2f2;
  color: #ef4444;
}

.alert-success {
  background-color: #f0fdf4;
  color: #22c55e;
}

.alert-warning {
  display: block;
  margin-top: 1.25rem;
  background-color: #fefce8;
  color: #a16207;
}

.form {
  display: contents;
}

.field {
  margin: 1.25rem 0;
}

.text-input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #9ca3af;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.text-input:focus {
  outline: 2px solid #2563eb;
}

.btn {
  display: inline-block;
  text-align: center;
  padding: 0.625rem 0.875rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: #2563eb;
  color: #fff;
}

.btn-primary:hover {
  background-color: #3b82f6;
}

.btn-link {
  display: inline;
  background: transparent;
  padding: 0;
  border: none;
  cursor: pointer;
  color: #dc2626;
  text-decoration: underline;
  font: inherit;
}

.btn-link:hover {
  text-decoration: none;
}

.link {
  color: #374151;
  text-decoration: underline;
}

.link:hover {
  text-decoration: none;
}

.text-muted {
  color: #6b7280;
}

.text-small {
  font-size: 0.875rem;
}

.field-group {
  margin: 1.5rem 0;
  border: none;
  padding: 0;
}

.field-group legend {
  font-size: 1.125rem;
  font-weight: 600;
}

.option-grid {
  display: grid;
  gap: 1rem;
  margin-top: 0.75rem;
}

.option-grid.cols-2 {
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .option-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .option-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.option-card {
  display: block;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 1rem;
  cursor: pointer;
}

.option-card:has(:checked) {
  border-color: #2563eb;
  background-color: #eff6ff;
}

.option-card input {
  margin-right: 0.5rem;
}

.option-title {
  font-weight: 500;
}

.option-sub {
  font-size: 0.875rem;
  color: #4b5563;
  margin-top: 0.25rem;
}

.consent-box {
  margin: 1.5rem 0;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 1rem;
  font-size: 0.875rem;
  color: #374151;
}

.actions-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .actions-row {
    flex-direction: row;
    align-items: center;
  }
}

.session-list {
  margin-top: 1.5rem;
  list-style: none;
  padding: 0;
}

.session-list li {
  padding: 1rem 0;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.session-list li:first-child {
  border-top: none;
}

.helper-text {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.lede {
  margin-top: 0.5rem;
  color: #6b7280;
}

.blurb {
  margin-top: 2rem;
  color: #6b7280;
}

.btn-link-muted {
  color: #374151;
}

.link-row {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
}

.section-title {
  margin-top: 2.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.settings-list {
  margin-top: 1.5rem;
  list-style: none;
  padding: 0;
}

.settings-list li {
  padding: 1rem 0;
  border-top: 1px solid #e5e7eb;
}

.settings-list li:first-child {
  border-top: none;
}

.conversation-page {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 7rem);
}

.conversation-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.conversation-header h1 {
  margin: 0;
}

.conversation-header .lede {
  margin: 0.25rem 0 0;
}

.composer-dock .alert {
  margin-bottom: 0.5rem;
}

.header-links {
  margin-top: 0.75rem;
  align-items: center;
}

.history {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1rem;
}

.empty-history,
.earlier-link {
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
  margin: 1rem 0;
}

.day-separator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0.5rem;
  color: #6b7280;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.day-separator::before,
.day-separator::after {
  content: "";
  flex: 1;
  border-top: 1px solid #e5e7eb;
}

.message {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.message-user {
  align-self: flex-end;
  align-items: flex-end;
}

.message-assistant {
  align-self: flex-start;
  align-items: flex-start;
}

.bubble {
  margin: 0;
  padding: 0.625rem 0.875rem;
  border-radius: 1.125rem;
  font-size: 1.0625rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message-user .bubble {
  background-color: #2563eb;
  color: #fff;
  border-bottom-right-radius: 0.375rem;
}

.message-assistant .bubble {
  background-color: #f3f4f6;
  color: #111827;
  border-bottom-left-radius: 0.375rem;
}

.message-meta {
  margin: 0.125rem 0.375rem 0;
  font-size: 0.75rem;
  color: #9ca3af;
}

.typing .bubble {
  color: #6b7280;
  font-style: italic;
}

.typing-dots {
  display: inline-flex;
  gap: 3px;
  margin-right: 0.25rem;
  vertical-align: middle;
}

.typing-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ca3af;
  animation: typing-bounce 1.2s infinite ease-in-out;
}

.typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.typing-dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.reply-failed {
  align-self: flex-start;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem 0.875rem;
  border-radius: 0.75rem;
  background-color: #fef2f2;
  color: #b91c1c;
  font-size: 0.9375rem;
}

.composer-dock {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 0.75rem 0 1rem;
  border-top: 1px solid #e5e7eb;
}

.composer-input {
  margin-top: 0;
  resize: vertical;
  font: inherit;
  font-size: 1.0625rem;
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.composer-blocked {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}

.composer-blocked p {
  margin: 0;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.memory-toggle {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
}

.memory-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.memory-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid #e5e7eb;
}

.memory-statement {
  margin: 0;
  font-size: 1.0625rem;
}

.memory-actions {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.875rem;
  white-space: nowrap;
}

.danger-zone {
  margin-top: 2.5rem;
  padding: 1rem;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
}

.danger-zone .section-title {
  margin-top: 0;
}

.btn-danger {
  background-color: #dc2626;
  color: #fff;
}

.call-start {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.call-start .alert {
  margin: 0;
}

.call-start form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.btn-call {
  background-color: #16a34a;
  color: #fff;
  font-size: 1.0625rem;
  padding: 0.75rem 1.25rem;
}

.inline-form {
  display: inline;
}

.call-page {
  text-align: center;
}

.call-label {
  margin: 0;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8125rem;
}

.call-status {
  font-size: 1.25rem;
  margin: 0.5rem 0;
}

.call-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.call-controls .btn {
  min-width: 8rem;
  font-size: 1.0625rem;
  padding: 0.875rem 1.25rem;
}

.call-mute {
  background-color: #e5e7eb;
  color: #111827;
}

.call-mute[aria-pressed="true"] {
  background-color: #111827;
  color: #fff;
}

.simulated-mic {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border: 1px dashed #d1d5db;
  border-radius: 0.5rem;
}

.simulated-mic .composer {
  display: flex;
  gap: 0.5rem;
}

.simulated-mic .text-input {
  margin-top: 0;
}

.call-transcript {
  text-align: left;
  margin-top: 1rem;
}

.usage-card {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
}

.usage-card .section-title {
  margin-top: 0;
}

.usage-list {
  padding-left: 1.25rem;
  line-height: 1.8;
}

.plan-price {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0.25rem 0;
}

.fake-provider {
  border: 2px dashed #a78bfa;
  border-radius: 1rem;
  padding: 1.5rem;
}

.fake-banner {
  display: inline-block;
  background: #ede9fe;
  color: #5b21b6;
  font-size: 0.8125rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
}

.fake-card-row {
  display: flex;
  gap: 0.5rem;
}

.export-row {
  margin: 0.5rem 0;
}

.report-link {
  color: inherit;
}

.reported-message {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid #d1d5db;
  background: #f9fafb;
  font-style: italic;
}

.share-consent {
  align-items: flex-start;
  margin: 1rem 0;
  font-size: 0.9375rem;
}

body.admin {
  font-family: -apple-system, system-ui, sans-serif;
  margin: 0;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: #111827;
  color: #f9fafb;
  font-size: 0.875rem;
}

.admin-nav a {
  color: #d1d5db;
}

.admin-nav-right {
  margin-left: auto;
}

.admin-nav .btn-link-muted {
  color: #d1d5db;
}

.admin-main {
  padding: 1.5rem;
  max-width: 1200px;
}

.admin-auth {
  max-width: 420px;
  margin: 6rem auto;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.admin-stat {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
}

.admin-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.admin-stat-label {
  font-size: 0.8125rem;
  color: #6b7280;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table td,
.admin-table th {
  text-align: left;
  padding: 0.375rem 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

.admin-inline-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.admin-inline-form .text-input {
  margin-top: 0;
  max-width: 16rem;
}

.admin-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}

.admin-excerpt {
  white-space: pre-wrap;
  background: #f9fafb;
  padding: 0.75rem;
  border-radius: 0.5rem;
}

.landing {
  width: 100%;
}

.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.landing-nav .link {
  margin-left: 1rem;
}

.landing-brand {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #b45309;
}

.landing-hero {
  margin: 3rem 0;
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #fff7ed, #fde68a 60%, #fdba74);
}

.landing-hero h1 {
  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: 1.1;
  margin: 0;
}

.landing-lede {
  font-size: 1.375rem;
  max-width: 36rem;
  color: #374151;
}

.landing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-large {
  font-size: 1.125rem;
  padding: 0.875rem 1.5rem;
}

.btn-secondary {
  background: #fff;
  color: #111827;
  border: 1px solid #d1d5db;
}

.companion-card {
  text-align: center;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
}

.companion-card h3 {
  font-family: Georgia, serif;
  margin: 0.5rem 0 0.25rem;
}

.landing-points {
  display: grid;
  gap: 1.5rem;
  margin: 3rem 0;
}

@media (min-width: 768px) {
  .landing-points {
    grid-template-columns: repeat(3, 1fr);
  }
}

.landing-footer {
  margin: 3rem 0;
  color: #6b7280;
  font-size: 0.875rem;
}

.sample-conversation {
  margin: 1.5rem 0;
}

.companion-avatar {
  display: block;
  margin: 0 auto;
  border-radius: 50%;
}

.receipt {
  white-space: nowrap;
}

.receipt-ticks {
  letter-spacing: -0.2em;
  margin-right: 0.25em;
}

.receipt-read {
  color: #2563eb;
}

/* Sunrise: warm surfaces, generous controls, and a consistent reading rhythm. */
:root {
  --ink: #293d35;
  --muted: #626b60;
  --paper: #faf8f2;
  --line: #dedfd3;
  --green: #355846;
  --accent: #a75834;
}
* { box-sizing: border-box; }
body.sunrise-app { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.sunrise-app h1, .sunrise-app h2, .sunrise-app h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.2; text-wrap: balance; }
.sunrise-app h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin: 0 0 1rem; letter-spacing: -.035em; }
.sunrise-app h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.sunrise-app h3 { font-size: 1.45rem; }
.sunrise-app a { text-underline-offset: 4px; }
.sunrise-app :focus-visible { outline: 3px solid #a75834; outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 100; padding: .75rem 1rem; background: white; color: var(--ink); }
.skip-link:focus { top: 1rem; }
.site-header { max-width: 1200px; margin: auto; padding: 1.35rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font: 2rem Georgia, serif; }
.brand-sun { color: var(--accent); font-size: 2.7rem; line-height: 1; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.2rem; }
.site-nav a { padding: .5rem .25rem; color: var(--ink); text-decoration: none; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.sunrise-app .container { display: block; max-width: 1200px; margin: 3.5rem auto; padding: 0 2rem; }
.sunrise-app .page { width: 100%; max-width: 760px; padding: 2.5rem; border: 1px solid var(--line); border-radius: 20px; background: #fffefa; box-shadow: 0 8px 30px #293d3505; }
.sunrise-app .text-muted, .sunrise-app .lede, .sunrise-app .helper-text, .sunrise-app .blurb, .sunrise-app .option-sub { color: var(--muted); }
.sunrise-app .link { color: var(--green); }
.sunrise-app .field label { font-size: .95rem; font-weight: 600; }
.sunrise-app .text-input { min-height: 50px; padding: .8rem 1rem; background: #fff; border: 1px solid #a7afa3; border-radius: 10px; color: var(--ink); font: inherit; box-shadow: none; }
.sunrise-app .text-input:focus { outline: 2px solid var(--green); outline-offset: 2px; }
.sunrise-app .btn { min-height: 48px; padding: .75rem 1.25rem; border-radius: 9px; font: 600 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; transition: background-color .15s, box-shadow .15s; }
.sunrise-app .btn-primary, .sunrise-app .btn-call { background: var(--green); color: white; }
.sunrise-app .btn-primary:hover, .sunrise-app .btn-call:hover { background: #244331; box-shadow: 0 3px 10px #24433120; }
.sunrise-app .btn-secondary { background: #fffefa; border-color: #a7afa3; color: var(--ink); }
.sunrise-app .btn:disabled { opacity: .55; cursor: wait; }
.sunrise-app .btn-danger { background: #a5362e; }
.sunrise-app .btn-link { min-height: 44px; }
.sunrise-app .text-small, .sunrise-app .helper-text, .sunrise-app .option-sub { font-size: .9375rem; }
.sunrise-app .alert { display: block; border-radius: 10px; padding: .85rem 1rem; }
.sunrise-app .alert-success { color: #265339; background: #edf3e8; }
.sunrise-app .alert-error { color: #9a302a; background: #fff0ea; }
.sunrise-app .alert-warning { color: #765420; background: #fff4d9; }
.sunrise-app .option-card, .sunrise-app .consent-box, .sunrise-app .memory-toggle, .sunrise-app .usage-card { border-color: var(--line); border-radius: 12px; padding: 1.25rem; }
.sunrise-app .option-card:has(:checked) { background: #edf2e8; border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.sunrise-app input[type="checkbox"], .sunrise-app input[type="radio"] { width: 20px; height: 20px; accent-color: var(--green); flex-shrink: 0; }
.sunrise-app .settings-list li { padding: 1.2rem 0; border-color: var(--line); }
.sunrise-app .settings-list p { margin: .3rem 0 0; }
.sunrise-app .settings-list .option-title { font-size: 1.1rem; font-weight: 600; }
.sunrise-app .link-row { flex-wrap: wrap; }
.sunrise-app .landing-hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 3rem; margin: 0 0 5rem; padding: 2rem 0; background: none; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.25rem; }
.sunrise-app .landing-hero h1 { font-size: clamp(2.7rem, 4.4vw, 3.8rem); line-height: 1.12; }
.landing-hero h1 em { color: var(--accent); font-weight: 400; }
.sunrise-app .landing-lede { font-size: 1.12rem; color: var(--muted); max-width: 30rem; margin: 1.5rem 0; }
.sunrise-app .landing-cta { align-items: center; gap: 1rem 1.5rem; }
.hero-secondary { color: var(--green); font-size: .95rem; }
.hero-note { color: var(--muted); font-size: .8rem; margin-top: 1rem; }
.hero-preview { padding: 2rem; background: #f0eee3; border: 1px solid #e1dfd1; border-radius: 24px; box-shadow: 0 18px 45px #414b3110; }
.preview-heading { display: flex; gap: .8rem; align-items: center; }
.preview-heading strong { font-weight: 600; font-size: .95rem; }
.preview-heading span:not(.preview-sun) { display: block; font-size: .8rem; color: var(--muted); }
.preview-sun { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #e7d6b8; color: #9d5936; font-size: 2rem; }
.preview-time { font-size: .75rem; text-align: center; color: var(--muted); margin: 1.5rem 0; }
.preview-bubble { max-width: 90%; background: #fffefa; padding: .9rem 1.1rem; border-radius: 14px 14px 14px 3px; font-size: .95rem; line-height: 1.6; }
.preview-user { margin-left: auto; background: var(--green); color: white; border-radius: 14px 14px 3px 14px; }
.preview-link { display: block; text-align: center; margin-top: 1.6rem; color: var(--green); font-size: .85rem; }
.landing-companions { text-align: center; }
.landing-companions h2 { margin: 0 auto 1rem; }
.section-intro { max-width: 560px; margin: 0 auto 2rem; color: var(--muted); }
.sunrise-app .companion-card { background: #fffefa; border-color: var(--line); padding: 2rem 1.5rem; border-radius: 16px; }
.sunrise-app .companion-card h3 { margin-top: 1.2rem; }
.companion-card p { color: var(--muted); font-size: .95rem; }
.sunrise-app .landing-points { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2rem 0; gap: 2.5rem; margin: 4rem 0 2rem; }
.landing-points p { font-size: .95rem; color: var(--muted); }
.sunrise-app .landing-footer { margin: 2rem 0; text-align: center; }
.sunrise-app .conversation-page { max-width: 880px; min-height: calc(100dvh - 190px); padding: 0 2rem; }
.sunrise-app .conversation-header { background: #fffefa; padding: 1.4rem 0 1rem; gap: 1rem; border-color: var(--line); }
.companion-identity { display: flex; align-items: center; gap: 1rem; }
.sunrise-app .conversation-header h1 { font-size: 1.8rem; }
.sunrise-app .conversation-header .lede { font-size: .8rem; }
.companion-label { color: var(--muted); font-size: .75rem; }
.sunrise-app .conversation-header .header-links { margin: 0; font-size: .8rem; }
.sunrise-app .history { gap: .8rem; padding: 1rem 0 2rem; }
.sunrise-app .message-user .bubble { background: var(--green); }
.sunrise-app .message-assistant .bubble { background: #f0f1e9; color: var(--ink); }
.sunrise-app .bubble { padding: .9rem 1.15rem; line-height: 1.6; }
.sunrise-app .message-meta { color: var(--muted); font-size: .75rem; }
.sunrise-app .receipt-read { color: var(--green); }
.sunrise-app .composer-dock { background: #fffefa; padding: 1rem 0 max(1rem, env(safe-area-inset-bottom)); border-color: var(--line); }
.sunrise-app .empty-history { padding: 3rem 1rem; font-size: 1rem; }
.sunrise-app .call-page { background: #f0f2e9; }
@media (max-width: 760px) {
  .site-header { padding: 1rem 1.25rem; flex-wrap: wrap; }
  .brand { font-size: 1.7rem; }
  .site-nav { gap: .25rem .9rem; }
  .site-nav a { font-size: .85rem; }
  .sunrise-app .container { margin: 1.5rem auto; padding: 0 1.25rem; }
  .sunrise-app .page { padding: 1.5rem; }
  .sunrise-app .landing-hero { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3rem; padding-top: 1rem; }
  .hero-preview { padding: 1.5rem; }
  .sunrise-app .conversation-page { padding: 0 1rem; min-height: calc(100dvh - 160px); }
  .sunrise-app .conversation-header { position: static; }
  .sunrise-app .message { max-width: 92%; }
  .sunrise-app .memory-list li, .sunrise-app .session-list li { flex-wrap: wrap; }
  .sunrise-app .composer-actions { gap: 1rem; }
  .sunrise-app .call-controls { flex-wrap: wrap; }
  .sunrise-app .landing-points { gap: .5rem; margin-top: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Finishing details shared by the account, conversation, and settings flows. */
.sunrise-app .auth-page { max-width: 540px; padding: 2.75rem; }
.sunrise-app .auth-page h1 { font-size: 2.5rem; }
.sunrise-app .auth-page .actions-row { justify-content: space-between; }
.sunrise-app .auth-page .helper-text { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.sunrise-app .field { margin: 1.5rem 0; }
.sunrise-app .text-input::placeholder { color: #72796f; opacity: 1; }
.sunrise-app .btn-secondary:hover { background: #edf2e8; border-color: var(--green); }
.sunrise-app .btn-danger:hover { background: #822a24; }
.sunrise-app .option-card { transition: border-color .15s, background-color .15s; }
.sunrise-app .option-card:hover { border-color: var(--green); }
.sunrise-app .option-card:has(:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.companion-option .companion-avatar { margin: 0 0 1rem; }
.sunrise-app .settings-list { border-top: 1px solid var(--line); }
.sunrise-app .settings-list li { position: relative; padding-right: 2rem; }
.sunrise-app .settings-list li::after { content: "›"; position: absolute; right: .25rem; top: 1rem; font-size: 1.5rem; color: var(--muted); pointer-events: none; }
.sunrise-app .settings-list a::after { content: ""; position: absolute; inset: 0; }
.sunrise-app .settings-list li:hover { background: #f4f5ee; }
.settings-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 2rem; }
.sunrise-app .conversation-page { overflow-wrap: anywhere; }
.companion-identity .companion-avatar { flex-shrink: 0; }
.sunrise-app .empty-history h2 { margin: .5rem 0; }
.sunrise-app .empty-history p { max-width: 28rem; margin-left: auto; margin-right: auto; }
.sunrise-app .composer-input { min-height: 100px; max-height: 35dvh; }
.sunrise-app .link-row { align-items: center; }
.sunrise-app .memory-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.sunrise-app .checkbox-row { align-items: flex-start; }
.sunrise-app .checkbox-row input { margin-top: .3rem; }
.sunrise-app .consent-box { background: #f4f5ee; }
.sunrise-app .consent-box p { margin: 0; }
.sunrise-app .plan-card { background: #f0f2e9; border-color: #a7b59d; padding: 2rem; }
.sunrise-app .plan-price { font: 3rem/1.2 Georgia, serif; margin: 1rem 0; }
.sunrise-app .usage-list { padding-left: 1.3rem; }
.sunrise-app .usage-list li { padding: .35rem 0; }
.sunrise-app .alert ul { margin: 0; padding-left: 1.25rem; }
.sunrise-app .session-list li > *, .sunrise-app .memory-list li > * { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .site-header { gap: .5rem; }
  .site-nav { width: 100%; justify-content: space-between; gap: .25rem; }
  .site-nav a { font-size: .9rem; min-height: 44px; display: inline-flex; align-items: center; }
  .sunrise-app .container { padding: 0 1rem; }
  .sunrise-app .page, .sunrise-app .auth-page { padding: 1.5rem 1.25rem; border-radius: 14px; }
  .sunrise-app .conversation-page { padding: 0 1rem; }
  .sunrise-app .conversation-header .lede { font-size: .875rem; }
  .sunrise-app .landing-cta > .btn { width: 100%; }
  .sunrise-app .landing-cta { justify-content: center; }
  .sunrise-app .composer-actions .text-small { font-size: .875rem; }
  .sunrise-app .settings-footer { flex-wrap: wrap; }
  .sunrise-app .auth-page .actions-row > div:first-child, .sunrise-app .auth-page input[type="submit"] { width: 100%; }
}

/* Keep the quiet visual hierarchy usable on small screens and at high zoom. */
.sunrise-app .page > .lede { margin-bottom: 2rem; max-width: 60ch; }
.sunrise-app .page h2.section-title { font: 600 1.15rem/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.sunrise-app .field-group legend { color: var(--ink); }
.sunrise-app .onboarding-page { max-width: 880px; }
.sunrise-app .companion-option { display: flex; flex-wrap: wrap; align-content: flex-start; align-items: center; gap: .5rem; }
.sunrise-app .companion-option .companion-avatar { flex-basis: 100%; margin: 0 auto .75rem; }
.sunrise-app .companion-option .option-sub { flex-basis: 100%; margin-bottom: 0; }
.sunrise-app .companion-option input { margin: 0; }
.sunrise-app .conversation-header .header-links a { display: inline-flex; align-items: center; min-height: 44px; }
.sunrise-app .composer-hint { font-size: .8125rem; margin: .5rem 0 0; }
.sunrise-app .unsent-message { padding: 1rem; margin: .75rem 0; border: 1px solid var(--line); border-radius: 10px; }
.sunrise-app .unsent-message p { white-space: pre-wrap; overflow-wrap: anywhere; }
.sunrise-app .password-control { display: flex; align-items: center; position: relative; }
.sunrise-app .password-control .text-input { padding-right: 5rem; }
.sunrise-app .password-toggle { position: absolute; right: .4rem; top: .65rem; padding: .5rem .75rem; min-height: 44px; border: 0; border-radius: 6px; color: var(--green); background: transparent; font-family: inherit; font-size: .875rem; font-weight: 600; line-height: 1.5; cursor: pointer; }
.sunrise-app .password-toggle:hover { background: #edf2e8; }
.sunrise-app .step-note { display: inline-block; color: var(--muted); font-size: .875rem; margin: 0 0 1rem; }
.sunrise-app .auth-page .btn-primary { width: 100%; }
.sunrise-app .auth-page .actions-row > div:first-child { flex: 1; }
.sunrise-app .faq { border-top: 1px solid var(--line); margin-top: 2rem; }
.sunrise-app .faq p { max-width: 62ch; }
.sunrise-app .memory-list li, .sunrise-app .session-list li { gap: 1rem; }
.sunrise-app .danger-zone { background: #fff8f4; border-color: #e6bdb1; }
.sunrise-app .danger-zone p { color: #714e43; }
.sunrise-app .earlier-link a { display: inline-block; min-height: 44px; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.sunrise-app .earlier-link a:hover { background: #edf2e8; }
.sunrise-app .day-separator { color: var(--muted); }
.sunrise-app .option-card, .sunrise-app .settings-list, .sunrise-app .alert { overflow-wrap: anywhere; }
@media (pointer: coarse) { .keyboard-hint { display: none; } }
@media (max-width: 480px) {
  .sunrise-app .site-nav a[aria-current="page"] { background: #edf2e8; border-radius: 6px; padding-inline: .5rem; }
  .sunrise-app .conversation-page { border: 0; background: transparent; padding: 0; box-shadow: none; }
  .sunrise-app .conversation-header { background: transparent; }
  .sunrise-app .composer-dock { background: var(--paper); }
  .sunrise-app .composer-input { background: #fffefa; }
  .sunrise-app .onboarding-page .option-grid.cols-3 { gap: .75rem; }
  .sunrise-app .companion-option .companion-avatar { flex-basis: auto; margin: 0 .5rem 0 0; width: 56px; height: 56px; }
  .sunrise-app .companion-option .option-sub { margin-top: .5rem; }
  .sunrise-app .auth-page h1 { font-size: 2.1rem; }
}
.skip-link:not(:focus) { width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; }
.sunrise-app .conversation-header h1 { margin: 0; }
.sunrise-app .turbo-progress-bar { background: var(--green); }
