@import url("/static/theme.css");

html, body { height: 100%; }

.title {
  height: 52px;
  padding: 18px 22px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.title .status { margin-left: auto; margin-top: 0; min-height: 0; text-align: right; }

.sign-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100% - 120px);
  padding: 24px 20px 48px;
  text-align: center;
}
.sign-in h1, .wordmark {
  margin: 14px 0 6px;
  font-size: 36px;
  font-weight: 650;
  letter-spacing: -0.045em;
}
.lead { margin: 0 0 22px; color: var(--copy); }

.composer {
  width: min(440px, 100%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  padding: 8px 8px 8px 16px;
  box-shadow: var(--shadow);
  min-height: 56px;
}
.composer[hidden] { display: none !important; }
.composer input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  padding: 8px 4px;
}
.composer input::placeholder { color: #b3b3b3; }
.go {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  flex: none;
}
.go svg { width: 16px; height: 16px; display: block; }
.go:disabled { opacity: 0.35; cursor: not-allowed; }

.switch {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.switch button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.switch button:hover { color: var(--ink); }
.switch button[hidden] { display: none; }

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  width: min(440px, 100%);
}
.chips a, .chips span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--copy);
  background: #fff;
}
.chips a:hover { color: var(--ink); text-decoration: none; border-color: #ccc; }

.legal {
  padding: 0 20px 32px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.legal a { text-decoration: underline; }

.sr-claim { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.shell { height: calc(100% - 52px); display: flex; flex-direction: column; }
.shell[hidden] { display: none !important; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 12px;
}
.search {
  flex: 1;
  background: var(--soft);
  border-radius: 12px;
  padding: 8px 12px;
}
.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}
.search input::placeholder { color: var(--muted); }
.who { color: var(--muted); font-size: 13px; }
.ghost {
  border: 0;
  background: none;
  color: var(--copy);
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.ghost:hover { color: var(--ink); text-decoration: none; }

.split {
  flex: 1;
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 0;
  margin: 0 12px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.rail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fafafa;
  border-right: 1px solid var(--line);
}
.rail-head {
  padding: 14px 14px 8px;
}
.rail-head strong {
  display: block;
  font-size: 13px;
  letter-spacing: -0.02em;
}
.rail-head small { display: block; margin-top: 4px; }
.rail .convos {
  flex: 1;
  border-right: 0;
  background: transparent;
}

.convos {
  margin: 0;
  padding: 8px;
  overflow: auto;
  background: #fafafa;
  border-right: 1px solid var(--line);
}
.convos li {
  list-style: none;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: start;
  padding: 9px 10px;
  border-radius: 14px;
  cursor: default;
}
.convos li:hover { background: #f0f0f2; }
.convos li.on { background: #111; color: #fff; }
.convos .orb { width: 36px; height: 36px; }
.convos .orb:before, .convos .orb:after { top: 11px; width: 5px; height: 5px; }
.convos .orb:before { left: 8px; }
.convos .orb:after { right: 8px; }
.convos strong {
  display: block;
  font-weight: 550;
  font-size: 13.5px;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.convos small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.convos li.on small { color: rgba(255,255,255,0.62); }
.convos .empty { padding: 20px 12px; color: var(--muted); display: block; }

.detail {
  overflow: auto;
  padding: 28px 32px;
  background: #fff;
}
.detail h1 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.035em;
}
.empty-state {
  height: 100%;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  gap: 12px;
}
.bubble {
  display: inline-block;
  max-width: 36em;
  background: #f2f2f3;
  border-radius: 18px;
  padding: 12px 16px;
  color: var(--ink);
  margin: 0 0 18px;
  line-height: 1.5;
}

.profile-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 20px 80px;
  text-align: center;
}
.profile-page .face {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
}
.profile-page .face:before, .profile-page .face:after {
  top: 22px;
  width: 8px;
  height: 8px;
}
.profile-page .face:before { left: 18px; }
.profile-page .face:after { right: 18px; }
.profile-page h1 {
  margin: 0 0 6px;
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .convos { border-right: 0; border-bottom: 1px solid var(--line); max-height: 40vh; }
}

.modal.wide { width: min(560px, 100%); }
.hint.bad { color: var(--bad); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 8px; }
.turn { margin: 0 0 14px; }
.turn .who {
  display: block;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.turn.assistant .bubble { background: #eef3f8; }
.turn.user .bubble { background: #f2f2f3; }
.share-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 12px 20px 64px;
}
.share-page h1 {
  margin: 8px 0 12px;
  font-size: 28px;
  letter-spacing: -0.04em;
}
.share-page .chips { justify-content: flex-start; }
.toolbar .btn { padding: 7px 14px; }

.detail .chips { justify-content: flex-start; width: auto; margin-top: 0; margin-bottom: 16px; }

.walk-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.walk-lead { margin: 0 0 22px; color: var(--copy); max-width: 42em; line-height: 1.5; }

.pod-banner {
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff6e8;
  border: 1px solid #f0ddb8;
  color: #5a4316;
  line-height: 1.5;
  font-size: 13px;
}
.pod-banner strong { display: block; margin-bottom: 4px; }

.walk-card {
  margin: 0 0 16px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f7f8;
}
.walk-card h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.walk-card p { margin: 0 0 12px; line-height: 1.5; }
.walk-card label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 10px 0 6px;
}
.walk-card .row, .spark-connect .row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.walk-card .field { margin-bottom: 10px; }
.walk-card .btn.ghost { text-decoration: none; display: inline-flex; align-items: center; }

.step {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 650;
  flex: none;
}

.you-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}
.you-name { margin: 0; font-weight: 650; font-size: 18px; letter-spacing: -0.03em; }
.face.lg { width: 44px; height: 44px; }
.face.lg:before, .face.lg:after { top: 13px; width: 6px; height: 6px; }
.face.lg:before { left: 11px; }
.face.lg:after { right: 11px; }

.token-box {
  margin: 0 0 8px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  word-break: break-all;
  font-size: 12px;
  line-height: 1.45;
}

.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.dash-list li:first-child { border-top: 0; }
.dash-list strong { display: block; }
.dash-list small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.dash-list .empty { color: var(--muted); border: 0; padding: 4px 0; display: block; }
.dash-list .row { margin: 0; }

.spark-connect {
  margin: 0 0 16px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f7f8;
}
.spark-connect h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.spark-connect p { margin: 0 0 12px; line-height: 1.5; }
.spark-connect label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 10px 0 6px;
}
.hint.ok { color: var(--ok, #1b7a4a); }

.auth-or {
  margin: 16px 0 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(440px, 100%);
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 550;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.google-btn:hover { border-color: #ccc; text-decoration: none; color: var(--ink); }
.google-btn svg { width: 18px; height: 18px; flex: none; }

.library-dock {
  z-index: 40;
  pointer-events: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: min(28rem, calc(100vw - 2rem));
  display: flex;
  position: fixed;
  bottom: 1rem;
  left: 1rem;
}
.library-dock-chip, .library-dock-panel { pointer-events: auto; }
.library-dock-chip {
  border: 1px solid #111;
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  display: inline-flex;
  background: #111;
  color: #fff;
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 12px 7px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.library-dock-chip-kicker {
  background: #f5d76e;
  color: #041018;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 9px;
}
.library-dock-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  width: min(28rem, calc(100vw - 2rem));
  padding: 14px 15px 15px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.library-dock-kicker {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  font-size: 9px;
}
.library-dock-copy {
  color: var(--copy);
  margin: 6px 0 10px;
  font-size: 12px;
  line-height: 1.4;
}
.library-dock-preview {
  background: #111;
  color: #f3f1ea;
  border-radius: 10px;
  max-height: 12rem;
  margin: 0;
  padding: 10px 11px;
  overflow: auto;
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  white-space: pre-wrap;
  font-size: 10px;
  line-height: 1.45;
}
.library-dock-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.library-dock-copy-btn, .library-dock-collapse {
  border: 1px solid #111;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  background: #111;
  color: #fff;
}
.library-dock-collapse { background: #fff; color: #111; }
.library-dock-copy-btn:disabled { opacity: 0.55; cursor: wait; }
.library-dock-expiry {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  color: #8a6d12;
  margin: 0 0 8px;
  font-size: 10px;
}
.library-dock-banner {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--copy);
}
.library-dock-banner.warn { color: var(--bad); }

@media (max-width: 800px) {
  .rail { border-right: 0; border-bottom: 1px solid var(--line); max-height: 40vh; }
  .dash-list li { flex-direction: column; }
}
