
:root {
  --onyx-ink: #151b1d;
  --onyx-ink-soft: #253033;
  --onyx-paper: #f7f3ec;
  --onyx-panel: #fffdf8;
  --onyx-panel-strong: #ffffff;
  --onyx-line: #d8d0c3;
  --onyx-line-strong: #151b1d;
  --onyx-muted: #68736f;
  --onyx-teal: #236f68;
  --onyx-teal-dark: #174c47;
  --onyx-copper: #9a5a1c;
  --onyx-copper-dark: #794313;
  --onyx-cream: #f2e3c8;
  --onyx-danger: #a3372f;
  --onyx-success: #236f4d;
  --onyx-warning: #9a5a1c;
  --onyx-shadow: 0 14px 36px rgba(21, 27, 29, 0.08);
  --onyx-radius: 8px;
}

html {
  background: var(--onyx-paper);
}

body {
  color: var(--onyx-ink) !important;
  background:
    linear-gradient(180deg, rgba(247, 243, 236, 0.98), rgba(247, 243, 236, 1)) !important;
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif !important;
  letter-spacing: 0 !important;
  min-height: 100vh !important;
}

header {
  background:
    linear-gradient(135deg, #101719 0%, #172426 54%, #1e3431 100%) !important;
  border-bottom: 4px solid var(--onyx-copper) !important;
  box-shadow: 0 14px 30px rgba(21, 27, 29, 0.2) !important;
}

.onyx-skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--onyx-ink);
  color: #fff !important;
  border-radius: var(--onyx-radius);
  transition: top 120ms ease;
}

.onyx-skip-link:focus {
  top: 12px;
}

.onyx-app-header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 18px !important;
  padding: 26px clamp(18px, 4vw, 44px) !important;
}

.onyx-app-brand {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  min-width: 0 !important;
}

.onyx-brand-mark {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 72px !important;
  min-height: 38px !important;
  padding: 6px 10px !important;
  border: 1px solid rgba(242, 227, 200, 0.78) !important;
  color: #f8efe0 !important;
  font-size: 0.84rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
}

.onyx-app-eyebrow {
  margin: 0 0 4px !important;
  color: rgba(248, 239, 224, 0.78) !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
}

.onyx-app-header h1 {
  margin: 0 !important;
}

.onyx-app-header h1::before {
  content: none !important;
}

.onyx-app-header p {
  max-width: 760px !important;
  margin: 8px 0 0 !important;
  color: rgba(255, 253, 248, 0.86) !important;
}

.onyx-shell-nav {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  max-width: 620px !important;
  margin-top: 0 !important;
}

header h1::before {
  content: "ONYX";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin-right: 12px;
  padding: 3px 9px 4px;
  border: 1px solid rgba(242, 227, 200, 0.75);
  color: #f8efe0;
  font-size: 0.62em;
  font-weight: 900;
  letter-spacing: 0.08em;
  vertical-align: 0.12em;
}

h1,
h2,
h3 {
  color: inherit;
  letter-spacing: 0 !important;
}

main {
  background: transparent !important;
}

.panel,
.card,
.metric,
.notice,
.alert,
section,
article.action,
.status-card {
  border-radius: var(--onyx-radius) !important;
}

.panel,
.card,
.metric,
article.action,
.status-card {
  background: var(--onyx-panel) !important;
  border: 1px solid var(--onyx-line) !important;
  box-shadow: var(--onyx-shadow) !important;
}

.notice {
  background: #eef7f4 !important;
  border: 1px solid #badbd4 !important;
  color: var(--onyx-teal-dark) !important;
}

.alert,
.notice.error {
  background: #fff1ed !important;
  border: 1px solid #e6b4aa !important;
  color: var(--onyx-danger) !important;
}

button,
.button-link,
.action-link,
input[type="submit"] {
  background: var(--onyx-teal) !important;
  border-color: var(--onyx-teal) !important;
  color: #fff !important;
  border-radius: var(--onyx-radius) !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

button:hover,
.button-link:hover,
.action-link:hover,
input[type="submit"]:hover {
  background: var(--onyx-teal-dark) !important;
  border-color: var(--onyx-teal-dark) !important;
}

.danger-button,
button.danger-button {
  background: var(--onyx-danger) !important;
  border-color: var(--onyx-danger) !important;
}

nav a,
.mode-link {
  border: 1px solid rgba(242, 227, 200, 0.4) !important;
  background: rgba(242, 227, 200, 0.08) !important;
  color: #fbf6ed !important;
  border-radius: var(--onyx-radius) !important;
}

nav a:hover,
.mode-link:hover {
  background: rgba(154, 90, 28, 0.35) !important;
  text-decoration: none !important;
}

header.onyx-storefront-shell {
  background: #171717 !important;
  border-bottom: 0 !important;
  box-shadow: 0 10px 26px rgba(21, 27, 29, 0.22) !important;
}

.onyx-announcement {
  display: block !important;
  width: 100% !important;
  padding: 8px 16px !important;
  background: var(--onyx-copper) !important;
  color: #fff7ec !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
}

.onyx-announcement:hover {
  background: var(--onyx-copper-dark) !important;
  color: #fff !important;
}

.onyx-storefront-nav {
  display: grid !important;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  min-height: 78px !important;
  padding: 14px clamp(18px, 4vw, 46px) !important;
}

.onyx-storefront-logo {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  text-decoration: none !important;
}

.onyx-storefront-logo img {
  display: block !important;
  width: auto !important;
  max-width: 190px !important;
  max-height: 48px !important;
  object-fit: contain !important;
}

.onyx-storefront-menu,
.onyx-storefront-tools {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 18px !important;
}

.onyx-storefront-menu {
  justify-content: flex-start !important;
}

.onyx-storefront-tools {
  justify-content: flex-end !important;
  gap: 12px !important;
}

.onyx-storefront-menu a,
.onyx-storefront-tools a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 38px !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  color: #fffdf8 !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.onyx-storefront-menu a:hover,
.onyx-storefront-tools a:hover,
.onyx-storefront-menu a[aria-current="page"] {
  color: var(--onyx-cream) !important;
  background: transparent !important;
  text-decoration: underline !important;
  text-underline-offset: 5px !important;
}

.onyx-storefront-context {
  padding: 26px clamp(18px, 4vw, 46px) 30px !important;
  background:
    linear-gradient(135deg, #101719 0%, #172426 54%, #1e3431 100%) !important;
  border-top: 1px solid rgba(242, 227, 200, 0.16) !important;
  border-bottom: 4px solid var(--onyx-copper) !important;
}

.onyx-storefront-eyebrow {
  margin: 0 0 6px !important;
  color: rgba(248, 239, 224, 0.78) !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

.onyx-storefront-context h1 {
  max-width: 920px !important;
  margin: 0 !important;
  color: #fffdf8 !important;
  font-size: clamp(2rem, 4vw, 3.4rem) !important;
  line-height: 1.04 !important;
  letter-spacing: 0 !important;
}

.onyx-storefront-context h1::before {
  content: none !important;
}

.onyx-storefront-context p {
  max-width: 820px !important;
  margin: 10px 0 0 !important;
  color: rgba(255, 253, 248, 0.86) !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

.onyx-page-intro {
  max-width: 920px !important;
  margin: 0 0 22px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.onyx-page-eyebrow {
  margin: 0 0 7px !important;
  color: var(--onyx-copper-dark) !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

.onyx-page-intro h1 {
  margin: 0 !important;
  color: var(--onyx-ink) !important;
  font-size: clamp(2rem, 4vw, 3.35rem) !important;
  line-height: 1.04 !important;
  letter-spacing: 0 !important;
}

.onyx-page-intro h1::before {
  content: none !important;
}

.onyx-page-intro p:not(.onyx-page-eyebrow) {
  max-width: 780px !important;
  margin: 10px 0 0 !important;
  color: var(--onyx-muted) !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
}

.onyx-storefront-footer {
  margin-top: 48px !important;
  background: #171717 !important;
  color: rgba(255, 253, 248, 0.86) !important;
  border-top: 4px solid var(--onyx-copper) !important;
}

.onyx-storefront-footer__inner {
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr) !important;
  gap: 28px !important;
  align-items: start !important;
  padding: 34px clamp(18px, 4vw, 46px) !important;
}

.onyx-storefront-footer__brand p {
  max-width: 560px !important;
  margin: 12px 0 0 !important;
  color: rgba(255, 253, 248, 0.78) !important;
  line-height: 1.5 !important;
}

.onyx-storefront-footer__logo {
  display: inline-flex !important;
  width: fit-content !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.onyx-storefront-footer__logo img {
  display: block !important;
  width: auto !important;
  max-width: 190px !important;
  max-height: 48px !important;
  object-fit: contain !important;
}

.onyx-storefront-footer__contact {
  display: grid !important;
  gap: 4px !important;
}

.onyx-storefront-footer__links {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 10px 18px !important;
  margin: 0 !important;
}

.onyx-storefront-footer a,
.onyx-storefront-footer__links a {
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  color: rgba(255, 253, 248, 0.86) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.onyx-storefront-footer a:hover,
.onyx-storefront-footer__links a:hover {
  color: var(--onyx-cream) !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
}

.onyx-storefront-footer__utilities {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 16px clamp(18px, 4vw, 46px) !important;
  border-top: 1px solid rgba(242, 227, 200, 0.18) !important;
  color: rgba(255, 253, 248, 0.64) !important;
  font-size: 0.82rem !important;
}

header.onyx-portal-workspace-shell {
  background:
    linear-gradient(135deg, #101719 0%, #182525 58%, #203632 100%) !important;
  border-bottom: 4px solid var(--onyx-teal) !important;
  box-shadow: 0 12px 28px rgba(21, 27, 29, 0.22) !important;
}

.onyx-portal-workspace-top {
  display: grid !important;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 22px clamp(18px, 4vw, 46px) 18px !important;
}

.onyx-portal-workspace-logo {
  display: inline-flex !important;
  width: fit-content !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  text-decoration: none !important;
}

.onyx-portal-workspace-logo img {
  display: block !important;
  width: auto !important;
  max-width: 190px !important;
  max-height: 48px !important;
  object-fit: contain !important;
}

.onyx-portal-workspace-title {
  min-width: 0 !important;
}

.onyx-portal-workspace-title p:first-child {
  margin: 0 0 5px !important;
  color: rgba(248, 239, 224, 0.76) !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

.onyx-portal-workspace-title h1 {
  margin: 0 !important;
  color: #fffdf8 !important;
  font-size: clamp(1.6rem, 3vw, 2.45rem) !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}

.onyx-portal-workspace-title h1::before {
  content: none !important;
}

.onyx-portal-workspace-title p:not(:first-child) {
  max-width: 760px !important;
  margin: 8px 0 0 !important;
  color: rgba(255, 253, 248, 0.8) !important;
  font-size: 0.96rem !important;
  line-height: 1.45 !important;
}

.onyx-portal-workspace-store-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  border: 1px solid rgba(242, 227, 200, 0.52) !important;
  background: rgba(242, 227, 200, 0.08) !important;
  border-radius: var(--onyx-radius) !important;
  padding: 8px 12px !important;
  color: #fffdf8 !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.onyx-portal-workspace-store-link:hover {
  background: rgba(154, 90, 28, 0.35) !important;
  color: #fff !important;
  text-decoration: none !important;
}

.onyx-portal-workspace-nav {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  padding: 0 clamp(18px, 4vw, 46px) 20px !important;
}

.onyx-portal-workspace-nav a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 38px !important;
  border: 1px solid rgba(242, 227, 200, 0.32) !important;
  background: rgba(255, 253, 248, 0.06) !important;
  border-radius: var(--onyx-radius) !important;
  padding: 8px 12px !important;
  color: #fffdf8 !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.onyx-portal-workspace-nav a:hover,
.onyx-portal-workspace-nav a[aria-current="page"] {
  background: rgba(35, 111, 104, 0.62) !important;
  border-color: rgba(242, 227, 200, 0.46) !important;
  color: #fff !important;
  text-decoration: none !important;
}

.onyx-portal-workspace-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  margin-top: 48px !important;
  padding: 22px clamp(18px, 4vw, 46px) !important;
  background: #171717 !important;
  color: rgba(255, 253, 248, 0.76) !important;
  border-top: 4px solid var(--onyx-teal) !important;
}

.onyx-portal-workspace-footer div {
  display: grid !important;
  gap: 4px !important;
}

.onyx-portal-workspace-footer strong {
  color: #fffdf8 !important;
}

.onyx-portal-workspace-footer nav {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px 16px !important;
}

.onyx-portal-workspace-footer a {
  border: 0 !important;
  background: transparent !important;
  color: rgba(255, 253, 248, 0.84) !important;
  font-weight: 800 !important;
  padding: 0 !important;
  text-decoration: none !important;
}

.onyx-portal-workspace-footer a:hover {
  color: var(--onyx-cream) !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
}

.badge {
  background: #e5eee9 !important;
  color: var(--onyx-teal-dark) !important;
  border: 1px solid #c8ddd6 !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
}

.badge.danger,
.danger {
  color: var(--onyx-danger) !important;
}

.onyx-status-badge {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  min-height: 26px !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

.onyx-status-neutral {
  color: var(--onyx-ink-soft) !important;
  background: #eee5d6 !important;
  border: 1px solid var(--onyx-line) !important;
}

.onyx-status-success {
  color: #113f2c !important;
  background: #e3f2ea !important;
  border: 1px solid #b6d9c6 !important;
}

.onyx-status-warning {
  color: #613708 !important;
  background: #f7ead6 !important;
  border: 1px solid #d9b47f !important;
}

.onyx-status-danger {
  color: #6b1711 !important;
  background: #f8ded8 !important;
  border: 1px solid #dcaaa0 !important;
}

table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

th {
  background: #eee5d6 !important;
  color: var(--onyx-ink-soft) !important;
  border-bottom: 2px solid var(--onyx-line-strong) !important;
}

td {
  border-bottom: 1px solid var(--onyx-line) !important;
}

input,
select,
textarea {
  border: 1px solid var(--onyx-line) !important;
  border-radius: var(--onyx-radius) !important;
  background: #fff !important;
  color: var(--onyx-ink) !important;
}

input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
  outline: 3px solid rgba(35, 111, 104, 0.25) !important;
  outline-offset: 2px !important;
}

code {
  background: #efe8dc !important;
  color: var(--onyx-ink-soft) !important;
  border-radius: 5px !important;
  padding: 1px 4px !important;
}

.empty,
.subtle {
  color: var(--onyx-muted) !important;
}

@media (max-width: 760px) {
  header {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  header.onyx-storefront-shell {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  header h1::before {
    display: flex;
    width: fit-content;
    margin: 0 0 8px;
  }

  .onyx-app-header {
    display: block !important;
  }

  .onyx-app-brand {
    display: block !important;
  }

  .onyx-brand-mark {
    width: fit-content !important;
    margin-bottom: 10px !important;
  }

  .onyx-shell-nav {
    justify-content: flex-start !important;
    margin-top: 18px !important;
  }

  .onyx-storefront-nav {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    min-height: 0 !important;
    padding: 14px 18px 16px !important;
  }

  .onyx-storefront-logo img {
    max-width: 162px !important;
    max-height: 44px !important;
  }

  .onyx-storefront-menu,
  .onyx-storefront-tools {
    justify-content: flex-start !important;
    gap: 10px 15px !important;
  }

  .onyx-storefront-menu a,
  .onyx-storefront-tools a {
    min-height: 34px !important;
    font-size: 0.92rem !important;
  }

  .onyx-storefront-context {
    padding: 22px 18px 24px !important;
  }

  .onyx-storefront-context h1 {
    font-size: 2rem !important;
  }

  .onyx-page-intro h1 {
    font-size: 2rem !important;
  }

  .onyx-storefront-footer__inner {
    grid-template-columns: 1fr !important;
    padding: 28px 18px !important;
  }

  .onyx-storefront-footer__links {
    justify-content: flex-start !important;
  }

  .onyx-storefront-footer__utilities {
    display: grid !important;
    padding: 16px 18px !important;
  }

  .onyx-portal-workspace-top {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 18px !important;
  }

  .onyx-portal-workspace-logo img {
    max-width: 162px !important;
    max-height: 44px !important;
  }

  .onyx-portal-workspace-store-link {
    width: fit-content !important;
  }

  .onyx-portal-workspace-nav {
    padding: 0 18px 18px !important;
    gap: 8px !important;
  }

  .onyx-portal-workspace-nav a {
    min-height: 36px !important;
    font-size: 0.88rem !important;
  }

  .onyx-portal-workspace-footer {
    display: grid !important;
    padding: 20px 18px !important;
  }

  main {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .panel,
  .card,
  .metric,
  article.action,
  .status-card {
    padding: 16px !important;
  }
}
