:root {
  --ink: #182f3b;
  --muted: #607581;
  --blue: #4261ee;
  --mint: #dceee7;
  --lav: #e9edfa;
  --bg: #f3f6fa;
  --line: #e4ebef;
  --radius: 24px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font:
    14px/1.5 "Helvetica Neue",
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
}
button:disabled {
  opacity: 0.48;
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -1.2px;
  font-weight: 600;
}
h2 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.45px;
  font-weight: 600;
}
h3 {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
}
small {
  font-size: 12px;
}
svg.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.skip {
  position: fixed;
  top: -80px;
  left: 16px;
  background: #fff;
  padding: 16px;
  z-index: 100;
}
.skip:focus {
  top: 12px;
}
:focus-visible {
  outline: 3px solid #94abfa;
  outline-offset: 3px;
}
.sidebar {
  position: fixed;
  width: 222px;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 18px 20px;
  display: flex;
  flex-direction: column;
  z-index: 30;
  overflow: auto;
}
.brand {
  display: flex;
  align-items: center;
  padding: 0 9px 30px;
  gap: 8px;
}
.brand img {
  width: 145px;
  height: 46px;
  object-fit: contain;
}
.work-label {
  font-size: 10px;
  letter-spacing: 1.25px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 20px 12px 9px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 12px;
  color: #617781;
  font-size: 13px;
  margin: 3px 0;
  transition: 0.15s;
}
.nav-link:hover {
  background: #f3f6fa;
  color: var(--ink);
}
.nav-link.active {
  background: var(--ink);
  color: white;
  box-shadow: 0 5px 12px #182f3b12;
}
.nav-link .badge {
  margin-left: auto;
  min-width: 20px;
  text-align: center;
  padding: 0 5px;
  background: #edf1ff;
  color: var(--blue);
  border-radius: 6px;
  font-size: 11px;
}
.nav-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.season-card {
  background: var(--mint);
  padding: 17px;
  border-radius: 18px;
  font-size: 12px;
  position: relative;
  overflow: hidden;
}
.season-card strong {
  display: block;
  font-size: 15px;
  margin: 7px 0;
}
.season-card:after {
  content: "↗";
  position: absolute;
  right: 12px;
  bottom: 7px;
  font-size: 46px;
  opacity: 0.18;
}
.shell {
  margin-left: 222px;
}
.topbar {
  height: 83px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 32px;
  background: #fff9;
}
.global-search {
  max-width: 400px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
  color: var(--muted);
}
.global-search input {
  border: 0;
  background: none;
  outline: 0;
  width: 100%;
  min-width: 0;
  font-size: 13px;
}
.top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 15px;
}
.top-right small {
  color: var(--muted);
}
.role-control {
  display: flex;
  align-items: center;
  gap: 9px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.role-control select {
  max-width: 190px;
  border: 0;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: var(--lav);
  color: #425785;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  border: 2px solid white;
}
.avatar.mint {
  background: var(--mint);
  color: #2f685b;
}
.avatar.peach {
  background: #f9e8dc;
  color: #865d44;
}
.avatar.blue {
  background: #dce8ff;
}
.avatar.lg {
  width: 68px;
  height: 68px;
  font-size: 23px;
}
.avatar-stack {
  display: flex;
}
.avatar-stack .avatar + .avatar {
  margin-left: -11px;
}
.mobile-toggle,
.mobile-bottom {
  display: none;
}
main {
  padding: 28px 32px 38px;
  max-width: 1570px;
  margin: auto;
  min-height: calc(100vh - 83px);
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.page-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 25px;
}
.page-head p {
  color: var(--muted);
  margin-top: 9px;
  max-width: 680px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.page-actions,
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 11px 17px;
  border-radius: 12px;
  white-space: normal;
  text-align: center;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 500;
  font-size: 12px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn:hover {
  background: #edf2f6;
  transform: translateY(-1px);
}
.btn.primary {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}
.btn.primary:hover {
  background: #3455cf;
}
.btn.dark {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}
.btn.danger {
  color: #a34442;
  background: #fff4f2;
  border-color: #f4d6ce;
}
.btn.ghost {
  background: transparent;
}
.btn.small {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 11px;
  border-radius: 10px;
}
.icon-btn {
  height: 38px;
  width: 38px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-btn:hover {
  background: var(--lav);
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}
.panel-head p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.grid {
  display: grid;
  gap: 20px;
}
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
  align-items: start;
}
.split.equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stack {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.mt {
  margin-top: 20px;
}
.muted {
  color: var(--muted);
}
.tiny {
  font-size: 11px;
}
.blue-text {
  color: var(--blue);
}
.text-link {
  color: var(--blue);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nowrap {
  white-space: nowrap;
}
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 43%;
  min-height: 225px;
  border-radius: 26px;
  overflow: hidden;
  background: #e4eeec;
}
.hero-copy {
  padding: 31px;
  position: relative;
  z-index: 1;
}
.hero h2 {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.15;
  max-width: 400px;
}
.hero p {
  margin: 12px 0 22px;
  color: #546f75;
  font-size: 13px;
  max-width: 340px;
}
.hero-photo {
  height: 100%;
  width: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0 0 0 auto;
  width: 48%;
  mask-image: linear-gradient(to right, transparent, #000 20%);
}
.hero .floating {
  position: absolute;
  bottom: 22px;
  right: 22px;
  background: #ffffffdf;
  border: 1px solid white;
  border-radius: 17px;
  padding: 12px 17px;
  font-size: 11px;
  backdrop-filter: blur(15px);
}
.hero .floating strong {
  display: block;
  font-size: 16px;
}
.metric {
  padding: 20px;
  position: relative;
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.metric .metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.metric .metric-icon {
  width: 33px;
  height: 33px;
  background: #f2f5fa;
  display: grid;
  place-items: center;
  border-radius: 11px;
}
.metric strong {
  font-size: 35px;
  font-weight: 500;
  letter-spacing: -1px;
}
.metric small {
  font-size: 11px;
  color: var(--muted);
  display: block;
}
.metric.highlight {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.metric.highlight .metric-top,
.metric.highlight small {
  color: #e6ecff;
}
.metric.highlight .metric-icon {
  background: #ffffff20;
}
.metric.mint {
  background: var(--mint);
  border-color: var(--mint);
}
.metric.lav {
  background: var(--lav);
  border-color: var(--lav);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 7px;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  background: #eef2f5;
  color: #586d78;
}
.status:before {
  content: "";
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: currentColor;
}
.status.green {
  background: #e9f4ed;
  color: #2b7650;
}
.status.blue {
  background: #e9efff;
  color: #3c5fc7;
}
.status.orange {
  background: #fff0db;
  color: #8f601d;
}
.status.red {
  background: #fbeceb;
  color: #a44441;
}
.status.purple {
  background: #eaedfa;
  color: #364fbc;
}
.tabs {
  display: flex;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin: 0 0 22px;
  overflow: auto;
}
.tab {
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.tab.active {
  background: #e9efff;
  color: var(--blue);
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.search {
  min-width: 160px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f8fa;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 12px;
  color: var(--muted);
}
.search input {
  height: 40px;
  border: 0;
  outline: 0;
  background: none;
  min-width: 0;
  width: 100%;
  font-size: 12px;
}
.toolbar select {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  min-height: 41px;
  padding: 8px 28px 8px 12px;
  font-size: 12px;
}
.table-wrap {
  width: 100%;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  text-align: left;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  padding: 12px 10px;
  background: #f7f9fc;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th:first-child {
  border-radius: 9px 0 0 9px;
}
td {
  padding: 15px 10px;
  border-bottom: 1px solid #edf1f4;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tr:hover td {
  background: #fafcff;
}
td .actions {
  gap: 5px;
}
td p {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.entity {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 170px;
}
.entity img {
  width: 54px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.entity strong {
  font-weight: 500;
}
.table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-top: 18px;
}
.pagination {
  display: flex;
  gap: 5px;
}
.page-number {
  height: 28px;
  width: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #edf2ff;
  color: var(--blue);
}
.event-mini {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.event-mini:last-child {
  border: 0;
  padding-bottom: 0;
}
.event-mini img {
  width: 68px;
  height: 59px;
  border-radius: 12px;
  object-fit: cover;
}
.event-mini h3 {
  font-size: 13px;
}
.event-mini p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.event-mini .icon-btn {
  margin-left: auto;
  width: 31px;
  height: 31px;
}
.list-row {
  display: flex;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.list-row:last-child {
  border: 0;
}
.list-row .grow {
  flex: 1;
  min-width: 0;
}
.list-row p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.number-circle {
  height: 34px;
  width: 34px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--lav);
  color: var(--blue);
  font-size: 12px;
}
.notice {
  display: flex;
  gap: 11px;
  border-radius: 13px;
  padding: 14px 16px;
  background: #f0f4ff;
  color: #4a6398;
  font-size: 12px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.notice.warn {
  background: #fff5e6;
  color: #8b6229;
}
.notice.success {
  background: #eaf5ed;
  color: #397253;
}
.notice.error {
  background: #fcefed;
  color: #a1463f;
}
.notice .icon {
  width: 18px;
  height: 18px;
}
.note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field {
  display: block;
  font-size: 12px;
  font-weight: 500;
  min-width: 0;
}
.field.wide {
  grid-column: 1/-1;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  display: block;
  background: #fbfcfe;
  border: 1px solid #dce5eb;
  border-radius: 11px;
  margin-top: 7px;
  padding: 11px 12px;
  min-height: 43px;
  outline: 0;
  font-size: 13px;
  font-weight: 400;
}
.field textarea {
  min-height: 105px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #4568e511;
}
.field small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 6px;
}
.field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  display: inline;
  margin: 0 8px 0 0;
}
.checkline {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  margin: 12px 0;
}
.form-actions {
  display: flex;
  gap: 10px;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  align-items: center;
  flex-wrap: wrap;
}
.save-note {
  font-size: 11px;
  color: var(--muted);
  margin-right: auto;
}
.preview-card {
  border: 1px solid var(--line);
  border-radius: 19px;
  overflow: hidden;
  background: white;
}
.preview-card > img {
  height: 188px;
  width: 100%;
  object-fit: cover;
}
.preview-body {
  padding: 19px;
}
.preview-body h3 {
  font-size: 20px;
  margin: 9px 0;
}
.preview-body p {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0;
}
.chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.chip {
  display: inline-flex;
  padding: 6px 10px;
  background: #f0f4f7;
  border-radius: 7px;
  font-size: 10px;
}
.photo-strip {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.photo-strip img {
  height: 120px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.chart {
  height: 215px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding: 20px 12px 26px;
  position: relative;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 43px,
    #edf1f5 43px,
    #edf1f5 44px
  );
}
.bar-group {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  flex: 1;
  height: 100%;
  position: relative;
}
.bar {
  width: 19px;
  max-width: 35%;
  background: #91a5ed;
  border-radius: 7px 7px 0 0;
  min-height: 5px;
}
.bar.green {
  background: #b9d5c8;
}
.bar-group span {
  position: absolute;
  bottom: -22px;
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
}
.chart-legend {
  display: flex;
  gap: 15px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 15px;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  margin-right: 5px;
}
.dot.green {
  background: #b9d5c8;
}
.progress {
  height: 6px;
  background: #eff2f7;
  border-radius: 20px;
  margin-top: 10px;
  overflow: hidden;
}
.progress > i {
  display: block;
  background: var(--blue);
  height: 100%;
  border-radius: 20px;
}
.timeline {
  position: relative;
  padding-left: 25px;
}
.timeline:before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 20px;
  width: 1px;
  background: var(--line);
}
.timeline-item {
  position: relative;
  padding: 0 0 23px;
}
.timeline-item:before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #e5ebff;
  position: absolute;
  left: -24px;
  top: 5px;
  box-sizing: content-box;
}
.timeline-item p {
  font-size: 12px;
  margin: 4px 0;
}
.timeline-item small {
  font-size: 10px;
  color: var(--muted);
}
.facts {
  display: grid;
  gap: 13px;
}
.fact {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
}
.fact span {
  color: var(--muted);
}
.fact strong {
  font-weight: 500;
  text-align: right;
}
.profile-top {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-bottom: 23px;
}
.profile-top h2 {
  font-size: 25px;
}
.profile-top p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.review-photo {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.review-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.review-photo .actions {
  padding: 12px;
}
.stars {
  color: #bc8c3e;
  letter-spacing: 3px;
  font-size: 18px;
}
.quote {
  font-size: 17px;
  line-height: 1.75;
  margin: 18px 0;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
.calendar > div {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 100px;
  padding: 10px;
  font-size: 11px;
}
.calendar .cal-day {
  min-height: 35px;
  background: #f5f8fa;
  color: var(--muted);
  text-align: center;
}
.calendar .cal-empty {
  background: #fafbfc;
}
.calendar a {
  display: block;
  background: var(--lav);
  color: #465fb6;
  font-size: 9px;
  padding: 5px;
  margin-top: 6px;
  border-radius: 5px;
}
.calendar .today {
  background: #edf3ff;
}
.scan-area {
  background: #edf3f5;
  border: 1px dashed #b9cbd3;
  border-radius: 22px;
  padding: 30px;
  text-align: center;
}
.scan-frame {
  width: 165px;
  height: 165px;
  position: relative;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border: 2px solid var(--blue);
  border-radius: 19px;
  background: linear-gradient(135deg, #fdfefe, #dae5ed);
}
.scan-frame > .icon {
  width: 83px;
  height: 83px;
  stroke-width: 1;
}
.scan-line {
  position: absolute;
  inset: 50% 15px auto;
  height: 2px;
  background: #4568e577;
  box-shadow: 0 0 12px #4568e544;
}
.result-card {
  text-align: center;
  padding: 28px;
}
.result-mark {
  height: 64px;
  width: 64px;
  border-radius: 50%;
  margin: 0 auto 17px;
  background: var(--mint);
  color: #3c8066;
  display: grid;
  place-items: center;
}
.result-mark .icon {
  width: 31px;
  height: 31px;
}
.result-mark.red {
  background: #fce8e4;
  color: #b4524a;
}
.wheel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}
.wheel {
  height: 240px;
  width: 240px;
  border-radius: 50%;
  background: conic-gradient(#4568e5 0 50%, #a6c9b8 50% 80%, #cad4fa 80%);
  border: 12px solid #f0f3fc;
  box-shadow: 0 10px 20px #182f3b0d;
  position: relative;
  display: grid;
  place-items: center;
  transform: rotate(-30deg);
}
.wheel:after {
  content: "ОТКРЫВАЙ";
  height: 76px;
  width: 76px;
  border-radius: 50%;
  background: white;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 600;
  transform: rotate(30deg);
  box-shadow: 0 0 0 9px #ffffff35;
}
.wheel-label {
  position: absolute;
  color: #fff;
  font-size: 13px;
  right: 27px;
  top: 75px;
  transform: rotate(30deg);
}
.wheel-label.two {
  left: 35px;
  right: auto;
  top: 155px;
  color: #274337;
  font-size: 10px;
}
.wheel-label.three {
  left: 35px;
  right: auto;
  top: 42px;
  color: #314578;
  font-size: 10px;
}
.wheel-pointer {
  position: absolute;
  top: 21px;
  left: calc(50% - 9px);
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 19px solid var(--ink);
  z-index: 1;
}
.reward-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: white;
}
.reward-card > img {
  width: 100%;
  height: 175px;
  object-fit: cover;
}
.reward-card .body {
  padding: 20px;
}
.reward-card h3 {
  font-size: 19px;
  margin: 8px 0;
}
.reward-card p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}
.price {
  font-size: 24px;
  font-weight: 500;
}
.empty {
  text-align: center;
  padding: 46px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
}
.empty > .icon {
  width: 38px;
  height: 38px;
  color: #8d9eaa;
  margin: 0 auto 15px;
}
.empty h2 {
  margin-bottom: 10px;
}
.empty p {
  max-width: 440px;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 13px;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-top: 30px;
  font-size: 10px;
  color: #778b96;
}
.footer a {
  text-decoration: underline;
}
.sticky-summary {
  position: sticky;
  top: 18px;
}
.toggle {
  width: 34px;
  height: 20px;
  background: #d7e0e7;
  border-radius: 20px;
  position: relative;
  flex-shrink: 0;
}
.toggle:after {
  content: "";
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  position: absolute;
  left: 3px;
  top: 3px;
  box-shadow: 0 1px 3px #0002;
}
.toggle.on {
  background: var(--blue);
}
.toggle.on:after {
  left: 17px;
}
.code {
  font-family: monospace;
  font-size: 12px;
  letter-spacing: 0.3px;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 6px;
}
.preview-banner {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  height: 260px;
}
.preview-banner img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.preview-banner:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, #0c283ac4);
}
.preview-banner .overlay {
  position: absolute;
  bottom: 26px;
  left: 26px;
  right: 26px;
  color: white;
  z-index: 1;
}
.preview-banner h2 {
  font-size: 31px;
  max-width: 470px;
}
.preview-banner p {
  font-size: 12px;
  margin-top: 9px;
}
.upload {
  border: 1px dashed #bbcbd9;
  border-radius: 14px;
  padding: 26px;
  text-align: center;
  background: #f7faff;
}
.upload input {
  max-width: 100%;
  margin: 12px auto 0;
  font-size: 11px;
}
.media-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}
.media-thumbs img {
  width: 100%;
  height: 66px;
  object-fit: cover;
  border-radius: 9px;
}
.media-thumbs button {
  background: none;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 12px;
}
.media-thumbs button.selected {
  border-color: var(--blue);
}
.message-bubble {
  background: #e1efdf;
  border-radius: 16px 16px 3px 16px;
  padding: 18px;
  font-size: 13px;
  box-shadow: 0 2px 4px #00000005;
}
.message-bubble small {
  display: block;
  text-align: right;
  font-size: 9px;
  color: #6e876f;
  margin-top: 12px;
}
.phone-preview {
  max-width: 320px;
  border: 8px solid #edf1f4;
  border-radius: 30px;
  margin: auto;
  background: #f3f6f0;
  padding: 20px 14px;
  min-height: 330px;
}
.phone-top {
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #dde5dd;
  padding-bottom: 13px;
  margin-bottom: 22px;
}
.guide-card {
  background: white;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 18px;
}
.guide-card:hover {
  border-color: var(--blue);
}
.guide-card .num {
  font-size: 10px;
  color: var(--blue);
  letter-spacing: 1px;
}
.guide-card h3 {
  margin: 9px 0;
}
.guide-card p {
  font-size: 11px;
  color: var(--muted);
}
.auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 660px;
  background: white;
  border-radius: 27px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.auth-photo {
  position: relative;
  background: #aec4c9;
}
.auth-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.auth-photo .overlay {
  position: absolute;
  bottom: 40px;
  left: 35px;
  right: 30px;
  color: white;
  text-shadow: 0 2px 12px #0006;
}
.auth-photo h2 {
  font-size: 37px;
}
.auth-form {
  padding: 55px 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-form .brand {
  padding: 0 0 28px;
}
.auth-form p {
  margin: 13px 0 25px;
  color: var(--muted);
}
.chips button {
  border: 0;
  cursor: pointer;
}
.selected-row td {
  background: #f0f4ff !important;
}
.flow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 16px 0;
}
.flow > span {
  background: #f4f7fa;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 11px;
}
.demo-tag {
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #e9edf4;
  color: #657982;
}
.inline-error {
  margin-top: 15px;
  color: #a3453e;
  font-size: 12px;
}
.stat-pair {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 15px 0;
}
.stat-pair strong {
  font-size: 29px;
  letter-spacing: -0.7px;
  font-weight: 500;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}
.ring {
  width: 160px;
  height: 160px;
  margin: 15px auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0 64%, #e9effa 64%);
  position: relative;
}
.ring:before {
  content: "";
  position: absolute;
  inset: 14px;
  background: white;
  border-radius: 50%;
}
.ring strong {
  position: relative;
  font-size: 29px;
  font-weight: 500;
}
.schedule-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: #f3f6fa;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 11px;
  margin: 7px 6px 0 0;
}
dialog {
  width: min(520px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 25px 80px #112d3f2e;
  color: var(--ink);
}
dialog::backdrop {
  background: #182f3b65;
  backdrop-filter: blur(4px);
}
dialog .panel-head {
  margin-bottom: 14px;
}
dialog p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 100px);
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  box-shadow: 0 8px 30px #182f3b30;
  border-radius: 13px;
  padding: 13px 20px;
  z-index: 99;
  font-size: 12px;
  max-width: calc(100vw - 30px);
  display: none;
}
#toast.show {
  display: block;
}
.empty-cell {
  padding: 30px;
  text-align: center;
  color: var(--muted);
}
.skeleton {
  height: 90px;
  border-radius: 14px;
  background: linear-gradient(90deg, #edf2f7, #fafcff, #edf2f7);
  margin: 15px 0;
}
.badge-count {
  font-size: 11px;
  background: var(--lav);
  padding: 3px 7px;
  border-radius: 6px;
  color: var(--blue);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (min-width: 1700px) {
  .split {
    grid-template-columns: minmax(0, 1fr) 350px;
  }
  .hero {
    min-height: 250px;
  }
}
@media (max-width: 1180px) {
  .sidebar {
    width: 194px;
    padding: 25px 12px;
  }
  .shell {
    margin-left: 194px;
  }
  main {
    padding: 25px 23px;
  }
  .topbar {
    padding: 0 23px;
  }
  .split {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .grid.four {
    gap: 12px;
  }
  .metric {
    padding: 16px;
  }
  .hero h2 {
    font-size: 26px;
  }
  .hero-copy {
    padding: 25px;
  }
  .role-control select {
    max-width: 145px;
  }
  .top-right small {
    display: none;
  }
  .panel {
    padding: 20px;
  }
  h1 {
    font-size: 30px;
  }
  .entity {
    min-width: 150px;
  }
}
@media (max-width: 940px) {
  .sidebar {
    width: 180px;
  }
  .shell {
    margin-left: 180px;
  }
  .nav-link {
    font-size: 11px;
    padding: 10px;
  }
  .brand img {
    width: 130px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .sticky-summary {
    position: static;
  }
  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topbar {
    gap: 10px;
  }
  .role-control select {
    max-width: 120px;
  }
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-copy {
    padding: 23px;
  }
  .hero .floating {
    display: none;
  }
  .page-head {
    flex-wrap: wrap;
  }
  .hero {
    min-height: 210px;
  }
  .auth-form {
    padding: 32px;
  }
  .auth-photo h2 {
    font-size: 29px;
  }
  .top-right .demo-tag {
    display: none;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 13px;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 250px;
    box-shadow: 20px 0 60px #182f3b20;
  }
  .sidebar.open {
    transform: none;
  }
  .sidebar .brand {
    padding-top: 15px;
  }
  .nav-link {
    font-size: 13px;
  }
  .shell {
    margin-left: 0;
  }
  .topbar {
    height: 67px;
    padding: 0 17px;
    gap: 10px;
    background: #fff;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .global-search {
    display: none;
  }
  .top-right {
    gap: 8px;
  }
  .role-control {
    border: 0;
    padding: 0;
    gap: 6px;
  }
  .role-control select {
    max-width: 172px;
    font-size: 11px;
  }
  .role-control .avatar {
    height: 31px;
    width: 31px;
    font-size: 10px;
  }
  .topbar .logo-mobile {
    font-size: 13px;
    font-weight: 600;
  }
  .top-right > .icon-btn {
    display: none;
  }
  main {
    padding: 22px 16px 95px;
    min-height: calc(100vh - 67px);
  }
  .breadcrumb {
    font-size: 10px;
    margin-bottom: 11px;
  }
  h1 {
    font-size: 29px;
    letter-spacing: -0.9px;
  }
  .page-head {
    gap: 15px;
    margin-bottom: 19px;
  }
  .page-head p {
    font-size: 12px;
    line-height: 1.6;
    margin-top: 8px;
  }
  .page-actions {
    width: 100%;
  }
  .page-actions .btn {
    flex: 1;
    font-size: 11px;
  }
  .grid {
    gap: 13px;
  }
  .grid.two,
  .grid.three,
  .split,
  .split.equal {
    grid-template-columns: 1fr;
  }
  .grid.four {
    gap: 10px;
  }
  .metric {
    min-height: 130px;
    padding: 16px;
  }
  .metric strong {
    font-size: 31px;
  }
  .metric .metric-top {
    font-size: 11px;
  }
  .metric .metric-icon {
    width: 26px;
    height: 26px;
  }
  .metric .icon {
    width: 15px;
    height: 15px;
  }
  .metric small {
    font-size: 10px;
  }
  .panel {
    padding: 19px;
    border-radius: 20px;
  }
  .panel-head {
    margin-bottom: 16px;
  }
  .panel-head h2 {
    font-size: 18px;
  }
  .panel-head p {
    font-size: 11px;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 290px;
  }
  .hero-copy {
    padding: 25px 23px;
    width: 85%;
    align-self: end;
  }
  .hero h2 {
    font-size: 28px;
    max-width: 245px;
    position: relative;
  }
  .hero p {
    max-width: 220px;
    font-size: 12px;
    margin: 10px 0 19px;
  }
  .hero-photo {
    width: 100%;
    opacity: 0.27;
    mask-image: none;
  }
  .hero-copy:after {
    content: "";
  }
  .hero .btn {
    position: relative;
  }
  .tabs {
    gap: 3px;
    margin-bottom: 18px;
    padding-bottom: 10px;
  }
  .tab {
    font-size: 11px;
    padding: 9px 10px;
  }
  .toolbar {
    gap: 8px;
  }
  .toolbar .search {
    flex-basis: 100%;
  }
  .toolbar select {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    font-size: 11px;
  }
  .table-wrap {
    overflow: visible;
  }
  .responsive-table thead {
    display: none;
  }
  .responsive-table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
    width: 100%;
  }
  .responsive-table tr {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 13px;
    margin: 11px 0;
  }
  .responsive-table td {
    border: 0;
    padding: 7px 0;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    text-align: right;
    font-size: 12px;
    align-items: center;
  }
  .responsive-table td:before {
    content: attr(data-label);
    font-size: 10px;
    color: var(--muted);
    text-align: left;
    flex-shrink: 0;
    max-width: 90px;
  }
  .responsive-table td:first-child {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
    text-align: left;
  }
  .responsive-table td:first-child:before {
    display: none;
  }
  .responsive-table td .entity {
    width: 100%;
    text-align: left;
  }
  .responsive-table td .actions {
    justify-content: flex-end;
  }
  .entity img {
    width: 52px;
    height: 43px;
  }
  .responsive-table tr:hover td {
    background: none;
  }
  .table-foot {
    font-size: 10px;
    gap: 12px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .field {
    font-size: 11px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
  .form-actions {
    gap: 9px;
    margin-top: 17px;
    padding-top: 17px;
  }
  .save-note {
    width: 100%;
    margin-bottom: 4px;
  }
  .form-actions .btn {
    flex: 1;
  }
  .photo-strip {
    grid-template-columns: 1fr 1fr;
  }
  .photo-strip img {
    height: 100px;
  }
  .review-photo img {
    height: 210px;
  }
  .calendar-wrap {
    overflow: auto;
    margin: 0 -5px;
  }
  .calendar {
    min-width: 590px;
  }
  .calendar > div {
    min-height: 100px;
  }
  .profile-top {
    gap: 14px;
  }
  .profile-top h2 {
    font-size: 23px;
  }
  .profile-top .avatar {
    width: 57px;
    height: 57px;
    font-size: 19px;
  }
  .fact {
    font-size: 11px;
  }
  .quote {
    font-size: 15px;
  }
  .scan-area {
    padding: 23px 15px;
  }
  .preview-banner {
    height: 245px;
  }
  .preview-banner h2 {
    font-size: 28px;
  }
  .preview-banner .overlay {
    left: 20px;
    bottom: 22px;
  }
  .footer {
    font-size: 9px;
    line-height: 1.7;
  }
  .mobile-bottom {
    position: fixed;
    display: flex;
    justify-content: space-around;
    align-items: center;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: #fffffff5;
    border-top: 1px solid var(--line);
    z-index: 25;
    padding-bottom: env(safe-area-inset-bottom);
    backdrop-filter: blur(15px);
  }
  .mobile-bottom a {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 3px;
    color: var(--muted);
    font-size: 9px;
    padding: 6px 12px;
  }
  .mobile-bottom a.active {
    color: var(--blue);
  }
  .mobile-bottom .icon {
    width: 20px;
    height: 20px;
  }
  #toast {
    left: 50%;
    bottom: 80px;
    min-width: 250px;
  }
  .auth {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .auth-photo {
    height: 180px;
  }
  .auth-photo .overlay {
    bottom: 25px;
    left: 25px;
  }
  .auth-photo h2 {
    font-size: 27px;
  }
  .auth-form {
    padding: 27px 23px;
  }
  .auth-form .brand {
    display: none;
  }
  .auth-form h1 {
    font-size: 25px;
  }
  .auth-form p {
    font-size: 12px;
  }
  .auth-form .btn {
    width: 100%;
  }
  .media-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
  dialog {
    padding: 22px;
  }
  .mobile-shade {
    position: fixed;
    inset: 0;
    background: #182f3b55;
    z-index: 29;
  }
  .matrix-scroll {
    overflow: auto;
  }
  .matrix-scroll table {
    min-width: 620px;
  }
  .reward-card > img {
    height: 185px;
  }
  .chart {
    gap: 12px;
    height: 190px;
  }
  .btn {
    min-height: 44px;
  }
  .icon-btn {
    min-height: 40px;
  }
  .mobile-toggle {
    min-height: 40px;
  }
  .note {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
.capture * {
  scroll-behavior: auto !important;
  transition: none !important;
  animation: none !important;
}
/* Final responsive refinements. Capture pins navigation to the full-page edges. */
.bar-group {
  min-width: 0;
}
.bar {
  min-width: 0;
  flex-shrink: 1;
}
.chart {
  overflow: hidden;
}
.chart-legend {
  flex-wrap: wrap;
  row-gap: 5px;
}
.mobile-toggle {
  display: none;
}
@media (min-width: 701px) {
  .nav-link {
    padding-top: 8px;
    padding-bottom: 8px;
    margin: 2px 0;
  }
  .work-label {
    margin-top: 15px;
    margin-bottom: 6px;
  }
  .nav-bottom {
    padding-top: 15px;
  }
  .brand {
    padding-bottom: 20px;
  }
  .season-card {
    padding: 13px;
  }
  .capture {
    position: relative;
  }
  .capture .sidebar {
    position: absolute;
    min-height: 100%;
    height: auto;
    overflow: visible;
  }
  .capture main {
    min-height: 1180px;
  }
}
@media (max-width: 700px) {
  .mobile-toggle {
    display: inline-flex;
  }
  .capture {
    position: relative;
  }
  .capture .mobile-bottom {
    position: absolute;
    bottom: 0;
  }
  .chart {
    padding-left: 0;
    padding-right: 0;
    gap: 8px;
  }
  .bar {
    width: 15px;
  }
  .bar-group {
    gap: 3px;
  }
  .mobile-bottom {
    z-index: 25;
  }
  .responsive-table tr[hidden] {
    display: none;
  }
  .topbar:before {
    content: "ОП";
    font-weight: 700;
    color: #278e9c;
    letter-spacing: -1px;
  }
  .topbar .mobile-toggle {
    order: -1;
  }
}
.sidebar .brand img {
  width: 160px;
  height: 65px;
}
.auth-form .brand img {
  width: 176px;
  height: 76px;
}
