* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f5f5f0; --surface: #fff; --border: #e0ddd6;
  --text: #1a1a1a; --muted: #6b6b6b;
  --green: #2d7a4f; --green-bg: #edf7f1;
  --red: #b83232; --red-bg: #fdf0f0;
  --yellow: #8a6d00; --yellow-bg: #fef9e7;
  --blue: #1a5fa8; --blue-bg: #eef4fd;
  --radius: 8px;
}
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); font-size: 14px; }

#pin-screen { position: fixed; inset: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; z-index: 100; }
.pin-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; width: 300px; text-align: center; }
.pin-box h1 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.pin-box p { font-size: 13px; color: var(--muted); margin-bottom: 1.5rem; }
.pin-input { width: 100%; padding: 10px; font-size: 20px; text-align: center; letter-spacing: 6px; border: 1px solid var(--border); border-radius: var(--radius); outline: none; }
.pin-input:focus { border-color: var(--text); }
.pin-error { color: var(--red); font-size: 12px; margin-top: 8px; min-height: 16px; }

#app { display: none; max-width: 760px; margin: 0 auto; padding-bottom: 60px; }
#tab-report {
  max-width: none;
  width: calc(100vw - 40px);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 24px;
  box-sizing: border-box;
}
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 10; }
.topbar-title { font-weight: 600; font-size: 15px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #ccc; }
.dot.ok { background: var(--green); }
.dot-label { font-size: 11px; color: var(--muted); }

.tabs { display: flex; background: var(--surface); border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab-btn { flex-shrink: 0; padding: 11px 14px; font-size: 13px; font-weight: 500; border: none; background: none; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab-btn.active { color: var(--text); border-bottom-color: var(--text); }
.tab-content { display: none; padding: 14px 16px; }
.tab-content.active { display: block; }
