/* Marketing Sweet Uptime
   Neutral, dense operations UI. The brand colour (Settings > Branding, see --brand)
   marks actions and the current page only; red and green are reserved for site status. */

@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --brand: #9C2152; --brand-strong: #7E1A42; --brand-soft: #FBF0F4; --brand-line: #EFC6D6;

  --ink: #1A2230;
  --ink-2: #4B5565;
  --ink-3: #7A8494;
  --canvas: #F5F6F8;
  --paper: #FFFFFF;
  --rule: #E2E5EA;
  --rule-2: #CDD2DA;
  --hover: #F8F9FB;

  --down: #B42318; --down-soft: #FEF1F0; --down-line: #F6CFCB;
  --up: #177245;   --up-soft: #ECF7F1;
  --warn: #8A5300; --warn-soft: #FFF6E5; --warn-line: #F0DDB4;

  --d0: #E4E7EC; --d1: #F2B8B3; --d2: #E36B60; --d3: #B42318; --d4: #7A1710;

  --font: "Plex", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --page: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 14px/1.5 var(--font); font-feature-settings: "tnum" 1; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 12.5px; background: var(--canvas); border: 1px solid var(--rule); border-radius: 4px; padding: 1px 5px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 30; background: var(--paper); padding: 8px 12px; border: 1px solid var(--rule-2); border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Top bar ---------- */
.topbar { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; }
.topbar-in { max-width: var(--page); margin: 0 auto; padding: 0 28px; height: 60px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex: none; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; max-height: 30px; max-width: 170px; width: auto; height: auto; }
.brand-word { font-weight: 600; font-size: 15px; }
.brand-product { font-size: 14px; color: var(--ink-2); padding-left: 12px; border-left: 1px solid var(--rule-2); line-height: 20px; }
.mainnav { display: flex; gap: 2px; align-self: stretch; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.mainnav a, .subnav a { display: flex; align-items: center; padding: 0 10px; color: var(--ink-2); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
.mainnav a:hover, .subnav a:hover { color: var(--ink); text-decoration: none; }
.mainnav a.on, .subnav a.on { color: var(--ink); border-bottom-color: var(--brand); }
.subnav { border-top: 1px solid var(--rule); }
.subnav-in { max-width: var(--page); margin: 0 auto; padding: 0 18px; height: 42px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subnav a { font-size: 13.5px; }

.usermenu { position: relative; margin-left: auto; }
.usermenu summary { list-style: none; cursor: pointer; border-radius: 50%; }
.usermenu summary::-webkit-details-marker { display: none; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--canvas); border: 1px solid var(--rule-2); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.usermenu[open] .avatar, .usermenu summary:hover .avatar { border-color: var(--ink-3); color: var(--ink); }
.usermenu-pop { position: absolute; right: 0; top: 42px; width: 248px; background: var(--paper); border: 1px solid var(--rule-2); border-radius: 8px; box-shadow: 0 8px 24px rgba(16, 24, 40, .12); padding: 6px; }
.usermenu-who { padding: 8px 10px 10px; border-bottom: 1px solid var(--rule); margin-bottom: 6px; }
.usermenu-who b { display: block; font-weight: 600; }
.usermenu-who span { display: block; font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.usermenu-pop a, .usermenu-pop button { display: block; width: 100%; text-align: left; padding: 7px 10px; border-radius: 5px; color: var(--ink); font: inherit; background: none; border: 0; cursor: pointer; }
.usermenu-pop a:hover, .usermenu-pop button:hover { background: var(--canvas); text-decoration: none; }

/* ---------- Page ---------- */
.page { max-width: var(--page); margin: 0 auto; padding: 28px 28px 40px; }
.pagefoot { max-width: var(--page); margin: 0 auto; padding: 0 28px 28px; color: var(--ink-3); font-size: 12px; }
.page-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: end; margin-bottom: 20px; }
.page-head > * { grid-column: 1; }
.page-head h1 { font-size: 22px; line-height: 30px; }
.page-head .lede { color: var(--ink-2); margin-top: 2px; max-width: 76ch; }
.page-head .actions { grid-column: 2; grid-row: 1 / span 3; align-self: end; display: flex; gap: 8px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); font-size: 13px; margin-bottom: 4px; justify-self: start; }
.back::before { content: ""; width: 6px; height: 6px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-right: 2px; }

.panel { background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 20px 22px; margin-bottom: 20px; min-width: 0; }
.panel h2 { font-size: 15px; line-height: 22px; }
.panel h2 + * { margin-top: 12px; }
.panel h3 { font-size: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: -4px 0 14px; }
.panel-head h2 + * { margin-top: 0; }
.panel-sub { color: var(--ink-3); font-size: 13px; }
.panel > .table-wrap:first-child { margin: -20px -22px 0; }
.panel > .table-wrap:only-child { margin: -20px -22px; }
.panel-head + .table-wrap { margin: 0 -22px -20px; border-top: 1px solid var(--rule); }
.panel > .table-wrap + .pager { margin: 0 -22px -20px; }
.panel-head + .table-wrap + .pager { margin: 20px -22px -20px; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; margin-bottom: 20px; }
.cols > .panel { margin-bottom: 0; }
.mt { margin-top: 28px !important; }
.mt-s { margin-top: 12px; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.strong { font-weight: 600; color: var(--ink); }
.empty { color: var(--ink-2); padding: 6px 0; }

.callout { background: var(--warn-soft); border: 1px solid var(--warn-line); color: #5E3A00; border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; }
.callout a { color: inherit; text-decoration: underline; }

/* ---------- Flash ---------- */
.flash { display: flex; gap: 10px; align-items: flex-start; border-radius: 8px; padding: 11px 14px; margin-bottom: 20px; border: 1px solid; font-weight: 500; }
.flash svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.flash ul { margin: 0; padding-left: 18px; }
.flash.ok { background: var(--up-soft); color: var(--up); border-color: #C3E5D2; }
.flash.bad { background: var(--down-soft); color: var(--down); border-color: var(--down-line); }

/* ---------- Status now (dashboard) ---------- */
.now { border-radius: 8px; margin-bottom: 16px; }
.now-ok { display: flex; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--up); padding: 16px 20px; color: var(--up); }
.now-ok svg { width: 28px; height: 28px; flex: none; }
.now-ok h2 { font-size: 16px; color: var(--ink); }
.now-ok p { color: var(--ink-3); font-size: 13px; }
.now-down { background: var(--paper); border: 1px solid var(--down-line); border-left: 4px solid var(--down); overflow: hidden; }
.now-head { display: flex; align-items: center; gap: 10px; padding: 13px 20px; background: var(--down-soft); border-bottom: 1px solid var(--down-line); }
.now-head h2 { font-size: 16px; color: var(--down); }
.live { width: 10px; height: 10px; border-radius: 50%; background: var(--down); box-shadow: 0 0 0 0 rgba(180, 35, 24, .5); animation: live 1.8s infinite; flex: none; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(180, 35, 24, 0); } 100% { box-shadow: 0 0 0 0 rgba(180, 35, 24, 0); } }
.now-table td { padding-top: 11px; padding-bottom: 11px; }
.now-table tbody tr:hover td { background: transparent; }
.down-for b { color: var(--down); font-weight: 600; }

.figures { display: flex; flex-wrap: wrap; margin: 0 0 20px; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; }
.figures > div { flex: 1 1 150px; padding: 12px 20px; border-right: 1px solid var(--rule); }
.figures > div:last-child { border-right: 0; }
.figures dt { font-size: 12.5px; color: var(--ink-3); }
.figures dd { margin: 2px 0 0; font-size: 20px; font-weight: 600; line-height: 28px; }
.figures .fig-bad dt { color: var(--down); }
.figures .fig-bad dd a { color: var(--down); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 12.5px; padding: 9px 14px; border-bottom: 1px solid var(--rule); background: var(--hover); white-space: nowrap; }
.data td { padding: 10px 14px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.data th:first-child, .data td:first-child { padding-left: 22px; }
.data th:last-child, .data td:last-child { padding-right: 22px; }
.data tbody tr:last-child td { border-bottom: 0; }
.data tbody tr:hover td { background: var(--hover); }
.data .num { text-align: right; white-space: nowrap; }
.data .sub { margin-top: 3px; }
.data.compact th, .data.compact td { padding: 6px 10px; }
.data.compact th:first-child, .data.compact td:first-child { padding-left: 10px; }
a.site { color: var(--ink); font-weight: 600; }
a.site:hover { color: var(--brand); }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 22px; border-top: 1px solid var(--rule); font-size: 13px; }
.pager a, .pager .off { padding: 4px 10px; border: 1px solid var(--rule-2); border-radius: 6px; color: var(--ink); background: var(--paper); }
.pager a:hover { text-decoration: none; border-color: var(--ink-3); }
.pager .off { color: var(--ink-3); border-color: var(--rule); }
.pager-at { color: var(--ink-3); }

/* ---------- Status, tags, pills ---------- */
.state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.state.up { color: var(--up); }
.state.up::before { background: var(--up); }
.state.down { color: var(--down); }
.state.down::before { background: var(--down); }
.tag { display: inline-block; font-size: 12px; line-height: 18px; padding: 0 7px; border-radius: 4px; background: var(--canvas); border: 1px solid var(--rule); color: var(--ink-2); margin: 1px 4px 1px 0; white-space: nowrap; font-weight: 500; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.pill i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.pill-none { color: var(--ink-3); }

/* Outage strip: one bar per day */
.strip { display: block; max-width: 100%; }
.strip-d.l0 { fill: var(--d0); }
.strip-d.l1 { fill: var(--d1); }
.strip-d.l2 { fill: var(--d2); }
.strip-d.l3 { fill: var(--d3); }
.strip-d.l4 { fill: var(--d4); }
.strip-scale { display: flex; justify-content: space-between; margin-top: 6px; }
.strip-key { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 12px; color: var(--ink-3); }
.strip-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--rule-2); background: var(--paper); color: var(--ink); font: 500 13.5px/1 var(--font); cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: var(--ink-3); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--canvas); border-color: transparent; color: var(--ink); }
.btn-danger { color: var(--down); border-color: var(--down-line); }
.btn-danger:hover { background: var(--down-soft); border-color: var(--down); }
.btn-wide { width: 100%; height: 38px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Forms ---------- */
.stack > * + * { margin-top: 16px; }
.field { display: block; }
.field > span { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.field small, .check small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 5px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], input[type=date], input[type=time], input:not([type]), select, textarea {
  width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--rule-2); border-radius: 6px; background: var(--paper); color: var(--ink); font: 400 14px var(--font);
}
textarea { height: auto; padding: 8px 10px; line-height: 1.5; resize: vertical; }
select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%237A8494' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; background-size: 12px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input[type=color] { width: 56px; height: 36px; padding: 3px; border: 1px solid var(--rule-2); border-radius: 6px; background: var(--paper); cursor: pointer; }
input[type=file] { font: inherit; font-size: 13px; }
input[readonly] { background: var(--canvas); color: var(--ink-2); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--brand); flex: none; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
.checks > * { margin-top: 0 !important; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 > *, .grid-3 > * { margin-top: 0 !important; }
.form-narrow { max-width: 780px; }
.form-foot { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 24px !important; }
.danger-zone { max-width: 780px; display: flex; justify-content: flex-end; margin-top: -4px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.filters input[type=search] { width: 260px; }
.filters select { width: auto; min-width: 150px; }
.filters .inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.filters .inline input { width: auto; }
.w-sm { width: 80px !important; }
.code-input { font-family: var(--mono) !important; font-size: 18px !important; letter-spacing: .2em; height: 42px !important; text-align: center; }
.copy-row { display: flex; gap: 8px; margin-top: 8px; }
.copy-row input { font-family: var(--mono); font-size: 12.5px; }
.radio-card { display: block; border: 1px solid var(--rule-2); border-radius: 8px; padding: 12px 14px; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
details.hint { border: 1px solid var(--rule); border-radius: 6px; padding: 10px 12px; background: var(--hover); }
details.hint summary { cursor: pointer; font-weight: 500; font-size: 13px; }
details.hint[open] summary { margin-bottom: 10px; }
.secret { display: block; font-size: 14px; letter-spacing: .06em; padding: 8px 10px; }
.qr { width: 196px; height: 196px; padding: 8px; border: 1px solid var(--rule); border-radius: 8px; margin: 14px 0; background: #fff; }
.qr svg, .qr img { display: block; width: 100%; height: 100%; }
.steps { margin: 0; padding-left: 20px; }
.steps > li { padding-left: 4px; margin-bottom: 18px; }
.steps > li:last-child { margin-bottom: 0; }
.steps > li::marker { color: var(--ink-3); font-weight: 600; }
.steps b { font-weight: 600; }

/* Definition lists and simple rows */
.meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 16px; font-size: 13.5px; }
.meta dt { color: var(--ink-3); }
.meta dd { margin: 0; overflow-wrap: anywhere; }
.row-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px; }
.row-line:last-of-type { border-bottom: 0; }

/* Rules list */
.rule-row { display: flex; justify-content: space-between; gap: 24px; padding: 16px 22px; border-bottom: 1px solid var(--rule); margin: 0 -22px; }
.rule-row:first-child { margin-top: -20px; border-radius: 8px 8px 0 0; }
.rule-row:last-child { margin-bottom: -20px; border-bottom: 0; border-radius: 0 0 8px 8px; }
.rule-row h3 { font-size: 14.5px; margin-bottom: 2px; }
.rule-row h3 a { color: var(--ink); }
.rule-row p + p { margin-top: 4px; }
.rule-row.is-off { background: var(--hover); }
.rule-row.is-off h3 a { color: var(--ink-2); }
.rule-count { text-align: right; flex: none; }
.rule-count b { display: block; font-size: 18px; font-weight: 600; }
.rule-count span { font-size: 12px; color: var(--ink-3); }

/* Previews */
.message { white-space: pre-wrap; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; background: var(--hover); border: 1px solid var(--rule); border-radius: 6px; padding: 12px 14px; margin: 12px 0 0; overflow-x: auto; }
.email-preview { border: 1px solid var(--rule); border-radius: 6px; padding: 18px; margin-top: 12px; }

/* ---------- Updates ---------- */
.version-line { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.version-line div { font-size: 12.5px; color: var(--ink-3); }
.version-line b { display: block; font-size: 16px; color: var(--ink); font-weight: 600; }
.drop { position: relative; display: block; border: 1.5px dashed var(--rule-2); border-radius: 8px; padding: 22px; text-align: center; background: var(--hover); cursor: pointer; }
.drop:hover, .drop.is-over { border-color: var(--brand); background: var(--brand-soft); }
.drop b { display: block; font-weight: 600; margin-bottom: 2px; }
.drop span { color: var(--ink-3); font-size: 13px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.progress { height: 6px; background: var(--d0); border-radius: 3px; overflow: hidden; margin-top: 12px; }
.progress i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.ready { border: 1px solid var(--brand-line); background: var(--brand-soft); border-radius: 8px; padding: 16px 18px; }
.ready h3 { font-size: 15px; margin-bottom: 4px; }
.ready ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); }
.notes { white-space: pre-wrap; color: var(--ink-2); font-size: 13px; margin-top: 8px; }
.working { display: flex; gap: 12px; align-items: center; color: var(--ink-2); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--rule-2); border-top-color: var(--brand); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.problems { margin: 0; padding-left: 18px; }

/* Branding */
.logo-box { display: flex; align-items: center; justify-content: center; height: 96px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); padding: 14px; }
.logo-box img { max-height: 60px; max-width: 100%; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; border: 1px solid rgba(0, 0, 0, .12); }
.color-row { display: flex; gap: 10px; align-items: center; }

/* ---------- Guest (sign-in) ---------- */
body.guest { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.guest-wrap { width: 100%; max-width: 380px; }
.guest-brand { display: flex; justify-content: center; margin-bottom: 24px; }
.guest-brand .brand-logo { max-height: 44px; max-width: 240px; }
.guest-brand .brand-word { font-size: 20px; }
.guest-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 28px; }
.guest-title { font-size: 20px; line-height: 28px; }
.guest-sub { color: var(--ink-2); margin: 2px 0 20px; }
.guest-card .flash { margin-bottom: 16px; }
.guest-note { color: var(--ink-3); font-size: 13px; margin-top: 18px; text-align: center; }
.guest-foot { text-align: center; color: var(--ink-3); font-size: 12px; margin-top: 20px; }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .cols, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar-in { padding: 0 16px; gap: 14px; }
  .brand-product { display: none; }
  .page { padding: 20px 16px 36px; }
  .pagefoot { padding: 0 16px 20px; }
  .page-head { grid-template-columns: 1fr; }
  .page-head .actions { grid-column: 1; grid-row: auto; margin-top: 12px; }
  .grid-2 { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
  .panel > .table-wrap:first-child { margin: -16px -16px 0; }
  .panel > .table-wrap:only-child { margin: -16px; }
  .panel-head + .table-wrap { margin: 0 -16px -16px; }
  .rule-row { margin: 0 -16px; padding: 14px 16px; }
  .rule-row:first-child { margin-top: -16px; }
  .rule-row:last-child { margin-bottom: -16px; }
  .data th:first-child, .data td:first-child { padding-left: 16px; }
  .filters input[type=search], .filters select { width: 100%; }
  .figures > div { flex-basis: 50%; border-bottom: 1px solid var(--rule); }
}
@media (prefers-reduced-motion: reduce) {
  .live, .spinner { animation: none; }
  .progress i { transition: none; }
}

/* Restore pop-over in the backups table */
details.restore { position: relative; display: inline-block; text-align: left; }
details.restore summary { list-style: none; }
details.restore summary::-webkit-details-marker { display: none; }
.restore-pop { position: absolute; right: 0; top: 40px; z-index: 5; width: 300px; background: var(--paper); border: 1px solid var(--rule-2); border-radius: 8px; box-shadow: 0 8px 24px rgba(16, 24, 40, .12); padding: 14px; white-space: normal; }
.restore-pop .small { color: var(--ink-2); }

/* Tables directly under a panel heading run edge to edge */
.panel > h2 + .table-wrap { margin: 14px -22px -20px; border-top: 1px solid var(--rule); }
.panel > h2 + .table-wrap + .pager { margin: 0 -22px -20px; }
.page-head .lede > * + * { margin-left: 12px; }
@media (max-width: 720px) { .panel > h2 + .table-wrap { margin: 12px -16px -16px; } }
.stack > input[type=hidden] + :not(input[type=hidden]) { margin-top: 0; }
