:root {
  color-scheme: light;
  --ink: #18212f;
  --muted: #667085;
  --line: #d6dde8;
  --panel: #ffffff;
  --page: #eef3f7;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --accent-soft: #dff5f0;
  --gold: #b7791f;
  --blue: #2563eb;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(24, 33, 47, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 296px 1fr;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.09), transparent 32rem),
    linear-gradient(315deg, rgba(37, 99, 235, 0.08), transparent 34rem),
    var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

button,
input,
a {
  font: inherit;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: var(--shadow);
  z-index: 1;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ink), var(--accent));
  color: white;
  font-weight: 700;
}

.brand strong,
.brand span {
  display: block;
}

.section-label {
  display: grid;
  gap: 2px;
  padding-top: 4px;
}

.section-label strong {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-label span,
.tab-help,
.panel-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.brand span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
  line-height: 1.35;
}

.product-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
  background: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.product-link:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.field > span {
  color: var(--ink);
  font-weight: 700;
}

.field small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.field small strong {
  color: var(--accent-dark);
}

input[type="search"],
input[type="url"],
input[type="text"],
input[type="email"],
input[type="number"],
input[type="file"],
textarea,
select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fbfcfe;
  outline: none;
}

input[type="search"]:focus,
input[type="url"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="file"]:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.13);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

.upload-panel {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.import-panel {
  display: grid;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.privacy-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfe;
}

.privacy-panel p,
.privacy-panel a {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.privacy-panel a {
  color: var(--accent-dark);
  font-weight: 700;
}

.privacy-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.mini-button.neutral {
  color: var(--ink);
  border-color: var(--line);
  background: #ffffff;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.panel-head strong {
  font-size: 14px;
}

.panel-head span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.workflow-status {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.file-summary {
  overflow-wrap: anywhere;
  border-radius: 6px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.35;
}

.file-summary.success {
  border-color: rgba(15, 118, 110, 0.24);
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.file-summary.loading {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
}

.file-summary.error {
  border-color: #f3c7c0;
  color: var(--danger);
  background: #fff7f5;
}

.cv-profile-list {
  display: grid;
  gap: 7px;
}

.cv-profile-row {
  display: grid;
  grid-template-columns: 5px 1fr;
  gap: 8px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px;
  background: #fbfcfe;
}

.cv-profile-row strong {
  display: block;
}

.cv-profile-row strong {
  color: var(--ink);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.cv-profile-main {
  display: grid;
  gap: 6px;
}

.cv-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-button {
  min-height: 28px;
  border: 1px solid color-mix(in srgb, var(--cv-color) 24%, white);
  border-radius: 6px;
  padding: 4px 8px;
  color: color-mix(in srgb, var(--cv-color) 78%, black);
  background: #ffffff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.mini-button:hover {
  background: color-mix(in srgb, var(--cv-color) 8%, white);
}

.mini-button.danger {
  color: #7f1d1d;
  border-color: #fecaca;
  background: #fffafa;
}

.cv-query-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.cv-query-list span {
  border: 1px solid color-mix(in srgb, var(--cv-color) 28%, white);
  border-radius: 999px;
  padding: 3px 6px;
  color: color-mix(in srgb, var(--cv-color) 82%, black);
  background: color-mix(in srgb, var(--cv-color) 10%, white);
  font-size: 10px;
  line-height: 1.2;
}

.cv-search-tab {
  margin-top: 7px;
  border: 1px solid color-mix(in srgb, var(--cv-color) 28%, white);
  border-radius: 6px;
  background: color-mix(in srgb, var(--cv-color) 7%, white);
}

.cv-search-tab-title {
  display: block;
  padding: 7px 9px;
  color: color-mix(in srgb, var(--cv-color) 82%, black);
  background: color-mix(in srgb, var(--cv-color) 11%, white);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  list-style-position: inside;
}

.cv-search-tab[open] .cv-search-tab-title {
  border-bottom: 1px solid color-mix(in srgb, var(--cv-color) 28%, white);
}

.cv-stripe,
.job-cv-stripe {
  border-radius: 999px;
  background: var(--cv-color, var(--accent));
}

.cv-teal {
  --cv-color: #0f766e;
}

.cv-blue {
  --cv-color: #2563eb;
}

.cv-gold {
  --cv-color: #b7791f;
}

.cv-rose {
  --cv-color: #be123c;
}

.status-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(251, 252, 254, 0.86);
}

.source-summary {
  display: grid;
  gap: 8px;
}

.source-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: baseline;
  color: var(--muted);
  font-size: 13px;
}

.source-row strong {
  color: var(--ink);
}

.source-row em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.scan-log {
  overflow: auto;
  max-height: 138px;
  margin: 0;
  border-radius: 6px;
  padding: 10px;
  color: var(--danger);
  background: #fff7f5;
  border: 1px solid #f3c7c0;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.tab-help {
  margin-top: -14px;
}

.tab {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}

.tab.active {
  color: #ffffff;
  background: var(--ink);
}

.main {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 86px;
  padding: 18px 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.top-actions {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex: 0 0 auto;
}

.hero-action {
  min-width: 154px;
  min-height: 58px;
  padding: 14px 22px;
  font-size: 17px;
  font-weight: 800;
}

#scan {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
}

#scan.is-scanning {
  opacity: 1;
  color: #ffffff;
  background: var(--accent-dark);
  cursor: progress;
}

#scan.is-scanning::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: scan-button-spin 800ms linear infinite;
}

#scan.is-scanning::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.18) 48%, transparent 76%);
  transform: translateX(-110%);
  animation: scan-button-sweep 1.8s ease-in-out infinite;
}

@keyframes scan-button-spin {
  to { transform: rotate(360deg); }
}

@keyframes scan-button-sweep {
  55%, 100% { transform: translateX(110%); }
}

@media (prefers-reduced-motion: reduce) {
  #scan.is-scanning::before,
  #scan.is-scanning::after {
    animation: none;
  }
}

.beam-action {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  min-width: 220px;
  max-width: 100%;
}

.beam-action select {
  min-height: 34px;
  padding: 5px 8px;
  font-size: 12px;
  background: #ffffff;
}

.target-compact {
  display: grid;
  gap: 3px;
  font-size: 12px;
  color: var(--muted);
}

.target-compact strong {
  color: var(--ink);
}

.target-compact input {
  width: 100%;
  accent-color: var(--teal);
}

.top-status {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 30px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.top-status strong {
  color: var(--ink);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.15;
}

.topbar p {
  margin-top: 7px;
  color: var(--muted);
}

.topbar .source-mode {
  color: var(--teal-dark);
  font-size: 12px;
}

.dashboard-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 8px 18px;
  align-items: end;
  padding: 10px 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  min-width: 0;
}

.filter-title {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  min-width: 0;
}

.filter-title strong {
  font-size: 14px;
}

.filter-title span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1fr) minmax(180px, 0.8fr);
  gap: 12px;
  align-items: start;
}

.dashboard-filters .tabs {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.dashboard-filters .tab-help {
  grid-column: 1 / -1;
  margin-top: -6px;
}

.dashboard-filters .field {
  gap: 5px;
}

.dashboard-filters .field small {
  display: none;
}

.content {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(360px, 44%) 1fr;
  align-items: stretch;
  min-height: calc(100vh - 236px);
}

.list-panel {
  border-right: 1px solid var(--line);
  min-width: 0;
}

.list-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.96);
}

.list-head h2 {
  font-size: 17px;
  line-height: 1.2;
}

.list-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.list-head span {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--muted);
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.job-list {
  padding: 14px 18px 18px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.job-card {
  position: relative;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 14px 14px 22px;
  background: var(--panel);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.job-cv-stripe {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 10px;
  width: 4px;
}

.job-card:hover {
  transform: translateY(-1px);
  border-color: #b7c4d4;
  box-shadow: 0 12px 28px rgba(24, 33, 47, 0.08);
}

.job-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.14), 0 18px 40px rgba(15, 118, 110, 0.11);
}

.job-card.opened {
  background: #f8fafc;
}

.job-card.not-interested {
  background: #fffafa;
  border-color: #fecaca;
}

.job-card h3 {
  font-size: 16px;
  line-height: 1.3;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.opened-label {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
}

.applied-label {
  color: #1d4ed8;
  background: #dbeafe;
}

.not-interested-label {
  color: #7f1d1d;
  background: #fee2e2;
}

.meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pill {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 4px 8px;
  color: var(--muted);
  font-size: 12px;
  background: #fbfcfe;
}

.score {
  color: #ffffff;
  border-color: var(--accent);
  background: var(--accent);
}

.detail {
  min-width: 0;
  padding: 24px 32px;
  background: rgba(255, 255, 255, 0.94);
}

.detail.empty {
  display: grid;
  place-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.detail h2 {
  font-size: 24px;
  line-height: 1.2;
  max-width: 860px;
}

.detail-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
}

.fact {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
}

.fact span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.fact strong {
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.primary,
.secondary {
  border: 1px solid transparent;
  border-radius: 6px;
  min-height: 40px;
  padding: 9px 13px;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.primary:disabled,
.secondary:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.primary {
  color: #ffffff;
  background: var(--accent);
}

.primary:hover {
  background: var(--accent-dark);
}

.primary:focus-visible,
.secondary:focus-visible,
.job-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 2px;
}

.secondary {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.secondary.danger {
  color: var(--danger);
  border-color: #f3c7c0;
  background: #fff7f5;
}

.secondary.quiet-danger {
  color: #7f1d1d;
  border-color: #fecaca;
  background: #fffafa;
}

.secondary.success {
  color: var(--accent-dark);
  border-color: rgba(15, 118, 110, 0.26);
  background: #f0fdfa;
}

.section {
  margin-top: 28px;
}

.section h3 {
  font-size: 15px;
  margin-bottom: 10px;
}

.reason-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.description {
  max-width: 900px;
  color: #344054;
  line-height: 1.55;
  white-space: pre-wrap;
}

.attribution {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.8rem;
}

.action-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 24px;
  color: var(--muted);
  background: #ffffff;
  display: grid;
  gap: 6px;
}

.empty-state strong {
  color: var(--ink);
}

.empty-state span {
  color: var(--muted);
}

@media (max-width: 900px) {
  body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: none;
  }

  .content {
    flex: none;
    height: auto;
    grid-template-columns: 1fr;
  }

  .main {
    height: auto;
  }

  .dashboard-filters {
    padding: 14px 18px;
    grid-template-columns: minmax(0, 1fr);
  }

  .filter-title {
    display: grid;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .job-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .list-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .sidebar,
  .topbar,
  .detail,
  .dashboard-filters {
    padding: 18px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions,
  .beam-action {
    width: 100%;
  }

  .top-actions {
    flex-direction: column;
  }

  .hero-action,
  .beam-action {
    min-width: 0;
  }

  .target-compact input {
    min-width: 0;
    width: 100%;
  }

  .content {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.sidebar-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.match-breakdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.match-breakdown span {
  display: grid;
  gap: 3px;
  border-left: 3px solid var(--accent);
  padding: 7px 9px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 12px;
}

.match-breakdown strong {
  color: var(--ink);
}

.match-feedback {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.link-button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.dashboard-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(840px, calc(100vh - 32px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.dashboard-dialog::backdrop {
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(3px);
}

.dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.dialog-head h2,
.onboarding-dialog h2 {
  margin-top: 4px;
  font-size: 24px;
}

.dialog-kicker {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dialog-intro {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.icon-close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #ffffff;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.settings-wide {
  grid-column: 1 / -1;
}

.check-field {
  min-height: 42px;
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.check-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.onboarding-steps {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: onboarding;
}

.onboarding-steps li {
  counter-increment: onboarding;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 2px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.onboarding-steps li::before {
  content: counter(onboarding);
  grid-row: 1 / 3;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--accent);
  font-weight: 800;
}

.onboarding-steps span,
.admin-panel p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.scan-history {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.scan-run {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.scan-run p,
.scan-run time {
  color: var(--muted);
  font-size: 12px;
}

.scan-progress {
  grid-column: 1 / -1;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.scan-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.admin-panel {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.invite-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 10px;
}

.invite-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.invite-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px;
}

.invite-row span,
.invite-row small {
  display: block;
}

.invite-row small {
  margin-top: 3px;
  color: var(--muted);
}

@media (max-width: 560px) {
  .dashboard-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    padding: 18px;
  }

  .settings-grid,
  .invite-controls {
    grid-template-columns: 1fr;
  }

  .settings-wide {
    grid-column: auto;
  }

  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .match-breakdown {
    grid-template-columns: 1fr 1fr;
  }
}
