:root {
  --ink: #d9f5f1;
  --muted: #7e9ca1;
  --cyan: #18dfe0;
  --cyan-deep: #087f88;
  --green: #47e36a;
  --orange: #ff9d3d;
  --yellow: #e6d950;
  --red: #ff5050;
  --violet: #a66cff;
  --surface: rgba(14, 24, 30, 0.97);
  --surface-raised: rgba(22, 36, 43, 0.98);
  --surface-black: #071015;
  --line: rgba(39, 186, 193, 0.34);
  --soft-line: rgba(124, 158, 164, 0.18);
  --shadow: 0 28px 78px rgba(0, 0, 0, 0.48);
  color-scheme: dark;
  font-family: "Bahnschrift", "DIN Alternate", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-width: 300px; min-height: 100%; margin: 0; }
body {
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 12%, rgba(9, 147, 156, 0.23), transparent 35rem),
    radial-gradient(circle at 92% 84%, rgba(183, 62, 17, 0.14), transparent 39rem),
    #071014;
}
button, input, textarea, select { font: inherit; }
button, select, input, textarea { color: var(--ink); }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.42; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(55, 176, 184, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 176, 184, 0.075) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.eyebrow {
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-mark {
  display: block;
  width: 42px;
  aspect-ratio: 1;
  padding: 2px;
  border: 1px solid var(--cyan);
  border-radius: 11px 3px 11px 3px;
  object-fit: contain;
  background: rgba(6, 17, 20, 0.72);
  box-shadow: 0 0 28px rgba(24, 223, 224, 0.22);
}

.auth-shell {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  overflow: auto;
  padding: max(20px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
}
.auth-card {
  position: relative;
  width: min(540px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px 5px 18px 5px;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.045), transparent 32%),
    var(--surface);
  box-shadow: var(--shadow);
}
.auth-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--orange), var(--cyan), transparent);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px 10px;
}
.auth-brand strong, .auth-brand small { display: block; }
.auth-brand strong { font-size: 1.06rem; letter-spacing: 0.03em; }
.auth-brand small { margin-top: 2px; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; }
.auth-intro { padding: 16px 24px 19px; }
.auth-intro h1 {
  margin: 7px 0 8px;
  color: var(--cyan);
  font-family: "Rockwell", "Bookman Old Style", serif;
  font-size: clamp(1.7rem, 7vw, 2.65rem);
  line-height: 1.02;
}
.auth-intro p { max-width: 42ch; margin: 0; color: var(--muted); line-height: 1.5; }
.auth-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--soft-line); }
.auth-tabs button {
  min-height: 44px;
  border: 0;
  border-right: 1px solid var(--soft-line);
  background: rgba(5, 15, 20, 0.68);
}
.auth-tabs button:last-child { border-right: 0; }
.auth-tabs button.is-active { color: var(--cyan); background: rgba(17, 48, 54, 0.85); box-shadow: inset 0 -2px var(--cyan); }
.auth-form { display: none; padding: 20px 24px 12px; }
.auth-form.is-active { display: block; animation: lift-in 170ms ease-out; }
.auth-form form + form { margin-top: 19px; padding-top: 18px; border-top: 1px solid var(--soft-line); }
.auth-form h2 { margin: 0 0 12px; color: var(--cyan); font-size: 1rem; }
label { display: block; color: var(--muted); font-size: 0.76rem; letter-spacing: 0.03em; }
input, textarea, select {
  width: 100%;
  border: 1px solid rgba(87, 138, 145, 0.38);
  border-radius: 5px;
  outline: none;
  color: var(--ink);
  background: #081217;
}
input, select { min-height: 40px; padding: 8px 10px; }
textarea { min-height: 58px; padding: 9px 11px; resize: vertical; line-height: 1.4; }
label input { margin: 5px 0 13px; }
input:focus, textarea:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(24, 223, 224, 0.1); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.primary-action, .quiet-action, .danger-action, .voice-controls button, .back-button, .load-older, .file-action {
  min-height: 38px;
  border: 1px solid rgba(71, 153, 160, 0.42);
  border-radius: 5px;
  padding: 7px 13px;
  background: linear-gradient(180deg, rgba(42, 65, 73, 0.96), rgba(21, 36, 43, 0.96));
}
.primary-action { color: #061113; border-color: var(--cyan); background: var(--cyan); font-weight: 800; }
.quiet-action { color: var(--cyan); }
.danger-action { color: #ffd7d7; border-color: rgba(255, 80, 80, 0.52) !important; }
.auth-form > .primary-action, .auth-form form > .primary-action { width: 100%; margin-top: 5px; }
.auth-form > .quiet-action { width: 100%; }
.form-hint { margin: 12px 0 8px; color: var(--muted); font-size: 0.76rem; }
.gate-status { min-height: 39px; margin: 0; padding: 10px 24px 16px; color: var(--muted); font-size: 0.8rem; }
.gate-status.is-error { color: var(--red); }
.gate-status.is-success { color: var(--green); }

.app-frame {
  display: flex;
  flex-direction: column;
  width: min(1800px, 100%);
  height: 100dvh;
  margin: 0 auto;
  padding: max(9px, env(safe-area-inset-top)) 9px max(9px, env(safe-area-inset-bottom));
}
.topbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  margin-bottom: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(110deg, rgba(24, 42, 48, 0.98), rgba(9, 20, 26, 0.98));
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; }
.account-strip { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.account-strip > strong { max-width: 150px; overflow: hidden; color: var(--cyan); text-overflow: ellipsis; white-space: nowrap; }
.account-strip select { width: 110px; min-height: 35px; }
.compact { min-height: 35px; padding: 6px 10px; }
.pc-version-link { display: inline-grid; place-items: center; flex: 0 0 auto; text-decoration: none; }
.request-button span:not(:empty) { color: var(--yellow); font-weight: 900; }
.request-button.has-requests {
  border-color: rgba(255, 99, 58, 0.82);
  animation: request-attention 1.15s steps(1, end) infinite;
}
.update-notice {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 7px;
  border: 1px solid rgba(255, 157, 61, 0.62);
  border-radius: 4px;
  padding: 6px 10px;
  color: #ffe0b9;
  background: rgba(91, 46, 12, 0.94);
}
.connection-chip { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 0.74rem; }
.status-lamp { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px currentColor; }
.connection-chip.is-ready { color: var(--green); }
.connection-chip.is-ready .status-lamp { background: var(--green); }
.connection-chip.is-error { color: var(--red); }
.connection-chip.is-error .status-lamp { background: var(--red); }

.mobile-tabs {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(6, minmax(78px, 1fr));
  gap: 4px;
  margin-bottom: 7px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.mobile-tabs button {
  min-height: 39px;
  border: 1px solid var(--soft-line);
  border-radius: 4px;
  color: var(--muted);
  background: rgba(14, 25, 31, 0.95);
}
.mobile-tabs button.is-active { color: var(--cyan); border-color: var(--line); background: var(--surface-raised); box-shadow: inset 0 -2px var(--cyan); }
.mobile-tabs span:not(:empty) { color: var(--yellow); }
.mobile-tabs button.has-unread { color: var(--red); border-color: rgba(255, 80, 80, 0.58); }
.mobile-tabs button.has-unread span:not(:empty) { color: inherit; }

.workspace-panel-tabs {
  display: none;
  flex: 0 0 auto;
  gap: 3px;
  overflow-x: auto;
  border-bottom: 1px solid var(--soft-line);
  padding: 5px;
  background: rgba(6, 16, 21, 0.96);
  scrollbar-width: thin;
}
.workspace-panel-tabs button {
  min-width: 66px;
  min-height: 34px;
  flex: 1 0 auto;
  border: 1px solid var(--soft-line);
  border-radius: 4px;
  padding: 5px 8px;
  color: var(--muted);
  background: rgba(14, 25, 31, 0.95);
  white-space: nowrap;
}
.workspace-panel-tabs button.is-active { color: var(--cyan); border-color: var(--line); box-shadow: inset 0 -2px var(--cyan); }
.workspace-panel-tabs button.has-unread { color: var(--red); border-color: rgba(255, 80, 80, 0.58); }
.workspace-panel-tabs button.has-unread span { color: inherit; }
.parallel-panel { flex-direction: column; }
.parallel-filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; }

.workspace-grid { display: grid; flex: 1 1 auto; min-height: 0; gap: 8px; }
.app-panel {
  position: relative;
  display: none;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px 4px 10px 10px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}
.app-panel.is-selected { display: flex; flex-direction: column; }
.app-panel::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--cyan-deep), transparent); }
.utility-panel { flex-direction: column; }
.utility-toolbar {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: minmax(170px, 1fr) minmax(125px, 0.55fr) minmax(135px, 0.65fr) auto;
  align-items: end;
  gap: 7px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--soft-line);
  background: rgba(5, 14, 19, 0.7);
}
.utility-toolbar label { min-width: 0; }
.utility-toolbar input, .utility-toolbar select { min-height: 35px; margin-top: 3px; }
.inline-check { display: flex; min-height: 35px; align-items: center; gap: 6px; white-space: nowrap; }
.inline-check input { width: auto; min-height: 0; margin: 0; }
.utility-status { flex: 0 0 auto; min-height: 30px; padding: 7px 10px; color: var(--muted); font-size: 0.7rem; }
.utility-table-scroll { min-height: 0; flex: 1 1 auto; overflow: auto; padding: 0 10px 10px; scrollbar-color: var(--cyan-deep) var(--surface-black); scrollbar-width: thin; }
.utility-table { width: 100%; border-collapse: collapse; table-layout: auto; }
.utility-table th, .utility-table td { border: 1px solid rgba(66, 139, 145, 0.28); padding: 7px 8px; text-align: left; vertical-align: middle; }
.utility-table th { position: sticky; z-index: 1; top: 0; color: var(--cyan); background: #102027; font-size: 0.69rem; white-space: nowrap; }
.utility-table td { color: #c9dcda; font-size: 0.75rem; }
.utility-table td:first-child { min-width: 180px; overflow-wrap: anywhere; color: var(--cyan); }
.utility-table .row-actions { display: flex; justify-content: flex-end; gap: 5px; }
.utility-table .row-actions button, .utility-table .row-actions a { min-height: 31px; padding: 4px 8px; white-space: nowrap; }
.file-download { display: inline-grid; place-items: center; border: 1px solid rgba(71, 153, 160, 0.42); border-radius: 5px; color: var(--cyan); background: linear-gradient(180deg, rgba(42, 65, 73, 0.96), rgba(21, 36, 43, 0.96)); text-decoration: none; }
.event-list { padding: 9px; }
.event-card { margin-bottom: 9px; overflow: hidden; border: 1px solid rgba(47, 141, 151, 0.46); border-radius: 8px 3px 8px 3px; background: rgba(5, 14, 19, 0.78); }
.event-card.is-unseen { border-color: rgba(230, 217, 80, 0.74); box-shadow: inset 3px 0 var(--yellow); }
.event-card > header { display: flex; align-items: start; justify-content: space-between; gap: 9px; padding: 10px 11px 7px; }
.event-card h3 { margin: 0; color: var(--cyan); font-size: 0.95rem; }
.event-card time { color: var(--orange); font-size: 0.7rem; white-space: nowrap; }
.event-card p { margin: 0; padding: 0 11px 9px; color: #b8caef; font-size: 0.78rem; line-height: 1.4; white-space: pre-wrap; }
.event-meta { padding: 0 11px 8px; color: var(--muted); font-size: 0.68rem; }
.event-attendees { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 11px 9px; }
.event-attendee { border: 1px solid var(--soft-line); border-radius: 999px; padding: 3px 7px; background: rgba(14, 31, 37, 0.8); font-size: 0.65rem; }
.event-actions { display: flex; justify-content: flex-end; gap: 7px; padding: 8px 10px; border-top: 1px solid var(--soft-line); background: rgba(10, 23, 28, 0.76); }
.event-actions button { min-height: 32px; padding: 4px 9px; }
.event-editor { max-height: min(92dvh, 760px); overflow: auto; }
.event-editor textarea { min-height: 116px; resize: vertical; }
.event-recurrence-fields { align-items: end; }
.event-recurrence-fields .inline-check { margin-bottom: 13px; }
.target-summary { padding: 10px 11px 5px; color: var(--cyan); font-size: 0.78rem; line-height: 1.45; }
.target-low-hours { padding: 0 11px 8px; overflow-wrap: anywhere; color: var(--muted); font-size: 0.67rem; line-height: 1.4; }
.target-chart-select { flex: 0 0 auto; padding: 0 11px 7px; }
.target-chart-select select { min-height: 34px; margin-top: 3px; }
.target-chart-shell { position: relative; flex: 0 0 clamp(190px, 31vh, 320px); margin: 0 10px 9px; overflow: hidden; border: 1px solid var(--soft-line); border-radius: 7px; background: #030b0f; }
.target-chart-shell canvas { display: block; width: 100%; height: 100%; }
.target-chart-shell .empty-state { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; }
.target-table-scroll { flex: 1 1 180px; }
.target-table tr { cursor: pointer; }
.target-table tr.is-selected td { background: rgba(15, 79, 85, 0.34); }
.target-table tr.is-offline td { color: var(--red); }
.panel-heading, .conversation-heading {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 64px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--soft-line);
  background: rgba(30, 47, 54, 0.64);
}
.panel-heading h2, .conversation-heading h2 { margin: 2px 0 0; overflow: hidden; color: var(--cyan); font-family: "Rockwell", "Bookman Old Style", serif; font-size: 1.23rem; text-overflow: ellipsis; white-space: nowrap; }
.heading-actions, .conversation-actions, .dialog-heading { display: flex; align-items: center; gap: 6px; }
.conversation-actions { margin-left: auto; }
.parallel-panel .conversation-heading { align-items: flex-start; }
.parallel-panel .conversation-actions { flex-wrap: wrap; justify-content: flex-end; }
.conversation-actions button[aria-pressed="true"] {
  color: #071014;
  border-color: var(--cyan);
  background: var(--cyan);
}
.panel-count { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; border: 1px solid rgba(24, 223, 224, 0.4); border-radius: 50%; color: var(--cyan); font-size: 0.74rem; }
.panel-tools { flex: 0 0 auto; padding: 8px 10px; border-bottom: 1px solid var(--soft-line); }
.panel-tools input { min-height: 36px; }
.room-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(118px, 0.42fr); gap: 7px; }
.room-filters select { min-height: 36px; }
.panel-scroll { min-height: 0; overflow: auto; scrollbar-color: var(--cyan-deep) var(--surface-black); scrollbar-width: thin; }
.empty-state { padding: 18px; color: var(--muted); text-align: center; }
.list-view, .conversation-view { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; }
.room-text-mode { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; }

.channel-list { padding: 8px; }
.channel-group { margin-bottom: 7px; border: 1px solid rgba(66, 139, 145, 0.19); border-radius: 6px; overflow: hidden; background: rgba(5, 14, 19, 0.42); }
.channel-row {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid rgba(101, 143, 148, 0.11);
  padding: 7px 9px;
  color: var(--cyan);
  text-align: left;
  background: rgba(8, 19, 24, 0.72);
}
.channel-row.child { padding-left: 24px; color: #75e6e6; }
.channel-row.is-current { box-shadow: inset 3px 0 var(--green); }
.channel-row.is-afk { color: var(--orange); }
.channel-row .lock { margin-left: auto; color: var(--yellow); font-size: 0.72rem; }
.channel-banner, .voice-user-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(400px, 100%);
  height: auto;
  max-height: 27px;
  aspect-ratio: 400 / 27;
  object-fit: contain;
  opacity: 0.42;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.channel-row > span, .voice-user > span { position: relative; z-index: 1; }
.roster { margin: 0; padding: 3px 7px 7px 22px; list-style: none; }
.voice-user { position: relative; display: flex; min-height: 35px; align-items: center; gap: 7px; overflow: hidden; padding: 5px 7px; border-radius: 4px; }
.voice-user.speaking { background: rgba(41, 126, 177, 0.2); box-shadow: inset 2px 0 #39a7ff; }
.voice-dot { width: 8px; height: 8px; flex: 0 0 auto; border: 1px solid #71888c; border-radius: 50%; }
.voice-user.speaking .voice-dot { border-color: #4db4ff; background: #4db4ff; box-shadow: 0 0 10px #4db4ff; }
.voice-user .name { max-width: 38%; flex: 0 1 auto; overflow: hidden; border-radius: 3px; padding: 1px 3px; text-overflow: ellipsis; white-space: nowrap; background: rgba(0, 0, 0, 0.55); }
.voice-user .presence { max-width: 140px; flex: 0 1 auto; overflow: hidden; border-radius: 3px; padding: 1px 3px; color: var(--green); background: rgba(0, 0, 0, 0.55); font-size: 0.7rem; text-overflow: ellipsis; white-space: nowrap; }
.voice-user .presence.is-afk { color: var(--red); }
.voice-user .presence:empty { display: none; }
.voice-user .badges { flex: 0 0 auto; border-radius: 3px; padding: 1px 3px; color: var(--orange); background: rgba(0, 0, 0, 0.55); font-size: 0.68rem; }
.voice-user .badges:empty { display: none; }
.voice-user .user-actions { position: relative; z-index: 2; display: flex; flex: 0 0 auto; align-items: center; gap: 4px; }
.voice-user .user-actions button { min-height: 27px; border: 1px solid rgba(64, 143, 149, 0.42); border-radius: 4px; padding: 2px 6px; color: var(--cyan); background: rgba(6, 16, 21, 0.9); font-size: 0.65rem; }
.voice-user .presence + .user-actions { margin-left: 2px; }
.voice-gain { width: 68px; accent-color: var(--cyan); }
.mic-meter { flex: 0 0 auto; height: 5px; overflow: hidden; background: #03080b; }
.mic-meter span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--green), var(--yellow), var(--red)); transition: width 70ms linear; }
.voice-status { flex: 0 0 auto; min-height: 30px; padding: 7px 10px; border-top: 1px solid var(--soft-line); color: var(--muted); font-size: 0.75rem; }
.voice-status.is-error { color: var(--red); }
.voice-controls { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 5px; padding: 7px; background: rgba(24, 36, 42, 0.9); }
.voice-controls > button { min-width: 78px; flex: 1 0 78px; white-space: nowrap; }
.voice-controls > [data-leave-voice] { min-width: 104px; flex-basis: 104px; }
.voice-controls button.is-active { color: #101518; border-color: var(--orange); background: var(--orange); }
.voice-afk-split { display: grid; min-width: 92px; flex: 1 1 92px; grid-template-columns: minmax(0, 1fr) 30px; }
.voice-afk-split > button { min-width: 0; border-radius: 5px 0 0 5px; }
.voice-afk-split details { position: relative; min-width: 0; }
.voice-afk-split summary {
  display: grid;
  height: 100%;
  min-height: 38px;
  place-items: center;
  border: 1px solid rgba(71, 153, 160, 0.42);
  border-left: 0;
  border-radius: 0 5px 5px 0;
  color: var(--cyan);
  background: linear-gradient(180deg, rgba(42, 65, 73, 0.96), rgba(21, 36, 43, 0.96));
  cursor: pointer;
  list-style: none;
}
.voice-afk-split summary::-webkit-details-marker { display: none; }
.voice-afk-split details[open] summary { color: #101518; border-color: var(--orange); background: var(--orange); }
.voice-afk-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 30;
  width: 190px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(5, 15, 20, 0.99);
  box-shadow: var(--shadow);
}
.voice-afk-menu button {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid var(--soft-line);
  border-radius: 0;
  padding: 7px 10px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}
.voice-afk-menu button:last-child { border-bottom: 0; }
.voice-afk-menu button:hover, .voice-afk-menu button:focus-visible { color: var(--cyan); background: rgba(24, 72, 77, 0.42); }
.voice-afk-menu .choice-mark { color: var(--orange); opacity: 0; }
.voice-afk-menu button[aria-checked="true"] .choice-mark { opacity: 1; }
.stream-live-chip { align-self: center; padding: 4px 8px; border: 1px solid rgba(255, 74, 74, 0.7); border-radius: 999px; color: #ff6a6a; background: rgba(72, 7, 7, 0.7); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; }
.stream-dialog-card { min-height: min(680px, calc(100dvh - 34px)); }
.stream-stage { position: relative; display: grid; min-height: 280px; flex: 1 1 auto; place-items: center; overflow: hidden; border: 1px solid var(--soft-line); border-radius: 8px; background: #010507; }
.stream-stage video { display: block; width: 100%; height: 100%; max-height: calc(100dvh - 230px); object-fit: contain; background: #010507; }
.stream-stage .empty-state { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; pointer-events: none; }
.stream-stage video[src] + .empty-state { display: none; }
.voice-user .streaming-badge { flex: 0 0 auto; border-radius: 3px; padding: 1px 3px; color: #ff5f5f; background: rgba(0, 0, 0, 0.55); font-size: 0.66rem; font-weight: 800; }

.person-list, .room-list { padding: 7px; }
.person-row, .room-row { display: grid; width: 100%; min-height: 58px; align-items: center; border: 0; border-bottom: 1px solid rgba(117, 155, 159, 0.12); border-radius: 4px; padding: 7px 9px; text-align: left; background: transparent; }
.person-row { grid-template-columns: 38px 1fr auto; gap: 9px; }
.room-row { grid-template-columns: 29px 1fr auto; gap: 8px; }
.person-row:hover, .room-row:hover { background: rgba(24, 72, 77, 0.28); }
.avatar { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--cyan-deep); border-radius: 50%; color: var(--cyan); background: #0b1c22; font-size: 0.72rem; font-weight: 800; }
.row-copy { min-width: 0; }
.row-copy strong, .row-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-copy strong { color: var(--ink); font-size: 0.88rem; }
.row-copy small { margin-top: 3px; color: var(--muted); font-size: 0.7rem; }
.room-symbol { color: var(--cyan); font-size: 1.1rem; text-align: center; }
.unread-badge { min-width: 23px; padding: 3px 6px; border-radius: 999px; color: #111; background: var(--yellow); font-size: 0.67rem; font-style: normal; text-align: center; }
.presence-online .row-copy small { color: var(--green); }
.presence-online .row-copy small.latest-preview { color: var(--muted); }

.conversation-heading { justify-content: flex-start; }
.back-button { width: 38px; flex: 0 0 auto; padding: 0; color: var(--cyan); font-size: 1.2rem; }
.load-older { flex: 0 0 auto; min-height: 30px; margin: 6px auto 0; padding: 4px 12px; color: var(--muted); font-size: 0.7rem; }
.message-list { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; gap: 10px; overflow: auto; padding: 10px 12px 16px; overscroll-behavior: contain; scrollbar-color: var(--cyan-deep) var(--surface-black); scrollbar-width: thin; }
.message { position: relative; max-width: 100%; padding-right: 31px; }
.message-header { display: flex; align-items: baseline; gap: 6px; color: var(--cyan); font-size: 0.76rem; font-weight: 800; }
.message-header .pin-mark { color: var(--yellow); font-size: 0.7rem; }
.message-menu-button { position: absolute; z-index: 2; top: -4px; right: 0; width: 27px; min-height: 27px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; }
.message:hover .message-menu-button, .message-menu-button:focus { color: var(--cyan); background: rgba(24, 72, 77, 0.5); }
.message-menu { position: absolute; z-index: 8; top: 24px; right: 0; display: grid; min-width: 145px; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #0b171c; box-shadow: var(--shadow); }
.message-menu button { min-height: 32px; border: 0; border-bottom: 1px solid var(--soft-line); padding: 5px 9px; color: var(--ink); text-align: left; background: transparent; }
.message-menu button:hover { color: var(--cyan); background: rgba(24, 72, 77, 0.42); }
.message-header time { color: var(--muted); font-size: 0.65rem; font-weight: 400; }
.message-body { margin-top: 3px; overflow-wrap: anywhere; color: #b8caef; font-size: 0.86rem; line-height: 1.38; white-space: pre-wrap; }
.message-body a { color: #4ba3ff; }
.message-body .hex-color { font-weight: 800; text-shadow: 0 1px 2px #000, 0 0 5px rgba(255, 255, 255, 0.12); }
.message.is-own .message-body { color: #799ef2; }
.media-card { width: min(100%, 520px); margin-top: 7px; overflow: hidden; border: 1px solid rgba(47, 141, 151, 0.46); border-radius: 8px; background: #071116; }
.media-card img { display: block; width: 100%; max-height: 390px; object-fit: contain; background: #03080b; }
.media-card iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.media-card video { display: block; width: 100%; max-height: 390px; background: #03080b; }
.media-card audio { display: block; width: calc(100% - 18px); margin: 10px 9px; }
.media-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 39px; padding: 7px 9px; }
.media-meta span { min-width: 0; overflow: hidden; color: var(--cyan); font-size: 0.75rem; text-overflow: ellipsis; white-space: nowrap; }
.media-meta a { flex: 0 0 auto; color: var(--orange); font-size: 0.7rem; }
.suno-loading, .suno-description { margin: 0; padding: 10px; color: var(--muted); font-size: 0.75rem; line-height: 1.35; }
.suno-loading.is-error { color: var(--red); }
.suno-card > img { max-height: 300px; cursor: pointer; }
.youtube-placeholder { display: grid; width: 100%; aspect-ratio: 16 / 9; place-items: center; border: 0; padding: 20px; color: #fff; background: linear-gradient(135deg, var(--orange), #ff5b3d) center / cover no-repeat; font-weight: 900; text-shadow: 0 2px 5px #000; }
.file-card { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 9px; padding: 10px; }
.file-icon { display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid var(--cyan-deep); border-radius: 5px; color: var(--cyan); font-size: 0.64rem; }
.file-card strong, .file-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-card small { color: var(--muted); font-size: 0.68rem; }
.file-card a { color: var(--orange); font-size: 0.72rem; }
.composer { flex: 0 0 auto; padding: 7px; border-top: 1px solid var(--soft-line); background: rgba(5, 14, 19, 0.92); }
.composer-actions { display: flex; min-height: 39px; align-items: center; gap: 7px; margin-top: 6px; }
.composer-actions .primary-action { margin-left: auto; }
.file-action { display: inline-grid; place-items: center; color: var(--cyan); font-size: 0.75rem; cursor: pointer; }
.file-action input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.upload-state { min-width: 0; overflow: hidden; color: var(--muted); font-size: 0.68rem; text-overflow: ellipsis; white-space: nowrap; }
.typing-state { min-height: 19px; flex: 0 0 auto; padding: 2px 10px; color: var(--muted); font-size: 0.68rem; }

.room-special-view { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; }
.special-toolbar {
  display: flex;
  flex: 0 0 auto;
  align-items: end;
  gap: 7px;
  overflow-x: auto;
  border-bottom: 1px solid var(--soft-line);
  padding: 8px 10px;
  background: rgba(5, 14, 19, 0.72);
}
.special-toolbar label { min-width: 140px; }
.special-toolbar select { min-height: 35px; margin-top: 3px; }
.special-toolbar .file-action { flex: 0 0 auto; }
.special-copy { min-width: 150px; flex: 1 1 auto; align-self: center; color: var(--muted); font-size: 0.76rem; }
.gallery-grid {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  grid-template-columns: repeat(auto-fill, minmax(165px, 195px));
  grid-auto-rows: max-content;
  align-content: start;
  justify-content: start;
  gap: 9px;
  overflow: auto;
  padding: 10px;
  overscroll-behavior: contain;
  scrollbar-color: var(--cyan-deep) var(--surface-black);
  scrollbar-width: thin;
}
.gallery-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: 7px 2px 7px 2px;
  padding: 0;
  text-align: left;
  background: #050c10;
}
.gallery-card.has-comments { border-color: rgba(230, 217, 80, 0.76); box-shadow: inset 0 0 0 1px rgba(230, 217, 80, 0.16); }
.gallery-card:hover { border-color: var(--cyan-deep); transform: translateY(-1px); }
.gallery-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #02080b; }
.gallery-card-copy { display: block; min-width: 0; padding: 7px 8px 8px; }
.gallery-card-copy strong, .gallery-card-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-card-copy strong { color: var(--cyan); font-size: 0.74rem; }
.gallery-card-copy small { margin-top: 3px; color: var(--muted); font-size: 0.65rem; }
.gallery-modal {
  width: min(980px, calc(100% - 24px));
  height: min(900px, calc(100dvh - 20px));
  max-height: calc(100dvh - 20px);
  overflow: hidden;
}
.gallery-dialog-card {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--cyan-deep) var(--surface-black);
  scrollbar-width: thin;
}
.gallery-dialog-card h2 { margin-bottom: 7px; }
.gallery-stage { position: relative; min-height: 180px; flex: 1 1 360px; overflow: hidden; border: 1px solid var(--soft-line); border-radius: 7px; background: #02070a; }
.gallery-scroll { position: absolute; inset: 0; overflow: auto; outline: none; overscroll-behavior: contain; scrollbar-color: var(--cyan-deep) var(--surface-black); scrollbar-width: thin; }
.gallery-scroll:focus-visible { box-shadow: inset 0 0 0 1px rgba(24, 223, 224, 0.56); }
.gallery-pan { display: grid; min-width: 100%; min-height: 100%; place-items: center; }
.gallery-stage img { display: block; max-width: none; max-height: none; object-fit: contain; user-select: none; }
.gallery-nav { position: absolute; z-index: 2; top: 50%; width: 40px; min-height: 54px; border: 1px solid var(--line); border-radius: 6px; color: var(--cyan); background: rgba(3, 12, 16, 0.84); transform: translateY(-50%); }
.gallery-nav.previous { left: 8px; }
.gallery-nav.next { right: 8px; }
.gallery-viewer-toolbar { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 6px; padding-top: 7px; }
.gallery-viewer-toolbar button { min-width: 40px; min-height: 31px; padding: 4px 9px; }
.gallery-viewer-toolbar output { min-width: 52px; color: var(--yellow); font-size: 0.72rem; text-align: center; }
.gallery-image-meta { min-height: 31px; padding: 7px 2px 3px; color: var(--muted); font-size: 0.72rem; }
.gallery-organize { display: flex; align-items: end; gap: 7px; padding: 5px 0; }
.gallery-organize label { min-width: 210px; }
.gallery-organize select { min-height: 35px; margin-top: 3px; }
.gallery-image-actions { display: flex; justify-content: flex-end; }
.gallery-comments { min-height: 58px; max-height: 150px; flex: 0 1 150px; overflow: auto; border: 1px solid var(--soft-line); border-radius: 5px; background: rgba(3, 10, 14, 0.62); }
.gallery-comment { padding: 8px 10px; border-bottom: 1px solid var(--soft-line); }
.gallery-comment:last-child { border-bottom: 0; }
.gallery-comment header { display: flex; gap: 6px; color: var(--cyan); font-size: 0.7rem; font-weight: 800; }
.gallery-comment time { color: var(--muted); font-size: 0.63rem; font-weight: 400; }
.gallery-comment p { margin: 4px 0 0; color: #b8caef; font-size: 0.78rem; line-height: 1.35; white-space: pre-wrap; }
.gallery-comment-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 7px; margin-top: 7px; }
.gallery-comment-form textarea { min-height: 54px; resize: vertical; }

.list-entry-scroll { min-height: 0; flex: 1 1 auto; overflow: auto; padding: 10px; scrollbar-color: var(--cyan-deep) var(--surface-black); scrollbar-width: thin; }
.list-entry-card { margin-bottom: 11px; overflow: hidden; border: 1px solid rgba(47, 141, 151, 0.46); border-radius: 8px 3px 8px 3px; background: rgba(5, 14, 19, 0.78); }
.list-entry-card > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-bottom: 1px solid var(--soft-line); background: rgba(25, 45, 52, 0.72); }
.list-entry-card h3 { margin: 0; overflow: hidden; color: var(--cyan); font-size: 0.92rem; text-overflow: ellipsis; white-space: nowrap; }
.list-entry-card header span { display: flex; align-items: center; gap: 7px; color: var(--orange); font-size: 0.66rem; text-transform: uppercase; }
.list-entry-card table, .list-editor-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.list-entry-card th, .list-entry-card td, .list-editor-table th, .list-editor-table td { border: 1px solid rgba(66, 139, 145, 0.28); padding: 7px 8px; overflow-wrap: anywhere; text-align: left; vertical-align: top; }
.list-entry-card th { color: var(--orange); background: rgba(8, 23, 29, 0.86); font-size: 0.72rem; }
.list-entry-card td { color: #c9dcda; font-size: 0.78rem; line-height: 1.35; white-space: pre-wrap; }
.list-entry-card th:first-child, .list-entry-card td:first-child { width: 32%; }
.list-card-meta { padding: 6px 10px 8px; color: var(--muted); font-size: 0.65rem; }
.list-editor { max-height: min(92dvh, 860px); overflow: auto; }
.list-header-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.list-editor-table-wrap { max-height: min(45dvh, 430px); overflow: auto; margin: 6px 0 8px; border: 1px solid var(--soft-line); }
.list-editor-table th:first-child, .list-editor-table td:first-child { width: 36%; }
.list-editor-table th:last-child, .list-editor-table td:last-child { width: 42px; padding: 4px; }
.list-editor-table input { min-height: 35px; margin: 0; }
.list-editor-table button { width: 100%; min-height: 32px; border: 0; color: var(--red); background: transparent; }

dialog { width: min(430px, calc(100% - 28px)); border: 1px solid var(--line); border-radius: 12px 4px 12px 4px; padding: 0; color: var(--ink); background: var(--surface-raised); box-shadow: var(--shadow); }
.wide-modal { width: min(760px, calc(100% - 28px)); }
dialog::backdrop { background: rgba(1, 6, 9, 0.78); backdrop-filter: blur(3px); }
.dialog-card { padding: 19px; }
.dialog-card h2 { margin: 4px 0 16px; color: var(--cyan); }
.dialog-card h3 { margin: 17px 0 8px; color: var(--orange); font-size: 0.86rem; }
.wide-dialog { width: min(760px, 100%); }
.dialog-heading { justify-content: space-between; }
.gallery-dialog-card > .dialog-heading > div:first-child,
.gallery-description-card .dialog-heading > div { min-width: 0; overflow-wrap: anywhere; }
.gallery-heading-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; }
.gallery-description-modal { width: min(640px, calc(100% - 28px)); max-height: calc(100dvh - 28px); overflow: hidden; }
.gallery-description-card { display: flex; flex-direction: column; max-height: calc(100dvh - 30px); min-height: 0; }
.gallery-description-card .dialog-heading { flex: 0 0 auto; align-items: start; }
.gallery-description-card h2 { max-height: 20dvh; overflow: auto; }
.gallery-description-text { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 12px; border: 1px solid var(--soft-line); border-radius: 5px; background: var(--surface-black); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-color: var(--cyan-deep) var(--surface-black); scrollbar-width: thin; }
.dialog-list, .dialog-message-list { max-height: min(52vh, 480px); overflow: auto; border: 1px solid var(--soft-line); border-radius: 5px; background: rgba(4, 12, 16, 0.5); }
.dialog-row { display: flex; min-height: 48px; align-items: center; gap: 8px; border-bottom: 1px solid var(--soft-line); padding: 7px 9px; }
.dialog-row > span:first-child { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dialog-row .row-actions { display: flex; gap: 5px; }
.inline-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 7px; }
.inline-form label input { margin-bottom: 0; }
.management-form { display: grid; gap: 9px; }
.management-form h3 { margin-bottom: 0; }
.management-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.management-checklist, .management-list {
  max-height: min(32vh, 280px);
  overflow: auto;
  border: 1px solid var(--soft-line);
  border-radius: 5px;
  background: rgba(4, 12, 16, 0.5);
  scrollbar-color: var(--cyan-deep) var(--surface-black);
  scrollbar-width: thin;
}
.management-checklist label {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  margin: 0;
  border-bottom: 1px solid var(--soft-line);
  padding: 6px 9px;
}
.management-checklist label:last-child { border-bottom: 0; }
.management-checklist input { width: auto; min-height: 0; margin: 0; }
.management-list { margin-bottom: 11px; }
.management-list .dialog-row strong, .management-list .dialog-row small { display: block; }
.management-list .dialog-row small { margin-top: 2px; color: var(--muted); font-size: 0.66rem; }
.form-hint { margin: 0; color: var(--muted); font-size: 0.7rem; line-height: 1.4; }
.gif-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-height: 170px; max-height: min(58vh, 580px); overflow: auto; margin-top: 10px; padding: 2px; }
.gif-card { position: relative; min-height: 120px; overflow: hidden; border: 1px solid var(--soft-line); border-radius: 6px; padding: 0; background: #050c10; }
.gif-card .gif-choose { display: block; width: 100%; min-height: 100%; border: 0; padding: 0; text-align: left; background: transparent; }
.gif-card img { display: block; width: 100%; height: 132px; object-fit: contain; }
.gif-card .gif-name { display: block; overflow: hidden; padding: 5px 7px; color: var(--cyan); font-size: 0.68rem; text-overflow: ellipsis; white-space: nowrap; }
.gif-card .favorite-toggle { position: absolute; top: 4px; right: 4px; min-height: 27px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: rgba(3, 10, 14, 0.9); }
.gif-card .favorite-toggle.is-active { color: var(--yellow); }
.key-capture { display: block; width: 100%; min-height: 40px; margin: 5px 0 13px; border: 1px solid rgba(87, 138, 145, 0.38); border-radius: 5px; color: var(--cyan); background: #081217; }
.profile-banner-preview { display: grid; min-height: 62px; margin-bottom: 13px; place-items: center; overflow: hidden; border: 1px solid var(--soft-line); border-radius: 5px; color: var(--muted); background: #050c10; }
.profile-banner-preview img { display: block; width: 100%; aspect-ratio: 400 / 27; object-fit: cover; image-rendering: auto; }
.profile-banner-preview img:not([hidden]) + span { display: none; }
input[type="range"] { min-height: 25px; padding: 0; accent-color: var(--cyan); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.dialog-actions .dialog-delete-action { margin-right: auto; }
.toast-stack { position: fixed; z-index: 50; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); display: grid; width: min(360px, calc(100% - 24px)); gap: 7px; pointer-events: none; }
.toast { padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: rgba(10, 25, 31, 0.97); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4); animation: toast-in 180ms ease-out; }
.toast.is-error { border-color: rgba(255, 80, 80, 0.58); color: #ffd0d0; }

.download-body { min-height: 100dvh; overflow: auto; }
.download-shell { width: min(940px, calc(100% - 28px)); margin: 0 auto; padding: max(30px, 8dvh) 0 36px; }
.download-hero, .download-details {
  border: 1px solid var(--line);
  border-radius: 17px 5px 17px 5px;
  background: linear-gradient(135deg, rgba(28, 52, 60, 0.96), rgba(6, 17, 22, 0.98));
  box-shadow: var(--shadow);
}
.download-hero { padding: clamp(22px, 5vw, 48px); }
.download-hero h1 { margin: 8px 0 10px; color: var(--cyan); font-family: "Rockwell", "Bookman Old Style", serif; font-size: clamp(2rem, 7vw, 4rem); line-height: 0.98; }
.download-hero > p { max-width: 65ch; color: var(--muted); line-height: 1.55; }
.download-platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 25px; }
.download-button { display: grid; min-height: 94px; align-content: center; gap: 5px; padding: 16px; text-align: left; text-decoration: none; }
.download-button strong { font-size: 1.15rem; }
.download-button small { color: rgba(6, 17, 19, 0.7); font-weight: 700; }
button.download-button { width: 100%; }
.download-details { margin-top: 15px; padding: 21px 24px; }
.download-details h2 { margin: 0 0 9px; color: var(--orange); font-size: 1.05rem; }
.download-details ul { margin: 0; padding-left: 19px; color: #b8caef; line-height: 1.65; }
.download-warning { margin: 0 0 14px; color: #ffd1d1; line-height: 1.5; }
.manifest-state { min-height: 20px; margin-top: 14px; color: var(--muted); font-size: 0.72rem; }

@media (max-width: 699px) {
  .topbar { flex-wrap: wrap; gap: 6px; }
  .brand small, .connection-chip { display: none; }
  .topbar .brand-mark { width: 36px; }
  .account-strip { width: 100%; flex: 1 0 100%; justify-content: stretch; gap: 5px; }
  .account-strip > strong { max-width: none; flex: 1 1 80px; }
  .account-strip select { width: auto; min-width: 86px; flex: 1 1 96px; }
  .account-strip button { flex: 0 1 auto; padding-inline: 7px; }
  .pc-version-link { order: 10; }
  .conversation-heading { flex-wrap: wrap; }
  .conversation-actions { width: 100%; justify-content: flex-end; }
  .gif-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 168px)); }
  .gallery-modal { width: calc(100% - 12px); height: calc(100dvh - 12px); max-height: calc(100dvh - 12px); }
  .gallery-dialog-card { padding: 12px; }
  .gallery-stage { min-height: 150px; }
  .gallery-comment-form { grid-template-columns: 1fr; }
  .utility-toolbar { grid-template-columns: 1fr 1fr; }
  .utility-table-scroll { padding-inline: 6px; }
  .event-card > header { display: block; }
  .event-card time { display: block; margin-top: 4px; }
  .list-header-fields { grid-template-columns: 1fr; gap: 0; }
  .management-fields { grid-template-columns: 1fr; }
  .download-platforms { grid-template-columns: 1fr; }
}

@keyframes request-attention {
  0%, 49% { color: var(--red); background: rgba(95, 16, 16, 0.7); }
  50%, 100% { color: var(--orange); background: rgba(94, 47, 8, 0.72); }
}

@media (min-width: 760px) {
  .workspace-grid {
    grid-template-columns: minmax(270px, 0.85fr) minmax(390px, 1.35fr);
    grid-template-rows: minmax(0, 1fr);
  }
  .workspace-grid > .app-panel:not(.voice-panel):not([data-workspace-slot]) { display: none !important; }
  .voice-panel { display: flex; grid-column: 1; grid-row: 1; flex-direction: column; }
  .app-panel[data-workspace-slot="primary"] { display: flex; grid-column: 2; grid-row: 1; flex-direction: column; }
  .app-panel[data-workspace-slot="secondary"] { display: none; }
  .mobile-tabs { display: none; }
  .workspace-panel-tabs { display: flex; }
}

@media (min-width: 1220px) {
  .workspace-grid { grid-template-columns: minmax(300px, 0.86fr) minmax(390px, 1.12fr) minmax(390px, 1.12fr); }
  .voice-panel { grid-column: 1; grid-row: 1; }
  .app-panel[data-workspace-slot="primary"] { display: flex; grid-column: 2; grid-row: 1; }
  .app-panel[data-workspace-slot="secondary"] { display: flex; grid-column: 3; grid-row: 1; flex-direction: column; }
}

@keyframes lift-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
