@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root,
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f8;
  --bg-elevated: rgba(255, 255, 255, 0.96);
  --card: #ffffff;
  --text: #1c2430;
  --muted: #5c6773;
  --accent: #1f4b99;
  --accent-2: #1f4b99;
  --accent-ink: #ffffff;
  --accent-rgb: 31, 75, 153;
  --border: #d8dee6;
  --input: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --header: #ffffff;
  --success: #0e7a43;
  --warn: #8a5a00;
  --error: #b42318;
  --ok: #0e7a43;
  --ok-bg: rgba(14, 122, 67, 0.12);
  --warn-bg: rgba(138, 90, 0, 0.12);
  --danger: #b42318;
  --danger-bg: rgba(180, 35, 24, 0.1);
  --radius: 16px;
  --shadow: 0 10px 28px rgba(20, 32, 51, 0.08);
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --serif: "Source Sans 3", "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10141a;
  --bg-elevated: rgba(22, 27, 34, 0.96);
  --card: #1a212b;
  --text: #e8eef5;
  --muted: #9aa6b4;
  --accent: #8eb6ff;
  --accent-2: #8eb6ff;
  --accent-ink: #0c1422;
  --accent-rgb: 142, 182, 255;
  --border: rgba(255, 255, 255, 0.12);
  --input: #121820;
  --surface: #1a212b;
  --surface-2: #141a22;
  --header: #10141a;
  --success: #7dcea0;
  --warn: #e2b15a;
  --error: #ff9b94;
  --ok: #7dcea0;
  --ok-bg: rgba(125, 206, 160, 0.14);
  --warn-bg: rgba(226, 177, 90, 0.14);
  --danger: #ff9b94;
  --danger-bg: rgba(255, 155, 148, 0.14);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  letter-spacing: 0;
}

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

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  letter-spacing: -0.018em;
  font-weight: 600;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg);
}

.page-bg::after {
  content: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: none;
  margin: 0;
  padding: 0.7rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 20;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: var(--header);
  box-shadow: none;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.35rem;
  background: var(--accent);
  box-shadow: none;
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 0.32rem 0.34rem 0.28rem;
  border: 1.5px solid var(--accent-ink);
  border-bottom: none;
  border-radius: 5px 5px 2px 2px;
  clip-path: polygon(50% 22%, 100% 100%, 0 100%);
}

.nav {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.18rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.nav a,
.portal-nav a,
.portal-tools a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
}

.nav-tabs a.is-current,
.page-home .nav-jobs,
.page-jobs .nav-jobs {
  color: var(--text);
  background: var(--surface);
}

.icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav a:hover,
.portal-nav a:hover,
.portal-tools a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-cta {
  background: var(--accent);
  color: var(--accent-ink) !important;
  box-shadow: none;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
}

.theme-toggle .icon {
  width: 1.05rem;
  height: 1.05rem;
}

.theme-icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-icon-sun {
  display: block;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  position: relative;
}

.main-narrow {
  max-width: 460px;
}

.main-home {
  max-width: 1080px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding: 3.2rem 0 2.5rem;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .site-header .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .product-promo-rail-wrap {
    display: none;
  }
  .site-header,
  .portal-header {
    flex-wrap: wrap;
    padding-inline: 0.85rem;
  }
  .portal-top {
    flex-wrap: wrap;
  }
  .site-header .nav a {
    padding: 0.35rem 0.55rem;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  color: var(--accent-2);
  font-weight: 700;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.1);
}

.hero h1,
.portal-hero h1,
.enterprise-hero h1,
.section h2,
.auth-card h1 {
  font-family: var(--font);
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.15rem);
  line-height: 0.98;
  margin: 0 0 1.1rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 38ch;
  margin: 0;
}

.hero-actions,
.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:disabled,
.btn:disabled:hover {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: none;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-google {
  background: #fff;
  color: #1c2430;
  border-color: #d8dee6;
}

.btn-google:hover {
  background: #f7f8fa;
  filter: none;
}

.google-mark {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.auth-or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin: 0.15rem 0 0.95rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.auth-or::before,
.auth-or::after {
  content: "";
  height: 1px;
  background: var(--border);
}

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

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.38rem 0.75rem;
  font-size: 0.82rem;
}

.hero-trust {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-trust li {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sentinel {
  position: relative;
  border-radius: 28px;
  min-height: 320px;
  padding: 1.4rem 1.5rem 1.6rem;
  background:
    radial-gradient(circle at 50% 42%, rgba(var(--accent-rgb), 0.22), transparent 42%),
    linear-gradient(180deg, #141b30, #0c1220);
  border: 1px solid rgba(165, 180, 252, 0.28);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.sentinel::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: conic-gradient(from 120deg, transparent, rgba(var(--accent-rgb), 0.35), transparent 30%);
  animation: sweep 8s linear infinite;
  pointer-events: none;
}

@keyframes sweep {
  to {
    transform: rotate(1turn);
  }
}

.sentinel-top,
.sentinel-orb,
.sentinel-head,
.sentinel-cap {
  position: relative;
  z-index: 1;
}

.sentinel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sentinel-pill {
  color: #86efac;
}

.sentinel-orb {
  width: 92px;
  height: 92px;
  margin: 2.4rem auto 1.2rem;
  border-radius: 50%;
  border: 2px solid rgba(134, 239, 172, 0.55);
  box-shadow: 0 0 40px rgba(52, 211, 153, 0.25);
  background:
    radial-gradient(circle at 50% 50%, rgba(52, 211, 153, 0.18), transparent 62%),
    #10182a;
}

.sentinel-orb::after {
  content: "";
  display: block;
  width: 28px;
  height: 14px;
  margin: 36px auto 0;
  border-left: 3px solid #4ade80;
  border-bottom: 3px solid #4ade80;
  transform: rotate(-45deg);
}

.sentinel-head {
  margin: 0;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #86efac;
}

.sentinel-cap {
  margin: 0.35rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 0.5rem 0 2.5rem;
}

@media (max-width: 700px) {
  .stat-row {
    grid-template-columns: 1fr;
  }
}

.stat-row article {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.stat-row strong {
  display: block;
  font-size: 1.05rem;
}

.stat-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  padding: 2.5rem 0;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin: 0 0 0.4rem;
}

.section-lead {
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card,
.price-card,
.panel,
.auth-card,
.pipeline-col,
.metric-card,
.live-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.card h3,
.price-card h3,
.panel h2,
.candidate-card h3 {
  margin: 0 0 0.45rem;
}

.card p,
.price-card p {
  margin: 0;
  color: var(--muted);
}

.feature-card {
  min-height: 180px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.45);
}

.feature-index {
  display: block;
  margin-bottom: 1.1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.price-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.price-card.featured {
  border-color: rgba(var(--accent-rgb), 0.55);
  background:
    radial-gradient(circle at 80% 0%, rgba(var(--accent-rgb), 0.22), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  transform: translateY(-6px);
  position: relative;
}

.badge {
  position: absolute;
  top: -0.7rem;
  right: 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.68rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0.2rem 0;
}

.price-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.crypto-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.crypto-chip {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.55rem 1rem 0.55rem 0.55rem;
  border-radius: 999px;
  color: var(--text);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pay-asset {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.pay-asset.is-compact {
  gap: 0;
}

.pay-mark {
  position: relative;
  width: 2.35rem;
  height: 2.35rem;
  flex: none;
}

.pay-coin,
.pay-chain svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pay-chain {
  position: absolute;
  right: -0.22rem;
  bottom: -0.08rem;
  width: 1.28rem;
  height: 1.28rem;
  padding: 1.5px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--surface);
}

.pay-asset-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.pay-asset-copy strong {
  color: var(--text);
  font-size: 0.98rem;
}

.pay-asset-copy em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 600;
}

.pay-asset-row,
.price-assets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.pay-asset-row {
  margin-top: 0.75rem;
}

.price-assets {
  gap: 0.55rem;
}

.price-assets .pay-mark,
.pay-asset-row .pay-mark {
  width: 1.7rem;
  height: 1.7rem;
}

.price-assets .pay-chain,
.pay-asset-row .pay-chain {
  width: 0.9rem;
  height: 0.9rem;
}

.product-promo {
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.12), var(--surface));
  padding: 1.25rem 1.35rem;
}

.product-promo-tag {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
}

.product-promo h2,
.product-promo h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--text);
}

.product-promo p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.product-promo-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.product-promo-rail {
  max-width: 210px;
}

.product-promo-rail-wrap {
  position: fixed;
  top: 140px;
  z-index: 5;
  width: 210px;
}

.product-promo-rail-left {
  left: max(0.75rem, calc(50% - 720px));
}

.product-promo-rail-right {
  right: max(0.75rem, calc(50% - 720px));
}

.product-promo-banner {
  margin: 0.5rem 0 1rem;
  padding: 1.6rem 1.7rem;
}

.product-promo-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.product-promo-footer-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 1rem;
}

.product-promo-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  color: var(--muted);
}

.product-promo-footer strong {
  color: var(--text);
}

.product-promo-card {
  margin-top: 1rem;
}

.main-account .product-promo-card {
  margin-top: 0;
  margin-bottom: 1rem;
}

.auth-card h1 {
  margin: 0 0 0.4rem;
  font-size: 2.4rem;
}

.form label[hidden] {
  display: none;
}

.form label {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.form input,
.form select,
.form textarea,
.card-actions select,
.data-table select,
.copy-field,
.stage-select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.72rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input);
  color: var(--text);
  font: inherit;
}

.form input:focus,
.form select:focus,
.form textarea:focus,
.card-actions select:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.75);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.16);
}

.form textarea {
  resize: vertical;
  min-height: 96px;
}

.card-actions select {
  width: auto;
  margin: 0;
  padding: 0.35rem 0.5rem;
  font-size: 0.82rem;
}

.form-footer {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
}

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

.small {
  font-size: 0.85rem;
}

.alert {
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.alert-error {
  background: rgba(251, 113, 133, 0.12);
  color: var(--error);
  border-color: rgba(251, 113, 133, 0.25);
}

.alert-ok {
  background: rgba(52, 211, 153, 0.12);
  color: var(--text);
  border-color: rgba(52, 211, 153, 0.28);
}

.alert-note {
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--text);
  border-color: rgba(var(--accent-rgb), 0.22);
}

.btn-danger {
  background: transparent;
  color: var(--error);
  border-color: rgba(251, 113, 133, 0.45);
}

.alert-success {
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
  border-color: rgba(52, 211, 153, 0.25);
}

.alert-warn {
  background: rgba(251, 191, 36, 0.12);
  color: var(--warn);
  border-color: rgba(251, 191, 36, 0.25);
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.25rem;
}

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

.key-box {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  background: var(--input);
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  border-radius: 14px;
  margin: 0.75rem 0;
}

.key-box code {
  word-break: break-all;
  font-size: 0.85rem;
}

.payment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.payment-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.status {
  text-transform: capitalize;
  font-size: 0.8rem;
}

.status-pending,
.status-submitted {
  color: var(--warn);
}

.status-confirmed {
  color: var(--success);
}

.pay-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem 1rem;
  margin: 1.25rem 0;
}

.pay-details dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.mono,
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.mono {
  word-break: break-all;
  font-size: 0.85rem;
}

.site-footer {
  text-align: center;
  padding: 1.5rem 1rem 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

.logout-form {
  margin-top: 2rem;
}

.admin-confirm {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

.page-monitor .monitor-layout {
  max-width: 1100px;
  margin: 0 auto;
}

.monitor-header,
.review-header,
.panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.monitor-header h1,
.review-header h1 {
  font-family: var(--font);
  font-weight: 600;
  font-size: 2rem;
  margin: 0 0 0.25rem;
}

.monitor-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.pill-ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.pill-warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.pill-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.pill-muted {
  background: var(--surface-2);
  color: var(--muted);
}

.monitor-grid,
.review-grid,
.portal-split,
.policy-grid,
.live-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .monitor-grid {
    grid-template-columns: 1fr 1fr;
  }
  .monitor-chart,
  .monitor-shot {
    grid-column: span 2;
  }
  .review-grid,
  .portal-split {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

@media (min-width: 800px) {
  .policy-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hit-list,
.timeline,
.job-list,
.shot-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hit-list li,
.timeline li,
.job-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

.timeline li.dismissed {
  opacity: 0.5;
}

#traffic-chart,
.shot-wrap {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.shot-wrap {
  margin-top: 1rem;
  overflow: hidden;
}

.shot-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-wrap.hidden,
.hidden {
  display: none;
}

.portal-recruiter,
.portal-enterprise {
  font-family: Roboto, system-ui, -apple-system, sans-serif;
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

.portal-recruiter .page-bg,
.portal-enterprise .page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.portal-nav-root {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  z-index: 10;
}

.portal-nav-root .MuiDrawer-root {
  width: 272px;
  flex-shrink: 0;
}

.portal-nav-root .MuiDrawer-paper {
  position: relative;
  height: 100vh;
  background: var(--surface);
  color: var(--text);
}

.portal-job-tabs-root .MuiTabs-root,
.portal-profile-tabs-root .MuiTabs-root {
  min-height: 0;
}

.portal-job-shell,
.portal-account-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 1.25rem;
  align-items: start;
}

.portal-job-pane,
.portal-account-pane {
  min-width: 0;
}

.portal-header {
  display: none;
}

.portal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.portal-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.portal-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
}

.portal-tag-recruiter,
.portal-tag-enterprise {
  background: rgba(var(--accent-rgb), 0.16);
  color: var(--accent);
}

.portal-org {
  color: var(--muted);
  font-size: 0.85rem;
}

.portal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.portal-flow,
.portal-rest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
}

.portal-flow {
  padding: 0.18rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.portal-nav a.is-active {
  background: rgba(var(--accent-rgb), 0.16);
  color: var(--text) !important;
  box-shadow: none;
}

.portal-flow a.is-active {
  background: var(--accent);
  color: var(--accent-ink) !important;
}

.hire-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0 0 1.25rem;
}

.portal-hero .hire-flow,
.enterprise-hero .hire-flow {
  margin-top: 1.1rem;
  margin-bottom: 0;
}

.hire-flow a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.hire-flow a span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hire-flow a strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.hire-flow a.is-on {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.hire-flow a.is-on span {
  color: var(--accent);
}

.role-people-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.role-people-head h2 {
  margin: 0 0 0.15rem;
  font-size: 1.15rem;
}

.role-people-head h2 a {
  color: var(--text);
  text-decoration: none;
}

.role-people-head p {
  margin: 0;
}

.people-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.people-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

.people-rows li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.people-rows a {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.people-rows a span {
  color: var(--muted);
  font-size: 0.88rem;
}

.people-empty {
  margin: 0;
}

.stage-pill {
  flex: none;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.key-fold {
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 0.9rem 1rem 1rem;
}

.key-fold summary {
  cursor: pointer;
  font-weight: 700;
}

.key-fold summary span {
  margin-left: 0.35rem;
  color: var(--muted);
  font-weight: 600;
}

.key-fold .cand-layout {
  margin-top: 0.9rem;
}

@media (max-width: 720px) {
  .hire-flow {
    grid-template-columns: 1fr;
  }
}

.portal-logout {
  margin: 0 0 0 0.35rem;
}

.portal-main {
  flex: 1;
  min-width: 0;
  max-width: 1200px;
  width: 100%;
  margin: 0;
  padding: 1.75rem 1.75rem 4rem;
  box-sizing: border-box;
}

.portal-hero h1,
.enterprise-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  margin: 0 0 0.35rem;
  line-height: 1;
}

.pipeline-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.75rem 0;
}

@media (max-width: 1000px) {
  .pipeline-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pipeline-board {
    grid-template-columns: 1fr;
  }
  .role-pipeline-head {
    flex-direction: column;
  }
}

.pipeline-col {
  min-height: 220px;
  background: var(--surface-2);
}

.pipeline-col h2 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

.candidate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem;
  margin-bottom: 0.7rem;
}

.candidate-card h3 a {
  color: inherit;
  text-decoration: none;
}

.candidate-card h3 a:hover {
  color: var(--accent);
}

.candidate-card select {
  width: 100%;
  margin-top: 0.65rem;
  font: inherit;
  color: var(--text);
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

.role-pipeline {
  margin-bottom: 1rem;
}

.role-pipeline-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.role-pipeline-head h2 {
  margin: 0 0 0.2rem;
  font-size: 1.35rem;
}

.role-pipeline-head h2 a {
  color: inherit;
  text-decoration: none;
}

.role-pipeline-head h2 a:hover {
  color: var(--accent);
}

.role-pipeline-head p {
  margin: 0;
}

.role-board {
  margin: 0;
}

.role-board .pipeline-col {
  min-height: 0;
  background: var(--surface-2);
}

.pipeline-empty,
.pipeline-quiet {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.pipeline-quiet a {
  color: inherit;
}

.cand-layout.is-list {
  grid-template-columns: 1fr;
}

.candidate-threat {
  border-color: rgba(248, 113, 113, 0.7);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.25);
}

.key-mini {
  font-size: 0.68rem;
  word-break: break-all;
  display: block;
  margin: 0.45rem 0;
  color: var(--muted);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  margin-right: 4px;
}

.status-dot.on {
  background: var(--ok);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.45rem;
}

.inline-form {
  display: inline;
}

.table-wrap,
.panel .data-table {
  width: 100%;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.panel:has(.data-table),
.portal-main:has(> .data-table) {
  overflow-x: auto;
}

.data-table th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

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

.data-table tbody tr:hover {
  background: var(--surface);
}

.row-threat {
  background: rgba(239, 68, 68, 0.08);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  margin: 1.4rem 0 1.6rem;
}

.metric-card {
  text-align: left;
  padding: 1.15rem 1.2rem;
}

.metric-val {
  display: block;
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.metric-danger .metric-val {
  color: #fb7185;
}

.live-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  margin-top: 1rem;
}

.live-threat {
  border-color: rgba(248, 113, 113, 0.7);
}

.risk-band {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.risk-green {
  background: var(--ok-bg);
  color: var(--ok);
}

.risk-amber {
  background: var(--warn-bg);
  color: var(--warn);
}

.risk-red {
  background: var(--danger-bg);
  color: var(--danger);
}

.adj-form {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.trust-layout {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
}

@media (min-width: 900px) {
  .trust-layout {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: start;
  }
}

.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.platform {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.platform.is-on {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: transparent;
}

.trust-field {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.trust-field input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input);
  color: var(--text);
  font: inherit;
}

.trust-stage {
  position: relative;
  min-height: 220px;
  margin: 0.4rem 0 0.9rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #0c0a09;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.trust-stage video,
.trust-stage canvas {
  width: 100%;
  max-height: 360px;
  display: block;
  background: #000;
}

.trust-stage-hint {
  position: absolute;
  inset: 1.5rem;
  margin: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
}

.trust-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.trust-enroll {
  margin-top: 1.1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.trust-enroll summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.trust-score {
  margin: 0.2rem 0 0.6rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.trust-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.trust-result[hidden] {
  display: none;
}


.job-list {
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.hp {
  position: absolute;
  left: -9999px;
}

.market {
  width: min(1040px, calc(100% - 2rem));
  margin: 2.5rem auto 4rem;
}

.market-hero h1,
.role-detail h1 {
  margin: 0.35rem 0 0.6rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.market-kicker,
.role-org {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface-2);
  flex-shrink: 0;
}

.profile-ready {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
}

.profile-ready strong {
  display: block;
}

.profile-ready p {
  margin: 0.1rem 0 0;
}

.profile-ready .btn {
  margin-left: auto;
}

.profile-lock {
  margin-bottom: 1rem;
}

.market-hero p,
.role-copy,
.role-note,
.market-empty {
  max-width: 38rem;
  color: var(--muted);
}

.role-copy {
  white-space: pre-wrap;
}

.role-about {
  margin: 1.15rem 0 0.35rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.role-org a {
  color: inherit;
  text-decoration: none;
}

.role-org a:hover {
  text-decoration: underline;
}

.market-hero .btn {
  margin-top: 0.4rem;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.9rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}

.role-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 150px;
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
}

.role-card:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
}

.role-card h2 {
  margin: 0;
  font-size: 1.25rem;
}

.role-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.market-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.2rem;
  align-items: start;
}

.market-back {
  grid-column: 1 / -1;
  color: var(--muted);
  text-decoration: none;
}

.role-detail,
.apply-card,
.posted-list li {
  padding: 1.2rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
}

.apply-sent {
  color: var(--accent);
}

.market-desk {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 1rem;
  align-items: start;
}

.posted-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.posted-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.posted-head span,
.applicant-list span,
.applicant-list a {
  color: var(--muted);
  font-size: 0.92rem;
}

.applicant-list {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.applicant-list li {
  display: grid;
  gap: 0.1rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--border);
}

@media (max-width: 800px) {
  .form-row,
  .market-detail,
  .market-desk {
    grid-template-columns: 1fr;
  }
}

/* Hiring: jobs, ATS ranking, scheduling */
.hint {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.8rem;
}

.hire {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hire h1 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: -0.015em;
  line-height: 1.05;
}

.hire h2 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.hire .panel > .muted {
  margin: 0 0 0.9rem;
}

.hire-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.hire-head-actions form {
  margin: 0;
}

.hire-job-grid {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-top: 0.5rem;
}

.hire-setup {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: sticky;
  top: 5.5rem;
}

.hire-setup-card {
  margin: 0;
}

.hire-setup-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.hire-setup-card .small {
  font-size: 0.88rem;
  margin: 0 0 0.65rem;
}

.hire-rank-form {
  display: grid;
  gap: 0.55rem;
}

.hire-rank-form label {
  margin: 0;
}

.pipeline-setup summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.pipeline-setup summary::-webkit-details-marker {
  display: none;
}

.pipeline-setup summary::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  margin-right: 0.35rem;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.pipeline-setup[open] summary::before {
  transform: rotate(45deg);
}

.pipeline-setup-count {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.hire-applicants-head {
  margin-bottom: 0.65rem;
}

.hire-applicants-head h2 {
  margin: 0 0 0.2rem;
  font-size: 1.25rem;
}

.stage-tabs-wrap {
  margin-bottom: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  -webkit-overflow-scrolling: touch;
}

.stage-tabs-wrap .stage-tabs {
  flex-wrap: nowrap;
  min-width: min-content;
  padding-bottom: 0.1rem;
}

.stage-tab-muted {
  opacity: 0.85;
}

.hire-empty {
  margin-bottom: 0.75rem;
}

.applicant-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.applicant-identity {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.applicant-decide {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.applicant-decide form {
  margin: 0;
}

.applicant-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.applicant-tools form {
  margin: 0;
}

.applicant-more,
.candidate-card-more {
  font-size: 0.88rem;
}

.applicant-more summary,
.candidate-card-more summary {
  cursor: pointer;
  color: var(--muted);
  width: fit-content;
}

.applicant-move {
  margin-top: 0.45rem;
}

.applicant-move .stage-select {
  width: 100%;
  max-width: 16rem;
}

.applicant-ended {
  opacity: 0.92;
}

.applicant-hired {
  border-color: rgba(52, 211, 153, 0.35);
}

.pipeline-steps li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 0.45rem;
  align-items: center;
}

.pipeline-step-num {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

.stage-pill-hired {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.stage-pill-rejected {
  color: var(--error);
  background: rgba(251, 113, 133, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.stage-pill:not(.stage-pill-hired):not(.stage-pill-rejected) {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
}

.portal-hero-compact {
  margin-bottom: 1.25rem;
}

.portal-hero-compact h1 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.pipeline-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
}

.pipeline-flow li {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.pipeline-flow li:not(:last-child)::after {
  content: none;
}

.role-pipeline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  flex-shrink: 0;
}

.role-board.pipeline-board {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr));
  margin: 0;
}

.candidate-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.candidate-card-top h3 {
  margin: 0;
  font-size: 0.95rem;
  min-width: 0;
}

.candidate-card-top .stage-pill {
  font-size: 0.65rem;
  flex-shrink: 0;
}

.candidate-card-decide {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.candidate-card-decide form {
  margin: 0;
}

.candidate-card-more {
  margin-top: 0.45rem;
}

.candidate-card-more select {
  margin-top: 0.35rem;
}

.hire-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.hire-head p {
  margin: 0;
}

.hire-head a {
  color: var(--accent);
}

.hire-back {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.hire-back::before {
  content: "\2190  ";
}

.hire-forms,
.hire-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.role-rows,
.slot-list,
.applicants {
  margin: 0;
  padding: 0;
  list-style: none;
}

.role-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.role-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.role-row:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.05);
}

.role-row div {
  display: grid;
  gap: 0.15rem;
}

.role-row .muted {
  font-size: 0.88rem;
}

.count-pill,
.slot-pill {
  flex-shrink: 0;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
}

.copy-row {
  display: flex;
  gap: 0.5rem;
}

.copy-field {
  flex: 1;
  min-width: 0;
  margin-top: 0;
  padding: 0.5rem 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
}

.form-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px auto;
  gap: 0.6rem;
  align-items: end;
}

.stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.stage-tabs a {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.stage-tabs a.is-on {
  background: rgba(var(--accent-rgb), 0.14);
  border-color: rgba(var(--accent-rgb), 0.4);
  color: var(--text);
}

.applicants {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.applicant {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
}

.applicant-rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.applicant-rank small {
  color: var(--muted);
}

.fit {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.15rem;
  border: 2px solid currentColor;
}

.fit-high {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
}

.fit-mid {
  color: var(--muted);
  background: rgba(184, 230, 207, 0.06);
}

.fit-low {
  color: var(--muted);
  background: transparent;
}

.applicant-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.applicant-body p {
  margin: 0;
}

.applicant-head strong {
  font-size: 1.08rem;
}

.applicant-identity a {
  color: var(--muted);
}

.stage-select {
  width: auto;
  min-width: 130px;
  margin-top: 0;
  padding: 0.4rem 0.6rem;
  font-size: 0.88rem;
}

.stage-pill {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pipeline-steps {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.pipeline-steps input {
  width: 100%;
  margin: 0;
}

.pipeline-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.applicant-actions form {
  display: inline;
}

.form-inline label {
  margin-bottom: 0;
}

.applicant-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.geo {
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.geo-clear {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
}

.geo-alert {
  background: rgba(255, 180, 168, 0.12);
  color: var(--danger);
}

.geo-idle {
  background: var(--surface-2);
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chip {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.chip-on {
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent);
}

.chip-off {
  border: 1px dashed var(--border);
  color: var(--muted);
}

.applicant-note {
  padding-left: 0.8rem;
  border-left: 2px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

.trail summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.88rem;
}

.trail ul {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.trail li {
  display: grid;
  grid-template-columns: 120px 110px minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.applicant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.applicant-actions form {
  margin: 0;
}

.slot-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 0.6rem 0;
  border-top: 1px solid var(--border);
}

.slot-list li:first-child {
  border-top: 0;
}

.slot-list time {
  min-width: 150px;
  font-weight: 600;
}

.slot-list form {
  margin: 0 0 0 auto;
}

.slot-list li.is-booked time {
  color: var(--accent);
}

.meet-panel {
  margin-bottom: 1rem;
}

.meet-accounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.meet-account {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.meet-account form {
  margin: 0.2rem 0 0;
}

.meet-place {
  margin: 0 0 0.9rem;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.45rem;
}

.meet-place legend {
  margin-bottom: 0.2rem;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.form .place-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: center;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
  cursor: pointer;
}

.form .place-option input {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--accent);
}

.form .place-option input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border: 0;
  box-shadow: none;
}

.form .place-option span {
  display: grid;
  gap: 0.1rem;
  color: var(--text);
  font-size: 0.95rem;
}

.form .place-option small {
  color: var(--muted);
  font-weight: 400;
}

.form .place-option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
}

.form .place-option:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}

.slot-place {
  color: var(--muted);
  font-size: 0.82rem;
}

.slot-join {
  color: var(--accent);
  font-weight: 600;
}

.role-source {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.role-source a {
  color: var(--accent);
}

.file-drop {
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px dashed rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.04);
}

.form .file-drop input[type="file"] {
  width: 100%;
  margin-top: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.form .file-drop input[type="file"]:focus {
  border: 0;
  box-shadow: none;
}

.file-drop input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.file-drop input[type="file"]::file-selector-button:hover {
  border-color: var(--accent);
}

.apply-fine {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.book-when {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
}

.slot-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem;
}

.slot-picker .btn {
  grid-column: 1 / -1;
  margin-top: 0.4rem;
}

.slot-choice {
  position: relative;
  cursor: pointer;
}

.slot-choice input {
  position: absolute;
  opacity: 0;
}

.slot-choice span {
  display: grid;
  gap: 0.1rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.92rem;
}

.slot-choice small {
  color: var(--muted);
  font-weight: 400;
}

.slot-choice input:checked + span {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
}

.slot-choice input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 960px) {
  .hire-job-grid {
    grid-template-columns: 1fr;
  }

  .hire-setup {
    position: static;
  }
}

@media (max-width: 860px) {
  .meet-accounts,
  .hire-forms,
  .hire-strip,
  .form-inline {
    grid-template-columns: 1fr;
  }

  .trail li {
    grid-template-columns: 1fr 1fr;
  }
}

/* Candidate profiles */
.cand-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.3fr);
  gap: 1rem;
  align-items: start;
}

.cand-form-panel {
  position: sticky;
  top: 6.5rem;
}

.form-row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cand-form-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.cand-list-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.cand-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cand-list-head h2 {
  margin: 0;
}

.cand-search {
  max-width: 280px;
  font-family: inherit;
}

.cand-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cand-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  scroll-margin-top: 7rem;
}

.cand-card[hidden] {
  display: none;
}

.cand-card.is-new {
  border-color: rgba(var(--accent-rgb), 0.6);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
}

.cand-card p {
  margin: 0;
}

.cand-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.cand-top h3 {
  margin: 0 0 0.15rem;
  font-size: 1.12rem;
}

.cand-top .muted {
  font-size: 0.9rem;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.live-dot.is-on {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
}

.cand-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.cand-contact a {
  color: var(--text);
}

.chips .chip-link {
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}

.chips .chip-link:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
}

.cand-key-meta {
  font-size: 0.82rem;
}

.cand-remove:hover {
  color: var(--danger);
}

@media (max-width: 960px) {
  .cand-layout,
  .form-row-3 {
    grid-template-columns: 1fr;
  }

  .cand-form-panel {
    position: static;
  }
}

.board {
  width: min(980px, calc(100% - 2rem));
  margin: 1.5rem auto 4rem;
}

.board-hero h1,
.home-hero h1 {
  margin: 0 0 0.45rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(2.1rem, 4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.page-home .board,
.page-home .board-footer {
  width: min(1120px, calc(100% - 2rem));
}

body.page-home {
  --bg: #f3eee6;
  --surface: #fffdf9;
  --surface-2: #f6f1e8;
  --text: #1c1915;
  --muted: #6d655c;
  --accent: #9a3f1f;
  --accent-2: #9a3f1f;
  --accent-rgb: 154, 63, 31;
  --accent-ink: #fffdf9;
  --border: #e5dcd0;
  --input: #fffdf9;
  --header: #1a1714;
  --shadow: 0 18px 44px rgba(48, 32, 16, 0.08);
}

html[data-theme="dark"] body.page-home {
  --bg: #141210;
  --surface: #1e1b17;
  --surface-2: #27231e;
  --text: #f6f1e8;
  --muted: #b4aa9e;
  --accent: #e7b08a;
  --accent-2: #e7b08a;
  --accent-rgb: 231, 176, 138;
  --accent-ink: #1a120c;
  --border: rgba(246, 241, 232, 0.12);
  --input: #161310;
  --header: #0e0c0a;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.page-home .site-header {
  background: var(--header);
  border-bottom: 0;
  color: #f6f1e8;
}

.page-home .logo {
  color: #f6f1e8;
}

.page-home .logo-mark {
  background: #f6f1e8;
}

.page-home .logo-mark::after {
  border-color: #1a1714;
}

.page-home .nav-tabs {
  background: rgba(246, 241, 232, 0.08);
  border-color: rgba(246, 241, 232, 0.1);
}

.page-home .nav-tabs a {
  color: rgba(246, 241, 232, 0.72);
}

.page-home .nav-tabs a:hover,
.page-home .nav-tabs a.nav-jobs {
  color: #1a1714;
  background: #f6f1e8;
}

.page-home .nav-cta {
  background: #f0e2d2;
  color: #1a1714 !important;
}

.page-home .nav-cta:hover {
  background: #fffdf9;
}

.page-home .theme-toggle {
  background: transparent;
  color: #f6f1e8;
  border-color: rgba(246, 241, 232, 0.22);
}

.page-home .theme-toggle:hover {
  color: #fffdf9;
  border-color: #f6f1e8;
  background: rgba(246, 241, 232, 0.08);
}

html[data-theme="dark"] .page-home .nav-cta {
  background: #e7b08a;
  color: #1a120c !important;
}

.home-hero {
  padding: 2.2rem 0 0.2rem;
}

.home-hero h1 {
  font-size: clamp(2.6rem, 5vw, 3.7rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  max-width: 12em;
}

.home-lead {
  margin: 0 0 1.25rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.page-home .job-search {
  padding: 0.85rem;
  border-radius: 20px;
  background: var(--surface);
  border-color: transparent;
  box-shadow: var(--shadow);
}

.home-panel {
  margin-top: 0.85rem;
  padding: 0.35rem 0.45rem 0.5rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.home-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  margin: 0;
  padding: 0.55rem 0.7rem 0.45rem;
}

.home-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.92rem;
}

.home-stat .icon {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
}

.home-stats strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.home-browse {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0.35rem 0.15rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border);
}

.home-browse-group {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  align-items: center;
  gap: 0.35rem;
}

.home-browse-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-tabs li {
  display: flex;
}

.home-tabs a {
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.home-tabs a:hover,
.home-tabs a:focus-visible {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
}

.home-companies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
}

.home-companies a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 132px;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.home-companies a:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
}

.home-companies img,
.home-companies .brand-fallback {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}

.home-companies strong {
  margin-top: auto;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.home-companies em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 960px) {
  .portal-recruiter,
  .portal-enterprise {
    flex-direction: column;
  }

  .portal-nav-root {
    position: relative;
    height: auto;
    width: 100%;
  }

  .portal-nav-root .MuiDrawer-root {
    width: 100%;
  }

  .portal-nav-root .MuiDrawer-paper {
    height: auto;
    max-height: none;
    position: relative;
  }

  .portal-main {
    padding: 1.25rem 1rem 3rem;
  }

  .portal-job-shell,
  .portal-account-shell {
    grid-template-columns: 1fr;
  }

  .portal-job-tabs-root .MuiTabs-root,
  .portal-profile-tabs-root .MuiTabs-root {
    flex-direction: row !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border);
    min-width: 0;
    width: 100%;
  }

  .portal-job-tabs-root .MuiTabs-flexContainer,
  .portal-profile-tabs-root .MuiTabs-flexContainer {
    flex-direction: row !important;
    flex-wrap: wrap;
  }
}

.desktop-download {
  margin-top: 2.5rem;
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(var(--accent-rgb), 0.12), transparent 55%),
    var(--surface);
}

.desktop-download-compact {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.desktop-download-intro {
  max-width: 40rem;
  margin-bottom: 1.25rem;
}

.desktop-download-intro h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.desktop-download-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.desktop-download-lead a {
  color: var(--accent);
}

.desktop-download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.install-card {
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  background: var(--surface-2);
}

.install-card header h3 {
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
}

.install-card header p {
  margin: 0 0 0.75rem;
}

.install-block {
  margin-top: 0.75rem;
}

.install-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.install-cmd {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
}

.install-cmd code {
  flex: 1;
  min-width: 0;
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  word-break: break-all;
  color: var(--text);
}

.install-links {
  margin: 0;
  font-size: 0.9rem;
}

.install-links a {
  color: var(--accent);
  text-decoration: none;
}

.install-links a:hover {
  text-decoration: underline;
}

@media (max-width: 820px) {
  .desktop-download-grid {
    grid-template-columns: 1fr;
  }
}

.home-clean {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem 2rem;
  margin-top: 2.75rem;
  padding: 1.35rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 80% at 0% 0%, rgba(var(--accent-rgb), 0.14), transparent 55%),
    var(--surface);
}

.home-clean-copy h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.home-clean-copy p:last-child {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.home-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.15rem 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
}

.step-icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
}

.home-hire h2,
.board-block-head h2,
.apply-card h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.home-steps strong {
  display: block;
}

.home-steps span {
  color: var(--muted);
  font-size: 0.92rem;
}

.home-hire {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.home-hire h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

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

.board-hero > p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

.board-hero-compact h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.job-search {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 0.65rem;
  align-items: end;
  padding: 0.85rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.job-search label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.search-control {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input);
  color: var(--muted);
}

.search-control:focus-within {
  outline: 2px solid rgba(var(--accent-rgb), 0.45);
  border-color: transparent;
}

.job-search .search-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0.7rem 0;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

.job-search .btn .icon {
  color: var(--accent-ink);
}

.job-search .btn {
  height: 48px;
  white-space: nowrap;
}

.place-row,
.company-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.place-row a,
.company-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
}

.place-row a.is-on,
.place-row a:hover,
.company-row a:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
}

.company-row img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
}

.company-row em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.82rem;
}

.board-block {
  margin-top: 2rem;
}

.board-block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.board-block-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.board-block-head a,
.board-clear a {
  color: var(--accent);
  text-decoration: none;
}

.job-list-rows {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
}

.job-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 1.05rem;
  color: var(--text);
  text-decoration: none;
  border-top: 1px solid var(--border);
}

.job-row:first-child {
  border-top: 0;
}

.job-row:hover {
  background: rgba(var(--accent-rgb), 0.06);
}

.job-row-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.job-row-main strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.job-row-org,
.job-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.job-row-org,
.job-facts span,
.role-facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.job-go {
  color: var(--muted);
}

.job-row:hover .job-go {
  color: var(--accent);
}

.role-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
}

.role-facts li {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

.job-row-place,
.job-row-when {
  white-space: nowrap;
}

.brand-fallback {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.16);
  color: var(--accent);
  font-weight: 700;
}

.board-empty {
  padding: 1.2rem 0;
  color: var(--muted);
}

.board-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 1rem;
  align-items: start;
}

.board-detail .market-back {
  grid-column: 1 / -1;
}

.apply-card {
  position: sticky;
  top: 5.5rem;
}

.skill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.skill-row li {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
}

.board-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem 1.2rem;
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  text-align: left;
}

.board-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}

.board-footer .logo {
  color: var(--text);
}

@media (max-width: 800px) {
  .job-search,
  .board-detail {
    grid-template-columns: 1fr;
  }

  .job-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .job-go {
    display: none;
  }

  .apply-card {
    position: static;
  }

  .home-clean,
  .home-hire {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero h1 {
    max-width: none;
  }
}

.billing-page {
  max-width: 980px;
}

.billing-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.billing-head h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
}

.billing-balance {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.billing-math {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.billing-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.billing-time {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.billing-time h2,
.billing-page h2 {
  margin-top: 0;
}

.pay-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
}

.pay-choices legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.form label.pay-choice {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  color: inherit;
}

.pay-choice {
  position: relative;
  cursor: pointer;
}

.pay-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
}

.pay-choice input:focus {
  border: 0;
  box-shadow: none;
}

.pay-choice > .pay-asset {
  min-height: 4.4rem;
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.pay-choice input:focus-visible + .pay-asset,
.pay-choice:hover > .pay-asset {
  border-color: rgba(var(--accent-rgb), 0.55);
}

.pay-choice input:checked + .pay-asset {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.pay-choice input:checked + .pay-asset .pay-chain {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

.amount-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: -0.35rem 0 1rem;
}

.amount-chips button {
  font: inherit;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
}

.amount-chips button.is-on,
.amount-chips button:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
}

.plan-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.plan-buy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.plan-buy div {
  display: flex;
  flex-direction: column;
}

.plan-buy span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.plan-buy button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ledger li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}

.ledger li:last-child {
  border-bottom: 0;
}

.ledger-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.ledger-item .pay-mark {
  width: 2rem;
  height: 2rem;
}

.ledger-item .pay-chain {
  width: 1rem;
  height: 1rem;
  background: var(--surface);
}

.ledger strong,
.ledger b {
  display: block;
}

.ledger span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.82rem;
  word-break: break-all;
}

.ledger b {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ledger-in {
  color: var(--accent);
}

.ledger-out {
  color: var(--text);
}

.billing-back {
  margin-top: 1rem;
}

.nav-balance,
.nav-balance.is-active {
  background: var(--surface-2);
  color: var(--text) !important;
  border: 1px solid var(--border);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 800px) {
  .billing-head,
  .billing-time,
  .billing-grid,
  .pay-choices {
    grid-template-columns: 1fr;
    display: grid;
  }

  .billing-head,
  .billing-time {
    align-items: start;
  }
}

.admin-head h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
}

.admin-head p,
.admin-reason {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.admin-board .place-row {
  margin: 1rem 0;
}

.admin-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 1.05rem;
  border-top: 1px solid var(--border);
}

.admin-row:first-child {
  border-top: 0;
}

.admin-row > .small {
  white-space: nowrap;
}

.admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.pill-open {
  color: var(--accent);
}

.pill-blocked {
  color: var(--error);
  text-transform: none;
}

.admin-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: flex-end;
}

.admin-actions input {
  width: 9.5rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .admin-row,
  .admin-actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .admin-actions input {
    width: 100%;
  }
}

button.role-row {
  width: 100%;
  appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.draft-pill {
  flex-shrink: 0;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 0.82rem;
  font-weight: 600;
}

.jobs-actions {
  margin-top: 1rem;
}

.jobs-actions + .profile-lock {
  margin-top: 1.25rem;
}

body.modal-open {
  overflow: hidden;
}

.job-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(16, 20, 26, 0.46);
}

.job-overlay[hidden] {
  display: none;
}

.job-modal {
  width: min(40rem, 100%);
  max-height: min(44rem, calc(100vh - 2rem));
  overflow: auto;
  padding: 1.25rem 1.35rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 60px rgba(16, 20, 26, 0.22);
}

.job-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.job-modal-head h2 {
  margin: 0 0 0.25rem;
}

.job-modal-head p {
  margin: 0;
}

.job-modal-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
}

.modal-dismiss,
.toast-dismiss {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.modal-dismiss:hover,
.toast-dismiss:hover {
  background: var(--surface-2);
  color: var(--text);
}

.job-import {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.job-import summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
}

.job-import .form {
  margin-top: 0.85rem;
}

body:has(.portal-header) .toasts {
  top: 7.25rem;
}

.toasts {
  position: fixed;
  top: 4.75rem;
  right: 1rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 0.7rem 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 16px 40px rgba(16, 20, 26, 0.16);
  animation: toast-in 0.18s ease;
}

.toast p {
  flex: 1;
  margin: 0.15rem 0 0;
  line-height: 1.4;
}

.toast-success {
  border-color: rgba(var(--accent-rgb), 0.45);
}

.toast-error {
  border-color: var(--error, #b42318);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    animation: none;
  }
}

.cal-layout {
  display: grid;
  grid-template-columns: minmax(0, 28rem) minmax(18rem, 1fr);
  gap: 1rem;
  align-items: start;
}

.cal-editor h2,
.cal-preview h2,
.cal-book h2 {
  margin: 0 0 0.35rem;
}

.cal-field {
  margin: 0.9rem 0;
}

.cal-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cal-editor .cal-chips label,
.cal-editor .cal-switch,
.cal-editor .cal-hours label {
  display: flex;
  margin: 0;
  letter-spacing: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.cal-chips label {
  position: relative;
}

.cal-chips input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.cal-chips span {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}

.cal-chips input:checked + span,
.cal-chips input:focus-visible + span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.cal-editor select {
  width: 100%;
  max-width: 16rem;
}

.cal-editor .cal-range input {
  width: 8.2rem;
  margin: 0;
}

.cal-editor .cal-switch input:focus {
  border: 0;
  box-shadow: none;
}

.cal-hours {
  margin: 0.4rem 0 0.8rem;
}

.cal-day-row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding: 0.55rem 0;
  border-top: 1px solid var(--border);
}

.cal-day-row.is-off .cal-switch span {
  color: var(--muted);
}

.cal-switch {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}

.cal-switch input {
  appearance: none;
  width: 2.35rem;
  height: 1.35rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--border);
  position: relative;
  cursor: pointer;
  box-shadow: none;
}

.cal-switch input::after {
  content: "";
  position: absolute;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: #fff;
  top: 0.15rem;
  left: 0.15rem;
}

.cal-switch input:checked {
  background: var(--accent);
}

.cal-switch input:checked::after {
  transform: translateX(1rem);
}

.cal-switch input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cal-day-body {
  display: grid;
  gap: 0.4rem;
}

.cal-day-body p {
  margin: 0.15rem 0 0;
}

.cal-range {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.cal-icon-btn,
.cal-copy,
.cal-nav-btn {
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cal-icon-btn {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  font-size: 1.1rem;
  line-height: 1;
}

.cal-icon-btn:hover,
.cal-copy:hover,
.cal-nav-btn:hover {
  background: rgba(var(--accent-rgb), 0.1);
}

.cal-zone {
  margin: 0 0 0.8rem;
}

.cal-connect {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.2rem 0 1rem;
}

.cal-connect > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
}

.cal-connect form,
.cal-connect .btn {
  margin: 0;
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.cal-nav strong {
  font-size: 1.05rem;
}

.cal-nav-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
}

.cal-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
  background: transparent;
}

.cal-week,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.2rem;
}

.cal-week {
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.cal-day,
.cal-blank {
  aspect-ratio: 1;
  border-radius: 999px;
}

.cal-day {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cal-day:disabled {
  cursor: default;
  opacity: 0.4;
}

.cal-day.has-open {
  color: var(--accent);
}

.cal-day.has-booked {
  color: var(--text);
}

.cal-day.is-today {
  box-shadow: inset 0 0 0 1px var(--accent);
}

.cal-day.is-selected,
.cal-day.is-selected.has-open,
.cal-day.is-selected.has-booked {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: none;
}

.cal-times {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
  max-height: 28rem;
  overflow: auto;
}

.cal-times h3 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
}

.cal-slot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  border-radius: 10px;
  color: var(--accent);
}

.cal-slot span,
.cal-slot a {
  color: var(--muted);
  font-size: 0.88rem;
}

.cal-slot a {
  color: var(--accent);
  font-weight: 600;
}

.cal-slot form {
  margin: 0 0 0 auto;
}

.cal-slot.is-other {
  opacity: 0.55;
}

.cal-slot.is-booked {
  border-color: var(--border);
  color: var(--text);
}

.kind-row {
  display: flex;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  overflow-x: auto;
}

.kind-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 11rem;
  max-width: 16rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}

.kind-card strong {
  font-size: 0.95rem;
  line-height: 1.25;
}

.kind-card small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
}

.kind-card.is-on {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.kind-new {
  align-items: center;
  justify-content: center;
  min-width: 8.5rem;
  border-style: dashed;
  color: var(--accent);
  font-weight: 700;
}

.kind-form {
  margin-top: 0.4rem;
}

.kind-hint {
  margin: -0.3rem 0 0.9rem;
}

.kind-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.2rem;
}

.cal-hours-form {
  margin-top: 1.15rem;
  padding-top: 0.3rem;
  border-top: 1px solid var(--border);
}

.cal-custom-min input {
  max-width: 8rem;
  margin-top: 0.35rem;
}

.cal-date-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.cal-date-row label {
  flex: 1 1 10rem;
  margin: 0;
}

.cal-date-row input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
}

.kind-picks {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.kind-picks h2 {
  margin: 0 0 0.15rem;
}

.kind-pick {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.kind-pick span {
  color: var(--muted);
  font-weight: 600;
}

.kind-pick.is-on {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.book-kind-name {
  margin: 0.15rem 0;
  font-weight: 700;
}

.book-kind-details {
  white-space: pre-wrap;
  color: var(--muted);
}

.book {
  width: min(920px, calc(100% - 2rem));
}

.cal-book {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cal-book aside {
  padding: 1.4rem 1.25rem;
  border-right: 1px solid var(--border);
}

.cal-book h1 {
  margin: 0.35rem 0 0.7rem;
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cal-book aside p {
  margin: 0.2rem 0;
}

.cal-book-main {
  padding: 1.25rem 1.3rem 1.4rem;
}

.cal-book-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, 13rem);
  gap: 1rem;
  align-items: start;
}

.cal-choice {
  display: flex;
  gap: 0.4rem;
}

.cal-time,
.cal-confirm {
  flex: 1;
  border-radius: 8px;
  padding: 0.7rem 0.5rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cal-time {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
}

.cal-time.is-on,
.cal-confirm {
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
}

.cal-book-done .cal-book-main {
  display: grid;
  align-content: center;
  gap: 0.35rem;
}

@media (max-width: 980px) {
  .cal-layout,
  .cal-book,
  .cal-book-grid {
    grid-template-columns: 1fr;
  }

  .cal-book aside {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 720px) {
  .cal-day-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .cal-editor .cal-range {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    width: 100%;
  }

  .cal-editor .cal-range input {
    width: 100%;
    min-width: 0;
  }

  .cal-range .cal-copy {
    grid-column: 2 / -1;
    justify-self: start;
  }
}
