:root {
  --bg: #f4f5f3;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.76);
  --glass-soft: rgba(255, 255, 255, 0.34);
  --panel: rgba(255, 255, 255, 0.62);
  --panel-soft: rgba(230, 240, 239, 0.54);
  --ink: #111111;
  --muted: #696f75;
  --line: rgba(255, 255, 255, 0.72);
  --line-dark: rgba(17, 17, 17, 0.13);
  --brand: #ff5c00;
  --brand-dark: #d94800;
  --accent: #111111;
  --cobalt: #3a3d42;
  --warn: #b94f00;
  --danger: #b42318;
  --success: #0f7a45;
  --focus: #ff5c00;
  --shadow: 0 18px 50px rgba(17, 17, 17, 0.16);
  --shadow-soft: 0 8px 28px rgba(17, 17, 17, 0.1);
  --blur: blur(22px) saturate(150%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(246, 246, 244, 0.72) 38%, rgba(255, 240, 229, 0.58) 100%),
    linear-gradient(90deg, rgba(17, 17, 17, 0.06), rgba(255, 92, 0, 0.11), rgba(255, 255, 255, 0.08)),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74), 0 5px 16px rgba(17, 17, 17, 0.08);
  color: var(--ink);
  min-height: 36px;
  padding: 7px 11px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

button:hover {
  border-color: rgba(255, 92, 0, 0.42);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 9px 24px rgba(17, 17, 17, 0.12);
  transform: translateY(-1px);
}

button.primary {
  background: linear-gradient(135deg, #ff5c00, #111111);
  border-color: rgba(255, 255, 255, 0.54);
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 12px 28px rgba(255, 92, 0, 0.24);
}

button.primary:hover {
  background: linear-gradient(135deg, var(--brand-dark), #000000);
}

button.danger {
  color: var(--danger);
  background: rgba(255, 245, 244, 0.58);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64), inset 0 -1px 0 rgba(17, 27, 37, 0.04);
  color: var(--ink);
  padding: 9px 10px;
  outline: 1px solid rgba(17, 17, 17, 0.05);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 92, 0, 0.5);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 0 0 4px rgba(255, 92, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

textarea {
  min-height: 108px;
  resize: vertical;
}

label {
  display: grid;
  gap: 6px;
  color: #5e6368;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  padding: 0 14px 14px 0;
  gap: 14px;
}

.sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  height: 100vh;
  max-height: 100vh;
  background:
    linear-gradient(145deg, rgba(0, 0, 0, 0.9), rgba(32, 34, 36, 0.82)),
    rgba(17, 17, 17, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0 8px 8px 0;
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(145%);
  color: white;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}

.brand {
  display: grid;
  gap: 4px;
  padding: 8px 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand img {
  width: min(178px, 100%);
  height: 42px;
  object-fit: contain;
  object-position: left center;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.2));
}

.brand span {
  color: #d6d6d6;
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 7px;
}

.nav button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  color: #ffffff;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
}

.nav button.active,
.nav button:hover {
  background: rgba(255, 92, 0, 0.16);
  border-color: rgba(255, 92, 0, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 22px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}

.icon {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  font-size: 12px;
  color: #ffffff;
  background: rgba(255, 92, 0, 0.16);
}

.user-box {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(18px);
  display: grid;
  gap: 8px;
}

.user-box small {
  color: #d6d6d6;
}

.main {
  min-width: 0;
  padding: 8px 8px 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-soft);
}

.topbar h1 {
  font-size: 25px;
  margin: 0;
  letter-spacing: 0;
}

.topbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.grid {
  display: grid;
  gap: 12px;
}

.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));
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(128px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.stat {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38)),
    rgba(255, 255, 255, 0.44);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  min-height: 92px;
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 10px;
  font-size: 27px;
  line-height: 1;
}

.panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.36)),
    rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.panel h2 {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.2;
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: var(--blur);
}

.segmented button {
  min-height: 30px;
  border-color: transparent;
  background: transparent;
}

.segmented button.active {
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--line);
}

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: transparent;
}

th,
td {
  padding: 10px 11px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.38);
  font-size: 12px;
  text-transform: uppercase;
}

td {
  background: rgba(255, 255, 255, 0.18);
}

tbody tr:hover td {
  background: rgba(255, 255, 255, 0.4);
}

tr:last-child td {
  border-bottom: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 235, 222, 0.8);
  border: 1px solid rgba(255, 92, 0, 0.18);
  color: #1c1c1c;
  white-space: nowrap;
}

.pill.warn {
  background: rgba(255, 245, 220, 0.78);
  color: var(--warn);
}

.pill.danger {
  background: rgba(254, 226, 226, 0.78);
  color: var(--danger);
}

.pill.success {
  background: rgba(220, 252, 231, 0.78);
  color: var(--success);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.chart {
  display: grid;
  gap: 8px;
}

.bar {
  display: grid;
  grid-template-columns: 130px 1fr 54px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.54);
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff5c00, #111111);
}

.preview {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 16px;
  min-height: 180px;
  background:
    linear-gradient(90deg, rgba(255, 92, 0, 0.07) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(17, 17, 17, 0.05) 0 1px, transparent 1px 100%),
    rgba(255, 255, 255, 0.42);
  background-size: 28px 28px;
  backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 34px;
  padding: 46px 24px 38px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 87% 29%, rgba(255, 92, 0, 0.98) 0 13%, rgba(255, 92, 0, 0.72) 22%, rgba(255, 92, 0, 0.23) 42%, transparent 58%),
    radial-gradient(circle at 68% 53%, rgba(255, 112, 18, 0.78), rgba(96, 30, 0, 0.52) 31%, transparent 51%),
    radial-gradient(circle at 20% 85%, rgba(255, 92, 0, 0.4), rgba(12, 12, 12, 0.88) 33%, transparent 58%),
    linear-gradient(100deg, #111111 0%, #181411 35%, #3a1304 58%, #ff5c00 100%);
}

.login::before,
.login::after {
  content: "";
  position: absolute;
  inset: auto -10% -22% -10%;
  height: 58%;
  pointer-events: none;
  opacity: 0.92;
  background:
    repeating-radial-gradient(ellipse at 18% 100%, rgba(255, 111, 18, 0.58) 0 1px, transparent 1px 13px),
    radial-gradient(ellipse at 18% 100%, transparent 0 35%, rgba(255, 92, 0, 0.54) 36%, transparent 37% 39%, rgba(255, 92, 0, 0.4) 40%, transparent 41% 44%, rgba(255, 92, 0, 0.28) 45%, transparent 46%),
    linear-gradient(13deg, transparent 0 40%, rgba(255, 92, 0, 0.94) 49%, transparent 50% 100%);
  transform: skewY(-8deg);
  filter: drop-shadow(0 -2px 18px rgba(255, 92, 0, 0.42));
}

.login::after {
  inset: auto -16% -13% 42%;
  height: 64%;
  opacity: 0.82;
  transform: skewY(-18deg) rotate(-4deg);
  background:
    repeating-radial-gradient(ellipse at 78% 100%, rgba(255, 185, 85, 0.56) 0 1px, transparent 1px 13px),
    radial-gradient(ellipse at 76% 100%, transparent 0 38%, rgba(255, 176, 74, 0.6) 39%, transparent 40% 42%, rgba(255, 120, 20, 0.54) 43%, transparent 44% 48%, rgba(255, 92, 0, 0.42) 49%, transparent 50%),
    linear-gradient(156deg, transparent 0 36%, rgba(255, 102, 0, 0.88) 47%, transparent 48% 100%);
}

.login-panel,
.login-trust {
  position: relative;
  z-index: 1;
}

.login-panel {
  width: min(600px, calc(100vw - 34px));
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9)),
    rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  padding: 52px 68px 28px;
  display: grid;
  gap: 18px;
  backdrop-filter: blur(26px) saturate(118%);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.login-panel h1 {
  margin: 0;
  color: #050505;
  font-size: 48px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.login-panel h1 span {
  color: var(--brand);
}

.login-logo {
  width: min(388px, 92%);
  height: auto;
  justify-self: center;
  margin: 6px 0 4px;
  filter: invert(1) hue-rotate(180deg) saturate(1.8) contrast(1.12);
}

.login-mark {
  width: 44px;
  height: 5px;
  margin: 2px 0 10px;
  border-radius: 999px;
  background: var(--brand);
}

.login-field {
  gap: 9px;
  color: #050505;
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
}

.input-shell {
  min-height: 56px;
  min-width: 0;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(15, 17, 21, 0.17);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 0 12px;
}

.input-shell:focus-within {
  border-color: rgba(255, 92, 0, 0.56);
  box-shadow: 0 0 0 4px rgba(255, 92, 0, 0.14), inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.input-shell input {
  min-width: 0;
  min-height: 54px;
  padding: 0;
  border: 0;
  outline: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #111111;
  font-size: 18px;
  font-weight: 500;
}

.input-shell input::placeholder {
  color: #8c8f95;
}

.field-icon,
.password-toggle {
  display: inline-grid;
  place-items: center;
}

.field-icon svg,
.password-toggle svg,
.login-trust svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.field-icon {
  color: #121212;
}

.password-toggle {
  min-height: 34px;
  width: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #4e535a;
}

.password-toggle:hover {
  transform: none;
  background: transparent;
  box-shadow: none;
  color: var(--brand);
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 4px 0 10px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #5a5d62;
  font-size: 16px;
  font-weight: 500;
  text-transform: none;
}

.remember input {
  appearance: none;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--brand);
  box-shadow: none;
  display: inline-grid;
  place-items: center;
}

.remember input::before {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translate(1px, -1px);
}

.remember input:not(:checked) {
  background: white;
  border: 1px solid rgba(15, 17, 21, 0.18);
}

.remember input:not(:checked)::before {
  opacity: 0;
}

.link-button {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--brand);
  font-size: 16px;
}

.link-button:hover {
  transform: none;
  background: transparent;
  box-shadow: none;
  color: var(--brand-dark);
}

button.login-submit {
  width: 100%;
  min-height: 64px;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ff670a, #ff4e00);
  box-shadow: 0 16px 28px rgba(255, 82, 0, 0.24);
  font-size: 20px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

button.login-submit:hover {
  background: linear-gradient(180deg, #ff741d, #ef4500);
}

.signup-copy {
  margin: 8px 0 0;
  text-align: center;
  color: #7b7f86;
  font-size: 16px;
}

.signup-copy span {
  color: var(--brand);
}

.login-trust {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: white;
  font-size: 21px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.login-trust span {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  color: var(--brand);
}

.empty {
  padding: 22px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 360px;
  padding: 12px 14px;
  background: rgba(17, 17, 17, 0.88);
  color: white;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(20px) saturate(150%);
  z-index: 20;
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
    padding: 0 10px 10px;
  }

  .sidebar {
    position: sticky;
    top: 0;
    height: auto;
    min-height: auto;
    max-height: none;
    border-radius: 0 0 8px 8px;
    z-index: 10;
  }

  .nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav button {
    justify-content: center;
  }

  .nav button span:last-child,
  .brand span,
  .user-box {
    display: none;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .main {
    padding: 0 0 16px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .login {
    padding: 24px 14px;
    gap: 22px;
    justify-items: center;
  }

  .login-panel {
    width: calc(100vw - 28px);
    max-width: 520px;
    justify-self: center;
    border-radius: 20px;
    padding: 32px 24px 24px;
    gap: 14px;
    overflow: hidden;
  }

  .login-logo {
    width: min(260px, 82%);
  }

  .login-panel h1 {
    font-size: 32px;
  }

  .login-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .login-trust {
    justify-self: center;
    max-width: 100%;
    font-size: 15px;
    text-align: center;
    flex-wrap: wrap;
  }
}
