@font-face {
  font-family: "Satoshi";
  src: url(fonts/satoshi-variable.woff2?v=e739aff9b4d0) format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Anton";
  src: url(fonts/anton-400.woff2?v=23aab0b2692a) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* The admin's design system: DOWO's colours, Satoshi and Anton, pill buttons and 8px cards.
   No build step: this file is served as it is, with a content hash in its URL. */

:root {
  --ink: #0F131F;
  --muted: #5B6275;
  --line: #E3E5EC;
  --soft: #EEF0F4;
  --surface: #F2F4F7;
  --panel: #FFFFFF;
  --blue: #4352E8;
  --blue-bg: #ECEEFF;
  --purple: #9B3BC4;
  --purple-bg: #F6EBFB;
  --off: #8D93A5;
  --warn: #B45309;
  --warn-bg: #FEF3E2;
  --danger: #B42318;
  --danger-bg: #FDECEA;
  --c1: #2F3DCC;
  --c2: #5A6DFF;
  --c3: #8A5CF0;
  --c4: #B04AD8;
  --c5: #FF3D8F;
  --gradient: linear-gradient(90deg, #5A6DFF, #B04AD8, #FF3D8F);
  --night: #0C0824;
  --focus: #5A6DFF;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 500 14px/1.5 "Satoshi", system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-variant-numeric: tabular-nums;
}

a { color: var(--blue); }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

code { font-family: ui-monospace, Menlo, monospace; font-size: .92em; }

/* Text that only screen readers need, and the skip link that appears on focus. */
.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; top: 8px; left: 8px; z-index: 10; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 999px; }

/* Shell: the dark sidebar and the page */

.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }

.side {
  background:
    radial-gradient(circle at 90% 0%, rgba(90, 109, 255, .35), transparent 45%),
    radial-gradient(circle at 10% 110%, rgba(255, 61, 143, .3), transparent 50%),
    var(--night);
  color: #C9CBE0;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.side :focus-visible { outline-color: #fff; }

.brand { display: block; color: #fff; text-decoration: none; padding: 2px 8px 18px; }
.brand .logo { display: block; height: 22px; width: auto; color: #fff; }
.brand span { display: block; font-weight: 500; color: #A9ACC6; font-size: 12.5px; margin-top: 8px; }

.nav a {
  display: block; padding: 7px 10px; margin-bottom: 2px; border-radius: 6px;
  color: #C9D1DB; text-decoration: none;
}
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a[aria-current="page"] {
  background: rgba(255, 255, 255, .1); color: #fff; font-weight: 700;
  box-shadow: inset 3px 0 0 var(--c5);
}
.nav .sep { display: block; height: 1px; background: rgba(255, 255, 255, .12); margin: 10px 4px; }

.who { margin-top: auto; padding: 8px 10px; font-size: 12.5px; color: #8D99A8; overflow-wrap: anywhere; }
.who p { margin: 0 0 4px; }
.who form { margin: 0; }
.signout {
  font: inherit; color: #C9D1DB; background: none; border: 0; padding: 0;
  text-decoration: underline; cursor: pointer;
}
.signout:hover { color: #fff; background: none; }

.main { padding: 26px 32px 48px; min-width: 0; max-width: 1240px; }

.solo { max-width: 34rem; margin: 10vh auto; padding: 32px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.solo .brand { padding: 0 0 22px; }
.solo .brand .logo { color: var(--ink); height: 26px; }
.solo .brand span { color: var(--muted); }

/* Headings and page headers */

h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 {
  font: 400 30px/1.05 "Anton", Impact, "Arial Narrow", sans-serif;
  text-transform: uppercase; letter-spacing: .01em; margin: 0 0 4px; overflow-wrap: anywhere;
}
h2 { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
h3 { font-size: 14px; font-weight: 700; margin: 12px 0 6px; }

.head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.head > div:first-child { flex: 1 1 16rem; min-width: 0; }
.sub { color: var(--muted); margin: 2px 0 0; }

.crumb { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.crumb a { color: var(--muted); }

.tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--line); margin: -4px 0 18px; }
.tabs a {
  padding: 8px 12px; color: var(--muted); text-decoration: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 700; border-image: var(--gradient) 1; }

/* Cards and grids */

.panel, section { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 14px; }
.panel.flush { padding: 0; overflow-x: auto; }
.panel.chat { background: #F7F8FA; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.side-by { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stat b { display: block; font-size: 20px; letter-spacing: -.01em; }

/* Buttons: pills. A link styled as a button gets .btn (or the older .button). */

button, .btn, .button {
  display: inline-block; border: 1px solid var(--ink); border-radius: 999px; padding: 7px 16px;
  font: inherit; font-weight: 600; line-height: 1.4; background: var(--ink); color: #fff;
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
button:hover, .btn:hover, .button:hover { background: #262B3A; }
.btn.ghost, button.ghost, button.secondary {
  background: #fff; color: var(--ink); border-color: var(--line);
}
.btn.ghost:hover, button.ghost:hover, button.secondary:hover { border-color: var(--ink); background: #fff; }
.btn.danger, button.danger, .button.danger, a.danger {
  background: #fff; color: var(--danger); border: 1px solid #F1C4BF;
}
.btn.danger:hover, button.danger:hover, .button.danger:hover, a.danger:hover { background: var(--danger-bg); }
a.danger:not(.btn):not(.button) { display: inline-block; border-radius: 999px; padding: 7px 16px; font-weight: 600; text-decoration: none; }
.btn.sm, button.sm { padding: 3px 11px; font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; }
.actions form, td form { display: inline; margin: 0; }
/* In a table row the buttons sit on the row's line, at the cell's end. */
td .actions { margin: 0; justify-content: flex-end; }

/* Forms */

label.f, .fld > label { display: block; font-weight: 600; font-size: 13px; margin: 0 0 4px; }
.fld { margin-bottom: 14px; }
.help, small { font-size: 12.5px; color: var(--muted); }
.help { margin-top: 4px; }

input[type=text], input[type=url], input[type=email], input[type=number], input[type=date],
input[type=month], input[type=search], select, textarea, .in {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #D6D8E1; border-radius: var(--radius); padding: 6px 9px; min-height: 34px;
  width: 100%; max-width: 32rem;
}
textarea { max-width: 44rem; }
input[readonly], .in.code { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; background: var(--soft); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 0 0 14px; }
legend { font-weight: 600; font-size: 13px; padding: 0 4px; }
.checks label { display: block; padding: 2px 0; }

/* A toggle is a real checkbox: hidden but focusable, with the switch drawn after it. */
.tog, .fld > label.tog { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: inherit; cursor: pointer; position: relative; margin: 0; }
.tog input { position: absolute; opacity: 0; width: 34px; height: 20px; margin: 0; cursor: pointer; }
.tog i { width: 34px; height: 20px; border-radius: 999px; background: #CDD3DA; position: relative; flex: none; transition: background .15s; }
.tog i::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; transition: left .15s;
}
.tog input:checked + i { background: var(--blue); }
.tog input:checked + i::after { left: 17px; }
.tog input:focus-visible + i { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Filters above a list */

.filters { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 12px; }
.filters label:not(.tog) { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.filters input, .filters select { width: auto; min-height: 32px; padding: 4px 9px; }

/* Tables */

table { width: 100%; border-collapse: collapse; background: var(--panel); }
th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 9px 14px; border-bottom: 1px solid var(--line); background: #FAFBFC; white-space: nowrap; }
td { padding: 10px 14px; border-bottom: 1px solid var(--soft); vertical-align: middle; }
tbody th { font-size: inherit; color: inherit; background: none; white-space: normal; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
.r, td.r, th.r { text-align: right; }
.small { font-size: 12.5px; color: var(--muted); }
.lnk, td a { color: var(--blue); font-weight: 600; text-decoration: none; }
.lnk:hover, td a:hover { text-decoration: underline; }
.clip { max-width: 34rem; overflow-wrap: anywhere; }
.empty { color: var(--muted); padding: 18px 14px; }
.pager { margin-top: 10px; }

/* Status: dots, pills, bars */

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--off); }
.dot-live { background: var(--blue); }
.dot-off { background: var(--off); }
.dot-warn { background: var(--warn); }

.pill, .badge {
  display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  white-space: nowrap; background: var(--soft); color: var(--muted);
}
.p-blue { background: var(--blue-bg); color: var(--blue); }
.p-purple { background: var(--purple-bg); color: var(--purple); }
.p-grey { background: var(--soft); color: var(--muted); }
.p-warn { background: var(--warn-bg); color: var(--warn); }
.p-danger, .badge.error { background: var(--danger-bg); color: var(--danger); }
.pills { display: flex; flex-wrap: wrap; gap: 4px; }

/* Spend against a cap: a <meter> that turns amber from 80%. */
meter.bar {
  -webkit-appearance: none; appearance: none; width: 110px; height: 6px; margin: 0 8px 0 0;
  vertical-align: middle; background: #E9EDF1; border: 0; border-radius: 3px; overflow: hidden;
}
meter.bar::-webkit-meter-bar { background: #E9EDF1; border: 0; border-radius: 3px; height: 6px; }
meter.bar::-webkit-meter-optimum-value { background: var(--blue); }
meter.bar::-webkit-meter-suboptimum-value,
meter.bar::-webkit-meter-even-less-good-value { background: var(--warn); }
meter.bar::-moz-meter-bar { background: var(--blue); }
meter.bar:-moz-meter-sub-optimum::-moz-meter-bar,
meter.bar:-moz-meter-sub-sub-optimum::-moz-meter-bar { background: var(--warn); }

/* Messages to the admin */

.flash { background: var(--blue-bg); border: 1px solid #C9CEFF; color: #2F3DA8; border-radius: var(--radius); padding: 9px 12px; margin: 0 0 14px; }
.note, .warning { background: var(--warn-bg); border: 1px solid #F5D3A6; color: #7A3E06; border-radius: var(--radius); padding: 9px 12px; margin: 0 0 14px; }
.error { color: var(--danger); font-weight: 600; }
p.error[role="alert"] { background: var(--danger-bg); border: 1px solid #F4C7C1; border-radius: var(--radius); padding: 9px 12px; }

/* A conversation as chat bubbles */

.msg { max-width: 78%; margin-bottom: 12px; }
.msg .b { padding: 9px 12px; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .b + .b { margin-top: 4px; }
.msg.v { margin-left: auto; }
.msg.v .b { background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg.a .b { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg .m { font-size: 12px; color: var(--muted); margin-top: 3px; }
.msg.v .m { text-align: right; }
.msg .m .pill { margin-left: 4px; }

/* Key-value lists */

dl.kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 7px 10px; margin: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; overflow-wrap: anywhere; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 12px; }

/* What admin.js shows or hides: `hidden` must win over a button's display. */
[hidden] { display: none !important; }

summary { cursor: pointer; }
summary.btn { list-style: none; }
summary.btn::-webkit-details-marker { display: none; }

/* Site settings */

.form-foot { margin: 0 0 14px; }
.row.nowrap { flex-wrap: nowrap; }
.key input { max-width: none; }
details.reveal { margin-top: 6px; font-size: 13px; }
details.reveal summary { color: var(--blue); font-weight: 600; }
details.reveal code { display: block; margin-top: 4px; overflow-wrap: anywhere; }

/* Branding: colour swatches, the contrast note and the widget preview. Colours arrive as
   custom properties set from checked hex values. */

.swatch { width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--line); flex: none; background: var(--sw, #fff); }
.picker { width: 42px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: #fff; flex: none; cursor: pointer; }
.contrast { color: var(--blue); font-weight: 600; }
.contrast.low { color: var(--warn); }
.contrast:empty { display: none; }

.preview-col .small { margin: 10px 0; }
.wprev { background: #E6EAEE; border-radius: var(--radius); padding: 14px; }
.wpanel { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 20px rgba(27, 36, 48, .16); }
.wpanel .h { display: flex; align-items: center; gap: 8px; background: var(--wf, var(--wp)); color: var(--wt); padding: 11px 12px; font-weight: 700; overflow-wrap: anywhere; }
.wlogo { height: 22px; width: auto; max-width: 96px; }
.wpanel .bd { padding: 12px; }
.greet { background: #F3F4F6; border-radius: 10px; padding: 8px 10px; font-size: 13px; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chips { margin-top: 8px; }
.chipq { border: 1px solid var(--wp); color: var(--wp); border-radius: 999px; padding: 3px 10px; display: inline-block; margin: 3px 4px 0 0; font-size: 12.5px; }
.launch { margin: 12px 0 0 auto; width: 52px; height: 52px; border-radius: 50%; background: var(--wf, var(--wp)); }
.wprev.left .launch { margin-left: 0; }

/* The widget style, roughly: panel background, header and radius. The glass styles sit on a
   colourful backdrop so the see-through panel reads as glass. */
.wprev[data-style="frosted"], .wprev[data-style="dark"] {
  background: radial-gradient(circle at 20% 20%, #FFB36B 0 60px, transparent 61px),
              radial-gradient(circle at 85% 60%, #5A6DFF 0 70px, transparent 71px), #DCE5EE;
}
.wprev[data-style="frosted"] .wpanel {
  background: rgba(255, 255, 255, .55); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 20px;
}
.wprev[data-style="frosted"] .greet { background: rgba(255, 255, 255, .8); border-radius: 14px; }
.wprev[data-style="frosted"] .chipq { background: rgba(255, 255, 255, .6); }
.wprev[data-style="clean"] .wpanel { border-radius: 18px; border: 1px solid rgba(20, 25, 45, .06); }
.wprev[data-style="clean"] .wpanel .h { background: rgba(255, 255, 255, .7); color: #1F2933; border-bottom: 1px solid #EEF0F4; }
.wprev[data-style="clean"] .bd { background: #F7F8FB; }
.wprev[data-style="clean"] .greet { background: #fff; border: 1px solid #E8EBF0; border-radius: 14px; }
.wprev[data-style="clean"] .chipq { background: #fff; border-color: #DFE3EA; color: #1F2933; }
.wprev[data-style="clean"] .launch { border: 4px solid rgba(255, 255, 255, .6); background-clip: padding-box; }
.wprev[data-style="dark"] .wpanel {
  background: rgba(18, 20, 32, .62); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; color: #EEF0F8;
}
.wprev[data-style="dark"] .wpanel .h { background: transparent; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.wprev[data-style="dark"] .greet { background: rgba(255, 255, 255, .1); border-radius: 14px; }
.wprev[data-style="dark"] .chipq { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #E6E8F5; }

/* Calls to action: one list, each row with its switch and an editor that opens in place. */

details.add { margin: 0 0 14px; }
details.add[open] > summary { margin-bottom: 12px; }
.cta-head, li.cta {
  display: grid; grid-template-columns: 28px minmax(0, 1.2fr) minmax(0, 1.4fr) 120px 44px 64px;
  gap: 4px 14px; align-items: center; padding: 10px 14px;
}
.cta-head { font-size: 12.5px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); background: #FAFBFC; padding-top: 9px; padding-bottom: 9px; }
.cta-list { list-style: none; margin: 0; padding: 0; }
li.cta { border-bottom: 1px solid var(--soft); background: var(--panel); }
li.cta:last-child { border-bottom: 0; }
li.cta.dragging { opacity: .5; }
.grip {
  background: none; border: 0; padding: 2px 4px; color: #B4BCC6; font-size: 15px; letter-spacing: -2px;
  cursor: grab; border-radius: 4px; grid-column: 1;
}
.grip:hover { background: var(--soft); color: var(--muted); }
.cta-name { grid-column: 2; }
.cta-switch { display: flex; align-items: center; gap: 8px; margin: 0; }
details.edit { grid-column: 6; justify-self: end; }
details.edit[open] { grid-column: 2 / -1; justify-self: stretch; background: #FAFBFC; border-radius: var(--radius); padding: 10px 12px; }
details.edit[open] > summary { float: right; }
.cta-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.6fr); margin-top: 8px; }
.cta-grid .fld input, .cta-grid .fld textarea { max-width: none; }
form.reorder { background: var(--warn-bg); border: 1px solid #F5D3A6; border-radius: var(--radius); padding: 8px 12px; margin: 0 0 14px; }

/* Content: the prompt budget strip, then each category as a group of pages. A category's
   colour arrives as --cat, one of the DOWO gradient's stops. */

.panel-h { padding: 14px 18px 6px; margin: 0; }
.budget > p:first-child { margin: 0; }
.strip {
  position: relative; display: flex; height: 30px; margin: 26px 0 8px; border-radius: 6px;
  background: repeating-linear-gradient(45deg, #EEF1F4 0 6px, #E7EBEF 6px 12px);
}
.seg { height: 100%; background: var(--cat, var(--off)); flex: none; }
.seg:first-child { border-radius: 6px 0 0 6px; }
.seg.idx { opacity: .28; }
.mark { position: absolute; top: -19px; bottom: -5px; border-left: 2px solid var(--ink); }
.mark span { position: absolute; top: -2px; left: 6px; white-space: nowrap; font-size: 12px; font-weight: 600; }
.mark.end span { left: auto; right: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--cat); }

.groups { margin-bottom: 8px; }
.grp { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-bottom: 8px; overflow: hidden; }
.grp.dragging { opacity: .5; }
.grp-x { opacity: .85; }
.grp > .grip { position: absolute; left: 6px; top: 9px; z-index: 1; }
.grp > .grip:not([hidden]) + details > .grp-h { padding-left: 38px; }
.grp-h { display: flex; align-items: center; gap: 12px; padding: 10px 14px; list-style: none; }
.grp-h::-webkit-details-marker { display: none; }
.grp-h:hover { background: #FAFBFC; }
.sw { width: 12px; height: 12px; border-radius: 3px; flex: none; background: var(--cat); }
.chev::after { content: "Open ▾"; }
details[open] > .grp-h .chev::after { content: "Close ▴"; }
.grp-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 14px; border-top: 1px solid var(--soft); background: #FAFBFC; }
.grp-tools form { margin: 0; }
.grp-tools input[type=text] { width: 16rem; min-height: 30px; padding: 3px 9px; }
.grp .empty { border-top: 1px solid var(--soft); margin: 0; }

.bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 7px 14px; background: var(--ink); color: #fff; }
.bulk .sel { width: auto; background: transparent; color: #fff; border-color: #4A5566; }
.bulk .sel option { color: var(--ink); }
.bulk button { background: #fff; color: var(--ink); border-color: #fff; }
.bulk button:hover { background: var(--soft); }

.pg-list { list-style: none; margin: 0; padding: 0; }
.pg { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 18px; border-top: 1px solid var(--soft); }
.pg input[type=checkbox] { width: 15px; height: 15px; margin: 0; flex: none; accent-color: var(--ink); }
.pg-name { font-weight: 500; overflow-wrap: anywhere; }
.pg-name .path { display: block; color: var(--muted); font-size: 12.5px; }
.pg .tokens { min-width: 3.5em; text-align: right; }
.sel {
  width: auto; max-width: 12rem; min-height: 0; font-size: 12.5px; border: 1px solid var(--line);
  border-radius: 6px; padding: 3px 8px; background: #fff; white-space: nowrap;
}
.sel.set { border-color: var(--ink); font-weight: 600; }
.pg-more { margin: 0; padding: 8px 14px 10px 18px; border-top: 1px solid var(--soft); }

/* Save order stays in view at the bottom of the window once the order has changed. */
form.reorder[data-cat-order-form] { position: sticky; bottom: 12px; z-index: 2; box-shadow: 0 6px 20px rgba(27, 36, 48, .16); }

.limit .range { width: 100%; max-width: 32rem; margin: 18px 0 2px; accent-color: var(--blue); }
.limit .ticks { position: relative; display: flex; justify-content: space-between; max-width: 32rem; }
/* 150,000 sits at (150,000 - 1,000) / 399,000 of the way along. */
.limit .ticks .mid { position: absolute; left: 37.34%; transform: translateX(-50%); }
.limit input[type=number] { width: 140px; }

/* Older pages not yet restyled keep working with these. */
.subnav { margin: -6px 0 16px; }
section h2 { margin-top: 0; }

/* Narrow screens: the sidebar becomes a bar across the top. */

@media (max-width: 900px) {
  .shell { display: block; }
  .side {
    position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center;
    gap: 6px 14px; padding: 10px 14px;
  }
  .brand { padding: 0; display: flex; align-items: center; gap: 10px; }
  .brand span { margin: 0; }
  /* The links wrap onto a second line rather than scroll sideways. */
  .nav { order: 3; flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px; }
  .nav a { white-space: nowrap; margin: 0; padding: 6px 10px; }
  .nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--c5); }
  .nav .sep { width: 1px; height: auto; margin: 4px 2px; }
  .who { margin: 0 0 0 auto; padding: 0; display: flex; align-items: center; gap: 10px; }
  .who p { margin: 0; }
  .main { padding: 18px 16px 40px; }
  .grid2, .side-by, .cta-grid { grid-template-columns: minmax(0, 1fr); }
  .pg { flex-wrap: wrap; }
  .pg-name { flex-basis: calc(100% - 40px); }
  .cta-head { display: none; }
  li.cta { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .cta-desc, .clicks, .cta-switch, details.edit { grid-column: 2 / -1; justify-self: start; }
  .clicks::after { content: " clicks this month" / ""; color: var(--muted); font-size: 12.5px; }
  .stats, .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .msg { max-width: 92%; }
}

@media (max-width: 520px) {
  .who p { display: none; }
  h1 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .tog i, .tog i::after { transition: none; }
}

/* Sign-in, signed-out and message pages: the DOWO panel beside the form (_auth.html). */
.auth-page { background: #fff; }
.au { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; font-size: 15px; }
.au .au-brand {
  background: radial-gradient(circle at 85% 10%, rgba(90, 109, 255, .45), transparent 45%),
    radial-gradient(circle at 30% 120%, rgba(255, 61, 143, .4), transparent 50%), var(--night);
  color: #fff; padding: 34px 40px; display: flex; flex-direction: column;
}
.au .au-brand .logo { display: block; height: 30px; width: auto; align-self: flex-start; flex: none; color: #fff; }
.au .big { font: 400 60px/.98 "Anton", Impact, sans-serif; text-transform: uppercase; margin: auto 0 18px; }
.au .grad {
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.au .tag { color: #C9CBE0; max-width: 34ch; margin: 0 0 auto; }
.au .foot { font-size: 12px; color: #8D90AE; margin-top: 28px; }
.au .au-side { background: #fff; padding: 34px 40px; display: flex; flex-direction: column; }
.au .form { margin: auto; width: 100%; max-width: 330px; text-align: center; }
.au h1 { font: 400 40px/1 "Anton", Impact, sans-serif; text-transform: uppercase; margin: 0 0 24px; }
.au .lead { color: var(--muted); margin: -18px 0 26px; }
.au .ms {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px;
  border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none;
}
.au .ms:hover { background: #262C3E; }
.au .ms i { display: grid; grid-template-columns: 8px 8px; gap: 2px; }
.au .ms i b { width: 8px; height: 8px; display: block; }
.au .ms i b:nth-child(1) { background: #F25022; }
.au .ms i b:nth-child(2) { background: #7FBA00; }
.au .ms i b:nth-child(3) { background: #00A4EF; }
.au .ms i b:nth-child(4) { background: #FFB900; }
.au .small { font-size: 13px; color: var(--muted); margin: 16px 0 0; text-align: center; }
.au .msg { border-radius: 10px; padding: 10px 12px; margin: 0 0 18px; font-size: 14px; }
.au .msg.err { background: var(--danger-bg); color: #8A1C12; border: 1px solid #F4C7C1; }
.au .msg.ok { background: var(--blue-bg); color: #2F3DA8; border: 1px solid #C9CEFF; }
.au .rfoot { font-size: 12px; color: var(--off); text-align: center; }

@media (max-width: 800px) {
  .au { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .au .au-brand { padding: 24px 24px 28px; }
  .au .big { font-size: 40px; margin-top: 36px; }
  .au .foot { display: none; }
  .au .au-side { padding: 28px 24px; }
  .au .form { margin: 12px auto 36px; }
}
