:root {
    --bg: #f5f5f7;
    --surface: #ffffff;
    --surface-soft: #f8f8fb;
    --text: #17171c;
    --muted: #747480;
    --line: #e5e5ea;
    --accent: #6956e8;
    --accent-dark: #5542d6;
    --accent-soft: #eeeafd;
    --danger: #c84242;
    --shadow: 0 14px 38px rgba(23, 23, 28, .07);
    --radius: 16px;
    --sidebar: 238px;
    color-scheme: light;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img, video { max-width: 100%; }
[hidden] { display: none !important; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.brand-logo { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: var(--accent); border-radius: 10px; box-shadow: 0 8px 20px rgba(105, 86, 232, .28); }
.eyebrow { display: inline-block; margin-bottom: 8px; color: rgba(255,255,255,.6); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.accent-text { color: var(--accent); }
.mobile-only { display: none !important; }

.button, .icon-button, .text-button, .favorite-button, .view-toggle button, .device-toggle button {
    border: 0; cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease;
}
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 11px; font-size: 13px; font-weight: 750; }
.button:hover, .icon-button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--accent); box-shadow: 0 7px 18px rgba(105, 86, 232, .2); }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { color: #34343d; background: #fff; border: 1px solid var(--line); }
.button-secondary:hover { border-color: #cfcfd7; background: var(--surface-soft); }
.button-danger { color: var(--danger); background: #fff; border: 1px solid #efcccc; }
.button-large { min-height: 48px; padding-inline: 22px; }
.icon-button { display: inline-grid; width: 39px; height: 39px; place-items: center; flex: 0 0 auto; color: #5c5c67; background: #fff; border: 1px solid var(--line); border-radius: 11px; font-size: 18px; }
.text-button { padding: 4px 0; color: var(--accent); background: transparent; font-size: 12px; font-weight: 800; }

label { display: grid; gap: 7px; color: #4c4c56; font-size: 12px; font-weight: 700; }
input, select, textarea { width: 100%; color: var(--text); background: #fff; border: 1px solid #dcdce3; border-radius: 11px; outline: 0; transition: border-color .18s, box-shadow .18s; }
input, select { min-height: 44px; padding: 0 13px; }
textarea { padding: 13px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(105, 86, 232, .12); }
input::placeholder, textarea::placeholder { color: #aaaab5; }
label small { color: var(--muted); font-weight: 500; }

/* Login */
.login-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 1.15fr) minmax(430px, .85fr); }
.login-story { position: relative; display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; padding: 52px clamp(48px, 7vw, 110px); overflow: hidden; color: #fff; background: #17171d; }
.login-story::before, .login-story::after { position: absolute; content: ""; border-radius: 50%; filter: blur(1px); }
.login-story::before { width: 440px; height: 440px; right: -120px; top: -140px; background: radial-gradient(circle, rgba(105,86,232,.55), transparent 68%); }
.login-story::after { width: 360px; height: 360px; left: -170px; bottom: 70px; background: radial-gradient(circle, rgba(89,142,221,.28), transparent 68%); }
.brand-light { position: relative; z-index: 1; }
.story-copy { position: relative; z-index: 1; max-width: 650px; margin: 90px 0 50px; }
.story-copy h1 { max-width: 620px; margin: 0; font-size: clamp(44px, 5vw, 74px); line-height: .98; letter-spacing: -.055em; }
.story-copy p { max-width: 580px; margin: 28px 0 0; color: rgba(255,255,255,.65); font-size: 17px; line-height: 1.7; }
.story-preview { position: relative; z-index: 1; width: min(660px, 90%); height: 260px; padding: 12px; transform: translateY(95px) rotate(-1.5deg); background: #f4f4f7; border: 1px solid rgba(255,255,255,.18); border-radius: 22px 22px 0 0; box-shadow: 0 -20px 70px rgba(0,0,0,.35); }
.preview-top { display: flex; height: 26px; align-items: center; gap: 5px; padding: 0 5px; }
.preview-top span { width: 6px; height: 6px; background: #d5d5dd; border-radius: 50%; }
.preview-body { display: grid; height: calc(100% - 26px); grid-template-columns: 95px 1fr; gap: 10px; }
.preview-side { background: #fff; border-radius: 9px; }
.preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.preview-grid i { background: linear-gradient(145deg, #fff, #e9e8f3); border-radius: 10px; box-shadow: inset 0 0 0 1px #e1e1e8; }
.login-panel { display: grid; place-items: center; padding: 40px; background: #fff; }
.login-card { display: grid; width: min(100%, 400px); gap: 24px; }
.login-card h2 { margin: 0 0 8px; font-size: 32px; letter-spacing: -.035em; }
.login-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 78px; }
.password-field .text-button { position: absolute; right: 13px; top: 11px; }
.form-error { min-height: 20px; color: var(--danger) !important; font-size: 13px; text-align: center; }
.demo-access { display: grid; gap: 7px; padding-top: 21px; border-top: 1px solid var(--line); }
.demo-access > strong { margin-bottom: 3px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.demo-access button { display: flex; min-height: 44px; align-items: center; justify-content: space-between; padding: 0 12px; color: #4d4d58; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.demo-access small { color: var(--muted); }
.mobile-brand { display: none; }

/* App shell */
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; width: var(--sidebar); flex-direction: column; padding: 22px 15px 15px; background: #fff; border-right: 1px solid var(--line); }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 26px; }
.nav-list { display: flex; flex: 1; flex-direction: column; gap: 4px; }
.nav-item { display: flex; width: 100%; min-height: 42px; align-items: center; gap: 11px; padding: 0 11px; color: #666671; background: transparent; border: 0; border-radius: 10px; font-size: 13px; font-weight: 650; text-align: left; cursor: pointer; }
.nav-item > span { display: grid; width: 22px; place-items: center; font-size: 17px; }
.nav-item small { margin-left: auto; color: #aaaab5; }
.nav-item:hover { color: #292930; background: var(--surface-soft); }
.nav-item.active { color: var(--accent); background: var(--accent-soft); }
.nav-divider { height: 1px; margin: 12px 9px; background: var(--line); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.sidebar-user > span:nth-child(2) { display: grid; min-width: 0; flex: 1; }
.sidebar-user strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.sidebar-user .icon-button { width: 33px; height: 33px; }
.avatar { display: grid; width: 36px; height: 36px; place-items: center; flex: 0 0 auto; color: #fff; background: linear-gradient(145deg, #7a68ec, #5744d2); border-radius: 12px; font-size: 12px; font-weight: 800; }
.avatar-button { border: 0; cursor: pointer; }
.sidebar-backdrop { display: none; }
.workspace { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; z-index: 10; top: 0; display: flex; height: 74px; align-items: center; gap: 15px; padding: 0 clamp(20px, 3vw, 44px); background: rgba(245,245,247,.91); border-bottom: 1px solid rgba(222,222,228,.9); backdrop-filter: blur(16px); }
.menu-button { display: none; }
.topbar-title { display: grid; min-width: 0; flex: 1; }
.topbar-title strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.topbar-title small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.catalog-page, .detail-page { width: min(1480px, 100%); margin: 0 auto; padding: 38px clamp(20px, 3vw, 44px) 70px; }
.card-surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(23,23,28,.035); }

/* Catalog */
.catalog-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 27px; }
.catalog-intro h1 { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -.045em; }
.catalog-intro p { margin: 13px 0 0; color: var(--muted); font-size: 14px; }
.catalog-stat { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--accent-soft); border-radius: 13px; }
.catalog-stat strong { color: var(--accent); font-size: 26px; }
.catalog-stat span { color: #625d7a; font-size: 10px; font-weight: 750; line-height: 1.25; text-transform: uppercase; }
.filter-panel { padding: 13px; }
.search-field { position: relative; display: block; }
.search-field span { position: absolute; left: 15px; top: 8px; color: #878792; font-size: 25px; line-height: 1; }
.search-field input { height: 50px; padding-left: 47px; background: var(--surface-soft); border-color: transparent; font-size: 14px; }
.filter-row { display: flex; gap: 9px; padding-top: 10px; }
.filter-row select { min-width: 145px; flex: 1; background: #fff; }
.view-toggle, .device-toggle { display: inline-flex; gap: 3px; padding: 3px; background: #f0f0f4; border-radius: 10px; }
.view-toggle button { width: 38px; color: #858590; background: transparent; border-radius: 8px; }
.view-toggle button.active, .device-toggle button.active { color: var(--accent); background: #fff; box-shadow: 0 2px 8px rgba(23,23,28,.08); }
.catalog-meta { display: flex; align-items: baseline; margin: 22px 2px 13px; color: var(--muted); font-size: 12px; }
.catalog-meta strong { margin-right: 4px; color: var(--text); font-size: 14px; }
.catalog-meta .text-button { margin-left: auto; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.product-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 24px rgba(23,23,28,.04); transition: transform .2s, box-shadow .2s, border-color .2s; }
.product-card:hover { transform: translateY(-3px); border-color: #d5d5dc; box-shadow: var(--shadow); }
.card-preview { position: relative; aspect-ratio: 16 / 9; margin: 8px 8px 0; overflow: hidden; border-radius: 12px; }
.product-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-visual { position: relative; display: grid; width: 100%; height: 100%; place-items: center; overflow: hidden; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 82%, #fff), color-mix(in srgb, var(--accent) 72%, #15151a)); }
.product-visual::before { position: absolute; width: 72%; aspect-ratio: 1; content: ""; transform: rotate(18deg); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 28%; }
.visual-orbit { position: absolute; width: 62%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; }
.visual-mark { position: relative; z-index: 1; font-size: clamp(35px, 4vw, 64px); font-weight: 850; letter-spacing: -.08em; }
.product-visual small { position: absolute; z-index: 1; right: 14px; bottom: 12px; color: rgba(255,255,255,.72); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.status-badge { display: inline-flex; min-height: 25px; align-items: center; padding: 0 9px; color: #5c4fc5; background: #eeeafd; border: 1px solid rgba(105,86,232,.13); border-radius: 999px; font-size: 9px; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; }
.status-badge.ready { color: #177151; background: #e7f6ef; border-color: #d0eadf; }
.status-badge.working { color: #2c65a7; background: #e9f2fb; border-color: #d5e7f7; }
.status-badge.stopped { color: #a76625; background: #fbf0e4; border-color: #f0dfce; }
.status-badge.archive { color: #777783; background: #efeff2; border-color: #dfdfe4; }
.card-preview > .status-badge { position: absolute; left: 10px; top: 10px; }
.favorite-button { position: absolute; right: 10px; top: 10px; display: grid; width: 31px; height: 31px; place-items: center; color: #4c4c56; background: rgba(255,255,255,.9); border-radius: 9px; box-shadow: 0 4px 13px rgba(0,0,0,.12); font-size: 19px; }
.favorite-button.active { color: #fff; background: var(--accent); }
.card-content { display: grid; gap: 14px; padding: 16px; }
.sku-label { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.card-title h2 { min-height: 42px; margin: 5px 0 0; font-size: 17px; line-height: 1.25; letter-spacing: -.025em; }
.card-tags { display: flex; gap: 6px; overflow: hidden; }
.card-tags span { overflow: hidden; padding: 5px 8px; color: #676772; background: var(--surface-soft); border-radius: 7px; font-size: 9px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.card-details { display: grid; grid-template-columns: .8fr 1.2fr 1fr; gap: 9px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card-details span { display: grid; min-width: 0; gap: 4px; }
.card-details small { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.card-details strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.card-actions { display: flex; gap: 7px; }
.card-actions .button { flex: 1; }
.product-grid.list-view { grid-template-columns: 1fr; }
.list-view .product-card { display: grid; grid-template-columns: 230px 1fr; }
.list-view .card-preview { aspect-ratio: auto; min-height: 175px; }
.list-view .card-content { grid-template-columns: 1.25fr .7fr 1.2fr auto; align-items: center; }
.list-view .card-title h2 { min-height: auto; }
.list-view .card-tags { display: none; }
.list-view .card-details { border: 0; }
.list-view .card-actions { min-width: 180px; }

/* Detail */
.detail-breadcrumb { display: flex; gap: 9px; margin-bottom: 18px; color: var(--muted); font-size: 11px; }
.detail-breadcrumb a { color: var(--accent); font-weight: 750; }
.detail-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 34px; padding: 18px; }
.detail-main-visual { min-height: 430px; border-radius: 13px; }
.detail-media { min-width: 0; }
.thumbnail-row { display: flex; gap: 8px; margin-top: 9px; overflow-x: auto; }
.thumbnail-row button { width: 75px; height: 61px; padding: 0; overflow: hidden; background: #eee; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.thumbnail-row img { width: 100%; height: 100%; object-fit: cover; }
.detail-summary { display: flex; flex-direction: column; justify-content: center; padding: 28px 24px 28px 0; }
.detail-labels { display: flex; align-items: center; gap: 11px; }
.detail-summary h1 { margin: 16px 0 12px; font-size: clamp(30px, 3.8vw, 52px); line-height: 1.03; letter-spacing: -.045em; }
.lead { margin: 0; color: #666671; font-size: 14px; line-height: 1.65; }
.price-line { display: flex; align-items: baseline; gap: 12px; margin-top: 24px; }
.price-line strong { font-size: 29px; letter-spacing: -.035em; }
.price-line del { color: #a0a0aa; font-size: 15px; }
.cost-note { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.detail-actions { display: flex; gap: 8px; margin-top: 25px; }
.status-control { max-width: 240px; margin-top: 18px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin-top: 17px; }
.content-card, .landing-section, .files-section { padding: 25px; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.spec-grid div { display: grid; gap: 5px; padding: 14px; }
.spec-grid div:nth-child(odd) { border-right: 1px solid var(--line); }
.spec-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.spec-grid dt { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.spec-grid dd { margin: 0; font-size: 12px; font-weight: 750; }
.property-block { display: grid; gap: 9px; margin-top: 18px; }
.property-block > strong { font-size: 11px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip, .tag { padding: 6px 9px; color: #555560; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; font-size: 10px; }
.tag { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.offer-box { display: grid; gap: 6px; padding: 15px; background: var(--accent-soft); border-radius: 12px; }
.offer-box span { color: var(--accent); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.offer-box strong { font-size: 14px; }
.benefit-list { display: grid; gap: 10px; margin: 18px 0; padding: 0; list-style: none; }
.benefit-list li { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.benefit-list span { display: grid; width: 22px; height: 22px; place-items: center; color: #19734e; background: #e8f6ef; border-radius: 7px; font-size: 10px; font-weight: 900; }
.ad-copy { padding: 15px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px; }
.ad-copy > div { display: flex; align-items: center; justify-content: space-between; }
.ad-copy strong { font-size: 11px; }
.ad-copy p { margin: 12px 0 0; color: #60606b; font-size: 11px; line-height: 1.65; }
.landing-section, .files-section { margin-top: 17px; }
.device-toggle button { min-height: 31px; padding: 0 10px; color: #777783; background: transparent; border-radius: 8px; font-size: 10px; font-weight: 750; }
.landing-frame-wrap { display: flex; justify-content: center; height: 560px; margin-bottom: 14px; overflow: hidden; background: #ececf1; border: 1px solid var(--line); border-radius: 13px; transition: padding .2s; }
.landing-frame-wrap iframe { width: 100%; height: 100%; background: #fff; border: 0; transition: width .25s; }
.landing-frame-wrap.mobile iframe { width: 390px; box-shadow: 0 0 0 1px #d7d7df, 0 10px 25px rgba(0,0,0,.08); }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.video-grid video { width: 100%; aspect-ratio: 16/9; background: #111; border-radius: 12px; }
.file-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.file-row { display: flex; min-height: 68px; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.file-row:last-child { border-bottom: 0; }
.file-icon { display: grid; width: 40px; height: 40px; place-items: center; color: var(--accent); background: var(--accent-soft); border-radius: 10px; font-size: 9px; font-weight: 900; }
.file-meta { display: grid; min-width: 0; flex: 1; gap: 5px; }
.file-meta strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.file-meta small { color: var(--muted); font-size: 9px; }
.inline-empty { display: grid; place-items: center; padding: 42px; color: var(--muted); text-align: center; border: 1px dashed #d4d4dc; border-radius: 12px; }
.inline-empty span { margin-bottom: 10px; color: var(--accent); font-size: 26px; }
.inline-empty strong { color: var(--text); font-size: 13px; }
.inline-empty p { margin: 7px 0 0; font-size: 11px; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 19px 22px; background: #fff8f8; border: 1px solid #efd6d6; border-radius: 14px; }
.danger-zone strong { color: #8d3030; font-size: 13px; }
.danger-zone p { margin: 5px 0 0; color: #a77575; font-size: 10px; }

/* Empty states, modals, feedback */
.empty-state { display: grid; min-height: 430px; place-items: center; align-content: center; padding: 40px; text-align: center; }
.empty-state > span { display: grid; width: 54px; height: 54px; place-items: center; color: var(--accent); background: var(--accent-soft); border-radius: 17px; font-size: 25px; }
.empty-state h1, .empty-state h2 { margin: 17px 0 6px; }
.empty-state p { margin: 0 0 19px; color: var(--muted); font-size: 13px; }
.catalog-empty { min-height: 330px; }
.modal { width: min(860px, calc(100% - 28px)); max-height: calc(100vh - 34px); padding: 0; overflow: hidden; color: var(--text); background: #fff; border: 0; border-radius: 18px; box-shadow: 0 28px 100px rgba(16,16,20,.28); }
.modal::backdrop, .lightbox::backdrop { background: rgba(18,18,23,.62); backdrop-filter: blur(5px); }
.modal form { display: flex; max-height: calc(100vh - 34px); flex-direction: column; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px 17px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 23px; letter-spacing: -.035em; }
.wizard-progress { display: grid; grid-template-columns: repeat(5, 1fr); padding: 12px 24px; background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.wizard-progress button { display: flex; align-items: center; gap: 7px; padding: 0; color: #9a9aa5; background: transparent; border: 0; font-size: 9px; font-weight: 800; cursor: pointer; }
.wizard-progress span { display: grid; width: 22px; height: 22px; place-items: center; background: #e6e6eb; border-radius: 50%; }
.wizard-progress button.active { color: var(--accent); }
.wizard-progress button.active span { color: #fff; background: var(--accent); }
.wizard-body { min-height: 410px; padding: 25px; overflow-y: auto; }
.wizard-step { display: none; }
.wizard-step.active { display: block; }
.step-heading { margin-bottom: 21px; }
.step-heading h3 { margin: 0; font-size: 19px; }
.step-heading p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.form-grid .wide { grid-column: 1 / -1; }
.form-note { padding: 17px; background: var(--accent-soft); border-radius: 12px; }
.form-note p { margin: 5px 0 0; color: #6e678c; font-weight: 500; }
.wizard-footer { display: flex; min-height: 73px; align-items: center; justify-content: space-between; padding: 12px 24px; border-top: 1px solid var(--line); }
.wizard-footer > div { display: flex; gap: 8px; }
.dropzone { position: relative; display: grid; min-height: 265px; place-items: center; align-content: center; gap: 8px; padding: 25px; color: #6c6c77; background: var(--surface-soft); border: 1px dashed #c9c9d2; border-radius: 14px; text-align: center; cursor: pointer; }
.dropzone:hover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone > span { display: grid; width: 51px; height: 51px; place-items: center; color: var(--accent); background: #fff; border-radius: 15px; box-shadow: 0 6px 18px rgba(23,23,28,.08); font-size: 24px; }
.dropzone strong { color: var(--text); font-size: 14px; }
.dropzone small { font-weight: 500; }
.dropzone em { margin-top: 8px; color: var(--accent); font-size: 10px; font-style: normal; }
.upload-note { margin: 9px 0 0; color: var(--muted); font-size: 9px; }
.small-modal { width: min(470px, calc(100% - 28px)); }
.small-modal form { display: grid; gap: 18px; padding-bottom: 24px; }
.small-modal form > label, .small-modal form > .button, .small-modal form > .dropzone { margin-inline: 24px; }
.small-modal .dropzone { min-height: 225px; }
.lightbox { width: min(1100px, calc(100% - 30px)); padding: 0; overflow: visible; background: transparent; border: 0; }
.lightbox img { display: block; max-height: 87vh; margin: auto; border-radius: 14px; box-shadow: 0 20px 80px rgba(0,0,0,.4); }
.lightbox .icon-button { position: fixed; right: 20px; top: 20px; }
.toast-stack { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: grid; width: min(360px, calc(100% - 36px)); gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 15px; color: #fff; background: #24242c; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.22); font-size: 12px; animation: toast-in .25s ease both; }
.toast.error { background: #9d3c3c; }
.toast::before { content: "✓"; display: grid; width: 22px; height: 22px; place-items: center; color: #24242c; background: #fff; border-radius: 7px; font-weight: 900; }
.toast.error::before { content: "!"; color: #9d3c3c; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 1180px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .list-view .card-content { grid-template-columns: 1fr 1fr; }
    .detail-hero { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
    :root { --sidebar: 0px; }
    .sidebar { width: 260px; transform: translateX(-102%); transition: transform .22s ease; box-shadow: 20px 0 60px rgba(0,0,0,.16); }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-backdrop { position: fixed; z-index: 19; inset: 0; background: rgba(20,20,25,.5); }
    body.sidebar-open .sidebar-backdrop { display: block; }
    .mobile-only, .menu-button { display: inline-grid !important; }
    .detail-hero { grid-template-columns: 1fr; }
    .detail-summary { padding: 15px 12px 21px; }
    .detail-grid { grid-template-columns: 1fr; }
    .filter-row { flex-wrap: wrap; }
    .filter-row select { min-width: calc(50% - 6px); }
    .view-toggle { margin-left: auto; }
    .list-view .product-card { grid-template-columns: 190px 1fr; }
    .list-view .card-content { grid-template-columns: 1fr; }
    .list-view .card-details { display: none; }
}

@media (max-width: 660px) {
    .login-shell { display: block; }
    .login-story { display: none; }
    .login-panel { min-height: 100vh; padding: 27px 20px; }
    .mobile-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
    .topbar { height: 66px; padding: 0 14px; }
    .topbar-title small { display: none; }
    .topbar-actions .button { display: none; }
    .catalog-page, .detail-page { padding: 25px 14px 55px; }
    .catalog-intro { align-items: flex-start; }
    .catalog-intro h1 { font-size: 36px; }
    .catalog-stat { display: none; }
    .filter-row select { min-width: 100%; }
    .view-toggle { display: none; }
    .product-grid { grid-template-columns: 1fr; }
    .product-grid.list-view { grid-template-columns: 1fr; }
    .list-view .product-card { display: block; }
    .list-view .card-preview { aspect-ratio: 16/9; }
    .list-view .card-content { display: grid; grid-template-columns: 1fr; }
    .list-view .card-details { display: grid; }
    .detail-main-visual { min-height: 300px; }
    .detail-summary h1 { font-size: 34px; }
    .detail-actions { display: grid; }
    .spec-grid { grid-template-columns: 1fr; }
    .spec-grid div, .spec-grid div:nth-child(odd), .spec-grid div:nth-child(-n+2) { border: 0; border-bottom: 1px solid var(--line); }
    .spec-grid div:last-child { border-bottom: 0; }
    .section-head { flex-direction: column; }
    .video-grid { grid-template-columns: 1fr; }
    .landing-frame-wrap { height: 470px; }
    .landing-frame-wrap.mobile iframe { width: 100%; }
    .danger-zone { align-items: stretch; flex-direction: column; }
    .wizard-progress { grid-template-columns: repeat(5, 1fr); padding-inline: 12px; }
    .wizard-progress button { justify-content: center; }
    .wizard-progress button { font-size: 0; }
    .wizard-progress span { font-size: 9px; }
    .wizard-body { padding: 20px; }
    .form-grid, .form-grid.three { grid-template-columns: 1fr; }
    .wizard-footer { padding-inline: 17px; }
    .wizard-footer > .text-button { display: none; }
    .modal-head { padding-inline: 20px; }
}
