:root {
  --bg: #0b0b12;
  --card: #17172a;
  --line: #2a2a40;
  --text: #f4f3fa;
  --muted: #9c9ab0;
  --accent: #7f77dd;
  --accent-soft: #b9b2ff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent-soft); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
header { padding: 22px 0; }
header .wrap { display: flex; align-items: center; gap: 10px; }
header img { width: 32px; height: 32px; border-radius: 8px; }
header a.brand { color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.hero { padding: 48px 0 32px; }
.hero .badge { margin-bottom: 14px; }
.hero h1 { font-size: clamp(32px, 7vw, 52px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p { color: var(--muted); font-size: 19px; margin: 0 0 28px; }
.badge { display: inline-block; background: var(--card); border: 1px solid var(--line); color: var(--accent-soft); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 24px 0 48px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
h2 { font-size: 24px; margin: 40px 0 12px; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; }
.doc p, .doc li { color: #d6d4e6; }
.doc .updated { color: var(--muted); }
footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }

/* ---- shared layout (2026-11-16) ---- */
img { max-width: 100%; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 9; }
header { padding: 14px 0; border-bottom: 1px solid var(--line); }
header .wrap { flex-wrap: wrap; justify-content: space-between; row-gap: 8px; }
header a.brand { display: flex; align-items: center; gap: 10px; }
header nav { display: flex; gap: 4px; flex-wrap: wrap; margin-right: -10px; }
header nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 10px; border-radius: 8px; }
header nav a:hover, header nav a[aria-current="page"] { color: var(--text); background: var(--card); }
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; border: 0; border-radius: 12px; padding: 12px 18px; font-size: 16px; cursor: pointer; font-family: inherit; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent-soft); border: 1px solid var(--line); }
.btn:disabled { opacity: .5; cursor: default; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
h1 { line-height: 1.15; letter-spacing: -0.01em; }
.doc h1, .tool h1 { font-size: clamp(28px, 6vw, 40px); margin: 32px 0 12px; }
.lede { font-size: 19px; color: var(--muted); }
.crumbs { margin-top: 24px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs + h1 { margin-top: 8px; }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.path { display: inline; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 15px; color: var(--text); }
.note { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 14px 16px; margin: 20px 0; }
.note p { margin: 0; }
.note p + p { margin-top: 8px; }
.answer { background: linear-gradient(180deg, #1d1a38, var(--card)); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 18px 0 8px; }
.answer p { margin: 0; color: var(--text); }
table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 15px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 9px 8px; vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.tablewrap { overflow-x: auto; }
.cta { background: linear-gradient(160deg, #241f4d, #17172a 70%); border: 1px solid #3a3466; border-radius: 18px; padding: 24px 22px; margin: 48px 0 0; }
.cta h2 { margin: 12px 0 8px; font-size: 24px; }
.cta p { color: #d6d4e6; margin: 0 0 18px; }
.cta ul { margin: 0 0 18px; padding-left: 20px; color: #d6d4e6; }
.cta .stores { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.cta .store { border: 1px dashed #4a4480; border-radius: 10px; padding: 8px 12px; font-size: 14px; color: var(--accent-soft); }
.related { margin-top: 40px; }
.related ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.related a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--text); font-weight: 600; }
.related a:hover { border-color: var(--accent); }
.guide-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.guide-list a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-decoration: none; }
.guide-list a:hover { border-color: var(--accent); }
.guide-list strong { color: var(--text); display: block; font-size: 17px; }
.guide-list span { color: var(--muted); font-size: 15px; }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { border-color: var(--accent); }
a.card .go { color: var(--accent-soft); font-weight: 600; font-size: 15px; margin-top: 8px; display: block; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  header nav a { padding: 6px 8px; font-size: 14px; }
  .hero { padding: 32px 0 20px; }
}

/* ---- watch history viewer ---- */
.drop { border: 2px dashed #3a3466; border-radius: 18px; padding: 28px 20px; text-align: center; background: var(--card); margin: 20px 0; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--accent); background: #1d1a38; }
.drop p { margin: 8px 0 0; }
.drop input { display: none; }
.status { margin: 12px 0; min-height: 1.6em; }
.status.err { color: #ff9b9b; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 16px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stat b { display: block; font-size: 24px; }
.stat span { color: var(--muted); font-size: 13px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 18px 0 12px; padding-bottom: 4px; }
.tabs button { background: var(--card); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 8px 14px; font: 600 14px/1 inherit; font-family: inherit; white-space: nowrap; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filters input { flex: 1 1 180px; min-width: 0; background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 16px; }
.filters input[type="date"] { flex: 0 1 170px; color-scheme: dark; }
.day { margin: 18px 0 6px; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; position: sticky; top: 0; background: var(--bg); padding: 6px 0; z-index: 1; }
.day span { color: var(--muted); font-weight: 500; font-size: 14px; }
.items { list-style: none; padding: 0; margin: 0; }
.items li { display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding: 9px 2px; font-size: 15px; }
.items time { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 52px; font-size: 14px; }
.items a { overflow-wrap: anywhere; }
.items .term { color: var(--text); overflow-wrap: anywhere; }
.more { margin: 16px 0; text-align: center; }
.months { display: flex; align-items: flex-end; gap: 3px; height: 90px; margin: 8px 0 4px; }
.months div { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; }
.months-l { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
[hidden] { display: none !important; }

/* ---- demo ---- */
.phone { max-width: 400px; margin: 24px auto; background: #101019; border: 1px solid var(--line); border-radius: 28px; padding: 18px 16px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.demo-badge { display: inline-block; background: var(--card); border-radius: 8px; padding: 4px 10px; color: var(--accent-soft); font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.dcard { background: var(--card); border-radius: 16px; padding: 18px; margin-bottom: 14px; }
.dbig { font-size: 56px; font-weight: 700; letter-spacing: -1px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.years { display: flex; align-items: flex-end; gap: 10px; margin-top: 16px; height: 110px; }
.years > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.years i { display: block; width: 30px; background: var(--accent); border-radius: 4px; transition: height .2s; }
.years small { color: var(--muted); font-size: 11px; margin-top: 2px; line-height: 1.3; }
.drow { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid transparent; border-radius: 14px; padding: 10px; margin-bottom: 8px; }
.drow.on { border-color: var(--accent); }
.thumb { width: 40px; height: 54px; border-radius: 6px; flex: none; }
.drow .t { flex: 1; min-width: 0; font-size: 14px; }
.drow .t b { display: block; font-size: 15px; }
.drow .t span { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lock { background: transparent; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 7px 12px; font: 600 13px/1 inherit; font-family: inherit; cursor: pointer; }
.drow.on .lock { background: var(--accent); border-color: var(--accent); }
.progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 12px; }
.progress i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .12s linear; }
.chart { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 14px 0; }
.chart h3 { margin: 0 0 4px; font-size: 16px; }
.toplist { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.toplist li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.toplist li::before { counter-increment: t; content: counter(t) "."; color: var(--muted); min-width: 24px; }
.toplist .term { flex: 1; }
.comments { list-style: none; padding: 0; }
.comment { border-bottom: 1px solid var(--line); padding: 12px 0; }
.comment p { margin: 0 0 4px; overflow-wrap: anywhere; }
.check { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 20px 0; font-size: 15px; }
.toc ol { margin: 8px 0 0; padding-left: 20px; }
.toc li { margin: 3px 0; }
.toc a { text-decoration: none; }
h2[id] { scroll-margin-top: 16px; }
.langs { display: flex; gap: 6px 14px; flex-wrap: wrap; margin: 0 0 12px; }
.langs a[aria-current="page"] { color: var(--text); font-weight: 600; text-decoration: none; }
/* app screenshots */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 24px 0; align-items: start; }
.shots-1 { grid-template-columns: minmax(0, 300px); justify-content: center; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid #3a3466; background: #101019; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.shots figcaption { color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 8px; }
.shots-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; }
@media (max-width: 560px) {
  .shots:not(.shots-1) { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px; margin-right: -16px; padding-right: 16px; }
  .shots:not(.shots-1) figure { flex: 0 0 70%; scroll-snap-align: start; }
  .shots:not(.shots-1) .shots-note { flex: 0 0 100%; display: none; }
  .shots-1 img { max-width: 300px; margin: 0 auto; }
}
