@font-face {
  font-family: Onest;
  src: url("/static/fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Onest;
  src: url("/static/fonts/onest-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Golos;
  src: url("/static/fonts/golos-text_bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --bg: #f7f8fb;
  --surface: #fff;
  --text: #182137;
  --muted: #6b7589;
  --hint: #8490a4;
  --line: #e9ecf3;
  --blue: #2d60fa;
  --blue-soft: #edf2ff;
  --red: #c84e60;
  --green: #278260;
  --glass: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.95);
  --nav-active: rgba(45, 96, 250, 0.09);
  --bubble: #fff;
  --out: #e6edff;
  --chat: #eef1f8;
  --shadow: 0 8px 36px #2637530b;
  --ease: cubic-bezier(0.22, 0.8, 0.25, 1);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #11151e;
  --surface: #1b2130;
  --text: #eff2fb;
  --muted: #a2adc3;
  --hint: #8996ad;
  --line: #2a3244;
  --blue: #8daaff;
  --blue-soft: #242f4a;
  --red: #ff9aa7;
  --green: #77cba9;
  --glass: rgba(28, 35, 50, 0.83);
  --glass-border: rgba(255, 255, 255, 0.12);
  --nav-active: rgba(142, 172, 255, 0.15);
  --bubble: #20283a;
  --out: #2a3c65;
  --chat: #151c2a;
  --shadow: 0 10px 40px #0003;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
[hidden] {
  display: none !important;
}
html {
  scroll-padding-top: 100px;
  scrollbar-gutter: stable;
  min-height: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.45 Onest,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  min-height: 100dvh;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: var(--blue);
  text-decoration: none;
}
svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
input,
select {
  min-width: 0;
}
::selection {
  background: #2d60fa33;
}
.app {
  max-width: 600px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 12px 20px calc(116px + env(safe-area-inset-bottom));
  position: relative;
}
.hdr {
  position: sticky;
  top: max(
    8px,
    env(safe-area-inset-top),
    var(--tg-content-safe-area-inset-top, 0px)
  );
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 23px;
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  box-shadow:
    inset 0 1px 0 #ffffff3d,
    var(--shadow);
}
.brand-symbol {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: #fff;
  object-fit: cover;
  flex: none;
}
.hdr-txt {
  flex: 1;
  min-width: 0;
}
.hdr-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hdr-sub {
  color: var(--muted);
  font-size: 11px;
  margin-top: 1px;
}
.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  transition:
    background 0.16s,
    transform 0.2s var(--ease);
}
.icon-btn:active {
  transform: scale(0.9);
  background: var(--nav-active);
}
.icon-btn svg {
  width: 21px;
  height: 21px;
}
.ava-mini {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 650;
  color: #fff;
  flex: none;
}
.tabs {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 400px);
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  padding: 7px;
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  background: var(--glass);
  box-shadow:
    inset 0 1px 0 #ffffff59,
    0 10px 36px #18233b13;
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
}
.tab {
  position: relative;
  z-index: 1;
  min-height: 53px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 21px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  transition:
    color 0.18s,
    transform 0.24s var(--ease);
}
.tab svg {
  width: 22px;
  height: 22px;
}
.tab.on {
  color: var(--blue);
}
.tab:active {
  transform: scale(0.92);
}
.ind {
  position: absolute;
  top: 7px;
  left: 7px;
  height: 53px;
  border-radius: 21px;
  background: var(--nav-active);
  box-shadow: inset 0 1px 0 #ffffff47;
  transition:
    transform 0.36s cubic-bezier(0.2, 0.85, 0.25, 1.05),
    width 0.25s var(--ease);
  pointer-events: none;
}
#view {
  display: block;
}
.view {
  padding-top: 28px;
  animation: reveal 0.2s var(--ease) both;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}
h1 {
  font-family: Golos, Onest, sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.14;
  letter-spacing: -0.045em;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.025em;
}
.page-sub {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 7px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--surface);
  white-space: nowrap;
}
.status:before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}
.status.off {
  color: var(--muted);
}
.summary {
  display: flex;
  padding: 0 0 22px;
  gap: 0;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--line);
}
.summary > div {
  flex: 1;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.summary > div:first-child {
  padding-left: 0;
  border: 0;
}
.summary strong {
  display: block;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.05em;
}
.summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.section-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 3px 12px;
}
.section-label svg {
  width: 14px;
  height: 14px;
}
.archive-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  margin: 22px 0 4px;
}
.archive-note svg {
  width: 13px;
  height: 13px;
}
.connection-select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  max-width: 100%;
  font-size: 12px;
  margin-bottom: 14px;
}
.list-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 2px 8px #26375302;
}
.chat {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 17px 16px;
  position: relative;
  transition: background 0.15s;
}
.chat + .chat:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 80px;
  height: 1px;
  background: var(--line);
}
.chat:active,
.result:active {
  background: var(--blue-soft);
}
.av {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-size: 19px;
  font-weight: 600;
}
.chat-main {
  flex: 1;
  min-width: 0;
}
.chat-top,
.chat-bot {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.chat-bot {
  align-items: center;
  margin-top: 5px;
}
.chat-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 650;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.chat-time {
  font-size: 10px;
  color: var(--hint);
  flex: none;
}
.chat-prev {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 12px;
}
.count {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 10px;
  background: var(--blue-soft);
  color: var(--blue);
}
.count.red {
  background: color-mix(in srgb, var(--red) 9%, transparent);
  color: var(--red);
}
.count svg {
  width: 11px;
  height: 11px;
}
.chat-chevron {
  width: 14px;
  height: 14px;
  color: var(--hint);
  margin-left: 3px;
}
body.in-chat .app {
  padding-bottom: 20px;
}
.chat-view {
  padding-top: 16px;
}
.filters {
  display: flex;
  gap: 5px;
  padding: 4px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  margin-bottom: 14px;
}
.filters button {
  flex: 1;
  padding: 8px 4px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 550;
  color: var(--muted);
  transition:
    background 0.18s,
    color 0.18s;
}
.filters button[aria-pressed="true"] {
  background: var(--surface);
  box-shadow: 0 2px 8px #18233b0a;
  color: var(--blue);
}
.body {
  padding: 15px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 22px;
  background: var(--chat);
  min-height: calc(100dvh - 190px);
}
.datesep {
  align-self: center;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  padding: 4px 11px;
  border-radius: 100px;
  font-size: 10px;
  color: var(--muted);
  margin: 8px 0 12px;
  backdrop-filter: blur(10px);
}
.line {
  display: flex;
  padding: 1px 0;
  scroll-margin-block: 140px;
}
.line.out {
  justify-content: flex-end;
}
.bub {
  max-width: 86%;
  background: var(--bubble);
  border: 1px solid #ffffff0a;
  border-radius: 18px 18px 18px 6px;
  padding: 10px 12px 8px;
  box-shadow: 0 2px 3px #26375303;
  min-width: 76px;
}
.line.out .bub {
  background: var(--out);
  border-radius: 18px 18px 6px 18px;
}
.bub .txt {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.55;
}
.bub .meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
  margin-top: 5px;
}
.bub .st {
  color: var(--red);
}
.bub .meta svg {
  width: 13px;
  height: 13px;
  color: var(--blue);
}
.bub img,
.bub video {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 11px;
  margin: 0 0 7px;
}
.bub img {
  cursor: zoom-in;
}
.bub audio {
  display: block;
  max-width: 100%;
  width: 255px;
  margin-bottom: 7px;
}
.file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: var(--blue-soft);
  border-radius: 10px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.file svg {
  width: 19px;
  height: 19px;
}
.edit-history {
  border-top: 1px solid color-mix(in srgb, var(--muted) 16%, transparent);
  margin-top: 9px;
  padding-top: 7px;
  font-size: 11px;
}
.edit-history summary {
  cursor: pointer;
  color: var(--muted);
}
.diff {
  display: grid;
  gap: 4px;
  margin-top: 9px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.diff small {
  color: var(--muted);
  font-size: 9px;
}
.diff .old {
  color: var(--red);
  text-decoration: line-through;
}
.diff .new {
  color: var(--green);
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
}
.pager button {
  padding: 10px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--blue);
  min-height: 40px;
}
.more {
  align-self: center;
  padding: 12px 18px;
  color: var(--blue);
  font-size: 12px;
}
.export {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  padding: 16px 10px;
  color: var(--muted);
}
.export svg {
  width: 16px;
  height: 16px;
}
.timer-bar {
  align-self: center;
  color: var(--muted);
  font-size: 10px;
  padding: 4px 8px;
  text-align: center;
}
.line.target .bub {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  animation: targetFlash 1.5s var(--ease);
}
.search {
  margin-bottom: 18px;
}
.field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 0.18s;
}
.field:focus-within {
  border-color: var(--blue);
}
.field svg {
  width: 19px;
  height: 19px;
  color: var(--hint);
}
.field input {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  font-size: 15px;
}
.field input::placeholder {
  color: var(--hint);
}
.field .clear {
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  padding: 3px;
}
.hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  padding: 8px 3px;
}
.result {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  padding: 17px 16px;
  transition: background 0.15s;
}
.result + .result {
  border-top: 1px solid var(--line);
}
.result-main {
  flex: 1;
  min-width: 0;
}
.result .t {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.result .n {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result .tm {
  font-size: 10px;
  color: var(--hint);
  white-space: nowrap;
}
.result .p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.result .st {
  display: inline-block;
  margin-top: 7px;
  font-size: 10px;
  color: var(--red);
}
.event-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--red);
  background: color-mix(in srgb, var(--red) 8%, transparent);
  flex: none;
}
.event-icon svg {
  width: 17px;
  height: 17px;
}
.sect {
  font-size: 12px;
  color: var(--muted);
  padding: 23px 4px 10px;
}
.sect:first-child {
  padding-top: 0;
}
.set {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  min-height: 68px;
}
.set + .set {
  border-top: 1px solid var(--line);
}
.set-main {
  flex: 1;
  min-width: 0;
}
.set-title {
  display: block;
  font-size: 13px;
  font-weight: 550;
}
.set-note {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 4px;
}
.set select {
  max-width: 145px;
  text-align: right;
  border: 0;
  background: transparent;
  padding: 9px 2px;
  color: var(--blue);
  font-size: 12px;
}
.set .hours {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--muted);
}
.hours select {
  max-width: 64px;
}
.switch {
  position: relative;
  width: 44px;
  height: 27px;
  flex: none;
}
.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 2;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.switch i {
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: var(--line);
  transition: background 0.2s;
}
.switch i:after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px #0e1d3624;
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
.switch input:checked + i {
  background: #2d60fa;
}
.switch input:checked + i:after {
  transform: translateX(17px);
}
.switch input:focus-visible + i {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.settings-footer {
  font-size: 11px;
  text-align: center;
  color: var(--hint);
  line-height: 1.8;
  padding: 24px 0 4px;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 48px 22px;
  text-align: center;
  min-height: 220px;
}
.empty .ic {
  width: 62px;
  height: 62px;
  border-radius: 22px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 7px;
}
.empty .ic svg {
  width: 27px;
  height: 27px;
}
.empty b {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.empty span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 300px;
}
.primary {
  border: 0;
  border-radius: 13px;
  padding: 14px 19px;
  background: #2d60fa;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  transition: transform 0.2s var(--ease);
  margin-top: 12px;
}
.primary:active {
  transform: scale(0.97);
}
.secondary {
  padding: 11px 16px;
  background: var(--blue-soft);
  border-radius: 12px;
  color: var(--blue);
  font-size: 12px;
  margin-top: 10px;
}
.loading {
  padding: 48px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.skeletons {
  display: grid;
  gap: 20px;
  padding: 24px 16px;
}
.sk {
  height: 45px;
  background: linear-gradient(90deg, var(--line), var(--surface), var(--line));
  background-size: 200% 100%;
  border-radius: 12px;
  animation: shimmer 1.4s ease infinite;
}
.sk:nth-child(2) {
  width: 83%;
}
.sk:nth-child(3) {
  width: 66%;
}
.sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #121b304d;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: fade 0.18s;
}
.sheet .card {
  width: min(100%, 600px);
  padding: 18px 24px calc(26px + env(safe-area-inset-bottom));
  max-height: 90dvh;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -16px 60px #0d18321a;
  animation: sheetUp 0.32s var(--ease);
  position: relative;
}
.sheet .handle {
  width: 34px;
  height: 4px;
  background: var(--line);
  border-radius: 6px;
  margin: 0 auto 24px;
}
.sheet .close {
  position: absolute;
  right: 14px;
  top: 17px;
}
.sheet h2 {
  margin-bottom: 14px;
  font-size: 23px;
}
.sheet p,
.sheet li {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.sheet ol {
  padding-left: 19px;
}
.sheet li + li {
  margin-top: 12px;
}
.sheet .viewer-img {
  display: block;
  max-width: 100%;
  max-height: 73dvh;
  margin: auto;
  object-fit: contain;
  border-radius: 14px;
}
.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(108px + env(safe-area-inset-bottom));
  z-index: 50;
  padding: 12px 20px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  color: var(--text);
  box-shadow: var(--shadow);
  border-radius: 100px;
  font-size: 12px;
  max-width: 90%;
  text-align: center;
  animation: toastIn 0.22s var(--ease);
}
.login-card {
  width: min(calc(100% - 40px), 420px);
  margin: 10vh auto;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
}
.login-card .brand-symbol {
  margin-bottom: 30px;
}
.login-card h1 {
  font-size: 31px;
}
.login-card p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 18px;
}
.login-form {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}
.login-form label {
  font-size: 12px;
}
.login-form input {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  background: var(--bg);
}
.login-form .primary {
  margin-top: 0;
}
.login-caption {
  display: block;
  font-size: 11px;
  color: var(--hint);
  margin-top: 28px;
}
.login-error {
  font-size: 12px;
  color: var(--red);
  margin-top: 18px;
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes sheetUp {
  from {
    transform: translateY(42px);
    opacity: 0.4;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 6px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
@keyframes targetFlash {
  from {
    box-shadow: 0 0 0 8px #2d60fa25;
  }
  to {
    box-shadow: none;
  }
}
@media (min-width: 720px) {
  .app {
    padding-top: 24px;
  }
  .hdr {
    top: 16px;
  }
  .view {
    padding-top: 34px;
  }
  .page-head {
    margin-bottom: 26px;
  }
  .body {
    padding: 22px;
    min-height: calc(100dvh - 230px);
  }
}
@media (max-width: 360px) {
  .app {
    padding-left: 12px;
    padding-right: 12px;
  }
  .hdr {
    gap: 7px;
    padding: 9px;
  }
  .hdr .icon-btn {
    width: 32px;
  }
  .page-head {
    gap: 6px;
  }
  h1 {
    font-size: 28px;
  }
  .status {
    font-size: 10px;
    padding: 6px 8px;
  }
  .chat {
    padding: 15px 12px;
    gap: 10px;
  }
  .av {
    width: 42px;
    height: 42px;
    border-radius: 15px;
  }
  .summary > div {
    padding-left: 12px;
  }
  .set {
    padding: 14px 12px;
  }
  .set select {
    max-width: 120px;
  }
  .bub {
    max-width: 91%;
  }
}
@supports not (backdrop-filter: blur(1px)) {
  .hdr,
  .tabs,
  .toast,
  .datesep {
    background: var(--surface);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .hdr,
  .tabs,
  .toast,
  .datesep {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.tabs.has-admin {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(calc(100% - 24px), 460px);
}
.tabs.has-admin .tab {
  font-size: 9px;
}
.consent-copy {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 16px 0 22px;
}
.consent-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 12px;
  line-height: 1.7;
  padding: 16px;
}
.consent-option + .consent-option {
  border-top: 1px solid var(--line);
}
.consent-option input {
  width: 19px;
  height: 19px;
  flex: none;
  accent-color: #2d60fa;
  margin-top: 1px;
}
.consent-start {
  width: 100%;
  margin-top: 18px;
}
.consent-start:disabled {
  cursor: not-allowed;
}
.admin-note {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  padding: 12px 4px;
}
.danger {
  color: var(--red);
}
.danger.primary {
  background: #b23c4c;
  color: white;
}
.data-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.data-actions button {
  flex: 1;
}
.consent-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 1.8;
  margin: 16px 3px;
}
