﻿:root {
  color-scheme: light;
  --brand: #ff5a4f;
  --brand-deep: #e63f36;
  --brand-soft: #fff4f2;
  --ink: #111827;
  --muted: #71717a;
  --quiet: #f4f4f5;
  --line: #e4e4e7;
  --surface: #ffffff;
  --success: #12b981;
  --warning: #f59e0b;
  --danger: #e11d48;
  --blue: #2563eb;
  --shadow: 0 24px 80px rgba(24, 24, 27, 0.14);
  --soft-shadow: 0 12px 36px rgba(24, 24, 27, 0.08);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
    "Noto Sans KR", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 10% -10%, rgba(242, 85, 75, 0.18), transparent 30%),
    linear-gradient(180deg, #fffafa 0%, #f6f7f9 42%, #f2f3f5 100%);
  color: var(--ink);
}

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

button {
  cursor: pointer;
}


body.auth-pending,
body.auth-lock {
  overflow: hidden;
}

body.auth-pending .app-shell,
body.auth-lock .app-shell,
body.auth-pending .record-drawer,
body.auth-lock .record-drawer,
body.auth-pending .photo-lightbox,
body.auth-lock .photo-lightbox {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.app-shell {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  min-height: 100vh;
}

.rail {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border-right: 1px solid rgba(228, 228, 231, 0.86);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 12px;
  position: relative;
  z-index: 50;
  backdrop-filter: blur(22px);
}

.brand-mark,
.rail__item,
.icon-button {
  align-items: center;
  border: 0;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.brand-mark {
  background: var(--brand);
  border-radius: 8px;
  box-shadow: 0 14px 26px rgba(242, 85, 75, 0.34);
  color: #ffffff;
  font-weight: 950;
  margin-bottom: 10px;
  position: relative;
}

.brand-mark__pin {
  background: #ffffff;
  border-radius: 999px 999px 999px 2px;
  height: 22px;
  position: absolute;
  transform: rotate(-45deg);
  width: 22px;
}

.brand-mark__pin::after {
  background: var(--brand);
  border-radius: 50%;
  content: "";
  height: 8px;
  left: 7px;
  position: absolute;
  top: 7px;
  width: 8px;
}

.brand-mark__text {
  color: var(--brand);
  font-size: 12px;
  position: relative;
  transform: translateY(-1px);
  z-index: 1;
}

.rail__item {
  background: transparent;
  border-radius: 8px;
  color: #8b8b94;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.rail__item.is-active,
.rail__item:hover {
  background: var(--brand-soft);
  color: var(--brand);
  transform: translateY(-1px);
}

.workspace {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(228, 228, 231, 0.78);
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(22px);
}

.wordmark {
  display: grid;
  gap: 3px;
  min-width: 148px;
}

.wordmark strong {
  font-size: 21px;
  font-weight: 950;
  letter-spacing: 0;
}

.wordmark strong span {
  color: var(--brand);
}

.wordmark small {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  white-space: nowrap;
}

.wordmark small span + span::before {
  color: #d4d4d8;
  content: "·";
  margin-right: 8px;
}

.top-search {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(228, 228, 231, 0.86);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.07);
  display: grid;
  flex: 1;
  gap: 10px;
  grid-template-columns: 22px minmax(0, 1fr) 36px;
  max-width: 760px;
  min-width: 220px;
  padding: 7px 8px 7px 13px;
}

.top-search > svg {
  color: var(--ink);
  height: 20px;
  width: 20px;
}

.top-search input {
  background: transparent;
  border: 0;
  box-shadow: none;
  min-height: 34px;
  padding: 0;
}

.top-search input:focus {
  outline: none;
}

.top-search__clear {
  height: 36px;
  width: 36px;
}

.top-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.auth-button {
  color: var(--ink);
  min-height: 42px;
}

.invite-inbox-button {
  height: 42px;
  position: relative;
  width: 42px;
}

.invite-inbox-button span {
  align-items: center;
  background: var(--brand);
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  display: none;
  font-size: 10px;
  font-weight: 950;
  height: 18px;
  justify-content: center;
  min-width: 18px;
  position: absolute;
  right: -5px;
  top: -5px;
}

.invite-inbox-button span.is-visible {
  display: inline-flex;
}
.invite-menu {
  position: relative;
}

.invite-popover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 250, 0.9)),
    radial-gradient(circle at 16% 0%, rgba(255, 90, 79, 0.16), transparent 36%);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  box-shadow: 0 28px 88px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(228, 228, 231, 0.62) inset;
  display: none;
  gap: 10px;
  min-width: 336px;
  padding: 10px;
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 95;
  backdrop-filter: blur(22px) saturate(132%);
}

.invite-popover.is-open {
  display: grid;
  animation: invitePopoverIn 160ms ease-out both;
}

.invite-popover::before {
  background: rgba(255, 255, 255, 0.94);
  border-left: 1px solid rgba(228, 228, 231, 0.74);
  border-top: 1px solid rgba(228, 228, 231, 0.74);
  content: "";
  height: 12px;
  position: absolute;
  right: 15px;
  top: -6px;
  transform: rotate(45deg);
  width: 12px;
}

.invite-popover__head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 7px 8px 4px;
}

.invite-popover__head div {
  display: grid;
  gap: 2px;
}

.invite-popover__head strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0;
}

.invite-popover__head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.invite-popover__head small {
  background: rgba(255, 90, 79, 0.12);
  border: 1px solid rgba(255, 90, 79, 0.22);
  border-radius: 999px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 950;
  padding: 5px 8px;
}

.invite-list--popover {
  max-height: 330px;
  overflow: auto;
  padding: 1px;
}

.invite-card--popover {
  align-items: center;
  background: rgba(255, 255, 255, 0.84) !important;
  border: 1px solid rgba(228, 228, 231, 0.78) !important;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08) !important;
  grid-template-columns: 42px minmax(0, 1fr) auto !important;
  padding: 11px !important;
}

.invite-card__avatar {
  align-items: center;
  background: linear-gradient(135deg, #ff6b62, #f0443e);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(240, 68, 62, 0.24);
  color: #ffffff;
  display: flex;
  font-size: 16px;
  font-weight: 950;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.invite-card__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.invite-card__body strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invite-card__body span,
.invite-card__body small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invite-card__body small {
  color: #a1a1aa;
}

.invite-card__accept {
  border-radius: 8px !important;
  box-shadow: 0 14px 28px rgba(240, 68, 62, 0.18) !important;
  font-size: 12px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 14px !important;
}

.invite-empty--popover {
  align-items: center;
  background: rgba(255, 255, 255, 0.68) !important;
  justify-items: center;
  min-height: 132px;
  padding: 22px !important;
  text-align: center;
}

.invite-empty--popover svg {
  background: rgba(255, 90, 79, 0.1);
  border-radius: 8px;
  color: var(--brand);
  height: 38px;
  padding: 9px;
  width: 38px;
}

@keyframes invitePopoverIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.icon-button,
.ghost-button,
.chip {
  background: #ffffff;
  color: var(--ink);
}

.icon-button {
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.icon-button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.icon-button.is-loading svg {
  animation: spin 900ms linear infinite;
}

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

.primary-button,
.ghost-button,
.chip {
  align-items: center;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 850;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  white-space: nowrap;
}

.primary-button {
  background: var(--brand);
  box-shadow: 0 12px 28px rgba(242, 85, 75, 0.28);
  color: #ffffff;
}

.ghost-button {
  box-shadow: inset 0 0 0 1px var(--line);
}
.top-actions .invite-inbox-button,
.top-actions .auth-button {
  background: linear-gradient(135deg, #ff6b62 0%, #f0443e 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 14px 32px rgba(240, 68, 62, 0.22);
  color: #ffffff;
  transition: background 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.top-actions .invite-inbox-button {
  height: 44px;
  width: 44px;
}

.top-actions .auth-button {
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
  min-height: 44px;
  padding: 0 14px;
}

.top-actions .invite-inbox-button svg,
.top-actions .auth-button svg {
  color: #ffffff;
  height: 20px;
  stroke-width: 2.35;
  width: 20px;
}

.top-actions .invite-inbox-button:hover,
.top-actions .auth-button:hover,
.top-actions .invite-inbox-button[aria-expanded="true"] {
  background: linear-gradient(135deg, #ff7a72 0%, #f2554b 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.36),
    0 18px 42px rgba(240, 68, 62, 0.28);
  color: #ffffff;
  transform: translateY(-1px);
}

.top-actions .invite-inbox-button[aria-expanded="true"] svg,
.top-actions .auth-button:hover svg {
  color: #ffffff;
}

.view {
  display: none;
  min-height: 0;
}

.view.is-visible {
  display: block;
}

.view--map.is-visible {
  display: block;
}

.view--candidates.is-visible {
  display: block;
}

.map-stage {
  min-height: calc(100vh - 75px);
  overflow: hidden;
  position: relative;
}

.map {
  height: 100%;
  min-height: calc(100vh - 75px);
  width: 100%;
  z-index: 1;
}

.map .leaflet-tile-pane {
  filter: saturate(0.82) contrast(0.96) brightness(1.04);
}

.map-fallback {
  background: #f1f2f4;
  inset: 0;
  overflow: hidden;
  position: absolute;
  z-index: 0;
}

.map-fallback__mesh {
  background-image:
    linear-gradient(rgba(24, 24, 27, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 24, 27, 0.07) 1px, transparent 1px);
  background-size: 54px 54px;
  height: 100%;
}

.map-fallback__copy {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  left: 50%;
  padding: 16px 18px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(16px);
}

.map-fallback__copy span {
  color: var(--muted);
  font-size: 13px;
}

.map-controls {
  display: flex;
  gap: 8px;
  left: 20px;
  position: absolute;
  top: 18px;
  z-index: 5;
}

.mode-pill {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(228, 228, 231, 0.72);
  border-radius: 999px;
  box-shadow: var(--soft-shadow);
  display: flex;
  gap: 4px;
  left: 50%;
  padding: 5px;
  position: absolute;
  top: 18px;
  transform: translateX(-50%);
  z-index: 6;
  backdrop-filter: blur(18px);
}

.mode-pill button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 64px;
}

.mode-pill button.is-active {
  background: var(--brand);
  box-shadow: 0 10px 22px rgba(242, 85, 75, 0.26);
  color: #ffffff;
}

.map-toolbox {
  display: grid;
  gap: 10px;
  position: absolute;
  z-index: 6;
}

.map-toolbox--left {
  left: 20px;
  top: 86px;
}

.map-toolbox--right {
  right: 20px;
  top: 86px;
}

.map-tool {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(228, 228, 231, 0.8);
  border-radius: 50%;
  box-shadow: var(--soft-shadow);
  color: #27272a;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  width: 48px;
  backdrop-filter: blur(16px);
}

.map-tool.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.layer-sheet {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(228, 228, 231, 0.86);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: none;
  gap: 4px;
  left: 82px;
  padding: 14px;
  position: absolute;
  top: 134px;
  width: 178px;
  z-index: 7;
  backdrop-filter: blur(18px);
}

.layer-sheet.is-open {
  display: grid;
}

.layer-sheet strong {
  color: var(--brand);
  margin-bottom: 6px;
}

.layer-sheet button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #3f3f46;
  display: flex;
  gap: 10px;
  min-height: 38px;
  padding: 0 8px;
  text-align: left;
}

.layer-sheet button:hover {
  background: var(--brand-soft);
}

.start-button {
  align-items: center;
  background: rgba(24, 24, 27, 0.92);
  border: 0;
  border-radius: 8px;
  bottom: 112px;
  box-shadow: var(--shadow);
  color: #ffffff;
  display: inline-flex;
  font-weight: 950;
  gap: 9px;
  left: 50%;
  min-height: 48px;
  padding: 0 18px;
  position: absolute;
  transform: translateX(-50%);
  z-index: 7;
}

.start-button.is-active {
  background: var(--brand);
}

.chip {
  box-shadow:
    inset 0 0 0 1px rgba(228, 228, 231, 0.9),
    var(--soft-shadow);
  min-height: 38px;
}

.chip.is-active {
  background: var(--brand);
  box-shadow: 0 12px 28px rgba(242, 85, 75, 0.3);
  color: #ffffff;
}

.eyebrow,
.record-meta,
.score-
label {
  color: var(--muted);
  font-size: 12px;
}

.side-panel {
  background: rgba(255, 255, 255, 0.84);
  border-left: 1px solid rgba(228, 228, 231, 0.86);
  min-height: calc(100vh - 75px);
  overflow-y: auto;
  padding: 20px;
  backdrop-filter: blur(22px);
}

.panel-section,
.content-panel {
  display: grid;
  gap: 16px;
}

.content-panel {
  margin: 0 auto;
  max-width: 1180px;
  padding: 36px 28px;
  width: 100%;
}

.section-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 2px;
}

.section-head h1 {
  font-size: 26px;
  font-weight: 950;
}

.section-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.section-head--compact h2 {
  font-size: 18px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-size: 28px;
  letter-spacing: 0;
  line-height: 1.08;
}

.eyebrow {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.rank-list,
.compare-grid,
.alert-list,
.mate-feed,
.timeline-list,
.candidate-list {
  display: grid;
  gap: 11px;
}

.candidate-list {
  gap: 10px;
}

.records-collab {
  display: grid;
  gap: 14px;
}

.records-collab.has-mate {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
}

.mate-panel {
  display: none;
}

.records-collab.has-mate .mate-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 251, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(255, 90, 79, 0.08), transparent 32%);
  border: 1px solid rgba(228, 228, 231, 0.78);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.06);
  display: grid;
  gap: 14px;
  padding: 16px;
  position: sticky;
  top: 96px;
}

.mate-panel__empty,
.mate-panel__head,
.mate-note {
  display: grid;
  gap: 6px;
}

.mate-panel__empty strong,
.mate-panel__head strong,
.mate-note strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.mate-panel__empty p,
.mate-panel__head p,
.mate-note span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

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

.mate-stat-grid span {
  background: #f7f7f8;
  border: 1px solid rgba(228, 228, 231, 0.78);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 850;
  gap: 3px;
  padding: 11px;
}

.mate-stat-grid b {
  color: var(--brand);
  font-size: 22px;
  font-weight: 950;
}

.candidate-card {
  align-items: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 251, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(255, 90, 79, 0.08), transparent 32%);
  border: 1px solid rgba(228, 228, 231, 0.78);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.06);
  display: grid;
  gap: 14px;
  grid-template-columns: 58px auto minmax(0, 1fr);
  padding: 14px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.candidate-photo-button {
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: zoom-in;
  height: 58px;
  padding: 0;
  width: 72px;
}

.candidate-photo {
  aspect-ratio: 1;
  border: 1px solid rgba(228, 228, 231, 0.82);
  border-radius: 8px;
  display: block;
  height: 58px;
  object-fit: cover;
  width: 72px;
}

.candidate-card:hover,
.candidate-card.is-selected {
  border-color: rgba(255, 90, 79, 0.42);
  box-shadow: 0 18px 52px rgba(255, 90, 79, 0.12);
  transform: translateY(-1px);
}

.candidate-rank {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(228, 228, 231, 0.86);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  color: var(--ink);
  display: grid;
  gap: 1px;
  height: 58px;
  justify-content: center;
  justify-items: center;
  width: 58px;
}

.candidate-rank span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.candidate-rank strong {
  color: var(--brand);
  font-size: 20px;
  font-weight: 950;
  letter-spacing: 0;
}

.candidate-main {
  display: grid;
  gap: 11px;
  min-width: 0;
}

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

.candidate-topline h3 {
  font-size: 18px;
  line-height: 1.18;
}

.candidate-score-badge {
  background: #fff1f0;
  border: 1px solid rgba(255, 90, 79, 0.16);
  border-radius: 8px;
  color: var(--brand-deep);
  display: grid;
  gap: 1px;
  justify-items: end;
  min-width: 72px;
  padding: 8px 10px;
}

.candidate-score-badge span {
  font-size: 10px;
  font-weight: 950;
}

.candidate-score-badge strong {
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
}

.candidate-scoreline {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.candidate-scoreline b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.candidate-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.candidate-metrics span {
  background: #f7f7f8;
  border: 1px solid rgba(228, 228, 231, 0.82);
  border-radius: 8px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 850;
  padding: 6px 8px;
}

.candidate-metrics b {
  color: var(--ink);
}

.candidate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.danger-button {
  color: var(--danger);
}

.empty-state {
  background: rgba(255, 255, 255, 0.94);
  border: 1px dashed rgba(113, 113, 122, 0.36);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 24px;
}

.empty-state span {
  color: var(--muted);
  font-size: 14px;
}

.timeline-panel {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding-top: 18px;
}

.timeline-item {
  display: grid;
  gap: 4px;
  grid-template-columns: 30px minmax(0, 1fr);
  position: relative;
}

.timeline-item::before {
  background: var(--line);
  bottom: -12px;
  content: "";
  left: 14px;
  position: absolute;
  top: 28px;
  width: 1px;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-index {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.timeline-body {
  background: #fbfbfc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  padding: 11px;
}

.timeline-body strong {
  font-size: 14px;
}

.timeline-note {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #3f3f46;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  min-height: 34px;
  padding: 0 10px;
  width: fit-content;
}

.market-lab {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(228, 228, 231, 0.92);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  display: grid;
  gap: 16px;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 360px;
  overflow: hidden;
  padding: 18px;
}

.market-summary {
  align-content: start;
  display: grid;
  gap: 12px;
}

.market-summary__search {
  align-items: center;
  background: #fbfbfc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  min-height: 62px;
  padding: 0 14px;
}

.market-summary__card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  display: grid;
  gap: 5px;
  padding: 15px;
}

.market-summary__card b {
  color: var(--blue);
  font-size: 22px;
}

.chart-area {
  border-left: 1px solid var(--line);
  min-height: 320px;
  overflow: hidden;
  padding-left: 18px;
  position: relative;
}

.chart-grid {
  background-image: linear-gradient(#f0f0f1 1px, transparent 1px);
  background-size: 100% 52px;
  inset: 0 0 36px 18px;
  position: absolute;
}

.chart-dot {
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(24, 24, 27, 0.14);
  height: 12px;
  position: absolute;
  width: 12px;
}

.chart-line {
  background: var(--brand);
  border-radius: 999px;
  height: 3px;
  position: absolute;
  transform-origin: left center;
}

.chart-band {
  border: 2px solid rgba(37, 99, 235, 0.5);
  border-radius: 50%;
  height: 180px;
  left: 26%;
  position: absolute;
  top: 28%;
  transform: rotate(-8deg);
  width: 54%;
}

.chart-axis {
  bottom: 0;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  left: 18px;
  position: absolute;
  right: 0;
}

.record-card,
.compare-card,
.alert-card,
.mate-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(228, 228, 231, 0.92);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  padding: 15px;
}

.record-card {
  display: grid;
  gap: 12px;
  text-align: left;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
  width: 100%;
}

.record-card:hover,
.record-card.is-selected {
  border-color: rgba(242, 85, 75, 0.5);
  box-shadow: 0 16px 46px rgba(242, 85, 75, 0.16);
  transform: translateY(-1px);
}

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

.record-title h3 {
  font-size: 16px;
  line-height: 1.25;
}

.badge {
  background: rgba(255, 90, 79, 0.1);
  border-radius: 999px;
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 950;
  padding: 7px 10px;
  white-space: nowrap;
}

.badge.warn {
  background: #fff7ed;
  color: var(--warning);
}

.score-bar {
  background: #eeeeef;
  border-radius: 999px;
  height: 7px;
  overflow: hidden;
}

.score-bar span {
  background: linear-gradient(90deg, var(--brand), #ff9a6f 48%, var(--success));
  display: block;
  height: 100%;
}

.price-row,
.detail-price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.price-pill {
  background: #f7f7f8;
  border: 1px solid rgba(228, 228, 231, 0.72);
  border-radius: 8px;
  color: #3f3f46;
  font-size: 12px;
  font-weight: 850;
  padding: 7px 9px;
}

.trade-change--up {
  background: #fff1f0;
  color: var(--brand-deep);
}

.trade-change--down {
  background: #eff6ff;
  color: var(--blue);
}

.sync-row {
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
}

.sync-row--detail {
  margin-top: -4px;
}

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

.compare-card {
  display: grid;
  gap: 14px;
}

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

.metric {
  align-items: center;
  background: rgba(247, 247, 248, 0.72);
  border: 1px solid rgba(228, 228, 231, 0.72);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: 52px minmax(0, 1fr) 24px;
  padding: 8px 9px;
}

.metric .score-bar {
  height: 5px;
}

.metric strong {
  font-size: 13px;
  text-align: right;
}

.mate-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: 380px minmax(0, 1fr);
}

.mate-card {
  display: grid;
  gap: 14px;
}

.mate-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.mate-card--share {
  align-content: start;
}

.avatar-pair {
  display: flex;
}

.avatar-pair span {
  align-items: center;
  background: var(--ink);
  border: 2px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  font-weight: 950;
  height: 46px;
  justify-content: center;
  margin-right: -8px;
  width: 46px;
}

.avatar-pair span:first-child {
  background: var(--brand);
}

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

.photo-field {
  display: grid;
  gap: 10px;
}

.photo-field__head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.photo-field__head > span {
  color: #3f3f46;
  font-size: 13px;
  font-weight: 850;
}

.photo-add {
  min-height: 38px;
}

.photo-preview {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-empty {
  background: #fbfbfc;
  border: 1px dashed rgba(113, 113, 122, 0.34);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  grid-column: 1 / -1;
  padding: 13px;
}

.photo-thumb {
  aspect-ratio: 1;
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.photo-thumb__open {
  background: transparent;
  border: 0;
  cursor: zoom-in;
  height: 100%;
  padding: 0;
  width: 100%;
}

.photo-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.photo-thumb button[data-remove-photo] {
  align-items: center;
  background: rgba(17, 24, 39, 0.76);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  position: absolute;
  right: 6px;
  top: 6px;
  width: 28px;
}

.route-field {
  background: #fbfbfc;
  border: 1px solid rgba(228, 228, 231, 0.86);
  border-radius: 8px;
  padding: 12px;
}

.route-field__head {
  display: grid;
  gap: 10px;
}

.route-field__head > div:first-child {
  display: grid;
  gap: 3px;
}

.route-field span {
  color: #3f3f46;
  font-size: 13px;
  font-weight: 850;
}

.route-field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ghost-button.is-active {
  background: var(--ink);
  color: #ffffff;
}

input,
textarea,
select {
  background: #fbfbfc;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  outline: 0;
  padding: 11px 12px;
  width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(242, 85, 75, 0.58);
  box-shadow: 0 0 0 4px rgba(242, 85, 75, 0.12);
}

.alert-card {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 46px minmax(0, 1fr) auto;
}

.alert-icon {
  align-items: center;
  background: var(--brand-soft);
  border-radius: 8px;
  color: var(--brand);
  display: inline-flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.record-drawer {
  bottom: 0;
  max-width: 500px;
  padding: 14px;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 75px;
  transform: translateX(110%);
  transition:
    transform 220ms ease,
    visibility 220ms ease;
  visibility: hidden;
  width: min(500px, calc(100vw - 78px));
  z-index: 72;
}

.record-drawer.is-open {
  pointer-events: auto;
  transform: translateX(0);
  visibility: visible;
}

.modal-card {
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  gap: 16px;
  padding: 20px;
}

.record-panel-card {
  border: 1px solid rgba(228, 228, 231, 0.82);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-height: 100%;
  overflow-y: auto;
  backdrop-filter: blur(22px);
}

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

.modal-head h2 {
  font-size: 24px;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 4px 0 3px;
}

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

.market-data-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 251, 252, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(255, 90, 79, 0.1), transparent 36%);
  border: 1px solid rgba(228, 228, 231, 0.88);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 13px;
}

.trade-lookup-bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.trade-lookup-bar .ghost-button {
  min-height: 38px;
}

.trade-lookup-bar small {
  color: var(--muted);
  flex: 1 1 180px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}


.trade-data-summary {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(228, 228, 231, 0.92);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.trade-data-summary[hidden] {
  display: none;
}

.trade-summary-head {
  align-items: end;
  display: grid;
  gap: 4px 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.trade-summary-head span,
.trade-summary-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trade-summary-head strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
  grid-column: 1;
  line-height: 1;
}

.trade-summary-head em {
  color: var(--brand);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.trade-summary-block {
  display: grid;
  gap: 8px;
}

.trade-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.trade-summary-chips span {
  background: #f4f4f5;
  border-radius: 999px;
  color: #52525b;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 9px;
}

.trade-summary-chips b {
  color: var(--ink);
  font-weight: 950;
}


.trade-summary-tabs {
  display: flex;
  gap: 6px;
}

.trade-summary-tabs span {
  background: #f4f4f5;
  border: 1px solid rgba(228, 228, 231, 0.9);
  border-radius: 999px;
  color: #71717a;
  font-size: 11px;
  font-weight: 900;
  padding: 7px 10px;
}

.trade-summary-tabs span.is-active {
  background: rgba(255, 90, 79, 0.1);
  border-color: rgba(255, 90, 79, 0.28);
  color: #f0443e;
}

.trade-candidate-list {
  border: 1px solid rgba(228, 228, 231, 0.86);
  border-radius: 8px;
  display: grid;
  max-height: 304px;
  overflow: auto;
}

.trade-candidate-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  padding: 11px;
  text-align: left;
}

.trade-candidate-row + .trade-candidate-row {
  border-top: 1px solid rgba(228, 228, 231, 0.72);
}

.trade-candidate-row:hover,
.trade-candidate-row.is-selected {
  background: linear-gradient(90deg, rgba(255, 90, 79, 0.11), rgba(255, 247, 246, 0.94));
}

.trade-candidate-rank {
  align-items: center;
  background: rgba(255, 90, 79, 0.1);
  border: 1px solid rgba(255, 90, 79, 0.22);
  border-radius: 8px;
  color: var(--brand);
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.trade-candidate-row.is-selected .trade-candidate-rank {
  background: linear-gradient(135deg, #ff6b62, #f0443e);
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(240, 68, 62, 0.18);
  color: #ffffff;
}
.trade-candidate-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.trade-candidate-main strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.trade-candidate-main em,
.trade-candidate-meta {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.trade-history-list {
  border: 1px solid rgba(228, 228, 231, 0.86);
  border-radius: 8px;
  display: grid;
  max-height: 210px;
  overflow: auto;
}

.trade-history-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 88px minmax(70px, 0.9fr) minmax(0, 1fr);
  padding: 10px;
}

.trade-history-row + .trade-history-row {
  border-top: 1px solid rgba(228, 228, 231, 0.72);
}

.trade-history-row span,
.trade-history-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.trade-history-row strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}
.market-data-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}


label {
  color: #3f3f46;
  display: grid;
  font-size: 13px;
  font-weight: 850;
  gap: 7px;
}

.score-editor {
  display: grid;
  gap: 8px;
}

.score-section {
  display: grid;
  gap: 10px;
}

.score-section__head {
  align-items: end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.score-section__head strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0;
}

.criteria-add {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 128px) 40px;
}

.criteria-add input {
  min-height: 40px;
  padding: 9px 11px;
}

.criteria-add .icon-button,
.score-remove {
  height: 40px;
  width: 40px;
}

.score-control {
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
  border: 1px solid rgba(228, 228, 231, 0.9);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 68px minmax(0, 1fr) 34px 86px 40px;
  padding: 10px 10px 10px 12px;
}

.score-control input[type="range"] {
  appearance: none;
  background: transparent;
  padding: 0;
}

.score-control input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, var(--brand), #ff8a72);
  border-radius: 999px;
  height: 6px;
}

.score-control input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  background: #ffffff;
  border: 3px solid var(--brand);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(255, 90, 79, 0.28);
  height: 20px;
  margin-top: -7px;
  width: 20px;
}

.score-control input[type="range"]::-moz-range-track {
  background: linear-gradient(90deg, var(--brand), #ff8a72);
  border-radius: 999px;
  height: 6px;
}

.score-control input[type="range"]::-moz-range-thumb {
  background: #ffffff;
  border: 3px solid var(--brand);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(255, 90, 79, 0.28);
  height: 14px;
  width: 14px;
}

.score-control strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  text-align: center;
}

.weight-select {
  min-height: 36px;
  padding: 8px 10px;
}

.score-lock {
  height: 40px;
  width: 40px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.auth-modal {
  display: none;
  inset: 0;
  padding: 24px;
  position: fixed;
  z-index: 115;
}

.auth-modal.is-open {
  align-items: center;
  display: flex;
  justify-content: center;
}

.auth-modal--login {
  z-index: 150;
}

.auth-modal__backdrop {
  background:
    linear-gradient(135deg, rgba(255, 90, 79, 0.92), rgba(255, 255, 255, 0.82) 42%, rgba(17, 24, 39, 0.72)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 72px);
  border: 0;
  inset: 0;
  position: absolute;
}

.auth-card {
  display: grid;
  gap: 14px;
  max-width: 430px;
  padding: 18px;
  position: relative;
  width: min(430px, 94vw);
}

.auth-card .primary-button {
  justify-content: center;
  min-height: 44px;
}

.auth-card--login {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 248, 0.96)),
    linear-gradient(135deg, rgba(255, 90, 79, 0.08), rgba(18, 185, 129, 0.07));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 36px 110px rgba(17, 24, 39, 0.34);
  gap: 16px;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  max-width: 920px;
  overflow: hidden;
  padding: 18px;
  width: min(920px, 94vw);
}

.login-hero {
  align-items: center;
  display: flex;
  gap: 16px;
  grid-column: 1 / -1;
  justify-content: space-between;
}

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

.login-brand__pin {
  background: var(--brand);
  border: 3px solid #ffffff;
  border-radius: 999px 999px 999px 4px;
  box-shadow: 0 16px 34px rgba(255, 90, 79, 0.3);
  display: inline-flex;
  height: 48px;
  transform: rotate(-45deg);
  width: 48px;
}

.login-brand strong {
  color: var(--ink);
  display: block;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
}

.login-brand strong span {
  color: var(--brand);
}

.login-brand small,
.login-copy p,
.login-stat span {
  color: var(--muted);
  font-weight: 800;
}

.login-brand small {
  display: block;
  font-size: 12px;
  margin-top: 5px;
}

body.auth-lock .login-close {
  opacity: 0;
  pointer-events: none;
}

.login-copy {
  align-self: center;
  display: grid;
  gap: 12px;
  padding: 16px 10px 16px 4px;
}

.login-copy h2 {
  color: var(--ink);
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
}

.login-copy p {
  font-size: 15px;
  line-height: 1.58;
  margin: 0;
  max-width: 420px;
}

.login-surface {
  background:
    linear-gradient(180deg, #ffffff, #fff6f4),
    linear-gradient(135deg, rgba(255, 90, 79, 0.12), rgba(18, 185, 129, 0.08));
  border: 1px solid rgba(228, 228, 231, 0.9);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 12px;
}

.login-stat {
  background: #ffffff;
  border: 1px solid rgba(228, 228, 231, 0.84);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: 12px;
}

.login-stat span {
  font-size: 11px;
}

.login-stat strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
}


.auth-switch {
  background: #f4f4f5;
  border: 1px solid rgba(228, 228, 231, 0.9);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
}

.auth-switch button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  letter-spacing: 0;
}

.auth-switch button.is-active {
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(24, 24, 27, 0.1);
  color: var(--ink);
}

.auth-card--login[data-auth-mode="login"] [data-signup-only] {
  display: none;
}
.login-fields {
  display: grid;
  gap: 12px;
}

.login-submit {
  min-height: 50px;
}

.invite-list {
  display: grid;
  gap: 10px;
}

.invite-card,
.invite-empty {
  background: #fbfbfc;
  border: 1px solid rgba(228, 228, 231, 0.86);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 13px;
}

.invite-card {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.invite-card div,
.invite-empty {
  display: grid;
  gap: 4px;
}

.invite-card strong,
.invite-empty strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.invite-card span,
.invite-empty span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}


.invite-create-modal .auth-modal__backdrop {
  background: rgba(17, 24, 39, 0.28);
  backdrop-filter: blur(16px) saturate(120%);
}

.invite-create-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.86fr) minmax(280px, 1fr);
  gap: 0;
  max-width: 660px;
  overflow: hidden;
  padding: 10px;
}

.invite-create-visual {
  align-items: flex-end;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(135deg, #ff6a63 0%, #f0443e 100%);
  border-radius: 7px;
  color: #ffffff;
  display: flex;
  min-height: 300px;
  overflow: hidden;
  padding: 28px;
  position: relative;
}

.invite-create-visual::before {
  border: 18px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px 999px 999px 18px;
  content: "";
  height: 190px;
  position: absolute;
  right: -36px;
  top: -26px;
  transform: rotate(-45deg);
  width: 190px;
}

.invite-create-visual::after {
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  content: "";
  inset: 0;
  position: absolute;
}

.invite-create-visual span {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.95;
  position: relative;
  z-index: 1;
}

.invite-create-content {
  align-content: center;
  display: grid;
  gap: 12px;
  padding: 28px 28px 28px 30px;
}

.invite-create-content h2 {
  color: var(--ink);
  font-size: 30px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
}

.invite-create-content p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
  margin: 0 0 4px;
}

.invite-create-content input {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(228, 228, 231, 0.96);
  border-radius: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  height: 48px;
  outline: none;
  padding: 0 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.invite-create-content input:focus {
  border-color: rgba(255, 85, 79, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 85, 79, 0.12), 0 18px 34px rgba(255, 85, 79, 0.12);
  transform: translateY(-1px);
}

.invite-create-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 0.72fr 1fr;
  margin-top: 8px;
}

.invite-create-actions .primary-button,
.invite-create-actions .ghost-button {
  min-height: 48px;
}

@media (max-width: 720px) {
  .invite-create-card {
    grid-template-columns: 1fr;
    max-width: min(92vw, 430px);
  }

  .invite-create-visual {
    min-height: 132px;
  }

  .invite-create-content {
    padding: 24px 10px 10px;
  }
}
.custom-pin {
  align-items: center;
  background: var(--brand);
  border: 3px solid #ffffff;
  border-radius: 999px 999px 999px 4px;
  box-shadow: 0 14px 28px rgba(24, 24, 27, 0.24);
  color: #ffffff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  height: 42px;
  justify-content: center;
  transform: rotate(-45deg);
  width: 42px;
}

.custom-pin span {
  transform: rotate(45deg);
}

.custom-pin.is-hot {
  background: var(--ink);
}

.user-location-dot {
  background: #2563eb;
  border: 4px solid #ffffff;
  border-radius: 50%;
  box-shadow:
    0 0 0 8px rgba(37, 99, 235, 0.18),
    0 10px 24px rgba(37, 99, 235, 0.28);
  height: 28px;
  width: 28px;
}

.map-stage.layer-district .map {
  filter: sepia(0.16) saturate(1.25) hue-rotate(330deg);
}

.map-stage.layer-transit .map {
  filter: saturate(1.35) contrast(1.03);
}

.map-stage.layer-photo .map {
  filter: grayscale(0.35) contrast(1.1) brightness(0.86);
}

.map-stage.route-mode .start-button {
  background: var(--brand);
}

.toast {
  background: var(--ink);
  border-radius: 8px;
  bottom: 22px;
  box-shadow: var(--shadow);
  color: #ffffff;
  display: none;
  font-weight: 850;
  left: 50%;
  padding: 12px 15px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 90;
}

.toast.is-visible {
  display: block;
}

.photo-lightbox {
  display: none;
  inset: 0;
  padding: 28px;
  position: fixed;
  z-index: 120;
}

.photo-lightbox.is-open {
  align-items: center;
  display: flex;
  justify-content: center;
}

.photo-lightbox__backdrop {
  background: rgba(17, 24, 39, 0.66);
  border: 0;
  cursor: zoom-out;
  inset: 0;
  position: absolute;
}

.photo-lightbox__frame {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(17, 24, 39, 0.32);
  display: grid;
  gap: 10px;
  max-height: min(86vh, 860px);
  max-width: min(86vw, 980px);
  padding: 10px;
  position: relative;
  width: fit-content;
}

.photo-lightbox__head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.photo-lightbox__head span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  max-width: min(70vw, 760px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-lightbox img {
  border-radius: 8px;
  display: block;
  max-height: calc(min(86vh, 860px) - 62px);
  max-width: calc(min(86vw, 980px) - 20px);
  object-fit: contain;
}

@media (max-width: 980px) {
  
body.auth-pending,
body.auth-lock {
  overflow: hidden;
}

body.auth-pending .app-shell,
body.auth-lock .app-shell,
body.auth-pending .record-drawer,
body.auth-lock .record-drawer,
body.auth-pending .photo-lightbox,
body.auth-lock .photo-lightbox {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) 66px;
  }

  .rail {
    bottom: 0;
    flex-direction: row;
    grid-row: 2;
    justify-content: space-around;
    left: 0;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 80;
  }

  .brand-mark {
    display: none;
  }

  .workspace {
    padding-bottom: 66px;
  }

  .wordmark {
    min-width: auto;
  }

  .top-search {
    max-width: none;
  }

  .records-collab.has-mate {
    grid-template-columns: 1fr;
  }

  .records-collab.has-mate .mate-panel {
    position: static;
  }

  .view--map.is-visible {
    grid-template-columns: 1fr;
  }

  .map-stage,
  .map {
    min-height: calc(100vh - 67px);
  }

  .side-panel {
    border-left: 0;
    border-top: 1px solid rgba(228, 228, 231, 0.86);
    min-height: auto;
  }

  .compare-grid,
  .mate-layout {
    grid-template-columns: 1fr;
  }

  .record-drawer {
    bottom: 66px;
    padding: 10px;
    top: 67px;
    width: 100vw;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  .wordmark small {
    font-size: 11px;
  }

  .top-search {
    min-width: 0;
    width: 100%;
  }

  .top-actions,
  .section-actions {
    justify-content: stretch;
    width: 100%;
  }

  .auth-button,
  .section-actions .ghost-button,
  .section-actions .primary-button {
    flex: 1;
    justify-content: center;
  }

  .primary-button,
  .ghost-button {
    padding: 0 12px;
  }

  .map-controls {
    left: 10px;
    overflow-x: auto;
    right: 10px;
    top: 10px;
  }

  .mode-pill {
    top: 58px;
  }

  .map-toolbox--left {
    left: 10px;
    top: 110px;
  }

  .map-toolbox--right {
    right: 10px;
    top: 110px;
  }

  .layer-sheet {
    left: 66px;
    top: 158px;
  }

  .start-button {
    bottom: 100px;
  }

  .field-grid,
  .market-data-grid,
  .score-control,
  .market-lab,
  .candidate-card {
    grid-template-columns: 1fr;
  }

  .candidate-photo {
    height: auto;
    width: 100%;
  }

  .candidate-photo-button {
    height: auto;
    width: 100%;
  }

  .candidate-rank {
    height: 58px;
    width: 100%;
  }

  .candidate-rank strong {
    font-size: 24px;
  }

  .candidate-score-badge {
    justify-items: start;
    width: 100%;
  }

  .candidate-topline,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .candidate-scoreline,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .chart-area {
    border-left: 0;
    min-height: 300px;
    padding-left: 0;
  }

  .chart-grid {
    left: 0;
  }

  .chart-axis {
    left: 0;
  }

  .alert-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .alert-card .price-pill {
    grid-column: 2;
    width: fit-content;
  }

  .photo-lightbox {
    padding: 14px;
  }

  .photo-lightbox__frame {
    max-height: 88vh;
    max-width: 94vw;
    width: 94vw;
  }

  .photo-lightbox img {
    max-height: calc(88vh - 62px);
    max-width: calc(94vw - 20px);
    width: 100%;
  }
}


@media (max-width: 760px) {
  .auth-modal {
    padding: 14px;
  }

  .auth-card--login {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 28px);
    overflow-y: auto;
  }

  .login-copy {
    padding: 4px 0;
  }

  .login-copy h2 {
    font-size: 34px;
  }

  .login-surface {
    grid-template-columns: 1fr;
  }
}




/* 2026 auth split refresh */
.auth-card--login {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 38px 120px rgba(17, 24, 39, 0.34);
  display: grid;
  gap: 14px 18px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto auto auto auto;
  max-width: 980px;
  min-height: 620px;
  overflow: hidden;
  padding: 20px;
  transition: background 220ms ease;
  width: min(980px, 94vw);
}

.login-hero {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.login-copy,
.auth-switch,
.login-fields,
.login-submit {
  grid-column: 1;
  position: relative;
  z-index: 2;
}

.auth-card--login[data-auth-mode="signup"] .login-copy,
.auth-card--login[data-auth-mode="signup"] .auth-switch,
.auth-card--login[data-auth-mode="signup"] .login-fields,
.auth-card--login[data-auth-mode="signup"] .login-submit {
  grid-column: 2;
}

.auth-cover {
  align-content: end;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(145deg, #ff5a4f 0%, #ff6f61 58%, #f2554b 100%);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 8px;
  box-shadow: 0 28px 76px rgba(242, 85, 75, 0.32);
  color: #ffffff;
  display: grid;
  gap: 14px;
  grid-column: 2;
  grid-row: 2 / 6;
  min-height: 460px;
  overflow: hidden;
  padding: 32px;
  position: relative;
  transition:
    grid-column 220ms ease,
    transform 220ms ease;
}

.auth-card--login[data-auth-mode="signup"] .auth-cover {
  grid-column: 1;
}

.auth-cover::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  inset: 0;
  opacity: 0.24;
  position: absolute;
}

.auth-cover::after {
  border: 14px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px 999px 999px 12px;
  content: "";
  height: 170px;
  position: absolute;
  right: -38px;
  top: -32px;
  transform: rotate(-45deg);
  width: 170px;
}

.auth-cover > * {
  position: relative;
  z-index: 1;
}

.auth-cover .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.auth-cover strong {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.02;
  max-width: 330px;
}

.auth-cover p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.62;
  margin: 0;
  max-width: 340px;
}

.cover-switch-button {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-radius: 8px;
  color: var(--brand-deep);
  display: inline-flex;
  font-size: 15px;
  font-weight: 950;
  height: 50px;
  justify-content: center;
  justify-self: start;
  min-width: 156px;
  padding: 0 22px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.cover-switch-button:hover {
  box-shadow: 0 16px 34px rgba(120, 20, 16, 0.2);
  transform: translateY(-1px);
}

.login-copy {
  align-self: end;
  min-height: 210px;
  padding: 18px 12px 4px 0;
}

.auth-card--login[data-auth-mode="signup"] .login-copy {
  padding-left: 6px;
  padding-right: 0;
}

.login-copy h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 0.98;
  max-width: 410px;
}

.login-copy p {
  max-width: 390px;
}

.auth-switch {
  background: rgba(244, 244, 245, 0.86);
  border: 1px solid rgba(228, 228, 231, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  margin-top: 2px;
}

.auth-switch button {
  height: 46px;
}

.login-fields label span {
  color: #3f3f46;
  font-size: 13px;
  font-weight: 900;
}

.login-fields input {
  background: rgba(255, 255, 255, 0.9);
}

.login-submit {
  font-size: 16px;
  height: 56px;
  margin-top: 2px;
}

@media (max-width: 860px) {
  .auth-card--login,
  .auth-card--login[data-auth-mode="signup"] {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 28px);
    min-height: 0;
    overflow-y: auto;
    width: min(520px, 94vw);
  }

  .login-copy,
  .auth-switch,
  .login-fields,
  .login-submit,
  .auth-card--login[data-auth-mode="signup"] .login-copy,
  .auth-card--login[data-auth-mode="signup"] .auth-switch,
  .auth-card--login[data-auth-mode="signup"] .login-fields,
  .auth-card--login[data-auth-mode="signup"] .login-submit,
  .auth-cover,
  .auth-card--login[data-auth-mode="signup"] .auth-cover {
    grid-column: 1;
  }

  .auth-cover {
    grid-row: auto;
    min-height: 220px;
    order: 3;
    padding: 24px;
  }

  .login-copy {
    min-height: 0;
    padding: 8px 0 0;
  }

  .login-copy h2,
  .auth-cover strong {
    font-size: 34px;
  }
}

/* Auth split final: form panel + colored switch panel */
.auth-card--login {
  background: rgba(255, 255, 255, 0.97) !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  box-shadow: 0 38px 120px rgba(17, 24, 39, 0.34) !important;
  display: block !important;
  max-width: 960px !important;
  min-height: auto !important;
  overflow: hidden !important;
  padding: 20px !important;
  width: min(960px, 94vw) !important;
}

.auth-card--login .login-hero {
  display: flex !important;
  margin-bottom: 18px !important;
}

.auth-split {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 480px;
}

.auth-form-panel {
  align-content: center;
  display: grid;
  gap: 16px;
  order: 1;
  padding: 18px 8px 0 0;
}

.auth-card--login[data-auth-mode="signup"] .auth-form-panel {
  order: 2;
  padding: 18px 0 0 8px;
}

.auth-card--login .auth-cover {
  align-content: end !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(145deg, #ff5a4f 0%, #ff7568 58%, #f2554b 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.46) !important;
  border-radius: 8px !important;
  box-shadow: 0 28px 76px rgba(242, 85, 75, 0.32) !important;
  color: #ffffff !important;
  display: grid !important;
  gap: 14px !important;
  grid-column: auto !important;
  grid-row: auto !important;
  min-height: 480px !important;
  order: 2;
  overflow: hidden !important;
  padding: 34px !important;
  position: relative !important;
}

.auth-card--login[data-auth-mode="signup"] .auth-cover {
  order: 1;
}

.auth-cover::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px) !important;
  background-size: 34px 34px !important;
  content: "" !important;
  inset: 0 !important;
  opacity: 0.22 !important;
  position: absolute !important;
}

.auth-cover::after {
  border: 14px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px 999px 999px 12px !important;
  content: "" !important;
  height: 170px !important;
  position: absolute !important;
  right: -42px !important;
  top: -34px !important;
  transform: rotate(-45deg) !important;
  width: 170px !important;
}

.auth-card--login .auth-cover > * {
  position: relative !important;
  z-index: 1 !important;
}

.auth-card--login .auth-cover .eyebrow {
  color: rgba(255, 255, 255, 0.78) !important;
}

.auth-card--login .auth-cover strong {
  color: #ffffff !important;
  font-size: clamp(34px, 4vw, 52px) !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  line-height: 1.02 !important;
  max-width: 330px !important;
}

.auth-card--login .auth-cover p {
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.62 !important;
  margin: 0 !important;
  max-width: 340px !important;
}

.cover-switch-button {
  align-items: center !important;
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: var(--brand-deep) !important;
  display: inline-flex !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  height: 50px !important;
  justify-content: center !important;
  justify-self: start !important;
  min-width: 156px !important;
  padding: 0 22px !important;
}

.auth-card--login .login-copy {
  align-self: auto !important;
  display: grid !important;
  gap: 10px !important;
  min-height: 0 !important;
  padding: 0 !important;
}

.auth-card--login .login-copy h2 {
  font-size: clamp(42px, 5vw, 64px) !important;
  line-height: 0.94 !important;
  margin: 0 !important;
  max-width: 410px !important;
}

.auth-card--login .login-copy p {
  font-size: 15px !important;
  line-height: 1.58 !important;
  margin: 0 !important;
  max-width: 390px !important;
}

.auth-card--login .auth-switch,
.auth-card--login .login-fields,
.auth-card--login .login-submit {
  grid-column: auto !important;
  position: static !important;
  z-index: auto !important;
}

.auth-card--login .auth-switch {
  background: #f4f4f5 !important;
  border: 1px solid rgba(228, 228, 231, 0.9) !important;
  border-radius: 8px !important;
  display: grid !important;
  gap: 4px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  margin: 0 !important;
  padding: 4px !important;
}

.auth-card--login .auth-switch button {
  height: 46px !important;
}

.auth-card--login .login-fields {
  display: grid !important;
  gap: 12px !important;
}

.auth-card--login .login-submit {
  font-size: 16px !important;
  height: 56px !important;
  margin-top: 2px !important;
}

@media (max-width: 860px) {
  .auth-card--login {
    max-height: calc(100vh - 28px) !important;
    overflow-y: auto !important;
    width: min(520px, 94vw) !important;
  }

  .auth-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .auth-form-panel,
  .auth-card--login[data-auth-mode="signup"] .auth-form-panel,
  .auth-card--login .auth-cover,
  .auth-card--login[data-auth-mode="signup"] .auth-cover {
    order: initial;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .auth-card--login .auth-cover {
    min-height: 230px !important;
    padding: 24px !important;
  }

  .auth-card--login .login-copy h2,
  .auth-card--login .auth-cover strong {
    font-size: 36px !important;
  }
}

/* Auth simple glass panel: ID/PW only, colored half switches mode */
.auth-modal--login {
  padding: 24px !important;
}

.auth-modal--login .auth-modal__backdrop {
  background:
    linear-gradient(135deg, rgba(255, 90, 79, 0.42), rgba(255, 255, 255, 0.28) 42%, rgba(17, 24, 39, 0.48)),
    rgba(244, 244, 245, 0.64) !important;
  backdrop-filter: blur(12px) !important;
}

.auth-card--login {
  background: rgba(255, 255, 255, 0.64) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 8px !important;
  box-shadow: 0 36px 120px rgba(17, 24, 39, 0.28) !important;
  display: block !important;
  max-width: 760px !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 10px !important;
  width: min(760px, 92vw) !important;
  backdrop-filter: blur(26px) saturate(145%) !important;
}

.auth-card--login .login-hero,
.auth-card--login .login-brand,
.auth-card--login .login-close,
.auth-card--login .eyebrow,
.auth-card--login #authDescription,
.auth-card--login .auth-switch,
.auth-card--login [data-signup-only] {
  display: none !important;
}

.auth-split.auth-split--minimal {
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: 1fr 1fr !important;
  min-height: 360px !important;
}

.auth-card--login .auth-form-panel {
  align-content: center !important;
  background: rgba(255, 255, 255, 0.62) !important;
  border: 1px solid rgba(255, 255, 255, 0.58) !important;
  border-radius: 8px !important;
  display: grid !important;
  gap: 16px !important;
  order: 1 !important;
  padding: 34px !important;
}

.auth-card--login[data-auth-mode="signup"] .auth-form-panel {
  order: 2 !important;
}

.auth-card--login .auth-cover {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(145deg, #ff5a4f 0%, #ff7568 58%, #f2554b 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.36) !important;
  border-radius: 8px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 24px 62px rgba(242, 85, 75, 0.24) !important;
  cursor: pointer !important;
  display: block !important;
  grid-column: auto !important;
  grid-row: auto !important;
  min-height: 360px !important;
  order: 2 !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: relative !important;
}

.auth-card--login[data-auth-mode="signup"] .auth-cover {
  order: 1 !important;
}

.auth-card--login .auth-cover::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px) !important;
  background-size: 32px 32px !important;
  content: "" !important;
  inset: 0 !important;
  opacity: 0.2 !important;
  position: absolute !important;
}

.auth-card--login .auth-cover::after {
  border: 18px solid rgba(255, 255, 255, 0.17) !important;
  border-radius: 999px 999px 999px 14px !important;
  content: "" !important;
  height: 150px !important;
  position: absolute !important;
  right: -42px !important;
  top: -32px !important;
  transform: rotate(-45deg) !important;
  width: 150px !important;
}

.auth-card--login .login-copy {
  display: block !important;
  min-height: 0 !important;
  padding: 0 !important;
}

.auth-card--login .login-copy h2 {
  color: var(--ink) !important;
  font-size: 34px !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  margin: 0 0 4px !important;
}

.auth-card--login .login-fields {
  display: grid !important;
  gap: 14px !important;
}

.auth-card--login .login-fields 
label {
  display: grid !important;
  gap: 7px !important;
}

.auth-card--login .login-fields label span {
  color: #52525b !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  letter-spacing: 0.08em !important;
}

.auth-card--login .login-fields input {
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(228, 228, 231, 0.92) !important;
  border-radius: 8px !important;
  color: var(--ink) !important;
  min-height: 48px !important;
  padding: 0 14px !important;
}

.auth-card--login .login-fields input:focus {
  border-color: rgba(255, 90, 79, 0.86) !important;
  box-shadow: 0 0 0 4px rgba(255, 90, 79, 0.14) !important;
  outline: none !important;
}

.auth-card--login .login-submit {
  background: var(--brand) !important;
  border-radius: 8px !important;
  box-shadow: 0 18px 34px rgba(242, 85, 75, 0.24) !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  height: 50px !important;
  justify-content: center !important;
  margin-top: 4px !important;
}

@media (max-width: 720px) {
  .auth-card--login {
    max-height: calc(100vh - 28px) !important;
    overflow-y: auto !important;
    width: min(420px, 94vw) !important;
  }

  .auth-split.auth-split--minimal {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  .auth-card--login .auth-form-panel,
  .auth-card--login[data-auth-mode="signup"] .auth-form-panel,
  .auth-card--login .auth-cover,
  .auth-card--login[data-auth-mode="signup"] .auth-cover {
    order: initial !important;
  }

  .auth-card--login .auth-cover {
    min-height: 120px !important;
  }
}

/* Auth polish: quieter 2026 glass form */
.auth-modal--login .auth-modal__backdrop {
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 105, 96, 0.32), transparent 30%),
    linear-gradient(135deg, rgba(255, 244, 242, 0.58), rgba(244, 245, 247, 0.42) 46%, rgba(24, 24, 27, 0.5)),
    rgba(244, 244, 245, 0.72) !important;
  backdrop-filter: blur(18px) saturate(125%) !important;
}

.auth-card--login {
  background: rgba(255, 255, 255, 0.52) !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  box-shadow: 0 42px 130px rgba(17, 24, 39, 0.26) !important;
  max-width: 780px !important;
  padding: 12px !important;
}

.auth-split.auth-split--minimal {
  gap: 12px !important;
  min-height: 384px !important;
}

.auth-card--login .auth-form-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.58)) !important;
  border: 1px solid rgba(255, 255, 255, 0.68) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  gap: 18px !important;
  min-height: 384px !important;
  padding: 42px 38px !important;
}

.auth-card--login .auth-cover {
  background:
    radial-gradient(circle at 74% 18%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(145deg, #ff6a61 0%, #f2554b 52%, #de3f39 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 24px 70px rgba(222, 63, 57, 0.26) !important;
  min-height: 384px !important;
}

.auth-card--login .auth-cover::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px) !important;
  background-size: 38px 38px !important;
  opacity: 0.13 !important;
}

.auth-card--login .auth-cover::after {
  border-width: 16px !important;
  height: 168px !important;
  opacity: 0.82 !important;
  right: -46px !important;
  top: -42px !important;
  width: 168px !important;
}

.auth-cover-logo {
  color: #ffffff;
  display: block;
  font-size: 42px;
  font-weight: 950;
  left: 32px;
  letter-spacing: 0;
  line-height: 1;
  position: absolute;
  text-shadow: 0 18px 36px rgba(90, 15, 12, 0.22);
  top: 32px;
  z-index: 2;
}

.auth-cover-logo::after {
  background: rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  content: "";
  display: block;
  height: 3px;
  margin-top: 14px;
  width: 42px;
}

.auth-card--login .login-copy h2 {
  color: #15151c !important;
  font-size: 30px !important;
  font-weight: 950 !important;
  letter-spacing: 0.02em !important;
}

.auth-card--login .login-fields {
  gap: 16px !important;
}

.auth-card--login .login-fields label span {
  color: #71717a !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0.16em !important;
}

.auth-card--login .login-fields input {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(212, 212, 216, 0.78) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64) !important;
  min-height: 52px !important;
  padding: 0 16px !important;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease !important;
}

.auth-card--login .login-fields input::placeholder {
  color: #a1a1aa !important;
}

.auth-card--login .login-fields input:focus {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(242, 85, 75, 0.66) !important;
  box-shadow: 0 0 0 4px rgba(242, 85, 75, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.76) !important;
}

.auth-card--login .login-submit {
  background: linear-gradient(135deg, #ff6a61, #f2554b) !important;
  box-shadow: 0 18px 34px rgba(242, 85, 75, 0.22) !important;
  font-size: 13px !important;
  height: 52px !important;
  letter-spacing: 0.1em !important;
}

.auth-card--login .login-submit:hover {
  filter: saturate(1.04);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .auth-card--login .auth-form-panel {
    min-height: 330px !important;
    padding: 34px 28px !important;
  }

  .auth-card--login .auth-cover {
    min-height: 130px !important;
  }

  .auth-cover-logo {
    font-size: 34px;
    left: 24px;
    top: 24px;
  }
}

/* Auth polish fix: keep brand visible and balanced */
.auth-card--login {
  max-width: 820px !important;
}

.auth-split.auth-split--minimal {
  min-height: 400px !important;
}

.auth-card--login .auth-form-panel,
.auth-card--login .auth-cover {
  min-height: 400px !important;
}

.auth-card--login .auth-form-panel {
  padding: 46px 42px !important;
}

.auth-cover-logo {
  bottom: auto !important;
  color: #ffffff !important;
  font-size: 46px !important;
  left: 36px !important;
  line-height: 1 !important;
  position: absolute !important;
  top: 38px !important;
  z-index: 3 !important;
}

.auth-cover-logo::after {
  margin-top: 16px !important;
}

.auth-card--login .auth-cover::after {
  height: 154px !important;
  opacity: 0.72 !important;
  right: -38px !important;
  top: 36px !important;
  width: 154px !important;
}

.auth-card--login .auth-cover::before {
  opacity: 0.11 !important;
}

.auth-card--login .login-copy h2 {
  font-size: 32px !important;
}

.auth-card--login .login-submit {
  margin-top: 8px !important;
}

@media (max-width: 720px) {
  .auth-cover-logo {
    font-size: 34px !important;
    left: 26px !important;
    top: 24px !important;
  }
}

/* Auth parity fix: SIGN IN and SIGN UP must share identical proportions */
.auth-split.auth-split--minimal {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

.auth-card--login .auth-form-panel {
  align-content: center !important;
  display: grid !important;
  gap: 18px !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: stretch !important;
}

.auth-card--login .auth-form-panel > *,
.auth-card--login[data-auth-mode="signup"] .auth-form-panel > *,
.auth-card--login .login-copy,
.auth-card--login[data-auth-mode="signup"] .login-copy,
.auth-card--login .login-fields,
.auth-card--login[data-auth-mode="signup"] .login-fields,
.auth-card--login .login-submit,
.auth-card--login[data-auth-mode="signup"] .login-submit {
  grid-column: 1 / -1 !important;
  justify-self: stretch !important;
  max-width: none !important;
  width: 100% !important;
}

.auth-card--login .login-copy {
  align-self: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

.auth-card--login .login-fields {
  grid-template-columns: minmax(0, 1fr) !important;
}

.auth-card--login .login-submit {
  display: inline-flex !important;
  min-width: 0 !important;
}

.auth-card--login .auth-cover {
  align-content: start !important;
}

.auth-cover-logo {
  bottom: auto !important;
  left: 36px !important;
  top: 38px !important;
  transform: none !important;
}

/* Auth motion and custom success dialog */
.auth-split.auth-split--minimal {
  overflow: hidden !important;
  position: relative !important;
}

.auth-card--login .auth-form-panel,
.auth-card--login .auth-cover {
  order: 0 !important;
  transition:
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease,
    filter 220ms ease !important;
  will-change: transform !important;
}

.auth-card--login .auth-form-panel {
  grid-column: 1 !important;
  grid-row: 1 !important;
  z-index: 2 !important;
}

.auth-card--login .auth-cover {
  grid-column: 2 !important;
  grid-row: 1 !important;
  z-index: 3 !important;
}

.auth-card--login[data-auth-mode="signup"] .auth-form-panel {
  grid-column: 1 !important;
  order: 0 !important;
  transform: translateX(calc(100% + 12px)) !important;
}

.auth-card--login[data-auth-mode="signup"] .auth-cover {
  grid-column: 2 !important;
  order: 0 !important;
  transform: translateX(calc(-100% - 12px)) !important;
}

.auth-card--login .auth-cover:hover {
  filter: saturate(1.04) brightness(1.01) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 30px 82px rgba(222, 63, 57, 0.32) !important;
}

.signup-success-modal {
  z-index: 190 !important;
}

.signup-success-modal .auth-modal__backdrop {
  background: rgba(17, 24, 39, 0.24) !important;
  backdrop-filter: blur(10px) !important;
}

.signup-success-card {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 247, 0.9)) !important;
  border: 1px solid rgba(255, 255, 255, 0.76) !important;
  border-radius: 8px !important;
  box-shadow: 0 34px 100px rgba(17, 24, 39, 0.24) !important;
  display: grid;
  gap: 12px;
  justify-items: center;
  max-width: 340px !important;
  padding: 28px !important;
  position: relative;
  text-align: center;
  width: min(340px, 90vw) !important;
  backdrop-filter: blur(24px) saturate(135%);
}

.signup-success-mark {
  align-items: center;
  background: linear-gradient(145deg, #ff6a61, #f2554b);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(242, 85, 75, 0.26);
  color: #ffffff;
  display: inline-flex;
  font-size: 24px;
  font-weight: 950;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.signup-success-card strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0;
}

.signup-success-card p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
  margin: 0;
}

.signup-success-card .primary-button {
  background: linear-gradient(135deg, #ff6a61, #f2554b) !important;
  border-radius: 8px !important;
  height: 46px !important;
  justify-content: center !important;
  margin-top: 4px;
  min-width: 140px;
}

@media (max-width: 720px) {
  .auth-card--login[data-auth-mode="signup"] .auth-form-panel,
  .auth-card--login[data-auth-mode="signup"] .auth-cover {
    transform: none !important;
  }
}

/* Auth visual upgrade: stronger brand panel and premium form surface */
.auth-card--login {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.36)) !important;
  box-shadow:
    0 44px 140px rgba(17, 24, 39, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  max-width: 840px !important;
  padding: 14px !important;
}

.auth-split.auth-split--minimal {
  gap: 14px !important;
  min-height: 420px !important;
}

.auth-card--login .auth-form-panel,
.auth-card--login .auth-cover {
  min-height: 420px !important;
}

.auth-card--login .auth-form-panel {
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 106, 97, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62)) !important;
  border: 1px solid rgba(255, 255, 255, 0.82) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 20px 70px rgba(17, 24, 39, 0.08) !important;
  padding: 52px 46px !important;
}

.auth-card--login .login-copy h2 {
  color: #111118 !important;
  font-size: 28px !important;
  font-weight: 950 !important;
  letter-spacing: 0.08em !important;
  margin-bottom: 8px !important;
}

.auth-card--login .login-copy::after {
  background: linear-gradient(90deg, #ff6a61, rgba(255, 106, 97, 0.12)) !important;
  border-radius: 999px !important;
  content: "" !important;
  display: block !important;
  height: 3px !important;
  margin-top: 16px !important;
  width: 54px !important;
}

.auth-card--login .login-fields {
  gap: 18px !important;
}

.auth-card--login .login-fields label span {
  color: #6f6f78 !important;
  font-size: 10px !important;
  letter-spacing: 0.2em !important;
}

.auth-card--login .login-fields input {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.68)) !important;
  border: 1px solid rgba(210, 210, 216, 0.74) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 24px rgba(17, 24, 39, 0.04) !important;
  color: #15151c !important;
  min-height: 54px !important;
}

.auth-card--login .login-submit {
  background: linear-gradient(135deg, #ff7168 0%, #f2554b 48%, #dc3e39 100%) !important;
  box-shadow:
    0 20px 42px rgba(242, 85, 75, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
  height: 54px !important;
}

.auth-card--login .auth-cover {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.24), transparent 24%),
    radial-gradient(circle at 82% 78%, rgba(115, 19, 16, 0.18), transparent 34%),
    linear-gradient(145deg, #ff7a70 0%, #f2554b 46%, #d93b37 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -80px 110px rgba(107, 20, 18, 0.12),
    0 32px 90px rgba(222, 63, 57, 0.32) !important;
}

.auth-card--login .auth-cover::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 44%, rgba(255, 255, 255, 0.15) 44% 46%, transparent 46% 100%) !important;
  background-size: 34px 34px, 34px 34px, 100% 100% !important;
  opacity: 0.18 !important;
}

.auth-card--login .auth-cover::after {
  border-color: rgba(255, 255, 255, 0.2) !important;
  height: 190px !important;
  opacity: 0.62 !important;
  right: -52px !important;
  top: -28px !important;
  width: 190px !important;
}

.auth-cover-logo {
  font-size: 54px !important;
  left: 42px !important;
  text-shadow:
    0 20px 46px rgba(91, 16, 14, 0.24),
    0 1px 0 rgba(255, 255, 255, 0.16) !important;
  top: 42px !important;
}

.auth-cover-logo::before {
  background: rgba(255, 255, 255, 0.16) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 8px !important;
  content: "" !important;
  height: 82px !important;
  left: -16px !important;
  position: absolute !important;
  top: -14px !important;
  width: 176px !important;
  z-index: -1 !important;
  backdrop-filter: blur(10px) !important;
}

.auth-cover-logo::after {
  background: rgba(255, 255, 255, 0.52) !important;
  width: 52px !important;
}

.auth-card--login[data-auth-mode="signup"] .auth-cover::after {
  right: auto !important;
  left: -52px !important;
}

@media (max-width: 720px) {
  .auth-card--login .auth-form-panel,
  .auth-card--login .auth-cover {
    min-height: 340px !important;
  }

  .auth-cover-logo {
    font-size: 38px !important;
    left: 28px !important;
    top: 28px !important;
  }

  .auth-cover-logo::before {
    height: 62px !important;
    width: 130px !important;
  }
}

/* Auth trend pass: bolder liquid-glass login experience */
.auth-modal--login {
  background:
    linear-gradient(115deg, rgba(255, 112, 104, 0.18), transparent 34%),
    linear-gradient(295deg, rgba(17, 24, 39, 0.16), transparent 42%) !important;
}

.auth-modal--login .auth-modal__backdrop {
  background:
    linear-gradient(135deg, rgba(255, 244, 242, 0.7), rgba(247, 247, 249, 0.38) 44%, rgba(22, 22, 28, 0.46)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px) !important;
  background-size: auto, 72px 72px, 72px 72px !important;
  backdrop-filter: blur(22px) saturate(132%) !important;
}

.auth-card--login {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.34)) !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  border-radius: 12px !important;
  box-shadow:
    0 54px 160px rgba(17, 24, 39, 0.31),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  max-width: 880px !important;
  padding: 12px !important;
  position: relative !important;
}

.auth-card--login::before {
  background:
    linear-gradient(90deg, rgba(255, 106, 97, 0.72), rgba(255, 255, 255, 0.2), rgba(242, 85, 75, 0.48)) !important;
  content: "" !important;
  height: 1px !important;
  left: 18px !important;
  position: absolute !important;
  right: 18px !important;
  top: 0 !important;
  z-index: 5 !important;
}

.auth-split.auth-split--minimal {
  gap: 12px !important;
  min-height: 440px !important;
}

.auth-card--login .auth-form-panel,
.auth-card--login .auth-cover {
  border-radius: 10px !important;
  min-height: 440px !important;
}

.auth-card--login .auth-form-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.68)) !important;
  border: 1px solid rgba(255, 255, 255, 0.88) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -42px 80px rgba(242, 85, 75, 0.045),
    0 22px 70px rgba(17, 24, 39, 0.07) !important;
  padding: 58px 50px !important;
}

.auth-card--login .login-copy h2 {
  color: #111118 !important;
  font-size: 29px !important;
  font-weight: 950 !important;
  letter-spacing: 0.12em !important;
}

.auth-card--login .login-copy::after {
  background: linear-gradient(90deg, #f2554b 0%, rgba(242, 85, 75, 0.1) 100%) !important;
  height: 2px !important;
  margin-top: 18px !important;
  width: 64px !important;
}

.auth-card--login .login-fields 
label {
  gap: 9px !important;
}

.auth-card--login .login-fields label span {
  color: #7b7b85 !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  letter-spacing: 0.22em !important;
}

.auth-card--login .login-fields input {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)) !important;
  border: 1px solid rgba(206, 206, 214, 0.72) !important;
  border-radius: 10px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 14px 28px rgba(17, 24, 39, 0.045) !important;
  min-height: 56px !important;
}

.auth-card--login .login-fields input:focus {
  border-color: rgba(242, 85, 75, 0.74) !important;
  box-shadow:
    0 0 0 5px rgba(242, 85, 75, 0.12),
    0 16px 34px rgba(242, 85, 75, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

.auth-card--login .login-submit {
  border-radius: 10px !important;
  box-shadow:
    0 22px 48px rgba(242, 85, 75, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  height: 56px !important;
}

.auth-card--login .auth-cover {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(155deg, #ff8076 0%, #fb5e55 36%, #e5453f 68%, #c93431 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -90px 140px rgba(96, 16, 15, 0.18),
    0 34px 96px rgba(222, 63, 57, 0.36) !important;
}

.auth-card--login .auth-cover::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 42%, rgba(255, 255, 255, 0.18) 42% 43%, transparent 43% 100%),
    linear-gradient(25deg, transparent 0 61%, rgba(255, 255, 255, 0.13) 61% 62%, transparent 62% 100%) !important;
  background-size: 36px 36px, 36px 36px, 100% 100%, 100% 100% !important;
  opacity: 0.2 !important;
}

.auth-card--login .auth-cover::after {
  border: 18px solid rgba(255, 255, 255, 0.2) !important;
  height: 210px !important;
  opacity: 0.58 !important;
  right: -62px !important;
  top: -44px !important;
  width: 210px !important;
}

.auth-cover-logo {
  color: #ffffff !important;
  font-size: 56px !important;
  left: 44px !important;
  top: 46px !important;
}

.auth-cover-logo::before {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 10px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 22px 60px rgba(89, 14, 12, 0.12) !important;
  height: 88px !important;
  left: -18px !important;
  top: -16px !important;
  width: 188px !important;
}

.signup-success-card {
  border-radius: 12px !important;
}

@media (max-width: 720px) {
  .auth-card--login .auth-form-panel,
  .auth-card--login .auth-cover {
    min-height: 350px !important;
  }
}

/* Signup success copy fit */
.signup-success-card {
  max-width: 380px !important;
  width: min(380px, 90vw) !important;
}

.signup-success-card p {
  font-size: 12px !important;
  line-height: 1.35 !important;
  max-width: 320px !important;
  white-space: nowrap !important;
}

/* Auth brand mark refinement: remove badge box */
.auth-cover-logo {
  font-size: 42px !important;
  left: 42px !important;
  letter-spacing: 0 !important;
  opacity: 0.96 !important;
  text-shadow: 0 18px 42px rgba(86, 13, 11, 0.2) !important;
  top: 44px !important;
}

.auth-cover-logo::before {
  display: none !important;
}

.auth-cover-logo::after {
  background: rgba(255, 255, 255, 0.62) !important;
  height: 2px !important;
  margin-top: 14px !important;
  width: 44px !important;
}

/* 2026 auth and mate invite polish */
.auth-modal--login {
  padding: 24px !important;
}

.auth-modal--login .auth-modal__backdrop {
  background:
    linear-gradient(115deg, rgba(255, 246, 244, 0.94) 0%, rgba(245, 247, 250, 0.92) 43%, rgba(226, 232, 240, 0.96) 100%),
    repeating-linear-gradient(0deg, rgba(15, 23, 42, 0.035) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.028) 0 1px, transparent 1px 38px) !important;
  backdrop-filter: blur(18px) saturate(124%) !important;
}

.auth-card--login {
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 8px !important;
  box-shadow: 0 42px 120px rgba(15, 23, 42, 0.28), 0 1px 0 rgba(255, 255, 255, 0.8) inset !important;
  max-width: 840px !important;
  padding: 8px !important;
  width: min(840px, 92vw) !important;
  backdrop-filter: blur(24px) saturate(138%) !important;
}

.auth-split.auth-split--minimal {
  gap: 8px !important;
  grid-template-columns: 1fr 1fr !important;
  min-height: 390px !important;
}

.auth-card--login .auth-form-panel {
  align-content: center !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)) !important;
  border: 1px solid rgba(228, 228, 231, 0.74) !important;
  border-radius: 8px !important;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.06) inset !important;
  gap: 18px !important;
  min-height: 390px !important;
  padding: 44px 48px !important;
}

.auth-card--login[data-auth-mode="signup"] .auth-form-panel {
  order: 2 !important;
}

.auth-card--login .login-copy h2 {
  color: #111827 !important;
  font-size: clamp(36px, 4vw, 48px) !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  line-height: 0.96 !important;
  margin: 0 !important;
}

.auth-card--login .login-copy h2::after {
  background: linear-gradient(90deg, #ff5a4f, rgba(255, 90, 79, 0));
  border-radius: 999px;
  content: "";
  display: block;
  height: 4px;
  margin-top: 14px;
  width: 44px;
}

.auth-card--login .login-fields {
  gap: 14px !important;
}

.auth-card--login .login-fields label {
  gap: 8px !important;
}

.auth-card--login .login-fields label span {
  color: #71717a !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  letter-spacing: 0.12em !important;
}

.auth-card--login .login-fields input {
  background: rgba(250, 250, 250, 0.92) !important;
  border: 1px solid rgba(212, 212, 216, 0.9) !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
  color: #111827 !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  height: 52px !important;
  padding: 0 16px !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease !important;
}

.auth-card--login .login-fields input::placeholder {
  color: #a1a1aa !important;
}

.auth-card--login .login-fields input:focus {
  background: #ffffff !important;
  border-color: rgba(255, 90, 79, 0.86) !important;
  box-shadow: 0 0 0 4px rgba(255, 90, 79, 0.13), 0 14px 34px rgba(15, 23, 42, 0.08) !important;
  outline: none !important;
  transform: translateY(-1px) !important;
}

.auth-card--login .login-submit {
  background: linear-gradient(135deg, #ff6960 0%, #f0443e 100%) !important;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: 0 18px 38px rgba(240, 68, 62, 0.28) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  height: 52px !important;
  justify-content: center !important;
  letter-spacing: 0.04em !important;
  margin-top: 2px !important;
  transition: box-shadow 0.18s ease, transform 0.18s ease, filter 0.18s ease !important;
}

.auth-card--login .login-submit:hover {
  box-shadow: 0 22px 46px rgba(240, 68, 62, 0.34) !important;
  filter: saturate(1.04) !important;
  transform: translateY(-1px) !important;
}

.auth-card--login .auth-cover {
  align-items: end !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 38%),
    linear-gradient(150deg, #ff746b 0%, #ff554f 46%, #e93f39 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.36) !important;
  border-radius: 8px !important;
  box-shadow: 0 28px 76px rgba(240, 68, 62, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
  cursor: pointer !important;
  display: grid !important;
  min-height: 390px !important;
  order: 2 !important;
  overflow: hidden !important;
  padding: 38px !important;
  position: relative !important;
  transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease !important;
}

.auth-card--login[data-auth-mode="signup"] .auth-cover {
  order: 1 !important;
}

.auth-card--login .auth-cover:hover {
  box-shadow: 0 34px 88px rgba(240, 68, 62, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
  filter: saturate(1.04) !important;
  transform: translateY(-1px) !important;
}

.auth-card--login .auth-cover::before {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 28px) !important;
  content: "" !important;
  inset: 0 !important;
  opacity: 0.6 !important;
  position: absolute !important;
}

.auth-card--login .auth-cover::after {
  border: 20px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px 999px 999px 16px !important;
  content: "" !important;
  height: 190px !important;
  position: absolute !important;
  right: -32px !important;
  top: -38px !important;
  transform: rotate(-45deg) !important;
  width: 190px !important;
}

.auth-cover-logo {
  color: #ffffff !important;
  display: block !important;
  font-size: clamp(48px, 6vw, 76px) !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  line-height: 0.9 !important;
  position: relative !important;
  text-shadow: 0 18px 40px rgba(127, 29, 29, 0.18) !important;
  z-index: 2 !important;
}

.auth-cover-logo::before {
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 8px !important;
  content: "" !important;
  height: 104px !important;
  left: -20px !important;
  position: absolute !important;
  top: -18px !important;
  width: 210px !important;
  z-index: -1 !important;
  backdrop-filter: blur(8px) !important;
}

.auth-cover-logo::after {
  background: rgba(255, 255, 255, 0.9) !important;
  border-radius: 999px !important;
  bottom: -14px !important;
  content: "" !important;
  height: 4px !important;
  left: 2px !important;
  position: absolute !important;
  width: 54px !important;
}

.signup-success-modal .auth-modal__backdrop,
.invite-create-modal .auth-modal__backdrop,
#inviteModal .auth-modal__backdrop {
  background:
    linear-gradient(115deg, rgba(255, 246, 244, 0.72), rgba(241, 245, 249, 0.82)),
    repeating-linear-gradient(0deg, rgba(15, 23, 42, 0.03) 0 1px, transparent 1px 36px) !important;
  backdrop-filter: blur(18px) saturate(128%) !important;
}

.invite-create-card {
  background: rgba(255, 255, 255, 0.84) !important;
  border: 1px solid rgba(255, 255, 255, 0.88) !important;
  border-radius: 8px !important;
  box-shadow: 0 34px 110px rgba(15, 23, 42, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: minmax(210px, 0.92fr) minmax(300px, 1fr) !important;
  max-width: 720px !important;
  overflow: hidden !important;
  padding: 8px !important;
  backdrop-filter: blur(24px) saturate(136%) !important;
}

.invite-create-visual {
  align-items: end !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 36%),
    linear-gradient(145deg, #ff746b 0%, #ff554f 48%, #e93f39 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  border-radius: 8px !important;
  box-shadow: 0 26px 68px rgba(240, 68, 62, 0.24) !important;
  min-height: 332px !important;
  padding: 30px !important;
  position: relative !important;
}

.invite-create-visual::before {
  border: 19px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px 999px 999px 16px !important;
  height: 174px !important;
  right: -36px !important;
  top: -34px !important;
  width: 174px !important;
}

.invite-create-visual::after {
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.11) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 26px) !important;
  opacity: 0.7 !important;
}

.invite-create-visual span {
  color: #ffffff !important;
  font-size: clamp(42px, 5vw, 64px) !important;
  font-weight: 950 !important;
  line-height: 0.92 !important;
  text-shadow: 0 18px 38px rgba(127, 29, 29, 0.18) !important;
}

.invite-create-content {
  align-content: center !important;
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(228, 228, 231, 0.72) !important;
  border-radius: 8px !important;
  display: grid !important;
  gap: 13px !important;
  padding: 34px !important;
}

.invite-create-content .eyebrow {
  color: #ff5a4f !important;
}

.invite-create-content h2 {
  color: #111827 !important;
  font-size: 34px !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
}

.invite-create-content p {
  color: #71717a !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
  margin-bottom: 2px !important;
}

.invite-create-content input {
  background: rgba(250, 250, 250, 0.96) !important;
  border: 1px solid rgba(212, 212, 216, 0.9) !important;
  border-radius: 8px !important;
  color: #111827 !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  height: 52px !important;
  padding: 0 16px !important;
}

.invite-create-content input:focus {
  background: #ffffff !important;
  border-color: rgba(255, 90, 79, 0.86) !important;
  box-shadow: 0 0 0 4px rgba(255, 90, 79, 0.13), 0 14px 34px rgba(15, 23, 42, 0.08) !important;
  outline: none !important;
}

.invite-create-actions {
  gap: 10px !important;
  grid-template-columns: 0.72fr 1fr !important;
  margin-top: 6px !important;
}

.invite-create-actions .ghost-button,
.invite-create-actions .primary-button {
  border-radius: 8px !important;
  height: 50px !important;
  justify-content: center !important;
}

.invite-create-actions .primary-button {
  background: linear-gradient(135deg, #ff6960, #f0443e) !important;
  box-shadow: 0 18px 38px rgba(240, 68, 62, 0.26) !important;
}

#inviteModal .auth-card {
  background: rgba(255, 255, 255, 0.86) !important;
  border: 1px solid rgba(255, 255, 255, 0.86) !important;
  border-radius: 8px !important;
  box-shadow: 0 34px 110px rgba(15, 23, 42, 0.25) !important;
  max-width: 560px !important;
  backdrop-filter: blur(24px) saturate(134%) !important;
}

#inviteModal .modal-head h2 {
  font-size: 28px !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
}

.invite-card,
.invite-empty {
  background: rgba(250, 250, 250, 0.9) !important;
  border: 1px solid rgba(228, 228, 231, 0.88) !important;
  border-radius: 8px !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06) !important;
  padding: 14px !important;
}

.signup-success-card {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 8px !important;
  box-shadow: 0 34px 100px rgba(15, 23, 42, 0.26) !important;
  backdrop-filter: blur(24px) saturate(132%) !important;
}

@media (max-width: 760px) {
  .auth-split.auth-split--minimal,
  .invite-create-card {
    grid-template-columns: 1fr !important;
  }

  .auth-card--login .auth-form-panel,
  .auth-card--login[data-auth-mode="signup"] .auth-form-panel,
  .auth-card--login .auth-cover,
  .auth-card--login[data-auth-mode="signup"] .auth-cover {
    order: initial !important;
  }

  .auth-card--login .auth-form-panel {
    min-height: 320px !important;
    padding: 32px !important;
  }

  .auth-card--login .auth-cover,
  .invite-create-visual {
    min-height: 190px !important;
    padding: 28px !important;
  }

  .auth-cover-logo,
  .invite-create-visual span {
    font-size: 44px !important;
  }

  .invite-create-content {
    padding: 28px !important;
  }
}

/* Auth mode switch fix: keep panels in their intended columns */
.auth-card--login .auth-form-panel,
.auth-card--login .auth-cover {
  transform: none !important;
}

.auth-card--login .auth-form-panel {
  grid-column: 1 !important;
  order: 1 !important;
}

.auth-card--login .auth-cover {
  grid-column: 2 !important;
  order: 2 !important;
  pointer-events: auto !important;
}

.auth-card--login[data-auth-mode="signup"] .auth-form-panel {
  grid-column: 2 !important;
  order: 2 !important;
  transform: none !important;
}

.auth-card--login[data-auth-mode="signup"] .auth-cover {
  grid-column: 1 !important;
  order: 1 !important;
  transform: none !important;
}

@media (max-width: 760px) {
  .auth-card--login .auth-form-panel,
  .auth-card--login[data-auth-mode="signup"] .auth-form-panel,
  .auth-card--login .auth-cover,
  .auth-card--login[data-auth-mode="signup"] .auth-cover {
    grid-column: 1 !important;
    transform: none !important;
  }
}

/* Auth click safety fix */
.auth-card--login::before,
.auth-card--login .auth-cover::before,
.auth-card--login .auth-cover::after,
.invite-create-visual::before,
.invite-create-visual::after {
  pointer-events: none !important;
}

.auth-card--login::before {
  z-index: 0 !important;
}

.auth-card--login .auth-form-panel,
.auth-card--login .auth-cover {
  position: relative !important;
  z-index: 2 !important;
}

.auth-card--login .login-fields,
.auth-card--login .login-submit {
  position: relative !important;
  z-index: 3 !important;
  pointer-events: auto !important;
}

/* Toasts must appear above auth modals */
.toast {
  z-index: 260 !important;
}










/* Mobile hardening pass: keep auth, map, drawer, and cards stable on phones */
@media (max-width: 760px) {
  html,
  body {
    min-height: 100%;
  }

  .auth-modal {
    align-items: center !important;
    overflow-y: auto !important;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)) !important;
  }

  .auth-card--login {
    border-radius: 10px !important;
    max-height: calc(100dvh - 24px) !important;
    max-width: 430px !important;
    overflow-y: auto !important;
    padding: 8px !important;
    width: min(100%, 430px) !important;
  }

  .auth-split.auth-split--minimal {
    gap: 8px !important;
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  .auth-card--login .auth-form-panel,
  .auth-card--login[data-auth-mode="signup"] .auth-form-panel,
  .auth-card--login .auth-cover,
  .auth-card--login[data-auth-mode="signup"] .auth-cover {
    grid-column: 1 !important;
    min-height: 0 !important;
    transform: none !important;
  }

  .auth-card--login .auth-form-panel,
  .auth-card--login[data-auth-mode="signup"] .auth-form-panel {
    padding: 28px 22px !important;
  }

  .auth-card--login .auth-cover,
  .auth-card--login[data-auth-mode="signup"] .auth-cover {
    min-height: 132px !important;
    padding: 22px !important;
  }

  .auth-cover-logo {
    font-size: clamp(30px, 10vw, 40px) !important;
    left: 22px !important;
    top: 22px !important;
  }

  .auth-card--login .login-copy h2 {
    font-size: clamp(25px, 8vw, 32px) !important;
  }

  .auth-card--login .login-fields input,
  .auth-card--login .login-submit {
    min-height: 50px !important;
    width: 100% !important;
  }

  .invite-create-card,
  #inviteModal .auth-card,
  .signup-success-card {
    max-height: calc(100dvh - 24px) !important;
    overflow-y: auto !important;
    width: min(100%, 430px) !important;
  }
}

@media (max-width: 620px) {
  .app-shell {
    min-height: 100dvh !important;
  }

  .topbar {
    gap: 8px !important;
    padding: 9px 10px !important;
  }

  .wordmark strong {
    font-size: 20px !important;
  }

  .wordmark small {
    gap: 6px !important;
    white-space: nowrap !important;
  }

  .top-search {
    height: 46px !important;
  }

  .top-actions .ghost-button,
  .top-actions .primary-button {
    height: 44px !important;
    min-width: 0 !important;
  }

  .rail {
    height: calc(64px + env(safe-area-inset-bottom)) !important;
  }

  .workspace {
    padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important;
  }

  .map-stage,
  .map {
    min-height: calc(100dvh - 150px) !important;
  }

  .record-drawer {
    bottom: calc(64px + env(safe-area-inset-bottom)) !important;
    left: 0 !important;
    max-width: 100vw !important;
    padding: 8px !important;
    right: 0 !important;
    top: 0 !important;
    width: 100vw !important;
  }

  .record-panel-card {
    border-radius: 10px !important;
    max-height: calc(100dvh - 80px - env(safe-area-inset-bottom)) !important;
  }

  .content-panel {
    padding: 20px 14px 96px !important;
  }

  .candidate-card,
  .mate-panel,
  .invite-card,
  .invite-empty {
    border-radius: 10px !important;
  }
}

/* Mobile auth repair: phone-first login must show the form immediately */
@media (max-width: 760px) {
  .auth-modal--login {
    align-items: center !important;
    justify-content: center !important;
    min-height: 100dvh !important;
    padding: 18px 14px !important;
  }

  .auth-card--login {
    border-radius: 12px !important;
    max-height: calc(100dvh - 36px) !important;
    max-width: 420px !important;
    overflow: hidden auto !important;
    padding: 8px !important;
    width: min(100%, 420px) !important;
  }

  .auth-split.auth-split--minimal {
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .auth-card--login .auth-cover,
  .auth-card--login[data-auth-mode="signup"] .auth-cover {
    align-content: center !important;
    border-radius: 10px !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-height: 116px !important;
    order: 1 !important;
    padding: 20px !important;
    transform: none !important;
  }

  .auth-card--login .auth-form-panel,
  .auth-card--login[data-auth-mode="signup"] .auth-form-panel {
    border-radius: 10px !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    min-height: 0 !important;
    order: 2 !important;
    padding: 26px 22px 24px !important;
    transform: none !important;
  }

  .auth-cover-logo {
    bottom: auto !important;
    font-size: clamp(30px, 10vw, 40px) !important;
    left: 22px !important;
    line-height: 1 !important;
    position: absolute !important;
    top: 22px !important;
  }

  .auth-cover-logo::after {
    height: 3px !important;
    margin-top: 10px !important;
    width: 34px !important;
  }

  .auth-card--login .auth-cover::after {
    height: 118px !important;
    right: -30px !important;
    top: -12px !important;
    width: 118px !important;
  }

  .auth-card--login .login-copy {
    display: block !important;
  }

  .auth-card--login .login-copy h2 {
    font-size: clamp(26px, 8vw, 34px) !important;
    line-height: 0.96 !important;
    margin: 0 !important;
  }

  .auth-card--login .login-fields {
    gap: 13px !important;
  }

  .auth-card--login .login-fields input {
    font-size: 16px !important;
    min-height: 52px !important;
  }

  .auth-card--login .login-submit {
    height: 52px !important;
    margin-top: 2px !important;
  }
}

@media (max-width: 430px) {
  .auth-modal--login {
    padding: 12px !important;
  }

  .auth-card--login {
    max-height: calc(100dvh - 24px) !important;
    width: 100% !important;
  }

  .auth-card--login .auth-cover,
  .auth-card--login[data-auth-mode="signup"] .auth-cover {
    min-height: 104px !important;
  }

  .auth-card--login .auth-form-panel,
  .auth-card--login[data-auth-mode="signup"] .auth-form-panel {
    padding: 24px 18px 20px !important;
  }
}
