diff --git a/app/models.py b/app/models.py index 5eb7435..6794e96 100644 --- a/app/models.py +++ b/app/models.py @@ -94,6 +94,7 @@ def __init__(self, data): # Notes self.notes: str = data.get('notes', '') + self.excluded: bool = data.get('excluded', False) # Scouter information self.scouter_id: ObjectId = data.get('scouter_id') diff --git a/app/scout/TBA.py b/app/scout/TBA.py index 6491c29..9ba8ae8 100644 --- a/app/scout/TBA.py +++ b/app/scout/TBA.py @@ -1,6 +1,7 @@ import logging import math import os +import re from datetime import datetime from .api_cache import public_api_cache @@ -11,6 +12,22 @@ logger = logging.getLogger(__name__) STATBOTICS_URL = "https://api.statbotics.io/v3" +EVENT_KEY_PATTERN = re.compile(r"\d{4}[a-z0-9]+\Z") + + +def tba_match_key(event_key: str, label: str) -> str | None: + """TBA match key (e.g. 2026nyny_qm12) for an event key and a scouting form label, or None.""" + if not EVENT_KEY_PATTERN.fullmatch(event_key or ""): + return None + if re.fullmatch(re.escape(event_key) + r"_(?:qm\d+|sf\d+m\d+|f\d+m\d+)", label): + return label + for pattern, suffix in [(r"Qual(?:ification)? (\d+)", "qm{}"), + (r"(?:Semifinal|Semi-Finals) (\d+)-(\d+)", "sf{}m{}"), + (r"Finals? (\d+)", "f1m{}")]: + found = re.fullmatch(pattern, label, re.I) + if found: + return event_key + "_" + suffix.format(*found.groups()) + return None def get_team_epa(team_number: int, year: int, background=False): diff --git a/app/scout/match13_fuel.py b/app/scout/match13_fuel.py index c9b0a62..3a606c3 100644 --- a/app/scout/match13_fuel.py +++ b/app/scout/match13_fuel.py @@ -19,6 +19,8 @@ from bson import ObjectId import requests +from .TBA import tba_match_key + logger = logging.getLogger(__name__) PHASES = { "auto_fuel": "autoCount", "transition_fuel": "transitionCount", @@ -36,17 +38,7 @@ def zero_scored_fuel(data): def match_key(event, label): - if not EVENT_PATTERN.fullmatch(event): - return None - if re.fullmatch(re.escape(event) + r"_(?:qm\d+|sf\d+m\d+|f\d+m\d+)", label): - return label - for pattern, suffix in [(r"Qual(?:ification)? (\d+)", "qm{}"), - (r"(?:Semifinal|Semi-Finals) (\d+)-(\d+)", "sf{}m{}"), - (r"Finals? (\d+)", "f1m{}")]: - found = re.fullmatch(pattern, label, re.I) - if found: - return event + "_" + suffix.format(*found.groups()) - return None + return tba_match_key(event, label) if EVENT_PATTERN.fullmatch(event) else None def apportioned(total, weights): diff --git a/app/scout/routes/records.py b/app/scout/routes/records.py index 1542e25..7ec4a52 100644 --- a/app/scout/routes/records.py +++ b/app/scout/routes/records.py @@ -2,6 +2,7 @@ from __future__ import annotations import json +import re from datetime import datetime from bson import ObjectId @@ -12,11 +13,28 @@ from app.utils import handle_route_errors from ..match13_fuel import FUEL_FIELDS, zero_scored_fuel -from ..TBA import TBAInterface +from ..TBA import EVENT_KEY_PATTERN, TBAInterface from . import common from .common import TELEOP_SHIFT_FIELDS, actor_name, fuel_total, scouting_bp SCOUTING_PAGE_SIZE = 20 +STATION_PATTERN = re.compile(r"(red|blue)[1-3]\Z") +DRAFT_ID_PATTERN = re.compile(r"[A-Za-z0-9-]{1,64}\Z") + + +def _add_form_url(data: dict, saved: bool) -> str: + """Back to the add form: the next match after a save, the same match after a failure. + Only validated values reach the URL; the label is only compared in JS, never rendered.""" + params = {} + if EVENT_KEY_PATTERN.fullmatch(event := str(data.get("_event_key") or "")): + params["event"] = event + if label := str(data.get("match_number") or "")[:32]: + params["after" if saved else "match"] = label + if STATION_PATTERN.fullmatch(station := str(data.get("_station") or "")): + params["station"] = station + if saved and DRAFT_ID_PATTERN.fullmatch(draft := str(data.get("_draft_id") or "")): + params["saved"] = draft + return url_for("scouting.add", **params) def _user_team(): @@ -49,13 +67,14 @@ def add(): data["auto_path"] = [] except json.JSONDecodeError: flash("Invalid path coordinates format", "error") - return redirect(url_for("scouting.home")) + return redirect(_add_form_url(data, saved=False)) use_estimate = zero_scored_fuel(data) for field in FUEL_FIELDS: if data.get(field) in (None, ""): data[field] = 0 - success, message = common.scouting_manager.add_scouting_data(data, current_user.get_id()) + success, message = common.scouting_manager.add_scouting_data( + data, current_user.get_id(), team_number=current_user.teamNumber) service = current_app.extensions.get("match13_fuel") if success and use_estimate and service: try: @@ -69,7 +88,7 @@ def add(): else: flash(f"Error adding data: {message}", "error") - return redirect(url_for("scouting.home")) + return redirect(_add_form_url(data, saved=success)) @scouting_bp.route("/scouting/list") diff --git a/app/scout/scouting_utils.py b/app/scout/scouting_utils.py index 254b82e..556deda 100644 --- a/app/scout/scouting_utils.py +++ b/app/scout/scouting_utils.py @@ -9,6 +9,8 @@ from app.models import Team, TeamData from app.utils import DatabaseManager, with_mongodb_retry +from .TBA import EVENT_KEY_PATTERN, tba_match_key + logger = logging.getLogger(__name__) SCOUTER_LOOKUP = {"$lookup": { @@ -18,6 +20,8 @@ "as": "scouter" }} UNWIND_SCOUTER = {"$unwind": "$scouter"} +# Stats skip records marked "Exclude from stats"; lists and scout counts keep them. +COUNTED = {"$match": {"excluded": {"$ne": True}}} PIT_PROJECTION = { "_id": 1, @@ -146,14 +150,34 @@ def get_team(self, team_number) -> Team | None: # ============ Match records ============ @with_mongodb_retry(retries=3, delay=2) - def add_scouting_data(self, data: dict, scouter_id: str) -> tuple[bool, str]: - """Add new scouting data with retry mechanism""" + def add_scouting_data(self, data: dict, scouter_id: str, team_number=None) -> tuple[bool, str]: + """Add a match record; team_number is the scout's team. Refuses a same-team duplicate.""" + scout_team = team_number try: # Validate team number team_number = int(data["team_number"]) if team_number <= 0: return False, "Invalid team number" + event_key = str(data.get("_event_key") or "") + keys = {} + if EVENT_KEY_PATTERN.fullmatch(event_key) and (key := tba_match_key(event_key, str(data["match_number"]))): + keys = {"event_key": event_key, "match_key": key} + # shortcut: check-then-insert can race when two scouts save in the same second; + # a unique index needs the scout's team on the record. + scope = {"scouter.teamNumber": scout_team} if scout_team else {"scouter_id": ObjectId(scouter_id)} + duplicate = next(iter(self.db.team_data.aggregate([ + {"$match": {"match_key": key, "team_number": team_number, "excluded": {"$ne": True}}}, + SCOUTER_LOOKUP, + UNWIND_SCOUTER, + {"$match": scope}, + {"$limit": 1}, + ])), None) + if duplicate: + scout = duplicate.get("scouter", {}).get("username", "another scout") + return False, (f"Team {team_number} in {data['match_number']} was already scouted by {scout}. " + "Edit that entry from the scouting list instead.") + team_data = { "team_number": team_number, "event_code": data["event_code"], @@ -161,6 +185,7 @@ def add_scouting_data(self, data: dict, scouter_id: str) -> tuple[bool, str]: "alliance": data.get("alliance", "red"), "auto_climb": bool(data.get("auto_climb", False)), **_record_fields(data), + **keys, # Metadata "scouter_id": ObjectId(scouter_id), @@ -217,7 +242,8 @@ def get_all_scouting_data(self, user_team_number=None, user_id=None, *, "scouter_id": 1, "scouter_name": "$scouter.username", "scouter_team": "$scouter.teamNumber", - "device_type": 1 + "device_type": 1, + "excluded": 1 } }) @@ -362,11 +388,20 @@ def update_team_data(self, team_id, data, scouter_id) -> bool: "match_number": match_number, "alliance": alliance, **_record_fields(data), + "excluded": _is_checked(data.get("excluded")), } + # Hand-typed identity can't be mapped back to TBA: unlink rather than mislink. + if existing_data.get("event_code") != event_code: + unset = {"event_key": "", "match_key": ""} + elif existing_data.get("match_number") != match_number: + unset = {"match_key": ""} + else: + unset = {} + result = self.db.team_data.update_one( {"_id": ObjectId(team_id)}, - {"$set": updated_data}, + {"$set": updated_data, **({"$unset": unset} if unset else {})}, ) return result.matched_count > 0 except Exception as e: @@ -429,6 +464,7 @@ def delete_team_data(self, team_id: str, user_id: str, admin_override=False) -> def get_match_alliances(self, user_id, team_number) -> list[dict]: """Visible records grouped by (event, match), each team's fuel and climb defaulted.""" return list(self.db.team_data.aggregate([ + COUNTED, *self._visible_records(user_id, team_number), {"$group": { "_id": { @@ -464,6 +500,7 @@ def get_compare_stats(self, team: int, user_id, team_number) -> dict | None: """Averages for one team over the user's visible records, or None without data.""" stats = list(self.db.team_data.aggregate([ {"$match": {"team_number": team}}, + COUNTED, *self._visible_records(user_id, team_number), {"$group": { "_id": "$team_number", @@ -545,6 +582,7 @@ def get_auto_paths(self, team: int, user_id, team_number) -> list[dict]: """A team's visible records that drew an auto path, newest match first.""" return list(self.db.team_data.aggregate([ {"$match": {"team_number": team}}, + COUNTED, SCOUTER_LOOKUP, {"$unwind": {"path": "$scouter", "preserveNullAndEmptyArrays": True}}, access_match(user_id, team_number), @@ -580,7 +618,7 @@ def get_leaderboard_events(self, user_id, team_number) -> list[dict]: def get_team_leaderboard(self, user_id, team_number, event="all", sort_field=None, min_matches=1) -> list[dict]: """Per-team averages over visible records; sorted descending by sort_field when given.""" - pipeline = self._visible_records(user_id, team_number) + pipeline = [COUNTED, *self._visible_records(user_id, team_number)] if event != 'all': pipeline.append({"$match": {"event_code": event}}) pipeline.extend([ diff --git a/app/static/css/tailwind.css b/app/static/css/tailwind.css index 3237c2e..e0cc5f6 100644 --- a/app/static/css/tailwind.css +++ b/app/static/css/tailwind.css @@ -1 +1 @@ -*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e4e4e7}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#a1a1aa}input::placeholder,textarea::placeholder{opacity:1;color:#a1a1aa}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}html{-webkit-tap-highlight-color:transparent}html.dark{color-scheme:dark}body{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body:is(.dark *){--tw-bg-opacity:1;background-color:rgb(9 9 11/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(244 244 245/var(--tw-text-opacity,1))}:focus-visible{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000);--tw-ring-color:rgba(59,130,246,.6);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff}:focus-visible:is(.dark *){--tw-ring-offset-color:#09090b}.\!container{width:100%!important}.container{width:100%}@media (min-width:640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width:768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width:1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width:1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width:1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.page-header{margin-bottom:1.5rem;display:flex;flex-direction:column;gap:1rem}@media (min-width:640px){.page-header{flex-direction:row;align-items:flex-end;justify-content:space-between}}.page-title{font-size:1.5rem;line-height:2rem;font-weight:600;letter-spacing:-.025em;--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.page-title:is(.dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.page-subtitle{margin-top:.25rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.page-subtitle:is(.dark *){--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.section-title{font-size:1rem;line-height:1.5rem;font-weight:600;--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.section-title:is(.dark *){--tw-text-opacity:1;color:rgb(244 244 245/var(--tw-text-opacity,1))}.\!card{border-radius:.75rem;border-width:1px;--tw-border-opacity:1;border-color:rgb(228 228 231/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.\!card:is(.dark *){--tw-border-opacity:1;border-color:rgb(39 39 42/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1))}.card{border-radius:.75rem;border-width:1px;--tw-border-opacity:1;border-color:rgb(228 228 231/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.card:is(.dark *){--tw-border-opacity:1;border-color:rgb(39 39 42/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1))}.card-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;border-bottom-width:1px;--tw-border-opacity:1;border-color:rgb(228 228 231/var(--tw-border-opacity,1));padding:.75rem 1rem}.card-header:is(.dark *){--tw-border-opacity:1;border-color:rgb(39 39 42/var(--tw-border-opacity,1))}@media (min-width:640px){.card-header{padding-left:1.25rem;padding-right:1.25rem}}.card-body{padding:1rem}@media (min-width:640px){.card-body{padding:1.25rem}}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;white-space:nowrap;border-radius:.5rem;padding:.5rem .875rem;font-size:.875rem;line-height:1.25rem;font-weight:500;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.btn:disabled{pointer-events:none;opacity:.5}.btn-primary{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1));--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.btn-primary:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity,1))}.btn-primary:active{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity,1))}.btn-secondary{border-width:1px;--tw-border-opacity:1;border-color:rgb(212 212 216/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(63 63 70/var(--tw-text-opacity,1));--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.btn-secondary:hover{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.btn-secondary:is(.dark *){--tw-border-opacity:1;border-color:rgb(63 63 70/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(228 228 231/var(--tw-text-opacity,1))}.btn-secondary:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.btn-ghost{--tw-text-opacity:1;color:rgb(82 82 91/var(--tw-text-opacity,1))}.btn-ghost:hover{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.btn-ghost:is(.dark *){--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.btn-ghost:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(244 244 245/var(--tw-text-opacity,1))}.btn-danger{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1));--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.btn-danger:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity,1))}.btn-danger:active{--tw-bg-opacity:1;background-color:rgb(153 27 27/var(--tw-bg-opacity,1))}.btn-sm{padding:.375rem .625rem;font-size:.75rem;line-height:1rem}.btn-lg{padding:.625rem 1.25rem;font-size:1rem;line-height:1.5rem}.btn-icon{padding:.5rem}.label{margin-bottom:.375rem;display:block;font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity:1;color:rgb(63 63 70/var(--tw-text-opacity,1))}.label:is(.dark *){--tw-text-opacity:1;color:rgb(212 212 216/var(--tw-text-opacity,1))}.input{display:block;width:100%;border-radius:.5rem;border-width:1px;--tw-border-opacity:1;border-color:rgb(212 212 216/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1));--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.input::-moz-placeholder{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.input::placeholder{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.input:focus{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1));outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000);--tw-ring-color:rgba(59,130,246,.2)}.input:is(.dark *){--tw-border-opacity:1;border-color:rgb(63 63 70/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(244 244 245/var(--tw-text-opacity,1))}.input:is(.dark *)::-moz-placeholder{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.input:is(.dark *)::placeholder{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}@media (min-width:640px){.input{font-size:.875rem;line-height:1.25rem}}.help{margin-top:.375rem;font-size:.75rem;line-height:1rem;--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.help:is(.dark *){--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.checkbox{height:1rem;width:1rem;border-radius:.25rem;--tw-border-opacity:1;border-color:rgb(212 212 216/var(--tw-border-opacity,1));--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1));accent-color:#2563eb}.checkbox:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.checkbox:is(.dark *){--tw-border-opacity:1;border-color:rgb(82 82 91/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.badge{display:inline-flex;align-items:center;gap:.25rem;border-radius:.375rem;padding:.125rem .5rem;font-size:.75rem;line-height:1rem;font-weight:500;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000);--tw-ring-inset:inset}.badge-gray{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(82 82 91/var(--tw-text-opacity,1));--tw-ring-color:hsla(240,4%,46%,.2)}.badge-gray:is(.dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(212 212 216/var(--tw-text-opacity,1));--tw-ring-opacity:1;--tw-ring-color:rgb(63 63 70/var(--tw-ring-opacity,1))}.badge-blue{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1));--tw-ring-color:rgba(37,99,235,.2)}.badge-blue:is(.dark *){background-color:rgba(59,130,246,.1);--tw-text-opacity:1;color:rgb(147 197 253/var(--tw-text-opacity,1));--tw-ring-color:rgba(59,130,246,.3)}.badge-red{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1));--tw-ring-color:rgba(220,38,38,.2)}.badge-red:is(.dark *){background-color:rgba(239,68,68,.1);--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1));--tw-ring-color:rgba(239,68,68,.3)}.badge-green{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity,1));--tw-ring-color:rgba(22,163,74,.2)}.badge-green:is(.dark *){background-color:rgba(34,197,94,.1);--tw-text-opacity:1;color:rgb(134 239 172/var(--tw-text-opacity,1));--tw-ring-color:rgba(34,197,94,.3)}.badge-amber{--tw-bg-opacity:1;background-color:rgb(255 251 235/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(146 64 14/var(--tw-text-opacity,1));--tw-ring-color:rgba(217,119,6,.2)}.badge-amber:is(.dark *){background-color:rgba(245,158,11,.1);--tw-text-opacity:1;color:rgb(252 211 77/var(--tw-text-opacity,1));--tw-ring-color:rgba(245,158,11,.3)}.table-wrap{position:relative;overflow-x:auto;border-radius:.75rem;border-width:1px;--tw-border-opacity:1;border-color:rgb(228 228 231/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.table-wrap:is(.dark *){--tw-border-opacity:1;border-color:rgb(39 39 42/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1))}.table{min-width:100%;text-align:left;font-size:.875rem;line-height:1.25rem}.table :where(thead th){white-space:nowrap;border-bottom-width:1px;--tw-border-opacity:1;border-color:rgb(228 228 231/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1));padding:.625rem .75rem;font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.table :where(thead th):is(.dark *){--tw-border-opacity:1;border-color:rgb(39 39 42/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.table :where(tbody td){white-space:nowrap;border-bottom-width:1px;--tw-border-opacity:1;border-color:rgb(244 244 245/var(--tw-border-opacity,1));padding:.625rem .75rem;--tw-text-opacity:1;color:rgb(63 63 70/var(--tw-text-opacity,1))}.table :where(tbody td):is(.dark *){border-color:rgba(39,39,42,.7);--tw-text-opacity:1;color:rgb(212 212 216/var(--tw-text-opacity,1))}.table :where(tbody tr:last-child td){border-bottom-width:0}.table :where(tbody tr){transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.table :where(tbody tr):hover{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.table :where(tbody tr):hover:is(.dark *){background-color:rgba(39,39,42,.5)}.link{font-weight:500;--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.link:hover{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.link:is(.dark *){--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.link:hover:is(.dark *){--tw-text-opacity:1;color:rgb(147 197 253/var(--tw-text-opacity,1))}.nav-link{border-radius:.375rem;padding:.375rem .75rem;font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity:1;color:rgb(82 82 91/var(--tw-text-opacity,1));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.nav-link:hover{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.nav-link:is(.dark *){--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.nav-link:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(244 244 245/var(--tw-text-opacity,1))}.nav-link-active{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.nav-link-active:is(.dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(244 244 245/var(--tw-text-opacity,1))}.menu-item{display:flex;width:100%;align-items:center;gap:.5rem;border-radius:.375rem;padding:.5rem .75rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(63 63 70/var(--tw-text-opacity,1))}.menu-item:hover{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.menu-item:is(.dark *){--tw-text-opacity:1;color:rgb(212 212 216/var(--tw-text-opacity,1))}.menu-item:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-4{left:1rem;right:1rem}.inset-y-0{top:0;bottom:0}.-right-2{right:-.5rem}.-top-2{top:-.5rem}.bottom-0{bottom:0}.bottom-4{bottom:1rem}.bottom-6{bottom:1.5rem}.left-0{left:0}.left-3{left:.75rem}.right-0{right:0}.right-6{right:1.5rem}.top-0{top:0}.top-1\/2{top:50%}.top-full{top:100%}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.col-span-3{grid-column:span 3/span 3}.-m-1{margin:-.25rem}.-mx-4{margin-left:-1rem;margin-right:-1rem}.-my-1{margin-top:-.25rem;margin-bottom:-.25rem}.-my-3{margin-top:-.75rem;margin-bottom:-.75rem}.-my-4{margin-top:-1rem;margin-bottom:-1rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-mr-1{margin-right:-.25rem}.-mr-2{margin-right:-.5rem}.mb-0{margin-bottom:0}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-\[16\/9\]{aspect-ratio:16/9}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-20{height:5rem}.h-28{height:7rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[360px\]{height:360px}.h-\[38px\]{height:38px}.h-\[400px\]{height:400px}.h-full{height:100%}.max-h-60{max-height:15rem}.max-h-80{max-height:20rem}.max-h-\[500px\]{max-height:500px}.max-h-\[600px\]{max-height:600px}.min-h-\[40px\]{min-height:40px}.min-h-\[44px\]{min-height:44px}.min-h-\[60vh\]{min-height:60vh}.min-h-screen{min-height:100vh}.w-0{width:0}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-1\/4{width:25%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-2\/4{width:50%}.w-20{width:5rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0}.min-w-\[1\.75rem\]{min-width:1.75rem}.min-w-\[10rem\]{min-width:10rem}.min-w-\[1200px\]{min-width:1200px}.min-w-\[13rem\]{min-width:13rem}.min-w-\[14rem\]{min-width:14rem}.min-w-\[9rem\]{min-width:9rem}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-7xl{max-width:80rem}.max-w-\[10rem\]{max-width:10rem}.max-w-\[140px\]{max-width:140px}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink{flex-shrink:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-y-1\/2{--tw-translate-y:-50%}.-translate-y-1\/2,.scale-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-0{--tw-scale-x:0;--tw-scale-y:0}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.scale-100,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.resize-none{resize:none}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.grid-cols-\[6\.25rem_6\.75rem\]{grid-template-columns:6.25rem 6.75rem}.grid-cols-\[auto_auto\]{grid-template-columns:auto auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-12{gap:3rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-32{gap:8rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-0\.5{row-gap:.125rem}.gap-y-1{row-gap:.25rem}.gap-y-3{row-gap:.75rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem*var(--tw-space-x-reverse));margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem*var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.375rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem*var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem*var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem*var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem*var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.25rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem*var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem*var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px*var(--tw-divide-y-reverse))}.divide-zinc-100>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(244 244 245/var(--tw-divide-opacity,1))}.divide-zinc-200>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(228 228 231/var(--tw-divide-opacity,1))}.self-start{align-self:flex-start}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.\!whitespace-normal{white-space:normal!important}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-b-xl{border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-r-sm{border-top-right-radius:.125rem;border-bottom-right-radius:.125rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-amber-200{--tw-border-opacity:1;border-color:rgb(253 230 138/var(--tw-border-opacity,1))}.border-blue-100{--tw-border-opacity:1;border-color:rgb(219 234 254/var(--tw-border-opacity,1))}.border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity,1))}.border-blue-500{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.border-blue-600{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity,1))}.border-blue-800{--tw-border-opacity:1;border-color:rgb(30 64 175/var(--tw-border-opacity,1))}.border-green-200{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity,1))}.border-green-500{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity,1))}.border-green-500\/40{border-color:rgba(34,197,94,.4)}.border-red-100{--tw-border-opacity:1;border-color:rgb(254 226 226/var(--tw-border-opacity,1))}.border-red-200{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity,1))}.border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.border-red-800{--tw-border-opacity:1;border-color:rgb(153 27 27/var(--tw-border-opacity,1))}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity,1))}.border-white\/40{border-color:hsla(0,0%,100%,.4)}.border-zinc-200{--tw-border-opacity:1;border-color:rgb(228 228 231/var(--tw-border-opacity,1))}.border-zinc-200\/80{border-color:hsla(240,6%,90%,.8)}.border-zinc-300{--tw-border-opacity:1;border-color:rgb(212 212 216/var(--tw-border-opacity,1))}.border-t-transparent{border-top-color:transparent}.border-t-white{--tw-border-opacity:1;border-top-color:rgb(255 255 255/var(--tw-border-opacity,1))}.bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 251 235/var(--tw-bg-opacity,1))}.bg-amber-50\/70{background-color:rgba(255,251,235,.7)}.bg-amber-500{--tw-bg-opacity:1;background-color:rgb(245 158 11/var(--tw-bg-opacity,1))}.bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.bg-blue-50\/60{background-color:rgba(239,246,255,.6)}.bg-blue-50\/70{background-color:rgba(239,246,255,.7)}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.bg-blue-800{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity,1))}.bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity,1))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity,1))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.bg-red-50\/60{background-color:hsla(0,86%,97%,.6)}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}.bg-red-800{--tw-bg-opacity:1;background-color:rgb(153 27 27/var(--tw-bg-opacity,1))}.bg-teal-500{--tw-bg-opacity:1;background-color:rgb(20 184 166/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white\/80{background-color:hsla(0,0%,100%,.8)}.bg-zinc-100{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.bg-zinc-200{--tw-bg-opacity:1;background-color:rgb(228 228 231/var(--tw-bg-opacity,1))}.bg-zinc-50{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.bg-zinc-50\/95{background-color:hsla(0,0%,98%,.95)}.bg-zinc-950\/50{background-color:rgba(9,9,11,.5)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.\!py-10{padding-top:2.5rem!important;padding-bottom:2.5rem!important}.px-0\.5{padding-left:.125rem;padding-right:.125rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pb-12{padding-bottom:3rem}.pb-5{padding-bottom:1.25rem}.pb-8{padding-bottom:2rem}.pl-1{padding-left:.25rem}.pl-9{padding-left:2.25rem}.pr-11{padding-right:2.75rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-4{padding-right:1rem}.pr-8{padding-right:2rem}.pr-9{padding-right:2.25rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-top{vertical-align:top}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\[10px\]{font-size:10px}.text-\[13px\]{font-size:13px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-6{line-height:1.5rem}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.\!text-blue-600{--tw-text-opacity:1!important;color:rgb(37 99 235/var(--tw-text-opacity,1))!important}.\!text-zinc-500{--tw-text-opacity:1!important;color:rgb(113 113 122/var(--tw-text-opacity,1))!important}.\!text-zinc-900{--tw-text-opacity:1!important;color:rgb(24 24 27/var(--tw-text-opacity,1))!important}.text-amber-500{--tw-text-opacity:1;color:rgb(245 158 11/var(--tw-text-opacity,1))}.text-amber-600{--tw-text-opacity:1;color:rgb(217 119 6/var(--tw-text-opacity,1))}.text-amber-800{--tw-text-opacity:1;color:rgb(146 64 14/var(--tw-text-opacity,1))}.text-blue-100{--tw-text-opacity:1;color:rgb(219 234 254/var(--tw-text-opacity,1))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.text-blue-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity,1))}.text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity,1))}.text-red-100{--tw-text-opacity:1;color:rgb(254 226 226/var(--tw-text-opacity,1))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}.text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.text-zinc-100{--tw-text-opacity:1;color:rgb(244 244 245/var(--tw-text-opacity,1))}.text-zinc-400{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.text-zinc-500{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.text-zinc-600{--tw-text-opacity:1;color:rgb(82 82 91/var(--tw-text-opacity,1))}.text-zinc-700{--tw-text-opacity:1;color:rgb(63 63 70/var(--tw-text-opacity,1))}.text-zinc-900{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.accent-blue-600{accent-color:#2563eb}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-25{opacity:.25}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-lg,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-1,.ring-2{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-inset{--tw-ring-inset:inset}.ring-amber-400{--tw-ring-opacity:1;--tw-ring-color:rgb(251 191 36/var(--tw-ring-opacity,1))}.ring-blue-600\/20{--tw-ring-color:rgba(37,99,235,.2)}.ring-red-600\/20{--tw-ring-color:rgba(220,38,38,.2)}.ring-zinc-200{--tw-ring-opacity:1;--tw-ring-color:rgb(228 228 231/var(--tw-ring-opacity,1))}.ring-offset-2{--tw-ring-offset-width:2px}.ring-offset-white{--tw-ring-offset-color:#fff}.grayscale{--tw-grayscale:grayscale(100%)}.grayscale,.invert{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert:invert(100%)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur:blur(8px)}.backdrop-blur,.backdrop-blur-md{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px)}.backdrop-blur-sm{--tw-backdrop-blur:blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.file\:mr-3::file-selector-button{margin-right:.75rem}.file\:cursor-pointer::file-selector-button{cursor:pointer}.file\:rounded-lg::file-selector-button{border-radius:.5rem}.file\:border::file-selector-button{border-width:1px}.file\:border-solid::file-selector-button{border-style:solid}.file\:border-zinc-300::file-selector-button{--tw-border-opacity:1;border-color:rgb(212 212 216/var(--tw-border-opacity,1))}.file\:bg-white::file-selector-button{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.file\:px-3::file-selector-button{padding-left:.75rem;padding-right:.75rem}.file\:py-2::file-selector-button{padding-top:.5rem;padding-bottom:.5rem}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-zinc-700::file-selector-button{--tw-text-opacity:1;color:rgb(63 63 70/var(--tw-text-opacity,1))}.first\:pt-0:first-child{padding-top:0}.last\:mb-0:last-child{margin-bottom:0}.last\:pb-0:last-child{padding-bottom:0}.empty\:mb-0:empty{margin-bottom:0}.hover\:border-zinc-300:hover{--tw-border-opacity:1;border-color:rgb(212 212 216/var(--tw-border-opacity,1))}.hover\:bg-black\/5:hover{background-color:rgba(0,0,0,.05)}.hover\:bg-blue-100:hover{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.hover\:bg-blue-50:hover{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.hover\:bg-blue-600:hover{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.hover\:bg-blue-700:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity,1))}.hover\:bg-red-50:hover{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.hover\:bg-zinc-100:hover{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.hover\:bg-zinc-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.hover\:text-blue-600:hover{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.hover\:text-red-600:hover{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.hover\:text-red-700:hover{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}.hover\:text-zinc-600:hover{--tw-text-opacity:1;color:rgb(82 82 91/var(--tw-text-opacity,1))}.hover\:text-zinc-900:hover{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.hover\:file\:bg-zinc-50::file-selector-button:hover{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.focus\:border-red-500:focus{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.focus\:ring-red-500\/20:focus{--tw-ring-color:rgba(239,68,68,.2)}.active\:bg-blue-800:active{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity,1))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-zinc-50:disabled{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.disabled\:text-zinc-400:disabled{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.disabled\:opacity-60:disabled{opacity:.6}.group:hover .group-hover\:text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.group:hover .group-hover\:text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.group:hover .group-hover\:opacity-100{opacity:1}.peer:checked~.peer-checked\:border-blue-500{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.peer:checked~.peer-checked\:border-blue-600{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity,1))}.peer:checked~.peer-checked\:border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.peer:checked~.peer-checked\:bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.peer:checked~.peer-checked\:text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.peer:checked~.peer-checked\:text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}.peer:focus-visible~.peer-focus-visible\:ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.peer:focus-visible~.peer-focus-visible\:ring-blue-500\/60{--tw-ring-color:rgba(59,130,246,.6)}.peer:focus-visible~.peer-focus-visible\:ring-offset-2{--tw-ring-offset-width:2px}.dark\:block:is(.dark *){display:block}.dark\:hidden:is(.dark *){display:none}.dark\:divide-zinc-800:is(.dark *)>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(39 39 42/var(--tw-divide-opacity,1))}.dark\:border-amber-500\/30:is(.dark *){border-color:rgba(245,158,11,.3)}.dark\:border-blue-500:is(.dark *){--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.dark\:border-blue-500\/30:is(.dark *){border-color:rgba(59,130,246,.3)}.dark\:border-green-500\/30:is(.dark *){border-color:rgba(34,197,94,.3)}.dark\:border-red-500:is(.dark *){--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.dark\:border-red-500\/30:is(.dark *){border-color:rgba(239,68,68,.3)}.dark\:border-zinc-600:is(.dark *){--tw-border-opacity:1;border-color:rgb(82 82 91/var(--tw-border-opacity,1))}.dark\:border-zinc-700:is(.dark *){--tw-border-opacity:1;border-color:rgb(63 63 70/var(--tw-border-opacity,1))}.dark\:border-zinc-800:is(.dark *){--tw-border-opacity:1;border-color:rgb(39 39 42/var(--tw-border-opacity,1))}.dark\:border-zinc-800\/80:is(.dark *){border-color:rgba(39,39,42,.8)}.dark\:bg-amber-500\/10:is(.dark *){background-color:rgba(245,158,11,.1)}.dark\:bg-amber-500\/5:is(.dark *){background-color:rgba(245,158,11,.05)}.dark\:bg-blue-500\/10:is(.dark *){background-color:rgba(59,130,246,.1)}.dark\:bg-blue-500\/5:is(.dark *){background-color:rgba(59,130,246,.05)}.dark\:bg-green-500\/10:is(.dark *){background-color:rgba(34,197,94,.1)}.dark\:bg-red-500\/10:is(.dark *){background-color:rgba(239,68,68,.1)}.dark\:bg-red-500\/5:is(.dark *){background-color:rgba(239,68,68,.05)}.dark\:bg-zinc-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\:bg-zinc-800\/40:is(.dark *){background-color:rgba(39,39,42,.4)}.dark\:bg-zinc-800\/50:is(.dark *){background-color:rgba(39,39,42,.5)}.dark\:bg-zinc-800\/60:is(.dark *){background-color:rgba(39,39,42,.6)}.dark\:bg-zinc-800\/70:is(.dark *){background-color:rgba(39,39,42,.7)}.dark\:bg-zinc-900:is(.dark *){--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1))}.dark\:bg-zinc-950\/40:is(.dark *){background-color:rgba(9,9,11,.4)}.dark\:bg-zinc-950\/80:is(.dark *){background-color:rgba(9,9,11,.8)}.dark\:bg-zinc-950\/95:is(.dark *){background-color:rgba(9,9,11,.95)}.dark\:\!text-blue-400:is(.dark *){--tw-text-opacity:1!important;color:rgb(96 165 250/var(--tw-text-opacity,1))!important}.dark\:\!text-zinc-100:is(.dark *){--tw-text-opacity:1!important;color:rgb(244 244 245/var(--tw-text-opacity,1))!important}.dark\:\!text-zinc-400:is(.dark *){--tw-text-opacity:1!important;color:rgb(161 161 170/var(--tw-text-opacity,1))!important}.dark\:text-amber-300:is(.dark *){--tw-text-opacity:1;color:rgb(252 211 77/var(--tw-text-opacity,1))}.dark\:text-amber-400:is(.dark *){--tw-text-opacity:1;color:rgb(251 191 36/var(--tw-text-opacity,1))}.dark\:text-blue-200:is(.dark *){--tw-text-opacity:1;color:rgb(191 219 254/var(--tw-text-opacity,1))}.dark\:text-blue-300:is(.dark *){--tw-text-opacity:1;color:rgb(147 197 253/var(--tw-text-opacity,1))}.dark\:text-blue-400:is(.dark *){--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.dark\:text-green-300:is(.dark *){--tw-text-opacity:1;color:rgb(134 239 172/var(--tw-text-opacity,1))}.dark\:text-green-400:is(.dark *){--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity,1))}.dark\:text-red-300:is(.dark *){--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1))}.dark\:text-red-400:is(.dark *){--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.dark\:text-zinc-100:is(.dark *){--tw-text-opacity:1;color:rgb(244 244 245/var(--tw-text-opacity,1))}.dark\:text-zinc-200:is(.dark *){--tw-text-opacity:1;color:rgb(228 228 231/var(--tw-text-opacity,1))}.dark\:text-zinc-300:is(.dark *){--tw-text-opacity:1;color:rgb(212 212 216/var(--tw-text-opacity,1))}.dark\:text-zinc-400:is(.dark *){--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.dark\:text-zinc-50:is(.dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\:text-zinc-500:is(.dark *){--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.dark\:ring-blue-500\/30:is(.dark *){--tw-ring-color:rgba(59,130,246,.3)}.dark\:ring-red-500\/30:is(.dark *){--tw-ring-color:rgba(239,68,68,.3)}.dark\:ring-zinc-700:is(.dark *){--tw-ring-opacity:1;--tw-ring-color:rgb(63 63 70/var(--tw-ring-opacity,1))}.dark\:ring-zinc-800:is(.dark *){--tw-ring-opacity:1;--tw-ring-color:rgb(39 39 42/var(--tw-ring-opacity,1))}.dark\:ring-offset-zinc-900:is(.dark *){--tw-ring-offset-color:#18181b}.dark\:ring-offset-zinc-950:is(.dark *){--tw-ring-offset-color:#09090b}.dark\:\[color-scheme\:dark\]:is(.dark *){color-scheme:dark}.dark\:file\:border-zinc-700:is(.dark *)::file-selector-button{--tw-border-opacity:1;border-color:rgb(63 63 70/var(--tw-border-opacity,1))}.dark\:file\:bg-zinc-900:is(.dark *)::file-selector-button{--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1))}.dark\:file\:text-zinc-200:is(.dark *)::file-selector-button{--tw-text-opacity:1;color:rgb(228 228 231/var(--tw-text-opacity,1))}.dark\:hover\:border-zinc-700:hover:is(.dark *){--tw-border-opacity:1;border-color:rgb(63 63 70/var(--tw-border-opacity,1))}.dark\:hover\:bg-blue-500\/20:hover:is(.dark *){background-color:rgba(59,130,246,.2)}.dark\:hover\:bg-red-500\/10:hover:is(.dark *){background-color:rgba(239,68,68,.1)}.dark\:hover\:bg-white\/10:hover:is(.dark *){background-color:hsla(0,0%,100%,.1)}.dark\:hover\:bg-zinc-800:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\:hover\:bg-zinc-800\/50:hover:is(.dark *){background-color:rgba(39,39,42,.5)}.dark\:hover\:bg-zinc-800\/60:hover:is(.dark *){background-color:rgba(39,39,42,.6)}.dark\:hover\:text-blue-400:hover:is(.dark *){--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.dark\:hover\:text-red-300:hover:is(.dark *){--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1))}.dark\:hover\:text-red-400:hover:is(.dark *){--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.dark\:hover\:text-zinc-100:hover:is(.dark *){--tw-text-opacity:1;color:rgb(244 244 245/var(--tw-text-opacity,1))}.dark\:hover\:text-zinc-200:hover:is(.dark *){--tw-text-opacity:1;color:rgb(228 228 231/var(--tw-text-opacity,1))}.dark\:hover\:text-zinc-300:hover:is(.dark *){--tw-text-opacity:1;color:rgb(212 212 216/var(--tw-text-opacity,1))}.dark\:hover\:file\:bg-zinc-800:is(.dark *)::file-selector-button:hover{--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\:disabled\:bg-zinc-800\/50:disabled:is(.dark *){background-color:rgba(39,39,42,.5)}.group:hover .dark\:group-hover\:text-blue-300:is(.dark *){--tw-text-opacity:1;color:rgb(147 197 253/var(--tw-text-opacity,1))}.group:hover .dark\:group-hover\:text-blue-400:is(.dark *){--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.peer:checked~.dark\:peer-checked\:border-blue-500:is(.dark *){--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.peer:checked~.dark\:peer-checked\:border-red-500:is(.dark *){--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.peer:checked~.dark\:peer-checked\:bg-blue-500\/10:is(.dark *){background-color:rgba(59,130,246,.1)}.peer:checked~.dark\:peer-checked\:text-blue-300:is(.dark *){--tw-text-opacity:1;color:rgb(147 197 253/var(--tw-text-opacity,1))}.peer:checked~.dark\:peer-checked\:text-blue-400:is(.dark *){--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.peer:checked~.dark\:peer-checked\:text-red-400:is(.dark *){--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}@media (min-width:640px){.sm\:static{position:static}.sm\:inset-x-auto{left:auto;right:auto}.sm\:bottom-6{bottom:1.5rem}.sm\:right-6{right:1.5rem}.sm\:mx-0{margin-left:0;margin-right:0}.sm\:my-16{margin-top:4rem;margin-bottom:4rem}.sm\:mb-2\.5{margin-bottom:.625rem}.sm\:ml-auto{margin-left:auto}.sm\:mt-16{margin-top:4rem}.sm\:block{display:block}.sm\:inline{display:inline}.sm\:flex{display:flex}.sm\:inline-flex{display:inline-flex}.sm\:table-cell{display:table-cell}.sm\:contents{display:contents}.sm\:hidden{display:none}.sm\:aspect-auto{aspect-ratio:auto}.sm\:h-9{height:2.25rem}.sm\:h-\[420px\]{height:420px}.sm\:h-\[480px\]{height:480px}.sm\:w-44{width:11rem}.sm\:w-64{width:16rem}.sm\:w-9{width:2.25rem}.sm\:w-96{width:24rem}.sm\:w-auto{width:auto}.sm\:min-w-\[7rem\]{min-width:7rem}.sm\:max-w-sm{max-width:24rem}.sm\:max-w-xs{max-width:20rem}.sm\:flex-1{flex:1 1 0%}.sm\:flex-none{flex:none}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:flex-wrap{flex-wrap:wrap}.sm\:items-end{align-items:flex-end}.sm\:items-center{align-items:center}.sm\:justify-end{justify-content:flex-end}.sm\:justify-between{justify-content:space-between}.sm\:gap-2{gap:.5rem}.sm\:gap-4{gap:1rem}.sm\:gap-6{gap:1.5rem}.sm\:self-auto{align-self:auto}.sm\:border-0{border-width:0}.sm\:border-l{border-left-width:1px}.sm\:border-t-0{border-top-width:0}.sm\:bg-transparent{background-color:transparent}.sm\:p-0{padding:0}.sm\:p-6{padding:1.5rem}.sm\:px-0{padding-left:0;padding-right:0}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:px-5{padding-left:1.25rem;padding-right:1.25rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-10{padding-top:2.5rem;padding-bottom:2.5rem}.sm\:py-2{padding-top:.5rem;padding-bottom:.5rem}.sm\:pb-0{padding-bottom:0}.sm\:pb-20{padding-bottom:5rem}.sm\:pt-12{padding-top:3rem}.sm\:text-left{text-align:left}.sm\:text-right{text-align:right}.sm\:text-5xl{font-size:3rem;line-height:1}.sm\:text-lg{font-size:1.125rem;line-height:1.75rem}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:backdrop-blur-none{--tw-backdrop-blur: ;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.sm\:dark\:bg-transparent:is(.dark *){background-color:transparent}}@media (min-width:768px){.md\:col-span-2{grid-column:span 2/span 2}.md\:mb-0{margin-bottom:0}.md\:flex{display:flex}.md\:w-72{width:18rem}.md\:w-\[4\.25rem\]{width:4.25rem}.md\:w-auto{width:auto}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:grid-cols-\[minmax\(0\2c 1fr\)_minmax\(0\2c 1\.5fr\)_auto\]{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) auto}.md\:items-end{align-items:flex-end}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:gap-6{gap:1.5rem}.md\:gap-8{gap:2rem}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-xs{font-size:.75rem;line-height:1rem}}@media (min-width:1024px){.lg\:col-span-1{grid-column:span 1/span 1}.lg\:col-span-2{grid-column:span 2/span 2}.lg\:max-h-\[680px\]{max-height:680px}.lg\:max-h-\[800px\]{max-height:800px}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:items-center{align-items:center}.lg\:justify-between{justify-content:space-between}.lg\:divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:0;border-right-width:calc(1px*var(--tw-divide-x-reverse));border-left-width:calc(1px*(1 - var(--tw-divide-x-reverse)))}.lg\:divide-y-0>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-top-width:calc(0px*(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(0px*var(--tw-divide-y-reverse))}}@media (min-width:1280px){.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.\[\&\.active\]\:border-blue-600.active{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity,1))}.\[\&\.active\]\:bg-blue-50.active{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.\[\&\.active\]\:bg-white.active{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.\[\&\.active\]\:text-blue-700.active{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.\[\&\.active\]\:text-zinc-900.active{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.\[\&\.active\]\:shadow-sm.active{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.dark\:\[\&\.active\]\:border-blue-500.active:is(.dark *){--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.dark\:\[\&\.active\]\:bg-blue-500\/15.active:is(.dark *){background-color:rgba(59,130,246,.15)}.dark\:\[\&\.active\]\:bg-zinc-700.active:is(.dark *){--tw-bg-opacity:1;background-color:rgb(63 63 70/var(--tw-bg-opacity,1))}.dark\:\[\&\.active\]\:text-blue-300.active:is(.dark *){--tw-text-opacity:1;color:rgb(147 197 253/var(--tw-text-opacity,1))}.dark\:\[\&\.active\]\:text-zinc-50.active:is(.dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))} \ No newline at end of file +*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e4e4e7}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#a1a1aa}input::placeholder,textarea::placeholder{opacity:1;color:#a1a1aa}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}html{-webkit-tap-highlight-color:transparent}html.dark{color-scheme:dark}body{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body:is(.dark *){--tw-bg-opacity:1;background-color:rgb(9 9 11/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(244 244 245/var(--tw-text-opacity,1))}:focus-visible{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000);--tw-ring-color:rgba(59,130,246,.6);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff}:focus-visible:is(.dark *){--tw-ring-offset-color:#09090b}.\!container{width:100%!important}.container{width:100%}@media (min-width:640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width:768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width:1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width:1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width:1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.page-header{margin-bottom:1.5rem;display:flex;flex-direction:column;gap:1rem}@media (min-width:640px){.page-header{flex-direction:row;align-items:flex-end;justify-content:space-between}}.page-title{font-size:1.5rem;line-height:2rem;font-weight:600;letter-spacing:-.025em;--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.page-title:is(.dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.page-subtitle{margin-top:.25rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.page-subtitle:is(.dark *){--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.section-title{font-size:1rem;line-height:1.5rem;font-weight:600;--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.section-title:is(.dark *){--tw-text-opacity:1;color:rgb(244 244 245/var(--tw-text-opacity,1))}.\!card{border-radius:.75rem;border-width:1px;--tw-border-opacity:1;border-color:rgb(228 228 231/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.\!card:is(.dark *){--tw-border-opacity:1;border-color:rgb(39 39 42/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1))}.card{border-radius:.75rem;border-width:1px;--tw-border-opacity:1;border-color:rgb(228 228 231/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.card:is(.dark *){--tw-border-opacity:1;border-color:rgb(39 39 42/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1))}.card-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;border-bottom-width:1px;--tw-border-opacity:1;border-color:rgb(228 228 231/var(--tw-border-opacity,1));padding:.75rem 1rem}.card-header:is(.dark *){--tw-border-opacity:1;border-color:rgb(39 39 42/var(--tw-border-opacity,1))}@media (min-width:640px){.card-header{padding-left:1.25rem;padding-right:1.25rem}}.card-body{padding:1rem}@media (min-width:640px){.card-body{padding:1.25rem}}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;white-space:nowrap;border-radius:.5rem;padding:.5rem .875rem;font-size:.875rem;line-height:1.25rem;font-weight:500;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.btn:disabled{pointer-events:none;opacity:.5}.btn-primary{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1));--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.btn-primary:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity,1))}.btn-primary:active{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity,1))}.btn-secondary{border-width:1px;--tw-border-opacity:1;border-color:rgb(212 212 216/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(63 63 70/var(--tw-text-opacity,1));--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.btn-secondary:hover{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.btn-secondary:is(.dark *){--tw-border-opacity:1;border-color:rgb(63 63 70/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(228 228 231/var(--tw-text-opacity,1))}.btn-secondary:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.btn-ghost{--tw-text-opacity:1;color:rgb(82 82 91/var(--tw-text-opacity,1))}.btn-ghost:hover{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.btn-ghost:is(.dark *){--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.btn-ghost:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(244 244 245/var(--tw-text-opacity,1))}.btn-danger{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1));--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.btn-danger:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity,1))}.btn-danger:active{--tw-bg-opacity:1;background-color:rgb(153 27 27/var(--tw-bg-opacity,1))}.btn-sm{padding:.375rem .625rem;font-size:.75rem;line-height:1rem}.btn-lg{padding:.625rem 1.25rem;font-size:1rem;line-height:1.5rem}.btn-icon{padding:.5rem}.\!label{margin-bottom:.375rem;display:block;font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity:1;color:rgb(63 63 70/var(--tw-text-opacity,1))}.\!label:is(.dark *){--tw-text-opacity:1;color:rgb(212 212 216/var(--tw-text-opacity,1))}.label{margin-bottom:.375rem;display:block;font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity:1;color:rgb(63 63 70/var(--tw-text-opacity,1))}.label:is(.dark *){--tw-text-opacity:1;color:rgb(212 212 216/var(--tw-text-opacity,1))}.input{display:block;width:100%;border-radius:.5rem;border-width:1px;--tw-border-opacity:1;border-color:rgb(212 212 216/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1));--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.input::-moz-placeholder{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.input::placeholder{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.input:focus{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1));outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000);--tw-ring-color:rgba(59,130,246,.2)}.input:is(.dark *){--tw-border-opacity:1;border-color:rgb(63 63 70/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(244 244 245/var(--tw-text-opacity,1))}.input:is(.dark *)::-moz-placeholder{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.input:is(.dark *)::placeholder{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}@media (min-width:640px){.input{font-size:.875rem;line-height:1.25rem}}.help{margin-top:.375rem;font-size:.75rem;line-height:1rem;--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.help:is(.dark *){--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.checkbox{height:1rem;width:1rem;border-radius:.25rem;--tw-border-opacity:1;border-color:rgb(212 212 216/var(--tw-border-opacity,1));--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1));accent-color:#2563eb}.checkbox:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.checkbox:is(.dark *){--tw-border-opacity:1;border-color:rgb(82 82 91/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.badge{display:inline-flex;align-items:center;gap:.25rem;border-radius:.375rem;padding:.125rem .5rem;font-size:.75rem;line-height:1rem;font-weight:500;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000);--tw-ring-inset:inset}.badge-gray{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(82 82 91/var(--tw-text-opacity,1));--tw-ring-color:hsla(240,4%,46%,.2)}.badge-gray:is(.dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(212 212 216/var(--tw-text-opacity,1));--tw-ring-opacity:1;--tw-ring-color:rgb(63 63 70/var(--tw-ring-opacity,1))}.badge-blue{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1));--tw-ring-color:rgba(37,99,235,.2)}.badge-blue:is(.dark *){background-color:rgba(59,130,246,.1);--tw-text-opacity:1;color:rgb(147 197 253/var(--tw-text-opacity,1));--tw-ring-color:rgba(59,130,246,.3)}.badge-red{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1));--tw-ring-color:rgba(220,38,38,.2)}.badge-red:is(.dark *){background-color:rgba(239,68,68,.1);--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1));--tw-ring-color:rgba(239,68,68,.3)}.badge-green{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity,1));--tw-ring-color:rgba(22,163,74,.2)}.badge-green:is(.dark *){background-color:rgba(34,197,94,.1);--tw-text-opacity:1;color:rgb(134 239 172/var(--tw-text-opacity,1));--tw-ring-color:rgba(34,197,94,.3)}.badge-amber{--tw-bg-opacity:1;background-color:rgb(255 251 235/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(146 64 14/var(--tw-text-opacity,1));--tw-ring-color:rgba(217,119,6,.2)}.badge-amber:is(.dark *){background-color:rgba(245,158,11,.1);--tw-text-opacity:1;color:rgb(252 211 77/var(--tw-text-opacity,1));--tw-ring-color:rgba(245,158,11,.3)}.table-wrap{position:relative;overflow-x:auto;border-radius:.75rem;border-width:1px;--tw-border-opacity:1;border-color:rgb(228 228 231/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.table-wrap:is(.dark *){--tw-border-opacity:1;border-color:rgb(39 39 42/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1))}.table{min-width:100%;text-align:left;font-size:.875rem;line-height:1.25rem}.table :where(thead th){white-space:nowrap;border-bottom-width:1px;--tw-border-opacity:1;border-color:rgb(228 228 231/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1));padding:.625rem .75rem;font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.table :where(thead th):is(.dark *){--tw-border-opacity:1;border-color:rgb(39 39 42/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.table :where(tbody td){white-space:nowrap;border-bottom-width:1px;--tw-border-opacity:1;border-color:rgb(244 244 245/var(--tw-border-opacity,1));padding:.625rem .75rem;--tw-text-opacity:1;color:rgb(63 63 70/var(--tw-text-opacity,1))}.table :where(tbody td):is(.dark *){border-color:rgba(39,39,42,.7);--tw-text-opacity:1;color:rgb(212 212 216/var(--tw-text-opacity,1))}.table :where(tbody tr:last-child td){border-bottom-width:0}.table :where(tbody tr){transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.table :where(tbody tr):hover{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.table :where(tbody tr):hover:is(.dark *){background-color:rgba(39,39,42,.5)}.link{font-weight:500;--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.link:hover{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.link:is(.dark *){--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.link:hover:is(.dark *){--tw-text-opacity:1;color:rgb(147 197 253/var(--tw-text-opacity,1))}.nav-link{border-radius:.375rem;padding:.375rem .75rem;font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity:1;color:rgb(82 82 91/var(--tw-text-opacity,1));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.nav-link:hover{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.nav-link:is(.dark *){--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.nav-link:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(244 244 245/var(--tw-text-opacity,1))}.nav-link-active{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.nav-link-active:is(.dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1));--tw-text-opacity:1;color:rgb(244 244 245/var(--tw-text-opacity,1))}.menu-item{display:flex;width:100%;align-items:center;gap:.5rem;border-radius:.375rem;padding:.5rem .75rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(63 63 70/var(--tw-text-opacity,1))}.menu-item:hover{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.menu-item:is(.dark *){--tw-text-opacity:1;color:rgb(212 212 216/var(--tw-text-opacity,1))}.menu-item:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-4{left:1rem;right:1rem}.inset-y-0{top:0;bottom:0}.-right-2{right:-.5rem}.-top-2{top:-.5rem}.bottom-0{bottom:0}.bottom-4{bottom:1rem}.bottom-6{bottom:1.5rem}.left-0{left:0}.left-3{left:.75rem}.right-0{right:0}.right-6{right:1.5rem}.top-0{top:0}.top-1\/2{top:50%}.top-full{top:100%}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.col-span-3{grid-column:span 3/span 3}.-m-1{margin:-.25rem}.-mx-4{margin-left:-1rem;margin-right:-1rem}.-my-1{margin-top:-.25rem;margin-bottom:-.25rem}.-my-3{margin-top:-.75rem;margin-bottom:-.75rem}.-my-4{margin-top:-1rem;margin-bottom:-1rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-mr-1{margin-right:-.25rem}.-mr-2{margin-right:-.5rem}.mb-0{margin-bottom:0}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-\[16\/9\]{aspect-ratio:16/9}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-20{height:5rem}.h-28{height:7rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[360px\]{height:360px}.h-\[38px\]{height:38px}.h-\[400px\]{height:400px}.h-full{height:100%}.max-h-60{max-height:15rem}.max-h-80{max-height:20rem}.max-h-\[500px\]{max-height:500px}.max-h-\[600px\]{max-height:600px}.min-h-\[40px\]{min-height:40px}.min-h-\[44px\]{min-height:44px}.min-h-\[60vh\]{min-height:60vh}.min-h-screen{min-height:100vh}.w-0{width:0}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-1\/4{width:25%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-2\/4{width:50%}.w-20{width:5rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0}.min-w-\[1\.75rem\]{min-width:1.75rem}.min-w-\[10rem\]{min-width:10rem}.min-w-\[1200px\]{min-width:1200px}.min-w-\[13rem\]{min-width:13rem}.min-w-\[14rem\]{min-width:14rem}.min-w-\[9rem\]{min-width:9rem}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-7xl{max-width:80rem}.max-w-\[10rem\]{max-width:10rem}.max-w-\[140px\]{max-width:140px}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink{flex-shrink:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-y-1\/2{--tw-translate-y:-50%}.-translate-y-1\/2,.scale-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-0{--tw-scale-x:0;--tw-scale-y:0}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.scale-100,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.resize-none{resize:none}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.grid-cols-\[6\.25rem_6\.75rem\]{grid-template-columns:6.25rem 6.75rem}.grid-cols-\[auto_auto\]{grid-template-columns:auto auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-12{gap:3rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-32{gap:8rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-0\.5{row-gap:.125rem}.gap-y-1{row-gap:.25rem}.gap-y-3{row-gap:.75rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem*var(--tw-space-x-reverse));margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem*var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.375rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem*var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem*var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem*var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem*var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.25rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem*var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem*var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px*var(--tw-divide-y-reverse))}.divide-zinc-100>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(244 244 245/var(--tw-divide-opacity,1))}.divide-zinc-200>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(228 228 231/var(--tw-divide-opacity,1))}.self-start{align-self:flex-start}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.\!whitespace-normal{white-space:normal!important}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-b-xl{border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-r-sm{border-top-right-radius:.125rem;border-bottom-right-radius:.125rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-amber-200{--tw-border-opacity:1;border-color:rgb(253 230 138/var(--tw-border-opacity,1))}.border-blue-100{--tw-border-opacity:1;border-color:rgb(219 234 254/var(--tw-border-opacity,1))}.border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity,1))}.border-blue-500{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.border-blue-600{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity,1))}.border-blue-800{--tw-border-opacity:1;border-color:rgb(30 64 175/var(--tw-border-opacity,1))}.border-green-200{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity,1))}.border-green-500{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity,1))}.border-green-500\/40{border-color:rgba(34,197,94,.4)}.border-red-100{--tw-border-opacity:1;border-color:rgb(254 226 226/var(--tw-border-opacity,1))}.border-red-200{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity,1))}.border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.border-red-800{--tw-border-opacity:1;border-color:rgb(153 27 27/var(--tw-border-opacity,1))}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity,1))}.border-white\/40{border-color:hsla(0,0%,100%,.4)}.border-zinc-200{--tw-border-opacity:1;border-color:rgb(228 228 231/var(--tw-border-opacity,1))}.border-zinc-200\/80{border-color:hsla(240,6%,90%,.8)}.border-zinc-300{--tw-border-opacity:1;border-color:rgb(212 212 216/var(--tw-border-opacity,1))}.border-t-transparent{border-top-color:transparent}.border-t-white{--tw-border-opacity:1;border-top-color:rgb(255 255 255/var(--tw-border-opacity,1))}.bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 251 235/var(--tw-bg-opacity,1))}.bg-amber-50\/70{background-color:rgba(255,251,235,.7)}.bg-amber-500{--tw-bg-opacity:1;background-color:rgb(245 158 11/var(--tw-bg-opacity,1))}.bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.bg-blue-50\/60{background-color:rgba(239,246,255,.6)}.bg-blue-50\/70{background-color:rgba(239,246,255,.7)}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.bg-blue-800{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity,1))}.bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity,1))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity,1))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.bg-red-50\/60{background-color:hsla(0,86%,97%,.6)}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}.bg-red-800{--tw-bg-opacity:1;background-color:rgb(153 27 27/var(--tw-bg-opacity,1))}.bg-teal-500{--tw-bg-opacity:1;background-color:rgb(20 184 166/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white\/80{background-color:hsla(0,0%,100%,.8)}.bg-zinc-100{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.bg-zinc-200{--tw-bg-opacity:1;background-color:rgb(228 228 231/var(--tw-bg-opacity,1))}.bg-zinc-50{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.bg-zinc-50\/95{background-color:hsla(0,0%,98%,.95)}.bg-zinc-950\/50{background-color:rgba(9,9,11,.5)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.\!py-10{padding-top:2.5rem!important;padding-bottom:2.5rem!important}.px-0\.5{padding-left:.125rem;padding-right:.125rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pb-12{padding-bottom:3rem}.pb-5{padding-bottom:1.25rem}.pb-8{padding-bottom:2rem}.pl-1{padding-left:.25rem}.pl-9{padding-left:2.25rem}.pr-11{padding-right:2.75rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-4{padding-right:1rem}.pr-8{padding-right:2rem}.pr-9{padding-right:2.25rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-top{vertical-align:top}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\[10px\]{font-size:10px}.text-\[13px\]{font-size:13px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-6{line-height:1.5rem}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.\!text-blue-600{--tw-text-opacity:1!important;color:rgb(37 99 235/var(--tw-text-opacity,1))!important}.\!text-zinc-500{--tw-text-opacity:1!important;color:rgb(113 113 122/var(--tw-text-opacity,1))!important}.\!text-zinc-900{--tw-text-opacity:1!important;color:rgb(24 24 27/var(--tw-text-opacity,1))!important}.text-amber-500{--tw-text-opacity:1;color:rgb(245 158 11/var(--tw-text-opacity,1))}.text-amber-600{--tw-text-opacity:1;color:rgb(217 119 6/var(--tw-text-opacity,1))}.text-amber-800{--tw-text-opacity:1;color:rgb(146 64 14/var(--tw-text-opacity,1))}.text-blue-100{--tw-text-opacity:1;color:rgb(219 234 254/var(--tw-text-opacity,1))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.text-blue-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity,1))}.text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity,1))}.text-red-100{--tw-text-opacity:1;color:rgb(254 226 226/var(--tw-text-opacity,1))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}.text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.text-zinc-100{--tw-text-opacity:1;color:rgb(244 244 245/var(--tw-text-opacity,1))}.text-zinc-400{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.text-zinc-500{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.text-zinc-600{--tw-text-opacity:1;color:rgb(82 82 91/var(--tw-text-opacity,1))}.text-zinc-700{--tw-text-opacity:1;color:rgb(63 63 70/var(--tw-text-opacity,1))}.text-zinc-900{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.accent-blue-600{accent-color:#2563eb}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-25{opacity:.25}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-lg,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-1,.ring-2{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-inset{--tw-ring-inset:inset}.ring-amber-400{--tw-ring-opacity:1;--tw-ring-color:rgb(251 191 36/var(--tw-ring-opacity,1))}.ring-blue-600\/20{--tw-ring-color:rgba(37,99,235,.2)}.ring-red-600\/20{--tw-ring-color:rgba(220,38,38,.2)}.ring-zinc-200{--tw-ring-opacity:1;--tw-ring-color:rgb(228 228 231/var(--tw-ring-opacity,1))}.ring-offset-2{--tw-ring-offset-width:2px}.ring-offset-white{--tw-ring-offset-color:#fff}.grayscale{--tw-grayscale:grayscale(100%)}.grayscale,.invert{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert:invert(100%)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur:blur(8px)}.backdrop-blur,.backdrop-blur-md{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px)}.backdrop-blur-sm{--tw-backdrop-blur:blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.file\:mr-3::file-selector-button{margin-right:.75rem}.file\:cursor-pointer::file-selector-button{cursor:pointer}.file\:rounded-lg::file-selector-button{border-radius:.5rem}.file\:border::file-selector-button{border-width:1px}.file\:border-solid::file-selector-button{border-style:solid}.file\:border-zinc-300::file-selector-button{--tw-border-opacity:1;border-color:rgb(212 212 216/var(--tw-border-opacity,1))}.file\:bg-white::file-selector-button{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.file\:px-3::file-selector-button{padding-left:.75rem;padding-right:.75rem}.file\:py-2::file-selector-button{padding-top:.5rem;padding-bottom:.5rem}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-zinc-700::file-selector-button{--tw-text-opacity:1;color:rgb(63 63 70/var(--tw-text-opacity,1))}.first\:pt-0:first-child{padding-top:0}.last\:mb-0:last-child{margin-bottom:0}.last\:pb-0:last-child{padding-bottom:0}.empty\:mb-0:empty{margin-bottom:0}.empty\:hidden:empty{display:none}.hover\:border-zinc-300:hover{--tw-border-opacity:1;border-color:rgb(212 212 216/var(--tw-border-opacity,1))}.hover\:bg-black\/5:hover{background-color:rgba(0,0,0,.05)}.hover\:bg-blue-100:hover{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.hover\:bg-blue-50:hover{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.hover\:bg-blue-600:hover{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.hover\:bg-blue-700:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity,1))}.hover\:bg-red-50:hover{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.hover\:bg-zinc-100:hover{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.hover\:bg-zinc-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.hover\:text-blue-600:hover{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.hover\:text-red-600:hover{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.hover\:text-red-700:hover{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}.hover\:text-zinc-600:hover{--tw-text-opacity:1;color:rgb(82 82 91/var(--tw-text-opacity,1))}.hover\:text-zinc-900:hover{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.hover\:file\:bg-zinc-50::file-selector-button:hover{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.focus\:border-red-500:focus{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.focus\:ring-red-500\/20:focus{--tw-ring-color:rgba(239,68,68,.2)}.active\:bg-blue-800:active{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity,1))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-zinc-50:disabled{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.disabled\:text-zinc-400:disabled{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.disabled\:opacity-60:disabled{opacity:.6}.group:hover .group-hover\:text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.group:hover .group-hover\:text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.group:hover .group-hover\:opacity-100{opacity:1}.peer:checked~.peer-checked\:border-blue-500{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.peer:checked~.peer-checked\:border-blue-600{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity,1))}.peer:checked~.peer-checked\:border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.peer:checked~.peer-checked\:bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.peer:checked~.peer-checked\:text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.peer:checked~.peer-checked\:text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}.peer:focus-visible~.peer-focus-visible\:ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.peer:focus-visible~.peer-focus-visible\:ring-blue-500\/60{--tw-ring-color:rgba(59,130,246,.6)}.peer:focus-visible~.peer-focus-visible\:ring-offset-2{--tw-ring-offset-width:2px}.dark\:block:is(.dark *){display:block}.dark\:hidden:is(.dark *){display:none}.dark\:divide-zinc-800:is(.dark *)>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(39 39 42/var(--tw-divide-opacity,1))}.dark\:border-amber-500\/30:is(.dark *){border-color:rgba(245,158,11,.3)}.dark\:border-blue-500:is(.dark *){--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.dark\:border-blue-500\/30:is(.dark *){border-color:rgba(59,130,246,.3)}.dark\:border-green-500\/30:is(.dark *){border-color:rgba(34,197,94,.3)}.dark\:border-red-500:is(.dark *){--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.dark\:border-red-500\/30:is(.dark *){border-color:rgba(239,68,68,.3)}.dark\:border-zinc-600:is(.dark *){--tw-border-opacity:1;border-color:rgb(82 82 91/var(--tw-border-opacity,1))}.dark\:border-zinc-700:is(.dark *){--tw-border-opacity:1;border-color:rgb(63 63 70/var(--tw-border-opacity,1))}.dark\:border-zinc-800:is(.dark *){--tw-border-opacity:1;border-color:rgb(39 39 42/var(--tw-border-opacity,1))}.dark\:border-zinc-800\/80:is(.dark *){border-color:rgba(39,39,42,.8)}.dark\:bg-amber-500\/10:is(.dark *){background-color:rgba(245,158,11,.1)}.dark\:bg-amber-500\/5:is(.dark *){background-color:rgba(245,158,11,.05)}.dark\:bg-blue-500\/10:is(.dark *){background-color:rgba(59,130,246,.1)}.dark\:bg-blue-500\/5:is(.dark *){background-color:rgba(59,130,246,.05)}.dark\:bg-green-500\/10:is(.dark *){background-color:rgba(34,197,94,.1)}.dark\:bg-red-500\/10:is(.dark *){background-color:rgba(239,68,68,.1)}.dark\:bg-red-500\/5:is(.dark *){background-color:rgba(239,68,68,.05)}.dark\:bg-zinc-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\:bg-zinc-800\/40:is(.dark *){background-color:rgba(39,39,42,.4)}.dark\:bg-zinc-800\/50:is(.dark *){background-color:rgba(39,39,42,.5)}.dark\:bg-zinc-800\/60:is(.dark *){background-color:rgba(39,39,42,.6)}.dark\:bg-zinc-800\/70:is(.dark *){background-color:rgba(39,39,42,.7)}.dark\:bg-zinc-900:is(.dark *){--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1))}.dark\:bg-zinc-950\/40:is(.dark *){background-color:rgba(9,9,11,.4)}.dark\:bg-zinc-950\/80:is(.dark *){background-color:rgba(9,9,11,.8)}.dark\:bg-zinc-950\/95:is(.dark *){background-color:rgba(9,9,11,.95)}.dark\:\!text-blue-400:is(.dark *){--tw-text-opacity:1!important;color:rgb(96 165 250/var(--tw-text-opacity,1))!important}.dark\:\!text-zinc-100:is(.dark *){--tw-text-opacity:1!important;color:rgb(244 244 245/var(--tw-text-opacity,1))!important}.dark\:\!text-zinc-400:is(.dark *){--tw-text-opacity:1!important;color:rgb(161 161 170/var(--tw-text-opacity,1))!important}.dark\:text-amber-300:is(.dark *){--tw-text-opacity:1;color:rgb(252 211 77/var(--tw-text-opacity,1))}.dark\:text-amber-400:is(.dark *){--tw-text-opacity:1;color:rgb(251 191 36/var(--tw-text-opacity,1))}.dark\:text-blue-200:is(.dark *){--tw-text-opacity:1;color:rgb(191 219 254/var(--tw-text-opacity,1))}.dark\:text-blue-300:is(.dark *){--tw-text-opacity:1;color:rgb(147 197 253/var(--tw-text-opacity,1))}.dark\:text-blue-400:is(.dark *){--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.dark\:text-green-300:is(.dark *){--tw-text-opacity:1;color:rgb(134 239 172/var(--tw-text-opacity,1))}.dark\:text-green-400:is(.dark *){--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity,1))}.dark\:text-red-300:is(.dark *){--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1))}.dark\:text-red-400:is(.dark *){--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.dark\:text-zinc-100:is(.dark *){--tw-text-opacity:1;color:rgb(244 244 245/var(--tw-text-opacity,1))}.dark\:text-zinc-200:is(.dark *){--tw-text-opacity:1;color:rgb(228 228 231/var(--tw-text-opacity,1))}.dark\:text-zinc-300:is(.dark *){--tw-text-opacity:1;color:rgb(212 212 216/var(--tw-text-opacity,1))}.dark\:text-zinc-400:is(.dark *){--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.dark\:text-zinc-50:is(.dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))}.dark\:text-zinc-500:is(.dark *){--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.dark\:ring-blue-500\/30:is(.dark *){--tw-ring-color:rgba(59,130,246,.3)}.dark\:ring-red-500\/30:is(.dark *){--tw-ring-color:rgba(239,68,68,.3)}.dark\:ring-zinc-700:is(.dark *){--tw-ring-opacity:1;--tw-ring-color:rgb(63 63 70/var(--tw-ring-opacity,1))}.dark\:ring-zinc-800:is(.dark *){--tw-ring-opacity:1;--tw-ring-color:rgb(39 39 42/var(--tw-ring-opacity,1))}.dark\:ring-offset-zinc-900:is(.dark *){--tw-ring-offset-color:#18181b}.dark\:ring-offset-zinc-950:is(.dark *){--tw-ring-offset-color:#09090b}.dark\:\[color-scheme\:dark\]:is(.dark *){color-scheme:dark}.dark\:file\:border-zinc-700:is(.dark *)::file-selector-button{--tw-border-opacity:1;border-color:rgb(63 63 70/var(--tw-border-opacity,1))}.dark\:file\:bg-zinc-900:is(.dark *)::file-selector-button{--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity,1))}.dark\:file\:text-zinc-200:is(.dark *)::file-selector-button{--tw-text-opacity:1;color:rgb(228 228 231/var(--tw-text-opacity,1))}.dark\:hover\:border-zinc-700:hover:is(.dark *){--tw-border-opacity:1;border-color:rgb(63 63 70/var(--tw-border-opacity,1))}.dark\:hover\:bg-blue-500\/20:hover:is(.dark *){background-color:rgba(59,130,246,.2)}.dark\:hover\:bg-red-500\/10:hover:is(.dark *){background-color:rgba(239,68,68,.1)}.dark\:hover\:bg-white\/10:hover:is(.dark *){background-color:hsla(0,0%,100%,.1)}.dark\:hover\:bg-zinc-800:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\:hover\:bg-zinc-800\/50:hover:is(.dark *){background-color:rgba(39,39,42,.5)}.dark\:hover\:bg-zinc-800\/60:hover:is(.dark *){background-color:rgba(39,39,42,.6)}.dark\:hover\:text-blue-400:hover:is(.dark *){--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.dark\:hover\:text-red-300:hover:is(.dark *){--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1))}.dark\:hover\:text-red-400:hover:is(.dark *){--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.dark\:hover\:text-zinc-100:hover:is(.dark *){--tw-text-opacity:1;color:rgb(244 244 245/var(--tw-text-opacity,1))}.dark\:hover\:text-zinc-200:hover:is(.dark *){--tw-text-opacity:1;color:rgb(228 228 231/var(--tw-text-opacity,1))}.dark\:hover\:text-zinc-300:hover:is(.dark *){--tw-text-opacity:1;color:rgb(212 212 216/var(--tw-text-opacity,1))}.dark\:hover\:file\:bg-zinc-800:is(.dark *)::file-selector-button:hover{--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity,1))}.dark\:disabled\:bg-zinc-800\/50:disabled:is(.dark *){background-color:rgba(39,39,42,.5)}.group:hover .dark\:group-hover\:text-blue-300:is(.dark *){--tw-text-opacity:1;color:rgb(147 197 253/var(--tw-text-opacity,1))}.group:hover .dark\:group-hover\:text-blue-400:is(.dark *){--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.peer:checked~.dark\:peer-checked\:border-blue-500:is(.dark *){--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.peer:checked~.dark\:peer-checked\:border-red-500:is(.dark *){--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.peer:checked~.dark\:peer-checked\:bg-blue-500\/10:is(.dark *){background-color:rgba(59,130,246,.1)}.peer:checked~.dark\:peer-checked\:text-blue-300:is(.dark *){--tw-text-opacity:1;color:rgb(147 197 253/var(--tw-text-opacity,1))}.peer:checked~.dark\:peer-checked\:text-blue-400:is(.dark *){--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.peer:checked~.dark\:peer-checked\:text-red-400:is(.dark *){--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}@media (min-width:640px){.sm\:static{position:static}.sm\:inset-x-auto{left:auto;right:auto}.sm\:bottom-6{bottom:1.5rem}.sm\:right-6{right:1.5rem}.sm\:mx-0{margin-left:0;margin-right:0}.sm\:my-16{margin-top:4rem;margin-bottom:4rem}.sm\:mb-2\.5{margin-bottom:.625rem}.sm\:ml-auto{margin-left:auto}.sm\:mt-16{margin-top:4rem}.sm\:block{display:block}.sm\:inline{display:inline}.sm\:flex{display:flex}.sm\:inline-flex{display:inline-flex}.sm\:table-cell{display:table-cell}.sm\:contents{display:contents}.sm\:hidden{display:none}.sm\:aspect-auto{aspect-ratio:auto}.sm\:h-9{height:2.25rem}.sm\:h-\[420px\]{height:420px}.sm\:h-\[480px\]{height:480px}.sm\:w-44{width:11rem}.sm\:w-64{width:16rem}.sm\:w-9{width:2.25rem}.sm\:w-96{width:24rem}.sm\:w-auto{width:auto}.sm\:min-w-\[7rem\]{min-width:7rem}.sm\:max-w-sm{max-width:24rem}.sm\:max-w-xs{max-width:20rem}.sm\:flex-1{flex:1 1 0%}.sm\:flex-none{flex:none}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:flex-wrap{flex-wrap:wrap}.sm\:items-end{align-items:flex-end}.sm\:items-center{align-items:center}.sm\:justify-end{justify-content:flex-end}.sm\:justify-between{justify-content:space-between}.sm\:gap-2{gap:.5rem}.sm\:gap-4{gap:1rem}.sm\:gap-6{gap:1.5rem}.sm\:self-auto{align-self:auto}.sm\:border-0{border-width:0}.sm\:border-l{border-left-width:1px}.sm\:border-t-0{border-top-width:0}.sm\:bg-transparent{background-color:transparent}.sm\:p-0{padding:0}.sm\:p-6{padding:1.5rem}.sm\:px-0{padding-left:0;padding-right:0}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:px-5{padding-left:1.25rem;padding-right:1.25rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-10{padding-top:2.5rem;padding-bottom:2.5rem}.sm\:py-2{padding-top:.5rem;padding-bottom:.5rem}.sm\:pb-0{padding-bottom:0}.sm\:pb-20{padding-bottom:5rem}.sm\:pt-12{padding-top:3rem}.sm\:text-left{text-align:left}.sm\:text-right{text-align:right}.sm\:text-5xl{font-size:3rem;line-height:1}.sm\:text-lg{font-size:1.125rem;line-height:1.75rem}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:backdrop-blur-none{--tw-backdrop-blur: ;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.sm\:dark\:bg-transparent:is(.dark *){background-color:transparent}}@media (min-width:768px){.md\:col-span-2{grid-column:span 2/span 2}.md\:mb-0{margin-bottom:0}.md\:flex{display:flex}.md\:w-72{width:18rem}.md\:w-\[4\.25rem\]{width:4.25rem}.md\:w-auto{width:auto}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:grid-cols-\[minmax\(0\2c 1fr\)_minmax\(0\2c 1\.5fr\)_auto\]{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) auto}.md\:items-end{align-items:flex-end}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:gap-6{gap:1.5rem}.md\:gap-8{gap:2rem}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-xs{font-size:.75rem;line-height:1rem}}@media (min-width:1024px){.lg\:col-span-1{grid-column:span 1/span 1}.lg\:col-span-2{grid-column:span 2/span 2}.lg\:max-h-\[680px\]{max-height:680px}.lg\:max-h-\[800px\]{max-height:800px}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:items-center{align-items:center}.lg\:justify-between{justify-content:space-between}.lg\:divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:0;border-right-width:calc(1px*var(--tw-divide-x-reverse));border-left-width:calc(1px*(1 - var(--tw-divide-x-reverse)))}.lg\:divide-y-0>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-top-width:calc(0px*(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(0px*var(--tw-divide-y-reverse))}}@media (min-width:1280px){.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.\[\&\.active\]\:border-blue-600.active{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity,1))}.\[\&\.active\]\:bg-blue-50.active{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.\[\&\.active\]\:bg-white.active{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.\[\&\.active\]\:text-blue-700.active{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.\[\&\.active\]\:text-zinc-900.active{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.\[\&\.active\]\:shadow-sm.active{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.dark\:\[\&\.active\]\:border-blue-500.active:is(.dark *){--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.dark\:\[\&\.active\]\:bg-blue-500\/15.active:is(.dark *){background-color:rgba(59,130,246,.15)}.dark\:\[\&\.active\]\:bg-zinc-700.active:is(.dark *){--tw-bg-opacity:1;background-color:rgb(63 63 70/var(--tw-bg-opacity,1))}.dark\:\[\&\.active\]\:text-blue-300.active:is(.dark *){--tw-text-opacity:1;color:rgb(147 197 253/var(--tw-text-opacity,1))}.dark\:\[\&\.active\]\:text-zinc-50.active:is(.dark *){--tw-text-opacity:1;color:rgb(250 250 250/var(--tw-text-opacity,1))} \ No newline at end of file diff --git a/app/static/js/scout/add-flow.js b/app/static/js/scout/add-flow.js new file mode 100644 index 0000000..a4980ec --- /dev/null +++ b/app/static/js/scout/add-flow.js @@ -0,0 +1,59 @@ +// Add-form drafts and next-match selection. Pure functions; storage may be null or throw +// (private mode, quota), in which case drafts are silently unavailable. +const DRAFT_MAX_AGE_MS = 86400000; + +function draftKey(userId) { + return "castle:scout-drafts:" + userId; +} + +function loadDrafts(storage, userId, now = Date.now()) { + try { + const drafts = JSON.parse(storage.getItem(draftKey(userId)) || "{}"); + if (!drafts || typeof drafts !== "object" || Array.isArray(drafts)) return {}; + const kept = {}; + for (const [id, draft] of Object.entries(drafts)) { + if (draft && now - draft.savedAt <= DRAFT_MAX_AGE_MS) kept[id] = draft; + } + if (Object.keys(kept).length !== Object.keys(drafts).length) { + storage.setItem(draftKey(userId), JSON.stringify(kept)); + } + return kept; + } catch { + return {}; + } +} + +function saveDraft(storage, userId, id, draft, now = Date.now()) { + try { + const drafts = loadDrafts(storage, userId, now); + drafts[id] = {...draft, savedAt: now}; + storage.setItem(draftKey(userId), JSON.stringify(drafts)); + } catch {} +} + +function removeDraft(storage, userId, id) { + try { + const drafts = loadDrafts(storage, userId); + if (!(id in drafts)) return; + delete drafts[id]; + storage.setItem(draftKey(userId), JSON.stringify(drafts)); + } catch {} +} + +function otherDrafts(drafts, currentId) { + return Object.entries(drafts) + .filter(([id]) => id !== currentId) + .map(([id, draft]) => ({...draft, id})) + .sort((a, b) => b.savedAt - a.savedAt); +} + +function nextMatchValue(values, after) { + const options = values.filter(Boolean); + const index = options.indexOf(after); + return index >= 0 && index + 1 < options.length ? options[index + 1] : null; +} + +function newDraftId() { + if (typeof crypto !== "undefined" && crypto.randomUUID) return crypto.randomUUID(); + return Date.now().toString(36) + "-" + Math.random().toString(36).slice(2); +} diff --git a/app/static/js/scout/add.js b/app/static/js/scout/add.js index b3d09b1..b90eb88 100644 --- a/app/static/js/scout/add.js +++ b/app/static/js/scout/add.js @@ -40,9 +40,13 @@ const updateMatchResult = () => { }; document.addEventListener("DOMContentLoaded", function () { + let canvasField = null; const { updatePathData } = initScoutFormCanvas({ updateUIControls, resizeOnHome: true, + onCanvasReady(field) { + canvasField = field; + }, }); // Form submission handling @@ -79,7 +83,15 @@ document.addEventListener("DOMContentLoaded", function () { // form.submit(); // } form.elements._event_key.value = eventSelect.options[eventSelect.selectedIndex]?.dataset.key || ""; - form.submit(); + form.elements._station.value = stationOf(teamSelect.options[teamSelect.selectedIndex]); + // Keep the entry recoverable until the server confirms the save (?saved=), + // but never let draft code (e.g. add-flow.js failing to load) block the save itself. + try { + dirty = true; + persistDraft(); + } finally { + form.submit(); + } }); } @@ -300,13 +312,13 @@ document.addEventListener("DOMContentLoaded", function () { refreshEvents(); // Load matches when event is selected - eventSelect.addEventListener("change", async function () { + async function loadMatchesForSelectedEvent() { matchesController?.abort(); const controller = matchesController = new AbortController(); currentMatches = null; matchStatus.textContent = ""; matchSelect.disabled = false; - const selectedOption = this.options[this.selectedIndex]; + const selectedOption = eventSelect.options[eventSelect.selectedIndex]; const selectedEventKey = selectedOption?.dataset.key; matchSelect.innerHTML = ''; matchSearchable.clear(); @@ -404,6 +416,11 @@ document.addEventListener("DOMContentLoaded", function () { matchSearchable.updateOptions(); } } + } + // Preselection and draft restore await the load the latest event change started. + let matchesLoading = Promise.resolve(); + eventSelect.addEventListener("change", () => { + matchesLoading = loadMatchesForSelectedEvent(); }); // Load teams when match is selected @@ -489,6 +506,168 @@ document.addEventListener("DOMContentLoaded", function () { }); }); }); + + // ---- Drafts (add-flow.js) and next-match preselection ---- + let storage = null; + try { + storage = window.localStorage; + } catch {} + const userId = form.dataset.userId; + const NOT_SAVED = new Set(["csrf_token", "_draft_id", "_event_key", "_station"]); + // Identity is restored through the dropdowns; the path through the canvas. + const NOT_FILLED = new Set([...NOT_SAVED, "event_code", "match_number", "team_number", "alliance", "auto_path"]); + const isData = el => el.name && !["button", "submit", "reset", "file"].includes(el.type); + let dirty = false; + let saveTimer; + let preselectRun = 0; + + function stationOf(option) { + const alliance = option?.dataset.alliance; + if (!alliance) return ""; + const same = [...teamSelect.options].filter(o => o.dataset.alliance === alliance); + return alliance + (same.indexOf(option) + 1); + } + + function stationOption(station) { + const found = /^(red|blue)([1-3])$/.exec(station || ""); + if (!found) return null; + return [...teamSelect.options].filter(o => o.dataset.alliance === found[1])[found[2] - 1] || null; + } + + function readFields() { + const fields = {}; + for (const el of form.elements) { + if (!isData(el) || NOT_SAVED.has(el.name)) continue; + fields[el.name] = el.type === "checkbox" ? el.checked : el.value; + } + return fields; + } + + function fillFields(fields) { + for (const el of form.elements) { + if (!isData(el) || NOT_FILLED.has(el.name) || !(el.name in fields)) continue; + if (el.type === "checkbox") el.checked = fields[el.name] === true; + else el.value = fields[el.name]; + el.dispatchEvent(new Event("change", {bubbles: true})); + } + } + + function restorePath(path) { + if (!canvasField) return; + try { + canvasField.drawingHistory = JSON.parse(path || "[]"); + } catch { + canvasField.drawingHistory = []; + } + canvasField.redrawCanvas(); + updatePathData(); + } + + function persistDraft() { + clearTimeout(saveTimer); + if (!dirty) return; + updatePathData(); + saveDraft(storage, userId, form.elements._draft_id.value, { + fields: readFields(), + event_key: eventSelect.options[eventSelect.selectedIndex]?.dataset.key || "", + match: matchSelect.value, + team: teamSelect.value, + }); + } + + // Only the scout's own actions save: preselection and restore fill fields by code (untrusted + // events). Counter buttons fire a synthetic change, so their trusted click counts instead. + function markDirty(e) { + if (!e.isTrusted) return; + if (e.type === "click" && !e.target.closest?.(".counter-group")) return; + if (e.type === "pointerup" && e.target.id !== "autoPath") return; + dirty = true; + clearTimeout(saveTimer); + saveTimer = setTimeout(persistDraft, 500); + } + for (const type of ["input", "change", "click", "pointerup"]) form.addEventListener(type, markDirty); + window.addEventListener("pagehide", persistDraft); + document.addEventListener("visibilitychange", () => { + if (document.visibilityState === "hidden") persistDraft(); + }); + + // Select the event, then a match (exact label, or the one after `after`), then a team + // (exact number, or the one at `station`); stop quietly at the first step that can't resolve. + async function preselect({event, match, after, station, team}) { + const run = ++preselectRun; + const eventOption = event && [...eventSelect.options].find(o => o.dataset.key === event); + if (!eventOption) return; + eventSelect.value = eventOption.value; + eventSelect.dispatchEvent(new Event("change")); + await matchesLoading; + if (run !== preselectRun) return; + const values = [...matchSelect.options].map(o => o.value); + const label = match ? (values.includes(match) ? match : null) : after ? nextMatchValue(values, after) : null; + if (!label) return; + matchSelect.value = label; + matchSelect.dispatchEvent(new Event("change")); + const teamOption = team ? [...teamSelect.options].find(o => o.value === team) : stationOption(station); + if (!teamOption) return; + teamSelect.value = teamOption.value; + teamSelect.dispatchEvent(new Event("change")); + } + + function savedAgo(savedAt) { + const minutes = Math.max(1, Math.round((Date.now() - savedAt) / 60000)); + return minutes < 60 ? `${minutes} min ago` : `${Math.round(minutes / 60)} h ago`; + } + + function renderDraftBanner() { + const banner = document.getElementById("draftBanner"); + if (!banner) return; + banner.replaceChildren(); + for (const draft of otherDrafts(loadDrafts(storage, userId), form.elements._draft_id.value)) { + const item = document.createElement("div"); + item.className = "card"; + const body = document.createElement("div"); + body.className = "card-body flex flex-wrap items-center justify-between gap-3"; + const text = document.createElement("p"); + text.className = "text-sm"; + text.textContent = `Unsaved entry: Team ${draft.team || "?"}, ${draft.match || "no match"} (saved ${savedAgo(draft.savedAt)})`; + const actions = document.createElement("div"); + actions.className = "flex gap-2"; + const discard = document.createElement("button"); + discard.type = "button"; + discard.className = "btn btn-secondary"; + discard.textContent = "Discard"; + discard.addEventListener("click", () => { + removeDraft(storage, userId, draft.id); + item.remove(); + }); + const restore = document.createElement("button"); + restore.type = "button"; + restore.className = "btn btn-primary"; + restore.textContent = "Restore"; + restore.addEventListener("click", async () => { + // Keep the entry being replaced (saved only if the scout touched it); it is offered back. + persistDraft(); + form.elements._draft_id.value = draft.id; + dirty = false; + // Fill before the (possibly slow) match load: changing event/match only resets the + // match, team and alliance fields, so nothing filled here is lost. + fillFields(draft.fields || {}); + restorePath(draft.fields?.auto_path); + renderDraftBanner(); + await preselect({event: draft.event_key, match: draft.match, team: draft.team}); + }); + actions.append(discard, restore); + body.append(text, actions); + item.append(body); + banner.append(item); + } + } + + const params = new URLSearchParams(window.location.search); + if (params.get("saved")) removeDraft(storage, userId, params.get("saved")); + form.elements._draft_id.value = newDraftId(); + renderDraftBanner(); + preselect({event: params.get("event"), match: params.get("match"), after: params.get("after"), + station: params.get("station")}); }); // Update the updateUIControls method to be more specific diff --git a/app/static/js/service-worker.js b/app/static/js/service-worker.js index 2c09ca1..64bad53 100644 --- a/app/static/js/service-worker.js +++ b/app/static/js/service-worker.js @@ -1,9 +1,9 @@ -const CACHE_NAME = 'castle-app-v14'; +const CACHE_NAME = 'castle-app-v15'; const STATIC_CACHE_NAME = 'castle-app-static-v14'; const DYNAMIC_CACHE_NAME = 'castle-app-dynamic-v14'; const PAGE_CACHE_NAME = 'castle-app-pages-v14'; -const CACHE_VERSION = '15'; // Increment this when making changes +const CACHE_VERSION = '16'; // Increment this when making changes // Add timestamped version query parameter to bust cache const CACHE_TIMESTAMP = new Date().getTime(); @@ -15,6 +15,7 @@ const STATIC_ASSETS = [ '/static/js/Canvas.js', '/static/js/team-stats.js', '/static/js/scout/add.js', + '/static/js/scout/add-flow.js', '/static/js/scout/form-canvas.js', '/static/js/scout/list.js', '/static/js/scout/fuel-input.js', diff --git a/app/templates/scouting/_match_list.html b/app/templates/scouting/_match_list.html index 5020187..b9e9711 100644 --- a/app/templates/scouting/_match_list.html +++ b/app/templates/scouting/_match_list.html @@ -66,6 +66,7 @@

{{ data.alliance|title }} + {% if data.excluded %}Excluded{% endif %} {{ data.match_number }} diff --git a/app/templates/scouting/add.html b/app/templates/scouting/add.html index 4b814aa..d89b82c 100644 --- a/app/templates/scouting/add.html +++ b/app/templates/scouting/add.html @@ -57,9 +57,13 @@

Add match

{{ event_matches | tojson | safe }} -
+
+ + + +
@@ -448,6 +452,7 @@

Scoring

- + + {% endblock %} diff --git a/app/templates/scouting/edit.html b/app/templates/scouting/edit.html index 59bab79..47829fe 100644 --- a/app/templates/scouting/edit.html +++ b/app/templates/scouting/edit.html @@ -386,6 +386,11 @@

Scoring

+ +
Cancel diff --git a/docs/superpowers/plans/2026-11-11-match-day-fixes.md b/docs/superpowers/plans/2026-11-11-match-day-fixes.md new file mode 100644 index 0000000..13a2edd --- /dev/null +++ b/docs/superpowers/plans/2026-11-11-match-day-fixes.md @@ -0,0 +1,389 @@ +# Match-Day Fixes Implementation Plan + +> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. + +**Goal:** New match records store TBA event and match keys. Same-team duplicates are blocked. The add form survives crashes and jumps to the next match. Records can be excluded from stats. + +**Architecture:** The server work lives in the existing layers: +- key parsing in `TBA.py` +- identity, the duplicate check and exclusion in `ScoutingManager` (`scouting_utils.py`) +- redirects in the `add` route + +Browser-side draft and next-match logic is pure functions in a new `add-flow.js`, unit-tested with `node:vm`. The DOM wiring lives in `add.js`. + +**Tech Stack:** Flask, pymongo aggregation pipelines, Jinja, vanilla JS, `unittest`, `node --test`. + +**Spec:** `docs/superpowers/specs/2026-11-11-match-day-fixes-design.md`. Read it first; this plan argues from it. + +## Global Constraints + +- **Never connect to or write to the user's MongoDB.** Tests use mocks only (`tests/app_harness.py`, or a `ScoutingManager` built with `__new__` and a `MagicMock` db). +- Python tests: `.venv/Scripts/python.exe -m unittest tests. -v`. `discover` does not work here, and pytest is not installed. +- JS tests: `npm test`. +- No backfill, no migration, no new index, no unique constraint. +- Display fields `event_code` (event name) and `match_number` (label like `Qual 12`) keep being stored exactly as today. +- Event key regex: `\d{4}[a-z0-9]+` (full match). Station: `(red|blue)[1-3]`. Draft id: `[A-Za-z0-9-]{1,64}`. Match labels in redirect URLs are capped at 32 characters. +- A missing or invalid key never rejects a record. The record saves without keys and without a duplicate check. +- Drafts live under `localStorage` key `castle:scout-drafts:` and are pruned after 24 hours (`86400000` ms). +- Use existing CSS component classes (`card`, `btn`, `btn-primary`, `btn-secondary`, `badge`, `badge-gray`). If you introduce a Tailwind class not used anywhere yet, run `npm run build:css`. +- Commit messages end with a blank line and then `Co-Authored-By: Claude Opus 5.5 `. +- Do not push. + +## Review Focus + +1. **Phone locked mid-match.** `pagehide` may not fire, but the draft must still be saved. Save on `visibilitychange` to `hidden` too (Task 7 browser check, item 4). +2. **Storage unavailable.** In private mode `localStorage` can throw on access or on write. The form must work exactly as today, with no uncaught errors (Task 6 test `storage that throws is ignored`). +3. **Edit without an identity change.** Mongo rejects an empty `$unset`, so the update must not contain an `$unset` key at all (Task 4 test `test_edit_without_identity_change_sends_no_unset`). +4. **Counter taps.** The `+`/`−` step buttons fire a synthetic `change` event (`isTrusted` false), but the tap itself is a trusted `click`. Counter taps must still mark the draft dirty and save it (Task 7 browser check, item 3). +5. **Tampered redirect params.** Values such as `_station=../x`, a 500-character label or `_event_key=javascript:` must be dropped or capped before reaching the redirect URL. The label is only ever compared in JS, never rendered (Task 3 test `test_invalid_redirect_params_are_dropped`). + +--- + +### Task 1: Year-agnostic TBA match key helper + +**Files:** +- Modify: `app/scout/TBA.py` (add a module-level helper near the imports) +- Modify: `app/scout/match13_fuel.py:38-49` (`match_key` delegates to it) +- Test: `tests/test_match_day.py` (new) + +**Interfaces:** +- Produces: `EVENT_KEY_PATTERN = re.compile(r"\d{4}[a-z0-9]+\Z")` and `tba_match_key(event_key: str, label: str) -> str | None` in `app/scout/TBA.py`. +- `match13_fuel.match_key(event, label)` keeps its signature and its 2026-only guard. + +- [ ] **Step 1: Write the failing tests** in a new `tests/test_match_day.py`, class `MatchKeyTests`: + +```python +from app.scout.TBA import tba_match_key +from app.scout.match13_fuel import match_key + +def test_labels_map_to_tba_keys_in_any_year(self): + self.assertEqual(tba_match_key("2027nyny", "Qual 12"), "2027nyny_qm12") + self.assertEqual(tba_match_key("2027nyny", "Semifinal 2-1"), "2027nyny_sf2m1") + self.assertEqual(tba_match_key("2027nyny", "Final 2"), "2027nyny_f1m2") + self.assertEqual(tba_match_key("2026test1", "Qual 3"), "2026test1_qm3") + self.assertEqual(tba_match_key("2027nyny", "2027nyny_qm3"), "2027nyny_qm3") + +def test_bad_event_or_label_gives_none(self): + for event, label in [("nyny", "Qual 1"), ("", "Qual 1"), ("2027NYNY", "Qual 1"), + ("2027nyny", "Practice 1"), ("2027nyny", ""), ("2027nyny", "2026other_qm1")]: + self.assertIsNone(tba_match_key(event, label), (event, label)) + +def test_match13_stays_2026_only(self): + self.assertIsNone(match_key("2027nyny", "Qual 1")) + self.assertEqual(match_key("2026nyny", "Qual 1"), "2026nyny_qm1") +``` + +- [ ] **Step 2: Run the tests.** Run: `.venv/Scripts/python.exe -m unittest tests.test_match_day -v`. Expected: an ImportError for `tba_match_key`. +- [ ] **Step 3: Implement `tba_match_key`** in `TBA.py`. Move the body of the label parsing out of `match13_fuel.match_key`: the passthrough regex plus the three `(pattern, suffix)` pairs. Guard with `EVENT_KEY_PATTERN` instead of the 2026 pattern. Then `match13_fuel.match_key` becomes `return tba_match_key(event, label) if EVENT_PATTERN.fullmatch(event) else None`, importing from `.TBA`. +- [ ] **Step 4: Run the tests.** Run `tests.test_match_day` and `tests.test_match13_fuel`. Expected: all PASS. +- [ ] **Step 5: Commit:** `git add app/scout/TBA.py app/scout/match13_fuel.py tests/test_match_day.py` then `git commit -m "Add year-agnostic TBA match key helper"` (with trailer). + +--- + +### Task 2: Store keys and block same-team duplicates on add + +**Files:** +- Modify: `app/scout/scouting_utils.py:148-175` (`add_scouting_data`) +- Test: `tests/test_match_day.py` (class `AddRecordTests`) + +**Interfaces:** +- Consumes: `tba_match_key`, `EVENT_KEY_PATTERN` (Task 1). +- Produces: `add_scouting_data(self, data: dict, scouter_id: str, team_number=None) -> tuple[bool, str]`. + - `team_number` is the *scout's* team, possibly `None`. + - On success it returns `(True, inserted_id)`. + - On a duplicate it returns `(False, "Team {robot} in {label} was already scouted by {username}. Edit that entry from the scouting list instead.")`. +- Produces: stored documents gain `event_key` and `match_key`, but only when both are valid. + +- [ ] **Step 1: Write the failing tests.** Build the manager as `m = ScoutingManager.__new__(ScoutingManager); m.db = MagicMock()`. Use a helper `form(**kw)` that returns `{"team_number": "254", "event_code": "NYC Regional", "match_number": "Qual 12", "_event_key": "2026nyny", **kw}`. + +```python +def test_valid_keys_are_stored(self): + m.db.team_data.aggregate.return_value = [] + ok, _ = m.add_scouting_data(form(), USER_ID, 334) + doc = m.db.team_data.insert_one.call_args.args[0] + self.assertTrue(ok) + self.assertEqual((doc["event_key"], doc["match_key"]), ("2026nyny", "2026nyny_qm12")) + self.assertEqual((doc["event_code"], doc["match_number"]), ("NYC Regional", "Qual 12")) + +def test_missing_or_invalid_event_key_saves_without_keys_or_check(self): + for bad in ["", "javascript:", None]: + m.db.reset_mock() + ok, _ = m.add_scouting_data(form(_event_key=bad), USER_ID, 334) + doc = m.db.team_data.insert_one.call_args.args[0] + self.assertTrue(ok) + self.assertNotIn("match_key", doc) + m.db.team_data.aggregate.assert_not_called() + +def test_same_team_duplicate_is_blocked_with_scout_name(self): + m.db.team_data.aggregate.return_value = [{"scouter": {"username": "sam"}}] + ok, msg = m.add_scouting_data(form(), USER_ID, 334) + self.assertFalse(ok) + self.assertEqual(msg, "Team 254 in Qual 12 was already scouted by sam. Edit that entry from the scouting list instead.") + m.db.team_data.insert_one.assert_not_called() + +def test_duplicate_query_scopes_to_team_and_skips_excluded(self): + m.db.team_data.aggregate.return_value = [] + m.add_scouting_data(form(), USER_ID, 334) + pipeline = m.db.team_data.aggregate.call_args.args[0] + self.assertEqual(pipeline[0]["$match"], {"match_key": "2026nyny_qm12", "team_number": 254, "excluded": {"$ne": True}}) + self.assertIn({"$match": {"scouter.teamNumber": 334}}, pipeline) + +def test_teamless_scout_is_checked_against_own_records_only(self): + m.db.team_data.aggregate.return_value = [] + m.add_scouting_data(form(), USER_ID, None) + self.assertIn({"$match": {"scouter_id": ObjectId(USER_ID)}}, m.db.team_data.aggregate.call_args.args[0]) +``` + +- [ ] **Step 2: Run the tests.** Run `tests.test_match_day`. Expected: the 5 new tests FAIL (there is no `event_key` in the doc, and `aggregate` is never called). +- [ ] **Step 3: Implement it in `add_scouting_data`.** + - Read `_event_key` with `str(data.get("_event_key") or "")`. + - When it matches `EVENT_KEY_PATTERN` and `tba_match_key(...)` returns a key, set both keys on `team_data`. + - If a key was set, run the pipeline asserted above: first `$match`, `SCOUTER_LOOKUP`, `UNWIND_SCOUTER`, the scope `$match`, `{"$limit": 1}`. Return the duplicate message on a hit. + - Add a `# shortcut: check-then-insert can race when two scouts save in the same second; a unique index needs the scout's team on the record` comment. + - Pass the `team_number` keyword at the only caller, `records.py` `add` (`team_number=current_user.teamNumber`). +- [ ] **Step 4: Run the tests.** Run `tests.test_match_day tests.test_match13_fuel`. Expected: PASS. +- [ ] **Step 5: Commit:** `git commit -m "Store TBA keys on new match records and block same-team duplicates"`. + +--- + +### Task 3: Add route returns to the add form (next match on success, same match on failure) + +**Files:** +- Modify: `app/scout/routes/records.py:27-72` (`add`) +- Modify: `tests/test_match13_fuel.py:456` (give the add rule `endpoint='scouting.add'`) +- Test: `tests/test_match_day.py` (class `AddRedirectTests`, using the same minimal Flask fixture as `RouteTests` in `tests/test_match13_fuel.py:451-465`; register `scouting.add` for GET and POST) + +**Interfaces:** +- Consumes: `EVENT_KEY_PATTERN` (Task 1), `add_scouting_data(..., team_number=)` (Task 2). +- Produces: query params on the add page that Task 7 reads: + - `event` (event key) + - `after` (last saved label, success only) + - `match` (label to reselect, failure only) + - `station` + - `saved` (draft id, success only) +- Produces: helper `_add_form_url(data: dict, saved: bool) -> str` in `records.py`. + +- [ ] **Step 1: Write the failing tests:** + +```python +def test_success_redirects_to_next_match_with_validated_params(self): + # manager.add_scouting_data.return_value = (True, oid) + r = post({"_event_key": "2026nyny", "match_number": "Qual 12", "_station": "red2", "_draft_id": "abc-123", **base}) + q = parse_qs(urlparse(r.location).query) + self.assertEqual(urlparse(r.location).path, "/scouting/add") + self.assertEqual(q, {"event": ["2026nyny"], "after": ["Qual 12"], "station": ["red2"], "saved": ["abc-123"]}) + +def test_failure_redirects_to_same_match_without_saved(self): + # manager.add_scouting_data.return_value = (False, "dup") + q = parse_qs(urlparse(post({... same ...}).location).query) + self.assertEqual(q, {"event": ["2026nyny"], "match": ["Qual 12"], "station": ["red2"]}) + +def test_invalid_redirect_params_are_dropped(self): + q = parse_qs(urlparse(post({"_event_key": "javascript:", "match_number": "x" * 500, + "_station": "../x", "_draft_id": "a b<"}).location).query) + self.assertNotIn("event", q); self.assertNotIn("station", q); self.assertNotIn("saved", q) + self.assertEqual(q["after"], ["x" * 32]) + +def test_bad_auto_path_json_returns_to_add_form(self): + r = post({"auto_path": "{not json", "_event_key": "2026nyny", "match_number": "Qual 1"}) + self.assertEqual(urlparse(r.location).path, "/scouting/add") +``` + +- [ ] **Step 2: Run the tests.** Run `tests.test_match_day`. Expected: FAIL, because the redirect goes to `/scouting`. +- [ ] **Step 3: Implement `_add_form_url`.** + - Build `url_for("scouting.add", **params)` and include each param only when it validates per Global Constraints. + - The label is `str(...)[:32]`, under `after` when `saved` is true and under `match` otherwise. + - Use it for the success redirect, the failure redirect and the invalid-auto-path redirect. Keep the existing flash messages. + - Update the `test_match13_fuel.py` fixture endpoint. +- [ ] **Step 4: Run the tests.** Run `tests.test_match_day tests.test_match13_fuel tests.test_security tests.test_route_logging`. Expected: PASS. +- [ ] **Step 5: Commit:** `git commit -m "Return to the add form for the next match after saving"`. + +--- + +### Task 4: Edit unlinks changed identity and toggles exclusion + +**Files:** +- Modify: `app/scout/scouting_utils.py:288-375` (`update_team_data`) +- Modify: `app/models.py:56-96` (`TeamData.__init__`: add `self.excluded: bool = data.get('excluded', False)`) +- Modify: `app/templates/scouting/edit.html` (a checkbox before the submit row at about line 390, styled like the `auto_climb` checkbox at line 237) +- Test: `tests/test_match_day.py` (class `EditTests`) + +**Interfaces:** +- Produces: the stored field `excluded: bool`, which is written only by edit. +- The checkbox: `name="excluded" value="true"`, labelled `Exclude from stats (keeps the record and its notes)`, and checked when `team_data.excluded`. + +- [ ] **Step 1: Write the failing tests.** Start from an existing doc `{"_id": oid, "event_code": "A", "match_number": "Qual 1", "team_number": 334, "alliance": "red", "event_key": "2026a", "match_key": "2026a_qm1"}` returned by `m.db.team_data.find_one`. Use `payload(**kw)` = the same identity plus `alliance: "red"`. + +```python +def test_event_change_unsets_both_keys(self): + m.update_team_data(str(oid), payload(event_code="B"), USER_ID) + self.assertEqual(m.db.team_data.update_one.call_args.args[1]["$unset"], {"event_key": "", "match_key": ""}) + +def test_match_change_unsets_match_key_only(self): + m.update_team_data(str(oid), payload(match_number="Qual 2"), USER_ID) + self.assertEqual(m.db.team_data.update_one.call_args.args[1]["$unset"], {"match_key": ""}) + +def test_edit_without_identity_change_sends_no_unset(self): + for change in [{}, {"team_number": "335"}]: + m.update_team_data(str(oid), payload(**change), USER_ID) + self.assertNotIn("$unset", m.db.team_data.update_one.call_args.args[1]) + +def test_excluded_checkbox_round_trips(self): + m.update_team_data(str(oid), payload(excluded="true"), USER_ID) + self.assertIs(m.db.team_data.update_one.call_args.args[1]["$set"]["excluded"], True) + m.update_team_data(str(oid), payload(), USER_ID) + self.assertIs(m.db.team_data.update_one.call_args.args[1]["$set"]["excluded"], False) +``` + +- [ ] **Step 2: Run the tests.** Expected: FAIL (`KeyError: '$unset'` / `'excluded'`). +- [ ] **Step 3: Implement the changes in `update_team_data`.** + - Put `"excluded": _is_checked(data.get("excluded"))` into `updated_data`. + - Build `unset` from the comparison with `existing_data`. + - Pass `{"$set": updated_data, **({"$unset": unset} if unset else {})}`. + - Add the model field and the checkbox. +- [ ] **Step 4: Run the tests.** Run `tests.test_match_day tests.test_bug_fixes`. Expected: PASS. +- [ ] **Step 5: Commit:** `git commit -m "Unlink edited match identity and add exclude-from-stats toggle"`. + +--- + +### Task 5: Excluded records drop out of stats and are tagged in the list + +**Files:** +- Modify: `app/scout/scouting_utils.py`. Add a module constant `COUNTED = {"$match": {"excluded": {"$ne": True}}}` next to `UNWIND_SCOUTER` (line 20). Prepend it in `get_match_alliances` (429), `get_compare_stats` (463), `get_auto_paths` (544) and `get_team_leaderboard` (580). Add `"excluded": 1` to the `get_all_scouting_data` projection (around line 219). +- Modify: `app/templates/scouting/_match_list.html:68`. After the alliance badge, add `{% if data.excluded %}Excluded{% endif %}`. +- Test: `tests/test_match_day.py` (class `ExclusionTests`) + +**Interfaces:** +- Produces: `COUNTED` (importable). + +Leave `get_all_scouting_data`, `get_team_records`, `get_leaderboard_events`, `get_scouter_leaderboard` and `get_visible_fuel` unfiltered, per the spec. + +- [ ] **Step 1: Write the failing tests:** + +```python +def test_stat_pipelines_skip_excluded_records(self): + m.db.team_data.aggregate.return_value = [] + calls = [lambda: m.get_match_alliances(USER_ID, 334), lambda: m.get_compare_stats(254, USER_ID, 334), + lambda: m.get_auto_paths(254, USER_ID, 334), lambda: m.get_team_leaderboard(USER_ID, 334)] + for call in calls: + m.db.reset_mock(); m.db.team_data.aggregate.return_value = [] + call() + self.assertIn(COUNTED, m.db.team_data.aggregate.call_args.args[0]) + +def test_list_and_scouter_counts_keep_excluded_records(self): + m.get_scouter_leaderboard() + self.assertNotIn(COUNTED, m.db.team_data.aggregate.call_args.args[0]) + m.get_all_scouting_data(334, USER_ID, page=1) + pipeline = m.db.team_data.aggregate.call_args.args[0] + self.assertNotIn(COUNTED, pipeline) + self.assertEqual(next(s for s in pipeline if "$project" in s)["$project"]["excluded"], 1) +``` + +- [ ] **Step 2: Run the tests.** Expected: FAIL (ImportError `COUNTED`). +- [ ] **Step 3: Implement.** Add the constant, the 4 prepends, the projection and the badge. +- [ ] **Step 4: Run the tests.** Run `tests.test_match_day tests.test_scouting_pagination tests.test_scouting_performance tests.test_scout_routes_common`. Expected: PASS. +- [ ] **Step 5: Commit:** `git commit -m "Leave excluded records out of stats and tag them in the list"`. + +--- + +### Task 6: Draft storage and next-match logic as pure functions + +**Files:** +- Create: `app/static/js/scout/add-flow.js`. Use plain `function` declarations, so they are globals in the browser and on the `vm` context. +- Create: `tests/test_add_flow.js` (`node:test` + `node:vm`, in the style of `tests/test_browser_resilience.js:95-100`) +- Modify: `package.json`. Set the `"test"` script to `node --test tests/test_browser_resilience.js tests/test_add_flow.js`. + +**Interfaces:** each takes `storage`, which may be `null` or may throw; none of them throws. +- `draftKey(userId) -> string` returns `"castle:scout-drafts:" + userId`. +- `loadDrafts(storage, userId, now = Date.now()) -> object` returns a map `{[id]: draft}`. It drops drafts whose `savedAt` is older than `86400000` ms and writes back if it pruned. On any error it returns `{}`. +- `saveDraft(storage, userId, id, draft, now = Date.now()) -> void` stores `{...draft, savedAt: now}` under `id`. +- `removeDraft(storage, userId, id) -> void`. +- `otherDrafts(drafts, currentId) -> Array<{id, ...draft}>` returns the other drafts, newest `savedAt` first. +- `nextMatchValue(values, after) -> string | null` takes `values` in dropdown order (empty strings ignored) and returns the value after `after`. It returns `null` when `after` is last or missing. +- `newDraftId() -> string` uses `crypto.randomUUID()` when it exists, otherwise `Date.now().toString(36) + "-" + Math.random().toString(36).slice(2)`. +- The draft shape (Task 7 fills it): `{fields: {[name]: string|boolean}, event_key, match, team, savedAt}`. + +- [ ] **Step 1: Write the failing tests** in `tests/test_add_flow.js`. Load the file with `vm.runInNewContext(src, scope)`, where `scope = {Date, Math, JSON}`. Use a `Map`-backed fake storage with `getItem`, `setItem` and `removeItem`. + - `save, load and remove round-trip per user`: user A's draft is not returned for user B. + - `drafts older than 24 hours are pruned`: save at `now`, load at `now + 86400001`, and expect `{}` with the storage entry rewritten. + - `clearing by an old saved id leaves the current draft`: save `old` and `cur`, call `removeDraft(..., "gone")`, and both remain. + - `starting a new entry keeps the offered draft`: save `a` at t1 and `b` at t2. `otherDrafts(load, "b")` returns `[a]`, and `otherDrafts(load, "c")` returns `[b, a]`. + - `storage that throws is ignored`: every method of the storage throws, `loadDrafts` returns `{}`, and `saveDraft` and `removeDraft` don't throw. With `storage = null`, the same holds. + - `next match follows dropdown order`: `nextMatchValue(["", "Qual 1", "Qual 2", "Semifinal 1-1", "Final 1"], "Qual 2")` gives `"Semifinal 1-1"`. `"Final 1"` gives `null`, and `"Qual 99"` gives `null`. +- [ ] **Step 2: Run the tests.** Run `npm test`. Expected: the `test_add_flow.js` tests FAIL (ENOENT for `add-flow.js`). +- [ ] **Step 3: Implement `add-flow.js`.** +- [ ] **Step 4: Run the tests.** Run `npm test`. Expected: all PASS, including the existing resilience tests. +- [ ] **Step 5: Commit:** `git commit -m "Add draft storage and next-match helpers for the add form"`. + +--- + +### Task 7: Wire drafts, station and preselection into the add form + +**Files:** +- Modify: `app/templates/scouting/add.html`. + - On the form (line 59), add `data-user-id="{{ current_user.get_id() }}"`. + - Add hidden inputs `_draft_id` and `_station` beside `_event_key` (line 62). + - Above the form, add `
`. + - Load `add-flow.js?v=1` before `add.js`, and bump `add.js` to `v='12'` (line 451). +- Modify: `app/static/js/scout/add.js`. +- Modify: `app/static/js/service-worker.js`. + - `CACHE_NAME` `'castle-app-v14'` → `'castle-app-v15'`. + - `CACHE_VERSION` `'15'` → `'16'`. + - Add `'/static/js/scout/add-flow.js'` to `STATIC_ASSETS` next to `add.js`. + +**Interfaces:** +- Consumes: the Task 6 functions, and the Task 3 URL params (`event`, `after`, `match`, `station`, `saved`). +- Produces: the posted `_station` (e.g. `red2`, from the selected team option's alliance plus its 1-based position among that alliance's options) and `_draft_id`. + +These are the decisions the implementer can't make alone: +- **Storage handle.** Get one handle with `try { localStorage } catch { null }`. +- **Load order:** + 1. If `saved` is in the URL, `removeDraft(saved)`. + 2. Make a fresh id with `newDraftId()` and put it in `_draft_id`. + 3. Render a banner item for each `otherDrafts(loadDrafts(...), currentId)`. Build the text with `textContent` only, in the form `Unsaved entry: Team 254, Qual 12 (saved 3 min ago)`, with Restore and Discard buttons. + 4. Run URL preselection. +- **Await match loading.** Extract the `eventSelect` `change` listener body (`add.js:303`) into `async function loadMatchesForSelectedEvent()`. Keep the listener calling it. Preselect and restore `await` it. +- **Preselection:** + - Find the event option whose `dataset.key === event`, set the select value, then `await loadMatchesForSelectedEvent()`. The searchable input syncs on a dispatched `change`, so dispatch one, and guard against a double load. + - Pick the label: `match` if present, else `nextMatchValue(matchSelect option values, after)`. Set it and dispatch `change`. + - Pick the team option at `station`. Set it and dispatch `change`. + - Stop quietly at the first step that doesn't resolve. +- **Dirty tracking and saving:** + - On the form, listen to `input`, `change`, `click` and `pointerup`. If `e.isTrusted`, set `dirty = true` and debounce a save by 500 ms. + - On `pagehide`, and on `visibilitychange` to `hidden`, save immediately if `dirty`. + - A save calls `updatePathData()`, then `saveDraft(currentId, {fields, event_key, match, team})`. + - `fields`: every named form element except `csrf_token`, `_draft_id`, `_event_key` and `_station`. Checkboxes are stored as booleans and radios as the checked value. +- **Restore:** + - `removeDraft(currentId)`. Set `currentId` to the restored id and update `_draft_id`. Remove that draft's banner item. + - Select the event, await the matches, then select the match and the team as in preselection. + - Fill the remaining fields, dispatching `change` on each so dependent UI updates. + - Set `CanvasField.drawingHistory = JSON.parse(fields.auto_path || "[]")`, then `CanvasField.redrawCanvas()` and `updatePathData()`. Capture `CanvasField` through the `onCanvasReady` option of `initScoutFormCanvas`, as `edit.js:6` does. + - A restore wins over URL preselection. +- **Discard** calls `removeDraft(id)` and removes the banner item. +- **Submit.** Before `form.submit()` (`add.js:82`), set `_station`. `_draft_id` is already set. + +- [ ] **Step 1: Implement the template, `add.js` and service-worker changes** above. +- [ ] **Step 2: Run the tests.** Run `npm test` and `.venv/Scripts/python.exe -m unittest tests.test_match_day tests.test_match13_fuel tests.test_security -v`. Expected: PASS. +- [ ] **Step 3: Commit:** `git commit -m "Recover drafts and preselect the next match on the add form"`. + +--- + +### Task 8: Browser check and full regression + +**Files:** +- Create (scratchpad only, not committed): a preview script. + - It calls `tests.app_harness.start_app()`. + - It adds a `before_request` that logs in `USER_ID` with `flask_login.login_user`. + - It points `common.scouting_manager.db` at a `MagicMock` whose `team_data.insert_one` returns an id and whose `aggregate` returns `[]`. + - It runs `app.run(port=5055)`. + - With no `TBA_AUTH_KEY`, the add page offers the `Testing Regional` events with generated matches. + +- [ ] **Step 1: Drive `http://localhost:5055/scouting/add`** in a real browser (Playwright, as configured in `.playwright/`) and verify each item: + 1. Choose `Testing Regional #1`, `Qual 1` and the second red team, then save. You land on the add form with `Qual 2` and the second red team preselected, and no draft banner. + 2. Type a note, then reload. The banner offers `Qual …`. Restore fills the note, event, match and team. Discard removes it. + 3. Tap a counter `+` only, then reload. The banner is offered (a counter tap marks the draft dirty). + 4. Type a note, then fire `visibilitychange` (hidden). The draft is in `localStorage`. + 5. Open `/scouting/add?saved=nonexistent` with a draft present. The draft is still offered. + 6. With the DevTools `localStorage` access throwing (override `Storage.prototype.getItem` to throw), the form still saves, and there are no console errors. +- [ ] **Step 2: Full regression.** Run `.venv/Scripts/python.exe -m unittest tests.test_match_day tests.test_security tests.test_bug_fixes tests.test_match13_fuel tests.test_scouting_pagination tests.test_scouting_performance tests.test_scout_routes_common tests.test_route_logging tests.test_safe_url tests.test_pit_form -v` and `npm test`. Expected: everything OK. +- [ ] **Step 3: Fix anything found** with a failing test first, in the owning task's test file, then commit. diff --git a/docs/superpowers/specs/2026-11-11-match-day-fixes-design.md b/docs/superpowers/specs/2026-11-11-match-day-fixes-design.md new file mode 100644 index 0000000..88313fc --- /dev/null +++ b/docs/superpowers/specs/2026-11-11-match-day-fixes-design.md @@ -0,0 +1,177 @@ +# Match-day fixes (Maneuver batch 1): design + +Branch: `feature/maneuver-features` (from `redesign/ui`). Approved in conversation 2026-11-11. + +## Why + +The team compared Castle with Maneuver (frc-maneuver.com) and wants the features Castle lacks. 36 gaps were found. They split into four batches, built in this order: + +1. **Match-day fixes (this doc).** +2. Features that carry over to next season: pit, team stats, all-teams table, TBA check, picklists, predictions, scout dashboard. +3. Features tied to this season's field (2026 fuel, field map, climb detail). +4. Offline capture and transfer: save offline, then backup/import, then QR, then Wi-Fi. + +Batch 1 comes first for two reasons. First, record identity is the foundation for 8 later features: match validation, fuel scaling, export/import, QR, Wi-Fi, offline, custom events and predictions. Second, these four fixes stop bad or lost data during matches. + +Problems this batch fixes, all in today's code: + +- **Duplicates count twice.** If two scouts on one team enter the same robot in the same match, both records count in every average. `add_scouting_data` (`app/scout/scouting_utils.py:148`) inserts with no check. The client check in `app/static/js/scout/add.js:67-80` is commented out. +- **Records can't be joined to TBA.** `event_code` stores the TBA event's display name and `match_number` stores a label such as `Qual 12`. The posted `_event_key` is dropped, and the display name repeats every year. +- **A scout can lose a whole match of counts.** A locked phone, a Back press, a refresh or a failed submit wipes the form. Nothing saves form fields. +- **Scouts re-pick everything after each save.** Save redirects to the list (`app/scout/routes/records.py:72`), so the scout has to choose the event, match and robot again. That is slow, and it causes records filed under the wrong match. +- **Bad matches can't be dropped from stats without deleting them.** Only hard delete exists, and it loses the notes too. + +## Goals + +- **Store TBA codes.** Every new match record stores `event_key` (e.g. `2026nyny`) and `match_key` (e.g. `2026nyny_qm12`). +- **Block duplicates.** Saving a record is refused when that robot in that match is already recorded by the same team. The error names the scout who recorded it. +- **Recover lost forms.** The add form's contents survive a crash, refresh, Back or failed submit, and are offered back on the next visit. They clear only after the server confirms the save. +- **Jump to the next match.** After a save, the add form reopens with the same event, the next match and the same alliance station already selected. +- **Exclude bad matches.** A record can be marked "Exclude from stats". Excluded records drop out of every average but stay listed and editable. + +## Non-goals + +- No backfill or migration of existing records, and no writes to the user's MongoDB outside normal app use. Old records simply have no keys. Old duplicates can be excluded by hand. +- No new database index or unique constraint. +- No bulk delete by event, and no automatic exclusion of `Testing Regional` records. That belongs to demo data in a later batch. +- No offline saving. A draft survives an offline submit, but the record isn't queued. +- No visual redesign. Changes use the current styles. The redesign restyles them later. + +## Anti-goals (a failure even if it works) + +- A draft wiped before the server has confirmed the save. +- A newer in-progress draft cleared by reloading an old "saved" URL. +- A second scout's entry silently replacing the first. +- Records from two different teams blocking each other. Castle is multi-team, and each team sees only its own records (`access_match`). +- Excluded records still counted in a leaderboard, compare, match view or auto-path average. +- A 2027 record matched as a duplicate of a 2026 record. + +## Approaches considered + +- **Duplicate check.** Chosen: the server checks on save. Rejected: a browser-only pre-check, which is bypassable and racy. Also rejected: a unique Mongo index, which can't express "same scouting team" because the scout's team isn't on the record, and would need a live-DB migration. +- **Identity key.** Chosen: TBA keys. Rejected: event display name plus label, because names repeat yearly and would collide across seasons. +- **Draft storage.** Chosen: browser `localStorage`. Rejected: server drafts, which don't work offline and add a collection. +- **Next match.** Chosen: the redirect URL carries the event, last match and station. Rejected: device storage, because the redirect already has the data and the server can validate it. +- **Bad matches.** Chosen: an `excluded` flag on the record. Rejected: deleting, which loses notes, and a separate collection, which is needless. +- **When a duplicate is found.** The user chose **block**. Rejected: replace (Maneuver's behaviour), which silently loses the first entry. Also rejected: keep both and average, which complicates every stat. + +## Design + +### 1. Record identity + +- **Event key.** On add, take the posted `_event_key`. It is already filled by `add.js:81` from the selected event option's `data-key`. Accept it only if it fully matches `^\d{4}[a-z0-9]+$`. TBA keys and the built-in testing events (`{year}test1..3`) both match. Store it as `event_key`. +- **Match key.** Derive it on the server from the event key plus the posted `match_number` label. `app/scout/match13_fuel.py:38` `match_key()` already parses the labels the form produces (`Qual N` → `qmN`, `Semifinal S-M` → `sfSmM`, `Final N` → `f1mN`), but it is guarded to 2026 events by `EVENT_PATTERN`. + - Lift the label parsing into a year-agnostic helper, so record identity works next season. A natural home is `app/scout/TBA.py`, since it is about TBA key formats. + - Keep match13's 2026-only guard by having its `match_key` call the new helper after its own check. + - Store the result as `match_key`. +- **Missing keys.** If either key is missing or invalid, save the record without the keys and skip the duplicate check. Never reject a record because a key is missing: this branch can't fix the client, and losing a match is worse than a possible duplicate. +- **Display fields unchanged.** `event_code` (display name) and `match_number` (label) are still stored as today. Every existing page reads them. +- **Edit.** The edit page lets users free-type event, match and team. + - If an edit changes `event_code`, `$unset` both `event_key` and `match_key`. + - If it changes only `match_number`, `$unset` `match_key`. The record is then unlinked from TBA, never mislinked. + - Changing only `team_number` keeps both keys. + - The existing edit duplicate check stays as is. + +### 2. Duplicate block (add only) + +- **The check.** Before inserting, if `match_key` is set, look for records with the same `match_key` and `team_number` that are not excluded (`excluded != true`). Join each to its scout with the existing `SCOUTER_LOOKUP`, and keep those by the same scouting team: +- **Excluded records don't block.** *(Builder-check call.)* Excluding a record means it doesn't count, so re-scouting that robot in that match must be allowed. Editing over the excluded record would destroy the notes that exclusion exists to keep. + - If the current user has a `teamNumber`: records whose scout's `teamNumber` equals it. + - If the current user has no team: records whose `scouter_id` is the current user. +- **When one is found.** Refuse the save. The flash error reads like: `Team 254 in Qual 12 was already scouted by . Edit that entry from the scouting list instead.` Then redirect back to the add form (see section 4), so the draft is offered and the scout can discard it. +- **Return value.** `add_scouting_data` keeps its `(success, message)` return. A duplicate is a `False` with that message. +- **Known race.** Two saves in the same second can both pass. Accepted for this batch; mark it in code with a `shortcut:` comment. + +### 3. Draft recovery (add form, browser only) + +- **Draft id.** On add-form load, generate a fresh draft id (e.g. `crypto.randomUUID()`, falling back to a timestamp plus random string). Put it in a new hidden field `_draft_id`. +- **Storage shape.** *(Builder-check call.)* Use one `localStorage` key per logged-in user, e.g. `castle:scout-drafts:`, holding a map of draft id to draft. A per-user key means a scout on a shared tablet is never offered another user's draft. A map means starting a new entry never overwrites an older unsaved one. Put the user id in the page, e.g. a `data-` attribute on the form. +- **Saving.** Save the *current* draft id's entry on `input` and `change` (debounced, about 500 ms), and on `pagehide`. Only events with `event.isTrusted` count, so the URL preselection (section 4) and restore filling fields by code never create or overwrite a draft. Save every named form field, the drawn auto path (the hidden path field after `updatePathData()`), the event key, the match label, the selected team and `savedAt`. +- **Pruning.** On load, drop drafts older than 24 hours. +- **Offering drafts back.** On load, show a small banner for each other draft, newest first: `Unsaved entry: Team 254, Qual 12 (saved 3 min ago)` with **Restore** and **Discard**. There is usually one, rarely more. The banner stays until it is answered, and the scout can start a new entry meanwhile without endangering it. +- **Restore.** *(Amended after final review: the original "remove the current draft" could delete a real unsaved entry.)* Save the current draft (only if the scout touched it) so it is offered back. Make the restored draft's id the current id and set `_draft_id` to it. Fill the other fields and redraw the path, then re-select the event, wait for its matches to load, and select the match and the team. Changing the event or match resets only the match, team and alliance fields. + - `Canvas` has `loadFromJSON` (`app/static/js/Canvas.js:991`). + - `initScoutFormCanvas` (`app/static/js/scout/form-canvas.js:428`) returns only `updatePathData`, so expose what restore needs. +- **Clearing.** A draft is removed only when the page loads with `?saved=` and a stored draft has that id. That one entry is removed, and nothing else. Any other `saved` value, such as an old URL reloaded later, leaves every draft alone. **Discard** removes only its own draft. +- **Storage errors.** Wrap every storage access in `try/catch`. If storage is unavailable, the form works exactly as today. + +### 4. Next-match flow + +- **Station.** On submit, `add.js` also posts a hidden `_station`, the selected robot's alliance plus position (`red1`..`red3`, `blue1`..`blue3`). Position is its order in the match's `red` or `blue` team list (`add.js` team select builder, about line 409). +- **Redirect after a save.** Redirect to `url_for("scouting.add", event=, after=, station=, saved=)`, instead of the list. + - Pass each value only if it validates: event key per the regex above, station per `^(red|blue)[1-3]$`, draft id per a short `[A-Za-z0-9-]{1,64}` pattern. + - `after` is the label, length-capped (e.g. 32 chars). It is only compared in JS, never rendered as HTML. +- **Redirect after a failed save** (duplicate or error). Redirect to the add form with `event`, `after` set to the *same* label and the same `station`, but no `saved`. The scout lands on the same match and gets the draft offered. + - The other failure, invalid auto-path JSON at `records.py:46-50`, also redirects to the add form rather than the list. + - **Builder's call:** for the failure redirect, a `match=