/* Panel8 app kit. Everything is namespaced p8app-; colors come from --p8app-accent / --p8app-ink set by the plugin. */
.p8app-banner, .p8app-toast, #p8app-page { --a: var(--p8app-accent, #d83c1d); --ai: var(--p8app-ink, #fff); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.p8app-banner { position: fixed; left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); max-width: 440px; margin: 0 auto; z-index: 2147483000; background: #fff; color: #1d1b1a; border-radius: 20px; padding: 16px 16px 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .28); border: 1px solid rgba(0, 0, 0, .08); transform: translateY(24px); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
.p8app-banner.on { transform: none; opacity: 1; }
.p8app-x { position: absolute; top: 6px; right: 8px; width: 34px; height: 34px; border: 0; background: transparent; font-size: 24px; line-height: 1; color: #6b6663; cursor: pointer; border-radius: 50%; }
.p8app-row { display: flex; gap: 12px; align-items: center; padding-right: 26px; }
.p8app-logo { width: 48px; height: 48px; border-radius: 12px; flex: none; object-fit: cover; background: #f4f1ee; }
.p8app-txt b { display: block; font-size: 16px; line-height: 1.25; }
.p8app-txt span { display: block; font-size: 13.5px; color: #55504d; margin-top: 2px; line-height: 1.35; }
.p8app-chk { display: flex; align-items: center; gap: 8px; margin: 12px 0 10px; font-size: 13.5px; color: #3a3634; cursor: pointer; }
.p8app-chk input { width: 18px; height: 18px; accent-color: var(--a); flex: none; margin: 0; }
.p8app-btns { display: flex; gap: 10px; }
.p8app-btn { flex: 1; min-height: 46px; border-radius: 14px; border: 1px solid rgba(0, 0, 0, .14); background: #fff; color: #1d1b1a; font: 600 15px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; cursor: pointer; padding: 0 14px; }
.p8app-btn.p8app-yes { background: var(--a); color: var(--ai); border-color: var(--a); flex: 1.4; }
.p8app-big { display: block; width: 100%; margin: 6px 0 14px; min-height: 50px; font-size: 16px; }
.p8app-toast { position: fixed; left: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top)); max-width: 440px; margin: 0 auto; z-index: 2147483000; display: flex; gap: 8px; align-items: center; background: #1d1b1a; color: #fff; padding: 12px 14px; border-radius: 16px; font-size: 14px; line-height: 1.35; box-shadow: 0 12px 34px rgba(0, 0, 0, .3); transform: translateY(-20px); opacity: 0; transition: transform .25s, opacity .25s; }
.p8app-toast.on { transform: none; opacity: 1; }
.p8app-toast span { flex: 1; }
.p8app-toast button { border: 0; background: transparent; color: #fff; font-size: 22px; cursor: pointer; }
.p8app-flink { display: block; text-align: center; padding: 14px 12px; font-size: 14px; font-weight: 600; color: inherit; text-decoration: underline; opacity: .85; }

@media (min-width: 820px) { .p8app-banner { left: auto; right: 22px; bottom: 22px; margin: 0; width: 380px; } }

/* install page */
body.p8app-body { margin: 0; background: #faf7f4; color: #1d1b1a; }
#p8app-page { max-width: 620px; margin: 0 auto; padding: 24px 18px calc(40px + env(safe-area-inset-bottom)); }
#p8app-page .p8app-head { text-align: center; }
#p8app-page .p8app-head .p8app-logo { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 10px; display: block; }
#p8app-page h1 { font-size: 26px; line-height: 1.15; margin: 0 0 8px; }
#p8app-page h2 { font-size: 18px; margin: 0 0 6px; }
#p8app-page p { margin: 0 0 12px; line-height: 1.5; color: #4a4542; }
.p8app-perks { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 8px; }
.p8app-perks li { background: #fff; border-radius: 14px; padding: 12px 14px 12px 42px; position: relative; border: 1px solid rgba(0, 0, 0, .06); font-size: 15px; }
.p8app-perks li::before { content: "\2713"; position: absolute; left: 14px; top: 11px; width: 20px; height: 20px; border-radius: 50%; background: var(--a); color: var(--ai); font-size: 12px; display: grid; place-items: center; }
.p8app-warn { background: #fff4d6; border: 1px solid #f0d27a; color: #5b4300; padding: 12px 14px; border-radius: 14px; font-size: 14px; margin-bottom: 14px; line-height: 1.45; }
.p8app-tabs { display: flex; gap: 6px; background: #ece7e2; padding: 4px; border-radius: 14px; margin: 14px 0; }
.p8app-tabs button { flex: 1; border: 0; background: transparent; padding: 10px 6px; border-radius: 10px; font: 600 14px/1.1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #4a4542; cursor: pointer; }
.p8app-tabs button[aria-selected="true"] { background: #fff; color: #1d1b1a; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.p8app-pane[hidden] { display: none; }
.p8app-note { font-size: 14px; }
.p8app-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 10px; }
.p8app-steps li { counter-increment: s; background: #fff; border-radius: 14px; padding: 14px 14px 14px 52px; position: relative; border: 1px solid rgba(0, 0, 0, .06); font-size: 15.5px; line-height: 1.45; }
.p8app-steps li::before { content: counter(s); position: absolute; left: 14px; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: var(--a); color: var(--ai); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.p8app-ic { width: 22px; height: 22px; vertical-align: -5px; color: #0a7cff; margin: 0 2px; }
.p8app-after { margin-top: 20px; background: #fff; border-radius: 16px; padding: 16px; border: 1px solid rgba(0, 0, 0, .06); }
.p8app-foot { text-align: center; margin-top: 22px; font-size: 14px; }
.p8app-foot a { color: inherit; font-weight: 600; }
.p8app-lang { border: 0; background: transparent; text-decoration: underline; font: inherit; color: inherit; cursor: pointer; }
@media (prefers-color-scheme: dark) {
  body.p8app-body { background: #151311; color: #f3efec; }
  #p8app-page p, .p8app-note { color: #c9c3be; }
  .p8app-perks li, .p8app-steps li, .p8app-after { background: #1f1c1a; border-color: rgba(255, 255, 255, .08); }
  .p8app-tabs { background: #252220; } .p8app-tabs button { color: #c9c3be; } .p8app-tabs button[aria-selected="true"] { background: #353130; color: #fff; }
  .p8app-ic { color: #6db3ff; }
}
