:root {
  color-scheme: dark;
  --bg: #0b0e12;
  --panel: #12161b;
  --line: rgba(255,255,255,.09);
  --line-soft: rgba(255,255,255,.055);
  --text: #f4f7fb;
  --muted: #97a0ad;
  --hour-height: calc(6.666667vh - 10.4px);
  --calendar-hours-height: calc(100vh - 156px);
  --time-width: 76px;
  font-family: "Open Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 52% -20%, #20252c 0, var(--bg) 42%); color: var(--text); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; padding: 14px; }
.topbar { height: 58px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.topbar__group { display: flex; align-items: center; gap: 10px; }
.topbar__group--end { justify-content: flex-end; }
.brand-logo { position: relative; flex: 0 0 142px; width: 142px; height: 40px; overflow: hidden; border: 1px solid transparent; border-radius: 9px; background: transparent; }
.brand-logo__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brand-logo__image--dark { object-position: center 56%; transform: scale(1.4); mix-blend-mode: screen; }
.brand-logo__image--light { display: none; object-position: center; mix-blend-mode: multiply; }
.theme-selector { height: 40px; display: flex; align-items: center; gap: 5px; padding: 0 8px 0 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.035); }
.theme-selector__icon { color: #8ab8ee; font-size: 17px; }
.theme-selector select { max-width: 82px; border: 0; outline: 0; background: transparent; color: var(--text); cursor: pointer; font-size: 12px; font-weight: 600; }
.icon-button, .view-button, .secondary-button, .add-line-button { border: 1px solid var(--line); background: rgba(255,255,255,.035); border-radius: 10px; cursor: pointer; }
.icon-button { width: 40px; height: 40px; font-size: 22px; display: grid; place-items: center; }
.icon-button:hover, .view-button:hover, .secondary-button:hover { background: rgba(255,255,255,.08); }
.primary-button, .today-button { border: 0; cursor: pointer; border-radius: 10px; height: 40px; font-weight: 600; background: #1266bd; }
.primary-button { padding: 0 17px 0 12px; display: flex; align-items: center; gap: 9px; }
.primary-button span { font-size: 23px; font-weight: 300; }
.today-button { padding: 0 15px; }
.today-button--period { height: 32px; padding: 0 12px; font-size: 12px; }
.view-button { height: 40px; padding: 0 14px; }
.account-button { min-width: 96px; border-color: rgba(50,123,200,.46); color: #9bc9fa; }
.account-button.is-authenticated { border-color: rgba(181,56,33,.42); color: #f2b0a4; }
.account-button:disabled { opacity: .55; cursor: wait; }
.week-navigation { width: 480px; display: grid; grid-template-columns: 79px 383px; align-items: center; gap: 18px; }
.segmented-buttons { width: 79px; display: flex; }
.segmented-buttons .icon-button { border-radius: 0; }
.segmented-buttons .icon-button:first-child { border-radius: 10px 0 0 10px; }
.segmented-buttons .icon-button:last-child { border-radius: 0 10px 10px 0; margin-left: -1px; }
.period-title { display: grid; grid-template-columns: 165px auto auto; align-items: center; gap: 13px; white-space: nowrap; }
.period-title strong { width: 165px; overflow: hidden; font-size: 22px; font-weight: 500; letter-spacing: -.02em; text-overflow: ellipsis; }
.week-number-display, .count { color: #c8ced7; background: rgba(255,255,255,.08); border-radius: 999px; padding: 6px 10px; font-size: 12px; }
.week-number-display { border: 0; cursor: pointer; white-space: nowrap; }
.week-number-display:hover, .week-number-display[aria-expanded="true"] { background: rgba(255,255,255,.14); }
.week-picker-wrap { position: relative; }
.week-picker-popup { position: absolute; top: calc(100% + 10px); right: 0; z-index: 30; width: 230px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #161b21; box-shadow: 0 18px 45px rgba(0,0,0,.35); }
.week-picker-popup label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
.week-picker-popup input { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.05); color: var(--text); color-scheme: dark; }
.workspace { display: grid; grid-template-columns: minmax(800px, 1fr) 390px; gap: 12px; height: calc(100vh - 86px); }
.calendar-card, .side-panel { border: 1px solid var(--line); border-radius: 11px; background: rgba(18,22,27,.88); overflow: hidden; box-shadow: 0 18px 45px rgba(0,0,0,.24); }
.calendar-scroll { height: 100%; overflow-x: auto; overflow-y: hidden; }
.calendar { position: relative; display: grid; grid-template-columns: var(--time-width) minmax(910px, 1fr); grid-template-rows: 70px var(--calendar-hours-height); min-width: 986px; }
.calendar-corner { position: sticky; top: 0; left: 0; z-index: 8; display: flex; align-items: flex-end; padding: 0 0 13px 11px; background: #15191e; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calendar-corner span { font-size: 11px; font-weight: 600; color: #d9dde2; }
.day-headings { position: sticky; top: 0; z-index: 7; display: grid; grid-template-columns: repeat(6, 1fr); background: #15191e; border-bottom: 1px solid var(--line); }
.day-heading { text-align: center; padding-top: 12px; border-right: 1px solid var(--line); cursor: pointer; outline: 0; transition: background .15s; }
.day-heading:hover, .day-heading:focus-visible { background: rgba(55,132,213,.09); }
.day-heading:last-child { border-right: 0; }
.day-heading__name { display: block; color: #d9dde4; font-size: 11px; font-weight: 600; letter-spacing: .11em; }
.day-heading__date { display: block; margin-top: 5px; font-size: 23px; line-height: 1; font-weight: 300; }
.day-heading.is-today { background: linear-gradient(145deg, #1d76cf, #115ca8); box-shadow: inset 0 -3px 0 rgba(255,255,255,.18); }
.day-heading.is-today:hover, .day-heading.is-today:focus-visible { background: linear-gradient(145deg, #2886df, #1769ba); }
.day-heading.is-today .day-heading__name { color: #ffffff; }
.day-heading.is-today .day-heading__date { color: #ffffff; font-weight: 500; }
.time-axis { position: sticky; left: 0; z-index: 5; grid-row: 2; background: #12161b; border-right: 1px solid var(--line); }
.time-label { position: absolute; right: 10px; transform: translateY(-7px); color: #aab1bb; font-size: 11px; }
.week-grid { position: relative; grid-column: 2; grid-row: 2; display: grid; grid-template-columns: repeat(6, 1fr); overflow: hidden; background-image: repeating-linear-gradient(to bottom, var(--line-soft) 0, var(--line-soft) 1px, transparent 1px, transparent var(--hour-height)); }
.day-column { position: relative; min-width: 130px; border-right: 1px solid var(--line); }
.day-column:last-child { border-right: 0; }
.day-column::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--hour-height) / 2 - 1px), rgba(255,255,255,.025) calc(var(--hour-height) / 2), transparent calc(var(--hour-height) / 2 + 1px), transparent var(--hour-height)); }
.current-time-indicator { position: absolute; left: -1px; right: -1px; z-index: 8; height: 2px; pointer-events: none; background: #ef4444; box-shadow: 0 0 7px rgba(239,68,68,.45); }
.current-time-indicator::before { content: ""; position: absolute; left: -6px; top: 50%; width: 11px; height: 11px; transform: translateY(-50%); border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 2px rgba(239,68,68,.16); }
.event-card { position: absolute; left: 5px; right: 5px; z-index: 2; overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 7px; padding: 6px 8px; cursor: pointer; box-shadow: 0 5px 16px rgba(0,0,0,.2); transition: filter .16s, transform .16s; }
.event-card:hover { filter: brightness(1.12); transform: translateY(-1px); }
.event-card--past { opacity: .46; filter: saturate(.5) brightness(.84); }
.event-card--past:hover { opacity: .68; filter: saturate(.65) brightness(.98); }
.event-card--blue { background: linear-gradient(145deg, #327bc8, #2462a4); }
.event-card--red { background: #B53821; }
.event-card--green { background: linear-gradient(145deg, #48945e, #327345); }
.event-card--yellow { background: linear-gradient(145deg, #d99d20, #b67b0b); }
.event-card--pink, .event-card--purple { border-color: rgba(107,42,68,.24); background: #F09686; color: #4d1830; }
.event-card strong { display: block; font-size: 15px; line-height: 1.2; font-weight: 600; }
.event-card time { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; }
.event-card__details { display: grid; gap: 3px; margin-top: 4px; }
.event-card__detail { margin: 0; overflow: hidden; color: rgba(255,255,255,.9); font-size: 13px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.event-card--pink .event-card__detail, .event-card--purple .event-card__detail { color: rgba(77,24,48,.86); }
.event-card__detail--address { font-size: 13.5px; font-weight: 500; }
.event-card__detail--phone { font-weight: 400; }
.event-card__detail--notes { display: -webkit-box; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.event-resize-handle { position: absolute; left: 0; right: 0; z-index: 5; height: 9px; cursor: ns-resize; touch-action: none; }
.event-resize-handle--top { top: 0; }
.event-resize-handle--bottom { bottom: 0; }
.event-resize-handle::after { content: ""; position: absolute; left: 50%; width: 30px; height: 2px; transform: translateX(-50%); border-radius: 999px; background: rgba(255,255,255,.8); opacity: .18; transition: opacity .15s, height .15s; }
.event-resize-handle--top::after { top: 2px; }
.event-resize-handle--bottom::after { bottom: 2px; }
.event-card:hover .event-resize-handle::after, .event-card.is-resizing .event-resize-handle::after { opacity: .9; height: 3px; }
body.is-resizing-event { cursor: ns-resize; user-select: none; }
.side-panel { overflow-y: auto; display: flex; flex-direction: column; }
.panel-header { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 16px; background: rgba(20,24,29,.96); border-bottom: 1px solid var(--line); }
.panel-header h1 { margin: 2px 0 0; font-size: 18px; }
.eyebrow { color: #6d94c5; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.secondary-button { height: 35px; padding: 0 11px; font-size: 12px; }
.panel-section { padding: 15px 16px; border-bottom: 1px solid var(--line); }
.section-title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.section-title h2 { margin: 0; font-size: 15px; }
.section-title--material { min-height: 35px; justify-content: space-between; }
.section-title__heading { display: flex; align-items: center; gap: 8px; }
.material-icon { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.045); color: #77abe3; font-size: 16px; line-height: 1; }
.rexel-logo { width: 72px; height: 27px; display: block; border-radius: 5px; object-fit: contain; }
.count { padding: 3px 8px; }
.list-row { display: grid; grid-template-columns: 19px minmax(0, 1fr) auto 8px; gap: 8px; align-items: center; min-height: 43px; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.list-row:last-child { border-bottom: 0; }
.list-row input { appearance: none; width: 17px; height: 17px; margin: 0; border: 1.5px solid #9fa7b2; border-radius: 5px; cursor: pointer; }
.list-row input:checked { background: #2d76c5; border-color: #2d76c5; box-shadow: inset 0 0 0 3px #15191e; }
.list-row__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.material-name-button { min-width: 0; overflow: hidden; padding: 0; border: 0; background: transparent; color: var(--text); cursor: pointer; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.material-name-button:hover { color: #7bb2ec; text-decoration: underline; text-underline-offset: 3px; }
.material-name-button:focus-visible { border-radius: 3px; outline: 2px solid #3c88d8; outline-offset: 2px; }
.material-row__title small { display: block; overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 400; text-overflow: ellipsis; }
.list-row__meta { color: #7bb2ec; white-space: nowrap; font-size: 12px; }
.material-list-meta { max-width: 190px; display: flex; align-items: center; gap: 6px; overflow: hidden; }
.material-list-meta > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.material-order-site { color: #f4a31e; }
.material-order-site::before { content: "• "; color: #8b929c; }
.priority-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.priority-dot--urgent { background: #ed5146; }
.priority-dot--important { background: #f4a31e; }
.priority-dot--normal { background: #3a86d8; }
.priority-dot--low { background: #54ad6b; }
.material-list-row .priority-dot--important { background: #ed5146; }
.add-line-button { width: 100%; margin-top: 10px; min-height: 34px; color: #b9c5d3; border-style: dashed; }
.completed-section { display: none; }
.completed-section.has-items { display: block; }
.completed-section .list-row__title { color: var(--muted); text-decoration: line-through; }
.priority-legend { margin-top: auto; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 14px; color: #b9c0ca; font-size: 10px; }
.priority-legend span { display: flex; align-items: center; gap: 6px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 30; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 11px 16px; border: 1px solid var(--line); border-radius: 9px; background: #20262e; box-shadow: 0 12px 40px rgba(0,0,0,.4); transition: .2s; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.event-color-menu { position: fixed; z-index: 40; width: 230px; padding: 6px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: #1b2128; box-shadow: 0 20px 55px rgba(0,0,0,.48); }
.event-color-menu[hidden] { display: none; }
.event-color-menu__title { display: block; padding: 7px 9px 8px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.event-color-menu button { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; color: var(--text); cursor: pointer; text-align: left; font-size: 12px; }
.event-color-menu button:hover, .event-color-menu button.is-current { background: rgba(59,135,214,.16); }
.color-swatch { width: 13px; height: 13px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.12); }
.color-swatch--blue { background: #327bc8; }
.color-swatch--red { background: #B53821; }
.color-swatch--green { background: #3c8954; }
.color-swatch--yellow { background: #cf9419; }
.color-swatch--pink { background: #F09686; }
.modal { width: min(660px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: transparent; color: var(--text); box-shadow: 0 28px 90px rgba(0,0,0,.65); }
.modal--small { width: min(540px, calc(100vw - 24px)); }
.modal::backdrop { background: rgba(2,4,7,.74); backdrop-filter: blur(5px); }
.modal-card { padding: 0; background: #151a20; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 3px 0 0; font-size: 20px; }
.modal-close { width: 34px; height: 34px; border: 0; border-radius: 8px; background: rgba(255,255,255,.06); font-size: 24px; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 20px 22px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field > span { color: #b7c0ca; font-size: 12px; font-weight: 600; }
.field > span small { margin-left: 5px; color: var(--muted); font-size: 10px; font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; outline: 0; background: #0f1318; color: var(--text); padding: 10px 11px; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #3c88d8; box-shadow: 0 0 0 3px rgba(50,126,208,.15); }
.address-autocomplete { position: relative; }
.address-suggestions { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; max-height: 230px; overflow-y: auto; padding: 5px; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; background: #1b2128; box-shadow: 0 18px 45px rgba(0,0,0,.45); }
.address-suggestions[hidden] { display: none; }
.address-suggestion { width: 100%; display: flex; align-items: flex-start; gap: 9px; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.address-suggestion::before { content: "⌖"; flex: 0 0 auto; color: #65aaf0; font-size: 15px; }
.address-suggestion:hover, .address-suggestion.is-active { background: rgba(59,135,214,.16); }
.address-suggestion__label { display: block; font-size: 12px; line-height: 1.35; }
.address-search-state { padding: 10px; color: var(--muted); font-size: 12px; }
.search-panel { padding: 20px 22px 22px; }
.search-results { display: grid; gap: 8px; max-height: min(460px, 55vh); margin-top: 14px; overflow-y: auto; }
.search-empty { margin: 0; padding: 24px 12px; border: 1px dashed var(--line); border-radius: 9px; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.search-count { margin: 0 2px 2px; color: var(--muted); font-size: 11px; font-weight: 600; }
.search-result { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 16px; min-height: 66px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.035); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.search-result:hover, .search-result:focus-visible { border-color: rgba(78,157,238,.55); outline: none; background: rgba(59,135,214,.13); }
.search-result__main { min-width: 0; display: grid; gap: 4px; }
.search-result__main strong { overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.search-result__main small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.search-result__date { display: grid; gap: 3px; color: #aeb9c7; font-size: 11px; text-align: right; white-space: nowrap; }
.search-result__date small { color: #6aacef; font-size: 11px; font-weight: 600; }
.modal-actions { display: flex; align-items: center; gap: 9px; padding: 14px 22px 20px; }
.action-spacer { flex: 1; }
.save-button, .ghost-button, .danger-button { min-height: 38px; border-radius: 8px; padding: 0 14px; cursor: pointer; font-weight: 600; border: 1px solid transparent; }
.save-button { background: #2175ca; }
.ghost-button { background: rgba(255,255,255,.04); border-color: var(--line); }
.danger-button { background: rgba(217,69,55,.1); border-color: rgba(217,69,55,.35); color: #ff8276; }
.danger-button[hidden] { display: none; }
.event-card.is-dragging { opacity: .45; }
.event-card.is-resizing { filter: brightness(1.1); box-shadow: 0 0 0 2px rgba(116,184,255,.7), 0 8px 22px rgba(0,0,0,.28); }
.day-column.is-drop-target { background: rgba(39,117,199,.11); }
.drop-time-indicator { position: absolute; left: 5px; right: 5px; z-index: 4; display: flex; align-items: flex-start; justify-content: center; padding: 7px 4px; border: 1px dashed #74b8ff; border-radius: 7px; background: rgba(31,118,209,.25); color: #d9ecff; font-size: 11px; font-weight: 600; pointer-events: none; box-shadow: 0 0 0 1px rgba(12,85,165,.28) inset; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(430px,100%); padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: rgba(18,22,27,.94); box-shadow: 0 28px 80px rgba(0,0,0,.42); }
.login-brand { position: relative; width: 205px; height: 58px; margin: 0 auto 28px; overflow: hidden; }
.login-brand__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.login-brand__image--dark { object-position: center 56%; transform: scale(1.4); mix-blend-mode: screen; }
.login-brand__image--light { display: none; object-position: center; mix-blend-mode: multiply; }
.login-heading { margin-bottom: 22px; text-align: center; }
.login-heading h1 { margin: 5px 0 8px; font-size: 25px; font-weight: 600; }
.login-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.login-error { margin-bottom: 16px; padding: 10px 12px; border: 1px solid rgba(181,56,33,.45); border-radius: 8px; background: rgba(181,56,33,.13); color: #ffb5a7; font-size: 12px; line-height: 1.45; }
.login-form { display: grid; gap: 16px; }
.remember-session { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 12px; line-height: 1.4; cursor: pointer; user-select: none; }
.remember-session input { width: 16px; height: 16px; margin: 1px 0 0; flex: 0 0 auto; accent-color: #2175ca; cursor: pointer; }
.login-submit { width: 100%; margin-top: 3px; color: #ffffff; }

html[data-theme="light"] {
  color-scheme: light;
  --bg: #edf1f6;
  --panel: #ffffff;
  --line: rgba(24,38,58,.13);
  --line-soft: rgba(24,38,58,.075);
  --text: #182235;
  --muted: #687488;
}
html[data-theme="light"] body { background: radial-gradient(circle at 50% -20%, #ffffff 0, var(--bg) 50%); }
html[data-theme="light"] .brand-logo { background: transparent; }
html[data-theme="light"] .brand-logo__image--dark { display: none; }
html[data-theme="light"] .brand-logo__image--light { display: block; }
html[data-theme="light"] .login-page { background: radial-gradient(circle at 50% -20%, #ffffff 0, var(--bg) 55%); }
html[data-theme="light"] .login-card { background: rgba(255,255,255,.96); box-shadow: 0 28px 80px rgba(45,61,82,.18); }
html[data-theme="light"] .login-brand__image--dark { display: none; }
html[data-theme="light"] .login-brand__image--light { display: block; }
html[data-theme="light"] .login-error { color: #8d2918; }
html[data-theme="light"] .icon-button,
html[data-theme="light"] .view-button,
html[data-theme="light"] .secondary-button,
html[data-theme="light"] .add-line-button,
html[data-theme="light"] .theme-selector { background: rgba(255,255,255,.8); }
html[data-theme="light"] .icon-button:hover,
html[data-theme="light"] .view-button:hover,
html[data-theme="light"] .secondary-button:hover { background: #ffffff; }
html[data-theme="light"] .week-number-display,
html[data-theme="light"] .count { color: #526074; background: rgba(20,38,64,.075); }
html[data-theme="light"] .calendar-card,
html[data-theme="light"] .side-panel { background: rgba(255,255,255,.94); box-shadow: 0 18px 45px rgba(45,61,82,.12); }
html[data-theme="light"] .calendar-corner,
html[data-theme="light"] .day-headings { background: #f7f9fc; }
html[data-theme="light"] .calendar-corner span,
html[data-theme="light"] .day-heading__name { color: #536075; }
html[data-theme="light"] .time-axis { background: #ffffff; }
html[data-theme="light"] .time-label { color: #6e798a; }
html[data-theme="light"] .day-column::after { background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--hour-height) / 2 - 1px), rgba(25,42,64,.035) calc(var(--hour-height) / 2), transparent calc(var(--hour-height) / 2 + 1px), transparent var(--hour-height)); }
html[data-theme="light"] .panel-header { background: rgba(248,250,253,.97); }
html[data-theme="light"] .list-row input { border-color: #768297; background: #fff; }
html[data-theme="light"] .list-row input:checked { box-shadow: inset 0 0 0 3px #ffffff; }
html[data-theme="light"] .priority-legend { color: #687488; }
html[data-theme="light"] .modal-card { background: #ffffff; }
html[data-theme="light"] .modal-close,
html[data-theme="light"] .ghost-button { background: #f0f3f7; }
html[data-theme="light"] .field > span { color: #536075; }
html[data-theme="light"] .field input,
html[data-theme="light"] .field textarea,
html[data-theme="light"] .field select { border-color: rgba(24,38,58,.16); background: #f8fafc; color: var(--text); }
html[data-theme="light"] .address-suggestions { border-color: rgba(24,38,58,.16); background: #ffffff; box-shadow: 0 18px 45px rgba(45,61,82,.2); }
html[data-theme="light"] .search-result { background: #f8fafc; }
html[data-theme="light"] .search-result:hover,
html[data-theme="light"] .search-result:focus-visible { background: #eef6ff; }
html[data-theme="light"] .search-result__date { color: #687488; }
html[data-theme="light"] .toast { background: #ffffff; box-shadow: 0 12px 40px rgba(45,61,82,.2); }
html[data-theme="light"] .event-color-menu { border-color: rgba(24,38,58,.16); background: #ffffff; box-shadow: 0 20px 55px rgba(45,61,82,.22); }
html[data-theme="light"] .color-swatch { box-shadow: 0 0 0 2px rgba(24,38,58,.1); }
html[data-theme="light"] .event-card { color: #ffffff; }
html[data-theme="light"] .event-card--pink,
html[data-theme="light"] .event-card--purple { color: #4d1830; }
html[data-theme="light"] .week-picker-popup { border-color: rgba(24,38,58,.16); background: #ffffff; box-shadow: 0 18px 45px rgba(45,61,82,.2); }
html[data-theme="light"] .week-picker-popup input { border-color: rgba(24,38,58,.16); background: #f8fafc; color-scheme: light; }
@media (max-width: 1050px) {
  .brand-logo { flex-basis: 116px; width: 116px; }
  .workspace { grid-template-columns: 1fr; height: auto; }
  .calendar-card { height: calc(100vh - 86px); }
  .side-panel { max-height: none; }
  .topbar { grid-template-columns: auto 1fr auto; }
  .desktop-only { display: none; }
}
@media (max-width: 680px) {
  :root { --hour-height: calc(6.666667vh - 14px); --calendar-hours-height: calc(100vh - 210px); }
  .app-shell { padding: 8px; }
  .topbar { height: auto; grid-template-columns: 1fr auto; padding-bottom: 8px; }
  .week-navigation { width: 480px; grid-row: 2; grid-column: 1 / -1; justify-self: center; }
  .topbar__group--start .icon-button { display: none; }
  .brand-logo { display: none; }
  .theme-selector { padding-left: 8px; }
  .theme-selector__icon { display: none; }
  .primary-button { padding-right: 12px; }
  .period-title strong { font-size: 18px; }
  .workspace { height: auto; }
  .calendar-card { height: calc(100vh - 140px); }
  .form-grid { grid-template-columns: 1fr; padding: 16px; }
  .field--full { grid-column: auto; }
  .modal-header, .modal-actions { padding-left: 16px; padding-right: 16px; }
  .search-panel { padding: 16px; }
  .search-result { grid-template-columns: 1fr; gap: 6px; }
  .search-result__date { grid-template-columns: 1fr auto; text-align: left; }
  .login-page { padding: 14px; }
  .login-card { padding: 24px 20px; }
}
