body.site {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  display: block;
  padding: 0;
}
body.site .View {
  display: none;
  min-height: 100vh;
}
body.site .View.on { display: block; }
body.site:has(.View.portal.on) {
  height: 100vh;
  overflow: hidden;
}
body.site .View.portal.on {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  align-items: stretch;
  position: fixed;
  inset: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #0E1218;
  padding: 12px 12px 12px 0;
  box-sizing: border-box;
}
body.site .Logo {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--logo);
  font-weight: 900;
  font-size: 22px;
  color: var(--ink);
}
body.site .Logo i { color: var(--amber); }
body.site .Btn {
  width: auto;
  min-width: 112px;
  height: 44px;
  padding: 0 22px;
  margin: 0;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 600;
  background: var(--ink);
  color: #fff;
}
body.site .Btn.ink { background: var(--ink); color: #fff; }
body.site .Btn.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
body.site .Btn:disabled {
  opacity: 0.56;
  background: #D8D4CC;
  color: #555A61;
  cursor: default;
}
body.site .Btn.amber { background: var(--amber); color: #1F1500; }
body.site .Btn.alert {
  background: transparent;
  color: var(--alert);
  border: 1.5px solid var(--alert);
}
body.site .Warn {
  margin: 10px 0 0;
  color: var(--alert);
  font-size: 14px;
}
body.site .Hint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}
body.site .Hint.ok { color: #236B45; }
body.site .Hint.error { color: var(--alert); }

.Nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 40px;
  background: #fff;
}
.Nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
}
.Nav nav button,
.Nav nav span {
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.Nav nav span.On { font-weight: 600; }
.Nav nav span.Later { color: #B4B8C0; cursor: default; }
.NavRight {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.NavGhost,
.TextLink {
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.NavCta {
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.Hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 88px 40px 72px;
  text-align: center;
}
.Hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.05;
}
.Hero > p {
  margin: 16px auto 0;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.5;
}
.HeroRow {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.HeroBox {
  min-width: 220px;
  padding: 12px 16px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
}
.HeroBox span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.HeroBox strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.HeroBox select {
  width: 100%;
  margin-top: 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
}
.HeroGo {
  min-width: 132px;
  height: 58px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.Band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 80px;
  background: #E9B44C;
  color: #261C0B;
}
.BandCopy h2 {
  margin: 0;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.BandCopy p {
  margin: 16px 0 0;
  max-width: 420px;
  font-size: 16px;
  line-height: 1.5;
}
.BandStage { display: flex; justify-content: center; }
.FakeDesk {
  width: min(100%, 360px);
  padding: 18px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 50px -28px rgba(14, 18, 24, 0.35);
}
.FakeBar {
  height: 10px;
  width: 72px;
  border-radius: 999px;
  background: var(--ink);
}
.FakeLine {
  margin-top: 16px;
  height: 10px;
  border-radius: 999px;
  background: var(--paper);
}
.FakeLine.short { width: 55%; }
.FakeRow {
  margin-top: 10px;
  height: 28px;
  border-radius: 8px;
  background: #F7F4EE;
}

.Foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 40px;
  background: #fff;
  font-size: 13px;
}
.Foot button {
  margin-right: 16px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
}
.Foot p { margin: 0; color: var(--muted); }

.Gate {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--paper);
}
.GateTop { padding: 28px 40px; }
.Card {
  position: relative;
  z-index: 1;
  width: min(440px, calc(100% - 48px));
  margin: 48px auto 0;
  padding: 36px 36px 28px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 16px 40px -28px rgba(14, 18, 24, 0.28);
}
.Card h1 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.Lead {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.5;
}
.Lab {
  display: block;
  margin: 22px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.Card input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
}
.Card input:focus {
  outline: 3px solid rgba(245, 158, 11, 0.25);
  outline-offset: 1px;
  border-color: rgba(245, 158, 11, 0.7);
}
.CardRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}
.CardStack { margin-top: 22px; display: grid; gap: 10px; }
.Choice {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.Corner {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42vw;
  max-width: 560px;
  height: 34vh;
  background: var(--ink);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
}
.Corner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: var(--amber);
}
.GateFoot {
  position: absolute;
  left: 40px;
  bottom: 22px;
  z-index: 1;
}
.GateFoot button {
  margin-right: 18px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
}

.Rail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  padding: 28px 0 18px 16px;
  background: transparent;
  color: #fff;
  overflow: visible;
}
body.site .Rail .Logo {
  color: #fff;
  font-size: 24px;
  line-height: 1;
  text-align: left;
  padding-left: 10px;
}
.Rail nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 40px;
}
.Rail nav button {
  position: relative;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 18px 0 0 18px;
  background: none;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
}
.Rail nav button.On {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  z-index: 2;
}
.Rail nav button.On::before,
.Rail nav button.On::after {
  content: "";
  position: absolute;
  right: 0;
  width: 18px;
  height: 18px;
  background: #0E1218;
  pointer-events: none;
}
.Rail nav button.On::before {
  top: -18px;
  border-bottom-right-radius: 18px;
  box-shadow: 6px 6px 0 #fff;
}
.Rail nav button.On::after {
  bottom: -18px;
  border-top-right-radius: 18px;
  box-shadow: 6px -6px 0 #fff;
}
.RailMenu {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 0 8px;
}
.RailMenu button {
  position: relative;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 18px 0 0 18px;
  background: none;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
}
.RailMenu button.On {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  z-index: 2;
}
.RailMenu button.On::before,
.RailMenu button.On::after {
  content: "";
  position: absolute;
  right: 0;
  width: 18px;
  height: 18px;
  background: #0E1218;
  pointer-events: none;
}
.RailMenu button.On::before {
  top: -18px;
  border-bottom-right-radius: 18px;
  box-shadow: 6px 6px 0 #fff;
}
.RailMenu button.On::after {
  bottom: -18px;
  border-top-right-radius: 18px;
  box-shadow: 6px -6px 0 #fff;
}
.RailFoot {
  margin-top: 4px;
  height: auto;
  padding: 10px 18px 4px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.32);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.RailMenu .RailFoot.On,
.RailMenu .RailFoot::before,
.RailMenu .RailFoot::after { display: none; }
.Stage {
  min-width: 0;
  min-height: 0;
  height: 100%;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 20px 56px -32px rgba(0, 0, 0, 0.4);
  overflow-x: hidden;
  overflow-y: auto;
}
.StageTop,
.Desk {
  max-width: 1080px;
}
.StageTop {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 36px 40px 0;
}
.StageTop h1 {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-display);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.1;
}
.StageTop p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.StageTop .FileBack {
  display: block;
  margin: 0 0 10px;
  font-weight: 500;
}
.StageTools {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.StageTools .NavGhost {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.WhoChip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 4px;
  border: 0;
  border-radius: 999px;
  background: #F7F4EE;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.WhoChip i {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
}
.Desk {
  padding: 24px 40px 72px;
}
.Desk.wide,
.Desk.pack { max-width: none; }
.Desk.pack {
  padding-bottom: 0;
}
.Tool {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 16px;
}
.Tool .Fine { margin: 0; flex: 1; }
.ToolGrow { flex: 1; }
.WeekBar,
.PackBar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 14px;
}
.WeekBar {
  padding: 16px 18px;
  background: #F7F4EE;
  border: 0;
  border-radius: 20px;
}
.WeekBar p {
  margin: 0;
  min-width: 200px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.PackBar.tight { margin: 14px 0 0; }
.Desk.pack .OutRow { margin: 0 0 14px; }
.PackGrow { flex: 1; min-width: 12px; }
.SectionTitle {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-nav);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.PortalReportFeed {
  display: grid;
  gap: 28px;
  margin-top: 22px;
}
.PortalReportDay > header,
.PortalIncidentGroup > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 4px 10px;
}
.PortalReportDay h2,
.PortalIncidentGroup h3 {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-nav);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.PortalReportDay header p,
.PortalIncidentGroup header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--type-meta);
}
.PortalReportDay header > span,
.PortalIncidentGroup header > span {
  color: var(--muted);
  font-size: var(--type-meta);
  font-weight: 600;
}
.PortalReportRows,
.PortalIncidentRows {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
}
.PortalReportRow,
.PortalIncidentRow {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.PortalReportRow:last-child,
.PortalIncidentRow:last-child { border-bottom: 0; }
.PortalReportType,
.PortalIncidentRow > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.PortalReportType b,
.PortalIncidentRow b {
  color: var(--ink);
  font-size: var(--type-body);
  font-weight: 600;
}
.PortalReportType span,
.PortalIncidentRow p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-meta);
}
.ReportPill {
  flex: none;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--type-meta);
  font-weight: 600;
}
.PortalReportEmpty {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  font-size: var(--type-body);
}
.PortalIncidentGroup + .PortalIncidentGroup { margin-top: 28px; }
.PortalIncidentRow[data-incident] { cursor: pointer; }
.PortalIncidentRow > .IncidentActs {
  flex: none;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.RowBtn {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: var(--type-meta);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.RowBtn:hover { border-color: var(--ink); }
.RowBtn.dark { border-color: var(--ink); background: var(--ink); color: var(--white); }
.RowBtn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.RowActions:has(.Quiet) { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
#incident-rows > .Hint { margin: 0 0 12px; }
.ExportTools,
.ExportRange {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ExportTools { flex-wrap: wrap; justify-content: flex-end; }
.ExportRange label {
  color: var(--muted);
  font-size: var(--type-meta);
  font-weight: 600;
}
.ExportRange input {
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--type-meta);
}
.export-role[hidden] { display: none !important; }
.Menu {
  position: relative;
}
.MenuList {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 8;
  min-width: 220px;
  padding: 8px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px -20px rgba(14, 18, 24, 0.28);
}
.MenuBlock {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
}
.MenuBlock + .MenuBlock { border-top: 1px solid var(--line); }
.MenuBlock span {
  flex: 1;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.MenuBlock button {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.OutRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.Out {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 128px;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
}
.Out b {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
}
.Out span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.Out.ink {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.Out.ink span { color: rgba(255, 255, 255, 0.62); }
.Pack {
  background: #fff;
  border: 0;
  border-radius: 0;
  margin: 0 -40px;
  padding: 4px 0 0;
}
.PackTabs {
  display: flex;
  gap: 2px;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
}
.PackTabs button {
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.PackTabs button.On {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--ink);
}
.Pack .SheetWrap {
  padding: 12px 40px 8px;
  overflow-x: auto;
}
.Grid {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-family: var(--font);
  font-size: 13px;
}
.Grid th,
.Grid td {
  border-bottom: 1px solid var(--line);
  padding: 10px 4px;
  text-align: center;
  min-width: 26px;
  color: var(--ink);
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
}
.Grid thead th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}
.Grid td,
.Grid thead th:not(:first-child) {
  border-left: 1px solid var(--line);
}
.Grid td:last-child,
.Grid thead th:last-child {
  border-right: 1px solid var(--line);
}
.Grid thead th {
  border-top: 1px solid var(--line);
}
.Grid thead th:first-child {
  border-top: 0;
}
.Grid .end {
  background: #F7F4EE;
  color: #C9C4BA;
}
.Grid .today {
  background: color-mix(in srgb, var(--amber) 22%, #fff);
}
.Grid thead th.today {
  color: var(--ink);
}
.Grid thead th.on {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--ink);
}
.Grid tbody th {
  width: 188px;
  min-width: 168px;
  padding: 10px 12px 10px 0;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 1;
}
.NoteCard {
  margin: 0;
  padding: 24px 40px 48px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
}
.NoteCard .when {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.NoteCard .who {
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: 13px;
}
.Fields {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 560px;
}
.Field {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.Field span {
  flex: 1;
  color: var(--muted);
  font-size: 13px;
}
.Field b {
  flex: 0 0 auto;
  max-width: 55%;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}
.NoteCard .blurb {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}
.NoteCard .empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.Stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.Stat {
  min-height: 128px;
  padding: 20px 18px 16px;
  border: 0;
  border-radius: 20px;
  background: var(--paper);
}
.Stats .Stat:nth-child(1) {
  background: var(--ink);
  color: #fff;
}
.Stats .Stat:nth-child(1) .Kicker,
.Stats .Stat:nth-child(1) .Fine { color: rgba(255, 255, 255, 0.62); }
.Stats .Stat:nth-child(1) .Num { color: #fff; }
.Stat .Kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.Stat .Num {
  margin: 16px 0 8px;
  color: var(--ink);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.Stat .Fine {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}
.Board {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  align-items: start;
  gap: 12px;
  margin-bottom: 12px;
}
.Split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 12px;
  margin-bottom: 12px;
}
.Panel {
  background: var(--paper);
  border: 0;
  border-radius: 22px;
  padding: 22px 22px 18px;
}
.Panel.grow { min-width: 0; }
.Panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-nav);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.Panel h2 + h2,
.Panel .People + h2 { margin-top: 18px; }
.PanelHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.Kicker {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.Fine {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.Quiet {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.Quiet.more { margin-top: 16px; color: var(--ink); }
.Pip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.Person .Pip { margin-left: auto; }
.People { display: grid; gap: 8px; }
.Person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 6px 0;
}
.People .Person {
  min-height: 64px;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  background: #fff;
}
.People .Person:last-child { padding-bottom: 12px; }
.People .Person:first-child { padding-top: 12px; }
.Person strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}
.Person .meta {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.Face {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.Bars { display: grid; gap: 16px; padding-top: 4px; }
.Bars div {
  display: grid;
  grid-template-columns: 140px 1fr 28px;
  align-items: center;
  gap: 12px;
}
.Bars span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.Bars i {
  height: 6px;
  border-radius: 999px;
  background: var(--paper);
  position: relative;
}
.Bars i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--n, 40%);
  border-radius: inherit;
  background: var(--amber);
}
.Bars b {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.CodeLine {
  margin: 4px 0 0;
  font-size: 14px;
}
.CodeLine strong {
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
}
.acts {
  margin-left: auto;
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}
.acts button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.List .WhoCell strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.Stores { display: flex; gap: 12px; margin-top: 28px; }
.Store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.HeroRow.left { justify-content: flex-start; margin-top: 12px; }
.Panel input,
.Desk textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
}
.Desk .Lab { margin-top: 14px; font-weight: 500; color: var(--muted); }
.Desk .Lab.inline { margin: 0; }
.Desk > .Panel + .Panel,
.Desk > .Split + .Panel { margin-top: 12px; }
.Desk > .Fine { margin: 0 0 12px; }
.Person .Quiet { margin-left: auto; }
.RowActions { margin-top: 14px; }
.RowActions.stack { display: flex; flex-wrap: wrap; gap: 10px; }
.Panel select,
.StageTools select,
.StageTools input[type="month"] {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
}
.WeekWrap { overflow-x: auto; margin-top: 16px; }
.Week {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
}
.Week th,
.Week td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.Week thead th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.Week thead th.on { color: var(--ink); }
.Week tbody th {
  width: 20%;
  min-width: 96px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.Week tbody th span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.Week select {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 6px;
  font-size: 12px;
}
.Week td select:first-child { margin-top: 0; }
.Month {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 12px;
}
.Month th,
.Month td {
  padding: 6px 4px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.Month th:first-child,
.Month td:first-child { text-align: left; }
.Month thead th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.PrintHead {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}
.PrintHead strong { color: var(--ink); font-size: 16px; }
.PrintHead span { color: var(--muted); font-size: 12px; }
.PanelHead .StageTools { flex-wrap: wrap; }
.Toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 8px;
  font-weight: 600;
  color: var(--ink);
}
.ListBar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 16px;
}
.ListBar input[type="search"],
.ListBar input[type="text"],
.ListBar input[type="email"],
.ListBar select {
  flex: 1;
  min-width: 160px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #F7F4EE;
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
}
.ListBar .Btn { min-width: 0; }
.CodeChip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: #F7F4EE;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.CodeChip strong {
  color: var(--ink);
  letter-spacing: 0.12em;
}
.Fine.bar-note { margin: -6px 0 14px; }
.ListAct {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.List th:last-child,
.List td:last-child {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.List.plain th:last-child,
.List.plain td:last-child {
  width: auto;
  text-align: left;
}
.List tbody tr:hover td { background: var(--paper); }
.Import {
  margin-top: 20px;
  padding-top: 8px;
}
.Import summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.ListWrap {
  overflow-x: auto;
}
.List {
  width: 100%;
  border-collapse: collapse;
}
.List th,
.List td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  color: var(--ink);
  font-size: 13px;
}
.List thead th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: transparent;
}
.List tbody tr { cursor: pointer; }
.List.plain tbody tr { cursor: default; }
.List .WhoCell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.List .WhoCell .meta { margin: 3px 0 0; }
.List .end { text-align: right; }
.File {
  max-width: 720px;
}
.FileTop {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 8px;
}
.Face.lg {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  font-size: 20px;
}
.File .Info > div:first-child { padding-top: 0; }
.FileActs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 22px 0 8px;
}
.FileBlock {
  padding: 28px 0 8px;
  border-top: 1px solid var(--line);
}
.FileBlock h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.FileBlock > .Fine { margin: 0 0 8px; }
.FileBlockHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.FileBlockHead .Fine { margin-top: 6px; }
.DocumentUpload {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--paper);
}
.DocumentDrop {
  min-height: 112px;
  display: grid;
  place-content: center;
  gap: 6px;
  border: 1px dashed var(--muted);
  border-radius: var(--radius-control);
  color: var(--ink);
  text-align: center;
  cursor: pointer;
}
.DocumentDrop.over { border-color: var(--amber); }
.DocumentDrop b { font-size: var(--type-body); font-weight: 600; }
.DocumentDrop span { color: var(--muted); font-size: var(--type-meta); }
.DocumentFields {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto minmax(160px, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.DocumentFields select,
.DocumentFields input {
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.DocumentList { margin-top: 18px; border-top: 1px solid var(--line); }
.DocumentRow {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
}
.DocumentRow > div { display: flex; flex-direction: column; gap: 4px; }
.DocumentRow b { color: var(--ink); font-size: var(--type-body); font-weight: 600; }
.DocumentRow span { color: var(--muted); font-size: var(--type-meta); }
.DocumentRow .Expiry { display: inline-block; margin-left: 8px; font-weight: 600; }
.DocumentRow .Expiry.soon { color: var(--amber); }
.DocumentRow .Expiry.expired { color: var(--alert); }
.MemberImport {
  margin: 0 0 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
}
.MemberImport[hidden],
.ImportReview[hidden],
.SupportDrawer[hidden] { display: none !important; }
.ImportHead,
.ImportReviewHead,
.ImportActions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.ImportHead h2,
.ImportReviewHead h3,
.SupportHead h2 {
  margin: 3px 0 4px;
  color: var(--ink);
  font-size: var(--type-nav);
}
.MemberImport .DocumentDrop {
  margin-top: 18px;
  background: var(--white);
}
.ImportPrivacy,
.SupportPrivacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--white);
  color: var(--muted);
  font-size: var(--type-meta);
  line-height: 1.45;
}
.ImportPrivacy b,
.SupportPrivacy b {
  flex: none;
  color: var(--ink);
}
.ImportReview {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.ImportReviewHead span {
  color: var(--muted);
  font-size: var(--type-meta);
}
.ImportGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.ImportGrid label {
  color: var(--muted);
  font-size: var(--type-meta);
  font-weight: 600;
}
.ImportGrid input,
.ImportGrid select,
.ImportGrid textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.ImportGrid input,
.ImportGrid select { height: 42px; padding-top: 0; padding-bottom: 0; }
.ImportGrid textarea { resize: vertical; }
.ImportGrid .wide { grid-column: span 3; }
.ImportConfirm {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--ink);
  font-size: var(--type-body);
}
.ImportConfirm input { width: 18px; height: 18px; accent-color: var(--ink); }
.ImportActions {
  justify-content: flex-end;
  margin-top: 16px;
}
.SupportDrawer {
  position: fixed;
  z-index: 80;
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: min(390px, calc(100vw - 36px));
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow);
}
.SupportHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.SupportPrivacy { display: grid; }
.SupportMessages {
  flex: 1;
  min-height: 150px;
  overflow-y: auto;
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius-control);
  background: var(--paper);
}
.SupportMessage {
  width: fit-content;
  max-width: 86%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  color: var(--ink);
  font-size: var(--type-body);
  line-height: 1.45;
}
.SupportMessage.theirs { background: var(--white); }
.SupportMessage.mine {
  margin-left: auto;
  background: var(--ink);
  color: var(--white);
}
.SupportTopics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}
.SupportTopics button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: var(--type-meta);
  cursor: pointer;
}
.SupportComposer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
}
.SupportComposer textarea {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  color: var(--ink);
  font: inherit;
  resize: none;
}
.SupportDrawer > .Fine { margin-top: 10px; }
@media (max-width: 760px) {
  .DocumentFields { grid-template-columns: 1fr; }
  .DocumentRow { grid-template-columns: 1fr auto; padding: 12px 0; }
  .DocumentRow > div:nth-child(2) { grid-column: 1; }
  .DocumentRow .ListAct { grid-column: 2; grid-row: 1 / span 2; }
  .ExportTools { justify-content: flex-start; }
  .ImportGrid { grid-template-columns: 1fr; }
  .ImportGrid .wide { grid-column: auto; }
}
.File .Lab {
  display: block;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.File textarea {
  width: 100%;
  margin-top: 6px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  resize: vertical;
}
.File textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.FileLine {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.FileLine b {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.FileLine p {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}
.Info {
  display: grid;
}
.Info > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.Info b {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.Info span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}
.Desk > .Quiet { margin-bottom: 16px; }

@media (max-width: 980px) {
  body.site .View.portal.on {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 10px;
    gap: 10px;
  }
  .Rail {
    height: auto;
    min-height: 0;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    padding: 8px 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .Rail::-webkit-scrollbar { display: none; }
  .Rail nav,
  .RailMenu {
    flex: none;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 4px;
    margin: 0 0 0 12px;
    padding: 0;
  }
  .Rail nav button,
  .Rail nav button.On,
  .RailMenu button,
  .RailMenu button.On { height: 36px; padding: 0 12px; border-radius: 14px; }
  .Rail nav button.On::before,
  .Rail nav button.On::after,
  .RailMenu button.On::before,
  .RailMenu button.On::after { display: none; }
  .RailFoot { display: none; }
  .Stage { min-height: auto; border-radius: 28px; }
  .Board,
  .Split,
  .Stats,
  .Fields,
  .FileTop { grid-template-columns: 1fr; }
  .Bars div { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .Hero h1 { font-size: 36px; }
  .Band { grid-template-columns: 1fr; padding: 48px 24px; }
  .Nav, .GateTop, .Desk, .Hero, .Foot, .StageTop { padding-left: 20px; padding-right: 20px; }
  .Pack { margin: 0 -20px; }
  .PackTabs { padding: 0 20px; }
  .Pack .SheetWrap { padding: 12px 20px 8px; }
  .NoteCard { padding: 24px 20px 40px; }
  .acts button { display: block; margin: 8px 0 0; }
}
@media print {
  body.site { background: #fff; }
  body.site .View { display: none !important; }
  body.site:has(.View.portal.on) {
    height: auto;
    overflow: visible;
  }
  body.site .View.portal.on {
    display: block !important;
    position: static;
    height: auto;
    overflow: visible;
    grid-template-columns: 1fr;
    background: #fff;
    padding: 0;
  }
  .Rail,
  .StageTop,
  .no-print,
  .RailFoot,
  .Tool,
  .PackBar,
  .PackTabs { display: none !important; }
  .Doc { border: 0; padding: 0; }
  .Stage,
  .Desk,
  .Panel.print-keep {
    max-width: none;
    padding: 0;
    border: 0;
    background: #fff;
  }
  .Month td,
  .Month th { border-color: #bbb; }
}

body.site .Btn,
body.site .NavCta,
body.site .NavGhost,
body.site .TextLink,
body.site .HeroGo,
body.site .Choice,
.Rail nav button,
.RailMenu button {
  transition: transform 0.16s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.List tbody tr td,
.Person,
.MenuBlock button {
  transition: background 0.18s ease, color 0.18s ease;
}
body.site button:focus-visible,
body.site input:focus-visible,
body.site select:focus-visible,
body.site textarea:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.28);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  body.site .View.on:not(.portal) {
    animation: rise-in 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  body.site .View[data-view="home"].on {
    animation: none;
  }
  body.site .View.portal.on .Desk {
    animation: fade-in 0.2s ease both;
  }
  body.site .View.on .Card {
    animation: rise-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  body.site .Btn:active,
  body.site .NavCta:active,
  body.site .HeroGo:active,
  body.site .Choice:active,
  .Rail nav button:active,
  .RailMenu button:active {
    transform: scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.site .View.on:not(.portal),
  body.site .View.portal.on .Desk,
  body.site .View.on .Card { animation: none; }
}

/* Training */
.TrainTools { align-items: flex-end; }
.TrainTabs { flex: none; padding: 0; border-bottom: 0; }
.TrainList td, .TrainGrid td { vertical-align: top; }
.TrainName { display: block; color: var(--ink); font-size: var(--type-body); font-weight: 600; }
.TrainCiteLine { display: block; margin-top: 4px; color: var(--muted); font-size: var(--type-meta); }
.TrainKind,
.TrainCell {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--type-meta);
  font-weight: 600;
  white-space: nowrap;
}
.TrainKind.ddd { background: var(--ink); color: var(--white); }
.TrainKind.cert,
.TrainKind.ext { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.TrainRowActs { display: flex; flex-wrap: nowrap; gap: 6px; justify-content: flex-end; }
.TrainRowActs a.RowBtn { text-decoration: none; }
#train-form > .TrainRowActs { justify-content: flex-start; margin-bottom: 12px; }
#train-form .TrainRowActs .RowBtn { white-space: nowrap; }
.TrainCell.done { background: transparent; color: var(--ink); }
.TrainCell.none { background: transparent; color: var(--muted); }
.TrainCell.soon { background: color-mix(in srgb, var(--amber) 22%, #fff); color: var(--ink); }
.TrainCell.late { background: color-mix(in srgb, var(--alert) 12%, #fff); color: var(--alert); }
.TrainGrid thead th { white-space: normal; min-width: 120px; }
.TrainGrid tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.TrainGrid th:last-child, .TrainGrid td:last-child { text-align: left; }
.TrainList td:last-child { text-align: right; }
#train-form .DocumentDrop { margin-top: 18px; background: var(--white); }
#train-form .ImportGrid + .Fine,
#train-form .ImportGrid + .DocumentDrop { margin-top: 14px; }
.TrainQEdit { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.TrainQEdit:first-of-type { border-top: 0; padding-top: 0; }
.TrainQEdit .ImportGrid { margin-top: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.TrainQEdit .ImportGrid .wide { grid-column: span 2; }
.TrainOptField span { display: flex; align-items: center; gap: 6px; }
.TrainOptField input[type="radio"] { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.TrainAddQ { margin-top: 16px; }
.TrainPick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 14px;
  margin-top: 6px;
}
.TrainPick .ImportConfirm { margin-top: 10px; font-size: 14px; }
.TrainActs { display: flex; gap: 10px; }
.TrainActs .Btn { margin-top: 0; }
#train-note { margin: 0 0 12px; }
@media (max-width: 760px) {
  .TrainPick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .TrainQEdit .ImportGrid { grid-template-columns: minmax(0, 1fr); }
  .TrainQEdit .ImportGrid .wide { grid-column: auto; }
}

/* Polish pass */
.Week select,
.Panel .Week select {
  height: 36px;
  line-height: 1.3;
  padding: 0 28px 0 10px;
  box-sizing: border-box;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.Week thead th { padding-top: 12px; padding-bottom: 12px; border-radius: 0; background: transparent; }
.Week thead th.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--orange, #F26B3A); background: transparent; }
.TrainGridWrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
.TrainGridWrap .TrainGrid { width: max-content; min-width: 100%; }
.TrainGrid thead th:first-child { position: sticky; left: 0; z-index: 2; background: var(--white); }
.TrainGrid tbody tr, .TrainGrid tbody tr:hover, .TrainGrid tbody tr:nth-child(n) td { background: transparent; }
.TrainGrid tbody th { background: var(--white); box-shadow: 1px 0 0 var(--line); }
.TrainGrid td { white-space: nowrap; }
@media (max-width: 760px) { .Week { min-width: 620px; } .Week tbody th { width: 96px; } }
