:root {
  --primary: #c8152e;
  --primary-hover: #a90f25;
  --secondary: #a90f25;
  --accent: #c8152e;
  --accent-hover: #a90f25;
  --nav-active: #c8152e;
  --danger: #b42318;
  --warning: #a15c05;
  --surface: #ffffff;
  --surface-soft: #f5f5f3;
  --background: #f4f4f2;
  --foreground: #202124;
  --muted-text: #5f6368;
  --border: #bfc2c6;
  --border-light: #dedede;
  --ring: #9d1730;
  --shadow-sm: 0 1px 2px rgba(32, 33, 36, .05);
  --shadow-md: 0 5px 16px rgba(32, 33, 36, .1);
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --container: 1180px;
  --header-height: 72px;
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { min-height: 100dvh; margin: 0; min-width: 320px; display: flex; flex-direction: column; background: var(--background); color: var(--foreground); font-size: 16px; line-height: 1.6; }
body.modal-open { overflow: hidden; }
a { color: var(--secondary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
img { display: block; max-width: 100%; }
svg { flex: 0 0 auto; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 2000; padding: 10px 16px; background: var(--foreground); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--ring), white 15%); outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 100; min-height: var(--header-height); background: #fff; border-bottom: 1px solid #d4d4d4; }
.header-inner { min-height: var(--header-height); display: flex; align-items: center; gap: 24px; }
.site-brand { min-height: 52px; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; color: var(--foreground); text-decoration: none; font-weight: 800; white-space: nowrap; }
.site-brand:hover { color: var(--nav-active); }
.site-brand-logos { display: inline-flex; align-items: center; gap: 8px; }
.site-brand-primary-logo { width: 50px; height: 50px; border: 1px solid #e4e4e4; border-radius: 50%; background: #fff; object-fit: cover; }
.site-brand-partner-logo { width: 60px; height: 50px; object-fit: contain; }
.brand-logo-divider { width: 1px; height: 34px; background: #d4d4d4; }
.site-brand-name { font-size: 18px; letter-spacing: .02em; }
.desktop-nav { flex: 1; display: flex; align-items: center; gap: 4px; }
.desktop-nav > a, .nav-menu-button, .header-actions > a, .user-menu-button { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 0; border-radius: 0; background: transparent; color: #4b5563; text-decoration: none; font: inherit; font-weight: 650; white-space: nowrap; cursor: pointer; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.desktop-nav > a:hover, .nav-menu-button:hover, .header-actions > a:hover, .user-menu-button:hover { color: var(--nav-active); background: #faf5f6; }
.desktop-nav > a.active { color: var(--nav-active); background: transparent; box-shadow: inset 0 -2px var(--nav-active); }
.nav-menu { position: relative; }
.nav-menu-button { position: relative; }
.nav-menu-button.active { color: var(--nav-active); background: transparent; }
.nav-menu-button.active::after { content: ""; position: absolute; right: 10px; bottom: 0; left: 10px; height: 2px; background: var(--nav-active); }
.nav-menu-button svg { transition: color .18s ease; }
.nav-dropdown { position: absolute; top: calc(100% + 6px); left: 0; z-index: 120; width: 160px; padding: 6px; background: #fff; border: 1px solid #d4d4d4; border-radius: 4px; box-shadow: 0 8px 20px rgba(32,33,36,.12); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s ease, visibility .18s ease, transform .18s ease; }
.nav-menu.open .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a { min-height: 44px; display: flex; align-items: center; padding: 8px 14px; border-radius: 2px; color: #404247; text-decoration: none; white-space: nowrap; transition: color .18s ease, background .18s ease; }
.nav-dropdown a:hover, .nav-dropdown a:focus-visible { color: #1f2937; background: #f4f5f7; }
.nav-dropdown a.active { color: #4b5563; font-weight: 400; background: transparent; }
@media (hover: hover) {
  .nav-menu:not(.suppress-hover):hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
}
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-actions .button { padding-inline: 18px; }
.user-menu { position: relative; }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; color: #fff; background: #34383e; font-size: 13px; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-dropdown { position: absolute; top: calc(100% + 7px); right: 0; width: 220px; padding: 6px; background: #fff; border: 1px solid var(--border-light); border-radius: 4px; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .18s ease; }
.user-menu.open .user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-account { padding: 10px 12px 12px; border-bottom: 1px solid var(--border-light); margin-bottom: 6px; }
.dropdown-account strong, .dropdown-account small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-account small { color: var(--muted-text); }
.user-dropdown a, .user-dropdown button { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 0; background: transparent; border-radius: 2px; color: #34383e; text-decoration: none; text-align: left; }
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--surface-soft); }
.user-dropdown .logout { color: var(--danger); margin-top: 4px; border-top: 1px solid var(--border-light); border-radius: 0; }
.mobile-toggle { display: none; min-width: 44px; min-height: 44px; border: 1px solid var(--border-light); border-radius: 4px; background: #fff; color: #34383e; }
.mobile-drawer { display: none; border-top: 1px solid var(--border-light); padding: 8px 16px 16px; background: #fff; }
.mobile-drawer.open { display: grid; }
.mobile-drawer a, .mobile-drawer button { min-height: 48px; display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 2px; background: transparent; color: #34383e; text-decoration: none; text-align: left; }
.mobile-drawer a.active { color: var(--nav-active); background: #fff4f7; font-weight: 700; }
.mobile-nav-group { margin-bottom: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--border-light); }
.mobile-nav-title { display: block; padding: 8px 12px 4px; color: var(--muted-text); font-size: 13px; letter-spacing: .08em; }
.mobile-nav-group a { padding-left: 22px; }

#app { flex: 1 0 auto; }
.page-section { padding: 42px 0 64px; }
.page-section.compact { padding-top: 32px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--border-light); }
.page-head h1, .page-head h2 { margin: 0; padding-left: 13px; border-left: 4px solid var(--primary); font-size: 30px; line-height: 1.2; }
.record-label { display: block; margin-bottom: 4px; color: var(--primary); font-size: 13px; font-weight: 700; }
.lead { margin: 10px 0 0; color: var(--muted-text); font-size: 16px; max-width: 720px; }
.muted { color: var(--muted-text); }
.helper { margin: 6px 0 0; color: var(--muted-text); font-size: 13px; line-height: 1.5; }
.required { color: var(--danger); margin-left: 3px; }
.divider { height: 1px; border: 0; background: var(--border-light); margin: 24px 0; }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 4px; padding: 9px 18px; text-decoration: none; font-weight: 650; line-height: 1.35; white-space: nowrap; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.button:active { filter: brightness(.94); }
.button-primary { color: #fff; background: var(--primary); }
.button-primary:hover { background: var(--primary-hover); }
.button-accent { color: #fff; background: var(--accent); }
.button-accent:hover { background: var(--accent-hover); }
.button-secondary { color: #34383e; background: #fff; border-color: var(--border); }
.button-secondary:hover { color: var(--primary); border-color: var(--primary); background: #fff; }
.button-danger { color: #fff; background: var(--danger); }
.button-danger-ghost { color: var(--danger); background: #fff; border-color: #eaa9a9; }
.button-ghost { color: var(--primary); background: transparent; }
.button-small { min-height: 38px; padding: 6px 12px; font-size: 14px; }
.icon-button { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; border-radius: 4px; color: var(--muted-text); background: transparent; }
.icon-button:hover { color: var(--foreground); background: var(--surface-soft); }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.button-row.center { justify-content: center; }

.home-page { background: #fff; }
.home-hero { position: relative; overflow: hidden; width: min(calc(100% - 32px), var(--container)); aspect-ratio: 2.85 / 1; margin-inline: auto; background: #1d3d66; }
.home-hero-slides, .home-hero-slide { position: absolute; inset: 0; }
.home-hero-slide { margin: 0; opacity: 0; transition: opacity .45s ease; }
.home-hero-slide.is-active { z-index: 1; opacity: 1; }
.home-hero-link { display: block; width: 100%; height: 100%; }
.home-hero-link:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.home-hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-hero-dots { position: absolute; left: 50%; bottom: 18px; z-index: 3; display: flex; gap: 10px; transform: translateX(-50%); }
.home-hero-dots button { width: 13px; height: 13px; padding: 0; border: 1px solid rgba(255,255,255,.9); border-radius: 50%; background: rgba(255,255,255,.52); box-shadow: 0 1px 3px rgba(0,0,0,.28); cursor: pointer; transition: background .18s ease, transform .18s ease; }
.home-hero-dots button:hover, .home-hero-dots button:focus-visible { transform: scale(1.12); background: rgba(255,255,255,.8); }
.home-hero-dots button.active { background: rgba(0,0,0,.18); border-color: #fff; }
.home-block { padding: 28px 0 0; background: #fff; }
.home-intro-block { padding-top: 62px; }
.home-blue-panel { overflow: hidden; background: #1d3d66 url("/assets/home/blue-panel-bg.png") center / cover no-repeat; }
.home-intro-panel { min-height: 430px; display: grid; place-items: center; padding: 44px 92px; }
.home-intro-copy { width: min(100%, 1040px); padding: 42px 74px 36px; color: #fff; background: rgba(255,255,255,.18); text-align: center; }
.home-intro-copy h1 { margin: 0 0 26px; font-size: clamp(30px, 4vw, 48px); line-height: 1.2; font-weight: 500; }
.home-intro-copy p { margin: 0 auto; max-width: 930px; font-size: clamp(17px, 1.8vw, 23px); font-weight: 700; line-height: 1.45; }
.home-apply-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; margin-top: 34px; padding: 8px 18px; border-radius: 3px; color: #1f2937; background: #fff; font-size: 14px; font-weight: 800; text-decoration: none; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.home-apply-button:hover { color: var(--primary); }
.home-program-panel { min-height: 470px; padding: 42px 64px 58px; color: #fff; text-align: center; }
.home-program-panel h2, .home-partner-head h2 { margin: 0; color: inherit; font-size: clamp(32px, 4vw, 48px); line-height: 1.25; font-weight: 500; }
.home-program-logos { display: grid; grid-template-columns: repeat(3, minmax(0, 272px)); justify-content: space-between; gap: 48px; margin-top: 34px; }
.home-program-logos a, .home-platform-logos a { display: grid; place-items: center; min-height: 88px; border-radius: 5px; transition: transform .18s ease, filter .18s ease; }
.home-program-logos a:hover, .home-platform-logos a:hover { transform: translateY(-2px); filter: brightness(1.05); }
.home-program-logos img, .home-platform-logos img { width: 100%; height: auto; }
.home-platform-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 444px)); justify-content: center; gap: 96px; margin-top: 88px; }
.home-partner-block { padding: 54px 0 76px; }
.home-partner-head { margin-bottom: 28px; color: #1d3d66; text-align: center; }
.home-partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 72px; }
.home-partner-grid a { min-height: 220px; display: grid; place-items: center; line-height: 0; transition: transform .18s ease, filter .18s ease; }
.home-partner-grid a:hover, .home-partner-grid a:focus-visible { transform: translateY(-2px); filter: brightness(1.04); }
.home-partner-grid a:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.home-partner-grid img { width: min(100%, 260px); max-height: 220px; height: auto; object-fit: contain; border: 0; background: transparent; }
.home-link-band { background: #1d3d66; }
.home-link-band-inner { min-height: 350px; display: grid; grid-template-columns: 270px minmax(220px, 1fr) 282px; align-items: center; gap: 72px; padding-block: 52px; }
.home-link-logo-link { display: grid; place-items: center; width: 100%; line-height: 0; transition: transform .18s ease, filter .18s ease; }
.home-link-logo-link:hover, .home-link-logo-link:focus-visible { transform: translateY(-2px); filter: brightness(1.05); }
.home-link-logo-link:focus-visible { outline: 3px solid rgba(255,255,255,.85); outline-offset: 6px; }
.home-link-logo { width: 100%; height: auto; object-fit: contain; }
.home-link-logo-round { border-radius: 50%; }
.home-link-list { display: grid; justify-items: center; gap: 15px; }
.home-link-list a { color: #fff; font-size: 26px; font-weight: 700; text-decoration: none; }
.home-link-list a:hover { color: #ffccd4; }

.about-page { background: #fff; color: #333; font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif; }
.about-title-band { min-height: 183px; display: flex; justify-content: center; align-items: flex-start; padding-top: 44px; background: #235bda url("/assets/about/title-city.jpg") center top / cover no-repeat; }
.about-title-band h1 { width: 440px; margin: 0; color: #213c62; font-size: 32px; font-weight: 800; line-height: 1.25; text-align: left; }
.about-programs { min-height: 928px; background: #fff; }
.about-program-grid { width: min(100%, 1320px); margin-inline: auto; display: grid; grid-template-columns: repeat(3, 400px); justify-content: space-between; align-items: start; }
.about-program-card { width: 400px; color: #333; }
.about-program-logo { width: 400px; height: 400px; display: block; color: inherit; text-decoration: none; }
.about-program-logo img { width: 400px; height: 400px; object-fit: contain; }
.about-program-card h2 { min-height: 57px; display: flex; align-items: center; justify-content: center; margin: 7px 0 0; color: #333; font-size: 34px; font-weight: 400; line-height: 1.2; text-align: center; }
.about-program-copy { width: 380px; margin: 12px auto 0; color: #333; font-size: 14px; line-height: 1.22; }
.about-program-copy p { margin: 0; }
.about-program-copy p + p { margin-top: 58px; }
.about-company-band { height: 320px; display: flex; justify-content: center; align-items: flex-start; padding-top: 91px; background: #fff url("/assets/about/blue-city.png") center top / cover no-repeat; }
.about-company-heading { width: 500px; color: #fff; text-align: center; }
.about-company-heading span { width: 240px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 20px; color: #0628c3; background: #fff; font-size: 20px; font-weight: 800; line-height: 1; }
.about-company-heading h2 { margin: 15px 0 0; color: #fff; font-size: 42px; font-weight: 400; line-height: 1; }
.about-company-panel { position: relative; z-index: 1; width: min(calc(100% - 14px), 1314px); min-height: 554px; margin: -55px auto 38px; background: #fff url("/assets/about/white-panel.png") center top / 100% 100% no-repeat; }
.about-company-photo { position: absolute; left: 57px; top: 53px; width: 471px; height: 393px; object-fit: cover; }
.about-company-copy { position: absolute; left: 587px; top: 124px; width: 576px; color: #555; font-size: 18px; line-height: 1.9; }
.about-company-copy p { margin: 0; }
.about-company-name { margin-bottom: 31px !important; }
.about-company-panel h3 { position: absolute; left: 612px; top: 368px; width: 593px; margin: 0; color: #333; font-size: 22px; font-weight: 800; line-height: 1.45; }
.about-quote { position: absolute; width: 38px; height: 29px; object-fit: contain; pointer-events: none; }
.about-quote-left { left: 596px; top: 297px; }
.about-quote-right { left: 1205px; top: 436px; transform: rotate(180deg); }

.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.event-card { overflow: hidden; display: flex; flex-direction: column; background: var(--surface); border: 1px solid #d2d2d2; border-radius: var(--radius); transition: border-color .18s ease; }
.event-card:hover { border-color: #b34b5c; }
.event-cover { position: relative; aspect-ratio: 16/9; background: #dce6f0; overflow: hidden; }
.event-cover img { width: 100%; height: 100%; object-fit: cover; }
.event-cover .badge { position: absolute; top: 12px; left: 12px; }
.event-body { flex: 1; display: flex; flex-direction: column; padding: 20px; }
.event-body h2 { margin: 0 0 14px; font-size: 19px; line-height: 1.45; }
.event-meta { display: grid; gap: 8px; margin-bottom: 18px; color: var(--muted-text); font-size: 14px; }
.meta-line { display: flex; gap: 8px; align-items: flex-start; }
.event-body .button { margin-top: auto; }

.rules-head { align-items: center; }
.rules-tabs { position: sticky; top: calc(var(--header-height) + 8px); z-index: 20; display: flex; gap: 4px; margin: 0 0 18px; padding: 5px; border: 1px solid var(--border-light); border-radius: 4px; background: rgba(255,255,255,.96); box-shadow: 0 2px 8px rgba(32,33,36,.08); }
.rules-tabs a { min-height: 42px; display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center; padding: 8px 14px; border-radius: 3px; color: var(--foreground); text-decoration: none; font-weight: 700; }
.rules-tabs a:hover, .rules-tabs a:focus-visible { color: var(--primary); background: #fff4f7; }
.rules-notice { margin-bottom: 22px; }
.rule-programs { display: grid; gap: 24px; }
.rule-program { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 34px; align-items: center; padding: 32px; scroll-margin-top: calc(var(--header-height) + 78px); border: 1px solid var(--border-light); border-radius: 4px; background: #fff; }
.rule-program h2 { margin: 4px 0 5px; color: #213a5c; font-size: clamp(25px,3vw,34px); line-height: 1.25; }
.rule-game-name { margin: 0 0 18px; color: var(--primary); font-size: 18px; font-weight: 700; }
.rule-program-copy > p:not(.rule-game-name):not(.rule-version) { max-width: 720px; color: #404247; line-height: 1.8; }
.rule-highlights { display: grid; gap: 10px; margin: 22px 0; padding: 0; list-style: none; }
.rule-highlights li { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 10px; align-items: start; padding: 11px 13px; border-left: 3px solid #213a5c; background: var(--surface-soft); line-height: 1.55; }
.rule-highlights svg { margin-top: 3px; color: #096b46; }
.rule-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rule-version { margin: 12px 0 0; color: var(--muted-text); font-size: 13px; }
.rule-cover { overflow: hidden; display: block; border: 1px solid var(--border); border-radius: 4px; background: var(--surface-soft); }
.rule-cover img { width: 100%; height: auto; aspect-ratio: 17/22; display: block; object-fit: cover; }
.rule-cover:hover { border-color: var(--primary); }

.activity-page { min-height: calc(100dvh - var(--header-height)); }
.activity-list-count { min-width: 170px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 8px 14px; border-left: 3px solid var(--primary); background: transparent; }
.activity-list-count strong { color: var(--primary); font-size: 24px; line-height: 1.1; }
.activity-list-count span { color: var(--muted-text); font-size: 13px; }
.activity-layout { display: grid; grid-template-columns: minmax(240px, .68fr) minmax(0, 1.5fr); gap: 22px; align-items: start; }
.activity-guide { position: sticky; top: calc(var(--header-height) + 20px); }
.activity-guide h2 { margin: 14px 0 12px; }
.activity-guide ul { margin: 0; padding-left: 20px; color: #404247; }
.activity-guide li + li { margin-top: 9px; }
.activity-guide p { margin: 20px 0 0; line-height: 1.75; }
.activity-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 4px; color: #fff; background: var(--primary); }
.activity-form-card .card-header p { margin: 4px 0 0; }
.activity-records { margin-top: 24px; }
.activity-current-application .detail-list { margin-bottom: 20px; }
.process-list { display: grid; gap: 18px; padding: 0; margin: 22px 0 0; list-style: none; counter-reset: process; }
.process-list li { position: relative; padding-left: 42px; counter-increment: process; }
.process-list li::before { content: counter(process); position: absolute; left: 0; top: 0; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 3px; color: #fff; background: var(--primary); font-weight: 800; }
.process-list strong, .process-list span { display: block; }
.process-list span { margin-top: 2px; color: var(--muted-text); font-size: 14px; }
.status-reason { display: block; max-width: 180px; margin-top: 6px; color: var(--danger); white-space: normal; }
.filter-stack { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 20px; }
.filter-stack .tab-bar { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.admin-search { margin-bottom: 14px; }
.admin-search-control { display: flex; align-items: center; gap: 8px; max-width: 760px; }
.admin-search-control > svg { flex: 0 0 auto; color: var(--muted-text); }
.admin-search-control .form-control { min-width: 260px; flex: 1 1 auto; }
.workbench-note { display: flex; align-items: center; gap: 8px; min-height: 38px; margin-bottom: 16px; padding: 8px 11px; border-left: 3px solid var(--primary); color: var(--muted-text); background: var(--surface-soft); font-size: 13px; }
.workbench-note svg { flex: 0 0 auto; color: var(--primary); }
.result-note { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 2px 0 14px; color: var(--foreground); }
.result-note small { color: var(--muted-text); }
.review-event-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.review-event-card { min-width: 0; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--border-light); border-top: 3px solid var(--primary); border-radius: 4px; background: #fff; }
.review-event-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.review-event-card h2 { margin: 9px 0 14px; font-size: 20px; line-height: 1.45; overflow-wrap: anywhere; }
.review-event-meta { display: grid; gap: 7px; margin-bottom: 18px; color: var(--muted-text); font-size: 13px; }
.review-event-meta > div { display: flex; align-items: flex-start; gap: 8px; }
.review-event-meta svg { margin-top: 2px; }
.review-event-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; margin: auto 0 18px; border: 1px solid var(--border-light); background: var(--border-light); }
.review-event-stats span { min-width: 0; padding: 9px 8px; background: var(--surface-soft); color: var(--muted-text); font-size: 12px; text-align: center; }
.review-event-stats strong { display: block; color: var(--foreground); font-size: 18px; font-variant-numeric: tabular-nums; }
.review-event-card > .button { width: 100%; }
.review-context { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; padding: 18px 20px; border: 1px solid var(--border-light); border-left: 4px solid var(--primary); border-radius: 4px; background: #fff; }
.review-context-main { min-width: 0; }
.review-context h2 { margin: 2px 0 4px; font-size: 20px; line-height: 1.4; overflow-wrap: anywhere; }
.review-context p { margin: 0; color: var(--muted-text); font-size: 13px; }
.review-group-panel { display: grid; grid-template-columns: minmax(230px,.7fr) minmax(280px,1.3fr); align-items: center; gap: 18px; margin-bottom: 18px; padding: 18px 20px; border: 1px solid var(--border-light); border-radius: 4px; background: #fff; }
.review-group-panel label { display: block; font-weight: 700; }
.review-group-panel p { margin: 3px 0 0; color: var(--muted-text); font-size: 13px; }
.review-stage-placeholder { padding: 42px 24px; border: 1px dashed var(--border); border-radius: 4px; background: var(--surface-soft); text-align: center; }
.review-stage-placeholder .empty-icon { margin-inline: auto; }
.review-stage-placeholder h3 { margin: 12px 0 4px; }
.review-stage-placeholder p { margin: 0; color: var(--muted-text); }

.badge { min-height: 28px; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; width: fit-content; padding: 3px 9px; border-radius: 3px; font-size: 13px; font-weight: 700; line-height: 1.25; white-space: nowrap; word-break: keep-all; }
.badge-upcoming, .badge-approved { color: #096b46; background: #dcfce7; border: 1px solid #a7efc6; }
.badge-ongoing { color: #164e9c; background: #dbeafe; border: 1px solid #b6d5ff; }
.badge-ended { color: #475569; background: #e9eef5; border: 1px solid #d5dde7; }
.badge-pending { color: #8a4b00; background: #fff2cc; border: 1px solid #f2d18a; }
.badge-rejected { color: #a51d1d; background: #fee2e2; border: 1px solid #f5b7b7; }
.badge-draft { color: #5b21b6; background: #ede9fe; border: 1px solid #d7cefb; }

.detail-hero { padding: 30px 0; background: #fff; border-bottom: 1px solid var(--border-light); }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--muted-text); font-size: 14px; }
.breadcrumb a { color: inherit; }
.detail-grid { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(0, 1.35fr); gap: 28px; align-items: start; }
.detail-cover { overflow: hidden; border: 1px solid var(--border-light); border-radius: 4px; background: var(--surface-soft); }
.detail-cover img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.detail-info h1 { margin: 4px 0 14px; font-size: clamp(28px, 4vw, 43px); line-height: 1.25; }
.detail-description { color: #404247; white-space: pre-line; }
.event-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 24px; }
.fact { padding: 12px 14px; border: 1px solid var(--border-light); border-radius: 2px; background: #fafafa; }
.fact span { display: block; color: var(--muted-text); font-size: 13px; }
.fact strong { display: block; margin-top: 3px; font-size: 15px; }
.registration-area { padding: 36px 0 56px; }
.registration-panel { overflow: hidden; border: 1px solid var(--border-light); border-radius: 6px; background: #fff; }
.registration-title { padding: 20px 22px; background: #f7f7f5; border-top: 3px solid var(--primary); border-bottom: 1px solid var(--border-light); }
.registration-title h2 { margin: 0; font-size: 24px; }
.registration-title p { margin: 4px 0 0; color: var(--muted-text); }
.payment-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-light); border-bottom: 1px solid var(--border-light); }
.payment-item { min-height: 78px; padding: 14px 18px; background: #fff; }
.payment-item span, .payment-item strong { display: block; }
.payment-item span { color: var(--muted-text); font-size: 12px; }
.payment-item strong { margin-top: 3px; font-size: 14px; word-break: break-all; }
.registration-form { padding: 22px; }
.notice-section { padding: 0 0 70px; }
.notice-card { overflow: hidden; border: 1px solid var(--border-light); border-radius: 4px; background: #fff; }
.notice-card > h2 { margin: 0; padding: 20px 24px; border-bottom: 1px solid var(--border-light); }
.notice-card img { display: block; width: auto; max-width: min(100%, 1000px); height: auto; margin-inline: auto; }
.notice-pdf { width: min(calc(100% - 48px), 1100px); margin: 0 auto 36px; padding-top: 30px; border-top: 1px solid var(--border-light); }
.notice-card > h2 + .notice-pdf { border-top: 0; }
.notice-pdf-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.notice-pdf-header h3 { margin: 3px 0 0; font-size: 20px; }
.notice-pdf-frame { display: block; width: 100%; height: min(80vh, 980px); min-height: 720px; border: 1px solid var(--border-light); background: #f5f5f3; }
.notice-pdf-fallback { margin: 10px 0 0; color: var(--muted-text); font-size: 14px; }
.markdown-body { color: #2f3236; font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.notice-markdown { width: min(calc(100% - 48px), 920px); margin-inline: auto; padding: 36px 40px 52px; }
.markdown-body h1 { margin: 0 0 30px; padding-bottom: 20px; border-bottom: 2px solid var(--primary); color: var(--foreground); font-size: 30px; line-height: 1.45; text-align: center; }
.markdown-body h2 { margin: 34px 0 14px; padding-left: 12px; border-left: 4px solid var(--primary); color: var(--foreground); font-size: 22px; line-height: 1.45; }
.markdown-body h3 { margin: 26px 0 10px; color: var(--foreground); font-size: 18px; }
.markdown-body h4 { margin: 22px 0 8px; color: var(--foreground); font-size: 16px; }
.markdown-body p { margin: 0 0 16px; }
.markdown-body ul, .markdown-body ol { margin: 0 0 18px; padding-left: 27px; }
.markdown-body li + li { margin-top: 7px; }
.markdown-body blockquote { margin: 20px 0; padding: 12px 16px; border-left: 4px solid #a9aaad; color: #50545a; background: #f5f5f3; }
.markdown-body hr { height: 1px; margin: 30px 0; border: 0; background: var(--border-light); }
.markdown-body code { padding: 2px 5px; border: 1px solid var(--border-light); border-radius: 2px; color: #8f1830; background: #f7f7f5; font-family: Consolas, "SFMono-Regular", monospace; font-size: .92em; }
.markdown-body pre { margin: 20px 0; padding: 16px; overflow-x: auto; border: 1px solid var(--border-light); border-radius: 3px; background: #f5f5f3; }
.markdown-body pre code { padding: 0; border: 0; color: #30343a; background: transparent; }
.markdown-body a { color: var(--primary); }
.markdown-body img { display: block; width: auto; max-width: min(100%, 900px); height: auto; margin: 20px auto; border: 0; border-radius: 0; background: transparent; }
.markdown-table-wrap { margin: 20px 0; overflow-x: auto; border: 1px solid var(--border-light); border-radius: 3px; }
.markdown-table-wrap table { width: 100%; border-collapse: collapse; background: #fff; }
.markdown-table-wrap th, .markdown-table-wrap td { min-width: 120px; padding: 11px 13px; border-right: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); text-align: left; vertical-align: top; }
.markdown-table-wrap th { background: #f1f1ef; color: var(--foreground); }
.markdown-table-wrap tr:last-child td { border-bottom: 0; }
.markdown-table-wrap th:last-child, .markdown-table-wrap td:last-child { border-right: 0; }
.markdown-compose { overflow: hidden; border: 1px solid var(--border); border-radius: 3px; background: #fff; transition: border .18s ease, box-shadow .18s ease; }
.markdown-compose:focus-within { border-color: var(--ring); box-shadow: 0 0 0 3px rgba(200, 21, 46, .12); }
.markdown-toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 8px; border-bottom: 1px solid var(--border-light); background: #f1f1ef; }
.markdown-tool { width: 44px; height: 44px; display: inline-grid; flex: 0 0 44px; place-items: center; border: 1px solid transparent; border-radius: 3px; color: #34383e; background: transparent; cursor: pointer; }
.markdown-tool:hover { border-color: var(--border); color: var(--primary); background: #fff; }
.markdown-tool:active { color: #fff; background: var(--primary); }
.markdown-tool[aria-pressed="true"] { border-color: #dfa8b1; color: var(--primary); background: #fff3f5; }
.markdown-tool:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--ring); outline-offset: 1px; }
.markdown-heading-icon { font-size: 13px; font-weight: 800; letter-spacing: -.02em; }
.markdown-visual-editor { min-height: 620px; padding: 38px 54px 54px; cursor: text; outline: 0; }
.markdown-visual-editor:empty::before { content: attr(data-placeholder); color: #85898f; pointer-events: none; }
.markdown-visual-editor.invalid { box-shadow: inset 0 0 0 1px var(--danger); }
.markdown-visual-editor table { width: 100%; margin: 20px 0; border: 1px solid var(--border-light); border-collapse: collapse; cursor: text; background: #fff; }
.markdown-visual-editor th,
.markdown-visual-editor td { min-width: 120px; padding: 11px 13px; border: 1px solid var(--border-light); text-align: left; vertical-align: top; }
.markdown-visual-editor th { background: #f1f1ef; font-weight: 650; }
.markdown-visual-editor img { margin: 18px auto; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.markdown-visual-editor.uploading { cursor: progress; }

.card { background: #fff; border: 1px solid var(--border-light); border-radius: 4px; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--border-light); }
.card-header h2, .card-header h3 { margin: 0; line-height: 1.3; }
.card-body { padding: 18px; }
.info-banner { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid #b8d6ed; border-left-width: 3px; border-radius: 3px; color: #174b72; background: #eff8ff; }
.warning-banner { border-color: #f0d194; color: #744006; background: #fff8e8; }
.danger-banner { border-color: #efb7b7; color: #951f1f; background: #fff1f1; }
.success-banner { border-color: #a8dfc4; color: #096b46; background: #ecfdf5; }
.empty-state { padding: 48px 24px; text-align: center; border: 1px dashed var(--border); border-radius: 4px; background: #fafafa; }
.empty-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 4px; color: var(--primary); background: #f8e8eb; }
.empty-state h3 { margin: 0 0 6px; }
.empty-state p { margin: 0 auto 18px; max-width: 480px; color: var(--muted-text); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.form-field { min-width: 0; }
.form-field.full { grid-column: 1/-1; }
.form-field label, .form-field .field-label { display: block; margin-bottom: 7px; color: #34383e; font-size: 14px; font-weight: 700; }
.field-label-row { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.form-field .field-label-row .field-label { margin-bottom: 0; }
.field-management-link { min-height: 44px; flex: 0 0 auto; padding: 8px 13px; font-size: 14px; }
.form-control { width: 100%; min-height: 46px; border: 1px solid var(--border); border-radius: 3px; padding: 10px 12px; color: var(--foreground); background: #fff; transition: border .18s ease, box-shadow .18s ease; }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-control:hover { border-color: #85898f; }
.form-control:focus { border-color: var(--ring); outline: 0; box-shadow: 0 0 0 3px rgba(200, 21, 46, .12); }
.form-control[readonly] { border-color: var(--border); color: var(--foreground); background: var(--surface-soft); cursor: default; font-variant-numeric: tabular-nums; }
.form-control[readonly]:hover { border-color: var(--border); }
.form-control.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(197, 38, 38, .1); }
.field-error { min-height: 18px; margin: 4px 0 0; color: var(--danger); font-size: 13px; line-height: 1.4; white-space: pre-line; }
.input-combo { display: flex; gap: 10px; align-items: stretch; }
.input-combo .form-control { flex: 1; }
.captcha-image { width: 150px; height: 52px; border-radius: 3px; border: 1px solid var(--border); cursor: pointer; }
.password-wrap { position: relative; }
.password-wrap .form-control { padding-right: 50px; }
.password-toggle { position: absolute; top: 1px; right: 1px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 3px; background: transparent; color: var(--muted-text); }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.choice-card { min-height: 50px; display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 3px; cursor: pointer; }
.choice-card:hover { background: var(--surface-soft); }
.choice-card input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); }
.choice-card small { display: block; color: var(--muted-text); }
.choice-card.is-disabled { color: var(--muted-text); background: var(--surface-soft); cursor: not-allowed; opacity: .62; }
.choice-card.is-disabled:hover { background: var(--surface-soft); }
.choice-card input:disabled { cursor: not-allowed; }
.event-toggle-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.event-toggle-card { min-height: 92px; display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 4px; background: #fff; cursor: pointer; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.event-toggle-card:hover { border-color: #85898f; background: var(--surface-soft); }
.event-toggle-card:has(input:focus-visible) { border-color: var(--ring); box-shadow: 0 0 0 3px rgba(200,21,46,.12); }
.event-toggle-card:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.event-toggle-card input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); }
.event-toggle-card strong, .event-toggle-card small { display: block; }
.event-toggle-card strong { color: var(--foreground); }
.event-toggle-card small { margin-top: 5px; color: var(--muted-text); font-size: 13px; line-height: 1.55; }
.file-picker { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; padding: 18px; border: 1px dashed #9da1a7; border-radius: 4px; background: #fafafa; }
.file-preview { width: 150px; aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; border-radius: 3px; color: #686c72; background: #ececea; }
.file-preview img { width: 100%; height: 100%; object-fit: cover; }
.file-preview .pdf-preview { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; padding: 15px; color: #39404a; text-align: center; text-decoration: none; }
.file-preview .pdf-preview strong, .file-preview .pdf-preview small { display: block; }
.file-preview .pdf-preview small { margin-top: 3px; color: var(--muted-text); font-size: 12px; font-weight: 400; }
.file-picker input[type=file] { max-width: 100%; }
.file-picker-controls { min-width: 0; }
.upload-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.notice-compose-info { margin: 14px 0 20px; }
.notice-compose-grid { gap: 22px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding-top: 8px; }

.auth-page { min-height: calc(100dvh - var(--header-height)); padding: 46px 0 70px; background: #efefed; }
.auth-shell { width: min(calc(100% - 32px), 520px); margin: 0 auto; }
.auth-card { padding: 30px; border-radius: 4px; background: #fff; border: 1px solid var(--border-light); border-top: 3px solid var(--primary); }
.auth-heading { margin-bottom: 26px; text-align: center; }
.auth-logo { width: 76px; height: 76px; margin: 0 auto 16px; object-fit: cover; border: 1px solid #e8a2b2; border-radius: 50%; background: #fff; }
.auth-step-label { display: block; margin: -4px 0 8px; color: var(--primary); font-size: 13px; font-weight: 700; letter-spacing: .03em; }
.auth-heading h1 { margin: 0; font-size: 28px; }
.auth-heading p { margin: 7px 0 0; color: var(--muted-text); }
.auth-footer { margin: 24px 0 0; text-align: center; color: var(--muted-text); }
.auth-card .form-grid { grid-template-columns: 1fr; }
.auth-card .button-primary { width: 100%; }
.auth-code-notice { margin: -4px 0 22px; text-align: left; }
.auth-code-notice strong { overflow-wrap: anywhere; }
.auth-code-notice small { display: block; margin-top: 5px; color: #47677e; }
[data-captcha-field][hidden], [data-registration-code-status][hidden] { display: none; }
.auth-code-input { font-variant-numeric: tabular-nums; letter-spacing: .18em; }
.auth-verify-actions { display: grid; gap: 10px; }
.demo-accounts { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--border-light); border-radius: 3px; background: #f7f7f5; color: #404247; font-size: 13px; }
.demo-accounts strong { display: block; }

.portal { padding: 28px 0 64px; }
.portal-layout { display: grid; grid-template-columns: 252px minmax(0,1fr); gap: 22px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-height) + 24px); overflow: hidden; background: #fff; border: 1px solid var(--border-light); border-radius: 4px; }
.sidebar-head { padding: 20px; border-bottom: 1px solid var(--border-light); }
.sidebar-head strong, .sidebar-head small { display: block; overflow: hidden; text-overflow: ellipsis; }
.sidebar-head small { color: var(--muted-text); }
.sidebar-nav { padding: 8px; }
.sidebar-nav a { min-height: 46px; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 2px; color: #4c5056; text-decoration: none; }
.sidebar-nav a:hover { background: var(--surface-soft); }
.sidebar-nav a.active { color: var(--primary); background: #fff3f5; font-weight: 700; box-shadow: inset 3px 0 var(--primary); }
.portal-main { min-width: 0; }
.portal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.portal-head h1 { margin: 0; font-size: 30px; line-height: 1.2; }
.portal-head p { margin: 5px 0 0; color: var(--muted-text); }
.portal-workflow-actions { justify-content: flex-end; }
.portal-workflow-actions .button { min-height: 44px; white-space: nowrap; }
.profile-summary { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: start; }
.profile-avatar { width: 140px; height: 140px; display: grid; place-items: center; overflow: hidden; border-radius: 4px; color: var(--primary); background: #ececea; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.profile-fact { padding: 12px 14px; border: 1px solid var(--border-light); border-radius: 2px; background: #fafafa; }
.profile-fact span { display: block; color: var(--muted-text); font-size: 12px; }
.profile-fact strong { display: block; overflow-wrap: anywhere; }
.tab-bar { display: flex; gap: 3px; padding: 3px; margin-bottom: 20px; width: fit-content; border: 1px solid var(--border-light); border-radius: 4px; background: #fff; }
.tab-bar button, .tab-bar a { min-height: 40px; padding: 7px 15px; border: 0; border-radius: 2px; color: var(--muted-text); background: transparent; text-decoration: none; }
.tab-bar .active { color: #fff; background: var(--primary); font-weight: 700; }

.data-table-wrap { overflow-x: auto; border: 1px solid var(--border-light); border-radius: 4px; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; }
.data-table th, .data-table td { padding: 13px 14px; border-bottom: 1px solid var(--border-light); text-align: left; vertical-align: middle; }
.data-table th { color: #34383e; background: #f1f1ef; font-size: 13px; white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #fafafa; }
.data-table .number { font-variant-numeric: tabular-nums; }
.data-table .status-cell { width: 1%; min-width: 92px; white-space: nowrap; }
.data-table .type-cell { width: 1%; min-width: 104px; white-space: nowrap; }
.data-table .content-cell { min-width: 92px; white-space: nowrap; }
.admin-team-table th:last-child, .admin-team-table td:last-child { width: 1%; }
.nowrap { white-space: nowrap; }
.cell-actions { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.mobile-list { display: none; }
.entity-card { padding: 18px; border: 1px solid var(--border-light); border-radius: 4px; background: #fff; }
.entity-card + .entity-card { margin-top: 12px; }
.entity-card-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.entity-card h3 { margin: 0; font-size: 18px; }
.entity-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 14px 0; }
.entity-card dt { color: var(--muted-text); font-size: 12px; }
.entity-card dd { margin: 0; overflow-wrap: anywhere; }

.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 24px; }
.summary-card { padding: 20px; border: 1px solid var(--border-light); border-radius: 4px; background: #fff; }
.summary-card span { color: var(--muted-text); font-size: 13px; }
.summary-card strong { display: block; margin-top: 6px; font-size: 31px; line-height: 1; font-variant-numeric: tabular-nums; }
.summary-card.accent { border-top: 4px solid var(--accent); }
.summary-card.warning { border-top: 4px solid #c27b17; }
.summary-card.primary { border-top: 4px solid var(--primary); }
.summary-card-link { color: inherit; text-decoration: none; transition: border-color .16s ease, box-shadow .16s ease; }
.summary-card-link:hover { border-color: var(--primary); box-shadow: 0 3px 12px rgba(24,57,94,.08); }
.summary-card-link:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 25%, transparent); outline-offset: 2px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(8, 19, 33, .58); animation: fade-in .18s ease-out; }
.modal { width: min(100%, 920px); max-height: min(88dvh, 900px); display: flex; flex-direction: column; overflow: hidden; border-radius: 6px; background: #fff; box-shadow: 0 18px 54px rgba(0,0,0,.22); animation: modal-in .22s ease-out; }
.modal.small { width: min(100%, 540px); }
.modal.wide { width: min(100%, 1180px); }
.modal-header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--border-light); }
.modal-header h2 { margin: 0; font-size: 21px; }
.modal-body { overflow-y: auto; padding: 22px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 15px 20px; border-top: 1px solid var(--border-light); background: #fafafa; }
.detail-section + .detail-section { margin-top: 24px; }
.detail-section h3 { margin: 0 0 12px; padding-left: 12px; border-left: 4px solid var(--accent); }
.detail-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid var(--border-light); border-radius: 3px; overflow: hidden; }
.detail-row { display: grid; grid-template-columns: 120px 1fr; min-height: 48px; border-bottom: 1px solid var(--border-light); }
.detail-row:nth-child(odd) { border-right: 1px solid var(--border-light); }
.detail-row span, .detail-row strong { padding: 11px 12px; }
.detail-row span { color: var(--muted-text); background: #f3f3f1; }
.detail-row strong { font-weight: 600; overflow-wrap: anywhere; }
.proof-image { max-height: 500px; margin: 14px auto; object-fit: contain; border: 1px solid var(--border-light); border-radius: 3px; }
.table-photo { width: 54px; height: 54px; object-fit: cover; border: 1px solid var(--border-light); border-radius: 3px; }

.toast-region { position: fixed; top: calc(var(--header-height) + 18px); right: 18px; z-index: 1800; display: grid; gap: 10px; width: min(calc(100% - 36px), 390px); }
.toast { display: flex; align-items: flex-start; gap: 12px; padding: 14px 15px; color: #fff; border-radius: 4px; background: var(--foreground); box-shadow: var(--shadow-md); animation: toast-in .22s ease-out; }
.toast > span { white-space: pre-line; }
.toast.success { background: #0d714b; }
.toast.error { background: #a82323; }
.toast button { width: 32px; height: 32px; margin: -7px -7px -7px auto; border: 0; border-radius: 3px; color: #fff; background: transparent; }
.loading-page { min-height: 480px; display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border: 3px solid #d9e2ec; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
.spinner-small { width: 18px; height: 18px; border-width: 2px; }
.gap-top-sm { margin-top: 10px; }
.gap-top { margin-top: 18px; }
.gap-bottom { margin-bottom: 18px; }
.card-stack { margin-top: 20px; }
.card-top { margin-top: 22px; }
.team-number-link { font-size: 13px; font-weight: 500; }
.team-number-control { display: flex; align-items: stretch; }
.team-number-control .form-control { min-width: 0; }
.team-number-prefix { display: inline-flex; align-items: center; flex: 0 0 auto; padding-inline: 14px; border: 1px solid var(--border); border-right: 0; border-radius: 3px 0 0 3px; color: var(--foreground); background: var(--surface-soft); font-weight: 700; font-variant-numeric: tabular-nums; }
.team-number-confirm-value { overflow-wrap: anywhere; color: var(--primary); font-size: 1.08em; }
.team-number-prefix[hidden] { display: none; }
.team-number-control.has-prefix .form-control { border-radius: 0 3px 3px 0; }
.skeleton { position: relative; overflow: hidden; background: #e9e9e7; border-radius: 3px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg,transparent,rgba(255,255,255,.68),transparent); animation: shimmer 1.2s infinite; }
.team-number-help { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.help-path { min-width: 0; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--border-light); border-radius: 4px; background: #fff; }
.help-path .step-num { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 3px; color: #fff; background: var(--primary); font-weight: 800; }
.help-path h2 { margin-top: 18px; }
.help-path > p { margin: 0 0 20px; color: var(--muted-text); }
.help-path > .button { width: 100%; margin-top: auto; }
.help-path .committee-contact { margin-top: auto; }
.team-number-guide-document { position: relative; overflow: hidden; border: 1px solid var(--border-light); border-radius: 4px; background: #fff; }
.team-number-guide-document::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: url("/assets/guides/recf-team-registration/watermark.png"); background-repeat: repeat; background-size: 260px; opacity: .06; }
.guide-markdown { position: relative; z-index: 1; width: min(100%, 1080px); margin-inline: auto; padding: 42px 52px 58px; }
.guide-markdown img { max-width: min(100%, 1040px); }
.committee-contact { display: grid; gap: 0; margin-top: 18px; border-top: 1px solid var(--border-light); font-style: normal; }
.committee-contact span { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 10px; padding-block: 9px; border-bottom: 1px solid var(--border-light); }
.committee-contact strong { color: var(--muted-text); font-size: 13px; }

.site-footer { position: relative; flex: 0 0 auto; color: #d4d4d4; background: #25282c; border-top: 4px solid var(--primary); }
.footer-main { display: grid; grid-template-columns: 1.4fr .7fr 1fr; gap: 64px; padding-block: 40px 32px; }
.footer-brand { max-width: 370px; }
.footer-brand-link { display: inline-flex; align-items: center; gap: 15px; color: #fff; text-decoration: none; }
.footer-brand-link:hover strong { color: #ff9dae; }
.footer-brand-logos { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.footer-primary-logo { width: 60px; height: 60px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: #fff; object-fit: cover; }
.footer-partner-logo { width: 76px; height: 62px; object-fit: contain; }
.footer-logo-divider { width: 1px; height: 38px; background: rgba(255,255,255,.35); }
.footer-brand-copy, .footer-brand-link strong, .footer-brand-link small { display: block; }
.footer-brand-link strong { font-size: 21px; transition: color .18s ease; }
.footer-brand-link small { margin-top: 1px; color: #b7b9bc; font-size: 13px; }
.footer-brand > p { margin: 16px 0 8px; color: #d0d1d2; }
.footer-company { color: #9fa2a5; font-size: 13px; }
.footer-heading { margin: 3px 0 10px; padding-bottom: 8px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 15px; font-weight: 700; }
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; }
.footer-nav a { min-height: 40px; display: inline-flex; align-items: center; color: #d0d1d2; text-decoration: none; transition: color .18s ease; }
.footer-nav a::after { content: "›"; margin-left: 7px; color: #8f9295; }
.footer-nav a:hover { color: #fff; }
.footer-nav a:hover::after { color: #ff9dae; }
.footer-contact dl { margin: 0; }
.footer-contact dl > div { display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-contact dt { color: #9fa2a5; }
.footer-contact dd { margin: 0; color: #f0f0f0; overflow-wrap: anywhere; }
.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact a:hover { color: #ff9dae; text-decoration: underline; }
.footer-bottom { min-height: 64px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 28px; padding-block: 12px; border-top: 1px solid rgba(255,255,255,.13); color: #999ca0; font-size: 13px; }
.footer-bottom p { margin: 0; }
.footer-note { color: #b2b4b6; }
.footer-back-to-top { min-height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 3px; color: #dedede; background: transparent; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.footer-back-to-top:hover { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes toast-in { from { opacity: 0; transform: translateX(12px); } }
@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: inline-grid; place-items: center; }
  .event-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-intro-panel { padding-inline: 48px; }
  .home-intro-copy { padding-inline: 42px; }
  .home-program-logos { gap: 28px; }
  .home-platform-logos { gap: 40px; }
  .home-link-band-inner { grid-template-columns: 190px minmax(200px,1fr) 190px; gap: 34px; }
  .about-programs { min-height: auto; padding: 38px 0 52px; }
  .about-program-grid { width: min(calc(100% - 32px), 920px); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .about-program-card, .about-program-logo, .about-program-logo img { width: 100%; }
  .about-program-logo, .about-program-logo img { height: auto; aspect-ratio: 1; }
  .about-program-card h2 { min-height: 48px; font-size: 27px; }
  .about-program-copy { width: 100%; line-height: 1.45; }
  .about-program-copy p + p { margin-top: 22px; }
  .about-company-panel { width: min(calc(100% - 32px), 980px); min-height: auto; margin-bottom: 44px; padding: 38px; background: #fff; box-shadow: 0 10px 26px rgba(32,33,36,.1); }
  .about-company-photo, .about-company-copy, .about-company-panel h3 { position: static; width: 100%; }
  .about-company-photo { height: auto; max-width: 471px; margin-bottom: 26px; }
  .about-company-copy { font-size: 16px; line-height: 1.85; }
  .about-company-panel h3 { margin-top: 42px; text-align: center; }
  .about-quote { display: none; }
  .payment-strip { grid-template-columns: repeat(2,1fr); }
  .summary-grid { grid-template-columns: repeat(2,1fr); }
  .markdown-visual-editor { min-height: 520px; padding-inline: 38px; }
  .footer-main { grid-template-columns: 1.2fr .7fr 1fr; gap: 34px; }
}

@media (max-width: 820px) {
  :root { --header-height: 68px; }
  .container { width: min(calc(100% - 24px), var(--container)); }
  .header-inner { min-height: var(--header-height); gap: 10px; }
  .header-actions > a { display: none; }
  .event-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .rule-program { grid-template-columns: 1fr; }
  .rule-cover { width: min(100%,340px); margin-inline: auto; }
  .activity-layout { grid-template-columns: 1fr; }
  .activity-guide { position: static; }
  .home-hero { width: min(calc(100% - 24px), var(--container)); }
  .about-title-band { min-height: 158px; padding: 36px 18px 0; }
  .about-title-band h1 { width: min(100%, 520px); font-size: 28px; text-align: center; }
  .about-program-grid { width: min(calc(100% - 24px), 520px); grid-template-columns: 1fr; gap: 42px; }
  .about-program-card { max-width: 420px; margin-inline: auto; }
  .about-program-logo, .about-program-logo img { max-width: 320px; margin-inline: auto; }
  .about-company-band { height: 260px; padding-top: 64px; }
  .about-company-heading h2 { font-size: 38px; }
  .about-company-panel { width: min(calc(100% - 24px), 680px); margin-top: -44px; padding: 30px; }
  .home-intro-block { padding-top: 36px; }
  .home-intro-panel { min-height: auto; padding: 34px 30px; }
  .home-intro-copy { padding: 32px 26px; }
  .home-program-panel { min-height: auto; padding: 36px 30px 44px; }
  .home-program-logos { grid-template-columns: 1fr; justify-items: center; }
  .home-program-logos a { width: min(100%, 272px); }
  .home-platform-logos { grid-template-columns: 1fr; justify-items: center; margin-top: 46px; }
  .home-platform-logos a { width: min(100%, 444px); }
  .home-partner-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-link-band-inner { grid-template-columns: 1fr; justify-items: center; gap: 26px; }
  .home-link-logo { width: min(100%, 210px); }
  .detail-cover { max-width: 620px; }
  .portal { padding-top: 20px; }
  .portal-layout { grid-template-columns: 1fr; gap: 18px; }
  .sidebar { position: static; overflow-x: auto; border-radius: 4px; }
  .sidebar-head { display: none; }
  .sidebar-nav { display: flex; min-width: max-content; }
  .sidebar-nav a.active { box-shadow: inset 0 -3px var(--accent); }
  .profile-summary { grid-template-columns: 1fr; }
  .profile-avatar { width: 110px; height: 110px; }
  .detail-list { grid-template-columns: 1fr; }
  .detail-row:nth-child(odd) { border-right: 0; }
  .team-number-help { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
  .footer-bottom { grid-template-columns: 1fr auto; }
  .footer-note { grid-column: 1; grid-row: 2; }
  .footer-back-to-top { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .page-section { padding-block: 38px 52px; }
  .home-block { padding-top: 18px; }
  .about-title-band { min-height: 136px; padding-top: 28px; }
  .about-title-band h1 { font-size: 24px; }
  .about-programs { padding-block: 30px 40px; }
  .about-program-card h2 { font-size: 25px; }
  .about-program-copy { font-size: 13px; line-height: 1.48; }
  .about-company-band { height: 230px; padding-top: 52px; }
  .about-company-heading { width: min(100%, 320px); }
  .about-company-heading span { width: 190px; height: 34px; font-size: 17px; }
  .about-company-heading h2 { font-size: 34px; }
  .about-company-panel { padding: 22px 18px 30px; }
  .about-company-copy { font-size: 15px; line-height: 1.75; }
  .about-company-name { margin-bottom: 18px !important; }
  .about-company-panel h3 { margin-top: 28px; font-size: 18px; }
  .home-hero-dots { bottom: 10px; gap: 7px; }
  .home-hero-dots button { width: 10px; height: 10px; }
  .home-intro-panel { padding: 18px 12px; }
  .home-intro-copy { padding: 24px 15px; }
  .home-intro-copy h1 { margin-bottom: 18px; font-size: 27px; }
  .home-intro-copy p { font-size: 16px; line-height: 1.55; }
  .home-apply-button { width: 100%; margin-top: 24px; }
  .home-program-panel { padding: 30px 18px 36px; }
  .home-program-panel h2, .home-partner-head h2 { font-size: 30px; }
  .home-program-logos { margin-top: 28px; gap: 22px; }
  .home-platform-logos { margin-top: 34px; gap: 22px; }
  .home-partner-block { padding-block: 36px 46px; }
  .home-partner-grid { grid-template-columns: 1fr; gap: 16px; }
  .guide-markdown { padding: 28px 18px 38px; }
  .home-link-band-inner { min-height: auto; padding-block: 36px; }
  .home-link-list a { font-size: 22px; }
  .page-head, .portal-head { align-items: stretch; flex-direction: column; gap: 15px; }
  .page-head .button, .portal-head .button { width: 100%; }
  .rules-tabs { top: calc(var(--header-height) + 4px); overflow-x: auto; justify-content: flex-start; }
  .rules-tabs a { flex: 0 0 auto; min-width: 112px; }
  .rule-program { gap: 24px; padding: 20px 16px; }
  .rule-actions { display: grid; }
  .rule-actions .button { width: 100%; }
  .site-brand-name { display: none; }
  .site-brand-logos { gap: 6px; }
  .site-brand-primary-logo { width: 42px; height: 42px; }
  .site-brand-partner-logo { width: 50px; height: 42px; }
  .brand-logo-divider { height: 30px; }
  .event-facts { grid-template-columns: 1fr; }
  .registration-title, .registration-form { padding: 20px 16px; }
  .registration-title h2 { font-size: 24px; }
  .payment-strip { grid-template-columns: 1fr; }
  .notice-markdown { width: 100%; padding: 26px 18px 36px; }
  .notice-pdf { width: calc(100% - 28px); padding-top: 22px; }
  .notice-pdf-header { align-items: stretch; flex-direction: column; }
  .notice-pdf-header .button { width: 100%; }
  .notice-pdf-frame { height: 70vh; min-height: 520px; }
  .markdown-body h1 { margin-bottom: 24px; padding-bottom: 16px; font-size: 25px; }
  .markdown-body h2 { margin-top: 28px; font-size: 20px; }
  .markdown-visual-editor { min-height: 440px; padding: 26px 18px 38px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .form-field.full { grid-column: auto; }
  .field-label-row { align-items: flex-start; flex-direction: column; }
  .field-management-link { width: 100%; }
  .event-toggle-grid { grid-template-columns: 1fr; }
  .input-combo { flex-wrap: wrap; }
  .input-combo .button { flex: 1; }
  .captcha-image { width: 150px; }
  .check-grid { grid-template-columns: 1fr; }
  .file-picker { grid-template-columns: 1fr; }
  .file-preview { width: 100%; max-width: 240px; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
  .auth-page { padding-top: 30px; }
  .auth-card { padding: 25px 18px; }
  .profile-facts { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .summary-card { padding: 15px; }
  .summary-card strong { font-size: 26px; }
  .desktop-table { display: none; }
  .mobile-list { display: block; }
  .entity-card dl { grid-template-columns: 1fr; }
  .filter-stack { display: grid; }
  .filter-stack .tab-bar { max-width: 100%; overflow-x: auto; }
  .admin-search-control { align-items: stretch; flex-wrap: wrap; }
  .admin-search-control > svg { align-self: center; }
  .admin-search-control .form-control { min-width: 0; width: calc(100% - 30px); }
  .review-event-grid { grid-template-columns: 1fr; }
  .review-event-card { padding: 18px; }
  .review-context { align-items: stretch; flex-direction: column; padding: 16px; }
  .review-context .button { width: 100%; }
  .review-group-panel { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .review-stage-placeholder { padding: 32px 18px; }
  .result-note { align-items: flex-start; flex-direction: column; gap: 2px; }
  .modal-backdrop { place-items: end center; padding: 0; }
  .modal { width: 100%; max-height: 92dvh; border-radius: 8px 8px 0 0; }
  .modal-body { padding: 18px 14px; }
  .modal-footer { padding-bottom: max(15px, env(safe-area-inset-bottom)); }
  .modal-footer .button { flex: 1; }
  .detail-row { grid-template-columns: 105px 1fr; }
  .toast-region { top: calc(var(--header-height) + 10px); right: 10px; width: calc(100% - 20px); }
  .footer-main { grid-template-columns: 1fr; gap: 24px; padding-block: 36px 28px; }
  .footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 8px; }
  .footer-nav .footer-heading { grid-column: 1 / -1; }
  .footer-nav a { min-height: 44px; font-size: 14px; }
  .footer-bottom { grid-template-columns: 1fr auto; gap: 12px 18px; padding-block: 18px; }
  .footer-bottom > p:first-child { padding-right: 8px; }
  .footer-note { grid-column: 1 / -1; grid-row: auto; }
  .footer-back-to-top { grid-column: 2; grid-row: 1; }
}

@media (max-width: 390px) {
  .summary-grid { grid-template-columns: 1fr; }
}

@media (orientation: landscape) and (max-height: 560px) {
  .modal { max-height: 96dvh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
