:root {
  --ink: #1e1f24;
  --muted: #656b73;
  --surface: #ffffff;
  --surface-alt: #f4f2ed;
  --accent: #2a9d8f;
  --accent-strong: color-mix(in srgb, var(--accent) 82%, #000);
  --accent-08: color-mix(in srgb, var(--accent) 8%, transparent);
  --accent-12: color-mix(in srgb, var(--accent) 12%, transparent);
  --accent-15: color-mix(in srgb, var(--accent) 15%, transparent);
  --accent-18: color-mix(in srgb, var(--accent) 18%, transparent);
  --accent-20: color-mix(in srgb, var(--accent) 20%, transparent);
  --accent-25: color-mix(in srgb, var(--accent) 25%, transparent);
  --accent-30: color-mix(in srgb, var(--accent) 30%, transparent);
  --accent-soft: var(--accent-12);
  --success: #2f9f5f;
  --warning: #f0b35f;
  --danger: #d65050;
  --shadow: 0 18px 38px rgba(17, 22, 34, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: #f2efe9;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Arsenal SC", sans-serif;
}

.auth-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.auth-card {
  width: min(440px, 92vw);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(30, 31, 36, 0.08);
  box-shadow: var(--shadow);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.auth-card h1 {
  margin: 0 0 8px;
  font-family: "Arsenal SC", sans-serif;
  font-size: 28px;
}

.auth-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.auth-form .form-grid {
  grid-template-columns: 1fr;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  /* background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.9), transparent 55%),
    radial-gradient(circle at 85% 10%, var(--accent-15), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(240, 179, 95, 0.18), transparent 50%),
    linear-gradient(135deg, #f8f6f0 0%, #f0ece5 50%, #f5f1ea 100%); */
    background: #FCFCFC;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(30, 31, 36, 0.08);
}

.topbar-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 24px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(30, 31, 36, 0.2);
  background: rgba(30, 31, 36, 0.04);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.topbar.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.topbar.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle:hover {
  background: rgba(30, 31, 36, 0.08);
  border-color: rgba(30, 31, 36, 0.35);
}

.nav-toggle:focus-visible {
  outline: 2px solid rgba(30, 31, 36, 0.55);
  outline-offset: 2px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: conic-gradient(from 140deg, var(--accent), #f0b35f, #f9e3b1, var(--accent));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: "Arsenal SC", sans-serif;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  padding: 6px;
  background: var(--surface-alt);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.nav a,
.nav button,
.nav .nav-static,
.nav-muted {
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  position: relative;
  z-index: 1;
}

.nav button {
  background: transparent;
  border: none;
  cursor: pointer;
  font: inherit;
}

.nav a.is-active,
.nav button.is-active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 16px var(--accent-25);
}

.nav.nav-has-bubble a.is-active {
  background: transparent;
  box-shadow: none;
}

.nav a:hover,
.nav button:hover {
  color: var(--ink);
}

.nav.nav-has-bubble.nav-hover-other a.is-active {
  color: var(--ink);
}

.nav.nav-has-bubble a:hover,
.nav.nav-has-bubble a:focus-visible {
  color: #ffffff;
}

.nav-muted {
  opacity: 0.5;
}

.nav .nav-static {
  color: var(--muted);
  cursor: default;
}

.module-toggle.is-disabled {
  color: var(--muted);
  opacity: 0.45;
  box-shadow: none;
}

.module-toggle.is-disabled:hover {
  color: var(--muted);
}

.nav-bubble {
  position: absolute;
  top: 0;
  left: 0;
  height: 36px;
  width: 0;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 8px 16px var(--accent-25);
  opacity: 0;
  z-index: 0;
}

.settings-module-nav {
  margin: 0;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.nav.nav-ready .nav-bubble {
  transition: transform 0.22s ease, width 0.22s ease, height 0.22s ease, opacity 0.15s ease;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.practice-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--accent-08);
}

.practice-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--muted);
}

.practice-name {
  font-size: 14px;
  font-weight: 600;
}

.link {
  font-size: 13px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.link:hover {
  color: var(--ink);
}

.topbar-tool {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(30, 31, 36, 0.12);
  text-decoration: none;
  color: var(--muted);
  background: rgba(30, 31, 36, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.topbar-tool:hover,
.topbar-tool:focus-visible {
  color: var(--ink);
  border-color: rgba(30, 31, 36, 0.22);
  background: rgba(30, 31, 36, 0.07);
}

.topbar-tool.is-active {
  color: #ffffff;
  background: var(--accent);
  border-color: transparent;
  box-shadow: 0 10px 20px var(--accent-20);
}

.topbar-tool svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar-tool--button {
  padding: 0;
  cursor: pointer;
  font: inherit;
  appearance: none;
}

.topbar-right form {
  margin: 0;
  display: flex;
  align-items: center;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.link-button:hover {
  color: var(--ink);
}

.page {
  padding: 28px;
  animation: fadeRise 0.45s ease;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
}

.page-head h1 {
  font-family: "Arsenal SC", sans-serif;
  font-size: 34px;
  margin: 0 0 6px;
}

.page-head p {
  margin: 0;
  color: var(--muted);
  max-width: 480px;
}

.page-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 12px 22px var(--accent-20);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px var(--accent-30);
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(30, 31, 36, 0.12);
  box-shadow: none;
}

.button.danger {
  background: var(--danger);
  box-shadow: 0 14px 26px rgba(214, 80, 80, 0.25);
}

.button.success {
  background: var(--success);
  box-shadow: 0 14px 26px rgba(47, 159, 95, 0.25);
}

.button:disabled,
.button.is-disabled {
  background: rgba(120, 130, 150, 0.35);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  opacity: 0.7;
}

.button:disabled:hover,
.button.is-disabled:hover {
  transform: none;
  box-shadow: none;
}

.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(200px, 1fr));
  gap: 18px;
  padding-bottom: 12px;
}

.board-column {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(30, 31, 36, 0.08);
}

.column-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  margin-bottom: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.dot.waiting {
  background: var(--warning);
}

.board-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.patient-card {
  border-radius: var(--radius-sm);
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(30, 31, 36, 0.08);
  cursor: grab;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.patient-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(17, 22, 34, 0.08);
}

.patient-card.is-dragging {
  opacity: 0.6;
}

.patient-name {
  font-weight: 600;
}

.patient-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.patient-wait-time {
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
}

.patient-wait-time .wait-value {
  margin-left: 2px;
}

.patient-wait-time .wait-value.wait-good {
  color: #1f8b4c;
  font-weight: 600;
}

.patient-wait-time .wait-value.wait-warn {
  color: #eacf01;
  font-weight: 600;
}

.patient-wait-time .wait-value.wait-bad {
  color: var(--danger);
  font-weight: 600;
}

.patient-actions {
  margin-top: 4px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.patient-actions a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.patient-actions form {
  display: block;
  margin: 0;
}

.patient-actions .action-button {
  font-size: 12px;
}

.board-column.is-over {
  border-color: var(--accent);
  box-shadow: 0 16px 28px var(--accent-18);
}

.placeholder {
  font-size: 12px;
  color: var(--muted);
  padding: 10px;
  border-radius: 10px;
  border: 1px dashed rgba(30, 31, 36, 0.15);
}

.board-status {
  margin: 12px 0 24px;
  min-height: 18px;
  color: var(--muted);
  font-weight: 600;
}

.list-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(30, 31, 36, 0.08);
  box-shadow: var(--shadow);
}

.analytics-note {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.analytics-note p {
  margin: 6px 0 0;
  color: var(--muted);
}

.analytics-reset {
  margin: 20px 0 30px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.analytics-reset p {
  margin: 6px 0 0;
  color: var(--muted);
}

.analytics-reset__form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.analytics-reset__controls {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(30, 31, 36, 0.08);
  background: rgba(30, 31, 36, 0.03);
}

.analytics-reset__field {
  min-width: 200px;
}

.analytics-reset__field label {
  margin-bottom: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

.analytics-reset__field select {
  min-width: 180px;
}

.confirm-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.confirm-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.analytics-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.analytics-empty h2 {
  margin-top: 0;
}

.analytics-empty p {
  margin: 6px 0 0;
  color: var(--muted);
}

.analytics-sub {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.list-head h2 {
  margin: 0;
  font-size: 22px;
}

.list-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.list-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.list-search label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.list-search input {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(30, 31, 36, 0.15);
  font-size: 13px;
  min-width: 220px;
  font-family: inherit;
}

.list-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-15);
}

.list-count {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 20px 0 26px;
}

.stats-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid rgba(30, 31, 36, 0.08);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.stats-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #f0b35f);
}

.stats-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}

.stats-value {
  font-size: 28px;
  font-family: var(--font-display);
  display: inline-flex;
  align-items: baseline;
  margin-bottom: 6px;
}

.stats-value.trend-good {
  color: var(--success);
}

.stats-value.trend-bad {
  color: var(--danger);
}

.stats-value.trend-neutral {
  color: var(--ink);
}

.trend-arrow {
  margin-left: 6px;
  font-size: 18px;
  line-height: 1;
  color: inherit;
}

.stats-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.stats-sub {
  font-size: 13px;
  font-weight: 600;
}

.stats-compare {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.2s ease;
  min-height: 16px;
}

.stats-compare.is-visible {
  opacity: 1;
}

.stats-compare.trend-good {
  color: var(--success);
}

.stats-compare.trend-bad {
  color: var(--danger);
}

.stats-compare.trend-neutral {
  color: var(--muted);
}

.stats-compare .trend-arrow {
  margin-left: 6px;
  font-size: 14px;
  line-height: 1;
  color: inherit;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(30, 31, 36, 0.08);
}

.data-table th {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
}

.table-actions a {
  margin-right: 10px;
  text-decoration: none;
  font-weight: 600;
  color: var(--accent);
}

.table-actions a.danger {
  color: var(--danger);
}

.pagination {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.page-link {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(30, 31, 36, 0.12);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
}

.page-link.current {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
}

.page-link.disabled {
  color: var(--muted);
  border-color: rgba(30, 31, 36, 0.08);
}

.table-actions form {
  display: inline;
  margin: 0;
}

.action-button {
  background: none;
  border: none;
  padding: 0;
  margin-right: 10px;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}

.action-button.danger {
  color: var(--danger);
}

.analytics-panel {
  margin-bottom: 24px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.compare-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.compare-select {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(30, 31, 36, 0.15);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: #ffffff;
  min-width: 180px;
}

.compare-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-15);
}

.panel-head h2 {
  margin: 0 0 6px;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
}

.period-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid rgba(30, 31, 36, 0.08);
}

.period-tab {
  border: none;
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.period-tab:hover {
  color: var(--ink);
}

.period-tab.is-active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 16px var(--accent-25);
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.chart-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 18px 22px;
  border: 1px solid rgba(30, 31, 36, 0.08);
  box-shadow: var(--shadow);
}

.chart-head h3 {
  margin: 0 0 6px;
}

.chart-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.chart-wrap {
  position: relative;
  height: 260px;
  margin-top: 14px;
}


.form-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(30, 31, 36, 0.08);
  box-shadow: var(--shadow);
  max-width: 760px;
}


.stack-card + .stack-card {
  margin-top: 18px;
}

.form-sub {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.danger-card {
  border-color: rgba(214, 80, 80, 0.4);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(30, 31, 36, 0.15);
  font-family: inherit;
  font-size: 14px;
  background: #ffffff;
}

.field input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(214, 80, 80, 0.15);
}

.field input.is-invalid:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(214, 80, 80, 0.2);
}

.field input.is-warning,
.field.is-warning input {
  border-color: var(--warning);
  box-shadow: 0 0 0 3px rgba(240, 179, 95, 0.18);
}

.field input.is-warning:focus,
.field.is-warning input:focus {
  border-color: var(--warning);
  box-shadow: 0 0 0 3px rgba(240, 179, 95, 0.24);
}

.appointment-warning {
  color: var(--warning);
  font-size: 12px;
  margin-top: 6px;
}

.appointment-picker {
  position: relative;
}

.appointment-input-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  height: 0;
}

.appointment-display {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(30, 31, 36, 0.15);
  font-family: inherit;
  font-size: 14px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.appointment-display:hover {
  border-color: var(--accent);
}

.appointment-display-text {
  color: var(--ink);
  font-weight: 600;
}

.appointment-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 31, 36, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.appointment-overlay[hidden] {
  display: none !important;
}

.info-launch-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(30, 31, 36, 0.42);
  backdrop-filter: blur(4px);
}

.info-launch-overlay[hidden] {
  display: none !important;
}

.info-launch-panel {
  width: min(560px, 92vw);
  padding: 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(47, 159, 95, 0.15), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8f6f1 100%);
  border: 1px solid rgba(30, 31, 36, 0.08);
  box-shadow: 0 28px 60px rgba(30, 31, 36, 0.18);
}

.info-launch-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.info-launch-panel__eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(47, 159, 95, 0.12);
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-launch-panel__head h2 {
  margin: 0 0 8px;
  font-family: "Arsenal SC", sans-serif;
  font-size: 30px;
  line-height: 1.05;
}

.info-launch-panel__head p {
  margin: 0;
  color: var(--muted);
  max-width: 44ch;
}

.info-launch-panel__close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(30, 31, 36, 0.06);
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.info-launch-panel__highlight {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(30, 31, 36, 0.08);
}

.info-launch-panel__highlight span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.info-launch-panel__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.appointment-panel {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  width: min(420px, 92vw);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.appointment-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.appointment-panel-header h3 {
  margin: 0;
  font-family: "Arsenal SC", sans-serif;
  font-size: 22px;
}

.appointment-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.appointment-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
}

.appointment-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.appointment-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.calendar-nav-btn {
  border: 1px solid rgba(30, 31, 36, 0.12);
  background: #ffffff;
  border-radius: 10px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.calendar-month-title {
  font-weight: 600;
  text-transform: capitalize;
}

.appointment-weekdays,
.appointment-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.appointment-weekdays span {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.appointment-day {
  border: 1px solid rgba(30, 31, 36, 0.08);
  background: #ffffff;
  border-radius: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-weight: 600;
}

.appointment-day.is-outside {
  opacity: 0.4;
  background: var(--surface-alt);
}

.appointment-day.is-today {
  border-color: var(--accent);
}

.appointment-day.is-selected {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.appointment-clock {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.appointment-clock-label {
  font-weight: 600;
  color: var(--muted);
}

.clock-face {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid rgba(30, 31, 36, 0.1);
}

.clock-face.is-quarter-face {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  overflow: hidden;
}

.clock-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 6px 12px rgba(30, 31, 36, 0.12);
}

.clock-item:hover {
  background: var(--accent);
  color: #ffffff;
}

.clock-item-quarter {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  font-size: 24px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(30, 31, 36, 0.08);
}

.clock-item-quarter-top-left {
  border-top-left-radius: 999px;
}

.clock-item-quarter-top-right {
  border-top-right-radius: 999px;
}

.clock-item-quarter-bottom-left {
  border-bottom-left-radius: 999px;
}

.clock-item-quarter-bottom-right {
  border-bottom-right-radius: 999px;
}

.clock-item-quarter.is-unavailable,
.clock-item-quarter:disabled {
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.5);
  color: rgba(30, 31, 36, 0.35);
  box-shadow: inset 0 0 0 1px rgba(30, 31, 36, 0.04);
}

.clock-item-quarter.is-unavailable:hover,
.clock-item-quarter:disabled:hover {
  background: rgba(255, 255, 255, 0.5);
  color: rgba(30, 31, 36, 0.35);
}

.clock-manual {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  align-items: center;
}

.clock-manual-toggle {
  border: none;
  background: none;
  color: var(--accent-strong);
  font-weight: 600;
  cursor: pointer;
}

.clock-manual-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.clock-manual-input {
  width: 90px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(30, 31, 36, 0.2);
  font-size: 13px;
}

.clock-manual-error {
  color: var(--danger);
  font-size: 12px;
}

.field-value {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(30, 31, 36, 0.12);
  font-size: 14px;
  background: #ffffff;
  word-break: break-word;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 6px;
  white-space: nowrap;
}

.tag-accent {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.info-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  position: relative;
  cursor: pointer;
}

.info-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(30, 31, 36, 0.2);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: #ffffff;
}

.info-bubble {
  position: absolute;
  top: 24px;
  right: 0;
  min-width: 220px;
  max-width: 320px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(30, 31, 36, 0.12);
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 16px 30px rgba(17, 22, 34, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 5;
}

.info-tip:hover .info-bubble,
.info-tip:focus .info-bubble,
.info-tip:focus-within .info-bubble {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.info-bubble ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-15);
}

.field input[type="color"][data-color-input] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.color-preview-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.color-preview-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 600;
}

.color-preview {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(30, 31, 36, 0.2);
  background: #ffffff;
  cursor: pointer;
}

.color-preview-value {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.help {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 6px;
}

.form-actions {
  display: flex;
  gap: 12px;
}

.form-errors {
  margin-bottom: 14px;
  color: var(--danger);
}

.form-hint {
  margin-bottom: 14px;
  padding: 10px 12px;
  background: rgba(240, 179, 95, 0.18);
  border-radius: 10px;
  font-size: 13px;
}

.form-hint--status {
  display: none;
}

.form-hint--status.is-visible {
  display: block;
}

.upload-progress {
  display: none;
  margin-bottom: 14px;
}

.upload-progress.is-visible {
  display: block;
}

.upload-progress__track {
  height: 8px;
  background: rgba(30, 31, 36, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.upload-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 0.2s ease;
}

.upload-progress__label {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.message-stack {
  margin-bottom: 20px;
  display: grid;
  gap: 10px;
}

.message {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--accent-12);
  font-weight: 600;
}

.message.error {
  background: rgba(214, 80, 80, 0.2);
}

.message.success {
  background: var(--accent-18);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.practice-card {
  display: block;
  padding: 20px;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid rgba(30, 31, 36, 0.08);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.practice-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px rgba(17, 22, 34, 0.12);
}

.practice-card__title {
  font-family: "Arsenal SC", sans-serif;
  font-size: 20px;
  margin-bottom: 6px;
}

.practice-card__meta {
  font-size: 13px;
  color: var(--muted);
}

.reorder-note {
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--accent-12);
  font-weight: 600;
}

.media-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.media-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(30, 31, 36, 0.08);
  box-shadow: var(--shadow);
  cursor: grab;
}

.media-card.is-dragging {
  opacity: 0.6;
}

.media-preview {
  width: 96px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(30, 31, 36, 0.08);
  border: 1px solid rgba(30, 31, 36, 0.1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  appearance: none;
  cursor: zoom-in;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.media-preview:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 20px rgba(17, 22, 34, 0.12);
  transform: translateY(-1px);
}

.media-preview:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.media-preview img,
.media-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-preview video {
  background: #0f1117;
  pointer-events: none;
}

.media-handle {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: repeating-linear-gradient(
    90deg,
    rgba(30, 31, 36, 0.2),
    rgba(30, 31, 36, 0.2) 2px,
    transparent 2px,
    transparent 6px
  );
}

.media-body {
  flex: 1;
}

.media-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.media-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.media-file {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}

.media-actions a {
  margin-left: 12px;
  text-decoration: none;
  font-weight: 600;
  color: var(--accent);
  font-size: 13px;
}

.media-actions a.danger {
  color: var(--danger);
}

.app-shell.has-media-lightbox {
  overflow: hidden;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(244, 242, 237, 0.78);
  backdrop-filter: blur(6px);
}

.media-lightbox[hidden] {
  display: none !important;
}

.media-lightbox-dialog {
  width: min(1360px, 100%);
  max-height: calc(100vh - 32px);
  padding: 24px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid rgba(30, 31, 36, 0.08);
  box-shadow: 0 28px 80px rgba(17, 22, 34, 0.16);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.media-lightbox-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.media-lightbox-copy {
  min-width: 0;
}

.media-lightbox-copy h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Arsenal SC", sans-serif;
  font-size: 28px;
}

.media-lightbox-file {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  word-break: break-word;
}

.media-lightbox-close {
  border: 0;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.media-lightbox-close:hover {
  background: var(--accent-15);
  transform: translateY(-1px);
}

.media-lightbox-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.media-lightbox-stage {
  min-height: min(78vh, 860px);
  border-radius: 18px;
  background: #f8f6f1;
  border: 1px solid rgba(30, 31, 36, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.media-lightbox-stage img,
.media-lightbox-stage video {
  max-width: 100%;
  max-height: min(78vh, 860px);
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.media-lightbox-stage img[hidden],
.media-lightbox-stage video[hidden] {
  display: none !important;
}

.media-lightbox-stage video {
  width: 100%;
  height: 100%;
  background: #f8f6f1;
}

@media (max-width: 720px) {
  .media-lightbox {
    padding: 12px;
  }

  .media-lightbox-dialog {
    padding: 14px;
    border-radius: 18px;
  }

  .media-lightbox-header {
    flex-direction: column;
    align-items: stretch;
  }

  .media-lightbox-close {
    width: 100%;
  }

  .media-lightbox-copy h2 {
    font-size: 22px;
  }

  .media-lightbox-stage {
    min-height: 48vh;
  }
}

.room-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.room-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(30, 31, 36, 0.08);
  box-shadow: var(--shadow);
  cursor: grab;
}

.room-card.is-dragging {
  opacity: 0.6;
}

.room-handle {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: repeating-linear-gradient(
    90deg,
    rgba(30, 31, 36, 0.2),
    rgba(30, 31, 36, 0.2) 2px,
    transparent 2px,
    transparent 6px
  );
}

.room-color {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(30, 31, 36, 0.2);
}

.room-body {
  flex: 1;
}

.room-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.room-meta {
  font-size: 13px;
  color: var(--muted);
}

.room-actions a {
  margin-left: 12px;
  text-decoration: none;
  font-weight: 600;
  color: var(--accent);
  font-size: 13px;
}

.room-actions a.danger {
  color: var(--danger);
}

.monitor-text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.monitor-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.monitor-text-grid .form-card {
  max-width: none;
}

.monitor-action-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.monitor-action-list form {
  margin: 0;
}

.monitor-action-form {
  display: grid;
  grid-template-columns: auto 90px auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(30, 31, 36, 0.1);
  background: rgba(30, 31, 36, 0.03);
}

.monitor-action-form label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.monitor-action-form input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(30, 31, 36, 0.15);
  font-family: inherit;
  font-size: 13px;
}

.preset-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preset-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(30, 31, 36, 0.08);
  box-shadow: var(--shadow);
}

.preset-body {
  flex: 1;
  min-width: 0;
}

.preset-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.preset-message {
  font-size: 13px;
  color: var(--muted);
  white-space: pre-wrap;
}

.preset-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.preset-actions form {
  margin: 0;
}

.preset-actions .action-button {
  margin-right: 0;
}

.field.is-full {
  grid-column: 1 / -1;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.calendar-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid rgba(30, 31, 36, 0.08);
  box-shadow: var(--shadow);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.calendar-headlines h2 {
  margin: 0;
  font-family: "Arsenal SC", sans-serif;
  font-size: 24px;
}

.calendar-headlines p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.calendar-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.calendar-btn,
.calendar-toggle {
  border: 1px solid rgba(30, 31, 36, 0.2);
  background: #ffffff;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.calendar-btn.ghost {
  background: transparent;
}

.calendar-btn:hover,
.calendar-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(30, 31, 36, 0.08);
}

.calendar-view-toggle {
  display: inline-flex;
  padding: 4px;
  background: var(--surface-alt);
  border-radius: 999px;
  gap: 4px;
}

.calendar-toggle.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 16px var(--accent-25);
}

.calendar-body {
  margin-top: 18px;
}

.calendar-loading,
.calendar-empty {
  padding: 24px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

.calendar-month {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.calendar-day {
  min-height: 96px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(30, 31, 36, 0.08);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.calendar-day.is-outside {
  opacity: 0.4;
  background: var(--surface-alt);
}

.calendar-day.is-today {
  border-color: var(--accent);
  box-shadow: 0 10px 18px var(--accent-12);
}

.calendar-day.is-selected {
  border-color: var(--accent-strong);
}

.calendar-day:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(30, 31, 36, 0.08);
}

.calendar-day .day-number {
  font-weight: 700;
  font-size: 16px;
}

.calendar-day .day-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.day-count {
  width: 100%;
}

.calendar-week {
  display: grid;
  grid-template-columns: repeat(var(--week-days, 5), minmax(0, 1fr));
  gap: 16px;
}

.calendar-week-day {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(30, 31, 36, 0.08);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 320px;
}

.calendar-week-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px;
  background: var(--surface-alt);
  border: 1px solid rgba(30, 31, 36, 0.08);
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 600;
}

.calendar-weekday {
  text-transform: capitalize;
}

.calendar-weekdate {
  color: var(--muted);
  font-size: 12px;
}

.calendar-week-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calendar-week-empty {
  padding: 16px;
  background: var(--surface-alt);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease-out, border-color 0.2s ease, color 0.2s ease-out;
}

.calendar-week-empty:hover {
  color: #ffffff;
  border-color: var(--accent);
  background: var(--accent);
}

.calendar-event {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(30, 31, 36, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.calendar-event:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 10px 18px var(--accent-12);
}

.calendar-event .event-time {
  font-size: 12px;
  color: var(--accent-strong);
  font-weight: 700;
  text-transform: uppercase;
}

.calendar-event .event-title {
  font-weight: 600;
}

.calendar-toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid rgba(30, 31, 36, 0.12);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.calendar-toggle-switch[hidden] {
  display: none !important;
}

.calendar-toggle-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calendar-toggle-switch .switch-track {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: rgba(30, 31, 36, 0.2);
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.calendar-toggle-switch .switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(30, 31, 36, 0.2);
  transition: transform 0.2s ease;
}

.calendar-toggle-switch input:checked + .switch-track {
  background: var(--accent);
}

.calendar-toggle-switch input:checked + .switch-track::after {
  transform: translateX(16px);
}

.calendar-toggle-switch .switch-label {
  color: var(--muted);
}

.calendar-settings-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.calendar-settings-copy {
  flex: 1 1 320px;
}

.calendar-settings-copy h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.calendar-settings-copy .form-sub {
  margin: 0;
  max-width: 560px;
}

.calendar-segment-switch {
  position: relative;
  display: inline-flex;
  width: min(100%, 420px);
  cursor: pointer;
}

.calendar-segment-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  margin: 0;
}

.calendar-segment-switch .segment-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid rgba(30, 31, 36, 0.12);
}

.calendar-segment-switch .segment-track::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 8px 16px var(--accent-25);
  transition: transform 0.2s ease;
}

.calendar-segment-switch input:checked + .segment-track::before {
  transform: translateX(100%);
}

.calendar-segment-switch .segment-option {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: var(--muted);
  transition: color 0.2s ease;
}

.calendar-segment-switch input:not(:checked) + .segment-track .segment-option-left,
.calendar-segment-switch input:checked + .segment-track .segment-option-right {
  color: #ffffff;
}

.calendar-segment-switch input:focus-visible + .segment-track {
  outline: 2px solid var(--accent-25);
  outline-offset: 2px;
}

.field .monitor-display-switch {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  margin-bottom: 0;
  padding: 6px 10px;
  border: 1px solid rgba(30, 31, 36, 0.12);
  background: var(--surface-alt);
  flex-shrink: 0;
}

.field input.monitor-display-toggle-input {
  position: absolute;
  opacity: 0 !important;
  pointer-events: none;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  appearance: none;
}

.field .monitor-display-switch .switch-track {
  flex-shrink: 0;
}

.monitor-display-settings {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.monitor-display-setting .form-sub {
  margin: 10px 0 0;
}

.monitor-display-setting .form-actions {
  margin-top: 14px;
}

@media (max-width: 720px) {
  .calendar-settings-panel {
    align-items: flex-start;
  }

  .calendar-segment-switch {
    width: 100%;
  }
}

.field input[type="range"] {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.background-sound-grid,
.background-sound-library {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.background-sound-card,
.background-sound-library-card {
  background: var(--surface);
  border: 1px solid rgba(30, 31, 36, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(17, 22, 34, 0.05);
}

.background-sound-card {
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.background-sound-card:hover,
.background-sound-card:focus-visible,
.background-sound-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 14px 28px var(--accent-12);
  transform: translateY(-1px);
}

.background-sound-card:focus-visible {
  outline: 2px solid var(--accent-25);
  outline-offset: 2px;
}

.background-sound-card__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.background-sound-card__image,
.background-sound-library-card__image {
  aspect-ratio: 16 / 9;
  background: var(--surface-alt);
  overflow: hidden;
}

.background-sound-card__image img,
.background-sound-library-card__image img,
.background-sound-upload-preview__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.background-sound-card__body,
.background-sound-library-card__body {
  padding: 16px;
}

.background-sound-card__type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.background-sound-card__title,
.background-sound-library-card__title {
  font-weight: 700;
  font-size: 16px;
}

.background-sound-library-card__meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  word-break: break-word;
}

.background-sound-card__actions,
.background-sound-library-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.background-sound-card__select-button {
  min-width: 118px;
  padding: 10px 14px;
  box-shadow: 0 12px 22px var(--accent-20);
}

.background-sound-card.is-selected .background-sound-card__select-button {
  box-shadow: 0 14px 26px var(--accent-30);
}

.background-sound-upload-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  gap: 18px;
  margin-bottom: 20px;
}

.background-sound-upload-preview__image,
.background-sound-upload-preview__controls {
  background: var(--surface-alt);
  border-radius: 18px;
  border: 1px solid rgba(30, 31, 36, 0.08);
}

.background-sound-upload-preview__image {
  min-height: 240px;
  overflow: hidden;
}

.background-sound-upload-preview__controls {
  padding: 18px;
}

.background-sound-upload-preview__controls h2 {
  margin: 0;
}

.background-sound-upload-preview__controls .field {
  margin-top: 14px;
}

.patient-search-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}

.patient-search-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(30, 31, 36, 0.1);
  background: #ffffff;
  cursor: pointer;
  font-size: 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 2;
}

.patient-search-item:hover,
.patient-search-item.is-selected {
  border-color: var(--accent);
  box-shadow: 0 8px 16px var(--accent-12);
}

.patient-search-item .patient-name {
  font-weight: 600;
}

.patient-search-item .patient-meta {
  color: var(--muted);
  font-size: 12px;
}

.patient-search-empty {
  padding: 12px;
  background: var(--surface-alt);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.calendar-dayview {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
}

.timeline-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(var(--hour-count) * 80px);
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.timeline-canvas {
  position: relative;
  height: calc(var(--hour-count) * 80px);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(30, 31, 36, 0.06) 1px, transparent 1px) 0 0 / 100% 80px,
    #ffffff;
  border: 1px solid rgba(30, 31, 36, 0.08);
  padding: 8px;
  overflow: hidden;
}

.timeline-event {
  position: absolute;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 10px 18px var(--accent-25);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-event .event-time {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
}

@media (max-width: 980px) {
  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .background-sound-upload-preview {
    grid-template-columns: 1fr;
  }

  .info-editor__layout {
    grid-template-columns: 1fr;
  }
}

.empty-state {
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(30, 31, 36, 0.04);
  color: var(--muted);
  border: 1px dashed rgba(30, 31, 36, 0.2);
}

.info-hub-link {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(30, 31, 36, 0.12);
  color: var(--muted);
  background: rgba(30, 31, 36, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.info-hub-link:hover {
  color: var(--ink);
  border-color: rgba(30, 31, 36, 0.22);
  background: rgba(30, 31, 36, 0.07);
}

.info-hub-link.is-active {
  color: #ffffff;
  background: var(--accent);
  border-color: transparent;
  box-shadow: 0 10px 20px var(--accent-20);
}

.info-hub-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.info-hub-link__dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #de4343;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.92);
}

.info-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.info-status-chip.is-draft {
  color: #8a6200;
  background: rgba(240, 179, 95, 0.18);
}

.info-status-chip.is-published {
  color: var(--success);
  background: rgba(47, 159, 95, 0.14);
}

.info-history-card,
.info-detail-shell,
.info-admin-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(30, 31, 36, 0.08);
  box-shadow: var(--shadow);
}

.info-history-card {
  padding: 24px;
}

.info-history-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.info-history-card__head h2,
.info-admin-card h2 {
  margin: 0 0 4px;
}

.info-history-card__head p,
.info-admin-card p {
  margin: 0;
  color: var(--muted);
}

.info-history-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-history-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  background: #fcfbf8;
  border: 1px solid rgba(30, 31, 36, 0.08);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.info-history-item:hover {
  transform: translateY(-1px);
  border-color: var(--accent-20);
  box-shadow: 0 16px 28px rgba(17, 22, 34, 0.08);
}

.info-history-item.is-unread {
  border-color: var(--accent-25);
  background: linear-gradient(180deg, rgba(42, 157, 143, 0.08), rgba(255, 255, 255, 0));
}

.info-history-item__main {
  flex: 1;
}

.info-history-item__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.info-history-item__title-row h3 {
  margin: 0;
  font-size: 23px;
}

.info-history-item__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #de4343;
  box-shadow: 0 0 0 4px rgba(222, 67, 67, 0.12);
  flex: 0 0 auto;
}

.info-history-item__meta {
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.info-history-item__state {
  color: var(--ink);
}

.info-history-item.is-read .info-history-item__state {
  color: var(--muted);
}

.info-detail-shell {
  padding: 28px;
}

.info-article {
  max-width: 860px;
}

.info-article__head {
  margin-bottom: 28px;
}

.info-article__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.info-article__head h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 48px);
}

.info-article__summary {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.info-article__body {
  font-size: 16px;
  line-height: 1.75;
}

.info-article__body h1,
.info-article__body h2,
.info-article__body h3,
.info-article__body h4,
.info-article__body h5,
.info-article__body h6 {
  margin: 34px 0 12px;
}

.info-article__body p,
.info-article__body ul,
.info-article__body ol,
.info-article__body blockquote,
.info-article__body table {
  margin: 0 0 16px;
}

.info-article__body ul,
.info-article__body ol {
  padding-left: 24px;
}

.info-article__body a {
  color: var(--accent-strong);
  font-weight: 600;
}

.info-article__body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 18px 0 22px;
  border-radius: 18px;
  border: 1px solid rgba(30, 31, 36, 0.08);
  box-shadow: var(--shadow);
}

.info-article__body code {
  padding: 2px 6px;
  border-radius: 8px;
  background: var(--surface-alt);
  font-size: 0.92em;
}

.info-article__body blockquote {
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  background: var(--accent-08);
  border-radius: 0 16px 16px 0;
}

.info-article__body table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(30, 31, 36, 0.08);
}

.info-article__body th,
.info-article__body td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(30, 31, 36, 0.08);
}

.info-article__body thead {
  background: var(--surface-alt);
}

.info-admin-list {
  display: grid;
  gap: 18px;
}

.info-admin-card {
  padding: 22px 24px;
}

.info-admin-card__head,
.info-editor__panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.info-admin-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.info-admin-card__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.info-admin-card__actions form {
  margin: 0;
  display: inline-flex;
}

.info-admin-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.info-editor__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  gap: 20px;
  align-items: start;
}

.info-editor__panel {
  max-width: none;
}

.info-editor__panel-head h2 {
  margin: 0 0 4px;
}

.info-editor__panel-head p {
  margin: 0;
  color: var(--muted);
}

.info-editor__fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-editor__panel > .form-actions {
  margin-top: 20px;
}

.field--editor textarea {
  min-height: 560px;
  resize: vertical;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  line-height: 1.65;
}

.info-editor__preview-shell {
  min-height: 100%;
  padding: 4px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 246, 241, 0.92));
}

.info-editor__preview-shell.is-preview-error {
  border: 1px solid rgba(214, 80, 80, 0.24);
}

.info-editor__preview .info-article {
  max-width: none;
}

.info-assets {
  margin-top: 20px;
  max-width: none;
}

.info-practice-statuses {
  margin-top: 20px;
}

.practice-status-cell {
  min-width: 340px;
}

.practice-disclosure {
  width: 100%;
}

.practice-disclosure__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.practice-disclosure__summary::-webkit-details-marker {
  display: none;
}

.practice-disclosure__summary::marker {
  display: none;
  content: "";
}

.practice-disclosure__summary-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 600;
}

.practice-disclosure__summary-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: 0;
}

.practice-disclosure__summary-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}

.practice-disclosure__chevron {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  margin-top: -2px;
  border-right: 2px solid rgba(30, 31, 36, 0.46);
  border-bottom: 2px solid rgba(30, 31, 36, 0.46);
  transform: rotate(-45deg);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.practice-disclosure[open] .practice-disclosure__chevron {
  border-color: var(--accent);
  transform: rotate(45deg);
}

.practice-disclosure__content {
  margin-top: 14px;
  padding: 14px 0 0 22px;
  border-top: 1px solid rgba(30, 31, 36, 0.08);
}

.practice-disclosure__hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.practice-disclosure__empty {
  padding: 12px 14px;
}

.practice-user-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.practice-user-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(30, 31, 36, 0.04);
}

.practice-user-list__identity {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.practice-user-list__name {
  font-weight: 600;
}

.practice-user-list__meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  word-break: break-word;
}

.practice-read-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.practice-read-indicator__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
}

.practice-read-indicator.is-read .practice-read-indicator__icon {
  background: rgba(47, 159, 95, 0.14);
  color: var(--success);
}

.practice-read-indicator.is-unread .practice-read-indicator__icon {
  background: rgba(214, 80, 80, 0.14);
  color: var(--danger);
}

.practice-read-indicator__note {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.practice-read-indicator--summary {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .practice-disclosure__summary,
  .practice-user-list__item {
    align-items: flex-start;
    flex-direction: column;
  }

  .practice-disclosure__summary-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .practice-disclosure__summary-count {
    text-align: left;
  }

  .practice-disclosure__content {
    padding-left: 0;
  }
}

.info-image-upload-form {
  margin-bottom: 22px;
}

.info-image-grid {
  display: grid;
  gap: 18px;
}

.info-image-card {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-radius: 18px;
  background: #fcfbf8;
  border: 1px solid rgba(30, 31, 36, 0.08);
}

.info-image-card__preview {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(30, 31, 36, 0.08);
  background: #ffffff;
}

.info-image-card__content {
  min-width: 0;
}

.info-image-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.info-image-card__head h3 {
  margin: 0;
  font-size: 20px;
}

.info-image-card__head span,
.info-image-card__content p {
  color: var(--muted);
}

.info-image-card__content p {
  margin: 0 0 12px;
}

.info-image-card__content code {
  display: block;
  padding: 12px 14px;
  margin-bottom: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 12px;
  background: var(--surface-alt);
  border: 1px solid rgba(30, 31, 36, 0.08);
}

.info-image-card__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.info-image-card__actions form {
  margin: 0;
}

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
    gap: 14px;
  }

  .info-launch-panel {
    padding: 22px;
  }

  .info-launch-panel__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-launch-panel__head h2 {
    font-size: 26px;
  }

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

  .topbar-menu {
    width: 100%;
    order: 3;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-top: 8px;
  }

  .topbar.is-open .topbar-menu {
    display: flex;
  }

  .nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    border-radius: 18px;
    margin: 0;
    padding: 10px;
  }

  .nav a {
    width: 100%;
    text-align: left;
  }

  .nav.nav-has-bubble a.is-active {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 8px 16px var(--accent-25);
  }

  .nav-bubble {
    display: none;
  }

  .topbar-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .board {
    grid-template-columns: repeat(3, minmax(200px, 1fr));
  }

  .monitor-text-grid {
    grid-template-columns: 1fr;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .analytics-empty {
    flex-direction: column;
    align-items: flex-start;
  }

  .analytics-note {
    flex-direction: column;
    align-items: flex-start;
  }

}

@media (max-width: 720px) {
  .topbar-right {
    width: 100%;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .practice-chip {
    width: 100%;
  }

  .topbar-right form {
    width: auto;
  }

  .info-hub-link {
    padding: 0;
  }

  .info-hub-link__dot {
    top: -4px;
    right: -4px;
  }

  .page {
    padding: 20px 18px 28px;
  }

  .media-card,
  .room-card,
  .preset-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .board {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }

  .info-history-card,
  .info-detail-shell,
  .info-admin-card {
    padding: 18px;
  }

  .info-history-item,
  .info-admin-card__head,
  .info-admin-card__footer,
  .info-editor__panel-head,
  .info-image-card,
  .info-image-card__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-history-item__meta {
    width: 100%;
    align-items: flex-start;
  }

  .info-image-card {
    grid-template-columns: 1fr;
  }

  .info-image-card__preview {
    height: 220px;
  }
}

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