:root {
  --bg: #FFFFFF;
  --panel: #F4F6F5;
  --panel-2: #EDF1EF;
  --line: #E6EBE8;
  --line-soft: #EFF2F0;
  --teal: #114041;
  --teal-700: #0C3132;
  --teal-050: #E7EEED;
  --ink: #0F1C1C;
  --muted: #5F726F;
  --muted-2: #93A29F;
  --lime: #ADFF1D;
  --lime-050: #F1FEDB;
  --lime-edge: #CBF576;
  --warn: #E5484D;
  --warn-050: #FCEBEB;
  --warn-edge: #F3C4C5;
  --r-m: 4px;
  --r-pill: 4px;
  --sf: 'Sora', 'Manrope', system-ui, sans-serif;
  --mono: ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --shadow: 0 1px 2px rgba(15, 28, 28, .05), 0 6px 18px -10px rgba(15, 28, 28, .12);
}

* {
  box-sizing: border-box
}

:root {
  color-scheme: light
}

html {
  background: var(--panel-2)
}

body {
  margin: 0;
  font-family: var(--sf);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  font-size: 15px;
  background: radial-gradient(1200px 600px at 80% -10%, #E8F0EE 0, transparent 60%), var(--panel-2);
  padding-top: env(safe-area-inset-top, 0)
}

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -.022em;
  font-weight: 600;
  line-height: 1.15
}

p {
  margin: 0
}

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

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

svg {
  flex: none;
  display: block
}

input,
textarea,
select {
  font: inherit;
  color: inherit
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px
}

img {
  max-width: 100%;
  display: block
}

.app {
  max-width: 440px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 60px -22px rgba(12, 42, 43, .22)
}

.grow {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  min-height: 52px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line)
}

.nav .ic {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--teal);
}

.nav .ic.g {
  background: var(--teal);
  color: #fff;
}

.nav .ic svg {
  color: #fff;
}

.nav h3 {
  font-size: 17px;
  font-weight: 600;
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

.nav h3.left {
  text-align: left;
  white-space: nowrap;
}

.nav .sp {
  flex: 0;
}

.nav .act {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--teal);
}

.nav .act svg {
  color: #fff;
}

.pad {
  padding: 8px 16px 20px
}

.stack>*+* {
  margin-top: 14px
}

.dim {
  color: var(--muted-2)
}

.mono {
  font-family: var(--mono)
}

.center {
  text-align: center
}

.group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow)
}

.glabel {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 16px 6px 7px
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
  position: relative
}

.row:last-child {
  border-bottom: 0
}

.row .txt {
  min-width: 0;
  flex: 1
}

.row .txt b {
  font-size: 14.5px;
  font-weight: 600;
  display: block;
  line-height: 1.25
}

.row .txt small {
  font-size: 12px;
  color: var(--muted);
  display: block;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.row .chev {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none
}

.row .chev svg {
  width: 14px;
  height: 14px
}

.row.tap:active {
  background: var(--panel)
}

.row-r {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: none
}

.mrow {
  padding: 15px 14px
}

.menu-ic {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--teal-050);
  color: var(--teal);
  display: grid;
  place-items: center;
  flex: none
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  background: var(--teal-050);
  color: var(--teal)
}

.avatar.sm {
  width: 30px;
  height: 30px;
  font-size: 11.5px
}

.avatar.ink {
  background: var(--teal);
  color: #fff
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--panel)
}

.badge .d {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: currentColor
}

.badge.teal {
  background: var(--teal-050);
  color: var(--teal);
  border-color: #CADCDA
}

.badge.live {
  background: var(--lime-050);
  color: #3D6100;
  border-color: var(--lime-edge)
}

.badge.live .d {
  background: var(--lime)
}

.badge.warn {
  background: var(--warn-050);
  color: var(--warn);
  border-color: var(--warn-edge)
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600
}

.btn.teal {
  background: var(--teal);
  color: #fff
}

.btn.teal:active {
  background: var(--teal-700)
}

.btn.lime {
  background: var(--lime);
  color: var(--teal-700)
}

.btn.line {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink)
}

.btn.block {
  width: 100%
}

.btn[disabled] {
  opacity: .5;
  pointer-events: none
}

.field {
  margin-bottom: 14px
}

.field>label:not(.drop) {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink)
}

.hint {
  font-size: 12px;
  color: var(--muted)
}

.input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 15.5px;
  font-family: inherit
}

.input::placeholder {
  color: var(--muted-2)
}

.input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-050)
}

textarea.input {
  height: auto;
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.5
}

.pin-label {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: -.02em
}

.pin {
  display: flex;
  gap: 12px;
  justify-content: center;
  position: relative
}

.pin i {
  width: 54px;
  height: 62px;
  border-radius: 4px;
  border: 3px solid var(--ink);
  background: var(--panel);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  font-style: normal;
  color: var(--ink);
  transition: all .15s ease
}

.pin i.f {
  border-color: var(--teal);
  background: #fff
}

.pin i.cur {
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 4px var(--teal-050)
}

.pin.bold i {
  border: 3px solid var(--ink);
  background: var(--panel);
  color: var(--ink)
}

.pin.bold i.f {
  border-color: var(--ink);
  background: #fff
}

.pin.bold i.cur {
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15, 28, 28, .12)
}

.pin.sm i {
  width: 44px;
  height: 52px;
  font-size: 20px;
  border-width: 2.5px;
  border-radius: 4px
}

.pin input.pin-real {
  position: absolute;
  inset: 0;
  opacity: 0;
  border: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  font-size: 16px
}

.codeplate {
  background: var(--teal);
  border-radius: 4px;
  padding: 18px;
  text-align: center;
  color: #fff
}

.codeplate .k {
  font-family: var(--mono);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--lime);
  display: block;
  padding-left: .2em
}

.codeplate .sub {
  font-size: 12px;
  color: rgba(255, 255, 255, .62);
  margin-top: 2px
}

.codegrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px
}

.codegrid .c {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 11px 8px;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--teal);
  text-align: center;
  position: relative
}

.codegrid .c small {
  position: absolute;
  top: 3px;
  right: 6px;
  font-size: 8px;
  font-weight: 600;
  color: var(--muted-2);
  letter-spacing: 0
}

.sw-t {
  width: 50px;
  height: 30px;
  border-radius: 4px;
  background: var(--panel-2);
  position: relative;
  flex: none;
  transition: background .2s;
  border: 1px solid var(--line);
  cursor: pointer
}

.sw-t::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .2s
}

.sw-t.on {
  background: var(--lime);
  border-color: var(--lime)
}

.sw-t.on::after {
  transform: translateX(20px)
}

.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-soft)
}

.opt:last-child {
  border-bottom: 0
}

.opt .oi {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--panel);
  display: grid;
  place-items: center;
  color: var(--teal);
  flex: none
}

.opt .txt {
  flex: 1;
  min-width: 0
}

.opt .txt b {
  font-size: 14px;
  font-weight: 600;
  display: block
}

.opt .txt small {
  font-size: 11.5px;
  color: var(--muted);
  display: block;
  line-height: 1.4
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.chip {
  height: 38px;
  padding: 0 15px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  font-family: inherit
}

.chip.on {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal)
}

.callout {
  display: flex;
  gap: 9px;
  padding: 11px 13px;
  border-radius: 4px;
  font-size: 12.5px;
  line-height: 1.5;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted)
}

.callout svg {
  margin-top: 1px;
  flex: none
}

.callout b {
  color: var(--ink)
}

.callout.warn {
  background: var(--warn-050);
  border-color: var(--warn-edge);
  color: #9C2B2E
}

.callout.warn b {
  color: #9C2B2E
}

.callout.teal {
  background: var(--teal-050);
  border-color: #CADCDA;
  color: var(--teal)
}

.callout.teal b {
  color: var(--teal)
}

.callout.lime {
  background: var(--lime-050);
  border-color: var(--lime-edge);
  color: #3D6100
}

.callout.lime b {
  color: #3D6100
}

.search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 14px;
  height: 46px
}

.search input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 15px;
  background: transparent;
  font-family: inherit
}

.search svg {
  color: var(--muted-2)
}

.auth-badge {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  background: var(--teal);
  display: grid;
  place-items: center;
  color: var(--lime)
}

.empty {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 44px 26px;
  align-content: center;
  flex: 1
}

.empty .rg {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  margin-bottom: 14px
}

.empty .rg.calm {
  background: var(--panel);
  color: var(--muted)
}

.empty h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px
}

.empty p {
  font-size: 13px;
  color: var(--muted);
  max-width: 32ch;
  margin-bottom: 16px
}

.thread {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--panel)
}

.thread-empty {
  align-self: center;
  color: var(--muted-2);
  font-size: 13px;
  margin-top: 26px
}

.day {
  align-self: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  padding: 3px 11px;
  border-radius: 4px
}

.bub {
  max-width: 80%;
  align-self: flex-start
}

.bub .b {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 9px 12px;
  font-size: 14px;
  line-height: 1.45;
  overflow: hidden
}

.bub .st {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: var(--muted-2);
  margin-top: 4px;
  padding-left: 3px
}

.bub.me {
  align-self: flex-end
}

.bub.me .b {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  border-radius: 4px
}

.bub.me .st {
  justify-content: flex-end;
  padding: 0 3px 0 0
}

.bub .media {
  display: block;
  margin: -3px -3px 0;
  border-radius: 4px;
  overflow: hidden
}

.bub .media img,
.bub .media,
.bub video {
  width: 210px;
  max-width: 58vw;
  height: auto;
  display: block;
  border-radius: 4px
}

.bub .b.voice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 172px
}

.b.voice .pl {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--lime);
  display: grid;
  place-items: center;
  color: var(--teal);
  flex: none
}

.b.voice .wave {
  flex: 1;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--teal)
}

.b.voice .wave i {
  flex: 1;
  background: currentColor;
  border-radius: 2px;
  opacity: .45;
  min-height: 3px
}

.b.voice .wave.playing i {
  animation: wv 1s ease-in-out infinite
}

.b.voice .vdur {
  font-size: 11px;
  color: var(--muted);
  flex: none;
  font-variant-numeric: tabular-nums
}

.bub.me .b.voice .wave {
  color: #fff
}

.bub.me .b.voice .vdur {
  color: rgba(255, 255, 255, .65)
}

@keyframes wv {

  0%,
  100% {
    transform: scaleY(.5);
    opacity: .4
  }

  50% {
    transform: scaleY(1);
    opacity: .9
  }
}

.b.voice .wave.playing i:nth-child(2n) {
  animation-delay: .15s
}

.b.voice .wave.playing i:nth-child(3n) {
  animation-delay: .3s
}

.compose {
  position: sticky;
  bottom: 0;
  z-index: 30;
  flex: none;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
  flex-wrap: wrap
}

.compose .rd {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  background: var(--panel);
  display: grid;
  place-items: center;
  color: var(--teal);
  flex: none;
  cursor: pointer
}

.compose .in {
  flex: 1;
  min-width: 0;
  height: 38px;
  border-radius: 4px;
  border: 1px solid var(--line);
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit
}

.compose .in:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-050)
}

.compose .snd {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  background: var(--teal);
  display: grid;
  place-items: center;
  color: var(--lime);
  flex: none
}

.compose .cm-prev {
  width: 100%;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 2px 0
}

.compose .cm-prev img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover
}

.compose.recording .rd,
.compose.recording .in,
.compose.recording #cm-send {
  display: none
}

.cm-rec {
  display: none;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 2px
}

.compose.recording .cm-rec {
  display: flex
}

.cm-rec .recdot {
  width: 11px;
  height: 11px;
  border-radius: 4px;
  background: var(--warn);
  animation: rp 1.2s infinite;
  flex: none
}

.cm-rec .rt {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--warn)
}

.cm-rec .rec-cancel {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 0 6px
}

@keyframes rp {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

.cm-prev .vchip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--lime-050);
  border: 1px solid var(--lime-edge);
  border-radius: 4px;
  padding: 5px 9px
}

.cm-prev .vchip .pl {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: var(--lime);
  display: grid;
  place-items: center;
  color: var(--teal)
}

.cm-prev .vchip small {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal)
}

.cm-prev .x {
  margin-left: auto;
  color: var(--muted-2);
  cursor: pointer
}

.drop,
.field>label.drop,
label.drop {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  border: 1.5px dashed var(--line);
  border-radius: 4px;
  background: var(--panel);
  padding: 13px 14px;
  color: var(--muted);
  font-size: 13.5px;
  cursor: pointer;
  margin-bottom: 0 !important;
}

.drop svg,
label.drop svg {
  flex: none !important;
  display: block !important;
}

.drop span,
label.drop span {
  flex: 1;
}

.drop.filled {
  border-style: solid;
  background: #fff;
  color: var(--ink)
}

.letter {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow)
}

.letter-body {
  padding: 18px;
  font-size: 15px;
  line-height: 1.7
}

.letter .dim {
  color: var(--muted-2)
}

@media print {
  .app {
    box-shadow: none
  }

  .nav,
  .compose,
  .btn,
  .callout,
  .search {
    display: none !important
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important
  }
}