:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-hover: #f1f3f4;
  --surface: #ffffff;
  --line: #dadce0;
  --line-soft: #ebedf0;
  --text: #1f1f1f;
  --text-2: #444746;
  --text-3: #70757a;
  --accent: #0b57d0;
  --accent-soft: #d3e3fd;
  --accent-text: #041e49;
  --today: #0b57d0;
  --danger: #b3261e;
  --now: #ea4335;
  --shadow: 0 1px 3px rgba(60,64,67,.15), 0 4px 8px 3px rgba(60,64,67,.12);
  --shadow-lg: 0 8px 28px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.08);
  --radius: 12px;
  --hour: 48px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1b1b;
    --bg-soft: #232425;
    --bg-hover: #2c2d2f;
    --surface: #26272a;
    --line: #3c3d40;
    --line-soft: #303134;
    --text: #e3e3e3;
    --text-2: #c4c7c5;
    --text-3: #9aa0a6;
    --accent: #a8c7fa;
    --accent-soft: #0842a0;
    --accent-text: #d3e3fd;
    --today: #a8c7fa;
    --danger: #f2b8b5;
    --shadow: 0 1px 3px rgba(0,0,0,.5), 0 4px 8px 3px rgba(0,0,0,.35);
    --shadow-lg: 0 8px 28px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--text-3); }
.small { font-size: 12px; }
.spacer { flex: 1; }
.grow { flex: 1; min-width: 0; }
code { background: var(--bg-hover); padding: 1px 5px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  border: 0; background: transparent; padding: 0 16px; height: 36px; border-radius: 18px;
  font-weight: 500; cursor: pointer; color: var(--accent); white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s;
}
.btn:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.btn.primary { background: var(--accent); color: var(--bg); }
.btn.primary:hover { filter: brightness(1.08); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.btn.outline { border: 1px solid var(--line); color: var(--text); }
.btn.outline:hover { background: var(--bg-hover); }
.btn.danger { background: var(--danger); color: var(--bg); }
.btn.danger-text { color: var(--danger); }
.btn.danger-text:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); }
.btn.wide { width: 100%; height: 42px; border-radius: 21px; margin-top: 8px; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-2);
}
.icon-btn:hover { background: var(--bg-hover); }
.link-btn { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 6px 0; font-weight: 500; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Formularfelder ---------- */
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date],
input[type=time], input[type=number], input:not([type]), select, textarea {
  border: 1px solid var(--line); background: var(--surface); border-radius: 8px;
  padding: 8px 10px; min-height: 38px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
textarea { resize: vertical; line-height: 1.45; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; color: var(--text-2); font-weight: 500; }
.field.narrow { max-width: 340px; }
.check, .radio { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.check.inline { margin-top: 8px; display: inline-flex; }
.radio { padding: 8px 0; font-size: 15px; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.num { width: 72px; }

/* ---------- Login ---------- */
.auth { min-height: 100%; display: grid; place-items: center; padding: 24px; background: var(--bg-soft); }
.auth-card {
  width: 100%; max-width: 380px; background: var(--surface); border-radius: 20px; padding: 32px 28px 24px;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 24px; font-weight: 500; margin: 12px 0 8px; }
.auth-card p { margin: 0 0 20px; line-height: 1.5; }
.auth-logo { width: 48px; height: 48px; border-radius: 12px; background: var(--accent); color: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: 20px; position: relative; overflow: hidden; }
.auth-logo::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 13px; background: rgba(0,0,0,.18); }
.auth-logo span { margin-top: 8px; }
.auth-error { color: var(--danger); min-height: 1.2em; margin: 12px 0 0 !important; font-size: 13px; }

/* ---------- Layout ---------- */
.app { height: 100%; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px; min-height: 64px;
  border-bottom: 1px solid var(--line-soft); background: var(--bg); position: relative; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: 24px; }
.brand-icon {
  width: 36px; height: 36px; border-radius: 9px; background: var(--accent); color: var(--bg);
  display: grid; place-items: center; font-weight: 700; padding-top: 6px; position: relative; overflow: hidden;
}
.brand-icon::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 10px; background: rgba(0,0,0,.2); }
.brand-name { font-size: 22px; color: var(--text-2); }
.nav-arrows { display: flex; }
.period { font-size: 22px; font-weight: 400; margin: 0 0 0 4px; white-space: nowrap; }
.search { display: flex; align-items: center; gap: 6px; background: var(--bg-soft); border-radius: 22px; padding: 0 12px; height: 40px; color: var(--text-3); }
.search input { border: 0; background: transparent; box-shadow: none; min-height: 0; padding: 0; width: 180px; color: var(--text); }
.search input:focus { box-shadow: none; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 0 14px; height: 36px; cursor: pointer; color: var(--text-2); font-weight: 500; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--accent-soft); color: var(--accent-text); }

.body { flex: 1; display: flex; min-height: 0; position: relative; }
.sidebar { width: 256px; flex: none; padding: 16px 12px 12px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; background: var(--bg); }
.create-btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 16px;
  border-radius: 16px; border: 0; background: var(--surface); box-shadow: var(--shadow); cursor: pointer;
  font-weight: 500; font-size: 15px; color: var(--text);
}
.create-btn svg { width: 26px; height: 26px; color: var(--accent); stroke-width: 2.2; }
.create-btn:hover { box-shadow: var(--shadow-lg); background: var(--bg-soft); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; border-left: 1px solid var(--line-soft); }
.side-label { font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; margin: 0 4px 6px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.scrim { display: none; }

/* Mini-Kalender */
.mini { user-select: none; }
.mini-head { display: flex; align-items: center; justify-content: space-between; padding: 0 0 4px 8px; }
.mini-head b { font-weight: 500; font-size: 14px; }
.mini-head .icon-btn { width: 28px; height: 28px; }
.mini-head .icon-btn svg { width: 16px; height: 16px; }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 11px; }
.mini-grid .wd { color: var(--text-3); height: 24px; line-height: 24px; font-weight: 500; }
.mini-grid button {
  border: 0; background: transparent; width: 28px; height: 28px; border-radius: 50%; margin: 1px auto; cursor: pointer;
  font-size: 11px; color: var(--text); position: relative;
}
.mini-grid button:hover { background: var(--bg-hover); }
.mini-grid button.out { color: var(--text-3); }
.mini-grid button.sel { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.mini-grid button.today { background: var(--today); color: var(--bg); font-weight: 600; }
.mini-grid button.has::after { content: ""; position: absolute; bottom: 3px; left: 50%; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: currentColor; opacity: .55; }

.upcoming { display: flex; flex-direction: column; gap: 2px; }
.up-item { display: flex; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; align-items: flex-start; }
.up-item:hover { background: var(--bg-hover); }
.up-item .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; flex: none; }
.up-item .t { font-size: 13px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.up-item .w { font-size: 12px; color: var(--text-3); }
.up-empty { color: var(--text-3); font-size: 13px; padding: 4px 8px; }

/* ---------- Monatsansicht ---------- */
.month { flex: 1; display: grid; grid-template-rows: auto 1fr; min-height: 0; }
.month-head { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--line-soft); }
.month-head div { text-align: center; font-size: 11px; font-weight: 600; color: var(--text-3); padding: 8px 0 6px; letter-spacing: .04em; }
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 1fr; min-height: 0; }
.mcell { border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 4px 4px 2px; min-width: 0; min-height: 0; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; gap: 1px; }
.mcell:nth-child(7n) { border-right: 0; }
.mcell.out { background: var(--bg-soft); }
.mcell.out .mnum { color: var(--text-3); }
.mcell.weekend:not(.out) { background: color-mix(in srgb, var(--bg-soft) 50%, var(--bg)); }
.mnum {
  align-self: center; font-size: 12px; font-weight: 500; width: 26px; height: 26px; line-height: 26px; text-align: center;
  border-radius: 50%; margin-bottom: 2px; flex: none; cursor: pointer;
}
.mnum:hover { background: var(--bg-hover); }
.mcell.today .mnum { background: var(--today); color: var(--bg); }
.chip {
  display: flex; align-items: center; gap: 5px; font-size: 12px; line-height: 20px; height: 20px; padding: 0 6px;
  border-radius: 4px; white-space: nowrap; overflow: hidden; cursor: pointer; flex: none; min-width: 0;
}
.chip:hover { background: var(--bg-hover); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.chip .tm { color: var(--text-2); flex: none; }
.chip .tt { overflow: hidden; text-overflow: ellipsis; }
.chip.fill { color: #fff; font-weight: 500; }
.chip.fill:hover { filter: brightness(.94); background: inherit; }
.chip.past { opacity: .6; }
.more { font-size: 12px; font-weight: 500; color: var(--text-2); padding: 0 6px; line-height: 20px; border-radius: 4px; cursor: pointer; flex: none; }
.more:hover { background: var(--bg-hover); }

/* ---------- Wochen-/Tagesansicht ---------- */
.week { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.week-head { display: grid; border-bottom: 1px solid var(--line-soft); padding-right: var(--sbw, 0px); }
.wh-day { text-align: center; padding: 8px 0 6px; cursor: pointer; }
.wh-day .wd { font-size: 11px; font-weight: 600; color: var(--text-3); letter-spacing: .04em; }
.wh-day .dn { font-size: 24px; width: 44px; height: 44px; line-height: 44px; margin: 2px auto 0; border-radius: 50%; }
.wh-day:hover .dn { background: var(--bg-hover); }
.wh-day.today .wd { color: var(--today); }
.wh-day.today .dn { background: var(--today); color: var(--bg); }
.allday-row { display: grid; border-bottom: 1px solid var(--line-soft); padding-right: var(--sbw, 0px); }
.allday-row .gutter { font-size: 10px; color: var(--text-3); text-align: right; padding: 6px 8px 0 0; }
.ad-cell { border-left: 1px solid var(--line-soft); padding: 2px 3px; display: flex; flex-direction: column; gap: 2px; min-height: 26px; min-width: 0; cursor: pointer; }
.week-scroll { flex: 1; overflow-y: auto; position: relative; }
.week-grid { display: grid; position: relative; height: calc(var(--hour) * 24); }
.time-col { position: relative; }
.time-col span { position: absolute; right: 8px; font-size: 10px; color: var(--text-3); transform: translateY(-50%); }
.day-col { position: relative; border-left: 1px solid var(--line-soft); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--hour) - 1px), var(--line-soft) calc(var(--hour) - 1px), var(--line-soft) var(--hour)); cursor: pointer; }
.day-col.weekend { background-color: color-mix(in srgb, var(--bg-soft) 50%, var(--bg)); }
.ev {
  position: absolute; border-radius: 6px; padding: 3px 6px; font-size: 12px; line-height: 1.3; color: #fff;
  overflow: hidden; cursor: pointer; border: 1px solid var(--bg); box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.ev:hover { filter: brightness(.95); z-index: 3; box-shadow: var(--shadow); }
.ev .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.ev .s { opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.short { display: flex; gap: 6px; align-items: baseline; white-space: nowrap; padding-top: 1px; }
.ev.past { opacity: .62; }
.now-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--now); z-index: 4; pointer-events: none; }
.now-line::before { content: ""; position: absolute; left: -6px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--now); }

/* ---------- Liste ---------- */
.list { flex: 1; overflow-y: auto; padding: 8px 24px 80px; }
.list-day { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.list-date { display: flex; align-items: baseline; gap: 8px; cursor: pointer; }
.list-date .dn { font-size: 24px; width: 40px; text-align: center; }
.list-date .meta { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; line-height: 1.3; }
.list-day.today .dn { color: var(--today); font-weight: 600; }
.list-items { display: flex; flex-direction: column; }
.list-item { display: grid; grid-template-columns: 14px 130px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.list-item:hover { background: var(--bg-hover); }
.list-item .dot { width: 12px; height: 12px; border-radius: 50%; }
.list-item .when { color: var(--text-2); font-size: 13px; }
.list-item .what { font-weight: 500; min-width: 0; }
.list-item .what small { display: block; font-weight: 400; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .badges { color: var(--text-3); font-size: 12px; margin-left: 6px; }
.empty { text-align: center; color: var(--text-3); padding: 60px 20px; }
.empty b { display: block; font-size: 16px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.search-head { padding: 16px 0 8px; color: var(--text-2); }

/* ---------- Dialoge ---------- */
.modal {
  border: 0; padding: 0; border-radius: 24px; background: var(--surface); color: var(--text);
  width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); box-shadow: var(--shadow-lg);
}
.modal.small { width: min(380px, calc(100vw - 24px)); }
.modal::backdrop { background: rgba(0,0,0,.4); }
.modal[open] { animation: pop .16s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal form { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 4px 24px; }
.modal-head h3 { margin: 0; font-size: 18px; font-weight: 500; }
.modal-body { padding: 8px 24px 8px; overflow-y: auto; }
.modal-foot { display: flex; align-items: center; gap: 8px; padding: 12px 20px 18px; border-top: 1px solid var(--line-soft); }
.title-input {
  width: 100%; font-size: 22px !important; border: 0 !important; border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important; padding: 8px 0 !important; box-shadow: none !important; background: transparent !important;
}
.title-input:focus { border-bottom: 2px solid var(--accent) !important; }
.series-note { display: none; font-size: 12px; color: var(--text-3); margin-top: 6px; }
.series-note.show { display: block; }
.row { display: flex; gap: 14px; align-items: center; margin-top: 16px; }
.row.top { align-items: flex-start; }
.row-icon { color: var(--text-3); margin-top: 0; }
.row.top .row-icon { margin-top: 9px; }
.icon-row > .grow > select { width: 100%; }
.dt-grid { display: grid; grid-template-columns: 1fr 96px auto 1fr 96px; gap: 6px; align-items: center; }
.dt-grid .dash { color: var(--text-3); font-size: 13px; }
.dt-grid input { width: 100%; min-width: 0; }
.icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.modal-head .icon-btn:focus:not(:focus-visible) { outline: none; }
.dt-grid.allday { grid-template-columns: 1fr auto 1fr; }
.dt-grid.allday input[type=time] { display: none; }
.repeat-panel { display: none; margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--bg-soft); flex-direction: column; gap: 10px; }
.repeat-panel.show { display: flex; }
.rp-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rp-line select { min-width: 0; }
.weekdays button {
  width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--bg-hover); cursor: pointer; font-size: 12px; font-weight: 600; color: var(--text-2);
}
.weekdays button.on { background: var(--accent); color: var(--bg); }
.rp-until, .rp-count { display: none; }
.rp-end[data-mode=until] .rp-until { display: inline-block; }
.rp-end[data-mode=count] .rp-count { display: inline-flex; align-items: center; gap: 6px; }
.rem-list { display: flex; flex-direction: column; gap: 6px; }
.rem-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rem-row .lbl { color: var(--text-2); font-size: 13px; }
.rem-row .icon-btn { width: 32px; height: 32px; }
.rem-row .icon-btn svg { width: 16px; height: 16px; }
.colors { display: flex; flex-wrap: wrap; gap: 8px; }
.colors button { width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer; position: relative; }
.colors button.on::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--text); }

.set-sec { padding: 14px 0 18px; border-bottom: 1px solid var(--line-soft); }
.set-sec:last-child { border-bottom: 0; }
.set-sec h4 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.set-sec .field > span em { font-style: normal; font-weight: 400; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 12.5px; color: var(--text-3); margin: -4px 0 12px; line-height: 1.45; }
.copy-row { display: flex; gap: 8px; margin-bottom: 8px; }
.copy-row input { flex: 1; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 24px; bottom: 24px; background: #303030; color: #f2f2f2; padding: 12px 20px; border-radius: 8px;
  box-shadow: var(--shadow-lg); transform: translateY(calc(100% + 60px)); visibility: hidden;
  transition: transform .25s ease, visibility 0s .25s; z-index: 100; max-width: calc(100vw - 48px);
}
.toast.show { transform: none; visibility: visible; transition: transform .25s ease; }
.toast.err { background: #8c1d18; }

.fab { display: none; }
.only-mobile { display: none; }

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) {
  .search input { width: 120px; }
  .brand-name { display: none; }
  .brand { margin-right: 4px; }
}
@media (max-width: 860px) {
  .only-mobile { display: inline-flex; }
  .topbar { padding: 6px 8px; gap: 4px; min-height: 56px; flex-wrap: wrap; }
  .brand { display: none; }
  .period { font-size: 17px; margin-left: 2px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .topbar > .spacer { display: none; }
  .nav-arrows .icon-btn, #settingsBtn, #menuBtn { width: 36px; height: 36px; }
  .search { order: 10; width: 100%; height: 36px; }
  .search input { width: 100%; }
  .seg { order: 11; width: 100%; margin-bottom: 4px; }
  .seg button { flex: 1; padding: 0 6px; }
  #todayBtn { padding: 0 12px; height: 32px; }
  .sidebar {
    position: absolute; z-index: 30; inset: 0 auto 0 0; width: 280px; box-shadow: var(--shadow-lg);
    transform: translateX(-105%); transition: transform .22s ease;
  }
  .sidebar.open { transform: none; }
  .scrim { display: block; position: absolute; inset: 0; background: rgba(0,0,0,.35); z-index: 25; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .scrim.show { opacity: 1; pointer-events: auto; }
  .create-btn { display: none; }
  .main { border-left: 0; }
  .fab {
    display: flex; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 56px; height: 56px;
    border-radius: 16px; border: 0; background: var(--accent-soft); color: var(--accent-text); box-shadow: var(--shadow-lg);
    align-items: center; justify-content: center; z-index: 20; cursor: pointer;
  }
  .fab svg { width: 26px; height: 26px; }
  .chip .tm { display: none; }
  .chip { padding: 0 3px; font-size: 11px; }
  .mcell { padding: 2px 1px; }
  .list { padding: 4px 8px 90px; }
  .list-day { grid-template-columns: 64px 1fr; gap: 4px; }
  .list-date { flex-direction: column; align-items: center; gap: 0; }
  .list-item { grid-template-columns: 12px 1fr; row-gap: 0; }
  .list-item .when { grid-column: 2; font-size: 12px; order: 2; }
  .list-item .what { grid-column: 2; }
  .dt-grid { grid-template-columns: 1fr 92px; }
  .dt-grid .dash { display: none; }
  .dt-grid.allday { grid-template-columns: 1fr 1fr; }
  .two { grid-template-columns: 1fr; }
  .modal { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .modal.small { height: auto; border-radius: 20px; margin: auto; width: calc(100vw - 32px); }
  .modal form { max-height: 100dvh; height: 100%; }
  .modal.small form { height: auto; }
  .kbd-hint { display: none; }
  .wh-day .dn { font-size: 18px; width: 34px; height: 34px; line-height: 34px; }
  .toast { left: 16px; bottom: 88px; }
}
.field .link-btn { align-self: flex-start; }
.radio.disabled { opacity: .45; cursor: not-allowed; }
