:root {
  color-scheme: dark;
  --bg: #090a0d;
  --panel: #121419;
  --panel-2: #171a20;
  --line: #282c34;
  --muted: #8d939f;
  --text: #f5f6f7;
  --amber: #f7b955;
  --amber-bright: #ffd48a;
  --green: #5ee0a0;
  --danger: #ff7777;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); overflow-x: hidden; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }

.ambient { position: fixed; z-index: -1; width: 460px; height: 460px; border-radius: 50%; filter: blur(120px); opacity: .11; }
.ambient-one { background: #f0a62b; top: -260px; right: 10%; }
.ambient-two { background: #6269ff; bottom: -330px; left: 24%; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 30px 22px; border-right: 1px solid var(--line); background: rgba(11, 12, 16, .88); backdrop-filter: blur(24px); display: flex; flex-direction: column; }
.brand, .signin-brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #17120a; font-weight: 900; background: linear-gradient(145deg, var(--amber-bright), var(--amber)); box-shadow: 0 10px 32px rgba(247,185,85,.18); }
.brand strong, .signin-brand strong { display: block; letter-spacing: -.02em; }
.brand small, .signin-brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
nav { margin-top: 50px; display: grid; gap: 8px; }
.nav-link { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 11px; color: #aeb3bd; font-size: 14px; font-weight: 650; }
.nav-link span { width: 22px; color: #686f7c; text-align: center; }
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--panel-2); }
.nav-link.active span { color: var(--amber); }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--line); padding: 22px 8px 0; display: flex; align-items: center; gap: 11px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(94,224,160,.08); }
.sidebar-foot strong, .sidebar-foot small { display: block; font-size: 12px; }
.sidebar-foot small { margin-top: 2px; color: var(--muted); font-weight: 400; }

main { min-width: 0; padding: 0 44px 52px; }
.topbar { min-height: 112px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.topbar h1 { margin: 4px 0 0; font-size: 27px; letter-spacing: -.04em; }
.eyebrow { color: var(--amber); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.account { display: flex; align-items: center; gap: 11px; }
.account form { margin: 0 0 0 5px; }
.account-avatar, .member-avatar { display: grid; place-items: center; border-radius: 50%; background: #282d37; border: 1px solid #3b414c; font-weight: 750; }
.account-avatar { width: 40px; height: 40px; }
.account-copy strong, .account-copy span { display: block; font-size: 12px; }
.account-copy span { margin-top: 2px; color: var(--muted); }
.logout-button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.logout-button:hover { color: var(--text); border-color: #474d58; }

.notice { margin-top: 24px; padding: 13px 16px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(94,224,160,.25); border-radius: 12px; background: rgba(94,224,160,.08); color: #bff3d8; font-size: 12px; }
.notice > span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(94,224,160,.16); font-weight: 800; }
.notice-error { border-color: rgba(255,119,119,.25); background: rgba(255,119,119,.08); color: #ffc0c0; }
.notice-error > span { background: rgba(255,119,119,.16); }
.notice + .hero-card { margin-top: 14px; }

.hero-card { margin-top: 30px; padding: 30px 32px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid #34302a; border-radius: var(--radius); background: radial-gradient(circle at 88% 20%, rgba(247,185,85,.14), transparent 32%), linear-gradient(135deg, #17181c, #101216); }
.hero-card h2 { margin: 7px 0 8px; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.05em; }
.hero-card p { max-width: 650px; margin: 0; color: #a9aeb7; line-height: 1.65; font-size: 14px; }
.bot-health { flex: 0 0 auto; min-width: 250px; display: flex; align-items: center; gap: 15px; padding: 18px 20px; border: 1px solid #343841; border-radius: 14px; background: rgba(7,8,10,.48); }
.health-orb { width: 14px; height: 14px; border-radius: 50%; background: #666; }
.health-orb.online { background: var(--green); box-shadow: 0 0 0 7px rgba(94,224,160,.08), 0 0 24px rgba(94,224,160,.35); }
.bot-health small, .bot-health strong, .bot-health span { display: block; }
.bot-health small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.bot-health strong { margin-top: 2px; font-size: 16px; }
.bot-health span { margin-top: 3px; color: var(--muted); font-size: 11px; }

.stats-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat-card { min-height: 138px; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.stat-card.accent { border-color: #3d3527; background: linear-gradient(145deg, rgba(247,185,85,.11), var(--panel) 65%); }
.stat-label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.stat-value { margin-top: 13px; font-size: 32px; line-height: 1; font-weight: 800; letter-spacing: -.05em; }
.stat-detail { margin-top: 10px; color: #737a86; font-size: 12px; }

.feature-directory { margin-top: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(18,20,25,.78); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-heading h2 { margin: 5px 0 0; font-size: 20px; letter-spacing: -.03em; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature-card { min-height: 198px; padding: 21px; border: 1px solid #30353e; border-radius: 15px; background: linear-gradient(145deg, #191c22, #13151a); }
.feature-card-top { display: flex; align-items: center; justify-content: space-between; }
.feature-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #4c402d; border-radius: 11px; background: rgba(247,185,85,.1); color: var(--amber-bright); font-size: 12px; font-weight: 850; }
.feature-status { display: inline-flex; padding: 6px 9px; border: 1px solid #383e48; border-radius: 999px; color: #939aa5; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.feature-status.active { border-color: rgba(94,224,160,.25); background: rgba(94,224,160,.08); color: #88e8b6; }
.feature-card h3 { margin: 21px 0 7px; font-size: 17px; letter-spacing: -.025em; }
.feature-card p { min-height: 42px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.feature-card a { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--amber-bright); font-size: 11px; font-weight: 750; }
.feature-card a:hover { color: white; }
.feature-card a span { transition: transform .15s ease; }
.feature-card a:hover span { transform: translateX(3px); }
.future-card { border-style: dashed; background: rgba(15,17,21,.65); }
.future-card .feature-icon { border-color: #3a404a; background: #1b1e24; color: #9097a2; font-size: 18px; }
.future-label { display: inline-block; margin-top: 18px; color: #686f7b; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }

.content-grid { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr); gap: 18px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.wide-panel { grid-row: span 2; }
.panel-heading { min-height: 82px; padding: 19px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 5px 0 0; font-size: 18px; letter-spacing: -.025em; }
.quiet-badge, .role-chip { border: 1px solid #343b45; border-radius: 999px; color: #9ea5af; background: #1b1e24; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.quiet-badge { padding: 7px 10px; }
.module-metrics { padding: 18px 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: #101217; }
.module-metrics > div { padding: 3px 16px; border-right: 1px solid #292d35; }
.module-metrics > div:first-child { padding-left: 0; }
.module-metrics > div:last-child { border-right: 0; }
.module-metrics strong, .module-metrics span { display: block; }
.module-metrics strong { font-size: 19px; letter-spacing: -.03em; }
.module-metrics span { margin-top: 4px; color: #737b87; font-size: 10px; }
.subheading { padding: 17px 22px 4px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.subheading strong { font-size: 12px; }
.subheading span { color: #6f7682; font-size: 10px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 14px 22px; color: #666e79; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; text-align: left; }
td { padding: 17px 22px; border-top: 1px solid #22262d; color: #c2c6cd; font-size: 13px; }
td strong { color: var(--text); font-size: 14px; text-transform: capitalize; }
.score-pill { display: inline-flex; min-width: 40px; justify-content: center; padding: 5px 8px; border-radius: 8px; color: var(--amber-bright); background: rgba(247,185,85,.09); font-weight: 800; }
.muted { color: var(--muted); }
.mobile-label { display: none; }
.empty { padding: 34px 22px; color: var(--muted); text-align: center; }

.setting-row { padding: 24px 22px; display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.setting-row strong, .setting-row span { display: block; }
.setting-row strong { font-size: 14px; }
.setting-row span { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.toggle { width: 46px; height: 26px; flex: 0 0 auto; padding: 3px; border: 0; border-radius: 99px; background: #353a43; cursor: pointer; }
.toggle span { width: 20px; height: 20px; margin: 0; border-radius: 50%; background: #fff; transition: transform .18s ease; }
.toggle.enabled { background: var(--amber); }
.toggle.enabled span { transform: translateX(20px); }
.setting-note { margin: 0 22px 22px; padding: 13px; display: flex; gap: 10px; border-radius: 11px; background: #181b21; color: #8f96a1; font-size: 11px; line-height: 1.5; }
.setting-note > span { display: grid; place-items: center; flex: 0 0 auto; width: 19px; height: 19px; border: 1px solid #4b525e; border-radius: 50%; }
.setting-note p { margin: 1px 0 0; }

.primary-button, .discord-button, .secondary-button { border: 0; border-radius: 10px; font-weight: 750; cursor: pointer; }
.primary-button { padding: 9px 12px; background: var(--amber); color: #18120a; font-size: 12px; }
.primary-button:hover { background: var(--amber-bright); }
.danger-button { padding: 6px 8px; border: 1px solid rgba(255,119,119,.22); border-radius: 8px; background: rgba(255,119,119,.06); color: #e99797; font-size: 10px; cursor: pointer; }
.danger-button:hover { background: rgba(255,119,119,.12); color: #ffc2c2; }
.admin-form { margin: 18px 22px 6px; padding: 16px; border: 1px solid #292e37; border-radius: 12px; background: #16191f; }
.admin-form label { display: block; margin-bottom: 9px; color: #b9bec7; font-size: 11px; font-weight: 750; }
.admin-form > div { display: flex; gap: 8px; }
.admin-form input { width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid #343a44; border-radius: 9px; outline: none; background: #0e1014; color: var(--text); font-size: 12px; }
.admin-form input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(247,185,85,.08); }
.admin-form small { display: block; margin-top: 8px; color: #6f7682; font-size: 10px; }
.limited-note { margin: 18px 22px 0; padding: 13px; border-radius: 10px; background: #181b21; color: var(--muted); font-size: 11px; line-height: 1.5; }
.access-list { margin: 0; padding: 8px 22px; list-style: none; }
.access-row { padding: 13px 0; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 11px; border-bottom: 1px solid #22262d; }
.access-row:last-child { border-bottom: 0; }
.member-avatar { width: 34px; height: 34px; font-size: 12px; }
.access-row strong, .access-row div > span { display: block; font-size: 12px; }
.access-row div > span { margin-top: 3px; color: #717985; }
.role-chip { padding: 5px 8px; }
.panel-footnote { margin: 0; padding: 15px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

.signin-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.signin-card { width: min(660px, 100%); padding: clamp(32px, 6vw, 62px); border: 1px solid #35312a; border-radius: 26px; background: radial-gradient(circle at 90% 5%, rgba(247,185,85,.14), transparent 34%), rgba(18,20,25,.94); box-shadow: 0 32px 90px rgba(0,0,0,.4); }
.signin-brand { margin-bottom: 70px; }
.signin-card h1 { margin: 10px 0 18px; max-width: 560px; font-size: clamp(35px, 6vw, 58px); line-height: 1.02; letter-spacing: -.06em; }
.signin-card > p { max-width: 540px; margin: 0; color: #a5abb5; font-size: 15px; line-height: 1.7; }
.discord-button { margin-top: 32px; width: 100%; padding: 15px 20px; display: flex; justify-content: center; gap: 10px; background: #5865f2; color: white; }
.discord-button:hover { background: #6874f5; }
.secondary-button { margin-top: 28px; padding: 12px 16px; display: inline-flex; border: 1px solid #3a404a; background: #1b1e24; color: var(--text); font-size: 12px; }
.secondary-button:hover { border-color: #515965; }
.message-card h1 { font-size: clamp(32px, 5vw, 48px); }
.trust-row { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 20px; color: #757d88; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.trust-row span::before { content: '✓'; margin-right: 6px; color: var(--green); }

.college-page { margin-top: 28px; }
.college-page-heading { padding: 4px 2px 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.college-page-heading h2 { margin: 6px 0 7px; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.045em; }
.college-page-heading p { max-width: 680px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.live-refresh { flex: 0 0 auto; display: flex; align-items: center; gap: 11px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.live-refresh strong, .live-refresh span { display: block; }
.live-refresh strong { font-size: 11px; }
.live-refresh div > span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.college-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.college-list-panel { min-width: 0; }
.college-list-panel .panel-heading { position: relative; z-index: 1; background: var(--panel); }
.scroll-list { height: clamp(460px, 61vh, 720px); overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #424854 #15181d; scrollbar-width: thin; }
.scroll-list:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.ranking-row, .leaderboard-row, .recent-word-row { content-visibility: auto; contain-intrinsic-size: 92px; }
.ranking-row { min-height: 94px; padding: 15px 18px; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 13px; align-items: start; border-bottom: 1px solid #22262d; }
.ranking-row:last-child, .leaderboard-row:last-child { border-bottom: 0; }
.rank-number { display: grid; place-items: center; min-height: 38px; padding: 5px; border: 1px solid #3d3529; border-radius: 10px; color: var(--amber-bright); background: rgba(247,185,85,.08); font-size: 12px; font-weight: 850; font-variant-numeric: tabular-nums; }
.word-row-copy { min-width: 0; }
.word-title { display: block; overflow-wrap: anywhere; color: var(--text); font-size: 15px; line-height: 1.3; text-transform: capitalize; }
.typed-by { display: block; margin-top: 4px; color: #8f96a1; font-size: 10px; }
.word-meta { margin-top: 9px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.word-meta > span:not(.score-pill) { max-width: 100%; padding: 4px 7px; overflow: hidden; border: 1px solid #2d323b; border-radius: 7px; color: #8f96a1; background: #181b20; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.word-meta .score-pill { min-width: auto; padding: 4px 7px; font-size: 9px; }
.leaderboard-row { min-height: 80px; padding: 14px 18px; display: grid; grid-template-columns: 48px 36px minmax(0, 1fr) auto; gap: 11px; align-items: center; border-bottom: 1px solid #22262d; }
.leaderboard-person { min-width: 0; }
.leaderboard-person strong, .leaderboard-person span, .leaderboard-score strong, .leaderboard-score span { display: block; }
.leaderboard-person strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-person span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.leaderboard-score { padding-left: 9px; text-align: right; font-variant-numeric: tabular-nums; }
.leaderboard-score strong { color: var(--amber-bright); font-size: 16px; }
.leaderboard-score span { margin-top: 3px; color: #717985; font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.recent-words-panel { margin-top: 18px; }
.recent-words-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.recent-word-row { min-height: 112px; padding: 17px 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid #22262d; }
.recent-word-row:nth-child(odd) { border-right: 1px solid #22262d; }
.recent-word-row time { flex: 0 0 auto; color: #6f7682; font-size: 8px; line-height: 1.4; text-align: right; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 84px minmax(0, 1fr); }
  .sidebar { padding: 26px 16px; align-items: center; }
  .brand > span:last-child, .nav-link:not(.active) { font-size: 0; }
  .nav-link { width: 48px; justify-content: center; padding: 12px; font-size: 0; }
  .nav-link span { font-size: 14px; }
  .sidebar-foot span:last-child { display: none; }
  main { padding-inline: 28px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: 1fr; }
  .wide-panel { grid-row: auto; }
  .college-panels { grid-template-columns: 1fr; }
  .scroll-list { height: min(62vh, 620px); }
}

@media (max-width: 680px) {
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 16px 20px 12px; flex-direction: row; flex-wrap: wrap; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand > span:last-child { display: block; font-size: initial; }
  .sidebar nav { width: 100%; margin-top: 13px; display: flex; gap: 4px; overflow-x: auto; }
  .sidebar .nav-link { width: auto; flex: 0 0 auto; padding: 9px 10px; gap: 6px; font-size: 10px; }
  .sidebar .nav-link span { width: 15px; font-size: 11px; }
  .sidebar-foot { display: none; }
  main { padding: 0 16px 34px; }
  .topbar { min-height: 92px; }
  .account-copy { display: none; }
  .hero-card { align-items: flex-start; flex-direction: column; padding: 25px; }
  .bot-health { min-width: 0; width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 120px; padding: 18px; }
  .stat-value { font-size: 27px; }
  th:nth-child(3), th:nth-child(4), td:nth-child(3), td:nth-child(4) { display: none; }
  .module-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; }
  .module-metrics > div:nth-child(2) { border-right: 0; }
  .module-metrics > div:nth-child(3) { padding-left: 0; }
  .section-heading { align-items: flex-end; }
  .mobile-label { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 400; text-transform: none; }
  .panel-heading { padding-inline: 18px; }
  .college-page { margin-top: 20px; }
  .college-page-heading { align-items: flex-start; flex-direction: column; }
  .live-refresh { width: 100%; }
  .scroll-list { height: 520px; }
  .leaderboard-row { grid-template-columns: 44px 32px minmax(0, 1fr); }
  .leaderboard-score { grid-column: 3; padding: 0; text-align: left; }
  .leaderboard-score span { display: inline; margin-left: 5px; }
  .recent-words-grid { grid-template-columns: 1fr; }
  .recent-word-row:nth-child(odd) { border-right: 0; }
  .recent-word-row { flex-direction: column; }
  .recent-word-row time { text-align: left; }
  .signin-brand { margin-bottom: 50px; }
  .trust-row { display: grid; }
}

/* Operational control center */
.avatar-shell { position: relative; overflow: hidden; isolation: isolate; }
.avatar-shell > span { position: absolute; inset: 0; display: grid; place-items: center; z-index: -1; }
.avatar-shell img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.brand .brand-mark { flex: 0 0 auto; color: #17120a; }
.brand .brand-mark img { background: #111318; }

.operations-panel { margin-top: 28px; overflow: visible; }
.notice + .operations-panel { margin-top: 14px; }
.operations-header { padding: 23px 24px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border-bottom: 1px solid var(--line); }
.primary-status { display: flex; align-items: center; gap: 16px; }
.primary-status h2 { margin: 4px 0 2px; font-size: 23px; letter-spacing: -.04em; }
.primary-status p { margin: 0; color: var(--muted); font-size: 11px; }
.health-orb { flex: 0 0 auto; }
.health-orb.state-online { background: var(--green); box-shadow: 0 0 0 7px rgba(94,224,160,.08), 0 0 24px rgba(94,224,160,.35); }
.health-orb.state-starting, .health-orb.state-stopping, .health-orb.state-restarting { background: var(--amber); animation: pulse 1s infinite alternate; }
.health-orb.state-error, .health-orb.state-unhealthy { background: var(--danger); box-shadow: 0 0 0 7px rgba(255,119,119,.08); }
@keyframes pulse { to { opacity: .45; } }
.process-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.process-controls form { margin: 0; }
.process-button, .refresh-button, .secondary-action { min-height: 35px; padding: 8px 12px; border: 1px solid #3b424d; border-radius: 9px; background: #1b1f26; color: #e6e8eb; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.process-button:hover:not(:disabled), .refresh-button:hover:not(:disabled), .secondary-action:hover:not(:disabled) { border-color: #6a5a40; background: rgba(247,185,85,.1); color: var(--amber-bright); }
.process-button.danger-process:hover:not(:disabled) { border-color: rgba(255,119,119,.45); color: #ffb0b0; background: rgba(255,119,119,.08); }
button:disabled { opacity: .38; cursor: not-allowed; }
.operations-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.operation-metric { min-height: 104px; padding: 18px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.operation-metric:nth-child(3n) { border-right: 0; }
.operation-metric:nth-last-child(-n+3) { border-bottom: 0; }
.operation-metric > span, .operation-metric strong, .operation-metric small { display: block; }
.operation-metric > span { color: #777e89; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.operation-metric strong { margin-top: 8px; font-size: 17px; }
.operation-metric small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.preview-note, .control-note { margin: 0; padding: 10px 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.overview-grid { margin-top: 18px; display: grid; grid-template-columns: minmax(0,.9fr) minmax(360px,1.1fr); gap: 18px; align-items: start; }
.overview-section { min-width: 0; }
.feature-grid.compact-grid { padding: 16px; grid-template-columns: 1fr; }
.compact-feature { min-height: 172px; }
.system-strip { margin-top: 18px; padding: 15px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; border: 1px solid var(--line); border-radius: 13px; background: rgba(18,20,25,.72); color: var(--muted); font-size: 10px; }
.system-strip > span { color: var(--amber); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.system-strip strong { color: #d3d6db; }
.system-strip small { margin-left: auto; color: #777e89; }

.admin-controls-panel { margin-bottom: 18px; }
.compact-setting { padding-block: 16px; border-bottom: 1px solid var(--line); }
.compact-setting form { margin: 0; }
.admin-actions-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
.admin-action { min-height: 126px; padding: 17px 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.admin-action:nth-child(even) { border-right: 0; }
.admin-action strong { font-size: 12px; }
.admin-action p { max-width: 440px; margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.admin-action form { flex: 0 0 auto; }
.admin-action .danger-button { min-height: 35px; padding: 8px 11px; font-weight: 750; }
.danger-action { background: rgba(255,119,119,.018); }
.job-status { margin: 16px 20px; padding: 14px 16px; display: grid; grid-template-columns: minmax(160px,1fr) minmax(180px,2fr) auto; align-items: center; gap: 16px; border: 1px solid #303640; border-radius: 11px; background: #0f1115; }
.job-status strong, .job-status span, .job-status small { display: block; }
.job-status strong { font-size: 11px; }
.job-status div > span, .job-status small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.job-progress { width: 100%; height: 5px; overflow: hidden; border: 0; border-radius: 10px; background: #2b3038; appearance: none; }
.job-progress::-webkit-progress-bar { background: #2b3038; }
.job-progress::-webkit-progress-value { border-radius: 10px; background: var(--amber); }
.job-progress::-moz-progress-bar { border-radius: 10px; background: var(--amber); }
.job-status.succeeded { border-color: rgba(94,224,160,.28); }
.job-status.failed { border-color: rgba(255,119,119,.28); }
.confirm-dialog { width: min(480px, calc(100% - 32px)); padding: 0; border: 1px solid #3b414c; border-radius: 17px; background: #15181e; color: var(--text); box-shadow: 0 30px 90px rgba(0,0,0,.65); }
.confirm-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.confirm-dialog form { padding: 24px; }
.confirm-dialog h2 { margin: 7px 0 8px; font-size: 21px; }
.confirm-dialog p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.dialog-actions { margin-top: 22px; display: flex; justify-content: flex-end; gap: 9px; }
.dialog-actions .danger-button { min-height: 35px; padding: 8px 12px; }
.recent-word-row > .member-avatar { flex: 0 0 auto; }
.recent-word-row > .word-row-copy { flex: 1 1 auto; }

@media (max-width: 980px) {
  .operations-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .operation-metric:nth-child(3n) { border-right: 1px solid var(--line); }
  .operation-metric:nth-child(2n) { border-right: 0; }
  .operation-metric:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .operation-metric:nth-last-child(-n+2) { border-bottom: 0; }
  .overview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .operations-header { align-items: flex-start; flex-direction: column; }
  .process-controls { width: 100%; justify-content: flex-start; }
  .operations-grid { grid-template-columns: 1fr; }
  .operation-metric, .operation-metric:nth-child(3n), .operation-metric:nth-child(2n), .operation-metric:nth-last-child(-n+3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .operation-metric:last-child { border-bottom: 0; }
  .admin-actions-grid { grid-template-columns: 1fr; }
  .admin-action, .admin-action:nth-child(even) { align-items: flex-start; flex-direction: column; border-right: 0; }
  .job-status { grid-template-columns: 1fr; }
  .recent-word-row { display: grid; grid-template-columns: 34px minmax(0,1fr); }
  .recent-word-row time { grid-column: 2; }
  .system-strip small { width: 100%; margin-left: 0; }
}
