@charset "UTF-8";

/* Auth guard: hide page until JWT is validated by auth-guard.js */
.panel-page { visibility: hidden; }
html.auth-ready .panel-page { visibility: visible; }

:root {
  --brand-red: #ee2b41;
  --brand-red-rgb: 238, 43, 65;
  --brand-black: #07080b;
  --brand-black-rgb: 7, 8, 11;
  --page-bg: #07080b;
  --page-bg-strong: #0e1016;
  --surface: rgba(12, 15, 20, 0.78);
  --surface-strong: rgba(9, 11, 16, 0.9);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f1e9;
  --muted: #97a0b2;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  --cut: 14px;
  --shell-width: min(1180px, calc(100vw - 40px));
  --font-display: "Teko", sans-serif;
  --font-body: "Manrope", sans-serif;
  --state-rgb: 109, 124, 150;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 22%),
    linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-strong) 100%);
  overflow-x: hidden;
  overflow-y: auto;
  transition:
    background 360ms ease,
    color 280ms ease;
}

body.has-result {
  overflow-y: auto;
}

body.modal-open {
  overflow: hidden;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes statusFlash {
  0% {
    box-shadow:
      var(--shadow),
      inset 0 0 0 1px rgba(var(--state-rgb), 0.08);
  }

  50% {
    box-shadow:
      var(--shadow),
      0 0 0 1px rgba(var(--state-rgb), 0.18),
      0 0 42px rgba(var(--state-rgb), 0.14),
      inset 0 0 0 1px rgba(var(--state-rgb), 0.16);
  }

  100% {
    box-shadow:
      var(--shadow),
      inset 0 0 0 1px rgba(var(--state-rgb), 0.08);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes searchSweep {
  0% {
    transform: translateX(-180%) skewX(-18deg);
  }

  100% {
    transform: translateX(340%) skewX(-18deg);
  }
}

@keyframes loaderLine {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(240%);
  }
}

@keyframes dossierReveal {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    filter: blur(8px);
  }

  55% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes dossierSweep {
  0% {
    opacity: 0.96;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-104%);
  }
}

body[data-state="idle"] {
  --state-rgb: 109, 124, 150;
}

body[data-state="flagged"] {
  --state-rgb: 238, 43, 65;
}

body[data-state="clear"] {
  --state-rgb: 42, 202, 125;
}

body[data-state="monitoring"] {
  --state-rgb: 241, 179, 55;
}

body[data-resolved-theme="light"] {
  --page-bg: #f0ebe5;
  --page-bg-strong: #e7e0d8;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --surface-soft: rgba(7, 8, 11, 0.04);
  --line: rgba(7, 8, 11, 0.09);
  --line-strong: rgba(7, 8, 11, 0.18);
  --text: #11141a;
  --muted: #596273;
  --shadow: 0 24px 60px rgba(20, 24, 31, 0.12);
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

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

.theme-veil,
.state-beacon,
.state-ripple,
.scan-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.theme-veil {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 26%);
}

body[data-resolved-theme="light"] .theme-veil {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 26%),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.52), transparent 22%);
}

.state-beacon {
  opacity: 0.42;
  background:
    radial-gradient(circle at 50% 30%, rgba(var(--state-rgb), 0.22), transparent 18%),
    radial-gradient(circle at 18% 84%, rgba(var(--state-rgb), 0.12), transparent 16%),
    radial-gradient(circle at 92% 22%, rgba(var(--state-rgb), 0.12), transparent 14%);
  filter: blur(52px);
  transition:
    opacity 220ms ease,
    background 220ms ease;
}

.state-ripple {
  opacity: 0.18;
  background:
    linear-gradient(135deg, transparent 8%, rgba(var(--state-rgb), 0.18) 38%, transparent 60%),
    linear-gradient(315deg, transparent 12%, rgba(var(--state-rgb), 0.12) 40%, transparent 62%);
  mix-blend-mode: screen;
}

body[data-state="flagged"] .state-beacon,
body[data-state="flagged"] .state-ripple {
  opacity: 0.9;
}

body[data-state="clear"] .state-beacon,
body[data-state="clear"] .state-ripple {
  opacity: 0.62;
}

body[data-state="monitoring"] .state-beacon,
body[data-state="monitoring"] .state-ripple {
  opacity: 0.74;
}

.scan-grid {
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.86), transparent 92%);
}

body[data-resolved-theme="light"] .scan-grid {
  background-image:
    linear-gradient(rgba(7, 8, 11, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 8, 11, 0.05) 1px, transparent 1px);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: var(--shell-width);
  min-height: 100svh;
  margin: 0 auto;
  padding: 24px 0 56px;
  display: flex;
  flex-direction: column;
}

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: riseIn 420ms ease both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 84px;
  height: 42px;
  overflow: hidden;
}

.brand-logo {
  display: block;
  width: 122px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

.brand-label {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.08em;
}

.head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.head-link,
.locale-button,
.search-button,
.action-button,
.submit-button,
.modal-close,
.sample-chip,
.theme-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

body[data-resolved-theme="light"] .head-link,
body[data-resolved-theme="light"] .locale-button,
body[data-resolved-theme="light"] .action-button.secondary,
body[data-resolved-theme="light"] .action-button.tertiary,
body[data-resolved-theme="light"] .sample-chip,
body[data-resolved-theme="light"] .theme-button,
body[data-resolved-theme="light"] .modal-close {
  background: rgba(7, 8, 11, 0.04);
}

.head-link,
.locale-button,
.sample-chip {
  min-height: 42px;
  padding: 0 14px;
}

.head-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.head-link,
.locale-button,
.search-button,
.action-button,
.submit-button,
.modal-close,
.sample-chip,
.theme-button,
.search-form,
.result-card,
.metric-tile,
.public-panel,
.modal-dialog,
.search-form input,
.modal-form input,
.modal-form textarea,
.modal-form select {
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );
}

.head-link.is-strong,
.search-button,
.action-button.primary,
.submit-button {
  border-color: rgba(var(--brand-red-rgb), 0.38);
  background: linear-gradient(
    135deg,
    rgba(var(--brand-red-rgb), 1) 0%,
    rgba(var(--brand-red-rgb), 0.76) 100%
  );
  color: #fff7f6;
  box-shadow: 0 18px 36px rgba(var(--brand-red-rgb), 0.18);
}

.locale-switcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );
  animation: riseIn 560ms ease both;
  animation-delay: 120ms;
}

body[data-resolved-theme="light"] .locale-switcher {
  background: rgba(255, 255, 255, 0.82);
}

.locale-button {
  min-width: 52px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.locale-button.is-active {
  border-color: rgba(var(--brand-red-rgb), 0.38);
  background: rgba(var(--brand-red-rgb), 0.14);
  color: rgb(var(--brand-red-rgb));
  box-shadow: inset 0 0 0 1px rgba(var(--brand-red-rgb), 0.12);
}

.head-link:hover,
.locale-button:hover,
.search-button:hover,
.action-button:hover,
.submit-button:hover,
.sample-chip:hover,
.theme-button:hover,
.modal-close:hover {
  transform: translateY(-1px);
}

.search-stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
  padding: 40px 0 32px;
  transition:
    justify-content 420ms cubic-bezier(0.22, 1, 0.36, 1),
    padding-top 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.has-result .search-stage {
  justify-content: flex-start;
  padding-top: 56px;
}

.lookup-hero {
  width: min(860px, 100%);
  margin: 0 auto;
  text-align: center;
  animation: riseIn 520ms ease both;
  animation-delay: 60ms;
}

.hero-kicker,
.section-label,
.modal-kicker {
  margin: 0 0 8px;
  color: rgba(var(--brand-red-rgb), 0.92);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lookup-hero h1,
.player-head h2,
.modal-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lookup-hero h1 {
  font-size: clamp(3.4rem, 6vw, 5.2rem);
}

.hero-note,
.updated-at,
.player-meta,
.result-summary,
.public-points li,
.modal-copy p:not(.modal-kicker),
.form-feedback {
  color: var(--muted);
  line-height: 1.6;
}

.hero-note {
  margin: 10px auto 0;
  max-width: 420px;
}

.search-shell {
  margin-top: 24px;
}

.history-block {
  width: min(760px, 100%);
  margin: 14px auto 0;
}

.history-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
}

.search-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
  transition:
    transform 280ms ease,
    border-color 280ms ease,
    box-shadow 280ms ease;
}

.search-form::after {
  content: "";
  position: absolute;
  inset: -16% auto -16% -30%;
  width: 26%;
  background: linear-gradient(
    90deg,
    rgba(var(--brand-red-rgb), 0) 0%,
    rgba(var(--brand-red-rgb), 0.08) 20%,
    rgba(var(--brand-red-rgb), 0.34) 48%,
    rgba(var(--brand-red-rgb), 0.08) 74%,
    rgba(var(--brand-red-rgb), 0) 100%
  );
  transform: translateX(-180%) skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}

.search-form:focus-within {
  transform: translateY(-1px);
  border-color: rgba(var(--brand-red-rgb), 0.28);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(var(--brand-red-rgb), 0.14);
}

body.is-searching .search-form {
  transform: translateY(-2px);
  border-color: rgba(var(--brand-red-rgb), 0.4);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(var(--brand-red-rgb), 0.18),
    0 0 32px rgba(var(--brand-red-rgb), 0.12);
}

body.is-searching .search-form::after {
  opacity: 1;
  animation: searchSweep 1.05s linear infinite;
}

.search-form input,
.modal-form input,
.modal-form textarea,
.modal-form select {
  width: 100%;
  min-height: 58px;
  padding: 16px 18px;
  border: 1px solid transparent;
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

body[data-resolved-theme="light"] .search-form input,
body[data-resolved-theme="light"] .modal-form input,
body[data-resolved-theme="light"] .modal-form textarea,
body[data-resolved-theme="light"] .modal-form select {
  background: rgba(7, 8, 11, 0.04);
}

.search-form input::placeholder,
.modal-form input::placeholder,
.modal-form textarea::placeholder {
  color: var(--muted);
}

.search-form input:focus,
.modal-form input:focus,
.modal-form textarea:focus,
.modal-form select:focus {
  border-color: rgba(var(--brand-red-rgb), 0.34);
  box-shadow: 0 0 0 4px rgba(var(--brand-red-rgb), 0.1);
}

.search-button,
.submit-button {
  min-height: 58px;
  padding: 0 22px;
  font-weight: 800;
}

.search-button:disabled,
.search-form input:disabled {
  cursor: wait;
  opacity: 0.78;
}

.sample-row {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.history-empty {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.result-shell {
  width: min(900px, 100%);
  margin: 20px auto 0;
  min-height: 320px;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.has-result .result-shell {
  opacity: 1;
  transform: translateY(0);
}

body.has-result .result-shell {
  pointer-events: auto;
}

.result-card {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(var(--state-rgb), 0.26);
  background: var(--surface-strong);
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(var(--state-rgb), 0.08);
}

.result-card.is-revealing {
  animation:
    dossierReveal 820ms cubic-bezier(0.22, 1, 0.36, 1),
    statusFlash 1180ms ease;
}

.result-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(var(--state-rgb), 0),
    rgba(var(--state-rgb), 1),
    rgba(var(--state-rgb), 0)
  );
}

.result-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(var(--state-rgb), 0.28) 0%,
      rgba(var(--state-rgb), 0.08) 40%,
      rgba(var(--state-rgb), 0) 100%
    );
  opacity: 0;
  pointer-events: none;
}

.result-card.is-revealing::after {
  animation: dossierSweep 820ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.result-topline,
.status-cluster,
.player-head,
.result-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.status-cluster {
  justify-content: flex-start;
}

.status-pill,
.confidence-badge,
.tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(var(--state-rgb), 0.18);
  background: rgba(var(--state-rgb), 0.08);
}

.status-pill.idle {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

body[data-resolved-theme="light"] .status-pill.idle {
  background: rgba(7, 8, 11, 0.04);
}

.confidence-badge,
.tag-chip {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

body[data-resolved-theme="light"] .confidence-badge,
body[data-resolved-theme="light"] .tag-chip {
  background: rgba(7, 8, 11, 0.04);
}

.updated-at {
  margin: 0;
}

.player-head {
  margin-top: 18px;
  align-items: flex-end;
}

.player-head h2 {
  font-size: clamp(2.7rem, 6vw, 4.1rem);
}

.player-meta {
  margin: 6px 0 0;
}

.signal-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 82px;
  padding: 0 12px;
  border: 1px solid rgba(var(--state-rgb), 0.24);
  background: rgba(var(--state-rgb), 0.1);
  color: rgb(var(--state-rgb));
  font-family: var(--font-display);
  font-size: 2.3rem;
  letter-spacing: 0.04em;
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.metric-tile {
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.metric-tile span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-tile strong {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: 0.03em;
}

.result-summary {
  max-width: 680px;
  margin: 18px 0 0;
}

.public-panel {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.public-timeline {
  display: grid;
  gap: 14px;
}

.public-dossier-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(var(--state-rgb), 0.18);
  background:
    linear-gradient(180deg, rgba(var(--state-rgb), 0.07), transparent 55%),
    var(--surface);
}

.public-dossier-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.public-dossier-head h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.public-dossier-summary,
.public-dossier-conclusion {
  margin: 0;
}

.public-dossier-points {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.public-dossier-sanctions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.public-dossier-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(var(--state-rgb), 0.2);
  background: rgba(var(--state-rgb), 0.08);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.public-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.public-points li {
  position: relative;
  padding-left: 16px;
}

.public-points li + li {
  margin-top: 8px;
}

.public-points li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  background: rgb(var(--state-rgb));
}

.result-actions {
  margin-top: 18px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.action-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.action-button {
  min-height: 48px;
  padding: 0 16px;
}

.action-button.secondary,
.action-button.tertiary {
  background: rgba(255, 255, 255, 0.04);
}

.theme-dock {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(8, 10, 14, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );
  animation: riseIn 560ms ease both;
  animation-delay: 120ms;
}

body[data-resolved-theme="light"] .theme-dock {
  background: rgba(255, 255, 255, 0.82);
}

.theme-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.theme-button svg {
  width: 18px;
  height: 18px;
}

.theme-button {
  border-color: rgba(var(--brand-red-rgb), 0.22);
  background: rgba(var(--brand-red-rgb), 0.1);
  color: var(--brand-red);
}

.theme-icon {
  position: absolute;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

body[data-resolved-theme="dark"] .theme-icon-sun {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body[data-resolved-theme="dark"] .theme-icon-moon {
  opacity: 0;
  transform: translateY(6px) scale(0.84);
}

body[data-resolved-theme="light"] .theme-icon-sun {
  opacity: 0;
  transform: translateY(-6px) scale(0.84);
}

body[data-resolved-theme="light"] .theme-icon-moon {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 30;
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 7, 0.68);
  backdrop-filter: blur(14px);
}

.modal-dialog {
  position: relative;
  width: min(700px, 100%);
  max-height: min(92vh, 980px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid var(--line-strong);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  animation: modalIn 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal-dialog.compact {
  width: min(520px, 100%);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.modal-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.modal-form label {
  display: grid;
  gap: 10px;
  font-weight: 600;
}

.modal-form textarea {
  min-height: 120px;
  resize: vertical;
  padding-top: 16px;
}

.form-feedback {
  min-height: 22px;
  margin: 0;
  font-size: 0.92rem;
}

.form-feedback.is-success {
  color: var(--brand-red);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  animation: riseIn 580ms ease both;
  animation-delay: 140ms;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.panel-page {
  position: relative;
  z-index: 1;
  width: var(--shell-width);
  min-height: 100svh;
  margin: 0 auto;
  padding: 24px 0 56px;
}

.dossier-page {
  width: min(1760px, calc(100vw - 32px));
}

.panel-stack {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.dossier-stack {
  gap: 22px;
}

.panel-banner,
.panel-card,
.app-card,
.panel-nav,
.stat-tile,
.panel-table,
.detail-card,
.modal-panel,
.suggestions-list,
.form-input-shell,
.form-textarea-shell,
.form-select-shell {
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );
}

.panel-banner,
.panel-card,
.app-card,
.panel-nav,
.panel-table,
.detail-card,
.modal-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-banner,
.panel-card,
.app-card,
.detail-card,
.modal-panel {
  padding: 22px;
}

.panel-banner {
  display: grid;
  gap: 18px;
}

.panel-eyebrow {
  margin: 0;
  color: rgba(var(--brand-red-rgb), 0.92);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel-banner h1,
.panel-card h2,
.panel-card h3,
.panel-card h4,
.app-card h3,
.modal-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 0.92;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.panel-banner h1 {
  font-size: clamp(3rem, 5vw, 4.4rem);
}

.panel-card h2,
.panel-card h3,
.modal-panel h2 {
  font-size: 2rem;
}

.panel-card h4,
.app-card h3 {
  font-size: 1.6rem;
}

.panel-copy,
.panel-micro,
.app-meta,
.empty-state,
.detail-copy {
  color: var(--muted);
  line-height: 1.6;
}

.panel-copy {
  margin: 8px 0 0;
}

.panel-nav {
  display: flex;
  gap: 10px;
  padding: 8px;
  overflow-x: auto;
  background: var(--surface-strong);
}

.panel-tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.panel-tab.is-active {
  border-color: rgba(var(--brand-red-rgb), 0.28);
  background: rgba(var(--brand-red-rgb), 0.12);
  color: #fff7f6;
}

.panel-section[hidden] {
  display: none !important;
}

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

.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-tile {
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.stat-tile span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-tile strong {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.03em;
}

.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.panel-feedback {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
}

.panel-feedback.is-error {
  color: #ff7c8a;
}

.panel-feedback.is-success {
  color: #2aca7d;
}

.panel-search {
  position: relative;
}

.suggestions-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 8;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}

.suggestion-button {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 12px 14px;
  text-align: left;
  display: grid;
  gap: 4px;
}

.suggestion-button:hover {
  border-color: rgba(var(--brand-red-rgb), 0.28);
  background: rgba(var(--brand-red-rgb), 0.1);
}

.suggestion-meta {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.panel-search-form,
.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

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

.field {
  display: grid;
  gap: 9px;
}

.field span,
.modal-form span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-input-shell,
.form-textarea-shell,
.form-select-shell {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
}

.form-select option {
  background-color: var(--page-bg);
  color: var(--text);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.panel-board,
.detail-list,
.message-list {
  display: grid;
  gap: 12px;
}

.attachment-list,
.identity-list {
  display: grid;
  gap: 10px;
}

.attachment-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
}

.attachment-link:hover {
  border-color: rgba(var(--brand-red-rgb), 0.28);
  background: rgba(var(--brand-red-rgb), 0.08);
}

.inline-note {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

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

.app-head,
.app-actions,
.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.app-title {
  display: grid;
  gap: 6px;
}

.app-meta {
  margin: 0;
  font-size: 0.92rem;
}

.app-summary {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-pending,
.status-monitoring,
.status-need_info {
  border-color: rgba(241, 179, 55, 0.38);
  color: #f1b337;
}

.status-in_review,
.status-in_progress {
  border-color: rgba(89, 162, 255, 0.34);
  color: #59a2ff;
}

.status-approved,
.status-resolved,
.status-clear {
  border-color: rgba(42, 202, 125, 0.34);
  color: #2aca7d;
}

.status-rejected,
.status-flagged {
  border-color: rgba(238, 43, 65, 0.34);
  color: #ee2b41;
}

.detail-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

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

.detail-grid .metric-tile {
  margin: 0;
}

.message-box {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.message-author {
  margin-bottom: 6px;
  font-weight: 700;
}

.empty-state {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  text-align: center;
}

.text-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.head-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );
}

@media (max-width: 920px) {
  .metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .span-8,
  .span-7,
  .span-6,
  .span-5,
  .span-4 {
    grid-column: span 12;
  }
}

@media (max-width: 760px) {
  :root {
    --shell-width: min(100vw - 24px, 1000px);
    --cut: 10px;
  }

  .page-shell {
    padding-top: 18px;
  }

  .site-head,
  .site-footer,
  .result-topline,
  .player-head,
  .result-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .head-actions {
    width: 100%;
  }

  .head-link,
  .search-button,
  .action-button {
    width: 100%;
  }

  .search-form,
  .metrics-strip,
  .panel-search-form,
  .inline-form,
  .form-columns,
  .detail-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .lookup-hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }

  .result-card,
  .modal-dialog {
    padding: 20px;
  }

  .theme-dock {
    left: 12px;
    right: auto;
    bottom: 12px;
  }

  .locale-switcher {
    right: 12px;
    bottom: 12px;
  }

  .panel-nav {
    gap: 8px;
  }

  .panel-tab,
  .panel-actions .action-button,
  .panel-actions .submit-button,
  .panel-actions .action-link {
    width: 100%;
  }
}

/* ─── Message Badges ─── */
.message-box {
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  margin-bottom: 8px;
}
.message-box.message-system {
  border-left: 3px solid var(--muted);
  opacity: 0.8;
  font-style: italic;
}
.message-author {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.message-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.message-badge-team {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}
.message-badge-staff {
  background: rgba(238, 43, 65, 0.15);
  color: var(--brand-red);
}
.message-badge-system {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

/* ─── New Status Colors ─── */
.status-badge.status-claimed,
.status-badge.status-in-progress {
  background: rgba(234, 179, 8, 0.12);
  color: #facc15;
}
.status-badge.status-info-requested,
.status-badge.status-need-info {
  background: rgba(249, 115, 22, 0.12);
  color: #fb923c;
}
.status-badge.status-accepted,
.status-badge.status-approved {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
}
.status-badge.status-rejected {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}
.status-badge.status-pending,
.status-badge.status-in-review {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
}
.status-badge.status-flagged {
  background: rgba(238, 43, 65, 0.15);
  color: var(--brand-red);
}
.status-badge.status-monitoring {
  background: rgba(234, 179, 8, 0.12);
  color: #facc15;
}
.status-badge.status-clear {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
}

/* ─── Attachment Row ─── */
.attachment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.attachment-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.82rem;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease;
}
.attachment-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-strong);
}

/* ─── Detail Grid ─── */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

/* ─── Action Button Variants ─── */
.action-button.danger {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}
.action-button.danger:hover {
  background: rgba(239, 68, 68, 0.1);
}
.action-button.primary {
  color: #fff7f6;
  border-color: rgba(var(--brand-red-rgb), 0.38);
  background: linear-gradient(
    135deg,
    rgba(var(--brand-red-rgb), 1) 0%,
    rgba(var(--brand-red-rgb), 0.76) 100%
  );
  box-shadow: 0 18px 36px rgba(var(--brand-red-rgb), 0.16);
}
.action-button.primary:hover {
  background: linear-gradient(
    135deg,
    rgba(var(--brand-red-rgb), 1) 0%,
    rgba(var(--brand-red-rgb), 0.82) 100%
  );
}
.action-button.success {
  color: #ffffff;
  border-color: rgba(34, 197, 94, 0.38);
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 1) 0%,
    rgba(34, 197, 94, 0.76) 100%
  );
  box-shadow: 0 18px 36px rgba(34, 197, 94, 0.16);
}
.action-button.success:hover {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 1) 0%,
    rgba(34, 197, 94, 0.82) 100%
  );
}

#dossierStatus {
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  text-align: center;
  line-height: 1.2;
  white-space: normal;
}

#dossierClaimedBy {
  display: block;
  font-size: clamp(0.95rem, 1.7vw, 1.16rem);
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

.dossier-message-content {
  white-space: pre-wrap;
  font-size: 0.94rem;
  line-height: 1.7;
}

.attachment-link {
  cursor: pointer;
}

.dossier-staff-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dossier-workspace {
  display: grid;
  gap: 18px;
}

.dossier-workspace-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  position: relative;
}

.dossier-layout--parallel .dossier-workspace-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.dossier-layout--parallel .dossier-workspace-row::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: calc(50% + 12px);
  width: 1px;
  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(var(--state-rgb), 0.26) 12%,
      rgba(var(--state-rgb), 0.14) 88%,
      transparent
    );
}

.dossier-workspace-cell {
  min-width: 0;
}

.dossier-layout--parallel .dossier-workspace-cell--dd {
  padding-right: 18px;
}

.dossier-layout--parallel .dossier-workspace-cell--pf {
  padding-left: 18px;
}

.dossier-cell-stack {
  display: grid;
  gap: 18px;
}

.dossier-panel {
  height: 100%;
}

.dossier-description-card .detail-copy {
  min-height: clamp(220px, 26vh, 360px);
}

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

.dossier-span-2 {
  grid-column: span 2;
}

.dossier-span-3 {
  grid-column: span 3;
}

.dossier-span-6 {
  grid-column: 1 / -1;
}

.dossier-attachment-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.dossier-scroll-panel {
  display: grid;
  gap: 12px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.dossier-messages-panel {
  max-height: 520px;
}

.dossier-history-panel,
.dossier-related-panel {
  max-height: 280px;
}

.dossier-profile-card textarea,
.dossier-summary-form textarea,
.dossier-sanction-form textarea {
  min-height: 120px;
}

.dossier-profile-card .panel-actions,
.dossier-summary-form .panel-actions,
.dossier-sanction-form .panel-actions {
  justify-content: flex-start;
}

/* ─── Dossier Split View ─── */
.dossier-split {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 24px;
  align-items: start;
  position: relative;
}

.dossier-split::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: calc(58.333% + 12px);
  width: 1px;
  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(var(--state-rgb), 0.26) 12%,
      rgba(var(--state-rgb), 0.14) 88%,
      transparent
    );
}

@media (max-width: 960px) {
  .dossier-page {
    width: min(100vw - 24px, 1280px);
  }

  .dossier-layout--parallel .dossier-workspace-row {
    grid-template-columns: 1fr;
  }

  .dossier-layout--parallel .dossier-workspace-row::after {
    display: none;
  }

  .dossier-layout--parallel .dossier-workspace-cell--dd,
  .dossier-layout--parallel .dossier-workspace-cell--pf {
    padding-left: 0;
    padding-right: 0;
  }

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

  .dossier-span-2,
  .dossier-span-3,
  .dossier-span-6 {
    grid-column: span 2;
  }

  .dossier-split {
    grid-template-columns: 1fr;
  }

  .dossier-split::after {
    display: none;
  }
}

.dossier-split-col {
  min-width: 0;
}

.dossier-dd-col {
  padding-right: 20px;
}

.dossier-pf-col {
  padding-left: 20px;
}

.dossier-col-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.dossier-col-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dossier-col-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );
}

.dossier-col-badge.dd {
  border: 1px solid rgba(100, 160, 255, 0.28);
  background: rgba(100, 160, 255, 0.12);
  color: #8fc4ff;
}

.dossier-col-badge.pf {
  border: 1px solid rgba(var(--brand-red-rgb), 0.32);
  background: rgba(var(--brand-red-rgb), 0.14);
  color: #ff8a95;
}

/* Transfer buttons */
.transfer-all-btn {
  font-size: 0.78rem;
  font-weight: 700;
  min-height: 34px;
  padding: 0 12px;
  border-color: rgba(100, 160, 255, 0.28);
  background: rgba(100, 160, 255, 0.1);
  color: #8fc4ff;
}

.transfer-all-btn:hover {
  background: rgba(100, 160, 255, 0.2);
  border-color: rgba(100, 160, 255, 0.44);
}

.transfer-btn {
  font-size: 0.72rem;
  font-weight: 700;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(100, 160, 255, 0.22);
  background: rgba(100, 160, 255, 0.08);
  color: #8fc4ff;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.transfer-btn:hover {
  background: rgba(100, 160, 255, 0.18);
  border-color: rgba(100, 160, 255, 0.38);
}

/* Riot Lookup */
.riot-lookup-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.riot-lookup-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

/* Alias list */
.alias-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.alias-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  font-size: 0.88rem;
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );
}

.alias-item .alias-value {
  flex: 1;
  font-weight: 600;
}

.alias-item .alias-network {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.alias-item .alias-type {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 2px 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.alias-item .alias-delete {
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 4px;
  font-size: 0.9rem;
  opacity: 0.6;
  transition: opacity 180ms ease, color 180ms ease;
}

.alias-item .alias-delete:hover {
  opacity: 1;
  color: var(--brand-red);
}

.alias-add-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .dossier-page {
    width: min(100vw - 20px, 1000px);
  }

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

  .dossier-span-2,
  .dossier-span-3,
  .dossier-span-6 {
    grid-column: 1 / -1;
  }

  .dossier-description-card .detail-copy {
    min-height: 0;
  }

  .alias-add-row {
    flex-direction: column;
  }
}

/* Attachment item with transfer */
.attachment-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.attachment-item-row .attachment-link {
  flex: 1;
}

/* ─── File Picker ─────────────────────────────────────────────────── */

.file-picker { margin-top: 4px; }

.file-picker-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.file-picker-dropzone {
  border: 2px dashed var(--line-strong);
  border-radius: 6px;
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--surface-soft);
}

.file-picker-dropzone:hover,
.file-picker-dropzone.is-dragover {
  border-color: var(--brand-red);
  background: rgba(238, 43, 65, 0.06);
}

.file-picker-dropzone-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.file-picker-icon { font-size: 20px; }

.file-picker-browse {
  background: none;
  border: none;
  color: var(--brand-red);
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  padding: 0;
  text-decoration: underline;
}

.file-picker-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-picker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
}

.file-picker-item.is-valid {
  border-color: rgba(74, 222, 128, 0.2);
}

.file-picker-item.is-invalid {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.06);
}

.file-picker-item-icon { font-size: 18px; flex-shrink: 0; }

.file-picker-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.file-picker-item-name {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-picker-item-size {
  color: var(--muted);
  font-size: 11px;
}

.file-picker-item-error {
  color: #f87171;
  font-size: 11px;
  font-weight: 600;
}

.file-picker-item-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  padding: 2px 6px;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.file-picker-item-remove:hover {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
}
