@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("ens-alpha171-20260806-120223-a7ee-manrope-ext.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("ens-alpha171-20260806-120223-a7ee-manrope.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* Ens.az Admin Foundation — alpha.171 */
:root {
  color-scheme: light;
  --admin-bg: #f3f6fb;
  --admin-surface: #ffffff;
  --admin-surface-soft: #f8faff;
  --admin-ink: #101828;
  --admin-muted: #667085;
  --admin-line: #e5eaf2;
  --admin-blue: #155eef;
  --admin-blue-dark: #0b4bd4;
  --admin-green: #079455;
  --admin-red: #d92d20;
  --admin-shadow: 0 24px 70px rgba(16, 24, 40, .12);
  --admin-radius: 18px;
  font-family: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--admin-bg); color: var(--admin-ink); }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }

.ens-admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(21, 94, 239, .09), transparent 30rem),
    radial-gradient(circle at 90% 90%, rgba(21, 94, 239, .06), transparent 28rem),
    var(--admin-bg);
}
.admin-auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}
.admin-auth-card {
  width: min(100%, 460px);
  padding: 36px;
  border: 1px solid rgba(229, 234, 242, .92);
  border-radius: 24px;
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--admin-shadow);
}
.admin-brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.025em; }
.admin-brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--admin-blue), #3d7cff);
  color: #fff;
  box-shadow: 0 10px 24px rgba(21, 94, 239, .24);
}
.admin-brand__name { font-size: 22px; }
.admin-auth-card__intro { margin: 34px 0 25px; }
.admin-eyebrow { display: block; color: var(--admin-blue); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.admin-auth-card h1, .admin-topbar h1, .admin-panel-card h2, .admin-next-step h2 { margin: 8px 0 0; letter-spacing: -.035em; }
.admin-auth-card h1 { font-size: clamp(27px, 5vw, 34px); }
.admin-auth-card__intro p, .admin-status-card p, .admin-next-step p { color: var(--admin-muted); line-height: 1.55; }
.admin-login-form { display: grid; gap: 18px; }
.admin-field { display: grid; gap: 8px; color: #344054; font-size: 13px; font-weight: 700; }
.admin-field input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #fff;
  color: var(--admin-ink);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.admin-field input:focus { border-color: var(--admin-blue); box-shadow: 0 0 0 4px rgba(21, 94, 239, .11); }
.admin-primary-button, .admin-secondary-button {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}
.admin-primary-button { margin-top: 3px; background: var(--admin-blue); color: #fff; box-shadow: 0 12px 25px rgba(21, 94, 239, .22); }
.admin-primary-button:hover { background: var(--admin-blue-dark); }
.admin-secondary-button { padding: 0 18px; border: 1px solid var(--admin-line); background: #fff; color: #344054; }
.admin-secondary-button:hover { background: var(--admin-surface-soft); }
.admin-security-note { display: flex; gap: 9px; align-items: flex-start; margin-top: 24px; color: var(--admin-muted); font-size: 12px; line-height: 1.45; }
.admin-security-note__dot { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--admin-green); box-shadow: 0 0 0 4px rgba(7, 148, 85, .10); }
.admin-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; }
.admin-alert { margin: 0 0 20px; padding: 13px 15px; border-radius: 12px; font-size: 13px; line-height: 1.45; }
.admin-alert--error { border: 1px solid #fecdca; background: #fef3f2; color: #b42318; }
.admin-alert--info { border: 1px solid #b2ddff; background: #eff8ff; color: #175cd3; }

.admin-app-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 25px 18px;
  border-right: 1px solid var(--admin-line);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(16px);
}
.admin-brand--sidebar { padding: 0 10px 22px; }
.admin-navigation { display: grid; gap: 7px; margin-top: 15px; }
.admin-navigation__item {
  min-height: 48px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border-radius: 12px;
  color: #475467;
  font-size: 14px;
  font-weight: 700;
}
.admin-navigation__item.is-active { background: #eff4ff; color: var(--admin-blue); }
.admin-navigation__item.is-disabled { opacity: .55; cursor: not-allowed; }
.admin-navigation__item small { padding: 3px 7px; border-radius: 999px; background: #f2f4f7; font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.admin-navigation__icon { font-size: 18px; text-align: center; }
.admin-sidebar__footer { margin-top: auto; display: grid; gap: 8px; padding: 18px 10px 4px; border-top: 1px solid var(--admin-line); color: var(--admin-muted); font-size: 11px; overflow-wrap: anywhere; }
.admin-sidebar__status { display: flex; align-items: center; gap: 8px; color: #344054; font-weight: 700; }
.admin-sidebar__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--admin-green); }
.admin-main { min-width: 0; padding: 34px clamp(22px, 4vw, 56px) 60px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 30px; }
.admin-topbar h1 { font-size: clamp(27px, 3.2vw, 39px); }
.admin-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.admin-status-card, .admin-panel-card, .admin-next-step {
  border: 1px solid var(--admin-line);
  border-radius: var(--admin-radius);
  background: var(--admin-surface);
  box-shadow: 0 9px 28px rgba(16, 24, 40, .055);
}
.admin-status-card { position: relative; min-height: 205px; padding: 24px; }
.admin-status-card__label { color: var(--admin-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.admin-status-card strong { display: block; margin-top: 16px; font-size: 22px; letter-spacing: -.025em; }
.admin-status-card p { margin: 10px 0 36px; font-size: 13px; }
.admin-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border-radius: 999px; background: #f2f4f7; color: #475467; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.admin-badge--success { background: #ecfdf3; color: var(--admin-green); }
.admin-status-card .admin-badge { position: absolute; left: 24px; bottom: 22px; }
.admin-panel-card { margin-top: 20px; padding: 28px; }
.admin-panel-card__heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--admin-line); }
.admin-panel-card h2, .admin-next-step h2 { font-size: 24px; }
.admin-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 22px; }
.admin-checklist > div { display: grid; grid-template-columns: 32px 1fr; gap: 11px; padding: 16px; border-radius: 13px; background: var(--admin-surface-soft); }
.admin-checklist > div > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #dcfae6; color: var(--admin-green); font-weight: 900; }
.admin-checklist p { display: grid; gap: 5px; margin: 0; }
.admin-checklist strong { font-size: 13px; }
.admin-checklist small { color: var(--admin-muted); font-size: 11px; line-height: 1.45; }
.admin-next-step { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-top: 20px; padding: 28px; overflow: hidden; }
.admin-next-step p { max-width: 720px; margin-bottom: 0; font-size: 13px; }
.admin-next-step__number { color: #e8efff; font-size: 88px; font-weight: 900; line-height: .8; letter-spacing: -.08em; }

@media (max-width: 980px) {
  .admin-app-shell { grid-template-columns: 82px minmax(0, 1fr); }
  .admin-sidebar { padding-inline: 12px; }
  .admin-brand--sidebar .admin-brand__name, .admin-navigation__item span:not(.admin-navigation__icon), .admin-navigation__item small, .admin-sidebar__footer span:not(.admin-sidebar__status), .admin-sidebar__status { display: none; }
  .admin-brand--sidebar { justify-content: center; padding-inline: 0; }
  .admin-navigation__item { grid-template-columns: 1fr; padding: 0; }
  .admin-status-grid { grid-template-columns: 1fr; }
  .admin-status-card { min-height: 175px; }
}
@media (max-width: 680px) {
  .admin-auth-card { padding: 28px 22px; border-radius: 19px; }
  .admin-app-shell { display: block; }
  .admin-sidebar { position: static; width: 100%; height: auto; flex-direction: row; align-items: center; justify-content: space-between; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--admin-line); }
  .admin-brand--sidebar { padding: 0; }
  .admin-brand--sidebar .admin-brand__name { display: inline; }
  .admin-navigation { display: none; }
  .admin-sidebar__footer { margin: 0; padding: 0; border: 0; }
  .admin-sidebar__status { display: flex; font-size: 0; }
  .admin-main { padding: 25px 16px 44px; }
  .admin-topbar { align-items: flex-start; }
  .admin-topbar h1 { font-size: 27px; }
  .admin-secondary-button { min-height: 42px; padding-inline: 14px; }
  .admin-checklist { grid-template-columns: 1fr; }
  .admin-panel-card, .admin-next-step { padding: 22px; }
  .admin-next-step__number { display: none; }
}

/* Alpha.95 — Admin Team & Permissions */
.admin-topbar__description { max-width: 760px; margin: 9px 0 0; color: var(--admin-muted); font-size: 13px; line-height: 1.55; }
.admin-text-link, .admin-secondary-link { color: var(--admin-blue); font-size: 13px; font-weight: 800; }
.admin-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 12px;
  background: var(--admin-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(21, 94, 239, .18);
}
.admin-primary-link:hover { background: var(--admin-blue-dark); }
.admin-primary-button--inline { width: auto; min-width: 150px; padding-inline: 20px; }
.admin-panel-card--flush { padding: 0; overflow: hidden; }
.admin-panel-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--admin-line);
}
.admin-filter-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.admin-field--compact { min-width: 180px; }
.admin-field--compact:first-child { min-width: min(310px, 34vw); }
.admin-field select {
  width: 100%;
  height: 50px;
  padding: 0 40px 0 15px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #fff;
  color: var(--admin-ink);
  outline: none;
}
.admin-field select:focus { border-color: var(--admin-blue); box-shadow: 0 0 0 4px rgba(21, 94, 239, .11); }
.admin-field small { color: var(--admin-muted); font-size: 11px; font-weight: 500; line-height: 1.5; }
.admin-table-summary { padding: 16px 24px 0; color: var(--admin-muted); font-size: 12px; }
.admin-table-summary strong { color: var(--admin-ink); }
.admin-table-wrap { width: 100%; overflow-x: auto; padding: 15px 0 4px; }
.admin-table { width: 100%; min-width: 960px; border-collapse: collapse; font-size: 12px; }
.admin-table th {
  padding: 12px 18px;
  border-top: 1px solid var(--admin-line);
  border-bottom: 1px solid var(--admin-line);
  background: #f8faff;
  color: #667085;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .07em;
  text-align: left;
  text-transform: uppercase;
}
.admin-table td { padding: 16px 18px; border-bottom: 1px solid #edf0f5; vertical-align: middle; color: #475467; }
.admin-table tbody tr:hover { background: #fbfcff; }
.admin-table td > strong, .admin-table td > small { display: block; }
.admin-table td > small { margin-top: 4px; color: var(--admin-muted); }
.admin-table__actions-heading { min-width: 240px; }
.admin-user-cell { display: flex; align-items: center; gap: 11px; min-width: 220px; }
.admin-user-cell strong, .admin-user-cell small { display: block; }
.admin-user-cell strong { color: var(--admin-ink); font-size: 13px; }
.admin-user-cell small { margin-top: 4px; color: var(--admin-muted); font-size: 11px; }
.admin-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #eff4ff;
  color: var(--admin-blue);
  font-size: 14px;
  font-weight: 900;
}
.admin-role-chip, .admin-status-pill, .admin-method-chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}
.admin-role-chip { background: #f2f4f7; color: #344054; }
.admin-role-chip--super_admin { background: #fff4ed; color: #b54708; }
.admin-role-chip--admin { background: #eff4ff; color: #175cd3; }
.admin-role-chip--editor { background: #f4f3ff; color: #5925dc; }
.admin-status-pill.is-active { background: #ecfdf3; color: #067647; }
.admin-status-pill.is-inactive { background: #fef3f2; color: #b42318; }
.admin-method-chip { margin-right: 7px; border-radius: 7px; background: #f2f4f7; color: #344054; }
.admin-row-actions { display: flex; flex-wrap: wrap; gap: 6px 10px; min-width: 250px; }
.admin-row-actions a, .admin-row-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--admin-blue);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.admin-row-actions button.is-danger { color: var(--admin-red); }
.admin-row-actions button.is-success { color: var(--admin-green); }
.admin-muted-label { color: var(--admin-muted); font-size: 11px; font-weight: 700; }
.admin-empty-state { padding: 34px 20px; color: var(--admin-muted); text-align: center; }
.admin-pagination { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 18px 24px 23px; color: var(--admin-muted); font-size: 12px; }
.admin-pagination a { color: var(--admin-blue); font-weight: 800; }
.admin-form-card {
  max-width: 940px;
  padding: 28px;
  border: 1px solid var(--admin-line);
  border-radius: var(--admin-radius);
  background: var(--admin-surface);
  box-shadow: 0 9px 28px rgba(16, 24, 40, .055);
}
.admin-form-card--narrow { max-width: 650px; }
.admin-management-form { display: grid; gap: 26px; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.admin-form-grid--single { grid-template-columns: 1fr; }
.admin-field--full { grid-column: 1 / -1; }
.admin-form-note { padding: 14px 16px; border: 1px solid #b2ddff; border-radius: 12px; background: #eff8ff; color: #175cd3; font-size: 12px; line-height: 1.55; }
.admin-form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 18px; padding-top: 22px; border-top: 1px solid var(--admin-line); }
.admin-account-summary { display: grid; gap: 5px; margin-bottom: 24px; padding: 17px; border-radius: 13px; background: var(--admin-surface-soft); }
.admin-account-summary strong { font-size: 15px; }
.admin-account-summary span { color: var(--admin-muted); font-size: 12px; }
.admin-alert ul { margin: 8px 0 0; padding-left: 20px; }
.admin-activity-list { display: grid; }
.admin-activity-list__item { display: grid; grid-template-columns: 13px minmax(0, 1fr); gap: 12px; padding: 15px 0; border-bottom: 1px solid #edf0f5; }
.admin-activity-list__item:last-child { border-bottom: 0; }
.admin-activity-list__dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--admin-blue); box-shadow: 0 0 0 4px rgba(21, 94, 239, .09); }
.admin-activity-list strong, .admin-activity-list small { display: block; }
.admin-activity-list strong { font-size: 12px; }
.admin-activity-list small { margin-top: 4px; color: var(--admin-muted); font-size: 11px; }
.admin-table--audit { min-width: 1150px; }
.admin-table code { display: inline-block; max-width: 260px; overflow: hidden; color: #344054; font-size: 10px; text-overflow: ellipsis; vertical-align: middle; white-space: nowrap; }
.admin-code-label { display: block; margin-top: 5px; color: var(--admin-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.admin-meta-list { display: grid; gap: 4px; min-width: 175px; font-size: 10px; }
.admin-meta-list b { color: #344054; }
.admin-sidebar__footer a { color: var(--admin-blue); font-weight: 800; }

@media (max-width: 980px) {
  .admin-panel-toolbar { align-items: stretch; flex-direction: column; }
  .admin-primary-link { align-self: flex-start; }
  .admin-filter-form { width: 100%; }
  .admin-field--compact { flex: 1 1 190px; min-width: 0; }
  .admin-field--compact:first-child { min-width: 0; }
}
@media (max-width: 680px) {
  .admin-sidebar { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; }
  .admin-navigation { grid-column: 1 / -1; display: flex; width: 100%; margin: 0; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .admin-navigation::-webkit-scrollbar { display: none; }
  .admin-navigation__item { flex: 0 0 auto; min-height: 40px; grid-template-columns: auto auto; padding: 0 11px; white-space: nowrap; }
  .admin-navigation__item span:not(.admin-navigation__icon) { display: inline; }
  .admin-navigation__item small { display: none; }
  .admin-sidebar__footer { align-items: end; }
  .admin-sidebar__footer > span:not(.admin-sidebar__status), .admin-sidebar__footer > a { display: none; }
  .admin-topbar { gap: 12px; }
  .admin-topbar__description { font-size: 12px; }
  .admin-panel-toolbar { padding: 18px; }
  .admin-filter-form { display: grid; grid-template-columns: 1fr; }
  .admin-primary-link { width: 100%; }
  .admin-form-card { padding: 20px; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-field--full { grid-column: auto; }
  .admin-form-actions { align-items: stretch; flex-direction: column-reverse; }
  .admin-primary-button--inline, .admin-secondary-link { width: 100%; text-align: center; }
  .admin-pagination { padding-inline: 18px; }
}

/* Alpha.99 — News & Editorial Management */
.admin-status-grid--news { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-status-grid--news .admin-status-card { min-height: 205px; }
.admin-status-grid--news .admin-status-card > strong { font-variant-numeric: tabular-nums; }
.admin-status-grid--news .admin-text-link { margin-top: auto; }
.admin-panel-toolbar--news { align-items: flex-end; }
.admin-panel-toolbar--news .admin-filter-form { flex: 1 1 auto; }
.admin-panel-toolbar--news .admin-field--search { flex: 1 1 260px; }
.admin-table--news { min-width: 1180px; }
.admin-news-cell { display: flex; align-items: center; gap: 12px; min-width: 310px; }
.admin-news-cell img {
  flex: 0 0 auto;
  width: 64px;
  height: 44px;
  border: 1px solid #e4e7ec;
  border-radius: 9px;
  background: #f2f4f7;
  object-fit: cover;
}
.admin-news-cell strong, .admin-news-cell small { display: block; }
.admin-news-cell strong {
  max-width: 430px;
  overflow: hidden;
  color: var(--admin-ink);
  font-size: 12px;
  line-height: 1.42;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-news-cell small {
  max-width: 430px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--admin-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-news-cell__placeholder {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 64px;
  height: 44px;
  border: 1px dashed #d0d5dd;
  border-radius: 9px;
  background: #f9fafb;
  color: #98a2b3;
  font-size: 18px;
}
.admin-field textarea {
  width: 100%;
  min-height: 112px;
  padding: 14px 15px;
  resize: vertical;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #fff;
  color: var(--admin-ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.62;
  outline: none;
}
.admin-field textarea:focus { border-color: var(--admin-blue); box-shadow: 0 0 0 4px rgba(21, 94, 239, .11); }
.admin-editor-form { display: grid; gap: 22px; }
.admin-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 340px);
  gap: 22px;
  align-items: start;
}
.admin-editor-sidebar { display: grid; gap: 16px; position: sticky; top: 22px; }
.admin-form-card--editor-main, .admin-form-card--editor-side { max-width: none; }
.admin-form-card--editor-main { min-width: 0; }
.admin-form-card--editor-side { padding: 21px; }
.admin-form-card--editor-side h2 { margin: 0 0 17px; font-size: 14px; }
.admin-management-form--compact { gap: 16px; }
.admin-content-editor {
  min-height: 500px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 12px !important;
  line-height: 1.68 !important;
  tab-size: 2;
}
.admin-check-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 38px;
  padding: 10px 11px;
  border: 1px solid #e4e7ec;
  border-radius: 11px;
  background: #f9fafb;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}
.admin-check-field input { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; accent-color: var(--admin-blue); }
.admin-editor-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  position: sticky;
  bottom: 0;
  z-index: 4;
  padding: 15px 18px;
  border: 1px solid var(--admin-line);
  border-radius: 15px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 -8px 30px rgba(16,24,40,.07);
  backdrop-filter: blur(10px);
}
.admin-editor-actions > div { display: flex; align-items: center; gap: 10px; }
.admin-button-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.admin-form-card .admin-field select optgroup { font-weight: 850; }
.admin-form-card .admin-field select option { font-weight: 500; }

@media (max-width: 1200px) {
  .admin-status-grid--news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-editor-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 980px) {
  .admin-editor-layout { grid-template-columns: 1fr; }
  .admin-editor-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-form-card--editor-side:last-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .admin-status-grid--news { grid-template-columns: 1fr; }
  .admin-status-grid--news .admin-status-card { min-height: 175px; }
  .admin-editor-sidebar { grid-template-columns: 1fr; }
  .admin-form-card--editor-side:last-child { grid-column: auto; }
  .admin-content-editor { min-height: 360px !important; }
  .admin-editor-actions { position: static; align-items: stretch; flex-direction: column-reverse; }
  .admin-editor-actions > div { width: 100%; flex-direction: column; }
  .admin-editor-actions .admin-secondary-button,
  .admin-editor-actions .admin-primary-button,
  .admin-editor-actions .admin-secondary-link { width: 100%; text-align: center; }
  .admin-news-cell { min-width: 255px; }
  .admin-news-cell strong, .admin-news-cell small { max-width: 260px; }
}

/* Alpha.99 — Media Library + Visual Editor */
.admin-media-upload-card { margin-top: 0; }
.admin-media-upload-form { display: grid; gap: 18px; margin-top: 22px; }
.admin-media-dropzone {
  min-height: 170px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 28px;
  border: 1.5px dashed #98a2b3;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff, #f7f9fc);
  text-align: center;
  cursor: pointer;
}
.admin-media-dropzone:hover { border-color: var(--admin-blue); background: #f5f8ff; }
.admin-media-dropzone input { width: min(100%, 420px); }
.admin-media-dropzone strong { font-size: 18px; }
.admin-media-dropzone span { max-width: 660px; color: var(--admin-muted); font-size: 12px; line-height: 1.55; }
.admin-media-upload-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 22px 28px 30px; }
.admin-media-card { min-width: 0; overflow: hidden; border: 1px solid var(--admin-line); border-radius: 15px; background: #fff; box-shadow: 0 5px 18px rgba(16,24,40,.04); }
.admin-media-card__image { aspect-ratio: 4 / 3; overflow: hidden; background: #eef2f6; }
.admin-media-card__image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.admin-media-card__body { display: grid; gap: 9px; padding: 14px; }
.admin-media-card__title { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.admin-media-card__title strong { min-width: 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-media-card__body small { color: var(--admin-muted); font-size: 10px; }
.admin-media-card__body code, .admin-media-reference { display: block; overflow: hidden; padding: 8px 9px; border-radius: 8px; background: #f2f4f7; color: #475467; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.admin-media-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding-top: 4px; }
.admin-media-card__actions a, .admin-media-card__actions button { border: 0; background: none; color: var(--admin-blue); font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
.admin-media-card__actions button.is-danger { color: var(--admin-red); }
.admin-empty-state--media { margin: 24px 28px 30px; }
.admin-media-edit-layout { display: grid; grid-template-columns: minmax(280px, 440px) minmax(0, 1fr); gap: 30px; align-items: start; }
.admin-media-edit-preview { overflow: hidden; border-radius: 16px; background: #eef2f6; }
.admin-media-edit-preview img { width: 100%; height: auto; display: block; }
.admin-media-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-media-facts span { padding: 6px 9px; border-radius: 999px; background: #f2f4f7; color: #475467; font-size: 10px; font-weight: 800; }
.admin-editor-actions--inside { position: static; padding: 14px 0 0; border: 0; box-shadow: none; }

.admin-editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 9px; border: 1px solid #d0d5dd; border-bottom: 0; border-radius: 12px 12px 0 0; background: #f8fafc; }
.admin-editor-toolbar button { min-height: 32px; padding: 0 10px; border: 1px solid #dce2ea; border-radius: 8px; background: #fff; color: #344054; font-size: 11px; font-weight: 800; cursor: pointer; }
.admin-editor-toolbar button:hover { border-color: #98b6ff; color: var(--admin-blue); }
.admin-visual-editor { min-height: 500px; padding: 24px; overflow: auto; border: 1px solid #d0d5dd; border-radius: 0 0 12px 12px; background: #fff; color: #172033; font-size: 15px; line-height: 1.72; outline: none; }
.admin-visual-editor:focus { border-color: var(--admin-blue); box-shadow: 0 0 0 4px rgba(21,94,239,.08); }
.admin-visual-editor h2 { margin: 1.3em 0 .55em; font-size: 1.65em; }
.admin-visual-editor h3 { margin: 1.15em 0 .5em; font-size: 1.35em; }
.admin-visual-editor blockquote { margin: 1.2em 0; padding: 14px 18px; border-left: 4px solid var(--admin-blue); background: #f5f8ff; }
.admin-visual-editor img { max-width: 100%; height: auto; border-radius: 10px; }
.admin-visual-editor figure { margin: 22px 0; }
.admin-visual-editor figcaption { margin-top: 8px; color: var(--admin-muted); font-size: 12px; text-align: center; }
.has-admin-js .admin-editor-source { display: none; }
.admin-field.is-source-mode .admin-visual-editor { display: none; }
.admin-field.is-source-mode .admin-editor-source { display: block; min-height: 500px !important; border-radius: 0 0 12px 12px; }
.admin-media-reference-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.admin-media-reference-control button { min-width: 90px; border: 1px solid #b7c7e8; border-radius: 10px; background: #f5f8ff; color: var(--admin-blue); font-size: 11px; font-weight: 800; cursor: pointer; }
.admin-media-field-preview { min-height: 110px; display: grid; place-items: center; overflow: hidden; border: 1px solid #e4e7ec; border-radius: 11px; background: #f9fafb; }
.admin-media-field-preview img { width: 100%; height: 150px; display: block; object-fit: cover; }
.admin-media-field-preview span { display: none; color: var(--admin-muted); font-size: 11px; }
.admin-media-field-preview.is-empty span { display: block; }
.admin-media-field-preview.is-empty img { display: none; }

.admin-modal-open { overflow: hidden; }
.admin-media-picker[hidden] { display: none !important; }
.admin-media-picker { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 24px; }
.admin-media-picker__backdrop { position: absolute; inset: 0; background: rgba(16,24,40,.62); backdrop-filter: blur(4px); }
.admin-media-picker__dialog { position: relative; width: min(1040px, 100%); max-height: min(820px, calc(100vh - 48px)); display: grid; grid-template-rows: auto auto auto minmax(0,1fr); overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 30px 90px rgba(16,24,40,.28); }
.admin-media-picker__header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px 16px; border-bottom: 1px solid var(--admin-line); }
.admin-media-picker__header h2 { margin: 5px 0 0; font-size: 24px; }
.admin-media-picker__close { width: 40px; height: 40px; border: 1px solid var(--admin-line); border-radius: 10px; background: #fff; color: #475467; font-size: 24px; cursor: pointer; }
.admin-media-picker__tools { display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--admin-line); }
.admin-media-picker__tools input { min-width: 0; flex: 1; height: 44px; padding: 0 13px; border: 1px solid #d0d5dd; border-radius: 10px; }
.admin-media-picker__tools a { color: var(--admin-blue); font-size: 12px; font-weight: 800; white-space: nowrap; }
.admin-media-picker__status { padding: 18px 24px; color: var(--admin-muted); font-size: 12px; }
.admin-media-picker__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 18px 24px 24px; overflow: auto; }
.admin-media-picker-card { min-width: 0; overflow: hidden; padding: 0; border: 1px solid var(--admin-line); border-radius: 13px; background: #fff; text-align: left; cursor: pointer; }
.admin-media-picker-card:hover { border-color: #84a8ff; box-shadow: 0 0 0 3px rgba(21,94,239,.08); }
.admin-media-picker-card img { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: cover; background: #eef2f6; }
.admin-media-picker-card__body { display: grid; gap: 4px; padding: 10px; }
.admin-media-picker-card__body strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.admin-media-picker-card__body small { color: var(--admin-muted); font-size: 9px; }

@media (max-width: 1280px) {
  .admin-media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .admin-media-grid, .admin-media-picker__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-media-edit-layout { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .admin-media-upload-meta { grid-template-columns: 1fr; }
  .admin-media-grid { grid-template-columns: 1fr; padding: 16px; }
  .admin-media-picker { padding: 0; }
  .admin-media-picker__dialog { width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; }
  .admin-media-picker__tools { align-items: stretch; flex-direction: column; }
  .admin-media-picker__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .admin-editor-toolbar { gap: 4px; }
  .admin-editor-toolbar button { min-height: 36px; }
  .admin-visual-editor { min-height: 380px; padding: 16px; }
  .admin-media-reference-control { grid-template-columns: 1fr; }
  .admin-media-reference-control button { min-height: 42px; }
}

/* Alpha.99 — Categories + Special Content Management */
.admin-table--categories { min-width: 1080px; }
.admin-table--history { min-width: 1080px; }
.admin-inline-actions button:disabled {
  cursor: not-allowed;
  opacity: .45;
}
.admin-panel-card__heading--padded { padding: 22px 24px 0; }
.admin-editorial-assign-form {
  display: grid;
  grid-template-columns: minmax(180px, .55fr) minmax(240px, 1fr) auto;
  align-items: end;
  gap: 14px;
}
.admin-editorial-sections { display: grid; gap: 20px; margin-top: 20px; }
.admin-editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 20px 24px 24px;
}
.admin-editorial-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: #fff;
}
.admin-editorial-card > img {
  display: block;
  width: 100%;
  height: 155px;
  object-fit: cover;
  background: #f2f4f7;
}
.admin-editorial-card > div { padding: 16px; }
.admin-editorial-card h3 {
  margin: 10px 0 6px;
  font-size: 14px;
  line-height: 1.38;
}
.admin-editorial-card small { color: var(--admin-muted); }
.admin-editorial-card .admin-inline-actions { margin-top: 14px; }
@media (max-width: 1180px) {
  .admin-editorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .admin-editorial-assign-form { grid-template-columns: 1fr; }
  .admin-editorial-grid { grid-template-columns: 1fr; padding: 16px; }
  .admin-panel-card__heading--padded { padding: 18px 16px 0; }
}

/* alpha.171 — admin settings, operations and security hardening */
.admin-form-grid--settings {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 22px 24px 8px;
}
.admin-settings-form .admin-form-actions { padding: 12px 24px 24px; }
.admin-operation-note {
  padding: 4px 24px 24px;
  color: var(--admin-muted);
  line-height: 1.7;
}
.admin-operation-note code {
  display: inline-block;
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid var(--admin-line);
  border-radius: 6px;
  background: #f7f9fc;
  color: var(--admin-text);
  overflow-wrap: anywhere;
}
.admin-health-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.admin-health-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 44, 72, .04);
}
.admin-health-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.admin-health-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.admin-health-card.is-ok { border-top: 3px solid #28a36a; }
.admin-health-card.is-warning { border-top: 3px solid #dc8d24; }
.admin-status-grid--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-policy-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 24px 24px;
}
.admin-policy-strip span {
  padding: 15px 16px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  color: var(--admin-muted);
  background: #f9fbfd;
}
.admin-policy-strip b { color: var(--admin-text); }
.admin-operation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 24px 24px;
}
.admin-operation-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: #fff;
}
.admin-operation-card h3 { margin: 0 0 8px; font-size: 16px; }
.admin-operation-card p { flex: 1; margin: 0 0 18px; color: var(--admin-muted); line-height: 1.55; }
@media (max-width: 1240px) {
  .admin-health-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-operation-grid { grid-template-columns: 1fr; }
  .admin-operation-card { min-height: 0; }
}
@media (max-width: 840px) {
  .admin-form-grid--settings,
  .admin-health-grid,
  .admin-status-grid--compact,
  .admin-policy-strip { grid-template-columns: 1fr; }
  .admin-form-grid--settings { padding: 18px 16px 6px; }
  .admin-settings-form .admin-form-actions { padding: 12px 16px 18px; }
  .admin-operation-grid,
  .admin-policy-strip { padding: 0 16px 18px; }
  .admin-operation-note { padding: 0 16px 18px; }
}

/* alpha.171 — Google Authenticator, recovery codes and minimal login */
.admin-auth-shell--minimal {
  padding: 20px;
  background: #f5f7fb;
}
.admin-auth-card--minimal {
  width: min(100%, 390px);
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(16, 24, 40, .10);
}
.admin-auth-card--minimal .admin-login-form { gap: 15px; }
.admin-auth-card--minimal .admin-primary-button { width: 100%; }
.admin-login-error { margin-bottom: 16px; }
.admin-check-card {
  min-height: 86px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: #f9fbfd;
  color: #344054;
  cursor: pointer;
}
.admin-check-card input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--admin-blue); }
.admin-check-card > span { display: grid; gap: 5px; }
.admin-check-card strong { font-size: 13px; }
.admin-check-card small { color: var(--admin-muted); font-size: 11px; line-height: 1.45; }
.admin-two-factor-setup { padding: 28px; }
.admin-two-factor-setup__grid {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 26px;
}
.admin-qr-card {
  display: grid;
  place-items: center;
  min-height: 250px;
  padding: 18px;
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  background: #fff;
}
.admin-qr-code { width: min(100%, 220px); aspect-ratio: 1; }
.admin-qr-code svg { display: block; width: 100%; height: auto; }
.admin-two-factor-setup__content h2 { margin: 13px 0 8px; font-size: 24px; letter-spacing: -.03em; }
.admin-two-factor-setup__content p { margin: 0; color: var(--admin-muted); line-height: 1.65; }
.admin-secret-key {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: #f7f9fc;
}
.admin-secret-key code { flex: 1; min-width: 0; color: #1d2939; font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.admin-stat-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-stat-card { padding: 16px; border: 1px solid var(--admin-line); border-radius: 13px; background: #f9fbfd; }
.admin-stat-card span { display: block; color: var(--admin-muted); font-size: 11px; font-weight: 750; }
.admin-stat-card strong { display: block; margin-top: 7px; font-size: 15px; }
.admin-form-card--danger { border-color: #fecdca; background: #fffafa; }
.admin-danger-button {
  min-height: 44px;
  padding: 0 17px;
  border: 0;
  border-radius: 12px;
  background: var(--admin-red);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}
.admin-danger-button:hover { filter: brightness(.94); }
.admin-form-card--narrow { width: min(100%, 760px); }
.admin-recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.admin-recovery-codes code {
  padding: 13px 14px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: #f7f9fc;
  color: #1d2939;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: center;
}
.admin-account-summary { display: grid; gap: 4px; margin-bottom: 18px; }
.admin-account-summary strong { font-size: 18px; }
.admin-account-summary span { color: var(--admin-muted); }
.admin-badge--warning { background: #fff4e5; color: #b54708; }
.admin-status-grid--compact { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1180px) {
  .admin-status-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 840px) {
  .admin-two-factor-setup { padding: 20px; }
  .admin-two-factor-setup__grid { grid-template-columns: 1fr; }
  .admin-qr-card { width: min(100%, 290px); margin-inline: auto; }
  .admin-stat-grid,
  .admin-stat-grid--compact,
  .admin-status-grid--compact { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .admin-auth-card--minimal { padding: 22px 18px; border-radius: 15px; }
  .admin-recovery-codes { grid-template-columns: 1fr; }
  .admin-secret-key { align-items: stretch; flex-direction: column; }
}
.admin-setting-lock-card {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  border: 1px solid #b7ebcd;
  border-radius: 12px;
  background: #f1fcf5;
}
.admin-setting-lock-card span { color: #475467; font-size: 12px; font-weight: 800; }
.admin-setting-lock-card strong { color: var(--admin-green); font-size: 17px; }
.admin-setting-lock-card small { color: var(--admin-muted); font-size: 11px; line-height: 1.45; }

/* alpha.171 — in-context media upload inside the news editor */
.admin-media-picker__dialog { grid-template-rows: auto auto auto auto minmax(0, 1fr); }
.admin-media-inline-upload {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(160px, .8fr) minmax(160px, .8fr) auto;
  align-items: end;
  gap: 10px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--admin-line);
  background: #f8fafc;
}
.admin-media-inline-upload label { min-width: 0; display: grid; gap: 6px; }
.admin-media-inline-upload label > span { color: #344054; font-size: 10px; font-weight: 800; }
.admin-media-inline-upload input[type="text"],
.admin-media-inline-upload input[type="file"] {
  min-width: 0;
  width: 100%;
  height: 42px;
  padding: 0 10px;
  border: 1px solid #d0d5dd;
  border-radius: 9px;
  background: #fff;
  font: inherit;
  font-size: 11px;
}
.admin-media-inline-upload input[type="file"] { padding: 8px 10px; }
.admin-media-inline-upload > small {
  grid-column: 1 / -1;
  min-height: 16px;
  color: var(--admin-muted);
  font-size: 10px;
}
@media (max-width: 980px) {
  .admin-media-inline-upload { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-media-inline-upload .admin-primary-button { min-height: 42px; }
}
@media (max-width: 680px) {
  .admin-media-inline-upload { grid-template-columns: 1fr; padding: 12px; }
  .admin-media-inline-upload > small { grid-column: auto; }
}

/* alpha.171 — premium admin UI/UX redesign */
:root {
  --admin-bg: #f6f8fc;
  --admin-surface: #ffffff;
  --admin-surface-soft: #f3f6fb;
  --admin-surface-hover: #f8faff;
  --admin-ink: #101828;
  --admin-ink-strong: #09172f;
  --admin-muted: #667085;
  --admin-muted-light: #98a2b3;
  --admin-line: #e4e9f2;
  --admin-line-strong: #d4dbe7;
  --admin-blue: #0d4ee8;
  --admin-blue-dark: #0a3dbb;
  --admin-blue-soft: #eaf0ff;
  --admin-navy: #10294d;
  --admin-navy-deep: #0b1f3b;
  --admin-green: #079455;
  --admin-amber: #dc6803;
  --admin-violet: #7a5af8;
  --admin-cyan: #0891b2;
  --admin-red: #d92d20;
  --admin-radius: 16px;
  --admin-radius-sm: 11px;
  --admin-shadow: 0 18px 48px rgba(30, 43, 68, .08);
  --admin-shadow-soft: 0 8px 24px rgba(30, 43, 68, .055);
  --admin-sidebar-width: 248px;
  font-family: "Manrope Variable", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

html { background: var(--admin-bg); }
body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--admin-bg);
  color: var(--admin-ink);
  font-family: "Manrope Variable", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  z-index: 99;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
body.admin-sidebar-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
::selection { background: var(--admin-blue); color: #fff; }
:focus-visible { outline: 3px solid rgba(13, 78, 232, .25); outline-offset: 3px; }
[hidden] { display: none !important; }

.ens-admin-body {
  background:
    radial-gradient(circle at 72% -15%, rgba(13, 78, 232, .055), transparent 29rem),
    var(--admin-bg);
}

/* Shell */
.admin-app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--admin-sidebar-width) minmax(0, 1fr);
  background: transparent;
}
.admin-main {
  min-width: 0;
  padding: 26px clamp(24px, 3.2vw, 48px) 56px;
}
.admin-main > * { max-width: 1540px; margin-inline: auto; }

/* Sidebar */
.admin-sidebar {
  position: sticky;
  z-index: 42;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 14px 16px;
  overflow: hidden auto;
  border-right: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(50, 122, 255, .18), transparent 16rem),
    linear-gradient(180deg, var(--admin-navy) 0%, var(--admin-navy-deep) 100%);
  color: #e8eef8;
  box-shadow: 16px 0 42px rgba(10, 29, 57, .08);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.16) transparent;
}
.admin-sidebar__header { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 8px 17px; border-bottom: 1px solid rgba(255,255,255,.09); }
.admin-brand--sidebar { min-width: 0; display: inline-flex; align-items: center; gap: 10px; padding: 0; color: #fff; }
.admin-brand__mark, .admin-auth-brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(145deg, #2f8cff, #0d4ee8);
  box-shadow: 0 8px 20px rgba(31, 111, 255, .35);
}
.admin-brand__mark i, .admin-auth-brand__mark i,
.admin-brand__mark b, .admin-auth-brand__mark b { position: absolute; display: block; content: ""; border-radius: 999px; transform: rotate(-32deg); }
.admin-brand__mark i, .admin-auth-brand__mark i { width: 9px; height: 24px; left: 7px; top: 5px; background: rgba(255,255,255,.98); }
.admin-brand__mark b, .admin-auth-brand__mark b { width: 9px; height: 19px; right: 6px; bottom: 3px; background: rgba(89, 221, 255, .95); }
.admin-brand__name { color: #fff; font-size: 22px; font-weight: 760; letter-spacing: -.045em; }
.admin-sidebar__close { display: none; width: 38px; height: 38px; place-items: center; padding: 0; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.admin-sidebar__close svg { width: 18px; height: 18px; }
.admin-navigation { display: grid; gap: 20px; margin: 19px 0 24px; }
.admin-navigation__group { display: grid; gap: 5px; }
.admin-navigation__label { padding: 0 12px 5px; color: rgba(201, 214, 234, .55); font-size: 9px; font-weight: 760; letter-spacing: .14em; text-transform: uppercase; }
.admin-navigation__item {
  position: relative;
  min-height: 43px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border-radius: 11px;
  color: #cad5e6;
  font-size: 12.5px;
  font-weight: 610;
  letter-spacing: -.005em;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}
.admin-navigation__item:hover { background: rgba(255,255,255,.075); color: #fff; transform: translateX(2px); }
.admin-navigation__item.is-active {
  background: linear-gradient(135deg, #2e73ff 0%, #1458ea 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(13, 78, 232, .32), inset 0 1px 0 rgba(255,255,255,.17);
}
.admin-navigation__item.is-active::after { position: absolute; right: -14px; width: 3px; height: 22px; border-radius: 3px 0 0 3px; background: #64d9ff; content: ""; }
.admin-navigation__icon { width: 20px; height: 20px; display: grid; place-items: center; font-size: 0; }
.admin-navigation__icon svg { width: 18px; height: 18px; }
.admin-sidebar__footer { margin-top: auto; display: grid; gap: 10px; padding: 15px 8px 0; border-top: 1px solid rgba(255,255,255,.09); color: #c9d5e7; }
.admin-sidebar__session { display: flex; align-items: center; gap: 8px; color: #afbdd1; font-size: 10px; font-weight: 600; }
.admin-sidebar__session i { width: 7px; height: 7px; border-radius: 50%; background: #32d583; box-shadow: 0 0 0 4px rgba(50, 213, 131, .11); }
.admin-profile-card { display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 10px; padding: 11px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: rgba(255,255,255,.055); }
.admin-profile-card__avatar, .admin-topbar__profile > span { display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #f5c2d8, #d68bc4); color: #fff; font-weight: 750; }
.admin-profile-card__avatar { width: 38px; height: 38px; }
.admin-profile-card__identity { min-width: 0; display: grid; gap: 2px; }
.admin-profile-card__identity strong { overflow: hidden; color: #fff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.admin-profile-card__identity small { color: #aebdd1; font-size: 9.5px; }
.admin-profile-card__links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.admin-profile-card__links a { min-width: 0; display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 8px; background: rgba(255,255,255,.045); color: #bdcaDC; font-size: 9px; font-weight: 650; transition: background 160ms ease, color 160ms ease; }
.admin-profile-card__links a:hover { background: rgba(255,255,255,.10); color: #fff; }
.admin-profile-card__links svg { flex: 0 0 auto; width: 13px; height: 13px; }
.admin-profile-card__links span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-sidebar__email { overflow: hidden; color: #8496ae; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.admin-sidebar__version { color: rgba(181, 196, 218, .42); font-size: 8.5px; text-align: center; }
.admin-sidebar-backdrop { display: none; }

/* Page header */
.admin-topbar {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 24px;
}
.admin-topbar__lead { min-width: 0; display: flex; align-items: flex-start; gap: 12px; }
.admin-mobile-menu { display: none; flex: 0 0 auto; width: 42px; height: 42px; place-items: center; padding: 0; border: 1px solid var(--admin-line); border-radius: 11px; background: #fff; color: var(--admin-ink); box-shadow: var(--admin-shadow-soft); cursor: pointer; }
.admin-mobile-menu svg { width: 19px; height: 19px; }
.admin-eyebrow { display: block; margin-bottom: 5px; color: var(--admin-blue); font-size: 9px; font-weight: 780; letter-spacing: .13em; line-height: 1.2; text-transform: uppercase; }
.admin-topbar h1 { margin: 0; color: var(--admin-ink-strong); font-size: clamp(27px, 3vw, 36px); font-weight: 720; letter-spacing: -.048em; line-height: 1.12; }
.admin-topbar__description { max-width: 760px; margin: 7px 0 0; color: var(--admin-muted); font-size: 12px; line-height: 1.55; }
.admin-topbar__actions { display: flex; align-items: center; gap: 9px; padding-top: 1px; }
.admin-icon-button { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--admin-line); border-radius: 11px; background: #fff; color: #344054; font-size: 11px; font-weight: 680; box-shadow: 0 4px 12px rgba(31, 43, 68, .035); transition: border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.admin-icon-button:hover { border-color: #c8d3e6; background: #fafdff; transform: translateY(-1px); }
.admin-icon-button svg { width: 16px; height: 16px; }
.admin-topbar__profile { display: grid; grid-template-columns: 36px auto; align-items: center; gap: 9px; padding: 3px 11px 3px 3px; border: 1px solid var(--admin-line); border-radius: 12px; background: #fff; }
.admin-topbar__profile > span { width: 34px; height: 34px; font-size: 11px; }
.admin-topbar__profile div { display: grid; gap: 1px; }
.admin-topbar__profile strong { max-width: 150px; overflow: hidden; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.admin-topbar__profile small { color: var(--admin-muted); font-size: 9px; }
.admin-logout-button { min-width: 42px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; }
.admin-logout-button svg { width: 16px; height: 16px; }

/* Buttons and links */
.admin-primary-button, .admin-secondary-button, .admin-danger-button, .admin-primary-link, .admin-secondary-link {
  min-height: 44px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: -.005em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}
.admin-primary-button, .admin-primary-link { border: 1px solid transparent; background: linear-gradient(135deg, #2166f3, var(--admin-blue)); color: #fff; box-shadow: 0 10px 22px rgba(13, 78, 232, .19); }
.admin-primary-button:hover, .admin-primary-link:hover { background: linear-gradient(135deg, #1559e8, var(--admin-blue-dark)); transform: translateY(-1px); box-shadow: 0 13px 28px rgba(13, 78, 232, .23); }
.admin-secondary-button, .admin-secondary-link { border: 1px solid var(--admin-line-strong); background: #fff; color: #344054; box-shadow: none; }
.admin-secondary-button:hover, .admin-secondary-link:hover { border-color: #b9c5d8; background: #f8faff; transform: translateY(-1px); }
.admin-primary-link, .admin-secondary-link { display: inline-flex; align-items: center; justify-content: center; padding: 0 15px; }
.admin-primary-button--inline { min-height: 44px; padding: 0 17px; }
.admin-danger-button { border: 1px solid #d92d20; background: #d92d20; color: #fff; }
.admin-secondary-button.is-danger { border-color: #f3c2be; color: var(--admin-red); }
.admin-text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--admin-blue); font-size: 10.5px; font-weight: 760; }
.admin-text-link:hover { color: var(--admin-blue-dark); }

/* Alerts */
.admin-alert { position: relative; margin: 0 auto 18px; padding: 13px 15px 13px 42px; border-radius: 12px; font-size: 11px; line-height: 1.55; box-shadow: 0 6px 18px rgba(31,43,68,.035); }
.admin-alert::before { position: absolute; left: 15px; top: 13px; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; content: "i"; font-size: 10px; font-weight: 800; }
.admin-alert--info { border: 1px solid #bfdbfe; background: #eff6ff; color: #175cd3; }
.admin-alert--info::before { background: #dbeafe; color: #175cd3; }
.admin-alert--error { border: 1px solid #fecdca; background: #fff4f3; color: #b42318; }
.admin-alert--error::before { background: #fee4e2; color: #b42318; content: "!"; }

/* Shared panels */
.admin-panel-card, .admin-form-card, .admin-status-card, .admin-next-step {
  border: 1px solid var(--admin-line);
  border-radius: var(--admin-radius);
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow-soft);
}
.admin-panel-card { margin-top: 18px; padding: 24px; }
.admin-panel-card--flush { padding: 0; overflow: hidden; }
.admin-panel-card__heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--admin-line); }
.admin-panel-card__heading h2 { margin: 0; color: var(--admin-ink-strong); font-size: 18px; font-weight: 700; letter-spacing: -.03em; line-height: 1.25; }
.admin-panel-card__heading p { max-width: 680px; margin: 6px 0 0; color: var(--admin-muted); font-size: 10.5px; line-height: 1.55; }
.admin-panel-card__heading--padded { padding: 22px 24px 18px; }
.admin-badge, .admin-role-chip, .admin-status-pill, .admin-method-chip { border-radius: 999px; font-size: 8.5px; font-weight: 780; letter-spacing: .04em; }
.admin-badge { min-height: 24px; padding: 0 9px; background: #eef2f6; color: #475467; }
.admin-badge--success { background: #eafbf2; color: #067647; }
.admin-badge--warning { background: #fff6e8; color: #b54708; }

/* Dashboard metrics */
.admin-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.admin-metric-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-metric-card {
  position: relative;
  min-width: 0;
  min-height: 136px;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) auto;
  align-items: start;
  gap: 13px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  background: #fff;
  color: inherit;
  box-shadow: var(--admin-shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.admin-metric-card::after { position: absolute; right: -35px; bottom: -45px; width: 100px; height: 100px; border-radius: 50%; background: currentColor; opacity: .035; content: ""; }
.admin-metric-card:hover { transform: translateY(-3px); border-color: #cfd8e7; box-shadow: var(--admin-shadow); }
.admin-metric-card__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; }
.admin-metric-card__icon svg { width: 20px; height: 20px; }
.admin-metric-card__body { min-width: 0; display: grid; }
.admin-metric-card__body small { color: var(--admin-muted); font-size: 10px; font-style: normal; font-weight: 650; }
.admin-metric-card__body strong { margin-top: 6px; color: var(--admin-ink-strong); font-size: 25px; font-weight: 720; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.admin-metric-card__body em { margin-top: 9px; color: var(--admin-muted-light); font-size: 8.5px; font-style: normal; }
.admin-metric-card__arrow { align-self: center; color: #b5c0d0; font-size: 16px; transition: transform 180ms ease, color 180ms ease; }
.admin-metric-card:hover .admin-metric-card__arrow { color: currentColor; transform: translateX(2px); }
.admin-metric-card--blue { color: var(--admin-blue); }
.admin-metric-card--blue .admin-metric-card__icon { background: #edf3ff; }
.admin-metric-card--violet { color: var(--admin-violet); }
.admin-metric-card--violet .admin-metric-card__icon { background: #f2efff; }
.admin-metric-card--green { color: var(--admin-green); }
.admin-metric-card--green .admin-metric-card__icon { background: #eafbf2; }
.admin-metric-card--amber { color: var(--admin-amber); }
.admin-metric-card--amber .admin-metric-card__icon { background: #fff5e8; }
.admin-dashboard-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(360px,.85fr); gap: 18px; }
.admin-dashboard-grid .admin-panel-card { min-width: 0; }
.admin-dashboard-activity .admin-activity-list { margin-top: 2px; }
.admin-activity-list__item { grid-template-columns: 11px minmax(0,1fr); gap: 12px; padding: 14px 2px; border-bottom: 1px solid #edf0f5; }
.admin-activity-list__dot { width: 8px; height: 8px; margin-top: 5px; background: var(--admin-blue); box-shadow: 0 0 0 4px rgba(13,78,232,.08); }
.admin-activity-list strong { color: #344054; font-size: 10.5px; font-weight: 680; }
.admin-activity-list small { margin-top: 4px; color: var(--admin-muted); font-size: 9px; }
.admin-quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; padding-top: 16px; }
.admin-quick-actions a { min-width: 0; display: grid; grid-template-columns: 35px minmax(0,1fr); grid-template-rows: auto auto; align-items: center; gap: 1px 10px; padding: 12px; border: 1px solid var(--admin-line); border-radius: 12px; background: #fff; transition: border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.admin-quick-actions a:hover { border-color: #c9d4e5; background: #f9fbff; transform: translateY(-1px); }
.admin-quick-actions a > span { grid-row: 1 / 3; width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; font-size: 16px; font-weight: 700; }
.admin-quick-actions strong { overflow: hidden; color: #344054; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-quick-actions small { color: var(--admin-muted-light); font-size: 8px; }
.admin-quick-actions .is-blue { background: #edf3ff; color: var(--admin-blue); }
.admin-quick-actions .is-violet { background: #f2efff; color: var(--admin-violet); }
.admin-quick-actions .is-green { background: #eafbf2; color: var(--admin-green); }
.admin-quick-actions .is-amber { background: #fff5e8; color: var(--admin-amber); }
.admin-quick-actions .is-rose { background: #fff0f4; color: #e83e72; }
.admin-quick-actions .is-cyan { background: #e9f9fc; color: var(--admin-cyan); }
.admin-security-summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; padding-top: 18px; }
.admin-security-summary > div { min-width: 0; padding: 15px; border: 1px solid var(--admin-line); border-radius: 12px; background: var(--admin-surface-soft); }
.admin-security-summary span { display: block; color: var(--admin-muted); font-size: 8.5px; font-weight: 720; letter-spacing: .04em; text-transform: uppercase; }
.admin-security-summary strong { display: block; margin-top: 6px; color: #344054; font-size: 11.5px; }
.admin-security-summary small { display: block; margin-top: 4px; color: var(--admin-muted); font-size: 8.5px; line-height: 1.5; }

/* Toolbars and filters */
.admin-panel-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--admin-line); background: #fff; }
.admin-filter-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.admin-field { gap: 7px; color: #344054; font-size: 10px; font-weight: 690; }
.admin-field > span { display: block; }
.admin-field--compact { flex: 0 1 170px; min-width: 145px; }
.admin-field--compact:first-child, .admin-field--search { min-width: 230px; }
.admin-field input, .admin-field select, .admin-field textarea {
  width: 100%;
  border: 1px solid var(--admin-line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--admin-ink);
  outline: none;
  box-shadow: 0 1px 2px rgba(16,24,40,.025);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.admin-field input, .admin-field select { height: 44px; padding: 0 12px; font-size: 11px; }
.admin-field textarea { min-height: 112px; padding: 12px; font-size: 11px; line-height: 1.65; }
.admin-field input:hover, .admin-field select:hover, .admin-field textarea:hover { border-color: #bdc8d9; }
.admin-field input:focus, .admin-field select:focus, .admin-field textarea:focus { border-color: var(--admin-blue); background: #fff; box-shadow: 0 0 0 4px rgba(13,78,232,.09); }
.admin-field input::placeholder, .admin-field textarea::placeholder { color: #a5afbf; }
.admin-field small { color: var(--admin-muted); font-size: 9px; font-weight: 480; line-height: 1.5; }
.admin-field select { appearance: auto; }

/* Tables */
.admin-table-summary { display: flex; align-items: center; min-height: 42px; padding: 0 22px; border-bottom: 1px solid var(--admin-line); background: #fbfcfe; color: var(--admin-muted); font-size: 9.5px; }
.admin-table-summary strong { margin-right: 4px; color: var(--admin-ink); }
.admin-table-wrap { width: 100%; overflow-x: auto; padding: 0; }
.admin-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 10px; }
.admin-table th { padding: 12px 16px; border-top: 0; border-bottom: 1px solid var(--admin-line); background: #f7f9fc; color: #667085; font-size: 8.5px; font-weight: 760; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid #edf0f5; color: #475467; vertical-align: middle; }
.admin-table tbody tr { transition: background 140ms ease; }
.admin-table tbody tr:hover { background: #f9fbff; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table td > small { margin-top: 3px; color: var(--admin-muted); font-size: 8.5px; }
.admin-table__actions-heading { min-width: 210px; }
.admin-user-cell { gap: 10px; min-width: 210px; }
.admin-user-cell strong { color: var(--admin-ink); font-size: 10.5px; }
.admin-user-cell small { margin-top: 2px; font-size: 8.5px; }
.admin-avatar { width: 34px; height: 34px; border-radius: 10px; background: #edf3ff; color: var(--admin-blue); font-size: 11px; }
.admin-role-chip, .admin-status-pill, .admin-method-chip { min-height: 23px; padding: 0 8px; }
.admin-role-chip--super_admin { background: #fff1e8; color: #b54708; }
.admin-role-chip--admin { background: #edf3ff; color: #175cd3; }
.admin-role-chip--editor { background: #f2efff; color: #6941c6; }
.admin-status-pill.is-active { background: #eafbf2; color: #067647; }
.admin-status-pill.is-inactive { background: #fff1f0; color: #b42318; }
.admin-row-actions { min-width: 220px; gap: 5px 9px; }
.admin-row-actions a, .admin-row-actions button { color: var(--admin-blue); font-size: 9px; font-weight: 720; }
.admin-row-actions a:hover, .admin-row-actions button:hover { text-decoration: underline; text-underline-offset: 3px; }
.admin-empty-state { display: grid; place-items: center; gap: 4px; padding: 40px 20px; color: var(--admin-muted); font-size: 10px; text-align: center; }
.admin-empty-state strong { color: #344054; font-size: 11px; }
.admin-empty-state--compact { min-height: 210px; }
.admin-pagination { min-height: 62px; padding: 14px 22px; border-top: 1px solid var(--admin-line); background: #fbfcfe; font-size: 9.5px; }
.admin-pagination a { color: var(--admin-blue); font-weight: 740; }

/* Forms and editor */
.admin-form-card { max-width: 980px; padding: 24px; }
.admin-form-card--narrow { width: min(100%, 760px); }
.admin-management-form { gap: 22px; }
.admin-form-grid { gap: 17px; }
.admin-form-note { padding: 13px 14px; border: 1px solid #bfdbfe; border-radius: 11px; background: #eff6ff; color: #175cd3; font-size: 9.5px; }
.admin-form-actions { gap: 12px; padding-top: 18px; }
.admin-editor-layout { grid-template-columns: minmax(0,1fr) minmax(280px, 330px); gap: 18px; }
.admin-editor-sidebar { gap: 12px; top: 18px; }
.admin-form-card--editor-main { padding: 22px; }
.admin-form-card--editor-side { padding: 18px; }
.admin-form-card--editor-side h2 { margin: 0 0 14px; color: var(--admin-ink-strong); font-size: 12px; font-weight: 720; }
.admin-management-form--compact { gap: 13px; }
.admin-visual-editor { overflow: hidden; border: 1px solid var(--admin-line-strong); border-radius: 12px; background: #fff; }
.admin-editor-toolbar { gap: 4px; padding: 8px; border-bottom: 1px solid var(--admin-line); background: #f7f9fc; }
.admin-editor-toolbar button { min-width: 32px; height: 30px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #475467; font-size: 10px; font-weight: 700; }
.admin-editor-toolbar button:hover { border-color: var(--admin-line); background: #fff; color: var(--admin-blue); }
.admin-editor-surface { min-height: 460px; padding: 18px; color: #24324a; font-size: 13px; line-height: 1.75; }
.admin-content-editor { min-height: 460px !important; }
.admin-editor-actions { position: sticky; z-index: 15; bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid rgba(214,222,234,.92); border-radius: 14px; background: rgba(255,255,255,.93); box-shadow: 0 14px 38px rgba(27,40,65,.13); backdrop-filter: blur(14px); }
.admin-editor-actions > div { display: flex; align-items: center; gap: 8px; }
.admin-check-card { position: relative; min-height: 76px; gap: 11px; padding: 13px; border: 1px solid var(--admin-line); border-radius: 11px; background: #f9fbfd; transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.admin-check-card:hover { border-color: #c4cfdf; background: #fff; }
.admin-check-card:has(input:checked) { border-color: rgba(13,78,232,.38); background: #f2f6ff; box-shadow: 0 0 0 3px rgba(13,78,232,.055); }
.admin-check-card input[type="checkbox"] { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--admin-blue); }
.admin-check-card strong { color: #344054; font-size: 10.5px; }
.admin-check-card small { color: var(--admin-muted); font-size: 8.7px; }
.admin-setting-lock-card { min-height: 105px; border-color: #b7ebcd; border-radius: 12px; background: linear-gradient(145deg, #f2fcf6, #effbf5); }
.admin-setting-lock-card span { font-size: 9px; }
.admin-setting-lock-card strong { font-size: 14px; }
.admin-setting-lock-card small { font-size: 8.5px; }
.admin-form-grid--settings { gap: 14px; padding: 20px 22px 8px; }
.admin-settings-form .admin-form-actions { padding: 12px 22px 22px; }

/* Media */
.admin-media-grid { gap: 14px; }
.admin-media-card { overflow: hidden; border: 1px solid var(--admin-line); border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(31,43,68,.045); transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease; }
.admin-media-card:hover { transform: translateY(-2px); border-color: #cbd5e4; box-shadow: 0 14px 30px rgba(31,43,68,.09); }
.admin-media-card__image { background: #eef2f7; }
.admin-media-card__body { padding: 13px; }
.admin-media-card__title { color: #344054; font-size: 10.5px; }
.admin-media-card__actions { padding: 9px 13px 13px; }
.admin-media-dropzone { border: 1px dashed #aebbd0; border-radius: 14px; background: #f8faff; }
.admin-media-reference-control { overflow: hidden; border: 1px solid var(--admin-line-strong); border-radius: 10px; background: #fff; }
.admin-media-reference-control input { border: 0 !important; box-shadow: none !important; }
.admin-media-reference-control button { border: 0; border-left: 1px solid var(--admin-line); background: #f6f8fc; color: var(--admin-blue); font-size: 9px; font-weight: 740; }
.admin-media-field-preview { overflow: hidden; border-radius: 11px; background: #eef2f7; }
.admin-media-picker { z-index: 100; }
.admin-media-picker__backdrop { background: rgba(5, 16, 34, .62); backdrop-filter: blur(4px); }
.admin-media-picker__dialog { width: min(1040px, calc(100vw - 36px)); max-height: min(780px, calc(100vh - 36px)); border: 1px solid rgba(255,255,255,.72); border-radius: 18px; box-shadow: 0 30px 90px rgba(8,22,45,.28); }
.admin-media-picker__header { padding: 18px 20px; }
.admin-media-picker__header h2 { margin: 0; font-size: 18px; }
.admin-media-picker__close { width: 38px; height: 38px; border-radius: 10px; }
.admin-media-inline-upload { gap: 9px; padding: 13px 20px; background: #f7f9fc; }
.admin-media-inline-upload input[type="text"], .admin-media-inline-upload input[type="file"] { height: 40px; border-radius: 9px; font-size: 9px; }
.admin-media-picker__tools { padding: 12px 20px; }
.admin-media-picker__tools input { height: 42px; border-radius: 10px; }
.admin-media-picker__grid { gap: 12px; padding: 16px 20px 20px; }

/* Operational pages */
.admin-health-grid { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
.admin-health-card { padding: 14px; border-radius: 12px; box-shadow: none; }
.admin-health-card span { font-size: 8.5px; }
.admin-health-card strong { font-size: 11px; }
.admin-policy-strip, .admin-operation-grid { gap: 12px; }
.admin-policy-strip span, .admin-operation-card { border-radius: 12px; background: #f9fbfd; }
.admin-operation-card { min-height: 175px; }
.admin-operation-card h3 { font-size: 13px; }
.admin-operation-card p { font-size: 9.5px; }
.admin-stat-card { border-radius: 12px; background: #f7f9fc; }
.admin-stat-card span { font-size: 8.5px; }
.admin-stat-card strong { font-size: 12px; }
.admin-two-factor-setup { padding: 24px; }
.admin-two-factor-setup__content h2 { font-size: 20px; }
.admin-qr-card { border-radius: 14px; }
.admin-secret-key { border-radius: 10px; background: #f7f9fc; }
.admin-recovery-codes code { border-radius: 9px; font-size: 10.5px; }

/* Login */
.admin-auth-shell--minimal {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(38, 117, 255, .18), transparent 27rem),
    radial-gradient(circle at 90% 86%, rgba(59, 209, 255, .12), transparent 25rem),
    linear-gradient(145deg, #0f294e 0%, #0a1d38 100%);
}
.admin-auth-shell--minimal::before, .admin-auth-shell--minimal::after { position: absolute; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; }
.admin-auth-shell--minimal::before { width: 500px; height: 500px; left: -260px; bottom: -270px; }
.admin-auth-shell--minimal::after { width: 360px; height: 360px; right: -190px; top: -170px; }
.admin-auth-card--minimal {
  position: relative;
  z-index: 2;
  width: min(100%, 410px);
  padding: 30px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 20px;
  background: rgba(255,255,255,.985);
  box-shadow: 0 34px 90px rgba(3, 15, 31, .32);
}
.admin-auth-brand { display: flex; align-items: center; gap: 10px; color: var(--admin-ink-strong); }
.admin-auth-brand__mark { width: 29px; height: 29px; }
.admin-auth-brand strong { font-size: 20px; font-weight: 760; letter-spacing: -.045em; }
.admin-auth-intro { margin: 27px 0 22px; }
.admin-auth-title { color: var(--admin-ink-strong); font-size: 23px; font-weight: 720; letter-spacing: -.04em; line-height: 1.2; }
.admin-auth-intro p { margin: 8px 0 0; color: var(--admin-muted); font-size: 10.5px; }
.admin-auth-card--minimal .admin-login-form { gap: 15px; }
.admin-auth-card--minimal .admin-field { font-size: 10px; }
.admin-auth-card--minimal .admin-field input { height: 48px; font-size: 12px; }
.admin-auth-card--minimal .admin-primary-button { width: 100%; min-height: 48px; margin-top: 2px; }
.admin-auth-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--admin-line); color: var(--admin-muted); font-size: 8.5px; }
.admin-auth-foot > span { display: flex; align-items: center; gap: 6px; }
.admin-auth-foot i { width: 6px; height: 6px; border-radius: 50%; background: #32d583; box-shadow: 0 0 0 3px rgba(50,213,131,.10); }
.admin-auth-foot small { font-size: inherit; }

/* Responsive */
@media (max-width: 1240px) {
  .admin-metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-dashboard-grid { grid-template-columns: 1fr; }
  .admin-health-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .admin-topbar__profile { display: none; }
}
@media (max-width: 1040px) {
  :root { --admin-sidebar-width: 220px; }
  .admin-main { padding-inline: 24px; }
  .admin-navigation__item { font-size: 11.5px; }
  .admin-editor-layout { grid-template-columns: 1fr; }
  .admin-editor-sidebar { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-form-card--editor-side:last-child { grid-column: 1 / -1; }
  .admin-status-grid--news { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .admin-app-shell { display: block; }
  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(300px, calc(100vw - 48px));
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform 240ms cubic-bezier(.2,.8,.2,1);
    box-shadow: 22px 0 70px rgba(5,18,38,.34);
  }
  body.admin-sidebar-open .admin-sidebar { transform: translateX(0); }
  .admin-sidebar__close { display: grid; }
  .admin-sidebar-backdrop { position: fixed; z-index: 41; inset: 0; display: block; border: 0; background: rgba(4,16,33,.52); opacity: 0; visibility: hidden; transition: opacity 220ms ease, visibility 220ms ease; }
  body.admin-sidebar-open .admin-sidebar-backdrop { opacity: 1; visibility: visible; }
  .admin-main { padding: 20px 18px 42px; }
  .admin-mobile-menu { display: grid; }
  .admin-topbar { min-height: 0; align-items: flex-start; }
  .admin-topbar__actions { gap: 7px; }
  .admin-icon-button span, .admin-logout-button span { display: none; }
  .admin-icon-button, .admin-logout-button { width: 42px; padding: 0; }
  .admin-security-summary { grid-template-columns: 1fr; }
  .admin-form-grid--settings, .admin-policy-strip, .admin-status-grid--compact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .admin-main { padding-inline: 14px; }
  .admin-topbar { gap: 12px; margin-bottom: 18px; }
  .admin-topbar h1 { font-size: 25px; }
  .admin-topbar__description { display: none; }
  .admin-eyebrow { font-size: 8px; }
  .admin-topbar__actions { flex: 0 0 auto; }
  .admin-icon-button--site { display: none; }
  .admin-metric-grid, .admin-metric-grid--compact { grid-template-columns: 1fr; }
  .admin-metric-card { min-height: 118px; padding: 17px; }
  .admin-panel-card { padding: 18px; border-radius: 14px; }
  .admin-panel-card--flush { padding: 0; }
  .admin-panel-card__heading { align-items: flex-start; flex-direction: column; }
  .admin-quick-actions { grid-template-columns: 1fr; }
  .admin-panel-toolbar { align-items: stretch; flex-direction: column; padding: 16px; }
  .admin-filter-form { display: grid; grid-template-columns: 1fr; width: 100%; }
  .admin-field--compact, .admin-field--compact:first-child, .admin-field--search { width: 100%; min-width: 0; }
  .admin-primary-link { width: 100%; }
  .admin-editor-sidebar { grid-template-columns: 1fr; }
  .admin-form-card--editor-side:last-child { grid-column: auto; }
  .admin-editor-actions { position: static; align-items: stretch; flex-direction: column; }
  .admin-editor-actions > div { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .admin-editor-actions > div .admin-primary-button { grid-column: 1 / -1; }
  .admin-editor-actions .admin-secondary-link { width: 100%; }
  .admin-health-grid, .admin-operation-grid, .admin-stat-grid, .admin-stat-grid--compact, .admin-status-grid--news { grid-template-columns: 1fr; }
  .admin-media-picker__dialog { width: calc(100vw - 18px); max-height: calc(100dvh - 18px); border-radius: 14px; }
  .admin-media-inline-upload { grid-template-columns: 1fr; padding: 12px; }
  .admin-auth-card--minimal { padding: 25px 20px; border-radius: 17px; }
  .admin-auth-title { font-size: 21px; }
  .admin-auth-foot { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* alpha.171 — visual editor surface fidelity correction */
.admin-editor-toolbar {
  border: 1px solid var(--admin-line-strong);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}
.admin-visual-editor {
  min-height: 460px;
  padding: 18px;
  overflow: auto;
  border: 1px solid var(--admin-line-strong);
  border-radius: 0 0 12px 12px;
  background: #fff;
  color: #24324a;
  font-size: 13px;
  line-height: 1.75;
}
.admin-visual-editor:focus {
  border-color: var(--admin-blue);
  box-shadow: 0 0 0 4px rgba(13,78,232,.08);
}

/* alpha.171 — desktop filter bar alignment */
.admin-panel-toolbar > .admin-filter-form { flex: 1 1 auto; min-width: 0; }
.admin-filter-form > .admin-secondary-button { flex: 0 0 auto; align-self: end; }
@media (min-width: 1100px) {
  .admin-panel-toolbar:not(.admin-panel-toolbar--news) .admin-filter-form { flex-wrap: nowrap; }
}

/* alpha.171 — real frontend Ens.az logo parity */
.admin-brand--sidebar {
  width: min(100%, 176px);
  min-height: 48px;
  justify-content: center;
  padding: 6px 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(2, 16, 34, .22);
}
.admin-brand__logo {
  display: block;
  width: 136px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.admin-auth-brand { min-height: 34px; }
.admin-auth-brand__logo {
  display: block;
  width: 142px;
  height: auto;
  object-fit: contain;
}
@media (max-width: 1040px) and (min-width: 821px) {
  .admin-brand--sidebar { width: min(100%, 158px); }
  .admin-brand__logo { width: 124px; }
}
@media (max-width: 820px) {
  .admin-brand--sidebar { width: 176px; }
}


/* alpha.171 — first-action direct card-image upload */
.admin-media-reference-control [data-media-direct-file][hidden] { display: none !important; }
.admin-media-reference-field [data-media-direct-status] { display: block; min-height: 18px; }
.admin-media-reference-control [data-media-direct-trigger][disabled] { cursor: wait; opacity: .72; }


/* alpha.171 — readable admin typography system and information hierarchy */
:root {
  --admin-type-body: 14px;
  --admin-type-label: 13px;
  --admin-type-help: 12px;
  --admin-type-table: 13px;
  --admin-type-small: 11.5px;
}
.ens-admin-body { font-size: var(--admin-type-body); line-height: 1.55; text-rendering: optimizeLegibility; }
.admin-navigation__label { font-size: 10.5px; line-height: 1.35; }
.admin-navigation__item { min-height: 46px; font-size: 14px; line-height: 1.35; }
.admin-sidebar__session { font-size: 11.5px; }
.admin-profile-card__identity strong { font-size: 13px; line-height: 1.35; }
.admin-profile-card__identity small { font-size: 11px; line-height: 1.4; }
.admin-profile-card__links a { min-height: 36px; font-size: 11.5px; line-height: 1.35; }
.admin-sidebar__email, .admin-sidebar__version { font-size: 10px; line-height: 1.45; }
.admin-eyebrow { font-size: 10.5px; }
.admin-topbar h1 { font-size: clamp(29px, 3vw, 38px); line-height: 1.16; }
.admin-topbar__description { font-size: 14px; line-height: 1.65; }
.admin-icon-button, .admin-logout-button,
.admin-primary-button, .admin-secondary-button, .admin-danger-button,
.admin-primary-link, .admin-secondary-link { font-size: 13px; line-height: 1.25; }
.admin-topbar__profile strong { font-size: 12.5px; }
.admin-topbar__profile small { font-size: 11px; }
.admin-text-link { font-size: 12.5px; }
.admin-alert { font-size: 13px; line-height: 1.65; }
.admin-panel-card__heading h2 { font-size: 21px; line-height: 1.3; }
.admin-panel-card__heading p { font-size: 13px; line-height: 1.65; }
.admin-badge, .admin-role-chip, .admin-status-pill, .admin-method-chip { font-size: 10.5px; line-height: 1.25; }
.admin-metric-card__body small { font-size: 12px; }
.admin-metric-card__body strong { font-size: 27px; }
.admin-metric-card__body em { font-size: 10.5px; }
.admin-activity-list strong { font-size: 13px; line-height: 1.45; }
.admin-activity-list small { font-size: 11.5px; line-height: 1.5; }
.admin-quick-actions strong { font-size: 12.5px; }
.admin-quick-actions small { font-size: 10.5px; }
.admin-security-summary span { font-size: 10.5px; }
.admin-security-summary strong { font-size: 13.5px; }
.admin-security-summary small { font-size: 11.5px; line-height: 1.55; }
.admin-field { font-size: var(--admin-type-label); line-height: 1.4; }
.admin-field input, .admin-field select { min-height: 48px; font-size: 14px; line-height: 1.35; }
.admin-field textarea { min-height: 128px; font-size: 14px; line-height: 1.7; }
.admin-field small { font-size: var(--admin-type-help); line-height: 1.6; }
.admin-table-summary { min-height: 48px; font-size: 12.5px; }
.admin-table { font-size: var(--admin-type-table); line-height: 1.5; }
.admin-table th { padding: 14px 16px; font-size: 10.5px; line-height: 1.4; }
.admin-table td { padding: 17px 16px; color: #344054; }
.admin-table td > small { font-size: 11.5px; line-height: 1.5; }
.admin-user-cell strong { font-size: 13px; line-height: 1.4; }
.admin-user-cell small { font-size: 11.5px; line-height: 1.5; }
.admin-row-actions { row-gap: 8px; }
.admin-row-actions a, .admin-row-actions button { min-height: 30px; font-size: 11.5px; line-height: 1.3; }
.admin-muted-label { font-size: 11.5px; }
.admin-empty-state { font-size: 13px; line-height: 1.6; }
.admin-empty-state strong { font-size: 14px; }
.admin-pagination { font-size: 12.5px; }
.admin-form-note { font-size: 12.5px; line-height: 1.65; }
.admin-account-summary strong { font-size: 16px; }
.admin-account-summary span { font-size: 12.5px; }
.admin-form-card--editor-side h2 { font-size: 15px; line-height: 1.35; }
.admin-editor-toolbar button { min-height: 34px; font-size: 12px; }
.admin-editor-surface, .admin-visual-editor { font-size: 16px; line-height: 1.8; }
.admin-visual-editor figcaption { font-size: 12.5px; }
.admin-check-card strong { font-size: 13px; line-height: 1.45; }
.admin-check-card small { font-size: 11.5px; line-height: 1.55; }
.admin-setting-lock-card span { font-size: 11.5px; }
.admin-setting-lock-card strong { font-size: 16px; }
.admin-setting-lock-card small { font-size: 11.5px; line-height: 1.55; }
.admin-media-card__title, .admin-media-card__title strong { font-size: 12.5px; line-height: 1.45; }
.admin-media-card__body small { font-size: 11px; }
.admin-media-card__body code, .admin-media-reference { font-size: 10.5px; }
.admin-media-card__actions a, .admin-media-card__actions button { font-size: 11.5px; }
.admin-media-reference-control button { font-size: 11.5px; }
.admin-media-picker__header h2 { font-size: 21px; }
.admin-media-picker__tools a, .admin-media-picker__status { font-size: 12.5px; }
.admin-media-picker-card__body strong { font-size: 12px; }
.admin-media-picker-card__body small { font-size: 10.5px; }
.admin-media-inline-upload label > span { font-size: 11.5px; }
.admin-media-inline-upload input[type="text"], .admin-media-inline-upload input[type="file"] { font-size: 12px; }
.admin-health-card span, .admin-stat-card span { font-size: 10.5px; }
.admin-health-card strong, .admin-stat-card strong { font-size: 13.5px; }
.admin-operation-card h3 { font-size: 16px; }
.admin-operation-card p { font-size: 12.5px; line-height: 1.65; }
.admin-two-factor-setup__content h2 { font-size: 23px; }
.admin-secret-key code, .admin-recovery-codes code { font-size: 12.5px; }
.admin-auth-intro p { font-size: 13px; line-height: 1.6; }
.admin-auth-card--minimal .admin-field { font-size: 13px; }
.admin-auth-card--minimal .admin-field input { font-size: 14px; }
.admin-auth-foot { font-size: 11.5px; line-height: 1.5; }
@media (max-width: 1040px) {
  .admin-navigation__item { font-size: 13.5px; }
}
@media (max-width: 640px) {
  .ens-admin-body { font-size: 14px; }
  .admin-topbar h1 { font-size: 27px; }
  .admin-eyebrow { font-size: 10px; }
  .admin-field input, .admin-field select, .admin-field textarea { font-size: 16px; }
  .admin-table { font-size: 13px; }
  .admin-table th { font-size: 10.5px; }
  .admin-row-actions a, .admin-row-actions button { font-size: 12px; }
  .admin-auth-title { font-size: 23px; }
}

/* alpha.171 — admin advertising management */
.admin-advertising-table .admin-ad-summary{display:flex;align-items:center;gap:12px;min-width:230px}
.admin-advertising-table .admin-ad-summary img{width:112px;height:68px;object-fit:cover;border-radius:12px;border:1px solid var(--admin-border);background:#f4f7fb}
.admin-advertising-table td{vertical-align:middle}
.admin-advertising-table td>small,.admin-advertising-table .admin-ad-summary small{display:block;margin-top:4px;color:var(--admin-muted)}
.admin-ad-link{display:block;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-status-pill.is-warning{background:#fff7df;color:#9a6200}
.admin-status-pill.is-expired{background:#fff0f1;color:#b42335}
.admin-advertising-form .admin-editor-sidebar{min-width:0}
.admin-ad-preview{aspect-ratio:16/9;min-height:210px}
.admin-ad-preview img{width:100%;height:100%;object-fit:contain;background:#f6f8fc}
.admin-ad-size-guide{margin-top:12px;padding:12px 14px;border:1px dashed #cbd7ec;border-radius:12px;background:#f8faff;color:var(--admin-muted);font-size:12px;line-height:1.55}
.admin-ad-size-guide strong{color:var(--admin-text)}
@media (max-width:980px){.admin-advertising-table{min-width:980px}.admin-ad-preview{min-height:180px}}

/* Alpha.121 — advertising create CTA visibility */
.admin-topbar__primary-action { min-height: 42px; gap: 8px; white-space: nowrap; }
.admin-topbar__primary-action svg { width: 17px; height: 17px; }
.admin-empty-state--advertising { min-height: 260px; align-content: center; gap: 9px; padding: 44px 24px; }
.admin-empty-state--advertising > svg { width: 42px; height: 42px; margin-bottom: 4px; color: var(--admin-blue); }
.admin-empty-state--advertising strong { color: var(--admin-ink-strong); font-size: 17px; line-height: 1.35; }
.admin-empty-state--advertising span { max-width: 520px; color: var(--admin-muted); font-size: 13px; line-height: 1.65; }
.admin-empty-state--advertising .admin-primary-link { margin-top: 7px; }
@media (max-width: 760px) {
  .admin-topbar__actions { flex-wrap: wrap; justify-content: flex-end; }
  .admin-topbar__primary-action { order: -1; }
}
@media (max-width: 560px) {
  .admin-topbar { display: grid; grid-template-columns: 1fr; }
  .admin-topbar__actions { width: 100%; justify-content: stretch; }
  .admin-topbar__primary-action { flex: 1 1 100%; width: 100%; }
}

/* alpha.171 — go-live freshness notice for dirty admin forms */
.admin-freshness-notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  display: grid;
  gap: 4px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 16px 18px;
  border: 1px solid rgba(37, 99, 235, .28);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .18);
  color: #10213f;
  font-size: 13px;
  line-height: 1.5;
}
.admin-freshness-notice strong { font-size: 14px; }
.admin-freshness-notice span { color: #59677d; }
@media (max-width: 640px) {
  .admin-freshness-notice { left: 16px; right: 16px; bottom: 16px; }
}

/* ========================================================================== */
/* alpha.171 — static page management                                         */
/* ========================================================================== */
.admin-page-summary {
  display: grid;
  gap: 4px;
  min-width: 220px;
}
.admin-page-summary strong {
  font-size: 13.5px;
  line-height: 1.4;
}
.admin-page-summary small {
  color: var(--admin-muted);
  font-size: 11.5px;
  overflow-wrap: anywhere;
}
.admin-pages-table td:nth-child(2),
.admin-pages-table td:nth-child(3),
.admin-pages-table td:nth-child(4),
.admin-pages-table td:nth-child(5) {
  white-space: nowrap;
}
@media (max-width: 860px) {
  .admin-pages-table td:nth-child(4),
  .admin-pages-table th:nth-child(4),
  .admin-pages-table td:nth-child(5),
  .admin-pages-table th:nth-child(5) { display: none; }
}

/* Alpha.130 — Super Admin management hardening */
.admin-privileged-confirmation {
  border: 1px solid #f6c7ad;
  border-radius: 16px;
  padding: 16px;
  background: #fffaf7;
}
.admin-privileged-confirmation.is-required {
  border-color: #e67e22;
  box-shadow: 0 0 0 3px rgba(230, 126, 34, .08);
}
.admin-form-grid--nested {
  margin-top: 14px;
  padding: 0;
}
@media (max-width: 680px) {
  .admin-privileged-confirmation { padding: 13px; border-radius: 14px; }
}

/* alpha.171 — Super Admin header/footer custom code manager */
.admin-custom-code-form {
  display: grid;
  gap: 20px;
}
.admin-custom-code-warning {
  border-color: rgba(190, 121, 0, .28);
  background: linear-gradient(135deg, rgba(255, 249, 235, .96), rgba(255, 255, 255, .98));
}
.admin-custom-code-warning p {
  margin: 0;
  line-height: 1.7;
}
.admin-code-editor textarea {
  min-height: 320px;
  resize: vertical;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.62;
  tab-size: 2;
  white-space: pre;
}
.admin-inline-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--admin-border, #dfe4ea);
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}
.admin-inline-switch input {
  width: 18px;
  height: 18px;
  accent-color: #111;
}
.admin-badge--warning {
  background: #fff4d7;
  color: #7c4a00;
}


/* alpha.171 — right rail banner size selector */
.admin-advertising-form [data-rail-size-field][hidden]{display:none!important}
.admin-ad-preview[data-ad-size="300x250"]{aspect-ratio:300/250}
.admin-ad-preview[data-ad-size="300x300"]{aspect-ratio:1/1}
.admin-ad-preview[data-ad-size="300x600"]{aspect-ratio:1/2;min-height:360px}
@media (max-width:980px){.admin-ad-preview[data-ad-size="300x600"]{min-height:320px}}


/* alpha.171 — advertising impressions, clicks and CTR statistics */
.admin-ad-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.admin-ad-metric-card{display:grid;gap:7px;min-width:0;padding:18px;border:1px solid var(--admin-line);border-radius:16px;background:linear-gradient(145deg,#fff,#f8fbff);box-shadow:0 8px 24px rgba(15,23,42,.045)}
.admin-ad-metric-card span{color:var(--admin-muted);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.admin-ad-metric-card strong{color:var(--admin-ink-strong);font-size:27px;line-height:1.1;font-variant-numeric:tabular-nums}
.admin-ad-metric-card small{color:var(--admin-muted);font-size:11px;line-height:1.45}
.admin-ad-statistics{display:grid;grid-template-columns:repeat(3,minmax(52px,1fr));gap:7px;min-width:210px}
.admin-ad-statistics>span{display:grid;gap:2px;padding:7px 8px;border:1px solid var(--admin-line);border-radius:10px;background:#f8fafc;text-align:center}
.admin-ad-statistics strong{font-size:12.5px;font-variant-numeric:tabular-nums}
.admin-ad-statistics small{color:var(--admin-muted);font-size:9px;text-transform:uppercase;letter-spacing:.04em}
.admin-ad-statistics em{grid-column:1/-1;color:var(--admin-muted);font-size:9.5px;font-style:normal;text-align:center}
.admin-ad-stat-card__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.admin-ad-stat-card__grid>div{display:grid;gap:4px;padding:12px;border:1px solid var(--admin-line);border-radius:12px;background:#f8fafc}
.admin-ad-stat-card__grid span{color:var(--admin-muted);font-size:10px;font-weight:750}
.admin-ad-stat-card__grid strong{font-size:18px;font-variant-numeric:tabular-nums}
.admin-ad-stat-card__grid small{color:var(--admin-muted);font-size:10px}
.admin-ad-stat-card p{margin:12px 0 0;color:var(--admin-muted);font-size:11px;line-height:1.6}
.admin-ad-stat-card p strong{color:var(--admin-ink-strong);font-variant-numeric:tabular-nums}
@media(max-width:1200px){.admin-ad-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.admin-ad-metric-grid{grid-template-columns:1fr}.admin-ad-statistics{min-width:190px}}

/* alpha.171 — visible Range-snapshot visual editor links and URL dialog */
.admin-visual-editor a,
.admin-visual-editor .admin-editor-link {
  color: var(--admin-blue, #155eef);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  cursor: text;
}
.admin-visual-editor a:hover,
.admin-visual-editor a:focus {
  color: #0b46bd;
  background: rgba(21, 94, 239, .08);
  border-radius: 3px;
  outline: none;
}
.admin-editor-link-status {
  margin-left: auto;
  color: #067647;
  font-size: 10px;
  font-weight: 750;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}
.admin-editor-link-status.is-visible { opacity: 1; transform: translateY(0); }
.admin-editor-link-status.is-error { color: #b42318; }
.admin-editor-link-dialog[hidden] { display: none !important; }
.admin-editor-link-dialog {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: grid;
  place-items: center;
  padding: 20px;
}
.admin-editor-link-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, .58);
  backdrop-filter: blur(2px);
}
.admin-editor-link-dialog__panel {
  position: relative;
  width: min(100%, 510px);
  border: 1px solid rgba(16, 42, 79, .12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(16, 24, 40, .24);
  overflow: hidden;
}
.admin-editor-link-dialog form { padding: 22px; }
.admin-editor-link-dialog__heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}
.admin-editor-link-dialog__heading span {
  display: block;
  margin-bottom: 4px;
  color: var(--admin-blue, #155eef);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .11em;
}
.admin-editor-link-dialog__heading h2 { margin: 0; font-size: 21px; }
.admin-editor-link-dialog__heading > button {
  width: 36px;
  height: 36px;
  border: 1px solid #dce2ea;
  border-radius: 10px;
  background: #f8fafc;
  color: #344054;
  font-size: 22px;
  cursor: pointer;
}
.admin-editor-link-dialog label { display: grid; gap: 7px; }
.admin-editor-link-dialog label > span { color: #344054; font-size: 12px; font-weight: 800; }
.admin-editor-link-dialog input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #b9c3d0;
  border-radius: 10px;
  background: #fff;
  color: #172033;
  font: inherit;
}
.admin-editor-link-dialog input:focus {
  border-color: var(--admin-blue, #155eef);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(21, 94, 239, .10);
}
.admin-editor-link-dialog p {
  min-height: 18px;
  margin: 8px 0 0;
  color: #667085;
  font-size: 11px;
  line-height: 1.5;
}
.admin-editor-link-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}
.admin-editor-link-dialog__actions button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  color: #344054;
  font-weight: 800;
  cursor: pointer;
}
.admin-editor-link-dialog__actions button[type="submit"] {
  border-color: var(--admin-blue, #155eef);
  background: var(--admin-blue, #155eef);
  color: #fff;
}
@media (max-width: 560px) {
  .admin-editor-link-dialog { padding: 12px; align-items: end; }
  .admin-editor-link-dialog__panel { border-radius: 18px 18px 12px 12px; }
  .admin-editor-link-dialog form { padding: 18px; }
  .admin-editor-link-dialog__actions { display: grid; grid-template-columns: 1fr 1fr; }
}

/* alpha.171 — isolated writer account administration and submission moderation bridge */
.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}
.admin-definition-list { display: grid; gap: 10px; margin: 20px 0; }
.admin-definition-list > div { display: grid; grid-template-columns: minmax(130px, .7fr) 1.5fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid #e8edf3; }
.admin-definition-list dt { color: #667085; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.admin-definition-list dd { margin: 0; color: #172033; font-weight: 700; word-break: break-word; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.admin-stat-grid > div { min-height: 92px; padding: 16px; border: 1px solid #e1e7ef; border-radius: 14px; background: #f8fafc; }
.admin-stat-grid strong { display: block; color: #10294d; font-size: 27px; line-height: 1; }
.admin-stat-grid span { display: block; margin-top: 8px; color: #667085; font-size: 12px; font-weight: 800; }
.admin-stat-grid--wide { margin: 18px 0; }
.admin-filter-bar { display: grid; grid-template-columns: minmax(230px,2fr) repeat(2,minmax(150px,1fr)) auto; align-items: end; gap: 14px; }
.admin-filter-bar label { display: grid; gap: 7px; }
.admin-filter-bar label > span { color: #475467; font-size: 12px; font-weight: 800; }
.admin-filter-bar input,.admin-filter-bar select { min-height: 44px; padding: 0 12px; border: 1px solid #d0d5dd; border-radius: 10px; background: #fff; font: inherit; }
.admin-table td small { display: block; margin-top: 4px; color: #667085; }
.admin-status-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: #eef2f7; color: #475467; font-size: 11px; font-weight: 900; }
.admin-status-pill.is-success { background: #eaf8ef; color: #18794e; }
.admin-status-pill.is-warning { background: #fff5d8; color: #8a5b00; }
.admin-status-pill.is-danger { background: #fff0f0; color: #b42318; }
.admin-status-pill.is-muted { background: #f2f4f7; color: #667085; }
.admin-pagination { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.admin-pagination a { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid #d0d5dd; border-radius: 9px; background: #fff; color: #344054; font-weight: 800; text-decoration: none; }
.admin-pagination a.is-active { border-color: #155eef; background: #155eef; color: #fff; }
.admin-writer-moderation-meta { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 18px 0; }
.admin-writer-moderation-meta > div { padding: 15px; border: 1px solid #e1e7ef; border-radius: 14px; background: #fff; }
.admin-writer-moderation-meta span,.admin-writer-moderation-meta small { display: block; color: #667085; font-size: 11px; font-weight: 800; }
.admin-writer-moderation-meta strong { display: block; margin: 6px 0 2px; color: #172033; }
.admin-writer-media-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.admin-writer-media-card { position: relative; display: grid; gap: 6px; padding: 9px; border: 1px solid #dbe2eb; border-radius: 12px; background: #fff; cursor: pointer; }
.admin-writer-media-card:has(input:checked) { border-color: #155eef; box-shadow: 0 0 0 3px rgba(21,94,239,.10); }
.admin-writer-media-card input { position: absolute; top: 12px; right: 12px; }
.admin-writer-media-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; background: #eef2f7; }
.admin-writer-media-card span { overflow: hidden; color: #344054; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.admin-writer-media-card small { color: #667085; font-size: 10px; }
.admin-moderation-actions { display: grid; gap: 16px; margin: 20px 0; }
.admin-moderation-actions__buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
@media (max-width: 1050px) {
  .admin-detail-grid,.admin-writer-moderation-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-filter-bar { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .admin-detail-grid,.admin-writer-moderation-meta,.admin-stat-grid,.admin-filter-bar { grid-template-columns: 1fr; }
  .admin-definition-list > div { grid-template-columns: 1fr; gap: 4px; }
  .admin-writer-media-grid { grid-template-columns: 1fr 1fr; }
  .admin-moderation-actions__buttons { display: grid; grid-template-columns: 1fr; }
  .admin-moderation-actions__buttons button { width: 100%; }
}

/* Comment moderation — alpha.171 */
.admin-comment-preview { display: grid; gap: 18px; }
.admin-comment-preview__body { margin: 0; padding: 22px; border: 1px solid rgba(17,38,63,.1); border-radius: 16px; background: #f8fafc; white-space: pre-wrap; line-height: 1.75; overflow-wrap: anywhere; }
.admin-comment-context { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.admin-comment-context > div { display: grid; gap: 5px; padding: 16px; border: 1px solid rgba(17,38,63,.09); border-radius: 14px; background: #fff; }
.admin-comment-context span { color: #6d7888; font-size: 12px; }
.admin-comment-context strong { overflow-wrap: anywhere; }
.admin-comment-decision-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.admin-comment-decision { display: grid; align-content: start; gap: 14px; }
.admin-comment-decision textarea { width: 100%; min-height: 110px; }
@media (max-width: 900px) { .admin-comment-context { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) { .admin-comment-context,.admin-comment-decision-grid { grid-template-columns: 1fr; } }

