:root {
  color-scheme: light;
  --ink: #07162f;
  --ink-2: #102a50;
  --paper: #f3f6f9;
  --white: #fff;
  --muted: #66738a;
  --line: #dbe2ea;
  --electric: #29e9ba;
  --blue: #138bc5;
  --green: #15815f;
  --amber: #bc6a21;
  --red: #c44343;
  --violet: #6256c7;
  --sidebar: 254px;
  --shadow: 0 20px 55px rgba(7,22,47,.09);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.65 "Leelawadee UI", "Noto Sans Thai", Tahoma, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
.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; }
.skip-link { position: fixed; left: 15px; top: 10px; z-index: 1000; transform: translateY(-150%); background: var(--white); padding: 9px 14px; }
.skip-link:focus { transform: translateY(0); }
.mono-label { margin: 0 0 10px; color: var(--blue); font: 750 .66rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .15em; }
.admin-logo { color: var(--ink); text-decoration: none; font-size: 1.3rem; font-weight: 550; letter-spacing: -.035em; }
.admin-logo span { color: var(--blue); font-weight: 850; }

.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--sidebar); padding: 29px 20px 22px; display: flex; flex-direction: column; color: var(--white); background: var(--ink); }
.admin-logo--sidebar { padding: 0 10px 28px; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-logo--sidebar span { color: var(--electric); }
.admin-logo--sidebar small { display: block; margin-top: 2px; color: rgba(255,255,255,.35); font: 700 .52rem ui-monospace, monospace; letter-spacing: .22em; }
.admin-nav { margin-top: 27px; display: flex; flex-direction: column; gap: 5px; }
.admin-nav a { display: flex; gap: 12px; align-items: center; padding: 11px 12px; color: rgba(255,255,255,.6); border-radius: 5px; text-decoration: none; font-size: .9rem; font-weight: 620; }
.admin-nav a:hover { color: var(--white); background: rgba(255,255,255,.055); }
.admin-nav a.is-active { color: var(--ink); background: var(--electric); }
.admin-nav i { width: 22px; font-style: normal; font-family: ui-monospace, monospace; text-align: center; }
.sidebar-bottom { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-bottom a, .sidebar-bottom button { width: 100%; padding: 9px 10px; display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,.58); background: transparent; border: 0; text-decoration: none; cursor: pointer; font-size: .83rem; }
.sidebar-bottom a:hover, .sidebar-bottom button:hover { color: var(--white); }
.admin-page { min-height: 100vh; margin-left: var(--sidebar); display: flex; flex-direction: column; }
.admin-topbar { min-height: 68px; padding: 0 36px; display: flex; align-items: center; justify-content: flex-end; gap: 28px; background: rgba(255,255,255,.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.admin-topbar > div:first-of-type { margin-right: auto; color: var(--muted); font-size: .76rem; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--electric); box-shadow: 0 0 0 4px rgba(41,233,186,.15); }
.admin-identity { display: flex; align-items: center; gap: 10px; }
.admin-identity > span { width: 35px; height: 35px; display: grid; place-items: center; color: var(--white); background: var(--ink); border-radius: 50%; font-size: .75rem; font-weight: 800; }
.admin-identity div { display: flex; flex-direction: column; line-height: 1.25; }
.admin-identity small { color: var(--muted); font-size: .66rem; }
.admin-identity b { font-size: .8rem; }
.sidebar-toggle { display: none; width: 40px; height: 40px; padding: 8px; background: transparent; border: 0; }
.sidebar-toggle span { display: block; width: 22px; height: 2px; margin: 4px; background: var(--ink); }
.admin-main { width: min(1200px, calc(100% - 72px)); margin: 0 auto; padding: 48px 0 70px; flex: 1; }
.admin-footer { min-height: 55px; padding: 0 36px; display: flex; justify-content: space-between; align-items: center; color: #8a95a7; border-top: 1px solid var(--line); font: 650 .58rem ui-monospace, monospace; letter-spacing: .09em; }
.sidebar-backdrop { display: none; }

.page-heading { margin-bottom: 34px; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.page-heading h1 { margin: 0; font-size: clamp(2.15rem, 4vw, 3.15rem); line-height: 1.14; letter-spacing: -.055em; }
.page-heading p:not(.mono-label) { margin: 10px 0 0; color: var(--muted); }
.page-heading--form { margin-bottom: 25px; }
.back-link { display: inline-block; margin-bottom: 16px; color: var(--muted); text-decoration: none; font-size: .82rem; }
.back-link:hover { color: var(--blue); }
.admin-button { min-height: 44px; padding: 8px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 25px; border: 1px solid transparent; border-radius: 4px; text-decoration: none; cursor: pointer; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease; }
.admin-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(7,22,47,.12); }
.admin-button:disabled { cursor: not-allowed; opacity: .55; }
.admin-button--primary { color: var(--white); background: var(--ink); }
.admin-button--secondary { color: var(--ink); background: var(--white); border-color: var(--line); }
.admin-button--full { width: 100%; }

.alert { margin: 0 0 22px; padding: 13px 16px; border: 1px solid; border-radius: 4px; font-size: .88rem; }
.alert--success { color: #116348; background: #e4f7ef; border-color: #b4e8d5; }
.alert--warning { color: #7e5515; background: #fff6dc; border-color: #f1d999; }
.alert--error { color: #922e2e; background: #fff0f0; border-color: #efbaba; }
.alert ul { margin: 7px 0 0; padding-left: 22px; }
.admin-card { background: var(--white); border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(7,22,47,.035); }
.card-heading { min-height: 58px; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.card-heading > div { display: flex; align-items: center; gap: 11px; }
.card-heading .mono-label { display: block; margin-bottom: 5px; }
.card-heading h2 { margin: 0; font-size: 1.06rem; letter-spacing: -.02em; }
.card-heading a { color: var(--blue); text-decoration: none; font-size: .82rem; font-weight: 700; }
.step-number { width: 27px; height: 27px; display: grid; place-items: center; color: var(--white); background: var(--ink); border-radius: 50%; font: 750 .58rem ui-monospace, monospace; }

.metric-grid { margin-bottom: 25px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric-card { --metric: var(--ink); position: relative; min-height: 164px; padding: 22px; overflow: hidden; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); }
.metric-card::after { content: ""; position: absolute; width: 85px; height: 85px; right: -44px; top: -42px; border: 12px solid color-mix(in srgb, var(--metric), transparent 88%); border-radius: 50%; }
.metric-card > span { color: var(--muted); font-size: .83rem; }
.metric-card strong { margin: auto 0 3px; color: var(--metric); font-size: 3.1rem; line-height: 1; letter-spacing: -.06em; }
.metric-card small { color: #9aa4b4; font: 700 .58rem ui-monospace, monospace; letter-spacing: .12em; }
.metric-card--green { --metric: var(--green); }
.metric-card--blue { --metric: var(--blue); }
.metric-card--muted { --metric: #7f8998; }
.recent-list > a { min-height: 83px; padding: 13px 18px; display: grid; grid-template-columns: 52px 1fr auto 20px; gap: 14px; align-items: center; color: inherit; border-top: 1px solid var(--line); text-decoration: none; }
.recent-list > a:first-child { border-top: 0; }
.recent-list > a:hover { background: #f9fbfc; }
.recent-list > a > b { color: #a0a9b5; font-size: 1.35rem; }
.recent-title { min-width: 0; display: flex; flex-direction: column; }
.recent-title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .93rem; }
.recent-title small { color: var(--muted); font-size: .74rem; }
.banner-thumb { width: 52px; height: 52px; display: grid; place-items: center; overflow: hidden; color: var(--white); background: #174b78; border-radius: 3px; font: 800 1rem ui-monospace, monospace; }
.banner-thumb img { width: 100%; height: 100%; object-fit: cover; }
.banner-thumb--amber { background: #8b501f; }
.banner-thumb--violet { background: #5143ae; }
.banner-thumb--emerald { background: #17654f; }
.status-badge { display: inline-flex; width: max-content; padding: 5px 9px; border-radius: 999px; font-size: .67rem; font-weight: 750; white-space: nowrap; }
.status-badge--live { color: #08714e; background: #daf5ea; }
.status-badge--scheduled { color: #1d6290; background: #dff2fd; }
.status-badge--expired { color: #925c1c; background: #fff0d8; }
.status-badge--neutral { color: #657085; background: #edf0f4; }
.empty-state { padding: 70px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.empty-state > span { width: 60px; height: 60px; display: grid; place-items: center; color: var(--blue); background: #e1f3fb; border-radius: 50%; font-size: 1.5rem; }
.empty-state h2, .empty-state h3 { margin: 17px 0 5px; }
.empty-state p { max-width: 470px; margin: 0 0 22px; color: var(--muted); }
.empty-state--large { min-height: 420px; justify-content: center; }

.list-toolbar { margin-bottom: 12px; display: flex; justify-content: space-between; color: var(--muted); font-size: .74rem; }
.banner-table-card { background: var(--white); border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(7,22,47,.035); }
.banner-table { display: grid; grid-template-columns: minmax(260px, 1.35fr) minmax(170px, .8fr) 92px 110px 150px; gap: 16px; align-items: center; }
.banner-table--head { padding: 11px 18px; color: #8994a5; background: #f8fafc; border-bottom: 1px solid var(--line); font: 700 .6rem ui-monospace, monospace; letter-spacing: .09em; }
.banner-table--row { min-height: 94px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.banner-table--row:last-child { border-bottom: 0; }
.banner-cell-main { min-width: 0; display: flex; align-items: center; gap: 13px; }
.banner-cell-main > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.banner-cell-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.banner-cell-main small, .schedule-cell small { color: var(--muted); font-size: .71rem; }
.schedule-cell { display: flex; flex-direction: column; font-size: .77rem; }
.order-cell { display: flex; gap: 8px; align-items: center; }
.order-cell > span { min-width: 23px; font-weight: 750; }
.order-buttons { display: flex; }
.order-buttons form { display: inline-flex; }
.order-buttons button { width: 27px; height: 27px; padding: 0; color: var(--muted); background: var(--white); border: 1px solid var(--line); cursor: pointer; }
.order-buttons button:disabled { opacity: .3; cursor: default; }
.row-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.row-actions form { display: inline; }
.row-actions a, .row-actions button { padding: 3px; color: var(--blue); background: none; border: 0; text-decoration: none; cursor: pointer; font-size: .73rem; }
.row-actions .danger-link { color: var(--red); }

.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.editor-main { display: grid; gap: 18px; }
.editor-side { position: sticky; top: 20px; display: grid; gap: 18px; }
.form-card { padding-bottom: 23px; }
.form-card > .field, .form-card > .field-grid, .form-card > .switch-field, .form-card > .upload-field, .form-card > .current-image, .form-card > form { margin-left: 22px; margin-right: 22px; }
.form-card .card-heading { margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field { margin-top: 17px; }
.field > span { font-size: .82rem; font-weight: 720; }
.field > span b { color: var(--red); }
.field small { color: var(--muted); font-size: .69rem; }
.field input, .field textarea, .field select { width: 100%; padding: 10px 12px; color: var(--ink); background: var(--white); border: 1px solid #cbd4df; border-radius: 3px; outline: 0; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(19,139,197,.12); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-grid .field + .field { margin-top: 0; }
.field--small { max-width: 210px; margin-top: 18px; }
.upload-field { position: relative; min-height: 145px; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink); background: #f8fbfd; border: 1px dashed #acbac9; cursor: pointer; text-align: center; }
.upload-field:hover { border-color: var(--blue); background: #f2faff; }
.upload-field input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-field .upload-icon { width: 35px; height: 35px; display: grid; place-items: center; color: var(--white); background: var(--blue); border-radius: 50%; }
.upload-field b { margin-top: 8px; font-size: .86rem; }
.upload-field small { color: var(--muted); font-size: .7rem; }
.upload-field em { margin-top: 6px; color: var(--blue); font-size: .7rem; font-style: normal; }
.current-image { margin-bottom: 16px; display: grid; grid-template-columns: 190px 1fr; gap: 16px; align-items: center; }
.current-image img { width: 190px; height: 110px; object-fit: cover; }
.current-image label { font-size: .77rem; }
.switch-field { margin-top: 22px; display: flex; gap: 12px; align-items: center; cursor: pointer; }
.switch-field > input[type="checkbox"] { position: absolute; opacity: 0; }
.switch-ui { position: relative; width: 43px; height: 24px; flex: 0 0 auto; background: #c4ccd6; border-radius: 999px; transition: background .2s; }
.switch-ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; background: var(--white); border-radius: 50%; transition: transform .2s; box-shadow: 0 2px 5px rgba(0,0,0,.22); }
.switch-field input:checked + .switch-ui { background: var(--green); }
.switch-field input:checked + .switch-ui::after { transform: translateX(19px); }
.switch-field input:focus-visible + .switch-ui { outline: 3px solid #f4bc42; outline-offset: 2px; }
.switch-field > span:last-child { display: flex; flex-direction: column; }
.switch-field b { font-size: .82rem; }
.switch-field small { color: var(--muted); font-size: .7rem; }
.preview-card, .theme-card { padding: 19px; }
.mini-banner { --mini: #123d69; --mini-accent: #79dafd; min-height: 250px; padding: 22px; display: flex; flex-direction: column; color: var(--white); background: var(--mini); }
.mini-banner--amber { --mini: #704016; --mini-accent: #ffd189; }
.mini-banner--violet { --mini: #3a327e; --mini-accent: #c4bcff; }
.mini-banner--emerald { --mini: #16533f; --mini-accent: #8ee2c1; }
.mini-banner > span { align-self: flex-start; padding: 4px 6px; color: var(--mini); background: var(--mini-accent); font: 800 .52rem ui-monospace, monospace; letter-spacing: .1em; }
.mini-banner h3 { margin: auto 0 8px; font-size: 1.42rem; line-height: 1.25; letter-spacing: -.035em; overflow-wrap: anywhere; }
.mini-banner p { margin: 0 0 16px; color: rgba(255,255,255,.67); font-size: .76rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mini-banner b { color: var(--mini-accent); font-size: .75rem; }
.theme-card h2 { margin: 0 0 15px; font-size: 1rem; }
.theme-options { display: grid; gap: 7px; }
.theme-option { padding: 7px; display: grid; grid-template-columns: 17px 34px 1fr; gap: 9px; align-items: center; border: 1px solid transparent; cursor: pointer; }
.theme-option:has(input:checked) { border-color: #aab6c5; background: #f7f9fb; }
.theme-option input { margin: 0; }
.theme-swatch { width: 34px; height: 34px; background: #123d69; }
.theme-swatch--amber { background: #704016; }
.theme-swatch--violet { background: #3a327e; }
.theme-swatch--emerald { background: #16533f; }
.theme-option > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.theme-option b { font-size: .76rem; }
.theme-option small { color: var(--muted); font-size: .65rem; }
.editor-actions { display: grid; gap: 8px; }

.account-layout { display: grid; grid-template-columns: 310px minmax(0, 620px); gap: 22px; align-items: start; }
.profile-card { padding: 35px; text-align: center; }
.profile-avatar { width: 78px; height: 78px; margin: 0 auto 22px; display: grid; place-items: center; color: var(--white); background: var(--ink); border-radius: 50%; font-size: 1.8rem; font-weight: 800; }
.profile-card h2 { margin: 0; font-size: 1.7rem; }
.profile-card > p:last-child { color: var(--muted); font-size: .82rem; }

.login-body { min-height: 100vh; background: var(--white); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.login-visual { position: relative; overflow: hidden; min-height: 720px; padding: 45px clamp(35px, 6vw, 90px); display: flex; flex-direction: column; color: var(--white); background: radial-gradient(circle at 83% 30%, rgba(41,233,186,.12), transparent 28%), linear-gradient(135deg, #07162f, #0b2b4f); }
.login-visual::before { content: ""; position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px); background-size: 62px 62px; mask-image: linear-gradient(135deg,#000,transparent 78%); }
.login-visual .admin-logo { position: relative; color: var(--white); }
.login-visual .admin-logo span { color: var(--electric); }
.login-message { position: relative; z-index: 1; margin: auto 0; }
.login-message .mono-label { color: var(--electric); }
.login-message h1 { margin: 0; font-size: clamp(3.3rem, 6.5vw, 6.2rem); line-height: .96; letter-spacing: -.07em; }
.login-message h1 em { color: var(--electric); font-style: normal; font-weight: 500; }
.login-message > p:last-child { max-width: 500px; color: rgba(255,255,255,.62); }
.login-systems { position: relative; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.38); font: 700 .56rem ui-monospace, monospace; letter-spacing: .12em; }
.login-systems i { width: 3px; height: 3px; background: var(--electric); border-radius: 50%; }
.login-panel { padding: 50px; display: grid; place-items: center; }
.login-form-wrap { width: min(420px, 100%); }
.login-form-wrap h2, .install-panel h2 { margin: 0; font-size: 2.4rem; letter-spacing: -.055em; }
.login-subtitle { margin: 6px 0 27px; color: var(--muted); }
.login-form-wrap form .field { margin-bottom: 17px; }
.login-form-wrap form .admin-button { margin-top: 8px; }
.login-form-wrap > .back-link { margin-top: 24px; }

.install-body { min-height: 100vh; color: var(--ink); background: #eaf0f5; }
.install-shell { width: min(1120px, calc(100% - 40px)); margin: 40px auto; display: grid; grid-template-columns: .75fr 1.25fr; box-shadow: var(--shadow); }
.install-brand { position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; color: var(--white); background: var(--ink); }
.install-brand::after { content: ""; position: absolute; width: 300px; height: 300px; left: -190px; bottom: -160px; border: 1px solid rgba(41,233,186,.25); border-radius: 50%; box-shadow: 0 0 0 45px rgba(41,233,186,.03), 0 0 0 90px rgba(41,233,186,.02); }
.install-brand .admin-logo { color: var(--white); }
.install-brand .admin-logo span { color: var(--electric); }
.install-brand > .mono-label { margin-top: 100px; color: var(--electric); }
.install-brand h1 { margin: 0; font-size: 3.25rem; line-height: 1.05; letter-spacing: -.065em; }
.install-brand > p:not(.mono-label) { color: rgba(255,255,255,.62); }
.install-steps { margin: auto 0 0; padding: 0; list-style: none; }
.install-steps li { padding: 13px 0; display: flex; gap: 13px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.67); font-size: .8rem; }
.install-steps b { color: var(--electric); font: 700 .65rem ui-monospace, monospace; }
.install-panel { padding: 48px; background: var(--white); }
.panel-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 25px; }
.secure-mark, .lock-mark, .success-mark { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 50%; }
.success-mark { color: #08734e; background: #dff6eb; font-size: 1.4rem; }
.lock-mark { color: var(--amber); background: #fff0d9; }
.secure-mark { color: var(--green); background: #dff6eb; }
.secure-pill { padding: 5px 8px; color: var(--green); background: #dff6eb; font: 800 .55rem ui-monospace, monospace; letter-spacing: .1em; }
.install-panel > p { color: var(--muted); }
.install-panel fieldset { margin: 0 0 25px; padding: 0; border: 0; }
.install-panel legend { width: 100%; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: .84rem; font-weight: 760; }
.install-panel .field { margin-bottom: 14px; }
.field-grid--host { grid-template-columns: 1fr 110px; }
.action-stack { margin-top: 28px; display: grid; gap: 9px; }

:focus-visible { outline: 3px solid #e6ad31; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }
@media (max-width: 1080px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .banner-table { grid-template-columns: minmax(240px, 1.4fr) minmax(160px, .8fr) 100px 135px; }
  .banner-table--head span:nth-child(3), .banner-table--row .order-cell { display: none; }
  .editor-layout { grid-template-columns: 1fr; }
  .editor-side { position: static; grid-template-columns: 1fr 1fr; }
  .editor-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .install-shell { grid-template-columns: 1fr; }
  .install-brand { min-height: 500px; }
}
@media (max-width: 780px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  .admin-sidebar.is-open { transform: translateX(0); }
  .admin-page { margin-left: 0; }
  .sidebar-toggle { display: block; margin-right: auto; }
  .admin-topbar { padding: 0 18px; }
  .admin-topbar > div:first-of-type { display: none; }
  .admin-main { width: min(100% - 32px, 680px); padding-top: 33px; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.38); }
  .sidebar-backdrop.is-open { display: block; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .banner-table--head { display: none; }
  .banner-table--row { grid-template-columns: 1fr auto; gap: 13px; padding: 18px; }
  .banner-cell-main { grid-column: 1 / -1; }
  .schedule-cell { grid-column: 1; }
  .banner-table--row > .status-badge { grid-column: 2; grid-row: 2; }
  .row-actions { grid-column: 1 / -1; justify-content: flex-start; padding-top: 10px; border-top: 1px solid var(--line); }
  .account-layout { grid-template-columns: 1fr; }
  .login-shell { grid-template-columns: 1fr; }
  .login-visual { min-height: 480px; }
  .login-panel { min-height: 600px; padding: 50px 24px; }
  .install-shell { width: 100%; margin: 0; }
  .install-panel, .install-brand { padding: 36px 24px; }
}
@media (max-width: 560px) {
  .admin-footer { padding: 15px 18px; flex-direction: column; gap: 5px; align-items: flex-start; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { min-height: 140px; padding: 17px; }
  .metric-card strong { font-size: 2.55rem; }
  .recent-list > a { grid-template-columns: 46px 1fr 16px; }
  .recent-list .status-badge { display: none; }
  .banner-thumb { width: 46px; height: 46px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-grid .field + .field { margin-top: 0; }
  .editor-side { grid-template-columns: 1fr; }
  .editor-actions { grid-column: auto; grid-template-columns: 1fr; }
  .current-image { grid-template-columns: 1fr; }
  .login-visual { min-height: 410px; padding: 34px 24px; }
  .login-message h1 { font-size: 3.5rem; }
  .login-systems { flex-wrap: wrap; }
  .install-brand { min-height: 480px; }
  .install-brand h1 { font-size: 2.7rem; }
}

