:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101418;
  --sidebar: #12171b;
  --surface: #171d22;
  --surface-2: #1f272e;
  --surface-3: #141a1f;
  --line: #2b353d;
  --text: #f1f5f7;
  --muted: #9ba8b3;
  --green: #53d18a;
  --amber: #ffb020;
  --red: #ef6a6a;
  --blue: #79a9ff;
  --teal: #58c5bd;
  --accent: var(--teal);
  --speaker-ripple: rgba(88, 197, 189, 0.82);
  --speaker-ripple-soft: rgba(88, 197, 189, 0.34);
  --speaker-mic-bg: #f5fffd;
  --speaker-mic-fg: #0f766e;
  --speaker-mic-border: #101418;
  --wave-bg: #0f171d;
  --wave-color: #3f515b;
  --wave-progress: #6ee7d8;
  --wave-cursor: #f8fafc;
  --brand-text: #08100f;
  --frame-bg: #ffffff;
  --shadow: none;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef2f5;
  --sidebar: #f8fafc;
  --surface: #ffffff;
  --surface-2: #edf3f7;
  --surface-3: #fbfdff;
  --line: #d6e0e7;
  --text: #14212b;
  --muted: #5d6e7c;
  --green: #16824b;
  --amber: #d97706;
  --red: #c43d3d;
  --blue: #2563eb;
  --teal: #0f766e;
  --accent: var(--teal);
  --speaker-ripple: rgba(15, 118, 110, 0.78);
  --speaker-ripple-soft: rgba(15, 118, 110, 0.28);
  --speaker-mic-bg: #ffffff;
  --speaker-mic-fg: #0f766e;
  --speaker-mic-border: #fbfdff;
  --wave-bg: #f8fbfd;
  --wave-color: #cbd5dc;
  --wave-progress: #00857a;
  --wave-cursor: #0f172a;
  --brand-text: #ffffff;
  --frame-bg: #ffffff;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 260px minmax(0, 1fr);
  min-width: 0;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: var(--sidebar);
  padding: 24px 18px;
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  min-width: 0;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--teal) 48%, var(--line));
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 12%, transparent);
  flex: 0 0 auto;
  object-fit: cover;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.nav a {
  border-radius: 8px;
  color: var(--muted);
  padding: 10px 12px;
  min-width: 0;
}

.nav a:hover,
.nav a.active {
  background: var(--surface-2);
  color: var(--text);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  padding: 0;
}

.menu-toggle:hover {
  background: var(--surface-2);
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle {
  flex-direction: column;
}

.sidebar.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.sidebar.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.sidebar.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hidden {
  display: none !important;
}

.main {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  margin-bottom: 24px;
}

.topbar-title {
  min-width: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
}

.icon-button,
.icon-status {
  position: relative;
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  flex: 0 0 auto;
}

.icon-button.secondary {
  background: transparent;
}

.icon-button {
  cursor: pointer;
}

.icon-button:hover {
  background: var(--surface-2);
  color: var(--text);
}

.icon-button svg,
.icon-status svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.theme-icon-sun {
  display: none;
}

:root[data-theme="light"] .theme-icon-sun {
  display: block;
}

:root[data-theme="light"] .theme-icon-moon {
  display: none;
}

.status-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--amber);
}

.icon-status.ok .status-dot {
  background: var(--green);
}

.icon-status.bad .status-dot {
  background: var(--red);
}

.icon-status.ok {
  color: var(--green);
}

.icon-status.bad {
  color: var(--red);
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 8px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 32px;
  line-height: 1.1;
}

h2 {
  font-size: 18px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--muted);
}

.dot.ok {
  background: var(--green);
}

.dot.warn,
.dot.pending {
  background: var(--amber);
}

.dot.bad {
  background: var(--red);
}

.grid {
  display: grid;
  gap: 14px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.content-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
}

.panel {
  padding: 18px;
}

.collapsible-panel:not(.is-collapsed) {
  min-height: 320px;
}

.today-panel {
  margin-bottom: 16px;
}

.today-panel.collapsible-panel:not(.is-collapsed) {
  min-height: 0;
}

.today-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
}

.panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
}

.today-panel .section-heading {
  flex: 1 1 auto;
}

.today-status,
.panel-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  white-space: nowrap;
}

.today-status::before,
.panel-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 16%, transparent);
}

.today-status.ok,
.today-status.action,
.panel-status.ok {
  color: var(--green);
}

.today-status.warn,
.panel-status.warn,
.panel-status.pending {
  color: var(--amber);
}

.panel-status.bad {
  color: var(--red);
}

.attention-list {
  display: grid;
  gap: 10px;
}

.bulletin-panel {
  margin-bottom: 16px;
}

.bulletin-panel.collapsible-panel:not(.is-collapsed) {
  min-height: 0;
}

.bulletin-body {
  display: grid;
  gap: 12px;
}

.service-unavailable {
  border: 1px solid color-mix(in srgb, var(--red) 58%, var(--line));
  border-radius: 8px;
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in srgb, var(--red) 11%, transparent) 0 8px,
      transparent 8px 16px
    ),
    color-mix(in srgb, var(--surface-3) 92%, var(--red));
  color: var(--text);
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 14px;
}

.service-unavailable strong {
  color: var(--red);
}

.service-unavailable span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.bulletin-panel.is-unavailable .bulletin-controls,
.bulletin-panel.is-unavailable .bulletin-latest,
.bulletin-panel.is-unavailable .bulletin-list-title,
.bulletin-panel.is-unavailable .bulletin-list {
  display: none;
}

.bulletin-controls {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(260px, 420px) auto;
  gap: 10px;
}

.bulletin-city-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.field-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bulletin-city-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.bulletin-city-row select {
  flex: 1 1 auto;
  min-width: 0;
}

.bulletin-generate-button {
  color: var(--teal);
}

.bulletin-generate-button:hover {
  border-color: var(--teal);
  color: var(--text);
}

select {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  padding: 0 32px 0 10px;
}

input {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  min-width: 0;
  padding: 0 10px;
}

textarea {
  width: 100%;
  min-width: 0;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  line-height: 1.35;
  min-height: 86px;
  padding: 9px 10px;
}

input[type="checkbox"] {
  height: 16px;
  width: 16px;
}

.button:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.bulletin-job,
.bulletin-feature,
.bulletin-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-3);
}

.bulletin-job {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.job-status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.job-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid color-mix(in srgb, var(--teal) 24%, var(--line));
  border-top-color: var(--teal);
  border-radius: 999px;
  flex: 0 0 auto;
  animation: job-spin 0.85s linear infinite;
}

.job-log {
  max-height: 120px;
  overflow: auto;
}

.bulletin-job.ok {
  border-color: color-mix(in srgb, var(--green) 54%, var(--line));
}

.bulletin-job.bad {
  border-color: color-mix(in srgb, var(--red) 54%, var(--line));
}

.bulletin-job span,
.bulletin-feature small,
.bulletin-item small,
.empty-state {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.bulletin-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(260px, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px;
}

.bulletin-feature-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.bulletin-feature-main,
.bulletin-item-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.bulletin-feature-audio {
  min-width: 0;
}

.bulletin-feature strong,
.bulletin-item strong {
  font-size: 15px;
}

.bulletin-feature audio,
.bulletin-item audio,
.bulletin-job audio,
.speaker-player audio {
  width: 100%;
  min-width: 0;
}

.speaker-player {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.waveform-player {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.waveform-player.is-waveform-ready > audio {
  display: none;
}

.waveform-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.waveform-toggle {
  color: var(--teal);
}

.waveform-toggle svg {
  fill: currentColor;
  stroke: none;
}

.waveform-shell {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.waveform-surface {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--wave-bg) 90%, white 10%), var(--wave-bg));
  padding: 6px 8px;
  cursor: pointer;
}

.waveform-preview {
  display: block;
  width: 100%;
  height: 52px;
}

.waveform-engine {
  position: absolute;
  inset: 6px 8px;
  opacity: 0;
  pointer-events: none;
}

.waveform-time {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  justify-self: end;
  line-height: 1;
}

.speaker-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  min-width: 0;
  overflow: visible;
  padding: 12px 10px 8px;
}

.speaker-avatar-chip {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid color-mix(in srgb, var(--line) 82%, var(--surface-3));
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  flex: 0 0 auto;
  padding: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.speaker-avatar-chip::before,
.speaker-avatar-chip::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid var(--speaker-ripple);
  border-radius: inherit;
  box-shadow: 0 0 0 2px var(--speaker-ripple-soft);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.82);
  z-index: 2;
}

.speaker-avatar-chip::after {
  animation-delay: 0.42s;
}

.speaker-avatar-media,
.speaker-avatar-initials {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  object-fit: cover;
  border-radius: inherit;
  font-size: 12px;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.speaker-avatar-chip.active {
  border-color: color-mix(in srgb, var(--accent) 80%, white);
  box-shadow: 0 0 0 4px var(--speaker-ripple-soft), 0 9px 24px var(--speaker-ripple-soft);
  transform: translateY(-2px);
}

.speaker-avatar-chip.active::before,
.speaker-avatar-chip.active::after {
  animation: speaker-ripple 1.05s ease-out infinite;
}

.speaker-mic-badge {
  align-items: center;
  background: var(--speaker-mic-bg);
  border: 2px solid var(--speaker-mic-border);
  border-radius: 999px;
  bottom: -3px;
  box-shadow: 0 5px 12px color-mix(in srgb, black 24%, transparent);
  color: var(--speaker-mic-fg);
  display: flex;
  height: 26px;
  justify-content: center;
  left: -5px;
  opacity: 0;
  position: absolute;
  transform: translateY(4px) scale(0.82);
  transition: opacity 140ms ease, transform 140ms ease;
  width: 26px;
  z-index: 5;
}

.speaker-mic-badge svg {
  display: block;
  fill: none;
  height: 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
  width: 15px;
}

.speaker-avatar-chip.active .speaker-mic-badge {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.bulletin-list-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
}

.bulletin-list-title span {
  color: var(--muted);
  font-size: 13px;
}

.bulletin-list {
  display: grid;
  gap: 10px;
}

.bulletin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.65fr) auto;
  align-items: start;
  gap: 12px;
  padding: 12px;
}

.bulletin-item.with-speakers {
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 1fr) auto;
  align-items: start;
}

.bulletin-history-layout .bulletin-item.with-speakers {
  grid-template-columns: 1fr;
}

.bulletin-history-layout .bulletin-item [data-open-bulletin] {
  justify-self: end;
}

.bulletin-item p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.bulletin-item-audio {
  min-width: 0;
}

.bulletin-delete-row {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  padding-top: 2px;
}

.bulletin-delete-confirm {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.bulletin-delete-confirm span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.button.compact {
  min-height: 32px;
  padding: 0 10px;
}

.button.danger {
  background: color-mix(in srgb, var(--red) 12%, var(--surface-2));
  border-color: color-mix(in srgb, var(--red) 44%, var(--line));
  color: var(--red);
}

.button.danger:hover {
  border-color: var(--red);
}

.button.ghost {
  background: transparent;
  color: var(--muted);
}

.icon-button.danger:hover {
  border-color: var(--red);
  color: var(--red);
}

.attention-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-3);
  padding: 12px;
  min-width: 0;
}

.attention-item.aquarium-item {
  grid-template-columns: auto minmax(0, 1fr) minmax(260px, 1fr);
  gap: 12px;
  padding: 14px;
  overflow: hidden;
}

.attention-marker {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--muted);
  margin-top: 6px;
}

.attention-item.action .attention-marker {
  background: var(--blue);
}

.attention-item.warn .attention-marker {
  background: var(--amber);
}

.attention-item.ok .attention-marker {
  background: var(--green);
}

.attention-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.attention-item p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.attention-item small {
  color: var(--muted);
  display: block;
  font-size: 13px;
  line-height: 1.35;
  margin-top: 4px;
}

.aquarium-scene {
  position: relative;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 172px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--teal) 44%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(88, 197, 189, 0.18), rgba(121, 169, 255, 0.08)),
    var(--surface);
}

.aquarium-scene::before,
.aquarium-scene::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  pointer-events: none;
}

.aquarium-scene::before {
  top: 22px;
  height: 22px;
  border-top: 1px solid rgba(121, 169, 255, 0.28);
  border-radius: 50%;
}

.aquarium-scene::after {
  bottom: -5px;
  height: 26px;
  background:
    radial-gradient(circle at 24% 80%, color-mix(in srgb, var(--amber) 72%, transparent) 0 3px, transparent 4px),
    radial-gradient(circle at 44% 60%, color-mix(in srgb, var(--teal) 58%, transparent) 0 2px, transparent 3px),
    radial-gradient(circle at 74% 74%, color-mix(in srgb, var(--muted) 48%, transparent) 0 2px, transparent 3px);
  opacity: 0.72;
}

.waterline {
  position: absolute;
  top: 9px;
  left: 10px;
  right: 10px;
  height: 1px;
  background: color-mix(in srgb, var(--teal) 56%, transparent);
}

.bubble {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--teal) 58%, white);
  border-radius: 999px;
  opacity: 0.72;
}

.bubble-one {
  top: 36px;
  right: 28px;
  width: 8px;
  height: 8px;
  animation: bubble-drift 4.8s ease-in-out infinite;
}

.bubble-two {
  top: 82px;
  right: 48px;
  width: 5px;
  height: 5px;
  animation: bubble-drift 5.6s ease-in-out infinite 900ms;
}

.plant {
  position: absolute;
  bottom: 8px;
  width: 42px;
  height: 118px;
  opacity: 0.92;
  z-index: 1;
}

.plant path {
  fill: color-mix(in srgb, var(--green) 58%, transparent);
  stroke: color-mix(in srgb, var(--green) 74%, var(--teal));
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.plant path:first-child {
  fill: none;
  stroke-width: 3.4;
}

.plant-left {
  left: 94px;
}

.plant-right {
  right: 78px;
  transform: scaleX(-1);
}

.fish {
  position: absolute;
  display: block;
  filter: drop-shadow(0 5px 9px rgba(0, 0, 0, 0.24));
  z-index: 2;
  pointer-events: none;
  transform-origin: 50% 52%;
  will-change: transform, filter;
}

.aquarium-scene.has-target-motion .fish {
  animation: none;
  transition: none;
}

.discus-fish {
  left: 18px;
  top: 52px;
  width: 72px;
  animation: discus-swim 4.8s ease-in-out infinite;
}

.angel-fish {
  right: 24px;
  top: 42px;
  width: 54px;
  animation: angel-swim 5.7s ease-in-out infinite 500ms;
}

.angel-pair-fish {
  right: 76px;
  top: 72px;
  width: 42px;
  z-index: 3;
  animation: angel-pair-swim 6.3s ease-in-out infinite 950ms;
}

.ramirezi-fish {
  left: 98px;
  top: 76px;
  width: 30px;
  z-index: 3;
  animation: ramirezi-dart 6.2s ease-in-out infinite 1.1s;
}

.corydoras-group {
  left: 144px;
  bottom: 5px;
  width: 38px;
  z-index: 2;
  opacity: 0.84;
  animation: corydoras-forage 7.4s ease-in-out infinite 350ms;
}

.dose-chips {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  z-index: 4;
}

.dose-chips span {
  border: 1px solid color-mix(in srgb, var(--surface) 58%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 86%, transparent);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 4px 6px;
}

@keyframes discus-swim {
  0%,
  100% {
    filter: drop-shadow(0 5px 9px rgba(0, 0, 0, 0.22)) saturate(1.02);
    transform: translate(0, 0) rotate(-1deg) scaleX(1);
  }

  35% {
    transform: translate(5px, -3px) rotate(1.5deg) scaleX(0.985);
  }

  70% {
    filter: drop-shadow(0 7px 11px rgba(0, 0, 0, 0.2)) saturate(1.08);
    transform: translate(2px, 3px) rotate(-0.5deg) scaleX(1.012);
  }
}

@keyframes angel-swim {
  0%,
  100% {
    filter: drop-shadow(0 5px 9px rgba(0, 0, 0, 0.22)) contrast(1.02);
    transform: translate(0, 0) rotate(1deg) scaleX(1);
  }

  42% {
    transform: translate(-6px, 3px) rotate(-1.8deg) scaleX(0.99);
  }

  76% {
    filter: drop-shadow(0 7px 11px rgba(0, 0, 0, 0.2)) contrast(1.08);
    transform: translate(-2px, -3px) rotate(0.8deg) scaleX(1.012);
  }
}

@keyframes angel-pair-swim {
  0%,
  100% {
    filter: drop-shadow(0 5px 9px rgba(0, 0, 0, 0.2)) contrast(1.02);
    transform: translate(0, 0) rotate(-1deg) scaleX(1);
  }

  45% {
    transform: translate(5px, -2px) rotate(1.4deg) scaleX(0.992);
  }

  78% {
    filter: drop-shadow(0 7px 11px rgba(0, 0, 0, 0.18)) contrast(1.07);
    transform: translate(2px, 3px) rotate(-0.6deg) scaleX(1.01);
  }
}

@keyframes ramirezi-dart {
  0%,
  100% {
    filter: drop-shadow(0 4px 7px rgba(0, 0, 0, 0.18)) saturate(1.1);
    transform: translate(0, 0) rotate(1deg) scaleX(1);
  }

  24% {
    transform: translate(13px, -4px) rotate(-2deg) scaleX(0.98);
  }

  56% {
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.16)) saturate(1.18);
    transform: translate(8px, 5px) rotate(1.6deg) scaleX(1.02);
  }

  78% {
    transform: translate(-4px, 2px) rotate(-1deg) scaleX(0.99);
  }
}

@keyframes corydoras-forage {
  0%,
  100% {
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.16)) contrast(1.02);
    transform: translate(0, 0) rotate(0deg);
  }

  36% {
    transform: translate(5px, -1px) rotate(-1deg);
  }

  68% {
    filter: drop-shadow(0 4px 7px rgba(0, 0, 0, 0.14)) contrast(1.08);
    transform: translate(1px, 2px) rotate(1.2deg);
  }
}

@keyframes bubble-drift {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.52;
  }

  50% {
    transform: translateY(-8px);
    opacity: 0.9;
  }
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  margin: -2px 0 14px;
  padding-bottom: 12px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.section-heading h2 {
  flex: 0 0 auto;
}

.state-heading,
.module-title {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  min-width: 0;
}

.title-state-dot,
.module-state-dot,
.check-state-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--muted);
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 14%, transparent);
  color: var(--muted);
  flex: 0 0 auto;
}

.title-state-dot.ok,
.module-state-dot.ok,
.check-state-dot.ok {
  background: var(--green);
  color: var(--green);
}

.title-state-dot.warn,
.module-state-dot.warn,
.check-state-dot.warn,
.title-state-dot.pending,
.module-state-dot.pending,
.check-state-dot.pending {
  background: var(--amber);
  color: var(--amber);
}

.title-state-dot.bad,
.module-state-dot.bad,
.check-state-dot.bad {
  background: var(--red);
  color: var(--red);
}

.panel-summary {
  color: var(--muted);
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collapse-toggle svg {
  transition: transform 160ms ease;
}

.collapsible-panel.is-collapsed .collapse-toggle svg {
  transform: rotate(-90deg);
}

.collapsible-panel.is-collapsed .section-title {
  border-bottom: 0;
  margin-bottom: -2px;
  padding-bottom: 0;
}

.collapsible-panel.is-collapsed .panel-body {
  display: none;
}

.section-title span {
  color: var(--muted);
  font-size: 13px;
}

.module-list,
.checks {
  display: grid;
  gap: 10px;
}

.module {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-3);
  min-width: 0;
  padding: 14px;
}

.module-main {
  min-width: 0;
}

.module h3 {
  font-size: 16px;
  margin: 0 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module h3 .module-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.module-state-detail {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.module-state-detail.ok {
  color: var(--green);
}

.module-state-detail.warn,
.module-state-detail.pending {
  color: var(--amber);
}

.module-state-detail.bad {
  color: var(--red);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  padding: 4px 8px;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: start;
  gap: 8px;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  min-height: 34px;
  min-width: 0;
  padding: 0 12px;
  text-align: center;
}

.button:hover {
  border-color: var(--blue);
}

.button.secondary {
  background: transparent;
  color: var(--muted);
}

.button.disabled {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

.button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.icon-button.disabled {
  cursor: not-allowed;
  opacity: 0.45;
  pointer-events: none;
}

.check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.check-main {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.check-main > div,
.check > div {
  min-width: 0;
}

.check:last-child {
  border-bottom: 0;
}

.check span {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.check small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.check small.ok {
  color: var(--green);
}

.check small.bad {
  color: var(--red);
}

.check strong {
  font-size: 14px;
}

.check-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

.check-refresh {
  width: 32px;
  height: 32px;
}

.check-refresh.is-checking svg {
  animation: job-spin 0.8s linear infinite;
}

.workspace {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: calc(100vh - 56px);
}

.workspace-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  min-width: 0;
  padding: 8px 10px;
}

.workspace-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.workspace-heading h2 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-kind {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 12px;
  padding: 4px 8px;
  white-space: nowrap;
}

.workspace-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-end;
}

#workspace-frame {
  width: 100%;
  min-height: calc(100vh - 170px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--frame-bg);
}

.embed-fallback {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
}

.embed-fallback p {
  color: var(--muted);
  line-height: 1.5;
  margin: 8px 0 18px;
}

.bulletin-module {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: calc(100vh - 56px);
}

.bulletin-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 6px;
}

.tab-button {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}

.tab-button:hover,
.tab-button.active {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--text);
}

.bulletin-tab-panel {
  display: none;
}

.bulletin-tab-panel.active {
  display: block;
}

.module-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.module-section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  padding-bottom: 12px;
}

.module-section-title h3,
.character-card h4,
.source-group h4 {
  margin: 0;
}

.module-section-title p,
.character-card p,
.source-item p,
.bulletin-detail p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin: 4px 0 0;
}

.module-bulletin-controls {
  margin-bottom: 12px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.info-tile,
.source-item,
.character-card,
.bulletin-detail,
.selected-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-3);
}

.info-tile {
  display: grid;
  gap: 3px;
  padding: 12px;
}

.info-tile span,
.info-tile small,
.file-list span,
.maintenance-actions span,
.character-save-state {
  color: var(--muted);
  font-size: 12px;
}

.info-tile strong {
  font-size: 18px;
}

.bulletin-history-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 12px;
  align-items: start;
}

.bulletin-detail {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.bulletin-detail-header {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(220px, 1fr);
  align-items: center;
  gap: 12px;
}

.bulletin-detail h3 {
  margin: 6px 0 0;
}

details {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

pre {
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin: 10px 0 0;
  padding: 10px;
  white-space: pre-wrap;
}

.selected-list,
.source-list,
.character-list {
  display: grid;
  gap: 10px;
}

.selected-item,
.source-item,
.character-card {
  padding: 12px;
}

.source-group {
  display: grid;
  gap: 10px;
}

.source-group:not(.active) {
  display: none;
}

.source-group-panels {
  display: grid;
  gap: 10px;
}

.source-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 420px);
  gap: 10px;
}

.source-group-picker {
  display: grid;
  gap: 5px;
}

.source-group-picker span,
.source-enabled-toggle {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.source-group-picker select {
  width: 100%;
}

.source-group-head,
.source-item-head,
.source-actions,
.source-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.source-group-head p,
.source-save-state {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin: 3px 0 0;
}

.source-group-actions,
.source-card-actions {
  justify-content: flex-end;
  flex: 0 0 auto;
}

.source-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.source-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 0 9px;
}

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

.source-filter:hover,
.source-filter.active {
  background: var(--surface-2);
  color: var(--text);
}

.source-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.source-add-block {
  display: grid;
  justify-items: stretch;
  gap: 10px;
}

.source-add-toggle[aria-expanded="true"] {
  background: var(--surface-2);
  color: var(--text);
}

.source-add-form {
  display: grid;
  width: 100%;
  gap: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 12px;
}

.source-analyze-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.source-analyze-row label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.source-analyze-row label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.source-item {
  display: grid;
  gap: 10px;
}

.source-item-title {
  min-width: 0;
}

.source-item-title p {
  overflow-wrap: anywhere;
}

.source-item.muted {
  opacity: 0.62;
}

.source-item.is-editing {
  border-color: color-mix(in srgb, var(--blue) 46%, var(--line));
}

.source-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 0 8px;
  white-space: nowrap;
}

.source-status.ok {
  border-color: color-mix(in srgb, var(--green) 45%, var(--line));
  color: var(--green);
}

.source-status.paused {
  border-color: color-mix(in srgb, var(--amber) 45%, var(--line));
  color: var(--amber);
}

.source-edit-panel {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.source-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  align-items: end;
}

.source-form-grid label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.source-form-grid label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.source-target-field {
  grid-column: span 2;
}

.source-target-field textarea {
  resize: vertical;
}

.source-actions {
  justify-content: flex-end;
}

.character-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.character-card {
  align-content: start;
  display: grid;
  gap: 10px;
  grid-template-rows: auto auto auto minmax(26px, auto) 16px;
  min-width: 0;
  overflow: hidden;
}

.character-card-head,
.maintenance-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.character-card-head {
  min-height: 58px;
}

.character-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.character-avatar {
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  flex: 0 0 auto;
  object-fit: cover;
}

.character-identity > div {
  min-width: 0;
}

.toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.character-description {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.character-description textarea {
  max-width: 100%;
}

.character-description span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.character-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(66px, 76px) minmax(66px, 76px) auto;
  align-items: end;
  gap: 8px;
  min-width: 0;
}

.character-controls label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.character-controls label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.emotion-field {
  overflow: hidden;
}

.emotion-field select {
  width: 100%;
  min-width: 0;
}

.character-controls input,
.character-controls select {
  width: 100%;
}

.file-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.file-list div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.file-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.maintenance-actions {
  justify-content: flex-start;
  margin-top: 12px;
}

@media (max-width: 1080px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .bulletin-history-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1500px) {
  .character-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .character-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .shell {
    align-content: start;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    max-width: 100vw;
    overflow-x: hidden;
    width: 100%;
  }

  .sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    border-right: 0;
    min-height: auto;
    padding: 16px 20px;
    position: sticky;
    width: 100vw;
    z-index: 10;
  }

  .main {
    max-width: 100vw;
    width: 100vw;
  }

  .brand {
    margin-bottom: 0;
    min-width: 0;
  }

  .brand > div {
    min-width: 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    grid-column: 1 / -1;
    gap: 6px;
  }

  .sidebar.nav-open .nav {
    display: grid;
    padding-top: 4px;
    padding-bottom: 2px;
  }

  .topbar-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .sidebar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand > div {
    min-width: 0;
  }

  .main {
    padding: 18px;
  }

  .embed-fallback .button {
    width: 100%;
  }

  h1 {
    font-size: 26px;
  }

  .today-panel .section-title {
    align-items: flex-start;
    gap: 8px;
  }

  .today-panel .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .bulletin-panel .section-title {
    align-items: flex-start;
    gap: 8px;
  }

  .bulletin-panel .section-heading {
    align-items: flex-start;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
  }

  .bulletin-panel .panel-actions {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .bulletin-panel .panel-status {
    display: none;
  }

  .today-actions {
    margin-left: auto;
  }

  .today-status {
    display: none;
  }

  .attention-item.aquarium-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .aquarium-scene {
    grid-column: 1 / -1;
    justify-self: start;
    width: min(100%, calc(100vw - 74px));
    max-width: calc(100vw - 74px);
    min-height: 160px;
  }

  .bulletin-feature,
  .bulletin-item,
  .bulletin-detail-header {
    grid-template-columns: 1fr;
  }

  .bulletin-item.with-speakers {
    grid-template-columns: 1fr;
  }

  .bulletin-delete-row,
  .bulletin-delete-confirm {
    flex-wrap: wrap;
  }

  .bulletin-controls {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .bulletin-city-row select {
    width: 100%;
  }

  .bulletin-item .danger {
    justify-self: end;
  }

  .bulletin-item [data-open-bulletin] {
    justify-self: end;
  }

  .bulletin-tabs {
    margin: 0 -2px;
  }

  .module-section {
    padding: 14px;
  }

  .source-items {
    grid-template-columns: 1fr;
  }

  .source-toolbar {
    grid-template-columns: 1fr;
  }

  .source-analyze-row {
    grid-template-columns: 1fr;
  }

  .source-target-field {
    grid-column: 1 / -1;
  }

  .source-group-head,
  .source-item-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .source-group-actions,
  .source-card-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .source-add-toggle {
    width: 100%;
  }

  .source-card-actions {
    flex-wrap: wrap;
  }

  .character-list {
    grid-template-columns: 1fr;
  }

  .character-controls {
    grid-template-columns: minmax(0, 1fr) 70px 66px auto;
  }

  .today-panel.is-collapsed .today-status {
    display: inline-flex;
  }

  .discus-fish {
    left: 14px;
    top: 54px;
    width: 64px;
  }

  .angel-fish {
    left: min(252px, calc(100vw - 116px));
    right: auto;
    top: 42px;
    width: 48px;
  }

  .angel-pair-fish {
    left: min(214px, calc(100vw - 152px));
    right: auto;
    top: 72px;
    width: 38px;
  }

  .ramirezi-fish {
    left: 96px;
    top: 78px;
    width: 32px;
  }

  .corydoras-group {
    left: min(172px, calc(100vw - 208px));
    bottom: 5px;
    width: 44px;
  }

  .plant-left {
    left: 96px;
  }

  .plant-right {
    right: 68px;
  }
}

@media (max-width: 420px) {
  .main,
  .sidebar {
    padding: 14px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .panel,
  .module,
  .embed-fallback {
    padding: 14px;
  }

  .section-title {
    align-items: center;
    flex-direction: row;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .today-actions {
    align-items: flex-start;
  }

  .today-status {
    display: none;
  }

  .workspace-kind {
    display: none;
  }

  .character-card-head,
  .maintenance-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .character-controls {
    grid-template-columns: minmax(0, 1fr) 60px 60px auto;
    gap: 6px;
  }

  .character-controls label span[data-short] {
    font-size: 0;
  }

  .character-controls label span[data-short]::before {
    content: attr(data-short);
    font-size: 12px;
  }

  h1 {
    font-size: 24px;
  }

  .today-panel.is-collapsed .today-status {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bubble,
  .fish,
  .job-spinner,
  .speaker-avatar-chip.active::before,
  .speaker-avatar-chip.active::after {
    animation: none;
  }
}

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

@keyframes speaker-ripple {
  0% {
    opacity: 0.95;
    transform: scale(0.86);
  }
  68% {
    opacity: 0.34;
    transform: scale(1.18);
  }
  100% {
    opacity: 0;
    transform: scale(1.32);
  }
}
