/* Сайт Auto Highlight Words Everywhere — по образцу timersforslides.com (slides-timer/site/style.css). */
:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1c1f2a;
  --muted: #5f6577;
  --accent: #1f2a44;
  --accent-dark: #11182b;
  --accent-fg: #ffffff;
  --link: #2f5fd0;
  --sun: #ffd400;
  --star: #f5b400;
  --line: #e3e6ef;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12141b; --card: #1b1e28; --text: #eef0f6; --muted: #a0a6b8; --line: #2c3040;
    --accent: #ffd400; --accent-dark: #e6bf00; --accent-fg: #1f2a44; --link: #8fb0ff;
  }
}
:root[data-theme="dark"] {
  --bg: #12141b; --card: #1b1e28; --text: #eef0f6; --muted: #a0a6b8; --line: #2c3040;
  --accent: #ffd400; --accent-dark: #e6bf00; --accent-fg: #1f2a44; --link: #8fb0ff;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 24px 16px 48px;
}
a { color: var(--link); }
.wrap { max-width: 640px; margin: 0 auto; }
.wrap.wide { max-width: 820px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-top: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; color: var(--text); }
.brand .logo { width: 32px; height: 32px; border-radius: 8px; }
h1 { font-size: 30px; line-height: 1.2; margin: 6px 0 12px; }
h2 { font-size: 20px; margin: 24px 0 8px; }
.card > h1:first-child, .card > h2:first-child { margin-top: 0; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }
.hidden { display: none !important; }
ol.steps { padding-left: 22px; }
ol.steps li { margin: 10px 0; }
code { background: rgba(127,127,127,.14); padding: 2px 6px; border-radius: 6px; font-size: 15px; }
kbd { background: rgba(127,127,127,.14); border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; font-size: 14px; white-space: nowrap; }
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none; font-family: inherit;
  background: var(--accent); color: var(--accent-fg); font-weight: 600; font-size: 17px;
  padding: 12px 20px; border-radius: 10px; margin-top: 8px;
}
.btn:hover { background: var(--accent-dark); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.secondary:hover { border-color: var(--muted); }
label { display: block; font-weight: 600; margin: 16px 0 6px; }
input[type=text], input[type=email], textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px;
}
textarea { min-height: 120px; resize: vertical; }
.stars { display: flex; gap: 6px; font-size: 34px; line-height: 1; margin: 6px 0 4px; }
.stars button { background: none; border: 0; cursor: pointer; color: #c9ccd6; font-size: inherit; padding: 2px; }
.stars button.on { color: var(--star); }
.thanks { display: none; }
.foot { margin-top: 28px; font-size: 14px; color: var(--muted); }
.foot a { color: var(--muted); }

/* Welcome: закрепить значок */
.pin-card h1 { margin-top: 0; }
.shot { display: block; width: 100%; height: auto; border-radius: 12px; margin-top: 14px; border: 1px solid var(--line); }
.ci { width: 1.15em; height: 1.15em; vertical-align: -0.2em; fill: currentColor; opacity: .75; }
img.ci { opacity: 1; border-radius: 4px; }

/* Welcome: первый список и живой пример */
.make { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 6px; }
.make input[type=text] { flex: 1 1 260px; min-width: 0; }
.make .btn { margin-top: 0; }
.swatches { display: flex; gap: 8px; }
.swatches button { width: 34px; height: 34px; border-radius: 9px; border: 2px solid transparent; cursor: pointer; padding: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.swatches button[aria-pressed="true"] { border-color: var(--text); }
.status { min-height: 1.55em; font-weight: 600; margin: 6px 0 0; }
.status.ok { color: #2e7d32; }
.status.warn { color: #b26a00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .status.ok { color: #7fd48a; } :root:not([data-theme="light"]) .status.warn { color: #ffc266; } }
.sample-label { font-size: 14.5px; color: var(--muted); margin: 18px 0 6px; }
.sample { border: 1px dashed var(--line); border-radius: 10px; padding: 14px 16px; background: var(--bg); outline: none; }
.sample:focus { border-color: var(--muted); }
.sample p:last-child { margin-bottom: 0; }
.sample h3 { margin: 0 0 8px; font-size: 18px; }
.go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* Welcome: приёмы */
table.tricks { width: 100%; border-collapse: collapse; margin: 6px 0 12px; }
table.tricks td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tricks td:first-child { width: 42%; font-weight: 600; }
@media (max-width: 600px) {
  table.tricks td { display: block; width: auto !important; padding: 2px 0; border: 0; }
  table.tricks tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  h1 { font-size: 26px; }
  .card { padding: 22px 18px; }
}

/* Главная */
.hero-shot { display: block; width: 100%; height: auto; margin: 16px 0; }   /* рамка окна и тень уже в картинке */
ul.uses { padding-left: 22px; }
ul.uses li { margin: 6px 0; }
