/* Apple original: Settings/SettingsView.swift - a sheet holding a grouped Form, measured from
   the YachtForms Catalyst app (macOS 26, 2026-10-16), in iPad points (Mac / 0.77).
   Mac: sheet 447 x 493 centred; round back button; "SETTINGS" a large gold title that turns
   into a small centred title in the bar once scrolled; white groups inset 15.5 with radius 20,
   text 16 in; rows 49.5 high (pickers), 44.8 (the switch), 43.5 (text boxes). */
.SettingsView {
  position: absolute; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.2);
}
.SettingsView-sheet {
  position: relative;
  width: 580.5px; height: 640.3px; max-width: calc(100% - 40px); max-height: calc(100% - 40px);
  border-radius: 26px; overflow: hidden;
  background: rgb(236, 236, 236);
  box-shadow: 0 0 0 0.65px rgba(0, 0, 0, 0.12), 0 20px 60px rgba(0, 0, 0, 0.25);
}
.SettingsView-form { position: absolute; inset: 0; overflow-y: auto; padding: 0 0 30px; }

/* The bar: back button always; the small title only once the large one has scrolled away */
.SettingsView-bar {
  position: absolute; left: 0; right: 0; top: 0; height: 64.3px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  transition: background .2s, box-shadow .2s;
}
.SettingsView-sheet.scrolled .SettingsView-bar {
  background: rgba(246, 246, 246, 0.92);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 0.65px 0 rgba(0, 0, 0, 0.1);
}
.SettingsView-back {
  position: absolute; left: 9.7px; top: 10.4px; width: 44.2px; height: 44.2px; border-radius: 50%;
  display: grid; place-items: center; pointer-events: auto;
  background: rgba(255, 255, 255, 0.85); color: var(--label);
  box-shadow: 0 0 0 0.65px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.08);
}
.SettingsView-back .Icon { width: 26px; height: 26px; stroke-width: 1.6; }
.SettingsView-inlineTitle {
  font-size: 19px; font-weight: 600; letter-spacing: 0.3px; color: var(--label);
  opacity: 0; transition: opacity .15s;
}
.SettingsView-sheet.scrolled .SettingsView-inlineTitle { opacity: 1; }

/* Large title: as the lists' (Gothic A1 SemiBold 26, highlight colour), 16 in */
.SettingsView-title {
  padding: 75px 16px 0 15.6px;
  font-family: "GothicA1", var(--ui); font-weight: 600; font-size: 26px; line-height: 34px;
  color: var(--highlight);
}

/* Section heading: 17 semibold, grey, upper case; 21 Mac pt above its group's top */
.GroupedForm-header {
  padding: 25.5px 20.8px 0 41.6px; margin-bottom: 10.4px;
  font-size: 17px; font-weight: 600; line-height: 22px; color: rgba(60, 60, 67, 0.6);
}
.GroupedForm-header.first { padding-top: 15.4px; }
.GroupedForm-section { margin: 0 20.1px; background: #fff; border-radius: 26px; overflow: hidden; }
.GroupedForm-row {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 64.3px; padding: 0 20.8px;
  font-size: 17px; font-weight: 400; color: var(--label);
}
.GroupedForm-row.switch { min-height: 58.2px; }
.GroupedForm-row.text { min-height: 56.5px; padding: 12px 20.8px; }
.GroupedForm-row.vessel { cursor: default; }
/* Fine lines between rows, from the text's left edge to its right */
.GroupedForm-row + .GroupedForm-row::before {
  content: ""; position: absolute; left: 20.8px; right: 20.8px; top: 0;
  border-top: 0.65px solid rgba(60, 60, 67, 0.16);
}
.GroupedForm-picker { display: flex; align-items: center; gap: 5px; color: rgb(110, 110, 110); font-size: 17px; }
.GroupedForm-picker .Icon { width: 16px; height: 20px; stroke-width: 1.4; }
.GroupedForm-pen { font-family: "ArchitectsDaughter", cursive; font-size: 19px; letter-spacing: 1.2px; color: var(--pen); white-space: pre-line; }
.GroupedForm-pen.placeholder { color: rgb(199, 199, 204); }
/* Footnote under a group: 13, grey, 16.2 line spacing */
.GroupedForm-footer {
  padding: 8px 41.6px 0 41.6px; margin-bottom: 3.1px;
  font-size: 13px; line-height: 16.2px; color: rgba(60, 60, 67, 0.6); white-space: pre-line;
}
/* The switch: macOS 26's wider pill, titanium when on */
.GroupedForm-toggle {
  position: relative; width: 62.3px; height: 28.6px; border-radius: 14.3px;
  background: rgba(120, 120, 128, 0.16); transition: background .2s; flex: none;
  margin-right: -3.2px;
}
.GroupedForm-toggle i {
  position: absolute; left: 2.3px; top: 2.3px; width: 37.7px; height: 24px; border-radius: 12px;
  background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .15), 0 0 0 0.5px rgba(0, 0, 0, .04); transition: left .2s;
}
.GroupedForm-toggle.on { background: var(--titanium); }
.GroupedForm-toggle.on i { left: 22.3px; }

/* An admin paused for being idle (task 72): one titanium row in place of the vessel's settings */
.GroupedForm-section.paused { margin-top: 26px; }
.GroupedForm-row.paused { width: 100%; color: var(--titanium); text-align: left; }
