:root {
    --bg: #0d0d0d;
    --panel: #111;
    --panel-soft: #161616;
    --line: #1e1e1e;
    --line-strong: #2a2a2a;
    --text: #f5f7fb;
    --muted: #747b86;
    --muted-dark: #4d535c;
    --muted-bright: #c4cbd5;
    --blue: #69A1C8;
    --blue-deep: #152b3d;
    --green: #69A1C8;
    --yellow: #EAB308;
    --orange: #2563EB;
    --purple: #8B5CF6;
    --red: #EF4444;
    --cyan: #22C55E;
}

@font-face {
    font-family: "Blueprint Roboto";
    src: url("/fonts/Roboto-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Blueprint Wide";
    src: url("/fonts/Garp Sans Wide.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: #050505;
    font-family: "Blueprint Roboto", Arial, sans-serif;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.is-hidden { display: none !important; }
.view { display: none; }
.view.active { display: flex; }

.login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        linear-gradient(90deg, rgba(105, 162, 201, 0.13) 1px, transparent 1px),
        linear-gradient(180deg, rgba(105, 162, 201, 0.13) 1px, transparent 1px),
        #111;
    background-size: 30px 30px;
}
.login-panel {
    width: min(100%, 430px);
    display: grid;
    gap: 22px;
    justify-items: center;
    padding: 42px 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: radial-gradient(circle at 50% 12%, rgba(105,162,201,.16), transparent 18rem), rgba(8,8,8,.96);
    box-shadow: 0 24px 80px rgba(0,0,0,.55);
}
.login-logo { width: min(68vw, 250px); }
.login-form { width: 100%; display: grid; gap: 14px; }

label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
input, select, textarea {
    width: 100%;
    min-width: 0;
    border: .5px solid var(--line-strong);
    border-radius: 8px;
    color: var(--text);
    background: #1a1a1a;
    outline: 0;
}
input, select { height: 38px; padding: 0 11px; }
textarea { min-height: 104px; padding: 11px; resize: vertical; }
input:focus, select:focus, textarea:focus {
    border-color: rgba(105,162,201,.72);
    box-shadow: 0 0 0 3px rgba(105,162,201,.12);
}
input[readonly] {
    color: #666;
    cursor: not-allowed;
}

.coach-app {
    min-width: 1100px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}
.topbar {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 24px;
    background: #0f0f0f;
    border-bottom: .5px solid var(--line);
    flex: 0 0 auto;
}
.brand-lockup { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.brand-logo {
    width: 36px;
    height: 26px;
    object-fit: contain;
}
.brand-lockup p, .brand-lockup h1 { margin: 0; }
.brand-lockup h1 { color: #fff; font-size: 12px; font-weight: 500; }
.brand-lockup p { margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: 0; text-transform: none; }
.tabs { display: flex; gap: 1px; padding: 3px; border-radius: 8px; background: #1a1a1a; }
.tab {
    min-width: 102px;
    height: 28px;
    border: 0;
    border-radius: 6px;
    color: var(--muted);
    background: transparent;
    font-size: 12px;
}
.tab.active { color: var(--blue); background: var(--blue-deep); }
.top-actions { display: flex; align-items: center; gap: 10px; min-width: 230px; justify-content: flex-end; }
.primary-btn, .assign-btn, .ghost-btn, .mini-btn, .link-btn, .user-pill, .icon-btn {
    border: 0;
    border-radius: 8px;
    color: #fff;
}
.primary-btn, .assign-btn {
    background: var(--blue);
    min-height: 38px;
    padding: 0 15px;
}
.primary-btn.compact { min-height: 34px; }
.assign-btn { min-height: 32px; font-size: 12px; }
.ghost-btn, .user-pill, .icon-btn, .mini-btn {
    background: #1a1a1a;
    border: .5px solid var(--line-strong);
    color: var(--muted);
}
.ghost-btn { min-height: 34px; padding: 0 12px; }
.mini-btn { height: 26px; padding: 0 9px; font-size: 11px; }
.user-pill { max-width: 190px; height: 32px; padding: 0 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { width: 32px; height: 32px; font-size: 10px; }
.link-btn { justify-self: center; background: transparent; color: var(--blue); }
.status { min-height: 18px; margin: 0; color: var(--muted-bright); font-size: 12px; }

.app-body { flex: 1; min-height: 0; overflow: hidden; }
.left-panel, .right-panel {
    width: 240px;
    flex: 0 0 auto;
    overflow-y: auto;
    background: var(--panel);
}
.left-panel { border-right: .5px solid var(--line); }
.right-panel { border-left: .5px solid var(--line); }
.center-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #0d0d0d;
}
.panel-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-bottom: .5px solid var(--line);
}
.panel-title p, .eyebrow {
    margin: 0;
    color: #444;
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.folder-list { padding: 10px 8px; display: grid; gap: 5px; }
.folder-card {
    border: .5px solid #242a31;
    border-left: 2px solid color-mix(in srgb, var(--folder-color, var(--blue)) 72%, #242a31);
    border-radius: 8px;
    overflow: hidden;
    background: #121518;
}
.folder-head, .athlete-row, .target-row, .cat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    text-align: left;
}
.folder-head, .cat-row { width: 100%; min-height: 34px; padding: 0 8px; justify-content: space-between; }
.folder-head:hover, .athlete-row:hover, .target-row:hover, .cat-row:hover { background: #1a1a1a; }
.cat-row.active { background: var(--blue-deep); }
.assign-group {
    display: grid;
    gap: 4px;
    overflow: hidden;
    border: .5px solid #242a31;
    border-left: 2px solid color-mix(in srgb, var(--folder-color, var(--blue)) 72%, #242a31);
    border-radius: 8px;
    background: #12161a;
}
.assign-group-head {
    min-height: 44px;
    display: grid;
    grid-template-columns: 22px 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 0 9px;
    border-radius: 0;
}
.assign-group + .assign-group {
    margin-top: 7px;
}
.assign-group-head:hover,
.assign-row:hover {
    background: #1a1a1a;
}
.expand-btn {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 6px;
    color: #444;
    background: transparent;
}
.assign-group-checkbox,
.assign-row > input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: var(--blue);
}
.assign-folder-info,
.assign-person {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.assign-folder-info .folder-name {
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}
.assign-row {
    min-height: 44px;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin: 0 6px 6px;
    padding: 0 8px 0 32px;
    border: .5px solid #20262d;
    border-radius: 7px;
    background: #0f1215;
}
.assign-row.active {
    background: var(--blue-deep);
}
.assign-person {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    text-align: left;
}
.assign-week-label {
    margin-left: auto;
    color: #333;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 82px;
}
.assign-row.active .assign-week-label,
.assign-row.active .athlete-name {
    color: #fff;
}
.assignment-footer {
    position: sticky;
    bottom: 0;
    display: grid;
    gap: 8px;
    padding: 12px;
    border-top: .5px solid var(--line);
    background: var(--panel);
}
.assignment-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}
.folder-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.folder-chevron {
    width: 10px;
    color: #444;
    font-size: 13px;
}
.folder-icon {
    width: 15px;
    height: 15px;
    display: block;
    flex: 0 0 auto;
    color: var(--folder-color, var(--blue));
    fill: currentColor;
}
.dot { width: 7px; height: 7px; border-radius: 999px; flex: 0 0 auto; }
.folder-name, .cat-name { color: #fff; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.count { color: #333; background: #1a1a1a; border-radius: 4px; padding: 1px 5px; font-size: 9px; }
.athlete-row, .target-row {
    width: 100%;
    min-height: 34px;
    padding: 5px 8px 5px 24px;
}
.athlete-row.active, .target-row.active { background: var(--blue-deep); }
.avatar {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #1e1e1e;
    color: var(--muted);
    font-size: 8px;
}
.athlete-row.active .avatar, .target-row.active .avatar { background: #1e3a50; color: var(--blue); }
.athlete-name { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.athlete-row.active .athlete-name, .target-row.active .athlete-name { color: #fff; }

.section-bar, .week-bar {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 20px;
    border-bottom: .5px solid var(--line);
    background: var(--panel);
    flex: 0 0 auto;
}
h2 { margin: 0; color: #fff; font-size: 16px; font-weight: 500; }
.section-bar h2, .week-bar h2 {
    font-family: "Blueprint Wide", "Blueprint Roboto", Arial, sans-serif;
    line-height: 1;
    text-transform: uppercase;
}
.inline-form {
    display: grid;
    grid-template-columns: 180px 170px 110px auto;
    gap: 8px;
    align-items: center;
}
.athlete-board {
    overflow: auto;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}
.athlete-folder {
    min-height: 280px;
    border: .5px solid var(--line);
    border-radius: 8px;
    background: #101010;
}
.athlete-folder.drag-over, .day-col.drag-over, .time-slot.drag-over { outline: 1px dashed var(--blue); outline-offset: -5px; }
.athlete-folder header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-bottom: .5px solid var(--line);
    border-top: 2px solid var(--folder-color, var(--blue));
    background: linear-gradient(90deg, color-mix(in srgb, var(--folder-color, var(--blue)) 24%, transparent), #111315 62%);
}
.athlete-folder h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #fff;
    font-size: 12px;
}
.athlete-folder header .folder-icon {
    width: 16px;
    height: 16px;
}
.athlete-stack { min-height: 220px; display: grid; align-content: start; gap: 6px; padding: 8px; }
.athlete-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 46px;
    padding: 8px 10px;
    border: .5px solid #222;
    border-left: 2px solid var(--blue);
    border-radius: 7px;
    background: #161616;
    cursor: grab;
}
.empty-state {
    min-height: 54px;
    display: grid;
    place-items: center;
    padding: 14px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: #333;
    font-size: 12px;
}
.empty-state.small {
    min-height: 38px;
    margin: 4px 8px 6px 32px;
    padding: 8px;
}
.athlete-card strong, .block strong, .workout-item strong { display: block; color: #fff; font-size: 12px; }
.athlete-card span, .block span, .workout-item span { color: #444; font-size: 10px; }

.week-bar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto minmax(280px, 1fr);
    justify-content: stretch;
}
.week-actions { margin-left: 0; display: flex; gap: 7px; align-items: center; }
.week-actions { justify-content: flex-end; }
.week-bar p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.nav-arrow {
    width: 28px;
    height: 28px;
    border: .5px solid var(--line-strong);
    border-radius: 7px;
    color: var(--muted);
    background: #1a1a1a;
    font-size: 20px;
    line-height: 1;
}
.schedule-name {
    width: 22ch;
    max-width: min(320px, 30vw);
    height: 28px;
    padding: 0 0 0 20px;
    border: 0;
    border-radius: 0;
    color: var(--muted-bright);
    background: transparent;
    font-family: "Blueprint Wide", "Blueprint Roboto", Arial, sans-serif;
    font-size: 16px;
    line-height: 1;
    text-transform: uppercase;
}
.schedule-name-wrap {
    position: relative;
    width: fit-content;
    display: inline-block;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,.16);
    color: inherit;
    font-size: inherit;
    letter-spacing: 0;
    text-transform: none;
}
.schedule-name::placeholder {
    color: #555;
}
.pencil-mark {
    position: absolute;
    left: 0;
    top: 4px;
    color: #555;
    font-size: 13px;
    pointer-events: none;
}
.schedule-name:focus {
    box-shadow: none;
}
.date-navigator {
    min-width: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 0 auto;
    color: #fff;
    font-size: 13px;
}
.date-navigator .nav-arrow {
    width: 30px;
    height: 30px;
}
.date-navigator .nav-arrow:disabled {
    opacity: .28;
    cursor: not-allowed;
}
#date-range-label {
    min-width: 122px;
    text-align: center;
    color: var(--muted-bright);
}
#plan-span {
    width: 128px;
}
.day-headers, .week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(142px, 1fr));
}
.day-headers { flex: 0 0 auto; border-bottom: .5px solid var(--line); }
.day-head {
    min-height: 66px;
    padding: 10px 12px;
    border-right: .5px solid var(--line);
    background: var(--panel);
}
.day-head:last-child, .day-col:last-child { border-right: 0; }
.day-head span { display: block; color: #444; font-size: 10px; letter-spacing: .8px; text-transform: uppercase; }
.day-head strong { display: block; margin-top: 3px; color: #fff; font-size: 18px; }
.day-head.today strong, .day-head.today span { color: var(--blue); }
.week-grid { flex: 1; overflow: auto; }
.week-grid.alternate-calendar {
    display: block;
}
.day-col {
    min-height: 620px;
    padding: 8px;
    border-right: .5px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.day-col.weekend { background: #0a0a0a; }
.block, .library-item {
    border: .5px solid #252525;
    border-left: 3px solid var(--pillar-color, var(--blue));
    border-radius: 6px;
    background: #171717;
    cursor: grab;
}
.block {
    position: relative;
    min-height: 62px;
    padding: 9px 28px 9px 10px;
}
.block button {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border: .5px solid rgba(239, 68, 68, .52);
    border-radius: 4px;
    color: #EF4444;
    background: rgba(239, 68, 68, .08);
    opacity: .74;
    line-height: 1;
}
.block button:hover {
    color: #fff;
    background: #EF4444;
    border-color: #EF4444;
    opacity: 1;
}
.block:hover button { opacity: .95; }
.block p {
    margin: 0 0 3px;
    color: var(--blue);
    font-size: 9px;
    letter-spacing: .9px;
    text-transform: uppercase;
}
.block p {
    display: flex;
    align-items: center;
    gap: 5px;
}
.pillar-glyph {
    width: 1em;
    height: 1em;
    display: block;
    color: currentColor;
    fill: currentColor;
    background: currentColor;
    -webkit-mask: var(--icon-url) center / contain no-repeat;
    mask: var(--icon-url) center / contain no-repeat;
    flex: 0 0 auto;
}
.pillar-glyph:not([style*="--icon-url"]) {
    background: transparent;
    -webkit-mask: none;
    mask: none;
}
.block p img,
.block p .pillar-glyph {
    width: 12px;
    height: 12px;
    object-fit: contain;
    color: var(--pillar-color, var(--blue));
    background-color: var(--pillar-color, var(--blue));
}
.block.color-warmup p,
.block.color-prethrow p,
.block.color-throwing p,
.block.color-postthrow p,
.block.color-conditioning p,
.block.color-lift p { color: var(--pillar-color, var(--blue)); }
.block strong {
    display: block;
    color: #fff;
    font-size: 12px;
    line-height: 1.15;
}
.drop-note {
    min-height: 42px;
    display: grid;
    place-items: center;
    border: 1px dashed #222;
    border-radius: 6px;
    color: #2a2a2a;
    font-size: 11px;
}
.library-search {
    padding: 10px 12px 12px;
    border-bottom: .5px solid var(--line);
}
.library-search input {
    height: 34px;
    border-radius: 6px;
    background: #151515;
}
.pillar-cat {
    padding: 12px 10px 10px;
    border-bottom: .5px solid var(--line);
}
.pillar-head {
    width: 100%;
    min-height: 36px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--pillar-color, var(--blue));
    background: transparent;
    text-align: left;
}
.pillar-square {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: color-mix(in srgb, var(--pillar-color, var(--blue)) 28%, transparent);
}
.pillar-square img,
.pillar-square .pillar-glyph {
    width: 17px;
    height: 17px;
    object-fit: contain;
}
.pillar-title {
    color: var(--pillar-color, var(--blue));
    font-size: 12px;
    font-weight: 700;
}
.pillar-head .count {
    color: #333;
    background: #1a1a1a;
}
.library-list {
    display: grid;
    gap: 4px;
    padding-left: 0;
}
.library-item {
    min-height: 44px;
    padding: 7px 9px 7px 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 2px;
    border-radius: 6px;
    background: #171717;
}
.library-item strong {
    color: #fff;
    font-size: 12px;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.library-item span {
    justify-self: start;
    color: #555b63;
    font-size: 10px;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cat-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: color-mix(in srgb, currentColor 22%, transparent);
}
.cat-icon img,
.cat-icon .pillar-glyph {
    width: 15px;
    height: 15px;
    object-fit: contain;
}
.month-grid {
    width: 100%;
    min-height: 100%;
    display: grid;
    grid-template-columns: repeat(7, minmax(110px, 1fr));
    grid-auto-rows: minmax(104px, 1fr);
}
.month-cell {
    padding: 10px;
    border-right: .5px solid var(--line);
    border-bottom: .5px solid var(--line);
    border-top: 0;
    border-left: 0;
    background: #0d0d0d;
    text-align: left;
    cursor: pointer;
}
.month-cell span {
    display: block;
    color: #444;
    font-size: 10px;
    letter-spacing: .8px;
    text-transform: uppercase;
}
.month-cell strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: 18px;
}
.month-cell.muted-month strong,
.month-cell.muted-month span {
    color: #303030;
}
.month-cell.past-date {
    background: #090909;
}
.year-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    padding: 14px;
    align-content: start;
    align-items: start;
}
.month-card {
    appearance: none;
    display: grid;
    grid-template-rows: auto 1fr;
    align-content: start;
    width: 100%;
    padding: 0;
    text-align: left;
    min-height: 170px;
    border: .5px solid var(--line);
    border-radius: 8px;
    background: #111;
    color: inherit;
    font: inherit;
    line-height: normal;
    cursor: pointer;
}
.month-card h3 {
    margin: 0;
    padding: 12px;
    border-bottom: .5px solid var(--line);
    color: #fff;
    font-size: 13px;
}
.month-mini {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    padding: 10px;
}
.month-mini span {
    min-height: 22px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    color: var(--muted);
    background: #171717;
    font-size: 10px;
}

.calendar-grid {
    overflow: auto;
    padding: 14px;
    display: grid;
    grid-template-columns: 72px repeat(7, minmax(140px, 1fr));
    align-content: start;
}
.time-label, .cal-day {
    position: sticky;
    top: 0;
    z-index: 1;
    min-height: 42px;
    padding: 11px 10px;
    border-bottom: .5px solid var(--line);
    background: var(--panel);
    color: #444;
    font-size: 10px;
    text-transform: uppercase;
}
.time-label { left: 0; z-index: 2; }
.time-slot {
    min-height: 74px;
    padding: 6px;
    border-right: .5px solid var(--line);
    border-bottom: .5px solid var(--line);
}
.closed-slot {
    display: grid;
    place-items: center;
    color: #2c2c2c;
    background: #090909;
    font-size: 10px;
    text-transform: uppercase;
}
.session {
    position: relative;
    padding: 7px;
    border-radius: 6px;
    background: var(--blue-deep);
    color: var(--blue);
    font-size: 11px;
    cursor: grab;
}
.session.active {
    z-index: 4;
    outline: 1px solid rgba(143, 205, 240, .75);
}
.session-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 8;
    min-width: 126px;
    display: grid;
    gap: 4px;
    padding: 6px;
    border: .5px solid #303640;
    border-radius: 8px;
    background: #11161c;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .38);
}
.session-menu button {
    min-height: 28px;
    padding: 0 9px;
    border: 0;
    border-radius: 6px;
    color: #dce5ef;
    background: transparent;
    text-align: left;
}
.session-menu button:hover {
    color: #fff;
    background: #1d2630;
}
.context-menu {
    position: fixed;
    z-index: 30;
    min-width: 168px;
    display: grid;
    gap: 4px;
    padding: 6px;
    border: .5px solid #303640;
    border-radius: 8px;
    background: #11161c;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .46);
}
.context-menu button {
    min-height: 30px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    color: #dce5ef;
    background: transparent;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
}
.context-menu button:hover {
    color: #fff;
    background: #1d2630;
}
.context-menu .danger-text {
    color: #ff7777;
}
.context-menu .danger-text:hover {
    background: rgba(239, 68, 68, .16);
}
.calendar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
.calendar-actions .status {
    min-width: 52px;
    text-align: right;
}
.calendar-empty {
    grid-column: 1 / -1;
    min-height: 120px;
}

.availability-form {
    padding: 18px 20px 20px;
    display: grid;
    gap: 10px;
}
.availability-head,
.availability-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) 72px 130px 130px;
    gap: 10px;
    align-items: center;
}
.availability-head {
    color: #333;
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.availability-days {
    display: grid;
    gap: 8px;
}
.availability-row {
    min-height: 44px;
    padding: 8px;
    border: .5px solid var(--line);
    border-radius: 8px;
    background: #141414;
}
.availability-row strong {
    color: #fff;
    font-size: 12px;
}
.availability-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--blue);
}
.availability-row input[type="time"] {
    height: 34px;
}

.workout-header {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 24px;
    border-bottom: .5px solid var(--line);
    background: var(--panel);
    flex: 0 0 auto;
}
.workout-header-left,
.workout-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pillar-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(94, 194, 112, .18);
    border: 1px solid rgba(94, 194, 112, .26);
}
.pillar-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.workout-header p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}
.workout-toolbar {
    display: flex;
    gap: 10px;
    padding: 12px 24px;
    border-bottom: .5px solid var(--line);
    background: var(--panel);
    flex: 0 0 auto;
}
.workout-table {
    overflow: auto;
    padding: 16px 24px;
    display: grid;
    align-content: start;
    gap: 8px;
}
.workout-row {
    overflow: hidden;
    border: .5px solid var(--line);
    border-radius: 10px;
    background: #141414;
}
.workout-row-header {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-left: 3px solid var(--blue);
    cursor: pointer;
}
.workout-row-header:hover { background: #181818; }
.workout-row-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--pillar-color, var(--blue));
    background: color-mix(in srgb, var(--pillar-color, var(--blue)) 18%, transparent);
}
.workout-row-icon .pillar-glyph {
    width: 16px;
    height: 16px;
}
.workout-badge {
    padding: 3px 10px;
    border-radius: 6px;
    color: var(--blue);
    background: var(--blue-deep);
    font-size: 10px;
    white-space: nowrap;
}
.workout-row-name { color: #fff; font-size: 14px; }
.workout-row-sub { margin-top: 2px; color: #444; font-size: 11px; }
.workout-meta {
    display: flex;
    gap: 12px;
    color: #444;
    font-size: 11px;
    white-space: nowrap;
}
.workout-actions {
    display: flex;
    gap: 6px;
}
.workout-actions button {
    min-height: 26px;
    padding: 0 9px;
    border: .5px solid var(--line-strong);
    border-radius: 7px;
    color: var(--muted);
    background: #1a1a1a;
    font-size: 11px;
}
.workout-actions button:hover {
    color: #fff;
    background: #222;
}
.workout-link {
    color: var(--blue);
    font-size: 11px;
    text-decoration: none;
}
.workout-chevron {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: #444;
    background: #1a1a1a;
    transition: transform .2s;
}
.workout-row.open .workout-chevron { transform: rotate(180deg); }
.workout-details {
    display: none;
    border-top: .5px solid var(--line);
}
.workout-row.open .workout-details { display: block; }
.detail-head,
.detail-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px 130px;
    gap: 12px;
    align-items: center;
    padding: 10px 20px 10px 52px;
}
.detail-head {
    background: var(--panel);
    color: #333;
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.detail-row { border-bottom: .5px solid #111; }
.detail-row:hover { background: #181818; }
.detail-name-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.detail-num {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    margin-left: -32px;
    border-radius: 50%;
    color: #444;
    background: #1a1a1a;
    font-size: 9px;
}
.detail-name { color: #fff; font-size: 13px; }
.detail-reps { color: var(--blue); font-size: 13px; }
.detail-notes { color: var(--muted); font-size: 12px; }
.add-workout-row {
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    color: #2a2a2a;
    background: transparent;
}
.add-workout-row:hover {
    border-color: var(--line-strong);
    background: #141414;
}
.modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, .72);
}
.modal-card {
    width: min(720px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border: .5px solid var(--line-strong);
    border-radius: 10px;
    background: #101010;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}
.modal-card.small-modal {
    width: min(440px, 100%);
}
.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: .5px solid var(--line);
}
.modal-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 18px 20px 20px;
}
.modal-form .wide,
.modal-form .form-note,
.modal-actions {
    grid-column: 1 / -1;
}
.form-note {
    margin: -4px 0 0;
    color: #444;
    font-size: 11px;
}
.exercise-builder {
    display: grid;
    gap: 8px;
}
.exercise-builder-head,
.detail-input-head,
.detail-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px 34px;
    gap: 8px;
    align-items: center;
}
.exercise-builder-head {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.detail-input-head {
    color: #333;
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.detail-input-list {
    display: grid;
    gap: 8px;
}
.remove-detail-row {
    width: 34px;
    height: 34px;
    border: .5px solid var(--line-strong);
    border-radius: 8px;
    color: var(--muted);
    background: #1a1a1a;
}
.modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}
.modal-actions .status {
    margin-right: auto;
}
.confirm-body {
    display: grid;
    gap: 14px;
    padding: 18px 20px 20px;
}
.confirm-body p {
    margin: 0;
    color: #aab3be;
    font-size: 13px;
}
.confirm-body strong {
    padding: 12px;
    border: .5px solid #2d333a;
    border-radius: 8px;
    color: #fff;
    background: #15181c;
    overflow-wrap: anywhere;
}
.danger-btn {
    min-height: 38px;
    padding: 0 14px;
    border: .5px solid rgba(239, 68, 68, .62);
    border-radius: 8px;
    color: #fff;
    background: #EF4444;
}
.danger-btn.compact {
    min-height: 34px;
}
.danger-btn:hover {
    background: #f87171;
    border-color: #f87171;
}
.athlete-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 18px 20px 20px;
}
.athlete-detail-grid div {
    min-width: 0;
    padding: 12px;
    border: .5px solid #252a30;
    border-radius: 8px;
    background: #15181c;
}
.athlete-detail-grid .wide-detail {
    grid-column: 1 / -1;
}
.athlete-detail-grid span {
    display: block;
    margin-bottom: 5px;
    color: #737c87;
    font-size: 9px;
    letter-spacing: .8px;
    text-transform: uppercase;
}
.athlete-detail-grid strong {
    display: block;
    min-width: 0;
    color: #f4f7fb;
    font-size: 13px;
    overflow-wrap: anywhere;
}
.athlete-detail-grid .empty-detail {
    margin: 0;
    color: #59636f;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
}
.color-warmup,
.color-prethrow,
.color-throwing,
.color-postthrow,
.color-conditioning,
.color-lift { border-left-color: var(--pillar-color, var(--blue)); }
.bg-warmup,
.bg-prethrow,
.bg-throwing,
.bg-postthrow,
.bg-conditioning,
.bg-lift {
    background: color-mix(in srgb, var(--pillar-color, var(--blue)) 18%, transparent);
    border-color: color-mix(in srgb, var(--pillar-color, var(--blue)) 32%, transparent);
}

/* Final dashboard polish pass: clearer hierarchy, stronger controls, and consistent surfaces. */
body { -webkit-font-smoothing: antialiased; }
button {
    font-weight: 700;
    transition: background .16s ease, border-color .16s ease, color .16s ease, opacity .16s ease, transform .16s ease;
}
button:active { transform: translateY(1px); }
.topbar,
.section-bar,
.week-bar,
.workout-header,
.workout-toolbar {
    background: #111315;
    border-color: #252a30;
}
.left-panel,
.right-panel {
    background: #101112;
    border-color: #252a30;
}
.center-panel { background: #0b0c0d; }
.panel-title { border-color: #252a30; }
.panel-title p,
.eyebrow {
    color: #717984;
}
input,
select,
textarea {
    background: #171a1e;
    border-color: #303640;
}
input::placeholder,
textarea::placeholder {
    color: #69717c;
}
input:focus,
select:focus,
textarea:focus {
    border-color: rgba(120, 183, 223, .84);
    box-shadow: 0 0 0 3px rgba(120, 183, 223, .14);
}
.tabs {
    gap: 2px;
    background: #191c20;
    border: .5px solid #252a30;
}
.tab {
    color: #8c949f;
    font-weight: 800;
}
.tab:hover {
    color: #e2e7ef;
    background: #22272d;
}
.tab.active {
    color: #dff3ff;
    background: #17334a;
}
.primary-btn,
.assign-btn {
    color: #061018;
    font-weight: 900;
    background: linear-gradient(180deg, #8fcdf0, #6faed8);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.26), 0 1px 0 rgba(0,0,0,.35);
}
.primary-btn:hover,
.assign-btn:hover {
    background: linear-gradient(180deg, #9ed7f4, #78b9df);
}
.ghost-btn,
.user-pill,
.icon-btn,
.mini-btn {
    color: #c6cdd7;
    background: #1a1e23;
    border-color: #39414a;
}
.ghost-btn:hover,
.user-pill:hover,
.icon-btn:hover,
.mini-btn:hover {
    color: #fff;
    background: #232930;
    border-color: #505a66;
}
.status {
    color: #b7c0ca;
}
.folder-list { gap: 6px; }
.folder-head,
.cat-row {
    min-height: 38px;
    padding: 0 9px;
}
.folder-head:hover,
.athlete-row:hover,
.target-row:hover,
.cat-row:hover,
.assign-group-head:hover,
.assign-row:hover {
    background: #1b2026;
}
.folder-card,
.assign-group {
    border-radius: 8px;
}
.assign-group {
    border-color: #2c333b;
    background: #12161a;
}
.assign-group-head {
    min-height: 42px;
}
.assign-group-head .folder-icon {
    width: 15px;
    height: 15px;
}
.assign-group-head .count {
    min-width: 36px;
    text-align: center;
}
.folder-card {
    border-color: #2c333b;
    background: #12161a;
}
.folder-card + .folder-card {
    margin-top: 5px;
}
.folder-head.active {
    background: linear-gradient(90deg, color-mix(in srgb, var(--folder-color, var(--blue)) 24%, transparent), #172230 68%);
}
.folder-head.active .folder-name {
    color: #fff;
}
.folder-name,
.cat-name,
.assign-folder-info .folder-name {
    color: #f4f7fb;
}
.dot {
    width: 8px;
    height: 8px;
}
.count {
    color: #a6afba;
    background: #20252b;
    border-radius: 5px;
    padding: 2px 6px;
}
.athlete-name {
    color: #9aa3ad;
}
.avatar {
    color: #a6afba;
    background: #20252b;
}
.assignment-footer {
    background: #101112;
    border-color: #252a30;
}
.assignment-footer p {
    color: #9aa3ad;
}
.athlete-folder,
.workout-row,
.modal-card {
    background: #111315;
    border-color: #252a30;
}
.athlete-card,
.block,
.library-item,
.session {
    background: #171a1e;
    border-color: #2d333a;
    box-shadow: 0 1px 0 rgba(255,255,255,.03);
}
.athlete-card span,
.workout-row-sub,
.workout-meta,
.detail-notes,
.form-note {
    color: #7d8792;
}
.empty-state,
.drop-note {
    color: #59636f;
    border-color: #2d333a;
}
.nav-arrow {
    color: #c9d1dc;
    background: #1a1e23;
    border-color: #39414a;
}
.nav-arrow:hover {
    color: #fff;
    background: #232930;
    border-color: #505a66;
}
.schedule-name {
    color: #eef3f8;
}
.schedule-name::placeholder,
.pencil-mark {
    color: #7f8894;
}
#date-range-label {
    color: #d8dee7;
    font-weight: 800;
}
.day-head,
.time-label,
.cal-day {
    background: #111315;
}
.day-head span,
.time-label,
.cal-day {
    color: #737c87;
}
.block {
    padding: 9px 28px 9px 10px;
    background: #171717;
    border-color: #252525;
    border-left-color: var(--pillar-color, var(--blue));
    box-shadow: none;
}
.block strong {
    color: #fff;
    font-size: 12px;
}
.block span {
    display: block;
    margin-top: 3px;
    color: #616873;
    font-size: 10px;
    line-height: 1.2;
}
.block button {
    opacity: .86;
}
.library-search input {
    background: #171a1e;
}
.pillar-cat {
    border-color: #252a30;
}
.library-item {
    min-height: 44px;
    background: #171717;
    border-color: #252525;
    border-left-color: var(--pillar-color, var(--blue));
    box-shadow: none;
}
.library-item span {
    color: #616873;
}
.month-cell,
.month-card,
.time-slot,
.availability-row {
    border-color: #252a30;
}
.month-cell:hover,
.month-card:hover,
.time-slot.drag-over {
    background: #131922;
}
.month-cell span,
.month-mini span {
    color: #7c8591;
}
.closed-slot {
    color: #404852;
}
.session {
    color: #cfeaff;
    background: #18344b;
    border: .5px solid #25506f;
    font-weight: 800;
}
.workout-actions button {
    color: #c6cdd7;
    border-color: #39414a;
    background: #1a1e23;
}
.workout-actions button:hover {
    color: #fff;
    border-color: #505a66;
    background: #232930;
}
.workout-badge {
    color: #cfeaff;
    background: #17334a;
}
.detail-head,
.availability-head,
.detail-input-head {
    color: #737c87;
}

@media (max-width: 1180px) {
    .coach-app { min-width: 0; }
    .topbar { height: auto; align-items: flex-start; flex-wrap: wrap; padding: 12px; }
    .brand-lockup, .top-actions { min-width: 0; }
    .app-body.view.active { overflow: auto; }
    .left-panel, .right-panel { width: 220px; }
    .inline-form { grid-template-columns: 1fr 1fr; }
    .athlete-board { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
    .modal-form { grid-template-columns: 1fr; }
}
