/* Kelola Akses — selaras SitRoom / patriot topbar */

.ax-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(195, 154, 60, 0.12), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(28, 60, 122, 0.08), transparent 50%),
    #f4f6fa;
  color: #0b1330;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.ax-body.is-auth-gate .ax-app { display: none !important; }

.ax-app[hidden] { display: none !important; }

/* Auth gate: kartu lebih padat, logo center, tombol Google jelas */
.ax-body .auth-gate {
  background:
    radial-gradient(70% 45% at 18% 0%, rgba(227, 193, 111, 0.18) 0%, transparent 58%),
    radial-gradient(55% 40% at 90% 10%, rgba(58, 90, 160, 0.28) 0%, transparent 55%),
    linear-gradient(165deg, #0b1330 0%, #101b3d 45%, #0a1028 100%);
}
.ax-body .auth-card {
  max-width: 460px;
  padding: 40px 36px 32px;
  text-align: center;
  border: 1px solid rgba(227, 193, 111, 0.18);
}
.ax-body .auth-card__logo {
  display: block;
  margin: 0 auto 18px;
  width: 72px;
  height: 72px;
}
.ax-body .auth-card__title {
  font-size: 32px;
}
.ax-body .auth-card__btn {
  gap: 12px;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 15px;
}
.ax-body .auth-card__btn svg {
  flex-shrink: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.ax-main {
  max-width: 1180px;
  gap: 18px;
}

.ax-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  padding: 6px 2px 2px;
}

.ax-hero__kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a94a6;
}

.ax-hero__title {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0b1330;
}

.ax-hero__lead {
  margin: 8px 0 0;
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.55;
  color: #5b6577;
}

.ax-hero__lead strong {
  color: #0b1330;
  font-weight: 700;
}

.ax-hero__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.ax-pill {
  display: inline-flex;
  align-items: center;
  max-width: 280px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 19, 48, 0.06);
  border: 1px solid rgba(11, 19, 48, 0.08);
  font-size: 12px;
  font-weight: 650;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ax-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ax-stat {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(13, 19, 38, 0.04);
}

.ax-stat::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #1c3c7a, #c39a3c);
}

.ax-stat__num {
  font-family: Fraunces, Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  color: #0b1330;
  font-variant-numeric: tabular-nums;
}

.ax-stat__label {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
}

.ax-board {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.ax-panel {
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(13, 19, 38, 0.04);
  overflow: hidden;
}

.ax-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #eef2f7;
  background: linear-gradient(180deg, #fbfcfe 0%, #fff 100%);
}

.ax-panel__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  color: #0b1330;
}

.ax-panel__sub {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: #64748b;
}

.ax-search input {
  width: min(220px, 42vw);
  border: 1px solid #d8e0ec;
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  color: #0b1330;
  background: #fff;
}

.ax-search input:focus {
  outline: none;
  border-color: #1c3c7a;
  box-shadow: 0 0 0 3px rgba(28, 60, 122, 0.12);
}

.ax-list {
  list-style: none;
  margin: 0;
  padding: 10px;
  display: grid;
  gap: 8px;
  max-height: min(68vh, 760px);
  overflow: auto;
}

.ax-item {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  background: #fbfcfe;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.ax-item:hover {
  border-color: #d5dde9;
  background: #fff;
  box-shadow: 0 8px 20px -14px rgba(13, 19, 38, 0.35);
}

.ax-item.is-active {
  border-color: rgba(28, 60, 122, 0.35);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(28, 60, 122, 0.08);
}

.ax-item__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.ax-item__email {
  font-size: 13.5px;
  font-weight: 750;
  color: #0b1330;
  word-break: break-all;
}

.ax-item__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.ax-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.02em;
  background: rgba(28, 60, 122, 0.1);
  color: #1c3c7a;
  white-space: nowrap;
}

.ax-badge.is-viewer {
  background: rgba(100, 116, 139, 0.14);
  color: #475569;
}

.ax-badge.is-super {
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
}

.ax-item__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ax-mini {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 650;
  color: #334155;
  background: #eef2f7;
}

.ax-mini.is-all {
  background: rgba(195, 154, 60, 0.16);
  color: #8a6a1a;
}

.ax-empty {
  padding: 36px 18px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

.ax-panel--form {
  position: sticky;
  top: 78px;
}

.ax-form {
  display: grid;
  gap: 16px;
  padding: 16px 18px 18px;
}

.ax-fields {
  display: grid;
  gap: 12px;
}

.ax-field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.ax-field input,
.ax-field select {
  width: 100%;
  border: 1px solid #d8e0ec;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #0b1330;
  background: #fff;
}

.ax-field input:focus,
.ax-field select:focus {
  outline: none;
  border-color: #1c3c7a;
  box-shadow: 0 0 0 3px rgba(28, 60, 122, 0.12);
}

.ax-field input:disabled,
.ax-field select:disabled {
  background: #f1f5f9;
  color: #64748b;
}

.ax-dash-block {
  border: 1px solid #e6ebf3;
  border-radius: 14px;
  background: #f8fafc;
  padding: 12px;
}

.ax-dash-block__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 750;
  color: #334155;
}

.ax-dash-block__tools {
  display: flex;
  gap: 8px;
}

.ax-textbtn {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #1c3c7a;
  cursor: pointer;
}

.ax-textbtn:hover { text-decoration: underline; }

.ax-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ax-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
  user-select: none;
}

.ax-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ax-chip span {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid #d8e0ec;
  background: #fff;
  font-size: 12.5px;
  font-weight: 650;
  color: #334155;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.ax-chip:hover span {
  border-color: #b8c4d8;
}

.ax-chip input:checked + span {
  background: #0b1330;
  border-color: #0b1330;
  color: #fff;
  box-shadow: 0 6px 14px -8px rgba(11, 19, 48, 0.55);
}

.ax-chip input:disabled + span {
  opacity: 0.55;
  cursor: not-allowed;
}

.ax-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #0f766e;
  background: rgba(15, 118, 110, 0.08);
}

.ax-note.is-error {
  color: #b91c1c;
  background: rgba(185, 28, 28, 0.08);
}

.ax-form__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ax-danger {
  color: #b91c1c !important;
}

.ax-danger:hover {
  background: rgba(185, 28, 28, 0.06) !important;
}

@media (max-width: 960px) {
  .ax-board {
    grid-template-columns: 1fr;
  }
  .ax-panel--form {
    position: static;
  }
  .ax-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .ax-hero__meta {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  .ax-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ax-stats {
    grid-template-columns: 1fr;
  }
  .ax-panel__head {
    flex-direction: column;
    align-items: stretch;
  }
  .ax-search input {
    width: 100%;
  }
}
