:root {
  --bg: #f4f4ef;
  --surface: rgba(255, 255, 252, .64);
  --surface-strong: #fffffc;
  --ink: #171b18;
  --muted: #788078;
  --line: rgba(23, 27, 24, .11);
  --line-strong: rgba(23, 27, 24, .19);
  --accent: #347255;
  --accent-soft: #e3eee7;
  --warning: #b7783e;
  --page: min(1120px, calc(100vw - 48px));
  font-family: "SF Pro Display", "Segoe UI", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
}
button, select { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[hidden] { display: none !important; }

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell { width: var(--page); margin: 0 auto; padding-bottom: 76px; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: .01em; }
.brand-mark { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 5px rgba(23, 27, 24, .06); }
.top-nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 13px; }
.top-nav a:hover, .quiet-button:hover { color: var(--ink); }
.quiet-button { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.quiet-button span { font-size: 17px; line-height: 1; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(250px, .9fr);
  gap: 48px;
  align-items: center;
  min-height: 380px;
  padding: 42px 0 34px;
}
.eyebrow, .section-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1, h2, p { margin-top: 0; }
h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .98;
}
.hero-copy { max-width: 390px; margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.hero-metrics { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 18px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.metric { min-width: 0; }
.metric span { display: block; margin-bottom: 9px; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.metric strong, .metric b, .metric time { display: block; font-size: 16px; font-weight: 650; white-space: nowrap; }
.metric-primary strong { font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 400; letter-spacing: -.03em; }

.orbit { position: relative; width: min(330px, 100%); aspect-ratio: 1; margin: 0 auto; }
.orbit-ring, .orbit-dot, .orbit-core { position: absolute; border-radius: 50%; }
.orbit-ring { inset: 0; border: 1px solid var(--line-strong); }
.ring-outer { animation: rotate 26s linear infinite; }
.ring-middle { inset: 18%; border-color: rgba(52, 114, 85, .32); animation: rotate 18s linear infinite reverse; }
.orbit-core { inset: 39%; background: var(--ink); box-shadow: 0 18px 42px rgba(23, 27, 24, .2); animation: breathe 4s ease-in-out infinite; }
.orbit-dot { width: 9px; height: 9px; background: var(--accent); box-shadow: 0 0 0 5px rgba(52, 114, 85, .11); }
.dot-one { top: 8%; left: 26%; }
.dot-two { right: 10%; bottom: 31%; width: 7px; height: 7px; background: var(--warning); }
.dot-three { bottom: 6%; left: 30%; width: 6px; height: 6px; }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(.96); } 50% { transform: scale(1.06); } }

.panel { padding: 30px 0 26px; border-top: 1px solid var(--line-strong); }
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.panel h2 { margin: 8px 0 0; font-size: 20px; font-weight: 650; letter-spacing: -.03em; }
.select-wrap { position: relative; }
.select-wrap select {
  min-width: 130px;
  padding: 9px 28px 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  appearance: none;
  background: var(--surface-strong);
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 13px, calc(100% - 12px) 13px;
  background-repeat: no-repeat;
  background-size: 4px 4px, 4px 4px;
  font-size: 12px;
  cursor: pointer;
}

.action-grid { display: grid; grid-template-columns: repeat(4, 1fr) 1.15fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.action-button, .all-action-button { min-height: 148px; border: 0; border-right: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; transition: background .18s ease, color .18s ease, opacity .18s ease; }
.action-button { display: flex; flex-direction: column; justify-content: space-between; padding: 20px 18px; }
.action-button:last-of-type { border-right: 0; }
.action-button em { color: var(--muted); font-size: 11px; font-style: normal; letter-spacing: .1em; }
.action-button span { margin-top: 26px; font-size: 20px; font-weight: 650; letter-spacing: -.03em; }
.action-button small { color: var(--muted); font-size: 11px; }
.action-button:hover { background: rgba(52, 114, 85, .07); }
.action-button:disabled, .all-action-button:disabled { opacity: .48; cursor: wait; }
.all-action-button { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-right: 0; background: var(--ink); color: #fff; }
.all-action-button:hover { background: var(--accent); }
.all-action-button span { font-size: 16px; font-weight: 650; }
.all-action-button strong { font-size: 24px; font-weight: 400; }
.run-status { display: flex; align-items: center; gap: 9px; min-height: 40px; color: var(--muted); font-size: 12px; }
.spinner { width: 12px; height: 12px; border: 1px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: rotate .7s linear infinite; }
.schedule-line { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.schedule-item { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; row-gap: 3px; padding: 16px 14px 10px 0; border-right: 1px solid var(--line); }
.schedule-item + .schedule-item { padding-left: 14px; }
.schedule-item:last-child { border-right: 0; }
.schedule-item b { font-size: 12px; font-weight: 600; }
.schedule-item small { grid-column: 2; color: var(--muted); font-size: 10px; }
.status-dot { width: 6px; height: 6px; margin-top: 4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.status-dot.muted { background: var(--warning); box-shadow: 0 0 0 4px rgba(183, 120, 62, .12); }

.account-panel { padding-bottom: 0; }
.live-label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.live-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.account-list { border-top: 1px solid var(--line); }
.account-row { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr) 1.2fr; gap: 20px; align-items: center; min-height: 86px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.account-identity h3 { margin: 0 0 7px; font-size: 14px; font-weight: 650; }
.account-identity p { margin: 0; color: var(--muted); font-size: 11px; }
.account-data span, .task-data span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.account-data b, .task-data b { display: block; font-size: 13px; font-weight: 650; }
.account-data small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.state-badge { display: inline-block; padding: 5px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 10px !important; letter-spacing: 0 !important; text-transform: none !important; }
.state-badge.pending { background: #f1eadf; color: var(--warning); }
.empty-state { padding: 30px 0; color: var(--muted); font-size: 13px; }

.settings-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: end; margin-top: 54px; padding-bottom: 0; }
.settings-value { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line); }
.settings-value span, .settings-value small { color: var(--muted); font-size: 11px; }
.settings-value strong { font-size: 14px; font-weight: 650; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 10; max-width: calc(100vw - 48px); padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-strong); box-shadow: 0 12px 28px rgba(23, 27, 24, .12); font-size: 12px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  :root { --page: min(100% - 36px, 920px); }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .orbit { width: min(260px, 70vw); }
  .action-grid { grid-template-columns: repeat(4, 1fr); }
  .all-action-button { grid-column: 1 / -1; min-height: 78px; }
  .account-row { grid-template-columns: 1.3fr repeat(3, 1fr); }
  .account-row > :last-child { grid-column: 2 / -1; }
}

@media (max-width: 720px) {
  :root { --page: calc(100% - 28px); }
  .site-header { height: 64px; }
  .top-nav { gap: 15px; }
  .hero { padding-top: 22px; }
  h1 { font-size: clamp(46px, 14vw, 68px); }
  .hero-metrics { grid-template-columns: 1.2fr repeat(3, 1fr); gap: 10px; }
  .metric-primary strong { font-size: 22px; }
  .metric strong, .metric b, .metric time { font-size: 13px; }
  .panel-head { align-items: flex-start; }
  .action-grid { grid-template-columns: 1fr 1fr; }
  .action-button { min-height: 132px; }
  .action-button:nth-child(2n) { border-right: 0; }
  .all-action-button { grid-column: 1 / -1; min-height: 70px; }
  .schedule-line { grid-template-columns: 1fr 1fr; }
  .schedule-item { min-height: 58px; padding: 14px 12px 10px 0; }
  .schedule-item:nth-child(2n) { border-right: 0; }
  .schedule-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .account-row { grid-template-columns: 1fr 1fr; gap: 18px 12px; padding: 22px 0; }
  .account-identity { grid-column: 1 / -1; }
  .account-row > :last-child { grid-column: auto; }
  .settings-panel { grid-template-columns: 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
