/* [project]/src/app/reference.css [app-client] (css) */
:root {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  --navy-950: #101744;
  --navy-900: #17215b;
  --navy-700: #3047bc;
  --blue: #3158d5;
  --pink: #ed3e7c;
  --orange: #f5a32a;
  --yellow: #f1df4a;
  --ink: #161a2b;
  --muted: #70778a;
  --faint: #9ba0ae;
  --line: #dfe3eb;
  --line-warm: #e4ddd1;
  --canvas: #f5f2ed;
  --surface: #fff;
  --surface-soft: #f5f6fa;
  --outgoing: #edf1ff;
  --danger: #bd3e43;
  --danger-soft: #fff0ef;
  --success: #347956;
  --success-soft: #eaf7ef;
  --attention: #a85e06;
  --attention-soft: #fff4e2;
  --shadow: 0 24px 70px #141c492e;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html, body {
  min-width: 320px;
  min-height: 100%;
  color: var(--ink);
  background: #e9edf5;
  margin: 0;
}

body {
  min-height: 100dvh;
}

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

button {
  color: inherit;
}

button, a, input, select, textarea {
  outline-offset: 3px;
}

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

.qa-bar {
  background: #f8f9fc;
  border-bottom: 1px solid #d9deea;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 10px 18px;
  display: flex;
}

.qa-heading {
  flex: none;
  min-width: 155px;
}

.qa-title {
  font-size: 14px;
  font-weight: 750;
  display: block;
}

.qa-note {
  color: var(--muted);
  margin-top: 3px;
  font-size: 11px;
  display: block;
}

.qa-devices, .qa-routes {
  scrollbar-width: none;
  align-items: center;
  gap: 6px;
  display: flex;
  overflow-x: auto;
}

.qa-devices::-webkit-scrollbar {
  display: none;
}

.qa-routes::-webkit-scrollbar {
  display: none;
}

.qa-device, .qa-route {
  cursor: pointer;
  background: #fff;
  border: 1px solid #d8ddea;
  border-radius: 999px;
  flex: none;
  min-height: 38px;
  padding: 7px 11px;
  font-size: 12px;
}

.qa-device[aria-pressed="true"], .qa-route[aria-pressed="true"] {
  color: #fff;
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.qa-state {
  min-width: 220px;
  max-width: 300px;
  min-height: 38px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d8ddea;
  border-radius: 12px;
  padding: 7px 32px 7px 10px;
}

.stage {
  padding: 18px;
}

.app {
  background: var(--surface);
  border-radius: var(--r-xl);
  width: min(1440px, 100%);
  height: calc(100dvh - 108px);
  min-height: 690px;
  box-shadow: var(--shadow);
  isolation: isolate;
  border: 1px solid #141d481a;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.app[data-device="mobile"] {
  border-radius: 30px;
  width: min(390px, 100%);
  height: min(844px, 100dvh - 108px);
  min-height: 640px;
}

body.capture .qa-bar {
  display: none;
}

body.capture .stage {
  padding: 0;
}

body.capture .app {
  width: 100vw;
  height: 100dvh;
  min-height: 0;
  box-shadow: none;
  border: 0;
  border-radius: 0;
}

.brand-mark {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  border-radius: 17px;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  font-size: 20px;
  font-weight: 800;
  display: grid;
  box-shadow: 0 10px 28px #ed3e7c47;
}

.nav-rail {
  z-index: 4;
  color: #ffffffb3;
  background: radial-gradient(circle at 90% 12%,
      #ed3e7c6b,
      transparent 24%),
    radial-gradient(circle at 5% 70%,
      #f5a32a29,
      transparent 26%),
    linear-gradient(180deg, #1a2769, var(--navy-950));
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 15px 9px;
  display: flex;
  position: relative;
}

.nav-rail .brand-mark {
  margin-bottom: 8px;
}

.rail-action {
  width: 52px;
  min-height: 50px;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 15px;
  place-items: center;
  padding: 4px;
  font-size: 18px;
  display: grid;
}

.rail-action small {
  margin-top: 2px;
  font-size: 9px;
  display: block;
}

.rail-action.active {
  color: var(--navy-950);
  background: #fff;
  box-shadow: 0 10px 25px #070c2b42;
}

.rail-action.planned {
  opacity: .55;
}

.rail-spacer {
  flex: 1;
}

.mobile-bottom {
  z-index: 10;
  min-height: 72px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fffffff7;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  display: none;
  position: relative;
  box-shadow: 0 -9px 28px #141c4914;
}

.mobile-only {
  display: none;
}

.mobile-bottom button {
  min-width: 0;
  min-height: 48px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 14px;
  padding: 4px 2px;
  font-size: 17px;
}

.mobile-bottom button span {
  text-overflow: ellipsis;
  margin-top: 3px;
  font-size: 9px;
  display: block;
  overflow: hidden;
}

.mobile-bottom button.active {
  color: var(--navy-900);
  background: #eef1fb;
}

.mobile-bottom button.planned {
  opacity: .5;
}

.primary-button, .secondary-button, .text-button, .icon-button {
  cursor: pointer;
  border: 0;
}

.primary-button {
  color: #fff;
  background: var(--navy-900);
  border-radius: 13px;
  min-height: 44px;
  padding: 10px 18px;
  font-weight: 700;
}

.primary-button.brand {
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.primary-button:disabled {
  opacity: .5;
  cursor: default;
}

.secondary-button {
  border: 1px solid var(--line);
  min-height: 42px;
  color: var(--ink);
  background: #fff;
  border-radius: 12px;
  padding: 9px 14px;
}

.text-button {
  color: var(--blue);
  background: none;
  padding: 4px 0;
  font-weight: 650;
}

.icon-button {
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: none;
  border-radius: 13px;
  place-items: center;
  font-size: 19px;
  display: grid;
}

.icon-button:hover, .icon-button:focus-visible {
  background: #eef0f7;
}

.field {
  gap: 7px;
  display: grid;
}

.field label {
  color: #4e5463;
  font-size: 12px;
  font-weight: 700;
}

.field input, .field select, .composer-input {
  width: 100%;
  min-height: 46px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d5d9e4;
  border-radius: 13px;
  padding: 11px 13px;
}

.field input:focus, .field select:focus, .composer-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #3158d51c;
}

.field input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  color: var(--danger);
  font-size: 11px;
  line-height: 1.35;
}

.field-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.check-row {
  align-items: center;
  gap: 9px;
  min-height: 42px;
  display: flex;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--navy-900);
}

.notice {
  color: #4f5869;
  background: #f1f3f8;
  border-radius: 12px;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  font-size: 12px;
  line-height: 1.4;
  display: flex;
}

.notice.error {
  color: #8e3034;
  background: var(--danger-soft);
}

.notice.success {
  color: #296245;
  background: var(--success-soft);
}

.notice.attention {
  color: #7d4a09;
  background: var(--attention-soft);
}

.notice strong {
  font-weight: 750;
}

.spinner {
  border: 2px solid #3158d533;
  border-top-color: var(--blue);
  border-radius: 50%;
  flex: none;
  width: 16px;
  height: 16px;
  animation: .8s linear infinite spin;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 1.6s;
  }

  * {
    scroll-behavior: auto !important;
  }
}

.skeleton {
  background: #e8ebf2;
  position: relative;
  overflow: hidden;
}

.skeleton:after {
  content: "";
  background: linear-gradient(90deg, #0000, #ffffffb3, #0000);
  animation: 1.35s infinite shimmer;
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton:after {
    display: none;
  }
}

@property --auth-orbit {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.auth-shell {
  background: radial-gradient(circle at 18% 20%, #ed3e7c09, #0000 24%), radial-gradient(circle at 80% 84%, #f5a32a0a, #0000 27%), linear-gradient(150deg, #eef1fb61 0%, #f8f4ef47 52%, #eff2fb61 100%);
  place-items: center;
  height: 100%;
  padding: 32px;
  display: grid;
}

.auth-card {
  background: #fffffff2;
  border: 1px solid #17215b17;
  border-radius: 26px;
  width: min(440px, 100%);
  padding: 28px;
  box-shadow: 0 22px 60px #141c4921;
}

.auth-card.minimal {
  width: min(420px, 100%);
  min-height: 132px;
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 0;
  align-items: start;
  padding: 0;
  display: grid;
}

.auth-card .brand-mark {
  margin-bottom: 24px;
}

.auth-card h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.15;
}

.auth-lead {
  color: var(--muted);
  margin: 8px 0 22px;
  font-size: 13px;
  line-height: 1.5;
}

.auth-form {
  gap: 16px;
  display: grid;
}

.auth-actions {
  gap: 12px;
  margin-top: 2px;
  display: grid;
}

.auth-meta {
  color: var(--muted);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  display: flex;
}

.minimal-auth-form {
  display: grid;
  position: relative;
}

.minimal-field, .code-entry {
  --auth-orbit: 0deg;
  background: #fffffff5;
  border: 1px solid #bfc6d5;
  border-radius: 22px;
  width: 100%;
  height: 64px;
  transition: border-color .18s, box-shadow .18s;
  position: relative;
  box-shadow: 0 16px 34px #141c4924;
}

.email-input {
  z-index: 2;
  border-radius: inherit;
  width: 100%;
  height: 100%;
  color: var(--ink);
  caret-color: var(--ink);
  text-align: center;
  background: none;
  border: 0;
  outline: 0;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 400;
  position: relative;
}

.email-input:focus {
  outline: 0;
}

.email-input:disabled {
  opacity: 1;
  -webkit-text-fill-color: var(--ink);
}

.minimal-field.invalid, .minimal-field.offline, .code-entry.invalid, .code-entry.offline {
  border-color: var(--danger);
  box-shadow: 0 16px 34px #141c4924, 0 0 0 3px #bc3e471a, 0 0 24px #bc3e4721;
}

.minimal-field.success, .code-entry.success {
  border-color: var(--success);
  box-shadow: 0 16px 34px #141c4924, 0 0 0 3px #2f8f621a, 0 0 28px #2f8f6226;
}

body.capture .minimal-field.empty:before {
  content: "";
  z-index: 3;
  background: var(--ink);
  border-radius: 1px;
  width: 1px;
  height: 24px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

body.capture .minimal-field.empty .email-input {
  caret-color: #0000;
}

body.capture .code-position.active:before {
  animation: none;
}

.minimal-field:after, .code-entry:after {
  content: "";
  z-index: 4;
  border-radius: inherit;
  background: conic-gradient(from var(--auth-orbit),
    transparent 0deg 238deg,
    #956fff1f 250deg,
    #885eff85 302deg,
    #7048fffa 352deg,
    transparent 360deg);
  opacity: 0;
  pointer-events: none;
  -webkit-mask-composite: xor;
  padding: 3px;
  position: absolute;
  inset: -3px;
  -webkit-mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  -webkit-mask-position: 0 0, 0 0;
  -webkit-mask-size: auto, auto;
  -webkit-mask-repeat: repeat, repeat;
  -webkit-mask-clip: content-box, border-box;
  -webkit-mask-origin: content-box, border-box;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  -webkit-mask-source-type: auto, auto;
  mask-mode: match-source, match-source;
}

.minimal-field.processing:after, .code-entry.processing:after {
  opacity: 1;
  animation: 1.45s linear infinite auth-comet-orbit;
}

.code-surface {
  grid-template-rows: 64px 44px;
  gap: 24px;
  display: grid;
}

.code-navigation {
  place-items: center;
  min-height: 44px;
  display: grid;
}

.code-back {
  width: 44px;
  height: 44px;
  color: var(--navy-900);
  cursor: pointer;
  background: #ffffffe6;
  border: 1px solid #bfc6d5;
  border-radius: 50%;
  place-items: center;
  padding: 0;
  font-size: 20px;
  transition: transform .16s, border-color .16s, box-shadow .16s;
  display: grid;
  box-shadow: 0 8px 20px #141c491a;
}

.code-back:hover {
  border-color: #8c72e8;
  transform: translateX(-2px);
  box-shadow: 0 0 20px #956fff26;
}

.code-back:focus-visible {
  outline-offset: 3px;
  outline: 2px solid #7654df;
}

.code-entry {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 15px;
  display: grid;
}

.code-position {
  min-width: 0;
  height: 100%;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
  place-items: center;
  font-size: 20px;
  font-weight: 500;
  display: grid;
  position: relative;
}

.code-position:after {
  content: "";
  background: #4e60806b;
  border-radius: 1px;
  height: 1px;
  position: absolute;
  bottom: 4px;
  left: 3px;
  right: 3px;
}

.code-position.active:before {
  content: "";
  background: var(--ink);
  border-radius: 1px;
  width: 1px;
  height: 24px;
  animation: 1s step-end infinite auth-caret;
}

.code-entry.processing .code-position.active:before, .code-entry.invalid .code-position.active:before, .code-entry.success .code-position.active:before {
  display: none;
}

.code-input {
  z-index: 5;
  border-radius: inherit;
  opacity: 0;
  cursor: text;
  caret-color: #0000;
  border: 0;
  outline: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  position: absolute;
  inset: 0;
}

.code-input:disabled {
  cursor: default;
}

@keyframes auth-comet-orbit {
  to {
    --auth-orbit: 360deg;
  }
}

@keyframes auth-caret {
  0%, 48% {
    opacity: 1;
  }

  49%, 100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .minimal-field.processing:after, .code-entry.processing:after {
    --auth-orbit: 305deg;
    animation: none;
  }

  .code-position.active:before {
    animation-duration: 1.6s;
  }
}

body.reduce-motion .minimal-field.processing:after, body.reduce-motion .code-entry.processing:after {
  --auth-orbit: 305deg;
  animation: none;
}

.admin-shell {
  grid-template-columns: 82px minmax(0, 1fr);
  height: 100%;
  display: grid;
}

.admin-main {
  background: #f6f7fb;
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.admin-header {
  border-bottom: 1px solid var(--line);
  background: #fffffff5;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 78px;
  padding: 14px 24px;
  display: flex;
}

.admin-title h1 {
  margin: 0;
  font-size: 21px;
}

.admin-title p {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 12px;
}

.admin-layout {
  flex: 1;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 16px;
  min-height: 0;
  padding: 18px;
  display: grid;
}

.admin-list-panel, .admin-form-panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 20px;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 8px 30px #141c490d;
}

.panel-heading {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 16px;
  display: flex;
}

.panel-heading strong {
  font-size: 14px;
}

.user-list {
  height: calc(100% - 58px);
  min-height: 0;
  overflow: auto;
}

.user-row {
  border-bottom: 1px solid #edf0f5;
  grid-template-columns: 42px minmax(0, 1fr) 140px 96px;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px 16px;
  display: grid;
}

.avatar {
  color: #fff;
  background: linear-gradient(145deg, #3753c7, #7d8be4);
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  font-size: 12px;
  font-weight: 750;
  display: grid;
}

.avatar.warm {
  background: linear-gradient(145deg, #e25a82, #f3a14e);
}

.avatar.green {
  background: linear-gradient(145deg, #2d7b6e, #6cb49d);
}

.user-copy {
  min-width: 0;
}

.user-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 750;
  overflow: hidden;
}

.user-email {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
  font-size: 11px;
  overflow: hidden;
}

.role-label, .status-label {
  color: #596073;
  background: #f0f2f7;
  border-radius: 999px;
  width: fit-content;
  padding: 5px 8px;
  font-size: 10px;
}

.status-label.active {
  color: #2d684a;
  background: var(--success-soft);
}

.admin-form-panel {
  flex-direction: column;
  display: flex;
}

.admin-form {
  gap: 15px;
  padding: 18px;
  display: grid;
  overflow: auto;
}

.form-actions {
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
  display: flex;
}

.inline-result {
  margin: 0 18px 18px;
}

.mobile-back {
  display: none;
}

.chat-shell {
  grid-template-columns: 82px 330px minmax(0, 1fr);
  height: 100%;
  display: grid;
}

.chat-list {
  border-right: 1px solid var(--line);
  background: #f7f8fb;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  display: flex;
}

.list-header {
  border-bottom: 1px solid var(--line);
  background: #ffffffeb;
  padding: 15px 14px 11px;
}

.list-presence {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  display: flex;
}

.list-presence strong {
  font-size: 14px;
  display: block;
}

.list-presence span {
  color: var(--muted);
  font-size: 11px;
}

.self-avatar {
  cursor: pointer;
  width: 38px;
  height: 38px;
}

.list-heading {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.list-heading h1 {
  margin: 0;
  font-size: 18px;
}

.chat-rows {
  flex: 1;
  min-height: 0;
  padding: 7px;
  overflow: auto;
}

.chat-row {
  width: 100%;
  min-height: 68px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 15px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  display: grid;
}

.chat-row:hover, .chat-row:focus-visible {
  background: #eef1f8;
}

.chat-row.active {
  background: #e8edfb;
}

.chat-row-main {
  min-width: 0;
}

.chat-row-title {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 750;
  overflow: hidden;
}

.chat-row-preview {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
  font-size: 11px;
  overflow: hidden;
}

.chat-row-side {
  color: var(--faint);
  align-self: start;
  justify-items: end;
  gap: 6px;
  padding-top: 3px;
  font-size: 10px;
  display: grid;
}

.unread {
  color: #fff;
  background: var(--pink);
  border-radius: 999px;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  font-size: 10px;
  display: grid;
}

.list-status {
  padding: 0 12px 9px;
}

.empty-state {
  min-height: 0;
  color: var(--muted);
  text-align: center;
  flex: 1;
  place-items: center;
  padding: 28px;
  display: grid;
}

.empty-state .empty-symbol {
  width: 68px;
  height: 68px;
  color: var(--navy-900);
  background: linear-gradient(145deg, #e8ecfb, #fff2eb);
  border-radius: 24px;
  place-items: center;
  margin: 0 auto 15px;
  font-size: 29px;
  display: grid;
}

.empty-state h2 {
  color: var(--ink);
  margin: 0;
  font-size: 18px;
}

.empty-state p {
  max-width: 340px;
  margin: 8px auto 16px;
  font-size: 12px;
  line-height: 1.5;
}

.workspace {
  background: var(--canvas);
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  display: flex;
  position: relative;
}

.connection-strip {
  z-index: 9;
  color: #76501f;
  text-align: center;
  background: #fff0d5;
  border-bottom: 1px solid #ead3a8;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 35px;
  padding: 7px 12px;
  font-size: 11px;
  display: flex;
  position: relative;
}

.connection-strip.reconnecting {
  color: #4f5870;
  background: #eef1f8;
  border-color: #d9ddea;
}

.connection-strip.success {
  color: #296245;
  background: var(--success-soft);
  border-color: #cde8d8;
}

.chat-header {
  z-index: 8;
  border-bottom: 1px solid var(--line);
  background: #fffffff7;
  align-items: center;
  gap: 11px;
  min-height: 68px;
  padding: 10px 18px;
  display: flex;
  position: relative;
  box-shadow: 0 4px 18px #2025410d;
}

.back-button {
  cursor: pointer;
  background: none;
  border: 0;
  width: 38px;
  height: 42px;
  padding: 0;
  font-size: 26px;
  display: none;
}

.chat-header-copy {
  flex: 1;
  min-width: 0;
}

.chat-header-title {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 750;
  overflow: hidden;
}

.chat-header-subtitle {
  color: var(--muted);
  margin-top: 3px;
  font-size: 11px;
}

.header-actions {
  gap: 3px;
  display: flex;
}

.feed {
  background: radial-gradient(circle at 86% 5%,
      #ed3e7c0b,
      transparent 24%),
    radial-gradient(circle at 20% 76%,
      #3158d50b,
      transparent 23%),
    var(--canvas);
  flex: 1;
  min-height: 0;
  padding: 20px clamp(14px, 4vw, 58px) 26px;
  overflow: auto;
}

.feed-inner {
  width: min(820px, 100%);
  margin: 0 auto;
}

.date-divider {
  color: #8c877e;
  letter-spacing: .08em;
  text-transform: uppercase;
  align-items: center;
  gap: 11px;
  margin: 4px 0 18px;
  font-size: 10px;
  font-weight: 750;
  display: flex;
}

.date-divider:before, .date-divider:after {
  content: "";
  background: #ddd6cb;
  flex: 1;
  height: 1px;
}

.date-divider span {
  background: #ffffffb8;
  border: 1px solid #dcd5cae6;
  border-radius: 999px;
  padding: 6px 9px;
}

.message-group {
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 10px;
  margin: 0 0 16px;
  display: grid;
}

.message-group.outgoing {
  grid-template-columns: minmax(0, 1fr);
}

.message-avatar {
  grid-area: 1 / 1 / span 10;
  align-self: start;
  margin-top: 18px;
}

.group-body {
  grid-column: 2;
  min-width: 0;
}

.outgoing .group-body {
  flex-direction: column;
  grid-column: 1;
  align-items: flex-end;
  display: flex;
}

.author {
  color: #4c5260;
  margin: 0 0 5px 10px;
  font-size: 12px;
  font-weight: 750;
}

.bubble-row {
  align-items: flex-end;
  gap: 5px;
  width: 100%;
  margin-top: 3px;
  display: flex;
}

.outgoing .bubble-row {
  justify-content: flex-end;
}

.bubble {
  background: #fffffff7;
  border: 1px solid #c9c3b9db;
  border-radius: 9px 16px 16px 9px;
  width: fit-content;
  max-width: min(620px, 78%);
  padding: 9px 11px 7px;
  box-shadow: 0 3px 10px #35312a0b;
}

.outgoing .bubble {
  background: var(--outgoing);
  border-color: #d3daf2;
  border-radius: 16px 9px 9px 16px;
}

.bubble-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.4;
}

.message-meta {
  float: right;
  color: #8f918f;
  align-items: center;
  gap: 4px;
  margin: 5px 0 -1px 12px;
  font-size: 10px;
  line-height: 14px;
  display: inline-flex;
}

.pending-clock {
  border: 1.5px solid #858b9b;
  border-radius: 50%;
  width: 11px;
  height: 11px;
  display: inline-block;
}

.pending-clock:after {
  content: "";
  transform-origin: bottom;
  background: #858b9b;
  width: 1px;
  height: 3px;
  margin: 1px 0 0 4px;
  display: block;
  transform: rotate(-34deg);
}

.message-status {
  width: 100%;
  color: var(--muted);
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  font-size: 11px;
  display: flex;
}

.message-status.error {
  color: var(--danger);
}

.message-status.queue {
  color: var(--attention);
}

.message-status button {
  color: inherit;
  cursor: pointer;
  text-underline-offset: 2px;
  background: none;
  border: 0;
  padding: 2px 0;
  font-weight: 750;
  text-decoration: underline;
}

.new-message-button {
  z-index: 7;
  min-height: 38px;
  color: var(--blue);
  cursor: pointer;
  background: #fffffff5;
  border: 1px solid #d5dbea;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 11px;
  font-weight: 750;
  position: absolute;
  bottom: 148px;
  right: 18px;
  box-shadow: 0 9px 24px #141c4921;
}

.composer-dock {
  z-index: 8;
  width: 100%;
  min-height: 72px;
  padding: 7px 16px max(11px, env(safe-area-inset-bottom));
  background: linear-gradient(#fff0, #ffffffd1 42%, #fffffff5);
  flex: none;
  justify-content: center;
  align-items: flex-end;
  display: flex;
  position: relative;
}

.composer-capsule {
  color: #303548;
  cursor: text;
  background: #fffffff7;
  border: 0;
  border-radius: 15px;
  place-items: center;
  min-height: 30px;
  margin-bottom: -4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  display: grid;
  box-shadow: 0 10px 27px #0f153c33;
}

.composer-line, .composer-open {
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: #fffffff0;
  border: 1px solid #dce1eb;
  border-radius: 24px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 14px 36px #131b4229;
}

.composer-line {
  grid-template-columns: repeat(3, 40px) minmax(64px, 1fr) repeat(3, 40px);
  align-items: center;
  gap: 4px;
  min-height: 52px;
  padding: 5px 6px;
  display: grid;
}

.composer-trigger {
  color: #7d8494;
  cursor: text;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: none;
  border: 0;
  min-width: 0;
  min-height: 38px;
  padding: 0 4px;
  font-size: 13px;
  overflow: hidden;
}

.composer-context {
  border-bottom: 1px solid #5c688221;
  min-height: 54px;
  padding: 9px 42px 8px 13px;
  position: relative;
}

.composer-context-title {
  color: #995678;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 650;
}

.composer-context-text {
  color: #697185;
  max-height: 34px;
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
}

.composer-context-close {
  color: #5e6679;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 50%;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  display: grid;
  position: absolute;
  top: 8px;
  right: 10px;
}

.composer-inline-quote {
  color: #596174;
  background: #d1709d14;
  border-left: 2px solid #bd6e91;
  border-radius: 7px;
  margin: 9px 13px 0;
  padding: 7px 9px;
  font-size: 12px;
  line-height: 1.35;
}

.composer-body {
  min-height: 42px;
  padding: 0;
}

.composer-input {
  resize: none;
  width: 100%;
  min-height: calc(2.8em + 22px);
  max-height: calc(18.2em + 22px);
  color: var(--ink);
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 11px 13px;
  line-height: 1.4;
  display: block;
  overflow-y: hidden;
}

.composer-input:focus {
  box-shadow: none;
  border: 0;
}

.composer-actions {
  grid-template-columns: repeat(3, 40px) minmax(28px, 1fr) repeat(3, 40px);
  align-items: center;
  gap: 4px;
  min-height: 55px;
  padding: 5px 7px 8px;
  display: grid;
}

.composer-action {
  color: #4f5f72;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 50%;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
}

.composer-action svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 23px;
  height: 23px;
}

.composer-action[data-planned="true"] {
  cursor: default;
}

.composer-action[data-planned="true"]:disabled {
  opacity: .76;
}

.composer-action-video {
  box-shadow: inset 0 0 0 1px #4a52693d;
}

.composer-action-video svg {
  stroke-width: 1.3px;
  width: 27px;
  height: 27px;
}

.send-button {
  cursor: pointer;
  background: none;
  border: 1px solid #bfc5d2;
  border-radius: 50%;
  place-items: center;
  width: 40px;
  height: 40px;
  display: grid;
}

.send-button:disabled {
  cursor: default;
}

.send-mark {
  background: none;
  width: 25px;
  height: auto;
  display: block;
}

.send-button:disabled .send-mark {
  filter: grayscale();
  opacity: .36;
}

.skeleton-chat-row {
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 9px;
  display: grid;
}

.skeleton-circle {
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.skeleton-lines {
  gap: 8px;
  display: grid;
}

.skeleton-line {
  border-radius: 999px;
  height: 10px;
}

.skeleton-line.short {
  width: 58%;
}

.skeleton-bubble {
  border-radius: 16px;
  width: 52%;
  height: 56px;
  margin-bottom: 13px;
}

.skeleton-bubble.right {
  width: 44%;
  margin-left: auto;
}

@media (max-width: 780px) {
  .qa-bar {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .qa-heading {
    width: 100%;
  }

  .qa-routes {
    max-width: 100%;
  }

  .qa-state {
    flex: 1;
    min-width: 190px;
  }

  .stage {
    padding: 10px;
  }

  .app {
    height: calc(100dvh - 160px);
    min-height: 600px;
  }
}

.app[data-device="mobile"] .nav-rail, .app[data-device="mobile"] .chat-list.desktop-list, .app[data-device="mobile"] .desktop-only {
  display: none !important;
}

.app[data-device="mobile"] .mobile-only {
  flex: 1;
  min-height: 0;
  display: flex;
}

.app[data-device="mobile"] .chat-shell {
  flex-direction: column;
  display: flex;
}

.app[data-device="mobile"] .chat-list.mobile-list {
  border: 0;
  flex: 1;
  display: flex;
}

.app[data-device="mobile"] .mobile-bottom {
  display: grid;
}

.app[data-device="mobile"] .workspace {
  flex: 1;
}

.app[data-device="mobile"] .back-button {
  display: block;
}

.app[data-device="mobile"] .chat-header {
  min-height: 62px;
  padding: 8px 10px;
}

.app[data-device="mobile"] .header-actions .icon-button:first-child {
  display: none;
}

.app[data-device="mobile"] .feed {
  padding: 16px 10px 18px;
}

.app[data-device="mobile"] .bubble {
  max-width: 84%;
}

.app[data-device="mobile"] .new-message-button {
  bottom: 136px;
}

.app[data-device="mobile"] .composer-dock {
  min-height: 72px;
  padding: 7px 7px max(11px, env(safe-area-inset-bottom));
}

.app[data-device="mobile"] .composer-input {
  min-height: calc(1.4em + 22px);
  max-height: min(11.2em + 22px, 44dvh);
}

.app[data-device="mobile"] .send-button {
  width: 40px;
  height: 40px;
}

@media (max-width: 360px) {
  .app[data-device="mobile"] .composer-line {
    grid-template-columns: repeat(3, 36px) minmax(54px, 1fr) repeat(3, 36px);
    gap: 2px;
    padding-inline: 5px;
  }

  .app[data-device="mobile"] .composer-actions {
    grid-template-columns: repeat(3, 36px) minmax(22px, 1fr) repeat(3, 36px);
    gap: 2px;
    padding-inline: 5px;
  }

  .app[data-device="mobile"] .composer-action, .app[data-device="mobile"] .send-button {
    width: 36px;
    height: 36px;
  }

  .app[data-device="mobile"] .composer-action svg {
    width: 21px;
    height: 21px;
  }

  .app[data-device="mobile"] .composer-action-video svg {
    width: 25px;
    height: 25px;
  }

  .app[data-device="mobile"] .send-mark {
    width: 23px;
  }
}

.app[data-device="mobile"] .connection-strip {
  min-height: 34px;
  padding: 6px 9px;
}

.app[data-device="mobile"] .auth-shell {
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  align-items: center;
}

.app[data-device="mobile"] .auth-card {
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 0;
  margin-top: 0;
  padding: 0;
}

.app[data-device="mobile"] .auth-card .brand-mark {
  margin-bottom: 28px;
}

.app[data-device="mobile"] .auth-card h1 {
  font-size: 24px;
}

.app[data-device="mobile"] .admin-shell {
  flex-direction: column;
  display: flex;
}

.app[data-device="mobile"] .admin-main {
  flex: 1;
  min-height: 0;
}

.app[data-device="mobile"] .admin-header {
  min-height: 62px;
  padding: 9px 12px;
}

.app[data-device="mobile"] .admin-title h1 {
  font-size: 17px;
}

.app[data-device="mobile"] .admin-title p {
  display: none;
}

.app[data-device="mobile"] .mobile-back {
  display: grid;
}

.app[data-device="mobile"] .admin-layout {
  min-height: 0;
  padding: 0;
  display: block;
}

.app[data-device="mobile"] .admin-list-panel, .app[data-device="mobile"] .admin-form-panel {
  height: 100%;
  box-shadow: none;
  border: 0;
  border-radius: 0;
}

.app[data-device="mobile"] .admin-form-panel {
  min-height: 0;
}

.app[data-device="mobile"] .user-row {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  min-height: 66px;
  padding: 10px 12px;
}

.app[data-device="mobile"] .user-row .role-label {
  display: none;
}

.app[data-device="mobile"] .admin-form {
  padding: 16px;
}

.app[data-device="mobile"] .form-actions {
  grid-template-columns: 1fr;
  display: grid;
}

.app[data-device="mobile"] .form-actions .primary-button, .app[data-device="mobile"] .form-actions .secondary-button {
  width: 100%;
}

.app[data-device="mobile"] .inline-result {
  margin: 0 16px 16px;
}

@media (max-width: 390px) {
  .app:not([data-device="desktop"]) {
    width: 100%;
  }
}

@media (max-width: 340px) {
  .chat-header {
    gap: 7px;
  }

  .chat-header-title {
    font-size: 14px;
  }

  .bubble-text {
    font-size: 13px;
  }

  .message-group {
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 7px;
  }

  .message-group.outgoing {
    grid-template-columns: minmax(0, 1fr);
  }

  .avatar {
    width: 34px;
    height: 34px;
    font-size: 10px;
  }

  .mobile-bottom button span {
    font-size: 8px;
  }

  .admin-header .primary-button {
    padding: 9px 10px;
    font-size: 12px;
  }

  .code-entry {
    gap: 5px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .code-position {
    font-size: 19px;
  }
}

/* [project]/src/app/globals.css [app-client] (css) */
body {
  overflow: hidden;
}

.rail-action svg, .mobile-bottom svg {
  margin: auto;
  display: block;
}

button:disabled {
  cursor: default;
  opacity: .5;
}

.app {
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.avatar {
  object-fit: cover;
  border: 0;
}

.message-tools {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
  display: flex;
}

.message-tools button {
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  min-height: 28px;
  padding: 4px;
  font-size: 11px;
}

.reaction-pill {
  border-radius: 12px;
  border: 1px solid var(--line) !important;
  background: #fff !important;
  padding: 3px 7px !important;
}

.reaction-pill.mine {
  border-color: var(--blue) !important;
  background: #e8edfb !important;
}

.message-quote {
  text-align: left;
  color: var(--muted);
  cursor: pointer;
  background: #f1edf3;
  border: 0;
  border-left: 2px solid #bd6e91;
  border-radius: 5px;
  max-width: 100%;
  margin-bottom: 6px;
  padding: 5px 9px;
  font-size: 12px;
  display: block;
}

.forwarded {
  color: var(--muted);
  margin-bottom: 5px;
  font-size: 11px;
}

.toast {
  z-index: 60;
  width: min(90vw, 480px);
  box-shadow: var(--shadow);
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.dialog-backdrop {
  z-index: 40;
  background: #10174466;
  place-items: center;
  padding: 16px;
  display: grid;
  position: fixed;
  inset: 0;
}

.dialog {
  width: min(520px, 100%);
  max-height: 90dvh;
  box-shadow: var(--shadow);
  background: #fff;
  border-radius: 20px;
  overflow: auto;
}

.dialog-body {
  gap: 14px;
  padding: 18px;
  display: grid;
}

.dialog .user-row {
  grid-template-columns: 40px minmax(0, 1fr) auto;
}

.person-select {
  border: 1px solid var(--line);
  border-radius: 12px;
  align-items: center;
  gap: 10px;
  padding: 9px;
  display: flex;
}

.person-select input {
  width: 18px;
  height: 18px;
}

.people-options {
  gap: 5px;
  max-height: 42dvh;
  display: grid;
  overflow: auto;
}

.settings {
  background: #f6f7fb;
  height: 100%;
  overflow: auto;
}

.settings-main {
  gap: 16px;
  max-width: 900px;
  margin: auto;
  padding: 20px;
  display: grid;
}

.settings-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 20px;
  gap: 14px;
  padding: 20px;
  display: grid;
}

.settings-card h2 {
  margin: 0;
  font-size: 17px;
}

.inline-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.auth-extra {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
}

.auth-status {
  text-align: center;
  min-height: 20px;
  color: var(--danger);
  margin-top: 12px;
  font-size: 12px;
}

.composer-actions.live {
  grid-template-columns: repeat(3, 40px) minmax(28px, 1fr) repeat(3, 40px);
}

.composer-actions.live .send-button {
  grid-column: 7;
}

.emoji-picker {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.emoji-picker button {
  cursor: pointer;
  background: #f5f6fa;
  border: 0;
  border-radius: 12px;
  min-width: 44px;
  min-height: 44px;
  font-size: 23px;
}

.admin-layout {
  overflow: auto;
}

.user-row.editable {
  text-align: left;
  cursor: pointer;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #edf0f5;
  width: 100%;
}

.highlight .bubble {
  outline: 2px solid var(--blue);
}

.loading-screen {
  background: var(--canvas);
  place-items: center;
  height: 100dvh;
  display: grid;
}

@media (max-width: 780px) {
  .app[data-device="mobile"] .chat-shell > .chat-list {
    border: 0;
    flex: 1;
  }

  .app[data-device="mobile"] .chat-shell.has-chat > .chat-list, .app[data-device="mobile"] .chat-shell:not(.has-chat) > .workspace, .app[data-device="mobile"] .chat-shell.has-chat > .mobile-bottom {
    display: none;
  }

  .settings-main {
    padding: 12px;
  }
}

@media (max-width: 360px) {
  .composer-actions.live {
    grid-template-columns: repeat(3, 36px) minmax(22px, 1fr) repeat(3, 36px) !important;
  }
}

/*# sourceMappingURL=src_app_0zaozn112bxga._.css.map*/