:root {
  --navy: #1b2850;
  --navy-2: #212529;
  --orange: #f26522;
  --orange-dark: #e15816;
  --orange-soft: #fff4ef;
  --bg: #f8f9fa;
  --white: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --light: #9ca3af;
  --border: #ededed;
  --green: #03c95a;
  --green-soft: #e8faf0;
  --blue: #1b84ff;
  --blue-soft: #ebf3ff;
  --violet: #ab47bc;
  --violet-soft: #f6ecf9;
  --red: #e70d0d;
  --red-soft: #fdecec;
  --amber: #ffc107;
  --amber-soft: #fff8e6;
  --header-top: 72px;
  --radius: 5px;
  --page-pad: 24px;
  --shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.08);
  --card-pad: 20px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.hidden, .view.hidden { display: none !important; }

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  max-width: 1680px;
  margin: 0 auto;
  width: 100%;
  padding: 10px var(--page-pad) 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand-logo {
  height: 42px;
  width: auto;
  max-width: 176px;
  object-fit: contain;
  display: block;
}
.brand-mark {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(249, 115, 22, 0.35);
}
.brand-badge {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 1680px;
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--page-pad) 10px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #475569;
  padding: 9px 14px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.nav-btn i { width: 14px; text-align: center; font-size: 12px; color: #94a3b8; }
.nav-btn:hover { background: var(--orange-soft); color: var(--orange-dark); }
.nav-btn:hover i { color: var(--orange); }
.nav-btn.active {
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-weight: 600;
  box-shadow: none;
}
.nav-btn.active i { color: var(--orange); }

.nav-more { position: relative; margin-left: 4px; }
.nav-more.is-current .nav-more-btn { background: var(--orange-soft); color: var(--orange-dark); }
.nav-more.is-current .nav-more-btn i { color: var(--orange); }
.nav-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  z-index: 55;
}
.nav-more-menu .nav-btn { width: 100%; justify-content: flex-start; }

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex: 0 0 auto;
}
.menu-toggle:hover { border-color: #fdba74; color: var(--orange-dark); }
.menu-toggle.open { background: var(--orange); border-color: var(--orange); color: #fff; }

.top-search { position: relative; flex: 1 1 180px; max-width: 420px; min-width: 0; margin-left: auto; }
.top-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.top-search input {
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 16px 0 38px;
  background: #f8fafc;
  color: var(--text);
  outline: none;
}
.top-search input::placeholder { color: #94a3b8; }
.top-search input:focus {
  border-color: #fdba74;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

.top-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  color: #475569;
}
.icon-btn:hover { background: var(--orange-soft); color: var(--orange-dark); border-color: #fed7aa; }
.icon-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; }

.badge-dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; background: var(--red); border-radius: 50%; box-shadow: 0 0 0 2px #fff; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  text-align: left;
}
.user-chip:hover {
  border-color: #fdba74;
  background: var(--orange-soft);
}
.user-chip > i {
  font-size: 9px;
  color: var(--muted);
}
.user-chip:hover > i { color: var(--orange-dark); }
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.user-chip small { display: block; color: var(--green); font-size: 10px; font-weight: 600; }
.user-chip strong { font-size: 12px; font-weight: 600; }
.profile-modal-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
}
.profile-modal-ava {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange);
  font-weight: 700;
  flex: none;
}
.profile-modal-hero strong { display: block; font-size: 14px; }
.profile-modal-hero p { margin: 2px 0 0; color: #cbd5e1; font-size: 12px; }
.profile-online {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 700;
}
.profile-modal-form { display: grid; gap: 10px; }
.profile-meta { margin: 0; color: var(--muted); font-size: 12px; }

.main { padding: 24px var(--page-pad) 32px; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 20px; flex-wrap: wrap; }
.page-head > div:first-child { min-width: 0; flex: 1 1 260px; }
.page-head h1 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--navy); }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.page-head .btn-row { flex: 0 0 auto; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}
.btn:hover { background: #f8f9fa; }
.btn-primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-danger { color: var(--red); border-color: #fecaca; background: var(--red-soft); }
.btn-danger:hover { background: #fee2e2; border-color: #fca5a5; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin: 0 0 20px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--card-pad); box-shadow: var(--shadow); }
.stat b { display: block; font-size: 20px; line-height: 1.1; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 12px; }

.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: auto; }
.panel + .panel { margin-top: 20px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px var(--card-pad); border-bottom: 1px solid var(--border); }
.panel-h h2 { margin: 0; font-size: 15px; font-weight: 700; color: var(--navy); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 600; background: #fafafa; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafafa; }
.clickable { cursor: pointer; }
.actions { display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; }
td.actions {
  display: table-cell;
  white-space: nowrap;
  vertical-align: middle;
}
td.actions > * + * { margin-left: 8px; }
.linkish { border: 0; background: transparent; color: var(--blue); padding: 0; font-weight: 500; }

.pill { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #f1f5f9; color: #475569; }
.pill-green { background: var(--green-soft); color: var(--green); }
.pill-blue { background: var(--blue-soft); color: var(--blue); }
.pill-orange { background: var(--orange-soft); color: var(--orange-dark); }
.pill-red { background: var(--red-soft); color: var(--red); }
.pill-amber { background: var(--amber-soft); color: var(--amber); }

.search-hero { position: relative; margin-bottom: 14px; }
.search-hero input { width: 100%; min-width: 0; height: 44px; border: 1px solid var(--border); border-radius: 10px; padding: 0 14px 0 40px; font-size: 14px; outline: none; background: #fff; }
.search-hero i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }

.filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.filter label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 3px; font-weight: 500; }
.filter select, .filter input, .field input, .field select, .field textarea {
  width: 100%; height: 34px; border: 1px solid var(--border); border-radius: 7px; padding: 0 8px; background: #fff; color: var(--text);
}
.field textarea { height: auto; padding: 8px; resize: vertical; min-height: 90px; }
.field label { display: block; margin-bottom: 4px; font-weight: 500; font-size: 12px; }
.optional-label { font-weight: 400; color: var(--muted); }

.dropzone { border: 1px dashed #cbd5e1; border-radius: 10px; padding: 28px 16px; text-align: center; background: #fff; color: var(--muted); }
.dropzone.drag { border-color: var(--orange); background: var(--orange-soft); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); padding: 0 8px; }
.tab { border: 0; background: transparent; padding: 10px 12px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; }
.tab.active { color: var(--navy); border-bottom-color: var(--orange); }
.owner-tabs {
  padding: 6px 12px 0;
  gap: 4px;
  background: #fff;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
}
.owner-tabs .tab {
  padding: 12px 16px;
  font-weight: 600;
  border-radius: 0;
  white-space: nowrap;
}
.owner-tabs .tab.active {
  background: #fff;
  color: var(--orange-dark);
  border-bottom-color: var(--orange);
  box-shadow: none;
}

.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 12px; }
.kv { min-width: 0; }
.kv span { display: block; color: var(--muted); font-size: 11px; }
.kv strong { display: block; font-weight: 600; word-break: break-word; }

.timeline { padding: 8px 16px 16px; }
.tl-item { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding: 12px 0 12px 18px; border-bottom: 1px solid var(--border); position: relative; }
.tl-item::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.tl-item:last-child { border-bottom: 0; }
.tl-item small { color: var(--muted); display: block; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.diff-row { display: grid; grid-template-columns: 140px 1fr 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 12px; }

.toast-wrap { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 80; }
.toast { min-width: 260px; max-width: 380px; background: var(--navy); color: #fff; padding: 10px 12px; border-radius: 8px; box-shadow: var(--shadow-md); }
.toast.warn { background: #9a3412; }
.toast.error { background: #991b1b; }

.modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { width: min(860px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 12px; box-shadow: var(--shadow-md); }
.modal-sm { width: min(460px, 100%); }
.modal-wide { width: min(920px, 100%); }
.modal-h, .modal-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.modal-h { position: sticky; top: 0; z-index: 2; background: #fff; }
.modal-f { border-bottom: 0; border-top: 1px solid var(--border); position: sticky; bottom: 0; background: #fff; }
.modal-f .btn-danger { margin-right: auto; }
#modal-root.is-busy .modal-b { opacity: .6; pointer-events: none; }
#modal-root.is-busy button[disabled] { cursor: progress; }
.modal-b { padding: 14px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; align-items: stretch; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .field { min-width: 0; display: flex; flex-direction: column; }
.form-section {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  padding: 10px 0 2px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-dark);
}
.form-section:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
.form-hint {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
}
.form-hint.is-error { color: var(--red); }
.slot-capacity-wrap { padding: 0 14px 14px; }
.slot-capacity {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff7ed;
}
.slot-capacity-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}
.slot-capacity-kpis article {
  background: #fff;
  border: 1px solid #ffedd5;
  border-radius: 10px;
  padding: 10px 12px;
}
.slot-capacity-kpis b { display: block; font-size: 20px; color: var(--navy); }
.slot-capacity-kpis span { color: var(--muted); font-size: 11px; font-weight: 600; }
.slot-capacity-bar {
  height: 8px;
  border-radius: 999px;
  background: #ffe4c7;
  overflow: hidden;
}
.slot-capacity-bar span {
  display: block;
  height: 100%;
  background: var(--orange);
}
.slot-capacity-note,
.slot-capacity-warn {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}
.slot-capacity-warn { color: var(--red); font-weight: 600; }
.slot-capacity-clients {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
  font-size: 12px;
}
.slot-capacity-clients li { display: flex; justify-content: space-between; gap: 12px; }
.duration-combo {
  display: flex;
  align-items: stretch;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
}
.field .duration-combo input {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  height: 34px;
  border: 0;
  border-radius: 0;
  padding: 0 10px;
}
.field .duration-combo select {
  width: auto;
  flex: 0 0 84px;
  height: 34px;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  background: #f8fafc;
  padding: 0 8px;
  font-weight: 600;
}
.media-type-other[hidden] { display: none; }
.slot-stepper {
  display: flex;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
}
.slot-step {
  width: 34px;
  flex: 0 0 34px;
  border: 0;
  background: #f8fafc;
  color: var(--navy);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.slot-step:hover { background: var(--orange-soft); color: var(--orange-dark); }
.field .slot-stepper input {
  width: 88px;
  min-width: 0;
  height: 34px;
  border: 0;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-radius: 0;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}
.field .slot-stepper input::-webkit-outer-spin-button,
.field .slot-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.slot-plan-wrap[hidden] { display: none; }
.slot-plan-table {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.slot-plan-table th[scope="row"] {
  width: 28%;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  background: #f8fafc;
  white-space: nowrap;
}
.slot-plan-table.is-display tbody tr:hover { background: transparent; }
.slot-plan-view { margin-top: 4px; }
.detail-grid .kv.full { grid-column: 1 / -1; }
.field-hint {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}
.assign-callout {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--orange-soft);
  border: 1px solid #fed7aa;
  color: #1e293b;
}
.assign-callout > i {
  color: var(--orange);
  margin-top: 3px;
  flex: none;
}
.assign-callout div { flex: 1; min-width: 0; }
.assign-callout p { margin: 0; font-size: 13px; line-height: 1.45; font-weight: 500; }
.assign-callout .btn { flex: none; }
.client-rel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #fff7ed;
  border: 1px solid #ffedd5;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}
.client-rel-join { color: var(--orange); font-weight: 700; }
.client-rel-node span { color: var(--muted); font-weight: 600; }
.unassigned-chip {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.empty-state .btn-row { justify-content: center; flex-wrap: wrap; }

.dropdown { position: absolute; right: var(--page-pad); top: 76px; width: 320px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); z-index: 50; }
.dropdown button.item { width: 100%; text-align: left; border: 0; background: transparent; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.empty { padding: 28px 12px; text-align: center; color: var(--muted); }
.preview-mail { white-space: pre-wrap; background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 12px; }

.overlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.35); z-index: 30; }

@media (max-width: 1200px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --page-pad: 16px; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .header-top { gap: 12px; }
  .top-search { max-width: none; }
  .nav {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: auto;
    max-width: none;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav-btn,
  .nav-more-menu .nav-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
    font-size: 14px;
  }
  .nav-more { margin: 0; display: contents; }
  .nav-more-btn { display: none; }
  .nav-more-menu {
    display: flex !important;
    flex-direction: column;
    position: static;
    min-width: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .overlay.show { display: block; }
}
@media (max-width: 980px) {
  :root { --page-pad: 16px; }
  .grid-2, .compare, .form-grid, .tl-item { grid-template-columns: 1fr; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-chip span,
  .user-chip > i { display: none; }
}
.btn:focus-visible,
.nav-btn:focus-visible,
.icon-btn:focus-visible,
.user-chip:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.stat { border-left: 0; }
.stat.tone-green { border-left-color: var(--green); }
.stat.tone-blue { border-left-color: var(--blue); }
.stat.tone-amber { border-left-color: var(--amber); }
.stat.tone-red { border-left-color: var(--red); }

th, td { padding: 12px; }
tbody tr { height: 48px; }

.table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 10px;
  align-items: stretch;
  margin-bottom: 12px;
}
.filter-bar > * { min-width: 0; }
.filter-field {
  min-width: 0;
  overflow: hidden;
}
.filter-bar select,
.filter-bar input[type="date"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.filter-bar .btn {
  width: 100%;
  justify-content: center;
}
.filter-more { position: relative; }
.filter-more summary {
  list-style: none;
  height: 38px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 500;
}
.filter-more summary::-webkit-details-marker { display: none; }
.filter-more .more-panel { display: none; }
.filter-more[open] .more-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  z-index: 30;
  width: min(320px, calc(100vw - 32px));
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 8px;
}
.filter-more .more-panel label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.filter-more .more-panel select,
.filter-more .more-panel input[type="date"] {
  font-weight: 400;
  color: var(--text);
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.chip.active {
  background: var(--orange);
  color: #fff;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }

.empty-state {
  padding: 22px 16px;
  text-align: center;
  color: var(--muted);
}
.empty-state strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 6px; }
.empty-state p { margin: 0 0 12px; }

.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.avatar-lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: none;
}
.profile-head h1 { margin: 0; font-size: 20px; }
.profile-head p { margin: 3px 0 0; color: var(--muted); }
.profile-head .btn-row { margin-left: auto; }

.section-title {
  margin: 0;
  padding: 10px 12px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.location-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.diff-row.changed { background: var(--orange-soft); }
tbody tr.changed td { background: var(--orange-soft); }
.file-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 12px; margin: 0 0 10px; }

.toast { display: flex; align-items: center; gap: 8px; }
.modal .icon-btn {
  border-color: var(--border);
  background: #fff;
  color: var(--text);
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
}
.login-screen.hidden { display: none !important; }
.login-brand {
  background: var(--navy);
  color: #fff;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-brand .logo-plate {
  width: 72px;
  height: 72px;
  padding: 0;
  margin-bottom: 8px;
  background: transparent;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: none;
}
.login-brand .logo-plate img {
  width: 72px;
  height: 72px;
  max-width: none;
  object-fit: cover;
}
.login-form-logo {
  margin: 0 0 18px;
}
.login-form-logo img {
  height: 52px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}
.login-kicker {
  margin: 14px 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fdba74;
}
.login-brand h1 { margin: 0 0 18px; font-size: 28px; line-height: 1.25; letter-spacing: -0.03em; }
.login-brand ul { margin: 0; padding-left: 18px; color: #cbd5e1; }
.login-brand li { margin: 8px 0; }
.login-panel { display: grid; place-items: center; background: #fff; padding: 32px; }
.login-form { width: min(380px, 100%); }
.login-form h2 { margin: 0; font-size: 24px; }
.login-form > p { color: var(--muted); margin: 6px 0 18px; }
.login-form label { display: block; font-size: 12px; font-weight: 600; margin: 10px 0 4px; }
.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[type="text"] {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  background: #f8fafc;
}
.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus,
.login-form input[type="text"]:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  background: #fff;
}
.password-wrap { position: relative; }
.password-wrap input { padding-right: 42px; }
.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 32px;
  height: 32px;
}
.login-row { display: flex; justify-content: space-between; align-items: center; margin: 12px 0; font-size: 12px; }
.check { display: flex; align-items: center; gap: 6px; color: var(--text); font-weight: 500; }
.text-btn { border: 0; background: transparent; color: var(--blue); padding: 0; }
.login-submit { width: 100%; justify-content: center; height: 40px; margin-top: 8px; }
.login-submit:disabled { opacity: 0.65; }
.login-help { text-align: center; color: var(--muted); margin: 14px 0 0; }
.field-error, .form-error { color: var(--red); font-size: 12px; margin: 4px 0 0; min-height: 0; }
.form-error[hidden] { display: none; }

.owner-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.owner-cell > span { min-width: 0; }
.owner-cell strong { display: block; line-height: 1.25; }
.owner-cell small { display: block; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owner-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  flex: none;
}
.owner-logo.initials,
span.owner-logo {
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 700;
}
.profile-head .owner-logo { width: 56px; height: 56px; border-radius: 14px; }
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.pager .btn[disabled] { opacity: 0.45; cursor: default; }
.sticky-filters {
  position: sticky;
  top: 96px;
  z-index: 6;
  background: var(--bg);
  padding: 6px 0 8px;
}
.owner-toolbar { display: grid; gap: 10px; }
.owner-search { margin: 0; }
.owner-toolbar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: stretch;
}
.owner-toolbar-row .filter-bar { margin-bottom: 0; }
.owner-view-seg {
  display: flex;
  align-self: start;
  gap: 4px;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 10px;
  height: 38px;
}
.owner-view-seg button {
  border: 0;
  background: transparent;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.owner-view-seg button.is-on {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}
.owner-dir-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.dir-kpi {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
  padding: var(--card-pad);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}
.dir-kpi i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 15px;
  margin-bottom: 12px;
}
.dir-kpi-label,
.dir-kpi span.dir-kpi-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.3;
}
.dir-kpi b,
.dir-kpi-value {
  display: block;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.dir-kpi-link {
  display: inline-block;
  margin-top: auto;
  font-size: 12px;
  font-weight: 500;
  font-style: normal;
  color: var(--muted);
}
.dir-kpi.is-jump:hover .dir-kpi-link { color: var(--orange); }
.dir-kpi span:not(.dir-kpi-label) { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.dir-kpi.kpi-owners i { background: #fff0eb; color: var(--orange); }
.dir-kpi.kpi-owners { background: #fff; border-color: var(--border); }
.dir-kpi.kpi-active i { background: var(--green-soft); color: var(--green); }
.dir-kpi.kpi-active { background: #fff; border-color: var(--border); }
.dir-kpi.kpi-locs i { background: var(--blue-soft); color: var(--blue); }
.dir-kpi.kpi-locs { background: #fff; border-color: var(--border); }
.dir-kpi.kpi-live i { background: var(--green-soft); color: var(--green); }
.dir-kpi.kpi-live { background: #fff; border-color: var(--border); }
.dir-kpi.kpi-pending i { background: var(--amber-soft); color: #b45309; }
.dir-kpi.kpi-pending { background: #fff; border-color: var(--border); }
.dir-kpi.kpi-show i { background: #f3f4f6; color: #4b5563; }
button.dir-kpi.is-jump,
button.stat.is-jump {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button.dir-kpi.is-jump:hover,
button.stat.is-jump:hover {
  border-color: #d9d9d9;
  box-shadow: var(--shadow);
  transform: none;
}
.dash-metrics {
  display: grid;
  gap: 16px;
}
.dash-metrics-primary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.dash-metrics-status {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.avatar-lg i { font-size: 18px; color: var(--orange-dark); }
.owner-directory { border-radius: var(--radius); overflow: hidden; }
.owner-directory .table-wrap { width: 100%; }
.owner-dir-h { align-items: flex-start; }
.owner-dir-h p { margin: 2px 0 0; color: var(--muted); font-size: 12px; font-weight: 500; }
.owner-dir-table {
  table-layout: fixed;
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
}
.owner-directory .sheet-wrap:has(.owner-dir-table) {
  overflow-x: hidden;
}
.owner-dir-table th,
.owner-dir-table td {
  vertical-align: middle;
  padding: 8px 10px;
  font-size: 12px;
}
.owner-dir-table th {
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 0.03em;
}
/* Keep owner + stats close — do not let the name column swallow the row. */
.owner-dir-table .col-owner { width: 36%; text-align: left; }
.owner-dir-table .col-num {
  width: 11%;
  text-align: center;
}
.owner-dir-table .col-num.col-clients,
.owner-dir-table .col-num:nth-child(3) { width: 13%; }
.owner-dir-table .col-status {
  width: 11%;
  text-align: center;
}
.owner-dir-table .col-action {
  width: 18%;
  text-align: left;
}
.owner-dir-table .col-num .dir-metric,
.owner-dir-table .col-status .pill {
  margin: 0 auto;
}
.owner-dir-table .col-action .actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 6px;
  white-space: nowrap;
}
.owner-dir-table .col-action .linkish {
  flex: none;
  white-space: nowrap;
  font-size: 11px;
}
.owner-dir-table tbody tr { height: auto; min-height: 0; }
.owner-dir-table .owner-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.owner-dir-table .owner-cell .owner-logo {
  width: 32px;
  height: 32px;
  flex: none;
}
.owner-dir-table .owner-cell > span { min-width: 0; }
.owner-dir-table .owner-cell strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.25;
}
.owner-dir-table .owner-cell small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
  margin-top: 1px;
}
.owner-dir-table .dir-metric {
  min-width: 32px;
  height: 24px;
  padding: 0 8px;
  font-size: 12px;
}
.owner-dir-row td.col-owner { box-shadow: inset 3px 0 0 #cbd5e1; }
.owner-dir-row.tone-work td.col-owner { box-shadow: inset 3px 0 0 var(--orange); }
.owner-dir-row.tone-live td.col-owner { box-shadow: inset 3px 0 0 var(--green); }
.owner-dir-row.tone-live { background: #f0fdf4; }
.owner-dir-row.tone-work { background: #fffdf8; }
.owner-directory tbody tr:hover { background: #fff7ed; }
.dir-metric {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
}
.dir-metric.is-loc { background: var(--blue-soft); color: var(--blue); border-color: #bfdbfe; }
.dir-metric.is-client { background: var(--orange-soft); color: var(--orange-dark); border-color: #fed7aa; }
.dir-metric.is-live { background: #f8fafc; color: #64748b; border-color: var(--border); }
.dir-metric.is-live.is-on { background: var(--green-soft); color: var(--green); border-color: #a7f3d0; }
.dir-view { height: 30px; padding: 0 10px; color: var(--blue); border-color: #bfdbfe; background: var(--blue-soft); }
.dir-view:hover { background: #dbeafe; border-color: var(--blue); }
.owner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  padding: 14px;
}
.owner-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow);
  min-height: 188px;
}
.owner-card.tone-work { background: #fff; }
.owner-card.tone-live { background: #fff; }
.owner-card:hover { box-shadow: var(--shadow-md); }
.owner-card-top { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 6px; }
.owner-card strong { font-size: 14px; }
.owner-card > span { color: var(--muted); font-size: 12px; }
.owner-card .owner-type-chip { margin-top: 6px; }
.owner-card-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.owner-card-kpis span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.owner-card-kpis b { font-variant-numeric: tabular-nums; }
.owner-card-kpis .met-loc { background: var(--blue-soft); color: var(--blue); }
.owner-card-kpis .met-clients { background: var(--orange-soft); color: var(--orange-dark); }
.owner-card-kpis .met-live { background: #f1f5f9; color: #64748b; }
.owner-card-kpis .met-live.is-on { background: var(--green-soft); color: var(--green); }
.loc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
}
.loc-toolbar .search-hero { flex: 1; min-width: 220px; margin: 0; }
.loc-directory { overflow: hidden; }
.loc-directory .sheet-wrap:has(.loc-dir-table-compact) {
  overflow-x: hidden;
}
.loc-dir-table {
  table-layout: fixed;
  width: 100%;
  min-width: 0;
}
.loc-dir-table th,
.loc-dir-table td {
  vertical-align: middle;
}
.loc-dir-table-compact th,
.loc-dir-table-compact td {
  padding: 8px 10px;
  font-size: 12px;
}
.loc-dir-table-compact thead th {
  font-size: 10px;
  letter-spacing: 0.03em;
}
.loc-dir-table .col-loc { width: 38%; text-align: left; }
.loc-dir-table .col-owner { width: 18%; text-align: left; }
.loc-dir-table .col-city { width: 11%; text-align: left; }
.loc-dir-table .col-type { width: 12%; text-align: center; }
.loc-dir-table .col-client { width: 18%; text-align: left; }
.loc-dir-table .col-art { width: 13%; text-align: left; }
.loc-dir-table .col-status { width: 10%; text-align: center; }
.loc-dir-table .col-action { width: 16%; text-align: left; }
.loc-dir-table-compact .col-loc { width: 40%; }
.loc-dir-table-compact .col-owner { width: 18%; }
.loc-dir-table-compact .col-client { width: 18%; }
.loc-dir-table-compact .col-status { width: 10%; }
.loc-dir-table-compact .col-action { width: 14%; }
.loc-dir-table .col-status .pill,
.loc-dir-table .col-type .loc-type-chip,
.loc-dir-table .col-action .dir-view { margin: 0 auto; }
.loc-dir-table .col-action .actions {
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 6px;
}
.loc-dir-table .col-action .linkish { flex: none; white-space: nowrap; font-size: 11px; }
.loc-dir-table tbody tr { height: auto; min-height: 0; }
.loc-dir-table-compact tbody tr { min-height: 0; }
.loc-dir-row td.col-loc { box-shadow: inset 3px 0 0 #cbd5e1; }
.loc-dir-row.tone-work td.col-loc { box-shadow: inset 3px 0 0 var(--orange); }
.loc-dir-row.tone-live td.col-loc { box-shadow: inset 3px 0 0 var(--green); }
.loc-dir-row.tone-live { background: #f0fdf4; }
.loc-dir-row.tone-work { background: #fffdf8; }
.loc-directory tbody tr:hover { background: #fff7ed; }
.loc-cell {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.loc-cell > span:last-child,
.loc-cell-copy { min-width: 0; flex: 1; }
.loc-cell strong { display: block; line-height: 1.25; font-size: 13px; }
.loc-cell small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
}
.loc-cell-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.loc-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--orange-soft);
  color: var(--orange-dark);
  border: 1px solid #fed7aa;
  font-size: 12px;
  margin-top: 1px;
}
.loc-dir-row.tone-live .loc-mark { background: var(--green-soft); color: var(--green); border-color: #a7f3d0; }
.loc-type-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--blue-soft);
  border: 1px solid #bfdbfe;
  color: var(--blue);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.loc-occ {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
}
.loc-occ-live {
  background: var(--green-soft);
  border-color: #a7f3d0;
  color: var(--green);
}
.loc-occ-booked {
  background: var(--orange-soft);
  border-color: #fed7aa;
  color: var(--orange-dark);
}
.loc-occ-open {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}
.loc-empty {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}
.loc-actions {
  display: flex;
  align-items: center;
}
.loc-dir-table .dir-link {
  color: var(--navy);
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}
.loc-dir-table .dir-link:hover { color: var(--orange-dark); }
.cli-dir-table {
  table-layout: fixed;
  width: 100%;
  min-width: 1080px;
}
.cli-dir-table th,
.cli-dir-table td { vertical-align: middle; }
.cli-dir-table .col-cli { width: 22%; text-align: left; }
.cli-dir-table .col-owner { width: 14%; text-align: left; }
.cli-dir-table .col-loc { width: 16%; text-align: left; }
.cli-dir-table .col-camp { width: 18%; text-align: left; }
.cli-dir-table .col-date { width: 90px; text-align: center; }
.cli-dir-table .col-status { width: 120px; text-align: center; }
.cli-dir-table .col-action { width: 200px; text-align: left; }
/* Fit Clients directory to the viewport — no forced horizontal scroll. */
.advertisers-dir-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.loc-directory .sheet-wrap:has(.advertisers-dir-table) {
  overflow-x: hidden;
}
.advertisers-dir-table th,
.advertisers-dir-table td {
  vertical-align: middle;
  padding: 8px 6px;
  overflow: hidden;
  font-size: 12px;
}
.advertisers-dir-table thead th {
  font-size: 10px;
  letter-spacing: 0.02em;
}
.advertisers-dir-table .col-cli { width: 13%; text-align: left; }
.advertisers-dir-table .col-owner { width: 8%; text-align: left; }
.advertisers-dir-table .col-loc { width: 8%; text-align: left; }
.advertisers-dir-table .col-camp { width: 7%; text-align: left; }
.advertisers-dir-table .col-bdm,
.advertisers-dir-table .col-email,
.advertisers-dir-table .col-phone,
.advertisers-dir-table .col-owner,
.advertisers-dir-table .col-loc,
.advertisers-dir-table .col-camp,
.advertisers-dir-table .col-prod,
.advertisers-dir-table .col-dur,
.advertisers-dir-table .col-art {
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.advertisers-dir-table .col-bdm { width: 5%; }
.advertisers-dir-table .col-email { width: 10%; }
.advertisers-dir-table .col-phone { width: 7%; }
.advertisers-dir-table .col-prod { width: 7%; }
.advertisers-dir-table .cell-wrap {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.35;
  word-break: break-word;
}
.advertisers-dir-table .cell-clip {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.advertisers-dir-table .col-paid,
.advertisers-dir-table .col-dur,
.advertisers-dir-table .col-art,
.advertisers-dir-table .col-date,
.advertisers-dir-table .col-status {
  text-align: center;
}
.advertisers-dir-table .col-paid { width: 5%; white-space: nowrap; }
.advertisers-dir-table .col-dur { width: 5%; }
.advertisers-dir-table .col-art { width: 6%; }
.advertisers-dir-table .col-date { width: 5%; white-space: nowrap; }
.advertisers-dir-table .col-status { width: 7%; white-space: nowrap; }
.advertisers-dir-table .col-action { width: 8%; text-align: left; overflow: hidden; }
.advertisers-dir-table .col-status .pill {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.advertisers-dir-table .cli-cell,
.advertisers-dir-table .cli-actions {
  align-items: center;
}
.advertisers-dir-table .cli-ava {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 10px;
}
.advertisers-dir-table .cli-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 4px;
  min-width: 0;
}
.advertisers-dir-table .cli-actions .linkish,
.advertisers-dir-table .cli-actions .cli-icon {
  font-size: 11px;
  padding: 0 2px;
}
.cli-dir-table .cli-actions { justify-content: flex-start; flex-wrap: nowrap; }
.cli-dir-table .col-status .pill { margin: 0 auto; }
.cli-dir-table tbody tr { height: 64px; }
.cli-dir-row td.col-cli { box-shadow: inset 3px 0 0 #cbd5e1; }
.cli-dir-row.tone-live td.col-cli { box-shadow: inset 3px 0 0 var(--green); }
.cli-dir-row.tone-pending td.col-cli { box-shadow: inset 3px 0 0 var(--orange); }
.cli-dir-row.tone-ready td.col-cli { box-shadow: inset 3px 0 0 var(--violet); }
.cli-dir-row.tone-plan td.col-cli { box-shadow: inset 3px 0 0 var(--blue); }
.cli-dir-row.tone-live { background: #f0fdf4; }
.cli-dir-row.tone-pending { background: #fff7ed; }
.cli-dir-row.tone-ready { background: #f5f3ff; }
.cli-dir-row.tone-plan { background: #eff6ff; }
.cli-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cli-cell > span:last-child { min-width: 0; }
.cli-cell strong { display: block; line-height: 1.25; }
.cli-cell small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cli-ava {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--orange-soft);
  color: var(--orange-dark);
  border: 1px solid #fed7aa;
  font-size: 11px;
  font-weight: 700;
}
.cli-dir-row.tone-live .cli-ava { background: var(--green-soft); color: var(--green); border-color: #a7f3d0; }
.cli-dir-row.tone-pending .cli-ava { background: var(--orange-soft); color: var(--orange-dark); }
.cli-dir-row.tone-ready .cli-ava { background: var(--violet-soft); color: var(--violet); border-color: #ddd6fe; }
.cli-dir-row.tone-plan .cli-ava { background: var(--blue-soft); color: var(--blue); border-color: #bfdbfe; }
.cli-dir-table .dir-link {
  color: var(--navy);
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}
.cli-dir-table .dir-link:hover { color: var(--orange-dark); }
.cli-dir-table .col-camp {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.camp-toolbar {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
}
.camp-toolbar-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.camp-toolbar-top .search-hero {
  flex: 1 1 240px;
  min-width: 220px;
  margin: 0;
}
.camp-toolbar .filter-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(88px, auto) minmax(110px, auto);
  margin: 0;
}
.camp-toolbar .filter-bar .btn,
.camp-toolbar .filter-more { width: auto; }
.camp-toolbar .filter-chips { margin: 0; }
.camp-dir-table .col-camp { width: 24%; text-align: left; overflow: visible; text-overflow: unset; white-space: normal; }
.camp-dir-table .col-cli { width: 13%; }
.camp-dir-table .col-loc { width: 15%; }
.camp-dir-table .col-prod { width: 11%; }
.camp-dir-table .col-date { width: 92px; }
.camp-dir-table .col-dur { width: 88px; text-align: center; }
.camp-dir-table .col-status { width: 120px; }
.camp-dir-table .col-staff { width: 90px; }
.camp-dir-table { min-width: 1080px; }
.camp-dir-table .col-action { width: 176px; text-align: left; }
.camp-dir-table .col-action .actions {
  flex-wrap: nowrap;
  white-space: nowrap;
}
.creatives-dir-table { min-width: 1080px; }
.creatives-dir-table .col-file { width: 16%; }
.creatives-dir-table .col-cli { width: 13%; }
.creatives-dir-table .col-loc { width: 14%; }
.creatives-dir-table .col-camp { width: 18%; }
.creatives-dir-table .col-drive { width: 12%; }
.creatives-dir-table .col-date { width: 88px; }
.creatives-dir-table .col-status { width: 110px; }
.creatives-dir-table .col-action { width: 176px; text-align: left; }
.creatives-dir-table .col-file,
.creatives-dir-table .col-cli,
.creatives-dir-table .col-loc,
.creatives-dir-table .col-camp,
.creatives-dir-table .col-drive {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.creatives-dir-table .col-action .actions {
  flex-wrap: nowrap;
  white-space: nowrap;
}
.creatives-dir-table .col-action .linkish { flex: none; white-space: nowrap; }
.creatives-dir-table tbody tr { height: 52px; }
.camp-dir-table .col-action .linkish { flex: none; white-space: nowrap; }
.camp-dir-table tbody tr { height: 52px; }
.camp-dir-table th { color: #475569; }
.camp-dir-table .cli-dir-row td.col-camp { box-shadow: inset 3px 0 0 #cbd5e1; }
.camp-dir-table .cli-dir-row.tone-live td.col-camp { box-shadow: inset 3px 0 0 var(--green); }
.camp-dir-table .cli-dir-row.tone-pending td.col-camp { box-shadow: inset 3px 0 0 var(--orange); }
.camp-dir-table .cli-dir-row.tone-ready td.col-camp { box-shadow: inset 3px 0 0 var(--violet); }
.camp-dir-table .cli-dir-row.tone-plan td.col-camp { box-shadow: inset 3px 0 0 var(--blue); }
.camp-cell strong {
  display: block;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.camp-cell small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #f1f5f9;
  color: #475569;
}
.product-chip.is-digital { background: var(--blue-soft); color: var(--blue); }
.product-chip.is-billboard { background: var(--orange-soft); color: var(--orange-dark); }
.product-chip.is-transit { background: var(--violet-soft); color: var(--violet); }
.product-chip.is-screen { background: #ecfeff; color: #0e7490; }
.cli-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.cli-icon {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  color: #475569;
  display: inline-grid;
  place-items: center;
}
.cli-icon:hover { border-color: #fdba74; color: var(--orange-dark); background: var(--orange-soft); }
.cli-icon.is-danger { color: var(--red); }
.cli-icon.is-danger:hover { border-color: #fecaca; background: var(--red-soft); color: var(--red); }
.danger-link { color: var(--red); }
.btn-edit {
  border-color: #fdba74;
  color: var(--orange-dark);
  background: var(--orange-soft);
  font-weight: 600;
}
.btn-edit:hover { background: #ffedd5; }
.client-dash-head { flex-wrap: wrap; }
.client-dash-id { min-width: 0; flex: 1 1 200px; }
.client-dash-actions { flex: 1 1 auto; justify-content: flex-end; }
.owner-profile-head.client-dash-head { grid-template-columns: auto minmax(0, 1fr) auto; }
.owner-profile-head.client-dash-head .client-dash-actions { grid-column: 1 / -1; justify-content: flex-end; }
.client-dash-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 12px;
}
.client-dash-panel { overflow: hidden; }
.client-scope-note {
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.client-jump-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.client-dash-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 12px; }
.client-kv { grid-template-columns: 1fr 1fr; padding: 14px; }
.related-pad { padding: 14px; }
.related-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-dark);
}
.related-chips + .related-label { margin-top: 16px; }
.related-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.related-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: #fff;
}
.related-chip.is-owner { border-color: #fed7aa; background: var(--orange-soft); color: var(--orange-dark); }
.related-chip.is-loc { border-color: #bfdbfe; background: var(--blue-soft); color: var(--blue); }
.related-chip:hover { box-shadow: var(--shadow); }
.warn-banner {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--red-soft);
  border: 1px solid #fecaca;
  color: var(--red);
  font-weight: 600;
}
.confirm-step {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-dark);
}
.confirm-copy { margin: 12px 0 8px; color: #334155; line-height: 1.45; }
.confirm-impact { margin: 0 0 12px; padding-left: 20px; }
.confirm-impact li { margin: 4px 0; }
.confirm-keep {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--green-soft);
  border: 1px solid #a7f3d0;
  color: var(--green);
  font-weight: 600;
}
.owner-profile-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  border-radius: var(--radius);
  padding: 16px 18px;
  border-left: 3px solid var(--orange);
  background: #fff;
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-left-color: var(--orange);
}
.owner-profile-head .btn-row { margin-left: 0; }
.owner-sheet { overflow: hidden; background: #fff; }
.owner-sheet .tabs { background: #fff; }
.owner-section-pad { display: grid; gap: 12px; padding: 14px; }
.owner-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--border);
  box-shadow: none;
  overflow: hidden;
}
.owner-block-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
}
.owner-block-h h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.owner-block-copy { margin: 0; padding: 14px; }
.owner-block .detail-grid { padding: 14px; }
.owner-block .kv {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}
.owner-block .stats { margin: 0; }
.owner-sheet .owner-kpis { margin: 0; }
.tab-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.tab-tools h3 { margin: 0; font-size: 14px; }
.tab-tools span { display: block; color: var(--muted); font-size: 12px; }
.tab-tools .btn-row { flex-wrap: wrap; justify-content: flex-end; }
.tab-tools select {
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 8px;
  background: #fff;
}
.art-thumb {
  width: 48px;
  height: 32px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.art-thumb-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}
.art-thumb-wrap .art-thumb {
  width: 88px;
  height: 56px;
}
.art-thumb-remove {
  border: 0;
  background: transparent;
  color: #b42318;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}
.art-thumb-remove:hover { text-decoration: underline; }
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  padding: 12px;
}
.art-card-item { display: grid; gap: 6px; }
.art-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 8px;
}
button.art-card {
  width: 100%;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button.art-card:hover {
  border-color: #fdba74;
  box-shadow: var(--shadow);
}
button.status-col.is-jump {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button.status-col.is-jump:hover small { color: var(--navy); }
button.status-col.is-jump:hover .status-col-track { background: #e2e8f0; }
.art-card img, .art-ph {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  background: #f1f5f9;
}
.art-ph { display: grid; place-items: center; color: var(--light); }
.art-preview {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}
.art-card strong { font-size: 12px; }
.place-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px 14px; }
.place-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange-dark);
  background: #fff7ed;
  border: 1px solid #ffedd5;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.place-chip i { color: var(--orange); }
.muted-note { color: var(--muted); font-size: 11px; }
.creative-col .btn { margin-top: 8px; }
.loc-spot-list { display: grid; gap: 12px; padding: 0; }
.loc-spot-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
}
.loc-spot {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: none;
  border-left: 3px solid var(--border);
}
.loc-spot-head > div { min-width: 0; }
.loc-spot-head strong { display: block; font-size: 15px; }
.loc-spot-head span { color: var(--muted); font-size: 12px; }
.loc-spot-body { padding: 12px 14px 14px; }
.loc-spot-body > p {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-dark);
}
.loc-creative-list { display: grid; gap: 8px; }
.loc-creative {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  background: #fff;
}
.loc-creative-art {
  border: 0;
  padding: 0;
  background: #f8fafc;
  border-radius: 10px;
  overflow: hidden;
  width: 72px;
  height: 56px;
}
.loc-creative-art img, .loc-creative-art .art-ph {
  width: 72px;
  height: 56px;
  object-fit: contain;
  display: block;
  background: #f8fafc;
}
.loc-booking {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px dashed #fdba74;
  border-radius: 12px;
  background: #fff7ed;
}
.loc-booking strong { display: block; font-size: 13px; }
.loc-booking span { display: block; color: var(--muted); font-size: 11px; }
.drive-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange-dark);
  font-weight: 600;
  text-decoration: none;
}
.drive-link:hover { text-decoration: underline; }
.drive-link i { color: #1a73e8; }
.creative-drive-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
}
.creative-drive-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.creative-drive-top span,
.creative-drive-meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.creative-drive-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}
.creative-drive-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.creative-list { display: grid; gap: 12px; padding: 12px 14px 16px; }
.creative-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}
.creative-col p {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-dark);
}
.creative-col strong { display: block; margin-top: 8px; font-size: 13px; }
.creative-col span { display: block; color: var(--muted); font-size: 11px; }
.creative-frame {
  width: 100%;
  min-height: 240px;
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 12px;
  padding: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.creative-frame img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 8px;
}
.creative-frame .art-ph {
  min-height: 240px;
  width: 100%;
  height: auto;
  background: transparent;
  gap: 6px;
}
.creative-join {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  gap: 4px;
  min-width: 72px;
  padding-top: 28px;
}
.creative-join small {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 10px;
}
.dash {
  display: grid;
  gap: 14px;
}
.dash > .panel + .panel { margin-top: 0; }
.dash-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr) 14px minmax(0, 1fr) 14px minmax(0, 1fr);
  gap: 0 8px;
  align-items: stretch;
  margin: 0;
}
.dash-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.dash-stat {
  display: grid;
  gap: 2px;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-left-color: var(--orange);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.dash-stat b {
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.dash-stat small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}
.dash-stat:hover { border-color: #fdba74; border-left-color: var(--orange); }
.dash-stat.tone-blue { border-left-color: var(--blue); }
.dash-stat.tone-green { border-left-color: var(--green); }
.dash-stat.tone-orange { border-left-color: var(--orange); }
.dash-stat.tone-amber { border-left-color: var(--amber); }
.dash-stat.tone-red { border-left-color: var(--red); }
.dash-stat.tone-muted { border-left-color: #cbd5e1; }
.flow-node,
.bar-row,
.owner-spot-id,
.client-row-main,
.owner-partner {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.flow-node {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 64px;
  width: 100%;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--orange);
}
button.flow-node:hover { border-color: #fdba74; }
.flow-node:not(button) { cursor: default; }
.flow-node > i {
  width: 32px;
  height: 32px;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 13px;
}
.flow-node span { display: grid; gap: 1px; min-width: 0; }
.flow-node b {
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}
.flow-node small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.flow-join {
  display: grid;
  place-items: center;
  color: #fdba74;
  font-size: 10px;
}
.dash-charts {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 14px;
  margin: 0;
  align-items: stretch;
}
.dash-charts .panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.dash-charts .panel + .panel { margin-top: 0; }
.bar-chart {
  display: grid;
  gap: 6px;
  padding: 10px 14px 12px;
  flex: 1;
  align-content: start;
}
.bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 34%) minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 4px 0;
  text-align: left;
  border-radius: 6px;
}
.bar-row:hover { background: #f8fafc; }
.bar-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-track { height: 8px; background: #f1f5f9; border-radius: 99px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--orange); border-radius: 99px; }
.bar-value {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.status-chart {
  display: grid;
  gap: 12px;
  padding: 12px 14px 14px;
  flex: 1;
  align-content: start;
}
.status-mix {
  display: flex;
  height: 10px;
  border-radius: 99px;
  overflow: hidden;
  background: #e2e8f0;
}
.status-mix span { display: block; min-width: 0; }
.status-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 148px;
}
.status-col {
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  height: 148px;
}
.status-col b {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
  line-height: 1;
}
.status-col-track {
  display: flex;
  align-items: flex-end;
  width: 22px;
  height: 100%;
  border-radius: 8px 8px 4px 4px;
  background: #f1f5f9;
  overflow: hidden;
}
.status-col-track i {
  display: block;
  width: 100%;
  border-radius: 8px 8px 4px 4px;
  min-height: 0;
}
.status-col small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.owner-spotlight { margin-top: 0; }
.owner-spotlight-h { align-items: flex-start; }
.owner-spotlight-h p { margin: 2px 0 0; color: var(--muted); font-size: 12px; font-weight: 500; }
.owner-spotlight-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}
.spot-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.spot-stat b { font-variant-numeric: tabular-nums; }
.spot-stat.is-owners { background: var(--orange-soft); color: var(--orange-dark); }
.spot-stat.is-partners { background: var(--blue-soft); color: var(--blue); }
.spot-stat.is-clients { background: var(--green-soft); color: var(--green); }
.owner-spotlight-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}
.spot-search {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.spot-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}
.spot-search input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 12px 0 34px;
  background: #fff;
  outline: none;
}
.spot-search input:focus { border-color: #fdba74; box-shadow: 0 0 0 3px var(--orange-soft); }
.seg {
  display: flex;
  gap: 4px;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 10px;
}
.seg button {
  border: 0;
  background: transparent;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--muted);
}
.seg button.active {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}
.owner-spotlight-list { display: grid; gap: 10px; padding: 10px; }
.owner-spot {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.owner-spot.has-clients { box-shadow: var(--shadow); }
.owner-spot.tone-work,
.owner-spot.tone-live,
.owner-spot.tone-idle { border-color: var(--border); }
.owner-spot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}
.owner-spot.tone-work .owner-spot-head,
.owner-spot.tone-live .owner-spot-head { background: #f8fafc; }
.owner-spot-id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}
.owner-spot-id .owner-logo { width: 36px; height: 36px; border-radius: 10px; }
.owner-spot-id > span { min-width: 0; }
.owner-spot-id strong { display: block; font-size: 14px; line-height: 1.2; }
.owner-spot-id small { display: block; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owner-spot-id:hover strong { color: var(--orange-dark); }
.owner-type-chip {
  flex: none;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #fed7aa;
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.owner-spot-aside {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.owner-spot-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
}
.owner-spot-metrics span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
}
.owner-spot-metrics b {
  font-size: 12px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.owner-spot-metrics .met-clients { background: var(--blue-soft); border-color: #bfdbfe; color: var(--blue); }
.owner-spot-metrics .met-clients b { color: var(--blue); }
.owner-spot-metrics .met-campaigns { background: var(--orange-soft); border-color: #fed7aa; color: var(--orange-dark); }
.owner-spot-metrics .met-campaigns b { color: var(--orange-dark); }
.owner-spot-metrics .met-live { background: #f8fafc; border-color: var(--border); color: var(--muted); }
.owner-spot-metrics .met-live b { color: var(--navy); }
.owner-spot-metrics .met-live.is-on { background: var(--green-soft); border-color: #a7f3d0; color: var(--green); }
.owner-spot-metrics .met-live.is-on b { color: var(--green); }
.owner-spot-status { color: #475569; border-color: var(--border); background: #fff; }
.owner-spot-status.is-active { background: var(--green-soft); border-color: #a7f3d0; color: var(--green); }
.owner-spot-status.is-off { background: var(--amber-soft); border-color: #fde68a; color: var(--amber); }
.owner-spot-aside .btn { flex: none; padding: 6px 10px; font-size: 12px; }
.owner-spot-clients { padding: 8px 10px 10px; background: #fbfdff; }
.owner-spot-clients-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  padding: 0 2px;
}
.owner-spot-clients-h .linkish { margin-left: auto; font-weight: 600; }
.owner-spot-clients-h p {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--orange-dark);
}
.owner-spot-clients-h span { color: var(--muted); font-size: 11px; }
/* Two columns on wide screens fills the empty middle and cuts vertical scroll. */
.client-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 8px;
}
.client-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 4px;
  align-items: center;
  min-width: 0;
}
.client-row-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto 10px;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 6px 8px;
  text-align: left;
}
.client-row.tone-live .client-row-main,
.client-row.tone-ready .client-row-main,
.client-row.tone-pending .client-row-main,
.client-row.tone-plan .client-row-main,
.client-row.tone-done .client-row-main,
.client-row.tone-idle .client-row-main {
  background: #fff;
  border-color: var(--border);
}
.client-row-main:hover { box-shadow: var(--shadow); }
.client-row-main:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.client-edit {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
}
.client-edit:hover { border-color: var(--orange); color: var(--orange-dark); background: var(--orange-soft); }
.client-ava {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--border);
  font-size: 10px;
  font-weight: 700;
}
.client-row.tone-live .client-ava { background: #fff; color: var(--green); border-color: #a7f3d0; }
.client-row.tone-ready .client-ava { background: #fff; color: var(--violet); border-color: #ddd6fe; }
.client-row.tone-pending .client-ava { background: #fff; color: var(--orange-dark); border-color: #fed7aa; }
.client-row.tone-plan .client-ava { background: #fff; color: var(--blue); border-color: #bfdbfe; }
.client-row-copy { min-width: 0; }
.client-row-copy strong { display: block; font-size: 12px; line-height: 1.25; }
.client-row-copy small {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  overflow: hidden;
}
.client-row-copy small span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.client-row-copy small em {
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
  font-weight: 600;
  color: #475569;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  padding: 0 7px;
  height: 18px;
  line-height: 16px;
}
.client-row-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.camp-count {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: #475569;
  font-weight: 600;
}
.client-row-main > i { color: #cbd5e1; font-size: 11px; }
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  border: 1px solid #a7f3d0;
  font-size: 11px;
  font-weight: 700;
}
.live-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.16);
}
.client-more {
  grid-column: 1 / -1;
  width: 100%;
  border: 1px dashed #bfdbfe;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 600;
  padding: 6px;
  border-radius: 8px;
  font-size: 12px;
}
.client-more:hover { background: #dbeafe; }
.spot-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  padding: 8px 4px;
}
.spot-empty p { margin: 0; }
.owner-partners {
  border: 1px dashed #93c5fd;
  border-radius: 16px;
  background: #f8fbff;
  overflow: hidden;
}
.owner-partners-toggle,
.owner-partners-label {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  font-weight: 600;
  margin: 0;
}
.owner-partners-toggle span,
.owner-partners-label { color: var(--navy); }
.owner-partners-toggle i,
.owner-partners-label i { color: var(--blue); margin-right: 8px; }
.owner-partners-toggle small { color: var(--blue); font-weight: 600; }
.owner-partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}
.owner-partner {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 1px solid #bfdbfe;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
}
.owner-partner:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.owner-partner strong { display: block; font-size: 12px; }
.owner-partner small { display: block; color: var(--muted); font-size: 11px; }
.partner-tag {
  margin-left: auto;
  flex: none;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 20px;
}

@media (max-width: 1180px) {
  .dash-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-charts { grid-template-columns: 1fr; }
  .dash-metrics-status { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .dash-flow { grid-template-columns: 1fr 1fr; }
  .dash-metrics-primary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-metrics-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-join { display: none; }
  .bar-row { grid-template-columns: minmax(0, 1fr) 28px; }
  .bar-label { grid-column: 1 / -1; }
  .owner-spot-head { flex-wrap: wrap; }
  .owner-spot-id { flex: 1 1 220px; }
  .owner-spot-aside { flex: 1 1 auto; justify-content: flex-end; flex-wrap: wrap; }
  .owner-spot-metrics { flex-wrap: wrap; }
  .owner-profile-head, .loc-spot-head, .tab-tools { grid-template-columns: 1fr; }
  .owner-profile-head .btn-row, .tab-tools .btn-row { justify-content: flex-start; }
  .tab-tools { flex-wrap: wrap; }
  .loc-creative { grid-template-columns: 72px minmax(0, 1fr); }
  .loc-creative-actions { grid-column: 1 / -1; }
  .loc-booking { grid-template-columns: 1fr; }
  .creative-join { flex-direction: row; padding: 0; }
  .creative-join i { transform: rotate(90deg); }
  .client-list { grid-template-columns: 1fr; }
  .client-row-meta { grid-column: 2; }
  .client-row-main > i { display: none; }
  .client-dash-grid { grid-template-columns: 1fr; }
  .client-dash-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .owner-dir-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .loc-dir-table .col-action .actions,
  .camp-dir-table .col-action .actions,
  .creatives-dir-table .col-action .actions {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  .owner-toolbar-row { grid-template-columns: 1fr; }
  .owner-view-seg { width: fit-content; }
}
@media (max-width: 768px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-brand { padding: 28px 22px; }
  .login-brand h1 { font-size: 22px; }
  .location-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand-logo { display: none; }
  .brand-mark { display: block; }
  .header-top { flex-wrap: wrap; }
  .top-search { flex: 1 1 100%; max-width: none; min-width: 0; order: 5; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .main { padding: 16px var(--page-pad) 24px; }
  .page-head { flex-direction: column; }
  .owner-dir-kpis { grid-template-columns: 1fr 1fr; }
  .client-dash-kpis { grid-template-columns: 1fr 1fr; }
  .dash-metrics-primary,
  .dash-metrics-status { grid-template-columns: 1fr 1fr; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .dash-flow { grid-template-columns: 1fr; }
  .status-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 0; }
  .status-col { height: 120px; }
  .owner-profile-head { grid-template-columns: 1fr; }
  .profile-head .btn-row { margin-left: 0; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; }
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: -8px 0 14px;
  font-size: 12px;
}
.crumb {
  border: 0;
  background: transparent;
  color: var(--orange-dark);
  font: inherit;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}
.crumb.is-current { color: var(--muted); cursor: default; }
.crumb-sep { color: var(--muted); }
.rel-chain {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 16px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.rel-chain li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.rel-node {
  display: grid;
  gap: 2px;
  min-width: 140px;
  text-align: left;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  border-left: 4px solid var(--orange);
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.rel-node.is-empty { cursor: default; border-left-color: #cbd5e1; }
.rel-node small { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.rel-node strong { font-size: 13px; }
.rel-join {
  width: 18px;
  height: 2px;
  background: var(--orange);
  flex: 0 0 18px;
}
.now-showing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 0 14px 14px;
}
.now-showing img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.now-showing figcaption { margin-top: 6px; color: var(--muted); font-size: 12px; }
.auto-owner {
  margin: 0;
  min-height: 34px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  background: #fff7ed;
  border: 1px solid #ffedd5;
  border-radius: 7px;
  font-weight: 600;
}
.hierarchy-list {
  display: grid;
  gap: 12px;
}
.hierarchy-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px 16px;
  align-items: center;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.hierarchy-card > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hierarchy-card strong {
  font-size: 15px;
}
.hierarchy-card strong i {
  color: var(--orange);
  margin-right: 6px;
}
.hierarchy-card span {
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 720px) {
  .hierarchy-card {
    grid-template-columns: 1fr auto;
  }
  .hierarchy-card .btn-row {
    grid-column: 1 / -1;
  }
}

.settings-page {
  display: grid;
  gap: 16px;
}
.settings-hero {
  display: grid;
  grid-template-columns: auto minmax(220px, 1.1fr) minmax(0, 1.6fr);
  align-items: center;
  gap: 18px 22px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
}
.settings-hero-ava {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--orange);
  color: #fff;
}
.settings-hero-id { min-width: 0; }
.settings-hero .settings-kicker {
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fdba74;
}
.settings-hero h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.settings-hero-id > p:last-child {
  margin: 3px 0 0;
  color: #94a3b8;
  font-size: 12px;
}
.settings-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.settings-fact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}
.settings-fact i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(249, 115, 22, 0.16);
  color: #fdba74;
  flex: none;
  font-size: 12px;
}
.settings-fact b { display: block; font-size: 16px; letter-spacing: -0.03em; line-height: 1.1; color: #fff; }
.settings-fact span { color: #94a3b8; font-size: 11px; font-weight: 600; }
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 16px;
  align-items: start;
}
.settings-side {
  display: grid;
  gap: 16px;
}
.settings-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.settings-card.is-danger { border-color: #fecaca; }
.settings-card-h {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.settings-card.is-danger .settings-card-h { background: #fffafa; }
.settings-card-h h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.settings-card-h p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.settings-card-b { padding: 16px; display: grid; gap: 16px; }
.settings-form { align-items: end; }
.settings-page .field input {
  height: 38px;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
}
.settings-page .field input:focus {
  outline: none;
  border-color: #fdba74;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}
.settings-readonly {
  margin: 0;
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 500;
}
.settings-staff-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.settings-staff-h label {
  font-size: 12px;
  font-weight: 600;
}
.settings-staff-h span {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
}
.staff-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.staff-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 4px 0 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}
.staff-chip-x {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  line-height: 1;
}
.staff-chip-x:hover { background: var(--red-soft); color: var(--red); }
.staff-chip-edit {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  line-height: 1;
  font-size: 10px;
}
.staff-chip-edit:hover { background: #eef2ff; color: var(--blue); }
.staff-add {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
  max-width: 420px;
}
.settings-staff .staff-add:has(#setting-sales-new),
.settings-staff .staff-add:has(#setting-staff-email) {
  grid-template-columns: 1fr 1fr auto;
  max-width: 560px;
}
.settings-staff .staff-add:has(#setting-sales-new) {
  max-width: none;
}
.staff-add input {
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
}
.staff-add input:focus {
  outline: none;
  border-color: #fdba74;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}
.settings-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.settings-actions { display: flex; }
@media (max-width: 1100px) {
  .settings-hero {
    grid-template-columns: auto 1fr;
  }
  .settings-facts { grid-column: 1 / -1; }
  .camp-toolbar .filter-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .settings-layout { grid-template-columns: 1fr; }
  .settings-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .camp-toolbar .filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .settings-form { grid-template-columns: 1fr; }
  .settings-hero { grid-template-columns: 1fr; padding: 14px; }
  .settings-facts { grid-template-columns: 1fr 1fr; }
}

.login-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 0 16px;
  padding: 4px;
  background: #f1f5f9;
  border-radius: 10px;
}
.login-mode-btn {
  border: 0;
  background: transparent;
  height: 36px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
}
.login-mode-btn.active {
  background: #fff;
  color: var(--orange-dark);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}
.sales-picker-list {
  display: grid;
  gap: 10px;
}
.sales-pick-btn { width: 100%; justify-content: center; }
.assigned-table { min-width: 920px; }
.assigned-note {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.55;
  color: #334155;
}
.app.is-sales .top-search,
.app.is-sales [data-nav="settings"],
.app.is-sales #notify-btn { display: none !important; }

.assigned-kpis { margin-bottom: 14px; }
.assigned-spotlight .owner-spotlight-list { padding-top: 4px; }
.assigned-spotlight .client-row.tone-ready .client-row-main {
  background: #fff;
  border-color: var(--border);
}
.assigned-spotlight .client-row-copy em + em::before {
  content: " Â· ";
  color: var(--muted);
  font-style: normal;
}

/* Interconnected dashboards: owner, location, client and campaign detail */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.dash-section,
.dash-notes-card,
.dash-loc-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.dash-loc-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.dash-section-h,
.dash-notes-h,
.dash-loc-card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}
.dash-loc-card-h-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.dash-loc-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.dash-loc-pin {
  color: var(--primary, #f97316);
  font-size: 16px;
}
.dash-loc-card-h .loc-title {
  font-size: 16px;
  color: #0f172a;
  text-align: left;
}
.dash-loc-card-h .loc-title strong {
  font-weight: 700;
}
.dash-loc-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dash-loc-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: #475569;
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 6px;
}
.dash-loc-kpis-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  padding: 12px 16px;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
}
.dash-loc-kpi-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 48px;
}
.dash-loc-kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #fff7ed;
  color: #f97316;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.dash-loc-kpi-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 2px;
}
.dash-loc-kpi-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.3;
}
.dash-loc-kpi-val {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 1px 4px 2px 0;
}
.dash-loc-kpi-val.is-empty-val {
  color: var(--muted);
  font-weight: 400;
  font-style: italic;
}
.dash-loc-boxes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.dash-loc-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dash-loc-box-h {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #475569;
}
.dash-loc-box-b {
  padding: 12px;
  display: grid;
  gap: 12px;
  flex: 1;
}
.dash-client-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}
.dash-client-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-size: 12px;
  color: #1e40af;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.dash-client-tag:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  transform: translateY(-1px);
}
.dash-client-tag small {
  background: #3b82f6;
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 600;
}
.dash-empty-clients {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.dash-loc-notes-container {
  width: 100%;
}
.dash-section-h h3,
.dash-notes-h h3 { margin: 0; font-size: 14px; }
.dash-section-b,
.dash-notes-body,
.dash-loc-card-b { padding: 16px; }
.dash-loc-list { display: grid; gap: 16px; }
.dash-fields { display: grid; gap: 12px; }
.dash-field { min-width: 0; }
.dash-label {
  display: block;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.dash-value,
.dash-text-block p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.dash-text-block.is-truncated p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dash-view-more { margin-top: 4px; }
.dash-empty { margin: 0; color: var(--muted); font-style: italic; }
.dash-meta { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.dash-notes-inline-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.dash-notes-inline-body {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
}
.dash-notes-inline-body p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.dash-notes-card { margin-bottom: 14px; }
.btn-sm { padding: 5px 10px; font-size: 12px; }

@media (max-width: 720px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-section-h,
  .dash-notes-h,
  .dash-loc-card-h { align-items: flex-start; flex-direction: column; }
  .dash-loc-kpis-strip { grid-template-columns: 1fr; }
  .dash-loc-boxes-grid { grid-template-columns: 1fr; }
}


/*  Reviews & Ratings (UI preview)  */
.rv-preview-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  margin: 0 0 14px;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  background: var(--orange-soft);
  color: var(--text);
}
.rv-preview-banner > i { color: var(--orange-dark); margin-top: 2px; }
.rv-preview-banner > div { flex: 1; min-width: 0; font-size: 12px; }
.rv-preview-banner .btn { flex: 0 0 auto; }
.rv-tabs { margin: 0 0 14px; flex-wrap: wrap; }
.rv-tab-count {
  display: inline-block;
  min-width: 18px;
  padding: 0 6px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.rv-kpis { margin-bottom: 14px; }
.rv-stars { color: var(--orange); letter-spacing: 1px; white-space: nowrap; }
.rv-stars .fa-regular { color: #cbd5e1; }
.rv-stars-lg { font-size: 22px; }
.rv-rating-num { color: var(--muted); font-size: 12px; margin-left: 4px; }
.rv-clip {
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
}
.rv-alert-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-danger { background: var(--red-soft); color: var(--red); }
.pill-success { background: var(--green-soft); color: var(--green); }
.pill-warn { background: var(--amber-soft); color: var(--amber); }
.rv-warn {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  margin: 0 0 12px;
  border-radius: 10px;
  background: var(--amber-soft);
  color: #92400e;
  font-size: 12px;
}
.rv-camp-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}
.profile-head .btn-row { flex-wrap: wrap; align-items: center; }

/* Public review page */
.rv-public-body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  font-family: "Poppins", sans-serif;
}
.rv-preview-strip {
  text-align: center;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.92);
  color: #cbd5e1;
  font-size: 12px;
}
.rv-preview-strip code {
  color: #fdba74;
  background: transparent;
  font-size: 12px;
}
.rv-public-wrap {
  display: grid;
  place-items: start center;
  padding: 28px 16px 48px;
}
.rv-public-card {
  width: min(480px, 100%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 28px 24px 22px;
}
.rv-public-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-weight: 600;
  color: var(--navy);
}
.rv-public-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.rv-public-card h1 {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.rv-public-sub { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.rv-public-card .field { margin-bottom: 14px; }
.rv-public-card label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}
.rv-public-card .req { color: var(--red); }
.rv-public-card textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  resize: vertical;
  min-height: 110px;
  font: inherit;
}
.rv-public-card textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}
.rv-star-pick { display: flex; gap: 4px; align-items: center; }
.rv-star-btn {
  border: 0;
  background: transparent;
  padding: 4px;
  color: #cbd5e1;
  font-size: 22px;
  line-height: 1;
}
.rv-star-btn.is-on { color: var(--orange); }
.rv-star-btn:hover { color: var(--orange); }
.rv-optional-block {
  margin: 8px 0 14px;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
}
.rv-optional-label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.rv-opt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0;
  font-size: 13px;
}
.rv-opt-row .rv-star-btn { font-size: 16px; }
.rv-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 16px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.rv-check input { margin-top: 3px; }
.rv-submit { width: 100%; justify-content: center; min-height: 42px; }
.rv-public-foot {
  margin: 14px 0 0;
  text-align: center;
  color: var(--light);
  font-size: 11px;
}
.rv-public-card .field-error {
  margin: 6px 0 0;
  color: var(--red);
  font-size: 12px;
}

/* Thank-you screen */
body.rv-thanks-mode {
  background: var(--bg);
}
body.rv-thanks-mode .rv-preview-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
body.rv-thanks-mode .rv-public-wrap {
  min-height: calc(100vh - 36px);
  place-items: center;
  padding: 36px 16px 48px;
}
.rv-thanks-card {
  position: relative;
  overflow: hidden;
  width: min(440px, 100%);
  padding: 32px 28px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.rv-thanks-glow {
  display: none;
}
.rv-thanks-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.rv-thanks-brand img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.rv-thanks-icon {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  background: var(--green);
  color: #fff;
  font-size: 26px;
  box-shadow: none;
}
.rv-thanks-kicker {
  position: relative;
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-dark);
}
.rv-thanks-card h1 {
  position: relative;
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--navy);
}
.rv-thanks-lead {
  position: relative;
  margin: 0 auto 18px;
  max-width: 32ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.rv-thanks-quote {
  position: relative;
  margin: 0 0 16px;
  padding: 16px 14px;
  border-radius: var(--radius);
  background: #fafafa;
  border: 1px solid var(--border);
  text-align: center;
}
.rv-thanks-quote .rv-stars-lg { font-size: 26px; }
.rv-thanks-quote p {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
}
.rv-thanks-prompt {
  position: relative;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
}
.rv-thanks-actions {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
}
.rv-thanks-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
}
.rv-btn-ghost {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--navy);
}
.rv-btn-ghost:hover { background: #f8fafc; }
.rv-btn-google {
  box-shadow: none;
}
.rv-thanks-tagline {
  position: relative;
  margin: 18px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
  opacity: 0.72;
}
.rv-thanks-card .rv-public-foot {
  color: #94a3b8;
}
@media (max-width: 520px) {
  .rv-preview-banner { flex-direction: column; }
  .rv-opt-row { flex-direction: column; align-items: flex-start; }
  .rv-thanks-actions { grid-template-columns: 1fr; }
  .rv-thanks-card h1 { font-size: 28px; }
  body.rv-thanks-mode {
    background-attachment: scroll;
  }
}

/* —— Shared spreadsheet list pattern (Dashboard dirs, Owners, Clients, etc.) —— */
.sheet {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sheet-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px var(--card-pad);
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.sheet-search {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 380px;
}
.sheet-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  font-size: 12px;
}
.sheet-search input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px 0 34px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  outline: none;
}
.sheet-search input:focus {
  border-color: var(--orange);
  box-shadow: none;
}
.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
  align-items: center;
}
.sheet-seg.seg {
  flex-wrap: wrap;
}
.sheet-filters {
  flex: 1 1 100%;
  border: 0;
  padding: 0;
  margin: 0;
}
.sheet-filters > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 0;
}
.sheet-filters > summary::-webkit-details-marker { display: none; }
.sheet-filters[open] > summary { color: var(--navy); }
.sheet-filters-body {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 4px;
  align-items: center;
}
.sheet-wrap {
  overflow: auto;
  max-height: min(68vh, 720px);
}
.sheet-wrap .table-wrap {
  overflow: visible;
  border: 0;
  box-shadow: none;
}
.sheet-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.sheet-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  font-weight: 600;
  padding: 10px 12px;
  white-space: nowrap;
}
.sheet-wrap tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.sheet-wrap tbody tr:hover td {
  background: #fafafa;
}
.sheet-footer {
  padding: 12px var(--card-pad);
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: #fff;
}
.sheet .pager {
  margin: 0;
  padding: 12px var(--card-pad);
  border-top: 1px solid var(--border);
  background: #fff;
}
.dash-simple {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dash-simple .dash-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.dash-simple .dash-charts {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}
@media (max-width: 980px) {
  .dash-simple .dash-metrics,
  .dash-simple .dash-charts {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .dash-simple .dash-metrics,
  .dash-simple .dash-charts {
    grid-template-columns: 1fr;
  }
  .sheet-toolbar { flex-direction: column; align-items: stretch; }
  .sheet-actions { margin-left: 0; }
  .sheet-search { max-width: none; }
}

/* —— Email templates (simple editor) —— */
.tpl-subject-cell {
  color: var(--muted);
  max-width: 420px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tpl-insert {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.tpl-insert-h {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.tpl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.tpl-chip {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.tpl-chip:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
  background: var(--orange-soft);
}
.tpl-more {
  margin-top: 10px;
}
.tpl-more > summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  list-style: none;
}
.tpl-more > summary::-webkit-details-marker { display: none; }
.tpl-more[open] > summary { color: var(--navy); margin-bottom: 8px; }
.tpl-preview-subject {
  margin: 0 0 10px;
  font-size: 15px;
}
.modal-tpl .field-hint { margin: 0; }
.preview-mail {
  white-space: pre-wrap;
  line-height: 1.55;
  padding: 14px;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
}

/* —— SweetAlert2 (SmartHR-style) —— */
.mm-swal {
  border-radius: var(--radius) !important;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md) !important;
  font-family: "Poppins", sans-serif !important;
  padding: 1.5rem 1.25rem 1.25rem !important;
}
.mm-swal-title {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--navy) !important;
}
.mm-swal-html,
.mm-swal .swal2-html-container {
  font-size: 13px !important;
  color: var(--muted) !important;
  line-height: 1.5 !important;
  text-align: left !important;
  margin: 0.75rem 0 0 !important;
}
.mm-swal-actions {
  gap: 8px !important;
  margin-top: 1.25rem !important;
}
.mm-swal-confirm,
.mm-swal-cancel,
.mm-swal-deny {
  margin: 0 !important;
  box-shadow: none !important;
}
.mm-swal-lead {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 14px;
}
.mm-swal-copy {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}
.mm-swal-keep {
  margin: 10px 0 0;
  padding: 10px 12px;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 12px;
}
.mm-swal-step {
  margin: 12px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--light);
}
.mm-swal .confirm-impact {
  margin: 6px 0 10px;
  padding-left: 1.1rem;
  color: var(--text);
  font-size: 13px;
}
.mm-swal-toast {
  border-radius: var(--radius) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow) !important;
  padding: 0.65rem 0.9rem !important;
  font-size: 13px !important;
}
.mm-swal-toast-title {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--text) !important;
  margin: 0 !important;
  text-align: left !important;
}
.swal2-timer-progress-bar {
  background: var(--orange) !important;
}
.swal2-icon.swal2-success { border-color: var(--green) !important; color: var(--green) !important; }
.swal2-icon.swal2-success [class^=swal2-success-line] { background-color: var(--green) !important; }
.swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(3, 201, 90, 0.3) !important; }
.swal2-icon.swal2-warning { border-color: var(--orange) !important; color: var(--orange) !important; }
.swal2-icon.swal2-error { border-color: var(--red) !important; color: var(--red) !important; }
.swal2-icon.swal2-info { border-color: var(--blue) !important; color: var(--blue) !important; }
.swal2-icon.swal2-question { border-color: var(--muted) !important; color: var(--muted) !important; }
.mm-swal-input,
.swal2-input.mm-swal-input,
.mm-swal .swal2-input {
  width: 100% !important;
  margin: 12px 0 0 !important;
  height: 38px !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  font-size: 13px !important;
  box-shadow: none !important;
}

/* Feature flag: MM.HIDE_CAMPAIGNS_UI — hide leftover campaign columns */
html.hide-campaigns-ui .col-camp,
html.hide-campaigns-ui .met-campaigns,
html.hide-campaigns-ui .camp-count {
  display: none !important;
}

/* Feature flag: MM.HIDE_CREATIVES_UI */
html.hide-creatives-ui .col-art,
html.hide-creatives-ui .creative-list,
html.hide-creatives-ui .art-grid {
  display: none !important;
}
