/* Direction C "Терминал" — warm off-white page, dark terminal panel for the expression,
   monospace accents, each cron field has its own colour (carried into the table and links).
   Dark mode via prefers-color-scheme. */
:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --surface-2: #f2f2ed;
  --text: #1a1c1e;
  --text-2: #5c6066;       /* 6.1:1 on --bg */
  --line: #e4e4dd;
  --accent: #11744f;       /* 5.7:1 on --bg */
  --accent-soft: #e3f3ea;
  --panel: #15171b;
  --panel-text: #eceef1;
  --panel-2: #9ea5ae;      /* 7:1 on --panel */
  --panel-line: #2a2e34;
  --f1: #ffc66d; --f2: #7fe0a8; --f3: #7cc6ff; --f4: #c9a8ff; --f5: #ff9cc6;   /* field colours, on dark */
  --d1: #b07400; --d2: #1d9a5a; --d3: #1f7fc4; --d4: #7c55d4; --d5: #b23a6f;   /* same hues for dots on light */
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, "Ubuntu Sans Mono", "Noto Sans Mono", monospace;
  --w: 740px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1113; --surface: #16191c; --surface-2: #1c2024; --text: #e7e9ec; --text-2: #a2a8b0;
    --line: #2a2e33; --accent: #57d3a5; --accent-soft: #15302a;
    --panel: #1a1e23; --panel-line: #2f343b;
    --d1: var(--f1); --d2: var(--f2); --d3: var(--f3); --d4: var(--f4); --d5: var(--f5);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.7 var(--sans); }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
code, pre, input { font-family: var(--mono); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 9; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.bar { max-width: 1080px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; gap: 32px; }
.site-header .bar { height: 72px; }
.brand { font: 700 17px var(--mono); color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: -.02em; }
.brand-mark { color: var(--accent); }
.nav { margin-right: auto; }
.nav a { color: var(--text); text-decoration: none; font-size: 16px; }
.nav a:hover { color: var(--accent); }
.langs { display: flex; font: 13px var(--mono); }
.langs a { color: var(--text-2); text-decoration: none; padding: 4px 8px; }
.langs a + a { border-left: 1px solid var(--line); }
.langs a[aria-current] { color: var(--accent); font-weight: 700; }
.site-footer { margin-top: 128px; border-top: 1px solid var(--line); }
.site-footer .bar { height: 88px; justify-content: space-between; font: 14px var(--mono); color: var(--text-2); }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* Page */
.page { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.crumbs ol { list-style: none; margin: 56px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font: 14px var(--mono); color: var(--text-2); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--text-2); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
h1 { font-size: clamp(36px, 5.4vw, 50px); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; margin: 16px 0 0; }
h2 { font-size: 24px; line-height: 1.3; letter-spacing: -.01em; margin: 0 0 28px; }
h2::before { content: "# "; font-family: var(--mono); color: var(--accent); font-weight: 500; }
h3 { font-size: 18px; line-height: 1.4; margin: 0 0 8px; }
.lead { font-size: 19px; margin: 40px 0 0; color: var(--text); }
.muted { color: var(--text-2); margin: 0 0 28px; }
.block { margin-top: 96px; }

/* Hero: terminal panel */
.hero { margin-top: 40px; background: var(--panel); color: var(--panel-text); border-radius: 16px; overflow: hidden; border: 1px solid var(--panel-line); }
.term-top { display: flex; justify-content: space-between; padding: 14px 24px; border-bottom: 1px solid var(--panel-line); font: 13px var(--mono); color: var(--panel-2); }
.term-body { padding: 36px 40px 28px; container-type: inline-size; }
.term-comment { margin: 0 0 18px; font: 16px var(--mono); color: var(--panel-2); }
.expr { --cmin: 3.2rem; --gap: clamp(8px, 3cqi, 28px); display: grid; grid-template-columns: repeat(5, minmax(var(--cmin, 0px), max-content)); justify-content: space-between; gap: var(--gap); max-width: 640px; }
.tok { display: flex; flex-direction: column; gap: 14px; }
.tok b { font-size: min(88px, calc((100cqi - 4 * var(--gap) - var(--n1, 3) * var(--cmin)) / (var(--c2, 4) * .6)), calc((100cqi - 4 * var(--gap)) / ((var(--n1, 3) + var(--c2, 4)) * .6))); line-height: .9; font-weight: 600; white-space: nowrap; }
.tok small { font: 13px/1.25 var(--sans); color: var(--panel-2); width: 0; min-width: 100%; max-width: 6.5em; overflow-wrap: anywhere; padding-top: 8px; border-top: 2px solid currentColor; }
.tok:nth-child(1) b, .tok:nth-child(1) small { color: var(--f1); }
.tok:nth-child(2) b, .tok:nth-child(2) small { color: var(--f2); }
.tok:nth-child(3) b, .tok:nth-child(3) small { color: var(--f3); }
.tok:nth-child(4) b, .tok:nth-child(4) small { color: var(--f4); }
.tok:nth-child(5) b, .tok:nth-child(5) small { color: var(--f5); }
.tok small { color: var(--panel-2) !important; border-top-color: currentColor; }
.tok:nth-child(1) small { border-top-color: var(--f1); }
.tok:nth-child(2) small { border-top-color: var(--f2); }
.tok:nth-child(3) small { border-top-color: var(--f3); }
.tok:nth-child(4) small { border-top-color: var(--f4); }
.tok:nth-child(5) small { border-top-color: var(--f5); }
.term-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 0 40px 32px; }
.copy {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; white-space: nowrap;
  font: 600 15px/1 var(--sans); color: #0d1f17; background: var(--f2); border: 0; border-radius: 10px; cursor: pointer;
}
.copy:hover { background: #a3ecc1; }
.copy:focus-visible { outline-color: var(--f2); }
.nowrap { white-space: nowrap; }
.term-alias { font: 14px var(--mono); color: var(--panel-2); }
.term-alias code { color: var(--panel-text); }

/* Fields table */
.table-wrap { overflow-x: auto; }
.fields { width: 100%; border-collapse: collapse; table-layout: fixed; }
.fields th { text-align: left; font: 500 14px/1.3 var(--sans); color: var(--text-2); padding: 0 10px 12px 0; vertical-align: top; }
.fields th::before { content: ""; display: block; width: 24px; height: 3px; border-radius: 2px; margin-bottom: 10px; background: var(--d1); }
.fields th:nth-child(2)::before { background: var(--d2); }
.fields th:nth-child(3)::before { background: var(--d3); }
.fields th:nth-child(4)::before { background: var(--d4); }
.fields th:nth-child(5)::before { background: var(--d5); }
.fields td { padding: 14px 10px 0 0; border-top: 1px solid var(--line); }
.fields .vals code { font-size: 28px; font-weight: 600; }
.fields .gloss td { border-top: 0; padding-top: 2px; font: 14px var(--mono); color: var(--text-2); }

/* Frequency */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.stats li { padding: 4px 0 4px 20px; border-left: 2px solid var(--line); }
.stats li:first-child { border-left-color: var(--accent); }
.stats b { display: block; font: 600 44px/1.05 var(--mono); letter-spacing: -.03em; }
.stats span { display: block; margin-top: 6px; color: var(--text-2); font-size: 15px; line-height: 1.35; }
.timeline { margin-top: 48px; }
.tl-cells { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; }
.tl-cells span { height: 36px; border-radius: 4px; background: var(--surface-2); }
.tl-cells span.on { background: var(--accent); opacity: .85; }
.tl-axis { display: flex; justify-content: space-between; margin-top: 8px; font: 12px var(--mono); color: var(--text-2); }
.times-label { margin: 32px 0 10px; color: var(--text-2); font-size: 15px; }
.times { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px 0; font: 15px/1.9 var(--mono); }

/* Checker block on schedule pages */
.checker { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 40px; }
.fld { display: flex; flex-direction: column; gap: 6px; font: 13px var(--mono); color: var(--text-2); }
.fld input, .fld select {
  height: 54px; width: 100%; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font-size: 16px;
}
.fld input { border-color: #b9bab2; }
.fld select { font-family: var(--sans); border-color: #b9bab2; }
@media (prefers-color-scheme: dark) { .fld input, .fld select { border-color: #4a5058; } }
.fld input:focus-visible, .fld select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.check-human.is-invalid { color: var(--d5); }
.check-more { margin: 20px 0 0; font-size: 15px; }
.check-more a { color: var(--accent); font-weight: 600; }
.warn[hidden] { display: none; }
.checker .muted { margin: 0 0 20px; }
.fld label { overflow-wrap: anywhere; }
.r-date { font: 15px var(--sans); }
.r-rel { font-size: 13px; color: var(--accent); }

/* FAQ */
.qa + .qa { margin-top: 40px; }
.qa p { margin: 0; }
.qa p code { font-size: .88em; background: var(--surface-2); padding: 2px 6px; border-radius: 5px; }
.code { margin: 16px 0 0; padding: 18px 22px; border-radius: 12px; background: var(--panel); color: var(--panel-text); font-size: 16px; overflow-x: auto; border: 1px solid var(--panel-line); }

.cta { margin-top: 64px; }
.cta a { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 10px; border: 1px solid var(--accent); font-weight: 600; text-decoration: none; }
.cta a:hover { background: var(--accent-soft); }

/* Link lists: expression first, like a crontab file */
.links { list-style: none; margin: 0; padding: 0; }
.links a { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); }
.links li:last-child a { border-bottom: 1px solid var(--line); }
.links code { order: -1; color: var(--accent); font-size: 16px; font-weight: 600; white-space: nowrap; }
.links a:hover .l-name { text-decoration: underline; text-underline-offset: 3px; }

/* Home */
.page-home h1 { margin-top: 80px; max-width: 15em; }
.home-tool { margin-top: 44px; display: flex; gap: 12px; align-items: flex-end; }
.home-tool .fld { flex: 1; }
.btn { font-family: var(--sans); display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 22px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--accent); }
.jump ul { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font: 14px var(--mono); }
.jump a { color: var(--text-2); }
.jump a::before { content: "→ "; color: var(--accent); }
.group { margin-top: 88px; }
.group-head { display: flex; align-items: baseline; gap: 12px; }
.group-head h2 { margin-bottom: 20px; }
.count { font: 13px var(--mono); color: var(--text-2); }
.links-home { columns: 2; column-gap: 40px; }
.links-home li { break-inside: avoid; }
.links-home a { grid-template-columns: 7.5em 1fr; }
.links-home.links-wide { columns: 1; }
.links-home.links-wide a { grid-template-columns: 9.5em 1fr; }
.hour-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.hour-grid a { display: flex; flex-direction: column; padding: 12px 12px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.hour-grid a:hover { border-color: var(--accent); }
.hour-grid b { font: 700 18px var(--mono); }
.hour-grid code { font-size: 11.5px; color: var(--text-2); }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .bar { padding: 0 20px; gap: 16px; }
  .site-header .bar { height: 60px; }
  .brand { font-size: 15px; gap: 6px; }
  .nav a { font-size: 15px; }
  .langs a { padding: 4px 5px; font-size: 12px; }
  .page { padding: 0 20px; }
  .crumbs ol { margin-top: 32px; font-size: 13px; }
  .lead { font-size: 18px; margin-top: 32px; }
  .block { margin-top: 72px; }
  h2 { font-size: 22px; margin-bottom: 22px; }
  .hero { margin-top: 28px; margin-left: -4px; margin-right: -4px; border-radius: 14px; }
  .term-top { padding: 12px 18px; }
  .term-body { padding: 24px 18px 22px; }
  .expr { gap: 8px; }
  .tok small { font-size: 11px; }
  .term-foot { padding: 0 18px 22px; gap: 14px; }
  .copy { flex: 1 0 auto; justify-content: center; }
  .fields th { font-size: 12px; }
  .fields th::before { width: 16px; }
  .fields .vals code { font-size: 22px; }
  .fields .gloss td { font-size: 12px; }
  .stats li { padding-left: 12px; }
  .stats b { font-size: 32px; }
  .stats span { font-size: 13px; }
  .tl-cells { gap: 2px; }
  .tl-cells span { height: 28px; border-radius: 3px; }
  .times { grid-template-columns: repeat(6, 1fr); font-size: 14px; }
  .checker { margin-left: -20px; margin-right: -20px; border-radius: 0; border-left: 0; border-right: 0; padding: 32px 20px; }
  .links a, .links-home a, .links-home.links-wide a { grid-template-columns: 1fr; gap: 0; }
  .links-home { columns: 1; }
  .home-tool { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .hour-grid { grid-template-columns: repeat(4, 1fr); }
  .hour-grid a { padding: 10px 10px 8px; }
  .hour-grid b { font-size: 16px; }
  .hour-grid code { font-size: 10.5px; }
  .page-home h1 { margin-top: 44px; }
  .site-footer { margin-top: 96px; }
  .site-footer .bar { flex-direction: column; justify-content: center; gap: 6px; height: 110px; }
}
.hour-grid { grid-template-columns: repeat(6, 1fr); }
.hour-grid code { white-space: nowrap; }
@media (max-width: 600px) {
  .hour-grid { grid-template-columns: repeat(4, 1fr); }
  .hour-grid a { padding: 10px 8px 8px; }
}
@media (max-width: 600px) {
  .links-home:not(.links-wide) { columns: 2; column-gap: 20px; }
  .links-home a { padding: 10px 0; }
  .links-home .l-name { font-size: 15.5px; line-height: 1.35; }
  .links-home code { font-size: 13px; }
}
.copy.is-done { background: #a3ecc1; }

/* Builder, text pages, contact */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-tool h1, .page-text h1, .page-contact h1 { margin-top: 24px; }
.expr-input {
  display: block; width: 100%; padding: 4px 0 12px; border: 0; border-bottom: 2px solid var(--f2); border-radius: 0;
  background: transparent; color: var(--panel-text); font-size: clamp(30px, 7vw, 52px); font-weight: 600; letter-spacing: -.02em;
}
.expr-input:focus-visible { outline: none; border-bottom-color: var(--f1); }
.ghost { height: 46px; padding: 0 20px; font: 600 15px/1 var(--sans); color: var(--panel-text); background: transparent; border: 1px solid var(--panel-line); border-radius: 10px; cursor: pointer; }
.ghost:hover { border-color: var(--panel-2); }
.page-text .lead { max-width: 38em; }
.contact-form { margin-top: 48px; display: grid; gap: 28px; max-width: 560px; }
.contact-form .fld { font: 14px var(--mono); }
.contact-form input, .contact-form textarea { width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid #b9bab2; background: var(--bg); color: var(--text); font: 17px var(--sans); }
.contact-form input { height: 54px; padding-top: 0; padding-bottom: 0; }
.contact-form textarea { resize: vertical; min-height: 160px; }
@media (prefers-color-scheme: dark) { .contact-form input, .contact-form textarea { border-color: #4a5058; } }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.has-error input, .has-error textarea { border-color: var(--d5); }
.field-error, .form-error { margin: 0; font: 14px var(--sans); color: var(--d5); }
.form-error { margin-top: 32px; }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; font-size: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.success { color: var(--accent); }

/* Error pages have no crumbs: keep the H1 clear of the header. */
.page > h1:first-child { margin-top: 56px; }
@media (max-width: 600px) {
  .page > h1:first-child { margin-top: 32px; }
  .expr { --cmin: 2.6rem; }
  .langs a, .site-footer a, .nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .jump a { display: inline-block; padding: 13px 0; }
  .brand { min-height: 44px; }
  .jump ul { margin-top: 28px; gap: 0 24px; }
}
@media (max-width: 360px) {
  /* the brand shows the full domain (CronHelper.com, owner 2026-10-21): squeeze gaps so the header still fits 320 */
  .bar { gap: 8px; }
  .brand { font-size: 13px; gap: 4px; letter-spacing: -.03em; }
  .site-header .nav a { font-size: 14px; }
  .langs a { padding: 4px 3px; }
  .expr { --cmin: 2.5rem; }
  .tok small { font-size: 10px; }
}

/* Checker: textarea, timezone, results (/cron and the schedule-page block) */
textarea.expr-input {
  resize: none; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.35;
  font-size: clamp(20px, 5.4vw, 32px); padding: 4px 0 12px; min-height: 1.35em;
}
textarea.expr-input::placeholder { color: var(--panel-2); font-weight: 400; font-size: 16px; }
.r-local { font-size: 13px; color: var(--text-2); }
.warn { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.warn li { position: relative; padding: 10px 14px 10px 40px; border-left: 3px solid var(--d1); border-radius: 0 10px 10px 0; background: var(--surface); font-size: 15.5px; line-height: 1.5; }
.warn li::before { content: "\26A0"; position: absolute; left: 13px; top: 9px; color: var(--d1); font-size: 17px; line-height: 1.5; }

/* Checker polish */
.is-warn { color: var(--d5); }
@media (max-width: 600px) {
  .check-more a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 600px) {
  .crumbs ol { align-items: center; margin-top: 20px; }
  .crumbs li { display: flex; align-items: center; min-height: 44px; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ===== /cron v2: one panel (input → meaning → next run → field tiles → Copy / Link), examples under it,
   results beside it on desktop. Design .claude/design/v2-cron on master. ===== */
.page-tool2 h1 { font-size: clamp(30px, 4.4vw, 44px); margin-top: 12px; max-width: 16em; }
.page-tool2 .lead { font-size: 17px; margin: 14px 0 0; color: var(--text-2); max-width: 36em; line-height: 1.55; }
.tool { margin-top: 28px; }
.tool-main, .tool-side { min-width: 0; }
.page-tool2 .narrow { max-width: 740px; }

/* terminal panel: the one input */
.hero2 { background: var(--panel); color: var(--panel-text); border: 1px solid var(--panel-line); border-radius: 16px; overflow: hidden; }
.hero2 .term-top { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 20px; height: 44px; border-bottom: 1px solid var(--panel-line); font: 13px var(--mono); color: var(--panel-2); }
.clear { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--panel-2); font: 13px var(--mono); cursor: pointer; }
.clear:hover { color: var(--panel-text); }
.hero2 .body { padding: 20px; }
.hero2 textarea.expr-input { font-size: clamp(26px, 7.4vw, 40px); padding: 2px 0 10px; transition: border-color .25s; }
.hero2 textarea.expr-input.is-flash { border-bottom-color: var(--f1); }
.hero2 textarea.expr-input.is-multi { font: 500 16px/1.6 var(--mono); letter-spacing: 0; }
.explain { margin: 14px 0 0; font: 16px/1.45 var(--mono); color: var(--f2); overflow-wrap: anywhere; }
.explain.is-warn { color: var(--f1); }
.explain.is-invalid { color: var(--f5); }
.explain:empty { display: none; }
.nextline { margin: 6px 0 0; font: 14px/1.45 var(--mono); color: var(--panel-2); }
.nextline time { font-weight: 700; color: var(--panel-text); }
.nextline em { font: inherit; color: var(--panel-2); white-space: nowrap; }
.hero2.is-multi .fields-wrap, .hero2.is-multi .nextline { display: none; }

/* field tiles = the builder: tap a tile, a native select opens with human options */
.fields-hint { margin: 20px 0 10px; font: 12.5px var(--mono); color: var(--panel-2); }
.ftoks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.ftok { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 9px 6px 10px; border-radius: 10px; border: 1px solid var(--panel-line); background: rgba(255,255,255,.035); line-height: 1.2; }
.ftok:hover { border-color: var(--panel-2); }
.ftok:focus-within { outline: 2px solid var(--c); outline-offset: 1px; }
.ftok i { font: normal 11px/1.2 var(--sans); color: var(--panel-2); min-height: calc(2.4em + 9px); }
.ftok i::before { content: ""; display: block; width: 18px; height: 3px; border-radius: 2px; background: var(--c); margin-bottom: 6px; }
.ftok b { display: flex; align-items: center; justify-content: space-between; gap: 2px; min-width: 0; font: 600 19px/1.1 var(--mono); color: var(--c); white-space: nowrap; overflow: hidden; }
.ftok b::after { content: "▾"; flex: none; font-size: 11px; color: var(--panel-2); }
.ftok small { font: 11.5px/1.25 var(--sans); color: var(--panel-text); opacity: .82; overflow-wrap: anywhere; min-height: 1.25em; }
.ftok select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.ftok.is-set { background: rgba(255,255,255,.07); }
.ftok.is-off b, .ftok.is-off small { opacity: .5; }
.ftok:nth-child(1) { --c: var(--f1); } .ftok:nth-child(2) { --c: var(--f2); } .ftok:nth-child(3) { --c: var(--f3); }
.ftok:nth-child(4) { --c: var(--f4); } .ftok:nth-child(5) { --c: var(--f5); }

.acts { display: flex; gap: 10px; margin-top: 20px; align-items: center; }
.acts .copy { flex: 1 1 auto; justify-content: center; height: 48px; }
.acts .ghost { height: 48px; flex: 0 0 auto; min-width: 7.5em; }
.ghost.is-done { border-color: var(--f2); color: var(--f2); }

/* examples: right under the panel */
.ex { margin-top: 22px; }
.ex[hidden] { display: none; }
.ex-label { margin: 0 0 10px; font: 13px var(--mono); color: var(--text-2); }
.ex-label b { color: var(--text); font-weight: 600; }
.ex-row { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -20px; padding: 2px 20px 8px; scroll-padding-left: 20px; scrollbar-width: none; }
.ex-row::-webkit-scrollbar { display: none; }
.exc { flex: 0 0 auto; scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 132px; min-height: 64px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.exc code { font: 600 15px/1.3 var(--mono); color: var(--accent); white-space: nowrap; }
.exc span { font: 14px/1.3 var(--sans); color: var(--text-2); white-space: nowrap; }
.exc:hover { border-color: var(--accent); }
.exc[aria-pressed="true"] { border: 2px solid var(--accent); padding: 9px 13px; background: var(--accent-soft); }
.exc[aria-pressed="true"] span { color: var(--text); }
.exc[aria-pressed="true"] code::after { content: " ✓"; }
.exc.exc-tab code { color: var(--text-2); font-weight: 500; }

/* results */
.res { margin-top: 44px; }
.res-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 14px; }
.res-head h2 { margin: 0; font-size: 22px; }
.tzline { display: inline-flex; align-items: baseline; gap: 6px; font: 13px var(--mono); color: var(--text-2); max-width: 100%; }
.tzline select { appearance: none; -webkit-appearance: none; max-width: 15em; border: 0; border-bottom: 1px dashed var(--text-2); border-radius: 0; background: transparent; color: var(--text); font: 13px var(--mono); padding: 10px 14px 4px 0; min-height: 40px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 3px top 20px, right 0 top 20px; background-size: 3px 3px; background-repeat: no-repeat; cursor: pointer; text-overflow: ellipsis; }
.tzline select option { background: var(--surface); color: var(--text); }
.res .warn { margin: 0 0 14px; }
.next { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 14px; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); }
.next[hidden] { display: none; }
.next .k { grid-column: 1 / -1; font: 12.5px var(--mono); color: var(--text-2); }
.next time { grid-row: span 2; font: 700 36px/1.1 var(--mono); letter-spacing: -.02em; }
.next .r-date { font-size: 16px; }
.next .r-rel { font: normal 14px var(--mono); color: var(--accent); }
.next .r-local { grid-column: 1 / -1; margin-top: 4px; }
.runs2 { list-style: none; margin: 10px 0 0; padding: 0; }
.runs2 li { display: grid; grid-template-columns: auto 1fr auto; gap: 0 14px; align-items: baseline; padding: 9px 2px; border-top: 1px solid var(--line); }
.runs2 li[hidden] { display: none; }
.runs2 li:last-child { border-bottom: 1px solid var(--line); }
.runs2 time { font: 700 16px var(--mono); }
.runs2 .r-date { font-size: 15px; }
.runs2 .r-rel { font: 13px var(--mono); white-space: nowrap; }
.runs2 .r-local { grid-column: 2 / -1; font-size: 13px; }
.runs2 li.none { display: block; color: var(--text-2); }
.more { margin-top: 6px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--accent); font: 600 15px var(--sans); cursor: pointer; }
.more[hidden] { display: none; }
.match2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.match2[hidden] { display: none; }
.match2:hover { border-color: var(--accent); }
.match2 small { display: block; font: 12.5px var(--mono); color: var(--text-2); }
.match2 .m-t { font-weight: 600; line-height: 1.4; }
.match2 code { color: var(--accent); font-weight: 600; white-space: nowrap; }
.match2::after { content: "→"; color: var(--accent); font-weight: 700; }

/* crontab (several lines): one compact row per line */
.sum { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 14px; font: 13.5px var(--mono); color: var(--text-2); }
.sum b { color: var(--text); }
.sum .wn { color: var(--d1); }
.sum .er { color: var(--d5); }
.lines { list-style: none; margin: 0; padding: 0; }
.lines > li { display: grid; grid-template-columns: 1.6em minmax(0, 1fr); gap: 0 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.lines > li:last-child { border-bottom: 1px solid var(--line); }
.lines .n { font: 13px/1.9 var(--mono); color: var(--text-2); }
.lines .e { display: block; font: 600 16px var(--mono); color: var(--accent); overflow-wrap: anywhere; }
.lines .c { font: 13px var(--mono); color: var(--text-2); overflow-wrap: anywhere; }
.lines .h { margin-top: 4px; font-size: 15.5px; line-height: 1.4; }
.lines .t { margin-top: 2px; font: 14px var(--mono); }
.lines .t em { font-style: normal; color: var(--accent); }
.lines .w { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.lines .w li { padding: 6px 10px; border-left: 3px solid var(--d1); background: var(--surface); border-radius: 0 8px 8px 0; font-size: 14.5px; line-height: 1.45; }
.lines .w li::before { content: "\26A0  "; color: var(--d1); }
.lines li.bad .e, .lines li.bad .h { color: var(--d5); }
.lines li.muted { padding: 8px 0; }
.lines li.muted .kind { display: inline-block; margin-right: 8px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; font: 12px var(--mono); color: var(--text-2); }
.lines li.muted .raw { font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; }

/* slim bar: only while the input and its meaning are not fully on screen (scrolled to the examples, results, FAQ) */
.minibar { position: fixed; left: 0; right: 0; top: 0; z-index: 9; display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 20px; background: var(--panel); color: var(--panel-text); border-bottom: 1px solid var(--panel-line); transform: translateY(-110%); transition: transform .18s; visibility: hidden; }
.minibar.on { transform: none; visibility: visible; }
.minibar div { flex: 1; min-width: 0; }
.minibar code { display: block; font: 600 18px/1.25 var(--mono); color: var(--panel-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.minibar span, .minibar em { display: block; font: normal 12.5px/1.35 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.minibar span { color: var(--f2); }
.minibar span.w { color: var(--f1); }
.minibar span.bad { color: var(--f5); }
.minibar em { color: var(--panel-2); }
.minibar em[hidden] { display: none; }
.minibar .copy { flex: none; height: 40px; padding: 0 14px; font-size: 14px; }
.minibar .copy.is-done { background: #a3ecc1; }

.page-tool2 #faq { margin-top: 88px; }

@media (min-width: 1000px) {
  .page.page-tool2 { max-width: 1080px; padding: 0 32px; }
  .page-tool2 .crumbs ol { margin-top: 48px; }
  .nextline { display: none; }
  .acts .copy { flex: 0 0 auto; padding: 0 28px; }
  .tool { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; margin-top: 36px; }
  .tool-side { position: sticky; top: 24px; }
  .res { margin-top: 0; }
  .hero2 .body { padding: 28px 32px; }
  .hero2 .term-top { padding-left: 32px; }
  .ftoks { gap: 10px; }
  .ftok { padding: 12px; }
  .ftok b { font-size: 24px; }
  .ftok small { font-size: 13px; }
  .ftok i { font-size: 12px; }
  .ex-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .exc { min-width: 0; }
  .exc span { white-space: normal; }
  .minibar { padding-left: max(32px, calc((100vw - 1016px) / 2)); padding-right: max(32px, calc((100vw - 1016px) / 2)); }
  .minibar div { display: flex; align-items: baseline; gap: 20px; }
  .minibar code { flex: none; max-width: 40%; }
}
@media (max-width: 600px) {
  .page-tool2 .crumbs ol { margin-top: 4px; }
  .hero2 { margin-left: -4px; margin-right: -4px; }
  .hero2 .body { padding: 18px 16px; }
  .hero2 .term-top { padding-left: 16px; }
  .page-tool2 .block { margin-top: 64px; }
}
@media (max-width: 360px) {
  .ftok { padding: 8px 4px; }
  .ftok b { font-size: 15px; }
  .ftok small { font-size: 10.5px; }
  .ftok i { font-size: 10px; }
}

/* schedule-page checker block: the status sits inside the input's frame, one-line runs, inline timezone */
.checker2 .in { border: 1px solid #b9bab2; border-radius: 12px; background: var(--bg); overflow: hidden; }
@media (prefers-color-scheme: dark) { .checker2 .in { border-color: #4a5058; } }
.checker2 .in:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.checker2 .in input { display: block; width: 100%; height: 58px; padding: 0 16px; border: 0; background: transparent; color: var(--text); font: 600 22px var(--mono); }
.checker2 .in input:focus-visible { outline: none; }
.checker2 .in p { margin: 0; padding: 10px 16px 12px; border-top: 1px solid var(--line); font: 15px/1.4 var(--mono); color: var(--accent); background: var(--surface); overflow-wrap: anywhere; }
.checker2 .in p.is-invalid { color: var(--d5); }
.checker2 .in p.is-warn { color: var(--d1); }
.checker2 .warn { margin: 16px 0 0; }
.checker2 .res-head { margin: 26px 0 6px; }
.checker2 .res-head h3 { margin: 0; font: 600 14px var(--mono); color: var(--text-2); }
.checker2 .runs2 { margin-top: 0; }
@media (max-width: 360px) {
  /* 4 columns of "0 13 * * *" don't fit a 320px phone (mobile emulation silently widened the page to 345px) */
  .hour-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
