.training-day { padding: var(--space-5); margin-bottom: 20px; }
.training-day h2 { font-size: var(--text-heading); }
.training-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: 20px 0; border-top: 1px solid var(--line); }
.training-row p { margin: var(--space-2) 0; overflow-wrap: anywhere; }
.training-form { max-width: 780px; }
/* The form is the card's only content, so it starts at the card's padding. */
.training-form form { margin-top: 0; }
/* Each label sits just above its field, with the larger gap before the next label. */
.training-form label { display: block; margin: 0 0 var(--space-2); }
.training-form form > :is(select, textarea, input:not([type="hidden"]), .form-grid) { margin-bottom: var(--space-4); }
.training-form .helper { margin-top: calc(-1 * var(--space-2)); }
@media (max-width: 600px) {
  .training-row { align-items: start; flex-direction: column; }
  .training-row .btn { width: 100%; }
  .training-day { padding: 18px; }
}

.training-day + .training-day, .family-training { margin-top: 20px; }

.training-day > h2 { margin-bottom: 10px; }
.training-day p { margin: var(--space-2) 0; line-height: 1.5; }
.training-form .form-grid > div { min-width: 0; }
.training-form input { min-width: 0; max-width: 100%; }
.training-form textarea { width: 100%; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font: inherit; line-height: 1.5; resize: vertical; }
@media (max-width: 600px) {
  .training-form .form-grid { grid-template-columns: minmax(0, 1fr); }
}

.training-row > div { min-width: 0; overflow-wrap: anywhere; }

.restriction-form .helper { font-size: var(--text-small); line-height: 1.6; color: var(--muted); }
.lineup > .restriction-watch { margin: 18px; }

/* Training month toolbar (training_sessions/_month_select): the month select
   with a small step button either side, kept together as one toolbar item.
   The select repeats the list toolbar's select look, which only reaches the
   toolbar's direct children. */
.list-toolbar > .month-step { display: flex; align-items: center; gap: var(--space-1); }
.month-step select { width: auto; min-width: 170px; height: var(--control-height); padding: 0 var(--space-6) 0 var(--space-3); font-size: var(--text-small); }
.month-step .icon-btn { width: var(--control-height); height: var(--control-height); border: 1px solid var(--line); background: white; color: var(--ink); }
.month-step .icon-btn svg { transform: rotate(90deg); }
.month-step .icon-btn.next svg { transform: rotate(-90deg); }
@media (max-width: 700px) {
  .list-toolbar > .month-step { flex: 1 1 100%; }
  .month-step select { flex: 1; min-width: 0; }
}

/* Training session page (training_sessions/show, boards C-Treino-D/-P):
   the way back with editing and cancelling on its right (on a phone only
   "Edit"), the session on navy with the roll call's button over its state
   on the right (under it, full width, on a phone), then what the families
   were told beside the players expected, two names to a line on a phone. */
.tdetail-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.tdetail-top .head-back { margin: 0; font-size: var(--text-label); }
.tdetail-top .tdetail-short { display: none; }
.tdetail-hero { margin-bottom: 0; padding: 24px 28px; gap: 24px; }
.tdetail-hero .hero-eyebrow::before, .tdetail-hero .pitch-lines { display: none; }
.tdetail-hero .hero-note { margin-top: 8px; }
.tdetail-roll { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.tdetail-roll .btn { min-height: var(--control-height); }
.tdetail-roll .btn:disabled { background: var(--navy-2); color: var(--on-navy-muted); opacity: 1; cursor: default; }
.tdetail-roll-note { color: var(--on-navy-muted); font-size: var(--text-small); text-align: right; }
.tdetail-roll .badge { color: var(--on-navy-muted); }
.tdetail-roll .badge.orange { color: var(--on-navy); }
.tdetail-roll .badge.orange::before { border-color: var(--on-navy-muted); }
.tdetail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: start; gap: 24px; margin-top: 24px; }
.tdetail-card { padding: var(--space-4) 18px; }
.tdetail-instructions p { margin: 0 0 var(--space-2); font-size: var(--text-body); line-height: 1.5; overflow-wrap: anywhere; }
.tdetail-instructions p:last-child { margin-bottom: 0; }
.tdetail-muted { margin: 0; color: var(--muted); font-size: var(--text-body); }
.tdetail-note { margin: 10px 0 0; color: var(--muted); font-size: var(--text-small); line-height: 1.5; }
.tdetail-players { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; margin: 0; padding: 4px 18px 8px; list-style: none; }
.tdetail-players li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 0; border-top: 1px solid var(--surface-3); font-size: var(--text-label); font-weight: 600; overflow-wrap: anywhere; }
.tdetail-players .avatar { width: 28px; height: 28px; color: var(--muted); font-size: .6875rem; }

@media (max-width: 1000px) {
  .tdetail-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .tdetail-top .head-back { font-size: var(--text-body); }
  .tdetail-top .tdetail-long { display: none; }
  .tdetail-top .tdetail-short { display: inline; }
  .tdetail-top .head-actions { width: auto; }
  .tdetail-top .head-actions > * { flex: none; width: auto; }
  .tdetail-hero { flex-direction: column; align-items: stretch; gap: 14px; padding: 20px; }
  .tdetail-hero .hero-main { flex: none; }
  .tdetail-hero .hero-figure strong { font-size: 2.375rem; }
  .tdetail-roll { flex: 1 1 100%; align-items: stretch; }
  .tdetail-roll .btn { width: 100%; min-height: var(--control-height-lg); }
  .tdetail-roll-note { text-align: center; }
  .tdetail-players { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The family's training page (family_trainings/show, boards
   C-TreinoFamilia-D/-P): the way back to the agenda, the session on navy
   with each child's attendance in a chip under it, then the coach's
   instructions beside where it is and the way there. */
.tfamily-back { margin-bottom: 14px; font-size: var(--text-label); }
.tfamily-hero, .tfamily-grid { max-width: 880px; }
.tfamily-hero { flex-direction: column; align-items: flex-start; gap: 0; margin-bottom: 0; padding: 24px 28px; }
.tfamily-hero .hero-main { flex: none; }
.tfamily-hero .hero-eyebrow::before, .tfamily-hero .pitch-lines { display: none; }
.tfamily-hero .hero-note { margin-top: 8px; }
.tfamily-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: 14px; }
.tfamily-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius); background: var(--navy-2); color: var(--on-navy); font-size: var(--text-label); font-weight: 600; }
.tfamily-chip svg { flex: none; stroke-width: 2.6; }
.tfamily-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; margin-top: 24px; }
.tfamily-card { padding: var(--space-4) 18px; }
.tfamily-instructions p { margin: 0 0 var(--space-2); font-size: var(--text-body); line-height: 1.5; overflow-wrap: anywhere; }
.tfamily-instructions p:last-child { margin-bottom: 0; }

@media (max-width: 1000px) {
  .tfamily-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .tfamily-back { margin-bottom: 12px; font-size: var(--text-body); }
  .tfamily-hero { padding: 20px; }
  .tfamily-hero .hero-figure strong { font-size: 2.375rem; }
  .tfamily-chips { flex: none; }
}

/* The list of players the session page shows before the start
   (.roll-preview, training_sessions/show). */
.roll-list { margin: 0; padding: 0; list-style: none; }
.roll-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); padding: var(--space-3) 18px; }
.roll-row + .roll-row { border-top: 1px solid var(--line); }
.roll-name { flex: 1 1 12rem; min-width: 0; }
.roll-name strong, .roll-name small { display: block; }
.roll-name small { margin-top: 2px; color: var(--muted); font-size: var(--text-small); }

/* Roll call (training_attendances/show, the Chamada boards). The head says
   the team, when and where, and how many are marked, on the right on a
   laptop. The players go down two columns on a laptop (one card on a
   phone): the shirt number in a grey disc, the name, then the four states
   as a segmented control, under the name on a phone. A chosen state takes
   its own colour: Presente navy, Atrasado blue, Ausente yellow, Justificado
   white with navy stripes and outline. The save buttons sit in a white bar
   at the bottom of the screen, halves of it on a phone. */
.content:has(> .roll-page), .roll-page, .roll-form { display: flex; flex-direction: column; }
.roll-page, .roll-form { flex: 1 0 auto; }
.roll-page .page-head { align-items: flex-end; }
.roll-page .eyebrow { display: flex; align-items: flex-start; gap: var(--space-2); font-weight: 400; letter-spacing: 0; line-height: 1.45; }
.roll-page .eyebrow .badge { margin-top: 1px; }
.roll-page .head-actions { flex: 0 1 auto; }
.roll-count { margin: 0; color: var(--muted); font-size: var(--text-label); line-height: 1.5; }
.roll-count strong { color: var(--ink); }
.roll-columns { display: grid; margin-bottom: var(--space-5); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: var(--space-4); }
.roll-sheet { margin: 0; padding: 0; list-style: none; }
.roll-player { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(250px, 284px); align-items: center; gap: 10px; padding: 10px 12px; }
.roll-player + .roll-player { border-top: 1px solid var(--line-soft); }
.roll-who { display: flex; align-items: center; gap: var(--space-2); min-width: 0; font-size: var(--text-label); line-height: 1.3; }
.roll-who > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.roll-who strong { font-weight: 600; }
.roll-who small { color: var(--ink); font-size: .75rem; font-weight: 600; }
.roll-number { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); color: var(--muted); font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.roll-choice .late:has(input:checked) { background: var(--blue); color: var(--on-navy); }
.roll-choice .absent:has(input:checked) { background: var(--yellow); color: var(--navy); }
.roll-choice .excused:has(input:checked) { background: repeating-linear-gradient(135deg, var(--surface) 0 5px, #dfe5f1 5px 8px); box-shadow: inset 0 0 0 2px var(--navy); color: var(--navy); }
.roll-actions { position: sticky; bottom: 0; z-index: 5; display: flex; flex-direction: row-reverse; gap: var(--space-2); margin: auto -39px -35px; padding: 14px 39px; border-top: 1px solid var(--line); background: var(--surface); }
.roll-actions .btn.primary { padding-inline: 22px; }
/* "Marcar restantes presentes" is the bar's quiet button, grey as the
   Chamada boards draw it. */
.roll-actions .btn:not(.primary) { border-color: var(--surface-3); background: var(--surface-3); color: var(--ink); }
.roll-actions .btn:not(.primary):hover { border-color: var(--line); background: var(--line); }
.roll-short { display: none; }

@media (max-width: 1200px) {
  .roll-actions { margin-inline: -26px; margin-bottom: -29px; padding-inline: 26px; }
}

@media (max-width: 1100px) {
  .roll-columns { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .roll-count { font-size: var(--text-label); }
  .roll-columns { gap: 0; }
  .roll-sheet:not(:last-child) { border-bottom-right-radius: 0; border-bottom-left-radius: 0; }
  .roll-sheet + .roll-sheet { border-top: 1px solid var(--line-soft); border-top-left-radius: 0; border-top-right-radius: 0; }
  .roll-player { display: block; padding: var(--space-3) 14px; }
  .roll-who { font-size: var(--text-body); }
  .roll-choice { margin-top: 10px; }
  .roll-columns { margin-bottom: var(--space-4); }
  .roll-actions { margin: auto -17px 0; padding: var(--space-3) 12px; }
  .roll-actions .btn, .roll-actions .btn.primary { flex: 1 1 0; min-height: var(--control-height-lg); padding-inline: var(--space-2); font-size: var(--text-body); }
  .roll-long { display: none; }
  .roll-short { display: inline; }
  /* A task screen: the save bar takes the tab bar's place (C-Chamada-P). */
  .has-tabbar:has(.roll-page) .tabbar { display: none; }
  .has-tabbar:has(.roll-page) .content { padding-bottom: 0; }
  .has-tabbar:has(.roll-page) .roll-actions { bottom: 0; padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom)); }
}

/* The coach's teams (rosters/index, prefix eq-), as the Equipa boards draw
   them. On a laptop every team is a white sheet, two side by side: the badge,
   "N podem jogar de M" and "Mensagem à equipa" over its players. On a phone
   the segmented switch picks one team; its line sits above its rows, and
   the tabs count that team alone (.eq-narrow), the laptop all (.eq-wide). */
.eq-switch { display: none; }
.eq-narrow { display: none; }
.eq-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-5); border-bottom: 1px solid var(--line); }
.eq-bar .tabs { flex-wrap: wrap; gap: 24px; margin: 0; border-bottom: 0; }
.eq-bar .tabs a { font-size: var(--text-body); }
.eq-bar .list-toolbar { gap: var(--space-2); margin: 0 0 var(--space-2); }
.eq-bar .list-toolbar > * { height: var(--control-height-sm); min-height: 0; font-size: var(--text-label); }
.eq-bar .list-toolbar > .search { width: 220px; }
.eq-bar .list-toolbar > select { min-width: 0; max-width: 180px; }
.eq-sheets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; margin-top: 20px; }
.eq-team { overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.eq-team-head { display: flex; align-items: center; gap: 10px; padding: var(--space-4) 18px; border-bottom: 1px solid var(--line); }
.eq-team-head > .badge.team { font-size: .75rem; padding: 3px 8px; border-radius: 6px; }
.eq-can-play { flex: 1; color: var(--muted); font-size: var(--text-label); }
.eq-can-play b { color: var(--ink); }
.eq-team-head > .btn { flex: none; }
.eq-team .row-list { border-radius: 0; box-shadow: none; }
.eq-team .row-item { flex-wrap: nowrap; gap: var(--space-3); padding: 9px 18px; }
.eq-team .row-main { flex: 1 1 auto; gap: 1px; }
.eq-team .row-main small { color: var(--ink); font-weight: 600; }
.eq-team .row-item > svg { display: none; }
.eq-team .row-action .icon-btn { width: 36px; height: 36px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.eq-team .row-action .icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.eq-more { border-top: 1px solid var(--line-soft); }
.eq-more a { display: flex; justify-content: center; padding: 14px 18px; color: var(--blue); font-size: var(--text-label); font-weight: 600; }
.eq-empty .empty { padding: var(--space-6) var(--space-5); }

@media (max-width: 700px) {
  .eq-head .eyebrow { display: none; }
  .eq-switch { display: block; margin-top: 14px; }
  .eq-switch .segmented label { font-size: var(--text-label); }
  .eq-wide { display: none; }
  .eq-narrow { display: inline-flex; }
  .eq-bar { display: block; margin: var(--space-2) 0 0; border-bottom: 0; }
  .eq-bar .tabs { flex-wrap: nowrap; gap: 20px; max-width: none; margin: 0 calc(-1 * var(--space-4)); padding: 0 var(--space-4); border-bottom: 1px solid var(--line); }
  .eq-bar .tabs a { gap: 6px; font-size: var(--text-label); }
  .eq-bar .tab-count { min-width: 20px; height: 20px; }
  .eq-bar .list-toolbar { flex-wrap: nowrap; margin: 10px 0 0; }
  .eq-bar .list-toolbar > * { height: var(--control-height); }
  .eq-bar .list-toolbar > .search { flex: 1 1 auto; width: auto; min-width: 0; }
  .eq-bar .list-toolbar > select { flex: none; width: auto; max-width: none; }
  .eq-sheets { display: block; margin-top: 14px; }
  .eq-sheets:has(.is-current) .eq-team:not(.is-current) { display: none; }
  .eq-team { overflow: visible; border-radius: 0; background: none; box-shadow: none; }
  .eq-team + .eq-team { margin-top: var(--space-5); }
  .eq-team-head { justify-content: space-between; padding: 0 var(--space-2); margin-bottom: 10px; border-bottom: 0; }
  .eq-sheets:has(.is-current) .eq-team-head > .badge.team { display: none; }
  .eq-team-head > .btn { min-height: 0; padding: 0; border: 0; background: none; font-size: var(--text-label); }
  .eq-team .row-list, .eq-empty { overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
  .eq-team .row-item { padding: 9px var(--space-4); }
  .eq-team .row-action .icon-btn { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-3); box-shadow: none; color: var(--ink); }
}

/* Training list (training_sessions/index, prefix tlist-). The header's add
   button is the page's yellow button, a plus alone on a phone; the tabs share one line
   with the team chips on a computer, the chips going under them on a
   phone. Each week's sessions are a table on a computer (the team badge
   before "Treino", the place wrapping) and rows on a phone. */
.tlist-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin: 24px 0 0; border-bottom: 1px solid var(--line); }
.tlist-bar .tabs { margin: 0; border-bottom: 0; }
/* The space between the last week's card and "Show more", as other lists have. */
.tlist-more { margin-top: var(--space-3); }
.tlist-bar .choice-chips { padding-bottom: var(--space-2); }
.tlist-bar + .list-toolbar { margin-top: var(--space-4); }
.tlist-week { margin-top: 22px; }
.tlist-empty { margin-top: 22px; }

.tlist-table table { table-layout: fixed; min-width: 820px; }
.tlist-table td { padding: 10px 16px; border-bottom: 1px solid var(--surface-3); color: var(--ink); font-size: var(--text-label); vertical-align: middle; }
.tlist-table tr:last-child td { border-bottom: 0; }
.tlist-table tr { position: relative; }
.tlist-table tr:hover td { background: var(--surface-2); }
.tlist-col-date { width: 84px; }
.tlist-col-title { width: 176px; }
.tlist-col-time { width: 130px; }
.tlist-col-state { width: 150px; }
.tlist-col-action { width: 160px; }
.tlist-open { color: var(--ink); font-size: var(--text-body); font-weight: 700; }
.tlist-open::after { content: ""; position: absolute; inset: 0; }
.tlist-open:hover { color: var(--ink); }
.tlist-title { display: flex; align-items: center; gap: 10px; }
.tlist-venue { color: var(--muted); white-space: normal; overflow-wrap: anywhere; }
.tlist-table td .badge { white-space: nowrap; }
.tlist-action { text-align: right; }
.tlist-action .btn { position: relative; z-index: 1; white-space: nowrap; }
.tlist-table .is-cancelled .tlist-open { color: var(--muted); text-decoration: line-through; }
.tlist-table .is-cancelled .tlist-time { color: var(--muted); }

.tlist-rows { display: none; }
.tlist-row .row-main small { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tlist-row .row-main small > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 700px) {
  .page-head:has(.tlist-add) { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .page-head:has(.tlist-add) .eyebrow { display: none; }
  .page-head:has(.tlist-add) .head-actions { width: auto; }
  .page-head:has(.tlist-add) .head-actions > * { flex: none; }
  .page-head .head-actions .tlist-add { width: 42px; min-height: 44px; padding: 0; border-color: var(--yellow); background: var(--yellow); color: var(--navy-deep); }
  .tlist-add:hover { border-color: var(--yellow-hover); background: var(--yellow-hover); }
  .tlist-add span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tlist-bar { flex-direction: column; align-items: stretch; margin-top: 14px; border-bottom: 0; }
  .tlist-bar .tabs { border-bottom: 1px solid var(--line); }
  .tlist-bar .choice-chips { padding-bottom: 0; }
  .tlist-week, .tlist-empty { margin-top: 18px; }
  .tlist-table { display: none; }
  .tlist-rows { display: block; }
  /* The state sits on the title's line, at the right; the grey line runs under both. */
  .tlist-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
  .tlist-row .row-main { min-width: 0; }
  .tlist-row .row-aside { align-self: start; margin-top: 4px; }
  .tlist-row:has(.row-aside) .row-main { grid-column: 2 / 4; grid-row: 1; }
  .tlist-row:has(.row-aside) .row-aside { grid-column: 3; grid-row: 1; }
}

/* The training form (boards C-Form-D/-P) in a form panel (.form-dialog):
   a head with the eyebrow (a computer only), the title and the close
   button; the fields, which scroll; and the foot with Cancel and save,
   kept at the bottom. Day, start and end share a row on a computer; on a
   phone the day takes its own row. */
.form-dialog.tform { padding: 0; box-shadow: -12px 0 40px rgb(17 28 58 / 18%); }
.tform[open] { display: flex; flex-direction: column; overflow: hidden; }
.tform-head { display: flex; flex: none; align-items: flex-start; justify-content: space-between; gap: var(--space-3); padding: 26px 28px 8px; }
.tform-eyebrow { color: var(--muted); font-size: 13px; line-height: normal; }
.tform-head h2 { margin: 2px 0 0; color: var(--ink); font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.tform .panel-close { color: var(--muted); }
.tform-form { display: flex; flex: 1; flex-direction: column; min-height: 0; margin: 0; }
.tform-body { display: flex; flex: 1; flex-direction: column; gap: 16px; padding: 16px 28px; overflow: auto; }
.tform-body > .form-errors { margin: 0; }
.tform-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tform-field label { margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; line-height: normal; }
.tform-help { color: var(--muted); font-size: 13px; font-weight: 400; line-height: normal; }
.tform-field label + .tform-help { margin-top: -4px; }
.tform-note { margin: 0; }
.tform-field :is(input, select, textarea) { width: 100%; height: 46px; min-height: 46px; margin: 0; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; background-color: var(--surface); color: var(--ink); font-size: 15px; line-height: 1.3; }
.tform-field textarea { height: 96px; padding: 11px 14px; resize: vertical; }
.tform-field :is(input, textarea)::placeholder { color: var(--faint); }
.tform-when { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
/* Local: a text field with the club's known places as suggestions, drawn
   like a select; the browser's own suggestion button stays clickable
   under the chevron. */
.tform .tform-venue { padding-right: 36px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23172440' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.tform-venue::-webkit-calendar-picker-indicator { opacity: 0; }
/* The selects get the same chevron; the day and time pickers keep working
   from a click on the field's right end, without their icon. */
.tform-field select { padding-right: 36px; appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23172440' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.tform-field :is([type=date], [type=time])::-webkit-calendar-picker-indicator { opacity: 0; }
.tform-field > .field-error { margin: 0; }
.tform-foot { display: flex; flex: none; justify-content: flex-end; gap: 8px; padding: 16px 28px; border-top: 1px solid var(--line); }
.tform-foot .btn:not(.primary) { color: var(--ink); }
.tform-foot .btn { width: auto; min-height: 46px; height: 46px; padding: 0 18px; border-radius: 12px; font-size: 15px; font-weight: 600; }
@media (max-width: 700px) {
  .form-dialog.tform { height: calc(100dvh - 56px); max-height: calc(100dvh - 56px); padding: 0; box-shadow: none; }
  .form-dialog.tform::before { height: 5px; border-radius: 3px; }
  .tform-head { align-items: center; padding: 27px 20px 4px; }
  .tform-eyebrow { display: none; }
  .tform-head h2 { margin: 0; font-size: 22px; letter-spacing: 0; }
  .tform .panel-close { width: 40px; height: 40px; }
  .tform-body { gap: 14px; padding: 12px 20px; }
  .tform-when { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tform-day { grid-column: 1 / -1; }
  .tform-foot { padding: 12px 20px 24px; }
  .tform-foot .btn { flex: 1 1 0; }
  .tform-foot .btn.primary { flex-grow: 1.4; min-height: 46px; font-size: 15px; }
}
