/* Page-specific styles for the shell pages (login, placeholders, design system). */
.login {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
/* Short windows (F8): the form may scroll; the gold panel stays the full window height. */
@media (min-width: 961px) {
  .login__brand {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
  }
}
.login__brand {
  background: var(--gold-gradient);
  color: #fff;
  padding: var(--sp-7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login__brand-title {
  font-family: var(--font-brand);
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
}
.login__brand-sub {
  opacity: 0.9;
  margin-top: var(--sp-3);
  max-width: 44ch;
}
.login__panel {
  display: grid;
  place-items: center;
  padding: var(--sp-5);
}
.login__card {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.login__title {
  font-size: var(--fs-2xl);
  font-weight: 600;
}
.login__mode-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (max-width: 960px) {
  .login {
    grid-template-columns: 1fr;
  }
  .login__brand {
    padding: var(--sp-5);
    min-height: 160px;
  }
  .login__brand-title {
    font-size: var(--fs-2xl);
  }
}
.placeholder {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: 60ch;
}
.ds-section {
  margin-bottom: var(--sp-6);
}
.ds-section > h2 {
  margin-bottom: var(--sp-4);
}
.ds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--sp-3);
}
.ds-swatch {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
}
.ds-swatch__color {
  height: 56px;
}
.ds-swatch__meta {
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-xs);
}
.ds-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}
.ds-type-sample {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--border);
}
.ds-type-sample code {
  color: var(--text-2);
  font-size: var(--fs-xs);
  min-width: 120px;
}
.ds-space {
  background: var(--primary-soft);
  height: 16px;
}
.ds-radius {
  width: 64px;
  height: 64px;
  background: var(--primary-soft);
  border: 1px solid var(--primary);
}
.ds-shadow {
  width: 120px;
  height: 64px;
  background: var(--surface);
  border-radius: var(--r-md);
}
/* Media Library */
.media-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
  margin: var(--sp-4) 0;
}
.media-toolbar .input {
  max-width: 360px;
}
.storage {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--sp-3);
}
.storage__bar {
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  overflow: hidden;
}
.storage__bar > div {
  height: 100%;
  background: var(--primary);
  border-radius: var(--r-pill);
  transition: width 0.2s;
}
.upload-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.upload-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.upload-row .storage__bar {
  grid-column: 1 / -1;
}
.upload-row__name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--sp-3);
}
.media-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  text-align: start;
  box-shadow: var(--shadow-1);
}
.media-card:hover {
  box-shadow: var(--shadow-2);
}
.media-card.is-selected {
  outline: 2px solid var(--primary);
}
.media-card__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  color: var(--text-2);
}
.media-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-card__progress {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 6px;
  background: var(--scrim);
}
.media-card__progress > div {
  height: 100%;
  background: var(--amber);
}
.media-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--sp-3);
}
.media-card__name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-preview {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: var(--surface-3);
  border-radius: var(--r-md);
}
.media-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px var(--sp-4);
  margin: 0;
}
.media-facts dt {
  color: var(--text-2);
  font-size: var(--fs-sm);
}
.media-facts dd {
  margin: 0;
  word-break: break-all;
}
/* Shops list */
.stat-row {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}
.stat {
  display: flex;
  flex-direction: column;
  min-width: 120px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.stat__value {
  font-size: var(--fs-2xl);
  font-weight: 600;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.filters__search {
  flex: 1 1 260px;
  max-width: 420px;
}
.filters .select {
  width: auto;
  min-width: 140px;
}
.table-wrap {
  /* Positioned, so absolutely placed children (visually hidden labels) scroll with the table
     instead of widening the page on phones. */
  position: relative;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.th-sort {
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: inherit;
  letter-spacing: inherit;
}
.shop-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: inherit;
  text-decoration: none;
}
.shop-link span > span {
  display: block;
}
.shop-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  object-fit: contain;
  background: var(--surface-3);
  flex: none;
}
.shop-logo--lg {
  width: 48px;
  height: 48px;
}
.shop-logo--empty {
  display: grid;
  place-items: center;
  color: var(--text-2);
}
.shop-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  color: inherit;
  text-decoration: none;
}
.completeness {
  display: flex;
  align-items: center;
  gap: 8px;
}
.completeness__bar {
  display: inline-block;
  width: 64px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  overflow: hidden;
}
.completeness__bar > div {
  height: 100%;
  background: var(--green);
}
.shops-table tr.is-selected td {
  background: var(--primary-soft);
}
.bulk-bar {
  position: sticky;
  top: var(--topbar-h);
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-3);
  background: var(--primary-soft);
  border: 1px solid var(--primary);
  border-radius: var(--r-md);
}
.bulk-bar .select {
  width: auto;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}
.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--sp-3);
}
@media (max-width: 720px) {
  .two-col,
  .three-col {
    grid-template-columns: 1fr;
  }
}
/* Shop editor */
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: var(--sp-4);
  align-items: start;
  padding-bottom: 80px;
}
.editor-aside {
  position: sticky;
  top: calc(var(--topbar-h) + var(--sp-4));
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
@media (max-width: 1100px) {
  .editor-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .editor-aside {
    position: static;
  }
}
.editor-section {
  scroll-margin-top: calc(var(--topbar-h) + var(--sp-3));
}
.checklist {
  list-style: none;
  margin: var(--sp-3) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.checklist a,
.checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  text-decoration: none;
}
.checklist a {
  color: var(--amber-text);
}
.save-bar {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-3);
}
@media (min-width: 961px) {
  .save-bar {
    inset-inline-start: var(--sidebar-w);
  }
}
.text-amber {
  color: var(--amber-text);
  font-weight: 600;
}
.link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: var(--sp-3);
  align-items: end;
}
.qr-thumb {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
}
.media-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.media-tile__img,
.media-tile__empty {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-md);
  background: var(--surface-3);
  display: grid;
  place-items: center;
  color: var(--text-2);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--sp-3);
}
.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gallery-item img,
.gallery-item .media-tile__empty {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-sm);
}
.gallery-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 1;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-2);
}
.rotate-back .icon {
  transform: rotate(180deg);
}
.rotate-up .icon {
  transform: rotate(-90deg);
}
[dir='rtl'] .rotate-back .icon {
  transform: none;
}
.mini-map {
  position: relative;
  width: 100%;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: crosshair;
}
.mini-map img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.mini-map__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-2);
  padding: var(--sp-4);
  text-align: center;
}
.mini-map__pin {
  position: absolute;
  transform: translate(-50%, -100%);
  color: var(--red);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
  pointer-events: none;
}
[dir='rtl'] .mini-map {
  direction: ltr;
}
.hours-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: var(--sp-3);
}
.hours-row {
  display: grid;
  grid-template-columns: 100px 40px minmax(0, 1fr);
  gap: var(--sp-2);
  align-items: center;
}
.hours-row__times {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: var(--sp-2);
  align-items: center;
}
.hours-row__day {
  font-weight: 600;
}
.input--time {
  width: auto;
  min-width: 110px;
}
.special-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: var(--sp-3);
  align-items: end;
  padding: var(--sp-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-2);
}
@media (max-width: 720px) {
  .hours-row {
    grid-template-columns: minmax(0, 1fr) 40px;
  }
  .hours-row__times {
    grid-column: 1 / -1;
  }
  .special-row,
  .link-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .special-row .row {
    flex-wrap: wrap;
  }
}
.preview-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  border: 6px solid #1e1a14;
  margin: 0 auto;
}
.preview-frame__iframe {
  /* Pinned top-left: in Arabic the unscaled iframe would start at the right edge and the
     top-left scaling would push it out of the frame. */
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  transform-origin: 0 0;
  background: #fff;
}
.preview-frame__badge {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--amber);
  color: #1e1a14;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
/* Categories */
.cat-swatch {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  color: #fff;
}
.icon-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.icon-picker__item {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-2);
}
.icon-picker__item.is-selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-text);
}
.color-input {
  width: 48px;
  height: 40px;
  padding: 2px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
}
/* Publish & History */
.publish-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--sp-4);
  align-items: start;
  padding-bottom: 80px;
}
@media (max-width: 1100px) {
  .publish-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
.change-group {
  margin-top: var(--sp-4);
}
.section-heading .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tone, var(--text-3));
  margin-inline-end: 8px;
  vertical-align: middle;
}
.change {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-top: var(--sp-2);
  overflow: hidden;
}
.change__row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 0;
  background: var(--surface);
  color: var(--text);
  text-align: start;
  font: inherit;
  cursor: pointer;
}
.change__row:hover {
  background: var(--surface-2);
}
.change__name {
  font-weight: 600;
  flex: 1;
  min-width: 0;
}
.change__link {
  color: var(--primary-text);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
}
.icon.rotate-up {
  transform: rotate(180deg);
}
.diff {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  padding: var(--sp-3) var(--sp-4);
  overflow-x: auto;
}
.diff__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.diff__table th {
  text-align: start;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
  padding: 4px 8px 6px 0;
}
.diff__table td {
  vertical-align: top;
  padding: 4px 8px 4px 0;
  border-top: 1px solid var(--border);
  word-break: break-word;
}
.diff__before {
  color: var(--text-2);
  text-decoration: line-through;
  border-inline-start: 3px solid var(--red);
  padding-inline-start: 8px;
}
.diff__after {
  color: var(--text);
  font-weight: 600;
  border-inline-start: 3px solid var(--green);
  padding-inline-start: 8px;
}
.publish-form__button {
  height: 46px;
  font-size: var(--fs-md);
  width: 100%;
}
.rollout {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.rollout__row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.rollout__row--installed {
  border-color: var(--green);
}
.rollout__row--failed {
  border-color: var(--red);
  background: var(--red-soft);
}
.rollout__icon {
  color: var(--text-2);
  display: flex;
}
.rollout__name {
  font-weight: 600;
}
.progress {
  height: 6px;
  margin-top: 6px;
  border-radius: 3px;
  background: var(--surface-3);
  overflow: hidden;
}
.progress > div {
  height: 100%;
  background: var(--amber);
  transition: width 0.4s;
}
.text-green {
  color: var(--green-text);
}
.version {
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--border);
}
.version.is-live {
  background: var(--green-soft);
  margin: 0 calc(-1 * var(--sp-5));
  padding-inline: var(--sp-5);
}
.version__number {
  font-size: var(--fs-lg);
}
.version__note {
  margin-top: 4px;
}
.publish-bar {
  display: none;
}
@media (max-width: 720px) {
  .publish-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 15;
    padding: var(--sp-3) var(--sp-4);
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-3);
  }
  .publish-form__button {
    display: none;
  }
}
/* Kiosks */
.kiosk-row__name {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.kiosks-cards {
  display: none;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
}
.kiosk-card__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2) var(--sp-4);
  margin: var(--sp-3) 0;
}
.kiosk-card__facts dt {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
}
.kiosk-card__facts dd {
  margin: 0;
}
@media (max-width: 720px) {
  .kiosks-table {
    display: none;
  }
  .kiosks-cards {
    display: grid;
  }
}
.kiosk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--sp-4);
  align-items: start;
  padding-bottom: 80px;
}
@media (max-width: 1100px) {
  .kiosk-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .kiosk-preview {
    display: none;
  }
}
.card--inset {
  background: var(--surface-2);
  box-shadow: none;
}
.kiosk-photo {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip--toggle {
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-sm);
  height: 32px;
}
.chip--toggle .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.chip--toggle.is-on {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-text);
}
.feature-list {
  display: flex;
  flex-direction: column;
}
.feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border);
}
.feature-row--soon {
  color: var(--text-2);
}
.toggle-row--big {
  padding: var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.secret {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.secret__value {
  font-size: 28px;
  letter-spacing: 0.18em;
  font-weight: 700;
  padding: var(--sp-2) var(--sp-3);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface-2);
  word-break: break-all;
}
.steps {
  margin: 0;
  padding-inline-start: 20px;
  line-height: 1.7;
}
.yah-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(220px, 2fr);
  gap: var(--sp-4);
  align-items: start;
}
@media (max-width: 720px) {
  .yah-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
.yah-map {
  min-height: 160px;
}
.yah-marker {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}
.yah-marker__ring {
  position: absolute;
  left: -22px;
  top: -22px;
  width: 44px;
  height: 44px;
  border: 3px solid var(--amber);
  border-radius: 50%;
  opacity: 0.7;
}
.yah-marker__arrow {
  position: absolute;
  left: -2px;
  top: -34px;
  width: 4px;
  height: 34px;
  background: var(--blue);
  transform-origin: 2px 34px;
}
.yah-marker__arrow::before {
  content: '';
  position: absolute;
  left: -8px;
  top: -12px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 14px solid var(--blue);
}
.yah-marker__dot {
  position: absolute;
  left: -8px;
  top: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--amber);
  border: 2px solid #fff;
}
.facing-dial {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.facing-dial__arrow {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
}
/* QR & Phone Site */
.site-status {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.qr-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--sp-5);
  align-items: start;
}
@media (max-width: 900px) {
  .qr-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
.qr-url {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: var(--fs-sm);
  word-break: break-all;
}
.qr-preview {
  display: flex;
  justify-content: center;
}
.qr-poster {
  background: #fff;
  color: #1e1a14;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 300px;
}
.qr-poster__brand {
  font-size: 12px;
  letter-spacing: 0.3em;
  font-weight: 700;
  color: #8f651a;
}
.qr-poster__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
}
.qr-poster__code {
  width: 70%;
  aspect-ratio: 1;
  border: 8px solid #f6eedc;
  border-radius: 12px;
  background: #fff;
}
.qr-poster__label {
  font-size: 20px;
  font-weight: 700;
}
.qr-poster__sub,
.qr-poster__url {
  font-size: 13px;
  color: #5c554b;
  word-break: break-all;
}
.qr-poster__tag {
  font-size: 13px;
  color: #8f651a;
  font-weight: 600;
}
.print-page {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  min-height: 100vh;
  background: var(--surface-2);
}
.print-toolbar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.print-page .qr-poster--a4 {
  width: 210mm;
  min-height: 297mm;
  justify-content: center;
  gap: 24px;
}
.print-page .qr-poster--a4 .qr-poster__label {
  font-size: 40px;
}
.print-page .qr-poster--a4 .qr-poster__title {
  font-size: 34px;
}
.print-page .qr-poster--a5 {
  width: 148mm;
  min-height: 210mm;
  justify-content: center;
  gap: 18px;
}
.print-page .qr-poster--a5 .qr-poster__label {
  font-size: 28px;
}
.print-page .qr-poster--tent {
  width: 148mm;
  height: 105mm;
  justify-content: center;
  border-style: dashed;
}
.print-page .qr-poster--tent.is-flipped {
  transform: rotate(180deg);
}
.print-page .qr-poster--tent .qr-poster__code {
  width: 38%;
}
@media print {
  .no-print {
    display: none !important;
  }
  .print-page {
    padding: 0;
    background: #fff;
    min-height: auto;
    gap: 0;
  }
  .print-page .qr-poster {
    border: 0;
    border-radius: 0;
    page-break-after: always;
  }
  .print-page .qr-poster--tent {
    page-break-after: auto;
    border: 1px dashed #bbb;
  }
  @page {
    margin: 10mm;
  }
}
/* Dashboard */
.dash-section {
  margin-bottom: var(--sp-5);
}
.dash-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
}
.dash-kiosks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-4);
}
.dash-kiosk__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2) var(--sp-3);
  margin: var(--sp-3) 0;
}
.dash-kiosk__facts dt {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
}
.dash-kiosk__facts dd {
  margin: 0;
  font-weight: 600;
}
.dash-alert {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-lg);
  border: 1px solid var(--tone);
  background: var(--tone-soft);
  margin-bottom: var(--sp-2);
}
.dash-alert .icon {
  color: var(--tone);
  flex-shrink: 0;
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-4);
}
.dash-big {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.dash-health {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dash-health a {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 8px 10px;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--text);
}
.dash-health a:hover {
  background: var(--surface-2);
}
.dash-health__n {
  min-width: 36px;
  font-size: 20px;
  font-weight: 700;
}
.dash-health__n.is-zero {
  color: var(--text-3);
}
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.dash-stat {
  padding: var(--sp-3);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.dash-activity {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: var(--fs-sm);
}
.dash-activity li {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-3);
  justify-content: space-between;
}
.dash-activity .grow {
  /* Long messages wrap inside the list instead of widening the page on phones. */
  min-width: 0;
  overflow-wrap: anywhere;
}
/* Promotions / Events / Services */
.coll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-4);
}
.coll-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-1);
}
.coll-card:hover,
.coll-card:focus-visible {
  box-shadow: var(--shadow-2);
}
.coll-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  color: var(--text-2);
}
.coll-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.coll-card__label {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--amber);
  color: #1e1a14;
  font-size: var(--fs-xs);
  font-weight: 700;
}
.coll-card__body {
  padding: var(--sp-3) var(--sp-4);
}
.coll-card__body p {
  margin: 6px 0 0;
  font-size: var(--fs-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Featured */
.feat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 300px;
  gap: var(--sp-4);
  align-items: start;
}
@media (max-width: 1100px) {
  .feat-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
.feat-slots,
.feat-candidates {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feat-slot {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.feat-slot__rank {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-text);
  font-weight: 700;
  font-size: var(--fs-xs);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.feat-preview {
  margin: 0;
  padding-inline-start: 20px;
  line-height: 1.8;
}
.feat-preview .icon {
  display: inline-block;
  vertical-align: -2px;
}

/* Idle Screen & Ads (B2) */
.idle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-4);
}
.idle-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.idle-items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.idle-items li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 8px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
}
.idle-items .grow,
.feat-slot .grow {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Announcements (B2) */
.ann-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--sp-4);
  margin-top: var(--sp-4);
}
@media (max-width: 900px) {
  .ann-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
.ann-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: var(--r-md);
  background: var(--tone-soft);
  border: 1px solid var(--tone);
  padding: 10px 14px;
  text-align: center;
}
.ann-preview--takeover {
  min-height: 140px;
  justify-content: center;
  font-size: var(--fs-lg);
}
.idle-edit-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px var(--sp-2);
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.idle-edit-item__name {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}
.idle-edit-item input[type='range'] {
  flex: 1;
  min-width: 80px;
}
@media (max-width: 600px) {
  .save-bar {
    padding: var(--sp-2) var(--sp-3);
    gap: var(--sp-2);
  }
}

/* Reports (C1) */
.rep-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.rep-kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rep-kpi__value {
  font-size: var(--fs-2xl);
}
.rep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--sp-4);
}
.rep-grid > * {
  min-width: 0;
}
.rep-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 120px;
}
.rep-bar {
  flex: 1;
  min-width: 2px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}
.rep-bars__labels {
  display: flex;
}
.rep-bars__labels span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.rep-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rep-list li {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(40px, 1fr) auto auto;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
}
.rep-list__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rep-list__bar {
  height: 6px;
  border-radius: 3px;
  background: var(--surface-3);
  overflow: hidden;
}
.rep-list__bar span {
  display: block;
  height: 100%;
  background: var(--primary);
}
.rep-list__value {
  text-align: end;
  font-variant-numeric: tabular-nums;
}
.rep-kiosks td,
.rep-kiosks th {
  padding: 6px 8px;
}

/* Alerts (C2) */
.alert-rules {
  list-style: none;
  margin: 0;
  padding: 0;
}
.alert-rule {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border);
}
.alert-rule:last-child {
  border-bottom: 0;
}
.alert-rule__text {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.alert-rule__n {
  width: 80px;
  margin-inline-start: 6px;
}
.alerts-layout {
  max-width: 860px;
}

/* Backups (C2) */
.backup-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.backup-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border);
}
.backup-row:last-child {
  border-bottom: 0;
}
.export-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: start;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}
.export-card:hover {
  border-color: var(--primary);
}
.button--danger-text {
  color: var(--red);
}
.settings-card {
  max-width: 860px;
}

/* 2-step verification (C3) */
.twostep-card {
  max-width: 640px;
}
.twostep-qr {
  margin: var(--sp-3) 0;
}
.twostep-qr img {
  display: block;
  border-radius: var(--r-md);
  background: #fff;
  padding: 6px;
}
.twostep-key {
  word-break: break-all;
  user-select: all;
}
.twostep-codes {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 6px 24px;
}
.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--primary-text);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  justify-self: start;
}
