:root {
  --admin-navy: #001a50;
  --admin-navy-raised: #0a2c68;
  --admin-gold: #e2b062;
  --admin-canvas: #f4f6f9;
  --admin-ink: #17233d;
  --admin-muted: #5b6780;
  --admin-line: #d9e0ea;
  --admin-green: #087e55;
  --admin-green-soft: #e8f6ef;
  --admin-red: #b4232c;
  --admin-red-soft: #fff0f1;
  --admin-amber: #896013;
  --admin-amber-soft: #fff6e5;
}

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.admin-app, .admin-auth-shell, .admin-activation, .admin-boot { min-height: 100dvh; color: var(--admin-ink); font-family: Manrope, Arial, sans-serif; }
.admin-app button, .admin-app input, .admin-app select, .admin-auth-shell button, .admin-auth-shell input, .admin-activation button, .admin-activation input { font: inherit; }
.admin-app button:focus-visible, .admin-app input:focus-visible, .admin-app select:focus-visible, .admin-app a:focus-visible, .admin-auth-shell button:focus-visible, .admin-auth-shell input:focus-visible, .admin-activation button:focus-visible, .admin-activation input:focus-visible { outline: 3px solid #a76a13; outline-offset: 3px; }
.admin-app svg, .admin-auth-shell svg, .admin-activation svg { width: 20px; height: 20px; }
.admin-skip { position: fixed; z-index: 100; top: -80px; left: 18px; padding: 10px 14px; border-radius: 6px; background: white; color: var(--admin-navy); font-weight: 800; }
.admin-skip:focus { top: 12px; }

.admin-primary-button, .admin-secondary-button, .admin-site-link { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px; padding: 10px 17px; border-radius: 7px; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.admin-primary-button { border: 1px solid var(--admin-navy); background: var(--admin-navy); color: white; }
.admin-primary-button:hover:not(:disabled) { background: var(--admin-navy-raised); }
.admin-primary-button:disabled { cursor: not-allowed; opacity: .56; }
.admin-secondary-button, .admin-site-link { border: 1px solid #aab5c7; background: white; color: var(--admin-navy); }
.admin-secondary-button:hover, .admin-site-link:hover { background: #eef2f7; }

/* Acesso: uma porta clara e deliberada, sem distração de campanha. */
.admin-auth-shell { display: grid; grid-template-columns: minmax(420px, .95fr) minmax(500px, 1.05fr); background: white; }
.admin-auth-brand { display: flex; min-height: 100dvh; flex-direction: column; justify-content: space-between; padding: clamp(42px, 6vw, 86px); overflow: hidden; background: var(--admin-navy); color: white; }
.admin-auth-brand > img { width: min(360px, 82%); height: auto; }
.admin-auth-brand h1 { max-width: 630px; color: white; font-size: clamp(43px, 4.6vw, 70px); font-weight: 650; line-height: 1.03; letter-spacing: -.035em; }
.admin-auth-brand h1 + p { max-width: 570px; margin-top: 24px; color: #d9e4f7; font-size: 17px; line-height: 1.7; }
.admin-auth-security { display: flex; align-items: center; gap: 10px; color: #d9e4f7; font-size: 13px; }
.admin-auth-security svg { color: var(--admin-gold); }
.admin-auth-panel { display: grid; min-height: 100dvh; place-items: center; padding: 52px; }
.admin-auth-form-wrap { width: min(430px, 100%); }
.admin-product-name { color: var(--admin-amber); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-auth-form-wrap h2 { margin: 13px 0 0; color: var(--admin-navy); font-size: 38px; line-height: 1.12; letter-spacing: -.03em; }
.admin-auth-intro { margin-top: 12px; color: var(--admin-muted); }
.admin-auth-form { display: flex; flex-direction: column; margin-top: 34px; }
.admin-auth-form label, .admin-editor-form label, .admin-create-tag label, .admin-password-form label { margin: 0 0 7px; color: var(--admin-ink); font-size: 12px; font-weight: 800; }
.admin-auth-form input, .admin-editor-form input, .admin-editor-form select, .admin-create-tag input, .admin-password-form input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #7e899c; border-radius: 7px; background: white; color: var(--admin-ink); }
.admin-auth-form input + label, .admin-password-form input + label { margin-top: 20px; }
.admin-auth-form .admin-primary-button { width: 100%; margin-top: 24px; justify-content: space-between; }
.admin-auth-help { margin-top: 24px; color: var(--admin-muted); font-size: 11px; line-height: 1.7; }
.admin-form-message { margin: 14px 0 0; padding: 11px 12px; border-radius: 7px; font-size: 12px; line-height: 1.5; }
.admin-form-message.is-error { background: var(--admin-red-soft); color: var(--admin-red); }
.admin-form-message.is-success { background: var(--admin-green-soft); color: var(--admin-green); }
.admin-form-message.is-loading { background: #eef2f7; color: var(--admin-muted); }
.admin-field-hint { margin: 6px 0 0; color: var(--admin-muted); font-size: 11px; line-height: 1.5; }

.admin-activation { display: grid; place-items: center; padding: 42px 20px; background: var(--admin-canvas); }
.admin-activation-card { width: min(560px, 100%); padding: 40px; background: white; border-radius: 14px; box-shadow: 0 20px 54px rgb(0 26 80 / .14); }
.admin-activation-card > img { width: 255px; padding: 14px; background: var(--admin-navy); border-radius: 8px; }
.activation-lock { display: grid; width: 50px; height: 50px; place-items: center; margin-top: 34px; border-radius: 50%; background: var(--admin-gold); color: var(--admin-navy); }
.admin-activation-card h1 { margin-top: 17px; color: var(--admin-navy); font-size: 34px; letter-spacing: -.03em; }
.admin-activation-card > p { margin-top: 10px; color: var(--admin-muted); line-height: 1.65; }
.admin-activation-card .admin-auth-form { margin-top: 26px; }

.admin-boot { display: grid; place-items: center; align-content: center; gap: 22px; background: var(--admin-navy); color: white; }
.admin-boot img { width: min(330px, 70vw); }
.admin-boot p { color: #d9e4f7; }
.admin-boot-loader, .admin-loading-line > span, .loading-mark { width: 28px; height: 28px; border: 3px solid rgb(226 176 98 / .28); border-top-color: var(--admin-gold); border-radius: 50%; animation: admin-spin .8s linear infinite; }
@keyframes admin-spin { to { transform: rotate(360deg); } }

/* Mesa operacional */
.admin-app { display: grid; grid-template-columns: 228px minmax(0, 1fr); background: var(--admin-canvas); }
.admin-rail { position: sticky; top: 0; display: flex; height: 100dvh; flex-direction: column; padding: 24px 14px 18px; background: var(--admin-navy); color: white; }
.admin-rail-brand { display: block; padding: 8px 10px 25px; color: white; text-decoration: none; }
.admin-rail-brand img { width: 100%; height: auto; }
.admin-rail-brand span { display: block; margin-top: 13px; color: #cbd8ee; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-align: center; text-transform: uppercase; }
.admin-rail nav { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.admin-rail nav button { display: flex; width: 100%; min-height: 48px; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: #e7eef9; font-size: 13px; text-align: left; }
.admin-rail nav button:hover { background: rgb(255 255 255 / .08); }
.admin-rail nav button[aria-current="page"] { background: #123b79; color: white; font-weight: 800; }
.admin-rail nav button[aria-current="page"] svg { color: var(--admin-gold); }
.admin-rail-account { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 16px 8px 3px; border-top: 1px solid #355184; }
.admin-avatar { display: grid; width: 38px; height: 38px; flex: none; place-items: center; border-radius: 50%; background: #dfe7f4; color: var(--admin-navy); font-size: 12px; font-weight: 850; }
.admin-rail-account div { min-width: 0; }
.admin-rail-account strong, .admin-rail-account small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-rail-account strong { font-size: 12px; }
.admin-rail-account small { color: #b9c8e1; font-size: 10px; }
.admin-main { min-width: 0; }
.admin-command-bar { display: flex; min-height: 90px; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 28px; border-bottom: 1px solid var(--admin-line); background: white; }
.admin-command-bar h1, .admin-page-heading h1 { color: var(--admin-navy); font-size: 27px; font-weight: 800; letter-spacing: -.025em; }
.admin-command-bar p, .admin-page-heading p { margin-top: 3px; color: var(--admin-muted); font-size: 13px; }
.admin-command-actions { display: flex; align-items: center; gap: 10px; }
.admin-sync-state { display: inline-flex; align-items: center; gap: 7px; margin-right: 6px; color: var(--admin-muted); font-size: 11px; }
.admin-sync-state > span { width: 7px; height: 7px; border-radius: 50%; background: var(--admin-green); }
.admin-offers-workspace { display: grid; grid-template-columns: minmax(0, 1fr); min-height: calc(100dvh - 90px); }
.admin-offers-workspace.has-editor { grid-template-columns: minmax(630px, 1fr) minmax(370px, 430px); }
.admin-offers-workspace:not(.has-editor) .admin-editor { display: none; }
.admin-inventory { min-width: 0; padding: 22px 24px 48px; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--admin-line); background: white; }
.admin-metrics > div { display: flex; min-height: 74px; align-items: center; gap: 11px; padding: 14px 18px; border-right: 1px solid var(--admin-line); }
.admin-metrics > div:last-child { border-right: 0; }
.admin-metrics strong { color: var(--admin-navy); font-size: 26px; font-weight: 850; font-variant-numeric: tabular-nums; }
.admin-metrics span { color: var(--admin-muted); font-size: 11px; line-height: 1.35; }
.admin-filter-bar { display: grid; grid-template-columns: minmax(210px, 1fr) auto auto; align-items: center; gap: 12px; margin-top: 18px; }
.admin-search { position: relative; display: flex; align-items: center; }
.admin-search svg { position: absolute; left: 12px; width: 18px; color: var(--admin-muted); }
.admin-search input { width: 100%; min-height: 44px; padding: 9px 12px 9px 39px; border: 1px solid #aeb9ca; border-radius: 7px; background: white; color: var(--admin-ink); font-size: 12px; }
.admin-month-tabs { display: flex; align-items: stretch; overflow-x: auto; border: 1px solid #aeb9ca; border-radius: 7px; background: white; }
.admin-month-tabs button { min-height: 42px; padding: 7px 10px; border: 0; border-right: 1px solid var(--admin-line); background: transparent; color: var(--admin-muted); font-size: 10px; font-weight: 800; text-transform: capitalize; }
.admin-month-tabs button:last-child { border-right: 0; }
.admin-month-tabs button[aria-pressed="true"] { background: var(--admin-navy); color: white; }
.admin-month-tabs small { display: block; font-size: 8px; font-weight: 600; }
.admin-app .admin-refresh-button { display: inline-flex; min-height: 44px; align-items: center; gap: 7px; padding: 8px 10px; border: 0; background: transparent; color: var(--admin-navy); font-size: 11px; font-weight: 800; }
.admin-refresh-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.admin-refresh-button:disabled { cursor: wait; opacity: .5; }
.admin-refresh-button svg { width: 17px; }

.admin-table-scroll { margin-top: 16px; border: 1px solid var(--admin-line); border-radius: 10px; overflow: hidden; background: white; }
.admin-offers-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 11px; }
.admin-offers-table thead { background: #eef2f7; color: #4d5a72; text-transform: uppercase; letter-spacing: .04em; }
.admin-offers-table th, .admin-offers-table td { padding: 11px 10px; border-bottom: 1px solid var(--admin-line); text-align: left; vertical-align: middle; }
.admin-offers-table thead th:nth-child(1) { width: 17%; }
.admin-offers-table thead th:nth-child(2) { width: 20%; }
.admin-offers-table thead th:nth-child(3) { width: 12%; }
.admin-offers-table thead th:nth-child(4) { width: 13%; }
.admin-offers-table thead th:nth-child(5) { width: 15%; }
.admin-offers-table thead th:nth-child(6) { width: 15%; }
.admin-offers-table thead th:last-child { width: 82px; }
.admin-offers-table tbody tr:not(.admin-month-row):hover { background: #f7f9fc; }
.admin-offers-table tbody tr.is-selected { background: #edf4ff; box-shadow: inset 2px 0 var(--admin-navy); }
.admin-offers-table tbody:last-child tr:last-child > * { border-bottom: 0; }
.admin-offers-table th strong, .admin-offers-table td strong { display: block; color: var(--admin-ink); font-weight: 800; }
.admin-offers-table th small, .admin-offers-table td small { display: block; margin-top: 2px; overflow: hidden; color: var(--admin-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.admin-month-row th { padding: 9px 12px; background: var(--admin-navy); color: white; font-size: 10px; text-transform: capitalize; }
.admin-month-row th span { font-weight: 850; }
.admin-month-row th small { float: right; margin: 0; color: #cbd8ee; font-size: 9px; font-weight: 600; }
.admin-money-cell strong { font-variant-numeric: tabular-nums; }
.admin-tag-chip { display: inline-block; max-width: 100%; padding: 4px 7px; overflow: hidden; border-radius: 5px; background: var(--admin-amber-soft); color: #704c0d; font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.admin-cell-empty { color: #66738a; }
.admin-status-pill { display: inline-flex; align-items: center; gap: 6px; color: var(--admin-muted); font-size: 9px; font-weight: 750; line-height: 1.3; }
.admin-status-pill > span { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #7e899c; }
.admin-status-pill.is-available { color: var(--admin-green); }
.admin-status-pill.is-available > span { background: var(--admin-green); }
.admin-status-pill.is-sold { color: var(--admin-red); }
.admin-status-pill.is-sold > span { background: var(--admin-red); }
.admin-status-pill.is-visible { color: var(--admin-green); }
.admin-status-pill.is-visible > span { background: var(--admin-green); }
.admin-status-pill.is-hidden { color: var(--admin-amber); }
.admin-status-pill.is-hidden > span { background: #d08d16; }
.admin-status-pill.is-archived > span { background: #68758a; }
.admin-row-action button { display: inline-flex; min-height: 40px; align-items: center; gap: 5px; padding: 6px; border: 0; background: transparent; color: var(--admin-navy); font-size: 10px; font-weight: 800; }
.admin-row-action button:hover { text-decoration: underline; text-underline-offset: 3px; }
.admin-row-action svg { width: 15px; }
.admin-empty-state { display: grid; min-height: 300px; place-items: center; align-content: center; padding: 35px; text-align: center; }
.admin-empty-state > svg { width: 35px; height: 35px; color: #73819a; }
.admin-empty-state h3 { margin-top: 12px; color: var(--admin-navy); font-size: 20px; }
.admin-empty-state p { margin-top: 6px; color: var(--admin-muted); font-size: 12px; }

/* Editor: uma única coluna, prévia e ação final sempre no mesmo eixo. */
.admin-editor { position: sticky; top: 0; align-self: start; height: 100dvh; overflow: auto; border-left: 1px solid var(--admin-line); background: white; box-shadow: -12px 0 34px rgb(0 26 80 / .07); }
.admin-editor.is-empty { display: grid; place-items: center; align-content: center; padding: 35px; color: var(--admin-muted); text-align: center; }
.admin-editor.is-empty > svg { width: 36px; height: 36px; }
.admin-editor.is-empty h2 { margin-top: 14px; color: var(--admin-navy); }
.admin-editor.is-empty p { max-width: 280px; margin-top: 8px; font-size: 12px; }
.admin-editor-heading { position: sticky; z-index: 3; top: 0; display: flex; min-height: 83px; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; border-bottom: 1px solid var(--admin-line); background: white; }
.admin-editor-heading p { color: var(--admin-muted); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.admin-editor-heading h2 { color: var(--admin-navy); font-size: 22px; letter-spacing: -.02em; }
.admin-icon-button { display: grid; width: 44px; height: 44px; flex: none; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--admin-navy); }
.admin-icon-button:hover { background: #eef2f7; }
.admin-editor-form { padding: 0 20px 20px; }
.admin-editor-form fieldset { margin: 0; padding: 21px 0; border: 0; border-bottom: 1px solid var(--admin-line); }
.admin-editor-form legend { margin-bottom: 15px; color: var(--admin-navy); font-size: 13px; font-weight: 850; }
.admin-editor-form input, .admin-editor-form select { min-height: 43px; font-size: 12px; }
.admin-editor-form input[aria-invalid="true"], .admin-editor-form select[aria-invalid="true"] { border-color: var(--admin-red); background: #fffafa; }
.admin-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.admin-field-grid > div { min-width: 0; }
.admin-field-grid > div > label small { color: var(--admin-muted); font-weight: 600; }
.admin-derived-value { margin-top: 8px; color: var(--admin-muted); font-size: 10px; }
.admin-field-error { display: block; margin-top: 5px; color: var(--admin-red); font-size: 10px; font-weight: 700; }
.admin-money-input { display: flex; min-height: 43px; border: 1px solid #7e899c; border-radius: 7px; overflow: hidden; background: white; }
.admin-money-input span { display: grid; place-items: center; padding: 0 10px; border-right: 1px solid var(--admin-line); color: var(--admin-muted); font-size: 11px; }
.admin-money-input input { min-width: 0; border: 0; border-radius: 0; }
.admin-control-label { display: block; margin: 13px 0 7px; color: var(--admin-ink); font-size: 11px; font-weight: 800; }
.admin-segmented { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #7e899c; border-radius: 7px; overflow: hidden; }
.admin-segmented label { display: grid; min-height: 43px; place-items: center; margin: 0; padding: 8px; color: var(--admin-muted); cursor: pointer; text-align: center; }
.admin-segmented label + label { border-left: 1px solid var(--admin-line); }
.admin-segmented label.is-active { background: var(--admin-navy); color: white; }
.admin-segmented label:focus-within { position: relative; z-index: 1; outline: 3px solid #a76a13; outline-offset: -3px; }
.admin-segmented input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.admin-inline-notice { display: flex; align-items: flex-start; gap: 7px; margin-top: 10px; padding: 9px 10px; border-radius: 7px; background: var(--admin-green-soft); color: #176a4d; font-size: 10px; line-height: 1.5; }
.admin-inline-notice svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.admin-preview-section { padding: 22px 0; }
.admin-preview-section > div:first-child { margin-bottom: 12px; }
.admin-preview-section h3 { color: var(--admin-navy); font-size: 13px; }
.admin-preview-section > div:first-child p { margin-top: 3px; color: var(--admin-muted); font-size: 10px; }
.admin-public-preview { overflow: hidden; border: 1px solid var(--admin-line); border-radius: 12px; background: white; }
.admin-preview-image { position: relative; min-height: 125px; overflow: hidden; background: #e9edf3; }
.admin-preview-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.admin-preview-image > span:first-child { display: grid; min-height: 125px; place-items: center; color: var(--admin-muted); font-size: 11px; }
.admin-preview-badge { position: absolute; top: 10px; left: 10px; padding: 5px 8px; border-radius: 4px; background: var(--admin-amber-soft); color: var(--admin-navy); font-size: 9px; font-weight: 850; }
.admin-public-preview.is-sold img { filter: saturate(.3); }
.admin-public-preview.is-sold .admin-preview-badge { background: var(--admin-navy); color: white; }
.admin-preview-copy { padding: 14px; }
.admin-preview-copy h4 { color: var(--admin-navy); font-size: 16px; line-height: 1.3; }
.admin-preview-copy p { margin-top: 5px; color: var(--admin-muted); font-size: 10px; }
.admin-preview-copy > strong { display: block; margin-top: 11px; color: var(--admin-navy); font-size: 20px; }
.admin-preview-copy > strong small { color: var(--admin-muted); font-size: 9px; font-weight: 600; }
.admin-editor-message { margin: 0 0 12px; padding: 10px 11px; border-radius: 7px; font-size: 10px; line-height: 1.5; }
.admin-editor-message.is-error { background: var(--admin-red-soft); color: var(--admin-red); }
.admin-editor-message.is-success { background: var(--admin-green-soft); color: var(--admin-green); }
.admin-editor-message.is-loading { background: #eef2f7; color: var(--admin-muted); }
.admin-editor-actions { position: sticky; z-index: 2; bottom: -20px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px 12px; margin: 0 -20px -20px; padding: 14px 20px 20px; border-top: 1px solid var(--admin-line); background: white; }
.admin-editor-actions .admin-primary-button { grid-column: 1 / -1; width: 100%; justify-content: space-between; }
.admin-archive-button { justify-self: start; min-height: 40px; padding: 7px 0; border: 0; background: transparent; color: var(--admin-red); font-size: 10px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.admin-dirty-state { display: inline-flex; align-items: center; justify-self: end; gap: 6px; color: var(--admin-green); font-size: 9px; font-weight: 750; }
.admin-dirty-state > span { width: 6px; height: 6px; border-radius: 50%; background: var(--admin-green); }
.admin-dirty-state.is-dirty { color: var(--admin-amber); }
.admin-dirty-state.is-dirty > span { background: #d08d16; }

/* Tags, auditoria e conta */
.admin-standard-page { padding: 30px; }
.admin-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--admin-line); }
.admin-tags-layout, .admin-account-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 430px); gap: 24px; margin-top: 24px; }
.admin-tag-list, .admin-create-tag, .admin-account-summary, .admin-password-form { padding: 24px; border-radius: 12px; background: white; }
.admin-tag-list h2, .admin-create-tag h2, .admin-password-form h2 { margin-bottom: 18px; color: var(--admin-navy); font-size: 18px; }
.admin-tag-list ul { margin: 0; padding: 0; list-style: none; }
.admin-tag-list li { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--admin-line); }
.admin-tag-list li:last-child { border-bottom: 0; }
.admin-tag-list code { color: var(--admin-muted); font-size: 11px; }
.admin-create-tag input { margin-bottom: 2px; }
.admin-create-tag .admin-primary-button, .admin-password-form .admin-primary-button { width: 100%; margin-top: 22px; justify-content: space-between; }
.admin-audit-list { margin: 24px 0 0; padding: 0; border-radius: 12px; background: white; list-style: none; }
.admin-audit-list li { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--admin-line); }
.admin-audit-list li:last-child { border-bottom: 0; }
.admin-audit-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #e9eef6; color: var(--admin-navy); }
.admin-audit-icon svg { width: 17px; }
.admin-audit-list h2 { color: var(--admin-ink); font-size: 13px; }
.admin-audit-list p { margin-top: 3px; color: var(--admin-muted); font-size: 11px; }
.admin-audit-list details { margin-top: 8px; font-size: 10px; }
.admin-audit-list summary { color: var(--admin-navy); cursor: pointer; font-weight: 800; }
.admin-audit-list pre { max-height: 240px; overflow: auto; padding: 10px; background: #eef2f7; font-size: 9px; white-space: pre-wrap; }
.admin-audit-changes { margin: 9px 0 0; border: 1px solid var(--admin-line); border-radius: 7px; overflow: hidden; }
.admin-audit-changes > div { padding: 9px 10px; border-bottom: 1px solid var(--admin-line); }
.admin-audit-changes > div:last-child { border-bottom: 0; }
.admin-audit-changes dt { color: var(--admin-ink); font-size: 10px; font-weight: 800; }
.admin-audit-changes dd { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 5px 0 0; color: var(--admin-ink); font-size: 10px; }
.admin-audit-changes dd span { min-width: 0; overflow-wrap: anywhere; }
.admin-audit-changes dd small { display: block; margin-bottom: 2px; color: var(--admin-muted); font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.admin-audit-meta { text-align: right; }
.admin-audit-meta strong, .admin-audit-meta time { display: block; }
.admin-audit-meta strong { font-size: 10px; }
.admin-audit-meta time { margin-top: 3px; color: var(--admin-muted); font-size: 9px; }
.admin-account-summary { display: flex; height: max-content; align-items: center; gap: 14px; }
.admin-account-summary h2 { color: var(--admin-navy); font-size: 17px; }
.admin-account-summary p { color: var(--admin-muted); font-size: 11px; }
.admin-account-summary .admin-status-pill { margin-left: auto; }
.admin-password-form { display: flex; flex-direction: column; }
.admin-password-form input { margin-bottom: 14px; }
.admin-loading-line { display: flex; min-height: 220px; align-items: center; justify-content: center; gap: 12px; color: var(--admin-muted); font-size: 13px; }
.admin-loading-line > span { width: 22px; height: 22px; }
.admin-error-panel { display: flex; align-items: center; gap: 10px; margin: 24px; padding: 14px 16px; border-radius: 8px; background: var(--admin-red-soft); color: var(--admin-red); font-size: 12px; }
.admin-error-panel strong, .admin-error-panel span { display: block; }
.admin-error-panel button { margin-left: auto; padding: 8px; border: 0; background: transparent; color: var(--admin-red); font-weight: 800; text-decoration: underline; }

@media (max-width: 1270px) {
  .admin-app { grid-template-columns: 80px minmax(0, 1fr); }
  .admin-rail { padding-inline: 9px; }
  .admin-rail-brand { padding-inline: 5px; }
  .admin-rail-brand span, .admin-rail nav button:not([aria-current])::after, .admin-rail nav button { font-size: 0; }
  .admin-rail nav button { justify-content: center; padding: 10px; }
  .admin-rail nav button svg { width: 22px; height: 22px; }
  .admin-rail-account { justify-content: center; }
  .admin-rail-account > div { display: none; }
  .admin-offers-workspace.has-editor { grid-template-columns: minmax(560px, 1fr) 385px; }
  .admin-inventory { padding-inline: 16px; }
  .admin-filter-bar { grid-template-columns: 1fr auto; }
  .admin-month-tabs { grid-column: 1 / -1; grid-row: 2; }
  .admin-refresh-button { grid-column: 2; grid-row: 1; }
}

@media (min-width: 1101px) and (max-width: 1450px) {
  .admin-offers-workspace.has-editor .admin-offers-table thead th:nth-child(4),
  .admin-offers-workspace.has-editor .admin-offers-table tbody td:nth-child(4),
  .admin-offers-workspace.has-editor .admin-offers-table thead th:nth-child(6),
  .admin-offers-workspace.has-editor .admin-offers-table tbody td:nth-child(6) { display: none; }
  .admin-offers-workspace.has-editor .admin-offers-table thead th:nth-child(1) { width: 20%; }
  .admin-offers-workspace.has-editor .admin-offers-table thead th:nth-child(2) { width: 25%; }
  .admin-offers-workspace.has-editor .admin-offers-table thead th:nth-child(3) { width: 17%; }
  .admin-offers-workspace.has-editor .admin-offers-table thead th:nth-child(5) { width: 22%; }
}

@media (max-width: 1100px) {
  .admin-command-bar { align-items: flex-start; }
  .admin-command-actions { flex-wrap: wrap; justify-content: flex-end; }
  .admin-sync-state { width: 100%; justify-content: flex-end; }
  .admin-offers-workspace.has-editor { display: block; }
  .admin-editor { position: fixed; z-index: 20; inset: 0 0 0 auto; width: min(450px, calc(100% - 70px)); height: 100dvh; }
  .admin-editor::before { content: ""; position: fixed; z-index: -1; inset: 0; right: min(450px, calc(100% - 70px)); background: rgb(0 16 50 / .52); }
  .admin-offers-table thead th:nth-child(4), .admin-offers-table tbody td:nth-child(4) { display: none; }
  .admin-tags-layout, .admin-account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .admin-app { display: block; padding-bottom: 72px; }
  .admin-rail { position: fixed; z-index: 30; top: auto; bottom: 0; width: 100%; height: 70px; flex-direction: row; align-items: center; padding: 8px 10px; box-shadow: 0 -10px 30px rgb(0 26 80 / .16); }
  .admin-rail-brand, .admin-rail-account { display: none; }
  .admin-rail nav { display: grid; width: 100%; grid-template-columns: repeat(4, 1fr); gap: 3px; margin: 0; }
  .admin-rail nav button { display: flex; min-height: 54px; flex-direction: column; gap: 2px; justify-content: center; font-size: 9px !important; padding: 4px; }
  .admin-rail nav button svg { width: 19px; height: 19px; }
  .admin-command-bar { display: block; padding: 18px; }
  .admin-command-actions { justify-content: flex-start; margin-top: 16px; }
  .admin-sync-state { width: auto; margin-right: auto; }
  .admin-command-bar h1 { font-size: 24px; }
  .admin-inventory { padding: 16px 14px 34px; }
  .admin-metrics { grid-template-columns: 1fr 1fr; }
  .admin-metrics > div:nth-child(2) { border-right: 0; }
  .admin-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--admin-line); }
  .admin-filter-bar { display: flex; align-items: stretch; flex-wrap: wrap; }
  .admin-search { width: calc(100% - 112px); }
  .admin-month-tabs { order: 3; width: 100%; }
  .admin-refresh-button { width: 100px; }
  .admin-table-scroll { border: 0; border-radius: 0; overflow: visible; background: transparent; }
  .admin-offers-table, .admin-offers-table tbody, .admin-offers-table tr, .admin-offers-table th, .admin-offers-table td { display: block; width: 100% !important; }
  .admin-offers-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .admin-offers-table tbody { margin-bottom: 14px; }
  .admin-offers-table .admin-month-row { margin-bottom: 8px; }
  .admin-offers-table .admin-month-row th { border-radius: 6px; }
  .admin-offers-table tbody tr:not(.admin-month-row) { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-bottom: 9px; padding: 14px; border: 1px solid var(--admin-line); border-radius: 10px; background: white; }
  .admin-offers-table tbody tr.is-selected { border-color: #7596c6; box-shadow: inset 2px 0 var(--admin-navy); }
  .admin-offers-table tbody tr:not(.admin-month-row) > * { padding: 0; border: 0; }
  .admin-offers-table tbody tr:not(.admin-month-row) > *::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--admin-muted); font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
  .admin-offers-table tbody tr:not(.admin-month-row) > :nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
  .admin-offers-table tbody tr:not(.admin-month-row) > :nth-child(1) { grid-column: 1; grid-row: 2; }
  .admin-offers-table tbody tr:not(.admin-month-row) > :nth-child(3) { grid-column: 2; grid-row: 2; }
  .admin-offers-table tbody tr:not(.admin-month-row) > :nth-child(5), .admin-offers-table tbody tr:not(.admin-month-row) > :nth-child(6) { display: block; }
  .admin-offers-table .admin-row-action { grid-column: 1 / -1; }
  .admin-row-action button { width: 100%; justify-content: center; border-top: 1px solid var(--admin-line); padding-top: 11px; }
  .admin-editor { width: 100%; inset: 0; }
  .admin-editor { z-index: 40; }
  .admin-editor::before { display: none; }
  .admin-standard-page { padding: 22px 16px; }
  .admin-page-heading { display: block; }
  .admin-page-heading .admin-secondary-button { margin-top: 16px; }
  .admin-audit-list li { grid-template-columns: 38px 1fr; }
  .admin-audit-meta { grid-column: 2; text-align: left; }
  .admin-editor-actions { bottom: 0; margin-bottom: 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}

@media (max-width: 560px) {
  .admin-search { width: calc(100% - 58px); }
  .admin-app .admin-refresh-button { width: 46px; justify-content: center; font-size: 0; }
  .admin-refresh-button svg { width: 19px; height: 19px; }
}

@media (max-width: 760px) {
  .admin-auth-shell { display: block; background: var(--admin-navy); }
  .admin-auth-brand { min-height: auto; padding: 30px 24px 36px; }
  .admin-auth-brand > img { width: 250px; }
  .admin-auth-brand h1 { margin-top: 56px; font-size: 40px; }
  .admin-auth-brand h1 + p { font-size: 14px; }
  .admin-auth-security { margin-top: 38px; }
  .admin-auth-panel { min-height: auto; padding: 34px 22px 48px; border-radius: 20px 20px 0 0; background: white; }
  .admin-activation-card { padding: 28px 22px; }
  .admin-activation-card h1 { font-size: 29px; }
}

@media (max-width: 480px) {
  .admin-command-actions .admin-site-link { display: none; }
  .admin-sync-state { width: 100%; justify-content: flex-start; }
  .admin-command-actions .admin-primary-button { flex: 1; }
  .admin-metrics > div { padding: 12px; }
  .admin-metrics strong { font-size: 23px; }
  .admin-field-grid { grid-template-columns: 1fr; }
  .admin-editor-form { padding-inline: 16px; }
  .admin-editor-heading { padding-inline: 16px; }
  .admin-editor-actions { margin-inline: -16px; padding-inline: 16px; }
  .admin-account-summary { align-items: flex-start; flex-wrap: wrap; }
  .admin-account-summary .admin-status-pill { width: 100%; margin-left: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .admin-boot-loader, .admin-loading-line > span, .loading-mark { animation: none; border-color: var(--admin-gold); }
}
