:root {
  color-scheme: dark;
  --bg: #030405;
  --panel: rgba(8, 13, 20, .82);
  --line: rgba(164, 203, 255, .16);
  --line2: rgba(138, 193, 255, .38);
  --text: #edf6ff;
  --muted: #9baabd;
  --dim: #667588;
  --blue: #9dcaff;
  --cyan: #76e6ff;
  --hot: #f7c46a;
  --danger: #ff7b8a;
  --ok: #8ef6c6;
  --shadow: 0 24px 60px rgba(0, 0, 0, .48);
  --r: 8px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
[hidden], .screen:not(.active), .wizard-step:not(.active) { display: none !important; }
html { background: var(--bg); }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% -10%, rgba(118, 230, 255, .13), transparent 420px),
    linear-gradient(180deg, #07101b 0%, #030405 48%, #010203 100%);
  font-family: "Bahnschrift", "Agency FB", "Franklin Gothic Medium", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.ambient {
  position: fixed;
  inset: 0;
  z-index: -5;
  overflow: hidden;
  pointer-events: none;
}

.ambient-grid {
  position: absolute;
  left: 50%;
  bottom: -15vh;
  width: min(760px, 142vw);
  height: 72vh;
  transform: translateX(-50%) perspective(520px) rotateX(66deg);
  transform-origin: bottom;
  background-image:
    linear-gradient(rgba(118, 230, 255, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 230, 255, .12) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, transparent, black 20%, black 66%, transparent);
  animation: gridMove 18s linear infinite;
}

.ambient-island {
  position: absolute;
  left: 50%;
  top: 92px;
  width: min(410px, 92vw);
  height: 190px;
  transform: translateX(-50%);
  opacity: .62;
  filter: drop-shadow(0 0 36px rgba(98, 164, 255, .38));
}

.ambient-island::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 36px;
  height: 96px;
  background: linear-gradient(180deg, rgba(157, 202, 255, .34), rgba(4, 8, 13, .94) 58%, #010203);
  clip-path: polygon(0 100%, 8% 78%, 19% 74%, 30% 52%, 42% 60%, 52% 12%, 64% 55%, 75% 41%, 88% 72%, 100% 82%, 100% 100%);
}

.ambient-island::after {
  content: "";
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: 35px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(118, 230, 255, .94), transparent);
  box-shadow: 0 0 30px rgba(118, 230, 255, .6);
}

.ambient-scan {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 18% 18%, rgba(118, 230, 255, .12), transparent 2px),
    radial-gradient(circle at 78% 24%, rgba(157, 202, 255, .12), transparent 2px);
  opacity: .72;
}

@keyframes gridMove {
  from { background-position: 0 0, 0 0; }
  to { background-position: 42px 42px, 42px 42px; }
}

.app-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(16px + var(--safe-top)) 14px calc(24px + var(--safe-bottom));
}

.screen.active { animation: enter .34s ease-out both; }
@keyframes enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.console-head, .flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

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

.avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border: 1px solid var(--line2);
  border-radius: var(--r);
  object-fit: cover;
  box-shadow: 0 0 30px rgba(96, 166, 255, .22), var(--shadow);
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3, .micro, button, .status-chip, .step-counter { text-transform: uppercase; }
h1 {
  overflow: hidden;
  font-size: 34px;
  line-height: .9;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 0 22px rgba(157, 202, 255, .23);
}
h2 { font-size: 28px; line-height: .95; font-weight: 900; }
h3 { font-size: 30px; line-height: .96; font-weight: 900; }
.micro {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.status-chip, .step-counter, .mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(8, 13, 20, .72);
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
}

.status-chip { gap: 8px; padding: 0 10px; }
.status-chip span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 14px rgba(142, 246, 198, .72);
}
.status-chip.locked { color: var(--danger); }
.status-chip.locked span {
  background: var(--danger);
  box-shadow: 0 0 14px rgba(255, 123, 138, .68);
}
.step-counter { min-width: 62px; }
.mini-button { padding: 0 10px; cursor: pointer; }

.status-board, .panel-block, .wizard-card, .detail-panel, .success-screen {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    linear-gradient(180deg, rgba(157, 202, 255, .07), rgba(255, 255, 255, .015)),
    var(--panel);
  box-shadow: var(--shadow), inset 0 0 26px rgba(118, 230, 255, .025);
  backdrop-filter: blur(12px);
}

.status-board {
  display: grid;
  gap: 18px;
  min-height: 214px;
  margin-top: 22px;
  padding: 18px;
}
.status-board p:not(.micro), .note, .success-screen p, .action-tile small {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.36;
}
.status-board h2 { margin: 8px 0 10px; font-size: 35px; }

.command-button, .primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .08em;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, opacity .16s ease;
  -webkit-tap-highlight-color: transparent;
}

.command-button, .primary-button {
  background: linear-gradient(180deg, #63b6ff, #1f73ff);
  color: #f5fbff;
  box-shadow: 0 0 24px rgba(90, 170, 255, .34), 0 18px 36px rgba(0, 0, 0, .35);
}
.command-button {
  width: 100%;
  justify-content: flex-start;
  padding: 0 16px;
}
.command-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 6px;
  font-size: 13px;
}
.secondary-button {
  border-color: var(--line2);
  background: rgba(7, 12, 19, .86);
  color: var(--blue);
}
.primary-button.full { width: 100%; margin-top: 14px; }
.secondary-button.full { width: 100%; margin-top: 10px; }
button:active { transform: scale(.985); }
button:disabled { cursor: default; opacity: .46; transform: none; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.subscription-panel {
  display: flex;
  min-height: 560px;
  margin-top: 22px;
  padding: 24px 18px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    linear-gradient(180deg, rgba(157, 202, 255, .08), rgba(255, 255, 255, .015)),
    var(--panel);
  box-shadow: var(--shadow), inset 0 0 46px rgba(118, 230, 255, .035);
  backdrop-filter: blur(12px);
}
.subscription-panel h2 {
  margin: 10px 0 14px;
  font-size: 42px;
  line-height: .9;
}
.subscription-panel > p:not(.micro):not(.form-error) {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}
.subscription-signal {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: 26px;
  border: 1px solid var(--line2);
  background: rgba(3, 6, 10, .78);
  clip-path: polygon(50% 0, 92% 23%, 92% 73%, 50% 100%, 8% 73%, 8% 23%);
  box-shadow: 0 0 34px rgba(103, 167, 255, .24);
}
.subscription-signal::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid var(--cyan);
  clip-path: inherit;
  opacity: .65;
}
.subscription-signal span {
  color: var(--blue);
  font-size: 22px;
  font-weight: 900;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.action-tile {
  position: relative;
  display: grid;
  gap: 9px;
  min-height: 142px;
  padding: 13px;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(7, 12, 19, .77);
  box-shadow: inset 0 0 22px rgba(157, 202, 255, .035);
  cursor: pointer;
}
.action-tile.wide { grid-column: 1 / -1; min-height: 108px; }
.action-tile.accent { border-color: rgba(247, 196, 106, .48); }
.action-tile strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 18px;
  line-height: 1.02;
  font-weight: 900;
  text-transform: uppercase;
}

.line-icon {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line2);
  border-radius: 7px;
  background: rgba(3, 4, 5, .42);
}
.line-icon::before, .line-icon::after {
  content: "";
  position: absolute;
  border: 1px solid var(--blue);
}
.icon-candidate::before { left: 11px; top: 8px; width: 12px; height: 12px; border-radius: 50%; }
.icon-candidate::after { left: 8px; bottom: 7px; width: 18px; height: 10px; border-radius: 10px 10px 2px 2px; }
.icon-scan::before { inset: 8px; border-left-color: transparent; border-right-color: transparent; }
.icon-scan::after { left: 8px; right: 8px; top: 18px; height: 1px; border: 0; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.icon-message::before { left: 8px; top: 10px; width: 20px; height: 14px; }
.icon-message::after { left: 13px; top: 18px; width: 10px; height: 6px; border-top: 0; border-left: 0; transform: rotate(45deg); }
.icon-link::before { left: 7px; top: 12px; width: 15px; height: 9px; border-radius: 9px; transform: rotate(-22deg); }
.icon-link::after { right: 7px; top: 16px; width: 15px; height: 9px; border-radius: 9px; transform: rotate(-22deg); }
.icon-resource::before { left: 9px; top: 8px; width: 17px; height: 22px; }
.icon-resource::after { left: 13px; top: 13px; width: 10px; height: 0; box-shadow: 0 5px 0 var(--blue), 0 10px 0 var(--blue); }

.flow-head { margin-bottom: 12px; }
.flow-head > div { min-width: 0; }
.flow-head h2 {
  overflow: hidden;
  margin-top: 3px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(7, 12, 19, .78);
  cursor: pointer;
}
.icon-button span {
  width: 14px;
  height: 14px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg) translate(2px, -2px);
}
.progress {
  height: 3px;
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(157, 202, 255, .12);
}
.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--hot));
  transition: width .22s ease;
}

.wizard-card {
  flex: 1 0 auto;
  min-height: 470px;
  padding: 18px;
}
.wizard-step.active { animation: stepIn .24s ease-out both; }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}
.wizard-step h3 { margin: 9px 0 8px; }
.field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.field span {
  color: var(--dim);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(2, 4, 7, .66);
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
}
input { min-height: 52px; padding: 0 13px; }
textarea {
  min-height: 142px;
  padding: 13px;
  resize: vertical;
}
input::placeholder, textarea::placeholder { color: #59687a; }

.choice-stack {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}
.choice {
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-areas: "mark title" "mark note";
  column-gap: 12px;
  min-height: 70px;
  padding: 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(3, 6, 10, .58);
  cursor: pointer;
}
.choice span {
  grid-area: mark;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line2);
  border-radius: 7px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}
.choice strong { grid-area: title; align-self: end; font-size: 17px; line-height: 1.05; }
.choice small { grid-area: note; color: var(--muted); font-size: 13px; line-height: 1.25; }
.choice.selected {
  border-color: var(--cyan);
  background: rgba(31, 115, 255, .15);
  box-shadow: inset 0 0 24px rgba(118, 230, 255, .06);
}

.form-error {
  min-height: 20px;
  margin-top: 14px;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.35;
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: calc(82px + var(--safe-bottom));
  z-index: 100;
  width: min(calc(100% - 28px), 402px);
  padding: 13px 15px;
  border: 1px solid var(--line2);
  border-radius: var(--r);
  background: rgba(5, 9, 15, .96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .52), 0 0 24px rgba(103, 167, 255, .15);
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .18s ease, transform .18s ease;
}
.app-toast.show { opacity: 1; transform: translate(-50%, 0); }
.app-toast.error { border-color: rgba(255, 123, 138, .58); color: #ffdbe0; }
.app-toast.success { border-color: rgba(142, 246, 198, .5); color: var(--ok); }
.app-toast.progress { color: var(--blue); }

.bottom-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 10px;
  margin: 14px -14px calc(-24px - var(--safe-bottom));
  padding: 12px 14px calc(14px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: rgba(3, 4, 5, .86);
  backdrop-filter: blur(16px);
  z-index: 20;
}

.file-drop {
  display: grid;
  place-items: center;
  min-height: 112px;
  margin-top: 18px;
  border: 1px dashed var(--line2);
  border-radius: var(--r);
  background: rgba(2, 4, 7, .52);
  color: var(--blue);
  cursor: pointer;
}
.file-drop input { display: none; }
.file-drop span { font-size: 16px; font-weight: 900; text-transform: uppercase; }
.file-drop small { margin-top: 5px; color: var(--dim); font-size: 12px; text-transform: uppercase; }
.file-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.file-item {
  display: grid;
  grid-template-columns: 44px 1fr 34px;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(5, 8, 13, .68);
}
.file-thumb {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
}
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-item strong, .record-card strong, .detail-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-item small { color: var(--muted); }
.remove-file {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.review-list, .resource-list, .record-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.review-row, .resource-card, .record-card, .empty-state, .skeleton {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(5, 8, 13, .68);
  padding: 12px;
}
.review-row span, .detail-row span, .stat-card span {
  display: block;
  color: var(--dim);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.review-row strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.3;
}

.copy-box {
  display: grid;
  grid-template-columns: 1fr 70px;
  gap: 8px;
  margin-top: 12px;
}
.copy-box button {
  border: 1px solid var(--line2);
  border-radius: var(--r);
  background: rgba(2, 4, 7, .72);
  color: var(--blue);
  cursor: pointer;
  text-transform: uppercase;
}
.panel-block { padding: 16px; margin-top: 12px; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}
.stat-card {
  min-width: 0;
  padding: 13px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(7, 12, 19, .72);
}
.stat-card strong {
  display: block;
  overflow: hidden;
  margin-top: 6px;
  font-size: 24px;
  line-height: 1;
  text-overflow: ellipsis;
}

.resource-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
}
.resource-card .resource-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line2);
  border-radius: 7px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}
.resource-card strong { display: block; font-size: 16px; text-transform: uppercase; }
.resource-card small { color: var(--muted); overflow-wrap: anywhere; }
.resource-card a { color: var(--blue); font-size: 12px; font-weight: 900; text-transform: uppercase; }

.success-screen {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 48px);
  padding: 24px 18px;
  text-align: center;
}
.success-screen h2 { margin: 8px 0 8px; font-size: 34px; }
.success-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  border: 1px solid var(--cyan);
  border-radius: var(--r);
  color: var(--cyan);
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 0 28px rgba(118, 230, 255, .2);
}
.id-box {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(2, 4, 7, .54);
  color: var(--blue);
  overflow-wrap: anywhere;
}

.admin-screen .flow-head { margin-bottom: 10px; }
.admin-tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 0;
  background: linear-gradient(180deg, rgba(3, 4, 5, .96), rgba(3, 4, 5, .72));
  backdrop-filter: blur(12px);
}
.admin-tabs button {
  min-height: 40px;
  padding: 0 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(7, 12, 19, .72);
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-tabs button.active {
  border-color: var(--cyan);
  color: var(--text);
  background: rgba(31, 115, 255, .18);
}
.admin-layout { display: grid; gap: 10px; }
.stat-grid.compact { margin-bottom: 10px; }
.record-card {
  display: grid;
  gap: 8px;
  cursor: pointer;
}
.record-card.active { border-color: var(--cyan); }
.record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.detail-panel {
  display: none;
  padding: 14px;
}
.detail-panel.active { display: block; }
.detail-grid { display: grid; gap: 8px; margin-top: 12px; }
.detail-row {
  min-width: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.detail-row strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  white-space: normal;
}
.status-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.status-controls button, .attachment-link {
  min-height: 38px;
  border: 1px solid var(--line2);
  border-radius: var(--r);
  background: rgba(2, 4, 7, .7);
  color: var(--blue);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}
.attachment-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.attachment-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  overflow: hidden;
}
.attachment-link.unavailable {
  color: var(--muted);
  cursor: default;
  text-align: left;
  text-transform: none;
}
.reply-box { display: grid; gap: 8px; margin-top: 12px; }
.reply-box textarea { min-height: 100px; }
.empty-state, .skeleton {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}
.skeleton {
  min-height: 74px;
  background:
    linear-gradient(90deg, rgba(157, 202, 255, .04), rgba(157, 202, 255, .12), rgba(157, 202, 255, .04)),
    rgba(5, 8, 13, .68);
  background-size: 220% 100%;
  animation: shimmer 1.15s ease-in-out infinite;
}
@keyframes shimmer {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

.ecosystem-onboarding { max-width: 720px; }
.home-resources { margin-bottom: 14px; }
.section-caption { display: flex; align-items: end; justify-content: space-between; margin-bottom: 9px; }
.section-caption h2 { margin: 2px 0 0; font-size: 22px; text-transform: uppercase; }
.resource-access-grid { display: grid; gap: 9px; margin-top: 18px; text-align: left; }
.resource-access-grid.compact { margin-top: 0; grid-template-columns: 1fr; }
.access-resource {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(8, 13, 20, .88);
  box-shadow: inset 0 1px rgba(255, 255, 255, .02);
}
.access-resource.required { border-color: rgba(118, 230, 255, .34); }
.access-resource.joined { border-color: rgba(103, 167, 255, .44); background: rgba(10, 22, 34, .92); }
.access-resource.entry-focus {
  border-color: #67a7ff;
  animation: entry-focus 1.25s ease-in-out 2;
}
@keyframes entry-focus {
  0%, 100% { box-shadow: inset 0 1px rgba(255, 255, 255, .02), 0 0 0 rgba(68, 155, 255, 0); }
  50% { box-shadow: inset 0 1px rgba(255, 255, 255, .04), 0 0 22px rgba(68, 155, 255, .38); }
}
.access-resource .resource-mark { width: 42px; height: 42px; }
.access-resource-copy { min-width: 0; display: flex; flex-direction: column; }
.access-resource-copy strong { color: var(--text); font-size: 14px; line-height: 1.2; }
.access-resource-copy small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.access-kind { margin-bottom: 5px; color: var(--cyan); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.access-status { margin-top: 8px; color: var(--dim); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.status-joined { color: var(--cyan); }
.status-pending { color: var(--blue); }
.access-actions { grid-column: 1 / -1; display: flex; gap: 7px; }
.access-actions button {
  min-height: 36px;
  flex: 1;
  border: 1px solid rgba(103, 167, 255, .42);
  border-radius: var(--r);
  background: rgba(15, 28, 43, .9);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.access-confirmation { margin-top: 12px; padding: 11px; border: 1px solid rgba(118, 230, 255, .34); color: var(--cyan); font-weight: 700; text-align: center; }
.resource-access-grid.compact .access-resource { grid-template-columns: 32px minmax(0, 1fr); padding: 10px; }
.resource-access-grid.compact .resource-mark { width: 32px; height: 32px; font-size: 10px; }
.resource-access-grid.compact .access-resource-copy small { display: none; }
.resource-access-grid.compact .access-actions button { min-height: 32px; font-size: 9px; }

.fraud-periods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 10px; }
.fraud-periods button, .resource-control-row button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #0d1118;
  color: var(--muted);
}
.fraud-periods button.active { border-color: var(--blue); color: var(--text); background: rgba(103, 167, 255, .16); }
.fraud-mode-banner {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid rgba(84, 220, 165, .4);
  background: rgba(24, 101, 76, .12);
}
.fraud-mode-banner span { color: #7bf0bd; font-weight: 900; }
.fraud-mode-banner small { color: var(--muted); }
.fraud-mode-banner.attack { border-color: rgba(255, 94, 115, .5); background: rgba(142, 29, 47, .16); }
.fraud-mode-banner.attack span { color: var(--danger); }
.fraud-section { margin-top: 12px; }
.fraud-event, .source-control, .resource-control-row, .risk-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(174, 203, 255, .1);
}
.fraud-event { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.fraud-event div { min-width: 0; display: flex; flex-direction: column; }
.fraud-event small { grid-column: 1 / -1; color: var(--dim); }
.fraud-event.severity-high strong { color: var(--danger); }
.fraud-event.severity-medium strong { color: var(--hot); }
.severity-tag, .source-status {
  color: var(--cyan);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}
.source-control div, .resource-control-row div { min-width: 0; display: flex; flex-direction: column; }
.source-control small, .resource-control-row small { color: var(--muted); }
.source-control { align-items: flex-start; flex-direction: column; }
.source-actions, .risk-actions { display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: 6px; width: 100%; }
.source-actions button, .risk-actions button, .risk-user button, .text-button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #0d1118;
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.source-actions .danger-action { border-color: rgba(255, 94, 115, .45); color: var(--danger); }
.source-status.status-blocked { color: var(--danger); }
.source-status.status-paused { color: var(--hot); }
.antifraud-metrics { margin: 12px 0 18px; }
.risk-user { align-items: flex-start; flex-wrap: wrap; }
.risk-user > div:first-child { min-width: 0; display: flex; flex: 1 1 160px; flex-direction: column; }
.risk-user small { color: var(--muted); }
.risk-user span { color: var(--cyan); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.risk-user.risk-high span { color: var(--danger); }
.risk-user.risk-medium span { color: var(--hot); }
.detail-copy { margin: 7px 0 12px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.section-label { margin-top: 18px; }
.danger-button {
  min-height: 46px;
  border: 1px solid rgba(255, 94, 115, .55);
  border-radius: var(--r);
  background: rgba(137, 22, 41, .22);
  color: #ff9aaa;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 620px) {
  .resource-access-grid.compact { grid-template-columns: 1fr; }
}

@media (max-width: 350px) {
  h1 { font-size: 26px; }
  .subscription-panel h2 { font-size: 38px; }
  .app-shell { padding-left: 10px; padding-right: 10px; }
  .tile-grid { gap: 8px; }
  .action-tile { min-height: 132px; padding: 10px; }
  .action-tile strong { font-size: 16px; }
  .wizard-card { padding: 14px; }
  .admin-tabs { gap: 4px; }
  .admin-tabs button { font-size: 10px; }
}

#apply.screen.active,
#scam.screen.active,
#support.screen.active {
  display: flex;
  min-height: calc(100svh - 40px - var(--safe-top) - var(--safe-bottom));
  flex-direction: column;
}

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