:root {
  color-scheme: light;
  --bg: #f3f5f8;
  --surface: #ffffff;
  --ink: #172235;
  --muted: #687386;
  --line: #e5eaf0;
  --navy: #142235;
  --blue: #2863e7;
  --blue-dark: #174dbf;
  --blue-soft: #edf3ff;
  --field-hint: #b8c0cc;
  --select-edge-space: 10.2px;
  --green: #16845b;
  --green-soft: #e9f7f1;
  --amber: #8b5d0a;
  --amber-soft: #fff7df;
  --red: #b42318;
  --red-soft: #fff0ee;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.login-screen {
  min-height: 100vh;
  padding: 32px 18px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(69, 117, 231, .18), transparent 32%),
    linear-gradient(145deg, #101d2e, #1d3048);
}
.login-card { width: min(100%, 410px); padding: 34px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: #fff; box-shadow: 0 28px 80px rgba(3, 13, 27, .32); }
.login-brand { margin-bottom: 24px; }
.login-brand .brand__mark { display: block; }
.login-kicker { margin: 0 0 7px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.login-card h1 { font-size: 30px; }
.login-lead { margin: 8px 0 24px; color: var(--muted); }
.login-form { padding: 0; }
.login-form .field { margin-bottom: 15px; }
.login-form .button { margin-top: 5px; }

.topbar { background: var(--navy); color: #fff; }
.topbar__inner {
  width: min(1440px, calc(100% - 40px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar__left { min-width: 0; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.01em; }
.brand__mark { width: 22px; height: 22px; border: 2px solid #7aa2ff; border-radius: 5px; box-shadow: inset 7px 0 0 #2863e7; }
.section-nav { display: flex; align-items: center; gap: 5px; }
.nav-group { position: relative; }
.section-link { padding: 8px 11px; border: 0; border-radius: 7px; background: transparent; color: #afbdd0; font-size: 13px; font-weight: 650; }
.section-link[aria-current="page"] { background: #243951; color: #fff; }
.nav-trigger { display: inline-flex; align-items: center; gap: 7px; }
.nav-trigger i { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.nav-group.is-open .nav-trigger i { transform: rotate(225deg) translate(-1px, -1px); }
.nav-menu { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; min-width: 225px; padding: 6px; display: none; border: 1px solid #dce3eb; border-radius: 9px; background: #fff; box-shadow: 0 14px 36px rgba(9, 24, 43, .2); }
.nav-menu::before { content: ""; position: absolute; left: 0; bottom: 100%; width: 100%; height: 8px; }
.nav-group.is-open .nav-menu, .nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu { display: grid; }
.nav-menu__item { width: 100%; min-height: 38px; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: #334155; text-align: left; font-size: 13px; font-weight: 650; white-space: nowrap; }
.nav-menu__item:hover, .nav-menu__item[aria-current="page"] { background: var(--blue-soft); color: var(--blue-dark); }
.auth-actions { display: flex; align-items: center; gap: 7px; }
.current-user { max-width: 220px; overflow: hidden; color: #dbe4ef; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.auth-button {
  width: 34px;
  height: 34px;
  padding: 7px;
  border: 1px solid #405269;
  border-radius: 8px;
  background: #1b2d43;
  color: #bdc9d8;
}
.auth-button:hover { border-color: #70839a; background: #243951; color: #fff; }
.auth-button svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.page-shell { width: min(1440px, calc(100% - 40px)); margin: 0 auto; padding: 36px 0 48px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
h1 { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.12; letter-spacing: -.035em; }
.lead { max-width: 1000px; margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.unit-badge { flex: 0 0 auto; padding: 9px 13px; background: #e9edf3; border-radius: 8px; color: #5b6677; font-size: 13px; }

.notice { margin-bottom: 18px; padding: 13px 16px; border: 1px solid; border-radius: 9px; font-size: 14px; }
.notice--warning { color: var(--amber); background: var(--amber-soft); border-color: #efdaa6; }
.notice--error { color: var(--red); background: var(--red-soft); border-color: #f1c1bc; }
.no-access { max-width: 680px; margin: 70px auto; padding: 44px; text-align: center; }
.no-access h1 { font-size: 28px; }
.no-access p { margin: 12px 0 0; color: var(--muted); }
.section-kicker { margin: 0 0 6px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.page-tabs { margin: -5px 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.page-tab { min-height: 38px; padding: 0 14px; border: 1px solid #d5dce5; border-radius: 8px; background: #fff; color: #526075; font-size: 13px; font-weight: 700; }
.page-tab[aria-selected="true"] { border-color: #9bb6f7; background: var(--blue-soft); color: var(--blue-dark); }
.price-placeholder { min-height: 280px; padding: 34px; }
.price-placeholder h2 { margin: 0 0 9px; font-size: 22px; }
.price-placeholder p { margin: 0; color: var(--muted); }

.offset-workspace { display: grid; grid-template-columns: minmax(360px, 450px) minmax(0, 1fr); gap: 20px; align-items: start; }
.offset-form-card { overflow: hidden; }
.offset-result-card { min-height: 720px; overflow: hidden; }
.offset-empty { min-height: 648px; padding: 54px 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.offset-empty__sheet { width: 190px; height: 132px; margin-bottom: 25px; padding: 16px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 6px; border: 7px solid #dce3eb; border-radius: 5px; background: #f8fafc; transform: rotate(-2deg); }
.offset-empty__sheet span { border: 1px solid #9db8f7; border-radius: 2px; background: #dce8ff; }
.offset-empty h3 { margin: 0 0 8px; font-size: 19px; }
.offset-empty p { max-width: 490px; margin: 0; color: var(--muted); font-size: 14px; }
.offset-choice-group { margin: 0 0 17px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; }
.offset-choice-group legend { padding: 0 6px; color: #354052; font-size: 14px; font-weight: 700; }
.offset-segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.offset-segments label { cursor: pointer; }
.offset-segments input { position: absolute; opacity: 0; pointer-events: none; }
.offset-segments span { min-height: 38px; display: grid; place-items: center; border: 1px solid #d5dce5; border-radius: 7px; color: #526075; font-size: 13px; font-weight: 750; }
.offset-segments input:checked + span { border-color: #9bb6f7; background: var(--blue-soft); color: var(--blue-dark); }
.offset-segments input:focus-visible + span { outline: 3px solid rgba(40, 99, 231, .25); outline-offset: 2px; }
.offset-operation-row, .offset-check-row { min-height: 43px; display: flex; align-items: center; gap: 9px; }
.offset-operation-row { margin-bottom: 5px; }
.offset-operation-row select { flex: 1 1 auto; }
.offset-check-row { justify-content: space-between; color: #465267; font-size: 13px; font-weight: 600; }
.offset-check-row span { display: flex; align-items: center; gap: 7px; }
.offset-check-row input[type="checkbox"] { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); }
.offset-result { padding: 20px; }
.offset-variant-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.offset-variant { min-height: 170px; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; }
.offset-variant--best { border-color: #8eabef; background: var(--blue-soft); box-shadow: 0 0 0 2px rgba(40,99,231,.08); }
.offset-variant--error { display: flex; flex-direction: column; justify-content: center; background: #fffafa; }
.offset-variant__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.offset-variant__top h3 { margin: 0; font-size: 17px; }
.offset-variant__price { margin: 14px 0 2px; display: block; font-size: clamp(27px, 4vw, 38px); line-height: 1; letter-spacing: -.035em; }
.offset-variant__unit { color: #667285; font-size: 12px; }
.offset-variant__facts { margin: 14px 0 0; padding: 0; display: grid; gap: 5px; list-style: none; color: #566276; font-size: 12px; }
.offset-variant__facts strong { color: #2c394d; }
.offset-variant--error p { margin: 8px 0 0; color: var(--red); font-size: 12px; }
.offset-specification { margin: 13px 0; padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #dce5f4; border-radius: 9px; background: #f7f9fc; }
.offset-specification div { min-width: 0; }
.offset-specification span { display: block; margin-bottom: 3px; color: #7b8797; font-size: 10px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.offset-specification strong { display: block; overflow: hidden; color: #354052; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.offset-details { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.offset-details summary { padding: 13px 15px; background: #fbfcfd; color: #465267; font-size: 13px; font-weight: 750; cursor: pointer; }
.offset-details__grid { padding: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.offset-detail-card { min-width: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.offset-detail-card h4 { margin: 0; padding: 10px 12px; background: #f7f9fb; font-size: 13px; }
.offset-detail-list { margin: 0; padding: 0; list-style: none; }
.offset-detail-list li { padding: 8px 11px; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); color: #687386; font-size: 11px; }
.offset-detail-list strong { flex: 0 0 auto; color: #354052; text-align: right; font-variant-numeric: tabular-nums; }
.pvd-result-card { min-height: 0; }
.pvd-price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.pvd-price-card { min-height: 150px; padding: 20px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; }
.pvd-price-card--total { border-color: #8eabef; background: var(--blue-soft); box-shadow: 0 0 0 2px rgba(40,99,231,.08); }
.pvd-price-card > span { color: #687386; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.pvd-price-card > strong { margin: 8px 0 3px; font-size: clamp(29px, 4vw, 42px); line-height: 1; letter-spacing: -.035em; }
.pvd-price-card > small { color: #667285; font-size: 12px; }
.pvd-detail-list li:first-child { border-top: 0; }
.pvd-primary-row { align-items: start; }
.pvd-option-row { min-height: 51px; margin: -3px 0 17px; padding: 7px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 8px; color: #465267; font-size: 13px; font-weight: 400; cursor: pointer; }
.pvd-option-copy { min-width: 0; display: flex; align-items: center; gap: 8px; }
.pvd-option-text { min-width: 0; display: grid; gap: 1px; line-height: 1.25; }
.pvd-option-text > span { display: block; }
.pvd-option-row input[type="checkbox"] { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; accent-color: var(--blue); }
.pvd-option-row small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.pvd-option-row:has(input[type="checkbox"]:disabled) { background: #f6f8fa; color: #9aa3af; cursor: not-allowed; }
.pvd-chip-field { margin-bottom: 17px; }
.pvd-chip-label { margin-bottom: 7px; display: block; color: #354052; font-size: 14px; font-weight: 650; }
.pvd-chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.pvd-chip-row--four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pvd-chip-row--sizes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pvd-choice-chip { min-height: 38px; padding: 0 13px; border: 1px solid #d5dce5; border-radius: 8px; background: #fff; color: #526075; font-size: 13px; font-weight: 650; }
.pvd-choice-chip[aria-pressed="true"] { border-color: #9bb6f7; background: var(--blue-soft); color: var(--blue-dark); box-shadow: 0 0 0 1px rgba(40,99,231,.08); }
.pvd-choice-chip--unpriced { border-color: #dfe3e8; background: #f3f5f7; color: #9aa3af; }
.pvd-choice-chip--unpriced[aria-pressed="true"] { border-color: #aeb7c2; background: #e8ebef; color: #727d8b; }
.pvd-choice-chip:focus-visible, .pvd-color-chip:focus-visible { outline: 3px solid rgba(40,99,231,.2); outline-offset: 2px; }
.pvd-orientation-row { margin: -7px 0 17px; display: inline-flex; align-items: center; gap: 8px; color: #526075; font-size: 13px; font-weight: 400; cursor: pointer; }
.pvd-orientation-row input { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); }
.pvd-color-row { min-height: 38px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.pvd-color-chip { position: relative; width: 31px; height: 31px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--pvd-swatch); box-shadow: 0 0 0 1px #cfd6df; }
.pvd-color-chip[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--blue), 0 0 0 5px rgba(40,99,231,.13); }
.pvd-color-chip[aria-pressed="true"]::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: var(--blue); }
.pvd-color-chip--unpriced { opacity: 1; filter: none; box-shadow: 0 0 0 2px #d92d20; }
.pvd-color-chip--unpriced[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px #d92d20, 0 0 0 5px rgba(217,45,32,.16); }
.pvd-mode-badge { font-size: 14px; }

.workspace { display: grid; grid-template-columns: minmax(330px, 420px) minmax(0, 1fr); gap: 20px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 8px rgba(20, 34, 53, .035); }
.card__header { min-height: 70px; padding: 17px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__header > div:first-child { display: flex; align-items: center; gap: 10px; }
.card__header h2 { margin: 0; font-size: 18px; letter-spacing: -.015em; }

form { padding: 20px; }
.field { display: grid; gap: 7px; margin-bottom: 17px; color: #354052; font-size: 14px; font-weight: 650; }
.field__hint { margin: -1px 0 0; color: var(--field-hint); font-size: 12px; font-weight: 400; }
input, select, textarea { width: 100%; border: 1px solid #cfd6df; border-radius: 8px; background: #fff; color: var(--ink); font-weight: 400; outline: none; }
input::placeholder, textarea::placeholder { color: var(--field-hint); font-weight: 400; opacity: 1; }
input, select { height: 43px; }
input { padding: 0 12px; }
.compact-number-input {
  box-sizing: border-box;
  flex: 0 0 64px;
  width: 64px;
  min-width: 64px;
  max-width: 64px;
  height: 34px;
  padding: 0 7px 3px;
  font-size: 15.67px;
  text-align: center;
}
select {
  padding: 0 calc(var(--select-edge-space) + var(--select-edge-space) + 10px) 0 var(--select-edge-space);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23172235' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--select-edge-space) center;
  background-size: 10px 6px;
}
textarea { min-height: 120px; padding: 11px 12px; line-height: 1.45; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #aeb9c7; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40, 99, 231, .13); }
input[readonly], textarea[readonly] { background: #f8fafc; color: #465267; }
input:invalid:not(:placeholder-shown) { border-color: var(--red); }
.input-with-unit { position: relative; display: block; }
.input-with-unit input { padding-right: 46px; }
.input-with-unit > span { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: #8a94a3; font-size: 12px; font-weight: 500; pointer-events: none; }
.field-group { margin: 0 0 17px; padding: 0; border: 0; }
.field-group legend { margin-bottom: 9px; color: #354052; font-size: 14px; font-weight: 700; }
.field-group .field { margin-bottom: 0; }
.input-grid { display: grid; gap: 10px; }
.input-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.input-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.input-grid--4 input { padding: 0 8px; }
.input-grid--4 .field { font-size: 11px; color: var(--muted); }

.advanced { margin: 1px 0 19px; border: 1px solid var(--line); border-radius: 8px; }
.advanced summary { padding: 12px 13px; color: #4e5b6e; font-size: 13px; font-weight: 650; cursor: pointer; }
.advanced__body { padding: 4px 13px 13px; }
.advanced__body .field-group:last-child { margin-bottom: 0; }
.advanced__body input { height: 38px; }
.form-error { margin: 0 0 13px; padding: 10px 12px; border-radius: 7px; background: var(--red-soft); color: var(--red); font-size: 13px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border: 1px solid transparent; border-radius: 8px; padding: 0 15px; font-weight: 700; transition: background .16s, border-color .16s, transform .16s; }
.button:active { transform: translateY(1px); }
.button:focus-visible { outline: 3px solid rgba(40, 99, 231, .25); outline-offset: 2px; }
.button:disabled { cursor: wait; opacity: .65; }
.button--primary { background: var(--blue); color: #fff; }
.button--primary:hover { background: var(--blue-dark); }
.button--ghost { border-color: #d6dce5; background: #fff; color: #445166; }
.button--ghost:hover { background: #f6f8fa; border-color: #bdc6d2; }
.button--small { min-height: 34px; padding: 0 11px; font-size: 12px; }
.button--table { min-height: 34px; padding: 0 11px; border-color: #d6dce5; background: #fff; color: #445166; font-size: 12px; }
.button--table:hover { border-color: #bdc6d2; background: #f6f8fa; }
.button--wide { width: 100%; justify-content: space-between; height: 46px; padding: 0 17px; }

.result-card { min-height: 650px; overflow: hidden; }
.empty-state { min-height: 648px; padding: 50px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-state__illustration { width: 176px; height: 124px; margin-bottom: 22px; padding: 15px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 5px; border: 7px solid #dce3eb; background: #f8fafc; border-radius: 4px; transform: rotate(-2deg); }
.empty-state__illustration span { background: #dce8ff; border: 1px solid #9db8f7; border-radius: 2px; }
.empty-state h3 { margin: 0 0 7px; font-size: 18px; }
.empty-state p { max-width: 440px; margin: 0; color: var(--muted); font-size: 14px; }
.loading-state { min-height: 648px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.spinner { width: 22px; height: 22px; border: 3px solid #dbe4f4; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

#resultContent { padding: 20px; }
.variant-tabs { display: flex; gap: 8px; margin-bottom: 17px; }
.variant-tab { flex: 0 0 auto; min-height: 36px; padding: 0 13px; border: 1px solid #d5dce5; border-radius: 7px; background: #fff; color: #526075; font-size: 13px; font-weight: 700; }
.variant-tab[aria-selected="true"] { background: var(--blue-soft); border-color: #9bb6f7; color: var(--blue-dark); }
.summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 16px; }
.metric { min-height: 74px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfd; }
.metric__label { display: block; margin-bottom: 4px; color: #7d8797; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .045em; }
.metric__value { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.metric__sub { display: block; margin-top: 1px; color: #8a94a3; font-size: 11px; }
.drawing-wrap { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #f8fafc; }
.drawing { width: 100%; min-height: 360px; padding: 14px; display: grid; place-items: center; }
.drawing svg { display: block; width: 100%; height: 390px; }
.legend { min-height: 43px; padding: 9px 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 18px; background: #fff; color: #667285; font-size: 11px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 13px; height: 10px; border-radius: 2px; }
.legend__product { background: #8fb1ff; border: 1px solid #2458cc; }
.legend__trim { background: #e7efff; border: 1px dashed #6087df; }
.legend__margin { background: #e4e8ed; border: 1px solid #c6cdd6; }
.result-note { margin: 13px 1px 0; color: var(--muted); font-size: 12px; }

.recent-card { margin-top: 20px; overflow: hidden; }
.local-label { color: var(--muted); font-size: 12px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { height: 48px; padding: 8px 20px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { height: 42px; background: #f8fafc; color: #687386; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
tbody tr:last-child td { border-bottom: 0; }
.status-pill { display: inline-flex; padding: 3px 7px; border-radius: 5px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 700; }
.footer { padding: 0 20px 30px; color: #8791a0; text-align: center; font-size: 12px; }

.statistics-heading { align-items: center; }
.period-form { flex: 0 0 auto; padding: 0; display: flex; align-items: end; gap: 9px; }
.period-form .field { min-width: 185px; margin: 0; }
.period-form .button { height: 43px; white-space: nowrap; }
.statistics-loading { min-height: 280px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.statistics-summary { display: grid; grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.current-statistics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.enterprise-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card { min-height: 142px; padding: 21px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(20, 34, 53, .035); }
.stat-card--cash { border-color: #b8c9f2; background: linear-gradient(145deg, #f4f7ff, #fff); }
.stat-card--warning { border-color: #ead7a7; background: linear-gradient(145deg, #fff9e9, #fff); }
.stat-card__label { display: block; min-height: 38px; color: var(--muted); font-size: 12px; font-weight: 750; line-height: 1.3; text-transform: uppercase; letter-spacing: .045em; }
.stat-card__value { display: block; margin-top: 8px; font-size: clamp(27px, 2.5vw, 38px); line-height: 1; letter-spacing: -.04em; }
.stat-card__sub { display: block; margin-top: 9px; color: #6e798a; font-size: 13px; }
.yearly-statistics-card { overflow: hidden; }
.yearly-statistics-table th:not(:first-child), .yearly-statistics-table td:not(:first-child) { text-align: center; }
.yearly-statistics-table td:first-child { font-weight: 700; }
.yearly-statistics-table tbody tr:nth-child(even) { background: #fbfcfd; }
.statistics-details__panel { border-top: 1px solid var(--line); }
.year-period-form { padding: 16px 20px; justify-content: flex-end; background: #fbfcfd; }
.yearly-table-header { border-top: 1px solid var(--line); }
.debt-card { margin-top: 20px; overflow: hidden; }
.debt-summary { min-height: 70px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; list-style: none; }
.debt-summary::-webkit-details-marker { display: none; }
.debt-summary > div:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.debt-summary h2 { margin: 0; font-size: 18px; letter-spacing: -.015em; }
.debt-summary__aside { display: inline-flex; align-items: center; gap: 12px; }
.debt-summary__aside i { width: 9px; height: 9px; border-right: 2px solid #8190a3; border-bottom: 2px solid #8190a3; transform: rotate(45deg) translateY(-2px); transition: transform .16s; }
.debt-details[open] .debt-summary__aside i, .statistics-details[open] .debt-summary__aside i { transform: rotate(225deg) translate(-1px, -1px); }
.debt-panel { border-top: 1px solid var(--line); }
.debt-loading { min-height: 160px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); }
.debt-table-wrap { max-height: 560px; overflow-x: hidden; overflow-y: auto; }
.debt-table { width: 100%; table-layout: fixed; }
.debt-table thead { position: sticky; top: 0; z-index: 1; }
.debt-table th, .debt-table td { padding-left: 10px; padding-right: 10px; }
.debt-table th:nth-child(1), .debt-table td:nth-child(1) { width: 8%; }
.debt-table th:nth-child(2), .debt-table td:nth-child(2) { width: 8%; }
.debt-table th:nth-child(3), .debt-table td:nth-child(3) { width: 38%; }
.debt-table th:nth-child(4), .debt-table td:nth-child(4) { width: 19%; }
.debt-table th:nth-child(5), .debt-table td:nth-child(5) { width: 9%; }
.debt-table th:nth-child(6), .debt-table td:nth-child(6) { width: 9%; }
.debt-table th:nth-child(7), .debt-table td:nth-child(7) { width: 9%; }
.debt-table td:nth-last-child(-n+3), .debt-table th:nth-last-child(-n+3) { text-align: right; }
.debt-table th:nth-child(1), .debt-table td:nth-child(1),
.debt-table th:nth-child(2), .debt-table td:nth-child(2),
.debt-table th:nth-child(5), .debt-table td:nth-child(5),
.debt-table th:nth-child(6), .debt-table td:nth-child(6) { text-align: center; }
.debt-table td:nth-child(3) { overflow: hidden; text-overflow: ellipsis; }
.debt-table td:nth-child(4) { white-space: normal; }
.debt-table .difference--positive { color: var(--green); font-weight: 750; }
.debt-table .difference--negative { color: var(--red); font-weight: 750; }
.status-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.order-status { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 8px; border: 1px solid; border-radius: 999px; font-size: 12px; font-weight: 750; line-height: 1.2; white-space: normal; }
.order-status--warning { border-color: #e7cf82; background: #fff1c7; color: #715817; }
.order-status--success { border-color: #aed8c3; background: #dcefe5; color: #286b49; }
.order-status--danger { border-color: #e7b5b1; background: #f6ddda; color: #8b3f3a; }
.table-empty { padding: 42px 20px; color: var(--muted); text-align: center; }
.statistics-updated { margin: 12px 2px 0; color: var(--muted); font-size: 12px; text-align: right; }
.enterprise-period-form { flex-wrap: wrap; justify-content: flex-end; }
.period-toggle { height: 43px; margin: 0; padding: 3px; display: flex; border: 1px solid #cfd6df; border-radius: 8px; background: #fff; }
.period-toggle label { position: relative; display: block; cursor: pointer; }
.period-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.period-toggle span { height: 35px; padding: 0 14px; display: flex; align-items: center; border-radius: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.period-toggle input:checked + span { background: var(--blue-soft); color: var(--blue-dark); }
.period-toggle input:focus-visible + span { outline: 3px solid rgba(40, 99, 231, .22); }
.enterprise-chart-card { overflow: hidden; }
.enterprise-chart-header { min-height: 78px; }
.enterprise-chart-header > div:first-child { flex-wrap: wrap; }
.chart-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 18px; color: var(--muted); font-size: 12px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 12px; height: 12px; display: inline-block; border-radius: 3px; }
.chart-legend__cash { background: #2863e7; }
.chart-legend__orders { background: #78a2ff; }
.chart-legend__count { background: #16845b; border-radius: 50% !important; }
.enterprise-chart-wrap { padding: 14px 20px 8px; overflow-x: auto; }
.enterprise-chart { display: block; min-width: 760px; width: 100%; height: auto; }
.chart-grid { stroke: #e8ecf1; stroke-width: 1; }
.chart-axis-label, .chart-month-label, .chart-axis-title { fill: #7a8595; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 11px; }
.chart-axis-title { font-size: 10px; font-weight: 700; text-transform: uppercase; }
.chart-month-label { font-weight: 650; }
.chart-selected-month { fill: #f1f5ff; }
.chart-bar { transition: opacity .15s; }
.chart-bar--cash { fill: #2863e7; }
.chart-bar--orders { fill: #78a2ff; }
.chart-count-line { fill: none; stroke: #16845b; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-count-point { fill: #fff; stroke: #16845b; stroke-width: 3; }

.notifications-heading { align-items: center; }
.notifications-heading > .button { flex: 0 0 auto; }
.notification-filters { margin-bottom: 20px; padding: 17px 20px; display: grid; grid-template-columns: 190px minmax(260px, 1fr) auto auto; align-items: end; gap: 12px; }
.notification-filters .field { margin: 0; }
.check-field { min-height: 43px; display: inline-flex; align-items: center; gap: 9px; color: #354052; font-size: 14px; font-weight: 650; white-space: nowrap; }
.check-field input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.check-field:has(input:disabled) { color: #9aa3af; }
.notifications-workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.notification-orders-card { overflow: hidden; }
.notification-orders-card .card__header > div:first-child { flex-wrap: wrap; }
.notification-orders-wrap { max-height: 650px; overflow: auto; }
.notification-orders-table { min-width: 940px; }
.notification-orders-table thead { position: sticky; top: 0; z-index: 1; }
.notification-orders-table th, .notification-orders-table td { padding-left: 12px; padding-right: 12px; }
.notification-orders-table th:nth-child(1), .notification-orders-table td:nth-child(1),
.notification-orders-table th:nth-child(2), .notification-orders-table td:nth-child(2),
.notification-orders-table th:nth-child(5), .notification-orders-table td:nth-child(5),
.notification-orders-table th:nth-child(6), .notification-orders-table td:nth-child(6) { text-align: center; }
.notification-orders-table td:nth-child(3) { min-width: 240px; max-width: 380px; overflow: hidden; text-overflow: ellipsis; }
.notification-orders-table td:nth-child(4) { min-width: 190px; white-space: normal; }
.notification-orders-table td:nth-child(5) { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.notification-orders-table tr.is-selected { background: var(--blue-soft); }
.notification-orders-table tr.has-history { cursor: pointer; }
.notification-orders-table tr.has-history:hover { background: #f7f9fc; }
.notification-orders-table tr.is-selected:hover { background: var(--blue-soft); }
.notification-order-number { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.notification-history-toggle { width: 12px; color: #7b8798; font-size: 11px; transition: transform .15s; }
.notification-history-toggle.is-open { transform: rotate(90deg); }
.notification-history-row > td { height: auto; padding: 0 !important; background: #f8fafc; text-align: left !important; white-space: normal; }
.notification-history-inline { padding: 13px 18px 16px 46px; }
.notification-history-table-wrap { overflow-x: auto; }
.notification-history-table { min-width: 780px; table-layout: auto; font-size: 12px; }
.notification-history-table td { height: 40px; padding: 7px 10px; text-align: left; white-space: nowrap; }
.notification-history-table td:first-child { width: 105px; }
.notification-history-table td:nth-child(3) { text-align: center; }
.notification-history-table__failed { background: var(--red-soft); }
.notification-orders-table .button { white-space: nowrap; }
.notification-orders-table .button:disabled { cursor: not-allowed; }
.notification-composer { width: min(900px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 24px 70px rgba(20, 34, 53, .24); }
.notification-composer[open] { display: flex; flex-direction: column; }
.notification-composer::backdrop { background: rgba(18, 29, 43, .52); backdrop-filter: blur(2px); }
.notification-composer .card__header > div:first-child { min-width: 0; flex-wrap: wrap; }
.notification-composer .card__header h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-composer .card__header { flex: 0 0 auto; }
.notification-dialog-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.notification-send-form { padding-bottom: 16px; }
.notification-composer .notification-send-form { overflow-y: auto; }
.notification-fields-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.notification-fields-row .field { margin-bottom: 17px; }
.notification-send-form .field:last-of-type { margin-bottom: 12px; }
.notification-preview { min-height: 320px; padding: 0; overflow: hidden; border: 0; border-radius: 8px; background: #f4f6f9; color: #202936; font-size: 14px; font-weight: 400; }
.notification-preview table { width: 100%; }
.notification-success { margin: 0 0 13px; border-color: #aed8c3; background: var(--green-soft); color: var(--green); }
.notification-history { padding: 0 20px 20px; border-top: 1px solid var(--line); }
.notification-history h3 { margin: 18px 0 12px; font-size: 15px; }
.notification-history .table-empty { padding: 14px 0 0; text-align: left; }
.notification-history-list { display: grid; gap: 9px; }

.heading-actions { display: flex; align-items: center; gap: 9px; }
.design-tasks-heading { align-items: center; }
.design-task-statistics { margin-bottom: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 12px; }
.design-task-statistics .stat-card { min-height: 112px; padding: 16px 18px; }
.design-task-statistics .stat-card__label { min-height: 31px; }
.design-task-statistics .stat-card__value { font-size: 30px; }
.design-task-statistics .stat-card--designer { border-color: #ccd8ef; background: linear-gradient(145deg, #f7f9ff, #fff); }
.design-task-filters { margin-bottom: 18px; padding: 17px 20px; display: grid; grid-template-columns: 190px 180px minmax(260px, 1fr) auto; align-items: end; gap: 12px; }
.design-task-filters .field { margin: 0; }
.design-tasks-card { overflow: hidden; }
.design-tasks-wrap { max-height: 660px; overflow: auto; }
.design-tasks-table { min-width: 1240px; }
.design-tasks-table thead { position: sticky; z-index: 1; top: 0; }
.design-tasks-table th, .design-tasks-table td { padding: 9px 10px; vertical-align: middle; text-align: center; }
.design-tasks-table th:nth-child(4), .design-tasks-table td:nth-child(4) { min-width: 190px; text-align: left; white-space: normal; }
.design-tasks-table td:nth-child(8) { min-width: 140px; white-space: normal; }
.design-task-actions { display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.design-task-deadline { min-width: 94px; border-left: 5px solid transparent; font-size: 16px; font-weight: 400; }
.design-task-deadline--today { border-left-color: #d92d20; background: #fff0ee; color: var(--ink); }
.design-task-deadline--tomorrow { border-left-color: #f79009; background: #fff3dc; color: var(--ink); }
.design-task-deadline--soon { border-left-color: #fdbb74; background: #fff8ed; color: var(--ink); }
.design-task-deadline--later { border-left-color: #32a474; background: #eef9f4; color: var(--ink); }
.design-task-deadline--none { border-left-color: #5b9ced; background: #eef6ff; color: var(--ink); }
.design-task-order, .design-task-position { font-size: 16px; font-weight: 400; white-space: nowrap; }
.design-task-year { font-weight: 400; }
.design-task-subline { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 500; }
.design-task-status { display: inline-flex; align-items: center; justify-content: center; min-height: 27px; padding: 4px 8px; border: 1px solid #d6dde6; border-radius: 999px; background: #f7f9fb; color: #526075; font-size: 12px; font-weight: 750; white-space: nowrap; }
.design-task-status--unassigned { border-color: #a9c9ef; background: #eaf4ff; color: #295d9b; }
.design-task-status--in_progress { border-color: #bed0f8; background: #edf3ff; color: #2856ad; }
.design-task-status--approval { border-color: #e6cc84; background: #fff5d7; color: #785b0e; }
.design-task-status--done { border-color: #add9c2; background: #e9f7f1; color: #196d4c; }
.design-task-status--cancelled { border-color: #d5d9e0; background: #f2f4f7; color: #667085; }
.design-task-status--awaiting_layout { border-color: #e5b4ad; background: #fff0ee; color: #933d35; }
.design-task-status--awaiting_payment { border-color: #d7c5eb; background: #f7f0ff; color: #6a4694; }
.table-column--cancel { width: 48px; min-width: 48px; padding-left: 6px !important; padding-right: 6px !important; }
.table-cancel-button { width: 34px; min-width: 34px; padding: 0; font-size: 23px; font-weight: 400; line-height: 1; }
.table-cancel-button__icon { display: block; transform: translateY(-2px); }
.design-task-editor { width: min(760px, calc(100vw - 32px)); }
.design-task-form { padding: 18px 20px 22px; overflow-y: auto; }
.design-task-order-picker { display: grid; gap: 16px; }
.design-task-order-picker-filters { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: end; gap: 12px; }
.design-task-order-picker-filters .field { margin: 0; }
.design-task-order-picker-filters .field > span { min-height: 20px; display: flex; align-items: center; }
.design-task-order-picker-filters input { width: 100%; height: 43px; }
.design-task-picker-message { padding: 22px; border: 1px dashed #cbd5e1; border-radius: 9px; color: var(--muted); text-align: center; }
.design-task-order-list { max-height: 310px; display: grid; gap: 7px; overflow-y: auto; }
.design-task-order-option { width: 100%; display: grid; grid-template-columns: 120px minmax(0, 1fr) 100px; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); text-align: left; }
.design-task-order-option:hover, .design-task-order-option.is-selected { border-color: #8caef4; background: #f3f7ff; }
.design-task-order-option > span:last-child { color: var(--muted); text-align: right; }
.design-task-position-picker { padding-top: 15px; border-top: 1px solid var(--line); }
.design-task-position-picker h3 { margin: 0 0 10px; font-size: 15px; }
.design-task-position-list { max-height: 230px; margin-bottom: 14px; display: grid; gap: 7px; overflow-y: auto; }
.design-task-position-option { width: 100%; display: block; padding: 11px 13px; border: 1px solid #8caef4; border-radius: 8px; background: #f3f7ff; color: var(--blue); font-weight: 700; text-align: left; cursor: pointer; }
.design-task-position-option:hover { border-color: var(--blue); background: #eaf1ff; }
.design-task-order-summary { margin: 15px 0; padding: 12px 14px; border: 1px solid #dbe4ef; border-radius: 8px; background: #f8fafc; color: #3e4b5f; }
.design-task-order-summary strong { display: block; color: var(--ink); }
.design-task-customer-summary { margin-bottom: 17px; }
.design-task-readonly-control { min-height: 43px; display: flex; align-items: center; padding: 9px 11px; border: 1px solid #cfd7e3; border-radius: 7px; background: #fff; color: var(--ink); font-weight: 500; }
.design-task-schedule-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.design-task-schedule-row .field { margin-bottom: 17px; }
.design-task-comment-field > span { display: flex; justify-content: space-between; gap: 12px; }
.design-task-comment-field small { color: var(--muted); font-weight: 500; }
.design-task-editor textarea { min-height: 280px; resize: vertical; overflow-y: auto; }
.design-task-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.logistics-card { margin-bottom: 20px; overflow: hidden; }
.logistics-table { min-width: 940px; width: 100%; }
.logistics-table th, .logistics-table td { padding: 10px; vertical-align: middle; }
.trip-table th:nth-child(1), .trip-table th:nth-child(2), .trip-table th:nth-child(3), .trip-table th:nth-child(4), .trip-table th:nth-child(5), .trip-table th:nth-child(6), .trip-table th:nth-child(7), .trip-table th:nth-child(8), .trip-table td:nth-child(2), .trip-table td:nth-child(3), .trip-table td:nth-child(4), .logistics-date-cell { text-align: center; }
.logistics-table td:nth-child(4), .logistics-table td:nth-child(5) { min-width: 130px; }
.logistics-actions { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; white-space: nowrap; }
.logistics-center-cell { text-align: center; }
.logistics-check-cell { width: 47px; padding-right: 17px !important; text-align: center; }
.logistics-check-cell input { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); }
.logistics-status { display: inline-flex; align-items: center; justify-content: center; min-height: 27px; padding: 4px 8px; border: 1px solid #d6dde6; border-radius: 999px; background: #f7f9fb; color: #526075; font-size: 12px; font-weight: 750; white-space: nowrap; }
.logistics-status--unassigned { border-color: #a9c9ef; background: #eaf4ff; color: #295d9b; }
.logistics-status--in_progress { border-color: #bed0f8; background: #edf3ff; color: #2856ad; }
.logistics-status--done { border-color: #add9c2; background: #e9f7f1; color: #196d4c; }
.sheets-table th, .sheets-table td { text-align: center; }
.logistics-card__footer { display: flex; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); }
.logistics-dialog { width: min(700px, calc(100vw - 28px)); }
.logistics-dialog textarea { min-height: 110px; resize: vertical; }
.logistics-time-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sheet-editor-body { padding: 18px 20px 22px; }
.sheet-task-table { width: 100%; min-width: 620px; border-collapse: collapse; }
.sheet-task-table th, .sheet-task-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sheet-task-table th:nth-child(1), .sheet-task-table th:nth-child(2), .sheet-task-table th:nth-child(3), .sheet-task-table th:nth-child(4), .sheet-task-table td:nth-child(1), .sheet-task-table td:nth-child(2), .sheet-task-table td:nth-child(3), .sheet-task-table td:nth-child(4) { text-align: center; }
.sheet-task-table th:last-child { width: 84px; }
.sheet-order-actions { display: flex; justify-content: flex-end; gap: 6px; min-height: 34px; }
.logistics-totals { margin-top: 16px; padding: 12px; font-weight: 700; text-align: right; background: var(--blue-soft); border-radius: 8px; }
.logistics-confirm { width: min(460px, calc(100vw - 28px)); }
.logistics-confirm__body { padding: 20px; }
.logistics-confirm__body p { margin: 0; }
th.table-column--datetime,
td.table-column--datetime,
th.table-column--user,
td.table-column--user,
th.table-column--actions,
td.table-column--actions,
th.table-column--status,
td.table-column--status { text-align: center; }
@media (max-width: 640px) { .logistics-time-fields { grid-template-columns: 1fr; } }

@media (max-width: 1000px) {
  .workspace { grid-template-columns: 1fr; }
  .offset-workspace { grid-template-columns: 1fr; }
  .offset-result-card { min-height: 0; }
  .offset-empty { min-height: 400px; }
  .offset-variant-grid { grid-template-columns: 1fr 1fr; }
  .result-card { min-height: 0; }
  .summary { grid-template-columns: repeat(2, 1fr); }
  .empty-state, .loading-state { min-height: 400px; }
  .statistics-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .current-statistics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .enterprise-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .notification-filters { grid-template-columns: 1fr 2fr; }
  .design-task-filters { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .login-card { padding: 27px 22px; }
  .topbar__inner, .page-shell { width: min(100% - 24px, 1440px); }
  .topbar__inner { height: auto; min-height: 64px; padding: 10px 0; }
  .topbar__left { gap: 12px; align-items: flex-start; flex-direction: column; }
  .brand > span:last-child { display: none; }
  .section-nav { max-width: calc(100vw - 105px); overflow-x: auto; }
  .nav-menu { position: fixed; top: 62px; left: 12px; right: 12px; min-width: 0; }
  .section-link { flex: 0 0 auto; padding-left: 7px; padding-right: 7px; white-space: nowrap; }
  .current-user { max-width: 120px; }
  .unit-badge { display: none; }
  .page-shell { padding-top: 25px; }
  .page-heading { align-items: start; }
  .statistics-heading { display: block; }
  .period-form { margin-top: 20px; display: grid; grid-template-columns: 1fr; }
  .period-form .field { min-width: 0; }
  .statistics-summary { grid-template-columns: 1fr; }
  .current-statistics { grid-template-columns: 1fr; }
  .enterprise-summary { grid-template-columns: 1fr; }
  .notification-filters { grid-template-columns: 1fr; }
  .design-task-filters { grid-template-columns: 1fr; }
  .design-tasks-heading { align-items: flex-start; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .design-task-order-option { grid-template-columns: 1fr; gap: 4px; }
  .design-task-order-picker-filters { grid-template-columns: 1fr; }
  .design-task-order-option > span:last-child { text-align: left; }
  .design-task-schedule-row { grid-template-columns: 1fr; gap: 0; }
  .notification-fields-row { grid-template-columns: 1fr; gap: 0; }
  .notification-customer-filter { grid-column: auto; }
  .enterprise-chart-header { display: block; }
  .chart-legend { margin-top: 12px; justify-content: flex-start; }
  .stat-card { min-height: 118px; }
  h1 { font-size: 28px; }
  .card__header, form, #resultContent { padding-left: 15px; padding-right: 15px; }
  .offset-result { padding-left: 15px; padding-right: 15px; }
  .offset-details__grid { grid-template-columns: 1fr; }
  .input-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .summary { grid-template-columns: 1fr 1fr; }
  .drawing { min-height: 290px; padding: 6px; }
  .drawing svg { height: 300px; }
  .legend { gap: 9px; }
  .debt-table { font-size: 12px; }
  .debt-table th, .debt-table td { padding-left: 6px; padding-right: 6px; }
  .order-status { padding: 3px 6px; font-size: 11px; }
  .offset-variant-grid { grid-template-columns: 1fr; }
  .pvd-price-grid { grid-template-columns: 1fr; }
  .offset-specification { align-items: stretch; flex-direction: column; }
  .offset-specification strong { white-space: normal; }
}

