/* am4bot: one stylesheet, system fonts, light and dark, six colour themes (data-theme on <html>, chosen on the Account page). */
/* --h main hue, --h2 second hue of gradients, --s saturation, --al / --dl accent lightness in light / dark mode (text contrast at least 4.5:1) */
:root, [data-theme=blue], .sw-blue { --h: 200; --h2: 222; --s: 80%; --al: 36%; --dl: 62%; }
[data-theme=red], .sw-red { --h: 355; --h2: 12; --s: 78%; --al: 44%; --dl: 72%; }
[data-theme=green], .sw-green { --h: 150; --h2: 174; --s: 80%; --al: 27%; --dl: 56%; }
[data-theme=orange], .sw-orange { --h: 22; --h2: 6; --s: 82%; --al: 38%; --dl: 64%; }
[data-theme=violet], .sw-violet { --h: 268; --h2: 245; --s: 66%; --al: 50%; --dl: 76%; }
[data-theme=pink], .sw-pink { --h: 330; --h2: 305; --s: 76%; --al: 43%; --dl: 73%; }
:root {
  --acc: hsl(var(--h) var(--s) var(--al)); --accink: #fff; --tint: hsl(var(--h) 75% 94%); --tint2: hsl(var(--h2) 70% 90%);
  --bg: hsl(var(--h) 32% 95%); --card: #fff; --ink: hsl(var(--h) 35% 12%); --mut: hsl(var(--h) 12% 36%); --line: hsl(var(--h) 24% 85%); --field: hsl(var(--h) 35% 97.5%);
  --hdr1: hsl(var(--h) 72% 22%); --hdr2: hsl(var(--h2) 70% 27%); --shadow: 0 1px 2px hsl(var(--h) 40% 20% / .06), 0 4px 14px hsl(var(--h) 40% 20% / .06);
  --ok: #17704a; --bad: #b3261e; --dry: #8a5a00; --off: #6b7680;
}
@media (prefers-color-scheme: dark) { :root {
  --acc: hsl(var(--h) 75% var(--dl)); --accink: hsl(var(--h) 60% 10%); --tint: hsl(var(--h) 40% 19%); --tint2: hsl(var(--h2) 40% 24%);
  --bg: hsl(var(--h) 26% 8%); --card: hsl(var(--h) 22% 13%); --ink: hsl(var(--h) 20% 93%); --mut: hsl(var(--h) 12% 70%); --line: hsl(var(--h) 18% 26%); --field: hsl(var(--h) 22% 17%);
  --hdr1: hsl(var(--h) 60% 15%); --hdr2: hsl(var(--h2) 55% 21%); --shadow: 0 2px 10px #0004;
  --ok: #5cc58e; --bad: #ff8a80; --dry: #f0c060; --off: #98a4ae; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--acc); }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 12px; } h2 { font-size: 19px; margin: 0 0 10px; }
p { margin: 0 0 10px; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.25em; }
.ic .fill { fill: currentColor; stroke: none; }

/* header: the theme's gradient, logo, white links */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 16px; color: #fff;
  background: linear-gradient(120deg, var(--hdr1), var(--hdr2)); box-shadow: 0 2px 10px hsl(var(--h) 60% 15% / .25); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; color: #fff; text-decoration: none; letter-spacing: .02em; }
.logo { width: 36px; height: 36px; flex: none; }
.logo-bg { fill: hsl(var(--h) 75% 45%); } .top .logo-bg { fill: #ffffff26; }
.logo-plane { fill: #fff; } .logo-trail { fill: none; stroke: #fff; stroke-opacity: .6; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1 4; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.top nav a, .top .linkbtn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover, .top .linkbtn:hover { background: #ffffff1f; } .top nav a[aria-current] { background: #ffffff33; }
.top a:focus-visible, .top button:focus-visible { outline-color: #fff; }
main { width: 100%; max-width: 900px; margin: 0 auto; padding: 20px 16px 40px; display: flex; flex-direction: column; gap: 16px; flex: 1 0 auto; }
.foot { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 16px 26px; color: var(--mut); font-size: 14px; border-top: 1px solid var(--line); }
.foot .logo { width: 22px; height: 22px; opacity: .85; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; min-width: 0; box-shadow: var(--shadow); }
.card.narrow { max-width: 480px; width: 100%; margin: 0 auto; }
/* sign-in pages: a photo across the top of the card */
.card.pic { overflow: hidden; }
.card.pic::before { content: ""; display: block; height: 150px; margin: -18px -18px 18px; background: url(img/a380-960.jpg) center 45% / cover; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; } .head h1 { margin: 0; }
.small { font-size: 14px; color: var(--mut); }
.ih { display: flex; align-items: center; gap: 10px; }
.ih .ic { width: 34px; height: 34px; padding: 7px; border-radius: 10px; color: var(--acc); background: var(--tint); }

/* home: photo with the theme's tint, then the five steps */
.hero { position: relative; overflow: hidden; border-radius: 16px; min-height: 360px; display: flex; align-items: flex-end; color: #fff; background: var(--hdr1); box-shadow: var(--shadow); }
.hero img, .hero-tint { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img { object-fit: cover; object-position: 50% 30%; }
.hero-tint { background: hsl(var(--h) 70% 42%); mix-blend-mode: color; opacity: .7; }
.hero-text { position: relative; width: 100%; padding: 120px 26px 24px; background: linear-gradient(to top, hsl(var(--h) 70% 10% / .92), hsl(var(--h) 70% 12% / .7) 55%, transparent); }
.hero h1 { font-size: 36px; margin: 0 0 8px; text-shadow: 0 2px 12px #0006; }
.hero p { max-width: 58ch; margin: 0; font-size: 18px; color: #fffffff0; }
.credit { position: absolute; top: 8px; right: 10px; font-size: 11px; color: #fffc; text-decoration: none; background: #0005; padding: 1px 7px; border-radius: 8px; }
.credit:hover { color: #fff; text-decoration: underline; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 12px; background: linear-gradient(150deg, var(--tint), var(--card) 75%); border: 1px solid var(--line); box-shadow: var(--shadow); counter-increment: step; }
/* the home page's 11 features: 1–4 above the sign-in boxes; below them 5–8 in a row of four and 9–11 in a row of three wider tiles
   (12 columns: 4 × 3, then 3 × 4, so every row is as wide) */
.tiles.more { counter-reset: step 4; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.tiles.more > li { grid-column: span 3; } .tiles.more > li:nth-last-child(-n+3) { grid-column: span 4; }
@media (max-width: 700px) {
  .tiles, .tiles.more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles.more > li, .tiles.more > li:nth-last-child(-n+3) { grid-column: auto; }
  .tiles.more > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 359px) { .tiles, .tiles.more { grid-template-columns: minmax(0, 1fr); } }
.tile::after { content: counter(step); position: absolute; top: 10px; right: 12px; font-weight: 800; font-size: 22px; color: var(--acc); opacity: .35; }
.tile .ic { width: 44px; height: 44px; padding: 10px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--acc), hsl(var(--h2) var(--s) calc(var(--al) + 8%))); }
.tile b { font-size: 16px; } .tile span { font-size: 14px; color: var(--mut); line-height: 1.4; }

/* page banners (logged-in pages) */
.banner { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 20px 22px; border-radius: 14px; color: #fff;
  background: linear-gradient(120deg, var(--hdr1), var(--hdr2)); box-shadow: var(--shadow); }
.banner > :not(.routes) { position: relative; z-index: 1; }
.banner h1 { margin: 0; overflow-wrap: anywhere; } .banner p { margin: 2px 0 0; color: #ffffffdd; overflow-wrap: anywhere; }
.banner-text { flex: 1 1 200px; min-width: 0; }
.banner-ic .ic { width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: #ffffff26; }
.banner-right { display: flex; flex-wrap: wrap; gap: 8px; }
.banner .btn, .banner button { background: #fff; border-color: #fff; color: hsl(var(--h) 70% 25%); }
.banner .btn.alt { background: transparent; color: #fff; }
.routes { position: absolute; right: 0; top: 0; width: 60%; max-width: 420px; height: 100%; fill: #fff; fill-opacity: .35; stroke: #fff; stroke-opacity: .3; stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.routes path { fill: none; }
/* the dashboard's banner: the photo, tinted like the home page */
.banner.photo { min-height: 150px; background: var(--hdr1); }
.banner.photo > img, .banner.photo > .hero-tint, .banner.photo::before { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.banner.photo > img { object-fit: cover; object-position: 50% 35%; }
.banner.photo::before { content: ""; z-index: 1 !important; background: linear-gradient(90deg, hsl(var(--h) 75% 13% / .9), hsl(var(--h2) 80% 28% / .5) 60%, hsl(var(--h2) 85% 45% / .12)); }
.banner.photo > .banner-text, .banner.photo > .banner-right, .banner.photo > .banner-ic { z-index: 2; }

.note { margin: 0; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--ok) 14%, var(--card)); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); border-left-width: 5px; }
.note.bad { background: color-mix(in srgb, var(--bad) 12%, var(--card)); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.badtext { color: var(--bad); } .goodtext { color: var(--ok); }
.warntext { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--dry);
  background: color-mix(in srgb, var(--dry) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--dry) 35%, transparent); } .warntext .ic { margin-top: 1px; }
.warntext.danger { font-size: 15px; font-weight: 700; color: var(--bad); background: color-mix(in srgb, var(--bad) 9%, var(--card)); border-color: color-mix(in srgb, var(--bad) 45%, transparent); border-left-width: 5px; }
.warntext.danger a { color: inherit; text-decoration: underline; }
.check-row { margin-top: 6px; } .check-row span { font-weight: 600; overflow-wrap: anywhere; }
.form { display: flex; flex-direction: column; gap: 4px; }
.form label { font-weight: 600; margin-top: 8px; }
input[type=text], input[type=email], input[type=password], input[type=number], input:not([type]), select {
  width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink); font: inherit; }
input:focus-visible, select:focus-visible, button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
input:focus, select:focus { border-color: var(--acc); }
input:disabled, select:disabled { opacity: .6; }
textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink); font: inherit; resize: vertical; }
textarea.mono { font-size: 13px; letter-spacing: 0; }
textarea:focus { border-color: var(--acc); } textarea:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
/* My bots: the admin's warning and information cards */
.notice { display: flex; gap: 12px; align-items: flex-start; } .notice p { margin: 0; overflow-wrap: anywhere; }
.notice > .ic { width: 34px; height: 34px; padding: 6px; border-radius: 10px; color: var(--acc); background: var(--tint); }
.notice.danger { color: var(--bad); font-weight: 700; background: color-mix(in srgb, var(--bad) 7%, var(--card)); border-color: color-mix(in srgb, var(--bad) 40%, transparent); border-left: 6px solid var(--bad); }
.notice.danger > .ic { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, var(--card)); }
.notice.danger a { color: inherit; text-decoration: underline; }
.unit { display: flex; align-items: center; gap: 8px; } .unit input { max-width: 180px; } .unit span { color: var(--mut); font-size: 14px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500 !important; }
label.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--acc); }
.locked { font-size: 12px; font-weight: 500; color: var(--mut); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; margin-left: 6px; white-space: nowrap; }
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 18px; border: 2px solid var(--acc); border-radius: 9px;
  background: var(--acc); color: var(--accink); font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer; text-decoration: none; }
button:hover, .btn:hover { filter: brightness(1.08); }
.form > button { margin-top: 14px; align-self: flex-start; }
button.alt, .btn.alt { background: transparent; color: var(--acc); }
button.alt:hover, .btn.alt:hover { background: var(--tint); filter: none; }
button.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.linkbtn { background: none; border: 0; color: var(--acc); padding: 0; min-height: 0; font-size: 16px; font-weight: 600; text-decoration: none; }
form.inline { display: inline; } form.danger { margin-top: 4px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* bot cards: a stripe in the colour of their state */
.card.bot { border-left: 6px solid var(--st, var(--acc)); }
.st-on { --st: var(--ok); } .st-dry { --st: var(--dry); } .st-bad { --st: var(--bad); } .st-off { --st: var(--off); }
.bot-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 4px; } .bot-head h2 { margin: 0; overflow-wrap: anywhere; }
.bot-ic { display: inline-flex; padding: 7px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--acc), hsl(var(--h2) var(--s) calc(var(--al) + 8%))); }
.bot-ic .ic { transform: rotate(45deg); }
.pill { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); color: var(--mut); white-space: nowrap; }
.pill.on, .pill.action { color: var(--ok); border-color: currentColor; background: color-mix(in srgb, var(--ok) 12%, transparent); }
.pill.bad, .pill.error { color: var(--bad); border-color: currentColor; background: color-mix(in srgb, var(--bad) 10%, transparent); }
.pill.dry { color: var(--dry); border-color: currentColor; background: color-mix(in srgb, var(--dry) 12%, transparent); } .pill.off, .pill.info { color: var(--mut); }
.last { padding: 8px 10px; border-radius: 8px; background: var(--field); border: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; } .last.bad { color: var(--bad); }
.empty { text-align: center; padding: 26px 18px; } .empty .ic { width: 56px; height: 56px; padding: 13px; border-radius: 50%; color: var(--acc); background: var(--tint); transform: rotate(45deg); margin-bottom: 8px; }
.botform { gap: 16px; } .botform .card { display: flex; flex-direction: column; gap: 4px; } .botform .field { margin-top: 4px; }
.botform .ft-bool { margin-top: 12px; }
/* Inflight service: catering for each hub */
.hubs { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.subhead { font-size: 16px; margin: 0; }
.hublist { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px 8px; margin: 0; min-width: 0; }   /* every hub shown, no scroll box */
.hublist legend { padding: 0 4px; }
.hubrow, .hub-all { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px 0; margin: 0 !important; border-bottom: 1px dashed var(--line); }
.hubrow:last-child { border-bottom: 0; } .hubrow input, .hub-all input { margin: 0 !important; }
.hubname { flex: 1 1 140px; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.hubstate { flex: 1 0 100%; padding-left: 30px; font-size: 13px; color: var(--mut); overflow-wrap: anywhere; } .hubrow .pill { white-space: normal; }
.hubset { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; } .hubset label { display: block; font-weight: 600; margin-bottom: 4px; }
.card-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
/* each entry in the colour of its kind (fuel, departures…), with its icon; errors keep a red outline */
.log li { display: grid; grid-template-columns: 30px 150px 80px minmax(0, 1fr); gap: 4px 10px; align-items: center; padding: 8px 12px; font-size: 14px; border-radius: 8px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--cc, var(--off)) 11%, var(--card)), var(--card) 45%); border: 1px solid var(--line); border-left: 5px solid var(--cc, var(--off)); }
.log li.lv-error { border-color: color-mix(in srgb, var(--bad) 55%, transparent); border-left-color: var(--cc, var(--off)); }
.log .lic .ic, .chip .ic { display: block; width: 28px; height: 28px; padding: 5px; border-radius: 50%; color: var(--accink); background: var(--cc, var(--off)); }
.cat-gift { --ch: 330; --cs: 70%; } .cat-marketing { --ch: 270; --cs: 60%; } .cat-fuel { --ch: 26; --cs: 90%; } .cat-co2 { --ch: 140; --cs: 55%; }
.cat-catering { --ch: 45; --cs: 90%; } .cat-departures { --ch: 205; --cs: 80%; } .cat-maintenance { --ch: 215; --cs: 20%; } .cat-lounge { --ch: 20; --cs: 45%; }
.cat-staff { --ch: 175; --cs: 70%; } .cat-vip { --ch: 52; --cs: 75%; } .cat-hangar { --ch: 290; --cs: 45%; } .cat-session { --ch: 240; --cs: 50%; } .cat-other { --ch: 0; --cs: 0%; }
.log li[class*="cat-"], .chip[class*="cat-"] { --cc: hsl(var(--ch) var(--cs) 40%); }
@media (prefers-color-scheme: dark) { .log li[class*="cat-"], .chip[class*="cat-"] { --cc: hsl(var(--ch) var(--cs) 62%); } }
/* activity filters: a switch per kind, and a period */
.logfilter { display: flex; flex-direction: column; gap: 14px; }
.logfilter fieldset { border: 0; margin: 0; padding: 0; min-width: 0; } .logfilter legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 3px; border-radius: 20px; border: 2px solid var(--cc); cursor: pointer; font-size: 14px; font-weight: 600; background: var(--card); color: var(--mut); opacity: .65; }
.chip .ic { width: 26px; height: 26px; padding: 5px; } .chip span { text-decoration: line-through; }
.chip:has(input:checked) { opacity: 1; color: var(--ink); background: color-mix(in srgb, var(--cc) 15%, var(--card)); } .chip:has(input:checked) span { text-decoration: none; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip:has(input:focus-visible) { outline: 3px solid var(--acc); outline-offset: 2px; }
.period { display: flex; flex-wrap: wrap; gap: 12px 24px; } .period fieldset { flex: 1 1 260px; }
.period .dt { display: flex; flex-wrap: wrap; gap: 6px; }
.period input { min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink); font: inherit; color-scheme: light; }
.period input[type=date] { flex: 1 1 150px; } .period input[type=time] { flex: 0 1 120px; }
@media (prefers-color-scheme: dark) { .period input { color-scheme: dark; } }
.log time { color: var(--mut); font-variant-numeric: tabular-nums; } .log .msg { overflow-wrap: anywhere; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs a { padding: 7px 14px; border-radius: 20px; text-decoration: none; font-weight: 600; font-size: 15px; background: var(--card); border: 1px solid var(--line); }
.tabs a[aria-current] { background: var(--acc); border-color: var(--acc); color: var(--accink); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 12px; }
.stats > div, .stats > a { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 10px; background: linear-gradient(150deg, var(--tint), var(--tint2)); }
.stats > a { text-decoration: none; border: 1px solid transparent; transition: border-color .15s, transform .15s; } .stats > a:hover { border-color: var(--acc); transform: translateY(-1px); }
.stats b { font-size: 28px; line-height: 1.2; color: var(--acc); } .stats span { color: var(--ink); font-size: 14px; }
.stats .warn { background: color-mix(in srgb, var(--bad) 14%, var(--card)); } .stats .warn b { color: var(--bad); }
.rules { display: flex; flex-direction: column; }
.rule { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.rule-name { font-weight: 600; } .rule label.check { margin: 0; white-space: nowrap; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; } .filter input, .filter select { width: auto; flex: 1 1 180px; }
.inline-form { max-width: 480px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .05em; }
.authpick { border: 0; margin: 8px 0 4px; padding: 0; } .authpick legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
.auth-session, .auth-password { display: flex; flex-direction: column; gap: 4px; } [hidden] { display: none !important; }
.steps { padding-left: 22px; } .steps li { margin: 6px 0; } kbd { font: 600 13px ui-monospace, Menlo, Consolas, monospace; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; background: var(--field); }
.prose h2 { margin-top: 18px; color: var(--acc); } .prose ul { padding-left: 20px; } .prose li { margin: 4px 0; }

/* colour picker (Account) */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; border: 0; padding: 0; margin: 4px 0 0; }
.swatches legend { padding: 0; margin-bottom: 6px; }
.swatch { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 !important; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch .dot { width: 28px; height: 28px; flex: none; border-radius: 50%; background: linear-gradient(135deg, hsl(var(--h) var(--s) var(--al)), hsl(var(--h2) var(--s) calc(var(--al) + 12%))); box-shadow: inset 0 0 0 2px #fff6; }
.swatch:has(input:checked) { border-color: var(--acc); background: var(--tint); }
.swatch:has(input:focus-visible) { outline: 3px solid var(--acc); outline-offset: 2px; }

@media (max-width: 640px) {
  h1 { font-size: 24px; } .hero h1 { font-size: 28px; }
  .hero { min-height: 400px; } .hero-text { padding: 100px 18px 18px; } .hero p { font-size: 16px; }
  .banner { padding: 16px; } .banner-ic .ic { width: 40px; height: 40px; padding: 9px; }
  .log li { grid-template-columns: auto 1fr auto; } .log .msg { grid-column: 1 / -1; }
  .rule { grid-template-columns: 1fr; }
  .top { padding: 8px 12px; } .top nav a, .top .linkbtn { padding: 6px 8px; }
}
/* orange turns brown on a dark photo: brighten it */
[data-theme=orange] .hero img, [data-theme=orange] .banner.photo > img { filter: brightness(1.5) contrast(.9); }
[data-theme=orange] .hero-tint { background: hsl(28 95% 50%); opacity: .8; }

/* uploaded logo (Admin → Look) */
.logo-img { display: block; height: 40px; width: auto; max-width: min(220px, 50vw); object-fit: contain; }
.foot .logo-img { height: 22px; }
/* guest pages with the background picture (Admin → Look): the whole picture, a blurred copy behind it, see-through boxes */
.bgimg { position: fixed; inset: 0; z-index: -1; overflow: hidden; opacity: var(--bg-op, 1); pointer-events: none; }
.bgimg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg-blur { object-fit: cover; filter: blur(30px) saturate(1.1); transform: scale(1.15); }
.bg-main { object-fit: contain; }
.has-bg { --glass: color-mix(in srgb, var(--card) var(--box-op, 85%), transparent); }
.has-bg .card, .has-bg .tile { background: var(--glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.has-bg .card.pic::before { display: none; }
.has-bg .hero { min-height: 0; background: none; box-shadow: none; }
.has-bg .hero > img, .has-bg .hero-tint, .has-bg .credit { display: none; }
.has-bg .hero-text { padding: 22px 26px; border-radius: 16px; background: color-mix(in srgb, var(--hdr1) var(--box-op, 85%), transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.has-bg .foot { background: var(--glass); border-top: 0; }
/* Admin → Look */
.look-preview { display: block; width: 100%; max-width: 480px; height: auto; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 10px; }
.look-logo { padding: 10px; border-radius: 10px; background: linear-gradient(120deg, var(--hdr1), var(--hdr2)); display: inline-block; } .look-logo img { display: block; height: 40px; width: auto; max-width: 100%; }
input[type=file] { min-width: 0; max-width: 100%; font: inherit; font-size: 14px; }
.look-up { margin-bottom: 8px; } .look-up form.row { flex-wrap: wrap; min-width: 0; max-width: 100%; } .look-up input[type=file] { flex: 1 1 200px; width: 100%; min-width: 0; }
input[type=range] { flex: 1; max-width: 320px; accent-color: var(--acc); } .unit output { min-width: 3em; font-weight: 600; }
