:root {
    color-scheme: dark;
    --font-sans: 'Segoe UI', Arial, sans-serif;
    --bg: #020304;
    --panel: rgba(12, 14, 16, 0.82);
    --panel-strong: rgba(8, 10, 12, 0.94);
    --line: rgba(198, 203, 210, 0.09);
    --line-strong: rgba(214, 219, 226, 0.18);
    --text: #f2f4f7;
    --muted: #b6bcc5;
    --gold: #c5cbd3;
    --gold-soft: rgba(197, 203, 211, 0.16);
    --green: #48be9b;
    --red: #d46a6a;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --page-gutter: clamp(24px, 4vw, 48px);
    --container: min(1180px, calc(100vw - var(--page-gutter)));
    --page-background:
        radial-gradient(circle at 18% 10%, rgba(214, 219, 226, 0.16), transparent 30%),
        radial-gradient(circle at 84% 0%, rgba(255, 255, 255, 0.08), transparent 32%),
        linear-gradient(160deg, #000000 0%, #090b0d 38%, #181b1f 100%);
    --ambient-background: radial-gradient(circle, rgba(206, 211, 218, 0.18), transparent 65%);
    --texture-pattern:
        linear-gradient(rgba(208, 214, 221, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(208, 214, 221, 0.025) 1px, transparent 1px);
    --texture-mask: radial-gradient(circle at center, rgba(239, 242, 246, 0.36), transparent 78%);
    --brand-mark-background: linear-gradient(145deg, rgba(232, 236, 241, 0.18), rgba(255, 255, 255, 0.04));
    --brand-mark-border: rgba(214, 219, 226, 0.18);
    --brand-mark-shadow: 0 0 32px rgba(199, 204, 211, 0.16);
    --surface-soft: rgba(247, 249, 252, 0.08);
    --surface-muted: rgba(241, 244, 248, 0.05);
    --surface-panel: linear-gradient(180deg, rgba(245, 247, 250, 0.08), rgba(197, 203, 211, 0.03));
    --border-soft: rgba(202, 207, 214, 0.09);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-strong: rgba(220, 225, 231, 0.12);
    --focus-ring: 0 0 0 4px rgba(205, 210, 217, 0.16);
    --primary-background: linear-gradient(140deg, #eef2f5 0%, #8f98a2 100%);
    --primary-text: #06080a;
    --primary-shadow: 0 16px 34px rgba(151, 159, 169, 0.24);
    --tag-background: rgba(210, 215, 221, 0.1);
    --tag-border: rgba(214, 219, 226, 0.12);
    --tag-text: #f2f4f7;
    --info-pill-background: rgba(244, 247, 250, 0.06);
    --icon-background: rgba(214, 219, 226, 0.12);
    --icon-border: rgba(214, 219, 226, 0.12);
    --icon-shadow: 0 0 30px rgba(199, 204, 211, 0.14);
    --field-label: #e4e8ec;
    --success-border: rgba(70, 216, 162, 0.25);
    --success-background: rgba(70, 216, 162, 0.08);
    --error-border: rgba(255, 134, 125, 0.25);
    --error-background: rgba(255, 134, 125, 0.08);
    --footer-link: #f2f4f7;
    --nav-active-background: rgba(214, 219, 226, 0.1);
    --flash-shadow: 0 0 32px rgba(211, 216, 223, 0.16);
    --flash-text: #edf1f6;
    --theme-indicator-background: linear-gradient(140deg, #f1f4f7 0%, #929ba5 100%);
    --theme-indicator-shadow: 0 0 18px rgba(192, 199, 207, 0.22);
    --select-hover-background: rgba(214, 219, 226, 0.08);
    --select-inner-shadow: rgba(255, 255, 255, 0.05);
    --select-arrow-color: #d6dde4;
    --select-divider: rgba(214, 219, 226, 0.14);
    --brand-ink: #eef2f5;
    --icon-ink: #e8edf2;
    --accent-sheen-start: rgba(218, 223, 229, 0.18);
    --accent-sheen-end: rgba(255, 255, 255, 0.04);
    --ticker-fill: linear-gradient(90deg, #f0f3f6 0%, rgba(136, 145, 156, 0.92) 100%);
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #edf0f3;
    --panel: rgba(248, 250, 252, 0.92);
    --panel-strong: rgba(240, 243, 246, 0.97);
    --line: rgba(47, 52, 58, 0.08);
    --line-strong: rgba(23, 27, 32, 0.14);
    --text: #090b0e;
    --muted: #5a616a;
    --gold-soft: rgba(48, 54, 61, 0.08);
    --shadow: 0 24px 64px rgba(26, 31, 37, 0.12);
    --page-background:
        radial-gradient(circle at 15% 10%, rgba(84, 91, 100, 0.12), transparent 28%),
        radial-gradient(circle at 85% 0%, rgba(189, 196, 204, 0.22), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #eef1f4 46%, #d9dee4 100%);
    --ambient-background: radial-gradient(circle, rgba(86, 94, 103, 0.1), transparent 65%);
    --texture-pattern:
        linear-gradient(rgba(60, 66, 73, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(60, 66, 73, 0.035) 1px, transparent 1px);
    --texture-mask: radial-gradient(circle at center, rgba(78, 84, 92, 0.16), transparent 78%);
    --brand-mark-background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(215, 221, 228, 0.9));
    --brand-mark-border: rgba(56, 61, 68, 0.12);
    --brand-mark-shadow: 0 0 24px rgba(82, 89, 98, 0.12);
    --surface-soft: rgba(255, 255, 255, 0.86);
    --surface-muted: rgba(243, 246, 249, 0.72);
    --surface-panel: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(225, 230, 236, 0.84));
    --border-soft: rgba(73, 79, 88, 0.08);
    --border-subtle: rgba(73, 79, 88, 0.045);
    --border-strong: rgba(23, 27, 32, 0.11);
    --focus-ring: 0 0 0 4px rgba(56, 62, 69, 0.1);
    --primary-background: linear-gradient(140deg, #050607 0%, #40464f 100%);
    --primary-text: #f2f4f7;
    --primary-shadow: 0 14px 30px rgba(28, 33, 39, 0.18);
    --tag-background: rgba(46, 52, 59, 0.06);
    --tag-border: rgba(56, 61, 68, 0.1);
    --tag-text: #090b0e;
    --info-pill-background: rgba(255, 255, 255, 0.76);
    --icon-background: rgba(50, 56, 63, 0.07);
    --icon-border: rgba(56, 61, 68, 0.1);
    --icon-shadow: 0 0 22px rgba(82, 89, 98, 0.1);
    --field-label: #2e3339;
    --success-border: rgba(73, 150, 109, 0.25);
    --success-background: rgba(73, 150, 109, 0.09);
    --error-border: rgba(191, 97, 84, 0.22);
    --error-background: rgba(191, 97, 84, 0.08);
    --footer-link: #121519;
    --nav-active-background: rgba(46, 52, 59, 0.08);
    --flash-shadow: 0 0 26px rgba(72, 79, 87, 0.16);
    --flash-text: #2f353d;
    --theme-indicator-background: linear-gradient(140deg, #111418 0%, #606872 100%);
    --theme-indicator-shadow: 0 0 12px rgba(62, 68, 76, 0.16);
    --select-hover-background: rgba(240, 243, 246, 0.98);
    --select-inner-shadow: rgba(255, 255, 255, 0.46);
    --select-arrow-color: #353b43;
    --select-divider: rgba(47, 52, 58, 0.12);
    --brand-ink: #171b20;
    --icon-ink: #171b20;
    --accent-sheen-start: rgba(50, 56, 63, 0.08);
    --accent-sheen-end: rgba(111, 120, 130, 0.04);
    --ticker-fill: linear-gradient(90deg, #101317 0%, rgba(87, 94, 103, 0.82) 100%);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--page-background);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
    min-width: 0;
}

svg {
    display: block;
    max-width: 100%;
}

:where(
    .container,
    .page-content,
    .admin-shell,
    .admin-main,
    .topbar__inner,
    .topbar__actions,
    .admin-topbar,
    .admin-topbar__actions,
    .site-footer__inner,
    .hero,
    .hero__content,
    .hero__panel,
    .market-board,
    .market-board__intro,
    .panel-header,
    .product-card__header,
    .product-admin-card__header,
    .product-cards,
    .product-admin-grid,
    .source-grid,
    .icon-gallery,
    .admin-grid,
    .raw-grid,
    .form-grid,
    .list-stack,
    .glass-panel,
    .auth-card,
    .catalog-shell,
    .table-wrapper
) {
    min-width: 0;
}

:where(
    .topbar__inner > *,
    .topbar__actions > *,
    .admin-topbar > *,
    .admin-topbar__actions > *,
    .site-footer__inner > *,
    .hero > *,
    .market-board__intro > *,
    .panel-header > *,
    .product-card__header > *,
    .product-admin-card__header > *,
    .product-cards > *,
    .product-admin-grid > *,
    .source-grid > *,
    .icon-gallery > *,
    .admin-grid > *,
    .raw-grid > *
) {
    min-width: 0;
}

:where(
    .brand__title,
    .brand__tag,
    .admin-user__name,
    .admin-user__role,
    .panel-header p,
    .muted-copy,
    .log-line p,
    .table td,
    .table th,
    .product-card__title,
    .product-card__code,
    .hero__title,
    .hero__subtitle
) {
    overflow-wrap: anywhere;
}

.shell {
    position: relative;
    min-height: 100vh;
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
    padding-bottom: max(0px, env(safe-area-inset-bottom));
}

.ambient {
    position: fixed;
    inset: auto;
    width: 28rem;
    height: 28rem;
    border-radius: 999px;
    background: var(--ambient-background);
    filter: blur(18px);
    pointer-events: none;
    z-index: 0;
}

.ambient--left {
    top: -6rem;
    left: -10rem;
}

.ambient--right {
    right: -8rem;
    bottom: 0;
}

.texture {
    position: fixed;
    inset: 0;
    background-image: var(--texture-pattern);
    background-size: 84px 84px;
    mask-image: var(--texture-mask);
    pointer-events: none;
    opacity: 0.65;
    z-index: 0;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.page-content,
.admin-shell {
    position: relative;
    z-index: 1;
}

.topbar {
    padding: 20px 0 0;
}

.topbar__inner,
.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.topbar__actions,
.admin-topbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topbar-clock {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background:
        linear-gradient(180deg, var(--accent-sheen-start), var(--accent-sheen-end)),
        var(--surface-soft);
    box-shadow: inset 0 1px 0 var(--select-inner-shadow);
    white-space: nowrap;
}

.topbar-clock__label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.topbar-clock__value {
    font-variant-numeric: tabular-nums;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.inline-form {
    margin: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
    flex: 1 1 280px;
}

.brand--wordmark {
    flex: 0 1 auto;
}

.brand__mark {
    width: auto;
    height: auto;
    border-radius: 0;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    flex: 0 0 auto;
}

.brand__svg {
    width: 0;
    height: 0px;
}

.brand__image {
    width: min(72px);
    max-width: none;
    height: auto;
    object-fit: contain;
}

.brand__wordmark-shell {
    display: block;
    width: clamp(220px, 28vw, 340px);
}

.brand__wordmark-image {
    width: 50%;
    height: auto;
    display: block;
    z-index: 2;
}

.brand__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.brand--wordmark .brand__copy {
    display: none;
}

.brand__title {
    font-family: var(--font-sans);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0;
}

.brand__tag {
    color: var(--muted);
    font-size: 0.9rem;
    letter-spacing: 0;
    text-transform: none;
}

.language-switcher {
    display: block;
    flex: 0 1 160px;
    max-width: 100%;
}

.language-switcher__select,
.field__control {
    appearance: none;
    width: 100%;
    border: 1px solid var(--border-strong);
    background: var(--surface-soft);
    color: var(--text);
    border-radius: 14px;
    padding: 14px 16px;
    outline: none;
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.language-switcher__select {
    min-width: 136px;
    padding-right: 54px;
}

.field__control:focus,
.language-switcher__select:focus {
    border-color: var(--line-strong);
    box-shadow: var(--focus-ring);
    transform: translateY(-1px);
}

.field__control--select,
.language-switcher__select {
    cursor: pointer;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--select-arrow-color) 50%),
        linear-gradient(135deg, var(--select-arrow-color) 50%, transparent 50%),
        linear-gradient(var(--select-divider), var(--select-divider));
    background-position:
        calc(100% - 23px) calc(50% - 2px),
        calc(100% - 17px) calc(50% - 2px),
        calc(100% - 42px) 50%;
    background-size: 6px 6px, 6px 6px, 1px 22px;
    background-repeat: no-repeat;
    box-shadow: inset 0 1px 0 var(--select-inner-shadow);
}

.field__control--select {
    padding-right: 54px;
}

.field__control--select:hover,
.language-switcher__select:hover {
    background-color: var(--select-hover-background);
    border-color: var(--line-strong);
}

.field__control--select:focus,
.language-switcher__select:focus {
    background-color: var(--select-hover-background);
    box-shadow: inset 0 1px 0 var(--select-inner-shadow), var(--focus-ring);
}

.field__control--select option,
.language-switcher__select option {
    background: var(--panel-strong);
    color: var(--text);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 600;
    letter-spacing: 0;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
    min-height: 46px;
    max-width: 100%;
}

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    background: var(--primary-background);
    color: var(--primary-text);
    box-shadow: var(--primary-shadow);
}

.button--ghost {
    background: var(--surface-muted);
    color: var(--text);
    border-color: var(--border-soft);
}

.button--full {
    width: 100%;
}

.button--large {
    padding: 16px 24px;
}

.button--small {
    min-height: 42px;
    padding: 10px 14px;
}

.glass-panel {
    background: var(--surface-panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.hero {
    display: grid;
    gap: 28px;
    align-items: center;
}

.hero--welcome {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: calc(100vh - 150px);
    padding: 44px 0 72px;
}

.hero--compact {
    padding: 26px 0 8px;
}

.hero__title {
    margin: 0 0 14px;
    font-family: var(--font-sans);
    font-size: clamp(2rem, 4.8vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
    max-width: 10ch;
}

.hero__title--compact {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    max-width: none;
}

.hero__subtitle {
    margin: 0;
    max-width: 52ch;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero__subtitle--compact {
    max-width: 62ch;
}

.hero__badge,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--tag-border);
    background: var(--tag-background);
    color: var(--tag-text);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.hero__actions,
.toggle-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero__actions > *,
.toggle-row > * {
    min-width: 0;
}

.feature-grid,
.stats-grid,
.raw-grid,
.product-cards,
.product-admin-grid,
.admin-grid,
.source-grid,
.icon-gallery {
    display: grid;
    gap: 18px;
}

.feature-grid {
    padding: 26px;
}

.feature-card,
.stat-card,
.assign-card,
.icon-gallery__card {
    background: var(--surface-muted);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 22px;
}

.feature-card h2,
.panel-header h2,
.panel-header h3,
.section-heading h2,
.stat-card strong,
.product-admin-card__header h3 {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.35rem;
    font-weight: 600;
}

.feature-card p,
.panel-header p,
.muted-copy,
.log-line p,
.log-line time {
    color: var(--muted);
}

.feature-card p {
    margin: 10px 0 0;
    line-height: 1.7;
}

.section-stack {
    display: grid;
    gap: 24px;
    padding: 24px 0 64px;
}

.info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.info-pill {
    padding: 16px 18px;
    min-width: 180px;
    flex: 1 1 180px;
    border-radius: 12px;
    background: var(--info-pill-background);
    border: 1px solid var(--border-soft);
}

.info-pill > strong {
    display: block;
    margin-top: 10px;
    font-size: 1.02rem;
    line-height: 1.5;
}

.info-pill__value {
    display: block;
    margin-top: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

.info-pill--ticker {
    display: grid;
    gap: 12px;
}

.info-pill--action {
    display: grid;
    gap: 12px;
    align-content: start;
}

.info-pill__hint {
    display: block;
    min-height: 1.25rem;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.info-pill__hint.is-success {
    color: var(--green);
}

.info-pill__hint.is-error {
    color: var(--red);
}

.refresh-ticker {
    display: block;
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-muted);
    border: 1px solid var(--border-subtle);
}

.refresh-ticker__bar {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 180ms linear;
    background: var(--ticker-fill);
}

[data-manual-refresh][aria-busy="true"] {
    cursor: progress;
    opacity: 0.88;
}

.info-pill__label,
.raw-card__label,
.price-line span,
.stat-card span,
.product-card__code,
.admin-user__role {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    letter-spacing: 0;
    text-transform: none;
}

.raw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.raw-card {
    padding: 28px;
}

.raw-card__value {
    display: block;
    margin-top: 14px;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0;
}

.product-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
    padding: 22px;
}

.product-visual {
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    min-width: 0;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.1), transparent 52%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.product-visual::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    pointer-events: none;
}

.product-visual__image,
.product-visual__placeholder {
    position: relative;
    z-index: 1;
}

.product-visual__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
}

.product-visual__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 24px;
}

.product-visual__icon {
    width: 74px;
    height: 74px;
}

.product-card__media {
    min-height: 192px;
    margin-bottom: 18px;
}

.product-card__header,
.product-admin-card__header,
.panel-header,
.panel-header--compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.product-card__header {
    align-items: flex-start;
}

.product-card__title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.3rem;
    font-weight: 800;
}

.product-card__prices {
    margin-top: 20px;
    display: grid;
    gap: 14px;
}

.price-line {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: baseline;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
}

.price-line strong {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-inline-start: auto;
    text-align: right;
}

.price-line--buy span,
.price-line--buy strong {
    color: var(--red);
}

.price-line--sell span,
.price-line--sell strong {
    color: var(--green);
}

.icon-shell {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--icon-background);
    border: 1px solid var(--icon-border);
    box-shadow: var(--icon-shadow);
    flex-shrink: 0;
}

.theme-toggle {
    min-width: 150px;
    justify-content: center;
}

.theme-toggle__indicator {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--theme-indicator-background);
    box-shadow: var(--theme-indicator-shadow);
    flex-shrink: 0;
}

.theme-toggle__label {
    white-space: nowrap;
}

.icon-shell__svg,
.icon-shell__image {
    width: 30px;
    height: 30px;
}

.icon-shell__svg svg {
    width: 100%;
    height: 100%;
}

.icon-shell__fallback {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: currentColor;
}

.auth-shell {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 170px);
    padding: 32px 0 64px;
}

.auth-card {
    width: min(100%, 560px);
    padding: 34px;
}

.auth-card__title {
    margin: 16px 0 8px;
    font-family: var(--font-sans);
    font-size: 1.8rem;
    font-weight: 600;
}

.auth-card__subtitle,
.auth-card__switch {
    color: var(--muted);
}

.form-grid {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.form-grid--two,
.admin-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
    display: grid;
    gap: 8px;
}

.field--textarea {
    grid-column: 1 / -1;
}

.field__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--field-label);
}

.field__control--textarea {
    min-height: 140px;
    resize: vertical;
}

.field__control--file {
    padding: 11px 16px;
}

.field__control--color {
    min-height: 52px;
    padding: 8px;
}

.field-error {
    margin: 0;
    color: var(--red);
    font-size: 0.88rem;
}

.status-banner {
    margin-top: 18px;
}

.status-banner .container,
.alert-card {
    padding: 14px 18px;
    border-radius: 10px;
    background: var(--surface-soft);
    border: 1px solid var(--border-soft);
}

.status-banner--success .container {
    border-color: var(--success-border);
    background: var(--success-background);
}

.status-banner--error .container,
.alert-card--error {
    border-color: var(--error-border);
    background: var(--error-background);
}

.site-footer {
    padding: 0 0 32px;
    position: relative;
    z-index: 1;
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted);
}

.footer-link {
    color: var(--footer-link);
}

.empty-state {
    padding: 30px;
    text-align: center;
}

.empty-state h2 {
    margin: 0 0 10px;
    font-family: var(--font-sans);
    font-size: 1.6rem;
    font-weight: 600;
}

.admin-shell {
    width: min(1440px, calc(100vw - 42px));
    margin: 22px auto 0;
    display: grid;
    grid-template-columns: minmax(248px, 280px) minmax(0, 1fr);
    gap: 26px;
    padding-bottom: 46px;
}

.shell--admin .glass-panel {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%),
        var(--surface-panel);
    border-color: var(--border-soft);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.shell--admin .glass-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 32%);
    pointer-events: none;
}

.shell--admin .glass-panel > * {
    position: relative;
    z-index: 1;
}

.admin-sidebar {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    position: sticky;
    top: 18px;
    height: calc(100vh - 36px);
    max-height: calc(100vh - 36px);
    overflow: auto;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%),
        var(--panel);
}

.admin-sidebar__brand,
.admin-sidebar__nav-shell {
    position: relative;
    z-index: 1;
}

.admin-sidebar__brand {
    display: grid;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-soft);
}

.admin-sidebar__eyebrow {
    width: auto;
    justify-self: flex-start;
}

.admin-sidebar__nav-shell {
    display: grid;
    gap: 14px;
}

.admin-sidebar__section {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-nav {
    display: grid;
    gap: 10px;
}

.admin-nav__item {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 14px 18px 14px 22px;
    border-radius: 14px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.admin-nav__item::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    width: 4px;
    height: 0;
    border-radius: 999px;
    background: var(--primary-background);
    transform: translateY(-50%);
    transition: height 180ms ease, opacity 180ms ease;
    opacity: 0.5;
}

.admin-nav__item:hover,
.admin-nav__item.is-active {
    background: var(--nav-active-background);
    color: var(--text);
    transform: translateX(0);
}

.admin-nav__item:hover::before,
.admin-nav__item.is-active::before {
    height: 28px;
    opacity: 1;
}

.admin-sidebar__footer {
    margin-top: auto;
    display: grid;
    gap: 12px;
    position: relative;
    z-index: 1;
    padding-top: 18px;
    border-top: 1px solid var(--border-soft);
}

.admin-main {
    display: grid;
    gap: 22px;
    align-content: start;
}

.admin-topbar {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.admin-topbar__heading,
.admin-topbar__headline {
    display: grid;
    gap: 8px;
}

.admin-topbar__title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(1.7rem, 2.8vw, 2.15rem);
    font-weight: 700;
}

.admin-topbar__subtitle {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.admin-topbar__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--border-subtle);
}

.shell--admin .field__control {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.shell--admin .field__control:hover {
    background: var(--surface-soft);
    border-color: var(--line-strong);
}

.admin-user {
    text-align: left;
    max-width: 100%;
}

.admin-user--panel {
    display: grid;
    gap: 4px;
    min-width: 184px;
    padding: 12px 16px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--border-subtle);
}

.panel-header {
    gap: 20px;
}

.panel-header p,
.muted-copy {
    margin: 6px 0 0;
    line-height: 1.7;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
    padding: 24px;
    display: grid;
    gap: 10px;
}

.stat-card strong {
    display: block;
    margin-top: 0;
    font-size: 1.7rem;
    font-weight: 700;
}

.stat-card small {
    color: var(--muted);
    line-height: 1.55;
}

.list-stack {
    display: grid;
    gap: 14px;
}

.log-line {
    padding: 16px 0;
    border-top: 1px solid var(--border-soft);
}

.log-line:first-child {
    border-top: 0;
    padding-top: 0;
}

.log-line strong {
    display: block;
    margin-bottom: 6px;
}

.product-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-admin-card {
    padding: 26px;
    display: grid;
    gap: 20px;
}

.product-admin-card__preview {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: 12px;
    background: var(--surface-muted);
    border: 1px solid var(--border-subtle);
}

.product-admin-card__media {
    min-height: 132px;
}

.product-admin-card__preview-copy {
    display: grid;
    gap: 8px;
}

.product-admin-card__preview-copy strong {
    font-size: 1rem;
    font-weight: 600;
}

.product-admin-card__preview-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.product-admin-card__icon {
    width: 52px;
    height: 52px;
}

.toggle,
.toggle-row {
    align-items: center;
}

.toggle {
    display: inline-flex;
    gap: 10px;
    color: var(--muted);
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--surface-soft);
    border: 1px solid var(--border-subtle);
}

.source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 22px;
    padding: 28px;
}

.admin-overview__intro {
    display: grid;
    gap: 20px;
}

.admin-overview__header {
    align-items: flex-start;
}

.admin-overview__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.admin-kpi {
    padding: 18px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--border-subtle);
}

.admin-kpi span,
.admin-overview__stamp span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.admin-kpi strong,
.admin-overview__stamp strong {
    display: block;
    margin-top: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
}

.admin-kpi__price {
    font-variant-numeric: tabular-nums;
}

.admin-overview__actions {
    display: grid;
    gap: 14px;
    align-content: start;
    justify-items: stretch;
}

.admin-overview__stamp {
    padding: 18px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--border-subtle);
}

.admin-panel {
    padding: 24px;
}

.source-card {
    padding: 24px;
    display: grid;
    gap: 20px;
}

.source-card__top {
    display: grid;
    gap: 14px;
}

.source-card__header {
    align-items: flex-start;
}

.source-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.status-chip,
.meta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--tag-border);
    background: var(--tag-background);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.status-chip--healthy {
    color: var(--green);
    border-color: var(--success-border);
    background: var(--success-background);
}

.status-chip--error {
    color: var(--red);
    border-color: var(--error-border);
    background: var(--error-background);
}

.status-chip--idle {
    color: var(--muted);
}

.icon-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.icon-gallery__card {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 10px;
}

.icon-gallery__preview {
    width: 72px;
    height: 72px;
}

.assign-card {
    display: grid;
    gap: 14px;
}

.assign-card h4 {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
}

.brand-preview {
    display: grid;
    gap: 16px;
    place-items: center;
    align-content: center;
    min-height: 300px;
}

.admin-sidebar .brand--wordmark,
.brand-preview .brand--wordmark {
    width: 100%;
    justify-content: center;
}

.admin-sidebar .brand__wordmark-shell {
    width: min(100%, 320px);
}

.brand-preview .brand__wordmark-shell {
    width: min(100%, 460px);
}

.table-wrapper {
    overflow: auto;
    max-width: 100%;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border-soft);
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.table th {
    color: var(--muted);
    font-size: 0.9rem;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02);
}

.alert-card h2 {
    margin: 0 0 12px;
    font-size: 1.15rem;
}

.alert-card__list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.page-stage {
    padding-top: 10px;
}

.topbar {
    padding-top: 24px;
}

.topbar__inner {
    padding: 16px 20px;
    background: var(--panel);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2), 0 0 0 1px var(--border-subtle);
    backdrop-filter: blur(10px);
}

.brand {
    gap: 18px;
}

.brand__mark {
    width: auto;
    height: auto;
    border-radius: 0;
}

.brand__copy {
    gap: 4px;
}

.brand__title {
    font-size: 1.28rem;
}

.brand__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.brand__tag::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--tag-border);
    opacity: 0.9;
}

.button {
    border-radius: 14px;
    padding: 12px 18px;
}

.button--large {
    padding: 14px 22px;
}

.glass-panel {
    backdrop-filter: blur(10px);
}

.hero--welcome {
    gap: 42px;
    align-items: stretch;
    min-height: auto;
    padding-top: 28px;
}

.hero__content--house {
    display: grid;
    align-content: center;
    gap: 20px;
    padding: 22px 0;
}

.hero__title {
    max-width: 11ch;
    font-size: clamp(2.5rem, 4.6vw, 4rem);
    line-height: 1.06;
}

.hero__subtitle {
    max-width: 56ch;
}

.hero__panel.house-panel {
    position: relative;
    overflow: hidden;
    padding: 30px;
}

.hero__panel.house-panel::before,
.market-board::before,
.catalog-shell::before,
.auth-card::before,
.admin-sidebar::before,
.stat-card::before,
.product-admin-card::before,
.source-grid > .glass-panel::before,
.brand-preview::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid var(--border-subtle);
    border-radius: calc(var(--radius-lg) - 8px);
    pointer-events: none;
}

.house-panel__intro {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    margin-bottom: 22px;
}

.house-panel__intro h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.section-overline {
    color: var(--muted);
    font-size: 0.88rem;
}

.feature-grid--stacked {
    gap: 14px;
    padding: 0;
    position: relative;
    z-index: 1;
}

.feature-grid--stacked .feature-card {
    position: relative;
    padding: 18px 18px 18px 72px;
    background: var(--surface-soft);
}

.feature-card__index {
    position: absolute;
    left: 18px;
    top: 18px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid var(--tag-border);
    color: var(--gold);
    background: var(--tag-background);
    font-size: 0.88rem;
    font-weight: 600;
}

.hero--compact {
    padding: 0;
}

.market-board {
    position: relative;
    overflow: hidden;
    padding: 28px;
    display: grid;
    gap: 24px;
}

.market-board__intro {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: end;
    gap: 22px;
    position: relative;
    z-index: 1;
}

.market-board__raw {
    position: relative;
    z-index: 1;
}

.info-pills {
    justify-content: end;
    align-content: start;
}

.info-pill {
    background: var(--surface-soft);
    min-width: 0;
}

.raw-card {
    position: relative;
    overflow: hidden;
    background: var(--surface-muted);
}

.raw-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    pointer-events: none;
}

.raw-card__label,
.raw-card__value {
    position: relative;
    z-index: 1;
}

.catalog-shell {
    position: relative;
    overflow: hidden;
    padding: 24px;
}

.section-heading--divided {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-soft);
}

.product-cards--ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 8px;
}

.product-card {
    position: relative;
    overflow: hidden;
    padding: 22px 22px 18px;
    background: var(--surface-soft);
    min-height: 100%;
}

.product-card--list {
    display: grid;
    gap: 22px;
}

.product-card--with-image {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    align-items: stretch;
}

.product-card__body {
    display: grid;
    gap: 18px;
    align-content: center;
}

.product-card::after {
    content: "";
    position: absolute;
    inset: auto -10% 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tag-border), transparent);
    opacity: 0.75;
}

.product-card__header {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-soft);
}

.product-card--list .product-card__header {
    padding-bottom: 0;
    border-bottom: 0;
}

.product-card__code {
    margin: 6px 0 0;
}

.product-card__prices {
    gap: 10px;
}

.product-card--list .product-card__prices {
    margin-top: 0;
}

.product-card--with-image .product-card__media {
    min-height: 220px;
    height: 100%;
    margin-bottom: 0;
}

.product-card--with-image .product-visual {
    min-height: 220px;
    height: 100%;
}

.price-line {
    padding-top: 14px;
}

.price-line strong {
    font-size: 1.38rem;
}

.auth-card {
    position: relative;
    overflow: hidden;
    background: var(--surface-panel);
    border: 1px solid var(--border-soft);
}

.site-footer__inner {
    padding-top: 14px;
    border-top: 1px solid var(--border-soft);
}

.admin-shell {
    gap: 26px;
    margin-top: 22px;
}

.admin-sidebar,
.product-admin-card,
.source-grid > .glass-panel,
.brand-preview {
    position: relative;
    overflow: hidden;
}

.admin-sidebar {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%),
        var(--panel);
}

.admin-topbar {
    padding: 18px 22px;
}

.admin-nav__item {
    border: 1px solid transparent;
}

.admin-nav__item:hover,
.admin-nav__item.is-active {
    background: var(--surface-soft);
    border-color: var(--tag-border);
    transform: none;
}

.stats-grid {
    gap: 20px;
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card > * {
    position: relative;
    z-index: 1;
}

.list-stack {
    gap: 12px;
}

.log-line {
    padding: 14px 0;
}

.table th,
.table td {
    padding: 16px 12px;
}

:root[data-theme="light"] .topbar__inner {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .brand__tag::before {
    opacity: 0.9;
}

:root[data-theme="light"] .product-card::after {
    opacity: 0.72;
}

.fade-slide {
    animation: fadeSlide 620ms ease both;
}

.fade-slide--delay {
    animation-delay: 120ms;
}

.is-flashing {
    animation: flashUpdate 900ms ease;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flashUpdate {
    0% {
        box-shadow: 0 0 0 transparent;
        color: var(--text);
    }
    35% {
        box-shadow: var(--flash-shadow);
        color: var(--flash-text);
    }
    100% {
        box-shadow: 0 0 0 transparent;
        color: var(--text);
    }
}

@media (min-width: 1600px) {
    :root {
        --container: min(1480px, calc(100vw - 72px));
    }

    .section-stack {
        gap: 30px;
        padding-bottom: 80px;
    }

    .topbar__inner,
    .market-board,
    .catalog-shell,
    .admin-topbar {
        padding: 24px 28px;
    }

    .market-board {
        gap: 30px;
    }

    .market-board__intro {
        grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
        gap: 26px;
    }

    .info-pills {
        gap: 18px;
    }

    .info-pill {
        min-height: 132px;
        padding: 18px 20px;
    }

    .info-pill > strong,
    .info-pill__value {
        font-size: 1.16rem;
    }

    .hero__title--compact {
        font-size: clamp(2.4rem, 3vw, 3.6rem);
    }

    .hero__subtitle--compact {
        font-size: 1.18rem;
        line-height: 1.8;
    }

    .raw-card {
        padding: 34px;
        min-height: 184px;
    }

    .raw-card__value {
        font-size: clamp(2.4rem, 3vw, 3.6rem);
    }

    .product-cards--ledger {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }

    .product-card {
        padding: 24px 24px 20px;
    }

    .price-line strong {
        font-size: 1.6rem;
    }

    .admin-shell {
        width: min(1680px, calc(100vw - 72px));
        grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
        gap: 30px;
    }

    .admin-sidebar {
        padding: 28px;
    }

    .admin-nav__item {
        min-height: 62px;
        font-size: 1.04rem;
    }

    .admin-topbar__title {
        font-size: clamp(2rem, 2.4vw, 2.5rem);
    }
}

@media (min-width: 2200px) {
    :root {
        --container: min(1760px, calc(100vw - 112px));
    }

    .product-cards--ledger {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .raw-card__value {
        font-size: clamp(2.8rem, 2.8vw, 4.2rem);
    }

    .price-line strong {
        font-size: 1.78rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .button,
    .theme-toggle,
    .language-switcher__select,
    .field__control,
    .topbar-clock,
    .admin-nav__item {
        min-height: 52px;
    }

    .button:hover,
    .admin-nav__item:hover {
        transform: none;
    }
}

@media (max-width: 1240px) {
    .hero--welcome {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-bottom: 56px;
    }

    .market-board__intro,
    .admin-grid--two,
    .product-admin-grid,
    .source-grid {
        grid-template-columns: 1fr;
    }

    .topbar__inner,
    .admin-topbar {
        align-items: flex-start;
    }

    .topbar__actions,
    .admin-topbar__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-user {
        text-align: left;
    }

    .info-pills {
        justify-content: flex-start;
    }

    .admin-overview {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1080px) {
    .hero--welcome,
    .product-cards,
    .stats-grid,
    .product-admin-grid,
    .source-grid,
    .product-cards--ledger {
        grid-template-columns: 1fr;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        max-height: none;
    }

    .admin-nav,
    .admin-sidebar__footer {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .info-pills {
        justify-content: flex-start;
    }

    .admin-overview__metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .market-board {
        padding: 24px;
    }

    .info-pills {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .form-grid--two {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-admin-card__preview {
        grid-template-columns: 1fr;
    }

    .admin-overview__metrics {
        grid-template-columns: 1fr;
    }

    .admin-topbar__actions {
        width: 100%;
        align-items: stretch;
    }

    .admin-toolbar {
        width: 100%;
        justify-content: space-between;
    }

    .admin-toolbar > .theme-toggle,
    .admin-toolbar > .language-switcher {
        flex: 1 1 180px;
    }
}

@media (max-width: 760px) {
    .container,
    .admin-shell {
        width: min(100vw - 28px, 100%);
    }

    .topbar__inner,
    .site-footer__inner,
    .panel-header,
    .admin-topbar,
    .admin-topbar__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar__actions,
    .admin-topbar__actions,
    .hero__actions,
    .toggle-row {
        width: 100%;
    }

    .topbar__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        align-items: stretch;
    }

    .topbar__actions > * {
        min-width: 0;
    }

    .topbar-clock,
    .language-switcher {
        grid-column: 1 / -1;
    }

    .raw-grid,
    .form-grid--two,
    .admin-grid--two,
    .icon-gallery {
        grid-template-columns: 1fr;
    }

    .button,
    .language-switcher,
    .language-switcher__select,
    .theme-toggle,
    .topbar-clock {
        width: 100%;
    }

    .topbar__actions .button,
    .topbar__actions .inline-form,
    .topbar__actions .inline-form .button {
        width: 100%;
        min-width: 0;
    }

    .theme-toggle {
        min-width: 0;
        justify-content: space-between;
    }

    .topbar-clock {
        justify-content: space-between;
    }

    .admin-topbar__actions,
    .admin-nav,
    .admin-sidebar__footer,
    .admin-toolbar,
    .info-pills {
        grid-template-columns: 1fr;
    }

    .admin-topbar__actions,
    .admin-toolbar,
    .info-pills {
        display: grid;
        gap: 12px;
    }

    .admin-toolbar {
        padding: 10px;
    }

    .hero__title {
        max-width: none;
    }

    .hero__title--compact {
        line-height: 1.08;
    }

    .hero__subtitle--compact {
        font-size: 1rem;
        line-height: 1.7;
    }

    .topbar__inner,
    .market-board,
    .catalog-shell,
    .hero__panel.house-panel,
    .auth-card,
    .admin-topbar,
    .admin-overview,
    .admin-sidebar,
    .product-admin-card,
    .source-grid > .glass-panel,
    .brand-preview {
        padding: 18px;
    }

    .feature-grid--stacked .feature-card {
        padding: 18px 16px 18px 64px;
    }

    .price-line {
        align-items: flex-start;
    }

    .product-card--with-image {
        grid-template-columns: 1fr;
    }

    .price-line strong {
        width: 100%;
        margin-inline-start: 0;
        text-align: left;
    }

    .info-pill,
    .toggle-row > * {
        width: 100%;
    }

    .info-pill {
        min-width: 0;
        padding: 15px 16px;
    }

    .info-pill > strong,
    .info-pill__value {
        font-size: 1.08rem;
    }

    .product-card__media {
        min-height: 164px;
    }

    .product-card__body {
        gap: 14px;
    }
}

@media (max-width: 620px) {
    .topbar {
        padding-top: 18px;
    }

    .brand {
        align-items: flex-start;
    }

    .brand__mark {
        width: auto;
        height: auto;
    }

    .brand__wordmark-shell {
        width: min(100%, 320px);
    }

    .brand__svg {
        width: 56px;
        height: 56px;
    }

    .brand__image {
        width: min(78px, 22vw);
        height: auto;
        max-height: 78px;
    }

    .topbar__actions {
        grid-template-columns: 1fr;
    }

    .raw-card,
    .product-card,
    .product-admin-card,
    .assign-card,
    .source-grid > .glass-panel,
    .icon-gallery__card {
        padding: 18px;
    }

    .raw-card__value,
    .price-line strong {
        font-size: clamp(1.1rem, 6vw, 1.65rem);
    }

    .product-card__title {
        font-size: 1.14rem;
    }

    .table--stacked thead {
        display: none;
    }

    .table--stacked,
    .table--stacked tbody,
    .table--stacked tr,
    .table--stacked td {
        display: block;
        width: 100%;
    }

    .table--stacked tbody {
        display: grid;
        gap: 14px;
    }

    .table--stacked tr {
        padding: 16px;
        border: 1px solid var(--border-soft);
        border-radius: 12px;
        background: var(--surface-soft);
    }

    .table--stacked td {
        display: grid;
        grid-template-columns: minmax(96px, 42%) minmax(0, 1fr);
        gap: 10px;
        padding: 6px 0;
        border-bottom: 0;
    }

    .table--stacked td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 0.86rem;
        font-weight: 600;
    }

    .table-wrapper {
        overflow: visible;
    }
}

/* About Section */
.about-section {
    padding: 60px 40px;
    border-radius: 16px;
}

.about-section__content {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.about-card {
    padding: 30px;
    background: var(--card-background);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.about-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.about-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    padding: 60px 40px;
    border-radius: 16px;
}

.contact-section__content {
    max-width: 900px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    padding: 30px;
    background: var(--card-background);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.contact-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.contact-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.contact-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-hover);
}

/* Welcome Hero with Background */
.welcome-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('/assets/img/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 40px 20px;
    overflow: hidden;
}

.welcome-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.welcome-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    color: white;
    animation: fadeInUp 0.8s ease-out;
}

.welcome-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.welcome-hero__subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

