:root {
  color-scheme: dark;
  --bg: #090b10;
  --bg-2: #0f131c;
  --panel: #121722;
  --panel-2: #171d2a;
  --panel-3: #1c2432;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef3ff;
  --muted: #95a0b5;
  --muted-2: #667085;
  --teal: #28d7bd;
  --cyan: #55c7ff;
  --amber: #ffba4a;
  --red: #ff5a75;
  --green: #50df85;
  --violet: #a78bfa;
  --shadow: 0 18px 70px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --sidebar: 276px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

button {
  cursor: pointer;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  overflow: hidden;
}

.login-art {
  position: relative;
  min-height: 100vh;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
}

.login-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(9, 11, 16, 0.74) url("./depths.png") center / min(78vh, 760px) no-repeat;
  opacity: 0.72;
  z-index: -2;
}

.login-art::after {
  content: none;
}

.brand-row,
.app-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(40, 215, 189, 0.35);
  border-radius: 8px;
  background: #111821 url("./depths.png") center / 86% no-repeat;
  box-shadow: none;
  flex: 0 0 auto;
}

.brand-title {
  display: grid;
  gap: 2px;
}

.brand-title strong {
  font-size: 15px;
  letter-spacing: 0;
}

.brand-title span {
  color: var(--muted);
  font-size: 12px;
}

.login-copy {
  max-width: 680px;
}

.eyebrow {
  color: var(--teal);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.95;
  letter-spacing: 0;
}

.login-copy p {
  margin: 0;
  max-width: 560px;
  color: #c2cad9;
  font-size: 17px;
  line-height: 1.7;
}

.login-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
}

.login-stat {
  border: 1px solid var(--line);
  background: rgba(12, 17, 25, 0.66);
  border-radius: var(--radius);
  padding: 16px;
  backdrop-filter: blur(14px);
}

.login-stat b {
  display: block;
  font-size: 22px;
}

.login-stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.login-panel-wrap {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 34px;
  background: rgba(7, 10, 15, 0.58);
  border-left: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.login-panel {
  width: min(100%, 436px);
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  border-radius: 8px;
  padding: 28px;
}

.panel-top {
  margin-bottom: 24px;
}

.panel-top h2 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: 0;
}

.panel-top p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.field-stack {
  display: grid;
  gap: 14px;
}

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

.field label,
.form-label {
  font-size: 12px;
  font-weight: 700;
  color: #c8d0df;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 10, 15, 0.74);
  color: var(--text);
  padding: 0 13px;
  outline: none;
}

.textarea {
  min-height: 98px;
  padding: 12px 13px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(40, 215, 189, 0.72);
  box-shadow: 0 0 0 3px rgba(40, 215, 189, 0.12);
}

.login-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
  color: var(--text);
  background: var(--panel-3);
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.btn-primary {
  background: var(--teal);
  color: #04100f;
  box-shadow: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line);
}

.btn-danger {
  background: rgba(255, 90, 117, 0.13);
  color: #ffd6de;
  border-color: rgba(255, 90, 117, 0.26);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}

.auth-links {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-links button,
.text-link {
  border: 0;
  background: transparent;
  color: var(--teal);
  padding: 0;
  font-weight: 700;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  background: var(--bg);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: rgba(12, 16, 24, 0.94);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.role-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.role-card span {
  color: var(--muted);
  font-size: 12px;
}

.role-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.role-switch button,
.tab-btn {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 800;
}

.role-switch button.active,
.tab-btn.active {
  color: #05110f;
  background: var(--teal);
  border-color: var(--teal);
}

.nav-section {
  display: grid;
  gap: 6px;
}

.nav-label {
  margin: 10px 10px 4px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-item {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #aeb8ca;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  text-align: left;
  font-weight: 700;
}

.nav-item svg,
.btn svg,
.icon-btn svg,
.metric-icon svg,
.state-dot svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.065);
  border-color: var(--line);
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.user-chip {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--teal);
  color: #06110f;
  display: grid;
  place-items: center;
  font-weight: 900;
  flex: 0 0 auto;
}

.user-meta {
  min-width: 0;
}

.user-meta b,
.user-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-meta b {
  font-size: 13px;
}

.user-meta span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.main {
  min-width: 0;
}

.topbar {
  min-height: 74px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 16, 0.78);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.page-title {
  min-width: 0;
}

.page-title h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.page-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.content {
  padding: 28px;
  display: grid;
  gap: 22px;
}

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

.metric {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 16px;
  min-width: 0;
}

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

.metric-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(40, 215, 189, 0.1);
  color: var(--teal);
}

.metric strong {
  display: block;
  font-size: 28px;
  letter-spacing: 0;
}

.metric small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  background: rgba(18, 23, 34, 0.88);
  border-radius: 8px;
  min-width: 0;
  overflow: hidden;
}

.panel-header {
  min-height: 48px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-header h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0;
}

.panel-header span {
  color: var(--muted);
  font-size: 12px;
}

.panel-body {
  padding: 16px;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.data-table td {
  color: #dbe4f3;
  font-size: 13px;
}

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

.product-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.product-thumb {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #17202b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--teal);
  font-weight: 900;
  flex: 0 0 auto;
}

.product-cell b,
.product-cell span {
  display: block;
}

.product-cell b {
  color: var(--text);
  margin-bottom: 2px;
}

.product-cell span {
  color: var(--muted);
  font-size: 12px;
}

.badge,
.state-pill {
  min-height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
}

.badge {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line);
}

.badge.teal {
  color: #bff9ef;
  background: rgba(40, 215, 189, 0.11);
  border-color: rgba(40, 215, 189, 0.22);
}

.badge.amber {
  color: #ffe2a8;
  background: rgba(255, 186, 74, 0.12);
  border-color: rgba(255, 186, 74, 0.28);
}

.badge.red {
  color: #ffd5dc;
  background: rgba(255, 90, 117, 0.12);
  border-color: rgba(255, 90, 117, 0.28);
}

.badge.green {
  color: #cafbdd;
  background: rgba(80, 223, 133, 0.12);
  border-color: rgba(80, 223, 133, 0.28);
}

.state-pill.undetected {
  color: #cafbdd;
  background: rgba(80, 223, 133, 0.12);
  border-color: rgba(80, 223, 133, 0.3);
}

.state-pill.updating {
  color: #ffe2a8;
  background: rgba(255, 186, 74, 0.12);
  border-color: rgba(255, 186, 74, 0.28);
}

.state-pill.detected {
  color: #ffd5dc;
  background: rgba(255, 90, 117, 0.12);
  border-color: rgba(255, 90, 117, 0.28);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  flex: 0 0 auto;
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: #c9d2e2;
  background: rgba(255, 255, 255, 0.05);
  display: inline-grid;
  place-items: center;
}

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

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

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tab-btn {
  padding: 0 13px;
  flex: 0 0 auto;
}

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

.status-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  min-height: 102px;
  padding: 14px;
  text-align: left;
}

.status-card.active {
  border-color: rgba(40, 215, 189, 0.58);
  box-shadow: inset 0 0 0 1px rgba(40, 215, 189, 0.16);
}

.status-card b {
  display: block;
  margin: 12px 0 6px;
}

.status-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.activity-list {
  display: grid;
  gap: 12px;
}

.activity-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.activity-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(85, 199, 255, 0.1);
  color: var(--cyan);
}

.activity-item b,
.activity-item span {
  display: block;
}

.activity-item b {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 3px;
}

.activity-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.empty-state strong {
  display: block;
  font-size: 16px;
}

.empty-state span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

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

  .login-art {
    min-height: 460px;
  }

  .login-panel-wrap {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

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

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

@media (max-width: 840px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-label {
    grid-column: 1 / -1;
  }

  .topbar {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .content {
    padding: 18px;
  }

  .form-grid,
  .status-editor,
  .login-stats {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .login-art,
  .login-panel-wrap {
    padding: 20px;
  }

  .login-copy h1 {
    font-size: 40px;
  }

  .login-panel {
    padding: 20px;
  }

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

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

  .btn {
    width: 100%;
  }
}

.depths-login {
  min-height: 100dvh;
  height: 100dvh;
  background: #060a10;
  color: #f2f6ff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 24px;
  overflow: hidden;
}

.depths-login-inner {
  width: min(644px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.depths-login-brand {
  text-align: center;
  margin-bottom: 16px;
}

.depths-login-brand img {
  width: 132px;
  height: 106px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
}

.depths-login-brand h1 {
  margin: 0;
  color: #edf4ff;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.depths-login-brand p {
  margin: 7px 0 0;
  color: #8a94a6;
  font-size: 14px;
  line-height: 1.4;
}

.depths-login-card {
  width: 100%;
  padding: 28px 44px 24px;
  background: #0a0f15;
  border: 1px solid #1b2430;
  border-radius: 8px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.42);
}

.depths-card-header {
  text-align: center;
  margin-bottom: 22px;
}

.depths-card-header h2 {
  margin: 0;
  color: #f5f8ff;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
}

.depths-card-header span {
  display: block;
  margin-top: 7px;
  color: #8994a7;
  font-size: 14px;
}

.depths-field-stack {
  display: grid;
  gap: 14px;
}

.depths-field {
  display: grid;
  gap: 9px;
}

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

.depths-field input {
  width: 100%;
  height: 46px;
  border: 1px solid #222c3a;
  border-radius: 5px;
  background: #080c12;
  color: #f2f6ff;
  padding: 0 15px;
  outline: none;
}

.depths-field input::placeholder {
  color: #536073;
}

.depths-field input:focus {
  border-color: #1e62c8;
  box-shadow: 0 0 0 3px rgba(30, 98, 200, 0.18);
}

.depths-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 18px;
  color: #8f9aac;
  font-size: 13px;
}

.depths-login-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.depths-login-options input {
  width: 15px;
  height: 15px;
  accent-color: #174da4;
}

.depths-login-options button,
.depths-register button {
  border: 0;
  background: transparent;
  color: #6ca3ff;
  padding: 0;
  font-weight: 700;
}

.depths-primary,
.depths-skip {
  width: 100%;
  height: 48px;
  border-radius: 5px;
  font-weight: 800;
  letter-spacing: 0;
}

.depths-primary {
  border: 1px solid #1f65ce;
  background: #174da4;
  color: #ffffff;
}

.depths-skip {
  margin-top: 10px;
  border: 1px solid #242f3d;
  background: #101722;
  color: #cdd7e6;
}

.depths-register {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 7px;
  color: #8d98aa;
  font-size: 13px;
}

@media (max-width: 720px), (max-height: 720px) {
  .depths-login {
    padding: 12px;
  }

  .depths-login-inner {
    width: min(520px, 100%);
  }

  .depths-login-brand {
    margin-bottom: 10px;
  }

  .depths-login-brand img {
    width: 92px;
    height: 74px;
    margin-bottom: 8px;
  }

  .depths-login-brand h1 {
    font-size: 24px;
  }

  .depths-login-brand p {
    margin-top: 5px;
    font-size: 12px;
  }

  .depths-login-card {
    padding: 20px 20px 18px;
  }

  .depths-card-header {
    margin-bottom: 14px;
  }

  .depths-card-header h2 {
    font-size: 20px;
  }

  .depths-card-header span {
    margin-top: 5px;
    font-size: 12px;
  }

  .depths-field-stack {
    gap: 10px;
  }

  .depths-field {
    gap: 6px;
  }

  .depths-field span,
  .depths-login-options,
  .depths-register {
    font-size: 12px;
  }

  .depths-field input {
    height: 40px;
  }

  .depths-login-options {
    margin: 10px 0 12px;
  }

  .depths-primary,
  .depths-skip {
    height: 42px;
  }

  .depths-skip {
    margin-top: 8px;
  }

  .depths-register {
    margin-top: 10px;
  }
}
.harbor-reseller {
  min-height: 100dvh;
  height: 100dvh;
  display: grid;
  grid-template-columns: 254px minmax(0, 1fr);
  background: #060a10;
  color: #edf4ff;
  overflow: hidden;
}

.harbor-reseller-sidebar {
  border-right: 1px solid #182230;
  background: #070d13;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.harbor-reseller-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.harbor-reseller-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
}

.harbor-reseller-brand strong,
.harbor-reseller-brand span {
  display: block;
  white-space: nowrap;
}

.harbor-reseller-brand strong {
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.harbor-reseller-brand span {
  margin-top: 3px;
  color: #788498;
  font-size: 12px;
}

.harbor-reseller-nav {
  display: grid;
  gap: 8px;
}

.harbor-reseller-nav button,
.harbor-reseller-logout,
.harbor-reseller-actions button,
.harbor-panel-head button,
.harbor-order-form button,
.harbor-affiliate-card button {
  border-radius: 6px;
  border: 1px solid #1c2634;
  background: #0d141d;
  color: #aeb8c9;
  min-height: 40px;
  font-weight: 800;
}

.harbor-reseller-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  text-align: left;
}

.harbor-reseller-nav button.active,
.harbor-reseller-actions .primary,
.harbor-order-form .primary {
  background: #174da4;
  border-color: #1f65ce;
  color: #ffffff;
}

.harbor-reseller-nav svg {
  width: 18px;
  height: 18px;
}

.harbor-reseller-account {
  margin-top: auto;
  border: 1px solid #1c2634;
  background: #0b1119;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.harbor-reseller-account b,
.harbor-reseller-account span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.harbor-reseller-account b {
  font-size: 13px;
}

.harbor-reseller-account span {
  margin-top: 3px;
  color: #788498;
  font-size: 12px;
}

.harbor-reseller-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

.harbor-reseller-topbar {
  height: 86px;
  border-bottom: 1px solid #182230;
  background: #080e15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
}

.harbor-reseller-topbar p,
.harbor-reseller-topbar h1 {
  margin: 0;
}

.harbor-reseller-topbar p {
  color: #788498;
  font-size: 13px;
  font-weight: 700;
}

.harbor-reseller-topbar h1 {
  margin-top: 5px;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0;
}

.harbor-reseller-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.harbor-reseller-actions button {
  padding: 0 15px;
}

.harbor-reseller-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 20px 28px 16px;
}

.harbor-reseller-metrics article,
.harbor-reseller-panel {
  border: 1px solid #1b2430;
  background: #0a0f15;
  border-radius: 8px;
}

.harbor-reseller-metrics article {
  padding: 16px;
  min-width: 0;
}

.harbor-reseller-metrics span,
.harbor-reseller-metrics small {
  display: block;
  color: #7f8b9e;
  font-size: 12px;
  font-weight: 700;
}

.harbor-reseller-metrics strong {
  display: block;
  margin: 12px 0 5px;
  font-size: 30px;
  line-height: 1;
}

.harbor-reseller-grid {
  min-height: 0;
  padding: 0 28px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  grid-template-rows: minmax(190px, auto) minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
}

.harbor-reseller-panel {
  min-width: 0;
  overflow: hidden;
}

.keys-panel {
  grid-column: 1 / 2;
}

.affiliate-panel {
  grid-column: 2 / 3;
}

.harbor-panel-head {
  min-height: 62px;
  border-bottom: 1px solid #182230;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.harbor-panel-head h2,
.harbor-panel-head span {
  margin: 0;
  display: block;
}

.harbor-panel-head h2 {
  font-size: 15px;
  letter-spacing: 0;
}

.harbor-panel-head span {
  margin-top: 4px;
  color: #7f8b9e;
  font-size: 12px;
}

.harbor-panel-head button,
.harbor-affiliate-card button {
  min-height: 34px;
  padding: 0 12px;
}

.harbor-product-list {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.harbor-product-row {
  min-height: 66px;
  border: 1px solid #182230;
  background: #0d141d;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
}

.harbor-product-icon {
  width: 42px;
  height: 42px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #132035;
  border: 1px solid #213451;
  color: #9fc6ff;
  font-weight: 900;
  font-size: 12px;
}

.harbor-product-row b,
.harbor-product-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.harbor-product-row b {
  font-size: 14px;
}

.harbor-product-row span {
  margin-top: 4px;
  color: #7f8b9e;
  font-size: 12px;
}

.harbor-product-row em,
.harbor-reseller-table span {
  border-radius: 999px;
  border: 1px solid #1d6a45;
  background: #0d241a;
  color: #72e3a4;
  padding: 5px 9px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.harbor-product-row em.updating,
.harbor-reseller-table span.redeemed {
  border-color: #2b5f91;
  background: #102036;
  color: #8abfff;
}

.harbor-order-form,
.harbor-affiliate-card {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.harbor-order-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.harbor-order-form button {
  grid-column: 1 / -1;
}

.harbor-order-form label,
.harbor-affiliate-card label {
  display: grid;
  gap: 7px;
}

.harbor-order-form span,
.harbor-affiliate-card label span {
  color: #9aa5b6;
  font-size: 12px;
  font-weight: 800;
}

.harbor-order-form input,
.harbor-order-form select,
.harbor-affiliate-card input {
  width: 100%;
  height: 42px;
  border: 1px solid #202b39;
  border-radius: 5px;
  background: #070c12;
  color: #edf4ff;
  padding: 0 12px;
  outline: none;
}

.harbor-reseller-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.harbor-reseller-table th,
.harbor-reseller-table td {
  border-bottom: 1px solid #182230;
  padding: 13px 16px;
  text-align: left;
  font-size: 13px;
  white-space: nowrap;
}

.harbor-reseller-table th {
  color: #7f8b9e;
  font-size: 11px;
  text-transform: uppercase;
}

.harbor-affiliate-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.harbor-affiliate-split div {
  border: 1px solid #182230;
  background: #0d141d;
  border-radius: 8px;
  padding: 14px;
}

.harbor-affiliate-split b,
.harbor-affiliate-split span {
  display: block;
}

.harbor-affiliate-split b {
  font-size: 24px;
}

.harbor-affiliate-split span {
  margin-top: 4px;
  color: #7f8b9e;
  font-size: 12px;
}

@media (max-width: 1050px), (max-height: 760px) {
  .harbor-reseller {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .harbor-reseller-sidebar {
    padding: 16px 12px;
    gap: 14px;
  }

  .harbor-reseller-topbar {
    height: 70px;
    padding: 0 18px;
  }

  .harbor-reseller-topbar h1 {
    font-size: 22px;
  }

  .harbor-reseller-metrics {
    padding: 14px 18px 12px;
    gap: 10px;
  }

  .harbor-reseller-metrics article {
    padding: 12px;
  }

  .harbor-reseller-metrics strong {
    font-size: 24px;
    margin: 8px 0 4px;
  }

  .harbor-reseller-grid {
    padding: 0 18px 16px;
    gap: 12px;
  }

  .harbor-panel-head {
    min-height: 54px;
    padding: 10px 12px;
  }

  .harbor-product-list,
  .harbor-order-form,
  .harbor-affiliate-card {
    padding: 12px;
  }
}

@media (max-width: 840px) {
  .harbor-reseller {
    height: auto;
    min-height: 100dvh;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .harbor-reseller-sidebar {
    border-right: 0;
    border-bottom: 1px solid #182230;
  }

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

  .harbor-reseller-main {
    overflow: visible;
  }

  .harbor-reseller-topbar,
  .harbor-reseller-actions {
    flex-wrap: wrap;
    height: auto;
    padding: 16px;
  }

  .harbor-reseller-metrics,
  .harbor-reseller-grid {
    grid-template-columns: 1fr;
  }

  .keys-panel,
  .affiliate-panel {
    grid-column: auto;
  }
}
.harbor-dev {
  min-height: 100dvh;
  height: 100dvh;
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  background: #060a10;
  color: #edf4ff;
  overflow: hidden;
}

.harbor-dev-sidebar {
  border-right: 1px solid #1a2430;
  background: #070d14;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.harbor-dev-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.harbor-dev-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}

.harbor-dev-brand strong,
.harbor-dev-brand span {
  display: block;
  white-space: nowrap;
}

.harbor-dev-brand strong {
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.harbor-dev-brand span {
  margin-top: 2px;
  color: #7d8898;
  font-size: 12px;
}

.harbor-dev-nav {
  display: grid;
  gap: 5px;
}

.harbor-dev-nav button,
.harbor-dev-logout,
.harbor-dev-actions button,
.harbor-dev-panel-head button,
.harbor-dev-form button {
  border-radius: 6px;
  border: 1px solid #1d2735;
  background: #0d141d;
  color: #aeb8c9;
  min-height: 34px;
  font-weight: 800;
}

.harbor-dev-nav button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  text-align: left;
  font-size: 12px;
}

.harbor-dev-nav button.active,
.harbor-dev-actions .primary,
.harbor-dev-form .primary {
  background: #174da4;
  border-color: #1f65ce;
  color: #ffffff;
}

.harbor-dev-nav svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.harbor-dev-account {
  margin-top: auto;
  border: 1px solid #1d2735;
  background: #0b1119;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.harbor-dev-account b,
.harbor-dev-account span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.harbor-dev-account b {
  font-size: 13px;
}

.harbor-dev-account span {
  margin-top: 2px;
  color: #7d8898;
  font-size: 12px;
}

.harbor-dev-logout {
  min-height: 34px;
}

.harbor-dev-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

.harbor-dev-topbar {
  height: 78px;
  border-bottom: 1px solid #1a2430;
  background: #080e15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 26px;
}

.harbor-dev-topbar p,
.harbor-dev-topbar h1 {
  margin: 0;
}

.harbor-dev-topbar p {
  color: #7d8898;
  font-size: 13px;
  font-weight: 800;
}

.harbor-dev-topbar h1 {
  margin-top: 5px;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: 0;
}

.harbor-dev-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.harbor-dev-actions button {
  min-height: 38px;
  padding: 0 14px;
}

.harbor-dev-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 26px 14px;
}

.harbor-dev-metrics article,
.harbor-dev-panel {
  border: 1px solid #1b2430;
  background: #0a0f15;
  border-radius: 8px;
}

.harbor-dev-metrics article {
  padding: 13px;
  min-width: 0;
}

.harbor-dev-metrics span,
.harbor-dev-metrics small {
  display: block;
  color: #808b9d;
  font-size: 12px;
  font-weight: 700;
}

.harbor-dev-metrics strong {
  display: block;
  margin: 10px 0 4px;
  font-size: 27px;
  line-height: 1;
}

.harbor-dev-grid {
  min-height: 0;
  padding: 0 26px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(342px, 0.65fr);
  grid-template-rows: minmax(260px, 0.95fr) minmax(230px, 0.75fr);
  gap: 14px;
  overflow: hidden;
}

.harbor-dev-panel {
  min-width: 0;
  overflow: hidden;
}

.dev-products-panel,
.dev-keys-panel {
  grid-column: 1 / 2;
}

.dev-release-panel,
.dev-side-panel {
  grid-column: 2 / 3;
}

.harbor-dev-panel-head {
  min-height: 58px;
  border-bottom: 1px solid #1a2430;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.harbor-dev-panel-head h2,
.harbor-dev-panel-head span {
  margin: 0;
  display: block;
}

.harbor-dev-panel-head h2 {
  font-size: 15px;
  letter-spacing: 0;
}

.harbor-dev-panel-head span {
  margin-top: 4px;
  color: #808b9d;
  font-size: 12px;
}

.harbor-dev-panel-head button {
  min-height: 32px;
  padding: 0 11px;
}

.harbor-dev-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.harbor-dev-table.compact {
  min-width: 710px;
}

.harbor-dev-table th,
.harbor-dev-table td {
  border-bottom: 1px solid #1a2430;
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  white-space: nowrap;
}

.harbor-dev-table th {
  color: #808b9d;
  font-size: 11px;
  text-transform: uppercase;
}

.harbor-dev-table b,
.harbor-dev-table small {
  display: block;
}

.harbor-dev-table small {
  margin-top: 3px;
  color: #7d8898;
  font-size: 11px;
}

.harbor-dev-table span {
  border-radius: 999px;
  border: 1px solid #1d6a45;
  background: #0d241a;
  color: #72e3a4;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
}

.harbor-dev-table span.updating,
.harbor-dev-table span.redeemed {
  border-color: #2b5f91;
  background: #102036;
  color: #8abfff;
}

.harbor-dev-table span.detected {
  border-color: #6e2633;
  background: #281017;
  color: #ff9cad;
}

.harbor-dev-form {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.harbor-dev-form .wide,
.harbor-dev-form button {
  grid-column: 1 / -1;
}

.harbor-dev-form label {
  display: grid;
  gap: 7px;
}

.harbor-dev-form span {
  color: #9aa5b6;
  font-size: 12px;
  font-weight: 800;
}

.harbor-dev-form input {
  width: 100%;
  height: 40px;
  border: 1px solid #202b39;
  border-radius: 5px;
  background: #070c12;
  color: #edf4ff;
  padding: 0 11px;
  outline: none;
}

.harbor-dev-form button {
  min-height: 38px;
}

.harbor-dev-access-list {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.harbor-dev-access-list div {
  border: 1px solid #1a2430;
  background: #0d141d;
  border-radius: 8px;
  padding: 12px;
}

.harbor-dev-access-list b,
.harbor-dev-access-list span {
  display: block;
}

.harbor-dev-access-list b {
  font-size: 13px;
}

.harbor-dev-access-list span {
  margin-top: 4px;
  color: #808b9d;
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 1180px), (max-height: 790px) {
  .harbor-dev {
    grid-template-columns: 228px minmax(0, 1fr);
  }

  .harbor-dev-sidebar {
    padding: 14px 10px;
    gap: 10px;
  }

  .harbor-dev-nav {
    gap: 4px;
  }

  .harbor-dev-nav button {
    min-height: 30px;
    font-size: 11px;
  }

  .harbor-dev-topbar {
    height: 68px;
    padding: 0 18px;
  }

  .harbor-dev-topbar h1 {
    font-size: 23px;
  }

  .harbor-dev-metrics {
    padding: 12px 18px 10px;
    gap: 9px;
  }

  .harbor-dev-metrics article {
    padding: 10px;
  }

  .harbor-dev-metrics strong {
    font-size: 22px;
    margin: 7px 0 3px;
  }

  .harbor-dev-grid {
    padding: 0 18px 14px;
    gap: 10px;
  }

  .harbor-dev-panel-head {
    min-height: 50px;
    padding: 9px 12px;
  }

  .harbor-dev-table th,
  .harbor-dev-table td {
    padding: 10px 12px;
  }

  .harbor-dev-form,
  .harbor-dev-access-list {
    padding: 12px;
    gap: 8px;
  }
}

@media (max-width: 880px) {
  .harbor-dev {
    height: auto;
    min-height: 100dvh;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .harbor-dev-sidebar {
    border-right: 0;
    border-bottom: 1px solid #1a2430;
  }

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

  .harbor-dev-main {
    overflow: visible;
  }

  .harbor-dev-topbar,
  .harbor-dev-actions {
    flex-wrap: wrap;
    height: auto;
    padding: 16px;
  }

  .harbor-dev-metrics,
  .harbor-dev-grid {
    grid-template-columns: 1fr;
  }

  .dev-products-panel,
  .dev-keys-panel,
  .dev-release-panel,
  .dev-side-panel {
    grid-column: auto;
  }
}
.harbor-data-notice {
  border: 1px solid #243247;
  background: #0d141d;
  color: #9aa8bd;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
}

.harbor-data-notice code {
  color: #d7e4f8;
}

.harbor-data-notice.live {
  border-color: #1d6a45;
  background: #0d241a;
  color: #9ff0bf;
}

.harbor-data-notice.error {
  border-color: #6e2633;
  background: #281017;
  color: #ffb0bf;
}

.harbor-product-grid-wrap,
.harbor-key-wrap {
  min-height: 0;
  padding: 18px 26px 22px;
  display: grid;
  gap: 14px;
  overflow: hidden;
}

.harbor-product-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  overflow: auto;
  padding-right: 2px;
}

.harbor-product-card {
  border: 1px solid #1b2430;
  background: #0a0f15;
  border-radius: 8px;
  padding: 15px;
  min-width: 0;
}

.harbor-product-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.harbor-product-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #132035;
  border: 1px solid #213451;
  color: #9fc6ff;
  font-weight: 900;
}

.harbor-product-card h3,
.harbor-product-card p {
  margin: 0;
}

.harbor-product-card h3 {
  font-size: 17px;
  letter-spacing: 0;
}

.harbor-product-card p {
  margin-top: 5px;
  color: #7f8b9e;
  font-size: 13px;
}

.harbor-product-meta {
  margin-top: 15px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 9px 10px;
  font-size: 12px;
}

.harbor-product-meta span {
  color: #7f8b9e;
  font-weight: 800;
}

.harbor-product-meta b {
  color: #dce6f5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.harbor-product-card-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.harbor-product-card-actions button {
  min-height: 36px;
  border-radius: 6px;
  border: 1px solid #1d2735;
  background: #0d141d;
  color: #aeb8c9;
  font-weight: 800;
}

.harbor-state,
.harbor-state.undetected {
  border-radius: 999px;
  border: 1px solid #1d6a45;
  background: #0d241a;
  color: #72e3a4;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.harbor-state.updating {
  border-color: #2b5f91;
  background: #102036;
  color: #8abfff;
}

.harbor-state.detected {
  border-color: #6e2633;
  background: #281017;
  color: #ff9cad;
}

.harbor-key-table-wrap {
  min-height: 0;
  overflow: auto;
  border: 1px solid #1b2430;
  background: #0a0f15;
  border-radius: 8px;
}

.harbor-live-key-table {
  min-width: 880px;
}

@media (max-width: 1180px), (max-height: 790px) {
  .harbor-product-grid-wrap,
  .harbor-key-wrap {
    padding: 14px 18px 16px;
  }

  .harbor-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
  }

  .harbor-product-card {
    padding: 12px;
  }
}
.harbor-dev-main > .harbor-product-grid-wrap,
.harbor-dev-main > .harbor-key-wrap,
.harbor-reseller-main > .harbor-product-grid-wrap,
.harbor-reseller-main > .harbor-key-wrap {
  grid-row: 2 / 4;
}