:root {
  color-scheme: light;
  --blue: #006edb;
  --blue-dark: #0757a8;
  --ink: #16324f;
  --muted: #61738a;
  --line: #d9e3ee;
  --surface: #ffffff;
  --canvas: #f3f7fb;
  --success: #087f5b;
  --warning: #a15c00;
  --danger: #b42318;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }

.mobile-shell { width: min(100%, 680px); min-height: 100vh; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px calc(32px + env(safe-area-inset-bottom)); }
.mobile-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 12px; box-shadow: 0 4px 14px rgba(0, 61, 126, .14); }
.brand span { display: grid; gap: 0; letter-spacing: .04em; }
.brand small { color: var(--muted); font-size: .73rem; letter-spacing: .08em; text-transform: uppercase; }
.connection { border-radius: 99px; padding: 6px 10px; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.connection.online { color: var(--success); background: #e5f6ef; }
.connection.offline { color: var(--warning); background: #fff1da; }

.view { display: grid; gap: 16px; }
.hero { padding: 12px 4px 6px; }
.hero.compact { padding-bottom: 0; }
.eyebrow, .section-label { margin: 0 0 7px; color: var(--blue-dark); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(1.8rem, 7vw, 2.45rem); line-height: 1.08; letter-spacing: -.03em; }
h2 { margin-bottom: 8px; font-size: 1.12rem; line-height: 1.2; }
.hero p:last-child { max-width: 50ch; margin-bottom: 0; color: var(--muted); line-height: 1.5; }
.card { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 8px 26px rgba(13, 46, 80, .06); padding: 18px; }
.form-card { display: grid; gap: 9px; }
.privacy-link { margin: 0; color: var(--muted); font-size: .78rem; text-align: center; }
.privacy-link a { color: var(--blue-dark); }
label { color: var(--ink); font-size: .86rem; font-weight: 700; }
.form-hint { display: block; margin-top: -3px; color: var(--muted); font-size: .76rem; font-weight: 500; line-height: 1.35; }
input, select, textarea { width: 100%; border: 1px solid #bdccda; border-radius: 11px; background: #fbfdff; color: var(--ink); padding: 12px 13px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 110, 219, .14); }
textarea { resize: vertical; }
button { min-height: 46px; border: 0; border-radius: 11px; padding: 11px 15px; font-weight: 800; }
.primary { color: #fff; background: var(--blue); box-shadow: 0 5px 14px rgba(0, 110, 219, .2); }
.primary:active { background: var(--blue-dark); }
.secondary { color: var(--blue-dark); border: 1px solid #9dbde0; background: #edf6ff; }
.quiet { min-height: 36px; padding: 7px 10px; color: var(--blue-dark); background: transparent; }
.action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.action { min-height: 56px; }
.site-card { display: grid; gap: 5px; }
.site-card p { margin-bottom: 5px; color: var(--muted); font-size: .88rem; }
.photo-card { display: grid; gap: 9px; }
.file-picker { display: grid; place-items: center; min-height: 78px; border: 1px dashed #80a9d1; border-radius: 12px; color: var(--blue-dark); background: #f7fbff; text-align: center; }
.file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.history-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.history-list { display: grid; gap: 9px; margin: 13px 0 0; padding: 0; list-style: none; }
.history-list li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #e8eef4; padding-top: 10px; font-size: .86rem; }
.history-list strong { display: block; margin-bottom: 3px; }
.history-list small { color: var(--muted); }
.status { color: var(--success); font-weight: 800; text-align: right; }
.status.review { color: var(--warning); }
.status.pending { color: var(--blue-dark); }
.message { margin: 8px 0 0; border-radius: 10px; padding: 10px 12px; background: #eef5fb; color: var(--ink); font-size: .85rem; line-height: 1.4; }
.message.success { color: var(--success); background: #e5f6ef; }
.message.warning { color: var(--warning); background: #fff1da; }
.message.error { color: var(--danger); background: #fff0ee; }
.queue-retry { margin-top: 8px; }
.logout { width: 100%; color: var(--muted); background: transparent; }

@media (max-width: 420px) {
  .action-grid { grid-template-columns: 1fr; }
  .mobile-shell { padding-left: 12px; padding-right: 12px; }
}

/* Campo / glass concept: a quiet canvas with a persistent floating dock. */
:root { --ink:#192b3f; --muted:#596c80; --blue:#1765dc; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
[hidden] { display:none !important; }
body { background:radial-gradient(ellipse at 12% 12%,#d1e9fb 0,transparent 48%),radial-gradient(ellipse at 94% 55%,#dcdff9 0,transparent 50%),linear-gradient(145deg,#f1f5f9,#e9f1f4); background-attachment:fixed; }
.mobile-shell { max-width:600px; padding:32px 24px 130px; }
.mobile-header { padding:0 0 38px; }
.brand { gap:12px; }
.brand strong { font-size:13px; letter-spacing:.18em; }
.brand small { font-size:10px; letter-spacing:.22em; margin-top:4px; }
.brand-mark { display:flex !important; align-items:center; justify-content:center; width:44px; height:44px; border-radius:15px; background:#fff; color:white; font-size:27px; font-weight:700; box-shadow:0 7px 16px #23385120; overflow:hidden; }
.brand-mark img { display:block; width:100%; height:100%; object-fit:cover; border-radius:inherit; box-shadow:none; }
.connection { font-size:11px; font-weight:600; border:1px solid #ffffffbb; padding:9px 12px; }
.connection.online { background:#ffffff75; color:#346552; }
.connection::before { content:''; display:inline-block; width:6px; height:6px; border-radius:50%; background:currentColor; margin-right:7px; }
.view { gap:22px; }
.hero { padding:12px 0 18px; }
h1 { font-weight:650; font-size:clamp(30px,6vw,42px); letter-spacing:-.055em; line-height:1.12; max-width:460px; }
.hero p:last-child { font-size:14px; }
.eyebrow,.section-label { color:#627b92; font-size:10px; font-weight:650; letter-spacing:.16em; margin-bottom:12px; }
.card { border:1px solid #ffffffdc; border-radius:28px; background:#ffffff94; padding:26px; box-shadow:0 14px 40px #35496909,inset 0 1px 0 #fff; backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px); }
.site-card { position:relative; overflow:hidden; background:linear-gradient(120deg,#ffffffc9,#f2faff77); }
.site-card::after { content:''; position:absolute; width:150px; height:150px; right:-55px; top:-70px; border:22px solid #b8d7e92b; border-radius:50%; pointer-events:none; }
.site-card h2 { font-size:24px; letter-spacing:-.04em; margin-bottom:6px; }
.site-card p { font-size:12px; }
input,select,textarea { background:#ffffff80; border:1px solid #b2c5d74d; border-radius:15px; padding:14px; }
.site-card select { margin-top:10px; font-size:13px; }
.site-details { display:grid; gap:10px; margin-top:12px; padding-top:15px; border-top:1px solid #8ca6bd26; }
.site-key { justify-self:start; border-radius:999px; padding:5px 9px; background:#e6f1ff; color:#245a96; font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.site-detail-row { display:flex; align-items:baseline; justify-content:space-between; gap:16px; color:var(--muted); font-size:12px; }
.site-detail-row strong,.site-detail-row a { color:var(--ink); font-size:12px; font-weight:650; text-align:right; }
.site-detail-row a { color:#245a96; text-decoration:none; }
.site-detail-row a:hover { text-decoration:underline; }
.site-notes { margin:2px 0 0 !important; padding:10px 12px; border-radius:12px; background:#ffffff65; color:var(--muted) !important; line-height:1.5; white-space:pre-line; }
button { font-weight:600; border-radius:16px; transition:background .18s,transform .18s; }
button:active { transform:scale(.98); }
button:focus-visible,a:focus-visible { outline:3px solid #1765dc; outline-offset:4px; }
.primary { background:linear-gradient(135deg,#2784ee,#175bd7); box-shadow:0 8px 18px #1664d326,inset 0 1px 0 #ffffff40; }
.secondary { border:1px solid #ffffff; background:#ffffff9c; color:#245a96; }
.overview-actions { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.overview-actions button { position:relative; text-align:left; display:grid; justify-items:start; gap:7px; padding:23px; min-height:157px; border-radius:26px; background:#ffffff6b; border:1px solid #ffffffcf; box-shadow:0 10px 30px #37517108; color:var(--ink); }
.overview-actions strong { font-size:17px; letter-spacing:-.03em; }
.overview-actions small { font-size:12px; font-weight:400; color:var(--muted); }
.shortcut-icon { display:grid; place-items:center; width:38px; height:38px; background:#e6f1ff; color:#2464ac; border-radius:12px; font-size:26px; margin-bottom:12px; }
.shortcut-arrow { position:absolute; right:22px; top:23px; color:#8394a5; }
.history-card { background:#ffffff48; box-shadow:none; }
.history-card h2 { font-size:19px; letter-spacing:-.035em; }
.history-list li { border-color:#8ca6bd26; line-height:1.6; padding-top:16px; }
.muted { color:var(--muted); }
.quiet { font-size:12px; }
.attendance-card>p { color:var(--muted); font-size:14px; line-height:1.6; }
.file-picker { min-height:160px; border:1px dashed #809bbf80; border-radius:20px; background:#ffffff5e; font-weight:500; }
.photo-card { gap:17px; }
.photo-card label { font-weight:500; font-size:13px; }
.logout { font-size:12px; font-weight:400; }
.glass-dock { position:fixed; z-index:10; bottom:calc(22px + env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); width:min(390px,calc(100% - 40px)); display:grid; grid-template-columns:repeat(3,1fr); gap:5px; padding:7px; background:#f9fcffbd; border:1px solid #ffffffeb; border-radius:30px; box-shadow:0 16px 40px #203a5a24,inset 0 1px 1px #fff; backdrop-filter:blur(28px) saturate(170%); -webkit-backdrop-filter:blur(28px) saturate(170%); }
.glass-dock button { display:grid; justify-items:center; gap:3px; font-size:10px; padding:8px 10px; border-radius:23px; background:transparent; color:#64758a; min-height:58px; }
.glass-dock button span { font-size:23px; line-height:1; }
.glass-dock button[aria-current] { color:#165cbd; background:linear-gradient(145deg,#fff,#dfeeffb0); box-shadow:inset 0 0 0 1px #fff,0 2px 7px #3b658312; }
#loginView { padding-top:55px; }
.form-card { gap:14px; }
.form-card .primary { margin-top:12px; }
@media(max-width:420px) { .mobile-shell { padding:24px 18px 125px; } .card { padding:22px; } .overview-actions button { padding:20px; } .action-grid { grid-template-columns:1fr 1fr; } }
@media(prefers-reduced-motion:reduce) { button { transition:none; } }
@media(prefers-reduced-transparency:reduce) { .card,.glass-dock,.overview-actions button { background:#f7fafc; backdrop-filter:none; } }
