* { box-sizing: border-box; }
:root {
  /* Airbnb design language: neutral light surfaces, #222 ink, thin borders,
     rounded (Circular-like) type, pill buttons, minimal shadows */
  --ink: #222222;
  --muted: #6f6f72;
  --line: #ebebeb;
  --line-soft: #f2f2f2;
  --surface: #ffffff;
  --bg: #f7f7f7;
  --hover: #f6f6f6;
  --black: #222222;
  --rausch: #ff385c;      /* Airbnb coral */
  --teal: #008489;        /* Airbnb teal */
  --radius: 16px;
  --font: "Nunito", ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body.cueva { --accent: #ff385c; --accent-deep: #d91c41; --accent-soft: #ffe9ed; --accent-ink: #b3244a; }
body.gijon { --accent: #008489; --accent-deep: #00666b; --accent-soft: #d9f0f1; --accent-ink: #00636a; }
body.home  { --accent: #222222; --accent-deep: #000000; --accent-soft: #f2f2f2; --accent-ink: #222222; }

html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--font);
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
.muted { color: var(--muted); }
code { background: #f0f0f0; padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }
button { font: inherit; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  padding: 10px 24px;
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.logo {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px; color: #fff; font-size: 17px; font-weight: 800;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
}
.brand h1 { font-size: 19px; margin: 0; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.brand .tag {
  color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding-left: 11px; border-left: 1px solid var(--line); white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 8px; }

/* Airbnb-style buttons: pills, black primary */
.btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--black); border-color: var(--black); color: #fff; }
.btn.primary:hover { background: #000; }
.icon-btn {
  width: 40px; height: 40px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: var(--hover); border-color: #d8d8d8; }
.icon-btn:active { background: #efefef; }
.icon-btn svg { display: block; }
#refresh.spin { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 24px 8px; }

/* ---------- calendar header ---------- */
.cal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 2px 2px 18px; flex-wrap: wrap; }
.cal-head h2 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.cal-head h2 .yr { color: var(--muted); font-weight: 700; margin-left: 2px; }
.cal-head .meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); padding-bottom: 5px; flex-wrap: wrap; }
.stat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 14px; font-size: 13px; font-weight: 600; color: var(--ink);
}
.stat-pill .num { font-weight: 800; }
#updatedAt { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
#updatedAt::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #00c394; }

/* ---------- banner ---------- */
.banner { border-radius: 14px; padding: 13px 18px; margin: 0 2px 16px; font-size: 14px; font-weight: 600; }
.banner.error { background: #fdf0ef; border: 1px solid #f5cfc9; color: #8a2f28; }
.banner.warn { background: #fdf7e6; border: 1px solid #ecd9a0; color: #7a5b12; }
.banner-actions { margin-top: 8px; }
.banner .diag { color: inherit; font-weight: 800; text-decoration: underline; }
.banner .btn.ghost { background: var(--surface); }

/* ---------- calendar card ---------- */
.calendar {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
}
.dow-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 0 0 10px; }
.dow {
  text-align: center; font-size: 13.5px; font-weight: 800; color: var(--muted);
  letter-spacing: .01em;
}
.grid { display: flex; flex-direction: column; gap: 6px; }
.week { position: relative; }
.wcells { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }

/* Airbnb-style day cells: thin square separators, plain day numbers, hover tint */
.cell {
  min-height: 112px; border: 1px solid var(--line); border-radius: 14px; padding: 8px;
  background: var(--surface); cursor: pointer; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .12s, background .12s;
}
.cell:hover { background: var(--hover); border-color: #d5d5d5; }
.cell.dim { background: #fbfbfb; }
.cell.dim .dnum { color: #c4c4c8; }
.cell-head { display: flex; justify-content: center; }
.dnum {
  font-size: 13.5px; font-weight: 800; color: var(--ink);
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px;
}
.cell.today .dnum { background: var(--black); color: #fff; }

/* all-day reservation bars overlay the week row, spanning their days.
   20 tracks: per day -> left half | right half | spacer (matching .wcells
   gaps), so a bar can stop/ start at the middle of a day (Airbnb style). */
.wbars {
  position: absolute; top: 37px; left: 0; right: 0; z-index: 3;
  display: grid; row-gap: 4px; pointer-events: none;
  grid-template-columns:
    calc((100% - 36px) / 14) calc((100% - 36px) / 14) 6px
    calc((100% - 36px) / 14) calc((100% - 36px) / 14) 6px
    calc((100% - 36px) / 14) calc((100% - 36px) / 14) 6px
    calc((100% - 36px) / 14) calc((100% - 36px) / 14) 6px
    calc((100% - 36px) / 14) calc((100% - 36px) / 14) 6px
    calc((100% - 36px) / 14) calc((100% - 36px) / 14) 6px
    calc((100% - 36px) / 14) calc((100% - 36px) / 14);
}
.bar {
  height: 22px; border-radius: 999px;
  display: flex; align-items: center; gap: 6px; padding: 0 10px;
  font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden;
  position: relative; cursor: pointer; pointer-events: auto;
}
.bar.cont { opacity: .5; }
.bar-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.bar-label { overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.chips { display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.chip {
  display: flex; gap: 6px; align-items: center; font-size: 13px; line-height: 1.3; font-weight: 800;
  border-radius: 999px; padding: 3px 10px; white-space: nowrap; overflow: hidden;
}
.chip-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.chip .chip-time { font-weight: 800; flex: none; }
.chip .chip-title { overflow: hidden; text-overflow: ellipsis; }
.chip.more { background: transparent; color: var(--muted); padding-left: 10px; }

/* ---------- footer ---------- */
.foot {
  max-width: 1240px; margin: 0 auto; width: 100%;
  padding: 14px 24px 22px; font-size: 12.5px; color: var(--muted);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.foot .lbl { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.src-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 13px 4px 10px; background: var(--surface); font-size: 12.5px; font-weight: 700; color: var(--ink);
}
.src-chip b { font-weight: 800; }
.src-chip.fail { border-style: dashed; color: var(--muted); }
.src-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.foot .upd { font-size: 12px; }
.foot .swipe-hint { display: none; font-size: 11.5px; font-weight: 700; }

/* month slide animation (swipe / buttons) */
@keyframes slideInLeft { from { transform: translateX(28px); opacity: .35; } to { transform: none; opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(-28px); opacity: .35; } to { transform: none; opacity: 1; } }
.calendar.slide-left { animation: slideInLeft .22s ease-out; }
.calendar.slide-right { animation: slideInRight .22s ease-out; }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; background: rgba(20, 20, 20, .5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50;
}
.modal[hidden] { display: none; }
.modal-card {
  background: var(--surface); border-radius: 24px; width: 100%; max-width: 580px; max-height: 82vh;
  display: flex; flex-direction: column; box-shadow: 0 20px 60px -12px rgba(0, 0, 0, .35);
  animation: pop .18s ease-out;
}
@keyframes pop { from { transform: scale(.96) translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 14px; }
.modal-head h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.modal-head .icon-btn { width: 34px; height: 34px; background: transparent; border-color: transparent; color: var(--muted); }
.modal-head .icon-btn:hover { background: var(--hover); color: var(--ink); border-color: transparent; }
.modal-body { overflow-y: auto; padding: 4px 24px 22px; }
.event { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.event:last-child { border-bottom: none; }
.event-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.src-badge {
  font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  border-radius: 999px; padding: 3px 11px; color: #fff;
}
.event-time { font-size: 13px; font-weight: 700; color: var(--muted); }
.event-time b { color: var(--ink); font-weight: 800; }
.event-title { font-size: 16px; font-weight: 800; margin-top: 5px; letter-spacing: -0.01em; }
.event-loc { font-size: 13px; color: var(--muted); margin-top: 3px; font-weight: 600; }
.event-desc {
  font-size: 12.5px; color: var(--muted); margin-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere;
  background: var(--bg); border-radius: 12px; padding: 10px 12px; font-weight: 600;
}
.pad { padding: 14px 0; }

/* ---------- home ---------- */
.home-hero h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 8px; }
.home-hero p { color: var(--muted); margin: 0; max-width: 560px; font-weight: 600; }
.home-main { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 24px; }
.card {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; text-decoration: none; color: var(--ink);
  position: relative; overflow: hidden;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--accent), var(--accent-deep)); }
.cueva-card { --accent: #ff385c; --accent-deep: #d91c41; }
.gijon-card { --accent: #008489; --accent-deep: #00666b; }
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .18); border-color: #d9d9d9; }
.card h2 { margin: 10px 0 8px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.card p { margin: 0 0 20px; color: var(--muted); font-size: 14px; font-weight: 600; }
.card .go {
  display: inline-flex; align-items: center; gap: 6px;
  color: #fff; background: var(--accent); font-weight: 800; font-size: 13.5px;
  border-radius: 999px; padding: 10px 18px;
  transition: background .15s, gap .15s;
}
.cueva-card .go { background: #ff385c; }
.gijon-card .go { background: #008489; }
.card .go:hover { background: var(--accent-deep); }
.card:hover .go { gap: 10px; }
.hint { grid-column: 1 / -1; color: var(--muted); font-size: 13px; margin: 2px 0 0; font-weight: 600; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .topbar { padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top)); }
  .brand { gap: 8px; }
  .logo { width: 32px; height: 32px; font-size: 15px; border-radius: 10px; }
  .brand h1 { font-size: 17px; }
  .brand .tag { display: none; }
  .nav { gap: 6px; }
  .icon-btn { width: 38px; height: 38px; }
  .icon-btn svg { width: 16px; height: 16px; }
  .btn { padding: 7px 13px; font-size: 13px; }

  main { padding: 16px 12px 6px; }
  .cal-head { margin-bottom: 12px; gap: 8px; }
  .cal-head h2 { font-size: 25px; }
  .cal-head .meta { gap: 7px; padding-bottom: 0; }
  .stat-pill { font-size: 12px; padding: 4px 11px; }
  #updatedAt { font-size: 12px; }

  .banner { margin: 0 2px 12px; font-size: 13px; padding: 11px 14px; }

  .calendar { padding: 10px; border-radius: 14px; }
  .dow-row { column-gap: 4px; padding-bottom: 8px; }
  .dow { font-size: 12px; }
  .grid { gap: 4px; }
  .wcells { gap: 4px; }
  .cell { min-height: 72px; border-radius: 12px; padding: 6px; gap: 5px; border-width: 1px; }
  .dnum { font-size: 12px; width: 24px; height: 24px; }
  .wbars {
    top: 28px; row-gap: 3px;
    grid-template-columns:
      calc((100% - 24px) / 14) calc((100% - 24px) / 14) 4px
      calc((100% - 24px) / 14) calc((100% - 24px) / 14) 4px
      calc((100% - 24px) / 14) calc((100% - 24px) / 14) 4px
      calc((100% - 24px) / 14) calc((100% - 24px) / 14) 4px
      calc((100% - 24px) / 14) calc((100% - 24px) / 14) 4px
      calc((100% - 24px) / 14) calc((100% - 24px) / 14) 4px
      calc((100% - 24px) / 14) calc((100% - 24px) / 14);
  }
  .bar { height: 20px; font-size: 12px; gap: 4px; padding: 0 7px; }
  .bar-dot { width: 6px; height: 6px; }
  /* 1-day segments: compact label so "N nights" fits in a single cell,
     even in back-to-back stays (half + half + gap ≈ 50px) */
  .bar-sm { font-size: 8px; letter-spacing: -0.03em; padding: 0 4px; }
  .bar-sm .bar-dot { display: none; }
  .chips { gap: 3px; }
  .chip { font-size: 11.5px; padding: 3px 8px; gap: 5px; }
  .chip-dot { width: 6px; height: 6px; }

  .foot {
    padding: 12px 14px calc(18px + env(safe-area-inset-bottom));
    flex-direction: column; align-items: flex-start; gap: 7px;
  }
  .foot .lbl { width: 100%; }
  .foot .upd { display: none; }
  .foot .swipe-hint { display: inline; }
  .src-chip { font-size: 11.5px; padding: 3px 10px 3px 8px; }

  /* modal becomes a bottom sheet */
  .modal { padding: 0; align-items: flex-end; }
  .modal-card {
    max-width: none; max-height: 86vh;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -16px 50px rgba(0, 0, 0, .28);
  }
  .modal-card::before {
    content: ''; display: block; flex: none;
    width: 40px; height: 4px; border-radius: 999px;
    background: #d8dce3; margin: 10px auto 0;
  }
  .modal-head { padding: 12px 18px 10px; }
  .modal-head h3 { font-size: 16px; }
  .modal-body { padding: 2px 18px 26px; }
  .event-desc { font-size: 12px; }

  /* home */
  .home-hero h2 { font-size: 24px; margin-top: 6px; }
  .home-hero p { font-size: 13.5px; }
  .home-main { gap: 12px; margin-top: 14px; }
  .card { padding: 18px; border-radius: 14px; }
  .card h2 { font-size: 19px; margin-top: 6px; }
  .card .go { display: flex; justify-content: center; width: 100%; }
}
splay: flex; justify-content: center; width: 100%; }
}

/* ---------- manual guest count (badge + dialog) ---------- */
.bar-guests {
  margin-left: auto; flex: none;
  height: 15px; padding: 0 5px;
  border-radius: 999px; background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .85em; font-weight: 800; pointer-events: none; white-space: nowrap;
}
.bar-sm .bar-guests { height: 14px; padding: 0 2px; font-size: 8px; }
.bar-sm { gap: 3px; }
.bar.badge-only .bar-dot { display: none; }

.gdlg {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
}
.gdlg[hidden] { display: none; }
.gdlg-card {
  background: var(--surface); border-radius: 18px;
  width: min(92vw, 360px); padding: 18px 20px 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,.28);
}
.gdlg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.gdlg-head h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.gdlg-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; line-height: 1.4; }
.gdlg-stored { display: flex; gap: 8px; margin: 4px 0 8px; }
.gdlg-stored .gdlg-delbtn { color: #c0392b; }
.gdlg-edit { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 8px; }
.gdlg-edit label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.gdlg-edit label.grow { flex: 1; min-width: 130px; }
.gdlg-edit input { font-size: 13px; font-weight: 600; color: var(--black); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: #fff; text-transform: none; letter-spacing: normal; }
.gdlg-stepper { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 8px 0 4px; }
.gdlg-step {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 22px; font-weight: 700; cursor: pointer;
  transition: background .15s;
}
.gdlg-step:hover { background: var(--hover); }
.gdlg-n { min-width: 44px; text-align: center; font-size: 28px; font-weight: 800; }
.gdlg-err { min-height: 16px; font-size: 12px; color: #c0392b; text-align: center; margin-bottom: 6px; }
.gdlg-btns { display: flex; align-items: center; gap: 8px; }
.gdlg-btns .sp { flex: 1; }
.event-guests { font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 6px; }
/* ---------- view toggle (Calendar bars / List agenda) ---------- */
.view-toggle {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--line); border-radius: 999px; padding: 2px;
  background: var(--surface);
}
.view-toggle button {
  border: 0; background: transparent; color: var(--muted);
  border-radius: 999px; padding: 5px 12px;
  font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.view-toggle button.on { background: var(--black); color: #fff; }
.view-toggle button:not(.on):hover { background: var(--hover); color: var(--ink); }

/* ---------- list view: chronological agenda ---------- */
.list-view { display: flex; flex-direction: column; gap: 8px; padding: 4px 2px 10px; }
.lrow {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 14px; cursor: pointer;
  transition: border-color .12s, background .12s;
}
.lrow:hover { border-color: #d5d5d5; background: var(--hover); }
.lrow-date {
  flex: none; width: 46px;
  display: flex; flex-direction: column; align-items: center; line-height: 1.15;
  background: var(--bg); border-radius: 10px; padding: 6px 0;
}
.lrow-date b { font-size: 18px; font-weight: 800; }
.lrow-date span { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.lrow-body { min-width: 0; flex: 1; }
.lrow-title { font-size: 14.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow-nights { color: var(--muted); font-weight: 700; }
.lrow-guests { font-weight: 800; }
.lrow-meta { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 3px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.lrow-src { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.lrow-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.lrow-empty { padding: 48px 16px; text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; }
@media (max-width: 760px) {
  .lrow { padding: 8px 10px; gap: 10px; border-radius: 12px; }
  .lrow-date { width: 40px; }
  .lrow-date b { font-size: 16px; }
  .lrow-title { font-size: 13.5px; }
  .lrow-meta { font-size: 11.5px; }
}

/* ---------- start page: Booking.com export upload ---------- */
.home-booking { max-width: 880px; margin: 36px auto 8px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.home-booking h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.home-booking > p { margin: 8px 0 16px; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.55; }
.home-booking > .hint { margin: 14px 0 0; }
.bk-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bk-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--bg); }
.bk-card h3 { margin: 0; font-size: 16px; font-weight: 800; }
.bk-sub { margin: 2px 0 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.bk-drop {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px dashed #cfcfd4; border-radius: 12px; background: var(--surface);
  padding: 13px 14px; margin-top: 10px; cursor: pointer;
  transition: border-color .12s, background .12s;
}
.bk-drop:hover, .bk-drop.over { border-color: var(--black); background: var(--hover); }
.bk-drop-ic { color: var(--muted); display: inline-flex; flex: none; }
.bk-drop-txt { font-size: 13px; font-weight: 700; color: var(--muted); }
.bk-status { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-top: 10px; line-height: 1.45; min-height: 17px; }
.bk-status.err { color: #c0392b; }
.bk-btns { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.bk-btns .sp { flex: 1; }
.bk-list { margin-top: 10px; max-height: 190px; overflow: auto; border-top: 1px dashed var(--line); }
.bk-row { display: flex; align-items: center; gap: 8px; padding: 5px 2px; border-bottom: 1px dashed var(--line); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.bk-row .bk-r-dates { color: var(--black); font-weight: 700; white-space: nowrap; }
.bk-row .bk-r-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-row .bk-r-tag { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: var(--hover); border-radius: 999px; padding: 2px 7px; white-space: nowrap; }
.bk-row .bk-r-del { border: 0; background: none; color: #c0392b; font-weight: 800; cursor: pointer; font-size: 13px; padding: 2px 6px; border-radius: 6px; }
.bk-row .bk-r-del:hover { background: #fdecea; }
.bk-row .bk-r-edit { border: 0; background: none; color: var(--muted); font-weight: 800; cursor: pointer; font-size: 13px; padding: 2px 6px; border-radius: 6px; }
.bk-row .bk-r-edit:hover { background: var(--hover); color: var(--black); }
.bk-manual { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 8px; }
.bk-manual summary { cursor: pointer; font-size: 13px; font-weight: 800; }
.bk-manual-row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.bk-manual-row label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.bk-manual-row label.grow { flex: 1; min-width: 140px; }
.bk-manual-row input, .bk-manual-row select { font-size: 13px; font-weight: 600; color: var(--black); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: #fff; text-transform: none; letter-spacing: normal; }
.bk-manual-row .bm-add { align-self: flex-end; }
.bk-manual-note { font-size: 11.5px; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
@media (max-width: 760px) {
  .bk-cards { grid-template-columns: 1fr; }
  .home-booking { padding: 16px; }
}


/* ---------- Start page: overbooking-protection sync section ---------- */
.home-sync { max-width: 880px; margin: 26px auto 8px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.home-sync h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.home-sync > p { margin: 8px 0 16px; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.55; }
.home-sync .sync-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.home-sync .sync-card { background: #f6f7f9; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.home-sync .sync-card h3 { margin: 0; font-size: 15px; font-weight: 800; }
.home-sync .sync-card p { margin: 2px 0 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.home-sync .sync-url { display: flex; gap: 8px; margin-top: 10px; }
.home-sync .sync-url input { flex: 1; min-width: 0; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); }
.home-sync .sync-steps { margin-top: 16px; }
.home-sync .sync-steps h3 { font-size: 14px; font-weight: 800; margin: 0 0 8px; }
.home-sync .sync-steps ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; font-weight: 600; line-height: 1.75; }
.home-sync .sync-steps b { color: var(--ink); }
.home-sync > .hint { margin: 14px 0 0; }
@media (max-width: 760px) {
  .home-sync { padding: 16px; }
  .home-sync .sync-cards { grid-template-columns: 1fr; }
}
/* ---------- Channel calendars comparison page (/channels) ---------- */
.channels-page .topbar .logo.ch { background: linear-gradient(135deg, #4b5568, #272d3a); font-size: 17px; }
.ch-note { max-width: 1100px; margin: 0 auto 14px; padding: 0 18px; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.55; }
.ch-note b { color: var(--ink); }
.ch-cols { max-width: 1160px; margin: 0 auto; padding: 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ch-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.ch-col-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ch-col-head h3 { margin: 0; font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em; }
.ch-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ch-status { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--muted); max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.ch-dow-c { text-align: center; font-size: 10.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.ch-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ccell { position: relative; aspect-ratio: 1 / 0.92; border-radius: 7px; background: #f6f7f9; border: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: flex-end; padding: 3px 5px; font-size: 10.5px; font-weight: 700; color: var(--muted); cursor: default; }
.ccell.dim { opacity: .38; }
.ccell.today { outline: 2px solid #3b4252; outline-offset: -1px; }
.ccell.empty { background: repeating-linear-gradient(45deg, #f2f3f5, #f2f3f5 4px, #eceef1 4px, #eceef1 8px); border-style: dashed; }
.ch-col[data-ch="airbnb"] .ccell.blocked { background: #ffe1e6; border-color: #ffb3c1; color: #b3244a; }
.ch-col[data-ch="booking"] .ccell.blocked { background: #dcebfd; border-color: #a9cdF7; color: #174e96; }
.ch-col[data-ch="vrbo"] .ccell.blocked { background: #d7f2e4; border-color: #a3dcbc; color: #0a6b3c; }
.cc.synced, .ccell.synced {
  background-color: #eef1f4;
  background-image: repeating-linear-gradient(45deg, rgba(100, 116, 139, .5) 0 2px, transparent 2px 7px);
  border-color: #c3cdd8;
  color: #46586e;
}
.ch-legend { max-width: 1160px; margin: 0 auto 14px; padding: 0 18px; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.ch-legend .lg { display: inline-flex; align-items: flex-start; gap: 8px; max-width: 420px; }
.ch-legend b { color: var(--ink); }
.ch-legend .sw { width: 15px; height: 15px; border-radius: 4px; border: 1px solid var(--line); flex: none; margin-top: 1px; }
.ch-legend .sw.solid { background: #94a3b8; }
.ch-legend .sw.hatch { background-color: #eef1f4; background-image: repeating-linear-gradient(45deg, rgba(100, 116, 139, .5) 0 2px, transparent 2px 7px); border-color: #c3cdd8; }
.ch-legend .sw.open { background: #f6f7f9; }
@media (max-width: 900px) {
  .ch-cols { grid-template-columns: 1fr; }
  .ccell { aspect-ratio: 1 / 0.75; font-size: 11px; }
}
