:root {
  --page: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-blue: #f3f7ff;
  --ink: #102034;
  --ink-strong: #071529;
  --muted: #65748a;
  --muted-strong: #44546a;
  --line: #dde4ec;
  --line-strong: #cbd5e1;
  --brand: #1458e6;
  --brand-dark: #0b3fab;
  --brand-soft: #eaf1ff;
  --cyan: #0c93ad;
  --green: #18845d;
  --green-soft: #e8f7f0;
  --violet: #7252c9;
  --amber: #b46b08;
  --amber-soft: #fff5df;
  --danger: #c53c45;
  --danger-soft: #fff0f1;
  --shadow-sm: 0 1px 2px rgba(15, 35, 60, 0.05);
  --shadow-md:
    0 16px 38px rgba(15, 35, 60, 0.08),
    0 3px 10px rgba(15, 35, 60, 0.04);
  --shadow-lg:
    0 28px 80px rgba(8, 25, 49, 0.2),
    0 8px 24px rgba(8, 25, 49, 0.1);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(20, 88, 230, 0.07), transparent 26%),
    var(--page);
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

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

button,
a,
input,
select {
  outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  box-shadow: 0 0 0 3px rgba(20, 88, 230, 0.22);
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  height: 72px;
  border-bottom: 1px solid rgba(214, 224, 235, 0.88);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 8px rgba(17, 39, 67, 0.03);
  backdrop-filter: blur(18px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1500px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.18), transparent 48%),
    var(--brand);
  box-shadow: 0 8px 18px rgba(20, 88, 230, 0.23);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__text strong {
  color: var(--ink-strong);
  font-size: 18px;
  letter-spacing: 0.09em;
}

.brand__text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.beta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid #d8cdf8;
  border-radius: 999px;
  color: #6145b5;
  background: #f4f0ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.beta-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7d5bdf;
  box-shadow: 0 0 0 4px rgba(125, 91, 223, 0.12);
}

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

.user-chip__avatar {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(140deg, #2369ec, #123e9d);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.user-chip__identity {
  display: flex;
  min-width: 0;
  max-width: 170px;
  flex-direction: column;
  line-height: 1.2;
}

.user-chip__identity strong,
.user-chip__identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip__identity strong {
  color: var(--ink-strong);
  font-size: 12px;
}

.user-chip__identity small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    color 150ms ease,
    background 150ms ease,
    border-color 150ms ease;
}

.button:not(:disabled):hover {
  transform: translateY(-1px);
}

.button--primary {
  color: #fff;
  border-color: var(--brand);
  background: linear-gradient(135deg, #1d64ec, #1046c0);
  box-shadow: 0 8px 20px rgba(20, 88, 230, 0.2);
}

.button--primary:not(:disabled):hover {
  border-color: var(--brand-dark);
  background: linear-gradient(135deg, #1357dd, #0d3ca7);
  box-shadow: 0 10px 24px rgba(20, 88, 230, 0.27);
}

.button--secondary {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.button--secondary:not(:disabled):hover {
  border-color: #aebdce;
  background: var(--surface-soft);
}

.button--quiet {
  min-height: 36px;
  padding-inline: 11px;
  color: var(--muted-strong);
  border-color: transparent;
  background: transparent;
}

.button--quiet:not(:disabled):hover {
  color: var(--ink);
  background: #f1f4f7;
}

.button--small {
  min-height: 35px;
  padding-inline: 12px;
  border-radius: 9px;
  font-size: 12px;
}

.button--wide {
  width: 100%;
}

.button.is-loading {
  pointer-events: none;
}

.button.is-loading::before {
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: spin 700ms linear infinite;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.state-view {
  display: grid;
  min-height: calc(100vh - 72px);
  padding: 48px 20px;
  place-items: center;
}

.state-card {
  width: min(100%, 650px);
  padding: 54px 52px;
  border: 1px solid rgba(214, 224, 235, 0.95);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 90% 10%, rgba(20, 88, 230, 0.07), transparent 30%),
    var(--surface);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.state-card--loading {
  padding-block: 72px;
}

.state-card h1 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.035em;
}

.state-card > p:not(.eyebrow):not(.security-note) {
  margin: 15px auto 0;
  color: var(--muted);
  line-height: 1.75;
}

.state-card__lead {
  max-width: 500px;
  font-size: 15px;
}

.state-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 18px;
  font-size: 25px;
  font-weight: 700;
}

.state-icon--warning {
  color: var(--brand);
  background: var(--brand-soft);
}

.state-icon--danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.state-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 30px 0;
}

.state-steps div {
  padding: 16px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.state-steps span {
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.state-steps p {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.state-card__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.security-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.security-note span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
  font-weight: 800;
}

.loader-orbit {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 26px;
  border: 1px solid #cfdbeb;
  border-radius: 50%;
}

.loader-orbit::before,
.loader-orbit::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.loader-orbit::before {
  inset: 8px;
  border: 1px dashed #b8c9dd;
  animation: spin 4s linear infinite;
}

.loader-orbit::after {
  inset: 21px;
  background: var(--brand);
  box-shadow: 0 0 18px rgba(20, 88, 230, 0.35);
}

.loader-orbit span {
  position: absolute;
  z-index: 2;
  top: -3px;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #36bad2;
  box-shadow: 0 0 0 4px rgba(54, 186, 210, 0.14);
  transform-origin: 4px 35px;
  animation: orbit 1.5s linear infinite;
}

.access-view {
  min-height: calc(100vh - 72px);
  padding: 34px;
}

.access-layout {
  display: grid;
  width: min(1380px, 100%);
  min-height: min(760px, calc(100vh - 140px));
  margin: 0 auto;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.35fr) minmax(390px, 0.65fr);
  border: 1px solid rgba(210, 221, 233, 0.9);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.access-story {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: center;
  padding: clamp(54px, 7vw, 100px);
  color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 76% 18%, rgba(41, 178, 222, 0.25), transparent 29%),
    linear-gradient(145deg, #06162c 0%, #0b284d 54%, #103d6e 100%);
  background-size:
    34px 34px,
    34px 34px,
    auto,
    auto;
}

.access-story::after {
  position: absolute;
  right: -140px;
  bottom: -190px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(107, 211, 236, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 55px rgba(76, 188, 224, 0.035),
    0 0 0 110px rgba(76, 188, 224, 0.025);
  content: "";
}

.access-story__glow {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: rgba(37, 111, 232, 0.22);
  filter: blur(90px);
}

.hero-kicker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: rgba(229, 243, 255, 0.72);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero-kicker span {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(108, 218, 241, 0.32);
  border-radius: 8px;
  color: #8be3f5;
  background: rgba(47, 183, 213, 0.12);
  font-size: 9px;
  letter-spacing: 0;
}

.access-story h1 {
  position: relative;
  max-width: 760px;
  margin: 25px 0 0;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -0.055em;
}

.access-story > p:not(.hero-kicker) {
  position: relative;
  max-width: 670px;
  margin: 25px 0 0;
  color: rgba(224, 237, 251, 0.72);
  font-size: 15px;
  line-height: 1.8;
}

.access-features {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 58px;
  grid-template-columns: repeat(3, 1fr);
}

.access-features article {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(12px);
}

.access-features span {
  color: #76d4e9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.access-features strong {
  display: block;
  margin-top: 12px;
  font-size: 14px;
}

.access-features p {
  margin: 8px 0 0;
  color: rgba(224, 237, 251, 0.62);
  font-size: 11px;
  line-height: 1.6;
}

.access-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 5vw, 72px);
  background:
    radial-gradient(circle at 100% 0%, rgba(20, 88, 230, 0.08), transparent 28%),
    var(--surface);
}

.access-panel__icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 18px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 28px;
  font-weight: 500;
}

.access-panel h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 28px;
  letter-spacing: -0.035em;
}

.access-panel > p:not(.eyebrow):not(.access-panel__footnote) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.access-user-summary {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 28px 0 24px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.access-user-summary > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(140deg, #2369ec, #123e9d);
  font-size: 10px;
  font-weight: 800;
}

.access-user-summary div {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.access-user-summary small {
  color: var(--muted);
  font-size: 9px;
}

.access-user-summary strong {
  overflow: hidden;
  margin-top: 3px;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-user-summary b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
  font-size: 11px;
}

#access-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.code-input-wrap {
  position: relative;
}

.code-input-wrap input {
  width: 100%;
  height: 50px;
  padding: 0 70px 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--ink);
  background: var(--surface);
  font-size: 17px;
  letter-spacing: 0.28em;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.code-input-wrap input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(20, 88, 230, 0.11);
}

.code-visibility {
  position: absolute;
  top: 7px;
  right: 7px;
  height: 36px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  color: var(--muted-strong);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.code-visibility:hover {
  background: var(--surface-soft);
}

.form-error {
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 11px;
  line-height: 1.5;
}

#unlock-button {
  height: 48px;
  margin-top: 18px;
}

.access-panel__footnote {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.dashboard {
  padding: 26px 20px 40px;
}

.dashboard__inner {
  width: min(1500px, 100%);
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  border: 1px solid rgba(61, 105, 161, 0.35);
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at 86% 10%, rgba(43, 186, 218, 0.24), transparent 30%),
    linear-gradient(135deg, #06172f, #0b294e 58%, #124271);
  box-shadow: 0 16px 38px rgba(8, 28, 55, 0.17);
}

.hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}

.hero__content {
  position: relative;
  display: flex;
  min-height: 240px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 42px 46px;
}

.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero__content > div:first-child > p:last-child {
  max-width: 720px;
  margin: 17px 0 0;
  color: rgba(224, 237, 251, 0.72);
  font-size: 14px;
  line-height: 1.75;
}

.hero__status {
  display: flex;
  min-width: 220px;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  padding-bottom: 3px;
}

.hero__status span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(91, 232, 180, 0.2);
  border-radius: 999px;
  color: #aaf0d0;
  background: rgba(30, 163, 109, 0.09);
  font-size: 10px;
  font-weight: 700;
}

.hero__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4fe1a4;
  box-shadow: 0 0 0 4px rgba(79, 225, 164, 0.1);
}

.hero__status small {
  max-width: 270px;
  color: rgba(224, 237, 251, 0.55);
  font-size: 10px;
  text-align: right;
}

.stats-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stat-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.stat-card__icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
}

.stat-card--blue .stat-card__icon {
  color: var(--brand);
  background: var(--brand-soft);
}

.stat-card--cyan .stat-card__icon {
  color: var(--cyan);
  background: #e5f7fa;
}

.stat-card--green .stat-card__icon {
  color: var(--green);
  background: var(--green-soft);
}

.stat-card--violet .stat-card__icon {
  color: var(--violet);
  background: #f2edff;
}

.stat-card--amber .stat-card__icon {
  color: var(--amber);
  background: var(--amber-soft);
}

.stat-card > div:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.stat-card strong {
  color: var(--ink-strong);
  font-size: 23px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-card span {
  overflow: hidden;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.filter-panel {
  padding: 24px 26px 19px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 100% 0%, rgba(20, 88, 230, 0.04), transparent 20%),
    var(--surface);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.section-heading .eyebrow {
  margin-bottom: 7px;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 20px;
  letter-spacing: -0.025em;
}

.section-heading > div > p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.refresh-symbol {
  display: inline-block;
  font-size: 15px;
  line-height: 1;
}

.is-refreshing .refresh-symbol {
  animation: spin 800ms linear infinite;
}

.filters {
  display: grid;
  gap: 10px;
  margin-top: 21px;
  grid-template-columns: minmax(250px, 1.45fr) repeat(4, minmax(145px, 0.75fr));
}

.filters > label:not(.search-field),
.sort-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filters > label > span,
.sort-control > span {
  color: var(--muted-strong);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.filters select,
.sort-control select {
  width: 100%;
  height: 42px;
  padding: 0 33px 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background-color: var(--surface);
  font-size: 11px;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.filters select:focus,
.sort-control select:focus {
  border-color: var(--brand);
}

.search-field {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-top: 18px;
}

.search-field i {
  position: absolute;
  z-index: 1;
  bottom: 14px;
  left: 14px;
  width: 12px;
  height: 12px;
  border: 1.8px solid var(--muted);
  border-radius: 50%;
}

.search-field i::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 1.8px;
  border-radius: 1px;
  background: var(--muted);
  content: "";
  transform: rotate(45deg);
}

.search-field input {
  width: 100%;
  height: 42px;
  padding: 0 64px 0 39px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface);
  font-size: 12px;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.search-field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(20, 88, 230, 0.08);
}

.search-field kbd {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-bottom-color: #bac5d2;
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface-soft);
  font-family: inherit;
  font-size: 9px;
  line-height: 1;
}

.filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #edf0f4;
}

.filter-footer > span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.filter-footer > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-control {
  flex-direction: row;
  align-items: center;
}

.sort-control select {
  width: 185px;
  height: 34px;
  font-size: 10px;
}

.list-panel {
  min-height: 380px;
}

.list-loading {
  padding: 24px;
}

.list-loading__label,
.detail-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  color: var(--muted);
  font-size: 11px;
}

.mini-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid #cbd7e5;
  border-right-color: var(--brand);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.skeleton-row {
  height: 62px;
  margin-top: 8px;
  border-radius: 10px;
  background: linear-gradient(90deg, #f1f4f7, #f8fafb 45%, #f1f4f7 80%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.inline-state {
  display: flex;
  min-height: 390px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px 20px;
  text-align: center;
}

.inline-state__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  color: var(--muted-strong);
  background: var(--surface-soft);
  font-size: 21px;
  font-weight: 700;
}

.inline-state h3 {
  margin: 15px 0 0;
  color: var(--ink-strong);
  font-size: 16px;
}

.inline-state p {
  max-width: 440px;
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.prospect-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  table-layout: fixed;
}

.prospect-table th,
.prospect-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #edf0f4;
  text-align: left;
  vertical-align: middle;
}

.prospect-table th {
  color: var(--muted);
  background: #fafbfc;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.prospect-table th:nth-child(1) {
  width: 25%;
  padding-left: 25px;
}

.prospect-table th:nth-child(2) {
  width: 15%;
}

.prospect-table th:nth-child(3) {
  width: 12%;
}

.prospect-table th:nth-child(4) {
  width: 11%;
}

.prospect-table th:nth-child(5) {
  width: 13%;
}

.prospect-table th:nth-child(6) {
  width: 14%;
}

.prospect-table th:nth-child(7) {
  width: 10%;
}

.prospect-table tbody tr {
  cursor: pointer;
  transition: background 130ms ease;
}

.prospect-table tbody tr:hover {
  background: #f7faff;
}

.prospect-table tbody tr:focus-visible {
  box-shadow: inset 0 0 0 2px var(--brand);
}

.company-cell {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 11px;
}

.company-symbol {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 10px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 11px;
  font-weight: 800;
}

.company-cell__text,
.stacked-cell {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.company-cell strong {
  overflow: hidden;
  color: var(--ink-strong);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-cell small,
.stacked-cell small {
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stacked-cell > span {
  overflow: hidden;
  color: var(--ink);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-cell {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.score-cell strong {
  color: var(--ink-strong);
  font-size: 19px;
  letter-spacing: -0.03em;
}

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

.badge {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
}

.badge::before {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  opacity: 0.8;
}

.badge--stage-a {
  color: #bf3d50;
  border-color: #f2cbd2;
  background: #fff1f3;
}

.badge--stage-b {
  color: #a46308;
  border-color: #f2ddae;
  background: #fff8e9;
}

.badge--stage-c {
  color: #3265b5;
  border-color: #cbdcf6;
  background: #eff5ff;
}

.badge--stage-d {
  color: #65748a;
  border-color: #dce3eb;
  background: #f5f7f9;
}

.badge--stage-channel {
  color: #7852bd;
  border-color: #ddd0f5;
  background: #f6f1ff;
}

.badge--available {
  color: #1767b7;
  border-color: #c5ddf5;
  background: #eef7ff;
}

.badge--mine {
  color: var(--green);
  border-color: #bde5d2;
  background: var(--green-soft);
}

.badge--claimed {
  color: #68758a;
  border-color: #d8e0e8;
  background: #f3f5f7;
}

.contact-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
}

.contact-status::before {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 50%;
  content: "!";
  color: #768499;
  background: #eef1f5;
  font-size: 8px;
  font-weight: 800;
}

.contact-status--ready {
  color: var(--green);
}

.contact-status--ready::before {
  color: var(--green);
  background: var(--green-soft);
  content: "✓";
}

.owner-cell {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.owner-cell small {
  overflow: hidden;
  max-width: 150px;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-action {
  min-height: 31px;
  width: 100%;
  padding-inline: 8px;
  border-radius: 8px;
  font-size: 9px;
}

.prospect-card-grid {
  display: none;
  gap: 12px;
  padding: 14px;
}

.prospect-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.prospect-card__main {
  display: block;
  width: 100%;
  padding: 17px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.prospect-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.prospect-card__head h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 14px;
  line-height: 1.4;
}

.prospect-card__head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.prospect-card__score {
  min-width: 44px;
  padding: 8px 7px;
  border-radius: 10px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 17px;
  font-weight: 800;
  text-align: center;
}

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

.prospect-card__type {
  margin: 13px 0 0;
  color: var(--muted-strong);
  font-size: 10px;
}

.prospect-card__footer {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: #fafbfc;
}

.prospect-card__footer .button {
  width: 100%;
}

.prospect-card__owner {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: #fcfdfe;
}

.pagination p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.pagination > div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-button {
  display: grid;
  min-width: 31px;
  height: 31px;
  padding: 0 8px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted-strong);
  background: var(--surface);
  font-size: 10px;
  font-weight: 700;
}

.page-button:hover:not(:disabled) {
  border-color: #aebdce;
  background: var(--surface-soft);
}

.page-button.is-active {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.page-ellipsis {
  display: grid;
  width: 24px;
  place-items: center;
  color: var(--muted);
  font-size: 10px;
}

.dashboard-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 22px 8px 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.dashboard-footer p {
  max-width: 760px;
  margin: 0;
}

.dashboard-footer strong {
  color: var(--muted-strong);
}

.dashboard-footer > span {
  white-space: nowrap;
}

.modal {
  width: auto;
  max-width: none;
  height: auto;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.modal::backdrop {
  background: rgba(5, 18, 36, 0.64);
  backdrop-filter: blur(4px);
}

.modal[open] {
  animation: modal-in 170ms ease-out;
}

.modal__surface {
  overflow: hidden;
  border: 1px solid rgba(221, 228, 236, 0.8);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.modal--detail {
  width: min(1040px, calc(100vw - 34px));
}

.modal--detail .modal__surface {
  display: flex;
  max-height: min(880px, calc(100vh - 34px));
  flex-direction: column;
}

.modal__header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 90% 0%, rgba(20, 88, 230, 0.06), transparent 30%),
    var(--surface);
}

.modal__header .eyebrow {
  margin-bottom: 7px;
}

.modal__header h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 23px;
  letter-spacing: -0.035em;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted-strong);
  background: var(--surface);
  font-size: 21px;
  line-height: 1;
}

.icon-button:hover {
  background: var(--surface-soft);
}

.modal__body {
  min-height: 260px;
  padding: 22px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal__footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: #fcfdfe;
}

.detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
  border: 1px solid #cfdced;
  border-radius: 17px;
  background:
    radial-gradient(circle at 95% 0%, rgba(50, 184, 213, 0.12), transparent 25%),
    linear-gradient(140deg, #f6f9ff, #fff);
}

.detail-hero__main {
  min-width: 0;
}

.detail-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.detail-hero h3 {
  margin: 14px 0 0;
  color: var(--ink-strong);
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.detail-hero p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.detail-score {
  display: flex;
  min-width: 92px;
  flex-direction: column;
  align-items: center;
  padding: 14px;
  border: 1px solid #cadcf9;
  border-radius: 14px;
  color: var(--brand);
  background: var(--brand-soft);
}

.detail-score strong {
  font-size: 28px;
  line-height: 1;
}

.detail-score span {
  margin-top: 6px;
  font-size: 9px;
  font-weight: 700;
}

.detail-owner,
.duplicate-alert,
.risk-alert {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 13px;
  font-size: 10px;
  line-height: 1.65;
}

.detail-owner {
  border: 1px solid #bfe5d4;
  color: #126747;
  background: var(--green-soft);
}

.detail-owner--other {
  border-color: #d8e0e8;
  color: #526176;
  background: #f4f6f8;
}

.detail-owner strong,
.duplicate-alert strong,
.risk-alert strong {
  display: block;
  margin-bottom: 2px;
  color: currentColor;
  font-size: 11px;
}

.alert-symbol {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  font-weight: 800;
}

.duplicate-alert,
.risk-alert {
  border: 1px solid #efdba9;
  color: #79500e;
  background: var(--amber-soft);
}

.detail-section {
  margin-top: 24px;
}

.detail-section__heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
}

.detail-section__heading span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 10px;
  font-weight: 800;
}

.detail-section__heading h4 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 14px;
}

.detail-grid {
  display: grid;
  gap: 0;
  overflow: hidden;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.detail-field {
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-field:nth-child(3n) {
  border-right: 0;
}

.detail-field:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.detail-field--wide {
  grid-column: span 2;
}

.detail-field dt {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-field dd {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.detail-field a,
.source-link,
.decision-card a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.detail-field a:hover,
.source-link:hover,
.decision-card a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  padding: 5px 7px;
  border: 1px solid #d9e1ea;
  border-radius: 7px;
  color: var(--muted-strong);
  background: var(--surface-soft);
  font-size: 8px;
  line-height: 1.2;
}

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

.decision-card,
.source-link {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.decision-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.decision-card strong {
  display: block;
  color: var(--ink-strong);
  font-size: 11px;
}

.decision-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.decision-card__links {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  font-size: 9px;
}

.confidence {
  padding: 3px 6px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 8px;
  font-weight: 700;
}

.source-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-strong);
}

.source-link span:first-child {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border-radius: 7px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 8px;
  font-weight: 800;
}

.source-link span:nth-child(2) {
  overflow: hidden;
  flex: 1;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-link b {
  font-size: 11px;
}

.detail-error {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--muted);
  text-align: center;
}

.detail-error strong {
  color: var(--ink);
}

.detail-error p {
  max-width: 480px;
  font-size: 11px;
  line-height: 1.7;
}

.modal--confirm {
  width: min(440px, calc(100vw - 32px));
}

.modal--confirm .modal__surface {
  padding: 30px;
  text-align: center;
}

.confirm-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 16px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 18px;
  font-weight: 800;
}

.modal--confirm h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 21px;
  letter-spacing: -0.03em;
}

.modal--confirm > .modal__surface > p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.modal--confirm .confirm-customer {
  color: var(--ink) !important;
  font-size: 13px !important;
  font-weight: 800;
}

.modal--confirm .modal__footer {
  margin: 24px -30px -30px;
  padding: 14px 20px;
}

.toast-region {
  position: fixed;
  z-index: 100;
  top: 86px;
  right: 18px;
  display: flex;
  width: min(360px, calc(100vw - 36px));
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-md);
  font-size: 11px;
  line-height: 1.55;
  animation: toast-in 180ms ease-out;
  pointer-events: auto;
}

.toast__icon {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  place-items: center;
  border-radius: 7px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 9px;
  font-weight: 800;
}

.toast--success .toast__icon {
  color: var(--green);
  background: var(--green-soft);
}

.toast--error .toast__icon {
  color: var(--danger);
  background: var(--danger-soft);
}

.toast.is-leaving {
  opacity: 0;
  transform: translateX(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
}

@media (max-width: 1180px) {
  .access-layout {
    grid-template-columns: 1fr 400px;
  }

  .access-story {
    padding: 60px;
  }

  .access-features {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .access-features article {
    display: grid;
    align-items: center;
    gap: 8px 12px;
    grid-template-columns: 30px 1fr;
  }

  .access-features span {
    grid-row: span 2;
  }

  .access-features strong,
  .access-features p {
    margin: 0;
  }

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

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

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .topbar__inner {
    width: min(100% - 28px, 1500px);
  }

  .access-view {
    padding: 20px;
  }

  .access-layout {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .access-story {
    min-height: 520px;
    padding: 54px 42px;
  }

  .access-story h1 {
    font-size: clamp(36px, 8vw, 58px);
  }

  .access-panel {
    padding: 50px 42px;
  }

  .hero__content {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px;
  }

  .hero__status {
    min-width: 0;
    align-items: flex-start;
  }

  .hero__status small {
    text-align: left;
  }

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

  .stat-card:last-child {
    grid-column: span 2;
  }

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

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

  .table-wrap {
    display: none;
  }

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

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

  .detail-field:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .detail-field:nth-child(2n) {
    border-right: 0;
  }

  .detail-field:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .detail-field:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .topbar {
    height: 62px;
  }

  .topbar__inner {
    width: calc(100% - 22px);
  }

  .brand__mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 18px;
  }

  .brand__text strong {
    font-size: 15px;
  }

  .brand__text small {
    font-size: 7px;
  }

  .beta-pill {
    display: none;
  }

  .user-chip {
    max-width: 145px;
  }

  .user-chip__identity {
    max-width: 76px;
  }

  #logout-button {
    width: 34px;
    min-height: 34px;
    padding: 0;
    overflow: hidden;
    color: transparent;
  }

  #logout-button::after {
    color: var(--muted-strong);
    content: "↪";
    font-size: 15px;
  }

  .state-view {
    min-height: calc(100vh - 62px);
    padding: 24px 12px;
  }

  .state-card {
    padding: 38px 22px;
    border-radius: 22px;
  }

  .state-steps {
    grid-template-columns: 1fr;
  }

  .state-steps div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    text-align: left;
  }

  .state-steps p {
    margin: 0;
  }

  .state-card__actions {
    flex-direction: column;
  }

  .access-view {
    min-height: calc(100vh - 62px);
    padding: 0;
  }

  .access-layout {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .access-story {
    min-height: 470px;
    padding: 44px 24px;
  }

  .access-story h1 {
    font-size: 38px;
  }

  .access-story > p:not(.hero-kicker) {
    font-size: 13px;
  }

  .access-features {
    display: none;
  }

  .access-panel {
    padding: 40px 24px 48px;
  }

  .dashboard {
    padding: 12px 10px 30px;
  }

  .hero {
    min-height: 280px;
    border-radius: 22px;
  }

  .hero__content {
    min-height: 280px;
    padding: 28px 22px;
  }

  .hero h1 {
    font-size: 35px;
  }

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

  .stat-card {
    padding: 13px;
  }

  .stat-card:last-child {
    grid-column: span 2;
  }

  .stat-card__icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .stat-card strong {
    font-size: 19px;
  }

  .workspace {
    border-radius: 18px;
  }

  .filter-panel {
    padding: 20px 15px 15px;
  }

  .section-heading {
    align-items: center;
  }

  .section-heading > div > p:last-child,
  .section-heading .eyebrow {
    display: none;
  }

  #refresh-button {
    padding: 0 10px;
  }

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

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

  .search-field kbd {
    display: none;
  }

  .search-field input {
    padding-right: 12px;
  }

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

  .filter-footer > div {
    width: 100%;
    justify-content: space-between;
  }

  .sort-control {
    flex: 1;
  }

  .sort-control select {
    width: 100%;
  }

  .prospect-card-grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .pagination {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .pagination > div {
    width: 100%;
    justify-content: center;
  }

  .dashboard-footer {
    flex-direction: column;
  }

  .dashboard-footer > span {
    white-space: normal;
  }

  .modal--detail {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
  }

  .modal--detail .modal__surface {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .modal__header {
    padding: 17px 16px 14px;
  }

  .modal__body {
    padding: 15px;
  }

  .modal__footer {
    padding: 11px 14px;
  }

  .detail-hero {
    padding: 16px;
  }

  .detail-score {
    min-width: 66px;
    padding: 10px;
  }

  .detail-score strong {
    font-size: 22px;
  }

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

  .detail-field,
  .detail-field:nth-child(2n),
  .detail-field:nth-child(3n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .detail-field:last-child {
    border-bottom: 0;
  }

  .detail-field--wide {
    grid-column: auto;
  }

  .decision-grid,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .modal--confirm .modal__surface {
    padding: 25px 20px;
  }

  .modal--confirm .modal__footer {
    margin: 22px -20px -25px;
    flex-direction: column-reverse;
  }

  .modal--confirm .button {
    width: 100%;
  }
}

@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;
  }
}
