.site-switcher { position: relative; font-size: 13px; margin-top: 6px; }
.catalog-management-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; padding: 18px; border-bottom: 1px solid #dfe4eb; }
.catalog-management-filters .field { flex: 1 1 200px; margin: 0; }
.catalog-management-filters label { display: block; font-size: 12px; font-weight: 700; }
.catalog-management-scroll { max-height: 72vh; }
.catalog-management-table { min-width: 1350px; }
.catalog-management-table thead th { position: sticky; top: 0; z-index: 1; }
.catalog-management-photo { display: block; width: 76px; height: 72px; object-fit: contain; background: #fff; }
.catalog-management-description { min-width: 210px; max-width: 340px; line-height: 1.5; }
.catalog-category-label { display: block; margin: 3px 0; font-size: 11px; }
.catalog-management .pagination { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding: 18px; }
.catalog-management .sheet-heading p { font-size: 12px; margin-bottom: 0; }
.site-switcher summary { cursor: pointer; }
.site-switcher ul { position: absolute; z-index: 20; min-width: 220px; list-style: none; margin: 6px 0 0; padding: 8px; background: #fff; border: 1px solid #dfe4eb; box-shadow: 0 8px 24px #101d3520; }
.site-switcher a { display: block; padding: 8px; color: var(--navy); }
.site-switcher a[aria-current] { font-weight: 700; background: #f3f5f8; }
.brand-logo strong { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.feature-badge { display: block; margin-top: 3px; color: #ffbb85; font-size: 10px; line-height: 1.35; }
:root {
  color-scheme: light;
  --navy: #101d35;
  --deep: #0a172b;
  --blue: #203e76;
  --orange: #f47722;
  --text: #17263d;
  --muted: #6b7482;
  --line: #e1e6ee;
  --paper: #f3f5f8;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.55; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #b94a05; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #f47722; outline-offset: 3px; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar { background: var(--deep); padding: 28px 17px; color: #fff; }
.brand { display: block; margin: 0 7px 30px; }
.brand-logo, .login-logo { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 4px; overflow: hidden; }
.brand-logo { width: 148px; height: 68px; }
.brand-logo img, .login-logo img { max-width: 90%; max-height: 90%; object-fit: contain; }
.brand-caption { display: block; padding-top: 15px; color: #a4b1c3; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.brand-caption b { color: var(--orange); margin-left: 5px; }
.sidebar nav { display: grid; gap: 3px; }
.nav-label { color: #718198; font-size: 9px; letter-spacing: .15em; font-weight: 800; margin: 20px 11px 6px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; color: #c3cedb; min-height: 42px; padding: 9px 11px; border-left: 3px solid transparent; border-radius: 3px; font-size: 13px; font-weight: 600; }
.sidebar nav a:hover, .sidebar nav a.active { background: #1c304f; color: #fff; }
.sidebar nav a.active { border-left-color: var(--orange); }
.nav-group > summary { cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 9px 14px; color: #c3cedb; font-size: 13px; font-weight: 600; list-style: none; }
.nav-group > summary::after { content: "+"; margin-left: auto; }
.nav-group[open] > summary::after { content: "-"; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary:hover, .nav-group[open] > summary { color: #fff; background: #1c304f; }
.sidebar nav .nav-submenu a { padding-left: 27px; font-size: 12px; }
.sidebar nav a.nav-sub { padding-left: 27px; font-size: 12px; }
.nav-icon { display: inline-grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; border: 1px solid #455775; border-radius: 3px; color: #f68a3d; font-size: 9px; font-weight: 800; }
.workspace { min-width: 0; }
.topbar { min-height: 82px; padding: 15px clamp(22px, 4vw, 48px); background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar-kicker { display: block; color: #8d98a8; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.topbar > div:first-child > strong { color: var(--navy); font-size: 16px; }
.topbar > div:first-child > strong span, .accent { color: var(--orange); }
.account { display: flex; align-items: center; gap: 11px; }
.account-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #eaf0f8; color: var(--blue); font-weight: 800; }
.account strong, .account small { display: block; line-height: 1.35; }
.account strong { font-size: 12px; overflow-wrap: anywhere; }
.account small { font-size: 10px; color: var(--muted); }
.logout { background: transparent; color: var(--blue); border: 1px solid #d5deea; border-radius: 3px; padding: 7px 11px; cursor: pointer; font-size: 12px; font-weight: 700; margin-left: 8px; }
.logout:hover { border-color: var(--orange); color: #b94a05; }
.main { padding: clamp(26px, 4vw, 48px); min-width: 0; max-width: 1700px; }
.eyebrow, .section-overline { display: block; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { margin: 0 0 12px; }
h1, h2 { color: var(--text); line-height: 1.18; letter-spacing: -.035em; }
h1 { font-size: clamp(27px, 3vw, 40px); margin: 0 0 10px; }
h2 { font-size: 18px; margin: 5px 0 0; }
.page-intro, .main > p:not(.eyebrow) { color: var(--muted); margin: 0 0 24px; max-width: 900px; }
.page-heading, .section-heading, .sheet-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.page-heading { margin-bottom: 26px; flex-wrap: wrap; }
.page-heading .page-intro { margin-bottom: 0; }
.section-heading { margin-top: 35px; }
.section-note { color: #8b97a5; font-size: 11px; font-weight: 600; white-space: nowrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-top: 16px; }
.card { min-height: 142px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue); padding: 18px 20px; color: var(--text); display: flex; flex-direction: column; }
.card:hover { border-top-color: var(--orange); color: var(--text); box-shadow: 0 8px 25px #101d350c; }
.card > span { display: flex; justify-content: space-between; color: #69798f; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.card > span b { color: var(--orange); font-size: 16px; }
.card strong { font-size: 31px; line-height: 1; margin: 16px 0 9px; }
.card small, .field small { color: var(--muted); }
.panel, .sheet, .login-card { background: #fff; border: 1px solid var(--line); box-shadow: 0 5px 22px #10223c08; }
.panel { margin-top: 20px; padding: 24px; }
.dashboard-guide { display: grid; grid-template-columns: minmax(0, 1fr) 1.4fr; gap: 36px; margin-top: 32px; border-left: 3px solid var(--orange); }
.dashboard-guide p { color: var(--muted); max-width: 400px; margin-bottom: 0; }
.quick-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.quick-links a { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 12px 0; font-weight: 700; font-size: 12px; }
.quick-links a span { color: var(--orange); }
.toolbar { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.button, button[type=submit] { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding: 9px 15px; border: 1px solid var(--orange); border-radius: 3px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.button span { font-size: 16px; line-height: 1; }
.button:hover, button[type=submit]:hover { background: #d65d0d; border-color: #d65d0d; color: #fff; }
.button-secondary { background: #fff; border-color: #d4ddea; color: var(--blue); }
.button-secondary:hover { color: var(--blue); background: #edf2f8; border-color: #b7c5d8; }
button.logout { min-height: 0; background: transparent; color: var(--blue); border-color: #d5deea; }
button.logout:hover { background: #fff4eb; color: #ad4b0d; border-color: var(--orange); }
.sheet { margin-top: 20px; }
.sheet-heading { padding: 19px 22px; border-bottom: 1px solid var(--line); }
.table-scroll { overflow-x: auto; max-width: 100%; scrollbar-width: thin; scrollbar-color: #b7c5d5 #edf1f6; }
.table-scroll::-webkit-scrollbar, .sidebar nav::-webkit-scrollbar { height: 6px; }
.table-scroll::-webkit-scrollbar-thumb { background: #b7c5d5; border-radius: 6px; }
.sidebar nav::-webkit-scrollbar-thumb { background: #596c86; border-radius: 6px; }
.sidebar nav::-webkit-scrollbar-track { background: #162743; }
.data-table { width: 100%; min-width: 720px; border-collapse: collapse; table-layout: auto; font-size: 12px; text-align: left; }
.data-table thead th { background: #edf1f6; color: #64748b; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.data-table th, .data-table td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 12px 14px; vertical-align: middle; text-align: left; }
.data-table th:last-child, .data-table td:last-child { border-right: 0; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tbody th { max-width: 300px; font-weight: 700; overflow-wrap: anywhere; }
.data-table tbody td { color: #4d5b6d; max-width: 300px; overflow-wrap: anywhere; }
.data-table tbody tr:nth-child(even) > * { background: #f9fafc; }
.data-table tbody tr:hover > * { background: #f0f4f9; }
.data-table .row-number { width: 52px; color: #94a0af; background: #f7f9fb; font-variant-numeric: tabular-nums; }
.data-table .empty-state { color: #8995a4; text-align: center; padding: 30px 18px; }
.table-action, button.table-button[type=submit] { color: var(--blue); font-size: 12px; font-weight: 800; white-space: nowrap; }
.table-action span { color: var(--orange); margin-left: 3px; }
.table-action:hover { color: #b94a05; }
button.table-button[type=submit] { min-height: 0; padding: 0; border: 0; background: none; }
button.table-button[type=submit]:hover { color: #b94a05; background: none; }
.status { display: inline-block; padding: 4px 8px; border-radius: 3px; background: #edf1f5; color: #64748a; font-size: 10px; font-weight: 800; white-space: nowrap; }
.status-active { color: #17664e; background: #e4f2ec; }
.status-pending { color: #9c4c0a; background: #fff0e3; }
.muted { color: #9ba6b3; }
.newsletter-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: #fff; padding: 20px 22px; border: 1px solid var(--line); border-left: 3px solid var(--orange); }
.newsletter-bar strong { display: inline-block; font-size: 26px; line-height: 1; margin: 8px 8px 0 0; }
.newsletter-bar small { color: var(--muted); }
.editor { max-width: 820px; }
.form-heading { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 20px; }
.field, .editor > p { margin: 0 0 20px; }
.field label, .editor label, .login-card label { display: block; color: #34445a; font-size: 12px; font-weight: 800; margin-bottom: 6px; }
.field small, .editor .helptext { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }
input:not([type=checkbox]):not([type=hidden]), textarea, select { width: 100%; max-width: 100%; padding: 10px 12px; background: #fff; color: var(--text); border: 1px solid #cfd8e3; border-radius: 3px; }
input[type=checkbox] { width: auto; accent-color: var(--blue); }
.catalog-switch { display: inline-flex; align-items: center; gap: .65rem; cursor: pointer; }
.catalog-switch input { appearance: none; flex: none; width: 2.75rem; height: 1.5rem; border: 1px solid #596a7d; border-radius: 1rem; background: #596a7d; margin: 0; cursor: pointer; }
.catalog-switch input::before { content: ""; display: block; width: 1rem; height: 1rem; margin: .1875rem; background: #fff; border-radius: 50%; }
.catalog-switch input:checked { background: var(--blue); border-color: var(--blue); }
.catalog-switch input:checked::before { transform: translateX(1.25rem); }
@media (forced-colors: active) { .catalog-switch input { appearance: auto; } .catalog-switch input::before { content: none; } }
textarea { resize: vertical; }
.errorlist { color: #a52e20; font-size: 12px; padding-left: 20px; }
.message { background: #e8f4ec; border-left: 3px solid #348a5c; padding: 12px 15px; margin-bottom: 20px; color: #1c563a; }
.message.error { background: #fff0ec; border-color: #bd4f35; color: #8b2f1e; }
.text-action { display: inline-block; font-weight: 700; margin-bottom: 4px; }
.login-page { display: grid; place-items: center; min-height: 100vh; padding: 28px; background: linear-gradient(145deg, #0a172b 0%, #172e52 58%, #203e76 100%); }
.login-card { width: min(100%, 460px); padding: clamp(28px, 5vw, 44px); border-top: 4px solid var(--orange); }
.login-logo { justify-content: flex-start; width: 155px; height: 75px; margin-bottom: 25px; }
.login-heading { border-top: 1px solid var(--line); padding-top: 24px; }
.login-heading h1 { font-size: 30px; }
.login-heading > p:last-child { color: var(--muted); margin: 0 0 24px; }
.login-card form p { margin: 0 0 16px; }
.login-card form button { width: 100%; margin-top: 5px; }
@media (max-width: 900px) {
  .shell { display: block; }
  .sidebar { padding: 14px 18px 10px; }
  .brand { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; }
  .brand-logo { width: 110px; height: 48px; }
  .brand-caption { padding: 0; }
  .sidebar nav { display: flex; align-items: flex-start; overflow-x: auto; padding-bottom: 5px; }
  .nav-group { flex: 0 0 auto; }
  .nav-group > summary { white-space: nowrap; }
  .nav-group > summary::after { margin-left: 12px; }
  .nav-submenu { display: flex; }
  .sidebar nav .nav-submenu a { padding-left: 11px; }
  .sidebar nav a { white-space: nowrap; flex: 0 0 auto; border-left: 0; border-bottom: 3px solid transparent; }
  .sidebar nav a.active { border-left: 0; border-bottom-color: var(--orange); }
  .nav-label { display: none; }
}
@media (max-width: 600px) {
  .topbar { min-height: 70px; padding: 12px 18px; }
  .account-avatar, .account small { display: none; }
  .account { gap: 5px; }
  .main { padding: 25px 18px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .card { min-height: 120px; padding: 14px; }
  .card > span { font-size: 9px; }
  .dashboard-guide { grid-template-columns: 1fr; gap: 15px; }
  .quick-links { grid-template-columns: 1fr; }
  .sheet-heading { padding: 16px; }
  .panel { padding: 18px; }
  .newsletter-bar { align-items: flex-start; }
}
