/* TZMeet — styles. No external fonts, no images beyond the two brand PNGs. */

:root {
  --wrap: 1180px;
  --headw: 132px;
  --r: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Apple SD Gothic Neo",
          "Malgun Gothic", "Noto Sans KR", "Hiragino Kaku Gothic ProN", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

html[data-theme="dark"] {
  --bg: #0b1020;
  --bg2: #0e1428;
  --panel: #141b2f;
  --panel2: #1b2440;
  --text: #eef2fb;
  --muted: #aab5cd;
  --line: #29334d;
  --line2: #38436a;
  --brand: #8fb0ff;
  --brand-ink: #0a1024;
  --accent: #f0b45c;
  --ok: #58d0a4;
  --warn: #ffb4a2;
  --shadow: 0 18px 40px rgba(0, 0, 0, .38);
  --c-pref: #1f9d74;
  --c-pref-ink: #04120c;
  --c-work: #5b93df;
  --c-work-ink: #0a1526;
  --c-free: #7d89a6;
  --c-free-ink: #0b1020;
  --c-sleep: #1a2136;
  --c-sleep-ink: #d3dbee;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f7f5f0;
  --bg2: #efece4;
  --panel: #ffffff;
  --panel2: #f4f2ec;
  --text: #151a23;
  --muted: #4d5666;
  --line: #d9d4c9;
  --line2: #c3bdaf;
  --brand: #1f47b8;
  --brand-ink: #ffffff;
  --accent: #8a5a08;
  --ok: #146b4c;
  --warn: #a33a24;
  --shadow: 0 14px 30px rgba(23, 26, 33, .10);
  --c-pref: #7fd8b4;
  --c-pref-ink: #062018;
  --c-work: #a7c7f4;
  --c-work-ink: #0b1a33;
  --c-free: #e0e4eb;
  --c-free-ink: #1b2230;
  --c-sleep: #59637d;
  --c-sleep-ink: #f2f5fb;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin: 0 auto; }

.skip {
  position: absolute; left: 10px; top: -60px; z-index: 60;
  background: var(--panel); color: var(--text); padding: 10px 14px; border-radius: 8px;
  border: 1px solid var(--line2); text-decoration: none;
}
.skip:focus { top: 10px; }

/* ---------------------------------------------------------------- header */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.brand-sym { display: block; width: 26px; height: 26px; }
.brand-sym-light { display: none; }
html[data-theme="light"] .brand-sym-dark { display: none; }
html[data-theme="light"] .brand-sym-light { display: block; }
.brand-word { letter-spacing: -.02em; font-size: 17px; }
.brand-prod { font-size: 15px; color: var(--muted); font-weight: 600; padding-left: 8px; border-left: 1px solid var(--line2); }
.head-tools { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.head-link { color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.head-link:hover { color: var(--brand); }
.langs { display: flex; gap: 4px; align-items: center; }
.langs a {
  font-size: 13px; text-decoration: none; color: var(--muted);
  padding: 5px 8px; border-radius: 7px; border: 1px solid transparent;
}
.langs a:hover { color: var(--text); border-color: var(--line2); }
.langs a[aria-current="page"] { color: var(--text); border-color: var(--line2); background: var(--panel2); font-weight: 700; }
.icon-btn {
  background: var(--panel); color: var(--text); border: 1px solid var(--line2);
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.i-sun { display: none; }
html[data-theme="dark"] .i-sun { display: block; }
html[data-theme="dark"] .i-moon { display: none; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 44px 0 22px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--line2); border-radius: 999px; padding: 5px 12px; background: var(--panel);
}
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.12; letter-spacing: -.025em; margin: 16px 0 14px; }
.hero .lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); max-width: 62ch; margin: 0 0 20px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--brand); color: var(--brand-ink); border: 1px solid transparent;
  padding: 11px 18px; border-radius: 10px; font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer; font-family: inherit;
}
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line2); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn.small { padding: 7px 12px; font-size: 14px; }
.hero-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.stats { list-style: none; display: flex; flex-wrap: wrap; gap: 26px; padding: 22px 0 0; margin: 0; }
.stats li { min-width: 128px; }
.stats b { display: block; font-size: 22px; letter-spacing: -.02em; }
.stats span { font-size: 13.5px; color: var(--muted); }

/* ---------------------------------------------------------------- panels */
.panel, .section, #planner, #result, #timelineSec, #heatSec, #exportSec, #faqSec {
  scroll-margin-top: 84px;
}
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; margin: 20px 0; box-shadow: var(--shadow);
}
.panel > h2 { font-size: 21px; margin: 0 0 4px; letter-spacing: -.015em; }
.panel .sub { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }
.panel-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.panel-head h2 { margin: 0; font-size: 21px; }
.panel-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.fld { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); }
.fld > span:first-child { font-weight: 600; letter-spacing: .01em; }
input[type="text"], input[type="date"], input[type="time"], select, textarea {
  font-family: inherit; font-size: 14.5px; color: var(--text); background: var(--panel2);
  border: 1px solid var(--line2); border-radius: 9px; padding: 8px 10px; min-width: 0;
}
input[type="time"] { padding: 7px 6px; }
select { padding-right: 26px; }
input[aria-invalid="true"] { border-color: var(--warn); outline: 2px solid var(--warn); }
input[type="range"] { accent-color: var(--brand); width: 100%; }

.presets { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.chip {
  background: var(--panel2); color: var(--text); border: 1px solid var(--line2);
  border-radius: 999px; padding: 6px 12px; font-size: 13.5px; cursor: pointer; font-family: inherit;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }

.mem-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.mem { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.mem-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; min-width: 0; }
.mem-head .m-name { min-width: 0; }
.mem-head .m-name { font-weight: 700; font-size: 15px; background: transparent; border: 1px solid transparent; padding: 4px 6px; max-width: 240px; }
.mem-head .m-name:hover, .mem-head .m-name:focus { border-color: var(--line2); background: var(--panel); }
.mem-zone { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-left: auto;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-del {
  background: transparent; border: 1px solid var(--line2); color: var(--muted);
  width: 30px; height: 30px; border-radius: 8px; font-size: 18px; line-height: 1; cursor: pointer;
}
.m-del:hover { color: var(--warn); border-color: var(--warn); }
.mem-grid { display: grid; grid-template-columns: 1.5fr 1.3fr 1.3fr 1.3fr auto; gap: 10px; align-items: end; min-width: 0; }
.mem-grid .fld { min-width: 0; }
.pair { display: flex; gap: 4px; align-items: center; min-width: 0; }
.pair input { width: 0; flex: 1 1 0; min-width: 0; }
.fld-wk { flex-direction: row; align-items: center; gap: 7px; color: var(--text); font-size: 13.5px; padding-bottom: 8px; white-space: nowrap; }
.fld-wk input { width: 16px; height: 16px; accent-color: var(--brand); }
.mem-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.count { font-size: 13px; color: var(--muted); }

.dur-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.seg { display: inline-flex; background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; }
.seg button {
  background: transparent; color: var(--text); border: 0; padding: 8px 13px; font-size: 14px;
  cursor: pointer; font-family: inherit; font-weight: 600;
}
.seg button + button { border-left: 1px solid var(--line2); }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }

/* ---------------------------------------------------------------- best */
.best-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.best-card { border: 1px solid var(--line2); border-radius: 12px; padding: 14px; background: var(--panel2); }
.best-card header { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.best-card .rank { font-size: 12px; font-weight: 700; color: var(--accent); }
.best-card strong { font-size: 19px; letter-spacing: -.02em; }
.best-card .zone { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.best-card .score { margin-left: auto; font-weight: 800; font-size: 20px; }
.best-card .bar { height: 6px; background: var(--line); border-radius: 99px; margin: 10px 0 12px; overflow: hidden; }
.best-card .bar i { display: block; height: 100%; background: var(--accent); }
.best-card.great .bar i { background: var(--ok); }
.local { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 5px; font-size: 13.5px; }
.local li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.local .lname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.local .lclock { font-family: var(--mono); }
.tag { font-size: 11.5px; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line2); white-space: nowrap; }
.t-pref { background: var(--c-pref); color: var(--c-pref-ink); border-color: transparent; }
.t-work { background: var(--c-work); color: var(--c-work-ink); border-color: transparent; }
.t-free { background: var(--c-free); color: var(--c-free-ink); border-color: transparent; }
.t-sleep, .t-asleep { background: var(--c-sleep); color: var(--c-sleep-ink); border-color: transparent; }
.use { width: 100%; background: transparent; color: var(--brand); border: 1px solid var(--line2); border-radius: 9px; padding: 8px; font-weight: 700; cursor: pointer; font-family: inherit; font-size: 14px; }
.use:hover { border-color: var(--brand); }
.best-note { margin: 0 0 12px; font-size: 14.5px; color: var(--muted); }

/* ---------------------------------------------------------------- timeline */
.tl-scroll { overflow-x: auto; padding-bottom: 6px; }
#timeline { position: relative; min-width: 820px; --slots: 96; }
.tl-row { display: grid; grid-template-columns: var(--headw) 1fr; align-items: stretch; }
.tl-head { display: flex; flex-direction: column; justify-content: center; padding-right: 10px; font-size: 12.5px; overflow: hidden; }
.tl-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-off { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.tl-cells { display: grid; grid-template-columns: repeat(96, minmax(0, 1fr)); }
.cell {
  height: 30px; position: relative; border-right: 1px solid rgba(127, 137, 160, .12);
  display: flex; align-items: center; justify-content: center;
}
.tl-ruler .cell { height: 22px; border: 0; }
.cell.rul { font-size: 10.5px; color: var(--muted); font-family: var(--mono); }
.cell.odd.rul { color: var(--muted); }
.cell.c-pref { background: var(--c-pref); color: var(--c-pref-ink); }
.cell.c-work { background: var(--c-work); color: var(--c-work-ink); }
.cell.c-free { background: var(--c-free); color: var(--c-free-ink); }
.cell.c-sleep { background: var(--c-sleep); color: var(--c-sleep-ink); }
.cell.hr { border-left: 1px solid rgba(11, 16, 32, .28); }
.cell .ch { font-size: 9px; line-height: 1; font-family: var(--mono); opacity: .95; overflow: hidden; }
@media (max-width: 640px) { .cell .ch { font-size: 8px; } }
.tl-row:hover .cell { filter: brightness(1.05); }
.tl-band {
  position: absolute; top: 22px; bottom: 0; border: 2px solid var(--accent);
  border-radius: 7px; pointer-events: none; box-shadow: 0 0 0 2px rgba(240, 180, 92, .18);
}
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.lg-pref { background: var(--c-pref); }
.lg-work { background: var(--c-work); }
.lg-free { background: var(--c-free); }
.lg-sleep { background: var(--c-sleep); }
.tl-pick { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 16px; }
.tl-pick label { display: flex; align-items: center; gap: 10px; flex: 1 1 280px; font-size: 13.5px; color: var(--muted); }
.tl-pick input[type="range"] { flex: 1; }
.tl-pick b { font-family: var(--mono); font-size: 14px; color: var(--text); }

/* ---------------------------------------------------------------- heatmap */
.heat-grid { display: grid; grid-template-columns: 62px repeat(24, minmax(16px, 1fr)); gap: 2px; min-width: 560px; }
.heat-grid.month { grid-template-columns: 62px repeat(24, minmax(14px, 1fr)); }
.hhr { font-size: 10px; color: var(--muted); text-align: center; font-family: var(--mono); }
.hrow { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); }
.hdow { font-weight: 700; color: var(--text); }
.hnum { font-family: var(--mono); }
.hcell { height: 22px; border-radius: 4px; background: var(--hb0); }
.heat-grid.month .hcell { height: 14px; }
.b0 { background: var(--hb0); }
.b1 { background: var(--hb1); }
.b2 { background: var(--hb2); }
.b3 { background: var(--hb3); }
.b4 { background: var(--hb4); }
.b5 { background: var(--hb5); }
.b6 { background: var(--hb6); }
html[data-theme="dark"] {
  --hb0: #161d33; --hb1: #1e2f52; --hb2: #264a72; --hb3: #2f6b86;
  --hb4: #3f9276; --hb5: #79b25a; --hb6: #f0b45c;
}
html[data-theme="light"] {
  --hb0: #ecebe6; --hb1: #dfe6ee; --hb2: #c3d8e6; --hb3: #a3cdc6;
  --hb4: #86c4a4; --hb5: #a8cf6f; --hb6: #e8a93c;
}
.heat-legend { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.scale { display: inline-flex; gap: 2px; }
.scale i { width: 22px; height: 10px; border-radius: 2px; display: block; }

/* ---------------------------------------------------------------- export */
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.exp-grid > * { min-width: 0; }
.exp-grid .fld { margin-bottom: 12px; }
.ics-preview {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 12px;
  font-family: var(--mono); font-size: 11.5px; line-height: 1.55; overflow: auto; max-height: 210px;
  white-space: pre; margin: 0; color: var(--text); min-width: 0;
}
.share-row { display: flex; gap: 8px; margin-top: 6px; min-width: 0; }
.share-row input { flex: 1 1 0; width: 0; min-width: 0; font-family: var(--mono); font-size: 12px; }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.meta-line { font-size: 13.5px; color: var(--muted); margin: 0 0 8px; }
.copy-msg { font-size: 13px; color: var(--ok); margin-left: 8px; }

/* ---------------------------------------------------------------- content */
.section { margin: 34px 0; }
.section h2 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.02em; margin: 0 0 10px; }
.section .sub { color: var(--muted); margin: 0 0 18px; max-width: 70ch; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.step b { display: block; font-size: 15px; margin-bottom: 4px; }
.step span { font-size: 14px; color: var(--muted); }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 15.5px; }
.faq details p { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }
.grid-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.grid-links li { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0; }
.grid-links a { display: block; padding: 12px 14px; text-decoration: none; color: var(--text); font-size: 14.5px; }
.grid-links a:hover { color: var(--brand); }
.grid-links small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.note { background: var(--panel2); border-left: 3px solid var(--accent); border-radius: 8px; padding: 12px 14px; font-size: 14px; color: var(--muted); }
.note b { color: var(--text); }

/* ---------------------------------------------------------------- guides */
.guide-body { max-width: 76ch; }
.guide-body h2 { font-size: 24px; margin: 30px 0 10px; letter-spacing: -.02em; }
.guide-body h3 { font-size: 19px; margin: 22px 0 8px; }
.guide-body p { margin: 0 0 14px; }
.guide-body ul, .guide-body ol { margin: 0 0 16px; padding-left: 22px; }
.guide-body li { margin-bottom: 6px; }
.guide-body table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 14.5px; }
.guide-body th, .guide-body td { border: 1px solid var(--line2); padding: 8px 10px; text-align: left; vertical-align: top; }
.guide-body th { background: var(--panel2); }
.guide-body code { font-family: var(--mono); font-size: 13px; background: var(--panel2); padding: 1px 5px; border-radius: 4px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.crumbs a { color: var(--muted); }
.guide-meta { font-size: 13px; color: var(--muted); margin: 6px 0 20px; }
.cta-box { background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; padding: 18px; margin: 26px 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.cta-box p { margin: 0; font-size: 14.5px; color: var(--muted); max-width: 52ch; }
table.plain { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 6px 0 16px; }
table.plain th, table.plain td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
table.plain th { background: var(--panel2); }

/* ---------------------------------------------------------------- footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 40px; font-size: 13.5px; color: var(--muted); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--brand); }

.noscript { background: var(--panel2); border: 1px solid var(--warn); border-radius: 10px; padding: 14px; margin: 16px 0; }

@media (max-width: 900px) {
  .mem-grid { grid-template-columns: 1fr 1fr; }
  .fld-wk { grid-column: span 2; }
  .exp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .head-inner { flex-wrap: wrap; gap: 8px; padding: 8px 0; }
  .head-tools { gap: 8px; }
  .brand-prod { display: none; }
  .panel { padding: 16px; }
  .mem-grid { grid-template-columns: 1fr; }
  .fld-wk { grid-column: auto; }
  .hero { padding: 26px 0 8px; }
  .stats { gap: 16px; }
  .tl-scroll, .heat-scroll { margin: 0 -16px; padding: 0 16px; }
  .guide-body table, table.plain { display: block; overflow-x: auto; max-width: 100%; }
  .guide-body code { word-break: break-word; }
  .guide-body table th, .guide-body table td { min-width: 90px; }
}
.heat-scroll { overflow-x: auto; }
.swipe-hint { display: none; }
@media (max-width: 640px) { .swipe-hint { display: block; margin-top: 8px; } }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .site-head, .site-foot, .hero-cta, .btn, .use { display: none; }
  body { background: #fff; color: #000; }
  .panel { box-shadow: none; }
}

/* ================================================================ CronPulse */
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  border: 1px solid var(--line2); border-radius: 999px; padding: 4px 10px; color: var(--muted);
  background: var(--panel2); white-space: nowrap;
}
.badge.on { color: var(--brand); border-color: var(--brand); }
.cron-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.cron-bar .fld { flex: 1 1 260px; min-width: 0; }
.cron-bar input[type="text"] { width: 100%; }
.cron-bar input[type="text"] {
  font-family: var(--mono); font-size: 17px; letter-spacing: .02em; padding: 11px 12px;
}
.cron-desc {
  margin: 14px 0 0; font-size: 17px; font-weight: 650; color: var(--text);
  background: var(--panel2); border-left: 3px solid var(--accent); border-radius: 8px;
  padding: 11px 14px; min-height: 46px;
}
.cron-desc:empty { display: none; }
.err { color: var(--warn); font-size: 14px; margin: 8px 0 0; font-weight: 600; }
.err[hidden] { display: none; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; margin-top: 16px; }
.split > * { min-width: 0; }
.split h3, .panel h3 { font-size: 15px; margin: 0 0 8px; letter-spacing: .01em; }
table.fields { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.fields th, table.fields td { border: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top; }
table.fields th[scope="row"] { background: var(--panel2); width: 34%; font-weight: 650; }
table.fields td.mono { font-family: var(--mono); font-size: 12.5px; word-break: break-word; }
ol.next-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
ol.next-list li {
  display: flex; gap: 10px; align-items: baseline; background: var(--panel2);
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 13.5px;
}
ol.next-list .idx {
  font-family: var(--mono); font-size: 11.5px; color: var(--accent); min-width: 18px; font-weight: 700;
}
.dst-box { margin-top: 16px; }
ul.dst-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
ul.dst-list li { border-radius: 8px; padding: 8px 11px; border: 1px solid var(--line); background: var(--panel2); }
ul.dst-list .dst-skip { }
ul.dst-list li.dst-skip { border-left: 3px solid var(--warn); }
ul.dst-list li.dst-dup { border-left: 3px solid var(--accent); }
ul.dst-list li.dst-none { color: var(--muted); border-left: 3px solid var(--ok); }

.rrule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.rrule-grid .fld { min-width: 0; }
.chk-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chk-row label {
  display: inline-flex; align-items: center; gap: 5px; font-size: 13px; border: 1px solid var(--line2);
  border-radius: 8px; padding: 6px 9px; background: var(--panel2); cursor: pointer;
}
.chk-row input { accent-color: var(--brand); width: 15px; height: 15px; }
.code-out {
  display: block; width: 100%; background: var(--panel2); border: 1px solid var(--line2);
  border-radius: 10px; padding: 12px 14px; font-family: var(--mono); font-size: 14px;
  color: var(--text); overflow-x: auto; white-space: pre; margin: 0 0 12px;
}
.rr-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.rr-cols > * { min-width: 0; }
.ics-preview {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 12px;
  font-family: var(--mono); font-size: 11.5px; line-height: 1.55; overflow: auto; max-height: 300px;
  white-space: pre; margin: 0; color: var(--text); min-width: 0;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* timezone matrix */
.tz-scroll { overflow-x: auto; }
table.matrix { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
table.matrix th, table.matrix td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; white-space: nowrap; }
table.matrix thead th { background: var(--panel2); font-size: 12px; color: var(--muted); }
table.matrix tbody th { background: var(--panel2); font-weight: 650; }
table.matrix td { font-family: var(--mono); font-size: 12.5px; }

/* collision */
.job-form { display: grid; grid-template-columns: 1.1fr .8fr 1.4fr auto; gap: 10px; align-items: end; }
.job-form .fld { min-width: 0; }
ul.job-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; }
li.job {
  display: flex; gap: 10px; align-items: center; background: var(--panel2); border: 1px solid var(--line);
  border-radius: 9px; padding: 7px 10px; font-size: 13.5px; min-width: 0;
}
li.job .job-name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
li.job .job-expr { font-family: var(--mono); font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
li.job .m-del { margin-left: auto; }
.heat-scroll { overflow-x: auto; margin-top: 4px; }
table.heat-table { border-collapse: collapse; margin-top: 14px; font-size: 10px; }
table.heat-table th { color: var(--muted); font-weight: 600; font-family: var(--mono); padding: 2px; text-align: center; }
table.heat-table th.corner { width: 62px; }
table.heat-table tbody th { text-align: left; white-space: nowrap; padding: 2px 8px 2px 0; font-size: 11.5px; color: var(--muted); }
table.heat-table td.hcell { width: 26px; min-width: 26px; height: 24px; border-radius: 3px; border: 1px solid transparent; }
table.heat-table td.hcell[data-count="0"] { background: var(--hb0); }
.col-summary { font-size: 14.5px; margin: 14px 0 8px; color: var(--text); font-weight: 600; }
ul.col-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
ul.col-list li {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; font-size: 13.5px;
  background: var(--panel2); border: 1px solid var(--line); border-left: 3px solid var(--warn);
  border-radius: 8px; padding: 7px 10px;
}
ul.col-list li.col-none { border-left-color: var(--ok); color: var(--muted); }
ul.col-list li b { font-family: var(--mono); font-size: 12.5px; }
ul.col-list li small { margin-left: auto; color: var(--muted); font-family: var(--mono); }
.heat-legend { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }

@media (max-width: 900px) {
  .split, .rr-cols { grid-template-columns: 1fr; }
  .job-form { grid-template-columns: 1fr 1fr; }
  .job-form .fld:nth-child(3) { grid-column: span 2; }
}
@media (max-width: 640px) {
  .job-form { grid-template-columns: 1fr; }
  .job-form .fld:nth-child(3) { grid-column: auto; }
  .cron-desc { font-size: 15.5px; }
  table.fields { font-size: 12.5px; }
}
.guide-body pre {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 15px; overflow-x: auto; font-family: var(--mono); font-size: 13px;
  line-height: 1.55; margin: 6px 0 18px; color: var(--text);
}
.guide-body pre code { background: transparent; padding: 0; font-size: 13px; }
.guide-body blockquote {
  margin: 0 0 16px; padding: 10px 14px; border-left: 3px solid var(--accent);
  background: var(--panel2); border-radius: 8px; color: var(--muted); font-size: 14.5px;
}
.guide-body blockquote p:last-child { margin: 0; }
.srcList { font-size: 14px; }
.srcList li { margin-bottom: 5px; }
