*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; height: 100dvh; }
body {
  margin: 0;
  overflow: hidden;
  color: #0f172a;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #e8eef5;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}
.min-w-0 { min-width: 0; }
.flex-1 { flex: 1; }

.gate {
  min-height: 100%;
  min-height: 100dvh;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #f8fafc;
}
.gate-card {
  width: min(24rem, 100%);
  background: #fff;
  border-radius: 1.2rem;
  padding: 1.5rem;
  box-shadow: 0 18px 40px -24px rgba(15, 23, 42, .45), 0 0 0 1px rgba(15, 23, 42, .06);
}
.gate-mark, .ulak-blank__icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  background: #d1fae5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gate-mark svg, .ulak-blank__icon svg { width: 1.7rem; height: 1.7rem; }
.gate-card h1 { margin: .8rem 0 0; font-size: 1.35rem; }
.gate-card p { margin: .35rem 0 0; color: #64748b; font-size: .9rem; }
.gate-card form, #member-form { display: flex; flex-direction: column; gap: .7rem; margin-top: 1rem; }
.gate-card label, #member-form label { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; font-weight: 600; }
.gate-card input, #member-form input, .ulak-sheet input, .ulak-search input, #draft {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: .8rem;
  padding: .55rem .75rem;
  font-size: 16px;
  background: #fff;
}
.gate-card button, #member-form button, .ulak-send {
  border: 0;
  background: #10b981;
  color: #fff;
  border-radius: 999px;
  padding: .55rem .9rem;
  font-size: .85rem;
  font-weight: 700;
}
.gate-card button:disabled, .ulak-send:disabled { opacity: .5; cursor: default; }
.gate-error { color: #b45309 !important; font-size: .8rem !important; }
#gate-link { color: #047857; font-weight: 700; }
img.ulak-avatar { object-fit: cover; display: block; }

.ulak-app { display: flex; width: 100%; height: 100%; height: 100dvh; max-height: 100dvh; min-height: 0; overflow: hidden; background: #e8eef5; }
.ulak-aside, .ulak-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.ulak-aside { width: 100%; background: #fff; border-right: 1px solid rgba(15, 23, 42, .06); }
.ulak-pane { display: none; flex: 1; }
.ulak-pane.is-open { display: flex; }
.ulak-aside.is-hidden-mobile { display: none; }
@media (min-width: 768px) {
  .ulak-aside { width: 22rem; display: flex !important; }
  .ulak-pane { display: flex; }
}
.ulak-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; padding: .8rem .9rem .5rem; }
.ulak-head > div:first-child { min-width: 0; flex: 1 1 8rem; }
.ulak-head h1, .ulak-head p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ulak-head h1 { margin: 0; font-size: 1.15rem; }
.ulak-head p { margin: .2rem 0 0; font-size: .75rem; color: #64748b; max-width: none; }
.ulak-actions { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; align-items: flex-start; }
.ulak-actions button, .ulak-thread__head button, .ulak-msg__tools button, .ulak-back, .ulak-sheet header button {
  border: 0;
  background: #f1f5f9;
  color: #334155;
  border-radius: .7rem;
  padding: .35rem .6rem;
  font-size: .75rem;
  font-weight: 600;
}
.ulak-tabs { display: flex; gap: .35rem; padding: 0 1rem .6rem; }
.ulak-tabs button {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: .4rem .2rem;
  font-size: .75rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
}
.ulak-tabs button.is-on { background: #10b981; color: #fff; }
.ulak-search { display: block; padding: 0 1rem .75rem; }
.ulak-list { flex: 1; overflow: auto; }
.ulak-row {
  display: flex;
  align-items: center;
  gap: .7rem;
  width: calc(100% - .8rem);
  margin: .15rem .4rem;
  padding: .65rem .7rem;
  border: 0;
  border-radius: 1rem;
  background: transparent;
  text-align: left;
}
.ulak-row.is-on, .ulak-row:hover { background: #ecfdf5; }
.ulak-avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  flex: none;
}
.ulak-row__top { display: flex; justify-content: space-between; gap: .5rem; font-size: .8rem; }
.ulak-row__preview {
  display: block;
  margin-top: .15rem;
  font-size: .75rem;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ulak-unread {
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: #10b981;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .3rem;
}
.ulak-empty, .ulak-status { padding: 1.2rem; font-size: .8rem; color: #64748b; }
.ulak-status { color: #b45309; }
.ulak-blank {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: transparent;
}
.ulak-blank__icon { width: 5rem; height: 5rem; }
.ulak-blank__icon svg { width: 2.5rem; height: 2.5rem; }
.ulak-blank h2 { margin: 1rem 0 0; font-size: 1.05rem; }
.ulak-blank p { margin: .4rem 0 0; max-width: 20rem; font-size: .85rem; color: #64748b; }
.ulak-thread { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.ulak-thread__head { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .55rem; padding: .55rem .7rem; border-bottom: 1px solid #e2e8f0; }
.ulak-thread__head strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.ulak-thread__tools { display: flex; gap: .35rem; flex: 1 1 100%; min-width: 0; overflow-x: auto; }
.ulak-thread__tools button { flex: none; }
@media (min-width: 768px) {
  .ulak-thread__head { flex-wrap: nowrap; padding: .7rem 1rem; }
  .ulak-thread__tools { flex: 0 1 auto; margin-left: auto; overflow: visible; }
}
.ulak-typing { margin: .1rem 0 0; font-size: .7rem; color: #059669; }
.ulak-sub { margin: .12rem 0 0; font-size: .72rem; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ulak-thread__list { flex: 1; overflow: auto; padding: 1rem; background: transparent; }
.ulak-msg { display: flex; gap: .55rem; margin-bottom: 1rem; max-width: min(36rem, 100%); }
.ulak-msg.is-mine { margin-left: auto; flex-direction: row-reverse; }
.ulak-msg__meta { display: flex; gap: .5rem; font-size: .7rem; color: #64748b; }
.ulak-msg__body {
  margin: .2rem 0 0;
  padding: .6rem .8rem;
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
  font-size: .9rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ulak-msg.is-mine .ulak-msg__body { background: #d1fae5; }
.ulak-quote, .ulak-quote-bar {
  margin: .3rem 0;
  padding: .4rem .6rem;
  border-left: 3px solid #10b981;
  background: #ecfdf5;
  font-size: .75rem;
}
.ulak-quote p, .ulak-quote-bar p { margin: .15rem 0 0; }
.ulak-imgs { display: flex; gap: .35rem; margin-top: .35rem; flex-wrap: wrap; }
.ulak-imgs img { width: min(7rem, 42vw); height: min(7rem, 42vw); border-radius: .7rem; object-fit: cover; background: #e2e8f0; }
.ulak-msg__tools { display: flex; gap: .35rem; margin-top: .3rem; }
.ulak-msg__tools button.is-on { color: #be123c; background: #ffe4e6; }
.ulak-composer { padding: .6rem .7rem calc(.7rem + env(safe-area-inset-bottom)); }
.ulak-quote-bar { display: flex; justify-content: space-between; gap: .5rem; align-items: flex-start; }
.ulak-files { font-size: .75rem; color: #64748b; margin-bottom: .35rem; }
.ulak-composer__card {
  display: flex;
  align-items: flex-end;
  gap: .45rem;
  background: #fff;
  border-radius: 1.5rem;
  padding: .35rem .45rem .35rem .6rem;
  box-shadow: 0 10px 28px -14px rgba(15, 23, 42, .28), 0 0 0 1px rgba(15, 23, 42, .06);
}
#draft { border: 0; resize: none; min-height: 2.4rem; max-height: 8rem; padding: .45rem .2rem; }
.ulak-icon { border: 0; background: transparent; font-size: 1.1rem; padding: .35rem; }
.ulak-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .35);
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}
@media (min-width: 768px) { .ulak-modal { align-items: center; } }
.ulak-sheet {
  width: min(28rem, 100%);
  max-height: min(36rem, calc(100dvh - 2rem));
  overflow: auto;
  background: #fff;
  border-radius: 1.2rem;
  padding: 1rem;
}
.ulak-sheet header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.ulak-sheet header button { font-size: 1rem; }
#group-fields { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .7rem; }
.ulak-hint { margin: 0 0 .6rem; font-size: .78rem; color: #64748b; }
.ulak-pick { max-height: 16rem; overflow: auto; margin-top: .6rem; }
.ulak-pick button, .ulak-person {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  border: 0;
  background: transparent;
  padding: .45rem 0;
  text-align: left;
}
.ulak-person.is-off { opacity: .55; }
.ulak-person { flex-wrap: wrap; }
.ulak-person > .ulak-avatar { flex: none; }
.ulak-person > span { flex: 1 1 6rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ulak-person em, .ulak-pick em { font-style: normal; color: #047857; font-weight: 700; font-size: .72rem; }
.ulak-person button { flex: none; width: auto; border-radius: 999px; padding: .28rem .55rem; font-size: .72rem; }
.ulak-person button.is-danger { background: #ffe4e6; color: #be123c; }
.ulak-group label { display: flex; flex-direction: column; gap: .3rem; margin: .55rem 0; font-size: .78rem; font-weight: 700; }
.ulak-group textarea, .ulak-group input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: .85rem;
  padding: .55rem .75rem;
  font: inherit;
  font-size: 16px;
  background: #fff;
}
.ulak-group textarea { resize: vertical; min-height: 4.2rem; }
.ulak-group .ulak-send { margin: .2rem 0 .8rem; }
.ulak-pane { background: #f5f7fb; }
.ulak-picks { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.ulak-picks span {
  background: #ecfdf5;
  color: #047857;
  border-radius: 999px;
  padding: .2rem .55rem;
  font-size: .75rem;
  font-weight: 600;
}

.ulak-ring {
  position: fixed;
  z-index: 100;
  left: .7rem;
  right: .7rem;
  top: max(.7rem, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem .85rem;
  border-radius: 1rem;
  background: #052e1c;
  color: #ecfdf5;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}
.ulak-ring[hidden] { display: none !important; }
.ulak-ring p { flex: 1; margin: 0; font-weight: 700; }
.ulak-ring button {
  border: 0;
  border-radius: 999px;
  min-height: 2.6rem;
  padding: 0 .9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.ulak-ring button[data-act="ring-accept"] { background: #34d399; color: #052e1c; }
.ulak-ring button[data-act="ring-reject"] { background: #e11d48; color: #fff; }
.ulak-call[hidden] { display: none !important; }
.ulak-call {
  position: fixed;
  inset: 0;
  z-index: 90;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
  color: #f8fafc;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(16, 185, 129, .28), transparent 60%),
    radial-gradient(700px 380px at 100% 0%, rgba(56, 189, 248, .16), transparent 55%),
    #070b14;
}
.ulak-call__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem .2rem;
}
.ulak-call__brand { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.ulak-call__brand strong { display: block; font-size: 1.05rem; letter-spacing: -.01em; }
.ulak-call__brand p { margin: .1rem 0 0; color: #94a3b8; font-size: .82rem; }
.ulak-call__pulse {
  width: .7rem;
  height: .7rem;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .7);
  animation: ulak-live 1.6s ease-out infinite;
  flex: none;
}
.ulak-call.is-failed .ulak-call__pulse { background: #fb7185; animation: none; box-shadow: none; }
@keyframes ulak-live {
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.ulak-call__count {
  border-radius: 999px;
  padding: .3rem .7rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .08);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.ulak-call__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: .7rem .8rem .3rem;
}
.ulak-call__stage.is-solo { display: grid; place-items: center; }
.ulak-call__stage.is-solo .ulak-call__person,
.ulak-call__stage.is-solo .ulak-call__wait {
  width: 100%;
  height: 100%;
  min-height: 0;
}
.ulak-call__stage.is-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: .7rem;
  align-content: start;
  overflow: auto;
}
.ulak-call__stage.is-grid .ulak-call__person { min-height: 9.5rem; aspect-ratio: 4 / 3; }
.ulak-call__stage.is-cinema {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: .7rem;
}
.ulak-call__feature { min-height: 0; height: 100%; }
.ulak-call__strip {
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  padding-bottom: .2rem;
}
.ulak-call__strip .ulak-call__person { width: 9.6rem; height: 6.5rem; flex: none; }
.ulak-call__person, .ulak-call__wait {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #152033, #0c1220);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 18px 40px rgba(0, 0, 0, .28);
}
.ulak-call__person video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}
.ulak-call__wait, .ulak-call__person.is-voice {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
}
.ulak-call__name {
  position: absolute;
  left: .65rem;
  bottom: .65rem;
  max-width: calc(100% - 1.3rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: .28rem .65rem;
  border-radius: 999px;
  background: rgba(2, 6, 23, .55);
  backdrop-filter: blur(8px);
  font-size: .75rem;
  font-weight: 700;
}
.ulak-call__person.is-screen { box-shadow: 0 0 0 2px #34d399, 0 18px 40px rgba(0, 0, 0, .28); }
.ulak-call__local {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 9.4rem;
  height: 6.5rem;
  object-fit: cover;
  border-radius: 1rem;
  background: #020617;
  border: 2px solid rgba(255, 255, 255, .82);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .4);
  z-index: 2;
}
.ulak-call__give {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  padding: 0 1rem .4rem;
}
.ulak-call__give button {
  border: 0;
  border-radius: 999px;
  padding: .45rem .8rem;
  background: rgba(16, 185, 129, .16);
  color: #d1fae5;
  font-weight: 700;
}
.ulak-call__dock {
  display: flex;
  justify-content: center;
  flex: none;
  flex-wrap: wrap;
  gap: .35rem .7rem;
  padding: .35rem .8rem calc(.8rem + env(safe-area-inset-bottom));
}
.ulak-call__dock button {
  width: 4.5rem;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .32rem;
  font-size: .72rem;
  font-weight: 700;
}
.ulak-call__glyph {
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08) center / 1.15rem no-repeat;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
#call-mute .ulak-call__glyph { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23f8fafc' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a3 3 0 0 0-3 3v6a3 3 0 0 0 6 0V6a3 3 0 0 0-3-3z'/%3E%3Cpath d='M19 11a7 7 0 0 1-14 0M12 18v3'/%3E%3C/svg%3E"); }
#call-camera .ulak-call__glyph { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23f8fafc' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h10a2 2 0 0 1 2 2v8H6a2 2 0 0 1-2-2V7zM16 11l4-2v8l-4-2'/%3E%3C/svg%3E"); }
#call-screen .ulak-call__glyph { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23f8fafc' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='12' rx='2'/%3E%3Cpath d='M8 20h8M12 16v4'/%3E%3C/svg%3E"); }
#call-hand .ulak-call__glyph { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23f8fafc' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M7 12h10M13 8l4 4-4 4'/%3E%3C/svg%3E"); }
#call-hangup .ulak-call__glyph { background: #e11d48 center / 1.15rem no-repeat; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23fff' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
#call-mute.is-off .ulak-call__glyph, #call-camera.is-off .ulak-call__glyph { background-color: #be123c; }
#call-screen.is-live .ulak-call__glyph { background-color: #059669; box-shadow: 0 0 0 5px rgba(16, 185, 129, .22); }
.ulak-call.is-incoming .ulak-call__dock button, .ulak-call.is-failed .ulak-call__dock button {
  width: auto;
  min-width: 7rem;
  border-radius: 999px;
  padding: .85rem 1.2rem;
  font-size: .95rem;
}
.ulak-call.is-incoming .ulak-call__glyph, .ulak-call.is-failed .ulak-call__glyph { display: none; }
.ulak-call.is-incoming #call-accept, .ulak-call.is-failed #call-hangup { background: #10b981; color: #042f1a; }
.ulak-call.is-incoming #call-reject, .ulak-call.is-failed #call-hangup.is-stop { background: #e11d48; color: #fff; }
.ulak-call.is-failed #call-hangup { background: #e11d48; color: #fff; }
@media (max-width: 640px) {
  .ulak-call__local { width: 6.2rem; height: 4.4rem; right: .55rem; bottom: .55rem; }
  .ulak-call__stage.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ulak-call__stage.is-grid .ulak-call__person { min-height: 0; aspect-ratio: 3 / 4; }
  .ulak-call__dock { gap: .2rem .35rem; }
  .ulak-call__dock button { width: 3.7rem; }
  .ulak-call.is-incoming .ulak-call__dock, .ulak-call.is-failed .ulak-call__dock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .ulak-call.is-incoming .ulak-call__dock button, .ulak-call.is-failed .ulak-call__dock button {
    width: 100%;
    min-height: 3.3rem;
  }
  .ulak-thread__list { padding: .7rem; }
  .ulak-blank { padding: 1.2rem; }
}

.ulak-logo {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: .8rem;
  object-fit: cover;
  flex: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}
.ulak-logo--gate { width: 4.4rem; height: 4.4rem; border-radius: 1.15rem; }
.ulak-aside {
  background:
    radial-gradient(420px 180px at 0 0, rgba(110, 231, 183, .18), transparent 60%),
    #06281b;
  color: #ecfdf5;
  border-right: 0;
}
.ulak-brand { display: flex; align-items: center; gap: .75rem; padding: 1rem .9rem .4rem; }
.ulak-brand h1 { margin: 0; font-size: 1.15rem; letter-spacing: -.02em; }
.ulak-brand p { margin: .15rem 0 0; color: #a7c4b5; font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ulak-new {
  margin: .35rem .9rem .7rem;
  border: 0;
  border-radius: 999px;
  background: #34d399;
  color: #052e1c;
  font-weight: 800;
  min-height: 2.6rem;
}
.ulak-nav { display: flex; flex-direction: column; gap: .2rem; padding: 0 .65rem .6rem; }
.ulak-nav button {
  border: 0;
  background: transparent;
  color: #d1fae5;
  text-align: left;
  border-radius: .8rem;
  padding: .55rem .75rem;
  font-weight: 700;
  font-size: .9rem;
}
.ulak-nav button.is-on, .ulak-nav button:hover { background: rgba(255, 255, 255, .1); }
.ulak-aside .ulak-search input { background: rgba(255, 255, 255, .08); border-color: transparent; color: #fff; }
.ulak-aside .ulak-search input::placeholder { color: #94b8a6; }
.ulak-aside .ulak-status { color: #fde68a; padding: 0 .9rem .4rem; }
.ulak-aside .ulak-row { color: #ecfdf5; background: transparent; }
.ulak-aside .ulak-row.is-on, .ulak-aside .ulak-row:hover { background: rgba(255, 255, 255, .1); }
.ulak-aside .ulak-row__preview, .ulak-aside .ulak-empty, .ulak-aside time { color: #a7c4b5; }
.ulak-sidefoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.ulak-sidefoot a { color: #6ee7b7; font-size: .8rem; font-weight: 700; text-decoration: none; }
.ulak-sidefoot button { border: 0; background: transparent; color: #d1fae5; font-weight: 700; }
.ulak-pane { background: #f3f6f1; }
.ulak-blank__icon { width: auto; height: auto; background: transparent; }
.ulak-blank__icon .ulak-logo { width: 4.2rem; height: 4.2rem; }
.ulak-thread__head { position: relative; }
.ulak-thread__tools { position: relative; overflow: visible; }
.ulak-thread__tools .ulak-tool {
  border: 0;
  background: #ecfdf5;
  color: #065f46;
  border-radius: 999px;
  padding: .45rem .75rem;
  font-size: .75rem;
  font-weight: 800;
}
.ulak-thread__tools .ulak-menu button {
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: .7rem;
  padding: .6rem .7rem;
  font-weight: 700;
  color: #134e4a;
  width: 100%;
}
.ulak-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + .35rem);
  right: 0;
  min-width: 11rem;
  display: flex;
  flex-direction: column;
  padding: .35rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(6, 40, 27, .18);
}
.ulak-menu button {
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: .7rem;
  padding: .6rem .7rem;
  font-weight: 700;
  color: #134e4a;
}
.ulak-menu button:hover { background: #ecfdf5; }
.ulak-find { padding: .45rem .8rem 0; }
.ulak-find input { width: 100%; border: 0; border-radius: 999px; padding: .55rem .8rem; background: #fff; }
.ulak-day {
  width: max-content;
  margin: .35rem auto;
  padding: .2rem .65rem;
  border-radius: 999px;
  background: rgba(6, 40, 27, .08);
  color: #3f6212;
  font-size: .72rem;
  font-weight: 800;
}
.ulak-msg__body a { color: inherit; font-weight: 700; }
.ulak-shot { border: 0; padding: 0; background: transparent; }
.ulak-composer { position: relative; }
.ulak-emoji {
  position: absolute;
  left: .7rem;
  right: .7rem;
  bottom: calc(100% - .2rem);
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  padding: .55rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(6, 40, 27, .16);
}
.ulak-emoji button { border: 0; background: #f3f6f1; border-radius: .6rem; font-size: 1.2rem; min-width: 2.2rem; min-height: 2.2rem; }
.ulak-jump {
  position: absolute;
  right: 1rem;
  bottom: 5.4rem;
  border: 0;
  border-radius: 999px;
  background: #06281b;
  color: #ecfdf5;
  font-weight: 800;
  padding: .45rem .8rem;
  box-shadow: 0 10px 24px rgba(6, 40, 27, .25);
}
.ulak-thread { position: relative; }
.ulak-lightbox {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 24, 16, .82);
  padding: 1.5rem;
}
.ulak-lightbox img { max-width: min(960px, 100%); max-height: 86dvh; border-radius: 1rem; }
.ulak-lightbox button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: #fff;
  font-size: 1.4rem;
}
.gate { background: radial-gradient(500px 240px at 50% 0, rgba(52, 211, 153, .35), transparent 60%), #06281b; }
.gate-card { text-align: center; }
.gate-card h1, .gate-card form, .gate-card label { text-align: left; }
.gate-card .ulak-logo { margin: 0 auto .2rem; }

