@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=Space+Grotesk:wght@600;700&display=swap');

:root {
  --ink: #202523;
  --muted: #747d78;
  --line: #e2e7e4;
  --canvas: #f4f6f4;
  --surface: #ffffff;
  --sidebar: #18231f;
  --green: #18855f;
  --green-soft: #e3f3ec;
  --coral: #e56f55;
  --coral-soft: #fbe9e4;
  --amber: #b77a18;
  --amber-soft: #fff2d7;
  --shadow: 0 10px 30px rgba(31, 46, 40, 0.06);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "Noto Sans SC", sans-serif; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 248px; color: #f7faf8; background: var(--sidebar); display: flex; flex-direction: column; }
.brand { height: 76px; padding: 0 24px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; color: var(--sidebar); background: #65d3a6; font-weight: 700; border-radius: 7px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; }
.brand small { margin-top: 2px; color: #8fa29a; font-size: 11px; }
.nav-list { padding: 25px 14px; }
.nav-parent { width: 100%; height: 46px; padding: 0 13px; display: flex; align-items: center; gap: 12px; color: #f7faf8; background: transparent; border: 0; border-radius: 7px; font-size: 13px; font-weight: 600; text-align: left; }
.nav-parent:hover { background: rgba(255,255,255,.06); }
.nav-parent .nav-icon { color: #65d3a6; }
.nav-parent-arrow { margin-left: auto; color: #8fa29a; font-size: 17px; line-height: 1; transition: transform .18s ease; }
.nav-parent[aria-expanded="false"] .nav-parent-arrow { transform: rotate(-90deg); }
.nav-children { margin: 4px 0 4px 17px; padding: 3px 0 3px 12px; border-left: 1px solid rgba(143,162,154,.34); }
.nav-children[hidden] { display: none; }
.nav-item { position: relative; height: 40px; padding: 0 12px; display: flex; align-items: center; gap: 10px; color: #aebbb6; text-decoration: none; border-radius: 6px; font-size: 12px; }
.nav-item:hover { color: #f7faf8; background: rgba(255,255,255,.06); }
.nav-item.active { color: #dff8ec; background: rgba(101,211,166,.14); }
.top-level-nav { margin-top: 10px; padding-left: 25px; }
.nav-icon { width: 20px; color: #65d3a6; font-size: 19px; }
.nav-item .nav-icon { width: 16px; color: #7d968b; font-size: 15px; }
.nav-item.active .nav-icon { color: #65d3a6; }
.nav-indicator { position: absolute; right: 0; width: 3px; height: 18px; background: #65d3a6; border-radius: 2px 0 0 2px; }
.sidebar-footer { margin-top: auto; padding: 20px 24px; color: #72847d; font-size: 11px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-footer p { margin: 7px 0 0; }
.system-state { color: #aebbb6; }
.system-state span { display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: #65d3a6; border-radius: 50%; box-shadow: 0 0 0 3px rgba(101,211,166,.1); }
.sidebar-mask { display: none; }

.main-column { min-height: 100vh; margin-left: 248px; }
.topbar { height: 76px; padding: 0 34px; display: flex; align-items: center; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.breadcrumb span, .breadcrumb b { color: #a4aca8; font-weight: 400; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 19px; }
.icon-button { position: relative; width: 36px; height: 36px; padding: 0; display: grid; place-items: center; color: #4d5652; background: transparent; border: 0; border-radius: 6px; font-size: 20px; }
.icon-button:hover { background: #edf1ef; }
.notice-dot { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; background: var(--coral); border: 2px solid white; border-radius: 50%; }
.profile { padding-left: 19px; display: flex; align-items: center; gap: 10px; border-left: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; color: #166748; background: var(--green-soft); border-radius: 6px; font-size: 13px; font-weight: 700; }
.profile-copy strong, .profile-copy small { display: block; }
.profile-copy strong { font-size: 12px; }
.profile-copy small { margin-top: 2px; color: #909994; font-size: 10px; }
.menu-button { display: none; }

.content { width: min(1460px, 100%); margin: 0 auto; padding: 36px 34px 48px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; animation: rise .35s ease both; }
.eyebrow { margin: 0 0 6px; color: var(--green); font: 700 10px "Space Grotesk", sans-serif; letter-spacing: 1.5px; }
.page-heading h1 { margin: 0; font-size: 28px; line-height: 1.3; letter-spacing: 0; }
.page-heading p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.primary-button { min-height: 40px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: white; background: var(--green); border: 0; border-radius: 6px; font-weight: 600; box-shadow: 0 5px 14px rgba(24,133,95,.16); }
.primary-button:hover { background: #116f4e; }
.primary-button span { font-size: 19px; line-height: 1; }
.secondary-button { min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--green); background: var(--surface); border: 1px solid #b9d5ca; border-radius: 6px; font-weight: 600; }
.secondary-button:hover { background: var(--green-soft); }
.secondary-button span { font-size: 18px; }
.settings-heading-actions { display: flex; align-items: flex-end; gap: 10px; }
.platform-settings-select { display: grid; gap: 6px; color: var(--muted); font-size: 10px; }
.platform-settings-select select { min-width: 190px; height: 40px; padding: 0 32px 0 11px; color: var(--ink); background: var(--surface); border: 1px solid #b9d5ca; border-radius: 6px; outline: 0; font-size: 12px; }
.platform-settings-select select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(24,133,95,.08); }

.stats-grid { margin-top: 27px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat-card { min-height: 116px; padding: 21px; display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); animation: rise .4s ease both; }
.stat-card:nth-child(2) { animation-delay: .05s; }
.stat-card:nth-child(3) { animation-delay: .1s; }
.stat-card:nth-child(4) { animation-delay: .15s; }
.stat-symbol { flex: 0 0 auto; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 7px; font-size: 19px; font-weight: 700; }
.total .stat-symbol { color: #2f6652; background: #e7efeb; }
.active .stat-symbol { color: var(--green); background: var(--green-soft); }
.pending .stat-symbol { color: var(--amber); background: var(--amber-soft); }
.inactive .stat-symbol { color: var(--coral); background: var(--coral-soft); }
.stat-card p, .stat-card small { margin: 0; color: var(--muted); }
.stat-card p { font-size: 12px; }
.stat-card strong { margin: 1px 0; display: block; font: 700 25px "Space Grotesk", sans-serif; }
.stat-card small { font-size: 10px; }

.data-section { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); animation: rise .4s .12s ease both; }
.section-header { min-height: 84px; padding: 19px 21px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.section-header h2 { margin: 0; font-size: 15px; }
.section-header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.filters { display: flex; gap: 9px; }
.search-field { width: 235px; height: 36px; padding: 0 11px; display: flex; align-items: center; gap: 8px; color: #9ca5a0; background: #fafbfa; border: 1px solid var(--line); border-radius: 5px; }
.search-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(24,133,95,.08); }
.search-field input { min-width: 0; width: 100%; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 12px; }
.select-field select { height: 36px; padding: 0 31px 0 11px; color: #4f5854; background: #fafbfa; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; }
.table-wrap { overflow-x: auto; }
.config-preview { max-width: 260px; max-height: 96px; margin: 0; overflow: auto; color: var(--muted); font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
.user-config-card .mobile-meta span { display: block; max-width: 100%; overflow: hidden; white-space: pre-wrap; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { height: 42px; padding: 0 21px; color: #8d9691; background: #fafbfa; text-align: left; font-size: 10px; font-weight: 500; white-space: nowrap; }
td { height: 65px; padding: 0 21px; border-top: 1px solid #edf0ee; white-space: nowrap; }
tbody tr:hover { background: #fbfcfb; }
.platform-cell { display: flex; align-items: center; gap: 11px; }
.platform-logo { width: 34px; height: 34px; display: grid; place-items: center; color: #236f54; background: var(--green-soft); border-radius: 6px; font-weight: 700; }
.platform-cell strong { display: block; font-size: 12px; }
.platform-cell small { display: block; margin-top: 3px; color: #9aa39e; font-size: 9px; }
.code { color: #58615d; font-family: "Space Grotesk", monospace; font-size: 11px; }
.version-number { color: var(--green); font-family: "Space Grotesk", monospace; }
.platform-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.platform-tag.windows { color: #1769aa; background: #e7f3ff; }
.platform-tag.macos { color: #594c81; background: #f0ecfb; }
.download-link { max-width: 300px; display: inline-block; overflow: hidden; color: var(--green); text-overflow: ellipsis; vertical-align: middle; }
.release-notes { max-width: 340px; margin: 0; overflow: hidden; color: #58615d; text-overflow: ellipsis; white-space: nowrap; }
.status { padding: 4px 8px; display: inline-flex; align-items: center; gap: 5px; border-radius: 4px; font-size: 10px; }
.status::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.status-active { color: var(--green); background: var(--green-soft); }
.status-pending { color: var(--amber); background: var(--amber-soft); }
.status-inactive { color: #777f7b; background: #eef0ef; }
.platform-enabled { display: inline-flex; align-items: center; gap: 7px; color: #777f7b; font-size: 10px; cursor: pointer; }
.platform-enabled:has(.platform-toggle:checked) { color: var(--green); }
.platform-toggle { width: 32px; height: 18px; margin: 0; appearance: none; position: relative; background: #cbd1ce; border-radius: 9px; cursor: pointer; transition: background .18s ease; }
.platform-toggle::after { content: ""; width: 14px; height: 14px; position: absolute; top: 2px; left: 2px; background: white; border-radius: 50%; box-shadow: 0 1px 3px rgba(22,35,29,.22); transition: transform .18s ease; }
.platform-toggle:checked { background: var(--green); }
.platform-toggle:checked::after { transform: translateX(14px); }
.platform-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.platform-toggle:disabled { cursor: wait; opacity: .65; }
.platform-actions { display: flex; align-items: center; gap: 2px; }
.mobile-platform-actions { display: flex; align-items: center; justify-content: flex-end; gap: 3px; }
.action-button { width: 30px; height: 30px; color: #737c77; background: transparent; border: 0; border-radius: 5px; font-weight: 700; }
.action-button:hover { background: #edf1ef; }
.delete-platform, .delete-account { color: var(--coral); font-size: 18px; }
.loading-cell, .empty-cell { height: 160px; color: var(--muted); text-align: center; }
.table-footer { min-height: 48px; padding: 0 21px; display: flex; align-items: center; justify-content: space-between; color: #929b96; border-top: 1px solid var(--line); font-size: 10px; }
.mobile-list { display: none; }

.settings-section { margin-top: 27px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); animation: rise .4s .08s ease both; }
.settings-section-header { min-height: 84px; padding: 19px 21px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.settings-mode-tabs { display: flex; gap: 4px; }
.platform-login-field { width: 100%; display: block; color: var(--ink); font-size: 13px; font-weight: 600; }
.platform-login-field .runtime-code-input { margin-top: 12px; }
.settings-count { padding: 5px 9px; color: var(--green); background: var(--green-soft); border-radius: 4px; font-size: 10px; }
.settings-tab { min-width: 96px; height: 34px; padding: 0 14px; color: #68726d; background: transparent; border: 1px solid transparent; border-radius: 5px; font-size: 12px; font-weight: 500; }
.settings-tab:hover { color: var(--ink); background: #eef2ef; }
.settings-tab.active { color: var(--green); background: white; border-color: #b9d5ca; box-shadow: 0 2px 7px rgba(31,46,40,.05); }
.settings-loading, .settings-empty { margin: 0; padding: 58px 0; color: var(--muted); text-align: center; font-size: 12px; }
.settings-footer { min-height: 68px; margin-top: auto; padding: 13px 21px; position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: flex-end; gap: 16px; background: var(--surface); border-top: 1px solid var(--line); }
.release-controls { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.version-select { display: inline-flex; align-items: center; gap: 7px; color: #68726d; font-size: 10px; }
.version-select select { height: 34px; padding: 0 9px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 5px; font-size: 11px; }
.version-status { padding: 6px 9px; color: #53605a; background: #eef1ef; border-radius: 4px; font-size: 11px; }
.release-controls input { width: 190px; height: 40px; padding: 0 11px; color: var(--ink); background: #fafbfa; border: 1px solid var(--line); border-radius: 5px; outline: 0; font-size: 11px; }
.release-controls input:focus { background: white; border-color: var(--green); box-shadow: 0 0 0 3px rgba(24,133,95,.08); }
.release-controls button:disabled, .release-controls input:disabled { cursor: not-allowed; opacity: .48; }
.save-feedback { color: var(--green); font-size: 11px; }
.save-feedback.error { color: var(--coral); }
.category-code-section { padding: 20px 21px; border-top: 1px solid var(--line); background: #fafbfa; }
.category-code-heading { margin-bottom: 12px; }
.category-code-heading h3 { margin: 0; font-size: 13px; }
.category-code-heading p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.html-preview-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.html-editor-pane, .html-preview-pane { min-width: 0; display: grid; grid-template-rows: 28px 360px; color: #5d6762; font-size: 11px; font-weight: 600; }
.html-editor-pane > span, .html-preview-pane > span { display: flex; align-items: center; }
.category-code-input { width: 100%; height: 360px; min-height: 240px; padding: 13px; resize: vertical; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 5px; outline: 0; font-family: Consolas, "Courier New", monospace; font-size: 12px; line-height: 1.55; tab-size: 2; }
.category-code-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(24,133,95,.08); }
.category-code-input.invalid { border-color: var(--coral); }
#runtimeHtmlPreview { width: 100%; height: 360px; background: white; border: 1px solid var(--line); border-radius: 5px; }
.runtime-code-section { padding: 20px 21px; border-top: 1px solid var(--line); }
.runtime-code-section label { display: block; font-size: 13px; font-weight: 600; }
.runtime-code-section p { margin: 4px 0 12px; color: var(--muted); font-size: 10px; }
.runtime-code-input { width: 100%; min-height: 150px; padding: 13px; resize: vertical; color: var(--ink); background: #fafbfa; border: 1px solid var(--line); border-radius: 5px; outline: 0; font-family: Consolas, "Courier New", monospace; font-size: 12px; line-height: 1.55; }
.runtime-code-input:focus { background: white; border-color: var(--green); box-shadow: 0 0 0 3px rgba(24,133,95,.08); }
.runtime-code-input.invalid { border-color: var(--coral); }

dialog { width: min(420px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 8px; box-shadow: 0 24px 70px rgba(18,31,26,.25); }
dialog::backdrop { background: rgba(16,28,23,.46); }
dialog form { padding: 22px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.dialog-heading h2 { margin: 0; font-size: 18px; }
.dialog-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.dialog-placeholder { margin: 24px 0; min-height: 130px; display: grid; place-items: center; align-content: center; color: var(--muted); background: var(--canvas); border: 1px dashed #c9d0cc; border-radius: 7px; }
.dialog-placeholder span { font-size: 26px; }
.dialog-placeholder p { margin: 6px 0 0; font-size: 12px; }
.full-button { width: 100%; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; }
.dialog-actions .secondary-button, .dialog-actions .primary-button { min-width: 76px; }
.platform-form-fields { margin: 22px 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.platform-form-fields label { color: var(--muted); font-size: 11px; }
.platform-form-fields label:nth-child(3) { grid-column: 1 / -1; }
.platform-form-fields input[type="text"] { width: 100%; height: 40px; margin-top: 7px; padding: 0 11px; color: var(--ink); background: #fafbfa; border: 1px solid var(--line); border-radius: 5px; outline: 0; font-size: 12px; }
.platform-form-fields input[type="text"]:focus { background: white; border-color: var(--green); box-shadow: 0 0 0 3px rgba(24,133,95,.08); }
.platform-form-fields input[type="text"]:disabled { color: #8d9691; background: #eef0ef; }
.platform-form-enabled { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.platform-form-enabled input { width: 16px; height: 16px; accent-color: var(--green); }
.dialog-feedback { min-height: 18px; margin: 0 0 10px; color: var(--coral); font-size: 11px; }
.account-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.account-form-fields { margin: 22px 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.account-form-fields label { color: var(--muted); font-size: 11px; }
.account-form-fields input, .account-form-fields select { width: 100%; height: 40px; margin-top: 7px; padding: 0 11px; color: var(--ink); background: #fafbfa; border: 1px solid var(--line); border-radius: 5px; outline: 0; font-size: 12px; }
.account-form-fields input:focus, .account-form-fields select:focus { background: white; border-color: var(--green); box-shadow: 0 0 0 3px rgba(24,133,95,.08); }
.password-form-fields { margin: 22px 0 12px; display: grid; gap: 14px; }
.password-form-fields label { color: var(--muted); font-size: 11px; }
.password-form-fields input { width: 100%; height: 40px; margin-top: 7px; padding: 0 11px; color: var(--ink); background: #fafbfa; border: 1px solid var(--line); border-radius: 5px; outline: 0; font-size: 12px; }
.password-form-fields input:focus { background: white; border-color: var(--green); box-shadow: 0 0 0 3px rgba(24,133,95,.08); }
.app-update-form-fields { margin: 22px 0 12px; display: grid; gap: 14px; }
.app-update-form-fields label { color: var(--muted); font-size: 11px; }
.app-update-form-fields input, .app-update-form-fields textarea { width: 100%; margin-top: 7px; padding: 0 11px; color: var(--ink); background: #fafbfa; border: 1px solid var(--line); border-radius: 5px; outline: 0; font-size: 12px; }
.app-update-form-fields input { height: 40px; }
.app-update-form-fields textarea { min-height: 110px; padding-block: 10px; resize: vertical; line-height: 1.55; }
.app-update-form-fields input:focus, .app-update-form-fields textarea:focus { background: white; border-color: var(--green); box-shadow: 0 0 0 3px rgba(24,133,95,.08); }
.app-update-card { align-items: flex-start; }
.app-update-card .release-notes { max-width: 100%; margin: 12px 0 8px; white-space: normal; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; } }

@media (max-width: 1040px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-header { align-items: flex-start; flex-direction: column; }
  .filters { width: 100%; }
  .search-field { flex: 1; width: auto; }
}

@media (max-width: 720px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; }
  body.nav-open { overflow: hidden; }
  body.nav-open .sidebar { transform: translateX(0); }
  .sidebar-mask { position: fixed; inset: 0; z-index: 15; width: 100%; height: 100%; background: rgba(15,25,21,.42); border: 0; }
  body.nav-open .sidebar-mask { display: block; }
  .main-column { margin-left: 0; }
  .topbar { height: 64px; padding: 0 16px; }
  .menu-button { margin-right: 7px; display: grid; }
  .breadcrumb span, .breadcrumb b { display: none; }
  .profile-copy { display: none; }
  .profile { padding-left: 12px; }
  .content { padding: 25px 16px 35px; }
  .page-heading { align-items: flex-start; }
  .page-heading h1 { font-size: 24px; }
  .primary-button { padding: 0 13px; }
  .settings-heading { display: block; }
  .settings-heading-actions { margin-top: 18px; align-items: stretch; flex-direction: column; }
  .settings-heading .secondary-button, .platform-settings-select select { width: 100%; }
  .stats-grid { margin-top: 21px; gap: 10px; }
  .account-stats { grid-template-columns: 1fr; }
  .stat-card { min-height: 105px; padding: 16px; gap: 12px; }
  .stat-symbol { width: 38px; height: 38px; }
  .stat-card strong { font-size: 22px; }
  .section-header { padding: 17px; }
  .filters { flex-direction: column; }
  .search-field, .select-field select { width: 100%; }
  table { display: none; }
  .mobile-list { padding: 0 16px; display: block; }
  .mobile-platform { padding: 16px 0; display: grid; grid-template-columns: 1fr auto; gap: 12px; border-bottom: 1px solid var(--line); }
  .mobile-platform:last-child { border-bottom: 0; }
  .mobile-meta { margin: 10px 0 0 45px; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 10px; }
  .mobile-empty { padding: 60px 0; color: var(--muted); text-align: center; font-size: 12px; }
  .settings-tab { flex: 1; min-width: 0; }
  .category-code-section { padding: 18px 17px; }
  .runtime-code-section { padding: 18px 17px; }
  .html-preview-workspace { grid-template-columns: 1fr; }
  .html-editor-pane, .html-preview-pane { grid-template-rows: 28px 300px; }
  .category-code-input, #runtimeHtmlPreview { height: 300px; }
  .settings-footer { align-items: stretch; flex-direction: column; }
  .release-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .release-controls input, .release-controls .primary-button, .release-controls .version-status { width: 100%; grid-column: 1 / -1; }
  .account-form-fields { grid-template-columns: 1fr; }
  .save-feedback { min-height: 16px; text-align: center; }
}

@media (max-width: 430px) {
  .page-heading { display: block; }
  .page-heading .primary-button { width: 100%; margin-top: 18px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 92px; }
}