/* Original SPŠUL registration and dashboard styling, adapted to the live API. */
@font-face { font-family: 'Exo 2'; src: url('/assets/Exo2.ttf') format('truetype'); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/Inter.ttf') format('truetype'); font-style: normal; font-weight: 100 900; font-display: swap; }
:root {
  color-scheme: dark;
  --primary: #de401a;
  --primary-light: #ff6a3d;
  --primary-dark: #a82e10;
  --primary-glow: rgba(222,64,26,.25);
  --bg-dark: #050507;
  --bg-card: rgba(255,255,255,.03);
  --bg-input: rgba(255,255,255,.04);
  --bg-input-focus: rgba(255,255,255,.07);
  --bg-sidebar: #08080c;
  --text: #e8e8f0;
  --text-sec: #9898a8;
  --text-muted: #777788;
  --border: rgba(255,255,255,.08);
  --border-focus: rgba(222,64,26,.5);
  --font-display: 'Exo 2',sans-serif;
  --font-body: 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --radius: 8px;
  --radius-sm: 4px;
  --sidebar-w: 220px;
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { min-width: 320px; scroll-behavior: smooth; }
body { min-height: 100vh; min-height: 100svh; color: var(--text); font-family: var(--font-body); background: radial-gradient(ellipse at 50% 30%,#1a1012 0%,#0e0a0c 30%,#08080c 65%,#050507 100%); line-height: 1.5; }
button,input,textarea,select { font: inherit; }
a,button,input,textarea,select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a { color: var(--primary-light); }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .45; }
:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 4px; }
[hidden] { display: none !important; }
.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; }
h1,h2,h3 { font-family: var(--font-display); }
h1 { font-size: 1.4rem; font-weight: 700; }
h2 { font-size: 1rem; font-weight: 700; line-height: 1.4; letter-spacing: 1.5px; text-transform: uppercase; }
h3 { font-size: .85rem; font-weight: 700; line-height: 1.45; }
p + p { margin-top: 10px; }
.skip-link { position: fixed; top: -70px; left: 16px; z-index: 100; padding: 10px 16px; border-radius: 4px; color: white; background: var(--primary); }
.skip-link:focus { top: 12px; }
.site-header { display: none; }
/* Preserve the original narrow, centered registration and large logo. */
.registration-page { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; }
.registration-page #content { width: 100%; max-width: 520px; margin: 0 auto; }
.logo-wrap { display: flex; justify-content: center; margin-bottom: 36px; }
.logo { display: block; width: 220px; height: 220px; object-fit: contain; filter: drop-shadow(0 0 40px var(--primary-glow)); }
.registration-page #app > .card,.registration-page .content-grid > .card { padding: 0; border: 0; border-radius: 0; background: transparent; }
.registration-page .content-grid { display: block; }
.registration-page h2 { margin-bottom: 8px; font-size: clamp(.85rem,2.5vw,1rem); letter-spacing: 2px; text-align: center; }
.registration-page .card-description { margin-top: 0; margin-bottom: 32px; font-size: .85rem; text-align: center; }
.registration-page .form-note { text-align: center; }
.registration-page .registration-banner { justify-content: center; margin-bottom: 24px; text-align: center; }
.registration-page .site-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 20px; width: 100%; max-width: 520px; margin-top: 28px; color: var(--text-muted); font-size: .7rem; text-align: center; }
.registration-account { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.registration-account > .small { flex: 1; min-width: 0; overflow-wrap: anywhere; }
/* Three real stages with the original connected circular stepper. */
.steps { display: flex; align-items: flex-start; width: 100%; max-width: 360px; margin: 0 auto 40px; padding: 0; list-style: none; }
.step { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; gap: 8px; min-width: 0; color: var(--text-muted); font-size: .65rem; font-weight: 600; letter-spacing: 1px; text-align: center; text-transform: uppercase; }
.step:not(:last-child)::after { content: ''; position: absolute; top: 15px; left: calc(50% + 24px); width: calc(100% - 48px); height: 1px; background: var(--border); }
.step-number { position: relative; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: 0 0 32px; border: 2px solid var(--border); border-radius: 50%; color: var(--text-muted); font-family: var(--font-display); font-size: .7rem; font-weight: 700; letter-spacing: 0; }
.step.current { color: var(--primary-light); }
.step.current .step-number { border-color: var(--primary); color: var(--primary-light); box-shadow: 0 0 16px var(--primary-glow); }
.step.done { color: var(--text-sec); }
.step.done .step-number { border-color: var(--primary); background: var(--primary); color: white; }
.step.done::after { background: var(--primary); }
/* Original dashboard sidebar and content spacing. */
.dashboard-page { background: radial-gradient(ellipse at 50% 0%,#1a1012 0%,#0e0a0c 30%,#08080c 65%,var(--bg-dark) 100%); }
.dashboard-page .site-header { position: fixed; top: 0; left: 0; z-index: 50; display: flex; flex-direction: column; width: var(--sidebar-w); height: 100vh; height: 100svh; padding: 24px 0; border-right: 1px solid var(--border); background: var(--bg-sidebar); }
.brand { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; padding: 0 20px 24px; margin-bottom: 16px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.brand img { width: 100px; height: 100px; object-fit: contain; filter: drop-shadow(0 0 20px var(--primary-glow)); }
.brand span { display: none; }
.menu-tabs { display: flex; flex-direction: column; gap: 4px; padding: 0 12px; }
.menu-tab { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 12px 16px; border: 0; border-radius: 6px; background: transparent; color: var(--text-sec); font-size: .85rem; font-weight: 500; letter-spacing: .5px; text-align: left; text-decoration: none; transition: background-color .2s,color .2s; }
.menu-tab svg { width: 20px; height: 20px; flex: 0 0 20px; }
.menu-tab:hover { color: var(--text); background: rgba(255,255,255,.04); }
.menu-tab--active,.menu-tab--active:hover { color: var(--primary-light); background: rgba(222,64,26,.08); }
.menu-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; min-height: 20px; margin-left: auto; padding: 2px 5px; border: 1px solid rgba(222,64,26,.25); border-radius: var(--radius-sm); color: var(--primary-light); background: rgba(222,64,26,.08); font-size: .6rem; font-weight: 600; line-height: 1.2; letter-spacing: 0; }
.header-account { display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 10px; margin-top: auto; padding: 20px 16px 0; border-top: 1px solid var(--border); }
.account-name { min-width: 0; font-size: .8rem; font-weight: 600; overflow-wrap: anywhere; }
.account-name small { display: block; margin-top: 3px; color: var(--text-sec); font-size: .65rem; font-weight: 400; line-height: 1.5; }
.header-account > .btn { grid-column: 1 / -1; margin-top: 6px; }
.dashboard-page #content { width: calc(100% - var(--sidebar-w)); max-width: 1100px; margin-left: var(--sidebar-w); padding: 32px 32px 48px; }
.dashboard-page .logo-wrap { display: none; }
.dashboard-page .page-intro,.dashboard-heading { margin-bottom: 24px; }
.dashboard-page .page-intro h1 { margin-bottom: 6px; }
.dashboard-page .site-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; max-width: 1036px; margin: 0 32px 28px calc(var(--sidebar-w) + 32px); padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .7rem; }
.content-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(260px,1fr); align-items: start; gap: 24px; }
.single-column { grid-template-columns: minmax(0,1fr); }
.view-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; margin-bottom: 24px; }
.view-heading h1 { min-width: 0; font-size: 1.4rem; line-height: 1.4; overflow-wrap: anywhere; }
.view-heading > .btn { flex: 0 0 auto; }
.view-stack { display: grid; gap: 24px; min-width: 0; }
.view-stack > .card,.view-stack > .admin-area,.view-stack > .admin-overview { margin: 0; }
.view-heading + .registration-settings,.view-heading + .admin-area,.admin-area:only-child { margin-top: 0; }
.profile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 24px; }
.profile-grid > .card + .card { margin-top: 0; }
.profile-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.profile-actions > .btn { max-width: 100%; }
.card { min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
.card + .card { margin-top: 24px; }
.content-grid > .card + .card { margin-top: 0; }
.view-stack > .card + .card { margin-top: 0; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.card-heading h2,.card-heading h3 { min-width: 0; overflow-wrap: anywhere; }
.card-description { margin-top: 8px; color: var(--text-sec); font-size: .85rem; line-height: 1.6; }
.card-description + form { margin-top: 24px; }
.card-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-heading h3 { font-size: .75rem; letter-spacing: 1px; text-transform: uppercase; }
.muted { color: var(--text-sec); }
.small { font-size: .75rem; }
.loading-card { color: var(--text-sec); font-size: .85rem; text-align: center; }
.eyebrow { color: var(--primary-light); font-size: .65rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.intro-copy { color: var(--text-sec); font-size: .85rem; }
/* Inputs and actions follow the original registration controls. */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { color: var(--text-sec); font-size: .75rem; font-weight: 600; line-height: 1.4; letter-spacing: 1px; text-transform: uppercase; }
input,textarea,select { width: 100%; min-width: 0; min-height: 48px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); background: var(--bg-input); font-family: var(--font-body); font-size: .9rem; transition: background-color .2s,border-color .2s,box-shadow .2s; }
input::placeholder,textarea::placeholder { color: var(--text-muted); opacity: 1; }
input:focus,textarea:focus,select:focus { border-color: var(--border-focus); background: var(--bg-input-focus); box-shadow: 0 0 0 3px rgba(222,64,26,.1); }
select { cursor: pointer; }
select option { color: var(--text); background: #101014; }
select:disabled { cursor: not-allowed; opacity: .55; }
textarea { min-height: 90px; resize: vertical; }
.field-hint { color: var(--text-sec); font-size: .72rem; line-height: 1.6; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 14px 28px; border: 1px solid var(--primary); border-radius: var(--radius-sm); color: #fff; background: var(--primary); font-family: var(--font-display); font-size: .7rem; font-weight: 700; line-height: 1.4; letter-spacing: 2px; text-align: center; text-decoration: none; text-transform: uppercase; transition: background-color .2s,border-color .2s,box-shadow .2s; }
.btn:hover:not(:disabled) { border-color: var(--primary-light); background: var(--primary-light); box-shadow: 0 0 24px var(--primary-glow); }
.btn-secondary,.btn-subtle { border-color: var(--border); color: var(--text-sec); background: transparent; }
.btn-secondary:hover:not(:disabled),.btn-subtle:hover:not(:disabled) { border-color: rgba(255,255,255,.2); color: var(--text); background: rgba(255,255,255,.04); box-shadow: none; }
.btn-danger { border-color: rgba(222,64,26,.32); color: #f69a84; background: rgba(222,64,26,.08); }
.btn-danger:hover:not(:disabled) { border-color: var(--primary); background: rgba(222,64,26,.16); box-shadow: none; }
.btn-steam { width: 100%; margin-top: 24px; border-color: #2a475e; color: #8acdf6; background: linear-gradient(135deg,#1b2838,#2a475e); }
.btn-steam:hover:not(:disabled) { border-color: #66c0f4; background: linear-gradient(135deg,#2a475e,#3a6a8e); box-shadow: 0 0 20px rgba(102,192,244,.2); }
.btn-block { width: 100%; }
.btn-compact { min-height: 38px; padding: 9px 12px; font-size: .65rem; letter-spacing: 1px; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.form-note { margin-top: 16px; color: var(--text-sec); font-size: .72rem; line-height: 1.6; }
.role-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--text-muted); font-size: .72rem; text-align: center; }
.role-divider::before,.role-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.registration-banner { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 24px; color: var(--text-sec); font-size: .72rem; line-height: 1.6; }
.status-dot { display: block; flex: 0 0 5px; width: 5px; height: 5px; margin-top: 6px; border-radius: 50%; background: var(--primary); }
.closed .status-dot { background: var(--text-muted); }
.deadline-copy { display: block; margin-top: 4px; color: var(--text-sec); font-size: .68rem; line-height: 1.6; }
.registration-banner:has(> .deadline-copy) { flex-wrap: wrap; row-gap: 4px; }
.registration-banner > .deadline-copy { flex-basis: 100%; margin-top: 0; }
.notice:empty { display: none; }
.notice { margin-bottom: 20px; padding: 12px 16px; border: 1px solid rgba(34,197,94,.2); border-radius: var(--radius-sm); color: #a6dbb8; background: rgba(34,197,94,.06); font-size: .8rem; line-height: 1.6; overflow-wrap: anywhere; }
.notice-error { border-color: rgba(222,64,26,.3); color: #ffb7a5; background: rgba(222,64,26,.07); }
/* Account, roster, and approval states extend the original dashboard cards. */
.identity { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 16px 20px; border: 1px solid rgba(34,197,94,.2); border-radius: var(--radius-sm); background: rgba(34,197,94,.06); }
.steam-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 24px auto; border-radius: 50%; background: linear-gradient(135deg,#1b2838,#2a475e); color: #66c0f4; }
.steam-icon img { display: block; width: 36px; height: 36px; }
.identity-mark { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: 0 0 28px; color: #60cc87; font-size: 1.2rem; }
.identity strong { display: block; font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; }
.identity small { display: block; margin-top: 4px; color: var(--text-sec); font-size: .72rem; }
.steam-profile { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.steam-profile + .card-section { padding-top: 0; border-top: 0; }
.steam-avatar { position: relative; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; flex: 0 0 56px; overflow: hidden; border: 2px solid var(--primary); border-radius: 50%; color: var(--primary-light); background: rgba(222,64,26,.1); font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.steam-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.steam-avatar-compact { width: 38px; height: 38px; flex-basis: 38px; font-size: .85rem; }
.profile-player-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; }
.profile-details { display: grid; gap: 16px; margin-top: 20px; }
.profile-details div { min-width: 0; }
.profile-details dt { margin-bottom: 4px; color: var(--text-sec); font-size: .65rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.profile-details dd { margin: 0; color: var(--text); font-size: .82rem; overflow-wrap: anywhere; }
.badge { display: inline-flex; flex: 0 0 auto; align-items: center; padding: 4px 8px; border: 1px solid rgba(234,179,8,.22); border-radius: var(--radius-sm); color: #e3c477; background: rgba(234,179,8,.06); font-size: .62rem; font-weight: 600; line-height: 1.4; }
.badge-approved { border-color: rgba(34,197,94,.22); color: #8ed0a7; background: rgba(34,197,94,.06); }
.badge-rejected { border-color: rgba(222,64,26,.28); color: #f5a48f; background: rgba(222,64,26,.07); }
.badge-neutral,.badge-withdrawn { border-color: var(--border); color: var(--text-sec); background: rgba(255,255,255,.03); }
.state-note { margin-top: 22px; padding: 16px; border: 1px solid rgba(234,179,8,.14); border-radius: var(--radius-sm); background: rgba(234,179,8,.03); }
.state-note strong { display: block; margin-bottom: 6px; color: #ded0aa; font-size: .83rem; font-weight: 600; }
.state-note p { color: var(--text-sec); font-size: .8rem; line-height: 1.6; }
.state-note.rejected { border-color: rgba(222,64,26,.2); background: rgba(222,64,26,.04); }
.state-note.rejected strong { color: #edb09e; }
.state-note.rejected p { overflow-wrap: anywhere; }
.stack-list { margin: 0; padding: 0; list-style: none; }
.stack-list > li { padding: 14px 0; border-top: 1px solid var(--border); }
.stack-list > li:first-child { padding-top: 0; border-top: 0; }
.stack-list > li:last-child { padding-bottom: 0; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.row-copy { flex: 1; min-width: 0; }
.row-title { font-size: .85rem; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.row-subtitle { margin-top: 4px; color: var(--text-sec); font-size: .73rem; line-height: 1.5; overflow-wrap: anywhere; }
.member-label { flex: 0 0 auto; color: var(--text-sec); font-size: .65rem; white-space: nowrap; }
.empty-state { padding: 18px; border: 1px dashed rgba(255,255,255,.12); border-radius: var(--radius-sm); color: var(--text-sec); font-size: .8rem; line-height: 1.6; }
.admin-area { margin-top: 32px; }
.admin-profile { display: flex; align-items: center; gap: 16px; }
.admin-area > .section-heading { margin-bottom: 18px; }
.admin-area .eyebrow { margin-bottom: 6px; }
.admin-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.admin-grid .card + .card { margin-top: 0; }
.admin-grid h3 { overflow-wrap: anywhere; }
.admin-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
/* Registration controls extend the original dashboard without changing its layout. */
.admin-overview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: 24px 0; }
.stat-item { min-width: 0; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
.stat-link { display: block; color: inherit; text-decoration: none; transition: background-color .2s,border-color .2s; }
.stat-link:hover { border-color: rgba(222,64,26,.35); background: rgba(222,64,26,.05); }
.stat-value { display: block; color: var(--text); font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.stat-label { display: block; margin-top: 5px; color: var(--text-sec); font-size: .68rem; font-weight: 600; line-height: 1.5; letter-spacing: 1px; text-transform: uppercase; }
.registration-settings { margin-top: 24px; }
.settings-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.settings-heading h2 { min-width: 0; }
.settings-form { margin-top: 24px; }
.control-options { display: flex; flex-wrap: wrap; gap: 12px; min-width: 0; padding: 0; margin: 0 0 24px; border: 0; }
.control-options legend { padding: 0; margin-bottom: 10px; color: var(--text-sec); font-size: .75rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.control-option { display: flex; flex: 1 1 200px; align-items: flex-start; gap: 10px; min-width: 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-sec); background: var(--bg-input); font-size: .82rem; line-height: 1.5; cursor: pointer; }
.control-option:hover { border-color: rgba(255,255,255,.18); background: var(--bg-input-focus); }
.control-option:has(input:checked) { border-color: var(--primary); color: var(--text); background: rgba(222,64,26,.06); }
.control-option input { flex: 0 0 16px; width: 16px; min-width: 16px; height: 16px; min-height: 16px; padding: 0; margin-top: 2px; accent-color: var(--primary); box-shadow: none; cursor: pointer; }
.control-option input:focus { box-shadow: none; }
.control-option strong { display: block; font-size: .82rem; font-weight: 600; }
.control-option small { display: block; margin-top: 4px; color: var(--text-sec); font-size: .72rem; line-height: 1.6; }
.schedule-fields { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }
.schedule-fields .field { min-width: 0; margin-bottom: 0; }
.schedule-fields input { min-width: 0; font-variant-numeric: tabular-nums; }
.schedule-fields + .field-hint { margin-top: 8px; }
.schedule-disclosure { min-width: 0; }
.schedule-disclosure > summary { min-height: 44px; padding: 12px 0; color: var(--primary-light); font-size: .78rem; font-weight: 600; line-height: 1.5; cursor: pointer; }
.schedule-disclosure > summary::marker { color: var(--primary); }
.schedule-disclosure[open]:not(.is-automatic) > .schedule-fields { margin-top: 14px; }
.manual-fields { width: 100%; max-width: 440px; }
.manual-fields .field { margin-bottom: 0; }
.settings-row { display: grid; grid-template-columns: minmax(0,480px); align-items: center; gap: 20px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }
.settings-row .field { min-width: 0; margin-bottom: 0; }
.settings-row input[type="number"] { max-width: 220px; }
.settings-row > p { margin: 0; color: var(--text-sec); font-size: .78rem; line-height: 1.6; }
.settings-preview { margin-top: 24px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(255,255,255,.02); }
.settings-preview > p { margin-top: 8px; color: var(--text-sec); font-size: .78rem; line-height: 1.6; }
.phase-list { margin: 14px 0 0; padding: 0; list-style: none; }
.phase-item { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--border); font-size: .78rem; line-height: 1.5; }
.phase-item:last-child { padding-bottom: 0; }
.phase-item strong { font-weight: 600; }
.phase-time { color: var(--text-sec); font-size: .75rem; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.settings-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 22px; }
.save-status { flex: 1; min-width: 160px; color: var(--text-sec); font-size: .75rem; line-height: 1.6; }
.settings-meta { margin-top: 14px; color: var(--text-sec); font-size: .68rem; line-height: 1.6; overflow-wrap: anywhere; }
.admin-toolbar { display: grid; grid-template-columns: minmax(0,1fr) minmax(170px,240px); align-items: end; gap: 16px; margin-bottom: 20px; }
.admin-toolbar .field { min-width: 0; margin-bottom: 0; }
.team-details { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.team-details summary { min-height: 28px; padding: 4px 0; border-radius: var(--radius-sm); color: var(--primary-light); font-size: .75rem; font-weight: 600; line-height: 1.6; cursor: pointer; }
.team-details summary::marker { color: var(--primary); }
.team-details .stack-list { margin-top: 16px; }
/* Rules remain available in an accessible native dialog. */
.rules-dialog { width: min(560px,calc(100% - 40px)); max-height: calc(100vh - 40px); max-height: calc(100svh - 40px); padding: 0; overflow: auto; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); color: var(--text); background: #101014; box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.rules-dialog::backdrop { background: rgba(5,5,7,.75); backdrop-filter: blur(4px); }
.dialog-bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; border-bottom: 1px solid var(--border); background: #101014; }
.dialog-bar h2 { margin: 0; font-size: .9rem; line-height: 1.5; letter-spacing: 1px; text-align: left; }
.dialog-bar .btn { flex: 0 0 auto; }
#rules-content > .card { padding: 24px; border: 0; background: transparent; }
.rule-list { padding: 0; margin: 20px 0 0; list-style: none; }
.rule-list li { padding: 16px 0; border-top: 1px solid var(--border); }
.rule-list li:first-child { padding-top: 0; border-top: 0; }
.rule-list li:last-child { padding-bottom: 0; }
.rule-list strong { display: block; font-size: .85rem; font-weight: 600; }
.rule-list p { margin-top: 7px; color: var(--text-sec); font-size: .8rem; line-height: 1.6; }
#rules-content .rule-list { margin: 0; }
.site-footer a { color: var(--text-sec); text-decoration: none; }
.site-footer a:hover { color: var(--primary-light); }
.site-footer .btn { min-height: 34px; padding: 7px 12px; font-size: .6rem; letter-spacing: 1px; }
.footer-key { display: inline-flex; align-items: center; justify-content: center; padding: 2px 4px; border: 1px solid var(--border); border-radius: 3px; color: var(--text-sec); font-size: .6rem; line-height: 1; }
@media (min-width:1280px) {
  .schedule-fields { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width:1100px) {
  .content-grid { grid-template-columns: minmax(0,1fr); }
  .admin-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width:768px) {
  .dashboard-page { --dashboard-scroll-gap: 150px; }
  .dashboard-page :is([id],input,textarea,select,summary) { scroll-margin-top: var(--dashboard-scroll-gap); }
  .dashboard-page .site-header { position: sticky; flex-direction: row; align-items: center; flex-wrap: wrap; width: 100%; height: auto; padding: 12px 16px 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .brand { justify-content: flex-start; margin: 0; padding: 0; border: 0; }
  .brand img { width: 56px; height: 56px; }
  .header-account { display: flex; flex-wrap: nowrap; gap: 9px; margin: 0 0 0 auto; padding: 0; border: 0; }
  .account-name { max-width: 155px; overflow: hidden; font-size: .75rem; white-space: nowrap; text-overflow: ellipsis; }
  .account-name small { font-size: .6rem; }
  .header-account > .btn { margin: 0; }
  .menu-tabs { order: 3; flex-direction: row; width: 100%; gap: 8px; margin-top: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
  .menu-tab { flex: 1; justify-content: center; padding: 10px 16px; font-size: .75rem; }
  .menu-count { margin-left: 0; }
  .profile-grid { grid-template-columns: minmax(0,1fr); }
  .dashboard-page #content { width: 100%; margin-left: 0; padding: 24px 16px 36px; }
  .dashboard-page .site-footer { margin: 0 16px 24px; }
  .card { padding: 22px; }
}
@media (max-width:520px) {
  .dashboard-page { --dashboard-scroll-gap: 150px; }
  .admin-page.dashboard-page { --dashboard-scroll-gap: 200px; }
  .registration-page { padding: 32px 20px; }
  input,textarea,select { font-size: 16px; }
  .account-name { max-width: 100px; }
  .account-name small { display: none; }
  .header-account { gap: 7px; }
  .header-account .steam-avatar-compact { width: 30px; height: 30px; flex-basis: 30px; font-size: .7rem; }
  .header-account .btn-compact { min-height: 36px; padding: 8px; font-size: .6rem; letter-spacing: .3px; }
  .brand img { width: 46px; height: 46px; }
  .admin-page .menu-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-page .menu-tab { padding-inline: 10px; gap: 8px; }
  .view-heading { gap: 12px; margin-bottom: 20px; }
  .view-heading h1 { font-size: 1.25rem; }
  .view-stack,.profile-grid { gap: 20px; }
  .card { padding: 20px; }
  .card-heading,.list-row { flex-wrap: wrap; gap: 10px; }
  .admin-profile { flex-wrap: wrap; }
  .admin-profile > .btn { flex-basis: 100%; }
  .list-row .button-row { flex-basis: 100%; }
  .row-copy { flex-basis: 55%; }
  .steam-profile .row-copy { flex-basis: auto; }
  .btn { padding-inline: 18px; }
  .btn-compact { padding-inline: 11px; }
  .steps { max-width: 340px; }
  .step { font-size: .6rem; letter-spacing: .7px; }
  .section-heading { gap: 9px; }
  .rules-dialog { width: calc(100% - 24px); max-height: calc(100svh - 24px); }
  .dialog-bar { padding: 16px 18px; gap: 12px; }
  .dialog-bar h2 { font-size: .8rem; }
  .dialog-bar .footer-key { display: none; }
  #rules-content > .card { padding: 20px; }
  .admin-overview { gap: 10px; margin-block: 20px; }
  .stat-item { padding: 14px 10px; }
  .stat-value { font-size: 1.25rem; }
  .stat-label { font-size: .6rem; letter-spacing: .5px; }
  .control-option { flex-basis: 100%; padding: 13px; }
  .settings-row,.admin-toolbar { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .settings-preview { padding: 15px; }
  .phase-item { flex-direction: column; gap: 5px; }
  .phase-time { text-align: left; }
  .settings-actions > .btn { width: 100%; }
  .save-status { min-width: 0; flex-basis: 100%; }
}
@media (max-width:360px) {
  .account-name { max-width: 72px; font-size: .68rem; }
  .header-account { gap: 6px; }
  .card { padding: 18px; }
  .registration-page { padding-inline: 18px; }
  .btn { padding-inline: 14px; }
  .badge { font-size: .6rem; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition: none !important; }
}
