:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #efe9ff;
  --soft: #d5c5ff;
  --line: rgba(232, 221, 255, 0.3);
  --paper: #1a102f;
  --panel: #ffffff;
  --panel-2: rgba(255, 255, 255, 0.08);
  --accent: #7c3aed;
  --accent-strong: #4c1d95;
  --navy: #17112f;
  --navy-2: #312e81;
  --gold: #d4a647;
  --gold-soft: #fff4d8;
  --sky: #c084fc;
  --shadow: 0 18px 55px rgba(15, 23, 42, 0.14);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.08);
  --purple-panel: linear-gradient(135deg, rgba(49, 31, 92, 0.96), rgba(89, 36, 176, 0.9));
  --purple-panel-soft: linear-gradient(135deg, rgba(45, 28, 84, 0.9), rgba(78, 38, 142, 0.82));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 18% -8%, rgba(168, 85, 247, 0.34), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(91, 33, 182, 0.34), transparent 26%),
    linear-gradient(180deg, #261445 0, var(--paper) 520px);
  background-size: 36px 36px, 36px 36px, auto, auto, auto;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 24px;
  background: rgba(28, 18, 49, 0.86);
  border-bottom: 1px solid rgba(232, 221, 255, 0.16);
  backdrop-filter: blur(16px);
}

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

.brand-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: block;
  border-radius: 12px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.36)) saturate(1.2) contrast(1.12);
}

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

.brand strong {
  color: #fff;
  font-size: 17px;
  line-height: 1.12;
}

.brand span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  margin-top: 2px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
}

.firm-only {
  display: none;
}

.nav-button,
.ghost-button,
.primary-button {
  min-height: 38px;
  border-radius: 9px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
}

.nav-button {
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
}

.nav-button.is-active {
  background: #fff;
  color: #211238;
  box-shadow: var(--shadow-soft);
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.22);
}

.primary-button:hover {
  background: var(--accent-strong);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.text-button {
  justify-self: start;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e9d5ff;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-button:hover {
  color: #ffffff;
}

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

.view {
  display: none;
}

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

.client-hero,
.search-layout,
.workspace,
.signup-layout,
.login-layout,
.legal-layout {
  display: grid;
  width: min(1240px, calc(100vw - 32px));
  margin: 22px auto;
}

.client-hero {
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 0;
  min-height: 220px;
  padding: 22px 48% 24px 30px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 18%, rgba(216, 180, 254, 0.22), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(212, 166, 71, 0.23), transparent 24%),
    linear-gradient(135deg, #1a102f 0%, #37206d 42%, #5b21b6 100%);
  box-shadow: var(--shadow);
  color: #fff;
}

.client-hero::after {
  content: "";
  position: absolute;
  inset: auto 44% 42px auto;
  width: 250px;
  height: 2px;
  z-index: 0;
  opacity: 0.5;
  border-radius: 0;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.client-hero::before {
  content: "";
  position: absolute;
  inset: 24px auto 24px 0;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), rgba(255, 255, 255, 0.15));
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-brand-mark {
  width: 48px;
  height: 48px;
  display: block;
  margin-bottom: 12px;
  border-radius: 16px;
  object-fit: cover;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.25));
}

.hero-banner-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 58%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 1;
  z-index: 1;
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%);
}

.hero-banner-logo {
  position: absolute;
  right: clamp(26px, 6vw, 92px);
  top: 50%;
  width: clamp(210px, 25vw, 300px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  z-index: 2;
  border-radius: 0;
  object-fit: cover;
  box-shadow: none;
  filter: saturate(1.22) contrast(1.08);
}

.eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-hero .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.hero-copy h1 {
  max-width: 720px;
  margin: 8px 0 0;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

.hero-copy p {
  max-width: 610px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.48;
}

.search-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.workspace {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 18px;
  align-items: start;
}

.signup-layout {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
  gap: 18px;
  align-items: start;
}

.login-layout {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
  align-items: start;
}

.legal-layout {
  gap: 18px;
}

.filter-panel,
.profile-form,
.workspace-side,
.signup-panel,
.account-form,
.login-card,
.legal-hero,
.legal-card {
  background: var(--purple-panel);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  color: #fff;
}

.filter-panel,
.results-toolbar,
.lawyer-card,
.profile-form,
.workspace-side,
.signup-panel,
.account-form,
.login-card,
.legal-hero,
.legal-card {
  border-top: 3px solid rgba(201, 151, 63, 0.86);
}

.filter-panel {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 13px;
  padding: 16px;
}

.mobile-brand-lockup {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 0 0 2px;
}

.mobile-brand-lockup img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.38)) saturate(1.2) contrast(1.12);
}

.mobile-brand-lockup strong,
.mobile-brand-lockup span {
  display: block;
}

.mobile-brand-lockup strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.1;
}

.mobile-brand-lockup span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.signup-panel,
.account-form,
.login-card,
.legal-hero,
.legal-card {
  padding: 24px;
}

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

.forgot-password-link {
  margin-top: -6px;
  margin-bottom: 2px;
}

.login-card h2 {
  margin: 4px 0 0;
  color: #fff;
}

.login-form {
  display: grid;
  gap: 12px;
}

.remember-login {
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.remember-login input {
  accent-color: var(--accent);
}

.login-secondary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.login-secondary-actions.is-authenticated {
  grid-template-columns: 1fr;
}

.login-secondary-actions.is-authenticated [data-view-jump="signup"] {
  display: none;
}

.login-card.is-authenticated .login-form {
  display: none;
}

.login-card:not(.is-authenticated) #logout-button {
  display: none;
}

.signup-panel {
  position: sticky;
  top: 82px;
  background:
    radial-gradient(circle at 92% 8%, rgba(212, 166, 71, 0.16), transparent 25%),
    var(--purple-panel);
}

.panel-heading h1,
.section-title h1,
.signup-panel h1,
.legal-hero h1 {
  margin: 0;
  line-height: 1.08;
}

.panel-heading h1 {
  font-size: 23px;
}

.section-title h1,
.signup-panel h1,
.legal-hero h1 {
  font-size: clamp(28px, 3.5vw, 42px);
}

.signup-panel h1 {
  margin-top: 8px;
}

.panel-heading p,
.section-title p,
.signup-panel p,
.legal-hero p,
.legal-card p,
.metric p,
#active-summary {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.45;
}

.legal-hero {
  background:
    radial-gradient(circle at 92% 12%, rgba(212, 166, 71, 0.18), transparent 28%),
    linear-gradient(135deg, #1a102f, #5b21b6);
}

.legal-hero p,
.legal-card p {
  max-width: 760px;
}

.legal-actions,
.legal-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.legal-actions button,
.legal-link-row button {
  min-width: 150px;
}

.legal-card h2 {
  margin: 0 0 10px;
  color: #fff;
}

.legal-document-layout {
  max-width: 980px;
}

.legal-document-card {
  display: grid;
  gap: 10px;
}

.legal-document-card h2 {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.legal-document-card h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.section-title.compact {
  margin-bottom: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(232, 221, 255, 0.26);
  border-radius: 10px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
  outline: none;
}

textarea {
  resize: vertical;
}

.results-area {
  min-width: 0;
}

.results-toolbar,
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.results-toolbar {
  min-height: 70px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: var(--purple-panel-soft);
  box-shadow: var(--shadow-soft);
}

.results-toolbar h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
}

.lawyer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 14px;
}

.lawyer-card {
  display: grid;
  gap: 12px;
  min-height: 292px;
  padding: 16px;
  background: var(--purple-panel);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 3px solid var(--gold);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.lawyer-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: var(--shadow);
}

.firm-result-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  background:
    radial-gradient(circle at 92% 8%, rgba(167, 139, 250, 0.18), transparent 34%),
    var(--purple-panel);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 3px solid var(--gold);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.firm-result-card:hover,
.firm-result-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(201, 151, 63, 0.58);
  box-shadow: var(--shadow);
}

.firm-card-top {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.firm-card-top strong {
  display: block;
  color: #fff;
  font-size: 22px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.firm-card-top span span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.firm-logo-large {
  width: 58px;
  height: 58px;
  border-radius: 15px;
}

.firm-reveal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.firm-detail-list {
  grid-template-columns: 92px 1fr;
}

.firm-lawyer-list {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

.firm-lawyer-row {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 3px solid var(--gold);
  border-radius: 14px;
  background:
    radial-gradient(circle at 94% 10%, rgba(167, 139, 250, 0.16), transparent 32%),
    var(--purple-panel);
  box-shadow: var(--shadow-soft);
}

.firm-lawyer-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.firm-lawyer-head strong {
  display: block;
  color: #fff;
  font-size: 21px;
  line-height: 1.2;
}

.firm-lawyer-head span:not(.status-pill) {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.firm-lawyer-details {
  grid-template-columns: 82px 1fr;
}

.firm-lawyer-tags {
  margin-top: -2px;
}

.firm-lawyer-row .notes {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.45;
}

.firm-lawyer-row .card-actions {
  padding-top: 2px;
}

.firm-lawyer-row .card-actions a {
  min-width: 76px;
  background: rgba(255, 255, 255, 0.14);
}

.firm-detail-screen {
  width: min(940px, calc(100vw - 32px));
  margin: 18px auto 40px;
  display: grid;
  gap: 14px;
}

.back-button {
  justify-self: start;
  min-width: 132px;
}

.firm-detail-hero {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 3px solid var(--gold);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 8%, rgba(167, 139, 250, 0.24), transparent 34%),
    var(--purple-panel);
  box-shadow: var(--shadow-soft);
  color: #fff;
}

.firm-detail-hero .firm-logo-large {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.firm-detail-hero h1 {
  margin: 0;
  color: #fff;
  font-size: 34px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.firm-detail-hero p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.35;
}

.firm-detail-trust {
  grid-column: 1 / -1;
}

.card-top {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 11px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.card-top h3 {
  margin: 0;
  color: #fff;
  font-size: 19px;
  line-height: 1.15;
}

.firm {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.25;
}

.firm-logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  color: var(--gold-soft);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 950;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
  color: #321759;
}

.firm-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  background: #fff;
}

.status-pill,
.tag-row span,
.status-stack span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 6px 12px;
  background: #f3e8ff;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

.status-pill {
  justify-content: center;
  max-width: 128px;
  text-align: center;
  line-height: 1.15;
}

.status-pill.open {
  background: #19d35b;
  color: #052e16;
}

.status-pill.urgent {
  background: #ffd43b;
  color: #3d2a00;
}

.status-pill.waitlist {
  background: #ef4444;
  color: #ffffff;
}

.status-pill.closed {
  background: #ff3030;
  color: #ffffff;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.trust-pill.verified,
.trust-pill.fresh {
  background: rgba(34, 197, 94, 0.22);
  color: #dcfce7;
}

.trust-pill.unverified {
  background: rgba(250, 204, 21, 0.22);
  color: #fef3c7;
}

.trust-pill.stale {
  background: rgba(248, 113, 113, 0.22);
  color: #fee2e2;
}

.detail-list {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  font-size: 13px;
}

.detail-list dt {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.84);
  font-weight: 900;
}

.detail-list dd {
  margin: 0;
  padding: 8px 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}

.detail-list dt:not(:nth-last-child(2)),
.detail-list dd:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.notes {
  min-height: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.4;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.card-actions {
  display: flex;
  gap: 8px;
  align-self: end;
}

.card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.card-actions a:hover {
  background: var(--accent-strong);
}

.profile-form {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.firm-form-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 18%, rgba(167, 139, 250, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(15, 10, 34, 0.88), rgba(84, 38, 154, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.firm-brand-logo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(11, 6, 25, 0.7);
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.firm-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.firm-form-brand span,
.firm-form-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.firm-form-brand span {
  display: block;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.firm-form-brand strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 22px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.firm-form-brand p {
  margin-top: 5px;
  font-size: 14px;
}

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

fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
}

legend {
  padding: 0 6px;
  font-weight: 900;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-grid label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 800;
}

.chip-grid input {
  width: 15px;
  min-height: 15px;
}

.form-actions {
  display: flex;
  gap: 10px;
}

.firm-account-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.signup-flow-card {
  overflow: hidden;
}

.signup-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.signup-step-dot {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.signup-step-dot.is-active {
  background: #ffffff;
  color: #211238;
  border-color: #ffffff;
}

.signup-track {
  min-height: 430px;
}

.signup-screen {
  display: none;
}

.signup-screen.is-active {
  display: grid;
  gap: 16px;
}

.signup-screen h1,
.signup-screen h2 {
  margin: 0;
  color: #fff;
}

.signup-screen h1 {
  font-size: clamp(32px, 7vw, 54px);
  line-height: 1.02;
}

.legal-mini {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.legal-mini strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
}

.legal-mini p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
}

.app-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  width: min(1240px, calc(100vw - 32px));
  margin: 8px auto 28px;
  padding: 0 0 10px;
}

.app-footer button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.app-footer button:hover {
  color: #ffffff;
}

.signup-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.signup-controls button[hidden] {
  display: none;
}

.signup-controls:has(#signup-next[hidden]) {
  grid-template-columns: 1fr;
}

.firm-account-actions[hidden] {
  display: none;
}

.workspace-side {
  display: grid;
  gap: 13px;
  padding: 14px;
  min-width: 0;
  overflow: hidden;
}

.account-summary {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 13px;
  background: linear-gradient(135deg, #1a102f, #5b21b6);
  color: #fff;
  min-width: 0;
}

.firm-profile-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.firm-profile-card label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 950;
}

.profile-form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.side-card-heading {
  display: grid;
  gap: 4px;
}

.side-card-heading strong {
  color: #fff;
  font-size: 18px;
}

.side-card-heading span {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.35;
}

.account-summary strong,
.account-summary span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.account-summary span,
.account-summary p {
  color: rgba(255, 255, 255, 0.78);
  overflow-wrap: anywhere;
}

.account-summary p {
  margin: 0;
  line-height: 1.45;
}

.billing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.billing-actions .primary-button {
  flex: 1 1 150px;
}

.billing-actions .ghost-button {
  flex: 1 1 92px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.billing-note {
  font-size: 12px;
}

.subscription-pill {
  justify-self: start;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.metric {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  min-width: 0;
}

.metric span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 5px;
  font-size: 30px;
}

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

.managed-item {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  min-width: 0;
}

.managed-item strong,
.managed-item span {
  display: block;
}

.managed-item strong {
  color: #fff;
}

.managed-item span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  overflow-wrap: anywhere;
}

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

.managed-actions button {
  flex: 1 1 72px;
  min-height: 40px;
  padding: 0 9px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(17, 8, 34, 0.18);
}

.managed-actions .status-action {
  border-color: transparent;
  color: #06130b;
}

.managed-actions .taking-action {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.managed-actions .taking-action:hover {
  background: #22c55e;
}

.managed-actions .waitlist-action {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
}

.managed-actions .waitlist-action:hover {
  background: #dc2626;
}

.managed-status-stack {
  margin-top: 8px;
}

.update-due-pill {
  background: #ffd43b;
  color: #3d2a00;
}

.managed-actions .delete-button {
  flex: 0 1 74px;
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(248, 113, 113, 0.38);
  color: #fee2e2;
}

.managed-actions .delete-button:hover {
  background: #dc2626;
  color: #fff;
}

.price-band {
  display: grid;
  gap: 5px;
  margin: 22px 0 10px;
  padding: 17px;
  border: 1px solid rgba(197, 139, 52, 0.36);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #f6edff);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.trial-label {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #2fdd57;
  color: #071b0c;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.price-band strong {
  color: #2b124f;
  font-size: 38px;
  line-height: 1;
}

.price-band span {
  color: #2b124f;
  font-weight: 900;
}

.feature-list {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.plan-check {
  margin: 3px 0 0;
  padding: 14px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 12px;
  background: #f5f3ff;
}

.wide-button {
  width: 100%;
  min-height: 50px;
}

.form-message {
  min-height: 22px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.empty-state {
  padding: 30px;
  border: 1px dashed rgba(255, 255, 255, 0.32);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

@media (max-width: 900px) {
  .topbar,
  .results-toolbar,
  .section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .topnav {
    width: 100%;
  }

  .nav-button {
    flex: 1;
  }

  .search-layout,
  .workspace,
  .signup-layout,
  .login-layout,
  .legal-layout,
  .client-hero {
    grid-template-columns: 1fr;
  }

  .client-hero {
    min-height: 210px;
    padding-right: 30px;
  }

  .hero-banner-art {
    width: 100%;
    opacity: 0.18;
    mask-image: none;
  }

  .hero-banner-logo {
    right: 26px;
    width: 180px;
    opacity: 1;
  }

  .filter-panel,
  .signup-panel {
    position: static;
  }

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

@media (max-width: 560px) {
  .topbar {
    padding: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand span {
    display: none;
  }

  .client-hero,
  .search-layout,
  .workspace,
  .signup-layout,
  .login-layout,
  .legal-layout {
    width: min(100% - 20px, 1240px);
    margin: 12px auto;
  }

  body {
    padding-bottom: 86px;
  }

  .topbar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 8px;
    padding: 9px 10px 10px;
    border-top: 1px solid rgba(232, 221, 255, 0.16);
    border-bottom: 0;
  }

  .brand {
    display: none;
  }

  .topnav {
    width: 100%;
  }

  .nav-button {
    min-height: 42px;
    padding: 0 8px;
    font-size: 13px;
  }

  .client-hero {
    display: none;
  }

  .hero-copy h1 {
    font-size: 33px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .filter-panel,
  .signup-panel,
  .account-form,
  .login-card,
  .profile-form,
  .legal-hero,
  .legal-card {
    padding: 16px;
  }

  .search-layout {
    min-height: calc(100dvh - 98px);
    align-items: start;
  }

  .filter-panel {
    min-height: calc(100dvh - 110px);
    align-content: center;
    gap: 10px;
  }

  .mobile-brand-lockup {
    display: flex;
  }

  .panel-heading h1 {
    font-size: 27px;
  }

  .panel-heading p {
    font-size: 15px;
  }

  label {
    gap: 7px;
    font-size: 14px;
  }

  input,
  select,
  textarea {
    min-height: 50px;
    padding: 11px 14px;
    font-size: 15px;
  }

  #view-results {
    margin-top: 2px;
    min-height: 46px;
  }

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

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

  .firm-card-top {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .firm-logo-large {
    width: 48px;
    height: 48px;
  }

  .firm-card-top .status-pill,
  .firm-reveal {
    grid-column: 1 / -1;
    width: 100%;
  }

  .firm-lawyer-head {
    display: grid;
  }

  .firm-detail-screen {
    width: min(100% - 20px, 940px);
    margin-top: 12px;
  }

  .firm-detail-hero {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 16px;
  }

  .firm-detail-hero .firm-logo-large {
    width: 58px;
    height: 58px;
  }

  .firm-detail-hero h1 {
    font-size: 25px;
  }

  .firm-detail-hero .status-pill {
    grid-column: 1 / -1;
    width: 100%;
  }

  .firm-logo {
    width: 42px;
    height: 42px;
  }

  .status-pill {
    grid-column: 1 / -1;
    justify-self: start;
    max-width: none;
    min-height: 34px;
    font-size: 13px;
  }

  .card-actions {
    flex-wrap: wrap;
  }

  .firm-account-actions {
    grid-template-columns: 1fr;
  }

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