.home-banner-section { padding: 16px 0 28px; background: #081323; }
html[data-theme="light"] .home-banner-section { background: #f5f8fd; }
.home-banner-list { display: grid; gap: 12px; }
.home-banner-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; min-width: 0; }
.home-banner-row.is-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-banner-row.is-split .home-banner-link { grid-column: var(--banner-column); min-width: 0; }
.home-banner-placeholder { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; min-height: 108px; padding: 24px 28px; box-sizing: border-box; border: 1px solid var(--line, #dfe7f1); border-radius: 12px; background: var(--panel, #fff); color: var(--muted, #65758b); }
.home-banner-placeholder-content { display: flex; align-items: center; gap: 16px; min-width: 0; }
.home-banner-symbol { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; color: var(--blue); background: var(--panel-2); }
.home-banner-symbol svg { width: 24px; height: 24px; }
.home-banner-placeholder-copy { display: grid; gap: 6px; }
.home-banner-placeholder-copy strong { color: var(--ink); font-size: 15px; font-weight: 500; letter-spacing: .3px; }
.home-banner-placeholder-copy > span { color: var(--muted); font-size: 12px; letter-spacing: .4px; }
.home-banner-placeholder-mark { flex-shrink: 0; color: var(--muted); font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 2px; }
html[data-theme="light"] .home-banner-placeholder { border-color: #dfe7f1; background: #fff; }
html[data-theme="light"] .home-banner-symbol { border-color: #dce7f6; background: #f2f6fc; }
.home-banner-link { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.home-banner-link img { display: block; width: 100%; aspect-ratio: 12 / 1; object-fit: cover; object-position: center; }
.home-banner-row .home-banner-link img { height: clamp(90px, 8.4vw, 108px); aspect-ratio: auto; }
.home-banner-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.home-banner-label { position: absolute; right: 10px; bottom: 8px; padding: 2px 7px; border-radius: 4px; background: rgba(10, 22, 38, .6); color: #fff; font-size: 10px; line-height: 1.5; pointer-events: none; }
.home-banner-section + .security-band { padding-top: 44px; border-top: 0; }
.home-banner-section + .ai-band { padding-top: 56px; border-top: 1px solid var(--line); background: #101c2e; }
html[data-theme="light"] .home-banner-section + .ai-band { background: #f5f8fd; }
.home-banner-editor .section-title { align-items: center; margin-bottom: 0; }
.banner-create-controls { display: flex; align-items: center; gap: 12px; }
.banner-create-controls label { display: grid; gap: 6px; min-width: 210px; margin: 0; }
.banner-create-controls label > span, .banner-layout-picker > span { color: var(--muted, #65758b); font-size: 12px; }
.banner-create-controls select { min-width: 0; }
.banner-create-controls .admin-btn { flex-shrink: 0; align-self: end; min-height: 42px; }
.banner-layout-picker { display: grid; gap: 8px; width: min(100%, 320px); margin: 0; }
.banner-split-editors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.banner-slot-editor { min-width: 0; padding: 18px; border: 1px solid var(--border, #d7e2ef); border-radius: 8px; background: var(--surface, #f4f7fb); }
.banner-slot-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.banner-slot-heading strong { font-size: 15px; }
.banner-slot-editor .banner-admin-preview-split { aspect-ratio: 608 / 108; min-height: 70px; }
.banner-slot-editor .form-grid.two { grid-template-columns: minmax(0, 1fr); }
.home-banner-editor .banner-admin-list { margin-top: 0; }
.banner-admin-list { display: grid; gap: 18px; margin-top: 22px; }
.banner-admin-card { min-width: 0; }
.banner-admin-preview { display: grid; place-items: center; width: 100%; aspect-ratio: 12 / 1; min-height: 54px; margin: 12px 0; overflow: hidden; border: 1px solid var(--border, #d7e2ef); border-radius: 4px; background: var(--surface, #f4f7fb); color: var(--muted, #65758b); font-size: 13px; }
.banner-admin-preview img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center; }
.banner-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.banner-admin-card .record-head .banner-row-actions { flex-direction: row; }
.banner-visibility { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.banner-switch { position: relative; display: inline-flex; flex-direction: row; align-items: center; gap: 10px; cursor: pointer; color: var(--text); font-size: 13px; }
.banner-switch input { position: absolute; left: 0; width: 38px; height: 22px; padding: 0; margin: 0; opacity: 0; cursor: pointer; }
.banner-switch-track { position: relative; flex: 0 0 38px; width: 38px; height: 22px; border-radius: 11px; background: #a1adbc; transition: background .15s; pointer-events: none; }
.banner-switch-track::after { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; content: ''; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); transition: transform .15s; }
.banner-switch input:checked + .banner-switch-track { background: var(--blue); }
.banner-switch input:checked + .banner-switch-track::after { transform: translateX(16px); }
.banner-switch input:focus-visible + .banner-switch-track { outline: 2px solid var(--blue); outline-offset: 3px; }
.banner-switch:has(input:disabled) { opacity: .55; cursor: wait; }
.banner-switch input:disabled { cursor: wait; }
.banner-upload { flex-direction: row; margin-bottom: 16px; }
.banner-upload.is-disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 700px) { .home-banner-section { padding: 16px 0 20px; } .home-banner-list { gap: 8px; } .banner-admin-card .record-head { align-items: flex-start; flex-wrap: wrap; gap: 12px; } }
@media (max-width: 700px) { .home-banner-placeholder { min-height: 96px; padding: 18px; gap: 12px; } .home-banner-placeholder-content { gap: 12px; } .home-banner-placeholder-mark { display: none; } .home-banner-section + .security-band { padding-top: 34px; } .home-banner-section + .ai-band { padding-top: 40px; } }
@media (max-width: 700px) {
  .home-banner-row.is-split { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .home-banner-row.is-split .home-banner-link { grid-column: 1; }
  .home-banner-row .home-banner-link img { height: 96px; }
  .home-banner-editor .section-title { align-items: stretch; flex-direction: column; gap: 18px; }
  .banner-create-controls { align-items: stretch; flex-wrap: wrap; }
  .banner-create-controls label { flex: 1; min-width: 160px; }
  .banner-split-editors { grid-template-columns: minmax(0, 1fr); }
  .banner-slot-editor { padding: 16px; }
}
