@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400;1,500&family=Montserrat:wght@400;500;600;700;800&display=swap');
@font-face { font-family: 'La Luxes Script'; font-style: normal; font-weight: 400; src: url('/static/fonts/LaLuxesScript-Regular.otf') format('opentype'); }
:root {
  --bg: #ece3d7; --paper: #ffffff; --ink: #000000; --muted: #5d5751; --line: #cfc5b7; --pink: #f1accd; --pink-light: #fbe4ef; --bad: #b4332a; --ok: #2f6b3a;
  --serif: 'Playfair Display', Georgia, serif; --sans: 'Montserrat', Arial, sans-serif; --script: 'La Luxes Script', 'Playfair Display', serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* otherwise a class with its own display, such as .nav, shows hidden elements */
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.65 var(--sans); }
.wrap { max-width: 640px; margin: 0 auto; padding: 28px 18px 72px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.brand { font: 600 11px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.brand img { width: 26px; height: 26px; }
.top a { font-size: 13px; color: var(--muted); }
.progress { flex: 1; height: 2px; background: var(--line); }
#bar { height: 100%; width: 0; background: var(--ink); transition: width .3s; }
.step { font: 600 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; margin: 0 0 14px; }
h1 { font: italic 400 42px/1.1 var(--serif); margin: 0 0 14px; }
h2 { font: italic 400 26px/1.2 var(--serif); margin: 28px 0 10px; }
.lead { color: var(--muted); margin: 0 0 30px; font-size: 16px; }
fieldset { border: 0; padding: 0; margin: 0 0 28px; }
legend { font-weight: 600; margin-bottom: 10px; padding: 0; line-height: 1.4; }
.hint { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.opts { display: grid; gap: 8px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
.opt:hover { border-color: var(--ink); }
.opt input { width: 18px; height: 18px; accent-color: var(--ink); margin: 3px 0 0; flex: none; }
.field { display: flex; align-items: center; border: 1px solid var(--line); background: var(--paper); padding: 0 14px; }
.field span { color: var(--muted); }
.field input { flex: 1; border: 0; padding: 13px 8px; font: inherit; background: transparent; outline: none; }
textarea { width: 100%; min-height: 110px; border: 1px solid var(--line); background: var(--paper); padding: 12px 14px; font: inherit; line-height: 1.5; resize: vertical; outline: none; }
.link-add { display: flex; gap: 8px; align-items: stretch; }
.link-add .field { flex: 1; min-width: 0; }
.link-add .field input { min-width: 0; width: 100%; font-size: 14px; }
.link-add button { flex: none; padding: 0 18px; white-space: nowrap; }
.link-add button[data-link-add] { width: 52px; padding: 0; font-size: 24px; letter-spacing: 0; }
.handle-status { margin: 8px 0 0; }
.handle-status.good { color: var(--ok); }
.handle-status.bad { color: var(--bad); }
fieldset[data-type=handle] { min-width: 0; }
fieldset[data-type=links] { min-width: 0; } /* otherwise a long URL widens the whole page on a phone */
.link-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.link-list:empty { display: none; }
.link-list li { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); padding: 6px 6px 6px 12px; font-size: 13px; }
.link-list .url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-list button { flex: none; width: 34px; height: 34px; padding: 0; background: #fff; font-size: 20px; letter-spacing: 0; }
.link-list button:hover { background: var(--pink); }
textarea:focus, .field:focus-within { border-color: var(--ink); }
fieldset.bad .opt, fieldset.bad .field, fieldset.bad textarea { border-color: var(--bad); }
.err { color: var(--bad); font-size: 14px; margin: 8px 0 0; }
.count { font-size: 12px; color: var(--muted); text-align: right; margin-top: 4px; }
.nav { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }
button, .btn { font: 500 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 16px 26px; border: 1px solid var(--ink); cursor: pointer; text-decoration: none; display: inline-block; color: var(--ink); }
.primary { background: var(--pink); }
.primary:hover:not(:disabled) { background: var(--ink); color: #fff; }
.ghost { background: transparent; }
button:disabled, button:disabled:hover { background: #dcd6ce; color: #8d867e; border-color: #c9c2b8; cursor: not-allowed; }
.stages { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; }
.stages li { padding: 11px 14px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); }
.stages li.now { border-color: var(--ink); color: var(--ink); background: var(--pink-light); }
.stages li.now::after { content: " …"; }
.stages li.ok { color: var(--ok); }
.stages li.ok::before { content: "✓ "; }
.log { font: 12px/1.5 ui-monospace, Consolas, monospace; color: var(--muted); background: var(--paper); border: 1px solid var(--line); padding: 10px 12px; max-height: 180px; overflow: auto; white-space: pre-wrap; }
.bul { padding-left: 18px; margin: 0 0 26px; }
.bul li { margin-bottom: 8px; }
.small { font-size: 13px; color: var(--muted); margin-top: 22px; }
.muted { color: var(--muted); }
.cfg, .tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.cfg td, .cfg th, .tbl td, .tbl th { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cfg label { margin-right: 12px; white-space: nowrap; }
.cfg input[type=text] { width: 100%; font: inherit; padding: 8px; border: 1px solid var(--line); }
.ok { color: var(--ok); }
.page { background: var(--paper); padding: 28px 28px 32px; }
.page-info:not([hidden]) { display: flex; flex-direction: column; min-height: 460px; }
.info-text { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px 12px 36px; }
.info-text p { margin: 0; }
.info-text .info-label { font: italic 400 42px/1.1 var(--serif); }
.info-text .info-label::after { content: ""; display: block; width: 44px; height: 2px; background: var(--pink); margin: 20px auto 24px; }
.info-text p:last-child { max-width: 450px; font-size: 17px; line-height: 1.75; text-wrap: pretty; }
@media (max-width: 480px) { .page-info:not([hidden]) { min-height: 400px; } .info-text { padding: 12px 0 28px; } .info-text p:last-child { font-size: 16px; } }
.hero { text-align: center; padding: 24px 0 8px; }
.hero .kicker { font: 600 10px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; margin-bottom: 22px; }
.hero h1 { font-size: 56px; margin-bottom: 18px; }
.hero h1 .b { font: 800 50px/1 var(--sans); text-transform: uppercase; letter-spacing: -.02em; display: block; }
.hero .lead { max-width: 520px; margin: 0 auto 28px; }
.hero .script { font: 400 38px/1.1 var(--script); margin: 22px 0 14px; }
.hero .primary { width: 100%; max-width: 420px; padding: 20px; }
.hero .meta { font: 500 10px/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 18px; }

/* Piotr's banner on the status page: same look as in report.css, deliberately not Ola's */
.pb-banner { display: flex; gap: 14px; align-items: flex-start; margin: 28px 6px 6px 0; padding: 12px 14px; background: #fff7ee; color: #140901; border: 2px solid #140901; box-shadow: 4px 4px 0 #ae52ca; }
.pb-banner img { flex: none; width: 48px; height: 48px; image-rendering: pixelated; }
.pb-banner p { margin: 0 0 3px; font-size: 13px; line-height: 1.45; }
.pb-banner .pb-banner-title { font: 700 15px/1.3 ui-monospace, 'Cascadia Mono', Consolas, 'DejaVu Sans Mono', monospace; }
.pb-banner a { color: #26655f; font-weight: 700; }
.pb-banner .pb-banner-small { font-size: 10.5px; color: #5a5f7d; }
