:root {
    --bg: #f4f6f8;
    --panel: #ffffff;
    --text: #17212b;
    --muted: #667085;
    --line: #dde3ea;
    --brand: #16856f;
    --brand-dark: #0f6656;
    --danger: #c24135;
    --warn: #b7791f;
    --ok: #16856f;
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}
a { color: inherit; }
.layout {
    min-height: 100vh;
    display: block;
    padding-left: 260px;
}
.sidebar {
    background: #101820;
    color: #fff;
    padding: 24px 18px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    gap:28px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
}
.sidebar-head {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
}
.sidebar-toggle {
    flex:0 0 auto;
    width:34px;
    height:34px;
    border:1px solid rgba(255,255,255,.16);
    border-radius:7px;
    background:rgba(255,255,255,.08);
    color:#fff;
    cursor:pointer;
    font-size:22px;
    line-height:1;
}
.sidebar-toggle:hover { background:rgba(255,255,255,.14); }
.brand { font-weight: 800; font-size: 24px; margin-bottom: 4px; }
.domain { color: rgba(255,255,255,.6); font-size: 13px; margin-bottom: 28px; }
.nav { display: grid; gap: 8px; }
.nav a { text-decoration: none; padding: 10px 12px; border-radius: 7px; color: rgba(255,255,255,.82); }
.nav a:hover, .nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.sidebar-footer { display:grid; gap:14px; padding: 12px 2px 0; }
.sidebar-legal { display:grid; gap:7px; font-size:12px; line-height:1.3; }
.sidebar-legal a { color: rgba(255,255,255,.58); text-decoration:none; }
.sidebar-legal a:hover { color:#fff; }
.copyright { color: rgba(255,255,255,.46); font-size:12px; }
.content { min-width:0; max-width:100%; padding: 28px; }
body.sidebar-collapsed .layout { padding-left: 76px; }
body.sidebar-collapsed .sidebar { width:76px; padding: 20px 12px; align-items:center; }
body.sidebar-collapsed .sidebar-head { justify-content:center; }
body.sidebar-collapsed .brand {
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    border-radius:8px;
    background:rgba(255,255,255,.1);
    font-size:0;
    margin:0;
}
body.sidebar-collapsed .brand::before {
    content:"WB";
    font-size:14px;
    font-weight:800;
}
body.sidebar-collapsed .domain,
body.sidebar-collapsed .nav,
body.sidebar-collapsed .sidebar-footer { display:none; }
body.sidebar-collapsed .sidebar-toggle { margin-top:10px; }
.topbar { display:flex; justify-content:space-between; align-items:center; gap: 16px; margin-bottom: 22px; }
.page-title { margin:0; font-size: 28px; }
.muted { color: var(--muted); }
.grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.monitor-main-grid {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) minmax(190px, 1fr) 110px minmax(170px, 1fr) minmax(170px, 1fr) 150px 150px minmax(280px, 1.2fr);
    gap: 12px;
    align-items: start;
}
.panel { min-width:0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.panel h2, .panel h3 { margin: 0 0 14px; }
.btn {
    border: 0;
    border-radius: 7px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #e8edf2;
    color: var(--text);
}
.btn.primary { background: var(--brand); color: white; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.danger { background: #f8e4e1; color: var(--danger); }
.btn.small { padding: 7px 10px; font-size: 13px; }
.btn:disabled {
    cursor: not-allowed;
    opacity: .55;
}
.actions { display:flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.field { display:grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: 14px; }
.form-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.settings-locked {
    position: relative;
    margin: 12px 0 14px;
}
.settings-locked fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}
.settings-locked.is-disabled fieldset {
    opacity: .38;
    filter: grayscale(.35);
}
.settings-lock-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    min-height: 120px;
    border: 1px dashed #b8c3ce;
    border-radius: 8px;
    background: rgba(248,250,252,.72);
    color: #475467;
    font-weight: 800;
    text-align: center;
    padding: 18px;
    pointer-events: none;
}
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    place-items: center;
    padding: 24px;
    background: rgba(16,24,32,.48);
}
.modal-backdrop.is-open { display: grid; }
.modal-card {
    width: min(760px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 28px 90px rgba(16,24,32,.28);
}
.modal-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}
.modal-head h2 { margin: 0 0 6px; }
.modal-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 7px;
    background: #e8edf2;
    color: var(--text);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}
.inline-check { display:inline-flex; align-items:center; gap:8px; font-weight:700; margin-bottom:14px; }
.inline-check input { width:auto; }
.terms-check { display:flex; align-items:flex-start; gap:8px; color:var(--muted); font-size:13px; line-height:1.4; margin: 12px 0 16px; }
.terms-check input { width:auto; margin-top:2px; }
.hp-field { position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }
.legal-page { max-width: 980px; margin: 0 auto; line-height: 1.6; }
.legal-page h1 { margin-top:0; font-size:32px; }
.legal-page h2 { margin-top:28px; }
.legal-page ul, .legal-page ol { padding-left:24px; }
.legal-meta { color:var(--muted); margin-bottom:18px; }
.legal-links { display:flex; gap:12px; flex-wrap:wrap; margin-top:18px; font-size:13px; color:var(--muted); }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}
.time-row {
    display: inline-grid;
    grid-template-columns: 132px 62px 62px auto;
    gap: 6px;
    align-items: center;
    max-width: 330px;
}
.time-row input,
.time-row select {
    width: auto;
    min-width: 0;
}
.time-row input,
.time-row select,
.time-row .btn {
    padding: 9px 10px;
}
textarea { min-height: 110px; resize: vertical; }
.auth-shell { min-height: 100vh; display:grid; place-items:center; padding: 24px; background: linear-gradient(180deg, #eef5f3, #f8fafc); }
.auth-card { width: min(440px, 100%); background:#fff; border:1px solid var(--line); border-radius:8px; padding:28px; }
.auth-card h1 { margin:0 0 6px; }
.error { background:#fde8e5; color: var(--danger); border:1px solid #f5b8b1; padding:10px 12px; border-radius:7px; margin-bottom:14px; }
.status { display:inline-flex; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.status.ok { background:#dff7ee; color: var(--ok); }
.status.warn { background:#fff4d8; color: var(--warn); }
.status.off { background:#eceff3; color:#667085; }
.monitor-card { display:grid; gap: 10px; }
.monitor-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.chips { display:flex; flex-wrap:wrap; gap:6px; }
.chip { background:#eef3f7; border:1px solid var(--line); border-radius:999px; padding:4px 9px; font-size:12px; }
.notice { padding: 12px 14px; border-radius: 7px; margin-bottom: 16px; border: 1px solid var(--line); background: #fff; }
.notice.ok { border-color: #a8e6cf; background: #e8fbf3; color: #0f6656; }
.notice.error { border-color: #f5b8b1; background: #fde8e5; color: var(--danger); }
.warehouse-picker { position: relative; z-index: 20; }
.warehouse-select {
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    padding: 6px 40px 6px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    cursor: text;
    position: relative;
}
.warehouse-select:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(22, 133, 111, .12);
}
.warehouse-select:after {
    content: "⌄";
    position: absolute;
    right: 14px;
    top: 10px;
    color: var(--muted);
    font-size: 18px;
}
.warehouse-search-input {
    border: 0;
    outline: 0;
    padding: 6px 4px;
    min-width: 260px;
    flex: 1;
}
.warehouse-search-input:focus { box-shadow: none; }
.warehouse-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 8px;
    max-height: 320px;
    overflow: auto;
    display: none;
    box-shadow: 0 18px 45px rgba(16, 24, 32, .18);
}
.warehouse-dropdown.is-open { display: block; }
.warehouse-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
}
.warehouse-item:hover { background: #eef3f7; }
.warehouse-item input { width: auto; }
.warehouse-item.is-checked { background: #e8fbf3; color: #0f6656; font-weight: 700; }
.selected-warehouse {
    display:inline-flex;
    align-items:center;
    gap:6px;
    background:#e8fbf3;
    border:1px solid #a8e6cf;
    color:#0f6656;
    border-radius:999px;
    padding:5px 9px;
    font-size:12px;
    font-weight:700;
}
.selected-warehouse button {
    border:0;
    background:transparent;
    color:#0f6656;
    cursor:pointer;
    font-weight:800;
    padding:0;
}
.warehouse-helper { display:flex; justify-content:space-between; gap:10px; margin-top:7px; font-size:12px; }
.warehouse-clear { border:0; background:transparent; color:var(--brand); cursor:pointer; padding:0; font-weight:700; }
.table { width:100%; border-collapse: collapse; }
.table th, .table td { border-bottom:1px solid var(--line); padding:10px; text-align:left; vertical-align:top; }
.table th { color: var(--muted); font-size:13px; }
.table-scroll {
    width:100%;
    max-width:100%;
    max-height:none;
    overflow:visible;
    border:1px solid var(--line);
    border-radius:8px;
}
.stock-toolbar {
    display:grid;
    grid-template-columns: minmax(210px, 1fr) 150px 170px minmax(260px, 1.2fr) auto;
    gap:12px;
    align-items:start;
    margin-bottom:16px;
}
.stock-submit-field { align-self:end; }
.stock-actions-panel {
    display:flex;
    justify-content:flex-start;
    align-items:center;
    gap:10px;
    margin-bottom:16px;
}
.stock-actions-panel form { margin:0; }
.stock-settings-card { width:min(560px, 100%); }
.stock-alert-settings .inline-check {
    margin:0 0 6px;
    font-size:13px;
}
.stock-summary {
    display:grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap:12px;
    margin-bottom:16px;
}
.stock-summary .panel { display:grid; gap:8px; }
.stock-summary span { color:var(--muted); font-size:13px; font-weight:700; }
.stock-summary strong { font-size:28px; }
.stock-table-head {
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:flex-start;
    margin-bottom:14px;
}
.stock-table-head h2 { margin-bottom:0; }
.stock-meta-line { margin:8px 0 0; font-size:13px; }
.stock-live-search {
    width:min(420px, 100%);
    margin-bottom:0;
}
.stock-table {
    width:100%;
    min-width:0;
    table-layout:fixed;
    border-collapse:separate;
    border-spacing:0;
    background:#fff;
}
.stock-table th {
    position:sticky;
    top:0;
    z-index:4;
    background:#f8fafc;
    border-bottom:1px solid var(--line);
    border-right:1px solid var(--line);
    padding:11px 12px;
    font-size:12px;
    text-transform:none;
    box-shadow:0 1px 0 rgba(16,24,32,.04);
}
.stock-table td {
    padding:12px;
    border-bottom:1px solid #edf1f4;
    border-right:1px solid #edf1f4;
    line-height:1.35;
    overflow-wrap:anywhere;
}
.stock-table th:last-child,
.stock-table td:last-child { border-right:0; }
.stock-table th:nth-child(1), .stock-table td:nth-child(1) { width:18%; }
.stock-table th:nth-child(2), .stock-table td:nth-child(2) { width:18%; }
.stock-table th:nth-child(3), .stock-table td:nth-child(3) { width:8%; text-align:center; }
.stock-table th:nth-child(4), .stock-table td:nth-child(4) { width:6%; }
.stock-table th:nth-child(5), .stock-table td:nth-child(5) { width:22%; }
.stock-table th:nth-child(6), .stock-table td:nth-child(6) { width:28%; }
.stock-table tr.stock-zero { background:#fff4f2; }
.stock-table tr.stock-low { background:#fffaf0; }
.stock-product-title {
    font-weight:800;
    color:#101820;
    margin-bottom:4px;
}
.stock-product-subtitle {
    color:#667085;
    font-size:13px;
}
.stock-code-line {
    display:grid;
    grid-template-columns:48px 1fr;
    gap:8px;
    color:#344054;
    font-size:13px;
}
.stock-code-line span {
    color:#667085;
}
.stock-threshold-form {
    display:block;
    width:64px;
    max-width:100%;
}
.stock-threshold-form input {
    padding:7px 8px;
    text-align:center;
}
.stock-threshold-note {
    margin-top:5px;
    font-size:12px;
}
.stock-amount {
    display:inline-flex;
    min-width:54px;
    justify-content:center;
    border-radius:999px;
    padding:6px 10px;
    background:#eef3f7;
    font-weight:800;
}
.stock-amount.warn { background:#fff4d8; color:var(--warn); }
.stock-amount.danger { background:#fde8e5; color:var(--danger); }
.stock-amount.incoming { background:#e8fbf3; color:var(--brand-dark); }
.stock-warehouses { display:flex; flex-wrap:wrap; gap:5px; }
.stock-warehouses span {
    border:1px solid var(--line);
    border-radius:999px;
    padding:3px 7px;
    background:#fff;
    font-size:12px;
}
.stock-movements span {
    background:#f8fafc;
    color:#475467;
}
.stock-incoming span {
    background:#f0fbf6;
    color:#0f6656;
    border-color:#a8e6cf;
}
.stock-location-title {
    color:var(--muted);
    font-size:12px;
    font-weight:800;
    margin-bottom:5px;
}
.stock-location-title.with-gap { margin-top:10px; }
.stock-empty {
    color:#98a2b3;
    font-size:13px;
}
.stock-supplies-details {
    margin-top:8px;
    color:var(--muted);
    font-size:12px;
}
.stock-supplies-details summary {
    cursor:pointer;
    font-weight:800;
    margin-bottom:6px;
}
.home-page { background:#f5f7f8; }
.home-hero {
    min-height: 92vh;
    position: relative;
    display:grid;
    align-items:center;
    overflow:hidden;
    padding: 88px 0 72px;
    background:
        linear-gradient(90deg, rgba(245,247,248,.99) 0%, rgba(245,247,248,.94) 38%, rgba(245,247,248,.56) 72%, rgba(245,247,248,.32) 100%),
        url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1800&q=82") center/cover;
}
.home-topline {
    position:absolute;
    top:28px;
    left:72px;
    right:72px;
    z-index:2;
    display:flex;
    justify-content:space-between;
    align-items:center;
}
.home-logo { font-size:20px; font-weight:800; color:#101820; }
.home-nav { display:flex; gap:8px; align-items:center; }
.home-nav a {
    text-decoration:none;
    color:#101820;
    font-weight:800;
    background:rgba(255,255,255,.76);
    border:1px solid rgba(221,227,234,.9);
    border-radius:999px;
    padding:9px 14px;
}
.home-nav a:hover { background:#fff; }
.home-hero-inner {
    position:relative;
    z-index:2;
    width:min(1180px, calc(100% - 64px));
    margin:0 auto;
    display:grid;
    grid-template-columns:minmax(0, 1fr) 390px;
    gap:64px;
    align-items:center;
}
.home-copy { max-width: 760px; }
.home-kicker {
    display:inline-flex;
    align-items:center;
    min-height:30px;
    border:1px solid rgba(22,133,111,.22);
    border-radius:999px;
    padding:6px 12px;
    color:var(--brand-dark);
    background:rgba(232,251,243,.86);
    font-size:13px;
    font-weight:800;
    margin-bottom:18px;
}
.home-hero h1 { font-size: 64px; margin: 0 0 18px; line-height: .95; max-width:820px; }
.home-lead { font-size: 20px; line-height:1.55; color:#344054; max-width:660px; margin:0; }
.home-sublead { font-size:18px; line-height:1.55; color:#475467; max-width:650px; margin:22px 0 0; }
.home-actions { display:flex; gap: 12px; flex-wrap:wrap; margin-top: 28px; }
.home-proof {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:22px;
}
.home-proof span {
    background:rgba(255,255,255,.72);
    border:1px solid rgba(221,227,234,.92);
    border-radius:999px;
    padding:8px 11px;
    color:#475467;
    font-size:13px;
    font-weight:800;
}
.hero-dashboard {
    background:rgba(255,255,255,.86);
    border:1px solid rgba(221,227,234,.96);
    border-radius:8px;
    padding:20px;
    box-shadow:0 24px 70px rgba(16,24,32,.16);
    backdrop-filter: blur(8px);
}
.dashboard-head {
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:16px;
    padding-bottom:14px;
    border-bottom:1px solid var(--line);
}
.status-dot {
    width:10px;
    height:10px;
    border-radius:999px;
    background:#16856f;
    box-shadow:0 0 0 5px rgba(22,133,111,.12);
}
.dashboard-row {
    display:flex;
    justify-content:space-between;
    gap:16px;
    padding:13px 0;
    border-bottom:1px solid #edf1f4;
}
.dashboard-row:last-child { border-bottom:0; }
.dashboard-row span { color:#667085; }
.dashboard-row strong { text-align:right; }
.home-section {
    max-width:1180px;
    margin:0 auto;
    padding:82px 32px;
}
.section-label {
    display:inline-block;
    color:var(--brand);
    font-size:13px;
    font-weight:800;
    margin-bottom:12px;
}
.home-section h2, .home-final h2 {
    margin:0;
    font-size:38px;
    line-height:1.08;
    max-width:760px;
}
.home-section p, .home-final p {
    color:#475467;
    font-size:17px;
    line-height:1.6;
    max-width:720px;
}
.home-problem {
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:42px;
    align-items:center;
}
.home-metrics {
    display:grid;
    gap:12px;
}
.home-metrics div, .feature-list article {
    background:#fff;
    border:1px solid var(--line);
    border-radius:8px;
    padding:20px;
}
.home-metrics div {
    border-left:4px solid #16856f;
}
.home-metrics strong {
    display:block;
    font-size:24px;
    margin-bottom:5px;
}
.home-metrics span { color:#667085; }
.home-feature-grid {
    display:grid;
    grid-template-columns:.72fr 1.28fr;
    gap:38px;
    align-items:start;
}
.feature-list {
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:14px;
}
.feature-list article span {
    color:var(--brand);
    font-weight:800;
    font-size:13px;
}
.feature-list h3 { margin:14px 0 8px; font-size:20px; }
.feature-list p { margin:0; font-size:15px; }
.home-telegram {
    display:grid;
    grid-template-columns:1fr 420px;
    gap:42px;
    align-items:center;
    background:#fff;
    border:1px solid var(--line);
    border-radius:8px;
    padding:42px;
}
.telegram-card {
    background:#101820;
    border-radius:8px;
    padding:22px;
    color:#fff;
    box-shadow:0 24px 70px rgba(16,24,32,.18);
}
.telegram-bubble {
    display:grid;
    gap:8px;
    background:#1c2a36;
    border-radius:8px;
    padding:18px;
}
.telegram-bubble strong { font-size:18px; color:#8ee0cc; }
.telegram-bubble span { color:rgba(255,255,255,.78); }
.telegram-button {
    margin-top:14px;
    background:#16856f;
    color:#fff;
    border-radius:7px;
    padding:12px;
    text-align:center;
    font-weight:800;
}
.home-final {
    margin:28px auto 0;
    max-width:1180px;
    padding:72px 32px 52px;
    border-top:1px solid var(--line);
}
.onboarding-shell {
    min-height: 100vh;
    position: relative;
    display: grid;
    place-items: center;
    padding: 28px;
    overflow: hidden;
}
.onboarding-backdrop {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 260px 1fr;
    opacity: .22;
    filter: blur(2px);
    pointer-events: none;
}
.fake-sidebar { background: #101820; }
.fake-content {
    background: var(--bg);
    padding: 40px;
    display: grid;
    gap: 18px;
    align-content: start;
}
.fake-content div {
    height: 120px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.onboarding-card {
    position: relative;
    width: min(1040px, 100%);
    max-height: calc(100vh - 56px);
    overflow: auto;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 24px 80px rgba(16,24,32,.18);
}
.onboarding-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:18px; }
.brand.dark { color: var(--text); margin-bottom: 8px; }
.onboarding-head h1 { margin:0 0 6px; font-size:32px; }
.steps { display:grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.step-pill {
    border: 1px solid var(--line);
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px;
    font-weight: 800;
    color: var(--muted);
    display:flex;
    align-items:center;
    gap:8px;
}
.step-pill span {
    width: 24px;
    height: 24px;
    display:grid;
    place-items:center;
    border-radius:999px;
    background:#e8edf2;
    color: var(--text);
    font-size:12px;
}
.step-pill.current { border-color: var(--brand); color: var(--text); background: #e8fbf3; }
.step-pill.done { color: var(--ok); background:#f0fbf6; }
.step-pill.done span { background: var(--brand); color:#fff; }
.onboarding-section { display:grid; gap:14px; }
.onboarding-section h2 { margin:0; }
.instruction { background:#f8fafc; border:1px solid var(--line); border-radius:8px; padding:14px; }
.instruction p { margin-top:0; }
.instruction li { margin: 6px 0; }
@media (max-width: 1280px) {
    .content { padding: 20px; }
    .stock-table th,
    .stock-table td { padding:10px; }
    .stock-product-subtitle,
    .stock-code-line,
    .stock-warehouses span { font-size:12px; }
    .stock-table th:nth-child(1), .stock-table td:nth-child(1) { width:18%; }
    .stock-table th:nth-child(2), .stock-table td:nth-child(2) { width:21%; }
    .stock-table th:nth-child(3), .stock-table td:nth-child(3) { width:8%; }
    .stock-table th:nth-child(4), .stock-table td:nth-child(4) { width:6%; }
    .stock-table th:nth-child(5), .stock-table td:nth-child(5) { width:22%; }
    .stock-table th:nth-child(6), .stock-table td:nth-child(6) { width:23%; }
    .stock-code-line {
        grid-template-columns:44px minmax(0, 1fr);
        column-gap:6px;
    }
    .stock-code-line span {
        font-size:11px;
    }
}
@media (max-width: 820px) {
    .layout { padding-left:0; }
    body.sidebar-collapsed .layout { padding-left:0; }
    .sidebar { position: static; width:auto; height: auto; }
    body.sidebar-collapsed .sidebar { display:none; }
    .home-hero { min-height: auto; padding: 92px 0 60px; align-items:flex-start; }
    .home-topline { left:24px; right:24px; top:24px; }
    .home-nav a:not(:last-child) { display:none; }
    .home-hero-inner { width:calc(100% - 48px); grid-template-columns:1fr; gap:28px; }
    .home-hero h1 { font-size: 40px; }
    .home-lead { font-size:17px; }
    .home-sublead { font-size:16px; }
    .hero-dashboard { display:none; }
    .home-section { padding:52px 24px; }
    .home-problem, .home-feature-grid, .home-telegram { grid-template-columns: 1fr; gap:24px; }
    .feature-list { grid-template-columns:1fr; }
    .home-section h2, .home-final h2 { font-size:30px; }
    .home-telegram { padding:24px; }
    .home-final { padding:52px 24px 36px; }
    .steps { grid-template-columns: 1fr; }
    .stock-toolbar, .stock-summary { grid-template-columns: 1fr; }
    .stock-table-head { display:grid; }
    .onboarding-backdrop { grid-template-columns: 1fr; }
    .fake-sidebar { display:none; }
    .onboarding-head { display:grid; }
}
