:root {
  --nav: #071626;
  --nav2: #102238;
  --line: #e6ebf2;
  --text: #111827;
  --muted: #667085;
  --blue: #2563eb;
  --red: #e11d48;
  --green: #16a34a;
  --amber: #b77900;
  --violet: #6d28d9;
  --cyan: #0891a0;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background: #f7f9fc;
  font-family: Inter, Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 850;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

#app {
  min-height: 100vh;
  display: block;
}

.topbar {
  height: 96px;
  display: grid;
  grid-template-columns: 150px minmax(520px, 760px) minmax(260px, auto);
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 24px;
  background: linear-gradient(135deg, var(--nav), var(--nav2));
  color: #fff;
  box-shadow: 0 14px 34px rgb(7 22 38 / 18%);
}

.brand {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: inherit;
  text-decoration: none;
}

.logo {
  min-width: 145px;
  min-height: 58px;
  font-size: 42px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -2px;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  cursor: pointer;
}
.logo:not(.logo-image)::after {
  content: "";
  display: block;
  width: 42px;
  height: 7px;
  margin: -5px 0 0 46px;
  background: #f5b400;
  transform: skewX(-28deg);
}
.logo.logo-image::after { display: none; }

.global-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}

.search {
  height: 54px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-radius: 8px;
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 8%);
  color: #cbd5e1;
}
.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
}
.search input::placeholder { color: #cbd5e1; }

.top-search-button {
  height: 44px;
  min-width: 74px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 10px;
  background: #07111f;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.top-search-button:hover {
  background: #0d1b2e;
}
.top-search-button.reset {
  min-width: 72px;
  background: rgb(255 255 255 / 8%);
}
.top-search-button.reset:hover {
  background: rgb(255 255 255 / 14%);
}

.search-suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  max-height: min(560px, calc(100vh - 130px));
  overflow: auto;
  padding: 8px;
  border: 1px solid rgb(148 163 184 / 34%);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 20px 50px rgb(7 22 38 / 24%);
}
.search-suggestion {
  width: 100%;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.search-suggestion:hover {
  background: #f1f5f9;
}
.search-suggestion strong,
.search-suggestion small,
.search-suggestion em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-suggestion strong {
  font-size: 14px;
}
.search-suggestion small,
.search-suggestion em {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.suggestion-section {
  grid-row: span 3;
  align-self: center;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
}
.search-empty {
  padding: 14px;
  color: var(--muted);
  font-weight: 800;
}

.profile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-right: 0;
}
.profile span { display: block; margin-top: 4px; color: #cbd5e1; font-size: 13px; }
.profile-actions {
  position: absolute;
  z-index: 60;
  top: calc(100% + 12px);
  right: 0;
}
.profile-menu {
  min-width: 260px;
  display: none;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  box-shadow: 0 18px 42px rgb(15 23 42 / 22%);
  text-align: center;
}
.profile-menu.open {
  display: block;
}
.profile-menu-name,
.profile-menu a,
.profile-menu button {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}
.profile-menu-name {
  color: #64748b;
  font-size: 12px;
  cursor: default;
  border-radius: 10px 10px 0 0;
}
.profile-menu button {
  border-bottom: 0;
  border-radius: 0 0 10px 10px;
}
.profile-menu a:hover,
.profile-menu button:hover {
  background: #f8fafc;
}
.login-button {
  min-height: 42px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: #07111f;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.login-button.logged-in {
  width: 52px;
  height: 52px;
  min-height: 52px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #f8fafc;
  box-shadow: 0 8px 18px rgb(0 0 0 / 18%);
  overflow: hidden;
}
.login-button.avatar-button {
  display: grid;
  place-items: center;
}
.login-button strong,
.login-button span {
  display: block;
  color: inherit;
  margin: 0;
  line-height: 1.15;
}
.profile-avatar,
.cabinet-avatar {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #1d4ed8;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
}
.profile-avatar {
  margin: 0;
}
.profile .profile-avatar {
  margin: 0;
  color: #1d4ed8;
  font-size: 15px;
}
.profile-avatar.has-photo,
.cabinet-avatar.has-photo {
  color: transparent;
}
.login-button strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.login-button span {
  margin-top: 3px;
  color: #cbd5e1;
  font-size: 10px;
  line-height: 1.1;
}
.avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  font-weight: 900;
}
.notify {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  font-size: 12px;
  font-weight: 900;
}

main {
  width: min(1320px, calc(100% - 48px));
  min-width: 0;
  margin: 0 auto;
  padding: 28px 0 110px;
}
.headline {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 28px;
}
h1 { margin: 0 0 8px; font-size: 24px; }
p { margin: 0; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions button {
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 850;
}
.actions button:first-child { background: var(--blue); border-color: var(--blue); color: #fff; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 26px;
}
.card {
  display: block;
  min-height: 164px;
  position: relative;
  padding: 28px 18px 20px;
  border: 1px solid rgb(37 99 235 / 12%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgb(15 23 42 / 5%);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card.has-signals {
  min-height: 132px;
  padding: 18px 18px 16px;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgb(15 23 42 / 9%);
}
.card-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border-radius: 18px;
  background: var(--icon-bg);
  overflow: hidden;
}
.card-icon::before,
.activity-icon::before {
  content: "";
  width: 31px;
  height: 31px;
  background: var(--icon-color);
  mask: var(--icon-url) center / contain no-repeat;
  -webkit-mask: var(--icon-url) center / contain no-repeat;
}
.card-icon.image-icon::before,
.activity-icon.image-icon::before {
  width: 100%;
  height: 100%;
  background: var(--icon-url) center / contain no-repeat;
  mask: none;
  -webkit-mask: none;
}
.card > strong {
  position: absolute;
  right: 20px;
  top: 20px;
  min-width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 24px;
}
.card-signals {
  position: absolute;
  top: 18px;
  right: 16px;
  display: grid;
  gap: 6px;
  justify-items: stretch;
  width: 188px;
}
.card-signal {
  width: 100%;
  min-height: 29px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(40px, max-content);
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 11px;
  border-radius: 999px;
  color: #fff;
  font-weight: 950;
  box-shadow: 0 8px 16px rgb(15 23 42 / 14%);
}
.card-signal span {
  min-width: 0;
  overflow: visible;
  white-space: nowrap;
  font-size: 9.5px;
  line-height: 1.05;
}
.card-signal b {
  min-width: 40px;
  text-align: right;
  font-size: 15px;
  line-height: 1;
}
.card-signal.green { background: #16a34a; }
.card-signal.red { background: #dc2626; }
.card-signal.orange { background: #ea580c; }
.card-signal-empty {
  position: absolute;
  top: 18px;
  right: 18px;
  min-width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgb(22 163 74 / 12%);
  color: var(--green);
  font-size: 22px;
  font-weight: 950;
}
.card h2 {
  max-width: calc(100% - 136px);
  margin: 0 0 8px;
  font-size: 21px;
}
.card.has-signals h2 {
  position: relative;
  z-index: 1;
  max-width: calc(100% - 18px);
  margin: 4px auto 0;
  text-align: center;
  font-size: 18px;
  line-height: 1.18;
}
.card-title-line {
  display: block;
}
.card.has-signals .card-title-line + .card-title-line {
  margin-top: 2px;
  font-size: 17px;
}
.card.has-signals p {
  position: relative;
  z-index: 1;
  max-width: 100%;
}
.word-icon-card {
  display: grid;
  align-content: start;
}
.card-word-icon {
  max-width: calc(100% - 190px);
  display: block;
  color: #0f172a;
  font-weight: 950;
  line-height: 1.08;
}
.card.has-signals .card-word-icon .card-title-line,
.card.has-signals .card-word-icon .card-title-line:first-child,
.card.has-signals .card-word-icon .card-title-line + .card-title-line {
  margin-top: 4px;
  font-size: 22px;
  white-space: nowrap;
}
.card.has-signals .card-word-icon .card-title-line:first-child {
  margin-top: 0;
}
.blue { background: linear-gradient(135deg, #f3f7ff, #edf4ff); }
.amber { background: linear-gradient(135deg, #fff8e7, #fff4d8); }
.green { background: linear-gradient(135deg, #f1fbf3, #e9f8eb); }
.cyan { background: linear-gradient(135deg, #eefcfd, #e9f8f8); }
.violet { background: linear-gradient(135deg, #f5f0ff, #f1ecff); }
.red { background: linear-gradient(135deg, #fff1f2, #ffeded); }
.blue > strong { background: #dce9ff; color: var(--blue); }
.amber > strong { background: #fff0c6; color: var(--amber); }
.green > strong { background: #dff6df; color: var(--green); }
.cyan > strong { background: #d6f4f6; color: var(--cyan); }
.violet > strong { background: #e7dcff; color: var(--violet); }
.red > strong { background: #ffe0e3; color: #c81e2d; }

.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.panel,
.registry {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgb(15 23 42 / 4%);
}
.panel { padding: 18px; }
.panel header,
.registry header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.panel h2,
.registry h2 { margin: 0; font-size: 17px; }
.stats-panel h2 span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: none;
}
.panel header a { color: var(--blue); font-size: 13px; font-weight: 850; }

.task,
.stat,
.activity {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #eef2f7;
}
.task { grid-template-columns: 22px 1fr auto; }
.stat { grid-template-columns: 1fr auto auto; }
.stats-panel .stat {
  gap: 8px;
  padding: 8px 0;
}
.stats-panel .stat span {
  min-width: 0;
  font-size: 13px;
}
.stats-panel .stat strong {
  font-size: 14px;
  white-space: nowrap;
}
.stats-panel .stat small {
  font-size: 11px;
  white-space: nowrap;
}
.activity { grid-template-columns: 34px 1fr auto; }
.activity-avatar {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #eaf1ff, #fff8d7);
  color: #1257e5;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 78%), 0 6px 14px rgb(15 23 42 / 8%);
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
}
.activity-avatar.has-photo {
  color: transparent;
  background-color: #eef2f7;
  box-shadow: inset 0 0 0 2px #fff, 0 6px 14px rgb(15 23 42 / 10%);
}
.task:last-child,
.stat:last-child,
.activity:last-child { border-bottom: 0; }
.task > span {
  width: 20px;
  height: 20px;
  border: 2px solid #94a3b8;
  border-radius: 50%;
}
.task small,
.activity small,
.stat small { display: block; margin-top: 4px; color: var(--muted); }
.task em,
.pill,
#duplicateBadge {
  border-radius: 999px;
  padding: 6px 10px;
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}
.good { background: #dff8ee; color: #0f8d56; }
.danger { background: #ffe5e8; color: #c81e2d; }
.work { background: #fff1cf; color: var(--amber); }
.new { background: #eaf1ff; color: #1257e5; }
.tasks-create-card,
.tasks-list {
  margin-top: 16px;
}
.tasks-create-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(15 23 42 / 4%);
}
.tasks-create-card h2 {
  margin: 0 0 14px;
  font-size: 20px;
}
.task-login-required {
  display: grid;
  gap: 8px;
}
.task-login-required p {
  max-width: 860px;
  font-weight: 750;
  line-height: 1.45;
}
.task-login-required .button {
  width: fit-content;
  margin-top: 4px;
}
.task-create-grid,
.task-edit-grid,
.task-control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.task-create-grid label,
.task-edit-grid label,
.task-control-grid label {
  display: grid;
  gap: 6px;
}
.task-create-grid span,
.task-edit-grid span,
.task-control-grid span {
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}
.task-create-grid .span-3,
.task-edit-grid .span-2 {
  grid-column: 1 / -1;
}
.task-edit-grid {
  margin-bottom: 12px;
}
.task-selected-files,
.task-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.task-selected-files span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 850;
}
.task-file-picker input {
  cursor: pointer;
}
.order-file-picker span {
  font-weight: 600;
}
.task-readonly-note {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 850;
}
.tasks-hero {
  margin-top: 18px;
}
.task-card {
  margin-bottom: 9px;
  border: 1px solid #b7efd0;
  border-radius: 14px;
  background: #f8fffb;
  overflow: hidden;
}
.task-card.work {
  border-color: #93c5fd;
  background: #f8fbff;
}
.task-card.danger {
  border-color: #fecdd3;
  background: #fff7f8;
}
.task-card.good {
  border-color: #dbeafe;
  background: #f8fbff;
}
.task-card.has-questions {
  border-color: #f59e0b;
  background: #fff8e8;
  box-shadow: 0 0 0 1px rgb(245 158 11 / 14%);
}
.task-card.has-questions .task-summary {
  background: linear-gradient(90deg, rgb(255 247 237 / 86%), rgb(255 255 255 / 0%));
}
.task-card.has-questions .equipment-question {
  border-color: #fed7aa;
  background: #ffedd5;
  color: #c2410c;
}
.task-summary {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
}
.task-main {
  min-width: 0;
}
.task-main h3 {
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}
.task-main p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.task-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.task-badges > span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
}
.task-badges .status-badge {
  border: 1px solid transparent;
  font-style: normal;
  white-space: nowrap;
}
.task-badges .status-new {
  border-color: #86efac;
  background: #dcfce7;
  color: #166534;
}
.task-status-work {
  border-color: #93c5fd;
  background: #dbeafe;
  color: #1d4ed8;
}
.task-details {
  padding: 0 14px 14px 58px;
}
.task-description {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  line-height: 1.5;
}
.task-actions,
.task-question-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.task-question-form {
  display: grid;
  grid-template-columns: 1fr minmax(220px, auto) auto;
  align-items: end;
}
.task-question-edit {
  width: 100%;
  min-height: 82px;
  margin-top: 8px;
}
.task-reply-form {
  grid-template-columns: 1fr minmax(180px, auto) auto;
  padding-top: 10px;
  border-top: 1px dashed #fed7aa;
}
.success-button {
  border-color: #bbf7d0;
  background: #dcfce7;
  color: #15803d;
}
.activity-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--icon-bg);
}
.activity-icon::before {
  width: 19px;
  height: 19px;
}
.activity time { color: var(--muted); font-size: 12px; }

.registry { margin-top: 26px; overflow: hidden; }
.registry header {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.registry p { margin-top: 6px; font-size: 13px; }
.registry-pagination {
  padding: 14px 18px 18px;
  border-top: 1px solid #eef2f7;
}

.scroll-nav {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 35;
  display: grid;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(12px);
  transition: opacity .16s ease, transform .16s ease;
}
body.show-scroll-nav .scroll-nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%);
}
.scroll-nav button {
  width: 42px;
  height: 42px;
  border: 1px solid rgb(15 23 42 / 12%);
  border-radius: 50%;
  background: #071426;
  color: #fff;
  box-shadow: 0 14px 30px rgb(15 23 42 / 18%);
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}
.scroll-nav button:hover {
  transform: translateY(-1px);
  background: #1257e5;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 880px; }
th,
td {
  padding: 13px 18px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  font-size: 14px;
}
th {
  background: #fbfcfe;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.wide {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}
.empty,
.loading {
  padding: 24px;
  color: var(--muted);
}

.compact-note,
.placeholder {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  box-shadow: 0 12px 30px rgb(15 23 42 / 4%);
}
.placeholder h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--text);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.category-card {
  position: relative;
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(15 23 42 / 4%);
}
.category-card strong {
  position: absolute;
  top: 18px;
  right: 18px;
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf1ff;
  color: #1257e5;
  font-size: 20px;
}
.category-card h2 {
  max-width: calc(100% - 58px);
  margin: 0 0 8px;
  font-size: 18px;
  text-transform: capitalize;
}
.category-card p {
  margin-bottom: 18px;
  color: var(--muted);
}
.category-card small {
  display: block;
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calc-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.calc-card-actions .button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
  text-decoration: none;
}

.calc-category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin-bottom: 18px;
}
.calc-category-row {
  min-height: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  box-shadow: 0 8px 18px rgb(15 23 42 / 3%);
  cursor: pointer;
}
.calc-category-row:hover {
  border-color: #93c5fd;
  background: #f8fbff;
  transform: translateY(-1px);
}
.calc-category-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calc-category-row strong {
  min-width: 30px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #eaf1ff;
  color: #1257e5;
  font-size: 12px;
}

.calc-shell {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.calc-title-row,
.calc-section,
.calc-total-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgb(15 23 42 / 4%);
}
.calc-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.calc-title-row h2,
.calc-section h3 {
  margin: 0;
}
.calc-title-row p {
  margin: 4px 0 0;
  color: var(--muted);
}
.calc-title-row strong {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef6ff;
  color: #155bb5;
  white-space: nowrap;
}
.calc-section.required { border-color: #fecaca; background: #fffafa; }
.calc-section.green { border-color: #bbf7d0; background: #f6fffa; }
.calc-section.blue { border-color: #bfdbfe; background: #f8fbff; }
.calc-section.orange { border-color: #fed7aa; background: #fffaf5; }
.calc-section h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 16px;
}
.calc-section h3 em {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgb(15 23 42 / 7%);
  color: #334155;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}
.calc-return-tabs {
  margin: -8px 0 14px;
}
.calc-return-tabs button {
  cursor: pointer;
}
.calc-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.calc-form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.calc-form-grid label span {
  display: block;
  min-height: 16px;
  margin-bottom: 5px;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}
.calc-total-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 10px;
}
.calc-total-panel div {
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}
.calc-total-panel span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.calc-total-panel strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}
.ok-message {
  padding: 10px 12px;
  border: 1px solid #86efac;
  border-radius: 10px;
  background: #f0fdf4;
  color: #15803d;
  font-weight: 800;
}
.calc-save-row {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 16px;
}
.calc-save-row .button {
  min-width: 220px;
}
.calc-saved-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
}
.calc-search-suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow: auto;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgb(15 23 42 / 14%);
}
.calc-search-suggestions button {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #f8fafc;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.calc-search-suggestions button:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}
.calc-search-suggestions span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}
.calc-search-suggestions em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}
.calc-preview-dialog {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.calc-preview-dialog header,
.calc-preview-dialog footer {
  flex: 0 0 auto;
}
.calc-preview-scroll {
  flex: 1 1 auto;
  overflow: auto;
  padding: 0 20px 18px;
}
.calc-preview-shot {
  margin: 0;
}
.calc-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.calc-preview-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.calc-preview-cell {
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.calc-preview-cell span {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}
.calc-preview-cell strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.calc-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.calc-pagination label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}
.calc-pagination select {
  width: 86px;
  height: 36px;
}
.calc-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.calc-pages button,
.calc-pages span {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}
.calc-pages button {
  cursor: pointer;
}
.calc-pages button:hover,
.calc-pages button.active {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}
.calc-home-tabs {
  margin: -6px 0 16px;
}
.calc-admin-dialog {
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.calc-admin-dialog header,
.calc-admin-dialog footer {
  flex: 0 0 auto;
}
.calc-admin-scroll {
  flex: 1 1 auto;
  overflow: auto;
  padding: 0 20px 18px;
}
.calc-admin-duty-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin-top: 12px;
}
.calc-admin-duty-list label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}
.calc-admin-duty-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
}
.calc-admin-svh-table input {
  min-width: 96px;
}
.calc-recent-card {
  margin-top: 18px;
}
.calc-recent-card .button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
  text-decoration: none;
}

.mobile-nav { display: none; }

.orders-hero,
.order-search,
.order-create-card,
.orders-list {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(15 23 42 / 4%);
}
.orders-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}
.orders-hero h1 {
  margin: 0 0 6px;
  font-size: 26px;
}
.orders-hero p {
  font-size: 13px;
}
.order-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.order-tabs a,
.order-tabs button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  appearance: none;
  cursor: pointer;
  user-select: none;
}
.order-tabs a:hover,
.order-tabs button:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
}
.order-tabs .active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}
.order-tabs span {
  min-width: 22px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  margin-left: 7px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font-size: 12px;
}
.page-return-tabs {
  margin-top: -16px;
  margin-bottom: 18px;
}
.order-search {
  margin-top: 12px;
  padding: 14px 16px;
}
.order-search h2,
.orders-list h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.order-search label {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}
.order-search div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
}
.order-search input {
  min-height: 38px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
}
.order-search button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: #07111f;
  color: #fff;
  padding: 0 16px;
  font-weight: 900;
}
.order-search .order-reset {
  border: 1px solid var(--line);
  background: #fff;
  color: #111827;
}
.order-search .order-reset:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
}
.price-hero {
  margin-bottom: 12px;
}
.price-rate {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.price-scope-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 2px;
}
.price-scope-card {
  min-height: 82px;
  display: grid;
  gap: 5px;
  align-content: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 22px rgb(15 23 42 / 4%);
}
.price-scope-card:hover,
.price-scope-card.active {
  border-color: #93c5fd;
  background: #f8fbff;
}
.price-scope-card.active {
  box-shadow: inset 0 0 0 1px #bfdbfe, 0 12px 24px rgb(37 99 235 / 10%);
}
.price-scope-card.tone-equipment {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.price-scope-card.tone-special {
  background: #ecfdf5;
  border-color: #bbf7d0;
}
.price-scope-card.tone-trailers {
  background: #fff7ed;
  border-color: #fed7aa;
}
.price-scope-card.tone-attachments {
  background: #f5f3ff;
  border-color: #ddd6fe;
}
.price-scope-card.tone-equipment.active { box-shadow: inset 0 0 0 1px #60a5fa, 0 12px 24px rgb(37 99 235 / 12%); }
.price-scope-card.tone-special.active { box-shadow: inset 0 0 0 1px #4ade80, 0 12px 24px rgb(22 163 74 / 12%); }
.price-scope-card.tone-trailers.active { box-shadow: inset 0 0 0 1px #fb923c, 0 12px 24px rgb(234 88 12 / 12%); }
.price-scope-card.tone-attachments.active { box-shadow: inset 0 0 0 1px #a78bfa, 0 12px 24px rgb(124 58 237 / 12%); }
.price-scope-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 950;
}
.price-scope-card span {
  min-height: 28px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
}
.price-scope-card em {
  color: #1d4ed8;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}
.price-search-grid {
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) minmax(240px, .48fr) auto auto auto !important;
  gap: 10px !important;
  align-items: end;
}
.price-search-grid label {
  display: grid;
  gap: 5px;
  margin: 0;
}
.price-search-grid select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  font-size: 14px;
}
.price-search-grid .button {
  min-height: 38px;
  border-radius: 10px;
  padding: 0 14px;
}
.price-search-grid .primary-dark {
  background: #07111f;
  color: #fff;
}
.price-category-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.price-category-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(15 23 42 / 4%);
  overflow: hidden;
}
.price-category-card.expanded {
  grid-column: 1 / -1;
}
.price-category-head {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  background: #fff;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.price-category-head:hover {
  background: #f8fbff;
}
.price-category-head .plus,
.price-item-main .plus {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-weight: 950;
}
.price-category-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.price-category-head em,
.price-category-head b {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}
.price-category-head b {
  grid-column: 2 / -1;
  justify-self: start;
  background: #dcfce7;
  color: #15803d;
}
.price-category-head b.danger {
  background: #fee2e2;
  color: #b91c1c;
}
.price-category-head b.good {
  background: #dcfce7;
  color: #15803d;
}
.price-section-title {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgb(15 23 42 / 4%);
}
.price-section-title h2 {
  margin: 0 0 4px;
  font-size: 19px;
}
.price-section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.price-item-list {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}
.price-item-card {
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #fbfdff;
  overflow: hidden;
}
.price-item-card.stock {
  border-color: #86efac;
  background: #f6fffa;
}
.price-item-card.reserved {
  border-color: #fed7aa;
}
.price-item-main {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(260px, 1fr) 120px 120px 105px auto auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.price-item-title {
  min-width: 0;
}
.price-item-title strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 950;
}
.price-item-title small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.price-mini {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: center;
}
.price-mini em {
  color: #475569;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}
.price-mini b {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.price-status {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}
.price-status.good {
  background: #dcfce7;
  color: #15803d;
}
.price-status.muted {
  background: #eef2ff;
  color: #1d4ed8;
}
.price-source-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  text-align: center;
  white-space: nowrap;
}
.price-source-badge.auto {
  background: #dbeafe;
  color: #1d4ed8;
}
.price-source-badge.manual {
  background: #ffedd5;
  color: #c2410c;
}
.price-details {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px 56px;
}
.price-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.price-detail-grid div,
.price-wide-fields div {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.price-detail-grid span,
.price-wide-fields span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}
.price-detail-grid strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.price-wide-fields {
  display: grid;
  gap: 8px;
}
.price-wide-fields p {
  margin: 0;
  line-height: 1.45;
}
.price-links,
.price-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.price-links a,
.price-file-list a,
.price-links .link-button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  background: #f8fbff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}
.price-links .link-button {
  cursor: pointer;
  font-family: inherit;
}
.price-media {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}
.price-media button {
  height: 76px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  overflow: hidden;
}
.price-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.price-manual-card {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgb(15 23 42 / 4%);
}
.price-edit-form {
  display: grid;
  gap: 10px;
  width: 100%;
}
.price-manual-card .price-edit-form {
  margin-top: 12px;
}
.price-edit-form header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.price-edit-form header h3 {
  margin: 0;
  font-size: 17px;
}
.price-edit-form header div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.price-edit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.price-edit-grid label {
  display: grid;
  gap: 5px;
  color: #334155;
  font-size: 11px;
  font-weight: 850;
}
.price-edit-grid textarea {
  min-height: 62px;
  resize: vertical;
}
.price-edit-grid .span-2 {
  grid-column: span 2;
}
.price-edit-grid .span-4 {
  grid-column: 1 / -1;
}
.price-check {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 8px !important;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.price-check input {
  width: 16px;
  height: 16px;
}
.price-calc-line {
  display: flex;
  align-items: end;
}
.price-serial-box {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  background: #f0fdf4;
}
.price-serial-box header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.price-serial-box h4 {
  margin: 0;
  font-size: 14px;
}
.price-serial-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: end;
  padding: 8px;
  border: 1px solid #dcfce7;
  border-radius: 10px;
  background: #fff;
}
.price-live-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.price-live-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.price-media-dialog {
  max-width: 760px;
}
.price-media-viewer {
  display: grid;
  place-items: center;
  padding: 10px 0;
}
.price-media-viewer img,
.price-media-viewer video {
  max-width: min(680px, 88vw);
  max-height: 62vh;
  border-radius: 12px;
  object-fit: contain;
}
.price-calc-button {
  text-decoration: none;
}
.order-create-card {
  margin-top: 12px;
  padding: 14px 16px;
}
.order-create-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
}
.order-create-grid {
  display: grid;
  grid-template-columns: 260px minmax(260px, 1fr) minmax(260px, 1fr) 260px;
  gap: 10px;
  align-items: end;
}
.order-create-grid label {
  display: grid;
  gap: 5px;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}
.order-create-card .button {
  margin-top: 12px;
}
.equipment-create-grid {
  display: grid;
  grid-template-columns: minmax(300px, .85fr) minmax(420px, 1.4fr);
  gap: 14px;
  align-items: stretch;
}
.equipment-create-fields {
  display: grid;
  gap: 10px;
  align-content: start;
}
.equipment-create-fields label,
.equipment-requirement-editor {
  display: grid;
  gap: 5px;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}
.equipment-create-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.equipment-create-actions .button {
  margin-top: 0;
  min-height: 38px;
}
.text-tools {
  display: flex;
  gap: 6px;
  align-items: center;
}
.text-tools button {
  width: 32px;
  height: 28px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
  color: #0f172a;
  font-weight: 950;
  cursor: pointer;
}
.text-tools button:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}
.equipment-description-input {
  min-height: 138px;
  resize: vertical;
  line-height: 1.45;
}
.orders-list {
  margin-top: 12px;
  padding: 12px 14px 14px;
}
.orders-list h2 {
  padding: 0 0 4px;
}
.order-card {
  display: block;
  margin-top: 8px;
  padding: 0;
  border: 1px solid #d7f8e7;
  border-radius: 14px;
  background: #fbfffd;
  box-shadow: inset 0 0 0 1px #86efac;
  overflow: visible;
  cursor: pointer;
}
.order-card.new {
  border-color: #86efac;
  background: linear-gradient(135deg, #f0fdf4, #fff);
  animation: blinkGreen 1.2s infinite alternate;
}
.order-card.in_progress {
  border-color: #e5e7eb;
  background: linear-gradient(135deg, #fff, #fbfdff);
  box-shadow: 0 5px 12px rgb(15 23 42 / 4%);
}
.order-card.overdue {
  border-color: #fca5a5;
  background: linear-gradient(135deg, #fef2f2, #fff);
  box-shadow: inset 0 0 0 1px #fca5a5;
  animation: blinkRed 1.2s infinite alternate;
}
.order-card.heihe {
  border-color: #93c5fd;
  background: linear-gradient(135deg, #eff6ff, #fff);
  box-shadow: 0 5px 12px rgb(15 23 42 / 4%);
}
.order-card.done {
  border-color: var(--line);
  background: #fff;
  box-shadow: none;
}
.order-card.answered {
  border-color: #93c5fd;
  background: linear-gradient(135deg, #eff6ff, #fff);
  box-shadow: 0 5px 12px rgb(15 23 42 / 4%);
}
.order-card.irrelevant {
  border-color: #d8b4fe;
  background: linear-gradient(135deg, #faf5ff, #fff);
  box-shadow: 0 5px 12px rgb(15 23 42 / 4%);
}
.order-card.has-questions {
  box-shadow: 0 0 0 2px #fdba74 inset;
}
.order-summary {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 7px 12px;
  cursor: pointer;
  user-select: none;
}
.order-summary,
.order-summary * {
  cursor: pointer;
}
.order-summary > * {
  pointer-events: none;
}
.order-summary:hover {
  background: rgb(248 251 255 / 68%);
}
.order-plus {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  pointer-events: none;
}
.order-main {
  position: relative;
  min-width: 0;
  cursor: pointer;
}
.order-main::after {
  content: attr(data-full-title);
  position: absolute;
  z-index: 25;
  left: 0;
  top: calc(100% + 8px);
  width: min(720px, calc(100vw - 80px));
  max-width: max-content;
  padding: 9px 11px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  box-shadow: 0 16px 34px rgb(15 23 42 / 18%);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity .12s ease, transform .12s ease;
}
.order-summary:hover .order-main::after {
  opacity: 1;
  transform: translateY(0);
}
.order-main h3 {
  margin: 0 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.25;
}
.order-main p {
  font-size: 10.5px;
  line-height: 1.2;
}
.order-sale-line {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}
.order-sale-line span {
  padding: 2px 7px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #f8fbff;
  color: #334155;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
}
.order-sale-line .sale-free {
  border-color: #bbf7d0;
  background: #dcfce7;
  color: #166534;
}
.order-sale-line .sale-reserved {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}
.order-sale-line .sale-sold {
  border-color: #bfdbfe;
  background: #dbeafe;
  color: #1d4ed8;
}
.order-sale-line .sale-cancelled {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
}
.order-meta {
  display: grid;
  grid-template-columns: 82px 132px 118px auto;
  gap: 6px;
  align-items: center;
  cursor: pointer;
  pointer-events: auto;
}
.order-meta span,
.order-meta em {
  min-height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
}
.order-meta .status-badge {
  border: 1px solid transparent;
  padding: 3px 7px;
  white-space: nowrap;
}
.status-new {
  border-color: #86efac;
  background: #dcfce7;
  color: #166534;
}
.status-answered {
  border-color: #93c5fd;
  background: #dbeafe;
  color: #1d4ed8;
}
.status-irrelevant {
  border-color: #d8b4fe;
  background: #f3e8ff;
  color: #7e22ce;
}
.status-progress {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #334155;
}
.status-overdue {
  border-color: #fca5a5;
  background: #fee2e2;
  color: #b91c1c;
}
.status-heihe {
  border-color: #93c5fd;
  background: #dbeafe;
  color: #1d4ed8;
}
.status-done {
  border-color: #c4b5fd;
  background: #ede9fe;
  color: #6d28d9;
}
.order-meta strong {
  display: block;
  margin-top: 1px;
  font-size: 13px;
}
.order-meta em.good {
  border-color: #b7f0cc;
  background: #dcfce7;
  color: #047857;
}
.order-meta em.work {
  border-color: #dbe3ea;
  background: #f8fafc;
  color: #334155;
}
.order-delete-button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #fecdd3;
  border-radius: 9px;
  background: #fff1f2;
  color: #be123c;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
}
.order-delete-button:hover {
  background: #ffe4e6;
}
.order-inline-input {
  margin-top: 6px;
}
.order-file-picker {
  margin-top: 6px;
}
.order-save-row {
  display: flex;
  justify-content: flex-end;
  margin: 12px 0;
}
.order-save-row .button {
  min-height: 38px;
}
.order-subsection {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #dbe2ea;
}
.order-subsection h3 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
}
.factory-options {
  display: grid;
  gap: 12px;
}
.factory-option-card {
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fbff, #fff);
}
.factory-option-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.factory-toggle {
  min-width: 0;
  display: inline-grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-weight: 950;
  text-align: left;
  cursor: pointer;
}
.factory-toggle strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.factory-option-card h4 {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
}
.factory-files {
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed #bfdbfe;
  border-radius: 10px;
  background: #fff;
}
.factory-option-card .success-button {
  min-height: 34px;
  padding: 0 12px;
  text-decoration: none;
}
.order-small-textarea {
  min-height: 72px;
}
.equipment-summary {
  grid-template-columns: 30px minmax(0, 1fr) auto;
}
.equipment-meta {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(96px, auto);
  gap: 8px;
  align-items: center;
}
.equipment-meta span,
.equipment-meta em {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
}
.equipment-meta strong {
  display: block;
  margin-top: 2px;
  max-width: 104px;
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  line-height: 1;
  text-overflow: ellipsis;
}
.equipment-meta .equipment-question {
  border-color: #fdba74;
  background: #fff7ed;
  color: #c2410c;
  padding: 0 8px;
}
.mine-badge {
  display: inline-grid;
  place-items: center;
  margin-left: 6px;
  padding: 2px 7px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 10px;
  font-weight: 950;
  vertical-align: 1px;
}
.mine-filter {
  border-color: #bbf7d0 !important;
  color: #166534 !important;
}
.calc-inline-button {
  display: grid;
  place-items: center;
  border-color: #bbf7d0;
  background: #dcfce7;
  color: #166534;
  text-decoration: none;
}
.calc-inline-button:hover {
  background: #bbf7d0;
}
.equipment-wide {
  grid-column: span 2;
}
.equipment-full {
  grid-column: 1 / -1;
}
.order-details {
  grid-column: 2 / 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
  padding: 12px;
  border-top: 1px solid #dcfce7;
}
.order-details div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}
.order-details strong,
.order-details span {
  display: block;
}
.order-details strong {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}
.order-details span {
  font-size: 13px;
}
.order-details .wide-detail {
  grid-column: 1 / -1;
}

.details-wrap {
  grid-column: 1 / -1;
  padding: 0 10px 10px;
  border-top: 1px solid #eef2f7;
  cursor: default;
}
.details-wrap,
.details-wrap * {
  cursor: default;
}
.details-wrap a,
.details-wrap button {
  cursor: pointer;
}
.details-wrap input,
.details-wrap textarea {
  cursor: text;
}
.order-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
  margin-top: 8px;
}
.cell-title {
  margin-bottom: 4px;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}
.input {
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-size: 12px;
}
.textarea {
  width: 100%;
  min-height: 92px;
  padding: 7px 9px;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.4;
  resize: vertical;
}
.input[readonly],
.input:disabled,
.textarea[readonly] {
  background: #f8fafc;
  color: #475569;
}
.field-with-tooltip {
  position: relative;
}
.field-with-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 35;
  left: 0;
  top: calc(100% + 6px);
  width: min(680px, calc(100vw - 80px));
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  box-shadow: 0 18px 40px rgb(15 23 42 / 18%);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity .12s ease, transform .12s ease;
}
.field-with-tooltip:hover::after {
  opacity: 1;
  transform: translateY(0);
}
.check-wrap {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
}
.check-wrap input:not(:disabled),
.check-wrap input:not(:disabled) + span {
  cursor: pointer;
}
.small-note {
  margin-top: 4px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.3;
}
.role-note {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}
.role-sergey { color: #1d4ed8; }
.role-dongwei { color: #15803d; }
.role-yulia { color: #7c3aed; }
.config-summary {
  width: 100%;
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.config-summary *,
.order-mini-plus {
  cursor: pointer;
}
.order-mini-plus {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-weight: 950;
}
.config-text {
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.request-file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.request-file-link,
.contract-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
.request-file-link:hover,
.contract-link:hover {
  text-decoration: underline;
}
.modal-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(15 23 42 / 48%);
}
.modal-card {
  width: min(640px, 100%);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 70px rgb(15 23 42 / 30%);
}
.modal-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 10px;
}
.modal-card h2 {
  margin: 0;
  font-size: 20px;
}
.modal-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}
.modal-text {
  width: calc(100% - 36px);
  min-height: 180px;
  margin: 0 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  resize: vertical;
  color: #111827;
  font: 14px/1.45 Inter, Arial, sans-serif;
}
.modal-card footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 18px 18px;
}
.avatar-editor-dialog {
  width: min(560px, calc(100vw - 36px));
}
.avatar-editor-body {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 18px 22px 10px;
}
.avatar-crop-stage {
  width: min(340px, 72vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #1d4ed8;
  font-size: 42px;
  font-weight: 950;
  cursor: grab;
  box-shadow: 0 18px 50px rgb(15 23 42 / 18%), 0 0 0 1px #dbe2ea;
  touch-action: none;
  user-select: none;
}
.avatar-crop-stage:active {
  cursor: grabbing;
}
.avatar-editor-body p {
  color: #475569;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}
.primary-dark {
  border-color: #07111f;
  background: #07111f;
  color: #fff;
}
.primary-dark:hover {
  background: #0d1b2e;
  border-color: #0d1b2e;
  box-shadow: 0 10px 22px rgb(7 17 31 / 18%);
  transform: translateY(-1px);
}
.login-dialog {
  width: min(650px, calc(100vw - 36px));
}
.login-card-body {
  padding: 4px 22px 24px;
}
.login-field {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 900;
  color: #475569;
}
.login-field span {
  display: block;
  margin-bottom: 6px;
}
.login-field .input {
  width: 100%;
  min-height: 40px;
  display: block;
  font-size: 14px;
}
.login-card-body > .button {
  margin-top: 14px;
}
.login-error {
  margin: 10px 0;
  padding: 9px 10px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 850;
}
.login-current {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}
.login-current strong {
  font-size: 16px;
}
.login-current span {
  color: var(--muted);
  font-size: 13px;
}
.permission-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.permission-list span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 850;
}
.module-access {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
}
.module-access strong {
  color: #0f172a;
  font-size: 13px;
}
.module-access em {
  color: #475569;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}
.module-access .permission-list {
  margin: 0;
}
.danger-button {
  border-color: #fecaca;
  background: #fff1f2;
  color: #be123c;
}
.cabinet-hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
}
.cabinet-hero .danger-button {
  margin-left: auto;
}
.cabinet-avatar-wrap {
  width: 86px;
  height: 86px;
  flex: 0 0 86px;
  padding: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 24px rgb(15 23 42 / 10%);
}
.cabinet-profile-main {
  min-width: 0;
}
.cabinet-hero h2 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.15;
}
.cabinet-hero h2 span {
  display: block;
  margin-top: 3px;
  color: #475569;
  font-size: 15px;
}
.cabinet-hero p {
  margin-top: 7px;
  font-size: 13px;
  font-weight: 800;
}
.cabinet-form-card {
  margin-bottom: 18px;
}
.profile-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
}
.profile-form label {
  display: grid;
  gap: 6px;
  margin: 0;
}
.profile-form label span {
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}
.profile-form .button {
  min-height: 40px;
}
.profile-avatar-editor {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #f8fafc;
}
.profile-preview-avatar {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #1d4ed8;
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgb(15 23 42 / 10%);
}
.profile-preview-avatar.has-photo {
  color: transparent;
}
.avatar-controls {
  display: grid;
  gap: 8px;
}
.avatar-controls strong {
  color: #0f172a;
  font-size: 14px;
}
.avatar-controls span {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}
.avatar-controls .button {
  justify-self: start;
  margin-top: 4px;
}
.avatar-controls .button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.profile-form .danger-button:hover {
  background: #ffe4e6;
  border-color: #fda4af;
  transform: translateY(-1px);
}
.profile-password-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
}
.profile-password-note span {
  color: #334155;
  font-size: 12px;
  font-weight: 950;
}
.profile-password-note code {
  padding: 5px 9px;
  border-radius: 8px;
  background: #07111f;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 950;
}
.profile-password-note em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}
.salary-card {
  margin-bottom: 16px;
}
.salary-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.salary-summary-grid article {
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #eff6ff;
}
.salary-summary-grid span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}
.salary-summary-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 16px;
}
.salary-note {
  margin: 0 0 12px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}
.salary-table table {
  min-width: 760px;
}
.salary-table small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}
.salary-manual-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}
.salary-manual-form h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.salary-delete-button {
  min-height: 0;
  margin-top: 6px;
  padding: 6px 10px;
  font-size: 12px;
}
.executive-card {
  margin-bottom: 16px;
}
.executive-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.executive-header p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
}
.executive-header label {
  min-width: 230px;
}
.executive-header label span {
  display: block;
  margin-bottom: 5px;
  color: #334155;
  font-size: 11px;
  font-weight: 900;
}
.executive-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.executive-factory-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}
.executive-factory-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #f8fbff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 850;
}
.executive-factory-strip b {
  color: #2563eb;
}
.executive-table table {
  min-width: 980px;
}
.mini-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.mini-stat-grid article {
  min-height: 94px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(15 23 42 / 4%);
}
.mini-stat-grid strong {
  display: block;
  color: #0f172a;
  font-size: 28px;
}
.mini-stat-grid span {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}
.stat-list {
  display: grid;
  gap: 8px;
}
.stat-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #eef2f7;
}
.stat-list span {
  min-width: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}
.stat-list strong {
  color: #0f172a;
}
.user-records {
  display: grid;
  gap: 8px;
}
.user-records a {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}
.user-records a:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
}
.user-records span,
.muted {
  color: var(--muted);
  font-size: 12px;
}
.qa-box {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #fdba74;
  border-radius: 12px;
  background: #fff7ed;
}
.qa-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-weight: 950;
  text-align: left;
  cursor: pointer;
}
.qa-toggle em {
  display: inline-grid;
  min-width: 28px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #fb923c;
  color: #fff;
  font-size: 12px;
  font-style: normal;
}
.qa-content {
  margin-top: 8px;
}
.qa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 900;
}
.qa-item {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: #fff;
}
.qa-message {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}
.qa-message-body {
  min-width: 0;
}
.qa-avatar {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #dbeafe;
  box-shadow: inset 0 0 0 2px #f8fafc, 0 5px 12px rgb(15 23 42 / 8%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.qa-avatar.has-photo {
  border-color: #fff;
  box-shadow: inset 0 0 0 2px #fff, 0 5px 12px rgb(15 23 42 / 10%);
}
.qa-meta {
  margin-bottom: 6px;
  color: #64748b;
  font-size: 11px;
}
.qa-text {
  color: #111827;
  font-size: 12px;
  line-height: 1.4;
}
.qa-replies {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.qa-reply {
  padding: 9px 10px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #f8fbff;
}
.qa-answer {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid #fed7aa;
}
.orange-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 8px;
  padding: 4px 8px;
  border: 1px solid #fdba74;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

@keyframes blinkGreen {
  from { box-shadow: 0 0 0 rgb(34 197 94 / 0%); }
  to { box-shadow: 0 0 0 4px rgb(34 197 94 / 12%); }
}

@keyframes blinkRed {
  from { box-shadow: 0 0 0 rgb(239 68 68 / 0%); }
  to { box-shadow: 0 0 0 4px rgb(239 68 68 / 12%); }
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 18px;
}
.admin-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(15 23 42 / 4%);
}
.admin-card.span-2 {
  grid-column: span 2;
}
.admin-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
}
.admin-card label {
  display: block;
  margin: 12px 0 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}
.admin-card input[type="text"],
.admin-card input:not([type]) {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
}
.admin-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}
.users-table-wrap {
  overflow-x: auto;
}
.users-table {
  width: 100%;
  border-collapse: collapse;
}
.users-table th,
.users-table td {
  padding: 10px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  vertical-align: top;
}
.users-table th {
  color: #475569;
  font-size: 11px;
  font-weight: 900;
}
.users-table td {
  font-size: 12px;
}
.users-table code {
  padding: 3px 6px;
  border-radius: 7px;
  background: #f1f5f9;
  color: #0f172a;
  font-family: inherit;
  font-weight: 900;
}
.users-table .module-access {
  margin-bottom: 6px;
}
.admin-users-list {
  display: grid;
  gap: 14px;
}
.admin-user-card {
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fbfcfe;
  overflow: hidden;
}
.admin-user-card > header {
  display: grid;
  grid-template-columns: 34px 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 10px 12px;
  background: #fff;
}
.admin-user-card > header strong {
  font-size: 15px;
}
.admin-user-toggle {
  width: 30px;
  height: 30px;
  border: 1px solid #dbe2ea;
  border-radius: 9px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
  cursor: pointer;
}
.admin-user-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 6px 14px rgb(15 23 42 / 10%);
}
.admin-user-avatar.has-photo {
  color: transparent;
}
.admin-user-summary {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.admin-user-summary strong,
.admin-user-summary span,
.admin-user-summary em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-user-summary span {
  color: #475569;
  font-size: 12px;
  font-weight: 850;
}
.admin-user-summary em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.admin-user-details {
  padding: 14px;
  border-top: 1px solid #eef2f7;
}
.admin-profile-sync {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 850;
}
.admin-user-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
.admin-user-fields,
.mailing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.admin-user-fields label,
.mailing-grid label {
  display: grid;
  gap: 5px;
  margin: 0;
}
.admin-user-fields span,
.mailing-grid span {
  color: #334155;
  font-size: 11px;
  font-weight: 900;
}
.admin-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.admin-salary-editor {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
}
.admin-salary-editor h3 {
  margin: 0 0 10px;
  font-size: 15px;
}
.admin-salary-editor.disabled {
  opacity: .72;
}
.admin-module-editor {
  padding: 12px;
  border: 1px solid #edf0f4;
  border-radius: 12px;
  background: #fff;
}
.admin-module-toggle {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px !important;
  margin: 0 0 8px !important;
  font-weight: 900;
}
.admin-module-toggle input,
.admin-permission-grid input {
  cursor: pointer;
}
.admin-permission-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.admin-permission-grid label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 850;
}
.admin-textarea {
  min-height: 74px;
  padding-top: 9px;
  resize: vertical;
}
.mailing-sections {
  margin-top: 12px;
}
.admin-logo-preview {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
}
.admin-logo-preview span {
  min-width: 170px;
  min-height: 62px;
  display: grid;
  place-items: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  color: #0f172a;
  font-size: 34px;
  font-weight: 950;
}
.admin-logo-preview span.has-image {
  width: 220px;
  color: transparent;
}
.admin-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.announcement-compose {
  min-height: 118px;
}
.announcement-admin-hint {
  display: block;
  margin: 7px 0 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}
.admin-announcement-preview {
  width: 100%;
  max-height: 220px;
  display: block;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  object-fit: contain;
  background: #f8fafc;
}
.footer-save-button {
  margin-top: 10px;
}
.app-footer {
  width: min(1320px, calc(100% - 40px));
  margin: 8px auto 30px;
  padding: 16px 18px;
  border-top: 1px solid #e5e7eb;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}
.announcement-dialog {
  width: min(820px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 32px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.announcement-dialog header {
  flex: 0 0 auto;
  padding: 22px 24px 12px;
}
.announcement-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 6px 28px 10px;
  overscroll-behavior: contain;
}
.announcement-image {
  width: 100%;
  max-height: 360px;
  display: block;
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  object-fit: contain;
  background: #f8fafc;
}
.announcement-text {
  min-height: 48px;
  color: #1f2937;
  font-size: 16px;
  line-height: 1.72;
  white-space: normal;
}
.announcement-text.muted {
  color: #64748b;
  font-weight: 800;
  text-align: center;
}
.announcement-language-stack {
  display: grid;
  gap: 22px;
}
.announcement-language-block + .announcement-language-block {
  padding-top: 22px;
  border-top: 1px solid #d7dde7;
}
.announcement-language-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: #475569;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}
.announcement-language-label img {
  width: 24px;
  height: 24px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 8px rgb(15 23 42 / 16%);
}
.announcement-dialog footer {
  flex: 0 0 auto;
  background: linear-gradient(180deg, rgb(255 255 255 / 82%), #fff 38%);
}
.icon-editor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.icon-editor {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
}
.icon-editor .card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
}
.icon-editor .card-icon::before {
  width: 24px;
  height: 24px;
}
.icon-editor strong {
  display: block;
  min-height: 34px;
  font-size: 13px;
}
.icon-editor input[type="color"] {
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px;
}

@media (max-width: 1180px) {
  .topbar { grid-template-columns: 130px minmax(420px, 1fr) minmax(300px, auto); gap: 14px; }
  .global-search { grid-template-columns: minmax(220px, 1fr) auto auto; }
  .top-search-button { min-width: 66px; padding: 0 10px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .columns { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-total-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-total-panel .button { grid-column: 1 / -1; }
  .calc-saved-search { grid-template-columns: 1fr auto auto; }
  .calc-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-scope-grid { grid-template-columns: 1fr; }
  .price-search-grid { grid-template-columns: 1fr 1fr auto auto auto !important; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-card.span-2 { grid-column: auto; }
  .admin-user-fields,
  .mailing-grid,
  .admin-modules,
  .task-create-grid,
  .task-edit-grid,
  .task-control-grid,
  .task-question-form { grid-template-columns: 1fr; }
  .salary-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .icon-editor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-create-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .equipment-create-grid { grid-template-columns: 1fr; }
  .order-summary { grid-template-columns: 30px minmax(0, 1fr); }
  .order-meta { grid-column: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .equipment-meta { grid-column: 2; grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .order-details { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 76px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--nav), var(--nav2));
    color: #cbd5e1;
    box-shadow: 0 -10px 28px rgb(7 22 38 / 20%);
  }
  .mobile-nav a,
  .mobile-nav button {
    flex: 1;
    border: 0;
    background: transparent;
    color: inherit;
    font-weight: 800;
  }
  .mobile-nav button {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    margin-top: -28px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 34px;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .brand { height: auto; padding: 0; border: 0; }
  .logo { font-size: 34px; }
  .global-search {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    margin-top: 12px;
  }
  .search {
    grid-column: 1 / -1;
    max-width: none;
  }
  .search-suggestions {
    top: calc(100% + 8px);
    max-height: 420px;
  }
  .search-suggestion {
    grid-template-columns: 1fr;
  }
  .suggestion-section,
  .search-suggestion small,
  .search-suggestion em {
    grid-column: 1;
  }
  .profile { display: flex; flex-wrap: wrap; justify-content: flex-start; padding-top: 10px; }
  .profile-actions { left: 0; right: auto; }
  .profile-menu::before { left: 18px; right: auto; }
  main { padding: 22px 14px 100px; }
  main { width: 100%; }
  .headline { display: block; }
  .actions { margin-top: 16px; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .mini-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .salary-summary-grid { grid-template-columns: 1fr; }
  .cabinet-hero { align-items: flex-start; flex-direction: column; }
  .cabinet-hero .danger-button { margin-left: 0; }
  .profile-form { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .calc-category-list,
  .calc-form-grid,
  .calc-form-grid.three,
  .calc-total-panel,
  .calc-saved-search { grid-template-columns: 1fr; }
  .calc-save-row { justify-content: stretch; }
  .calc-save-row .button { width: 100%; }
  .calc-search-suggestions button { grid-template-columns: 1fr; }
  .calc-search-suggestions em { white-space: normal; }
  .calc-preview-dialog { width: calc(100vw - 18px); max-height: calc(100vh - 18px); }
  .calc-preview-scroll { padding: 0 12px 12px; }
  .calc-preview-grid,
  .calc-preview-grid.three { grid-template-columns: 1fr; }
  .calc-pagination { align-items: stretch; flex-direction: column; }
  .calc-pages { justify-content: flex-start; }
  .calc-admin-dialog { width: calc(100vw - 18px); max-height: calc(100vh - 18px); }
  .calc-admin-scroll { padding: 0 12px 12px; }
  .calc-admin-duty-list { grid-template-columns: 1fr; }
  .calc-admin-duty-list label { grid-template-columns: minmax(0, 1fr) 86px; }
  .calc-title-row { display: block; }
  .calc-title-row strong { display: inline-grid; margin-top: 10px; }
  .orders-hero { display: block; }
  .order-search div { grid-template-columns: 1fr; }
  .price-search-grid { grid-template-columns: 1fr !important; }
  .price-category-list,
  .price-scope-grid { grid-template-columns: 1fr; }
  .price-category-head { grid-template-columns: 34px minmax(0, 1fr); }
  .price-category-head em,
  .price-category-head b {
    grid-column: 2;
    justify-self: start;
  }
  .price-item-main { grid-template-columns: 34px minmax(0, 1fr); }
  .price-mini,
  .price-status {
    grid-column: 2;
    justify-self: stretch;
  }
  .price-details { padding-left: 12px; }
  .price-detail-grid { grid-template-columns: 1fr; }
  .order-create-grid { grid-template-columns: 1fr; }
  .order-summary { grid-template-columns: 28px minmax(0, 1fr); }
  .task-summary { grid-template-columns: 28px minmax(0, 1fr); }
  .task-badges { grid-column: 2; justify-content: flex-start; }
  .task-details { padding-left: 14px; }
  .order-meta { grid-template-columns: 1fr; }
  .equipment-meta { grid-template-columns: 1fr; }
  .equipment-create-actions { grid-template-columns: 1fr; }
  .order-details { grid-template-columns: 1fr; }
  .order-grid { grid-template-columns: 1fr; }
  .icon-editor-grid { grid-template-columns: 1fr; }
  .announcement-dialog {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
  }
  .announcement-dialog header {
    padding: 18px 16px 10px;
  }
  .announcement-dialog h2 {
    font-size: 18px;
  }
  .announcement-scroll {
    padding: 4px 16px 8px;
  }
  .announcement-text {
    font-size: 15px;
    line-height: 1.65;
  }
  .announcement-dialog footer {
    padding: 12px 16px 16px;
  }
}
