:root {
  color-scheme: dark;
  --background: #020617;
  --surface: #0f172a;
  --surface-strong: #172033;
  --border: #334155;
  --text: #f8fafc;
  --muted: #a9b7ca;
  --accent: #22c55e;
  --accent-hover: #2ed36a;
  --accent-text: #04120a;
  --danger: #fb7185;
  --danger-surface: #2b1019;
  --focus: #7dd3fc;
  --working: #60a5fa;
  --buyout: #c084fc;
  --approved: #4ade80;
  --afk: #cbd5e1;
  --rejected: #fb7185;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 5%, rgb(34 197 94 / 10%), transparent 32rem),
    var(--background);
  font: 16px/1.55 "Segoe UI", Arial, sans-serif;
}

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

button,
a {
  touch-action: manipulation;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

.auth-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(460px, 100%);
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgb(15 23 42 / 97%);
  box-shadow: 0 24px 80px rgb(0 0 0 / 38%);
}

.auth-card h1 {
  font-size: clamp(30px, 8vw, 44px);
}

.auth-card .field {
  margin-top: 18px;
}

.auth-card .button {
  width: 100%;
  margin-top: 22px;
}

.site-account-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 12px 14px;
  border: 1px solid #2f495d;
  border-radius: 14px;
  color: var(--muted);
  background: rgb(15 23 42 / 86%);
}

.site-account-bar strong {
  color: var(--text);
}

.site-account-actions {
  display: flex;
  gap: 8px;
}

.site-account-actions .compact-button {
  margin: 0;
}

.account-manager {
  margin: 0 0 28px;
  border-color: #3b6b50;
}

.site-account-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.site-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #2c3a50;
  border-radius: 12px;
  background: #0d1728;
}

.site-account-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.site-account-row .button {
  flex: 0 0 auto;
}

.new-account-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: end;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.new-account-form .button {
  white-space: nowrap;
}

.hero {
  max-width: 720px;
  margin-bottom: 32px;
}

.eyebrow,
.step {
  display: inline-block;
  margin-bottom: 8px;
  color: #86efac;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.step.success {
  color: #86efac;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 6px;
  font-size: 21px;
  line-height: 1.25;
}

.hero p {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
}

.card {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgb(15 23 42 / 94%);
  box-shadow: 0 18px 60px rgb(0 0 0 / 22%);
}

.account-card,
.section-heading,
.results-heading,
.progress-heading,
.action-row,
.result-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.muted {
  margin-bottom: 0;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(310px, 0.85fr);
  align-items: start;
  gap: 16px;
}

.workspace-main {
  min-width: 0;
}

.workspace-side {
  position: sticky;
  top: 10px;
  min-width: 0;
  max-width: 100%;
  max-height: calc(100vh - 20px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}

.manual-field {
  margin-top: 20px;
}

.manual-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 10px;
  margin-top: 12px;
}

.manual-actions .button {
  width: 100%;
}

.button.x5-button {
  border-color: #58a636;
  color: #f3ffe9;
  background: #315f20;
}

.button.x5-button:hover {
  border-color: #7ed957;
  background: #3c7527;
}

.manual-result {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #172033;
}

.manual-result p {
  margin: 5px 0 0;
  color: var(--muted);
}

.manual-result.safe {
  border-color: #22c55e;
  background: #102d22;
}

.manual-result.blocked {
  border-color: #fb7185;
  background: #35141f;
}

.manual-result.not-received {
  border-color: var(--danger);
  background: var(--danger-surface);
}

.manual-result.not-received p {
  color: #fecdd3;
}

.manual-result.error {
  border-color: #f59e0b;
  background: #352410;
}

.side-card {
  min-width: 0;
  max-width: 100%;
  padding: 18px;
}

.compact-button {
  min-height: 40px;
  margin: 8px 0 12px;
  padding: 0 12px;
  font-size: 13px;
}

.compact-button.active {
  border-color: #22c55e;
  color: #dcfce7;
  background: #123322;
}

.qr-content {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 18px;
}

.qr-content img {
  width: min(280px, 100%);
  padding: 14px;
  border-radius: 16px;
  background: #fff;
}

.list-tabs {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0b1424;
}

.list-tab {
  min-height: 44px;
  flex: 1;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 750;
}

.list-tab span {
  display: inline-block;
  min-width: 25px;
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #263247;
  font-size: 13px;
}

.list-tab.active {
  border-color: #526078;
  color: var(--text);
  background: #202c42;
}

.list-tab:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.full-width,
.filter-field {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 650;
}

.field small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

select,
input[type="text"],
input[type="number"],
input[type="password"],
input[type="tel"] {
  width: 100%;
  min-height: 50px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface-strong);
}

select:hover,
input[type="text"]:hover,
input[type="number"]:hover,
input[type="password"]:hover,
input[type="tel"]:hover {
  border-color: #64748b;
}

select {
  cursor: pointer;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="tel"] {
  cursor: text;
}

.filter-field {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.filter-field legend {
  padding: 0 8px;
  font-weight: 700;
}

.company-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice-card,
.match-options label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  cursor: pointer;
}

.choice-card {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-strong);
}

.choice-card:has(input:checked) {
  border-color: var(--accent);
  background: #123322;
}

.choice-card input,
.match-options input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--accent);
  cursor: pointer;
}

.choice-card strong,
.choice-card small {
  display: block;
}

.choice-card small,
.filter-help {
  color: var(--muted);
}

.match-options {
  display: grid;
  gap: 2px;
  margin-top: 12px;
}

.match-options label {
  min-height: 44px;
}

.filter-help {
  display: block;
  margin-top: 8px;
}

.days-control {
  position: relative;
  max-width: 180px;
}

.days-control input {
  padding-right: 54px;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.days-suffix {
  position: absolute;
  top: 50%;
  right: 16px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.quick-days {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.quick-days button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.quick-days button:hover,
.quick-days button.active {
  border-color: #4ade80;
  color: #dcfce7;
  background: #123322;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

.button.primary {
  color: var(--accent-text);
  background: var(--accent);
}

.button.primary:hover {
  background: var(--accent-hover);
}

.button.secondary {
  border-color: #526078;
  color: var(--text);
  background: #202c42;
}

.button.secondary:hover,
.button.ghost:hover {
  border-color: #718096;
  background: #293750;
}

.button.rescan-button {
  border-color: #a16207;
  color: #fef3c7;
  background: #422006;
}

.button.rescan-button:hover {
  border-color: #f59e0b;
  background: #5a2d08;
}

.button.ghost {
  border-color: var(--border);
  color: var(--muted);
  background: transparent;
}

.button.danger {
  border-color: #7f1d31;
  color: #ffe4e6;
  background: #4c1d2b;
}

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

.button:focus-visible,
select:focus-visible,
input:focus-visible,
.quick-days button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.action-row {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 24px;
}

.action-help {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.progress-track {
  height: 10px;
  margin: 18px 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #263247;
}

.progress-bar {
  width: 16%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 240ms ease;
}

.progress-bar.indeterminate {
  width: 34%;
  animation: progress-slide 1.1s ease-in-out infinite alternate;
}

.count-pill {
  min-width: 54px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #bbf7d0;
  background: var(--surface-strong);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.error-card {
  border-color: #7f1d31;
  background: var(--danger-surface);
}

.inline-error {
  margin: 12px 0 0;
  color: #fecdd3;
}

.error-card h2 {
  color: #fecdd3;
}

.results-heading {
  align-items: flex-start;
}

.result-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.result-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.result-section-heading {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid #334155;
  border-radius: 12px;
  color: var(--muted);
  background: #0d1728;
}

.result-section-heading:first-child {
  margin-top: 0;
}

.own-results-heading {
  border-color: #166534;
  color: #dcfce7;
  background: #123322;
}

.own-results-heading span {
  min-width: 32px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #dcfce7;
  background: #166534;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.free-results-heading {
  border-color: #15803d;
  color: #dcfce7;
  background: linear-gradient(135deg, #0f2f22, #123322);
}

.free-results-heading span {
  min-width: 124px;
  padding: 5px 10px;
  border: 1px solid #22c55e;
  border-radius: 999px;
  color: #f0fdf4;
  background: #166534;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.status-help {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.result-group {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #111c30;
}

.result-group.new-arrival {
  border-color: #f59e0b;
}

.result-group.revived-arrival {
  border-color: #22c55e;
  box-shadow: inset 3px 0 0 #22c55e;
}

.new-arrival-badge {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #a16207;
  border-radius: 999px;
  color: #fef3c7;
  background: #422006;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.revived-arrival-badge {
  border-color: #15803d;
  color: #dcfce7;
  background: #14532d;
}

.new-arrival-badge svg {
  width: 18px;
  height: 18px;
  fill: #fbbf24;
}

.new-arrival-badge.revived-arrival-badge svg {
  fill: #4ade80;
}

.new-arrival-badge:hover {
  border-color: #fbbf24;
  background: #5b2d08;
}

.new-arrival-badge:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.result-group.result-alert {
  border-color: #fb7185;
  background:
    linear-gradient(90deg, rgb(127 29 49 / 28%), transparent 45%),
    #111c30;
  box-shadow: inset 4px 0 #fb7185;
}

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

.result-heading-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.remove-result {
  min-width: 72px;
  min-height: 48px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid #6b3141;
  border-radius: 10px;
  color: #fecdd3;
  background: #35141f;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.remove-result small {
  font-size: 11px;
  font-weight: 750;
  line-height: 1.1;
  text-transform: uppercase;
}

.remove-result:hover {
  border-color: #fb7185;
  background: #4c1d2b;
}

.remove-result:focus-visible,
.restore-result:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.sim-count {
  padding: 4px 9px;
  border-radius: 999px;
  color: #dbeafe;
  background: #1e3a5f;
  font-size: 13px;
  font-weight: 700;
}

.result-phone-list {
  display: grid;
  gap: 8px;
}

.phone-result,
.excluded-row {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #2c3a50;
  border-radius: 10px;
  background: #0d1728;
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.phone-result {
  grid-template-columns: minmax(150px, 1fr) auto;
  box-shadow: inset 4px 0 0 var(--owner-color, transparent);
}

.phone-result.has-alert {
  border-color: #fb7185;
  background: #35141f;
}

.phone-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.owner-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #dbeafe;
  background: #1e3a5f;
  font-size: 12px;
  font-weight: 700;
}

.owner-color-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--owner-color);
  box-shadow: 0 0 0 2px rgb(255 255 255 / 14%);
}

.owner-label.muted-owner {
  color: var(--muted);
  background: #263247;
}

.status-note {
  padding: 4px 8px;
  border: 1px solid #7e22ce;
  border-radius: 999px;
  color: #f3e8ff;
  background: #3b1761;
  font-size: 12px;
  font-weight: 750;
}

.alert-slot {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.excluded-row {
  grid-template-columns: minmax(170px, 0.8fr) 1.2fr auto;
}

.phone-result.marked-working {
  border-color: #3b82f6;
  background: #102541;
}

.phone-result.marked-buyout {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: transparent;
  background:
    linear-gradient(115deg, #211033 0%, #351358 45%, #24123b 100%) padding-box,
    linear-gradient(120deg, #7c3aed, #e879f9, #fde68a, #c084fc, #7c3aed) border-box;
  background-size: 100% 100%, 300% 300%;
  box-shadow:
    inset 4px 0 0 var(--owner-color, #c084fc),
    0 0 14px rgb(168 85 247 / 30%);
}

.phone-result.marked-buyout::before,
.phone-result.marked-buyout::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.phone-result.marked-buyout::before {
  inset: 0;
  background:
    radial-gradient(circle at 8% 22%, rgb(255 255 255 / 92%) 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 28% 78%, rgb(253 230 138 / 88%) 0 1.4px, transparent 2.5px),
    radial-gradient(circle at 62% 18%, rgb(240 171 252 / 92%) 0 1.3px, transparent 2.4px),
    radial-gradient(circle at 88% 70%, rgb(255 255 255 / 85%) 0 1.1px, transparent 2.2px);
  opacity: 0.42;
}

.phone-result.marked-buyout::after {
  display: none;
}

.phone-result.marked-buyout > * {
  position: relative;
  z-index: 1;
}

.phone-result.marked-buyout .status-note {
  border-color: #e879f9;
  background: linear-gradient(120deg, #581c87, #7e22ce 58%, #9d174d);
  box-shadow: 0 0 10px rgb(232 121 249 / 32%);
}

.phone-result.marked-buyout .phone {
  border: 1px solid rgb(253 230 138 / 48%);
  color: #fff7ed;
  background: linear-gradient(110deg, #4c1d95, #a21caf, #b45309, #7e22ce, #4c1d95);
  background-size: 260% 100%;
  box-shadow:
    inset 0 0 12px rgb(255 255 255 / 10%),
    0 0 14px rgb(232 121 249 / 35%);
  text-shadow: 0 0 9px rgb(255 255 255 / 52%);
}

.phone-result.marked-buyout .status-buyout.active {
  border-color: #f0abfc;
  color: #fff7ed;
  background: linear-gradient(120deg, #6b21a8, #a21caf 56%, #92400e);
  box-shadow:
    0 0 13px rgb(232 121 249 / 42%),
    inset 0 0 12px rgb(255 255 255 / 8%);
}

.phone-result.marked-afk {
  border-color: #64748b;
  background: #1c2637;
}

.phone-result.marked-approved {
  border-color: #22c55e;
  background: #102d22;
}

.phone-result.marked-rejected {
  border-color: #fb7185;
  background: #35141f;
}

.result-id {
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  overflow-wrap: anywhere;
}

.phones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.matched-companies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.company-badge {
  padding: 3px 7px;
  border-radius: 999px;
  color: #fee2e2;
  background: #4c1d2b;
  font-size: 12px;
  font-weight: 700;
}

.manual-badge {
  color: #fef3c7;
  background: #4a3212;
}

.restore-result {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #526078;
  border-radius: 10px;
  color: var(--text);
  background: #202c42;
  cursor: pointer;
}

.restore-result:hover {
  border-color: #718096;
  background: #293750;
}

.phone {
  padding: 5px 9px;
  border-radius: 8px;
  color: #d1fae5;
  background: #123322;
  font-family: Consolas, "Courier New", monospace;
  font-variant-numeric: tabular-nums;
}

.status-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.status-button {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  background: #172033;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.device-check-button {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid #38bdf8;
  border-radius: 10px;
  color: #e0f2fe;
  background: #0c4a6e;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.device-check-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.device-check-button.checking {
  font-size: 18px;
  font-weight: 800;
}

.device-check-button:hover {
  border-color: #7dd3fc;
  background: #075985;
}

.device-check-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.status-button:hover {
  border-color: #64748b;
  color: var(--text);
}

.status-button.active::before {
  content: "✓";
  margin-right: 6px;
  font-weight: 800;
}

.status-working.active {
  border-color: var(--working);
  color: #dbeafe;
  background: #1e3a5f;
}

.status-buyout.active {
  border-color: var(--buyout);
  color: #f3e8ff;
  background: #581c87;
}

.status-afk.active {
  border-color: var(--afk);
  color: #f8fafc;
  background: #334155;
}

.status-approved.active {
  border-color: var(--approved);
  color: #dcfce7;
  background: #14532d;
}

.status-rejected.active {
  border-color: var(--rejected);
  color: #ffe4e6;
  background: #4c1d2b;
}

.status-button:focus-visible,
.device-check-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.empty {
  margin-top: 20px;
  padding: 28px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.excluded {
  margin-top: 20px;
  color: var(--muted);
}

.excluded summary {
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
}

.excluded-row {
  margin-top: 8px;
  opacity: 0.8;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  max-width: min(420px, calc(100% - 32px));
  padding: 14px 18px;
  border: 1px solid #3f6b4e;
  border-radius: 12px;
  color: #dcfce7;
  background: #123322;
  box-shadow: 0 12px 44px rgb(0 0 0 / 35%);
}

.buyout-dialog {
  width: min(480px, calc(100% - 28px));
  padding: 0;
  border: 1px solid #7e22ce;
  border-radius: 18px;
  color: var(--text);
  background: #11172a;
  box-shadow: 0 26px 90px rgb(0 0 0 / 55%);
}

.buyout-dialog::backdrop {
  background: rgb(2 6 23 / 76%);
  backdrop-filter: blur(4px);
}

.buyout-dialog form {
  padding: 24px;
}

.buyout-dialog .field {
  margin-top: 20px;
}

.dialog-warning {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid #7f1d1d;
  border-radius: 12px;
  color: #fecdd3;
  background: #2b1019;
}

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

.live-list,
.activity-list {
  display: grid;
  min-width: 0;
  max-width: 100%;
  gap: 8px;
  margin-top: 12px;
}

.live-message,
.activity-item {
  min-width: 0;
  max-width: 100%;
  padding: 10px;
  border: 1px solid #2c3a50;
  border-radius: 10px;
  background: #0d1728;
}

.live-message p {
  max-height: 150px;
  margin: 6px 0 0;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #dbeafe;
  font-size: 13px;
  white-space: pre-wrap;
}

.activity-item {
  display: grid;
  gap: 2px;
  font-size: 13px;
}

.activity-item span {
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.activity-item code {
  color: #86efac;
  overflow-wrap: anywhere;
}

.hidden {
  display: none !important;
}

@keyframes progress-slide {
  from {
    transform: translateX(-30%);
  }
  to {
    transform: translateX(225%);
  }
}

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

  .card {
    padding: 18px;
    border-radius: 15px;
  }

  .auth-card {
    padding: 24px 20px;
  }

  .site-account-bar,
  .site-account-row {
    align-items: stretch;
    flex-direction: column;
  }

  .site-account-actions {
    width: 100%;
  }

  .site-account-actions .button,
  .site-account-row .button {
    flex: 1;
  }

  .account-card,
  .section-heading,
  .results-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

  .full-width,
  .filter-field {
    grid-column: auto;
  }

  .company-options {
    grid-template-columns: 1fr;
  }

  .result-actions {
    justify-content: stretch;
  }

  .result-actions .button {
    flex: 1;
  }

  .phone-result,
  .excluded-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .status-controls {
    justify-content: stretch;
  }

  .status-button {
    flex: 1 1 112px;
  }
}

@media (max-width: 1050px) {
  .new-account-form {
    grid-template-columns: 1fr 1fr;
  }

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

  .workspace-side {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 560px) {
  .new-account-form {
    grid-template-columns: 1fr;
  }
}

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

  .phone-result.marked-buyout,
  .phone-result.marked-buyout .status-note,
  .phone-result.marked-buyout .phone,
  .phone-result.marked-buyout .status-buyout.active {
    animation: none !important;
  }

  .phone-result.marked-buyout::before {
    opacity: 0.45;
  }

  .phone-result.marked-buyout::after {
    display: none;
  }
}
