/* Admin dashboard — Samta */
.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(232, 197, 71, 0.12), transparent 55%),
    linear-gradient(165deg, #0b1026 0%, #141b33 45%, #0e1430 100%);
}

.admin-top {
  border-bottom: 1px solid rgba(232, 197, 71, 0.22);
  background: rgba(11, 16, 38, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.admin-top-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.85rem 0;
}

.admin-brand {
  flex-shrink: 0;
}

.admin-brand:hover {
  text-decoration: none;
}

.admin-login-brand {
  margin: 0 0 1rem;
}

.admin-login-brand:hover {
  text-decoration: none;
}

.admin-tabs {
  display: none;
}

.admin-drawer-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #f0efe8;
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}

.admin-drawer-link.active {
  color: #1a1404;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-soft, #f0d878), var(--gold, #e8c547));
  box-shadow: 0 0 0 1px rgba(232, 197, 71, 0.55);
}

.admin-body.has-app-sidebar .admin-main {
  min-height: 100dvh;
  min-height: 100svh;
}

.admin-main {
  padding-bottom: 3rem;
}

.admin-login {
  max-width: 28rem;
  margin: 3rem auto;
}

.admin-card label,
.feedback-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  font-size: 0.92rem;
}

.admin-card input,
.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  font: inherit;
  padding: 0.55rem 0.7rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(232, 197, 71, 0.28);
  background: rgba(8, 12, 28, 0.65);
  color: var(--text, #f3ede0);
}

.password-field {
  position: relative;
  display: block;
  width: 100%;
}

.password-field input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--gold-soft, #f0d878);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--gold, #e8c547);
  outline: none;
}

.password-toggle:focus-visible {
  box-shadow: 0 0 0 2px rgba(232, 197, 71, 0.45);
}

.password-toggle-icon--show {
  display: none;
}

.password-toggle.is-visible .password-toggle-icon--hide {
  display: none;
}

.password-toggle.is-visible .password-toggle-icon--show {
  display: block;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
}

.stat {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(232, 197, 71, 0.2);
  border-radius: 0.5rem;
  background: rgba(20, 27, 51, 0.55);
}

.stat span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted, #b8b0a0);
  margin-bottom: 0.25rem;
}

.stat strong {
  font-size: 1.35rem;
  color: var(--gold-soft, #f0d878);
}

.chart-block {
  margin-top: 1rem;
}

.chart-block canvas {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  border: 1px solid rgba(232, 197, 71, 0.18);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1rem;
}

.revenue-items-wrap {
  max-width: 100%;
}

#revenue-items {
  min-width: 56rem;
}

#revenue-items td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#revenue-items .session-id {
  font-size: 0.78rem;
  word-break: break-all;
}

@media (max-width: 699px) {
  #revenue-items,
  #dwell-table,
  #dwell-detail-table,
  #customers-table,
  #lek-acc-draws,
  #lek-acc-components,
  #revenue-table {
    min-width: 52rem;
  }
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgba(232, 197, 71, 0.15);
  white-space: nowrap;
}

.admin-table th {
  color: var(--gold, #e8c547);
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
  background: #0b1026;
}

.th-sort {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  min-height: 44px;
  min-width: 44px;
  width: 100%;
  margin: 0;
  padding: 0.3rem 0.35rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.th-sort:hover,
.th-sort:focus-visible {
  background: rgba(232, 197, 71, 0.16);
  outline: 2px solid rgba(232, 197, 71, 0.45);
  outline-offset: 1px;
}

.th-sort[aria-sort="ascending"] .th-sort-arrow,
.th-sort[aria-sort="descending"] .th-sort-arrow {
  opacity: 1;
}

.th-sort-arrow {
  font-size: 0.78em;
  opacity: 0.7;
  flex-shrink: 0;
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.fb-item {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(232, 197, 71, 0.2);
  border-radius: 0.5rem;
  background: rgba(20, 27, 51, 0.5);
}

.fb-item header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin-bottom: 0.4rem;
}

.pill {
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 0.3rem;
  border: 1px solid rgba(232, 197, 71, 0.35);
  color: var(--gold-soft, #f0d878);
}

.fb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.fb-actions button {
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.25rem 0.55rem;
  min-height: 44px;
  min-width: 44px;
  border-radius: 0.35rem;
  border: 1px solid rgba(232, 197, 71, 0.3);
  background: transparent;
  color: var(--text, #f3ede0);
}

.admin-banner {
  padding: 0.7rem 0.9rem;
  margin: 0 0 0.9rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(232, 197, 71, 0.35);
  background: rgba(232, 197, 71, 0.08);
  color: var(--gold-soft, #f0d878);
}

.fb-item summary {
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.fb-item summary::-webkit-details-marker {
  display: none;
}

.fb-thread {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.fb-thread li {
  padding: 0.55rem 0.7rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(232, 197, 71, 0.18);
  background: rgba(8, 12, 28, 0.45);
  white-space: pre-wrap;
}

.fb-thread .fb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted, #b8b0a0);
}

.fb-reply {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.fb-reply textarea {
  font: inherit;
  min-height: 88px;
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(232, 197, 71, 0.28);
  background: rgba(8, 12, 28, 0.65);
  color: var(--text, #f3ede0);
}

.fb-reply .btn {
  align-self: flex-start;
}

.stat-big {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--gold-soft, #f0d878);
  margin: 0.5rem 0 1rem;
}

.form-status[data-ok="1"] { color: #5ecf9b; }
.form-status[data-ok="0"] { color: #e85d75; }

.site-footer {
  margin-top: 2.5rem;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid rgba(232, 197, 71, 0.18);
  color: var(--muted, #b8b0a0);
  font-size: 0.88rem;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer a {
  color: var(--gold-soft, #f0d878);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.feedback-page {
  max-width: 36rem;
}

/* Legal / Terms pages — readable midnight+gold layout */
.legal-page {
  max-width: 44rem;
  padding-bottom: 2rem;
}

.legal-doc {
  padding: 1.5rem 1.35rem 2rem;
}

.legal-doc h1 {
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  color: var(--gold-soft, #f0d878);
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
}

.legal-doc h2 {
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-size: 1.1rem;
  color: var(--gold, #e8c547);
  margin: 1.75rem 0 0.65rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(232, 197, 71, 0.14);
}

.legal-doc section:first-of-type h2,
.legal-doc .legal-en h2 {
  border-top: none;
  padding-top: 0;
}

.legal-doc p,
.legal-doc li {
  color: var(--text, #f3ede0);
  line-height: 1.7;
  font-size: 0.98rem;
}

.legal-doc ul {
  margin: 0.4rem 0 0.8rem;
  padding-left: 1.25rem;
}

.legal-doc li + li {
  margin-top: 0.35rem;
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--text-muted, #b8b0a0);
  margin: 0 0 0.75rem;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin: 1.25rem 0 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(11, 16, 38, 0.45);
  border: 1px solid rgba(232, 197, 71, 0.16);
  font-size: 0.82rem;
}

.legal-toc a {
  color: var(--gold-soft, #f0d878);
  text-decoration: none;
}

.legal-toc a:hover {
  text-decoration: underline;
}

.legal-en {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(28, 37, 69, 0.55);
  border: 1px solid rgba(200, 205, 214, 0.16);
}

.legal-en h2 {
  margin-top: 0;
  color: var(--silver-soft, #e8eaef);
}

.legal-doc a:not(.btn) {
  color: var(--gold-soft, #f0d878);
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(232, 197, 71, 0.18);
}

@media (max-width: 560px) {
  .legal-doc {
    padding: 1.15rem 1rem 1.5rem;
  }

  .legal-toc {
    font-size: 0.78rem;
  }

  .fb-reply .btn {
    width: 100%;
  }
}

/* Consent interactive panel */
.consent-panel {
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.15rem 1.25rem;
  border-radius: 14px;
  background: rgba(11, 16, 38, 0.55);
  border: 1px solid rgba(232, 197, 71, 0.28);
  box-shadow: 0 0 28px rgba(232, 197, 71, 0.08);
}

.consent-panel h2 {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.consent-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.consent-check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(28, 37, 69, 0.55);
  border: 1px solid rgba(200, 205, 214, 0.14);
  cursor: pointer;
  line-height: 1.55;
  font-size: 0.92rem;
}

.consent-check input {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--gold, #e8c547);
  flex-shrink: 0;
}

.consent-check--required {
  border-color: rgba(232, 197, 71, 0.42);
  background: rgba(232, 197, 71, 0.08);
}

.consent-status {
  min-height: 1.4em;
  margin: 0;
  font-size: 0.88rem;
}

.consent-toast {
  border-color: rgba(232, 197, 71, 0.45);
}

.consent-toast .samta-toast-text a {
  color: var(--gold-soft, #f0d878);
}

.admin-live {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #5ecf9b;
  border: 1px solid rgba(94, 207, 155, 0.45);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
}

.admin-updated {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
}

.admin-drawer-link .app-nav-icon {
  width: 1.35rem;
  text-align: center;
  flex-shrink: 0;
}

.dwell-flag {
  font-size: 0.82rem;
  line-height: 1.35;
}

.dwell-flag.is-friction {
  color: #e85d75;
}

.dwell-flag.is-bounce {
  color: #d4c48a;
}

.admin-table tr.is-friction td {
  background: rgba(232, 93, 117, 0.08);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.tech-card {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(232, 197, 71, 0.2);
  border-radius: 0.5rem;
  background: rgba(20, 27, 51, 0.55);
  min-width: 0;
}

.tech-card span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted, #b8b0a0);
  margin-bottom: 0.25rem;
}

.tech-card strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--gold-soft, #f0d878);
}

.tech-card small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted, #b8b0a0);
  word-break: break-word;
}

.tech-card[data-ok="1"] {
  border-color: rgba(94, 207, 155, 0.4);
}

.tech-card[data-ok="0"] {
  border-color: rgba(232, 93, 117, 0.4);
}

.tech-notes {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted, #b8b0a0);
  font-size: 0.88rem;
  line-height: 1.5;
}

.tech-notes li + li {
  margin-top: 0.25rem;
}

.user-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin: 1rem 0 0.5rem;
}

.customer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.85rem 0 0.15rem;
}

.customer-stat {
  flex: 1 1 7.6rem;
  min-width: min(100%, 7.4rem);
  margin: 0;
  padding: 0.75rem 0.85rem;
}

.customer-stat--hero {
  flex: 1 1 10.5rem;
  min-width: min(100%, 9.5rem);
}

.customer-stat-delta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.4rem;
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted, #b8b0a0);
}

.customer-stat-delta[data-dir="up"] {
  color: #3ecf8e;
}

.customer-stat-delta[data-dir="down"] {
  color: #f07178;
}

.customer-stat-arrow {
  font-size: 1rem;
  line-height: 1;
}

.customer-stat-vs {
  font-weight: 500;
  color: var(--muted, #b8b0a0);
}

@media (max-width: 560px) {
  .customer-stat {
    flex: 1 1 calc(50% - 0.65rem);
  }

  .customer-stat--hero {
    flex: 1 1 100%;
  }
}

.user-search {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 12rem;
  min-width: 0;
  font-size: 0.92rem;
}

.user-search input,
.user-form select {
  width: 100%;
  min-height: 44px;
  font: inherit;
  padding: 0.55rem 0.75rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(232, 197, 71, 0.38);
  background: rgba(8, 12, 28, 0.88);
  color: #f8f4ea;
}

.user-toolbar .btn {
  min-height: 44px;
  min-width: 44px;
}

#customers-table {
  min-width: 72rem;
}

#dwell-table {
  min-width: 48rem;
}

#dwell-detail-table {
  min-width: 44rem;
}

.dwell-metric {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  min-width: 44px;
  margin: 0;
  padding: 0.3rem 0.45rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: var(--gold-soft, #f0d878);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.dwell-metric:hover,
.dwell-metric:focus-visible {
  background: rgba(232, 197, 71, 0.14);
  outline: 2px solid rgba(232, 197, 71, 0.55);
  outline-offset: 1px;
}

.dwell-detail {
  margin-top: 1rem;
}

.dwell-detail-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.dwell-detail-bar .btn {
  min-height: 44px;
  min-width: 44px;
}

.dwell-detail-heading {
  min-width: 0;
  flex: 1 1 12rem;
}

.dwell-detail-heading h2 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.dwell-detail-heading .muted {
  margin: 0;
  overflow-wrap: anywhere;
}

.revenue-search {
  flex: 1 1 16rem;
}

.user-demo-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  flex: 1 1 14rem;
  max-width: 100%;
  font-size: 0.95rem;
  line-height: 1.35;
  cursor: pointer;
}

.user-demo-toggle input {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: #e8c547;
}

.user-demo-note {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
}

.user-form {
  margin-top: 1rem;
  max-width: 36rem;
}

.user-form h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}

.user-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.user-row-actions .btn {
  min-height: 44px;
}

@media (max-width: 699px) {
  .user-demo-toggle {
    flex: 1 1 100%;
  }

  .user-toolbar .btn {
    flex: 1 1 auto;
  }
}

.env-form {
  max-width: 42rem;
}

.env-group {
  margin: 1.1rem 0;
  padding: 0.85rem 1rem 0.35rem;
  border: 1px solid rgba(232, 197, 71, 0.32);
  border-radius: 0.65rem;
  background: rgba(20, 27, 51, 0.72);
}

.env-group legend {
  color: #e8c547;
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-weight: 700;
  padding: 0 0.4rem;
}

.env-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  margin-bottom: 0.95rem;
  font-size: 0.92rem;
  color: #f3ede0;
}

.env-label {
  font-size: 0.88rem;
  color: #f3ede0;
  line-height: 1.35;
}

.env-field code {
  font-size: 0.86rem;
  color: #f0d878;
  word-break: break-all;
}

.env-field input,
.env-field select {
  width: 100%;
  min-height: 44px;
  min-width: 44px;
  font: inherit;
  padding: 0.55rem 0.75rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(232, 197, 71, 0.38);
  background: rgba(8, 12, 28, 0.88);
  color: #f8f4ea;
}

.env-masked {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.06em;
  color: #f3ede0;
}

.env-field-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.env-field-actions .btn {
  min-height: 44px;
}

.env-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  position: sticky;
  bottom: 0;
  padding: 0.85rem 0 1.25rem;
  background: linear-gradient(180deg, transparent, #0b1026 28%);
}

.revenue-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0.75rem 0 0.5rem;
}

.revenue-period {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
}

.revenue-period select,
.revenue-toolbar .btn {
  min-height: 44px;
  min-width: 44px;
  font: inherit;
}

.revenue-period select {
  padding: 0.45rem 0.7rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(232, 197, 71, 0.38);
  background: rgba(8, 12, 28, 0.88);
  color: #f8f4ea;
}

.lek-acc-weights {
  margin: 1rem 0 1.5rem;
}

.lek-acc-weight-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.lek-acc-weight {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
}

.lek-acc-weight input {
  width: 100%;
  max-width: 8rem;
  min-height: 44px;
  font: inherit;
  padding: 0.45rem 0.7rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(232, 197, 71, 0.38);
  background: rgba(8, 12, 28, 0.88);
  color: #f8f4ea;
}

@media (min-width: 640px) {
  .lek-acc-weight-fields {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 899px) {
  .admin-tabs {
    display: none;
  }

  .admin-menu-toggle {
    margin-left: auto;
  }

  .admin-top-inner {
    flex-wrap: nowrap;
  }

  .admin-panel h1 {
    font-size: 1.25rem;
  }

  .admin-body.has-app-sidebar .admin-top {
    z-index: 80;
  }
}

@media (min-width: 900px) {
  .admin-body.has-app-sidebar .admin-top {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .admin-body.has-app-sidebar .admin-main {
    padding-bottom: 2.5rem;
  }

  .admin-body.has-app-sidebar .admin-panel {
    display: block;
    min-width: 0;
  }

  .admin-body.has-app-sidebar .admin-panel[hidden] {
    display: none !important;
  }

  .admin-body.has-app-sidebar .table-wrap,
  .admin-body.has-app-sidebar .feedback-list {
    max-height: none;
  }
}

.admin-dialog {
  width: min(24rem, calc(100vw - 1.5rem));
  max-width: 100%;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid rgba(232, 197, 71, 0.38);
  border-radius: 16px;
  background: #12182e;
  color: #f8f4ea;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.admin-dialog::backdrop {
  background: rgba(6, 8, 18, 0.72);
}

.admin-dialog-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-dialog h2 {
  margin: 0;
  font-size: 1.15rem;
}

.admin-dialog .env-field input,
.admin-dialog .env-actions .btn {
  min-height: 44px;
  min-width: 44px;
}

.admin-dialog .env-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.name-locked {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.name-locked-label {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.btn-reveal-name {
  min-height: 44px;
  min-width: 44px;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  flex: 0 0 auto;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.88rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: visible;
  color: #1a1404;
  background: linear-gradient(135deg, var(--gold-soft, #f0d878), var(--gold, #e8c547));
  border-color: rgba(232, 197, 71, 0.55);
}
