:root { --bg:#f6f7f9; --card:#fff; --text:#16181d; --muted:#5d6470; --line:#e3e6eb; --accent:#1b5e7f; }
@media (prefers-color-scheme: dark) {
  :root { --bg:#111317; --card:#1a1d23; --text:#eceef2; --muted:#9aa1ad; --line:#2a2e36; --accent:#5fb0d6; }
}
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; display:flex; flex-direction:column; background:var(--bg); color:var(--text);
       font:16px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; padding:0 20px; }
main { width:100%; max-width:760px; margin:0 auto; padding:12vh 0 48px; }
h1 { margin:0 0 20px; }
h1 img { display:block; width:min(260px,70vw); height:auto; border-radius:14px; margin:0 auto; }
h1.title { font-size:1.7rem; line-height:1.25; }
.back { margin:0 0 16px; font-size:.9rem; }
.back a { color:var(--accent); text-decoration:none; }
.back a:hover { text-decoration:underline; }
.lead { color:var(--muted); font-size:1.1rem; margin:0 auto 40px; max-width:52ch; text-align:center; }
.lead.left { text-align:left; margin-left:0; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; }
a.card { display:block; background:var(--card); border:1px solid var(--line); border-radius:14px; padding:24px;
         color:inherit; text-decoration:none; transition:border-color .15s, transform .15s; }
a.card:hover, a.card:focus-visible { border-color:var(--accent); transform:translateY(-2px); outline:none; }
.card h2 { margin:0 0 6px; font-size:1.2rem; display:flex; justify-content:space-between; align-items:center; gap:12px; }
.card h2::after { content:"→"; color:var(--accent); }
.card p { margin:0; color:var(--muted); font-size:.95rem; }
.card code { font-size:.85rem; color:var(--accent); }
.dash { width:100%; margin:0 auto 32px; padding-top:20px; }
.dash-head { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:4px 12px; margin:0 0 12px; }
.dash-head h1 { margin:0; font-size:1.4rem; line-height:1.3; }
.dash-head a { color:var(--accent); font-size:.9rem; text-decoration:none; }
.dash-head a:hover { text-decoration:underline; }
.dash iframe { display:block; width:100%; height:80vh; min-height:320px; border:1px solid var(--line);
               border-radius:14px; background:var(--card); overflow:hidden; transition:height .2s; }
footer { text-align:center; color:var(--muted); font-size:.85rem; padding:24px 0; margin-top:auto; }
