/* The swims screens' own styles: Swims (SwimsView), the Check inbox, select mode and its bulk
   actions, the filter sheet and the correction editor. */
:root { --destructive: #ff3b30; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --destructive: #ff453a; } }
:root[data-theme="dark"] { --destructive: #ff453a; }

/* iOS 26 inset grouped section headers: sentence case, semibold, secondary. */
.swims .list-header, .swims-form .list-header { text-transform: none; font-size: 17px; line-height: 22px; font-weight: 600;
  color: var(--secondary); padding-left: var(--l); }
.swims .list-header svg { width: 22px; height: 22px; }
.swims .list-row + .list-row::before, .swims-form .list-row + .list-row::before { right: var(--l); }
.swims .list-row .chevron { margin-left: calc(-1 * var(--xs)); }
.swims-note { margin-top: var(--s); }
.list .swims-note .demo-note { margin: 0; }
.swims-empty { margin-top: var(--l); }

/* CheckRow: the fix, Apply to all and Dismiss. */
.check-row { padding-top: 14px; padding-bottom: 14px; }
.check-btn { min-height: 32px; font-size: 15px; font-weight: 400; padding: 0 14px; }
.btn.grey { background: var(--fill); color: var(--aqua); }
.check-dismiss { color: var(--secondary); padding: 6px 0 6px 8px; }

/* Select mode: the check circles, and the bulk actions in the tab bar's place. */
.swims .checkcircle { margin-right: var(--xs); }
.bulk-actions { position: absolute; left: 16px; right: 16px; bottom: 22px; height: 62px; z-index: 30; display: flex; align-items: center;
  justify-content: space-between; padding: 0 4px; pointer-events: none; }
.app.no-status .bulk-actions { bottom: 12px; }
.bulk-btn { pointer-events: auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--label);
  background: var(--glass); box-shadow: 0 1px 8px rgba(0,0,0,0.12); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.bulk-btn svg { width: 24px; height: 24px; }
.bulk-btn[disabled] { color: var(--tertiary); cursor: default; }

/* Menus, dialogs and alerts (parts/swims-ui.js). */
.swims-overlay { position: absolute; inset: 0; z-index: 80; opacity: 0; transition: opacity 0.18s; }
.swims-overlay.shown { opacity: 1; }
.swims-overlay.dialog-layer, .swims-overlay.alert-layer { background: rgba(0,0,0,0.25); }
.swims-menu { position: absolute; padding: 6px 0; border-radius: 22px; background: rgba(250, 250, 252, 0.94); box-shadow: 0 8px 40px rgba(0,0,0,0.22);
  backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8); max-height: 70%; overflow-y: auto; }
:root[data-theme="dark"] .swims-menu { background: rgba(44,44,46,0.92); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .swims-menu { background: rgba(44,44,46,0.92); } }
.menu-item { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 0 var(--l) 0 10px; text-align: left; font-size: 17px; }
.menu-item:active { background: var(--fill); }
.menu-item.destructive { color: var(--destructive); }
.menu-item[disabled] { color: var(--tertiary); }
.menu-check { width: 18px; flex: none; display: grid; place-items: center; }
.menu-check svg { width: 15px; height: 15px; }
.menu-divider { height: 8px; background: var(--fill); margin: 4px 0; }
.swims-dialog { position: absolute; left: 8px; right: 8px; bottom: 30px; display: flex; flex-direction: column; gap: 8px; }
.dialog-group { border-radius: 26px; background: var(--surface); overflow: hidden; }
.dialog-title { padding: 14px var(--l); text-align: center; font-size: 13px; line-height: 18px; color: var(--secondary); font-weight: 600;
  border-bottom: 0.5px solid var(--separator); }
.dialog-button { display: block; width: 100%; min-height: 56px; font-size: 17px; }
.dialog-button.destructive { color: var(--destructive); }
.dialog-button.cancel { border-radius: 26px; background: var(--surface); font-weight: 600; color: var(--aqua); }
.swims-alert { position: absolute; top: 50%; left: 50%; width: 290px; transform: translate(-50%, -50%); border-radius: 30px;
  background: var(--surface); box-shadow: 0 8px 40px rgba(0,0,0,0.22); overflow: hidden; }
.alert-text { padding: 20px 20px 16px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.alert-field { width: 100%; height: 34px; border-radius: 10px; border: 0; background: var(--fill); padding: 0 10px; font: inherit; font-size: 15px; color: var(--label); }
.alert-buttons { display: flex; gap: 8px; padding: 0 16px 16px; }
.alert-buttons button { flex: 1; min-height: 44px; border-radius: 22px; background: var(--fill); font-size: 17px; }

/* Forms: the filter sheet and the editor. */
.swims-form .list-row { min-height: 52px; }
.swims-picker .updown { color: var(--secondary); margin-left: 4px; }
.swims-destructive { color: var(--destructive); justify-content: flex-start; }
.date-field { font: inherit; font-size: 17px; color: var(--aqua); background: var(--fill); border: 0; border-radius: 8px; padding: 6px 10px; }
.edit-field { width: 84px; border: 0; background: none; font: inherit; font-size: 17px; text-align: right; color: var(--label); padding: 0; }
.edit-field::placeholder { color: var(--tertiary); }
.edit-field:disabled { -webkit-text-fill-color: currentColor; opacity: 1; }
.edit-field.edit-time:disabled { -webkit-text-fill-color: var(--tertiary); }
.editor .segmented { width: 90px; flex: none; }
.inert-control { opacity: 0.5; }
.inert-control button[disabled] { cursor: default; }
.stepper button[disabled] { cursor: default; }
.edit-strip { padding-top: var(--l); padding-bottom: var(--l); }
.edit-pools { gap: var(--s); flex-wrap: wrap; }
.edit-pools .btn { min-height: 32px; padding: 0 14px; font-weight: 400; }
.edit-pools .btn[aria-pressed="true"] { background: color-mix(in srgb, var(--aqua) 20%, transparent); font-weight: 600; }
.edit-link { color: var(--aqua); }
.edit-link[disabled] { color: var(--tertiary); cursor: default; }
.edit-length { min-height: 60px; }
.edit-length .edit-position { min-width: 28px; }
.edit-compared s { text-decoration-thickness: 1px; }
