* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--fdf-color-canvas); }
body {
  min-height: 100vh; margin: 0; display: grid; grid-template-rows: auto 1fr auto;
  color: var(--fdf-color-text); background: var(--fdf-color-canvas);
  font: 15px/1.5 Inter, "Segoe UI", Arial, Helvetica, sans-serif;
}
.shell { width: min(calc(100% - 32px), var(--fdf-content-max)); margin-inline: auto; }
.skip-link {
  position: fixed; z-index: 20; top: var(--fdf-space-2); left: var(--fdf-space-2);
  padding: var(--fdf-space-3) var(--fdf-space-4); color: #fff;
  background: var(--fdf-color-focus); transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.topbar { border-bottom: 1px solid var(--fdf-color-border); background: var(--fdf-color-surface); }
.topbar-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: var(--fdf-space-6); }
.brand { display: inline-flex; align-items: center; gap: var(--fdf-space-4); color: var(--fdf-color-text); text-decoration: none; font-weight: 700; }
.brand img { display: block; width: 122px; height: 69px; object-fit: contain; }
.brand span { padding-left: var(--fdf-space-4); border-left: 1px solid var(--fdf-color-border); }
.environment {
  display: inline-flex; align-items: center; gap: var(--fdf-space-2); min-height: 32px;
  padding: 0 var(--fdf-space-3); border: 1px solid var(--fdf-color-border);
  border-radius: 999px; color: var(--fdf-color-text-muted); background: var(--fdf-color-surface-subtle);
  font-size: 12px; font-weight: 700; text-transform: uppercase;
}
.environment > span { width: 8px; height: 8px; border-radius: 50%; background: var(--fdf-color-warning); }
.main { align-self: center; padding-block: var(--fdf-space-12); }
.auth-shell {
  display: grid; grid-template-columns: minmax(300px, .85fr) minmax(420px, 1.15fr);
  overflow: hidden; border: 1px solid var(--fdf-color-border); border-radius: var(--fdf-radius-lg);
  background: var(--fdf-color-surface); box-shadow: var(--fdf-shadow-panel);
}
.identity-panel { padding: var(--fdf-space-12); color: #fff; background: #243328; }
.identity-kicker { margin: 0 0 var(--fdf-space-4); color: #f0c8ad; font-size: 13px; font-weight: 700; }
.identity-panel h2 { max-width: 18ch; margin: 0; font: 600 28px/1.25 Georgia, "Times New Roman", serif; }
.identity-panel > p:not(.identity-kicker):not(.identity-note) { max-width: 42ch; margin: var(--fdf-space-4) 0 0; color: #d9e0da; }
.trust-list { margin: var(--fdf-space-8) 0; padding: 0; display: grid; gap: var(--fdf-space-3); list-style: none; }
.trust-list li { display: flex; gap: var(--fdf-space-3); align-items: flex-start; }
.trust-list span { color: #f0c8ad; font-weight: 700; }
.identity-note { margin: var(--fdf-space-8) 0 0; padding-top: var(--fdf-space-6); border-top: 1px solid rgb(255 255 255 / 20%); color: #bdc8bf; font-size: 13px; }
.auth-workspace { min-height: 540px; display: flex; align-items: center; padding: var(--fdf-space-12); }
.tool-panel { width: min(100%, 480px); }
.context { margin: 0 0 var(--fdf-space-2); color: var(--fdf-color-brand); font-size: 13px; font-weight: 700; }
h1 { margin: 0; font-size: 32px; line-height: 1.2; letter-spacing: 0; }
h2 { margin-top: var(--fdf-space-8); font-size: 20px; }
.intro { margin: var(--fdf-space-3) 0 var(--fdf-space-8); color: var(--fdf-color-text-muted); }
form { display: grid; gap: var(--fdf-space-4); }
.field { display: grid; gap: var(--fdf-space-2); }
label { font-size: 13px; font-weight: 700; }
input {
  width: 100%; min-height: var(--fdf-control-min); padding: 9px var(--fdf-space-3);
  border: 1px solid var(--fdf-color-border-strong); border-radius: var(--fdf-radius-sm);
  color: var(--fdf-color-text); background: var(--fdf-color-surface); font: inherit;
}
input:hover { border-color: var(--fdf-color-text-muted); }
select { min-height: var(--fdf-control-min); padding: 8px 36px 8px var(--fdf-space-3); border: 1px solid var(--fdf-color-border-strong); border-radius: var(--fdf-radius-sm); color: var(--fdf-color-text); background: var(--fdf-color-surface); font: inherit; }
textarea { width: 100%; padding: var(--fdf-space-3); border: 1px solid var(--fdf-color-border-strong); border-radius: var(--fdf-radius-sm); color: var(--fdf-color-text); background: var(--fdf-color-surface); font: inherit; resize: vertical; }
input[aria-invalid="true"] { border-color: var(--fdf-color-error); background: var(--fdf-color-error-bg); }
.field-error { min-height: 18px; margin: 0; color: var(--fdf-color-error); font-size: 13px; }
.button {
  min-height: var(--fdf-control-min); width: fit-content; padding: 0 var(--fdf-space-6);
  border: 1px solid transparent; border-radius: var(--fdf-radius-sm);
  font: 700 14px/1 "Segoe UI", Arial, sans-serif; cursor: pointer;
}
.button.primary { color: #fff; background: var(--fdf-color-brand); }
.button.primary:hover { background: var(--fdf-color-brand-hover); }
.button.secondary { color: var(--fdf-color-text); border-color: var(--fdf-color-border-strong); background: var(--fdf-color-surface); }
.button.danger { color: #fff; border-color: #9f1d24; background: #b4232a; }
.button.danger:hover { background: #8f1820; }
.button:disabled { cursor: wait; opacity: .65; }
.button-wide { width: 100%; }
.helper { margin: var(--fdf-space-2) 0 0; color: var(--fdf-color-text-muted); font-size: 12px; }
.separator { display: flex; align-items: center; gap: var(--fdf-space-3); margin: var(--fdf-space-5) 0; color: var(--fdf-color-text-muted); font-size: 12px; }
.separator::before, .separator::after { content: ""; height: 1px; flex: 1; background: var(--fdf-color-border); }
.alert { margin-block: var(--fdf-space-2); padding: var(--fdf-space-3) var(--fdf-space-4); border-left: 4px solid; background: var(--fdf-color-surface); }
.alert.error { color: var(--fdf-color-error); border-color: var(--fdf-color-error); background: var(--fdf-color-error-bg); }
.alert.success { color: var(--fdf-color-success); border-color: var(--fdf-color-success); background: #edf7f0; }
.qr { display: block; margin-block: var(--fdf-space-4); border: 1px solid var(--fdf-color-border); background: #fff; }
details { margin-block: var(--fdf-space-4) var(--fdf-space-6); }
summary { cursor: pointer; font-weight: 700; }
code { display: block; overflow-wrap: anywhere; padding: var(--fdf-space-3); border: 1px solid var(--fdf-color-border); background: var(--fdf-color-surface-subtle); }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--fdf-space-6); }
.module-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--fdf-space-3); }
.module-service-section { margin-top: var(--fdf-space-3); }
.module-service-section h3 { margin: 0 0 var(--fdf-space-2); font-size: 1rem; }
.module-service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--fdf-space-2); }
.module-service-card { display: grid; gap: var(--fdf-space-2); padding: var(--fdf-space-3); border: 1px solid var(--fdf-color-border); border-radius: var(--fdf-radius-md); background: var(--fdf-color-surface); }
.module-service-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--fdf-space-2); }
.module-service-head strong { display: block; overflow-wrap: anywhere; }
.module-service-actions { display: flex; flex-wrap: wrap; gap: var(--fdf-space-2); }
.module { padding: var(--fdf-space-4); border: 1px solid var(--fdf-color-border); border-radius: var(--fdf-radius-lg); background: var(--fdf-color-surface); }
.module h3 { margin: 0 0 var(--fdf-space-2); font-size: 16px; }
.module p { margin: 0; color: var(--fdf-color-text-muted); }
.module-status { display: inline-flex; margin-top: var(--fdf-space-3); color: var(--fdf-color-success); font-size: 13px; font-weight: 700; }
.security-panel { margin-block: var(--fdf-space-8); padding: var(--fdf-space-6); border: 1px solid var(--fdf-color-border); border-radius: var(--fdf-radius-lg); background: var(--fdf-color-surface); }
.security-panel h2 { margin: 0; }
.security-panel .intro { margin-bottom: var(--fdf-space-4); }
.security-actions { display: flex; align-items: end; gap: var(--fdf-space-3); }
.security-actions input { max-width: 320px; }
.passkey-list { margin: var(--fdf-space-4) 0 0; padding: 0; display: grid; gap: var(--fdf-space-2); list-style: none; }
.passkey-list li { padding: var(--fdf-space-3); border: 1px solid var(--fdf-color-border); border-radius: var(--fdf-radius-sm); background: var(--fdf-color-surface-subtle); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.backoffice-active .main { width: min(100%, 1600px); align-self: stretch; padding: 0; }
.backoffice-active .topbar { display: none; }
.backoffice-active .footer { display: none; }
.backoffice-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); background: var(--fdf-color-canvas); }
.app-sidebar { position: relative; z-index: 5; overflow-y: auto; border-right: 1px solid #33463a; color: #fff; background: #1f3027; }
.sidebar-head { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: var(--fdf-space-3); padding: var(--fdf-space-2) var(--fdf-space-3); border-bottom: 1px solid rgb(255 255 255 / 14%); }
.sidebar-brand { min-width: 0; display: flex; align-items: center; }
.sidebar-brand img { width: 128px; height: 58px; object-fit: contain; }
.icon-button { width: 40px; min-height: 40px; padding: 0; border: 1px solid var(--fdf-color-border-strong); border-radius: var(--fdf-radius-sm); color: inherit; background: transparent; font: 700 18px/1 inherit; cursor: pointer; }
.sidebar-head .icon-button { border-color: rgb(255 255 255 / 28%); }
.sidebar-nav { padding: var(--fdf-space-3); }
.nav-group { margin: var(--fdf-space-6) var(--fdf-space-3) var(--fdf-space-2); color: #b9c4bc; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.nav-item { width: 100%; min-height: 44px; display: flex; align-items: center; gap: var(--fdf-space-3); padding: var(--fdf-space-2) var(--fdf-space-3); border: 0; border-radius: var(--fdf-radius-md); color: #edf1ee; background: transparent; font: 600 14px/1.2 inherit; text-align: left; cursor: pointer; }
.nav-item:hover:not([aria-disabled="true"]) { background: rgb(255 255 255 / 8%); }
.nav-item.active { color: #fff; background: #963e19; box-shadow: inset 3px 0 0 #d9ad70; }
.nav-item[aria-disabled="true"] { color: #aab5ad; cursor: not-allowed; }
.nav-icon { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-sidebar.collapsed { width: 76px; }
.backoffice-shell:has(.app-sidebar.collapsed) { grid-template-columns: 76px minmax(0, 1fr); }
.app-sidebar.collapsed .nav-label, .app-sidebar.collapsed .nav-group { display: none; }
.app-sidebar.collapsed .sidebar-head { flex-direction: column; }
.app-sidebar.collapsed .sidebar-brand img { width: 50px; height: 40px; }
.app-sidebar.collapsed .nav-item { justify-content: center; }
.app-workspace { min-width: 0; }
.workspace-bar { min-height: 64px; display: flex; align-items: center; gap: var(--fdf-space-3); padding: var(--fdf-space-3) var(--fdf-space-6); border-bottom: 1px solid var(--fdf-color-border); background: var(--fdf-color-surface); }
.global-search { flex: 1; max-width: 560px; }
.global-search input { min-height: 40px; background: var(--fdf-color-surface-subtle); }
.network-status { min-height: 32px; display: inline-flex; align-items: center; padding: 0 var(--fdf-space-3); border: 1px solid #c98a70; border-radius: 999px; color: #7d2f17; background: #fff1eb; font-size: 12px; font-weight: 700; }
.network-status[hidden] { display: none; }
.environment.compact { margin-left: auto; }
.locale-select { min-height: 40px; padding: 0 var(--fdf-space-3); border: 1px solid var(--fdf-color-border-strong); border-radius: var(--fdf-radius-sm); background: var(--fdf-color-surface); }
.account-menu { position: relative; }
.account-menu summary { min-height: 40px; display: flex; align-items: center; gap: var(--fdf-space-2); padding: 0 var(--fdf-space-3); border: 1px solid var(--fdf-color-border-strong); border-radius: var(--fdf-radius-sm); list-style: none; cursor: pointer; }
.account-menu summary::-webkit-details-marker { display: none; }
.avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #243328; font-size: 11px; font-weight: 700; }
.account-name { font-weight: 700; }
.account-popover { position: absolute; z-index: 10; top: calc(100% + 8px); right: 0; width: 260px; padding: var(--fdf-space-3); border: 1px solid var(--fdf-color-border); border-radius: var(--fdf-radius-lg); background: var(--fdf-color-surface); box-shadow: var(--fdf-shadow-panel); }
.account-popover > strong, .account-popover > span { display: block; overflow-wrap: anywhere; padding-inline: var(--fdf-space-2); }
.account-popover > span { margin-bottom: var(--fdf-space-3); color: var(--fdf-color-text-muted); font-size: 12px; }
.account-popover button { width: 100%; min-height: 40px; padding: 0 var(--fdf-space-2); border: 0; border-radius: var(--fdf-radius-sm); background: transparent; text-align: left; cursor: pointer; }
.account-popover button:hover { background: var(--fdf-color-surface-subtle); }
.workspace-content { min-width: 0; overflow-x: hidden; padding: var(--fdf-space-8) clamp(24px, 3vw, 48px) var(--fdf-space-12); }
.workspace-alert { margin-inline: var(--fdf-space-8); }
.workspace-panel { min-width: 0; max-width: 1240px; margin-inline: auto; }
.breadcrumbs { display: flex; align-items: center; gap: var(--fdf-space-2); margin-bottom: var(--fdf-space-4); color: var(--fdf-color-text-muted); font-size: 13px; }
.breadcrumbs button { min-height: 24px; padding: 2px 4px; border: 0; color: var(--fdf-color-brand); background: transparent; cursor: pointer; }
.attention-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--fdf-space-4); margin-block: var(--fdf-space-8); }
.attention-panel { padding: var(--fdf-space-6); border: 1px solid var(--fdf-color-border); border-radius: var(--fdf-radius-lg); background: var(--fdf-color-surface); box-shadow: 0 1px 2px rgb(23 32 25 / 4%); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--fdf-space-4); }
.section-heading h2, .section-heading .context { margin-top: 0; }
.status-badge { display: inline-flex; min-height: 28px; align-items: center; padding: 0 var(--fdf-space-3); border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-badge.neutral { color: var(--fdf-color-text-muted); background: var(--fdf-color-surface-subtle); }
.status-badge.success { color: var(--fdf-color-success); background: #edf7f0; }
.status-badge.error { color: var(--fdf-color-error); background: var(--fdf-color-error-bg); }
.empty-state { margin-top: var(--fdf-space-5); padding: var(--fdf-space-8) var(--fdf-space-6); border: 1px dashed var(--fdf-color-border-strong); border-radius: var(--fdf-radius-md); color: var(--fdf-color-text-muted); background: var(--fdf-color-surface-subtle); text-align: center; }
.empty-state p { margin-bottom: 0; }
.empty-state.aligned { max-width: 680px; text-align: left; }
.mobile-only { display: none; }
.dialog { width: min(calc(100% - 32px), 560px); padding: var(--fdf-space-6); border: 1px solid var(--fdf-color-border); border-radius: var(--fdf-radius-lg); color: var(--fdf-color-text); background: var(--fdf-color-surface); box-shadow: var(--fdf-shadow-panel); }
.dialog-wide { width: min(calc(100% - 32px), 760px); max-height: calc(100vh - 32px); overflow-y: auto; }
.dialog.wide { width: min(calc(100% - 32px), 760px); max-height: calc(100vh - 32px); overflow-y: auto; }
.dialog::backdrop { background: rgb(15 24 19 / 58%); }
.dialog h2 { margin-top: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: var(--fdf-space-3); margin-top: var(--fdf-space-6); }
.filter-bar { margin-block: var(--fdf-space-6); display: grid; grid-template-columns: minmax(260px, 1fr) minmax(180px, 240px) auto auto; align-items: end; gap: var(--fdf-space-3); padding: var(--fdf-space-4); border: 1px solid var(--fdf-color-border); border-radius: var(--fdf-radius-lg); background: var(--fdf-color-surface); }
#global-catalog-filters { grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, .6fr)) auto; }
.filter-search { min-width: 0; }
.check-filter { min-height: var(--fdf-control-min); display: flex; align-items: center; gap: var(--fdf-space-2); padding-inline: var(--fdf-space-2); white-space: nowrap; }
.check-filter input { width: 18px; min-height: 18px; accent-color: var(--fdf-color-brand); }
.table-meta { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: var(--fdf-space-4); }
.table-meta p { margin: 0; color: var(--fdf-color-text-muted); }
.table-scroll { overflow-x: auto; border: 1px solid var(--fdf-color-border); border-radius: var(--fdf-radius-lg); background: var(--fdf-color-surface); }
.data-table { width: 100%; min-width: 1080px; border-collapse: collapse; }
.data-table th, .data-table td { padding: var(--fdf-space-3) var(--fdf-space-4); border-bottom: 1px solid var(--fdf-color-border); text-align: left; vertical-align: middle; }
.data-table th { color: var(--fdf-color-text-muted); background: var(--fdf-color-surface-subtle); font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.data-table tbody tr { cursor: pointer; }
.data-table tbody tr:hover { background: var(--fdf-color-brand-subtle); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.table-subline { display: block; margin-top: var(--fdf-space-1); color: var(--fdf-color-text-muted); font-size: 12px; }
.table-primary { display: grid; gap: 2px; }
.table-primary strong { font-size: 14px; }
.table-primary span { color: var(--fdf-color-text-muted); font-size: 12px; }
.status-pill { display: inline-flex; min-height: 28px; align-items: center; padding: 0 var(--fdf-space-2); border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-pill.active, .status-pill.approved, .status-pill.reliable { color: var(--fdf-color-success); background: var(--fdf-color-success-bg); }
.status-pill.verification, .status-pill.attention, .status-pill.integration_required { color: var(--fdf-color-warning); background: #fff6e5; }
.status-pill.suspended, .status-pill.critical, .status-pill.rejected { color: var(--fdf-color-error); background: var(--fdf-color-error-bg); }
.status-pill.draft, .status-pill.ceased, .status-pill.archived { color: var(--fdf-color-text-muted); background: var(--fdf-color-surface-subtle); }
.progress { width: 112px; display: grid; gap: 4px; color: var(--fdf-color-text-muted); font-size: 12px; }
.progress-track { height: 6px; overflow: hidden; border-radius: 999px; background: var(--fdf-color-border); }
.progress-track > span { display: block; height: 100%; border-radius: inherit; background: var(--fdf-color-success); }
.pagination { display: flex; align-items: center; gap: var(--fdf-space-2); }
.pagination button { min-width: 36px; min-height: 36px; border: 1px solid var(--fdf-color-border-strong); border-radius: var(--fdf-radius-sm); background: var(--fdf-color-surface); cursor: pointer; }
.pagination button[aria-current="page"] { color: #fff; border-color: var(--fdf-color-brand); background: var(--fdf-color-brand); }
.pagination button:disabled { cursor: not-allowed; opacity: .45; }
.pagination-bottom { justify-content: flex-end; margin-top: var(--fdf-space-4); }
.detail-tabs { display: flex; overflow-x: auto; gap: var(--fdf-space-1); margin-block: var(--fdf-space-6); border-bottom: 1px solid var(--fdf-color-border); }
.detail-tabs button { min-height: 42px; padding: 0 var(--fdf-space-3); border: 0; border-bottom: 3px solid transparent; color: var(--fdf-color-text-muted); background: transparent; white-space: nowrap; }
.detail-tabs button.active { color: var(--fdf-color-brand); border-color: var(--fdf-color-brand); font-weight: 700; }
.detail-tabs button[aria-disabled="true"] { opacity: .55; }
.page-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--fdf-space-2); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: var(--fdf-space-4); }
.detail-main, .detail-aside { display: grid; align-content: start; gap: var(--fdf-space-4); }
.detail-card { padding: var(--fdf-space-5); border: 1px solid var(--fdf-color-border); border-radius: var(--fdf-radius-lg); background: var(--fdf-color-surface); }
.detail-card h2 { margin: 0 0 var(--fdf-space-4); }
.form-section { padding: var(--fdf-space-6); border: 1px solid var(--fdf-color-border); border-radius: var(--fdf-radius-lg); background: var(--fdf-color-surface); }
.form-section h2 { margin: 0; }
.required-note { margin: 0; color: var(--fdf-color-text-muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--fdf-space-4); margin-top: var(--fdf-space-5); }
.form-grid.compact { margin-top: var(--fdf-space-4); }
.form-grid .span-2 { grid-column: span 2; }
.form-actions { position: sticky; z-index: 2; bottom: 0; display: flex; justify-content: flex-end; gap: var(--fdf-space-3); padding: var(--fdf-space-4); border: 1px solid var(--fdf-color-border); border-radius: var(--fdf-radius-lg); background: rgb(255 255 255 / 96%); box-shadow: 0 -4px 16px rgb(23 32 25 / 6%); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--fdf-space-3); }
.provider-status, .diagnostic-grid { display: flex; align-items: center; flex-wrap: wrap; gap: var(--fdf-space-3); margin-block: var(--fdf-space-4); }
#payments-panel .page-actions { flex-wrap: nowrap; flex-shrink: 0; }
#returns-panel .page-actions { flex-wrap: nowrap; flex-shrink: 0; }
#shipping-panel .page-actions { flex-wrap: nowrap; flex-shrink: 0; }
#exports-panel .page-actions { flex-wrap: nowrap; flex-shrink: 0; }
#analytics-panel .page-actions { flex-wrap: nowrap; flex-shrink: 0; }
#content-panel .page-actions { flex-wrap: nowrap; flex-shrink: 0; }
#content-form-panel .page-actions { flex-wrap: nowrap; flex-shrink: 0; }
#communications-panel .page-actions { flex-wrap: nowrap; flex-shrink: 0; }
#communication-template-panel .page-actions { flex-wrap: nowrap; flex-shrink: 0; }
.privacy-notice { display: flex; align-items: center; gap: var(--fdf-space-3); margin-bottom: var(--fdf-space-5); padding: var(--fdf-space-4); border: 1px solid var(--fdf-color-border); border-left: 4px solid var(--fdf-color-success); border-radius: var(--fdf-radius-md); background: var(--fdf-color-surface); color: var(--fdf-color-text-muted); }
.privacy-notice strong { color: var(--fdf-color-success); white-space: nowrap; }
.language-editor-grid { display: grid; gap: var(--fdf-space-5); }
.language-editor { padding: var(--fdf-space-5); border: 1px solid var(--fdf-color-border); border-radius: var(--fdf-radius-md); background: var(--fdf-color-surface); }
.language-editor > .section-heading { margin-bottom: var(--fdf-space-4); }
.language-editor textarea { min-height: 260px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; line-height: 1.55; }
.content-preview { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.metric { padding: var(--fdf-space-4); border: 1px solid var(--fdf-color-border); border-radius: var(--fdf-radius-md); background: var(--fdf-color-surface-subtle); }
.metric span, .kv-grid dt { display: block; color: var(--fdf-color-text-muted); font-size: 12px; }
.metric strong { display: block; margin-top: var(--fdf-space-1); font-size: 22px; }
.translation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--fdf-space-4); margin-top: var(--fdf-space-5); }
.translation-card { min-width: 0; display: grid; gap: var(--fdf-space-3); padding: var(--fdf-space-4); border: 1px solid var(--fdf-color-border); border-radius: var(--fdf-radius-md); }
.translation-card legend { padding-inline: var(--fdf-space-2); color: var(--fdf-color-brand); font-weight: 800; }
.translation-card .field { display: grid; gap: var(--fdf-space-1); color: var(--fdf-color-text); font-weight: 700; }
.allergen-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--fdf-space-2) var(--fdf-space-4); margin-top: var(--fdf-space-4); }
.allergen-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .55fr); align-items: center; gap: var(--fdf-space-3); padding: var(--fdf-space-2) var(--fdf-space-3); border: 1px solid var(--fdf-color-border); border-radius: var(--fdf-radius-sm); background: var(--fdf-color-surface-subtle); }
.kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--fdf-space-4); margin: 0; }
.kv-grid dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.reason-list, .timeline, .incident-list { margin: 0; padding: 0; display: grid; gap: var(--fdf-space-3); list-style: none; }
.onboarding-checklist { margin: var(--fdf-space-5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--fdf-space-2); list-style: none; }
.onboarding-checklist li { display: flex; align-items: center; gap: var(--fdf-space-2); min-height: 38px; padding: var(--fdf-space-2) var(--fdf-space-3); border: 1px solid var(--fdf-color-border); border-radius: var(--fdf-radius-sm); }
.onboarding-checklist .complete { color: var(--fdf-color-success); background: var(--fdf-color-success-bg); }
.onboarding-checklist .pending { color: var(--fdf-color-text-muted); background: var(--fdf-color-surface-subtle); }
.check-icon { width: 20px; flex: 0 0 20px; font-weight: 800; text-align: center; }
.address-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--fdf-space-4); margin-top: var(--fdf-space-5); }
.address-card { display: grid; align-content: start; gap: var(--fdf-space-3); padding: var(--fdf-space-5); border: 1px solid var(--fdf-color-border); border-radius: var(--fdf-radius-lg); background: var(--fdf-color-surface); }
.address-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--fdf-space-3); }
.address-card h3, .address-card p { margin: 0; }
.address-card p { color: var(--fdf-color-text-muted); }
.address-card-actions { display: flex; flex-wrap: wrap; gap: var(--fdf-space-2); margin-top: var(--fdf-space-2); }
.order-list { display: grid; gap: var(--fdf-space-4); margin-top: var(--fdf-space-5); }
.order-card { padding: var(--fdf-space-5); border: 1px solid var(--fdf-color-border); border-radius: var(--fdf-radius-lg); background: var(--fdf-color-surface); }
.order-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--fdf-space-4); }
.order-card h3, .order-card p { margin: 0; }
.order-lines { width: 100%; margin-block: var(--fdf-space-4); border-collapse: collapse; }
.order-lines th, .order-lines td { padding: var(--fdf-space-2); border-bottom: 1px solid var(--fdf-color-border); text-align: left; }
.order-meta { display: flex; flex-wrap: wrap; gap: var(--fdf-space-4); color: var(--fdf-color-text-muted); font-size: 13px; }
.reason-list li { padding: var(--fdf-space-3); border-left: 3px solid var(--fdf-color-warning); background: #fff8eb; }
.timeline li, .incident-list li { padding-bottom: var(--fdf-space-3); border-bottom: 1px solid var(--fdf-color-border); }
.timeline li:last-child, .incident-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.timeline time, .incident-list small { display: block; color: var(--fdf-color-text-muted); font-size: 12px; }
.footer { border-top: 1px solid var(--fdf-color-border); background: var(--fdf-color-surface); }
.footer-inner { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: var(--fdf-space-4); color: var(--fdf-color-text-muted); font-size: 12px; }
:focus-visible { outline: 3px solid var(--fdf-color-focus); outline-offset: 3px; }
@media (max-width: 1400px) {
  #global-catalog-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .identity-panel { padding: var(--fdf-space-8); }
  .identity-panel h2 { max-width: 28ch; font-size: 24px; }
  .trust-list { grid-template-columns: repeat(3, 1fr); }
  .identity-note { display: none; }
  .auth-workspace { min-height: auto; padding: var(--fdf-space-8); }
  .backoffice-shell { grid-template-columns: 1fr; }
  .app-sidebar { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); transform: translateX(-100%); box-shadow: var(--fdf-shadow-panel); }
  .app-sidebar.mobile-open { transform: translateX(0); }
  .app-sidebar.collapsed { width: min(300px, 86vw); }
  .app-sidebar.collapsed .nav-label, .app-sidebar.collapsed .nav-group { display: initial; }
  .app-sidebar.collapsed .sidebar-head { flex-direction: row; }
  .app-sidebar.collapsed .sidebar-brand img { width: 128px; height: 58px; }
  .app-sidebar.collapsed .nav-item { justify-content: flex-start; }
  .mobile-only { display: inline-grid; place-items: center; flex: 0 0 40px; }
  .workspace-content { padding: var(--fdf-space-6); }
  .attention-grid { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  #global-catalog-filters { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .address-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .translation-grid, .allergen-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .shell { width: min(calc(100% - 24px), var(--fdf-content-max)); }
  .topbar-inner { min-height: 72px; }
  .brand img { width: 88px; height: auto; }
  .brand span { display: none; }
  .environment { padding-inline: var(--fdf-space-2); font-size: 11px; }
  .main { padding-block: var(--fdf-space-6); }
  .identity-panel { padding: var(--fdf-space-6); }
  .identity-panel h2 { font-size: 21px; }
  .identity-panel > p:not(.identity-kicker):not(.identity-note) { display: none; }
  .trust-list { margin-bottom: 0; grid-template-columns: 1fr; }
  .auth-workspace { padding: var(--fdf-space-6); }
  h1 { font-size: 26px; }
  input { font-size: 16px; }
  .button { width: 100%; }
  .security-actions { align-items: stretch; flex-direction: column; }
  .security-actions input { max-width: none; }
  .footer-inner { min-height: 64px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 0; padding-block: var(--fdf-space-2); }
  .page-header { align-items: stretch; flex-direction: column; }
  #payments-panel .page-actions { flex-wrap: wrap; }
  #returns-panel .page-actions { flex-wrap: wrap; }
  #shipping-panel .page-actions { flex-wrap: wrap; }
  #exports-panel .page-actions { flex-wrap: wrap; }
  #analytics-panel .page-actions { flex-wrap: wrap; }
  #content-panel .page-actions { flex-wrap: wrap; }
  #content-form-panel .page-actions { flex-wrap: wrap; }
  #communications-panel .page-actions { flex-wrap: wrap; }
  #communication-template-panel .page-actions { flex-wrap: wrap; }
  .privacy-notice { align-items: flex-start; flex-direction: column; }
  .workspace-bar { padding-inline: var(--fdf-space-3); }
  .environment.compact, .account-name { display: none; }
  .global-search input { padding-inline: var(--fdf-space-2); }
  .workspace-content { padding: var(--fdf-space-4); }
  .locale-select { width: 54px; padding-inline: var(--fdf-space-2); }
  .filter-bar { grid-template-columns: 1fr; }
  #global-catalog-filters { grid-template-columns: 1fr; }
  .metric-grid, .kv-grid, .onboarding-checklist { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .form-actions { position: static; flex-direction: column-reverse; }
  .table-meta { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
