:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: #1d1d1f;
  background: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, .08);
  --surface: rgba(255, 255, 255, .82);
  --blue: #0071e3;
  --blue-dark: #0066cc;
  --green: #248a3d;
  --orange: #b25000;
  --red: #c9342d;
  --shadow: 0 16px 40px rgba(0, 0, 0, .07);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; line-height: 1.5; background: radial-gradient(circle at 85% -10%, #e4f0ff 0, transparent 34rem), #f5f5f7; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(0, 113, 227, .35); outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 2; background: #fff; padding: .6rem .8rem; border-radius: .7rem; }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .78); backdrop-filter: saturate(180%) blur(20px); }
.site-header__inner { max-width: 76rem; min-height: 3.8rem; margin: 0 auto; padding: 0 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { color: var(--ink); font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.brand-mark { display: inline-grid; width: 1.8rem; height: 1.8rem; margin-right: .45rem; place-items: center; border-radius: .6rem; color: #fff; background: var(--blue); font-size: .8rem; vertical-align: -.25rem; }
.site-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: .2rem; }
.site-header nav a { padding: .45rem .7rem; color: var(--muted); border-radius: .6rem; font-size: .88rem; text-decoration: none; }
.site-header nav a:hover { color: var(--ink); background: rgba(0, 0, 0, .05); }
.page-shell { max-width: 76rem; margin: 0 auto; padding: 3.5rem 1.25rem 5rem; }
.message { padding: .85rem 1rem; border: 1px solid rgba(36, 138, 61, .16); border-radius: .8rem; color: var(--green); background: #effaf1; }
.hero { margin-bottom: 2.5rem; }
.eyebrow { margin: 0 0 .4rem; color: var(--blue); font-size: .82rem; font-weight: 700; letter-spacing: .04em; }
h1, h2, h3 { letter-spacing: -.035em; }
h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; }
h2 { margin: 0 0 .35rem; font-size: 1.25rem; }
h3 { margin: 0; font-size: 1.05rem; }
.subtitle { max-width: 42rem; margin: .9rem 0 0; color: var(--muted); font-size: 1.05rem; }
.card-list, .stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; }
.card, .stat-card, .workflow-form { border: 1px solid var(--line); border-radius: 1.15rem; background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.card { min-height: 12rem; padding: 1.35rem; display: flex; flex-direction: column; justify-content: space-between; }
.card:hover { transform: translateY(-2px); box-shadow: 0 20px 48px rgba(0, 0, 0, .1); transition: .2s ease; }
.card-meta { margin: .7rem 0 1.2rem; color: var(--muted); font-size: .9rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.stat-grid { margin: 0 0 2.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-card { padding: 1rem 1.15rem; }
.stat-label { margin: 0; color: var(--muted); font-size: .82rem; }
.stat-value { margin: .15rem 0 0; font-size: 1.65rem; font-weight: 700; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; }
.section-heading p { margin: 0; color: var(--muted); font-size: .9rem; }
.action-panel { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding: 1.25rem 1.35rem; border: 1px solid var(--line); border-radius: 1.15rem; background: rgba(255, 255, 255, .68); }
.action-panel h2 { margin-bottom: .2rem; }
.action-panel p { margin: 0; color: var(--muted); }
.action-row { margin: -1rem 0 2rem; }
.module-stats { display: flex; gap: 1.25rem; margin-top: 2rem; color: var(--muted); font-size: .85rem; }
.module-stats strong { display: block; margin-top: .15rem; color: var(--ink); font-size: 1.25rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: .4rem; color: var(--muted); font-size: .85rem; font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; padding: .78rem .85rem; border: 1px solid #d2d2d7; border-radius: .7rem; background: rgba(255, 255, 255, .9); font: inherit; }
.field textarea { min-height: 8rem; resize: vertical; }
.field .errorlist { margin: .4rem 0 0; }
.button, button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: .62rem 1rem; color: #fff; background: var(--blue); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover, button:hover { background: var(--blue-dark); }
.state { display: inline-flex; width: fit-content; margin: 0; padding: .25rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #eef0f2; color: var(--muted); }
.state-overdue { color: var(--red); background: #fff0ef; }
.state-due_soon { color: var(--orange); background: #fff5e8; }
.workflow-form { max-width: 28rem; margin: 4rem auto; padding: 2.2rem; }
.workflow-form h1 { font-size: 2rem; }
.workflow-form > p { color: var(--muted); }
.workflow-form form p { margin: 1.1rem 0; }
.workflow-form label { display: block; margin-bottom: .4rem; color: var(--muted); font-size: .85rem; font-weight: 600; }
.workflow-form input, .workflow-form textarea, .workflow-form select { width: 100%; padding: .78rem .85rem; border: 1px solid #d2d2d7; border-radius: .7rem; background: rgba(255, 255, 255, .9); font: inherit; }
.workflow-form button { width: 100%; margin-top: .4rem; padding: .75rem 1rem; }
.errorlist { color: var(--red); font-size: .85rem; font-weight: 600; padding-left: 1.1rem; }
@media (max-width: 767px) {
  .site-header__inner { align-items: flex-start; flex-direction: column; padding-top: .8rem; padding-bottom: .8rem; }
  .site-header nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .site-header nav a { white-space: nowrap; }
  .page-shell { padding: 2.5rem 1rem 3.5rem; }
  .stat-grid { grid-template-columns: 1fr; gap: .7rem; }
  .workflow-form { margin: 2rem auto; padding: 1.5rem; }
  .action-panel { align-items: flex-start; flex-direction: column; }
}
