:root {
  --bg0: #05080f;
  --bg1: #070b14;
  --black: #000;
  --panel: #080808;
  --panel2: #0d0d0d;
  --gold: #ffd700;
  --goldSoft: rgba(255, 215, 0, 0.16);
  --goldLine: rgba(255, 215, 0, 0.34);
  --text: rgba(245, 247, 252, 0.96);
  --muted: rgba(205, 213, 228, 0.86);
  --muted2: rgba(160, 174, 200, 0.88);
  --line: rgba(255, 255, 255, 0.1);
  --line2: rgba(255, 255, 255, 0.06);
  --green: #55c878;
  --red: #f36b68;
  --radius: 18px;
  --safeTop: env(safe-area-inset-top, 0px);
  --safeBottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg0);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--bg0);
}

body {
  min-width: 320px;
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 215, 0, 0.14), transparent 34rem),
    linear-gradient(135deg, rgba(255, 215, 0, 0.055), transparent 44rem),
    var(--bg0);
}

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

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.skipLink {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  color: #05080f;
  background: var(--gold);
  font-weight: 900;
  transform: translateY(-150%);
}

.skipLink:focus {
  transform: translateY(0);
}

.noscript,
.bootShell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
}

.noscript img,
.bootShell img {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid var(--goldLine);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.46);
}

.bootShell strong {
  margin-top: 8px;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bootShell span,
.noscript p {
  color: var(--muted);
}

.partnerApp {
  min-height: 100vh;
}

.publicPage {
  min-height: 100vh;
  overflow: hidden;
}

.publicTop {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 215, 0, 0.28);
  background: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.94));
  backdrop-filter: blur(16px);
}

.publicTop__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.publicBrand,
.workspaceBrand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.publicBrand img,
.workspaceBrand img {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  object-fit: cover;
  background: #000;
  border: 1px solid var(--line);
}

.publicBrand span,
.workspaceBrand span {
  display: grid;
  gap: 2px;
}

.publicBrand strong,
.workspaceBrand strong {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publicBrand small,
.workspaceBrand small {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.topActions,
.buttonRow,
.cardActions,
.heroActions,
.inlineActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.primaryBtn,
.ghostBtn,
.dangerBtn,
.smallBtn,
.iconBtn {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  font-weight: 850;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.primaryBtn {
  color: #05080f;
  border-color: var(--gold);
  background: linear-gradient(135deg, #fff27d, var(--gold));
  box-shadow: 0 14px 34px rgba(255, 215, 0, 0.18);
}

.ghostBtn,
.smallBtn,
.iconBtn {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.dangerBtn {
  color: #fff;
  border-color: rgba(243, 107, 104, 0.44);
  background: rgba(243, 107, 104, 0.12);
}

.smallBtn {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 11px;
  font-size: 0.87rem;
}

.iconBtn {
  width: 44px;
  padding: 0;
}

.primaryBtn:hover,
.ghostBtn:hover,
.dangerBtn:hover,
.smallBtn:hover,
.iconBtn:hover {
  transform: translateY(-1px);
}

.ghostBtn:hover,
.smallBtn:hover,
.iconBtn:hover {
  border-color: var(--goldLine);
  background: var(--goldSoft);
}

.publicHero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 118px) 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
  align-items: center;
  gap: clamp(30px, 5vw, 68px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.publicHero h1,
.statusCard h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.publicHero__lead,
.statusCard__lead {
  max-width: 62ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  line-height: 1.62;
}

.heroActions {
  margin-top: 28px;
}

.trustStrip {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.trustStrip li {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.34);
  font-size: 0.91rem;
}

.trustStrip strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
}

.networkBoard,
.panel,
.statusCard,
.loginPanel,
.formCard,
.metricCard,
.entityCard,
.noticeCard {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.96), rgba(4, 4, 4, 0.96));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.networkBoard {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 28px;
  border-color: rgba(255, 215, 0, 0.18);
}

.networkBoard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(125deg, rgba(255, 215, 0, 0.12), transparent 38%),
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.08), transparent 30%);
}

.networkBoard > * {
  position: relative;
}

.networkBoard__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line2);
}

.networkBoard__head strong {
  font-size: 1.2rem;
}

.livePill,
.pill,
.statusPill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 7px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.78rem;
  font-weight: 850;
}

.livePill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.7);
}

.boardFlow {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.boardFlow article {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--line2);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.03);
}

.boardFlow b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #05080f;
  background: var(--gold);
}

.boardFlow strong,
.boardFlow small {
  display: block;
}

.boardFlow small {
  margin-top: 4px;
  color: var(--muted2);
}

.boardFlow span {
  color: var(--gold);
  font-size: 0.77rem;
  font-weight: 900;
  text-transform: uppercase;
}

.publicSection {
  padding: 62px 0;
  border-top: 1px solid var(--line2);
}

.publicSection--alt {
  background: rgba(0, 0, 0, 0.28);
}

.sectionInner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.sectionHead {
  max-width: 760px;
  margin-bottom: 28px;
}

.sectionHead h2,
.panelHeader h2,
.formCard h2,
.screenHead h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.08;
}

.sectionHead p,
.panelHeader p,
.screenHead p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.audienceGrid,
.processGrid,
.metricGrid,
.entityGrid,
.settingsGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.audienceGrid article,
.processGrid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 8, 8, 0.78);
}

.audienceGrid h3,
.processGrid h3 {
  margin: 0 0 8px;
}

.audienceGrid p,
.processGrid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.processGrid b {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 12px;
  color: #05080f;
  background: var(--gold);
}

.applyGrid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 22px;
  align-items: start;
}

.applyCopy,
.formCard {
  border-radius: 24px;
}

.applyCopy {
  position: sticky;
  top: 98px;
  padding: 26px;
  border: 1px solid var(--goldLine);
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.1), rgba(0, 0, 0, 0.46));
}

.applyCopy h2 {
  margin: 0;
}

.applyCopy p,
.applyCopy li {
  color: var(--muted);
  line-height: 1.55;
}

.applyCopy ul {
  padding-left: 20px;
}

.formCard {
  padding: 26px;
}

.formIntro {
  margin: 8px 0 22px;
  color: var(--muted);
}

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

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field > span,
.field legend {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.field > small {
  color: var(--muted2);
  font-size: 0.76rem;
  line-height: 1.42;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(160, 174, 200, 0.62);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--goldLine);
  background: rgba(255, 215, 0, 0.055);
}

.checkLine {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  line-height: 1.48;
}

.checkLine input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--gold);
}

.checkLine a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.formStatus,
.syncNotice {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  line-height: 1.45;
}

.formStatus:empty {
  display: none;
}

.formStatus--success,
.syncNotice--success,
.pill--success,
.statusPill--success {
  color: #caffd7;
  border-color: rgba(85, 200, 120, 0.36);
  background: rgba(85, 200, 120, 0.09);
}

.formStatus--error,
.syncNotice--error,
.pill--danger,
.statusPill--danger {
  color: #ffd2d0;
  border-color: rgba(243, 107, 104, 0.42);
  background: rgba(243, 107, 104, 0.1);
}

.formStatus--warning,
.syncNotice--warning,
.pill--warning,
.statusPill--warning {
  color: #fff5bd;
  border-color: var(--goldLine);
  background: var(--goldSoft);
}

.privateLogin {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 72px;
}

.loginPanel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 24px;
  border-radius: 22px;
  border-color: var(--goldLine);
}

.loginPanel h2 {
  margin: 0 0 7px;
}

.loginPanel p {
  margin: 0;
  color: var(--muted);
}

.publicFoot {
  border-top: 1px solid var(--line);
  background: #000;
}

.publicFoot__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 110px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted2);
}

.publicFoot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.publicFoot a:hover {
  color: var(--gold);
}

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

.statusCard {
  width: min(760px, 100%);
  padding: clamp(26px, 6vw, 48px);
  border-radius: 28px;
  border-color: var(--goldLine);
}

.statusCard h1 {
  max-width: none;
  font-size: clamp(2rem, 6vw, 4rem);
}

.statusIdentity {
  margin: 24px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  overflow-wrap: anywhere;
}

.workspace {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 18px 14px calc(18px + var(--safeBottom));
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #000, #080808 56%, #050505);
}

.workspaceBrand {
  min-height: 66px;
  padding: 4px 5px 17px;
  border-bottom: 1px solid var(--line2);
}

.sideNav {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.navBtn {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  font-weight: 800;
}

.navBtn__icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line2);
  border-radius: 9px;
  font-size: 0.72rem;
  color: var(--muted2);
}

.navBtn.is-active,
.navBtn:hover {
  color: var(--text);
  border-color: var(--goldLine);
  background: linear-gradient(90deg, var(--goldSoft), rgba(255, 255, 255, 0.025));
}

.navBtn.is-active .navBtn__icon {
  color: #05080f;
  background: var(--gold);
}

.navBtn__count {
  min-width: 24px;
  padding: 3px 6px;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255, 215, 0, 0.1);
  font-size: 0.72rem;
  text-align: center;
}

.sidebarFoot {
  margin-top: auto;
  display: grid;
  gap: 9px;
  padding-top: 18px;
}

.companyMini {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.companyMini strong,
.companyMini span {
  display: block;
}

.companyMini strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.companyMini span {
  margin-top: 3px;
  color: var(--muted2);
  font-size: 0.78rem;
}

.workspaceMain {
  min-width: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 54px 54px;
}

.workspaceTop {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 76px;
  padding: calc(12px + var(--safeTop)) 24px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.22);
  background: rgba(0, 0, 0, 0.93);
  backdrop-filter: blur(15px);
}

.workspaceTop h1 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspaceTop p {
  margin: 3px 0 0;
  color: var(--muted2);
  font-size: 0.8rem;
}

.mobileMenuBtn {
  display: none;
}

.workspaceBody {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 26px;
}

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

.screenHead h1 {
  font-size: clamp(1.75rem, 4vw, 2.65rem);
}

.syncNotice {
  margin: 0 0 18px;
}

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

.metricCard {
  min-width: 0;
  padding: 18px;
  border-radius: var(--radius);
}

.metricCard span,
.metricCard small,
.metricCard strong {
  display: block;
}

.metricCard span {
  color: var(--muted2);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metricCard strong {
  margin: 8px 0 5px;
  overflow: hidden;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  text-overflow: ellipsis;
}

.metricCard small {
  color: var(--muted);
  line-height: 1.35;
}

.panel {
  margin-top: 18px;
  padding: 20px;
  border-radius: 20px;
}

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

.panelHeader h2 {
  font-size: 1.22rem;
}

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

.entityCard {
  min-width: 0;
  padding: 18px;
  border-radius: 17px;
}

.entityCard__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.entityCard h3 {
  margin: 0;
  overflow-wrap: anywhere;
}

.entityCard p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.entityCard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.entityCard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line2);
}

.moneyTag {
  display: grid;
  gap: 2px;
  text-align: right;
}

.moneyTag span {
  color: var(--muted2);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.moneyTag strong {
  color: var(--gold);
  font-size: 1.18rem;
}

.routeBox {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  padding: 14px;
  border: 1px solid var(--line2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.routeBox strong {
  overflow-wrap: anywhere;
}

.routeBox span {
  color: var(--gold);
  font-weight: 900;
}

.timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.timeline span {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted2);
  font-size: 0.75rem;
}

.timeline span.is-current,
.timeline span.is-done {
  color: var(--text);
  border-color: var(--goldLine);
  background: var(--goldSoft);
}

.emptyState {
  padding: 34px 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.emptyState strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
}

.dataTableWrap {
  overflow-x: auto;
  border: 1px solid var(--line2);
  border-radius: 15px;
}

.dataTable {
  width: 100%;
  min-width: 740px;
  border-collapse: collapse;
}

.dataTable th,
.dataTable td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line2);
  text-align: left;
  vertical-align: top;
}

.dataTable th {
  color: var(--muted2);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

.dataTable strong {
  color: var(--text);
}

.inlineForm,
.editForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--goldLine);
  border-radius: 17px;
  background: rgba(255, 215, 0, 0.045);
}

.inlineForm[hidden],
.editForm[hidden] {
  display: none;
}

.uploadCard {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(220px, 1fr) auto;
  align-items: end;
  gap: 13px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--goldLine);
  border-radius: 17px;
  background: rgba(255, 215, 0, 0.045);
}

.manualNotice {
  margin-bottom: 18px;
  padding: 15px;
  border-left: 3px solid var(--gold);
  border-radius: 0 13px 13px 0;
  color: var(--muted);
  background: rgba(255, 215, 0, 0.07);
  line-height: 1.48;
}

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

.noticeCard {
  padding: 18px;
  border-radius: var(--radius);
}

.noticeCard h3 {
  margin: 0 0 7px;
}

.noticeCard p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.46;
}

.mobileTabbar {
  display: none;
}

.navScrim {
  display: none;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: calc(18px + var(--safeBottom));
  z-index: 120;
  width: min(390px, calc(100% - 36px));
  padding: 13px 15px;
  border: 1px solid var(--goldLine);
  border-radius: 14px;
  color: var(--text);
  background: rgba(5, 8, 15, 0.97);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.48);
}

.toast--error {
  border-color: rgba(243, 107, 104, 0.46);
}

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

  .networkBoard {
    max-width: 720px;
  }

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

  .workspace {
    grid-template-columns: 250px minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .workspace {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(310px, 86vw);
    z-index: 90;
    transform: translateX(-104%);
    transition: transform 190ms ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .mobileMenuBtn {
    display: inline-flex;
  }

  .navScrim {
    position: fixed;
    inset: 0;
    z-index: 80;
    border: 0;
    background: rgba(0, 0, 0, 0.78);
  }

  .navScrim.is-open {
    display: block;
  }

  .workspaceTop {
    padding-inline: 14px;
  }

  .workspaceBody {
    padding: 20px 14px 96px;
  }

  .mobileTabbar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + var(--safeBottom));
    z-index: 65;
    min-height: 62px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 6px;
    border: 1px solid var(--goldLine);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.94);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(14px);
  }

  .mobileTabbar[data-count="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mobileTabbar[data-count="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mobileTabbar button {
    min-width: 0;
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: var(--muted2);
    background: transparent;
    font-size: 0.69rem;
    font-weight: 850;
  }

  .mobileTabbar button.is-active {
    color: #05080f;
    border-color: var(--gold);
    background: var(--gold);
  }

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

  .applyCopy {
    position: static;
  }

  .audienceGrid,
  .processGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .publicTop__inner {
    min-height: 66px;
  }

  .publicBrand img {
    width: 42px;
    height: 42px;
  }

  .publicBrand strong {
    max-width: 150px;
  }

  .publicTop .ghostBtn {
    min-height: 40px;
    padding-inline: 11px;
    font-size: 0.82rem;
  }

  .publicHero {
    padding-top: 46px;
  }

  .publicHero h1 {
    font-size: clamp(2.35rem, 14vw, 4rem);
  }

  .trustStrip,
  .formGrid,
  .inlineForm,
  .editForm,
  .settingsGrid,
  .entityGrid {
    grid-template-columns: 1fr;
  }

  .field--full,
  .checkLine {
    grid-column: auto;
  }

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

  .publicFoot__inner {
    padding: 24px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .screenHead,
  .panelHeader {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .routeBox span {
    transform: rotate(90deg);
    justify-self: start;
  }

  .uploadCard {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

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

  .moneyTag {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .publicHero,
  .sectionInner,
  .privateLogin,
  .publicTop__inner,
  .publicFoot__inner {
    width: min(100% - 22px, 1180px);
  }

  .networkBoard,
  .formCard,
  .panel,
  .statusCard {
    padding: 17px;
  }

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

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

  .boardFlow article {
    grid-template-columns: 38px 1fr;
  }

  .boardFlow article > span {
    grid-column: 2;
  }

  .mobileTabbar {
    left: 6px;
    right: 6px;
    bottom: calc(6px + var(--safeBottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
