/* Shared PATI interface rhythm. Surface files own their layouts; this layer owns
   controls, mobile navigation, readable content and accessible interaction states. */
:root {
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --control-radius: 12px;
  --control-line: #8793a2;
  --focus: #c44600;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --motion-fast: 140ms;
  --motion-panel: 220ms;
}
:root[data-color-scheme="dark"] {--control-line:#8692a2;--focus:var(--accent)}
::selection {background:var(--soft);color:var(--ink)}
/* Accent marks selection; readable ink carries text and icons in both themes. */
.seller-calendar-day.is-today,
.play-venue-actions .play-venue-action[aria-pressed=true],
.play-card .play-compare[aria-pressed=true] {color:var(--ink);background:var(--soft)}
input,textarea {caret-color:var(--ink)}
input:not([type=checkbox]):not(.native-select),textarea,.select-trigger,.duration {border-color:var(--control-line)}
h1 {letter-spacing:-.04em}
h1,h2,h3 {text-wrap:balance;overflow-wrap:break-word}
p {text-wrap:pretty}
button,[role=button],.chip,.bottom-nav a {user-select:none;-webkit-user-select:none}
button,a { -webkit-tap-highlight-color:transparent }
button,.primary,.secondary,.chip,.select-trigger {
  transition:background-color var(--motion-fast) ease-out,border-color var(--motion-fast) ease-out,transform var(--motion-fast) ease-out;
}
button:active:not(:disabled),a.primary:active,a.secondary:active {transform:scale(.98)}
.primary,.secondary {gap:var(--space-xs);line-height:1.4}
.primary,.secondary,.select-trigger,input,textarea {border-radius:var(--control-radius)}
.primary .ui-icon,.secondary .ui-icon {width:20px;height:20px}
.primary:focus-visible,.secondary:focus-visible,.select-trigger:focus-visible {outline-offset:3px}
.check,.consent {line-height:1.5;align-items:start}
.check input[type=checkbox],.consent input[type=checkbox] {margin-top:.125em;flex-shrink:0}
.check>span,.consent>span {min-width:0}
.check {min-height:32px;align-items:center}
input[type=number] {font-variant-numeric:tabular-nums}
input[type=number]::-webkit-inner-spin-button {margin:0}
.select-trigger {line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Keep the backing select in forms without leaking WebKit's intrinsic option width. */
.select-control>.native-select{width:1px;min-width:0;max-width:1px;height:1px;min-height:0;max-height:1px;padding:0;border:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}
.select-trigger::after {top:calc(50% - 6px)}
.select-trigger[aria-expanded=true]::after {top:calc(50% - 2px)}
.select-trigger:disabled {cursor:default;opacity:.5}
.select-options {padding:6px;box-shadow:0 12px 32px #0002;scroll-padding-block:8px}
.select-search-label {display:block;position:sticky;top:-6px;z-index:1;padding:6px 0 8px;background:var(--surface)}
.select-options .select-search {min-height:44px;font-size:16px;background:var(--surface)}
.select-options [role=option][hidden] {display:none}
.select-options button:focus-visible {outline-offset:-3px;background:var(--raised)}
.select-empty {padding:16px 12px;margin:0;color:var(--muted);font-size:14px}
.select-empty[hidden] {display:none}
.hero {padding-block:36px 28px}
.hero-top {align-items:center}
.hero h1 {margin-bottom:0}
.hero .sports-chips {margin-block:24px}
.search-panel {box-shadow:none;gap:var(--space-md);border-radius:16px}
.sports-chips {scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.sports-chips .chip {gap:8px}
.catalog-layout>section,.catalog-layout>aside {min-width:0}
.card {display:flex;flex-direction:column}
.card-media {flex:none}
.card-body {display:flex;flex-direction:column;flex:1;gap:0}
.card-body h3 {letter-spacing:-.025em;overflow-wrap:break-word}
.card-body>a>p {font-size:14px;line-height:1.5}
.card-body>p {line-height:1.5}
.card .tags {gap:6px;margin-block:12px}
.card .tag {font-size:12px;line-height:1.5;border-radius:6px}
.card .object-note {line-height:1.5;font-size:13px;margin-bottom:16px}
.card-bottom {margin-top:auto;min-height:60px;gap:12px}
.card-bottom small {font-size:13px}
.card-bottom .arrow {width:44px;height:44px;flex:none}
.card-bottom .arrow .ui-icon {width:22px;height:22px}
.filter-sheet-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.filter-sheet-heading h3 {margin:0}
.filter-sheet-dismiss,.filter-sheet-done {display:none}
.filters .choice-filter summary {min-height:44px}
.filters .check {align-items:center;gap:10px;font-size:14px;min-height:40px}
.filters .field {margin-bottom:20px}
.filters-reset {font-size:14px}
.panel>p:last-child {margin-bottom:0}
.panel>p+.secondary {margin-top:8px}
.panel>.secondary+p {margin-top:20px}
.venue-heading .tags {display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.venue-heading .secondary {display:inline-flex;align-items:center;gap:8px}
.venue-heading .secondary .ui-icon {width:20px;height:20px}
.venue-layout .panel>p {max-width:72ch;line-height:1.65}
.venue-layout .fact {overflow-wrap:break-word}
.venue-gallery {min-width:0}
.gallery-thumbs {scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.account-title {align-items:flex-start;flex-wrap:wrap;margin-bottom:var(--space-lg)}
.account-title>div {min-width:0;flex:1 1 220px}
.account-title h1 {letter-spacing:-.035em}
.account-nav a {min-height:44px;display:flex;align-items:center;line-height:1.4}
.account-nav {min-width:0;max-width:100%}
.account-nav nav {min-width:0;max-width:100%}
.form-actions>div {min-width:0}
.form-actions {display:flex;flex-wrap:wrap;gap:var(--space-sm);align-items:center}
.form-actions .primary {max-width:100%;white-space:normal}
#profile .form-actions {margin-top:0}
.error {line-height:1.55}
.auth-actions {flex-wrap:wrap;gap:8px 16px}
.text-button {min-height:44px;padding-block:10px;text-underline-offset:4px}
dialog {overscroll-behavior:contain;border-radius:16px;max-height:calc(100dvh - 32px);box-shadow:0 20px 70px #0004}
dialog::backdrop {background:#0008;backdrop-filter:none}
dialog .close {width:44px;height:44px;min-width:44px;min-height:44px;right:12px;top:12px;border-radius:10px}
dialog h2 {padding-right:40px;letter-spacing:-.03em}
body:has(dialog[open]) {overflow:hidden}
#auth-form {display:grid;gap:20px}
#auth-form .field,#auth-form .consent,#auth-form .error,#auth-form .note {margin:0}
#auth-form .auth-actions {margin-top:0}
#toast {max-width:calc(100vw - 32px);font-size:14px;line-height:1.5;overflow-wrap:break-word}
.map-preview-close {width:44px;height:44px;min-height:44px}
.map-preview-card {clear:both}
.map-preview-card>a:first-child {padding-right:0}
.map-preview-card .secondary,.quick-slot,.more-times {min-height:44px}
.more-times {min-width:44px}
.footer {font-size:14px;line-height:1.6}
.footer-links a {display:inline-flex;align-items:center;min-height:44px}
.footer .field {margin:0}
.footer .footer-links {gap:4px}
.workspace-menu-toggle {display:none}
.management .admin-sidebar,.seller .admin-sidebar {overflow-y:auto;overscroll-behavior:contain}
.management .admin-sidebar {gap:24px}
.management .admin-menu a {line-height:1.4}
.management .admin-title p,.seller .admin-title p {line-height:1.6}
.management .admin-metric,.trainer-metrics>div {min-width:0}
.management .admin-metric strong {overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.management .admin-title>.primary,.seller .admin-title>.primary {flex:none}
.management .admin-grid>.panel {margin-bottom:0}
.management .admin-grid {margin-bottom:20px}
.management .admin-table-wrap,.seller .admin-table-wrap {overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--muted) transparent;scroll-padding-inline:12px}
.management .admin-table th,.seller .admin-table th {line-height:1.5}
.management .admin-table td,.seller .admin-table td {line-height:1.55;font-variant-numeric:tabular-nums}
.table-scroll-hint {display:none;margin:0 0 12px;color:var(--muted);font-size:13px;line-height:1.5}
.table-scroll-hint.is-scrollable {display:block}
.management .admin-save {padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}
.management .admin-photo button,.management .weekdays .chip {min-width:44px;min-height:44px}
.management .admin-hint,.seller .form-hint {font-size:13px}
.training-page h1,.training-total strong,.training-settlement strong,.trainer-metrics strong {letter-spacing:-.035em}
.training-page p {line-height:1.65}
.training-notice {align-items:flex-start;gap:16px}
.training-notice span,.training-notice a {font-size:13px;line-height:1.55}
.training-notice a {display:inline-flex;align-items:center;min-height:44px}
.training-hero {margin-block:24px 32px}
.training-hero h1 {font-size:clamp(40px,5vw,68px);line-height:1.08}
.training-hero>div>p:last-child {max-width:60ch}
.training-page .coach-card-body {display:flex;flex-direction:column;min-width:0}
.coach-card-price {margin-top:auto;padding-top:20px}
.training-page .training-how p {font-size:14px}
.training-page .training-how h3 {font-size:20px}
.training-venue-popover [role=option]:focus-visible {outline-offset:-3px}
.entry-card p {max-width:50ch}
.skip-content {position:fixed;left:16px;top:12px;transform:translateY(-200%);z-index:1000;background:var(--ink);color:var(--bg);padding:12px 16px;border-radius:10px}
.skip-content:focus {transform:none}
@media(hover:hover) and (pointer:fine) {
  .primary:hover {background:#eb5200}
  .secondary:hover,.select-trigger:hover {border-color:var(--line)}
  .card:hover {border-color:var(--muted)}
  .card-body>a:hover h3,.footer-links a:hover {text-decoration:underline;text-underline-offset:4px}
  .select-options button:hover {background:var(--raised)}
}
@media(pointer:coarse) {
  input,textarea,select,.select-trigger,.management .select-trigger,.management input:not([type=checkbox]),.management textarea {font-size:16px}
  .check {min-height:44px}
}
@media(max-width:1100px) {
  .search-panel {grid-template-columns:repeat(4,minmax(0,1fr))}
  .search-panel .query-field {grid-column:span 2}
  .search-panel .duration-field {grid-column:span 2}
  .search-panel>.primary {grid-column:span 2}
}
@media(max-width:800px) {
  .header-inner {min-height:68px;gap:12px}
  .hero {padding-block:24px}
  .hero-top {gap:12px;align-items:center}
  .hero h1 {font-size:clamp(34px,9vw,42px)}
  .hero .hero-top>small {display:block;font-size:12px;max-width:90px;line-height:1.4;text-align:right}
  .hero .sports-chips {flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-block:4px;margin-block:20px;scrollbar-width:none}
  .hero .sports-chips .chip {flex:none;min-height:44px;font-size:13px;padding:9px 14px}
  .hero .sports-chips .ui-icon {width:20px;height:20px}
  .search-panel {grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);padding:16px;gap:16px 12px}
  .search-panel .query-field,.search-panel>.field:nth-child(2),.search-panel>.primary {grid-column:1/-1}
  .search-panel .duration-field {grid-column:auto}
  .search-panel .duration {grid-template-columns:40px minmax(0,1fr) 40px}
  .search-panel .duration button {min-width:40px}
  .search-panel .duration-full {display:none}
  .search-panel .duration-short {display:inline}
  .search-panel .field>span {font-size:13px;line-height:1.4}
  .results-bar {margin-top:0;margin-bottom:12px}
  .mobile-catalog-tools {margin-bottom:16px}
  .filter-sheet {position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,560px);max-width:100%;max-height:calc(100dvh - 16px - env(safe-area-inset-top,0px));padding:0;border-radius:20px 20px 0 0;overflow:auto}
  .filter-sheet .filters.open {display:block;position:static;padding:0 20px 20px;margin:0;border:0;border-radius:0;background:var(--surface)}
  .filter-sheet-heading {position:sticky;top:0;background:var(--surface);z-index:2;padding-block:16px;margin-bottom:8px}
  .filter-sheet-heading h3 {font-size:22px}
  .filter-sheet-dismiss {display:grid;width:44px;height:44px;min-height:44px}
  .filter-sheet-done {display:flex;position:sticky;bottom:0;width:100%;margin-top:24px;box-shadow:0 0 0 12px var(--surface);margin-bottom:env(safe-area-inset-bottom,0px)}
  .filter-sheet .choice-options {max-height:260px;overflow-y:auto;overscroll-behavior:contain}
  .filter-sheet .filters>small {font-size:13px}
  .filter-sheet .filters .check {min-height:44px}
  .bottom-nav {padding-top:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom,0px));gap:0}
  .bottom-nav a {min-height:52px;font-size:11px;line-height:1.25;gap:5px;padding:4px 2px}
  .bottom-nav a .ui-icon {width:24px;height:24px}
  .bottom-nav span {font-size:11px;line-height:1.25}
  body:not(.management) {padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
  .account-nav {padding:8px;background:transparent;border:0;box-shadow:none;margin-bottom:8px}
  .account-nav nav {display:flex;overflow-x:auto;gap:6px;scrollbar-width:none;padding:4px;scroll-padding-inline:4px}
  .account-nav a {white-space:nowrap;flex:none;margin:0;padding:10px 14px;font-size:14px;border:1px solid var(--line);background:var(--surface)}
  .account-nav a.active {border-color:var(--ink);background:var(--ink);color:var(--bg)}
  .account-layout {gap:20px;grid-template-columns:minmax(0,1fr)}
  .account-title {margin-bottom:24px}
  .account-title h1 {font-size:30px}
  .account-title p {font-size:14px}
  .account-title>.secondary {min-height:44px;font-size:14px}
  .map-preview {max-height:min(420px,55dvh)}
  .map-preview-close {float:none;display:flex;align-items:center;justify-content:center;margin:0 0 8px auto}
  .pati-map {height:calc(100dvh - 176px);min-height:380px;max-height:680px}
  .footer-inner {gap:28px}
  dialog:not(.filter-sheet) {padding:28px 20px 24px}
  dialog:not(.filter-sheet) h2 {font-size:27px;line-height:1.2}
  #toast {bottom:calc(84px + env(safe-area-inset-bottom,0px));padding:12px 16px}
}
@media(max-width:760px) {
  .management .admin-sidebar,.seller .admin-sidebar {padding:12px 16px;gap:12px}
  .management .admin-sidebar>div:first-child,.seller .admin-sidebar>div:first-child {display:flex;align-items:center;gap:12px}
  .management .admin-sidebar small,.seller .admin-sidebar>div:first-child>small {display:none}
  .workspace-menu-toggle {margin-left:auto;display:inline-flex;align-items:center;gap:8px;min-height:44px;border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:8px 12px;color:var(--ink);font-size:14px}
  .workspace-menu-toggle svg {width:20px;height:20px}
  .management .admin-sidebar.has-workspace-menu:not(.workspace-menu-open) .admin-menu,.seller .admin-sidebar.has-workspace-menu:not(.workspace-menu-open) .admin-menu,.seller .admin-sidebar.has-workspace-menu:not(.workspace-menu-open)>.field {display:none}
  .management .admin-sidebar.workspace-menu-open .admin-menu,.seller .admin-sidebar.workspace-menu-open .admin-menu {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:4px}
  .management .admin-menu a,.seller .admin-menu a {flex-direction:row;gap:8px;min-height:48px;padding:10px;font-size:13px;line-height:1.4}
  .management .admin-toolbar,.seller .admin-toolbar {min-height:60px;height:auto;padding:8px 16px}
  .management .admin-toolbar .test-pill,.seller .admin-toolbar .test-pill {display:none}
  .seller .admin-sidebar-bottom {display:none}
  .management .admin-shell,.seller .admin-shell {display:block}
  .management .admin-main,.seller .admin-main {padding:24px 16px 40px}
  .management .admin-title h1,.seller .admin-title h1 {font-size:28px;line-height:1.2}
  .management .admin-title,.seller .admin-title {gap:16px}
  .management .admin-title p,.seller .admin-title p {font-size:14px}
  .management .fields,.seller .fields {grid-template-columns:minmax(0,1fr);gap:20px}
  .management .fields .full,.seller .fields .full {grid-column:1/-1}
  .management .panel,.seller .panel {padding:20px}
  .management .admin-filters,.seller .admin-filters {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
  .management .admin-filters .field,.seller .admin-filters .field {min-width:0;margin:0}
  .admin-filters .field:has(select),.admin-filters>.primary {grid-column:1/-1}
  .admin-filters>button:not([type=button]) {grid-column:1/-1}
  .management .admin-metric strong {font-size:clamp(22px,6vw,30px)}
  .management .admin-metric span,.management .admin-metric small {font-size:13px;line-height:1.5}
  .management .admin-table .secondary,.seller .admin-table .secondary {min-height:44px;font-size:13px}
  .management .admin-save>div {gap:12px}
  .management .admin-save {position:static}
  .training-page h1 {font-size:34px;line-height:1.12}
  .training-page .training-hero h1 {font-size:clamp(36px,9.5vw,48px)}
  .training-notice {padding:14px;gap:12px;margin-bottom:24px}
  .training-notice span,.training-notice a {font-size:12px}
  .training-notice a {flex:0 0 76px}
  .coach-card-body h2 {font-size:26px;line-height:1.2}
  .coach-card-body p,.coach-card-body li,.training-page .training-venue-list p {font-size:14px;line-height:1.6}
  .training-page .training-venue-list small,.training-page .training-disclaimer {font-size:12px;line-height:1.6}
  .training-page .training-page-heading p,.training-page .training-hero>div>p:last-child {font-size:15px}
  .training-page .training-lesson-heading p,.training-page .training-state-note p,.training-page .training-price-lines p {font-size:14px}
  .training-page .training-settlement span,.training-page .trainer-metrics span {font-size:12px;line-height:1.5}
  .training-page .chips .chip {min-height:44px;font-size:13px}
  .training-page .fields {grid-template-columns:1fr;gap:20px}
  .training-page .fields .full {grid-column:1/-1}
  .training-slots {grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  .training-page .panel {padding:20px}
}
@media(min-width:701px) and (max-width:760px) {
  .management .admin-sidebar>div:first-child {display:flex}
  .management .admin-sidebar {height:auto;position:static;border-right:0;border-bottom:1px solid var(--line)}
}
@media(max-width:500px) {
  .grid {gap:16px}
  .card {display:flex}
  .card-media {height:auto;aspect-ratio:16/10;min-height:0}
  .card-body {padding:18px}
  .card-body h3 {font-size:20px;line-height:1.3}
  .card-body>a>p {font-size:15px;margin-block:6px}
  .card-body>p {font-size:14px}
  .card .tags {margin-block:14px}
  .card .tag {font-size:12px}
  .panel {border-radius:16px}
  .venue-heading h1 {font-size:30px;line-height:1.15}
  .venue-heading>p {font-size:16px;line-height:1.6}
  .venue-heading .tags>.secondary {width:100%;justify-content:center;margin-top:8px}
  .facts {grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px}
  .fact {font-size:15px}
  .fact small {font-size:13px;margin-bottom:4px}
  .venue-layout .panel h2 {font-size:23px}
  .venue-layout .panel .secondary {white-space:normal;text-align:center}
  .gallery-thumbs button {min-width:80px;min-height:64px}
  .booking-card {gap:12px;align-items:start}
  .booking-price {flex-wrap:wrap;gap:10px}
  .booking-price .secondary {min-height:44px}
  .account-title .secondary {min-height:44px;font-size:13px}
  .empty {padding:32px 20px}
  .empty p {font-size:15px;line-height:1.6}
  .entry-heading h1,.entry-form h1 {font-size:34px}
  .entry-card {padding:24px}
}
@media(prefers-reduced-motion:no-preference) {
  dialog[open] {animation:pati-dialog-appear var(--motion-panel) var(--ease-out)}
  @keyframes pati-dialog-appear {from{opacity:.3;transform:translateY(10px)}to{opacity:1;transform:none}}
  .filter-sheet[open] {animation:pati-dialog-appear var(--motion-panel) var(--ease-out)}
}
@media(prefers-reduced-motion:reduce) {
  dialog[open],.filter-sheet[open] {animation:none}
  button:active:not(:disabled),a.primary:active,a.secondary:active {transform:none}
}

/* One motion rhythm; no animated layout, blur, shadows or page-sized glass. */
@media(prefers-reduced-motion:no-preference) {
  :root {--motion-control:180ms;--motion-surface:240ms}
  button,.primary,.secondary,.chip,.select-trigger,.quick-filter {
    transition:background-color var(--motion-control) ease,color var(--motion-control) ease,
      border-color var(--motion-control) ease,transform 120ms var(--ease-out);
  }
  .select-trigger::after {transition:transform var(--motion-control) var(--ease-out)}
  .card-media img,.coach-cover img {transition:transform 280ms var(--ease-out)}
  .favorite .ui-icon {transition:transform var(--motion-control) var(--ease-out),color var(--motion-control) ease}
  .favorite:active:not(:disabled) .ui-icon {transform:scale(.88)}
  :root:not([data-motion-input=keyboard]) .select-options:popover-open,
  :root:not([data-motion-input=keyboard]) .quick-filter-options:popover-open {
    animation:pati-options-enter 180ms var(--ease-out);
  }
  @keyframes pati-options-enter {
    from {opacity:.35;transform:scale(.98) translateY(3px)}
    to {opacity:1;transform:none}
  }
  #toast {animation:pati-toast-enter var(--motion-surface) var(--ease-out)}
  @keyframes pati-toast-enter {from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}
  @media(hover:hover) and (pointer:fine) {
    .card:has(.card-media:hover) .card-media img,.coach-cover:hover img {transform:scale(1.025)}
    .primary:hover:not(:disabled),.secondary:hover:not(:disabled) {transform:translateY(-1px)}
    .primary:active:not(:disabled),.secondary:active:not(:disabled) {transform:scale(.98)}
  }
  /* Native top-layer exit transitions keep closing interruptible and preserve focus restoration. */
  @supports (transition-behavior:allow-discrete) {
    dialog {
      opacity:0;transform:translateY(10px) scale(.99);
      transition:opacity var(--motion-surface) var(--ease-out),transform var(--motion-surface) var(--ease-out),
        display var(--motion-surface) allow-discrete,overlay var(--motion-surface) allow-discrete;
    }
    dialog[open],.filter-sheet[open] {opacity:1;transform:none;animation:none}
    dialog::backdrop {
      opacity:0;
      transition:opacity 200ms ease,display var(--motion-surface) allow-discrete,overlay var(--motion-surface) allow-discrete;
    }
    dialog[open]::backdrop {opacity:1}
    @starting-style {
      dialog[open] {opacity:0;transform:translateY(10px) scale(.99)}
      dialog[open]::backdrop {opacity:0}
    }
    @media(max-width:800px) {
      .filter-sheet {transform:translateY(24px)}
      .filter-sheet[open] {transform:none}
      @starting-style {.filter-sheet[open] {transform:translateY(24px)}}
    }
  }
  :root[data-motion-input=keyboard] dialog,
  :root[data-motion-input=keyboard] dialog::backdrop {transition:none;animation:none}
  :root[data-motion-input=keyboard] button:active {transform:none}
  @media(max-width:800px) {
    :root:not([data-motion-input=keyboard]) .play-filters.is-open {animation:pati-dialog-appear var(--motion-surface) var(--ease-out)}
  }
}

.training-unavailable {display:block;padding:12px 14px;background:var(--raised);border-radius:10px;color:var(--muted);font-size:14px;line-height:1.5}
.training-inline-actions .training-unavailable {padding:0;background:transparent;font-size:13px}
.training-book-aside>.primary {display:flex;justify-content:center;width:100%}
.entry-card h2 {margin-top:0}
@media(min-width:801px){.training-hero-aside {display:flex;flex-direction:column;justify-content:center}}
@media(min-width:801px){.filters{max-height:calc(100dvh - 124px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent}}
@media(max-width:800px){.stats-presets button,.stats-metrics button,.seller .seller-calendar-views button {min-height:44px}.seller .seller-calendar-period input {min-height:44px}.training-notice strong {font-size:13px}.training-page .coach-card-price small {font-size:12px;line-height:1.5}}
@media(min-width:501px) and (max-width:950px){.entry-card h2{margin-top:0}.entry-card .wide{grid-row:1/3}}
.password-control {position:relative;min-width:0}
.password-control input {padding-right:54px}
.password-toggle {position:absolute;right:3px;top:50%;transform:translateY(-50%);width:44px;height:44px;min-height:44px;padding:10px;border:0;border-radius:8px;background:transparent;color:var(--muted)}
.password-toggle:active:not(:disabled) {transform:translateY(-50%)}
.password-toggle svg {display:block;width:24px;height:24px}
.stats-plot text {font-family:Golos,Arial,sans-serif}

:where(button,a,input,select,textarea):focus-visible {outline-color:var(--focus)}
.management :focus-visible,.training-page :focus-visible,.filters :focus-visible {outline-color:var(--focus)}
.training-search-input {border-color:var(--control-line)}
.training-search-input:focus-within {outline-color:var(--focus)}
.card-details {display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;gap:16px;font-size:14px}
@media(hover:hover) and (pointer:fine){.card-details:hover>span:first-child{text-decoration:underline;text-underline-offset:4px}}

/* Profile save and notification verification are separate tasks, with one rhythm. */
.profile-verification{display:grid;gap:16px;border-top:1px solid var(--line);margin-top:24px;padding-top:24px}
.profile-verification>div{display:grid;gap:16px;justify-items:start;min-width:0}
.profile-verification .form-hint{margin:0;color:var(--muted);font-size:14px;line-height:1.6;max-width:65ch}
.profile-panel .error:empty{display:none}
.profile-panel input[readonly]{background:var(--surface);color:var(--muted)}
.profile-panel .form-actions{margin:0}
.training-notice>div{min-width:0;flex:1}
.training-notice>a{flex:none;gap:4px;white-space:nowrap;text-decoration:none}
.training-notice>a .ui-icon{width:16px;height:16px;flex:none}
.training-notice>a:focus-visible{outline-offset:4px}
.training-page .coach-meta{font:400 13px/20px var(--ui-font);letter-spacing:0;color:var(--muted);margin:0 0 16px}
.training-page .coach-card .coach-meta{margin:0 0 12px}
@media(max-width:800px){
  .training-notice{flex-wrap:wrap;gap:8px 16px}
  .training-notice>div{flex-basis:200px}
  .training-notice>a{flex:0 0 auto;min-height:44px;text-align:left}
  .play-game-team .play-team-tools button,.play-game-team>summary{min-height:44px}
}

@media(max-width:800px){html:has(.bottom-nav){scroll-padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}.field input,.field textarea,.select-trigger{scroll-margin-block:calc(var(--pati-header-bottom,80px) + 16px) 100px}}

/* Player entry shares the existing form controls and rounded PATI containers. */
.player-entry-page .entry-form{width:100%;max-width:520px;margin-inline:auto}
.player-entry-page h1{font-size:clamp(26px,5vw,36px);line-height:1.15}
.player-entry-page form{display:grid;gap:16px}
.player-entry-page .auth-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}
.player-yandex-button{margin-top:16px}
.player-entry-page .note{margin-block:20px;line-height:1.5}
.player-entry-page .check{display:flex;align-items:flex-start;gap:10px;flex-wrap:nowrap}
.player-entry-page .check input{flex:0 0 auto}
.player-entry-page .check span{flex:1;min-width:0;line-height:1.5}

/* Sign-in precedes the private game form. */
#player-login-modal{width:min(520px,calc(100vw - 24px));max-width:none;padding:0;border:1px solid var(--line);border-radius:24px;background:var(--surface);color:var(--ink);overflow:auto}
#player-login-modal .player-entry-modal-content{padding:32px 24px 24px}
#player-login-modal .entry-form{margin:0;padding:0;border:0;background:transparent;box-shadow:none;max-width:none}
#player-login-modal h1{padding-right:44px;font-size:clamp(26px,5vw,32px);line-height:1.15}
#player-login-modal .player-entry-back{margin-bottom:0}
#player-login-modal .player-login-close{position:absolute;z-index:1}
.player-login-gate{max-width:720px}
.player-login-gate .panel{padding:28px}
@media(max-width:480px){#player-login-modal{max-height:calc(100dvh - 24px)}#player-login-modal .player-entry-modal-content{padding:28px 20px 20px}}
