@font-face {
  font-family: Inter;
  src: url("./inter-cyrillic-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face {
  font-family: Inter;
  src: url("./inter-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Inter;
  src: url("./inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20A0-20CF,U+2122,U+2191,U+2193,U+2212,U+FEFF,U+FFFD;
}
:root {
  color-scheme: light;
  --back: #edf1f7;
  --paper: #fff;
  --light: #f3f6fb;
  --ink: #17243a;
  --soft: #4a5a70;
  --line: #dbe3ef;
  --green: #234d8b;
  --green-dark: #193b71;
  --mint: #e5edfc;
  --danger: #8d3428;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--back);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
.top { border-bottom: 1px solid #dbe3ef; }
.top-inner { width: min(100% - 36px, 760px); min-height: 65px; margin: auto; display: flex; align-items: center; gap: 11px; font-weight: 680; }
.mark { display: flex; align-items: center; gap: 3px; justify-content: center; background: var(--green); height: 31px; width: 31px; border-radius: 10px; }
.mark i { width: 2px; height: 10px; background: #e8fff1; border-radius: 4px; }
.mark i:nth-child(2) { height: 16px; }
#identity { margin-left: auto; font-weight: 500; color: var(--soft); font-size: 14px; }
main { width: min(100% - 36px, 650px); margin: clamp(26px, 8vh, 84px) auto 34px; }
.sheet { padding: clamp(19px, 5.7vw, 44px); background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 14px 42px #28403309; }
.wait { color: var(--soft); }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-weight: 720; letter-spacing: -0.045em; font-size: clamp(29px, 6vw, 43px); line-height: 1.09; }
h2 { font-size: 21px; line-height: 1.25; letter-spacing: -0.025em; }
h3 { font-size: 16px; }
.intro { color: var(--soft); margin-top: 12px; line-height: 1.5; }
.stack { display: grid; gap: 12px; }
.gap { margin-top: 23px; }
.minor-gap { margin-top: 13px; }
.row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.fill { width: 100%; }
.divider { border-top: 1px solid var(--line); margin-top: 23px; padding-top: 20px; }
.project-grid, .action-grid { display: grid; gap: 9px; }
.action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
button, .button { min-height: 48px; border-radius: 11px; padding: 11px 16px; background: var(--light); border: 1px solid var(--line); font: inherit; font-weight: 620; color: var(--ink); cursor: pointer; text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; line-height: 1.3; }
button:hover, .button:hover { background: var(--mint); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #365faf; outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .65; }
.primary { background: var(--green); color: #fff; border-color: var(--green); }
.primary:hover { background: var(--green-dark); color: #fff; }
.flat { border-color: transparent; background: transparent; color: var(--green-dark); padding-left: 8px; padding-right: 8px; }
.back { margin: -9px 0 13px -7px; font-weight: 600; min-height: 44px; }
.project-button { text-align: left; justify-content: space-between; overflow-wrap: anywhere; min-height: 55px; }
.project-button span:last-child { color: var(--green); font-size: 20px; font-weight: 500; }
.action { min-height: 65px; align-items: center; justify-content: flex-start; text-align: left; }
.action svg, .choice svg { width: 23px; height: 23px; flex: 0 0 23px; stroke: var(--green); fill: none; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.action:first-child { background: var(--mint); border-color: #cde3d7; }
label.field-label { display: block; font-size: 15px; font-weight: 625; margin-bottom: 7px; }
input[type="text"], input[type="url"], input[type="password"], textarea, select { font: inherit; font-size: 16px; border: 1px solid var(--line); color: var(--ink); background: #fff; padding: 12px 13px; border-radius: 10px; width: 100%; min-height: 51px; }
textarea { resize: vertical; min-height: 99px; }
.error { color: var(--danger); font-size: 14px; line-height: 1.5; }
.good { color: var(--green); }
.hint { line-height: 1.42; font-size: 14px; color: var(--soft); }
.entry, .report, .tray { background: var(--light); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; min-width: 0; }
.entry > p { white-space: pre-wrap; line-height: 1.5; }
.entry .when { font-size: 13px; color: var(--soft); margin-bottom: 8px; }
.files { margin-top: 10px; display: grid; gap: 10px; }
.files audio, .files video { width: 100%; }
.files img { display: block; max-width: 100%; width: auto; max-height: 300px; object-fit: contain; border-radius: 8px; }
.draft-file { display: grid; gap: 6px; border: 1px solid var(--line); padding: 10px; border-radius: 10px; }
.draft-file .row { justify-content: space-between; }
.file-form a { color: var(--green); }
.remove { color: var(--danger); min-height: 39px; border-color: transparent; background: transparent; padding: 5px 8px; font-size: 14px; }
.record { min-height: 57px; background: var(--mint); border-color: #c5dfd1; color: var(--green-dark); }
.record.active { color: var(--danger); border-color: #e4c5bc; background: #fff2ef; }
.options { padding: 11px 0 1px; }
.upload-choice { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.upload-choice:focus-visible + label { outline: 3px solid #365faf; }
progress { width: 100%; height: 9px; accent-color: var(--green); }
summary { cursor: pointer; font-weight: 650; color: var(--green-dark); padding: 12px 0; }
.status { font-size: 14px; color: var(--soft); padding: 12px 0 0; line-height: 1.45; }
.prompt { padding: 15px; border-radius: 13px; border: 1px solid #cadfd4; background: #edf7f0; }
.prompt p { margin-top: 7px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.no-script { margin: 18px; }
@media (max-width: 480px) {
  main { width: calc(100% - 22px); margin: 19px auto max(24px, env(safe-area-inset-bottom)); }
  .sheet { border-radius: 18px; }
  .top-inner { min-height: 56px; width: calc(100% - 30px); }
  .action { padding: 11px 10px; gap: 6px; }
  .action svg { flex-basis: 19px; width: 19px; height: 19px; }
}
@media (max-width: 340px) { .action-grid { grid-template-columns: 1fr; } }

[hidden] { display: none !important; }
.in-room {
  color-scheme: dark;
  --back: #0d1428;
  --paper: #131b33;
  --light: #222e4e;
  --ink: #f2f3f9;
  --soft: #c6cde2;
  --line: #394561;
  --green: #6837bb;
  --green-dark: #562ba2;
  --mint: #2e3b60;
  --danger: #ffb6b0;
  --chat-strip: #1a2442;
  --chat-popover: #1c2744;
  --chat-accent: #c0a9ff;
  --chat-edge: linear-gradient(125deg, #aab5ff, #d98ae1 56%, #eeae90);
  --chat-action: linear-gradient(145deg, #8145d3, #5b31b8);
  --chat-action-hover: linear-gradient(145deg, #8c4edd, #6539c6);
  --chat-shadow: #080d2564;
  background: var(--back);
  color: var(--ink);
  min-height: 100dvh;
  display: flow-root;
  overflow: hidden;
}
:root:has(body.in-room) { background: #0d1428; }
.in-room .top { display: none; }
.in-room :focus-visible { outline-color: var(--chat-accent); }
.chat-room .flat { color: var(--chat-accent); }
.chat-main { width: min(100% - 32px, 800px); height: calc(100dvh - 38px); margin: 19px auto; }
.chat-room {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 35px var(--chat-shadow);
}
.chat-header {
  min-height: 59px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.chat-title { font-size: 17px; font-weight: 680; line-height: 1.25; letter-spacing: -.015em; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  background: #283757;
  color: var(--soft);
  font-size: 16px;
  font-weight: 680;
}
.chat-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  min-height: 42px;
  padding: 0;
  color: var(--soft);
  border: 0;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
}
.chat-room svg, .chat-floating svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chat-header .chat-help-button { flex: 0 0 35px; width: 35px; min-height: 35px; border: 1px solid var(--line); color: var(--soft); background: var(--light); font-size: 17px; font-weight: 650; }
.chat-header .chat-help-button:hover { background: var(--mint); }
.chat-session-action {
  min-height: 38px;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 20px;
  color: #fff;
  font-size: 13px;
  padding: 6px 14px;
}
.chat-pinned-guide {
  min-height: 40px;
  padding: 4px 12px;
  justify-content: flex-start;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--chat-strip);
  color: var(--soft);
  font-size: 12px;
  text-align: left;
}
.chat-pinned-guide svg { width: 16px; height: 16px; }
.chat-pinned-guide:focus-visible { outline-offset: -4px; }
.chat-feed {
  min-height: 0;
  overflow: hidden auto;
  overscroll-behavior: contain;
  touch-action: pan-y pinch-zoom;
  background: radial-gradient(ellipse at 90% 72%, #302445, transparent 65%),
    linear-gradient(150deg, #111a35, #142843);
  scrollbar-width: thin;
  scrollbar-color: #5c6b90 #141f38;
}
.chat-stream { min-height: 100%; display: flex; flex-direction: column; justify-content: end; gap: 13px; padding: 12px 18px; }
.chat-day { align-self: center; width: fit-content; max-width: 95%; margin: 4px auto; padding: 5px 10px; border-radius: 8px; color: var(--soft); background: var(--paper); font-size: 12px; line-height: 1.4; text-align: center; }
.chat-reminder { margin: 0 auto; padding: 3px 8px; font-size: 11px; }
.chat-guide { align-self: flex-start; margin-bottom: auto; max-width: min(100%, 500px); padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--chat-strip); color: var(--soft); }
.chat-guide h2, .chat-help h2 { color: var(--ink); font-size: 15px; letter-spacing: -.01em; }
.chat-guide-steps { display: grid; gap: 6px; margin: 7px 0 0; padding: 0; list-style: none; font-size: 12px; line-height: 1.4; }
.chat-guide-steps li { display: flex; align-items: flex-start; gap: 8px; }
.chat-guide-icon { flex: 0 0 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: var(--mint); color: var(--chat-accent); }
.chat-guide-icon svg { width: 14px; height: 14px; }
.chat-help { width: min(calc(100% - 28px), 430px); max-height: calc(100dvh - 30px); border: 1px solid var(--line); border-radius: 17px; padding: 9px 14px 15px; color: var(--soft); background: var(--chat-popover); box-shadow: 0 12px 35px var(--chat-shadow); }
.chat-help::backdrop { background: #080d22a8; }
.chat-help-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chat-help-header > .chat-icon { margin-right: -4px; }
.chat-help .chat-guide-steps { gap: 10px; font-size: 14px; }
.chat-help-footer { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.chat-support-link { min-height: 40px; color: var(--chat-accent); padding: 6px 10px; font-size: 13px; }
.chat-support-form { display: grid; gap: 10px; }
.chat-support-form textarea { resize: vertical; min-height: 94px; background: var(--paper); }
.chat-support-preview { display: flex; align-items: center; gap: 4px; }
.support-audio { width: 100%; min-width: 0; }
.chat-support-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; justify-content: flex-end; }
.chat-support-actions .flat { margin-right: auto; padding: 4px 0; min-height: 42px; font-size: 13px; }
.chat-support-actions .primary { min-height: 42px; padding: 5px 10px; font-size: 14px; }
.chat-support-actions .chat-meter { gap: 1px; }
.chat-support-actions .chat-duration { min-width: 28px; }
.chat-support-actions .chat-support-recording { background: #a84337; }
.chat-support-status:empty { display: none; }
.chat-bubble {
  align-self: flex-end;
  display: grid;
  gap: 5px;
  min-width: 83px;
  max-width: min(86%, 460px);
  padding: 8px 9px 6px;
  border: 1px solid var(--message-line, var(--line));
  border-radius: 14px 5px 14px 14px;
  background: var(--message-tint, var(--light));
  color: var(--ink);
  box-shadow: 0 1px 3px var(--chat-shadow);
}
.chat-bubble:focus { outline: 2px solid var(--chat-accent); outline-offset: 2px; }
.chat-wide { width: min(100%, 560px); max-width: 100%; }
.chat-kind-photo { --message-line: #7e6299; --message-tint: #232946; --icon-edge: #a982c9; --icon-light: #7a51a7; --icon-glow: #58427b; --icon-ink: #f6eaff; }
.chat-kind-video { --message-line: #8b606e; --message-tint: #302946; --icon-edge: #c88a97; --icon-light: #925a72; --icon-glow: #654051; --icon-ink: #fff0ea; }
.chat-kind-audio { --message-line: #4f6c9d; --message-tint: #1d314d; --icon-edge: #7295ce; --icon-light: #496ba4; --icon-glow: #324e83; --icon-ink: #e1edff; }
.chat-text { font-size: 16px; line-height: 1.42; white-space: pre-wrap; }
.chat-stamp { color: var(--soft); font-size: 12px; line-height: 1.3; display: grid; grid-template-columns: minmax(40px, 1fr) auto minmax(40px, 1fr); align-items: center; gap: 4px; }
.chat-stamp-details { display: grid; grid-template-columns: auto auto; place-items: center; column-gap: 5px; white-space: nowrap; }
.chat-stamp-edited { grid-column: 1 / -1; grid-row: 2; font-size: 10px; color: var(--soft); }
.chat-wide > .chat-stamp { border-top: 1px solid var(--message-line); padding-top: 2px; }
.chat-kind-icons { display: flex; gap: 5px; }
.chat-kind-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: var(--icon-ink);
  background: radial-gradient(ellipse at 24% 10%, #fff3, transparent 58%),
    linear-gradient(148deg, var(--icon-light), var(--icon-glow));
  border: 1px solid var(--icon-edge);
  box-shadow: inset 0 1px 0 #fff4, 0 2px 4px var(--chat-shadow);
}
.chat-kind-icon svg { width: 15px; height: 15px; stroke-width: 1.85; }
.chat-check { display: inline-flex; color: var(--soft); }
.chat-check svg { width: 16px; height: 16px; }
.chat-check-submitted { color: var(--chat-accent); }
.chat-icon.chat-message-menu { width: 40px; min-height: 40px; border-radius: 10px; }
.chat-stamp .chat-message-menu { justify-self: end; width: 44px; min-height: 44px; margin: -3px -6px -3px 0; }
.chat-menu-glyph { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--message-line, var(--line)); border-radius: 8px; background: var(--paper); color: var(--soft); }
.chat-menu-glyph svg { width: 15px; height: 15px; }
.chat-guide-icon.chat-menu-glyph { flex-basis: 26px; height: 26px; }
.chat-message-menu:hover .chat-menu-glyph, .chat-message-menu[aria-expanded="true"] .chat-menu-glyph { background: var(--mint); }
.chat-menu { display: grid; gap: 2px; background: var(--chat-popover); padding: 5px; border-radius: 8px; border: 1px solid var(--line); }
.chat-floating { position: fixed; z-index: 10; min-width: 158px; overflow: auto; overscroll-behavior: contain; box-shadow: 0 4px 18px var(--chat-shadow); }
.chat-floating svg { width: 17px; height: 17px; }
.chat-menu-action { min-height: 37px; padding: 5px 8px; justify-content: flex-start; border: 0; background: transparent; font-size: 13px; }
.chat-menu-action.destructive { color: var(--danger); }
.chat-drafts { display: flex; flex-wrap: wrap; gap: 7px; }
.chat-draft { position: relative; width: 60px; height: 60px; border: 1px solid var(--line); border-radius: 8px; }
.chat-draft .chat-media { height: 100%; min-height: 0; }
.chat-draft .chat-look { height: 100%; }
.chat-draft .chat-media img, .chat-draft .chat-media video { height: 100%; }
.chat-draft > .chat-icon { position: absolute; top: 2px; right: 2px; background: var(--chat-strip); }
.chat-media {
  width: 100%;
  min-height: 75px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  overflow: hidden;
  background: #1a203c;
}
.chat-media img, .chat-media video { display: block; width: 100%; height: auto; object-fit: contain; }
.chat-look { display: block; width: 100%; padding: 0; min-height: 0; border: 0; border-radius: 0; }
.chat-image-view[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  border: 0;
  background: #101b2d;
  overflow: hidden;
  overscroll-behavior: none;
}
.chat-image-view::backdrop { background: #101b2d; }
.chat-view-toolbar { display: flex; justify-content: end; padding: 5px 7px; }
.chat-view-toolbar button { color: #fff; }
.chat-view-toolbar button:hover { background: #ffffff24; }
.chat-view-content { display: grid; place-items: center; min-height: 0; min-width: 0; }
.chat-view-content img, .chat-view-content video { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.chat-trash { color: var(--danger); }
.chat-voice-draft .chat-voice { min-width: 0; flex: 1; }
.chat-voice { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 41px; }
.chat-play { width: 40px; flex-basis: 40px; min-height: 41px; color: #e1edff; }
.chat-play svg { box-sizing: content-box; width: 16px; height: 16px; padding: 8px; border-radius: 50%; background: linear-gradient(145deg, #496ba4, #324e83); box-shadow: inset 0 1px 0 #fff4; }
.chat-wave { position: relative; flex: 1; min-width: 32px; height: 40px; border-radius: 6px; }
.chat-wave-bars { display: grid; height: 100%; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: center; justify-items: center; }
.chat-wave-bars i { width: min(65%, 4px); min-width: 1px; height: var(--bar-height, 4px); border-radius: 3px; background: #83a0d0; }
.chat-wave-bars i.is-played { background: var(--chat-accent); }
.chat-wave:has(.chat-seek:focus-visible) { outline: 2px solid var(--chat-accent); outline-offset: 1px; }
.chat-seek { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chat-duration { color: var(--soft); font-size: 12px; font-variant-numeric: tabular-nums; padding-right: 2px; white-space: nowrap; }
.chat-quote {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 38px;
  padding: 6px 8px;
  width: 100%;
  text-align: left;
  border: 0;
  border-left: 3px solid var(--chat-accent);
  border-radius: 6px;
  color: var(--soft);
  background: var(--chat-strip);
  font-size: 12px;
}
.chat-quote-text { display: grid; gap: 2px; min-width: 0; }
.chat-quote-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; }
.chat-quote img { width: 36px; height: 36px; object-fit: cover; border-radius: 4px; }
.chat-composer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 8px 10px max(8px, env(safe-area-inset-bottom)); background: var(--chat-strip); border-top: 1px solid var(--line); }
.chat-continue { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.chat-continue .chat-session-action { min-height: 42px; }
.brief-bubble { align-self: flex-start; gap: 9px; max-width: min(100%, 580px); padding: 13px; background: var(--chat-strip); border: 1px solid var(--line); border-radius: 6px 14px 14px; }
.brief-bubble h2 { font-size: 15px; letter-spacing: -.012em; }
.brief-description { white-space: pre-wrap; font-size: 14px; line-height: 1.5; }
.source-url { max-width: 100%; overflow-wrap: anywhere; text-align: left; }
.brief-bubble .source-links { gap: 6px; }
.brief-bubble .source-links > .button, .brief-bubble .source-links > button { min-height: 35px; font-size: 12px; padding: 7px 9px; }
.access-credentials { overflow-wrap: anywhere; white-space: pre-wrap; background: var(--light); border: 1px solid var(--line); border-radius: 10px; padding: 11px; margin: 0; color: var(--ink); }
.chat-compose-row { display: flex; gap: 7px; align-items: end; min-width: 0; }
.chat-input {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 25px;
  padding: 1px 4px;
}
.chat-room textarea::placeholder { color: #aebbd8; opacity: 1; }
.chat-input textarea { border: 0; min-height: 42px; padding: 10px 4px 8px; resize: none; background: transparent; line-height: 1.4; font-size: 16px; }
.chat-input textarea:focus-visible { outline: 0; }
.chat-input:focus-within { border-color: var(--chat-accent); }
.chat-round { min-height: 44px; width: 44px; flex-basis: 44px; }
.chat-round, .chat-session-action {
  border: 1px solid transparent;
  background: var(--chat-action) padding-box, var(--chat-edge) border-box;
  color: #fff;
  box-shadow: 0 2px 5px var(--chat-shadow), inset 0 1px 0 #fff4;
}
.chat-round:hover, .chat-session-action:hover { background: var(--chat-action-hover) padding-box, var(--chat-edge) border-box; }
.chat-compose-quote { display: flex; gap: 3px; align-items: center; padding: 4px; border-radius: 10px; background: var(--paper); }
.chat-edit-head { display: flex; align-items: center; justify-content: space-between; padding-left: 10px; border-radius: 11px; background: var(--paper); font-size: 13px; color: var(--chat-accent); font-weight: 650; }
.chat-edit-input textarea { border-radius: 13px; padding-left: 12px; }
.chat-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 7px; background: var(--paper); border-radius: 13px; }
.chat-picker-camera { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chat-picker-item { min-width: 0; }
.chat-picker-item > label { cursor: pointer; }
.chat-picker-option { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 58px; gap: 5px; color: var(--soft); text-align: center; border-radius: 8px; font-size: 12px; padding: 3px; }
.chat-picker-option:hover { background: var(--mint); }
.chat-picker .upload-choice { left: auto; }
.chat-picker .upload-choice:focus-visible + label { outline-color: var(--chat-accent); }
.chat-error { padding: 1px 5px; }
.chat-recorder { display: flex; align-items: center; gap: 7px; width: fit-content; max-width: 100%; }
.chat-recorder.recording { padding: 1px 5px; color: var(--danger); border-radius: 17px; background: #37253d; }
.chat-compose-row.is-recording > .chat-input { display: none; }
.chat-compose-row.is-recording .chat-recorder { flex: 1; padding: 4px 6px 4px 14px; }
.chat-compose-row.is-recording .chat-meter { flex: 1; justify-content: space-between; max-width: 210px; }
.chat-recorder.recording .chat-round { background: #a84337; color: #fff; min-height: 36px; width: 36px; flex-basis: 36px; }
.chat-meter { display: flex; align-items: center; gap: 2px; height: 19px; }
.chat-meter i { display: block; width: 2px; height: 17px; border-radius: 4px; background: var(--danger); transform: scaleY(.2); }
@media (max-width: 640px) {
  .chat-main { width: 100%; height: 100dvh; margin: 0; }
  .chat-room { border: 0; border-radius: 0; }
  .chat-header { padding-left: 5px; min-height: 56px; }
  .chat-stream { padding: 10px 11px; }
  .chat-composer { padding-left: 7px; padding-right: 7px; }
}
