:root {
  --red: #a51f2b;
  --red-dark: #7d1720;
  --red-deep: #61121b;
  --blue: #245596;
  --blue-deep: #1b4273;
  --gold: #b38a3a;
  --gold-light: #f2d9a4;
  --ink: #1e2732;
  --ink-soft: #3a4656;
  --muted: #687282;
  --line: #dce1e8;
  --line-soft: #e9edf2;
  --surface: #ffffff;
  --background: #f3f5f8;
  --background-deep: #eef1f5;
  --success: #20734a;
  --success-soft: #edf8f2;
  --danger: #b42318;
  --danger-soft: #fff1f0;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(23, 31, 42, .06);
  --shadow: 0 6px 20px rgba(23, 31, 42, .08);
  --shadow-lg: 0 18px 44px rgba(23, 31, 42, .16);
  --ring: 0 0 0 3px rgba(36, 85, 150, .16);
  --ring-red: 0 0 0 3px rgba(165, 31, 43, .16);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --transition: 160ms var(--ease);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--background); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .52; }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--ring); }
button:focus-visible, input:focus-visible, select:focus-visible { box-shadow: var(--ring); }
.rg-app { min-height: 100vh; }

/* ---------- Header ---------- */
.rg-header {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px max(20px, calc((100vw - 1440px) / 2));
  color: #fff;
  background: linear-gradient(180deg, #bd1023 0%, #930016 100%);
  border-bottom: 3px solid #d4af37;
  box-shadow: 0 2px 14px rgba(65, 0, 5, .24);
}
.rg-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rg-brand-mark {
  display: grid;
  width: 46px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255,224,136,.72);
  border-radius: var(--radius-sm);
  color: #ffe088;
  background: rgba(65,0,5,.14);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
}
.rg-brand strong { display: block; font-family: Georgia, serif; font-size: 15px; letter-spacing: .02em; line-height: 1.35; white-space: normal; }
.rg-brand small { display: block; margin-top: 3px; color: rgba(255,255,255,.78); font-size: 11px; }
.lang-zh .rg-brand strong { max-width: 320px; font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.rg-header-actions { display: flex; min-width: 0; align-items: center; gap: 10px; }
.rg-lang-switch { display: flex; flex: 0 0 auto; border: 1px solid rgba(255,224,136,.52); border-radius: 8px; overflow: hidden; }
.rg-lang-switch button {
  min-height: 32px;
  padding: 5px 12px;
  border: 0;
  border-right: 1px solid rgba(255,224,136,.52);
  color: rgba(255,255,255,.9);
  background: transparent;
  font-size: 12px;
  transition: background var(--transition), color var(--transition);
}
.rg-lang-switch button:last-child { border-right: 0; }
.rg-lang-switch button:hover { background: rgba(255,224,136,.14); }
.rg-lang-switch button.active { color: #930016; background: #fff; font-weight: 700; }
.rg-node { white-space: nowrap; color: rgba(255,255,255,.78); font-size: 12px; }

/* ---------- Buttons ---------- */
.rg-btn {
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  transition: background var(--transition), border-color var(--transition), color var(--transition),
    box-shadow var(--transition), transform var(--transition);
}
.rg-btn:active:not(:disabled) { transform: translateY(1px); }
.rg-btn-primary { color: #fff; background: var(--red); border-color: var(--red); box-shadow: 0 2px 6px rgba(165,31,43,.28); }
.rg-btn-primary:hover:not(:disabled) { background: var(--red-dark); border-color: var(--red-dark); box-shadow: 0 6px 16px rgba(165,31,43,.34); transform: translateY(-1px); }
.rg-btn-primary:focus-visible { box-shadow: var(--ring-red); }
.rg-btn-secondary { color: #344152; background: #fff; border-color: #c3cad5; box-shadow: var(--shadow-sm); }
.rg-btn-secondary:hover:not(:disabled) { color: var(--blue); border-color: var(--blue); box-shadow: 0 4px 12px rgba(36,85,150,.14); }
.rg-btn-header { min-height: 32px; padding: 5px 13px; color: #fff; background: transparent; border-color: #707b89; box-shadow: none; }
.rg-btn-header:hover:not(:disabled) { background: rgba(255,255,255,.1); border-color: #9aa4b3; }
.rg-header-main {
  position: sticky;
  top: 0;
  min-height: 72px;
  padding-top: 12px;
  padding-bottom: 12px;
  color: var(--ink);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(205,212,222,.88);
  box-shadow: 0 8px 26px rgba(31,44,62,.08);
  backdrop-filter: blur(14px);
}
.rg-header-main .rg-brand-mark {
  width: 50px;
  height: 42px;
  color: #fff;
  border-color: var(--red);
  background: linear-gradient(135deg, var(--red) 0%, #7f1825 100%);
  box-shadow: 0 8px 18px rgba(165,31,43,.2);
}
.rg-header-main .rg-brand strong { color: var(--ink); font-size: 16px; }
.lang-zh .rg-header-main .rg-brand strong { max-width: 520px; font-size: 16px; }
.rg-header-main .rg-brand small { color: var(--muted); font-size: 12px; }
.rg-header-main .rg-header-actions { gap: 12px; }
.rg-header-main .rg-lang-switch { border-color: #d1d7e0; background: #f7f9fc; }
.rg-header-main .rg-lang-switch button {
  border-right-color: #d1d7e0;
  color: #5b6675;
  background: transparent;
}
.rg-header-main .rg-lang-switch button:hover { color: var(--red); background: #fff; }
.rg-header-main .rg-lang-switch button.active {
  color: #fff;
  background: var(--red);
}
.rg-header-main .rg-node {
  padding: 6px 10px;
  color: var(--blue-deep);
  border: 1px solid #d7e1ee;
  border-radius: 999px;
  background: #f3f7fc;
  font-weight: 700;
}
.rg-header-main .rg-btn-header {
  color: var(--red);
  background: #fff;
  border-color: rgba(165,31,43,.3);
  box-shadow: var(--shadow-sm);
}
.rg-header-main .rg-btn-header:hover:not(:disabled) {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 8px 18px rgba(165,31,43,.22);
}
.rg-btn-wide { width: 100%; min-height: 50px; margin-top: 16px; border-radius: 10px; font-size: 15px; }
.rg-link-btn { width: 100%; margin-top: 14px; border: 0; color: var(--blue); background: transparent; transition: color var(--transition); }
.rg-link-btn:hover:not(:disabled) { color: var(--blue-deep); text-decoration: underline; }

/* ---------- Auth ---------- */
.rg-auth-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 552px) minmax(420px, 552px);
  align-items: center;
  justify-content: center;
  gap: clamp(36px, 3.5vw, 48px);
  height: 100vh;
  min-height: 100vh;
  padding: clamp(28px, 5vh, 56px) clamp(32px, 5vw, 64px);
  overflow: hidden;
  background:
    radial-gradient(circle at 20px 20px, rgba(181,208,253,.55) 1px, transparent 1.5px) 0 0 / 24px 24px,
    radial-gradient(circle at 78% 18%, rgba(212,175,55,.18), transparent 28%),
    radial-gradient(circle at 18% 82%, rgba(189,16,35,.09), transparent 26%),
    #f7fafc;
}
.rg-auth-lang { position: absolute; z-index: 4; top: 24px; right: max(24px, calc((100vw - 1280px) / 2 + 64px)); }
.rg-auth-lang .rg-lang-switch { border-color: rgba(69,95,135,.24); background: rgba(255,255,255,.78); box-shadow: 0 6px 20px rgba(30,58,95,.08); backdrop-filter: blur(12px); }
.rg-auth-lang .rg-lang-switch button { border-right-color: rgba(69,95,135,.2); color: #455f87; }
.rg-auth-lang .rg-lang-switch button:hover { color: #bd1023; background: #fff; }
.rg-auth-lang .rg-lang-switch button.active { color: #fff; background: #bd1023; }
.rg-auth-shell::before { content: ""; position: absolute; inset: -18% auto auto -8%; width: 42vw; height: 42vw; min-width: 360px; min-height: 360px; border-radius: 50%; background: rgba(255,255,255,.56); filter: blur(1px); pointer-events: none; }
.rg-auth-visual { position: relative; z-index: 1; display: flex; min-width: 0; min-height: 0; flex-direction: column; align-items: flex-start; justify-content: center; overflow: visible; padding: 0; background: transparent; }
.rg-auth-art { position: relative; width: min(100%, 43vh, 512px); aspect-ratio: 1 / 1; margin-top: clamp(24px, 3vh, 32px); flex: 0 0 auto; overflow: hidden; border: 1px solid rgba(212,175,55,.32); border-radius: 50%; background: rgba(255,255,255,.82); box-shadow: 0 18px 48px rgba(30,58,95,.1); }
.rg-auth-art > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: translate(10px, 54px) scale(1.55); }
.rg-auth-visual::before { content: ""; position: absolute; z-index: -1; right: 16%; bottom: 8%; width: 160px; height: 160px; border-radius: 50%; background: rgba(189,16,35,.1); filter: blur(24px); }
.rg-auth-visual::after { content: ""; position: absolute; z-index: -1; top: 18%; right: 12%; width: 120px; height: 120px; border-radius: 50%; background: rgba(212,175,55,.16); filter: blur(24px); }
.rg-auth-event { position: relative; z-index: 2; width: min(100%, 512px); max-width: 512px; color: #1a1b21; }
.rg-auth-kicker { display: inline-block; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid #d4af37; color: #bd1023; font-family: Georgia, "Times New Roman", serif; font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.rg-auth-event h1 { max-width: 512px; margin: 0; color: #bd1023; font-family: Georgia, "Times New Roman", "Songti SC", serif; font-size: clamp(34px, 4.3vw, 64px); font-weight: 700; line-height: 1.16; letter-spacing: 0; text-shadow: none; }
.rg-auth-event h1.rg-auth-event-title-zh { font-size: clamp(38px, 3.4vw, 50px); }
.lang-en .rg-auth-event h1, .lang-ru .rg-auth-event h1 { font-size: clamp(30px, 2.7vw, 40px); line-height: 1.1; overflow-wrap: break-word; }
.rg-auth-event-title-zh > span { display: block; white-space: nowrap; }
.rg-auth-event p { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; color: #455f87; font-size: 18px; font-weight: 600; text-shadow: none; }
.rg-auth-event p span { width: 4px; height: 4px; border-radius: 50%; background: #d4af37; }
.rg-auth-form { position: relative; z-index: 2; display: flex; min-width: 0; min-height: 0; align-items: center; justify-content: center; overflow-y: auto; padding: 0; background: transparent; box-shadow: none; }
.rg-auth-form > div { width: min(100%, 448px); }
.rg-auth-panel { position: relative; overflow: hidden; padding: 40px; border: 1px solid rgba(212,175,55,.26); border-radius: 12px; background: rgba(255,255,255,.76); box-shadow: 0 16px 42px rgba(30,58,95,.08); backdrop-filter: blur(16px); }
.rg-auth-panel::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 4px; background: linear-gradient(90deg, #bd1023, #d4af37); opacity: .9; }
.rg-auth-form h2 { position: relative; z-index: 1; margin: 6px 0 8px; color: #1e3a5f; font-family: Georgia, "Times New Roman", "Songti SC", serif; font-size: 30px; font-weight: 700; line-height: 1.25; letter-spacing: 0; }
.rg-auth-intro { position: relative; z-index: 1; margin: 0 0 30px; color: #5c6b7c; font-size: 15px; line-height: 1.7; }
.rg-auth-form > div > .rg-auth-field { display: block; margin-top: 18px; }
.rg-auth-form > div > .rg-auth-field:first-of-type { margin-top: 0; }
.rg-auth-form > div > .rg-error { min-height: 22px; margin-top: 12px; }
.rg-auth-form .rg-auth-field, .rg-auth-panel label { position: relative; z-index: 1; color: #455f87; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.rg-auth-form input[type="email"], .rg-auth-form input[type="password"] { position: relative; z-index: 1; min-height: 48px; padding: 11px 2px; color: #1a1b21; border: 0; border-bottom: 1px solid #d7dadc; border-radius: 0; background: transparent; box-shadow: none; }
.rg-auth-form input[type="email"]:focus, .rg-auth-form input[type="password"]:focus { border-color: #bd1023; background: transparent; box-shadow: none; }
.rg-auth-panel .rg-btn-primary { position: relative; z-index: 1; min-height: 52px; border: 0; border-radius: 999px; color: #fff; background: #bd1023; box-shadow: 0 8px 18px rgba(189,16,35,.2); font-size: 14px; letter-spacing: .04em; }
.rg-auth-panel .rg-btn-primary:hover:not(:disabled) { background: #930016; box-shadow: 0 12px 24px rgba(189,16,35,.28); transform: translateY(-1px); }
.rg-auth-alternative { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; margin: 28px 0 12px; padding-top: 20px; color: rgba(69,95,135,.72); border-top: 1px solid rgba(215,218,220,.72); font-size: 12px; white-space: nowrap; }
.rg-auth-alternative::before, .rg-auth-alternative::after { content: ""; height: 0; flex: 1 1 auto; background: transparent; }
.rg-auth-panel .rg-register-btn { position: relative; z-index: 1; min-height: 44px; margin-top: 0; border-radius: 999px; color: #1e3a5f; border-color: rgba(69,95,135,.22); background: rgba(255,255,255,.78); box-shadow: none; font-size: 13px; }
.rg-auth-panel .rg-register-btn:hover:not(:disabled) { color: #bd1023; border-color: rgba(189,16,35,.28); background: #fff; }
.rg-eyebrow { position: relative; z-index: 1; margin: 0 0 4px; color: #bd1023; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.rg-auth-panel .rg-link-btn { position: relative; z-index: 1; color: #bd1023; }
.rg-auth-panel .rg-check { position: relative; z-index: 1; color: #5c6b7c; text-transform: none; }

/* ---------- Form controls ---------- */
label { color: #4b5767; font-size: 12px; font-weight: 600; }
input[type="text"], input[type="password"], input[type="email"], input[type="date"], select {
  display: block;
  width: 100%;
  min-height: 41px;
  margin-top: 6px;
  padding: 8px 11px;
  border: 1px solid #cbd2dc;
  border-radius: 8px;
  outline: none;
  color: var(--ink);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
input:hover, select:hover { border-color: #aab4c1; }
input:focus, select:focus { border-color: var(--blue); box-shadow: var(--ring); }
input::placeholder { color: #a5adba; }
.rg-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.rg-form-grid > label { min-width: 0; }
.rg-span-2 { grid-column: span 2; }
.rg-role-cards { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 22px; }
.rg-role-card { position: relative; display: grid; grid-template-columns: 180px minmax(0, 1fr); column-gap: 20px; row-gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #f8f9fb; }
.rg-role-card h3, .rg-role-card h4 { grid-column: 1 / -1; margin: 0 34px 0 0; font-size: 15px; }
.rg-role-card h4 { font-size: 14px; }
.rg-role-group { min-width: 0; }
.rg-role-group-head { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.rg-role-group-head h3 { margin: 0; font-size: 15px; }
.rg-role-group-head .rg-btn { min-height: 32px; padding: 5px 10px; font-size: 12px; }
.rg-role-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.rg-staff-remove { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; font-size: 16px; }
.rg-role-card .rg-form-grid { grid-column: 2; grid-row: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); align-self: start; }
.rg-role-photo { grid-column: 1; grid-row: 2; display: flex; align-items: center; gap: 10px; margin: 0; }
.rg-role-photo img { width: 56px; height: 76px; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.rg-role-photo > span { color: var(--muted); font-size: 11px; }
.rg-upload-remove { position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; font-size: 15px; }
.rg-club-logo-wrap { position: relative; }
.rg-role-photo-wrap { position: relative; }
.rg-cert-wrap { position: relative; }
.rg-role-photo-wrap > span { display: grid; width: 56px; height: 76px; place-items: center; padding: 4px; color: var(--muted); border: 1px dashed #b9c1cc; border-radius: 6px; background: #fff; font-size: 10px; text-align: center; }
.rg-cert-wrap > span { display: grid; width: 84px; height: 60px; place-items: center; padding: 4px; color: var(--muted); border: 1px dashed #b9c1cc; border-radius: 6px; background: #fff; font-size: 10px; text-align: center; }
.rg-club-logo { display: flex; flex-direction: column; align-items: center; gap: 6px; align-self: end; margin-bottom: 2px; }
.rg-club-logo-box { display: grid; width: 82px; height: 82px; place-items: center; overflow: hidden; border: 1px dashed #b9c1cc; border-radius: 10px; background: #f7f9fc; cursor: pointer; transition: border-color var(--transition), box-shadow var(--transition); }
.rg-club-logo-box:hover { border-color: var(--blue); box-shadow: var(--ring); }
.rg-club-logo-box img { width: 100%; height: 100%; object-fit: cover; }
.rg-club-logo-empty { padding: 0 8px; color: var(--muted); font-size: 11px; text-align: center; line-height: 1.4; }
.rg-club-logo-tip { color: var(--muted); font-size: 10px; }
.rg-referee-cert { grid-column: 2; grid-row: 3; margin-top: 0; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.rg-referee-cert > strong { display: block; margin-bottom: 8px; font-size: 12px; }
.rg-referee-cert > div { display: flex; align-items: center; gap: 10px; }
.rg-referee-cert img { width: 84px; height: 60px; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.rg-referee-cert span { color: var(--muted); font-size: 11px; }
@media (max-width: 1120px) {
  .rg-role-card { grid-template-columns: 150px minmax(0, 1fr); column-gap: 16px; padding: 16px; }
}
@media (max-width: 820px) {
  .rg-role-cards { grid-template-columns: 1fr; }
  .rg-role-card { grid-template-columns: 1fr; row-gap: 12px; }
  .rg-role-card h3, .rg-role-card h4, .rg-role-photo, .rg-role-card .rg-form-grid, .rg-referee-cert { grid-column: 1; grid-row: auto; }
  .rg-role-card .rg-form-grid { grid-template-columns: 1fr; }
}
.rg-check { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; color: #4d5866; line-height: 1.45; cursor: pointer; }
.rg-check input { flex: 0 0 auto; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--red); }
.rg-error { padding: 11px 13px; margin-top: 13px; border-left: 3px solid var(--danger); border-radius: var(--radius-sm); color: #8f1912; background: var(--danger-soft); }

/* ---------- Main layout ---------- */
.rg-main { min-height: calc(100vh - 66px); }
.rg-notify {
  position: fixed;
  z-index: 100;
  top: 78px;
  left: 50%;
  width: min(620px, calc(100vw - 30px));
  padding: 11px 16px;
  border: 1px solid;
  border-radius: 10px;
  transform: translateX(-50%);
  box-shadow: var(--shadow-lg);
  animation: rg-notify-in 240ms var(--ease);
}
@keyframes rg-notify-in {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.rg-notify-error { color: #8f1912; background: var(--danger-soft); border-color: #f0aaa5; }
.rg-notify-success { color: #175d3c; background: var(--success-soft); border-color: #94d0af; }
.rg-notify-warning { color: #7a4a00; background: #fff8e6; border-color: #e7c36a; }
.rg-container { max-width: 1380px; margin: 18px auto; }

.rg-event-strip {
  display: flex;
  min-height: 160px;
  align-items: stretch;
  justify-content: space-between;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #8c1c26 0%, #a5212c 55%, #b3383e 100%);
  box-shadow: 0 2px 14px rgba(23,31,42,.1);
}
.rg-event-strip > div { display: flex; flex-direction: column; justify-content: center; max-width: 1040px; padding: 26px max(24px, calc((100vw - 1380px) / 2)); padding-right: 34px; }
.rg-event-strip p { margin: 0 0 8px; color: var(--gold-light); font-weight: 700; letter-spacing: .02em; }
.rg-event-strip h1 { max-width: 900px; margin: 0; font-family: Georgia, serif; font-size: 25px; line-height: 1.3; text-shadow: 0 1px 12px rgba(0,0,0,.28); }
.rg-event-strip img { width: 250px; flex: 0 0 250px; object-fit: cover; object-position: center 30%; border-left: 3px solid #fff; }

.rg-workspace { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 22px; max-width: 1380px; margin: 0 auto; padding: 22px 20px 50px; }
.rg-sidebar { min-width: 0; }
.rg-steps { display: grid; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.rg-steps button {
  position: relative;
  display: flex;
  min-height: 47px;
  align-items: center;
  gap: 11px;
  padding: 8px 13px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  color: #596575;
  background: transparent;
  text-align: left;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.rg-steps button:last-child { border-bottom: 0; }
.rg-steps button:hover { background: #f6f8fb; color: var(--ink); }
.rg-steps button span { display: grid; width: 25px; height: 25px; place-items: center; flex: 0 0 auto; border: 1px solid #c1c8d1; border-radius: 50%; font-size: 11px; transition: all var(--transition); }
.rg-steps button.active { color: #fff; background: linear-gradient(180deg, #b22533 0%, var(--red) 100%); box-shadow: inset 3px 0 0 var(--gold); }
.rg-steps button.active span { border-color: #fff; background: rgba(255,255,255,.16); }
.rg-steps button.complete { color: var(--success); }
.rg-steps button.complete:hover { background: #f2faf6; }
.rg-steps button.complete span { color: #fff; background: var(--success); border-color: var(--success); }

.rg-stats { margin-top: 16px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.rg-stats-head { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 1px 10px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.rg-stats h2 { margin: 0; font-size: 14px; letter-spacing: .01em; }
.rg-stats strong { grid-row: span 2; color: var(--red); font-family: Georgia, serif; font-size: 28px; }
.rg-stats small { color: var(--muted); font-size: 10px; }
.rg-stats table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 11px; }
.rg-stats-filter { display: flex; gap: 6px; margin-top: 10px; }
.rg-stats-filter button { flex: 1; min-height: 30px; border: 1px solid #c3cad5; border-radius: 6px; color: #596575; background: #fff; font-weight: 600; font-size: 12px; }
.rg-stats-filter button.active { color: #fff; background: var(--blue); border-color: var(--blue); }
.rg-stats-age { margin-top: 10px; }
.rg-stats-age select { width: 100%; min-height: 34px; margin-top: 0; font-size: 12px; }
.rg-stats th { padding: 7px 3px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
.rg-stats td { padding: 6px 3px; border-bottom: 1px solid var(--line-soft); text-align: center; }
.rg-stats tbody tr { transition: background var(--transition); }
.rg-stats tbody tr:hover { background: #f7f9fc; }
.rg-stats th:first-child, .rg-stats td:first-child { text-align: left; }

/* ---------- Content panels ---------- */
.rg-content { min-width: 0; }
.rg-panel {
  min-height: 450px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.rg-panel-head { display: flex; min-height: 50px; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 23px; padding-bottom: 15px; border-bottom: 2px solid var(--ink); }
.rg-panel-head > div:first-child { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.rg-panel-head p { margin: 0; color: var(--red); font-family: Georgia, serif; font-size: 15px; font-weight: 800; }
.rg-panel-head h2 { margin: 0; font-family: Georgia, serif; font-size: 22px; line-height: 1.25; letter-spacing: .01em; }
.rg-count { min-width: 54px; padding: 5px 10px; color: #fff; background: var(--blue); border-radius: var(--radius-sm); text-align: center; }
.rg-command-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.rg-empty, .rg-muted { padding: 26px 10px; color: var(--muted); text-align: center; }
.rg-muted { padding: 9px 0; text-align: left; }
.rg-grow { flex: 1; }

.rg-athlete-row { display: flex; align-items: flex-start; gap: 13px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rg-athlete-row:last-child { border-bottom: 0; }
.rg-athlete-row .rg-grow { min-width: 0; }
.rg-athlete-photo-control { display: flex; width: 92px; align-items: stretch; flex: 0 0 auto; flex-direction: column; gap: 7px; }
.rg-athlete-photo-control .rg-photo { width: 78px; margin: 0 auto; }
.rg-athlete-photo-control > span { color: var(--danger); font-size: 11px; text-align: center; }
.rg-athlete-photo-control > span.ok { color: var(--success); }
.rg-athlete-photo-control > small { color: var(--muted); font-size: 10px; line-height: 1.35; text-align: center; }
.rg-athlete-photo-control .rg-btn { width: 100%; min-height: 32px; padding: 6px 5px; font-size: 11px; }
.rg-row-index { display: grid; width: 32px; height: 32px; place-items: center; flex: 0 0 auto; color: #fff; background: var(--blue); border-radius: var(--radius-sm); font-weight: 800; box-shadow: var(--shadow-sm); }
.rg-icon-remove {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid #c9cfd8;
  border-radius: 50%;
  color: #7a4650;
  background: #fff;
  font-size: 20px;
  line-height: 1;
  transition: all var(--transition);
}
.rg-icon-remove:hover { color: #fff; background: var(--red); border-color: var(--red); box-shadow: 0 4px 10px rgba(165,31,43,.28); }

.rg-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rg-photo-item { display: flex; min-width: 0; align-items: center; gap: 13px; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow var(--transition), border-color var(--transition); }
.rg-photo-item:hover { border-color: #c7cfda; box-shadow: var(--shadow-sm); }
.rg-photo { display: grid; width: 78px; height: 104px; place-items: center; flex: 0 0 auto; overflow: hidden; color: #8791a0; background: #edf0f4; border: 1px dashed #b9c1cc; border-radius: 8px; font-family: Georgia, serif; font-size: 25px; }
.rg-photo img { width: 100%; height: 100%; object-fit: cover; }
.rg-photo-item > div:last-child { min-width: 0; }
.rg-photo-item h3 { margin: 0 0 5px; overflow-wrap: anywhere; font-size: 14px; }
.rg-photo-item p { margin: 0 0 11px; color: var(--danger); font-size: 11px; }
.rg-photo-item small { display: block; margin: -5px 0 9px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.rg-photo-item p.ok, .ok { color: var(--success) !important; }
.rg-file-label { position: relative; display: inline-grid; place-items: center; overflow: hidden; cursor: pointer; font-size: inherit; }
.rg-file-label input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.rg-subsection { margin-top: 24px; }
.rg-subsection:first-of-type { margin-top: 0; }
.rg-subsection > h3, .rg-subsection-head h3 { margin: 0; font-size: 16px; letter-spacing: .01em; }
.rg-subsection-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.rg-subsection-head strong small { margin-left: 8px; color: var(--muted); font-size: 12px; font-weight: 500; }
.rg-entry-athlete { margin-top: 12px; padding: 16px; border-left: 3px solid var(--blue); border-radius: var(--radius-sm); background: #f8f9fb; }
.rg-entry-row, .rg-team-row { margin-top: 12px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: box-shadow var(--transition); }
.rg-entry-row:hover, .rg-team-row:hover { box-shadow: var(--shadow); }
.rg-entry-controls { display: flex; align-items: center; gap: 14px; }
.rg-entry-controls > label { display: flex; flex: 1 1 0; min-width: 0; align-items: center; gap: 8px; white-space: nowrap; }
.rg-entry-controls > label:first-child { flex: 1.6 1 0; }
.rg-entry-controls > label select, .rg-entry-controls > label input { flex: 1 1 auto; min-width: 0; margin-top: 0; }
.rg-entry-controls .rg-icon-remove { flex: 0 0 34px; }
.rg-rule { margin: 11px 0 8px; padding: 8px 11px; color: var(--blue-deep); background: #eef3fa; border-radius: var(--radius-sm); font-size: 12px; }
.rg-choice-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.rg-choice { position: relative; display: inline-flex; min-height: 34px; align-items: center; color: var(--ink); font-weight: 600; cursor: pointer; }
.rg-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rg-choice span { display: inline-flex; min-height: 34px; align-items: center; padding: 6px 12px; border: 1px solid #c5ccd5; border-radius: 7px; background: #fff; transition: all var(--transition); }
.rg-choice:hover span { border-color: var(--blue); color: var(--blue); }
.rg-choice input:checked + span { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 3px 8px rgba(36,85,150,.26); }
.rg-choice span small { margin-left: 4px; font-weight: 500; opacity: .8; }
.rg-choice input:focus-visible + span { box-shadow: var(--ring); }
.rg-choice input:disabled + span { opacity: .76; cursor: default; }
.rg-field-caption { margin: 13px 0 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.rg-entry-music-list { margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); }
.rg-entry-music-list > p { margin: 0 0 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.rg-entry-music-row, .rg-team-music { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; }
.rg-entry-music-row + .rg-entry-music-row { border-top: 1px solid var(--line-soft); }
.rg-entry-music-row > div, .rg-team-music > div { min-width: 0; }
.rg-entry-music-row strong, .rg-entry-music-row span, .rg-team-music strong, .rg-team-music span { display: block; overflow-wrap: anywhere; }
.rg-entry-music-row span, .rg-team-music span { margin-top: 3px; color: var(--danger); font-size: 11px; }
.rg-music-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: 0 0 auto; }
.rg-entry-music-row .rg-btn, .rg-team-music .rg-btn { min-width: 108px; flex: 0 0 auto; }
.rg-audio-btn { display: inline-flex; width: 32px; height: 32px; flex: 0 0 32px; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-soft); background: var(--surface); cursor: pointer; transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease; }
.rg-audio-btn:hover, .rg-audio-btn.playing { color: var(--red); border-color: rgba(165,31,43,.45); background: var(--danger-soft); transform: translateY(-1px); }
.rg-audio-btn span { margin: 0 !important; color: inherit !important; font-size: 14px; line-height: 1; }
.rg-team-music { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

.rg-preview-music-list { display: grid; gap: 4px; margin-top: 5px; }
.rg-preview-music-row { display: flex; min-width: 0; align-items: center; gap: 8px; }
.rg-preview-music-row small { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; color: var(--muted); line-height: 1.45; }
.rg-preview-music-row .rg-audio-btn { width: 28px; height: 28px; flex-basis: 28px; }

.rg-file-row { display: flex; min-height: 65px; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rg-file-row > div:first-child { min-width: 0; }
.rg-file-row strong, .rg-file-row span { display: block; overflow-wrap: anywhere; }
.rg-file-row > div:first-child span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.rg-file-state { display: flex; min-width: 250px; align-items: center; justify-content: flex-end; gap: 12px; }
.rg-file-state > span { max-width: 240px; color: var(--danger); font-size: 12px; }

.rg-upload-zone { display: flex; min-height: 300px; align-items: center; justify-content: center; gap: 28px; padding: 30px; border: 2px dashed #aeb8c6; border-radius: var(--radius-lg); background: #fafbfc; text-align: center; transition: border-color var(--transition), background var(--transition); }
.rg-upload-zone.complete { border-color: var(--success); background: var(--success-soft); }
.rg-upload-zone img { width: min(260px, 48%); max-height: 280px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.rg-upload-zone strong { display: block; margin-bottom: 15px; font-size: 17px; }

.rg-voucher-list { display: flex; flex-wrap: wrap; gap: 10px; max-width: 62%; }
.rg-voucher-actions { min-width: 190px; text-align: center; }
.rg-voucher-item { position: relative; flex: 0 0 auto; }
.rg-voucher-item img { width: 110px; height: 150px; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.rg-voucher-item .rg-icon-remove { position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; font-size: 15px; }
.rg-voucher-hint { margin: -6px 0 14px; color: var(--muted); font-size: 12px; }

.rg-fee-summary { margin-bottom: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.rg-fee-summary > h3 { margin: 0; padding: 12px 16px; background: #f6f7f9; border-bottom: 1px solid var(--line); font-size: 15px; }
.rg-fee-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.rg-fee-row:last-of-type { border-bottom: 0; }
.rg-fee-row > div { min-width: 0; }
.rg-fee-row strong { display: block; overflow-wrap: anywhere; }
.rg-fee-row p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.rg-fee-row .rg-muted { margin: 4px 0 0; padding: 0; }
.rg-fee-amount { flex: 0 0 auto; color: var(--red); font-family: Georgia, serif; font-size: 16px; }
.rg-fee-total { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; background: #fdf6f3; border-top: 2px solid var(--red); font-size: 16px; }
.rg-fee-total strong:last-child { color: var(--red); font-family: Georgia, serif; font-size: 22px; }

.rg-doc-list { display: grid; gap: 12px; }
.rg-doc-list article { display: grid; grid-template-columns: 58px minmax(180px, 1fr) minmax(220px, .8fr); align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow var(--transition); }
.rg-doc-list article:hover { box-shadow: var(--shadow-sm); }
.rg-doc-list h3 { margin: 0 0 10px; font-size: 15px; }
.rg-doc-list .rg-check { margin: 0; }
.rg-doc-type { display: grid; width: 52px; height: 58px; place-items: center; color: #fff; background: var(--red); border-radius: var(--radius-sm); font-family: Georgia, serif; font-weight: 800; box-shadow: var(--shadow-sm); }

.rg-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.rg-summary div { min-width: 0; padding: 15px 16px; border-right: 1px solid var(--line); }
.rg-summary div:last-child { border-right: 0; }
.rg-summary dt { color: var(--muted); font-size: 11px; font-weight: 600; }
.rg-summary dd { margin: 7px 0 0; overflow-wrap: anywhere; font-family: Georgia, serif; font-size: 19px; font-weight: 700; color: var(--ink); }
.rg-preview-list { margin-top: 18px; }
.rg-preview-list article { display: flex; min-height: 72px; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rg-preview-list article:last-child { border-bottom: 0; }
.rg-preview-list img, .rg-photo-placeholder { width: 46px; height: 61px; flex: 0 0 auto; object-fit: cover; background: #e7ebf0; border-radius: var(--radius-sm); }
.rg-preview-list h3 { margin: 0 0 5px; font-size: 14px; }
.rg-preview-list h3 small { margin-left: 8px; color: var(--muted); font-weight: 500; }
.rg-preview-entry p { margin: 2px 0 0; }
.rg-preview-entry small { display: block; margin: 1px 0 7px; color: var(--muted); font-size: 11px; }

.rg-preview-club { margin-top: 18px; }
.rg-preview-club h3, .rg-preview-athletes h3 { margin: 0 0 10px; font-size: 15px; }
.rg-preview-club-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.rg-preview-club-grid > div { padding: 10px 12px; background: #fff; }
.rg-preview-club-grid dt { color: var(--muted); font-size: 11px; }
.rg-preview-club-grid dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; }
.rg-preview-logo-cell img { width: 52px; height: 52px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.rg-preview-logo-cell dd span { color: var(--muted); font-weight: 400; }
.rg-preview-role { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--radius); background: #fbfcfd; }
.rg-preview-role-title { margin: 0; color: var(--blue-deep); font-size: 13px; font-weight: 700; }
.rg-preview-role-item { color: var(--ink); font-size: 13px; }
.rg-preview-role-item b { color: var(--muted); font-weight: 500; margin-right: 5px; }
.rg-preview-athletes { margin-top: 20px; }
.rg-preview-card { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.rg-preview-card + .rg-preview-card { margin-top: 12px; }
.rg-preview-card-head { display: flex; align-items: center; gap: 12px; }
.rg-preview-card-head img { width: 46px; height: 61px; flex: 0 0 auto; object-fit: cover; border-radius: 6px; background: #e7ebf0; }
.rg-preview-card-head .rg-photo-placeholder { margin: 0; }
.rg-preview-card-head h4 { margin: 0; font-size: 15px; }
.rg-preview-meta { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.rg-preview-card-body { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.rg-preview-group-title { margin: 4px 0 6px; color: var(--blue-deep); font-size: 12px; font-weight: 700; }
.rg-preview-none { padding: 4px 0; }
@media (max-width: 820px) {
  .rg-preview-club-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.rg-preview-list p { margin: 3px 0; color: #4e5a6a; font-size: 12px; }

.rg-confirm { display: flex; align-items: flex-start; gap: 10px; margin: 28px 0 20px; padding: 16px; color: var(--ink); background: #f6f7f9; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.rg-submit-detail { margin-top: 18px; }
.rg-confirm input { width: 19px; height: 19px; margin: 0; flex: 0 0 auto; accent-color: var(--red); }
.rg-btn-submit { width: 100%; min-height: 51px; color: #fff; background: linear-gradient(180deg, #b22533 0%, var(--red) 100%); border-color: var(--red); border-radius: var(--radius); font-size: 16px; box-shadow: 0 6px 18px rgba(165,31,43,.32); }
.rg-btn-submit:hover:not(:disabled) { background: linear-gradient(180deg, #a01e2b 0%, var(--red-dark) 100%); box-shadow: 0 10px 26px rgba(165,31,43,.4); transform: translateY(-1px); }
.rg-done { display: flex; min-height: 450px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.rg-done-mark { display: grid; width: 76px; height: 76px; place-items: center; border: 3px solid var(--success); border-radius: 50%; color: var(--success); background: var(--success-soft); font-size: 40px; box-shadow: 0 8px 24px rgba(32,115,74,.2); }
.rg-done h2 { margin: 24px 0 5px; font-family: Georgia, serif; font-size: 27px; }
.rg-done p { margin: 0 0 22px; color: var(--muted); }
.rg-review-card { width: min(100%, 560px); margin: 4px 0 24px; padding: 16px 18px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); background: var(--background); }
.rg-review-card.tone-approved { border-color: rgba(32,115,74,.35); background: var(--success-soft); }
.rg-review-card.tone-rejected { border-color: rgba(165,31,43,.35); background: var(--danger-soft); }
.rg-review-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rg-review-head span { color: var(--muted); font-size: 12px; font-weight: 700; }
.rg-review-head strong { color: var(--ink); font-size: 17px; }
.rg-review-progress, .rg-review-time, .rg-review-comments { margin: 9px 0 0 !important; color: var(--ink-soft) !important; font-size: 13px; line-height: 1.55; }
.rg-review-athletes { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.rg-review-athletes h3 { margin: 0 0 8px; color: var(--ink); font-size: 13px; }
.rg-review-athlete { padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.rg-review-athlete:last-child { border-bottom: 0; }
.rg-review-athlete-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rg-review-athlete-head strong { color: var(--ink); font-size: 13px; }
.rg-review-person-badge { padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.rg-review-person-badge.tone-approved { color: #175d3c; background: rgba(32,115,74,.12); }
.rg-review-person-badge.tone-rejected { color: #8f1912; background: rgba(165,31,43,.12); }
.rg-review-person-badge.tone-pending { color: #0b5f8a; background: rgba(11,95,138,.12); }
.rg-review-person-comment { margin: 5px 0 0 !important; color: var(--ink-soft) !important; font-size: 12px; line-height: 1.5; }
.rg-done-pdf { margin-bottom: 24px; }
.rg-review-refresh { margin-top: 13px; }

.rg-footer-actions { display: flex; min-height: 66px; align-items: center; gap: 9px; margin-top: 12px; padding: 12px 15px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.rg-next { margin-left: auto; min-width: 120px; }
.rg-save-time { color: var(--success); font-size: 11px; }

@media (max-width: 1120px) {
  .rg-auth-shell { grid-template-columns: minmax(0, 1fr) minmax(390px, .95fr); gap: 32px; padding: 32px; }
  .rg-auth-form { padding: 0; }
  .rg-auth-panel { padding: 36px 32px 30px; }
  .rg-auth-visual { padding: 0; }
  .rg-auth-art { width: min(100%, 41vh, 400px); }
  .rg-auth-event h1 { font-size: clamp(32px, 4vw, 48px); }
  .rg-auth-event h1.rg-auth-event-title-zh { font-size: clamp(32px, 3.8vw, 42px); }
  .rg-workspace { grid-template-columns: 220px minmax(0, 1fr); }
  .rg-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .rg-header { min-height: 84px; align-items: flex-start; flex-wrap: wrap; padding: 9px 13px; }
  .rg-header-main { min-height: 78px; padding: 10px 13px; align-items: center; }
  .rg-header-main .rg-brand small { display: block; }
  .rg-brand small, .rg-node { display: none; }
  .rg-header-actions { margin-left: auto; align-items: flex-end; }
  .rg-btn-header { min-height: 32px; padding: 5px 9px; }
  .rg-lang-switch button { padding: 5px 8px; }
  .rg-auth-shell { display: flex; height: auto; min-height: 100vh; flex-direction: column; gap: 0; overflow: visible; padding: 64px 0 24px; }
  .rg-auth-lang { top: 16px; right: 20px; }
  .rg-auth-shell::before { width: 360px; height: 360px; }
  .rg-auth-visual { height: auto; min-height: 0; flex: 0 0 auto; gap: 16px; padding: 28px 24px 10px; text-align: center; }
  .rg-auth-art { position: relative; right: auto; bottom: auto; width: min(44vw, 180px); margin: 14px auto 0; padding: 0; box-shadow: 0 16px 36px rgba(30,58,95,.08); }
  .rg-auth-art > img { transform: none; }
  .rg-auth-event { max-width: 620px; margin: 0 auto; padding-bottom: 0; }
  .rg-auth-kicker { margin-bottom: 10px; font-size: 9px; }
  .rg-auth-event h1 { max-width: 560px; font-size: 26px; }
  .rg-auth-event h1.rg-auth-event-title-zh { font-size: 26px; }
  .lang-en .rg-auth-event h1, .lang-ru .rg-auth-event h1 { font-size: 23px; }
  .rg-auth-event p { justify-content: center; margin-top: 10px; font-size: 13px; }
  .rg-auth-form { position: relative; z-index: 3; display: block; overflow: visible; margin-top: 0; padding: 14px 20px 0; background: transparent; box-shadow: none; }
  .rg-auth-panel { padding: 34px 28px 26px; }
  .rg-auth-login .rg-auth-panel { padding-top: 34px; padding-bottom: 24px; }
  .rg-auth-login .rg-auth-form h2 { margin-bottom: 5px; }
  .rg-auth-login .rg-auth-intro { margin-bottom: 16px; }
  .rg-auth-login .rg-auth-form > div > .rg-auth-field { margin-top: 12px; }
  .rg-auth-login .rg-auth-form input[type="email"], .rg-auth-login .rg-auth-form input[type="password"] { min-height: 44px; }
  .rg-auth-login .rg-btn-wide { min-height: 46px; }
  .rg-auth-login .rg-auth-alternative { margin: 16px 0 10px; }
  .rg-auth-login .rg-register-btn { min-height: 42px; }
  .rg-event-strip { min-height: 130px; }
  .rg-event-strip > div { padding: 20px; }
  .rg-event-strip h1 { font-size: 19px; }
  .rg-event-strip img { width: 120px; flex-basis: 120px; }
  .rg-workspace { display: block; padding: 14px 12px 40px; }
  .rg-sidebar { margin-bottom: 12px; }
  .rg-steps { display: flex; overflow-x: auto; scrollbar-width: thin; }
  .rg-steps button { min-width: 104px; flex: 0 0 104px; justify-content: center; border-right: 1px solid var(--line-soft); border-bottom: 0; }
  .rg-stats { margin-top: 10px; }
  .rg-stats table { font-size: 10px; }
  .rg-panel { min-height: 360px; padding: 18px 14px; }
  .rg-panel-head { align-items: stretch; flex-direction: column; }
  .rg-command-row { justify-content: flex-start; }
  .rg-photo-grid { grid-template-columns: 1fr; }
  .rg-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rg-summary div:nth-child(2) { border-right: 0; }
  .rg-summary div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .rg-header { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .rg-header-main { min-height: 112px; }
  .rg-header-main .rg-brand { align-items: flex-start; }
  .rg-header-main .rg-brand strong { max-width: none; font-size: 13px; }
  .lang-zh .rg-header-main .rg-brand strong { max-width: none; font-size: 13px; }
  .rg-header-main .rg-brand small { font-size: 11px; }
  .rg-header-main .rg-brand-mark { width: 42px; height: 36px; font-size: 11px; }
  .rg-header-actions { width: 100%; margin-left: 0; align-items: center; justify-content: space-between; }
  .rg-lang-switch { min-width: 210px; }
  .rg-lang-switch button { flex: 1 1 0; white-space: nowrap; }
  .rg-brand strong { max-width: 165px; font-size: 11px; }
  .lang-zh .rg-brand strong { max-width: 205px; font-size: 12px; }
  .rg-brand-mark { width: 39px; height: 34px; font-size: 11px; }
  .rg-lang-switch button { font-size: 10px; }
  .rg-auth-visual { height: auto; min-height: 0; flex-basis: auto; padding: 22px 16px 8px; }
  .rg-auth-art { width: 132px; }
  .rg-auth-event { right: auto; bottom: auto; left: auto; }
  .rg-auth-event h1 { font-size: 22px; }
  .rg-auth-event h1.rg-auth-event-title-zh { font-size: 22px; }
  .lang-en .rg-auth-event h1, .lang-ru .rg-auth-event h1 { font-size: 20px; }
  .rg-auth-event p { gap: 8px; font-size: 11px; }
  .rg-auth-form { margin-top: 0; padding: 10px 12px 0; }
  .rg-auth-panel { padding: 32px 20px 22px; }
  .rg-auth-intro { margin-bottom: 22px; }
  .rg-event-strip img { display: none; }
  .rg-event-strip h1 { font-size: 17px; }
  .rg-form-grid { grid-template-columns: 1fr; }
  .rg-span-2 { grid-column: span 1; }
  .rg-auth-form h2 { font-size: 24px; }
  .rg-panel-head h2 { font-size: 19px; }
  .rg-panel-head .rg-command-row { display: grid; grid-template-columns: 1fr; width: 100%; }
  .rg-athlete-row { position: relative; flex-wrap: wrap; padding-right: 38px; }
  .rg-athlete-row .rg-grow { flex: 1 0 100%; }
  .rg-athlete-row > .rg-icon-remove { position: absolute; top: 18px; right: 0; }
  .rg-file-row { align-items: flex-start; flex-direction: column; }
  .rg-file-state { width: 100%; min-width: 0; justify-content: space-between; }
  .rg-file-state > span { max-width: 52%; }
  .rg-upload-zone { min-height: 250px; flex-direction: column; }
  .rg-upload-zone img { width: min(100%, 260px); }
  .rg-doc-list article { grid-template-columns: 52px 1fr; }
  .rg-doc-list article > .rg-check { grid-column: span 2; }
  .rg-summary { grid-template-columns: 1fr 1fr; }
  .rg-footer-actions { flex-wrap: wrap; }
  .rg-save-time { width: 100%; order: 4; }
  .rg-next { min-width: 95px; }
}

.rg-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 22, 32, .55);
}
.rg-modal {
  width: 100%;
  max-width: 440px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: rg-modal-in .18s var(--ease);
}
@keyframes rg-modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.rg-modal h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; }
.rg-modal p { margin: 0 0 18px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.rg-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.rg-submit-mask { cursor: wait; }
.rg-submit-wait { max-width: 420px; padding: 30px 28px; text-align: center; }
.rg-submit-wait h3 { margin-top: 16px; }
.rg-submit-wait p { margin-bottom: 0; }
.rg-submit-spinner {
  display: inline-block;
  width: 42px;
  height: 42px;
  border: 4px solid rgba(165, 31, 43, .18);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: rg-submit-spin .8s linear infinite;
}
@keyframes rg-submit-spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) {
  .rg-modal-actions { flex-direction: column-reverse; }
  .rg-modal-actions .rg-btn { width: 100%; }
}
