:root {
  --lf-green-950: #063d2a;
  --lf-green-900: #0a5238;
  --lf-green-800: #116b49;
  --lf-green-100: #e8f3ed;
  --lf-green-50: #f3f8f5;
  --lf-blue-700: #1d5fbf;
  --lf-blue-50: #edf5ff;
  --lf-amber-700: #a85a00;
  --lf-amber-50: #fff7e8;
  --lf-red-700: #b42318;
  --lf-red-50: #fff1f0;
  --lf-success-700: #08783f;
  --lf-success-50: #ecf8f1;
  --lf-ink: #1f2937;
  --lf-text: #344054;
  --lf-muted: #667085;
  --lf-border: #d9e0e7;
  --lf-border-soft: #e9edf2;
  --lf-canvas: #f5f7f8;
  --lf-surface: #ffffff;
  --lf-space-1: 4px;
  --lf-space-2: 8px;
  --lf-space-3: 12px;
  --lf-space-4: 16px;
  --lf-space-5: 20px;
  --lf-space-6: 24px;
  --lf-space-8: 32px;
  --lf-radius-sm: 4px;
  --lf-radius-md: 6px;
  --lf-shadow-menu: 0 12px 32px rgba(16, 24, 40, .14);
  --lf-sidebar-width: 244px;
  --lf-topbar-height: 64px;
  --lf-content-max: 1540px;
  --lf-safe-top: env(safe-area-inset-top, 0px);
  --lf-safe-bottom: env(safe-area-inset-bottom, 0px);
  --lf-font: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 0; background: var(--lf-canvas); color: var(--lf-ink); font-family: var(--lf-font); }
body { min-width: 0; max-width: 100%; margin: 0; overflow-x: hidden; background: var(--lf-canvas); color: var(--lf-text); font-family: var(--lf-font); letter-spacing: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .32); outline-offset: 2px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 2000; padding: 10px 14px; background: var(--lf-ink); color: #fff; border-radius: var(--lf-radius-sm); }
.skip-link:focus { top: 12px; }

.app-frame { min-height: 100dvh; display: grid; grid-template-columns: var(--lf-sidebar-width) minmax(0, 1fr); }
.app-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 100; width: var(--lf-sidebar-width); display: flex; flex-direction: column; background: var(--lf-surface); border-right: 1px solid var(--lf-border); }
.sidebar-brand { min-height: 76px; display: flex; align-items: center; padding: 16px 20px; background: var(--lf-green-900); color: #fff; text-decoration: none; }
.sidebar-brand strong { display: block; font-size: 17px; line-height: 1.25; }
.sidebar-brand span { display: block; margin-top: 2px; color: rgba(255,255,255,.75); font-size: 12px; }
.sidebar-scroll { flex: 1; overflow-y: auto; padding: 18px 12px; }
.nav-group + .nav-group { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--lf-border-soft); }
.nav-group-label { margin: 0 10px 8px; color: var(--lf-muted); font-size: 12px; font-weight: 600; }
.app-nav-link { min-height: 44px; display: flex; align-items: center; gap: 11px; margin: 2px 0; padding: 9px 12px; border-radius: var(--lf-radius-sm); color: var(--lf-text); font-size: 14px; font-weight: 600; text-decoration: none; }
.app-nav-link:hover { background: var(--lf-green-50); color: var(--lf-green-900); }
.app-nav-link[aria-current="page"] { background: var(--lf-green-900); color: #fff; }
.app-nav-link svg { width: 18px; height: 18px; flex: 0 0 auto; }
.nav-admin-tag { margin-left: auto; padding: 2px 5px; border: 1px solid currentColor; border-radius: 3px; font-size: 10px; opacity: .78; }
.sidebar-user-summary { padding: 14px 16px calc(14px + var(--lf-safe-bottom)); border-top: 1px solid var(--lf-border); color: var(--lf-muted); font-size: 12px; }

.app-workspace { grid-column: 2; min-width: 0; }
.app-topbar { position: sticky; top: 0; z-index: 80; min-height: calc(var(--lf-topbar-height) + var(--lf-safe-top)); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: var(--lf-safe-top) 24px 0; background: #fff; border-bottom: 1px solid var(--lf-border); }
.topbar-location { min-width: 0; display: flex; align-items: center; gap: 12px; }
.icon-button.mobile-menu-button { display: none; }
.topbar-title { min-width: 0; }
.topbar-title strong { display: block; overflow: hidden; color: var(--lf-ink); font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
.topbar-title span { display: block; margin-top: 2px; color: var(--lf-muted); font-size: 12px; }
.topbar-title strong, .topbar-title span { white-space: nowrap; }
.account-area { position: relative; flex: 0 0 auto; }
.account-trigger { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid transparent; border-radius: var(--lf-radius-sm); background: transparent; color: var(--lf-text); cursor: pointer; }
.account-trigger:hover, .account-trigger[aria-expanded="true"] { border-color: var(--lf-border); background: var(--lf-canvas); }
.account-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--lf-green-900); color: #fff; font-size: 12px; font-weight: 700; }
.account-copy { max-width: 170px; text-align: left; }
.account-copy strong, .account-copy span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.account-copy strong { color: var(--lf-ink); font-size: 13px; }
.account-copy span { color: var(--lf-muted); font-size: 11px; }
.account-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 150; width: 230px; padding: 8px; border: 1px solid var(--lf-border); border-radius: var(--lf-radius-md); background: #fff; box-shadow: var(--lf-shadow-menu); }
.account-menu[hidden] { display: none; }
.account-menu a, .account-menu button { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: var(--lf-radius-sm); background: transparent; color: var(--lf-text); text-align: left; text-decoration: none; cursor: pointer; }
.account-menu a:hover, .account-menu button:hover { background: var(--lf-canvas); }
.account-menu svg { width: 17px; }

.app-content { width: 100%; max-width: var(--lf-content-max); margin: 0 auto; padding: 24px; }
.page-shell, .page-shell.wide { width: 100%; max-width: none; margin: 0; padding: 0; }
.header-section, .header-section.compact { margin: 0 0 20px; padding: 0 0 18px; background: transparent; border-bottom: 1px solid var(--lf-border); }
.header-section .brand { margin: 0 0 6px; color: var(--lf-green-800); font-size: 12px; font-weight: 700; }
.header-section h1 { margin: 0; color: var(--lf-ink); font-size: 26px; line-height: 1.3; }
.header-section .subtitle { margin: 6px 0 0; color: var(--lf-muted); font-size: 14px; }
.page-title-actions { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-title-actions > div { min-width: 0; }

.primary-button, .secondary-button, .danger-button, .secondary-link, .link-button, button, [role="button"] { min-height: 44px; }
.primary-button, .secondary-button, .danger-button, .link-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: var(--lf-radius-sm); font-weight: 650; line-height: 1.2; text-decoration: none; cursor: pointer; }
.primary-button { border: 1px solid var(--lf-green-900); background: var(--lf-green-900); color: #fff; }
.primary-button:hover { background: var(--lf-green-950); }
.secondary-button, .secondary-link { border: 1px solid var(--lf-border); background: #fff; color: var(--lf-text); }
.secondary-link { display: inline-flex; align-items: center; justify-content: center; padding: 9px 14px; border-radius: var(--lf-radius-sm); font-weight: 600; text-decoration: none; }
.secondary-button:hover, .secondary-link:hover { border-color: #b5c0cc; background: var(--lf-canvas); }
.danger-button { border: 1px solid #f4b4ae; background: #fff; color: var(--lf-red-700); }
button:disabled, [aria-disabled="true"] { cursor: not-allowed; opacity: .48; }
.icon-button { width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--lf-border); border-radius: var(--lf-radius-sm); background: #fff; color: var(--lf-text); cursor: pointer; }
.icon-button svg { width: 20px; height: 20px; }

input, select, textarea, .text-input { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #cbd5df; border-radius: var(--lf-radius-sm); background: #fff; color: var(--lf-ink); }
textarea { min-height: 96px; resize: vertical; }
label { color: var(--lf-text); font-size: 13px; font-weight: 600; }
label > input, label > select, label > textarea { margin-top: 6px; }
.field-help { margin: 6px 0 0; color: var(--lf-muted); font-size: 12px; font-weight: 400; }
.field-error { margin: 6px 0 0; color: var(--lf-red-700); font-size: 12px; }

.form-section, .status-panel, .table-panel, .home-card { margin-bottom: 16px; padding: 20px; border: 1px solid var(--lf-border); border-radius: var(--lf-radius-md); background: var(--lf-surface); box-shadow: none; }
.form-section h2, .status-panel h2 { margin: 0 0 16px; color: var(--lf-ink); font-size: 17px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.form-actions, .product-toolbar, .import-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

.table-panel, .table-wrap { width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.data-table { width: 100%; border-collapse: collapse; color: var(--lf-text); font-size: 13px; }
.data-table th { position: sticky; top: 0; z-index: 2; padding: 10px 12px; background: #f8fafb; border-bottom: 1px solid var(--lf-border); color: #475467; font-weight: 700; text-align: left; white-space: nowrap; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--lf-border-soft); vertical-align: middle; }
.data-table tbody tr:hover { background: #fafcfb; }
.status-tag { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 3px 7px; border: 1px solid currentColor; border-radius: 4px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-tag.success { color: var(--lf-success-700); background: var(--lf-success-50); }
.status-tag.warning { color: var(--lf-amber-700); background: var(--lf-amber-50); }
.status-tag.error { color: var(--lf-red-700); background: var(--lf-red-50); }
.status-tag.info { color: var(--lf-blue-700); background: var(--lf-blue-50); }
.status-tag.neutral { color: var(--lf-muted); background: #f7f8fa; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-item { min-height: 112px; padding: 16px; border: 1px solid var(--lf-border); border-radius: var(--lf-radius-md); background: #fff; }
.metric-item-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--lf-muted); font-size: 13px; }
.metric-item-head svg { width: 20px; color: var(--lf-green-800); }
.metric-value { margin-top: 12px; color: var(--lf-ink); font-size: 28px; font-weight: 750; line-height: 1; }
.dashboard-zones { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 16px; margin-top: 16px; }
.zone-panel { min-width: 0; padding: 18px; border: 1px solid var(--lf-border); border-radius: var(--lf-radius-md); background: #fff; }
.zone-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.zone-heading h2 { margin: 0; color: var(--lf-ink); font-size: 17px; }
.quote-list { display: grid; gap: 1px; border: 1px solid var(--lf-border-soft); }
.quote-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(150px, 1.2fr) 92px 90px 110px; align-items: center; gap: 12px; min-height: 52px; padding: 10px 12px; background: #fff; color: var(--lf-text); text-decoration: none; }
.quote-row + .quote-row { border-top: 1px solid var(--lf-border-soft); }
.quote-row:hover { background: var(--lf-green-50); }
.quote-row strong { color: var(--lf-ink); white-space: nowrap; }
.pending-list { display: grid; gap: 8px; }
.pending-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--lf-border-soft); }
.empty-state, .loading-state, .error-state { min-height: 140px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 24px; text-align: center; color: var(--lf-muted); }
.empty-state svg, .loading-state svg, .error-state svg { width: 28px; height: 28px; }
.error-state { color: var(--lf-red-700); }
.toast-region { position: fixed; right: 20px; bottom: calc(20px + var(--lf-safe-bottom)); z-index: 500; display: grid; gap: 8px; }
.toast { max-width: min(380px, calc(100vw - 32px)); padding: 12px 14px; border: 1px solid var(--lf-border); border-left: 4px solid var(--lf-green-800); border-radius: var(--lf-radius-sm); background: #fff; box-shadow: var(--lf-shadow-menu); }
.toast.error { border-left-color: var(--lf-red-700); }

.drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(16, 24, 40, .42); }
.drawer-backdrop[hidden] { display: none; }
.mobile-page-actions { display: none; }

.login-page { min-height: 100dvh; display: grid; grid-template-columns: minmax(300px, .9fr) minmax(420px, 1.1fr); background: #fff; }
.login-brand-panel { display: flex; flex-direction: column; justify-content: space-between; min-height: 100dvh; padding: max(48px, var(--lf-safe-top)) 56px max(40px, var(--lf-safe-bottom)); background: var(--lf-green-900); color: #fff; }
.login-brand-panel h1 { max-width: 520px; margin: 28px 0 12px; font-size: 38px; line-height: 1.25; }
.login-brand-panel p { max-width: 500px; color: rgba(255,255,255,.76); line-height: 1.8; }
.login-brand-mark { font-size: 18px; font-weight: 750; }
.login-brand-foot { font-size: 12px; color: rgba(255,255,255,.66); }
.login-form-panel { display: grid; place-items: center; padding: 32px; }
.login-form-wrap { width: min(420px, 100%); }
.login-form-wrap h2 { margin: 0; color: var(--lf-ink); font-size: 26px; }
.login-form-wrap > p { margin: 8px 0 28px; color: var(--lf-muted); }
.login-form { display: grid; gap: 18px; }
.password-control { position: relative; }
.password-control input { padding-right: 52px; }
.password-toggle { position: absolute; right: 2px; bottom: 2px; width: 44px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; color: var(--lf-muted); cursor: pointer; }
.password-toggle svg { width: 19px; }
.login-submit { width: 100%; margin-top: 4px; }
.login-error { padding: 11px 12px; border: 1px solid #f1b6b0; border-radius: var(--lf-radius-sm); background: var(--lf-red-50); color: var(--lf-red-700); font-size: 13px; }
.login-error[hidden] { display: none; }
.login-security-note { margin-top: 22px; color: var(--lf-muted); font-size: 12px; line-height: 1.6; }

.placeholder-state { min-height: 360px; display: grid; place-items: center; padding: 40px; border: 1px solid var(--lf-border); border-radius: var(--lf-radius-md); background: #fff; text-align: center; }
.placeholder-state svg { width: 36px; height: 36px; color: var(--lf-green-800); }
.placeholder-state h1 { margin: 14px 0 8px; font-size: 22px; }
.placeholder-state p { max-width: 500px; color: var(--lf-muted); }

.notice-banner { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; padding: 14px 16px; border: 1px solid var(--lf-border); border-left-width: 4px; border-radius: var(--lf-radius-sm); background: #fff; }
.notice-banner svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; }
.notice-banner strong, .notice-banner p { margin: 0; }
.notice-banner p { margin-top: 3px; color: var(--lf-muted); font-size: 13px; line-height: 1.6; }
.notice-banner.success { border-left-color: var(--lf-success-700); color: var(--lf-success-700); }
.notice-banner.error { border-left-color: var(--lf-red-700); background: var(--lf-red-50); color: var(--lf-red-700); }
.section-label { margin: 0 0 4px; color: var(--lf-green-800); font-size: 12px; font-weight: 700; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--lf-green-900); font-weight: 650; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link svg { width: 16px; height: 16px; }

.help-search-zone { display: grid; grid-template-columns: minmax(230px, .75fr) minmax(320px, 1.25fr); align-items: end; gap: 8px 24px; margin-bottom: 16px; padding: 18px 20px; border: 1px solid var(--lf-border); border-radius: var(--lf-radius-md); background: #fff; }
.help-search-zone h2, .help-search-zone p { margin: 0; }
.help-search-zone h2 { color: var(--lf-ink); font-size: 17px; }
.help-search-zone p { margin-top: 4px; color: var(--lf-muted); font-size: 12px; }
.help-search-field { position: relative; display: block; }
.help-search-field svg { position: absolute; left: 12px; top: 12px; width: 19px; height: 19px; color: var(--lf-muted); pointer-events: none; }
.help-search-field input { padding-left: 40px; }
.search-status { grid-column: 2; min-height: 17px; }
.help-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); align-items: start; gap: 16px; }
.help-directory { position: sticky; top: calc(var(--lf-topbar-height) + 16px); max-height: calc(100dvh - var(--lf-topbar-height) - 32px); overflow-y: auto; padding: 16px 12px; border: 1px solid var(--lf-border); border-radius: var(--lf-radius-md); background: #fff; }
.help-directory h2 { margin: 0 8px 10px; color: var(--lf-ink); font-size: 14px; }
.help-directory nav, .help-mobile-directory nav { display: grid; gap: 2px; }
.help-nav-link { min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-left: 3px solid transparent; border-radius: var(--lf-radius-sm); color: var(--lf-text); font-size: 13px; font-weight: 600; text-decoration: none; }
.help-nav-link svg { width: 17px; height: 17px; flex: 0 0 auto; }
.help-nav-link:hover { background: var(--lf-green-50); color: var(--lf-green-900); }
.help-nav-link[aria-current="location"] { border-left-color: var(--lf-green-900); background: var(--lf-green-50); color: var(--lf-green-900); font-weight: 750; }
.current-marker { margin-left: auto; color: var(--lf-green-800); font-size: 10px; }
.help-articles { min-width: 0; display: grid; gap: 16px; }
.help-article { scroll-margin-top: calc(var(--lf-topbar-height) + 18px); padding: 22px 24px; border: 1px solid var(--lf-border); border-radius: var(--lf-radius-md); background: #fff; }
.help-article-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--lf-border-soft); }
.help-title-wrap { min-width: 0; display: flex; align-items: center; gap: 11px; }
.help-title-wrap h2 { margin: 0; color: var(--lf-ink); font-size: 19px; }
.help-title-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #cce0d5; border-radius: var(--lf-radius-sm); background: var(--lf-green-50); color: var(--lf-green-900); }
.help-title-icon svg { width: 19px; height: 19px; }
.help-updated { color: var(--lf-muted); font-size: 11px; white-space: nowrap; }
.help-intro-grid { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 10px 16px; margin: 18px 0; }
.help-intro-grid dt { color: var(--lf-muted); font-size: 12px; font-weight: 700; }
.help-intro-grid dd { margin: 0; color: var(--lf-text); font-size: 14px; line-height: 1.75; }
.help-article-block { margin-top: 18px; }
.help-article-block h3 { margin: 0 0 8px; color: var(--lf-ink); font-size: 15px; }
.help-step-list { margin: 0; padding-left: 22px; color: var(--lf-text); font-size: 14px; line-height: 1.75; }
.help-step-list li + li { margin-top: 5px; }
.help-route-button { margin-top: 20px; }
.help-route-button svg { width: 16px; height: 16px; }
.help-mobile-directory { display: none; margin-bottom: 12px; border: 1px solid var(--lf-border); border-radius: var(--lf-radius-md); background: #fff; }
.help-mobile-directory summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; color: var(--lf-ink); font-weight: 700; cursor: pointer; list-style: none; }
.help-mobile-directory summary::-webkit-details-marker { display: none; }
.help-mobile-directory summary span { display: flex; align-items: center; gap: 8px; }
.help-mobile-directory summary svg { width: 18px; }
.help-mobile-directory[open] summary > svg { transform: rotate(180deg); }
.help-mobile-directory nav { max-height: 55dvh; overflow-y: auto; padding: 0 10px 12px; border-top: 1px solid var(--lf-border-soft); }
.help-empty { border: 1px solid var(--lf-border); border-radius: var(--lf-radius-md); background: #fff; }
.back-to-top { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; color: var(--lf-green-900); font-size: 13px; font-weight: 650; text-decoration: none; }
.back-to-top svg { width: 16px; height: 16px; }

.account-zones { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .65fr); align-items: start; gap: 16px; }
.account-main-zone, .account-security-zone, .account-permission-zone, .password-form-zone, .password-rules-zone { padding: 20px; border: 1px solid var(--lf-border); border-radius: var(--lf-radius-md); background: #fff; }
.account-main-zone h2, .account-security-zone h2, .account-permission-zone h2, .password-form-zone h2, .password-rules-zone h2 { margin: 0; color: var(--lf-ink); font-size: 17px; }
.account-field-list { margin: 0; }
.account-field-list > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 16px; min-height: 64px; padding: 10px 0; border-top: 1px solid var(--lf-border-soft); }
.account-field-list dt { color: var(--lf-muted); font-size: 13px; }
.account-field-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--lf-ink); font-size: 14px; font-weight: 650; }
.account-copy-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.icon-button.compact { width: 44px; min-width: 44px; max-width: 44px; flex: 0 0 44px; }
.account-side-zone { display: grid; gap: 16px; }
.account-security-zone > p:not(.section-label), .account-permission-zone > p:not(.section-label) { margin: 10px 0 18px; color: var(--lf-muted); font-size: 13px; line-height: 1.7; }
.account-primary-action, .account-logout { width: 100%; }
.account-logout { margin-top: 10px; }

.password-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .65fr); align-items: start; gap: 16px; }
.password-form-zone { max-width: 760px; }
.password-form-zone .zone-heading > svg { color: var(--lf-green-800); }
.password-form-zone form { display: grid; gap: 6px; }
.password-form-zone form > label:not(:first-of-type) { margin-top: 10px; }
.account-password-control input { font-size: 16px; }
.password-form-actions { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--lf-border-soft); }
.password-rules-zone ul { display: grid; gap: 10px; margin: 16px 0; padding: 0; list-style: none; }
.password-rules-zone li { display: flex; align-items: flex-start; gap: 8px; color: var(--lf-text); font-size: 13px; }
.password-rules-zone li svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--lf-success-700); }
.password-rules-zone > p:not(.section-label) { color: var(--lf-muted); font-size: 12px; line-height: 1.7; }

@media (max-width: 1100px) {
  :root { --lf-sidebar-width: 218px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-zones { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .app-frame { display: block; }
  .app-workspace { min-width: 0; }
  .app-sidebar { width: min(320px, 82vw); max-width: calc(100vw - 44px); transform: translate3d(-105%, 0, 0); visibility: hidden; pointer-events: none; transition: none; box-shadow: var(--lf-shadow-menu); padding-top: var(--lf-safe-top); }
  .app-sidebar.is-open { transform: none; visibility: visible; pointer-events: auto; }
  .app-sidebar .app-nav-link > span:not(.nav-admin-tag) { min-width: 0; overflow-wrap: anywhere; }
  .app-topbar { min-height: calc(58px + var(--lf-safe-top)); padding-inline: 12px; }
  .topbar-location { flex: 1 1 auto; overflow: hidden; }
  .topbar-title { flex: 1 1 auto; }
  .topbar-title strong { text-overflow: clip; }
  .topbar-title span { display: none; }
  .icon-button:not(.compact), .account-trigger, .account-menu button { width: auto; }
  .icon-button.mobile-menu-button { width: 44px; display: inline-grid; flex: 0 0 44px; }
  .account-copy { display: none; }
  .account-trigger { padding-inline: 4px; }
  .app-content { padding: 16px 14px calc(20px + var(--lf-safe-bottom)); }
  .header-section, .header-section.compact { margin-bottom: 14px; padding-bottom: 14px; }
  .header-section h1 { font-size: 22px; }
  .page-title-actions { align-items: stretch; flex-direction: column; }
  .page-title-actions .primary-button { width: 100%; }
  .form-section, .status-panel, .table-panel, .home-card, .zone-panel { padding: 16px; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  input, select, textarea, .text-input { font-size: 16px; }
  .product-toolbar, .form-actions, .import-controls { align-items: stretch; }
  .product-toolbar > *, .import-controls > * { flex: 1 1 100%; }
  .form-actions > .primary-button, .form-actions > .secondary-button, .form-actions > .danger-button, .form-actions > .secondary-link { flex: 1 1 calc(50% - 8px); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric-item { min-height: 104px; padding: 14px; }
  .metric-value { font-size: 24px; }
  .quote-list { border: 0; gap: 10px; background: transparent; }
  .quote-row { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px; border: 1px solid var(--lf-border); border-radius: var(--lf-radius-md); }
  .quote-row + .quote-row { border-top: 1px solid var(--lf-border); }
  .quote-customer { grid-column: 1 / -1; }
  .quote-amount { grid-column: 1; color: var(--lf-muted); font-size: 12px; }
  .quote-row .status-tag { justify-self: start; }
  .quote-date { color: var(--lf-muted); font-size: 12px; }
  .zone-heading .secondary-link { width: auto; flex: 0 0 auto; }
  .data-table { min-width: 760px; }
  .quotation-preview #products { max-width: 100%; overflow-x: auto; }
  .preview-table { min-width: 980px; }
  .toast-region { right: 14px; left: 14px; bottom: calc(14px + var(--lf-safe-bottom)); }
  .toast { max-width: none; }
  .login-page { display: block; min-height: 100dvh; background: var(--lf-canvas); }
  .login-brand-panel { min-height: auto; padding: calc(24px + var(--lf-safe-top)) 22px 28px; }
  .login-brand-panel h1 { margin-top: 22px; font-size: 28px; }
  .login-brand-panel p { margin-bottom: 0; font-size: 14px; }
  .login-brand-foot { display: none; }
  .login-form-panel { place-items: start center; padding: 24px 18px calc(32px + var(--lf-safe-bottom)); }
  .login-form-wrap { padding: 22px 18px; border: 1px solid var(--lf-border); border-radius: var(--lf-radius-md); background: #fff; }
  .login-form-wrap h2 { font-size: 22px; }
  .login-submit { min-height: 48px; }
  .placeholder-state { min-height: 300px; padding: 28px 18px; }
  .help-search-zone { grid-template-columns: 1fr; padding: 16px; }
  .search-status { grid-column: 1; }
  .help-layout { display: block; }
  .help-directory { display: none; }
  .help-mobile-directory { display: block; }
  .help-articles { gap: 12px; }
  .help-article { padding: 18px 16px; }
  .help-article-heading { align-items: flex-start; }
  .help-intro-grid { grid-template-columns: 1fr; gap: 4px; }
  .help-intro-grid dd + dt { margin-top: 8px; }
  .help-route-button { width: 100%; }
  .account-zones, .password-layout { grid-template-columns: 1fr; }
  .account-main-zone, .account-security-zone, .account-permission-zone, .password-form-zone, .password-rules-zone { padding: 16px; }
  .account-field-list > div { grid-template-columns: 1fr; gap: 5px; min-height: 0; padding: 14px 0; }
  .password-form-zone { max-width: none; }
  .password-form-actions { align-items: stretch; flex-direction: column; }
  .password-form-actions > * { width: 100%; }
  .admin-section-nav { margin-inline: 0; padding-right: 34px; scroll-padding-inline: 6px 34px; scroll-snap-type: x proximity; overscroll-behavior-inline: contain; scrollbar-gutter: stable; background: linear-gradient(90deg, #fff 0, #fff calc(100% - 32px), #eef3f0 100%); }
  .admin-section-nav a { scroll-snap-align: start; }
  .admin-section-nav a[aria-current="page"] { scroll-margin-inline: 8px 34px; }
}

@media (max-width: 380px) {
  .metric-grid { grid-template-columns: 1fr; }
  .form-actions > .primary-button, .form-actions > .secondary-button, .form-actions > .danger-button, .form-actions > .secondary-link { flex-basis: 100%; }
  .topbar-title span { display: none; }
  .help-article-heading { display: block; }
  .help-updated { display: block; margin: 8px 0 0 47px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* UX-3 administrator control plane */
.header-action-group, .row-actions, .filter-actions, .dialog-actions, .save-state-row { display: flex; align-items: center; gap: 10px; }
.text-button { min-width: 0; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 8px; border: 0; border-radius: var(--lf-radius-sm); background: transparent; color: var(--lf-green-900); font-size: 13px; font-weight: 650; cursor: pointer; }
.text-button:hover { background: var(--lf-green-50); }
.text-button svg, .status-tag svg { width: 15px; height: 15px; }
.danger-text { color: var(--lf-red-700); }
.danger-text:hover { background: var(--lf-red-50); }
.admin-section-nav { display: flex; align-items: center; gap: 2px; margin: 0 0 16px; padding: 4px; overflow-x: auto; border: 1px solid var(--lf-border); border-radius: var(--lf-radius-md); background: #fff; scrollbar-width: thin; }
.admin-section-nav a { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 8px 12px; border-radius: var(--lf-radius-sm); color: var(--lf-text); font-size: 13px; font-weight: 650; text-decoration: none; }
.admin-section-nav a:hover { background: var(--lf-canvas); }
.admin-section-nav a[aria-current="page"] { background: var(--lf-green-900); color: #fff; }
.admin-section-nav svg { width: 17px; height: 17px; }
.admin-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.admin-metric-grid > .loading-state, .admin-metric-grid > .error-state { grid-column: 1 / -1; border: 1px solid var(--lf-border); background: #fff; }
.admin-metric-item { min-width: 0; min-height: 118px; display: flex; flex-direction: column; padding: 15px; border: 1px solid var(--lf-border); border-radius: var(--lf-radius-md); background: #fff; color: var(--lf-text); text-decoration: none; }
.admin-metric-item:hover { border-color: #b7c6be; background: #fbfdfc; }
.admin-metric-item > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--lf-muted); font-size: 12px; }
.admin-metric-item > span svg { width: 18px; color: var(--lf-green-800); }
.admin-metric-item > strong { margin-top: 12px; color: var(--lf-ink); font-size: 27px; line-height: 1; }
.admin-metric-item > small { display: flex; align-items: center; gap: 4px; margin-top: auto; color: var(--lf-green-800); font-size: 11px; }
.admin-metric-item > small svg { width: 13px; }
.admin-overview-zones { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr); gap: 16px; margin-top: 16px; }
.admin-activity-list, .product-audit-list { display: grid; }
.admin-activity-list > div, .product-audit-list > article { min-width: 0; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--lf-border-soft); }
.activity-icon { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #d7e5dd; border-radius: var(--lf-radius-sm); color: var(--lf-green-800); }
.activity-icon svg { width: 15px; }
.admin-activity-list strong, .admin-activity-list small, .product-audit-list strong, .product-audit-list small { display: block; overflow-wrap: anywhere; }
.admin-activity-list strong, .product-audit-list strong { color: var(--lf-ink); font-size: 13px; }
.admin-activity-list small, .product-audit-list small { margin-top: 3px; color: var(--lf-muted); font-size: 11px; }
.admin-activity-list time, .product-audit-list time { color: var(--lf-muted); font-size: 11px; white-space: nowrap; }
.admin-quick-links { display: grid; gap: 4px; }
.admin-quick-links a { min-height: 62px; display: flex; align-items: center; gap: 12px; padding: 10px; border-bottom: 1px solid var(--lf-border-soft); color: var(--lf-text); text-decoration: none; }
.admin-quick-links a:hover { background: var(--lf-green-50); }
.admin-quick-links > a > svg { width: 20px; color: var(--lf-green-800); }
.admin-quick-links strong, .admin-quick-links small { display: block; }
.admin-quick-links strong { color: var(--lf-ink); font-size: 13px; }
.admin-quick-links small { margin-top: 2px; color: var(--lf-muted); font-size: 11px; }
.admin-filter-bar { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(130px, .65fr)) auto; align-items: end; gap: 12px; margin-bottom: 12px; padding: 14px; border: 1px solid var(--lf-border); border-radius: var(--lf-radius-md); background: #fff; }
.admin-filter-bar.compact-filter { grid-template-columns: minmax(260px, 1fr) minmax(150px, .35fr) auto; }
.admin-filter-bar.audit-filters { grid-template-columns: repeat(5, minmax(130px, 1fr)); }
.admin-filter-bar.audit-filters .filter-actions { grid-column: 1 / -1; justify-content: flex-end; }
.admin-filter-bar label > span { display: block; margin-bottom: 5px; color: var(--lf-muted); font-size: 11px; }
.admin-filter-bar input, .admin-filter-bar select { margin-top: 0; }
.admin-list-panel { min-width: 0; border: 1px solid var(--lf-border); border-radius: var(--lf-radius-md); background: #fff; overflow: hidden; }
.admin-list-panel .data-table td strong, .admin-list-panel .data-table td small { display: block; overflow-wrap: anywhere; }
.admin-list-panel .data-table td small { margin-top: 3px; color: var(--lf-muted); font-size: 11px; }
.admin-list-panel .data-table tr { cursor: default; }
.admin-list-panel .data-table td:last-child { white-space: nowrap; }
.admin-mobile-cards { display: none; }
.role-tag { display: inline-flex; min-height: 24px; align-items: center; padding: 3px 7px; border: 1px solid var(--lf-border); border-radius: var(--lf-radius-sm); font-size: 12px; font-weight: 700; }
.role-tag.admin { border-color: #aac5e9; background: var(--lf-blue-50); color: var(--lf-blue-700); }
.role-tag.business { border-color: #cad7cf; background: var(--lf-green-50); color: var(--lf-green-800); }
.pagination-bar { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--lf-border-soft); color: var(--lf-muted); font-size: 12px; }
.pagination-bar > div { display: flex; align-items: center; gap: 8px; }
.pagination-bar .icon-button { min-width: 44px; }
.audit-summary { min-width: 220px; max-width: 420px; white-space: normal; }
.notice-banner.warning { border-left-color: var(--lf-amber-700); background: var(--lf-amber-50); color: var(--lf-amber-700); }
.pi-master-tabs { display: flex; gap: 4px; margin-bottom: 14px; padding: 4px; overflow-x: auto; border: 1px solid var(--lf-border); border-radius: var(--lf-radius-md); background: #fff; }
.pi-master-tabs button { min-width: 150px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 1 0 auto; border: 0; border-radius: var(--lf-radius-sm); background: transparent; color: var(--lf-text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.pi-master-tabs button[aria-selected="true"] { background: var(--lf-green-900); color: #fff; }
.pi-master-tabs button svg { width: 17px; }
.pi-master-panel[hidden] { display: none; }
.pi-master-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.pi-master-panel-heading h2, .pi-master-panel-heading p { margin: 0; }
.pi-master-panel-heading h2 { color: var(--lf-ink); font-size: 18px; }
.pi-master-panel-heading p { margin-top: 4px; color: var(--lf-muted); font-size: 12px; }
.pi-master-loading { min-height: 74px; display: grid; place-items: center; color: var(--lf-muted); font-size: 13px; }
.pi-master-text-preview { max-width: 520px; white-space: pre-wrap; overflow-wrap: anywhere; }

.app-dialog { width: min(560px, calc(100vw - 32px)); max-height: min(86dvh, 760px); margin: auto; padding: 0; overflow: auto; border: 1px solid var(--lf-border); border-radius: var(--lf-radius-md); background: #fff; color: var(--lf-text); box-shadow: var(--lf-shadow-menu); }
.app-dialog::backdrop { background: rgba(16, 24, 40, .48); }
.app-dialog > form, .app-dialog > div:not(.dialog-heading):not(.notice-banner):not(.dialog-actions) { padding-inline: 20px; }
.app-dialog > form { padding: 0 20px 20px; }
.admin-form-dialog { width: min(760px, calc(100vw - 32px)); }
.dialog-heading { position: sticky; top: 0; z-index: 2; min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--lf-border); background: #fff; }
form > .dialog-heading { margin-inline: -20px; }
.dialog-heading h2 { margin: 0; color: var(--lf-ink); font-size: 18px; }
.app-dialog .notice-banner { margin: 16px 20px; }
.app-dialog form .notice-banner { margin-inline: 0; }
.dialog-actions { position: sticky; bottom: 0; z-index: 2; justify-content: flex-end; margin: 20px -20px -20px; padding: 12px 20px calc(12px + var(--lf-safe-bottom)); border-top: 1px solid var(--lf-border); background: #fff; }
.app-dialog > .dialog-actions { margin: 16px 0 0; }
.form-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: span 2; }
.toggle-field > span:last-child { min-height: 44px; display: flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 500; }
.toggle-field input { width: 20px; min-height: 20px; margin: 0; }
.password-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--lf-border-soft); }
.password-pair .field-help { grid-column: 1 / -1; }

.product-identity { min-width: 220px; display: flex; align-items: center; gap: 10px; }
.product-identity > span { min-width: 0; }
.table-thumb, .product-thumb-empty { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; border: 1px solid var(--lf-border); border-radius: var(--lf-radius-sm); background: #f8fafb; object-fit: contain; }
.product-thumb-empty svg { width: 18px; color: var(--lf-muted); }
.product-import-zone { display: grid; gap: 10px; margin-top: 16px; }
.admin-collapsible { border: 1px solid var(--lf-border); border-radius: var(--lf-radius-md); background: #fff; }
.admin-collapsible > summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; list-style: none; cursor: pointer; }
.admin-collapsible > summary::-webkit-details-marker { display: none; }
.admin-collapsible > summary > span { display: flex; align-items: center; gap: 10px; }
.admin-collapsible > summary svg { width: 19px; color: var(--lf-green-800); }
.admin-collapsible > summary strong, .admin-collapsible > summary small { display: block; }
.admin-collapsible > summary small { margin-top: 2px; color: var(--lf-muted); font-size: 11px; font-weight: 400; }
.admin-collapsible[open] > summary > svg { transform: rotate(180deg); }
.collapsible-body { padding: 14px; border-top: 1px solid var(--lf-border-soft); }
.collapsible-body .result-box { max-height: none; padding: 0; border: 0; background: transparent; }

.save-state-row { justify-content: space-between; margin-top: 12px; }
.save-status { font-size: 12px; font-weight: 650; }
.save-status.saved { color: var(--lf-success-700); }
.save-status.unsaved { color: var(--lf-amber-700); }
.save-status.error { color: var(--lf-red-700); }
.product-editor-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: start; gap: 16px; }
.product-section-nav { position: sticky; top: calc(var(--lf-topbar-height) + 16px); display: grid; padding: 8px; border: 1px solid var(--lf-border); border-radius: var(--lf-radius-md); background: #fff; }
.product-section-nav a { min-height: 44px; display: flex; align-items: center; padding: 8px 10px; border-left: 3px solid transparent; border-radius: var(--lf-radius-sm); color: var(--lf-text); font-size: 12px; font-weight: 650; text-decoration: none; }
.product-section-nav a:hover, .product-section-nav a:focus { border-left-color: var(--lf-green-800); background: var(--lf-green-50); color: var(--lf-green-900); }
.product-editor-content { min-width: 0; border: 1px solid var(--lf-border); border-radius: var(--lf-radius-md); background: #fff; }
.product-editor-section { scroll-margin-top: calc(var(--lf-topbar-height) + 16px); padding: 22px; }
.product-editor-section + .product-editor-section { border-top: 1px solid var(--lf-border); }
.product-editor-section h3 { margin: 20px 0 10px; color: var(--lf-ink); font-size: 14px; }
.section-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.section-heading > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #d4e4db; border-radius: var(--lf-radius-sm); background: var(--lf-green-50); color: var(--lf-green-800); }
.section-heading > span svg { width: 18px; }
.section-heading > div { min-width: 0; flex: 1; }
.section-heading h2, .section-heading p { margin: 0; }
.section-heading h2 { color: var(--lf-ink); font-size: 17px; }
.section-heading p { margin-top: 4px; color: var(--lf-muted); font-size: 12px; line-height: 1.6; }
.image-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.image-editor-grid article { min-width: 0; padding: 14px; border: 1px solid var(--lf-border-soft); }
.image-slot { min-height: 180px; display: grid; place-items: center; position: relative; background: #f7f9fa; overflow: hidden; }
.image-slot img:not([src]) { display: none; }
.image-slot img { max-width: 100%; max-height: 220px; object-fit: contain; }
.image-slot span { position: absolute; left: 8px; top: 8px; padding: 3px 6px; background: rgba(255,255,255,.92); color: var(--lf-muted); font-size: 11px; }
.description-editor-list { display: grid; gap: 8px; }
.desc-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) 130px auto; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--lf-border); border-radius: var(--lf-radius-sm); background: #fff; }
.desc-order { color: var(--lf-green-800); font-size: 12px; font-weight: 750; text-align: center; }
.desc-text { min-height: 62px; margin: 0; font-size: 14px; }
.desc-emphasis { margin: 0; }
.desc-actions { display: flex; gap: 4px; }
.desc-actions .icon-button { min-width: 44px; }
.description-preview { margin-top: 14px; padding: 14px; border-left: 3px solid var(--lf-green-800); background: #f8faf9; }
.description-preview p { margin: 0; font-size: 13px; line-height: 1.65; }
.description-preview p + p { margin-top: 5px; }
.description-preview .description-highlight { color: var(--lf-red-700); font-weight: 650; }
.readiness-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.secondary-actions { margin-top: 18px; border-top: 1px solid var(--lf-border-soft); }
.secondary-actions summary { min-height: 48px; display: flex; align-items: center; color: var(--lf-text); font-size: 13px; font-weight: 650; cursor: pointer; }
.secondary-actions .form-actions { padding-bottom: 4px; }

@media (max-width: 1180px) {
  .admin-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-filter-bar .filter-actions { justify-content: flex-end; }
  .admin-filter-bar.audit-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .admin-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-overview-zones { grid-template-columns: 1fr; }
  .admin-filter-bar, .admin-filter-bar.compact-filter, .admin-filter-bar.audit-filters { grid-template-columns: 1fr; }
  .admin-filter-bar.audit-filters .filter-actions { grid-column: 1; }
  .admin-filter-bar .filter-actions { justify-content: stretch; }
  .admin-filter-bar .filter-actions > * { flex: 1; }
  .admin-desktop-table { display: none; }
  .admin-mobile-cards { display: grid; gap: 10px; padding: 10px; }
  .admin-record-card { min-width: 0; padding: 14px; border: 1px solid var(--lf-border); border-radius: var(--lf-radius-md); background: #fff; }
  .record-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
  .record-card-heading strong, .record-card-heading small { display: block; overflow-wrap: anywhere; }
  .record-card-heading strong { color: var(--lf-ink); font-size: 14px; }
  .record-card-heading small { margin-top: 3px; color: var(--lf-muted); font-size: 11px; }
  .admin-record-card dl { display: grid; gap: 8px; margin: 14px 0; }
  .admin-record-card dl > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 8px; }
  .admin-record-card dt { color: var(--lf-muted); font-size: 11px; }
  .admin-record-card dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--lf-text); font-size: 12px; }
  .admin-record-card .row-actions { padding-top: 10px; border-top: 1px solid var(--lf-border-soft); }
  .app-dialog, .admin-form-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - var(--lf-safe-top) - 16px); border-radius: var(--lf-radius-md) var(--lf-radius-md) 0 0; margin: auto auto 0; }
  .form-grid.two-col, .password-pair { grid-template-columns: 1fr; }
  .form-grid .span-2, .password-pair .field-help { grid-column: 1; }
  .dialog-actions { align-items: stretch; flex-direction: column-reverse; }
  .dialog-actions > * { width: 100%; }
  .product-editor-layout { display: block; }
  .product-section-nav { position: static; display: flex; gap: 2px; margin-bottom: 10px; overflow-x: auto; }
  .product-section-nav a { flex: 0 0 auto; border-left: 0; border-bottom: 3px solid transparent; }
  .product-section-nav a:hover, .product-section-nav a:focus { border-left-color: transparent; border-bottom-color: var(--lf-green-800); }
  .product-editor-section { padding: 18px 14px; }
  .section-heading { flex-wrap: wrap; }
  .section-heading > button { width: 100%; }
  .image-editor-grid { grid-template-columns: 1fr; }
  .desc-row { grid-template-columns: 36px minmax(0, 1fr); }
  .desc-emphasis { grid-column: 2; }
  .desc-actions { grid-column: 2; justify-content: flex-end; }
  .pi-master-panel-heading { align-items: stretch; flex-direction: column; }
  .pi-master-panel-heading > button { width: 100%; }
}

@media (max-width: 480px) {
  .admin-metric-grid { grid-template-columns: 1fr; }
  .header-action-group { align-items: stretch; flex-direction: column; width: 100%; }
  .header-action-group > * { width: 100%; }
  .admin-section-nav { margin-inline: -4px; }
  .admin-activity-list > div, .product-audit-list > article { grid-template-columns: 30px minmax(0, 1fr); }
  .admin-activity-list time, .product-audit-list time { grid-column: 2; }
  .pagination-bar { align-items: flex-start; flex-direction: column; }
  .pagination-bar > div { width: 100%; justify-content: space-between; }
  .product-identity { min-width: 0; }
}
