/* Palette: the accent, good, bad and warn colors are the same hex values the bot uses for its
   embeds (cogs/_theme.py), so Discord messages and this panel always look related. */
:root {
  --bg: #f5f6f8; --panel: #ffffff; --panel-2: #f0f1f5; --line: #e3e5ea; --text: #1d2026; --muted: #667085;
  --accent: #5865f2; --accent-2: #4752c4; --accent-ink: #4752c4; --accent-soft: #eceefe;
  --good: #1a9e5c; --good-soft: #e5f6ed; --bad: #d92d3a; --bad-soft: #fdecee; --warn: #b7791f; --warn-soft: #fdf3dd;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --pop-shadow: 0 10px 30px rgba(16,24,40,.16);
  --radius: 12px;
}
:root[data-theme="dark"] {
  --bg: #0f1115; --panel: #171a21; --panel-2: #1f232c; --line: #2a2f3a; --text: #e8eaf0; --muted: #98a0b0;
  --accent: #5865f2; --accent-2: #6b77f5; --accent-ink: #8b94f7; --accent-soft: #232846;
  --good: #3ecf8e; --good-soft: #14281f; --bad: #ff6b76; --bad-soft: #35191d; --warn: #f5a524; --warn-soft: #33260e;
  --shadow: 0 1px 2px rgba(0,0,0,.4); --pop-shadow: 0 10px 30px rgba(0,0,0,.5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115; --panel: #171a21; --panel-2: #1f232c; --line: #2a2f3a; --text: #e8eaf0; --muted: #98a0b0;
    --accent: #5865f2; --accent-2: #6b77f5; --accent-ink: #8b94f7; --accent-soft: #232846;
    --good: #3ecf8e; --good-soft: #14281f; --bad: #ff6b76; --bad-soft: #35191d; --warn: #f5a524; --warn-soft: #33260e;
    --shadow: 0 1px 2px rgba(0,0,0,.4); --pop-shadow: 0 10px 30px rgba(0,0,0,.5);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-ink); text-decoration: none; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* layout */
.shell { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }
.side { background: var(--panel); border-right: 1px solid var(--line); padding: 14px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.main { padding: 28px 32px 120px; max-width: 920px; width: 100%; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; padding: 4px 8px 12px; }
.logo { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; color: #fff; }
.logo .i { width: 16px; height: 16px; stroke-width: 3; }
.guildbtn { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); cursor: pointer; width: 100%; text-align: left; }
.guildbtn:hover { border-color: var(--accent); }
.guildbtn .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.guildbtn small { color: var(--muted); display: block; font-weight: 400; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sq { border-radius: 10px; }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }
.navgroup { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 14px 10px 4px; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--text); cursor: pointer; }
.nav:hover { background: var(--panel-2); }
.nav.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.spacer { flex: 1; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border-top: 1px solid var(--line); margin-top: 8px; }
.me .avatar { width: 30px; height: 30px; }
.me .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; }
.topbar { display: none; }

/* page */
.head { margin-bottom: 22px; }
.head h1 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.01em; }
.head p { margin: 0; color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; }
.card > header { padding: 16px 20px 4px; }
.card > .body { position: relative; }
.card > header h2 { margin: 0; font-size: 16px; }
.card > header p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.card > .body { padding: 6px 20px 16px; }
.field { display: grid; grid-template-columns: 1fr minmax(180px, 320px); gap: 8px 24px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.field:last-child { border-bottom: 0; }
.field.wide { grid-template-columns: 1fr; }
.field .lab { font-weight: 600; }
.field .hlp { color: var(--muted); font-size: 13px; margin-top: 1px; font-weight: 400; }
.field .ctl { display: flex; justify-content: flex-end; align-items: center; gap: 8px; min-width: 0; }
.field.wide .ctl { justify-content: flex-start; }
.field.changed .lab::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 8px; vertical-align: middle; }

/* controls */
input[type=text], input[type=number], select, textarea, .pick {
  width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; outline: none; min-height: 38px;
}
input:focus, select:focus, textarea:focus, .pick:focus, .pick.open { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 96px; resize: vertical; }
.num { display: flex; align-items: center; gap: 8px; width: 100%; }
.num .unit { color: var(--muted); white-space: nowrap; font-size: 13.5px; }
.dur { display: flex; gap: 8px; width: 100%; }
.dur input { flex: 1; min-width: 0; }
.dur select { width: 110px; flex: none; }
.pct { display: flex; align-items: center; gap: 12px; width: 100%; }
.pct input[type=range] { flex: 1; accent-color: var(--accent); }
.pct b { width: 52px; text-align: right; font-variant-numeric: tabular-nums; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; background: var(--line); border-radius: 99px; transition: .15s; }
.switch i::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .15s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { box-shadow: 0 0 0 3px var(--accent-soft); }
.counter { color: var(--muted); font-size: 12px; text-align: right; width: 100%; }
.ro { color: var(--muted); }

/* picker */
.pickwrap { position: relative; width: 100%; }
.pick { display: flex; align-items: center; gap: 8px; cursor: pointer; text-align: left; }
.pick .v { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick .ph { color: var(--muted); }
.pick .i { width: 15px; height: 15px; color: var(--muted); }
.pop { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); background: var(--panel); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--pop-shadow); overflow: hidden; min-width: 240px; }
.pop.up { top: auto; bottom: calc(100% + 6px); }
.pop input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none !important; }
.opts { max-height: 260px; overflow-y: auto; padding: 4px; }
.opt { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 7px; cursor: pointer; }
.opt:hover, .opt.hl { background: var(--panel-2); }
.opt.sel { color: var(--accent-ink); font-weight: 600; }
.opt small { margin-left: auto; color: var(--muted); font-weight: 400; }
.opt.dim { opacity: .55; }
.grp { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 9px 3px; font-weight: 600; }
.none { padding: 14px; text-align: center; color: var(--muted); font-size: 13.5px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.hash { color: var(--muted); font-weight: 600; width: 14px; text-align: center; flex: none; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; padding: 3px 6px 3px 10px; font-size: 13.5px; }
.chip.gone { color: var(--muted); font-style: italic; }
.chip button { border: 0; background: transparent; cursor: pointer; width: 20px; height: 20px; border-radius: 50%; color: var(--muted); display: grid; place-items: center; padding: 0; }
.chip button:hover { background: var(--bad-soft); color: var(--bad); }
.chip.static { padding: 3px 10px; }
.addchip { width: auto; min-width: 150px; }
.addchip .pick { border-style: dashed; color: var(--muted); }

/* buttons */
.btn { border: 1px solid var(--line); background: var(--panel); border-radius: 9px; padding: 8px 14px; cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.btn:hover { background: var(--panel-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); }
.btn.danger { color: var(--bad); }
.btn.danger.sure, .btn.danger.fill { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.ghost { border-color: transparent; background: transparent; }
.spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sp .7s linear infinite; display: inline-block; }
@keyframes sp { to { transform: rotate(360deg); } }

/* lists */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 8px; border-bottom: 1px solid var(--line); }
td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; word-break: break-word; }
td.act { text-align: right; width: 1%; white-space: nowrap; }
.empty { padding: 22px; text-align: center; color: var(--muted); }
.addrow { background: var(--panel-2); border-radius: 10px; padding: 14px; margin-top: 14px; }
.addrow h3 { margin: 0 0 10px; font-size: 14px; }
.addgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; align-items: start; }
.addgrid label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.addgrid label span { color: var(--muted); font-weight: 400; }
.actfields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 8px 0 14px; }
.actfields label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.actfields .hlp { color: var(--muted); font-size: 12.5px; margin-top: 3px; font-weight: 400; }

/* overview + servers */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer; display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--shadow); transition: .12s; }
.tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.tile .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.tile h3 { margin: 0; font-size: 15px; }
.tile p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.sub { margin: 26px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.center { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.hero { text-align: center; max-width: 420px; }
.hero .logo { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 18px; }
.hero .logo .i { width: 30px; height: 30px; }
.hero h1 { margin: 0 0 8px; }
.hero p { color: var(--muted); margin: 0 0 22px; }
.notice { background: var(--bad-soft); color: var(--bad); border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; font-size: 14px; }
.note { background: var(--accent-soft); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
.sk { height: 120px; border-radius: var(--radius); background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 50%, var(--panel) 75%); background-size: 200% 100%; animation: sh 1.2s infinite; margin-bottom: 18px; border: 1px solid var(--line); }
@keyframes sh { to { background-position: -200% 0; } }

/* save bar + toasts */
.savebar { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); transition: transform .2s; background: var(--text); color: var(--bg); border-radius: 14px; padding: 10px 12px 10px 18px; display: flex; align-items: center; gap: 14px; z-index: 40; box-shadow: 0 10px 30px rgba(0,0,0,.3); max-width: calc(100vw - 24px); }
.savebar.show { transform: translate(-50%, 0); }
.savebar .btn { border-color: transparent; }
.savebar .btn:not(.primary) { background: transparent; color: inherit; }
.savebar .btn:not(.primary):hover { background: rgba(127,127,127,.25); }
#toasts { position: fixed; top: 16px; right: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--good); border-radius: 10px; padding: 10px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.18); max-width: 360px; animation: in .18s; }
.toast.err { border-left-color: var(--bad); }
@keyframes in { from { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 50; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: .2s; box-shadow: 0 0 40px rgba(0,0,0,.35); }
  .side.open { transform: none; }
  .topbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
  .topbar .t { font-weight: 700; flex: 1; }
  .main { padding: 20px 14px 120px; }
  .field { grid-template-columns: 1fr; }
  .field .ctl { justify-content: flex-start; }
  .field.row { grid-template-columns: 1fr auto; }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 45; }
}

/* ---------- shared UI kit: tooltip, context menu, modal, palette, badges ---------- */
.tip { position: fixed; z-index: 100; background: var(--text); color: var(--bg); font-size: 12.5px; line-height: 1.35; padding: 6px 9px; border-radius: 7px; max-width: 260px; pointer-events: none; box-shadow: var(--pop-shadow); opacity: 0; transition: opacity .1s; }
.tip.show { opacity: 1; }
.menu { position: fixed; z-index: 90; min-width: 190px; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--pop-shadow); padding: 4px; animation: in .12s; }
.menu .item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; cursor: pointer; width: 100%; border: 0; background: transparent; text-align: left; }
.menu .item:hover, .menu .item:focus-visible { background: var(--panel-2); outline: none; }
.menu .item.danger { color: var(--bad); }
.menu .item .i { width: 16px; height: 16px; }
.menu .sep { height: 1px; background: var(--line); margin: 4px 2px; }
.veil { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 70; display: grid; place-items: start center; padding: 12vh 16px 16px; animation: in .12s; }
.dialog { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--pop-shadow); width: 100%; max-width: 440px; overflow: hidden; }
.dialog.wide { max-width: 560px; }
.dialog .dh { padding: 18px 20px 6px; font-weight: 700; font-size: 16px; }
.dialog .db { padding: 4px 20px 16px; color: var(--muted); }
.dialog .df { padding: 12px 20px 18px; display: flex; gap: 10px; justify-content: flex-end; }
.palette input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 18px; font-size: 16px; box-shadow: none !important; min-height: 0; }
.palette .opts { max-height: 340px; padding: 6px; }
.palette .opt { padding: 10px 12px; }
.palette .opt .sub2 { color: var(--muted); font-size: 13px; margin-left: auto; text-align: right; }
.kbd { font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 3px 5px; color: var(--muted); background: var(--panel); }
.searchbtn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 10px; background: transparent; border: 1px solid var(--line); color: var(--muted); cursor: pointer; text-align: left; }
.searchbtn:hover { border-color: var(--accent); color: var(--text); }
.searchbtn span.l { flex: 1; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; border-radius: 99px; padding: 2px 9px; background: var(--panel-2); color: var(--muted); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.on, .badge.live { background: var(--good-soft); color: var(--good); }
.badge.setup { background: var(--warn-soft); color: var(--warn); }
.badge.off { opacity: .85; }
.tile .top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sdot { width: 8px; height: 8px; border-radius: 50%; margin-left: auto; background: var(--good); flex: none; }
.sdot.setup { background: var(--warn); }
.sdot.off { display: none; }
.preview { margin-top: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; }
.preview .pa { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.preview .pt { min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.preview .pn { font-weight: 700; font-size: 14px; margin-bottom: 1px; }
.preview .pn small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.mention { background: var(--accent-soft); color: var(--accent-ink); border-radius: 4px; padding: 0 3px; font-weight: 500; }
.plabel { color: var(--muted); font-size: 12px; margin: 10px 0 -4px; }
.time { color: var(--muted); white-space: nowrap; }
.drop { border: 1.5px dashed var(--line); border-radius: 12px; padding: 22px; text-align: center; color: var(--muted); }
.drop input { margin-top: 10px; }
.result { margin-top: 12px; display: grid; gap: 6px; }
.result div { display: flex; gap: 8px; align-items: baseline; }
.result .ok { color: var(--good); font-weight: 600; }
.result .no { color: var(--bad); font-weight: 600; }
.row-actions { display: inline-flex; gap: 6px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- tabs, greyed out settings, editors ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -6px 0 18px; overflow-x: auto; scrollbar-width: none; }
.tab { border: 0; background: transparent; padding: 10px 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--accent-ink); border-bottom-color: var(--accent); }
.tdot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.field.disabled .lab, .field.disabled .hlp { opacity: .6; }
.field.disabled .ctl { opacity: .45; filter: grayscale(.4); }
.why { display: flex; align-items: center; gap: 6px; color: var(--warn); font-size: 12.5px; margin-top: 4px; font-weight: 500; }
.why .i, .lockedbox .i { width: 13px; height: 13px; }
.lockedbox { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; border: 1px dashed var(--line); border-radius: 9px; padding: 9px 11px; }
.opt[aria-disabled="true"] { cursor: not-allowed; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--panel-2); }
.veil { overflow-y: auto; }
.editgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; color: var(--text); }
.editgrid .full { grid-column: 1 / -1; }
.editgrid label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.editgrid label span { color: var(--muted); font-weight: 400; }
.editgrid .hlp, .addgrid .hlp { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.qlist { display: grid; gap: 10px; width: 100%; }
.q { display: flex; gap: 10px; align-items: flex-start; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.qn { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; margin-top: 7px; }
.qf { flex: 1; display: grid; gap: 8px; min-width: 0; }
.qrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.qrow input[type=text] { flex: 1; min-width: 160px; }
.qrow select { width: auto; }
.qreq { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.qa { display: flex; flex-direction: column; gap: 4px; }
.tile.invite { cursor: default; align-items: center; }
.tile.invite:hover { transform: none; }
.logo.img { background: transparent; overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .editgrid { grid-template-columns: 1fr; } }
.preview img.pa { object-fit: cover; }

/* the logo is a circle on a black square: round it so the corners never show */
.logo.img, .preview img.pa { border-radius: 50%; overflow: hidden; background: transparent; }
.logo.img img { border-radius: 50%; }
.head.row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
