/* Calendar-first workspace. Brand colors are centralized for a future rename. */
.gps-panel { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 24px; margin: 24px 0; }
.gps-upload { max-width: 720px; }
.catalog-empty-state { padding: 64px 24px; }
.catalog-empty-state[hidden], [data-catalog-search-target="table"][hidden] { display: none; }
.catalog-empty-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: var(--surface); color: var(--muted); }
.catalog-empty-state h2 { margin: 0 0 8px; font-size: 22px; }
.empty-state-action-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; }
.empty-state-action-button .navigation-icon { width: 18px; height: 18px; }
.gps-table small.gps-match-warning { display: flex; align-items: center; gap: 6px; color: #9a6700; }
.gps-match-warning svg { flex-shrink: 0; }
.gps-table [data-gps-choice-target][hidden] { display: none; }
.gps-processing-spinner { display: block; width: 40px; height: 40px; margin: 0 auto 20px; border: 3px solid var(--line); border-top-color: var(--teal); border-radius: 50%; animation: gps-processing-spin 0.8s linear infinite; }
@keyframes gps-processing-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gps-processing-spinner { animation: none; } }
.gps-field { margin-bottom: 24px; }
.gps-file { display: grid; gap: 12px; border: 1px dashed #9cb7c8; padding: 28px; margin: 24px 0; background: var(--surface); }
.gps-file.is-dragging { border-color: var(--teal); background: #eaf5f2; outline: 2px solid var(--teal); outline-offset: 2px; }
.empty-state.gps-drop-area { position: relative; border-style: dashed; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; text-align: left; }
.gps-page-drop { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; padding: 32px; background: #eaf5f2f5; color: var(--teal); text-align: center; pointer-events: none; }
.gps-page-drop[hidden] { display: none; }
.gps-page-drop::before { content: ""; position: absolute; inset: 16px; border: 3px dashed var(--teal); border-radius: 16px; }
.gps-page-drop strong { font-size: clamp(28px, 5vw, 52px); line-height: 1.15; }
.gps-page-drop span { font-size: 18px; }
.gps-drop-area h2 { font-size: 20px; margin: 0 0 4px; }
.empty-state.gps-drop-area p { margin: 0; max-width: none; font-size: 15px; }
.gps-file-picker { position: relative; flex-shrink: 0; overflow: hidden; margin: 0; }
.gps-file-picker input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.gps-file-picker:focus-within { outline: 2px solid var(--teal); outline-offset: 3px; }
.gps-wizard-open { overflow: hidden; }
.gps-wizard-modal { margin: auto; width: min(1120px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; box-shadow: 0 24px 80px #18304233; }
.gps-wizard-modal::backdrop { background: #18304280; }
.gps-wizard-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 20px 28px; border-bottom: 1px solid var(--line); }
.gps-wizard-heading h2 { margin: 0; font-size: 24px; }
.gps-wizard-heading p { margin: 4px 0 0; }
.gps-wizard-heading button { font-size: 28px; line-height: 1; padding: 4px 8px; }
.gps-wizard-body { overflow-y: auto; max-height: calc(100dvh - 160px); padding: 0 28px 28px; }
.gps-wizard-body turbo-frame { display: block; min-width: 0; }
.gps-wizard-body .error-summary { margin: 24px 0 32px; }
.gps-wizard-body .page-heading { margin: 20px 0; }
.gps-wizard-body .page-heading h1 { font-size: 20px; overflow-wrap: anywhere; }
.gps-wizard-body .page-heading a[href$="/gps_imports"] { display: none; }
.gps-wizard-body .gps-upload { max-width: none; border: 0; padding: 0; }
.gps-wizard-body .gps-steps { position: sticky; top: 0; z-index: 1; background: white; margin-top: 0; gap: 18px; overflow-x: auto; }
.gps-wizard-body .gps-steps li { flex-shrink: 0; }
.gps-wizard-body .gps-file { padding: 20px; }
[data-gps-wizard-target="resume"][hidden] { display: none; }
@media (max-width: 700px) {
  .empty-state.gps-drop-area { flex-direction: column; align-items: flex-start; padding: 20px; gap: 16px; }
  .gps-wizard-modal { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .gps-wizard-heading { padding: 16px; }
  .gps-wizard-heading p { font-size: 14px; }
  .gps-wizard-body { padding: 0 16px 16px; max-height: calc(100dvh - 140px); }
}
.gps-drop-area form { max-width: 620px; margin: 24px auto 0; }
.gps-drop-area input { max-width: 100%; min-width: 0; }
.gps-drop-area [role="status"] { overflow-wrap: anywhere; }
.gps-drop-area .gps-file-error { color: #a12424; }
.gps-upload-details { text-align: left; margin-top: 24px; }
.gps-upload-details[hidden] { display: none; }
.gps-file:focus-within { border-color: var(--teal); }
.gps-file input { max-width: 100%; min-width: 0; }
.gps-file [role="status"] { overflow-wrap: anywhere; }
.gps-file [role="status"]:empty { display: none; }
.gps-file .gps-file-error { color: #a12424; }
.gps-steps { display: flex; list-style: none; padding: 0; margin: 24px 0 32px; border-bottom: 1px solid var(--line); gap: 24px; }
.gps-steps li { display: flex; align-items: center; gap: 8px; padding: 12px 0; color: var(--muted); border-bottom: 3px solid transparent; }
.gps-steps li[aria-current] { color: var(--teal); border-color: var(--teal); font-weight: 650; }
.gps-steps span { font-size: 14px; }
.gps-steps a { color: inherit; text-underline-offset: 4px; }
.gps-back { margin-bottom: 20px; }
.gps-table-wrap { overflow-x: auto; margin: 20px 0 32px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.gps-table { width: 100%; border-collapse: collapse; text-align: left; }
.gps-table th { color: var(--muted); background: var(--surface); font-weight: 600; }
.gps-table th, .gps-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.gps-table tr:last-child td { border-bottom: 0; }
.gps-table select { min-width: 180px; max-width: 520px; }
.gps-table small { display: block; max-width: 360px; margin-top: 4px; }
.gps-status { color: var(--teal); font-weight: 600; }
.gps-sheet-picker { display: flex; gap: 16px; align-items: end; margin: 24px 0; flex-wrap: wrap; }
.gps-sheet-picker > div { flex: 1; min-width: 140px; }
.gps-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gps-new-fields { display: grid; gap: 8px; min-width: 200px; }
.gps-session { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 20px; background: white; padding: 20px; border: 1px solid var(--line); margin-bottom: 12px; border-radius: 10px; }
.gps-session > .gps-form-grid { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; }
.gps-new-fields[hidden], .gps-form-grid[hidden] { display: none; }
.gps-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 24px 0; }
.gps-footer p { max-width: 560px; margin: 0; }
.gps-check { display: flex; align-items: center; gap: 10px; margin: 18px 0; }
.gps-summary { display: flex; flex-wrap: wrap; gap: 24px 40px; margin: 24px 0; }
.gps-summary dt { color: var(--muted); font-size: 14px; }
.gps-summary dd { font-size: 26px; font-weight: 650; margin: 0; }
.gps-warning { padding: 16px; border-left: 3px solid var(--amber); background: #fffbf4; }
@media (max-width: 700px) {
  .gps-steps { gap: 12px; font-size: 13px; overflow-x: auto; }
  .gps-steps li { flex-shrink: 0; }
  .gps-form-grid, .gps-session { grid-template-columns: 1fr; }
  .gps-footer { flex-direction: column; align-items: stretch; }
  .gps-panel { padding: 16px; }
}
:root{
  --ink:#183042;
  --muted:#576d7e;
  --blue:#184e77;
  --teal:#16756b;
  --line:#dce7ee;
  --surface:#f7fafc;
  --amber:#aa6100;
  --radius:10px
}
*{
  box-sizing:border-box
}
body{
  margin:0;
  color:var(--ink);
  background:var(--surface);
  font-family:"Source Sans 3",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:16px;
  line-height:1.5
}
a{
  color:var(--blue);
  text-underline-offset:3px
}
button,input,select,textarea{
  font:inherit
}
button,a,input,select,textarea{
  touch-action:manipulation
}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{
  outline:3px solid #3c95c9;
  outline-offset:3px
}
h1,h2,h3,p{
  margin-top:0
}
h1{
  font-size:32px;
  line-height:1.2;
  letter-spacing:-.8px;
  margin-bottom:8px;
  font-weight:700
}
h2{
  font-size:22px;
  font-weight:650;
  margin-bottom:12px
}
h3{
  font-size:16px;
  font-weight:650;
  margin-bottom:4px
}
small,.muted{
  color:var(--muted)
}
small{
  font-size:13px
}
.app-header{
  height:80px;
  background:white;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 40px;
  gap:20px
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--ink);
  font-size:23px;
  font-weight:750;
  letter-spacing:-.7px
}
.brand img{
  flex-shrink:0
}
.account-nav{
  display:flex;
  align-items:center;
  gap:24px;
  font-size:14px
}
.account-nav span small{
  display:block
}
.text-button{
  background:none;
  border:0;
  color:var(--muted);
  cursor:pointer;
  padding:8px
}
.private-label{
  color:var(--muted);
  font-size:14px
}
.workspace-bar{
  display:flex;
  align-items:center;
  gap:36px;
  background:white;
  padding:0 40px;
  border-bottom:1px solid var(--line);
  min-height:66px
}
.team-switcher{
  position:relative;
  min-width:220px
}
.team-switcher summary{
  display:flex;
  gap:12px;
  align-items:center;
  font-weight:650;
  cursor:pointer;
  list-style:none;
  padding:12px 0
}
.team-menu{
  position:absolute;
  z-index:10;
  top:100%;
  left:0;
  min-width:240px;
  background:white;
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:0 8px 24px #18304215;
  padding:8px
}
.team-menu a{
  display:block;
  padding:10px;
  text-decoration:none
}
.team-menu a:hover{
  background:var(--surface)
}
.workspace-nav{
  display:flex;
  align-self:stretch;
  gap:28px
}
.workspace-nav a{
  display:flex;
  align-items:center;
  text-decoration:none;
  color:var(--muted);
  border-bottom:3px solid transparent;
  font-size:15px
}
.workspace-nav a.selected{
  border-color:var(--teal);
  color:var(--ink);
  font-weight:650
}
.team-avatar{
  width:30px;
  height:30px;
  object-fit:contain
}
.page{
  max-width:1560px;
  margin:auto;
  padding:36px 40px 80px
}
.page-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px
}
.page-heading h1{
  font-size:24px;
  line-height:1.2;
  letter-spacing:-.4px;
  margin-bottom:4px
}
.page-heading p{
  margin-bottom:0;
  font-size:14px;
  line-height:1.35
}
.page-heading > div:has(h1) > a:not(.button){
  font-size:13px;
  line-height:1.3
}
.heading-actions,.form-actions{
  display:flex;
  gap:12px;
  align-items:center
}
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  padding:10px 18px;
  border:1px solid transparent;
  border-radius:7px;
  font-weight:600;
  font-size:14px;
  text-decoration:none;
  cursor:pointer;
  white-space:normal
}
.primary{
  background:var(--blue);
  color:white
}
.primary:hover{
  background:#123f62
}
.secondary{
  background:white;
  border-color:var(--line);
  color:var(--ink)
}
.secondary:hover{
  border-color:#93abbc
}
.danger{
  color:#9c3232;
  background:white;
  border-color:#dfbcbc
}
.full{
  width:100%
}
.flash{
  border:1px solid #b7d6ce;
  background:#edf7f3;
  border-radius:8px;
  padding:14px 18px;
  margin-bottom:24px
}
.flash.alert,.error-summary{
  border:1px solid #e3b7b0;
  background:#fff5f3;
  color:#842b20;
  border-radius:8px;
  padding:16px;
  margin-bottom:20px
}
.error-summary h2{
  font-size:17px
}
.error-summary ul{
  padding-left:24px;
  margin:0
}
.form-heading,.form-panel,.archive-section{
  max-width:760px;
  margin-left:auto;
  margin-right:auto
}
.form-heading{
  margin-bottom:24px
}
.form-panel{
  background:white;
  border:1px solid var(--line);
  padding:28px;
  border-radius:var(--radius);
  margin-bottom:24px
}
.physical-training-settings { max-width: 900px; margin-left: 0; margin-right: auto; }
.field{
  margin-bottom:22px
}
.field label{
  display:block;
  font-size:14px;
  font-weight:650;
  margin-bottom:7px
}
.field small{
  display:block;
  margin-top:6px
}
input:not([type=checkbox]):not([type=submit]),select,textarea{
  width:100%;
  background:white;
  border:1px solid #bdcdd9;
  border-radius:6px;
  padding:10px 12px;
  color:var(--ink);
  min-height:43px
}
select:not([multiple]):not([size]), select[size="1"] {
  appearance:none;
  -webkit-appearance:none;
  padding-right:42px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23183042' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:16px 16px;
}
textarea{
  resize:vertical
}
input[type=file]{
  font-size:14px
}
input[type=file]::file-selector-button{
  background:var(--surface);
  border:1px solid var(--line);
  padding:5px 10px;
  border-radius:4px;
  margin-right:12px
}
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px
}
.form-note{
  font-size:14px;
  color:var(--muted);
  margin-bottom:22px
}
.form-actions{
  margin-top:24px;
  padding-top:20px;
  border-top:1px solid var(--line)
}
.back-link{
  display:inline-block;
  font-size:14px;
  margin-bottom:16px
}
.auth-page{
  max-width:560px;
  padding-top:55px
}
.auth-intro{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  margin-bottom:28px;
}
.auth-intro .pitch-mark{
  margin:0 auto 20px;
}
.auth-intro h1{
  width:100%;
  margin:0;
  text-align:center;
  font-size:28px;
}
.auth-panel{
  background:white;
  border:1px solid var(--line);
  border-radius:14px;
  padding:36px
}
.auth-panel h1{
  font-size:28px
}
.auth-panel .field{
  margin-bottom:18px
}
.auth-note{
  text-align:center;
  font-size:14px;
  color:var(--muted);
  margin:25px 0 0;
  border-top:1px solid var(--line);
  padding-top:22px
}
.auth-footer{
  text-align:center;
}
.password-recovery-heading {
  margin-bottom:28px;
}
.password-recovery-heading h1 {
  margin-bottom:12px;
}
.password-recovery-heading p {
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:1.55;
}
.password-recovery-form {
  display:grid;
  gap:24px;
}
.password-recovery-form .field {
  margin:0;
}
.password-recovery-form input[type=email]:focus-visible {
  border-color:var(--blue);
  outline:2px solid #3c95c9;
  outline-offset:2px;
}
.password-recovery-footer {
  margin-top:24px;
  padding-top:20px;
  border-top:1px solid var(--line);
  text-align:center;
  font-size:14px;
}
.password-recovery-footer a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  font-weight:600;
  text-decoration:none;
}
.password-recovery-footer a:hover {
  text-decoration:underline;
}
.recovery-link{
  display:block;
  text-align:center;
  font-size:14px;
  margin-top:18px
}
.check{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  margin:18px 0
}
.check input{
  width:16px;
  height:16px
}
.pitch-mark{
  width:90px;
  height:60px;
  border:2px solid #9dbdbb;
  position:relative;
  border-radius:6px;
  margin:0 0 28px;
  background:#f4f9f8
}
.pitch-mark:before{
  content:"";
  position:absolute;
  left:50%;
  top:0;
  bottom:0;
  width:2px;
  background:#9dbdbb
}
.pitch-mark div{
  position:absolute;
  width:24px;
  height:24px;
  border:2px solid #9dbdbb;
  border-radius:50%;
  left:calc(50% - 11px);
  top:calc(50% - 12px);
  background:#f4f9f8
}
.empty-state{
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:55px 28px;
  text-align:center
}
.empty-state p{
  max-width:520px;
  color:var(--muted);
  margin:0 auto 24px
}
.empty-state .pitch-mark{
  margin:0 auto 24px
}
.filters{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:24px
}
.filters>div:first-child{
  max-width:330px;
  flex:1
}
.filters select{
  width:auto;
  max-width:230px
}
.table-wrap{
  overflow-x:auto;
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius)
}
table{
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:14px
}
th{
  font-weight:600;
  color:var(--muted);
  background:#f0f5f8;
  padding:13px 20px;
  border-bottom:1px solid var(--line)
}
td{
  padding:17px 20px;
  border-bottom:1px solid var(--line)
}
tbody tr:last-child td{
  border-bottom:0
}
tbody tr:hover{
  background:#f9fbfd
}
.player-link{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  color:var(--ink)
}
.avatar{
  width:42px;
  height:42px;
  border-radius:50%;
  object-fit:cover;
  flex-shrink:0
}
.initials{
  background:#e9f1f6;
  color:var(--blue);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:600
}
.badge{
  display:inline-block;
  border-radius:4px;
  padding:3px 7px;
  font-size:12px;
  font-weight:650;
  white-space:nowrap
}
.position{
  background:#edf3f8;
  color:var(--blue)
}
.position-name{
  margin-left:10px;
  font-size:13px;
  color:var(--muted)
}
.profile-photo{
  width:90px;
  height:90px;
  border-radius:14px;
  object-fit:cover;
  font-size:26px;
  margin-bottom:8px
}
.player-profile{
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:32px;
  max-width:none;
  width:100%
}
.profile-header{
  display:flex;
  align-items:center;
  gap:24px;
  margin-bottom:28px
}
.profile-header .button{
  margin-left:auto
}
.profile-details{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
  margin:0;
  padding-top:24px;
  border-top:1px solid var(--line)
}
dt{
  font-size:14px;
  color:var(--muted);
  margin-bottom:8px
}
dd{
  margin:0;
  font-size:17px;
  font-weight:600
}
.archive-section{
  margin-top:40px;
  color:var(--muted);
  font-size:14px
}
.archive-section h2{
  font-size:18px;
  color:var(--ink)
}
.plain-list{
  list-style:none;
  margin:12px 0;
  padding:0
}
.plain-list li{
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:12px 0;
  border-bottom:1px solid var(--line)
}
.calendar-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px
}
.date-navigation{
  display:flex;
  gap:8px
}
.view-switcher{
  display:flex;
  background:#eaf0f5;
  border:1px solid var(--line);
  border-radius:8px;
  padding:3px
}
.view-switcher a{
  padding:6px 15px;
  text-decoration:none;
  color:var(--muted);
  border-radius:5px;
  font-size:14px
}
.view-switcher a.selected{
  background:white;
  color:var(--ink);
  box-shadow:0 1px 3px #18304212
}
.planning-nav{
  display:flex;
  flex-wrap:wrap;
  gap:24px;
  font-size:14px;
  margin-bottom:22px
}
.planning-nav a{
  color:var(--muted)
}
.planning-note{
  background:#fff8eb;
  border:1px solid #ebd6b4;
  color:#855000;
  padding:12px 16px;
  border-radius:6px;
  margin-bottom:20px;
  font-size:14px
}
.calendar{
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden
}
.period-bands{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:4px 0;
  padding:8px 0;
  border-bottom:1px solid var(--line);
  background:#fbfdfe
}
.period-band{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  padding:5px 10px;
  border-left:3px solid var(--teal);
  background:#ecf6f3;
  color:#145c53
}
.period-band.cycle{
  background:#edf2f8;
  border-color:var(--blue);
  color:var(--blue)
}
.period-band.cycle a{
  font-weight:650;
  text-decoration:none
}
.period-band small{
  margin-left:12px;
  font-size:11px
}
.period-band.off_season{
  background:#f2f1fa;
  border-color:#756297;
  color:#5e4b80
}
.period-band.pre_season{
  background:#f9f2e5;
  border-color:#aa6100;
  color:#88560f
}
.day-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr))
}
.calendar-day{
  min-width:0;
  border-right:1px solid var(--line);
  min-height:350px;
  padding:12px 8px 20px
}
.calendar-day:last-child{
  border-right:0
}
.calendar-day header{
  padding:0 5px 12px
}
.calendar-day time{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  color:var(--muted);
  font-size:13px
}
.calendar-day time strong{
  font-size:20px;
  color:var(--ink);
  font-variant-numeric:tabular-nums;
  width:32px;
  height:32px;
  text-align:center;
  line-height:32px
}
.calendar-day.today{
  background:#f5faff
}
.today time strong{
  border-radius:50%;
  background:var(--blue);
  color:white
}
.day-context{
  font-size:11px;
  color:var(--muted);
  padding:0 5px 10px
}
.day-context span{
  display:block;
  font-weight:600;
  color:var(--blue)
}
.event{
  border-left:3px solid var(--teal);
  background:#f8fbfa;
  border-radius:3px 7px 7px 3px;
  padding:10px;
  margin-bottom:10px;
  overflow-wrap:anywhere
}
.event.training{
  border:1px solid #cddfd9;
  border-left:3px solid var(--teal);
  box-shadow:0 2px 4px #1830420d
}
.event.match{
  border-color:var(--blue);
  background:#eaf2fb
}
.event.rest{
  border-color:#9ea9b4;
  background:#f1f4f6
}
.event-meta{
  font-size:11px;
  color:var(--muted);
  display:flex;
  gap:6px;
  justify-content:space-between;
  margin-bottom:7px;
  font-variant-numeric:tabular-nums
}
.event h3{
  font-size:13px;
  line-height:1.35
}
.event.match h3{
  padding-right:28px;
}
.event h3 a{
  color:var(--ink);
  text-decoration:none
}
.event h3 a:hover{
  text-decoration:underline
}
.event p{
  font-size:12px;
  color:var(--muted);
  margin:5px 0
}
.match-context{
  display:block;
  font-size:10px;
  margin-top:8px;
  color:var(--muted)
}
.unassigned{
  font-size:10px;
  background:#fff0d5;
  color:#855000;
  margin-top:5px
}
.no-events{
  font-size:12px;
  color:#738796;
  padding:12px 5px
}
.calendar.month .calendar-day{
  min-height:170px
}
.calendar.month .event{
  padding:6px
}
.calendar.month .match-context,.calendar.month .day-context span{
  display:none
}
.calendar-week+.calendar-week{
  border-top:1px solid var(--line)
}
.calendar.agenda .period-bands{
  display:none
}
.calendar.agenda .day-grid{
  display:block
}
.calendar.agenda .calendar-day{
  display:grid;
  grid-template-columns:90px 150px 1fr;
  min-height:100px;
  border-right:0;
  border-bottom:1px solid var(--line);
  gap:16px;
  padding:20px
}
.calendar.agenda .day-events{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:12px
}
.calendar.agenda .event{
  margin: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
}
.skip-link{
  position:absolute;
  top:-80px;
  left:20px;
  background:white;
  padding:12px;
  z-index:100
}
.skip-link:focus{
  top:10px
}
[hidden]{
  display:none!important
}
@media(max-width:1100px){
  .page{
    padding:28px 24px 60px
  }
  .app-header,.workspace-bar{
    padding-left:24px;
    padding-right:24px
  }
  .position-name{
    display:none
  }
  .calendar-day{
    padding:10px 5px
  }
  .event{
    padding:8px
  }
  .workspace-bar{
    gap:24px
  }
  .team-switcher{
    min-width:180px
  }
}
@media(max-width:760px){
  h1{
    font-size:27px
  }
  .app-header{
    height:68px;
    padding:0 16px
  }
  .brand{
    font-size:20px;
    gap:5px
  }
  .brand img{
    width:34px;
    height:34px
  }
  .account-nav{
    gap:8px
  }
  .account-nav>span{
    display:none
  }
  .private-label{
    font-size:12px
  }
  .page{
    padding:24px 16px 50px
  }
  .workspace-bar{
    display:block;
    padding:0 16px
  }
  .team-switcher{
    min-width:0;
    width:100%
  }
  .workspace-nav{
    gap:28px;
    height:46px
  }
  .workspace-nav a{
    font-size:14px
  }
  .page-heading{
    align-items:flex-start;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:14px
  }
  .page-heading h1{
    font-size:22px
  }
  .heading-actions{
    width:100%
  }
  .heading-actions .button{
    flex:1
  }
  .calendar-toolbar{
    align-items:flex-start;
    flex-wrap:wrap;
    gap:14px
  }
  .date-navigation .button{
    padding:8px 12px;
    min-height:38px
  }
  .view-switcher a{
    padding:6px 12px
  }
  .planning-nav{
    gap:12px 18px;
    font-size:13px
  }
  .period-bands{
    display:none
  }
  .day-grid{
    display:block
  }
  .calendar-day,.calendar.agenda .calendar-day{
    display:block;
    min-height:0;
    padding:15px;
    border-right:0;
    border-bottom:1px solid var(--line)
  }
  .calendar-day header{
    padding:0 0 8px
  }
  .calendar-day time{
    justify-content:flex-start;
    gap:12px
  }
  .calendar-day .day-context{
    display:block;
    padding:0 0 12px
  }
  .calendar.month .calendar-day{
    min-height:0
  }
  .calendar.month .day-context span{
    display:block
  }
  .calendar.agenda .day-events{
    display:block
  }
  .calendar.agenda .event{
    margin-bottom:10px
  }
  .event{
    padding:12px;
    margin-bottom:10px
  }
  .event h3{
    font-size:14px
  }
  .event-meta,.event p{
    font-size:13px
  }
  .match-context{
    font-size:12px
  }
  .no-events{
    padding:0;
    margin:0
  }
  .form-grid{
    grid-template-columns:1fr;
    gap:0
  }
  .form-panel{
    padding:22px
  }
  .form-actions{
    flex-wrap:wrap
  }
  .form-actions .button{
    flex:1
  }
  .auth-page{
    padding-top:30px
  }
  .auth-panel{
    padding:26px
  }
  .auth-panel h1{
    font-size:26px
  }
  .filters{
    flex-wrap:wrap
  }
  .filters>div:first-child{
    max-width:none;
    flex-basis:100%
  }
  .filters select{
    max-width:none
  }
  .filters>div:nth-child(2){
    flex:1
  }
  .table-wrap{
    border-radius:7px
  }
  td,th{
    padding:12px
  }
  .roster-table th:nth-child(4),.roster-table th:nth-child(5),.roster-table td:nth-child(4),.roster-table td:nth-child(5){
    display:none
  }
  .avatar{
    width:34px;
    height:34px
  }
  .player-link{
    gap:8px
  }
  .player-profile{
    padding:22px
  }
  .profile-header{
    flex-wrap:wrap;
    gap:14px
  }
  .profile-header .button{
    margin-left:0
  }
  .profile-header h1{
    font-size:25px
  }
  .profile-details{
    grid-template-columns:1fr 1fr;
    gap:24px
  }
  .profile-photo{
    width:70px;
    height:70px
  }
  .empty-state{
    padding:40px 20px
  }
}

.auth-notifications {
  margin-top:24px;
}

/* Viewport workspace: navigation and account live beside one scrollable surface. */
body.has-sidebar { --sidebar-width: 232px; height: 100dvh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); padding: 8px 8px 8px 0; overflow: hidden; background: #eff0f1; font-size: 14px; }
.has-sidebar > .page { min-width: 0; min-height: 0; width: 100%; height: 100%; max-width: none; margin: 0; padding: 24px 28px 40px; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; background: #fbfcfd; border: 1px solid #dfe3e6; border-radius: 12px; box-shadow: 0 1px 3px #18304208; }
.has-sidebar .page-heading { gap: 12px; margin-bottom: 20px; }
.has-sidebar .page-heading h1 { font-size: 22px; letter-spacing: -.5px; }
.has-sidebar .page-heading p { font-size: 13px; }
.has-sidebar h2 { font-size: 18px; }
.has-sidebar h3 { font-size: 13px; }
.has-sidebar .button { min-height: 34px; padding: 7px 12px; font-size: 13px; border-radius: 6px; }
.has-sidebar input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]):not([type=submit]), .has-sidebar select { min-height: 36px; padding: 7px 10px; font-size: 14px; }
.has-sidebar textarea { font-size: 14px; padding: 9px 10px; }
.app-sidebar { position: relative; inset: auto; width: auto; min-height: 0; display: flex; flex-direction: column; border: 0; background: transparent; z-index: 30; }
.sidebar-header { padding: 10px 14px 14px; position: relative; flex-shrink: 0; }
.sidebar-workspace { min-width: 0; }
.sidebar-header .team-switcher { min-width: 0; }
.sidebar-header .team-switcher summary { padding: 7px 8px; gap: 8px; border-radius: 6px; font-size: 13px; line-height: 1.3; }
.sidebar-header .team-switcher summary:hover { background: #e5e8ea; }
.sidebar-header .team-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.sidebar-header .team-chevron { flex-shrink: 0; }
.sidebar-header .team-avatar, .sidebar-header .identity-avatar { width: 26px; height: 26px; padding: 2px; border-radius: 5px; object-fit: contain; background: #e3e8eb; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sidebar-header .team-menu { top: calc(100% + 5px); min-width: 224px; max-width: calc(100vw - 32px); z-index: 40; }
.sidebar-header .team-menu a { padding: 8px 10px; font-size: 13px; border-radius: 4px; }
.sidebar-menu { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.sidebar-content { padding: 0 12px 14px; }
.app-sidebar .workspace-nav { flex-direction: column; gap: 3px; height: auto; }
.app-sidebar .workspace-nav a { min-height: 34px; padding: 6px 10px; border: 0; border-radius: 6px; font-size: 13px; color: #55616c; }
.app-sidebar .workspace-nav a:hover { background: #e6e8ea; color: var(--ink); }
.app-sidebar .workspace-nav a.selected { background: #e1e5e7; color: var(--ink); font-weight: 600; }
.app-sidebar .navigation-icon { width: 17px; height: 17px; }
.sidebar-settings, .sidebar-internal { margin-top: 20px; padding: 0; border: 0; }
.sidebar-settings h2 { margin: 0 0 5px; padding: 7px 10px; color: #77818a; font-size: 11px; font-weight: 600; }
.sidebar-settings h2 .navigation-icon { width: 14px; height: 14px; }
.sidebar-settings-links { margin: 0; padding: 0; }
.sidebar-account { position: relative; flex-shrink: 0; margin: 0 12px; padding: 10px 0 2px; border-top: 1px solid #dfe3e6; }
.account-switcher > summary { display: flex; align-items: center; gap: 9px; padding: 8px; cursor: pointer; border-radius: 7px; list-style: none; }
.account-switcher > summary::-webkit-details-marker { display: none; }
.account-switcher > summary:hover, .account-switcher[open] > summary { background: #e2e6e8; }
.identity-avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: #dfe6e9; color: #61717d; object-fit: cover; }
.sidebar-account-name { min-width: 0; flex: 1; }
.sidebar-account-name strong, .sidebar-account-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account-name strong { font-size: 13px; font-weight: 600; }
.sidebar-account-name small { font-size: 11px; color: #7c8690; }
.account-chevron { flex-shrink: 0; }
.sidebar-account-menu { position: absolute; z-index: 40; bottom: calc(100% + 6px); left: 0; width: 232px; max-width: calc(100vw - 32px); padding: 6px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 30px #1830421f; }
.sidebar-account-menu p { padding: 8px; margin: 0 0 4px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.sidebar-account-menu a, .sidebar-account-menu button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 8px; border: 0; border-radius: 4px; text-decoration: none; font-size: 13px; background: white; color: var(--ink); text-align: left; cursor: pointer; }
.sidebar-account-menu a:hover, .sidebar-account-menu button:hover { background: #f0f3f5; }
.sidebar-account-menu form { margin: 0; }
.workspace-mobile-bar, .sidebar-close, .workspace-backdrop, .sidebar-toggle { display: none; }
@media (max-width: 760px) {
  body.has-sidebar { grid-template-columns: minmax(0, 1fr); grid-template-rows: 48px minmax(0, 1fr); padding: 0 6px 6px; gap: 0; }
  .has-sidebar > .page { padding: 18px 16px 32px; border-radius: 9px; }
  .workspace-mobile-bar { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 4px 8px; }
  .workspace-mobile-bar > span { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sidebar-toggle, .sidebar-close { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 8px; background: transparent; border: 0; border-radius: 5px; color: var(--ink); cursor: pointer; }
  .app-sidebar { position: fixed; inset: 0 auto 0 0; width: min(272px, calc(100vw - 48px)); background: #eff0f1; transform: translateX(-100%); visibility: hidden; z-index: 60; box-shadow: 4px 0 24px #18304220; }
  .navigation-open .app-sidebar { transform: none; visibility: visible; }
  .sidebar-header { padding-top: 12px; min-height: 58px; }
  .sidebar-header .sidebar-workspace { padding-right: 30px; }
  .sidebar-close { position: absolute; right: 8px; top: 10px; }
  .app-sidebar .workspace-nav a { min-height: 40px; }
  .workspace-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 50; background: #18304255; border: 0; }
}

.navigation-icon { flex-shrink: 0; }
.home-away-icon { display:inline-flex; align-items:center; justify-content:center; vertical-align:middle; }
.home-away-icon .navigation-icon { width:18px; height:18px; }
.home-away-icon.away { color:var(--blue); }
.home-away-icon.home { color:var(--teal); }
.match-home-away { display:inline-flex; align-items:center; }
.app-sidebar .workspace-nav a, .sidebar-settings h2, .sidebar-content > a { display: flex; align-items: center; gap: 10px; }

.calendar-month-heading { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.calendar-month-heading h1 { margin: 0; }
.calendar-icon-button { width: 40px; min-height: 40px; padding: 8px; }
.calendar-toolbar { justify-content: flex-end; align-items: center; }
.season-modal { margin: auto; width: min(800px, calc(100% - 32px)); max-height: 90dvh; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; padding: 28px; color: var(--ink); }
.season-modal::backdrop { background: #18304266; }
.season-modal-heading { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; margin-bottom: 20px; }
.season-modal-heading h2 { margin: 0; }
.season-period-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr 32px; gap: 12px; align-items: center; }
.season-builder .form-note { margin-bottom: 20px; }
@media (max-width: 760px) { .season-period-row { grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); margin-bottom: 16px; } .season-modal { padding: 20px; } .calendar-month-heading { gap: 12px; } }



.player-position-badges { display: inline-flex; align-items: center; gap: 6px; }
.position-name-input { display: flex; align-items: center; gap: 12px; }
.position-name-input input { flex: 1; min-width: 0; }
.position-name-input .button { flex-shrink: 0; white-space: nowrap; }
.country-flag { display: inline-block; margin-right: 5px; font-size: 18px; vertical-align: middle; }
.player-age { margin-left: 4px; color: var(--muted); }

.shirt-number {
  display: inline-block;
  min-width: 2ch;
  font-family: "Impact", "Haettenschweiler", "Arial Narrow", sans-serif;
  font-size: 28px;
  font-weight: 900;
  font-stretch: condensed;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1;
  letter-spacing: .5px;
  color: var(--blue);
  text-align: center;
}

.profile-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-wrap: wrap; }
.profile-header .profile-actions .button { margin-left: 0; }
.confirmation-modal { margin: auto; width: min(480px, calc(100% - 32px)); max-height: 90dvh; overflow-y: auto; padding: 28px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
.confirmation-modal::backdrop { background: #18304266; }
.confirmation-modal p { color: var(--muted); margin-bottom: 24px; }
@media (max-width: 760px) { .profile-actions { width: 100%; margin-left: 0; } }


.players-catalog { min-width: 640px; }
.players-catalog th:first-child, .players-catalog td:first-child { width: 80px; }
.players-catalog .shirt-number { font-size: 18px; }
.player-table-identity { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; text-decoration: none; }
.player-table-identity:hover { color: var(--blue); }
.players-catalog .squad-photo { width: 36px; height: 36px; border-radius: 50%; }
.player-table-position { display: inline-flex; align-items: center; gap: 8px; }
.squad-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.squad-identity h3 { font-size: 18px; margin: 0 0 8px; overflow-wrap: anywhere; }
.squad-photo { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.squad-detail { font-size: 14px; }
.squad-detail > .muted { display: block; font-size: 12px; margin-bottom: 8px; }
.squad-actions { display: flex; align-items: center; gap: 8px; }
.player-editor-modal { margin: auto; width: min(700px, calc(100% - 32px)); max-height: 90dvh; overflow: auto; border: 1px solid var(--line); border-radius: 14px; padding: 28px; color: var(--ink); }
.player-editor-modal::backdrop { background: #18304266; }
.player-editor-modal .form-panel { padding: 0; margin: 0; border: 0; max-width: none; }
@media (max-width: 760px) { .player-editor-modal { padding: 20px; } }

.player-placeholder { display: flex; align-items: center; justify-content: center; background: #eaf1f5; color: #607d8f; }
.player-placeholder .navigation-icon { width: 32px; height: 32px; }

dialog .form-actions { justify-content: flex-end; }
dialog .form-actions > .archive-action { margin-right: auto; }
dialog .form-actions .button { flex: 0 0 auto; }

.account-identity { color: var(--ink); text-decoration: none; border-radius: 6px; }
.account-identity:hover .account-name { text-decoration: underline; }
.account-photo { object-fit: cover; }
.account-password { margin-top: 28px; }

.team-settings-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.team-settings-columns .form-panel { width: 100%; max-width: none; margin: 0; }
.staff-contact-group { margin-top: 28px; }
.staff-contact-group h3 { font-size: 15px; margin-bottom: 12px; }
.staff-contact { display: flex; flex-direction: column; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; font-size: 14px; }
@media (max-width: 900px) { .team-settings-columns { grid-template-columns: 1fr; } }

.account-settings-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.account-settings-columns .form-panel { width: 100%; max-width: none; margin: 0; }
.account-settings-columns .form-actions { justify-content: flex-end; }
@media (max-width: 900px) { .account-settings-columns { grid-template-columns: 1fr; } }

.back-chevron { display: inline-block; font-size: 1.3em; line-height: 1; margin-right: 4px; vertical-align: -0.03em; }
.staff-contact { flex-direction: row; align-items: flex-start; gap: 14px; }
.staff-contact-avatar { flex-shrink: 0; }
.staff-contact-details { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.staff-contact-avatar .navigation-icon { width: 22px; height: 22px; }

.season-period-management { margin-top: 28px; }
.managed-period { border-bottom: 1px solid var(--line); padding: 20px 0; margin-bottom: 20px; }
.managed-period > .button_to { margin-top: 8px; }

.season-settings-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.season-settings-columns .form-panel { width: 100%; max-width: none; margin: 0; }
.season-settings-columns .archive-section { max-width: none; margin-left: 0; margin-right: 0; }
@media (max-width: 900px) { .season-settings-columns { grid-template-columns: 1fr; } }

.period-overview-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.period-overview-heading h2 { margin:0; }
.coverage-status { color:#866015; background:#fff4da; font-size:12px; padding:5px 9px; border-radius:5px; }
.coverage-status.complete { background:#e5f3ed; color:#22644c; }
.season-timeline { position:relative; height:20px; background:repeating-linear-gradient(135deg,#edf1f4,#edf1f4 5px,#f8fafb 5px,#f8fafb 10px); border-radius:5px; overflow:hidden; margin-top:24px; }
.timeline-segment { position:absolute; top:0; height:100%; border-right:2px solid white; }
.timeline-segment.pre_season,.period-dot.pre_season { background:#cc9c3d; }
.timeline-segment.season,.period-dot.season { background:#328575; }
.timeline-segment.off_season,.period-dot.off_season { background:#8193ab; }
.timeline-dates { display:flex; justify-content:space-between; font-size:11px; color:var(--muted); margin-top:8px; }
.period-legend { display:flex; gap:16px; flex-wrap:wrap; font-size:12px; margin:16px 0 24px; color:var(--muted); }
.period-legend > span { display:flex; align-items:center; gap:6px; }
.period-dot { display:inline-block; width:9px; height:9px; border-radius:50%; flex-shrink:0; }
.period-gaps { display:flex; flex-direction:column; gap:4px; padding:12px 14px; border-left:3px solid #cc9c3d; background:#fffaed; font-size:12px; margin-bottom:20px; color:#75551e; }
.period-card { border:1px solid var(--line); border-radius:8px; margin-bottom:10px; }
.period-card > summary { display:flex; align-items:center; gap:12px; padding:16px; cursor:pointer; list-style:none; }
.period-card > summary::-webkit-details-marker { display:none; }
.period-card-title { display:flex; flex-direction:column; gap:4px; font-size:14px; flex:1; }
.period-card-title > span { font-size:12px; color:var(--muted); }
.period-duration { font-size:12px; color:var(--muted); white-space:nowrap; }
.period-edit-label { font-size:12px; color:var(--blue); }
.period-card[open] > summary { border-bottom:1px solid var(--line); background:var(--surface); }
.period-card-editor { padding:18px; }
.period-card-editor .form-actions { justify-content:flex-end; margin-top:14px; padding-top:14px; }
.period-date-feedback { color:var(--teal); font-size:12px; margin:0; }
.period-date-feedback.invalid { color:#94334d; }
.period-remove { color:#94334d; font-size:12px; margin-top:8px; }
.period-add { border:1px dashed #bdcdd9; border-radius:8px; margin-top:16px; }
.period-add > summary { padding:14px 16px; color:var(--blue); font-weight:600; font-size:14px; cursor:pointer; list-style:none; }
.period-add > summary::-webkit-details-marker { display:none; }
@media(max-width:500px) { .period-card > summary { gap:8px; padding:12px; } .period-edit-label { font-size:0; } .period-edit-label span { font-size:14px; } }

.badge.status-active { background:#e5f3ed; color:#22644c; }
.badge.status-neutral { background:#edf1f5; color:#536779; }

.season-year-calendar { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.season-month { background:white; padding:20px; border:1px solid var(--line); border-radius:10px; }
.season-month h2 { font-size:16px; margin:0 0 18px; }
.season-month h2 span { color:var(--muted); font-weight:400; font-size:12px; }
.season-month-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; text-align:center; }
.mini-weekday { font-size:10px; color:var(--muted); padding-bottom:8px; }
.mini-day { font-size:12px; padding:7px 0; border-radius:4px; }
.mini-day.pre_season { background:#fff0cc; color:#785516; }
.mini-day.season { background:#dcefe9; color:#236554; }
.mini-day.off_season { background:#e6ecf4; color:#51677f; }
.mini-day.unplanned { background:#f2f4f6; color:var(--muted); }
.mini-day.outside-season { opacity:.3; }
.mini-day.current-day { outline:2px solid var(--blue); outline-offset:-2px; font-weight:700; }
.period-dot.unplanned { background:#d6dfe5; }
.season-period-summary { margin-top:28px; padding:24px; background:white; border:1px solid var(--line); border-radius:10px; }
.season-period-summary h2 { font-size:18px; }
.season-period-summary > div { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-top:14px; font-size:14px; }
.season-period-summary > div > span { color:var(--muted); }
@media(max-width:1300px) { .season-year-calendar { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:1000px) { .season-year-calendar { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) { .season-year-calendar { grid-template-columns:1fr; } }

.table-actions { text-align:right; white-space:nowrap; }
.table-action { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; color:var(--muted); border-radius:6px; }
.table-action:hover { color:var(--blue); background:var(--surface); }

.season-month-grid a.mini-day { position:relative; text-decoration:none; }
.season-month-grid a.mini-day:hover { box-shadow:inset 0 0 0 1px var(--blue); }
.year-event-dot { position:absolute; bottom:2px; left:calc(50% - 2px); width:4px; height:4px; border-radius:50%; background:currentColor; }

.calendar:is(.week, .month) .calendar-day.phase-pre_season { background:#fffdf7; }
.calendar:is(.week, .month) .calendar-day.phase-season { background:#f8fbfa; }
.calendar:is(.week, .month) .calendar-day.phase-off_season { background:#f8f9fc; }
.calendar.week .period-bands:empty { display:none; }

.calendar-page-heading { flex-wrap: wrap; gap: 12px; }
.calendar-page-heading .calendar-view-controls { gap: 10px; flex-wrap: wrap; margin: 0 0 0 auto; }
@media (max-width: 760px) {
  .calendar-page-heading .calendar-view-controls { width: 100%; margin-left: 0; justify-content: space-between; gap: 10px; }
}

.calendar-weekday-header { display: none; }
@media (min-width: 761px) {
  .calendar.month { overflow: auto; }
  /* Above edit controls (4–5) and microcycle drag previews (6). */
  .calendar-weekday-header { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); position: sticky; top: 0; z-index: 7; background: white; border-bottom: 1px solid var(--line); }
  .calendar-weekday-header > div { padding: 12px 4px; text-align: center; font-size: 14px; color: var(--muted); border-right: 1px solid var(--line); }
  .calendar-weekday-header > div:last-child { border-right: 0; }
  .calendar:is(.week, .month) .calendar-day time > span { display: none; }
  .calendar:is(.week, .month) .calendar-day time { justify-content: flex-start; }
}

.calendar { overscroll-behavior: contain; }
@media (min-width: 761px) {
  .has-sidebar > .page:has(.calendar-workspace) { height: 100%; padding-bottom: 24px; display: flex; flex-direction: column; }
  .calendar-shell { display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; }
  .calendar-workspace { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .calendar-workspace > .page-heading, .calendar-workspace > .planning-note { flex-shrink: 0; }
  .calendar-workspace > .calendar { flex: 1; min-height: 0; overflow: auto; }
  .calendar-workspace > .season-year-calendar { overflow: auto; min-height: 0; }
}
@media (max-width: 760px) {
  .calendar-workspace > .calendar { max-height: calc(100dvh - 210px); overflow: auto; }
}

.calendar .calendar-day { display: flex; flex-direction: column; }
.day-add-event { display: flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; width: 100%; min-height: 32px; margin-top: auto; padding: 5px 8px; border: 1px dashed #b8cec6; border-radius: 6px; color: var(--teal); background: #ffffff80; text-decoration: none; font-size: 12px; }
.day-add-event:hover { background: #e5efeb; }
.day-event-actions { opacity: 0; pointer-events: none; }
.calendar-day:hover > .day-event-actions,
.day-event-actions:has(:focus-visible) { opacity: 1; pointer-events: auto; }
.event-editor-modal { margin: auto; width: min(640px, calc(100% - 32px)); max-height: 90dvh; overflow-y: auto; padding: 28px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
.event-editor-modal::backdrop { background: #18304266; }
.event-editor-modal .form-panel { padding: 0; border: 0; box-shadow: none; margin: 0; }

.microcycle-indicators { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px 0; padding: 7px 0; }
.microcycle-indicators:empty { display: none; }
.microcycle-indicator { min-width: 0; margin: 0 5px; padding: 5px 12px; border: 1px solid #b9d4cc; border-radius: 999px; background: #f0f7f4; color: var(--teal); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.microcycle-indicator.continues-before { border-left-style: dashed; border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.microcycle-indicator.continues-after { border-right-style: dashed; border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.microcycle-edit-link { display: none; color: var(--teal); font-weight: 600; }
.calendar-day { position: relative; }
.microcycle-select-day { display: none; }
.editing-microcycles .microcycle-read-label { display: none; }
.editing-microcycles .microcycle-edit-link { display: block; overflow: hidden; text-overflow: ellipsis; }
.editing-microcycles .microcycle-indicator { background: #e8f3ee; }
.calendar-workspace:not(.editing-microcycles) .day-event-actions,
.calendar-workspace:not(.editing-microcycles) .event-delete-button { display: none; }
.editing-microcycles .day-event-actions, .editing-microcycles .day-events { position: relative; z-index: 4; }
.editing-microcycles .calendar-day { user-select: none; }
.editing-microcycles .microcycle-select-day:hover { background: #16756b0a; }
@media (max-width: 760px) {
  .microcycle-indicators { display: grid; }
}

.editing-microcycles .microcycle-select-day:disabled { cursor: not-allowed; }
.editing-microcycles .microcycle-select-day:disabled:hover { background: transparent; }

.toast-stack { position: fixed; top: 20px; right: 24px; z-index: 100; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.success-toast { display: flex; align-items: flex-start; gap: 10px; padding: 14px 12px 14px 16px; border: 1px solid #c9ded5; border-radius: 12px; background: white; box-shadow: 0 6px 24px #1830421f; color: var(--ink); font-size: 14px; pointer-events: auto; }
.success-toast-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; color: var(--teal); background: #e7f4ed; font-weight: 700; }
.success-toast-message { flex: 1; padding-top: 1px; overflow-wrap: anywhere; }
.success-toast-close { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; margin-top: -2px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 21px; cursor: pointer; }
.success-toast-close:hover { background: var(--surface); }
@media (max-width: 760px) { .toast-stack { top: 16px; right: 16px; } }

.microcycle-mode-button { width: 42px; height: 42px; padding: 10px; flex-shrink: 0; background: white; border: 1px solid var(--line); color: var(--muted); font-weight: 650; white-space: nowrap; }
.microcycle-mode-button:hover { background: #edf6f2; border-color: var(--teal); }
.microcycle-mode-button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: white; box-shadow: inset 0 0 0 1px currentColor; }
.microcycle-mode-button[aria-pressed="true"]:hover { filter: brightness(.9); }
[data-microcycle-selection-target="error"][hidden] { display: none; }

.day-event-actions { display: flex; gap: 4px; margin-top: auto; width: 100%; }
.day-event-actions .day-add-event { flex: 1; min-width: 0; width: auto; padding: 5px 2px; font-size: 11px; }

.microcycle-indicator { display: flex; align-items: center; gap: 6px; }
.microcycle-read-label, .microcycle-edit-link { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.microcycle-delete-button { display: none; align-items: center; justify-content: center; flex-shrink: 0; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.editing-microcycles .microcycle-delete-button { display: inline-flex; }
.microcycle-delete-button:hover { background: #fbe9e8; color: #a52f2f; }
.microcycle-delete-confirmation { white-space: normal; font-size: 15px; font-weight: 400; text-align: left; }

.day-rest-form { display: flex; flex: 1; min-width: 0; margin: 0; }
.day-event-actions .day-add-event { min-height: 34px; cursor: pointer; }
.day-event-actions .navigation-icon { width: 18px; height: 18px; }
.day-event-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.day-event-actions > .day-add-event, .day-rest-form .day-add-event { width: 100%; height: 34px; min-height: 34px; margin: 0; padding: 5px; }
.day-rest-form { width: 100%; }

.event-meta { align-items: center; }
.event-meta > span { margin-left: auto; }
.event-delete-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.event-delete-button:hover { color: #a52f2f; background: #fbe9e8; }
.event .event-delete-confirmation p { font-size: 15px; margin: 0 0 24px; }
.event-delete-confirmation { font-size: 15px; font-weight: 400; }


.event { position: relative; }
.event > .match-home-away { position: absolute; top: 8px; right: 8px; z-index: 2; }
.editing-microcycles .event > .match-home-away { right: 40px; }
.editing-microcycles .event.match h3 { padding-right: 58px; }
.event:has(.event-card-link) { cursor: pointer; }
.event:has(.event-card-link) .event-meta { padding-right: 28px; }
.event-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.event-card-link:focus-visible::after { outline: 3px solid #3c95c9; outline-offset: 2px; }
.event > .event-delete-button { position: absolute; top: 5px; right: 5px; z-index: 4; width: 26px; height: 26px; font-size: 21px; }
@media (hover: hover) and (pointer: fine) {
  .event > .event-delete-button { opacity: 0; pointer-events: none; }
  .event:hover > .event-delete-button, .event:focus-within > .event-delete-button { opacity: 1; pointer-events: auto; }
}

.table-actions .confirmation-modal { text-align: left; white-space: normal; }
button.table-action { border: 0; background: transparent; cursor: pointer; }
button.table-action:hover { color: var(--blue); background: var(--surface); }

.calendar-day header { display: flex; align-items: center; gap: 4px; }
.match-day-labels { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; min-width: 0; overflow-x: auto; }
.match-day-labels .match-day-label { flex-shrink: 0; }
.calendar-day header:has(.match-day-labels) time { flex-shrink: 0; }
.calendar-day header:has(.match-day-labels > :nth-child(3)) { padding-inline: 0; gap: 2px; }
.calendar-day .match-day-labels:has(> :nth-child(3)) { gap: 2px; }
.calendar-day .match-day-labels:has(> :nth-child(3)) .match-day-label { font-size: 9px; padding-inline: 2px; }
.match-day-label { display: inline-block; padding: 2px 5px; border-radius: 4px; font-size: 11px; font-weight: 700; line-height: 1.4; background: #e7eef8; color: #234b78; }
.match-day-label.after-match { background: #e1f2e8; color: #23583d; }
.calendar-workspace > .season-year-calendar { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.season-month-grid .mini-day { display: flex; align-items: center; justify-content: center; gap: 2px; }
.mini-day .match-day-labels { gap: 1px; }
.mini-day .match-day-label { font-size: 8px; padding: 1px 2px; }




.event-details-modal { width: calc(100vw - 48px); max-width: none; height: calc(100dvh - 48px); max-height: none; box-sizing: border-box; }
.event-details-modal[open] { display: flex; flex-direction: column; }
.event-loading-modal { align-items: center; justify-content: center; }
.event-loading-state { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 140px; color: var(--muted); font-size: 15px; }
.player-bio-header { flex-wrap: wrap; gap: 20px; margin-bottom: 0; }
.player-bio-header .profile-photo { width: 64px; height: 64px; flex-shrink: 0; }
.player-bio-name { min-width: 0; }
.player-bio-name h1 { margin: 0 0 6px; font-size: 26px; overflow-wrap: anywhere; }
.player-bio-positions, .player-bio-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.player-bio-meta { color: var(--muted); font-size: 14px; }
.player-bio-header .profile-actions { margin-left: auto; }
.player-profile-tabs { margin-top: 24px; }
.player-profile-tabs .player-competitive-profile { max-width: none; border: 0; padding: 0; margin: 0; background: transparent; }
.player-load-date { margin: 20px 0 16px; font-size: 13px; }
.rolling-monitor-table.player-load-table { min-width: 1000px; }
.rolling-monitor-table.player-load-table tbody th { min-width: 100px; width: 100px; }
.rolling-monitor-table.player-load-table td:nth-child(5) { min-width: 90px; }
.player-invitation-modal .form-actions { justify-content: flex-end; }
.player-rolling-load { max-width: none; border: 0; padding: 0; margin: 0; }
.rolling-load-summary { display: block; margin-top: 4px; color: var(--muted); font-size: .82rem; }
.rolling-load-explainer { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; padding: 14px 16px; border-left: 3px solid var(--teal); background: var(--surface); color: var(--muted); }
.rolling-load-explainer strong { color: var(--ink); }
.rolling-load-explainer a { margin-left: auto; color: var(--blue); font-weight: 600; }
.rolling-situation-calendar { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
.rolling-situation { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.rolling-situation-match { border-color: var(--blue); background: #eaf2fb; }
.rolling-situation-date { display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.rolling-situation-date span { font-size: 12px; font-weight: 600; color: var(--teal); }
.rolling-situation ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.rolling-window-summary { max-width: none; }
.rolling-situations { max-width: none; width: 100%; box-sizing: border-box; }
.rolling-page-heading { margin-bottom: 44px; }
.rolling-page-heading h1 { margin-bottom: 4px; }
.rolling-window-summary { margin-bottom: 36px; }
.rolling-situations > p { margin-bottom: 28px; }
.rolling-week-calendar { display: grid; grid-template-columns: repeat(8, minmax(120px, 1fr)); overflow-x: auto; border: 1px solid var(--line); }
.rolling-week-day { height: 170px; min-height: 0; box-sizing: border-box; padding: 12px; border-right: 1px solid var(--line); background: white; }
.rolling-week-day:last-child { border-right: 1px solid var(--line); }
.rolling-week-day header { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--ink); }
.rolling-week-day header span { color: var(--muted); font-size: 12px; }
.rolling-day-context { min-height: 28px; margin-top: 10px; color: var(--teal); font-size: 12px; font-weight: 650; }
.rolling-day-events { display: grid; gap: 6px; margin-top: 10px; }
.rolling-day-event { padding: 8px; border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 600; }
.rolling-day-event { display: flex; align-items: center; gap: 7px; }
.rolling-day-event .navigation-icon { width: 17px; height: 17px; flex-shrink: 0; }
.rolling-day-event.match { background: #eaf2fb; color: var(--blue); }
.rolling-day-event.rest { background: #f1f4f6; color: var(--muted); }
.rolling-day-empty { display: block; margin-top: 14px; font-size: 12px; }
.rolling-catalog, .rolling-window-summary table { border-collapse: collapse; border: 1px solid var(--line); }
.rolling-catalog th, .rolling-catalog td, .rolling-window-summary th, .rolling-window-summary td { border: 1px solid var(--line) !important; }
.rolling-target-settings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; }
.rolling-target-settings .field { position: relative; }
.rolling-target-settings input[readonly] { background: var(--surface); color: var(--ink); cursor: default; }
.rolling-target-settings .input-suffix { position: absolute; right: 10px; bottom: 10px; color: var(--muted); font-size: .82rem; }
@media (max-width: 800px) { .rolling-target-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
 .event-details-heading { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.event-details-heading time { color: var(--muted); font-size: 15px; white-space: nowrap; }
.event-team-target { display: flex; align-items: center; gap: 24px; padding: 18px 20px; border-left: 3px solid var(--teal); background: var(--surface); margin-bottom: 28px; }
.event-team-target h3, .event-squad-heading h3 { margin: 0; font-size: 17px; }
.ocp-pending { color: var(--muted); font-size: 14px; }
.event-squad { min-height: 0; flex: 1; }
.event-tab-list { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.event-tab-list button { cursor: pointer; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: var(--muted); padding: 10px 18px; }
.event-tab-list button[aria-selected="true"] { border-bottom-color: var(--teal); color: var(--ink); font-weight: 600; }
.event-tabs [role="tabpanel"][hidden] { display: none; }
.event-tabs [role="tabpanel"] { position: relative; }
.event-data-empty-state { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 4px; padding: 40px 44px; text-align: center; }
.event-data-empty-copy { min-width: 0; display: flex; flex-direction: column; align-items: center; }
.event-data-empty-kicker { display: block; margin-bottom: 5px; color: var(--teal); font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.event-data-empty-state h2 { margin: 0 0 7px; font-size: 23px; }
.event-data-empty-state p { max-width: 620px; margin: 0 auto 14px; line-height: 1.45; }
.event-data-empty-benefits { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px 16px; color: var(--muted); font-size: 13px; }
.event-data-empty-benefits span { display: inline-flex; align-items: center; gap: 6px; }
.event-data-empty-benefits span::before { content: "✓"; color: var(--teal); font-weight: 750; }
.event-data-empty-action { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.event-data-empty-action small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.event-details-modal #event-load-planning:has(> .match-data-empty-state) { display: flex; flex: 1; min-height: 0; }
.match-data-empty-state { flex: 1; min-height: 320px; justify-content: center; }
@media (max-width: 760px) { .event-data-empty-state { padding: 28px; } }
@media (max-width: 480px) { .event-data-empty-state { gap: 16px; padding: 24px; } .event-data-empty-action small { white-space: normal; } }
.tab-panel-loader { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 120px; background: color-mix(in srgb, var(--surface) 86%, white); color: var(--muted); font-size: 14px; }
.tab-panel-loader[hidden] { display: none; }
.loading-spinner { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--teal); border-radius: 50%; animation: tab-panel-spin .7s linear infinite; }
@keyframes tab-panel-spin { to { transform: rotate(360deg); } }
.event-squad-heading { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.event-squad-table-wrap { overflow-x: auto; }
.event-squad-table { width: 100%; }
.event-squad-table .event-player-column { width: 1%; }
.event-squad-table th[scope="row"] { white-space: nowrap; }
.event-squad-table th, .event-squad-table td { padding: 9px 12px; text-align: left; font-size: 13px; }
.event-squad-table tbody th { font-weight: 600; background: transparent; color: var(--ink); }
.event-squad-table .squad-identity { gap: 10px; }
.event-squad-table .shirt-number { font-size: 23px; flex: 0 0 30px; }
.event-squad-table .squad-photo { width: 36px; height: 36px; border-radius: 7px; }
.event-squad-table .player-placeholder .navigation-icon { width: 23px; height: 23px; }
.event-squad-table .event-position-heading th { padding: 8px 12px; background: var(--surface); }
.event-position-heading .badge { margin-right: 7px; }
.event-squad-table .event-group-heading th { padding: 10px 12px; background: var(--surface); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.event-squad-table .ocp-pending { font-size: 13px; }
.competitive-profile summary { cursor: pointer; font-weight: 600; margin-bottom: 4px; }
.competitive-profile dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 20px; margin: 12px 0; }
.competitive-profile dt { color: var(--muted); font-size: 12px; }
.competitive-profile dd { margin: 2px 0 0; }
.competitive-profile small { display: block; font-size: 11px; }
.load-percentage-table { overflow-x: auto; min-width: 0; flex: 1; }
.training-catalog tbody tr { cursor: pointer; }
.training-catalog tbody tr:hover { background: var(--surface); }
.training-catalog td:first-child a { font-weight: 600; }
.event-catalog tbody tr { cursor: pointer; background: #fff; }
.event-catalog tbody tr:hover { background: var(--surface); }
.event-catalog .event-name-cell { background: inherit; color: var(--ink); font-weight: 600; }
.event-catalog th:first-child, .event-catalog td:first-child { min-width: 260px; }
.event-catalog th[scope="row"] a { color: var(--ink); font-weight: 600; text-decoration: none; }
.event-catalog th[scope="row"] a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.event-list-venue { display: inline-flex; align-items: center; gap: 8px; }
.event-list-venue svg { width: 18px; height: 18px; color: var(--teal); }
.status-pill { display: inline-flex !important; align-items: center; min-height: 26px; box-sizing: border-box; padding: 5px 11px; border: 1px solid transparent; border-radius: 999px; font-size: 12px; font-weight: 650; line-height: 1; white-space: nowrap; }
.event-catalog .status-pill.status-planned { background: #f0f3f5 !important; border-color: #d8e1e6 !important; color: #536676 !important; }
.event-catalog .status-pill.status-completed { background: #e5f4ed !important; border-color: #b9dccb !important; color: #17623a !important; }
.catalog-search-field { margin-bottom: 24px; }
.catalog-search-field input { max-width: none; }
.positions-catalog-form { max-width: none; }
.positions-catalog table { table-layout: auto; }
.positions-catalog th, .positions-catalog td { vertical-align: middle; }
.positions-catalog th:first-child, .positions-catalog td:first-child,
.positions-catalog th:nth-child(2), .positions-catalog td:nth-child(2) { width: auto; }
.positions-catalog th:last-child, .positions-catalog td:last-child { width: 100%; }
.positions-catalog input { min-width: 160px; }
.positions-catalog td:nth-child(2) input { width: min(280px, 100%); }
.positions-catalog small { display: block; margin-top: 5px; }
.training-context-code { display: block; margin-top: 3px; color: var(--muted); font-size: .82rem; }
.training-data-warning { display: inline-flex; align-items: center; gap: 5px; color: #9a6700; font-size: .82rem; }
.training-catalog .training-data-warning { margin-left: 10px; }
.training-data-warning .navigation-icon { width: 16px; height: 16px; flex-shrink: 0; }
.training-profile-modal .season-modal-heading { gap: 20px; align-items: flex-start; }
.training-profile-modal .season-modal-heading h2 { overflow-wrap: anywhere; }
.training-profile-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; min-width: 0; }
.training-profile-heading .badge, .training-variant-badge { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; }
.training-profile-meta { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.training-profile-meta .navigation-icon { flex-shrink: 0; }
.training-profile-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 12px; }
.training-profile-content section { min-width: 0; overflow-wrap: anywhere; }
.training-profile-content h3 { margin-top: 0; }
.training-profile-modal .load-percentage-table th,
.training-profile-modal .load-percentage-table td { font-size: 15px; padding: 12px 16px; }
.training-profile-modal .load-percentage-table caption { font-size: 14px; margin-bottom: 12px; }
.load-percentage-table caption { text-align: left; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.load-percentage-table th, .load-percentage-table td { padding: 5px 8px; font-size: 12px; white-space: nowrap; }
.competitive-profile dd strong { font-size: 13px; white-space: nowrap; }
.event-squad-table th[scope="row"], .event-squad-table td { vertical-align: middle; }
.player-load-group summary { cursor: pointer; font-size: 12px; margin: 4px 0; }
@media (max-width: 640px) {
  .event-team-target { flex-direction: column; align-items: stretch; gap: 12px; }
}
@media (max-width: 600px) { .event-details-modal { width: calc(100vw - 16px); height: calc(100dvh - 16px); padding: 20px; } }

.event-kind-training { background: #e5f3ed; color: #22644c; }
.event-kind-match { background: #eaf2fb; color: var(--blue); }
.event-kind-rest { background: #f1f4f6; color: #536779; }

.match-report-tab-actions { display: flex; justify-content: flex-end; margin: 0 0 16px; }
.event-modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-shrink: 0; }
.event-report-download { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; color: var(--muted); }
.event-report-download:hover { background: var(--surface); color: var(--blue); }
.event-report-download .navigation-icon { width: 18px; height: 18px; }
.season-modal-heading .text-button, .gps-wizard-heading .text-button, .event-details-modal .text-button { padding: 2px 8px; font-size: 28px; line-height: 1; }
.match-report-page { max-width: 1440px; margin: 0 auto; }
.match-report-toolbar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.match-report { color: var(--ink); }
.match-report-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 20px; border-bottom: 2px solid var(--teal); }
.match-report-kicker { margin: 0 0 6px; color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.match-report-header h1 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 38px); }
.match-report-header p { margin: 0; }
.match-report-badge { padding: 8px 12px; border-radius: 7px; background: var(--surface); color: var(--blue); font-weight: 700; white-space: nowrap; }
.match-report-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; margin: 22px 0 30px; border: 1px solid var(--line); background: var(--line); }
.match-report-summary-row { display: block; }
.match-report-summary > div { display: flex; flex-direction: column; gap: 3px; min-height: 68px; padding: 13px 15px; background: white; }
.match-report-summary strong { font-size: 19px; }
.match-report-summary span { color: var(--muted); font-size: 12px; }
.match-report-section { margin-top: 30px; }
.match-report-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.match-report-section-heading h2 { margin: 0; font-size: 20px; }
.match-report-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.match-report-table { width: 100%; min-width: 1020px; border-collapse: collapse; }
.match-report-table th, .match-report-table td { padding: 9px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font-size: 12px; }
.match-report-table th:first-child, .match-report-table td:first-child { text-align: left; }
.match-report-table thead th { background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 700; }
.match-report-table thead th small { display: block; margin-top: 2px; font-weight: 500; }
.match-report-table tbody th { font-weight: 650; }
.match-report-table tbody tr:last-child th, .match-report-table tbody tr:last-child td { border-bottom: 0; }
.match-report-table th:last-child, .match-report-table td:last-child { border-right: 0; }
.match-report-table.compact { min-width: 640px; }
.match-report-period { margin-top: 24px; }
.event-details-modal .match-report-header { display: none; }
.event-report-panel .match-report-header { display: none !important; }
.event-details-modal .match-report-summary { margin-top: 0; }
@media print {
  body.has-sidebar { background: white; }
  .no-print, .app-header, .workspace-header, .app-sidebar, .sidebar, .notifications { display: none !important; }
  body.has-sidebar { display: block; height: auto; overflow: visible; padding: 0; }
  .has-sidebar > .page { height: auto; overflow: visible; border: 0; box-shadow: none; border-radius: 0; }
  .workspace-mobile-bar, .workspace-backdrop, .toast-stack { display: none !important; }
  .page { margin: 0 !important; max-width: none !important; padding: 0 !important; }
  .match-report-page { max-width: none; }
  .match-report-table-wrap { overflow: visible; }
  .match-report-table { min-width: 0; font-size: 8px; }
  .match-report-table th, .match-report-table td { padding: 4px 5px; font-size: 8px; }
  .match-report-header h1 { font-size: 24px; }
  .match-report-summary { margin: 14px 0 20px; }
  .match-report-section { break-inside: avoid; }
}
@media (max-width: 760px) {
  .match-report-summary-row { display: block; }
}


.microcycle-indicator { position: relative; }
.microcycle-resize-handle { display: none; position: absolute; top: 0; bottom: 0; width: 14px; padding: 0; border: 0; background: transparent; color: var(--teal); cursor: ew-resize; touch-action: none; z-index: 5; }
.editing-microcycles .microcycle-resize-handle { display: block; }
.editing-microcycles .microcycle-indicator { padding-inline: 20px; }
.resize-start { left: 0; }
.resize-end { right: 0; }

.microcycle-indicators { align-items: center; }
.microcycle-indicator { grid-row: 1; z-index: 2; }
.calendar-workspace:not(.editing-microcycles) .microcycle-indicators:not(.has-microcycles) { display: none; }
.editing-microcycles .microcycle-indicators { background: #f4f8f6; padding: 6px 0; min-height: 46px; }
.editing-microcycles .microcycle-select-day { display: flex; align-items: center; justify-content: center; position: relative; width: 100%; height: 34px; border: 0; border-right: 1px dashed #c9dcd5; border-radius: 0; background: transparent; color: #69897f; cursor: ew-resize; font-size: 17px; padding: 0; }
.editing-microcycles .microcycle-select-day:disabled { color: transparent; }
.editing-microcycles .microcycle-select-day.microcycle-selected,
.editing-microcycles .microcycle-select-day.microcycle-resize-preview { background: #cfe8de; color: var(--teal); }

.microcycle-indicator, .editing-microcycles .microcycle-indicator { background: var(--microcycle-background, #f0f3f5); border-color: #c4d2d0; }

.microcycle-drag-preview { pointer-events: none; z-index: 6; display: flex; align-items: center; gap: 12px; box-shadow: 0 3px 10px #18304224; outline: 2px solid var(--teal); min-height: 34px; }
.microcycle-drag-preview strong { overflow: hidden; text-overflow: ellipsis; }
.microcycle-drag-preview span { font-size: 10px; white-space: nowrap; }
.microcycle-drag-preview.invalid { outline-color: #b43b3b; color: #942828; }

.calendar-error-toast { position: fixed; top: 20px; right: 24px; z-index: 1000; display: flex; align-items: flex-start; gap: 10px; width: min(380px, calc(100vw - 32px)); padding: 14px 12px; background: white; color: #94342a; border: 1px solid #edc9c4; border-radius: 12px; box-shadow: 0 6px 24px #1830421f; }
.calendar-error-toast:has([data-microcycle-selection-target="error"][hidden]) { display: none; }
.calendar-error-toast p { margin: 0; flex: 1; font-size: 14px; }
.calendar-error-icon { border-radius: 50%; background: #fae8e4; width: 24px; height: 24px; text-align: center; flex-shrink: 0; font-weight: 700; }
.calendar-error-toast .text-button { padding: 0 4px; }

@media (max-width: 760px) {
  .editing-microcycles .microcycle-indicator:not(.microcycle-drag-preview) { flex-wrap: wrap; justify-content: center; gap: 4px; padding: 18px 3px 5px; }
  .editing-microcycles .microcycle-edit-link { flex-basis: 100%; text-align: center; }
  .editing-microcycles .microcycle-resize-handle { top: 0; bottom: auto; height: 14px; }
}

.gps-wizard-heading h2:focus { outline: none; }
.gps-wizard-body .gps-new-heading { display: none; }

.gps-steps a { cursor: pointer; }
.gps-steps li[aria-current=step] { cursor: default; }

/* The wizard scrolls its content independently of the persistent actions. */
.gps-wizard-modal[open] { display: flex; flex-direction: column; overflow: hidden; }
.gps-wizard-heading { flex-shrink: 0; }
.gps-wizard-body { display: flex; min-height: 0; overflow: hidden; padding: 0; }
.gps-wizard-body turbo-frame { display: flex; flex-direction: column; min-height: 0; width: 100%; }
.gps-wizard-content { min-height: 0; }
.gps-wizard-body .gps-wizard-content { overflow-y: auto; padding: 0 28px 24px; }
.gps-wizard-actions { display: flex; flex-shrink: 0; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 28px; border-top: 1px solid var(--line); background: white; }
.gps-layout-settings, .gps-manual-mapping { margin: 20px 0; }
.gps-manual-mapping summary, .gps-layout-settings summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.gps-auto-summary { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.gps-context-heading th { font-size: 14px; }
[data-controller="gps-column"] { position: relative; }
.gps-column-options { position: fixed; z-index: 5; max-height: 220px; overflow-y: auto; background: white; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px #18304226; }
.gps-column-options [role="option"] { padding: 10px 12px; cursor: pointer; }
.gps-column-options [role="option"]:hover, .gps-column-options .active { background: #e9f4f3; }
.gps-column-options [aria-selected="true"] { font-weight: 700; }
.gps-column-input { min-width: 180px; }
@media (max-width: 600px) {
  .gps-wizard-body .gps-wizard-content { padding: 0 16px 16px; }
  .gps-wizard-actions { padding: 12px 16px; }
}

.event[data-gps-event-url] { position: relative; }
.gps-event-drop-hint { display: none; }
.event.gps-event-dragging { outline: 3px solid #177d75; outline-offset: 2px; }
.event.gps-event-dragging .gps-event-drop-hint { display: flex; position: absolute; inset: 0; z-index: 4; align-items: center; justify-content: center; padding: 8px; border-radius: inherit; background: #e5f5f1f5; color: #11665e; font-weight: 700; text-align: center; pointer-events: none; }

.gps-mapping-heading { margin: 24px 0; }
.gps-mapping-heading h2 { margin-bottom: 8px; }
.gps-mapping-heading p { max-width: 65ch; margin: 0; }
.gps-mapping-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 20px 0; border-block: 1px solid var(--line); margin: 0 0 24px; }
.gps-mapping-overview dt { color: var(--muted); margin-bottom: 6px; }
.gps-mapping-overview dd { margin: 0; font-weight: 600; }
@media (max-width: 600px) { .gps-mapping-overview { grid-template-columns: 1fr; gap: 16px; } }

.event-gps { margin: 12px 0 24px; min-width: 0; }
.event-gps-table { font-variant-numeric: tabular-nums; border-collapse: collapse; border: 1px solid var(--line); }
.event-gps-table th, .event-gps-table td { border: 1px solid var(--line); }
.event-gps-table td { white-space: nowrap; }
.event-gps-table thead th { min-width: 100px; vertical-align: bottom; }
.event-gps-table thead th:first-child { min-width: 180px; }
.event-gps-table th small { display: block; font-weight: normal; color: var(--muted); }
.event-gps-periods { margin-top: 16px; }
.event-gps-periods summary { cursor: pointer; font-weight: 600; margin-bottom: 12px; }

.event-comparison > p { max-width: 80ch; }
.event-comparison .gps-field { max-width: 340px; margin: 20px 0; }
.event-comparison-table { font-variant-numeric: tabular-nums; }
.event-comparison-table td { white-space: nowrap; }
.event-comparison-table tr[hidden] { display: none; }
.comparison-result { font-size: 13px; }
.comparison-result.within-target { color: #11665e; }

.match-comparison-matrix td strong, .match-comparison-matrix td small { display: block; }
.match-comparison-matrix td small { margin-top: 4px; color: var(--muted); }

.planning-target-matrix td strong, .planning-target-matrix td small { display: block; }
.planning-target-matrix td small { margin-top: 4px; color: var(--muted); }
.planning-target-matrix .badge { margin-top: 0; }
.planning-target-matrix .squad-identity { white-space: nowrap; }
.ocp-tooltip { position: relative; display: inline-flex; margin-left: 4px; }
.ocp-tooltip-trigger { border: 0; background: transparent; color: var(--muted); padding: 2px 4px; cursor: help; font-size: 14px; line-height: 1; }
.ocp-tooltip-content { position: fixed; inset: auto; margin: 0; width: max-content; max-width: min(280px, calc(100vw - 24px)); padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); box-shadow: 0 8px 24px #18304226; font-size: 13px; font-weight: 400; line-height: 1.5; white-space: normal; }
.ocp-tooltip-content strong { display: block; color: var(--ink); }
.player-name-group { display: flex; align-items: center; gap: 8px; }
.participation-label { border: 0; font-size: 12px; }
button.participation-label, .ocp-tooltip-trigger { cursor: pointer; }
.role-popover-trigger { cursor: pointer; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; }
.planning-target-matrix td > .ocp-tooltip { margin-left: 0; }
.player-ocp-tooltip { margin-left: 0; }
.player-ocp-tooltip .ocp-tooltip-content { max-width: min(380px, calc(100vw - 24px)); }
.ocp-metric-detail { display: block; padding-top: 6px; margin-top: 6px; border-top: 1px solid var(--line); }
.ocp-metric-detail > strong { font-size: 12px; }
.participation-starter { background: #e0f2ec; color: #176c55; }
.participation-sub-used { background: #e5edff; color: #295b9b; }
.participation-non-player { background: #fff1d6; color: #875700; }
.participation-all-players { background: #eee8fa; color: #69489c; }
.participation-pending { background: #edf1f4; color: #536676; }
.ocp-tooltip-content span { display: block; color: var(--muted); opacity: 1; }

 .match-comparison-matrix td small.training-deviation { font-weight: 600; }
.match-comparison-matrix td small.training-assessment-within { color: #17623a; }
.match-comparison-matrix td small.training-assessment-warning { color: #815500; }
.match-comparison-matrix td small.training-assessment-exceeded { color: #a22c27; }
.training-deviation .deviation-icon { display: inline-block; vertical-align: -2px; margin-right: 3px; }

.filters.session-filters { align-items: flex-end; flex-wrap: wrap; gap: 10px; }
.session-page-heading { align-items: flex-end; }
.session-page-heading .session-filters { margin: 0 0 2px auto; }
.filters.session-filters > div { display: flex; align-items: center; gap: 8px; flex: 0 1 auto; max-width: 100%; }
.filters.session-filters label { margin: 0; }
.filters.session-filters select { width: 200px; max-width: 100%; }
@media (max-width: 480px) {
  .filters.session-filters > div { flex: 1 1 140px; }
  .filters.session-filters select { width: 100%; }
}

.event-tab-with-info { display: flex; align-items: center; border-bottom: 3px solid transparent; }
.event-tab-with-info:has([role="tab"][aria-selected="true"]) { border-bottom-color: var(--teal); }
.event-tab-list .event-tab-with-info > [role="tab"] { border-bottom: 0; padding-right: 6px; }
.event-tab-list .event-tab-info { display: inline-flex; align-items: center; justify-content: center; padding: 8px; margin-right: 8px; border-bottom: 0; }
.table-sort-button { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.table-sort-button::after { content: "↕"; opacity: .45; }
th[aria-sort="ascending"] .table-sort-button::after { content: "↑"; opacity: 1; }
th[aria-sort="descending"] .table-sort-button::after { content: "↓"; opacity: 1; }
.comparison-value { display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer; }
.comparison-value .muted { font-weight: 400; }
.comparison-value.comparison-assessment-within { color: #17623a; }
.comparison-value.comparison-assessment-warning { color: #805600; background: #fff3c4; padding: 3px 6px; border-radius: 4px; }
.comparison-value.comparison-assessment-exceeded { color: #9b1c31; background: #fde8ed; padding: 3px 6px; border-radius: 4px; }
.comparison-value.comparison-assessment-within .muted, .comparison-value.comparison-assessment-warning .muted, .comparison-value.comparison-assessment-exceeded .muted { color: inherit; }
.comparison-deviation-icon { flex: 0 0 auto; vertical-align: -2px; }
.comparison-value:hover { text-decoration: underline; text-underline-offset: 3px; }
.role-minutes-value { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.role-minutes-value:hover { text-decoration: underline; text-underline-offset: 3px; }
.event-raw-data-link { display: block; width: fit-content; clear: both; margin: 16px 0 0 auto; font-size: 13px; }
.player-visibility-toggle { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--muted); font-size: 13px; cursor: pointer; }
.player-visibility-toggle input { accent-color: var(--teal); }

.wellness-page { max-width: 760px; margin: 0 auto; }
.wellness-kicker { margin: 0 0 5px; color: var(--teal); font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.wellness-form { display: grid; gap: 18px; }
.wellness-question { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.wellness-question > label { display: flex; gap: 5px; margin-bottom: 14px; font-weight: 650; }
.wellness-question abbr { color: #b3261e; text-decoration: none; }
.wellness-question input[type="number"], .wellness-question textarea { width: 100%; box-sizing: border-box; }
.wellness-scale { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
.wellness-choice { position: relative; display: block; }
.wellness-choice input { position: absolute; opacity: 0; }
.wellness-choice span { display: block; padding: 12px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); text-align: center; cursor: pointer; }
.wellness-choice input:checked + span { border-color: var(--teal); background: #eaf5f2; color: var(--teal); font-weight: 650; }
.wellness-choice input:focus-visible + span { outline: 3px solid #3c95c9; outline-offset: 2px; }
.wellness-form-actions { display: flex; justify-content: flex-end; }
.hooper-scale { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.hooper-scale .wellness-choice { min-width: 0; }
.hooper-scale .wellness-choice span { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; box-sizing: border-box; text-align: center; }
.hooper-scale .wellness-choice strong { font-size: 20px; }
.hooper-scale .wellness-choice small { font-size: 12px; line-height: 1.3; }
.wellness-index-summary { margin-bottom: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.wellness-index-summary > span { margin-left: 16px; font-size: 22px; font-weight: 700; }
@media (max-width: 720px) { .hooper-scale { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.player-access-panel { margin-top: 24px; }
.player-access-panel h2 { margin-top: 0; }
.inline-form { display: flex; align-items: center; gap: 10px; }
.inline-form input[type="email"] { min-width: 260px; }
.wellness-kiosk { min-height: calc(100dvh - 120px); padding: 28px 32px; background: #f5f8fa; }
.wellness-kiosk-header { display: flex; align-items: flex-start; justify-content: center; gap: 24px; max-width: 1400px; margin: 0 auto 22px; text-align: center; }
.wellness-kiosk-header h1 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 38px); }
.wellness-kiosk-header p { margin: 0; }
.wellness-kiosk-event { display: flex; align-items: center; gap: 12px; max-width: 1400px; margin: 0 auto 18px; padding: 12px 16px; border-left: 3px solid var(--teal); background: white; }
.wellness-kiosk-event span { color: var(--muted); }
.wellness-kiosk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; max-width: 1400px; margin: 0 auto; }
.wellness-player-card { display: grid; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 4px 14px #1830420d; }
.wellness-player-card.is-complete { border-color: #a8d4bd; background: #f5fbf7; }
.wellness-player-identity { display: flex; align-items: center; gap: 12px; }
.wellness-player-identity h2 { margin: 0; font-size: 17px; }
.wellness-player-photo { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; object-fit: cover; background: var(--surface); }
.wellness-player-photo.initials { display: grid; place-items: center; color: var(--muted); font-weight: 700; }
.wellness-kiosk-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.wellness-response { min-height: 44px; padding: 8px 5px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font-size: 13px; cursor: pointer; }
.wellness-response:hover, .wellness-response.selected { border-color: var(--teal); background: #eaf5f2; color: var(--teal); font-weight: 650; }
.wellness-kiosk-picker { max-width: 760px; margin: 48px auto; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.wellness-kiosk-picker h2 { margin-top: 0; }
.wellness-event-options { display: grid; gap: 8px; }
.wellness-event-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; }
.wellness-event-option:hover { border-color: var(--teal); background: #eaf5f2; }
.wellness-event-option span { color: var(--muted); }
.wellness-question-settings { max-width: 900px; }
.wellness-question-settings h2, .wellness-question-list h2 { margin-top: 0; }
.wellness-question-list { max-width: 1200px; margin-top: 28px; }
.wellness-question-group { margin-top: 20px; }
.wellness-question-group h3 { color: var(--muted); font-size: 14px; }
.wellness-question-row { display: grid; grid-template-columns: minmax(220px, 1fr) 180px 110px 44px; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.wellness-question-list .event-tab-list { flex-wrap: wrap; }
.wellness-question-list .page-heading .button { flex-shrink: 0; }
.wellness-question-delete { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; color: #9c3232; text-decoration: none; }
.wellness-question-delete:hover { background: #fce6e6; }
.wellness-question-delete:focus-visible { outline: 3px solid #3c95c9; outline-offset: 2px; }
/* Native switches retain form values, keyboard interaction and accessible state. */
.toggle-control { position: relative; display: inline-flex; align-items: center; gap: 10px; width: fit-content; cursor: pointer; }
.toggle-control .toggle-input { position: absolute; top: 0; left: 0; width: 44px; height: 26px; margin: 0; opacity: 0; cursor: pointer; }
.toggle-track { position: relative; display: inline-block; flex: 0 0 44px; width: 44px; height: 26px; border-radius: 999px; background: #aabac5; transition: background-color 160ms ease; }
.toggle-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #18324426; transition: transform 160ms ease; }
.toggle-input:checked + .toggle-track { background: var(--teal); }
.toggle-input:checked + .toggle-track::after { transform: translateX(18px); }
.toggle-input:focus-visible + .toggle-track { outline: 3px solid #3c95c9; outline-offset: 3px; }
.toggle-input:disabled + .toggle-track { opacity: .5; }
.toggle-control:has(.toggle-input:disabled) { cursor: not-allowed; }
.toggle-state { min-width: 24px; font-weight: 600; }
.toggle-on { display: none; }
.toggle-control:has(.toggle-input:checked) .toggle-on { display: inline; }
.toggle-control:has(.toggle-input:checked) .toggle-off { display: none; }
@media (prefers-reduced-motion: reduce) { .toggle-track, .toggle-track::after { transition: none; } }
.wellness-email-settings { margin-bottom: 32px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.wellness-email-settings legend { padding: 0 8px; font-weight: 650; }
.wellness-email-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.wellness-email-description { margin: 0; }
.wellness-email-timezone { margin: 6px 0 0; font-size: 13px; }
.wellness-email-header .toggle-control { flex-shrink: 0; margin-top: 2px; }
.wellness-email-schedule { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 20px; margin-top: 24px; }
.wellness-email-schedule .field { margin: 0; }
.wellness-email-schedule small { display: block; margin-top: 8px; color: var(--muted); line-height: 1.5; }
.wellness-email-note { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
@media (max-width: 800px) { .wellness-email-schedule { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .wellness-email-header { gap: 16px; } .wellness-email-settings { padding: 16px; } }
@media (max-width: 720px) { .inline-form { align-items: stretch; flex-direction: column; } .inline-form input[type="email"] { min-width: 0; width: 100%; } .wellness-kiosk { padding: 20px 14px; } .wellness-kiosk-header { flex-direction: column; } .wellness-question-row { grid-template-columns: 1fr; } }

.wellness-capture-board { max-width: 1100px; margin: 0 auto; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.wellness-capture-board-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.wellness-capture-board-heading h2 { margin: 0; }
.wellness-capture-board-heading span { color: var(--muted); }
.wellness-face-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 12px 12px; }
.wellness-face-card { display: grid; justify-items: center; gap: 6px; padding: 7px; border: 2px solid transparent; border-radius: 14px; background: transparent; color: var(--ink); cursor: pointer; }
.wellness-face-card:hover, .wellness-face-card:focus-visible { border-color: var(--teal); background: #eaf5f2; outline: none; }
.wellness-face-card.is-complete { border-color: #9ed4b5; background: #f1fbf4; }
.wellness-face-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--surface); }
.wellness-face-photo.initials { display: grid; place-items: center; color: var(--muted); font-size: 24px; font-weight: 750; }
.wellness-face-status { color: #26834b; font-size: 18px; font-weight: 800; line-height: 1; }
.wellness-response-dialog { width: min(420px, calc(100vw - 32px)); margin: auto; padding: 24px; border: 0; border-radius: 18px; box-shadow: 0 16px 50px #18304240; }
.wellness-response-dialog::backdrop { background: #18304266; }
.wellness-dialog-player { display: flex; align-items: center; gap: 14px; }
.wellness-dialog-player h2 { margin: 0; }
.wellness-dialog-photo { display: grid; place-items: center; width: 64px; height: 64px; flex: 0 0 64px; overflow: hidden; border-radius: 50%; background: var(--surface); color: var(--muted); font-weight: 750; }
.wellness-dialog-photo img { width: 100%; height: 100%; object-fit: cover; }
.wellness-dialog-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 14px; }
.wellness-dialog-option { display: grid; justify-items: center; gap: 5px; padding: 13px 8px; border: 1px solid var(--line); border-radius: 12px; background: white; cursor: pointer; }
.wellness-dialog-option span { font-size: 30px; line-height: 1; }
.wellness-dialog-option-bad { border-color: #e5a5a0; background: #fff1ef; color: #b3261e; }
.wellness-dialog-option-neutral { border-color: #e6c96d; background: #fff9e8; color: #8d6800; }
.wellness-dialog-option-good { border-color: #9ed4b5; background: #effaf2; color: #237544; }
.wellness-dialog-option-bad:hover, .wellness-dialog-option-bad:focus-visible { border-color: #d5665f; }
.wellness-dialog-option-neutral:hover, .wellness-dialog-option-neutral:focus-visible { border-color: #d5ad38; }
.wellness-dialog-option-good:hover, .wellness-dialog-option-good:focus-visible { border-color: #70ba8b; }
.wellness-dialog-cancel { width: 100%; }
.historical-responses-note { margin: 0 0 24px; padding: 16px 20px; border-left: 3px solid #b9cdd9; border-radius: 6px; background: #edf3f7; }
.historical-responses-note p { margin: 0; line-height: 1.5; max-width: 80ch; }
.historical-responses-note p + p { margin-top: 4px; font-size: 13px; }
.historical-responses-table th:first-child { width: 45%; }
.historical-responses-table td:last-child { width: 140px; white-space: nowrap; }
.historical-response-group { border: 0; margin: 0; padding: 0; }
.historical-response-choices { display: grid; grid-template-columns: repeat(3, 80px); gap: 8px; }
.historical-response-option { position: relative; margin: 0; cursor: pointer; }
.historical-response-input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.historical-response-option .wellness-dialog-option { position: relative; margin: 0; padding: 9px 8px; border-radius: 8px; }
.historical-response-option .wellness-dialog-option span { font-size: 26px; }
.historical-response-option strong { font-size: 12px; }
.historical-response-input:checked + .wellness-dialog-option { box-shadow: inset 0 0 0 1px currentColor; }
.historical-response-input:checked + .wellness-dialog-option::after { content: "✓"; position: absolute; top: 3px; right: 5px; font-size: 11px; font-weight: 750; }
.historical-response-input:focus-visible + .wellness-dialog-option { outline: 3px solid #3c95c9; outline-offset: 3px; }
.historical-response-unrecorded { display: block; margin-top: 6px; font-size: 12px; }
.historical-response-group:has(input:checked) .historical-response-unrecorded { display: none; }
@media (max-width: 760px) { .historical-responses-table { min-width: 620px; } .historical-responses-note { padding: 14px 16px; } }
.event-check-in-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 20px 0; text-align: center; }
.event-check-in-empty p { margin-bottom: 4px; }
.event-check-in-summary { margin: 20px 0; }
.event-check-in-summary-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.event-check-in-summary-heading h2 { margin: 2px 0 0; }
.event-check-in-response-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.event-check-in-response { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 999px; background: var(--surface); }
.event-check-in-response strong { font-size: 12px; }
.event-check-in-response-good { background: #e4f5e9; color: #237544; }
.event-check-in-response-neutral { background: #fff5d8; color: #8d6800; }
.event-check-in-response-bad { background: #fde8e6; color: #b3261e; }
.wellness-kiosk-list { max-width: none; }
.kiosk-mode { background: #f5f8fa; }
.kiosk-mode .app-header, .kiosk-mode .workspace-header, .kiosk-mode .app-sidebar { display: none !important; }
.kiosk-mode > .page { max-width: none; margin: 0; padding: 0; }
.kiosk-mode #main { min-height: 100dvh; }
.wellness-capture-title { display: flex; align-items: baseline; justify-content: center; gap: 18px; }
.wellness-capture-title h1 { margin: 0; }
.wellness-capture-title span { color: var(--muted); font-size: 18px; font-weight: 600; }
.wellness-kiosk-footer { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 1100px; margin: 28px auto 0; padding: 18px 0 4px; }
.wellness-kiosk-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; text-decoration: none; }
.wellness-kiosk-brand img { object-fit: contain; }
@media (max-width: 800px) { .wellness-face-photo { width: 78px; height: 78px; } }
@media (max-width: 520px) { .wellness-capture-board { padding: 14px; } .wellness-capture-board-heading, .event-check-in-summary-heading { align-items: flex-start; flex-direction: column; } .wellness-capture-title { align-items: center; flex-direction: column; gap: 2px; } }

/* Independent calendar planning periods: green microcycles, yellow Rolling. */
.calendar-planning-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.calendar-planning-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.calendar-planning-legend small { margin-left: auto; font-size: 11px; }
.planning-line { display: inline-block; width: 22px; height: 4px; border-radius: 3px; }
.microcycle-line { background: #278359; }
.rolling-line { background: #d6a316; }
.microcycle-indicator, .editing-microcycles .microcycle-indicator { background: #e0f0e8; border-color: #a6cdb9; border-bottom: 3px solid #278359; }
.rolling-indicators { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 0 0 7px; }
.rolling-indicators:empty { display: none; }
.rolling-indicator { min-width: 0; margin: 0 5px; padding: 5px 12px; border: 1px solid #e5d08d; border-bottom: 3px solid #d6a316; border-radius: 999px; background: #fff6d7; color: #735511; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.rolling-indicator:hover { background: #ffedb1; }
.rolling-indicator.continues-before { border-left-style: dashed; border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.rolling-indicator.continues-after { border-right-style: dashed; border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.session-rolling-label { display: inline-block; color: #735511; background: #fff6d7; border-radius: 4px; padding: 2px 5px; font-size: 10px; line-height: 1.3; }
.year-planning-lines { position: absolute; left: 4px; right: 4px; bottom: 2px; display: grid; gap: 2px; }
.year-planning-lines i { display: block; height: 2px; border-radius: 2px; }
@media (max-width: 760px) {
  .calendar-planning-legend small { width: 100%; margin-left: 0; }
  .rolling-indicator { padding-inline: 5px; font-size: 10px; }
}

/* Both planning lanes share the calendar edit mode. */
.calendar-workspace:not(.editing-microcycles) .rolling-indicators:not(.has-rolling) { display: none; }
.rolling-indicator { position: relative; display: flex; align-items: center; grid-row: 1; z-index: 2; }
.rolling-select-day, .rolling-edit-link, .rolling-resize-handle { display: none; }
.editing-microcycles .rolling-read-label { display: none; }
.editing-microcycles .rolling-edit-link { display: block; color: inherit; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.editing-microcycles .rolling-indicators { background: #fffae9; padding: 6px 0; min-height: 46px; }
.editing-microcycles .rolling-select-day { display: flex; align-items: center; justify-content: center; width: 100%; height: 34px; border: 0; border-right: 1px dashed #e5d08d; border-radius: 0; background: transparent; color: #927221; cursor: ew-resize; font-size: 17px; padding: 0; }
.editing-microcycles .rolling-select-day:disabled { color: transparent; cursor: not-allowed; }
.editing-microcycles .rolling-select-day:hover, .editing-microcycles .rolling-selected { background: #ffedb1; }
.editing-microcycles .rolling-indicator { padding-inline: 20px; }
.rolling-resize-handle { position: absolute; top: 0; bottom: 0; width: 14px; padding: 0; border: 0; background: transparent; color: #735511; cursor: ew-resize; touch-action: none; z-index: 5; }
.editing-microcycles .rolling-resize-handle { display: block; }
.rolling-resize-handle.resize-start { left: 2px; }
.rolling-resize-handle.resize-end { right: 2px; }
.rolling-indicator.microcycle-drag-preview { outline-color: #d6a316; }
.rolling-indicator.microcycle-drag-preview.invalid { outline-color: #b43b3b; }

.rolling-plan-popover { display: flex; margin-top: 6px; margin-left: 0; }
.rolling-plan-trigger { display: block; font-size: 11px; }
.rolling-plan-warning { color: #996613; }
.rolling-plan-popover.has-warning { display: inline-flex; margin-top: 0; margin-left: 6px; vertical-align: middle; }
.rolling-plan-icon-trigger { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; }
.rolling-plan-icon-trigger .navigation-icon { width: 18px; height: 18px; }
.rolling-plan-icon-trigger:hover { background: #fff4d6; }
.rolling-plan-icon-trigger:focus-visible { outline: 2px solid #996613; outline-offset: 2px; }
.training-metric-value, .rolling-monitor-value-line { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.training-metric-value > .ocp-tooltip, .rolling-monitor-value-line > .ocp-tooltip { flex: none; margin: 0; }
.player-target-row .training-role-details { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.training-role-details > .ocp-tooltip { display: inline-flex; flex: none; margin: 0; }
.rolling-plan-details { max-height: min(70vh, 650px); overflow-y: auto; width: min(410px, calc(100vw - 40px)); max-width: min(410px, calc(100vw - 40px)); }

.rolling-monitor-heading { display: flex; align-items: end; justify-content: flex-end; gap: 24px; margin: 12px 0 20px; }
.rolling-monitor-table { width: 100%; min-width: 940px; border-collapse: collapse; text-align: left; font-size: 13px; }
.rolling-monitor-table thead { background: #f1f6fa; color: var(--muted); }
.rolling-monitor-table th, .rolling-monitor-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); vertical-align: middle; }
.rolling-monitor-table th:last-child, .rolling-monitor-table td:last-child { border-right: 0; }
.rolling-monitor-table tbody th { min-width: 190px; background: transparent; }
.rolling-monitor-table td { min-width: 155px; }
.rolling-monitor-table .rolling-player-position { min-width: 70px; }
.rolling-monitor-table .rolling-player-role { min-width: 110px; }
.rolling-monitor-value { display: block; font-size: 17px; line-height: 1.2; font-variant-numeric: tabular-nums; margin-bottom: 2px; }
.rolling-monitor-value-line { margin-bottom: 2px; }
.rolling-monitor-value-line .rolling-monitor-value { margin-bottom: 0; }
.rolling-monitor-table small { display: block; color: var(--muted); margin-top: 3px; font-size: 11px; line-height: 1.3; font-weight: normal; }
.rolling-monitor-trend { width: 140px; height: 44px; display: block; }
.rolling-monitor-table .squad-photo { width: 32px; height: 32px; flex: 0 0 32px; }
.rolling-monitor-table .squad-identity { gap: 8px; }
.rolling-empty-value { color: #7b8995; font-size: 13px; font-weight: 400; }
.rolling-overview-heading { display: flex; align-items: center; gap: 8px; margin: 14px 0 18px; }
.rolling-overview-heading p { margin: 0; font-size: 12px; line-height: 1.6; }
.rolling-overview-heading p span { font-size: 11px; }
.rolling-monitor-table.rolling-overview-table { min-width: 1600px; }
.rolling-overview-table th.rolling-player-column { position: sticky; left: 0; z-index: 2; min-width: 220px; background: white; box-shadow: 1px 0 0 var(--line); }
.rolling-overview-table thead th.rolling-player-column { z-index: 3; background: #f1f6fa; }
.rolling-overview-table tbody tr:nth-child(even) th.rolling-player-column { background: #f8fbff; }
.rolling-monitor-table.rolling-overview-table .rolling-metric-cell { min-width: 145px; padding: 12px; }
.rolling-cell-line { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 5px; }
.rolling-cell-label { color: var(--muted); font-size: 11px; }
.rolling-cell-value { font-size: 13px; font-variant-numeric: tabular-nums; }
.rolling-cell-line[data-measure="acute"] .rolling-cell-value { font-size: 17px; }
.rolling-cell-details { display: block; margin: 6px 0 0; }
.rolling-cell-details-trigger { padding: 0; border: 0; background: transparent; color: var(--blue); font-size: 11px; cursor: pointer; }
.rolling-cell-details-trigger:hover { text-decoration: underline; }
.rolling-cell-details-trigger:focus-visible { outline: 2px solid #3c95c9; outline-offset: 3px; }
.ocp-tooltip-content.rolling-metric-details { width: 430px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 18px; border-radius: 12px; }
.rolling-metric-details .rolling-details-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rolling-details-heading > strong { font-size: 15px; }
.rolling-metric-details .rolling-details-metric { padding: 3px 8px; border-radius: 5px; background: #edf4f8; color: var(--blue); font-weight: 700; font-size: 12px; }
.rolling-metric-details .rolling-details-reference { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 12px; }
.rolling-details-reference > strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.rolling-metric-details .rolling-details-periods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 14px 0; }
.rolling-details-period { min-width: 0; }
.rolling-details-period > strong { margin: 4px 0; font-size: 16px; font-variant-numeric: tabular-nums; }
.rolling-metric-details .rolling-details-label { font-size: 11px; font-weight: 600; }
.rolling-metric-details .rolling-details-caption, .rolling-metric-details .rolling-details-dates { font-size: 11px; line-height: 1.5; }
.rolling-details-dates { margin-top: 6px; }
.rolling-details-trend { border-top: 1px solid var(--line); padding-top: 12px; }
.rolling-metric-details .rolling-details-trend-heading { display: flex; justify-content: space-between; align-items: center; }
.rolling-details-trend-heading strong { font-size: 12px; }
.rolling-details-trend-heading > span { font-size: 11px; }
.rolling-detail-trend { display: block; width: 100%; height: auto; margin-top: 8px; }
.rolling-metric-details .rolling-details-trend-dates { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; }
.rolling-metric-details .rolling-details-legend { margin-top: 8px; font-size: 10px; }
.rolling-details-legend::before { content: ""; display: inline-block; width: 10px; height: 6px; margin-right: 5px; background: #d9f1e3; }
@media (max-width: 480px) {
  .ocp-tooltip-content.rolling-metric-details { padding: 14px; }
  .rolling-details-period > strong { font-size: 14px; }
}
.rolling-monitor-note { max-width: 90ch; font-size: 12px; line-height: 1.6; color: var(--muted); margin-top: 20px; }

.rolling-value-check { display: inline-flex; color: #26764d; vertical-align: middle; }

.rolling-metric-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.rolling-metric-buttons button { padding: 5px 12px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--muted); font-size: 13px; cursor: pointer; }
.rolling-metric-buttons button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: white; }

.inline-player-plan { display: inline-flex; align-items: center; }
.inline-player-plan-trigger { display: inline-flex; align-items: center; gap: 4px; padding: 3px 5px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 11px; }
.inline-player-plan-trigger .navigation-icon { width: 16px; height: 16px; }
.inline-player-plan-trigger:hover { background: var(--surface); color: var(--ink); }
.inline-player-plan-trigger.has-override { color: var(--teal); background: #e5f4ed; }
.inline-planning-editor { width: 360px; max-width: calc(100vw - 24px); padding: 16px; }
.inline-planning-editor > strong { margin-bottom: 14px; }
.inline-planning-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.inline-planning-fields .field { margin: 0; min-width: 0; }
.inline-planning-fields input, .inline-planning-fields select { width: 100%; min-width: 0; padding: 8px; font-size: 13px; }
.inline-planning-help { margin: 12px 0; font-size: 12px; }
.inline-planning-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-planning-actions .button { padding: 7px 12px; font-size: 13px; }
.inline-planning-error { color: #9b1c31; font-size: 13px; }
.inline-planning-notice { color: var(--teal); font-size: 13px; margin: 12px 0 0; }
.inline-planning-excluded { color: var(--muted); }

/* Exercise authoring: keep the pitch central and its tools within reach. */
.exercise-search { margin: 20px 0 28px; max-width: 560px; }
.exercise-search > div { display: flex; gap: 10px; align-items: center; }
.exercise-search input[type=search] { flex: 1; min-width: 0; }
.exercise-library { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.exercise-card { display: block; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: white; text-decoration: none; }
.exercise-card:hover { border-color: var(--teal); }
.exercise-preview { background: #246c52; height: 190px; }
.exercise-preview svg { width: 100%; height: 100%; }
.exercise-card-copy { padding: 18px; }
.exercise-card-copy h2 { font-size: 20px; margin: 0 0 8px; overflow-wrap: anywhere; }
.exercise-card-copy p { margin: 0 0 16px; color: var(--muted); }
.exercise-card-copy small { color: var(--muted); }
.exercise-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.tactical-workspace { min-width: 0; border: 1px solid var(--line); background: white; border-radius: 10px; overflow: hidden; }
.board-layout { display: grid; grid-template-columns: minmax(0, 1fr) 64px; }
.board-stage { position: relative; min-width: 0; background: #246c52; }
.board-overlay { position: absolute; z-index: 1; inset: 12px 12px auto; display: flex; align-items: start; justify-content: space-between; gap: 12px; pointer-events: none; }
.board-overlay > div { pointer-events: auto; }
.board-pitch-toggle, .board-history { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid #ffffff40; border-radius: 8px; background: #ffffffed; box-shadow: 0 2px 6px #12382b18; }
.board-pitch-toggle button { min-height: 34px; padding: 5px 12px; border: 0; border-radius: 5px; background: transparent; color: var(--ink); font-size: 13px; white-space: nowrap; }
.board-pitch-toggle button[aria-pressed=true] { background: #184e77; color: white; }
.board-tools { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 7px; border-left: 1px solid var(--line); background: #f8fafb; }
.board-tools button, .board-history button, .board-properties-heading button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 9px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #294254; }
.board-history button { width: 34px; height: 34px; padding: 6px; }
.board-tools button:hover, .board-history button:hover, .board-properties-heading button:hover { background: #e5edf2; border-color: #ccdbe4; }
.board-tools button:focus-visible, .board-overlay button:focus-visible, .board-properties button:focus-visible { outline: 2px solid #184e77; outline-offset: 2px; }
.board-tools button:disabled, .board-history button:disabled { opacity: .35; cursor: default; }
.board-tools button[data-tool] { cursor: grab; touch-action: none; user-select: none; }
.board-tools button[data-tool]:active { cursor: grabbing; }
.board-tools-divider { width: 28px; height: 1px; background: var(--line); margin: 4px 0; }
.board-stage > svg { display: block; width: 100%; height: min(70vh, 720px); min-height: 500px; touch-action: none; user-select: none; }
.board-stage > svg:focus-visible, .board-stage > svg.is-drop-target { outline: 3px solid #ffcf40; outline-offset: -3px; }
.board-properties { position: fixed; inset: auto; margin: 0; box-sizing: border-box; width: min(264px, calc(100vw - 24px)); padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); box-shadow: 0 12px 40px #18304230; }
.board-properties-heading { display: flex; align-items: center; justify-content: space-between; margin: -4px -5px 12px 0; }
.board-properties-heading button { width: 30px; height: 30px; padding: 6px; }
.board-properties label { display: block; margin: 0 0 6px; font-size: 13px; }
.board-properties input[type=text] { width: 100%; min-width: 0; }
.board-colors { display: flex; justify-content: space-between; gap: 5px; margin: 16px 0; }
.board-swatch { width: 30px; height: 30px; flex: 0 0 30px; padding: 0; border: 1px solid #18304226; border-radius: 50%; background: var(--swatch-color); }
.board-swatch[aria-pressed=true] { outline: 2px solid #184e77; outline-offset: 3px; }
.board-delete-object { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; color: #ad3434; font-size: 13px; text-align: left; }
.board-delete-object svg { width: 18px; height: 18px; }
.board-help { color: var(--muted); margin: 0; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12px; }
.exercise-details { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.exercise-details h2 { font-size: 20px; margin: 0 0 20px; }
.exercise-details > div { margin: 0 0 20px; }
.exercise-details input, .exercise-details textarea { width: 100%; }
.exercise-delete { margin-top: 32px; }
@media(max-width: 1100px) { .exercise-workspace { grid-template-columns: minmax(0, 1fr); } .exercise-details { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .exercise-details h2, .exercise-details > div:first-of-type, .exercise-details > p { grid-column: 1 / -1; } }
@media(max-width: 600px) { .exercise-details { display: block; } .board-overlay { inset: 8px 8px auto; gap: 6px; } .board-pitch-toggle button { padding: 5px 9px; } .board-layout { grid-template-columns: minmax(0, 1fr) 56px; } .board-tools { padding: 8px 5px; gap: 4px; } .board-stage > svg { height: 520px; min-height: 0; } .exercise-search > div { flex-wrap: wrap; } }
.board-drag-preview { position: fixed; z-index: 10000; pointer-events: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #dce7ee; border-radius: 8px; background: white; color: #294254; box-shadow: 0 4px 12px #18304233; }
.board-drag-preview svg { width: 30px; height: 30px; }
.exercise-tabs { margin-bottom: 20px; }
.exercise-panels .exercise-details { max-width: 760px; display: block; }
.exercise-panels > [hidden] { display: none; }

/* Team exercise database and the coaching sheet beneath each board. */
.exercise-database { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.exercise-folders { border-right: 1px solid var(--line); padding-right: 18px; }
.exercise-folders h2 { font-size: 14px; margin: 24px 10px 8px; color: var(--muted); }
.exercise-folders > p { font-size: 14px; padding: 0 10px; }
.exercise-folders > a { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; padding: 12px 10px; border-radius: 6px; margin-bottom: 4px; }
.exercise-folders > a span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.exercise-folders > a small { color: var(--muted); }
.exercise-folders > a.selected { color: var(--teal); background: #e5f4ed; font-weight: 600; }
.exercise-folders > a:hover { background: #edf4f8; }
.exercise-database-content { min-width: 0; }
.exercise-collection-heading, .exercise-folder-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.exercise-collection-heading { justify-content: space-between; }
.exercise-collection-heading h2 { margin: 0; font-size: 22px; overflow-wrap: anywhere; }
.exercise-folder-actions form { margin: 0; }
.exercise-folder-delete { border: 0; padding: 0; background: none; color: #ad3434; font: inherit; cursor: pointer; }
.exercise-folder-form { max-width: 560px; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.exercise-folder-form input[type=text] { width: 100%; margin-bottom: 24px; }
.exercise-card-copy h3 { margin: 0 0 8px; font-size: 20px; overflow-wrap: anywhere; }
.exercise-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.board-layout { grid-template-columns: minmax(0, 1fr) 168px; }
.board-tools { align-items: stretch; max-height: max(500px, min(70vh, 720px)); overflow-y: auto; overscroll-behavior: contain; }
.board-tool-group summary { padding: 8px 3px; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.board-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.board-tool-grid button { width: 100%; min-width: 0; height: 66px; flex-direction: column; gap: 4px; padding: 5px 2px; }
.board-tool-grid button span { font-size: 10px; line-height: 1.15; text-align: center; }
.board-tool-grid button svg { flex-shrink: 0; }
.board-tools-divider { align-self: center; }
.board-tools > button { align-self: center; }
.board-object-dimensions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.board-object-dimensions input { width: 100%; }
.board-properties input[type=color] { width: 100%; height: 32px; padding: 2px; margin-top: 6px; }
.board-duplicate-object { width: 100%; margin-bottom: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); }
.exercise-panels .exercise-sheet { max-width: none; margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.exercise-sheet > h2, .exercise-sheet > div:first-of-type, .exercise-sheet > p, .exercise-sheet-meta { grid-column: 1 / -1; }
.exercise-sheet > div { min-width: 0; margin: 0; }
.exercise-sheet > h2 { margin: 0; }
.exercise-sheet select { width: 100%; }
.exercise-sheet-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media(max-width: 1000px) { .exercise-database { grid-template-columns: 180px minmax(0, 1fr); gap: 20px; } }
@media(max-width: 700px) { .exercise-database { grid-template-columns: minmax(0, 1fr); } .exercise-folders { display: flex; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 16px; gap: 4px; } .exercise-folders h2 { width: 100%; margin: 8px; } .exercise-folders > a { padding: 8px; gap: 8px; margin: 0; } .exercise-folders > p { margin: 0; } .exercise-panels .exercise-sheet { display: block; } .exercise-sheet > div { margin: 20px 0; } .exercise-sheet-meta { grid-template-columns: 1fr; } .board-layout { grid-template-columns: minmax(0, 1fr) 104px; } .board-tools { max-height: 520px; } .board-tool-grid button { height: 64px; } .board-tool-grid button span { font-size: 9px; } }

/* File-style library: folders and coaching boards share one navigable surface. */
.library-navigation, .library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.library-navigation { padding: 0 0 20px; border-bottom: 1px solid var(--line); }
.library-breadcrumbs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.library-breadcrumbs a { text-decoration: none; color: var(--muted); overflow-wrap: anywhere; }
.library-breadcrumbs a[aria-current=page] { color: var(--ink); font-weight: 600; }
.library-views { display: flex; gap: 8px; }
.library-views a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); text-decoration: none; background: white; font-size: 14px; }
.library-views a.selected { color: #16756b; background: #e5f4ed; border-color: #b2d9ce; }
.library-toolbar { margin: 24px 0 32px; }
.library-search { display: flex; gap: 10px; align-items: center; margin: 0; flex: 1; max-width: 740px; }
.library-search input[type=search] { min-width: 160px; flex: 1; width: 100%; }
.library-search select { width: 180px; }
.library-location-actions { display: flex; align-items: center; gap: 10px; }
.library-folder-section { margin-bottom: 36px; }
.library-folder-section h2, .library-exercise-section h2 { font-size: 18px; margin: 0 0 16px; }
.library-folder-section h2 small, .library-exercise-section h2 small { color: var(--muted); font-size: 14px; font-weight: 400; padding-left: 6px; }
.library-folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.library-folder-card { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; background: white; padding: 16px; position: relative; }
.library-folder-card:hover { border-color: #8db9b4; background: #fbfdfc; }
.library-folder-open { display: flex; gap: 14px; align-items: center; flex: 1; min-width: 0; text-decoration: none; color: var(--ink); }
.library-folder-open > svg { width: 38px; height: 38px; padding: 6px; border-radius: 8px; background: #e5f4ed; color: #16756b; flex-shrink: 0; }
.library-folder-open h3 { font-size: 16px; margin: 0 0 4px; overflow-wrap: anywhere; }
.library-folder-open small { color: var(--muted); font-size: 12px; }
.library-action-menu { position: relative; font-size: 14px; }
.library-action-menu > summary { list-style: none; cursor: pointer; padding: 8px; border-radius: 5px; color: var(--muted); white-space: nowrap; }
.library-action-menu > summary::-webkit-details-marker { display: none; }
.library-action-menu[open] > summary { background: #e5edf2; }
.library-action-menu > div { position: absolute; z-index: 5; right: 0; top: 100%; min-width: 190px; padding: 6px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 24px #18304220; }
.library-action-menu a, .library-action-menu button { display: block; text-align: left; width: 100%; padding: 10px; color: var(--ink); font: inherit; background: white; border: 0; text-decoration: none; border-radius: 4px; }
.library-action-menu a:hover, .library-action-menu button:hover { background: #edf4f8; }
.library-action-menu form { margin: 0; }
.library-action-menu button { color: #ad3434; }
.exercise-explorer .exercise-library { grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); }
.exercise-card-open { display: block; color: inherit; text-decoration: none; }
.exercise-card .exercise-preview { position: relative; height: 180px; }
.library-sequence-badge { position: absolute; bottom: 10px; left: 12px; padding: 4px 8px; border-radius: 4px; background: #ffffffed; color: #183042; font-size: 11px; font-weight: 600; }
.library-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 10px 18px; }
.library-card-footer small { color: var(--muted); font-size: 12px; }
.library-move-button { border: 0; background: none; color: #184e77; font-size: 13px; padding: 4px; }
.library-empty { padding: 50px 24px; border: 1px dashed var(--line); border-radius: 10px; text-align: center; background: #ffffff70; }
.library-empty > svg { width: 36px; height: 36px; color: #16756b; margin: 0 auto 12px; }
.library-empty h3 { margin: 0 0 8px; font-size: 20px; }
.library-empty p { color: var(--muted); margin: 0 0 20px; }
.library-dialog { position: fixed; inset: 0; margin: auto; max-height: calc(100dvh - 32px); overflow-y: auto; width: min(440px, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; box-shadow: 0 16px 80px #18304233; }
.library-dialog::backdrop { background: #18304270; }
.library-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.library-dialog-heading h2 { margin: 0; font-size: 22px; }
.library-dialog-heading button { border: 0; background: transparent; font-size: 26px; padding: 0 6px; }
.library-dialog input[type=text], .library-dialog select { width: 100%; margin-bottom: 20px; }
.exercise-folder-form select { width: 100%; margin-bottom: 24px; }
.board-colors { gap: 4px; }
.board-colors .board-swatch { width: 28px; height: 28px; flex-basis: 28px; }
.board-custom-swatch { position: relative; display: grid !important; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border: 1px solid #18304226; border-radius: 50%; background: conic-gradient(#ef5350, #ffcf40, #16756b, #38bdf8, #184e77, #ef5350); margin: 0 !important; cursor: pointer; }
.board-custom-swatch > span { color: white; font-size: 21px; line-height: 1; text-shadow: 0 1px 3px black; }
.board-custom-swatch input[type=color] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; padding: 0; cursor: pointer; }
.board-custom-swatch.is-selected, .board-custom-swatch:focus-within { outline: 2px solid #184e77; outline-offset: 3px; }
.sequence-transport { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px; border-top: 1px solid var(--line); background: white; }
.sequence-transport button, .sequence-editor button { min-height: 36px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); font-size: 13px; }
.sequence-transport button:hover, .sequence-editor button:hover { background: #edf4f8; }
.sequence-transport > button:first-child { background: #184e77; color: white; border-color: #184e77; min-width: 62px; }
.sequence-transport label { font-size: 12px; margin: 0; }
.sequence-transport .sequence-seek { flex: 1; min-width: 130px; font-size: 0; }
.sequence-seek input { width: 100%; }
.sequence-transport output { font-size: 12px; min-width: 84px; font-variant-numeric: tabular-nums; }
.sequence-transport select { padding: 5px; margin-left: 4px; font-size: 13px; }
.sequence-loop { display: flex; align-items: center; gap: 5px; }
.sequence-caption { padding: 0 16px 14px; margin: 0; color: var(--ink); background: white; font-size: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.sequence-caption:empty { padding: 0; }
.sequence-editor { padding: 18px 16px; border-top: 1px solid var(--line); background: #f8fafb; }
.sequence-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.sequence-heading h2 { font-size: 18px; margin: 0 0 4px; }
.sequence-heading p { font-size: 13px; color: var(--muted); margin: 0; }
.sequence-heading > button { white-space: nowrap; }
.sequence-steps { display: flex; gap: 10px; overflow-x: auto; padding: 4px 3px 12px; }
.sequence-steps .sequence-step { flex: 0 0 120px; padding: 0; overflow: hidden; text-align: left; border-width: 2px; border-color: transparent; background: white; }
.sequence-step[aria-pressed=true] { border-color: #16756b; }
.sequence-step svg { width: 100%; height: 75px; display: block; background: #246c52; }
.sequence-step span { display: block; font-size: 12px; padding: 6px 8px; }
.sequence-step-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.sequence-step-fields { display: grid; grid-template-columns: minmax(160px, 1fr) 3fr; gap: 20px; }
.sequence-step-fields label { font-size: 13px; margin: 0; }
.sequence-step-fields input, .sequence-step-fields textarea { width: 100%; }
.sequence-step-fields small { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; }
.sequence-editor button:disabled { opacity: .4; cursor: default; }
.sequence-exit { display: none; }
.tactical-workspace.is-playing .sequence-editor { pointer-events: none; opacity: .55; }
.exercise-presenting { overflow: hidden; }
.tactical-workspace.is-presenting { position: fixed; inset: 0; z-index: 10000; border: 0; border-radius: 0; overflow: auto; background: #183042; display: flex; flex-direction: column; }
.tactical-workspace.is-presenting .board-layout { display: block; flex: 1; min-height: 0; }
.tactical-workspace.is-presenting .board-stage { height: 100%; }
.tactical-workspace.is-presenting .board-stage > svg { height: 100%; min-height: 0; max-height: calc(100dvh - 160px); }
.tactical-workspace.is-presenting .board-tools, .tactical-workspace.is-presenting .board-overlay, .tactical-workspace.is-presenting .sequence-editor, .tactical-workspace.is-presenting .board-help, .tactical-workspace.is-presenting .sequence-present { display: none; }
.tactical-workspace.is-presenting .sequence-exit { display: inline-block; }
.tactical-workspace.is-presenting .sequence-caption { font-size: 20px; padding: 14px 24px; }
.tactical-workspace.is-presenting .sequence-caption:empty { padding: 0; }
@media(max-width: 700px) { .library-toolbar { gap: 12px; } .library-search { flex-wrap: wrap; } .library-search input[type=search] { flex-basis: 100%; } .library-search select { flex: 1; } .library-folder-grid { grid-template-columns: minmax(0, 1fr); } .library-navigation { align-items: start; gap: 14px; } .sequence-step-fields { grid-template-columns: minmax(0, 1fr); } .sequence-transport { gap: 8px; } .sequence-transport .sequence-seek { flex-basis: calc(100% - 110px); } .sequence-heading { flex-wrap: wrap; } }
.tactical-workspace.is-playing .sequence-editor { pointer-events: auto; opacity: 1; }
.tactical-workspace.is-playing .sequence-step-fields, .tactical-workspace.is-playing .sequence-step-actions { opacity: .55; }
.library-search .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.board-custom-swatch.is-selected { background: var(--custom-color); }

.sequence-step-card { position: relative; flex: 0 0 120px; }
.sequence-step-card .sequence-step { width: 100%; }
.sequence-step-card .sequence-step-options { position: absolute; top: 5px; right: 5px; width: 28px; height: 24px; padding: 0; border: 1px solid #ffffff70; border-radius: 5px; background: #ffffffed; color: var(--ink); font-size: 12px; letter-spacing: 1px; }
.sequence-editor .sequence-step-add { flex: 0 0 120px; min-height: 107px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px dashed #a5b9c7; background: #f3f7f9; color: var(--muted); }
.sequence-editor .sequence-step-add:hover { border-color: var(--teal); color: var(--teal); background: #edf5f3; }
.sequence-step-add span:first-child { font-size: 28px; font-weight: 400; line-height: 1; }
.sequence-step-add span:last-child { font-size: 12px; }
.sequence-step-popover { width: min(320px, calc(100vw - 24px)); }
.sequence-step-popover .sequence-step-fields { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.sequence-step-popover .sequence-step-actions { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sequence-step-popover .sequence-step-actions button { text-align: left; padding: 8px; border: 0; background: transparent; font-size: 13px; }
.sequence-step-popover .sequence-step-actions button:hover { background: #edf3f6; }
.sequence-step-popover [data-tactical-board-target=stepDelete] { color: #b42318; }

.sequence-step-popover .board-properties-heading button { min-height: 30px; padding: 5px; border: 0; }
.sequence-step-popover .board-properties-heading button svg { width: 20px; height: 20px; flex-shrink: 0; }
.sequence-step-card .sequence-step-options { min-height: 24px; }

/* Keep library filters and search in one compact navigation row. */
.exercise-explorer .exercise-folder-actions .button, .library-empty .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.exercise-explorer .exercise-folder-actions .navigation-icon, .library-empty .button .navigation-icon { width: 18px; height: 18px; flex-shrink: 0; }
.exercise-explorer .library-navigation { gap: 12px 20px; padding-bottom: 16px; margin-bottom: 22px; }
.library-controls { display: flex; flex: 1; min-width: 0; align-items: center; justify-content: flex-end; gap: 16px; }
.library-controls .library-search { flex: 0 1 440px; gap: 6px; max-width: 440px; }
.library-controls .library-search input[type=search] { width: 220px; min-width: 120px; min-height: 36px; height: 36px; padding: 7px 10px; font-size: 13px; }
.library-controls .library-search select { width: 160px; min-height: 36px; height: 36px; padding: 7px 28px 7px 10px; font-size: 13px; }
.library-controls .library-search-submit { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: white; flex-shrink: 0; }
.library-controls .library-search-submit:hover { background: #edf4f8; }
.library-controls .library-views { flex-shrink: 0; }
.exercise-explorer .library-location-actions { width: 100%; justify-content: space-between; }
@media(max-width: 1100px) { .library-controls { flex: 1; } .library-controls .library-search { flex-basis: 340px; } .library-controls .library-search input[type=search] { width: 150px; } }
@media(max-width: 700px) { .exercise-explorer .library-breadcrumbs { width: 100%; } .library-controls { width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 10px; } .library-controls .library-search { flex: 1 1 100%; max-width: none; flex-wrap: nowrap; } .library-controls .library-search input[type=search] { flex: 1; flex-basis: auto; width: 100%; min-width: 0; } .library-controls .library-search select { flex: 0 0 140px; width: 140px; } }

.sequence-transport > button:not(.sequence-exit) { display: inline-flex; align-items: center; justify-content: center; width: 36px; min-width: 36px; height: 36px; padding: 7px; flex-shrink: 0; }
.sequence-transport > button svg { display: block; width: 20px; height: 20px; }
.sequence-transport .sequence-pause-icon, .sequence-transport [aria-pressed=true] .sequence-play-icon { display: none; }
.sequence-transport [aria-pressed=true] .sequence-pause-icon { display: block; }
.sequence-transport .sequence-speed { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.sequence-transport .sequence-speed select { height: 36px; min-height: 36px; margin: 0; padding: 5px 28px 5px 10px; width: 76px; }
.sequence-transport .sequence-seek { display: flex; align-items: center; }
.sequence-transport .sequence-seek input { margin: 0; }
.sequence-transport .sequence-loop { min-height: 36px; white-space: nowrap; }
.sequence-transport .sequence-loop input { margin: 0; }

.board-tool-grid button .board-element-icon { width: 34px; height: 34px; padding: 2px; border-radius: 5px; background: #246c52; }
.sequence-transport > button.sequence-speed { width: 48px; min-width: 48px; font-variant-numeric: tabular-nums; }

.exercise-save-actions { display: flex; justify-content: flex-end; margin-top: 20px; }

.library-move-dialog { width: min(480px, calc(100vw - 32px)); }
.library-move-dialog .library-dialog-heading { align-items: flex-start; margin-bottom: 20px; }
.library-move-dialog .library-dialog-heading h2 { font-size: 20px; line-height: 1.3; }
.library-move-dialog .library-dialog-heading p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.library-move-dialog .library-dialog-heading > button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; line-height: 1; border-radius: 5px; flex-shrink: 0; }
.library-move-dialog .library-dialog-heading > button:hover { background: #edf3f6; }
.library-move-exercise { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 8px; background: #f6f9fb; }
.library-move-exercise > svg { width: 36px; height: 36px; padding: 7px; border-radius: 6px; background: #e5f4ed; color: #16756b; flex-shrink: 0; }
.library-move-exercise > div { min-width: 0; }
.library-move-exercise span { display: block; margin-bottom: 3px; font-size: 12px; color: var(--muted); }
.library-move-exercise strong { display: block; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.library-move-dialog label { margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.library-move-dialog select { margin-bottom: 0; font-size: 14px; }
.library-move-help { margin: 8px 0 24px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.library-dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.library-dialog-actions .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; }
.library-dialog-actions svg { width: 17px; height: 17px; }

.template-categories { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 20px 0 12px; }
.template-categories a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); text-decoration: none; font-size: 13px; }
.template-categories a[aria-current=page] { background: #e5f4ed; border-color: #b2d9ce; color: #16756b; }
.template-adaptation-note { max-width: 900px; margin-bottom: 24px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.exercise-template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.exercise-template-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: white; }
.exercise-template-card .exercise-preview { height: 210px; position: relative; background: #246c52; }
.exercise-template-card .exercise-preview svg { object-fit: contain; }
.template-category-badge { position: absolute; top: 12px; left: 12px; padding: 4px 8px; background: #ffffffed; border-radius: 4px; font-size: 11px; font-weight: 600; color: #184e77; }
.exercise-template-copy { padding: 18px; flex: 1; }
.template-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.exercise-template-copy h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.template-objective { margin: 0 0 14px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.template-details { font-size: 13px; line-height: 1.5; }
.template-details summary { cursor: pointer; color: #184e77; font-weight: 600; }
.template-details p { margin: 10px 0 0; }
.exercise-template-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); }
.template-source { font-size: 12px; color: var(--muted); }
.exercise-template-footer .button { font-size: 13px; padding: 8px 12px; }
.exercise-template-notice { padding: 12px 16px; margin: 0 0 16px; border: 1px solid #b2d9ce; border-radius: 7px; background: #e5f4ed; color: #23594e; font-size: 14px; }
.library-empty .library-template-empty-link { display: block; width: fit-content; margin: 14px auto 0; font-size: 14px; }
@media(max-width: 700px) { .exercise-template-grid { grid-template-columns: minmax(0, 1fr); } .template-categories { gap: 6px; } }

.settings-back-link { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin: 0 0 10px; border-radius: 5px; font-size: 13px; color: #66727c; text-decoration: none; }
.settings-back-link:hover { background: #e6e8ea; color: var(--ink); }
.settings-navigation .sidebar-settings { margin-top: 14px; }
.settings-navigation .sidebar-settings:first-child { margin-top: 0; }
.has-sidebar > .settings-page { padding-top: 40px; }
.settings-page > .page-heading, .settings-page > .account-settings-columns { max-width: 800px; margin-left: auto; margin-right: auto; }
.settings-page > .account-settings-columns { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.settings-page .form-panel { border-color: #e2e6e9; border-radius: 10px; box-shadow: 0 1px 2px #18304205; }
@media(max-width: 760px) { .has-sidebar > .settings-page { padding-top: 22px; } }

.has-sidebar .toast-stack { top: auto; bottom: 20px; right: 24px; }
@media(max-width: 760px) { .has-sidebar .toast-stack { right: 14px; bottom: 14px; } }
.has-sidebar .success-toast { pointer-events: none; }
.has-sidebar .success-toast-close { pointer-events: auto; }

/* Form surfaces: workspace → white card → quiet inset groups and controls. */
body.has-sidebar { --workspace-surface: #f7f8fa; --form-surface: #ffffff; --form-inset: #fafbfc; --form-border: #e4e7eb; }
.has-sidebar > .page { background: var(--workspace-surface); }
.has-sidebar .form-panel, .has-sidebar .exercise-sheet { background: var(--form-surface); border-color: var(--form-border); box-shadow: 0 1px 2px #172b3a05; }
.has-sidebar .form-panel :where(fieldset, .period-card) { background: var(--form-inset); border-color: var(--form-border); }
.has-sidebar .form-panel :where(.staff-contact, .managed-period), .has-sidebar .form-actions { border-color: #eef0f3; }
.has-sidebar input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]):not([type=submit]), .has-sidebar select, .has-sidebar textarea { background-color: var(--form-surface); border-color: var(--form-border); box-shadow: 0 1px 2px #172b3a04; }
.has-sidebar input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]):not([type=submit]):hover, .has-sidebar select:hover, .has-sidebar textarea:hover { border-color: #cdd3da; }
.has-sidebar input:focus-visible, .has-sidebar select:focus-visible, .has-sidebar textarea:focus-visible { outline-width: 2px; outline-offset: 2px; }

.has-sidebar .form-heading, .has-sidebar .form-panel { width: 100%; max-width: 640px; margin-left: auto; margin-right: auto; }
.has-sidebar .settings-page > .page-heading, .has-sidebar .settings-page > .account-settings-columns { max-width: 640px; }
.has-sidebar .team-settings-columns, .has-sidebar .season-settings-columns { width: 100%; max-width: 640px; margin-left: auto; margin-right: auto; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.has-sidebar .exercise-panels .exercise-sheet { width: 100%; max-width: 640px; margin-left: auto; margin-right: auto; }

.team-members-list { margin-top: 24px; }
.member-permissions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.member-permissions label { flex-basis: 100%; }

/* Editors occupy the workspace content area and scroll with the page. */
.has-sidebar .content-editor {
  position: static;
  display: block;
  width: 100%;
  max-width: 1120px;
  max-height: none;
  height: auto;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.has-sidebar .content-editor:not(.event-details-modal) { max-width: 640px; }
.content-editor .season-modal-heading { margin-bottom: 24px; }

.has-sidebar .content-editor.event-details-modal { max-width: none; }
.content-editor .text-button { font-size: 14px; line-height: 1.4; }
.event-workspace-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 28px; }
.event-workspace-main { min-width: 0; }
.event-properties { position: sticky; top: 0; display: grid; gap: 16px; min-width: 0; }
.event-property-card { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--form-surface, #fff); }
.event-property-card h2 { margin: 0 0 18px; font-size: 14px; }
.event-property-card dl { margin: 0; display: grid; gap: 16px; font-size: 13px; }
.event-property-card dl > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; }
.event-property-card dt { color: var(--muted); }
.event-property-card dd { margin: 0; overflow-wrap: anywhere; }
.event-property-card .button { width: 100%; }
.event-back-link { font-size: 13px; }
@media (max-width: 1100px) { .event-workspace-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; } }
@media (max-width: 900px) { .event-workspace-layout { grid-template-columns: minmax(0, 1fr); } .event-properties { position: static; } }

.exercise-panels .exercise-sheet, .exercise-sheet-meta { grid-template-columns: minmax(0, 1fr); }

/* Quiet property rails keep the data itself in the foreground. */
.event-properties { border-left: 1px solid var(--line); padding-left: 22px; gap: 26px; }
.event-property-card { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.event-property-card h2 { margin-bottom: 16px; color: var(--muted); font-size: 12px; font-weight: 600; }
.event-property-card dl { gap: 12px; }
.event-property-card dl > div { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.event-property-card dt, .event-property-card dd { margin: 0; font-size: 12px; line-height: 1.5; }
.event-property-card dd { font-weight: 400; }
.event-property-card .muted { font-size: 12px; line-height: 1.5; }
.event-property-card .button { width: auto; font-size: 12px; padding: 7px 10px; }
.player-workspace-layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 28px; align-items: start; margin-top: 28px; }
.player-load-content { min-width: 0; }
.player-load-content h2 { margin: 0 0 16px; font-size: 16px; }
.player-load-content .player-load-date { margin: 0 0 18px; line-height: 1.6; }
.player-sidebar .profile-actions { display: grid; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.player-sidebar .profile-actions .button { justify-content: flex-start; width: 100%; font-size: 12px; }
.has-sidebar .player-profile { padding: 0 0 24px; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.player-load-content .player-load-table { min-width: 720px; width: 100%; }
.player-load-content .player-load-table tbody th { min-width: 65px; width: 75px; }
.player-load-content .player-load-table th, .player-load-content .player-load-table td { padding: 12px 10px; white-space: normal; }
.player-load-content .player-load-table thead th { font-size: 11px; line-height: 1.5; }
.player-load-content .player-load-table .rolling-monitor-value { font-size: 17px; }
.player-load-content .player-load-table small { font-size: 11px; }
.player-load-content .player-load-table td:nth-child(5) { min-width: 50px; }
@media (max-width: 1200px) { .player-workspace-layout { grid-template-columns: minmax(0, 1fr); } .player-sidebar { position: static; border-left: 0; padding: 20px 0 0; border-top: 1px solid var(--line); } .player-sidebar .profile-actions { display: flex; flex-wrap: wrap; } .player-sidebar .profile-actions .button { width: auto; } }
@media (max-width: 900px) { .event-properties { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; } }

.event-workspace-layout > .event-properties { padding: 20px; background: #eef1f4; border: 1px solid #e0e5e9; border-radius: 8px; }
.event-back-caret { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: -8px; color: var(--muted); border-radius: 5px; }
.event-back-caret:hover { background: #e7ecef; color: var(--ink); }
.event-back-caret svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.settings-list-page { width: 100%; max-width: 760px; margin: 0 auto; }
.has-sidebar .settings-list-page > .page-heading { max-width: none; margin-bottom: 30px; }
.settings-collection { background: var(--form-surface, #fff); border: 1px solid #e2e6e9; border-radius: 9px; box-shadow: 0 1px 2px #172b3a04; }
.settings-collection-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid #eef0f2; }
.settings-collection-heading h2 { margin: 0; font-size: 13px; font-weight: 600; }
.settings-add { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; color: var(--muted); border: 0; background: transparent; border-radius: 5px; font-size: 22px; text-decoration: none; cursor: pointer; }
.settings-add:hover { background: #f0f2f4; }
.settings-row { position: relative; display: flex; align-items: center; gap: 14px; margin: 0 16px; padding: 17px 4px; min-width: 0; }
.settings-row + .settings-row { border-top: 1px solid #eef0f2; }
.settings-row-icon, .settings-member-avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 7px; background: #f3f5f7; color: #6b7680; object-fit: cover; }
.settings-row-icon .navigation-icon { width: 18px; height: 18px; }
.settings-row-copy { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; color: inherit; text-decoration: none; }
.settings-row-copy strong { font-size: 13px; font-weight: 500; }
.settings-row-copy small, .settings-row-copy small a { color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.settings-row-action { flex-shrink: 0; padding: 6px; background: none; border: 0; color: var(--muted); font-size: 11px; text-decoration: none; cursor: pointer; }
.settings-row-action .navigation-icon { width: 16px; height: 16px; }
.settings-row-copy input { width: 100%; padding: 3px 0; border: 1px solid transparent; border-radius: 3px; background: transparent; font-size: 13px; }
.settings-row-copy input:hover { border-color: #e2e6e9; }
.settings-row-copy input:focus { padding-left: 6px; border-color: var(--blue); background: white; }
.position-code { font-size: 11px; font-weight: 600; }
.settings-list-empty { padding: 16px 20px; font-size: 13px; }
.settings-pending-invitations { margin-top: 24px; }
.settings-member-level { color: var(--muted); font-size: 11px; }
.settings-row-menu { position: relative; }
.settings-row-menu summary { cursor: pointer; list-style: none; color: var(--muted); font-weight: 700; padding: 8px; }
.settings-row-menu summary::-webkit-details-marker { display: none; }
.settings-row-menu-content { position: absolute; top: 100%; right: 0; z-index: 5; width: 240px; padding: 16px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px #172b3a18; }
.settings-row-menu-content label { font-size: 12px; }
.settings-row-menu-content select { width: 100%; margin: 8px 0; }
.settings-row-menu-content .text-button { margin-top: 12px; font-size: 12px; }
.member-invitation-dialog { position: fixed; inset: 0; margin: auto; width: calc(100vw - 32px); max-width: 460px; max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 20px 70px #172b3a30; }
.member-invitation-dialog::backdrop { background: #172b3a55; }
.member-invitation-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.member-invitation-heading h2 { margin: 0; font-size: 17px; }
.member-invitation-dialog .form-panel { border: 0; box-shadow: none; padding: 0; margin: 0; }
.member-invitation-dialog .form-panel > h2 { display: none; }
@media (max-width: 600px) { .settings-row { gap: 10px; margin: 0 12px; } .settings-member-level { max-width: 65px; } .settings-row-menu-content { width: 210px; } }

.positions-catalog .settings-row-copy input { border-color: transparent; background: transparent; padding: 3px 0; box-shadow: none; }
.positions-catalog .settings-row-copy input:hover { border-color: #e2e6e9; }
.positions-catalog .settings-row-copy input:focus { border-color: var(--blue); background: white; padding-left: 6px; }
.player-sidebar .profile-actions { width: 100%; margin: 0; }

.content-editor.event-details-modal > .season-modal-heading {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 0;
  margin-bottom: 12px;
  background: var(--workspace-surface, #f7f8fa);
}
.event-workspace-main .event-tab-list {
  position: sticky;
  top: var(--event-heading-height, 52px);
  z-index: 19;
  background: var(--workspace-surface, #f7f8fa);
}
.event-workspace-layout > .event-properties { margin-top: 0; top: calc(var(--event-heading-height, 52px) + 12px); }

/* Let the sticky event header meet the top edge of its scroll container. */
.has-sidebar > .page:has(.content-editor.event-details-modal) { padding-top: 0; }

.event-data-status { margin: 0 0 6px; font-size: 12px; font-weight: 500; }
.event-data-actions { display: grid; gap: 8px; margin-top: 14px; font-size: 12px; }

/* Compact property rail with quiet tags and explicit data status. */
.event-workspace-layout > .event-detail-sidebar { padding: 18px; gap: 20px; background: #f0f2f5; border-color: #e1e5ea; border-radius: 9px; }
.event-detail-sidebar .event-property-card h2 { color: #505b69; font-size: 12px; font-weight: 600; margin: 0 0 16px; }
.event-detail-sidebar .event-property-card dl { gap: 11px; }
.event-detail-sidebar .event-property-card dl > div { grid-template-columns: 94px minmax(0, 1fr); gap: 8px; align-items: center; min-height: 24px; }
.event-detail-sidebar .event-property-card dt { color: #737d8b; font-size: 11px; white-space: nowrap; }
.event-detail-sidebar .event-property-card dd { color: #344152; font-size: 12px; }
.event-detail-sidebar .event-property-card dd > a { color: #485c75; text-decoration: none; }
.event-detail-sidebar .event-property-card dd > a:hover { text-decoration: underline; }
.event-property-badge { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 3px 7px; border: 1px solid transparent; border-radius: 5px; font-size: 11px; font-weight: 500; line-height: 1.3; }
.event-property-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.event-property-badge-training, .event-property-badge-imported { color: #24745b; background: #e3eee8; border-color: #d3e5db; }
.event-property-badge-match { color: #3f6092; background: #e5ebf5; border-color: #d7e0ed; }
.event-property-badge-rest, .event-property-badge-neutral { color: #626d7b; background: #e8ebf0; border-color: #dde2e8; }
.event-property-badge-load { color: #8c6b25; background: #f5edda; border-color: #e9dfc2; }
.event-property-badge-pending { color: #777f8d; background: #e9ecf1; border-color: #dde2e9; }
.event-property-badge .navigation-icon { width: 12px; height: 12px; stroke-width: 2; }
.event-property-status-ring { width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 50%; flex-shrink: 0; }
.event-detail-sidebar .event-data-section { border-top: 1px solid #dfe4e9; padding-top: 18px; }
.event-property-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.event-detail-sidebar .event-property-section-heading h2 { margin: 0; }
.event-detail-sidebar .event-data-section > p { margin: 0; color: #737d8b; font-size: 11px; line-height: 1.6; }
.event-detail-sidebar .event-data-actions { gap: 4px; margin-top: 12px; }
.event-detail-sidebar .event-data-actions a { display: flex; align-items: center; gap: 8px; padding: 7px 6px; margin-left: -6px; border-radius: 5px; color: #485c75; text-decoration: none; font-size: 11px; }
.event-detail-sidebar .event-data-actions a:hover { background: #e4e8ee; color: #273c56; }
.event-detail-sidebar .event-data-actions .navigation-icon, .event-detail-sidebar .event-import-action .navigation-icon { width: 14px; height: 14px; flex-shrink: 0; }
.event-detail-sidebar .event-import-action { display: flex; justify-content: center; gap: 7px; width: 100%; margin-top: 14px; padding: 8px 10px; border-color: #d7dde5; border-radius: 6px; color: #485c75; background: #fafbfc; font-size: 11px; font-weight: 500; box-shadow: 0 1px 2px #172b3a05; }

.player-sidebar .profile-actions .button { gap: 8px; }
.player-sidebar .profile-actions .navigation-icon { width: 16px; height: 16px; flex-shrink: 0; }

.has-sidebar .settings-page > .season-overview-heading { width: 100%; max-width: 640px; margin-inline: auto; align-items: center; }

.has-sidebar .settings-page > .wellness-page-heading { width: 100%; max-width: 640px; margin-inline: auto; }

.event-workspace-main .event-data-empty-state { margin-top: 0; }

/* Settings share one readable content column. Dialogs stay in the top layer. */
.has-sidebar > .settings-page > :not(.toast-stack) { max-width: 640px; margin-left: auto; margin-right: auto; }
.settings-page .settings-list-page, .wellness-settings-stack { width: 100%; max-width: 640px; margin-inline: auto; }
.wellness-settings-stack .wellness-question-list { max-width: none; margin-top: 28px; }
.wellness-settings-stack .wellness-settings-section + .wellness-settings-section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.wellness-settings-stack .wellness-email-schedule { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.wellness-settings-stack .wellness-question-row { grid-template-columns: minmax(0, 1fr) auto auto; }
.wellness-settings-stack .wellness-question-row input[type="text"] { grid-column: 1 / -1; }
.settings-page .season-year-calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .settings-page .season-year-calendar { grid-template-columns: minmax(0, 1fr); } }

.settings-page > turbo-frame { display: block; }

.reference-unit { color: var(--muted); font-size: 11px; }
.load-window-table-scroll { overflow-x: auto; }
.load-window-reference-table { width: 100%; margin: 0; border: 0; border-radius: 0; font-variant-numeric: tabular-nums; }
.load-window-reference-table th, .load-window-reference-table td { padding: 13px 8px; border-left: 0; border-right: 0; font-size: 11px; text-align: right; white-space: nowrap; }
.load-window-reference-table thead th { font-weight: 500; background: #fafbfc; }
.load-window-reference-table th:first-child { padding-left: 20px; text-align: left; }
.load-window-reference-table td:last-child, .load-window-reference-table th:last-child { padding-right: 20px; }
.load-window-days { display: inline-flex; align-items: baseline; gap: 3px; font-size: 13px; font-weight: 600; }
.load-window-days small, .reference-percent { color: #85909c; font-size: 10px; font-weight: 400; }
.reference-week { background: #edf4f1; }
.reference-week th { color: #24745b; }
.load-window-reference-note { padding: 14px 20px; border-top: 1px solid #e9edf1; color: var(--muted); font-size: 11px; line-height: 1.6; }
.training-type-row { cursor: pointer; }
.training-type-row:hover { background: #f7f8fa; }
.training-type-row > .navigation-icon { width: 14px; height: 14px; flex-shrink: 0; color: #85909c; }
.training-type-duration { color: var(--muted); font-size: 12px; white-space: nowrap; }
.training-profile-back { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 24px; color: var(--muted); text-decoration: none; font-size: 12px; }
.training-profile-back .navigation-icon { width: 14px; height: 14px; }
.training-profile-page-heading h1 { margin: 0 0 14px; font-size: 24px; letter-spacing: -.5px; }
.training-profile-properties { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 12px; }
.training-profile-properties > span { display: inline-flex; align-items: center; gap: 6px; }
.training-profile-properties .navigation-icon { width: 14px; height: 14px; }
.training-profile-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.training-profile-section h2 { margin: 0 0 14px; font-size: 14px; }
.training-profile-section p { font-size: 13px; line-height: 1.7; }
.training-target-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.training-profile-targets { width: 100%; }
.training-profile-targets th, .training-profile-targets td { padding: 12px; font-size: 12px; }
.training-profile-targets td { text-align: right; font-variant-numeric: tabular-nums; }
.training-profile-targets thead th { font-size: 11px; font-weight: 500; }

.training-type-row[hidden], .training-type-list[hidden] { display: none; }

/* Training types are a workspace reference, with properties beside the detail. */
.training-types-page { width: 100%; }
.training-types-page .catalog-search-field { max-width: 420px; }
.training-types-page .training-type-list { border-top: 1px solid var(--line); }
.training-type-list-heading { padding: 16px 0; border-bottom: 1px solid var(--line); }
.training-type-list-heading h2 { margin: 0; color: var(--muted); font-size: 12px; font-weight: 500; }
.training-types-page .training-type-row { display: grid; grid-template-columns: 36px minmax(180px, 1fr) minmax(160px, 1.3fr) 70px 18px; align-items: center; gap: 20px; padding: 20px 8px; border-bottom: 1px solid var(--line); }
.training-types-page .settings-row-copy strong { font-size: 14px; font-weight: 600; }
.training-type-description { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.training-types-page .training-data-warning { grid-column: 3; font-size: 11px; }
.has-sidebar .content-editor.training-profile-page { max-width: none; }
.training-profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; margin-top: 28px; align-items: start; }
.training-profile-main { min-width: 0; }
.training-profile-main > .training-profile-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.training-profile-sidebar { padding: 20px; background: #f0f2f5; border: 1px solid #e1e5ea; border-radius: 9px; }
.training-profile-sidebar h2 { margin: 0 0 20px; font-size: 12px; color: #505b69; }
.training-profile-sidebar dl { display: grid; gap: 16px; margin: 0; }
.training-profile-sidebar dl > div { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: 12px; }
.training-profile-sidebar dt { margin: 0; font-size: 11px; color: #737d8b; }
.training-profile-sidebar dd { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; font-weight: 400; }
.training-profile-sidebar dd .navigation-icon { width: 14px; height: 14px; }
.training-profile-sidebar > p { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid #dfe4e9; color: var(--muted); font-size: 11px; line-height: 1.6; }
@media (max-width: 1050px) { .training-profile-layout { grid-template-columns: minmax(0, 1fr); } .training-types-page .training-type-row { grid-template-columns: 36px minmax(0, 1fr) 70px 18px; gap: 14px; } .training-type-description { grid-column: 2; } .training-type-duration { grid-column: 3; grid-row: 1; } .training-type-row > .navigation-icon { grid-column: 4; grid-row: 1; } }

/* Shared settings sections: quiet cards, compact controls and bounded uploads. */
.settings-form { width: 100%; max-width: 640px; margin-inline: auto; }
.settings-section { margin: 28px 0; min-width: 0; }
.has-sidebar .settings-section > .settings-section-title, .settings-section > .settings-section-title { margin: 0 0 12px; font-size: 13px; font-weight: 600; line-height: 1.5; }
.settings-card { background: #fff; border: 1px solid #e3e7eb; border-radius: 9px; box-shadow: 0 1px 2px #172b3a04; min-width: 0; }
.settings-control-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 240px); gap: 24px; align-items: center; padding: 16px; }
.settings-control-row + .settings-control-row { border-top: 1px solid #edf0f3; }
.settings-control-copy label, .settings-control-copy > span { display: block; margin: 0; font-size: 12px; font-weight: 500; line-height: 1.5; }
.settings-control-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.settings-control-value { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.settings-control-value input:not([type=checkbox]), .settings-control-value select { width: 100%; min-width: 0; margin: 0; min-height: 34px; padding: 7px 10px; font-size: 12px; }
.settings-control-value input[type=file] { font-size: 10px; padding: 6px; }
.settings-control-value .settings-photo { width: 40px; height: 40px; max-width: 40px; flex: 0 0 40px; object-fit: contain; border-radius: 6px; }
.settings-readonly { font-size: 12px; overflow-wrap: anywhere; }
.settings-save-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0; }
.settings-save-actions > a:not(.button) { font-size: 12px; }
.settings-card-note { padding: 12px 16px; border-top: 1px solid #edf0f3; color: var(--muted); font-size: 11px; line-height: 1.6; }
.settings-card-padded { padding: 16px; }
.settings-card > .form-panel { background: transparent; border: 0; box-shadow: none; padding: 16px; margin: 0; width: 100%; max-width: none; }
.wellness-settings-stack .wellness-settings-section + .wellness-settings-section { padding-top: 0; border-top: 0; margin-top: 40px; }
.wellness-settings-stack .wellness-question-card .wellness-question-row { grid-template-columns: minmax(0, 1fr) 110px auto 24px; padding: 14px; gap: 10px; }
.wellness-settings-stack .wellness-question-card .wellness-question-row:last-child { border-bottom: 0; }
.wellness-settings-stack .wellness-question-card .wellness-question-row input[type=text] { grid-column: auto; min-width: 0; }
.wellness-question-card input, .wellness-question-card select, .wellness-question-card .muted { font-size: 11px; }
@media (max-width: 600px) {
  .settings-control-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .settings-control-value { justify-content: flex-start; }
  .wellness-settings-stack .wellness-question-card .wellness-question-row { grid-template-columns: minmax(0, 1fr) auto; }
  .wellness-settings-stack .wellness-question-card .wellness-question-row input[type=text] { grid-column: 1 / -1; }
}

.wellness-add-question-row { border-top: 1px solid var(--line); }
.wellness-add-question-row a { display: flex; align-items: center; gap: 10px; padding: 16px; color: var(--muted); font-size: 12px; text-decoration: none; border-radius: 0 0 9px 9px; }
.wellness-add-question-row a:hover { color: var(--ink); background: #f7f8fa; }
.wellness-add-question-row a > span:first-child { font-size: 18px; line-height: 1; }

.app-sidebar .workspace-nav-heading { margin: 20px 0 5px; padding: 0 10px; color: #77818a; font-size: 11px; font-weight: 600; line-height: 1.5; }
.app-sidebar .workspace-nav-heading:first-child { margin-top: 4px; }
.app-sidebar .sidebar-settings-footer { flex-shrink: 0; margin: 0 12px; padding: 8px 0; }

/* Keep the coaching sheet beside the tactical board. */
.exercise-panels { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.has-sidebar .exercise-panels .exercise-sheet { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: none; margin: 0; padding: 20px; background: #f0f2f5; border-color: #e1e5ea; position: sticky; top: 0; }
.exercise-panels .exercise-sheet h2 { font-size: 14px; margin: 0; }
.exercise-sheet label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 500; }
.exercise-sheet > div, .exercise-sheet > p { width: 100%; margin: 0; }
.exercise-sheet .exercise-sheet-meta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.exercise-sheet textarea { min-height: 100px; resize: vertical; }
.exercise-sheet .muted { font-size: 11px; line-height: 1.6; }
.exercise-sheet .exercise-save-actions { margin: 0; }
.exercise-sheet .exercise-save-actions .button { width: 100%; }
.exercise-sidebar-delete { padding-top: 16px; border-top: 1px solid #dfe4e9; }
.exercise-sidebar-delete .button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; }
@media (max-width: 1100px) { .exercise-panels { grid-template-columns: minmax(0, 1fr); } .has-sidebar .exercise-panels .exercise-sheet { position: static; } }
