:root {
  color-scheme: light;
  --ink: #162a25;
  --muted: #53675f;
  --line: #dce7e2;
  --bg: #f3f7f5;
  --green: #14684c;
  --green-dark: #0e543c;
  --mint: #83e7bc;
  --paper: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: 3px; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, p { margin: 0; }
label { display: flex; flex-direction: column; gap: .35rem; font-size: .925rem; font-weight: 600; }
input:not([type="checkbox"]) {
  min-height: 2.7rem;
  min-width: 0;
  width: 100%;
  border: 1px solid #cbdad2;
  border-radius: .52rem;
  padding: .58rem .72rem;
  color: var(--ink);
  background: var(--paper);
  font-size: 1rem;
  font-weight: 400;
}
input::placeholder { color: #63756b; }
input[type="checkbox"] { width: 1rem; height: 1rem; flex: 0 0 1rem; margin: .24em 0 0; accent-color: var(--green); }
:focus-visible { outline: 2px solid #23895f; outline-offset: 3px; }
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 71rem; margin: auto; min-height: 4.25rem; padding: .65rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); font-size: 1.04rem; font-weight: 750; }
.brand-symbol { width: 2rem; height: 2rem; display: inline-flex; align-items: end; justify-content: center; gap: .15rem; padding-bottom: .48rem; border-radius: .55rem; background: var(--green-dark); }
.brand-symbol i { display: block; width: .22rem; height: .43rem; border-radius: .15rem; background: var(--mint); }
.brand-symbol i:nth-child(2) { height: .65rem; }
.brand-symbol i:nth-child(3) { height: .88rem; }
.top-actions { display: flex; align-items: center; gap: .9rem; }
.account-name { color: var(--muted); font-size: .9rem; }
.button { padding: .55rem .85rem; min-height: 2.35rem; border: 1px solid transparent; border-radius: .52rem; font-size: .9rem; font-weight: 680; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.primary { background: var(--green); color: white; }
.primary:hover { background: var(--green-dark); }
.outline { background: white; border-color: #ccdcd4; color: #264e3f; }
.outline:hover { background: #eaf4ef; }
.danger { background: #a32830; color: white; }
.auth-layout { display: grid; grid-template-columns: .86fr 1.14fr; width: min(68rem, calc(100% - 3rem)); margin: 3.5rem auto 1rem; border: 1px solid var(--line); border-radius: 1.25rem; overflow: hidden; box-shadow: 0 1rem 3rem #27564512; background: var(--paper); }
.intro { padding: clamp(2rem, 4.5vw, 3.4rem); background: radial-gradient(ellipse at 115% -20%, #296454, transparent 64%), #102d26; color: #f5fcf8; display: flex; flex-direction: column; justify-content: center; }
.intro h1 { font-size: clamp(2.05rem, 3.55vw, 3.2rem); line-height: 1.17; letter-spacing: -.045em; }
.intro p { margin-top: 1.05rem; line-height: 1.65; color: #c1dbcf; max-width: 22rem; }
.timeline { padding-top: 3.35rem; font-size: .9rem; color: #c1dbcf; }
.timeline-track { display: flex; justify-content: space-between; align-items: center; height: 1px; background: #4a7163; margin: .85rem .15rem .7rem; }
.timeline-track i { width: .45rem; height: .45rem; background: var(--mint); border-radius: 100%; }
.timeline-track i:not(:first-child, :last-child) { background: #6d9585; width: .3rem; height: .3rem; }
.timeline-hours { display: flex; justify-content: space-between; color: #e2f8ed; font-variant-numeric: tabular-nums; }
.auth-form { padding: clamp(1.5rem, 4.15vw, 3rem); align-self: center; }
.auth-form h2, .panel h2 { font-size: 1.45rem; line-height: 1.25; letter-spacing: -.02em; }
.auth-form .form-lead { margin-top: .55rem; color: var(--muted); }
.form-stack { display: grid; gap: .95rem; margin-top: 1.4rem; }
.form-stack > .button { width: max-content; min-width: 8rem; }
.auth-form .form-stack > .button { width: 100%; min-height: 2.75rem; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.optional, .help { color: var(--muted); font-size: .8rem; font-weight: 400; }
.optional { display: inline; }
.checkbox { display: flex; flex-direction: row; align-items: start; gap: .55rem; color: var(--muted); font-weight: 400; }
.switch { margin-top: 1.15rem; color: var(--muted); font-size: .91rem; text-align: center; }
.site-footer { margin: 2rem auto; text-align: center; padding: 0 1rem; color: var(--muted); font-size: .82rem; }
.shell { max-width: 71rem; margin: 2.4rem auto; padding: 0 1.5rem; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.page-heading h1, .shell > .panel h1 { font-size: clamp(1.8rem, 2.8vw, 2.55rem); line-height: 1.2; letter-spacing: -.04em; }
.page-heading p { color: var(--muted); margin-top: .4rem; }
.metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-bottom: 1.05rem; }
.metric, .panel { border: 1px solid var(--line); border-radius: .82rem; background: var(--paper); }
.metric { display: grid; align-content: start; gap: .3rem; padding: 1.12rem 1.26rem; }
.metric > span { color: var(--muted); font-size: .94rem; }
.metric strong { font-size: 1.5rem; font-weight: 750; }
.metric .numeric { color: var(--green); line-height: 1.2; font-size: 2.5rem; }
.metric p { color: var(--muted); font-size: .86rem; }
.panel { padding: 1.3rem; margin-bottom: 1rem; }
.panel-heading { margin-bottom: 1.05rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .92rem; }
th, td { padding: .8rem .55rem; border-top: 1px solid var(--line); vertical-align: top; }
th { font-weight: 650; }
thead th { color: var(--muted); white-space: nowrap; background: #f7faf8; }
.tabular { font-variant-numeric: tabular-nums; }
.pill { display: inline-block; padding: .14rem .52rem; border-radius: .33rem; background: #eaf1ed; color: #365449; font-size: .81rem; white-space: nowrap; }
.pill.completed { background: #dcefe5; color: #185741; }
.pill.failed, .pill.missed { background: #f8e6e7; color: #842b31; }
.empty { padding: 1rem 0 .4rem; color: var(--muted); }
.binding-panel details { padding: .7rem 0; border-top: 1px solid var(--line); }
.binding-panel summary { cursor: pointer; font-weight: 650; }
.binding-form { max-width: 42rem; }
.notice { margin: .85rem 0; padding: .65rem .8rem; border-radius: .5rem; }
.notice.error { background: #f9e9e9; color: #842a32; }
.notice.issued { background: #e7f5ed; color: #154d36; margin-bottom: 1rem; max-width: 32rem; }
.invite-form { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: .7rem; align-items: end; margin-bottom: 1.1rem; }
.invite-form .button { min-height: 2.7rem; }
@media (max-width: 730px) {
  .auth-layout { grid-template-columns: 1fr; width: min(95%, 37rem); margin-top: 1.3rem; }
  .intro { padding: 1.5rem; }
  .intro h1 { font-size: 1.85rem; }
  .intro h1 br { display: none; }
  .intro p { margin-top: .55rem; }
  .timeline { padding-top: 1.3rem; }
  .shell { padding-inline: .8rem; margin-top: 1.5rem; }
  .metrics { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .metric:first-child { grid-column: 1 / -1; }
  .page-heading { align-items: start; }
  .invite-form { grid-template-columns: 1fr 1fr; }
  .invite-form label:first-child { grid-column: 1 / -1; }
  .invite-form .button { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 420px) {
  .form-pair { grid-template-columns: 1fr; }
  .top-inner { padding-inline: .85rem; }
}
