:root {
  --page: #e6e9ee;
  --panel: #ffffff;
  --panel-alt: #f4f6f9;
  --line: #d3d9e2;
  --ink: #1f2a3a;
  --muted: #5a6577;
  --policy: #6d4aa0;
  --fail: #b3261e;
  --font: "Public Sans", "Segoe UI", Arial, sans-serif;
  --mono: "Share Tech Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 1rem/1.55 var(--font);
}

.portal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding: 0.6rem 1.25rem;
  background: var(--policy);
  color: #fff;
  font-size: 0.9rem;
}
.portal-name { font-weight: 800; }
.note { opacity: 0.85; }

.page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

h1 {
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.lede { color: var(--muted); margin: 0 0 1.75rem; }

.drop {
  border: 2px dashed #9aa5b5;
  border-radius: 8px;
  background: var(--panel);
  padding: 2.5rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.drop:hover, .drop:focus-visible { border-color: var(--policy); background: #fbfdff; outline: none; }
.drop.drag { border-color: var(--policy); background: #eef4fc; }
.drop-big { margin: 0 0 0.3rem; font-weight: 700; font-size: 1.15rem; }
.drop-small { margin: 0; color: var(--muted); font-size: 0.9rem; }

.result {
  margin-top: 1.75rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.1rem 1.2rem 1.3rem;
}
.result.empty { border-color: #e4b9b6; }
.r-cap { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; margin: 0 0 0.4rem; }
.r-raw {
  font-family: var(--mono);
  font-size: 1rem;
  background: var(--panel-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.7rem 0.8rem;
  word-break: break-all;
  white-space: pre-wrap;
  margin: 0;
}
.result.empty .r-raw { color: var(--fail); }

.privacy { font-size: 0.85rem; color: var(--muted); margin-top: 1.5rem; }

.site-footer {
  margin-top: 2rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.site-footer a { color: var(--policy); font-weight: 600; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-sub { display: block; margin-top: 0.5rem; color: var(--muted); font-size: 0.82rem; }

@media (prefers-reduced-motion: reduce) { .drop { transition: none; } }
