:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --panel-soft: #f8fbff;
  --line: #d7e2ec;
  --line-strong: #c5d2df;
  --text: #172033;
  --muted: #667085;
  --primary: #0f766e;
  --primary-strong: #115e59;
  --accent: #2563eb;
  --amber: #d97706;
  --danger: #be123c;
  --success: #15803d;
  --shadow: 0 18px 50px rgba(23, 32, 51, 0.12);
  --radius: 8px;
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 28%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 30%),
    linear-gradient(180deg, #f6f9fc 0%, var(--bg) 100%);
  color: var(--text);
}

body::before {
  content: '';
  position: fixed;
  inset: auto -120px -120px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.12), transparent 68%);
  pointer-events: none;
}

button,
input,
textarea {
  font: inherit;
}

button { cursor: pointer; }

a { color: var(--accent); }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
}

.sidebar {
  background: #111827;
  color: #f9fafb;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex: 0 0 auto;
  object-fit: cover;
}

.brand strong,
.brand span {
  display: block;
  line-height: 1.2;
}

.brand span,
.sidebar-footer {
  color: #aeb8c7;
  font-size: 12px;
}

.nav-tabs {
  display: grid;
  gap: 8px;
}

.nav-tab,
.btn,
.icon-btn {
  border: 0;
  border-radius: var(--radius);
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav-tab {
  width: 100%;
  justify-content: flex-start;
  padding: 10px 12px;
  color: #d7dee9;
  background: transparent;
}

.nav-tab:hover,
.nav-tab.active {
  background: #1f2937;
  color: #ffffff;
}

.nav-tab.active {
  box-shadow: inset 3px 0 0 var(--primary);
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.main-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.18) 100%);
}

.topbar {
  min-height: 76px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.topbar-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 4px;
}

.topbar h1,
.section-heading h2,
.modal-header h2 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0;
}

.topbar h1 { font-size: 22px; }
.topbar p,
.section-heading p,
.settings-block p { margin: 4px 0 0; color: var(--muted); }
.topbar p { font-size: 13px; }

.topbar-install {
  margin-left: auto;
}

.topbar-access-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar-access-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.16);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.topbar-access-pill.is-free {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.14);
}

.topbar-access-pill .material-symbols-rounded {
  font-size: 18px;
}

.mobile-menu { display: none; }

.sidebar-close,
.sidebar-backdrop {
  display: none;
}

.sidebar-close {
  margin-left: auto;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 25;
  border: 0;
  background: rgba(15, 23, 42, 0.42);
  padding: 0;
}

.icon-btn {
  width: 42px;
  padding: 0;
  background: var(--panel-soft);
  color: var(--text);
  border: 1px solid var(--line);
}

.icon-btn:hover { border-color: var(--line-strong); }

.view {
  display: none;
  padding: 24px;
  flex: 1;
}

.view.active { display: block; }

.content-band {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 250, 253, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.06);
}

.discover-band {
  display: grid;
  gap: 12px;
}

.discover-search-options {
  display: grid;
  gap: 8px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading h2 { font-size: 20px; }

.discover-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
}

.discover-form .btn {
  min-height: 46px;
}

.field-shell {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-shell-with-clear {
  gap: 10px;
}

.field-shell:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.field-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.field-shell select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  appearance: none;
}

.discover-priority-shell {
  max-width: 420px;
}

.discover-priority-note {
  margin: 0;
  color: #526071;
  font-size: 13px;
  line-height: 1.6;
}

.field-shell-clear {
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.field-shell-clear .material-symbols-rounded {
  font-size: 18px;
}

.btn {
  min-width: 42px;
  padding: 0 14px;
  color: var(--text);
  background: #eef2f7;
  border: 1px solid var(--line);
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.btn:hover { border-color: var(--line-strong); }

.btn-primary {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover { background: var(--primary-strong); }

.btn-outline { background: #ffffff; }

.btn-small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.btn-danger {
  color: #ffffff;
  background: var(--danger);
  border-color: var(--danger);
}

.btn-danger:hover {
  background: #9f1239;
  border-color: #9f1239;
}

.status-area { margin-top: 14px; }

.discover-credits-panel {
  margin-top: 14px;
}

.discover-credits-card,
.license-summary-card {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: linear-gradient(180deg, rgba(240, 253, 250, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.discover-credits-card.is-free,
.license-summary-card.is-free {
  border-color: rgba(37, 99, 235, 0.18);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.discover-credits-card.is-blocked {
  border-color: rgba(217, 119, 6, 0.24);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.discover-credits-head,
.license-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.discover-credits-head h3,
.license-summary-head strong {
  margin: 0;
  font-size: 17px;
}

.discover-credits-head p,
.license-summary-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.discover-credits-grid,
.license-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
}

.discover-credit-stat,
.license-summary-stat {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.discover-credit-stat span,
.license-summary-stat span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.discover-credit-stat strong,
.license-summary-stat strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.discover-credits-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.discover-credits-actions .btn {
  width: auto;
}

.discover-credits-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.discover-batch-shell {
  display: grid;
  gap: 14px;
}

.topbar.topbar-secondary-hidden {
  padding-block: 10px;
  min-height: 0;
}
.topbar.topbar-secondary-hidden .topbar-copy,
.topbar.topbar-secondary-hidden .topbar-install {
  display: none !important;
}
.discover-batch-panel {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.discover-batch-heading {
  align-items: flex-start;
}

.discover-batch-heading-tight {
  margin-bottom: 0;
}

.discover-batch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.discover-batch-actions .btn {
  width: auto;
}

.discover-batch-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.discover-batch-options-panel {
  display: grid;
  gap: 8px;
}

.discover-batch-limit-shell {
  max-width: 340px;
}

.discover-batch-limit-note {
  margin: 0;
  color: #526071;
  font-size: 13px;
  line-height: 1.6;
}

.discover-batch-label-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.discover-batch-label-panel strong,
.discover-batch-label-panel p {
  margin: 0;
}

.discover-batch-label-panel p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.discover-batch-label-summary,
.discover-batch-label-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.discover-batch-label-summary {
  min-height: 30px;
  align-items: center;
}

.discover-batch-field textarea {
  width: 100%;
  min-height: 144px;
  resize: vertical;
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: var(--panel-soft);
}

.discover-batch-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.discover-batch-results {
  display: grid;
  gap: 12px;
}

.discover-batch-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.discover-batch-summary-stat {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(238, 242, 247, 0.82);
}

.discover-batch-summary-stat span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.discover-batch-summary-stat strong {
  font-size: 16px;
}

.discover-batch-list {
  display: grid;
  gap: 10px;
}

.discover-batch-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.discover-batch-item.is-success {
  border-color: rgba(15, 118, 110, 0.2);
  background: rgba(240, 253, 250, 0.9);
}

.discover-batch-item.is-danger {
  border-color: rgba(190, 24, 93, 0.18);
  background: rgba(255, 241, 242, 0.88);
}

.discover-batch-item-main {
  display: grid;
  gap: 4px;
}

.discover-batch-item-pills {
  margin-top: 4px;
}

.discover-batch-item-main strong {
  font-size: 16px;
}

.discover-batch-item-main span,
.discover-batch-item-main p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.discover-batch-item-actions {
  display: grid;
  justify-items: end;
  align-content: space-between;
  gap: 10px;
}

#discover-batch-cancel {
  border-color: rgba(190, 24, 93, 0.2);
  color: #be123c;
  background: rgba(255, 241, 242, 0.92);
}

.discover-batch-progress-shell {
  display: grid;
  gap: 10px;
}

.discover-batch-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.discover-batch-progress-head strong,
.discover-batch-progress-head span,
.discover-batch-progress-shell p {
  margin: 0;
}

.discover-batch-progress-head span,
.discover-batch-progress-shell p {
  color: var(--muted);
  font-size: 13px;
}

.discover-batch-progressbar {
  height: 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
}

.discover-batch-progressbar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transition: width 180ms ease;
}

.searching {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.scan-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid #c7d2fe;
  border-top-color: var(--primary);
  border-right-color: var(--amber);
  animation: spin 0.85s linear infinite;
  flex: 0 0 auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

.notice {
  border-radius: var(--radius);
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--text);
}

.notice.warning {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.discover-captcha-shell {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(217, 119, 6, 0.24);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.discover-captcha-copy {
  display: grid;
  gap: 4px;
}

.discover-captcha-copy strong,
.discover-captcha-copy p {
  margin: 0;
}

.discover-captcha-copy p {
  color: #9a3412;
  font-size: 13px;
}

.discover-captcha-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.discover-captcha-challenge {
  min-width: 92px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(217, 119, 6, 0.45);
  background: rgba(255, 255, 255, 0.96);
  color: #7c2d12;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-align: center;
}

.discover-captcha-input-shell {
  min-width: 148px;
}

.discover-result-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.discover-result-actions-bar strong {
  display: block;
  margin-bottom: 4px;
}

.discover-result-actions-bar p {
  margin: 0;
  color: inherit;
}

.notice.success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.notice.danger {
  background: #fff1f2;
  border-color: #fecdd3;
  color: var(--danger);
}

.notice-actions {
  margin-top: 10px;
}

.result-area {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.result-card-list {
  display: grid;
  gap: 16px;
}

.result-card-intro {
  margin-bottom: 0;
}

.result-card,
.contact-detail,
.settings-block {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.result-card-header,
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.result-card-header h3,
.detail-header h2 {
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: 0;
}

.result-card-actions,
.result-card-labels {
  justify-content: flex-end;
}

.result-card-labels {
  margin-top: 10px;
}

.result-card-index {
  background: rgba(37, 99, 235, 0.08);
}

.pill-row,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  max-width: 100%;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.data-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
  border: 1px solid #d8e4ea;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.data-row-icon {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 20px;
  margin-top: 2px;
}

.data-row-email .data-row-icon { color: #2563eb; }
.data-row-phone .data-row-icon { color: #0f766e; }
.data-row-whatsapp .data-row-icon { color: #16a34a; }
.data-row-site .data-row-icon { color: #1d4ed8; }
.data-row-cnpj .data-row-icon { color: #0f766e; }
.data-row-cpf .data-row-icon { color: #7c3aed; }
.data-row-instagram .data-row-icon { color: #e11d48; }
.data-row-facebook .data-row-icon { color: #1877f2; }
.data-row-linkedin .data-row-icon { color: #0a66c2; }
.data-row-youtube .data-row-icon { color: #dc2626; }
.data-row-text .data-row-icon { color: #64748b; }

.data-row-body {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.data-row strong {
  font-size: 12px;
  color: #526071;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.value-stack {
  display: grid;
  gap: 8px;
}

.value-entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.value-entry-main {
  min-width: 0;
}

.value-link {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid #dbe4ec;
  background: #ffffff;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: break-word;
  word-break: normal;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.value-link-button {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.value-link:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.36);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.08);
}

.value-link-button:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.value-link-static {
  cursor: default;
  background: rgba(248, 250, 252, 0.9);
}

.value-copy-btn {
  align-self: stretch;
  width: 42px;
  min-height: 100%;
  border: 1px solid #dbe4ec;
  background: #ffffff;
  color: #526071;
}

.value-copy-btn:hover {
  border-color: rgba(15, 118, 110, 0.34);
  color: var(--primary);
  background: #f8fffd;
}

.value-main,
.value-meta {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.search-highlight {
  background: rgba(251, 191, 36, 0.34);
  color: inherit;
  padding: 0 2px;
  border-radius: 4px;
}

.value-main {
  display: block;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

.value-main-icon {
  font-size: 18px;
  color: var(--primary);
  vertical-align: text-bottom;
  margin-right: 8px;
}

.value-meta {
  font-size: 12px;
  color: var(--muted);
}

.phone-link {
  border-color: rgba(15, 118, 110, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f1fbfa 100%);
}

.phone-link .value-main,
.whatsapp-link .value-main {
  font-variant-numeric: tabular-nums;
}

.whatsapp-link {
  border-color: rgba(21, 128, 61, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f2fbf5 100%);
}

.contacts-toolbar { margin-bottom: 16px; }

.contact-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  gap: 12px;
}

.contact-search-shell {
  min-width: 0;
}

.contact-search-select-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.contact-search-select-shell select {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--text);
  outline: none;
  appearance: none;
}

.contact-active-filters {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(217, 119, 6, 0.22);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.96) 0%, rgba(255, 247, 237, 0.98) 100%);
}

.contact-active-filters div {
  display: grid;
  gap: 4px;
}

.contact-active-filters strong {
  color: #92400e;
}

.contact-active-filters span {
  color: #9a3412;
  overflow-wrap: anywhere;
}

#view-contacts.mobile-detail-mode .contacts-toolbar {
  display: none;
}

.contacts-action-row {
  margin-top: 12px;
}

.contact-selection-toolbar {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(240, 253, 250, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.contact-selection-toolbar strong {
  color: var(--primaryStrong);
}

.contact-search-suggestions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-suggestion-chip {
  --suggestion-color: var(--primary);
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--suggestion-color) 32%, white);
  background: color-mix(in srgb, var(--suggestion-color) 12%, white);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.search-suggestion-chip .material-symbols-rounded {
  font-size: 18px;
  color: var(--suggestion-color);
}

.search-suggestion-create {
  --suggestion-color: var(--accent);
}

.contacts-layout {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.contact-list-pane,
.contact-detail-pane {
  min-height: 480px;
}

.contact-list {
  display: grid;
  gap: 8px;
}

.contact-list-selecting .contact-item {
  cursor: pointer;
}

.contact-item {
  width: 100%;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 253, 0.94) 100%);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  text-align: left;
}

.contact-item.select-mode {
  grid-template-columns: 28px 42px minmax(0, 1fr);
}

.contact-item.selected {
  border-color: color-mix(in srgb, var(--primary) 55%, white);
  box-shadow: 0 10px 26px rgba(15, 118, 110, 0.14);
}

.contact-item:hover,
.contact-item.active {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.12);
}

.contact-select-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-top: 6px;
}

.contact-item.selected .contact-select-check {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, white);
}

.contact-select-check .material-symbols-rounded {
  font-size: 18px;
}

.detail-header-main {
  display: grid;
  gap: 8px;
}

.detail-summary {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.detail-search-shell {
  margin-bottom: 14px;
}

.contact-detail-back {
  display: none;
  margin-bottom: 12px;
  align-self: flex-start;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(15, 118, 110, 0.18));
  color: #0f3d91;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.contact-item-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.contact-item-main > strong,
.contact-item-main > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-item-meta { color: var(--muted); font-size: 13px; }

.contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.contact-tags-small {
  margin-top: 2px;
}

.label-chip {
  --label-color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.label-chip-small {
  padding: 3px 9px;
  font-size: 11px;
}

.label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--label-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--label-color) 16%, transparent);
}

.empty-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  padding: 24px;
}

.empty-state .material-symbols-rounded {
  font-size: 42px;
  color: var(--line-strong);
}

.empty-state h3 { margin: 8px 0 4px; color: var(--text); }
.empty-state p { margin: 0; }

.hidden { display: none !important; }

.notes-panel {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.note-form {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.note-form input,
.note-form textarea,
.form-grid input,
.textarea-label textarea,
.extra-form-grid input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: #ffffff;
  color: var(--text);
  outline: 0;
}

.note-form textarea { min-height: 44px; resize: vertical; }

.note-list {
  display: grid;
  gap: 8px;
}

.note-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  border-radius: var(--radius);
  padding: 10px;
}

.note-item-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.note-item time {
  display: block;
  color: #92400e;
  font-size: 12px;
  margin-bottom: 4px;
}

.note-item-delete {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-color: rgba(190, 24, 93, 0.18);
  background: rgba(255, 241, 242, 0.82);
  color: var(--danger);
}

.note-item-delete .material-symbols-rounded {
  font-size: 18px;
}

.settings-shell {
  display: grid;
  gap: 16px;
}

.settings-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.settings-hero h2,
.settings-block-header h3 {
  margin: 0;
  font-size: 22px;
}

.settings-hero p,
.settings-block-header p,
.settings-note,
.modal-support-text {
  margin: 6px 0 0;
  color: var(--muted);
}

.settings-hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.settings-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.settings-nav-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 14px;
  width: 100%;
  padding: 20px;
  text-align: left;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.92));
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.settings-nav-card:hover,
.settings-nav-card.active {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 40%, white);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.12);
}

.settings-nav-card-danger:hover,
.settings-nav-card-danger.active {
  border-color: color-mix(in srgb, var(--danger) 42%, white);
}

.settings-nav-icon {
  width: 28px;
  min-width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  align-self: start;
  margin-top: 2px;
  color: var(--primary);
  font-size: 28px;
  background: transparent;
  box-shadow: none;
}

.settings-nav-card-danger .settings-nav-icon {
  color: var(--danger);
}

.settings-nav-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
  align-content: start;
}

.settings-nav-copy strong {
  font-size: 18px;
  line-height: 1.2;
  color: var(--text);
}

.settings-nav-copy span {
  color: var(--muted);
  line-height: 1.55;
}

.settings-nav-meta {
  justify-self: end;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, white);
  padding: 8px 10px;
  border-radius: 999px;
}

.settings-nav-card-danger .settings-nav-meta {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 10%, white);
}

.settings-nav-arrow {
  color: var(--muted);
  align-self: start;
  margin-top: 2px;
}

.settings-detail-shell {
  display: grid;
  gap: 16px;
}

.settings-detail-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.settings-detail-head h3 {
  margin: 0;
  font-size: 22px;
}

.settings-detail-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.settings-back-btn {
  flex: 0 0 auto;
}

.settings-detail-section {
  display: grid;
  gap: 16px;
}

.settings-register-grid {
  grid-template-columns: minmax(0, 1fr);
}

.license-summary-shell {
  display: grid;
  gap: 12px;
}

.settings-block {
  display: grid;
  gap: 16px;
}

.settings-block-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.settings-form,
.label-form {
  display: grid;
  gap: 12px;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.setting-row span {
  display: grid;
  gap: 4px;
}

.setting-row strong {
  color: var(--text);
}

.setting-row small {
  color: var(--muted);
}

.setting-row select,
.label-form input {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--text);
}

.settings-actions {
  display: grid;
  gap: 10px;
}

.settings-install-card {
  border: 1px solid rgba(217, 119, 6, 0.32);
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.08), 0 18px 40px rgba(15, 23, 42, 0.08);
}

.settings-install-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-install-actions .btn {
  min-width: 156px;
}

.settings-note {
  padding-top: 4px;
}

.label-form {
  grid-template-columns: minmax(0, 1fr) 96px;
  align-items: end;
}

.label-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  align-content: start;
}

.label-color-field input {
  min-height: 46px;
  padding: 4px;
  width: 52px;
  justify-self: start;
}

.label-form .button-row {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.settings-labels-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: start;
}

.settings-labels-grid > .settings-block {
  align-content: start;
}

.settings-labels-grid #label-form {
  max-width: 700px;
}

.settings-labels-grid #label-form > label:first-of-type {
  min-width: 0;
}

.support-band {
  display: grid;
  gap: 18px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.support-card {
  width: 100%;
  appearance: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  text-decoration: none;
  color: var(--text);
  text-align: left;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.94) 100%);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}

.support-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 52px rgba(15, 23, 42, 0.12);
}

.support-card-icon {
  width: 28px;
  min-width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  align-self: start;
  margin-top: 2px;
  font-size: 28px;
  color: var(--primary);
}

.support-card-copy {
  display: grid;
  gap: 8px;
}

.support-card-copy strong {
  font-size: 19px;
}

.support-card-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.support-card-link {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.support-card-link::after {
  content: 'arrow_outward';
  font-family: "Material Symbols Rounded";
  font-size: 20px;
  line-height: 1;
}

.support-card-whatsapp .support-card-icon { color: #16a34a; }

.support-card-whatsapp:hover {
  border-color: rgba(34, 197, 94, 0.32);
}

.support-card-whatsapp .support-card-link {
  color: #15803d;
}

.support-card-help .support-card-icon { color: #0f766e; }

.support-card-help:hover {
  border-color: rgba(20, 184, 166, 0.28);
}

.support-card-help .support-card-link {
  color: #0f766e;
}

.support-card-app .support-card-icon { color: #0f766e; }

.support-card-app:hover {
  border-color: rgba(20, 184, 166, 0.28);
}

.support-card-app .support-card-link {
  color: #0f766e;
}

.support-card-sac .support-card-icon { color: #2563eb; }

.support-card-sac:hover {
  border-color: rgba(56, 189, 248, 0.28);
}

.support-card-sac .support-card-link {
  color: #1d4ed8;
}

.support-card-terms .support-card-icon { color: #d97706; }

.support-card-terms:hover {
  border-color: rgba(245, 158, 11, 0.3);
}

.support-card-terms .support-card-link {
  color: #b45309;
}

.help-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.help-band {
  grid-column: span 7;
  display: grid;
  gap: 18px;
}

.help-card-grid {
  display: grid;
  gap: 16px;
}

.help-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  width: 100%;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  background: linear-gradient(180deg, rgba(241, 250, 248, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  color: var(--text);
  text-align: left;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.help-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 26px 52px rgba(15, 23, 42, 0.12);
}

.help-card-icon {
  width: 28px;
  min-width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  align-self: start;
  margin-top: 2px;
  font-size: 28px;
  color: var(--primary);
}

.help-card-copy {
  display: grid;
  gap: 8px;
}

.help-card-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.help-card-copy strong,
.help-article-head h2 {
  font-size: 22px;
}

.help-card-copy p,
.help-article-head p,
.help-article-body p,
.help-article-body li {
  margin: 0;
  color: #425466;
  line-height: 1.7;
}

.help-card-link {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary);
}

.help-card-link::after {
  content: 'arrow_forward';
  font-family: "Material Symbols Rounded";
  font-size: 20px;
  line-height: 1;
}

.help-article-shell {
  display: grid;
  gap: 16px;
}

.help-back-button {
  width: auto;
  justify-self: start;
}

.help-article-head {
  display: grid;
  gap: 8px;
}

.help-article-head h2,
.help-article-body h3 {
  margin: 0;
  color: var(--text);
}

.help-article-body strong {
  color: #1f2937;
}

.help-article-body {
  display: grid;
  gap: 18px;
}

.help-article-body section {
  display: grid;
  gap: 10px;
}

.help-article-body ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.help-article-note {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  background: rgba(240, 253, 250, 0.9);
  color: #0f4c47;
}

.label-list,
.label-picker-list {
  display: grid;
  gap: 10px;
}

.label-picker-search-shell {
  margin-bottom: 12px;
}

.extra-field-list {
  display: grid;
  gap: 10px;
}

.extra-field-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.extra-field-card-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.extra-field-card-main strong {
  color: var(--text);
}

.extra-field-card-main span {
  color: var(--muted);
  font-size: 13px;
}

.label-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.label-card-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.label-card-count {
  color: var(--muted);
  font-size: 12px;
}

.label-card-actions {
  display: flex;
  gap: 8px;
}

.label-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.label-filter-chip {
  --label-color: var(--primary);
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.label-filter-chip span {
  color: var(--muted);
  font-size: 12px;
}

.label-filter-chip.active {
  border-color: color-mix(in srgb, var(--label-color) 50%, white);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--label-color) 15%, transparent);
}

.label-picker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.label-picker-item input {
  width: 16px;
  height: 16px;
}

.label-picker-item-create {
  justify-content: space-between;
  cursor: pointer;
  color: var(--primary);
  border-style: dashed;
  background: rgba(240, 253, 250, 0.92);
}

.label-picker-item-create .material-symbols-rounded {
  color: var(--primary);
}

.file-btn input { display: none; }

.modal {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(960px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  overflow: hidden;
}

.modal::backdrop { background: rgba(15, 23, 42, 0.48); }

.modal-panel {
  background: var(--panel);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overflow-x: hidden;
}

.modal-panel-narrow {
  width: min(560px, calc(100vw - 24px));
}

.modal-panel-wide {
  width: min(760px, calc(100vw - 24px));
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-support-text {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.modal-inline-note {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.modal-field-group {
  margin-top: 0;
}

.discover-cpf-partner-field {
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.discover-cpf-partner-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.discover-cpf-partner-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #dbe4ec;
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

.discover-cpf-partner-field input:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.discover-cpf-partner-field small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.field-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.field-badge-subtle {
  background: rgba(15, 118, 110, 0.1);
  color: var(--primary);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid label,
.textarea-label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
}

.textarea-label { margin-top: 12px; }
.textarea-label textarea { resize: vertical; }

.modal-actions {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.modal-actions-stacked {
  display: grid;
  grid-template-columns: 1fr;
}

.value-list-grid {
  display: grid;
  gap: 12px;
}

.value-list-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
}

.value-list-card-main {
  display: grid;
  gap: 5px;
}

.value-list-card-main strong {
  font-size: 15px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.value-list-card-main span {
  font-size: 12px;
  color: var(--muted);
}

.value-list-card-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.export-option-grid {
  display: grid;
  gap: 10px;
}

.export-format-grid {
  margin-top: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.export-scope-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.export-scope-option input[type="radio"] {
  margin-top: 2px;
  accent-color: var(--primary);
}

.export-scope-option span {
  display: grid;
  gap: 4px;
}

.export-scope-option strong {
  color: var(--text);
}

.export-scope-option small {
  color: var(--muted);
}

.export-scope-option.selected {
  border-color: color-mix(in srgb, var(--primary) 40%, white);
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.08);
}

.export-scope-option:has(input:disabled) {
  opacity: 0.56;
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    z-index: 30;
    transform: translateX(-100%);
    transition: transform 0.18s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: inline-flex; }
  .sidebar-close,
  .sidebar-backdrop { display: inline-flex; }
  .contacts-layout,
  .settings-grid,
  .settings-card-grid,
  .label-form { grid-template-columns: 1fr; }
  .contact-list-pane,
  .contact-detail-pane { min-height: auto; }
  .contacts-layout .contact-detail-pane { display: none; }
  .contacts-layout.mobile-detail-open .contact-list-pane { display: none; }
  .contacts-layout.mobile-detail-open .contact-detail-pane { display: block; }
  .contacts-layout.mobile-detail-open .contact-detail-back { display: inline-flex; }
  .export-format-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
    grid-column: auto;
  }

  .topbar-copy {
    flex-basis: calc(100% - 54px);
  }

  .topbar .topbar-install {
    width: auto;
    min-height: 36px;
    margin-left: 54px;
    padding: 0 12px;
  }

  .view { padding: 14px; }

  .discover-form {
    grid-template-columns: 1fr;
  }

  .discover-priority-shell {
    max-width: none;
  }

  .discover-input-shell {
    grid-column: auto;
  }

  .note-form,
  .form-grid { grid-template-columns: 1fr; }
  .section-heading,
  .settings-hero,
  .result-card-header,
  .settings-detail-head,
  .detail-header,
  .modal-actions,
  .discover-result-actions-bar { flex-direction: column; align-items: stretch; }
  .settings-hero-badges,
  .settings-install-actions,
  .detail-actions { justify-content: flex-start; }
  .settings-nav-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .settings-labels-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }
  .help-layout {
    grid-template-columns: 1fr;
  }
  .help-band {
    grid-column: auto;
  }
  .settings-nav-meta,
  .settings-nav-arrow {
    justify-self: start;
  }
  .btn { width: 100%; }
  .discover-credits-actions .btn,
  .discover-batch-actions .btn,
  #discover-batch-back {
    width: 100%;
  }
  .icon-btn { width: 42px; flex: 0 0 auto; }
  .data-grid { grid-template-columns: 1fr; }
  .setting-row,
  .label-card { flex-direction: column; align-items: stretch; }
  .contact-search-row,
  .discover-batch-limit-shell,
  .discover-batch-label-panel,
  .contact-active-filters,
  .discover-batch-progress-head {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .discover-credits-head,
  .license-summary-head { flex-direction: column; }

  .discover-batch-item {
    flex-direction: column;
  }

  .discover-batch-item-actions {
    justify-items: stretch;
  }

  .topbar-access-summary {
    gap: 6px;
  }

  .topbar-access-pill {
    width: 100%;
    justify-content: flex-start;
  }

  .note-item {
    flex-direction: column;
  }

  .note-item-delete {
    align-self: flex-end;
  }
}