/* Compact training sheet. All styles are scoped to this page and its toast. */
.tr-page, .tr-toast {
  --tr-text:#172033;
  --tr-muted:#5b6a7e;
  --tr-line:rgba(43,59,85,.12);
  --tr-soft:rgba(75,101,139,.04);
  --tr-surface:rgba(255,255,255,.67);
  --tr-input:rgba(255,255,255,.77);
  --tr-focus:#2563eb;
  --tr-menu:#f7f9fc;
  font-family:'Inter',sans-serif;
  color:var(--tr-text);
}
.dark .tr-page, .dark .tr-toast {
  --tr-text:#f3f6fb;
  --tr-muted:#a6b1c3;
  --tr-line:rgba(255,255,255,.10);
  --tr-soft:rgba(255,255,255,.025);
  --tr-surface:rgba(255,255,255,.045);
  --tr-input:rgba(255,255,255,.055);
  --tr-focus:#84b4ff;
  --tr-menu:#171e28;
}
.tr-page {width:100%;max-width:1600px;padding:39px 28px 20px;margin:0 auto;overflow:visible;}
.tr-page *, .tr-toast * {box-sizing:border-box;}
.tr-page [hidden], .tr-toast[hidden], .tr-toast [hidden] {display:none!important;}
.tr-page button, .tr-toast button {font:inherit;cursor:pointer;}
.tr-page button:disabled, .tr-toast button:disabled {opacity:.45;cursor:not-allowed;}
.tr-page :focus-visible, .tr-toast :focus-visible {outline:3px solid #60a5fa;outline-offset:3px;}
.tr-page svg, .tr-toast svg {flex-shrink:0;}
.tr-sr-only {position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.tr-page-heading {margin-bottom:25px;}
.tr-page-heading h1 {margin:0;font-size:34px;line-height:1.15;font-weight:750;letter-spacing:-.045em;}
.tr-page-heading p {margin:10px 0 0;color:var(--tr-muted);font-size:12px;line-height:1.65;}
.tr-sheet {width:100%;min-width:0;border:1px solid var(--tr-line);border-radius:16px;background:var(--tr-surface);box-shadow:0 10px 35px rgba(0,0,0,.025);overflow:hidden;}
.tr-toolbar {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 19px 12px;}
.tr-toolbar-actions {display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-shrink:0;}
.tr-export-trigger {border-color:var(--tr-line);background:var(--tr-input);color:var(--tr-text);}
.tr-export-trigger svg {color:var(--tr-focus);}
.tr-export-trigger:hover:not(:disabled) {border-color:var(--tr-focus);background:var(--tr-soft);}
.tr-filters {display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;padding:0 19px 14px;}
.tr-filter {display:flex;flex-direction:column;gap:6px;min-width:0;}
.tr-filter > span {color:var(--tr-muted);font-size:11px;font-weight:600;}
.tr-filter input, .tr-filter select {min-height:42px;max-width:100%;padding:9px 11px;border:1px solid var(--tr-line);border-radius:9px;background:var(--tr-input);color:var(--tr-text);font:inherit;font-size:13px;}
.tr-filter input {width:160px;color-scheme:light;}
.dark .tr-filter input {color-scheme:dark;}
.tr-filter select {width:220px;cursor:pointer;}
.tr-filter option {color:var(--tr-text);background:var(--tr-menu);}
.tr-filters > button {min-height:42px;}
.tr-filter-hint, .tr-filter-error {margin:0 20px 13px;color:var(--tr-muted);font-size:12px;line-height:1.6;}
.tr-filter-error {color:#b72d37;}
.dark .tr-filter-error {color:#ffadb3;}
.tr-dog-tools {display:flex;align-items:center;gap:10px;min-width:0;}
.tr-dog-label {color:var(--tr-muted);font-size:11px;font-weight:600;}
.tr-dog-select {width:245px;max-width:100%;min-height:44px;padding:10px 34px 10px 12px;border:1px solid var(--tr-line);border-radius:9px;background:var(--tr-input);color:var(--tr-text);font:inherit;font-size:13px;font-weight:600;cursor:pointer;}
.tr-dog-select option {color:var(--tr-text);background:var(--tr-menu);}
.tr-button {min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 13px;border:1px solid transparent;border-radius:9px;font-size:11px!important;line-height:1.5;font-weight:600!important;white-space:nowrap;transition:background .15s,border-color .15s;}
.tr-button-primary {color:white;background:#2563eb;border-color:#2563eb;}
.tr-button-primary:hover:not(:disabled) {background:#1d4ed8;border-color:#1d4ed8;}
.tr-button-subtle {color:var(--tr-muted);background:transparent;}
.tr-button-subtle:hover:not(:disabled) {color:var(--tr-text);background:var(--tr-soft);border-color:var(--tr-line);}
.tr-dog-form {display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:2px 19px 16px;padding:13px 14px;border:1px solid var(--tr-line);border-radius:10px;background:var(--tr-soft);}
.tr-dog-form > label {color:var(--tr-muted);font-size:11px;font-weight:600;}
.tr-dog-form > input {width:290px;max-width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--tr-line);border-radius:8px;color:var(--tr-text);background:var(--tr-input);font:inherit;font-size:12px;}
.tr-dog-form input::placeholder {color:var(--tr-muted);opacity:1;}
.tr-dog-form-actions {display:flex;gap:5px;}
.tr-form-error {width:100%;margin:0;color:#b72d37;font-size:11px;line-height:1.65;}
.tr-form-error:empty {display:none;}
.dark .tr-form-error {color:#ffadb3;}
.tr-page-message {margin:0 19px 13px;padding:11px 13px;border:1px solid var(--tr-line);border-radius:9px;background:var(--tr-soft);color:var(--tr-muted);font-size:11px;line-height:1.65;}
.tr-page-message:empty {display:none;}
.tr-page-message.is-error, .tr-page-message.error {color:#b72d37;border-color:rgba(217,72,80,.25);background:rgba(217,72,80,.065);}
.dark .tr-page-message.is-error, .dark .tr-page-message.error {color:#ffadb3;}
.tr-sheet-caption {display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:34px;padding:1px 20px 10px;color:var(--tr-muted);font-size:10px;line-height:1.5;}
.tr-save-status {text-align:right;}
.tr-save-status.is-error, .tr-save-status[data-state="error"] {color:#b72d37;}
.dark .tr-save-status.is-error, .dark .tr-save-status[data-state="error"] {color:#ffadb3;}
.tr-save-status.is-saving, .tr-save-status[data-state="saving"] {color:var(--tr-focus);}
.tr-table-scroll {width:100%;overflow:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:rgba(127,144,170,.45) transparent;}
.tr-table-scroll:focus-visible {outline-offset:-3px;}
.tr-table {width:100%;min-width:1000px;table-layout:fixed;border-collapse:separate;border-spacing:0;text-align:left;}
.tr-col-day {width:64px;}
.tr-col-dog {width:170px;}
.tr-all-dogs {min-width:1170px;}
.tr-dog-cell {padding:13px 11px!important;color:var(--tr-text);font-size:12px;line-height:1.6;overflow-wrap:anywhere;}
.tr-dog-cell strong {font-weight:600;}
.tr-dog-cell span {display:block;margin-top:4px;color:var(--tr-muted);font-size:10px;}
.tr-cell textarea[readonly] {color:var(--tr-muted);}
.tr-col-date {width:105px;}
.tr-col-session {width:80px;}
.tr-col-time {width:125px;}
.tr-col-trainer {width:120px;}
.tr-col-action {width:60px;}
.tr-table th {height:37px;padding:9px 11px;border-top:1px solid var(--tr-line);border-bottom:1px solid var(--tr-line);border-right:1px solid var(--tr-line);background:var(--tr-soft);color:var(--tr-muted);font-size:10px;font-weight:600;line-height:1.5;white-space:nowrap;}
.tr-table th:last-child {border-right:0;}
.tr-table td {height:64px;padding:0;vertical-align:top;border-bottom:1px solid var(--tr-line);border-right:1px solid var(--tr-line);background:transparent;}
.tr-table td:last-child {border-right:0;}
.tr-table tbody tr:last-child td {border-bottom:0;}
.tr-table tbody tr:hover td {background:var(--tr-soft);}
.tr-table tbody tr.is-saving td {background:rgba(59,130,246,.035);}
.tr-table tbody tr.is-error td {background:rgba(217,72,80,.05);}
.tr-cell {position:relative;}
.tr-cell input, .tr-cell textarea, .tr-cell-input, .tr-cell-textarea {
  display:block;width:100%;min-width:0;min-height:64px;margin:0;padding:12px 11px;border:0;border-radius:0;box-shadow:none;background:transparent;color:var(--tr-text);font:inherit;font-size:12px;line-height:1.7;outline:none;box-sizing:border-box;
}
.tr-cell textarea, .tr-cell-textarea {height:64px;max-height:220px;resize:none;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;scrollbar-width:thin;scrollbar-color:rgba(127,144,170,.3) transparent;}
.tr-cell input, .tr-cell-input {height:64px;}
.tr-cell input::placeholder, .tr-cell textarea::placeholder {color:var(--tr-muted);opacity:.7;}
.tr-cell input:focus, .tr-cell textarea:focus, .tr-cell-input:focus, .tr-cell-textarea:focus {position:relative;z-index:1;outline:2px solid var(--tr-focus);outline-offset:-2px;background:var(--tr-input);}
.tr-cell input:disabled, .tr-cell textarea:disabled {opacity:.6;}
.tr-cell.is-error {box-shadow:inset 0 -2px #d94850;}
.tr-action-cell {text-align:center;vertical-align:middle!important;}
.tr-delete {display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;margin:9px 0;padding:10px;border:1px solid transparent;border-radius:8px;color:var(--tr-muted);background:transparent;}
.tr-delete:hover:not(:disabled) {color:#d94850;border-color:rgba(217,72,80,.2);background:rgba(217,72,80,.07);}
.tr-delete svg {width:16px;height:16px;}
.tr-empty-state {padding:27px 20px;text-align:center;color:var(--tr-muted);font-size:11px;line-height:1.6;}
.tr-empty-state p {margin:0 0 4px;color:var(--tr-text);font-size:13px;font-weight:500;}
.tr-empty-state span {display:block;}
.tr-sheet-footer {display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 20px;border-top:1px solid var(--tr-line);color:var(--tr-muted);font-size:10px;line-height:1.6;}
.tr-refresh {min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 0 9px 10px;border:0;background:transparent;color:var(--tr-muted);font-size:10px!important;}
.tr-refresh:hover {color:var(--tr-text);}
.tr-toast {position:fixed;left:50%;bottom:24px;z-index:100;transform:translateX(-50%);display:flex;align-items:center;justify-content:space-between;gap:21px;width:max-content;max-width:calc(100% - 32px);min-height:54px;padding:9px 16px;border:1px solid var(--tr-line);border-radius:12px;background:var(--tr-menu);font-size:12px;line-height:1.6;box-shadow:0 8px 35px rgba(0,0,0,.18);}
.tr-toast button {min-height:44px;padding:6px 8px;border:0;background:transparent;color:var(--tr-focus);font-weight:600;}
@media (max-width:700px) {
  .tr-page {padding:28px 14px 14px;}
  .tr-page-heading {margin-bottom:20px;}
  .tr-page-heading h1 {font-size:30px;}
  .tr-page-heading p {font-size:11px;}
  .tr-toolbar {gap:10px;padding:13px 13px 9px;flex-wrap:wrap;}
  .tr-dog-tools {flex:1 1 100%;gap:6px;}
  .tr-dog-label {display:none;}
  .tr-dog-select {flex:1;min-width:0;width:auto;font-size:16px;}
  .tr-dog-tools .tr-button {padding-inline:10px;}
  .tr-toolbar > .tr-button {margin-left:auto;}
  .tr-sheet {border-radius:13px;}
  .tr-sheet-caption {padding:2px 14px 11px;gap:12px;align-items:flex-start;}
  .tr-dog-form {margin:2px 13px 13px;padding:12px;gap:8px;}
  .tr-dog-form > label {width:100%;}
  .tr-dog-form > input {width:100%;font-size:16px;}
  .tr-dog-form-actions {margin-left:auto;}
  .tr-page-message {margin-inline:13px;}
  .tr-sheet-footer {padding-inline:14px;}
  .tr-table th {font-size:10px;}
  .tr-cell input, .tr-cell textarea, .tr-cell-input, .tr-cell-textarea {font-size:16px;line-height:1.5;}
}
@media (prefers-reduced-motion:reduce) {.tr-page *, .tr-toast * {transition-duration:.01ms!important;animation-duration:.01ms!important;}}
@media print {
  .tr-toolbar, .tr-dog-form, .tr-sheet-caption, .tr-sheet-footer, .tr-toast, #pageMessage, .tr-action-heading, .tr-action-cell {display:none!important;}
  .tr-page {padding:0!important;max-width:100%;}
  .tr-sheet {border:0;border-radius:0;box-shadow:none;background:white;overflow:visible;}
  .tr-table-scroll {overflow:visible;}
  .tr-table {min-width:0;table-layout:auto;}
  .tr-table th, .tr-table td {border-color:#ddd!important;}
  .tr-table tr {break-inside:avoid;}
  .tr-cell input, .tr-cell textarea {color:black!important;font-size:10px;}
}
.tr-row-error td {height:auto!important;padding:10px 12px!important;font-size:12px;color:#b72d37;background:rgba(217,72,80,.06)!important;}
.dark .tr-row-error td {color:#ffadb3;}
.tr-row-error button {border:1px solid currentColor;border-radius:6px;padding:6px 10px;margin-left:8px;font-size:11px;}
.tr-delete {font-size:10px!important;width:auto;padding:7px;}
.tr-cell textarea:not(:focus) {scrollbar-width:none;}
.tr-cell textarea:not(:focus)::-webkit-scrollbar {display:none;}
.tr-table-scroll {max-height:calc(100dvh - 285px);min-height:190px;}
.tr-table thead th {position:sticky;top:0;z-index:2;background:var(--tr-menu);}
@media (max-width:700px) {.tr-table-scroll {max-height:calc(100dvh - 325px);}}
@media print {.tr-table-scroll {max-height:none;min-height:0;}.tr-table thead th {position:static;}}
/* Dog management stays outside the compact entry rows. */
.tr-dog-tools {flex-wrap:wrap;}
.tr-delete-dog:hover:not(:disabled) {color:#c93239;border-color:rgba(217,72,80,.2);background:rgba(217,72,80,.07);}
.tr-deleted-dogs {margin-top:16px;border:1px solid var(--tr-line);border-radius:12px;background:var(--tr-surface);font-size:12px;}
.tr-deleted-dogs summary {cursor:pointer;padding:14px 17px;color:var(--tr-muted);font-weight:600;}
.tr-deleted-dogs summary span {margin-left:7px;font-weight:400;}
.tr-deleted-dog-list {padding:0 17px 9px;}
.tr-deleted-dog-list > p {padding:7px 0 10px;color:var(--tr-muted);}
.tr-deleted-dog {display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--tr-line);padding:8px 0;}
.tr-deleted-dog strong {display:block;font-weight:600;overflow-wrap:anywhere;}
.tr-deleted-dog span {display:block;margin-top:4px;font-size:10px;color:var(--tr-muted);}
.tr-deleted-dog button {flex-shrink:0;}
@media (max-width:700px) {.tr-dog-select {flex-basis:100%;}.tr-dog-tools {gap:4px;}.tr-dog-tools .tr-button {min-height:36px;}}
@media print {.tr-deleted-dogs {display:none!important;}}
@media (max-width:700px) {
  .tr-filters {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:0 13px 14px;}
  .tr-filter-trainer {grid-column:1 / -1;}
  .tr-filter input, .tr-filter select {width:100%;min-width:0;font-size:16px;}
  .tr-filters > button {justify-self:start;min-height:36px;padding-block:6px;}
  .tr-filter-hint, .tr-filter-error {margin-inline:14px;}
}
@media print {.tr-filters,.tr-filter-error {display:none!important;}}

/* Export tools and the controlled trainer picker stay separate from data entry. */
.tr-dialog {width:min(590px,calc(100vw - 36px));max-height:calc(100dvh - 40px);margin:auto;padding:0;border:1px solid var(--tr-line);border-radius:17px;background:var(--tr-menu);color:var(--tr-text);box-shadow:0 25px 90px rgba(15,23,42,.24),0 3px 12px rgba(15,23,42,.08);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;font:inherit;color-scheme:light;}
.dark .tr-dialog {color-scheme:dark;box-shadow:0 25px 90px rgba(0,0,0,.44),0 3px 12px rgba(0,0,0,.18);}
.tr-dialog::backdrop {background:rgba(15,23,42,.32);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);}
.tr-dialog[open] {animation:tr-dialog-enter .14s ease-out;}
@keyframes tr-dialog-enter {from {opacity:0;transform:translateY(5px);}to {opacity:1;transform:none;}}
.tr-dialog-header {display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 23px 18px;}
.tr-dialog-header h2 {margin:0;font-size:23px;font-weight:700;line-height:1.25;letter-spacing:-.035em;}
.tr-dialog-header p {margin:7px 0 0;color:var(--tr-muted);font-size:12px;line-height:1.65;max-width:650px;}
.tr-dialog-close {display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;border:1px solid var(--tr-line);border-radius:8px;background:var(--tr-input);color:var(--tr-muted);}
.tr-dialog-close:hover {color:var(--tr-text);border-color:var(--tr-focus);}
.tr-dialog .tr-button {font-size:12px!important;}
.tr-dialog-footer {position:sticky;bottom:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 23px;border-top:1px solid var(--tr-line);background:var(--tr-menu);}
.tr-export-dialog {width:min(1250px,calc(100vw - 36px));}
.tr-export-dialog .tr-filters {display:grid;grid-template-columns:minmax(200px,1.5fr) repeat(2,minmax(150px,1fr)) auto;gap:12px;padding:0 23px 17px;}
.tr-export-dialog .tr-filter input,.tr-export-dialog .tr-filter select {width:100%;min-width:0;}
.tr-export-dialog .tr-filter-error,.tr-export-dialog .tr-filter-hint {margin:0 23px 15px;}
.tr-export-caption {display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 23px;border-top:1px solid var(--tr-line);color:var(--tr-muted);font-size:11px;line-height:1.6;}
.tr-export-caption > :first-child {color:var(--tr-text);font-weight:600;}
.tr-export-preview {width:100%;max-height:min(48dvh,480px);min-height:100px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;}
.tr-export-preview:focus-visible {outline-offset:-3px;}
.tr-export-table {width:100%;min-width:1180px;table-layout:fixed;border-collapse:separate;border-spacing:0;text-align:left;font-size:12px;line-height:1.65;}
.tr-export-table .tr-export-dog {width:160px;}.tr-export-table .tr-export-day {width:60px;}.tr-export-table .tr-export-date {width:100px;}.tr-export-table .tr-export-session {width:85px;}.tr-export-table .tr-export-time {width:120px;}.tr-export-table .tr-export-trainer {width:155px;}
.tr-export-table th {position:sticky;top:0;z-index:2;padding:10px 12px;border-block:1px solid var(--tr-line);border-right:1px solid var(--tr-line);background:var(--tr-menu);color:var(--tr-muted);font-size:10px;font-weight:650;}
.tr-export-table td {padding:11px 12px;border-right:1px solid var(--tr-line);border-bottom:1px solid var(--tr-line);vertical-align:top;overflow-wrap:anywhere;white-space:pre-wrap;}
.tr-export-table th:last-child,.tr-export-table td:last-child {border-right:0;}
.tr-export-table tbody tr:nth-child(even) {background:var(--tr-soft);}
.tr-export-table td strong {font-weight:600;}.tr-export-table td small {display:block;margin-top:3px;color:var(--tr-muted);font-size:10px;}
.tr-export-long {max-height:96px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;white-space:pre-wrap;overflow-wrap:anywhere;}
.tr-export-empty {margin:0;padding:25px 23px;color:var(--tr-muted);text-align:center;font-size:12px;line-height:1.65;}
.tr-export-message {margin:0;color:var(--tr-muted);font-size:12px;line-height:1.6;}
.tr-export-message.is-error {color:#b72d37;}.dark .tr-export-message.is-error {color:#ffadb3;}
.tr-export-footer .tr-csv-button {flex-shrink:0;min-width:156px;background:#16804e;border-color:#16804e;color:#fff;font-size:13px!important;font-weight:700!important;}
.tr-export-footer .tr-csv-button:hover:not(:disabled) {background:#11683f;border-color:#11683f;}
.tr-cell .tr-trainer-cell {display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:64px;margin:0;padding:12px 11px;border:0;border-radius:0;background:transparent;color:var(--tr-text);font:inherit;font-size:12px;line-height:1.7;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;}
.tr-trainer-cell > span:first-child {min-width:0;}.tr-trainer-cell svg {flex-shrink:0;}.tr-trainer-placeholder {color:var(--tr-muted);}
.tr-cell .tr-trainer-cell:hover:not(:disabled) {background:var(--tr-soft);}
.tr-cell .tr-trainer-cell:focus-visible {outline:2px solid var(--tr-focus);outline-offset:-2px;background:var(--tr-input);}
.tr-trainer-body {padding:0 23px 19px;}
.tr-trainer-choices {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height: min(380px,45dvh);padding:1px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;}
.tr-trainer-choice {display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 12px;border:1px solid var(--tr-line);border-radius:9px;background:var(--tr-input);color:var(--tr-text);font-size:13px;line-height:1.55;cursor:pointer;overflow-wrap:anywhere;}
.tr-trainer-choice:hover {border-color:var(--tr-focus);}.tr-trainer-choice:has(input:checked) {border-color:var(--tr-focus);background:var(--tr-soft);}
.tr-trainer-choice input {width:17px;height:17px;margin:0;flex-shrink:0;accent-color:#2563eb;cursor:pointer;}
.dark .tr-trainer-choice input {accent-color:#84b4ff;}
.tr-trainer-loading,.tr-trainer-choices > p {grid-column:1 / -1;margin:0;padding:10px 0;color:var(--tr-muted);font-size:12px;line-height:1.65;}
.tr-trainer-body > .tr-form-error:not(:empty) {margin-top:13px;}
.tr-trainer-management {margin-top:18px;border-top:1px solid var(--tr-line);}
.tr-trainer-management > summary {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 1px 5px;color:var(--tr-muted);font-size:11px;font-weight:600;cursor:pointer;list-style:none;}
.tr-trainer-management > summary::-webkit-details-marker {display:none;}.tr-trainer-management[open] > summary svg {transform:rotate(180deg);}
.tr-trainer-roster {margin-top:9px;}
.tr-roster-row {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:43px;padding:5px 0;border-bottom:1px solid var(--tr-line);font-size:12px;line-height:1.6;overflow-wrap:anywhere;}
.tr-roster-row small {display:block;color:var(--tr-muted);font-size:10px;}
.tr-roster-row button {flex-shrink:0;min-height:34px;padding:6px 9px;border:1px solid var(--tr-line);border-radius:7px;background:transparent;color:var(--tr-muted);font-size:11px;}
.tr-roster-row button:hover:not(:disabled) {border-color:var(--tr-focus);color:var(--tr-text);background:var(--tr-soft);}
.tr-trainer-form {margin-top:15px;}
.tr-trainer-form > label {display:block;margin-bottom:7px;color:var(--tr-muted);font-size:11px;font-weight:600;}
.tr-trainer-form > div {display:flex;align-items:center;gap:8px;}
.tr-trainer-form input {flex:1;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--tr-line);border-radius:9px;background:var(--tr-input);color:var(--tr-text);font:inherit;font-size:13px;}
.tr-trainer-form input::placeholder {color:var(--tr-muted);}
.tr-trainer-form .tr-form-error:not(:empty) {margin-top:9px;}
.tr-trainer-footer > div {display:flex;align-items:center;gap:6px;}
@media (max-width:700px) {
  .tr-toolbar-actions {width:100%;}.tr-toolbar-actions .tr-button {flex:1;}
  .tr-dialog,.tr-export-dialog {width:calc(100vw - 16px);max-height:calc(100dvh - 20px);border-radius:13px;}
  .tr-dialog-header {padding:19px 17px 16px;gap:12px;}.tr-dialog-header h2 {font-size:21px;}.tr-dialog-header p {font-size:11px;}
  .tr-export-dialog .tr-filters {grid-template-columns:repeat(2,minmax(0,1fr));padding:0 17px 15px;gap:11px;}
  .tr-export-dialog .tr-filter-trainer {grid-column:1 / -1;}.tr-export-dialog .tr-filters > button {min-height:36px;}
  .tr-export-dialog .tr-filter-error,.tr-export-dialog .tr-filter-hint {margin-inline:17px;}
  .tr-export-caption {padding:11px 17px;}.tr-export-preview {max-height:40dvh;}
  .tr-dialog-footer {padding:13px 17px;gap:10px;}.tr-export-footer {align-items:stretch;flex-direction:column;}.tr-export-footer .tr-csv-button {width:100%;}
  .tr-trainer-body {padding:0 17px 17px;}.tr-trainer-form input {font-size:16px;}.tr-cell .tr-trainer-cell {font-size:16px;line-height:1.5;}
}
@media (max-width:450px) {.tr-trainer-choices {grid-template-columns:1fr;}.tr-trainer-footer {gap:5px;}.tr-trainer-footer .tr-button {padding-inline:10px;font-size:11px!important;}}
@media print {.tr-dialog {display:none!important;}}
