:root {
  font-family: "DM Sans", sans-serif;
  color: #17231e;
  background: #f5f6f2;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #17231e;
  --muted: #748078;
  --line: #e2e8e2;
  --green: #2f684e;
  --green-dark: #214f39;
  --mint: #e5f0e7;
  --cream: #f5f6f2;
  --white: #fff;
  --orange: #e3a262;
  --red: #b94137;
  --shadow: 0 16px 48px rgba(32, 54, 41, .08);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--cream); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
.hidden { display: none !important; }
.site-header { height: 76px; padding: 0 max(5.5vw, 22px); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid rgba(31, 55, 42, .08); background: rgba(245, 246, 242, .93); }
.brand { display: inline-flex; gap: 10px; align-items: center; font: 800 17px Manrope, sans-serif; letter-spacing: -.05em; }
.brand-mark { width: 31px; height: 31px; display: inline-grid; place-items: center; border-radius: 10px; background: var(--green); color: white; font: 800 17px Manrope, sans-serif; letter-spacing: -.08em; }
.main-nav { display: flex; gap: 34px; margin-left: auto; margin-right: 28px; color: #58665e; font-size: 13px; font-weight: 600; }
.main-nav a:hover, .text-link:hover { color: var(--green); }
.header-actions { display: flex; align-items: center; gap: 13px; }
.account-label { max-width: 180px; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.button { min-height: 46px; padding: 0 21px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 8px; background: var(--green); color: white; font-size: 13px; font-weight: 700; transition: background .18s ease, transform .18s ease; }
.button:hover { background: var(--green-dark); transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .6; transform: none; }
.button-dark { background: var(--ink); }
.button-dark:hover { background: #30463a; }
.button-small { min-height: 38px; padding: 0 16px; font-size: 12px; }
.button-quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.button-quiet:hover { background: white; color: var(--ink); }
.button-light { background: white; color: var(--green-dark); }
.button-light:hover { background: #eff5ef; color: var(--green-dark); }
.button-danger { background: #a94237; }
.site-footer { min-height: 84px; padding: 22px max(5.5vw, 22px); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.brand-footer { color: var(--ink); }
.brand-footer .brand-mark { width: 25px; height: 25px; border-radius: 8px; font-size: 14px; }
.hero { position: relative; overflow: hidden; padding: 84px max(7vw, 24px) 86px; background: #e8eee6; }
.hero::before { content: ""; position: absolute; width: 580px; height: 580px; top: -270px; right: 4%; border: 1px solid rgba(47, 104, 78, .12); border-radius: 50%; box-shadow: 0 0 0 70px rgba(47, 104, 78, .025), 0 0 0 140px rgba(47, 104, 78, .02); }
.hero-inner { position: relative; max-width: 1170px; margin: auto; display: grid; grid-template-columns: minmax(0, 1fr) 370px; align-items: center; gap: 76px; }
.eyebrow { margin: 0 0 20px; display: flex; align-items: center; gap: 10px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--green); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, sans-serif; }
.hero h1 { max-width: 680px; margin-bottom: 23px; font-size: clamp(42px, 5.3vw, 70px); line-height: 1.06; letter-spacing: -.065em; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-copy { max-width: 565px; margin-bottom: 30px; color: #5c6a61; font-size: 16px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 22px; }
.text-link { color: var(--green-dark); font-size: 13px; font-weight: 700; }
.hero-card { padding: 26px; border: 1px solid rgba(47, 104, 78, .13); border-radius: 14px; background: rgba(255,255,255,.82); box-shadow: var(--shadow); }
.card-overline { margin-bottom: 17px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cycle-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.cycle-day { font: 800 29px Manrope, sans-serif; letter-spacing: -.06em; }
.cycle-day small { font-size: 13px; color: var(--muted); letter-spacing: 0; }
.status-pill { padding: 6px 9px; border-radius: 99px; background: #e8f3e8; color: var(--green); font-size: 10px; font-weight: 800; }
.progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: #e7ece7; }
.progress-track > span { height: 100%; display: block; border-radius: inherit; background: var(--green); }
.day-dots { margin: 18px 0 19px; display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; }
.day-dots span { aspect-ratio: 1; border-radius: 50%; background: #e6ebe6; }
.day-dots span.done { background: var(--green); }
.day-dots span.today { outline: 2px solid #aac9b0; outline-offset: 2px; }
.card-divider { height: 1px; margin: 17px 0; background: var(--line); }
.cycle-foot { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.cycle-foot strong { color: var(--ink); }
.trust-strip { display: flex; justify-content: center; gap: 55px; padding: 22px 20px; background: white; border-bottom: 1px solid var(--line); }
.trust-item { display: flex; align-items: center; gap: 9px; color: #58665e; font-size: 11px; font-weight: 700; }
.trust-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--green); font-size: 12px; }
.section { max-width: 1150px; margin: auto; padding: 84px 24px; }
.section-heading { max-width: 660px; margin: 0 auto 43px; text-align: center; }
.section-heading h2 { margin-bottom: 13px; font-size: clamp(30px, 4vw, 43px); letter-spacing: -.055em; }
.section-heading p { color: var(--muted); line-height: 1.7; font-size: 14px; }
.steps-section { background: #ecf0ea; }
.steps-row { max-width: 1100px; margin: auto; padding: 62px 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.step-card { padding: 24px; border: 1px solid #dfe7df; border-radius: 11px; background: rgba(255,255,255,.55); }
.step-num { margin-bottom: 17px; color: #a3b8a7; font: 800 13px Manrope, sans-serif; }
.step-card h3 { margin-bottom: 10px; font-size: 16px; }
.step-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.warning-callout { padding: 13px 15px; border: 1px solid #f0d7b8; border-radius: 8px; background: #fff7eb; color: #795629; font-size: 12px; line-height: 1.55; }
.warning-callout strong { color: #61451f; }
.page-shell { max-width: 1120px; min-height: 70vh; margin: auto; padding: 46px 24px 80px; }
.page-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; margin-bottom: 29px; }
.page-title h1 { margin: 4px 0 9px; font-size: clamp(29px, 4vw, 40px); letter-spacing: -.06em; }
.page-title p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.page-title .eyebrow { margin-bottom: 8px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { padding: 23px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.panel-wide { grid-column: 1/-1; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.panel-heading h2, .panel h2 { margin: 0; font-size: 16px; letter-spacing: -.03em; }
.panel-subtitle { margin-top: 6px; color: var(--muted); font-size: 11px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfa; }
.metric-label { margin-bottom: 9px; color: var(--muted); font-size: 10px; font-weight: 700; }
.metric-value { font: 800 22px Manrope, sans-serif; letter-spacing: -.05em; }
.metric-note { margin-top: 4px; color: var(--muted); font-size: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1/-1; }
.form-field label { color: #47574d; font-size: 11px; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea, .inline-input { width: 100%; min-height: 43px; padding: 11px 12px; border: 1px solid #dce4dc; border-radius: 7px; outline: none; background: white; color: var(--ink); font-size: 12px; }
.form-field textarea { min-height: 82px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus, .inline-input:focus { border-color: #85ac90; box-shadow: 0 0 0 3px rgba(47,104,78,.08); }
.form-hint { color: var(--muted); font-size: 10px; line-height: 1.5; }
.form-submit { margin-top: 16px; }
.list-stack { display: flex; flex-direction: column; gap: 11px; }
.list-card { padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.list-card-head { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }
.list-card h3 { margin: 0 0 5px; font-size: 13px; }
.list-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.list-card .progress-track { margin-top: 13px; }
.list-meta { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 10px; }
.list-meta strong { color: var(--ink); }
.badge { display: inline-flex; align-items: center; width: fit-content; padding: 5px 8px; border-radius: 99px; background: #f0f3f0; color: #516158; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.badge-green { background: #e6f2e7; color: var(--green); }
.badge-orange { background: #fff2df; color: #91682b; }
.badge-red { background: #f9e9e7; color: #a34338; }
.app-summary { display: flex; gap: 13px; align-items: center; }
.app-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: var(--mint); color: var(--green); font-weight: 800; }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.assignment-card { padding: 19px; }
.assignment-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.assignment-card h3 { margin: 0 0 5px; font-size: 14px; }
.assignment-card .package-name { margin: 0; color: var(--muted); font-size: 10px; }
.assignment-details { margin: 14px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px; font-size: 10px; }
.assignment-details span { color: var(--muted); }
.assignment-details strong { color: var(--ink); }
.checkin-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 9px; margin-top: 16px; }
.checkin-form .form-field textarea { min-height: 43px; }
.countdown { margin: 13px 0; padding: 10px 12px; border-radius: 7px; background: #f1f5f0; color: var(--green-dark); font-size: 11px; font-weight: 700; }
.countdown.urgent { background: #fff3e5; color: #875b22; }
.empty-state { padding: 25px 14px; border: 1px dashed #d7e0d7; border-radius: 9px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.65; }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 13px; }
.campaign-description { display: flex; gap: 12px; }
.campaign-description .button { min-height: 38px; padding: 0 13px; font-size: 11px; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 11px; text-align: left; }
.data-table th { padding: 10px 11px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.data-table td { padding: 12px 11px; border-bottom: 1px solid #edf0ed; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.table-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.table-actions .button { min-height: 30px; padding: 0 10px; font-size: 10px; }
.inline-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 9px; align-items: end; }
.callout { margin: 17px 0; padding: 13px 15px; border-left: 3px solid var(--orange); background: #fff8ed; color: #76572e; font-size: 11px; line-height: 1.6; }
.auth-box { max-width: 470px; margin: 40px auto 70px; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
.auth-box h2 { margin-bottom: 8px; font-size: 20px; }
.auth-box p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.setup-banner { padding: 13px 20px; background: #fff4e5; color: #77562b; text-align: center; font-size: 11px; line-height: 1.5; }
.toast { position: fixed; z-index: 20; right: 23px; bottom: 23px; max-width: min(390px, calc(100vw - 46px)); padding: 13px 16px; border-radius: 8px; background: var(--ink); box-shadow: var(--shadow); color: white; font-size: 12px; line-height: 1.5; opacity: 0; pointer-events: none; transform: translateY(9px); transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translateY(0); }
.toast.error { background: #923d34; }
.loading { padding: 35px; color: var(--muted); text-align: center; font-size: 12px; }
.ad-slot { max-width: 1100px; min-height: 100px; margin: 24px auto; padding: 18px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; border: 1px dashed #cbd6cc; border-radius: 9px; background: rgba(255,255,255,.55); color: var(--muted); text-align: center; }
.ad-label { color: #8a958d; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.ad-placeholder { font-size: 11px; }
.ad-slot ins { width: 100%; }

@media (max-width: 850px) {
  .main-nav { gap: 17px; margin-right: 4px; }
  .hero-inner { grid-template-columns: 1fr 310px; gap: 30px; }
  .hero { padding-top: 65px; padding-bottom: 65px; }
  .admin-metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px) {
  .site-header { height: 64px; padding: 0 17px; gap: 9px; }
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .account-label { display: none; }
  .hero { padding: 54px 20px 46px; }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero h1 { font-size: clamp(41px, 12vw, 58px); }
  .hero-copy { font-size: 14px; }
  .hero-card { max-width: 410px; }
  .trust-strip { padding: 18px 16px; flex-wrap: wrap; gap: 13px 20px; justify-content: flex-start; }
  .trust-item { font-size: 10px; }
  .section { padding: 60px 18px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .panel-wide { grid-column: auto; }
  .steps-row { grid-template-columns: 1fr; padding: 40px 18px; }
  .site-footer { flex-wrap: wrap; justify-content: flex-start; gap: 10px 22px; padding: 19px 18px; }
  .site-footer > span:last-child { width: 100%; }
  .page-shell { padding: 34px 16px 55px; }
  .page-title { flex-direction: column; align-items: stretch; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .checkin-form { grid-template-columns: 1fr; }
  .checkin-form .button { width: 100%; }
  .admin-metrics { grid-template-columns: 1fr 1fr; }
  .inline-form { grid-template-columns: 1fr; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 15px; }
}
