/* Ethereal Glass — Content Checker internal dashboard */

:root {
  --bg: #050505;
  --text: #f4f4f5;
  --muted: rgba(244, 244, 245, 0.55);
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.14);
  --shell: rgba(255, 255, 255, 0.04);
  --core: rgba(255, 255, 255, 0.03);
  --accent: #5eead4;
  --accent-2: #818cf8;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #fb7185;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --radius-outer: 2rem;
  --radius-inner: calc(2rem - 0.375rem);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(129, 140, 248, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 85% 10%, rgba(94, 234, 212, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(129, 140, 248, 0.08), transparent 60%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.container {
  position: relative;
  z-index: 1;
  max-width: 1800px;
  margin: 0 auto;
  padding: 6rem 2rem 2.5rem;
}

@media (max-width: 767px) {
  .container { padding: 5.5rem 1rem 2rem; }
}

/* ── Floating island nav ── */
.nav-island-wrap {
  position: fixed;
  top: 1.5rem;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  pointer-events: none;
}

.nav-island {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.45rem 0.45rem 1.25rem;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--hairline);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  max-width: 100%;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-right: 0.75rem;
  white-space: nowrap;
}

.brand-eyebrow {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.5s var(--ease), background 0.5s var(--ease), transform 0.5s var(--ease);
}

.nav-desktop a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-user {
  padding: 0.35rem 0.75rem;
  margin-left: 0.25rem;
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 1rem;
  height: 1px;
  background: var(--text);
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease);
}

.nav-toggle span:nth-child(1) { transform: translate(-50%, -4px); }
.nav-toggle span:nth-child(2) { transform: translate(-50%, 4px); }

.nav-toggle.is-open span:nth-child(1) { transform: translate(-50%, 0) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { transform: translate(-50%, 0) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.nav-mobile a {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(3rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), color 0.4s var(--ease);
}

.nav-overlay.is-open .nav-mobile a {
  opacity: 1;
  transform: translateY(0);
}

.nav-overlay.is-open .nav-mobile a:nth-child(1) { transition-delay: 0.1s; }
.nav-overlay.is-open .nav-mobile a:nth-child(2) { transition-delay: 0.15s; }
.nav-overlay.is-open .nav-mobile a:nth-child(3) { transition-delay: 0.2s; }
.nav-overlay.is-open .nav-mobile a:nth-child(4) { transition-delay: 0.25s; }
.nav-overlay.is-open .nav-mobile a:nth-child(5) { transition-delay: 0.3s; }

.nav-mobile a:hover { color: var(--accent); }

@media (max-width: 767px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
  .nav-user { display: none; }
}

/* ── Typography ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  margin-bottom: 0.5rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.15);
}

h1 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.muted {
  color: var(--muted);
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 767px) {
  .page-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Double bezel ── */
.bezel-shell {
  padding: 0.375rem;
  border-radius: var(--radius-outer);
  background: var(--shell);
  border: 1px solid var(--hairline);
}

.bezel-core {
  border-radius: var(--radius-inner);
  background: var(--core);
  border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.5s var(--ease), background 0.5s var(--ease), border-color 0.5s var(--ease);
}

.btn:hover { background: rgba(255, 255, 255, 0.08); }
.btn:active { transform: scale(0.98); }

.btn.primary {
  border: 1px solid rgba(94, 234, 212, 0.25);
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.18), rgba(129, 140, 248, 0.18));
  color: var(--text);
}

.btn.primary:hover {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.28), rgba(129, 140, 248, 0.28));
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.5s var(--ease);
}

.btn.primary:hover .btn-icon {
  transform: translate(2px, -1px) scale(1.05);
}

.btn-icon svg {
  width: 0.875rem;
  height: 0.875rem;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0;
  transition: opacity 0.4s var(--ease);
}

.link-btn:hover { opacity: 0.75; }
.link-btn.danger { color: var(--bad); }

.chip-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}

.chip-btn:hover {
  background: rgba(94, 234, 212, 0.08);
  border-color: rgba(94, 234, 212, 0.3);
  color: var(--accent);
}

.chip-btn:active { transform: scale(0.96); }

.chip-btn.danger:hover {
  background: rgba(251, 113, 133, 0.08);
  border-color: rgba(251, 113, 133, 0.3);
  color: var(--bad);
}

/* ── Alerts ── */
.alert {
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-inner);
  font-size: 0.9rem;
  border: 1px solid var(--hairline);
}

.alert.ok {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.2);
  color: #a7f3d0;
}

.alert.bad {
  background: rgba(251, 113, 133, 0.08);
  border-color: rgba(251, 113, 133, 0.2);
  color: #fecdd3;
}

/* ── Stats bento ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.stat-card { --radius-outer: 1.25rem; --radius-inner: calc(1.25rem - 0.3rem); }
.stat-card.bezel-shell { padding: 0.3rem; }

.stat-card .bezel-core {
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.stat-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--muted);
  flex-shrink: 0;
}

.stat-dot.ok { background: var(--ok); box-shadow: 0 0 8px rgba(52, 211, 153, 0.6); }
.stat-dot.bad {
  background: var(--bad);
  box-shadow: 0 0 8px rgba(251, 113, 133, 0.6);
  animation: pulse-dot 1.6s var(--ease) infinite;
}

.stat-card.is-alert {
  border-color: rgba(251, 113, 133, 0.25);
}

.stat-card.is-alert .stat-value { color: var(--bad); }

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stats-grid { gap: 0.5rem; }
  .stat-card .bezel-core { padding: 0.6rem 0.85rem; }
}

/* ── Live indicator ── */
.toolbar-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ok);
  background: rgba(52, 211, 153, 0.07);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.live-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
  animation: pulse-dot 2s var(--ease) infinite;
}

/* ── Forms ── */
.auth-wrap {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1rem 3rem;
  position: relative;
  z-index: 1;
}

.auth-card {
  width: 100%;
  max-width: 440px;
}

.auth-card .bezel-core { padding: 2.5rem 2rem; }

label {
  display: block;
  margin-bottom: 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--hairline);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

select {
  color-scheme: dark;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
}

select option {
  background: #121214;
  color: #f4f4f5;
}

select option:checked {
  background: #1e3a5f;
  color: #fff;
}

select option:hover {
  background: #27272a;
  color: #fff;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(94, 234, 212, 0.35);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.08);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.checkbox input { width: auto; margin: 0; }

.form-card { max-width: 780px; }
.form-card .bezel-core { padding: 2rem; }
.form-section { margin-bottom: 2rem; }

/* ── Compact target list ── */
.target-list .bezel-shell {
  --radius-outer: 1.25rem;
  --radius-inner: calc(1.25rem - 0.3rem);
  padding: 0.3rem;
}

.target-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.search-field {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 360px;
}

.search-field svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.95rem;
  height: 0.95rem;
  stroke: var(--muted);
  stroke-width: 1.5;
  fill: none;
  pointer-events: none;
}

.search-field input {
  margin-top: 0;
  padding: 0.55rem 1rem 0.55rem 2.5rem;
  border-radius: 999px;
  font-size: 0.82rem;
}

.target-count {
  font-size: 0.8rem;
  white-space: nowrap;
}

.target-table-core {
  padding: 0.5rem 0.75rem;
  overflow-x: auto;
}

.target-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.83rem;
}

.target-table th {
  text-align: left;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.6rem 0.65rem 0.65rem;
  border-bottom: 1px solid var(--hairline-strong);
  white-space: nowrap;
}

.target-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
}

.target-table tbody tr {
  transition: background 0.3s var(--ease);
}

.target-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.target-table tbody tr:last-child td {
  border-bottom: none;
}

/* Column sizing — keeps headers and values aligned across rows.
   Percentages must sum to <=100% or the table overflows and hides actions. */
.target-table .col-target { width: 25%; min-width: 220px; }
.target-table .col-owner { width: 6%; min-width: 80px; }
.target-table .col-type { width: 5%; min-width: 70px; }
.target-table .col-rank { width: 6%; min-width: 90px; }
.target-table .col-status { width: 10%; min-width: 100px; }
.target-table .col-detail { width: 19%; min-width: 150px; }
.target-table .col-time { width: 11%; min-width: 130px; }
.target-table .col-countdown { width: 7%; min-width: 80px; }
.target-table .col-actions { width: 15%; min-width: 240px; }

.row-target {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.row-target .target-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.3;
}

/* Single line + ellipsis: break-all keeps the column from expanding to the
   full URL width in auto table layout, line-clamp truncates the overflow. */
.row-target .target-url {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.45;
  word-break: break-all;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.row-detail {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
  word-break: break-all;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.target-time {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  line-height: 1.4;
}

.countdown {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
}

.countdown.due {
  color: var(--accent);
  font-weight: 600;
  animation: pulse-text 1.4s var(--ease) infinite;
}

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

.target-table .target-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  border: none;
  white-space: nowrap;
}

.target-table .target-actions form {
  display: inline-flex;
  margin: 0;
}

.target-table tbody tr.is-hidden {
  display: none;
}

.pill {
  display: inline-flex;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hairline);
  color: var(--muted);
  white-space: nowrap;
}

.rank-badge {
  display: inline-flex;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
}
.rank-badge.rank-top {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.4);
  color: var(--warn);
}
.rank-badge.rank-ranked {
  background: rgba(129, 140, 248, 0.14);
  border-color: rgba(129, 140, 248, 0.4);
  color: var(--accent-2);
}
.rank-badge.rank-unranked {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--hairline);
  color: var(--muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hairline);
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: var(--muted);
  flex-shrink: 0;
}

.status.ok { color: var(--ok); border-color: rgba(52, 211, 153, 0.25); background: rgba(52, 211, 153, 0.06); }
.status.ok::before { background: var(--ok); box-shadow: 0 0 6px rgba(52, 211, 153, 0.6); }

.status.warn { color: var(--warn); border-color: rgba(251, 191, 36, 0.25); background: rgba(251, 191, 36, 0.06); }
.status.warn::before { background: var(--warn); box-shadow: 0 0 6px rgba(251, 191, 36, 0.6); animation: pulse-dot 1.6s var(--ease) infinite; }

.status.bad { color: var(--bad); border-color: rgba(251, 113, 133, 0.25); background: rgba(251, 113, 133, 0.06); }
.status.bad::before { background: var(--bad); box-shadow: 0 0 6px rgba(251, 113, 133, 0.6); animation: pulse-dot 1.6s var(--ease) infinite; }

@media (max-width: 1024px) {
  .target-table-core { padding: 0.75rem; }

  .target-table thead { display: none; }

  .target-table, .target-table tbody, .target-table tr, .target-table td {
    display: block;
    width: 100%;
  }

  .target-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 1rem;
    padding: 1rem 0.85rem;
    border-bottom: 1px solid var(--hairline);
  }

  .target-table td {
    border-bottom: none;
    padding: 0;
  }

  /* Full-width rows for long content; short label/value pairs share a line */
  .target-table td.col-target,
  .target-table td.col-detail,
  .target-table td.col-actions {
    grid-column: 1 / -1;
  }

  /* Card layout has room to wrap — show the full URL again */
  .row-target .target-url,
  .row-detail {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  .target-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.2rem;
    font-family: var(--font);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
  }


  .target-table .col-target,
  .target-table .col-type,
  .target-table .col-status,
  .target-table .col-detail,
  .target-table .col-time,
  .target-table .col-countdown,
  .target-table .col-actions {
    width: auto;
    min-width: 0;
  }

  .target-table .target-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 0.15rem;
    gap: 0.5rem;
  }
}

/* ── Empty state ── */
.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
}

.empty .bezel-core {
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  filter: blur(8px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.auth-wrap .reveal,
.page-head.reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

.mono { font-family: var(--font-mono); }

/* ── Accessibility ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(94, 234, 212, 0.55);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .chip-btn { padding: 0.6rem 1.1rem; }
  .toolbar-meta { width: 100%; justify-content: space-between; }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
