@font-face {
  font-family: Manrope;
  src: url('/manrope.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url('/manrope-cyr.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  color-scheme: light;
  font-synthesis: none;
  --canvas: #f5f6f8;
  --surface: #fff;
  --surface-hover: #f3f4f6;
  --ink: #1b1d23;
  --muted: #5c6270;
  --soft: #eceef1;
  --line: #e3e5ea;
  --strong-line: #c6c9d1;
  --accent: #ffbf35;
  --accent-hover: #f3ad1b;
  --accent-soft: #ffedc9;
  --accent-line: #e5b750;
  --accent-ink: #704801;
  --focus: #ac6b00;
  --error: #9c2132;
  --success: #21613c;
  --sidebar: #191b21;
  --radius: 16px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #14161c;
  --surface: #20232b;
  --surface-hover: #2a2f39;
  --ink: #f1f2f5;
  --muted: #b7bdc9;
  --soft: #2e333d;
  --line: #383e4a;
  --strong-line: #555e70;
  --accent-soft: #3e311b;
  --accent-line: #8d6931;
  --accent-ink: #ffd079;
  --focus: #ffbf35;
  --error: #ff9aab;
  --success: #90d9aa;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:disabled { opacity: .6; cursor: wait; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }
svg { flex: 0 0 auto; vertical-align: middle; }

.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 20; background: var(--surface); padding: 10px 15px; }
.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 28px 17px 14px;
  background: var(--sidebar);
  color: #f2f3f4;
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; }
.brand img, .mobile-brand img { flex-shrink: 0; border-radius: 24%; }
.brand img { width: 52px; height: 52px; }
.brand > span { display: grid; gap: 3px; }
.brand strong { font-size: 1.14rem; line-height: 1.18; letter-spacing: -.045em; font-weight: 800; }
.brand small { color: #b3b6bf; font-size: .71rem; font-weight: 600; }
#navigation { margin-top: 43px; }
.nav-group + .nav-group { margin-top: 28px; }
.nav-group p { padding: 0 10px 8px; color: #a1a5b2; font-size: .68rem; font-weight: 800; letter-spacing: .1em; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 45px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #d5d7de;
  font-size: .88rem;
  font-weight: 700;
}
.nav-link:hover { background: #252831; }
.sidebar .nav-link { display: grid; grid-template-columns: 19px minmax(0, 1fr) 19px; text-align: center; }
.sidebar .nav-link > span { grid-column: 2; }
.nav-link.active { color: #ffcb5d; border-color: #524124; background: #383022; }
.topbar > .mobile-menu-trigger, .mobile-main-actions, .mobile-admin { display: none; }
.sidebar-bottom { margin-top: auto; padding-top: 18px; }
.sidebar-user { min-width: 0; display: grid; gap: 3px; }
.sidebar-user strong { font-size: .81rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user small { color: #b3b6bf; font-size: .73rem; }
.sidebar-footer { display: flex; align-items: center; gap: 9px; padding: 17px 2px 3px; }
.sidebar-footer .sidebar-icon { margin-left: auto; flex: 0 0 auto; color: #c3c5ce; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 32px;
  height: 72px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.top-title, .mobile-brand { display: flex; gap: 10px; align-items: center; font-size: .9rem; font-weight: 800; }
.top-title svg { color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.notification-link { position: relative; flex-shrink: 0; }
.notification-count {
  position: absolute;
  inset: -5px -5px auto auto;
  min-width: 19px;
  padding: 2px 4px;
  border-radius: 12px;
  background: var(--accent);
  color: #221802;
  font-size: .67rem;
  font-weight: 800;
  text-align: center;
}
.topbar > [data-action="guide"] { margin-inline-start: auto; flex-shrink: 0; }
.mobile-brand { display: none; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: .875rem;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  transition: background .15s, border-color .15s;
}
.button.primary { color: #221802; background: var(--accent); border-color: var(--accent); }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.secondary { color: var(--ink); background: var(--surface); border-color: var(--line); }
.button.secondary:hover { background: var(--surface-hover); border-color: var(--strong-line); }
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}
.icon-button:hover { background: #74778325; }
.theme-toggle { flex: 0 0 auto; border: 1px solid var(--line); }
.theme-toggle[aria-pressed="true"] { color: var(--accent-ink); }

main { width: 100%; max-width: 1500px; margin: 0 auto; padding: 28px 32px 44px; outline: none; }
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 326px;
  overflow: hidden;
  padding: 32px 38px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, #17181b 0%, #17181bf2 23%, #17181bb0 42%, #17181b00 72%),
    url('/hero.jpg') 69% center / cover no-repeat,
    #1c1d21;
  box-shadow: 0 5px 14px #27231a16;
  color: #fff;
}
.hero-content { position: relative; max-width: 515px; }
.hero h1 { margin-top: 12px; font-size: clamp(2.1rem, 4vw, 3.45rem); font-weight: 800; letter-spacing: -.062em; line-height: 1.06; }
.hero h1 em { color: #ffca52; font-style: normal; }
.hero p { max-width: 390px; margin-top: 13px; color: #e0e0e4; line-height: 1.55; font-weight: 500; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero-actions .button { min-height: 44px; padding-inline: 14px; }
.button.hero-secondary { border-color: #ffffff60; background: #2324298c; color: #fff; }
.button.hero-secondary:hover { background: #3a3c42; border-color: #fff; }

.feed { margin-top: 27px; scroll-margin-top: 12px; }
.feed-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.feed-title { display: flex; align-items: center; gap: 10px; }
.feed-title h2 { font-size: 1.66rem; font-weight: 800; letter-spacing: -.05em; line-height: 1.25; }
.count {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 26px;
  padding: 3px 7px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: .79rem;
  font-weight: 800;
}
.filters { margin-bottom: 18px; }
.order-logistics { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-block: 16px; }
.order-logistics dt { color: var(--muted); font-size: .85rem; }
.order-logistics dd { margin: 0; overflow-wrap: anywhere; }
.profile-account, .privacy-page h2:not(:first-child) { margin-top: 20px; }
.privacy-page p { line-height: 1.65; }
.admin-user-filters { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 12px 0; }
.admin-user-filters label { display: grid; min-width: 0; gap: 5px; }
.admin-user-filters input, .admin-user-filters select { max-width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.filter-row { display: grid; gap: 10px; }
.search, .select-wrap { position: relative; min-width: 0; }
.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.search:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.search input { width: 100%; min-width: 0; height: 42px; border: 0; outline: none; background: transparent; color: var(--ink); font-size: .9rem; }
.search input:focus-visible { outline: 0; }
.search input::placeholder { color: var(--muted); }
.select-wrap { display: flex; align-items: stretch; }
.select-wrap select {
  appearance: none;
  width: 100%;
  min-height: 42px;
  padding: 7px 35px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 700;
  text-overflow: ellipsis;
}
.select-wrap > svg { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.enhanced-select > select {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.enhanced-select > svg { display: none; }
.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 750;
  text-align: start;
}
.select-trigger:not(:disabled):hover { border-color: var(--strong-line); background: var(--surface-hover); }
.select-trigger:disabled { color: var(--muted); background: var(--canvas); }
.select-trigger svg { color: var(--muted); flex-shrink: 0; }
.select-value { min-width: 0; overflow-wrap: anywhere; }
.location-fields label { min-width: 0; display: grid; gap: 5px; }
.filter-row .location-fields label > span:first-child { color: var(--muted); font-size: .83rem; font-weight: 800; }
.location-fields select:disabled { cursor: default; color: var(--muted); background: var(--canvas); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.advanced-filters { margin-top: 8px; }
.advanced-filters summary { padding-block: 8px; color: var(--ink); font-weight: 800; cursor: pointer; }
.advanced-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.advanced-controls .chips { margin: 0; }
@media (min-width: 621px) {
  .advanced-filters summary { display: none; }
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 37px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: .79rem;
  font-weight: 800;
  white-space: nowrap;
}
.chip:hover { background: var(--surface-hover); }
.chip.selected { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.order-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 17px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 2px 4px #21263605;
}
.order-card:hover { border-color: var(--strong-line); }
.card-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px; }
.card-category, .card-time, .card-place { display: inline-flex; align-items: center; gap: 7px; }
.card-logistics { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.card-logistics .card-place { min-width: 0; }
.card-logistics svg { flex: none; }
.card-category { gap: 9px; color: var(--muted); font-weight: 800; font-size: .79rem; }
.category-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
}
.amber { color: #875605; background: #fff0ce; }
.blue { color: #2455a0; background: #e9f1ff; }
.violet { color: #744ba0; background: #f2eafa; }
.green { color: #276947; background: #e4f5eb; }
.slate { color: #485569; background: #edf0f4; }
[data-theme="dark"] .amber { color: #ffd079; background: #46351c; }
[data-theme="dark"] .blue { color: #aecdff; background: #263955; }
[data-theme="dark"] .violet { color: #dcbaff; background: #3b2b4c; }
[data-theme="dark"] .green { color: #9de2b8; background: #233e31; }
[data-theme="dark"] .slate { color: #cbd4e4; background: #353e4c; }
.card-time, .card-place, .card-response { color: var(--muted); font-size: .78rem; font-weight: 600; }
.card-content { flex: 1; padding: 11px 0 13px; }
.card-content h3, .operator-heading h3 { font-size: 1.14rem; font-weight: 800; line-height: 1.36; letter-spacing: -.023em; overflow-wrap: anywhere; }
.title-button { display: block; text-align: left; padding: 0; border: 0; background: transparent; font: inherit; }
.title-button:hover { color: var(--accent-ink); }
.card-content p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 7px 0 10px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.52;
  overflow-wrap: anywhere;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 58px;
  margin-top: auto;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.card-footer .button { min-height: 37px; padding-inline: 12px; font-size: .82rem; }
.card-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-left: auto; }
.card-response { display: inline-flex; align-items: center; gap: 6px; }
.operator-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.operator-heading .category-icon { width: 50px; height: 50px; }
.operator-category { color: var(--muted); font-size: .82rem; }
.equipment-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 800;
}
.section-intro { padding: 23px 24px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.section-intro h1 { margin-top: 7px; font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 800; letter-spacing: -.05em; }
.section-intro p { margin-top: 6px; color: var(--muted); line-height: 1.55; }
.section-intro .button { margin-top: 12px; }
.order-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 36px 18px; border: 1px dashed var(--strong-line); border-radius: var(--radius); background: var(--surface); }
.empty h3 { margin-top: 9px; }
.empty p, .loading { color: var(--muted); line-height: 1.55; }
.empty p { margin-top: 5px; }
.empty .button { margin-top: 15px; }

dialog {
  width: min(calc(100% - 28px), 510px);
  max-height: min(90dvh, 900px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 65px #11121a55;
}
dialog.wide { width: min(calc(100% - 28px), 670px); }
dialog::backdrop { background: #11131bb0; }
.dialog-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 20px 13px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.dialog-header h2 { padding: 3px 0; font-size: 1.35rem; letter-spacing: -.04em; line-height: 1.3; overflow-wrap: anywhere; }
.dialog-header button { flex-shrink: 0; }
.dialog-body { padding: 18px 20px 21px; }
#select-menu[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(calc(100% - 28px), 420px);
  max-height: min(75dvh, 570px);
  overflow: hidden;
}
.select-options { display: grid; gap: 4px; overflow-y: auto; overscroll-behavior: contain; padding: 8px; }
.select-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
  color: var(--ink);
  font-weight: 650;
  text-align: start;
  overflow-wrap: anywhere;
}
.select-options button:hover { background: var(--surface-hover); }
.select-options button[aria-pressed="true"] { border-color: var(--accent-line); color: var(--accent-ink); background: var(--accent-soft); }
.select-options svg { flex-shrink: 0; }
.guide-dialog[open] {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(calc(100% - 28px), 940px);
  height: min(90dvh, 900px);
  overflow: hidden;
}
.guide-dialog .dialog-header { position: static; align-items: center; }
.guide-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}
.guide-topics button {
  min-height: 42px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 800;
}
.guide-topics button:hover { background: var(--surface-hover); }
.guide-topics button[aria-pressed="true"] { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); }
.guide-scroll { overflow: auto; overscroll-behavior: contain; }
.guide-article { max-width: 810px; margin-inline: auto; padding: 22px 25px 28px; font-size: 1.03rem; line-height: 1.65; }
.guide-article h3 { margin-bottom: 12px; font-size: 1.45rem; line-height: 1.35; }
.guide-article h4 { margin: 19px 0 6px; font-size: 1.12rem; line-height: 1.4; }
.guide-article p { margin-block: 0 10px; }
.guide-article ol { padding-inline-start: 1.5em; margin: 6px 0 14px; }
.guide-article li + li { margin-top: 7px; }
.guide-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block: 16px; }
.guide-roles > div, .guide-tip { padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); }
.guide-roles h4 { margin-top: 0; }
.guide-roles p { margin-bottom: 0; }
.guide-figure { margin: 14px 0 21px; }
.guide-figure a { display: inline-block; max-width: 100%; vertical-align: top; cursor: zoom-in; }
.guide-figure img { display: block; height: auto; max-width: 100%; border: 1px solid var(--strong-line); border-radius: 9px; }
.guide-figure a span { display: inline-block; margin-top: 4px; color: var(--accent-ink); font-size: .9rem; font-weight: 800; text-decoration: underline; }
.guide-figure figcaption { margin-top: 5px; color: var(--muted); font-size: .9rem; }
.guide-step-screen { display: grid; justify-items: start; gap: 4px; margin-block: 6px 12px; }
.guide-step-screen span { display: inline-block; max-width: 100%; padding: 5px 10px; border: 1px solid var(--strong-line); border-radius: 8px; background: var(--surface); overflow-wrap: anywhere; }
.guide-step-screen span:last-child { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; }
.guide-step-screen img { width: 36px; height: 36px; }
.guide-pager { display: flex; justify-content: space-between; gap: 8px; margin-top: 21px; }
.guide-next { margin-inline-start: auto; }
.dialog-note { color: var(--muted); line-height: 1.53; margin-bottom: 14px; }
.form, .form-row { display: grid; gap: 12px; }
.form label { display: grid; gap: 5px; font-size: .875rem; font-weight: 800; }
.form input:not([type=radio], [type=checkbox]), .form textarea, .chat-form input, .chat-form textarea {
  min-width: 0;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--strong-line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}
.form input:not([type=radio], [type=checkbox]), .chat-form input { min-height: 42px; }
.form input::placeholder, .form textarea::placeholder, .chat-form input::placeholder, .chat-form textarea::placeholder { color: var(--muted); font-weight: 500; }
.form textarea { resize: vertical; }
.two-fields, .role-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.password-field, .profile-login-email { display: grid; gap: 6px; }
.profile-login-email .button { justify-self: start; }
.profile-login-email { min-width: 0; overflow-wrap: anywhere; }
.contact-fields { align-items: start; }
.review-deadline { font-weight: 600; }
.password-control { position: relative; }
.form .password-control input { width: 100%; padding-inline-end: 52px; }
.password-control .icon-button { position: absolute; inset-inline-end: 2px; top: 50%; transform: translateY(-50%); width: 44px; min-height: 40px; }
.form .role-choice {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr);
  position: relative;
  align-content: center;
  align-items: center;
  gap: 2px 8px;
  min-height: 76px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.role-choice:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.role-choice:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.role-choice .category-icon { grid-row: span 2; width: 37px; height: 37px; }
.role-choice small { color: var(--muted); font-weight: 600; }
.role-choice input { position: absolute; opacity: 0; top: 10px; left: 10px; width: 1px; height: 1px; }
.form .checkbox { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--accent); }
.submit { justify-self: start; }
.form-error { color: var(--error); font-size: .875rem; font-weight: 700; }
.content-rules { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.content-rules summary { cursor: pointer; font-weight: 800; }
.content-rules p { margin-top: 5px; }
.dialog-links { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 13px; }
.dialog-links button {
  padding: 5px 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: .875rem;
  font-weight: 800;
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.order-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 12px; color: var(--muted); font-size: .83rem; font-weight: 700; }
.order-meta > span { display: inline-flex; gap: 5px; align-items: center; }
.order-description { margin-top: 13px; line-height: 1.65; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.order-author { margin: 13px 0; color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; }
.offers h3 { display: flex; gap: 8px; align-items: center; margin: 13px 0 8px; font-size: 1.05rem; }
.offer, .your-offer, .contact-panel { padding: 11px; border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; }
.offer-heading, .contact-panel { display: flex; align-items: center; gap: 8px; }
.offer-heading > div, .your-offer, .contact-name { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.offer-heading small, .contact-name small, .your-offer span { color: var(--muted); }
.offer-price { margin-left: auto; white-space: nowrap; }
.offer p, .your-offer p { margin-top: 5px; font-size: .875rem; line-height: 1.55; }
.offer .button, .offer .chosen { margin-top: 8px; }
.chosen { display: inline-flex; gap: 3px; color: var(--success); font-size: .86rem; font-weight: 800; }
.avatar { width: 34px; height: 34px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: var(--accent-ink); background: var(--accent-soft); font-size: .78rem; font-weight: 800; }
.avatar-dark { color: #d4d6df; background: #30333d; }
.contact-panel { flex-wrap: wrap; }
.contact-panel > .button { margin-inline-start: auto; }
.contact-actions { flex: 1 1 100%; min-width: 0; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
.contact-grid > .contact-link { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-content: start; align-items: start; justify-content: stretch; min-height: 44px; gap: 8px; padding: 7px 9px; text-align: start; }
.contact-grid .contact-label { margin-top: 3px; }
.contact-link-text { display: grid; min-width: 0; overflow-wrap: anywhere; }
.contact-link-text small { font-size: .72rem; color: var(--muted); }
.contact-hint { color: var(--muted); font-size: .83rem; line-height: 1.5; }
.market-fields {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 10px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.market-fields legend { padding-inline: 5px; font-size: .88rem; font-weight: 800; }
.market-checks, .market-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; }
.form label > select {
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
}
.market-actions:not(:empty) { margin-block: 10px; }
.contact-label, .rating-summary { display: inline-flex; align-items: center; gap: 6px; }
.contact-label.telegram { color: #0079ad; }
.contact-label.whatsapp { color: var(--success); }
.contact-label.max { color: #6658d2; }
:root[data-theme="dark"] .contact-label.telegram { color: #69c9f4; }
:root[data-theme="dark"] .contact-label.max { color: #a69cff; }
.rating-summary { margin-block: 4px; color: var(--accent-ink); font-size: .83rem; font-weight: 800; }
.rating-stars, .star-picker { display: inline-flex; align-items: center; }
.rating-stars { gap: 2px; }
.rating-star { display: inline-flex; position: relative; }
.rating-star-fill { position: absolute; inset-block-start: 0; inset-inline-start: 0; overflow: hidden; }
.rating-star-fill svg { fill: currentColor; }
.form .star-picker label { display: grid; place-items: center; width: 44px; height: 44px; color: var(--accent-ink); cursor: pointer; }
.star-picker label:has(input:focus-visible) { outline: 2px solid var(--focus); border-radius: 6px; }
.star-picker label:has(input:checked) svg,
.star-picker label:has(~ label input:checked) svg { fill: currentColor; }
.order-meta:empty { display: none; }
.order-meta + .order-meta:not(:empty) { margin-top: 8px; }
.text-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-ink);
  font-weight: 800;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.profile-contacts, .profile-reviews { margin-block: 16px; }
.profile-contacts h2, .profile-reviews h2 { margin-bottom: 4px; font-size: 1.18rem; }
.review-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.profile-reviews small, .service-item small { display: block; margin-top: 3px; color: var(--muted); }
.service-page { display: grid; gap: 12px; margin-top: 14px; }
.service-page h2 { font-size: 1.1rem; }
.service-page .dialog-note { margin-block: 6px; }
.settings-page, .profile-page, .support-card, .support-contacts {
  padding: clamp(12px, 3vw, 22px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.settings-page { max-width: 740px; margin-top: 14px; }
.profile-page { max-width: 820px; overflow-wrap: anywhere; }
.profile-page h1 { margin-bottom: 10px; font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.2; }
.profile-page > [data-action="customer-login"], .support-card > div > [data-action="login"] { margin-top: 8px; }
.settings-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 17px; }
.profile-progress { margin-bottom: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); }
.profile-progress h2 { font-size: 1rem; }
.profile-progress ul { padding-inline-start: 22px; margin-block: 8px; }
.profile-progress p { margin-block: 6px 0; }
.profile-progress [data-switch-role] { margin-top: 8px; }
.support-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
.support-card .market-actions:last-child { margin-bottom: 0; }
.support-contacts .contact-grid { margin-top: 10px; }
.push-settings { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
#email-settings .checkbox { display: flex; align-items: center; gap: 10px; min-height: 44px; }
#email-settings .checkbox input { flex: none; margin: 0; }
#notification-list { display: grid; gap: 8px; }
#notification-list > .button { justify-self: start; }
.notification-item[data-seen="false"] { border-inline-start: 4px solid var(--accent); }
.waiting-reply { margin-top: 6px; }
.attachment-preview { display: grid; justify-items: start; gap: 8px; }
.attachment-preview img { max-width: 100%; max-height: 210px; border-radius: 8px; }
.price-controls { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 6px; }
.price-controls button { font-size: 1.2rem; }
#offer-price { text-align: center; appearance: textfield; }
#offer-price::-webkit-inner-spin-button, #offer-price::-webkit-outer-spin-button { appearance: none; }
.category-list { display: grid; gap: 7px; }
.category-field { display: flex; align-items: center; gap: 5px; }
.category-field label { flex: 1; min-width: 0; }
.category-field:only-child [data-action="remove-category"] { display: none; }
.operator-categories > [data-action="add-category"] { justify-self: start; }
.complaint-image { display: inline-grid; gap: 6px; margin-top: 8px; color: var(--accent-ink); font-weight: 800; }
.complaint-image img { max-width: 100%; max-height: 180px; object-fit: contain; border-radius: 7px; }
.statistics-table { width: 100%; border-collapse: collapse; text-align: left; background: var(--surface); }
.statistics-table caption { padding: 10px 0; text-align: left; font-weight: 800; }
.statistics-table td, .statistics-table th { border-bottom: 1px solid var(--line); padding: 9px 12px; }
.statistics-table td { font-variant-numeric: tabular-nums; }
.service-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
  padding: 13px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow-wrap: anywhere;
}
.service-item > div:first-child { flex: 1 1 240px; min-width: 0; }
.service-item p { margin-top: 5px; }
.chat-order { margin-bottom: 9px; font-weight: 800; overflow-wrap: anywhere; }
.chat-log {
  display: flex;
  flex-direction: column;
  gap: 9px;
  height: min(34vh, 330px);
  margin: 10px 0;
  padding: 10px;
  overflow-y: auto;
  border-radius: 9px;
  background: var(--canvas);
}
.chat-bubble { align-self: start; max-width: 86%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px 10px 10px 2px; background: var(--surface); }
.chat-bubble.self { align-self: end; border-color: var(--accent-line); border-radius: 10px 10px 2px 10px; background: var(--accent-soft); }
.chat-bubble small { display: block; color: var(--muted); margin-bottom: 3px; overflow-wrap: anywhere; }
.chat-empty { margin: auto; text-align: center; color: var(--muted); }
.chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px; }
.chat-form textarea {
  min-height: 42px;
  max-height: 11rem;
  max-height: min(11rem, 30dvh);
  line-height: 1.4;
  field-sizing: content;
  overflow-y: auto;
  resize: none;
}
.chat-form .form-error { grid-column: 1 / -1; }
.toast {
  position: fixed;
  z-index: 10;
  right: 18px;
  bottom: 16px;
  width: max-content;
  max-width: calc(100% - 36px);
  padding: 10px 15px;
  border-radius: 9px;
  background: var(--sidebar);
  color: #fff;
  box-shadow: 0 4px 15px #15172044;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.toast.visible { opacity: 1; }

@media (min-width: 1181px) and (max-width: 1340px) {
  .chips { gap: 5px; }
  .chip { padding-inline: 7px; gap: 5px; }
}
@media (max-width: 1180px) {
  .layout { grid-template-columns: 218px minmax(0, 1fr); }
  .sidebar { padding-inline: 13px; }
  .topbar, main { padding-inline: 24px; }
  .chip { font-size: .75rem; padding-inline: 8px; }
}
@media (max-width: 950px) {
  :root {
    background: var(--sidebar);
    overscroll-behavior-y: none;
  }
  .layout { display: block; background: var(--canvas); }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 3;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 7px 18px;
    overflow: auto;
  }
  .brand, .nav-group p, .sidebar-bottom, .top-title { display: none; }
  #navigation, .nav-group + .nav-group { margin: 0; }
  #navigation, .nav-group { display: flex; align-items: center; gap: 5px; }
  .nav-link { padding: 7px 9px; min-height: 38px; font-size: .79rem; white-space: nowrap; gap: 6px; }
  .sidebar .nav-link { display: flex; justify-content: center; }
  .sidebar .nav-link svg { display: none; }
  .mobile-brand { display: inline-flex; }
  .topbar { height: 61px; }
  main { padding-top: 18px; }
}
@media (max-width: 620px) {
  .sidebar .nav-link:not(.quick-nav), .topbar > .top-actions, .topbar > [data-action="guide"] { display: none; }
  .sidebar .mobile-admin { display: flex; }
  .sidebar { padding: 6px 9px; }
  main { padding-top: 12px; }
  #navigation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); flex: 1; min-width: 0; gap: 2px; }
  .nav-group { display: contents; }
  .nav-link { flex: 1; justify-content: center; min-width: 0; min-height: 44px; padding: 4px; font-size: .76rem; text-align: center; white-space: normal; }
  .nav-link svg { display: none; }
  .order-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-tabs .button { text-align: center; }
  .topbar, main { padding-inline: 12px; }
  :root, body, dialog { scrollbar-width: none; }
  :root::-webkit-scrollbar, body::-webkit-scrollbar, dialog::-webkit-scrollbar { display: none; }
  :root:has(.mobile-menu-panel[open]) { overflow: hidden; }
  .topbar {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    height: auto; gap: 5px 8px; padding-block: 5px;
  }
  .topbar > .mobile-menu-trigger { display: inline-flex; min-height: 44px; position: relative; padding-inline: 9px; }
  .mobile-main-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; }
  .mobile-main-actions .button { min-height: 44px; padding: 5px 7px; font-size: .78rem; }
  .mobile-main-actions .button svg { display: none; }
  .mobile-main-actions [data-action="guide"] svg { display: initial; width: 16px; height: 16px; }
  dialog.mobile-menu-panel {
    position: fixed;
    inset: 0 0 0 auto;
    box-sizing: border-box;
    width: min(300px, calc(100vw - 36px));
    height: 100dvh;
    max-width: none;
    max-height: 100dvh;
    margin: 0;
    border-radius: 14px 0 0 14px;
    border-right: 0;
    overscroll-behavior: contain;
  }
  .mobile-menu-panel[open] { animation: mobile-menu-in 180ms ease-out both; }
  .mobile-menu-items { display: grid; gap: 6px; padding: 10px 12px max(16px, env(safe-area-inset-bottom)); }
  .mobile-menu-items .nav-link, .mobile-menu-items .button {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 5px 9px;
    font-size: .91rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    color: var(--ink);
    border: 1px solid transparent;
  }
  .mobile-menu-items .notification-link { grid-template-columns: 20px minmax(0, 1fr) auto; }
  .mobile-menu-items :is(.nav-link, .button):hover { background: var(--surface-hover); border-color: transparent; }
  .mobile-menu-items :is(.nav-link, .button)[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
  .mobile-menu-items .notification-count { position: static; justify-self: end; }
  .mobile-menu-items .nav-link svg, .mobile-menu-items .button svg {
    display: block;
    width: 20px;
    height: 20px;
  }
  .mobile-brand { font-size: .87rem; gap: 5px; }
  .mobile-brand img { width: 38px; height: 38px; }
  .hero {
    min-height: auto;
    padding: 17px 13px;
    background-image: linear-gradient(90deg, #17181bf5 0%, #17181bd9 42%, #17181b6e 100%), url('/hero.jpg');
    background-position: 70% center;
  }
  .hero h1 { margin-top: 6px; font-size: clamp(1.85rem, 7.5vw, 2.6rem); }
  .hero p { display: none; }
  .hero-actions { display: grid; gap: 6px; margin-top: 9px; }
  .hero-actions .button { min-height: 44px; padding-inline: 10px; font-size: .85rem; gap: 6px; }
  .hero-actions .button svg { width: 15px; height: 15px; }
  .feed { margin-top: 14px; scroll-margin-top: 60px; }
  .feed-title { gap: 5px; }
  .feed-title h2 { font-size: 1.27rem; }
  .count { min-width: 22px; height: 22px; }
  .filter-row { gap: 7px; }
  .advanced-filters summary { min-height: 38px; font-size: .86rem; }
  .filter-row .select-wrap select, .search input { font-size: .82rem; }
  .location-fields .select-wrap select { font-size: 1rem; min-height: 44px; }
  .statistics-table td, .statistics-table th { padding: 8px 5px; font-size: .85rem; }
  .offer [data-action="assign"] { width: 100%; min-height: 44px; }
  .search { padding-inline: 8px; gap: 6px; }
  .card-grid { grid-template-columns: 1fr; gap: 10px; }
  .order-card { padding-inline: 13px; }
  .card-actions .button { min-height: 42px; }
  .section-intro { padding: 14px; }
  .dialog-header, .dialog-body { padding-inline: 12px; }
  dialog.signup-dialog {
    position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: 100dvh;
    margin: 0; border: 0; border-radius: 0;
  }
  .signup-dialog .dialog-body { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .guide-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-inline: 10px; }
  .guide-topics button { min-height: 44px; padding-inline: 4px; font-size: .82rem; line-height: 1.25; }
  .guide-article { padding: 17px 14px 22px; }
  .guide-article h3 { font-size: 1.27rem; }
  .guide-roles { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form .contact-fields { grid-template-columns: minmax(0, 1fr); }
  .form input:not([type=radio], [type=checkbox]), .form textarea, .chat-form textarea, .chat-form input,
  .select-trigger, .search input { font-size: 16px; }
  .messages-intro, .support-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 12px; }
  .messages-intro h1 { margin-top: 0; }
  .support-card > div { display: contents; }
  .support-card > div > :not(h2) { grid-column: 1 / -1; }
  .support-card, .support-contacts { padding: 14px; }
  .support-card .market-actions .button { width: 100%; }
}
@media (max-width: 480px) {
  .role-choices { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .form .role-choice { min-height: 62px; }
}
@media (max-width: 420px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
}
@media (max-width: 360px) {
  .topbar { padding-inline: 7px; gap: 4px; }
  .mobile-brand { font-size: .76rem; gap: 4px; }
  .mobile-brand img { width: 36px; height: 36px; }
}
@keyframes mobile-menu-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu-panel[open] { animation: none; }
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
