/* Cerebro — dark dashboard theme.
   Inter for UI, JetBrains Mono for anything numeric. */

:root {
  --bg:            #0a0b0d;
  --bg-raised:     #121317;
  --surface:       #16181d;
  --surface-hover: #1b1e24;
  --border:        #23262d;
  --border-strong: #2f333c;

  --text:      #e7e9ec;
  --text-dim:  #a3a9b4;
  --text-mute: #6f767f;

  --accent:      #7c6cff;
  --accent-dim:  #5f52cc;
  --accent-wash: rgba(124, 108, 255, 0.14);

  --green:  #3fb950;
  --yellow: #d6a017;
  --red:    #f0603c;
  --blue:   #4b93f5;
  --slate:  #6f767f;

  --radius:    10px;
  --radius-sm: 7px;
  --rail:      64px;

  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: 22px; }
h2 { font-size: 15px; }
h3 { font-size: 13px; }

.muted { color: var(--text-dim); }
.small { font-size: 12px; }
.mono  { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Shell ---------- */

.shell { display: flex; min-height: 100vh; }

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 0;
  background: var(--bg-raised);
  border-right: 1px solid var(--border);
  z-index: 20;
}

.rail-brand {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  margin-bottom: 14px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--accent), var(--accent-dim));
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

.rail-nav, .rail-foot { display: flex; flex-direction: column; gap: 4px; width: 100%; align-items: center; }
.rail-foot { margin-top: auto; }

.rail-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  color: var(--text-mute);
  transition: background .12s ease, color .12s ease;
}
.rail-link:hover { background: var(--surface-hover); color: var(--text); }
.rail-link.is-active { background: var(--accent-wash); color: #b9aeff; }

.rail-link svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.rail-link.is-active svg { stroke-width: 2; }

.rail-button { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }

/* Label flies out on hover — keeps the rail narrow but discoverable. */
.rail-label {
  position: absolute;
  left: calc(100% + 8px);
  padding: 5px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-4px);
  transition: opacity .12s ease, transform .12s ease;
  box-shadow: var(--shadow);
}
.rail-link:hover .rail-label { opacity: 1; transform: none; }

.main {
  flex: 1;
  min-width: 0;
  margin-left: var(--rail);
  padding: 28px 32px 64px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.page-head .sub { color: var(--text-dim); font-size: 13px; margin-top: 3px; }

/* ---------- Fleet strip ---------- */

.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin-bottom: 24px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.strip-cell { background: var(--bg-raised); padding: 14px 16px; }
.strip-label { color: var(--text-mute); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.strip-value { font-family: var(--mono); font-size: 24px; font-weight: 500; margin-top: 5px; line-height: 1.1; }
.strip-value.is-alert { color: var(--red); }
.strip-value.is-warn  { color: var(--yellow); }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.card {
  display: block;
  padding: 16px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .12s ease, background .12s ease, transform .12s ease;
}
.card:hover { border-color: var(--border-strong); background: var(--surface); }
.card.is-blocked { border-left: 2px solid var(--red); }
.card.is-at_risk { border-left: 2px solid var(--yellow); }

.card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.card-name { font-weight: 600; font-size: 15px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-step { color: var(--text-dim); font-size: 13px; min-height: 38px; }
.card-metrics {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--text-mute);
  font-size: 12px;
}
.card-metrics .spacer { margin-left: auto; }

.sparkline { width: 96px; height: 24px; flex: none; overflow: visible; }
.sparkline polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
/* Holds the row height steady before a project has any snapshot history. */
.sparkline-empty {
  display: block;
  width: 96px;
  height: 24px;
  flex: none;
  border-bottom: 1px dashed var(--border-strong);
}

.card-metric {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 10px;
}
.card-metric-value { font-size: 19px; font-weight: 500; color: var(--text); }
.card-metric-label { color: var(--text-mute); font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.card-foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; padding-top: 11px;
  border-top: 1px solid var(--border);
  color: var(--text-mute); font-size: 12px;
}
.card-foot .spacer { margin-left: auto; }

/* ---------- Chips & dots ---------- */

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-dim);
  font-size: 11px; font-weight: 500;
  white-space: nowrap;
}
.chip[data-stage="live"]        { color: var(--green);  border-color: rgba(63,185,80,.35); }
.chip[data-stage="building"]    { color: var(--blue);   border-color: rgba(75,147,245,.35); }
.chip[data-stage="testing"]     { color: #b9aeff;       border-color: rgba(124,108,255,.4); }
.chip[data-stage="maintenance"] { color: var(--text-dim); }
.chip[data-stage="sunset"]      { color: var(--text-mute); }
.chip[data-stage="idea"]        { color: var(--text-mute); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--slate); }
.dot[data-status="on_track"] { background: var(--green);  box-shadow: 0 0 0 3px rgba(63,185,80,.14); }
.dot[data-status="at_risk"]  { background: var(--yellow); box-shadow: 0 0 0 3px rgba(214,160,23,.14); }
.dot[data-status="blocked"]  { background: var(--red);    box-shadow: 0 0 0 3px rgba(240,96,60,.14); }
.dot[data-status="done"]     { background: var(--blue);   box-shadow: 0 0 0 3px rgba(75,147,245,.14); }

.flag {
  display: inline-block; padding: 1px 6px; border-radius: 4px;
  background: rgba(240,96,60,.12); color: var(--red);
  font-size: 11px; font-weight: 500;
}

/* ---------- Panels ---------- */

.panel {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.panel-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}
.panel-body { padding: 16px; }
.panel-body.flush { padding: 0; }

.detail-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.detail-grid { display: grid; grid-template-columns: 150px 1fr; gap: 10px 18px; align-items: start; }
.detail-grid dt { color: var(--text-mute); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding-top: 3px; }
.detail-grid dd { margin: 0; }

.columns { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }

/* ---------- Inline edit ---------- */

.editable {
  display: inline-block;
  min-width: 120px;
  padding: 3px 7px;
  margin: -3px -7px;
  border-radius: 6px;
  border: 1px dashed transparent;
  cursor: text;
  transition: background .1s ease, border-color .1s ease;
}
.editable:hover { background: var(--surface); border-color: var(--border-strong); }
.editable.is-empty { color: var(--text-mute); font-style: italic; }

.inline-edit { display: flex; gap: 6px; align-items: flex-start; }
.inline-edit input, .inline-edit textarea { flex: 1; min-width: 0; }
.inline-edit textarea { min-height: 88px; resize: vertical; }

input[type="text"], input[type="date"], input[type="password"], input[type="number"],
input[type="url"], textarea, select {
  width: 100%;
  padding: 7px 10px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
select { cursor: pointer; }
textarea { resize: vertical; }

.select-stage, .select-status {
  width: auto;
  padding: 4px 26px 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%236f767f' d='M3 4.5L6 8l3-3.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
}
.select-stage[data-stage="live"]     { color: var(--green);  border-color: rgba(63,185,80,.4); }
.select-stage[data-stage="building"] { color: var(--blue);   border-color: rgba(75,147,245,.4); }
.select-stage[data-stage="testing"]  { color: #b9aeff;       border-color: rgba(124,108,255,.45); }
.select-status[data-status="on_track"] { color: var(--green); border-color: rgba(63,185,80,.4); }
.select-status[data-status="at_risk"]  { color: var(--yellow); border-color: rgba(214,160,23,.4); }
.select-status[data-status="blocked"]  { color: var(--red);   border-color: rgba(240,96,60,.4); }
.select-status[data-status="done"]     { color: var(--blue);  border-color: rgba(75,147,245,.4); }

.control-group { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
.btn:hover { background: var(--surface-hover); border-color: #3b404b; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dim); border-color: var(--accent-dim); color: #fff; }
.btn-sm { padding: 4px 9px; font-size: 12px; }
.btn-danger { color: var(--red); }
.btn-danger:hover { background: rgba(240,96,60,.1); border-color: rgba(240,96,60,.45); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-dim); }
.btn-ghost:hover { background: var(--surface-hover); color: var(--text); }

/* ---------- Tables ---------- */

.table { width: 100%; border-collapse: collapse; }
.table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-mute);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface); }
.table .num { font-family: var(--mono); text-align: right; }
.table-scroll { overflow-x: auto; }

/* ---------- Timeline ---------- */

.month { margin-bottom: 26px; }
.month-label {
  position: sticky; top: 0;
  padding: 6px 0 10px;
  background: var(--bg);
  color: var(--text-mute);
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  z-index: 5;
}
.events { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 1px solid var(--border); }
.event { position: relative; padding: 9px 0 9px 18px; }
.event::before {
  content: ""; position: absolute; left: -21px; top: 15px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border-strong); outline: 3px solid var(--bg);
}
.event.is-win::before { background: var(--green); }
.event-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.event-project { font-weight: 500; }
.event-when { color: var(--text-mute); font-size: 12px; margin-left: auto; font-family: var(--mono); }
.transition { color: var(--text-dim); font-size: 13px; }
.transition .arrow { color: var(--text-mute); margin: 0 4px; }

/* ---------- Forms in panels ---------- */

.row-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}
.row-form .field { flex: 1 1 150px; min-width: 0; }
.row-form .field-wide { flex: 2 1 240px; }
.row-form .field-narrow { flex: 0 1 130px; }
.row-form .btn { flex: none; height: 33px; }

.stack-form { display: flex; flex-direction: column; gap: 10px; }

.month-picker { display: flex; align-items: center; gap: 6px; }
.month-picker input { width: auto; }

/* The <td> stays a table cell — width:1% collapses it to its content — and the
   flexbox lives on an inner wrapper. Putting display:flex on the td itself
   drops it out of the table layout and the columns overlap. */
.table td.row-actions { width: 1%; white-space: nowrap; text-align: right; }
.row-actions-inner { display: inline-flex; gap: 6px; }
tr.is-editing { background: var(--surface); }
tr.is-editing td { vertical-align: middle; }

/* ---------- Record lists (decisions, time, project ideas) ---------- */

.records { list-style: none; margin: 16px 0 0; padding: 0; }
.record { padding: 10px 0; border-top: 1px solid var(--border); }
.record:first-child { border-top: 0; }
.record-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.record-when { margin-left: auto; color: var(--text-mute); font-size: 12px; }
.record-detail { margin: 5px 0 0; color: var(--text-dim); font-size: 13px; }

/* ---------- Ideas board ---------- */

.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: start;
}
.board-column {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}
.board-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.board-empty { margin: 0; padding: 12px 0; color: var(--text-mute); font-size: 12px; text-align: center; }

.idea {
  padding: 10px;
  margin-bottom: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.idea:last-child { margin-bottom: 0; }
.idea-title { font-size: 13px; font-weight: 500; }
.idea-detail { margin: 5px 0 0; color: var(--text-dim); font-size: 12px; }
/* Two fixed rows rather than one wrapping row: a long project name would
   otherwise push the controls out of the card. */
.idea-meta { margin-top: 9px; }
.idea-meta .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.idea-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 8px; }

.chip[data-idea-state="next_up"]  { color: var(--green);  border-color: rgba(63,185,80,.35); }
.chip[data-idea-state="building"] { color: var(--blue);   border-color: rgba(75,147,245,.35); }
.chip[data-idea-state="parked"]   { color: var(--text-dim); }
.chip[data-idea-state="done"]     { color: #b9aeff;       border-color: rgba(124,108,255,.4); }
.chip[data-idea-state="dropped"]  { color: var(--text-mute); }

.select-state {
  width: auto;
  padding: 3px 22px 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%236f767f' d='M3 4.5L6 8l3-3.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 11px;
}

/* ---------- Integrations grid ---------- */

.grid-table th.grid-cells, .grid-table td.grid-cells { width: 1%; }
.grid-strip { display: flex; gap: 2px; align-items: center; }

.grid-cell {
  width: 9px;
  height: 22px;
  border-radius: 2px;
  background: var(--border);
  flex: none;
  transition: transform .1s ease;
}
.grid-cell:hover { transform: scaleY(1.15); }
.grid-cell[data-state="ok"]   { background: var(--green); }
.grid-cell[data-state="down"] { background: var(--red); }
.grid-cell[data-state="none"] { background: var(--border); }

.dot[data-check="ok"]      { background: var(--green);  box-shadow: 0 0 0 3px rgba(63,185,80,.14); }
.dot[data-check="down"]    { background: var(--red);    box-shadow: 0 0 0 3px rgba(240,96,60,.14); }
.dot[data-check="unknown"] { background: var(--slate); }

a.strip-cell { color: inherit; transition: background .12s ease; }
a.strip-cell:hover { background: var(--surface); }

/* ---------- Empty / error ---------- */

.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-mute);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}
.empty strong { display: block; color: var(--text-dim); font-weight: 500; margin-bottom: 5px; }

.form-error {
  padding: 8px 11px;
  border: 1px solid rgba(240,96,60,.4);
  border-radius: var(--radius-sm);
  background: rgba(240,96,60,.1);
  color: #ff9276;
  font-size: 13px;
  margin: 0;
}

/* ---------- Login ---------- */

body.centered { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.login-card {
  display: flex; flex-direction: column; gap: 12px;
  width: 100%; max-width: 330px;
  padding: 28px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  text-align: center;
}
.login-mark {
  width: 40px; height: 40px; margin: 0 auto 4px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--accent), var(--accent-dim));
  color: #fff; font-weight: 600;
}
.login-card p { margin: 0; }
.login-card .field { text-align: left; }

.field { display: block; }
.field-label {
  display: block; margin-bottom: 5px;
  color: var(--text-dim); font-size: 12px; font-weight: 500;
}
.field-hint { display: block; margin-top: 4px; color: var(--text-mute); font-size: 11px; }

/* ---------- Admin form ---------- */

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 8px; align-items: center; margin-top: 18px; }
.form-actions .spacer { margin-left: auto; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); }
.check input { width: auto; }

/* ---------- Public team view ---------- */

.public { max-width: 1080px; margin: 0 auto; padding: 44px 24px 72px; }
.public-head { margin-bottom: 26px; }
.public-head h1 { font-size: 26px; }
.wins { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.win {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px;
  border: 1px solid rgba(63,185,80,.28);
  border-radius: 999px;
  background: rgba(63,185,80,.07);
  font-size: 12px;
}
.win .when { color: var(--text-mute); font-family: var(--mono); }

.htmx-request { opacity: .55; transition: opacity .1s ease; }

/* ---------- Range toggle + loading spinner ---------- */

.toggle {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.toggle-option {
  padding: 3px 10px;
  border: 0;
  background: transparent;
  color: var(--text-mute);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.toggle-option + .toggle-option { border-left: 1px solid var(--border-strong); }
.toggle-option:hover { color: var(--text); background: var(--surface-hover); }
.toggle-option.is-active { background: var(--accent-wash); color: #b9aeff; cursor: default; }

.spinner {
  width: 14px; height: 14px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  opacity: 0;
}
.spinner.htmx-request { opacity: 1; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .rail {
    inset: auto 0 0 0;
    flex-direction: row;
    width: auto; height: 56px;
    padding: 0 10px;
    justify-content: space-around;
    border-right: 0;
    border-top: 1px solid var(--border);
  }
  .rail-brand { display: none; }
  .rail-nav, .rail-foot { flex-direction: row; width: auto; margin: 0; }
  .rail-label { display: none; }
  .main { margin-left: 0; padding: 20px 16px 84px; }
  .columns { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; gap: 4px 0; }
  .detail-grid dd { margin-bottom: 10px; }
  .page-head { flex-direction: column; align-items: stretch; }
  .public { padding: 28px 16px 60px; }
  .grid-cell { width: 7px; height: 18px; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip-value { font-size: 20px; }
  .card-metric-value { font-size: 17px; }
  .month-label { position: static; }
  .table th, .table td { padding: 9px 12px; }
  .row-form .field, .row-form .field-wide, .row-form .field-narrow { flex: 1 1 100%; }
  .row-form .btn { width: 100%; justify-content: center; }
  .record-when { margin-left: 0; }
}
