:root {
  color-scheme: dark;
  --bg: #090b13;
  --surface: rgba(24, 27, 43, 0.72);
  --surface-2: rgba(35, 38, 58, 0.78);
  --ink: #f4eff8;
  --muted: #b3b1c4;
  --line: rgba(151, 163, 207, 0.18);
  --strong-line: rgba(183, 151, 255, 0.5);
  --accent: #8556d8;
  --accent-strong: #a572f2;
  --gold: #f2d36a;
  --danger: #d98989;
  --now-color: #ad1fff;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.5);
  --hour-height: 28px;
  --day-header-height: 74px;
  --time-axis-width: 64px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 17, 0.96), rgba(38, 28, 48, 0.88) 52%, rgba(7, 8, 14, 0.98)),
    linear-gradient(135deg, #211a2d 0%, #101827 38%, #2a2030 72%, #090b13 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 1px solid rgba(169, 139, 255, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(46, 48, 70, 0.9), rgba(20, 23, 38, 0.9));
  color: var(--ink);
  cursor: pointer;
  min-height: 38px;
  padding: 0 14px;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

button:hover {
  border-color: var(--strong-line);
  background: linear-gradient(180deg, rgba(63, 56, 92, 0.95), rgba(28, 29, 48, 0.95));
}

button:disabled,
button:disabled:hover {
  border-color: rgba(151, 163, 207, 0.14);
  background: rgba(18, 20, 32, 0.55);
  color: rgba(244, 239, 248, 0.42);
  cursor: not-allowed;
  transform: none;
}

button:active {
  transform: translateY(1px);
}

a.button-link {
  align-items: center;
  border: 1px solid rgba(169, 139, 255, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(133, 86, 216, 0.92), rgba(87, 54, 143, 0.92));
  border-color: rgba(196, 152, 255, 0.62);
  color: white;
  display: inline-flex;
  min-height: 38px;
  padding: 0 14px;
  text-decoration: none;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a.button-link:focus-visible {
  outline: 3px solid rgba(165, 114, 242, 0.32);
  outline-offset: 2px;
}

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

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

.login-panel {
  background:
    linear-gradient(180deg, rgba(35, 37, 57, 0.88), rgba(15, 18, 31, 0.88));
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(126, 149, 207, 0.28);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  max-width: 520px;
  padding: 22px;
  width: min(100%, 520px);
}

.login-panel h1 {
  font-size: clamp(2rem, 7vw, 3.8rem);
  line-height: 0.95;
  margin: 0;
}

.login-form {
  display: grid;
  gap: 8px;
}

.login-form label {
  color: #c6bfd8;
  font-size: 0.78rem;
  font-weight: 720;
  text-transform: uppercase;
}

.login-form .inline-form input {
  flex: 1 1 auto;
  width: auto;
}

.login-actions {
  justify-content: flex-start;
}

.timeline-header h2,
.panel-heading h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

.timezone-label {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
}

.toolbar {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: min(100%, 440px);
}

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

.field-group label {
  color: #c6bfd8;
  font-size: 0.78rem;
  font-weight: 720;
  text-transform: uppercase;
}

.inline-form {
  display: flex;
  gap: 8px;
}

.inline-form input {
  width: min(42vw, 210px);
}

.pair-form {
  display: flex;
  gap: 8px;
}

.pair-form select {
  width: 150px;
}

.auth-controls .inline-form {
  align-items: center;
}

input,
select {
  border: 1px solid rgba(151, 163, 207, 0.32);
  border-radius: 8px;
  background: rgba(10, 13, 25, 0.72);
  color: var(--ink);
  min-height: 38px;
  padding: 0 12px;
}

select {
  cursor: pointer;
}

select:disabled {
  color: rgba(244, 239, 248, 0.42);
  cursor: not-allowed;
}

.toggle-row {
  align-items: center;
  border: 1px solid rgba(242, 211, 106, 0.38);
  border-radius: 8px;
  color: var(--gold);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 760;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  text-transform: none;
}

.toggle-row input {
  accent-color: var(--gold);
  min-height: 0;
  padding: 0;
}

.recurring-controls .toggle-row {
  border-color: rgba(127, 183, 255, 0.36);
  color: #cfe3ff;
}

.recurring-controls .toggle-row input {
  accent-color: #7fb7ff;
}

.toolbar-actions {
  display: flex;
  gap: 8px;
}

.session-summary {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
  margin: 0;
  min-height: 1em;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbar-actions button:first-child,
.inline-form button {
  background: linear-gradient(180deg, rgba(133, 86, 216, 0.92), rgba(87, 54, 143, 0.92));
  border-color: rgba(196, 152, 255, 0.62);
  color: white;
}

.toolbar-actions button:first-child:hover,
.inline-form button:hover {
  background: linear-gradient(180deg, rgba(165, 114, 242, 0.96), rgba(101, 63, 166, 0.96));
  border-color: rgba(225, 192, 255, 0.76);
}

.toolbar-actions button:disabled,
.toolbar-actions button:disabled:hover,
.inline-form button:disabled,
.inline-form button:disabled:hover {
  border-color: rgba(151, 163, 207, 0.14);
  background: rgba(18, 20, 32, 0.55);
  color: rgba(244, 239, 248, 0.42);
}

.status-text {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
  margin: 3px 0 0;
  min-height: 1em;
}

.modal-backdrop {
  align-items: center;
  background: rgba(4, 6, 14, 0.68);
  backdrop-filter: blur(10px);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 20;
}

.schedule-dialog,
.entry-action-dialog {
  background:
    linear-gradient(180deg, rgba(35, 37, 57, 0.96), rgba(14, 17, 30, 0.96));
  border: 1px solid rgba(169, 139, 255, 0.34);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  max-height: min(720px, calc(100vh - 36px));
  max-width: 640px;
  overflow: auto;
  padding: 18px;
  width: min(100%, 640px);
}

.entry-action-dialog {
  max-width: 420px;
  width: min(100%, 420px);
}

.modal-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.modal-header h2 {
  font-size: 1.1rem;
  line-height: 1;
  margin: 0;
}

.icon-button {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  font-size: 1rem;
  height: 34px;
  justify-content: center;
  min-height: 34px;
  padding: 0;
  width: 34px;
}

.schedule-time {
  background: rgba(9, 12, 24, 0.72);
  border: 1px solid rgba(151, 163, 207, 0.22);
  border-radius: 8px;
  color: #eadfff;
  font-size: 0.94rem;
  font-weight: 720;
  line-height: 1.35;
  margin: 0;
  padding: 12px 14px;
}

.schedule-fields {
  display: grid;
  gap: 14px;
}

.language-toggle-group {
  border: 0;
  display: grid;
  gap: 8px;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.language-toggle-group legend {
  color: #c6bfd8;
  font-size: 0.78rem;
  font-weight: 720;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.language-toggle-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.language-toggle {
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  padding: 0 10px;
  text-align: left;
}

.language-toggle.is-selected {
  background: linear-gradient(180deg, rgba(133, 86, 216, 0.92), rgba(87, 54, 143, 0.92));
  border-color: rgba(225, 192, 255, 0.7);
  color: white;
}

.language-toggle:disabled {
  opacity: 0.36;
}

.repeat-row {
  justify-self: start;
}

.schedule-error {
  color: #ffb3b3;
  margin: 0;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.modal-actions button:last-child {
  background: linear-gradient(180deg, rgba(133, 86, 216, 0.92), rgba(87, 54, 143, 0.92));
  border-color: rgba(196, 152, 255, 0.62);
  color: white;
}

.entry-action-dialog .modal-actions button:last-child {
  background: linear-gradient(180deg, rgba(150, 64, 72, 0.96), rgba(91, 37, 48, 0.96));
  border-color: rgba(255, 159, 169, 0.58);
}

.workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 0 auto;
  max-width: 1380px;
  width: 100%;
}

.people-panel,
.timeline-panel {
  background:
    linear-gradient(180deg, rgba(35, 37, 57, 0.72), rgba(15, 18, 31, 0.72));
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(126, 149, 207, 0.28);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.people-panel {
  align-items: start;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px;
}

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

.panel-heading h2,
.timeline-header h2 {
  font-size: 1.05rem;
}

.meta-pill {
  align-items: center;
  background: rgba(242, 211, 106, 0.13);
  border: 1px solid rgba(242, 211, 106, 0.45);
  border-radius: 999px;
  color: var(--gold);
  display: inline-flex;
  font-size: 0.77rem;
  font-weight: 760;
  min-height: 28px;
  padding: 0 10px;
  white-space: nowrap;
}

.people-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.person-button {
  align-items: center;
  background: transparent;
  border-color: transparent;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  justify-items: start;
  min-height: 42px;
  padding: 0 8px;
  text-align: left;
  width: 190px;
}

.person-button:hover,
.person-button.is-active {
  background: rgba(127, 183, 255, 0.08);
  border-color: rgba(127, 183, 255, 0.28);
}

.person-button:disabled {
  color: var(--ink);
  cursor: default;
  opacity: 0.78;
}

.person-button:disabled:hover {
  background: transparent;
  border-color: transparent;
}

.person-button.is-active {
  box-shadow:
    inset 0 0 0 1px rgba(169, 139, 255, 0.34),
    0 0 20px rgba(127, 183, 255, 0.08);
}

.person-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.person-name,
.person-meta {
  font-weight: 690;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-meta {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 660;
}

.person-count {
  color: var(--muted);
  font-size: 0.78rem;
}

.people-empty {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.82rem;
  min-height: 42px;
}

.timeline-panel {
  min-width: 0;
  overflow: hidden;
}

.timeline-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  min-height: 48px;
  padding: 10px 18px;
}

.schedule-title {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  text-align: center;
  white-space: nowrap;
}

.selection-output {
  color: var(--muted);
  font-size: 0.86rem;
  grid-column: 1 / -1;
  min-height: 1.2em;
  text-align: right;
}

.selection-output:empty {
  display: none;
}

.timeline-scroller {
  background: rgba(8, 11, 22, 0.32);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
}

.timeline-canvas {
  cursor: crosshair;
  min-width: 1080px;
  position: relative;
  user-select: none;
}

.timeline-canvas.is-readonly {
  cursor: default;
}

.hour-layer,
.day-layer,
.blocks-layer {
  inset: 0;
  position: absolute;
}

.blocks-layer {
  inset: 0;
}

.hour-row {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: var(--time-axis-width) 1fr;
  height: var(--hour-height);
  left: 0;
  position: absolute;
  right: 0;
}

.hour-label {
  align-items: center;
  background: rgba(9, 12, 24, 0.86);
  border-right: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 0.68rem;
  font-weight: 720;
  justify-content: center;
  left: 0;
  line-height: 1;
  position: sticky;
  z-index: 6;
}

.hour-label span {
  background: rgba(9, 12, 24, 0.76);
  border: 1px solid rgba(151, 163, 207, 0.22);
  border-radius: 999px;
  padding: 3px 6px;
}

.hour-fill {
  position: relative;
  background:
    linear-gradient(to right, rgba(151, 163, 207, 0.18) 1px, transparent 1px)
      0 0 / calc((100%) / 7) 100%,
    linear-gradient(to bottom, rgba(151, 163, 207, 0.16), transparent 38%);
}

.day-column {
  --day-accent: #7fb7ff;
  --day-bg: rgba(127, 183, 255, 0.1);
  --day-border: rgba(127, 183, 255, 0.28);
  --day-date-color: #a9cffb;
  --day-name-color: var(--ink);
  background:
    linear-gradient(180deg, var(--day-bg), rgba(10, 12, 24, 0.03) 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent var(--day-header-height));
  border-left: 1px solid var(--day-border);
  color: var(--ink);
  pointer-events: none;
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
}

.day-column::after {
  background: var(--day-accent);
  bottom: 0;
  content: "";
  left: 0;
  opacity: 0.8;
  position: absolute;
  top: var(--day-header-height);
  width: 4px;
}

.day-column.is-now {
  background:
    linear-gradient(180deg, rgba(242, 211, 106, 0.22), rgba(42, 32, 26, 0.08) 48%),
    linear-gradient(180deg, rgba(255, 236, 156, 0.08), transparent var(--day-header-height));
}

.day-column.is-now::after {
  box-shadow: 0 0 18px rgba(242, 211, 106, 0.34);
  opacity: 1;
}

.day-column.is-wrapped {
  background:
    linear-gradient(180deg, rgba(169, 139, 255, 0.16), rgba(25, 18, 42, 0.07) 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent var(--day-header-height));
}

.day-column.is-upcoming {
  background:
    linear-gradient(180deg, rgba(127, 183, 255, 0.13), rgba(16, 28, 44, 0.06) 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent var(--day-header-height));
}

.day-column-header {
  align-content: center;
  display: grid;
  gap: 4px;
  height: var(--day-header-height);
  padding: 0 12px;
  position: absolute;
  text-align: center;
  top: 0;
  width: 100%;
}

.day-name {
  color: var(--day-name-color);
  font-size: clamp(1.6rem, 2.8vw, 2.7rem);
  font-weight: 520;
  letter-spacing: 0;
  line-height: 0.9;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.day-date {
  color: var(--day-date-color);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.now-line {
  align-items: center;
  display: flex;
  pointer-events: none;
  position: absolute;
  z-index: 4;
}

.now-line::before {
  background: var(--now-color);
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(173, 31, 255, 0.25),
    0 0 16px rgba(173, 31, 255, 0.52);
  content: "";
  height: 4px;
  width: 100%;
}

.now-line span {
  display: none;
}

.availability-block,
.preview-block {
  border-radius: 8px;
  overflow: hidden;
  position: absolute;
  z-index: 3;
}

.slot-rail {
  display: flex;
  gap: 6px;
  overflow-x: hidden;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  position: absolute;
  scrollbar-width: none;
  touch-action: pan-x;
  z-index: 4;
}

.slot-rail-track {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  min-width: max-content;
}

.slot-rail.is-scrollable .slot-rail-track {
  animation: slot-pan 7s ease-in-out infinite alternate;
}

.slot-rail.is-scrollable:hover .slot-rail-track {
  animation-play-state: paused;
}

.slot-rail .availability-block {
  flex: 0 0 var(--slot-block-width);
  height: 100%;
  min-height: 0;
  position: relative;
  scroll-snap-align: start;
}

@keyframes slot-pan {
  0%,
  24% {
    transform: translateX(0);
  }

  76%,
  100% {
    transform: translateX(var(--slot-pan-distance));
  }
}

@media (prefers-reduced-motion: reduce) {
  .slot-rail.is-scrollable .slot-rail-track {
    animation: none;
  }
}

.availability-block {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 44%),
    linear-gradient(180deg, rgba(38, 40, 61, 0.96), rgba(17, 20, 34, 0.96));
  border: 1px solid rgba(169, 139, 255, 0.42);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  color: var(--ink);
  cursor: default;
  display: flex;
  min-height: 24px;
}

.availability-block.is-readonly {
  cursor: default;
}

.availability-block.is-fixed {
  cursor: default;
}

.availability-block.is-readonly .block-body {
  padding-right: 8px;
}

.availability-block.is-recurring {
  border-style: dashed;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.34),
    0 0 18px rgba(127, 183, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.availability-block.is-system {
  background:
    linear-gradient(135deg, rgba(127, 183, 255, 0.18), transparent 46%),
    linear-gradient(180deg, rgba(39, 48, 72, 0.98), rgba(16, 22, 36, 0.98));
  border-color: rgba(127, 183, 255, 0.58);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.34),
    0 0 18px rgba(127, 183, 255, 0.18),
    inset 0 0 0 1px rgba(242, 211, 106, 0.08);
}

.availability-block.is-owned {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(116, 87, 35, 0.98), rgba(45, 35, 22, 0.98));
  border-color: rgba(242, 211, 106, 0.78);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.34),
    0 0 18px rgba(242, 211, 106, 0.22),
    inset 0 0 0 1px rgba(255, 241, 181, 0.1);
  color: #fff4c9;
}

.availability-block.is-actionable {
  cursor: pointer;
}

.availability-block.is-actionable:hover {
  border-color: rgba(255, 231, 143, 0.95);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.34),
    0 0 22px rgba(242, 211, 106, 0.28),
    inset 0 0 0 1px rgba(255, 241, 181, 0.16);
}

.block-body {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  padding: 0 8px;
  width: 100%;
}

.availability-block.is-readonly .block-body {
  padding-right: 8px;
}

.block-emoji {
  flex: 0 0 auto;
  font-size: 0.9rem;
  line-height: 1;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.availability-block .block-emoji {
  font-size: 1rem;
}

.preview-block {
  background: rgba(165, 114, 242, 0.18);
  border: 1px dashed rgba(225, 192, 255, 0.78);
  color: #eadfff;
  display: grid;
  min-height: 24px;
  place-items: center;
  z-index: 5;
}

.preview-block[hidden] {
  display: none;
}

.preview-block::after {
  content: attr(data-label);
  font-size: 0.68rem;
  font-weight: 760;
  padding: 0 8px;
  text-align: center;
}

@media (max-height: 860px) {
  .app-shell {
    align-items: flex-start;
  }
}

@media (max-width: 880px) {
  .app-shell {
    align-items: flex-start;
    padding: 14px;
  }

  .toolbar {
    align-items: stretch;
    justify-content: flex-start;
    min-width: 0;
  }

  .people-panel {
    grid-template-columns: 1fr;
  }

  .people-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

  .person-button {
    width: 100%;
  }

}

@media (max-width: 560px) {
  :root {
    --hour-height: 24px;
    --day-header-height: 54px;
    --time-axis-width: 54px;
  }

  .app-shell {
    min-height: 100svh;
    padding: 8px;
  }

  .toolbar,
  .inline-form,
  .pair-form,
  .toolbar-actions {
    flex-wrap: wrap;
  }

  .inline-form input,
  .pair-form select {
    width: min(100%, 210px);
  }

  .timeline-header {
    align-items: flex-start;
    gap: 4px;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 8px 10px;
  }

  .timezone-label {
    font-size: 0.76rem;
  }

  .schedule-title {
    font-size: 1rem;
    text-align: left;
    white-space: normal;
  }

  .session-summary {
    font-size: 0.68rem;
    text-align: left;
  }

  .selection-output {
    text-align: left;
  }

  .timeline-canvas {
    min-width: 900px;
  }

  .day-column-header {
    padding-left: 8px;
    padding-right: 8px;
  }

  .day-name {
    font-size: 1.42rem;
  }

  .day-date {
    font-size: 0.62rem;
  }

  .hour-label {
    font-size: 0.62rem;
  }

  .hour-label span {
    padding: 2px 5px;
  }
}

@media (max-width: 560px) and (min-height: 800px) {
  :root {
    --hour-height: 28px;
    --day-header-height: 58px;
  }
}

@media (max-width: 560px) and (max-height: 700px) {
  :root {
    --hour-height: 20px;
    --day-header-height: 50px;
  }
}

@media (max-width: 560px) and (max-height: 600px) {
  :root {
    --hour-height: 17px;
    --day-header-height: 46px;
  }
}
