:root {
  --brand: #087651;
  --brand-dark: #075b40;
  --ink: #141815;
  --muted: #667069;
  --line: #dfe4e0;
  --canvas: #f2f3f0;
  --surface: #ffffff;
  --soft: #f5f7f5;
  --hero: #111713;
  --danger: #a82d2d;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 32rem),
    var(--canvas);
  font: 15px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: var(--brand); }

.app-shell {
  width: min(1180px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 28px calc(42px + env(safe-area-inset-bottom));
}
.topbar {
  display: flex;
  height: 78px;
  align-items: center;
  justify-content: space-between;
}
.brand-mark {
  position: relative;
  padding: 0 0 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font: 900 25px/1 Inter, sans-serif;
  letter-spacing: -.065em;
  cursor: pointer;
}
.brand-mark::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--brand);
  content: "";
}
.brand-mark.has-logo::after { display: none; }
.brand-mark img { display: block; width: auto; height: 24px; object-fit: contain; }
.identity {
  max-width: 55%;
  overflow: hidden;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.language-picker { position: relative; }
.language-picker select { width: auto; min-width: 132px; min-height: 38px; margin: 0; padding: 8px 29px 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.78); color: var(--ink); font-size: 12px; font-weight: 650; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.hidden { display: none !important; }

/* Warranty landing */
.warranty-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  gap: 64px;
  min-height: 670px;
  overflow: hidden;
  padding: 72px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 4% 105%, rgba(15,151,101,.31), transparent 36%),
    radial-gradient(circle at 76% -20%, rgba(70,114,89,.22), transparent 40%),
    var(--hero);
  box-shadow: 0 32px 80px rgba(21,38,28,.18);
}
.warranty-hero::before {
  position: absolute;
  top: -220px;
  left: 41%;
  width: 1px;
  height: 1050px;
  background: linear-gradient(transparent, rgba(255,255,255,.1), transparent);
  content: "";
  transform: rotate(24deg);
}
.customer-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  color: #fff;
}
.mobile-product-art { display: none; }
.warranty-brand-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 45px; }
.mobile-language-flags { display: none; }
.official-lockup { display: inline-flex; align-items: center; gap: 14px; min-height: 54px; padding: 9px 16px; border: 1px solid rgba(255,255,255,.17); border-radius: 15px; background: rgba(255,255,255,.035); box-shadow: inset 0 1px rgba(255,255,255,.04); }
.hero-brand-logo { display: block; color: #fff; font-size: 19px; font-weight: 900; letter-spacing: -.05em; }
.hero-brand-logo img { display: block; width: auto; height: 19px; object-fit: contain; filter: invert(1); }
.lockup-divider { width: 1px; height: 30px; background: rgba(255,255,255,.17); }
.official-copy small, .official-copy strong { display: block; white-space: nowrap; }
.official-copy small { margin-bottom: 3px; color: #8fa097; font-size: 8px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.official-copy strong { color: #e7eee9; font-size: 10px; letter-spacing: .14em; }
.official-copy i { display: inline-grid; width: 17px; height: 17px; margin-right: 5px; place-items: center; border-radius: 50%; background: #2ad191; color: #092d20; font-size: 9px; font-style: normal; }
.eyebrow {
  margin: 0 0 15px;
  color: #6ee2b2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.customer-copy h1 {
  max-width: 610px;
  margin: 0;
  color: #fff;
  font-size: clamp(43px, 5vw, 67px);
  font-weight: 720;
  letter-spacing: -.065em;
  line-height: .98;
}
.customer-copy h1 em {
  color: #7ce7ba;
  font-style: normal;
  font-weight: inherit;
}
.customer-copy .lead {
  max-width: 570px;
  margin: 28px 0 34px;
  color: #aeb9b2;
  font-size: 17px;
  line-height: 1.6;
}
.warranty-points {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 19px;
  max-width: 620px;
  margin-bottom: 34px;
}
.warranty-points span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ced6d1;
  font-size: 12px;
}
.warranty-points i {
  color: #50c997;
  font: 700 9px/1 ui-monospace, monospace;
}
.warranty-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-size: 13px;
  text-decoration: none;
}
.warranty-link span { color: #68dca9; }

.activation-card {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 32px;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 26px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 25px 70px rgba(0,0,0,.25);
}
.activation-heading { margin-bottom: 20px; }
.step-pill {
  display: inline-block;
  margin-bottom: 11px;
  padding: 5px 8px;
  border-radius: 7px;
  background: #e7f5ef;
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.activation-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  letter-spacing: -.04em;
  line-height: 1.1;
}
.activation-heading p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.desktop-upload {
  display: flex;
  min-height: 84px;
  align-items: center;
  gap: 15px;
  padding: 14px 15px;
  border: 1px solid #d9e2dc;
  border-radius: 16px;
  background: #f8faf8;
  cursor: pointer;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.desktop-upload:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 11px 28px rgba(6,103,70,.11);
}
.desktop-upload > span:nth-child(2) { min-width: 0; flex: 1; }
.desktop-upload strong, .desktop-upload small { display: block; }
.desktop-upload strong { color: var(--ink); font-size: 14px; }
.desktop-upload small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.upload-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 14px;
  background: var(--brand);
}
.upload-icon i, .upload-small {
  position: relative;
  width: 17px;
  height: 14px;
  border: 1.8px solid currentColor;
  border-radius: 3px;
}
.upload-icon i { color: #fff; }
.upload-icon i::before, .upload-small::before {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-top: 1.8px solid currentColor;
  border-left: 1.8px solid currentColor;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}
.upload-icon i::after, .upload-small::after {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 1.8px;
  height: 10px;
  background: currentColor;
  content: "";
  transform: translateX(-50%);
}
.upload-arrow { color: var(--brand); font-size: 20px; }

.qr-location {
  display: grid;
  grid-template-columns: 142px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e7ebe8;
}
.label-preview {
  position: relative;
  height: 104px;
  overflow: hidden;
  border: 1px solid #d8ddd9;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(30,45,36,.08);
}
.box-silhouette {
  position: absolute;
  top: 14px;
  left: 11px;
  width: 77px;
  height: 14px;
  border-radius: 90% 42% 45% 70%;
  background: linear-gradient(180deg,#4c504d,#121512);
  transform: skewX(-8deg);
}
.label-lines { position: absolute; top: 39px; left: 11px; width: 70px; }
.label-lines b, .label-lines i { display: block; height: 3px; margin-bottom: 5px; border-radius: 3px; background: #cdd2ce; }
.label-lines b { width: 70px; background: #69716b; }
.label-lines i:nth-child(2) { width: 54px; }
.label-lines i:nth-child(3) { width: 62px; }
.qr-sample {
  position: absolute;
  right: 11px;
  bottom: 24px;
  width: 40px;
  height: 40px;
  border: 4px solid #121512;
  background:
    repeating-conic-gradient(#121512 0 25%, transparent 0 50%) 50% / 8px 8px;
  box-shadow: inset 0 0 0 3px #fff;
}
.serial-sample {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 1px 3px;
  border: 1px solid #e25a4e;
  background: #fff;
  color: #222;
  font: 700 6px/1.2 ui-monospace, monospace;
}
.locator-pulse {
  position: absolute;
  right: 3px;
  bottom: 17px;
  width: 54px;
  height: 54px;
  border: 2px solid #ec675c;
  border-radius: 9px;
  box-shadow: 0 0 0 4px rgba(236,103,92,.12);
}
.location-copy strong { font-size: 13px; }
.location-copy p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.location-copy b { color: var(--ink); font-family: ui-monospace, monospace; }
.privacy-note { margin: 18px 0 0; color: #8a938d; font-size: 10px; text-align: center; }
.privacy-note span { margin-right: 4px; color: var(--brand); font-size: 8px; }

/* Shared controls and inner screens */
.screen {
  max-width: 600px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 20px 55px rgba(24,51,35,.09);
  animation: screen-in .22s ease-out;
}
#partnerHome { max-width: 720px; }
@keyframes screen-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
h1, h2, h3 { margin: 0; color: var(--ink); letter-spacing: -.035em; }
.screen h1 { font-size: 38px; line-height: 1.04; }
.screen h2 { font-size: 29px; line-height: 1.1; }
.screen h3 { margin-bottom: 12px; font-size: 18px; }
.kicker, .partner-label { margin: 0 0 10px; color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lead, .hint { color: var(--muted); }
.screen .lead { margin: 15px 0 26px; font-size: 16px; }
.hint { margin: 10px 0 18px; }
.hero-icon { display: none; }
.primary, .secondary-action, .quiet-action, .text-action, .back, .workspace-card, .partner-result { cursor: pointer; }
.primary {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  box-shadow: 0 9px 22px rgba(8,118,81,.18);
}
.primary:active { transform: translateY(1px); }
.scan-button { display: flex; align-items: center; justify-content: center; gap: 10px; }
.scan-symbol { position: relative; width: 20px; height: 20px; border: 2px solid currentColor; border-radius: 4px; }
.scan-symbol::after { position: absolute; inset: 5px; border: 2px solid currentColor; border-radius: 2px; content: ""; }
.secondary-action, .quiet-action {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  font-weight: 650;
}
.text-action { display: block; margin: 20px auto 0; padding: 7px; border: 0; background: none; color: var(--muted); font-size: 12px; }
.text-action span { margin-left: 5px; color: var(--brand); }
.mobile-action, .mobile-copy, .telegram-only { display: none; }
.mobile-manual-copy { display: none; }
.web-client .mobile-alternatives { display: grid; grid-template-columns: 1fr; margin-top: 10px; }
.web-client .mobile-alternatives label { display: none; }
.web-client .mobile-alternatives #manual { display: flex; width: 100%; min-height: 49px; align-items: center; justify-content: center; gap: 8px; margin: 0; }
.telegram-client .telegram-only { display: block; }
.partner-label { display: inline-block; padding: 6px 9px; border-radius: 7px; background: #e8f4ee; }
.workspace-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 24px; }
.workspace-card { min-height: 112px; padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: var(--soft); text-align: left; }
.workspace-card strong { display: block; margin-bottom: 6px; color: var(--brand); font-size: 29px; }
.workspace-card span { color: var(--muted); font-size: 13px; }
.warehouse-screen { max-width: 620px; }
.warehouse-actions { display: grid; gap: 10px; margin-top: 18px; }
.warehouse-camera { display: flex; align-items: center; justify-content: center; cursor: pointer; }
.warehouse-photo-queue { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--soft); }
.warehouse-photo-queue div { display: flex; align-items: baseline; gap: 6px; }
.warehouse-photo-queue strong { color: var(--brand); font-size: 22px; }
.warehouse-photo-queue span { color: var(--muted); font-size: 11px; }
.warehouse-photo-queue button { padding: 5px; border: 0; background: none; color: var(--muted); font-size: 11px; }
.warehouse-session { display: flex; align-items: center; gap: 12px; margin: 20px 0; padding: 15px 17px; border: 1px solid var(--line); border-radius: 15px; background: var(--soft); }
.warehouse-session strong { color: var(--brand); font-size: 30px; line-height: 1; }
.warehouse-session span { color: var(--muted); font-size: 13px; }
.warehouse-serial-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.warehouse-serial-row .secondary-action { min-height: 50px; }
.warehouse-screen .text-action { display: block; margin: 10px auto 0; }
.document-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 4px 0 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.document-heading div { display: flex; flex-direction: column; }
.document-heading div:last-child { align-items: flex-end; }
.document-heading strong { font-size: 18px; }
.document-heading div:last-child strong { color: var(--brand); font-size: 30px; line-height: 1; }
.document-heading small { color: var(--muted); font-size: 11px; }
.document-models { display: grid; gap: 8px; margin: 18px 0; }
.document-model-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.document-model-row div { display: flex; min-width: 0; flex-direction: column; }
.document-model-row span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.document-model-row b { color: var(--brand); font-size: 23px; }
.warehouse-batch-rows { display: grid; gap: 9px; margin: 16px 0; }
.warehouse-batch-row { padding: 11px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.warehouse-batch-row.has-conflict { border-color: #e2ae70; background: #fff8ef; }
.batch-row-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 4px; }
.batch-row-head strong { font-size: 12px; }
.batch-row-head span { overflow: hidden; max-width: 65%; color: var(--brand); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.warehouse-batch-row input, .warehouse-batch-row select { min-height: 44px; margin: 4px 0; font-size: 14px; }
button:disabled { cursor: not-allowed; opacity: .45; }
.back { margin: 0 0 24px; padding: 0; border: 0; background: none; color: var(--muted); font-weight: 650; }
.back::before { color: var(--brand); content: "← "; }
.field-label { display: block; margin: 18px 2px 2px; color: var(--ink); font-size: 12px; font-weight: 750; }
.catalog-note { margin: 8px 2px 20px; color: var(--muted); font-size: 11px; }
input, select { width: 100%; min-height: 50px; margin: 6px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; outline: none; background: #fff; color: var(--ink); font-size: 16px; }
input:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(8,118,81,.1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.phone-field { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); min-height: 50px; margin: 6px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.phone-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(8,118,81,.1); }
.phone-country { position: relative; display: flex; width: 104px; min-height: 50px; align-items: center; align-self: stretch; border-right: 1px solid var(--line); }
.phone-country::after { position: absolute; right: 10px; color: var(--muted); content: "⌄"; font-size: 13px; pointer-events: none; }
.phone-country-display { display: flex; width: 100%; align-items: center; gap: 7px; padding: 0 28px 0 12px; white-space: nowrap; }
.phone-country-display b { font-size: 18px; font-weight: 400; line-height: 1; }
.phone-country-display strong { font-size: 16px; font-weight: 400; line-height: 1; }
.phone-country select { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; min-height: 50px; margin: 0; opacity: 0; cursor: pointer; }
.phone-field input { min-width: 0; min-height: 50px; margin: 0; padding-block: 0; border: 0; border-radius: 0; box-shadow: none !important; }
.phone-field.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(168,45,45,.08); }
.purchase-date { position: relative; display: block; width: 100%; min-width: 0; max-width: 100%; inline-size: 100%; min-inline-size: 0; max-inline-size: 100%; color-scheme: light; cursor: pointer; }
.purchase-date::-webkit-calendar-picker-indicator { width: 24px; height: 24px; cursor: pointer; opacity: .72; }
.purchase-block { min-width: 0; margin-top: 23px; padding-top: 21px; overflow: hidden; border-top: 1px solid var(--line); }
.partner-not-found { margin-bottom: 17px; padding: 14px 15px; border: 1px solid #e8c6a0; border-radius: 13px; background: #fff8ef; }
.partner-not-found strong { display: block; color: #7d4718; font-size: 15px; }
.partner-not-found p { margin: 4px 0 0; color: #805d3e; font-size: 11px; line-height: 1.45; }
.known-partner-prompt { margin-bottom: 17px; padding: 15px; border: 1px solid #b9ddcc; border-radius: 14px; background: #edf8f2; }
.known-partner-prompt small,.known-partner-prompt strong { display: block; }
.known-partner-prompt small { color: var(--brand-dark); font-size: 10px; }
.known-partner-prompt strong { margin: 3px 0; color: var(--ink); font-size: 17px; }
.known-partner-prompt p { margin: 4px 0 12px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.known-partner-prompt > div { display: flex; gap: 8px; }
.known-partner-prompt .compact-action { width: auto; min-height: 42px; margin: 0; padding: 9px 13px; font-size: 12px; }
.known-partner-prompt.confirmed { border-color: var(--brand); }
.known-location-choice { margin: -8px 0 15px; padding: 0 15px 13px; border: 1px solid #b9ddcc; border-top: 0; border-radius: 0 0 14px 14px; background: #edf8f2; }
.known-location-choice .field-label { margin-top: 0; }
.warehouse-recognition-warning ul { margin: 8px 0 0; padding-left: 19px; color: #805d3e; }
.warehouse-recognition-warning li { margin: 5px 0; font-size: 12px; line-height: 1.4; }
.warehouse-gallery { display:flex;align-items:center;justify-content:center;cursor:pointer; }
.camera-overlay { position:fixed;z-index:10000;inset:0;display:grid;place-items:center;padding:max(16px,env(safe-area-inset-top)) 14px max(16px,env(safe-area-inset-bottom));background:rgba(0,0,0,.88); }
.camera-panel { width:min(620px,100%);padding:14px;border-radius:18px;background:#101713;color:#fff; }
.camera-head { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px; }
.camera-head strong { font-size:16px; }
.camera-head button { width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:28px;cursor:pointer; }
.camera-panel video { display:block;width:100%;max-height:65vh;object-fit:contain;border-radius:13px;background:#000; }
.camera-panel p { margin:10px 2px;color:#c5cec9;font-size:12px; }
.camera-panel .primary { margin:8px 0 0; }
.seller-note { margin: 6px 3px 15px; color: var(--muted); font-size: 10px; }
.receipt-block { margin-top: 23px; padding-top: 21px; border-top: 1px solid var(--line); }
.receipt-block .hint { margin: -5px 0 12px; font-size: 12px; }
.receipt-upload { display: flex; min-height: 66px; align-items: center; gap: 13px; padding: 12px 14px; border: 1px dashed #bdc9c1; border-radius: 14px; background: var(--soft); cursor: pointer; }
.receipt-upload.selected { border-style: solid; border-color: var(--brand); background: #f0f8f4; }
.receipt-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 11px; background: #e4f3ec; color: var(--brand); font-size: 22px; }
.receipt-upload strong, .receipt-upload small { display: block; }
.receipt-upload strong { max-width: 390px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.receipt-upload small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.receipt-status { margin-top: 10px; padding: 10px 12px; border-radius: 11px; background: #f3f5f3; color: var(--muted); font-size: 11px; text-align: center; }
.receipt-partner { display: flex; align-items: center; gap: 11px; margin-top: 10px; padding: 12px 14px; border: 1px solid #b9ddcc; border-radius: 13px; background: #edf8f2; }
.receipt-partner > span { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; }
.receipt-partner small, .receipt-partner strong { display: block; }
.receipt-partner small { color: var(--brand-dark); font-size: 10px; }
.receipt-partner strong { margin-top: 2px; font-size: 12px; }
.consents { margin: 22px 0; }
.consents label { display: flex; align-items: flex-start; gap: 10px; margin: 13px 0; color: var(--muted); font-size: 13px; }
.consents input { width: 19px; min-height: 19px; margin: 1px 0; accent-color: var(--brand); }
.partner-result { display: flex; width: 100%; justify-content: space-between; gap: 12px; margin: 7px 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; }
.partner-result span { color: var(--muted); font-size: 12px; }
.partner-result-main { display: grid; gap: 3px; min-width: 0; color: var(--ink) !important; }
.partner-result-main strong { color: var(--ink); }
.partner-result-main small { color: var(--brand); font-size: 10px; font-weight: 750; }
.partner-result.selected { position: relative; border-color: var(--brand); background: #f1f8f5; box-shadow: 0 0 0 2px rgba(8,118,81,.08); }
.partner-result.selected::after { align-self: center; color: var(--brand); content: "✓ Выбрано"; font-size: 11px; font-weight: 800; }
.found-check, .success-mark { display: grid; width: 55px; height: 55px; margin-bottom: 18px; place-items: center; border-radius: 50%; background: #e8f5ef; color: var(--brand); font-size: 27px; font-weight: 900; }
.completion-screen { max-width: 680px; }
.completion-screen h2 { margin-bottom: 10px; }
.completion-screen > .lead { max-width: 540px; margin: 0 auto 24px; }
.social-invitation { width: 100%; margin: 5px 0 14px; padding: 20px; border-radius: 18px; background: var(--soft); text-align: left; }
.social-invitation > strong { display: block; font-size: 18px; }
.social-invitation > p { margin: 4px 0 15px; color: var(--muted); font-size: 13px; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-links a { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 750; text-decoration: none; }
.social-links a:hover { border-color: var(--brand); color: var(--brand); }
.official-hashtag { display: grid; width: 100%; margin-bottom: 17px; padding: 16px 19px; border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line)); border-radius: 18px; background: color-mix(in srgb, var(--brand) 7%, #fff); text-align: left; }
.official-hashtag small { color: var(--brand-dark); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.official-hashtag strong { margin: 2px 0; color: var(--brand); font-size: 24px; }
.official-hashtag span { color: var(--muted); font-size: 11px; }
.serial-card { display: flex; justify-content: space-between; align-items: center; margin: 22px 0; padding: 16px; border-radius: 14px; background: var(--soft); }
.serial-card span { color: var(--muted); font-size: 12px; }
.serial-card strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.center { text-align: center; }
.center .success-mark { margin: 0 auto 20px; }
.list { margin-top: 18px; }
.list-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row div { min-width: 0; }
.list-row strong, .list-row span { display: block; }
.list-row span { margin-top: 4px; color: var(--muted); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.list-row small { flex: 0 0 42%; color: var(--muted); text-align: right; }
.empty-state { padding: 38px 12px; color: var(--muted); text-align: center; }
.invite-panel { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.invite-result { margin-top: 12px; }
.toast { position: fixed; z-index: 20; bottom: calc(20px + env(safe-area-inset-bottom)); left: 50%; width: min(500px, calc(100% - 36px)); padding: 13px 16px; border-radius: 13px; background: #202722; color: #fff; text-align: center; box-shadow: 0 12px 35px rgba(0,0,0,.2); transform: translateX(-50%); }
.toast:not(.hidden) { animation: toast-in .2s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

@media (max-width: 900px) {
  .app-shell { padding-inline: 18px; }
  .warranty-hero { grid-template-columns: 1fr; gap: 44px; padding: 52px; }
  .customer-copy { max-width: 680px; }
  .activation-card { width: min(560px, 100%); }
}

@media (max-width: 767px) {
  body { background: var(--hero); }
  .app-shell { width: 100%; padding: env(safe-area-inset-top) 0 calc(24px + env(safe-area-inset-bottom)); }
  .topbar { position: relative; height: 58px; justify-content: space-between; padding: 8px 18px 0; }
  .brand-mark { display: block; }
  .brand-mark img { height: 20px; filter: invert(1); }
  .web-client .brand-mark { display: none; }
  .identity { border-color: rgba(255,255,255,.13); background: rgba(255,255,255,.08); color: #c0c9c3; }
  .topbar-actions { gap: 6px; }
  .language-picker select { min-width: 126px; min-height: 36px; border-color: rgba(255,255,255,.16); background: #1a241e; color: #fff; font-size: 11px; }
  .warranty-hero { display: block; min-height: 0; padding: 12px 18px 18px; border-radius: 0; background: var(--hero); box-shadow: none; }
  .warranty-hero::before { display: none; }
  .warranty-brand-row { margin-bottom: 18px; }
  .web-client .topbar { display: none; }
  .web-client .language-picker { display: none; }
  .web-client .warranty-brand-row { position: relative; display: block; min-height: 99px; }
  .web-client .mobile-language-flags { position: absolute; z-index: 5; top: 62px; left: 50%; display: flex; width: 181px; height: 37px; margin: 0; padding: 3px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: #18211c; transform: translateX(-50%); }
  .web-client .mobile-language-flags button { display: grid; width: 35px; height: 31px; padding: 0; place-items: center; border: 0; border-radius: 999px; background: transparent; font-size: 17px; line-height: 1; cursor: pointer; touch-action: manipulation; }
  .web-client .mobile-language-flags button.selected { background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
  .web-client .official-lockup { display: grid; width: 100%; min-height: 54px; grid-template-columns: 112px 1px minmax(0, 1fr); justify-content: normal; }
  .web-client .hero-brand-logo { display: grid; width: 112px; place-items: center; }
  .web-client .official-copy { min-width: 0; overflow: hidden; }
  .telegram-mobile .topbar { display: none; }
  .telegram-mobile .warranty-hero { padding-top: 54px; }
  .telegram-mobile .warranty-brand-row { position: relative; display: block; min-height: 99px; }
  .telegram-mobile .mobile-language-flags { position: absolute; z-index: 5; top: 62px; left: 50%; display: flex; width: 181px; height: 37px; margin: 0; padding: 3px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: #18211c; isolation: isolate; transform: translateX(-50%); }
  .telegram-mobile .mobile-language-flags button { display: grid; width: 35px; height: 31px; padding: 0; place-items: center; border: 0; border-radius: 999px; background: transparent; font-size: 17px; line-height: 1; cursor: pointer; touch-action: manipulation; }
  .telegram-mobile .mobile-language-flags button.selected { background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
  .telegram-mobile .official-lockup { display: grid; width: 100%; height: 54px; min-height: 54px; grid-template-columns: 112px 1px minmax(0, 1fr); justify-content: normal; overflow: hidden; gap: 11px; padding: 8px 12px; border-radius: 14px; }
  .telegram-mobile .hero-brand-logo { display: grid; width: 112px; place-items: center; }
  .telegram-mobile .official-copy { min-width: 0; overflow: hidden; }
  .telegram-mobile .official-copy small, .telegram-mobile .official-copy strong { overflow: hidden; text-overflow: ellipsis; }
  .telegram-mobile .hero-brand-logo img { height: 16px; }
  .telegram-mobile .lockup-divider { height: 25px; }
  .telegram-mobile .official-copy small { font-size: 7px; letter-spacing: .07em; }
  .telegram-mobile .official-copy strong { font-size: 9px; letter-spacing: .1em; }
  .telegram-mobile .official-copy i { width: 14px; height: 14px; margin-right: 3px; font-size: 7px; }
  .customer-copy h1 { font-size: clamp(38px, 12vw, 51px); }
  .customer-copy .lead { max-width: 82%; margin: 17px 0 19px; font-size: 14px; line-height: 1.5; }
  .warranty-points { display: none; }
  .warranty-link { margin-bottom: 23px; }
  .mobile-product-art { position: absolute; top: 16px; right: -36px; display: block; width: 210px; height: 94px; opacity: .25; pointer-events: none; transform: rotate(-7deg); }
  .mobile-product-art::before, .mobile-product-art span { position: absolute; content: ""; }
  .mobile-product-art::before { top: 25px; right: 0; width: 195px; height: 35px; border: 1px solid #8ce8bd; border-radius: 80% 30% 38% 58%; background: linear-gradient(165deg,rgba(124,231,186,.14),transparent); transform: skewX(-12deg); }
  .mobile-product-art span { right: 26px; bottom: 20px; width: 126px; height: 1px; background: linear-gradient(90deg,transparent,#7ce7ba,transparent); }
  .customer-copy { overflow: hidden; }
  .activation-card { width: 100%; padding: 23px 18px 20px; border-radius: 24px; box-shadow: none; }
  .activation-heading h2 { font-size: 25px; }
  .desktop-upload { min-height: 76px; }
  .qr-location { grid-template-columns: 126px 1fr; gap: 14px; }
  .label-preview { height: 96px; }
  .screen { max-width: calc(100% - 24px); padding: 25px 19px; }
  #partnerHome { max-width: calc(100% - 24px); }
  .screen h1 { font-size: 34px; }
  .warehouse-screen { padding: 20px 16px; }
  .warehouse-screen .back { margin-bottom: 14px; font-size: 14px; }
  .warehouse-screen .kicker { margin-bottom: 7px; }
  .warehouse-screen h2 { margin-bottom: 14px; font-size: 27px; line-height: 1.03; }
  #warehouseMoveScreen > h2 { max-width: 280px; }
  .document-heading { gap: 9px; margin-bottom: 12px; padding: 11px 13px; }
  .document-heading > div:first-child { min-width: 0; }
  .document-heading > div:first-child strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  .document-heading div:last-child strong { font-size: 25px; }
  .warehouse-screen .scan-button { min-height: 54px; padding: 12px; font-size: 15px; }
  .warehouse-screen .field-label { margin-top: 12px; }
  .warehouse-serial-row { grid-template-columns: minmax(0, 1fr) 98px; gap: 7px; }
  .warehouse-serial-row input, .warehouse-serial-row .secondary-action { min-height: 46px; font-size: 13px; }
  .document-models { gap: 7px; margin: 12px 0; }
  .document-model-row { padding: 10px 12px; }
  .document-model-row strong { font-size: 14px; }
  .document-model-row b { font-size: 20px; }
  .field-row { grid-template-columns: 1fr; }
  .telegram-mobile .desktop-copy, .telegram-mobile .desktop-upload { display: none; }
  .telegram-mobile .mobile-copy { display: block; }
  .telegram-mobile .mobile-action { display: grid; }
  .telegram-mobile .scan-button { display: flex; }
  .desktop-manual-copy { display: none; }
  .mobile-manual-copy { display: inline; }
  .mobile-alternatives { grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 9px; }
  .mobile-alternatives .secondary-action { display: flex; min-height: 49px; align-items: center; justify-content: center; gap: 7px; margin: 0; padding: 10px 8px; font-size: 12px; }
  .action-icon { display: inline-block; flex: 0 0 auto; color: var(--brand); }
  .manual-icon { width: auto; height: auto; border: 0; font: 800 9px/1 ui-monospace, monospace; }
}

@media (max-width: 390px) {
  .topbar { padding-inline: 12px; }
  .web-client .mobile-language-flags, .telegram-mobile .mobile-language-flags { width: 157px; }
  .web-client .mobile-language-flags button, .telegram-mobile .mobile-language-flags button { width: 30px; }
  .brand-mark img { max-width: 60px; height: 15px; }
  .web-client .official-lockup, .telegram-mobile .official-lockup { grid-template-columns: 92px 1px minmax(0, 1fr); gap: 8px; padding-inline: 9px; }
  .web-client .hero-brand-logo, .telegram-mobile .hero-brand-logo { width: 92px; }
  .customer-copy h1 { font-size: 38px; }
  .qr-location { grid-template-columns: 112px 1fr; }
  .location-copy p { font-size: 10px; }
  .workspace-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.work-tasks-entry{display:block;margin:12px 16px;padding:12px 16px;border:1px solid #176b4b;border-radius:10px;color:#176b4b;background:#fff;text-align:center;font:600 16px/1.45 Manrope,Arial,sans-serif;text-decoration:none;min-height:44px}
#warehouseShippingComment { display: block; box-sizing: border-box; width: 100%; min-height: 88px; margin: 6px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; resize: vertical; }
#warehouseShippingComment:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.warehouse-screen select { appearance: none; -webkit-appearance: none; box-sizing: border-box; height: 50px; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23526359' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }

.warehouse-transfer-task { display: block; width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: left; margin: 12px 0; }

#warehouseDocumentNumber { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }

/* Warehouse document: aligned controls and readable box identities. */
#warehouseMoveScreen .warehouse-serial-row { align-items: stretch; margin-top: 6px; }
#warehouseMoveScreen .warehouse-serial-row input,
#warehouseMoveScreen .warehouse-serial-row .secondary-action { height: 50px; min-height: 50px; margin: 0; }
#warehouseMoveScreen .document-model-row { align-items: flex-start; }
#warehouseMoveScreen .document-model-row strong { overflow-wrap: anywhere; }
#warehouseMoveScreen .document-model-row b { flex: 0 0 2ch; text-align: right; font-variant-numeric: tabular-nums; }
.document-serials { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14px; line-height: 1.45; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.document-serials li + li { margin-top: 4px; }
@media (max-width: 640px) {
  #warehouseMoveScreen input, #warehouseMoveScreen select { font-size: 16px; }
}

#warehouseMoveScreen .document-models h3 { margin: 12px 0 0; font-size: 18px; line-height: 1.3; }
#warehouseMoveScreen .document-models h3:first-child { margin-top: 0; }

/* Dispatch starts from the selected warehouse's actual order queue. */
.warehouse-dispatch-tasks { margin: 26px 0 30px; }
.warehouse-task-heading, .warehouse-task-top, .warehouse-task-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.warehouse-task-heading { margin-bottom: 8px; }
.warehouse-screen .warehouse-task-heading h2, .warehouse-screen .warehouse-section-title { margin: 0; font-size: 18px; line-height: 1.35; }
.warehouse-task-heading .text-action { width: auto; margin: 0; padding: 10px 0 10px 12px; }
#warehouseOrderCount { color: var(--muted); font-weight: 500; }
.warehouse-order-task { display: block; width: 100%; margin: 0; padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--surface); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.warehouse-order-task:hover { background: var(--soft); }
.warehouse-order-task:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.warehouse-task-top { margin-bottom: 10px; font-size: 14px; }
.warehouse-task-top > span { color: var(--muted); font-size: 12px; }
.warehouse-task-recipient { display: block; color: var(--ink); font-size: 1.125rem; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.warehouse-task-city { display: block; margin-top: 5px; color: var(--ink); font-size: .875rem; line-height: 1.45; }
.warehouse-task-partner { display: block; margin-top: 3px; color: var(--muted); font-size: .8125rem; font-weight: 400; line-height: 1.45; }
.warehouse-task-items { display: block; margin: 12px 0; font-size: 14px; line-height: 1.6; }
.warehouse-task-bottom { flex-wrap: wrap; font-size: 13px; }
.warehouse-task-bottom b { color: var(--brand); font-weight: 700; }
.warehouse-order-details { margin: 16px 0 22px; overflow-wrap: anywhere; }
.warehouse-order-details:empty { display: none; }
.warehouse-order-details p { margin: 6px 0; white-space: pre-wrap; }
#warehouseMoveScreen .document-model-row .warehouse-progress { flex-basis: auto; min-width: 5ch; font-size: 17px; white-space: nowrap; }
.warehouse-scanned-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
.warehouse-scanned-row > span { min-width: 0; overflow-wrap: anywhere; }
.warehouse-scanned-row .text-action { width: auto; min-height: 44px; margin: 0; flex-shrink: 0; }
.warehouse-screen button:disabled { opacity: .55; cursor: wait; }
@media (max-width: 640px) {
  .warehouse-screen input, .warehouse-screen select, .warehouse-screen textarea { font-size: 16px; }
  .warehouse-screen .warehouse-task-heading h2, .warehouse-screen .warehouse-section-title { font-size: 18px; }
}
#warehouseMoveScreen > #warehouseMoveTitle { max-width: none; text-wrap: balance; }
