:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #192431;
  background: #fafbfc;
  font-synthesis: none;
  --ink: #172635;
  --muted: #52616f;
  --line: #e8ecf0;
  --accent: #26778e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #279cc0;
  outline-offset: 4px;
}
button {
  border: 0;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 20;
  background: white;
  padding: 15px;
}
.skip-link:focus {
  top: 10px;
}
.workspace {
  display: flex;
  min-height: 100dvh;
}
.sidebar {
  width: 262px;
  flex-shrink: 0;
  background: #f3f5f7;
  border-right: 1px solid var(--line);
  padding: 36px 20px 18px;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100dvh;
  inset: 0 auto 0 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 13px 41px;
  font-size: 29px;
  letter-spacing: -1.5px;
  font-weight: 640;
}
.brand svg {
  width: 28px;
  height: 33px;
  fill: none;
  stroke: #347b8c;
  stroke-width: 1.8;
  stroke-linejoin: round;
}
.brand-dot {
  color: #478998;
}
.new-conversation {
  height: 47px;
  background: #fff;
  border: 1px solid #dfe5e9;
  border-radius: 9px;
  text-align: left;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 570;
  box-shadow: 0 2px 2px #162d3603;
}
.new-conversation span {
  font-size: 21px;
  font-weight: 300;
}
.new-conversation kbd {
  margin-left: auto;
  color: var(--muted);
  font: 10px inherit;
  border: 1px solid #e2e6e9;
  border-radius: 3px;
  padding: 2px 5px;
}
.navigation {
  margin: 29px 0 32px;
  display: grid;
  gap: 5px;
}
.nav-item {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  padding: 0 13px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 13px;
}
.nav-item:hover {
  background: #e9eef1;
}
.nav-item.selected {
  background: #e3ecee;
  color: #276173;
  font-weight: 600;
}
.nav-icon {
  width: 18px;
  font-size: 22px;
  line-height: 1;
}
.nav-pill {
  font-size: 7px;
  margin-left: auto;
  letter-spacing: 1px;
  opacity: 1;
}
.history-heading {
  padding: 0 13px;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 600;
}
.history {
  margin-top: 16px;
  flex: 1;
  overflow-y: auto;
}
.sidebar-empty {
  color: var(--muted);
  line-height: 1.9;
  font-size: 11px;
  padding: 0 13px;
}
.history-item {
  display: flex;
  gap: 5px;
  align-items: center;
  border-radius: 7px;
  margin-bottom: 3px;
}
.history-item button:first-child {
  background: transparent;
  color: #596772;
  font-size: 12px;
  padding: 12px;
  min-width: 0;
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-item.active {
  background: #e8edef;
}
.history-item .delete-chat {
  background: transparent;
  color: var(--muted);
  min-width: 32px;
  min-height: 40px;
}
.sidebar-bottom {
  margin-top: 25px;
}
.private-note {
  font-size: 10px;
  color: var(--muted);
  padding: 17px 10px;
  border-bottom: 1px solid #e0e6ea;
}
.private-note span {
  color: var(--muted);
  margin-right: 7px;
}
.account-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 4px 0;
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e4e9ed;
  color: var(--muted);
  font-size: 12px;
  flex-shrink: 0;
}
.account-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.account-label strong {
  font-size: 11px;
  font-weight: 600;
}
.account-label span {
  font-size: 9px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}
.icon-button {
  background: transparent;
  color: var(--muted);
  min-height: 40px;
  min-width: 34px;
  border-radius: 7px;
}
.icon-button:hover {
  background: #e7edf0;
}
.main-shell {
  margin-left: 262px;
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 87px;
  border-bottom: 1px solid #edf0f3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 44px;
  font-size: 11px;
}
.breadcrumb {
  color: var(--muted);
}
.slash {
  margin: 0 17px;
  color: #c5cdd3;
}
.topbar strong {
  font-weight: 500;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.private-badge {
  color: var(--muted);
  font-size: 10px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #86a99c;
}
main {
  min-height: calc(100dvh - 87px);
}
.talk-view {
  min-height: calc(100dvh - 87px);
  display: flex;
  flex-direction: column;
  padding: 0 40px;
}
.welcome {
  margin: auto;
  text-align: center;
  padding: 54px 0 36px;
  max-width: 760px;
  width: 100%;
}
.eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.4px;
  color: var(--muted);
}
.eyebrow span {
  display: inline-block;
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: #5e9b99;
  margin-right: 7px;
  vertical-align: middle;
}
h1 {
  font-size: clamp(30px, 3.3vw, 47px);
  font-weight: 420;
  letter-spacing: -1.7px;
  line-height: 1.2;
  margin: 20px 0 17px;
}
.intro {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
  margin: 0;
}
.voice-stage {
  width: 230px;
  height: 215px;
  margin: 14px auto 0;
  position: relative;
  display: grid;
  place-items: center;
}
.voice-halo {
  position: absolute;
  inset: 35px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #a4d0d63d, transparent 70%);
  filter: blur(6px);
}
.orbit {
  position: absolute;
  width: 184px;
  height: 184px;
  border: 1px solid #dce8ec77;
  border-radius: 50%;
}
.orbit-two {
  width: 218px;
  height: 218px;
  border-style: dashed;
  border-color: #e8eef1;
  transform: rotate(23deg);
}
.voice-button {
  background: none;
  border-radius: 50%;
  width: 150px;
  height: 150px;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  transition: transform 0.25s;
}
.voice-button:disabled {
  opacity: 1;
}
.voice-button:not(:disabled):hover {
  transform: translateY(-5px);
}
.voice-cube {
  width: 91px;
  height: 104px;
  filter: drop-shadow(0 17px 16px #7eabb82a);
  transition: transform 0.3s;
}
.cube-top {
  fill: #edf7f8;
  stroke: #76a9b7;
  stroke-width: 0.65;
}
.cube-left {
  fill: #bedce3;
  stroke: #76a9b7;
  stroke-width: 0.65;
}
.cube-right {
  fill: #73abbc;
  stroke: #669cac;
  stroke-width: 0.65;
}
.cube-line {
  fill: none;
  stroke: #fff;
  stroke-width: 0.7;
  opacity: 0.15;
}
.voice-caption {
  color: var(--muted);
  font-size: 11px;
  margin: 7px 0 26px;
}
.google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-width: 250px;
  min-height: 48px;
  background: #fff;
  border: 1px solid #dce3e8;
  border-radius: 9px;
  box-shadow: 0 3px 8px #1e3f4b04;
  color: #344753;
  font-size: 12px;
  font-weight: 550;
}
.google-button:hover {
  background: #f1f7f8;
}
.google-button > span:last-child {
  color: var(--muted);
  margin-left: 10px;
  font-size: 16px;
}
.google-g {
  font-weight: 750;
  font-size: 20px;
  color: #4285f4;
  font-family: Arial, sans-serif;
}
.login-note {
  color: var(--muted);
  font-size: 9px;
  margin: 15px 0;
}
.composer-wrap {
  width: calc(100% - 40px);
  max-width: 760px;
  margin: 22px auto 28px;
}
.setup-choice {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
.accessibility-options {
  border: 1px solid #738493;
  padding: 20px;
  border-radius: 12px;
  margin: 24px 0;
}
.accessibility-options legend {
  font-weight: 650;
  padding: 0 8px;
}
.accessibility-options label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  cursor: pointer;
}
.accessibility-options input {
  width: 24px;
  height: 24px;
  accent-color: #26778e;
  flex-shrink: 0;
}
.accessibility-options p,
.setup-steps {
  line-height: 1.7;
}
.setup-steps li {
  margin-bottom: 14px;
}
#settings-view > p {
  line-height: 1.7;
}
button {
  min-height: 44px;
}
.navigation {
  flex-wrap: wrap;
}
.view:focus {
  outline: 2px solid #26778e;
  outline-offset: -2px;
}
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
.large-text .view p,
.large-text .view li,
.large-text .view label,
.large-text .view button,
.large-text .message,
.large-text #message {
  font-size: 20px;
  line-height: 1.65;
}
.large-text .account-label span,
.large-text .nav-item,
.large-text .history-item button {
  font-size: 16px;
}
.large-text .history {
  max-height: none;
}
/* Controls remain reachable while reading long settings or conversation pages. */
#main {
  padding-bottom: 165px;
}
#composer-wrap {
  position: fixed;
  bottom: 0;
  left: 262px;
  right: 0;
  width: calc(100% - 302px);
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 0 max(8px, env(safe-area-inset-bottom));
  background: #fafbfc;
  z-index: 5;
}
#notice,
.native-ios #notice {
  bottom: calc(145px + env(safe-area-inset-bottom));
}
html {
  scroll-padding-bottom: 170px;
}
@media (max-width: 1100px) {
  #composer-wrap {
    left: 225px;
    width: calc(100% - 265px);
  }
}
@media (max-width: 760px) {
  #composer-wrap {
    left: 20px;
    right: 20px;
    width: auto;
  }
}
@media (max-width: 420px) {
  .navigation .nav-item {
    flex: 1 1 40%;
  }
  .setup-choice button {
    width: 100%;
  }
}
.composer {
  display: flex;
  align-items: center;
  border: 1px solid #dee5eb;
  border-radius: 15px;
  background: #fff;
  padding: 11px 13px 11px 20px;
  box-shadow: 0 5px 20px #38536505;
  gap: 9px;
}
.composer textarea {
  width: 100%;
  resize: none;
  background: none;
  border: 0;
  outline: none;
  font-size: 12px;
  line-height: 1.6;
  max-height: 160px;
  min-height: 28px;
  padding: 5px 0;
  color: #273d4b;
}
.composer textarea::placeholder {
  color: var(--muted);
}
.composer textarea:focus-visible {
  outline: none;
}
.composer:focus-within {
  border-color: #6ca3b2;
  box-shadow: 0 0 0 3px #6ca3b214;
}
.send-button {
  height: 34px;
  min-width: 34px;
  border-radius: 8px;
  background: #254d5f;
  color: white;
  font-size: 19px;
}
.record-small {
  background: transparent;
  color: var(--muted);
  font-size: 21px;
  min-height: 36px;
  min-width: 36px;
}
.composer-footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  margin: 13px 8px 0;
}
.suggestions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 25px auto 0;
  text-align: left;
}
.suggestions button {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
}
.suggestions button:hover {
  border-color: #a9c8d0;
  background: #f6fbfc;
}
.suggestions span {
  display: block;
  color: var(--muted);
  font-size: 19px;
  margin-bottom: 17px;
}
.suggestions strong {
  font-size: 11px;
  font-weight: 550;
  display: block;
}
.suggestions small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 7px;
}
.thread {
  width: 100%;
  max-width: 760px;
  margin: 35px auto 0;
  flex: 1;
}
.message {
  max-width: 90%;
  margin: 0 0 28px;
  line-height: 1.75;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message .message-label {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.message.user {
  margin-left: auto;
  background: #edf2f5;
  border-radius: 15px 15px 3px 15px;
  padding: 15px 20px;
}
.message.assistant {
  padding: 7px 0;
}
.message.assistant .message-label {
  color: #447e8b;
}
.pending-action {
  max-width: 760px;
  width: 100%;
  margin: 20px auto;
  background: #fff8ed;
  border: 1px solid #f0dfc0;
  padding: 22px;
  border-radius: 12px;
}
.pending-action h2 {
  font-size: 16px;
  margin: 0 0 14px;
}
.pending-action pre {
  font: 12px/1.8 inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.pending-action .actions {
  display: flex;
  gap: 12px;
}
.primary-button {
  min-height: 44px;
  background: #234e60;
  color: white;
  border-radius: 8px;
  padding: 0 20px;
  font-size: 12px;
}
.secondary-button {
  min-height: 44px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 20px;
  color: #465d6a;
}
.settings-view {
  max-width: 980px;
  margin: 0 auto;
  padding: 74px 55px;
}
.settings-view h1 {
  font-size: 36px;
}
.settings-view .intro {
  margin-bottom: 38px;
}
.memory-form label {
  display: block;
  font-size: 12px;
  margin-bottom: 12px;
  color: var(--muted);
}
.memory-form > div {
  display: flex;
  gap: 12px;
}
.memory-form input {
  min-height: 47px;
  padding: 0 15px;
  flex: 1;
  min-width: 0;
  border: 1px solid #dbe4e9;
  border-radius: 8px;
  font-size: 12px;
}
.memory-list {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}
.memory-item {
  display: flex;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 18px;
  font-size: 13px;
}
.memory-item p {
  flex: 1;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.memory-item button {
  color: #8d6b64;
  background: none;
  min-height: 40px;
}
.fine-print {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 26px;
}
.empty-card {
  border: 1px dashed #dce4e9;
  border-radius: 12px;
  padding: 35px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
}
.connection-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 25px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.connection-logo {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  background: #f7f9fb;
  border-radius: 12px;
  font-size: 28px;
}
.connection-card h2 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 550;
}
.connection-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.connection-card button {
  margin-left: auto;
}
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 22px;
}
.capability-grid article {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 23px;
  background: #fff;
}
.capability-grid article > span {
  font-size: 24px;
  color: var(--muted);
}
.capability-grid h3 {
  font-size: 13px;
  font-weight: 550;
  margin-top: 18px;
}
.capability-grid p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
.capability-grid small {
  font-size: 9px;
  display: inline-block;
  margin-top: 10px;
  color: var(--muted);
  background: #eff4f6;
  padding: 5px 8px;
  border-radius: 4px;
}
.connection-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted);
}
.text-button {
  background: none;
  color: #7e6660;
  font-size: 11px;
  min-height: 44px;
}
.notice {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 100px);
  transform: translateX(-50%);
  z-index: 10;
  max-width: 500px;
  width: calc(100% - 40px);
  padding: 16px 20px;
  background: #243c49;
  color: white;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: 0 7px 30px #182a3b22;
}
.is-listening .voice-cube {
  animation: float 2s ease-in-out infinite;
}
.is-listening .voice-halo {
  background: #9fcfd755;
  animation: pulse 1.4s ease-in-out infinite;
}
.is-listening .record-small {
  color: #177d97;
}
.is-speaking .voice-cube {
  animation: float 3s ease-in-out infinite;
}
.is-thinking .voice-cube {
  animation: pulse 2s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translateY(-7px);
  }
}
@keyframes pulse {
  50% {
    opacity: 0.5;
    transform: scale(0.95);
  }
}
@media (min-width: 1500px) {
  .welcome {
    padding-top: 80px;
  }
  .voice-stage {
    margin-top: 24px;
    height: 260px;
  }
  .voice-caption {
    margin-top: 16px;
  }
  .composer-wrap {
    margin-bottom: 40px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 225px;
    padding: 28px 14px;
  }
  .main-shell {
    margin-left: 225px;
  }
  .topbar {
    padding: 0 28px;
  }
  .nav-pill {
    display: none;
  }
  .talk-view {
    padding: 0 28px;
  }
  .settings-view {
    padding: 55px 30px;
  }
  .suggestions small {
    line-height: 1.7;
  }
}
@media (max-width: 760px) {
  .workspace {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    width: auto;
    padding: 19px 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: block;
  }
  .brand {
    margin: 0;
    font-size: 25px;
  }
  .brand svg {
    height: 27px;
    width: 24px;
  }
  .navigation {
    display: flex;
    margin: 18px -8px 0;
    gap: 10px;
  }
  .nav-item {
    flex: 1;
    justify-content: center;
    gap: 7px;
    padding: 0 8px;
    height: 44px;
    font-size: 12px;
    border-radius: 8px 8px 0 0;
  }
  .sidebar .new-conversation {
    position: absolute;
    right: 20px;
    top: 20px;
    height: 36px;
    font-size: 10px;
    padding: 0 10px;
  }
  .new-conversation kbd {
    display: none;
  }
  .history-heading,
  .sidebar-bottom {
    display: none;
  }
  .history {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    margin-top: 10px;
    max-height: 50px;
  }
  .history .sidebar-empty {
    display: none;
  }
  .history-item {
    min-width: 135px;
    max-width: 210px;
  }
  .history-item button:first-child {
    padding: 8px;
    font-size: 10px;
  }
  .main-shell {
    margin-left: 0;
  }
  .topbar {
    height: 58px;
    padding: 0 22px;
  }
  .private-badge {
    font-size: 8px;
  }
  .topbar-right {
    gap: 10px;
  }
  .talk-view {
    min-height: calc(100dvh - 190px);
    padding: 0 20px;
  }
  .welcome {
    padding: 42px 0 25px;
  }
  h1 {
    font-size: 34px;
    letter-spacing: -1.3px;
  }
  .intro {
    font-size: 12px;
  }
  .voice-stage {
    height: 185px;
    width: 210px;
  }
  .orbit {
    width: 145px;
    height: 145px;
  }
  .orbit-two {
    width: 179px;
    height: 179px;
  }
  .voice-cube {
    width: 76px;
    height: 90px;
  }
  .voice-caption {
    margin-top: 4px;
  }
  .suggestions {
    gap: 8px;
  }
  .suggestions button {
    padding: 12px;
  }
  .suggestions strong {
    font-size: 10px;
    line-height: 1.5;
  }
  .suggestions small {
    display: none;
  }
  .suggestions span {
    margin-bottom: 10px;
  }
  .composer-wrap {
    margin-top: 12px;
    margin-bottom: 20px;
  }
  .composer-footer {
    font-size: 8px;
  }
  .settings-view {
    padding: 43px 23px;
  }
  .settings-view h1 {
    font-size: 30px;
  }
  .capability-grid {
    grid-template-columns: 1fr;
  }
  .capability-grid article {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    column-gap: 15px;
    padding: 18px;
  }
  .capability-grid h3 {
    margin: 6px 0;
  }
  .capability-grid p {
    grid-column: 2/4;
    margin: 0;
  }
  .capability-grid small {
    grid-column: 3;
    grid-row: 1;
    margin: 0;
    align-self: center;
  }
  .connection-card {
    flex-wrap: wrap;
    padding: 18px;
    gap: 12px;
  }
  .connection-card button {
    width: 100%;
    margin: 8px 0 0;
  }
  .connection-foot {
    align-items: start;
    gap: 15px;
  }
  .memory-form > div {
    flex-direction: column;
  }
  .memory-form input {
    flex: auto;
  }
  .notice {
    left: 50%;
  }
  .thread {
    margin-top: 25px;
  }
  .message {
    font-size: 13px;
  }
}
.apple-button {
  display: block;
  margin: 12px auto 0;
  min-height: 48px;
  min-width: 230px;
  padding: 12px 22px;
  border: 1px solid #111;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font: inherit;
  font-weight: 600;
}
.native-ios .workspace {
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}
.native-ios input,
.native-ios textarea {
  font-size: 16px;
}
.native-ios button {
  min-height: 44px;
}
.native-ios .notice {
  bottom: calc(20px + env(safe-area-inset-bottom));
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 760px) {
  .sidebar-bottom {
    display: block;
    margin: 0;
  }
  .private-note {
    display: none;
  }
  .account-card {
    padding: 6px 0 10px;
  }
  .account-label {
    flex: 1;
  }
  .avatar {
    width: 26px;
    height: 26px;
  }
  .nav-pill {
    display: none;
  }
}
.services-view {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 28px 220px;
  color: var(--ink, #202c38);
}
.services-view h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}
.services-view h2 {
  font-size: 1.5rem;
  margin-top: 28px;
}
.services-view p {
  line-height: 1.65;
  color: #52616f;
}
.service-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.services-view button,
.services-view select,
.services-view input,
.services-view textarea {
  font: inherit;
  max-width: 100%;
}
.services-view button {
  border: 1px solid #b5c1cd;
  border-radius: 10px;
  background: #fff;
  color: #263d50;
  padding: 12px 16px;
  margin: 6px 6px 6px 0;
  min-height: 44px;
  cursor: pointer;
}
.services-view button[aria-current],
.services-view button.primary-button {
  background: #1b506d;
  color: #fff;
  border-color: #1b506d;
}
.services-view button:disabled {
  color: #52616f;
  background: #e6ebef;
  cursor: default;
}
.services-view label:not(.check-row) {
  display: block;
  margin: 16px 0 7px;
  font-weight: 600;
}
.services-view input:not([type="checkbox"]):not([type="hidden"]),
.services-view textarea,
.services-view select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #8d9ca9;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: #202c38;
}
.services-view .check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0;
  line-height: 1.5;
}
.services-view input[type="checkbox"] {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}
.services-view :focus-visible {
  outline: 3px solid #176ba0;
  outline-offset: 3px;
}
.service-card {
  border: 1px solid #c5cfd7;
  border-radius: 14px;
  padding: 18px;
  margin: 16px 0;
  background: #fff;
  overflow-wrap: anywhere;
}
.service-card h3 {
  font-size: 1.1rem;
}
.service-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 32rem;
  overflow: auto;
}
#home-confirmation {
  border: 2px solid #1b506d;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}
#personal-label img {
  width: 320px;
  max-width: 100%;
}
.services-view a {
  color: #155a80;
  text-decoration: underline;
}
@media (max-width: 600px) {
  .services-view {
    padding: 24px 16px 260px;
  }
  .service-tabs button {
    flex: 1 1 130px;
  }
}
@media print {
  body:has(#personal-label:not([hidden])) * {
    visibility: hidden;
  }
  #personal-label,
  #personal-label * {
    visibility: visible;
  }
  #personal-label {
    position: absolute;
    left: 0;
    top: 0;
    background: white;
  }
  #personal-label button {
    display: none;
  }
}

/* Separate public onboarding from the authenticated application shell. */
:root { --tab-height: 84px; --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px); }
.auth-screen { min-height: 100dvh; padding: calc(28px + var(--safe-top)) max(24px, env(safe-area-inset-right)) calc(24px + var(--safe-bottom)); display: flex; flex-direction: column; align-items: center; background: radial-gradient(ellipse at 50% 28%, #e6f0f1, transparent 55%), #fafbfc; }
.auth-screen .brand { margin: 0; gap: 4px; font-size: 28px; }
.auth-screen .brand img { margin-right: 8px; }
.auth-content { width: 100%; max-width: 440px; margin: auto; padding: 32px 0; text-align: center; }
.auth-art { width: 154px; height: 154px; margin: 0 auto 30px; border-radius: 40px; display: grid; place-items: center; background: #ffffffa8; border: 1px solid #fff; box-shadow: 0 18px 50px #32667412; }
.auth-screen h1 { font-size: clamp(32px, 7vw, 42px); line-height: 1.14; margin: 16px 0; letter-spacing: -1.5px; }
.auth-intro { font-size: 16px; line-height: 1.65; color: var(--muted); margin: 0 auto 26px; max-width: 340px; }
.auth-screen #login-block { display: flex; flex-direction: column; }
.auth-screen .google-button { order: -2; margin: 0; width: 100%; min-height: 56px; border-radius: 16px; }
.auth-screen .apple-button { order: -1; }
.auth-screen .setup-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.auth-screen .setup-choice button { width: auto; font-size: 14px; padding: 12px 8px; min-height: 52px; }
.auth-screen .login-note, .auth-footnote { font-size: 12px; line-height: 1.6; color: var(--muted); text-align: center; }
#auth-status { font-size: 14px; line-height: 1.5; margin: 12px 0; }
#auth-retry { min-height: 48px; }
.nav-item svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.topbar .new-conversation { min-height: 44px; }
#settings-view .sidebar-bottom { display: block; margin: 0 0 28px; }
#settings-view .private-note { display: none; }
#settings-view .account-card { background: #edf3f4; padding: 16px; border-radius: 16px; }
#settings-view .account-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#settings-view .account-card button { min-width: 44px; min-height: 44px; }
#history-dialog { width: min(92vw, 520px); max-height: 80dvh; border: 1px solid var(--line); border-radius: 24px; padding: 24px; color: var(--ink); }
#history-dialog::backdrop { background: #17263566; }
#history-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#history-dialog h2 { font-size: 22px; }
#history-dialog .history-heading { display: none; }
#history-dialog .history { display: block; max-height: none; overflow: visible; }
#history-dialog .history-item { max-width: none; min-width: 0; }
#history-dialog .history-item button { min-height: 48px; font-size: 16px; }
#history-dialog .sidebar-empty { display: block; font-size: 14px; }
body[data-auth="setup"] .sidebar, body[data-auth="setup"] .topbar > div { display: none; }
body[data-auth="setup"] .main-shell { margin-left: 0; }
body[data-auth="setup"] #main { padding-bottom: 32px; }
body[data-auth="welcome"] #notice, body[data-auth="setup"] #notice { left: 50%; bottom: calc(20px + var(--safe-bottom)); }
body[data-auth="setup"] .topbar { padding-top: var(--safe-top); height: calc(72px + var(--safe-top)); }
#main:focus, .view:focus, #auth-title:focus { outline: none; }

@media (max-width: 760px) {
  body[data-auth="app"] { overflow: hidden; }
  .workspace, .native-ios .workspace { padding: 0; height: 100dvh; min-height: 0; }
  .main-shell { height: 100%; display: flex; flex-direction: column; margin-left: 0; }
  .sidebar { display: contents; }
  .sidebar > .brand { display: none; }
  .navigation { height: calc(var(--tab-height) + var(--safe-bottom)); position: fixed; z-index: 10; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; padding: 8px max(6px, env(safe-area-inset-right)) calc(8px + var(--safe-bottom)) max(6px, env(safe-area-inset-left)); background: #fff; border-top: 1px solid #dce5e9; }
  .navigation .nav-item { height: auto; min-height: 54px; min-width: 0; flex-direction: column; gap: 5px; padding: 5px 1px; font-size: 10px; line-height: 1.2; border-radius: 12px; text-align: center; overflow-wrap: anywhere; }
  .navigation .nav-item.selected { background: #e7f1f2; color: #20576b; }
  .large-text .navigation .nav-item { font-size: 12px; }
  .topbar { flex-shrink: 0; height: calc(64px + var(--safe-top)); padding: var(--safe-top) 16px 0; background: #fafbfc; gap: 8px; }
  .topbar .breadcrumb, .topbar .slash, .topbar .private-badge { display: none; }
  .topbar strong { font-size: 22px; font-weight: 650; letter-spacing: -.6px; }
  .topbar-right { gap: 6px; }
  .topbar .icon-button { min-width: 44px; min-height: 44px; font-size: 22px; }
  .topbar .new-conversation { width: 44px; height: 44px; padding: 0; justify-content: center; font-size: 0; border-radius: 14px; }
  .topbar .new-conversation span { font-size: 26px; }
  #main { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior-y: contain; padding-bottom: calc(140px + var(--tab-height) + var(--safe-bottom)); scroll-padding-bottom: 200px; }
  .talk-view { min-height: 0; padding: 0 20px; }
  .welcome { margin: 0 auto; padding: 30px 0 16px; }
  .welcome .eyebrow { display: none; }
  .welcome h1 { font-size: 32px; margin: 8px 0 12px; }
  .welcome .intro { font-size: 15px; margin: 0; }
  .voice-stage { height: 180px; margin: 14px auto 0; }
  .voice-caption { font-size: 13px; }
  .suggestions { grid-template-columns: 1fr; gap: 8px; margin-top: 22px; }
  .suggestions button { display: flex; align-items: center; gap: 10px; padding: 14px 16px; min-height: 48px; text-align: left; }
  .suggestions span { margin: 0; }
  .suggestions strong { font-size: 14px; }
  #composer-wrap { left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); width: auto; bottom: calc(var(--tab-height) + var(--safe-bottom)); margin: 0; padding: 10px 0 0; max-width: none; }
  .composer { border-radius: 20px; padding: 8px; min-height: 60px; }
  .composer textarea, .native-ios .composer textarea { font-size: 16px; min-height: 40px; padding: 10px 6px; }
  .composer button { min-height: 44px; min-width: 44px; }
  .composer-footer { font-size: 11px; min-height: 40px; padding: 0 8px; }
  .composer-footer button { min-height: 40px; min-width: 44px; }
  #notice, .native-ios #notice { bottom: calc(122px + var(--tab-height) + var(--safe-bottom)); max-width: calc(100vw - 32px); }
  .settings-view, .services-view { padding: 24px 20px 32px; }
  .settings-view h1, .services-view h1 { font-size: 28px; line-height: 1.2; }
  .settings-view .intro { font-size: 15px; }
  .settings-view p, .services-view p { font-size: 15px; }
  body[data-auth="setup"] { overflow: auto; }
  body[data-auth="setup"] .workspace { height: auto; min-height: 100dvh; }
  body[data-auth="setup"] #main { overflow: visible; }
}
@media (max-height: 700px) {
  .auth-art { height: 94px; width: 94px; margin-bottom: 18px; border-radius: 24px; }
  .auth-art img { width: 56px; height: 64px; }
  .auth-content { padding: 20px 0; }
  .auth-screen { padding-top: calc(16px + var(--safe-top)); }
}
body[data-auth="setup"] #settings-view .sidebar-bottom { display: none; }

/* Short, optional setup lives after authentication, outside the app navigation. */
.auth-screen { background: #fafbfc; }
.auth-art { background: transparent; box-shadow: none; width: 112px; height: 112px; margin-bottom: 24px; }
.auth-art img { width: 76px; height: 88px; }
.auth-content h1 { font-size: clamp(28px, 7vw, 36px); letter-spacing: -1.1px; line-height: 1.18; }
.auth-content .auth-intro { margin: 12px 0 40px; font-size: 17px; }
#setup-start { display: block; margin: 16px auto 0; min-height: 48px; }
#auth-status { font-size: 14px; line-height: 1.5; }
#accessibility-dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; border: 1px solid #dce5e9; border-radius: 22px; padding: 24px; color: #1c2932; }
#accessibility-dialog::backdrop { background: #102c3b77; }
#accessibility-dialog h2 { margin: 0 0 12px; }
#accessibility-dialog button { min-height: 48px; margin-top: 12px; }
#accessibility-done { display: block; width: 100%; }
.onboarding-screen { max-width: 520px; min-height: 100dvh; margin: auto; padding: calc(12px + var(--safe-top)) 24px calc(24px + var(--safe-bottom)); }
.onboarding-header { display: flex; align-items: center; justify-content: space-between; min-height: 48px; font-weight: 600; }
.onboarding-content { padding-top: 36px; }
.onboarding-content h1 { font-size: 32px; letter-spacing: -1px; margin: 0 0 10px; }
.onboarding-content > p { color: #53636e; line-height: 1.5; }
.preference-row { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid #dce5e9; font-size: 17px; }
.preference-row input { width: 24px; height: 24px; flex-shrink: 0; accent-color: #24657a; }
.setup-connection { width: 100%; display: block; text-align: left; margin: 24px 0; border: 0; background: transparent; border-block: 1px solid #dce5e9; padding: 20px 0; color: #1c2932; font-size: 17px; }
.setup-connection span { display: block; margin-top: 6px; font-size: 14px; color: #53636e; }
.onboarding-screen button { min-height: 48px; }
#onboarding-continue { display: block; width: 100%; }
#onboarding-sign-out { display: block; margin: 10px auto 0; }
.settings-help { margin: 24px 0; }
.settings-help summary { min-height: 48px; padding: 14px 0; cursor: pointer; }
.settings-view .eyebrow, .settings-view .private-note { display: none; }
.settings-view > .intro { margin-bottom: 28px; }
.settings-view .accessibility-options { margin-bottom: 24px; }
body[data-auth="setup"] #notice { bottom: calc(16px + var(--safe-bottom)); }
.large-text .preference-row { font-size: 21px; }
#onboarding-title:focus { outline: none; }
.auth-content .google-button, .onboarding-screen .primary-button, #accessibility-dialog .primary-button { font-size: 17px; min-height: 54px; }
.auth-screen .text-button, .onboarding-screen .text-button, #accessibility-dialog .text-button { font-size: 15px; color: #235e73; }
.onboarding-header .text-button { font-size: 17px; }
@media (max-width: 760px) {
 .connection-card { padding: 18px; margin-top: 16px; }
 .capability-grid { gap: 0; }
 .capability-grid article { border: 0; border-bottom: 1px solid #dce5e9; border-radius: 0; background: transparent; padding: 20px 0; }
 .settings-view h1 { margin-top: 6px; }
 .auth-screen .brand { font-size: 24px; }
 .onboarding-content { padding-top: 24px; }
}
