/* Dashboard pieces on top of brand.css */
body { font-size:15px; }
.wrap { max-width:980px; }
.narrow { max-width:460px; }
h1 { margin-bottom:6px; }
h2 { font-size:1.5rem; margin-bottom:12px; }
.card { margin-bottom:16px; }
.card .btn.secondary { color:var(--fg); }
.muted { color:var(--muted); }
.small { font-size:13px; }
.page-head { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; flex-wrap:wrap; margin:12px 0 22px; }
.back { display:inline-block; color:var(--muted); text-decoration:none; font-weight:500; margin:4px 0 10px; }
.back:hover { color:var(--accent); }

label { display:block; font-weight:600; margin:18px 0 6px; }
label .hint { font-weight:400; color:var(--muted); font-size:13px; display:block; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number] {
  width:100%; padding:12px 14px; border:1.5px solid var(--line); border-radius:10px; background:var(--bg); color:var(--fg); font:16px var(--body); }
input:focus { outline:none; border-color:var(--accent); }
input[type=color] { width:56px; height:44px; border:1.5px solid var(--line); border-radius:10px; background:var(--bg); padding:3px; }
.check { display:flex; gap:10px; align-items:flex-start; font-weight:400; }
.check input { margin-top:5px; accent-color:var(--accent); }
.errors { background:color-mix(in srgb, var(--bad) 10%, transparent); color:var(--bad); border-radius:10px; padding:10px 14px; margin-bottom:12px; }
.errors p { margin:4px 0; }

.row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.between { justify-content:space-between; }
.events { display:grid; gap:12px; }
.event-row { display:flex; justify-content:space-between; align-items:center; gap:12px; text-decoration:none; color:inherit; flex-wrap:wrap; margin:0; transition:border-color .15s; }
.event-row:hover { border-color:var(--accent); }
.event-row .title { font-family:var(--serif); font-size:1.6rem; line-height:1.1; }

.pill { display:inline-flex; align-items:center; gap:6px; border-radius:999px; padding:4px 12px; font:600 13px var(--display); letter-spacing:.08em; text-transform:uppercase; background:var(--soft); }
.pill::before { content:""; width:7px; height:7px; border-radius:50%; background:currentColor; }
.pill.ready { color:var(--ok); }
.pill.running, .pill.queued { color:var(--fg); }
.pill.running::before, .pill.queued::before { background:var(--red); animation:pulse 1.4s ease-in-out infinite; }
.pill.failed, .pill.stopped { color:var(--bad); }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.35; transform:scale(.7); } }
@media (prefers-reduced-motion: reduce) { .pill::before { animation:none !important; } }

.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:16px; }
.stat b { display:block; font:400 2.6rem/1 var(--serif); }
.stat span { font:600 13px var(--display); text-transform:uppercase; letter-spacing:.08em; }
.bar { height:10px; background:var(--soft); border-radius:99px; overflow:hidden; margin:12px 0 8px; }
.bar i { display:block; height:100%; background:var(--red); width:0; transition:width .5s; }
.copy { display:flex; gap:8px; }
.copy input { flex:1; min-width:0; }
.empty { text-align:center; padding:56px 22px; }
.empty p { max-width:28em; margin:10px auto 22px; }

.table { overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:14px; }
th { text-align:left; font:600 13px var(--display); color:var(--muted); text-transform:uppercase; letter-spacing:.08em; }
th, td { padding:11px 8px; border-bottom:1px solid var(--line); vertical-align:top; }
tr:last-child td { border-bottom:0; }
details summary { cursor:pointer; color:var(--muted); }
.logo-preview { background:var(--bg); border:1px dashed var(--line); border-radius:12px; padding:18px; display:grid; place-items:center; margin:6px 0 4px; }
.logo-preview img { max-height:56px; max-width:240px; width:auto; }
input.file { display:block; width:100%; padding:10px; border:1.5px dashed var(--line); border-radius:10px; background:var(--bg); font:15px var(--body); cursor:pointer; }
.hint-card { display:flex; justify-content:space-between; align-items:center; gap:14px; text-decoration:none; color:inherit; border-style:dashed; flex-wrap:wrap; }
.hint-card:hover { border-color:var(--accent); }
textarea { width:100%; padding:12px 14px; border:1.5px solid var(--line); border-radius:10px; background:var(--bg); color:var(--fg); font:16px var(--body); resize:vertical; }
textarea:focus { outline:none; border-color:var(--accent); }
.plans { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin:28px 0 16px; }
.plan h2 { font-size:2rem; margin:0 0 4px; }
.plan .price { margin:6px 0 14px; } .plan .price b { font:400 2.4rem/1 var(--serif); } .plan .price span { color:var(--muted); font-size:14px; }
.plan ul { padding-left:18px; margin:0; color:var(--muted); } .plan li { margin:6px 0; }
.plan.featured { border-color:var(--accent); }
@media (max-width:820px) { .plans { grid-template-columns:1fr; } }
.invite-box textarea { font-size:14px; }
