/* The vault page in Leafcutter's corporate design, after the app (leafcutter-website, packages/ui/styles): the
   slate neutrals, lime as the one accent, a serif for titles, a grotesque for text, a mono for data and labels,
   corners of 0 or 3 px and no shadow. The fonts are named, not shipped: the page loads nothing from anywhere else,
   so a machine without them shows its own serif and sans. */

:root {
  --slate-50: #f7f8f9;
  --slate-100: #e0e2e6;
  --slate-200: #c9cdd3;
  --slate-400: #8a929c;
  --slate-500: #5c6570;
  --slate-700: #3a4149;
  --slate-900: #1a1f26;
  --slate-950: #0e1116;
  --lime-500: #bbe32b;
  --lime-800: #5b6d1d;
  --rose-100: #f3e7eb;
  --rose-700: #931f40;

  --surface: var(--slate-50);
  --surface-raised: #ffffff;
  --ink: var(--slate-950);
  --ink-body: var(--slate-900);
  --ink-muted: var(--slate-500);
  --rule: var(--slate-100);

  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--surface); color: var(--ink-body); font-family: var(--font-sans); font-size: 16px; line-height: 1.5; }
[hidden] { display: none !important; }

h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(27px, 21px + 1.6vw, 38px); line-height: 1.1; letter-spacing: -0.024em; color: var(--ink); margin: 0 0 12px; }
h2 { font-family: var(--font-sans); font-weight: 600; font-size: 21px; line-height: 1.2; letter-spacing: -0.022em; color: var(--ink); margin: 0 0 12px; }
h3 { font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 12px; }
p { margin: 0 0 12px; }
code { font-family: var(--font-mono); font-size: 0.9em; }
a, .link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.wordmark { font-family: var(--font-mono); font-weight: 500; font-size: 15px; letter-spacing: 0.02em; margin: 0; }
.wordmark .product { color: var(--lime-500); }
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 8px; }
.lede { font-family: var(--font-serif); font-weight: 300; font-size: 20px; color: var(--ink-body); margin: 0 0 22px; }
.fine, .hint { font-size: 14px; color: var(--ink-muted); }
.status { min-height: 1.5em; font-size: 15px; color: var(--ink-body); margin: 0 0 12px; }
.status.error { color: var(--rose-700); }

/* Buttons: one filled, one outlined, one that warns. */
button { font: inherit; font-weight: 600; cursor: pointer; border: 1px solid var(--slate-950); border-radius: 3px; background: var(--slate-950); color: #fff; padding: 10px 18px; }
button:hover { background: var(--slate-700); border-color: var(--slate-700); }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--lime-500); outline-offset: 2px; }
button.secondary, button.provider { background: var(--surface-raised); color: var(--ink); border-color: var(--slate-200); }
button.secondary:hover, button.provider:hover { background: var(--slate-100); }
button.danger { background: var(--surface-raised); color: var(--rose-700); border-color: var(--rose-700); }
button.danger:hover { background: var(--rose-100); }
button.small { padding: 4px 10px; font-size: 14px; }
button.link { background: none; border: 0; padding: 0; font-weight: 400; color: inherit; }
button.link:hover { background: none; }
button.provider { width: 100%; padding: 12px 18px; font-size: 17px; }

input, select { font: inherit; color: var(--ink); background: var(--surface-raised); border: 1px solid var(--slate-200); border-radius: 0; padding: 8px 10px; min-width: 0; }
label { display: grid; gap: 4px; font-size: 14px; font-weight: 500; color: var(--ink); }

.stack { display: grid; gap: 12px; margin: 0 0 22px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Signed out: the brand's panel beside the sign-in. */
.auth { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); min-height: 100vh; }
.auth-brand { position: relative; overflow: hidden; background: var(--slate-900); color: var(--slate-50); padding: 44px 60px; }
.auth-brand .statement { font-family: var(--font-serif); font-weight: 300; font-size: clamp(23px, 19px + 1vw, 30px); line-height: 1.15; letter-spacing: -0.02em; max-width: 18em; margin: 96px 0 0; }
.auth-brand .leaf { position: absolute; left: -40px; bottom: -40px; width: 220px; height: 220px; fill: var(--lime-500); }
.auth-main { display: grid; align-items: center; padding: 44px 32px; }
.auth-box { width: 100%; max-width: 400px; margin: 0 auto; }
@media (max-width: 760px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { padding: 22px 22px 60px; }
  .auth-brand .statement { margin-top: 22px; font-size: 21px; }
  .auth-brand .leaf { width: 96px; height: 96px; left: auto; right: -16px; bottom: -16px; }
}

/* Signed in. */
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 22px; background: var(--slate-900); color: var(--slate-50); padding: 16px 32px; }
.bar-who { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 14px; color: var(--slate-200); }
.bar-who #who-org { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; font-size: 13px; color: var(--slate-400); }
.page { max-width: 920px; margin: 0 auto; padding: 32px 22px 96px; }
section { margin: 0 0 44px; }
.notice { background: var(--surface-raised); border: 1px solid var(--rule); border-left: 2px solid var(--lime-500); border-radius: 3px; padding: 22px; }
.card { background: var(--surface-raised); border: 1px solid var(--rule); border-radius: 3px; padding: 16px 22px; margin: 0 0 12px; }
.var { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--rule); }
.var:first-of-type { border-top: 0; }
.var form { display: flex; gap: 8px; }
.var .meta { font-size: 14px; color: var(--ink-muted); }
@media (max-width: 760px) { .var { grid-template-columns: 1fr; } }
.set, .unset, .tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; padding: 1px 6px; border-radius: 3px; }
.set { background: var(--lime-500); color: var(--slate-950); }
.unset, .tag { background: var(--slate-100); color: var(--slate-700); }
.empty { color: var(--ink-muted); }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--slate-200); }
td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; overflow-wrap: anywhere; }
td:last-child, th:last-child { text-align: right; padding-right: 0; }

details { margin: 16px 0 0; }
summary { cursor: pointer; font-weight: 500; color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; align-items: end; margin: 16px 0 0; }
.audit { font-family: var(--font-mono); font-size: 13px; color: var(--ink-body); padding-left: 22px; overflow-wrap: anywhere; }
