:root {
  --paper: #f6f5f1;
  --surface: #fff;
  --ink: #202521;
  --muted: #687068;
  --line: #e2e5de;
  --green: #254d3d;
  --green-soft: #eaf1eb;
  --coral: #c85b40;
  --coral-ink: #aa4833;
  --coral-soft: #f9eee8;
  --warning: #80571b;
  --warning-soft: #fff5df;
  --danger: #a53832;
  --radius: 14px;
  --shadow: 0 18px 60px #14231b14;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button,
input,
select {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--coral);
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 600;
}
h2 {
  font-size: 1.5rem;
  font-weight: 600;
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
}
a {
  color: inherit;
}
button {
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}
input,
select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cdd3ca;
  background: #fff;
  border-radius: 8px;
  color: var(--ink);
}
input:hover,
select:hover {
  border-color: #8f9b90;
}
input:focus,
select:focus {
  border-color: var(--green);
}
label {
  display: block;
  font-size: 0.87rem;
  font-weight: 600;
  margin: 18px 0 7px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.6;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.primary {
  background: var(--green);
  color: #fff;
}
.primary:hover {
  background: #163c2c;
}
.subtle {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.subtle:hover {
  background: var(--green-soft);
  border-color: #c1cfc3;
}
.danger {
  background: var(--danger);
  color: #fff;
}
.danger:hover {
  background: #812a25;
}
.button:disabled {
  cursor: wait;
  opacity: 0.55;
}
.full {
  width: 100%;
}
.field-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 10px;
}
.form-error {
  font-size: 0.875rem;
  color: var(--danger);
  margin: 16px 0;
  padding: 10px 12px;
  border-left: 3px solid var(--danger);
  background: #fbeeee;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.09em;
  text-decoration: none;
}
.brand-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: var(--coral);
  align-self: flex-end;
  margin: 0 0 13px 4px;
}
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  padding: 12px;
  background: white;
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100svh;
}
.auth-story {
  background: #202a24;
  color: #f6f5ef;
  padding: 46px clamp(32px, 6vw, 88px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.auth-story > .eyebrow {
  margin-top: auto;
  color: #c4cdc2;
}
.auth-story h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1.08;
  margin-top: 28px;
  letter-spacing: -0.055em;
}
.auth-story > p {
  color: #c8cec6;
  max-width: 390px;
  margin-top: 28px;
  font-size: 1.02rem;
  line-height: 1.8;
}
.story-note {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #c4cdc2;
  font-size: 0.75rem;
  margin-top: auto;
  padding-top: 80px;
}
.small-line {
  width: 35px;
  height: 2px;
  background: var(--coral);
}
.auth-main {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 40px 90px;
  background: var(--paper);
}
.auth-box {
  width: min(100%, 370px);
  margin: auto;
}
.auth-box > .eyebrow {
  color: var(--coral-ink);
  margin-bottom: 16px;
}
.auth-box h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}
.auth-box > .muted {
  font-size: 0.9rem;
  margin-bottom: 25px;
}
.auth-box .primary {
  margin-top: 26px;
  justify-content: space-between;
}
.auth-note {
  font-size: 0.79rem;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 26px;
}
.auth-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--muted);
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 28px;
}
.app-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100svh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 25px 23px;
}
.workspace-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 29px 0 38px;
}
.workspace-name span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 400;
  margin-top: 3px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav-item {
  min-height: 48px;
  border: none;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}
.nav-index {
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  opacity: 0.7;
}
.nav-item:hover {
  background: var(--paper);
  color: var(--ink);
}
.nav-item.active {
  background: var(--green-soft);
  color: var(--green);
  font-weight: 600;
}
.sidebar-bottom {
  margin-top: auto;
  display: grid;
  grid-template-columns: 33px 1fr;
  gap: 10px;
  align-items: center;
  padding-top: 30px;
}
.avatar {
  background: var(--green-soft);
  height: 33px;
  width: 33px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 600;
}
.identity {
  min-width: 0;
}
.identity strong,
.identity span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.identity strong {
  font-size: 0.8rem;
}
.identity span {
  font-size: 0.65rem;
  color: var(--muted);
}
.logout {
  grid-column: 1/-1;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.73rem;
  padding: 10px 0;
  min-height: 44px;
}
.logout:hover {
  color: var(--danger);
}
.app-main {
  padding: 0 clamp(24px, 4.5vw, 66px);
  max-width: 1600px;
  width: 100%;
  margin: auto;
}
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  height: 85px;
}
.app-header > .eyebrow {
  color: var(--muted);
  font-size: 0.6rem;
}
.privacy-label {
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.view {
  padding-top: 47px;
  min-height: calc(100svh - 160px);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 36px;
}
.page-heading .eyebrow {
  color: var(--coral-ink);
  margin-bottom: 10px;
  font-size: 0.6rem;
}
.page-heading h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
}
.heading-dot {
  color: var(--coral);
}
.page-heading .muted {
  font-size: 0.86rem;
  margin-top: 13px;
}
.overview {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 18px 0 24px;
  font-size: 0.76rem;
}
.overview > span:first-child {
  font-weight: 600;
}
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 295px), 1fr));
  gap: 18px;
}
.account-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.account-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.number-icon {
  width: 40px;
  height: 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
  display: grid;
  place-items: center;
}
.number-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--green);
  fill: none;
  stroke-width: 1.7;
}
.status-pill {
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 30px;
  padding: 5px 9px;
  background: var(--paper);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.status-pill::before {
  content: "";
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill.success {
  background: var(--green-soft);
  color: var(--green);
}
.status-pill.pending,
.status-pill.warning {
  color: var(--warning);
  background: var(--warning-soft);
}
.account-card h3 {
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.account-phone {
  font-size: 0.82rem;
  color: var(--muted);
}
.account-details {
  font-size: 0.73rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.account-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}
.account-actions .button {
  font-size: 0.75rem;
  min-height: 44px;
  padding: 9px 12px;
}
.text-button {
  padding: 9px 7px;
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.72rem;
  margin-left: auto;
}
.text-button:hover {
  color: var(--danger);
}
.empty-state {
  grid-column: 1/-1;
  border: 1px dashed #c3cec4;
  border-radius: var(--radius);
  padding: 54px 30px;
  text-align: center;
  background: #f9faf6;
}
.empty-state h2 {
  font-size: 1.5rem;
  margin-bottom: 13px;
}
.empty-state p {
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto 23px;
}
.quiet-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.73rem;
  margin-top: 26px;
  max-width: 660px;
  line-height: 1.7;
}
.note-symbol {
  display: grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  border: 1px solid #aab4a9;
  border-radius: 50%;
  font-family: serif;
}
.surface {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.65rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 22px 0;
  margin-top: 40px;
}
.banner {
  background: var(--green-soft);
  padding: 15px 17px;
  border-radius: 8px;
  color: var(--green);
  font-size: 0.8rem;
  line-height: 1.65;
}
.error-banner {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: var(--danger);
  background: #fbeeee;
}
.error-banner .button {
  flex: none;
}
.history-toolbar {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  margin-bottom: 22px;
}
.history-toolbar label {
  margin-top: 0;
}
.input-action {
  display: flex;
  gap: 10px;
}
.input-action input {
  min-width: 0;
}
.history-layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 530px;
}
.chat-pane {
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  max-height: 800px;
  overflow: auto;
}
.chat-filters {
  padding: 0 3px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.chat-filters input {
  font-size: 0.8rem;
}
.filter-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 2px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.72rem;
}
.switch-track {
  width: 27px;
  height: 16px;
  background: #cfd5cd;
  border-radius: 20px;
  padding: 3px;
  display: flex;
  align-items: center;
}
.switch-track::after {
  content: "";
  height: 10px;
  width: 10px;
  background: white;
  border-radius: 50%;
  transition: transform 0.16s;
}
.filter-switch[aria-checked="true"] .switch-track {
  background: var(--green);
}
.filter-switch[aria-checked="true"] .switch-track::after {
  transform: translateX(11px);
}
.chat-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 11px;
  margin-bottom: 3px;
  color: var(--ink);
}
.chat-item:hover {
  background: var(--paper);
}
.chat-item.active {
  background: var(--green-soft);
  border-color: #d4e3d5;
}
.chat-item strong {
  font-size: 0.8rem;
  display: block;
  overflow-wrap: anywhere;
}
.chat-item span {
  font-size: 0.65rem;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.message-pane {
  min-width: 0;
  padding: 23px;
}
.message-header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.message-header h2 {
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}
.message-header .muted {
  font-size: 0.7rem;
  margin-top: 7px;
}
.message-list {
  padding-top: 10px;
  max-height: 660px;
  overflow: auto;
}
.message-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.message-byline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.72rem;
  flex-wrap: wrap;
}
.message-byline strong {
  color: var(--green);
}
.message-byline time {
  color: var(--muted);
  font-size: 0.65rem;
}
.message-context {
  color: var(--muted);
  font-size: 0.65rem;
  margin-top: 4px;
}
.message-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.75;
  font-size: 0.85rem;
  margin-top: 10px;
}
.attachment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 12px;
  font-size: 0.72rem;
}
.attachment > span {
  overflow-wrap: anywhere;
  min-width: 0;
}
.attachment .button {
  font-size: 0.7rem;
  flex: none;
  min-height: 44px;
  padding: 8px 11px;
}
.empty-inline {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  padding: 35px 18px;
  line-height: 1.8;
}
.load-more {
  display: flex;
  margin: 20px auto 0;
}
.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.connect-card > .eyebrow {
  font-size: 0.6rem;
  color: var(--coral);
}
.connect-card h2 {
  margin: 18px 0 13px;
  font-size: 1.35rem;
}
.connect-card .muted {
  font-size: 0.83rem;
}
.copy-field {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 25px 0;
}
.copy-field code {
  font-family: monospace;
  overflow-wrap: anywhere;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  flex: 1;
  padding: 14px 11px;
  font-size: 0.73rem;
  min-width: 0;
}
.copy-field .button {
  flex: none;
}
.instruction-card h2 {
  font-size: 1.2rem;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 26px 0;
}
.steps li {
  display: flex;
  gap: 16px;
  margin-top: 22px;
}
.steps li > span {
  color: var(--coral-ink);
  font-size: 0.68rem;
  padding-top: 2px;
}
.steps strong {
  font-size: 0.82rem;
  font-weight: 600;
}
.steps p {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.75;
}
.prompt-examples {
  margin: 32px 0 12px;
  padding-left: 20px;
  border-left: 2px solid var(--coral);
}
.prompt-examples > .eyebrow {
  color: var(--muted);
  font-size: 0.6rem;
}
.prompt-examples > p:not(.eyebrow) {
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin-top: 14px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.section-heading h2 {
  font-size: 1.2rem;
}
.grant-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}
.grant-item h3 {
  font-size: 1rem;
}
.grant-item p {
  font-size: 0.73rem;
  color: var(--muted);
  margin-top: 7px;
}
.invite-section {
  margin-top: 22px;
  max-width: 660px;
}
.invite-section > .eyebrow {
  color: var(--coral-ink);
  margin-bottom: 12px;
}
.invite-section > h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.invite-section > .muted {
  font-size: 0.83rem;
}
.invite-section .banner {
  margin-top: 20px;
}
.invite-section .copy-field {
  margin: 12px 0 0;
}
.invite-section .copy-field input {
  font-size: 0.72rem;
}
.dialog {
  width: min(92vw, 440px);
  max-height: 90svh;
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow);
  color: var(--ink);
}
.dialog::backdrop {
  background: #17251dcc;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dialog-heading .eyebrow {
  color: var(--coral-ink);
  font-size: 0.6rem;
}
.dialog-close {
  width: 44px;
  height: 44px;
  margin: -12px -12px -8px 0;
  background: none;
  border: 0;
  font-size: 1.7rem;
  color: var(--muted);
  border-radius: 50%;
}
.dialog-close:hover {
  background: var(--paper);
}
.dialog h2 {
  font-size: 1.7rem;
}
.dialog > .muted,
.dialog form > .muted {
  font-size: 0.83rem;
  margin-top: 16px;
  line-height: 1.7;
}
.dialog .full {
  margin-top: 23px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
}
.qr-space {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 14px;
  min-height: 265px;
  margin-top: 24px;
  background: var(--paper);
  border-radius: 12px;
  padding: 20px;
}
.qr-space img {
  max-width: 100%;
  width: 220px;
  height: 220px;
  object-fit: contain;
  background: white;
  padding: 8px;
}
.qr-space p {
  font-size: 0.83rem;
  color: var(--muted);
}
.pair-dialog .quiet-note {
  margin-top: 18px;
  font-size: 0.7rem;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 20px;
  border: 1px solid #426650;
  background: var(--green);
  color: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: calc(100vw - 32px);
  font-size: 0.82rem;
  z-index: 100;
}
@media (min-width: 1450px) {
  .connect-grid {
    grid-template-columns: 1.1fr 1fr;
  }
  .history-layout {
    grid-template-columns: 315px minmax(0, 1fr);
  }
}
@media (max-width: 1000px) {
  .app-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .sidebar {
    padding: 22px 15px;
  }
  .nav-item {
    font-size: 0.75rem;
    gap: 8px;
    padding: 9px;
  }
  .app-main {
    padding: 0 25px;
  }
  .connect-grid {
    grid-template-columns: 1fr;
  }
  .history-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .history-toolbar {
    grid-template-columns: 200px 1fr;
  }
  .overview {
    flex-direction: column;
    gap: 7px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .message-pane {
    padding: 17px;
  }
}
@media (max-width: 720px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 28px 25px 32px;
  }
  .auth-story .wordmark {
    font-size: 2rem;
  }
  .auth-story > .eyebrow {
    margin-top: 40px;
    font-size: 0.59rem;
  }
  .auth-story h1 {
    font-size: 2.5rem;
    margin-top: 12px;
  }
  .auth-story > p {
    font-size: 0.87rem;
    margin-top: 15px;
  }
  .story-note {
    display: none;
  }
  .auth-main {
    padding: 42px 25px 80px;
  }
  .auth-box {
    width: 100%;
    max-width: 420px;
  }
  .auth-box h2 {
    font-size: 1.8rem;
  }
  .auth-footer {
    left: 25px;
    right: 25px;
    bottom: 23px;
  }
  .app-shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 14px 20px 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
  }
  .sidebar .wordmark {
    font-size: 2rem;
  }
  .brand-dot {
    margin-bottom: 10px;
  }
  .workspace-name {
    display: none;
  }
  .sidebar nav {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    gap: 2px;
    padding-bottom: 10px;
    order: 3;
  }
  .nav-item {
    font-size: 0.68rem;
    padding: 9px 5px;
    min-height: 44px;
    justify-content: center;
    text-align: center;
    line-height: 1.35;
  }
  .nav-index {
    display: none;
  }
  .sidebar-bottom {
    padding: 0;
    margin: 0;
    display: flex;
    gap: 9px;
    max-width: 185px;
  }
  .identity {
    display: none;
  }
  .logout {
    font-size: 0.67rem;
    white-space: nowrap;
  }
  .avatar {
    width: 28px;
    height: 28px;
  }
  .app-main {
    padding: 0 20px;
  }
  .app-header {
    height: 52px;
  }
  .app-header > .eyebrow {
    font-size: 0.55rem;
  }
  .privacy-label {
    font-size: 0.65rem;
  }
  .view {
    padding-top: 30px;
    min-height: calc(100svh - 230px);
  }
  .page-heading {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
  }
  .page-heading .button {
    width: 100%;
  }
  .page-heading h1 {
    font-size: 2.25rem;
  }
  .page-heading .muted {
    font-size: 0.8rem;
    line-height: 1.7;
    max-width: 370px;
  }
  .account-grid {
    grid-template-columns: 1fr;
  }
  .account-card {
    padding: 21px;
  }
  .overview {
    font-size: 0.72rem;
    padding-top: 15px;
  }
  .empty-state {
    padding: 35px 20px;
  }
  .empty-state h2 {
    font-size: 1.25rem;
  }
  .history-toolbar {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .input-action {
    gap: 8px;
  }
  .input-action .button {
    padding: 10px 12px;
  }
  .history-layout {
    display: block;
  }
  .chat-pane {
    border-right: none;
    border-bottom: 1px solid var(--line);
    max-height: 320px;
  }
  .chat-list {
    display: flex;
    flex-direction: column;
    max-height: 165px;
    overflow: auto;
  }
  .chat-filters {
    display: flex;
    gap: 12px;
    align-items: center;
  }
  .chat-filters input {
    min-width: 0;
  }
  .filter-switch {
    flex: none;
    font-size: 0.65rem;
  }
  .message-pane {
    padding: 18px;
  }
  .message-header {
    gap: 9px;
  }
  .message-header .button {
    font-size: 0.7rem;
    padding: 9px;
  }
  .message-list {
    max-height: none;
  }
  .message-byline {
    font-size: 0.73rem;
  }
  .message-text {
    font-size: 0.85rem;
  }
  .surface {
    padding: 22px;
  }
  .copy-field {
    flex-wrap: wrap;
  }
  .copy-field code {
    flex-basis: 100%;
  }
  .copy-field .button {
    width: 100%;
  }
  .section-heading {
    align-items: flex-start;
  }
  .section-heading h2 {
    font-size: 1.08rem;
  }
  .grant-item {
    align-items: flex-start;
    gap: 10px;
  }
  .grant-item .button {
    font-size: 0.7rem;
    padding: 10px;
  }
  .grant-item h3 {
    font-size: 0.9rem;
  }
  .app-footer {
    font-size: 0.61rem;
  }
  .app-footer span:last-child {
    max-width: 130px;
    text-align: right;
  }
  .dialog {
    padding: 24px;
  }
  .dialog h2 {
    font-size: 1.5rem;
  }
  .dialog-actions .button {
    flex: 1;
  }
  .qr-space {
    min-height: 250px;
  }
  .error-banner {
    align-items: flex-start;
  }
  .error-banner .button {
    font-size: 0.72rem;
  }
  .prompt-examples > p:not(.eyebrow) {
    font-size: 0.87rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
