/* LastikPanel: vivid accents, calm surfaces and readable type. */
:root {
  --green: #315ce8;
  --green-dark: #2143b7;
  --lime: #a2f4e5;
  --text: #17243b;
  --muted: #64748b;
  --line: #e3e9f2;
  --bg: #f3f6fc;
  --orange: #b95b12;
  --red: #d44657;
  --shadow: 0 4px 20px #1a305b05, 0 1px 3px #1a305b03;
  color-scheme: light;
}

body { background: var(--bg); color: var(--text); font-size: 14px; }
h1 { font-size: 32px; font-weight: 750; letter-spacing: -1.1px; }
button:focus-visible, a:focus-visible { outline-color: #5885ff; outline-offset: 4px; }
button:disabled { cursor: not-allowed; }
::selection { background: #c9dcff; color: #153374; }

/* Navigation */
.sidebar { background: #122039; border-right: 0; padding-top: 30px; color: #edf3ff; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #40516d transparent; }
.sidebar > *, .sidebar-bottom > * { flex-shrink: 0; }
.brand { font-size: 26px; color: #f8faff; }
.brand small { color: #9bacc6; font-size: 8px; letter-spacing: 1.4px; }
.brand-mark { background: linear-gradient(135deg,#4777ff,#2858e7); color: #fff; box-shadow: 0 6px 18px #06122f33; border-radius: 14px; }
.shop-switch { background: #1b2b46; border-color: #2c3b55; border-radius: 13px; margin-top: 32px; margin-bottom: 27px; padding: 13px 10px; }
.shop-switch strong { font-size: 12px; font-weight: 650; color: #f1f5ff; }
.shop-switch span:not(.shop-icon):not(.online-dot) { color: #aebdd2; font-size: 11px; }
.shop-icon { background: #2b4063; color: #9fbaff; border-radius: 10px; }
.online-dot { background: #20c9a8; box-shadow: 0 0 0 3px #20c9a810; }
.nav-caption { color: #9cacc4; font-size: 10px; letter-spacing: 1.4px; margin-bottom: 13px; }
.desktop-nav { gap: 8px; }
.desktop-nav > a, .settings-link { color: #b9c8de; font-size: 13px; font-weight: 550; padding: 14px; border-radius: 11px; min-height: 48px; }
.desktop-nav > a:hover, .settings-link:hover { background: #21324d; color: white; }
.desktop-nav > a.active { background: #3563ed; color: white; box-shadow: 0 5px 18px #071a4c40; }
.desktop-nav > a.active svg { color: #fff; }
.nav-count { background: #2a3c58; color: #d0ddf3; font-size: 10px; padding: 2px 7px; }
.active .nav-count { background: #ffffff26; color: white; }
.sidebar-tip { background: #1c2d48; border-color: #2b3e5b; border-radius: 13px; padding: 17px 15px; }
.sidebar-tip > span { color: #5cdec6; }
.sidebar-tip strong { color: #e4edff; font-size: 12px; }
.sidebar-tip p { color: #aabbd2; font-size: 11px; }
.settings-link.active { background: #253859; color: #d2e1ff; }
.profile { border-top-color: #2b3d58; padding-top: 18px; padding-bottom: 7px; }
.profile strong { font-size: 12px; color: #eef4ff; }
.profile small { font-size: 10px; color: #a6b7cf; }
.profile > span:last-child { color: #9aacc8; }
.avatar, .top-avatar { color: #4054b5; background: #e9edff; font-weight: 700; }
.profile .avatar { color: #bbfff2; background: #254a58; border: 1px solid #326575; }
.topbar { height: 82px; border-bottom-color: #e4eaf4; box-shadow: 0 2px 8px #1c305604; }
.breadcrumb { font-size: 12px; gap: 12px; }
.breadcrumb > span:first-child { color: #68768d; }
.breadcrumb strong { font-weight: 600; color: #334767; }
.breadcrumb svg { color: #9aa9bf; }
.global-search { background: #f4f7fc; border: 1px solid #e7edf7; padding: 2px 11px; border-radius: 10px; color: #7284a2; }
.global-search input { font-size: 12px; }
.global-search kbd { border-color: #dce4f0; color: #71819b; background: white; }
.topbar-right { gap: 12px; }
.icon-button { color: #667892; border-radius: 10px; min-height: 40px; min-width: 40px; }
.icon-button:hover { background: #eaf0ff; color: #315ce8; }
.notification-button { border-color: #e4eaf4; }
.notification-button i { background: #ff9064; width: 7px; height: 7px; }
.top-avatar { width: 36px; height: 36px; border: 2px solid white; box-shadow: 0 0 0 1px #dfe6f4; }

/* Page rhythm and controls */
main { padding-top: 34px; }
.page-heading { margin-bottom: 25px; gap: 20px; }
.page-heading p { color: #65758e; font-size: 13px; line-height: 1.7; }
.heading-eyebrow { color: #5872a1; font-size: 10px; letter-spacing: 1.3px; }
.btn { border-color: #dce4ef; border-radius: 11px; min-height: 44px; padding: 11px 16px; font-size: 12px; font-weight: 650; box-shadow: 0 2px 3px #17365803; }
.btn:hover { border-color: #becfeb; background: #edf3ff; }
.btn-primary { background: #315ce8; border-color: #315ce8; color: #fff; box-shadow: 0 5px 12px #315ce820; }
.btn-primary:hover { background: #264dcd; border-color: #264dcd; box-shadow: 0 6px 16px #315ce82a; }
.btn-lime { background: #b9f7e9; color: #075a4c; border-color: #9ce6d4; }
.btn-lime:hover { background: #9eecdb; }
.btn-danger { color: #c0394d; background: #fff7f8; border-color: #f3cbd2; }
.btn-danger:hover { background: #ffecef; border-color: #efb9c3; }
.btn-small { min-height: 36px; padding: 8px 12px; font-size: 11px; }
.text-button { font-size: 12px; color: #315ce8; gap: 7px; }
.text-button:hover { color: #1f43b5; }
.action-label { display: none; }

/* Overview */
.welcome-banner { background: linear-gradient(105deg,#315ce8 0%,#286ad8 65%,#0c709d 100%); color: white; border: 0; border-radius: 18px; padding: 25px; min-height: 108px; box-shadow: 0 8px 22px #315ce817; }
.welcome-icon { color: #ffe39c; border-color: #ffffff30; background: #ffffff17; border-radius: 15px; padding: 15px; }
.welcome-banner h2 { font-size: 17px; font-weight: 650; color: white; margin-bottom: 5px; }
.welcome-banner p { color: #edf4ff; font-size: 12px; line-height: 1.65; }
.welcome-banner > div:not(.banner-pattern), .welcome-icon { position: relative; z-index: 1; }
.welcome-banner > .text-button { color: white; background: #ffffff15; border: 1px solid #ffffff40; border-radius: 9px; padding: 10px 12px; }
.welcome-banner > .text-button:hover { background: #ffffff25; }
.banner-pattern { opacity: .5; right: 20px; top: -100px; border-color: #ffffff35; box-shadow: 0 0 0 25px #ffffff02,0 0 0 26px #ffffff20,0 0 0 55px #ffffff03,0 0 0 56px #ffffff20; }
.stat-grid { gap: 18px; }
.stat-card { --metric: #315ce8; --metric-bg: #edf2ff; border: 1px solid #e2e9f4; border-radius: 17px; padding: 21px; position: relative; }
.stat-card::before { content: ''; position: absolute; top: -1px; left: 24px; width: 34px; height: 3px; background: var(--metric); border-radius: 0 0 4px 4px; }
.stat-card:nth-child(2) { --metric: #8054d8; --metric-bg: #f2edff; }
.stat-card:nth-child(3) { --metric: #087f71; --metric-bg: #e5f9f3; }
.stat-card:nth-child(4) { --metric: #b85c1b; --metric-bg: #fff2e4; }
.stat-top { font-size: 12px; color: #596b84; font-weight: 550; margin-bottom: 14px; gap: 6px; }
.stat-icon, .stat-card.warning .stat-icon { padding: 10px; border-radius: 12px; background: var(--metric-bg); color: var(--metric); }
.stat-icon svg { width: 21px; height: 21px; }
.stat-value { font-size: 30px; font-weight: 750; color: #182b4b; letter-spacing: -.9px; line-height: 1.3; }
.stat-value small { color: #687992; font-size: 12px; font-weight: 500; }
.stat-foot { color: #687992; font-size: 11px; flex-wrap: wrap; gap: 4px; }
.stat-foot .positive { color: #087f71; }
.stat-foot .warning-text { color: #ac5517; }
.panel { border-color: #e2e9f4; border-radius: 17px; box-shadow: var(--shadow); }
.panel-head { padding: 23px 24px 20px; }
.panel-head h2 { font-size: 16px; font-weight: 700; }
.panel-head p { font-size: 12px; color: #687992; margin-top: 5px; }
.panel-head > svg { color: #879bbd; }
.panel-head select { background: #f6f8fd; color: #526786; font-size: 11px; min-height: 36px; border-color: #e1e8f3; border-radius: 9px; }
.chart-summary { gap: 12px; flex-wrap: wrap; }
.chart-summary strong { color: #1f3457; font-size: 28px; font-weight: 750; }
.chart-summary span { color: #637795; font-size: 11px; }
.chart-area { height: 182px; }
.chart-scale { color: #657997; font-size: 10px; width: 52px; padding-bottom: 28px; }
.chart-columns { background: repeating-linear-gradient(to top,transparent 0,transparent 42px,#edf1f8 43px,#edf1f8 44px); border-bottom-color: #e8eef8; }
.chart-column { padding-bottom: 28px; }
.chart-bar { background: linear-gradient(180deg,#91b3ff,#c8d8ff); border-radius: 6px 6px 2px 2px; }
.chart-column:last-child .chart-bar { background: linear-gradient(180deg,#4c80ff,#315ce8); }
.chart-bar:hover { background: #5d8af6; }
.chart-label { color: #637795; font-size: 10px; bottom: 6px; }
.chart-foot { font-size: 11px; color: #667b99; padding-top: 18px; padding-bottom: 18px; }
.chart-legend::before { background: #6a96f8; width: 7px; height: 7px; }
.low-item { border-bottom-color: #edf1f7; padding: 15px 0; gap: 12px; }
.low-item:hover { background: #f8faff !important; }
.tire-thumb { color: #5b7092; background: #eff3fb; border: 1px solid #e6ecf6; border-radius: 11px; width: 43px; height: 47px; }
.low-info strong { font-size: 12px; color: #243858; }
.low-info small { font-size: 11px; color: #647893; }
.low-quantity { color: #b55816; font-size: 13px; font-weight: 650; }
.low-quantity small { color: #71819a; font-size: 10px; font-weight: 400; }
.count-pill { background: #fff0df; color: #a65012; font-size: 11px; border: 1px solid #ffe0bb; padding: 1px 7px; }
.panel-bottom { background: #f9fbff; border-top-color: #e9eff8; padding: 16px 22px; }
.distribution-label { font-size: 12px; margin-bottom: 10px; }
.distribution-label strong { color: #354e73; font-weight: 550; }
.distribution-label span { font-size: 11px; color: #6a7b95; }
.progress-track { height: 7px; border-radius: 8px; background: #eff3fa; }
.progress-fill { background: #5a84f4; border-radius: 8px; }
.distribution-item:nth-child(2) .progress-fill { background: #23b7a5; }
.distribution-item:nth-child(3) .progress-fill { background: #9b7ce8; }
.distribution-item:nth-child(4) .progress-fill { background: #f3af61; }
.distribution-foot { font-size: 11px; color: #6a7d9a; }

/* Inventory, prices and reports */
.toolbar { gap: 14px; }
.toolbar-search { min-height: 46px; border-color: #dce5f3; border-radius: 12px; color: #7185a5; }
.toolbar-search:focus-within { border-color: #789df9; box-shadow: 0 0 0 3px #315ce810; }
.toolbar-search input { font-size: 13px; color: #2a405f; }
.filters select { min-height: 46px; border-color: #dce5f3; border-radius: 11px; color: #526783; font-size: 12px; max-width: 190px; }
.tabs { padding: 0 24px; gap: 26px; border-bottom-color: #e4eaf4; }
.tab { padding: 19px 0 17px; font-size: 13px; color: #657996; font-weight: 600; }
.tab.active { color: #315ce8; border-bottom-color: #315ce8; }
.tab svg { width: 17px; height: 17px; }
.tab-count { background: #edf2fd; color: #546fa4; font-size: 11px; padding: 1px 6px; }
.tab.active .tab-count { background: #315ce8; color: white; }
.data-table { font-size: 13px; }
.data-table th { background: #f6f8fd; font-size: 10px; letter-spacing: .35px; font-weight: 650; color: #637793; border-bottom-color: #e6edf7; padding-top: 15px; padding-bottom: 15px; }
.data-table td { border-bottom-color: #edf1f7; padding-top: 18px; padding-bottom: 18px; }
.data-table tbody tr:hover { background: #f8faff; }
.product-name { font-size: 13px; color: #243958; font-weight: 650; }
.product-sub { font-size: 11px; color: #647893; line-height: 1.6; }
.badge { padding: 5px 8px; font-size: 10px; font-weight: 600; color: #087967; background: #e5f8f0; border-radius: 7px; }
.badge.warning { color: #a5540c; background: #fff1dc; }
.badge.danger { color: #bd3b50; background: #ffedf0; }
.badge.blue { color: #315ec2; background: #eaf1ff; }
.badge.neutral { color: #7654b2; background: #f0ebfc; }
.movement-amount { color: #0b8875; }
.movement-amount.negative { color: #c06a22; }
.row-actions { gap: 4px; }
.row-actions .icon-button { min-width: 34px; min-height: 36px; }
.row-actions svg { width: 17px; height: 17px; }
.table-footer { padding: 17px 22px; color: #647893; font-size: 12px; border-top-color: #e4ebf5; }
.pagination { gap: 7px; }
.pagination button { border-color: #e1e8f3; color: #536b91; border-radius: 9px; height: 35px; min-width: 35px; font-size: 12px; }
.pagination button.active { background: #315ce8; border-color: #315ce8; color: white; }
.price-header { background: #edf3ff; border-color: #d9e5ff; border-radius: 16px; padding: 23px; }
.price-header h3 { color: #2d4b83; font-size: 15px; }
.price-header p { color: #5e759d; font-size: 12px; }
.selected-bar { background: #edf3ff; color: #3154a2; font-size: 12px; }
.price-profit { font-size: 11px; color: #0b8371; }
.check-cell input { accent-color: #315ce8; width: 18px; height: 18px; cursor: pointer; }
.metric-row { font-size: 13px; padding: 17px 0; }
.metric-row span { color: #647893; }
.report-note { color: #5d7191; background: #f2f6fd; font-size: 12px; padding: 16px; border-radius: 11px; }
.empty-icon { background: #edf3ff; color: #6083d5; border-radius: 20px; }
.empty-state h3 { color: #344f7b; font-size: 16px; }
.empty-state p { color: #647893; font-size: 12px; max-width: 360px; }
.demo-badge { background: #fff2d8; color: #946114; font-size: 10px; padding: 4px 8px; border: 1px solid #f9e4b7; border-radius: 7px; }
.app-footer { color: #71829d; font-size: 11px; }

/* Forms and dialogs */
.field label, .auth-form-wrap .field label { color: #485e7e; font-size: 12px; font-weight: 600; }
.field .hint { color: #7385a0; font-size: 11px; }
input:not([type=checkbox]), select, textarea { color: #253e61; border-color: #d9e3f0; border-radius: 10px; min-height: 45px; font-size: 13px; }
input:focus, select:focus, textarea:focus { border-color: #779cf8; box-shadow: 0 0 0 3px #315ce812; }
input::placeholder, textarea::placeholder { color: #7f90aa; }
.global-search input, .toolbar-search input { min-height: 36px; border: 0; box-shadow: none; border-radius: 0; }
.input-unit > span { color: #6e83a5; }
.form-section { color: #617da9; font-size: 11px; letter-spacing: 1px; }
.form-note { color: #566f96; background: #f0f5fe; border-radius: 10px; font-size: 11px; line-height: 1.9; }
.form-error { color: #b6374c; border-color: #f3ccd3; background: #fff1f3; border-radius: 10px; font-size: 12px; }
.checkbox-label { color: #5d7293; font-size: 12px; }
.checkbox-label input { accent-color: #315ce8; }
.checkbox-label small { color: #7385a0; font-size: 11px; }
.modal { border-color: #e2e9f4; border-radius: 21px; box-shadow: 0 30px 100px #10244630; }
.modal::backdrop { background: #10203f70; backdrop-filter: blur(5px); }
.modal-head { padding: 24px 26px 20px; border-bottom-color: #e8eef7; }
.modal-head h2 { font-size: 21px; font-weight: 700; }
.modal-head p { color: #687e9e; font-size: 12px; }
.modal-footer { background: #f8faff; border-top-color: #e4ebf6; }
.detail-hero .tire-thumb { color: #496cb0; background: #edf3ff; }
.detail-meta > div { border-color: #e1eafa; background: #f3f7ff; border-radius: 12px; }
.detail-meta small { color: #657fa6; font-size: 11px; }
.detail-meta strong { color: #274778; }
.detail-row { font-size: 12px; }
.detail-row span { color: #637b9e; }
.stock-context { background: #edf4ff; color: #5a76a1; border-radius: 11px; padding: 15px; font-size: 13px; line-height: 1.8; }
.stock-context strong { color: #3156ad; }
.toast { background: #183760; border: 1px solid #355173; border-radius: 13px; box-shadow: 0 8px 24px #102d5630; font-size: 13px; }
.toast svg { color: #61e3cb; }
.toast.error { background: #9c3047; border-color: #bd4961; }
.more-menu { gap: 10px; }
.more-menu a, .more-menu button { background: #f0f5ff; color: #3c5989; border-radius: 12px; padding: 17px; font-size: 14px; }
.more-menu a:hover, .more-menu button:hover { background: #e5eeff; }

/* Welcome and sign-in */
.auth-art { background: radial-gradient(ellipse at 90% 12%,#2456bb 0,transparent 56%),linear-gradient(145deg,#142949,#143b6a); }
.auth-art .brand { color: white; }
.auth-art .brand-mark { background: #3e73f4; }
.auth-art .brand small { color: #b5c9eb; }
.auth-eyebrow { color: #72e9d5; font-size: 11px; line-height: 1.8; }
.auth-eyebrow::before { background: #72e9d5; }
.auth-copy h1 { font-size: 51px; line-height: 1.16; font-weight: 650; color: #f8fbff; }
.auth-copy h1 em { color: #72e9d5; }
.auth-copy > p { color: #c3d5ef; font-size: 15px; line-height: 1.9; max-width: 370px; }
.auth-highlights { color: #d3e3fa; font-size: 12px; gap: 24px; }
.auth-highlights svg { color: #72e9d5; width: 17px; height: 17px; }
.auth-art-footer { color: #aac3e6; font-size: 12px; }
.auth-orbit { border-color: #70b6ff09; box-shadow: 0 0 0 1px #91c9ff15,0 0 0 30px #87caff03,0 0 0 31px #91c9ff15; }
.auth-main { background: #fdfdff; }
.auth-form-wrap { max-width: 420px; }
.auth-form-wrap h2 { font-size: 31px; color: #203552; font-weight: 750; }
.auth-form-wrap > p { color: #667b9b; font-size: 14px; }
.auth-form-wrap .field { margin-bottom: 19px; }
.auth-form-wrap input { font-size: 14px; min-height: 49px; }
.auth-form-wrap .btn { min-height: 49px; font-size: 14px; }
.auth-bottom-note { color: #667d9d; font-size: 12px; }

@media (max-height: 780px) and (min-width: 641px) {
  .sidebar-tip { display: none; }
  .sidebar-bottom { padding-top: 18px; }
}
@media (max-width: 1250px) {
  .sidebar { width: 228px; padding-left: 15px; padding-right: 15px; }
  .workspace { margin-left: 228px; width: calc(100% - 228px); }
  .brand { font-size: 24px; }
  .brand small { font-size: 7px; }
  .desktop-nav > a, .settings-link { padding-left: 12px; padding-right: 12px; font-size: 12px; }
  .stat-card { padding: 18px 17px; }
  .stat-top { font-size: 11px; }
  .stat-icon { padding: 8px; }
  .stat-value { font-size: 26px; }
  .stat-foot { font-size: 10px; }
  .dashboard-grid { grid-template-columns: minmax(0,1.4fr) minmax(270px,1fr); }
  .panel-head { padding-left: 19px; padding-right: 19px; }
  .panel-head h2 { font-size: 15px; }
  .auth-copy h1 { font-size: 44px; }
}
@media (max-width: 1050px) {
  .stat-card { padding: 19px 21px; }
  .stat-top { font-size: 12px; }
  .stat-value { font-size: 29px; }
  .stat-foot { font-size: 11px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .recent-panel, .distribution-panel { grid-column: auto; }
  .dashboard-grid > .low-panel { grid-row: 3; }
  .dashboard-grid > .distribution-panel { grid-row: 4; }
  .auth-copy h1 { font-size: 39px; }
  .auth-copy > p { font-size: 14px; }
  .auth-form-wrap h2 { font-size: 28px; }
  .auth-highlights { flex-direction: column; gap: 17px; }
}
@media (max-width: 800px) {
  .sidebar { width: 210px; padding-left: 12px; padding-right: 12px; }
  .workspace { margin-left: 210px; width: calc(100% - 210px); }
  .brand { font-size: 22px; }
  .brand small { font-size: 7px; }
  .brand-mark { padding: 8px; }
  .shop-switch strong { max-width: 105px; font-size: 11px; }
  .shop-switch span:not(.shop-icon):not(.online-dot) { font-size: 10px; }
  .desktop-nav > a, .settings-link { font-size: 12px; gap: 9px; }
  .desktop-nav svg, .settings-link svg { width: 18px; height: 18px; }
  .topbar { height: 72px; }
  .heading-actions .btn { font-size: 12px; }
  .page-heading { gap: 18px; }
  .welcome-banner { padding: 20px; }
  .welcome-banner p { max-width: none; }
  .welcome-banner > .text-button { display: none; }
  .stat-grid { gap: 13px; }
  .stat-card { padding: 17px 16px; }
  .stat-value { font-size: 27px; }
  .auth-copy h1 { font-size: 36px; }
  .auth-main { padding-left: 28px; padding-right: 28px; }
}
@media (max-width: 900px) {
  .workspace { margin-left: 0; width: 100%; }
  .topbar { height: 72px; padding: 0 18px; gap: 8px; background: #fffffff2; border-bottom-color: #e2eafa; }
  .mobile-brand { font-size: 22px; color: #1b3154; letter-spacing: -.7px; }
  .mobile-brand > span { background: #315ce8; color: white; border-radius: 11px; padding: 8px; }
  .mobile-brand svg { width: 22px; height: 22px; }
  .topbar-right { gap: 4px; }
  .topbar-right > .icon-button { min-height: 38px; min-width: 32px; padding: 5px; border: 0; }
  .top-avatar { width: 31px; height: 31px; font-size: 11px; }
  main { padding: 27px 18px 17px; }
  h1 { font-size: 29px; line-height: 1.25; }
  .heading-eyebrow { font-size: 10px; letter-spacing: 1px; margin-bottom: 9px; }
  .page-heading p { font-size: 13px; line-height: 1.6; }
  .page-heading { gap: 19px; margin-bottom: 21px; }
  .heading-actions { gap: 10px; }
  .heading-actions .btn { min-height: 47px; font-size: 12px; padding-left: 11px; padding-right: 11px; }
  .btn { min-height: 45px; font-size: 12px; }
  .btn-small { min-height: 39px; font-size: 11px; }
  .welcome-banner { padding: 20px 17px; border-radius: 17px; gap: 13px; min-height: 110px; margin-bottom: 19px; }
  .welcome-icon { padding: 11px; border-radius: 13px; }
  .welcome-icon svg { width: 23px; height: 23px; }
  .welcome-banner h2 { font-size: 16px; }
  .welcome-banner p { font-size: 12px; line-height: 1.7; }
  .stat-grid { gap: 12px; margin-bottom: 20px; }
  .stat-card { padding: 17px 14px; border-radius: 15px; }
  .stat-card::before { left: 17px; width: 28px; }
  .stat-top { font-size: 11px; gap: 5px; margin-bottom: 13px; }
  .stat-icon, .stat-card.warning .stat-icon { padding: 7px; border-radius: 9px; }
  .stat-icon svg { width: 18px; height: 18px; }
  .stat-value { font-size: 25px; letter-spacing: -.8px; }
  .stat-value small { font-size: 11px; }
  .stat-foot { font-size: 10px; line-height: 1.6; margin-top: 10px; column-gap: 4px; row-gap: 0; }
  .stat-foot svg { width: 12px; height: 12px; }
  .dashboard-grid { gap: 18px; }
  .dashboard-grid > .low-panel, .dashboard-grid > .distribution-panel { grid-row: auto; }
  .panel { border-radius: 17px; }
  .panel-head { padding: 21px 18px 17px; }
  .panel-head h2 { font-size: 15px; }
  .panel-head p { font-size: 11px; }
  .panel-head select { font-size: 11px; min-height: 37px; padding: 8px; }
  .panel-head > .text-button { font-size: 11px; }
  .chart-summary { margin-left: 18px; }
  .chart-summary strong { font-size: 26px; }
  .chart-summary span { font-size: 11px; }
  .chart-area { height: 180px; padding-left: 9px; padding-right: 17px; }
  .chart-scale { width: 47px; font-size: 9px; }
  .chart-label { font-size: 10px; }
  .chart-foot { font-size: 10px; padding: 15px 18px; gap: 10px; }
  .low-list { padding: 0 18px 6px; }
  .low-info strong { font-size: 13px; }
  .low-info small { font-size: 11px; }
  .low-quantity { font-size: 13px; }
  .low-quantity small { font-size: 10px; }
  .panel-bottom .text-button { font-size: 12px; }
  .distribution-label { font-size: 12px; }
  .distribution-label span, .distribution-foot { font-size: 11px; }
  .distribution-item { margin-bottom: 21px; }
  .recent-table th { font-size: 10px; padding: 13px 12px; }
  .recent-table td { font-size: 12px; padding: 15px 12px; }
  .recent-table .product-name { font-size: 12px; }
  .recent-table .product-sub { font-size: 10px; }
  .recent-table .badge { font-size: 10px; padding: 5px 6px; }
  .toolbar-search { min-height: 48px; }
  .toolbar-search input { font-size: 14px; }
  .filters select { min-width: 0; max-width: 100%; font-size: 13px; min-height: 46px; }
  .tabs { padding: 0 16px; gap: 21px; }
  .tab { font-size: 12px; padding: 18px 0 15px; }
  .tab-count { font-size: 10px; }
  .tab svg { width: 15px; height: 15px; }
  .responsive-table tr { padding: 19px 17px; gap: 14px 16px; }
  .responsive-table td { font-size: 13px; }
  .responsive-table td::before { font-size: 11px; color: #647893; margin-bottom: 5px; }
  .responsive-table .product-cell { padding-right: 0 !important; margin-bottom: 3px; }
  .responsive-table .product-name { font-size: 14px; }
  .responsive-table .product-sub { font-size: 12px; }
  .responsive-table .numeric { font-size: 14px; }
  .responsive-table .badge { font-size: 11px; }
  .responsive-table .action-cell { position: static; grid-column: 1/-1; display: flex; justify-content: flex-end; border-top: 1px solid #edf1f8; padding-top: 11px !important; }
  .responsive-table .row-actions { display: flex; gap: 9px; width: 100%; }
  .responsive-table .row-actions .icon-button { display: inline-flex; justify-content: center; gap: 7px; flex: 1; min-height: 43px; border: 1px solid #e0e9f7; background: #f5f8fe; color: #45648e; font-size: 12px; }
  .action-label { display: inline; }
  .responsive-table .check-cell { right: 18px; top: 22px; }
  .responsive-table.price-table .product-cell { padding-right: 32px !important; }
  .responsive-table.price-table .action-cell .btn { min-width: 130px; }
  .table-footer { padding: 16px; font-size: 11px; flex-wrap: wrap; }
  .table-footer .page-details { max-width: none; }
  .pagination { gap: 6px; }
  .pagination button { min-height: 37px; min-width: 37px; font-size: 12px; }
  .price-header { padding: 21px 18px; }
  .price-header h3 { font-size: 15px; }
  .price-header p { font-size: 12px; line-height: 1.75; }
  .selected-bar { font-size: 12px; }
  .selected-bar .btn { font-size: 11px; }
  .metric-row { font-size: 13px; gap: 12px; }
  .metric-list { padding-left: 18px; padding-right: 18px; }
  .report-note { font-size: 12px; }
  .settings-form { padding-left: 18px; padding-right: 18px; }
  .field label, .auth-form-wrap .field label { font-size: 13px; }
  input:not([type=checkbox]), select, textarea { min-height: 48px; font-size: 16px; padding: 12px; }
  .toolbar-search input { font-size: 14px; min-height: 40px; padding: 0; }
  .modal { border-radius: 23px 23px 0 0; }
  .modal-head { padding: 23px 20px 18px; }
  .modal-head h2 { font-size: 22px; }
  .modal-head p { font-size: 12px; }
  .modal-footer .btn { min-height: 47px; font-size: 13px; }
  .form-note, .form-error { font-size: 12px; }
  .detail-meta { gap: 10px; }
  .detail-meta strong { font-size: 19px; }
  .detail-meta small { font-size: 11px; }
  .detail-row { font-size: 13px; }
  .stock-context { font-size: 12px; }
  .mobile-nav { background: #fffffff5; backdrop-filter: blur(18px); border-top-color: #dfe8f6; padding: 10px 9px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 25px #21345e08; }
  .mobile-nav > a, .mobile-nav > button { color: #6e819e; font-size: 10px; gap: 6px; font-weight: 600; min-height: 45px; border-radius: 12px; }
  .mobile-nav > a.active { background: #edf3ff; color: #315ce8; }
  .mobile-nav svg { width: 22px; height: 22px; }
  .mobile-add { background: #315ce8; color: white; width: 47px; height: 42px; border-radius: 14px; margin-top: -15px; box-shadow: 0 5px 14px #315ce82a; }
  .mobile-nav .mobile-add svg { width: 25px; height: 25px; }
  .app-footer { font-size: 10px; padding-top: 18px; padding-bottom: 112px; }
  .toast-region { bottom: calc(94px + env(safe-area-inset-bottom)); }
  .toast { font-size: 12px; padding: 15px; }
  .auth-main { background: linear-gradient(180deg,#eef4ff 0,#fff 260px); padding: 40px 25px; }
  .auth-logo-mobile { margin-bottom: 42px; }
  .auth-logo-mobile .brand { color: #203858; font-size: 28px; }
  .auth-logo-mobile .brand-mark { padding: 10px; }
  .auth-logo-mobile .brand small { color: #60789d; font-size: 8px; }
  .auth-form-wrap h2 { font-size: 30px; line-height: 1.25; }
  .auth-form-wrap > p { font-size: 14px; }
  .auth-form-wrap input { min-height: 51px; font-size: 16px; }
  .auth-form-wrap .btn { min-height: 51px; font-size: 14px; }
  .auth-bottom-note { font-size: 11px; }
  .checkbox-label { font-size: 12px; }
  .demo-badge { font-size: 9px; }
}
@media (max-width: 360px) {
  .topbar { padding: 0 14px; }
  .mobile-brand { font-size: 20px; }
  .mobile-brand > span { padding: 7px; margin-right: 7px; }
  .mobile-brand svg { width: 21px; height: 21px; }
  .topbar-right { gap: 2px; }
  .topbar-right > .icon-button { min-width: 29px; }
  main { padding-left: 14px; padding-right: 14px; }
  .stat-grid { gap: 10px; }
  .stat-card { padding: 16px 12px; }
  .stat-value { font-size: 22px; }
  .stat-top { font-size: 10px; }
  .stat-icon, .stat-card.warning .stat-icon { padding: 6px; }
  .stat-icon svg { width: 16px; height: 16px; }
  .stat-foot { font-size: 10px; }
  .welcome-banner { padding: 18px 14px; }
  .welcome-icon { display: none; }
  .recent-table th, .recent-table td { padding-left: 9px; padding-right: 9px; }
  .recent-table .badge { font-size: 9px; }
  .panel-head h2 { font-size: 14px; }
  .panel-head > .text-button { font-size: 10px; }
  .auth-main { padding-left: 21px; padding-right: 21px; }
  .auth-form-wrap h2 { font-size: 28px; }
}
