@font-face {
  font-family:Montserrat;
  src:url('/assets/fonts/Montserrat.ttf') format('truetype');
  font-weight:100 900;
  font-display:swap;
}
/* Общая палитра Figma. Тёмная тема меняет цвета, сохраняя композицию. */
:root {
  font-family:Montserrat,Arial,sans-serif;
  color-scheme:light;
  --bg:#f1f6fc;
  --text:#122571;
  --muted:#555f87;
  --accent:#4388c9;
  --accent-text:white;
  --surface:#ffffff40;
  --panel:#555f870b;
  --field:#555f87;
  --border:#555f87;
  --danger:#a72946;
  --success:#176749;
  --glass-border:#ffffff91;
  --shadow:inset 1px 1px 0 #ffffff50;
}
:root[data-theme=dark] {
  color-scheme:dark;
  --bg:#10182d;
  --text:#e2edff;
  --muted:#bccbe6;
  --accent:#7cc0f4;
  --accent-text:#112846;
  --surface:#283958a6;
  --panel:#28395852;
  --field:#3c5075;
  --border:#9cafd1;
  --danger:#ff9eaf;
  --success:#8ce7bc;
  --glass-border:#a1bdd333;
  --shadow:inset 1px 1px 0 #ffffff12;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  min-width:280px;
  background:var(--bg);
  color:var(--text);
  line-height:1.45;
}
button,input,select,textarea {
  font:inherit;
}
button,a,input,select,textarea,summary {
  -webkit-tap-highlight-color:transparent;
}
button {
  cursor:pointer;
}
button:disabled {
  cursor:default;
  opacity:.55;
}
a {
  color:inherit;
}
img {
  display:block;
  max-width:100%;
}
h1,h2,h3,p {
  margin:0;
}
h1 {
  font-size:24px;
  line-height:1.25;
  font-weight:600;
}
h2 {
  font-size:20px;
  line-height:1.3;
  font-weight:600;
}
h3 {
  font-size:15px;
  line-height:1.4;
  font-weight:600;
}
small {
  font-size:11px;
}
[hidden] {
  display:none!important;
}
:where(button,a,input,select,textarea,summary):focus-visible {
  outline:3px solid var(--accent);
  outline-offset:4px;
}
#main:focus {
  outline:none;
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.skip-link {
  position:fixed;
  top:-90px;
  left:12px;
  z-index:50;
  padding:12px;
  background:var(--bg);
}
.skip-link:focus {
  top:8px;
}
.ambient {
  position:fixed;
  inset:0;
  overflow:hidden;
  pointer-events:none;
  z-index:0;
}
.ellipse {
  position:absolute;
  max-width:none;
}
.ellipse.top {
  left:calc(50% - 100px);
  top:-81px;
}
.ellipse.middle {
  left:calc(50% - 478px);
  top:178px;
}
.ellipse.bottom {
  left:calc(50% - 87px);
  top:507px;
}
[data-theme=dark] .ambient {
  opacity:.17;
}
#app {
  position:relative;
  z-index:1;
}
.boot {
  min-height:90dvh;
  display:grid;
  place-items:center;
  padding:24px;
  text-align:center;
}
/* Каркас макетов 402 px: верхняя панель и двадцатипиксельные поля. */
.shell {
  width:100%;
  max-width:402px;
  margin:auto;
  padding:54px 20px 80px;
  min-height:100dvh;
}
.topbar {
  height:40px;
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:29px;
}
.topbar .brand {
  display:none;
}
.menu-link {
  display:grid;
  place-items:center;
  width:32px;
  height:40px;
  margin-right:auto;
}
.menu-link img {
  width:25px;
}
.topbar>.button {
  min-height:32px;
  padding:6px 16px;
  font-size:11px;
}
.avatar {
  width:40px;
  height:40px;
  flex:0 0 40px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#afd0ea;
  text-decoration:none;
  overflow:hidden;
}
.avatar img {
  width:100%;
  height:100%;
}
.avatar.large {
  width:95px;
  height:95px;
  flex-basis:95px;
  margin:0 auto 27px;
}
.design-focused .topbar {
  justify-content:flex-end;
}
.design-focused .topbar>:not(.avatar) {
  display:none;
}
.page,.stack {
  display:flex;
  flex-direction:column;
  gap:16px;
  min-width:0;
}
.page-head {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.page-head>.stack {
  gap:6px;
}
.row {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  min-width:0;
}
.row>h2,.row>h3 {
  margin-right:auto;
}
.grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));
  gap:16px;
}
.card,.design-panel {
  position:relative;
  display:flex;
  flex-direction:column;
  gap:16px;
  min-width:0;
  padding:24px 22px;
  background:var(--surface);
  border:1px solid var(--glass-border);
  border-radius:28px;
  box-shadow:var(--shadow);
}
.muted {
  font-size:12px;
  color:var(--muted);
  line-height:1.55;
}
.stat {
  font-size:36px;
  line-height:1.2;
  font-weight:600;
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid transparent;
  border-radius:30px;
  min-height:40px;
  padding:10px 19px;
  background:var(--accent);
  color:var(--accent-text);
  font-size:13px;
  line-height:1.3;
  font-weight:500;
  text-decoration:none;
  text-align:center;
}
.button.secondary {
  background:var(--surface);
  color:var(--text);
  border-color:var(--border);
}
.button.navy {
  background:#122571;
  color:white;
}
.button.text {
  padding:8px 4px;
  background:transparent;
  color:var(--text);
}
.button.danger {
  background:transparent;
  color:var(--danger);
  border-color:var(--danger);
}
.button.small {
  min-height:32px;
  padding:6px 12px;
  font-size:11px;
}
.button.full {
  width:100%;
}
.pill {
  display:inline-flex;
  align-items:center;
  border-radius:20px;
  padding:4px 9px;
  background:var(--panel);
  font-size:10px;
}
.pill.success {
  color:var(--success);
}
.pill.danger {
  color:var(--danger);
}
.field {
  display:flex;
  flex-direction:column;
  gap:7px;
  min-width:0;
}
.field>label {
  font-size:12px;
  font-weight:500;
}
.field input,.field select,.field textarea,.multi-picker>input {
  width:100%;
  min-height:38px;
  padding:9px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--surface);
  color:var(--text);
  font-size:13px;
}
.field textarea {
  resize:vertical;
}
.field input[aria-invalid=true] {
  border-color:var(--danger);
}
.check-field label {
  display:flex;
  align-items:center;
  gap:10px;
}
.check-field input {
  width:19px;
  min-height:19px;
  flex:0 0 19px;
  accent-color:var(--accent);
}
.field-grid,.filters {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));
  gap:14px;
}
.multi-picker {
  padding:12px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--surface);
}
.multi-picker summary {
  font-size:12px;
  cursor:pointer;
}
.multi-picker[open] summary {
  margin-bottom:12px;
}
.selection-count {
  float:right;
  padding:0 7px;
  background:var(--panel);
  border-radius:10px;
}
.choice-list {
  display:grid;
  gap:10px;
  margin-top:12px;
  max-height:220px;
  overflow:auto;
}
.choice-list label {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:12px;
}
.choice-list input {
  width:18px;
  height:18px;
  accent-color:var(--accent);
}
.error-box {
  padding:13px;
  border:1px solid var(--danger);
  border-radius:10px;
  color:var(--danger);
  background:var(--surface);
  font-size:12px;
}
.error-box p+p {
  margin-top:7px;
}
.notice {
  padding:13px;
  border-left:3px solid var(--accent);
  background:var(--panel);
  border-radius:8px;
  font-size:12px;
}
.saving {
  min-height:16px;
  font-size:10px;
  color:var(--muted);
}
.divider {
  width:100%;
  border:0;
  border-top:1px solid var(--glass-border);
  margin:6px 0;
}
.list-link {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  text-decoration:none;
  font-size:13px;
}
.list-link::after {
  content:'›';
  font-size:26px;
}
.inline-controls {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.pager {
  display:flex;
  justify-content:center;
}
.content-text,.message {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
/* Диалоги сохраняют native focus trap и существующую валидацию форм. */
.dialog {
  width:min(402px,calc(100% - 28px));
  max-height:88dvh;
  overflow:auto;
  padding:24px 22px;
  border-radius:28px;
  border:1px solid var(--glass-border);
  background:var(--bg);
  color:var(--text);
  box-shadow:0 15px 90px #10153540;
}
.dialog::backdrop {
  background:#10153566;
  backdrop-filter:blur(6px);
}
.dialog>.row {
  margin-bottom:25px;
  align-items:flex-start;
}
.dialog>.row>h2 {
  font-size:20px;
  max-width:75%;
}
.dialog>.row>.button {
  min-height:30px;
  font-size:11px;
}
.dialog form>.row:last-child {
  justify-content:center;
}
.dialog .field>label {
  padding:7px 11px;
  color:white;
  background:var(--field);
  border-radius:9px;
  font-size:12px;
}
.dialog .check-field>label {
  background:transparent;
  color:var(--text);
  padding:0;
}
#toasts {
  position:fixed;
  bottom:24px;
  left:50%;
  transform:translateX(-50%);
  z-index:100;
  display:grid;
  gap:8px;
  width:min(370px,calc(100% - 32px));
}
.toast {
  padding:13px 18px;
  border-radius:15px;
  background:var(--text);
  color:var(--bg);
  box-shadow:0 5px 25px #0002;
  font-size:12px;
}
.toast.error {
  background:var(--danger);
  color:white;
}
/* Авторизация. */
.auth-shell {
  position:relative;
  width:min(100%,402px);
  min-height:874px;
  margin:auto;
  padding:123px 20px 100px;
}
.auth-heading {
  margin-left:31px;
  font-size:24px;
  line-height:1.2;
  height:105px;
  font-weight:600;
}
.auth-card {
  position:relative;
  min-height:337px;
  padding:26px 21px 35px;
  border:1px solid var(--glass-border);
  border-radius:28px;
  background:var(--panel);
  box-shadow:var(--shadow);
}
.auth-card h2 {
  margin-bottom:33px;
  text-align:center;
  font-size:20px;
  font-weight:500;
}
.auth-card form {
  gap:15px;
}
.auth-card .field {
  gap:0;
}
.auth-card .field>label {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
}
.auth-card .field input {
  height:34px;
  min-height:34px;
  padding:7px 13px;
  border:0;
  background:var(--field);
  color:white;
  font-size:13px;
  letter-spacing:.78px;
}
.auth-card input::placeholder {
  color:white;
  opacity:1;
}
.auth-card form>.row {
  justify-content:center;
  margin-top:21px;
}
.auth-card form>.row>.button {
  width:260px;
  min-height:33px;
  padding:7px 12px;
  background:#ffffff40;
  border-color:var(--glass-border);
  color:var(--text);
  font-size:12px;
}
.auth-login form>.row {
  margin-top:69px;
}
.auth-close,.design-close {
  position:absolute;
  top:17px;
  left:17px;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  text-decoration:none;
}
.auth-close img,.design-close img {
  width:20.745px;
  height:20.037px;
}
.auth-foot {
  margin-top:18px;
  text-align:center;
  font-size:11px;
}
.auth-login>.auth-foot {
  position:absolute;
  top:171px;
  right:20px;
  margin:0;
  font-size:8.5px;
}
.auth-login>.auth-foot a {
  display:block;
  min-height:36px;
  padding:12px 0;
}
.welcome-actions {
  margin:176px 31px 0;
  gap:12px;
}
.welcome-actions .button {
  width:100%;
  min-height:46px;
  font-size:16px;
}
.first-use {
  width:min(100%,402px);
  min-height:874px;
  margin:auto;
  padding:210px 42px 100px;
  text-align:center;
}
.first-use h1 {
  margin-bottom:32px;
}
.first-use .button {
  width:100%;
  font-size:19px;
  min-height:48px;
}
/* Мастер переезда: обработчики и автосохранение остаются прежними. */
.wizard-shell {
  width:100%;
  margin:0 auto;
}
.wizard-progress {
  display:flex;
  justify-content:center;
  gap:7px;
}
.wizard-progress span {
  width:27px;
  height:4px;
  border-radius:4px;
  background:var(--glass-border);
}
.wizard-progress span.active {
  background:var(--accent);
}
.design-wizard .wizard-progress {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
}
.wizard-card {
  position:relative;
  display:flex;
  flex-direction:column;
  gap:16px;
  min-height:416px;
  border:1px solid var(--glass-border);
  border-radius:28px;
  padding:29px 21px 24px;
  background:var(--panel);
  box-shadow:var(--shadow);
}
.wizard-title {
  margin-bottom:20px;
  padding:0 24px;
  text-align:center;
  font-size:20px;
  font-weight:500;
}
.design-wizard-title .wizard-card {
  min-height:282px;
}
.step-label {
  padding:8px 12px;
  border-radius:10px;
  background:var(--field);
  color:white;
  font-size:13px;
  line-height:1.3;
  letter-spacing:.4px;
}
.design-wizard .field input,.design-wizard .field select {
  min-height:34px;
  background:transparent;
  font-size:13px;
}
.design-wizard-title .field>label {
  position:absolute;
  width:1px;
  height:1px;
  clip:rect(0,0,0,0);
  overflow:hidden;
}
.design-step-action {
  display:flex;
  justify-content:flex-end;
  padding:15px 11px 0;
}
.design-step-action .button {
  min-width:156px;
  min-height:36px;
  font-size:13px;
}
.preset-grid {
  display:grid;
  gap:13px;
}
.preset {
  display:flex;
  gap:12px;
  align-items:center;
  padding:8px 11px;
  min-height:34px;
  border:1px solid var(--border);
  border-radius:10px;
  font-size:13px;
}
.preset input {
  appearance:none;
  width:18px;
  height:18px;
  margin:0;
  flex:0 0 18px;
  background:url('/assets/figma/radio.svg') center/contain no-repeat;
}
.preset input:checked {
  background-image:url('/assets/figma/radio-selected.svg');
}
.success-mark {
  color:var(--success);
  font-size:54px;
  text-align:center;
}
/* Меню и профиль. */
.design-menu {
  padding-top:30px;
  min-height:490px;
}
.design-menu>h1 {
  text-align:center;
  font-size:20px;
  font-weight:500;
  margin-bottom:20px;
}
.design-menu-links {
  display:grid;
  gap:16px;
}
.design-menu-link {
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:35px;
  border:1px solid var(--border);
  border-radius:10px;
  text-decoration:none;
  font-size:13px;
}
.design-menu-link:first-child {
  color:white;
  background:var(--field);
  border-color:var(--field);
}
.design-members {
  border-top:1px solid var(--glass-border);
  padding-top:12px;
  display:grid;
  gap:6px;
  font-size:13px;
}
.design-members h2 {
  font-size:14px;
}
.design-menu-more {
  font-size:12px;
}
.design-menu-more>summary {
  cursor:pointer;
}
.design-menu-more[open]>summary {
  margin-bottom:12px;
}
.design-menu-more .list-link+.list-link {
  margin-top:8px;
}
.design-profile {
  min-height:550px;
  padding:28px 21px 24px;
}
.profile-portrait {
  width:122px;
  height:122px;
  flex-basis:122px;
  margin:4px auto 20px;
}
.profile-email {
  text-align:center;
  font-size:11px;
}
.profile-section {
  display:flex;
  flex-direction:column;
  gap:13px;
  padding-top:10px;
}
.profile-section>h2 {
  padding:8px 12px;
  background:var(--field);
  color:white;
  font-size:13px;
  font-weight:500;
  border-radius:10px;
}
.profile-section .list-link {
  padding:3px 8px;
}
.profile-section details>summary {
  cursor:pointer;
  font-size:13px;
}
.profile-section details[open]>summary {
  margin-bottom:16px;
}
.profile-actions {
  display:grid;
  gap:13px;
}
/* Главная: горизонтальные карточки и крупная статистика. */
.design-dashboard>h1 {
  padding:8px 8px 0;
  margin-bottom:20px;
}
.design-summary,.design-box-strip {
  display:flex;
  gap:10px;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  scroll-snap-type:x proximity;
  scrollbar-width:none;
  margin:0 -20px;
  padding-left:20px;
  padding-right:20px;
}
.design-summary::-webkit-scrollbar,.design-box-strip::-webkit-scrollbar {
  display:none;
}
.design-summary {
  padding-bottom:4px;
}
.design-summary-card {
  flex:0 0 168px;
  min-height:113px;
  padding:16px 20px;
  border-radius:22px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:10px;
  color:white;
  text-decoration:none;
  background:#555f87;
  scroll-snap-align:start;
}
.design-summary-card:nth-child(1) {
  background:#1b256c;
}
.design-summary-card:nth-child(3) {
  background:#4388c9;
}
.design-summary-card:nth-child(4) {
  background:#9cc5e2;
  color:#122571;
}
.design-summary-card .summary-value {
  font-size:18px;
  font-weight:500;
  line-height:1.25;
}
.design-summary-card .summary-action {
  font-size:11px;
}
.design-dashboard-boxes {
  margin-top:40px;
}
.design-dashboard-boxes>.row {
  margin:0 8px 38px;
}
.design-dashboard-boxes h2 {
  font-size:24px;
}
.design-box-strip {
  gap:16px;
  padding-bottom:2px;
}
.design-box-strip>.design-box-card {
  flex:0 0 200px;
}
.box-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px 12px;
}
.design-box-card {
  position:relative;
  padding:0;
  border:0;
  border-radius:26px;
  background:#b5d1e7;
  overflow:hidden;
  box-shadow:none;
  display:flex;
  flex-direction:column;
  gap:0;
  min-width:0;
}
.design-box-photo {
  width:100%;
  aspect-ratio:5/3;
  object-fit:cover;
}
.design-box-body {
  position:relative;
  display:flex;
  flex-direction:column;
  gap:5px;
  min-height:132px;
  padding:11px 13px 17px;
}
.design-box-body .box-number {
  order:2;
  padding-right:46px;
  font-size:10px;
  color:var(--text);
  text-transform:none;
  letter-spacing:0;
}
.design-box-body h2 {
  font-size:15px;
  font-weight:700;
  line-height:1.25;
}
.design-box-body h2 a {
  text-decoration:none;
}
.design-box-body>.muted {
  order:3;
  padding-right:42px;
  font-size:10px;
  line-height:1.35;
}
.design-box-body>.row {
  order:4;
  padding-right:42px;
  gap:4px;
}
.design-box-body .pill {
  padding:0;
  font-size:9px;
  background:transparent;
}
.design-box-qr {
  position:absolute;
  bottom:15px;
  right:10px;
  width:44px;
  height:44px;
  border-radius:7px;
  background:white;
  display:grid;
  place-items:center;
  padding:3px;
  font-size:8px;
  color:#122571;
  text-decoration:none;
}
.design-box-qr img {
  width:38px;
  height:38px;
  image-rendering:pixelated;
}
.design-add-box .design-box-body {
  display:grid;
  place-items:center;
}
.design-add-box h2 {
  display:none;
}
.design-add-box .button {
  padding:8px 11px;
  min-height:34px;
  font-size:11px;
  background:var(--accent);
  color:var(--accent-text);
  border:0;
}
.design-status-section {
  margin:46px -20px 0;
  padding:30px 28px 52px;
  background:#1b256c;
  color:white;
}
.design-status-section h2 {
  font-size:24px;
  margin-bottom:39px;
}
.design-status-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:45px 16px;
}
.design-status-stat {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:13px;
  color:white;
  text-align:center;
  text-decoration:none;
}
.design-status-stat:last-child:nth-child(odd) {
  grid-column:1/-1;
}
.design-status-stat strong {
  font-size:48px;
  line-height:1.1;
  font-weight:600;
}
.design-status-stat span {
  font-size:12px;
}
.design-dashboard-extras {
  padding:20px 0;
  font-size:13px;
}
.design-dashboard-extras>summary {
  cursor:pointer;
}
.design-dashboard-extras[open]>summary {
  margin-bottom:20px;
}
.design-dashboard-extras .grid {
  grid-template-columns:1fr;
}
.design-dashboard-extras .card {
  padding:20px;
}
.design-footer {
  margin:0 -20px -80px;
  padding:0 28px 32px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:24px;
  background:#101535;
  color:white;
}
.design-footer>a {
  color:white;
  font-size:12px;
  text-decoration:none;
}
.design-footer .design-footer-brand {
  font-size:24px;
  font-weight:600;
}
/* Повторяющиеся треки обеспечивают бесшовное движение без таймеров. */
.marquee {
  position:relative;
  overflow:hidden;
  width:100%;
  background:#555f87;
  color:white;
}
.design-footer>.marquee {
  width:calc(100% + 56px);
  margin:0 -28px;
}
.marquee-track {
  display:flex;
  width:max-content;
  animation:ribbon-scroll 26s linear infinite;
}
.marquee-copy {
  flex:0 0 auto;
  padding:3px 8px;
  font-size:10px;
  white-space:nowrap;
}
.marquee:focus-within .marquee-track,.marquee:hover .marquee-track,.marquee[data-paused=true] .marquee-track {
  animation-play-state:paused;
}
.marquee-toggle {
  position:absolute;
  z-index:1;
  right:0;
  top:0;
  height:100%;
  width:27px;
  padding:0;
  border:0;
  border-radius:0;
  background:#555f87;
  color:white;
  font-size:10px;
}
@keyframes ribbon-scroll {
  to {
    transform:translateX(-50%);
  }
}
/* Коробки и вещи. */
.design-boxes>.page-head {
  justify-content:center;
  text-align:center;
  margin:4px 0 17px;
}
.design-box-filters>summary {
  cursor:pointer;
  font-size:13px;
}
.design-box-filters[open]>summary {
  margin-bottom:15px;
}
.design-boxes>.design-footer {
  margin-top:18px;
}
.box-number {
  font-size:11px;
  color:var(--muted);
}
.detail-layout {
  display:grid;
  gap:22px;
}
.design-box-info {
  padding:0 24px 26px;
  border-radius:40px;
  overflow:hidden;
  background:#b5d0e5;
  border:0;
  gap:13px;
}
.design-detail-photo {
  width:calc(100% + 48px);
  max-width:none;
  height:210px;
  margin:0 -24px 6px;
  object-fit:cover;
  opacity:.74;
}
.design-box-info h1 {
  font-size:20px;
  font-weight:700;
}
.design-box-info>p {
  font-size:12px;
}
.design-detail-statuses {
  display:grid;
  gap:9px;
}
.design-detail-statuses h2 {
  font-size:16px;
  margin-bottom:3px;
}
.design-detail-statuses .button {
  justify-content:flex-start;
  border-radius:10px;
  min-height:34px;
  padding:6px 11px;
  background:transparent;
  border-color:var(--border);
  color:var(--text);
  font-size:12px;
}
.design-detail-statuses .button::before {
  content:'';
  flex:0 0 22px;
  height:13px;
  border:1px solid var(--border);
  border-radius:10px;
  background:radial-gradient(circle at 6px 50%,white 4px,transparent 4.5px),#7485ab;
}
.design-detail-statuses .current-status::before {
  background:radial-gradient(circle at 15px 50%,white 4px,transparent 4.5px),#555f87;
}
.design-detail-statuses .current-status {
  opacity:1;
}
/* Памятки и планы: стеклянный лист, тёмные секции и тонкий чеклист. */
.design-leaf {
  position:relative;
  padding:28px 21px 30px;
  border:1px solid var(--glass-border);
  border-radius:28px;
  background:var(--panel);
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  gap:16px;
}
.design-leaf>h1 {
  text-align:center;
  font-size:20px;
  font-weight:500;
  padding:0 24px;
  margin-bottom:20px;
}
.design-leaf-label {
  padding:8px 12px;
  border-radius:10px;
  background:var(--field);
  color:white;
  font-size:13px;
  line-height:1.3;
  letter-spacing:.35px;
}
.design-checklist {
  display:flex;
  flex-direction:column;
  gap:15px;
}
.design-check {
  position:relative;
  display:flex;
  align-items:flex-start;
  gap:11px;
  min-height:34px;
  padding:7px 10px;
  border:1px solid var(--border);
  border-radius:10px;
  font-size:13px;
  line-height:1.3;
  color:var(--muted);
  letter-spacing:.35px;
}
.design-check>input {
  appearance:none;
  width:18px;
  height:18px;
  flex:0 0 18px;
  margin:0;
  border:1px solid currentColor;
  border-radius:50%;
  background:transparent;
}
.design-check>input:checked {
  background:var(--field);
  box-shadow:inset 0 0 0 4px var(--bg);
}
.design-check>input:checked+span {
  text-decoration:line-through;
  opacity:.7;
}
.design-leaf-navigation {
  display:flex;
  gap:11px;
  align-items:center;
  padding:10px 11px 0;
}
.leaf-arrow {
  width:40px;
  height:50px;
  min-height:50px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--text);
}
.leaf-arrow img {
  width:25px;
  height:46px;
  object-fit:contain;
}
.leaf-pagination {
  margin-left:auto;
  color:var(--muted);
  font-size:11px;
}
.design-content-catalog {
  margin-top:34px;
}
.design-content-catalog>summary {
  cursor:pointer;
  font-size:13px;
}
.design-content-catalog[open]>summary {
  margin-bottom:18px;
}
.design-content-catalog .card>summary {
  cursor:pointer;
  font-size:14px;
  font-weight:500;
}
.design-content-catalog .content-text {
  font-size:12px;
}
.design-task-tools {
  display:grid;
  gap:14px;
  margin-top:24px;
}
.design-task-tools>details>summary {
  cursor:pointer;
  font-size:13px;
}
.design-task-tools details[open]>summary {
  margin-bottom:14px;
}
.plan-task {
  display:flex;
  flex-direction:column;
  gap:7px;
}
.plan-task .design-check {
  flex:1;
}
.plan-task-actions {
  display:flex;
  gap:12px;
  padding-left:37px;
}
.plan-task-actions .button {
  min-height:24px;
  padding:2px 0;
  font-size:10px;
}
.plan-task .muted {
  padding-left:37px;
  font-size:10px;
}
.task-row {
  display:flex;
  align-items:flex-start;
  gap:12px;
}
.task-row>input {
  flex:0 0 20px;
  height:20px;
  accent-color:var(--accent);
}
.completed {
  text-decoration:line-through;
  color:var(--muted);
}
/* Служебные страницы продолжают визуальный язык общих компонентов. */
.message {
  padding:14px;
  border-radius:14px;
  background:var(--panel);
  font-size:13px;
}
.message.own {
  background:#4388c922;
}
.qr-image {
  width:200px;
  height:200px;
  image-rendering:pixelated;
  background:white;
  border:12px solid white;
  border-radius:9px;
}
.label-preview {
  text-align:center;
  align-items:center;
}
.print-only {
  display:none;
}
[data-theme=dark] :is(.menu-link,.auth-close,.design-close) img {
  filter:brightness(0) invert(1);
}
[data-theme=dark] .design-box-card,[data-theme=dark] .design-box-info {
  background:#2b4562;
}
/* Адаптивность без изменения порядка и содержания элементов. */
@media(min-width:800px) {
  .shell:not(.design-focused) {
    max-width:1000px;
    padding-top:48px;
  }
  .shell.design-dashboard-shell {
    max-width:760px;
  }
  .design-summary-card {
    flex:1 0 160px;
  }
  .design-boxes .box-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:22px;
  }
  .detail-layout {
    grid-template-columns:minmax(280px,351px) minmax(0,1fr);
    gap:24px;
    align-items:start;
  }
  .design-content,.design-tasks,.profile-shell {
    width:min(100%,402px);
    margin-inline:auto;
  }
}
@media(max-width:350px) {
  .shell,.auth-shell {
    padding-inline:16px;
  }
  .auth-heading {
    margin-left:20px;
  }
  .welcome-actions {
    margin-left:20px;
    margin-right:20px;
  }
  .first-use {
    padding-inline:28px;
  }
  .card,.wizard-card,.design-leaf {
    padding-inline:17px;
  }
  .box-grid {
    grid-template-columns:1fr;
  }
  .design-summary,.design-box-strip {
    margin-inline:-16px;
    padding-inline:16px;
  }
  .design-status-section,.design-footer {
    margin-inline:-16px;
  }
  .design-leaf-label,.design-check {
    font-size:12px;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior:auto!important;
  }
  .marquee-track {
    animation:none;
  }
  .splash {
    transition:none!important;
  }
}
@media print {
  body {
    background:white;
    color:black;
  }
  .ambient,.topbar,#toasts,.skip-link,.no-print,.design-footer {
    display:none!important;
  }
  .shell {
    max-width:none!important;
    padding:0;
  }
  .print-only {
    display:block;
  }
  .label-sheet {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8mm;
  }
  .print-label {
    break-inside:avoid;
    border:1px solid #444;
    padding:6mm;
    min-height:85mm;
    color:black;
    background:white;
    display:flex;
    flex-direction:column;
    gap:3mm;
    align-items:center;
    text-align:center;
  }
  .print-label .qr-image {
    width:38mm;
    height:38mm;
    border:0;
  }
  .print-label h2 {
    font-size:16pt;
  }
  .print-label p {
    font-size:10pt;
  }
  .card {
    box-shadow:none;
  }
  @page {
    size:A4;
    margin:10mm;
  }
}
/* Заставка из Figma 18:497;
исходная картинка грузовика сохраняет прозрачные поля. */
.splash {
  position:fixed;
  z-index:200;
  inset:0;
  overflow:hidden;
  background:var(--bg);
  pointer-events:none;
  opacity:1;
  transition:opacity 1s ease-out;
}
.splash-out {
  opacity:0;
}
.splash-truck {
  position:absolute;
  width:89px;
  height:89px;
  top:319px;
  left:calc(50% - 44.5px);
}
.splash-name {
  position:absolute;
  top:410px;
  left:0;
  right:0;
  text-align:center;
  font-size:34px;
  font-weight:600;
}
.splash-ribbon {
  position:absolute;
  left:-10%;
  width:120%;
  transform-origin:center;
}
.splash-ribbon .marquee-copy {
  font-size:13px;
  padding:7px 8px;
}
.splash-ribbon-top {
  top:150px;
  transform:rotate(6deg);
}
.splash-ribbon-bottom {
  top:650px;
  transform:rotate(-5deg);
}
.splash-ribbon-cross {
  top:690px;
  transform:rotate(-20deg);
}
.profile-header {
  justify-content:flex-start!important;
}
.design-focused .profile-header>.menu-link {
  display:grid;
}
.design-profile .field>label {
  padding:8px 12px;
  border-radius:10px;
  background:var(--field);
  color:white;
  font-size:13px;
  font-weight:500;
}
.profile-bar {
  width:100%;
  padding:8px 12px;
  min-height:34px;
  justify-content:flex-start;
  text-align:left;
  border-radius:10px;
  background:var(--field);
  color:white;
  border-color:var(--field);
  font-size:13px;
}
.profile-save {
  display:flex;
  justify-content:center;
  padding-top:38px;
}
.profile-save .button {
  font-size:16px;
}
.design-boxes .box-grid {
  margin-inline:-20px;
  gap:20px 2px;
}
.design-boxes>.page-head {
  margin-bottom:4px;
}
.design-box-filters {
  margin-bottom:6px;
}
@media(min-width:800px) {
  .design-boxes .box-grid {
    margin-inline:0;
    gap:22px;
  }
}
@media(max-width:350px) {
  .design-boxes .box-grid {
    margin-inline:0;
  }
  .design-box-photo {
    aspect-ratio:5/3;
  }
}
.design-welcome .auth-heading {
  margin-left:13px;
}
.design-welcome .welcome-actions {
  margin-left:13px;
  margin-right:49px;
}
.back-to-top {
  position:fixed;
  right:max(17px,calc((100vw - 402px)/2 + 17px));
  bottom:28px;
  z-index:10;
  width:43px;
  height:43px;
  padding:0;
  min-height:43px;
  border:0;
  border-radius:50%;
  background:transparent;
}
.back-to-top img {
  width:43px;
  height:43px;
}
@media(min-width:800px) {
  .back-to-top {
    right:max(24px,calc((100vw - 1000px)/2 + 20px));
  }
}

.design-box-photo-link {
  display: block;
  text-decoration: none;
}
.design-support-link {
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1.2;
}
.design-support-symbol {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 25px;
}

/* Фоновый слой заставки повторяет исходные эллипсы текущего экрана. */
.splash > .splash-ambient {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.splash-ribbon, .splash-truck, .splash-name {
  z-index: 1;
}

/* Редактор коробки — полноценный экран Figma, поверх которого открываются редакторы вещей. */
.dialog.box-editor {
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--bg);
  box-shadow: none;
  overflow-y: auto;
}
.dialog.box-editor::backdrop {
  background: transparent;
  backdrop-filter: none;
}
.box-editor > .box-editor-ambient {
  position: fixed;
  z-index: 0;
  pointer-events: none;
}
.box-editor-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 402px);
  min-height: 100%;
  margin: auto;
  padding: 123px 20px 60px;
}
.box-editor-panel {
  position: relative;
  padding: 28px 21px 30px;
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.box-editor-heading {
  margin-bottom: 34px;
  padding-inline: 20px;
  text-align: center;
}
.box-editor-heading h2 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}
.box-editor-close {
  position: absolute;
  top: 16px;
  left: 15px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
}
.box-editor-close img {
  width: 21px;
  height: 20px;
}
.box-editor-save {
  display: flex;
  justify-content: center;
  padding-top: 28px;
}
.box-editor-save > .button {
  min-width: 156px;
}
.box-editor-panel form > .row:last-child:empty {
  display: none;
}
.box-editor .multi-picker > summary {
  padding: 8px 11px;
  border-radius: 9px;
  background: var(--field);
  color: white;
}
[data-theme=dark] .box-editor-close img {
  filter: brightness(0) invert(1);
}
@media (max-width: 350px) {
  .box-editor-shell {
    padding-inline: 16px;
  }
  .box-editor-panel {
    padding-inline: 17px;
  }
}

.field select[size]:not([size="1"]) { min-height:100px; padding:8px; }
.field select[size]:not([size="1"]) option { padding:8px; }
.design-team-credit { margin:16px 0 0; font-size:12px; }
