@import url(https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=DM+Sans:wght@400;500;600&display=swap);
:root {
  --st-blue:     #3b82f6;
  --st-green:    #10b981;
  --st-amber:    #f59e0b;
  --st-purple:   #7c3aed;
  --st-silver:   #64748b;
  --st-gold:     #d97706;
  --st-platinum: #7c3aed;
  --st-bg:       #f8fafc;
  --st-card:     #ffffff;
  --st-border:   #e2e8f0;
  --st-text:     #0f172a;
  --st-muted:    #64748b;
  --st-radius:   12px;
  --st-shadow:   0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --st-font:     'DM Sans', -apple-system, sans-serif;
  --st-display:  'Sora', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.st-dashboard,
.st-submit-wrap,
.st-leaderboard-wrap {
  font-family: var(--st-font);
  color: var(--st-text);
  background: var(--st-bg);
  padding: 24px;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 200px;
}

.st-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.st-title {
  font-family: var(--st-display);
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.5px;
}
.st-subtitle { color: var(--st-muted); margin: 0; font-size: .9rem; }

.st-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--st-font);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  border: none;
  transition: all .15s ease;
  text-decoration: none;
}
.st-btn-primary { background: var(--st-blue); color: #fff; }
.st-btn-primary:hover { background: #2563eb; transform: translateY(-1px); }
.st-btn-full { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; }
.st-btn-sm { padding: 6px 14px; font-size: .82rem; }
.st-btn-outline { background: transparent; border: 1.5px solid var(--st-border); color: var(--st-text); }
.st-btn-outline:hover { border-color: var(--st-blue); color: var(--st-blue); }

.st-grid { display: grid; gap: 16px; }
.st-grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 20px; }

.st-badge-card {
  padding: 20px;
  border-radius: var(--st-radius);
  border: 2px solid;
  text-align: center;
  box-shadow: var(--st-shadow);
}
.st-badge-emoji { font-size: 2rem; margin-bottom: 6px; }
.st-badge-tier  { font-family: var(--st-display); font-weight: 700; font-size: 1.1rem; }
.st-badge-points{ font-size: 1.5rem; font-weight: 800; margin: 4px 0; }
.st-progress-bar{ background: #e2e8f0; border-radius: 6px; height: 8px; margin: 8px 0; overflow: hidden; }
.st-progress-fill{ height: 100%; border-radius: 6px; transition: width 1s ease; }
.st-progress-label{ font-size: .75rem; color: var(--st-muted); }

.st-stat-card {
  background: var(--st-card);
  border-radius: var(--st-radius);
  padding: 20px;
  box-shadow: var(--st-shadow);
  border: 1px solid var(--st-border);
}
.st-stat-label { font-size: .8rem; font-weight: 600; color: var(--st-muted); text-transform: uppercase; letter-spacing: .5px; }
.st-stat-value { font-family: var(--st-display); font-size: 2rem; font-weight: 800; margin: 4px 0; }
.st-stat-sub   { font-size: .8rem; color: var(--st-muted); }

.st-split-bar-wrap { margin: 0 0 20px; background: var(--st-card); border-radius: var(--st-radius); padding: 16px 20px; box-shadow: var(--st-shadow); border: 1px solid var(--st-border); }
.st-split-label { display: flex; gap: 16px; font-size: .85rem; font-weight: 600; margin-bottom: 8px; }
.st-split-bar   { display: flex; border-radius: 6px; overflow: hidden; height: 10px; }
.st-split-bar > div { transition: width 1s ease; }
.st-split-nums  { display: flex; justify-content: space-between; font-size: .78rem; color: var(--st-muted); margin-top: 6px; }

.st-roadmap { background: var(--st-card); border-radius: var(--st-radius); padding: 20px; box-shadow: var(--st-shadow); border: 1px solid var(--st-border); margin-bottom: 20px; }
.st-roadmap h3 { font-family: var(--st-display); font-weight: 700; margin: 0 0 16px; }
.st-roadmap-track { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.st-roadmap-item  { text-align: center; }
.st-roadmap-icon  { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; margin: 0 auto 6px; }
.st-roadmap-label { font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
.st-roadmap-bar   { background: #e2e8f0; border-radius: 4px; height: 6px; margin: 6px 0; overflow: hidden; }
.st-roadmap-pts   { font-size: .75rem; color: var(--st-muted); }

.st-card { background: var(--st-card); border-radius: var(--st-radius); box-shadow: var(--st-shadow); border: 1px solid var(--st-border); margin-bottom: 20px; overflow: hidden; }
.st-card-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--st-border); flex-wrap: wrap; gap: 8px; }
.st-card-header h3 { margin: 0; font-family: var(--st-display); font-weight: 700; }

.st-filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.st-tab { padding: 5px 12px; border-radius: 20px; border: 1px solid var(--st-border); background: transparent; cursor: pointer; font-size: .82rem; font-weight: 500; font-family: var(--st-font); color: var(--st-muted); transition: all .15s; }
.st-tab.active { background: var(--st-blue); color: #fff; border-color: var(--st-blue); }
.st-tab-count { background: rgba(255,255,255,.3); border-radius: 10px; padding: 0 6px; margin-left: 4px; font-size: .75rem; }

.st-table-wrap { overflow-x: auto; }
.st-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.st-table th { text-align: left; padding: 10px 16px; font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; color: var(--st-muted); font-weight: 600; border-bottom: 1px solid var(--st-border); background: #f8fafc; }
.st-table td { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.st-table tr:last-child td { border-bottom: none; }
.st-table tr:hover td { background: #f8fafc; }
.st-sub  { font-size: .78rem; color: var(--st-muted); margin-top: 2px; }
.st-date { font-size: .8rem; color: var(--st-muted); white-space: nowrap; }

.st-kpi-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .75rem; font-weight: 700; color: #fff; letter-spacing: .5px; }

.st-tier-chip { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: .75rem; font-weight: 700; letter-spacing: .5px; }
.st-tier-chip[data-tier="silver"]   { background: #f1f5f9; color: #475569; }
.st-tier-chip[data-tier="gold"]     { background: #fef3c7; color: #92400e; }
.st-tier-chip[data-tier="platinum"] { background: #ede9fe; color: #5b21b6; }
.st-tier-chip[data-tier="none"]     { background: #f1f5f9; color: #94a3b8; }

.st-status { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.st-status-pending  { background: #fef3c7; color: #92400e; }
.st-status-approved { background: #d1fae5; color: #065f46; }
.st-status-rejected { background: #fee2e2; color: #991b1b; }

.st-pillar-section { padding: 16px 20px 8px; border-bottom: 1px solid var(--st-border); }
.st-pillar-section:last-child { border-bottom: none; }
.st-pillar-title { font-family: var(--st-display); font-size: .9rem; font-weight: 700; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .5px; }
.st-quality-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; padding-bottom: 8px; }
.st-quality-card { background: #f8fafc; border-radius: 8px; padding: 12px; border: 1px solid var(--st-border); text-align: center; }
.st-quality-code  { font-weight: 700; font-size: 1rem; margin-bottom: 2px; }
.st-quality-name  { font-size: .72rem; color: var(--st-muted); margin-bottom: 8px; line-height: 1.3; }
.st-quality-value { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.st-quality-pts   { font-size: .75rem; color: var(--st-green); font-weight: 700; margin-top: 4px; }

.st-form { background: var(--st-card); border-radius: var(--st-radius); padding: 28px; box-shadow: var(--st-shadow); border: 1px solid var(--st-border); }
.st-form-group { margin-bottom: 22px; }
.st-label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 8px; color: var(--st-text); }
.st-input, .st-textarea, .st-select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--st-border);
  border-radius: 8px;
  font-family: var(--st-font);
  font-size: .92rem;
  transition: border-color .15s;
  outline: none;
  color: var(--st-text);
  background: #fff;
}
.st-input:focus, .st-textarea:focus, .st-select:focus { border-color: var(--st-blue); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.st-textarea { resize: vertical; }
.st-hint { font-size: .78rem; color: var(--st-muted); margin: 4px 0 0; }

.st-kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.st-kpi-option {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 12px 14px; border: 2px solid var(--st-border); border-radius: 8px;
  background: #fff; cursor: pointer; text-align: left; transition: all .15s; font-family: var(--st-font);
}
.st-kpi-option:hover, .st-kpi-option.selected { border-color: var(--st-blue); background: #eff6ff; }
.st-kpi-code { font-weight: 700; font-size: .82rem; color: var(--st-blue); }
.st-kpi-name { font-size: .82rem; font-weight: 500; color: var(--st-text); line-height: 1.3; }
.st-kpi-range{ font-size: .72rem; color: var(--st-muted); }

.st-tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.st-tier-option {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px; border: 2px solid var(--st-border); border-radius: 8px;
  background: #fff; cursor: pointer; font-family: var(--st-font); transition: all .15s; font-size: 1.2rem;
}
.st-tier-option:hover { transform: translateY(-2px); }
.st-tier-option.selected[data-tier="silver"]   { border-color: #64748b; background: #f1f5f9; }
.st-tier-option.selected[data-tier="gold"]     { border-color: #d97706; background: #fef3c7; }
.st-tier-option.selected[data-tier="platinum"] { border-color: #7c3aed; background: #ede9fe; }
.st-tier-name { font-size: .85rem; font-weight: 700; }
.st-tier-pts  { font-size: .8rem; color: var(--st-green); font-weight: 700; }

.st-guidance { background: #f0f9ff; border-left: 3px solid var(--st-blue); padding: 10px 14px; border-radius: 0 6px 6px 0; font-size: .85rem; color: #1e40af; line-height: 1.5; margin-top: 10px; }

.st-points-preview {
  display: flex; align-items: center; justify-content: space-between;
  background: #f0fdf4; border: 1.5px solid #86efac; border-radius: 8px;
  padding: 12px 16px; margin-bottom: 16px; font-weight: 600; font-size: .9rem;
}
.st-pts-highlight { font-size: 1.4rem; color: var(--st-green); font-family: var(--st-display); font-weight: 800; }

.st-leaderboard-table { background: var(--st-card); border-radius: var(--st-radius); box-shadow: var(--st-shadow); border: 1px solid var(--st-border); overflow: hidden; }
.st-lb-row { display: grid; grid-template-columns: 50px 1fr auto auto 160px; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #f1f5f9; transition: background .1s; }
.st-lb-row:last-child { border-bottom: none; }
.st-lb-row:hover { background: #f8fafc; }
.st-lb-top { background: linear-gradient(to right, #fffbeb, #fff); }
.st-lb-rank  { font-size: 1.2rem; text-align: center; }
.st-lb-school strong { font-weight: 700; }
.st-lb-points{ font-family: var(--st-display); font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.st-lb-bar   { background: #e2e8f0; border-radius: 6px; overflow: hidden; height: 8px; }

.st-success-banner, .st-error-banner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-weight: 500;
}
.st-success-banner { background: #d1fae5; color: #065f46; }
.st-error-banner   { background: #fee2e2; color: #991b1b; }
.st-dismiss { background: none; border: none; cursor: pointer; font-size: 1rem; opacity: .6; padding: 0 0 0 12px; }

.st-loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px; color: var(--st-muted); }
.st-spinner { width: 36px; height: 36px; border: 3px solid #e2e8f0; border-top-color: var(--st-blue); border-radius: 50%; animation: st-spin .7s linear infinite; }
@keyframes st-spin { to { transform: rotate(360deg); } }
.st-error-box { padding: 24px; background: #fee2e2; border-radius: var(--st-radius); color: #991b1b; }
.st-empty  { padding: 32px; text-align: center; color: var(--st-muted); font-size: .9rem; }

.st-tabs { display: flex; border-bottom: 2px solid var(--st-border); margin-bottom: 20px; gap: 0; }
.st-tab-main { padding: 10px 20px; border: none; background: none; font-family: var(--st-font); font-size: .9rem; font-weight: 600; color: var(--st-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .15s; }
.st-tab-main.active { color: var(--st-blue); border-bottom-color: var(--st-blue); }
.st-tab-main:hover { color: var(--st-blue); }

@media (max-width: 640px) {
  .st-roadmap-track { grid-template-columns: 1fr; }
  .st-tier-grid     { grid-template-columns: 1fr; }
  .st-lb-row        { grid-template-columns: 40px 1fr auto; }
  .st-lb-bar, .st-lb-tier { display: none; }
  .st-grid-4        { grid-template-columns: 1fr 1fr; }
  .st-kpi-grid      { grid-template-columns: 1fr 1fr; }
}

