/*
 * Shared visual-quality closure for the premium admin shell.
 * Presentation only: no permissions, API payloads, or interaction semantics.
 */

.admin-performance-probe {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

html[data-admin-premium-shell-ready="1"] :where(
  .cpn-card-icon,
  .mbr-tab-icon,
  .mbr-tool-icon,
  .pp-kpi-icon,
  .oqw-kpi-icon,
  .report-empty-icon,
  .report-order-meta-pill
) svg {
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-admin-premium-shell-ready="1"] [data-admin-page="members"] .mbr-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

html[data-admin-premium-shell-ready="1"] [data-admin-page="members"] .mbr-tab-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
}

html[data-admin-premium-shell-ready="1"] [data-admin-page="members"] .mbr-tool-icon,
html[data-admin-premium-shell-ready="1"] [data-admin-page="coupons"] .cpn-card-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--premium-line);
  border-radius: 10px;
  background: var(--premium-surface-muted);
  color: var(--premium-brass-dark);
}

html[data-admin-premium-shell-ready="1"] .pp-kpi-icon {
  display: inline-grid;
  place-items: center;
}

html[data-admin-premium-shell-ready="1"] .growth-status-indicator,
html[data-admin-premium-shell-ready="1"] .slot-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border: 2px solid var(--premium-surface-strong);
  border-radius: 999px;
  background: #c28b2d;
  box-shadow: 0 0 0 1px rgba(31, 38, 45, .12);
}

html[data-admin-premium-shell-ready="1"] .growth-status-indicator[data-tone="success"],
html[data-admin-premium-shell-ready="1"] .slot-legend-dot.is-free {
  background: #28765c;
}

html[data-admin-premium-shell-ready="1"] .growth-status-indicator[data-tone="danger"],
html[data-admin-premium-shell-ready="1"] .slot-legend-dot.is-booked {
  background: #a43e36;
}

html[data-admin-premium-shell-ready="1"] .slot-legend-dot.is-held {
  background: #c28b2d;
}

html[data-admin-premium-shell-ready="1"] .slot-legend-dot.is-closed {
  background: #8a929b;
}

html[data-admin-premium-shell-ready="1"] [data-admin-page="slots"] .slot-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

html[data-admin-premium-shell-ready="1"] [data-admin-page="report-workbench"] .report-order-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

html[data-admin-premium-shell-ready="1"] [data-admin-page="report-workbench"] .report-order-meta-pill svg {
  width: 14px;
  height: 14px;
}

html[data-admin-premium-shell-ready="1"] .admin-preview-jump {
  display: none !important;
  text-decoration: none;
}

html[data-admin-premium-shell-ready="1"] :where(
  #invoicePreview,
  #fortuneCardPreview,
  #posterPreview,
  #announcePreview,
  #productImagePreview,
  #serviceCardPreview
) {
  scroll-margin-top: 84px;
}

html[data-admin-premium-shell-ready="1"] [data-admin-page="line-logs"] #lineHealthSummary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  color: var(--premium-text-muted);
}

html[data-admin-premium-shell-ready="1"] [data-admin-page="line-logs"] #lineHealthSummary > div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--premium-line-soft);
  border-radius: 10px;
  background: var(--premium-surface-muted);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

html[data-admin-premium-shell-ready="1"] [data-admin-page="mail-logs"] :where(.mail-audit-wrap, .mail-logs-table-wrap),
html[data-admin-premium-shell-ready="1"] [data-admin-page="audit-logs"] .audit-table-scroll {
  border: 1px solid var(--premium-line);
  border-radius: 14px;
  background: var(--premium-surface);
  box-shadow: var(--premium-shadow-soft);
}

html[data-admin-premium-shell-ready="1"] [data-admin-page="mail-logs"] .mail-audit-head .btn {
  min-width: 168px;
  white-space: normal;
}

body:not(.admin-shell-applied):not(.admin-embedded) > [data-admin-page] {
  visibility: hidden;
}

html[data-admin-premium-shell-ready="1"] .admin-main :where(
  button,
  .btn,
  [role="button"],
  input,
  select,
  textarea
) {
  font-family: inherit;
}

html[data-admin-premium-shell-ready="1"] .admin-main :where(button, .btn, [role="button"]) {
  min-height: 40px;
  line-height: 1.2;
}

/* Native file pickers looked like an unstyled browser control beside the
 * premium form system. Keep the native input and its existing change events,
 * but give every visible picker the same button proportions and states. */
html[data-admin-premium-shell-ready="1"] .admin-main input[type="file"]:not([hidden]) {
  min-height: 44px;
  padding: 5px;
  border: 1px solid var(--premium-line);
  border-radius: 12px;
  background: var(--premium-surface-strong);
  color: var(--premium-text-muted);
  font-size: 12.5px;
  line-height: 1.35;
  cursor: pointer;
}

html[data-admin-premium-shell-ready="1"] .admin-main input[type="file"]:not([hidden])::file-selector-button {
  min-height: 34px;
  margin-right: 10px;
  padding: 7px 12px;
  border: 1px solid var(--premium-ink);
  border-radius: 9px;
  background: var(--premium-ink);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

html[data-admin-premium-shell-ready="1"] .admin-main input[type="file"]:not([hidden]):hover::file-selector-button {
  border-color: var(--premium-brass-dark);
  background: var(--premium-brass-dark);
  box-shadow: 0 6px 14px rgba(14, 24, 36, .14);
}

html[data-admin-premium-shell-ready="1"] .admin-main input[type="file"]:disabled {
  cursor: not-allowed;
  opacity: .58;
}

/* Creation tools previously assigned a different colour to nearly every
 * action. Keep one clear primary export action and let all supporting actions
 * share the same restrained premium treatment. Existing IDs and handlers are
 * untouched. */
html[data-admin-premium-shell-ready="1"] body.studio-page .admin-main .btn {
  height: auto !important;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--premium-line) !important;
  border-radius: 10px;
  background: var(--premium-surface-strong) !important;
  color: var(--premium-text) !important;
  box-shadow: none !important;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

html[data-admin-premium-shell-ready="1"] body.studio-page .admin-main .btn:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--premium-brass) 45%, var(--premium-line)) !important;
  background: var(--premium-surface-warm) !important;
  color: var(--premium-brass-dark) !important;
  box-shadow: 0 6px 16px rgba(31, 38, 45, .08) !important;
}

html[data-admin-premium-shell-ready="1"] body.studio-page .admin-main .btn.primary {
  border-color: var(--premium-ink) !important;
  background: var(--premium-ink) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(14, 24, 36, .15) !important;
}

html[data-admin-premium-shell-ready="1"] body.studio-page .admin-main .btn.primary:hover:not(:disabled) {
  border-color: var(--premium-brass-dark) !important;
  background: var(--premium-brass-dark) !important;
  color: #fff !important;
}

html[data-admin-premium-shell-ready="1"] body.studio-page .admin-main .admin-preview-jump {
  border-color: color-mix(in srgb, var(--premium-brass) 55%, var(--premium-line)) !important;
  background: var(--premium-surface-warm) !important;
  color: var(--premium-brass-dark) !important;
}

html[data-admin-premium-shell-ready="1"] .admin-main :where(button, .btn, a, input, select, textarea):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--premium-brass) 44%, transparent);
  outline-offset: 2px;
}

html[data-admin-premium-shell-ready="1"] .admin-main :where(
  [role="tablist"],
  .tabs,
  .tab-row,
  .status-tabs,
  .hub-tab-bar,
  .uc-campaign-status-tabs
) {
  scrollbar-color: color-mix(in srgb, var(--premium-brass) 48%, transparent) transparent;
  scrollbar-width: thin;
}

/* Direct campaign routes are regular admin pages; embedded routes stay shell-free. */
html[data-admin-premium-shell-ready="1"] body.admin-shell-applied .admin-main > .uc-campaign-wrap,
html[data-admin-premium-shell-ready="1"] body.admin-shell-applied .admin-main .wrap > .uc-campaign-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

/* Mail settings remain a readable data table on phones instead of wrapping keys
 * one character per line. Horizontal scrolling preserves every field. */
@media (max-width: 760px) {
  html[data-admin-premium-shell-ready="1"] .admin-preview-jump {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-color: color-mix(in srgb, var(--premium-brass) 55%, var(--premium-line));
    background: var(--premium-surface-warm);
    color: var(--premium-brass-dark);
  }

  html[data-admin-premium-shell-ready="1"] :where(
    .tab-row,
    .status-tabs,
    .page-tabs,
    .report-tabs,
    .oqw-filters,
    .hub-tab-bar,
    .uc-campaign-status-tabs
  ) {
    padding-right: 22px;
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 18px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 18px), transparent 100%);
    overscroll-behavior-inline: contain;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="coupons"] .page-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="coupons"] .page-actions .btn {
    width: 100%;
    min-width: 0;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="maha-yant-orders"] .table-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="maha-yant-orders"] .table-tools .btn {
    width: 100%;
    min-width: 0;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="maha-yant-orders"] .table-tools .danger {
    grid-column: 1 / -1;
    background: transparent;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="schema-monitor"] .page-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="schema-monitor"] .page-actions label {
    min-width: 0;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="schema-monitor"] .page-actions :where(select, .btn) {
    width: 100%;
    min-width: 0;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="line-logs"] #lineHealthSummary {
    grid-template-columns: 1fr;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="mail-logs"] .mail-audit-head .btn {
    width: 100%;
    min-width: 0;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="members"] .mbr-kpi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="members"] .mbr-kpi-card {
    min-width: 0;
    padding: 14px;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="members"] .mbr-kpi-card:last-child {
    grid-column: 1 / -1;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="members"] .mbr-kpi-val {
    font-size: 18px;
    overflow-wrap: anywhere;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="teacher-line-center"] .tlc-summary-grid,
  html[data-admin-premium-shell-ready="1"] [data-admin-page="schema-monitor"] .kpi-grid,
  html[data-admin-premium-shell-ready="1"] [data-admin-page="service-referral-analytics"] .referral-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="teacher-line-center"] .tlc-summary-card,
  html[data-admin-premium-shell-ready="1"] [data-admin-page="schema-monitor"] .kpi-card,
  html[data-admin-premium-shell-ready="1"] [data-admin-page="service-referral-analytics"] .referral-kpi {
    min-width: 0;
    padding: 14px;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="teacher-line-center"] .tlc-summary-card strong,
  html[data-admin-premium-shell-ready="1"] [data-admin-page="schema-monitor"] .kpi-value,
  html[data-admin-premium-shell-ready="1"] [data-admin-page="service-referral-analytics"] .referral-kpi__value {
    font-size: clamp(22px, 7vw, 28px);
    overflow-wrap: anywhere;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="mail-settings"] .mail-settings-table-wrap {
    position: relative;
    overflow-x: auto;
    border: 1px solid var(--premium-line);
    border-radius: 14px;
    background: var(--premium-surface);
    box-shadow: var(--premium-shadow-soft);
    -webkit-overflow-scrolling: touch;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="mail-settings"] .mail-settings-table {
    width: 720px;
    min-width: 720px;
    table-layout: auto;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="mail-settings"] .mail-settings-table :where(th, td, code) {
    overflow-wrap: normal;
    word-break: normal;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="mail-settings"] .mail-settings-table :where(th, td):first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 168px;
    background: var(--premium-surface);
    box-shadow: 1px 0 0 var(--premium-line);
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="mail-settings"] .mail-settings-table thead th:first-child {
    background: var(--admin-surface-2);
  }

  html[data-admin-premium-shell-ready="1"] #growthMobileHealthScore {
    font-size: clamp(28px, 10vw, 44px) !important;
    line-height: 1.05 !important;
    overflow-wrap: anywhere;
  }

  /* Service inventory is an operator workflow, not a compressed desktop
   * spreadsheet. Each row becomes a readable card while preserving the same
   * edit/publish/copy controls and their existing handlers. */
  html[data-admin-premium-shell-ready="1"] [data-admin-page="service-products"] .list-card {
    padding: 16px;
    overflow: hidden;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="service-products"] .list-card table,
  html[data-admin-premium-shell-ready="1"] [data-admin-page="service-products"] .list-card tbody {
    display: block;
    width: 100%;
    min-width: 0;
    border: 0;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="service-products"] .list-card thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="service-products"] .list-card tbody tr {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px 12px;
    width: 100%;
    min-width: 0;
    margin: 0 0 12px;
    padding: 14px;
    border: 1px solid var(--premium-line);
    border-radius: 14px;
    background: var(--premium-surface-strong);
    box-shadow: 0 7px 18px rgba(31, 38, 45, .04);
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="service-products"] .list-card tbody td {
    display: block;
    width: auto !important;
    min-width: 0;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="service-products"] .list-card tbody td:first-child {
    grid-row: 1 / span 2;
    grid-column: 1;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="service-products"] .list-card tbody td:nth-child(2),
  html[data-admin-premium-shell-ready="1"] [data-admin-page="service-products"] .list-card tbody td:nth-child(3) {
    grid-column: 2;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="service-products"] .list-card tbody td:nth-child(3) {
    color: var(--premium-text);
    font-size: 13px;
    font-weight: 750;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="service-products"] .list-card tbody td:nth-child(4) {
    grid-column: 1 / -1;
    padding-top: 12px;
    border-top: 1px solid var(--premium-line-soft);
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="service-products"] .list-card tbody td[colspan] {
    grid-row: auto;
    grid-column: 1 / -1;
    padding: 14px;
    text-align: center;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="service-products"] .table-cover-img {
    width: 58px;
    height: 58px;
    border-radius: 12px;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="service-products"] .table-service-title {
    color: var(--premium-text);
    font-size: 15px;
    line-height: 1.35;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="service-products"] .svc-projection-row {
    gap: 5px;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="service-products"] .svc-projection-chip {
    max-width: 100%;
    padding: 5px 8px;
    font-size: 11px;
    white-space: normal;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="service-products"] .table-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  html[data-admin-premium-shell-ready="1"] [data-admin-page="service-products"] .table-actions .btn {
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
  }
}

/* The hub closure stylesheet is loaded before the premium shell on legacy
 * pages. Re-assert its flex sizing here, after the shell, so iframes keep the
 * whole mobile work area instead of collapsing to a 150px strip. */
@media (max-width: 980px) {
  /* A pair of legacy page styles re-expanded the old theme/home/shop controls
   * after the premium shell had intentionally collapsed them. Restore the
   * shared compact topbar so the actual work begins in the first viewport. */
  html[data-admin-premium-shell-ready="1"] body.admin-shell-applied .admin-main:has(.translator-admin) > .admin-topbar,
  html[data-admin-premium-shell-ready="1"] body.geo-analytics-view.admin-shell-applied .admin-main > .admin-topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 60px !important;
    padding: 8px 14px !important;
  }

  html[data-admin-premium-shell-ready="1"] body.admin-shell-applied .admin-main:has(.translator-admin) .admin-topbar-actions,
  html[data-admin-premium-shell-ready="1"] body.geo-analytics-view.admin-shell-applied .admin-main .admin-topbar-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: auto !important;
  }

  html[data-admin-premium-shell-ready="1"] body.admin-shell-applied .admin-main:has(.translator-admin) .admin-topbar-actions-secondary,
  html[data-admin-premium-shell-ready="1"] body.geo-analytics-view.admin-shell-applied .admin-main .admin-topbar-actions-secondary {
    display: none !important;
  }

  html[data-admin-premium-shell-ready="1"] body:is(
    .admin-card-studio-view,
    .admin-affiliate-hub-view,
    .admin-mail-hub-view
  ) {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  html[data-admin-premium-shell-ready="1"] body:is(
    .admin-card-studio-view,
    .admin-affiliate-hub-view,
    .admin-mail-hub-view
  ) .admin-shell {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  html[data-admin-premium-shell-ready="1"] body:is(
    .admin-card-studio-view,
    .admin-affiliate-hub-view,
    .admin-mail-hub-view
  ) .admin-main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    overflow: hidden;
  }

  html[data-admin-premium-shell-ready="1"] body:is(
    .admin-card-studio-view,
    .admin-affiliate-hub-view,
    .admin-mail-hub-view
  ) .admin-main > .wrap {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    padding: 18px 12px calc(68px + env(safe-area-inset-bottom)) !important;
    overflow: hidden;
  }

  html[data-admin-premium-shell-ready="1"] body:is(
    .admin-card-studio-view,
    .admin-affiliate-hub-view,
    .admin-mail-hub-view
  ) .admin-main > .wrap > .page {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    height: auto !important;
    min-height: 0;
    gap: 12px;
    overflow: hidden;
  }

  html[data-admin-premium-shell-ready="1"] body:is(
    .admin-card-studio-view,
    .admin-affiliate-hub-view,
    .admin-mail-hub-view
  ) .hub-frame-wrap {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 360px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--premium-line);
    border-radius: 14px;
    background: var(--premium-surface);
  }

  html[data-admin-premium-shell-ready="1"] body:is(
    .admin-card-studio-view,
    .admin-affiliate-hub-view,
    .admin-mail-hub-view
  ) .hub-frame {
    width: 100%;
    height: 100%;
    min-height: 360px;
  }

  html[data-admin-premium-shell-ready="1"] body:is(
    .admin-card-studio-view,
    .admin-affiliate-hub-view,
    .admin-mail-hub-view
  ) .page-head {
    flex: 0 0 auto;
  }

  html[data-admin-premium-shell-ready="1"] body:is(
    .admin-card-studio-view,
    .admin-affiliate-hub-view,
    .admin-mail-hub-view
  ) .hub-tab-bar {
    flex: 0 0 auto;
    border: 1px solid var(--premium-line);
    border-radius: 12px;
  }
}

@media (max-width: 640px) {
  html[data-admin-premium-shell-ready="1"] .admin-command-button,
  html.admin-force-mobile-nav[data-admin-premium-shell-ready="1"] .admin-command-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  html[data-admin-premium-shell-ready="1"] .admin-main :where(button, .btn, [role="button"]) {
    min-height: 44px;
  }

  html[data-admin-premium-shell-ready="1"] body.studio-page .admin-main :where(
    .toolbar,
    .page-actions,
    .editor-actions
  ) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  html[data-admin-premium-shell-ready="1"] body.studio-page .admin-main :where(
    .toolbar,
    .page-actions,
    .editor-actions
  ) > .btn {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  html[data-admin-premium-shell-ready="1"] body.studio-page .admin-main .toolbar > .hint {
    grid-column: 1 / -1;
  }

  html[data-admin-premium-shell-ready="1"] body.admin-shell-applied .admin-main > .uc-campaign-wrap {
    width: 100%;
    margin: 0;
  }
}
