/* {{PRODUCT_NAME}}. The minimal web style:
   white page, black ink and slate greys, Inter regular and semibold, 1 px rules, 6 px buttons.
   Colour comes from three places only: each calendar's own colour (its tile and its events),
   the provider logos, and the status chips (green done, blue planned, amber waiting, red failed). */
:root {
  --ink: #0F172A; --ink-soft: #1E293B; --body: #334155; --faint: #64748B; --slate: #94A3B8;
  --line: #E2E8F0; --rule: #D9DEE5; --shade: #F2F4F7; --page: #FFFFFF; --input: #CBD5E1;
  --panel: #F2F2F2; --panel-rule: #E3E3E3; --panel-label: #6B6B6B; --accent: #1F77B4;
  --status-bg: #F1F5F9; --hover-btn: #E2E7EE; --hover-soft: #F7F8FA;
  --ok: #166534; --ok-bg: #E7F5EC; --blue: #1B5E8F; --blue-bg: #E6F0F8; --warn: #9A5B05; --warn-bg: #FDF1DD; --bad: #9B1C1C; --bad-bg: #FCE9E9;
  --now: #E5484D;
  --top: 72px; --coral: #EF5350; --rail: 72px; --bar: 0px; --hour: 72px; --gutter: 76px; --night: #0E1A27;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
b, strong, .semi { font-weight: 500; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.faint { color: var(--faint); }
svg.i { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.kbd { display: inline-block; min-width: 20px; padding: 0 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; font-size: 12px; line-height: 18px; text-align: center; color: var(--body); background: #fff; }

/* buttons, inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border-radius: 6px; font-size: 14px; font-weight: 500; line-height: 1.3; cursor: pointer; transition: background-color .12s, border-color .12s; white-space: nowrap; }
.btn.dark { background: var(--ink); border: 1px solid var(--ink); color: #fff; }
.btn.dark:hover { background: var(--ink-soft); }
.btn.light { background: #fff; border: 1px solid var(--input); color: var(--ink); }
.btn.light:hover { border-color: var(--slate); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn.wide { width: 100%; font-size: 16px; padding: 11px 16px; }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.ib { width: 34px; height: 34px; border-radius: 8px; background: transparent; border: 0; color: #6B7280; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.ib:hover { background: rgba(15,23,42,.06); color: var(--ink); }
.ib:disabled { opacity: .3; cursor: default; background: none; }
.ib svg.i { width: 18px; height: 18px; }
.seg { display: inline-flex; border: 1px solid var(--input); border-radius: 6px; overflow: hidden; background: #fff; }
.seg button { background: transparent; border: 0; padding: 6px 12px; font-size: 14px; cursor: pointer; color: var(--body); }
.seg button + button { border-inline-start: 1px solid var(--input); }
.seg button:hover { background: var(--shade); }
.seg button.on { background: var(--ink); color: #fff; font-weight: 500; }
input[type=text], input[type=password], input[type=date], input[type=time], select {
  background: #fff; border: 1px solid var(--input); border-radius: 8px; padding: 8px 10px; font-size: 14px; outline: none; width: 100%; }
input:focus, select:focus { border-color: var(--ink); }
input.title-in { font-size: 18px; font-weight: 500; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 6px 0; }
input.title-in:focus { border-bottom-color: var(--ink); }
label.field { display: block; font-size: 14px; color: var(--faint); margin-bottom: 14px; }
label.field > span { display: block; margin-bottom: 6px; }
.err { color: #9B1C1C; font-size: 14px; margin-top: 10px; min-height: 1em; }
.note { font-size: 13px; color: var(--faint); margin-top: 8px; line-height: 1.5; }

/* the rail: one thin column of icons on the left; there is no top bar */
body[data-page] { padding-inline-start: var(--rail); }
.rail { position: fixed; inset-inline-start: 0; top: 0; bottom: 0; width: var(--rail); z-index: 30; background: #fff; border-inline-end: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; padding: 18px 0 14px; }
.rail-brand { display: block; border-radius: 10px; transition: transform .15s; }
.rail-brand:hover { transform: scale(1.06); }
.rail-brand svg.appic { width: 32px; height: 32px; display: block; }
.rail-name { display: none; }                  /* N5: the product's name beside the mark, on the wide sidebar only */
@media (min-width: 1024px) {
  .rail-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
  .rail-brand:hover { transform: none; }
  .rail-name { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
}
.rail-nav { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: auto 0; }
.rail-foot { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rail-foot form { margin: 0; display: flex; }
.rb { position: relative; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--slate); background: none; border: 0; cursor: pointer; text-decoration: none; transition: background-color .12s, color .12s; }
.rb svg.i { width: 20px; height: 20px; stroke-width: 1.7; }
.rb:hover { background: var(--shade); color: var(--ink); }
.rb.on { color: var(--ink); }
.rb.on::before { content: ""; position: absolute; inset-inline-start: -11px; top: 9px; bottom: 9px; width: 3px; border-start-start-radius: 0; border-start-end-radius: 3px; border-end-end-radius: 3px; border-end-start-radius: 0; background: var(--ink); }
.rb .bdg { position: absolute; top: 8px; inset-inline-end: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--now); box-shadow: 0 0 0 2px #fff; }
.rb .dot { width: 10px; height: 10px; }
.rb.spin .dot { animation: pulse 1s infinite; }
.rb.flip svg.i { transform: scaleX(-1); }
.rb[data-tip]:hover::after { content: attr(data-tip); position: absolute; inset-inline-start: calc(100% + 12px); top: 50%; transform: translateY(-50%); z-index: 80;
  background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.3; padding: 6px 10px; border-radius: 7px; white-space: nowrap; pointer-events: none;
  box-shadow: 0 6px 18px rgba(15,23,42,.18); }
@keyframes pulse { 50% { opacity: .2; } }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--shade); color: var(--body); font-size: 12px; line-height: 18px; text-align: center; font-weight: 500; }
.fab { position: fixed; inset-inline-end: 28px; bottom: 28px; z-index: 25; width: 56px; height: 56px; border-radius: 18px; border: 0; cursor: pointer; background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(15,23,42,.28); transition: transform .15s, box-shadow .15s, background-color .15s; }
.fab svg.i { width: 24px; height: 24px; stroke-width: 2; }
.fab:hover { transform: translateY(-2px); background: var(--ink-soft); box-shadow: 0 16px 36px rgba(15,23,42,.32); }
.banner { background: var(--status-bg); border-inline-start: 3px solid var(--accent); padding: 9px 24px; font-size: 14px; color: var(--body); }
.banner a { color: var(--ink); }

/* plain pages (Sync, Conflicts, Calendars, Activity) */
.page { max-width: 1440px; margin: 0 auto; padding: 36px 48px 64px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head { align-items: center; }
.page-head h1 { font-size: 30px; line-height: 1.25; letter-spacing: -.01em; font-weight: 500; margin: 0; }
.h1row { display: flex; align-items: center; gap: 14px; }
.page-head p { margin: 0; color: var(--body); max-width: 640px; line-height: 1.7; }
.stats { display: flex; gap: 48px; flex-wrap: wrap; padding: 4px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.stat .k { font-size: 13px; color: var(--faint); display: flex; align-items: center; gap: 7px; }
.stat .k svg.i { width: 14px; height: 14px; }
.stat.r { margin-inline-start: auto; text-align: end; }
.stat.r .k { justify-content: flex-end; }
.sq { width: 9px; height: 9px; border-radius: 3px; background: var(--slate); }
.sq.ok { background: #2F9E5B; } .sq.blue { background: var(--accent); } .sq.bad { background: #D64545; } .sq.warn { background: #E0A12E; }
.stat .v { font-size: 26px; font-weight: 500; font-variant-numeric: tabular-nums; }
h2 { font-size: 17px; line-height: 1.4; font-weight: 500; margin: 44px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
h2:first-child { margin-top: 0; }
h2 .aside { font-size: 14px; font-weight: 400; color: var(--faint); }
.toolrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.empty { color: var(--faint); padding: 18px 0; }
.empty-big { text-align: center; padding: 64px 16px; color: var(--faint); }
.empty-big .t { font-size: 17px; color: var(--ink); font-weight: 500; margin-bottom: 6px; }
.empty-big > svg.i { width: 30px; height: 30px; color: #2F9E5B; margin-bottom: 10px; stroke-width: 2; }
.clear { display: flex; align-items: center; gap: 10px; color: var(--body); padding: 14px 0 4px; }
.clear svg.i { width: 18px; height: 18px; color: #2F9E5B; stroke-width: 2.2; }

/* Walling grid table */
table.grid { width: 100%; border-collapse: collapse; }
.grid th { text-align: start; font-weight: 400; color: var(--faint); font-size: 14px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.grid th + th, .grid td + td { border-inline-start: 1px solid var(--line); }
.grid th .h { display: inline-flex; align-items: center; gap: 8px; }
.grid td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.grid td.num { white-space: nowrap; }
.grid tr.item { cursor: pointer; transition: background-color .12s; }
.grid tr.item:hover { background: var(--shade); }
.grid tr.sec td { font-weight: 500; padding-top: 18px; }
.grid td.r, .grid th.r { text-align: end; }
.grid td.x { width: 56px; text-align: center; }
.cal { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.xbtn { width: 28px; height: 28px; border-radius: 7px; background: var(--shade); display: inline-flex; align-items: center; justify-content: center; color: var(--faint); }
tr.item:hover .xbtn, button.line:hover .xbtn { background: var(--hover-btn); color: var(--ink); }
.list { display: none; }
.list .hdr { display: flex; justify-content: space-between; font-size: 14px; color: var(--faint); padding: 8px 0; border-bottom: 1px solid var(--line); }
.list .sec { font-weight: 500; padding: 16px 0 6px; }
.list button.line { display: flex; width: 100%; align-items: center; gap: 10px; text-align: start; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 11px 0; cursor: pointer; }
.list .line .nm { flex: 1; min-width: 0; }
.list .line .amt { color: var(--body); white-space: nowrap; font-size: 14px; }

/* summary (Walling, under a table) */
.summary { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px; }
.totals div { font-size: 17px; padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.totals div.big { font-size: 22px; font-weight: 500; border-bottom: 0; }
.info { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.info.flat { margin: 0; padding: 0; border: 0; }
.info .blk + .blk { margin-top: 16px; }
.info .blk div:first-child { font-weight: 500; }
.info .blk div + div { color: var(--body); }

/* calendars page */
.accs { border-top: 1px solid var(--line); }
.acc { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.4fr) 130px; gap: 28px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.acc .who { display: flex; align-items: center; gap: 18px; }
.acc-st { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cnt { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); font-size: 14px; }
.cnt b { color: var(--ink); margin-inline-end: 8px; }
.acc-flow { display: grid; gap: 8px; }
.acc-flow .k { width: 44px; }
.acc-btn { justify-self: end; }
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 44px; }
.rule { display: flex; gap: 12px; align-items: flex-start; }
.rule > svg.i { width: 18px; height: 18px; color: var(--faint); margin-top: 2px; }
.rule .t { font-weight: 500; }
.rule .d { color: var(--body); font-size: 14px; line-height: 1.5; margin-top: 2px; }
.acc .nm { font-size: 17px; font-weight: 500; }
.acc .sub { font-size: 14px; color: var(--faint); }
/* N1: the name renames where it is (a click, type, Enter) */
.acc button.nm-ed { display: block; max-width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 17px; font-weight: 500;
  text-align: start; cursor: text; border-radius: 4px; text-decoration: underline dotted transparent; text-underline-offset: 4px; }
.acc button.nm-ed:hover, .acc button.nm-ed:focus-visible { text-decoration-color: var(--slate); }
.acc .nm-in { display: block; width: 100%; max-width: 320px; font: inherit; font-size: 17px; font-weight: 500; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; margin-inline-start: -9px; }
/* N1: the name card's chips (the calendars' own chip look) */
.nm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.nm-chips .cchip { padding-inline: 12px; min-height: 32px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 500; }
.nm-chips .cchip.off { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.nm-chips .cchip.off:hover { border-color: var(--slate); }
.nm-chips .cchip:not(.off) { border: 1px solid var(--ink); background: var(--ink); color: #fff; }
.acc .k { font-size: 13px; color: var(--faint); }
.acc .v { color: var(--body); font-size: 14px; }
.status-ok { color: var(--ink); }
.status-bad { color: #9B1C1C; }
.device { margin-top: 16px; padding: 16px 18px; background: var(--status-bg); border-radius: 10px; font-size: 14px; color: var(--body); }
.device b { color: var(--ink); margin-inline-end: 6px; }
.copyrow { display: flex; gap: 8px; align-items: center; margin: 10px 0; flex-wrap: wrap; }
.copyrow code { font-size: 13px; background: #fff; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line); word-break: break-all; }
.msform { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 10px; align-items: end; }
.msform .field { margin: 0; }
@media (max-width: 767px) { .msform { grid-template-columns: 1fr; } }
.device .code { font-size: 30px; font-weight: 500; letter-spacing: .12em; font-variant-numeric: tabular-nums; margin: 6px 0; }

/* the floating card (Walling) */
.backdrop { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 60; align-items: center; justify-content: center; padding: 24px; }
.backdrop.open { display: flex; animation: fade .12s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.card { width: 1060px; max-width: 100%; min-height: min(560px, 82vh); max-height: 86vh; background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(15,23,42,.25); display: flex; overflow: hidden; }
.card.narrow { width: 620px; min-height: 0; }
.pane { flex: 1; padding-block: 22px 36px; padding-inline: 48px 40px; overflow: auto; }
.pane .top-row { display: flex; justify-content: flex-end; gap: 4px; margin-block: 0 6px; margin-inline: 0 -24px; }
.pane .sec { font-size: 14px; color: var(--faint); }
.pane .title { font-size: 30px; line-height: 1.25; letter-spacing: -.01em; font-weight: 500; margin: 4px 0 18px; }
.pane .desc { font-size: 16px; line-height: 1.75; color: var(--body); max-width: 640px; }
.pane .desc p { margin: 0 0 12px; }
.side { width: 34%; max-width: 360px; background: var(--panel); padding: 22px 32px; overflow: auto; }
.side .top-row { display: flex; justify-content: flex-end; margin-block: 0 10px; margin-inline: 0 -14px; }
.fld { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--panel-rule); }
.fld .l { display: flex; align-items: center; gap: 10px; color: var(--panel-label); font-weight: 500; font-size: 15px; }
.fld .l svg { color: #8A8A8A; }
.fld .v { font-size: 18px; line-height: 1.35; margin-top: 6px; word-break: break-word; }
.fld .v.small { font-size: 13px; color: var(--body); }
.form-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; }
.homes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.homes label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding-block: 6px; padding-inline: 7px 12px; cursor: pointer; font-size: 14px; }
.homes label:has(input:checked) { border-color: var(--ink); background: var(--shade); font-weight: 500; }
.homes input { position: absolute; opacity: 0; pointer-events: none; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--body); cursor: pointer; }
.check input { accent-color: var(--ink); margin: 0; }
.preview { font-size: 14px; color: var(--body); background: var(--status-bg); border-radius: 10px; padding: 10px 12px; margin: 4px 0 16px; }
.preview .row { display: flex; align-items: center; gap: 8px; }

/* popover (event details, quick create) */
.pop { position: fixed; z-index: 50; width: 360px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px rgba(15,23,42,.16); padding: 16px 18px 18px; animation: fade .1s ease-out; }
.pop .bar { height: 4px; border-radius: 2px; margin: -4px 0 12px; background: var(--c); }
.pop .x { position: absolute; top: 8px; inset-inline-end: 8px; }
.pop .pt { font-size: 18px; font-weight: 500; line-height: 1.35; padding-inline-end: 30px; }
.pop .pl { display: flex; align-items: center; gap: 10px; color: var(--body); font-size: 14px; margin-top: 10px; flex-wrap: wrap; }
.pop .pl > svg.i { color: var(--faint); }
.pop .ph { font-size: 13px; color: var(--faint); margin: 14px 0 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.pop .mr { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 5px 0; }
.pop .mr .s { margin-inline-start: auto; color: var(--faint); font-size: 13px; }
.pop .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.toast { position: fixed; inset-inline-start: 50%; bottom: 24px; transform: translateX(calc(-50% * var(--dir, 1))); z-index: 70; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14px; box-shadow: 0 8px 24px rgba(15,23,42,.2); }

/* ------------------------------------------------------------------ calendar page */
body[data-page=calendar] { overflow: hidden; }
.main-calendar { height: calc(100vh - var(--top)); height: calc(100dvh - var(--top)); }
.cal-shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); height: 100%; }
.cal-side { border-inline-end: 1px solid var(--line); padding: 18px 18px 24px; overflow: auto; }
.cal-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.cal-tool { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.cal-tool h1 { font-size: 20px; font-weight: 500; margin-block: 0; margin-inline: 6px 0; white-space: nowrap; letter-spacing: -.01em; }
.cal-tool .sp { flex: 1; }
.cal-tool .side-btn { display: none; }
.cal-body { flex: 1; min-height: 0; overflow: auto; position: relative; scrollbar-gutter: stable; }

/* time grid (week and day) */
.tg { position: relative; min-width: 100%; }
.tg-head { position: sticky; top: 0; z-index: 6; background: #fff; display: grid; grid-template-columns: var(--gutter) repeat(var(--cols), minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.tg-head .tz { font-size: 11px; color: var(--slate); align-self: end; padding-block: 0 6px; padding-inline: 0 6px; text-align: end; }
.dh { padding: 10px 8px 8px; display: flex; align-items: baseline; gap: 7px; cursor: pointer; border-inline-start: 1px solid transparent; }
.dh:hover .dn { background: var(--shade); }
.dh .wd { font-size: 12px; color: var(--faint); text-transform: none; }
.dh .dn { font-size: 22px; font-weight: 500; line-height: 1; padding: 4px 7px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.dh.today .dn { background: var(--ink); color: #fff; }
.dh.today .wd { color: var(--ink); font-weight: 500; }
.dh.past .dn { color: var(--slate); }
.dh.acc-h { align-items: center; gap: 14px; font-weight: 500; font-size: 15px; cursor: default; padding: 12px 10px; }
.dh.acc-h .sub { font-weight: 400; font-size: 12px; color: var(--faint); }
.tg-all { grid-column: 1 / -1; display: grid; grid-template-columns: var(--gutter) repeat(var(--cols), minmax(0, 1fr)); border-top: 1px solid var(--line); }
.tg-all .lab { font-size: 11px; color: var(--slate); text-align: end; padding-block: 7px 0; padding-inline: 0 6px; }
.tg-all .cell { border-inline-start: 1px solid var(--line); padding: 3px 3px 4px; display: flex; flex-direction: column; gap: 3px; min-height: 26px; }
.tg-body { display: grid; grid-template-columns: var(--gutter) repeat(var(--cols), minmax(0, 1fr)); }
.gut { position: relative; height: calc(24 * var(--hour)); }
.gut span { position: absolute; inset-inline-end: 8px; font-size: 11px; color: var(--slate); transform: translateY(-50%); font-variant-numeric: tabular-nums; }
.col { position: relative; height: calc(24 * var(--hour)); border-inline-start: 1px solid var(--line);
  background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px var(--hour)); cursor: cell; }
.col::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--hour) / 2), #F1F3F6 calc(var(--hour) / 2) calc(var(--hour) / 2 + 1px), transparent calc(var(--hour) / 2 + 1px) var(--hour)); }
.col.today { background-color: #F8FBFE; }
.col.weekend { background-color: #FCFCFD; }
.now { position: absolute; inset-inline-start: -1px; inset-inline-end: 0; height: 0; border-top: 2px solid var(--now); z-index: 5; pointer-events: none; }
.now::before { content: ""; position: absolute; inset-inline-start: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--now); }
.sel { position: absolute; inset-inline-start: 3px; inset-inline-end: 3px; z-index: 4; border-radius: 6px; background: rgba(15,23,42,.08); border: 1px solid var(--ink); font-size: 12px; padding: 3px 7px; color: var(--ink); font-weight: 500; pointer-events: none; }

.ev { position: absolute; z-index: 2; border-radius: 6px; padding-block: 3px; padding-inline: 9px 7px; font-size: 12.5px; line-height: 1.3; overflow: hidden; cursor: pointer;
  background: color-mix(in srgb, var(--c) 15%, #fff); border: 1px solid color-mix(in srgb, var(--c) 26%, #fff); color: var(--ink);
  transition: box-shadow .12s, transform .12s; }
.ev::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.ev:hover { box-shadow: 0 2px 10px rgba(15,23,42,.12); z-index: 7; }
.ev.active { box-shadow: 0 0 0 2px var(--ink); z-index: 8; }
.ev .tt { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev .tm { color: var(--body); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev .dots { position: absolute; inset-inline-end: 5px; bottom: 4px; display: flex; gap: 3px; }
.ev .dots .dot { width: 6px; height: 6px; }
.ev.short { padding-top: 1px; }
.ev.short .tt { display: inline; }
.ev.short .tm { display: inline; margin-inline-start: 6px; }
.ev.past { opacity: .58; }
.ev.skip { background: #fff; border: 1px dashed var(--input); color: var(--faint); }
.ev.skip::before { opacity: .45; }
.ev.skip .tt { font-weight: 400; }
.ev.skip.gone .tt { text-decoration: line-through; }
.ev.mirror { background: repeating-linear-gradient(135deg, #F1F4F7 0 5px, #fff 5px 10px); border: 1px solid var(--line); color: var(--body); }
.ev.planned { background: repeating-linear-gradient(135deg, #F1F4F7 0 5px, #fff 5px 10px); border: 1px dashed var(--slate); color: var(--body); }
.chip { position: relative; display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1.3; border-radius: 5px; padding: 2px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
  background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--ink); }
.chip:hover { background: color-mix(in srgb, var(--c) 22%, #fff); }
.chip.skip { background: #fff; color: var(--slate); border: 1px dashed var(--input); }
.chip.skip.gone { color: var(--faint); text-decoration: line-through; }
.chip.planned, .chip.mirror { background: repeating-linear-gradient(135deg, #F1F4F7 0 4px, #fff 4px 8px); border: 1px dashed var(--slate); color: var(--body); }
.chip.line { background: none; padding: 1px 4px; }
.chip.line:hover { background: var(--shade); }
.chip.line .tm { color: var(--faint); font-variant-numeric: tabular-nums; }
.chip.line .tt { overflow: hidden; text-overflow: ellipsis; }

/* month */
.mo { display: grid; grid-template-rows: auto repeat(6, minmax(110px, 1fr)); min-height: 100%; }
.mo-h, .mo-r { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mo-h div { font-size: 12px; color: var(--faint); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.mo-c { border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 4px 6px; min-width: 0; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.mo-c:nth-child(7n) { border-inline-end: 0; }
.mo-c:hover { background: var(--hover-soft); }
.mo-c .d { font-size: 12.5px; font-weight: 500; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; margin-block: 0 2px; margin-inline: 2px 0; font-variant-numeric: tabular-nums; }
.mo-c.out .d { color: var(--slate); font-weight: 400; }
.mo-c.today .d { background: var(--ink); color: #fff; }
.mo-c .more { font-size: 12px; color: var(--faint); padding: 1px 4px; border: 0; background: none; text-align: start; cursor: pointer; }
.mo-c .more:hover { color: var(--ink); }

/* agenda */
.ag { max-width: 920px; padding: 8px 28px 48px; }
.ag-day { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ag-day .dl { position: sticky; top: 8px; align-self: start; }
.ag-day .dl .n { font-size: 26px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.ag-day .dl .w { font-size: 13px; color: var(--faint); margin-top: 4px; }
.ag-day.today .dl .n { color: var(--now); }
.ag-row { display: grid; grid-template-columns: 120px 20px 1fr auto; gap: 12px; align-items: center; padding: 8px 8px; margin: 0 -8px; border-radius: 8px; cursor: pointer; }
.ag-row .cl .arr svg.i { width: 14px; height: 14px; color: var(--slate); }
.ag-row .ds { gap: 4px; }
.ag-row:hover { background: var(--shade); }
.ag-row .tm { color: var(--body); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ag-row .tt { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-row .cl { font-size: 13px; color: var(--slate); white-space: nowrap; justify-self: end; }
.ag-row .ds { display: flex; gap: 3px; }
.ag-row.skip .tt { font-weight: 400; color: var(--slate); }
.ag-row.skip.gone .tt { color: var(--faint); text-decoration: line-through; }
.ag-row.past { opacity: .6; }

/* help */
.keys { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 14px; color: var(--body); }

/* login */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.login { width: 340px; max-width: 100%; }
.login-mark svg.appic { width: 56px; height: 56px; display: block; }
.login-t { font-size: 30px; font-weight: 500; letter-spacing: -.01em; margin: 18px 0 10px; }
.login-dots { display: flex; gap: 6px; margin-bottom: 30px; }
.login-dots span { width: 22px; height: 5px; border-radius: 3px; }

/* ------------------------------------------------------------------ phones */
@media (max-width: 1023px) {
  .cal-shell { grid-template-columns: minmax(0, 1fr); }
  .cal-side { display: none; position: fixed; z-index: 40; top: var(--top); inset-inline-start: 0; bottom: 0; width: 290px; background: #fff; box-shadow: calc(8px * var(--dir, 1)) 0 30px rgba(15,23,42,.15); }
  .cal-side.open { display: block; }
  .cal-tool .side-btn { display: inline-flex; }
}
@media (max-width: 767px) {
  .page { padding: 24px 14px 48px; }
  .page-head h1 { font-size: 24px; }
  .stats { gap: 28px; }
  table.grid.collapse { display: none; }
  .list { display: block; }
  .summary { grid-template-columns: 1fr; gap: 28px; }
  .acc { grid-template-columns: 1fr; gap: 14px; }
  .acc-btn { justify-self: start; }
  .rules { grid-template-columns: 1fr; gap: 18px; }
  .stat.r { margin-inline-start: 0; text-align: start; }
  .stat.r .k { justify-content: flex-start; }
  .seg button .av { display: none; }
  .cal-tool { padding: 10px 10px; gap: 6px; flex-wrap: wrap; }
  .cal-tool h1 { font-size: 17px; order: 5; width: 100%; margin-block: 4px 0; margin-inline: 4px 0; }
  .seg button { padding: 6px 9px; font-size: 13px; }
  :root { --gutter: 44px; }
  .ag { padding: 4px 12px 40px; }
  .ag-day { grid-template-columns: 52px 1fr; gap: 10px; }
  .ag-row { grid-template-columns: 1fr auto; gap: 2px 10px; }
  .ag-row .tm { grid-column: 1 / -1; font-size: 13px; color: var(--faint); }
  .ag-row .dotc { display: none; }
  .mo { grid-template-rows: auto repeat(6, minmax(76px, 1fr)); }
  .mo-c .chip { font-size: 11px; padding: 1px 4px; }
  .backdrop { padding: 0; }
  .card { flex-direction: column; border-radius: 0; width: 100%; height: 100%; max-height: none; min-height: 0; }
  .pane { padding: 14px 16px 22px; flex: none; }
  .pane .title { font-size: 24px; }
  .side { width: 100%; max-width: none; flex: 1; padding: 18px 16px; }
  .side .top-row { display: none; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-row .full { grid-column: 1 / -1; }
  .pop { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: 100%; max-width: none; border-radius: 14px 14px 0 0; padding-bottom: 28px; } /* ltr: the script places the popover by its left edge; this beats that inline style */
}
@media print {
  .top, .banner, .cal-side, .cal-tool, .pop, .backdrop { display: none !important; }
}

/* ------------------------------------------------------------------ tiles, logos, chips, flows */
.av { --s: 24px; position: relative; width: var(--s); height: var(--s); border-radius: calc(var(--s) * .3); background: var(--c); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex: none; line-height: 1; transition: background-color .12s, box-shadow .12s; }
.av b { font-size: calc(var(--s) * .5); font-weight: 500; }
.av svg.i { width: 62%; height: 62%; stroke: #fff; stroke-width: 2; }
.av svg.lw { width: 72%; height: 72%; fill: #fff; }
.av.sm { --s: 18px; }
.av.lg { --s: 44px; }
.av .pv { position: absolute; inset-inline-end: -6px; bottom: -6px; width: 46%; height: 46%; min-width: 15px; min-height: 15px; background: #fff; border-radius: 50%; padding: 3px;
  box-shadow: 0 0 0 1px var(--line); display: flex; }
.av .pv svg { width: 100%; height: 100%; display: block; }
.pillc { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; line-height: 1.5;
  background: var(--shade); color: var(--body); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pillc .dot { width: 6px; height: 6px; background: currentColor; }
.pillc.ok { background: var(--ok-bg); color: var(--ok); }
.pillc.blue { background: var(--blue-bg); color: var(--blue); }
.pillc.warn { background: var(--warn-bg); color: var(--warn); }
.pillc.bad { background: var(--bad-bg); color: var(--bad); }
.nz { font-weight: 500; } .nz.ok { color: var(--ok); } .nz.blue { color: var(--blue); } .nz.bad { color: var(--bad); } .nz.warn { color: var(--warn); }
.flowrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.flowrow.tight { gap: 6px; flex-wrap: nowrap; }
.flowrow .k { font-size: 13px; color: var(--faint); }
.flowrow .arr svg.i, .arr svg.i { width: 15px; height: 15px; color: var(--slate); display: block; }
.flow { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--body); background: var(--shade); border-radius: 8px; padding-block: 4px; padding-inline: 5px 10px; }
.flow:not(:has(.av)) { padding-inline-start: 10px; }
.preview .flow { background: #fff; }
.flowrow.big { gap: 22px; margin: 6px 0 22px; }
.flowrow.big .arr svg.i { width: 22px; height: 22px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.srcline { display: flex; align-items: center; gap: 14px; color: var(--body); padding: 12px 0; border-top: 1px solid var(--line); }
.srcline > svg.i { color: var(--faint); }
.grid td.rt, .grid th.rt { width: 84px; }
.grid td .pillc { vertical-align: middle; }
.seg button { display: inline-flex; align-items: center; gap: 7px; }
.seg button.on .av { box-shadow: 0 0 0 1.5px #fff; }
.runrow { display: flex; align-items: center; gap: 14px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.list button.line .flowrow { flex: none; }
.cal { gap: 9px; }
.dh.acc-h .av { --s: 30px; }
.ev .tm { opacity: .9; }
.mini button.today::before { background: var(--ink); }

/* ------------------------------------------------------------------ rail layout: calendar page */
.main-calendar { height: calc(100vh - var(--bar)); height: calc(100dvh - var(--bar)); }
.cal-shell { grid-template-columns: 320px minmax(0, 1fr); }
.cal-shell.noside { grid-template-columns: minmax(0, 1fr); }
.cal-shell.noside .cal-side { display: none; }
.cal-side { padding: 0; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.wk-top { display: flex; align-items: center; gap: 4px; padding-block: 22px 0; padding-inline: 18px 20px; }
.wk-top .t { font-size: 14px; font-weight: 500; padding: 0 6px; font-variant-numeric: tabular-nums; }
.wk-top .ib { width: 30px; height: 30px; }
.wk-h { font-size: 34px; font-weight: 500; letter-spacing: -.025em; line-height: 1.1; padding: 22px 28px 0; }
.wk-h span, .cal-tool h1 span { font-weight: 400; color: var(--slate); }
.wk-cals { display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 26px 18px; border-bottom: 1px solid var(--line); }
.cchip { display: inline-flex; align-items: center; gap: 7px; padding-block: 4px; padding-inline: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; user-select: none; transition: border-color .12s, color .12s, background-color .12s; }
.cchip:hover { border-color: var(--slate); }
.cchip.off { color: var(--slate); font-weight: 400; }
.cchip.off .av { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.cchip.off .av svg.i { stroke: var(--slate); }
.cchip.off .av svg.lw { fill: var(--slate); }
.cchip.off .av b { color: var(--slate); }
.cchip.warn { color: var(--bad); border-color: #F3C9C9; }
.cchip.icon { padding: 4px 7px; color: var(--slate); margin-inline-start: auto; }
.cchip.icon.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.wk-list { flex: 1; min-height: 0; overflow: auto; position: relative; }
.wk-day { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 6px; padding-block: 24px 20px; padding-inline: 28px 22px; border-bottom: 1px solid var(--line); }
.wk-day.today { background: #F6F8FB; }
.wk-day .dl { display: flex; flex-direction: column; align-items: flex-start; background: none; border: 0; padding: 0; cursor: pointer; text-align: start; align-self: start; }
.wk-day .dl .L { font-size: 46px; font-weight: 500; line-height: .95; letter-spacing: -.03em; transition: color .12s; }
.wk-day .dl:hover .L { color: var(--accent); }
.wk-day .dl .n { margin-top: 10px; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.wk-day .dl .n span { font-weight: 400; color: var(--slate); margin-inline-start: 1px; }
.wk-day.past .dl .L, .wk-day.past .dl .n { color: var(--slate); }
.tchip { margin-top: 12px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 500; padding: 4px 9px; border-radius: 6px; box-shadow: 0 6px 14px rgba(31,119,180,.32); }
.wk-ev { position: relative; padding-block: 5px 6px; padding-inline: 20px 8px; margin-block: 0 4px; margin-inline: -6px -8px; border-radius: 8px; cursor: pointer; outline: none; }
.wk-ev:hover, .wk-ev:focus-visible { background: var(--shade); }
.wk-ev::before { content: ""; position: absolute; inset-inline-start: 7px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.wk-ev .tt { font-size: 14.5px; font-weight: 500; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-ev .tm { font-size: 12.5px; color: var(--faint); margin-top: 2px; font-variant-numeric: tabular-nums; }
.wk-ev.skip .tt { font-weight: 400; color: var(--faint); }
.wk-ev.skip::before { background: none; box-shadow: inset 0 0 0 1.5px var(--c); opacity: .6; }
.wk-ev.gone .tt { text-decoration: line-through; }
.wk-ev.past { opacity: .5; }
.wk-ev.next { padding-inline-start: 30px; }
.wk-ev.next::before { inset-inline-start: 6px; top: 14px; width: 16px; height: 2px; border-radius: 1px; background: var(--accent); }
.wk-ev.next .tm { color: var(--now); }
.wk-ev.next .tm b { font-weight: 500; }
.wk-more { font-size: 12.5px; color: var(--faint); background: none; border: 0; padding-block: 2px 0; padding-inline: 14px 0; cursor: pointer; }
.wk-more:hover { color: var(--ink); }
.wk-none { font-size: 13px; color: var(--slate); padding-block: 16px 0; padding-inline: 14px 0; }
.side-foot { margin: 0; padding: 10px 28px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--slate); display: flex; align-items: center; justify-content: space-between; }

.cal-tool { padding-block: 20px 16px; padding-inline: 22px 28px; border-bottom: 0; gap: 8px; }
.cal-tool h1 { font-size: 30px; letter-spacing: -.025em; margin-block: 0; margin-inline: 8px 0; line-height: 1.15; }
.tg-head { border-top: 1px solid var(--line); }
.gut .nowt { inset-inline-end: 4px; z-index: 3; background: var(--now); color: #fff; font-weight: 500; padding: 1px 5px; border-radius: 5px; }
.ev { border: 0; border-radius: 8px; padding-block: 5px 4px; padding-inline: 12px 9px; background: color-mix(in srgb, var(--c) 13%, #fff); }
.ev::before { width: 3px; }
.ev.short { padding-top: 2px; }
.sel { border-radius: 8px; border: 1px dashed var(--ink); background: rgba(15,23,42,.06); }

/* the dark card: a new entry */
.pop.dark, .card.dark { background: var(--night); color: #fff; border-color: var(--night); box-shadow: 0 24px 60px rgba(8,15,25,.45); }
.pop.dark { width: 380px; padding: 22px 24px 22px; border-radius: 14px; }
.ql { font-size: 12.5px; color: rgba(255,255,255,.5); margin: 16px 0 6px; }
.pop.dark .ql:first-of-type { margin-top: 0; }
.qw { display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; }
.qw b { font-size: 20px; color: #fff; font-weight: 500; }
.qw span { color: rgba(255,255,255,.45); }
:is(.pop, .card).dark input.title-in { background: transparent; color: #fff; border-bottom-color: rgba(255,255,255,.3); }
:is(.pop, .card).dark input.title-in:focus { border-bottom-color: #fff; }
:is(.pop, .card).dark input::placeholder { color: rgba(255,255,255,.4); }
:is(.pop, .card).dark :is(.note, .sec, label.field, .check) { color: rgba(255,255,255,.6); }
:is(.pop, .card).dark .ib { color: rgba(255,255,255,.6); }
:is(.pop, .card).dark .ib:hover { background: rgba(255,255,255,.1); color: #fff; }
:is(.pop, .card).dark .homes { margin-bottom: 4px; }
:is(.pop, .card).dark .homes label { border-color: rgba(255,255,255,.16); color: rgba(255,255,255,.75); }
:is(.pop, .card).dark .homes label:has(input:checked) { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }
:is(.pop, .card).dark .btn.dark { background: #fff; border-color: #fff; color: var(--night); }
:is(.pop, .card).dark .btn.dark:hover { background: #E6EAF0; }
:is(.pop, .card).dark .btn.light { background: transparent; border-color: rgba(255,255,255,.28); color: #fff; }
:is(.pop, .card).dark .btn.light:hover { border-color: #fff; }
:is(.pop, .card).dark :is(input[type=date], input[type=time]) { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; color-scheme: dark; }
:is(.pop, .card).dark .check input { accent-color: #fff; }
:is(.pop, .card).dark .err { color: #FCA5A5; }
.pop.dark .acts { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.pop.dark .acts .btn.dark { flex: 1; }
.card.dark .homes { margin: 18px 0 18px; }

/* ------------------------------------------------------------------ rail layout: small screens */
@media (max-width: 1023px) {
  .cal-shell, .cal-shell.noside { grid-template-columns: minmax(0, 1fr); }
  .cal-side, .cal-shell.noside .cal-side { display: none; position: fixed; z-index: 40; top: 0; inset-inline-start: var(--rail); bottom: var(--bar); width: 320px; max-width: 100vw; box-shadow: calc(8px * var(--dir, 1)) 0 30px rgba(15,23,42,.15); }
  .cal-side.open, .cal-shell.noside .cal-side.open { display: flex; }
  #colBtn { display: none; }
}
@media (max-width: 767px) {
  :root { --bar: 58px; }
  body[data-page] { padding-inline-start: 0; padding-bottom: var(--bar); }
  .rail { top: auto; inset-inline-end: 0; width: auto; height: var(--bar); flex-direction: row; justify-content: space-around; padding: 0 6px; border-inline-end: 0; border-top: 1px solid var(--line); }
  .rail-brand, #helpRail { display: none; }
  .rail-nav { flex-direction: row; margin: 0; gap: 2px; }
  .rail-foot { flex-direction: row; gap: 2px; }
  .rb.on::before { inset-inline-start: 10px; inset-inline-end: 10px; top: -8px; bottom: auto; width: auto; height: 3px; border-radius: 0 0 3px 3px; }
  .rb[data-tip]:hover::after { display: none; }
  .fab { inset-inline-end: 16px; bottom: calc(var(--bar) + 16px); width: 52px; height: 52px; }
  .toast { bottom: calc(var(--bar) + 16px); }
  .cal-side, .cal-shell.noside .cal-side { inset-inline-start: 0; width: 100%; }
  .cal-tool { padding: 12px 12px 10px; }
  .cal-tool h1 { font-size: 22px; }
  .wk-h { font-size: 30px; }
  .pop.dark { width: 100%; }
}
@media print { .rail, .fab { display: none !important; } body[data-page] { padding: 0; } }
.wk-top .sp { flex: 1; }
.wk-cals { flex-wrap: nowrap; }
.cchip { font-size: 12.5px; padding-block: 4px; padding-inline: 5px 10px; min-width: 0; }
.cchip span:last-child { min-width: 0; overflow-x: clip; overflow-y: visible; text-overflow: ellipsis; white-space: nowrap; }
.cchip.icon { margin-inline-start: 0; padding: 5px 7px; }
.wk-list, .cal-body { scrollbar-width: thin; scrollbar-color: var(--input) transparent; }
.cal-tool h1 { min-width: 0; overflow-x: clip; overflow-y: visible; text-overflow: ellipsis; }
.cal-tool .seg, .cal-tool .btn, .cal-tool .ib { flex: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .cal-tool h1 { font-size: 24px; } .cal-shell { grid-template-columns: 290px minmax(0, 1fr); } .cal-shell.noside { grid-template-columns: minmax(0, 1fr); } }
.wk-cals { flex-wrap: wrap; gap: 5px; padding-block: 18px; padding-inline: 20px 16px; }
.cchip { min-width: auto; }
:is(.pop, .card).dark .av { box-shadow: 0 0 0 1px rgba(255,255,255,.28); }
.wk-x { display: none; }
@media (max-width: 1023px) { .wk-x { display: inline-flex; margin-inline-start: 4px; } }

/* ------------------------------------------------------------------ second pass: top bar, views on the rail, the event card */
.tbar { position: sticky; top: 0; z-index: 28; height: var(--top); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px;
  padding: 0 28px; background: #F7F8FA; border-bottom: 1px solid var(--line); }
.bar-l { display: flex; align-items: center; gap: 22px; min-width: 0; }
.bar-r { display: flex; align-items: center; justify-content: flex-end; gap: 18px; min-width: 0; }
.bar-t { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.tabs { display: flex; gap: 4px; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 8px; text-decoration: none; color: var(--faint); font-size: 14px; }
.tabs a:hover { color: var(--ink); background: rgba(15,23,42,.05); }
.tabs a.on { color: var(--ink); font-weight: 500; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.08), 0 0 0 1px var(--line); }
.has-menu { position: relative; }
.search { display: flex; align-items: center; gap: 10px; color: var(--slate); width: min(360px, 100%); }
.search svg.i { width: 18px; height: 18px; }
.search input { border: 0; background: transparent; padding: 8px 0; font-size: 14.5px; color: var(--ink); width: 100%; outline: none; }
.search input::placeholder { color: var(--slate); }
.search input::-webkit-search-cancel-button { display: none; }
.search:focus-within { color: var(--ink); }
.inv, .user, .sdot { display: inline-flex; align-items: center; gap: 9px; background: none; border: 0; cursor: pointer; font-size: 14px; color: var(--faint); padding: 8px 10px; border-radius: 10px; white-space: nowrap; }
.inv:hover, .user:hover, .sdot:hover { background: rgba(15,23,42,.05); color: var(--ink); }
.inv svg.i { width: 18px; height: 18px; }
.inv svg.i:last-child, .user svg.i:last-child { width: 14px; height: 14px; }
.inv.has { color: var(--ink); }
.inv.has svg.i:first-child { color: var(--coral); }
.sdot { font-size: 13px; font-variant-numeric: tabular-nums; }
.sdot .dot { width: 8px; height: 8px; }
.tbar.spin .sdot .dot { animation: pulse 1s infinite; }
.user { color: var(--ink); font-weight: 500; }
.uav { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; }
.menu { display: none; position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 45; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(15,23,42,.16); padding: 6px; }
.menu.open { display: block; animation: fade .1s ease-out; }
.menu.right { inset-inline-start: auto; inset-inline-end: 0; }
.menu.center { inset-inline-start: 50%; transform: translateX(calc(-50% * var(--dir, 1))); }
.menu.wide { width: 380px; max-width: calc(100vw - 32px); }
.menu form { margin: 0; }
.mrow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: start; text-decoration: none; color: var(--ink); font-size: 14px; }
.mrow:hover { background: var(--shade); }
.mrow svg.i { color: var(--faint); }
.mrow .tt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.mrow .tm { color: var(--faint); font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mnone { padding: 12px 10px; color: var(--faint); font-size: 14px; }

.rail-nav { gap: 10px; }
.rail-sep { width: 22px; height: 1px; background: var(--line); margin: 6px 0; }
.rail-foot { min-height: 42px; }
.main-calendar { height: calc(100vh - var(--top) - var(--bar)); height: calc(100dvh - var(--top) - var(--bar)); }
.cal-tool { padding-block: 22px 14px; padding-inline: 22px 28px; }
.cal-tool h1 { order: 1; font-size: 32px; }
.cal-tool .sp { order: 2; }
.cal-tool #tToday { order: 3; }
.wk-h { font-size: 36px; }
.wk-day.today { background: #F4F6F9; }

/* grid cards: softer, with their length on the right */
.ev { padding-block: 7px 5px; padding-inline: 13px 10px; background: color-mix(in srgb, var(--c) 11%, #fff); }
.ev .tt { font-size: 13px; }
.ev .tm { display: flex; justify-content: space-between; gap: 8px; margin-top: 1px; }
.ev .tm span:first-child { overflow: hidden; text-overflow: ellipsis; }
.ev .du { color: color-mix(in srgb, var(--c) 75%, #000); font-weight: 500; flex: none; }
.ev.short { padding-top: 2px; }
.ev.short .tm { display: inline; }
.sel { background: color-mix(in srgb, var(--accent) 9%, #fff); border: 1px dashed color-mix(in srgb, var(--accent) 55%, #fff); color: var(--blue); }
.nowbig { position: absolute; inset-inline-start: 18px; z-index: 6; transform: translateY(-50%); display: flex; align-items: center; gap: 16px; pointer-events: none;
  background: linear-gradient(calc(90deg * var(--dir, 1)), rgba(255,255,255,.96) 70%, rgba(255,255,255,0)); padding-block: 4px; padding-inline: 10px 40px; }
.nowbig b { font-size: 34px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.nowbig span { font-size: 12.5px; color: var(--now); line-height: 1.35; }
.nowbig i { font-style: normal; font-weight: 500; font-size: 14px; }

/* the + button sits in the corner */
.fab { inset-inline-end: 0; bottom: var(--bar); width: 72px; height: 72px; border-start-start-radius: 16px; border-start-end-radius: 0; border-end-end-radius: 0; border-end-start-radius: 0; background: var(--coral); box-shadow: 0 10px 30px rgba(239,83,80,.35); }
.fab:hover { background: #E53935; transform: none; box-shadow: 0 12px 34px rgba(239,83,80,.45); }
.fab svg.i { width: 26px; height: 26px; stroke-width: 1.8; }

/* the new-event card */
.pop.nepop { width: 640px; padding: 0; border-radius: 10px; overflow: visible; }
.pop.nepop > .x { top: 12px; inset-inline-end: 12px; z-index: 2; }
.pop.ar-l::before, .pop.ar-r::before { content: ""; position: absolute; top: var(--ay, 40px); width: 14px; height: 14px; background: var(--night); transform: rotate(45deg); }
.pop.ar-l::before { left: -6px; } .pop.ar-r::before { right: -6px; } /* ltr: the script picks ar-l or ar-r from the popover's screen position */
.pop:not(.dark).ar-l::before, .pop:not(.dark).ar-r::before { display: none; }
.ne-cols { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 36px; padding: 34px 40px 22px; }
.ne .ql { font-size: 13px; color: rgba(255,255,255,.5); margin: 0 0 10px; }
.ne input.title-in { font-size: 17px; font-weight: 400; padding: 4px 0 10px; border-bottom-width: 2px; }
.ne-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.ne-row > span { color: rgba(255,255,255,.5); }
.ne-row.stack { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 22px; }
.ne-row:last-child { border-bottom: 0; }
.ne-row input[type=date] { width: auto; padding: 5px 8px; font-weight: 500; }
.ne .homes { margin: 0; gap: 6px; }
.ne .homes label { padding-block: 5px; padding-inline: 6px 10px; font-size: 13px; }
.sw { position: relative; display: inline-flex; cursor: pointer; }
.sw input { position: absolute; opacity: 0; }
.sw i { width: 38px; height: 22px; border-radius: 11px; background: rgba(255,255,255,.18); transition: background-color .15s; position: relative; display: block; }
.sw i::after { content: ""; position: absolute; inset-inline-start: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.sw input:checked + i { background: var(--accent); }
.sw input:checked + i::after { transform: translateX(calc(16px * var(--dir, 1))); }
.sw input:focus-visible + i { box-shadow: 0 0 0 2px rgba(255,255,255,.5); }
.ne-r { display: flex; flex-direction: column; }
svg.dial { width: 210px; height: 210px; margin: 0 auto; display: block; touch-action: none; user-select: none; }
.dial .tk { stroke: rgba(255,255,255,.22); stroke-width: 1; }
.dial .tk.b { stroke: rgba(255,255,255,.5); stroke-width: 1.4; }
.dial .deco { fill: none; stroke-width: 2.5; stroke-linecap: round; opacity: .9; }
.dial .c1 { stroke: #EF5350; } .dial .c2 { stroke: #F4C152; } .dial .c3 { stroke: #2F8FDD; }
.dial .hub { fill: #142434; cursor: pointer; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.dial .hub:hover { fill: #1A2D40; }
.dial .dt { fill: #fff; font-size: 24px; font-weight: 500; text-anchor: middle; pointer-events: none; font-variant-numeric: tabular-nums; }
.dial .ds { fill: rgba(255,255,255,.6); font-size: 12.5px; text-anchor: middle; pointer-events: none; }
.dial .span { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; }
.dial .hd { fill: #fff; cursor: grab; filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); }
.dial .hd:active { cursor: grabbing; }
.dial.off { opacity: .35; pointer-events: none; }
.ne-ft { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.ne-ft label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: rgba(255,255,255,.5); }
.ne-ft input[type=time] { width: auto; padding: 4px 6px; font-weight: 500; font-size: 14.5px; background: transparent !important; border-color: transparent !important; }
.ne-ft input[type=time]:hover, .ne-ft input[type=time]:focus { border-color: rgba(255,255,255,.25) !important; }
.ne .err { margin: 0; padding: 0 40px 14px; min-height: 0; color: rgba(255,255,255,.55); font-size: 13px; }
.ne-save { display: block; width: 100%; border: 0; border-top: 1px solid rgba(255,255,255,.1); background: transparent; color: #fff; font-size: 17px; font-weight: 400; padding: 22px 16px; cursor: pointer;
  border-radius: 0 0 10px 10px; transition: background-color .15s; }
.ne-save:hover:not(:disabled) { background: rgba(255,255,255,.07); }
.ne-save:disabled { color: rgba(255,255,255,.35); cursor: not-allowed; }

@media (max-width: 1023px) {
  .sdot .lbl, .inv span { display: none; }
  .tbar { gap: 8px; padding: 0 14px; }
}
@media (max-width: 767px) {
  :root { --top: 54px; }
  #uname { display: none; }
  .bar-t { display: none; }
  .tabs a { padding: 6px 9px; font-size: 13px; }
  .user { padding: 4px; } .bar-r { gap: 2px; }
  .rail-sep, .rail-foot { display: none; }
  .rail-nav { width: 100%; justify-content: space-around; }
  .cal-side, .cal-shell.noside .cal-side { top: var(--top); }
  .cal-tool h1 { font-size: 22px; }
  .fab { width: 60px; height: 60px; }
  .pop.nepop { width: 100%; max-height: calc(100dvh - 20px); overflow: auto; border-radius: 14px 14px 0 0; padding-bottom: 0; }
  .pop.ar-l::before, .pop.ar-r::before { display: none; }
  .ne-cols { grid-template-columns: 1fr; gap: 18px; padding: 26px 20px 12px; }
  .ne .err { padding: 0 20px 12px; }
  svg.dial { width: 180px; height: 180px; }
  .menu.wide { position: fixed; inset-inline-start: 12px; inset-inline-end: 12px; top: calc(var(--top) + 4px); width: auto; transform: none; }
}
@media print { .tbar { display: none !important; } }

/* ------------------------------------------------------------------ third pass: the finish
   One light geometric face, three weights with a job each (300 the quiet half of a title, 400 text, 700 the day letters and
   title words). Lines and boxes are gone wherever spacing can do the work. */
:root { --ink: #0D1722; --ink-soft: #1B2734; --body: #2F3A46; --faint: #5B6570; --slate: #848D97; --line: #E1E6EB; --rule: #E1E6EB; --shade: #F4F6F8;
  --input: #D9DEE3; --accent: #2F95E5; --blue: #1F6FB2; --now: #E5534B; --quiet: #6B747E; }
body { font-size: 14px; letter-spacing: .01em; }
b, strong, .semi { font-weight: 500; }

/* rail and top bar */
.rail { border-inline-end: 1px solid #F0F2F4; padding: 22px 0 18px; }
.rail-brand svg.appic { width: 34px; height: 34px; }
.rail-nav { gap: 18px; }
.rb { color: #8D96A0; width: 44px; height: 44px; }
.rb svg.i { width: 22px; height: 22px; stroke-width: 1.5; }
.rb:hover { background: none; color: var(--body); }
.rb.on { color: var(--ink); }
.rb.on svg.i { stroke-width: 1.9; }
.rb.on::before { display: none; }
.rail-sep { background: none; margin: 0; height: 6px; }
.rb[data-tip]:hover::after { font-weight: 400; font-size: 12.5px; letter-spacing: .02em; border-radius: 6px; padding: 6px 11px; }
.tbar { background: #F8F9FA; border-bottom: 0; padding-block: 0; padding-inline: 34px 40px; }
.search { gap: 14px; color: #7C858F; width: min(420px, 100%); }
.search input { font-size: 15px; letter-spacing: .01em; }
.search input::placeholder { color: #7C858F; }
.inv, .sdot { color: #55606B; font-size: 14.5px; gap: 11px; }
.inv:hover, .user:hover, .sdot:hover { background: none; color: var(--ink); }
.sdot { font-size: 13px; color: #7C858F; }
.user { font-weight: 400; font-size: 14.5px; color: var(--body); gap: 12px; }
.uav { width: 34px; height: 34px; font-weight: 500; }
.menu { border: 0; border-radius: 10px; box-shadow: 0 18px 50px rgba(13,23,34,.14), 0 0 0 1px rgba(13,23,34,.04); padding: 8px; }
.mrow .tt { font-weight: 400; }
.tabs a.on { font-weight: 500; }
.bar-t { font-weight: 500; }

/* the week list */
.cal-shell { grid-template-columns: 348px minmax(0, 1fr); }
.cal-side { border-inline-end: 1px solid #F0F2F4; }
.wk-top { padding-block: 34px 0; padding-inline: 26px 28px; gap: 2px; }
.wk-top .t { font-size: 15px; font-weight: 400; padding: 0 10px; color: var(--ink); }
.wk-top .ib { color: var(--quiet); }
.wk-top .ib:hover, .cal-tool .ib:hover { background: none; color: var(--ink); }
.wk-h { font-size: 44px; font-weight: 700; letter-spacing: -.015em; padding: 38px 36px 0; }
.wk-h span, .cal-tool h1 span { font-weight: 300; color: var(--quiet); }
.wk-cals { border-bottom: 0; padding: 24px 36px 30px; gap: 20px; }
.cchip { border: 0; padding: 0; background: none; border-radius: 0; font-size: 13px; font-weight: 400; color: var(--body); gap: 8px; }
.cchip .dot { width: 7px; height: 7px; }
.cchip:hover { color: var(--ink); }
.cchip.off { color: var(--slate); }
.cchip.off .dot { background: transparent !important; box-shadow: inset 0 0 0 1.5px var(--slate); }
.cchip.icon { padding: 6px; border-radius: 8px; color: var(--slate); }
.cchip.icon.on { background: none; border: 0; color: var(--ink); }
.wk-day { border-bottom: 0; grid-template-columns: 96px minmax(0, 1fr); gap: 0; padding-block: 34px 12px; padding-inline: 36px 28px; }
.wk-day.today { background: #F6F7F9; }
.wk-day .dl .L { font-size: 56px; font-weight: 700; letter-spacing: -.02em; line-height: .9; }
.wk-day .dl:hover .L { color: var(--ink); }
.wk-day .dl .n { margin-top: 16px; font-size: 16px; font-weight: 700; }
.wk-day .dl .n span { font-weight: 300; color: var(--faint); margin-inline-start: 3px; }
.wk-day.past .dl .L, .wk-day.past .dl .n { color: #99A1AA; }
.tchip { margin-top: 16px; background: #3D9BE9; font-weight: 400; font-size: 12.5px; letter-spacing: .02em; padding: 5px 11px; border-radius: 5px; box-shadow: 0 8px 18px rgba(61,155,233,.35); }
.wk-ev { padding: 2px 0 0; margin: 0 0 24px; border-radius: 0; }
.wk-ev:hover, .wk-ev:focus-visible { background: none; }
.wk-ev:hover .tt { color: var(--accent); }
.wk-ev::before { display: none; }
.wk-ev .tt { font-size: 15px; font-weight: 500; letter-spacing: .015em; line-height: 1.3; transition: color .12s; }
.wk-ev .tm { font-size: 13px; color: var(--faint); margin-top: 9px; letter-spacing: .03em; }
.wk-ev .tm::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--c); margin-inline-end: 9px; vertical-align: 1px; }
.wk-ev.skip .tt { font-weight: 400; color: var(--faint); }
.wk-ev.skip .tm::before { background: none; box-shadow: inset 0 0 0 1.5px var(--c); opacity: .6; }
.wk-ev.next { padding-inline-start: 42px; }
.wk-ev.next::before { display: block; inset-inline-start: 0; top: 11px; width: 28px; height: 2px; border-radius: 1px; background: #3D9BE9; }
.wk-ev.next .tm { color: var(--now); }
.wk-ev.next .tm::before { display: none; }
.wk-ev.next .tm b { font-weight: 700; }
.wk-more { padding: 0; margin: -8px 0 22px; font-size: 13px; }
.wk-none { padding: 14px 0 22px; font-size: 13.5px; color: #99A1AA; }
.side-foot { border-top: 0; padding: 12px 36px; color: #99A1AA; }

/* the calendar */
.cal-tool { flex-wrap: wrap; row-gap: 20px; padding-block: 34px 22px; padding-inline: 34px 44px; }
.cal-tool .ib { color: var(--quiet); }
.cal-tool h1 { order: 5; flex-basis: 100%; font-size: 44px; font-weight: 700; letter-spacing: -.015em; margin-block: 0; margin-inline: 8px 0; line-height: 1.05; }
.cal-tool .btn.light { border: 0; background: none; padding: 6px 4px; font-weight: 400; font-size: 14.5px; color: var(--faint); }
.cal-tool .btn.light:hover { color: var(--ink); }
.tg-head { border-top: 0; border-bottom: 0; padding-bottom: 6px; }
.tg-head .tz { color: #99A1AA; font-size: 11.5px; }
.dh { padding: 8px 12px 12px; gap: 9px; }
.dh .wd { font-size: 13px; color: var(--quiet); letter-spacing: .03em; }
.dh .dn { font-size: 20px; font-weight: 400; padding: 0; color: var(--faint); }
.dh:hover .dn { background: none; color: var(--ink); }
.dh.today .dn { background: none; color: var(--ink); font-weight: 700; }
.dh.today .wd { color: var(--accent); font-weight: 400; }
.dh.past .dn { color: #99A1AA; }
.dh.acc-h { font-weight: 500; font-size: 15px; }
.tg-all { border-top: 0; }
.tg-all .lab { color: #99A1AA; font-size: 11.5px; }
.tg-all .cell { border-inline-start: 0; padding: 2px 6px 6px; gap: 4px; }
.gut span { inset-inline-end: 26px; font-size: 13px; color: var(--faint); letter-spacing: .03em; }
.gut { background: repeating-linear-gradient(to bottom, #CDD3D9 0 1px, transparent 1px calc(var(--hour) / 4)) right 8px top / 8px 100% no-repeat; } /* ltr: the ticks sit on the days' side; the rtl rule below moves them */
[dir="rtl"] .gut { background-position: left 8px top; }
.gut .nowt { inset-inline-end: 22px; background: none; color: var(--ink); font-weight: 700; font-size: 13px; padding: 0 4px; background: #fff; border-radius: 0; }
.col { border-inline-start: 1px solid #F3F5F7; background-image: repeating-linear-gradient(to bottom, #F3F5F7 0 1px, transparent 1px var(--hour)); }
.col::after { display: none; }
.col.today, .col.weekend { background-color: transparent; }
.now { border-top: 2px solid #3D9BE9; inset-inline-start: 0; }
.now::before { display: none; }
.ev { border: 0; border-top: 1px dashed color-mix(in srgb, var(--c) 34%, #fff); border-bottom: 1px dashed color-mix(in srgb, var(--c) 34%, #fff); border-radius: 3px;
  background: color-mix(in srgb, var(--c) 8%, #fff); padding-block: 11px 8px; padding-inline: 14px 12px; font-size: 13px; }
.ev::before { display: none; }
.ev:hover { box-shadow: 0 10px 30px rgba(13,23,34,.10); }
.ev.active { box-shadow: 0 0 0 1.5px var(--ink); }
.ev .tt { font-size: 14px; font-weight: 500; letter-spacing: .015em; }
.ev .tm { font-size: 12.5px; color: var(--faint); margin-top: 5px; letter-spacing: .03em; opacity: 1; }
.ev .du { color: color-mix(in srgb, var(--c) 60%, #2F95E5); font-weight: 500; }
.ev.short { padding-block: 4px 3px; padding-inline: 14px 12px; }
.ev.skip { border: 1px dashed var(--input); background: #fff; }
.chip { border-radius: 3px; padding: 4px 9px; font-size: 12.5px; background: color-mix(in srgb, var(--c) 9%, #fff); }
.chip.skip { border: 0; background: none; color: var(--slate); padding-inline-start: 6px; }
.sel { border-radius: 3px; border: 0; border-top: 1px dashed #8DBFEA; border-bottom: 1px dashed #8DBFEA; background: #EEF5FC; color: var(--blue); font-weight: 400; padding: 8px 12px; }
.nowbig { inset-inline-start: 4px; gap: 18px; padding-block: 6px; padding-inline: 12px 60px; }
.nowbig b { font-size: 44px; font-weight: 500; letter-spacing: -.01em; }
.nowbig span { font-size: 13.5px; letter-spacing: .03em; }
.nowbig i { font-weight: 700; font-size: 15px; }
.mo-h div { border-bottom: 0; color: var(--quiet); padding: 8px 14px; }
.mo-c { border-color: #E6EAEE; padding: 8px 8px 8px; }
.mo-c .d { font-weight: 500; color: var(--ink); }
.mo-c.today .d { background: none; color: var(--ink); font-weight: 700; }
.mo-c.out .d { color: var(--slate); font-weight: 400; }
.ag { padding: 8px 44px 48px; }
.ag-day { border-bottom: 0; padding: 22px 0; }
.ag-day .dl .n { font-size: 34px; font-weight: 700; }
.ag-row .tt { font-weight: 500; }

/* event details */
.pop { border: 0; border-radius: 8px; box-shadow: 0 24px 60px rgba(13,23,34,.18), 0 0 0 1px rgba(13,23,34,.04); padding: 22px 24px 22px; }
.pop .bar { height: 3px; border-radius: 0; margin: -22px -24px 18px; border-radius: 8px 8px 0 0; }
.pop .pt { font-size: 19px; font-weight: 500; }
.pillc { font-weight: 400; }

/* the save-event card */
.fab { width: 76px; height: 76px; border-start-start-radius: 10px; border-start-end-radius: 0; border-end-end-radius: 0; border-end-start-radius: 0; }
.fab svg.i { width: 28px; height: 28px; stroke-width: 1.4; }
.pop.nepop { width: 690px; border-radius: 6px; padding: 0; }
.pop.nepop > .x { top: 14px; inset-inline-end: 14px; }
/* never taller than the window: the form scrolls inside the card and Save stays in view at its foot */
.pop.nepop { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
.pop.nepop > .ne { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.pop.nepop .ne-save { position: sticky; bottom: 0; z-index: 1; }
:root .pop.nepop.dark .ne-save:disabled { background: linear-gradient(var(--g-pill), var(--g-pill)) var(--g-strong); }   /* the dark pill is see-through */
.ne-cols { grid-template-columns: minmax(0, 1fr) 270px; gap: 52px; padding: 46px 52px 26px; }
.ne .ql { font-size: 14px; color: #8794A1; margin: 0 0 16px; letter-spacing: .02em; }
.ne input.title-in { font-size: 18px; font-weight: 400; padding: 2px 0 12px; border-bottom: 2px solid #fff; letter-spacing: .015em; }
.ne-row { padding: 22px 0; font-size: 15px; border-bottom-color: rgba(255,255,255,.09); }
.ne-row > span { color: #8794A1; letter-spacing: .02em; }
.ne-row.stack { gap: 14px; padding-top: 30px; }
.ne .homes { gap: 22px; }
:is(.pop, .card).dark .ne .homes label, .ne .homes label { border: 0; padding: 0; background: none !important; gap: 8px; font-size: 15px; font-weight: 400; color: #8794A1; }
:is(.pop, .card).dark .ne .homes label:has(input:checked) { color: #fff; font-weight: 500; }
.ne .homes label .dot { width: 8px; height: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.ne-row input[type=date] { background: transparent !important; border-color: transparent !important; padding: 2px 0; font-weight: 500; font-size: 15px; text-align: end; }
svg.dial { width: 224px; height: 224px; }
.dial .dt { font-size: 23px; font-weight: 500; }
.dial .span { stroke-width: 3; }
.dial .hd { r: 8px; }
.ne-ft { margin-top: 18px; }
.ne-ft label { font-size: 14px; color: #8794A1; }
.ne-ft input[type=time] { font-weight: 500; font-size: 15px; }
.ne .err { padding: 0 52px 16px; }
.ne-save { font-size: 19px; font-weight: 400; letter-spacing: .02em; padding: 28px 16px; border-radius: 0 0 6px 6px; }

@media (min-width: 1024px) and (max-width: 1365px) {
  .cal-shell { grid-template-columns: 300px minmax(0, 1fr); }
  .cal-tool h1, .wk-h { font-size: 36px; }
  .wk-day { grid-template-columns: 78px minmax(0, 1fr); padding-inline-start: 28px; }
  .wk-h, .wk-cals { padding-inline-start: 28px; }
  .wk-day .dl .L { font-size: 48px; }
}
@media (max-width: 767px) {
  :root { --top: 58px; --gutter: 52px; }
  .tbar { padding: 0 14px; }
  .cal-tool { padding: 18px 16px 12px; row-gap: 10px; }
  .cal-tool h1, .wk-h { font-size: 30px; }
  .gut { background: none; } .gut span { inset-inline-end: 8px; font-size: 11.5px; }
  .ev { padding: 6px 8px; }
  .ne-cols { padding: 28px 22px 12px; gap: 20px; grid-template-columns: 1fr; }
  .pop.nepop { width: 100%; max-height: calc(100dvh - 20px); border-radius: 14px 14px 0 0; }   /* the 690 px above is the desktop card */
  .mo-c { padding-inline: 3px; }                  /* a month cell is 55 px: room for the dot and a whole time, in both directions */
  .mo-c .chip { gap: 4px; padding-inline: 2px; }
  .ne .err { padding: 0 22px 12px; }
  .fab { width: 62px; height: 62px; }
  .rail-nav { gap: 0; }
}
.wk-list { scrollbar-width: none; }
.wk-list::-webkit-scrollbar { display: none; }
.cal-body { scrollbar-gutter: auto; }
.wk-ev .tt { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
:is(.pop, .card).dark .ne .err.muted { color: #8794A1; }

/* ------------------------------------------------------------------ tasks: a board, one column per day */
.wk-tasks { display: inline-flex; align-items: center; gap: 7px; margin: -6px 0 22px; font-size: 13px; color: var(--faint); text-decoration: none; letter-spacing: .02em; }
.wk-tasks svg.i { width: 15px; height: 15px; }
.wk-tasks:hover { color: var(--accent); }
.kb { padding-bottom: 80px; }
.kb .cal-tool { padding-bottom: 8px; }
.kb-legend { display: flex; gap: 20px; padding-block: 14px 26px; padding-inline: 42px 44px; }
.kb-cols { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; align-items: start; padding-block: 0; padding-inline: 34px 44px; }
.kb-col { background: #F7F8FA; border-radius: 12px; padding: 18px 10px 12px; min-height: 240px; }
.kb-col.today { background: #EEF5FC; }
.kb-h { display: flex; align-items: baseline; gap: 9px; padding: 0 8px 16px; flex-wrap: wrap; }
.kb-h .L { font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.kb-h .n { font-size: 15px; font-weight: 700; }
.kb-h .n span { font-weight: 300; color: var(--faint); margin-inline-start: 2px; }
.kb-h .tchip { margin: 0; align-self: center; box-shadow: none; padding: 3px 8px; font-size: 11.5px; }
.kb-h .cnt { margin-inline-start: auto; font-size: 13px; color: var(--slate); }
.kb-col.past .kb-h .L, .kb-col.past .kb-h .n { color: #99A1AA; }
.kb-card { position: relative; background: #fff; border-radius: 9px; padding-block: 12px 11px; padding-inline: 40px 12px; margin-bottom: 8px; cursor: pointer; outline: none;
  box-shadow: 0 1px 2px rgba(13,23,34,.05); transition: box-shadow .15s, transform .15s; }
.kb-card:hover, .kb-card:focus-visible { box-shadow: 0 10px 26px rgba(13,23,34,.10); transform: translateY(-1px); }
.kb-card .tt { font-size: 14px; font-weight: 500; line-height: 1.35; letter-spacing: .01em; overflow-wrap: anywhere; }
.kb-card .tm { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; margin-top: 7px; font-size: 12.5px; color: var(--faint); letter-spacing: .02em; }
.kb-card .tm .dot { width: 6px; height: 6px; }
.kb-card .tm .w { margin-inline-start: auto; }
.kb-tick { position: absolute; inset-inline-start: 11px; top: 12px; width: 19px; height: 19px; border-radius: 6px; border: 1.5px solid #C9CFD6; background: #fff; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: transparent; transition: border-color .12s, background-color .12s; }
.kb-tick svg.i { width: 13px; height: 13px; stroke-width: 2.4; }
.kb-tick:hover { border-color: var(--ink); color: #C9CFD6; }
.kb-card.done { box-shadow: none; background: rgba(255,255,255,.6); }
.kb-card.done .kb-tick { background: var(--ink); border-color: var(--ink); color: #fff; }
.kb-card.done .tt { color: var(--slate); text-decoration: line-through; font-weight: 400; }
.kb-card.done .tm { opacity: .6; }
.kb-none { color: #99A1AA; font-size: 13.5px; padding: 4px 8px; }
@media (max-width: 1100px) {
  .kb-cols { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px 12px; gap: 12px; }
  .kb-col { flex: 0 0 min(78vw, 300px); scroll-snap-align: start; }
  .kb-legend { padding: 10px 20px 20px; }
}
.cal-tool .btn.light { order: 3; }
.rail-brand svg.appic { width: 38px; height: 38px; }
.login-mark svg.appic { width: 64px; height: 64px; }

/* Day, Week, Month: a quiet switch right of Today */
.vseg { order: 4; display: inline-flex; gap: 2px; padding: 3px; margin-inline-start: 14px; border-radius: 9px; background: #F4F6F8; }
.vseg button { border: 0; background: none; cursor: pointer; padding: 6px 14px; border-radius: 7px; font-size: 14px; color: var(--faint); letter-spacing: .01em; transition: color .12s, background-color .12s; }
.vseg button:hover { color: var(--ink); }
.vseg button.on { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 1px 3px rgba(13,23,34,.10); }
@media (max-width: 767px) { .vseg { margin-inline-start: 6px; } .vseg button { padding: 5px 10px; font-size: 13px; } }

/* grid cards: the whole title */
.ev { container-type: inline-size; padding-block: 8px 7px; padding-inline: 12px 10px; }
.ev[data-h] { display: block; }
.ev .tt { white-space: normal; overflow: hidden; text-overflow: clip; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--ln, 1);
  font-size: 13.5px; line-height: 18px; letter-spacing: .01em; overflow-wrap: anywhere; }
.ev .tm { margin-top: 4px; font-size: 12px; line-height: 18px; white-space: nowrap; }
.ev.notime .tm { display: none; }
.ev.sm .tt { font-size: 12px; line-height: 15.5px; letter-spacing: 0; }
.ev.short { padding-block: 8px 7px; padding-inline: 12px 10px; }
.ev[data-h="20"], .ev[data-h="22"], .ev[data-h="34"] { padding-top: 4px; padding-bottom: 4px; }
@container (max-width: 150px) { .ev .du { display: none; } }
/* on hover the card opens to everything it holds */
.ev:hover { height: auto !important; min-height: var(--h); z-index: 9; box-shadow: 0 14px 34px rgba(13,23,34,.14); }
.ev:hover .tt { -webkit-line-clamp: unset; display: block; }
.ev:hover .tm { display: flex; }
.ev:hover .du { display: inline; }
.ev.sm .tt { line-height: 15px; }
.ev[data-h="20"], .ev[data-h="22"], .ev[data-h="34"] { padding-top: 2px; padding-bottom: 2px; }

/* ------------------------------------------------------------------ fourth pass */
/* the title beside the arrows */
.cal-tool { flex-wrap: nowrap; row-gap: 0; padding-block: 30px 26px; padding-inline: 34px 44px; }
.cal-tool h1 { order: 1; flex: 0 1 auto; flex-basis: auto; font-size: 30px; margin-block: 0; margin-inline: 14px 0; white-space: nowrap; }
.cal-tool .sp { order: 2; }
.kb .cal-tool { padding-bottom: 14px; }

/* meeting cards: a soft tint, round corners, one thin bar of the calendar's colour. No outline. */
.ev { border: 0; border-radius: 10px; padding-block: 8px 7px; padding-inline: 17px 10px; background: color-mix(in srgb, var(--c) 9%, #fff); box-shadow: none;
  transition: box-shadow .22s cubic-bezier(.2, .7, .2, 1), transform .22s cubic-bezier(.2, .7, .2, 1), background-color .2s; }
.ev::before { display: block; content: ""; position: absolute; inset-inline-start: 6px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--c); opacity: .9; }
.ev .tm { color: color-mix(in srgb, var(--c) 35%, #6B747D); }
.ev .du { color: color-mix(in srgb, var(--c) 70%, #2F95E5); }
.ev:hover { background: color-mix(in srgb, var(--c) 12%, #fff); box-shadow: 0 16px 36px rgba(13,23,34,.13), 0 0 0 1px rgba(13,23,34,.04); transform: translateY(-1px); }
.ev.active { box-shadow: 0 0 0 1.5px var(--ink); }
.ev.skip { border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--input); }
.ev.skip::before { opacity: .35; }
.ev.short, .ev[data-h="20"], .ev[data-h="22"], .ev[data-h="34"] { padding-inline-start: 17px; }
.ev[data-h="20"]::before, .ev[data-h="22"]::before, .ev[data-h="34"]::before { top: 5px; bottom: 5px; }
.chip { border-radius: 7px; }
.sel { border: 0; border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, #fff); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, #fff); padding: 8px 12px; }

/* movement: things rise in when the view changes; menus and cards open from where they are anchored */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes slideR { from { opacity: 0; transform: translateX(calc(22px * var(--dir, 1))); } }
@keyframes slideL { from { opacity: 0; transform: translateX(calc(-22px * var(--dir, 1))); } }
@keyframes popIn { from { opacity: 0; transform: scale(.965) translateY(6px); } }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes tick { 50% { transform: scale(1.25); } }
#body.in > *, #body.in-l > *, #body.in-r > * { animation: rise .34s cubic-bezier(.2, .7, .2, 1) backwards; }
#body.in-r > * { animation-name: slideR; } #body.in-l > * { animation-name: slideL; }
#body.in .ev, #body.in-l .ev, #body.in-r .ev { animation: rise .4s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(70ms + var(--i, 0) * 24ms); }
#side.in .wk-day { animation: rise .38s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 34ms); }
#side.in .wk-h, #tool.in h1 { animation: rise .32s cubic-bezier(.2, .7, .2, 1) backwards; }
#cols.in .kb-col { animation: rise .4s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 38ms); }
.pop { animation: popIn .2s cubic-bezier(.2, .8, .2, 1); transform-origin: left center; } /* ltr: the script places the popover by screen position */
.pop.ar-r { transform-origin: right center; } /* ltr: the script places the popover by screen position */
.menu.open { animation: popIn .16s cubic-bezier(.2, .8, .2, 1); transform-origin: top center; }
.menu.center.open { animation-name: fade; }
.backdrop.open .card { animation: popIn .22s cubic-bezier(.2, .8, .2, 1); }
.toast { animation: rise .25s cubic-bezier(.2, .7, .2, 1); }
.rb svg.i { transition: transform .2s cubic-bezier(.2, .7, .2, 1), stroke-width .2s; }
.rb:hover svg.i { transform: scale(1.1); }
.rb:active svg.i { transform: scale(.94); }
.fab { transition: background-color .2s, box-shadow .25s, transform .15s; }
.fab svg.i { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.fab:hover svg.i { transform: rotate(90deg); }
.fab:active { transform: scale(.96); transform-origin: bottom right; } /* ltr: the button sits at the end corner; the rtl rule below mirrors it */
[dir="rtl"] .fab:active { transform-origin: bottom left; }
#tool.in .vseg button.on { animation: fade .18s ease-out; }
.cchip, .cchip .dot, .wk-ev .tt, .mrow, .tabs a, .btn, .ib, .kb-tick { transition: color .15s, background-color .15s, box-shadow .15s, border-color .15s, opacity .15s; }
.sw i, .sw i::after { transition: background-color .2s, transform .2s cubic-bezier(.2, .7, .2, 1); }
.dial .span, .dial .hd { transition: none; }
.wk-day .dl .L { transition: color .15s, transform .2s cubic-bezier(.2, .7, .2, 1); transform-origin: left bottom; } /* ltr: the label grows from its start; the rtl rule below mirrors it */
[dir="rtl"] .wk-day .dl .L { transform-origin: right bottom; }
.wk-day .dl:hover .L { transform: scale(1.04); }
@media (max-width: 767px) { .pop { animation: sheetUp .26s cubic-bezier(.2, .8, .2, 1); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; } }

/* ------------------------------------------------------------------ two-way edits */
.ev.mv { cursor: grab; touch-action: none; }
.ev.dragging { cursor: grabbing; z-index: 20; box-shadow: 0 10px 28px rgba(15,23,42,.22); transform: scale(1.02); transition: none; opacity: .96; }
.edform { margin-top: 10px; }
.edform .field { margin-bottom: 10px; }
.edform .check { margin-bottom: 12px; }
.edrow { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0 10px; }
.edform .field.ad { display: none; }
.edform.isad .field.ad { display: block; }
.edform.isad .field.tm { display: none; }
.edform.isad .edrow { grid-template-columns: 1fr 1fr; }

/* ------------------------------------------------------------------ tasks: the Stages board, drag and drop */
.kb-cols.stages { grid-template-columns: repeat(var(--n, 4), minmax(200px, 1fr)); overflow-x: auto; padding-bottom: 12px; }
.kb-h .sn { font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; min-width: 0; }
.kb-h .fin { display: inline-flex; align-self: center; color: var(--slate); }
.kb-h .fin svg.i { width: 15px; height: 15px; stroke-width: 2.2; }
.kb-card.st { padding-block: 12px 11px; padding-inline: 14px 40px; }
.kb-mv { position: absolute; inset-inline-end: 6px; top: 7px; width: 30px; height: 30px; border-radius: 7px; border: 0; padding: 0; background: none; color: var(--slate); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; }
.kb-mv:hover, .kb-mv:focus-visible { background: var(--shade); color: var(--ink); outline: none; }
.kb-col.last .kb-card { box-shadow: none; background: rgba(255,255,255,.6); }
.kb-col.last .kb-card .tt { color: var(--slate); font-weight: 400; }
.kb-col.last .kb-card .tm { opacity: .6; }
.kb-col.last .kb-h .sn { color: var(--faint); }
.kb-col.over { box-shadow: inset 0 0 0 2px var(--accent); }
.kb-card[draggable="true"] { cursor: grab; }
.kb-card.dragging { opacity: .35; }
.kb-card.moving { opacity: .55; pointer-events: none; }
.kb-cols.stages > .kb-none { grid-column: 1 / -1; }
select.kb-type { order: 3; width: auto; max-width: 220px; padding: 6px 10px; flex: 0 1 auto; min-width: 0; }
.mvpop .mv-list { display: grid; gap: 2px; margin-top: 10px; }
.mvpop .mrow.on { background: var(--shade); }
.mvpop .mrow.on svg.i { color: var(--ink); }
.mvpop .mrow:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 767px) {
  .kb .cal-tool { flex-wrap: wrap; row-gap: 12px; }
  .kb .cal-tool h1 { order: 5; flex-basis: 100%; margin-block: 0; margin-inline: 4px 0; }
  .kb .vseg { margin-inline-start: 4px; }
  .kb-cols.stages { display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; scroll-snap-type: none; padding: 0 16px 12px; }
  .kb-cols.stages .kb-col { min-height: 0; }
}

/* settings: Board (task types and their stages) */
.bd-rules { list-style: none; margin: -12px 0 30px; padding: 0; display: grid; gap: 4px; font-size: 14px; color: var(--faint); }
.bd-rules li::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--slate); margin-block: 0 2px; margin-inline: 0 10px; }
.bd-type { border-top: 1px solid var(--line); padding: 20px 0 24px; max-width: 760px; }
.bd-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bd-row input { flex: 1; min-width: 0; }
.bd-row input.bd-tname { font-size: 17px; font-weight: 500; }
.bd-stages { display: grid; gap: 8px; margin-block: 14px 12px; margin-inline: 22px 0; }
.bd-n { width: 18px; flex: none; text-align: end; font-size: 13px; color: var(--slate); }
.bd-act { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.bd-act .ib { width: 30px; height: 30px; }
.bd-rm { margin-inline-start: 6px; min-width: 76px; }
.bd-rm.armed { border-color: var(--bad); color: var(--bad); }
.bd-tag { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 12.5px; color: var(--faint); }
.bd-tag svg.i { width: 13px; height: 13px; stroke-width: 2.2; }
.bd-add { display: flex; gap: 8px; margin-inline-start: 50px; max-width: 440px; }
.bd-add input { flex: 1; min-width: 0; }
.bd-add .btn svg.i { width: 14px; height: 14px; }
.bd-addtype { margin: 0; max-width: 760px; padding-top: 22px; border-top: 1px solid var(--line); }
.bd-addtype input { max-width: 360px; }
@media (max-width: 767px) {
  .bd-stages, .bd-add { margin-inline-start: 0; }
  .bd-row { gap: 6px; }
  .bd-tag { font-size: 0; gap: 0; }
  .bd-rm { margin-inline-start: 2px; min-width: 0; }
  .bd-act .ib { width: 28px; }
}
.bd-rules li { padding-inline-start: 15px; text-indent: -15px; }
@media (max-width: 767px) {
  .page.bd { padding-bottom: 120px; }                        /* room above the new-event button */
  .bar-l { overflow: hidden; }
  .tabs { min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex: none; }
}

/* ------------------------------------------------------------------ stage 3: the pages around the calendar
   Landing, sign-in family, first-run guide, Calendars, Account, Admin. Same face, same three weights, same tokens. */
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible, input:focus-visible, .pvd:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; }
input[type=email], input[type=url], input[type=number] {
  background: #fff; border: 1px solid var(--input); border-radius: 8px; padding: 8px 10px; font-size: 14px; outline: none; width: 100%; }
input[type=email]:focus, input[type=url]:focus, input[type=number]:focus { border-color: var(--ink); }
a.btn { text-decoration: none; }
.btn.lg { padding: 12px 22px; font-size: 15.5px; border-radius: 8px; }
.btn.coral { background: var(--coral); border: 1px solid var(--coral); color: #fff; }
.btn.coral:hover { background: #E53935; border-color: #E53935; }
.btn.bad { background: transparent; border: 1px solid var(--bad); color: var(--bad); }
.btn.bad:hover { background: var(--bad-bg); }
.btn.ghost { background: transparent; border: 1px solid transparent; color: var(--faint); }
.btn.ghost:hover { color: var(--ink); }
.linkbtn { background: none; border: 0; padding: 8px 2px; color: var(--faint); cursor: pointer; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--ink); }

/* sign-in family */
.login-t { font-weight: 300; }
.login-t b { font-weight: 700; }
a.login-mark { display: inline-block; border-radius: 16px; }
.login-intro { color: var(--body); font-size: 15px; line-height: 1.6; margin: -12px 0 26px; overflow-wrap: anywhere; }
.login-foot { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 14px; color: var(--faint); margin: 22px 0 0; }
.login-foot a { color: var(--body); text-underline-offset: 3px; }
.login-foot a:hover { color: var(--ink); }
.login-form .btn.wide { margin-top: 6px; }
.rules-list { list-style: none; margin: -4px 0 18px; padding: 0; display: grid; gap: 3px; font-size: 13px; color: var(--faint); }
.rules-list li::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--slate); margin-block: 0 2px; margin-inline: 1px 9px; }
label.field .hint { display: block; margin: 6px 0 0; font-size: 12.5px; color: var(--faint); }
em.opt { font-style: normal; color: var(--slate); margin-inline-start: 6px; font-size: 12.5px; }
.check.terms { align-items: flex-start; line-height: 1.5; margin: 2px 0 14px; }
.check.terms input { margin-top: 3px; width: 16px; height: 16px; flex: none; }
.check a { color: var(--ink); text-underline-offset: 3px; }
details.alt { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
details.alt summary { cursor: pointer; font-size: 14px; color: var(--body); list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; }
details.alt summary::-webkit-details-marker { display: none; }
details.alt summary::before { content: "+"; width: 18px; text-align: center; color: var(--faint); }
details.alt[open] summary::before { content: "-"; }
details.alt .login-form { margin-top: 14px; }

/* landing */
.ld { min-height: 100vh; }
.ld-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1180px; margin: 0 auto; padding: 26px 32px; }
.ld-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; text-decoration: none; letter-spacing: .01em; }
.ld-brand svg.appic { width: 34px; height: 34px; display: block; }
.ld-nav { display: flex; align-items: center; gap: 8px; }
.ld-main { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.ld-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 72px; align-items: center; padding: 48px 0 96px; }
.ld-h1 { font-size: 58px; line-height: 1.04; letter-spacing: -.02em; font-weight: 300; margin: 0; }
.ld-h1 b { font-weight: 700; }
.ld-lead { font-size: 18px; line-height: 1.65; color: var(--body); margin: 28px 0 36px; max-width: 520px; }
.ld-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ld-small { font-size: 13.5px; color: var(--faint); margin: 16px 0 0; }
.demo { margin: 0; border-radius: 16px; background: #fff; box-shadow: 0 30px 80px rgba(15,23,42,.10), 0 0 0 1px var(--line); padding: 30px 32px 14px; min-width: 0; }
.demo-h { font-size: 30px; font-weight: 700; letter-spacing: -.015em; line-height: 1.1; }
.demo-h span { font-weight: 300; color: var(--quiet); }
.demo-cals { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 6px; font-size: 13px; color: var(--faint); }
.demo-cals span { display: inline-flex; align-items: center; gap: 7px; }
.demo-cals i, .demo-ev .tm i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); display: inline-block; }
.demo-day { display: grid; grid-template-columns: 64px minmax(0, 1fr); padding: 22px 0 4px; }
.demo-day + .demo-day { border-top: 1px solid var(--line); }
.demo-day .L { font-size: 40px; font-weight: 700; line-height: .9; letter-spacing: -.02em; }
.demo-day .n { margin-top: 10px; font-size: 14px; font-weight: 700; }
.demo-day .n span { font-weight: 300; color: var(--faint); margin-inline-start: 2px; }
.demo-ev { margin: 0 0 18px; min-width: 0; }
.demo-ev .tt { font-size: 14.5px; font-weight: 500; letter-spacing: .015em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.demo-ev .tm { font-size: 12.5px; color: var(--faint); margin-top: 6px; letter-spacing: .03em; display: flex; align-items: center; gap: 9px; }
.demo-ev.copy .tt { font-weight: 400; color: var(--faint); }
.demo-tag { font-size: 11.5px; font-weight: 400; color: var(--blue); background: var(--blue-bg); border-radius: 999px; padding: 1px 9px; letter-spacing: .02em; }
.ld-sec { padding: 72px 0; border-top: 1px solid var(--line); }
.ld-k { font-size: 13.5px; color: var(--faint); margin: 0 0 22px; letter-spacing: .02em; }
.ld-h2 { display: block; border: 0; padding: 0; font-size: 34px; line-height: 1.15; font-weight: 300; letter-spacing: -.015em; margin: 0 0 30px; max-width: 760px; }
.ld-h2 b { font-weight: 700; }
.ld-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; }
.ld-three h3 { font-size: 20px; font-weight: 300; margin: 18px 0 10px; line-height: 1.3; }
.ld-three h3 b { font-weight: 700; }
.ld-three p { color: var(--body); line-height: 1.7; margin: 0; }
.ld-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--shade); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.ld-ic svg.i { width: 20px; height: 20px; }
.ld-works { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ld-works li { display: inline-flex; align-items: center; gap: 10px; padding-block: 9px; padding-inline: 9px 16px; border-radius: 999px; background: var(--shade); font-size: 14.5px; }
.ld-works .g { width: 26px; height: 26px; border-radius: 50%; background: var(--page); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--body); flex: none; }
.ld-works .g svg { width: 15px; height: 15px; display: block; }
.ld-note { color: var(--faint); font-size: 14.5px; margin: 22px 0 0; max-width: 680px; line-height: 1.65; }
.ld-promise { background: var(--night); color: #fff; border-radius: 18px; padding: 52px 56px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: 56px; }
.ld-promise .ld-h2 { margin: 0; color: #fff; }
.ld-promise .ld-k { color: rgba(255,255,255,.55); }
.ld-promise ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.ld-promise li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; line-height: 1.6; color: rgba(255,255,255,.82); }
.ld-promise li svg.i { width: 20px; height: 20px; color: #6FD39A; margin-top: 2px; stroke-width: 2; }
.ld-promise li b { color: #fff; font-weight: 500; }
.ld-end { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ld-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap; padding: 30px 0 44px; color: var(--faint); font-size: 14px; border-top: 1px solid var(--line); margin-top: 24px; }
.ld-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* pricing: the period toggle is two radios and CSS, no script */
.pr-head { padding: 40px 0 36px; max-width: 760px; }
.pr-head .ld-lead { margin-bottom: 0; }
.pr-r { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pr-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--shade); margin: 0 0 28px; }
.pr-toggle label { padding: 9px 18px; border-radius: 999px; font-size: 14.5px; color: var(--body); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s; }
.pr-save { font-size: 12px; color: #2E7D5B; background: #E4EFEA; border-radius: 999px; padding: 2px 8px; }
#bill-m:checked ~ .pr-toggle label[for=bill-m], #bill-y:checked ~ .pr-toggle label[for=bill-y] { background: var(--page); color: var(--ink); box-shadow: 0 1px 3px rgba(13,23,34,.12); }
#bill-m:focus-visible ~ .pr-toggle label[for=bill-m], #bill-y:focus-visible ~ .pr-toggle label[for=bill-y] { outline: 2px solid var(--accent); outline-offset: 2px; }
.pr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 880px; }
.pr-grid.one { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
.pr-list.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 24px; }
@media (max-width: 767px) { .pr-list.two { grid-template-columns: minmax(0, 1fr); } }
.pr-card { border: 1px solid var(--line); border-radius: 18px; padding: 34px 32px 30px; display: flex; flex-direction: column; background: var(--page); }
.pr-card.pro { background: var(--night); border-color: var(--night); color: #fff; }
.pr-name { display: block; border: 0; padding: 0; margin: 0 0 18px; font-size: 15px; font-weight: 500; letter-spacing: .02em; color: var(--faint); }
.pr-card.pro .pr-name { color: rgba(255,255,255,.6); }
.pr-price { margin: 0 0 10px; min-height: 56px; display: flex; align-items: baseline; gap: 10px; }
.pr-price > span { display: inline-flex; align-items: baseline; gap: 10px; }
.pr-amt { font-size: 52px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.pr-per { font-size: 15px; color: var(--faint); }
.pr-card.pro .pr-per { color: rgba(255,255,255,.6); }
.pr-y { display: none !important; }
#bill-y:checked ~ .pr-grid .pr-y { display: inline-flex !important; }
#bill-y:checked ~ .pr-grid .pr-m { display: none !important; }
.pr-for { color: var(--body); line-height: 1.6; margin: 0 0 24px; }
.pr-card.pro .pr-for { color: rgba(255,255,255,.75); }
.pr-list { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 13px; flex: 1; }
.pr-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; line-height: 1.5; color: var(--body); }
.pr-list li b { color: var(--ink); font-weight: 600; }
.pr-list svg.i { width: 18px; height: 18px; margin-top: 2px; color: #2E7D5B; stroke-width: 2; }
.pr-card.pro .pr-list li { color: rgba(255,255,255,.82); }
.pr-card.pro .pr-list li b { color: #fff; }
.pr-card.pro .pr-list svg.i { color: #6FD39A; }
.pr-note { color: var(--faint); font-size: 14.5px; line-height: 1.65; max-width: 680px; margin: 26px 0 72px; }
.pr-note b { color: var(--body); font-weight: 600; }
.pr-faq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.pr-faq h3 { font-size: 18px; font-weight: 500; margin: 0 0 10px; line-height: 1.35; }
.pr-faq p { color: var(--body); line-height: 1.7; margin: 0; }
.pr-faq a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 1023px) { .pr-faq { grid-template-columns: minmax(0, 1fr); gap: 30px; } }
@media (max-width: 767px) {
  .pr-head { padding: 16px 0 28px; }
  .pr-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pr-card { padding: 28px 22px 24px; border-radius: 14px; }
  .pr-amt { font-size: 44px; }
  .pr-toggle { display: flex; }
  .pr-toggle label { flex: 1; justify-content: center; padding: 9px 10px; }
  .pr-note { margin-bottom: 48px; }
}
.ld-foot a { color: var(--body); text-decoration: none; }
.ld-foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* privacy and terms */
.doc { max-width: 760px; margin: 0 auto; padding: 0 32px 40px; }
.doc .draft { display: inline-flex; align-items: center; gap: 8px; background: var(--warn-bg); color: var(--warn); border-radius: 999px; padding: 4px 14px; font-size: 13.5px; font-weight: 500; }
.doc h1 { font-size: 46px; line-height: 1.08; font-weight: 300; letter-spacing: -.015em; margin: 22px 0 14px; }
.doc h1 b { font-weight: 700; }
.doc .lead { font-size: 17px; line-height: 1.7; color: var(--body); margin: 0 0 18px; }
.doc h2 { font-size: 19px; margin: 40px 0 12px; }
.doc p, .doc li { line-height: 1.75; color: var(--body); }
.doc ul { padding-inline-start: 20px; }
.doc li + li { margin-top: 6px; }
.doc .ph { background: var(--warn-bg); color: var(--warn); border-radius: 5px; padding: 0 5px; font-weight: 500; }
.doc .meta { color: var(--faint); font-size: 14px; }

/* settings pages: a label column and a content column, rows divided by space and one hairline */
.set { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); gap: 16px 56px; padding: 30px 0; border-top: 1px solid var(--line); max-width: 1120px; }
.set-l .t { font-size: 17px; font-weight: 500; }
.set-l p { color: var(--faint); font-size: 14px; line-height: 1.6; margin: 6px 0 0; max-width: 300px; }
.set-r { min-width: 0; }
.set-r > p { margin: 0 0 14px; color: var(--body); line-height: 1.6; max-width: 620px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; max-width: 580px; }
.form-grid .full { grid-column: 1 / -1; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.okmsg { color: var(--ok); font-size: 14px; margin-top: 10px; min-height: 1em; }
.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 18px; font-size: 14.5px; margin: 0 0 16px; max-width: 620px; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; overflow-wrap: anywhere; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .04em; }
.secret { display: inline-block; background: var(--shade); padding: 8px 12px; border-radius: 8px; word-break: break-all; font-size: 14px; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 6px 32px; background: var(--shade); border-radius: 12px; padding: 16px 22px; margin: 0 0 14px; font-size: 15px; }
.qrbox { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.qrbox > div { flex: 1; min-width: 220px; }
svg.qr { width: 184px; height: 184px; border-radius: 12px; flex: none; display: block; box-shadow: 0 0 0 1px var(--line); }
ol.steps { margin: 0 0 18px; padding-inline-start: 22px; color: var(--body); line-height: 1.75; }
ol.steps b { color: var(--ink); }
.rows { border-top: 1px solid var(--line); max-width: 760px; }
.row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .sub { font-size: 13px; color: var(--faint); overflow-wrap: anywhere; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; max-width: 680px; }
.inline-form .field { margin: 0; flex: 1 1 220px; }
.inline-form select, .actions select { width: auto; }
.sw.pg i { background: var(--input); }
.sw.pg input:focus-visible + i { box-shadow: 0 0 0 2px var(--accent); }
.opt-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.opt-row .d { font-size: 13px; color: var(--faint); margin-top: 2px; line-height: 1.5; }
.opt-row.off { opacity: .5; }
.opt-row .seg, .opt-row .sw { flex: none; }
.opt-row:has(.seg) { flex-wrap: wrap; }
.swatches { display: flex; gap: 9px; flex-wrap: wrap; margin: 2px 0 14px; }
.swatches label { position: relative; width: 30px; height: 30px; border-radius: 9px; background: var(--c); cursor: pointer; }
.swatches input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.swatches label:has(input:checked) { box-shadow: 0 0 0 2px var(--page), 0 0 0 4px var(--ink); }
.swatches label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 5px; }
.limit { color: var(--faint); font-size: 14px; }
.pills.tight { margin: 0; gap: 6px; }

/* calendars: tiles with an editor that opens under them */
.acc .who > div { min-width: 0; }
.acc .nm, .acc .sub { overflow-wrap: anywhere; }
.acc-btn { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.acc-edit { grid-column: 1 / -1; padding: 22px 24px 18px; background: var(--status-bg); border-radius: 14px; }
.acc-edit .opt-row { border-bottom-color: var(--panel-rule); }
.acc-edit .actions { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--panel-rule); }
.cal-head-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pvd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.pvd { display: flex; align-items: center; gap: 14px; text-align: start; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; min-height: 64px; color: var(--ink); width: 100%; }
.pvd:hover:not(:disabled) { border-color: var(--slate); }
.pvd:disabled { cursor: not-allowed; opacity: .55; }
.pvd .pg { width: 36px; height: 36px; border-radius: 10px; background: var(--shade); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex: none; color: var(--body); }
.pvd .pg svg { width: 20px; height: 20px; display: block; }
.pvd .pn { font-weight: 500; display: block; }
.pvd .ps { font-size: 13px; color: var(--faint); display: block; line-height: 1.4; margin-top: 1px; }
.pick { display: grid; gap: 8px; margin: 0 0 16px; }
.pick label { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.pick label:has(input:checked) { border-color: var(--ink); background: var(--shade); }
.pick input { accent-color: var(--ink); margin: 0; flex: none; }
.pick .sub { font-size: 13px; color: var(--faint); }
.flowhelp { color: var(--body); font-size: 15px; line-height: 1.65; margin: 0 0 18px; }

/* the first-run guide */
.ob { max-width: 780px; margin: 0 auto; padding: 44px 32px 120px; }
.ob-prog { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; font-size: 13.5px; color: var(--faint); }
.ob-bar { display: flex; gap: 6px; flex: 1; max-width: 280px; }
.ob-bar i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.ob-bar i.on { background: var(--ink); }
.ob-bar i.cur { background: var(--coral); }
.ob-h { font-size: 44px; line-height: 1.08; font-weight: 300; letter-spacing: -.015em; margin: 0 0 16px; }
.ob-h b { font-weight: 700; }
.ob-lead { font-size: 17px; line-height: 1.7; color: var(--body); max-width: 620px; margin: 0 0 30px; }
.ob-nav { display: flex; align-items: center; gap: 12px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ob-nav .sp { flex: 1; }
.ob-cal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ob-cal .who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ob-cal .nm { font-weight: 500; overflow-wrap: anywhere; }
.ob-cal .sub { font-size: 13px; color: var(--faint); }
.ob-cal .extra { grid-column: 1 / -1; }
.ob-done { display: flex; align-items: center; gap: 12px; color: var(--body); margin: 0 0 18px; }
.ob-done svg.i { width: 20px; height: 20px; color: #2F9E5B; stroke-width: 2.2; }
.ob-preview { border-top: 1px solid var(--line); }
.when { font-size: 13px; color: var(--faint); white-space: nowrap; }
.ob-onedate { margin: 6px 0 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ob-onedate input[type=date] { width: auto; }
body[data-page=welcome] .fab, body[data-page=account] .fab, body[data-page=admin] .fab, body[data-page=calendars] .fab { display: none; }

@media (max-width: 1023px) {
  .ld-hero { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .ld-three { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .ld-promise { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}
@media (max-width: 767px) {
  .ld-top { padding: 16px; }
  .ld-brand span { display: none; }
  .ld-main, .doc { padding-inline-start: 16px; padding-inline-end: 16px; }
  .ld-hero { padding: 20px 0 56px; }
  .ld-h1 { font-size: 38px; }
  .ld-lead { font-size: 16.5px; margin: 20px 0 28px; }
  .ld-cta .btn { flex: 1 1 auto; }
  .demo { padding: 22px 18px 6px; }
  .demo-h { font-size: 24px; }
  .demo-day { grid-template-columns: 52px minmax(0, 1fr); }
  .demo-day .L { font-size: 32px; }
  .ld-sec { padding: 48px 0; }
  .ld-h2 { font-size: 27px; }
  .ld-promise { padding: 32px 22px; border-radius: 14px; }
  .doc h1 { font-size: 34px; }
  .set { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 24px 0; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .codes { grid-template-columns: minmax(0, 1fr); }
  .acc-btn { justify-content: flex-start; }
  .acc-edit { padding: 18px 16px 14px; }
  .ob { padding: 26px 16px 120px; }
  .ob-prog { margin-bottom: 28px; }
  .ob-h { font-size: 31px; }
  .ob-lead { font-size: 16px; }
  .ob-cal { grid-template-columns: minmax(0, 1fr); }
  .btn, .linkbtn { min-height: 40px; }
  .page.set-page { padding-bottom: 100px; }
  .pane .top-row { margin-inline-end: -6px; }          /* no sideways scroll inside a card on a phone */
  .card.narrow .pane { flex: 1; }
}

/* ------------------------------------------------------------------ public sign-up, the header's Add calendar, the
   email check banner, and the guide's provider cards */
.signup-off .only-signup, .signup-on .no-signup { display: none !important; }
.pro-off .only-pro-on, .pro-on .only-pro-off { display: none !important; }   /* server.pro_class: Billing.tiers() */
.addcal { display: inline-flex; align-items: center; gap: 8px; padding-block: 7px; padding-inline: 11px 14px; border-radius: 999px; border: 1px solid var(--input);
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; line-height: 1.3; }
.addcal:hover { border-color: var(--slate); }
.addcal svg.i { width: 17px; height: 17px; stroke-width: 1.9; }
.banner.vb { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; border-inline-start-color: #E0A12E; }
.banner.vb .grow { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.banner.vb .linkbtn { font-size: 14px; }
.full-plan { padding: 16px 18px; border-radius: 12px; background: var(--status-bg); color: var(--body); line-height: 1.6; margin: 0 0 14px; }
.full-plan b { color: var(--ink); }
.pvd-grid.guide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin: 0 0 18px; }
.ob-help { margin: 4px 0 26px; border-top: 1px solid var(--line); }
.ob-help details { border-bottom: 1px solid var(--line); }
.ob-help summary { cursor: pointer; padding: 13px 0; font-weight: 500; color: var(--ink); }
.ob-help details > div { padding: 0 0 16px; color: var(--body); line-height: 1.65; font-size: 14.5px; }
.ob-help ol { margin: 6px 0 0; padding-inline-start: 20px; }
.ob-help li { margin: 3px 0; }
.ob-why { font-size: 14px; color: var(--faint); margin: -14px 0 24px; line-height: 1.6; }
.ob-sum { font-size: 17px; line-height: 1.6; margin: 0 0 22px; color: var(--ink); }
.ob-sum b { font-weight: 600; }
.ob-cal .roles { display: flex; gap: 10px 18px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.ob-cal .rcv { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--body); }
.steps { margin: 0 0 18px; padding-inline-start: 20px; color: var(--body); line-height: 1.65; font-size: 14.5px; }
.steps li { margin: 3px 0; }
@media (max-width: 767px) {
  .ld-nav { gap: 2px; }
  .ld-nav a[href="/pricing"], .ld-nav a[href="/invite"] { display: none; }     /* both are in the page and its footer */
  .ld-nav .btn { padding: 8px 11px; }
  .addcal { padding: 8px; border-radius: 50%; }
  .addcal span { display: none; }
  .ob-cal .roles { justify-content: flex-start; }
  .banner.vb { padding: 9px 16px; }
}

/* ------------------------------------------------------------------ right to left (Arabic)
   Every sheet uses logical sides (inline-start, inline-end), so a page with dir="rtl" on <html> mirrors by itself and
   a left-to-right page is unchanged. --dir turns a sideways move, shadow or gradient round: 1 left to right, -1 right
   to left (read as var(--dir, 1), so a page without this sheet stays as it is). .dir-flip mirrors an arrow or a
   chevron that means next or back; scripts add it. */
[dir="ltr"] { --dir: 1; }
[dir="rtl"] { --dir: -1; }
[dir="rtl"] .dir-flip { transform: scaleX(-1); }
/* addresses, links, codes and the mono blocks read left to right inside any sentence */
input[type=email], input[type=url], .mono { direction: ltr; unicode-bidi: isolate; }
/* clock times keep their own order ("9 AM", "9:00 - 10:30") and are cut off from the words around them; plaintext,
   not direction: ltr, so the box keeps the page's sides and a time written in Arabic still reads right to left;
   match-parent keeps the line on the page's side whatever way the time itself reads */
:is(.ev, .wk-ev, .ag-row, .mrow, .chip, .demo-ev) .tm, .ev .tm > span, .kb-card .tm .w,
.gut span, .gut .nowt, .nowbig b, .when { unicode-bidi: plaintext; text-align: match-parent; }
/* text a person typed (titles, calendar names) carries dir="auto": it reads in its own direction and stays on the
   page's side (its end, when it reads the other way; match-parent is not in every browser) */
:is([dir="rtl"] [dir="auto"]:dir(ltr), [dir="ltr"] [dir="auto"]:dir(rtl)):not(input, textarea) { text-align: end; }

/* Arabic text: the font has no Arabic letters, so the device's own Arabic font sets them (no font file is loaded);
   no letter spacing, which breaks the joins; a taller line, since Arabic letters reach further up and down */
body:lang(ar) { font-family: "Outfit", "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Tahoma, sans-serif; line-height: 1.6; }
:lang(ar) { letter-spacing: 0 !important; }
:lang(ar) :is(.ld-h1, .ld-h2, .wk-h, .wk-day .dl .L, .cal-tool h1, .kb-h .L, .demo-h, .demo-day .L, .doc h1, .ob-h, .nw-say) { line-height: 1.25; }