
/* The palette is the website's, to the value. A reader who arrives from zetlyn.com or from a hub
   should not be told by the colours that they have left. The layout is this program's own: a
   scope surface is a dense thing and the site's vocabulary has no rows, facets or chips in it. */
:root {
  --bg: #f2efe7; --fg: #14202a; --dim: #667078; --line: #cfd1ca;
  --panel: #fbfaf6; --accent: #dc4a20; --chip: #dfe2db;
  --line-strong: #afb5af; --wash: rgba(20,32,42,.04); --mark-filter: none;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #11181d; --fg: #e9e6de; --dim: #98a3ab; --line: #2b353c;
    --panel: #161e24; --accent: #ff6a3d; --chip: #1c252b;
    --line-strong: #3a444b; --wash: rgba(233,230,222,.05); --mark-filter: invert(1);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11181d; --fg: #e9e6de; --dim: #98a3ab; --line: #2b353c;
  --panel: #161e24; --accent: #ff6a3d; --chip: #1c252b;
  --line-strong: #3a444b; --wash: rgba(233,230,222,.05); --mark-filter: invert(1);
}
:root[data-theme="light"] { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg);
       font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
             "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 2.2rem 0 5rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 2.1rem; line-height: 1.15; margin: 0 0 .2rem; letter-spacing: -.035em; font-weight: 750; }
h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em;
     color: var(--dim); margin: 2.2rem 0 .7rem; font-weight: 600;
     font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
h3 { font-size: 1rem; margin: 1.4rem 0 .4rem; }
.about { color: var(--dim); margin: 0 0 1.2rem; max-width: 48rem; }
.bar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: 1rem 0; }
input[type=search], input[type=text] { flex: 1 1 22rem; min-width: 0; padding: .55rem .7rem; font: inherit;
  background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; }
button { padding: .55rem .9rem; font: inherit; cursor: pointer; border-radius: 6px;
  border: 1px solid var(--line); background: var(--panel); color: var(--fg); }
.chip { display: inline-block; padding: .12rem .5rem; border-radius: 999px;
  background: var(--chip); color: var(--fg); font-size: .82rem; white-space: nowrap; }
.chip.on { background: var(--accent); color: var(--bg); }
.state { font-size: .82rem; }
.state.current { color: #2e7d32; } .state.partial, .state.failing { color: #c0392b; }
.state.empty { color: var(--dim); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th { text-align: left; font-weight: 600; color: var(--dim); font-size: .78rem;
     text-transform: uppercase; letter-spacing: .05em; padding: .4rem .6rem .4rem 0;
     border-bottom: 1px solid var(--line); }
td { padding: .5rem .6rem .5rem 0; border-bottom: 1px solid var(--line);
     vertical-align: top; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
.grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card { border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem;
        background: var(--panel); }
.card h4 { margin: 0 0 .4rem; font-size: .9rem; }
.cover { color: var(--dim); font-size: .8rem; font-weight: 400; }
.facet { display: flex; justify-content: space-between; gap: .6rem; padding: .16rem 0;
         font-size: .88rem; }
.facet .n { color: var(--dim); font-variant-numeric: tabular-nums; }
.dim { color: var(--dim); }
.why { color: var(--dim); font-size: .8rem; }
.note { border-left: 3px solid var(--accent); padding: .5rem .8rem; background: var(--panel);
        margin: 1rem 0; font-size: .9rem; }
.text { white-space: pre-wrap; max-width: 46rem; }
footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line);
         color: var(--dim); font-size: .82rem; }
/* A receipt: where one value came from, opened in place. */
details.receipt { margin-top: .25rem; font-size: .85rem; }
details.receipt > summary { cursor: pointer; color: var(--dim); list-style: none; }
details.receipt > summary::-webkit-details-marker { display: none; }
details.receipt > summary::before { content: "↗ "; color: var(--accent); }
details.receipt[open] { background: var(--panel); border-left: 3px solid var(--accent);
                        padding: .5rem .8rem; margin: .4rem 0; }
.receipt dl { display: grid; grid-template-columns: max-content 1fr; gap: .2rem .9rem; margin: .4rem 0; }
.receipt dt { color: var(--dim); }
.receipt dd { margin: 0; }
.receipt pre { max-height: 18rem; overflow: auto; font-size: .78rem; background: var(--bg);
               padding: .5rem; border: 1px solid var(--line); }
.receipt table { font-size: .82rem; }
/* The frame: the website's header, then where the reader is. Its sizes are the website's
   (zetlyn.com, assets/style.css: .shell, .site-header, .site-footer), so a reader moving between
   the site, the hub and a tracker sees one header and one footer. */
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
header.top { background: var(--bg); }
header.top .wrap { height: 82px; display: flex; align-items: center; gap: 1.5rem;
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 750;
  letter-spacing: -.03em; font-size: 20px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; filter: var(--mark-filter); }
nav.links { margin-left: auto; display: flex; gap: 28px; font-size: 14px; }
nav.links a { color: var(--dim); }
nav.links a:hover, nav.links a[aria-current] { color: var(--fg); text-decoration: none; }
/* Where the reader is, marked where the header meets its line, as the website marks it. */
header.top nav.links { align-self: stretch; }
header.top nav.links a { display: flex; align-items: center; border-bottom: 2px solid transparent; margin-bottom: -1px; }
header.top nav.links a[aria-current] { border-bottom-color: var(--accent); }
/* Who is signed in, at the right of the header, where somebody can be. */
header.top .account { margin-left: 28px; display: flex; align-items: center; gap: .6rem; font-size: 13px; }
header.top a.account { border: 1px solid var(--fg); color: var(--fg); padding: 6px 12px; }
header.top a.account:hover { background: var(--fg); color: var(--bg); text-decoration: none; }
header.top form.account button { font: inherit; font-size: 13px; padding: 5px 10px; }
/* Three parts, one brand: the website, the hub and the app. Each names itself beside the logo,
   has an accent of its own, and keeps the other two a click away. */
.brand-area { font-weight: 400; color: var(--accent); margin-left: 1px; }
header.top .org-name, header.top .org-switch summary { font-size: 14px; color: var(--fg); border-left: 1px solid var(--line);
  padding-left: 1rem; cursor: default; }
header.top .org-switch { position: relative; }
header.top .org-switch summary { cursor: pointer; list-style: none; }
header.top .org-switch summary::after { content: " ▾"; color: var(--dim); }
header.top .org-switch ul { position: absolute; top: 2rem; left: .6rem; z-index: 5; list-style: none; margin: 0; padding: .4rem 0;
  background: var(--panel); border: 1px solid var(--line); min-width: 12rem; }
header.top .org-switch li a { display: block; padding: .35rem .9rem; color: var(--fg); }
header.top nav.areas { display: flex; gap: 8px; margin-left: 22px; }
header.top a.area-link { font: 11px/normal ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; text-transform: uppercase;
  letter-spacing: .08em; color: var(--dim); border: 1px solid var(--line-strong); padding: 6px 10px; }
header.top a.area-link:hover { color: var(--fg); border-color: var(--fg); text-decoration: none; }
body.area-app { --accent: #2f7d4f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.area-app { --accent: #52c486; } }
:root[data-theme="dark"] body.area-app { --accent: #52c486; }
@media (max-width: 40rem) { header.top nav.areas { display: none; } header.top .org-name, header.top .org-switch summary { display: none; } }
/* The switch between the three parts: the same control, in the same place, in each. */
.switcher { position: relative; }
/* Controls built on <details> are not the sections the page's own <details> rule spaces out. */
details.switcher, details.org-switch { margin: 0; }
details.dash-org { margin: 0 0 10px; }
details.switcher > summary, details.org-switch > summary, details.dash-org > summary { margin: 0; font-weight: inherit; }
.switcher summary { list-style: none; cursor: pointer; width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid currentColor; opacity: .7; }
.switcher summary::-webkit-details-marker { display: none; }
.switcher summary:hover, .switcher[open] summary { opacity: 1; }
.switcher svg rect { fill: currentColor; }
.switcher-panel { position: absolute; top: 38px; left: 0; z-index: 30; width: 300px; background: var(--panel); color: var(--fg);
  border: 1px solid var(--fg); box-shadow: 8px 8px 0 rgba(0,0,0,.12); }
.switcher-panel a { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--fg); }
.switcher-panel a:last-child { border-bottom: 0; }
.switcher-panel a:hover { background: var(--wash); text-decoration: none; }
.switcher-panel a.on { box-shadow: inset 3px 0 0 var(--accent); }
.switcher-panel b { display: block; font-size: 14px; }
.switcher-panel span { display: block; font-size: 12.5px; color: var(--dim); margin-top: 2px; }

/* The app, at zetlyn.com/app/ and every organisation's pages: software, not a page. A dark sidebar, and a light place to work beside it. */
body.dash { background: var(--panel); }
.dash-grid { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.dash-side { background: #10171c; color: #d5dce0; display: flex; flex-direction: column; gap: 4px; padding: 16px 14px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.dash-side a { color: #d5dce0; }
.dash-head { display: flex; align-items: center; gap: 12px; padding: 2px 4px 18px; }
.dash-head .switcher summary { color: #d5dce0; }
.dash-brand { display: flex; align-items: center; gap: 8px; font-weight: 750; letter-spacing: -.03em; font-size: 18px; }
.dash-brand:hover { text-decoration: none; }
.dash-brand .brand-mark { width: 22px; height: 22px; filter: invert(1); }
.dash-brand .brand-area { color: #52c486; font-weight: 400; }
.dash-org { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-bottom: 10px; border: 1px solid #26323a;
  font-weight: 600; font-size: 14px; position: relative; }
details.dash-org summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; width: 100%; }
details.dash-org summary::after { content: "▾"; margin-left: auto; color: #8b98a1; }
details.dash-org ul { position: absolute; top: 100%; left: -1px; right: -1px; z-index: 20; list-style: none; margin: 0; padding: 4px 0;
  background: #172128; border: 1px solid #26323a; }
details.dash-org li a { display: block; padding: 7px 12px; }
.dash-org-mark { width: 22px; height: 22px; display: grid; place-items: center; background: #52c486; color: #10171c;
  font-size: 12px; font-weight: 750; }
.dash-label { margin: 14px 10px 4px; font: 11px/normal ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-transform: uppercase; letter-spacing: .1em; color: #7f8c95; }
.dash-nav { display: flex; flex-direction: column; }
.dash-nav a { padding: 8px 10px; font-size: 14px; border-left: 2px solid transparent; }
.dash-nav a:hover { background: rgba(255,255,255,.05); text-decoration: none; }
.dash-nav a[aria-current] { background: rgba(255,255,255,.07); border-left-color: #52c486; color: #fff; }
.dash-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid #26323a; display: flex; flex-direction: column; gap: 12px; }
.dash-me { display: flex; flex-direction: column; gap: 8px; padding: 0 10px; }
.dash-email { font-size: 13px; color: #aab6bd; overflow: hidden; text-overflow: ellipsis; }
.dash-me button, a.dash-signin { font: inherit; font-size: 13px; background: none; color: #d5dce0; border: 1px solid #3a4851;
  padding: 7px 10px; cursor: pointer; text-align: center; }
a.dash-signin { margin: 0 10px; }
.dash-me button:hover, a.dash-signin:hover { border-color: #d5dce0; text-decoration: none; }
.dash-small { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; font-size: 12.5px; }
.dash-small .theme-toggle { color: #aab6bd; border-color: #3a4851; }
.dash-main { min-width: 0; display: flex; flex-direction: column; }
.dash-top { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 0 36px; border-bottom: 1px solid var(--line);
  background: var(--bg); }
.dash-top nav.crumbs ol { padding: 0; }
.dash-top .autoupdate { margin-left: auto; display: flex; align-items: center; gap: .45rem; font-size: .84rem; color: var(--dim);
  border: 1px solid var(--line); border-radius: 999px; padding: .25rem .75rem; background: var(--panel); }
.dash-top .autoupdate .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--line-strong); }
.dash-top .autoupdate.on .dot { background: #2e7d32; }
.dash-tabs { display: flex; gap: .25rem; padding: 0 28px; border-bottom: 1px solid var(--line); background: var(--bg); }
.dash-tabs a { padding: 12px .8rem 10px; color: var(--dim); font-size: .9rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.dash-tabs a:hover { color: var(--fg); text-decoration: none; }
.dash-tabs a.on { color: var(--fg); border-bottom-color: var(--accent); font-weight: 600; }
.dash main.dash-body { width: auto; max-width: 1180px; margin: 0; padding: 30px 36px 72px; }
@media (max-width: 52rem) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; }
  .dash-head { padding: 0; }
  .dash-org { margin: 0; }
  .dash-label { display: none; }
  .dash-nav { flex-direction: row; overflow-x: auto; }
  .dash-nav a { border-left: 0; border-bottom: 2px solid transparent; }
  .dash-nav a[aria-current] { border-bottom-color: #52c486; }
  .dash-foot { margin: 0 0 0 auto; padding: 0; border: 0; flex-direction: row; }
  .dash-small { display: none; }
  .dash-top { padding: 0 16px; }
  .dash-tabs { padding: 0 8px; overflow-x: auto; }
  .dash main.dash-body { padding: 20px 16px 56px; }
}
footer.site-footer { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 0; height: 90px;
  border-top: 1px solid var(--line); display: flex; align-items: center; color: var(--dim);
  font: 11px/normal ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
footer.site-footer div { margin-left: auto; display: flex; gap: 22px; align-items: center; }
footer.site-footer a { color: var(--dim); }
footer.site-footer a:hover { color: var(--fg); text-decoration: none; }
.theme-toggle { border: 1px solid var(--line); background: none; color: var(--dim); cursor: pointer;
  padding: 7px 11px; font: 11px/normal ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  text-transform: uppercase; letter-spacing: .1em; }
.theme-toggle:hover { border-color: var(--fg); color: var(--fg); }
.subbar { border-bottom: 1px solid var(--line); background: var(--panel); }
.subbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; min-height: 46px; }
nav.crumbs ol { list-style: none; margin: 0; padding: .7rem 0; display: flex; flex-wrap: wrap;
  gap: .35rem; font-size: .86rem; }
nav.crumbs li { display: flex; gap: .35rem; align-items: center; color: var(--dim); }
nav.crumbs li + li::before { content: "/"; color: var(--line-strong); }
nav.crumbs a { color: var(--dim); }
nav.crumbs a:hover { color: var(--fg); }
nav.crumbs [aria-current] { color: var(--fg); font-weight: 600; }
nav.tabs { display: flex; gap: .25rem; align-self: stretch; }
nav.tabs a { display: flex; align-items: center; padding: 0 .8rem; color: var(--dim); font-size: .88rem;
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
nav.tabs a:hover { color: var(--fg); text-decoration: none; }
nav.tabs a.on { color: var(--fg); border-bottom-color: var(--accent); font-weight: 600; }
/* The head of a page: its name, what it is, and the numbers that say how it stands. */
.lede { font-size: 1.05rem; color: var(--dim); max-width: 46rem; margin: .4rem 0 0; }
.meta { font-size: .85rem; color: var(--dim); margin: .8rem 0 0; display: flex; gap: .4rem 1rem; flex-wrap: wrap; }
.meta .current::before, .meta .partial::before { content: ""; display: inline-block; width: .5rem; height: .5rem;
  border-radius: 50%; margin-right: .4rem; background: #2e7d32; vertical-align: .05em; }
.meta .partial::before { background: #c0392b; }
.meta { align-items: center; }
.meta form.update { margin-left: auto; }
.meta form.update button { padding: .3rem .8rem; font-size: .85rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1px; background: var(--line);
  margin: 1.8rem 0 1.4rem; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stats > * { padding: 1rem 1.2rem; background: var(--panel); color: var(--fg); display: block; }
.stats a:hover { background: var(--bg); text-decoration: none; }
.stats b { display: block; font-size: 1.9rem; font-weight: 750; letter-spacing: -.03em; line-height: 1.1;
  font-variant-numeric: tabular-nums; }
.stats span { color: var(--dim); font-size: .82rem; }
.stats .hot b { color: var(--accent); }
/* The list of things. */
.list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.list-head h2 { margin-bottom: .5rem; }
.scroll { overflow-x: auto; }
table.things td.thing a { color: var(--fg); font-weight: 600; }
table.things td.thing a:hover { color: var(--accent); text-decoration: none; }
table.things tbody tr:hover { background: var(--wash); }
table.things td:first-child, table.things th:first-child { padding-left: .6rem; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1.2rem 0; font-size: .9rem; }
.pager a, .pager span.off { padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--fg); }
.pager a:hover { border-color: var(--fg); text-decoration: none; }
.pager span.off { color: var(--dim); opacity: .5; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .92em; }
button.primary, .button.primary { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
a.button { display: inline-block; padding: .55rem .9rem; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); }
a.button:hover { text-decoration: none; border-color: var(--fg); }
a.button.primary:hover { color: #fff; }
button:hover { border-color: var(--fg); }
input[type=file] { font: inherit; font-size: .88rem; color: var(--dim); }
input[type=file]::file-selector-button { font: inherit; padding: .45rem .9rem; margin-right: .7rem; cursor: pointer;
  border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); }
input[type=file]::file-selector-button:hover { border-color: var(--fg); }
#jobs { position: fixed; left: 0; right: 0; bottom: 0; background: var(--panel); border-top: 1px solid var(--line);
  padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom, 0px)); font-size: .9rem; }
#jobs .job { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; max-width: 60rem; margin: 0 auto; }
#jobs progress, main progress { flex: 1 1 10rem; min-width: 6rem; width: 100%; }
body.busy main { padding-bottom: 6rem; }
header.top .autoupdate { margin-left: auto; display: flex; align-items: center; gap: .45rem; font-size: .84rem;
  color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .75rem; background: var(--panel); }
header.top .autoupdate:hover { color: var(--fg); border-color: var(--fg); text-decoration: none; }
header.top .autoupdate .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--line-strong); }
header.top .autoupdate.on .dot { background: #2e7d32; }
header.top .autoupdate + nav.links { margin-left: 1.4rem; }
label.choice { display: flex; gap: .7rem; align-items: baseline; max-width: 34rem; margin: .45rem 0; padding: .65rem .9rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel); cursor: pointer; }
label.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
details { margin: 2rem 0; } details > summary { cursor: pointer; font-weight: 600; margin-bottom: .6rem; }
.offer { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; border: 1px solid var(--accent); border-radius: 10px;
  padding: .9rem 1.1rem; background: var(--panel); margin: 1.2rem 0; }
.offer p { margin: 0; flex: 1 1 18rem; } .offer form { margin: 0; }
@media (max-width: 40rem) {
  header.top .wrap { height: auto; min-height: 70px; padding-block: 10px; gap: 1rem; }
  nav.links { gap: 14px; flex-wrap: wrap; justify-content: flex-end; font-size: 12px; }
  header.top nav.links { align-self: center; }
  header.top nav.links a { border-bottom: 0; margin-bottom: 0; }
  header.top nav.links a[aria-current] { text-decoration: underline 2px var(--accent); text-underline-offset: 7px; }
  nav.tabs { width: 100%; overflow-x: auto; }
  .stats b { font-size: 1.5rem; }
}
@media (max-width: 40rem) { main, .wrap, footer.site-footer { width: calc(100% - 28px); } main { padding: 1.2rem 0 4rem; } footer.site-footer { height: auto; padding: 26px 0; flex-wrap: wrap; gap: 12px; } }

h1.big { font-size: 2rem; margin-top: 3rem; }
input.wide { flex: 1 1 26rem; min-width: 0; width: 100%; padding: .65rem .8rem; font: inherit;
  background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; }
button.primary { background: var(--accent); color: var(--bg); border-color: var(--accent); font-weight: 600; }
.example { margin-top: 2.5rem; max-width: 40rem; }
pre#log { background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: .7rem .9rem; font-size: .85rem; white-space: pre-wrap; }
.grid .card h4 { font-size: 1.6rem; margin: 0; }
