:root {
  --bg: #f5f8ff;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #14213d;
  --muted: #5f6c8f;
  --primary: #255cff;
  --primary-deep: #102a72;
  --accent: #ffb347;
  --border: rgba(37, 92, 255, 0.12);
  --shadow: 0 24px 60px rgba(16, 42, 114, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 92, 255, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 179, 71, 0.18), transparent 22%),
    var(--bg);
}

body.offline-hold-body {
  min-height: 100vh;
  color: #111827;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 248, 255, 0.94)),
    linear-gradient(135deg, #eef4ff 0%, #f8fbff 48%, #eef6f3 100%);
}

img {
  display: block;
  max-width: 100%;
}

.offline-hold-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  padding: clamp(20px, 7vw, 32px);
}

.offline-hold-shell::before,
.offline-hold-shell::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 92, 255, 0.2), transparent);
}

.offline-hold-shell::before {
  top: 24vh;
}

.offline-hold-shell::after {
  bottom: 22vh;
}

.offline-hold-card {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(548px, calc(100vw - 40px));
  padding: clamp(34px, 8vw, 56px) clamp(24px, 7vw, 42px);
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.85) inset;
  backdrop-filter: blur(18px);
}

.offline-hold-logo {
  width: clamp(74px, 18vw, 96px);
  height: clamp(74px, 18vw, 96px);
  margin-bottom: 18px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow:
    0 18px 34px rgba(37, 92, 255, 0.18),
    0 0 0 1px rgba(226, 232, 240, 0.72);
}

.offline-hold-origin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 18px;
  padding: 7px 13px;
  border: 1px solid rgba(37, 92, 255, 0.16);
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.86);
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
}

.offline-hold-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.05rem;
  line-height: 1;
  transform: translateY(-0.5px);
}

.offline-hold-card h1 {
  max-width: 18rem;
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.72rem, 5vw, 2.72rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.offline-hold-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  width: 100%;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.offline-hold-signals li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.88);
  color: #334155;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.25;
}

.offline-hold-footnote {
  margin: 24px 0 0;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
}

.auth-bridge-body {
  min-height: 100vh;
  background: #f3f6fb;
  color: #0f172a;
}

.auth-bridge-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-bridge-card {
  width: min(100%, 520px);
  padding: 32px;
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
}

.auth-bridge-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.auth-bridge-logo {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  object-fit: cover;
}

.auth-bridge-brand,
.auth-bridge-kicker,
.auth-bridge-copy,
.auth-bridge-note,
.auth-bridge-noscript {
  letter-spacing: 0;
}

.auth-bridge-brand {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.25;
}

.auth-bridge-kicker {
  margin: 4px 0 0;
  color: #52627d;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.auth-bridge-card h1 {
  margin: 18px 0 12px;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: 0;
}

.auth-bridge-state-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #e9f8f1;
  color: #087a55;
  font-size: 1.55rem;
  font-weight: 900;
}

.auth-bridge-state-icon-error {
  background: #fff0f0;
  color: #b42318;
}

.auth-bridge-copy {
  margin: 0;
  color: #52627d;
  font-size: 1rem;
  line-height: 1.65;
}

.auth-bridge-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-top: 28px;
  padding: 14px 20px;
  border-radius: 8px;
  background: #2456df;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.auth-bridge-action:focus-visible {
  outline: 3px solid rgba(36, 86, 223, 0.3);
  outline-offset: 3px;
}

.auth-bridge-note,
.auth-bridge-noscript {
  margin: 18px 0 0;
  color: #718096;
  font-size: 0.84rem;
  line-height: 1.55;
}

.auth-bridge-noscript {
  color: #b42318;
  font-weight: 700;
}

@media (max-width: 560px) {
  .auth-bridge-shell {
    align-items: start;
    padding: 16px;
  }

  .auth-bridge-card {
    margin-top: 24px;
    padding: 24px;
  }

  .auth-bridge-card h1 {
    font-size: 1.75rem;
  }
}


.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 48px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(16, 42, 114, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.site-nav {
  display: inline-flex;
  gap: 18px;
}

.site-nav a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: center;
  padding: 72px 0 48px;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(37, 92, 255, 0.1);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero h1,
.section-heading h2,
.showcase-copy h2,
.cta-card h2 {
  margin: 18px 0 14px;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.7rem);
  max-width: 12ch;
}

.hero p,
.section-heading p,
.showcase-copy p,
.cta-card p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-note {
  max-width: 62ch;
  margin-top: 18px !important;
  font-size: 0.96rem !important;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.button.primary {
  background: linear-gradient(135deg, var(--primary), #5a84ff);
  color: white;
  box-shadow: 0 18px 30px rgba(37, 92, 255, 0.24);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  color: var(--text);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.hero-highlights div,
.info-card,
.step-card,
.showcase-panel,
.cta-card,
.device-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-highlights div {
  padding: 16px;
  border-radius: 20px;
}

.hero-highlights strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.hero-highlights span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.hero-visual {
  position: relative;
  min-height: 580px;
}

.device-card {
  position: relative;
  z-index: 2;
  padding: 18px;
  border-radius: var(--radius-xl);
}

.device-topbar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.device-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(16, 42, 114, 0.15);
}

.device-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: white;
  border-radius: 22px;
}

.device-brand img {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}

.device-brand strong {
  display: block;
  font-size: 1.05rem;
}

.device-brand small {
  color: var(--muted);
}

.device-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.device-stat-grid article,
.device-list-item {
  padding: 16px;
  border-radius: 20px;
  background: white;
}

.device-stat-grid strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.device-stat-grid span,
.device-list-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.device-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.device-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.device-list-item strong {
  display: block;
  margin-bottom: 4px;
}

.device-list-item em {
  font-style: normal;
  font-weight: 800;
  color: var(--primary);
}

.device-list-item.highlight {
  background: linear-gradient(135deg, rgba(37, 92, 255, 0.1), rgba(255, 179, 71, 0.18));
}

.floating-product {
  position: absolute;
  z-index: 1;
  width: 160px;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(16, 42, 114, 0.16);
}

.product-left {
  left: -34px;
  bottom: 54px;
  transform: rotate(-10deg);
}

.product-right {
  right: -18px;
  top: 42px;
  transform: rotate(10deg);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 14px;
}

.proof-item,
.faq-item {
  padding: 22px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.proof-item strong,
.faq-item h3 {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.proof-item span,
.faq-item p {
  color: var(--muted);
  line-height: 1.7;
}

.section {
  padding: 40px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading.narrow {
  max-width: 620px;
}

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

.info-card,
.step-card {
  padding: 24px;
  border-radius: 26px;
}

.info-card h3,
.step-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.info-card p,
.step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.step-number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 14px;
  background: rgba(37, 92, 255, 0.12);
  color: var(--primary);
  font-weight: 900;
}

.showcase {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

.audience-card {
  position: relative;
  overflow: hidden;
}

.audience-card::after {
  content: '';
  position: absolute;
  inset: auto 18px 0 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), rgba(255, 179, 71, 0.9));
}

.showcase-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: flex-start;
  padding: 24px;
  border-radius: 30px;
}

.showcase-chip {
  display: inline-flex;
  padding: 12px 16px;
  border-radius: 999px;
  background: white;
  font-weight: 700;
}

.cta-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  padding: 28px;
  border-radius: 30px;
}

.contact-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  padding: 28px;
  border-radius: 30px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin: 18px 0 14px;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.contact-action {
  display: block;
  padding: 20px;
  border-radius: 22px;
  text-decoration: none;
  background: white;
  border: 1px solid rgba(37, 92, 255, 0.1);
  box-shadow: 0 18px 35px rgba(16, 42, 114, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.contact-action:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 92, 255, 0.24);
}

.contact-action strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1rem;
}

.contact-action span {
  color: var(--muted);
  line-height: 1.6;
}

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

.faq-item p {
  margin: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 0;
  color: var(--muted);
}

.site-footer-main {
  display: grid;
  gap: 10px;
}

.site-footer strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.site-footer-origin {
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
}

.site-footer-social {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(37, 92, 255, 0.12);
}

.site-footer-social-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.site-footer-social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.site-footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  color: #475467;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.42);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.site-footer-social-link:hover {
  color: var(--text);
  border-bottom-color: rgba(37, 92, 255, 0.34);
}

.site-footer-social-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: block;
}

.site-footer-social-link.instagram .site-footer-social-icon {
  color: #e1306c;
}

.site-footer-social-link.tiktok .site-footer-social-icon {
  color: #111827;
}

.site-footer-social-link.youtube .site-footer-social-icon {
  color: #ff0033;
}

.site-footer-social-link.facebook .site-footer-social-icon {
  color: #1877f2;
}

.site-footer-social-link.linkedin .site-footer-social-icon {
  color: #0a66c2;
}

.legal-page {
  padding-bottom: 64px;
}

.legal-header {
  margin-bottom: 28px;
}

.legal-main {
  padding: 36px 0 0;
}

.offline-main {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prelaunch-main {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-card {
  max-width: 860px;
  padding: 34px;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  margin: 18px 0 14px;
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal-card h2 {
  margin: 28px 0 10px;
  font-size: 1.1rem;
}

.legal-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.legal-card p,
.legal-card li {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.legal-note {
  margin-bottom: 18px !important;
}

.legal-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.support-topic {
  padding: 18px 0;
  border-top: 1px solid rgba(37, 92, 255, 0.12);
}

.support-topic + .support-topic {
  padding-top: 18px;
}

.offline-card {
  max-width: 720px;
  text-align: center;
}

.prelaunch-card {
  max-width: 780px;
  text-align: center;
}

.offline-logo {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 24px;
}

.prelaunch-logo {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 24px;
}

.prelaunch-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0;
}

.prelaunch-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 20px;
}

.prelaunch-list span {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 1px solid rgba(37, 92, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  font-weight: 800;
  line-height: 1.35;
}

.prelaunch-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero,
  .showcase,
  .cta-card,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .floating-product {
    display: none;
  }

  .hero-highlights,
  .proof-strip,
  .benefit-grid,
  .steps,
  .faq-grid,
  .device-stat-grid,
  .prelaunch-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    max-width: none;
  }

  .offline-hold-card {
    width: min(350px, calc(100vw - 40px));
    max-width: calc(100vw - 40px);
    padding-inline: 20px;
  }

  .offline-hold-card h1 {
    max-width: 100%;
  }

  .offline-hold-signals {
    grid-template-columns: 1fr;
  }
}

.teacher-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.teacher-header,
.teacher-grid,
.teacher-form-row,
.teacher-actions,
.items-header {
  display: flex;
  gap: 16px;
}

.teacher-header,
.items-header {
  align-items: center;
  justify-content: space-between;
}

.teacher-badge,
.teacher-status {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(37, 92, 255, 0.1);
  color: var(--primary-deep);
  font-weight: 800;
  font-size: 0.9rem;
}

.teacher-status.warning {
  background: rgba(255, 179, 71, 0.2);
}

.teacher-status.success {
  background: rgba(48, 179, 112, 0.16);
  color: #17633d;
}

.teacher-card {
  margin-top: 22px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.teacher-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.teacher-hero h1,
.teacher-card h2,
.teacher-card h3 {
  margin: 12px 0;
}

.teacher-hero p,
.teacher-muted {
  color: var(--muted);
  line-height: 1.65;
}

.teacher-grid {
  align-items: flex-start;
}

.teacher-form {
  flex: 1 1 680px;
}

.share-panel {
  flex: 0 0 360px;
  position: sticky;
  top: 24px;
}

.teacher-form label {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  color: var(--primary-deep);
  font-weight: 800;
}

.teacher-form-row > label {
  flex: 1;
}

.teacher-form input,
.teacher-form textarea,
.item-row input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  background: #fbfcff;
}

.items-editor {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.item-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 88px 130px auto auto;
  gap: 10px;
  align-items: center;
}

.checkbox-label {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
  margin: 0 !important;
  white-space: nowrap;
  font-weight: 700 !important;
}

.checkbox-label input {
  width: auto;
}

.button.compact {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  cursor: pointer;
}

.teacher-actions {
  flex-wrap: wrap;
  margin-top: 22px;
}

.share-code-display {
  display: block;
  margin: 16px 0;
  padding: 18px;
  border-radius: 18px;
  background: #eef3ff;
  color: var(--primary-deep);
  font-weight: 900;
  font-size: clamp(1.25rem, 4vw, 2rem);
  letter-spacing: 0.04em;
  text-align: center;
  word-break: break-word;
}

.qr-placeholder {
  margin-top: 18px;
  min-height: 220px;
  border: 2px dashed rgba(37, 92, 255, 0.22);
  border-radius: 24px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
  background: linear-gradient(135deg, rgba(37, 92, 255, 0.08), rgba(255, 179, 71, 0.12));
}

.published-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.published-list-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: #f8faff;
  border: 1px solid var(--border);
}

.published-list-card span,
.published-list-card small {
  color: var(--muted);
}

.published-list-card code {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 10px;
  background: white;
  color: var(--primary-deep);
  font-weight: 900;
}

.import-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.import-card {
  max-width: 680px;
  text-align: center;
}

.import-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 12px;
}

@media (max-width: 880px) {
  .teacher-hero,
  .teacher-grid {
    display: block;
  }

  .share-panel {
    position: static;
  }

  .item-row {
    grid-template-columns: 1fr;
  }

  .teacher-form-row {
    display: block;
  }
}

.auth-card,
.auth-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-card > div {
  flex: 1 1 280px;
}

.auth-form {
  flex: 2 1 520px;
}

.auth-form input,
.password-update-panel input {
  flex: 1 1 180px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  background: #fbfcff;
}

#auth-message {
  flex-basis: 100%;
  margin: 0;
}

.password-update-panel,
.auth-helper-row {
  flex-basis: 100%;
}

.password-update-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(37, 92, 255, 0.07);
  border: 1px solid rgba(37, 92, 255, 0.12);
}

.password-update-panel[hidden] {
  display: none;
}

.password-update-panel strong,
.password-update-panel span {
  display: block;
}

.password-update-panel strong {
  color: var(--primary-deep);
}

.password-update-panel span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.45;
}

.password-update-panel input {
  width: 100%;
  min-width: 0;
}

.auth-helper-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: -2px;
  color: var(--muted);
  font-weight: 800;
}

.auth-helper-row a {
  color: var(--primary-deep);
  font-weight: 900;
  text-decoration: none;
}

.auth-helper-row a:hover {
  text-decoration: underline;
}

.role-status {
  flex-basis: 100%;
  margin: -4px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(37, 92, 255, 0.07);
  border: 1px solid rgba(37, 92, 255, 0.1);
  font-weight: 800;
}

.role-status.warning {
  background: rgba(255, 179, 71, 0.16);
  border-color: rgba(255, 179, 71, 0.3);
  color: #8b5200;
}

.role-status.success {
  background: rgba(48, 179, 112, 0.14);
  border-color: rgba(48, 179, 112, 0.24);
  color: #17633d;
}

/* Professional teacher console */
.teacher-body {
  background:
    radial-gradient(circle at 10% 5%, rgba(37, 92, 255, 0.18), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(255, 179, 71, 0.22), transparent 26%),
    linear-gradient(180deg, #f7f9ff 0%, #eef4ff 52%, #f8fbff 100%);
}

.teacher-console {
  width: min(1240px, calc(100% - 32px));
}

.teacher-console-header {
  position: sticky;
  top: 16px;
  z-index: 40;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(37, 92, 255, 0.14);
  backdrop-filter: blur(18px);
}

.teacher-mini-nav {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(37, 92, 255, 0.06);
}

.teacher-mini-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--primary-deep);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
}

.teacher-mini-nav a:hover {
  background: white;
}

.teacher-console-hero {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.teacher-hero-copy,
.teacher-hero-panel,
.pro-editor-card,
.pro-share-card,
.pro-list-section,
.auth-card {
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 30px 80px rgba(16, 42, 114, 0.13);
}

.teacher-hero-copy,
.teacher-hero-panel {
  padding: clamp(28px, 4vw, 46px);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.teacher-hero-copy h1 {
  margin: 18px 0 16px;
  max-width: 13ch;
  font-size: clamp(2.45rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.teacher-hero-copy p {
  max-width: 68ch;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.teacher-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.teacher-hero-panel {
  display: grid;
  gap: 18px;
  align-content: center;
  background:
    linear-gradient(135deg, rgba(37, 92, 255, 0.1), rgba(255, 179, 71, 0.16)),
    rgba(255, 255, 255, 0.82);
}

.teacher-metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.teacher-metric-row div {
  min-height: 132px;
  padding: 18px;
  border-radius: 24px;
  background: white;
  display: grid;
  align-content: end;
  box-shadow: 0 18px 38px rgba(16, 42, 114, 0.08);
}

.teacher-metric-row strong {
  display: block;
  color: var(--primary-deep);
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1;
}

.teacher-metric-row span {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.teacher-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
  gap: 22px;
  align-items: start;
}

.pro-editor-card,
.pro-share-card,
.pro-list-section,
.auth-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.form-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.form-title-row h2,
.pro-share-card h2,
.pro-list-section h2 {
  margin: 10px 0 8px;
}

.eyebrow.subtle {
  background: rgba(37, 92, 255, 0.08);
  color: var(--primary-deep);
}

.draft-chip,
.list-state {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 179, 71, 0.2);
  color: #8b5200;
  font-weight: 900;
  font-size: 0.78rem;
  white-space: nowrap;
}

.list-state.own {
  background: rgba(48, 179, 112, 0.14);
  color: #17633d;
}

.status-message {
  min-height: 1.6em;
  font-weight: 800;
}

.teacher-form.is-readonly .save-button,
.teacher-form.is-readonly #archive-list-button {
  box-shadow: none;
}

.pro-share-card {
  top: 96px;
}

.share-link-box {
  margin: 12px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f8faff;
  overflow-wrap: anywhere;
}

.share-link-box a {
  color: var(--primary-deep);
  font-weight: 800;
  text-decoration: none;
}

.share-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 12px 0 16px;
}

.qr-card {
  margin-top: 16px;
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(37, 92, 255, 0.1), transparent 42%),
    #ffffff;
  border: 1px solid rgba(37, 92, 255, 0.12);
  display: grid;
  place-items: center;
  text-align: center;
}

.qr-code {
  min-height: 196px;
  display: grid;
  place-items: center;
}

.qr-code img,
.qr-code canvas {
  border: 12px solid white;
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(16, 42, 114, 0.13);
}

#qr-help {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.published-list-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.published-list-card.editable {
  cursor: pointer;
  border-color: rgba(48, 179, 112, 0.24);
}

.published-list-card.editable:hover,
.published-list-card.editable:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(16, 42, 114, 0.14);
  outline: none;
}

.published-list-card.readonly {
  opacity: 0.82;
}

.list-card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

@media print {
  body * {
    visibility: hidden;
  }

  .pro-share-card,
  .pro-share-card * {
    visibility: visible;
  }

  .pro-share-card {
    position: absolute;
    inset: 24px auto auto 24px;
    width: calc(100% - 48px);
    box-shadow: none;
  }

  .teacher-header,
  .auth-card,
  .pro-editor-card,
  .pro-list-section,
  .teacher-console-hero,
  .share-actions {
    display: none !important;
  }
}

@media (max-width: 980px) {
  .teacher-console-hero,
  .teacher-workspace {
    grid-template-columns: 1fr;
  }

  .teacher-mini-nav {
    display: none;
  }

  .pro-share-card {
    position: static;
  }
}

/* Finalized teacher UI: aligned with the rounded, airy Flutter app language */
.button.ghost {
  background: rgba(17, 24, 39, 0.05);
  border: 1px solid rgba(17, 24, 39, 0.08);
  color: var(--muted);
}

.button:disabled,
.auth-form button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.teacher-confirm-dialog {
  width: min(92vw, 480px);
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
}

.teacher-confirm-dialog::backdrop {
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(6px);
}

.teacher-confirm-dialog-card {
  display: grid;
  gap: 14px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

.teacher-confirm-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
  font-weight: 900;
}

.teacher-confirm-dialog h2 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  line-height: 1.12;
}

.teacher-confirm-dialog p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.teacher-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}

.teacher-console-header .brand span {
  letter-spacing: -0.02em;
}

.teacher-flow-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.teacher-flow-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(37, 92, 255, 0.12);
  color: var(--primary-deep);
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(16, 42, 114, 0.07);
}

.teacher-flow-strip strong {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
}

.app-preview-panel {
  align-content: stretch;
}

.app-phone-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 32px;
  background: linear-gradient(180deg, #ffffff, #f6f8ff);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 28px 64px rgba(16, 42, 114, 0.16);
}

.app-phone-card::before {
  content: '';
  position: absolute;
  inset: auto -18% -38% 18%;
  height: 180px;
  border-radius: 999px;
  background: rgba(37, 92, 255, 0.12);
  filter: blur(10px);
}

.phone-topbar {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.phone-topbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(16, 42, 114, 0.14);
}

.phone-title-row,
.phone-hero-blue,
.phone-list-preview {
  position: relative;
  z-index: 1;
}

.phone-title-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.phone-title-row small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-weight: 800;
}

.phone-title-row strong {
  display: block;
  max-width: 18ch;
  font-size: 1.15rem;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.phone-title-row span {
  padding: 7px 9px;
  border-radius: 999px;
  background: #eef3ff;
  color: var(--primary-deep);
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.phone-hero-blue {
  display: grid;
  gap: 8px;
  margin: 18px 0 14px;
  padding: 18px;
  min-height: 122px;
  align-content: end;
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(135deg, #102a72, #255cff 58%, #4d78ff);
  box-shadow: 0 22px 44px rgba(37, 92, 255, 0.26);
}

.phone-hero-blue span {
  opacity: 0.84;
  font-weight: 800;
}

.phone-hero-blue strong {
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.phone-list-preview {
  display: grid;
  gap: 8px;
}

.phone-preview-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(37, 92, 255, 0.1);
}

.phone-preview-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
}

.phone-preview-item span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.teacher-form input:focus,
.teacher-form textarea:focus,
.item-row input:focus,
.auth-form input:focus,
.password-update-panel input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 92, 255, 0.1);
  outline: none;
}

.item-row {
  grid-template-columns: minmax(180px, 1.2fr) 88px 128px minmax(140px, 0.9fr) auto auto;
  padding: 10px;
  border-radius: 22px;
  background: rgba(248, 250, 255, 0.88);
  border: 1px solid rgba(37, 92, 255, 0.09);
}

.item-note {
  min-width: 0;
}

.share-code-display {
  background:
    linear-gradient(135deg, rgba(37, 92, 255, 0.12), rgba(37, 92, 255, 0.04)),
    #eef3ff;
  border: 1px solid rgba(37, 92, 255, 0.12);
}

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

.share-print-card {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 179, 71, 0.14);
  color: #7a4700;
  font-weight: 800;
}

.share-print-card span {
  color: rgba(122, 71, 0, 0.78);
  line-height: 1.45;
}

.published-list-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.published-list-card {
  background: linear-gradient(180deg, #ffffff, #f7f9ff);
  box-shadow: 0 14px 34px rgba(16, 42, 114, 0.08);
}

.published-list-card strong {
  letter-spacing: -0.02em;
}

.published-list-card.archived {
  opacity: 0.62;
}

.list-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.list-meta-row span,
.list-meta-row small {
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(37, 92, 255, 0.07);
  font-weight: 800;
}

@media print {
  .share-print-card {
    font-size: 1.1rem;
  }

  .share-code-display {
    font-size: 2.4rem;
  }
}

@media (max-width: 760px) {
  .teacher-console {
    width: min(100% - 20px, 1240px);
  }

  .teacher-console-header {
    top: 8px;
    border-radius: 24px;
  }

  .teacher-badge {
    display: none;
  }

  .teacher-hero-copy,
  .teacher-hero-panel,
  .teacher-card {
    border-radius: 26px;
    padding: 22px;
  }

  .teacher-hero-copy h1 {
    max-width: none;
    font-size: clamp(2.25rem, 14vw, 3.4rem);
  }

  .teacher-metric-row,
  .share-actions {
    grid-template-columns: 1fr;
  }

  .form-title-row,
  .items-header,
  .auth-card,
  .auth-form,
  .password-update-panel {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .item-row {
    grid-template-columns: 1fr;
  }
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #1746d1;
  outline-offset: 3px;
}

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

/* Public, tracking-free digital contact cards. */
.contact-card-body {
  min-height: 100vh;
  color: #101828;
  background:
    radial-gradient(circle at 12% 12%, rgba(37, 92, 255, 0.2), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(249, 115, 22, 0.2), transparent 26%),
    linear-gradient(145deg, #eef4ff 0%, #f8fbff 44%, #fff7ed 100%);
}

.contact-card-body::before,
.contact-card-body::after {
  position: fixed;
  z-index: 0;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(23, 92, 211, 0.12);
  border-radius: 72px;
  content: '';
  pointer-events: none;
  transform: rotate(28deg);
}

.contact-card-body::before {
  top: -160px;
  right: -80px;
}

.contact-card-body::after {
  bottom: -190px;
  left: -100px;
}

.contact-card-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(16px, 5vw, 48px);
}

.contact-card {
  width: min(100%, 520px);
  overflow: hidden;
  padding: clamp(22px, 5vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 32px 80px rgba(10, 79, 143, 0.16),
    0 2px 0 rgba(255, 255, 255, 0.9) inset;
  backdrop-filter: blur(22px);
}

.contact-brand,
.contact-brand-link,
.contact-quick-actions,
.contact-save-button,
.contact-details dt,
.contact-card-footer {
  display: flex;
  align-items: center;
}

.contact-brand {
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(23, 92, 211, 0.1);
}

.contact-brand-link {
  min-width: 0;
  gap: 12px;
  color: #101828;
  text-decoration: none;
}

.contact-brand-link img {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(23, 92, 211, 0.08);
  border-radius: 15px;
  box-shadow: 0 10px 22px rgba(10, 79, 143, 0.12);
}

.contact-brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.contact-brand-copy strong {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.035em;
}

.contact-brand-copy small {
  overflow: hidden;
  color: #f97316;
  font-size: 0.61rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.contact-brand-badge {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid rgba(23, 92, 211, 0.13);
  border-radius: 999px;
  background: #eef4ff;
  color: #175cd3;
  font-size: 0.72rem;
  font-weight: 850;
}

.contact-profile {
  display: grid;
  justify-items: center;
  padding: 30px 0 24px;
  text-align: center;
}

.contact-avatar {
  display: grid;
  width: 90px;
  height: 90px;
  margin-bottom: 17px;
  place-items: center;
  border: 5px solid #ffffff;
  border-radius: 30px;
  background: linear-gradient(145deg, #175cd3, #0a4f8f);
  box-shadow:
    0 18px 36px rgba(23, 92, 211, 0.24),
    0 0 0 1px rgba(23, 92, 211, 0.08);
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.contact-avatar-orange {
  background: linear-gradient(145deg, #f97316, #d94f06);
  box-shadow:
    0 18px 36px rgba(249, 115, 22, 0.24),
    0 0 0 1px rgba(249, 115, 22, 0.08);
}

.contact-role {
  margin: 0 0 8px;
  color: #175cd3;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-profile h1 {
  margin: 0;
  color: #101828;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.15rem, 9vw, 3.05rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.contact-company {
  margin: 10px 0 0;
  color: #667085;
  font-size: 0.91rem;
  font-weight: 650;
  line-height: 1.4;
}

.contact-save-button {
  justify-content: center;
  gap: 13px;
  min-height: 64px;
  padding: 12px 18px;
  border-radius: 19px;
  background: linear-gradient(135deg, #175cd3, #0a4f8f);
  box-shadow: 0 14px 28px rgba(23, 92, 211, 0.22);
  color: #ffffff;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.contact-save-button:hover {
  box-shadow: 0 18px 34px rgba(23, 92, 211, 0.28);
  transform: translateY(-2px);
}

.contact-save-button svg {
  flex: 0 0 auto;
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-save-button span {
  display: grid;
  gap: 2px;
}

.contact-save-button strong {
  font-size: 0.98rem;
}

.contact-save-button small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.72rem;
  font-weight: 650;
}

.contact-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 11px;
}

.contact-quick-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 47px;
  border: 1px solid rgba(23, 92, 211, 0.12);
  border-radius: 15px;
  background: #f7f9ff;
  color: #175cd3;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.contact-quick-actions a:hover {
  border-color: rgba(23, 92, 211, 0.24);
  background: #eef4ff;
}

.contact-quick-actions svg,
.contact-details svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.contact-details {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  border: 1px solid rgba(23, 92, 211, 0.09);
  border-radius: 21px;
  background: rgba(248, 250, 255, 0.78);
}

.contact-details > div {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 16px;
  padding: 15px 17px;
}

.contact-details > div + div {
  border-top: 1px solid rgba(23, 92, 211, 0.08);
}

.contact-details dt {
  gap: 8px;
  color: #667085;
  font-size: 0.78rem;
  font-weight: 800;
}

.contact-details dt svg {
  color: #f97316;
}

.contact-details dd {
  min-width: 0;
  margin: 0;
  color: #344054;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact-details dd a {
  color: #175cd3;
  text-decoration: none;
}

.contact-card-footer {
  justify-content: center;
  gap: 7px;
  margin-top: 19px;
  color: #98a2b3;
  font-size: 0.69rem;
  font-weight: 750;
}

.contact-privacy-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #12b76a;
  box-shadow: 0 0 0 4px rgba(18, 183, 106, 0.1);
}

@media (max-width: 420px) {
  .contact-card-shell {
    align-items: start;
    padding: 10px;
  }

  .contact-card {
    padding: 19px;
    border-radius: 27px;
  }

  .contact-brand-badge {
    display: none;
  }

  .contact-profile {
    padding-top: 25px;
  }

  .contact-details > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
