:root {
  --ink: #22272c;
  --ink-soft: #5f666d;
  --paper: #f4f5f2;
  --surface: #ffffff;
  --rail: #252a2e;
  --line: #d9ddd7;
  --yellow: #e3b505;
  --yellow-dark: #8c6d00;
  --green: #207557;
  --red: #a83e37;
  --blue-grey: #607886;
  --radius: 10px;
  font-family: "Segoe UI Variable", "Aptos", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--paper); }
button, input, select { font: inherit; }
a { color: inherit; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 20px 22px; background: var(--rail); color: #f7f7f3; display: flex; flex-direction: column; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; margin-bottom: 52px; }
.brand b, .brand small { display: block; }
.brand b { font-size: 1.05rem; letter-spacing: -.02em; }
.brand small { margin-top: 2px; color: #aeb5b8; }
.brand-pulse { width: 19px; height: 19px; border: 5px solid var(--yellow); border-radius: 50%; position: relative; }
.brand-pulse::after { content: ""; position: absolute; width: 2px; height: 7px; background: var(--yellow); left: 4px; top: -3px; transform-origin: bottom; transform: rotate(35deg); }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a { padding: 10px 12px; border-radius: 7px; color: #cdd2d4; text-decoration: none; }
.sidebar nav a:hover, .sidebar nav a:focus-visible { background: #343a3f; color: white; }
.sidebar nav a.active { color: #16191b; background: var(--yellow); font-weight: 700; }
.account { margin-top: auto; padding-top: 20px; border-top: 1px solid #454b50; }
.account small, .account strong { display: block; }
.account small { color: #aeb5b8; margin-bottom: 4px; }
.account form { margin-top: 8px; }
.content { width: min(1180px, 100%); padding: 46px clamp(24px, 5vw, 72px) 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.page-head h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.35rem); line-height: .98; letter-spacing: -.055em; font-weight: 720; }
.page-head p { margin: 12px 0 0; color: var(--ink-soft); }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; border: 1px solid transparent; border-radius: 7px; text-decoration: none; cursor: pointer; font-weight: 650; }
.button.primary { background: var(--yellow); color: #17191b; border-color: #c99f00; }
.button.primary:hover, .button.primary:focus-visible { background: #f0c928; }
.button.quiet { background: var(--surface); border-color: var(--line); color: var(--ink); }
.button.quiet:hover, .button.quiet:focus-visible { border-color: #858d92; }
.text-button { border: 0; padding: 0; background: none; color: #ccd1d3; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.content .text-button { color: var(--ink-soft); }
.text-button.danger { color: var(--red); }
.job-list { border-top: 1px solid var(--line); }
.job { display: grid; grid-template-columns: 170px minmax(260px, 1fr) auto; gap: 28px; align-items: center; padding: 25px 0; border-bottom: 1px solid var(--line); }
.job.paused { opacity: .65; }
.job-time span, .job-time small { display: block; }
.job-time span { font-variant-numeric: tabular-nums; font-weight: 720; }
.job-time small { color: var(--ink-soft); margin-top: 4px; }
.job-title { display: flex; gap: 10px; align-items: center; }
.job h2 { margin: 0; font-size: 1.15rem; }
.target { color: var(--ink-soft); margin: 7px 0 0; overflow-wrap: anywhere; }
.schedule { margin: 8px 0 0; font-weight: 650; }
.status { width: 9px; height: 9px; border-radius: 50%; background: var(--blue-grey); flex: none; }
.status.success { background: var(--green); }
.status.failed { background: var(--red); }
.status.paused { background: #8b9094; }
.job-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.job-actions form { margin: 0; }
.empty { min-height: 320px; display: grid; place-content: center; justify-items: start; max-width: 620px; }
.empty h2 { font-size: 1.6rem; margin: 0; }
.empty p { color: var(--ink-soft); line-height: 1.6; }
.timeline-empty { position: relative; padding-left: 58px; border-left: 2px solid var(--line); }
.timeline-empty .tick { position: absolute; left: -9px; top: 50%; width: 16px; height: 16px; background: var(--yellow); border: 4px solid var(--paper); outline: 2px solid var(--yellow-dark); border-radius: 50%; }
.notice { max-width: 850px; padding: 13px 16px; border-left: 4px solid var(--blue-grey); background: var(--surface); margin-bottom: 22px; }
.notice.success { border-color: var(--green); }
.notice.error { border-color: var(--red); }
.back { display: inline-block; margin-bottom: 20px; color: var(--ink-soft); }
.editor { max-width: 850px; }
.editor section { padding: 28px 0; border-top: 1px solid var(--line); }
.editor h2 { margin: 0 0 20px; font-size: 1.2rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; }
label { display: grid; gap: 7px; font-weight: 650; }
input, select { width: 100%; min-height: 44px; padding: 9px 11px; color: var(--ink); background: var(--surface); border: 1px solid #bfc5bf; border-radius: 6px; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(227,181,5,.45); outline-offset: 2px; }
.hint { color: var(--ink-soft); font-size: .92rem; line-height: 1.55; }
.schedule-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: block; padding: 13px 10px; text-align: center; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; cursor: pointer; }
.choice input:checked + span { color: #17191b; background: var(--yellow); border-color: #c99f00; }
.choice input:focus-visible + span { outline: 3px solid rgba(227,181,5,.45); outline-offset: 2px; }
.schedule-fields { display: grid; grid-template-columns: repeat(2, minmax(160px, 260px)); gap: 18px; margin-top: 20px; }
.schedule-fields [hidden] { display: none; }
.switch { display: flex; align-items: center; gap: 10px; margin: 22px 0; }
.switch input { width: 20px; min-height: 20px; }
.form-actions { display: flex; gap: 10px; }
.danger-zone { max-width: 850px; margin-top: 35px; padding-top: 22px; border-top: 1px solid #e0c7c5; }
.history-table { overflow-x: auto; border-top: 2px solid var(--ink); }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: .85rem; color: var(--ink-soft); }
td { font-variant-numeric: tabular-nums; }
td small { display: block; color: var(--ink-soft); margin-top: 4px; max-width: 300px; overflow-wrap: anywhere; }
.result { font-weight: 700; color: var(--red); }
.result.success { color: var(--green); }
.login-page { display: grid; place-items: center; padding: 28px; background: var(--rail); }
.login-shell { width: min(940px, 100%); display: grid; grid-template-columns: 1.15fr .85fr; min-height: 570px; background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.login-mark { padding: clamp(38px, 7vw, 74px); color: #f6f6f2; background: #30363a; position: relative; overflow: hidden; }
.login-mark::after { content: ""; position: absolute; z-index: 0; width: 420px; height: 420px; border: 1px solid #4e565b; border-radius: 50%; right: -210px; bottom: -160px; box-shadow: 0 0 0 55px #343b3f, 0 0 0 56px #4e565b, 0 0 0 110px #30363a, 0 0 0 111px #4e565b; }
.login-mark > * { position: relative; z-index: 1; }
.login-mark h1 { margin: 8px 0 20px; font-size: clamp(3rem, 6vw, 4.15rem); letter-spacing: -.07em; line-height: .92; white-space: nowrap; }
.login-mark > p:first-of-type { color: var(--yellow); font-weight: 700; }
.login-mark .lede { max-width: 430px; color: #cbd1d3; line-height: 1.65; font-size: 1.05rem; }
.clock-face { width: 56px; height: 56px; border: 8px solid var(--yellow); border-radius: 50%; position: relative; margin-bottom: 70px; }
.clock-face span, .clock-face i { position: absolute; left: 22px; bottom: 22px; width: 3px; background: var(--yellow); transform-origin: bottom; }
.clock-face span { height: 16px; transform: rotate(35deg); }
.clock-face i { height: 12px; transform: rotate(128deg); }
.login-form { padding: clamp(38px, 6vw, 66px); align-self: center; }
.login-form h2 { font-size: 2rem; margin: 0; letter-spacing: -.035em; }
.login-form > p { color: var(--ink-soft); }
.login-form form { display: grid; gap: 17px; margin-top: 30px; }
.fineprint { font-size: .82rem; line-height: 1.5; margin-top: 20px; }
@media (max-width: 850px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 17px 20px; display: grid; grid-template-columns: 1fr auto; gap: 14px; }
  .brand { margin: 0; }
  .sidebar nav { display: flex; grid-column: 1 / -1; order: 3; }
  .sidebar nav a { flex: 1; text-align: center; }
  .account { margin: 0; padding: 0; border: 0; text-align: right; }
  .content { padding: 32px 20px 64px; }
  .job { grid-template-columns: 1fr; gap: 13px; }
  .job-actions { justify-content: flex-start; }
  .field-grid, .schedule-picker { grid-template-columns: 1fr 1fr; }
  .login-shell { grid-template-columns: 1fr; }
  .login-mark { min-height: 260px; }
  .clock-face { margin-bottom: 28px; }
}
@media (max-width: 520px) {
  .page-head { align-items: flex-start; flex-direction: column; }
  .field-grid, .schedule-picker, .schedule-fields { grid-template-columns: 1fr; }
  .login-page { padding: 0; }
  .login-shell { min-height: 100vh; border-radius: 0; }
  .login-mark { padding: 34px 28px; }
  .login-form { padding: 36px 28px 50px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
