/* The same official palette and Red Hat Display weights as the public site. */
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 280px minmax(0,1fr); }
.sidebar { background: var(--blue); color: var(--white); padding: 32px 24px; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.admin-brand { background: var(--white); padding: 20px 16px; }
.admin-brand img { width: 200px; height: auto; margin-inline: auto; }
.sidebar-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--yellow); font-weight: 600; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a { padding: 11px 12px; text-decoration: none; font-weight: 600; border: 1px solid transparent; border-radius: 10px; }
.sidebar nav a:hover, .sidebar nav a.active { border-color: var(--yellow); }
.sidebar :focus-visible { outline-color: var(--yellow); }
.sidebar-footer { margin-top: auto; font-size: .8rem; }
.admin-main { min-width: 0; padding: 42px clamp(20px,4vw,52px); }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 30px; }
.topbar h1 { margin: 10px 0; font-size: clamp(1.875rem,3.5vw,2.75rem); color: var(--blue); }
.topbar p { margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--green); border-radius: 20px; padding: 7px 12px; font-size: .8rem; white-space: nowrap; }
.pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.metric { min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.metric .label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); }
.metric strong { display: block; margin-top: 12px; font-size: 2.25rem; line-height: 1.25; color: var(--blue); overflow-wrap: anywhere; }
.metric small { display: block; margin-top: 8px; font-size: .8rem; }
.panel { min-width: 0; margin-top: 24px; border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.panel-head h2 { margin: 0; color: var(--blue); font-size: 1.375rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; padding: 10px 16px; text-decoration: none; font-weight: 600; font-size: .875rem; cursor: pointer; }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-secondary { border: 1px solid var(--blue); color: var(--blue); }
.chart { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 10px; align-items: end; height: 245px; padding-top: 28px; }
.bar-wrap { min-width: 0; height: 100%; display: grid; grid-template-rows: minmax(0,1fr) auto; gap: 12px; }
.bar-stage { min-width: 0; display: flex; justify-content: center; align-items: flex-end; height: 100%; border-bottom: 1px solid var(--line); }
.bar { width: min(40px,75%); min-height: 3px; background: var(--yellow); position: relative; border-radius: 5px 5px 0 0; }
.bar span { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font-size: .8rem; color: var(--blue); font-weight: 600; }
.bar-label { text-align: center; font-size: .75rem; }
.table-wrap { max-width: 100%; }
.recent { width: 100%; table-layout: fixed; border-collapse: collapse; }
.recent th, .recent td { padding: 14px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: .85rem; overflow-wrap: anywhere; }
.recent th { text-transform: uppercase; font-size: .7rem; font-weight: 600; color: var(--blue); }
.recent th:first-child { width: 12%; }
.recent th:nth-child(2) { width: 32%; }
.recent tr:last-child td { border-bottom: none; }
.code { font-family: var(--font-brand); font-weight: 600; color: var(--blue); }
.empty { padding: 24px 0; text-align: center; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 28px 20px; background: var(--blue); }
.login-card { width: min(480px,100%); min-width: 0; padding: clamp(24px,5vw,36px); border-radius: 22px; background: var(--white); }
.login-logo { width: 220px; max-width: 100%; margin: 8px auto 42px; }
.login-logo img { width: 100%; height: auto; }
.login-card .kicker { text-transform: uppercase; font-size: .75rem; font-weight: 600; letter-spacing: .1em; color: var(--blue); }
.login-card h1 { margin: 12px 0; font-size: 2rem; color: var(--blue); }
.login-card > p { margin: 0 0 26px; }
.field { display: grid; gap: 8px; margin: 18px 0; }
.field label { font-size: .875rem; font-weight: 600; color: var(--blue); }
.field input { width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid var(--gray); border-radius: 10px; background: var(--white); color: var(--ink); font-size: 1rem; }
.login-card button { width: 100%; margin-top: 10px; padding: 14px; border: 0; border-radius: 10px; background: var(--yellow); color: var(--ink); font-weight: 600; cursor: pointer; }
.alert, .setup-note { padding: 14px 16px; border: 1px solid var(--line); border-left-width: 4px; border-radius: 8px; font-size: .875rem; margin: 16px 0; overflow-wrap: anywhere; }
.alert-error { border-left-color: var(--yellow); color: var(--ink); }
.alert-success { border-left-color: var(--green); color: var(--ink); }
.setup-note { border-left-color: var(--blue); }
.small-link { display: block; text-align: center; margin-top: 20px; font-size: .85rem; color: var(--blue); }
@media(max-width:1200px) { .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:850px) {
    .admin-shell { grid-template-columns: minmax(0,1fr); }
    .sidebar { padding: 24px 20px; gap: 20px; }
    .admin-brand { width: 240px; align-self: center; }
    .sidebar-title { text-align: left; }
    .sidebar > .sidebar-title, .sidebar-footer { display: none; }
    .sidebar nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: .8rem; }
    .sidebar nav a { padding: 8px 12px; }
    .admin-main { padding: 30px 20px; }
}
@media(max-width:520px) {
    .topbar { display: block; }
    .pill { margin-top: 18px; }
    .metrics { grid-template-columns: minmax(0,1fr); gap: 12px; }
    .panel { padding: 20px 14px; }
    .metric { padding: 20px; }
    .chart { height: 210px; gap: 6px; }
    .bar-label { font-size: .675rem; }
    .recent td, .recent th { font-size: .7rem; padding: 12px 3px; }
    .login-card h1 { font-size: 1.75rem; }
}
