/* toSlides global styles: fast, legible, responsive */
:root {
  --bg: #0b0d10;
  --bg-soft: #12151a;
  --text: #e8eef5;
  --muted: #a7b3c2;
  --primary: #5b9cff;
  --primary-700: #3f7ce3;
  --card: #0f1318;
  --border: #1a2029;
}
@media (prefers-color-scheme: light) {
  :root { --bg:#fcfdff; --bg-soft:#f5f8ff; --text:#0b1320; --muted:#5a677a; --card:#fff; --border:#e9eef6; }
}
html, body { height: 100%; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif; color: var(--text); background: var(--bg); }
.container { width: min(1100px, 92vw); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(15,19,24,.7); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
@media (prefers-color-scheme: light) {.site-header{background: rgba(255,255,255,.7);} }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.logo { font-weight: 800; letter-spacing: .2px; color: var(--text); text-decoration: none; font-size: 20px; }
.nav a { color: var(--text); text-decoration: none; margin: 0 10px; opacity: .9; }
.nav a:hover { opacity: 1; }
#theme-toggle { background: transparent; color: var(--text); border: 1px solid var(--border); padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.hero { padding: 48px 0 24px; text-align: center; }
.hero h1 { font-size: clamp(28px, 6vw, 44px); margin: 0 0 8px; }
.hero .sub { color: var(--muted); margin: 0 auto 16px; max-width: 680px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 20px 0 8px; }
.btn { display: inline-block; background: transparent; color: var(--text); border: 1px solid var(--border); padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.small { padding: 8px 12px; font-size: 14px; }
.ad-slot { border: 1px dashed var(--border); color: var(--muted); padding: 16px; border-radius: 10px; margin-top: 14px; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.cards .card { grid-column: span 12; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
@media (min-width: 720px) { .cards .card { grid-column: span 4; } }
.card h2 { margin: 0 0 6px; font-size: 20px; }
.list { grid-template-columns: repeat(12, 1fr); }
.list .list-item { grid-column: span 12; color: var(--text); text-decoration: none; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--card); }
@media (min-width: 720px) { .list .list-item { grid-column: span 4; } }
.promo { background: linear-gradient(180deg, var(--bg-soft), transparent); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 280px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner { padding: 18px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.nav.small a { font-size: 14px; color: var(--muted); }
.content { padding: 26px 0; }
.breadcrumbs { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.pro-badge { display: inline-block; background: #ffd54f; color: #3a2a00; padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: 12px; }

/* Tool shells */
.tool { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .tool { grid-template-columns: 1fr 1fr; } }
.tool .panel { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.tool .panel h3 { margin: 8px 8px 12px; }
.muted { color: var(--muted); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
label { font-weight: 600; }
input[type="number"], input[type="text"], textarea, select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
textarea { min-height: 300px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.help { font-size: 13px; color: var(--muted); }

/* Slides preview */
.slides-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #111; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; padding: 48px; overflow: auto; display: none; }
.slide.active { display: block; }
.slide.theme-light { background: #fff; color: #0b1320; }
.slide.theme-dark { background: #0b0d10; color: #e8eef5; }
.slide.theme-serif { font-family: Georgia, Cambria, "Times New Roman", serif; background: #fffdf8; color: #1a1a1a; }
.slide h1 { font-size: 48px; margin: 0 0 16px; }
.slide h2 { font-size: 36px; margin: 0 0 12px; }
.slide h3 { font-size: 26px; margin: 0 0 8px; }
.slide pre { background: #0b0d10; color: #e8eef5; padding: 12px; border-radius: 8px; overflow: auto; }
.slide blockquote { border-left: 4px solid var(--primary); margin: 8px 0; padding: 6px 12px; opacity: .9; }
.watermark { position: absolute; bottom: 10px; right: 12px; font-size: 12px; opacity: .5; }
.slides-controls { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: 8px; }
.slides-controls .left, .slides-controls .right { display: flex; gap: 8px; align-items: center; }
.kbd { font: 12px/1 ui-monospace, Menlo, Consolas, monospace; border: 1px solid var(--border); padding: 4px 6px; border-radius: 6px; color: var(--muted); }

/* Blog */
.post h1 { margin: 0 0 8px; }
.post .meta { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.post img { max-width: 100%; border-radius: 10px; border: 1px solid var(--border); }

