:root {
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-50: #eff6ff;
  --ink-900: #0b1220;
  --ink-600: #475569;
  --ink-400: #94a3b8;
  --surface: #ffffff;
  --surface-alt: #f7f9fc;
  --border: #e6ebf2;
  --radius-sm: 12px;
  --radius-md: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06), 0 1px 1px rgba(11, 18, 32, 0.04);
  --err-bg: #fef2f2;
  --err-fg: #b91c1c;
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #000000;
    --surface-alt: #000000;
    --border: #1f2937;
    --ink-900: #f1f5f9;
    --ink-600: #b7c2d0;
    --ink-400: #7c8aa0;
    --blue-50: #0f1b33;
  }
}
* {
  box-sizing: border-box;
}
@keyframes admin-item-enter {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
body {
  margin: 0;
  font-family: "Google Sans Text", "Google Sans", Roboto, "Segoe UI", Arial, sans-serif;
  background: var(--surface-alt);
  color: var(--ink-900);
}

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-card h1 {
  margin: 0;
  font-size: 20px;
}
.muted {
  color: var(--ink-600);
  font-size: 13px;
  margin: 0 0 8px;
}
.login-card input {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 14px;
}
.login-card button {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--blue-600);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.login-card button:hover {
  background: var(--blue-700);
}
.error {
  color: var(--err-fg);
  background: var(--err-bg);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.topbar h1 {
  font-size: 16px;
  margin: 0;
}

main {
  padding: 24px;
}
.permissions-section { margin-bottom: 32px; }
.permissions-section h2 { margin: 0 0 6px; font-size: 20px; }
.permissions-section > .muted { margin-bottom: 16px; }
.permissions-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); gap: 16px; }
.panel { min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.panel h3 { margin: 0 0 12px; font-size: 15px; }
.table-scroll { overflow-x: auto; }
#accounts-table { min-width: 580px; }
.panel table { border: 0; }
.panel th, .panel td { padding: 10px 12px; }
.role-select { position: relative; width: min(100%, 196px); }
.role-select::after { content: ""; position: absolute; top: 50%; right: 13px; width: 7px; height: 7px; border-right: 1.5px solid var(--blue-600); border-bottom: 1.5px solid var(--blue-600); transform: translateY(-65%) rotate(45deg); pointer-events: none; }
.panel select { display: block; width: 100%; min-height: 40px; appearance: none; padding: 9px 38px 9px 12px; border: 1px solid color-mix(in srgb, var(--blue-600) 24%, var(--border)); border-radius: 10px; outline: none; background: linear-gradient(145deg, var(--surface), var(--blue-50)); color: var(--ink-900); font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; cursor: pointer; box-shadow: 0 2px 5px rgba(11, 18, 32, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.55); transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.panel select:hover { border-color: color-mix(in srgb, var(--blue-600) 52%, var(--border)); transform: translateY(-1px); }
.panel select:focus-visible { border-color: var(--blue-600); box-shadow: 0 0 0 4px var(--focus-ring), 0 5px 14px rgba(11, 18, 32, 0.08); }
.panel select option { background: var(--surface); color: var(--ink-900); font: inherit; }
.feature-list { display: grid; gap: 10px; }
.feature-item { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(145deg, var(--surface), var(--blue-50)); font-size: 13px; box-shadow: 0 2px 8px rgba(11, 18, 32, 0.04); animation: admin-item-enter 420ms var(--ease-premium, cubic-bezier(0.22, 1, 0.36, 1)) both; transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.feature-item:nth-child(2) { animation-delay: 45ms; }
.feature-item:nth-child(3) { animation-delay: 90ms; }
.feature-item:nth-child(4) { animation-delay: 135ms; }
.feature-item:hover { border-color: color-mix(in srgb, var(--blue-600) 30%, var(--border)); box-shadow: 0 10px 24px rgba(11, 18, 32, 0.08); transform: translateY(-2px); }
.feature-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 4px; }
.feature-heading strong { color: var(--ink-900); font-size: 13px; letter-spacing: 0.01em; }
.feature-toggle { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; color: var(--ink-600); font-size: 12px; cursor: pointer; transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease; }
.feature-toggle:hover { border-color: var(--border); background: rgba(255, 255, 255, 0.45); color: var(--ink-900); transform: translateX(2px); }
.feature-toggle:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--focus-ring); }
.feature-toggle:has(input:checked) { color: var(--blue-700); }
.feature-toggle-global { min-height: 32px; padding: 5px 8px; font-size: 11px; font-weight: 700; }
.feature-item input[type="checkbox"] { appearance: none; display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-content: center; margin: 0; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); cursor: pointer; transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.feature-item input[type="checkbox"]::before { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform 160ms var(--ease-premium, cubic-bezier(0.22, 1, 0.36, 1)); }
.feature-item input[type="checkbox"]:checked { border-color: var(--blue-600); background: var(--blue-600); box-shadow: 0 3px 8px rgba(37, 99, 235, 0.28); }
.feature-item input[type="checkbox"]:checked::before { transform: translateY(-1px) rotate(-45deg) scale(1); }
.feature-item input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--focus-ring); }
.moderation-section { margin-top: 32px; }
.moderation-section h2 { font-size: 20px; margin: 0 0 16px; }
.moderation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.moderation-grid > div { min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 2px 8px rgba(11, 18, 32, 0.04); }
.moderation-grid h3 { margin: 0 0 12px; font-size: 15px; }
.moderation-list { display: grid; gap: 10px; }
.moderation-item { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(145deg, var(--surface), var(--blue-50)); font-size: 13px; animation: admin-item-enter 420ms var(--ease-premium, cubic-bezier(0.22, 1, 0.36, 1)) both; transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.moderation-item:nth-child(2) { animation-delay: 45ms; }
.moderation-item:nth-child(3) { animation-delay: 90ms; }
.moderation-item:hover { border-color: color-mix(in srgb, var(--blue-600) 30%, var(--border)); box-shadow: 0 10px 24px rgba(11, 18, 32, 0.08); transform: translateY(-2px); }
.moderation-item strong { color: var(--ink-900); font-size: 13px; }
.moderation-item p { margin: 0; color: var(--ink-600); line-height: 1.55; }
.moderation-item .proximity-warning { padding: 8px 10px; border: 1px solid #e6a23c; border-radius: var(--radius-sm); background: #fff8e8; color: #7a4b00; }
.moderation-item a { color: var(--blue-700); overflow-wrap: anywhere; }
.moderation-image-link { display: block; width: 100%; overflow: hidden; border-radius: 10px; background: var(--surface-alt); }
.moderation-image { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.moderation-actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; padding-top: 2px; }
@media (max-width: 900px) { .moderation-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .permissions-layout { grid-template-columns: 1fr; } }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
th,
td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
th {
  color: var(--ink-600);
  font-weight: 600;
  background: var(--blue-50);
}
button.approve,
button.reject {
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  margin: 0;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease, opacity 160ms ease;
}
button.approve {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}
button.reject {
  background: var(--err-bg);
  color: var(--err-fg);
  border-color: rgba(185, 28, 28, 0.14);
}
button.approve:hover:not(:disabled),
button.reject:hover:not(:disabled) {
  transform: translateY(-1px);
}
button.approve:hover:not(:disabled) { background: var(--blue-700); box-shadow: 0 7px 16px rgba(37, 99, 235, 0.24); }
button.reject:hover:not(:disabled) { border-color: rgba(185, 28, 28, 0.3); background: #fee2e2; }
button.approve:active:not(:disabled),
button.reject:active:not(:disabled) { transform: translateY(0); }
button.approve:disabled,
button.reject:disabled { cursor: wait; opacity: 0.55; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* Admin console refresh */
:root { --ink-950: #101828; --ink-700: #344054; --ink-500: #667085; --ink-400: #98a2b3; --canvas: #f6f8fb; --green: #12b76a; --green-bg: #ecfdf3; --amber: #f79009; --amber-bg: #fffaeb; --red: #d92d20; --red-bg: #fef3f2; --shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.04); --ease: cubic-bezier(.22,1,.36,1); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { color: var(--ink-950); background: var(--canvas); font-family: "Google Sans Text", "Google Sans", "Segoe UI", Arial, sans-serif; }
button, input, select { font: inherit; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.admin-shell { display: flex; min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex: 0 0 256px; flex-direction: column; width: 256px; height: 100vh; padding: 24px 16px 18px; border-right: 1px solid var(--border); background: #fff; }
.brand-lockup { display: flex; align-items: center; gap: 11px; padding: 0 10px 30px; }
.brand-lockup img { border-radius: 10px; }
.brand-lockup strong, .brand-lockup span { display: block; }
.brand-lockup strong { font-size: 17px; letter-spacing: -.02em; }
.brand-lockup span { margin-top: 3px; color: var(--ink-500); font-size: 11px; }
.sidebar-label, .eyebrow { color: var(--ink-500); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-label { padding: 0 12px 9px; }
.sidebar-nav { display: grid; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 10px; color: var(--ink-500); font-size: 13px; font-weight: 600; text-decoration: none; transition: background 160ms ease, color 160ms ease, transform 160ms ease; }
.nav-item svg { width: 19px; height: 19px; }
.nav-item small { margin-left: auto; color: var(--ink-400); font-size: 10px; font-weight: 700; }
.nav-item:hover { color: var(--ink-950); background: #f5f7fa; transform: translateX(2px); }
.nav-item.active { color: var(--blue-700); background: var(--blue-50); }
.nav-item.active small { color: var(--blue-600); }
.sidebar-foot { margin-top: auto; display: grid; gap: 18px; padding: 16px 8px 0; border-top: 1px solid var(--border); }
.system-status { display: flex; gap: 9px; align-items: flex-start; }
.system-status > span, .live-dot { display: block; width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-bg); }
.system-status strong, .system-status small { display: block; }
.system-status strong { font-size: 12px; }
.system-status small { margin-top: 4px; color: var(--ink-500); font-size: 10px; line-height: 1.4; }
.signout-button { display: inline-flex; align-items: center; gap: 9px; padding: 8px 4px; border: 0; color: var(--ink-500); background: transparent; font-size: 12px; cursor: pointer; text-align: left; }
.signout-button:hover { color: var(--red); }
.content-shell { min-width: 0; flex: 1; }
.topbar { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 0 clamp(22px,4vw,52px); border-bottom: 1px solid var(--border); background: rgba(255,255,255,.86); backdrop-filter: blur(14px); }
.topbar-copy { min-width: 0; }
.topbar h1 { margin: 4px 0 0; font-size: 18px; letter-spacing: -.02em; }
.topbar-meta { display: flex; align-items: center; gap: 9px; margin-left: auto; color: var(--ink-500); font-size: 12px; }
.menu-button { display: none; width: 38px; height: 38px; padding: 8px; border: 1px solid var(--border); border-radius: 10px; color: var(--ink-700); background: #fff; cursor: pointer; }
main { width: min(100%,1320px); margin: 0 auto; padding: 42px clamp(22px,4vw,52px) 72px; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-intro h2 { margin: 8px 0 7px; font-size: clamp(25px,3vw,34px); letter-spacing: -.045em; line-height: 1.08; }
.muted { margin: 0; color: var(--ink-500); font-size: 13px; line-height: 1.55; }
.intro-note { display: flex; align-items: center; gap: 11px; max-width: 250px; padding: 12px 14px; border: 1px solid #d9e5ff; border-radius: 12px; color: var(--blue-700); background: var(--blue-50); }
.intro-note strong, .intro-note small { display: block; }
.intro-note strong { font-size: 12px; }
.intro-note small { margin-top: 3px; color: var(--ink-500); font-size: 10px; }
.work-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 32px 0 54px; }
.summary-card { display: flex; align-items: center; gap: 12px; min-height: 78px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow); text-decoration: none; transition: transform 180ms var(--ease), border-color 180ms ease; }
.summary-card:hover { border-color: #c7d7fe; transform: translateY(-2px); }
.summary-card > span:nth-child(2) { min-width: 0; }
.summary-card strong, .summary-card small { display: block; }
.summary-card strong { font-size: 13px; }
.summary-card small { margin-top: 3px; color: var(--ink-500); font-size: 11px; }
.summary-card b { margin-left: auto; color: var(--ink-400); font-size: 18px; font-weight: 400; }
.summary-icon, .section-icon, .queue-icon { display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; }
.summary-icon { width: 40px; height: 40px; }
.summary-icon.blue, .section-icon.blue { color: var(--blue-600); background: var(--blue-50); }
.summary-icon.amber, .section-icon.amber { color: var(--amber); background: var(--amber-bg); }
.summary-icon.green, .section-icon.green { color: var(--green); background: var(--green-bg); }
.admin-section { scroll-margin-top: 24px; margin-top: 54px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.section-title { display: flex; align-items: center; gap: 12px; }
.section-icon { width: 38px; height: 38px; }
.section-heading h2 { margin: 4px 0 0; font-size: 21px; letter-spacing: -.025em; }
.section-heading > .muted { max-width: 430px; text-align: right; }
.permissions-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); gap: 14px; }
.panel { min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.panel-heading, .queue-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel h3, .queue-heading h3 { margin: 0; font-size: 14px; }
.panel-caption, .queue-heading span { color: var(--ink-400); font-size: 10px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--border); font-size: 12px; text-align: left; white-space: nowrap; }
th { color: var(--ink-500); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; background: #fafbfc; }
tr:last-child td { border-bottom: 0; }
#accounts-table { min-width: 600px; }
.role-select { position: relative; width: 160px; }
.panel select { width: 100%; min-height: 36px; appearance: none; padding: 7px 30px 7px 10px; border: 1px solid #cfd8e8; border-radius: 8px; outline: 0; color: var(--ink-700); background: #fff; font-size: 11px; }
.feature-list, .moderation-list { display: grid; gap: 9px; }
.feature-item, .moderation-item { display: grid; gap: 9px; padding: 12px; border: 1px solid var(--border); border-radius: 11px; background: #fcfdff; font-size: 12px; animation: admin-item-enter 350ms var(--ease) both; }
.feature-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feature-toggle { display: flex; align-items: center; gap: 8px; min-height: 30px; color: var(--ink-500); font-size: 11px; cursor: pointer; }
.feature-toggle-global { color: var(--blue-600); font-weight: 700; }
.feature-item input[type="checkbox"] { appearance: none; display: grid; place-content: center; width: 17px; height: 17px; margin: 0; border: 1px solid #cbd5e1; border-radius: 5px; background: #fff; }
.feature-item input[type="checkbox"]:checked { border-color: var(--blue-600); background: var(--blue-600); }
.feature-item input[type="checkbox"]::before { content: ""; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg) scale(0); }
.feature-item input[type="checkbox"]:checked::before { transform: translateY(-1px) rotate(-45deg) scale(1); }
.queue-panel { min-height: 220px; }
.queue-heading { justify-content: flex-start; }
.queue-icon { width: 34px; height: 34px; color: var(--green); background: var(--green-bg); }
.queue-heading > div { min-width: 0; }
.queue-heading span { display: block; margin-top: 3px; }
.moderation-item p { margin: 0; color: var(--ink-500); line-height: 1.5; }
.moderation-item .proximity-warning { padding: 8px; border: 1px solid #fedf89; border-radius: 8px; color: #93370d; background: var(--amber-bg); }
.moderation-image-link { display: block; overflow: hidden; border-radius: 8px; }
.moderation-image { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.moderation-actions { display: flex; flex-wrap: wrap; gap: 7px; }
button.approve, button.reject { padding: 7px 11px; border-radius: 8px; font-size: 11px; }
button.approve { background: var(--blue-600); }
button.reject { color: var(--red); border-color: #fecdca; background: var(--red-bg); }
.login-body { background: linear-gradient(135deg,#eff6ff 0%,#f8fafc 52%,#ecfdf3 100%); }
.login-card { border-radius: 20px; box-shadow: 0 18px 50px rgba(16,24,40,.09); }
@media (max-width: 980px) { .sidebar { flex-basis: 220px; width: 220px; } .permissions-layout { grid-template-columns: 1fr; } .moderation-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; } .queue-panel:last-child { grid-column: 1 / -1; } }
@media (max-width: 720px) { .admin-shell { display: block; } .sidebar { position: fixed; z-index: 10; top: 0; left: 0; width: min(82vw,300px); transform: translateX(-102%); box-shadow: 14px 0 36px rgba(16,24,40,.12); transition: transform 220ms var(--ease); } body.menu-open .sidebar { transform: translateX(0); } body.menu-open::after { position: fixed; z-index: 9; inset: 0; content: ""; background: rgba(16,24,40,.25); } .menu-button { display: grid; place-items: center; } .topbar { min-height: 68px; padding: 0 18px; } main { padding: 30px 18px 56px; } .page-intro { display: block; } .intro-note { max-width: none; margin-top: 20px; } .work-summary { grid-template-columns: 1fr; gap: 8px; margin: 24px 0 42px; } .summary-card { min-height: 64px; } .admin-section { margin-top: 42px; } .section-heading { display: block; } .section-heading > .muted { margin: 10px 0 0 50px; text-align: left; } .panel { padding: 15px; } .moderation-grid { grid-template-columns: 1fr; } .queue-panel:last-child { grid-column: auto; } }
