@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --bg: #f3f2ec;
  --panel: #fffefa;
  --panel-soft: #f8f7f1;
  --panel-quiet: #eeede5;
  --text: #18211e;
  --muted: #7c827b;
  --line: #e6e6de;
  --accent: #c9f36a;
  --accent-deep: #667d35;
  --accent-soft: #eff6dd;
  --green: #427a61;
  --green-soft: #e7f1ea;
  --yellow: #ae7b2d;
  --yellow-soft: #f8f0de;
  --blue: #6685c4;
  --blue-soft: #edf1fb;
  --coral: #e37b5c;
  --coral-soft: #faece5;
  --shadow: 0 14px 36px rgba(25, 34, 29, .055);
  --sidebar: #18211e;
  --sidebar-text: #e9eee8;
  --input: #fffefa;
  --radius: 18px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body.dark {
  color-scheme: dark;
  --bg: #111715;
  --panel: #19211e;
  --panel-soft: #202925;
  --panel-quiet: #29332e;
  --text: #edf1e9;
  --muted: #a1aaa2;
  --line: #303a34;
  --accent: #c9f36a;
  --accent-deep: #d1ec99;
  --accent-soft: #29351f;
  --green: #8ac4a0;
  --green-soft: #203329;
  --yellow: #e8bd70;
  --yellow-soft: #382d1d;
  --blue: #9cb4ee;
  --blue-soft: #262f46;
  --coral: #ff997a;
  --coral-soft: #3d2a23;
  --shadow: 0 14px 36px rgba(0, 0, 0, .19);
  --sidebar: #0b100e;
  --sidebar-text: #edf1e9;
  --input: #202925;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.45; transition: background .2s, color .2s; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(201, 243, 106, .42); outline-offset: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand, .auth-brand { font-family: Manrope, 'DM Sans', sans-serif; }
h1 { font-size: 30px; line-height: 1.13; letter-spacing: -.055em; margin-bottom: 7px; font-weight: 780; }
h2 { font-size: 16px; letter-spacing: -.035em; margin-bottom: 5px; font-weight: 760; }
h3 { font-size: 13px; letter-spacing: -.02em; margin-bottom: 6px; }
p { line-height: 1.55; }
.muted { color: var(--muted); }
.eyebrow { color: var(--muted); font-size: 9px; letter-spacing: .14em; font-weight: 800; margin: 0 0 8px; }

.button { border: 1px solid transparent; border-radius: 11px; padding: 10px 14px; font-size: 11px; font-weight: 750; cursor: pointer; transition: transform .16s, background .16s, border-color .16s, box-shadow .16s; white-space: nowrap; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--accent); color: #19231c; box-shadow: 0 5px 14px rgba(163, 204, 78, .16); }
.button.primary:hover { background: #d2fa7c; }
.button.primary:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.button.secondary { background: var(--panel); border-color: var(--line); color: var(--text); }
.button.secondary:hover { border-color: var(--muted); }
.button.ghost { background: transparent; border-color: var(--line); }
.button.small { padding: 7px 10px; font-size: 10px; }
.button.wide { width: 100%; justify-content: center; }
.icon-button { width: 36px; height: 36px; display: inline-grid; place-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; color: var(--muted); font-size: 17px; line-height: 1; transition: .16s; }
.icon-button:hover { color: var(--text); background: var(--panel-soft); border-color: var(--muted); }
.text-button { border: 0; background: transparent; color: var(--accent-deep); font-weight: 750; font-size: 11px; padding: 8px 0; cursor: pointer; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.form-stack { display: grid; gap: 14px; }
.form-stack label, .field-label { display: grid; gap: 6px; font-size: 10px; color: var(--text); font-weight: 720; }
.form-stack input, .field-label input, .field-label select, .field-label textarea, .control-select, .form-stack select, .form-stack textarea { width: 100%; min-height: 42px; border: 1px solid var(--line); background: var(--input); border-radius: 10px; padding: 10px 12px; color: var(--text); font-size: 11px; font-weight: 450; }
.form-stack textarea, .field-label textarea { resize: vertical; min-height: 86px; }
.form-stack input:focus, .field-label input:focus, .field-label select:focus, .field-label textarea:focus, .control-select:focus { border-color: #9cb854; outline: 0; box-shadow: 0 0 0 3px rgba(201, 243, 106, .16); }
.form-message { min-height: 16px; color: var(--muted); font-size: 10px; margin: 7px 0 0; }
.form-message.error { color: #b34235; }
.form-message.success { color: var(--green); }

/* Login and workspace entry */
.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); align-items: center; gap: clamp(40px, 8vw, 140px); padding: 100px clamp(36px, 9vw, 145px); overflow: hidden; position: relative; background: radial-gradient(ellipse at 10% 12%, rgba(201, 243, 106, .12), transparent 34%), var(--bg); }
.auth-screen[hidden], .workspace-screen[hidden], .app-shell[hidden] { display: none !important; }
.auth-brand { position: absolute; z-index: 2; left: clamp(24px, 4vw, 54px); top: 26px; display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 22px; font-weight: 850; letter-spacing: -.07em; }
.brand-mark { width: 34px; height: 34px; display: inline-grid; place-items: center; color: #19231c; background: var(--accent); border-radius: 11px; font-size: 17px; font-weight: 900; transform: rotate(-4deg); }
.brand-dot { color: var(--coral); }
.auth-intro { position: relative; min-height: 350px; display: flex; flex-direction: column; justify-content: center; max-width: 600px; }
.auth-kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--accent-deep); font-size: 9px; font-weight: 850; letter-spacing: .15em; margin-bottom: 20px; }
.auth-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px var(--coral-soft); }
.auth-intro h2 { font-size: clamp(35px, 5vw, 59px); line-height: 1.04; letter-spacing: -.065em; margin: 0 0 18px; max-width: 650px; }
.auth-intro h2 span { color: var(--accent-deep); }
.auth-intro > p { max-width: 400px; color: var(--muted); font-size: 13px; margin: 0; }
.auth-proof { display: flex; gap: 26px; margin-top: 36px; }
.auth-proof span { display: flex; align-items: flex-start; gap: 9px; }
.auth-proof strong { color: var(--coral); font-size: 10px; font-weight: 850; }
.auth-proof small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.wall-lines { position: absolute; right: -18%; top: 10%; width: 185px; height: 310px; opacity: .42; transform: rotate(24deg); border-left: 1px solid color-mix(in srgb, var(--accent-deep) 36%, transparent); }
.wall-lines i { position: absolute; display: block; width: 17px; height: 13px; border-radius: 5px 8px 5px 5px; background: color-mix(in srgb, var(--accent) 70%, var(--panel)); box-shadow: 0 8px 18px rgba(30, 41, 39, .08); }
.wall-lines i:nth-child(1) { left: 30px; top: 15px; transform: rotate(-20deg); }.wall-lines i:nth-child(2) { left: 97px; top: 49px; transform: rotate(12deg); }.wall-lines i:nth-child(3) { left: 48px; top: 95px; transform: rotate(26deg); }.wall-lines i:nth-child(4) { left: 122px; top: 134px; }.wall-lines i:nth-child(5) { left: 25px; top: 177px; transform: rotate(-12deg); }.wall-lines i:nth-child(6) { left: 93px; top: 218px; transform: rotate(15deg); }.wall-lines i:nth-child(7) { left: 49px; top: 269px; }.wall-lines i:nth-child(8) { left: 145px; top: 290px; transform: rotate(-15deg); }
.auth-card { position: relative; z-index: 1; width: min(100%, 420px); background: var(--panel); border: 1px solid var(--line); box-shadow: 0 28px 90px rgba(22, 32, 27, .11); border-radius: 22px; padding: 30px; }
.auth-card h1 { font-size: 25px; margin-bottom: 8px; }
.auth-card > .muted { font-size: 11px; margin-bottom: 22px; }
.auth-card .text-button { margin-top: 10px; }
.auth-foot { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 9px; }
.workspace-screen { min-height: 100vh; display: grid; place-items: center; padding: 80px 18px; background: radial-gradient(ellipse at 12% 10%, rgba(201, 243, 106, .11), transparent 36%), var(--bg); }
.workspace-screen .auth-card { width: min(100%, 470px); }
.form-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 9px; letter-spacing: .14em; margin: 17px 0; }
.form-divider:before, .form-divider:after { content: ''; height: 1px; background: var(--line); flex: 1; }
.connection-banner { position: fixed; z-index: 30; inset: 0 0 auto; background: var(--yellow-soft); border-bottom: 1px solid color-mix(in srgb, var(--yellow) 30%, var(--line)); color: var(--yellow); text-align: center; padding: 9px 16px; font-size: 10px; font-weight: 700; }

/* Desktop shell and navigation */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; background: var(--sidebar); color: var(--sidebar-text); padding: 23px 15px 15px; display: flex; flex-direction: column; z-index: 12; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--sidebar-text); text-decoration: none; font-size: 20px; font-weight: 850; letter-spacing: -.07em; padding: 0 10px 22px; }
.space-switcher { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 1px solid #35423b; border-radius: 12px; margin: 0 0 23px; background: #202a25; color: var(--sidebar-text); cursor: pointer; text-align: left; transition: .16s; }
.space-switcher:hover { border-color: #56654c; background: #27332c; }
.space-icon { display: grid; place-items: center; width: 32px; height: 32px; background: #344238; border-radius: 10px; color: var(--accent); font-size: 17px; }
.space-copy, .user-copy { display: grid; gap: 2px; min-width: 0; flex: 1; }
.space-copy strong, .user-copy strong { color: #f1f4ef; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.space-copy small, .user-copy small { color: #9ea9a0; font-size: 9px; }
.switch-chevron { color: #94a097; font-size: 15px; }
.nav-caption { color: #78857c; font-size: 8px; letter-spacing: .14em; font-weight: 850; padding: 0 10px; margin: 0 0 8px; }
.nav-caption-spaced { margin-top: 23px; }
.main-nav { display: grid; gap: 4px; }
.nav-link { width: 100%; min-height: 40px; padding: 0 11px; border: 0; background: transparent; display: flex; align-items: center; gap: 11px; border-radius: 10px; text-align: left; color: #aab4ad; cursor: pointer; font-size: 11px; transition: background .16s, color .16s; }
.nav-link:hover { background: #232e28; color: white; }
.nav-link.active { color: #f7f9f4; background: #2a3730; box-shadow: inset 3px 0 0 var(--accent); font-weight: 750; }
.nav-link.active .nav-icon { color: var(--accent); }
.nav-icon { width: 18px; height: 18px; display: inline-grid; place-items: center; color: #929e95; flex: 0 0 auto; }
.nav-icon svg { width: 16px; height: 16px; }
.nav-count { margin-left: auto; color: #9ca79f; font-size: 9px; }
.sub-link { min-height: 35px; padding-left: 16px; font-size: 10px; }
.sidebar-bottom { margin-top: auto; }
.sync-indicator { display: flex; align-items: center; gap: 8px; color: #a1aca4; font-size: 9px; padding: 10px 11px; }
.sync-dot { width: 7px; height: 7px; border-radius: 100%; background: #81bd84; display: inline-block; flex: none; }
.sync-dot.offline { background: #dfad51; }
.user-card { display: flex; align-items: center; gap: 9px; text-align: left; width: 100%; background: transparent; border: 1px solid #35423b; border-radius: 11px; padding: 9px; cursor: pointer; color: var(--sidebar-text); }
.user-card:hover { background: #202a25; }
.user-avatar { width: 30px; height: 30px; display: grid; place-items: center; background: #dfb39c; border-radius: 50%; color: #243128; font-size: 9px; font-weight: 800; flex: none; }
.signout-button { display: block; margin-left: 10px; color: #a5b0a8; font-size: 9px; }
.main-area { grid-column: 2; min-width: 0; }
.topbar { height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 36px; background: color-mix(in srgb, var(--bg) 91%, transparent); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 9; backdrop-filter: blur(14px); }
.breadcrumbs { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; }
.breadcrumbs strong { color: var(--text); font-weight: 750; }
.crumb-sep { color: #b4b9b1; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.live-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 9px; font-weight: 750; padding: 7px 9px; background: var(--green-soft); border-radius: 8px; }
.live-badge .sync-dot { width: 6px; height: 6px; }
.invite-button { font-size: 10px; }
.quick-timing { display: inline-flex; align-items: center; gap: 5px; padding: 9px 12px; font-size: 10px; }
.quick-plus { font-size: 16px; line-height: .7; font-weight: 500; }
.mobile-menu { display: none; }
.content-wrap { width: min(100%, 1440px); margin: 0 auto; padding: 29px 36px 50px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 17px; margin-bottom: 21px; }
.page-heading h1 { margin-bottom: 5px; }
.page-heading .muted { margin: 0; font-size: 11px; }
.page-heading .eyebrow { margin-bottom: 8px; }
.roster-toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 15px; }
.search-box { display: flex; align-items: center; gap: 9px; width: min(100%, 315px); padding: 0 11px; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; color: var(--muted); }
.search-box span { font-size: 17px; }
.search-box input { width: 100%; min-height: 38px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 10px; }
.search-box:focus-within { border-color: #9cb854; box-shadow: 0 0 0 3px rgba(201,243,106,.14); }
.roster-hint { color: var(--muted); font-size: 9px; }
.climber-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.climber-card { position: relative; min-width: 0; display: flex; align-items: center; gap: 11px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); cursor: pointer; text-align: left; transition: transform .16s, border-color .16s, box-shadow .16s; }
.climber-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent-deep) 35%, var(--line)); box-shadow: 0 16px 34px rgba(25,34,29,.08); }
.climber-avatar { width: 43px; height: 43px; border-radius: 13px; display: grid; place-items: center; flex: 0 0 auto; background: #e5c7b5; color: #253029; font-size: 11px; font-weight: 850; overflow: hidden; }
.climber-avatar.tone-1 { background: #c7d2b8; }.climber-avatar.tone-2 { background: #c6d5de; }.climber-avatar.tone-3 { background: #d9c9e4; }
.climber-avatar img, .profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.climber-card-copy { display: grid; gap: 4px; min-width: 0; flex: 1; }
.climber-card-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 760; }
.climber-card-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 9px; }
.card-arrow { color: #97a098; font-size: 20px; }
.empty-state { text-align: center; max-width: 440px; margin: 48px auto; padding: 35px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.empty-state[hidden] { display: none; }
.empty-state p { color: var(--muted); font-size: 11px; }
.empty-icon { display: inline-grid; place-items: center; width: 47px; height: 47px; border-radius: 15px; color: var(--accent-deep); background: var(--accent-soft); font-size: 22px; margin-bottom: 13px; }

/* Dashboard */
.dashboard-welcome { margin-bottom: 20px; }
.dashboard-welcome h1 { font-size: clamp(28px, 3vw, 36px); }
.dashboard-banner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 170px; padding: 25px 29px; margin-bottom: 14px; border-radius: 21px; overflow: hidden; color: #f4f7ef; background: linear-gradient(112deg, #19241f 0%, #25352d 62%, #37483b 100%); box-shadow: var(--shadow); }
.dashboard-banner:before { content: ''; position: absolute; width: 330px; height: 330px; border: 1px solid rgba(201,243,106,.17); border-radius: 50%; right: 8%; top: -197px; box-shadow: 0 0 0 27px rgba(201,243,106,.045), 0 0 0 55px rgba(201,243,106,.035), 0 0 0 84px rgba(201,243,106,.025); }
.dashboard-banner:after { content: ''; position: absolute; width: 280px; height: 110px; right: -20px; bottom: -54px; background: rgba(201,243,106,.12); filter: blur(21px); border-radius: 50%; }
.dashboard-banner > * { position: relative; z-index: 1; }
.dashboard-banner-copy { max-width: 620px; }
.dashboard-banner .banner-kicker { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 9px; letter-spacing: .14em; font-weight: 850; text-transform: uppercase; margin-bottom: 10px; }
.dashboard-banner .banner-kicker .sync-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(201,243,106,.13); }
.dashboard-banner h2 { color: #f6f8f3; font-size: clamp(22px,2.2vw,29px); margin: 0 0 6px; }
.dashboard-banner p { color: #b7c2b9; font-size: 10px; margin: 0 0 14px; }
.banner-meta { display: flex; gap: 7px; flex-wrap: wrap; }
.banner-meta span { padding: 5px 8px; color: #dce3db; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 99px; font-size: 8px; }
.banner-side { display: grid; justify-items: end; gap: 12px; min-width: 145px; }
.banner-side strong { display: block; font-size: 32px; line-height: 1; letter-spacing: -.06em; text-align: right; }
.banner-side small { display: block; margin-top: 5px; color: #b7c2b9; font-size: 9px; text-align: right; }
.banner-side .text-button { color: var(--accent); }
.dashboard-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.dashboard-stat { padding: 15px 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); box-shadow: var(--shadow); }
.dashboard-stat-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; font-weight: 650; }
.dashboard-stat-icon { width: 29px; height: 29px; display: grid; place-items: center; color: var(--accent-deep); background: var(--accent-soft); border-radius: 9px; font-size: 14px; }
.dashboard-stat-icon.coral { color: var(--coral); background: var(--coral-soft); }.dashboard-stat-icon.blue { color: var(--blue); background: var(--blue-soft); }.dashboard-stat-icon.gold { color: var(--yellow); background: var(--yellow-soft); }
.dashboard-stat-value { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.dashboard-stat-value strong { font-size: 25px; line-height: 1; letter-spacing: -.06em; }
.dashboard-stat-value span { color: var(--muted); font-size: 9px; }
.dashboard-stat-foot { margin-top: 7px; color: var(--muted); font-size: 8px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); align-items: start; gap: 13px; }
.dashboard-column { display: grid; gap: 13px; min-width: 0; }
.dashboard-panel { overflow: hidden; }
.dashboard-panel .panel-heading { padding-bottom: 13px; }
.dashboard-link { border: 0; padding: 0; background: transparent; color: var(--accent-deep); font: inherit; font-size: 9px; font-weight: 760; cursor: pointer; white-space: nowrap; }
.dashboard-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.dashboard-highlight { padding: 12px 17px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 9px; }
.dashboard-highlight strong { color: var(--text); font-size: 10px; }
.dashboard-list { display: grid; }
.dashboard-row { display: flex; align-items: center; gap: 11px; min-width: 0; width: 100%; padding: 11px 16px; border: 0; border-top: 1px solid var(--line); background: transparent; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: background .14s; }
.dashboard-row:hover { background: var(--panel-soft); }
.dashboard-row-main { min-width: 0; flex: 1; }
.dashboard-row-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.dashboard-row-main small { display: block; color: var(--muted); margin-top: 3px; font-size: 8px; }
.dashboard-row-time { text-align: right; font-size: 10px; font-weight: 760; font-variant-numeric: tabular-nums; }
.dashboard-row-time small { display: block; color: var(--muted); font-size: 8px; font-weight: 500; margin-top: 2px; }
.dashboard-avatar { width: 29px; height: 29px; display: grid; place-items: center; background: #e4c0a7; color: #263128; border-radius: 10px; font-size: 8px; font-weight: 850; flex: 0 0 auto; }
.dashboard-place { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; color: var(--muted); background: var(--panel-soft); font-size: 8px; font-weight: 800; flex: 0 0 auto; }
.dashboard-place.top { color: #263128; background: var(--accent); }
.dashboard-event { padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-soft); margin: 0 14px 14px; }
.dashboard-event .event-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 8px; }
.dashboard-event h3 { margin: 10px 0 4px; font-size: 12px; }
.dashboard-event p { color: var(--muted); font-size: 9px; margin: 0; }
.dashboard-event-action { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; }
.dashboard-event-action .text-button { padding: 3px 0; }
.dashboard-empty { padding: 20px 17px; color: var(--muted); font-size: 9px; }
.quick-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 0 14px 14px; }
.quick-action { min-width: 0; display: grid; justify-items: start; gap: 5px; padding: 12px; color: var(--text); text-align: left; background: var(--panel-soft); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: background .14s,border-color .14s,transform .14s; }
.quick-action:hover { background: var(--accent-soft); border-color: var(--accent-deep); transform: translateY(-1px); }
.quick-action > span { color: var(--accent-deep); font-size: 17px; line-height: 1; }
.quick-action strong { font-size: 9px; }
.quick-action small { color: var(--muted); font-size: 8px; }

/* Profile and performance pages */
.profile-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.profile-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.profile-avatar { width: 62px; height: 62px; display: grid; place-items: center; background: linear-gradient(145deg,#e5c1a7,#cad5bb); color: #29362d; border-radius: 18px; font-weight: 850; font-size: 16px; flex: 0 0 auto; overflow: hidden; }
.profile-name-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-name-line h1 { margin: 0; font-size: 25px; }
.profile-subtitle { color: var(--muted); font-size: 10px; margin: 5px 0 0; }
.profile-subtitle span { padding: 0 3px; }
.status-chip, .role-chip, .status-pill, .tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 99px; background: var(--green-soft); color: var(--green); font-size: 8px; font-weight: 800; white-space: nowrap; }
.status-chip.archived { background: var(--panel-quiet); color: var(--muted); }
.profile-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.profile-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 4px; margin: 0 0 15px; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; scrollbar-width: none; }
.profile-tabs::-webkit-scrollbar { display: none; }
.tab-button { position: relative; flex: 0 0 auto; padding: 9px 13px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 720; cursor: pointer; }
.tab-button:hover { color: var(--text); background: var(--panel-soft); }
.tab-button.active { color: var(--text); background: var(--accent-soft); }
.tab-button.active:after { display: none; }
.content-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(280px,.85fr); gap: 13px; align-items: start; }
.stack { display: grid; gap: 13px; }
.panel { min-width: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel.soft { background: var(--panel-soft); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 17px 18px 13px; }
.panel-heading h2, .panel-heading h3 { margin: 0; }
.panel-heading .muted { font-size: 9px; margin: 4px 0 0; }
.profile-details { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px 15px; padding: 3px 18px 15px; }
.detail-item small { display: block; color: var(--muted); font-size: 8px; }
.detail-item strong { display: block; margin-top: 4px; font-size: 10px; font-weight: 720; overflow-wrap: anywhere; }
.sports-note { margin: 0 18px 16px; padding: 11px 12px; color: var(--muted); background: var(--panel-soft); border-radius: 10px; font-size: 9px; }
.category-timeline { padding: 0 18px 14px; }
.timeline-item { position: relative; display: flex; gap: 10px; min-height: 42px; }
.timeline-item:not(:last-child):before { content: ''; position: absolute; left: 4px; top: 12px; bottom: -2px; width: 1px; background: var(--line); }
.timeline-dot { width: 9px; height: 9px; margin-top: 3px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel); flex: 0 0 auto; z-index: 1; }
.timeline-item.current .timeline-dot { border-color: var(--accent-deep); background: var(--accent); }
.timeline-copy strong { display: block; font-size: 10px; }
.timeline-copy small { display: block; color: var(--muted); margin-top: 2px; font-size: 8px; }
.note-preview { margin: 12px 16px 10px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-soft); }
.note-preview p { margin: 0 0 7px; font-size: 9px; }
.note-preview small { color: var(--muted); font-size: 8px; }
.private-label { color: var(--blue); background: var(--blue-soft); border-radius: 99px; padding: 5px 8px; font-size: 8px; font-weight: 800; white-space: nowrap; }
.private-notice { display: flex; align-items: flex-start; gap: 8px; margin: 0 16px 10px; padding: 9px 10px; color: var(--blue); background: var(--blue-soft); border-radius: 9px; font-size: 8px; }
.private-notice p { margin: 0; line-height: 1.45; }
.panel > .text-button { margin: 0 16px 12px; }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 13px; }
.metric-card { min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); }
.metric-card.metric-record { background: var(--dark); border-color: var(--dark); color: #f5f7f1; }
.metric-card .metric-label { display: block; color: var(--muted); font-size: 8px; font-weight: 700; }
.metric-record .metric-label { color: #b0bbb2; }
.metric-value { margin-top: 8px; font-size: 22px; font-weight: 800; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.metric-value span { color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: 0; }
.metric-foot { margin-top: 6px; color: var(--muted); font-size: 8px; overflow-wrap: anywhere; }
.metric-record .metric-foot { color: #aeb9b0; }
.metric-foot.good { color: var(--green); }.metric-foot.warn { color: var(--coral); }
.chart-panel { overflow: hidden; margin-bottom: 13px; }
.chart-controls { display: flex; gap: 9px; align-items: end; flex-wrap: wrap; padding: 0 17px 12px; }
.chart-controls label { display: grid; gap: 4px; min-width: 120px; flex: 1; }
.chart-controls .eyebrow { margin: 0; font-size: 7px; }
.control-select { min-height: 34px; padding: 7px 9px; font-size: 9px; }
.chart-wrap { position: relative; min-height: 205px; padding: 9px 15px 0; }
.progress-chart { width: 100%; height: 205px; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.chart-axis { fill: var(--muted); font: 8px 'DM Sans', sans-serif; }
.chart-path { fill: none; stroke: #8eaf43; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.chart-path.compare { stroke: #7188cd; stroke-dasharray: 6 5; }
.chart-area { fill: url(#chartFill); }
.chart-point { fill: var(--panel); stroke: #8eaf43; stroke-width: 2.2; cursor: crosshair; transition: r .12s; }
.chart-point:hover { r: 6; }.chart-point.compare { stroke: #7188cd; }
.chart-tooltip { position: absolute; z-index: 3; opacity: 0; pointer-events: none; padding: 7px 9px; border-radius: 8px; color: #f5f6ef; background: #1d2822; box-shadow: 0 6px 20px rgba(0,0,0,.18); font-size: 8px; white-space: nowrap; transform: translate(-50%,-115%); transition: opacity .12s; }
.chart-legend { display: flex; gap: 15px; flex-wrap: wrap; padding: 0 18px 9px; color: var(--muted); font-size: 8px; }
.legend-key { display: inline-flex; align-items: center; gap: 6px; }
.legend-line { width: 15px; height: 2px; display: inline-block; background: #8eaf43; }.legend-line.compare { background: #7188cd; }
.chart-points { display: flex; gap: 7px; overflow-x: auto; padding: 0 17px 10px; }
.point-chip { display: grid; gap: 3px; min-width: 70px; padding: 7px 9px; background: var(--panel-soft); border-radius: 9px; }
.point-chip small { color: var(--muted); font-size: 7px; }.point-chip strong { font-size: 9px; font-variant-numeric: tabular-nums; }
.chart-footnote { margin: 0; padding: 10px 17px 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; }
.data-unavailable { padding: 20px 17px; color: var(--muted); font-size: 10px; text-align: center; }
.detail-stat { padding: 14px 18px; border-top: 1px solid var(--line); }
.detail-stat small { display: block; color: var(--muted); font-size: 8px; }
.detail-stat strong { display: block; margin-top: 4px; font-size: 18px; letter-spacing: -.04em; }
.detail-stats { display: grid; grid-template-columns: repeat(3,1fr); }
.detail-stats .detail-stat { padding: 11px 14px; }

/* Sessions, technical notebook, competition results */
.session-list { padding: 0 16px 8px; }
.session-row { display: grid; grid-template-columns: 88px minmax(0,1fr) 90px 105px; align-items: center; gap: 12px; padding: 12px 8px; border-top: 1px solid var(--line); cursor: pointer; border-radius: 8px; transition: background .14s; }
.session-row:last-child { border-bottom: 0; }
.session-row:hover { background: var(--panel-soft); }
.session-row:hover .session-title { color: var(--accent-deep); }
.session-date { color: var(--muted); font-size: 8px; white-space: nowrap; }
.session-title { display: block; font-size: 10px; font-weight: 750; transition: color .14s; }
.session-subtitle { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.session-time { text-align: right; font-size: 10px; font-weight: 760; font-variant-numeric: tabular-nums; }
.session-type { justify-self: end; padding: 5px 8px; border-radius: 99px; color: var(--green); background: var(--green-soft); font-size: 8px; font-weight: 750; white-space: nowrap; }
.session-type.comp { color: var(--coral); background: var(--coral-soft); }
.attempt-strip { display: flex; gap: 7px; flex-wrap: wrap; padding: 5px 0; }
.attempt-chip { display: grid; gap: 2px; padding: 7px 9px; background: var(--panel-soft); border-radius: 8px; font-size: 8px; }
.attempt-chip strong { font-size: 9px; font-variant-numeric: tabular-nums; }
.technical-list { display: grid; gap: 9px; padding: 0 16px 16px; }
.technical-card { padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.technical-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.technical-card h3 { margin: 0 0 4px; font-size: 11px; }
.technical-card p { margin: 0; color: var(--muted); font-size: 9px; }
.technical-objective { margin-top: 9px; padding: 8px 9px; color: var(--muted); background: var(--panel-soft); border-radius: 8px; font-size: 8px; }
.technical-objective strong { color: var(--text); }
.technical-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 8px; }
.status-pill { border: 0; cursor: pointer; }
.status-pill.todo { color: var(--yellow); background: var(--yellow-soft); }.status-pill.in_progress, .status-pill.progress { color: var(--blue); background: var(--blue-soft); }.status-pill.mastered, .status-pill.done { color: var(--green); background: var(--green-soft); }
.tech-history { margin-top: 10px; color: var(--muted); font-size: 8px; }.tech-history summary { cursor: pointer; color: var(--accent-deep); font-weight: 700; }.tech-history div { padding: 5px 0 0 8px; }
.coach-note { padding: 12px 0; border-top: 1px solid var(--line); }.coach-note:last-child { border-bottom: 1px solid var(--line); }
.coach-note p { margin: 0 0 7px; font-size: 9px; }.coach-note-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; }
.comparison-box { display: grid; grid-template-columns: 1fr 42px 1fr; align-items: center; gap: 7px; padding: 17px; }
.comparison-side { text-align: center; min-width: 0; }.comparison-side small { display: block; color: var(--muted); font-size: 7px; letter-spacing: .09em; }.comparison-side strong { display: block; margin-top: 6px; font-size: 20px; letter-spacing: -.05em; }
.comparison-vs { display: grid; place-items: center; width: 32px; height: 32px; color: var(--muted); border: 1px solid var(--line); border-radius: 50%; font-size: 8px; font-weight: 800; }
.competition-table-wrap { width: 100%; overflow-x: auto; }
.competition-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.competition-table th { color: var(--muted); background: var(--panel-soft); padding: 10px 12px; font-size: 7px; letter-spacing: .1em; text-transform: uppercase; }
.competition-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 9px; }
.competition-table tr:last-child td { border-bottom: 0; }.competition-table td strong { font-size: 9px; font-variant-numeric: tabular-nums; }
.competition-table tbody tr:hover { background: var(--panel-soft); }
.rank-badge { display: inline-grid; place-items: center; min-width: 23px; height: 23px; padding: 0 4px; border-radius: 7px; color: var(--muted); background: var(--panel-soft); font-size: 8px; font-weight: 800; }
.competition-table tbody tr:nth-child(-n+3) .rank-badge { color: #263128; background: var(--accent); }
.duel-list { display: grid; gap: 8px; padding: 0 16px 15px; }
.duel-result { color: var(--green); background: var(--green-soft); padding: 4px 7px; border-radius: 99px; font-size: 8px; font-weight: 800; }.duel-result.loss { color: var(--muted); background: var(--panel-quiet); }
.bracket-rounds { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding: 0 16px 17px; }
.bracket-round h3 { color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; margin: 2px 0 9px; }
.match-list { display: grid; gap: 8px; }
.match-card { padding: 11px; border: 1px solid var(--line); background: var(--panel-soft); border-radius: 12px; }
.match-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 7px; color: var(--muted); font-size: 8px; }
.duelist { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: 9px; }
.duelist strong { font-variant-numeric: tabular-nums; font-size: 9px; }
.duelist.winner { color: var(--accent-deep); background: var(--accent-soft); font-weight: 760; }.duelist.winner strong { color: var(--accent-deep); }
.versus-line { text-align: center; color: #a3aaa2; font-size: 7px; font-weight: 800; padding: 2px 0; }
.match-winner { margin: 7px 1px 0; color: var(--green); font-size: 8px; }
.match-edit { margin-top: 8px; }

/* Invite and forms */
.invite-link-box { display: flex; gap: 8px; align-items: center; padding: 9px; background: var(--panel-soft); border: 1px solid var(--line); border-radius: 9px; overflow-wrap: anywhere; font-size: 9px; }
.member-list { display: grid; gap: 7px; margin-top: 14px; }
.member-row { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-top: 1px solid var(--line); }
.member-row:last-child { border-bottom: 1px solid var(--line); }
.member-row .member-name { flex: 1; min-width: 0; font-size: 9px; overflow-wrap: anywhere; }
.role-chip { color: var(--muted); background: var(--panel-quiet); }
.app-dialog { width: min(610px, calc(100vw - 30px)); max-height: min(88vh, 840px); padding: 0; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 28px 100px rgba(12,18,15,.3); }
.app-dialog::backdrop { background: rgba(11,16,14,.56); backdrop-filter: blur(4px); }
.dialog-inner { position: relative; max-height: min(88vh,840px); overflow-y: auto; padding: 25px; }
.dialog-close { position: sticky; z-index: 2; top: 0; float: right; margin: -5px -5px 6px 12px; }
.dialog-inner h2 { font-size: 20px; margin: 0 0 6px; }
.dialog-inner .dialog-subtitle { max-width: 500px; color: var(--muted); font-size: 10px; margin-bottom: 16px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.checkbox-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; max-height: 180px; overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-soft); }
.checkbox-option { display: flex !important; align-items: center; gap: 7px !important; padding: 6px; border-radius: 7px; font-size: 8px !important; font-weight: 550 !important; }.checkbox-option:hover { background: var(--panel); }.checkbox-option input { width: 14px !important; min-height: 14px !important; accent-color: var(--accent-deep); }
.detail-dialog-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }.detail-stat { min-width: 0; }.detail-stat small { color: var(--muted); font-size: 8px; }.detail-stat strong { display: block; margin-top: 5px; font-size: 15px; }
.toast { position: fixed; z-index: 40; right: 20px; bottom: 20px; max-width: min(440px,calc(100vw - 30px)); padding: 11px 15px; color: #f3f6f0; background: #1d2822; border: 1px solid #39463d; border-radius: 11px; box-shadow: 0 12px 30px rgba(0,0,0,.2); font-size: 10px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .18s; }.toast.show { opacity: 1; transform: translateY(0); }
.loading-state { padding: 32px; color: var(--muted); text-align: center; font-size: 10px; }
.run-entry-list { display: grid; gap: 10px; max-height: 54vh; overflow-y: auto; padding-right: 3px; }
.run-entry { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }.run-entry legend { padding: 0 6px; font-size: 10px; font-weight: 750; }.run-entry legend small { color: var(--muted); font-size: 8px; font-weight: 500; }
.run-entry-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }.run-entry-grid .field-label { font-size: 8px; }.run-entry-grid input { min-height: 36px; padding: 7px 9px; }.run-entry-grid .field-label:last-child { max-width: 120px; }

/* Mobile navigation */
.mobile-nav { display: none; }

@media (max-width: 1180px) {
  .content-wrap { padding-left: 26px; padding-right: 26px; }
  .topbar { padding-left: 26px; padding-right: 26px; }
  .climber-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: minmax(0,1.05fr) minmax(280px,.95fr); }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 68px minmax(0,1fr); }
  .sidebar { width: 68px; padding: 18px 8px 12px; align-items: center; }
  .brand { padding: 0 0 22px; }.brand > span:last-child, .space-copy, .space-switcher .switch-chevron, .nav-caption, .nav-link:not(.active) span:not(.nav-icon), .nav-link.active span:not(.nav-icon), .user-copy, .signout-button, .sync-indicator > span:last-child { display: none; }
  .space-switcher { width: 45px; height: 45px; justify-content: center; padding: 0; margin: 0 0 22px; }.space-icon { width: 30px; height: 30px; }
  .main-nav { width: 100%; }.nav-link { justify-content: center; padding: 0; }.nav-link.active { box-shadow: inset 0 -3px 0 var(--accent); }.nav-icon { width: 19px; height: 19px; }
  .sidebar-bottom { width: 100%; }.user-card { justify-content: center; padding: 7px 0; border: 0; }.user-avatar { width: 31px; height: 31px; }.sync-indicator { justify-content: center; padding: 9px; }
  .main-area { grid-column: 2; }.content-grid { grid-template-columns: minmax(0,1fr); }.dashboard-grid { grid-template-columns: minmax(0,1fr); }.dashboard-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .auth-screen { gap: 35px; padding-left: 7vw; padding-right: 7vw; }.auth-intro h2 { font-size: 43px; }.wall-lines { right: -8%; transform: scale(.8) rotate(24deg); }
}
@media (max-width: 620px) {
  .auth-screen { grid-template-columns: 1fr; gap: 0; align-content: center; min-height: 100svh; padding: 80px 18px 45px; }
  .auth-intro { display: none; }.auth-brand { left: 20px; top: 18px; font-size: 20px; }.auth-card { justify-self: center; padding: 24px 20px; border-radius: 18px; }.auth-foot { font-size: 8px; bottom: 9px; }
  .workspace-screen { padding: 72px 14px 28px; }.workspace-screen .auth-brand { left: 18px; top: 16px; }
  .app-shell { display: block; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px,84vw); padding: 22px 15px 15px; align-items: stretch; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 18px 0 45px rgba(0,0,0,.2); }
  .sidebar.open { transform: translateX(0); }.sidebar.open .brand > span:last-child, .sidebar.open .space-copy, .sidebar.open .space-switcher .switch-chevron, .sidebar.open .nav-caption, .sidebar.open .nav-link span:not(.nav-icon), .sidebar.open .user-copy, .sidebar.open .signout-button, .sidebar.open .sync-indicator > span:last-child { display: initial; }
  .sidebar.open .space-switcher { width: 100%; height: auto; justify-content: flex-start; padding: 10px; }.sidebar.open .main-nav { width: 100%; }.sidebar.open .nav-link { justify-content: flex-start; padding: 0 11px; }.sidebar.open .nav-link.active { box-shadow: inset 3px 0 0 var(--accent); }.sidebar.open .sidebar-bottom { width: 100%; }.sidebar.open .user-card { justify-content: flex-start; padding: 9px; border: 1px solid #35423b; }
  .main-area { min-height: 100vh; }.topbar { height: 58px; padding: 0 13px; gap: 8px; }.mobile-menu { display: inline-grid; width: 33px; height: 33px; font-size: 15px; }.breadcrumbs { flex: 1; min-width: 0; gap: 6px; font-size: 9px; overflow: hidden; white-space: nowrap; }.breadcrumbs strong { overflow: hidden; text-overflow: ellipsis; }
  .top-actions { gap: 5px; }.live-badge { padding: 6px 7px; font-size: 8px; }.top-actions > .icon-button { width: 32px; height: 32px; }.quick-timing { width: 33px; height: 33px; padding: 0; justify-content: center; border-radius: 9px; }.quick-timing > span:last-child { display: none; }.quick-plus { font-size: 19px; }.invite-button { display: none; }
  .content-wrap { padding: 21px 13px 24px; }.page-heading { align-items: flex-start; margin-bottom: 15px; gap: 9px; }.page-heading h1 { font-size: 25px; }.page-heading .muted { font-size: 9px; }.page-heading > .button { align-self: center; padding: 9px 10px; font-size: 9px; }
  .roster-toolbar { display: grid; gap: 8px; }.search-box { width: 100%; }.roster-hint { font-size: 8px; }.climber-grid { grid-template-columns: 1fr; gap: 8px; }.climber-card { padding: 11px; border-radius: 13px; }.climber-avatar { width: 40px; height: 40px; border-radius: 12px; }
  .dashboard-welcome h1 { font-size: 28px; }.dashboard-banner { display: block; min-height: 0; padding: 19px; border-radius: 17px; margin-bottom: 10px; }.dashboard-banner h2 { font-size: 22px; }.dashboard-banner p { font-size: 9px; }.dashboard-banner:before { right: -140px; }.banner-side { margin-top: 14px; display: flex; justify-content: space-between; align-items: flex-end; min-width: 0; }.banner-side strong { font-size: 25px; text-align: left; }.banner-side small { text-align: left; }.banner-side .text-button { padding: 8px 9px; border-radius: 8px; background: rgba(201,243,106,.1); }
  .dashboard-stats { gap: 8px; margin-bottom: 10px; }.dashboard-stat { padding: 12px; border-radius: 13px; }.dashboard-stat-top { font-size: 8px; }.dashboard-stat-icon { width: 26px; height: 26px; }.dashboard-stat-value strong { font-size: 22px; }.dashboard-stat-foot { font-size: 7px; }
  .dashboard-grid { gap: 10px; }.dashboard-panel { border-radius: 15px; }.dashboard-panel .panel-heading { padding: 14px 14px 11px; }.dashboard-row { padding: 10px 13px; }.dashboard-highlight { padding: 10px 13px; }.quick-actions { grid-template-columns: 1fr; padding: 0 12px 12px; }.quick-action { grid-template-columns: 24px minmax(0,1fr); align-items: center; column-gap: 8px; }.quick-action > span { grid-row: span 2; }.quick-action small { grid-column: 2; }
  .profile-top { align-items: flex-start; flex-direction: column; gap: 12px; }.profile-avatar { width: 53px; height: 53px; border-radius: 15px; }.profile-name-line h1 { font-size: 21px; }.profile-actions { width: 100%; justify-content: flex-start; }.profile-actions .button { flex: 1; padding: 8px 9px; font-size: 9px; }
  .profile-tabs { margin-bottom: 11px; }.tab-button { padding: 8px 11px; font-size: 9px; }.panel { border-radius: 15px; }.panel-heading { padding: 14px 14px 11px; }.profile-details { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 2px 14px 13px; }.sports-note { margin: 0 14px 13px; }
  .metric-grid { gap: 8px; margin-bottom: 10px; }.metric-card { padding: 11px; border-radius: 12px; }.metric-value { font-size: 20px; }.chart-panel { margin-bottom: 10px; }.chart-controls { padding: 0 13px 10px; gap: 6px; }.chart-controls label { min-width: calc(50% - 5px); }.control-select { min-height: 34px; }.chart-wrap { min-height: 180px; padding: 6px 8px 0; }.progress-chart { height: 180px; }.chart-footnote { padding: 9px 13px 11px; }
  .session-list { padding: 0 11px 7px; }.session-row, .session-list .session-row { grid-template-columns: minmax(0,1fr) auto; gap: 6px 10px; padding: 11px 6px; }.session-date { grid-column: 1; font-size: 8px; }.session-row > span:nth-child(2) { grid-column: 1; grid-row: 2; }.session-time { grid-column: 2; grid-row: 1 / span 2; }.session-type { display: none; }
  .competition-table { min-width: 760px; }.competition-table th, .competition-table td { padding: 9px 10px; }.bracket-rounds { grid-template-columns: 1fr; padding: 0 12px 13px; }.detail-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }.comparison-box { padding: 13px; }.comparison-side strong { font-size: 17px; }
  .app-dialog { width: 100%; max-width: none; max-height: 92svh; margin: auto 0 0; border-radius: 20px 20px 0 0; }.dialog-inner { max-height: 92svh; padding: 20px 16px calc(18px + env(safe-area-inset-bottom)); }.form-grid { grid-template-columns: 1fr; gap: 10px; }.form-grid .full { grid-column: auto; }.checkbox-list { grid-template-columns: 1fr; max-height: 35vh; }.run-entry-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.run-entry-grid .field-label:last-child { max-width: none; }
  .mobile-nav { position: fixed; z-index: 11; inset: auto 0 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 0; padding: 6px 4px max(7px,env(safe-area-inset-bottom)); background: color-mix(in srgb,var(--panel) 95%,transparent); border-top: 1px solid var(--line); backdrop-filter: blur(16px); }
  .mobile-nav button { display: grid; justify-items: center; align-content: center; gap: 3px; min-width: 0; min-height: 43px; padding: 3px 2px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-size: 7px; font-weight: 700; }
  .mobile-nav button.active { color: var(--accent-deep); background: var(--accent-soft); }.mobile-nav-icon { font-size: 16px; line-height: 1; }
  .toast { right: 11px; bottom: calc(72px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
