/* ==========================================================================
   ATIBYAN TECHATHON — styles
   Scoped to .tx-* classes; loaded only on /techathon routes.
   Palette: navy (base) · emerald (actions) · gold (achievement) · academy green
   ========================================================================== */
:root {
  --tx-navy: #0b1730;
  --tx-navy-2: #12224a;
  --tx-navy-3: #1c3366;
  --tx-em: #10b981;
  --tx-em-d: #047857;
  --tx-em-l: #e7f8f1;
  --tx-academy: #1a7a3c;
  --tx-gold: #d4a72c;
  --tx-gold-d: #9a7612;
  --tx-gold-l: #fbf3dc;
  --tx-bg: #f4f6fb;
  --tx-card: #ffffff;
  --tx-line: #e3e8f2;
  --tx-text: #0f172a;
  --tx-muted: #64748b;
  --tx-danger: #dc2626;
  --tx-r: 14px;
  --tx-shadow: 0 1px 2px rgba(11, 23, 48, .05), 0 8px 24px rgba(11, 23, 48, .06);
  --tx-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

body.tx-page { background: var(--tx-bg); font-family: 'Inter', system-ui, sans-serif; color: var(--tx-text); }
.tx-page a { color: inherit; }
.tx-ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }

/* ---------- Buttons ---------- */
.tx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px;
  padding: 10px 18px; font: 600 14px/1.2 'Inter', sans-serif; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .1s;
  background: var(--tx-navy); color: #fff !important; white-space: nowrap; }
.tx-btn:active { transform: translateY(1px); }
.tx-btn-em { background: var(--tx-em); }
.tx-btn-em:hover { background: var(--tx-em-d); }
.tx-btn-gold { background: linear-gradient(180deg, #e0b843, var(--tx-gold)); color: var(--tx-navy) !important; }
.tx-btn-gold:hover { background: var(--tx-gold); }
.tx-btn-ghost { background: #fff; color: var(--tx-navy) !important; border-color: var(--tx-line); }
.tx-btn-ghost:hover { border-color: var(--tx-navy-3); }
.tx-btn-danger { background: var(--tx-danger); }
.tx-btn-outline-light { background: transparent; border-color: rgba(255,255,255,.35); }
.tx-btn-outline-light:hover { border-color: #fff; }
.tx-btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.tx-btn-lg { padding: 13px 22px; font-size: 15px; }
.tx-btn-block { width: 100%; }
.tx-btn.is-disabled { opacity: .45; pointer-events: none; }
.tx-btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tx-link-btn { background: none; border: 0; padding: 0; color: var(--tx-em-d); font: 600 13px 'Inter', sans-serif; cursor: pointer; }
.tx-danger-link { color: var(--tx-danger) !important; font-size: 13px; font-weight: 600; }
.tx-icon-btn { border: 0; background: #f1f5f9; border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font-size: 18px; color: var(--tx-muted); }

/* ---------- App shell ---------- */
.tx-app { display: flex; min-height: 100vh; background: var(--tx-bg); }
.tx-side { position: fixed; inset: 0 auto 0 0; width: 252px; background: var(--tx-navy); color: #c7d2e8; display: flex; flex-direction: column; z-index: 60;
  padding: 18px 14px; overflow-y: auto; }
.tx-brand { display: flex; gap: 10px; align-items: center; padding: 6px 8px 18px; color: #fff !important; text-decoration: none; font: 600 13px/1.2 var(--tx-head); letter-spacing: .08em; }
.tx-brand b { color: #fff; }
.tx-brand small { display: block; font: 500 11px 'Inter'; letter-spacing: .04em; color: var(--tx-gold); margin-top: 3px; }
.tx-brand-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--tx-gold), #f3d77a); display: grid; place-items: center; color: var(--tx-navy); }
.tx-brand-mark .tx-ic { width: 21px; height: 21px; }
.tx-nav { display: flex; flex-direction: column; gap: 2px; }
.tx-nav a, .tx-side-foot a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: #c7d2e8; text-decoration: none; }
.tx-nav a:hover, .tx-side-foot a:hover { background: rgba(255,255,255,.06); color: #fff; }
.tx-nav a.is-active { background: linear-gradient(90deg, rgba(16,185,129,.22), rgba(16,185,129,.06)); color: #fff; box-shadow: inset 3px 0 0 var(--tx-em); }
.tx-side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 2px; }
.tx-side-foot a { font-size: 13px; padding: 8px 12px; }
.tx-logout:hover { color: #fca5a5 !important; }
.tx-scrim { display: none; }
.tx-main { margin-left: 252px; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tx-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px; padding: 16px 32px; background: rgba(244,246,251,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--tx-line); }
.tx-top-title { flex: 1; min-width: 0; }
.tx-top-title h1 { font: 700 22px/1.2 var(--tx-head); margin: 0; color: var(--tx-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-top-title p { margin: 2px 0 0; font-size: 13px; color: var(--tx-muted); }
.tx-top-actions { display: flex; align-items: center; gap: 12px; }
.tx-menu-btn { display: none; border: 0; background: #fff; border-radius: 10px; width: 40px; height: 40px; cursor: pointer; color: var(--tx-navy); box-shadow: var(--tx-shadow); }
.tx-me { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; }
.tx-content { padding: 28px 32px 48px; max-width: 1360px; width: 100%; }

/* Notifications */
.tx-bell { position: relative; }
.tx-bell summary { list-style: none; cursor: pointer; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #fff; box-shadow: var(--tx-shadow); color: var(--tx-navy); position: relative; }
.tx-bell summary::-webkit-details-marker { display: none; }
.tx-dot { position: absolute; top: -4px; right: -4px; background: var(--tx-danger); color: #fff; font: 700 10px 'Inter'; border-radius: 99px; padding: 2px 5px; min-width: 18px; text-align: center; }
.tx-bell-pop { position: absolute; right: 0; top: 48px; width: min(360px, 92vw); max-height: 70vh; overflow-y: auto; background: #fff; border-radius: var(--tx-r); box-shadow: 0 20px 50px rgba(11,23,48,.2); border: 1px solid var(--tx-line); z-index: 70; }
.tx-bell-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--tx-line); position: sticky; top: 0; background: #fff; }
.tx-notif { display: block; padding: 12px 16px; border-bottom: 1px solid #f1f5f9; text-decoration: none; font-size: 13px; }
.tx-notif b { display: block; color: var(--tx-navy); font-weight: 600; }
.tx-notif span { display: block; color: var(--tx-muted); margin-top: 2px; }
.tx-notif small { color: #94a3b8; font-size: 11px; }
.tx-notif.is-unread { background: var(--tx-em-l); }
.tx-pad { padding: 16px; margin: 0; }

/* Bottom nav (students, mobile) */
.tx-bottom { display: none; }

/* ---------- Generic blocks ---------- */
.tx-card { background: var(--tx-card); border: 1px solid var(--tx-line); border-radius: var(--tx-r); padding: 22px; box-shadow: var(--tx-shadow); margin-bottom: 20px; min-width: 0; }
.tx-card h2 { font: 700 18px/1.3 var(--tx-head); margin: 0 0 14px; color: var(--tx-navy); }
.tx-card h3 { font: 700 15px/1.3 var(--tx-head); margin: 18px 0 10px; color: var(--tx-navy); }
.tx-card h3:first-child, .tx-card h2:first-child { margin-top: 0; }
.tx-card h4 { font-size: 13px; margin: 14px 0 8px; color: var(--tx-navy); text-transform: uppercase; letter-spacing: .06em; }
.tx-card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tx-card-h h2 { margin: 0; }
.tx-card-h a:not(.tx-btn) { color: var(--tx-em-d); font-weight: 600; font-size: 14px; text-decoration: none; }
.tx-card-navy { background: linear-gradient(160deg, var(--tx-navy), var(--tx-navy-3)); color: #dbe4f5; border: 0; }
.tx-card-navy h2, .tx-card-navy h3, .tx-card-navy b { color: #fff; }
.tx-card-gold { border-color: #ecd9a0; background: linear-gradient(180deg, var(--tx-gold-l), #fff 55%); }
.tx-card-good { border-left: 4px solid var(--tx-em); }
.tx-card-warn { border-left: 4px solid var(--tx-gold); }
.tx-narrow { max-width: 720px; }
.tx-stack > * + * { margin-top: 0; }
.tx-grid { display: grid; gap: 20px; }
.tx-grid-main { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.tx-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tx-eyebrow { display: inline-flex; gap: 6px; align-items: center; font: 600 11px 'Inter'; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-muted); }
.tx-card-navy .tx-eyebrow { color: var(--tx-gold); }
.tx-muted { color: var(--tx-muted); }
.tx-small { font-size: 13px; }
.tx-block { display: block; }
.tx-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; letter-spacing: .03em; }
.tx-gold { color: var(--tx-gold) !important; }
.tx-center { text-align: center; margin-top: 24px; }
.tx-lead { font-size: 16px; color: #334155; }
.tx-prose { font-size: 15px; line-height: 1.7; color: #334155; overflow-wrap: anywhere; }
.tx-prose p { margin: 0 0 10px; }
.tx-note { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 12px 14px; font-size: 14px; color: #334155; margin: 10px 0; }
.tx-gold-note { color: var(--tx-gold); font-weight: 600; font-size: 13px; }
.tx-back { display: inline-block; margin-bottom: 16px; font-size: 14px; font-weight: 600; color: var(--tx-muted) !important; text-decoration: none; }
.tx-back:hover { color: var(--tx-navy) !important; }
.tx-link-light { color: var(--tx-gold) !important; font-weight: 600; font-size: 14px; text-decoration: none; }
.tx-req { color: var(--tx-danger); font-weight: 700; }

/* Badges & tags */
.tx-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; font: 600 12px 'Inter'; white-space: nowrap; background: #eef2f7; color: #475569; }
.tx-b-active, .tx-b-published, .tx-b-approved { background: #dcfce7; color: #166534; }
.tx-b-upcoming, .tx-b-draft, .tx-b-pending { background: #e0e7ff; color: #3730a3; }
.tx-b-submitted { background: #cffafe; color: #155e75; }
.tx-b-under_review, .tx-b-review { background: #fef3c7; color: #92400e; }
.tx-b-graded { background: var(--tx-navy); color: #fff; }
.tx-b-closed, .tx-b-archived, .tx-b-inactive { background: #f1f5f9; color: #64748b; }
.tx-b-revoked, .tx-b-suspended { background: #fee2e2; color: #991b1b; }
.tx-tag { display: inline-flex; padding: 3px 9px; border-radius: 6px; background: #f1f5f9; font-size: 12px; font-weight: 600; color: #475569; }
.tx-tag-gold { background: var(--tx-gold-l); color: var(--tx-gold-d); }
.tx-card-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.tx-week { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 6px; background: var(--tx-navy); color: #fff; font: 700 12px var(--tx-head); letter-spacing: .04em; }

/* Avatars */
.tx-av { border-radius: 50%; object-fit: cover; flex: none; display: inline-block; }
.tx-av-i { display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--tx-navy-3), var(--tx-navy)); color: #fff; font-family: var(--tx-head); font-weight: 700; }
.tx-av-ring { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--tx-em); }
.tx-av-gold { box-shadow: 0 0 0 4px var(--tx-navy), 0 0 0 7px var(--tx-gold); }
.tx-who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.tx-who > span { display: flex; flex-direction: column; min-width: 0; }
.tx-who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.tx-who b em { font-style: normal; color: var(--tx-em-d); font-weight: 600; }
.tx-who small { color: var(--tx-muted); font-size: 12px; }
.tx-who-lg b { font-size: 17px; }

/* Flash */
.tx-flash { position: relative; padding: 13px 44px 13px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; font-weight: 500; border: 1px solid; }
.tx-flash-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.tx-flash-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.tx-flash-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.tx-flash-x { position: absolute; right: 10px; top: 8px; background: none; border: 0; font-size: 20px; cursor: pointer; color: inherit; opacity: .6; }

/* Empty state */
.tx-empty { text-align: center; padding: 48px 20px; background: #fff; border: 1px dashed #cbd5e1; border-radius: var(--tx-r); margin-bottom: 20px; }
.tx-empty-ic { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; background: var(--tx-em-l); color: var(--tx-em-d); display: grid; place-items: center; }
.tx-empty h3 { font: 700 17px var(--tx-head); margin: 0 0 6px; color: var(--tx-navy); }
.tx-empty p { color: var(--tx-muted); margin: 0 auto 16px; max-width: 460px; }

/* KPIs */
.tx-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.tx-kpi { background: #fff; border: 1px solid var(--tx-line); border-radius: var(--tx-r); padding: 16px 18px; text-decoration: none; box-shadow: var(--tx-shadow); display: flex; flex-direction: column; gap: 4px; transition: border-color .15s; }
a.tx-kpi:hover { border-color: var(--tx-em); }
.tx-kpi span { font-size: 12px; color: var(--tx-muted); font-weight: 500; }
.tx-kpi b { font: 700 28px/1.1 var(--tx-head); color: var(--tx-navy); }
.tx-kpi small { font-size: 12px; color: var(--tx-muted); }
.tx-kpi .tx-kpi-sm { font-size: 17px; }
.tx-kpi-gold { background: linear-gradient(160deg, var(--tx-gold-l), #fff); border-color: #ecd9a0; }
.tx-kpi-gold b { color: var(--tx-gold-d); }

/* Student hero */
.tx-hero-card { background: radial-gradient(1200px 300px at 100% 0%, rgba(16,185,129,.18), transparent 60%), linear-gradient(135deg, var(--tx-navy), var(--tx-navy-3));
  color: #dbe4f5; border-radius: 18px; padding: 24px; margin-bottom: 22px; display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 24px; align-items: center; }
.tx-hero-id { display: flex; gap: 16px; align-items: center; }
.tx-hero-id h2 { font: 700 22px var(--tx-head); color: #fff; margin: 0; }
.tx-hero-id p { margin: 2px 0 8px; font-size: 14px; }
.tx-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tx-hero-stats > div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px 14px; }
.tx-hero-stats span { display: block; font-size: 12px; color: #9fb0d0; }
.tx-hero-stats b { font: 700 24px/1.2 var(--tx-head); color: #fff; }
.tx-hero-stats small { font-size: 12px; color: #9fb0d0; margin-left: 4px; }

/* Current challenge */
.tx-current h3 { font: 700 22px/1.3 var(--tx-head); margin: 4px 0 8px; color: var(--tx-navy); }
.tx-current-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--tx-line); }
.tx-count { font: 700 26px/1.2 var(--tx-head); color: var(--tx-navy); font-variant-numeric: tabular-nums; }
.tx-card-navy .tx-count { color: #fff; }
.tx-feed { list-style: none; margin: 0; padding: 0; }
.tx-feed li { border-bottom: 1px solid #f1f5f9; }
.tx-feed li:last-child { border: 0; }
.tx-feed a, .tx-feed li > span { display: flex; flex-direction: column; padding: 9px 0; text-decoration: none; font-size: 13px; }
.tx-feed small { color: var(--tx-muted); }
.tx-feed li.is-unread b::before { content: ''; display: inline-block; width: 7px; height: 7px; background: var(--tx-em); border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

/* Challenge cards */
.tx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.tx-ch-card { position: relative; display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--tx-line); border-radius: var(--tx-r); padding: 20px; text-decoration: none; box-shadow: var(--tx-shadow); transition: transform .15s, border-color .15s; overflow: hidden; }
a.tx-ch-card:hover { transform: translateY(-2px); border-color: var(--tx-em); }
.tx-ch-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--tx-line); }
.tx-st-active::before { background: var(--tx-em); }
.tx-st-graded::before { background: var(--tx-gold); }
.tx-st-under_review::before, .tx-st-submitted::before { background: #38bdf8; }
.tx-ch-top { display: flex; justify-content: space-between; align-items: center; }
.tx-ch-card h3 { font: 700 17px/1.35 var(--tx-head); margin: 0; color: var(--tx-navy); }
.tx-ch-card p { margin: 0; font-size: 14px; color: #475569; line-height: 1.55; flex: 1; }
.tx-ch-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.tx-ch-meta span { font-size: 12px; background: #f1f5f9; padding: 3px 8px; border-radius: 6px; color: #475569; font-weight: 500; }
.tx-ch-foot { padding-top: 10px; border-top: 1px solid #f1f5f9; font-size: 13px; }
.tx-deadline { display: inline-flex; gap: 6px; align-items: center; color: #334155; font-weight: 500; flex-wrap: wrap; }
.tx-deadline small { color: var(--tx-muted); }
.tx-deadline.is-past { color: var(--tx-muted); }
.tx-score-tag { font: 700 18px var(--tx-head); color: var(--tx-gold-d); }
.tx-progress small { font-size: 12px; color: var(--tx-muted); }

/* Tabs / segmented / filters */
.tx-tabs { display: flex; gap: 6px; margin-bottom: 18px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.tx-tabs a { padding: 8px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; color: #475569; background: #fff; border: 1px solid var(--tx-line); text-decoration: none; white-space: nowrap; }
.tx-tabs a.is-active { background: var(--tx-navy); color: #fff; border-color: var(--tx-navy); }
.tx-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 18px; }
.tx-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--tx-muted); }
.tx-filters select, .tx-filters input { min-width: 150px; }
.tx-filters .tx-grow { flex: 1; } .tx-filters .tx-grow select { width: 100%; }
.tx-search input { min-width: 200px; }
.tx-seg { display: inline-flex; background: #e9edf5; border-radius: 10px; padding: 4px; align-self: flex-end; }
.tx-seg a { padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; color: #475569; white-space: nowrap; }
.tx-seg a.is-active { background: #fff; color: var(--tx-navy); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* Forms */
.tx-form { display: flex; flex-direction: column; gap: 14px; }
.tx-form label, .tx-challenge-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #334155; }
.tx-form label small { font-weight: 400; color: var(--tx-muted); }
.tx-page input[type=text], .tx-page input[type=email], .tx-page input[type=url], .tx-page input[type=number], .tx-page input[type=search], .tx-page input[type=date],
.tx-page input[type=datetime-local], .tx-page input[type=month], .tx-page select, .tx-page textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cfd8e6; border-radius: 10px; background: #fff; font: 400 15px/1.4 'Inter', sans-serif; color: var(--tx-text); box-sizing: border-box; }
.tx-page textarea { resize: vertical; }
.tx-page input:focus, .tx-page select:focus, .tx-page textarea:focus { outline: none; border-color: var(--tx-em); box-shadow: 0 0 0 3px rgba(16,185,129,.15); }
.tx-page input[type=file] { font-size: 13px; padding: 10px; border: 1px dashed #cbd5e1; border-radius: 10px; background: #f8fafc; }
.tx-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.tx-check { flex-direction: row !important; align-items: center; gap: 9px !important; font-weight: 500 !important; cursor: pointer; }
.tx-check input { width: 17px; height: 17px; accent-color: var(--tx-em); flex: none; }
.tx-check small { color: var(--tx-muted); font-weight: 400; }
.tx-inline { flex-direction: row !important; align-items: center; gap: 10px !important; }
.tx-inline input { width: 110px !important; }
.tx-checklist { max-height: 260px; overflow-y: auto; border: 1px solid var(--tx-line); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 8px; background: #fbfcfe; }
.tx-checkgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; margin-bottom: 12px; }
.tx-form-inline { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.tx-form-inline label { flex: 1 1 180px; }
.tx-row-item { margin-bottom: 8px; }
.tx-file-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.tx-filter-input { margin-bottom: 6px; }
.tx-challenge-form .tx-card label + label { margin-top: 12px; }

/* Rubric editor */
.tx-rubric { border: 1px solid var(--tx-line); border-radius: 12px; overflow: hidden; margin: 12px 0; }
.tx-rubric-head, .tx-rubric-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 70px 40px; gap: 8px; align-items: center; padding: 8px 10px; }
.tx-rubric-head { background: #f8fafc; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--tx-muted); }
.tx-rubric-row { border-top: 1px solid #f1f5f9; }
.tx-radio { align-items: center !important; }
.tx-radio input { width: 17px; height: 17px; accent-color: var(--tx-gold); }
.tx-rubric-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px; border-top: 1px solid var(--tx-line); background: #fbfcfe; font-size: 13px; }
.tx-rubric-foot.is-bad b { color: var(--tx-danger); }
.tx-rubric-list { list-style: none; margin: 0; padding: 0; }
.tx-rubric-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--tx-line); font-size: 14px; }
.tx-rubric-list b { font-family: var(--tx-head); color: var(--tx-navy); }

/* Lists */
.tx-list { display: flex; flex-direction: column; border: 1px solid var(--tx-line); border-radius: var(--tx-r); background: #fff; overflow: hidden; }
.tx-card .tx-list { border-radius: 10px; }
.tx-list-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; border-top: 1px solid #f1f5f9; text-decoration: none; min-width: 0; }
.tx-list-row:first-child { border-top: 0; }
a.tx-list-row:hover { background: #f8fafc; }
.tx-list-row > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.tx-list-row > span:first-child small { color: var(--tx-muted); font-size: 12px; }
.tx-list-end { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; text-align: right; }
.tx-list-end small { color: var(--tx-muted); }
.tx-list-end a { font-size: 13px; font-weight: 600; color: var(--tx-em-d); }
.tx-details { display: block; padding: 0; }
.tx-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; cursor: pointer; list-style: none; }
.tx-details > summary::-webkit-details-marker { display: none; }
.tx-details[open] > summary { background: #f8fafc; }
.tx-details-body { padding: 4px 16px 16px; }
.tx-pop { display: inline-block; position: relative; }
.tx-pop > summary { list-style: none; cursor: pointer; }
.tx-pop > summary::-webkit-details-marker { display: none; }
.tx-pop[open] > .tx-form { position: absolute; right: 0; z-index: 30; width: 280px; background: #fff; border: 1px solid var(--tx-line); border-radius: 12px; padding: 14px; box-shadow: 0 16px 40px rgba(11,23,48,.18); margin-top: 6px; }
.tx-btn-row .tx-pop[open] > .tx-form { left: 0; right: auto; }
.tx-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.tx-actions a { color: var(--tx-em-d); font-weight: 600; }
.tx-actions-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; background: #fff; border: 1px solid var(--tx-line); border-radius: var(--tx-r); padding: 12px 14px; margin-bottom: 18px; }

/* Tables */
.tx-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 1px solid var(--tx-line); background: #fff; margin-bottom: 18px; }
.tx-card .tx-table-wrap { margin-bottom: 8px; }
.tx-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tx-table th { text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--tx-muted); background: #f8fafc; padding: 11px 14px; white-space: nowrap; }
.tx-table td { padding: 12px 14px; border-top: 1px solid #f1f5f9; vertical-align: middle; }
.tx-table td a { color: var(--tx-em-d); font-weight: 600; text-decoration: none; }
.tx-table td small { color: var(--tx-muted); font-size: 12px; }
.tx-table-sm td, .tx-table-sm th { padding: 8px 10px; font-size: 13px; }
.tx-num { text-align: right !important; font-variant-numeric: tabular-nums; }
.tx-total td { background: #f8fafc; font-weight: 700; }
.tx-sub-row td { border-top: 0; padding-top: 0; color: var(--tx-muted); }
.tx-show-sm { display: none; }

/* Leaderboard */
.tx-pos { width: 64px; white-space: nowrap; }
.tx-pos > span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #f1f5f9; font: 700 14px var(--tx-head); color: var(--tx-navy); }
.tx-top-1 .tx-pos > span { background: linear-gradient(135deg, #f3d77a, var(--tx-gold)); color: var(--tx-navy); }
.tx-top-2 .tx-pos > span { background: linear-gradient(135deg, #e5e7eb, #b8c0cc); }
.tx-top-3 .tx-pos > span { background: linear-gradient(135deg, #f0c9a3, #c98a52); color: #fff; }
.tx-lb tr.is-me td { background: var(--tx-em-l); }
.tx-move { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; color: var(--tx-muted); margin-left: 4px; }
.tx-move .tx-ic { width: 13px; height: 13px; }
.tx-move-up { color: var(--tx-em-d); } .tx-move-down { color: var(--tx-danger); } .tx-move-new { color: var(--tx-gold-d); text-transform: uppercase; font-size: 9px; }
.tx-mine { background: var(--tx-navy); color: #fff; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
.tx-mine b { color: var(--tx-gold); font-family: var(--tx-head); font-size: 18px; }
.tx-lb-note { margin: -6px 0 16px; }
.tx-podium { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin: 8px 0 22px; }
.tx-pod { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; width: 180px; }
.tx-pod b { font: 700 14px/1.3 var(--tx-head); color: var(--tx-navy); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-pod small { font-size: 12px; color: var(--tx-muted); }
.tx-pod-rank { position: absolute; top: 44px; left: calc(50% + 18px); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--tx-head); background: #cbd5e1; color: var(--tx-navy); border: 2px solid #fff; }
.tx-pod-1 .tx-pod-rank { top: 58px; left: calc(50% + 26px); background: var(--tx-gold); }
.tx-pod-3 .tx-pod-rank { background: #c98a52; color: #fff; }
.tx-pod-score { font: 700 20px var(--tx-head); color: var(--tx-navy); }
.tx-pod-base { width: 100%; border-radius: 12px 12px 0 0; background: linear-gradient(180deg, #e2e8f0, #f1f5f9); margin-top: 6px; }
.tx-pod-1 .tx-pod-base { height: 90px; background: linear-gradient(180deg, #f3d77a, var(--tx-gold-l)); }
.tx-pod-2 .tx-pod-base { height: 64px; }
.tx-pod-3 .tx-pod-base { height: 44px; background: linear-gradient(180deg, #f0c9a3, #fbeee2); }
.tx-pod-1 .tx-av { box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--tx-gold); }
.tx-rank-pill { background: var(--tx-navy); color: #fff; border-radius: 14px; padding: 12px 18px; text-align: center; font: 700 28px var(--tx-head); }
.tx-rank-pill small { display: block; font: 500 11px 'Inter'; color: #9fb0d0; }

/* Results / feedback */
.tx-result-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; }
.tx-big { font: 700 48px/1 var(--tx-head); color: var(--tx-navy); margin: 6px 0; }
.tx-big small { font-size: 20px; color: var(--tx-muted); }
.tx-big-light { font: 700 30px var(--tx-head); color: #fff; margin: 12px 0 4px; }
.tx-big-light small { font: 500 13px 'Inter'; color: #9fb0d0; }
.tx-feedback { border-left: 3px solid var(--tx-em); background: #f8fafc; border-radius: 0 10px 10px 0; padding: 12px 16px; margin-bottom: 12px; }
.tx-feedback p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: #334155; }
.tx-reco { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #cbd5e1; }
.tx-reco span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--tx-gold-d); }
.tx-ticks { list-style: none; padding: 0; margin: 0; }
.tx-ticks li { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; font-size: 14px; }
.tx-ticks li b { margin-left: auto; font-family: var(--tx-head); }
.tx-ticks .tx-ic { color: var(--tx-em); margin-top: 2px; }

/* Chips */
.tx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.tx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: #f1f5f9; border: 1px solid var(--tx-line); font-size: 13px; font-weight: 500; text-decoration: none; color: var(--tx-navy) !important; max-width: 100%; }
.tx-chip small { color: var(--tx-muted); }
a.tx-chip:hover { border-color: var(--tx-em); background: var(--tx-em-l); }
.tx-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
.tx-shots img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--tx-line); }

/* Definition list */
.tx-dl { margin: 0; }
.tx-dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--tx-line); font-size: 14px; }
.tx-dl > div:last-child { border: 0; }
.tx-dl dt { color: var(--tx-muted); }
.tx-dl dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.tx-card-navy .tx-dl dt { color: #9fb0d0; }

/* Meters & charts */
.tx-meters { display: flex; flex-direction: column; gap: 12px; }
.tx-meter-h { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 5px; }
.tx-meter-h b { font-family: var(--tx-head); }
.tx-meter-bar { height: 8px; background: #e9edf5; border-radius: 99px; overflow: hidden; }
.tx-meter-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--tx-em-d), var(--tx-em)); border-radius: 99px; }
.tx-meter-gold { background: rgba(255,255,255,.12); margin: 10px 0; }
.tx-meter-gold i { background: linear-gradient(90deg, var(--tx-gold), #f3d77a); }
.tx-chart { margin: 0; }
.tx-chart svg { width: 100%; height: auto; display: block; }
.tx-chart figcaption { font-size: 12px; color: var(--tx-muted); text-align: center; margin-top: 4px; }
.tx-grid line.tx-grid, .tx-chart .tx-grid { stroke: #e9edf5; stroke-width: 1; }
.tx-chart .tx-axis { font: 500 11px 'Inter'; fill: #94a3b8; }
.tx-chart .tx-line { fill: none; stroke: var(--tx-em); stroke-width: 2.5; stroke-linejoin: round; }
.tx-chart .tx-area { fill: rgba(16,185,129,.1); }
.tx-chart .tx-pt { fill: #fff; stroke: var(--tx-em-d); stroke-width: 2.5; }

/* Judge */
.tx-sticky { position: sticky; top: 90px; }
.tx-score-in { flex-direction: row !important; align-items: center; justify-content: space-between; gap: 12px !important; padding: 8px 0; border-bottom: 1px dashed var(--tx-line); }
.tx-score-in span { display: flex; flex-direction: column; }
.tx-score-in small { font-weight: 400; color: var(--tx-muted); }
.tx-score-in input { width: 90px !important; text-align: right; font-family: var(--tx-head) !important; font-weight: 600 !important; }
.tx-total-live { display: flex; justify-content: space-between; align-items: center; background: var(--tx-navy); color: #c7d2e8; border-radius: 10px; padding: 12px 14px; }
.tx-total-live b { font: 700 24px var(--tx-head); color: #fff; margin-left: auto; margin-right: 4px; }

/* Achievements & awards */
.tx-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 22px; }
.tx-mbadge { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 16px 10px; border-radius: 14px; background: #fff; border: 1px dashed #cbd5e1; color: #94a3b8; font-size: 13px; font-weight: 600; }
.tx-mbadge .tx-ic { width: 28px; height: 28px; }
.tx-mbadge.is-on { border: 1px solid #ecd9a0; background: linear-gradient(180deg, var(--tx-gold-l), #fff); color: var(--tx-gold-d); }
.tx-award-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.tx-award-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; background: #fff; border: 1px solid var(--tx-line); border-radius: 16px; padding: 22px; box-shadow: var(--tx-shadow); }
.tx-award-card h3 { font: 700 18px var(--tx-head); margin: 0; color: var(--tx-navy); }
.tx-award-card p { margin: 0; font-size: 14px; color: #475569; }
.tx-award-card.is-champ { background: linear-gradient(160deg, var(--tx-navy), var(--tx-navy-3)); border: 0; color: #dbe4f5; }
.tx-award-card.is-champ h3 { color: #fff; } .tx-award-card.is-champ p { color: #c7d2e8; }
.tx-award-card.is-champ .tx-eyebrow { color: var(--tx-gold); }
.tx-award-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--tx-gold-l); color: var(--tx-gold-d); }
.tx-award-card.is-champ .tx-award-ic { background: var(--tx-gold); color: var(--tx-navy); }
.tx-award-ic .tx-ic { width: 24px; height: 24px; }
.tx-award-card .tx-mono { color: var(--tx-muted); }
.tx-profile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.tx-profile h2 { margin: 0; }
.tx-profile .tx-dl { width: 100%; text-align: left; }

/* Admin specifics */
.tx-kpis-6 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.tx-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.tx-steps li a { color: var(--tx-em-d); font-weight: 600; }
.tx-steps li.is-done a { color: var(--tx-muted); text-decoration: line-through; }
.tx-setup { border-left: 4px solid var(--tx-em); }
.tx-flow { display: flex; list-style: none; padding: 0; margin: 0 0 20px; gap: 0; overflow-x: auto; counter-reset: s; }
.tx-flow li { flex: 1; min-width: 130px; position: relative; padding: 10px 12px 10px 40px; font-size: 13px; font-weight: 600; color: var(--tx-muted); background: #fff; border: 1px solid var(--tx-line); margin-left: -1px; counter-increment: s; }
.tx-flow li:first-child { border-radius: 12px 0 0 12px; } .tx-flow li:last-child { border-radius: 0 12px 12px 0; }
.tx-flow li::before { content: counter(s); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; background: #e2e8f0; display: grid; place-items: center; font-size: 11px; }
.tx-flow li.is-done { color: var(--tx-em-d); background: var(--tx-em-l); }
.tx-flow li.is-done::before { content: '✓'; background: var(--tx-em); color: #fff; }
.tx-report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tx-report { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.tx-report h3 { display: flex; gap: 8px; align-items: center; margin: 0; }
.tx-report label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--tx-muted); }
.tx-report .tx-btn-row { margin-top: auto; }

/* ---------- Public portal ---------- */
.tx-public { background: var(--tx-bg); }
.tx-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.tx-subnav { background: var(--tx-navy); border-bottom: 1px solid rgba(255,255,255,.06); position: sticky; top: 0; z-index: 30; }
.tx-subnav-in { display: flex; align-items: center; gap: 18px; height: 56px; }
.tx-subnav-brand { color: var(--tx-gold) !important; font: 700 14px var(--tx-head); letter-spacing: .14em; display: flex; gap: 8px; align-items: center; text-decoration: none; white-space: nowrap; }
.tx-subnav-links { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.tx-subnav-links::-webkit-scrollbar { display: none; }
.tx-subnav-links a { color: #c7d2e8 !important; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.tx-subnav-links a:hover { color: #fff !important; background: rgba(255,255,255,.06); }
.tx-subnav-links a.is-active { color: #fff !important; background: rgba(16,185,129,.18); }
.tx-phero { background: radial-gradient(900px 400px at 85% 10%, rgba(212,167,44,.14), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(16,185,129,.16), transparent 60%),
  linear-gradient(160deg, #081127, var(--tx-navy) 40%, var(--tx-navy-2)); color: #dbe4f5; padding: 64px 0 40px; position: relative; overflow: hidden; }
.tx-phero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.tx-phero-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: center; position: relative; z-index: 1; }
.tx-kicker { display: inline-flex; gap: 8px; align-items: center; font: 600 12px 'Inter'; letter-spacing: .16em; text-transform: uppercase; color: var(--tx-em); }
.tx-phero h1 { font: 700 clamp(40px, 7vw, 72px)/1 var(--tx-head); color: #fff; margin: 14px 0 12px; letter-spacing: -.01em; }
.tx-phero h1 span { background: linear-gradient(90deg, var(--tx-gold), #f3d77a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tx-tagline { font: 600 clamp(14px, 2vw, 18px) var(--tx-head); letter-spacing: .32em; color: var(--tx-em); margin: 0 0 18px; }
.tx-phero-lead { font-size: 17px; line-height: 1.7; max-width: 560px; margin: 0 0 28px; color: #c7d2e8; }
.tx-phero-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; backdrop-filter: blur(6px); }
.tx-phero-card h2 { font: 700 26px var(--tx-head); color: #fff; margin: 8px 0 0; }
.tx-phero-card p { margin: 0; color: #9fb0d0; }
.tx-phero-pts { font-size: 14px; color: #c7d2e8; } .tx-phero-pts b { font: 700 22px var(--tx-head); color: var(--tx-gold); }
.tx-phero-empty { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: rgba(212,167,44,.12); color: var(--tx-gold); border: 1px dashed rgba(212,167,44,.5); }
.tx-phero-empty .tx-ic { width: 48px; height: 48px; }
.tx-pstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.08); border-radius: 16px; overflow: hidden; margin-top: 48px; position: relative; z-index: 1; }
.tx-pstats > div { background: rgba(8,17,39,.6); padding: 18px 20px; }
.tx-pstats b { display: block; font: 700 30px var(--tx-head); color: #fff; }
.tx-pstats span { font-size: 13px; color: #9fb0d0; }
.tx-psec { padding: 56px 0; }
.tx-psec-alt { background: #fff; border-top: 1px solid var(--tx-line); border-bottom: 1px solid var(--tx-line); }
.tx-psec-navy { background: var(--tx-navy); color: #c7d2e8; }
.tx-psec-navy .tx-psec-h h2 { color: #fff; }
.tx-psec-h { margin-bottom: 24px; }
.tx-psec-h h2 { font: 700 clamp(24px, 3.4vw, 32px) var(--tx-head); color: var(--tx-navy); margin: 0 0 6px; }
.tx-psec-h p { margin: 0; color: var(--tx-muted); }
.tx-pempty { background: #fff; border: 1px dashed #cbd5e1; border-radius: 14px; padding: 28px; text-align: center; color: var(--tx-muted); margin-bottom: 20px; }
.tx-pempty-lg { padding: 64px 20px; }
.tx-pempty-lg .tx-ic { width: 48px; height: 48px; color: var(--tx-gold); }
.tx-pempty h2 { color: var(--tx-navy); font: 700 22px var(--tx-head); margin: 12px 0 6px; }
.tx-mini-lb { list-style: none; padding: 0; margin: 0 0 18px; background: #fff; border: 1px solid var(--tx-line); border-radius: 14px; overflow: hidden; }
.tx-mini-lb li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid #f1f5f9; }
.tx-mini-lb li:first-child { border: 0; }
.tx-mini-who { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tx-mini-who small { color: var(--tx-muted); font-size: 12px; }
.tx-mini-pts { font: 700 18px var(--tx-head); color: var(--tx-navy); }
.tx-award-row { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--tx-line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.tx-award-row > span { display: flex; flex-direction: column; }
.tx-award-row small { font-size: 12px; color: var(--tx-muted); }
.tx-how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tx-how > div { background: #fff; border: 1px solid var(--tx-line); border-radius: 16px; padding: 22px; }
.tx-how b { font: 700 13px var(--tx-head); color: var(--tx-em-d); letter-spacing: .1em; }
.tx-how h3 { font: 700 17px var(--tx-head); color: var(--tx-navy); margin: 8px 0 6px; }
.tx-how p { margin: 0; font-size: 14px; color: #475569; line-height: 1.6; }
.tx-past { display: flex; flex-direction: column; gap: 6px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 20px; text-decoration: none; color: #c7d2e8 !important; }
.tx-past:hover { border-color: var(--tx-gold); }
.tx-past h3 { color: #fff; font: 700 18px var(--tx-head); margin: 0; }
.tx-past p { margin: 0; display: flex; gap: 6px; align-items: center; color: var(--tx-gold); font-weight: 600; }
.tx-phead { background: linear-gradient(160deg, #081127, var(--tx-navy) 50%, var(--tx-navy-2)); color: #c7d2e8; padding: 48px 0 40px; }
.tx-phead h1 { font: 700 clamp(30px, 5vw, 46px)/1.1 var(--tx-head); color: #fff; margin: 10px 0 8px; }
.tx-phead p { margin: 0; max-width: 640px; }
.tx-phead-hof { background: radial-gradient(800px 300px at 50% 0%, rgba(212,167,44,.22), transparent 70%), linear-gradient(160deg, #081127, var(--tx-navy)); text-align: center; }
.tx-phead-hof p { margin: 0 auto; }
.tx-pbody { padding-top: 32px; padding-bottom: 64px; }

/* Hall of Fame */
.tx-hof-h { font: 700 22px var(--tx-head); color: var(--tx-navy); margin: 32px 0 16px; display: flex; align-items: center; gap: 12px; }
.tx-hof-h::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--tx-gold), transparent); }
.tx-hof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.tx-hof-grid-champ { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.tx-hof-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; background: #fff; border: 1px solid var(--tx-line); border-radius: 20px; padding: 48px 22px 24px; box-shadow: var(--tx-shadow); }
.tx-hof-card.is-champ { background: radial-gradient(400px 200px at 50% 0%, rgba(212,167,44,.25), transparent 70%), linear-gradient(170deg, var(--tx-navy), #081127); border: 1px solid rgba(212,167,44,.45); color: #c7d2e8; }
.tx-hof-ribbon { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: inline-flex; gap: 6px; align-items: center; font: 700 11px 'Inter'; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-gold-d); background: var(--tx-gold-l); padding: 5px 12px; border-radius: 99px; white-space: nowrap; }
.tx-hof-card.is-champ .tx-hof-ribbon { background: var(--tx-gold); color: var(--tx-navy); }
.tx-hof-card .tx-av { margin: 8px 0 8px; }
.tx-hof-card h3 { font: 700 20px var(--tx-head); color: var(--tx-navy); margin: 0; }
.tx-hof-card.is-champ h3 { color: #fff; font-size: 23px; }
.tx-hof-prog { margin: 0; font-weight: 600; color: var(--tx-em-d); font-size: 14px; }
.tx-hof-card.is-champ .tx-hof-prog { color: var(--tx-em); }
.tx-hof-period { margin: 0; font-size: 13px; color: var(--tx-muted); }
.tx-hof-cite { margin: 8px 0 0; font-size: 14px; line-height: 1.55; }
.tx-hof-meta { display: flex; gap: 16px; margin-top: 10px; font-size: 13px; }
.tx-hof-meta b { font: 700 18px var(--tx-head); color: var(--tx-gold-d); }
.tx-hof-card.is-champ .tx-hof-meta b { color: var(--tx-gold); }
.tx-hof-proj { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.tx-hof-proj small { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--tx-muted); }
.tx-hof-proj a { color: var(--tx-em-d) !important; font-weight: 600; }
.tx-hof-card.is-champ .tx-hof-proj a { color: var(--tx-gold) !important; }

/* Monthly results */
.tx-champ { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; background: radial-gradient(600px 300px at 0% 50%, rgba(212,167,44,.2), transparent 70%), linear-gradient(160deg, var(--tx-navy), #081127);
  color: #c7d2e8; border-radius: 24px; padding: 40px; border: 1px solid rgba(212,167,44,.4); }
.tx-champ-photo { position: relative; }
.tx-champ-crown { position: absolute; top: -12px; right: -6px; width: 52px; height: 52px; border-radius: 50%; background: var(--tx-gold); color: var(--tx-navy); display: grid; place-items: center; border: 4px solid var(--tx-navy); }
.tx-champ-crown .tx-ic { width: 26px; height: 26px; }
.tx-champ h2 { font: 700 clamp(28px, 4vw, 42px)/1.1 var(--tx-head); color: #fff; margin: 8px 0 4px; }
.tx-champ-prog { color: var(--tx-em); font-weight: 600; margin: 0 0 16px; }
.tx-champ-stats { display: flex; gap: 32px; margin-bottom: 16px; }
.tx-champ-stats b { display: block; font: 700 34px var(--tx-head); color: var(--tx-gold); }
.tx-champ-stats span { font-size: 13px; }

/* Rules & verify */
.tx-rules section { background: #fff; border: 1px solid var(--tx-line); border-radius: 16px; padding: 24px 28px; margin-bottom: 16px; }
.tx-rules h2 { font: 700 19px var(--tx-head); color: var(--tx-navy); margin: 0 0 10px; }
.tx-rules ul { margin: 0; padding-left: 20px; line-height: 1.75; color: #334155; }
.tx-verify label { font-weight: 600; display: flex; flex-direction: column; gap: 8px; }
.tx-verify-row { display: flex; gap: 10px; }
.tx-verify-row input { font-family: ui-monospace, Menlo, monospace !important; text-transform: uppercase; letter-spacing: .05em; }
.tx-verify-res { border-radius: 14px; padding: 20px 22px; border: 1px solid; margin-top: 16px; }
.tx-verify-res.is-valid { background: #ecfdf5; border-color: #a7f3d0; }
.tx-verify-res.is-bad { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.tx-verify-res.is-warn { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.tx-verify-st { display: flex; gap: 8px; align-items: center; font: 700 18px var(--tx-head); margin-bottom: 8px; }

/* Focus visibility */
.tx-page a:focus-visible, .tx-page button:focus-visible, .tx-page summary:focus-visible { outline: 3px solid rgba(16,185,129,.45); outline-offset: 2px; border-radius: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tx-grid-main { grid-template-columns: minmax(0, 1fr); }
  .tx-hero-card { grid-template-columns: 1fr; }
  .tx-sticky { position: static; }
  .tx-how { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .tx-side { transform: translateX(-100%); transition: transform .25s ease; width: 280px; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .tx-app.is-open .tx-side { transform: none; }
  .tx-app.is-open .tx-scrim { display: block; position: fixed; inset: 0; background: rgba(8,17,39,.5); z-index: 55; }
  .tx-main { margin-left: 0; }
  .tx-menu-btn { display: grid; place-items: center; }
  .tx-top { padding: 12px 16px; }
  .tx-top-title h1 { font-size: 18px; }
  .tx-me-name { display: none; }
  .tx-content { padding: 18px 16px 40px; }
  .tx-phero-in { grid-template-columns: 1fr; gap: 32px; }
  .tx-pstats { grid-template-columns: repeat(2, 1fr); }
  .tx-champ { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 28px 20px; }
  .tx-champ-stats { justify-content: center; }
}
@media (max-width: 680px) {
  .tx-area-student .tx-content { padding-bottom: 96px; }
  .tx-bottom { display: flex; position: fixed; inset: auto 0 0 0; z-index: 50; background: #fff; border-top: 1px solid var(--tx-line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(11,23,48,.06); }
  .tx-bottom a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; font-size: 11px; font-weight: 600; color: var(--tx-muted); text-decoration: none; border-radius: 10px; }
  .tx-bottom a.is-active { color: var(--tx-em-d); background: var(--tx-em-l); }
  .tx-bottom .tx-ic { width: 22px; height: 22px; }
  .tx-grid-2 { grid-template-columns: 1fr; }
  .tx-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .tx-hero-stats b { font-size: 20px; }
  .tx-card { padding: 18px 16px; }
  .tx-kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tx-kpi b { font-size: 22px; }
  .tx-hide-sm { display: none !important; }
  .tx-show-sm { display: block; }
  .tx-filters { flex-direction: column; align-items: stretch; }
  .tx-filters select, .tx-filters input, .tx-search input { min-width: 0; width: 100%; }
  .tx-seg { align-self: stretch; } .tx-seg a { flex: 1; text-align: center; }
  .tx-podium { gap: 6px; }
  .tx-pod { width: 33%; }
  .tx-pod b { font-size: 12px; margin-top: 8px; }
  .tx-pod-score { font-size: 16px; }
  .tx-table th, .tx-table td { padding: 10px; }
  .tx-pos { width: 44px; }
  .tx-how { grid-template-columns: 1fr; }
  .tx-phero { padding: 40px 0 28px; }
  .tx-pstats { margin-top: 32px; }
  .tx-pstats b { font-size: 24px; }
  .tx-rubric-head, .tx-rubric-row { grid-template-columns: minmax(0, 1fr) 70px 46px 34px; gap: 6px; padding: 8px; }
  .tx-list-row, .tx-details > summary { flex-wrap: wrap; }
  .tx-big { font-size: 40px; }
  .tx-verify-row { flex-direction: column; }
  .tx-subnav-in { gap: 10px; }
  .tx-subnav-brand { display: none; }
  .tx-pop[open] > .tx-form { position: fixed; left: 16px; right: 16px; width: auto; top: 30%; }
  .tx-flow li { min-width: 120px; }
  .tx-rules section { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .tx-page * { transition: none !important; } }
