:root {
  color-scheme: light;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: #172825;
  background: #f4f7f6;
  --ink: #172825;
  --muted: #60736e;
  --line: #dfe8e4;
  --accent: #087b69;
  --accent-dark: #056657;
  --accent-soft: #e2f2ed;
  --surface: #fff;
  --sidebar: #fbfcfb;
  --side-width: 239px;
  --hour-gutter: 62px;
  --shadow: 0 1px 2px #193b3510;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2px solid #088575;
  outline-offset: 3px;
}
button:disabled { cursor: default; opacity: .55; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
svg { display: block; width: 19px; height: 19px; flex: none; }
.skip-link, .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { z-index: 40; top: 12px; left: 12px; width: auto; height: auto; background: white; padding: 10px; clip-path: none; }
.app-shell { display: grid; grid-template-columns: var(--side-width) minmax(0, 1fr); min-height: 100vh; }
.main-shell { min-width: 0; }
.sidebar { position: sticky; top: 0; align-self: start; height: 100vh; height: 100dvh; min-height: 0; padding: 24px 17px 15px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--sidebar); z-index: 6; }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 0 28px 7px; align-self: flex-start; padding: 2px 0; background: transparent; border: 0; text-align: left; font-size: 32px; font-weight: 770; letter-spacing: -.09em; line-height: .94; }
.brand-dot { color: var(--accent); }
.brand small { display: block; margin-top: 7px; color: #697b75; font-size: 8px; font-weight: 730; letter-spacing: .105em; line-height: 1.2; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: #0b7c69; display: flex; justify-content: center; align-items: center; gap: 3px; box-shadow: 0 3px 8px #175d5029; }
.brand-mark i { display: block; width: 4px; border-radius: 6px; background: #d7f5e8; transform: rotate(24deg); }
.brand-mark i:nth-child(1) { height: 11px; margin-top: 5px; background: #81d3b5; }
.brand-mark i:nth-child(2) { height: 20px; }
.brand-mark i:nth-child(3) { height: 14px; margin-bottom: 4px; }
.sidebar-content { margin: 0 -4px; padding: 0 4px 7px; overflow-y: auto; scrollbar-width: thin; }
.side-nav { display: grid; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 41px; padding: 8px 11px; border: 0; border-radius: 9px; background: transparent; text-align: left; color: #52665f; font-size: 13px; font-weight: 620; }
.nav-item svg { width: 18px; height: 18px; }
.nav-item:hover { background: #edf3ef; color: #245349; }
.nav-item[aria-current] { background: #e0f1e9; color: #08614f; font-weight: 730; }
.nav-item[aria-current] svg { color: #087b69; }
.side-rule { height: 1px; background: #e5ebe8; margin: 20px 1px; }
.mini-calendar { padding: 0 3px; }
.mini-header { display: flex; align-items: center; justify-content: space-between; padding: 0 1px 0 3px; gap: 4px; margin-bottom: 8px; }
.mini-header h2 { font-weight: 700; font-size: 13px; text-transform: capitalize; white-space: nowrap; }
.mini-arrows { display: flex; gap: 1px; }
.icon-button { height: 34px; width: 34px; padding: 0; display: inline-grid; place-items: center; background: transparent; border: 0; border-radius: 8px; color: #536761; }
.icon-button:hover { background: #edf3ef; color: #0a6e5d; }
.mini-arrows .icon-button { width: 24px; height: 28px; }
.mini-arrows svg { width: 14px; height: 14px; }
.mini-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px 1px; }
.mini-grid > span { display: grid; place-items: center; height: 21px; color: #758882; font-size: 10px; font-weight: 700; }
.mini-day { display: grid; place-items: center; width: 100%; height: 25px; padding: 0; border: 1px solid transparent; border-radius: 7px; background: transparent; font-size: 11px; font-variant-numeric: tabular-nums; font-weight: 620; }
.mini-day:hover { background: var(--accent-soft); }
.mini-day.is-other { color: #81918c; }
.mini-day.is-today { color: #08745f; border-color: #9fd7c6; }
.mini-day.is-selected { color: #fff; background: var(--accent); border-color: var(--accent); }
.category-section h2 { margin: 0 0 8px 9px; color: #667b73; font-size: 10px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.category-toggle { display: flex; align-items: center; gap: 9px; width: 100%; height: 33px; padding: 1px 9px; border: 0; background: transparent; border-radius: 7px; text-align: left; font-size: 12px; font-weight: 620; color: #3f5550; }
.category-toggle:hover { background: #edf3f0; }
.category-toggle[aria-pressed="false"] { color: #6b7d76; }
.category-toggle[aria-pressed="false"] .category-dot { opacity: .42; }
.category-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cat); }
.category-check { display: grid; place-items: center; margin-left: auto; width: 15px; height: 15px; border-radius: 4px; background: #edf2ef; color: #518578; }
.category-check svg { width: 11px; height: 11px; stroke-width: 2.3; }
.category-toggle[aria-pressed="false"] .category-check svg { visibility: hidden; }
.family-section-title { display: flex; align-items: center; justify-content: space-between; min-height: 26px; margin-bottom: 3px; }
.family-section-title h2 { margin-bottom: 0; }
.family-actions { display: flex; gap: 1px; }
.family-actions .icon-button { width: 26px; height: 26px; }
.family-actions svg { width: 15px; height: 15px; }
.family-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.family-toggle .category-dot, .family-toggle .category-check { flex: none; }
.family-signout { display: inline-block; margin: 8px 0 0 10px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 11px; text-decoration: underline; }
.sidebar-footer { margin-top: auto; padding-top: 12px; }
.local-note { display: flex; align-items: center; gap: 7px; color: #6d817a; font-size: 10px; font-weight: 620; margin: 8px 0 0 10px; }
.local-note svg { width: 13px; height: 13px; }
.sidebar-scrim, .mobile-menu { display: none; }

.topbar { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 clamp(21px, 3vw, 42px); border-bottom: 1px solid var(--line); background: #fcfdfc; }
.topbar-context, .topbar-actions { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-context { font-size: 12px; white-space: nowrap; }
.breadcrumb-root { color: #657871; }
.breadcrumb-active { font-weight: 680; }
.breadcrumb-chevron { color: #91a39c; }
.breadcrumb-chevron svg { width: 12px; height: 12px; }
.topbar-rule { height: 23px; width: 1px; background: #e1eae5; }
.search-trigger { display: flex; align-items: center; gap: 8px; min-width: 154px; height: 34px; padding: 0 7px 0 10px; color: #4c635b; background: #f2f6f4; border: 1px solid #e9efec; border-radius: 8px; font-size: 12px; text-align: left; }
.search-trigger:hover { background: #e8f1ed; }
.search-trigger svg { width: 15px; height: 15px; }
kbd { margin-left: auto; padding: 2px 4px; border: 1px solid #dce6e0; border-radius: 4px; color: #5d7269; background: #fcfdfc; font: 10px/1.15 "Segoe UI", sans-serif; white-space: nowrap; }
.workspace { max-width: 1790px; padding: 28px clamp(21px, 3vw, 42px) 38px; margin: 0 auto; }
.workspace:focus { outline: 0; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
.page-header h1 { margin: 0 0 5px; font-size: clamp(32px, 3.2vw, 43px); line-height: 1.08; font-weight: 750; letter-spacing: -.058em; }
.page-header p { color: var(--muted); font-size: 13px; font-weight: 540; }
.page-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding-bottom: 2px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 0 13px; border: 1px solid transparent; border-radius: 9px; white-space: nowrap; font-size: 12px; font-weight: 690; line-height: 1.1; }
.button svg { width: 16px; height: 16px; }
.primary-button { background: var(--accent); color: white; box-shadow: 0 2px 4px #136a5640; }
.primary-button:hover { background: var(--accent-dark); }
.secondary-button { background: white; border-color: #dae5df; color: #334c43; box-shadow: var(--shadow); }
.secondary-button:hover { background: #edf5f0; }
.danger-button { background: #a83843; color: #fff; }
.danger-button:hover { background: #8d2732; }

.week-overview { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(220px, .92fr) minmax(0, 1.65fr); align-items: center; gap: 20px; min-height: 132px; margin-bottom: 22px; padding: 22px clamp(20px, 3vw, 34px); color: #e8fffa; background: #103d38; border: 1px solid #184c44; border-radius: 15px; box-shadow: 0 3px 10px #183e3615; }
.overview-lines { position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 85% 107%, #117463 0, #14514a 30%, #103b37 62%); }
.overview-lines::after { position: absolute; display: block; width: 630px; height: 280px; right: -165px; top: -88px; transform: rotate(-15deg); content: ""; background: repeating-radial-gradient(ellipse at center, transparent 0 13px, #bdeee91c 14px 15px, transparent 16px 21px); mask-image: linear-gradient(90deg, transparent, black 34%, black); }
.overview-eyebrow { display: flex; align-items: center; gap: 8px; color: #b3dacd; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 750; }
.overview-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #77e0bc; box-shadow: 0 0 0 4px #77e0bc21; }
.overview-period h2 { margin-top: 10px; font-size: clamp(23px, 2.55vw, 35px); font-weight: 690; line-height: 1.08; letter-spacing: -.045em; }
.overview-metrics { display: grid; grid-template-columns: .86fr 1.1fr 1fr; }
.overview-metric { min-width: 0; padding: 6px 14px 6px clamp(10px, 2vw, 24px); border-left: 1px solid #a2d2c342; }
.metric-label { display: flex; align-items: center; gap: 7px; color: #c0e4d8; font-size: 11px; font-weight: 620; white-space: nowrap; }
.metric-label svg { width: 14px; height: 14px; color: #91d8c2; }
.overview-metric strong { display: block; margin-top: 6px; font-size: clamp(20px, 2.27vw, 31px); line-height: 1.15; font-weight: 670; letter-spacing: -.05em; white-space: nowrap; font-variant-numeric: tabular-nums; }

.calendar-card { overflow: hidden; background: var(--surface); border: 1px solid #dce7e1; border-radius: 15px; box-shadow: var(--shadow); }
.calendar-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 61px; padding: 11px 17px; border-bottom: 1px solid #e3ebe7; }
.calendar-navigation { display: flex; align-items: center; gap: 11px; }
.calendar-arrows { display: flex; align-items: center; gap: 4px; }
.calendar-arrows .icon-button { width: 31px; height: 31px; border: 1px solid #e3ebe7; background: white; }
.calendar-arrows .icon-button:hover { background: var(--accent-soft); }
.calendar-arrows svg { width: 15px; height: 15px; }
.period-title { color: #263d35; font-size: 15px; font-weight: 730; line-height: 1.2; }
.period-title::first-letter { text-transform: uppercase; }
.view-switch { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid #e8eeeb; border-radius: 8px; background: #f3f6f4; }
.view-switch button { border: 1px solid transparent; border-radius: 6px; background: transparent; padding: 5px 11px; color: #5e736a; font-size: 11px; font-weight: 670; }
.view-switch button:hover { color: #08745f; }
.view-switch button[aria-pressed="true"] { border-color: #e0ebe4; background: white; color: #126b57; box-shadow: 0 1px 2px #18413812; }
.calendar-scroll { overflow: auto; max-height: min(77vh, 830px); overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c6d6cf transparent; }
.time-calendar { min-width: calc(var(--hour-gutter) + var(--days) * 93px); }
.time-header, .all-day-row, .time-body { display: grid; grid-template-columns: var(--hour-gutter) repeat(var(--days), minmax(0, 1fr)); }
.time-header { position: sticky; top: 0; z-index: 4; border-bottom: 1px solid #e3ebe7; background: #fff; }
.time-zone, .all-day-label, .hour-gutter { position: sticky; left: 0; z-index: 3; color: #70837b; background: #fbfcfb; font-size: 10px; font-weight: 650; border-right: 1px solid #e7eeea; }
.time-zone { display: grid; place-items: end center; padding-bottom: 13px; }
.day-heading { display: grid; justify-items: center; align-content: center; gap: 4px; height: 66px; padding: 0; background: #fff; border: 0; border-right: 1px solid #e7eeea; }
.day-heading:hover { background: #edf6f0; }
.day-heading:last-child, .all-day-cell:last-child, .time-day:last-child { border-right: 0; }
.day-heading span { text-transform: uppercase; color: #637a72; font-size: 10px; font-weight: 750; letter-spacing: .08em; }
.day-heading strong { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #283d36; font-size: 19px; line-height: 1; font-weight: 730; font-variant-numeric: tabular-nums; }
.day-heading.is-today { background: #edf8f2; }
.day-heading.is-today span { color: #08725e; }
.day-heading.is-today strong { color: #fff; background: var(--accent); }
.all-day-row { min-height: 34px; border-bottom: 1px solid #dce6e1; }
.all-day-label { align-content: center; padding: 5px 6px; text-align: center; font-size: 9px; }
.all-day-cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; position: relative; padding: 4px; border-right: 1px solid #e7eeea; }
.all-day-cell.is-today, .time-day.is-today { background-color: #f5fbf7; }
.all-day-add { display: grid; place-items: center; min-height: 21px; width: 100%; color: var(--accent); background: transparent; border: 0; border-radius: 5px; opacity: 0; }
.all-day-add svg { width: 13px; height: 13px; }
.all-day-cell:hover .all-day-add, .all-day-add:focus-visible { opacity: 1; }
.all-day-add:hover { background: var(--accent-soft); }
.all-day-cell:has(.all-day-chip) .all-day-add { position: absolute; right: 4px; top: 4px; width: 21px; height: 21px; background: white; }
.hour-gutter span { display: block; height: var(--hour); padding: 5px 9px 0 4px; text-align: right; font-variant-numeric: tabular-nums; }
.time-day { position: relative; min-width: 0; border-right: 1px solid #e7eeea; }
.time-slot { display: grid; place-items: center; height: var(--hour); width: 100%; padding: 0; background: transparent; border: 0; border-bottom: 1px solid #e9efec; }
.time-slot span { display: grid; place-items: center; width: 23px; height: 23px; color: var(--accent); border-radius: 6px; opacity: 0; }
.time-slot span svg { width: 14px; height: 14px; }
.time-slot:hover, .time-slot:focus-visible { background: #e4f2eb90; }
.time-slot:hover span, .time-slot:focus-visible span { opacity: 1; }
.time-slot-static:hover { background: transparent; }
.time-slot:focus-visible { outline-offset: -3px; }
.now-line { position: absolute; z-index: 3; left: 0; right: 0; top: var(--now-top); height: 1.5px; background: #0c957b; pointer-events: none; }
.now-line::before { content: ""; position: absolute; left: -3px; top: -2.5px; width: 7px; height: 7px; background: #0c957b; border-radius: 50%; }
.category-work { --cat: #8b6ae8; --cat-bg: #ede7fd; --cat-border: #a38be7; --cat-text: #48357e; }
.category-personal { --cat: #e58c51; --cat-bg: #fff0df; --cat-border: #eb9a5e; --cat-text: #814526; }
.category-focus { --cat: #5689dc; --cat-bg: #e6effe; --cat-border: #79a1ea; --cat-text: #315593; }
.category-health { --cat: #35a785; --cat-bg: #dff5eb; --cat-border: #53b998; --cat-text: #21624f; }
.event-chip { position: absolute; z-index: 2; top: var(--event-top); left: calc(var(--event-left) + 4px); width: calc(var(--event-width) - 7px); height: var(--event-height); display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; overflow: hidden; padding: 5px 6px; border: 0; border-left: 3px solid var(--cat-border); border-radius: 6px; background: var(--cat-bg); color: var(--cat-text); text-align: left; }
.event-chip:hover { filter: saturate(1.28) brightness(.975); }
.event-chip[draggable="true"] { cursor: grab; }
.dragging-event, .dragging-event * { cursor: grabbing !important; }
.drop-target { box-shadow: inset 0 0 0 2px #0c957b80; background-color: #eaf9f2 !important; }
.event-name { display: block; overflow: hidden; color: inherit; font-size: 11px; font-weight: 730; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.event-title-row { display: flex; flex: 0 0 auto; align-items: flex-start; gap: 4px; min-width: 0; }
.event-owner-dot { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; margin-top: 3px; border-radius: 50%; background: var(--owner-color); }
.event-owner-label { overflow: hidden; margin-top: 3px; opacity: .85; font-size: 9px; font-weight: 600; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.roomy-chip .event-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow-wrap: anywhere; }
.short-chip { padding-top: 2px; padding-bottom: 1px; }
.short-chip .event-time, .short-chip .repeat-sign { display: none; }
.event-time { display: block; margin-top: 3px; color: inherit; opacity: .9; font-size: 9px; font-weight: 570; line-height: 1.15; white-space: nowrap; }
.repeat-sign { position: absolute; bottom: 4px; right: 4px; opacity: .65; }
.repeat-sign svg { width: 10px; height: 10px; }
.all-day-chip { position: relative; inset: auto; width: 100%; min-height: 21px; height: auto; padding: 4px 5px; }

.month-grid { min-width: calc(var(--days) * 100px); }
.month-weekdays, .month-body { display: grid; grid-template-columns: repeat(var(--days), minmax(0, 1fr)); }
.month-weekdays { position: sticky; z-index: 3; top: 0; background: #f9fcfa; }
.month-weekdays span { padding: 9px 5px; color: #637a72; text-align: center; font-size: 11px; font-weight: 700; }
.month-cell { min-height: 111px; min-width: 0; padding: 4px; border-right: 1px solid #e7eeea; border-top: 1px solid #e7eeea; }
.month-cell.is-today { background-color: #edf8f2; }
.month-cell.is-other { background-color: #f7faf8; }
.month-cell.is-other .month-day { color: #728780; }
.month-cell-head { display: flex; align-items: center; justify-content: space-between; }
.month-cell-head button { display: grid; place-items: center; width: 25px; height: 25px; padding: 0; border: 0; border-radius: 6px; background: transparent; font-size: 12px; font-weight: 700; }
.month-cell-head button:hover { background: var(--accent-soft); }
.month-cell.is-today .month-day { background: var(--accent); color: white; }
.month-add { color: var(--accent); opacity: 0; }
.month-add svg { width: 14px; height: 14px; }
.month-cell:hover .month-add, .month-add:focus-visible { opacity: 1; }
.month-event { display: block; overflow: hidden; width: 100%; padding: 3px 5px; margin-top: 3px; border: 0; border-left: 2px solid var(--cat-border); border-radius: 4px; background: var(--cat-bg); color: var(--cat-text); text-align: left; font-size: 10px; font-weight: 670; text-overflow: ellipsis; white-space: nowrap; }
.month-event-time { margin-right: 4px; font-size: 9px; }
.month-event .event-owner-dot { margin: 0 4px 0 0; vertical-align: 1px; }
.more-events { margin-top: 3px; padding: 1px 5px; background: transparent; border: 0; border-radius: 4px; color: var(--accent-dark); font-size: 10px; font-weight: 700; }
.more-events:hover { background: var(--accent-soft); }

.custom-dialog { width: min(100%, 480px); padding: 22px; }
.custom-dialog-header { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.custom-dialog-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--accent); background: var(--accent-soft); }
.custom-dialog-header h2 { font-size: 21px; letter-spacing: -.035em; }
.custom-dialog-header .icon-button { margin-left: auto; align-self: flex-start; }
.custom-search { display: block; width: 100%; min-height: 42px; border: 1px solid #d8e4df; border-radius: 9px; padding: 7px 11px; color: var(--ink); background: #fbfdfc; }
.search-results { max-height: 350px; overflow-y: auto; margin-top: 10px; }
.search-empty, .confirm-description { color: var(--muted); font-size: 13px; line-height: 1.55; }
.search-empty { padding: 11px 1px 4px; }
.search-result { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px; border: 0; border-radius: 7px; background: transparent; text-align: left; }
.search-result:hover { background: #edf5f0; }
.search-result > svg { color: var(--accent); width: 16px; height: 16px; }
.search-result > svg:last-child { margin-left: auto; }
.search-result strong, .search-result small { display: block; overflow-wrap: anywhere; }
.search-result strong { font-size: 13px; }
.search-result small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.custom-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.confirm-description { overflow-wrap: anywhere; }
.custom-dialog-header h2 { overflow-wrap: anywhere; min-width: 0; }
.detail-date, .detail-calendar { margin: 5px 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.detail-notes { margin: 14px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }
.family-visibility-note { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--muted); font-size: 13px; }
.family-visibility-note p { flex: 1; min-width: 115px; }
.family-visibility-note button { min-height: 32px; }
.cloud-status { background: #fffaef; border-color: #eadac1; }
.family-entry { display: grid; min-height: 100dvh; padding: 24px; place-items: center; }
.family-entry-card { width: min(100%, 460px); padding: clamp(22px, 5vw, 38px); border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow); }
.family-entry-card h1 { margin: 14px 0 8px; letter-spacing: -.035em; font-size: 27px; }
.family-entry-card p { color: var(--muted); line-height: 1.5; font-size: 14px; }
.family-entry-card .button { margin-top: 17px; text-decoration: none; }
.toast { position: fixed; right: 24px; bottom: 22px; z-index: 15; display: flex; align-items: center; gap: 9px; max-width: min(390px, calc(100vw - 40px)); padding: 12px 17px; border-radius: 10px; background: #173f37; color: #f1fff8; box-shadow: 0 3px 15px #0b392948; font-size: 13px; font-weight: 600; opacity: 0; transform: translateY(9px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.toast.is-visible { opacity: 1; transform: none; }
.toast svg { color: #8de3ba; }

@media (max-width: 1180px) {
  :root { --side-width: 213px; }
  .sidebar { padding-right: 13px; padding-left: 13px; }
  .week-overview { grid-template-columns: minmax(180px, .85fr) minmax(0, 1.65fr); gap: 8px; }
  .overview-metric { padding-right: 7px; }
}
@media (max-width: 900px) {
  :root { --hour-gutter: 50px; }
  .app-shell { display: block; }
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: min(265px, 84vw); transform: translateX(-105%); visibility: hidden; transition: transform .2s ease, visibility .2s; box-shadow: 0 0 24px #12372b28; z-index: 11; }
  .sidebar.is-open { transform: none; visibility: visible; }
  .sidebar-scrim { display: block; position: fixed; inset: 0; z-index: 10; border: 0; background: #1c3b3367; }
  .mobile-menu { display: inline-grid; margin-left: -5px; }
  .topbar { min-height: 55px; }
  .workspace { padding-top: 23px; }
  .calendar-scroll { max-height: 77vh; }
}
@media (max-width: 600px) {
  :root { --hour-gutter: 43px; }
  .topbar { padding: 0 14px; }
  .topbar-context, .topbar-actions { gap: 6px; }
  .breadcrumb-root, .breadcrumb-chevron { display: none; }
  .search-trigger { min-width: 34px; padding: 0; justify-content: center; }
  .search-trigger span, kbd { display: none; }
  .workspace { padding: 18px 12px 23px; }
  .page-header { align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 15px; }
  .page-header h1 { font-size: 32px; margin-bottom: 4px; }
  .page-header p { font-size: 12px; }
  .page-actions { padding-bottom: 0; gap: 6px; }
  .button { min-height: 35px; padding: 0 9px; }
  .week-overview { grid-template-columns: 1fr; padding: 14px; gap: 11px; margin-bottom: 14px; }
  .overview-period h2 { margin-top: 5px; font-size: 24px; }
  .overview-eyebrow { font-size: 9px; }
  .overview-metrics { border-top: 1px solid #a2d2c342; padding-top: 9px; }
  .overview-metric { padding: 1px 5px 1px 9px; }
  .overview-metric:first-child { border-left: 0; padding-left: 0; }
  .metric-label { font-size: 9px; gap: 4px; }
  .metric-label svg { width: 12px; height: 12px; }
  .overview-metric strong { margin-top: 4px; font-size: 19px; }
  .calendar-toolbar { flex-wrap: wrap; padding: 8px; gap: 7px; min-height: auto; }
  .calendar-navigation { gap: 6px; }
  .calendar-arrows { gap: 2px; }
  .calendar-arrows .icon-button { width: 24px; height: 27px; }
  .view-switch { gap: 1px; padding: 2px; }
  .view-switch button { padding: 5px; font-size: 10px; }
  .period-title { font-size: 12px; }
  .day-heading { height: 53px; gap: 2px; }
  .day-heading strong { font-size: 17px; width: 27px; height: 27px; }
  .time-calendar { min-width: calc(var(--hour-gutter) + var(--days) * 89px); }
  .month-grid { min-width: calc(var(--days) * 81px); }
  .hour-gutter span { padding-right: 6px; }
  .toast { right: 12px; bottom: 12px; }
}
@media (hover: none) {
  .all-day-add, .month-add { opacity: .8; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
