/* Apple product shell polish — black & white only (loads after style.css) */

.auth-screen {
  background:
    radial-gradient(90% 60% at 50% -10%, rgba(255, 255, 255, 0.08), transparent 55%),
    #000;
}

.auth-box {
  max-width: 400px;
  background: rgba(28, 28, 30, 0.82);
  backdrop-filter: saturate(160%) blur(24px);
  -webkit-backdrop-filter: saturate(160%) blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.85rem 1.65rem 1.5rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.wordmark {
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  text-transform: none;
  color: var(--text);
  margin-bottom: 1.35rem;
}

.auth-box .tabs {
  gap: 0.2rem;
  padding: 0.22rem;
  background: rgba(118, 118, 128, 0.24);
  border: none;
  border-radius: 10px;
  margin-bottom: 1.25rem;
}

.auth-box .tab {
  border-radius: 8px;
  font-weight: 560;
  font-size: 0.86rem;
}

.auth-box .tab.active {
  background: #3a3a3c;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.auth-box label,
.panel form > label:not(.form-checkbox-row),
.panel > label:not(.form-checkbox-row):not(.live-ui-native-row) {
  font-size: 0.72rem;
  font-weight: 560;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--faint);
}

.auth-box input,
.panel form > input:not([type="checkbox"]):not([type="radio"]),
.panel form > textarea,
.panel form > select,
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(.live-ui-range),
textarea,
select {
  border: none !important;
  border-radius: 10px !important;
  background: #2c2c2e !important;
  color: var(--text) !important;
  min-height: var(--control-h);
  padding: 0.55rem 0.75rem;
  font: inherit;
  outline: none;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

.auth-box input:focus,
.panel form > input:focus,
.panel form > textarea:focus,
.panel form > select:focus,
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 3px var(--focus-ring) !important;
  background: #3a3a3c !important;
}

.side {
  width: var(--side);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(28, 28, 30, 0.78);
  backdrop-filter: saturate(160%) blur(22px);
  -webkit-backdrop-filter: saturate(160%) blur(22px);
}

.side-head {
  padding: 1.25rem 1.05rem 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.side-head .wordmark {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.035em;
  text-transform: none;
  color: #fff;
}

.role {
  font-size: 0.68rem;
  color: var(--faint);
  letter-spacing: 0.04em;
}

.nav-section .nav-label {
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--faint);
  letter-spacing: 0.06em;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 450;
  padding: 0.52rem 0.85rem;
  border-radius: 10px;
  letter-spacing: -0.015em;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  background: #3a3a3c;
  color: #fff;
  font-weight: 560;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.side-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.95rem 1rem 1.2rem;
}

.main {
  padding: 1.75rem 2rem 2.75rem;
  background: transparent;
}

.panel {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1.2rem 1.25rem;
  margin-bottom: 0.95rem;
  background: rgba(28, 28, 30, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.panel-title,
.panel h2.panel-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.panel.danger {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.cell,
.stat {
  border: none;
  border-radius: 12px;
  background: #2c2c2e;
}

.cell:hover,
.stat:hover {
  border-color: transparent;
  background: #3a3a3c;
}

.stat b {
  font-weight: 650;
  letter-spacing: -0.03em;
}

.btn {
  border: none;
  border-radius: 980px;
  min-height: 2.2rem;
  padding: 0.45rem 1.05rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  background: #2c2c2e;
  color: #fff;
  transition: background 0.15s ease, transform 0.1s ease, opacity 0.12s ease;
}

.btn:hover {
  background: #3a3a3c;
  border-color: transparent;
}

.btn.primary {
  background: #f5f5f7 !important;
  color: #000 !important;
  border: none !important;
}

.btn.primary:hover {
  background: #fff !important;
}

.btn.secondary {
  background: #2c2c2e !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.btn.danger {
  background: #2c2c2e !important;
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.btn.ok {
  background: #3a3a3c !important;
  color: #fff !important;
}

.btn.text {
  background: transparent !important;
  border: none !important;
  color: var(--muted) !important;
  min-height: auto;
  padding: 0.35rem 0.15rem;
}

.btn.text:hover {
  color: #fff !important;
}

.tag {
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-weight: 560;
}

.tag.ok {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: transparent;
}

.tag.bad {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  border-color: transparent;
}

.tab.active {
  color: #fff;
  border-bottom-color: #fff;
}

#toast-container .toast,
.toast {
  background: rgba(28, 28, 30, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  backdrop-filter: blur(16px);
  color: #fff !important;
}

#modal-root .modal,
.modal-card,
.modal {
  background: #1c1c1e !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 18px !important;
}

table,
.table {
  border-collapse: separate;
  border-spacing: 0;
}

table th,
.table th {
  color: var(--faint);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

table td,
.table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hint,
.muted,
.meta {
  color: var(--muted);
}

a {
  color: #fff;
}

a:hover {
  opacity: 0.85;
}

.side-toggle {
  background: rgba(28, 28, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.page-title,
h1.page-title,
.main h1 {
  font-weight: 650;
  letter-spacing: -0.035em;
}

/* keep switches in native forms B/W */
input[type="checkbox"]:not(.live-ui-native-cb) {
  accent-color: #f5f5f7;
}
