:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #667085;
  --line: #d9e0e8;
  --accent: #16785f;
  --accent-soft: #e5f4ef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.access-page {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 13%, rgba(224, 86, 119, 0.13), transparent 18%),
    radial-gradient(circle at 80% 75%, rgba(86, 74, 214, 0.16), transparent 26%),
    radial-gradient(circle at 13% 78%, rgba(58, 111, 142, 0.11), transparent 30%),
    linear-gradient(180deg, #fbfcff 0%, #eef3fb 100%);
}

.access-page::before,
.access-page::after {
  position: fixed;
  z-index: 0;
  content: "";
  pointer-events: none;
}

.access-page::before {
  right: -70px;
  bottom: -80px;
  width: min(420px, 52vw);
  height: min(300px, 36vw);
  border-radius: 48% 48% 0 0;
  background:
    linear-gradient(#dfe5f0, #dfe5f0) 18% 48% / 58% 12px no-repeat,
    linear-gradient(#dfe5f0, #dfe5f0) 23% 62% / 36% 12px no-repeat,
    linear-gradient(#e9edf6, #e9edf6) 72% 24% / 16% 68% no-repeat,
    linear-gradient(#e9edf6, #e9edf6) 92% 38% / 14% 54% no-repeat,
    rgba(221, 228, 240, 0.54);
  opacity: 0.62;
}

.access-page::after {
  left: -110px;
  bottom: -120px;
  width: min(390px, 58vw);
  height: min(420px, 62vw);
  border-radius: 42% 58% 0 0;
  background:
    radial-gradient(ellipse at 58% 20%, rgba(152, 178, 197, 0.46) 0 16%, transparent 17%),
    radial-gradient(ellipse at 47% 38%, rgba(152, 178, 197, 0.42) 0 18%, transparent 19%),
    radial-gradient(ellipse at 60% 55%, rgba(152, 178, 197, 0.36) 0 16%, transparent 17%),
    linear-gradient(90deg, transparent 48%, rgba(152, 178, 197, 0.35) 49% 52%, transparent 53%);
  opacity: 0.52;
}

.access-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.82fr);
  gap: 34px;
  width: min(1460px, calc(100% - 48px));
  min-height: 100vh;
  align-items: center;
  margin: 0 auto;
  padding: 32px 0;
}

.access-stage {
  position: relative;
  min-height: 720px;
  padding: 54px 48px 34px;
  overflow: hidden;
  border-radius: 8px;
}

.access-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #111a2d;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
}

.access-brand strong {
  color: #5a43e8;
}

.brand-cube {
  width: 52px;
  height: 52px;
  border: 6px solid #5a43e8;
  border-radius: 12px;
  transform: rotate(30deg);
  box-shadow: inset 0 0 0 8px rgba(90, 67, 232, 0.1);
}

.access-copy {
  margin-top: 34px;
}

.access-copy p {
  max-width: 420px;
  margin-bottom: 16px;
  color: #68728a;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.45;
}

.access-copy span {
  display: block;
  width: 58px;
  height: 4px;
  border-radius: 999px;
  background: #5a43e8;
}

.warehouse-scene {
  position: absolute;
  inset: 182px 16px 100px 18px;
}

.shelf {
  position: absolute;
  left: 0;
  width: 230px;
  height: 92px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(130, 116, 230, 0.28), rgba(130, 116, 230, 0.1)),
    repeating-linear-gradient(90deg, transparent 0 54px, rgba(90, 67, 232, 0.18) 54px 58px);
}

.shelf-top {
  top: 70px;
}

.shelf-bottom {
  top: 220px;
}

.drone {
  position: absolute;
  right: 92px;
  top: 0;
  width: 160px;
  height: 52px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 10% 50%, #7763ec 0 9px, transparent 10px),
    radial-gradient(circle at 90% 50%, #7763ec 0 9px, transparent 10px),
    linear-gradient(90deg, transparent 0 18%, #5d49e6 18% 82%, transparent 82%);
  opacity: 0.9;
}

.drone::before,
.drone::after {
  position: absolute;
  top: 13px;
  width: 74px;
  height: 12px;
  border-radius: 999px;
  background: rgba(90, 67, 232, 0.24);
  content: "";
}

.drone::before {
  left: -42px;
}

.drone::after {
  right: -42px;
}

.box-mascot {
  position: absolute;
  left: 120px;
  bottom: 44px;
  width: 210px;
  height: 182px;
  border-radius: 22px;
  background: linear-gradient(145deg, #d8aa72, #f1c48d);
  box-shadow: 0 32px 60px rgba(78, 63, 114, 0.18);
}

.box-mascot::before {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 44px;
  border-radius: 22px 22px 0 0;
  background: rgba(255, 255, 255, 0.16);
  content: "";
}

.box-eye {
  position: absolute;
  top: 74px;
  width: 18px;
  height: 28px;
  border-radius: 999px;
  background: #111a2d;
}

.box-eye-left {
  left: 62px;
}

.box-eye-right {
  right: 62px;
}

.box-smile {
  position: absolute;
  left: 50%;
  top: 116px;
  width: 46px;
  height: 24px;
  border-radius: 0 0 999px 999px;
  background: #111a2d;
  transform: translateX(-50%);
}

.box-smile::after {
  position: absolute;
  left: 12px;
  bottom: 0;
  width: 24px;
  height: 10px;
  border-radius: 999px 999px 0 0;
  background: #e45e78;
  content: "";
}

.mascot-cap {
  position: absolute;
  left: 92px;
  bottom: 212px;
  width: 154px;
  height: 46px;
  border-radius: 50% 50% 8px 8px;
  background: linear-gradient(145deg, #5a43e8, #7564f0);
  transform: rotate(-2deg);
}

.mascot-cap::after {
  position: absolute;
  right: -50px;
  bottom: -6px;
  width: 72px;
  height: 18px;
  border-radius: 999px;
  background: #4d3cd0;
  content: "";
}

.feature-strip {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(134, 146, 166, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 18px 40px rgba(57, 67, 89, 0.08);
}

.feature-strip span {
  display: grid;
  min-height: 54px;
  place-items: center;
  color: #111a2d;
  font-weight: 700;
}

.access-panel {
  position: relative;
  width: min(590px, 100%);
  min-height: 680px;
  padding: 78px 64px 56px;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(134, 146, 166, 0.18);
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(57, 67, 89, 0.14);
  backdrop-filter: blur(14px);
}

.access-illustration {
  position: relative;
  width: 138px;
  height: 138px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(240, 210, 222, 0.72), rgba(244, 230, 238, 0.3));
}

.access-illustration::before,
.access-illustration::after {
  position: absolute;
  top: 72px;
  width: 24px;
  height: 6px;
  border-radius: 999px;
  background: #e45e78;
  content: "";
}

.access-illustration::before {
  left: -14px;
  transform: rotate(22deg);
}

.access-illustration::after {
  right: -14px;
  transform: rotate(-22deg);
}

.lock-shackle {
  position: absolute;
  left: 42px;
  top: 28px;
  width: 54px;
  height: 56px;
  border: 9px solid #a8b4ca;
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.72);
}

.lock-body {
  position: absolute;
  left: 28px;
  top: 68px;
  width: 82px;
  height: 64px;
  border: 3px solid #a8b4ca;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(224, 230, 241, 0.86));
  box-shadow: 0 18px 34px rgba(57, 67, 89, 0.16), inset -12px -12px 22px rgba(191, 202, 222, 0.24);
}

.lock-keyhole {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #142033;
  transform: translateX(-50%);
}

.lock-keyhole::after {
  position: absolute;
  left: 6px;
  top: 14px;
  width: 8px;
  height: 20px;
  border-radius: 0 0 4px 4px;
  background: #142033;
  content: "";
}

.access-kicker {
  margin-bottom: 8px;
  color: #142033;
  font-size: 31px;
  font-weight: 800;
  line-height: 1.15;
}

.access-text {
  max-width: 520px;
  margin: 20px auto 28px;
  color: #68728a;
  font-size: 20px;
  line-height: 1.55;
}

.ip-box {
  display: grid;
  width: min(360px, 100%);
  gap: 12px;
  margin: 0 auto;
  padding: 20px 22px;
  background: rgba(248, 250, 255, 0.86);
  border: 1px solid rgba(166, 178, 198, 0.24);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ip-box span {
  color: #1c2940;
  font-size: 18px;
  font-weight: 700;
}

.ip-box strong {
  display: inline-flex;
  justify-self: center;
  max-width: 100%;
  padding: 10px 18px;
  overflow-wrap: anywhere;
  border: 2px dashed rgba(228, 94, 120, 0.34);
  border-radius: 8px;
  color: #e45e78;
  background: rgba(255, 255, 255, 0.62);
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}

.access-note {
  max-width: 460px;
  margin: 28px auto 0;
  color: #68728a;
  font-size: 16px;
  line-height: 1.5;
}

.cat {
  position: absolute;
  right: 70px;
  bottom: 30px;
  width: 178px;
  height: 178px;
  pointer-events: none;
}

.cat-face {
  position: absolute;
  left: 34px;
  top: 18px;
  z-index: 3;
  width: 108px;
  height: 92px;
  border: 3px solid rgba(103, 113, 134, 0.42);
  border-radius: 48% 48% 44% 44%;
  background:
    radial-gradient(circle at 38% 18%, rgba(255, 255, 255, 0.9) 0 10%, transparent 11%),
    linear-gradient(145deg, #d4d9e4, #f2f4f9 58%, #c7cedd);
  box-shadow: 0 16px 34px rgba(57, 67, 89, 0.16);
}

.cat-ear {
  position: absolute;
  top: 2px;
  z-index: 2;
  width: 38px;
  height: 42px;
  border: 3px solid rgba(103, 113, 134, 0.42);
  background: linear-gradient(145deg, #d3d8e4, #eef1f7);
  transform: rotate(45deg);
}

.cat-ear::after {
  position: absolute;
  inset: 10px 8px 8px 10px;
  border-radius: 4px;
  background: rgba(228, 94, 120, 0.38);
  content: "";
}

.cat-ear-left {
  left: 34px;
  border-radius: 10px 5px 8px 5px;
}

.cat-ear-right {
  right: 34px;
  border-radius: 5px 10px 5px 8px;
}

.cat-eye {
  position: absolute;
  top: 38px;
  width: 16px;
  height: 18px;
  border-radius: 999px;
  background: #142033;
}

.cat-eye::after {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #ffffff;
  content: "";
}

.cat-eye-left {
  left: 30px;
}

.cat-eye-right {
  right: 30px;
}

.cat-nose {
  position: absolute;
  left: 50%;
  top: 58px;
  width: 12px;
  height: 9px;
  border-radius: 50% 50% 60% 60%;
  background: #e45e78;
  transform: translateX(-50%);
}

.cat-mouth {
  position: absolute;
  left: 50%;
  top: 68px;
  width: 28px;
  height: 12px;
  border-bottom: 2px solid rgba(20, 32, 51, 0.5);
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

.cat-whiskers {
  position: absolute;
  top: 62px;
  width: 30px;
  height: 18px;
}

.cat-whiskers::before,
.cat-whiskers::after {
  position: absolute;
  left: 0;
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: rgba(103, 113, 134, 0.56);
  content: "";
}

.cat-whiskers::before {
  top: 2px;
  transform: rotate(9deg);
}

.cat-whiskers::after {
  bottom: 3px;
  transform: rotate(-9deg);
}

.cat-whiskers-left {
  left: 0;
}

.cat-whiskers-right {
  right: 0;
  transform: scaleX(-1);
}

.cat-body {
  position: absolute;
  left: 50px;
  bottom: 12px;
  z-index: 1;
  width: 76px;
  height: 72px;
  border-radius: 48% 48% 20% 20%;
  background: linear-gradient(145deg, #c8cedb, #edf0f6);
}

.cat-laptop {
  position: absolute;
  left: 24px;
  bottom: 0;
  z-index: 4;
  width: 132px;
  height: 58px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(145deg, #303850, #596078);
  box-shadow: 0 14px 24px rgba(57, 67, 89, 0.18);
}

.cat-laptop::after {
  position: absolute;
  left: 50%;
  top: 21px;
  width: 20px;
  height: 14px;
  border-radius: 999px 999px 8px 8px;
  background: rgba(255, 255, 255, 0.14);
  content: "";
  transform: translateX(-50%);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.tile {
  min-height: 190px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tile-number {
  display: block;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.tile h2 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.tile p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 1120px);
    padding: 18px 0;
  }

  .topbar {
    flex-direction: column;
    padding: 20px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .access-panel {
    min-height: auto;
    padding: 28px 20px;
  }

  .cat {
    right: -34px;
    bottom: -44px;
    opacity: 0.42;
    transform: scale(0.72);
    transform-origin: right bottom;
  }

  .ip-box strong {
    font-size: 22px;
  }
}

@media (max-width: 1100px) {
  .access-shell {
    grid-template-columns: 1fr;
  }

  .access-stage {
    display: none;
  }
}

.access-page {
  background: #f5f7ff;
}

.access-shell {
  position: relative;
  display: block;
  width: 100%;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
}

.access-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.access-overlay {
  position: absolute;
  top: 45%;
  left: 37%;
  display: flex;
  width: min(460px, 29vw);
  min-width: 380px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 2.6vw, 38px);
  text-align: center;
  border: 0;
  border-radius: 22px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transform: translate(-50%, -50%);
}

.access-overlay .access-kicker {
  margin-bottom: 9px;
  color: #5b44e8;
  font-size: 16px;
  font-weight: 700;
}

.access-overlay h1 {
  max-width: none;
  margin-bottom: 12px;
  color: #10182b;
  font-size: clamp(28px, 2.3vw, 36px);
  font-weight: 750;
  line-height: 1.08;
}

.access-overlay .access-text {
  max-width: 390px;
  margin: 0 auto 20px;
  color: #65708a;
  font-size: 15px;
  line-height: 1.5;
}

.access-overlay .ip-box {
  width: min(360px, 100%);
  margin: 10px auto 0;
  padding: 20px;
  border-color: rgba(91, 68, 232, 0.18);
  background: rgba(250, 251, 255, 0.92);
}

.access-overlay .ip-box strong {
  color: #5b44e8;
  border-color: rgba(91, 68, 232, 0.3);
}

.access-overlay .access-note {
  max-width: 390px;
  margin-top: 22px;
  color: #65708a;
}

.login-overlay {
  gap: 0;
}

.login-form {
  display: grid;
  gap: 14px;
  width: min(340px, 100%);
  margin: 22px auto 0;
}

.field {
  display: grid;
  gap: 6px;
  text-align: left;
}

.field span {
  color: #11182b;
  font-size: 13px;
  font-weight: 700;
}

.field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(181, 188, 210, 0.74);
  border-radius: 8px;
  outline: 0;
  background: rgba(255, 255, 255, 0.76);
  color: #11182b;
  font: inherit;
  font-size: 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.field input:focus {
  border-color: rgba(91, 68, 232, 0.72);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 0 4px rgba(91, 68, 232, 0.12);
}

.field.is-error input {
  border-color: rgba(228, 94, 120, 0.72);
  background: rgba(255, 248, 250, 0.9);
  box-shadow: 0 0 0 4px rgba(228, 94, 120, 0.1);
}

.field input::placeholder {
  color: #8791aa;
}

.form-message {
  display: none;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.form-message.is-error,
.form-message.is-success {
  display: flex;
}

.form-message.is-error {
  border: 1px solid rgba(228, 94, 120, 0.22);
  background: rgba(255, 245, 248, 0.88);
  color: #b93655;
}

.form-message.is-success {
  border: 1px solid rgba(54, 181, 122, 0.22);
  background: rgba(239, 252, 246, 0.88);
  color: #16785f;
}

.login-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  margin-top: 4px;
  padding: 0 52px;
  border: 1px solid rgba(207, 211, 230, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: #192135;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-shadow: none;
  box-shadow:
    0 14px 30px rgba(67, 76, 112, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.login-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  display: block;
  width: 24px;
  height: 16px;
  transform: translateY(-50%);
}

.login-arrow::before {
  position: absolute;
  top: 7px;
  left: 0;
  width: 23px;
  height: 2px;
  border-radius: 999px;
  background: #5b44e8;
  content: "";
}

.login-arrow::after {
  position: absolute;
  top: 3px;
  right: 0;
  width: 10px;
  height: 10px;
  border-top: 2px solid #5b44e8;
  border-right: 2px solid #5b44e8;
  content: "";
  transform: rotate(45deg);
}

.login-button:hover {
  border-color: rgba(111, 87, 238, 0.38);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 18px 38px rgba(67, 76, 112, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.login-button:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 4px rgba(111, 87, 238, 0.18),
    0 18px 38px rgba(67, 76, 112, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.login-button:active {
  transform: translateY(1px);
  box-shadow:
    0 9px 18px rgba(67, 76, 112, 0.12),
    inset 0 2px 5px rgba(31, 22, 99, 0.08);
}

.error-page {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background: #f5f4ff;
}

.error-shell {
  width: 100vw;
  height: 100vh;
}

.error-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.app-page {
  min-height: 100vh;
  background: #f5f7ff;
  color: #11182b;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 74px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(212, 217, 235, 0.78);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.app-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #11182b;
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.app-logo strong {
  color: #5b44e8;
}

.app-logo-mark {
  width: 32px;
  height: 32px;
  border: 4px solid #5b44e8;
  border-radius: 8px;
  transform: rotate(30deg);
}

.app-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
  overflow-x: auto;
}

.app-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  color: #65708a;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.app-tabs a.is-active,
.app-tabs a:hover {
  background: rgba(91, 68, 232, 0.1);
  color: #5b44e8;
}

.logout-button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(207, 211, 230, 0.92);
  border-radius: 8px;
  background: #ffffff;
  color: #11182b;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.app-main {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 42px;
}

.page-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.page-title p {
  margin-bottom: 6px;
  color: #5b44e8;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-title h1 {
  margin: 0;
  color: #11182b;
  font-size: 34px;
  line-height: 1.1;
}

.app-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(239, 252, 246, 0.92);
  color: #16785f;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card,
.panel {
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 36px rgba(67, 76, 112, 0.08);
}

.metric-card {
  display: grid;
  gap: 9px;
  min-height: 136px;
  padding: 18px;
}

.metric-card span {
  color: #65708a;
  font-size: 14px;
  font-weight: 700;
}

.metric-card strong {
  color: #11182b;
  font-size: 28px;
  line-height: 1.1;
}

.metric-card small {
  color: #5b44e8;
  font-size: 13px;
  font-weight: 700;
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 14px;
  margin-top: 14px;
}

.panel {
  padding: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-head h2 {
  margin: 0;
  font-size: 19px;
}

.panel-head span {
  color: #65708a;
  font-size: 13px;
  font-weight: 700;
}

.chart-line {
  position: relative;
  height: 238px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(rgba(91, 68, 232, 0.08) 1px, transparent 1px) 0 0 / 100% 42px,
    linear-gradient(90deg, rgba(91, 68, 232, 0.08) 1px, transparent 1px) 0 0 / 64px 100%,
    linear-gradient(180deg, rgba(91, 68, 232, 0.08), rgba(91, 68, 232, 0.02));
}

.chart-line span {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 55%;
  height: 78px;
  border-top: 4px solid #5b44e8;
  border-radius: 45% 55% 0 0;
  transform: skewY(-8deg);
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.orders-table th,
.orders-table td {
  padding: 13px 0;
  border-bottom: 1px solid rgba(212, 217, 235, 0.72);
  text-align: left;
}

.orders-table th {
  color: #65708a;
  font-size: 12px;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge.is-new {
  background: rgba(91, 68, 232, 0.1);
  color: #5b44e8;
}

.badge.is-work {
  background: rgba(245, 171, 53, 0.14);
  color: #a8640c;
}

.badge.is-done {
  background: rgba(54, 181, 122, 0.14);
  color: #16785f;
}

@media (max-width: 900px) {
  .access-bg {
    opacity: 0.42;
    object-fit: cover;
    object-position: 62% center;
  }

  .access-overlay {
    left: 50%;
    min-width: 0;
    width: min(520px, calc(100vw - 32px));
    padding: 28px 20px;
    border-radius: 16px;
    transform: translate(-50%, -50%);
  }

  .app-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .app-tabs {
    width: 100%;
  }

  .logout-button {
    position: absolute;
    right: 18px;
    top: 14px;
  }

  .metric-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .page-title {
    flex-direction: column;
  }
}

.settings-page {
  background: #f7f8ff;
}

.settings-layout {
  display: grid;
  grid-template-columns: 220px minmax(560px, 1fr) 360px;
  min-height: calc(100vh - 74px);
}

.settings-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 14px;
  border-right: 1px solid rgba(212, 217, 235, 0.78);
  background: rgba(255, 255, 255, 0.72);
}

.settings-sidebar h2 {
  margin: 0 12px;
  font-size: 18px;
}

.settings-menu {
  display: grid;
  gap: 6px;
}

.settings-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  color: #5f6985;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.settings-menu a.is-active,
.settings-menu a:hover {
  background: rgba(91, 68, 232, 0.1);
  color: #5b44e8;
}

.support-box {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: #ffffff;
}

.support-box p {
  color: #65708a;
  font-size: 13px;
  line-height: 1.45;
}

.support-box button,
.filter-button,
.icon-action,
.secondary-action {
  border: 1px solid rgba(207, 211, 230, 0.92);
  border-radius: 8px;
  background: #ffffff;
  color: #11182b;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.support-box button {
  width: 100%;
  min-height: 38px;
}

.settings-content {
  min-width: 0;
  padding: 28px 24px 34px;
}

.settings-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.settings-title h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

.settings-title p {
  margin: 0;
  color: #65708a;
}

.primary-action {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(91, 68, 232, 0.72);
  border-radius: 8px;
  background: linear-gradient(135deg, #6d55ee, #5138db);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(91, 68, 232, 0.18);
}

.seller-panel,
.edit-drawer {
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(67, 76, 112, 0.08);
}

.table-toolbar {
  display: flex;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid rgba(212, 217, 235, 0.78);
}

.search-box {
  position: relative;
  flex: 1;
}

.search-box span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.search-box input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(207, 211, 230, 0.92);
  border-radius: 8px;
  outline: 0;
  font: inherit;
}

.filter-button {
  min-width: 104px;
}

.settings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.settings-table th,
.settings-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(212, 217, 235, 0.72);
  text-align: left;
  vertical-align: middle;
}

.settings-table th {
  color: #65708a;
  font-size: 12px;
  text-transform: uppercase;
}

.settings-table tr.is-selected {
  background: rgba(91, 68, 232, 0.035);
}

.seller-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.seller-cell strong,
.seller-cell small {
  display: block;
}

.seller-cell small {
  margin-top: 3px;
  color: #65708a;
  font-size: 12px;
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #5b44e8;
  color: #ffffff;
  font-weight: 800;
}

.avatar.purple { background: #7a55e8; }
.avatar.blue { background: #1169ef; }
.avatar.dark { background: #11182b; }

.market {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-right: 5px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.market.wb { background: rgba(208, 89, 207, 0.16); color: #a431a3; }
.market.ozon { background: rgba(17, 105, 239, 0.13); color: #1169ef; }
.market.ym { background: rgba(245, 171, 53, 0.18); color: #a8640c; }

.icon-action {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.edit-drawer {
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  box-shadow: none;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 22px 12px;
}

.drawer-head h2 {
  margin: 0;
  font-size: 19px;
}

.drawer-head button {
  border: 0;
  background: transparent;
  color: #65708a;
  cursor: pointer;
  font: inherit;
}

.drawer-tabs {
  display: flex;
  gap: 16px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(212, 217, 235, 0.78);
}

.drawer-tabs a {
  padding: 14px 0;
  border-bottom: 2px solid transparent;
  color: #65708a;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.drawer-tabs a.is-active {
  border-color: #5b44e8;
  color: #5b44e8;
}

.drawer-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.drawer-form label {
  display: grid;
  gap: 8px;
}

.drawer-form label span {
  color: #65708a;
  font-size: 13px;
  font-weight: 800;
}

.drawer-form input,
.drawer-form select,
.drawer-form textarea {
  width: 100%;
  border: 1px solid rgba(207, 211, 230, 0.92);
  border-radius: 8px;
  outline: 0;
  background: #ffffff;
  color: #11182b;
  font: inherit;
}

.drawer-form input,
.drawer-form select {
  height: 44px;
  padding: 0 12px;
}

.drawer-form textarea {
  min-height: 84px;
  padding: 12px;
  resize: vertical;
}

.toggle-row {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 10px !important;
}

.toggle-row input {
  width: 38px;
  height: 22px;
  accent-color: #5b44e8;
}

.info-box {
  padding: 16px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: #fafbff;
}

.info-box h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.info-box dl {
  display: grid;
  gap: 11px;
  margin: 0;
}

.info-box div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.info-box dt {
  color: #65708a;
  font-size: 12px;
}

.info-box dd {
  margin: 0;
  color: #11182b;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.secondary-action {
  min-height: 44px;
}

.admin-root-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 16%, rgba(91, 68, 232, 0.14), transparent 26%),
    radial-gradient(circle at 84% 10%, rgba(54, 181, 122, 0.12), transparent 24%),
    #f7f8ff;
  color: #11182b;
}

.admin-login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(91, 68, 232, 0.18), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(54, 181, 122, 0.13), transparent 26%),
    linear-gradient(135deg, #f8f9ff, #eef1ff);
  color: #11182b;
}

.admin-login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}

.admin-login-card {
  width: min(520px, 100%);
  padding: 34px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 28px 78px rgba(67, 76, 112, 0.14);
  backdrop-filter: blur(14px);
}

.admin-login-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}

.admin-login-title {
  margin-bottom: 24px;
}

.admin-login-title p {
  margin: 0 0 10px;
  color: #5b44e8;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-login-title h1 {
  margin: 0 0 10px;
  font-size: 42px;
  line-height: 1.05;
}

.admin-login-title span {
  color: #65708a;
  font-size: 16px;
  line-height: 1.5;
}

.admin-login-form {
  width: 100%;
  margin-top: 0;
}

.admin-root-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(212, 217, 235, 0.78);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
}

.root-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(91, 68, 232, 0.1);
  color: #5b44e8;
  font-size: 13px;
  font-weight: 800;
}

.admin-root-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0;
}

.root-title {
  margin-bottom: 22px;
}

.root-title p {
  margin: 0 0 10px;
  color: #5b44e8;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.root-title h1 {
  margin: 0 0 12px;
  color: #11182b;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
}

.root-title span {
  color: #65708a;
  font-size: 18px;
}

.root-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.root-card {
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(212, 217, 235, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 40px rgba(67, 76, 112, 0.08);
}

.root-card span {
  color: #5b44e8;
  font-size: 13px;
  font-weight: 800;
}

.root-card h2 {
  margin: 28px 0 10px;
  font-size: 22px;
}

.root-card p {
  margin: 0;
  color: #65708a;
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-sidebar,
  .edit-drawer {
    border-right: 0;
  }

  .settings-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-title,
  .table-toolbar {
    flex-direction: column;
  }

  .settings-table {
    min-width: 820px;
  }

  .seller-panel {
    overflow-x: auto;
  }

  .root-grid {
    grid-template-columns: 1fr;
  }

  .admin-root-header {
    padding: 0 18px;
  }
}
