:root {
  color-scheme:dark;
  --bg:#101923;
  --panel:#192632;
  --panel2:#21323f;
  --ink:#f0f4f7;
  --muted:#a0b1bf;
  --line:#2b3c4a;
  --ice:#b7deef;
  --copper:#d6a77c;
  --cyan:#39dfff;
  --green:#6fffa4;
  --text:var(--ink);
  --radius:20px;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:15px;
  font-synthesis:none
}

* {
  box-sizing:border-box
}

html,body {
  /* No rubber-band past the top or bottom: the shell stays put in the home-screen app (John, 2026-09-18). */
  overscroll-behavior:none
}

body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  -webkit-font-smoothing:antialiased
}

button,input {
  font:inherit
}

button,a,input {
  -webkit-tap-highlight-color:transparent
}

button {
  cursor:pointer;
  color:inherit;
  border:0;
  background:none
}

button:disabled {
  opacity:.55;
  cursor:wait
}

a {
  color:inherit;
  text-decoration:none
}

button:focus-visible,a:focus-visible,input:focus-visible {
  outline:2px solid var(--ice);
  outline-offset:4px
}

button {
  touch-action:manipulation
}

h1,h2,p {
  margin:0
}

h1 {
  font-size:30px;
  line-height:1.16;
  letter-spacing:-1.1px;
  font-weight:650
}

h2 {
  font-size:22px;
  letter-spacing:-.5px
}

small {
  font-size:12px
}

input:not([type=radio]):not([type=checkbox]):not([type=hidden]) {
  width:100%;
  background:#16222d;
  color:var(--ink);
  border:1px solid #3c4e5d;
  border-radius:13px;
  padding:15px 16px;
  font-size:16px;
  min-height:51px
}

input::placeholder {
  color:#8296a7
}

/* iOS gives type=date an intrinsic shadow-DOM width that ignores width:100%
   and can run off the right edge (e.g. the signup birthday field). */
input[type=date] {
  -webkit-appearance:none;
  appearance:none;
  box-sizing:border-box;
  max-width:100%
}
/* An empty date field: WebKit draws today's date in it, which read as "already filled" (fresh eyes v2, 2026-09-26). */
input[type=date].empty { color:transparent }
input[type=date].empty::-webkit-date-and-time-value { color:transparent }
input[type=date].empty::-webkit-datetime-edit { color:transparent }
/* WebKit colours each part of the date on its own, so the field-level rule alone left "2026 09 26" showing
   (Sol's fresh-eyes run, 2026-09-26). */
input[type=date].empty::-webkit-datetime-edit-year-field,
input[type=date].empty::-webkit-datetime-edit-month-field,
input[type=date].empty::-webkit-datetime-edit-day-field,
input[type=date].empty::-webkit-datetime-edit-text { color:transparent; -webkit-text-fill-color:transparent }

label {
  display:block
}

fieldset {
  border:0;
  padding:0;
  margin:28px 0 0;
  min-width:0
}

legend {
  font-size:17px;
  font-weight:600;
  width:100%;
  margin-bottom:13px
}

legend span {
  float:right;
  color:var(--muted);
  font-size:12px;
  font-weight:400;
  padding-top:3px
}

.eyebrow {
  font-size:10px;
  letter-spacing:2px;
  font-weight:650;
  color:var(--muted)
}

.wordmark {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  font-size:39px;
  font-weight:750;
  letter-spacing:-2.5px;
  line-height:1
}

.wordmark span {
  color:var(--ice);
  font-size:29px;
  margin-left:2px
}

.primary,.secondary {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  border-radius:14px;
  min-height:53px;
  padding:14px 20px;
  font-weight:600;
  font-size:15px;
  width:100%
}

.primary {
  background:var(--ice);
  color:#12232f
}

.primary span {
  margin-left:auto;
  font-size:22px;
  line-height:1
}

.primary:hover {
  background:#ceeaf6
}

.secondary {
  background:#253745;
  color:var(--ink);
  border:1px solid #435767
}

.text-button {
  min-height:44px;
  padding:10px 4px;
  font-size:13px;
  color:var(--ice)
}

.subdued {
  color:var(--muted)
}

.intro {
  color:var(--muted);
  line-height:1.7;
  margin:12px 0 26px;
  font-size:14px
}

.form-error {
  color:#ffc0b9;
  font-size:13px;
  line-height:1.5;
  margin-top:12px
}

.form-error:empty {
  display:none
}


.tiny-dot {
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--ice);
  vertical-align:middle;
  margin-right:6px
}

.app-shell {
  max-width:480px;
  margin:auto;
  min-height:100dvh;
  border-inline:1px solid #1c2a35
}

.app-header {
  height:88px;
  padding:26px 24px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between
}





main {
  padding:10px 24px calc(98px + env(safe-area-inset-bottom))
}








.segmented {
  display:flex;
  border:1px solid var(--line);
  border-radius:10px;
  background:#14202b;
  padding:3px;
  gap:1px
}

.segmented button {
  font-size:11px;
  min-height:33px;
  padding:5px 13px;
  border-radius:7px;
  color:var(--muted)
}

.segmented button[aria-pressed=true] {
  background:#2a3d4b;
  color:var(--ink)
}


.radar {
  position:relative;
  width:100%;
  aspect-ratio:1;
  isolation:isolate
}








.vertical {
  width:1px;
  top:4%;
  bottom:4%;
  left:50%
}

.cardinal {
  position:absolute;
  font:10px ui-monospace,SFMono-Regular,monospace;
  color:#a2b6c6;
  background:var(--bg);
  padding:3px
}

.north {
  top:-8px;
  left:50%;
  transform:translateX(-50%)
}


.east {
  right:-8px;
  top:50%;
  transform:translateY(-50%)
}

.west {
  left:-8px;
  top:50%;
  transform:translateY(-50%)
}




.avatar {
  display:flex;
  flex:none;
  width:46px;
  height:46px;
  border-radius:50%;
  background:#2b4555;
  border:1px solid #527287;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:550;
  letter-spacing:.5px;
  color:#d6e8f3;
  position:relative;
  overflow:hidden
}

.avatar:before {
  content:"";
  position:absolute;
  width:140%;
  height:140%;
  border:1px solid #ffffff09;
  border-radius:50%;
  left:14%;
  top:21%
}

.tone-1 {
  background:#334752;
  border-color:#698392;
  color:#e0edf4
}

.tone-2 {
  background:#413b39;
  border-color:#8b7770;
  color:#efddd2
}

.tone-3 {
  background:#383e52;
  border-color:#707a9d;
  color:#e0e4f5
}

.tone-4 {
  background:#344741;
  border-color:#718b7f;
  color:#d7ece3
}

.tone-0 {
  background:#413c4d;
  border-color:#867893;
  color:#eadef3
}










.large {
  width:52px;
  height:52px;
  font-size:15px
}


.alias {
  font-size:17px;
  font-weight:600;
  color:var(--ink);
  letter-spacing:-.3px
}

.age {
  font-weight:400;
  color:var(--muted);
  font-size:13px;
  margin-left:3px
}

.sep {
  margin-inline:4px;
  color:var(--muted)
}



.direction-arrow {
  display:inline-block;
  color:var(--ice);
  margin-right:2px
}



.bottom-nav {
  position:fixed;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  width:min(100%,480px);
  display:flex;
  justify-content:space-around;
  padding:10px 18px max(10px,env(safe-area-inset-bottom));
  background:#121e28f5;
  border-top:1px solid #2a3a48;
  z-index:5;
  backdrop-filter:blur(16px)
}

.bottom-nav button {
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-width:76px;
  min-height:44px;
  color:#9aafbf;
  font-size:10px
}

.bottom-nav button[aria-current=page] {
  color:var(--ice)
}

.bottom-nav svg {
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.4;
  stroke-linecap:round;
  stroke-linejoin:round
}

.bottom-nav button[aria-current=page]:before {
  content:"";
  position:absolute;
  width:30px;
  height:2px;
  top:-13px;
  background:var(--ice);
  border-radius:2px
}

.bottom-nav i {
  position:absolute;
  top:-3px;
  right:19px;
  font-style:normal;
  font-size:9px;
  border-radius:10px;
  min-width:15px;
  height:15px;
  background:var(--ice);
  color:#142530;
  padding:2px
}

.bottom-nav i[hidden] {
  display:none
}

.me-section,.chats-section {
  padding-top:9px
}

.me-section>.eyebrow,.chats-section>.eyebrow {
  margin-bottom:11px
}

.me-section h1 {
  font-size:29px
}

.me-section form>label {
  font-size:13px;
  color:var(--muted);
  margin-bottom:9px
}

.type-options {
  display:flex;
  flex-wrap:wrap;
  gap:9px
}

.type-chip {
  position:relative
}

.type-chip input {
  position:absolute;
  opacity:0;
  width:1px;
  height:1px
}

.type-chip span {
  display:block;
  padding:12px 17px;
  border:1px solid #405361;
  border-radius:12px;
  background:#192732;
  font-size:13px;
  min-height:44px;
  cursor:pointer
}

.type-chip input:checked+span {
  background:var(--ice);
  border-color:var(--ice);
  color:#142835;
  font-weight:600
}

.type-chip input:focus-visible+span {
  outline:2px solid var(--ice);
  outline-offset:3px
}

.select-all {
  font-size:12px;
  margin-top:3px
}


.logout-form {
  text-align:center;
  margin-top:18px
}


.person-row {
  display:flex;
  align-items:center;
  gap:13px;
  padding:17px 0;
  border-bottom:1px solid var(--line);
  width:100%;
  text-align:left;
  min-width:0
}

.person-row>span:nth-child(2) {
  flex:1;
  min-width:0
}

.person-row strong,.request-card strong {
  font-size:15px;
  font-weight:550;
  display:block
}

.person-row em {
  font-size:12px;
  color:var(--muted);
  font-style:normal;
  font-weight:400;
  margin-left:4px
}

.person-row small,.request-card small {
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-top:7px;
  white-space:nowrap;
  text-overflow:ellipsis;
  overflow:hidden;
  line-height:1.4
}

.row-end {
  display:flex;
  gap:5px;
  align-items:center
}

.row-end>span {
  font-size:19px;
  color:var(--ice)
}

.list-heading {
  font-size:13px;
  font-weight:550;
  letter-spacing:0;
  margin:30px 0 13px;
  color:#b5c6d2
}

.list-heading span {
  margin-left:7px;
  color:var(--ice)
}

.request-card {
  display:flex;
  gap:14px;
  align-items:center;
  text-align:left;
  width:100%;
  border:1px solid #415563;
  background:#1a2b37;
  border-radius:17px;
  padding:18px
}

.request-indicator {
  display:block;
  font-size:12px;
  color:var(--ice);
  margin-top:13px
}

.request-indicator span {
  margin-left:8px
}

.empty {
  text-align:center;
  padding:65px 10px
}

.empty h2 {
  font-size:19px;
  line-height:1.4
}

.empty p {
  color:var(--muted);
  font-size:13px;
  line-height:1.7;
  margin:12px 0 23px
}

.empty.compact {
  padding:23px 5px
}


.empty .secondary {
  max-width:230px;
  margin:auto
}

dialog {
  position:fixed;
  inset:auto 0 0;
  margin:0 auto;
  width:min(100%,480px);
  max-width:480px;
  max-height:90dvh;
  background:#192632;
  color:var(--ink);
  border:1px solid #3c505f;
  border-bottom:0;
  border-radius:26px 26px 0 0;
  padding:12px 26px calc(22px + env(safe-area-inset-bottom));
  box-shadow:0 -20px 90px #0006
}

dialog::backdrop {
  background:#060e17b8;
  backdrop-filter:blur(4px)
}

.sheet-handle {
  height:4px;
  width:35px;
  border-radius:4px;
  background:#5c6c78;
  margin:0 auto 21px
}

.close-sheet {
  position:absolute;
  right:16px;
  top:16px;
  font-size:26px;
  color:#b4c5d2;
  width:44px;
  height:44px
}

.profile-top {
  text-align:center
}

.hero-avatar {
  width:88px;
  height:88px;
  font-size:25px;
  margin:10px auto 22px
}

.profile-top .eyebrow {
  font-size:9px;
  letter-spacing:1.6px;
  margin-bottom:13px
}

.profile-top h2 {
  font-size:30px;
  letter-spacing:-.8px
}

.profile-top h2>span {
  font-size:19px;
  font-weight:400;
  color:var(--muted)
}

.profile-top>p:last-child {
  font-size:12px;
  color:var(--muted);
  margin-top:11px
}

.bio {
  font-size:15px;
  line-height:1.8;
  text-align:center;
  margin:24px 8px
}

.interests-line {
  padding:18px 0;
  border-top:1px solid #354858;
  border-bottom:1px solid #354858;
  display:flex;
  align-items:center;
  gap:15px;
  font-size:12px;
  color:var(--muted)
}

.interests-line>span {
  white-space:nowrap
}

.interests-line>div {
  display:flex;
  gap:6px;
  flex-wrap:wrap
}

.mini-chip {
  display:inline-block;
  border:1px solid #4c5d6a;
  padding:7px 10px;
  border-radius:8px;
  font-size:11px
}

.mini-chip.highlight {
  border-color:#7398aa;
  color:var(--ice);
  background:#29424f
}

.connection-note {
  color:#bbccd8;
  text-align:center;
  font-size:12px;
  line-height:1.7;
  margin:20px 0
}

.sheet-foot {
  font-size:10px;
  color:var(--muted);
  text-align:center;
  margin:12px 0 2px
}

dialog>.text-button {
  display:block;
  margin:auto
}

.conversation {
  margin:-2px -7px 0;
  display:flex;
  flex-direction:column;
  height:calc(100dvh - 201px - env(safe-area-inset-bottom));
  min-height:400px
}

.conversation-header {
  display:flex;
  gap:10px;
  align-items:center;
  padding-bottom:18px;
  border-bottom:1px solid var(--line)
}

.conversation-header .avatar {
  width:40px;
  height:40px;
  font-size:11px
}

.conversation-header h1 {
  font-size:16px;
  letter-spacing:0
}

.conversation-header p {
  color:var(--muted);
  font-size:11px;
  margin-top:5px
}

.icon-button {
  width:35px;
  min-height:44px;
  flex-shrink:0;
  font-size:23px;
  padding:0;
  color:#b7ccd9
}

.chat-more {
  margin-left:auto
}

.message-stream {
  flex:1;
  min-height:0;
  overflow-y:auto;
  padding:22px 1px;
  display:flex;
  flex-direction:column;
  gap:12px;
  overscroll-behavior:contain
}


.bubble {
  font-size:14px;
  line-height:1.6;
  max-width:86%;
  padding:13px 16px;
  overflow-wrap:anywhere;
  white-space:pre-wrap
}

.bubble.incoming {
  align-self:flex-start;
  background:#263744;
  border-radius:17px 17px 17px 4px
}

.bubble.outgoing {
  align-self:flex-end;
  background:#b7deef;
  color:#132734;
  border-radius:17px 17px 4px 17px
}

.composer {
  display:flex;
  align-items:center;
  gap:9px;
  padding:8px 0 6px;
  border-top:1px solid var(--line)
}

.composer input,
.composer #message {
  min-width:0;
  min-height:46px;
  height:46px;
  padding:11px 16px;
  border-radius:23px
}

.composer button[type=submit] {
  flex:none;
  width:46px;
  height:46px;
  border-radius:50%;
  background:var(--ice);
  color:#172b38;
  font-size:24px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0
}

.chat-wait {
  text-align:center;
  padding:25px 7px
}

.chat-wait h2 {
  font-size:23px
}

.chat-wait>p {
  font-size:13px;
  line-height:1.8;
  color:var(--muted);
  margin:14px 0 25px
}

.chat-wait>.primary {
  margin-bottom:6px
}

.demo-control {
  border:1px dashed #4a606f;
  border-radius:17px;
  padding:22px 18px;
  margin-top:30px
}

.demo-control p {
  font-size:12px;
  color:var(--muted);
  margin:12px 0 20px
}

.demo-control .eyebrow {
  font-size:9px;
  letter-spacing:1.5px
}

#offline-note {
  position:fixed;
  left:50%;
  bottom:calc(var(--nav-h,69px) + env(safe-area-inset-bottom) + 10px);
  transform:translateX(-50%);
  z-index:30;
  padding:8px 14px;
  border-radius:999px;
  background:#ffb547;
  color:#2a1a05;
  font-size:12px;
  font-weight:600;
  box-shadow:0 4px 18px #0008;
  pointer-events:none
}

#toast {
  position:fixed;
  left:50%;
  /* Top of the screen, under the header. At the bottom it sat on the radar and hid the compass heading. */
  top:calc(56px + env(safe-area-inset-top));
  width:max-content;
  max-width:calc(100% - 32px);
  transform:translate(-50%,-12px);
  padding:13px 18px;
  background:#d7eaf3;
  color:#172b38;
  border-radius:13px;
  font-size:13px;
  line-height:1.4;
  box-shadow:0 10px 30px #0005;
  opacity:0;
  /* Hidden, not just transparent: a faded toast kept its text and its Undo button for screen readers and for the
     testers' page reader, which read "Chat archived. Undo" on every screen for ten minutes (2026-09-27). */
  visibility:hidden;
  transition:opacity .15s,transform .15s,visibility .15s;
  pointer-events:none;
  z-index:30
}

#toast.show {
  opacity:1;
  visibility:visible;
  transform:translate(-50%,0);
  pointer-events:auto
}

#toast .toast-undo {
  margin-left:14px;
  min-height:32px;
  padding:4px 10px;
  border:1px solid #172b3866;
  border-radius:8px;
  background:transparent;
  color:#0b3d5c;
  font:inherit;
  font-weight:600
}

.loading {
  color:var(--muted);
  text-align:center;
  padding-top:100px
}

.sr-only {
  position:absolute!important;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap
}

.noscript {
  padding:24px;
  text-align:center
}

.login-body {
  background:radial-gradient(ellipse at 50% 20%,#243b4b44,transparent 60%),var(--bg)
}

.login-shell {
  max-width:420px;
  min-height:100dvh;
  padding:calc(28px + env(safe-area-inset-top)) 28px 22px;
  margin:auto
}

.login-top {
  display:flex;
  align-items:center;
  justify-content:space-between
}

.login-top .eyebrow {
  font-size:9px;
  letter-spacing:1.7px
}



.o1 {
  width:90px;
  height:90px
}

.o2 {
  width:150px;
  height:150px
}

.o3 {
  width:206px;
  height:206px;
  border-style:dashed;
  border-color:#3b52624a
}




.d1 {
  left:25%;
  top:25%
}

.d2 {
  right:19%;
  top:55%;
  background:#79655c;
  border-color:var(--copper)
}

.d3 {
  left:40%;
  bottom:12%;
  width:7px;
  height:7px
}

.login-copy .eyebrow {
  font-size:9px;
  letter-spacing:1.7px;
  margin-bottom:12px
}

.login-copy h1 {
  font-size:38px;
  letter-spacing:-1.5px;
  line-height:1.12
}

.login-copy>p:last-child {
  font-size:13px;
  color:var(--muted);
  line-height:1.7;
  margin-top:14px
}

.login-form {
  margin-top:27px
}

.login-form label {
  font-size:12px;
  color:#b9c8d2;
  margin:16px 0 8px
}

.login-form .primary {
  margin-top:24px
}

.login-form .remember-option {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  margin:8px 0 -8px;
  color:#d7e3ea;
  cursor:pointer
}

.login-form .remember-option input {
  flex:0 0 auto;
  width:20px;
  height:20px;
  margin:0;
  accent-color:var(--ice)
}

.login-form .remember-option span {
  line-height:20px
}

.login-foot {
  text-align:center;
  color:#c0cdd6;
  font-size:10px;
  line-height:1.9;
  margin-top:24px
}

.login-foot span {
  color:var(--muted)
}

@media(min-width:700px) {
  body:not(.login-body) {
    background:radial-gradient(ellipse at 20% 15%,#2a435644,transparent 50%),radial-gradient(ellipse at 90% 90%,#473f4433,transparent 60%),#0b131b
  }

  .app-shell {
    background:var(--bg);
    box-shadow:0 0 100px #0003
  }

  .login-shell {
    padding-top:45px;
    max-width:430px
  }


  .login-copy h1 {
    font-size:43px
  }

  .login-body {
    background:radial-gradient(ellipse at 50% 30%,#29465866,transparent 55%),#0b131b
  }

  dialog {
    bottom:24px;
    border-bottom:1px solid #3c505f;
    border-radius:26px
  }


}

@media(max-width:360px) {
  main {
    padding-inline:18px
  }

  .app-header {
    padding-inline:18px
  }

  h1 {
    font-size:27px
  }

  .type-chip span {
    padding-inline:14px
  }





  .alias {
    font-size:15px
  }

  .large {
    width:45px;
    height:45px
  }


  .login-copy h1 {
    font-size:34px
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    scroll-behavior:auto!important;
    transition:none!important;
    animation:none!important
  }
}

