:root {
  --ink: #1a2c36;
  --ink-strong: #0e2430;
  --muted: #6d7f89;
  --muted-2: #8b9aa2;
  --line: #dbe4e9;
  --line-strong: #cbd7dd;
  --surface: #ffffff;
  --surface-soft: #f6f8f9;
  --surface-blue: #edf3f6;
  --canvas: #edf2f5;
  --brand: #4a7696;
  --brand-dark: #0b2d53;
  --brand-mid: #416b89;
  --brand-light: #8ca7ba;
  --brand-pale: #edf3f7;
  --success: #2b7151;
  --warning: #946812;
  --warning-pale: #fff8e8;
  --danger: #9b3035;
  --danger-dark: #712226;
  --danger-pale: #fff1f1;
  --award: #74528d;
  --birthday: #a05c7d;
  --anniversary: #806619;
  --radius: 6px;
  --max: 1600px;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; }
html { background: var(--canvas); }
body {
  margin: 0;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--canvas);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--brand-dark); }
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Public shell ----------------------------------------------------------- */
.site-header {
  flex: 0 0 auto;
  background: #fff;
  border-top: 4px solid var(--brand-dark);
  border-bottom: 1px solid var(--line-strong);
}
.site-header__inner,
.site-footer__inner,
.page-shell,
.red-alert {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}
.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand__logo {
  display: block;
  width: 68px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}
.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.header-admin,
.icon-action {
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--brand-dark);
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.header-admin {
  width: 38px;
  height: 38px;
}
.header-admin svg { width: 19px; height: 19px; }
.header-admin:hover,
.icon-action:hover {
  border-color: #aebfc8;
  background: var(--brand-pale);
  color: var(--brand-dark);
}
.header-admin:active,
.icon-action:active { transform: translateY(1px); }
.header-admin:focus-visible,
.icon-action:focus-visible,
.segment-control__button:focus-visible,
.dashboard-pager__button:focus-visible,
.mobile-panel-switcher__button:focus-visible {
  outline: 2px solid rgba(74,118,150,.32);
  outline-offset: 2px;
}

.page-shell {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 14px 0;
}
.hub-layout {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(440px, 1.08fr);
  gap: 14px;
  align-items: stretch;
}
.hub-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.hub-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--brand-dark);
  z-index: 2;
}
.hub-panel--announcements::before { background: var(--brand); }
.hub-panel__header {
  flex: 0 0 auto;
  min-height: 64px;
  padding: 13px 15px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.hub-panel__title { min-width: 0; }
.eyebrow {
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 9.5px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
h1, h2, h3, h4 { margin: 0; color: var(--ink-strong); line-height: 1.12; }
.hub-panel__header h1,
.hub-panel__header h2 {
  font-size: 21px;
  letter-spacing: -.018em;
}
.icon-action {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
}
.icon-action svg { width: 18px; height: 18px; }
.count-pill {
  flex: 0 0 auto;
  max-width: 58%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 9px;
  border: 1px solid #d6e0e5;
  border-radius: 999px;
  background: #f7f9fa;
  color: #5f717b;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .02em;
}

/* Price changes ---------------------------------------------------------- */
.price-toolbar {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: #f7f9fa;
}
.segment-control {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid #d4dee3;
  border-radius: 6px;
  background: #edf2f4;
}
.segment-control__button {
  min-height: 30px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #61737d;
  padding: 5px 11px;
  font-size: 10px;
  font-weight: 900;
  transition: background .14s ease, color .14s ease;
}
.segment-control__button:hover { color: var(--brand-dark); background: rgba(255,255,255,.65); }
.segment-control__button.is-active { background: #fff; color: var(--brand-dark); }
.search-field {
  position: relative;
  flex: 1 1 180px;
  min-width: 120px;
  max-width: 340px;
  margin-left: auto;
}
.search-field__icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  color: #80919a;
  pointer-events: none;
}
.search-field__icon svg { width: 15px; height: 15px; }
.search-field input {
  width: 100%;
  height: 34px;
  border: 1px solid #d0dbe0;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px 0 31px;
  outline: none;
  font-size: 11px;
}
.search-field input::placeholder { color: #8d9ba2; }
.search-field input:focus {
  border-color: var(--brand);
  outline: 2px solid rgba(74,118,150,.12);
  outline-offset: 0;
}
.price-widget-host {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  transition: opacity .14s ease, transform .14s ease;
}
.price-compact-view {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.price-compact-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}
.price-row {
  height: 54px;
  min-width: 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) minmax(74px, auto);
  gap: 10px;
  align-items: center;
  padding: 5px 12px 5px 10px;
  border-bottom: 1px solid #e9eef1;
  background: #fff;
  transition: background .12s ease;
}
.price-row:last-child { border-bottom: 0; }
.price-row:hover { background: #f8fafb; }
.price-row--archive { background: #fbfcfc; }
.price-row__date {
  align-self: stretch;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 10px;
  border-right: 1px solid #e0e7ea;
  line-height: 1.05;
}
.price-row__date strong {
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .035em;
  white-space: nowrap;
}
.price-row__date span {
  margin-top: 3px;
  color: #87969e;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .09em;
}
.price-row__identity { min-width: 0; display: grid; gap: 2px; }
.price-row__supplier-line { min-width: 0; display: flex; align-items: center; gap: 6px; }
.price-row__supplier {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1e3440;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .025em;
}
.price-row__products {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #75868f;
  font-size: 9.5px;
}
.price-row__note {
  color: #86959d;
  font-size: 11px;
  line-height: 1;
  cursor: help;
}
.price-row__value {
  justify-self: end;
  display: grid;
  justify-items: end;
  gap: 3px;
  white-space: nowrap;
}
.price-row__increase {
  color: var(--brand-dark);
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
}
.price-row__increase--text { font-size: 9.5px; text-transform: uppercase; letter-spacing: .03em; }
.price-row__notice {
  color: #70848e;
  font-size: 9.5px;
  font-weight: 900;
  text-decoration: none;
}
.price-row__notice:hover { color: var(--brand-dark); text-decoration: underline; }
.price-row__hot { display: none !important; }
.panel-footer {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 5px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: #fafbfc;
  color: #84929a;
  font-size: 9.5px;
  white-space: nowrap;
}

/* Announcements ---------------------------------------------------------- */
.announcement-feed {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 9px;
  background: #f8fafb;
  transition: opacity .14s ease, transform .14s ease;
}
.announcement-page {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.announcement-page__cards {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-content: flex-start;
}
.announcement-card {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 10px 12px 9px;
  border: 1px solid #dce5e9;
  border-left: 3px solid var(--brand);
  border-radius: 5px;
  background: #fff;
}
.announcement-card[data-type="birthday"] { border-left-color: var(--birthday); }
.announcement-card[data-type="anniversary"] { border-left-color: var(--anniversary); }
.announcement-card[data-type="award"] { border-left-color: var(--award); }
.announcement-card[data-type="safety"] { border-left-color: var(--warning); }
.announcement-card[data-type="work"] { border-left-color: var(--brand-dark); }
.announcement-card[data-type="price_watch"] { border-left-color: #d4a23b; background: #fffdfa; }
.announcement-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.type-badge {
  color: var(--brand-dark);
  font-size: 9.5px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .085em;
  text-transform: uppercase;
}
.pin-badge {
  color: #819098;
  font-size: 9.5px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
}
.announcement-card h3 {
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #19313e;
  font-size: 13px;
}
.announcement-card__body {
  margin: 4px 0 6px;
  color: #5f717b;
  font-size: 10px;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: pre-wrap;
}
.announcement-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #819097;
  font-size: 9.5px;
}
.announcement-card__footer a { color: var(--brand-dark); font-weight: 900; text-decoration: none; }
.announcement-card__footer a:hover { text-decoration: underline; }
.price-watch-list { margin-top: 6px; display: grid; gap: 4px; overflow: hidden; }
.price-watch-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 4px;
}
.price-watch-row--soon { background: #fff8e8; border-color: #eddda8; }
.price-watch-row--urgent { background: #fff1f1; border-color: #e8c4c6; }
.price-watch-row__copy { min-width: 0; display: grid; gap: 1px; }
.price-watch-row__copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #263b47;
  font-size: 9.5px;
}
.price-watch-row__copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #70818a;
  font-size: 9.5px;
}
.price-watch-row__meta { display: grid; justify-items: end; gap: 1px; white-space: nowrap; }
.price-watch-row__meta strong { color: var(--brand-dark); font-size: 9.5px; }
.price-watch-row__meta span { color: #7e8b92; font-size: 9.5px; font-weight: 800; }
.price-watch-row__link { color: var(--brand-dark); text-decoration: none; font-weight: 900; font-size: 10px; }
.price-watch-more {
  align-self: flex-start;
  margin-top: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.price-watch-more:hover { text-decoration: underline; }

/* Pagination ------------------------------------------------------------- */
.price-widget-host.is-page-changing,
.announcement-feed.is-page-changing {
  opacity: .45;
  transform: translateY(2px);
}
.dashboard-pager {
  flex: 0 0 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 8px 4px 11px;
  border-top: 1px solid var(--line);
  background: #fafbfc;
}
.dashboard-pager__range {
  color: #7b8c94;
  font-size: 9.5px;
  font-weight: 800;
  white-space: nowrap;
}
.dashboard-pager__controls { display: flex; align-items: center; gap: 4px; }
.dashboard-pager__button {
  width: 27px;
  height: 27px;
  min-width: 27px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #4f6570;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  transition: background .14s ease, color .14s ease, border-color .14s ease, transform .14s ease;
}
.dashboard-pager__button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #d2dde2;
  background: #fff;
  color: var(--brand-dark);
}
.dashboard-pager__button:disabled { opacity: .25; cursor: default; }
.dashboard-pager__status {
  min-width: 48px;
  text-align: center;
  color: #596d77;
  font-size: 9.5px;
  font-weight: 900;
  white-space: nowrap;
}
.dashboard-pager__pages,
.dashboard-pager__ellipsis,
.dashboard-pager__compact { display: none !important; }

.empty-state {
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 18px;
  text-align: center;
  color: #788991;
  font-size: 11px;
}

/* Alerts / footer -------------------------------------------------------- */
.red-alert-host:empty { display: none; }
.red-alert-host {
  flex: 0 0 auto;
  max-height: 54px;
  overflow: hidden;
  position: relative;
  z-index: 50;
  background: var(--danger);
  color: #fff;
}
.red-alert {
  min-height: 42px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}
.red-alert__label {
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 3px;
  padding: 3px 6px;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
}
.red-alert__content { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.red-alert__content strong { font-size: 11px; }
.red-alert__content span { margin-left: 7px; font-size: 10px; opacity: .95; }
.red-alert a { color: #fff; font-size: 9.5px; font-weight: 900; }
.mobile-panel-switcher { display: none; }
.site-footer {
  flex: 0 0 auto;
  background: var(--brand-dark);
  border-top: 2px solid var(--brand);
}
.site-footer__inner {
  min-height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-footer__inner strong {
  color: #fff;
  font-size: 9.5px;
  letter-spacing: .075em;
}

/* --------------------------------------------------------------------------
   Shared form controls and admin UI
   -------------------------------------------------------------------------- */
.button {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  border-radius: 5px;
  padding: 10px 15px;
  font-weight: 700;
  line-height: 1.2;
}
.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.button--outline { color: var(--brand-dark); background: #fff; border-color: var(--brand); }
.button--outline:hover { color: #fff; }
.button--text { color: var(--brand-dark); background: transparent; border-color: transparent; padding-inline: 8px; }
.button--text:hover { background: var(--brand-pale); color: var(--brand-dark); border-color: transparent; }
.button--danger { background: #fff; color: var(--danger); border-color: #d7aeb0; }
.button--danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.button--small { padding: 8px 11px; font-size: 13px; }
.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  font-size: 25px;
  line-height: 1;
  color: var(--ink);
}
.icon-button:hover { background: var(--surface-soft); }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  outline: 2px solid rgba(57,111,143,.18);
  outline-offset: 1px;
}
textarea { resize: vertical; min-height: 80px; }
label > span { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 700; color: #445560; }

.admin-dialog {
  width: min(1500px, calc(100vw - 28px));
  height: min(930px, calc(100vh - 28px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: auto;
  border: 1px solid #aebbc4;
  border-radius: 6px;
  background: #f5f7f8;
  color: var(--ink);
}
.admin-dialog::backdrop { background: rgba(15,29,38,.62); }
.admin-dialog__header {
  min-height: 78px;
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 5;
}
.admin-dialog h2 { font-size: 22px; }
.admin-login {
  max-width: 500px;
  margin: 70px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.admin-login > p { margin-top: 0; color: var(--muted); }
.admin-app { padding-bottom: 30px; }
.admin-toolbar {
  padding: 12px 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 78px;
  z-index: 4;
}
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-tab {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  padding: 8px 11px;
  font-weight: 700;
  color: #43545f;
}
.admin-tab.is-active { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }
.admin-status { min-height: 0; margin: 14px 18px 0; }
.admin-status:not(:empty) { padding: 10px 12px; border: 1px solid #c9dae3; background: #eef5f8; border-radius: 4px; }
.admin-status.is-error { background: var(--danger-pale); border-color: #e0babc; color: var(--danger-dark); }
.admin-panel { display: none; padding: 18px; }
.admin-panel.is-active { display: block; }
.admin-grid { display: grid; grid-template-columns: minmax(430px,.85fr) minmax(520px,1.15fr); gap: 16px; align-items: start; }
.admin-grid--roster { grid-template-columns: minmax(370px,.7fr) minmax(520px,1.3fr); }
.panel-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel-card--list { padding: 0; overflow: hidden; }
.panel-card--list .panel-card__heading { padding: 18px 18px 12px; }
.panel-card__heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.panel-card__heading p, .panel-card > p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.panel-card h3 { font-size: 17px; }
.form-stack { display: grid; gap: 13px; }
.form-grid { display: grid; gap: 12px; }
.form-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.form-actions { display: flex; gap: 9px; align-items: center; }
.form-actions--wrap { flex-wrap: wrap; }
.form-message { min-height: 20px; color: var(--danger); font-size: 13px; margin: 0; }
.check-row { display: flex; align-items: flex-start; gap: 9px; }
.check-row input { width: auto; margin-top: 3px; }
.check-row > span { margin: 0; font-size: 14px; }
.option-box { border: 1px solid var(--line); background: #f8fafb; border-radius: 4px; padding: 12px; }
.nested-options { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.recipient-picker { max-height: 180px; overflow: auto; border: 1px solid var(--line); background: #fff; border-radius: 4px; padding: 8px; }
.recipient-option { display: flex; align-items: center; gap: 8px; padding: 6px 4px; font-size: 13px; }
.recipient-option input { width: auto; }
.recipient-option small { color: var(--muted); margin-left: auto; }
.admin-search { padding: 0 18px 12px; }
.admin-list { max-height: 600px; overflow: auto; border-top: 1px solid var(--line); }
.admin-list-item { padding: 13px 16px; border-bottom: 1px solid #e7ecef; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.admin-list-item:last-child { border-bottom: 0; }
.admin-list-item:hover { background: #fafcfc; }
.admin-list-item__title { font-weight: 800; }
.admin-list-item__meta { color: var(--muted); font-size: 12px; margin-top: 3px; }
.admin-list-item__actions { display: flex; gap: 6px; }
.admin-list-item__actions button { padding: 6px 8px; font-size: 12px; }
.bulk-panel { margin-top: 16px; }
.bulk-panel summary { cursor: pointer; font-weight: 800; color: var(--brand-dark); }
.bulk-panel textarea { margin-top: 12px; font-family: Consolas, 'Courier New', monospace; font-size: 13px; }
.muted { color: var(--muted); font-size: 13px; }
.tools-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; }
.audit-list { margin-top: 12px; max-height: 520px; overflow: auto; border-top: 1px solid var(--line); }
.audit-row { padding: 10px 2px; border-bottom: 1px solid #e8edef; display: grid; grid-template-columns: 130px 130px 1fr; gap: 10px; font-size: 12px; }
.audit-row strong { color: #334651; }
.toast-host { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: grid; gap: 8px; width: min(390px,calc(100vw - 36px)); }
.toast { background: #172f3e; color: #fff; border-radius: 5px; padding: 12px 14px; border-left: 4px solid #6fa2bd; }
.toast--error { background: #61191c; border-left-color: #e5a4a7; }



/* Responsive public dashboard ------------------------------------------ */
@media (max-width: 900px) {
  .site-header__inner { min-height: 66px; }
  .brand__logo { width: 60px; height: 52px; }
  .page-shell { padding: 9px 0; }
  .mobile-panel-switcher {
    height: 36px;
    margin-bottom: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: #dfe8ed;
  }
  .mobile-panel-switcher__button {
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #5c6f79;
    font-size: 9.5px;
    font-weight: 900;
    letter-spacing: .045em;
    text-transform: uppercase;
  }
  .mobile-panel-switcher__button.is-active { background: #fff; color: var(--brand-dark); }
  .hub-layout {
    height: calc(100% - 44px);
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
  }
  body[data-mobile-panel="prices"] .hub-panel--announcements,
  body[data-mobile-panel="announcements"] .hub-panel--prices { display: none; }
  .hub-panel { height: 100%; }
  .admin-grid, .admin-grid--roster, .tools-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-header__inner,
  .site-footer__inner,
  .page-shell,
  .red-alert { width: min(calc(100% - 18px), var(--max)); }
  .site-header__inner { min-height: 58px; }
  .brand__logo { width: 53px; height: 46px; }
  .header-admin { width: 34px; height: 34px; }
  .hub-panel__header { min-height: 54px; padding: 9px 10px 8px; }
  .hub-panel__header h1, .hub-panel__header h2 { font-size: 17px; }
  .hub-panel__header .eyebrow { display: none; }
  .price-toolbar { min-height: 46px; padding: 6px; gap: 6px; }
  .segment-control { padding: 2px; }
  .segment-control__button { min-height: 29px; padding: 4px 7px; font-size: 9.5px; }
  .search-field { min-width: 100px; }
  .search-field input { height: 31px; font-size: 10px; }
  .price-row { height: 50px; grid-template-columns: 62px minmax(0, 1fr) auto; padding: 4px 7px 4px 8px; gap: 7px; }
  .price-row__date { padding-right: 7px; }
  .price-row__date strong { font-size: 9.5px; }
  .price-row__date span { font-size: 9.5px; }
  .price-row__supplier { font-size: 10px; }
  .price-row__products { font-size: 9.5px; }
  .price-row__increase { font-size: 13px; }
  .announcement-feed { padding: 6px; }
  .announcement-page__cards { gap: 5px; }
  .announcement-card { padding: 8px 9px 7px; }
  .announcement-card h3 { font-size: 12px; }
  .announcement-card__body { font-size: 9.5px; }
  .site-footer__inner { min-height: 24px; }
  .site-footer__inner strong { font-size: 9.5px; }
  .red-alert { grid-template-columns: auto 1fr; }
  .red-alert > a { display: none; }
  .red-alert__content span { display: none; }
  .form-grid--2 { grid-template-columns: 1fr; }
  .admin-dialog { width: calc(100vw - 12px); height: calc(100vh - 12px); }
  .admin-dialog__header { min-height: 68px; }
  .admin-toolbar { top: 68px; align-items: flex-start; }
  .admin-tabs { overflow-x: auto; flex-wrap: nowrap; max-width: calc(100vw - 110px); }
  .admin-tab { white-space: nowrap; }
  .admin-panel { padding: 10px; }
  .admin-list-item { grid-template-columns: 1fr; }
  .audit-row { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-height: 690px) {
  .site-header__inner { min-height: 56px; }
  .brand__logo { width: 51px; height: 44px; }
  .page-shell { padding-top: 7px; padding-bottom: 7px; }
  .hub-panel__header { min-height: 50px; padding-top: 8px; padding-bottom: 7px; }
  .hub-panel__header .eyebrow { display: none; }
  .price-toolbar { min-height: 43px; padding-top: 5px; padding-bottom: 5px; }
  .price-row { height: 48px; }
  .site-footer { display: none; }
  .red-alert-host { max-height: 46px; }
}

/* Supplier autocomplete -------------------------------------------------- */
.autocomplete-wrap { position: relative; }
.autocomplete-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow: auto;
  padding: 4px;
  border: 1px solid #becdd5;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(11,45,83,.12);
}
.autocomplete-option {
  width: 100%;
  display: block;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #263c48;
  padding: 8px 10px;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
}
.autocomplete-option:hover,
.autocomplete-option.is-active { background: var(--brand-pale); color: var(--brand-dark); }

/* Rich announcement media ---------------------------------------------- */
.announcement-media {
  width: var(--media-width, 100%);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 5px;
}
.announcement-media--align-left { margin-left: 0; margin-right: auto; }
.announcement-media--align-center { margin-left: auto; margin-right: auto; }
.announcement-media--align-right { margin-left: auto; margin-right: 0; }
.announcement-media--top { margin-top: 6px; margin-bottom: 5px; }
.announcement-media--above_body { margin: 6px 0 4px; }
.announcement-media--below_body { margin-top: 5px; margin-bottom: 2px; }
.announcement-media--left { float: left; margin: 3px 9px 5px 0; }
.announcement-media--right { float: right; margin: 3px 0 5px 9px; }
.announcement-media img,
.announcement-media video,
.announcement-media iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 5px;
  background: #101b22;
}
.announcement-media img { max-height: 146px; object-fit: contain; background: #f3f6f7; }
.announcement-media video { max-height: 170px; object-fit: contain; }
.announcement-media iframe { aspect-ratio: 16 / 9; max-height: 190px; }
.announcement-card__message { display: flow-root; min-width: 0; }
.announcement-card--has-media .announcement-card__body { -webkit-line-clamp: 4; margin-bottom: 4px; }
.announcement-card__body--placeholder { color: #9aa6ac; font-style: italic; }
.announcement-card--preview { max-width: 620px; min-height: 180px; box-shadow: none; }

/* Admin media composer -------------------------------------------------- */
.media-composer,
.announcement-live-preview-wrap {
  border: 1px solid #d3dee4;
  border-radius: 6px;
  background: #f8fafb;
  padding: 12px;
}
.media-composer__heading,
.announcement-live-preview-wrap__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.media-composer__heading > div { min-width: 0; }
.media-composer__heading strong,
.announcement-live-preview-wrap__heading strong { display: block; color: var(--ink-strong); font-size: 13px; }
.media-composer__heading span,
.announcement-live-preview-wrap__heading span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.media-file-button { flex: 0 0 auto; }
.media-paste-zone {
  display: grid;
  place-items: center;
  min-height: 82px;
  padding: 13px;
  border: 1px dashed #aebfc8;
  border-radius: 6px;
  background: #fff;
  color: #526873;
  text-align: center;
  outline: none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.media-paste-zone strong { color: var(--brand-dark); font-size: 12px; }
.media-paste-zone span { margin-top: 3px; color: #819099; font-size: 10px; }
.media-paste-zone:focus,
.media-paste-zone.is-dragover { border-color: var(--brand); background: var(--brand-pale); box-shadow: 0 0 0 2px rgba(74,118,150,.12); }
.youtube-adder { margin-top: 10px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: end; }
.media-status { min-height: 16px; margin-top: 7px; color: var(--muted); font-size: 11px; }
.media-status.is-error { color: var(--danger); }
.media-editor-list { margin-top: 8px; display: grid; gap: 8px; }
.media-editor-item {
  display: grid;
  grid-template-columns: 120px minmax(0,1fr);
  gap: 10px;
  padding: 9px;
  border: 1px solid #dae4e8;
  border-radius: 6px;
  background: #fff;
}
.media-editor-item__preview { min-width: 0; align-self: start; padding: 4px; border: 1px solid #e2e8eb; border-radius: 5px; background: #f5f7f8; }
.media-editor-item__preview .announcement-media { width: 100% !important; margin: 0 !important; float: none !important; }
.media-editor-item__preview img,
.media-editor-item__preview video,
.media-editor-item__preview iframe { max-height: 84px; }
.media-editor-item__controls { min-width: 0; display: grid; gap: 8px; }
.media-editor-item__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.media-editor-item__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #314a57; font-size: 11px; font-weight: 800; }
.media-editor-item__actions { display: flex; align-items: center; gap: 4px; }
.media-editor-button {
  min-width: 28px;
  height: 27px;
  padding: 0 7px;
  border: 1px solid #d0dce1;
  border-radius: 4px;
  background: #fff;
  color: #526873;
  font-size: 10px;
  font-weight: 800;
}
.media-editor-button:hover:not(:disabled) { background: var(--brand-pale); color: var(--brand-dark); }
.media-editor-button:disabled { opacity: .35; cursor: default; }
.media-editor-button--remove { color: var(--danger); }
.media-editor-controls-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.media-select-control > span,
.media-size-control > span,
.media-alt-control > span { display: block; margin-bottom: 3px; color: #6d7f89; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.media-select-control select,
.media-alt-control input { padding: 6px 7px; font-size: 11px; }
.media-size-control__row { display: grid; grid-template-columns: minmax(0,1fr) 42px; gap: 8px; align-items: center; }
.media-size-control input[type="range"] { padding: 0; border: 0; outline: none; }
.media-size-control output { color: var(--brand-dark); font-size: 10px; font-weight: 900; text-align: right; }
.announcement-live-preview-wrap { background: #eef3f6; }
.announcement-live-preview { min-height: 120px; padding: 9px; border: 1px solid #d3dee4; border-radius: 6px; background: #f8fafb; }
.announcement-live-preview .announcement-card { max-height: none; }

@media (max-width: 700px) {
  .media-editor-item { grid-template-columns: 1fr; }
  .media-editor-item__preview { max-width: 190px; }
  .youtube-adder { grid-template-columns: 1fr; }
  .media-composer__heading { align-items: stretch; flex-direction: column; }
  .media-file-button { align-self: flex-start; }
}

/* Announcement media + richer Admin composer --------------------------- */
.media-composer {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafb;
}
.media-composer__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.media-composer__heading > div { display: grid; gap: 2px; }
.media-composer__heading strong { color: var(--brand-dark); font-size: 13px; }
.media-composer__heading span { color: var(--muted); font-size: 11px; line-height: 1.35; }
.media-file-button { cursor: pointer; white-space: nowrap; }
.media-paste-zone {
  min-height: 72px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 13px;
  border: 1px dashed #9fb6c2;
  border-radius: 6px;
  background: #fff;
  color: #536a76;
  text-align: center;
  outline: none;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.media-paste-zone strong { color: #284b60; font-size: 12px; }
.media-paste-zone span { font-size: 11px; }
.media-paste-zone:focus,
.media-paste-zone.is-dragging { border-color: var(--brand); background: #f0f7fa; transform: translateY(-1px); }
.youtube-adder { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: end; }
.youtube-adder label { min-width: 0; }
.media-status { min-height: 16px; color: var(--muted); font-size: 11px; }
.media-status.is-error { color: var(--danger-dark); font-weight: 700; }
.media-editor-list { display: grid; gap: 8px; }
.media-editor-item {
  display: grid;
  grid-template-columns: 126px minmax(0,1fr);
  gap: 11px;
  align-items: stretch;
  padding: 8px;
  border: 1px solid #d9e3e8;
  border-radius: 6px;
  background: #fff;
}
.media-editor-item__preview {
  min-height: 82px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #eef3f5;
}
.media-editor-item__preview .announcement-media__item { width: 100% !important; max-width: 100% !important; }
.media-editor-item__preview img,
.media-editor-item__preview video,
.media-editor-item__preview iframe { width: 100%; height: 82px; object-fit: contain; border: 0; }
.media-editor-item__controls { min-width: 0; display: grid; grid-template-columns: minmax(150px,.8fr) minmax(180px,1.2fr); gap: 8px 12px; align-items: end; }
.media-editor-item__heading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.media-editor-item__heading strong { color: #243d4a; font-size: 12px; }
.media-size-control { display: grid; gap: 6px; }
.media-size-control__label { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.media-size-control__label strong { color: var(--brand-dark); }
.media-size-control input[type="range"] { width: 100%; accent-color: var(--brand); }
.announcement-live-preview-wrap {
  padding: 11px;
  border: 1px solid #d9e3e8;
  border-radius: 6px;
  background: #eef3f5;
}
.announcement-live-preview-wrap__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.announcement-live-preview-wrap__heading strong { color: var(--brand-dark); font-size: 12px; }
.announcement-live-preview-wrap__heading span { color: var(--muted); font-size: 10px; }
.announcement-live-preview .announcement-card { max-width: 100%; }

/* Public announcement media */
.announcement-card__core { min-width: 0; display: flex; align-items: stretch; gap: 8px; }
.announcement-card__text { min-width: 0; flex: 1 1 auto; }
.announcement-media { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.announcement-media--top { margin: 7px 0 4px; }
.announcement-media--bottom { margin: 4px 0 6px; }
.announcement-media--left,
.announcement-media--right { flex: 0 0 min(42%, 190px); align-content: center; }
.announcement-media__item {
  width: var(--media-width, 100%);
  max-width: 100%;
  overflow: hidden;
  border-radius: 5px;
  background: #edf3f5;
}
.announcement-media--left .announcement-media__item,
.announcement-media--right .announcement-media__item { width: 100%; }
.announcement-media__item img,
.announcement-media__item video,
.announcement-media__item iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: inherit;
  background: #0d1c24;
}
.announcement-media__item img { max-height: 145px; object-fit: contain; background: #f3f7f8; }
.announcement-media__item video { max-height: 160px; object-fit: contain; }
.announcement-media__item iframe { aspect-ratio: 16 / 9; min-height: 92px; }
.announcement-card:has(.announcement-media) .announcement-card__body { -webkit-line-clamp: 3; }

/* Existing custom supplier autocomplete: strengthen the interaction */
.autocomplete-menu { z-index: 30; }
.autocomplete-option { width: 100%; text-align: left; }

@media (max-width: 700px) {
  .media-editor-item { grid-template-columns: 92px minmax(0,1fr); }
  .media-editor-item__controls { grid-template-columns: 1fr; }
  .media-editor-item__heading { grid-column: 1; }
  .youtube-adder { grid-template-columns: 1fr; }
  .announcement-media--left,
  .announcement-media--right { flex-basis: min(38%, 130px); }
  .announcement-media__item img { max-height: 105px; }
  .announcement-media__item video { max-height: 118px; }
}

/* ========================================================================
   Public dashboard redesign — 2026-09-28
   Mobile-first, fixed-viewport, high-readability operations dashboard.
   ======================================================================== */
:root {
  --max: 1920px;
  --canvas: #eef3f6;
  --surface: #ffffff;
  --surface-soft: #f7f9fb;
  --surface-blue: #edf4f8;
  --ink: #243743;
  --ink-strong: #102b3a;
  --muted: #687c87;
  --muted-2: #87969f;
  --line: #dce5ea;
  --line-strong: #cbd8df;
  --brand: #4b7795;
  --brand-mid: #386988;
  --brand-dark: #0b3556;
  --brand-pale: #eef5f8;
  --radius: 8px;
  --dashboard-price-row-height: 56px;
  --dashboard-pager-height: 36px;
  --dashboard-announcement-min: 106px;
  --dashboard-announcement-rich-min: 188px;
  --dashboard-announcement-gap: 8px;
}

body {
  background: var(--canvas);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site-header {
  background: #fff;
  border-top: 3px solid var(--brand-dark);
  border-bottom: 1px solid var(--line-strong);
}

.site-header__inner,
.site-footer__inner,
.page-shell,
.red-alert {
  width: min(calc(100% - 24px), var(--max));
  margin-inline: auto;
}

.site-header__inner {
  min-height: 56px;
  gap: 14px;
}

.brand__logo {
  width: 50px;
  height: 44px;
}

.header-admin {
  width: 36px;
  height: 36px;
  border-color: #cdd9df;
  border-radius: 7px;
  color: var(--brand-dark);
}

.header-admin:hover,
.icon-action:hover {
  background: var(--brand-pale);
  border-color: #afc2cc;
  transform: none;
}

.page-shell {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 10px 0 12px;
}

.hub-layout {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(340px, .72fr) minmax(0, 1.28fr);
  gap: 10px;
  align-items: stretch;
}

.hub-panel {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
}

.hub-panel::before {
  height: 3px;
  background: var(--brand-dark);
}

.hub-panel--announcements::before { background: var(--brand); }

.hub-panel__header {
  min-height: 58px;
  padding: 11px 14px 10px;
  gap: 12px;
  background: #fff;
  border-bottom-color: var(--line);
}

.eyebrow {
  margin-bottom: 4px;
  color: #66859a;
  font-size: 9.5px;
  letter-spacing: .12em;
  font-weight: 800;
}

.hub-panel__header h1,
.hub-panel__header h2 {
  color: #0f2b3b;
  font-size: 21px;
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 750;
}

.icon-action {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  border-color: #ccd9df;
}

.count-pill {
  max-width: 62%;
  padding: 5px 9px;
  border-color: #d6e0e5;
  background: #f7f9fa;
  color: #586e7a;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .01em;
}

/* Price changes */
.price-toolbar {
  min-height: 48px;
  padding: 6px 8px;
  gap: 8px;
  background: #f7f9fa;
  border-bottom-color: var(--line);
}

.segment-control {
  gap: 2px;
  padding: 3px;
  border-color: #d4dfe4;
  border-radius: 7px;
  background: #eaf0f3;
}

.segment-control__button {
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 5px;
  color: #617680;
  font-size: 10px;
  font-weight: 800;
}

.segment-control__button:hover {
  color: var(--brand-dark);
  background: rgba(255,255,255,.65);
}

.segment-control__button.is-active {
  background: #fff;
  color: var(--brand-dark);
}

.search-field {
  flex: 1 1 150px;
  min-width: 116px;
  max-width: 320px;
}

.search-field input {
  height: 34px;
  border-color: #cfdbe1;
  border-radius: 7px;
  color: #27404e;
  padding-left: 32px;
  font-size: 10.5px;
}

.search-field__icon,
.search-field__icon svg {
  width: 14px;
  height: 14px;
}

.price-row {
  height: var(--dashboard-price-row-height);
  grid-template-columns: 68px minmax(0, 1fr) minmax(76px, auto);
  gap: 10px;
  padding: 5px 12px 5px 10px;
  border-bottom-color: #e7edf0;
}

.price-row:hover { background: #f8fafb; }
.price-row--upcoming { background: #fffdf8; }
.price-row--archive { background: #fbfcfd; }

.price-row__date {
  padding-right: 9px;
  border-right-color: #dfe7eb;
}

.price-row__date strong {
  color: var(--brand-dark);
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: .025em;
}

.price-row__date span {
  margin-top: 3px;
  color: #7e8f99;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .055em;
}

.price-row__identity { gap: 2px; }

.price-row__supplier {
  color: #203a48;
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: .018em;
}

.price-row__products {
  color: #6f818b;
  font-size: 10px;
  line-height: 1.2;
}

.price-row__note {
  color: #7b8f99;
  font-size: 11px;
}

.price-row__value { gap: 3px; }

.price-row__increase {
  color: #082f51;
  font-size: 16px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -.02em;
}

.price-row__increase--text {
  font-size: 9.5px;
  letter-spacing: .03em;
}

.price-row__notice {
  color: #667e8a;
  font-size: 9.5px;
  font-weight: 800;
}

.panel-footer {
  min-height: 29px;
  padding: 5px 10px;
  background: #fafbfc;
  color: #7c8e97;
  font-size: 9.5px;
}

/* Announcements */
.announcement-feed {
  padding: 8px;
  background: #f6f8fa;
}

.announcement-page__cards {
  gap: var(--dashboard-announcement-gap);
}

.announcement-card {
  padding: 10px 12px 9px;
  border: 1px solid #d9e4e9;
  border-left: 4px solid var(--brand);
  border-radius: 7px;
  background: #fff;
}

.announcement-card[data-type="work"] { border-left-color: var(--brand-dark); }
.announcement-card[data-type="price_watch"] {
  border-left-color: #c99320;
  background: #fffdf7;
}

.announcement-card__top {
  gap: 8px;
  min-height: 13px;
}

.type-badge,
.pin-badge {
  font-size: 9.5px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .07em;
}

.type-badge { color: #123b5b; }
.pin-badge { color: #7c8c94; }

.announcement-card h3 {
  margin-top: 5px;
  color: #173342;
  font-size: 14px;
  line-height: 1.18;
  font-weight: 780;
  letter-spacing: -.01em;
}

.announcement-card__body {
  margin: 4px 0 7px;
  color: #536a76;
  font-size: 10.5px;
  line-height: 1.35;
  -webkit-line-clamp: 3;
}

.announcement-card__footer {
  gap: 8px;
  color: #7a8b94;
  font-size: 9.5px;
}

.announcement-card__footer a {
  color: var(--brand-dark);
  font-weight: 800;
}

.announcement-card__core {
  gap: 12px;
}

.announcement-media--left,
.announcement-media--right {
  flex: 0 0 min(34%, 210px);
}

.announcement-media__item {
  border-radius: 6px;
  background: #edf3f5;
}

.announcement-media__item img { max-height: 145px; }
.announcement-media__item video { max-height: 160px; }
.announcement-media__item iframe { min-height: 94px; }

.price-watch-list {
  margin-top: 7px;
  gap: 5px;
}

.price-watch-row {
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
}

.price-watch-row--soon {
  background: #fff8e8;
  border-color: #ead79a;
}

.price-watch-row--urgent {
  background: #fff0f1;
  border-color: #e5bdc0;
}

.price-watch-row__copy { gap: 1px; }
.price-watch-row__copy strong {
  color: #263d49;
  font-size: 10px;
  font-weight: 800;
}
.price-watch-row__copy span {
  color: #6f818a;
  font-size: 9.5px;
}
.price-watch-row__meta strong {
  color: #123b5b;
  font-size: 10px;
  font-weight: 850;
}
.price-watch-row__meta span {
  color: #778790;
  font-size: 9.5px;
  font-weight: 700;
}
.price-watch-row__link { font-size: 11px; }
.price-watch-more {
  margin-top: 6px;
  color: #123b5b;
  font-size: 9.5px;
  font-weight: 850;
}

/* Pagination */
.dashboard-pager {
  flex-basis: var(--dashboard-pager-height);
  min-height: var(--dashboard-pager-height);
  padding: 4px 7px 4px 10px;
  background: #fafbfc;
}

.dashboard-pager__range,
.dashboard-pager__status {
  color: #647985;
  font-size: 9.5px;
  font-weight: 800;
}

.dashboard-pager__button {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 6px;
  color: #4b6573;
  font-size: 17px;
}

.dashboard-pager__button:hover:not(:disabled) {
  transform: none;
  border-color: #d0dce2;
  background: #fff;
}

.empty-state {
  color: #72858f;
  font-size: 10.5px;
}

/* Red alert */
.red-alert-host {
  max-height: 52px;
  background: #9f3137;
}

.red-alert {
  min-height: 43px;
  gap: 12px;
  padding: 6px 0;
}

.red-alert__label {
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 850;
}

.red-alert__content strong { font-size: 11.5px; }
.red-alert__content span { margin-left: 8px; font-size: 10.5px; }
.red-alert a { font-size: 9.5px; }

.site-footer { display: none; }

/* Mobile-first interaction: one full-height panel, equal-priority tabs. */
@media (max-width: 860px) {
  :root {
    --dashboard-price-row-height: 54px;
    --dashboard-announcement-min: 102px;
    --dashboard-announcement-rich-min: 166px;
    --dashboard-announcement-gap: 6px;
  }

  .site-header__inner,
  .page-shell,
  .red-alert {
    width: min(calc(100% - 14px), var(--max));
  }

  .site-header__inner { min-height: 52px; }
  .brand__logo { width: 45px; height: 39px; }
  .header-admin { width: 34px; height: 34px; }

  .page-shell { padding: 7px 0 8px; }

  .mobile-panel-switcher {
    height: 40px;
    margin-bottom: 7px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    padding: 3px;
    border: 1px solid #cbd8df;
    border-radius: 8px;
    background: #dfe8ed;
  }

  .mobile-panel-switcher__button {
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #5b707c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .025em;
    text-transform: none;
  }

  .mobile-panel-switcher__button.is-active {
    background: #fff;
    color: var(--brand-dark);
  }

  .hub-layout {
    height: calc(100% - 47px);
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
  }

  body[data-mobile-panel="prices"] .hub-panel--announcements,
  body[data-mobile-panel="announcements"] .hub-panel--prices { display: none; }

  .hub-panel__header {
    min-height: 52px;
    padding: 8px 10px;
  }

  .hub-panel__header .eyebrow { display: none; }
  .hub-panel__header h1,
  .hub-panel__header h2 { font-size: 18px; }

  .price-toolbar {
    min-height: 46px;
    padding: 6px;
    gap: 6px;
  }

  .segment-control { flex: 1 1 auto; min-width: 0; }
  .segment-control__button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 30px;
    padding-inline: 6px;
    font-size: 9.5px;
  }

  .search-field {
    flex: 0 1 44%;
    min-width: 110px;
    max-width: 220px;
  }

  .search-field input {
    height: 32px;
    font-size: 10px;
  }

  .price-row {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 7px;
    padding: 4px 8px;
  }

  .price-row__date { padding-right: 6px; }
  .price-row__supplier { font-size: 10.5px; }
  .price-row__products { font-size: 9.5px; }
  .price-row__increase { font-size: 14px; }
  .price-row__notice { display: none; }

  .announcement-feed { padding: 6px; }
  .announcement-card { padding: 9px 10px 8px; }
  .announcement-card h3 { font-size: 13px; }
  .announcement-card__body { font-size: 10px; -webkit-line-clamp: 2; }
  .announcement-card__core { gap: 8px; }
  .announcement-media--left,
  .announcement-media--right { flex-basis: min(36%, 145px); }
  .announcement-media__item img { max-height: 112px; }
  .announcement-media__item video { max-height: 122px; }
  .announcement-media__item iframe { min-height: 82px; }

  .count-pill { max-width: 56%; font-size: 9.5px; }
}

@media (max-width: 480px) {
  .site-header__inner,
  .page-shell,
  .red-alert { width: calc(100% - 10px); }

  .hub-panel { border-radius: 7px; }
  .count-pill { max-width: 58%; padding-inline: 7px; }

  .price-toolbar { gap: 5px; }
  .segment-control__button { padding-inline: 5px; }
  .search-field { flex-basis: 41%; min-width: 102px; }
  .search-field__icon { left: 8px; }
  .search-field input { padding-left: 28px; padding-right: 7px; }

  .price-row {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 6px;
    padding-inline: 7px;
  }

  .price-row__date strong { font-size: 10px; }
  .price-row__date span { font-size: 9.5px; }
  .price-row__increase { font-size: 13.5px; }

  .announcement-card__footer { font-size: 9.5px; }
  .red-alert { grid-template-columns: auto 1fr; gap: 8px; }
  .red-alert > a { display: none; }
  .red-alert__content span { display: none; }
}

@media (max-height: 700px) {
  :root {
    --dashboard-price-row-height: 50px;
    --dashboard-announcement-min: 94px;
    --dashboard-announcement-rich-min: 156px;
  }

  .site-header__inner { min-height: 48px; }
  .brand__logo { width: 42px; height: 36px; }
  .page-shell { padding-top: 6px; padding-bottom: 6px; }
  .hub-panel__header { min-height: 48px; padding-top: 7px; padding-bottom: 7px; }
  .price-toolbar { min-height: 42px; padding-top: 4px; padding-bottom: 4px; }
  .announcement-card { padding-top: 8px; padding-bottom: 7px; }
  .announcement-card__body { -webkit-line-clamp: 2; }
  .red-alert-host { max-height: 47px; }
}


/* Announcement overflow --------------------------------------------------
   Keep the overall dashboard locked to the viewport, but allow the
   announcement content area to scroll when a long announcement or rich
   media cannot fit in the available panel height. The pager remains fixed
   at the bottom of the Announcements panel. */
.announcement-page__cards {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}

/* Do not truncate long announcement copy. If it makes a card taller than
   the available space, the cards container above becomes the scroll area. */
.announcement-card__body,
.announcement-card--has-media .announcement-card__body,
.announcement-card:has(.announcement-media) .announcement-card__body {
  display: block;
  overflow: visible;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
  white-space: pre-wrap;
}

/* Keep long cards intact inside the scrollable announcement feed. */
.announcement-card {
  flex: 0 0 auto;
}

/* Subtle scrollbars so scrolling is discoverable without adding visual noise. */
.announcement-page__cards {
  scrollbar-width: thin;
  scrollbar-color: #aebdc5 transparent;
}

.announcement-page__cards::-webkit-scrollbar {
  width: 8px;
}

.announcement-page__cards::-webkit-scrollbar-track {
  background: transparent;
}

.announcement-page__cards::-webkit-scrollbar-thumb {
  background: #b7c4ca;
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.announcement-page__cards::-webkit-scrollbar-thumb:hover {
  background: #8fa2ac;
  border: 2px solid transparent;
  background-clip: padding-box;
}


/* Announcement category tabs --------------------------------------------
   The announcement panel is intentionally scrollable by category so large
   notices, rich media, and busy Operations periods never force page scroll. */
.announcement-tabs {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .72fr) minmax(0, 1.35fr);
  gap: 4px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  background: #f7f9fa;
}

.announcement-tab {
  min-width: 0;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #617580;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 800;
  text-align: center;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}

.announcement-tab:hover {
  border-color: #d5e0e5;
  background: #fff;
  color: var(--brand-dark);
}

.announcement-tab.is-active {
  border-color: #ccd9df;
  background: #fff;
  color: var(--brand-dark);
}

.announcement-tab:focus-visible {
  outline: 2px solid rgba(74,118,150,.28);
  outline-offset: 1px;
}

.announcement-tab__label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.announcement-tab__count {
  flex: 0 0 auto;
  min-width: 21px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: #e8eff3;
  color: #526b79;
  font-size: 9.5px;
  line-height: 1;
  font-weight: 850;
}

.announcement-tab.is-active .announcement-tab__count {
  background: var(--brand-dark);
  color: #fff;
}

/* Red alerts stay in the global emergency strip and are also repeated in
   Alerts & Operations so their full text remains available in the board. */
.announcement-card[data-type="red_alert"] {
  border-color: #e2b9bc;
  border-left-color: var(--danger);
  background: #fff7f7;
}

.announcement-card[data-type="red_alert"] .type-badge,
.announcement-card[data-type="red_alert"] h3 {
  color: var(--danger-dark);
}

/* All entries in the selected announcement tab live in one scroll surface.
   No announcement pagination is used; the Price Changes panel still pages. */
.announcement-feed,
.announcement-page {
  min-height: 0;
}

.announcement-page__cards {
  height: 100%;
  max-height: 100%;
  padding-bottom: 2px;
}

.announcement-page__cards:focus-visible {
  outline: 2px solid rgba(74,118,150,.18);
  outline-offset: -2px;
}

@media (max-width: 860px) {
  .announcement-tabs {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .7fr) minmax(0, 1.25fr);
    gap: 3px;
    padding: 5px 6px;
  }

  .announcement-tab {
    min-height: 38px;
    gap: 5px;
    padding: 5px 6px;
    font-size: 9.5px;
  }

  .announcement-tab__count {
    min-width: 19px;
    height: 19px;
    padding-inline: 4px;
  }
}

@media (max-width: 480px) {
  .announcement-tabs {
    grid-template-columns: 1fr .72fr 1.3fr;
    padding-inline: 4px;
  }

  .announcement-tab {
    min-height: 42px;
    gap: 4px;
    padding-inline: 4px;
  }
}

/* ========================================================================
   Interface refinement - 2026-09-29
   Quiet, high-contrast, mobile-first dashboard styling.
   ======================================================================== */
:root {
  --brand: #396f8f;
  --brand-mid: #2d6283;
  --brand-dark: #053856;
  --brand-deep: #032a42;
  --brand-pale: #edf4f8;
  --brand-pale-2: #f4f8fa;
  --canvas: #eaf0f3;
  --surface: #ffffff;
  --surface-soft: #f7f9fa;
  --surface-blue: #eef5f8;
  --ink: #263b46;
  --ink-strong: #102d3c;
  --muted: #6d808a;
  --muted-2: #8b9aa2;
  --line: #dce5e9;
  --line-strong: #c7d5dc;
  --success: #2c7353;
  --warning: #9a6b15;
  --danger: #9f3439;
  --danger-dark: #742327;
  --danger-pale: #fff3f3;
  --radius: 8px;
  --dashboard-price-row-height: 58px;
  --dashboard-pager-height: 38px;
}

html {
  background: var(--canvas);
}

body {
  background:
    linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,0) 130px),
    var(--canvas);
  color: var(--ink);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid rgba(57,111,143,.34);
  outline-offset: 2px;
}

/* Shell ----------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 20;
  border-top: 3px solid var(--brand-dark);
  border-bottom: 1px solid #cbd8de;
  background: rgba(255,255,255,.97);
}

.site-header__inner,
.page-shell,
.red-alert,
.site-footer__inner {
  width: min(calc(100% - 28px), var(--max));
}

.site-header__inner {
  min-height: 62px;
  gap: 18px;
}

.brand {
  gap: 11px;
  color: inherit;
}

.brand__logo {
  width: 51px;
  height: 46px;
  flex: 0 0 auto;
}

.brand__copy {
  min-width: 0;
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.brand__copy strong {
  color: var(--brand-dark);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.012em;
  white-space: nowrap;
}

.brand__copy small {
  color: #7a8c95;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: .025em;
  white-space: nowrap;
}

.site-header__actions {
  gap: 8px;
}

.header-admin,
.icon-action {
  border: 1px solid #cad8df;
  background: #f9fbfc;
  color: var(--brand-dark);
}

.header-admin {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.header-admin:hover,
.icon-action:hover {
  border-color: #aac0cc;
  background: #edf5f8;
  color: var(--brand-deep);
  transform: none;
}

.page-shell {
  padding: 12px 0 13px;
}

.hub-layout {
  grid-template-columns: minmax(350px, .78fr) minmax(0, 1.22fr);
  gap: 12px;
}

.hub-panel {
  border: 1px solid #c7d5dc;
  border-radius: 9px;
  background: var(--surface);
}

.hub-panel::before {
  height: 3px;
  background: var(--brand-dark);
}

.hub-panel--announcements::before {
  background: var(--brand);
}

.hub-panel__header {
  min-height: 62px;
  padding: 12px 14px 10px;
  border-bottom-color: #dbe5e9;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
}

.eyebrow {
  margin-bottom: 4px;
  color: #6e8999;
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: .13em;
}

.hub-panel__header h1,
.hub-panel__header h2 {
  color: #0d2d3e;
  font-size: 22px;
  font-weight: 780;
  line-height: 1.05;
  letter-spacing: -.028em;
}

.icon-action {
  width: 35px;
  height: 35px;
  border-radius: 7px;
}

.count-pill {
  max-width: 62%;
  padding: 5px 9px;
  border: 1px solid #ccdae1;
  background: #eef4f7;
  color: #496574;
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: .015em;
}

/* Price changes ---------------------------------------------------------- */
.price-toolbar {
  min-height: 50px;
  padding: 7px 8px;
  gap: 8px;
  border-bottom-color: #dce5e9;
  background: #f5f8f9;
}

.segment-control {
  gap: 2px;
  padding: 3px;
  border: 1px solid #d0dce2;
  border-radius: 7px;
  background: #e7eef2;
}

.segment-control__button {
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 5px;
  color: #637984;
  font-size: 10px;
  font-weight: 800;
}

.segment-control__button:hover {
  background: rgba(255,255,255,.72);
  color: var(--brand-dark);
}

.segment-control__button.is-active {
  background: var(--brand-dark);
  color: #fff;
}

.search-field {
  max-width: 330px;
}

.search-field input {
  height: 35px;
  border: 1px solid #cbd8df;
  border-radius: 7px;
  background: #fff;
  color: #213946;
  padding-left: 32px;
  font-size: 10.5px;
}

.search-field input::placeholder {
  color: #8b9aa2;
}

.search-field input:focus {
  border-color: var(--brand);
  outline: 2px solid rgba(57,111,143,.12);
}

.price-compact-list {
  background: #fff;
}

.price-row {
  position: relative;
  height: var(--dashboard-price-row-height);
  grid-template-columns: 70px minmax(0,1fr) minmax(78px,auto);
  gap: 11px;
  padding: 5px 12px 5px 11px;
  border-bottom: 1px solid #e7edf0;
  background: #fff;
  transition: background .13s ease, border-color .13s ease;
}

.price-row::after {
  content: '';
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: transparent;
}

.price-row--upcoming::after {
  background: #c99828;
}

.price-row--archive::after {
  background: #b5c0c6;
}

.price-row:hover {
  background: #f5f9fb;
}

.price-row--upcoming {
  background: #fffdf8;
}

.price-row--archive {
  background: #fbfcfc;
}

.price-row__date {
  padding-right: 9px;
  border-right: 1px solid #dde6ea;
}

.price-row__date strong {
  color: var(--brand-dark);
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: .025em;
}

.price-row__date span {
  margin-top: 3px;
  color: #83939b;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: .055em;
}

.price-row__identity {
  gap: 3px;
}

.price-row__supplier {
  color: #1b3543;
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: .016em;
}

.price-row__products {
  color: #6e8089;
  font-size: 10px;
  line-height: 1.2;
}

.price-row__note {
  color: #71858f;
}

.price-row__increase {
  color: var(--brand-dark);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -.02em;
}

.price-row--upcoming .price-row__increase {
  color: #8b6114;
}

.price-row--archive .price-row__increase {
  color: #60737d;
}

.price-row__notice {
  color: #657b87;
  font-size: 9.5px;
  font-weight: 800;
}

.price-row__notice:hover {
  color: var(--brand-dark);
}

.panel-footer {
  min-height: 30px;
  padding: 5px 10px;
  border-top-color: #dce5e9;
  background: #f8fafb;
  color: #7b8c94;
  font-size: 9.5px;
}

/* Announcements ---------------------------------------------------------- */
.announcement-tabs {
  gap: 4px;
  padding: 7px 8px;
  border-bottom: 1px solid #dce5e9;
  background: #f5f8f9;
}

.announcement-tab {
  min-height: 36px;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #5e7480;
  font-size: 10px;
  font-weight: 800;
}

.announcement-tab:hover {
  border-color: #cfdce2;
  background: #fff;
  color: var(--brand-dark);
}

.announcement-tab.is-active {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: #fff;
}

.announcement-tab__count {
  min-width: 21px;
  height: 20px;
  border: 1px solid #d4e0e5;
  background: #e6eef2;
  color: #526d7a;
  font-size: 9.5px;
  font-weight: 850;
}

.announcement-tab.is-active .announcement-tab__count {
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.16);
  color: #fff;
}

.announcement-feed {
  padding: 9px;
  background: #f4f7f9;
}

.announcement-page__cards {
  gap: 8px;
  padding-right: 3px;
}

.announcement-card {
  position: relative;
  padding: 11px 12px 10px;
  border: 1px solid #d6e1e6;
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: #fff;
  transition: border-color .14s ease, background .14s ease;
}

.announcement-card:hover {
  border-color: #c4d4dc;
  background: #fcfefe;
}

.announcement-card[data-type="work"] {
  border-left-color: var(--brand-dark);
}

.announcement-card[data-type="general"] {
  border-left-color: var(--brand);
}

.announcement-card[data-type="birthday"] {
  border-left-color: #aa6a88;
  background: #fffafd;
}

.announcement-card[data-type="anniversary"] {
  border-left-color: #8a7329;
  background: #fffdf7;
}

.announcement-card[data-type="award"] {
  border-left-color: #76568c;
  background: #fdfbff;
}

.announcement-card[data-type="safety"] {
  border-left-color: #a77618;
  background: #fffdf8;
}

.announcement-card[data-type="red_alert"] {
  border-color: #e1b9bc;
  border-left-color: var(--danger);
  background: #fff7f7;
}

.announcement-card[data-type="price_watch"] {
  border-left-color: #c38b18;
  background: #fffdf7;
}

.announcement-card__top {
  min-height: 14px;
}

.type-badge {
  color: #16445f;
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: .075em;
}

.pin-badge {
  padding: 2px 6px;
  border: 1px solid #d8e1e5;
  border-radius: 999px;
  background: #f6f8f9;
  color: #71828a;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .035em;
}

.announcement-card[data-type="red_alert"] .type-badge,
.announcement-card[data-type="red_alert"] h3 {
  color: var(--danger-dark);
}

.announcement-card h3 {
  margin-top: 6px;
  color: #183544;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.18;
  letter-spacing: -.012em;
}

.announcement-card__body {
  margin: 5px 0 7px;
  color: #526a76;
  font-size: 10.5px;
  line-height: 1.38;
}

.announcement-card__footer {
  color: #7b8b93;
  font-size: 9.5px;
}

.announcement-card__footer a {
  color: var(--brand-dark);
  font-weight: 850;
}

.announcement-card__core {
  gap: 12px;
}

.announcement-media__item {
  border: 1px solid #d9e3e7;
  border-radius: 7px;
  background: #edf3f5;
}

.price-watch-row {
  gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
}

.price-watch-row--soon {
  border-color: #ead89e;
  background: #fff8e8;
}

.price-watch-row--urgent {
  border-color: #e3bfc2;
  background: #fff0f1;
}

.price-watch-row__copy strong,
.price-watch-row__meta strong {
  font-size: 10px;
}

.price-watch-more {
  color: var(--brand-dark);
}

/* Pagination / empty states --------------------------------------------- */
.dashboard-pager {
  flex-basis: var(--dashboard-pager-height);
  min-height: var(--dashboard-pager-height);
  padding: 4px 7px 4px 10px;
  border-top-color: #dce5e9;
  background: #f8fafb;
}

.dashboard-pager__range,
.dashboard-pager__status {
  color: #667a85;
  font-size: 9.5px;
  font-weight: 800;
}

.dashboard-pager__button {
  width: 29px;
  min-width: 29px;
  height: 29px;
  border: 1px solid #d4dfe4;
  border-radius: 6px;
  background: #fff;
  color: #486573;
}

.dashboard-pager__button:hover:not(:disabled) {
  border-color: #afc3cd;
  background: #edf5f8;
  color: var(--brand-dark);
  transform: none;
}

.dashboard-pager__button:disabled {
  border-color: transparent;
  background: transparent;
}

.empty-state {
  color: #70838d;
  font-size: 10.5px;
}

/* Red alerts ------------------------------------------------------------- */
.red-alert-host {
  max-height: 52px;
  background: #9d3036;
}

.red-alert {
  min-height: 43px;
  gap: 12px;
  padding: 6px 0;
}

.red-alert__label {
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 900;
}

.red-alert__content strong {
  font-size: 11.5px;
}

.red-alert__content span {
  font-size: 10.5px;
}

/* Admin ------------------------------------------------------------------ */
.admin-dialog {
  width: min(1540px, calc(100vw - 24px));
  height: min(940px, calc(100vh - 24px));
  border: 1px solid #9fb3be;
  border-radius: 10px;
  background: #edf2f5;
}

.admin-dialog::backdrop {
  background: rgba(5,34,52,.68);
}

.admin-dialog__header {
  min-height: 74px;
  padding: 14px 18px;
  border-bottom: 1px solid #174b69;
  background: var(--brand-dark);
}

.admin-dialog__header .eyebrow {
  color: #b9d0dc;
}

.admin-dialog__header h2 {
  color: #fff;
  font-size: 22px;
  letter-spacing: -.02em;
}

.admin-dialog__header .icon-button {
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.08);
  color: #fff;
}

.admin-dialog__header .icon-button:hover {
  background: rgba(255,255,255,.14);
}

.admin-toolbar {
  top: 74px;
  padding: 10px 16px;
  border-bottom: 1px solid #cbd8df;
  background: #f8fafb;
}

.admin-tabs {
  gap: 5px;
}

.admin-tab {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #d0dbe1;
  border-radius: 6px;
  background: #fff;
  color: #4c626e;
  font-size: 12px;
  font-weight: 750;
}

.admin-tab:hover {
  border-color: #afc3cd;
  background: #eef5f8;
  color: var(--brand-dark);
}

.admin-tab.is-active {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: #fff;
}

.admin-panel {
  padding: 16px;
}

.admin-grid {
  gap: 14px;
}

.panel-card {
  border: 1px solid #ccd9df;
  border-radius: 8px;
  background: #fff;
  padding: 17px;
}

.panel-card--list {
  padding: 0;
}

.panel-card__heading {
  gap: 12px;
}

.panel-card__heading p,
.panel-card > p {
  color: #6f818a;
  font-size: 12.5px;
}

.panel-card h3 {
  color: #173544;
  font-size: 16px;
  font-weight: 780;
  letter-spacing: -.01em;
}

.button {
  min-height: 38px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  padding: 9px 14px;
  font-weight: 750;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}

.button:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.button--outline {
  border-color: #9fb8c5;
  background: #fff;
  color: var(--brand-dark);
}

.button--outline:hover {
  border-color: var(--brand-dark);
  background: #edf5f8;
  color: var(--brand-dark);
}

.button--text {
  min-height: 32px;
  background: transparent;
  color: var(--brand-dark);
}

.button--text:hover {
  border-color: transparent;
  background: #edf5f8;
}

.button--danger {
  border-color: #d9b2b5;
  background: #fff;
  color: var(--danger);
}

.button--danger:hover {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

.button--small {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 12px;
}

input,
select,
textarea {
  border: 1px solid #c6d4db;
  border-radius: 6px;
  background: #fff;
  color: #203946;
  padding: 10px 11px;
  font-size: 13px;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #afc1ca;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  outline: 2px solid rgba(57,111,143,.13);
}

label > span {
  color: #425a66;
  font-size: 12px;
  font-weight: 750;
}

.option-box,
.media-composer,
.announcement-live-preview-wrap {
  border: 1px solid #d0dce2;
  border-radius: 7px;
  background: #f6f9fa;
}

.admin-list {
  border-top-color: #dfe7eb;
}

.admin-list-item {
  padding: 12px 15px;
  border-bottom-color: #e5ebee;
}

.admin-list-item:hover {
  background: #f6fafb;
}

.admin-list-item__title {
  color: #213b48;
  font-weight: 800;
}

.admin-list-item__meta {
  color: #71838c;
}

.autocomplete-menu {
  border-color: #b9cbd4;
  border-radius: 7px;
}

.autocomplete-option {
  border-radius: 5px;
}

.autocomplete-option:hover,
.autocomplete-option.is-active {
  background: #edf5f8;
  color: var(--brand-dark);
}

.media-paste-zone {
  border-color: #a9bec8;
  border-radius: 7px;
}

.media-paste-zone:focus,
.media-paste-zone.is-dragging,
.media-paste-zone.is-dragover {
  border-color: var(--brand);
  background: #edf5f8;
}

.toast {
  border-radius: 7px;
  background: #12374c;
}

/* Mobile ----------------------------------------------------------------- */
@media (max-width: 860px) {
  :root {
    --dashboard-price-row-height: 54px;
  }

  .site-header__inner,
  .page-shell,
  .red-alert {
    width: min(calc(100% - 14px), var(--max));
  }

  .site-header__inner {
    min-height: 56px;
  }

  .brand__logo {
    width: 45px;
    height: 40px;
  }

  .brand__copy strong {
    font-size: 13px;
  }

  .brand__copy small {
    font-size: 9.5px;
  }

  .header-admin {
    width: 35px;
    height: 35px;
  }

  .page-shell {
    padding: 7px 0 8px;
  }

  .mobile-panel-switcher {
    height: 42px;
    margin-bottom: 7px;
    gap: 3px;
    padding: 3px;
    border: 1px solid #c7d5dc;
    border-radius: 8px;
    background: #dce7ec;
  }

  .mobile-panel-switcher__button {
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #59717d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .015em;
    text-transform: none;
  }

  .mobile-panel-switcher__button.is-active {
    background: var(--brand-dark);
    color: #fff;
  }

  .hub-layout {
    height: calc(100% - 49px);
    gap: 0;
  }

  .hub-panel__header {
    min-height: 54px;
    padding: 9px 10px;
  }

  .hub-panel__header h1,
  .hub-panel__header h2 {
    font-size: 18px;
  }

  .price-toolbar {
    min-height: 47px;
    padding: 6px;
    gap: 6px;
  }

  .segment-control__button {
    padding-inline: 7px;
    font-size: 9.5px;
  }

  .search-field {
    flex-basis: 44%;
    max-width: 220px;
  }

  .search-field input {
    height: 32px;
    font-size: 10px;
  }

  .price-row {
    grid-template-columns: 58px minmax(0,1fr) auto;
    gap: 7px;
    padding: 4px 8px;
  }

  .price-row__date {
    padding-right: 6px;
  }

  .price-row__supplier {
    font-size: 10.5px;
  }

  .price-row__products {
    font-size: 9.5px;
  }

  .price-row__increase {
    font-size: 14px;
  }

  .price-row__notice {
    display: none;
  }

  .announcement-tabs {
    gap: 3px;
    padding: 5px 6px;
  }

  .announcement-tab {
    min-height: 38px;
    gap: 5px;
    padding: 5px 6px;
    font-size: 9.5px;
  }

  .announcement-feed {
    padding: 6px;
  }

  .announcement-card {
    padding: 9px 10px 8px;
  }

  .announcement-card h3 {
    font-size: 13px;
  }

  .announcement-card__body {
    font-size: 10px;
  }

  .admin-dialog {
    width: calc(100vw - 10px);
    height: calc(100vh - 10px);
    border-radius: 8px;
  }

  .admin-dialog__header {
    min-height: 66px;
    padding: 12px 14px;
  }

  .admin-dialog__header h2 {
    font-size: 19px;
  }

  .admin-toolbar {
    top: 66px;
    padding: 8px 10px;
  }

  .admin-panel {
    padding: 10px;
  }

  .panel-card {
    padding: 14px;
  }
}

@media (max-width: 540px) {
  .site-header__inner,
  .page-shell,
  .red-alert {
    width: calc(100% - 10px);
  }

  .brand {
    gap: 8px;
  }

  .brand__logo {
    width: 42px;
    height: 37px;
  }

  .brand__copy small {
    display: none;
  }

  .brand__copy strong {
    font-size: 12.5px;
  }

  .count-pill {
    max-width: 58%;
    padding-inline: 7px;
  }

  .price-toolbar {
    gap: 5px;
  }

  .segment-control__button {
    padding-inline: 5px;
  }

  .search-field {
    flex-basis: 41%;
    min-width: 102px;
  }

  .search-field__icon {
    left: 8px;
  }

  .search-field input {
    padding-left: 28px;
    padding-right: 7px;
  }

  .price-row {
    grid-template-columns: 54px minmax(0,1fr) auto;
    gap: 6px;
    padding-inline: 7px;
  }

  .announcement-tabs {
    padding-inline: 4px;
  }

  .announcement-tab {
    min-height: 42px;
    gap: 4px;
    padding-inline: 4px;
  }

  .announcement-tab__label {
    line-height: 1.05;
  }

  .admin-dialog__header .eyebrow {
    display: none;
  }
}

@media (max-height: 700px) {
  :root {
    --dashboard-price-row-height: 50px;
  }

  .site-header__inner {
    min-height: 50px;
  }

  .brand__logo {
    width: 42px;
    height: 36px;
  }

  .page-shell {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .hub-panel__header {
    min-height: 49px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .hub-panel__header .eyebrow {
    display: none;
  }

  .price-toolbar {
    min-height: 42px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .announcement-card {
    padding-top: 8px;
    padding-bottom: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* Announcement reading modal --------------------------------------------- */
.announcement-card--clickable {
  cursor: pointer;
}

.announcement-card--clickable:hover {
  border-color: #b8ccd6;
  background: #fbfdfe;
}

.announcement-card--clickable:focus-visible {
  outline: 3px solid rgba(57,111,143,.22);
  outline-offset: -1px;
  border-color: var(--brand);
}

.announcement-card__footer-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.announcement-card__open-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #416b7d;
  font-size: 9.5px;
  font-weight: 850;
  white-space: nowrap;
}

.announcement-card__open-hint::after {
  content: '↗';
  display: inline-block;
  font-size: 10px;
  transform: rotate(45deg);
}

.announcement-detail-dialog {
  width: min(860px, calc(100vw - 28px));
  max-width: 860px;
  max-height: min(860px, calc(100dvh - 28px));
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
}

.announcement-detail-dialog::backdrop {
  background: rgba(6, 24, 35, .72);
  backdrop-filter: blur(3px);
}

.announcement-detail-shell {
  position: relative;
  width: 100%;
  max-height: min(860px, calc(100dvh - 28px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #b9cbd4;
  border-radius: 14px;
  background: #fff;
}

.announcement-detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #d4e0e5;
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  color: #49616d;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.announcement-detail-close:hover {
  border-color: #bacbd3;
  background: #f2f7f9;
  color: var(--brand-dark);
}

.announcement-detail-close:focus-visible {
  outline: 3px solid rgba(57,111,143,.22);
  outline-offset: 2px;
}

.announcement-detail-close svg {
  width: 18px;
  height: 18px;
}

.announcement-detail-content {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.announcement-detail-card {
  --announcement-accent: var(--brand);
  min-height: 280px;
  border-top: 5px solid var(--announcement-accent);
  background: #fff;
}

.announcement-detail-card[data-type="work"] { --announcement-accent: var(--brand-dark); }
.announcement-detail-card[data-type="birthday"] { --announcement-accent: #aa6a88; }
.announcement-detail-card[data-type="anniversary"] { --announcement-accent: #8a7329; }
.announcement-detail-card[data-type="award"] { --announcement-accent: #76568c; }
.announcement-detail-card[data-type="safety"] { --announcement-accent: #a77618; }
.announcement-detail-card[data-type="red_alert"] { --announcement-accent: var(--danger); }

.announcement-detail-header {
  padding: 30px 72px 22px 30px;
  border-bottom: 1px solid #e0e8ec;
  background: linear-gradient(180deg, #fbfdfe 0%, #f6f9fa 100%);
}

.announcement-detail-meta {
  min-height: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.announcement-detail-type,
.announcement-detail-pinned {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.announcement-detail-type {
  border: 1px solid color-mix(in srgb, var(--announcement-accent) 28%, white);
  background: color-mix(in srgb, var(--announcement-accent) 8%, white);
  color: var(--announcement-accent);
}

.announcement-detail-pinned {
  border: 1px solid #d7e1e5;
  background: #fff;
  color: #6e7f88;
}

.announcement-detail-title {
  max-width: 720px;
  margin: 0;
  color: #102f3f;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.announcement-detail-card[data-type="red_alert"] .announcement-detail-title {
  color: var(--danger-dark);
}

.announcement-detail-timing {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  color: #6d7f89;
  font-size: 11px;
  font-weight: 700;
}

.announcement-detail-timing__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--announcement-accent);
}

.announcement-detail-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px 30px 0;
}

.announcement-detail-media--single {
  grid-template-columns: minmax(0, 1fr);
}

.announcement-detail-media__item {
  width: 100%;
  overflow: hidden;
  border: 1px solid #d8e3e8;
  border-radius: 10px;
  background: #f3f7f8;
}

.announcement-detail-media__item img,
.announcement-detail-media__item video,
.announcement-detail-media__item iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 9px;
  background: #101b22;
}

.announcement-detail-media__item img {
  max-height: 480px;
  object-fit: contain;
  background: #f4f7f9;
}

.announcement-detail-media__item video {
  max-height: 480px;
  object-fit: contain;
}

.announcement-detail-media__item iframe {
  aspect-ratio: 16 / 9;
  min-height: 260px;
}

.announcement-detail-body {
  padding: 26px 30px 28px;
}

.announcement-detail-body p {
  max-width: 760px;
  margin: 0;
  color: #344e5b;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.announcement-detail-body__empty {
  color: #7d8e96 !important;
  font-style: italic;
}

.announcement-detail-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 30px 28px;
}

.announcement-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--brand-dark);
  border-radius: 6px;
  background: var(--brand-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}

.announcement-detail-link:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

@media (max-width: 680px) {
  .announcement-card__open-hint {
    font-size: 9.5px;
  }

  .announcement-detail-dialog {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
  }

  .announcement-detail-shell {
    max-height: calc(100dvh - 12px);
    border-radius: 10px;
  }

  .announcement-detail-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }

  .announcement-detail-header {
    padding: 24px 56px 18px 18px;
  }

  .announcement-detail-title {
    font-size: clamp(21px, 7vw, 28px);
  }

  .announcement-detail-media {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 18px 0;
  }

  .announcement-detail-media__item iframe {
    min-height: 0;
  }

  .announcement-detail-body {
    padding: 20px 18px 22px;
  }

  .announcement-detail-body p {
    font-size: 14px;
    line-height: 1.65;
  }

  .announcement-detail-footer {
    padding: 0 18px 22px;
  }

  .announcement-detail-link {
    width: 100%;
  }
}

/* Guided compact admin workspace ----------------------------------------- */
.admin-dialog {
  width: min(1540px, calc(100vw - 16px));
  height: calc(100dvh - 16px);
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: 10px;
}

.admin-dialog[open] {
  display: grid;
}

.admin-dialog__header {
  position: relative;
  top: auto;
  z-index: 8;
  min-height: 64px;
  padding: 10px 16px;
}

.admin-dialog__title-group {
  min-width: 0;
}

.admin-dialog__header .eyebrow {
  margin-bottom: 3px;
  font-size: 9.5px;
}

.admin-dialog__header h2 {
  font-size: 20px;
}

.admin-dialog__subtitle {
  margin: 3px 0 0;
  color: #c8d9e2;
  font-size: 10.5px;
  line-height: 1.2;
}

.admin-dialog__header .icon-button {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.admin-login {
  width: min(680px, calc(100% - 28px));
  max-width: none;
  align-self: center;
  justify-self: center;
  margin: 0;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
  gap: 22px;
  align-items: center;
}

.admin-login__copy h3 {
  margin-top: 7px;
  font-size: 18px;
}

.admin-login__copy p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.admin-login__badge {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--brand-pale);
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-app {
  min-height: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.admin-toolbar {
  position: relative;
  top: auto;
  z-index: 7;
  min-height: 52px;
  padding: 7px 11px;
  gap: 10px;
}

.admin-tabs {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(125px, 1fr));
  gap: 5px;
}

.admin-tab {
  min-width: 0;
  min-height: 38px;
  padding: 5px 9px;
  display: grid;
  gap: 1px;
  align-content: center;
  text-align: left;
}

.admin-tab span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 850;
}

.admin-tab small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #81919a;
  font-size: 9.5px;
  font-weight: 650;
}

.admin-tab.is-active small {
  color: #c9d9e1;
}

.admin-status {
  min-height: 0;
  margin: 0 11px;
  font-size: 11px;
}

.admin-status:not(:empty) {
  margin-top: 6px;
  padding: 6px 9px;
}

.admin-panel {
  min-height: 0;
  height: 100%;
  padding: 9px 11px 11px;
  overflow: hidden;
}

.admin-panel.is-active {
  display: block;
}

.admin-grid,
.admin-grid--roster {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(470px, .92fr) minmax(500px, 1.08fr);
  gap: 10px;
  align-items: stretch;
}

.admin-grid--announcements {
  grid-template-columns: minmax(590px, 1.12fr) minmax(430px, .88fr);
}

.admin-grid--roster {
  grid-template-columns: minmax(430px, .8fr) minmax(520px, 1.2fr);
}

.panel-card {
  min-height: 0;
}

.panel-card__heading--compact {
  padding: 10px 12px 8px;
  border-bottom: 1px solid #e2e9ed;
}

.panel-card__heading--compact h3 {
  margin-top: 2px;
  font-size: 14.5px;
}

.panel-card__heading--compact p {
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.25;
}

.guided-kicker {
  display: block;
  color: var(--brand);
  font-size: 9.5px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.guided-editor,
.compact-editor {
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.compact-editor {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.guided-steps {
  min-height: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0 8px;
  border-bottom: 1px solid #dce6ea;
  background: #f7fafb;
}

.guided-steps--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guided-step {
  min-width: 0;
  min-height: 48px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #667a84;
  text-align: left;
}

.guided-step:hover {
  background: #eef5f8;
  color: var(--brand-dark);
}

.guided-step.is-active {
  border-bottom-color: var(--brand);
  background: #fff;
  color: var(--brand-dark);
}

.guided-step__number {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border: 1px solid #bacbd4;
  border-radius: 50%;
  background: #fff;
  color: #667b86;
  font-size: 10px;
  font-weight: 900;
}

.guided-step.is-active .guided-step__number {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: #fff;
}

.guided-step__copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.guided-step__copy strong,
.guided-step__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guided-step__copy strong {
  font-size: 10.5px;
}

.guided-step__copy small {
  color: #87979f;
  font-size: 9.5px;
}

.guided-stage {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.guide-panel {
  display: none;
  height: 100%;
  min-height: 0;
  padding: 9px 11px 10px;
  flex-direction: column;
  gap: 8px;
}

.guide-panel.is-active {
  display: flex;
}

.guide-tip {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d6e4ea;
  border-radius: 6px;
  background: #f3f8fa;
  color: #5e727d;
  font-size: 10.5px;
  line-height: 1.25;
}

.guide-tip strong {
  flex: 0 0 auto;
  color: var(--brand-dark);
  font-size: 10.5px;
}

.guide-panel__body {
  min-height: 0;
  display: grid;
  gap: 8px;
  align-content: start;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #b8c8d0 transparent;
}

.guide-panel__body--scrollable {
  padding-right: 2px;
}

.guide-form-split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.guide-grow-field {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(90px, 1fr);
}

.guide-grow-field textarea {
  min-height: 96px;
  height: 100%;
}

.guide-actions {
  flex: 0 0 auto;
  min-height: 38px;
  margin-top: auto;
  padding-top: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #e4eaed;
}

.guide-actions--end {
  justify-content: flex-end;
}

.guide-actions__hint {
  margin-right: auto;
  color: #81919a;
  font-size: 9.5px;
}

.guide-actions__primary {
  display: flex;
  align-items: center;
  gap: 6px;
}

.guided-editor input,
.guided-editor select,
.guided-editor textarea,
.compact-editor input,
.compact-editor select,
.compact-editor textarea,
.tool-card input,
.tool-card select {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 11.5px;
}

.guided-editor textarea,
.compact-editor textarea {
  min-height: 60px;
}

.guided-editor label > span,
.compact-editor label > span {
  margin-bottom: 3px;
  font-size: 10.5px;
}

.guided-editor .form-grid,
.compact-editor .form-grid {
  gap: 7px;
}

.option-box--compact {
  padding: 8px 9px;
}

.option-box--inline {
  padding: 8px 9px;
}

.option-box--grow {
  min-width: 0;
  flex: 1 1 auto;
}

.check-row > span {
  min-width: 0;
}

.check-row > span strong,
.check-row > span small {
  display: block;
}

.check-row > span strong {
  color: #344d59;
  font-size: 10.5px;
}

.check-row > span small {
  margin-top: 1px;
  color: #809099;
  font-size: 9.5px;
  font-weight: 600;
}

.nested-options--compact {
  margin-top: 7px;
  padding-top: 7px;
  gap: 7px;
}

.recipient-picker {
  max-height: 105px;
  padding: 5px;
}

.recipient-option {
  padding: 4px 3px;
  font-size: 10.5px;
}

.recipient-option small {
  font-size: 9.5px;
}

.option-row {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.admin-side-stack {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
}

.admin-manage-card {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-manage-card .admin-search {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-bottom: 1px solid #e1e8eb;
}

.admin-manage-card .admin-search input {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 11px;
}

.admin-manage-card .admin-list,
.panel-card--list > .admin-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
}

.admin-list-item {
  min-height: 50px;
  padding: 8px 10px;
  gap: 8px;
}

.admin-list-item__title {
  font-size: 11.5px;
}

.admin-list-item__meta {
  margin-top: 2px;
  font-size: 9.5px;
  line-height: 1.25;
}

.admin-list-item__actions button {
  min-height: 27px;
  padding: 4px 7px;
  font-size: 10px;
}

.bulk-panel--compact {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.bulk-panel--compact summary {
  min-height: 43px;
  padding: 7px 10px;
  display: grid;
  align-content: center;
  gap: 1px;
  list-style: none;
}

.bulk-panel--compact summary::-webkit-details-marker {
  display: none;
}

.bulk-panel--compact summary::after {
  content: '+';
  position: absolute;
  right: 12px;
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 600;
}

.bulk-panel--compact[open] summary::after {
  content: '−';
}

.bulk-panel--compact summary {
  position: relative;
  padding-right: 34px;
}

.bulk-panel--compact summary span {
  color: var(--brand-dark);
  font-size: 10.5px;
  font-weight: 850;
}

.bulk-panel--compact summary small {
  color: #81919a;
  font-size: 9.5px;
  font-weight: 600;
}

.bulk-panel__body {
  padding: 7px 10px 9px;
  border-top: 1px solid #e1e8eb;
}

.bulk-panel__body p {
  margin: 0 0 6px;
  color: #6e8089;
  font-size: 9.5px;
  line-height: 1.3;
}

.bulk-panel__body textarea {
  min-height: 62px;
  max-height: 82px;
  margin: 0;
  padding: 6px 8px;
  font-size: 10.5px;
}

.form-actions--compact {
  margin-top: 6px;
}

.form-actions--compact .muted {
  font-size: 9.5px;
}

.guide-media-grid {
  height: 100%;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, .95fr);
  gap: 8px;
  overflow: hidden;
}

.media-composer--guided,
.announcement-live-preview-wrap--guided {
  min-height: 0;
  height: 100%;
  padding: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.media-composer--guided .media-composer__heading {
  flex: 0 0 auto;
  margin-bottom: 6px;
}

.media-composer--guided .media-paste-zone {
  flex: 0 0 auto;
  min-height: 58px;
  padding: 8px;
}

.youtube-adder--compact {
  flex: 0 0 auto;
  margin-top: 6px;
  gap: 5px;
}

.media-composer--guided .media-status {
  flex: 0 0 auto;
  min-height: 13px;
  margin-top: 3px;
  font-size: 9.5px;
}

.media-editor-list--guided {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 3px;
  overflow: auto;
}

.media-editor-list--guided .media-editor-item {
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 6px;
  padding: 6px;
}

.media-editor-list--guided .media-editor-item__preview img,
.media-editor-list--guided .media-editor-item__preview video,
.media-editor-list--guided .media-editor-item__preview iframe {
  max-height: 58px;
}

.announcement-live-preview-wrap--guided .announcement-live-preview-wrap__heading {
  flex: 0 0 auto;
  margin-bottom: 5px;
}

.announcement-live-preview-wrap--guided .announcement-live-preview {
  flex: 1 1 auto;
  min-height: 0;
  padding: 6px;
  overflow: auto;
}

.announcement-live-preview-wrap--guided .announcement-card {
  max-width: none;
}

.compact-editor__body {
  min-height: 0;
  padding: 10px 12px;
  display: grid;
  gap: 9px;
  align-content: start;
  overflow: auto;
}

.compact-editor > .guide-tip {
  margin: 9px 11px 0;
}

.compact-editor > .guide-actions {
  margin: 0 11px 9px;
}

.tools-grid--guided {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(300px, .86fr) minmax(420px, 1.42fr);
  gap: 10px;
  align-items: stretch;
}

.tool-card {
  min-height: 0;
  padding: 14px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-content: start;
}

.tool-card__number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.tool-card__body h3 {
  margin-top: 4px;
  font-size: 14px;
}

.tool-card__body p {
  margin: 5px 0 10px;
  color: #6d7f89;
  font-size: 10.5px;
  line-height: 1.35;
}

.tool-card__controls {
  display: grid;
  gap: 6px;
}

.tool-log-card {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tool-log-card .audit-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  margin-top: 0;
  overflow: auto;
}

.audit-row {
  padding: 7px 9px;
  grid-template-columns: 105px 105px 1fr;
  gap: 7px;
  font-size: 9.5px;
}

@media (max-width: 1050px) {
  .admin-dialog {
    width: calc(100vw - 8px);
    height: calc(100dvh - 8px);
  }

  .admin-dialog__header {
    min-height: 58px;
    padding: 8px 11px;
  }

  .admin-dialog__subtitle {
    display: none;
  }

  .admin-app {
    min-height: 0;
  }

  .admin-tabs {
    grid-template-columns: repeat(4, minmax(105px, 1fr));
  }

  .admin-tab small {
    display: none;
  }

  .admin-grid,
  .admin-grid--announcements,
  .admin-grid--roster {
    grid-template-columns: minmax(430px, 1fr) minmax(400px, 1fr);
  }

  .guided-step__copy small {
    display: none;
  }

  .tools-grid--guided {
    grid-template-columns: minmax(200px, .7fr) minmax(250px, .8fr) minmax(360px, 1.5fr);
  }
}

@media (max-width: 820px) {
  .admin-dialog {
    width: calc(100vw - 6px);
    height: calc(100dvh - 6px);
    border-radius: 7px;
  }

  .admin-dialog__header {
    min-height: 52px;
  }

  .admin-dialog__header h2 {
    font-size: 17px;
  }

  .admin-dialog__header .eyebrow {
    display: none;
  }

  .admin-toolbar {
    min-height: 44px;
    padding: 5px 7px;
  }

  .admin-tabs {
    display: flex;
    overflow-x: auto;
    gap: 4px;
  }

  .admin-tab {
    min-width: 112px;
    min-height: 34px;
    text-align: center;
  }

  .admin-tab span {
    font-size: 10.5px;
  }

  .admin-panel {
    padding: 6px;
  }

  .admin-grid,
  .admin-grid--announcements,
  .admin-grid--roster {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1.12fr) minmax(0, .88fr);
    gap: 6px;
  }

  .admin-grid--prices {
    grid-template-rows: minmax(0, 1.15fr) minmax(0, .85fr);
  }

  .admin-side-stack {
    gap: 5px;
  }

  .bulk-panel--compact {
    display: none;
  }

  .guided-steps {
    min-height: 42px;
  }

  .guided-step {
    min-height: 42px;
    padding: 4px 6px;
  }

  .guided-step__number {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
  }

  .guide-panel {
    padding: 6px 8px 7px;
    gap: 5px;
  }

  .guide-tip {
    min-height: 28px;
    padding: 5px 7px;
  }

  .guide-tip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .guide-media-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tools-grid--guided {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 6px;
  }

  .tool-log-card {
    grid-column: 1 / -1;
  }

  .admin-login {
    grid-template-columns: 1fr;
    width: min(440px, calc(100% - 18px));
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .admin-dialog__header {
    min-height: 48px;
  }

  .admin-dialog__header h2 {
    font-size: 16px;
  }

  .admin-dialog__header .icon-button {
    width: 31px;
    height: 31px;
  }

  .admin-toolbar {
    gap: 5px;
  }

  .admin-tabs {
    max-width: calc(100vw - 78px);
  }

  .admin-tab {
    min-width: 96px;
  }

  .guided-step__copy strong {
    font-size: 9.5px;
  }

  .guided-step__number {
    display: none;
  }

  .guided-steps--three .guided-step {
    justify-content: center;
    text-align: center;
  }

  .form-grid--2,
  .guide-form-split {
    grid-template-columns: 1fr 1fr;
  }

  .guide-media-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .announcement-live-preview-wrap--guided {
    display: none;
  }

  .option-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tools-grid--guided {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .tool-log-card {
    grid-column: auto;
  }
}

@media (max-height: 690px) {
  .admin-dialog__header {
    min-height: 48px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .admin-dialog__subtitle,
  .admin-dialog__header .eyebrow {
    display: none;
  }

  .admin-toolbar {
    min-height: 42px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .panel-card__heading--compact {
    padding-top: 7px;
    padding-bottom: 6px;
  }

  .panel-card__heading--compact p {
    display: none;
  }

  .guided-steps {
    min-height: 40px;
  }

  .guided-step {
    min-height: 40px;
  }

  .guide-tip {
    min-height: 26px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .guide-panel {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .admin-list-item {
    min-height: 44px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

/* Dedicated admin management / creation workspaces ----------------------- */
.admin-mode {
  display: none;
  height: 100%;
  min-height: 0;
}

.admin-mode.is-active {
  display: block;
}

.admin-app.is-editor-mode {
  grid-template-rows: auto minmax(0, 1fr);
}

.admin-app.is-editor-mode .admin-toolbar {
  display: none;
}

.admin-management-page,
.admin-editor-page {
  height: 100%;
  min-height: 0;
}

.admin-management-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 9px;
}

.management-hero {
  min-height: 68px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #d8e3e8;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f9fb 100%);
}

.management-hero__copy {
  min-width: 0;
}

.management-hero h3 {
  margin-top: 3px;
  font-size: 16px;
}

.management-hero p {
  max-width: 760px;
  margin: 4px 0 0;
  color: #70818a;
  font-size: 10.5px;
  line-height: 1.3;
}

.management-create-button {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-inline: 14px;
  font-size: 11.5px;
}

.management-create-button > span {
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.management-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
  gap: 9px;
}

.management-layout--single {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
}

.management-side-column {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 9px;
}

.management-tip-card {
  min-height: 0;
  padding: 14px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-content: start;
  border-color: #d7e4ea;
  background: #f8fbfc;
}

.management-tip-card--accent {
  background: linear-gradient(180deg, #f7fbfd 0%, #f1f7fa 100%);
}

.management-tip-card__icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-dark);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.management-tip-card h3 {
  margin-top: 4px;
  font-size: 13.5px;
}

.management-tip-card p {
  margin: 5px 0 10px;
  color: #6e8089;
  font-size: 10px;
  line-height: 1.35;
}

.management-bulk-card {
  min-height: 0;
  align-self: stretch;
}

.management-bulk-card[open] {
  overflow: hidden;
}

.management-bulk-card .bulk-panel__body {
  max-height: calc(100% - 43px);
  overflow: hidden;
}

.admin-editor-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 7px;
}

.admin-editor-page--narrow {
  width: min(980px, 100%);
  margin: 0 auto;
}

.editor-return-bar {
  min-height: 34px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #dce6ea;
  border-radius: 7px;
  background: #f7fafb;
  color: #81919a;
  font-size: 9.5px;
  font-weight: 700;
}

.editor-return-button {
  min-height: 25px;
  padding: 3px 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--brand-dark);
  font-size: 10.5px;
  font-weight: 850;
}

.editor-return-button:hover {
  background: var(--brand-pale);
}

.guided-editor--fullpage,
.compact-editor--fullpage {
  width: min(1240px, 100%);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
}

.compact-editor--fullpage {
  width: min(920px, 100%);
}

.editor-heading {
  min-height: 58px;
}

.guided-editor--fullpage .guided-stage {
  min-height: 0;
}

.guided-editor--fullpage .guide-panel {
  padding: 8px 10px 9px;
}

.guide-panel__body--fullpage {
  min-height: 0;
  overflow: hidden;
  align-content: stretch;
}

.editor-form-card {
  min-height: 0;
  padding: 12px;
  display: grid;
  gap: 9px;
  align-content: start;
  border: 1px solid #dce6ea;
  border-radius: 7px;
  background: #fbfcfd;
}

.editor-form-card--grow {
  height: 100%;
  align-content: stretch;
}

.editor-section-label {
  color: var(--brand);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .09em;
}

.editor-two-column {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.editor-two-column--message {
  grid-template-columns: minmax(310px, .72fr) minmax(0, 1.28fr);
}

.editor-form-card .guide-grow-field {
  min-height: 0;
  height: 100%;
}

.editor-form-card .guide-grow-field textarea {
  min-height: 150px;
  height: 100%;
  resize: none;
}

.option-box--editor {
  min-height: 108px;
}

.guided-editor--fullpage .guide-media-grid {
  min-height: 0;
  overflow: hidden;
  grid-template-columns: minmax(0, .92fr) minmax(350px, 1.08fr);
}

.guided-editor--fullpage .media-editor-list--guided,
.guided-editor--fullpage .announcement-live-preview {
  scrollbar-width: thin;
}

.compact-editor__body--fullpage {
  overflow: hidden;
  align-content: center;
  padding: 14px;
}

.compact-editor__body--fullpage .editor-form-card {
  width: min(760px, 100%);
  margin: 0 auto;
}

.admin-app.is-editor-mode .admin-panel {
  padding-top: 7px;
}

@media (max-width: 900px) {
  .management-layout,
  .management-layout--single {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  }

  .management-hero p,
  .management-tip-card p {
    display: none;
  }

  .editor-two-column,
  .editor-two-column--message {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .management-layout,
  .management-layout--single {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .management-side-column {
    display: none;
  }

  .management-tip-card {
    display: none;
  }

  .management-hero {
    min-height: 54px;
    padding: 7px 9px;
  }

  .management-hero h3 {
    font-size: 13px;
  }

  .management-create-button {
    min-height: 33px;
    padding-inline: 9px;
    font-size: 10px;
  }

  .editor-return-bar > span {
    display: none;
  }

  .editor-two-column,
  .editor-two-column--message {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .guided-editor--fullpage .guide-media-grid {
    grid-template-columns: 1fr;
  }

  .guided-editor--fullpage .announcement-live-preview-wrap--guided {
    display: none;
  }
}

@media (max-height: 650px) {
  .management-hero {
    min-height: 54px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .management-hero p {
    display: none;
  }

  .editor-return-bar {
    min-height: 29px;
  }

  .editor-heading {
    min-height: 48px;
  }

  .guided-editor--fullpage .guided-steps {
    min-height: 38px;
  }

  .guided-editor--fullpage .guided-step {
    min-height: 38px;
  }

  .guided-editor--fullpage .guide-tip {
    min-height: 25px;
  }

  .guided-editor--fullpage .guide-panel {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .editor-form-card {
    padding: 8px;
    gap: 6px;
  }

  .editor-form-card .guide-grow-field textarea {
    min-height: 105px;
  }
}


/* Full-modal guided editor fit refinements -------------------------------- */
.admin-editor-page {
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}

.admin-editor-page--narrow {
  width: 100%;
  max-width: none;
  margin: 0;
}

.editor-return-bar {
  display: none !important;
}

.guided-editor--fullpage,
.compact-editor--fullpage {
  width: 100%;
  max-width: none;
  margin: 0;
}

.guided-steps--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guide-actions--end {
  justify-content: flex-end;
}

.guide-actions__left {
  min-width: 0;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 5px;
}

.guide-actions__left .editor-return-button {
  flex: 0 0 auto;
}

.editor-form-card--centered {
  width: min(1080px, 100%);
  align-self: center;
  justify-self: center;
}

.editor-form-card--writing {
  height: 100%;
  min-height: 0;
  align-content: stretch;
}

.editor-form-card--writing .guide-grow-field {
  height: 100%;
  min-height: 0;
}

.editor-form-card--writing .guide-grow-field textarea {
  height: 100%;
  min-height: 0;
  resize: none;
}

.guided-editor--fullpage .guide-panel__body--fullpage {
  padding: 0;
}

.guided-editor--fullpage .guide-panel__body--fullpage > .editor-form-card--writing {
  height: 100%;
}

.compact-editor--fullpage .compact-editor__body--fullpage {
  align-content: center;
}

@media (max-width: 760px) {
  .guided-steps--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(38px, auto);
  }

  .guided-editor--fullpage .guided-steps--four {
    min-height: 76px;
  }

  .guide-actions__left {
    gap: 2px;
  }

  .guide-actions__left .button--text {
    padding-inline: 4px;
  }
}

@media (max-height: 650px) {
  .guided-editor--fullpage .guide-panel__body--fullpage {
    min-height: 0;
  }

  .editor-form-card--writing {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .editor-form-card--writing .guide-grow-field textarea {
    min-height: 0;
  }
}


/* Guided editor overflow-proof layout ------------------------------------- */
.guided-editor--fullpage .editor-heading {
  min-height: 54px;
  padding-top: 8px;
  padding-bottom: 7px;
}

.guided-editor--fullpage .editor-heading > div > p {
  display: none;
}

.guided-editor--fullpage .guided-steps {
  min-height: 44px;
}

.guided-editor--fullpage .guided-step {
  min-height: 44px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.guided-steps--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.guided-editor--fullpage .guided-stage {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.guided-editor--fullpage .guide-panel {
  display: none;
  height: 100%;
  min-height: 0;
  padding: 7px 9px 8px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 7px;
  overflow: hidden;
}

.guided-editor--fullpage .guide-panel.is-active {
  display: grid;
}

.guided-editor--fullpage .guide-tip {
  min-height: 29px;
  padding: 5px 8px;
}

.guided-editor--fullpage .guide-panel__body,
.guided-editor--fullpage .guide-panel__body--fullpage {
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden;
}

.guided-editor--fullpage .guide-actions {
  min-height: 42px;
  margin: 0;
  padding-top: 6px;
}

.editor-form-card--context,
.editor-form-card--notification,
.editor-form-card--display {
  width: min(1180px, 100%);
  height: 100%;
  min-height: 0;
}

.editor-form-card--context {
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
}

.editor-form-card--context .guide-grow-field--context {
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
}

.editor-form-card--context .guide-grow-field--context textarea {
  height: 100%;
  min-height: 90px;
  resize: none;
}

.editor-form-card--notification {
  align-self: center;
  justify-self: center;
  align-content: start;
}

.option-box--notification {
  min-height: 0;
}

.option-box--notification .recipient-picker {
  max-height: 150px;
}

.guide-media-single {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.media-composer--fullpage {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 10px 12px;
  border: 1px solid #d3dee4;
  border-radius: 7px;
  background: #f8fafb;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 7px;
  overflow: hidden;
}

.media-composer--fullpage .media-composer__heading,
.media-composer--fullpage .media-status,
.media-composer--fullpage .media-editor-list--guided {
  margin: 0;
}

.media-input-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  gap: 9px;
  align-items: stretch;
}

.media-composer--fullpage .media-paste-zone {
  min-height: 72px;
  height: 100%;
}

.youtube-adder--stacked {
  margin: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: end;
}

.youtube-adder--stacked label {
  min-width: 0;
}

.media-editor-list--fullpage {
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.editor-form-card--display {
  align-self: center;
  justify-self: center;
}

.notify-review-grid {
  display: grid;
  grid-template-columns: minmax(360px, .72fr) minmax(0, 1.28fr);
  gap: 9px;
  align-items: stretch;
}

.notify-review-grid > * {
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.announcement-live-preview-wrap--review {
  padding: 9px;
}

.announcement-live-preview-wrap--review .announcement-live-preview {
  min-height: 0;
  overflow: auto;
}

@media (max-height: 900px) {
  .admin-dialog__header {
    min-height: 56px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .admin-dialog__header .eyebrow,
  .admin-dialog__subtitle {
    display: none;
  }

  .guided-editor--fullpage .editor-heading {
    min-height: 48px;
  }

  .guided-editor--fullpage .guided-steps,
  .guided-editor--fullpage .guided-step {
    min-height: 40px;
  }

  .guided-editor--fullpage .guided-step__copy small {
    display: none;
  }

  .guided-editor--fullpage .guide-tip {
    min-height: 27px;
    font-size: 10px;
  }

  .guided-editor--fullpage .guide-panel {
    padding-top: 6px;
    padding-bottom: 6px;
    gap: 6px;
  }

  .guided-editor--fullpage .guide-actions {
    min-height: 39px;
    padding-top: 5px;
  }

  .editor-form-card {
    padding: 9px;
    gap: 7px;
  }

  .media-composer--fullpage {
    padding: 8px 9px;
    gap: 5px;
  }

  .media-composer--fullpage .media-paste-zone {
    min-height: 60px;
  }
}

@media (max-width: 980px) {
  .guided-steps--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .guided-steps--five .guided-step__copy small {
    display: none;
  }

  .media-input-grid,
  .notify-review-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .guided-steps--five {
    grid-template-columns: repeat(5, minmax(62px, 1fr));
    overflow-x: auto;
  }

  .guided-steps--five .guided-step__copy {
    display: none;
  }

  .guided-steps--five .guided-step {
    justify-content: center;
  }

  .media-input-grid,
  .notify-review-grid {
    grid-template-columns: 1fr;
  }

  .announcement-live-preview-wrap--review {
    display: none;
  }
}

/* Admin polish: uppercase UI, compact utilities, and unclipped finish options --- */

/* Keep the admin chrome visually consistent without altering authored content. */
.admin-dialog :where(
  h2,
  h3,
  h4,
  button,
  summary,
  .admin-tab,
  .guided-kicker,
  .guided-step__copy,
  .guide-tip,
  .editor-section-label,
  .management-hero p,
  .management-tip-card p,
  .panel-card__heading p,
  .admin-status,
  .form-message,
  .muted,
  .admin-list-item__title,
  .admin-list-item__meta,
  .recipient-option,
  .audit-row,
  .media-composer__heading,
  .media-paste-zone,
  .media-status,
  .announcement-live-preview-wrap__heading,
  .editor-return-button,
  label > span,
  .check-row > span
) {
  text-transform: uppercase;
}

.admin-dialog select {
  text-transform: uppercase;
}

.admin-dialog input::placeholder,
.admin-dialog textarea::placeholder {
  text-transform: uppercase;
}

/* User-authored announcement content should always retain its entered casing. */
.admin-dialog :where(
  input,
  textarea,
  #adminAnnouncementList .admin-list-item__title,
  #adminAnnouncementList .admin-list-item__meta,
  .announcement-live-preview,
  .announcement-live-preview *,
  .announcement-card,
  .announcement-card *,
  .media-editor-item__name
) {
  text-transform: none;
}

/* The reset action is intentionally a small utility, not a primary action. */
#priceFormReset,
#announcementFormReset,
#rosterFormReset {
  min-height: 28px;
  height: 28px;
  padding: 3px 9px;
  align-self: center;
  border: 1px solid #b9cbd4;
  border-radius: 5px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .025em;
}

#priceFormReset:hover,
#announcementFormReset:hover,
#rosterFormReset:hover {
  border-color: var(--brand);
  background: var(--brand-pale);
  color: var(--brand-dark);
}

/* With pinning moved out, Display & Links should size to its content, not the viewport. */
.editor-form-card--display {
  height: auto;
  max-height: 100%;
  align-self: center;
}

/* Pinning now lives with the other final announcement options. */
.option-box--pin {
  min-height: 0;
  padding: 7px 9px;
  background: #f6f9fa;
}

.editor-form-card--notification {
  gap: 7px;
}

.editor-form-card--notification .option-box--notification {
  flex: 1 1 auto;
}

@media (max-height: 900px) {
  #priceFormReset,
  #announcementFormReset,
  #rosterFormReset {
    min-height: 26px;
    height: 26px;
    padding-inline: 8px;
    font-size: 9px;
  }

  .option-box--pin {
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

/* Uppercase is the default visual language for the administration UI. */
.admin-dialog {
  text-transform: uppercase;
}

/* Do not force user-entered values or announcement content to uppercase. */
.admin-dialog input,
.admin-dialog textarea,
.admin-dialog #adminAnnouncementList .admin-list-item__title,
.admin-dialog #adminAnnouncementList .admin-list-item__meta,
.admin-dialog .announcement-live-preview,
.admin-dialog .announcement-live-preview *,
.admin-dialog .announcement-card,
.admin-dialog .announcement-card *,
.admin-dialog .media-editor-item__name {
  text-transform: none;
}
