:root{--navy: #1b3a6b;--navy-2: #274f8f;--teal: #06d6a0;--sand: #ffd166;--ink: #10202b;--paper: #f4f7f9;--line: #dfe7ec;--muted: #6b7c88}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--paper);color:var(--ink);-webkit-tap-highlight-color:transparent}.app{max-width:520px;margin:0 auto;min-height:100%;display:flex;flex-direction:column;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}.topbar{display:flex;align-items:center;gap:12px;padding:18px 18px 14px;background:linear-gradient(135deg,var(--navy),var(--navy-2));color:#fff}.topbar .logo{font-size:30px}.topbar .logo-img{height:46px;width:auto;display:block;filter:drop-shadow(0 1px 2px rgba(0,0,0,.3))}.topbar h1{font-size:20px;margin:0}.topbar-user{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:3px}.topbar-user span{font-size:12px;opacity:.85;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar-user .link{color:#fff;font-size:12px;padding:0;text-decoration:underline;opacity:.9}.topbar .sub{margin:2px 0 0;font-size:12px;opacity:.8}.card{flex:1;padding:18px;display:flex;flex-direction:column;gap:18px}.field-label{display:block;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin-bottom:6px}.picker{position:relative}.selected{width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 14px;display:flex;justify-content:space-between;align-items:center;cursor:pointer}.selected.placeholder{color:var(--muted)}.sel-common{font-weight:600}.sel-sci{font-size:12px;color:var(--muted);font-style:italic}.change{color:var(--navy-2);font-size:13px;font-weight:600}.picker-pop{position:absolute;z-index:20;top:0;left:0;right:0;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 40px #0b3d5c2e;padding:10px}.search{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:9px;font-size:15px}.results{list-style:none;margin:8px 0 0;padding:0;max-height:46vh;overflow:auto}.results li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 8px;border-radius:8px;cursor:pointer}.results li:hover{background:var(--paper)}.r-common{font-weight:600;font-size:14px}.r-sci{font-size:12px;color:var(--muted);font-style:italic}.r-cat{font-size:11px;color:var(--navy-2);white-space:nowrap}.results .empty{justify-content:center;color:var(--muted);cursor:default}.close-pop{margin-top:4px}.auto-cta{width:100%;border:0;background:linear-gradient(135deg,#6d5bd0,#8b5cf6);color:#fff;font-weight:800;font-size:17px;padding:16px;border-radius:14px;cursor:pointer;box-shadow:0 6px 18px #6d5bd04d}.auto-select{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:12px;font-size:15px;background:#fff;margin-bottom:6px}.auto-actions{display:flex;gap:12px;align-items:center;margin-top:6px}.auto-actions .primary{flex:1}.auto-actions .primary:disabled{opacity:.5;cursor:default}.length-type{margin:-6px 0 0;font-size:13px;color:var(--muted)}.length-type strong{color:var(--ink)}.length-row{display:flex;gap:10px}.length-input{flex:1;padding:13px 14px;border:1px solid var(--line);border-radius:12px;font-size:22px;font-weight:600}.measure-btn{border:0;background:var(--navy);color:#fff;border-radius:12px;padding:0 16px;font-size:15px;font-weight:600;cursor:pointer}.result{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;text-align:center}.result.has{background:linear-gradient(135deg,var(--navy),var(--navy-2));border-color:transparent;color:#fff}.result-label{font-size:12px;text-transform:uppercase;letter-spacing:.05em;opacity:.8}.result-value{font-size:42px;font-weight:700;margin:4px 0}.result-detail{font-size:13px;opacity:.85}.reference{font-size:13px;color:var(--muted)}.reference summary{cursor:pointer;font-weight:600;color:var(--navy-2)}.reference .ref-text{line-height:1.4}.reference .formula{font-family:ui-monospace,Menlo,monospace;background:var(--paper);padding:8px;border-radius:8px}.foot{display:flex;justify-content:space-between;padding:12px 18px;font-size:12px;color:var(--muted);border-top:1px solid var(--line)}.src.supabase{color:var(--teal);font-weight:600}.foot-right{display:flex;align-items:center;gap:8px}.offline-pill{background:#fdeceb;color:#a2321f;font-weight:600;padding:2px 8px;border-radius:999px;font-size:11px}.hint{color:var(--muted);font-size:13px}.app-loading{min-height:100%;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:15px}.home{min-height:100%;display:flex;align-items:center;justify-content:center;padding:24px 18px;background:linear-gradient(160deg,var(--navy),var(--navy-2))}.home-card{width:100%;max-width:380px;background:#fff;border-radius:20px;padding:28px 24px 22px;text-align:center;box-shadow:0 20px 50px #00000040}.home-logo{height:64px;width:auto;margin-bottom:10px}.home-card h1{margin:0 0 2px;font-size:22px}.home-sub{margin:0 0 18px;color:var(--muted);font-size:13px}.home-tabs{display:flex;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:18px}.home-tabs button{flex:1;border:0;background:#fff;padding:10px;font-weight:600;font-size:14px;color:var(--muted);cursor:pointer}.home-tabs button.active{background:var(--navy);color:#fff}.home-form{text-align:left;display:flex;flex-direction:column}.home-input{width:100%;padding:11px 13px;border:1px solid var(--line);border-radius:10px;font-size:15px;margin-bottom:10px}.home-submit{width:100%;margin-top:6px}.home-links{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:12px}.home-links .link{font-size:13px}.home-note{margin-top:16px;font-size:12px;color:var(--muted);line-height:1.4}.dashboard{display:flex;flex-direction:column;gap:14px}.dash-hero{display:flex;align-items:center;justify-content:space-between}.dash-hero h2{margin:0;font-size:19px}.role-badge{background:var(--sand);color:#4a3300;font-weight:700;font-size:11px;text-transform:uppercase;letter-spacing:.03em;padding:3px 9px;border-radius:999px}.dashboard h3{margin:6px 0 -4px;font-size:14px;color:var(--muted);text-transform:uppercase;letter-spacing:.03em}.full-width{width:100%}.back-link{align-self:flex-start;margin-bottom:4px;color:var(--navy-2)}.admin-menu{display:flex;flex-direction:column;gap:10px}.admin-menu-item{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;cursor:pointer;text-align:left}.admin-menu-item .tile-icon{font-size:24px}.admin-menu-text strong{font-size:15px}.tile-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tile{display:flex;flex-direction:column;align-items:flex-start;gap:4px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px 14px;cursor:pointer;text-align:left;min-height:92px}.tile-icon{font-size:26px}.tile-label{font-weight:700;font-size:14px;color:var(--ink)}.tile-sub{font-size:11px;color:var(--muted)}.tile.placeholder{background:var(--paper);border-style:dashed;cursor:default;opacity:.6}.tile.placeholder .tile-label{color:var(--muted)}.tile:disabled{cursor:default}.photo-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:12px}.photo-card{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;padding-bottom:8px}.photo-card img{width:100%;aspect-ratio:1 / 1;object-fit:cover;display:block}.photo-card-info{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:8px 10px 2px;font-size:13px}.photo-card .hint{padding:0 10px}.photo-card.clickable{cursor:pointer}.photo-card.clickable:hover{border-color:var(--navy-2)}.catch-detail-photo{width:100%;height:auto;display:block;border-radius:12px;margin-bottom:10px}.comp-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.comp-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;cursor:pointer;position:relative}.comp-card-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.comp-card-dates{font-size:12px;color:var(--muted);margin-top:4px}.joined-pill{display:inline-block;margin-top:8px;background:#e8f7f0;color:#0a6b4d;font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px}.status-pill{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.02em;padding:3px 9px;border-radius:999px;white-space:nowrap}.status-pill.upcoming,.status-pill.pending{background:#fff3d6;color:#8a5a00}.status-pill.active,.status-pill.approved{background:#e8f7f0;color:#0a6b4d}.status-pill.closed{background:#eceff1;color:#51606b}.status-pill.rejected{background:#fdeceb;color:#a2321f}.leaderboard{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.leaderboard li{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 12px}.leaderboard li.me{border-color:var(--navy-2);background:#eef3fb}.lb-rank{font-weight:800;color:var(--muted);width:20px}.lb-name{flex:1;font-weight:600}.lb-score{font-weight:700;color:var(--navy)}.release-days{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.release-day{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 12px}.release-day button{white-space:nowrap;padding:8px 14px}.my-catches{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.my-catches li{background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 12px}.my-catches li>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:8px}.mod-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}.mod-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px}.mod-photo{width:100%;max-height:220px;object-fit:cover;border-radius:10px;margin-bottom:8px}.mod-info{margin-bottom:8px;font-size:14px}.modal{position:fixed;top:0;right:0;bottom:0;left:0;background:#0818228c;display:flex;align-items:flex-end;justify-content:center;z-index:50}.sheet{background:var(--paper);width:100%;max-width:520px;max-height:94vh;overflow:auto;border-radius:18px 18px 0 0;padding:16px}.sheet-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.mod-title{display:block;font-size:16px;margin:-6px 0 10px}.link{background:none;border:0;color:var(--navy-2);font-weight:600;font-size:15px;cursor:pointer}.drop{display:block;border:2px dashed var(--line);border-radius:16px;padding:34px 16px;text-align:center;cursor:pointer;background:#fff}.drop-icon{font-size:40px}.drop-inner{display:flex;flex-direction:column;gap:8px;align-items:center}.cal-row{display:flex;flex-direction:column;gap:4px;margin-bottom:10px}.cal-input{display:flex;align-items:center;gap:6px;font-weight:600}.cal-input input{width:90px;padding:9px 10px;border:1px solid var(--line);border-radius:9px;font-size:16px}.ai-btn{width:100%;border:0;background:linear-gradient(135deg,#6d5bd0,#8b5cf6);color:#fff;font-weight:700;font-size:15px;padding:12px;border-radius:12px;cursor:pointer;margin-bottom:10px}.ai-btn:disabled{opacity:.6;cursor:default}.ai-msg{font-size:13px;padding:9px 11px;border-radius:9px;margin-bottom:10px}.ai-msg.ok{background:#e8f7f0;color:#0a6b4d}.ai-msg.err{background:#fdeceb;color:#a2321f}.prompt{background:var(--sand);color:var(--ink);font-weight:600;padding:10px 12px;border-radius:10px;text-align:center;margin-bottom:10px}.stage{position:relative;touch-action:none;-webkit-user-select:none;user-select:none;border-radius:12px;overflow:hidden;background:#000}.stage img{display:block;width:100%;height:auto}.overlay{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none}.pt{position:absolute;transform:translate(-50%,-50%);width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700;color:#10202b;border:2px solid #fff;box-shadow:0 1px 4px #00000080}.pt.cal{background:var(--sand)}.pt.meas{background:var(--teal)}.chips{display:flex;gap:10px;margin:12px 0}.chip{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--line);border-radius:999px;padding:8px 14px;font-size:13px;font-weight:600;cursor:pointer}.dot{width:11px;height:11px;border-radius:50%}.dot.cal{background:var(--sand)}.dot.meas{background:var(--teal)}.measure-result{text-align:center;padding:8px 0 4px}.measured{font-size:17px;margin-bottom:12px}.measured .raw{color:var(--muted);font-size:13px;margin-left:6px}.primary{width:100%;border:0;background:var(--teal);color:#06382b;font-weight:700;font-size:16px;padding:14px;border-radius:12px;cursor:pointer}@media (min-width: 640px){html,body,#root{height:auto}body{min-height:100vh}.app{position:relative;max-width:none;margin:0;min-height:100vh}.modal{position:absolute;align-items:center}.sheet{max-width:640px;border-radius:18px;max-height:88vh}}@media (min-width: 900px){.modal,.sheet{max-width:760px}}.report-scroll{overflow-x:auto;margin:8px 0}.report-table{border-collapse:collapse;width:100%;font-size:12px}.report-table th,.report-table td{border:1px solid var(--line, #d9dee3);padding:4px 6px;text-align:right}@media (min-width: 900px){.modal.modal-fullscreen{position:fixed;top:0;right:0;bottom:0;left:0;align-items:center}.report-sheet{max-width:96vw;max-height:94vh}}.report-table th:first-child,.report-table td:first-child,.report-table th:nth-child(2),.report-table td:nth-child(2){text-align:left}.report-table thead th{background:var(--navy-2, #143a5c);color:#fff}.report-table .report-totals td{font-weight:700;background:#0000000a}.report-summary{font-size:13px;line-height:1.6;margin:6px 0 18px}@media print{body *{visibility:hidden}.report-print-area,.report-print-area *{visibility:visible}.report-print-area{position:absolute;left:0;top:0;width:100%}.report-print-area button{display:none}}
