/* WASecret design apps: shared "Bloom" look (same tokens as the site and the PDF editor). */
:root {
  --bg: #f3f4fb; --bar: #ffffff; --line: #e3e6f0; --fg: #1b2133; --muted: #6a7389;
  --accent: #5b4cf0; --accent-2: #2f80ff; --grad: linear-gradient(135deg, #2f80ff 0%, #5b4cf0 55%, #a64bf4 100%);
  --sel: #5b4cf0; --hover: rgba(91, 76, 240, .1); --radius: 12px; --shadow: 0 1px 2px rgba(27, 33, 51, .06), 0 8px 24px rgba(27, 33, 51, .08);
  --ease: cubic-bezier(.2, .8, .2, 1);
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--fg);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); }
.ad-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 14px; background: var(--bar); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.ad-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; color: var(--fg); text-decoration: none; }
.ad-brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--grad); color: #fff; font-weight: 800; }
.btn { border: 1px solid var(--line); background: #fff; color: var(--fg); border-radius: 10px; padding: 7px 12px; font: inherit; cursor: pointer; transition: background .15s, border-color .15s, transform .15s var(--ease); }
.btn:hover { background: #f5f4ff; border-color: #cfc9ff; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; font-weight: 650; box-shadow: 0 6px 16px rgba(91, 76, 240, .3); }
.btn.on { background: #efedff; border-color: var(--sel); color: var(--accent); }
.btn:focus-visible { outline: 2px solid var(--sel); outline-offset: 2px; }
.ad-input, input[type=text].ad-input, select.ad-input, textarea.ad-input { border: 1px solid #d9dcea; border-radius: 10px; padding: 8px 10px; font: inherit; background: #fff; }
.ad-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 14px; }
.ad-tabs { display: inline-flex; gap: 4px; padding: 4px; background: #f1f2f8; border-radius: 12px; }
.ad-tabs button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; font: 600 13px/1 system-ui, sans-serif; color: var(--muted); cursor: pointer; }
.ad-tabs button.on { background: #fff; color: var(--fg); box-shadow: 0 1px 4px rgba(27, 33, 51, .12); }
.ad-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--fg); color: #fff; padding: 11px 18px; border-radius: 14px; z-index: 60; max-width: calc(100vw - 32px); box-shadow: 0 12px 30px rgba(27, 33, 51, .3); pointer-events: none; }
.ad-soon { text-align: center; padding: 28px 18px; border: 2px dashed #d9d4ff; border-radius: 18px; background: linear-gradient(180deg, #fff, #f8f7ff); }
.ad-soon h3 { margin: 10px 0 6px; } .ad-soon p { margin: 4px auto; max-width: 520px; color: var(--muted); }
.ad-soon-badge { display: inline-block; background: var(--grad); color: #fff; font: 700 12px/1 system-ui, sans-serif; padding: 6px 10px; border-radius: 999px; }
dialog { border: 0; border-radius: 20px; padding: 0; box-shadow: 0 30px 80px rgba(27, 33, 51, .3); max-width: calc(100vw - 32px); }
dialog::backdrop { background: rgba(27, 33, 51, .35); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
