/* Approved graphite / lavender visual system. Layout and native file flows live in app.css. */
:root {
  --ink:#f7f4fb;
  --muted:#bcb2cc;
  --line:#ffffff23;
  --paper:#211c2c;
  --page:#17141f;
  --accent:#d4bdf6;
  --accent-dark:#e6d7fb;
  --accent-soft:#b594eb1c;
  --sand:#2d2539;
  --warn:#f1d58d;
  --warn-bg:#d7b56712;
  --red:#ffaba8;
  --radius:18px;
  color-scheme:dark;
  font-family:Montserrat,"Segoe UI",Arial,sans-serif;
  font-weight:400;
  font-size:14px;
  color:var(--ink);
}
html {min-height:100%;scrollbar-color:#665b79 var(--page)}
body {position:relative;isolation:isolate;background:var(--page);line-height:1.5}
::selection {background:#d4bdf64a;color:#fff}
button,a,input,select,textarea {touch-action:manipulation}
button:focus-visible,a:focus-visible {outline:2px solid var(--accent);outline-offset:4px}
input:focus,select:focus,textarea:focus {outline:2px solid #d4bdf680;outline-offset:2px;border-color:var(--accent)}
input,select,textarea {border-color:#ffffff35;border-radius:11px;background:#211c2c;color:var(--ink);min-height:46px;font-size:14px;padding:11px 13px;font-weight:400}
input::placeholder,textarea::placeholder {color:#a79db8;opacity:1}
input[readonly] {background:#ffffff04;color:var(--muted)}
select option {background:#25202f;color:var(--ink)}
input[type=checkbox] {accent-color:var(--accent);border-radius:4px}
input:-webkit-autofill {box-shadow:0 0 0 1000px #2b2438 inset;-webkit-text-fill-color:var(--ink);caret-color:var(--ink)}
label {font-size:13px;font-weight:400;gap:8px}
h1,h2,h3 {color:var(--ink)}
h1 {font-size:clamp(36px,3.5vw,58px);font-weight:300;letter-spacing:-1.6px;line-height:1.12;overflow-wrap:anywhere}
h2 {font-size:26px;font-weight:400;letter-spacing:-.6px}
h3 {font-size:17px;font-weight:500;letter-spacing:-.15px}
em {font-weight:300}
.eyebrow {color:#c7b8db;font-size:10px;font-weight:400;letter-spacing:1.8px;margin-bottom:14px}
.small {font-size:12px}
.button {background:transparent;border:1px solid #ffffff4d;border-radius:999px;color:var(--ink);font-size:13px;font-weight:500;min-height:44px;padding:10px 18px;gap:9px;line-height:1.4;transition:background .18s,border-color .18s,box-shadow .18s}
.button:hover:enabled,a.button:hover {background:#ffffff0d;border-color:#e0c9ff;box-shadow:0 0 0 1px #d4bdf612}
.button.primary {background:#fcfbff;border-color:#fcfbff;color:#21192d}
.button.primary:hover:enabled,a.button.primary:hover {background:#eee4fc;border-color:#eee4fc;box-shadow:0 0 24px #d4bdf61a}
.button.quiet {border-color:transparent;background:transparent}
.button.quiet:hover:enabled {background:#ffffff08;color:#fff}
.button.small {font-size:12px;min-height:38px;padding:8px 13px}
.button.wide {justify-content:center}
.button:disabled {opacity:.45;background:#ffffff0c;border-color:#ffffff28;color:#c7bfd3;box-shadow:none}
.button.danger {color:var(--red)}
.ui-icon {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.brand {font-weight:400;font-size:20px;letter-spacing:-.65px;gap:0}
.brand small {color:var(--muted);font-size:9px;letter-spacing:0;margin-top:8px;line-height:1.5}

/* A continuously moving, low-power background. A CSS layer covers devices without WebGL. */
.ambient-scene {position:fixed;inset:0 0 auto;height:620px;max-height:80vh;z-index:-1;pointer-events:none;overflow:hidden;background:#292035}
.ambient-scene::before {content:"";position:absolute;inset:-25%;background:radial-gradient(ellipse at 20% 25%,#ae91d5 0,transparent 38%),radial-gradient(ellipse at 65% 65%,#796093 0,transparent 45%),radial-gradient(ellipse at 80% 15%,#161020 0,transparent 48%);filter:blur(32px);animation:lavender-flow 22s ease-in-out infinite alternate}
.ambient-scene canvas {display:block;width:100%;height:100%;opacity:0;transition:opacity 1s}
.ambient-scene.shader-ready canvas {opacity:1}
.ambient-scene.shader-ready::before {opacity:0;animation:none}
.ambient-scene::after {content:"";position:absolute;inset:0;background:linear-gradient(180deg,#17141f38 0%,#17141f55 24%,#17141fdb 70%,var(--page) 100%)}
@keyframes lavender-flow {0%{transform:translate(-3%,-4%) scale(1.04) rotate(-6deg)}50%{transform:translate(5%,1%) scale(1.16) rotate(3deg)}100%{transform:translate(-1%,6%) scale(1.06) rotate(8deg)}}

/* The desktop wordmark and profile controls belong to the left navigation. */
.app-header {position:absolute;top:0;left:0;width:246px;height:111px;padding:28px 22px;background:transparent;border:0;align-items:flex-start;z-index:10}
.header-right {position:fixed;bottom:20px;left:18px;width:210px;gap:0}
#settings-button {width:100%;min-height:50px;justify-content:space-between;border-top:1px solid var(--line);border-radius:0;padding:16px 10px 8px;font-size:14px;font-weight:400}
.settings-user {font-size:11px;color:var(--muted);margin-left:auto}
.settings-label {margin-right:8px}
.app-layout {grid-template-columns:246px minmax(0,1fr);min-height:100vh;min-height:100svh}
.sidebar {position:sticky;top:0;height:100vh;height:100svh;overflow:auto;background:#17141fce;border-right:1px solid #ffffff2b;padding:123px 18px 92px;gap:0}
.sidebar>.button {padding:13px 12px;font-size:13px;min-height:48px;margin-bottom:29px}
.sidebar-heading {color:#d7cfe3;font-weight:400;font-size:14px;letter-spacing:0;padding:0 10px;margin-bottom:17px}
#job-count {color:var(--muted);font-size:12px}
.job-list {gap:5px}
.job-item {border:0;border-radius:11px;gap:11px;padding:15px 12px;color:var(--ink);align-items:flex-start;min-height:68px}
.job-item:hover {background:#ffffff08}
.job-item.active {background:#b99cd82b;box-shadow:inset 0 0 0 1px #d4bdf619}
.job-item strong {font-size:13px;font-weight:400;line-height:1.6}
.job-item small {font-size:10px;color:#b7acc7;margin-top:4px;line-height:1.7;overflow-wrap:anywhere}
.job-glyph {font-size:22px;color:#e0d4ee;padding-top:1px;line-height:1.2}
.job-glyph .ui-icon {width:20px;height:24px}
.sidebar-bottom {padding-top:35px}
.sidebar-bottom .button {font-size:11px;min-height:42px;justify-content:space-between;text-align:left;padding-left:10px;white-space:normal;color:#d1c6df}
.sidebar-bottom p {font-size:9px;color:#a297b3;border-color:var(--line);margin-top:10px;padding:14px 10px 0}
.workspace {max-width:1880px;padding:44px 34px 52px;min-width:0}
.workspace-head {margin-bottom:30px;gap:22px;align-items:center}
.workspace-head .eyebrow {font-size:9px;opacity:.8;margin-bottom:12px}
.workspace-head h1 {margin-bottom:10px}
.workspace-head .subtitle {font-size:14px;font-style:italic;color:#d1c5e0;line-height:1.6}
.head-actions {gap:10px;flex-wrap:wrap;justify-content:flex-end;padding:0}
.head-actions .button {font-size:12px;padding:11px 16px;min-height:44px}
.head-actions .files-shortcut {border-color:#ffffff9c}
.stats {gap:0;border-bottom:1px solid var(--line);margin-bottom:0;padding:0 0 25px;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(180px,1.3fr)}
.stat {background:transparent;border:0;border-right:1px solid var(--line);border-radius:0;padding:0 22px}
.stat:first-child {padding-left:0}
.stat:last-child {border-right:0;padding-right:0}
.stat>span {font-size:11px;line-height:1.6;margin-bottom:8px;color:#c2b8d0}
.stat strong {font-size:29px;font-weight:400;letter-spacing:-.8px}
.stat small {font-size:15px;color:#bcb0cd}
.stat .green {color:#eadff8}
.stat .amber {color:var(--warn)}
.warehouse-card {background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:24px 0;gap:30px;grid-template-columns:minmax(230px,.95fr) minmax(280px,1.5fr);margin-bottom:28px}
.warehouse-card label {font-size:12px;color:#cfc5de;letter-spacing:0}
.warehouse-card select {font-size:14px;font-weight:400;min-height:46px;background:#ffffff07;border-color:#ffffff50}
.warehouse-info {color:#c0b5cf;border-color:var(--line);font-size:12px;line-height:1.8;padding-left:28px}
.warehouse-info.empty {color:#d8c59c}
.tabs {gap:30px;margin-bottom:24px;border-bottom-color:#ffffff45}
.tab {font-size:15px;font-weight:400;padding:0 7px 16px;color:#c4b8d4;gap:8px;background:transparent;border:0;border-bottom:3px solid transparent;border-radius:0}
.tab.active {background:transparent;border:0;border-bottom:3px solid var(--accent);color:#fff}
.tab b {background:transparent;color:#a99abf;font-size:10px;font-weight:400;width:15px;height:15px}
.tab.active b {background:transparent;color:var(--accent)}
.pill {border-radius:999px;font-size:10px;background:#b594eb16;color:#d5c4e8;font-weight:400;padding:4px 8px}
.pill.success {background:#d4bdf616;color:#e4d2fa}
.pill.warning {background:var(--warn-bg);color:var(--warn)}
.table-card {border:0;border-radius:0;background:#1b1723}
.table-toolbar {padding:16px 0 18px;gap:12px;background:var(--page);border-color:#ffffff30;flex-wrap:wrap}
.table-toolbar .left,.table-toolbar .right {gap:10px;flex-wrap:wrap}
.table-toolbar .right {margin-left:auto}
.table-toolbar .left>span {font-size:13px;font-weight:500;margin-right:6px}
.check-label {font-size:12px;color:#c0b4d0;font-weight:400;gap:8px}
.table-toolbar input.search {width:170px;font-size:12px;min-height:38px;padding:8px 12px;border-radius:999px;background:#ffffff04}
.table-scroll {max-height:66vh}
.goods-table {min-width:1020px;font-size:13px;background:#1b1723}
.goods-table th {background:#211c2a;color:#d3c9e0;font-size:11px;font-weight:500;padding:16px 12px;letter-spacing:0;border-color:#ffffff40}
.goods-table td {padding:17px 12px;border-color:#ffffff1f;line-height:1.65}
.goods-table tbody tr:hover {background:#ffffff04}
.goods-table .source-name {min-width:215px;max-width:380px;font-size:13px;font-weight:400}
.goods-table .source-name .product-name {display:block;color:#f4f0fa}
.goods-table .source-name .product-match {display:block;color:#c5b8d4;font-size:12px;font-style:italic;margin-top:5px;font-weight:300;line-height:1.6}
.goods-table .source-name small {font-size:10px;color:#a99cb9;margin-top:6px;font-weight:400}
.goods-table .code {font-size:12px;font-family:Consolas,"Liberation Mono",monospace;letter-spacing:0;color:#e8ddf4}
.goods-table .missing {color:var(--red)}
.goods-table .row-action {gap:8px;justify-content:space-between}
.reviewed {font-size:12px;color:#e3d5f3;font-weight:400}
.review-button {font-size:11px;min-height:36px;border:1px solid #e0c58062;border-radius:999px;color:#f1d58d;background:transparent;padding:7px 12px;font-weight:400}
.review-button:hover:enabled {background:#d7b56710;border-color:#e0c580}
.review-button:disabled {color:#a89dba;border-color:#ffffff28}
.icon-button {width:32px;height:34px;min-width:32px;border:1px solid #ffffff30;border-radius:9px;color:#cdbbdf;font-size:17px;background:transparent}
.icon-button:hover {background:#d4bdf60d;border-color:#bba0dc}
.table-footer {padding:15px 2px;color:#a99cb9;background:var(--page);font-size:11px;border-color:#ffffff30;line-height:1.7;flex-wrap:wrap}
.hint {background:#b594eb08;border-color:#b594eb26;border-radius:12px;color:#bfb0d0;font-size:12px;line-height:1.8;padding:16px 18px;margin-top:20px}
.hint.warning {background:var(--warn-bg);border-color:#e0c58030;color:var(--warn)}
.hint.error {background:#ff9c9810;border-color:#ff9c9838;color:var(--red)}
.empty-workspace {max-width:1050px;margin:22px auto}
.empty-workspace h1 {font-size:clamp(38px,4vw,62px);max-width:760px;line-height:1.13}
.empty-workspace>p {font-size:15px;color:#c9bdd8;max-width:640px;line-height:1.9}
.dropzone {border:1px solid #cbb1ea73;border-radius:24px;background:#211b2ad1;padding:44px 32px;margin:34px 0 29px}
.dropzone:hover,.dropzone.dragover {background:#30253dd9;border-color:#e1c8ff}
.upload-icon {background:transparent;color:#e7d5ff;border:1px solid #d4bdf645;border-radius:50%;width:60px;height:60px;font-size:32px;margin-bottom:22px}
.dropzone h2 {font-size:24px;font-weight:400;margin-bottom:12px}
.dropzone p {font-size:14px;color:#bfb1d1}
.dropzone small {font-size:11px;color:#ac9dbd;margin-top:19px}
.dropzone .button {min-width:235px;font-size:15px;min-height:48px}
.steps-grid {gap:24px}
.step-card {background:transparent;border:0;border-top:1px solid #ffffff32;border-radius:0;padding:22px 0}
.step-card b {color:#cdb3ed;font-size:12px;font-weight:400;margin-bottom:18px}
.step-card h3 {font-size:15px;font-weight:400;margin-bottom:10px}
.step-card p {font-size:12px;line-height:1.9;color:#b5a7c6}
.form-section {background:#1d1826;border-color:#ffffff25;border-radius:16px;padding:27px;margin-bottom:20px}
.form-section h3 {font-size:18px;font-weight:400}
.form-section label {font-size:12px;color:#d4c9e1}
.form-section input,.form-section select {font-size:14px}
.form-grid {gap:20px 24px}
.address-summary {font-size:12px;line-height:1.9;color:#b7a9c9;margin-top:20px}
.saved-indicator {font-size:12px;color:#b6a7ca}
.readiness-card {background:#1d1826;border-color:#ffffff25;border-radius:16px;padding:25px}
.readiness-card h3 {font-size:16px;font-weight:400;align-items:flex-start}
.readiness-card ul {font-size:13px;line-height:1.9;color:var(--warn)}
.readiness-card .ready-note {font-size:13px;color:#d6bdf4}
.ready-banner {background:#b594eb12;border:1px solid #d4bdf640;border-radius:16px;padding:26px}
.ready-banner h3 {color:#eadcfb;font-size:18px;font-weight:400}
.ready-banner p {color:#bdadd1;font-size:13px}
.file-archive .form-section {background:transparent;border:0;border-bottom:1px solid #ffffff3a;border-radius:0;padding:18px 0 28px;margin-bottom:20px}
.file-archive .form-section h3 {font-size:24px;font-weight:400}
.file-archive .section-head {margin-bottom:7px;align-items:center}
.archive-note {font-size:13px;color:#b9aacb;margin:10px 0 18px}
.archived-file {gap:24px;padding:25px 0;border-color:#ffffff26}
.archived-file .file-details {display:flex;gap:17px;align-items:center;min-width:0}
.file-type {display:grid;place-items:center;flex:0 0 47px;width:47px;height:58px;border:1px solid #c9b4e65c;border-radius:7px 15px 7px 7px;color:#d7c1f5;font-size:10px;font-weight:500;letter-spacing:.3px}
.file-details>div {min-width:0}
.archived-file strong {font-size:14px;font-weight:400;line-height:1.7;color:#f2ebfa}
.archived-file p {font-size:12px;color:#b5a5c9;line-height:1.8;margin-top:6px}
.file-archive .button {min-width:192px;min-height:46px;font-size:13px;padding:11px 22px;white-space:normal;text-align:center}
.mobile-download-note {color:var(--muted);font-size:14px;line-height:1.8}
.modal {background:#211b2c;border-color:#9f87bc80;border-radius:22px;color:var(--ink);box-shadow:0 35px 120px #0009}
.modal::backdrop {background:#100c18b3;backdrop-filter:blur(8px)}
.modal-head {padding:25px 27px;border-color:#ffffff28}
.modal-head h2 {font-weight:400;font-size:24px}
.modal-body {padding:25px 27px}
.modal-body .source-block {background:#ffffff04;border-color:#ffffff2b;border-radius:10px;font-size:13px;padding:16px}
.source-block small {font-size:10px;color:#b19acb}
.modal-footer {background:#ffffff03;border-color:#ffffff26;padding:20px 27px}
.product-select {font-size:13px;min-height:170px}
.product-select option {border-color:#ffffff20;padding:11px 7px}
.row-notes {font-size:12px;color:#c4b5d6;line-height:1.9}
.settings-section {border-color:#ffffff25}
.settings-section p {font-size:13px;color:#c0b0d1}
.settings-section h3 {font-size:18px;font-weight:400}
.settings-section label {font-size:12px}
.settings-section input {font-size:14px}
.credentials {background:#b594eb14;color:#eadcfb;border:1px solid #d4bdf63b;border-radius:10px;overflow-wrap:anywhere;white-space:pre-wrap}
.user-line {font-size:13px;border-color:#ffffff20;padding:12px 0;gap:15px}
.user-line strong {font-weight:500}
.download-filename {background:#ffffff05;border:1px solid #ffffff20;border-radius:10px;color:#d9c9ec;padding:15px}
.form-error {font-size:13px;color:var(--red);line-height:1.7}
.toast {background:#352840;border:1px solid #bfa0dc6b;color:#f9f3ff;border-radius:16px;box-shadow:0 12px 45px #0005;font-size:13px}
.toast.error {background:#46292f;border-color:#e5a29e70}
.busy-overlay {background:#17111ee6;backdrop-filter:blur(14px);color:#ece0fc;font-size:16px;gap:22px}
.spinner {border-color:#d4bdf633;border-top-color:#e4cffc;width:34px;height:34px}
#upload-progress {height:7px;accent-color:var(--accent);border:0;border-radius:999px;overflow:hidden;background:#ffffff12}
#upload-progress::-webkit-progress-bar {background:#ffffff12;border-radius:999px}
#upload-progress::-webkit-progress-value {background:var(--accent);border-radius:999px}
#upload-progress::-moz-progress-bar {background:var(--accent);border-radius:999px}
.upload-status {color:#bba6d2;font-size:14px}
.loading-state {padding:80px 24px;color:#c5b4d8;font-size:15px}

/* Sign-in: the same typography, glass form and fluid background as the approved concept. */
.login-page {min-height:100vh;min-height:100svh;display:flex;flex-direction:column;align-items:center;padding:32px clamp(24px,4vw,72px);background:#17141f}
.login-page .ambient-scene {height:100%;max-height:none;background:#342642}
.login-page .ambient-scene::after {background:linear-gradient(90deg,#17141f16,#17141f66 65%,#17141f70),linear-gradient(0deg,#17141f66,transparent 45%)}
.login-header {display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1600px;padding:0 0 38px;gap:20px}
.login-header .brand {font-size:clamp(23px,2.2vw,34px);letter-spacing:-.9px}
.login-header>span {font-size:15px;color:#f0e7f8}
.login-layout {display:grid;grid-template-columns:1.4fr 1fr;align-items:center;gap:5vw;width:100%;max-width:1600px;min-height:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;flex:1;margin:25px 0}
.login-intro {background:transparent;padding:0;display:block;min-width:0}
.login-intro .eyebrow {display:none}
.login-intro h1 {font-size:clamp(47px,5.2vw,88px);font-weight:300;line-height:1.12;letter-spacing:-2.5px;margin-bottom:30px;overflow-wrap:normal}
.login-intro h1 em {font-weight:300}
.login-description {font-size:clamp(17px,1.7vw,26px);max-width:760px;font-weight:300;line-height:1.65;color:#f1e6fa;margin:0}
.login-card {padding:36px 34px 32px;max-width:550px;width:100%;border:1px solid #d6c6ea7a;border-radius:24px;background:#d7c6e80b;backdrop-filter:blur(20px);box-shadow:0 20px 80px #120d1b21;justify-self:end}
.login-card h2 {font-size:clamp(26px,2.4vw,38px);font-weight:400;line-height:1.3;letter-spacing:-.9px;margin-bottom:10px}
.login-card>.muted {color:#d7c9e7;font-size:13px;margin-bottom:27px}
.login-card label {font-size:14px;font-weight:400;gap:9px;margin-bottom:22px}
.login-card input {font-size:16px;min-height:52px;padding:13px 16px;border-color:#d5c7e593;border-radius:11px;background:#ffffff03}
.login-card input::placeholder {color:#cbbdd9}
.login-card .form-error {margin:0 0 10px;min-height:0}
.login-card .button {margin:5px 0 0;min-height:54px;font-size:18px;font-weight:500;justify-content:center}
.login-footnote {font-size:12px;font-weight:300;color:#ede1f8;line-height:1.8;margin:25px 0 0;max-width:100%}
.login-footer {display:flex;justify-content:space-between;gap:24px;width:100%;max-width:1600px;padding-top:38px;color:#dfd0ed;font-size:10px;font-weight:300;line-height:1.7}

@media(min-width:1700px) {
  .workspace {padding:50px 48px 64px}
  .goods-table .source-name {font-size:14px;max-width:460px}
  .goods-table .source-name .product-match {font-size:13px}
  .goods-table .code {font-size:13px}
  .goods-table th {font-size:12px}
  .goods-table td {padding-top:19px;padding-bottom:19px}
  .head-actions .button {font-size:14px}
}
@media(max-width:1250px) and (min-width:801px) {
  .app-layout {grid-template-columns:220px minmax(0,1fr)}
  .app-header {width:220px;padding:29px 18px}
  .brand {font-size:18px}
  .header-right {left:14px;width:192px}
  .sidebar {padding-left:14px;padding-right:14px}
  .workspace {padding:34px 25px 44px}
  .workspace-head {display:block}
  .head-actions {justify-content:flex-start;margin-top:20px}
  .stats {grid-template-columns:repeat(3,minmax(0,1fr)) minmax(160px,1.3fr)}
  .stat {padding:0 16px}.stat strong {font-size:25px}.stat>span {font-size:10px}
  .warehouse-card {gap:20px;grid-template-columns:minmax(190px,.9fr) minmax(200px,1.1fr)}
  .warehouse-info {padding-left:20px;font-size:11px}
  .tabs {gap:20px}.tab {font-size:13px;gap:5px;padding-left:2px;padding-right:2px}
  .login-layout {gap:4vw;grid-template-columns:1.25fr 1fr}
  .login-intro h1 {font-size:clamp(44px,5vw,62px)}
  .login-card {padding:30px 26px}
}
@media(max-width:800px) {
  body {font-size:16px}
  input,select,textarea {font-size:16px;min-height:48px}
  label {font-size:14px}
  .ambient-scene {height:530px;max-height:75vh}
  .ambient-scene::after {background:linear-gradient(180deg,#17141f55 0%,#17141f88 30%,var(--page) 100%)}
  .app-header {position:relative;width:100%;height:auto;min-height:78px;align-items:center;gap:12px;padding:18px max(16px,env(safe-area-inset-right)) 16px max(16px,env(safe-area-inset-left));border-bottom:1px solid #ffffff25;background:#17141f66}
  .brand {font-size:20px;line-height:1.3;flex-shrink:1;min-width:0}
  .brand small {font-size:9px;margin-top:6px}
  .header-right {position:static;width:auto;flex-shrink:0}
  #settings-button {width:auto;max-width:110px;min-height:44px;border:1px solid #ffffff30;border-radius:999px;padding:8px 13px;gap:6px;display:flex;font-size:13px}
  .settings-label {display:none}.settings-user {font-size:12px;color:#e9dcf8;overflow:hidden;text-overflow:ellipsis;margin:0}
  .app-layout {display:block;min-height:calc(100svh - 78px)}
  .sidebar {position:static;height:auto;overflow:visible;display:block;border:0;border-bottom:1px solid #ffffff25;padding:18px max(16px,env(safe-area-inset-right)) 20px max(16px,env(safe-area-inset-left));background:#17141f40}
  .sidebar>.button {width:100%;min-height:50px;font-size:16px;margin:0;padding:12px 18px}
  .sidebar-heading,.sidebar-bottom,.sidebar .job-list {display:none}
  .mobile-supply-picker {display:flex;font-size:13px;font-weight:400;gap:9px;margin-top:18px;color:#c9b8db}
  .mobile-supply-picker select {background:#211b2b;border-color:#ffffff3b;font-size:16px;min-height:48px}
  .workspace {width:100%;max-width:100%;padding:28px max(16px,env(safe-area-inset-right)) calc(36px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
  .workspace-head {display:block;margin-bottom:27px}
  .workspace-head h1 {font-size:36px;letter-spacing:-1.3px;line-height:1.15}
  .workspace-head .eyebrow {font-size:9px;letter-spacing:1.2px}
  .workspace-head .subtitle {font-size:13px;margin-top:13px}
  .head-actions {display:flex;gap:10px;justify-content:stretch;margin-top:23px;width:100%;flex-wrap:wrap}
  .button,.button.small,.head-actions .button {font-size:15px;min-height:48px;padding:11px 17px;white-space:normal}
  .head-actions .button {flex:1 1 calc(50% - 10px)}
  .head-actions .primary {flex-basis:100%}
  .stats {grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 0;padding:0 0 24px}
  .stat {padding:0 0 0 20px;border-right:0;border-left:1px solid #ffffff25}
  .stat:nth-child(odd) {padding-left:0;border-left:0}
  .stat>span {font-size:11px;line-height:1.6;margin-bottom:8px}
  .stat strong {font-size:28px;font-weight:400}.stat small {font-size:14px}
  .warehouse-card {display:block;padding:23px 0;margin-bottom:24px;background:transparent}
  .warehouse-card label {font-size:13px;gap:10px}
  .warehouse-card select {min-height:48px;font-size:16px;background:#211b2b}
  .warehouse-info {border:0;padding:15px 0 0;font-size:12px;line-height:1.9}
  .tabs {position:sticky;top:0;z-index:8;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;background:#17141ff5;border-bottom:1px solid #ffffff38;margin:0 -1px 22px;padding-top:5px;backdrop-filter:blur(12px)}
  .tab {font-size:14px;min-height:49px;justify-content:center;padding:10px 5px;gap:6px;border-bottom-width:2px}
  .tab.active {border-bottom-width:2px}
  .tab b {display:none}.tab .pill {font-size:10px;padding:3px 6px}
  .table-card {background:transparent;overflow:visible}
  .table-toolbar {display:block;border:0;padding:0;background:transparent}
  .table-toolbar .left {display:flex;justify-content:space-between;align-items:center;gap:10px}
  .table-toolbar .left>span {font-size:14px;max-width:50%;line-height:1.6}
  .table-toolbar .left .button {font-size:13px;padding:10px 0 10px 8px}
  .table-toolbar .right {display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:15px}
  .check-label {font-size:13px;min-height:44px}
  .mobile-select-all {display:flex;width:100%;order:3;min-height:40px}
  .table-toolbar .right>.button {margin-left:auto;flex:0 1 auto;font-size:13px;padding:10px 13px}
  .table-toolbar input.search {width:100%;flex:1 1 100%;font-size:16px;min-height:48px;order:2;border-radius:12px;background:#211b2b}
  .table-scroll {overflow:visible;max-height:none;margin-top:14px}
  .goods-table,.goods-table tbody {display:block;min-width:0;max-width:100%;width:100%;background:transparent;font-size:16px}
  .goods-table thead {display:none}
  .goods-table tbody tr {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:17px 12px;border:1px solid #bda3dc45;border-radius:17px;background:#211a2bed;padding:19px 17px;margin-bottom:16px}
  .goods-table tbody tr:hover {background:#211a2b}
  .goods-table td {display:block;border:0;padding:0;min-width:0;max-width:100%;width:auto;line-height:1.7;overflow-wrap:anywhere}
  .goods-table td::before {content:attr(data-label);display:block;font-size:11px;color:#b4a0ca;font-weight:400;margin-bottom:6px}
  .goods-table .source-name {grid-column:1/-1;min-width:0;max-width:100%;font-size:16px;font-weight:400}
  .goods-table .source-name .product-match {font-size:13px;line-height:1.8;margin-top:8px}
  .goods-table .source-name small {font-size:11px;margin-top:8px;color:#aa96c0}
  .goods-table .num {font-size:16px;white-space:normal}
  .goods-table .num[data-label="Позиция"] {display:none}
  .goods-table .code {font-size:14px;letter-spacing:0;white-space:normal}
  .goods-table .row-select {grid-column:1/-1}
  .goods-table .row-select::before,.goods-table .row-controls::before {display:none}
  .row-select label {flex-direction:row;justify-content:flex-start;gap:10px;min-height:44px;color:#c8b5dd;font-size:13px}
  .mobile-row-label {display:inline}
  .goods-table .row-controls {grid-column:1/-1;border-top:1px solid #ffffff1f;padding-top:14px}
  .goods-table td[colspan] {grid-column:1/-1}
  .goods-table .row-action {justify-content:space-between;gap:12px}
  .review-button {min-height:48px;font-size:14px;padding:10px 15px;flex:1;white-space:normal}
  .reviewed {font-size:14px;line-height:1.5}
  .icon-button {min-width:48px;min-height:48px;height:48px;font-size:23px;border-radius:12px}
  .table-footer {font-size:11px;border-top:0;padding:5px 0 12px;gap:10px}
  .hint {padding:16px;font-size:13px;line-height:1.9;margin-top:16px}
  .form-section,.readiness-card {padding:20px 17px;border-radius:16px;background:#211a2b}
  .form-section h3,.readiness-card h3 {font-size:19px}
  .form-section label {font-size:13px}
  .form-section input,.form-section select,.settings-section input {font-size:16px}
  .form-grid,.form-grid.three {grid-template-columns:1fr;gap:19px}
  .section-head {flex-wrap:wrap;gap:15px}.section-head .button {max-width:100%}
  .address-summary,.saved-indicator {font-size:13px}
  .form-actions {flex-direction:column;align-items:stretch;gap:12px}.form-actions>.button {width:100%}
  .readiness-grid {grid-template-columns:1fr}
  .readiness-card ul,.readiness-card .ready-note,.ready-banner p {font-size:14px}
  .ready-banner {flex-direction:column;align-items:stretch;padding:20px}.ready-banner .button {width:100%}
  .empty-workspace {margin:8px 0}
  .empty-workspace h1 {font-size:39px;line-height:1.14;letter-spacing:-1.4px}
  .empty-workspace>p {font-size:15px;line-height:1.9}
  .dropzone {padding:28px 20px;margin:27px 0 24px;border-radius:21px}
  .dropzone h2 {font-size:23px;line-height:1.4}.dropzone p {font-size:14px;line-height:1.8}
  .dropzone small {font-size:11px;line-height:1.8}.dropzone .button {width:100%;min-width:0}
  .desktop-upload-note {display:none}.mobile-upload-note {display:block}
  .steps-grid {display:block}.step-card {padding:22px 0}.step-card h3 {font-size:17px}.step-card p {font-size:14px}.step-card b {margin-bottom:10px}
  .file-archive .form-section {padding:12px 0 25px;background:transparent}
  .file-archive .form-section h3 {font-size:23px}
  .file-archive .button {font-size:15px;min-height:49px;min-width:0;width:100%}
  .file-archive .section-head {align-items:stretch;gap:17px}
  .archived-file {flex-direction:column;align-items:stretch;gap:19px;padding:25px 0}
  .archived-file .file-details {align-items:flex-start;gap:13px}
  .file-type {flex-basis:39px;width:39px;height:49px;font-size:9px}
  .archived-file strong {font-size:14px;line-height:1.9}.archived-file p {font-size:12px;line-height:1.9}
  .archive-note {font-size:13px;line-height:1.9}
  .mobile-download-note {display:block;font-size:13px;line-height:1.9;margin:0 0 20px}
  .download-modal .mobile-download-note {margin:18px 0 0}
  .modal {max-height:calc(100svh - 24px);width:calc(100vw - 24px);margin:auto;overflow-y:auto;border-radius:20px}
  .modal-head,.modal-body {padding:21px 18px}.modal-head {gap:12px}.modal-head h2 {font-size:23px}
  .modal-footer {padding:18px 18px calc(18px + env(safe-area-inset-bottom));flex-wrap:wrap;gap:10px}
  .modal-footer>.button {width:100%}.modal-footer .push-left {margin-right:0}
  .modal-body .source-block,.settings-section p,.user-line {font-size:14px}
  .product-select,.product-select option {font-size:16px}.product-select {min-height:190px}
  .row-notes {font-size:13px}.settings-section label {font-size:13px}
  .user-line {flex-wrap:wrap;gap:7px}
  .toast {width:calc(100vw - 32px);max-width:480px;font-size:14px;bottom:calc(16px + env(safe-area-inset-bottom));padding:15px 17px}
  .busy-overlay {padding:24px;font-size:16px;text-align:center}.busy-overlay .button {min-width:220px}
  .login-page {padding:24px max(18px,env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left))}
  .login-header {max-width:510px;padding:0 0 19px;align-items:center}
  .login-header .brand {font-size:23px;line-height:1.3}.login-header>span {font-size:11px;text-align:right;max-width:90px}
  .login-layout {display:block;max-width:510px;min-height:0;flex:0 1 auto;margin:15px 0 0}
  .login-intro {padding:0;margin:5px 0 28px;display:block}
  .login-intro h1 {font-size:41px;line-height:1.16;letter-spacing:-1.5px;margin-bottom:17px}
  .login-description {font-size:16px;font-weight:300;line-height:1.8;max-width:400px}
  .login-card {padding:27px 22px;border-radius:22px;background:#d7c6e80a}
  .login-card h2 {font-size:28px;letter-spacing:-.75px;margin-bottom:11px}
  .login-card>.muted {font-size:13px;line-height:1.8;margin-bottom:25px}
  .login-card label {font-size:14px;margin-bottom:21px}.login-card input {font-size:16px;min-height:52px}
  .login-card .button {min-height:52px;font-size:17px;margin-top:2px}
  .login-footnote {font-size:12px;margin-top:24px;line-height:1.9}
  .login-footer {max-width:510px;padding-top:27px;font-size:10px;flex-direction:column;gap:7px}
}
@media(max-width:365px) {
  .brand {font-size:18px}.brand small {font-size:8px}
  #settings-button {padding:8px 10px;max-width:90px}
  .workspace-head h1 {font-size:32px}.empty-workspace h1 {font-size:34px}
  .stat strong {font-size:25px}
  .login-intro h1 {font-size:35px;letter-spacing:-1.2px}
  .login-header>span {display:none}
  .login-card {padding:24px 18px}.login-card h2 {font-size:25px}
}
@media(prefers-reduced-motion:reduce) {
  .ambient-scene::before {animation:none}
  .ambient-scene canvas,.button {transition:none}
}
