:root {
  color-scheme: light;
  --ink: #171a3a;
  --muted: #606681;
  --honey: #6f5aef;
  --honey-dark: #5540d8;
  --cream: #f7f7fb;
  --mint: #5dd6c0;
  --panel: rgba(255, 255, 255, 0.9);
  --line: rgba(23, 26, 58, 0.13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(111, 90, 239, 0.2), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(93, 214, 192, 0.18), transparent 28rem),
    linear-gradient(135deg, #f7f7fb 0%, #efedff 52%, #e8faf6 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.marketing-site { display: none; }
body.marketing-mode .marketing-site { display: block; }
body.marketing-mode > .app-header,
body.marketing-mode > .app-shell,
body.marketing-mode > .bottom-nav { display: none; }

.marketing-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  padding: 10px 0;
  background: rgba(247, 247, 251, .82);
  backdrop-filter: blur(18px);
}
.marketing-header nav { display: flex; gap: 28px; }
.marketing-header nav a { color: var(--ink); font-size: .9rem; font-weight: 750; text-decoration: none; }
.marketing-login { justify-self: end; min-height: 40px; }
.marketing-site main { overflow: hidden; }
.marketing-hero,
.marketing-section,
.marketing-cta,
.marketing-footer { width: min(1180px, calc(100% - 32px)); margin-left: auto; margin-right: auto; }

.marketing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
  gap: clamp(38px, 8vw, 96px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 72px 0 88px;
}
.marketing-hero-copy h1 { max-width: 760px; margin: 18px 0 24px; font-size: clamp(3.8rem, 8vw, 7.6rem); line-height: .88; letter-spacing: -.065em; }
.marketing-hero-copy > p { max-width: 680px; margin: 0; font-size: clamp(1.15rem, 2vw, 1.42rem); }
.marketing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.marketing-actions .primary, .marketing-actions .download-button, .marketing-cta .primary { min-height: 54px; padding: 0 26px; }
.marketing-link { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px; border-radius: 999px; text-decoration: none; font-weight: 800; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 28px; color: var(--muted); font-size: .8rem; font-weight: 700; }

.memory-preview {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 34px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 40px 100px rgba(60, 49, 132, .2);
  transform: rotate(1.4deg);
}
.memory-preview::before { content: ''; position: absolute; inset: -20% -30%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(111,90,239,.3), transparent 65%); }
.preview-top { display: flex; gap: 12px; align-items: center; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.preview-top div, .preview-line div { display: grid; gap: 3px; }
.preview-top small, .preview-line small { color: var(--muted); font-size: .75rem; }
.preview-line { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; padding: 13px; border-radius: 18px; background: white; }
.preview-line i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: #ece9ff; color: var(--honey-dark); font-style: normal; font-weight: 900; }
.memory-preview blockquote { margin: 2px 0 0; padding: 15px 18px; border-radius: 18px; background: var(--ink); color: white; font-size: .93rem; line-height: 1.5; }

.marketing-section { padding: 110px 0; }
.marketing-section h2, .marketing-cta h2 { max-width: 860px; margin: 12px 0 42px; font-size: clamp(2.5rem, 5.2vw, 5.4rem); line-height: .98; letter-spacing: -.045em; }
.pain-section { border-top: 1px solid var(--line); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.benefit-grid article, .vertical-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,.76); }
.benefit-grid b { color: var(--honey-dark); font-size: .8rem; letter-spacing: .1em; }
.benefit-grid h3, .vertical-grid h3 { margin: 34px 0 8px; font-size: 1.42rem; }
.benefit-grid p, .vertical-grid p { margin: 0; font-size: .98rem; }

.how-section { position: relative; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 60px; align-items: end; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { margin: 0 0 6px; }
.steps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 54px 0 0; padding: 0; list-style: none; }
.steps-grid li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 24px; border-radius: 24px; background: var(--ink); color: white; }
.steps-grid li > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; background: var(--honey); font-weight: 900; }
.steps-grid h3 { margin: 0 0 7px; }
.steps-grid p { margin: 0; color: #c9cae0; font-size: .94rem; }

.verticals-showcase { padding-top: 80px; }
.vertical-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 54px; }
.vertical-grid article { grid-column: span 2; min-height: 230px; }
.vertical-grid article:nth-child(4) { grid-column: 2 / span 2; }
.vertical-grid .featured { background: var(--honey); color: white; }
.vertical-grid article > span { color: var(--honey-dark); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.vertical-grid .featured > span, .vertical-grid .featured p { color: rgba(255,255,255,.78); }
.vertical-grid h3 { margin-top: 48px; }

.privacy-section { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; margin-top: 70px; padding: 70px; border-radius: 36px; background: var(--ink); color: white; }
.privacy-section h2 { margin-bottom: 0; color: white; }
.privacy-section .eyebrow { color: var(--mint); }
.privacy-copy p { color: #d7d8e7; }
.privacy-copy ul { display: grid; gap: 13px; margin: 24px 0 0; padding: 0; list-style: none; }
.privacy-copy li::before { content: '✓'; margin-right: 10px; color: var(--mint); font-weight: 900; }
.marketing-cta { padding: 130px 0; text-align: center; }
.marketing-cta h2 { margin-left: auto; margin-right: auto; }
.marketing-footer { display: flex; justify-content: space-between; padding: 28px 0 42px; border-top: 1px solid var(--line); }
.marketing-footer span { font-weight: 900; }
.marketing-footer small { color: var(--muted); }

button, input, textarea, select {
  font: inherit;
  max-width: 100%;
}

select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--ink);
}

.vertical-panel { display: grid; gap: 14px; margin-bottom: 18px; }
.vertical-panel h3 { margin: 0; }
.vertical-panel p { margin: 0; }
.vertical-panel > label { display: grid; gap: 7px; color: var(--muted); font-weight: 700; }
.vertical-panel input[type="text"] { width: 100%; border-radius: 14px; }
.vertical-panel-home { margin: 18px 0; padding: 20px; }
.vertical-onboarding { margin: 12px 0 18px; }
.onboarding-choice { display: flex; width: fit-content; max-width: 100%; min-height: 42px; align-items: center; gap: 12px; padding: 9px 14px; border: 1px solid rgba(111,90,239,.22); background: rgba(111,90,239,.08); color: var(--ink); font-size: .84rem; box-shadow: none; }
.onboarding-choice span { color: var(--honey-dark); font-size: 1.3rem; line-height: 1; }
#profileSettingsMount:not(:empty) { margin-bottom: 16px; }
#profileSettingsMount .vertical-panel { margin-bottom: 16px; }
.vertical-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .8fr); gap: 18px; align-items: end; }
.vertical-heading h2 { margin-top: 4px; }
.vertical-heading p { font-size: .94rem; }
.sensitive-confirmations { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: rgba(111, 90, 239, .08); }
.sensitive-confirmations label { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 9px; color: var(--ink); line-height: 1.4; }
.sensitive-confirmations input { min-width: 0; min-height: 22px; margin: 0; }

@media (max-width: 620px) {
  .vertical-heading { grid-template-columns: 1fr; gap: 6px; }
  .vertical-panel-home { padding: 17px; }
  .onboarding-choice { width: 100%; justify-content: space-between; }
}

@media (max-width: 780px) {
  .marketing-header { grid-template-columns: 1fr auto; min-height: 68px; }
  .marketing-header nav { display: none; }
  .marketing-hero { grid-template-columns: 1fr; min-height: auto; padding: 58px 0 74px; }
  .marketing-hero-copy h1 { font-size: clamp(3.3rem, 16vw, 5rem); }
  .memory-preview { transform: none; }
  .marketing-section { padding: 78px 0; }
  .marketing-section h2, .marketing-cta h2 { font-size: clamp(2.45rem, 12vw, 4rem); }
  .benefit-grid, .steps-grid, .section-heading, .privacy-section { grid-template-columns: 1fr; }
  .benefit-grid article { min-height: 210px; }
  .section-heading { gap: 18px; }
  .vertical-grid { grid-template-columns: 1fr; }
  .vertical-grid article, .vertical-grid article:nth-child(4) { grid-column: auto; min-height: 200px; }
  .privacy-section { gap: 22px; margin-top: 30px; padding: 32px 24px; }
  .marketing-cta { padding: 92px 0; }
  .marketing-footer { flex-direction: column; gap: 8px; }
}

.coach-panel, .operations-panel { margin: 18px 0; }
.coach-report, .operation-list { display: grid; gap: 12px; margin-top: 14px; }
.coach-result > p { color: var(--ink); }
.score-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.score-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 12px; border-radius: 14px; background: rgba(111, 90, 239, .08); }
.score-list small { grid-column: 1 / -1; color: var(--muted); }
.improvement { padding: 16px; border-radius: 16px; background: rgba(93, 214, 192, .13); }
.improvement p { margin: 8px 0; }
.improvement blockquote { margin: 12px 0; padding: 10px 14px; border-left: 4px solid var(--mint); background: white; color: var(--ink); }
.operation-card { display: grid; gap: 8px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.operation-card > span { color: var(--honey-dark); text-transform: uppercase; font-size: .72rem; font-weight: 900; }
.operation-card > small { color: var(--muted); line-height: 1.4; }
.operation-card ul { margin: 2px 0; padding-left: 20px; }
.operation-card li { margin: 8px 0; line-height: 1.35; }
.operation-card li small { display: block; margin-top: 4px; color: var(--muted); }
.operation-actions { display: flex; flex-wrap: wrap; gap: 8px; }

button {
  border: 0;
  cursor: pointer;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 800;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 18px;
  background: #0da974;
  color: white;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(13, 169, 116, 0.22);
}

.download-note {
  margin: 10px 0 0;
  max-width: 620px;
  font-size: 0.84rem;
}

.bee-auth-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.bee-auth-card {
  width: min(100%, 430px);
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.bee-auth-card p {
  margin: 6px 0 12px;
  font-size: 0.92rem;
}

.bee-qr-code {
  display: block;
  width: min(100%, 280px);
  height: auto;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: white;
}

.bee-auth-card .bee-auth-actions {
  justify-content: center;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 36px;
}

.eyebrow {
  display: inline-flex;
  color: var(--honey-dark);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 900;
}

h1 {
  font-size: clamp(3rem, 9vw, 6.8rem);
  line-height: 0.9;
  margin: 12px 0;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  margin: 6px 0 0;
}

h3 {
  margin-top: 28px;
}

p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.58;
}

.hero-actions, .chat-row, .panel-head {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.period-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.period-actions button.selected {
  background: var(--ink);
  color: white;
  box-shadow: 0 8px 18px rgba(23, 26, 58, 0.18);
}

.panel-head {
  justify-content: space-between;
}

.primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 12px 26px rgba(23, 26, 58, 0.22);
}

.secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}

.ghost {
  background: rgba(111, 90, 239, 0.16);
  color: var(--ink);
}

.wide { width: 100%; }

.status {
  min-height: 24px;
  font-size: 0.94rem;
}

.helper {
  margin: 12px 0 18px;
  font-size: 0.98rem;
}

.phone-card {
  background: #1f1604;
  border: 10px solid #3a2a07;
  border-radius: 34px;
  min-height: 560px;
  padding: 22px;
  box-shadow: 0 40px 90px rgba(23, 26, 58, 0.28);
  color: white;
}

.phone-top {
  width: 98px;
  height: 8px;
  background: rgba(255, 255, 255, 0.24);
  border-radius: 99px;
  margin: 0 auto 38px;
}

.agenda-preview {
  background: #ece9ff;
  color: var(--ink);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
  display: grid;
  gap: 8px;
}

.agenda-preview.accent {
  background: #6f5aef;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(118, 88, 11, 0.12);
  backdrop-filter: blur(12px);
}

.executive-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.count-badge {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--honey);
  font-weight: 900;
}

.executive-list { display: grid; gap: 10px; margin-top: 16px; }
.executive-alert {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-left: 5px solid #e0a100;
  border-radius: 14px;
  background: rgba(255, 248, 220, 0.72);
}
.executive-alert.alta { border-left-color: #d85252; }
.executive-alert span { color: var(--honey-dark); font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.executive-alert small, .meeting-brief-card small { color: var(--muted); }
.meeting-brief-card { display: grid; gap: 10px; margin-top: 16px; }
.meeting-brief-card > strong { font-size: 1.35rem; }
.meeting-brief-card p { margin: 0; }
.meeting-brief-card ul { margin: 4px 0; padding-left: 20px; color: var(--ink); }
.meeting-brief-card li { margin: 7px 0; }
.meeting-brief-card button { justify-self: start; }

@media (max-width: 760px) {
  .executive-dashboard { grid-template-columns: 1fr; }
}

textarea {
  width: 100%;
  min-height: 180px;
  margin: 18px 0 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  resize: vertical;
}

input {
  flex: 1;
  min-width: 210px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.answer {
  min-height: 136px;
  background: #171a3a;
  color: #f7f7fb;
  padding: 16px;
  border-radius: 18px;
  white-space: pre-wrap;
  line-height: 1.5;
  overflow: auto;
}

.chat-history {
  min-height: 230px;
  max-height: 320px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  background: #171a3a;
  color: #f7f7fb;
  padding: 14px;
  border-radius: 18px;
  margin: 14px 0;
}

.message {
  width: fit-content;
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 18px;
  line-height: 1.45;
  font-size: 0.96rem;
}

.message.agent {
  justify-self: start;
  background: rgba(255, 248, 220, 0.14);
  border: 1px solid rgba(255, 248, 220, 0.18);
  color: #f7f7fb;
}

.message.user {
  justify-self: end;
  background: #6f5aef;
  color: #171a3a;
}

.chat-row {
  flex-wrap: nowrap;
}

.voice {
  width: 48px;
  min-width: 48px;
  padding: 0;
  background: #ece9ff;
  color: var(--ink);
  border: 1px solid rgba(207, 137, 0, 0.28);
  box-shadow: inset 0 0 0 3px rgba(111, 90, 239, 0.22);
}

.voice.recording {
  background: #dc2626;
  color: white;
  animation: pulseVoice 1s ease-in-out infinite;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@keyframes pulseVoice {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.summary span {
  background: rgba(111, 90, 239, 0.22);
  border: 1px solid rgba(207, 137, 0, 0.22);
  padding: 10px 13px;
  border-radius: 999px;
  font-weight: 800;
}

.items {
  display: grid;
  gap: 10px;
}

.item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.date {
  font-weight: 900;
}

.item p {
  margin: 0;
  color: var(--ink);
}

.item.highlight {
  border-left: 6px solid var(--honey-dark);
  grid-template-columns: 140px 1fr;
}

.summary-card {
  background: white;
  border: 1px solid var(--line);
  border-left: 7px solid var(--honey-dark);
  border-radius: 20px;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.summary-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.summary-card strong {
  display: block;
  font-size: 1.18rem;
}

.summary-card p {
  margin: 0;
  color: var(--ink);
}

.summary-section {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.summary-section h3 {
  margin: 0 0 8px;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--honey-dark);
}

.summary-section ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
  color: var(--ink);
  line-height: 1.45;
}

.daily-summary-card {
  display: grid;
  gap: 16px;
}

.daily-summary-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  padding: 20px;
  color: white;
  background: linear-gradient(135deg, var(--ink), #343968);
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(23, 26, 58, 0.2);
}

.daily-summary-hero h3,
.daily-summary-hero p {
  margin: 0;
  color: white;
}

.daily-summary-hero h3 { margin-top: 4px; font-size: 1.35rem; }
.daily-summary-hero p { grid-column: 1 / -1; font-size: 1rem; line-height: 1.5; opacity: .94; }
.summary-kicker { font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--honey); }
.summary-generated-meta { align-self: start; white-space: nowrap; padding: 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: .75rem; }

.daily-summary-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.daily-metric {
  display: grid;
  gap: 2px;
  min-height: 78px;
  padding: 13px;
  background: white;
  border: 1px solid var(--line);
  border-top: 4px solid var(--muted);
  border-radius: 16px;
}

.daily-metric strong { color: var(--ink); font-size: 1.65rem; line-height: 1; }
.daily-metric span { color: var(--muted); font-size: .78rem; line-height: 1.2; }
.daily-metric.attention { border-top-color: #e0a422; }
.daily-metric.decision { border-top-color: #7259d6; }
.daily-metric.risk { border-top-color: #d95c5c; }
.daily-metric.next, .daily-metric.clear { border-top-color: #29a97d; }

.daily-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.daily-signal {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
}

.daily-signal h4 { margin: 0 0 10px; color: var(--ink); font-size: .95rem; }
.daily-signal ul { margin: 0; padding: 0; display: grid; gap: 8px; color: var(--ink); font-size: .9rem; line-height: 1.35; list-style: none; }
.daily-signal li { display: grid; gap: 7px; padding: 10px; border: 1px solid rgba(23, 26, 58, .08); border-radius: 12px; background: rgba(255, 255, 255, .72); }
.daily-signal p { margin: 0; font-size: .88rem; line-height: 1.4; }
.daily-signal.attention { background: #fff9ea; }
.daily-signal.decision { background: #f7f4ff; }
.daily-signal.risk { background: #fff4f2; }

.daily-summary-context {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
  gap: 12px;
}

.daily-context-facts, .daily-people-card { padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.daily-summary-context strong { display: block; margin-bottom: 10px; color: var(--ink); font-size: .82rem; }
.daily-summary-context p { margin: 0; font-size: .86rem; line-height: 1.4; }
.daily-context-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.daily-context-card { display: grid; align-content: start; gap: 8px; min-height: 92px; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.context-tag { justify-self: start; padding: 4px 8px; border-radius: 999px; color: #4d5369; background: #edf0f5; font-size: .67rem; font-style: normal; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.context-tag.family { color: #8b4768; background: #fbe7f1; }
.context-tag.business { color: #315e9d; background: #e6f0ff; }
.context-tag.health { color: #26775e; background: #e2f7ef; }
.context-tag.finance { color: #7a5b17; background: #fff2c9; }
.context-tag.personal { color: #694fa7; background: #eee8ff; }

@media (max-width: 720px) {
  .daily-summary-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daily-summary-grid, .daily-summary-context { grid-template-columns: 1fr; }
  .daily-context-grid { grid-template-columns: 1fr; }
  .daily-summary-hero { grid-template-columns: 1fr; }
  .daily-summary-hero p { grid-column: 1; }
  .summary-generated-meta { justify-self: start; }
}

.item small {
  color: var(--muted);
}

.done {
  background: #ecfdf3;
  color: #166534;
  min-height: 38px;
  padding: 0 14px;
}

.empty {
  color: var(--muted);
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 18px;
}

.wearable-panel {
  margin-bottom: 18px;
  background: linear-gradient(145deg, rgba(238, 248, 244, 0.96), rgba(255, 255, 255, 0.94));
}
.native-badge { padding: 8px 12px; border-radius: 999px; background: #edf0ef; color: #65716d; font-size: .78rem; font-weight: 900; }
.native-badge.online { background: #d9f8eb; color: #087a55; }
.wearable-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.device-list { display: grid; gap: 9px; margin: 12px 0; }
.band-device { width: 100%; min-height: 68px; border-radius: 18px; background: #fff; color: #183029; display: flex; align-items: center; justify-content: space-between; text-align: left; border: 1px solid rgba(15, 127, 89, .12); }
.band-device span { display: grid; gap: 3px; }
.band-device small { color: #81908b; font-weight: 600; }
.band-device b { color: #0da974; }
.health-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.health-card { min-height: 130px; padding: 16px; border-radius: 20px; background: #fff; display: grid; align-content: start; gap: 7px; }
.health-card i { width: 28px; height: 4px; border-radius: 9px; background: var(--sensor); }
.health-card span { color: #41504b; font-size: .84rem; font-weight: 800; }
.health-card strong { font-size: 1.8rem; margin-top: 5px; }
.health-card small { color: #929d99; }
.health-history-section, .device-capabilities-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.period-switch { display: flex; gap: 6px; }
.health-history { display: grid; gap: 9px; margin-top: 12px; }
.health-history-row { display: grid; grid-template-columns: minmax(110px, 1fr) repeat(4, auto); gap: 12px; align-items: center; padding: 12px 14px; border-radius: 15px; background: #fff; border: 1px solid var(--line); }
.health-history-row small { color: var(--muted); }
.capability-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.capability-chip { padding: 8px 11px; border-radius: 999px; background: #e4f7ef; color: #087a55; font-size: .78rem; font-weight: 800; }
.capability-chip.unavailable { background: #f2f1f5; color: #777582; }
.device-overview { display: grid; gap: 9px; margin-top: 14px; }
.device-overview-card { padding: 13px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.device-overview-card strong { display: block; margin-bottom: 5px; }
.device-overview-card small { color: var(--muted); }
.connection-options { display: grid; gap: 10px; margin: 14px 0; }
.connection-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.connection-option div { display: grid; gap: 3px; }
.connection-option small { color: var(--muted); }
.recordings-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.recording-control { margin-top: 22px; padding: 18px; border: 1px solid rgba(15, 127, 89, .16); border-radius: 20px; background: rgba(255, 255, 255, .78); }
.recording-control .panel-head { align-items: flex-start; }
.recording-control .helper { margin: 5px 0 0; }
.experimental-badge { padding: 6px 9px; border-radius: 999px; color: #815b16; background: #fff0c2; font-size: .68rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.recording-list { display: grid; gap: 9px; margin-top: 12px; }
.recording-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.recording-row div { display: grid; gap: 4px; }
.recording-row small { color: var(--muted); }

@media (max-width: 820px) {
  .shell {
    width: min(100% - 18px, 560px);
    padding: 12px 0 34px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 0 12px;
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 4.1rem);
    line-height: 0.94;
  }

  h2 {
    font-size: 1.42rem;
  }

  p {
    font-size: 1rem;
  }

  .hero-actions,
  .panel-head,
  .period-actions {
    align-items: stretch;
  }

  .phone-card {
    min-height: 280px;
    border-radius: 28px;
    border-width: 7px;
    padding: 16px;
    box-shadow: 0 22px 48px rgba(23, 26, 58, 0.22);
  }

  .phone-top {
    margin-bottom: 20px;
  }

  .agenda-preview {
    padding: 15px;
    border-radius: 16px;
    margin-bottom: 12px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .panel {
    padding: 16px;
    border-radius: 20px;
  }

  textarea {
    min-height: 150px;
    border-radius: 16px;
  }

  .item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .done {
    width: 100%;
  }

  .hero-actions button, .period-actions button {
    width: 100%;
  }

  input {
    min-width: 0;
    width: 100%;
    font-size: 16px;
  }

  button {
    min-height: 50px;
  }

  .chat-history {
    min-height: 260px;
    max-height: 48vh;
    padding: 12px;
  }

  .message {
    max-width: 94%;
    font-size: 0.94rem;
  }

  .chat-row {
    display: grid;
    grid-template-columns: 1fr 48px;
    gap: 10px;
  }

  .chat-row .primary {
    grid-column: 1 / -1;
    width: 100%;
  }

  .summary {
    display: grid;
  }

  .summary span {
    width: 100%;
  }

  .item.highlight {
    grid-template-columns: 1fr;
  }

  .health-grid { grid-template-columns: repeat(2, 1fr); }
  .health-history-row { grid-template-columns: 1fr 1fr; }
  .wearable-actions button { width: 100%; }
}

@media (max-width: 420px) {
  .shell {
    width: min(100% - 12px, 420px);
  }

  .panel {
    padding: 14px;
  }

  .eyebrow {
    font-size: 0.7rem;
  }

  .chat-history {
    min-height: 240px;
  }
}

/* Interface principal do Memora */
body {
  background: #f5f5fa;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: max(12px, env(safe-area-inset-top)) max(18px, calc((100vw - 920px) / 2));
  background: rgba(247, 247, 251, 0.94);
  border-bottom: 1px solid rgba(23, 26, 58, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand > span:last-child { display: grid; }
.brand small { color: #7b7466; font-size: 0.72rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 8px 20px rgba(111, 90, 239, 0.22);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.connection-badge,
.native-badge {
  padding: 7px 11px;
  border-radius: 999px;
  background: #ecece8;
  color: #68645b;
  font-size: 0.75rem;
  font-weight: 800;
}

.connection-badge.online,
.native-badge.online { background: #dcf8e9; color: #08794f; }

.app-shell {
  width: min(920px, calc(100% - 28px));
  margin: 0 auto;
  padding: 42px 0 36px;
}

.app-view[hidden] { display: none !important; }
.app-view.active { animation: view-in 180ms ease-out; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.agent-intro { max-width: 720px; margin: 0 auto 24px; text-align: center; }
.agent-intro h1 { margin: 10px 0 12px; font-size: clamp(2.5rem, 7vw, 5.1rem); line-height: 0.96; }
.agent-intro p { max-width: 640px; margin: 0 auto; color: #756c5d; }

.agent-card,
.sync-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(23, 26, 58, 0.09);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(61, 45, 6, 0.08);
}

.agent-card { padding: 18px; }
.chat-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 2px 12px; font-size: 0.82rem; font-weight: 800; }
.chat-toolbar .ghost { min-height: 34px; padding: 0 12px; }
.agent-card .chat-history {
  min-height: 330px;
  max-height: 48vh;
  background: #fbfaf7;
  color: var(--ink);
  border: 1px solid #ece8de;
}
.agent-card .message.agent { background: #ece9ff; color: var(--ink); }
.agent-card .message.user { background: #171a3a; color: white; }

.quick-prompts { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; }
.quick-prompts button { flex: 0 0 auto; min-height: 38px; padding: 0 14px; background: #ebe9f8; color: #464b6a; font-size: 0.82rem; }

.sync-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding: 16px 18px;
}
.sync-card p { margin: 3px 0 0; }

.view-title { position: relative; margin-bottom: 22px; }
.view-title h2 { font-size: clamp(2rem, 6vw, 3.8rem); margin: 7px 0; }
.view-title p { max-width: 620px; margin: 6px 0; }
.view-actions { position: absolute; right: 0; bottom: 4px; display: flex; gap: 8px; }

.highlights-panel { margin-top: 20px; }
.connected-context-panel, .email-panel { margin: 16px 0; }
.connected-list { display: grid; gap: 9px; margin-top: 12px; }
.connected-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.connected-item time, .connected-item small, .connected-item em { color: var(--muted); font-size: .76rem; font-style: normal; }
.connected-item div { display: grid; gap: 4px; }
.connected-item p { margin: 2px 0; font-size: .84rem; color: var(--muted); }
.read-only { padding: 4px 8px; border-radius: 999px; background: #ece9ff; color: #5547ae; font-size: .68rem; font-weight: 800; }
.email-panel summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.email-panel summary::-webkit-details-marker { display: none; }
.email-panel summary > span:first-child { display: grid; gap: 4px; }
.email-panel summary strong { font-size: 1.2rem; }
.conversation-list { display: grid; gap: 10px; }
.conversation-scopes { display: flex; gap: 8px; margin: 14px 0 8px; }
.daily-review-panel { margin: 16px 0; }
.daily-review-panel details { margin-top: 12px; }
.daily-review-panel summary { cursor: pointer; }
.item-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.item-actions button { min-height: 36px; }
.conversation-scopes button { display: inline-flex; align-items: center; gap: 7px; }
.conversation-scopes button span { min-width: 23px; padding: 3px 7px; border-radius: 999px; background: rgba(23, 26, 58, .08); font-size: .7rem; }
.conversation-scopes button.selected { background: var(--ink); color: white; }
.conversation-scopes button.selected span { background: rgba(255, 255, 255, .18); }
.conversation-card {
  display: grid;
  grid-template-columns: 94px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 17px;
  background: white;
  border: 1px solid rgba(23, 26, 58, 0.09);
  border-radius: 20px;
}
.conversation-card time { color: #817868; font-size: 0.8rem; }
.conversation-card strong { display: block; margin-bottom: 4px; }
.conversation-card small { color: #817868; }

.area-chip { display: inline-flex; align-items: center; width: fit-content; margin-top: 4px; padding: 3px 9px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .02em; color: #4d5369; background: #edf0f5; }
.area-chip.familia { color: #8b4768; background: #fbe7f1; }
.area-chip.negocios_trabalho { color: #315e9d; background: #e6f0ff; }
.area-chip.financeira { color: #7a5b17; background: #fff2c9; }
.area-chip.saude { color: #26775e; background: #e2f7ef; }
.area-chip.religiao { color: #6b4b9a; background: #f0e8ff; }
.area-chip.legal { color: #8a3d3d; background: #fdeceb; }
.area-chip.pessoal, .area-chip.relacionamento, .area-chip.educacao, .area-chip.viagens, .area-chip.casa, .area-chip.comunidade { color: #694fa7; background: #eee8ff; }
.area-chip.sem_area { color: #777582; background: #f2f1f5; }
.conversation-card button { min-height: 38px; background: #e7e3ff; }
.conversation-card > div:nth-child(2) { display: grid; gap: 4px; }
.conversation-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.conversation-actions .identify-speakers { background: var(--ink); color: white; }
.speaker-badge { width: fit-content; margin-top: 3px; padding: 4px 8px; border-radius: 999px; background: #eeeef4; color: var(--muted); font-size: .68rem; font-weight: 800; }
.speaker-badge.identified { background: rgba(93,214,192,.18); color: #08795e; }
.speaker-badge.review_needed { background: rgba(111,90,239,.14); color: var(--honey-dark); }
.speaker-badge.archived { background: rgba(93,214,192,.18); color: #08795e; }
.consolidated-memory { margin: 8px 0 2px; padding-left: 18px; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.speaker-panel { margin-bottom: 18px; }
.speaker-list { display: grid; gap: 12px; margin: 16px 0; }
.speaker-row { display: grid; grid-template-columns: 120px minmax(160px,.6fr) minmax(200px,1fr); gap: 12px; align-items: end; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.speaker-row > div:first-child { display: grid; gap: 4px; align-self: center; }
.speaker-row > div:first-child small { color: var(--muted); }
.speaker-row label { display: grid; gap: 6px; color: var(--muted); font-size: .8rem; font-weight: 800; }
.speaker-row input { width: 100%; min-width: 0; border-radius: 14px; }
.speaker-samples { grid-column: 1 / -1; display: grid; gap: 6px; }
.speaker-samples blockquote { margin: 0; padding: 9px 12px; border-left: 3px solid var(--honey); background: var(--cream); color: var(--muted); font-size: .82rem; line-height: 1.4; }

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  width: min(650px, calc(100% - 20px));
  transform: translateX(-50%);
  padding: 7px;
  background: rgba(31, 28, 20, 0.96);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}
.nav-item {
  flex: 1;
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 54px;
  padding: 4px;
  border-radius: 18px;
  background: transparent;
  color: #c9c5bb;
  font-size: 0.67rem;
}
.nav-item span { font-size: 1.15rem; }
.nav-item.active { background: var(--honey); color: white; }

.manual-panel { margin-top: 16px; }
.account-panel { margin-bottom: 16px; }
.account-login { display: grid; gap: 10px; }
.account-login label { display: grid; gap: 7px; font-weight: 700; }
.account-login input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #ded8ca; border-radius: 14px; background: #fff; font: inherit; }
.account-login [hidden] { display: none; }
.recording-consent { display: flex; gap: 9px; align-items: flex-start; margin: 12px 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.recording-consent input { margin-top: 3px; }
.training-controls { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:.7rem; align-items:end; }
.training-controls label { display:grid; gap:.3rem; font-size:.82rem; color:var(--muted); }
.training-controls input,.training-controls select { min-height:42px; border:1px solid var(--line); border-radius:10px; padding:.6rem; background:var(--surface); color:var(--text); }
.training-plan { display:grid; gap:.55rem; margin-top:.8rem; }
.training-session { display:flex; justify-content:space-between; gap:1rem; padding:.7rem; border:1px solid var(--line); border-radius:10px; }
.training-session small { display:block; color:var(--muted); margin-top:.25rem; }

@media (max-width: 640px) {
  .app-header { min-height: 64px; padding-left: 14px; padding-right: 14px; }
  .brand small { display: none; }
  .connection-badge { max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app-shell { width: min(100% - 20px, 560px); padding-top: 26px; }
  .agent-intro { text-align: left; }
  .agent-intro h1 { font-size: clamp(2.6rem, 14vw, 4rem); }
  .agent-card { padding: 12px; border-radius: 22px; }
  .agent-card .chat-history { min-height: 44vh; }
  .sync-card { align-items: stretch; flex-direction: column; }
  .sync-card .primary { width: 100%; }
  .view-actions { position: static; margin-top: 10px; }
  .conversation-card { grid-template-columns: 74px 1fr; }
  .connected-item { grid-template-columns: 76px 1fr; }
  .connected-item .read-only { grid-column: 2; width: fit-content; }
  .conversation-actions { grid-column: 1 / -1; }
  .conversation-actions button { width: 100%; }
  .speaker-row { grid-template-columns: 1fr; }
  .recording-row { align-items: stretch; flex-direction: column; }
  .speaker-samples { grid-column: auto; }
  .bottom-nav { bottom: max(6px, env(safe-area-inset-bottom)); border-radius: 21px; }
  .nav-item { min-height: 50px; font-size: 0.61rem; }
}
