@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --brand-blue: #005BFA;
  --brand-blue-hover: #0047C3;
  --blue-soft: #EAF1FF;
  --navy: #172A46;
  --ivory: #F5F7FA;
  --paper: #FFFFFF;
  --ink: #4E4E52;
  --muted: #68717F;
  --line: #E1E6EE;
  --line-strong: #D7DEE8;
  --warning-bg: #fff4e9;
  --warning-text: #874521;
  --danger: #a43c2b;
  --shadow: 0 18px 48px rgba(78, 78, 82, .08);
  font-family: "Manrope", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; min-height: 100%; background: var(--ivory); }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); background: var(--ivory); }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid #005BFA; outline-offset: 3px; }
.sidebar :focus-visible { outline-color: #8AB5FF; }
::selection { color: #fff; background: var(--brand-blue); }

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  color: var(--brand-blue);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -3px;
  line-height: .9;
  text-decoration: none;
}
.brand-mark span { color: var(--ink); }

.auth-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 22px 28px;
  background:
    radial-gradient(ellipse at 11% 18%, rgba(0, 91, 250, .08), transparent 29%),
    radial-gradient(ellipse at 88% 78%, rgba(78, 78, 82, .09), transparent 32%),
    var(--ivory);
}
.auth-card {
  width: min(100%, 462px);
  padding: 42px 44px 35px;
  border: 1px solid rgba(78, 78, 82, .09);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(78, 78, 82, .11);
}
.auth-brand { margin-bottom: 43px; }
.auth-overline, .eyebrow, .sidebar-caption, .section-nav-heading, .topbar-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.4;
}
.auth-overline { margin-bottom: 10px; color: var(--brand-blue-hover); }
.auth-card h1 { margin: 0; color: var(--brand-blue); font-size: clamp(27px, 5vw, 34px); font-weight: 700; letter-spacing: -.045em; }
.auth-description { margin: 12px 0 0; color: #59616B; font-size: 14px; line-height: 1.65; }
.auth-trust-note { margin: 24px 0 25px; padding: 13px 15px; border: 1px solid #E5EAF1; border-radius: 12px; color: #68717B; background: #F8FAFC; font-size: 12px; line-height: 1.65; }
.auth-feedback { min-height: 0; margin: 12px 0 0; color: var(--danger); font-size: 12px; line-height: 1.6; }
.auth-feedback:empty { display: none; }
.auth-back-link { display: inline-flex; gap: 7px; align-items: center; margin-top: 25px; color: #697482; font-size: 12px; font-weight: 600; text-decoration: none; }
.auth-back-link:hover { color: var(--brand-blue); }
.auth-footer { margin: 21px 0 0; color: #858D98; font-size: 11px; text-align: center; }
.auth-loading-card { display: flex; flex-direction: column; align-items: center; padding: 40px; }
.auth-loading-card .brand-mark { margin-bottom: 30px; }
.auth-loading-card p { margin: 15px 0 0; color: var(--muted); font-size: 13px; }
.loading-spinner { width: 21px; height: 21px; display: inline-block; flex: 0 0 auto; border: 2px solid rgba(78, 78, 82, .16); border-top-color: var(--brand-blue); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .52; }
.button-primary { color: #fff; border-color: var(--brand-blue); background: var(--brand-blue); box-shadow: 0 5px 13px rgba(78, 78, 82, .12); }
.button-primary:hover:not(:disabled) { border-color: var(--brand-blue-hover); background: var(--brand-blue-hover); box-shadow: 0 8px 18px rgba(78, 78, 82, .17); }
.button-secondary { color: var(--brand-blue); border-color: #DCE2EB; background: #fff; }
.button-secondary:hover:not(:disabled) { border-color: #BAC5D4; background: #F6F8FB; }
.button-quiet { color: #545E69; border-color: #E1E6ED; background: transparent; }
.button-wide { width: 100%; min-height: 49px; }
.button-arrow { margin-left: auto; font-size: 17px; font-weight: 500; }

.admin-app { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  padding: 30px 17px 18px;
  color: #F4F7FB;
  background: var(--navy);
}
.sidebar-brand { width: fit-content; margin: 0 0 29px 12px; color: #fff; font-size: 35px; }
.sidebar-brand span { color: #86AAFF; }
.sidebar-caption { margin: 0 12px 16px; color: #B5C8E8; font-size: 9px; }
.primary-nav { display: grid; gap: 5px; }
.primary-nav-link {
  width: 100%;
  min-height: 45px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  color: #CAD4E3;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  transition: background-color .15s ease, color .15s ease;
}
.primary-nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.primary-nav-link.is-active { color: #fff; background: rgba(255,255,255,.13); box-shadow: inset 3px 0 #86AAFF; }
.nav-icon { width: 22px; color: #B5C8E8; font-size: 17px; text-align: center; }
.primary-nav-link.is-active .nav-icon { color: #8AB5FF; }
.sidebar-rule { height: 1px; margin: 19px 10px 18px; background: rgba(255,255,255,.13); }
.section-nav-wrap { min-height: 0; display: flex; flex: 1; flex-direction: column; }
.section-nav-heading { margin: 0 11px 11px; color: #B5C8E8; font-size: 9px; }
.section-nav { min-height: 0; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; padding-right: 2px; scrollbar-color: rgba(255,255,255,.22) transparent; scrollbar-width: thin; }
.section-nav-group { margin: 8px 10px 4px; color: #A4BADD; font-size: 10px; font-weight: 700; line-height: 1.45; }
.section-nav-group:first-child { margin-top: 3px; }
.section-nav-link {
  width: 100%;
  min-height: 34px;
  overflow: hidden;
  padding: 7px 10px 7px 13px;
  border: 0;
  border-radius: 7px;
  color: #D5DEED;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.4;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.section-nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.section-nav-link.is-active { color: #fff; background: rgba(255,255,255,.14); font-weight: 700; }
.sidebar-empty { margin: 0 10px; color: #B5C8E8; font-size: 11px; line-height: 1.6; }
.sidebar-footer { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 17px 11px 2px; border-top: 1px solid rgba(255,255,255,.13); color: #BDCCE6; font-size: 10px; }
.sidebar-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #69A0FF; box-shadow: 0 0 0 3px rgba(105,160,255,.18); }

.admin-main { min-width: 0; }
.topbar {
  min-height: 83px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 15px clamp(24px, 4vw, 58px);
  border-bottom: 1px solid rgba(78, 78, 82, .07);
  background: rgba(255,255,255,.84);
}
.topbar-eyebrow { color: #8993A0; font-size: 8px; }
.topbar-title-group h1 { margin: 3px 0 0; color: var(--brand-blue); font-size: 16px; font-weight: 750; letter-spacing: -.025em; }
.topbar-actions { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); }
.user-chip { display: flex; align-items: center; gap: 9px; max-width: 220px; }
.user-avatar { width: 31px; height: 31px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--brand-blue); background: #EAF1FF; font-size: 11px; font-weight: 800; }
.user-name { max-width: 145px; overflow: hidden; color: #505965; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.topbar-link, .logout-button { display: inline-flex; align-items: center; gap: 6px; color: #4E5968; font-size: 11px; font-weight: 700; text-decoration: none; }
.topbar-link:hover, .logout-button:hover { color: var(--brand-blue-hover); }
.logout-button { padding: 8px 0; border: 0; background: none; cursor: pointer; }
.workspace { width: min(100%, 1440px); margin: 0 auto; padding: 41px clamp(24px, 4vw, 58px) 64px; }
.workspace-loading { min-height: 220px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 13px; }
.error-panel { display: flex; align-items: center; gap: 16px; padding: 22px; border: 1px solid #efd0c3; border-radius: 14px; background: #fffaf6; }
.error-symbol { width: 31px; height: 31px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--warning-text); background: #FFE8D7; font-weight: 800; }
.error-panel h2 { margin: 0 0 4px; color: var(--brand-blue); font-size: 14px; }
.error-panel p { margin: 0; color: #765d4e; font-size: 12px; line-height: 1.6; }
.error-panel .button { margin-left: auto; }
.page-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 23px; }
.eyebrow { margin-bottom: 7px; color: var(--brand-blue-hover); font-size: 9px; }
.page-title { margin: 0; color: var(--brand-blue); font-size: clamp(24px, 3vw, 32px); font-weight: 720; letter-spacing: -.055em; line-height: 1.15; }
.page-description { max-width: 680px; margin: 8px 0 0; color: #78818D; font-size: 12px; line-height: 1.65; }
.page-actions { display: flex; flex: 0 0 auto; gap: 9px; }
.page-actions .button { min-height: 40px; padding: 9px 13px; font-size: 11px; }
.notice-bar { display: flex; align-items: flex-start; gap: 11px; margin: -3px 0 17px; padding: 13px 13px 13px 15px; border: 1px solid #f1d2bd; border-radius: 11px; color: var(--warning-text); background: var(--warning-bg); }
.notice-bar.is-success { border-color: #C8D9F8; color: #005BFA; background: #EAF1FF; }
.notice-bar.is-error { border-color: #efc7be; color: #843a2e; background: #fff3ef; }
.notice-icon { width: 19px; height: 19px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 11px; font-weight: 800; }
.notice-bar p { flex: 1; margin: 1px 0 0; font-size: 11px; line-height: 1.6; }
.notice-action, .notice-dismiss { flex: 0 0 auto; padding: 3px 5px; border: 0; color: inherit; background: transparent; cursor: pointer; font-size: 11px; font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.notice-dismiss { margin: -3px -4px 0 2px; text-decoration: none; font-size: 19px; line-height: 1; }
.status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.status-card { min-height: 111px; padding: 15px 17px; border: 1px solid #e7ebe4; border-radius: 12px; background: rgba(255,255,255,.86); }
.status-card-draft { border-color: #DCE6F4; }
.status-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.status-label { color: #77818E; font-size: 10px; font-weight: 650; }
.status-pill { display: inline-flex; align-items: center; min-height: 21px; padding: 3px 8px; border-radius: 20px; color: #005BFA; background: #EAF1FF; font-size: 9px; font-weight: 750; }
.status-pill.is-pending { color: #94522e; background: #fff0e5; }
.status-pill.is-dirty { color: #914526; background: #ffe8da; }
.status-marker { color: #005BFA; font-size: 10px; }
.status-marker-soft { color: #A0A9B5; font-size: 16px; line-height: .8; }
.status-value { display: block; overflow: hidden; color: var(--brand-blue); font-size: 15px; font-weight: 750; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.status-detail { display: block; overflow: hidden; margin-top: 3px; color: #8C95A0; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.editor-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.search-field { width: min(100%, 430px); min-height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #E2E7EF; border-radius: 10px; background: var(--paper); transition: border-color .15s ease, box-shadow .15s ease; }
.search-field:focus-within { border-color: #80A7F0; box-shadow: 0 0 0 3px rgba(0,91,250,.10); }
.search-icon { color: #75808D; font-size: 22px; line-height: 1; }
.search-field input { width: 100%; min-width: 0; padding: 10px 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }
.search-field input::placeholder { color: #8792A0; }
.search-field kbd { display: none; flex: 0 0 auto; padding: 3px 6px; border: 1px solid #E4E9F0; border-radius: 5px; color: #8993A0; font-family: inherit; font-size: 9px; }
.change-hint { color: #838D98; font-size: 10px; }
.change-hint.is-dirty { color: #96512e; font-weight: 700; }
.editor-panel { display: grid; gap: 13px; }
.section-editor-group { display: grid; gap: 12px; }
.search-results-heading { margin: 8px 0 0; color: #77818E; font-size: 11px; font-weight: 700; }
.field-card, .media-slot-card { min-width: 0; padding: 17px 19px 18px; border: 1px solid #E4E9F0; border-radius: 12px; background: var(--paper); box-shadow: 0 3px 10px rgba(78,78,82,.018); }
.field-heading, .slot-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.field-label, .slot-label { display: block; color: #4E4E52; font-size: 11px; font-weight: 750; line-height: 1.5; }
.field-kind { flex: 0 0 auto; padding: 3px 7px; border-radius: 5px; color: #737D89; background: #F1F4F8; font-size: 8px; font-weight: 750; letter-spacing: .035em; text-transform: uppercase; }
.field-key { max-width: 42%; overflow: hidden; color: #8792A0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.text-field, .url-field, .slot-select, .library-select, .url-input {
  width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #E0E5EC; border-radius: 8px; color: #4E4E52; background: #fff; font-size: 11px; line-height: 1.6; transition: border-color .15s ease, box-shadow .15s ease;
}
.text-field { min-height: 97px; display: block; resize: vertical; }
.text-field:focus, .slot-select:focus, .library-select:focus, .url-input:focus { border-color: #80A7F0; outline: 0; box-shadow: 0 0 0 3px rgba(0,91,250,.10); }
.field-footnote { margin: 7px 0 0; color: #8792A0; font-size: 9px; line-height: 1.5; }
.empty-editor { padding: 28px; border: 1px dashed #DCE2EB; border-radius: 12px; color: #808A97; background: rgba(255,255,255,.55); font-size: 12px; line-height: 1.7; }
.empty-editor strong { display: block; margin-bottom: 4px; color: var(--brand-blue); font-size: 13px; }
.media-section { margin-top: 8px; }
.media-section-title { margin: 0 0 12px; color: var(--brand-blue); font-size: 14px; font-weight: 750; letter-spacing: -.02em; }
.media-slot-card { display: grid; grid-template-columns: minmax(0,1fr); gap: 13px; }
.slot-control-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.slot-control { min-width: 0; }
.slot-control label { display: block; margin-bottom: 6px; color: #56616E; font-size: 10px; font-weight: 700; }
.slot-select, .library-select { min-height: 39px; padding: 8px 10px; }
.slot-type-select { max-width: 250px; }
.slot-source-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px; }
.slot-reset-row { display: flex; justify-content: flex-end; }
.text-button { padding: 6px 0; border: 0; color: #005BFA; background: none; cursor: pointer; font-size: 10px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: var(--brand-blue-hover); }
.text-button:disabled { cursor: not-allowed; opacity: .5; }
.slot-preview { display: flex; align-items: center; gap: 11px; min-height: 39px; padding: 8px 10px; border-radius: 8px; color: #68727F; background: #F5F7FA; font-size: 10px; }
.slot-preview img { width: 48px; height: 38px; border-radius: 5px; object-fit: cover; }
.slot-preview video { width: 95px; max-height: 56px; border-radius: 5px; background: #172A46; }
.slot-preview a { overflow: hidden; color: #005BFA; text-overflow: ellipsis; white-space: nowrap; }
.validation-note { margin: 5px 0 0; color: #a05532; font-size: 9px; line-height: 1.5; }

.media-heading-row { margin-bottom: 24px; }
.library-panel { display: grid; gap: 20px; }
.upload-panel { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 20px; padding: 21px 23px; border: 1px solid #E0E5EC; border-radius: 14px; background: var(--paper); box-shadow: 0 4px 16px rgba(78,78,82,.025); }
.upload-copy h3 { margin: 0; color: var(--brand-blue); font-size: 13px; font-weight: 750; }
.upload-copy p { margin: 5px 0 0; color: #7B8590; font-size: 10px; line-height: 1.65; }
.upload-copy .upload-limits { color: #59636E; font-weight: 650; }
.upload-controls { display: flex; align-items: center; gap: 10px; }
.file-picker { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 14px; border: 1px solid var(--brand-blue); border-radius: 9px; color: #fff; background: var(--brand-blue); cursor: pointer; font-size: 10px; font-weight: 750; white-space: nowrap; }
.file-picker:hover { background: var(--brand-blue-hover); }
.file-picker:has(input:disabled) { cursor: wait; opacity: .62; }
.file-picker input { position: absolute; inset: 0; width: 100%; height: 100%; cursor: inherit; opacity: 0; }
.upload-progress { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(90px,1fr); align-items: center; gap: 10px; color: #63707D; font-size: 10px; }
.progress-track { height: 5px; overflow: hidden; border-radius: 10px; background: #E8EDF4; }
.progress-indeterminate { width: 35%; height: 100%; border-radius: inherit; background: var(--brand-blue); animation: progress-sweep 1.2s ease-in-out infinite alternate; }
@keyframes progress-sweep { from { transform: translateX(-14%); } to { transform: translateX(205%); } }
.apply-media-control { display: grid; grid-template-columns: auto minmax(180px,360px); align-items: center; gap: 13px; padding: 15px 18px; border: 1px solid #E5EAF1; border-radius: 11px; background: rgba(255,255,255,.75); }
.apply-media-control label { color: #56616E; font-size: 10px; font-weight: 750; }
.library-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; }
.library-heading-row h3 { margin: 0; color: var(--brand-blue); font-size: 14px; font-weight: 750; }
.library-heading-row p { margin: 4px 0 0; color: #858F9C; font-size: 10px; }
.library-count { color: #7C8693; font-size: 10px; font-weight: 650; }
.media-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.media-card { min-width: 0; overflow: hidden; border: 1px solid #E4E9F0; border-radius: 12px; background: var(--paper); box-shadow: 0 3px 12px rgba(78,78,82,.025); }
.media-preview { position: relative; height: 176px; overflow: hidden; display: grid; place-items: center; background: #EEF2F7; }
.media-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.media-preview video { width: 100%; height: 100%; display: block; object-fit: contain; background: #172A46; }
.media-preview-empty { display: grid; justify-items: center; gap: 7px; color: #858F9C; font-size: 10px; }
.media-preview-empty .preview-symbol { color: #A4B1C2; font-size: 29px; }
.media-card-body { padding: 13px 14px 14px; }
.media-meta-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.media-type-tag { padding: 4px 7px; border-radius: 5px; color: #005BFA; background: #EAF1FF; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.media-created { color: #9BA3AE; font-size: 8px; white-space: nowrap; }
.media-filename { display: block; overflow: hidden; color: #4E4E52; font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.media-size { display: block; margin-top: 3px; color: #87919E; font-size: 9px; }
.media-card-footer { display: flex; justify-content: flex-end; margin-top: 12px; padding-top: 10px; border-top: 1px solid #E6EAF1; }
.media-card-footer .button { min-height: 33px; padding: 7px 11px; font-size: 9px; }
.library-empty { padding: 38px 22px; border: 1px dashed #DCE2EB; border-radius: 13px; text-align: center; background: rgba(255,255,255,.6); }
.library-empty .empty-icon { color: #A4B1C2; font-size: 27px; }
.library-empty h3 { margin: 7px 0 4px; color: var(--brand-blue); font-size: 13px; }
.library-empty p { max-width: 430px; margin: 0 auto; color: #818B98; font-size: 10px; line-height: 1.65; }
.media-load-error { padding: 17px; border: 1px solid #efd0c3; border-radius: 10px; color: #765d4e; background: #fffaf6; font-size: 11px; line-height: 1.6; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(1px,1px,1px,1px) !important; white-space: nowrap !important; clip-path: inset(50%) !important; }

@media (min-width: 1300px) {
  .media-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .search-field kbd { display: inline-block; }
}
@media (max-width: 1080px) {
  .admin-app { grid-template-columns: 222px minmax(0,1fr); }
  .workspace { padding-top: 34px; }
  .status-grid { gap: 9px; }
  .status-card { padding: 13px; }
  .media-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .admin-app { display: block; }
  .sidebar { position: static; width: 100%; height: auto; min-height: 0; padding: 13px 18px 12px; }
  .sidebar-brand { margin: 0 0 12px 2px; font-size: 30px; }
  .sidebar-caption, .sidebar-rule, .section-nav-heading, .sidebar-footer { display: none; }
  .primary-nav { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .primary-nav-link { min-height: 40px; justify-content: center; gap: 7px; padding: 0 8px; font-size: 10px; }
  .primary-nav-link.is-active { box-shadow: inset 0 -2px #86AAFF; }
  .nav-icon { width: auto; font-size: 15px; }
  .section-nav-wrap { display: block; margin-top: 10px; }
  .section-nav { flex-direction: row; align-items: center; gap: 7px; overflow-x: auto; overflow-y: hidden; padding: 0 1px 3px; scrollbar-width: thin; }
  .section-nav-group { display: none; }
  .section-nav-link { width: auto; min-height: 31px; flex: 0 0 auto; padding: 6px 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; font-size: 9px; }
  .section-nav-link.is-active { border-color: rgba(255,255,255,.15); }
  .topbar { min-height: 68px; padding: 11px 19px; }
  .topbar-eyebrow { font-size: 7px; }
  .topbar-title-group h1 { font-size: 14px; }
  .topbar-actions { gap: 14px; }
  .user-chip { gap: 6px; }
  .user-avatar { width: 27px; height: 27px; font-size: 9px; }
  .user-name { max-width: 100px; font-size: 9px; }
  .topbar-link, .logout-button { gap: 4px; font-size: 9px; }
  .workspace { padding: 27px 19px 45px; }
  .page-heading-row { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 19px; }
  .page-actions { width: 100%; }
  .page-actions .button { flex: 1; }
  .status-grid { grid-template-columns: 1fr; gap: 8px; }
  .status-card { min-height: 79px; padding: 11px 13px; }
  .status-card-top { margin-bottom: 3px; }
  .status-value { font-size: 13px; }
  .status-detail { margin-top: 1px; }
  .editor-toolbar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .search-field { width: 100%; }
  .change-hint { padding-left: 2px; }
  .slot-control-grid { grid-template-columns: 1fr; }
  .slot-source-row { grid-template-columns: 1fr; }
  .upload-panel { grid-template-columns: 1fr; gap: 13px; padding: 17px; }
  .upload-controls { justify-content: flex-start; }
  .apply-media-control { grid-template-columns: 1fr; gap: 8px; }
  .media-grid { gap: 10px; }
  .media-preview { height: 145px; }
}
@media (max-width: 480px) {
  .auth-card { padding: 32px 25px 27px; border-radius: 18px; }
  .auth-brand { margin-bottom: 34px; }
  .topbar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .topbar-actions { width: 100%; justify-content: space-between; }
  .user-name { max-width: 110px; }
  .media-grid { grid-template-columns: 1fr; }
  .media-preview { height: 190px; }
  .page-actions { gap: 7px; }
  .page-actions .button { gap: 5px; padding: 8px 9px; font-size: 9px; }
  .error-panel { align-items: flex-start; flex-wrap: wrap; padding: 16px; }
  .error-panel .button { margin-left: 46px; }
  .field-card, .media-slot-card { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Campos editoriais de depoimentos retornados pelo schema da API. */
.testimonial-card {
  min-width: 0;
  display: grid;
  gap: 13px;
  padding: 18px 19px;
  border: 1px solid #E2E7EF;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 3px 10px rgba(78,78,82,.018);
}
.testimonial-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #E6EAF1; }
.testimonial-heading h4 { min-width: 0; overflow: hidden; margin: 0; color: var(--brand-blue); font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.testimonial-id { max-width: 42%; overflow: hidden; color: #8993A0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.testimonial-text-control { display: grid; gap: 7px; }
.testimonial-quote { min-height: 148px; }
.testimonial-image-editor { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid #E6EAF1; }
.slot-control-label { color: #56616E; font-size: 10px; font-weight: 700; }
.testimonial-image-select { max-width: 520px; }
.testimonial-image-editor .slot-preview { width: fit-content; max-width: 100%; }
.testimonial-image-editor .slot-preview img { width: 68px; height: 54px; }
.testimonial-toggle { width: fit-content; display: inline-flex; align-items: center; gap: 9px; padding: 8px 11px; border: 1px solid #E3E8EF; border-radius: 8px; color: #4E5968; background: #F6F8FB; cursor: pointer; font-size: 10px; font-weight: 700; }
.testimonial-toggle input { width: 15px; height: 15px; margin: 0; accent-color: var(--brand-blue); }
.testimonial-toggle input:disabled { cursor: not-allowed; }
