:root {
  --nav: #101418;
  --gold: #d4b24f;
  --line: #dfe3e8;
  --bg: #f4f6f8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: #222;
  font-family: Inter, Arial, sans-serif;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: 230px;
  padding: 25px 16px;
  background: var(--nav);
  color: #fff;
}

.mainbrand {
  padding: 0 10px 26px;
  font-size: 20px;
  font-weight: 900;
}

.mainbrand small {
  display: block;
  margin-top: 5px;
  color: #868e96;
  font-size: 8px;
  letter-spacing: 1.5px;
}

.viewerRoleBadge {
  display: inline-flex;
  margin-top: 10px;
  padding: 4px 7px;
  border: 1px solid #d4b24f66;
  border-radius: 999px;
  color: #e4cb80;
  font-size: 7px;
  font-style: normal;
  letter-spacing: 1.2px;
}

.viewer-tenant .sidebar { background: #0b2e27; }
.viewer-tenant .sidebar a:hover,
.viewer-tenant .sidebar a.active { background: #15483d; }
.viewer-tenant .pilot { background: #0b6953; }
.viewer-tenant.tenant-read-only .pilot { background: #725b18; }

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar nav > span {
  margin: 16px 10px 8px;
  color: #68717a;
  font-size: 9px;
  letter-spacing: 1.5px;
}

.sidebar a {
  padding: 11px 12px;
  border-radius: 7px;
  color: #aeb5bc;
  font-size: 13px;
  text-decoration: none;
}

.sidebar a:hover,
.sidebar a.active {
  background: #242b32;
  color: #fff;
}

.sidebar form { margin-top: auto; }

.sidebar button {
  padding: 10px;
  border: 0;
  background: transparent;
  color: #818991;
  cursor: pointer;
}

main {
  min-height: 100vh;
  margin-left: 230px;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.hamb { display: none; }

.pilot {
  margin-left: auto;
  padding: 7px 11px;
  border-radius: 20px;
  background: #0d513e;
  color: #fff;
  font-size: 9px;
  letter-spacing: 1px;
}

.tenantModeNotice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid #d7c274;
  border-left: 5px solid var(--gold);
  border-radius: 9px;
  background: #fffaf0;
}
.tenantModeNotice b { color: #40330e; font-size: 11px; white-space: nowrap; }
.tenantModeNotice span { color: #71643f; font-size: 9px; line-height: 1.45; }

.page {
  max-width: 1500px;
  margin: auto;
  padding: 28px;
}

.afnav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 30px;
  padding: 11px 14px;
  border-radius: 9px;
  background: #171c21;
  color: #fff;
}

.afnav > div {
  display: flex;
  flex-direction: column;
  margin-right: auto;
}

.afnav b { font-size: 14px; }

.afnav small {
  margin-top: 2px;
  color: #8c949c;
  font-size: 8px;
}

.afnav a {
  padding: 9px 12px;
  border-radius: 5px;
  color: #aeb5bc;
  font-size: 11px;
  text-decoration: none;
}

.afnav a.active,
.afnav a:hover {
  background: #303840;
  color: #fff;
}

.title h1 {
  margin: 0;
  font-size: 28px;
}

.title p {
  margin: 7px 0 24px;
  color: #737a82;
  font-size: 13px;
}

.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.flow > div,
.panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.flow i {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #f1e7c8;
  color: #866b20;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.flow h2 {
  margin: 13px 0 6px;
  font-size: 15px;
}

.flow p {
  min-height: 28px;
  color: #747b82;
  font-size: 11px;
}

.flow form {
  display: flex;
  gap: 7px;
}

.flow input,
.flow button {
  padding: 9px;
  border: 1px solid #d5d9de;
  border-radius: 5px;
  background: #fff;
  font-size: 10px;
}

.flow button {
  background: #171c21;
  color: #fff;
  cursor: pointer;
}

.panel { margin-bottom: 20px; }

.weeklyDownloads { margin-bottom: 0; }

.weeklyBatchTools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 13px;
  border: 1px solid #e3e6e9;
  border-radius: 8px;
  background: #fafbfc;
}

.weeklyGenerateVideos {
  min-height: 50px;
  padding: 11px 18px;
  border-radius: 7px;
  border: 2px solid var(--gold);
  background: #fff;
  color: #17130a;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}
.weeklyGenerateVideos:disabled { opacity: .42; cursor: not-allowed; }
.weeklyGenerateVideos small { display: block; margin-top: 4px; font-size: 8px; font-weight: 700; opacity: .78; }

.weeklyDownloadSummary,
.weeklyDownloadState {
  margin: 0;
  color: #727a81;
  font-size: 9px;
  line-height: 1.45;
}

.weeklyDownloadState { min-height: 14px; margin: 8px 0; color: #187d56; font-weight: 800; }
.weeklyGenerationProgress {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid #dcc778;
  border-radius: 7px;
  background: #fffaf0;
}
.weeklyGenerationProgress[hidden] { display: none; }
.weeklyGenerationProgress>div { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #332d1d; font-size: 10px; }
.weeklyGenerationProgress strong { font-size: 11px; }
.weeklyGenerationProgress span { min-width: 48px; color: #725d1f; font-weight: 900; text-align: right; }
.weeklyGenerationProgress progress { width: 100%; height: 12px; margin-top: 8px; accent-color: var(--gold); }
.weeklyGenerationProgress.isComplete { border-color: #95ceb5; background: #f1fbf6; }
.batchDownloadLocked { pointer-events: none !important; opacity: .42 !important; cursor: not-allowed !important; }

.weeklyDownloadList { display: grid; gap: 9px; }
.weeklyDownloadRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr);
  align-items: center;
  gap: 16px;
  padding: 12px 13px;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  background: #fff;
}
.weeklyDownloadIdentity { min-width: 0; }
.weeklyDownloadIdentity strong,
.weeklyDownloadIdentity span { display: block; }
.weeklyDownloadIdentity strong { color: #20252a; font-size: 12px; text-transform: capitalize; }
.weeklyDownloadIdentity span { overflow: hidden; margin-top: 4px; color: #737b82; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.weeklyRowActions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.weeklyFileAction {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.weeklyFlyerAction { background: #171c21; color: #fff; }
.weeklyVideoAction { background: var(--gold); color: #17130a; }
.weeklyFileAction.isDisabled,
.weeklyFileAction:disabled { background: #e4e7ea; color: #92999f; cursor: not-allowed; }

.panelhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.panelhead h2 {
  margin: 0;
  font-size: 17px;
}

.panelhead p {
  margin: 4px 0 0;
  color: #7d848b;
  font-size: 10px;
}

.panelhead > span,
.status {
  padding: 5px 8px;
  border-radius: 12px;
  background: #e8f5ee;
  color: #187d56;
  font-size: 8px;
  font-weight: 800;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.flyerCard {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  scroll-margin-top: 76px;
  background: #07152d;
  isolation: isolate;
}

.referenceFlyer,
.exactLayer,
.backgroundContour,
.finalReference {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center;
}

.exactLayer {
  pointer-events: none;
  user-select: none;
}

.exactLayer.accessGuard,
.poster.playing .exactLayer.accessGuard {
  z-index: 101 !important;
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
}

.exactStack,
.backgroundFxStack,
.backgroundContourWindow,
.whiteLightFx {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform-origin: center;
}

.exactStack { isolation: isolate; }

.backgroundFxStack {
  z-index: 1;
  will-change: transform;
}

.backgroundContourWindow {
  z-index: 2;
  pointer-events: none;
}

.backgroundContour {
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

.finalReference {
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

.poster.playing .backgroundFxStack:not(.zoomDisabled) {
  animation: backgroundBreath var(--background-zoom-period, 7s) ease-in-out infinite both;
}

.poster.playing .backgroundContourWindow:not(.effectDisabled) {
  animation: contourActiveWindow var(--active-duration, 7s) linear 1 both;
}

.poster.playing .backgroundContourWindow:not(.effectDisabled) .backgroundContour {
  animation: contourLightPattern var(--light-pattern-duration, 7s) linear infinite;
}

.poster.playing .finalReference {
  animation: finalReferenceReveal 1ms steps(1, end) var(--final-still-delay, 7s) 1 forwards;
}

.backgroundContourWindow.effectDisabled { display: none; }

.whiteLightFx {
  z-index: 100;
  pointer-events: none;
  isolation: isolate;
}

.whiteLightSweep {
  position: absolute;
  display: block;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  will-change: opacity, transform;
}

.whiteLightSweepA {
  top: -8%;
  left: -76%;
  width: 76%;
  height: 116%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.06) 21%, rgba(255,255,255,.45) 43%, rgba(255,255,255,.78) 52%, rgba(255,255,255,.16) 70%, transparent 100%);
  filter: blur(9px);
  transform: rotate(-13deg);
}

.whiteLightSweepB {
  top: 7%;
  left: 100%;
  width: 122%;
  height: 86%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.52) 0%, rgba(255,255,255,.31) 20%, rgba(255,255,255,.12) 49%, rgba(255,255,255,.035) 69%, transparent 82%);
  filter: blur(13px);
}

.poster.playing .whiteLightFx:not(.effectDisabled) .whiteLightSweepA {
  animation: whiteLightPassA var(--white-light-first-duration, 1.2s) linear calc(var(--final-still-delay, 7s) + var(--white-light-first-offset, .05s)) 1 both;
}

.poster.playing .whiteLightFx:not(.effectDisabled) .whiteLightSweepB {
  animation: whiteLightPassB var(--white-light-second-duration, 1.15s) linear calc(var(--final-still-delay, 7s) + var(--white-light-second-offset, 1.35s)) 1 both;
}

.whiteLightFx.effectDisabled { display: none; }

.exactFlyerMissing {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
}

.poster[aria-busy="true"]::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 100;
  padding: 6px 9px;
  border: 1px solid #ffffff55;
  border-radius: 20px;
  background: #101418cc;
  color: #fff;
  content: "Chargement des calques…";
  font-size: 8px;
}

.poster.playing .exactLayer.motion-fade,
.poster.playing .exactLayer.motion-zoom,
.poster.playing .exactLayer.motion-rise,
.poster.playing .exactLayer.motion-slide,
.poster.playing .exactLayer.motion-pulse {
  animation-delay: var(--motion-delay, 0s);
  animation-duration: var(--motion-duration, 1s);
  animation-fill-mode: both;
  animation-iteration-count: 1;
}

.poster.playing .exactLayer.motion-fade {
  animation-name: layerFade;
  animation-timing-function: ease-out;
}

.poster.playing .exactLayer.motion-zoom {
  animation-name: layerZoom;
  animation-timing-function: ease-in-out;
}

.poster.playing .exactLayer.motion-rise {
  animation-name: layerRise;
  animation-timing-function: cubic-bezier(.2, .8, .2, 1);
}

.poster.playing .exactLayer.motion-slide {
  animation-name: layerSlidePosition, layerSlideOpacity;
  animation-timing-function: cubic-bezier(.333333, 0, .666667, 1), linear;
}

.poster.playing .exactLayer.motion-pulse {
  animation-name: layerPulse;
  animation-timing-function: ease-in-out;
}

@keyframes layerFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes layerZoom {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes layerRise {
  from { opacity: 0; transform: translateY(12%); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes layerSlidePosition {
  from { transform: translateX(-18%); }
  to { transform: translateX(0); }
}

@keyframes layerSlideOpacity {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes layerPulse {
  0% { opacity: 0; transform: scale(.92); }
  65% { opacity: 1; transform: scale(1.045); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes backgroundBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(var(--background-zoom-scale, 1.15)); }
}

/* Motif V6 validé : un passage plein puis un passage à demi-intensité en 7 s. */
@keyframes contourLightPattern {
  0%, 4.285% { opacity: 0; }
  21.429%, 32.857% { opacity: 1; }
  50%, 55.714% { opacity: 0; }
  72.857%, 78.571% { opacity: .5; }
  97.143%, 100% { opacity: 0; }
}

@keyframes contourActiveWindow {
  0%, 99.9% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes finalReferenceReveal {
  from, to { opacity: 1; }
}

/* V4 validé : large passage blanc, second voile plus doux, puis fin propre. */
@keyframes whiteLightPassA {
  0% { opacity: 0; transform: translate3d(0,0,0) rotate(-13deg); }
  10% { opacity: var(--white-light-first-opacity, 1); }
  85.833% { opacity: var(--white-light-first-opacity, 1); }
  100% { opacity: 0; transform: translate3d(232%,0,0) rotate(-13deg); }
}

@keyframes whiteLightPassB {
  0% { opacity: 0; transform: translate3d(0,0,0) rotate(8deg); }
  13.913% { opacity: var(--white-light-second-opacity, 1); }
  75.652% { opacity: var(--white-light-second-opacity, 1); }
  100% { opacity: 0; transform: translate3d(-182%,5%,0) rotate(8deg); }
}

.cardbody { padding: 14px; }

.cardbody h3 {
  margin: 10px 0 4px;
  font-size: 13px;
}

.cardbody > p {
  color: #788087;
  font-size: 10px;
}

.openEditor,
.exportBtn {
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 5px;
  background: #171c21;
  color: #fff;
  font-size: 10px;
  cursor: pointer;
}

.openEditor:disabled,
.exportBtn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.layers {
  margin-top: 13px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.editorTabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 0 10px;
  padding: 4px;
  border-radius: 7px;
  background: #edf0f2;
}

.editorTab {
  padding: 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #70777e;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

.editorTab.isActive {
  background: #171c21;
  color: #fff;
  box-shadow: 0 2px 8px #10141820;
}

.editorTab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.editorTabPanel[hidden] { display: none; }

.whiteLightSetting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 8px;
  border-bottom: 1px solid #edf0f2;
}

.whiteLightCopy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.whiteLightCopy b {
  color: #252a2e;
  font-size: 9px;
}

.whiteLightCopy span,
.whiteLightCopy small {
  color: #737b82;
  font-size: 7px;
  line-height: 1.4;
}

.whiteLightCopy small { color: #969ca1; }

.toggleSwitch {
  position: relative;
  display: block;
  width: 36px;
  height: 21px;
  flex: 0 0 auto;
  cursor: pointer;
}

.toggleSwitch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.toggleSwitch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #c9ced3;
  transition: background .18s ease;
}

.toggleSwitch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px #0003;
  content: "";
  transition: transform .18s ease;
}

.toggleSwitch input:checked + span { background: var(--gold); }
.toggleSwitch input:checked + span::after { transform: translateX(15px); }
.toggleSwitch input:focus-visible + span { outline: 2px solid #7e661f; outline-offset: 2px; }

.whiteLightSample {
  position: relative;
  overflow: hidden;
  height: 52px;
  margin: 9px 8px 2px;
  border-radius: 6px;
  background: linear-gradient(135deg,#09101a,#26323b);
  isolation: isolate;
}

.whiteLightSample i {
  position: absolute;
  top: -55%;
  width: 34%;
  height: 210%;
  background: linear-gradient(90deg,transparent,#ffffffc9,transparent);
  filter: blur(5px);
  opacity: .72;
  transform: rotate(-13deg);
}

.whiteLightSample i:first-child { left: 8%; }
.whiteLightSample i:nth-child(2) { right: 3%; opacity: .36; }
.whiteLightSample span {
  position: absolute;
  right: 8px;
  bottom: 6px;
  z-index: 2;
  color: #ffffffbd;
  font-size: 6px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .7px;
}

.layerControl {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 90px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #edf0f2;
}

.layerControl input { accent-color: var(--gold); }

.layerControl > label {
  min-width: 0;
  font-size: 9px;
  font-weight: 800;
}

.layerControl small {
  display: block;
  margin-top: 2px;
  color: #92989e;
  font-size: 7px;
  font-weight: 400;
}

.layerControl select {
  min-width: 0;
  padding: 5px;
  border: 1px solid #dde1e5;
  background: #fff;
  font-size: 8px;
}

.exactNotice {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 2px 0 7px !important;
  padding: 8px;
  border-left: 3px solid var(--gold);
  background: #fbf8ef;
  color: #555 !important;
  line-height: 1.35;
}

.exactNotice b { color: #28220f; }
.exactNotice span { font-size: 8px; }

.videoDuration {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  align-items: center;
  gap: 4px 10px;
  margin-top: 11px;
  color: #353b40;
  font-size: 9px;
  font-weight: 800;
}

.videoDuration select {
  width: 100%;
  padding: 7px;
  border: 1px solid #d8dde2;
  border-radius: 5px;
  background: #fff;
  color: #24292e;
  font-size: 9px;
}

.videoDuration small {
  grid-column: 1 / -1;
  color: #858c92;
  font-size: 7px;
  font-weight: 400;
}

.layerLoadState {
  min-height: 14px;
  margin: 7px 0 !important;
  color: #697178 !important;
  font-size: 8px !important;
}

.videoActions {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.videoActions .exportBtn {
  margin: 0;
  background: var(--gold);
  color: #17130a;
  font-weight: 900;
}

.videoDownload,
.videoPhotos {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 5px;
  background: #171c21;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.videoPhotos { border: 2px solid var(--gold); background: #fff; color: #17130a; }
.videoDownload.isDisabled,
.videoPhotos.isDisabled {
  opacity: .42;
  cursor: not-allowed;
}
.videoPhotosHint { color: #697178; font-size: 8px; line-height: 1.4; text-align: center; }

.exportState {
  min-height: 15px;
  color: #5f686f !important;
  font-size: 8px !important;
  text-align: center;
}

.staticDownload,
.staticUnavailable {
  display: block;
  width: 100%;
  margin-bottom: 7px;
  padding: 10px;
  border: 1px solid #d8dde2;
  border-radius: 5px;
  background: #fff;
  color: #222;
  font-size: 10px;
  text-align: center;
  text-decoration: none;
}

.staticDownload:hover {
  border-color: var(--gold);
  background: #fffaf0;
}

.staticUnavailable { color: #8a9198; }

.flyerGenerateForm { margin: 0 0 7px; }
.generateFlyer {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--gold);
  border-radius: 5px;
  background: #fffaf0;
  color: #5a4815;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.generateFlyer:hover { background: #f6e9bd; }

.flyerQuickSettings {
  margin: 0 0 7px;
  border: 1px solid #d8dde2;
  border-radius: 5px;
  background: #fff;
}
.flyerQuickSettings>summary {
  padding: 10px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  list-style-position: inside;
}
.flyerQuickBody {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
  border-top: 1px solid #edf0f2;
}
.flyerQuickBody p { display: flex; flex-direction: column; margin: 8px 0 0 !important; }
.flyerQuickBody p b { color: #252a2e; font-size: 10px; }
.flyerQuickBody p span { margin-top: 2px; color: #858c92; font-size: 7px; }
.flyerQuickBody form { display: grid; gap: 6px; }
.flyerQuickBody label { color: #555; font-size: 8px; font-weight: 800; }
.flyerQuickBody select,.flyerQuickBody input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 7px;
  border: 1px solid #d8dde2;
  border-radius: 4px;
  background: #fff;
  font-size: 8px;
}
.partyQuickForm { padding-bottom: 8px; border-bottom: 1px solid #edf0f2; }
.partyQuickForm .partyLogoUrl { display: none; }
.partyQuickForm:has(select[name="party_title_logo_mode"] option[value="custom"]:checked) .partyLogoUrl { display: block; }
.promoStampFields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 8px;
  min-width: 0;
  margin: 2px 0;
  padding: 10px;
  border: 1px solid #e1d5ad;
  border-radius: 6px;
  background: #fffdf6;
}
.promoStampFields legend { padding: 0 5px; color: #5a4815; font-size: 9px; font-weight: 900; }
.promoStampLines { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.promoStampHelp { grid-column: 1 / -1; margin: 0 !important; color: #7d7151 !important; }
.promoStampFields input:disabled { background: #f0f1f2; color: #92989e; }
.promoStampFields input[aria-invalid="true"] { border-color: #b32323; }
.tenantPromoStampForm {
  display: grid;
  gap: 8px;
  margin: 0 0 8px;
  padding: 10px;
  border: 1px solid #d7c274;
  border-radius: 7px;
  background: #fffaf0;
}
.tenantPromoStampIntro { display: grid; gap: 3px; }
.tenantPromoStampIntro b { color: #3d3212; font-size: 10px; }
.tenantPromoStampIntro small { color: #776b49; font-size: 8px; line-height: 1.4; }
.tenantPromoStampForm .promoStampFields { margin: 0; background: #fff; }
.tenantPromoStampForm label { color: #555; font-size: 8px; font-weight: 800; }
.tenantPromoStampForm select,
.tenantPromoStampForm input:not([type="hidden"]) {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 7px;
  border: 1px solid #d8dde2;
  border-radius: 4px;
  background: #fff;
  font-size: 8px;
}
.tenantPromoStampForm > button { min-height: 38px; }
.flyerQuickBody button,.quickSettingsLink {
  display: block;
  padding: 8px;
  border: 0;
  border-radius: 4px;
  background: #f3f4f5;
  color: #333;
  cursor: pointer;
  font-size: 8px;
  text-align: center;
  text-decoration: none;
}
.flyerQuickBody button { background: #171c21; color: #fff; }

.assetgrid,
.djgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.assetgrid figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.assetgrid img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.assetgrid figcaption {
  padding: 8px;
  font-size: 9px;
}

.fondsCreateForm,
.seriesSettings,
.backgroundUpload,
.backgroundFields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fondsCreateForm { align-items: end; }
.fondsCreateForm label,
.seriesSettings label,
.backgroundUpload label,
.backgroundFields label,
.replaceBackground label {
  color: #555;
  font-size: 9px;
  font-weight: 800;
}
.fondsCreateForm input,.fondsCreateForm select,
.seriesSettings input,.seriesSettings select,
.backgroundUpload input,.backgroundFields input,.backgroundFields select,
.replaceBackground input {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 9px;
  border: 1px solid #d8dde2;
  border-radius: 5px;
  background: #fff;
  font: inherit;
  font-weight: 400;
}
.fondsCreateForm button,.backgroundUpload button,.replaceBackground button {
  align-self: end;
  padding: 10px;
  border: 0;
  border-radius: 5px;
  background: #171c21;
  color: #fff;
  cursor: pointer;
  font-size: 9px;
}
.fondsCreateForm button:disabled,.backgroundUpload button:disabled,.backgroundOrder button:disabled { opacity: .4; cursor: not-allowed; }
.fondsComplete,.fondsEmpty { margin: 0; padding: 18px; border-radius: 7px; background: #f7f8f9; color: #767d84; font-size: 10px; }
.fondZeroPanel { padding: 0; }
.fondZeroPanel>summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; cursor: pointer; list-style: none; }
.fondZeroPanel>summary span { display: flex; flex-direction: column; }
.fondZeroPanel>summary b { font-size: 14px; }
.fondZeroPanel>summary small { margin-top: 4px; color: #7b838a; font-size: 9px; }
.fondZeroPanel>summary em { padding: 5px 8px; border-radius: 12px; background: #f1e7c8; color: #725d1f; font-size: 8px; font-style: normal; font-weight: 800; }
.fondZeroBody { display: grid; grid-template-columns: minmax(300px,1fr) minmax(260px,.8fr); gap: 15px; padding: 18px 20px 20px; border-top: 1px solid var(--line); }
.fondZeroPreview { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 15px; align-items: center; }
.fondZeroPreview img { display: block; width: 120px; aspect-ratio: 9 / 16; object-fit: contain; border-radius: 6px; background: #101418; }
.fondZeroPreview div { display: flex; flex-direction: column; gap: 5px; }
.fondZeroPreview b { font-size: 13px; }
.fondZeroPreview span,.fondZeroPreview p { margin: 0; color: #7b838a; font-size: 9px; line-height: 1.45; }
.fondZeroUpload { display: grid; align-content: center; gap: 8px; padding: 13px; border: 1px solid #e1e5e8; border-radius: 7px; background: #fafbfb; }
.fondZeroUpload label { color: #555; font-size: 9px; font-weight: 800; }
.fondZeroUpload input { display: block; width: 100%; margin-top: 7px; font-size: 8px; }
.fondZeroUpload small { color: #7b838a; font-size: 8px; }
.fondZeroReset { grid-column: 1 / -1; padding: 0; }
.fondsWarning { margin: 0 0 16px; padding: 11px; border-left: 4px solid #d49a2f; border-radius: 5px; background: #fff5df; color: #6d521c; font-size: 9px; }
.fondsDayHead { align-items: flex-start; }
.fondsDayHead>a { color: #725d1f; font-size: 9px; font-weight: 800; text-decoration: none; }
.fondsSeriesTools { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,.8fr); gap: 14px; margin-bottom: 18px; }
.seriesSettings,.backgroundUpload { align-content: start; padding: 13px; border: 1px solid #e1e5e8; border-radius: 7px; background: #fafbfb; }
.seriesSettings .primary,.backgroundUpload button,.backgroundUpload small { grid-column: 1 / -1; }
.backgroundUpload small { color: #7b838a; font-size: 8px; }
.toggleLine { display: flex !important; align-items: center; gap: 7px; align-self: end; min-height: 35px; }
.toggleLine input { width: auto !important; margin: 0 !important; }
.backgroundManageGrid { display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 13px; }
.backgroundManageCard { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.backgroundManageCard.inactive { background: #f4f5f5; opacity: .76; }
.backgroundPreview { position: relative; background: #111; }
.backgroundPreview img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.backgroundPreview span { position: absolute; right: 8px; bottom: 8px; padding: 5px 7px; border-radius: 12px; background: rgba(0,0,0,.72); color: #fff; font-size: 8px; font-weight: 800; }
.backgroundFields { grid-template-columns: minmax(0,1fr) 72px; padding: 11px; }
.backgroundFields .primary { align-self: end; }
.backgroundOrder { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 11px 10px; }
.backgroundOrder form { margin: 0; }
.backgroundOrder button { width: 100%; padding: 7px; border: 1px solid #d8dde2; border-radius: 4px; background: #fff; cursor: pointer; font-size: 8px; }
.replaceBackground { margin: 0 11px 10px; padding: 9px; border: 1px solid #e2e5e8; border-radius: 5px; background: #fafbfb; }
.replaceBackground summary { cursor: pointer; font-size: 8px; font-weight: 800; }
.replaceBackground form { display: grid; gap: 7px; margin-top: 8px; }
.backgroundDelete { padding: 0 11px 11px; }
.seriesDelete { margin-top: 16px; padding: 0; }

.djgrid article {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.djgrid article > div {
  display: grid;
  place-items: center;
  height: 170px;
  background: #eef0f2;
}

.djgrid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.djgrid h3 {
  margin: 9px 0 3px;
  font-size: 12px;
}

.djgrid p {
  color: #888;
  font-size: 8px;
}

.venue {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 25px;
}

.logoBox {
  display: grid;
  place-items: center;
  height: 260px;
  background: #111820;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.logoBox img {
  max-width: 85%;
  max-height: 85%;
}

.venue dl { margin: 0; }

.venue dt {
  margin-top: 12px;
  color: #8a9096;
  font-size: 9px;
  letter-spacing: 1px;
}

.venue dd {
  margin: 5px 0;
  font-size: 12px;
}

.venue dd i {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin-right: 7px;
  border: 1px solid #ccc;
  border-radius: 50%;
}

.venue pre {
  padding: 10px;
  background: #f5f6f7;
  font-size: 9px;
  white-space: pre-wrap;
}

.empty {
  padding: 50px;
  color: #8a9198;
  text-align: center;
}

.flash {
  margin: 0 0 18px;
  padding: 12px 15px;
  border: 1px solid;
  border-radius: 7px;
  font-size: 12px;
}
.flash.success { border-color: #9dd5b9; background: #eaf8f1; color: #126540; }
.flash.error { border-color: #e2aaaa; background: #fff1f1; color: #9a2424; }
.actionTitle { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.primaryLink,.quietLink,.whatsappButton,.missingPhone { display: inline-block; padding: 11px 14px; border-radius: 6px; font-size: 11px; text-decoration: none; }
.primaryLink { background: #171c21; color: #fff; }
.quietLink { border: 1px solid var(--line); background: #fff; color: #333; }
.holidayEveSummary { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 11px; margin-bottom: 15px; padding: 13px; border: 1px solid #e4c469; border-radius: 8px; background: #fff8df; color: #644b08; }
.holidayEveIcon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #b38816; color: #fff; font-size: 16px; font-weight: 950; }
.holidayEveSummary b { font-size: 12px; }
.holidayEveSummary p { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 6px 0 0; font-size: 10px; line-height: 1.4; }
.holidayEveSummary p strong { text-transform: capitalize; }
.holidayEveSummary small { display: block; margin-top: 7px; color: #836d32; font-size: 8px; }
.usualHours { margin-bottom: 15px; border: 1px solid #dfd2ab; border-radius: 8px; background: #fffaf0; }
.usualHours>summary { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; cursor: pointer; list-style: none; }
.usualHours>summary span { display: flex; min-width: 0; align-items: baseline; gap: 10px; }
.usualHours>summary b { color: #4e4018; font-size: 11px; }
.usualHours>summary small,.usualHours>summary em { color: #837143; font-size: 9px; font-style: normal; }
.usualHours[open]>summary { border-bottom: 1px solid #eadfbf; }
.usualHours form { display: grid; grid-template-columns: minmax(130px,1fr) minmax(130px,1fr) auto; gap: 10px; align-items: end; padding: 12px 13px 6px; }
.usualHours label { color: #555; font-size: 9px; font-weight: 800; }
.usualHours input { display: block; width: 100%; margin-top: 5px; padding: 9px; border: 1px solid #d8dde2; border-radius: 5px; background: #fff; font: inherit; font-weight: 400; }
.usualHours>p { margin: 0; padding: 5px 13px 12px; color: #776b4d; font-size: 9px; line-height: 1.45; }
.weekTools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.weekTools a { color: #333; font-size: 10px; text-decoration: none; }
.weekTools form { display: flex; gap: 6px; }
.weekTools input,.weekTools button { padding: 8px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 10px; }
.weekBoard { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 14px; margin-bottom: 20px; }
.weekDay { min-width: 0; min-height: 210px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.weekDay>header { position: static; display: flex; justify-content: space-between; height: auto; padding: 0 0 9px; border-bottom: 1px solid var(--line); background: transparent; }
.weekDay>header b { font-size: 11px; text-transform: capitalize; }
.weekDay>header span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #f1e7c8; color: #80671d; font-size: 9px; }
.holidayEveDayAlert { display: flex; flex-direction: column; gap: 2px; margin-top: 9px; padding: 9px 10px; border-left: 3px solid #b38816; border-radius: 5px; background: #fff8df; color: #654d0e; }
.holidayEveDayAlert b { font-size: 9px; }
.holidayEveDayAlert span { font-size: 8px; }
.savedBooking { margin-top: 10px; }
.bookingItem { margin-top: 9px; border: 1px solid #e5e8eb; border-radius: 6px; }
.bookingItem>summary { display: flex; justify-content: space-between; gap: 5px; padding: 11px; cursor: pointer; list-style: none; }
.bookingItem>summary span { display: flex; min-width: 0; flex-direction: column; }
.bookingItem>summary b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.bookingItem>summary small,.bookingItem>summary em { color: #7d858c; font-size: 8px; font-style: normal; }
.dayCreate { margin-top: 12px; border: 1px dashed #b99a45; border-radius: 8px; background: #fffcf3; }
.dayCreate>summary { display: flex; min-height: 58px; flex-direction: column; justify-content: center; padding: 13px; color: #574618; cursor: pointer; list-style: none; }
.dayCreate>summary b { font-size: 11px; }
.dayCreate>summary span { margin-top: 4px; color: #867957; font-size: 8px; }
.dayCreate>summary:focus-visible { outline: 3px solid #d4b24f; outline-offset: 2px; }
.dayCreate[open]>summary { border-bottom: 1px solid #eadfbf; }
.emptyDayCreate>summary { min-height: 135px; align-items: center; text-align: center; }
.emptyDayCreate[open]>summary { min-height: 58px; align-items: flex-start; text-align: left; }
.manageForm { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.manageForm.compact { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 9px; border-top: 1px solid #edf0f2; }
.manageForm.single { grid-template-columns: 1fr; }
.manageForm label,.manageForm fieldset { min-width: 0; margin: 0; color: #555; font-size: 9px; font-weight: 800; }
.manageForm input,.manageForm select,.manageForm textarea { display: block; width: 100%; margin-top: 5px; padding: 9px; border: 1px solid #d8dde2; border-radius: 5px; background: #fff; font: inherit; font-weight: 400; }
.manageForm textarea { min-height: 70px; resize: vertical; }
.manageForm fieldset { padding: 9px; border: 1px solid #d8dde2; border-radius: 5px; }
.span2 { grid-column: span 2; }
.djPicker legend { padding: 0 5px; color: #31363b; font-size: 10px; }
.checkgrid { display: grid; grid-template-columns: repeat(auto-fit,minmax(118px,1fr)); gap: 8px; margin-top: 6px; }
.checkgrid .djChoice { display: flex; min-height: 46px; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid #d8dde2; border-radius: 8px; background: #fff; color: #252a2e; cursor: pointer; font-size: 10px; font-weight: 750; }
.checkgrid .djChoice:has(input:checked) { border-color: #b28c22; background: #fff5d7; box-shadow: inset 0 0 0 1px #d4b24f; }
.checkgrid input { width: 20px; height: 20px; flex: 0 0 auto; margin: 0; accent-color: #9b7712; }
.djSelectionHelp,.noDjFiles { margin: 8px 0 0; color: #7d858c; font-size: 8px; font-weight: 500; }
.djSelectionHelp.isError { color: #a02c2c; font-weight: 800; }
.bookingOptions { border: 1px solid #e1e5e8; border-radius: 7px; background: #fafbfb; }
.bookingOptions>summary { padding: 10px; color: #666e74; cursor: pointer; font-size: 9px; font-weight: 800; }
.bookingOptions>div { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 0 10px 10px; }
.primary { align-self: end; padding: 10px 12px; border: 0; border-radius: 5px; background: #171c21; color: #fff; cursor: pointer; font-size: 10px; }
.dangerForm { padding: 0 9px 9px; }
.dangerForm button { border: 0; background: transparent; color: #a02c2c; cursor: pointer; font-size: 8px; }
.bookingWhatsapp { margin-top: 7px; padding: 10px; border: 1px solid #b9e1ca; border-radius: 7px; background: #f1fbf5; }
.bookingWhatsapp h4 { margin: 0; color: #176640; font-size: 10px; }
.bookingWhatsapp>p { margin: 4px 0 8px; color: #4e6c5d; font-size: 8px; line-height: 1.4; }
.bookingWhatsapp article+article { margin-top: 9px; padding-top: 9px; border-top: 1px solid #cfe8d9; }
.bookingWhatsapp article>b { display: block; margin-bottom: 5px; font-size: 9px; }
.bookingWhatsapp textarea { display: block; width: 100%; min-height: 92px; margin: 0 0 7px; padding: 8px; border: 1px solid #cfe1d7; border-radius: 5px; background: #fff; font: 8px/1.45 monospace; resize: vertical; }
.bookingWhatsapp .whatsappButton,.bookingWhatsapp .missingPhone { width: 100%; padding: 9px; font-size: 9px; text-align: center; }
.bookingWhatsapp.isUnavailable { border-color: #e4d4a5; background: #fff9e9; }
.bookingWhatsapp.isUnavailable h4,.bookingWhatsapp.isUnavailable>p { color: #785e17; }
.senderNotice { margin-bottom: 18px; padding: 16px; border-left: 4px solid #26a269; border-radius: 7px; background: #eaf8f1; }
.senderNotice b { font-size: 13px; }
.senderNotice p { margin: 6px 0 0; color: #416253; font-size: 10px; line-height: 1.5; }
.whatsappGrid,.djManageGrid { display: grid; grid-template-columns: repeat(auto-fill,minmax(290px,1fr)); gap: 14px; }
.whatsappCard,.djManageCard { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.whatsappCard>header { position: static; display: flex; justify-content: space-between; height: auto; padding: 0; border: 0; }
.whatsappCard h2 { margin: 0; font-size: 14px; }
.whatsappCard header p { margin: 4px 0 0; color: #737a82; font-size: 9px; }
.whatsappCard header span { font-size: 9px; }
.whatsappCard textarea { width: 100%; min-height: 165px; margin: 13px 0; padding: 11px; border: 1px solid #dce1e4; background: #fafbfb; font: 10px/1.5 monospace; resize: vertical; }
.whatsappButton { width: 100%; background: #1c9b5f; color: #fff; text-align: center; }
.missingPhone { width: 100%; background: #fff4e5; color: #8a5413; text-align: center; }
.djManageCard { display: grid; grid-template-columns: 105px 1fr; gap: 14px; }
.djPhoto { display: grid; place-items: center; height: 130px; background: #eef0f2; }
.djPhoto img { width: 100%; height: 100%; object-fit: contain; }
.djManageCard .dangerForm { grid-column: 2; padding: 0; }
.phoneField small { display: block; margin-top: 4px; color: #7b838a; font-size: 8px; font-weight: 400; }

.venueProfilePanel {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
}
.venueIdentity p { color: #798087; font-size: 9px; line-height: 1.5; }
.venueSettingsForm { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.venueSettingsForm>fieldset { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; margin: 0; padding: 15px; border: 1px solid #dfe3e8; border-radius: 7px; }
.venueSettingsForm legend { padding: 0 6px; font-size: 11px; font-weight: 900; }
.venueSettingsForm label,.structuredHours label,.venueDayForm label { min-width: 0; color: #555; font-size: 9px; font-weight: 800; }
.venueSettingsForm input,.venueSettingsForm select,.venueSettingsForm textarea,.venueDayForm input,.venueDayForm select { display: block; width: 100%; margin-top: 5px; padding: 9px; border: 1px solid #d8dde2; border-radius: 5px; background: #fff; font: inherit; font-weight: 400; }
.venueSettingsForm input[type="color"] { height: 37px; padding: 3px; }
.venueSettingsForm small,.venueDayForm small { display: block; margin-top: 4px; color: #858c92; font-size: 8px; font-weight: 400; }
.iconVisibility { display: flex; flex-wrap: wrap; gap: 8px 13px; align-items: center; padding-top: 7px; }
.iconVisibility b { width: 100%; font-size: 9px; }
.iconVisibility>small { width: 100%; }
.iconVisibility label { display: flex; align-items: center; gap: 5px; font-weight: 400; }
.iconVisibility input { width: auto; margin: 0; }
.structuredHours { padding: 12px; border: 1px solid #dfe3e8; border-radius: 7px; }
.structuredHours summary { cursor: pointer; font-size: 10px; font-weight: 800; }
.structuredHours label { display: block; margin-top: 10px; }
.structuredHours textarea { min-height: 120px; font-family: monospace; }
.venueSave { grid-column: 1 / -1; justify-self: start; }
.venueDaysGrid { display: grid; grid-template-columns: repeat(auto-fill,minmax(310px,1fr)); gap: 12px; }
.venueDay { border: 1px solid #dfe3e8; border-radius: 7px; background: #fff; }
.venueDay>summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px; cursor: pointer; list-style: none; }
.venueDay>summary span { display: flex; flex-direction: column; }
.venueDay>summary b { font-size: 12px; }
.venueDay>summary small,.venueDay>summary em { margin-top: 2px; color: #858c92; font-size: 8px; font-style: normal; }
.venueDayForm { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 13px; border-top: 1px solid #edf0f2; }
.venueDayForm .primary { grid-column: 1 / -1; justify-self: start; }
.venueDayForm .promoStampFields { grid-column: 1 / -1; }
.partyLogoManager { display: grid; grid-template-columns: 86px minmax(0,1fr); gap: 10px; margin: 0 13px 13px; padding: 11px; border: 1px solid #e2e5e8; border-radius: 6px; background: #fafbfb; }
.partyLogoManager>div:first-child { display: grid; place-items: center; min-height: 72px; border-radius: 5px; background: #111; color: var(--gold); font-size: 9px; font-weight: 900; text-align: center; }
.partyLogoManager img { display: block; width: 100%; max-height: 90px; object-fit: contain; }
.partyLogoManager>form { display: grid; gap: 7px; }
.partyLogoManager label { color: #555; font-size: 8px; font-weight: 800; }
.partyLogoManager input[type="file"] { display: block; width: 100%; margin-top: 5px; font-size: 8px; }
.partyLogoManager small { display: block; margin-top: 4px; color: #858c92; font-size: 7px; font-weight: 400; }
.partyLogoManager .primary { justify-self: start; }
.partyLogoActions { grid-column: 1 / -1; display: flex !important; justify-content: flex-end; gap: 7px; min-height: 0 !important; background: transparent !important; }
.partyLogoActions form { margin: 0; }
.partyLogoActions button { padding: 6px 8px; border: 1px solid #d8dde2; border-radius: 4px; background: #fff; color: #555; cursor: pointer; font-size: 7px; }
.venueReset { padding: 0 13px 13px; }

.login {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: #101418;
}

.login form {
  width: min(390px, 90vw);
  padding: 35px;
  border-radius: 10px;
  background: #fff;
}

.login form > span {
  color: #8e762f;
  font-size: 8px;
  letter-spacing: 2px;
}

.login h1 {
  margin: 16px 0;
  font-size: 38px;
  line-height: .9;
}

.login h1 em { color: var(--gold); }

.login p {
  color: #777;
  font-size: 12px;
}

.login label {
  display: block;
  margin-top: 14px;
  font-size: 9px;
  font-weight: 800;
}

.login input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid #d9dde1;
}

.login button {
  width: 100%;
  margin-top: 20px;
  padding: 13px;
  border: 0;
  background: #171c21;
  color: #fff;
  cursor: pointer;
}

.matchPageTitle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.matchSeason {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid #e3d49e;
  border-radius: 999px;
  background: #fff9e8;
  color: #715915;
  font-size: 9px;
  font-weight: 900;
}

.matchBackgroundPanel { margin-bottom: 16px; padding-bottom: 16px; }
.matchBackgroundPanel>.panelhead p { margin: 4px 0 0; color: #747c83; font-size: 9px; line-height: 1.45; }
.matchBackgroundGrid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 15px; }
.matchBackgroundCard { display: grid; min-width: 0; grid-template-columns: 132px minmax(0,1fr); overflow: hidden; border: 1px solid #dfe3e8; border-radius: 9px; background: #fafbfc; }
.matchBackgroundPreview { position: relative; width: 132px; aspect-ratio: 9 / 16; align-self: start; overflow: hidden; margin: 0; background: #101418; }
.matchBackgroundPreview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.matchBackgroundPreview figcaption { position: absolute; inset: auto 7px 7px; padding: 5px 7px; border-radius: 999px; background: rgba(16,20,24,.82); color: #fff; font-size: 7px; font-weight: 900; text-align: center; }
.matchBackgroundPreview figcaption.isCustom { background: rgba(23,102,64,.92); }
.matchBackgroundBody { display: flex; min-width: 0; flex-direction: column; gap: 11px; padding: 13px; }
.matchBackgroundCopy h3 { margin: 0; font-size: 12px; line-height: 1.25; }
.matchBackgroundCopy p { margin: 5px 0 0; color: #687078; font-size: 8px; line-height: 1.45; }
.matchBackgroundCopy small { display: block; margin-top: 5px; color: #8b9298; font-size: 7px; font-weight: 800; }
.matchBackgroundReplace { display: grid; gap: 7px; margin-top: auto; }
.matchBackgroundReplace label { min-width: 0; color: #555e65; font-size: 8px; font-weight: 850; }
.matchBackgroundReplace input[type="file"] { display: block; width: 100%; max-width: 100%; margin-top: 6px; color: #6d757c; font-size: 8px; }
.matchBackgroundReplace .primary { width: 100%; min-height: 40px; }
.matchBackgroundReplace>small { color: #858c92; font-size: 7px; line-height: 1.4; }
.matchBackgroundRestore { margin: 0; }
.matchBackgroundRestore button { width: 100%; min-height: 36px; padding: 8px; border: 1px solid #d6dade; border-radius: 5px; background: #fff; color: #5d5130; cursor: pointer; font-size: 8px; font-weight: 850; }

.matchCalendarAlerts { margin-bottom: 16px; padding-bottom: 15px; }
.matchCalendarAlertGrid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; margin-top: 15px; }
.matchCalendarAlert {
  display: flex;
  min-width: 0;
  min-height: 186px;
  flex-direction: column;
  padding: 14px;
  border: 1px solid #e1e4e7;
  border-top: 4px solid #b79638;
  border-radius: 9px;
  background: #fff;
}
.matchCalendarAlert-today { border-top-color: #c37b13; background: #fffaf0; }
.matchCalendarAlert-watching { border-top-color: #3475a9; background: #f5faff; }
.matchCalendarAlert-updated { border-top-color: #24815d; background: #f4fbf7; }
.matchCalendarAlertTop { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.matchCalendarAlertIcon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #f4ead0; color: #755913; font-size: 13px; font-weight: 950; }
.matchCalendarAlert-today .matchCalendarAlertIcon { background: #fce8ca; color: #8a5200; }
.matchCalendarAlert-watching .matchCalendarAlertIcon { background: #deedf9; color: #285f8b; }
.matchCalendarAlert-updated .matchCalendarAlertIcon { background: #d9f0e4; color: #176641; }
.matchCalendarAlertBadge { padding: 6px 8px; border-radius: 999px; background: #f3f1eb; color: #685728; font-size: 8px; font-weight: 950; white-space: nowrap; }
.matchCalendarAlert-watching .matchCalendarAlertBadge { background: #e3f0fa; color: #285f8b; }
.matchCalendarAlert-updated .matchCalendarAlertBadge { background: #dff2e8; color: #176641; }
.matchCalendarAlert h3 { margin: 13px 0 4px; font-size: 11px; line-height: 1.3; }
.matchCalendarAlert time { color: #171c21; font-size: 10px; font-weight: 900; text-transform: capitalize; }
.matchCalendarAlert small { margin-top: 3px; color: #777f86; font-size: 8px; line-height: 1.35; }
.matchCalendarAlert p { margin: 10px 0; color: #555e65; font-size: 8px; line-height: 1.5; }
.matchCalendarAlert em { margin-top: auto; color: #8a9197; font-size: 7px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.matchCalendarAlertHelp { margin: 12px 0 0; padding: 10px 12px; border-radius: 7px; background: #f4f5f6; color: #677078; font-size: 8px; line-height: 1.45; }

.matchRulesPanel { padding-bottom: 16px; }
.matchRulesForm { margin-top: 15px; }
.matchRuleGrid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.matchRule {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 88px;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dfe3e8;
  border-radius: 9px;
  background: #fafbfc;
  cursor: pointer;
}
.matchRule:has(input:checked) { border-color: #b79638; background: #fff9e8; box-shadow: inset 0 0 0 1px #e2cc87; }
.matchRule input { width: 20px; height: 20px; flex: 0 0 auto; margin: 0; accent-color: #9b7712; }
.matchRule span { display: flex; min-width: 0; flex-direction: column; }
.matchRule b { font-size: 11px; line-height: 1.3; }
.matchRule small { margin-top: 5px; color: #747c83; font-size: 8px; line-height: 1.45; }
.matchRulesActions { display: flex; align-items: center; gap: 13px; margin-top: 12px; }
.matchRulesActions small { max-width: 540px; color: #777f86; font-size: 8px; line-height: 1.45; }

.matchSyncBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 16px;
  padding: 15px 17px;
  border: 1px solid #d9e5df;
  border-left: 4px solid #24815d;
  border-radius: 8px;
  background: #f4fbf7;
}
.matchSyncBar>div { display: flex; flex-direction: column; gap: 3px; }
.matchSyncBar b { color: #285b47; font-size: 10px; }
.matchSyncBar span { color: #70827a; font-size: 8px; }
.matchSyncBar form { margin: 0; }
.matchSyncBar button {
  padding: 10px 13px;
  border: 0;
  border-radius: 6px;
  background: #176640;
  color: #fff;
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
}

.matchList { display: grid; grid-template-columns: repeat(auto-fill,minmax(380px,1fr)); gap: 15px; }
.matchCard { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.matchCardTop { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 15px 9px; }
.matchCardTop>div { display: flex; min-width: 0; flex-direction: column; }
.matchCompetition { overflow: hidden; font-size: 9px; font-weight: 900; letter-spacing: .7px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.matchCardTop small { margin-top: 3px; color: #80878d; font-size: 8px; }
.matchFixtureStatus,.matchFlyerStatus { display: inline-flex; align-items: center; flex: 0 0 auto; border-radius: 999px; font-size: 8px; font-weight: 900; }
.matchFixtureStatus { padding: 6px 8px; background: #eef1f3; color: #5e676e; }
.matchFixtureStatus-live { background: #e5f7ed; color: #14643d; }
.matchFixtureStatus-postponed,.matchFixtureStatus-time_tbd { background: #fff4d5; color: #7c5c0b; }
.matchFixtureStatus-cancelled { background: #fce7e7; color: #9a2929; }
.matchKickoff { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 15px 14px; border-bottom: 1px solid #edf0f2; }
.matchKickoff strong { font-size: 12px; text-transform: capitalize; }
.matchKickoff span { color: #9b7712; font-size: 17px; font-weight: 950; }
.matchTeams { display: grid; grid-template-columns: minmax(0,1fr) 34px minmax(0,1fr); align-items: center; gap: 8px; padding: 18px 14px; }
.matchTeams>span { color: #9a7b25; font-size: 9px; font-weight: 950; text-align: center; }
.matchTeam { display: flex; min-width: 0; align-items: center; gap: 9px; }
.matchTeam:last-child { flex-direction: row-reverse; text-align: right; }
.matchTeam img,.matchTeam i { width: 48px; height: 48px; flex: 0 0 auto; object-fit: contain; }
.matchTeam i { display: grid; place-items: center; border-radius: 50%; background: #101418; color: var(--gold); font-size: 11px; font-style: normal; font-weight: 950; }
.matchTeam b { overflow: hidden; font-size: 11px; line-height: 1.25; text-overflow: ellipsis; }
.matchDjConflict,.matchNoConflict { margin: 0 14px 14px; padding: 10px 11px; border-radius: 7px; }
.matchDjConflict { display: flex; flex-direction: column; border: 1px solid #efd092; background: #fff7e6; color: #76520d; }
.matchDjConflict b { font-size: 9px; }
.matchDjConflict span { margin-top: 3px; font-size: 8px; line-height: 1.35; }
.matchNoConflict { border: 1px solid #cce5d8; background: #f2fbf6; color: #367057; font-size: 8px; font-weight: 800; }
.matchFlyerArea { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 13px; padding: 14px; border-top: 1px solid #edf0f2; background: #fafbfc; }
.matchFlyerPreview,.matchFlyerPlaceholder { display: flex; aspect-ratio: 9 / 16; overflow: hidden; flex-direction: column; align-items: center; justify-content: center; border-radius: 6px; text-decoration: none; }
.matchFlyerPreview { position: relative; background: #101418; }
.matchFlyerPreview img { width: 100%; height: 100%; object-fit: cover; }
.matchFlyerPreview span { position: absolute; inset: auto 5px 5px; padding: 5px; border-radius: 4px; background: rgba(0,0,0,.72); color: #fff; font-size: 7px; text-align: center; }
.matchFlyerPlaceholder { border: 1px dashed #cfd5da; background: #fff; color: #858d94; text-align: center; }
.matchFlyerPlaceholder span { font-size: 24px; }
.matchFlyerPlaceholder b { margin-top: 8px; padding: 0 9px; font-size: 8px; line-height: 1.35; }
.matchFlyerActions { display: flex; min-width: 0; flex-direction: column; align-items: stretch; justify-content: center; gap: 8px; }
.matchFlyerStatus { align-self: flex-start; padding: 6px 8px; background: #eceff1; color: #626a70; }
.matchFlyerStatus-ready { background: #def4e8; color: #11603a; }
.matchFlyerStatus-pending { background: #e8eef8; color: #375f92; }
.matchFlyerStatus-outdated,.matchFlyerStatus-error { background: #fff0d1; color: #7c5708; }
.matchFlyerActions form { margin: 0; }
.matchFlyerActions .primary { width: 100%; min-height: 40px; }
.matchFlyerActions .primary:disabled { opacity: .48; cursor: not-allowed; }
.matchDownload { display: block; padding: 10px; border: 1px solid #d5dadd; border-radius: 5px; background: #fff; color: #252a2e; font-size: 8px; font-weight: 900; text-align: center; text-decoration: none; }
.matchDownload.isDisabled { color: #99a0a6; }
.matchVideoEditor { padding: 0 14px 14px; background: #fafbfc; }
.matchVideoEditor>.openEditor { min-height: 40px; }
.matchVideoEditorDisabled>.openEditor { background: #e4e7ea; color: #858d94; opacity: 1; }
.matchVideoLayers { margin-top: 10px; padding: 12px; border: 1px solid #dfe3e8; border-radius: 8px; background: #fff; }
.matchVideoLayers .exactNotice { margin-top: 0; }
.matchVideoLayers .videoActions { grid-template-columns: 1fr; }
.matchEmpty { grid-column: 1 / -1; padding: 48px 20px; text-align: center; }
.matchEmpty>span { font-size: 34px; }
.matchEmpty h2 { margin: 12px 0 6px; font-size: 15px; }
.matchEmpty p { margin: 0; color: #7a8288; font-size: 10px; }

.flyerCardLocked { border-color: #d84545; box-shadow: 0 0 0 2px rgba(216,69,69,.14); }
.flyerCardLocked .status { background: #8f111b; color: #fff; border-color: #8f111b; }
.lockedDeliveryNotice { display: grid; gap: 5px; padding: 12px 14px; border: 2px solid #d84545; border-radius: 12px; background: #fff0f0; color: #6e0a12; }
.lockedDeliveryNotice b { font-size: 14px; letter-spacing: .08em; }
.lockedDeliveryNotice span { font-size: 13px; line-height: 1.35; }
.weeklyFileAction.isLocked { background: #f7e5e7 !important; border-color: #e2a5ab !important; color: #8f111b !important; opacity: 1; }
.matchCardLocked { border-color: #d84545; box-shadow: 0 0 0 2px rgba(216,69,69,.12); }

.periodTools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid #dfe4e8; border-radius: 12px; background: #fff; }
.periodTools a { min-height: 38px; padding: 10px 14px; border-radius: 9px; background: #f0f3f5; color: #1f2529; font-size: 10px; font-weight: 850; text-decoration: none; }
.periodTools strong { font-size: 11px; text-align: center; }
.venueModuleForm { display: grid; gap: 18px; }
.tenantAccessChoices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 18px; }
.tenantAccessChoice { display: grid; grid-template-columns: auto 38px minmax(0,1fr); align-items: center; gap: 12px; min-height: 112px; padding: 17px; border: 2px solid #dfe4e8; border-radius: 14px; background: #fff; cursor: pointer; }
.tenantAccessChoice>input { width: 20px; height: 20px; accent-color: #9b781b; }
.tenantAccessChoice:has(>input:checked) { border-color: #b39128; background: #fffaf0; box-shadow: 0 0 0 3px rgba(179,145,40,.1); }
.tenantAccessChoiceIcon { font-size: 24px; text-align: center; }
.tenantAccessChoice>span:last-child { display: grid; gap: 5px; }
.tenantAccessChoice b { font-size: 13px; }
.tenantAccessChoice small { color: #687078; font-size: 10px; line-height: 1.45; }
.tenantConfigurationUnavailable { display: grid; gap: 7px; border-left: 5px solid var(--gold); }
.tenantConfigurationUnavailable b { font-size: 13px; }
.tenantConfigurationUnavailable span { color: #6f777e; font-size: 10px; }
.tenantStampGrid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.tenantStampCard { overflow: hidden; padding: 0; }
.tenantStampCard>header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-bottom: 1px solid #e1e5e8; background: #f7f8f9; }
.tenantStampCard>header div { display: grid; gap: 3px; }
.tenantStampCard>header span { color: #88701f; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.tenantStampCard>header h2 { margin: 0; font-size: 18px; }
.tenantStampCard>header em { padding: 6px 9px; border-radius: 999px; background: #eee6c9; color: #665216; font-size: 8px; font-style: normal; font-weight: 900; white-space: nowrap; }
.tenantStampForm { display: grid; gap: 13px; padding: 18px; }
.tenantStampForm .promoStampFields { grid-template-columns: 1fr; margin: 0; background: #fff; }
.tenantStampForm .promoStampLines { grid-template-columns: repeat(2,minmax(0,1fr)); }
.tenantStampForm>.primary { justify-self: end; min-width: 210px; }
.tenantStampEmpty { grid-column: 1 / -1; display: grid; gap: 6px; border-left: 5px solid var(--gold); }
.tenantStampEmpty span { color: #6f777e; font-size: 10px; }
.modulePickerGrid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 18px; }
.moduleChoice { position: relative; display: grid; grid-template-columns: auto 42px minmax(0,1fr); align-items: center; gap: 12px; min-height: 104px; padding: 16px; border: 2px solid #dfe4e8; border-radius: 14px; background: #fff; cursor: pointer; }
.moduleChoice:has(input:checked) { border-color: #0a5b45; background: #f0faf6; box-shadow: 0 0 0 3px rgba(10,91,69,.08); }
.moduleChoice input { width: 20px; height: 20px; accent-color: #0a5b45; }
.moduleChoiceIcon { font-size: 28px; text-align: center; }
.moduleChoice span:last-child { display: grid; gap: 5px; }
.moduleChoice b { font-size: 13px; }
.moduleChoice small { color: #687078; font-size: 10px; line-height: 1.4; }
.moduleChoice em { justify-self: start; padding: 4px 7px; border-radius: 999px; background: #edf0f3; color: #616970; font-size: 8px; font-style: normal; font-weight: 800; }
.moduleChoice.isFuture:has(input:checked) em { background: #d9eee6; color: #0a5b45; }
.weekdayPicker { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 9px; padding: 18px; }
.weekdayPicker label { position: relative; cursor: pointer; }
.weekdayPicker input { position: absolute; opacity: 0; pointer-events: none; }
.weekdayPicker span { display: grid; place-items: center; gap: 4px; min-height: 74px; padding: 10px 5px; border: 2px solid #dfe4e8; border-radius: 12px; background: #fff; }
.weekdayPicker b { font-size: 12px; }
.weekdayPicker small { color: #737b82; font-size: 8px; }
.weekdayPicker input:checked + span { border-color: #0a5b45; background: #0a5b45; color: #fff; box-shadow: 0 8px 18px rgba(10,91,69,.18); }
.weekdayPicker input:checked + span small { color: #d9eee6; }
.calendarViewChoices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 18px; }
.calendarViewChoices label { position: relative; cursor: pointer; }
.calendarViewChoices input { position: absolute; opacity: 0; pointer-events: none; }
.calendarViewChoices span { display: grid; gap: 5px; min-height: 76px; padding: 16px; border: 2px solid #dfe4e8; border-radius: 12px; background: #fff; }
.calendarViewChoices b { font-size: 12px; }
.calendarViewChoices small { color: #6d757c; font-size: 10px; }
.calendarViewChoices input:checked + span { border-color: #b39128; background: #fffaf0; box-shadow: 0 0 0 3px rgba(179,145,40,.1); }
.moduleConfigurationSave { justify-self: end; min-width: 260px; min-height: 48px; }

@media (max-width: 1100px) {
  .matchBackgroundGrid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .poster.playing .exactLayer {
    animation-delay: 0s !important;
    animation-duration: .01ms !important;
  }
  .poster.playing .backgroundFxStack,
  .poster.playing .backgroundContourWindow,
  .poster.playing .backgroundContour,
  .poster.playing .finalReference,
  .poster.playing .whiteLightSweep {
    animation: none !important;
  }
  .poster.playing .backgroundContour { display: none; }
  .poster.playing .whiteLightFx { display: none; }
  .poster.playing .finalReference { opacity: 1; }
}

@media (max-width: 800px) {
  .sidebar { display: none; }
  main { margin: 0; }
  .hamb { display: block; }
  .page { padding: 15px; }
  .flow { grid-template-columns: 1fr; }
  .weeklyBatchTools { align-items: stretch; flex-direction: column; }
  .weeklyDownloadRow { grid-template-columns: 1fr; gap: 10px; }
  .afnav { overflow: auto; }
  .afnav > div { min-width: 150px; }
  .venue { grid-template-columns: 1fr; }
  .actionTitle { flex-direction: column; }
  .usualHours>summary span { align-items: flex-start; flex-direction: column; gap: 3px; }
  .usualHours form { grid-template-columns: 1fr; }
  .weekTools { align-items: stretch; flex-direction: column; }
  .weekBoard { grid-template-columns: 1fr; }
  .manageForm,.manageForm.compact { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .djManageCard { grid-template-columns: 80px 1fr; }
  .venueProfilePanel,.venueSettingsForm,.venueSettingsForm>fieldset,.venueDayForm,.promoStampFields,.promoStampLines,.fondsSeriesTools,.fondsCreateForm,.seriesSettings,.backgroundUpload,.fondZeroBody { grid-template-columns: 1fr; }
  .venueSave,.venueDayForm .primary { grid-column: auto; }
  .seriesSettings .primary,.backgroundUpload button,.backgroundUpload small { grid-column: auto; }
  .partyLogoManager { grid-template-columns: 70px minmax(0,1fr); }
  .fondZeroPreview { grid-template-columns: 90px minmax(0,1fr); }
  .fondZeroPreview img { width: 90px; }
  .matchPageTitle { align-items: flex-start; flex-direction: column; gap: 0; }
  .matchSeason { margin-bottom: 18px; }
  .matchBackgroundGrid { grid-template-columns: 1fr; }
  .matchBackgroundCard { grid-template-columns: 104px minmax(0,1fr); }
  .matchBackgroundPreview { width: 104px; }
  .matchBackgroundReplace .primary,.matchBackgroundRestore button { min-height: 44px; }
  .matchCalendarAlertGrid { grid-template-columns: 1fr; }
  .matchCalendarAlert { min-height: 0; }
  .matchRuleGrid { grid-template-columns: 1fr; }
  .matchRulesActions,.matchSyncBar { align-items: stretch; flex-direction: column; }
  .matchRulesActions .primary,.matchSyncBar button { width: 100%; min-height: 44px; }
  .matchList { grid-template-columns: 1fr; }
  .matchFlyerArea { grid-template-columns: 96px minmax(0,1fr); }
  .matchVideoEditor { padding: 0 14px 14px; }
  .periodTools { align-items: stretch; flex-direction: column; }
  .periodTools a,.periodTools strong { text-align: center; }
  .modulePickerGrid,.calendarViewChoices,.tenantAccessChoices,.tenantStampGrid { grid-template-columns: 1fr; }
  .tenantModeNotice { align-items: flex-start; flex-direction: column; }
  .tenantAccessChoice { grid-template-columns: auto 32px minmax(0,1fr); min-height: 0; padding: 13px; }
  .tenantStampCard>header { align-items: flex-start; flex-direction: column; }
  .tenantStampForm .promoStampLines { grid-template-columns: 1fr; }
  .tenantStampForm>.primary { justify-self: stretch; min-width: 0; }
  .weekdayPicker { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .moduleConfigurationSave { justify-self: stretch; min-width: 0; }
}
