:root {
  color-scheme: light;
  --ink: #180c2c;
  --muted: #756a82;
  --purple: #7c3aed;
  --purple-dark: #4c1d95;
  --purple-soft: #f2eaff;
  --lime: #d9ff57;
  --line: #e8e0ef;
  --paper: #fff;
  --canvas: #f7f4fa;
  font-family: "Segoe UI", "Yu Gothic UI", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.preflight-passed { color: #166534; }
.preflight-failed { color: #b42318; }
.preflight-warning { color: #854d0e; }
.order-components { display: grid; gap: 10px; margin: 16px 0; }
.order-components h4, .order-component p { margin: 0; }
.order-component { min-width: 0; padding: 12px; border: 1px solid var(--line); overflow-wrap: anywhere; }
.order-component pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.component-failed { border-color: #e5a5a5; background: #fff6f6; }
.component-superseded { color: var(--muted); }

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 80% 20%, #7c3aed 0, #3b1765 28%, #160c28 72%); }
.login-card { width: min(470px, 100%); padding: 54px; background: #fff; box-shadow: 0 30px 90px #0d061966; border-top: 6px solid var(--lime); }
.admin-brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; letter-spacing: .12em; }
.admin-brand span { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; background: var(--purple); font-weight: 900; }
.login-card .kicker { margin-top: 42px; }
.login-card h1 { margin: 4px 0 10px; font-size: clamp(36px, 7vw, 54px); letter-spacing: -.06em; }
.login-card > p:not(.kicker) { color: var(--muted); }
.login-card form { margin-top: 34px; }
label { display: grid; gap: 8px; color: #392b47; font-weight: 700; font-size: 14px; }
label small { color: var(--muted); font-weight: 500; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 3px; padding: 13px 14px; color: var(--ink); background: #fff; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px #7c3aed18; }
.primary-button, .secondary-button { border: 0; padding: 13px 20px; font-weight: 800; }
.primary-button { color: #fff; background: var(--purple); }
.primary-button:hover { background: var(--purple-dark); }
.secondary-button { color: var(--ink); background: #eee8f3; }
.login-card .primary-button { width: 100%; margin-top: 8px; }
.form-error { min-height: 20px; margin: 8px 0; color: #b42318; font-size: 13px; }
.kicker, .panel-label, .sidebar-label { margin: 0; color: var(--purple); font-size: 11px; font-weight: 900; letter-spacing: .17em; }

.admin-app { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 20px; color: #fff; background: #190c2d; }
.admin-sidebar .admin-brand { padding: 0 10px; }
.sidebar-label { margin: 46px 12px 14px; color: #957da9; }
.admin-sidebar nav { display: grid; gap: 5px; }
.admin-sidebar nav :is(button, a) { display: flex; align-items: center; gap: 13px; width: 100%; border: 0; padding: 13px 14px; color: #cfc2da; background: transparent; text-align: left; text-decoration: none; font-weight: 700; }
.admin-sidebar nav :is(button, a) i { width: 22px; color: #a98dbf; font-style: normal; font-size: 18px; text-align: center; }
.admin-sidebar nav :is(button, a):hover, .admin-sidebar nav button.active { color: #fff; background: #7c3aed; }
.admin-sidebar nav button.active i { color: var(--lime); }
.sidebar-bottom { display: grid; gap: 5px; margin-top: auto; }
.sidebar-bottom a, .sidebar-bottom button { border: 0; padding: 10px 12px; color: #ab99ba; background: transparent; text-align: left; text-decoration: none; font-size: 13px; }
.sidebar-bottom a:hover, .sidebar-bottom button:hover { color: #fff; }
.admin-media-upload { margin-bottom: 20px; }
.admin-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.admin-media-grid figure { margin: 0; min-width: 0; }
.admin-media-grid img, .admin-media-grid video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f3eef8; border: 1px solid var(--line); border-radius: 8px; }
.admin-media-grid audio { display: block; width: 100%; }
.admin-media-grid figcaption { padding: 6px 0; overflow-wrap: anywhere; font-size: .8rem; }
.admin-media-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.admin-media-pagination[hidden] { display: none; }
.admin-main { min-width: 0; }
.admin-header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px clamp(24px, 4vw, 58px); background: #fff; border-bottom: 1px solid var(--line); }
.admin-header h1 { margin: 5px 0 0; font-size: 27px; letter-spacing: -.04em; }
.save-state { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.save-state span { width: 8px; height: 8px; border-radius: 50%; background: #44bd77; }
.save-state.saving span { background: #f5a524; animation: pulse 1s infinite; }
.save-state.error span { background: #e5484d; }
@keyframes pulse { 50% { opacity: .35; } }
.admin-content { padding: clamp(24px, 4vw, 58px); }
.admin-view { display: none; }
.admin-view.active { display: block; }
.welcome-panel { min-height: 300px; display: flex; align-items: center; justify-content: space-between; gap: 40px; overflow: hidden; padding: clamp(34px, 5vw, 64px); color: #fff; background: linear-gradient(120deg, #211033 0%, #4c1d95 65%, #7c3aed 100%); }
.welcome-panel h2 { margin: 8px 0 16px; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.06em; }
.welcome-panel > div > p:last-child { max-width: 600px; color: #d7c7e5; }
.welcome-panel .kicker { color: var(--lime); }
.pulse-mark { flex: 0 0 190px; height: 190px; display: grid; place-items: center; border: 1px solid #ffffff30; border-radius: 50%; box-shadow: 0 0 0 30px #ffffff08, 0 0 0 60px #ffffff05; }
.pulse-mark span { font-size: 78px; font-weight: 900; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 18px 0; }
.stat-grid article { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 20px; padding: 25px; background: #fff; border: 1px solid var(--line); }
.stat-grid article span, .stat-grid article small { color: var(--muted); }
.stat-grid article strong { grid-row: 1 / 3; grid-column: 2; font-size: 44px; letter-spacing: -.06em; }
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.info-panel { padding: 30px; background: #fff; border: 1px solid var(--line); }
.info-panel h3 { margin: 8px 0 20px; font-size: 24px; }
.info-panel button { display: block; width: 100%; border: 0; border-top: 1px solid var(--line); padding: 14px 0; color: var(--ink); background: transparent; text-align: left; font-weight: 700; }
.safety-panel { background: var(--lime); border-color: var(--lime); }
.safety-panel p:last-child { max-width: 460px; color: #544f29; line-height: 1.7; }
.monitor-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.monitor-stat-grid article { display: grid; gap: 5px; padding: 22px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--purple); }
.monitor-stat-grid article.danger { border-top-color: #d92d20; }
.monitor-stat-grid span, .monitor-stat-grid small { color: var(--muted); }
.monitor-stat-grid strong { font-size: 38px; letter-spacing: -.05em; }
.monitor-toolbar { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 12px; padding: 18px; background: #fff; border: 1px solid var(--line); }
.monitor-meta { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.monitor-meta p { display: flex; align-items: center; gap: 7px; }
.monitor-dot { width: 7px; height: 7px; border-radius: 50%; background: #44bd77; }
.transaction-list { display: grid; gap: 14px; }
.transaction-card { padding: 22px; background: #fff; border: 1px solid var(--line); border-left: 5px solid #b89bd5; }
.transaction-card.has-error { border-left-color: #d92d20; }
.transaction-card > header { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.transaction-card h3 { margin: 13px 0 4px; font-size: 22px; }
.transaction-card header p { margin: 0; color: var(--muted); }
.transaction-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.provider-badge, .status-badge { padding: 5px 9px; font-size: 11px; font-weight: 900; }
.provider-badge.paypal { color: #00457c; background: #e8f5ff; }
.provider-badge.tebex { color: #fff; background: #191919; }
.status-badge { color: #574765; background: #eee8f3; }
.status-badge.paid, .status-badge.delivery-delivered { color: #117342; background: #e9f8ef; }
.status-badge.refunded, .status-badge.delivery-revoked { color: #9a3412; background: #fff0e8; }
.status-badge.delivery-failed { color: #b42318; background: #fff0f0; }
.status-badge.delivery-tebex_managed { color: #fff; background: #4c1d95; }
.transaction-price { display: grid; gap: 4px; min-width: 130px; text-align: right; }
.transaction-price strong { font-size: 23px; }
.transaction-price small { color: var(--muted); }
.transaction-details { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr 1fr; gap: 12px; margin-top: 20px; padding: 16px; background: var(--canvas); }
.transaction-details > div { min-width: 0; display: grid; align-content: start; gap: 5px; }
.transaction-details span, .transaction-details small { color: var(--muted); font-size: 11px; }
.transaction-details strong, .transaction-details code { overflow-wrap: anywhere; font-size: 12px; }
.webhook-processed { color: #117342; }
.webhook-failed { color: #b42318; }
.webhook-processing { color: #9a6700; }
.transaction-error { margin: 14px 0 0; padding: 14px; overflow: auto; color: #8f1d18; background: #fff2f1; border: 1px solid #f3c3bf; white-space: pre-wrap; font: 12px/1.55 Consolas, monospace; }
.transaction-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 15px; color: var(--muted); font-size: 12px; }
.retry-button { border: 0; padding: 10px 14px; color: #fff; background: #b42318; font-weight: 800; }
.retry-button:disabled { opacity: .55; cursor: wait; }
.monitor-error { color: #b42318; border-color: #efb4b4; }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-top h2 { margin: 6px 0; font-size: 40px; letter-spacing: -.05em; }
.section-top div > p:last-child { margin: 0; color: var(--muted); }
.settings-form { display: grid; gap: 20px; }
.settings-form fieldset { display: grid; gap: 18px; margin: 0; padding: 30px; background: #fff; border: 1px solid var(--line); }
.settings-form legend { padding: 0 12px 0 0; font-size: 21px; font-weight: 900; }
.settings-form legend span { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 10px; color: #fff; background: var(--purple); font-size: 12px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-grid.three { grid-template-columns: 1.2fr .7fr 1fr; }
.game-hub-settings { margin-bottom: 20px; }
.game-page-admin-list { display: grid; gap: 12px; }
.game-page-admin-card {
  display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 20px;
  padding: 20px; background: #fff; border: 1px solid var(--line);
}
.game-page-admin-card.unpublished { opacity: .62; }
.game-page-admin-mark {
  height: 70px; display: grid; place-items: center; overflow: hidden;
  color: #fff; background: linear-gradient(135deg, #3b1765, #8b5cf6);
  font-size: 18px; font-weight: 900; letter-spacing: -.03em;
}
.game-page-admin-mark.blue { background: linear-gradient(135deg, #172554, #2563eb); }
.game-page-admin-mark.red { background: linear-gradient(135deg, #450a0a, #dc2626); }
.game-page-admin-mark.green { background: linear-gradient(135deg, #052e16, #16a34a); }
.game-page-admin-copy { min-width: 0; }
.game-page-admin-copy h3 { margin: 0 0 4px; font-size: 21px; }
.game-page-admin-copy p { margin: 0; color: var(--muted); font-size: 13px; }
.game-page-admin-copy small { display: block; margin-top: 5px; color: #9889a4; }
.game-page-admin-actions { display: flex; gap: 7px; }
.game-page-admin-actions button, .game-page-admin-actions a { border: 1px solid var(--line); padding: 9px 13px; color: var(--ink); background: #fff; font-weight: 800; text-align: center; }
.game-page-admin-pending { border: 1px solid var(--line); padding: 9px 13px; color: var(--muted); background: #f5f5f8; font-weight: 700; text-align: center; }
.game-page-admin-actions button:last-child { color: #b42318; border-color: #efcaca; background: #fff7f7; }
.preview-link { display: inline-flex; align-items: center; margin-right: 10px; text-decoration: none; }
.game-section-editor { display: grid; gap: 13px; padding-top: 8px; border-top: 1px solid var(--line); }
.subsection-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.subsection-heading h3 { margin: 4px 0 0; }
.form-hint { margin: 0; color: var(--muted); font-size: 12px; }
.game-section-list { display: grid; gap: 12px; }
.game-section-row { display: grid; gap: 11px; padding: 17px; background: #fff; border: 1px solid var(--line); }
.game-section-row header { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.game-section-row header strong { color: var(--purple-dark); font-size: 13px; }
.game-section-row header button { border: 0; color: #b42318; background: transparent; font-weight: 800; }
.catalog-toolbar { display: flex; gap: 12px; margin-bottom: 20px; }
.catalog-toolbar input { max-width: 440px; }
.catalog-toolbar button { margin-left: auto; border: 1px solid var(--purple); padding: 11px 18px; color: var(--purple); background: #fff; font-weight: 800; }
.admin-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.admin-product-card { position: relative; min-height: 270px; display: flex; flex-direction: column; padding: 25px; background: #fff; border: 1px solid var(--line); }
.admin-product-card.disabled { opacity: .6; }
.product-card-top { display: flex; justify-content: space-between; gap: 10px; }
.type-chip { display: inline-block; padding: 5px 8px; color: var(--purple-dark); background: var(--purple-soft); font-size: 11px; font-weight: 900; }
.product-menu { display: flex; gap: 5px; }
.product-menu button { width: 32px; height: 32px; border: 1px solid var(--line); color: var(--ink); background: #fff; }
.admin-product-card h3 { margin: 24px 0 5px; font-size: 23px; }
.admin-product-card .game-name, .admin-product-card .description { color: var(--muted); }
.admin-product-card .description { flex: 1; line-height: 1.55; }
.admin-product-card footer { display: flex; align-items: end; justify-content: space-between; gap: 15px; padding-top: 20px; border-top: 1px solid var(--line); }
.admin-product-card footer strong { font-size: 23px; }
.admin-product-card footer small { color: var(--muted); }
.empty-panel { grid-column: 1 / -1; padding: 70px 20px; color: var(--muted); background: #fff; border: 1px dashed #cbbdd6; text-align: center; }
.server-list { display: grid; gap: 14px; }
.server-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 12px; padding: 22px; background: #fff; border: 1px solid var(--line); }
.server-row button { height: 46px; border: 1px solid #f1c3c3; padding: 0 14px; color: #b42318; background: #fff5f5; }
.identity-actions { display: flex; gap: 8px; }
.identity-actions button:first-child { color: #fff; background: var(--purple); border-color: var(--purple); }
.catalog-save-row { display: flex; justify-content: end; margin-top: 22px; }
.editor-dialog { width: min(760px, calc(100% - 30px)); max-height: 92vh; padding: 0; border: 0; color: var(--ink); box-shadow: 0 30px 100px #12051b77; }
.editor-dialog::backdrop { background: #160a26bb; backdrop-filter: blur(3px); }
.editor-dialog form > header, .editor-dialog form > footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 28px; background: #fff; border-bottom: 1px solid var(--line); }
.editor-dialog form > header h2 { margin: 4px 0 0; }
.editor-dialog form > header button { border: 0; color: var(--muted); background: transparent; font-size: 28px; }
.editor-dialog form > footer { justify-content: end; border-top: 1px solid var(--line); border-bottom: 0; }
.dialog-body { display: grid; gap: 18px; max-height: calc(92vh - 150px); overflow: auto; padding: 28px; background: var(--canvas); }
.subscription-panel { display: grid; gap: 18px; padding: 22px; background: var(--purple-soft); border: 1px solid #dfcff8; }
.paypal-plan-creator { display: grid; gap: 18px; padding-top: 18px; border-top: 1px solid #d8c5ef; }
.paypal-plan-creator > p:first-child { margin: 0; color: var(--muted); font-size: 13px; }
.subscription-fields, .billing-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.billing-fields { grid-template-columns: 1fr 1fr 1fr; }
.paypal-panel-heading, .paypal-create-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.paypal-panel-heading h3 { margin: 4px 0 0; font-size: 20px; }
.environment-badge { padding: 7px 10px; color: #4c1d95; background: #fff; border: 1px solid #cdb6ed; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.environment-badge.live { color: #a11313; background: #fff3f3; border-color: #efb4b4; }
.live-confirmation { display: flex; grid-template-columns: auto 1fr; align-items: start; padding: 14px; color: #7f1d1d; background: #fff1f1; border: 1px solid #f0b4b4; }
.live-confirmation input { width: 18px; height: 18px; margin-top: 2px; }
.live-confirmation span { display: grid; gap: 3px; }
.paypal-create-row { padding-top: 17px; border-top: 1px solid #d8c5ef; }
.paypal-create-row > div { display: grid; gap: 3px; }
.paypal-create-row small { color: var(--muted); }
.paypal-create-button { border: 0; padding: 12px 17px; color: #fff; background: #5b21b6; font-weight: 800; white-space: nowrap; }
.paypal-create-button:disabled { cursor: wait; opacity: .55; }
.paypal-create-status { min-height: 20px; margin: -6px 0 0; color: #5b4b68; font-size: 13px; }
.paypal-create-status.success { color: #117342; font-weight: 700; }
.paypal-create-status.error { color: #b42318; font-weight: 700; }
.code-field { color: #2b1740; background: #fbf9fd; font: 13px/1.55 Consolas, monospace; }
.code-field.compact { min-height: 84px; }
.delivery-destination-panel, .delivery-action-panel { display: grid; gap: 18px; padding: 22px; background: #fff; border: 1px solid var(--line); }
.delivery-action-panel { border-top: 4px solid var(--purple); }
.panel-title-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.panel-title-row h3 { margin: 4px 0 0; font-size: 21px; }
.destination-server-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.destination-choice { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 10px; padding: 12px; background: var(--canvas); border: 1px solid var(--line); }
.destination-choice input { width: 18px; height: 18px; }
.destination-choice span { display: grid; gap: 2px; }
.destination-choice small { color: var(--muted); }
.destination-empty { padding: 15px; color: var(--muted); background: var(--canvas); border: 1px dashed #cbbdd6; }
.step-add-buttons { display: flex; gap: 8px; }
.step-add-buttons button { border: 1px solid #cbb7df; padding: 10px 13px; color: var(--purple-dark); background: #fff; font-weight: 800; }
.action-step-list { display: grid; gap: 12px; }
.action-step { display: grid; gap: 14px; padding: 18px; background: var(--canvas); border: 1px solid var(--line); }
.action-step-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.action-step-header div { display: flex; align-items: center; gap: 10px; }
.step-number { display: grid; place-items: center; width: 29px; height: 29px; color: #fff; background: var(--purple); font-size: 11px; font-weight: 900; }
.step-type { font-weight: 900; }
.action-step-header button { border: 0; color: #b42318; background: transparent; font-size: 13px; font-weight: 800; }
.database-fields { display: grid; gap: 12px; }
.step-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.advanced-settings { padding: 14px 16px; background: #faf8fc; border: 1px solid var(--line); }
.advanced-settings summary { cursor: pointer; color: var(--purple-dark); font-weight: 800; }
.advanced-settings[open] summary { margin-bottom: 15px; }
.toast { position: fixed; right: 25px; bottom: 25px; z-index: 100; max-width: 420px; padding: 15px 20px; color: #fff; background: #20102e; box-shadow: 0 15px 45px #1d0b3066; opacity: 0; transform: translateY(20px); pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .admin-product-grid { grid-template-columns: 1fr 1fr; }
  .server-row { grid-template-columns: 1fr 1fr 1fr; }
  .monitor-stat-grid, .monitor-toolbar { grid-template-columns: 1fr 1fr; }
  .transaction-details { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .admin-app { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; width: 100%; height: auto; padding: 18px; }
  .admin-sidebar nav { grid-template-columns: repeat(7, 1fr); margin-top: 18px; }
  .admin-sidebar nav :is(button, a) { justify-content: center; padding: 11px 5px; font-size: 0; }
  .admin-sidebar nav :is(button, a) i { font-size: 19px; }
  .sidebar-label, .sidebar-bottom { display: none; }
  .admin-header { min-height: 82px; padding: 18px 20px; }
  .save-state { font-size: 0; }
  .admin-content { padding: 20px; }
  .pulse-mark { display: none; }
  .welcome-panel { min-height: 260px; }
  .stat-grid, .overview-grid, .admin-product-grid, .field-grid, .field-grid.three, .subscription-fields, .billing-fields { grid-template-columns: 1fr; }
  .paypal-panel-heading, .paypal-create-row { align-items: stretch; flex-direction: column; }
  .section-top { align-items: start; flex-direction: column; }
  .section-top .primary-button { width: 100%; }
  .server-row { grid-template-columns: 1fr; }
  .panel-title-row { align-items: stretch; flex-direction: column; }
  .step-add-buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .destination-server-list, .step-field-row { grid-template-columns: 1fr; }
  .catalog-toolbar { flex-direction: column; }
  .catalog-toolbar input { max-width: none; }
  .catalog-toolbar button { margin-left: 0; }
  .login-card { padding: 35px 26px; }
  .monitor-stat-grid, .monitor-toolbar, .transaction-details { grid-template-columns: 1fr; }
  .transaction-card > header, .transaction-card > footer { align-items: stretch; flex-direction: column; }
  .transaction-price { text-align: left; }
  .game-page-admin-card { grid-template-columns: 65px 1fr; }
  .game-page-admin-mark { height: 58px; }
  .game-page-admin-actions { grid-column: 1 / -1; }
  .subsection-heading { align-items: stretch; flex-direction: column; }
}
.product-media-editor { border:1px solid #d7c6ed; padding:16px; margin:16px 0; }
.product-media-editor img { display:block; max-width:100%; height:200px; object-fit:contain; margin-bottom:12px; }
.product-media-editor img[hidden] { display:none; }
.product-description-editor { display:block; padding:16px; border:1px solid #d7c6ed; border-radius:3px; background:#fff; min-height:200px; overflow-wrap:anywhere; cursor:text; }
.product-description-editor:focus { outline:2px solid var(--purple); outline-offset:2px; }
.product-description-editor:has(> p:only-child:empty)::before { content:attr(data-placeholder); color:var(--muted); pointer-events:none; }
.product-description-editor p { min-height:100px; white-space:pre-wrap; margin:0; }
.rich-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:6px; padding:10px; border:1px solid #d7c6ed; background:#faf7ff; }
.rich-toolbar > span, .rich-toolbar output { width:100%; font-size:12px; }
.rich-toolbar label { display:flex; flex-direction:column; gap:3px; font-size:12px; }
.rich-toolbar button, .rich-toolbar select { min-height:36px; padding:6px; width:auto; }
.rich-toolbar input[type=color] { width:48px; height:36px; padding:2px; }
.rich-toolbar[hidden] { display:none; }
