/* Shared design system. Load before page-specific stylesheets. */
:root {
  --color-blue: #006cff;
  --color-blue-soft: #f0f5ff;
  --color-deep-blue: #002c52;
  --color-orange: #ff7a04;
  --color-orange-soft: #fff4e6;
  --color-green: #bce978;
  --color-green-soft: #f4f9e8;
  --color-red: #e24b4a;
  --color-red-soft: #fff3f3;
  --color-white: #ffffff;
  --color-bg: #f3f4f6;
  --color-light-gray: #f3f4f6;
  --color-dark-gray: #474747;
  --color-mid: #6b7280;
  --color-muted: #9ca3af;
  --color-border: #e5e7eb;
  --color-border-soft: #eef0f3;
  --blue-50: #cce2ff;
  --blue-100: #99c4ff;
  --blue-700: #0051bf;
  --deep-blue-100: #ccd5dc;
  --font-sans: "Figtree", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Zilla Slab", Georgia, serif;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(0, 44, 82, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 44, 82, 0.06), 0 1px 2px rgba(0, 44, 82, 0.04);
  --shadow-md: 0 2px 14px rgba(0, 44, 82, 0.08);
  --sidebar-w: 248px;
  --content-w: 1120px;
  --ui-select-chevron: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  --ui-control-radius: 0.7rem;
  --ui-control-border: #d8dee8;
  --ui-control-focus-ring: 0 0 0 3px rgba(0, 108, 255, 0.16);
}

.non-production-banner {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  min-height: 22px;
  padding: 3px 0;
  background: #8f2424;
  border-bottom: 1px solid #6e1818;
  color: #fff5f5;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

:where(button, input, select, textarea) { font-family: inherit; }
:where(input[type="checkbox"], input[type="radio"]) {
  accent-color: var(--color-blue);
  inline-size: 1rem;
  block-size: 1rem;
  cursor: pointer;
  vertical-align: middle;
}

/* Native selects share one control template throughout the app. The tab-style
   selector is navigation rather than a form control and keeps its own styling. */
:where(select:not([multiple]):not(.vrt-tab__select)) {
  box-sizing: border-box;
  min-height: 2.75rem;
  padding: 0.6rem 2.25rem 0.6rem 0.8rem;
  border: 1px solid var(--ui-control-border);
  border-radius: var(--ui-control-radius);
  background-color: var(--color-white);
  background-image: var(--ui-select-chevron);
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px 12px;
  color: var(--color-deep-blue);
  cursor: pointer;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}
:where(select:not([multiple]):not(.vrt-tab__select):focus-visible) {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: var(--ui-control-focus-ring);
}
:where(select:not([multiple]):disabled) { cursor: not-allowed; opacity: 0.65; }
:where(.team-client-dashboard__campaign-picker summary,
       .lead-directory-column-picker summary,
       .team-currency-selection__toggle,
       .icp-industry-selection__dropdown-toggle):focus-visible {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: var(--ui-control-focus-ring);
}

/* Existing component names remain aliases so templates need no mass rewrite. */
:where(.ui-btn, .team-btn, .icp-btn, .button-primary) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

:is(.ui-btn, .team-btn) {
  gap: 0.375rem;
  padding: 0.5625rem 1rem;
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  border: 1px solid transparent;
  line-height: 1;
}

.icp-btn {
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--r-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
}

.button-primary {
  gap: 0.375rem;
  width: 100%;
  padding: 0.95rem 1.25rem;
  border: 1px solid var(--color-blue);
  border-radius: var(--radius-pill);
  background: var(--color-blue);
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}
.button-primary:hover { background: var(--blue-700); transform: translateY(-1px); }

:where(.ui-input, .lead-directory-input, .lead-directory-sheet__input, .input,
    .team-form-section input[type="text"], .team-form-section input[type="email"],
    .team-form-section input[type="url"], .team-form-section input[type="tel"],
    .team-form-section input[type="number"], .team-form-section select,
    .team-form-section textarea, .icp-fg input, .icp-fg textarea, .icp-fg select) {
  box-sizing: border-box;
  background-color: var(--color-white);
  font-family: var(--font-sans);
}

.input {
  width: 100%;
  border: 1px solid var(--ui-control-border);
  border-radius: var(--ui-control-radius);
  color: var(--color-deep-blue);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.input::placeholder { color: rgba(71, 71, 71, 0.55); }
.input:focus { outline: none; border-color: var(--color-blue); box-shadow: 0 0 0 3px rgba(0, 108, 255, 0.16); }
select.input { padding-right: 2.25rem; }

:where(.team-form-section input[type="text"], .team-form-section input[type="email"],
  .team-form-section input[type="url"], .team-form-section input[type="tel"],
  .team-form-section input[type="number"], .team-form-section select,
  .team-form-section textarea) {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--ui-control-radius);
  font-size: 0.875rem;
  color: var(--color-deep-blue);
  transition: border-color 0.15s, box-shadow 0.15s;
}
:where(.team-form-section input:focus, .team-form-section select:focus, .team-form-section textarea:focus) {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(0, 108, 255, 0.16);
}

:where(.icp-fg input, .icp-fg textarea, .icp-fg select) {
  padding: 0.5rem 0.6875rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--ui-control-radius);
  font-size: 0.875rem;
  color: var(--color-dark-gray);
  outline: none;
  transition: border-color 0.15s;
}
:where(.icp-fg input:focus, .icp-fg textarea:focus, .icp-fg select:focus) { border-color: var(--color-blue); }
:where(.team-form-section select, .icp-fg select) {
  border-radius: var(--ui-control-radius);
  padding-right: 2.25rem;
}

:is(.ui-input, .lead-directory-input) {
  min-height: 2.75rem;
  padding: .6rem .8rem;
  border: 1px solid var(--ui-control-border);
  border-radius: var(--ui-control-radius);
  color: #062b50;
  font: inherit;
}
select:is(.ui-input, .lead-directory-input) { padding-right: 2.25rem; }
.lead-directory-sheet__input {
  width: 100%;
  min-height: 2.25rem;
  padding: .35rem .5rem;
  border: 1px solid #cbd5e1;
  border-radius: .35rem;
  color: inherit;
  font: inherit;
}
.lead-directory-sheet select.lead-directory-sheet__input { padding-right: 2.25rem; }
.lead-directory-sheet__input:focus { outline: 2px solid #0b67ed; outline-offset: 1px; }

/* Read-only lists share the structural table rules; import spreadsheets keep their own layout. */
:where(.team-table, .icp-list-table, .camp-table) { width: 100%; border-collapse: collapse; }

.team-table {
  background: var(--color-white);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.team-table th, .team-table td { padding: 0.75rem 1rem; text-align: left; font-size: 0.875rem; }
.team-table thead {
  background: var(--color-bg);
  color: var(--color-mid);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.team-table tbody tr { border-top: 1px solid var(--color-border-soft); }
.team-table tbody tr:hover { background: var(--color-bg); }
