/* Syncento design system — Airbnb layout grammar, Apple system palette. */

:root {
  --blue: #007AFF; --green: #34C759; --orange: #FF9500; --red: #FF3B30;
  --indigo: #5856D6; --gray: #8E8E93; --gray2: #AEAEB2; --gray5: #E5E5EA;
  --bg: #F2F2F7; --card: #FFFFFF; --label: #1C1C1E; --label2: #636366;
  --radius: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--label);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { letter-spacing: -.4px; }

/* ── topbar ─────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.topbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; }
.brand-mark { width: 28px; height: 28px; position: relative; flex: none; }
.brand-mark::before, .brand-mark::after {
  content: ''; position: absolute; width: 19px; height: 19px; border-radius: 6px;
}
.brand-mark::before { background: var(--blue); left: 0; top: 0; }
.brand-mark::after  { background: var(--green); right: 0; bottom: 0; mix-blend-mode: multiply; opacity: .9; }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--label2); }
.topnav a:hover { background: var(--bg); color: var(--label); }
.topnav a.btn-primary { color: #fff; }
.topnav a.btn-primary:hover { background: #0071EB; color: #fff; }
.inline-form { display: inline; }

/* ── page scaffold ──────────────────────────── */
.page { max-width: 1120px; width: 100%; margin: 0 auto; padding: 28px 24px 80px; flex: 1; }
.crumb { font-size: 13px; color: var(--label2); margin-bottom: 6px; }
.crumb a:hover { text-decoration: underline; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 30px; font-weight: 700; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.footer { border-top: 1px solid rgba(0,0,0,.06); background: #fff; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 18px 24px; font-size: 13px; color: var(--label2); }

/* ── buttons ────────────────────────────────── */
.btn {
  display: inline-block; border: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600;
  padding: 10px 18px; border-radius: 999px; transition: transform .08s ease, background .15s;
  text-align: center;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #0071EB; }
.btn-quiet { background: #fff; color: var(--label); border: 1px solid var(--gray5); }
.btn-quiet:hover { background: var(--bg); }
.btn-ghost { background: transparent; color: var(--label2); }
.btn-ghost:hover { background: var(--bg); color: var(--label); }
.btn-danger { background: rgba(255,59,48,.1); color: #C4271C; }
.btn-danger:hover { background: rgba(255,59,48,.18); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 13px 26px; font-size: 16px; }
.btn-block { display: block; width: 100%; }

/* ── cards ──────────────────────────────────── */
.card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.05); box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

/* ── forms ──────────────────────────────────── */
label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 14px; color: var(--label); }
input[type=text], input[type=email], input[type=password], input[type=url],
input[type=date], select, textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 15px;
  padding: 11px 12px; border: 1px solid var(--gray5); border-radius: 10px;
  background: #fff; color: var(--label);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,122,255,.15);
}

.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.alert-error { background: rgba(255,59,48,.1); color: #C4271C; }
.alert-ok { background: rgba(52,199,89,.12); color: #1D8A3E; }

/* ── auth pages ─────────────────────────────── */
.auth-card {
  background: #fff; border-radius: var(--radius); border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  max-width: 420px; margin: 48px auto; padding: 36px 32px 28px;
}
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-sub { font-size: 14px; color: var(--label2); margin-bottom: 22px; }
.auth-switch { font-size: 14px; color: var(--label2); text-align: center; margin-top: 18px; }
.auth-switch a { color: var(--blue); font-weight: 600; }

/* ── landing v2 ─────────────────────────────── */
main.landing { flex: 1; }
.land-inner { max-width: 1120px; margin: 0 auto; }
.land-white { background: #fff; }

/* hero */
.hero { background: #fff; padding: 64px 24px 84px; overflow: hidden; }
.hero-grid {
  max-width: 1120px; margin: 0 auto; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px; align-items: center;
}
.hero-copy { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-chips { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.hero-chips .chip { font-size: 13px; padding: 6px 13px; }
.chip-arrow { color: var(--gray2); font-size: 15px; font-weight: 600; }
.chip-dark { background: var(--label); }
.hero h1 {
  font-size: clamp(38px, 4.6vw, 56px); font-weight: 800; letter-spacing: -1.6px;
  line-height: 1.04; text-wrap: balance;
}
.hero h1 .accent { color: var(--blue); }
.hero-sub {
  font-size: 17.5px; color: var(--label2); max-width: 480px;
  margin: 22px 0 30px; line-height: 1.6; text-wrap: pretty;
}
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--gray2); margin-top: 14px; }

/* hero product visual: mini calendar + floating cards */
.hero-visual { position: relative; animation: rise .7s .12s cubic-bezier(.2,.7,.2,1) both; }
.mini-cal {
  background: #fff; border-radius: 20px; padding: 20px 20px 16px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 6px rgba(0,0,0,.04), 0 24px 60px -12px rgba(28,28,30,.18);
}
.mini-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mini-cal-title { font-size: 15px; font-weight: 700; }
.mini-cal-dots { display: flex; gap: 5px; }
.mini-cal-dots i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.mini-dow { display: grid; grid-template-columns: repeat(7,1fr); margin-bottom: 2px; }
.mini-dow span { font-size: 9.5px; font-weight: 700; letter-spacing: .5px; color: var(--gray2); text-align: center; padding: 4px 0; }
.mini-grid { position: relative; display: grid; grid-template-columns: repeat(7,1fr); grid-auto-rows: 44px; }
.mini-grid b {
  font-weight: 500; font-size: 11.5px; color: var(--label2);
  border-top: 1px solid #F0F0F3; padding: 5px 0 0 7px;
}
.mini-grid b.dim { color: #C7C7CC; }
.mini-grid b.now {
  color: #fff; position: relative;
}
.mini-grid b.now::before {
  content: ''; position: absolute; left: 4px; top: 3px; width: 19px; height: 19px;
  border-radius: 50%; background: var(--blue); z-index: -1;
}
.mini-pill {
  position: absolute; height: 19px; border-radius: 999px; color: #fff;
  font-size: 9.5px; font-weight: 700; line-height: 19px; padding: 0 8px;
  white-space: nowrap; overflow: hidden;
  animation: pillin .55s cubic-bezier(.2,.7,.2,1) both;
}
.mini-pill.striped {
  background: repeating-linear-gradient(45deg, #8E8E93, #8E8E93 5px, #9B9BA0 5px, #9B9BA0 10px);
}
@keyframes pillin { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes floatin { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }

.float-card {
  position: absolute; background: #fff; border-radius: 14px; padding: 10px 14px;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 14px 40px -8px rgba(28,28,30,.22);
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600;
  animation: floatin .6s .55s cubic-bezier(.2,.7,.2,1) both;
}
.float-card small { display: block; font-weight: 500; color: var(--label2); font-size: 11px; }
.float-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.float-sync { top: -18px; right: -14px; }
.float-turn { bottom: -20px; left: -16px; animation-delay: .75s; }
.float-turn .badge { margin: 0; }

/* section scaffolding */
.land-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.land-eyebrow {
  display: inline-flex; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.land-head h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.9px; line-height: 1.12; text-wrap: balance; }
.land-head p { font-size: 16px; color: var(--label2); line-height: 1.6; margin-top: 16px; text-wrap: pretty; }

/* mesh comparison */
.mesh-section { padding: 76px 24px; }
.mesh-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; max-width: 880px; margin: 0 auto; }
.mesh-card {
  background: #fff; border-radius: 20px; border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 1px 2px rgba(0,0,0,.04); padding: 30px 28px; text-align: center;
}
.mesh-card.mesh-good { box-shadow: 0 2px 6px rgba(52,199,89,.08), 0 18px 48px -16px rgba(52,199,89,.25); border-color: rgba(52,199,89,.35); }
.mesh-k { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gray2); margin-bottom: 16px; }
.mesh-good .mesh-k { color: #1D8A3E; }
.mesh-diagram { display: flex; justify-content: center; margin-bottom: 14px; }
.mesh-node { font-size: 10px; font-weight: 700; }
.mesh-count { font-size: 24px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 10px; }
.mesh-count small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--gray2); margin-top: 2px; }
.mesh-bad .mesh-count { color: #C4271C; }
.mesh-good .mesh-count { color: #1D8A3E; }
.mesh-card p { font-size: 14px; color: var(--label2); line-height: 1.6; text-wrap: pretty; }

/* feature trio with micro-visuals */
.features { padding: 76px 24px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; max-width: 1120px; margin: 0 auto; }
.feature-card {
  background: var(--bg); border-radius: 20px; padding: 28px 26px;
}
.land-gray .feature-card { background: #fff; border: 1px solid rgba(0,0,0,.05); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.feature-vis { height: 74px; display: flex; flex-direction: column; justify-content: center; gap: 7px; margin-bottom: 18px; }
.fv-pill { height: 18px; border-radius: 999px; color: #fff; font-size: 9.5px; font-weight: 700; line-height: 18px; padding: 0 9px; }
.fv-row { display: flex; gap: 6px; align-items: center; }
.fv-arrow { color: var(--gray2); font-size: 13px; font-weight: 700; }
.feature-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--label2); line-height: 1.6; text-wrap: pretty; }

/* how it works */
.steps { padding: 76px 24px 84px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; max-width: 980px; margin: 0 auto; counter-reset: step; }
.step { text-align: center; padding: 0 10px; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 16px;
  background: #fff; border: 1px solid rgba(0,0,0,.07); box-shadow: 0 1px 3px rgba(0,0,0,.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800; color: var(--blue);
}
.step h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--label2); line-height: 1.6; }

/* pricing */
.pricing { padding: 0 24px 90px; }
.pricing-card {
  position: relative; overflow: hidden;
  background: #fff; border-radius: 24px; border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 2px 8px rgba(0,0,0,.05), 0 28px 70px -20px rgba(28,28,30,.18);
  max-width: 560px; margin: 0 auto; padding: 44px 40px 40px; text-align: center;
}
.pricing-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--red) 0 25%, var(--indigo) 0 50%, var(--blue) 0 75%, var(--orange) 0 100%);
}
.pricing-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--blue); background: rgba(0,122,255,.1);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.pricing-card h2 { font-size: 38px; font-weight: 800; letter-spacing: -1px; }
.pricing-sub { font-size: 15.5px; color: var(--label2); margin: 12px 0 20px; line-height: 1.55; }
.pricing-future {
  font-size: 14px; color: var(--label); background: var(--bg); border-radius: 14px;
  padding: 16px 18px; line-height: 1.6; margin-bottom: 26px; text-wrap: pretty;
}
.pricing-future strong { font-size: 15px; }

.chip-pair { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 44px 24px 64px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-chips, .hero-actions { justify-content: center; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .float-sync { display: none; }
  .float-turn { left: 4px; bottom: -16px; }
}

/* ── dashboard property cards ───────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.prop-card {
  background: var(--card); border-radius: var(--radius); border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 1px 2px rgba(0,0,0,.04); padding: 20px; display: block;
  transition: transform .12s ease, box-shadow .12s ease;
}
.prop-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.prop-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.prop-card h3 { font-size: 18px; font-weight: 700; }
.health-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.health-ok { background: var(--green); box-shadow: 0 0 0 4px rgba(52,199,89,.15); }
.health-bad { background: var(--red); box-shadow: 0 0 0 4px rgba(255,59,48,.15); }
.health-none { background: var(--gray2); box-shadow: 0 0 0 4px rgba(174,174,178,.15); }
.prop-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-top: 1px solid var(--bg); padding-top: 14px; }
.prop-meta dt { font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--gray2); }
.prop-meta dd { font-size: 15px; font-weight: 600; margin-top: 3px; }

.empty-state {
  text-align: center; background: #fff; border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.05); padding: 64px 24px;
}
.empty-state h2 { font-size: 22px; margin-bottom: 10px; }
.empty-state p { font-size: 15px; color: var(--label2); margin-bottom: 24px; }

/* ── tabs ───────────────────────────────────── */
.tabs { display: flex; gap: 4px; background: var(--gray5); padding: 3px; border-radius: 12px; width: max-content; max-width: 100%; overflow-x: auto; margin-bottom: 24px; }
.tabs a { padding: 7px 18px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--label2); white-space: nowrap; }
.tabs a.active { background: #fff; color: var(--label); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* ── calendar page ──────────────────────────── */
.cal-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .cal-layout { grid-template-columns: 1fr; } }

.cal-card { padding: 20px 20px 16px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-title { font-size: 19px; font-weight: 700; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gray5);
  background: #fff; cursor: pointer; font-size: 16px; color: var(--label);
  display: flex; align-items: center; justify-content: center;
}
.cal-nav button:hover { background: var(--bg); }

.dow { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 4px; }
.dow div { text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .6px; color: var(--gray2); text-transform: uppercase; padding: 6px 0; }

.cal-grid { position: relative; border-top: 1px solid var(--gray5); border-left: 1px solid var(--gray5); }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); position: relative; }
.day {
  min-height: 96px; border-right: 1px solid var(--gray5); border-bottom: 1px solid var(--gray5);
  padding: 6px; position: relative; background: #fff; cursor: pointer;
}
.day:hover { background: #FAFAFC; }
.day.out { background: #FBFBFD; }
.day.out .dnum { color: var(--gray2); }
.day.selecting { background: rgba(0,122,255,.08); }
.day.past { cursor: default; }
.dnum { font-size: 13px; font-weight: 500; pointer-events: none; }
.day.today .dnum {
  display: inline-flex; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue); color: #fff; align-items: center; justify-content: center; font-weight: 700;
}

.pill {
  position: absolute; height: 22px; border-radius: 999px; z-index: 2;
  font-size: 11.5px; font-weight: 600; color: #fff; line-height: 22px;
  padding: 0 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pill.cont-l { border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.pill.cont-r { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.pill.p-manual {
  background: repeating-linear-gradient(45deg, #8E8E93, #8E8E93 6px, #9B9BA0 6px, #9B9BA0 12px);
  cursor: pointer;
}
.pill.p-manual:hover { filter: brightness(1.08); }

.legend { display: flex; gap: 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--gray5); flex-wrap: wrap; }
.leg { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--label2); }
.leg i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.cal-tip { font-size: 12.5px; color: var(--label2); margin-top: 10px; }

/* sidebar widgets */
.widget { padding: 18px 18px 16px; margin-bottom: 16px; }
.widget h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.widget .hint { font-size: 12.5px; color: var(--label2); margin-top: 10px; line-height: 1.45; }
.date-row { display: flex; gap: 8px; }
.date-row input { margin-top: 0; flex: 1; min-width: 0; font-size: 14px; padding: 9px 10px; }
.avail-result {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  background: rgba(52,199,89,.12); color: #1D8A3E; display: none;
}
.avail-result.busy { background: rgba(255,59,48,.10); color: #C4271C; }
.avail-result.show { display: block; }
.upcoming { list-style: none; }
.upcoming li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--bg); }
.upcoming li:last-child { border-bottom: 0; }
.updot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.uptext { font-size: 13.5px; line-height: 1.3; }
.uptext small { display: block; color: var(--label2); font-size: 12px; }

/* ── tables (sources, feeds) ────────────────── */
.table-card { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th {
  text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; color: var(--gray2); padding: 14px 16px 10px; border-bottom: 1px solid var(--gray5);
}
table.list td { padding: 14px 16px; border-bottom: 1px solid var(--bg); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
.chip { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: #fff; display: inline-block; }
.chip-muted { background: var(--gray5); color: var(--label2); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; }
.url-box {
  display: flex; gap: 8px; align-items: center; background: var(--bg); border-radius: 10px;
  padding: 8px 8px 8px 12px; margin-top: 6px;
}
.url-box code { flex: 1; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; overflow-x: auto; white-space: nowrap; }
.muted { color: var(--label2); font-size: 12.5px; }
.status-ok { color: #1D8A3E; font-weight: 600; }
.status-err { color: #C4271C; font-weight: 600; }

.section-card { padding: 24px; margin-bottom: 20px; }
.section-card h2 { font-size: 18px; margin-bottom: 4px; }
.section-card > p { font-size: 13.5px; color: var(--label2); margin-bottom: 18px; }

/* ── modal ──────────────────────────────────── */
dialog.modal {
  border: 0; border-radius: var(--radius); padding: 28px;
  width: min(440px, calc(100vw - 40px));
  box-shadow: 0 24px 60px rgba(0,0,0,.2);
}
dialog.modal::backdrop { background: rgba(28,28,30,.4); backdrop-filter: blur(4px); }
dialog.modal h2 { font-size: 19px; margin-bottom: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* ── housekeeper page ───────────────────────── */
.hk-wrap { max-width: 560px; margin: 0 auto; padding: 28px 18px 60px; }
.hk-head { text-align: center; margin-bottom: 26px; }
.hk-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--label2); margin-bottom: 14px; }
.hk-brand .brand-mark { width: 20px; height: 20px; }
.hk-brand .brand-mark::before, .hk-brand .brand-mark::after { width: 14px; height: 14px; border-radius: 4px; }
.hk-head h1 { font-size: 26px; font-weight: 700; }
.hk-head p { font-size: 14px; color: var(--label2); margin-top: 6px; }
.month-label {
  font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  color: var(--label2); margin: 26px 4px 10px;
}
.turnover {
  background: var(--card); border-radius: 16px; border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 1px 2px rgba(0,0,0,.04); padding: 16px; margin-bottom: 12px;
}
.t-date { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; flex-wrap: wrap; }
.t-when { font-size: 17px; font-weight: 700; }
.badge { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.badge-sameday { background: rgba(255,149,0,.15); color: #B36A00; }
.badge-gap { background: rgba(52,199,89,.14); color: #1D8A3E; }
.t-flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.t-slot { border-radius: 12px; padding: 10px 12px; }
.t-out { background: rgba(255,59,48,.07); }
.t-in { background: rgba(52,199,89,.09); }
.t-slot .k { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.t-out .k { color: #C4271C; }
.t-in .k { color: #1D8A3E; }
.t-none .k { color: var(--gray); }
.t-slot .v { font-size: 15px; font-weight: 600; margin-top: 3px; }
.t-none .v { color: var(--label2); font-weight: 500; }
.t-slot .s { font-size: 12px; color: var(--label2); margin-top: 2px; }
.t-arrow { color: var(--gray); font-size: 18px; }
.hk-foot { text-align: center; font-size: 12px; color: var(--gray); margin-top: 36px; line-height: 1.6; }

/* ── 404 ────────────────────────────────────── */
.notfound { text-align: center; padding: 90px 24px; }
.notfound h1 { font-size: 64px; font-weight: 800; color: var(--gray2); }
.notfound p { font-size: 16px; color: var(--label2); margin: 12px 0 26px; }

@media (max-width: 640px) {
  .hero h1 { font-size: 34px; }
  .page { padding: 20px 16px 60px; }
  .page-head h1 { font-size: 24px; }
  .day { min-height: 64px; }
  .pill { font-size: 10px; padding: 0 5px; }
}
