:root {
  --page-bg: #000000;
  --shared-stage-bg:
    radial-gradient(ellipse at 18% 106%, transparent 0 47%, rgba(255, 255, 255, 0.13) 48%, transparent 51%),
    radial-gradient(ellipse at 54% 112%, transparent 0 46%, rgba(255, 255, 255, 0.11) 47%, transparent 50%),
    radial-gradient(ellipse at 88% 104%, transparent 0 48%, rgba(255, 255, 255, 0.12) 49%, transparent 52%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 34%),
    linear-gradient(
      180deg,
      #63b6dc 0%,
      #2f94c8 34%,
      #1479b3 68%,
      #0a5f96 100%
    );
  --panel-bg: rgba(17, 17, 17, 0.94);
  --panel-soft: rgba(255, 255, 255, 0.08);
  --line: rgba(80, 163, 211, 0.45);
  --field-bg: #e8e8e8;
  --field-ink: #101010;
  --title-blue-top: #49a4d4;
  --title-blue-bottom: #0f5c84;
  --title-line: #88d7f6;
  --brand-blue: #123a72;
  --brand-gold: #c69439;
  --orange-top: #ffa56f;
  --orange-bottom: #cb5a14;
  --crm-bg: #dcecf8;
  --crm-panel: rgba(255, 255, 255, 0.46);
  --crm-panel-strong: rgba(255, 255, 255, 0.62);
  --crm-line: rgba(18, 58, 114, 0.12);
  --crm-ink: #123a72;
  --crm-muted: #4b6784;
  --crm-accent: #0f5c84;
  --crm-accent-soft: rgba(31, 126, 196, 0.14);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--shared-stage-bg);
  color: white;
}

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

button,
a,
input,
select,
textarea,
.company-row-button,
.status-option span {
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
}

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.55) 0%, transparent 28%),
    radial-gradient(circle at 78% 20%, rgba(27, 128, 194, 0.34) 0%, transparent 34%),
    linear-gradient(145deg, #e9f5fc 0%, #b8d8ec 38%, #4a9bd0 100%);
}

.login-panel {
  width: min(1120px, calc(100vw - 32px));
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(235, 247, 255, 0.52) 100%);
  color: var(--crm-ink);
  box-shadow: 0 34px 90px rgba(18, 58, 114, 0.22);
  backdrop-filter: blur(18px);
}

.login-logo-card {
  width: min(190px, 58vw);
  padding: 16px 18px 13px;
  border-radius: 4px;
  background: linear-gradient(180deg, #f5f0e8 0%, #ffffff 100%);
  color: var(--brand-blue);
  text-align: center;
  box-shadow: 0 20px 44px rgba(18, 58, 114, 0.2);
}

.logo-name {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 0.96;
  letter-spacing: 0.02em;
}

.logo-subtitle {
  display: block;
  color: var(--brand-gold);
  font-weight: 700;
  font-size: clamp(14px, 2.1vw, 18px);
  margin-top: 6px;
}

.login-title-bar {
  width: min(860px, 100%);
  padding: 22px 26px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background:
    linear-gradient(135deg, rgba(18, 58, 114, 0.98) 0%, rgba(19, 109, 158, 0.92) 100%);
  box-shadow: 0 18px 42px rgba(18, 58, 114, 0.22);
  color: #ffffff;
  text-align: center;
}

.login-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #bdeaff;
}

.login-title-bar h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.login-disclaimer {
  width: min(760px, 100%);
  margin: 0;
  padding: 16px 20px;
  border-radius: 18px;
  border: 1px solid rgba(18, 58, 114, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: #355674;
  text-align: center;
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.55;
  box-shadow: 0 14px 32px rgba(18, 58, 114, 0.08);
}

.login-form {
  width: min(560px, 100%);
  margin-top: 4px;
  display: grid;
  justify-items: center;
  gap: 16px;
}

.login-field {
  width: 100%;
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.login-label {
  color: #123a72;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-field input {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(18, 58, 114, 0.24);
  background: rgba(255, 255, 255, 0.86);
  color: var(--field-ink);
  padding: 0 16px;
  font-size: 20px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.login-field input:focus {
  border-color: #1f86d0;
  box-shadow: 0 0 0 4px rgba(31, 134, 208, 0.16);
}

.login-code-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 10px;
  align-items: center;
}

.login-code-row input[readonly] {
  background: rgba(255, 255, 255, 0.74);
  color: #123a72;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.login-code-button {
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #dff8ff 0%, #60bce6 100%);
  color: #083961;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(18, 58, 114, 0.14);
}

.login-code-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(18, 58, 114, 0.2);
}

.login-code-button:disabled {
  cursor: wait;
  opacity: 0.76;
  transform: none;
}

.captcha-check {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(18, 58, 114, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  color: #123a72;
  font-weight: 800;
  cursor: pointer;
}

.captcha-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.captcha-box {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid rgba(18, 58, 114, 0.45);
  border-radius: 7px;
  background: #ffffff;
}

.captcha-check input:checked + .captcha-box {
  border-color: #0f7bb8;
  background: linear-gradient(180deg, #2fa4df 0%, #11699a 100%);
}

.captcha-check input:checked + .captcha-box::after {
  content: "✓";
  color: #ffffff;
  font-weight: 900;
}

.login-message {
  min-height: 22px;
  margin: 0;
  color: #b4421c;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.start-button {
  width: 100%;
  min-height: 62px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--orange-top) 0%, var(--orange-bottom) 100%);
  color: white;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(179, 88, 32, 0.28);
}

.start-button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.crm-screen {
  position: relative;
  min-height: 100vh;
  padding: 24px 16px 48px;
  color: var(--crm-ink);
  background: var(--shared-stage-bg);
  background-attachment: fixed;
  overflow-x: hidden;
}

.panel-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(232, 244, 252, 0.82);
  backdrop-filter: blur(4px);
}

.panel-loading-box {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 26px 34px;
  border-radius: 18px;
  border: 1px solid rgba(18, 58, 114, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--crm-ink);
  box-shadow: 0 22px 48px rgba(18, 58, 114, 0.16);
}

.panel-loading-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(18, 58, 114, 0.24);
  border-right-color: var(--crm-ink);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}

.panel-loading-box strong {
  font-size: 18px;
}

.crm-screen.groups-screen {
  background: var(--shared-stage-bg);
  background-attachment: fixed;
}

.dashboard-shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.sidebar,
.hero,
.panel,
.stat-card {
  backdrop-filter: blur(14px);
  background: var(--crm-panel);
  border: 1px solid var(--crm-line);
  box-shadow: 0 18px 42px rgba(6, 35, 68, 0.14);
}

.sidebar {
  position: sticky;
  top: 24px;
  min-height: calc(100vh - 48px);
  border-radius: 32px;
  padding: 28px 22px;
  display: grid;
  align-content: start;
  gap: 24px;
}

.hero h2,
.panel h2,
.contact-card h3 {
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
}

.sidebar-brand {
  position: relative;
  overflow: hidden;
  padding: 22px 20px 24px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 255, 255, 0.32) 0%, transparent 28%),
    linear-gradient(135deg, rgba(18, 58, 114, 0.96) 0%, rgba(18, 120, 170, 0.88) 100%);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(8, 61, 102, 0.2);
}

.sidebar-brand::after {
  content: "≈ ≈ ≈";
  position: absolute;
  right: 18px;
  bottom: 12px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 28px;
  letter-spacing: -0.08em;
}

.sidebar-overline {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #bdeaff;
  font-weight: 900;
  text-transform: uppercase;
}

.sidebar-brand h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 210px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 0.96;
  letter-spacing: 0.02em;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.sidebar-brand p {
  margin: 10px 0 0;
  color: var(--crm-muted);
  line-height: 1.5;
}

.sidebar-menu-group {
  display: grid;
  gap: 10px;
}

.sidebar-collapse-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-toggle-icon {
  font-size: 16px;
  line-height: 1;
}

.sidebar-section-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--crm-accent);
}

.sidebar-nav,
.sidebar-status-links,
.sidebar-actions,
.sidebar-status,
.content-shell {
  display: grid;
  gap: 12px;
}

.sidebar-link {
  display: block;
  padding: 14px 16px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--crm-ink);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-link-button {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.sidebar-status-links {
  padding-left: 10px;
}

.sidebar-status-links .sidebar-link-button {
  display: block;
  border-radius: 14px;
  padding: 12px 16px;
}

.sidebar-status-links .sidebar-link-button[data-status-link="Beklemede"] {
  background: linear-gradient(180deg, rgba(245, 245, 245, 0.82) 0%, rgba(166, 166, 166, 0.58) 100%);
  border-color: rgba(90, 90, 90, 0.24);
  color: #1d2933;
}

.sidebar-status-links .sidebar-link-button[data-status-link="Arandi"] {
  background: linear-gradient(180deg, rgba(79, 147, 206, 0.74) 0%, rgba(47, 117, 181, 0.62) 100%);
  border-color: rgba(47, 117, 181, 0.28);
  color: #ffffff;
}

.sidebar-status-links .sidebar-link-button[data-status-link="Tekrar Ara"] {
  background: linear-gradient(180deg, rgba(255, 255, 142, 0.78) 0%, rgba(255, 255, 0, 0.58) 100%);
  border-color: rgba(180, 160, 0, 0.3);
  color: #283000;
}

.sidebar-status-links .sidebar-link-button[data-status-link="Olumlu"] {
  background: linear-gradient(180deg, rgba(38, 201, 109, 0.72) 0%, rgba(0, 176, 80, 0.58) 100%);
  border-color: rgba(0, 176, 80, 0.28);
  color: #ffffff;
}

.sidebar-status-links .sidebar-link-button[data-status-link="Ilgilenmiyor"] {
  background: linear-gradient(180deg, rgba(255, 74, 74, 0.74) 0%, rgba(255, 0, 0, 0.62) 100%);
  border-color: rgba(200, 0, 0, 0.3);
  color: #ffffff;
}

.sidebar-status-links .sidebar-link-button.active {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.82), 0 12px 24px rgba(18, 58, 114, 0.18);
  transform: translateX(2px);
}

.sidebar-link.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.content-shell {
  min-width: 0;
}

.content-view {
  display: grid;
  gap: 20px;
}

.content-view:not(.hidden) {
  animation: viewFadeSlide 0.22s ease both;
}

@keyframes viewFadeSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.groups-page-view {
  gap: 0;
}

.page-panel {
  margin-top: 0;
}

.hero {
  border-radius: 32px;
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: start;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--crm-accent);
  font-weight: 700;
}

.hero h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
}

.dashboard-action-button {
  width: fit-content;
  min-height: 48px;
  border: 1px solid rgba(18, 58, 114, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--crm-ink);
  padding: 0 20px;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(18, 58, 114, 0.08);
}

.dashboard-action-button:hover {
  background: rgba(255, 255, 255, 0.96);
}

.excel-data-button {
  border-color: rgba(0, 176, 80, 0.34);
  background: linear-gradient(180deg, #eafff0 0%, #bff1cf 100%);
  color: #075f2a;
  box-shadow: 0 14px 28px rgba(0, 176, 80, 0.14);
}

.excel-data-button:hover {
  background: linear-gradient(180deg, #f4fff7 0%, #c9f7d8 100%);
}

.sidebar-link[href="#excel-data"],
.download-placeholder-button {
  border-color: rgba(0, 176, 80, 0.28);
  background: linear-gradient(180deg, rgba(234, 255, 240, 0.88) 0%, rgba(191, 241, 207, 0.72) 100%);
  color: #075f2a;
  box-shadow: 0 12px 24px rgba(0, 176, 80, 0.1);
}

.sidebar-link[href="#excel-data"]:hover,
.download-placeholder-button:hover {
  background: linear-gradient(180deg, rgba(244, 255, 247, 0.96) 0%, rgba(201, 247, 216, 0.82) 100%);
}

.admin-panel-link {
  border-color: rgba(203, 90, 20, 0.24);
  background: linear-gradient(180deg, rgba(255, 232, 203, 0.72) 0%, rgba(255, 180, 103, 0.48) 100%);
  color: #6c3108;
}

.admin-panel-link:hover {
  background: linear-gradient(180deg, rgba(255, 240, 220, 0.86) 0%, rgba(255, 191, 126, 0.62) 100%);
}

.lede,
.control-copy {
  color: var(--crm-muted);
  line-height: 1.6;
}

.lede {
  max-width: 760px;
  font-size: 18px;
}

.control-actions,
.filter-row,
.contact-top,
.contact-meta,
.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.download-zone {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid rgba(18, 58, 114, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.download-zone h3 {
  margin: 0;
  font-size: 24px;
}

.phonebook-compare-zone {
  align-items: stretch;
}

.phonebook-compare-actions {
  min-width: min(360px, 100%);
  display: grid;
  gap: 12px;
}

.download-zone.is-locked-feature {
  border-color: rgba(95, 108, 124, 0.18);
  background: rgba(220, 226, 232, 0.54);
  filter: grayscale(0.25);
}

.locked-download-button,
.locked-download-button:disabled {
  border-color: rgba(95, 108, 124, 0.28);
  background: linear-gradient(180deg, #eef1f4 0%, #c9d1d8 100%);
  color: #66717f;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.92;
}

.file-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(18, 58, 114, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--crm-ink);
  padding: 11px 14px;
  font-weight: 800;
}

.download-placeholder-button:disabled {
  cursor: not-allowed;
}

.download-placeholder-button {
  gap: 8px;
  min-width: 150px;
  font-weight: 800;
}

.download-placeholder-button.is-loading .button-spinner {
  display: inline-block;
}

.issue-report-form {
  width: min(720px, 100%);
  margin: 30px auto 0;
  display: grid;
  gap: 16px;
}

.issue-field {
  display: grid;
  gap: 8px;
}

.issue-field span {
  color: var(--crm-ink);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.issue-field input,
.issue-field textarea {
  width: 100%;
  border: 1px solid rgba(18, 58, 114, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--crm-ink);
  padding: 14px 18px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.issue-field input {
  min-height: 54px;
}

.issue-field textarea {
  min-height: 220px;
  resize: vertical;
}

.issue-field input:focus,
.issue-field textarea:focus {
  border-color: rgba(18, 58, 114, 0.42);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.36);
}

.issue-submit-button {
  min-height: 58px;
  border: 1px solid rgba(18, 58, 114, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #d8f0fb 100%);
  color: var(--crm-ink);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(18, 58, 114, 0.12);
}

.issue-submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(18, 58, 114, 0.16);
}

.issue-report-message {
  min-height: 22px;
  margin: 0;
  color: #075f2a;
  font-weight: 900;
  text-align: center;
}

.issue-reports-grid {
  margin-top: 26px;
  display: grid;
  gap: 16px;
}

.issue-report-card {
  padding: 20px;
  border: 1px solid rgba(18, 58, 114, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--crm-ink);
  box-shadow: 0 16px 30px rgba(18, 58, 114, 0.08);
}

.issue-report-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.issue-report-label {
  display: block;
  margin-bottom: 6px;
  color: var(--crm-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.issue-report-card h3 {
  margin: 0;
  font-size: 24px;
}

.issue-report-date {
  color: var(--crm-muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.issue-report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 14px;
  color: var(--crm-muted);
}

.issue-report-description {
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--crm-ink);
  line-height: 1.55;
  white-space: pre-wrap;
}

.admin-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.28), transparent 30%),
    linear-gradient(145deg, #0f8fc4 0%, #1c83b9 46%, #0b6fa5 100%);
  color: var(--crm-ink);
}

.admin-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 46px 0;
}

.admin-login-card,
.admin-panel-shell {
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 30px;
  background: rgba(235, 248, 255, 0.9);
  box-shadow: 0 28px 70px rgba(4, 45, 86, 0.22);
  backdrop-filter: blur(18px);
}

.admin-login-card {
  width: min(640px, 100%);
  margin: 60px auto 0;
  padding: 34px;
  text-align: center;
}

.admin-login-card h1,
.admin-panel-shell h1 {
  margin: 8px 0 12px;
  color: var(--crm-ink);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.admin-login-form {
  margin-top: 28px;
  display: grid;
  gap: 16px;
  text-align: left;
}

.admin-return-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--crm-ink);
  font-weight: 900;
  text-decoration: none;
}

.admin-panel-shell {
  padding: 28px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-toolbar-actions,
.admin-issue-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-section-card {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(18, 58, 114, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 34px rgba(18, 58, 114, 0.08);
}

.admin-collapsible-card {
  padding: 0;
  overflow: hidden;
}

.admin-card-toggle {
  width: 100%;
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78) 0%, rgba(218, 242, 255, 0.62) 100%);
  color: var(--crm-ink);
  text-align: left;
  cursor: pointer;
}

.admin-card-toggle strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
}

.admin-card-toggle .control-copy {
  margin: 0;
  font-weight: 900;
  white-space: nowrap;
}

.admin-toggle-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(18, 58, 114, 0.1);
  color: var(--crm-ink);
  font-size: 22px;
  font-weight: 900;
  transition: transform 160ms ease;
}

.admin-collapsible-card.is-open .admin-toggle-icon {
  transform: rotate(180deg);
}

.admin-card-body {
  padding: 0 22px 22px;
}

.admin-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-section-heading h2 {
  margin: 4px 0 0;
  color: var(--crm-ink);
  font-size: clamp(24px, 3vw, 36px);
}

.admin-user-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 14px;
}

.admin-user-submit {
  min-height: 54px;
  font-size: 18px;
}

.admin-generate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.admin-mini-generate,
.admin-generate-password-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(18, 58, 114, 0.22);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(235, 249, 255, 0.96), rgba(169, 219, 242, 0.92));
  color: var(--crm-ink);
  font-size: 0;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.admin-mini-generate::before,
.admin-generate-password-button::before {
  content: "+";
  font-size: 20px;
  line-height: 1;
}

.admin-mini-generate:hover,
.admin-generate-password-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(18, 58, 114, 0.12);
}

.admin-generate-otp-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(122, 76, 0, 0.22);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff8db 0%, #ffd56d 100%);
  color: #6f4600;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(255, 197, 61, 0.16);
}

.admin-generate-otp-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(255, 197, 61, 0.22);
}

.admin-generate-otp-button:disabled {
  cursor: wait;
  opacity: 0.76;
}

.admin-users-grid {
  display: grid;
  gap: 12px;
}

.admin-user-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(18, 58, 114, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 26px rgba(18, 58, 114, 0.08);
}

.admin-user-card-head {
  align-self: center;
}

.admin-user-card h3 {
  margin: 0 0 8px;
  color: var(--crm-ink);
  font-size: 24px;
}

.admin-user-card p,
.admin-user-card small {
  margin: 0;
  color: var(--crm-muted);
  font-weight: 800;
}

.admin-user-card.is-locked {
  border-color: rgba(18, 58, 114, 0.24);
  background: rgba(228, 244, 255, 0.82);
}

.admin-user-card input[readonly] {
  cursor: not-allowed;
  opacity: 0.72;
}

.admin-locked-badge,
.admin-locked-note {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(18, 58, 114, 0.1);
  color: var(--crm-ink);
  font-weight: 900;
}

.admin-locked-note {
  min-height: 42px;
}

.admin-user-edit-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.admin-check-field {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(18, 58, 114, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--crm-ink);
  font-weight: 900;
  cursor: pointer;
}

.admin-check-field input {
  width: 18px;
  height: 18px;
  accent-color: #0f7bb8;
}

.admin-check-field:has(input:checked) {
  border-color: rgba(0, 126, 76, 0.38);
  background: linear-gradient(180deg, rgba(232, 255, 240, 0.96), rgba(185, 242, 204, 0.86));
  color: #075f2a;
}

.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  grid-column: 2;
  justify-content: flex-end;
}

.admin-password-note,
.admin-password-visible {
  align-self: center;
  grid-column: 2;
  min-width: 180px;
}

.admin-password-visible {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(18, 58, 114, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
}

.admin-password-visible span {
  color: var(--crm-muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-password-visible strong {
  color: #8b1e1e;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.admin-otp-visible strong {
  color: #7a4c00;
}

.admin-otp-visible small {
  color: var(--crm-muted);
}

.admin-audit-grid {
  display: grid;
  gap: 12px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.admin-audit-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.6fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(18, 58, 114, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 22px rgba(18, 58, 114, 0.08);
}

.admin-audit-main h3 {
  margin: 4px 0 6px;
  color: var(--crm-ink);
  font-size: 19px;
}

.admin-audit-main small {
  color: var(--crm-muted);
  font-weight: 900;
}

.admin-audit-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: center;
}

.admin-audit-details span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(18, 58, 114, 0.08);
  color: var(--crm-ink);
  font-size: 13px;
  font-weight: 900;
}

.admin-save-button {
  min-width: 110px;
  min-height: 42px;
  border: 1px solid rgba(7, 95, 42, 0.2);
  border-radius: 999px;
  background: linear-gradient(180deg, #d9ffe5 0%, #8be4a6 100%);
  color: #075f2a;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(0, 176, 80, 0.14);
}

.admin-save-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.admin-issue-grid {
  margin-top: 18px;
}

.admin-issue-card {
  background: rgba(255, 255, 255, 0.74);
}

.admin-issue-actions {
  justify-content: flex-end;
  margin-top: 16px;
}

.admin-delete-button {
  min-width: 110px;
  min-height: 42px;
  border: 1px solid rgba(147, 17, 17, 0.24);
  border-radius: 999px;
  background: linear-gradient(180deg, #ff6f6f 0%, #d71920 100%);
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(215, 25, 32, 0.18);
}

.admin-delete-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(215, 25, 32, 0.24);
}

.admin-delete-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.panel-header {
  align-items: center;
}

.status-pill,
.secondary-button,
.primary-button,
.status-chip,
.badge {
  border-radius: 999px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--crm-line);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--crm-accent);
}

.panel {
  margin-top: 20px;
  border-radius: 28px;
  padding: 20px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--crm-accent);
  font-weight: 700;
}

.secondary-button,
.primary-button,
.filter-input,
.field-block textarea,
.field-block input,
.field-block select,
.manual-number-row input,
#contactsFileInput {
  min-height: 44px;
}

.secondary-button {
  border: 1px solid var(--crm-line);
  background: rgba(255, 255, 255, 0.14);
  color: var(--crm-ink);
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
}

.secondary-button:disabled,
.primary-button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.save-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 120px;
  border-color: rgba(160, 28, 28, 0.36);
  background: linear-gradient(180deg, #e24b4b 0%, #a81f1f 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(168, 31, 31, 0.2);
}

.save-contact .button-label {
  display: inline-block;
  color: #ffffff;
  font-weight: 800;
}

.button-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.55s linear infinite;
}

.save-contact.is-loading .button-spinner {
  display: inline-block;
}

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

.danger-button {
  border-color: rgba(168, 47, 47, 0.18);
  background: linear-gradient(180deg, #fff5f5 0%, #f4dada 100%);
  color: #7e1f1f;
}

.primary-button {
  border: 1px solid transparent;
  background: linear-gradient(135deg, #0f766e, #14532d);
  color: white;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
}

.stats {
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 22px;
  border-radius: var(--radius);
}

.stat-action-card {
  width: 100%;
  min-height: 128px;
  text-align: left;
  cursor: pointer;
  color: var(--crm-ink);
  border-style: dashed;
  background:
    linear-gradient(180deg, rgba(255, 232, 203, 0.9) 0%, rgba(255, 180, 103, 0.68) 100%);
  border-color: rgba(203, 90, 20, 0.28);
  box-shadow: 0 16px 30px rgba(203, 90, 20, 0.12);
}

.stat-action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 42px rgba(203, 90, 20, 0.2);
}

.stat-card span {
  display: block;
  color: var(--crm-muted);
  margin-bottom: 10px;
}

.stat-card strong {
  font-size: 38px;
}

.crm-header {
  align-items: end;
}

.filter-row {
  align-items: center;
}

.filter-input,
.field-block textarea,
.field-block input,
.field-block select,
.manual-number-row input,
#contactsFileInput {
  border-radius: 14px;
  border: 1px solid var(--crm-line);
  background: rgba(255, 255, 255, 0.14);
  color: var(--crm-ink);
  padding: 0 14px;
}

.filter-input {
  min-width: 220px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

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

.company-row-button {
  width: 100%;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: var(--crm-ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(30, 51, 79, 0.08);
}

.company-row-button.selected {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.2);
}

.crm-screen.groups-screen .sidebar,
.crm-screen.groups-screen .page-panel {
  background: var(--crm-panel);
  border-color: var(--crm-line);
  box-shadow: 0 18px 42px rgba(6, 35, 68, 0.14);
}

.crm-screen.groups-screen .sidebar-nav .sidebar-link,
.crm-screen.groups-screen .sidebar-collapse-toggle,
.crm-screen.groups-screen .status-pill,
.crm-screen.groups-screen .status-chip,
.crm-screen.groups-screen .secondary-button,
.crm-screen.groups-screen .filter-input {
  background: rgba(255, 255, 255, 0.48);
  border-color: rgba(18, 58, 114, 0.12);
}

.crm-screen.groups-screen .save-contact {
  border-color: rgba(160, 28, 28, 0.36);
  background: linear-gradient(180deg, #e24b4b 0%, #a81f1f 100%);
  color: #ffffff;
}

.crm-screen.groups-screen .sidebar-nav .sidebar-link.active,
.crm-screen.groups-screen .sidebar-collapse-toggle.active {
  background: rgba(255, 255, 255, 0.66);
}

.crm-screen.groups-screen .sidebar-status-links .sidebar-link-button[data-status-link="Beklemede"] {
  background: linear-gradient(180deg, rgba(245, 245, 245, 0.82) 0%, rgba(166, 166, 166, 0.58) 100%);
  color: #1d2933;
}

.crm-screen.groups-screen .sidebar-status-links .sidebar-link-button[data-status-link="Arandi"] {
  background: linear-gradient(180deg, rgba(79, 147, 206, 0.74) 0%, rgba(47, 117, 181, 0.62) 100%);
  color: #ffffff;
}

.crm-screen.groups-screen .sidebar-status-links .sidebar-link-button[data-status-link="Tekrar Ara"] {
  background: linear-gradient(180deg, rgba(255, 255, 142, 0.78) 0%, rgba(255, 255, 0, 0.58) 100%);
  color: #283000;
}

.crm-screen.groups-screen .sidebar-status-links .sidebar-link-button[data-status-link="Olumlu"] {
  background: linear-gradient(180deg, rgba(38, 201, 109, 0.72) 0%, rgba(0, 176, 80, 0.58) 100%);
  color: #ffffff;
}

.crm-screen.groups-screen .sidebar-status-links .sidebar-link-button[data-status-link="Ilgilenmiyor"] {
  background: linear-gradient(180deg, rgba(255, 74, 74, 0.74) 0%, rgba(255, 0, 0, 0.62) 100%);
  color: #ffffff;
}

.crm-screen.groups-screen .company-row-button {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 12px 28px rgba(30, 51, 79, 0.08);
}

.crm-screen.groups-screen .company-row-button.selected {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.38);
}

.crm-screen.groups-screen .company-card,
.crm-screen.groups-screen .contact-card,
.crm-screen.groups-screen .contact-meta > div {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(18, 58, 114, 0.1);
  box-shadow: 0 16px 30px rgba(18, 58, 114, 0.06);
}

.crm-screen.groups-screen .badge {
  background: rgba(31, 126, 196, 0.1);
}

.company-row-title {
  display: block;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.company-row-meta {
  flex: 0 0 auto;
  color: var(--crm-muted);
  font-size: 14px;
  font-weight: 700;
}

.company-detail-panel {
  margin-top: 18px;
}

#companyPagePanel .company-detail-panel {
  margin-top: 0;
}

.company-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--crm-line);
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(30, 51, 79, 0.1);
}

.company-card + .company-card {
  margin-top: 18px;
}

.company-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}

.company-header h3 {
  margin: 0;
  font-size: 30px;
}

.company-header p,
.company-details,
.detail-list span {
  color: var(--crm-muted);
}

.company-header p,
.company-details {
  margin: 6px 0 0;
}

.company-grid {
  margin-top: 14px;
}

.company-detail-card {
  padding: 24px;
}

.company-detail-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}

.company-summary-list {
  margin-bottom: 16px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--crm-line);
  border-radius: 22px;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.contact-card h3 {
  margin: 0 0 4px;
  font-size: 24px;
}

.contact-card p,
.field-block span,
.contact-meta small,
.control-status-row small {
  color: var(--crm-muted);
}

.contact-card p {
  margin: 0;
}

.badge {
  align-self: start;
  padding: 6px 10px;
  background: var(--crm-accent-soft);
  color: var(--crm-accent);
  font-size: 12px;
  font-weight: 700;
}

.contact-meta > div {
  flex: 1;
  min-width: 120px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-meta strong {
  display: block;
  margin-top: 6px;
}

.field-block {
  display: grid;
  gap: 8px;
}

.field-static {
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--crm-line);
  background: rgba(255, 255, 255, 0.14);
  color: var(--crm-ink);
  line-height: 1.5;
  word-break: break-word;
}

.manual-number-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.manual-number-row input {
  width: 100%;
}

.status-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.status-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.status-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.status-option span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 14px 12px 38px;
  border-radius: 14px;
  border: 1px solid var(--crm-line);
  background: rgba(255, 255, 255, 0.14);
  color: var(--crm-ink);
  font-weight: 700;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.status-option span::before {
  content: "";
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0.42;
}

.status-option[data-status-option="Beklemede"] span {
  background: linear-gradient(180deg, rgba(245, 245, 245, 0.82) 0%, rgba(166, 166, 166, 0.58) 100%);
  border-color: rgba(90, 90, 90, 0.24);
  color: #1d2933;
}

.status-option[data-status-option="Arandi"] span {
  background: linear-gradient(180deg, rgba(79, 147, 206, 0.74) 0%, rgba(47, 117, 181, 0.62) 100%);
  border-color: rgba(47, 117, 181, 0.28);
  color: #ffffff;
}

.status-option[data-status-option="Tekrar Ara"] span {
  background: linear-gradient(180deg, rgba(255, 255, 142, 0.78) 0%, rgba(255, 255, 0, 0.58) 100%);
  border-color: rgba(180, 160, 0, 0.3);
  color: #283000;
}

.status-option[data-status-option="Olumlu"] span {
  background: linear-gradient(180deg, rgba(38, 201, 109, 0.72) 0%, rgba(0, 176, 80, 0.58) 100%);
  border-color: rgba(0, 176, 80, 0.28);
  color: #ffffff;
}

.status-option[data-status-option="Ilgilenmiyor"] span {
  background: linear-gradient(180deg, rgba(255, 74, 74, 0.74) 0%, rgba(255, 0, 0, 0.62) 100%);
  border-color: rgba(200, 0, 0, 0.3);
  color: #ffffff;
}

.status-option:hover span {
  border-color: rgba(18, 58, 114, 0.22);
  transform: translateY(-1px);
}

.status-option input:checked + span {
  border-color: rgba(18, 58, 114, 0.86);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.92),
    0 0 0 6px rgba(18, 58, 114, 0.24),
    0 14px 26px rgba(18, 58, 114, 0.2);
  transform: translateY(-2px);
}

.status-option input:checked + span::before {
  content: "✓";
  display: grid;
  place-items: center;
  background: #123a72;
  border-color: #123a72;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  opacity: 1;
}

.status-option input:not(:checked) + span {
  opacity: 0.82;
}

.detail-list {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.field-block textarea {
  min-height: 108px;
  padding: 12px 14px;
  resize: vertical;
}

.empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--crm-muted);
}

.empty-state.slim {
  min-height: 120px;
}

@media (max-width: 980px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    min-height: auto;
  }

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

  .hero,
  .panel-header,
  .crm-header,
  .company-detail-top {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-input {
    min-width: 0;
    width: 100%;
  }

  .login-form {
    gap: 22px;
  }

  .start-button {
    min-height: 60px;
  }

  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-section-heading {
    flex-direction: column;
  }

  .admin-card-toggle {
    grid-template-columns: 1fr auto;
  }

  .admin-card-toggle .control-copy {
    grid-column: 1 / -1;
    white-space: normal;
  }

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

  .admin-user-card {
    grid-template-columns: 1fr;
  }

  .admin-user-edit-grid {
    grid-template-columns: 1fr;
  }

  .admin-user-actions,
  .admin-password-note,
  .admin-password-visible {
    grid-column: 1;
  }

  .admin-user-actions {
    justify-content: flex-start;
  }

  .admin-audit-card {
    grid-template-columns: 1fr;
  }

  .admin-toolbar-actions {
    width: 100%;
  }

  .admin-toolbar-actions .secondary-button {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .crm-screen {
    padding: 16px 10px 30px;
  }

  .login-screen {
    padding: 18px 10px;
  }

  .login-panel {
    width: min(100%, calc(100vw - 20px));
    padding: 20px 14px;
    border-radius: 24px;
  }

  .login-title-bar {
    padding: 18px 14px;
  }

  .login-disclaimer {
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.45;
  }

  .login-field {
    gap: 8px;
  }

  .login-field input {
    min-height: 52px;
    font-size: 18px;
  }

  .manual-number-row {
    grid-template-columns: 1fr;
  }

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

  .admin-user-card {
    align-items: stretch;
  }

  .admin-shell {
    width: min(100%, calc(100% - 20px));
    padding: 20px 0;
  }

  .admin-login-card,
  .admin-panel-shell {
    padding: 20px 14px;
    border-radius: 24px;
  }
}
