/* Calendar Restore — site styles. A dark plum page with a faint pattern of calendar glyphs, heavy
   uppercase headlines in coral, pill buttons and centered feature grids. Colors from the app icon
   (#F24D47 → #C72133) and the plum of the App Store screenshots. Always dark, like the app. */
:root {
  color-scheme: dark;
  --red: #e2373d;
  --red-light: #f24d47;
  --red-dark: #c72133;
  --plum: #2a0f1f;
  --plum-2: #4a1220;
  --bg: #2a0f1f;
  --panel: rgba(255,255,255,.06);
  --panel-solid: #3a1629;
  --surface: rgba(255,255,255,.06);
  --text: #ffffff;
  --muted: rgba(255,255,255,.88);   /* secondary text: still bright */
  --line: rgba(255,255,255,.14);
  --accent: #ffffff;            /* headlines are white; red is for the bar, buttons and icon tiles */
  --accent-shadow: rgba(199,33,51,.38);
  --link: #ffffff;
  --radius: 18px;
  --max: 1120px;
  /* 240 px tile of faint glyphs: calendar, clock, restore arrow, trash, cloud, magnifier. */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' fill='none' stroke='%23ffffff' stroke-opacity='.055' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='18' y='24' width='40' height='36' rx='6'/%3E%3Cpath d='M18 36h40M28 18v10M48 18v10'/%3E%3Ccircle cx='140' cy='42' r='18'/%3E%3Cpath d='M140 32v10l7 5'/%3E%3Cpath d='M200 104a18 18 0 1 0 6-13.5'/%3E%3Cpath d='M204 80v11h-11'/%3E%3Cpath d='M84 98h28M92 98v-5h12v5M88 98l2 24h16l2-24'/%3E%3Cpath d='M30 176a12 12 0 0 1 2-24 16 16 0 0 1 30 4 10 10 0 0 1-2 20z'/%3E%3Ccircle cx='150' cy='170' r='12'/%3E%3Cpath d='M159 179l10 10'/%3E%3Crect x='190' y='190' width='32' height='30' rx='5'/%3E%3Cpath d='M190 200h32M206 206v8M202 210h8'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 72px; }
body {
  margin: 0;
  background: var(--bg) var(--pattern);
  color: var(--text);
  font: 18px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
}
a { color: var(--link); text-decoration-color: rgba(255,255,255,.45); text-underline-offset: 3px; }
a:hover { text-decoration-color: #fff; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { text-wrap: balance; }
/* The page's headline style: heavy, uppercase, coral. */
.shout { font-weight: 800; text-transform: uppercase; line-height: 1.08; color: var(--accent); text-shadow: 0 2px 14px rgba(0,0,0,.25); }
/* Section titles over the demo: white. */
.shout.white { color: #fff; }
/* Small titles: white, quieter. */
.shout.quiet { color: #fff; text-shadow: none; }

/* Header: a red bar, the app's badge hanging over its edge */
.site-header { position: sticky; top: 0; z-index: 10; background: linear-gradient(90deg, var(--red-dark), #a8173a);
  box-shadow: 0 2px 14px rgba(0,0,0,.3); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 16px; color: #fff; text-decoration: none; align-self: flex-start; }
/* The logo: white lettering on a red badge with a white outline, hanging over the bar's edge. */
.logo { display: block; margin-top: 6px; padding: 9px 16px 10px; background: linear-gradient(135deg, var(--red-light), var(--red)); color: #fff; border: 3px solid #fff;
  border-radius: 24px 34px 22px 30px / 30px 22px 32px 24px; rotate: -3deg; text-transform: uppercase; font-weight: 900;
  font-size: 19px; line-height: .92; letter-spacing: .01em; text-align: center; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.logo i { display: block; font-style: normal; font-size: 17px; }
.brand small { font-size: 14px; font-weight: 500; line-height: 1.2; color: #fff; padding-top: 14px; }
.nav { display: flex; gap: 6px; }
.nav a { position: relative; white-space: nowrap; color: #fff; text-decoration: none; font-size: 17px; font-weight: 600; padding: 6px 14px; border-radius: 8px; }
.nav a:hover { background: rgba(255,255,255,.14); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; top: -9px; translate: -50% 0; border: 7px solid transparent; border-top-color: var(--plum); }

/* Pill buttons */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 11px 22px; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 700;
  color: #fff; text-decoration: none; background: linear-gradient(135deg, var(--red-light), var(--red-dark)); border: 0; box-shadow: 0 6px 18px rgba(199,33,51,.35); }
.pill svg { width: 18px; height: 18px; }
.pill.soft { background: rgba(255,255,255,.12); box-shadow: none; border: 1px solid rgba(255,255,255,.22); }
.pill:hover { filter: brightness(1.08); }
.pill.static { cursor: default; filter: none; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  color: #fff; border-radius: 999px; padding: 10px 20px; font-weight: 600; font-size: 15px; text-decoration: none; }

/* Hero: icon and wordmark, the app window, the call to action, the headline */
.hero { text-align: center; padding: 46px 0 10px; }
.wordmark { display: inline-flex; align-items: center; gap: 18px; text-align: left; }
.wordmark img { width: 108px; height: 108px; filter: drop-shadow(0 12px 26px rgba(0,0,0,.45)); }
.wordmark h1 { margin: 0; font-size: clamp(38px, 6.4vw, 70px); font-weight: 800; letter-spacing: -.01em; line-height: 1; text-transform: uppercase; }
.wordmark p { margin: 6px 0 0; font-size: clamp(17px, 2.2vw, 24px); color: #fff; font-weight: 500; }
.hero .shot { margin: 30px auto 26px; max-width: min(980px, 100%); }
.hero h2 { font-size: clamp(30px, 4.6vw, 50px); margin: 30px 0 12px; }
.hero p.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--text); max-width: 760px; margin: 0 auto; }
.hero .meta { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* Sections */
section.block { padding: 70px 0; }
section.block.alt { background: rgba(0,0,0,.18); }
section.block > .wrap > h2, .center-head { text-align: center; }
h2 { font-size: clamp(30px, 4.4vw, 46px); margin: 0 0 14px; }
.section-lead { color: #fff; font-size: 19px; max-width: 760px; margin: 0 auto 36px; text-align: center; }
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; text-align: center; }
.uses svg { width: 84px; height: 84px; margin: 0 auto 10px; display: block; }
.uses h3 { font-size: 21px; margin: 0 0 6px; }
.uses p { margin: 0; }
.quad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; margin-top: 40px; }
.quad h3 { font-size: 19px; margin: 0 0 8px; }
.quad p { margin: 0; font-size: 17px; color: #fff; }
.fundamentals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 34px; text-align: center; margin-top: 36px; }
.tile { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red-light), var(--red-dark)); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 18px rgba(0,0,0,.3); }
.tile svg { width: 34px; height: 34px; color: #fff; }
.fundamentals h3 { color: #fff; font-weight: 800; font-size: 21px; margin: 0 0 4px; }
.fundamentals p { margin: 0; font-size: 17px; color: #fff; }
.get { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 30px 34px; border-radius: 26px;
  background: linear-gradient(135deg, var(--red-light), var(--red-dark) 60%, #8f1238); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.get h2 { color: #fff; margin: 0 0 14px; font-size: clamp(28px, 4vw, 40px); }
.get > img { width: 150px; height: 150px; filter: drop-shadow(0 12px 22px rgba(0,0,0,.35)); }
.get .pills { justify-content: flex-start; }
.get .pill { background: #fff; color: var(--red-dark); box-shadow: none; }
.get .pill.soft { background: rgba(255,255,255,.16); color: #fff; }
.get .side { font-size: 15px; line-height: 1.45; }
.get .side b { display: block; }
.get small { display: block; margin-top: 12px; font-size: 13px; opacity: .85; }
ul.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
ul.ticks li { padding-left: 28px; position: relative; margin: 10px 0; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red-light), var(--red-dark)); }
.note { color: var(--muted); font-size: 15px; }

/* Documents and support: a headline over the pattern, the text on a panel */
.doc-hero { color: #fff; }
.doc-hero .wrap { padding: 50px 24px 36px; }
.doc-hero h1 { margin: 0 0 10px; font-size: clamp(40px, 7vw, 72px); }
.doc-hero p { margin: 0; color: var(--text); font-size: 20px; max-width: 640px; }
.doc-hero.with-shot { overflow: hidden; }
.doc-hero.with-shot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 36px; align-items: center; }
.helper-shot { align-self: center; margin: 12px 0; background: #242424; color: #ececec; border: 1px solid #3a3a3a; border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.4); font-size: 13px; line-height: 1.35; text-align: left; }
.hs-bar { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; background: #2c2c2c; border-bottom: 1px solid #151515; }
.hs-bar i { width: 11px; height: 11px; border-radius: 50%; background: #4a4a4a; }
.hs-bar span { flex: 1; text-align: center; color: #a1a1a6; font-size: 12px; font-weight: 600; margin-right: 40px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-body { padding: 18px 20px 22px; display: grid; gap: 14px; }
.hs-head { display: flex; gap: 12px; align-items: center; }
.hs-head img { width: 46px; height: 46px; }
.hs-head b { display: block; font-size: 17px; }
.hs-head small, .hs-step small { display: block; color: #a1a1a6; font-size: 12.5px; margin-top: 2px; }
.hs-step { display: flex; gap: 10px; align-items: flex-start; }
.hs-step > i { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #30a14e; color: #fff; font-style: normal; font-size: 11px; font-weight: 800; }
.hs-step small strong { color: #ececec; }
.hs-btn { display: inline-block; margin-top: 8px; padding: 3px 11px; border-radius: 6px; background: #4a4a4c; font-size: 12.5px; font-weight: 500; }
.download { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 26px 0 10px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.download img { width: 52px; height: 52px; }
.download b { display: block; }
.download small { color: var(--muted); font-size: 14px; }
.download > div { flex: 1; min-width: 200px; }
.badge-soon { font-weight: 700; font-size: 14px; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 8px 16px; }
.doc { max-width: 860px; margin: 0 auto 80px; padding: 40px 44px 48px; background: rgba(20,6,14,.55); border: 1px solid var(--line); border-radius: 26px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.doc h2 { font-size: 24px; margin: 38px 0 10px; color: var(--accent); font-weight: 800; text-transform: uppercase; }
.doc h2:first-child { margin-top: 0; }
.doc li { margin: 6px 0; }
/* Support: topics as cards */
.topics { max-width: var(--max); margin: 0 auto; padding: 0 24px 30px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.topic { background: rgba(20,6,14,.55); border: 1px solid var(--line); border-radius: 22px; padding: 26px 28px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.topic .tile { margin: 0 0 12px; width: 52px; height: 52px; border-radius: 14px; }
.topic .tile svg { width: 28px; height: 28px; }
.topic h2 { font-size: 22px; margin: 0 0 8px; }
.topic p, .topic ol { margin: 0 0 8px; font-size: 16.5px; }
.topic ol { padding-left: 20px; }
.topic.wide { grid-column: 1 / -1; }

/* Form */
form.support { display: grid; gap: 16px; margin-top: 20px; }
form.support label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
form.support .opt { font-weight: 400; color: var(--muted); }
form.support input, form.support textarea {
  font: inherit; font-size: 16px; color: var(--text); background: rgba(255,255,255,.07); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; width: 100%; }
form.support textarea { min-height: 150px; resize: vertical; }
form.support input:focus, form.support textarea:focus { outline: 2px solid var(--red-light); outline-offset: 1px; border-color: transparent; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
button.send { justify-self: start; font: inherit; font-weight: 700; color: #fff; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--red-light), var(--red-dark)); border-radius: 999px; padding: 12px 28px; }
button.send[disabled] { opacity: .6; cursor: default; }
.form-status { font-weight: 600; }
.form-status.ok { color: #6ee59a; }
.form-status.err { color: #ff6b6b; }
.hours { background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 18px 0; }

/* Footer: columns of links on a darker band */
.site-footer { background: #170810; border-top: 1px solid var(--line); padding: 40px 0 34px; color: #fff; font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { margin: 0 0 10px; color: #fff; font-size: 14px; }
.site-footer a { display: block; color: rgba(255,255,255,.85); text-decoration: none; margin: 4px 0; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .fbrand { display: flex; gap: 12px; align-items: flex-start; color: #fff; }
.site-footer .fbrand img { width: 40px; height: 40px; }
.site-footer .fbrand small { display: block; color: var(--muted); }
.site-footer .copy { text-align: center; margin-top: 30px; font-size: 13px; }

/* Interactive demo — always dark, like the app screenshots */
.demo-hint { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: flex-start; justify-content: space-between; margin: -16px 0 18px; color: var(--muted); font-size: 15px; }
#demo { position: relative; }
.demo-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.demo-steps li { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); background: var(--bg); }
.demo-steps li i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--text); font-style: normal; font-weight: 700; font-size: 12px; }
.demo-steps li.now { color: var(--text); border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 18%, transparent); }
.demo-steps li.now i { background: linear-gradient(135deg, var(--red-light), var(--red-dark)); color: #fff; }
.demo-steps li.done i { background: #30a14e; color: #fff; }
.demo-steps li.done span { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.demo-steps li.finish { color: #fff; background: #30a14e; border-color: #30a14e; padding-left: 14px; font-weight: 600; }
.demo-dock { display: flex; justify-content: center; gap: 6px; width: max-content; max-width: 100%; margin: -14px auto 0; position: relative; z-index: 2; padding: 8px 10px; border-radius: 20px;
  background: color-mix(in srgb, #2a2a2c 88%, transparent); border: 1px solid #48484a; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.demo-dock button { position: relative; display: grid; justify-items: center; gap: 4px; min-width: 96px; padding: 4px 8px 8px; font: inherit; font-size: 12px; font-weight: 600; color: #d1d1d6; background: none; border: 0; border-radius: 12px; cursor: pointer; }
.demo-dock button:hover { background: rgba(255,255,255,.08); }
.demo-dock button img, .demo-dock .cal-icon { width: 42px; height: 42px; transition: transform .15s; }
.demo-dock button:hover img, .demo-dock button:hover .cal-icon { transform: translateY(-3px); }
.demo-dock button.on::after { content: ""; position: absolute; bottom: 1px; width: 4px; height: 4px; border-radius: 50%; background: #d1d1d6; }
.cal-icon { display: grid; grid-template-rows: 13px 1fr; border-radius: 10px; background: #fff; color: #1d1d1f; overflow: hidden; font-size: 22px; font-weight: 500; line-height: 1; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.cal-icon b { display: grid; place-items: center; background: #ff3b30; color: #fff; font-size: 8px; font-weight: 700; letter-spacing: .04em; }
.cal-icon { padding-bottom: 3px; align-items: center; }
.demo-bubble { position: absolute; z-index: 50; max-width: 270px; padding: 13px 17px; border-radius: 22px; background: #fff; color: #1d1d1f; font-size: 15px; font-weight: 600; line-height: 1.35;
  box-shadow: 0 14px 36px rgba(42,15,31,.35), 0 0 0 1px rgba(0,0,0,.06); pointer-events: none; animation: bubble-in .2s ease-out; }
.demo-bubble::before, .demo-bubble::after { content: ""; position: absolute; left: var(--tail, 50%); border-radius: 50%; background: #fff; box-shadow: 0 4px 10px rgba(42,15,31,.25); }
.demo-bubble::before { width: 14px; height: 14px; bottom: -11px; translate: -50% 0; }
.demo-bubble::after { width: 8px; height: 8px; bottom: -22px; translate: -30% 0; }
.demo-bubble.below::before { bottom: auto; top: -11px; }
.demo-bubble.below::after { bottom: auto; top: -22px; }
.demo-bubble[hidden] { display: none; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(6px) scale(.96); } }
.demo-reset { font: inherit; font-size: 14px; font-weight: 600; color: var(--link); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.demo-window { --line-d: #333; z-index: 1; display: grid; grid-template-columns: 200px minmax(0, 1fr); background: #1e1e1e; color: #ececec; border: 1px solid #3a3a3a; border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(42,15,31,.28), 0 2px 8px rgba(0,0,0,.2); font-size: 13px; line-height: 1.3; position: relative; }
.demo-window.sb-hidden { grid-template-columns: minmax(0, 1fr); }
.demo-window.sb-hidden .demo-cals { display: none; }
.demo-main { min-width: 0; display: flex; flex-direction: column; }
.demo-cals { display: flex; flex-direction: column; background: #282828; border-right: 1px solid #111; padding: 0 10px 10px; min-width: 0; }
.demo-cals-top { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 4px; }
.demo-sb-btn { display: grid; place-items: center; width: 30px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: none; color: #a1a1a6; cursor: pointer; }
.demo-sb-btn:hover { background: #3a3a3c; color: #fff; }
.demo-sb-btn svg { width: 19px; height: 15px; }
.demo-add { display: grid; place-items: center; width: 28px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: none; color: #d1d1d6; cursor: pointer; }
.demo-add:hover { background: #3a3a3c; color: #fff; }
.demo-add svg { width: 15px; height: 15px; }
.app-restore .demo-add, .app-calendar .demo-search, .app-calendar .demo-side, .app-calendar .demo-filter { display: none; }
.app-calendar .demo-body { grid-template-columns: minmax(0, 1fr); }
.app-calendar .demo-col { cursor: copy; }
.demo-window.slide-l .demo-main { animation: slide-l .35s ease-out; }
.demo-window.slide-r .demo-main { animation: slide-r .35s ease-out; }
@keyframes slide-l { from { transform: translateX(48px); opacity: .2; } }
@keyframes slide-r { from { transform: translateX(-48px); opacity: .2; } }
.now-line { position: absolute; left: 0; right: 0; height: 2px; background: #ff453a; z-index: 3; pointer-events: none; }
.now-line::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #ff453a; }
.ev.draft { pointer-events: none; outline: 1.5px solid var(--c); z-index: 2; }
.ev.added-flash { animation: demo-restored 1.6s ease-out; }
.demo-titlebar .demo-lights, .demo-titlebar .demo-sb-btn { display: none; }
.demo-window.sb-hidden .demo-titlebar .demo-lights, .demo-window.sb-hidden .demo-titlebar .demo-sb-btn { display: flex; }
.demo-window.sb-hidden .demo-titlebar .demo-sb-btn { display: grid; }
.demo-cal-list { padding-bottom: 12px; }
.cl-group { font-size: 11.5px; font-weight: 650; color: #8e8e93; margin: 10px 4px 4px; }
.cl-group:first-child { margin-top: 2px; }
.cl-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 4px; font: inherit; font-size: 13.5px; color: #d1d1d6; background: none; border: 0; border-radius: 6px; cursor: pointer; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-row:hover { background: #333335; }
.cl-row i { flex: none; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 4px; background: var(--c); border: 1.5px solid var(--c); }
.cl-row[aria-checked="false"] i { background: transparent; }
.cl-row[aria-checked="false"] { color: #8e8e93; }
.cl-row svg { width: 10px; height: 10px; }
.demo-filter { margin-top: auto; background: #1e1e1e; border: 1px solid #3a3a3a; border-radius: 10px; padding: 10px 11px; }
.demo-filter h5 { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 14px; }
.demo-filter h5 svg { width: 16px; height: 16px; }
.demo-filter .fl-head { color: #8e8e93; font-size: 11px; margin: 4px 0 1px; }
.demo-filter hr { border: 0; border-top: 1px solid #3a3a3a; margin: 6px 0; }
.demo-titlebar { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; background: #2a2a2a; border-bottom: 1px solid #111; }
.demo-lights { display: flex; gap: 7px; }
.demo-lights i { width: 12px; height: 12px; border-radius: 50%; background: #4a4a4a; }
.demo-title { font-weight: 650; font-size: 14px; white-space: nowrap; color: #a1a1a6; }
.demo-search { margin-left: auto; position: relative; width: min(260px, 45%); }
.demo-search input { width: 100%; font: inherit; color: #ececec; background: #1e1e1e; border: 1px solid #3c3c3c; border-radius: 7px; padding: 5px 10px 5px 28px; }
.demo-search input:focus { outline: 2px solid #e2373d; outline-offset: 0; border-color: transparent; }
.demo-search svg { position: absolute; left: 9px; top: 50%; translate: 0 -50%; width: 13px; height: 13px; color: #8e8e93; }
.demo-results { position: absolute; right: 0; top: calc(100% + 6px); width: max(100%, 300px); background: #2c2c2e; border: 1px solid #48484a; border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.45); padding: 6px; z-index: 20; }
.demo-results button { display: block; width: 100%; text-align: left; font: inherit; color: #ececec; background: none; border: 0; border-radius: 6px; padding: 7px 9px; cursor: pointer; }
.demo-results button:hover, .demo-results button:focus-visible { background: #3a3a3c; outline: none; }
.demo-results small { display: block; color: #a1a1a6; margin-top: 2px; }
.demo-results .none { padding: 8px 9px; color: #a1a1a6; }
.demo-body { display: grid; grid-template-columns: minmax(0, 1fr) 236px; position: relative; }
.demo-calcol { min-width: 0; display: flex; flex-direction: column; }
.demo-cal { overflow-x: auto; }
.demo-window:not([data-layout="week"]) .demo-cal-inner { min-width: 0; }
.demo-cal-inner { min-width: 560px; }
.demo-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px 6px; }
.demo-toolbar strong { font-size: 17px; }
.demo-seg { display: flex; background: #2c2c2e; border-radius: 7px; padding: 2px; }
.demo-seg button { font: inherit; padding: 3px 11px; border: 0; border-radius: 5px; background: none; color: #d1d1d6; cursor: pointer; }
.demo-seg button.on { background: #5a5a5e; color: #fff; }
.demo-seg button:disabled { color: #6e6e73; cursor: default; }
.demo-nav { display: flex; align-items: center; background: #3a3a3c; border-radius: 6px; color: #d1d1d6; }
.demo-nav button { font: inherit; color: inherit; background: none; border: 0; padding: 2px 9px; border-radius: 6px; cursor: pointer; }
.demo-nav button:hover { background: #4a4a4c; color: #fff; }
.demo-banner { margin: 0 14px 8px; padding: 7px 10px; border-radius: 8px; background: rgba(255,159,10,.12); border: 1px solid rgba(255,159,10,.35); color: #ffd28a; font-size: 12.5px; }
.demo-banner button { font: inherit; font-weight: 650; color: #fff; background: rgba(255,255,255,.12); border: 0; border-radius: 5px; padding: 1px 7px; margin: 2px 2px 0 0; cursor: pointer; }
.demo-banner button:hover { background: rgba(255,255,255,.22); }
.demo-banner[hidden], .demo-board[hidden], .demo-days[hidden], .demo-grid[hidden] { display: none; }
.mv-head { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--line-d); padding: 0 0 5px; }
.mv-head div { text-align: center; color: #c7c7cc; font-size: 12px; }
.mv-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: 92px; }
.mv-cell { border-right: 1px solid #2c2c2c; border-bottom: 1px solid #2c2c2c; padding: 3px 3px 0; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mv-cell:hover { background: #242426; }
.mv-cell.other > span { color: #636366; }
.mv-cell > span { align-self: flex-end; font-size: 12px; color: #d1d1d6; padding: 0 4px; margin-bottom: 1px; }
.mv-cell > span.today { background: #e2373d; color: #fff; border-radius: 999px; font-weight: 700; }
.mchip { display: block; width: 100%; text-align: left; font: inherit; font-size: 11px; font-weight: 600; padding: 1px 5px; border: 0; border-left: 3px solid var(--c); border-radius: 4px;
  background: color-mix(in srgb, var(--c) 24%, #1e1e1e); color: color-mix(in srgb, var(--c) 55%, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.mchip svg { width: 9px; height: 9px; margin-right: 3px; vertical-align: -1px; }
.mchip.deleted { background: rgba(255,69,58,.08); border: 1px dashed #ff453a; color: #ff6961; text-decoration: line-through; }
.mchip.ghost { background: transparent; border: 1px dashed #8e8e93; color: #b0b0b5; }
.mmore { font: inherit; font-size: 11px; color: #a1a1a6; background: none; border: 0; text-align: left; padding: 0 5px; cursor: pointer; }
.mmore:hover { color: #fff; }
.yv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 18px; padding: 8px 16px 16px; }
.yv-name { font: inherit; font-weight: 700; font-size: 13px; color: #ff6961; background: none; border: 0; padding: 0 0 4px; cursor: pointer; }
.yv-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.yv-days i { font-style: normal; font-size: 9.5px; color: #8e8e93; text-align: center; }
.yv-days button { position: relative; font: inherit; font-size: 10.5px; color: #d1d1d6; background: none; border: 0; border-radius: 999px; padding: 2px 0 4px; cursor: pointer; }
.yv-days button:hover { background: #3a3a3c; }
.yv-days button.today { background: #e2373d; color: #fff; font-weight: 700; }
.yv-days u { position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: 4px; height: 4px; border-radius: 50%; }
.yv-days u.r { background: #ff453a; } .yv-days u.o { background: #ff9f0a; }
.demo-days, .demo-grid { display: grid; grid-template-columns: 46px repeat(var(--days, 7), 1fr); }
.demo-days { border-bottom: 1px solid var(--line-d); padding-bottom: 6px; }
.demo-days div { text-align: center; color: #c7c7cc; }
.demo-days b { font-weight: 600; color: #fff; }
.demo-days .today b { background: #e2373d; border-radius: 999px; padding: 1px 6px; }
.demo-hours div { height: 40px; text-align: right; padding-right: 7px; font-size: 10.5px; color: #8e8e93; translate: 0 -6px; }
.demo-col { position: relative; border-left: 1px solid #2c2c2c; background-image: linear-gradient(var(--line-d) 1px, transparent 1px); background-size: 100% 40px; }
.ev { position: absolute; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; border-radius: 5px; padding: 3px 6px; text-align: left; font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; overflow: hidden;
  background: color-mix(in srgb, var(--c) 26%, #1e1e1e); border: 0; border-left: 3px solid var(--c); color: color-mix(in srgb, var(--c) 55%, #fff); }
.ev em { display: block; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev span { display: block; font-weight: 400; opacity: .85; white-space: nowrap; }
.ev svg { width: 10px; height: 10px; vertical-align: -1px; margin-right: 3px; }
.ev:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.ev.deleted { background: rgba(255,69,58,.07); border: 1.5px dashed #ff453a; color: #ff6961; animation: demo-pulse 2.4s ease-in-out infinite; }
.demo-window.used .ev.deleted { animation: none; }
.ev.ghost { background: rgba(142,142,147,.06); border: 1.5px dashed #8e8e93; color: #b0b0b5; z-index: 1; }
.ev .tag { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: .02em; padding: 0 4px; border-radius: 4px; margin-left: 4px; vertical-align: 1px; opacity: 1; }
.ev .tag.new { background: rgba(76,195,107,.25); color: #7ee29a; }
.ev .tag.moved { background: rgba(255,159,10,.22); color: #ffb340; }
.ev.restored { animation: demo-restored 1.6s ease-out; }
@keyframes demo-pulse { 50% { box-shadow: 0 0 0 4px rgba(255,69,58,.18); } }
@keyframes demo-restored { 0% { box-shadow: 0 0 0 0 rgba(76,195,107,.9); } 100% { box-shadow: 0 0 0 14px rgba(76,195,107,0); } }
.fl-row { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 7px; padding: 2.5px 0; cursor: pointer; font-size: 13px; }
.fl-row svg { width: 15px; height: 15px; }
.fl-row.off span { color: #8e8e93; }
.fl-row.off svg { filter: grayscale(1) brightness(.8); }
.fl-row em { font-style: normal; color: #8e8e93; font-weight: 600; margin-left: 4px; }
.fl-row em.deleted { color: #ff453a; } .fl-row em.changed { color: #ff9f0a; } .fl-row em.added { color: #30d158; }
input.switch { appearance: none; -webkit-appearance: none; width: 28px; height: 17px; border-radius: 999px; background: #48484a; position: relative; cursor: pointer; margin: 0; transition: background .15s; }
input.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #e5e5ea; transition: translate .15s; }
input.switch:checked { background: #0a84ff; }
input.switch:checked::after { translate: 11px 0; background: #fff; }
input.switch:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.demo-tl { display: grid; }
.tl-row { position: relative; width: 100%; display: grid; grid-template-columns: 1fr 10px 30px; align-items: center; gap: 6px; height: 26px; padding: 0; font: inherit; color: #a1a1a6; background: none; border: 0; cursor: pointer; text-align: right; }
.tl-label { font-weight: 600; font-size: 13px; color: #a1a1a6; white-space: nowrap; }
.tl-row.major .tl-label { color: #d1d1d6; }
.tl-dot { width: 6px; height: 6px; border-radius: 50%; justify-self: center; }
.tl-dot.red { background: #ff453a; } .tl-dot.orange { background: #ff9f0a; }
.tl-tick { height: 2px; width: 14px; justify-self: end; background: #8e8e93; border-radius: 2px; }
.tl-row.major .tl-tick { width: 28px; background: #d1d1d6; }
.tl-row:hover .tl-tick, .tl-row.on .tl-tick { width: 28px; background: #fff; }
.tl-cap { display: none; position: absolute; right: 48px; top: 50%; translate: 0 -50%; z-index: 2; background: #3a3a3c; border-radius: 7px; padding: 4px 8px; white-space: nowrap; color: #f2f2f7; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.tl-cap small { display: block; font-size: 11px; font-weight: 500; }
.tl-cap .d { color: #ff6961; } .tl-cap .c { color: #ffb340; } .tl-cap .s { color: #8e8e93; }
.tl-row.on .tl-cap, .tl-row:hover .tl-cap, .tl-row:focus-visible .tl-cap { display: block; }
.demo-tl:hover .tl-row.on:not(:hover) .tl-cap { display: none; }
.tl-row.on .tl-dot { box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.tl-row:focus-visible { outline: none; }
.tl-week { position: relative; background: #2e2e30; box-shadow: inset 3px 0 #5a5a5e; border-radius: 4px; padding-top: 22px; margin-top: 6px; }
.tl-viewing { position: absolute; top: 4px; left: 8px; font-size: 11.5px; font-weight: 600; color: #a1a1a6; }
.demo-snaps { display: none; }
.demo-side { background: #232323; border-left: 1px solid var(--line-d); padding: 12px 12px 14px; }
.demo-side h4 { margin: 0; font-size: 13.5px; }
.demo-side p { margin: 2px 0 12px; font-size: 11px; color: #8e8e93; }

.demo-snap { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; text-align: right; font: inherit; color: #d1d1d6; background: none; border: 0; border-radius: 8px; padding: 7px 8px; cursor: pointer; }
.demo-snap:hover { background: #2e2e30; }
.demo-snap.on { background: #3a3a3c; color: #fff; }
.demo-snap i { width: 7px; height: 7px; border-radius: 50%; background: #ff453a; }
.demo-snap.on i { box-shadow: 0 0 0 3px rgba(255,69,58,.3); }
.demo-snap small { display: block; font-size: 10.5px; margin-top: 2px; }
.demo-snap .d { color: #ff6961; } .demo-snap .c { color: #ffb340; } .demo-snap .s { color: #8e8e93; }
.demo-now { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding-top: 10px; color: #ff9f0a; font-weight: 650; font-size: 13px; }
.demo-now::after { content: ""; width: 34px; height: 3px; border-radius: 2px; background: #ff9f0a; }
.demo-pop { position: absolute; z-index: 15; width: 280px; background: #3a3a3c; border: 1px solid #545456; border-radius: 12px; padding: 14px; box-shadow: 0 18px 44px rgba(0,0,0,.5); }
.demo-pop h5 { margin: 0 24px 4px 0; font-size: 15px; }
.demo-pop .close { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: none; color: #a1a1a6; font-size: 17px; cursor: pointer; }
.demo-pop .close:hover { background: #48484a; color: #fff; }
.demo-pop .row { color: #d1d1d6; margin: 2px 0; }
.demo-pop .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.demo-pop hr { border: 0; border-top: 1px solid #545456; margin: 10px 0; }
.demo-pop .status { font-weight: 600; margin-bottom: 8px; }
.demo-pop .status.d { color: #ff6961; } .demo-pop .status.c { color: #ffb340; } .demo-pop .status.a { color: #7ee29a; } .demo-pop .status.u { color: #a1a1a6; }
.demo-pop label { display: block; color: #d1d1d6; margin-bottom: 5px; }
.demo-pop select { width: 100%; font: inherit; color: #fff; background: #2c2c2e; border: 1px solid #545456; border-radius: 7px; padding: 6px 8px; margin-bottom: 10px; }
.demo-pop input.title { width: 100%; font: inherit; font-size: 15px; font-weight: 600; color: #fff; background: #2c2c2e; border: 1px solid #545456; border-radius: 7px; padding: 7px 9px; margin: 2px 0 8px; }
.demo-pop input.title:focus { outline: 2px solid #0a84ff; outline-offset: 0; border-color: transparent; }
.demo-pop .go.danger { background: rgba(255,69,58,.16); color: #ff6961; border: 1px solid rgba(255,69,58,.5); }
.demo-pop .go { width: 100%; font: inherit; font-weight: 650; color: #fff; background: linear-gradient(135deg, #f24d47, #c72133); border: 0; border-radius: 8px; padding: 8px; cursor: pointer; }
.demo-pop .fine { font-size: 11px; color: #a1a1a6; margin: 9px 0 0; }
.demo-toast { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; z-index: 25; max-width: calc(100% - 24px); text-align: center; background: #2c2c2e; border: 1px solid #4cc36b; color: #fff; border-radius: 16px;
  padding: 8px 16px; font-weight: 600; width: max-content; box-shadow: 0 10px 26px rgba(0,0,0,.45); transition: opacity .3s; }
.demo-toast button { font: inherit; font-weight: 700; color: #6cb6ff; background: none; border: 0; padding: 0 0 0 6px; cursor: pointer; }
.demo-toast button:hover { text-decoration: underline; }
.demo-toast[hidden] { display: block; opacity: 0; pointer-events: none; }
.demo-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

@media (max-width: 900px) {
  .yv { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; padding: 8px 6px 12px; }
  .yv-days button { font-size: 10px; }
  .mv-grid { grid-auto-rows: 78px; }
  .demo-window { grid-template-columns: minmax(0, 1fr); }
  .demo-cals { position: absolute; z-index: 30; top: 0; bottom: 0; left: 0; width: 230px; box-shadow: 12px 0 30px rgba(0,0,0,.5); }
  .demo-body { grid-template-columns: minmax(0, 1fr); }
  .demo-side { order: -1; border-left: 0; border-bottom: 1px solid var(--line-d); }
  .demo-tl { display: none; }
  .demo-snaps { display: flex; overflow-x: auto; gap: 6px; }
  .demo-snap { flex: 0 0 auto; text-align: left; grid-template-columns: auto 1fr; }
  .demo-snap i { order: -1; }
  .demo-now { display: none; }
  .app-restore .demo-title { display: none; }
  .demo-search { width: 100%; }
}

@media (max-width: 860px) {
  .doc-hero.with-shot .wrap { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .doc-hero.with-shot .shot, .doc-hero.with-shot .helper-shot { max-width: min(440px, 100%); justify-self: center; }
  .uses, .quad, .fundamentals { grid-template-columns: repeat(2, 1fr); }
  .topics { grid-template-columns: minmax(0, 1fr); }
  .get { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .get .pills { justify-content: center; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  section.block { padding: 54px 0; }
  .doc { padding: 28px 22px 34px; margin: 0 14px 60px; }
  .brand small { display: none; }
  .logo { font-size: 16px; } .logo i { font-size: 14px; }
}

@media (max-width: 560px) {
  .demo-steps li:not(.now):not(.finish) { display: none; }
  .uses, .quad, .fundamentals { grid-template-columns: 1fr; }
  .wordmark { flex-direction: column; text-align: center; gap: 10px; }
  .wordmark img { width: 88px; height: 88px; }
  .nav { gap: 0; } .nav a { padding: 6px 7px; font-size: 14px; }
  .nav a:first-child { display: none; }
  .site-footer .cols { grid-template-columns: 1fr; }
}
