/* SURF360 Surf Tech geometry
   Structural layer only: palette and semantic states remain owned by design-system.css. */
:root {
  --tm-tech-radius: 12px;
  --tm-tech-control-radius: 10px;
  --tm-tech-compact-radius: 8px;
  --tm-tech-touch: 44px;
  --tm-tech-header: 64px;
}

/* Product shell */
.rider-focus-theme .app-header {
  min-height: var(--tm-tech-header);
  padding-inline: clamp(14px, 2vw, 28px);
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}
.rider-focus-theme .app-brand { font-size: 19px; }
.rider-focus-theme .app-nav { align-items: center; gap: 6px; }
.rider-focus-theme .app-nav > a,
.rider-focus-theme .app-nav-menu > summary {
  min-height: var(--tm-tech-touch);
  margin: 0;
  padding: 0 13px;
  border: 1px solid;
  border-radius: var(--tm-tech-control-radius);
}
.rider-focus-theme .nav-color { width: 7px; height: 7px; border-radius: 2px; }
.rider-focus-theme .app-nav-popover {
  top: calc(100% + 10px);
  width: 260px;
  padding: 8px;
  border-radius: var(--tm-tech-radius);
  overflow: hidden;
}
.rider-focus-theme .app-nav-popover > span { padding: 8px 10px 6px; }
.rider-focus-theme .app-nav-popover a {
  min-height: var(--tm-tech-touch);
  padding: 8px 10px;
  border-radius: var(--tm-tech-compact-radius);
}
.rider-focus-theme .account-avatar { width: 40px; height: 40px; flex-basis: 40px; border-radius: var(--tm-tech-control-radius); }
.rider-focus-theme .account-logout { min-width: 40px; min-height: 40px; display: grid; place-items: center; border-radius: var(--tm-tech-control-radius); }
.rider-focus-theme .topbar { top: var(--tm-tech-header); height: 42px; padding-inline: clamp(14px, 2vw, 28px); }
.rider-focus-theme .content { width: min(100%, 1640px); padding: 24px clamp(16px, 2.4vw, 34px) 48px; }

/* Type scale and section rhythm */
.rider-focus-theme h1 { margin-bottom: 20px; font-size: 32px; line-height: 1.08; }
.rider-focus-theme h2 { font-size: 20px; line-height: 1.2; }
.rider-focus-theme h3 { font-size: 16px; line-height: 1.25; }
.rider-focus-theme .coach-dashboard-head,
.rider-focus-theme .rider-profile-hero,
.program-command { gap: 18px; margin-bottom: 12px; padding: 8px 0 18px; }
.rider-focus-theme .section-heading { min-height: 42px; margin-bottom: 14px; padding-bottom: 10px; align-items: center; }
.rider-focus-theme .section-heading > a { min-height: 38px; padding: 8px 11px; display: inline-flex; align-items: center; border-radius: var(--tm-tech-compact-radius); }

/* Work surfaces */
.rider-focus-theme .card,
.rider-focus-theme .kpi,
.rider-focus-theme .fact-box,
.rider-focus-theme .field-form-page,
.rider-focus-theme .coach-work-section,
.rider-focus-theme .rider-section,
.rider-focus-theme .stage-command,
.tenant-program-card,
.program-workflow,
.program-session-zone,
.program-rider-section,
.program-review-strip,
.evaluation-level-card,
.profile-import-banner,
.tenant-branding-card,
.tenant-branding-preview {
  border-radius: var(--tm-tech-radius);
}
.rider-focus-theme .card,
.rider-focus-theme .coach-work-section,
.rider-focus-theme .rider-section { padding: 18px; }
.rider-focus-theme .grid { gap: 10px; }
.rider-focus-theme .grid + .grid,
.rider-focus-theme .grid + .card,
.rider-focus-theme .card + .grid { margin-top: 12px; }
.rider-focus-theme .kpi { min-height: 104px; padding: 15px 16px; }
.rider-focus-theme .kpi .num { font-size: 34px; line-height: 1; }
.rider-focus-theme .kpi .label { margin-top: 10px; }
.rider-focus-theme .stage-command { padding: 18px; border-left-width: 6px; }
.rider-focus-theme .stage-score { min-width: 96px; padding-left: 16px; }

/* Commands and inputs */
.rider-focus-theme .actions { gap: 7px; margin: 12px 0 16px; }
.rider-focus-theme .btn,
.rider-focus-theme button:not(.sidebar-backdrop),
.rider-focus-theme input[type="button"],
.rider-focus-theme input[type="submit"] {
  min-height: var(--tm-tech-touch);
  border-radius: var(--tm-tech-control-radius);
}
.rider-focus-theme .btn { padding: 9px 14px; }
.rider-focus-theme input,
.rider-focus-theme select,
.rider-focus-theme textarea {
  min-height: 46px;
  border-radius: var(--tm-tech-control-radius);
}
.rider-focus-theme textarea { min-height: 108px; }
.rider-focus-theme .tm-form-grid { gap: 16px 12px; }
.rider-focus-theme .tm-form-subgrid { padding: 14px; border-radius: var(--tm-tech-radius); }
.rider-focus-theme .tm-form-actions { gap: 7px; padding-top: 14px; }
.rider-focus-theme .tm-switch-track { border-radius: 16px; }

/* Scanning surfaces */
.rider-focus-theme .table-scroll { border-radius: var(--tm-tech-radius); }
.rider-focus-theme .card > .table-scroll { border-radius: var(--tm-tech-radius); border: 1px solid; }
.rider-focus-theme th { height: 44px; padding: 10px 12px; }
.rider-focus-theme td { min-height: 48px; padding: 11px 12px; }
.rider-focus-theme td .btn { min-height: 40px; padding: 7px 10px; border-radius: var(--tm-tech-compact-radius); }
.rider-focus-theme .badge { padding: 5px 8px; border-radius: var(--tm-tech-compact-radius); }
.rider-focus-theme .notice,
.rider-focus-theme .info,
.rider-focus-theme .success,
.rider-focus-theme .error { border-radius: var(--tm-tech-control-radius); }

/* Context controls follow the segmented Video Coach model */
.rider-focus-theme .tabs { gap: 4px; padding: 4px; border-radius: var(--tm-tech-radius); }
.rider-focus-theme .tabs a {
  min-height: 40px;
  padding: 0 13px;
  border: 0;
  border-radius: var(--tm-tech-compact-radius);
}

/* Rider and programme density */
.rider-focus-theme .coach-rider-grid { gap: 9px; }
.rider-focus-theme .coach-rider-card {
  min-height: 122px;
  padding: 14px;
  border-radius: var(--tm-tech-radius);
}
.rider-focus-theme .coach-rider-card:hover { transform: translateY(-1px); }
.rider-focus-theme .mini-rider-avatar { width: 46px; height: 46px; border-radius: var(--tm-tech-control-radius); }
.rider-focus-theme .rider-avatar { width: 76px; height: 76px; flex-basis: 76px; border-radius: var(--tm-tech-radius); }
.rider-focus-theme .session-agenda > a,
.rider-focus-theme .program-overview-list > a,
.rider-focus-theme .program-list > a { min-height: 58px; padding-block: 10px; }
.rider-focus-theme .attention-list a,
.rider-focus-theme .attention-done { min-height: 58px; padding: 12px; border-radius: var(--tm-tech-control-radius); }
.rider-focus-theme .score-track,
.rider-focus-theme .score-track span,
.rider-focus-theme .goal-mini-progress,
.rider-focus-theme .goal-mini-progress span,
.rider-focus-theme .mini-progress,
.rider-focus-theme .mini-progress span { border-radius: 4px; }

.tenant-program-card { overflow: hidden; }
.tenant-program-main { min-height: 220px; padding: 18px; }
.tenant-program-main h2 { margin: 20px 0 7px; font-size: 23px; }
.tenant-program-actions { padding: 8px; gap: 7px; }
.tenant-program-topline span { border-radius: var(--tm-tech-compact-radius); }
.program-workflow,
.program-session-zone,
.program-review-strip { overflow: hidden; }
.program-workflow > div { min-height: 96px; padding: 13px; }
.program-workflow > div > span { width: 30px; height: 30px; border-radius: var(--tm-tech-control-radius); }
.program-session-picker,
.program-session-launch { padding: 18px; }
.program-session-list a,
.session-launch-primary,
.session-launch-grid a,
.program-rider-card,
.program-review-actions a { border-radius: var(--tm-tech-control-radius); }
.session-launch-primary { min-height: 76px; }
.session-launch-grid a { min-height: 68px; }
.program-rider-section { padding: 18px; }
.program-rider-card { padding: 13px; }
.program-review-strip { padding: 18px; }

/* Live Eval keeps its field-first scale with the same geometry */
.rider-focus-theme .live-tablet,
.rider-focus-theme .live-panel-title,
.rider-focus-theme .live-step,
.rider-focus-theme .lycra-row,
.rider-focus-theme .live-event-log,
.rider-focus-theme .live-edit-mode { border-radius: var(--tm-tech-radius); }
.rider-focus-theme .live-tab,
.rider-focus-theme .lycra-btn,
.rider-focus-theme .color-choice,
.rider-focus-theme .rider-choice,
.rider-focus-theme .type-tab,
.rider-focus-theme .criteria-btn,
.rider-focus-theme .score-choice,
.rider-focus-theme #liveComment,
.rider-focus-theme .big-action,
.rider-focus-theme .previous-score,
.rider-focus-theme .live-color-badge { border-radius: var(--tm-tech-control-radius); }
.rider-focus-theme .live-event-log { overflow: hidden; }
.rider-focus-theme .live-event-score { border-radius: var(--tm-tech-compact-radius); }

/* Authentication */
.tm-login-shell .login-card { border-radius: var(--tm-tech-radius); }
.tm-login-shell .brand-logo,
.tm-login-shell input,
.tm-login-shell .btn,
.tm-login-shell .error { border-radius: var(--tm-tech-control-radius); }

@media (max-width: 900px) {
  :root { --tm-tech-header: 60px; }
  .rider-focus-theme .app-header { min-height: var(--tm-tech-header); padding-inline: 12px; }
  .rider-focus-theme .sidebar-toggle { width: 44px; height: 44px; border-radius: var(--tm-tech-control-radius); }
  .rider-focus-theme .app-nav { top: var(--tm-tech-header); max-height: calc(100vh - var(--tm-tech-header)); padding: 10px; gap: 6px; }
  .rider-focus-theme .app-nav > a,
  .rider-focus-theme .app-nav-menu > summary { min-height: 50px; margin: 0; border-radius: var(--tm-tech-control-radius); }
  .rider-focus-theme .app-nav-popover,
  .rider-focus-theme .app-nav-popover-right { padding: 6px; border-radius: var(--tm-tech-radius); }
  .rider-focus-theme .sidebar-backdrop { inset: var(--tm-tech-header) 0 0; }
  .rider-focus-theme .topbar { top: var(--tm-tech-header); }
}

@media (max-width: 700px) {
  .rider-focus-theme .content { padding: 18px 12px 36px; }
  .rider-focus-theme h1 { font-size: 28px; }
  .rider-focus-theme h2 { font-size: 19px; }
  .rider-focus-theme .kpi { min-height: 96px; padding: 13px; }
  .rider-focus-theme .kpi .num { font-size: 30px; }
  .rider-focus-theme .card,
  .rider-focus-theme .coach-work-section,
  .rider-focus-theme .rider-section,
  .program-session-picker,
  .program-session-launch,
  .program-rider-section,
  .program-review-strip { padding: 14px; }
}

@media print {
  .rider-focus-theme .card,
  .rider-focus-theme .kpi,
  .rider-focus-theme .table-scroll { border-radius: 0; }
}
