:root {
  color-scheme: dark;
  --bg: #06101c;
  --surface: rgba(12, 25, 41, 0.88);
  --surface-strong: #0e2034;
  --line: rgba(148, 180, 213, 0.16);
  --line-strong: rgba(119, 191, 255, 0.32);
  --text: #eef7ff;
  --muted: #91a8bc;
  --faint: #6f879c;
  --primary: #54b8ff;
  --primary-strong: #168ee5;
  --cyan: #55e2d2;
  --normal: #53d69c;
  --verification: #ffc65c;
  --not-found: #ff7185;
  --unknown: #99a9ba;
  --danger: #ff6179;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 13px;
  font-family:
    Inter, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 2%, rgba(45, 143, 222, 0.16), transparent 32rem),
    radial-gradient(circle at 90% 35%, rgba(52, 213, 190, 0.08), transparent 34rem),
    linear-gradient(155deg, #071422 0%, var(--bg) 48%, #07111d 100%);
  font-size: 15px;
  line-height: 1.6;
}

button,
textarea,
input {
  font: inherit;
}

button,
.file-button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
.file-button {
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    opacity 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

button:focus-visible,
textarea:focus-visible,
input:focus-visible,
.file-button:focus-within,
a:focus-visible {
  outline: 3px solid rgba(84, 184, 255, 0.34);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.ambient-one {
  top: 25rem;
  left: -25rem;
  background: rgba(52, 151, 232, 0.09);
}

.ambient-two {
  right: -24rem;
  bottom: 5rem;
  background: rgba(63, 222, 191, 0.07);
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--cyan);
  border: 1px solid rgba(85, 226, 210, 0.27);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(49, 179, 201, 0.2), rgba(35, 101, 166, 0.13));
  box-shadow: inset 0 0 20px rgba(85, 226, 210, 0.05);
}

.brand-mark svg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}

.brand > span:last-child {
  display: grid;
  line-height: 1.2;
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0.015em;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.privacy-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  color: #c1d9eb;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 32, 51, 0.58);
  font-size: 12px;
}

.privacy-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--normal);
  box-shadow: 0 0 0 5px rgba(83, 214, 156, 0.08);
}

.hero {
  padding: 74px 0 36px;
}

.eyebrow {
  margin-bottom: 13px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.18em;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-wrap: balance;
}

.hero-copy {
  max-width: 790px;
  margin: 22px 0 0;
  color: #a8bed0;
  font-size: 17px;
  line-height: 1.8;
}

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

.principle-grid article {
  display: flex;
  min-width: 0;
  gap: 13px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(10, 25, 41, 0.64);
}

.principle-icon {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
}

.principle-icon.safe {
  color: var(--normal);
  background: rgba(83, 214, 156, 0.1);
}

.principle-icon.visible {
  color: var(--primary);
  background: rgba(84, 184, 255, 0.1);
}

.principle-icon.caution {
  color: var(--verification);
  background: rgba(255, 198, 92, 0.1);
}

.principle-grid strong {
  display: block;
  font-size: 14px;
}

.principle-grid p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.notice {
  display: flex;
  align-items: flex-start;
  max-width: 900px;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  color: #c6d7e5;
  border: 1px solid rgba(255, 198, 92, 0.18);
  border-radius: var(--radius-md);
  background: rgba(89, 66, 27, 0.16);
}

.notice svg {
  flex: 0 0 auto;
  width: 20px;
  margin-top: 2px;
  color: var(--verification);
}

.notice p {
  margin: 0;
  font-size: 13px;
}

.notice strong {
  color: #ffe3ad;
}

.access-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(430px, 1.28fr);
  align-items: center;
  gap: 25px;
  margin: 18px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(110deg, rgba(17, 38, 61, 0.9), rgba(10, 25, 41, 0.78));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.runtime-copy {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 13px;
}

.runtime-copy strong {
  display: block;
  font-size: 14px;
}

.runtime-copy p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.runtime-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.runtime-dot.locked {
  background: var(--unknown);
  box-shadow: 0 0 0 6px rgba(153, 169, 186, 0.07);
}

.runtime-dot.loading {
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(84, 184, 255, 0.08);
  animation: pulse 1.5s ease-in-out infinite;
}

.runtime-dot.ready {
  background: var(--normal);
  box-shadow: 0 0 0 6px rgba(83, 214, 156, 0.08);
}

.runtime-dot.error {
  background: var(--danger);
  box-shadow: 0 0 0 6px rgba(255, 97, 121, 0.08);
}

.access-form {
  min-width: 0;
}

.access-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.access-heading label {
  color: #d8e7f3;
  font-size: 12px;
  font-weight: 720;
}

.access-heading span {
  color: var(--faint);
  font-size: 10px;
}

.access-controls {
  display: flex;
  gap: 9px;
}

.token-input-wrap {
  position: relative;
  min-width: 0;
  flex: 1;
}

.token-input-wrap input {
  width: 100%;
  height: 42px;
  padding: 9px 66px 9px 13px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  background: rgba(3, 13, 23, 0.6);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.token-input-wrap input:focus {
  border-color: rgba(84, 184, 255, 0.58);
  box-shadow: 0 0 0 4px rgba(84, 184, 255, 0.07);
}

.token-input-wrap input:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.toggle-token-button {
  position: absolute;
  top: 50%;
  right: 7px;
  padding: 5px 8px;
  color: var(--muted);
  border: 0;
  border-radius: 7px;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 10px;
}

.toggle-token-button:hover:not(:disabled) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.connect-button {
  flex: 0 0 auto;
  min-width: 112px;
  padding: 9px 13px;
  color: #03121e;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(125deg, var(--cyan), var(--primary));
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
}

.connect-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(32, 158, 224, 0.2);
}

.connect-button:disabled,
.toggle-token-button:disabled {
  cursor: wait;
  opacity: 0.52;
}

.access-message {
  min-height: 18px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.access-message.loading {
  color: #92cbf4;
}

.access-message.success {
  color: #79dfb1;
}

.access-message.error {
  color: #ff91a3;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 18px;
  padding: 18px 0 56px;
}

.panel,
.results-section {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(19, 40, 64, 0.82), rgba(8, 22, 37, 0.91)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel {
  min-width: 0;
  padding: 24px;
  border-radius: var(--radius-xl);
}

.panel-heading,
.section-heading,
.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading > div,
.section-heading > div {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.step-number {
  display: grid;
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  place-items: center;
  color: var(--primary);
  border: 1px solid rgba(84, 184, 255, 0.24);
  border-radius: 11px;
  background: rgba(84, 184, 255, 0.07);
  font-size: 11px;
  font-weight: 780;
}

.panel-heading h2,
.section-heading h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
}

.panel-heading p,
.section-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.limit-chip,
.state-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 28px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}

.limit-chip {
  color: #c2d6e6;
  background: rgba(255, 255, 255, 0.025);
  font-variant-numeric: tabular-nums;
}

.limit-chip.warning {
  color: #ffe0a1;
  border-color: rgba(255, 198, 92, 0.3);
  background: rgba(255, 198, 92, 0.08);
}

.limit-chip.invalid {
  color: #ff9aac;
  border-color: rgba(255, 97, 121, 0.3);
  background: rgba(255, 97, 121, 0.08);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

textarea {
  display: block;
  width: 100%;
  min-height: 205px;
  margin-top: 20px;
  padding: 16px 17px;
  resize: vertical;
  color: var(--text);
  caret-color: var(--cyan);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  outline: none;
  background: rgba(3, 13, 23, 0.58);
  box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.12);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.75;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

textarea::placeholder {
  color: #587188;
}

textarea:hover {
  border-color: rgba(135, 179, 217, 0.26);
}

textarea:focus {
  border-color: rgba(84, 184, 255, 0.58);
  background: rgba(4, 15, 26, 0.74);
  box-shadow: 0 0 0 4px rgba(84, 184, 255, 0.07);
}

textarea:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.validation-summary {
  min-height: 22px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.validation-summary.success {
  color: #79dfb1;
}

.validation-summary.error {
  color: #ff8fa1;
}

.input-actions,
.primary-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-actions {
  justify-content: space-between;
  margin-top: 12px;
}

.file-button,
.text-button,
.primary-button,
.stop-button,
.download-button,
.copy-button {
  border: 0;
  cursor: pointer;
}

.file-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #bbd2e4;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  cursor: pointer;
}

.file-button:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(84, 184, 255, 0.06);
}

.file-button svg,
.download-button svg {
  width: 17px;
  height: 17px;
}

.text-button {
  padding: 7px 5px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
}

.text-button:hover {
  color: var(--text);
}

.extraction-hint {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 17px;
  padding: 11px 12px;
  color: #99b2c6;
  border: 1px solid rgba(84, 184, 255, 0.13);
  border-radius: 11px;
  background: rgba(84, 184, 255, 0.045);
}

.extraction-hint > span {
  display: grid;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  place-items: center;
  color: #9ed6ff;
  border: 1px solid rgba(84, 184, 255, 0.28);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
}

.extraction-hint p {
  margin: 0;
  font-size: 11px;
}

.primary-actions {
  margin-top: 14px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  flex: 1;
  gap: 8px;
  padding: 11px 18px;
  color: #03121e;
  border-radius: 12px;
  background: linear-gradient(125deg, var(--cyan), var(--primary));
  box-shadow: 0 12px 30px rgba(32, 158, 224, 0.18);
  font-size: 14px;
  font-weight: 780;
}

.primary-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: none;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 15px 36px rgba(32, 158, 224, 0.26);
}

.primary-button:disabled,
.file-button:has(+ input:disabled),
.text-button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.stop-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 8px;
  padding: 11px 17px;
  color: #ff9bac;
  border: 1px solid rgba(255, 97, 121, 0.26);
  border-radius: 12px;
  background: rgba(255, 97, 121, 0.07);
  font-size: 13px;
  font-weight: 730;
}

.stop-button:hover:not(:disabled) {
  background: rgba(255, 97, 121, 0.12);
}

.stop-button > span {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: currentColor;
}

.stop-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.progress-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.state-badge.idle {
  color: #a8b8c6;
  background: rgba(153, 169, 186, 0.07);
}

.state-badge.running {
  color: #8dd2ff;
  border-color: rgba(84, 184, 255, 0.25);
  background: rgba(84, 184, 255, 0.08);
}

.state-badge.complete {
  color: #8be9bd;
  border-color: rgba(83, 214, 156, 0.24);
  background: rgba(83, 214, 156, 0.08);
}

.state-badge.stopped,
.state-badge.error {
  color: #ff9cad;
  border-color: rgba(255, 97, 121, 0.24);
  background: rgba(255, 97, 121, 0.08);
}

.progress-visual {
  margin-top: 34px;
}

.progress-labels {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.progress-labels strong {
  color: var(--text);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 9px;
  margin-top: 11px;
  overflow: hidden;
  border: 1px solid rgba(148, 180, 213, 0.09);
  border-radius: 999px;
  background: rgba(1, 9, 16, 0.58);
}

.progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-strong), var(--cyan));
  box-shadow: 0 0 14px rgba(85, 226, 210, 0.3);
  transition: width 260ms ease;
}

.progress-track > span.indeterminate {
  width: 36%;
  animation: indeterminate 1.15s ease-in-out infinite;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 27px;
}

.summary-item {
  min-width: 0;
  padding: 12px 10px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}

.summary-item span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-item strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.summary-item.normal strong { color: var(--normal); }
.summary-item.verification strong { color: var(--verification); }
.summary-item.not-found strong { color: var(--not-found); }
.summary-item.unknown strong { color: var(--unknown); }

.activity-log {
  display: flex;
  align-items: flex-start;
  min-height: 55px;
  gap: 10px;
  margin-top: auto;
  padding: 16px;
  color: #9fb5c8;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(3, 14, 24, 0.44);
}

.activity-log p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}

.activity-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--unknown);
}

.activity-log.running .activity-dot {
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(84, 184, 255, 0.07);
  animation: pulse 1.4s ease-in-out infinite;
}

.activity-log.error {
  color: #ff9bac;
  border-color: rgba(255, 97, 121, 0.18);
}

.activity-log.error .activity-dot {
  background: var(--danger);
}

.results-section {
  margin-bottom: 52px;
  padding: 26px;
  border-radius: var(--radius-xl);
}

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  color: #c4d9e9;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
}

.download-button:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(84, 184, 255, 0.07);
}

.download-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

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

.result-card {
  --card-color: var(--unknown);
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 260px;
  overflow: hidden;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(5, 17, 29, 0.47);
}

.result-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--card-color), transparent);
  content: "";
  opacity: 0.64;
}

.result-card.normal { --card-color: var(--normal); }
.result-card.verification { --card-color: var(--verification); }
.result-card.not-found { --card-color: var(--not-found); }
.result-card.unknown { --card-color: var(--unknown); }

.result-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
}

.status-icon {
  display: grid;
  flex: 0 0 auto;
  width: 33px;
  height: 33px;
  place-items: center;
  color: var(--card-color);
  border: 1px solid color-mix(in srgb, var(--card-color) 28%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--card-color) 9%, transparent);
  font-size: 15px;
  font-weight: 800;
}

.result-title h3 {
  margin: 0;
  font-size: 15px;
}

.result-title p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.result-count {
  color: var(--card-color);
  font-size: 23px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.result-list {
  min-height: 112px;
  max-height: 230px;
  margin: 14px 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  scrollbar-color: rgba(132, 170, 202, 0.3) transparent;
  scrollbar-width: thin;
}

.result-list li:not(.empty-result) {
  display: grid;
  gap: 3px;
  padding: 10px 1px;
  border-bottom: 1px solid rgba(148, 180, 213, 0.09);
}

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

.result-list .email {
  overflow: hidden;
  color: #d7e8f5;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-list .message {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-result {
  display: grid;
  min-height: 110px;
  place-items: center;
  color: #5f768a;
  font-size: 12px;
}

.copy-button {
  width: 100%;
  margin-top: auto;
  padding: 9px 12px;
  color: color-mix(in srgb, var(--card-color) 82%, white);
  border: 1px solid color-mix(in srgb, var(--card-color) 20%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--card-color) 6%, transparent);
  font-size: 11px;
  font-weight: 700;
}

.copy-button:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--card-color) 34%, transparent);
  background: color-mix(in srgb, var(--card-color) 11%, transparent);
}

.copy-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

footer {
  padding: 8px 0 38px;
  color: var(--faint);
  text-align: center;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

footer p {
  margin: 25px 0 0;
}

.toast {
  position: fixed;
  z-index: 20;
  right: 22px;
  bottom: 22px;
  max-width: min(390px, calc(100vw - 32px));
  padding: 12px 15px;
  color: #dff7ed;
  border: 1px solid rgba(83, 214, 156, 0.25);
  border-radius: 12px;
  background: rgba(11, 36, 38, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  font-size: 13px;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  color: #ffdce2;
  border-color: rgba(255, 97, 121, 0.27);
  background: rgba(52, 19, 29, 0.97);
}

noscript {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 10px 14px;
  color: white;
  border-radius: 10px;
  background: #a12940;
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes indeterminate {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(310%); }
}

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

  .access-panel,
  .workspace {
    grid-template-columns: 1fr;
  }

  .activity-log {
    margin-top: 25px;
  }
}

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

  .site-header {
    min-height: 74px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .privacy-chip {
    max-width: 145px;
    padding: 7px 9px;
    text-align: center;
    font-size: 9px;
    line-height: 1.25;
  }

  .privacy-chip .privacy-dot {
    display: none;
  }

  .hero {
    padding-top: 50px;
  }

  .hero h1 {
    font-size: clamp(34px, 12vw, 48px);
  }

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

  .access-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .connect-button {
    min-height: 42px;
  }

  .panel,
  .results-section {
    padding: 18px;
    border-radius: 18px;
  }

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

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

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .brand small {
    display: none;
  }

  .brand strong {
    max-width: 115px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .access-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .input-actions,
  .primary-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .file-button,
  .text-button,
  .stop-button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }
}

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