/* PrestoForm admin: mobile-first, one column on a phone, no inline styles
   (the CSP forbids them). The service's colour arrives from accent-<slug>.css. */
:root { --accent: #1f6feb; --accent-dark: #174ea6; --ink: #1c2230; --muted: #5b6475; --line: #dde2ea; --bg: #f6f7f9;
        --card: #fff; --ok: #146c2e; --err: #b3261e; --warn: #8a5a00; --radius: 12px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent-dark); }
h1 { font-size: 1.5rem; margin: .2em 0 .6em; } h2 { font-size: 1.15rem; margin: 0 0 .5em; } .h3, h3 { font-size: 1rem; margin: 0 0 .4em; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.brand .mark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); display: inline-block; }
.menu { position: relative; } .menu summary { cursor: pointer; list-style: none; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; max-width: 50vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-body { position: absolute; right: 0; top: 110%; z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; min-width: 260px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.auth a { margin-left: 10px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 0 12px; background: #fff; border-bottom: 1px solid var(--line); }
.tabs a { padding: 12px 12px; text-decoration: none; color: var(--muted); white-space: nowrap; border-bottom: 3px solid transparent; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.trial-bar { margin: 0; padding: 8px 16px; background: #fff8e1; border-bottom: 1px solid #f0e0a8; font-size: .9rem; }
.viewas { background: #3b1f6e; color: #fff; padding: 8px 16px; } .viewas .link { color: #fff; }
main.page { max-width: 1040px; margin: 0 auto; padding: 16px; } main.wide { padding: 0; }
.foot { color: var(--muted); font-size: .85rem; text-align: center; padding: 24px 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 16px; }
.card.narrow { max-width: 460px; margin: 16px auto; }
.stack { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; } .row .grow { flex: 1 1 200px; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 500; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
input, select, textarea { font: inherit; padding: 10px 12px; border: 1px solid #b9c1cd; border-radius: 8px; background: #fff; min-height: 44px; width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; }
textarea { min-height: 90px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn, button { font: inherit; display: inline-block; padding: 10px 16px; min-height: 44px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; text-align: center; }
.btn.secondary, button.secondary { background: #fff; color: var(--accent-dark); }
.btn.danger, button.danger { background: var(--err); border-color: var(--err); }
.btn.small, button.small { padding: 6px 10px; min-height: 36px; font-size: .9rem; }
.btn.wide { width: 100%; } .btn.google { background: #fff; color: var(--ink); border-color: #b9c1cd; }
button.link { background: none; border: 0; color: var(--accent-dark); padding: 0; min-height: 0; text-decoration: underline; }
form.inline { display: inline; }
.muted { color: var(--muted); } .small { font-size: .875rem; }
.flash { padding: 10px 12px; border-radius: 8px; } .flash.ok { background: #e6f4ea; color: var(--ok); } .flash.error { background: #fdecea; color: var(--err); }
.flash.warn { background: #fff8e1; color: var(--warn); }
.plain { list-style: none; padding: 0; margin: 0 0 12px; } .plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.tag { display: inline-block; font-size: .75rem; padding: 2px 8px; border-radius: 99px; background: #eef1f5; color: var(--muted); }
.tag.on { background: #e6f4ea; color: var(--ok); } .tag.off { background: #fdecea; color: var(--err); } .tag.warn { background: #fff8e1; color: var(--warn); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.linkbox { border-top: 1px solid var(--line); padding-top: 12px; }
table.list { width: 100%; border-collapse: collapse; } table.list th, table.list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: .85rem; color: var(--muted); font-weight: 600; }
.scroller { overflow-x: auto; }
details.advanced { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: #fafbfc; }
details.advanced > summary { cursor: pointer; font-weight: 600; }
details.advanced[open] > summary { margin-bottom: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.tile h3 { margin: 0; } .tile .actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; } .stat b { display: block; font-size: 1.4rem; }
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; flex-wrap: wrap; } .steps li { padding: 4px 10px; border-radius: 99px; background: #eef1f5; font-size: .85rem; }
.steps li.on { background: var(--accent); color: #fff; }
.qr { max-width: 220px; background: #fff; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.qr svg, .qr img { width: 100%; height: auto; display: block; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; background: #f1f3f6; padding: 10px; border-radius: 8px; white-space: pre-wrap; word-break: break-all; }
.thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: #eef1f5; }
.cards-edit .tile { position: relative; }
@media (max-width: 640px) {
  table.list.stack-phone thead { display: none; }
  table.list.stack-phone tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.list.stack-phone td { display: block; border: 0; padding: 2px 0; }
}
.drop { outline: 3px dashed var(--accent); }
.gallery { display: grid; grid-template-columns: 220px 1fr; gap: 16px; }
.cats { display: flex; flex-direction: column; gap: 2px; } .cats a { padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.cats a[aria-current="page"] { background: var(--accent); color: #fff; }
.phone-thumb { height: 120px; border-radius: 10px; background: #f1f3f6; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.phone-thumb .bar { height: 12px; border-radius: 6px; background: #dfe3ea; } .phone-thumb .bar.accent { background: var(--accent); width: 60%; } .phone-thumb .bar.short { width: 40%; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.phone { border: 10px solid #222; border-radius: 28px; max-width: 320px; margin: 0 auto; background: #fff; }
.phone-screen { padding: 14px; min-height: 420px; }
.mini-card { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px; margin: 6px 0; font-size: .9rem; }
.mini-img { width: 44px; height: 44px; border-radius: 8px; background: var(--accent); opacity: .25; }
.mini-bar { background: var(--accent); color: #fff; text-align: center; border-radius: 10px; padding: 10px; font-weight: 700; }
.ribbon-mini { font-size: .75rem; color: var(--muted); }
@media (max-width: 760px) { .gallery, .two { grid-template-columns: 1fr; } .cats { flex-direction: row; overflow-x: auto; } .cats a { white-space: nowrap; } }
.flash.big { font-size: 1.3rem; padding: 18px; } .big { font-size: 1.2rem; }
.scanner video { width: 100%; max-width: 420px; border-radius: 12px; background: #000; }
