:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17251d;
  background: #f6f7f3;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --green: #123c2a;
  --green-soft: #e9f1e9;
  --gold: #c99f4a;
  --muted: #68746d;
  --border: #e5e9e2;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.app-shell { width: min(100% - 32px, 560px); margin: 0 auto; padding: 14px 0 max(30px, env(safe-area-inset-bottom)); }
.topbar { height: 54px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { color: var(--green); font-size: 15px; letter-spacing: .13em; }
.brand small { color: var(--muted); font-size: 9px; letter-spacing: .12em; margin-top: 2px; }
.top-link { color: var(--green); font-size: 13px; font-weight: 650; padding: 10px 0 10px 12px; }
.welcome { position: relative; overflow: hidden; margin: 22px 0 34px; padding: 30px 24px 28px; border-radius: 22px; background: radial-gradient(ellipse at 100% 0%, #326b4f 0, transparent 47%), linear-gradient(135deg, #123c2a, #1d5138); color: #fff; box-shadow: 0 16px 38px #123c2a21; }
.welcome::after { content: ""; position: absolute; width: 180px; height: 180px; right: -85px; bottom: -115px; border: 1px solid #ffffff25; border-radius: 50%; box-shadow: 0 0 0 24px #ffffff0b, 0 0 0 48px #ffffff08; pointer-events: none; }
.eyebrow { margin: 0; color: var(--gold); font-size: 10px; font-weight: 750; letter-spacing: .16em; }
.welcome h1 { margin: 15px 0 10px; font-size: clamp(32px, 9vw, 44px); line-height: 1.05; letter-spacing: -.045em; }
.welcome h1 span { color: #e0c278; }
.welcome > p:not(.eyebrow) { max-width: 330px; margin: 0; color: #e0e9e2; font-size: 14px; line-height: 1.55; }
.install-button { position: relative; z-index: 1; margin-top: 20px; padding: 11px 15px; border: 1px solid #ffffff55; border-radius: 999px; background: #ffffff16; color: white; font-size: 12px; font-weight: 700; cursor: pointer; }
.install-button[hidden] { display: none; }
.install-guide { margin: -20px 0 32px; border: 1px solid var(--border); border-radius: 15px; background: #fff; }
.install-guide summary { padding: 14px 16px; color: var(--green); font-size: 13px; font-weight: 700; cursor: pointer; }
.install-steps { padding: 0 16px 13px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.install-steps p { margin: 8px 0; }
.install-steps strong { color: #263a2d; }
.section-title { display: flex; justify-content: space-between; align-items: end; margin-bottom: 14px; }
.section-title h2 { margin: 5px 0 0; font-size: 21px; letter-spacing: -.035em; }
.section-title .eyebrow { color: #8a7250; }
.actions { display: grid; gap: 10px; }
.action-card, .team-link { display: flex; min-height: 76px; align-items: center; gap: 14px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 16px; background: #fff; transition: transform .16s ease, box-shadow .16s ease; }
.action-card:active, .team-link:active { transform: scale(.99); }
.action-card.featured { border-color: #dce8dd; background: linear-gradient(120deg, #f1f7f0, #fff 75%); }
.action-icon, .team-icon { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 14px; background: var(--green-soft); color: var(--green); font-size: 21px; }
.action-copy, .team-link > span:nth-child(2) { min-width: 0; flex: 1; }
.action-copy strong, .action-copy small, .team-link strong, .team-link small { display: block; }
.action-copy strong, .team-link strong { font-size: 14px; font-weight: 720; }
.action-copy small, .team-link small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.arrow { color: #87938a; font-size: 20px; }
.team-panel { margin-top: 34px; }
.team-link { min-height: 74px; margin-top: 9px; }
.team-icon { background: #f4efe4; color: #8a6a2c; font-size: 20px; }
.offline-attendance { margin: 0 0 34px; padding: 20px; border: 1px solid #dfe8df; border-radius: 18px; background: #fff; }
.offline-attendance h1 { margin: 8px 0; font-size: 27px; letter-spacing: -.035em; }
.offline-attendance .section-title { margin-bottom: 8px; }
.offline-attendance .section-title h2 { font-size: 21px; }
.attendance-intro, .privacy-note { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.connection-badge { display: inline-flex; align-items: center; min-height: 27px; margin-bottom: 12px; padding: 5px 10px; border-radius: 999px; background: #f1f3ef; color: #526055; font-size: 10px; font-weight: 750; }
.connection-badge.is-online { background: #e6f4ea; color: #176339; }
.connection-badge.is-offline { background: #fff2dc; color: #8a5a10; }
.clock-button, .sync-button { width: 100%; min-height: 48px; border: 0; border-radius: 13px; background: var(--green); color: #fff; font-size: 14px; font-weight: 750; cursor: pointer; }
.clock-button:disabled, .sync-button:disabled { cursor: wait; opacity: .58; }
.sync-button { margin-top: 10px; border: 1px solid #d5e0d5; background: #f3f7f1; color: var(--green); }
.attendance-message { display: none; margin: 11px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff4e3; color: #704b16; font-size: 12px; line-height: 1.5; }
.attendance-message:not(:empty) { display: block; }
.queue-panel { margin-top: 17px; padding: 14px; border: 1px solid var(--border); border-radius: 13px; background: #fafbf9; }
.queue-heading { display: flex; justify-content: space-between; gap: 12px; color: #263a2d; font-size: 12px; }
.queue-heading span { min-width: 22px; text-align: center; color: var(--green); font-weight: 750; }
.empty-queue { margin: 11px 0 0; color: var(--muted); font-size: 11px; }
.queue-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--border); color: #435248; font-size: 11px; }
.queue-item button { padding: 5px 8px; border: 1px solid #e5c8c8; border-radius: 8px; background: #fff; color: #8b3737; font-size: 10px; font-weight: 700; }
.privacy-note { margin: 14px 0 0; font-size: 10px; }
.offline-signin { color: #815b1e; font-size: 12px; }
.camera-capture { position: fixed; z-index: 10; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 20px; background: #07180ff2; }
.camera-capture[hidden] { display: none; }
.camera-capture video { width: min(100%, 520px); max-height: 65vh; margin: auto; border-radius: 16px; background: #111; object-fit: cover; }
.camera-actions { display: grid; width: min(100%, 520px); gap: 9px; margin: 0 auto; }
.cancel-camera { min-height: 42px; border: 1px solid #ffffff70; border-radius: 12px; background: transparent; color: #fff; font-weight: 700; }
.app-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 31px; padding: 17px 2px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; }
.app-footer p { margin: 0; }
.app-footer a { color: var(--green); font-weight: 700; }
@media (min-width: 600px) {
  .app-shell { padding-top: 20px; }
  .welcome { padding: 38px 34px 34px; }
  .action-card:hover, .team-link:hover { transform: translateY(-1px); box-shadow: 0 8px 20px #1f38200d; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
