:root {
  color-scheme: dark;
  --bg: #07090c;
  --panel: #0d1117;
  --panel-soft: #111820;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f7fb;
  --muted: #93a0ad;
  --faint: #56616d;
  --accent: #78dd39;
  --accent-strong: #8cff45;
  --work: #78dd39;
  --personal: #61b8ff;
  --focus: #f4c44f;
  --radius: 8px;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.42);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: clamp(14px, 0.25vw + 13px, 16px);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 40% -20%, rgba(120, 221, 57, 0.13), transparent 35%),
    linear-gradient(135deg, #06070a 0%, #0b1016 50%, #07090c 100%);
  color: var(--text);
  min-width: 320px;
  overflow-x: hidden;
}

.mobile-appbar,
.drawer-backdrop {
  display: none;
}

.install-action {
  align-items: center;
  background: rgba(120, 221, 57, 0.08);
  border: 1px solid rgba(120, 221, 57, 0.28);
  border-radius: var(--radius);
  color: var(--accent-strong);
  display: flex;
  font: inherit;
  font-size: 13px;
  font-weight: 760;
  gap: 10px;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
}

.install-action[hidden] {
  display: none;
}

.connection-status {
  color: var(--faint);
  font-size: 11px;
  margin-top: -18px;
  text-align: center;
}

.connection-status.is-offline {
  color: var(--focus);
}

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

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr) 336px;
  min-height: 100svh;
}

.sidebar,
.inspector {
  background: rgba(10, 14, 19, 0.86);
  backdrop-filter: blur(22px);
  border-color: var(--line);
  border-style: solid;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
  padding: 24px;
}

.sidebar {
  border-width: 0 1px 0 0;
}

.inspector {
  border-width: 0 0 0 1px;
}

.brand {
  display: block;
  margin: -12px -10px 0;
}

.brand img {
  display: block;
  height: auto;
  max-width: 100%;
  width: 220px;
}

.brand-credit {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.08em;
  margin-top: -22px;
  text-transform: uppercase;
}

.primary-action,
.ghost-button,
.danger-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  display: inline-flex;
  gap: 10px;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.primary-action {
  background: var(--accent);
  color: #071006;
  font-weight: 760;
  box-shadow: 0 12px 32px rgba(120, 221, 57, 0.22);
}

.download-action {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  display: flex;
  gap: 12px;
  min-height: 62px;
  padding: 11px 12px;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.download-action:hover {
  background: rgba(120, 221, 57, 0.1);
  border-color: rgba(120, 221, 57, 0.34);
  transform: translateY(-1px);
}

.download-action > span:first-child {
  align-items: center;
  background: rgba(120, 221, 57, 0.14);
  border: 1px solid rgba(120, 221, 57, 0.28);
  border-radius: var(--radius);
  color: var(--accent-strong);
  display: inline-flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
}

.download-action svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.download-action strong,
.download-action small {
  display: block;
}

.download-action strong {
  font-size: 13px;
  line-height: 1.25;
}

.download-action small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.primary-action:hover,
.ghost-button:hover,
.danger-button:hover,
.icon-button:hover,
.view-button:hover {
  transform: translateY(-1px);
}

.primary-action.compact {
  min-height: 40px;
}

.button-icon {
  font-size: 24px;
  line-height: 1;
  margin-top: -2px;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line);
  color: var(--text);
}

.danger-button {
  background: rgba(255, 83, 83, 0.09);
  border-color: rgba(255, 83, 83, 0.2);
  color: #ff8f8f;
}

.icon-button {
  align-items: center;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
  width: 40px;
}

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

.sidebar-section,
.inspector-section {
  display: grid;
  gap: 14px;
}

.section-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 760;
  line-height: 1.08;
}

h2 {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
}

.eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

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

.mini-day,
.mini-weekday {
  align-items: center;
  aspect-ratio: 1;
  border-radius: 6px;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  justify-content: center;
}

.mini-weekday {
  aspect-ratio: auto;
  color: var(--faint);
  font-size: 10px;
  font-weight: 760;
  height: 18px;
  text-transform: uppercase;
}

.mini-day {
  border: 1px solid transparent;
}

.mini-day.has-events {
  color: var(--text);
}

.mini-day.is-selected {
  background: rgba(120, 221, 57, 0.15);
  border-color: rgba(120, 221, 57, 0.42);
  color: var(--accent-strong);
}

.mini-day.is-today {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.calendar-filters {
  display: grid;
  gap: 10px;
}

.filter-toggle {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 10px;
  min-height: 32px;
}

.filter-toggle input {
  accent-color: var(--accent);
  height: 17px;
  width: 17px;
}

.filter-dot,
.event-dot {
  background: var(--dot-color);
  border-radius: 999px;
  box-shadow: 0 0 18px color-mix(in srgb, var(--dot-color) 45%, transparent);
  flex: 0 0 auto;
  height: 8px;
  width: 8px;
}

.workspace {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  padding: 28px;
}

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

.toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.segmented-control {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  padding: 3px;
}

.view-button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  min-height: 34px;
  min-width: 70px;
  padding: 0 12px;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.view-button.is-active {
  background: rgba(120, 221, 57, 0.16);
  color: var(--accent-strong);
}

.calendar-surface {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.calendar-header {
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-header.is-hidden {
  display: none;
}

.weekday-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  padding: 13px 14px;
  text-transform: uppercase;
}

.calendar-grid {
  display: grid;
  min-height: 0;
}

.calendar-grid.month {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(108px, 1fr));
}

.calendar-grid.week {
  grid-template-columns: repeat(7, minmax(118px, 1fr));
}

.calendar-grid.day {
  grid-template-columns: minmax(0, 1fr);
}

.calendar-grid.year,
.calendar-grid.fiveyear,
.calendar-grid.customyears {
  align-content: start;
  gap: 14px;
  overflow: auto;
  padding: 14px;
}

.calendar-grid.year {
  grid-template-columns: repeat(3, minmax(210px, 1fr));
}

.calendar-grid.fiveyear,
.calendar-grid.customyears {
  grid-template-columns: repeat(auto-fit, minmax(244px, 1fr));
}

.calendar-grid.hour {
  align-content: start;
  background: rgba(8, 11, 15, 0.72);
  overflow: auto;
}

.hour-row {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 82px minmax(0, 1fr);
  min-height: 58px;
}

.hour-label {
  background: rgba(255, 255, 255, 0.035);
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  padding: 0 12px;
  text-align: right;
}

.hour-label:hover {
  color: var(--accent-strong);
}

.hour-events {
  align-content: center;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  min-width: 0;
  padding: 8px 12px 8px 0;
}

.hour-empty {
  color: rgba(147, 160, 173, 0.46);
  font-size: 12px;
}

.year-panel,
.year-month {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.036), transparent 36%),
    rgba(8, 11, 15, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.year-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.year-panel-header {
  align-items: baseline;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.year-panel-header h2 {
  color: var(--text);
  font-size: 19px;
}

.year-panel-header span {
  color: var(--muted);
  font-size: 11px;
}

.year-panel-months {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.year-month {
  display: grid;
  gap: 8px;
  padding: 11px;
}

.year-month.is-compact {
  gap: 6px;
  padding: 8px;
}

.year-month-title {
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 780;
  min-height: 24px;
  padding: 0;
  text-align: left;
}

.year-month-title:hover {
  color: var(--accent-strong);
}

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

.month-weekdays {
  color: var(--faint);
  font-size: 9px;
  font-weight: 760;
  text-align: center;
}

.month-day {
  align-items: center;
  aspect-ratio: 1;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--muted);
  display: grid;
  font-size: 11px;
  justify-items: center;
  min-width: 0;
  padding: 1px;
  position: relative;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.month-day:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  transform: translateY(-1px);
}

.month-day.is-muted {
  color: rgba(147, 160, 173, 0.36);
}

.month-day.is-today {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text);
}

.month-day.is-selected {
  background: rgba(120, 221, 57, 0.16);
  border-color: rgba(120, 221, 57, 0.48);
  color: var(--accent-strong);
}

.month-day i {
  bottom: 2px;
  display: flex;
  gap: 2px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.month-day b {
  background: var(--dot-color);
  border-radius: 999px;
  height: 3px;
  width: 3px;
}

.year-month.is-compact .month-weekdays {
  font-size: 8px;
}

.year-month.is-compact .month-day {
  border-radius: 4px;
  font-size: 9px;
}

.calendar-grid.year {
  gap: 8px;
  grid-template-columns: repeat(4, minmax(148px, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  padding: 8px;
}

.calendar-grid.year .year-month {
  gap: 4px;
  min-height: 0;
  padding: 7px;
}

.calendar-grid.year .year-month-title {
  font-size: 11px;
  min-height: 18px;
}

.calendar-grid.year .month-weekdays {
  font-size: 8px;
}

.calendar-grid.year .month-day {
  border-radius: 4px;
  font-size: 9px;
}

.day-cell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 34%),
    rgba(8, 11, 15, 0.7);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  cursor: pointer;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  padding: 10px;
  position: relative;
  transition:
    background 170ms ease,
    box-shadow 170ms ease;
}

.day-cell:nth-child(7n) {
  border-right: 0;
}

.day-cell:hover,
.day-cell.is-selected {
  background:
    linear-gradient(180deg, rgba(120, 221, 57, 0.09), transparent 40%),
    rgba(13, 18, 24, 0.95);
}

.day-cell:focus-visible,
.event-chip:focus-visible,
.agenda-item:focus-visible,
.timeline-item:focus-visible,
.month-day:focus-visible,
.year-month-title:focus-visible,
.hour-label:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(120, 221, 57, 0.76);
  outline-offset: -2px;
}

.day-cell.is-selected {
  box-shadow: inset 0 0 0 1px rgba(120, 221, 57, 0.38);
}

.day-cell.is-muted {
  color: var(--faint);
}

.day-cell.is-today .day-number {
  background: var(--accent);
  color: #071006;
}

.day-topline {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.day-number {
  align-items: center;
  border-radius: 999px;
  color: inherit;
  display: inline-flex;
  font-size: 12px;
  font-weight: 780;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.day-name {
  color: var(--muted);
  font-size: 11px;
  font-weight: 740;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.event-stack {
  align-content: start;
  display: grid;
  gap: 6px;
  margin-top: 8px;
  min-width: 0;
  overflow: hidden;
}

.event-chip {
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left-color: var(--event-color);
  border-left-width: 3px;
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  font-size: 12px;
  gap: 2px;
  min-height: 36px;
  min-width: 0;
  padding: 6px 8px;
  text-align: left;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.event-chip:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.event-chip strong,
.event-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.more-events {
  color: var(--muted);
  font-size: 11px;
  padding-left: 4px;
}

.focus-panel {
  background:
    radial-gradient(circle at 100% 0, rgba(120, 221, 57, 0.15), transparent 42%),
    rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.focus-panel h2 {
  color: var(--text);
  font-size: 24px;
  line-height: 1.16;
  margin-bottom: 8px;
}

.focus-panel p:last-child {
  color: var(--muted);
  font-size: 13px;
}

.agenda-list,
.timeline-list {
  display: grid;
  gap: 10px;
}

.agenda-item,
.timeline-item {
  align-items: start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  display: grid;
  gap: 6px;
  padding: 12px;
  text-align: left;
}

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

.agenda-item strong,
.timeline-item strong {
  display: block;
  font-size: 13px;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-item span,
.timeline-item span,
.empty-state {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 16px;
}

.event-dialog {
  background: transparent;
  border: 0;
  color: var(--text);
  margin: auto;
  max-width: min(520px, calc(100vw - 28px));
  padding: 0;
  width: 520px;
}

.event-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.event-form {
  background: #0d1218;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  padding: 22px;
}

.dialog-header,
.dialog-actions {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.dialog-header h2 {
  color: var(--text);
  font-size: 24px;
}

.dialog-actions > div {
  display: flex;
  gap: 10px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 720;
  gap: 8px;
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  outline: 0;
  padding: 11px 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(120, 221, 57, 0.58);
  box-shadow: 0 0 0 3px rgba(120, 221, 57, 0.13);
}

select option {
  background: #0d1218;
}

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

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 248px minmax(0, 1fr);
  }

  .inspector {
    border-width: 1px 0 0;
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }

  body.has-open-drawer {
    overflow: hidden;
  }

  .mobile-appbar {
    align-items: center;
    background: rgba(7, 9, 12, 0.92);
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    height: calc(60px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(20px);
  }

  .mobile-brand {
    align-items: center;
    color: var(--text);
    display: flex;
    font-size: 16px;
    font-weight: 780;
    gap: 8px;
    justify-self: center;
    text-decoration: none;
  }

  .mobile-brand img {
    border-radius: 8px;
    height: 28px;
    object-fit: cover;
    width: 28px;
  }

  .drawer-backdrop {
    background: rgba(0, 0, 0, 0.58);
    border: 0;
    display: block;
    inset: 0;
    padding: 0;
    position: fixed;
    z-index: 35;
  }

  .drawer-backdrop[hidden] {
    display: none;
  }

  .app-shell {
    display: block;
    min-height: calc(100svh - 60px - env(safe-area-inset-top));
  }

  .sidebar,
  .inspector {
    bottom: 0;
    max-width: min(88vw, 360px);
    overflow-y: auto;
    padding: calc(20px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom));
    position: fixed;
    top: 0;
    transition: transform 220ms ease;
    width: 100%;
    z-index: 40;
    animation: none;
  }

  .sidebar {
    left: 0;
    pointer-events: none;
    transform: translateX(-102%);
    visibility: hidden;
  }

  .inspector {
    border-width: 0 0 0 1px;
    pointer-events: none;
    right: 0;
    transform: translateX(102%);
    visibility: hidden;
  }

  .sidebar.is-open,
  .inspector.is-open {
    pointer-events: auto;
    transform: translateX(0);
    visibility: visible;
  }

  .workspace {
    animation: none;
    min-height: calc(100svh - 60px - env(safe-area-inset-top));
    padding: clamp(14px, 4vw, 20px);
  }

  .brand {
    max-width: 210px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 14px;
  }

  .topbar h1 {
    font-size: clamp(1.65rem, 7vw, 2.25rem);
  }

  .toolbar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    justify-content: stretch;
  }

  .toolbar > .ghost-button {
    width: 100%;
  }

  .segmented-control {
    grid-column: 1 / -1;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .segmented-control::-webkit-scrollbar {
    display: none;
  }

  .view-button {
    flex: 0 0 auto;
    min-height: 40px;
    min-width: auto;
    scroll-snap-align: start;
  }

  .calendar-surface {
    overflow: hidden;
  }

  .calendar-header,
  .calendar-grid.month {
    min-width: 0;
  }

  .weekday-label {
    font-size: 9px;
    overflow: hidden;
    padding: 10px 2px;
    text-align: center;
  }

  .calendar-grid.month {
    grid-template-rows: repeat(6, minmax(clamp(58px, 16vw, 82px), 1fr));
  }

  .calendar-grid.week {
    grid-template-columns: repeat(7, minmax(112px, 1fr));
    min-width: 784px;
  }

  .calendar-surface:has(.calendar-grid.week) {
    overflow-x: auto;
  }

  .day-cell {
    padding: 5px 3px;
  }

  .day-number {
    font-size: 11px;
    height: 26px;
    width: 26px;
  }

  .calendar-grid.month .day-name,
  .calendar-grid.month .event-chip span,
  .calendar-grid.month .event-chip strong {
    display: none;
  }

  .calendar-grid.month .day-topline {
    justify-content: center;
  }

  .calendar-grid.month .event-stack {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: center;
    margin-top: 3px;
  }

  .calendar-grid.month .event-chip {
    background: var(--event-color);
    border: 0;
    border-radius: 999px;
    display: block;
    min-height: 5px;
    padding: 0;
    width: 5px;
  }

  .calendar-grid.month .more-events {
    font-size: 9px;
    padding: 0;
  }

  .calendar-grid.day {
    min-width: min(100%, 420px);
  }

  .calendar-grid.fiveyear,
  .calendar-grid.customyears {
    grid-template-columns: 1fr;
  }

  .calendar-grid.year {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    overflow: auto;
  }

  .hour-row {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .dialog-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .dialog-actions > div,
  .dialog-actions button {
    width: 100%;
  }

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

  .event-dialog {
    margin: auto auto 0;
    max-height: calc(100dvh - env(safe-area-inset-top));
    max-width: 100%;
    width: 100%;
  }

  .event-form {
    border-radius: 14px 14px 0 0;
    max-height: calc(100dvh - env(safe-area-inset-top));
    overflow-y: auto;
    padding: 20px max(18px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  }
}

@media (max-width: 420px) {
  .eyebrow {
    font-size: 9px;
  }

  .workspace {
    padding-inline: 10px;
  }

  .calendar-grid.month {
    grid-template-rows: repeat(6, minmax(54px, 1fr));
  }
}

@media (min-width: 781px) and (max-width: 1180px) {
  .inspector {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1fr) minmax(280px, 1fr);
  }
}

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

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
