@font-face {
  font-family: "Neue Haas Unica W1G";
  src: url("assets/fonts/Neue-Haas-Unica-W1G-Light.woff2") format("woff2");
  font-style: normal;
  font-weight: 350;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Unica W1G";
  src: url("assets/fonts/Neue-Haas-Unica-W1G-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Unica W1G";
  src: url("assets/fonts/Neue-Haas-Unica-W1G-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Unica W1G";
  src: url("assets/fonts/Neue-Haas-Unica-W1G-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f1f1f1;
  --surface: #ffffff;
  --surface2: #f1f1f1;
  --border: #dfe6e7;
  --border2: rgba(41, 40, 40, 0.15);
  --text: #292828;
  --text2: #454545;
  --text3: rgba(41, 40, 40, 0.55);
  --accent: #292828;
  --font: "Neue Haas Unica W1G", system-ui, -apple-system, sans-serif;
  --green-bg: #e8f5ee;
  --green-border: #6bbf8a;
  --green-text: #1a5c36;
  --red-bg: #fdecea;
  --red-border: #e07070;
  --red-text: #8b1f1f;
  --amber-bg: #fdf3e0;
  --amber-border: #d4a83a;
  --amber-text: #7a5200;
  --mono: 'Courier New', monospace;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.link-status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  max-width: 100%;
  padding: 3px 10px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: #202124;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #dadce0;
  box-shadow: 0 -1px 4px rgba(60, 64, 67, 0.08);
  z-index: 10000;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-status-bar[hidden] {
  display: none;
}

.header {
  padding: 1.5rem 1rem;
  display: flex;
  justify-content: center;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 80rem;
  background: var(--surface);
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.header__logo svg {
  display: block;
  height: 28px;
  width: auto;
}
.header-title {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text2);
}
.progress-wrap { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.progress-bar-outer { width: 120px; height: 4px; background: var(--border); border-radius: 2px; }
.progress-bar-inner { height: 4px; background: var(--accent); border-radius: 2px; transition: width 0.4s ease; }
.progress-label { font-size: 13px; color: var(--text3); font-weight: 500; }

.screen { display: none; }
.screen.active { display: block; }

/* Intro */
.intro-wrap {
  max-width: 560px;
  margin: 5vh auto;
  padding: 0 1.5rem;
  text-align: center;
}
.intro-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.intro-wrap h1 {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.intro-subtitle {
  font-size: 1.125rem;
  color: var(--text2);
  line-height: 1.4;
  margin-bottom: 1rem;
}
.intro-wrap p { font-size: 1rem; color: var(--text2); line-height: 1.6; margin-bottom: 2rem; }
.intro-signin-copy { margin-bottom: 1.25rem !important; }
.google-signin-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.intro-user {
  margin-bottom: 1rem;
}
.intro-user p {
  font-size: 0.9375rem;
  color: var(--text2);
  margin-bottom: 1rem !important;
}
.intro-signout {
  margin-top: 0.75rem;
  margin-bottom: 0 !important;
  text-align: center;
}
.intro-config-error {
  font-size: 0.875rem;
  color: var(--red-text);
  margin-bottom: 0;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 1rem; text-align: left; }
.field label { display: block; font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text3); margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-size: 1rem;
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus {
  border-color: var(--text);
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1.125rem;
  font-family: var(--font);
  font-weight: 700;
  border-radius: 9999px;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.3s ease, scale 0.3s ease;
  margin-top: 0.5rem;
}
.btn-primary:hover { opacity: 0.85; scale: 1.03; }
.field-error { font-size: 0.8125rem; color: var(--red-text); margin-top: 6px; display: none; }

/* Quiz layout */
.quiz-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.q-label { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text3); margin-bottom: 0.75rem; }
.q-instruction { font-size: 1.5rem; font-weight: 400; margin-bottom: 1.5rem; line-height: 1.2; }

/* Gmail-style email reading pane */
.email-client {
  background: var(--surface);
  border: 1px solid #dadce0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(60,64,67,0.12);
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
}

.email-pane-subject-row {
  padding: 1rem 1.25rem 0.5rem;
  border-bottom: 1px solid #f1f3f4;
}
.email-pane-subject {
  font-size: 1.375rem;
  font-weight: 400;
  color: #202124;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.email-pane-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.email-pane-label {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  background: #e8f0fe;
  color: #1967d2;
}
.email-pane-label--external {
  background: #fce8e6;
  color: #c5221f;
}

.email-pane-meta {
  padding: 0.75rem 1.25rem 1rem;
  border-bottom: 1px solid #f1f3f4;
}
.email-pane-from-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.email-pane-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.email-pane-from-detail { flex: 1; min-width: 0; }
.email-pane-from-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
  color: #202124;
}
.email-pane-from-name { font-weight: 500; }
.email-pane-from-addr {
  color: #5f6368;
  font-size: 13px;
  word-break: break-all;
}
.email-pane-to-line {
  font-size: 12px;
  color: #5f6368;
  margin-top: 4px;
}
.email-pane-date-line {
  font-size: 12px;
  color: #5f6368;
  margin-top: 2px;
}

/* Branded message body */
.email-message {
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #3c4043;
}
.email-message p { margin-bottom: 0.75rem; }
.email-message p:last-child { margin-bottom: 0; }

.email-brand-header {
  padding: 24px 24px 16px;
  text-align: center;
  border-bottom: 1px solid #f1f3f4;
}
.email-brand-header--left { text-align: left; padding: 20px 24px; }
.brand-logo { height: 28px; width: auto; display: inline-block; }
.brand-logo-text {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.email-content { padding: 24px; }
.email-content--narrow { max-width: 520px; margin: 0 auto; padding: 24px; }

.email-alert-box {
  background: #fce8e6;
  border-left: 4px solid #d93025;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  color: #3c4043;
}
.email-info-box {
  background: #f8f9fa;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}

.email-btn-wrap { margin: 20px 0 8px; text-align: center; }
.email-btn-wrap--left { text-align: left; }
.email-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  transition: filter 0.15s ease;
}
.email-btn:hover {
  filter: brightness(0.92);
}
.email-link-url {
  display: none;
}
.email-text-link {
  color: #1a73e8;
  text-decoration: underline;
  cursor: pointer;
  word-break: break-all;
  transition: color 0.15s ease;
}
.email-text-link:hover {
  color: #174ea6;
}

.email-footer {
  padding: 16px 24px 24px;
  font-size: 11px;
  color: #5f6368;
  line-height: 1.5;
  border-top: 1px solid #f1f3f4;
  background: #f8f9fa;
}

.email-attachment {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  margin: 16px 0;
  background: #fff;
  max-width: 320px;
}
.email-attachment-icon {
  width: 40px;
  height: 48px;
  background: #ea4335;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.email-attachment-icon--pdf { background: #d93025; }
.email-attachment-icon--doc { background: #4285f4; }
.email-attachment-info { min-width: 0; }
.email-attachment-name {
  font-size: 13px;
  font-weight: 500;
  color: #202124;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.email-attachment-size { font-size: 12px; color: #5f6368; }

/* Order / product card (Amazon) */
.email-order-card {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 16px;
  margin: 16px 0;
  background: #fff;
}
.email-order-row {
  display: flex;
  gap: 16px;
  align-items: center;
}
.email-order-img {
  width: 64px;
  height: 64px;
  background: #f3f3f3;
  border: 1px solid #ddd;
  border-radius: 4px;
  flex-shrink: 0;
}
.email-progress-bar {
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 12px 0;
  overflow: hidden;
}
.email-progress-fill {
  height: 100%;
  background: #ff9900;
  width: 65%;
  border-radius: 2px;
}

/* Drive share tile */
.email-doc-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  margin: 16px 0;
  background: #f8f9fa;
}
.email-doc-icon {
  width: 40px;
  height: 48px;
  background: #4285f4;
  border-radius: 2px;
  position: relative;
}
.email-doc-icon::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  border: 8px solid #f8f9fa;
  border-left-color: #3367d6;
  border-bottom-color: #3367d6;
}
.email-sharer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.email-sharer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #34a853;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Storage meter (Dropbox) */
.email-storage-meter {
  height: 8px;
  background: #e5e5e5;
  border-radius: 4px;
  margin: 12px 0;
  overflow: hidden;
}
.email-storage-fill { height: 100%; background: #d93025; width: 100%; border-radius: 4px; }

/* Invoice table (TechConf) */
.email-invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.email-invoice-table td {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.email-invoice-table td:last-child { text-align: right; font-weight: 500; }

/* PayPal restriction panel */
.email-restrict-panel {
  border: 1px solid #003087;
  border-radius: 4px;
  padding: 16px;
  margin: 16px 0;
  background: #f5f7fa;
}
.email-restrict-panel ul {
  margin: 8px 0 0;
  padding-left: 1.25rem;
  color: #2c2e2f;
  line-height: 1.8;
}

/* Brand themes */
.brand-google .email-message { background: #fff; font-family: "Google Sans", Roboto, Helvetica, Arial, sans-serif; }
.brand-google .email-google-header { background: #fff; text-align: center; padding: 28px 24px 18px; border-bottom: none; }
.brand-google .email-google-header--left { text-align: left; display: flex; align-items: center; gap: 10px; padding: 20px 24px; }
.brand-google .email-google-logo-img { display: block; width: 42px; height: 42px; margin: 0 auto; }
.brand-google .email-google-drive-logo-img { width: 34px; height: 30px; flex-shrink: 0; }
.brand-google .email-google-drive-label { color: #5f6368; font-size: 20px; font-weight: 400; letter-spacing: -0.01em; }
.brand-google .email-google-body { color: #3c4043; font-size: 15px; line-height: 1.65; }
.brand-google .email-google-title { font-size: 22px; font-weight: 400; color: #202124; margin-bottom: 18px; line-height: 1.3; }
.brand-google .email-google-info-card {
  background: #f8f9fa;
  border: 1px solid #dadce0;
  border-radius: 12px;
  padding: 6px 18px;
  margin: 20px 0;
}
.brand-google .email-google-info-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #e8eaed; font-size: 14px; }
.brand-google .email-google-info-row:last-child { border-bottom: none; }
.brand-google .email-google-info-row span:first-child { color: #5f6368; }
.brand-google .email-google-info-row span:last-child { color: #202124; font-weight: 500; text-align: right; }
.brand-google .email-google-sharer { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.brand-google .email-google-doc-tile { border-radius: 12px; border-color: #dadce0; }
.brand-google .email-google-doc-icon {
  background: #ea4335; color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.brand-google .email-google-doc-icon::after { content: none; }
.brand-google .email-google-muted, .brand-google .email-google-muted-inline { font-size: 13px; color: #5f6368; }
.brand-google .email-google-footer { background: #f8f9fa; text-align: left; font-size: 12px; color: #5f6368; border-top: 1px solid #f1f3f4; }
.brand-google .email-btn { background: #1a73e8; border-radius: 999px; padding: 11px 26px; font-weight: 500; }
.brand-google .email-text-link { color: #1a73e8; text-decoration: none; }

.brand-amazon .email-message { background: #fff; font-family: "Amazon Ember", Arial, sans-serif; }
.brand-amazon .email-amazon-header { background: #fff; border-bottom: 1px solid #e7e7e7; padding: 20px 24px; text-align: left; }
.brand-amazon .email-amazon-logo-img { display: block; width: 102px; height: 36px; }
.brand-amazon .email-amazon-body { padding: 24px; font-size: 15px; color: #0f1111; }
.brand-amazon .email-amazon-greeting { font-size: 15px; margin-bottom: 8px; }
.brand-amazon .email-amazon-lead { font-size: 22px; font-weight: 700; margin-bottom: 20px; line-height: 1.25; }
.brand-amazon .email-amazon-delivery-card {
  background: #f7fafa;
  border: 1px solid #d5d9d9;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.brand-amazon .email-amazon-delivery-label { font-size: 13px; color: #565959; margin-bottom: 4px; }
.brand-amazon .email-amazon-delivery-date { font-size: 24px; font-weight: 700; color: #0f1111; margin-bottom: 16px; }
.brand-amazon .email-amazon-steps { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-amazon .email-amazon-step {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eaeded;
  color: #565959;
}
.brand-amazon .email-amazon-step--done { background: #d5f5e3; color: #067d62; }
.brand-amazon .email-amazon-step--active { background: #007185; color: #fff; font-weight: 600; }
.brand-amazon .email-amazon-order-card { border: 1px solid #d5d9d9; border-radius: 12px; padding: 14px; margin-bottom: 20px; }
.brand-amazon .email-amazon-order-img { background: linear-gradient(135deg, #eaeded, #d5d9d9); }
.brand-amazon .email-amazon-muted { font-size: 14px; color: #565959; }
.brand-amazon .email-amazon-footer { background: #f7fafa; font-size: 12px; color: #565959; border-top: 1px solid #e7e7e7; text-align: left; }
.brand-amazon .email-btn { background: #ffd814; color: #0f1111; border: 1px solid #fcd200; border-radius: 999px; font-weight: 600; box-shadow: 0 2px 5px rgba(213, 217, 217, 0.5); }

.brand-instagram .email-message { background: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.brand-instagram .email-instagram-header {
  background: #fff;
  border-bottom: none;
  padding: 32px 24px 20px;
  text-align: center;
}
.brand-instagram .email-instagram-logo-img { display: block; width: 44px; height: 44px; margin: 0 auto; }
.brand-instagram .email-instagram-body { text-align: left; font-size: 15px; line-height: 1.65; color: #262626; }
.brand-instagram .email-instagram-security-card {
  background: #fafafa;
  border: 1px solid #dbdbdb;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 20px 0;
}
.brand-instagram .email-instagram-security-title { font-weight: 600; margin-bottom: 4px; }
.brand-instagram .email-instagram-security-detail { font-size: 14px; color: #737373; margin: 0; }
.brand-instagram .email-instagram-muted { font-size: 13px; color: #737373; }
.brand-instagram .email-text-link { color: #0095f6; text-decoration: none; word-break: break-all; }
.brand-instagram .email-instagram-footer { text-align: center; background: #fafafa; border-top: none; font-size: 12px; color: #737373; padding: 20px 24px 28px; }
.brand-instagram .email-instagram-footer-email { color: #0095f6; }
.brand-instagram .email-instagram-footer-links span { color: #737373; }

.brand-dropbox .email-message { background: #f7f9fa; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.brand-dropbox .email-brand-header { background: #fff; text-align: left; padding: 24px 24px 18px; border-bottom: none; display: flex; align-items: center; gap: 10px; }
.brand-dropbox .email-dropbox-logo-img { width: 30px; height: 28px; flex-shrink: 0; }
.brand-dropbox .email-dropbox-wordmark { color: #1e1919; font-size: 24px; font-weight: 700; letter-spacing: -0.04em; }
.brand-dropbox .email-dropbox-body { text-align: left; color: #1e1919; font-size: 15px; line-height: 1.65; }
.brand-dropbox .email-dropbox-body p { color: #1e1919; }
.brand-dropbox .email-dropbox-storage-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 20px 0;
}
.brand-dropbox .email-dropbox-storage-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #637282;
  margin-bottom: 10px;
}
.brand-dropbox .email-dropbox-storage-pct { color: #d93025; }
.brand-dropbox .email-dropbox-meter { background: #e8eaed; height: 8px; border-radius: 999px; }
.brand-dropbox .email-dropbox-meter-fill { background: #d93025; border-radius: 999px; }
.brand-dropbox .email-dropbox-storage-detail { font-size: 13px; color: #637282; margin-top: 8px; margin-bottom: 0; }
.brand-dropbox .email-btn { background: #0061ff; border-radius: 8px; padding: 12px 28px; font-size: 15px; font-weight: 600; }
.brand-dropbox .email-btn-wrap { text-align: center; margin: 24px 0 16px; }
.brand-dropbox .email-dropbox-muted { font-size: 13px; color: #637282; line-height: 1.6; }
.brand-dropbox .email-text-link { color: #0061ff; text-decoration: none; }
.brand-dropbox .email-dropbox-footer { text-align: center; background: #f7f9fa; border-top: none; padding: 20px 24px 28px; font-size: 12px; color: #637282; }
.brand-dropbox .email-dropbox-footer p { margin-bottom: 8px; }
.brand-dropbox .email-dropbox-footer p:last-child { margin-bottom: 0; }
.brand-dropbox .email-dropbox-footer-email { color: #0061ff; }
.brand-dropbox .email-dropbox-footer-links span { color: #637282; }
.brand-dropbox .email-attachment { margin: 20px auto 0; border-color: #e5e7eb; border-radius: 10px; }

.brand-paypal .email-message { background: #fff; font-family: "PayPal Sans", "Helvetica Neue", Arial, sans-serif; }
.brand-paypal .email-paypal-header { background: #fff; text-align: left; padding: 24px 24px 18px; border-bottom: 1px solid #eef1f4; }
.brand-paypal .email-paypal-logo-img { display: block; width: 90px; height: 30px; }
.brand-paypal .email-paypal-body { color: #2c2e2f; font-size: 15px; line-height: 1.65; }
.brand-paypal .email-paypal-limit-card {
  background: #f5f7fa;
  border: 1px solid #cbd2d6;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 20px 0;
}
.brand-paypal .email-paypal-limit-title { font-weight: 600; margin-bottom: 10px; color: #2c2e2f; }
.brand-paypal .email-paypal-limit-list { margin: 0; padding-left: 1.25rem; color: #2c2e2f; line-height: 1.8; }
.brand-paypal .email-paypal-muted { font-size: 13px; color: #687173; }
.brand-paypal .email-paypal-footer { background: #f5f7fa; text-align: center; font-size: 11px; color: #687173; border-top: 1px solid #e5e7eb; padding: 20px 24px 28px; }
.brand-paypal .email-btn { background: #0070ba; border-radius: 999px; padding: 10px 24px; font-weight: 600; }

.brand-techconf .email-message { background: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.brand-techconf .email-techconf-header { background: #1e293b; border-bottom: none; padding: 18px 24px; text-align: left; }
.brand-techconf .email-techconf-brand { display: flex; flex-direction: column; gap: 2px; }
.brand-techconf .email-techconf-name { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: 0.02em; }
.brand-techconf .email-techconf-tagline { color: #38bdf8; font-size: 13px; font-weight: 400; }
.brand-techconf .email-techconf-body { color: #334155; font-size: 15px; line-height: 1.65; }
.brand-techconf .email-techconf-invoice-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 4px 16px;
  margin: 20px 0;
}
.brand-techconf .email-techconf-table td { padding: 10px 0; border-bottom: 1px solid #e2e8f0; }
.brand-techconf .email-techconf-table tr:last-child td { border-bottom: none; }
.brand-techconf .email-techconf-table td:first-child { color: #64748b; font-size: 14px; }
.brand-techconf .email-techconf-table td:last-child { text-align: right; font-weight: 600; color: #1e293b; }
.brand-techconf .email-techconf-attachment { border-color: #e2e8f0; border-radius: 10px; }
.brand-techconf .email-techconf-muted { font-size: 14px; color: #64748b; }
.brand-techconf .email-techconf-footer { background: #f8fafc; text-align: left; font-size: 12px; color: #64748b; border-top: 1px solid #e2e8f0; }

@media (max-width: 500px) {
  .email-pane-subject { font-size: 1.125rem; }
  .email-content, .email-brand-header { padding-left: 16px; padding-right: 16px; }
  .email-order-row { flex-direction: column; align-items: flex-start; }
}

/* Verdict buttons */
.verdict-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 1.5rem; }
.btn-verdict {
  padding: 1rem;
  border-radius: 1rem;
  border: 2px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s;
  color: var(--text);
}
.btn-verdict:hover { border-color: var(--text); background: var(--surface2); }
.btn-verdict.phishing { border-color: var(--red-border); background: var(--red-bg); color: var(--red-text); }
.btn-verdict.legitimate { border-color: var(--green-border); background: var(--green-bg); color: var(--green-text); }
.btn-verdict:disabled { cursor: default; }

/* Feedback */
.feedback-panel {
  border-radius: 1.25rem;
  padding: 1.75rem 2rem;
  margin-bottom: 1.75rem;
  border: 1px solid;
  display: none;
}
.feedback-panel.correct { background: var(--green-bg); border-color: var(--green-border); }
.feedback-panel.incorrect { background: var(--red-bg); border-color: var(--red-border); }
.feedback-verdict {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.feedback-panel.correct .feedback-verdict { color: var(--green-text); }
.feedback-panel.incorrect .feedback-verdict { color: var(--red-text); }
.feedback-text {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.feedback-domain-lesson {
  text-align: left;
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  border-radius: 0.625rem;
  padding: 0.875rem 1rem;
  margin: 0.75rem 0 1rem;
}
.feedback-domain-lesson__header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.625rem;
  margin-bottom: 0.625rem;
}
.feedback-tip-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  padding: 0.1875rem 0.5rem 0.1875rem 0.375rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--amber-border);
  color: var(--amber-text);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}
.feedback-tip-badge__icon {
  display: block;
  flex-shrink: 0;
}
.feedback-domain-lesson__title {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--amber-text);
  line-height: 1.3;
}
.feedback-domain-lesson__list {
  margin: 0;
  padding-left: 1.125rem;
  color: var(--text2);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.feedback-domain-lesson__list li + li {
  margin-top: 0.375rem;
}
.clue-list {
  margin-top: 1.5rem;
  padding: 1.125rem 1.25rem 1.125rem 1.5rem;
  list-style: none;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0.875rem;
}
.clue-list::before {
  content: "What to look for";
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 0.875rem;
}
.clue-list li {
  font-size: 1.0625rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.7;
  padding-left: 1.375rem;
  position: relative;
}
.clue-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
}
.feedback-panel.correct .clue-list li::before { background: var(--green-text); opacity: 0.5; }
.feedback-panel.incorrect .clue-list li::before { background: var(--red-text); opacity: 0.5; }
.clue-list li:last-child { margin-bottom: 0; }

@media (max-width: 500px) {
  .feedback-panel { padding: 1.375rem 1.25rem; }
  .feedback-verdict { font-size: 1.125rem; }
  .feedback-text { font-size: 1.0625rem; }
  .clue-list li { font-size: 1rem; }
}

.btn-next {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1.125rem;
  font-family: var(--font);
  font-weight: 700;
  border-radius: 9999px;
  cursor: pointer;
  display: none;
  transition: opacity 0.3s ease, scale 0.3s ease;
}
.btn-next:hover { opacity: 0.85; scale: 1.03; }

/* Results */
.results-wrap {
  max-width: 600px;
  margin: 4vh auto;
  padding: 0 1.5rem;
  text-align: center;
}
.score-ring-wrap { margin: 0 auto 2rem; width: 140px; }
.score-ring-wrap svg { width: 140px; height: 140px; }
.score-text { font-size: 38px; font-weight: normal; }
.score-denom { font-size: 20px; color: var(--text3); }
.result-message { font-size: 1.75rem; margin-bottom: 0.75rem; font-weight: 400; line-height: 1.1; }
.result-sub { font-size: 1rem; color: var(--text2); line-height: 1.6; margin-bottom: 1rem; }
.results-save-status {
  font-size: 0.875rem;
  color: var(--green-text);
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: 9999px;
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
}

.breakdown-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 2rem; text-align: center; }
.breakdown-card { background: var(--surface); border: 1px solid var(--border); border-radius: 1.5rem; padding: 1rem; }
.breakdown-num { font-size: 1.75rem; font-weight: 400; margin-bottom: 4px; }
.breakdown-lbl { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text3); }
.breakdown-num.correct { color: var(--green-text); }
.breakdown-num.incorrect { color: var(--red-text); }

.takeaways {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.5rem 1.5rem 1.5rem;
  margin-bottom: 2rem;
}
.takeaways-title { font-size: 1.0625rem; font-weight: 500; color: var(--text); margin: 0 0 1rem; }
.takeaways-list { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.takeaways-list li { font-size: 0.9375rem; line-height: 1.55; color: var(--text2); }
.takeaways-list li strong { color: var(--text); font-weight: 500; }
.takeaways-list code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  background: rgba(41, 40, 40, 0.06);
  padding: 1px 5px;
  border-radius: 5px;
}
.results-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.results-signout { margin-top: 1.25rem; text-align: center; }
.btn-link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
  font-size: 0.8125rem;
  color: var(--text3);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.btn-link:hover { color: var(--text2); }

.current-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--amber-bg); border: 1px solid var(--amber-border);
  color: var(--amber-text);
  font-size: 0.75rem;
  padding: 4px 10px; border-radius: 9999px;
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  margin-top: 2rem;
  text-align: center;
}
.site-footer__logo {
  display: inline-flex;
  margin-bottom: 1rem;
  text-decoration: none;
}
.site-footer__logo svg {
  display: block;
  height: 24px;
  width: auto;
}
.site-footer__copy {
  font-size: 0.875rem;
  color: var(--text3);
  line-height: 1.5;
}

@media (max-width: 500px) {
  .header__inner { flex-wrap: wrap; border-radius: 1.5rem; }
  .header-title { order: 3; width: 100%; text-align: center; }
  .progress-wrap { order: 2; margin-left: auto; }
  .intro-wrap h1 { font-size: 2rem; }
  .field-row { grid-template-columns: 1fr; }
  .verdict-row { grid-template-columns: 1fr; }
  .breakdown-grid { grid-template-columns: 1fr; }
  .results-actions { flex-direction: column; }
}
