:root {
  --bg: #ffffff;
  --ink: #222222;
  --muted: #717171;
  --line: #ebebeb;
  --brand: #f15b3a;
  --brand-soft: #f3b5a6;
  --brand-dark: #d94a2e;
  --soft: #fff4f0;
  --ok: #1f7a4c;
  --warn: #c98a00;
  --err: #c73a3a;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 8px 28px rgba(34, 34, 34, 0.08);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 400; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; margin: 0 0 0.6rem; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.wrap-wide { width: min(1280px, calc(100% - 24px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .inner { display: flex; align-items: center; gap: 20px; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.logo img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; gap: 16px; flex: 1; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.header-actions { display: flex; gap: 8px; align-items: center; }
button,
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
button:hover,
.btn:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
button:disabled,
.btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
  pointer-events: none;
}
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--soft); color: var(--ink); }
.btn-ok { background: var(--ok); }
.btn-ok:hover { background: #17633d; color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; }
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 56px 0 40px; background: linear-gradient(180deg, var(--soft) 0%, #fff 70%); }
.hero.has-photo { padding: 72px 0 88px; background: var(--soft); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; z-index: 0; pointer-events: none; }
.hero.has-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(255, 244, 240, 0.42) 0%, rgba(255, 255, 255, 0.78) 62%, #fff 100%); }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 16ch; }
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 40ch; }
.wizard { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-top: 28px; max-width: 560px; animation: pop .35s ease; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.wizard-step { font-size: 0.85rem; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.choices { display: grid; gap: 10px; }
.choice { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: #fff; text-align: left; font: inherit; font-weight: 600; cursor: pointer; }
.choice:hover, .choice.is-on { border-color: var(--brand); background: var(--soft); }
.picks {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
}
.picks--wrap {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.picks--gallery.picks--wrap {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}
.pick {
  display: flex;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
  position: relative;
  width: 100%;
  min-width: 0;
}
.pick-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  appearance: none;
}
.pick-face {
  display: grid;
  gap: 6px;
  flex: 1;
  width: 100%;
  position: relative;
  padding: 14px 44px 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  text-align: left;
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.pick-face::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d5d5d5;
}
.pick:has(.pick-input:checked) .pick-face::after {
  background-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12 10 17 19 8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}
.pick-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.pick-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pick-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}
.pick-icon--img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--soft);
}
.pick-icon--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pick-title {
  font-weight: 600;
  line-height: 1.25;
  min-width: 0;
}
.pick-help {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
}
.pick:hover .pick-face {
  border-color: var(--brand);
  background: var(--soft);
}
.pick:has(.pick-input:checked) .pick-face {
  border-color: var(--brand);
  background: var(--soft);
}
.pick:has(.pick-input:checked) .pick-icon,
.pick:has(.pick-input:checked) .pick-title {
  color: var(--brand);
}
.pick:has(.pick-input:focus-visible) .pick-face {
  box-shadow: 0 0 0 4px var(--soft);
  border-color: var(--brand);
}
.filters .picks {
  flex: 1 1 100%;
}
label, .label { display: block; font-weight: 600; margin: 12px 0 6px; }
input:not([type]),
input[type=text],
input[type=email],
input[type=password],
input[type=tel],
input[type=number],
input[type=date],
input[type=datetime-local],
input[type=time],
input[type=url],
input[type=search],
input[type=month],
input[type=week],
select,
textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: inherit;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23717171' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}
textarea { min-height: 120px; resize: vertical; }
::placeholder { color: var(--muted); opacity: 1; }
input[type=date]::-webkit-calendar-picker-indicator,
input[type=datetime-local]::-webkit-calendar-picker-indicator,
input[type=time]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
}
input:not([type]):focus,
input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus,
input[type=tel]:focus,
input[type=number]:focus,
input[type=date]:focus,
input[type=datetime-local]:focus,
input[type=time]:focus,
input[type=url]:focus,
input[type=search]:focus,
input[type=month]:focus,
input[type=week]:focus,
input[type=file]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--soft);
}
input[type=file] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  font: inherit;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
}
input[type=file]::file-selector-button {
  appearance: none;
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  margin-right: 12px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}
input[type=file]::file-selector-button:hover { background: var(--brand-dark); }
.filepick {
  position: relative;
  display: grid;
  gap: 10px;
  justify-items: start;
  width: 100%;
  min-width: 0;
}
.filepick-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.filepick-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.filepick-bar {
  width: 0;
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
  transition: width .15s ease;
}
.filepick-status {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
  word-break: break-all;
}
.filepick-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  width: 100%;
}
.filepick-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  background: var(--soft);
}
.filepick-preview video {
  grid-column: 1 / -1;
  width: 100%;
  max-height: 240px;
  border-radius: 16px;
  background: #111;
}
.calpick {
  position: relative;
  width: 100%;
  min-width: 0;
}
.calpick-input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-width: 0;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  flex: none;
}
button.calpick-btn,
.calpick-btn {
  width: 100%;
  min-width: 0;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
  text-align: left;
  transform: none;
}
button.calpick-btn:hover,
.calpick-btn:hover {
  background: var(--soft);
  color: var(--ink);
  border-color: var(--brand);
  transform: none;
}
.calpick.is-open .calpick-btn,
.calpick-btn:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--soft);
}
.calpick.is-empty .calpick-text { color: var(--muted); }
.calpick-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calpick-ico {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.calpick-ico svg { width: 20px; height: 20px; display: block; }
.calpick:not(.is-empty) .calpick-ico,
.calpick.is-open .calpick-ico { color: var(--brand); }
.calpick-panel {
  position: fixed;
  z-index: 80;
  width: 320px;
  max-width: calc(100vw - 24px);
  max-height: min(90vh, 560px);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin: 0;
  inset: auto;
  display: grid;
  align-content: start;
  gap: 12px;
}
.calpick-panel.is-datetime {
  width: min(500px, calc(100vw - 24px));
}
.calpick-panel[hidden] { display: none; }
.calpick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.calpick-head strong {
  margin: 0;
  font-size: 1rem;
  text-transform: capitalize;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calpick-panel button.calpick-shift,
.calpick-panel button.calpick-day,
.calpick-panel button.calpick-slot,
.calpick-panel button.calpick-link {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--ink);
  border-radius: 12px;
  box-shadow: none;
  transform: none;
  white-space: nowrap;
  min-width: 0;
  margin: 0;
  gap: 0;
}
.calpick-panel button.calpick-shift {
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--muted);
}
.calpick-panel button.calpick-shift:hover,
.calpick-panel button.calpick-day:hover,
.calpick-panel button.calpick-slot:hover,
.calpick-panel button.calpick-link:hover {
  background: var(--soft);
  color: var(--ink);
  transform: none;
}
.calpick-week,
.calpick-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  width: 100%;
  min-width: 0;
  align-content: start;
}
.calpick-week span {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 0;
  min-width: 0;
  overflow: hidden;
}
.calpick-panel button.calpick-day {
  width: auto;
  height: 34px;
  min-height: 34px;
  padding: 0;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 12px;
}
.calpick-day.is-out { color: var(--muted); font-weight: 400; }
.calpick-day.is-today { box-shadow: inset 0 0 0 1.5px var(--brand); }
.calpick-day.is-in { background: var(--soft); }
.calpick-panel button.calpick-day.is-on,
.calpick-panel button.calpick-day.is-on:hover,
.calpick-panel button.calpick-slot.is-on,
.calpick-panel button.calpick-slot.is-on:hover {
  background: var(--brand);
  color: #fff;
}
.calpick-panel button.calpick-day:disabled,
.calpick-panel button.calpick-day.is-off {
  opacity: 0.35;
  cursor: default;
  background: transparent;
}
.calpick-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 400;
}
.calpick-cal {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1 1 0;
  align-content: start;
  align-self: start;
}
.calpick-body {
  display: flex;
  flex-direction: row;
  align-items: start;
  gap: 12px;
  min-width: 0;
}
.calpick-time {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}
.calpick-body .calpick-time {
  flex: 0 0 156px;
  width: 156px;
  max-width: 156px;
  background: #fff;
}
.calpick-time-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0 4px;
}
.calpick-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  height: 180px;
  min-height: 0;
}
.calpick-body .calpick-cols {
  height: 248px;
  min-height: 0;
}
.calpick-col {
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px;
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  min-height: 0;
}
.calpick-panel button.calpick-slot {
  width: 100%;
  padding: 6px 8px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.calpick-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.calpick-panel button.calpick-link {
  padding: 8px 12px;
  font-weight: 600;
  color: var(--brand);
}
.calpick-panel button.calpick-link:hover { color: var(--brand-dark); }
.calpick-foot .btn { margin-left: auto; }
.actions-inline .filepick,
.filters .filepick,
.table .filepick {
  width: auto;
  min-width: 12rem;
}
input[type=checkbox],
input[type=radio] {
  accent-color: var(--brand);
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  cursor: pointer;
}
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.action-bar {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin: 0;
  padding: 14px 24px 14px calc(240px + 24px);
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(34, 34, 34, 0.06);
  box-sizing: border-box;
}
.action-bar[hidden],
.action-bar [hidden] { display: none !important; }
.action-bar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.action-bar-group:not(:has(button:not([hidden]), a.btn:not([hidden]))) { display: none; }
.action-bar-group--status { margin-left: auto; }
.action-bar form { display: contents; }
body:has(.action-bar:not([hidden])) .main { padding-bottom: 96px; }
body:has(.action-bar:not([hidden])) .side { padding-bottom: 88px; }
.actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); color: inherit; display: block; }
.card:hover { color: inherit; transform: translateY(-2px); transition: transform .2s ease; }
.card img, .card .ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--soft); }
.card-body { padding: 14px 16px 18px; }
.card-body h3 { font-size: 1.05rem; }
.loc-briefs { display: grid; gap: 16px; }
.loc-briefs-add { display: flex; justify-content: flex-end; margin: 0 0 16px; }
.loc-others { margin-top: 36px; }
.admin-box.loc-brief {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  height: auto;
  color: inherit;
}
a.loc-brief:hover { color: inherit; }
.loc-brief-media {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.loc-brief-media img,
.loc-brief-media .ph {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 16px;
  background: var(--soft);
}
.loc-brief-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.loc-brief .sheet-status {
  flex: none;
  width: 100%;
  margin-top: 0;
}
.loc-brief-facts { display: grid; gap: 10px; margin: 0; }
.loc-brief-facts div { display: grid; gap: 2px; }
.loc-brief-facts dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.loc-brief-facts dd { margin: 0; }
.loc-brief-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.loc-brief-actions--end { justify-content: flex-end; }
@media (max-width: 700px) {
  .admin-box.loc-brief { grid-template-columns: 1fr; }
}
.muted { color: var(--muted); }
.section { padding: 48px 0; }
.flash { border-radius: var(--radius-sm); padding: 12px 16px; margin: 16px 0; }
.flash-ok { background: #eaf6ef; color: var(--ok); }
.flash-err { background: #fdeeee; color: var(--err); }
.toasts {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 90;
  display: grid;
  gap: 10px;
  max-width: min(440px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.4;
  box-shadow: 0 14px 40px rgba(34, 34, 34, 0.14);
  animation: toast-in .4s ease, toast-out .4s ease 5.2s forwards;
}
.toast-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.toast-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}
.toast-text { min-width: 0; }
.toast-ok { background: #eaf6ef; color: var(--ok); }
.toast-ok .toast-icon { background: var(--ok); }
.toast-err { background: #fdeeee; color: var(--err); }
.toast-err .toast-icon { background: var(--err); }
@keyframes toast-in {
  from { transform: translateY(-120%); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes toast-out {
  to { transform: translateY(-120%); opacity: 0; }
}
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 48px; margin-top: 48px; color: var(--muted); font-size: 0.9rem; }
.site-footer .inner { display: flex; flex-wrap: wrap; gap: 16px 28px; }
.search-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 130px); }
.search-list { overflow: auto; padding: 16px; border-right: 1px solid var(--line); }
.search-map { min-height: calc(100vh - 130px); height: 100%; }
.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--soft); }
.wizard-bar { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px; border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 61px; z-index: 5; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; align-items: center; }
.filters > label { margin: 0; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: #fff; font: inherit; }
.filters :where(input, select):not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not(.calpick-input),
.wizard-bar :where(input, select):not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not(.calpick-input),
.table :where(input, select):not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not(.calpick-input),
.actions-inline :where(input, select):not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not(.calpick-input),
.filters .calpick,
.wizard-bar .calpick,
.table .calpick,
.actions-inline .calpick {
  width: auto;
  min-width: 12rem;
  flex: 1 1 12rem;
}
.filters > label .calpick,
.wizard-bar label .calpick {
  width: 100%;
}
.filters input[type=file],
.actions-inline input[type=file],
.table input[type=file] {
  width: auto;
  flex: 1 1 16rem;
}
.table form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.owner-hello { margin: 8px 0 28px; }
.owner-hello h1 { font-size: clamp(2rem, 4vw, 2.75rem); max-width: 16ch; margin: 0 0 8px; }
.owner-hello p { margin: 0; color: var(--muted); font-size: 1.15rem; }
.launches {
  display: grid;
  gap: 12px;
  max-width: 640px;
}
.launch {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: left;
  transition: background .15s ease, border-color .15s ease;
}
.launch:hover {
  background: var(--soft);
  border-color: transparent;
  color: var(--ink);
}
.launch-ico {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 16px;
  background: var(--soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.launch-ico svg { width: 26px; height: 26px; display: block; }
.launch-copy { min-width: 0; flex: 1; display: grid; gap: 2px; }
.launch-title {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.launch-help {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}
.launch-go {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, color .15s ease;
}
.launch-go svg { width: 22px; height: 22px; display: block; }
.launch:hover .launch-go { transform: translateX(4px); color: var(--brand); }
.launch.is-hot {
  background: var(--soft);
  border-color: transparent;
}
.launch.is-hot .launch-ico { background: #fff; }
.launch.is-hot:hover { background: #ffe8df; }
.launch-num {
  flex-shrink: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--brand);
  min-width: 1.5ch;
  text-align: right;
}
.app-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { border-right: 1px solid var(--line); padding: 20px 16px; background: #fff; }
.side a { display: block; padding: 10px 12px; border-radius: 12px; color: var(--ink); font-weight: 600; }
.side a:hover, .side a.is-on { background: var(--soft); color: var(--ink); }
.main { padding: 24px; }
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin: 0 0 28px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}
.page-head-copy { min-width: 0; flex: 1; }
.page-head h1 { margin: 0 0 6px; }
.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
  max-width: 62ch;
}
.page-head-back {
  flex-shrink: 0;
  margin-top: 2px;
  padding: 12px 22px;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(241, 91, 58, 0.28);
}
.page-head-back svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}
.sheet-status {
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 16px;
}
.sheet-status-copy { min-width: 0; flex: 1; }
.sheet-status-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.sheet-status-actions .btn-ghost { background: #fff; }
.page-head .sheet-status-name,
.page-head .sheet-status-help { max-width: none; }
.page-head .sheet-status-name {
  margin: 0 0 4px;
  font-size: 1.15rem;
  color: inherit;
}
.sheet-status-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}
.sheet-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sheet-status-help {
  margin: 0;
  padding-left: 22px;
  font-size: 0.98rem;
  line-height: 1.45;
}
.sheet-status--draft { background: #ececec; color: #1a1a1a; }
.sheet-status--draft .sheet-status-dot { background: #6b6b6b; }
.sheet-status--draft .sheet-status-help { color: #3d3d3d; }
.sheet-status--review { background: #fff1cc; color: #6b4700; }
.sheet-status--review .sheet-status-dot { background: #c98a00; }
.sheet-status--review .sheet-status-help { color: #5c3d00; }
.sheet-status--published { background: #e3f5eb; color: #0f5c36; }
.sheet-status--published .sheet-status-dot { background: #1f7a4c; }
.sheet-status--published .sheet-status-help { color: #145c38; }
.sheet-status--suspended { background: #fde8e8; color: #8f1d1d; }
.sheet-status--suspended .sheet-status-dot { background: #c73a3a; }
.sheet-status--suspended .sheet-status-help { color: #7a2222; }
.sheet-status--withdrawn { background: #e8eef6; color: #243652; }
.sheet-status--withdrawn .sheet-status-dot { background: #4a6280; }
.sheet-status--withdrawn .sheet-status-help { color: #31445f; }
.admin-tabs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--line);
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.admin-tabs a,
.admin-tabs button {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 10px 16px;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transform: none;
}
.admin-tabs a:hover,
.admin-tabs button:hover {
  color: var(--ink);
  background: var(--soft);
  border-radius: 12px 12px 0 0;
  transform: none;
}
.admin-tabs a.is-on,
.admin-tabs button.is-on {
  color: var(--brand);
  background: transparent;
  border-bottom-color: var(--brand);
  border-radius: 0;
  transform: none;
}
.admin-tabs button.is-on:hover { color: var(--brand); }
[data-booking-new] { display: contents; }
[data-booking-new][hidden],
[data-booking-existing][hidden],
[data-panel][hidden],
[data-gallery-photos][hidden],
[data-gallery-videos][hidden],
[data-media-empty][hidden],
[data-box-progress][hidden],
[data-media-pending][hidden],
[data-hour-panel][hidden],
[data-event-panel][hidden],
[data-hour-dates-empty][hidden],
[data-hour-dates-wrap][hidden] { display: none !important; }
.hour-acc { display: flex; flex-direction: column; gap: 10px; }
.hour-acc-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.hour-acc-item.is-on { border-color: var(--brand); }
.hour-acc-bar {
  display: grid;
  grid-template-columns: minmax(168px, 210px) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  padding: 10px;
}
.hour-acc--events .hour-acc-bar {
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
}
.hour-acc--events .hour-acc-toggle,
.hour-acc--events .hour-acc-name { min-width: 0; }
.hour-acc-toggle {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.hour-acc-toggle:disabled {
  cursor: default;
  opacity: .5;
}
.hour-acc-item.is-open .hour-acc-toggle { border-color: var(--brand); color: var(--brand); }
.hour-acc-item.is-open .hour-acc-toggle:hover { color: #fff; }
.hour-acc-chevron { display: flex; width: 22px; height: 22px; flex-shrink: 0; }
.hour-acc-chevron svg { width: 22px; height: 22px; transition: transform .2s ease; }
.hour-acc-item.is-open .hour-acc-chevron svg { transform: rotate(90deg); }
.hour-acc-panel { padding: 0 10px 10px; }
.hour-acc-panel input:disabled,
.hour-acc-panel select:disabled { opacity: .55; cursor: not-allowed; }
.hour-acc-panel .admin-box { height: auto; }
@media (max-width: 700px) {
  .hour-acc-bar,
  .hour-acc--events .hour-acc-bar { grid-template-columns: 1fr; }
}
.media-box-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
}
.media-box-top .box-head { flex: 1; min-width: 0; }
.media-box-top .filepick {
  width: auto;
  margin: 0 0 0 auto;
  align-self: flex-start;
  display: block;
}
.admin-box .picks.picks--gallery { max-height: none; overflow: visible; }
.picks--gallery .pick-top { flex-direction: column; align-items: stretch; }
.picks--gallery .pick-icon--img { width: 100%; height: 140px; }
.gallery-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .22s ease;
}
.gallery-card.is-lifted {
  position: fixed;
  z-index: 80;
  margin: 0;
  pointer-events: none;
  cursor: grabbing;
  transition: none;
  box-shadow: 0 18px 44px rgba(34, 34, 34, 0.2);
}
.gallery-card.is-settling {
  transition: left .24s ease, top .24s ease, transform .24s ease;
}
.gallery-gap {
  background: var(--soft);
  border: 2px dashed var(--brand);
  border-radius: var(--radius);
  box-shadow: none;
  pointer-events: none;
  box-sizing: border-box;
  transition: transform .22s ease;
}
.gallery-card-media {
  position: relative;
  display: block;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
[data-media-pending] img,
[data-media-pending] video { cursor: pointer; }
.media-preview {
  width: min(960px, calc(100vw - 32px));
  max-height: min(92vh, 920px);
  overflow: auto;
}
.media-preview [data-media-preview-stage] { margin-top: 12px; }
.media-preview [data-media-preview-stage] img,
.media-preview [data-media-preview-stage] video {
  width: 100%;
  max-height: min(70vh, 720px);
  object-fit: contain;
  background: #111;
  border-radius: 16px;
  display: block;
}
.media-preview [data-media-preview-caption] { margin: 12px 0 0; }
.gallery-card-media img,
.gallery-card-media video {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: #111;
}
.gallery-cover-flag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}
.gallery-cover-flag[hidden] { display: none !important; }
.gallery-card-caption {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.gallery-card-caption.is-empty {
  color: var(--muted);
  font-style: italic;
}
.gallery-card-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}
.gallery-card-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  padding-left: 8px;
  padding-right: 8px;
}
.gallery-card-actions .btn:disabled {
  cursor: default;
  opacity: 0.45;
}
.loc-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}
.media-box .loc-videos { margin-top: 0; }
.loc-videos video {
  width: 100%;
  border-radius: 16px;
  background: #111;
}
.admin-tabs-row .btn { margin-bottom: 8px; }
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.table th, .table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  vertical-align: middle;
}
.table thead tr:first-child > :first-child { border-top-left-radius: var(--radius-sm); }
.table thead tr:first-child > :last-child { border-top-right-radius: var(--radius-sm); }
.table tbody tr:last-child > :first-child { border-bottom-left-radius: var(--radius-sm); }
.table tbody tr:last-child > :last-child { border-bottom-right-radius: var(--radius-sm); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table th {
  padding: 14px 10px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  background: #f5d0c6;
  border-bottom: 2px solid #efc4b8;
}
.table th:last-child,
.table td:last-child { text-align: right; white-space: nowrap; }
.table td.row-actions { white-space: normal; }
.row-actions-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}
.row-actions-inner form { display: contents; }
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  max-width: 920px;
}
.req-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  background: #fff;
  min-width: 0;
}
.req-box--wide { grid-column: 1 / -1; }
.req-box h2 { font-size: 1.05rem; margin: 0 0 12px; }
.req-box h2 + h2,
.req-box form + h2 { margin-top: 8px; }
.req-dl { display: grid; gap: 12px; margin: 0; }
.req-dl div { display: grid; gap: 2px; }
.req-dl dt { margin: 0; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.req-dl dd { margin: 0; font-weight: 600; }
.req-message { margin: 0; white-space: pre-wrap; }
.req-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.req-lines li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.req-lines strong { font-weight: 600; text-align: right; }
.req-slot.is-ok { background: #eaf6ef; border-color: #cfe8da; }
.req-slot.is-no { background: #fdeeee; border-color: #f3d0d0; }
.req-slot p { margin: 0; font-weight: 600; }
.req-contact { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.req-refuse { display: grid; gap: 10px; max-width: 420px; margin: 16px 0; }
.req-refuse label { margin: 0; }
.req-box .stack { max-width: 560px; }
.table tbody tr:nth-child(even) td { background: #f7f7f7; }
.table tbody tr:hover td { background: var(--soft); }
.table tbody tr.is-on td { background: #ffe4da; }
.table tbody tr.is-on:hover td { background: #ffd4c6; }
.table tbody tr.is-past { opacity: 0.7; }
.client-line { display: block; }
.client-line + .client-line { margin-top: 8px; }
.client-meta { display: block; margin-top: 2px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; background: #fff; }
.kpi strong { display: block; font-size: 1.6rem; }
.prose { max-width: 68ch; }
.prose p { margin: 0 0 1rem; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; border-radius: var(--radius); overflow: hidden; }
.gallery figure { margin: 0 0 8px; }
.gallery figcaption { margin-top: 6px; font-size: 0.88rem; color: var(--muted); line-height: 1.4; }
.gallery video { width: 100%; border-radius: 12px; background: #111; }
.cal { display: grid; gap: 4px; }
.slot-busy { background: #f3f3f3; color: var(--muted); border-radius: 8px; padding: 4px 8px; font-size: 0.8rem; }
.slot-free { background: #eaf6ef; color: var(--ok); border-radius: 8px; padding: 4px 8px; font-size: 0.8rem; }
.cookie { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 520px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); padding: 16px; z-index: 50; }
.mobile-toggle { display: none; }
@media (max-width: 900px) {
  .search-layout { grid-template-columns: 1fr; }
  .search-map, .search-list { display: none; }
  .search-layout.show-map .search-map { display: block; min-height: 70vh; }
  .search-layout.show-list .search-list { display: block; }
  .mobile-toggle { display: flex; gap: 8px; padding: 8px 12px; }
  .app-shell { grid-template-columns: 1fr; }
  .action-bar { padding-left: 24px; }
  .gallery { grid-template-columns: 1fr; }
  .hero { padding: 32px 0 24px; }
  .hero.has-photo { padding: 40px 0 56px; }
.charts-grid { grid-template-columns: 1fr; }
}
.hint { font-size: 0.9rem; color: var(--muted); }
.checkrow { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.stack { display: grid; gap: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .two { grid-template-columns: 1fr; } }
.admin-form,
.settings-form { max-width: 1100px; display: grid; gap: 16px; }
.admin-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  align-items: stretch;
}
.admin-panels {
  display: grid;
  gap: 16px;
}
.admin-box,
.settings-box {
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  height: 100%;
}
.box-head {
  display: grid;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.box-head label,
.box-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
}
.box-head .pick-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--brand);
}
.box-head .pick-icon svg {
  width: 18px;
  height: 18px;
}
.box-head > .field-help { flex: none; max-width: none; }
.admin-box--table .table-wrap { overflow-x: auto; }
.admin-box > label,
.settings-box > label { margin: 0; }
.admin-box--wide,
.settings-box--wide { grid-column: 1 / -1; }
.admin-split {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
  min-width: 0;
}
@media (max-width: 700px) {
  .admin-split { grid-template-columns: 1fr; }
}
.admin-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px 16px;
  align-items: end;
}
.admin-fields > label,
.admin-fields-line > label {
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  min-width: 0;
}
.admin-fields-full,
.admin-fields-line,
.admin-fields > .pick { grid-column: 1 / -1; }
.admin-fields-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8.5rem;
  gap: 12px 16px;
  align-items: end;
}
.admin-fields-line--pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.field-help {
  margin: 0;
  flex: 1;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.45;
}
.admin-control {
  margin-top: auto;
  width: 100%;
  display: grid;
  gap: 10px;
}
.admin-box > :where(input, select, textarea),
.settings-box > :where(input, select),
.admin-box .admin-control,
.admin-box .admin-checks,
.admin-box .filepick,
.admin-box .calpick,
.admin-box .editor,
.admin-box > .pick:only-child,
.admin-box .picks,
.settings-box .settings-hero {
  margin-top: auto;
}
.admin-box .picks {
  max-height: 280px;
  overflow: auto;
}
.admin-box > .pick:only-child {
  height: 100%;
}
.admin-box > .pick .pick-face {
  box-shadow: none;
}
.admin-box textarea { min-height: 180px; }
.admin-box .form-actions { margin-top: 0; }
.admin-box .checkrow { margin: 0; }
.admin-box > .checkrow { margin-top: auto; }
.admin-checks {
  display: grid;
  gap: 6px;
  width: 100%;
  max-height: 240px;
  overflow: auto;
}
.admin-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}
.admin-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.admin-list li:last-child { border-bottom: 0; }
.settings-control { display: grid; gap: 10px; }
.settings-hero.has-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 16px;
  align-items: start;
}
.settings-preview {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  background: var(--soft);
}
@media (max-width: 700px) {
  .settings-hero.has-preview { grid-template-columns: 1fr; }
}
.rel-chosen {
  display: grid;
  gap: 8px;
  width: 100%;
}
.rel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}
.rel-item .pick-icon { color: var(--brand); }
.rel-item-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
}
.rel-item-copy strong { font-weight: 600; }
.rel-item .btn { flex-shrink: 0; }
.rel-empty { margin: 0; }
.rel-modal {
  width: min(640px, calc(100vw - 32px));
  max-height: min(80vh, 720px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.rel-modal.client-modal,
.rel-modal.svc-modal {
  width: min(760px, calc(100vw - 32px));
  overflow: auto;
}
.rel-modal.svc-modal { width: min(920px, calc(100vw - 32px)); }
.client-add-row {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 16px;
}
.client-form { display: grid; gap: 16px; }
.client-form[hidden],
[data-client-view][hidden],
[data-client-view-actions][hidden] { display: none !important; }
.client-form .form-actions { margin-top: 0; }
.rel-modal.client-modal .table { margin-top: 8px; }
.client-modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.client-modal-top .box-head { flex: 1; min-width: 0; }
.client-actions,
.client-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.client-row-actions { justify-content: flex-end; }
.client-action {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--soft);
  color: var(--brand);
  text-decoration: none;
}
.client-action svg { width: 20px; height: 20px; }
.client-action:hover { background: var(--brand); color: #fff; }
.rel-modal::backdrop { background: rgba(20, 20, 20, 0.35); }
.rel-modal > h2 { margin: 0 0 8px; }
[data-caption-dialog] textarea { margin-top: 12px; }
.admin-box .rel-modal .picks {
  margin: 12px 0 16px;
  max-height: min(50vh, 420px);
}
.editor {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.editor-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.editor-btn {
  appearance: none;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
button.editor-btn:hover,
button.editor-btn:focus-visible {
  background: #fff;
  color: var(--ink);
  border-color: var(--brand);
  transform: none;
}
.editor-sep {
  width: 1px;
  align-self: stretch;
  margin: 4px;
  background: var(--line);
}
.editor-progress {
  height: 4px;
  background: var(--soft);
}
.editor-progress[hidden] { display: none; }
.editor-progress .filepick-bar {
  height: 100%;
  width: 0;
  background: var(--brand);
}
.editor-surface {
  min-height: 320px;
  padding: 16px 18px;
  outline: none;
  line-height: 1.55;
}
.editor-surface:focus {
  box-shadow: inset 0 0 0 2px var(--soft);
}
.editor-surface.is-empty:before {
  content: attr(data-placeholder);
  color: var(--muted);
  pointer-events: none;
}
.editor-surface p { margin: 0 0 0.8em; }
.editor-surface h2, .editor-surface h3 { margin: 0.4em 0 0.5em; }
.editor-surface ul, .editor-surface ol { margin: 0 0 0.8em; padding-left: 1.3em; }
.editor-surface blockquote {
  margin: 0 0 0.8em;
  padding: 0 0 0 12px;
  border-left: 3px solid var(--line);
  color: var(--muted);
}
.editor-surface img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.editor textarea { display: none; }
.scheduler { height: auto; }
.sched-toolbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; }
.sched-nav, .sched-views, .sched-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sched-nav .btn svg { width: 18px; height: 18px; display: block; }
.sched-label { font-weight: 600; }
.sched-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; list-style: none; margin: 0; padding: 0; }
.sched-legend li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.sched-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.sched-legend i.cal-accepted { background: #e7e7e7; border: 1px solid var(--line); }
.sched-legend i.cal-event { background: #fff4f0; border: 1px solid var(--brand-soft); }
.sched-legend i.cal-pending { background: #fff8e6; border: 1px dashed var(--warn); }
.sched-legend i.cal-closed { background: #fdeeee; border: 1px solid #f3c7c7; }
.sched-legend i.cal-off { background: #ececec; border: 1px solid var(--line); }
.sched-scroll { overflow-x: auto; }
.sched-time {
  display: grid;
  grid-template-columns: 52px repeat(var(--days), minmax(140px, 1fr));
  grid-template-rows: 36px repeat(var(--hours), 48px);
  min-width: calc(52px + var(--days) * 140px);
}
.sched-corner { grid-column: 1; grid-row: 1; }
.sched-head { grid-row: 1; font-weight: 600; font-size: 0.85rem; padding: 6px 8px; }
.sched-head.is-today { color: var(--brand); }
.sched-gutter {
  grid-column: 1;
  grid-row: 2 / span var(--hours);
  display: grid;
  grid-template-rows: repeat(var(--hours), 48px);
}
.sched-gutter span {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: right;
  padding-right: 6px;
  transform: translateY(-0.55em);
}
.sched-col {
  grid-row: 2 / span var(--hours);
  position: relative;
  background: #ececec;
  border-left: 1px solid var(--line);
}
.sched-col::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 47px, var(--line) 47px, var(--line) 48px);
}
.sched-open { position: absolute; left: 0; right: 0; background: #fff; z-index: 0; pointer-events: none; }
.sched-hit {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.sched-hit:hover { background: rgba(241, 91, 58, 0.08); }
.sched-col .sched-block {
  position: absolute;
  z-index: 3;
  min-height: 18px;
  overflow: hidden;
}
.sched-block {
  display: block;
  border: 0;
  border-radius: 8px;
  padding: 4px 6px;
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
}
.sched-block strong { display: block; font-weight: 600; }
.sched-block span { display: block; }
.sched-block.cal-accepted { background: #e7e7e7; color: var(--muted); }
.sched-block.cal-event { background: #fff4f0; border: 1px solid var(--brand-soft); }
.sched-block.cal-pending { background: #fff8e6; border: 1px dashed var(--warn); }
.sched-block.cal-closed { background: #fdeeee; color: var(--err); }
.sched-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.sched-mhead { font-size: 0.8rem; font-weight: 600; color: var(--muted); padding: 0 4px; }
.sched-mcell {
  background: #fff;
  border: 1px solid var(--brand-soft);
  border-radius: var(--radius-sm);
  min-height: 112px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sched-mcell.is-out { opacity: 0.45; }
.sched-mcell.is-today { border-color: var(--brand); }
.sched-mday { font-weight: 600; color: var(--ink); }
.sched-mchips { display: grid; gap: 4px; }
.sched-mchips .sched-block, .sched-fallback .sched-block { position: static; width: 100%; }
.sched-fallback { display: grid; gap: 6px; }
.rel-modal.sched-modal {
  width: min(920px, calc(100vw - 32px));
  max-height: min(88vh, 920px);
  overflow: auto;
}
.sched-modal .admin-box { height: auto; }
.sched-cat { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sched-cat input { flex: 1; min-width: 160px; }
.sched-w { display: none; }
@media (max-width: 720px) {
  .sched-month { grid-template-columns: 1fr; }
  .sched-mhead { display: none; }
  .sched-w { display: inline; }
}
