:root {
  --bg: #f6f5f1;
  --panel: #ffffff;
  --ink: #1d2327;
  --muted: #68727a;
  --line: #e1dfd8;
  --accent: #1f5f8b;
  --accent-ink: #ffffff;
  --green: #1e7a4c;
  --green-bg: #e3f3ea;
  --amber: #96600a;
  --amber-bg: #fbefd5;
  --red: #a8322a;
  --red-bg: #fbe6e3;
  --grey-bg: #eeede8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
button, input, select, textarea { font: inherit; color: inherit; }
button {
  border: 1px solid var(--line); background: var(--panel); border-radius: 6px;
  padding: 6px 12px; cursor: pointer;
}
button:hover { border-color: var(--muted); }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.link { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea {
  border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; background: var(--panel);
}
textarea { width: 100%; resize: vertical; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Sign-in */
.login { max-width: 380px; margin: 12vh auto; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.login h1 { font-size: 20px; margin: 0 0 4px; }
.login p { color: var(--muted); margin: 0 0 18px; }
.login label { display: block; font-weight: 600; margin-bottom: 6px; }
.login input { width: 100%; margin-bottom: 12px; padding: 9px; }
.login button { width: 100%; padding: 9px; margin-bottom: 8px; }
.login button.link { width: auto; padding: 0; margin: 4px 0 0; font-size: 13px; }
.error { color: var(--red); margin: 8px 0; }

/* Shell */
header.top {
  display: flex; align-items: center; gap: 16px; padding: 10px 20px;
  background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5;
}
header.top h1 { font-size: 16px; margin: 0 24px 0 0; white-space: nowrap; }
header.top nav { display: flex; gap: 4px; }
header.top nav button { border: 0; background: none; padding: 6px 10px; color: var(--muted); }
header.top nav button.on { color: var(--ink); font-weight: 600; background: var(--grey-bg); }
header.top .who { margin-left: auto; color: var(--muted); font-size: 13px; }
main { max-width: 1180px; margin: 0 auto; padding: 18px 20px 60px; }
.banner { background: var(--amber-bg); color: var(--amber); padding: 6px 20px; font-size: 13px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
.stat b { display: block; font-size: 22px; }
.stat span { color: var(--muted); font-size: 13px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.filters input[type=search] { flex: 1 1 220px; }
.filters label { display: flex; align-items: center; gap: 5px; font-size: 14px; }

section.group { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
section.group h2 { font-size: 14px; margin: 0; padding: 9px 14px; background: var(--grey-bg); display: flex; justify-content: space-between; gap: 12px; }
section.group h2 span { font-weight: 400; color: var(--muted); white-space: nowrap; }
.row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 130px 190px; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line); cursor: pointer; align-items: start; }
.row:hover { background: #fafaf7; }
.row .ref { color: var(--muted); font-variant-numeric: tabular-nums; }
.row .desc { overflow-wrap: anywhere; }
.row .owner { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 2px; }
.row .owner .person { color: var(--ink); }
.row .owner .person.me { font-weight: 600; }
.owners > span { font-size: 13px; color: var(--muted); }
.owners .members { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-top: 4px; }
.owners .members label { color: var(--ink); font-size: 14px; }
.owners .members input { width: auto; margin: 0 4px 0 0; }
.row .slots { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 4px; margin-left: 6px; vertical-align: 1px; white-space: nowrap; }
.tag.priority { background: var(--red-bg); color: var(--red); }
.tag.hub { background: var(--grey-bg); color: var(--muted); }
.tag.locked { background: var(--grey-bg); color: var(--muted); }
.chip { font-size: 11px; padding: 2px 7px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip.released { background: var(--green-bg); border-color: var(--green-bg); color: var(--green); }
.chip.staged { background: var(--amber-bg); border-color: var(--amber-bg); color: var(--amber); }
.chip.na { text-decoration: line-through; }
.chip.not_available { background: var(--red-bg); border-color: var(--red-bg); color: var(--red); }
.empty { padding: 30px; text-align: center; color: var(--muted); }

/* Detail drawer */
.scrim { position: fixed; inset: 0; background: rgba(20, 25, 30, .35); z-index: 10; }
aside.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); background: var(--panel);
  z-index: 11; overflow-y: auto; padding: 18px 22px 40px; box-shadow: -6px 0 24px rgba(0, 0, 0, .12);
}
.drawer .close { float: right; }
.drawer h2 { font-size: 17px; margin: 0 40px 6px 0; overflow-wrap: anywhere; }
.drawer h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 22px 0 8px; }
.drawer .meta { color: var(--muted); font-size: 13px; margin-bottom: 4px; overflow-wrap: anywhere; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fields label { font-size: 13px; color: var(--muted); display: block; }
.fields .wide { grid-column: 1 / -1; }
.fields input, .fields select, .fields textarea { width: 100%; margin-top: 3px; color: var(--ink); }
.file { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.file .name { font-weight: 600; overflow-wrap: anywhere; }
.file .sub { color: var(--muted); font-size: 13px; margin: 2px 0 6px; }
.file .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.check { font-size: 13px; padding: 7px 9px; border-radius: 6px; margin: 6px 0; }
.check.ok { background: var(--green-bg); color: var(--green); }
.check.warn, .check.error { background: var(--amber-bg); color: var(--amber); }
.check.pending, .check.skipped { background: var(--grey-bg); color: var(--muted); }
.check ul { margin: 4px 0 0; padding-left: 18px; }
.upload { border: 1px dashed var(--muted); border-radius: 8px; padding: 18px 18px 16px; margin-top: 12px; }
.upload.over { border-color: var(--accent); border-style: solid; background: #f3f7fa; }
.drop-hint { text-align: center; color: var(--muted); padding: 14px 0 18px; }
.pick { color: var(--accent); text-decoration: underline; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.pick:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
ul.pending { list-style: none; margin: 0; padding: 0; }
ul.pending li { display: flex; gap: 12px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line); }
ul.pending li span:first-child { flex: 1; overflow-wrap: anywhere; }
.up-fields { display: grid; grid-template-columns: 110px 170px minmax(0, 1fr); gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.up-fields label { font-size: 13px; color: var(--muted); display: block; }
.up-fields select, .up-fields input { width: 100%; margin-top: 4px; color: var(--ink); }
.up-foot { display: flex; align-items: center; gap: 20px; margin-top: 16px; }
.up-foot .meta { flex: 1; margin: 0; }
.up-foot button { padding: 8px 20px; white-space: nowrap; }
progress { width: 100%; margin-top: 14px; }
.comment { border-left: 3px solid var(--line); padding: 2px 10px; margin-bottom: 10px; }
.comment.bdo { border-color: var(--accent); }
.comment .by { font-size: 12px; color: var(--muted); }
.comment .text { white-space: pre-wrap; overflow-wrap: anywhere; }

table.audit { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); font-size: 13px; }
table.audit th, table.audit td { text-align: left; padding: 7px 10px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
table.audit th { background: var(--grey-bg); border-top: 0; }

/* AI features */
.tag.gaps { background: var(--amber-bg); color: var(--amber); }
.check.info { background: #eaf1f6; color: #1d4a6b; }
.check .text { white-space: pre-wrap; margin-top: 4px; color: var(--ink); }
.check .needs { margin-top: 4px; color: var(--amber); }
.check .count { display: block; margin-top: 4px; }
.inbox { border: 1px dashed var(--muted); border-radius: 8px; background: var(--panel); padding: 4px 16px 6px; margin-bottom: 14px; }
.inbox.over { border-color: var(--accent); border-style: solid; background: #f3f7fa; }
.inbox .drop-hint { padding: 12px 0; }
.inbox h3 { font-size: 14px; margin: 6px 0 10px; display: flex; align-items: center; gap: 10px; }
.unfiled { border-top: 1px solid var(--line); padding: 12px 0; }
.unfiled .name { font-weight: 600; overflow-wrap: anywhere; }
.unfiled .actions { display: flex; gap: 8px; margin-top: 12px; }
.up-fields.filing { grid-template-columns: minmax(0, 1fr) 120px 170px; border-top: 0; padding-top: 6px; }
.picker { position: relative; }
.picker input { width: 100%; }
.picker-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 6; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .14); padding: 6px; max-height: 320px; overflow-y: auto; }
.picker-list .count { padding: 4px 8px; }
.picker-list button { display: block; width: 100%; text-align: left; border: 0; border-radius: 6px; padding: 7px 9px; font-size: 13px; line-height: 1.35; }
.picker-list button:hover, .picker-list button:focus { background: var(--grey-bg); }
.picker-list button b { color: var(--accent); margin-right: 6px; }
.picker-list button .count { display: block; padding: 0; }
.up-fields .wide { grid-column: 1 / -1; }
.qa { margin-top: 12px; }
.qa .q { font-weight: 600; }
.answer { white-space: pre-wrap; margin: 10px 0 8px; }
.answer.none { color: var(--muted); }
.sources { font-size: 13px; border-top: 1px solid var(--line); padding-top: 8px; display: grid; gap: 4px; }

/* Loading feedback */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; margin-right: 8px; }
.spinner.big { width: 30px; height: 30px; border-width: 3px; color: var(--accent); margin: 18px 0 12px; }
.login.center { text-align: center; }
body.loading::before { content: ""; position: fixed; top: 0; left: 0; height: 3px; width: 30%; background: var(--accent); z-index: 50; animation: slide 1.1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .spinner, body.loading::before, .typing span { animation-duration: 2.5s; }
}

/* Chat */
.chat-launch { position: fixed; right: 18px; bottom: 18px; z-index: 20; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.chat { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: min(320px, calc(100vw - 24px)); height: min(520px, calc(100vh - 36px)); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 36px rgba(0, 0, 0, .22); overflow: hidden; }
.chat header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--accent); color: var(--accent-ink); }
.chat header b { flex: 1; }
.chat header button { background: transparent; border-color: rgba(255, 255, 255, .45); color: inherit; padding: 3px 9px; font-size: 13px; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.msg { max-width: 92%; padding: 8px 11px; border-radius: 12px; overflow-wrap: anywhere; font-size: 13px; line-height: 1.4; }
.msg .body { white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 3px; }
.msg.bot { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 3px; }
.msg.bot.none { color: var(--muted); }
.msg .note { margin-top: 8px; font-size: 12px; color: var(--muted); }
.msg .sources { margin-top: 8px; }
.typing { display: flex; gap: 5px; padding: 13px 14px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.3s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
.examples { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.examples button { text-align: left; font-size: 13px; border-radius: 14px; color: var(--accent); }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-form textarea { flex: 1; resize: none; max-height: 110px; field-sizing: content; }
.chat .error { align-self: stretch; margin: 0; font-size: 13px; }

/* Notifications */
.bell { position: relative; border: 0; background: none; padding: 6px; margin-left: 4px; color: var(--muted); display: flex; border-radius: 6px; }
.bell:hover { background: var(--grey-bg); }
.bell.has { color: var(--ink); }
.badge { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.scrim.clear { background: transparent; z-index: 24; }
.notify { position: fixed; top: 54px; right: 16px; width: min(400px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 80px)); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 36px rgba(0, 0, 0, .16); z-index: 25; overflow: hidden; }
.notify-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.notify-head b { font-size: 15px; }
.notify-head .count { flex: 1; }
.notify-head .x { border: 0; background: none; color: var(--muted); padding: 2px 6px; }
.notify-list { overflow-y: auto; }
.notice { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 11px 14px 12px 16px; background: none; position: relative; }
.notice:last-child { border-bottom: 0; }
.notice:hover { background: #fafaf7; }
.notice.new::before { content: ""; position: absolute; left: 6px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.notice .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.notice .kind { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: var(--grey-bg); color: var(--muted); }
.notice .kind.query, .notice .kind.reply { background: var(--red-bg); color: var(--red); }
.notice .kind.gap, .notice .kind.flag { background: var(--amber-bg); color: var(--amber); }
.notice .kind.release, .notice .kind.released, .notice .kind.export { background: var(--green-bg); color: var(--green); }
.notice .kind.file { background: #e6eff6; color: var(--accent); }
.notice .when { font-size: 12px; color: var(--muted); white-space: nowrap; }
.notice .title { font-weight: 600; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice .text { font-size: 13px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.notify .empty { padding: 28px 14px; }

/* Bulk download */
.export-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; font-size: 14px; }
.export-bar.on { position: sticky; top: 52px; z-index: 4; border-color: var(--accent); box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.export-bar > :last-child:not(.count) { margin-left: auto; }
.export-bar.on .count { margin-left: auto; }
.row.selecting .ref { display: flex; gap: 6px; align-items: center; }
.row.selecting input, section.group h2 input { width: 15px; height: 15px; margin: 0; }
section.group h2 input { margin-right: 8px; vertical-align: -2px; }

/* Workbook preview */
.sheet-view { position: fixed; inset: 24px; z-index: 40; background: var(--panel); border-radius: 10px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 12px 40px rgba(0, 0, 0, .3); }
.sheet-view header { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.sheet-view header b { overflow-wrap: anywhere; }
.sheet-view header .count { flex: 1; }
.sheet-view nav { display: flex; gap: 4px; padding: 6px 10px; border-bottom: 1px solid var(--line); overflow-x: auto; background: var(--bg); }
.sheet-view nav button { border: 0; background: none; padding: 5px 10px; color: var(--muted); white-space: nowrap; }
.sheet-view nav button.on { background: var(--panel); color: var(--ink); font-weight: 600; border: 1px solid var(--line); }
.sheet-scroll { flex: 1; overflow: auto; }
.sheet-scroll table { border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.sheet-scroll th { position: sticky; left: 0; background: var(--grey-bg); color: var(--muted); font-weight: 400; padding: 2px 6px; border: 1px solid var(--line); text-align: right; }
.sheet-scroll td { border: 1px solid var(--line); padding: 2px 6px; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
#preview .scrim { z-index: 39; }

/* Access page */
p.lead { color: var(--muted); max-width: 820px; margin: 0 0 10px; }
h2.page { font-size: 16px; margin: 30px 0 10px; display: flex; align-items: center; gap: 12px; }
h2.page button { font-size: 13px; font-weight: 400; }
h2.page.first { margin-top: 4px; }
.scroll { overflow-x: auto; }
table.grid { border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); font-size: 13px; width: 100%; }
table.grid th, table.grid td { padding: 7px 10px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.grid th { background: var(--grey-bg); border-top: 0; vertical-align: bottom; font-weight: 600; }
.count { color: var(--muted); font-size: 12px; font-weight: 400; }
.lvl { font-weight: 600; color: var(--muted); }
.lvl.part { color: var(--amber); font-size: 12px; }
button.small { font-size: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 4px 16px; }

table.people td:first-child { min-width: 200px; }
button.sort { border: 0; background: none; padding: 0; font-weight: 600; cursor: pointer; }
button.sort span { display: inline-block; width: 14px; margin-left: 4px; font-size: 10px; color: var(--accent); }
button.sort:hover { text-decoration: underline; }
table.people td.status { white-space: nowrap; }
table.people td.release { text-align: center; }
table.people label.flag { display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.pill:disabled { opacity: .45; cursor: not-allowed; }
div.team-name { border: 0; }
select.cell:disabled { opacity: .6; cursor: not-allowed; }
table.people td.release input { width: 16px; height: 16px; }
table.people td.status button { margin-left: 8px; }
.guide { margin-bottom: 14px; max-width: 820px; }
.guide h3 { font-size: 15px; margin: 0 0 8px; }
.guide ol { margin: 0; padding-left: 20px; }
.guide li { margin-bottom: 7px; line-height: 1.45; }
.guide p { margin: 6px 0; }
table.people tr.off td { color: var(--muted); }
table.people select { padding: 4px 6px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
td.pills { display: table-cell; }
td.pills > * { margin: 2px 6px 2px 0; }
.pill { border-radius: 14px; padding: 3px 11px; font-size: 12px; color: var(--muted); background: var(--panel); }
.pill.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pill.on::before { content: "✓ "; }

table.matrix th:not(:first-child), table.matrix td:not(:first-child) { text-align: center; width: 168px; min-width: 168px; }
table.matrix td:first-child { min-width: 260px; }
table.matrix tr.line td { background: #fbfaf7; }
table.matrix tr.line td:first-child { padding-left: 34px; color: var(--muted); }
.team-name { width: 100%; text-align: center; font-weight: 600; border-color: transparent; background: transparent; padding: 3px 4px; }
.team-name:hover, .team-name:focus { border-color: var(--line); background: var(--panel); }
select.setall { width: 100%; font-size: 12px; padding: 2px 4px; margin: 4px 0 2px; color: var(--muted); }
select.cell { width: 100%; padding: 4px 6px; font-weight: 600; text-align: center; text-align-last: center; border-color: transparent; cursor: pointer; }
select.cell.write { background: var(--green-bg); color: var(--green); }
select.cell.read { background: #e6eff6; color: var(--accent); }
select.cell.none { background: transparent; color: var(--muted); font-weight: 400; }
select.cell.inherit { background: transparent; color: var(--muted); font-weight: 400; font-style: italic; }
select.cell:hover, select.cell:focus { border-color: var(--muted); }
button.expand { text-decoration: none; display: inline-block; width: 16px; color: var(--muted); }
button.rules { display: block; margin: 2px auto 0; color: var(--amber); }

@media (max-width: 720px) {
  .row { grid-template-columns: 36px minmax(0, 1fr); }
  .row .owner, .row .slots { grid-column: 2; justify-content: flex-start; max-width: none; }
  .fields { grid-template-columns: 1fr; }
  .up-fields { grid-template-columns: 1fr 1fr; }
  .up-fields label:last-child { grid-column: 1 / -1; }
  .up-fields.filing { grid-template-columns: 1fr 1fr; }
  .up-fields.filing label:first-child { grid-column: 1 / -1; }
  .up-foot { flex-direction: column; align-items: stretch; }
  header.top { flex-wrap: wrap; }
}
