Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

Merge pull request #1232 from viniciusmiguel/feat/management-ui

AkitaOnRails862ed0a0ea1d
diff --cc CHANGELOG.md
index 1641bb21,befaab95..433f95ef
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -12,10 -12,9 +12,13 @@@ version in [`docs/changelog/`](docs/cha
## [Unreleased]
### Added
+- Grouped interactive `status` and `doctor` reports into sections with semantic
+ colors, consistent margins and terminal-width wrapping, retaining every
+ diagnostic field and remedy. Redirected, `NO_COLOR`,
+ `TERM=dumb` and JSON reports kept their existing stdout format. (#1313)
+ - Added an opt-in server-rendered management console for users, sessions, and
+ personal MCP API keys, using existing authentication and SQLite storage.
+ Required the `management-ui` build feature and runtime switch. (#1231)
- Added opt-in session inspection and owned-session purging for signed-in
browser users, enabled at runtime with `serve --enable-session-management`
(`AI_MEMORY_ENABLE_SESSION_MANAGEMENT`). A user can purge only a session they
diff --cc crates/ai-memory-mcp/tests/suite/management.rs
index 00000000,0104e316..099dbeaa
mode 000000,100644..100644
--- a/crates/ai-memory-mcp/tests/suite/management.rs
+++ b/crates/ai-memory-mcp/tests/suite/management.rs
@@@ -1,0 -1,1126 +1,1189 @@@
+ //! Adversarial management tests exercise real cookie/CSRF and writer isolation.
+ use ai_memory_core::{
+ ActorContext, AgentKind, NewSession, NewUser, OwnerFilter, ProjectId, SessionId, UserId,
+ UserRole, WorkspaceId,
+ };
+ use ai_memory_mcp::{
+ HumanAuthRuntime,
+ auth::AuthState,
+ human_auth::LoginLimiter,
+ self_service_keys::{SelfServiceKeysState, router as key_router},
+ session_management::{SessionManagementState, router as session_router},
+ };
+ use ai_memory_store::{Store, TokenPepper, hash_session_secret};
+ use ai_memory_wiki::{Wiki, WritePageRequest};
+ use axum::{
+ Router,
+ body::Body,
+ http::{Request, StatusCode},
+ };
+ use serde_json::{Value, json};
+ use std::sync::Arc;
+ use tempfile::TempDir;
+ use tower::ServiceExt;
+
+ struct Browser {
+ cookie: String,
+ csrf: String,
+ user: UserId,
+ }
+ struct Harness {
+ _tmp: TempDir,
+ store: Store,
+ wiki: Wiki,
+ router: Router,
+ alice: Browser,
+ bob: Browser,
+ root: Browser,
+ ws: WorkspaceId,
+ project: ProjectId,
+ }
+
+ async fn browser(store: &Store, name: &str, role: UserRole, must_change: bool) -> Browser {
+ let phc = ai_memory_store::password::hash_password("password-for-test".into())
+ .await
+ .unwrap();
+ let user = store
+ .writer
+ .create_human_user(
+ NewUser {
+ username: name.into(),
+ name: None,
+ email: None,
+ },
+ role,
+ Some(phc.clone()),
+ must_change,
+ )
+ .await
+ .unwrap();
+ let secret = ai_memory_store::web_sessions::generate_session_secret().unwrap();
+ let csrf = ai_memory_store::web_sessions::generate_csrf_secret().unwrap();
+ store
+ .writer
+ .issue_web_session(
+ user,
+ phc,
+ role,
+ must_change,
+ hash_session_secret(&secret),
+ hash_session_secret(&csrf),
+ )
+ .await
+ .unwrap();
+ Browser {
+ user,
+ cookie: format!("ai_memory_session={secret}; ai_memory_csrf={csrf}"),
+ csrf,
+ }
+ }
+ async fn harness() -> Harness {
+ harness_with_chain(None).await
+ }
+ async fn harness_with_chain(chain: Option<ai_memory_wiki::AdmissionChain>) -> Harness {
+ let tmp = TempDir::new().unwrap();
+ let store = Store::open(tmp.path()).unwrap();
+ let mut wiki = Wiki::new(tmp.path(), store.writer.clone())
+ .unwrap()
+ .with_store_reader(store.reader.clone());
+ if let Some(chain) = chain {
+ wiki = wiki.with_admission_chain(chain);
+ }
+ let alice = browser(&store, "alice", UserRole::User, false).await;
+ let bob = browser(&store, "bob", UserRole::User, false).await;
+ let root = browser(&store, "root", UserRole::Root, false).await;
+ let ws = store
+ .writer
+ .get_or_create_workspace("default")
+ .await
+ .unwrap();
+ let project = store
+ .writer
+ .get_or_create_project(ws, "app", None)
+ .await
+ .unwrap();
+ let auth = Arc::new(
+ AuthState::new(Some("root-bearer".into())).with_human(HumanAuthRuntime {
+ reader: store.reader.clone(),
+ writer: store.writer.clone(),
+ recovery_token_hash: None,
+ root_username: "root".into(),
+ root_name: None,
+ root_email: None,
+ reserved_passwords: vec![],
+ trusted_proxy_cidrs: vec![],
+ limiter: Arc::new(LoginLimiter::default()),
+ }),
+ );
+ let router = session_router(
+ SessionManagementState {
+ reader: store.reader.clone(),
+ writer: store.writer.clone(),
+ wiki: wiki.clone(),
+ },
+ auth.clone(),
+ )
+ .merge(key_router(
+ SelfServiceKeysState {
+ reader: store.reader.clone(),
+ writer: store.writer.clone(),
+ pepper: Some(TokenPepper::new("test-pepper")),
+ },
+ auth.clone(),
+ ));
+ let backend = router
+ .clone()
+ .merge(ai_memory_mcp::public_auth_router(auth.clone()))
+ .merge(ai_memory_mcp::session_auth_router(auth));
+ let router = router.merge(ai_memory_web::management::router("/memory", backend));
+ Harness {
+ _tmp: tmp,
+ store,
+ wiki,
+ router,
+ alice,
+ bob,
+ root,
+ ws,
+ project,
+ }
+ }
+ async fn session(h: &Harness, owner: Option<&str>) -> SessionId {
+ let id = SessionId::new();
+ h.store
+ .writer
+ .begin_session(NewSession {
+ occurred_at: None,
+ id,
+ workspace_id: h.ws,
+ project_id: h.project,
+ agent_kind: AgentKind::Codex,
+ cwd: None,
+ actor_user: owner.map(|name| format!("user:{name}")),
+ })
+ .await
+ .unwrap();
+ id
+ }
+ async fn call(
+ h: &Harness,
+ browser: Option<&Browser>,
+ method: &str,
+ uri: &str,
+ body: Value,
+ csrf: bool,
+ ) -> (StatusCode, Value) {
+ let mut request = Request::builder()
+ .method(method)
+ .uri(uri)
+ .header("content-type", "application/json");
+ if let Some(browser) = browser {
+ request = request.header("cookie", &browser.cookie);
+ if csrf {
+ request = request.header("x-csrf-token", &browser.csrf);
+ }
+ }
+ let response = h
+ .router
+ .clone()
+ .oneshot(request.body(Body::from(body.to_string())).unwrap())
+ .await
+ .unwrap();
+ assert_eq!(response.headers()["cache-control"], "private, no-store");
+ let status = response.status();
+ let bytes = axum::body::to_bytes(response.into_body(), 1_000_000)
+ .await
+ .unwrap();
+ (
+ status,
+ serde_json::from_slice(&bytes).unwrap_or(Value::Null),
+ )
+ }
+
+ #[tokio::test]
+ async fn management_refuses_foreign_ids_shared_deletion_and_missing_csrf_with_admin_control() {
+ let h = harness().await;
+ let alice = session(&h, Some("alice")).await;
+ let bob = session(&h, Some("bob")).await;
+ let shared = session(&h, None).await;
+ let uri = "/management/v1/sessions?workspace=default&project=app";
+ assert_eq!(
+ call(&h, None, "GET", uri, Value::Null, false).await.0,
+ StatusCode::UNAUTHORIZED
+ );
+ let response = h
+ .router
+ .clone()
+ .oneshot(
+ Request::builder()
+ .uri(uri)
+ .header("authorization", "Bearer root-bearer")
+ .body(Body::empty())
+ .unwrap(),
+ )
+ .await
+ .unwrap();
+ assert_eq!(
+ response.status(),
+ StatusCode::UNAUTHORIZED,
+ "machine bearer cannot authenticate browser management"
+ );
+ let (status, listing) = call(&h, Some(&h.alice), "GET", uri, Value::Null, false).await;
+ assert_eq!(status, StatusCode::OK);
+ let ids: Vec<_> = listing["sessions"]
+ .as_array()
+ .unwrap()
+ .iter()
+ .map(|s| s["session_id"].as_str().unwrap())
+ .collect();
+ assert!(ids.contains(&alice.to_string().as_str()));
+ assert!(ids.contains(&shared.to_string().as_str()));
+ assert!(!ids.contains(&bob.to_string().as_str()));
+ assert_eq!(
+ call(&h, Some(&h.root), "GET", uri, Value::Null, false)
+ .await
+ .1["sessions"]
+ .as_array()
+ .unwrap()
+ .len(),
+ 3
+ );
+ let observations =
+ format!("/management/v1/sessions/{bob}/observations?workspace=default&project=app");
+ assert_eq!(
+ call(&h, Some(&h.alice), "GET", &observations, Value::Null, false)
+ .await
+ .0,
+ StatusCode::NOT_FOUND
+ );
+ for sid in [bob, shared] {
+ for dry_run in [false, true] {
+ let uri = format!("/management/v1/sessions/{sid}/purge");
+ assert_eq!(call(&h, Some(&h.alice), "POST", &uri, json!({"workspace":"default", "project":"app", "confirm":true, "dry_run":dry_run}), true).await.0, StatusCode::NOT_FOUND);
+ }
+ assert!(
+ h.store
+ .reader
+ .session_summary_scoped(h.ws, h.project, sid, OwnerFilter::Any)
+ .await
+ .unwrap()
+ .is_some()
+ );
+ }
+ let uri = format!("/management/v1/sessions/{alice}/purge");
+ let body = json!({"workspace":"default", "project":"app", "confirm":true});
+ assert_eq!(
+ call(&h, Some(&h.alice), "POST", &uri, body.clone(), false)
+ .await
+ .0,
+ StatusCode::FORBIDDEN
+ );
+ assert_eq!(
+ call(
+ &h,
+ Some(&h.alice),
+ "POST",
+ &uri,
+ json!({"workspace":"default", "project":"app", "dry_run":true, "confirm":true}),
+ true
+ )
+ .await
+ .0,
+ StatusCode::OK
+ );
+ assert!(
+ h.store
+ .reader
+ .session_summary_scoped(h.ws, h.project, alice, OwnerFilter::Any)
+ .await
+ .unwrap()
+ .is_some()
+ );
+ assert_eq!(
+ call(
+ &h,
+ Some(&h.alice),
+ "POST",
+ &uri,
+ json!({"workspace":"default", "project":"app"}),
+ true
+ )
+ .await
+ .0,
+ StatusCode::BAD_REQUEST
+ );
+ // A legitimate purge removes its summary but preserves maintained shared knowledge.
+ for (path, frontmatter) in [
+ (
+ format!("sessions/{alice}.md"),
+ json!({"session_id":alice.to_string()}),
+ ),
+ ("concepts/team.md".into(), json!({})),
+ ] {
+ h.wiki
+ .write_page(WritePageRequest {
+ workspace_id: h.ws,
+ project_id: h.project,
+ path: ai_memory_core::PagePath::new(path).unwrap(),
+ frontmatter,
+ body: "# Shared knowledge".into(),
+ tier: ai_memory_core::Tier::Semantic,
+ pinned: false,
+ title: None,
+ admission_ctx: None,
+ author_id: Some(h.alice.user),
+ actor: ActorContext::default(),
+ evidence: vec![],
+ })
+ .await
+ .unwrap();
+ }
+ assert_eq!(
+ call(&h, Some(&h.alice), "POST", &uri, body.clone(), true)
+ .await
+ .0,
+ StatusCode::OK
+ );
+ assert!(
+ h.store
+ .reader
+ .session_summary_scoped(h.ws, h.project, alice, OwnerFilter::Any)
+ .await
+ .unwrap()
+ .is_none()
+ );
+ assert!(
+ !h.wiki
+ .abs_path(
+ h.ws,
+ h.project,
+ &ai_memory_core::PagePath::new(format!("sessions/{alice}.md")).unwrap()
+ )
+ .exists()
+ );
+ assert!(
+ h.wiki
+ .abs_path(
+ h.ws,
+ h.project,
+ &ai_memory_core::PagePath::new("concepts/team.md").unwrap()
+ )
+ .exists()
+ );
+ assert_eq!(
+ call(
+ &h,
+ Some(&h.root),
+ "POST",
+ &format!("/management/v1/sessions/{bob}/purge"),
+ body,
+ true
+ )
+ .await
+ .0,
+ StatusCode::OK
+ );
+ }
+
+ #[tokio::test]
+ async fn management_project_and_credential_isolation_and_password_change_gate() {
+ let h = harness().await;
+ let bob = session(&h, Some("bob")).await;
+ h.store
+ .writer
+ .set_access_mode(h.project, ai_memory_store::AccessMode::Restricted)
+ .await
+ .unwrap();
+ let projects = call(
+ &h,
+ Some(&h.alice),
+ "GET",
+ "/management/v1/projects",
+ Value::Null,
+ false,
+ )
+ .await
+ .1;
+ assert!(projects["projects"].as_array().unwrap().is_empty());
+ let uri = format!("/management/v1/sessions/{bob}/observations?workspace=default&project=app");
+ assert_eq!(
+ call(&h, Some(&h.alice), "GET", &uri, Value::Null, false)
+ .await
+ .0,
+ StatusCode::FORBIDDEN
+ );
+ assert_eq!(
+ call(&h, Some(&h.root), "GET", &uri, Value::Null, false)
+ .await
+ .0,
+ StatusCode::OK
+ );
+ assert_eq!(
+ call(
+ &h,
+ Some(&h.alice),
+ "GET",
+ "/management/v1/sessions?workspace=default&project=missing",
+ Value::Null,
+ false
+ )
+ .await
+ .0,
+ StatusCode::NOT_FOUND
+ );
+ let key = call(
+ &h,
+ Some(&h.bob),
+ "POST",
+ "/management/v1/credentials",
+ json!({"label":"bob-only"}),
+ true,
+ )
+ .await;
+ assert_eq!(key.0, StatusCode::OK);
+ assert!(key.1["token"].as_str().unwrap().starts_with("aim_"));
+ let uri = format!(
+ "/management/v1/credentials/{}/revoke",
+ key.1["id"].as_str().unwrap()
+ );
+ assert_eq!(
+ call(&h, Some(&h.alice), "POST", &uri, json!({}), true)
+ .await
+ .0,
+ StatusCode::NOT_FOUND
+ );
+ assert!(
+ call(
+ &h,
+ Some(&h.alice),
+ "GET",
+ "/management/v1/credentials",
+ Value::Null,
+ false
+ )
+ .await
+ .1["credentials"]
+ .as_array()
+ .unwrap()
+ .is_empty()
+ );
+ assert_eq!(
+ call(&h, Some(&h.bob), "POST", &uri, json!({}), true)
+ .await
+ .0,
+ StatusCode::OK
+ );
+ let pending = browser(&h.store, "pending", UserRole::User, true).await;
+ assert_eq!(
+ call(
+ &h,
+ Some(&pending),
+ "GET",
+ "/management/v1/projects",
+ Value::Null,
+ false
+ )
+ .await
+ .0,
+ StatusCode::FORBIDDEN
+ );
+ }
+
+ #[tokio::test]
+ async fn management_raw_session_ids_fail_closed_on_wrong_and_partial_scope() {
+ let h = harness().await;
+ let sid = session(&h, Some("alice")).await;
+ let other_workspace = h
+ .store
+ .writer
+ .get_or_create_workspace("other")
+ .await
+ .unwrap();
+ h.store
+ .writer
+ .get_or_create_project(other_workspace, "app", None)
+ .await
+ .unwrap();
+ h.store
+ .writer
+ .get_or_create_project(h.ws, "other", None)
+ .await
+ .unwrap();
+ for browser in [&h.alice, &h.root] {
+ for (workspace, project) in [
+ ("other", "app"),
+ ("default", "other"),
+ ("default", "missing"),
+ ] {
+ let uri = format!(
+ "/management/v1/sessions/{sid}/observations?workspace={workspace}&project={project}"
+ );
+ assert_eq!(
+ call(&h, Some(browser), "GET", &uri, Value::Null, false)
+ .await
+ .0,
+ StatusCode::NOT_FOUND
+ );
+ let uri = format!("/management/v1/sessions/{sid}/purge");
+ for dry_run in [true, false] {
+ assert_eq!(call(&h, Some(browser), "POST", &uri, json!({"workspace":workspace,"project":project,"dry_run":dry_run,"confirm":true}), true).await.0, StatusCode::NOT_FOUND);
+ }
+ }
+ for query in ["", "workspace=default", "project=app"] {
+ let uri = format!("/management/v1/sessions/{sid}/observations?{query}");
+ assert_eq!(
+ call(&h, Some(browser), "GET", &uri, Value::Null, false)
+ .await
+ .0,
+ StatusCode::BAD_REQUEST
+ );
+ }
+ for body in [json!({"workspace":"default"}), json!({"project":"app"})] {
+ assert_eq!(
+ call(
+ &h,
+ Some(browser),
+ "POST",
+ &format!("/management/v1/sessions/{sid}/purge"),
+ body,
+ true
+ )
+ .await
+ .0,
+ StatusCode::UNPROCESSABLE_ENTITY
+ );
+ }
+ assert_eq!(
+ call(
+ &h,
+ Some(browser),
+ "GET",
+ &format!(
+ "/management/v1/sessions/{sid}/observations?workspace=default&project=app"
+ ),
+ Value::Null,
+ false
+ )
+ .await
+ .0,
+ StatusCode::OK
+ );
+ }
+ assert!(
+ h.store
+ .reader
+ .find_project(h.ws, "missing".into())
+ .await
+ .unwrap()
+ .is_none()
+ );
+ assert!(
+ h.store
+ .reader
+ .find_session_scope(sid)
+ .await
+ .unwrap()
+ .is_some()
+ );
+ }
+
+ #[tokio::test]
+ async fn management_purge_admission_rejection_preserves_rows_and_files() {
+ use ai_memory_wiki::{AdmissionChain, AdmissionOp, FailurePolicy, WebhookConfig};
+ use std::sync::atomic::{AtomicBool, Ordering};
+ let allowed = Arc::new(AtomicBool::new(false));
+ let calls = Arc::new(std::sync::Mutex::new(Vec::<Value>::new()));
+ let hook = Router::new().route(
+ "/guard",
+ axum::routing::post({
+ let allowed = allowed.clone();
+ let calls = calls.clone();
+ move |axum::Json(payload): axum::Json<Value>| {
+ calls.lock().unwrap().push(payload);
+ let allowed = allowed.load(Ordering::SeqCst);
+ async move {
+ if allowed {
+ StatusCode::NO_CONTENT
+ } else {
+ StatusCode::FORBIDDEN
+ }
+ }
+ }
+ }),
+ );
+ let listener = tokio::net::TcpListener::bind("127.0.0.1:0").await.unwrap();
+ let address = listener.local_addr().unwrap();
+ let server = tokio::spawn(async move { axum::serve(listener, hook).await.unwrap() });
+ let chain = AdmissionChain::new(vec![WebhookConfig {
+ name: "management-guard".into(),
+ url: format!("http://{address}/guard"),
+ timeout_ms: 1_000,
+ failure_policy: FailurePolicy::Reject,
+ events: vec![AdmissionOp::PurgeSession],
+ blocking: true,
+ }])
+ .unwrap();
+ let h = harness_with_chain(Some(chain)).await;
+ let sid = session(&h, Some("alice")).await;
+ let path = ai_memory_core::PagePath::new(format!("sessions/{sid}.md")).unwrap();
+ h.wiki
+ .write_page(WritePageRequest {
+ workspace_id: h.ws,
+ project_id: h.project,
+ path: path.clone(),
+ frontmatter: json!({"session_id":sid.to_string()}),
+ body: "# Retained until admitted".into(),
+ tier: ai_memory_core::Tier::Episodic,
+ pinned: false,
+ title: None,
+ admission_ctx: None,
+ author_id: Some(h.alice.user),
+ actor: ActorContext::default(),
+ evidence: vec![],
+ })
+ .await
+ .unwrap();
+ let abs = h.wiki.abs_path(h.ws, h.project, &path);
+ let before = std::fs::read(&abs).unwrap();
+ let uri = format!("/management/v1/sessions/{sid}/purge");
+ let body = json!({"workspace":"default","project":"app","confirm":true});
+ assert_eq!(
+ call(
+ &h,
+ Some(&h.alice),
+ "POST",
+ &uri,
+ json!({"workspace":"default","project":"app","dry_run":true,"confirm":true}),
+ true
+ )
+ .await
+ .0,
+ StatusCode::OK
+ );
+ assert!(
+ calls.lock().unwrap().is_empty(),
+ "preview must not run admission"
+ );
+ assert_eq!(std::fs::read(&abs).unwrap(), before);
+ assert_eq!(
+ call(&h, Some(&h.alice), "POST", &uri, body.clone(), true)
+ .await
+ .0,
+ StatusCode::CONFLICT
+ );
+ assert!(
+ h.store
+ .reader
+ .find_session_scope(sid)
+ .await
+ .unwrap()
+ .is_some()
+ );
+ assert_eq!(std::fs::read(&abs).unwrap(), before);
+ assert!(
+ h.wiki
+ .purged_sessions(h.ws, h.project)
+ .await
+ .unwrap()
+ .is_empty()
+ );
+ allowed.store(true, Ordering::SeqCst);
+ assert_eq!(
+ call(&h, Some(&h.alice), "POST", &uri, body, true).await.0,
+ StatusCode::OK
+ );
+ assert!(!abs.exists());
+ assert!(
+ h.store
+ .reader
+ .find_session_scope(sid)
+ .await
+ .unwrap()
+ .is_none()
+ );
+ let recorded = calls.lock().unwrap();
+ assert_eq!(recorded.len(), 2);
+ for payload in recorded.iter() {
+ assert_eq!(payload["ctx"]["workspace"], "default");
+ assert_eq!(payload["ctx"]["project"], "app");
+ assert_eq!(payload["ctx"]["actor"]["user"], "alice");
+ assert_eq!(payload["ctx"]["op"], "purge_session");
+ }
+ server.abort();
+ }
+
+ #[tokio::test]
+ async fn management_pagination_reports_its_limit_and_keeps_pages_disjoint() {
+ use ai_memory_core::{NewObservation, ObservationKind, Sanitized, Sanitizer};
+ let h = harness().await;
+ let uri = "/management/v1/sessions?workspace=default&project=app";
+ let limit = call(&h, Some(&h.alice), "GET", uri, Value::Null, false)
+ .await
+ .1["page_size"]
+ .as_u64()
+ .unwrap() as usize;
+ let mut ids = Vec::new();
+ for _ in 0..limit + 1 {
+ ids.push(session(&h, Some("alice")).await);
+ }
+ let first = call(&h, Some(&h.alice), "GET", uri, Value::Null, false)
+ .await
+ .1;
+ let next = call(
+ &h,
+ Some(&h.alice),
+ "GET",
+ &format!("{uri}&offset={limit}"),
+ Value::Null,
+ false,
+ )
+ .await
+ .1;
+ assert_eq!(first["sessions"].as_array().unwrap().len(), limit);
+ assert_eq!(next["sessions"].as_array().unwrap().len(), 1);
+ let next_id = &next["sessions"][0]["session_id"];
+ assert!(
+ first["sessions"]
+ .as_array()
+ .unwrap()
+ .iter()
+ .all(|row| &row["session_id"] != next_id)
+ );
+ for index in 0..limit + 1 {
+ h.store
+ .writer
+ .insert_observation(Sanitized::new(
+ NewObservation {
+ session_id: ids[0],
+ workspace_id: h.ws,
+ project_id: h.project,
+ kind: ObservationKind::UserPrompt,
+ extension: None,
+ source_event: None,
+ title: format!("event {index}"),
+ body: format!("event body {index}"),
+ importance: 5,
+ occurred_at: None,
+ },
+ &Sanitizer::default(),
+ ))
+ .await
+ .unwrap();
+ }
+ let uri = format!(
+ "/management/v1/sessions/{}/observations?workspace=default&project=app",
+ ids[0]
+ );
+ let first = call(&h, Some(&h.alice), "GET", &uri, Value::Null, false)
+ .await
+ .1;
+ let next = call(
+ &h,
+ Some(&h.alice),
+ "GET",
+ &format!("{uri}&offset={limit}"),
+ Value::Null,
+ false,
+ )
+ .await
+ .1;
+ assert_eq!(first["page_size"], limit);
+ assert_eq!(first["total"], limit + 1);
+ assert_eq!(first["records"].as_array().unwrap().len(), limit);
+ assert_eq!(next["records"].as_array().unwrap().len(), 1);
+ let next_id = &next["records"][0]["id"];
+ assert!(
+ first["records"]
+ .as_array()
+ .unwrap()
+ .iter()
+ .all(|row| &row["id"] != next_id)
+ );
+ }
+
+ async fn html_request(
+ h: &Harness,
+ browser: Option<&Browser>,
+ method: &str,
+ uri: &str,
+ body: &str,
+ origin: &str,
+ bearer: Option<&str>,
+ ) -> (StatusCode, String) {
+ let mut request = Request::builder()
+ .method(method)
+ .uri(uri)
+ .header("host", "memory.example")
+ .header("origin", origin)
+ .header("content-type", "application/x-www-form-urlencoded");
+ if let Some(browser) = browser {
+ request = request.header("cookie", &browser.cookie);
+ }
+ if let Some(bearer) = bearer {
+ request = request.header("authorization", format!("Bearer {bearer}"));
+ }
+ let response = h
+ .router
+ .clone()
+ .oneshot(request.body(Body::from(body.to_string())).unwrap())
+ .await
+ .unwrap();
+ assert_eq!(response.headers()["cache-control"], "private, no-store");
+ assert_eq!(response.headers()["x-frame-options"], "DENY");
+ let status = response.status();
+ let body = axum::body::to_bytes(response.into_body(), 8 * 1024 * 1024)
+ .await
+ .unwrap();
+ (status, String::from_utf8(body.to_vec()).unwrap())
+ }
+
+ #[tokio::test]
+ async fn management_html_plain_forms_preserve_csrf_owner_and_machine_boundaries() {
+ let h = harness().await;
+ let alice = session(&h, Some("alice")).await;
+ let bob = session(&h, Some("bob")).await;
+ let origin = "https://memory.example";
++ let machine_only = html_request(
++ &h,
++ None,
++ "GET",
++ "/manage/users",
++ "",
++ origin,
++ Some("root-bearer"),
++ )
++ .await;
++ assert_eq!(machine_only.0, StatusCode::SEE_OTHER);
++ assert!(machine_only.1.is_empty());
+ let own_events = html_request(
+ &h,
+ Some(&h.alice),
+ "GET",
+ &format!("/manage/session?workspace=default&project=app&session={alice}"),
+ "",
+ origin,
+ None,
+ )
+ .await;
+ assert_eq!(own_events.0, StatusCode::OK);
+ assert!(own_events.1.contains("Session events"));
+ assert_eq!(
+ html_request(
+ &h,
+ Some(&h.alice),
+ "GET",
+ &format!("/manage/session?workspace=default&project=app&session={bob}"),
+ "",
+ origin,
+ None
+ )
+ .await
+ .0,
+ StatusCode::NOT_FOUND
+ );
+ let form = format!(
+ "action=preview-purge&workspace=default&project=app&session={bob}&csrf={}",
+ h.alice.csrf
+ );
+ assert_eq!(
+ html_request(
+ &h,
+ Some(&h.alice),
+ "POST",
+ "/manage/action",
+ &form,
+ origin,
+ None
+ )
+ .await
+ .0,
+ StatusCode::NOT_FOUND
+ );
+ let own_form = form.replace(&bob.to_string(), &alice.to_string());
+ assert_eq!(
+ html_request(
+ &h,
+ Some(&h.alice),
+ "POST",
+ "/manage/action",
+ &own_form.replace(&h.alice.csrf, "forged"),
+ origin,
+ None
+ )
+ .await
+ .0,
+ StatusCode::FORBIDDEN
+ );
+ assert_eq!(
+ html_request(
+ &h,
+ Some(&h.alice),
+ "POST",
+ "/manage/action",
+ &own_form,
+ "https://evil.example",
+ None
+ )
+ .await
+ .0,
+ StatusCode::FORBIDDEN
+ );
+ assert_eq!(
+ html_request(
+ &h,
+ Some(&h.root),
+ "POST",
+ "/manage/action",
+ &own_form,
+ origin,
+ Some("root-bearer")
+ )
+ .await
+ .0,
+ StatusCode::SEE_OTHER
+ );
+ let (status, preview) = html_request(
+ &h,
+ Some(&h.alice),
+ "POST",
+ "/manage/action",
+ &own_form,
+ origin,
+ None,
+ )
+ .await;
+ assert_eq!(status, StatusCode::OK);
+ assert!(preview.contains("Handoffs unlinked in other projects"));
+ assert!(
+ h.store
+ .reader
+ .find_session_scope(alice)
+ .await
+ .unwrap()
+ .is_some()
+ );
+ let purging = own_form.replace("preview-purge", "purge");
+ assert_eq!(
+ html_request(
+ &h,
+ Some(&h.alice),
+ "POST",
+ "/manage/action",
+ &purging,
+ origin,
+ None
+ )
+ .await
+ .0,
+ StatusCode::BAD_REQUEST
+ );
+ assert_eq!(
+ html_request(
+ &h,
+ Some(&h.alice),
+ "POST",
+ "/manage/action",
+ &(purging + "&confirm=true"),
+ origin,
+ None
+ )
+ .await
+ .0,
+ StatusCode::SEE_OTHER
+ );
+ assert!(
+ h.store
+ .reader
+ .find_session_scope(alice)
+ .await
+ .unwrap()
+ .is_none()
+ );
+ assert!(
+ h.store
+ .reader
+ .find_session_scope(bob)
+ .await
+ .unwrap()
+ .is_some()
+ );
+ let pending = browser(&h.store, "html-pending", UserRole::User, true).await;
+ assert_eq!(
+ html_request(
+ &h,
+ Some(&pending),
+ "POST",
+ "/manage/action",
+ &format!("action=create-key&label=refused&csrf={}", pending.csrf),
+ origin,
+ None
+ )
+ .await
+ .0,
+ StatusCode::FORBIDDEN
+ );
+ let key_form = format!(
+ "action=create-key&label=%3Cscript%3Eattack%3C%2Fscript%3E&csrf={}",
+ h.alice.csrf
+ );
+ let (status, secret) = html_request(
+ &h,
+ Some(&h.alice),
+ "POST",
+ "/manage/action",
+ &key_form,
+ origin,
+ None,
+ )
+ .await;
+ assert_eq!(status, StatusCode::OK);
+ assert!(secret.contains("issued-secret"));
+ let keys = html_request(&h, Some(&h.alice), "GET", "/manage/keys", "", origin, None).await;
+ assert_eq!(keys.0, StatusCode::OK);
+ assert!(keys.1.contains("&lt;script&gt;attack&lt;/script&gt;"));
+ assert!(!keys.1.contains("<script>attack</script>"));
+ let key = h
+ .store
+ .reader
+ .list_api_credentials_for_user(h.alice.user)
+ .await
+ .unwrap()
+ .pop()
+ .unwrap();
+ assert_eq!(
+ html_request(
+ &h,
+ Some(&h.bob),
+ "POST",
+ "/manage/action",
+ &format!(
+ "action=revoke-key&credential={}&csrf={}",
+ key.id, h.bob.csrf
+ ),
+ origin,
+ None
+ )
+ .await
+ .0,
+ StatusCode::NOT_FOUND
+ );
+ assert_eq!(
+ html_request(
+ &h,
+ Some(&h.alice),
+ "POST",
+ "/manage/action",
+ &format!(
+ "action=revoke-key&credential={}&csrf={}",
+ key.id, h.alice.csrf
+ ),
+ origin,
+ None
+ )
+ .await
+ .0,
+ StatusCode::SEE_OTHER
+ );
+ }
+
+ #[tokio::test]
+ async fn management_html_login_rejects_cross_origin_forms_and_preserves_session_cookies() {
+ let h = harness().await;
++ let empty_sessions = html_request(
++ &h,
++ Some(&h.alice),
++ "GET",
++ "/manage/sessions?workspace=default&project=app",
++ "",
++ "https://memory.example",
++ None,
++ )
++ .await;
++ assert_eq!(empty_sessions.0, StatusCode::OK);
++ assert!(empty_sessions.1.contains("No sessions in this project"));
++ assert!(!empty_sessions.1.contains("<table"));
+ let body = "action=login&username=alice&password=password-for-test";
+ for origin in ["https://evil.example", "null", ""] {
+ assert_eq!(
+ html_request(&h, None, "POST", "/manage/action", body, origin, None)
+ .await
+ .0,
+ StatusCode::FORBIDDEN
+ );
+ }
++ for site in ["same-site", "cross-site", "invalid"] {
++ let response = h
++ .router
++ .clone()
++ .oneshot(
++ Request::builder()
++ .method("POST")
++ .uri("/manage/action")
++ .header("host", "memory.example")
++ .header("origin", "https://memory.example")
++ .header("sec-fetch-site", site)
++ .header("content-type", "application/x-www-form-urlencoded")
++ .body(Body::from(body))
++ .unwrap(),
++ )
++ .await
++ .unwrap();
++ assert_eq!(response.status(), StatusCode::FORBIDDEN, "{site}");
++ }
++ for site in ["same-origin", "none"] {
++ let response = h
++ .router
++ .clone()
++ .oneshot(
++ Request::builder()
++ .method("POST")
++ .uri("/manage/action")
++ .header("host", "memory.example")
++ .header("origin", "https://memory.example")
++ .header("sec-fetch-site", site)
++ .header("content-type", "application/x-www-form-urlencoded")
++ .body(Body::from(body))
++ .unwrap(),
++ )
++ .await
++ .unwrap();
++ assert_eq!(response.status(), StatusCode::SEE_OTHER, "{site}");
++ }
+ let response = h
+ .router
+ .clone()
+ .oneshot(
+ Request::builder()
+ .method("POST")
+ .uri("/manage/action")
+ .header("host", "memory.example")
+ .header("origin", "https://memory.example")
+ .header("content-type", "application/x-www-form-urlencoded")
+ .body(Body::from(body))
+ .unwrap(),
+ )
+ .await
+ .unwrap();
+ assert_eq!(response.status(), StatusCode::SEE_OTHER);
+ assert_eq!(response.headers()["location"], "/memory/manage/sessions");
+ assert!(
+ response
+ .headers()
+ .get_all("set-cookie")
+ .iter()
+ .any(|cookie| cookie.to_str().unwrap().starts_with("ai_memory_session="))
+ );
+ let page = html_request(
+ &h,
+ None,
+ "GET",
+ "/manage/login",
+ "",
+ "https://memory.example",
+ None,
+ )
+ .await;
+ assert_eq!(page.0, StatusCode::OK);
+ assert!(page.1.contains(r#"method="post""#));
+ assert!(!page.1.contains("fetch("));
+ }
diff --cc crates/ai-memory-web/src/management/forms.rs
index 00000000,94a26232..c3f37058
mode 000000,100644..100644
--- a/crates/ai-memory-web/src/management/forms.rs
+++ b/crates/ai-memory-web/src/management/forms.rs
@@@ -1,0 -1,276 +1,280 @@@
+ //! Plain POST form adapters: fixed targets, existing session/CSRF and capability gates.
+ use super::{
+ Management,
+ backend::{Client, copy_cookies},
+ views::{ConsoleView, Screen, text},
+ };
+ use ai_memory_core::{ApiCredentialId, SessionId};
+ use axum::{
+ Form,
+ body::Body,
+ extract::{FromRequest, State},
+ http::{Request, StatusCode},
+ response::{IntoResponse, Redirect, Response},
+ };
+ use serde::Deserialize;
+ use serde_json::json;
+ use std::sync::Arc;
+
+ #[derive(Deserialize, PartialEq, Eq)]
+ #[serde(rename_all = "kebab-case")]
+ enum Action {
+ Login,
+ Password,
+ Logout,
+ AddUser,
+ Role,
+ ResetPassword,
+ Disable,
+ Enable,
+ IssueKey,
+ RevokeAdminKey,
+ CreateKey,
+ RevokeKey,
+ PreviewPurge,
+ Purge,
+ }
+ #[derive(Deserialize)]
+ struct Command {
+ action: Action,
+ #[serde(default)]
+ csrf: String,
+ #[serde(default)]
+ username: String,
+ #[serde(default)]
+ password: String,
+ #[serde(default)]
+ current_password: String,
+ #[serde(default)]
+ new_password: String,
+ #[serde(default)]
+ new_password_confirmation: String,
+ #[serde(default)]
+ name: String,
+ #[serde(default)]
+ role: String,
+ #[serde(default)]
+ label: String,
+ session: Option<SessionId>,
+ credential: Option<ApiCredentialId>,
+ #[serde(default)]
+ workspace: String,
+ #[serde(default)]
+ project: String,
+ #[serde(default)]
+ confirm: bool,
+ }
+ pub(super) async fn submit(
+ State(state): State<Arc<Management>>,
+ request: Request<Body>,
+ ) -> Response {
+ // Plain login forms lack the JSON/preflight barrier used by /auth/login.
+ // Require a same-origin POST before translating any form into JSON.
+ if !same_origin(request.headers()) {
+ return super::failure(
+ StatusCode::FORBIDDEN,
+ "Cross-origin form request refused".into(),
+ );
+ }
+ let headers = request.headers().clone();
+ let extensions = request.extensions().clone();
+ let Form(command) = match Form::<Command>::from_request(request, &()).await {
+ Ok(form) => form,
+ Err(error) => return error.into_response(),
+ };
+ let client = Client {
+ router: state.backend.clone(),
+ headers,
+ extensions,
+ };
+ let mut view = ConsoleView::new(&state.root, Screen::Secret, command.csrf.clone());
+ if command.action != Action::Login {
+ let me = match super::identity(&client, &state.root).await {
+ Ok(me) => me,
+ Err(response) => return response,
+ };
+ if me.must_change_password
+ && command.action != Action::Password
+ && command.action != Action::Logout
+ {
+ return super::failure(StatusCode::FORBIDDEN, "Password change required".into());
+ }
+ view.username = me.username;
+ view.admin = me.admin;
+ }
+ if command.action == Action::Password
+ && command.new_password.chars().count() < super::MIN_PASSWORD_CHARACTERS
+ {
+ return super::failure(
+ StatusCode::BAD_REQUEST,
+ "Use at least 12 characters.".into(),
+ );
+ }
+ let (method, path, body, destination) = match command.target() {
+ Ok(target) => target,
+ Err(message) => return super::failure(StatusCode::BAD_REQUEST, message.to_string()),
+ };
+ let reply = match client
+ .call(
+ method,
+ &path,
+ Some(body),
+ if command.action == Action::Login {
+ None
+ } else {
+ Some(&command.csrf)
+ },
+ )
+ .await
+ {
+ Ok(reply) => reply,
+ Err(response) => return response,
+ };
+ let mut response = if !reply.status.is_success() {
+ super::failure(reply.status, text(&reply.data, "error"))
+ } else if command.action == Action::PreviewPurge {
+ view.preview(
+ &reply.data,
+ command.session.map(|s| s.to_string()).unwrap_or_default(),
+ command.workspace,
+ command.project,
+ );
+ super::render(view)
+ } else if !text(&reply.data, "temporary_password").is_empty()
+ || !text(&reply.data, "token").is_empty()
+ {
+ view.secret_title = if reply.data["temporary_password"].is_string() {
+ "Temporary password"
+ } else {
+ "New MCP API key"
+ }
+ .into();
+ view.secret = if reply.data["temporary_password"].is_string() {
+ text(&reply.data, "temporary_password")
+ } else {
+ text(&reply.data, "token")
+ };
+ super::render(view)
+ } else if command.action == Action::Purge
+ && reply.data["files_failed"]
+ .as_array()
+ .is_some_and(|a| !a.is_empty())
+ {
+ super::failure(StatusCode::OK,"Database deletion completed, but some wiki files could not be removed. Ask an Admin to check the server logs.".into())
+ } else {
+ let destination =
+ if command.action == Action::Login && reply.data["must_change_password"] == true {
+ "password".to_string()
+ } else {
+ destination
+ };
+ Redirect::to(&format!("{}/{destination}", state.root)).into_response()
+ };
+ copy_cookies(&reply.headers, &mut response);
+ response
+ }
+ impl Command {
+ fn target(&self) -> Result<(&'static str, String, serde_json::Value, String), &'static str> {
+ let user = crate::templates::encode_segment(&self.username);
+ let key = || self.credential.ok_or("Credential ID required");
+ let session = || self.session.ok_or("Session ID required");
+ Ok(match self.action {
+ Action::Login => (
+ "POST",
+ "/auth/login".into(),
+ json!({"username":self.username,"password":self.password}),
+ "sessions".into(),
+ ),
+ Action::Password => (
+ "POST",
+ "/auth/password".into(),
+ json!({"current_password":self.current_password,"new_password":self.new_password,"new_password_confirmation":self.new_password_confirmation}),
+ "sessions".into(),
+ ),
+ Action::Logout => ("POST", "/auth/logout".into(), json!({}), "login".into()),
+ Action::AddUser => (
+ "POST",
+ "/admin/human-users".into(),
+ json!({"username":self.username,"name":if self.name.is_empty() { None } else { Some(&self.name) },"role":self.role}),
+ "users".into(),
+ ),
+ Action::Role => (
+ "PATCH",
+ format!("/admin/users/{user}"),
+ json!({"role":self.role}),
+ "users".into(),
+ ),
+ Action::Disable | Action::Enable | Action::ResetPassword => {
+ let action = match self.action {
+ Action::Disable => "disable",
+ Action::Enable => "enable",
+ _ => "reset-password",
+ };
+ (
+ "POST",
+ format!("/admin/users/{user}/{action}"),
+ json!({}),
+ "users".into(),
+ )
+ }
+ Action::IssueKey => (
+ "POST",
+ "/admin/api-credentials".into(),
+ json!({"username":self.username,"label":self.label}),
+ "users".into(),
+ ),
+ Action::RevokeAdminKey => (
+ "POST",
+ format!("/admin/api-credentials/{}/revoke", key()?),
+ json!({}),
+ "users".into(),
+ ),
+ Action::CreateKey => (
+ "POST",
+ "/management/v1/credentials".into(),
+ json!({"label":self.label}),
+ "keys".into(),
+ ),
+ Action::RevokeKey => (
+ "POST",
+ format!("/management/v1/credentials/{}/revoke", key()?),
+ json!({}),
+ "keys".into(),
+ ),
+ Action::PreviewPurge | Action::Purge => (
+ "POST",
+ format!("/management/v1/sessions/{}/purge", session()?),
+ json!({"workspace":self.workspace,"project":self.project,"dry_run":self.action==Action::PreviewPurge,"confirm":self.confirm}),
+ format!(
+ "sessions?{}",
+ super::views::query(&self.workspace, &self.project, 0)
+ ),
+ ),
+ })
+ }
+ }
+
+ fn same_origin(headers: &axum::http::HeaderMap) -> bool {
+ let origin = headers
+ .get(axum::http::header::ORIGIN)
+ .and_then(|v| v.to_str().ok())
+ .and_then(|v| v.parse::<axum::http::Uri>().ok());
+ let host = headers
+ .get(axum::http::header::HOST)
+ .and_then(|v| v.to_str().ok());
- origin.is_some_and(|origin| {
++ let origin_matches = origin.is_some_and(|origin| {
+ matches!(origin.scheme_str(), Some("http" | "https"))
+ && origin.path() == "/"
+ && origin.query().is_none()
+ && origin
+ .authority()
+ .zip(host)
+ .is_some_and(|(authority, host)| authority.as_str().eq_ignore_ascii_case(host))
- }) && headers
- .get("sec-fetch-site")
- .is_none_or(|site| site != "cross-site")
++ });
++ let fetch_site_matches = headers.get("sec-fetch-site").is_none_or(|site| {
++ site.to_str().is_ok_and(|site| {
++ site.eq_ignore_ascii_case("same-origin") || site.eq_ignore_ascii_case("none")
++ })
++ });
++ origin_matches && fetch_site_matches
+ }
diff --cc crates/ai-memory-web/static/input.css
index b5c61c95,5a31d4fb..d2a00d79
--- a/crates/ai-memory-web/static/input.css
+++ b/crates/ai-memory-web/static/input.css
@@@ -1,3 -1,24 +1,24 @@@
@tailwind base;
@tailwind components;
@tailwind utilities;
+
-/* Management palette mirrors the public website. Both themes share one definition. */
++/* Quiet operational palette; both themes share one definition. */
+ @font-face { font-family: "Management Sans"; src: url("instrument-sans-latin-wdth-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
+ @font-face { font-family: "Management Display"; src: url("bricolage-grotesque-latin-standard-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
+ @font-face { font-family: "Management Mono"; src: url("commit-mono-latin-400-normal.woff2") format("woff2"); font-display: swap; }
+ :root:has(.management) { color-scheme: light; }
+ :root[data-theme="dark"]:has(.management) { color-scheme: dark; }
+ @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):has(.management) { color-scheme: dark; } }
-.management { --mg-bg: light-dark(oklch(98.5% .006 285),oklch(15.5% .035 282)); --mg-surface: light-dark(white,oklch(20% .04 282)); --mg-text: light-dark(oklch(21% .045 282),oklch(95.5% .012 285)); --mg-muted: light-dark(oklch(45% .035 282),oklch(74% .03 285)); --mg-line: light-dark(oklch(88.5% .02 285),oklch(33% .045 282)); color: var(--mg-text); background: radial-gradient(ellipse at 80% 0%,oklch(78% .13 195 / .13),transparent 50%),var(--mg-bg); font-family: "Management Sans",system-ui,sans-serif; font-size: 17px; }
++.management { --mg-bg: light-dark(#f5f7f5,#141715); --mg-surface: light-dark(#ffffff,#202522); --mg-text: light-dark(#171a18,#f0f4f1); --mg-muted: light-dark(#59625d,#aab5ae); --mg-line: light-dark(#d8ded9,#3d4640); color: var(--mg-text); background: var(--mg-bg); font-family: "Management Sans",system-ui,sans-serif; font-size: 17px; }
+ .management-header { background: var(--mg-surface); border-color: var(--mg-line); }
-.management h1,.management h2,.management-brand strong { font-family: "Management Display",system-ui,sans-serif; font-weight: 650; letter-spacing: -.035em; }
++.management h1,.management h2,.management-brand strong { font-family: "Management Display",system-ui,sans-serif; font-weight: 650; letter-spacing: 0; }
+ .management h1 { font-size: 2rem; margin-bottom: .6rem; } .management h2 { font-size: 1.25rem; }
+ .management-brand strong { font-size: 1.5rem; } .management-muted { color: var(--mg-muted); } .management-mono { font-family: "Management Mono",monospace; }
-.management-panel { padding: 1.5rem; border: 1px solid var(--mg-line); border-radius: 1.25rem; background: var(--mg-surface); box-shadow: 0 12px 32px -12px oklch(21% .045 282 / .1); }
-.management button,.management-button { display: inline-block; padding: .6rem 1rem; border: 1px solid var(--mg-line); border-radius: 999px; background: var(--mg-surface); font-size: .875rem; font-weight: 600; cursor: pointer; }
-.management .management-primary { background: oklch(81% .16 75); color: oklch(20% .05 60); border-color: transparent; } .management-danger { color: light-dark(oklch(47% .17 355),oklch(83% .1 355)); }
-.management label { display: block; font-size: .875rem; } .management input:not([type="hidden"]):not([type="checkbox"]),.management select { display: block; width: 100%; margin-top: .4rem; padding: .65rem .75rem; border: 1px solid var(--mg-line); border-radius: .75rem; background: var(--mg-surface); }
-.management input:focus-visible,.management button:focus-visible,.management a:focus-visible,.management select:focus-visible { outline: 2px solid light-dark(oklch(47% .09 205),oklch(83% .11 205)); outline-offset: 3px; }
++.management-panel { padding: 1.5rem; border: 1px solid var(--mg-line); border-radius: .5rem; background: var(--mg-surface); box-shadow: 0 8px 24px -16px rgb(24 38 29 / .28); }
++.management button,.management-button { display: inline-block; padding: .6rem 1rem; border: 1px solid var(--mg-line); border-radius: .375rem; background: var(--mg-surface); font-size: .875rem; font-weight: 600; cursor: pointer; }
++.management .management-primary { background: light-dark(#f3c74f,#e8b936); color: #252016; border-color: transparent; } .management-danger { color: light-dark(#b42336,#ff9aa7); }
++.management label { display: block; font-size: .875rem; } .management input:not([type="hidden"]):not([type="checkbox"]),.management select { display: block; width: 100%; margin-top: .4rem; padding: .65rem .75rem; border: 1px solid var(--mg-line); border-radius: .375rem; background: var(--mg-surface); }
++.management input:focus-visible,.management button:focus-visible,.management a:focus-visible,.management select:focus-visible { outline: 2px solid light-dark(#087d78,#67d6ce); outline-offset: 3px; }
+ .management td,.management th { padding: 1rem .75rem; border-bottom: 1px solid var(--mg-line); }
-.management-themes { display: flex; gap: .25rem; padding: .25rem; border: 1px solid var(--mg-line); border-radius: 999px; }
-.management-themes button { border-color: transparent; color: var(--mg-muted); padding: .35rem .75rem; font-size: .75rem; } .management-themes button[aria-pressed="true"] { border-color: var(--mg-line); color: var(--mg-text); }
++.management-themes { display: flex; gap: .25rem; padding: .25rem; border: 1px solid var(--mg-line); border-radius: .5rem; }
++.management-themes button { border-color: transparent; border-radius: .25rem; color: var(--mg-muted); padding: .35rem .75rem; font-size: .75rem; } .management-themes button[aria-pressed="true"] { border-color: var(--mg-line); color: var(--mg-text); }
diff --cc crates/ai-memory-web/static/management/font-licenses.txt
index 00000000,2e921bd6..c40b8353
mode 000000,100644..100644
--- a/crates/ai-memory-web/static/management/font-licenses.txt
+++ b/crates/ai-memory-web/static/management/font-licenses.txt
@@@ -1,0 -1,283 +1,284 @@@
+ Instrument Sans
+ Copyright 2022 The Instrument Sans Project Authors (https://github.com/Instrument/instrument-sans) InstrumentSans-Italic[wdth,wght].ttf: Copyright 2022 The Instrument Sans Project Authors (https://github.com/Instrument/instrument-sans)
+
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
+ This license is copied below, and is also available with a FAQ at:
+ http://scripts.sil.org/OFL
+
+
+ -----------------------------------------------------------
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+ -----------------------------------------------------------
+
+ PREAMBLE
+ The goals of the Open Font License (OFL) are to stimulate worldwide
+ development of collaborative font projects, to support the font creation
+ efforts of academic and linguistic communities, and to provide a free and
+ open framework in which fonts may be shared and improved in partnership
+ with others.
+
+ The OFL allows the licensed fonts to be used, studied, modified and
+ redistributed freely as long as they are not sold by themselves. The
+ fonts, including any derivative works, can be bundled, embedded,
+ redistributed and/or sold with any software provided that any reserved
+ names are not used by derivative works. The fonts and derivatives,
+ however, cannot be released under any other type of license. The
+ requirement for fonts to remain under this license does not apply
+ to any document created using the fonts or their derivatives.
+
+ DEFINITIONS
+ "Font Software" refers to the set of files released by the Copyright
+ Holder(s) under this license and clearly marked as such. This may
+ include source files, build scripts and documentation.
+
+ "Reserved Font Name" refers to any names specified as such after the
+ copyright statement(s).
+
+ "Original Version" refers to the collection of Font Software components as
+ distributed by the Copyright Holder(s).
+
+ "Modified Version" refers to any derivative made by adding to, deleting,
+ or substituting -- in part or in whole -- any of the components of the
+ Original Version, by changing formats or by porting the Font Software to a
+ new environment.
+
+ "Author" refers to any designer, engineer, programmer, technical
+ writer or other person who contributed to the Font Software.
+
+ PERMISSION & CONDITIONS
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
+ redistribute, and sell modified and unmodified copies of the Font
+ Software, subject to the following conditions:
+
+ 1) Neither the Font Software nor any of its individual components,
+ in Original or Modified Versions, may be sold by itself.
+
+ 2) Original or Modified Versions of the Font Software may be bundled,
+ redistributed and/or sold with any software, provided that each copy
+ contains the above copyright notice and this license. These can be
+ included either as stand-alone text files, human-readable headers or
+ in the appropriate machine-readable metadata fields within text or
+ binary files as long as those fields can be easily viewed by the user.
+
+ 3) No Modified Version of the Font Software may use the Reserved Font
+ Name(s) unless explicit written permission is granted by the corresponding
+ Copyright Holder. This restriction only applies to the primary font name as
+ presented to the users.
+
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+ Software shall not be used to promote, endorse or advertise any
+ Modified Version, except to acknowledge the contribution(s) of the
+ Copyright Holder(s) and the Author(s) or with their explicit written
+ permission.
+
+ 5) The Font Software, modified or unmodified, in part or in whole,
+ must be distributed entirely under this license, and must not be
+ distributed under any other license. The requirement for fonts to
+ remain under this license does not apply to any document created
+ using the Font Software.
+
+ TERMINATION
+ This license becomes null and void if any of the above conditions are
+ not met.
+
+ DISCLAIMER
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+ OTHER DEALINGS IN THE FONT SOFTWARE.
+
+
+ Bricolage Grotesque
+ Copyright 2022 The Bricolage Grotesque Project Authors (https://github.com/ateliertriay/bricolage)
+
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
+ This license is copied below, and is also available with a FAQ at:
+ http://scripts.sil.org/OFL
+
+
+ -----------------------------------------------------------
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+ -----------------------------------------------------------
+
+ PREAMBLE
+ The goals of the Open Font License (OFL) are to stimulate worldwide
+ development of collaborative font projects, to support the font creation
+ efforts of academic and linguistic communities, and to provide a free and
+ open framework in which fonts may be shared and improved in partnership
+ with others.
+
+ The OFL allows the licensed fonts to be used, studied, modified and
+ redistributed freely as long as they are not sold by themselves. The
+ fonts, including any derivative works, can be bundled, embedded,
+ redistributed and/or sold with any software provided that any reserved
+ names are not used by derivative works. The fonts and derivatives,
+ however, cannot be released under any other type of license. The
+ requirement for fonts to remain under this license does not apply
+ to any document created using the fonts or their derivatives.
+
+ DEFINITIONS
+ "Font Software" refers to the set of files released by the Copyright
+ Holder(s) under this license and clearly marked as such. This may
+ include source files, build scripts and documentation.
+
+ "Reserved Font Name" refers to any names specified as such after the
+ copyright statement(s).
+
+ "Original Version" refers to the collection of Font Software components as
+ distributed by the Copyright Holder(s).
+
+ "Modified Version" refers to any derivative made by adding to, deleting,
+ or substituting -- in part or in whole -- any of the components of the
+ Original Version, by changing formats or by porting the Font Software to a
+ new environment.
+
+ "Author" refers to any designer, engineer, programmer, technical
+ writer or other person who contributed to the Font Software.
+
+ PERMISSION & CONDITIONS
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
+ redistribute, and sell modified and unmodified copies of the Font
+ Software, subject to the following conditions:
+
+ 1) Neither the Font Software nor any of its individual components,
+ in Original or Modified Versions, may be sold by itself.
+
+ 2) Original or Modified Versions of the Font Software may be bundled,
+ redistributed and/or sold with any software, provided that each copy
+ contains the above copyright notice and this license. These can be
+ included either as stand-alone text files, human-readable headers or
+ in the appropriate machine-readable metadata fields within text or
+ binary files as long as those fields can be easily viewed by the user.
+
+ 3) No Modified Version of the Font Software may use the Reserved Font
+ Name(s) unless explicit written permission is granted by the corresponding
+ Copyright Holder. This restriction only applies to the primary font name as
+ presented to the users.
+
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+ Software shall not be used to promote, endorse or advertise any
+ Modified Version, except to acknowledge the contribution(s) of the
+ Copyright Holder(s) and the Author(s) or with their explicit written
+ permission.
+
+ 5) The Font Software, modified or unmodified, in part or in whole,
+ must be distributed entirely under this license, and must not be
+ distributed under any other license. The requirement for fonts to
+ remain under this license does not apply to any document created
+ using the Font Software.
+
+ TERMINATION
+ This license becomes null and void if any of the above conditions are
+ not met.
+
+ DISCLAIMER
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+ OTHER DEALINGS IN THE FONT SOFTWARE.
+
+
+ Commit Mono
++Copyright (c) 2023 Eigil Nikolajsen ([email protected])
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
+ This license is copied below, and is also available with a FAQ at:
+ http://scripts.sil.org/OFL
+
+ -----------------------------------------------------------
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+ -----------------------------------------------------------
+
+ PREAMBLE
+ The goals of the Open Font License (OFL) are to stimulate worldwide
+ development of collaborative font projects, to support the font creation
+ efforts of academic and linguistic communities, and to provide a free and
+ open framework in which fonts may be shared and improved in partnership
+ with others.
+
+ The OFL allows the licensed fonts to be used, studied, modified and
+ redistributed freely as long as they are not sold by themselves. The
+ fonts, including any derivative works, can be bundled, embedded,
+ redistributed and/or sold with any software provided that any reserved
+ names are not used by derivative works. The fonts and derivatives,
+ however, cannot be released under any other type of license. The
+ requirement for fonts to remain under this license does not apply
+ to any document created using the fonts or their derivatives.
+
+ DEFINITIONS
+ "Font Software" refers to the set of files released by the Copyright
+ Holder(s) under this license and clearly marked as such. This may
+ include source files, build scripts and documentation.
+
+ "Reserved Font Name" refers to any names specified as such after the
+ copyright statement(s).
+
+ "Original Version" refers to the collection of Font Software components as
+ distributed by the Copyright Holder(s).
+
+ "Modified Version" refers to any derivative made by adding to, deleting,
+ or substituting -- in part or in whole -- any of the components of the
+ Original Version, by changing formats or by porting the Font Software to a
+ new environment.
+
+ "Author" refers to any designer, engineer, programmer, technical
+ writer or other person who contributed to the Font Software.
+
+ PERMISSION & CONDITIONS
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
+ redistribute, and sell modified and unmodified copies of the Font
+ Software, subject to the following conditions:
+
+ 1) Neither the Font Software nor any of its individual components,
+ in Original or Modified Versions, may be sold by itself.
+
+ 2) Original or Modified Versions of the Font Software may be bundled,
+ redistributed and/or sold with any software, provided that each copy
+ contains the above copyright notice and this license. These can be
+ included either as stand-alone text files, human-readable headers or
+ in the appropriate machine-readable metadata fields within text or
+ binary files as long as those fields can be easily viewed by the user.
+
+ 3) No Modified Version of the Font Software may use the Reserved Font
+ Name(s) unless explicit written permission is granted by the corresponding
+ Copyright Holder. This restriction only applies to the primary font name as
+ presented to the users.
+
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+ Software shall not be used to promote, endorse or advertise any
+ Modified Version, except to acknowledge the contribution(s) of the
+ Copyright Holder(s) and the Author(s) or with their explicit written
+ permission.
+
+ 5) The Font Software, modified or unmodified, in part or in whole,
+ must be distributed entirely under this license, and must not be
+ distributed under any other license. The requirement for fonts to
+ remain under this license does not apply to any document created
+ using the Font Software.
+
+ TERMINATION
+ This license becomes null and void if any of the above conditions are
+ not met.
+
+ DISCLAIMER
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+ OTHER DEALINGS IN THE FONT SOFTWARE.
diff --cc crates/ai-memory-web/static/tailwind.css
index 56f71bf3,3513b038..7d0910fc
--- a/crates/ai-memory-web/static/tailwind.css
+++ b/crates/ai-memory-web/static/tailwind.css
@@@ -1,1 -1,1 +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{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;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;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}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-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height: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{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.right-2{right:.5rem}.top-0{top:0}.top-14{top:3.5rem}.top-2{top:.5rem}.z-10{z-index:10}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.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-auto{margin-left:auto}.mt-1{margin-top:.25rem}.mt-16{margin-top:4rem}.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}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-14{height:3.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-7{height:1.75rem}.h-full{height:100%}.max-h-96{max-height:24rem}.min-h-full{min-height:100%}.w-20{width:5rem}.w-32{width:8rem}.w-4{width:1rem}.w-40{width:10rem}.w-auto{width:auto}.w-full{width:100%}.min-w-0{min-width:0}.max-w-3xl{max-width:48rem}.max-w-7xl{max-width:80rem}.max-w-md{max-width:28rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-1{row-gap:.25rem}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.125rem*var(--tw-space-y-reverse));margin-top:calc(.125rem*(1 - var(--tw-space-y-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.divide-slate-100>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(241 245 249/var(--tw-divide-opacity,1))}.overflow-auto{overflow:auto}.overflow-x-auto{overflow-x:auto}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.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}.border{border-width:1px}.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-amber-300{--tw-border-opacity:1;border-color:rgb(252 211 77/var(--tw-border-opacity,1))}.border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity,1))}.border-slate-100{--tw-border-opacity:1;border-color:rgb(241 245 249/var(--tw-border-opacity,1))}.border-slate-200{--tw-border-opacity:1;border-color:rgb(226 232 240/var(--tw-border-opacity,1))}.border-slate-300{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity,1))}.bg-amber-100{--tw-bg-opacity:1;background-color:rgb(254 243 199/var(--tw-bg-opacity,1))}.bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 251 235/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-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.bg-emerald-50{--tw-bg-opacity:1;background-color:rgb(236 253 245/var(--tw-bg-opacity,1))}.bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/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-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1))}.bg-rose-50{--tw-bg-opacity:1;background-color:rgb(255 241 242/var(--tw-bg-opacity,1))}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.bg-slate-50{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity,1))}.bg-slate-900{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity,1))}.bg-slate-900\/50{background-color:rgba(15,23,42,.5)}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.p-1{padding:.25rem}.p-12{padding:3rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-20{padding-bottom:5rem;padding-top:5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-8{padding-bottom:2rem;padding-top:2rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pr-1{padding-right:.25rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-6xl{font-size:3.75rem;line-height:1}.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-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-5{line-height:1.25rem}.leading-relaxed{line-height:1.625}.tracking-wide{letter-spacing:.025em}.text-amber-700{--tw-text-opacity:1;color:rgb(180 83 9/var(--tw-text-opacity,1))}.text-amber-800{--tw-text-opacity:1;color:rgb(146 64 14/var(--tw-text-opacity,1))}.text-amber-900{--tw-text-opacity:1;color:rgb(120 53 15/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-emerald-900{--tw-text-opacity:1;color:rgb(6 78 59/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-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-rose-900{--tw-text-opacity:1;color:rgb(136 19 55/var(--tw-text-opacity,1))}.text-slate-200{--tw-text-opacity:1;color:rgb(226 232 240/var(--tw-text-opacity,1))}.text-slate-300{--tw-text-opacity:1;color:rgb(203 213 225/var(--tw-text-opacity,1))}.text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity,1))}.text-slate-500{--tw-text-opacity:1;color:rgb(100 116 139/var(--tw-text-opacity,1))}.text-slate-600{--tw-text-opacity:1;color:rgb(71 85 105/var(--tw-text-opacity,1))}.text-slate-700{--tw-text-opacity:1;color:rgb(51 65 85/var(--tw-text-opacity,1))}.text-slate-800{--tw-text-opacity:1;color:rgb(30 41 59/var(--tw-text-opacity,1))}.text-slate-900{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.underline{text-decoration-line:underline}.placeholder-slate-500::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(100 116 139/var(--tw-placeholder-opacity,1))}.placeholder-slate-500::placeholder{--tw-placeholder-opacity:1;color:rgb(100 116 139/var(--tw-placeholder-opacity,1))}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px 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!important}.outline{outline-style:solid}.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)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:border-blue-400:hover{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity,1))}.hover\:border-blue-500:hover{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.hover\:bg-amber-100:hover{--tw-bg-opacity:1;background-color:rgb(254 243 199/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-700:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity,1))}.hover\:bg-slate-200:hover{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity,1))}.hover\:bg-slate-50:hover{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity,1))}.hover\:bg-slate-700:hover{--tw-bg-opacity:1;background-color:rgb(51 65 85/var(--tw-bg-opacity,1))}.hover\:text-amber-950:hover{--tw-text-opacity:1;color:rgb(69 26 3/var(--tw-text-opacity,1))}.hover\:text-blue-600:hover{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-sm:hover{--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)}.focus\:not-sr-only:focus{height:auto;margin:0;overflow:visible;padding:0;position:static;width:auto;clip:auto;white-space:normal}.focus\:absolute:focus{position:absolute}.focus\:left-4:focus{left:1rem}.focus\:top-2:focus{top:.5rem}.focus\:z-20:focus{z-index:20}.focus\:rounded-md:focus{border-radius:.375rem}.focus\:bg-white:focus{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.focus\:px-3:focus{padding-left:.75rem;padding-right:.75rem}.focus\:py-1\.5:focus{padding-bottom:.375rem;padding-top:.375rem}.focus\:text-sm:focus{font-size:.875rem;line-height:1.25rem}.focus\:font-medium:focus{font-weight:500}.focus\:text-blue-700:focus{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--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)}.focus\:ring-blue-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.disabled\:opacity-50:disabled{opacity:.5}@media (min-width:640px){.sm\:inline{display:inline}.sm\:w-48{width:12rem}.sm\:w-64{width:16rem}.sm\:grid-cols-\[12rem_1fr\]{grid-template-columns:12rem 1fr}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width:768px){.md\:w-56{width:14rem}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}}@media (min-width:1024px){.lg\:sticky{position:sticky}.lg\:top-4{top:1rem}.lg\:mt-0{margin-top:0}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:max-h-screen{max-height:100vh}.lg\:w-64{width:16rem}.lg\:flex-1{flex:1 1 0%}.lg\:shrink-0{flex-shrink:0}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:items-start{align-items:flex-start}.lg\:gap-10{gap:2.5rem}.lg\:overflow-y-auto{overflow-y:auto}.lg\:px-8{padding-left:2rem;padding-right:2rem}}@media (prefers-color-scheme:dark){.dark\:divide-slate-800>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(30 41 59/var(--tw-divide-opacity,1))}.dark\:border-amber-700{--tw-border-opacity:1;border-color:rgb(180 83 9/var(--tw-border-opacity,1))}.dark\:border-amber-800{--tw-border-opacity:1;border-color:rgb(146 64 14/var(--tw-border-opacity,1))}.dark\:border-amber-900\/50{border-color:rgba(120,53,15,.5)}.dark\:border-blue-800{--tw-border-opacity:1;border-color:rgb(30 64 175/var(--tw-border-opacity,1))}.dark\:border-slate-600{--tw-border-opacity:1;border-color:rgb(71 85 105/var(--tw-border-opacity,1))}.dark\:border-slate-700{--tw-border-opacity:1;border-color:rgb(51 65 85/var(--tw-border-opacity,1))}.dark\:border-slate-800{--tw-border-opacity:1;border-color:rgb(30 41 59/var(--tw-border-opacity,1))}.dark\:bg-amber-900{--tw-bg-opacity:1;background-color:rgb(120 53 15/var(--tw-bg-opacity,1))}.dark\:bg-amber-900\/40{background-color:rgba(120,53,15,.4)}.dark\:bg-amber-950{--tw-bg-opacity:1;background-color:rgb(69 26 3/var(--tw-bg-opacity,1))}.dark\:bg-amber-950\/30{background-color:rgba(69,26,3,.3)}.dark\:bg-blue-950{--tw-bg-opacity:1;background-color:rgb(23 37 84/var(--tw-bg-opacity,1))}.dark\:bg-emerald-950\/40{background-color:rgba(2,44,34,.4)}.dark\:bg-rose-950\/40{background-color:rgba(76,5,25,.4)}.dark\:bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.dark\:bg-slate-800{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity,1))}.dark\:bg-slate-800\/60{background-color:rgba(30,41,59,.6)}.dark\:bg-slate-900{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity,1))}.dark\:bg-slate-950{--tw-bg-opacity:1;background-color:rgb(2 6 23/var(--tw-bg-opacity,1))}.dark\:text-amber-200{--tw-text-opacity:1;color:rgb(253 230 138/var(--tw-text-opacity,1))}.dark\:text-amber-300{--tw-text-opacity:1;color:rgb(252 211 77/var(--tw-text-opacity,1))}.dark\:text-amber-300\/90{color:rgba(252,211,77,.9)}.dark\:text-amber-400{--tw-text-opacity:1;color:rgb(251 191 36/var(--tw-text-opacity,1))}.dark\:text-blue-300{--tw-text-opacity:1;color:rgb(147 197 253/var(--tw-text-opacity,1))}.dark\:text-blue-400{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.dark\:text-emerald-200{--tw-text-opacity:1;color:rgb(167 243 208/var(--tw-text-opacity,1))}.dark\:text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity,1))}.dark\:text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.dark\:text-rose-200{--tw-text-opacity:1;color:rgb(254 205 211/var(--tw-text-opacity,1))}.dark\:text-slate-100{--tw-text-opacity:1;color:rgb(241 245 249/var(--tw-text-opacity,1))}.dark\:text-slate-200{--tw-text-opacity:1;color:rgb(226 232 240/var(--tw-text-opacity,1))}.dark\:text-slate-300{--tw-text-opacity:1;color:rgb(203 213 225/var(--tw-text-opacity,1))}.dark\:text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity,1))}.dark\:text-slate-700{--tw-text-opacity:1;color:rgb(51 65 85/var(--tw-text-opacity,1))}.dark\:text-slate-800{--tw-text-opacity:1;color:rgb(30 41 59/var(--tw-text-opacity,1))}.dark\:text-slate-900{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity,1))}.dark\:placeholder-slate-400::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(148 163 184/var(--tw-placeholder-opacity,1))}.dark\:placeholder-slate-400::placeholder{--tw-placeholder-opacity:1;color:rgb(148 163 184/var(--tw-placeholder-opacity,1))}.dark\:hover\:border-blue-600:hover{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity,1))}.dark\:hover\:bg-amber-900\/40:hover{background-color:rgba(120,53,15,.4)}.dark\:hover\:bg-slate-300:hover{--tw-bg-opacity:1;background-color:rgb(203 213 225/var(--tw-bg-opacity,1))}.dark\:hover\:bg-slate-700:hover{--tw-bg-opacity:1;background-color:rgb(51 65 85/var(--tw-bg-opacity,1))}.dark\:hover\:bg-slate-900:hover{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity,1))}.dark\:hover\:text-amber-100:hover{--tw-text-opacity:1;color:rgb(254 243 199/var(--tw-text-opacity,1))}.dark\:hover\:text-blue-400:hover{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.dark\:focus\:bg-slate-900:focus{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity,1))}.dark\:focus\:text-blue-400:focus{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}}.\[\&_a\]\:text-blue-600 a{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.\[\&_a\]\:underline a{text-decoration-line:underline}@media (prefers-color-scheme:dark){.\[\&_a\]\:dark\:text-blue-400 a{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}}.\[\&_blockquote\]\:my-3 blockquote{margin-bottom:.75rem;margin-top:.75rem}.\[\&_blockquote\]\:border-l-4 blockquote{border-left-width:4px}.\[\&_blockquote\]\:border-slate-300 blockquote{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity,1))}.\[\&_blockquote\]\:pl-4 blockquote{padding-left:1rem}.\[\&_blockquote\]\:italic blockquote{font-style:italic}.\[\&_blockquote\]\:text-slate-600 blockquote{--tw-text-opacity:1;color:rgb(71 85 105/var(--tw-text-opacity,1))}@media (prefers-color-scheme:dark){.\[\&_blockquote\]\:dark\:border-slate-700 blockquote{--tw-border-opacity:1;border-color:rgb(51 65 85/var(--tw-border-opacity,1))}.\[\&_blockquote\]\:dark\:text-slate-400 blockquote{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity,1))}}.\[\&_code\]\:rounded code{border-radius:.25rem}.\[\&_code\]\:bg-slate-100 code{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.\[\&_code\]\:px-1 code{padding-left:.25rem;padding-right:.25rem}.\[\&_code\]\:py-0\.5 code{padding-bottom:.125rem;padding-top:.125rem}.\[\&_code\]\:font-mono code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.\[\&_code\]\:text-sm code{font-size:.875rem;line-height:1.25rem}@media (prefers-color-scheme:dark){.\[\&_code\]\:dark\:bg-slate-800 code{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity,1))}}.\[\&_h1\]\:mb-3 h1{margin-bottom:.75rem}.\[\&_h1\]\:mt-6 h1{margin-top:1.5rem}.\[\&_h1\]\:text-3xl h1{font-size:1.875rem;line-height:2.25rem}.\[\&_h1\]\:font-bold h1{font-weight:700}.\[\&_h2\]\:mb-2 h2{margin-bottom:.5rem}.\[\&_h2\]\:mt-5 h2{margin-top:1.25rem}.\[\&_h2\]\:text-2xl h2{font-size:1.5rem;line-height:2rem}.\[\&_h2\]\:font-semibold h2{font-weight:600}.\[\&_h3\]\:mb-2 h3{margin-bottom:.5rem}.\[\&_h3\]\:mt-4 h3{margin-top:1rem}.\[\&_h3\]\:text-xl h3{font-size:1.25rem;line-height:1.75rem}.\[\&_h3\]\:font-semibold h3{font-weight:600}.\[\&_h4\]\:mb-1 h4{margin-bottom:.25rem}.\[\&_h4\]\:mt-3 h4{margin-top:.75rem}.\[\&_h4\]\:text-lg h4{font-size:1.125rem;line-height:1.75rem}.\[\&_h4\]\:font-semibold h4{font-weight:600}.\[\&_hr\]\:my-6 hr{margin-bottom:1.5rem;margin-top:1.5rem}.\[\&_hr\]\:border-slate-200 hr{--tw-border-opacity:1;border-color:rgb(226 232 240/var(--tw-border-opacity,1))}@media (prefers-color-scheme:dark){.\[\&_hr\]\:dark\:border-slate-800 hr{--tw-border-opacity:1;border-color:rgb(30 41 59/var(--tw-border-opacity,1))}}.\[\&_li\]\:my-1 li{margin-bottom:.25rem;margin-top:.25rem}.\[\&_mark\]\:bg-yellow-200 mark{--tw-bg-opacity:1;background-color:rgb(254 240 138/var(--tw-bg-opacity,1))}.\[\&_mark\]\:px-0\.5 mark{padding-left:.125rem;padding-right:.125rem}@media (prefers-color-scheme:dark){.\[\&_mark\]\:dark\:bg-yellow-800 mark{--tw-bg-opacity:1;background-color:rgb(133 77 14/var(--tw-bg-opacity,1))}}.\[\&_ol\]\:my-3 ol{margin-bottom:.75rem;margin-top:.75rem}.\[\&_ol\]\:list-decimal ol{list-style-type:decimal}.\[\&_ol\]\:pl-5 ol{padding-left:1.25rem}.\[\&_p\]\:my-3 p{margin-bottom:.75rem;margin-top:.75rem}.\[\&_p\]\:leading-relaxed p{line-height:1.625}.\[\&_pre\]\:my-3 pre{margin-bottom:.75rem;margin-top:.75rem}.\[\&_pre\]\:overflow-x-auto pre{overflow-x:auto}.\[\&_pre\]\:rounded pre{border-radius:.25rem}.\[\&_pre\]\:bg-slate-100 pre{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.\[\&_pre\]\:p-3 pre{padding:.75rem}@media (prefers-color-scheme:dark){.\[\&_pre\]\:dark\:bg-slate-800 pre{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity,1))}}.\[\&_pre_code\]\:bg-transparent pre code{background-color:transparent}.\[\&_pre_code\]\:p-0 pre code{padding:0}.\[\&_table\]\:my-3 table{margin-bottom:.75rem;margin-top:.75rem}.\[\&_table\]\:w-full table{width:100%}.\[\&_table\]\:border-collapse table{border-collapse:collapse}.\[\&_td\]\:border td{border-width:1px}.\[\&_td\]\:border-slate-300 td{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity,1))}.\[\&_td\]\:px-3 td{padding-left:.75rem;padding-right:.75rem}.\[\&_td\]\:py-2 td{padding-bottom:.5rem;padding-top:.5rem}@media (prefers-color-scheme:dark){.\[\&_td\]\:dark\:border-slate-700 td{--tw-border-opacity:1;border-color:rgb(51 65 85/var(--tw-border-opacity,1))}}.\[\&_th\]\:border th{border-width:1px}.\[\&_th\]\:border-slate-300 th{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity,1))}.\[\&_th\]\:bg-slate-50 th{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity,1))}.\[\&_th\]\:px-3 th{padding-left:.75rem;padding-right:.75rem}.\[\&_th\]\:py-2 th{padding-bottom:.5rem;padding-top:.5rem}.\[\&_th\]\:text-left th{text-align:left}@media (prefers-color-scheme:dark){.\[\&_th\]\:dark\:border-slate-700 th{--tw-border-opacity:1;border-color:rgb(51 65 85/var(--tw-border-opacity,1))}.\[\&_th\]\:dark\:bg-slate-800 th{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity,1))}}.\[\&_ul\]\:my-3 ul{margin-bottom:.75rem;margin-top:.75rem}.\[\&_ul\]\:list-disc ul{list-style-type:disc}.\[\&_ul\]\:pl-5 ul{padding-left:1.25rem}
-*,: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{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;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;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}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-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height: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{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.right-2{right:.5rem}.top-0{top:0}.top-14{top:3.5rem}.top-2{top:.5rem}.z-10{z-index:10}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.my-4{margin-bottom:1rem;margin-top:1rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mt-1{margin-top:.25rem}.mt-16{margin-top:4rem}.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}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-7{height:1.75rem}.h-full{height:100%}.max-h-96{max-height:24rem}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-20{width:5rem}.w-32{width:8rem}.w-4{width:1rem}.w-40{width:10rem}.w-auto{width:auto}.w-full{width:100%}.min-w-0{min-width:0}.max-w-3xl{max-width:48rem}.max-w-6xl{max-width:72rem}.max-w-7xl{max-width:80rem}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-1{row-gap:.25rem}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.125rem*var(--tw-space-y-reverse));margin-top:calc(.125rem*(1 - var(--tw-space-y-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.divide-slate-100>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(241 245 249/var(--tw-divide-opacity,1))}.overflow-auto{overflow:auto}.overflow-x-auto{overflow-x:auto}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.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}.border{border-width:1px}.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-amber-300{--tw-border-opacity:1;border-color:rgb(252 211 77/var(--tw-border-opacity,1))}.border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity,1))}.border-slate-100{--tw-border-opacity:1;border-color:rgb(241 245 249/var(--tw-border-opacity,1))}.border-slate-200{--tw-border-opacity:1;border-color:rgb(226 232 240/var(--tw-border-opacity,1))}.border-slate-300{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity,1))}.bg-amber-100{--tw-bg-opacity:1;background-color:rgb(254 243 199/var(--tw-bg-opacity,1))}.bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 251 235/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-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.bg-emerald-50{--tw-bg-opacity:1;background-color:rgb(236 253 245/var(--tw-bg-opacity,1))}.bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/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-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1))}.bg-rose-50{--tw-bg-opacity:1;background-color:rgb(255 241 242/var(--tw-bg-opacity,1))}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.bg-slate-50{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity,1))}.bg-slate-900{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity,1))}.bg-slate-900\/50{background-color:rgba(15,23,42,.5)}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.p-1{padding:.25rem}.p-12{padding:3rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-20{padding-bottom:5rem;padding-top:5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.py-8{padding-bottom:2rem;padding-top:2rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pr-1{padding-right:.25rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-6xl{font-size:3.75rem;line-height:1}.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-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-5{line-height:1.25rem}.leading-relaxed{line-height:1.625}.tracking-wide{letter-spacing:.025em}.text-amber-700{--tw-text-opacity:1;color:rgb(180 83 9/var(--tw-text-opacity,1))}.text-amber-800{--tw-text-opacity:1;color:rgb(146 64 14/var(--tw-text-opacity,1))}.text-amber-900{--tw-text-opacity:1;color:rgb(120 53 15/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-emerald-900{--tw-text-opacity:1;color:rgb(6 78 59/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-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-rose-900{--tw-text-opacity:1;color:rgb(136 19 55/var(--tw-text-opacity,1))}.text-slate-200{--tw-text-opacity:1;color:rgb(226 232 240/var(--tw-text-opacity,1))}.text-slate-300{--tw-text-opacity:1;color:rgb(203 213 225/var(--tw-text-opacity,1))}.text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity,1))}.text-slate-500{--tw-text-opacity:1;color:rgb(100 116 139/var(--tw-text-opacity,1))}.text-slate-600{--tw-text-opacity:1;color:rgb(71 85 105/var(--tw-text-opacity,1))}.text-slate-700{--tw-text-opacity:1;color:rgb(51 65 85/var(--tw-text-opacity,1))}.text-slate-800{--tw-text-opacity:1;color:rgb(30 41 59/var(--tw-text-opacity,1))}.text-slate-900{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.underline{text-decoration-line:underline}.placeholder-slate-500::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(100 116 139/var(--tw-placeholder-opacity,1))}.placeholder-slate-500::placeholder{--tw-placeholder-opacity:1;color:rgb(100 116 139/var(--tw-placeholder-opacity,1))}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px 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!important}.outline{outline-style:solid}.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)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}@font-face{font-display:swap;font-family:Management Sans;font-weight:400 700;src:url(instrument-sans-latin-wdth-normal.woff2) format("woff2")}@font-face{font-display:swap;font-family:Management Display;font-weight:200 800;src:url(bricolage-grotesque-latin-standard-normal.woff2) format("woff2")}@font-face{font-display:swap;font-family:Management Mono;src:url(commit-mono-latin-400-normal.woff2) format("woff2")}:root:has(.management){color-scheme:light}:root[data-theme=dark]:has(.management){color-scheme:dark}@media (prefers-color-scheme:dark){:root:not([data-theme=light]):has(.management){color-scheme:dark}}.management{--mg-bg:light-dark(oklch(98.5% .006 285),oklch(15.5% .035 282));--mg-surface:light-dark(#fff,oklch(20% .04 282));--mg-text:light-dark(oklch(21% .045 282),oklch(95.5% .012 285));--mg-muted:light-dark(oklch(45% .035 282),oklch(74% .03 285));--mg-line:light-dark(oklch(88.5% .02 285),oklch(33% .045 282));background:radial-gradient(ellipse at 80% 0,oklch(78% .13 195/.13),transparent 50%),var(--mg-bg);color:var(--mg-text);font-family:Management Sans,system-ui,sans-serif;font-size:17px}.management-header{background:var(--mg-surface);border-color:var(--mg-line)}.management h1,.management h2,.management-brand strong{font-family:Management Display,system-ui,sans-serif;font-weight:650;letter-spacing:-.035em}.management h1{font-size:2rem;margin-bottom:.6rem}.management h2{font-size:1.25rem}.management-brand strong{font-size:1.5rem}.management-muted{color:var(--mg-muted)}.management-mono{font-family:Management Mono,monospace}.management-panel{background:var(--mg-surface);border:1px solid var(--mg-line);border-radius:1.25rem;box-shadow:0 12px 32px -12px oklch(21% .045 282/.1);padding:1.5rem}.management button,.management-button{background:var(--mg-surface);border:1px solid var(--mg-line);border-radius:999px;cursor:pointer;display:inline-block;font-size:.875rem;font-weight:600;padding:.6rem 1rem}.management .management-primary{background:oklch(81% .16 75);border-color:transparent;color:oklch(20% .05 60)}.management-danger{color:light-dark(oklch(47% .17 355),oklch(83% .1 355))}.management label{display:block;font-size:.875rem}.management input:not([type=hidden]):not([type=checkbox]),.management select{background:var(--mg-surface);border:1px solid var(--mg-line);border-radius:.75rem;display:block;margin-top:.4rem;padding:.65rem .75rem;width:100%}.management a:focus-visible,.management button:focus-visible,.management input:focus-visible,.management select:focus-visible{outline:2px solid light-dark(oklch(47% .09 205),oklch(83% .11 205));outline-offset:3px}.management td,.management th{border-bottom:1px solid var(--mg-line);padding:1rem .75rem}.management-themes{border:1px solid var(--mg-line);border-radius:999px;display:flex;gap:.25rem;padding:.25rem}.management-themes button{border-color:transparent;color:var(--mg-muted);font-size:.75rem;padding:.35rem .75rem}.management-themes button[aria-pressed=true]{border-color:var(--mg-line);color:var(--mg-text)}.hover\:border-blue-400:hover{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity,1))}.hover\:border-blue-500:hover{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.hover\:bg-amber-100:hover{--tw-bg-opacity:1;background-color:rgb(254 243 199/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-700:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity,1))}.hover\:bg-slate-200:hover{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity,1))}.hover\:bg-slate-50:hover{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity,1))}.hover\:bg-slate-700:hover{--tw-bg-opacity:1;background-color:rgb(51 65 85/var(--tw-bg-opacity,1))}.hover\:text-amber-950:hover{--tw-text-opacity:1;color:rgb(69 26 3/var(--tw-text-opacity,1))}.hover\:text-blue-600:hover{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-sm:hover{--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)}.focus\:not-sr-only:focus{height:auto;margin:0;overflow:visible;padding:0;position:static;width:auto;clip:auto;white-space:normal}.focus\:absolute:focus{position:absolute}.focus\:left-4:focus{left:1rem}.focus\:top-2:focus{top:.5rem}.focus\:z-20:focus{z-index:20}.focus\:rounded-md:focus{border-radius:.375rem}.focus\:bg-white:focus{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.focus\:px-3:focus{padding-left:.75rem;padding-right:.75rem}.focus\:py-1\.5:focus{padding-bottom:.375rem;padding-top:.375rem}.focus\:text-sm:focus{font-size:.875rem;line-height:1.25rem}.focus\:font-medium:focus{font-weight:500}.focus\:text-blue-700:focus{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--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)}.focus\:ring-blue-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.disabled\:opacity-50:disabled{opacity:.5}@media (min-width:640px){.sm\:inline{display:inline}.sm\:w-48{width:12rem}.sm\:w-64{width:16rem}.sm\:grid-cols-\[12rem_1fr\]{grid-template-columns:12rem 1fr}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width:768px){.md\:w-56{width:14rem}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}}@media (min-width:1024px){.lg\:sticky{position:sticky}.lg\:top-4{top:1rem}.lg\:mt-0{margin-top:0}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:max-h-screen{max-height:100vh}.lg\:w-64{width:16rem}.lg\:flex-1{flex:1 1 0%}.lg\:shrink-0{flex-shrink:0}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:items-start{align-items:flex-start}.lg\:gap-10{gap:2.5rem}.lg\:overflow-y-auto{overflow-y:auto}.lg\:px-8{padding-left:2rem;padding-right:2rem}}@media (prefers-color-scheme:dark){.dark\:divide-slate-800>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(30 41 59/var(--tw-divide-opacity,1))}.dark\:border-amber-700{--tw-border-opacity:1;border-color:rgb(180 83 9/var(--tw-border-opacity,1))}.dark\:border-amber-800{--tw-border-opacity:1;border-color:rgb(146 64 14/var(--tw-border-opacity,1))}.dark\:border-amber-900\/50{border-color:rgba(120,53,15,.5)}.dark\:border-blue-800{--tw-border-opacity:1;border-color:rgb(30 64 175/var(--tw-border-opacity,1))}.dark\:border-slate-600{--tw-border-opacity:1;border-color:rgb(71 85 105/var(--tw-border-opacity,1))}.dark\:border-slate-700{--tw-border-opacity:1;border-color:rgb(51 65 85/var(--tw-border-opacity,1))}.dark\:border-slate-800{--tw-border-opacity:1;border-color:rgb(30 41 59/var(--tw-border-opacity,1))}.dark\:bg-amber-900{--tw-bg-opacity:1;background-color:rgb(120 53 15/var(--tw-bg-opacity,1))}.dark\:bg-amber-900\/40{background-color:rgba(120,53,15,.4)}.dark\:bg-amber-950{--tw-bg-opacity:1;background-color:rgb(69 26 3/var(--tw-bg-opacity,1))}.dark\:bg-amber-950\/30{background-color:rgba(69,26,3,.3)}.dark\:bg-blue-950{--tw-bg-opacity:1;background-color:rgb(23 37 84/var(--tw-bg-opacity,1))}.dark\:bg-emerald-950\/40{background-color:rgba(2,44,34,.4)}.dark\:bg-rose-950\/40{background-color:rgba(76,5,25,.4)}.dark\:bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.dark\:bg-slate-800{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity,1))}.dark\:bg-slate-800\/60{background-color:rgba(30,41,59,.6)}.dark\:bg-slate-900{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity,1))}.dark\:bg-slate-950{--tw-bg-opacity:1;background-color:rgb(2 6 23/var(--tw-bg-opacity,1))}.dark\:text-amber-200{--tw-text-opacity:1;color:rgb(253 230 138/var(--tw-text-opacity,1))}.dark\:text-amber-300{--tw-text-opacity:1;color:rgb(252 211 77/var(--tw-text-opacity,1))}.dark\:text-amber-300\/90{color:rgba(252,211,77,.9)}.dark\:text-amber-400{--tw-text-opacity:1;color:rgb(251 191 36/var(--tw-text-opacity,1))}.dark\:text-blue-300{--tw-text-opacity:1;color:rgb(147 197 253/var(--tw-text-opacity,1))}.dark\:text-blue-400{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.dark\:text-emerald-200{--tw-text-opacity:1;color:rgb(167 243 208/var(--tw-text-opacity,1))}.dark\:text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity,1))}.dark\:text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.dark\:text-rose-200{--tw-text-opacity:1;color:rgb(254 205 211/var(--tw-text-opacity,1))}.dark\:text-slate-100{--tw-text-opacity:1;color:rgb(241 245 249/var(--tw-text-opacity,1))}.dark\:text-slate-200{--tw-text-opacity:1;color:rgb(226 232 240/var(--tw-text-opacity,1))}.dark\:text-slate-300{--tw-text-opacity:1;color:rgb(203 213 225/var(--tw-text-opacity,1))}.dark\:text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity,1))}.dark\:text-slate-700{--tw-text-opacity:1;color:rgb(51 65 85/var(--tw-text-opacity,1))}.dark\:text-slate-800{--tw-text-opacity:1;color:rgb(30 41 59/var(--tw-text-opacity,1))}.dark\:text-slate-900{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity,1))}.dark\:placeholder-slate-400::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(148 163 184/var(--tw-placeholder-opacity,1))}.dark\:placeholder-slate-400::placeholder{--tw-placeholder-opacity:1;color:rgb(148 163 184/var(--tw-placeholder-opacity,1))}.dark\:hover\:border-blue-600:hover{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity,1))}.dark\:hover\:bg-amber-900\/40:hover{background-color:rgba(120,53,15,.4)}.dark\:hover\:bg-slate-300:hover{--tw-bg-opacity:1;background-color:rgb(203 213 225/var(--tw-bg-opacity,1))}.dark\:hover\:bg-slate-700:hover{--tw-bg-opacity:1;background-color:rgb(51 65 85/var(--tw-bg-opacity,1))}.dark\:hover\:bg-slate-900:hover{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity,1))}.dark\:hover\:text-amber-100:hover{--tw-text-opacity:1;color:rgb(254 243 199/var(--tw-text-opacity,1))}.dark\:hover\:text-blue-400:hover{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.dark\:focus\:bg-slate-900:focus{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity,1))}.dark\:focus\:text-blue-400:focus{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}}.\[\&_a\]\:text-blue-600 a{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.\[\&_a\]\:underline a{text-decoration-line:underline}@media (prefers-color-scheme:dark){.\[\&_a\]\:dark\:text-blue-400 a{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}}.\[\&_blockquote\]\:my-3 blockquote{margin-bottom:.75rem;margin-top:.75rem}.\[\&_blockquote\]\:border-l-4 blockquote{border-left-width:4px}.\[\&_blockquote\]\:border-slate-300 blockquote{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity,1))}.\[\&_blockquote\]\:pl-4 blockquote{padding-left:1rem}.\[\&_blockquote\]\:italic blockquote{font-style:italic}.\[\&_blockquote\]\:text-slate-600 blockquote{--tw-text-opacity:1;color:rgb(71 85 105/var(--tw-text-opacity,1))}@media (prefers-color-scheme:dark){.\[\&_blockquote\]\:dark\:border-slate-700 blockquote{--tw-border-opacity:1;border-color:rgb(51 65 85/var(--tw-border-opacity,1))}.\[\&_blockquote\]\:dark\:text-slate-400 blockquote{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity,1))}}.\[\&_code\]\:rounded code{border-radius:.25rem}.\[\&_code\]\:bg-slate-100 code{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.\[\&_code\]\:px-1 code{padding-left:.25rem;padding-right:.25rem}.\[\&_code\]\:py-0\.5 code{padding-bottom:.125rem;padding-top:.125rem}.\[\&_code\]\:font-mono code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.\[\&_code\]\:text-sm code{font-size:.875rem;line-height:1.25rem}@media (prefers-color-scheme:dark){.\[\&_code\]\:dark\:bg-slate-800 code{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity,1))}}.\[\&_h1\]\:mb-3 h1{margin-bottom:.75rem}.\[\&_h1\]\:mt-6 h1{margin-top:1.5rem}.\[\&_h1\]\:text-3xl h1{font-size:1.875rem;line-height:2.25rem}.\[\&_h1\]\:font-bold h1{font-weight:700}.\[\&_h2\]\:mb-2 h2{margin-bottom:.5rem}.\[\&_h2\]\:mt-5 h2{margin-top:1.25rem}.\[\&_h2\]\:text-2xl h2{font-size:1.5rem;line-height:2rem}.\[\&_h2\]\:font-semibold h2{font-weight:600}.\[\&_h3\]\:mb-2 h3{margin-bottom:.5rem}.\[\&_h3\]\:mt-4 h3{margin-top:1rem}.\[\&_h3\]\:text-xl h3{font-size:1.25rem;line-height:1.75rem}.\[\&_h3\]\:font-semibold h3{font-weight:600}.\[\&_h4\]\:mb-1 h4{margin-bottom:.25rem}.\[\&_h4\]\:mt-3 h4{margin-top:.75rem}.\[\&_h4\]\:text-lg h4{font-size:1.125rem;line-height:1.75rem}.\[\&_h4\]\:font-semibold h4{font-weight:600}.\[\&_hr\]\:my-6 hr{margin-bottom:1.5rem;margin-top:1.5rem}.\[\&_hr\]\:border-slate-200 hr{--tw-border-opacity:1;border-color:rgb(226 232 240/var(--tw-border-opacity,1))}@media (prefers-color-scheme:dark){.\[\&_hr\]\:dark\:border-slate-800 hr{--tw-border-opacity:1;border-color:rgb(30 41 59/var(--tw-border-opacity,1))}}.\[\&_li\]\:my-1 li{margin-bottom:.25rem;margin-top:.25rem}.\[\&_mark\]\:bg-yellow-200 mark{--tw-bg-opacity:1;background-color:rgb(254 240 138/var(--tw-bg-opacity,1))}.\[\&_mark\]\:px-0\.5 mark{padding-left:.125rem;padding-right:.125rem}@media (prefers-color-scheme:dark){.\[\&_mark\]\:dark\:bg-yellow-800 mark{--tw-bg-opacity:1;background-color:rgb(133 77 14/var(--tw-bg-opacity,1))}}.\[\&_ol\]\:my-3 ol{margin-bottom:.75rem;margin-top:.75rem}.\[\&_ol\]\:list-decimal ol{list-style-type:decimal}.\[\&_ol\]\:pl-5 ol{padding-left:1.25rem}.\[\&_p\]\:my-3 p{margin-bottom:.75rem;margin-top:.75rem}.\[\&_p\]\:leading-relaxed p{line-height:1.625}.\[\&_pre\]\:my-3 pre{margin-bottom:.75rem;margin-top:.75rem}.\[\&_pre\]\:overflow-x-auto pre{overflow-x:auto}.\[\&_pre\]\:rounded pre{border-radius:.25rem}.\[\&_pre\]\:bg-slate-100 pre{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.\[\&_pre\]\:p-3 pre{padding:.75rem}@media (prefers-color-scheme:dark){.\[\&_pre\]\:dark\:bg-slate-800 pre{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity,1))}}.\[\&_pre_code\]\:bg-transparent pre code{background-color:transparent}.\[\&_pre_code\]\:p-0 pre code{padding:0}.\[\&_table\]\:my-3 table{margin-bottom:.75rem;margin-top:.75rem}.\[\&_table\]\:w-full table{width:100%}.\[\&_table\]\:border-collapse table{border-collapse:collapse}.\[\&_td\]\:border td{border-width:1px}.\[\&_td\]\:border-slate-300 td{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity,1))}.\[\&_td\]\:px-3 td{padding-left:.75rem;padding-right:.75rem}.\[\&_td\]\:py-2 td{padding-bottom:.5rem;padding-top:.5rem}@media (prefers-color-scheme:dark){.\[\&_td\]\:dark\:border-slate-700 td{--tw-border-opacity:1;border-color:rgb(51 65 85/var(--tw-border-opacity,1))}}.\[\&_th\]\:border th{border-width:1px}.\[\&_th\]\:border-slate-300 th{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity,1))}.\[\&_th\]\:bg-slate-50 th{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity,1))}.\[\&_th\]\:px-3 th{padding-left:.75rem;padding-right:.75rem}.\[\&_th\]\:py-2 th{padding-bottom:.5rem;padding-top:.5rem}.\[\&_th\]\:text-left th{text-align:left}@media (prefers-color-scheme:dark){.\[\&_th\]\:dark\:border-slate-700 th{--tw-border-opacity:1;border-color:rgb(51 65 85/var(--tw-border-opacity,1))}.\[\&_th\]\:dark\:bg-slate-800 th{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity,1))}}.\[\&_ul\]\:my-3 ul{margin-bottom:.75rem;margin-top:.75rem}.\[\&_ul\]\:list-disc ul{list-style-type:disc}.\[\&_ul\]\:pl-5 ul{padding-left:1.25rem}
++*,: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{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;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;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}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-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height: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{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.right-2{right:.5rem}.top-0{top:0}.top-14{top:3.5rem}.top-2{top:.5rem}.z-10{z-index:10}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.my-4{margin-bottom:1rem;margin-top:1rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mt-1{margin-top:.25rem}.mt-16{margin-top:4rem}.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}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-7{height:1.75rem}.h-full{height:100%}.max-h-96{max-height:24rem}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-20{width:5rem}.w-32{width:8rem}.w-4{width:1rem}.w-40{width:10rem}.w-auto{width:auto}.w-full{width:100%}.min-w-0{min-width:0}.max-w-3xl{max-width:48rem}.max-w-6xl{max-width:72rem}.max-w-7xl{max-width:80rem}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-1{row-gap:.25rem}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.125rem*var(--tw-space-y-reverse));margin-top:calc(.125rem*(1 - var(--tw-space-y-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.divide-slate-100>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(241 245 249/var(--tw-divide-opacity,1))}.overflow-auto{overflow:auto}.overflow-x-auto{overflow-x:auto}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.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}.border{border-width:1px}.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-amber-300{--tw-border-opacity:1;border-color:rgb(252 211 77/var(--tw-border-opacity,1))}.border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity,1))}.border-slate-100{--tw-border-opacity:1;border-color:rgb(241 245 249/var(--tw-border-opacity,1))}.border-slate-200{--tw-border-opacity:1;border-color:rgb(226 232 240/var(--tw-border-opacity,1))}.border-slate-300{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity,1))}.bg-amber-100{--tw-bg-opacity:1;background-color:rgb(254 243 199/var(--tw-bg-opacity,1))}.bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 251 235/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-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.bg-emerald-50{--tw-bg-opacity:1;background-color:rgb(236 253 245/var(--tw-bg-opacity,1))}.bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/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-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1))}.bg-rose-50{--tw-bg-opacity:1;background-color:rgb(255 241 242/var(--tw-bg-opacity,1))}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.bg-slate-50{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity,1))}.bg-slate-900{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity,1))}.bg-slate-900\/50{background-color:rgba(15,23,42,.5)}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.p-1{padding:.25rem}.p-12{padding:3rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-20{padding-bottom:5rem;padding-top:5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.py-8{padding-bottom:2rem;padding-top:2rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pr-1{padding-right:.25rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-6xl{font-size:3.75rem;line-height:1}.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-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-5{line-height:1.25rem}.leading-relaxed{line-height:1.625}.tracking-wide{letter-spacing:.025em}.text-amber-700{--tw-text-opacity:1;color:rgb(180 83 9/var(--tw-text-opacity,1))}.text-amber-800{--tw-text-opacity:1;color:rgb(146 64 14/var(--tw-text-opacity,1))}.text-amber-900{--tw-text-opacity:1;color:rgb(120 53 15/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-emerald-900{--tw-text-opacity:1;color:rgb(6 78 59/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-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-rose-900{--tw-text-opacity:1;color:rgb(136 19 55/var(--tw-text-opacity,1))}.text-slate-200{--tw-text-opacity:1;color:rgb(226 232 240/var(--tw-text-opacity,1))}.text-slate-300{--tw-text-opacity:1;color:rgb(203 213 225/var(--tw-text-opacity,1))}.text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity,1))}.text-slate-500{--tw-text-opacity:1;color:rgb(100 116 139/var(--tw-text-opacity,1))}.text-slate-600{--tw-text-opacity:1;color:rgb(71 85 105/var(--tw-text-opacity,1))}.text-slate-700{--tw-text-opacity:1;color:rgb(51 65 85/var(--tw-text-opacity,1))}.text-slate-800{--tw-text-opacity:1;color:rgb(30 41 59/var(--tw-text-opacity,1))}.text-slate-900{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.underline{text-decoration-line:underline}.placeholder-slate-500::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(100 116 139/var(--tw-placeholder-opacity,1))}.placeholder-slate-500::placeholder{--tw-placeholder-opacity:1;color:rgb(100 116 139/var(--tw-placeholder-opacity,1))}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px 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!important}.outline{outline-style:solid}.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)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}@font-face{font-display:swap;font-family:Management Sans;font-weight:400 700;src:url(instrument-sans-latin-wdth-normal.woff2) format("woff2")}@font-face{font-display:swap;font-family:Management Display;font-weight:200 800;src:url(bricolage-grotesque-latin-standard-normal.woff2) format("woff2")}@font-face{font-display:swap;font-family:Management Mono;src:url(commit-mono-latin-400-normal.woff2) format("woff2")}:root:has(.management){color-scheme:light}:root[data-theme=dark]:has(.management){color-scheme:dark}@media (prefers-color-scheme:dark){:root:not([data-theme=light]):has(.management){color-scheme:dark}}.management{--mg-bg:light-dark(#f5f7f5,#141715);--mg-surface:light-dark(#fff,#202522);--mg-text:light-dark(#171a18,#f0f4f1);--mg-muted:light-dark(#59625d,#aab5ae);--mg-line:light-dark(#d8ded9,#3d4640);background:var(--mg-bg);color:var(--mg-text);font-family:Management Sans,system-ui,sans-serif;font-size:17px}.management-header{background:var(--mg-surface);border-color:var(--mg-line)}.management h1,.management h2,.management-brand strong{font-family:Management Display,system-ui,sans-serif;font-weight:650;letter-spacing:0}.management h1{font-size:2rem;margin-bottom:.6rem}.management h2{font-size:1.25rem}.management-brand strong{font-size:1.5rem}.management-muted{color:var(--mg-muted)}.management-mono{font-family:Management Mono,monospace}.management-panel{background:var(--mg-surface);border:1px solid var(--mg-line);border-radius:.5rem;box-shadow:0 8px 24px -16px rgba(24,38,29,.28);padding:1.5rem}.management button,.management-button{background:var(--mg-surface);border:1px solid var(--mg-line);border-radius:.375rem;cursor:pointer;display:inline-block;font-size:.875rem;font-weight:600;padding:.6rem 1rem}.management .management-primary{background:light-dark(#f3c74f,#e8b936);border-color:transparent;color:#252016}.management-danger{color:light-dark(#b42336,#ff9aa7)}.management label{display:block;font-size:.875rem}.management input:not([type=hidden]):not([type=checkbox]),.management select{background:var(--mg-surface);border:1px solid var(--mg-line);border-radius:.375rem;display:block;margin-top:.4rem;padding:.65rem .75rem;width:100%}.management a:focus-visible,.management button:focus-visible,.management input:focus-visible,.management select:focus-visible{outline:2px solid light-dark(#087d78,#67d6ce);outline-offset:3px}.management td,.management th{border-bottom:1px solid var(--mg-line);padding:1rem .75rem}.management-themes{border:1px solid var(--mg-line);border-radius:.5rem;display:flex;gap:.25rem;padding:.25rem}.management-themes button{border-color:transparent;border-radius:.25rem;color:var(--mg-muted);font-size:.75rem;padding:.35rem .75rem}.management-themes button[aria-pressed=true]{border-color:var(--mg-line);color:var(--mg-text)}.hover\:border-blue-400:hover{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity,1))}.hover\:border-blue-500:hover{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.hover\:bg-amber-100:hover{--tw-bg-opacity:1;background-color:rgb(254 243 199/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-700:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity,1))}.hover\:bg-slate-200:hover{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity,1))}.hover\:bg-slate-50:hover{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity,1))}.hover\:bg-slate-700:hover{--tw-bg-opacity:1;background-color:rgb(51 65 85/var(--tw-bg-opacity,1))}.hover\:text-amber-950:hover{--tw-text-opacity:1;color:rgb(69 26 3/var(--tw-text-opacity,1))}.hover\:text-blue-600:hover{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-sm:hover{--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)}.focus\:not-sr-only:focus{height:auto;margin:0;overflow:visible;padding:0;position:static;width:auto;clip:auto;white-space:normal}.focus\:absolute:focus{position:absolute}.focus\:left-4:focus{left:1rem}.focus\:top-2:focus{top:.5rem}.focus\:z-20:focus{z-index:20}.focus\:rounded-md:focus{border-radius:.375rem}.focus\:bg-white:focus{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.focus\:px-3:focus{padding-left:.75rem;padding-right:.75rem}.focus\:py-1\.5:focus{padding-bottom:.375rem;padding-top:.375rem}.focus\:text-sm:focus{font-size:.875rem;line-height:1.25rem}.focus\:font-medium:focus{font-weight:500}.focus\:text-blue-700:focus{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--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)}.focus\:ring-blue-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.disabled\:opacity-50:disabled{opacity:.5}@media (min-width:640px){.sm\:inline{display:inline}.sm\:w-48{width:12rem}.sm\:w-64{width:16rem}.sm\:grid-cols-\[12rem_1fr\]{grid-template-columns:12rem 1fr}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width:768px){.md\:w-56{width:14rem}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}}@media (min-width:1024px){.lg\:sticky{position:sticky}.lg\:top-4{top:1rem}.lg\:mt-0{margin-top:0}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:max-h-screen{max-height:100vh}.lg\:w-64{width:16rem}.lg\:flex-1{flex:1 1 0%}.lg\:shrink-0{flex-shrink:0}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:items-start{align-items:flex-start}.lg\:gap-10{gap:2.5rem}.lg\:overflow-y-auto{overflow-y:auto}.lg\:px-8{padding-left:2rem;padding-right:2rem}}@media (prefers-color-scheme:dark){.dark\:divide-slate-800>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(30 41 59/var(--tw-divide-opacity,1))}.dark\:border-amber-700{--tw-border-opacity:1;border-color:rgb(180 83 9/var(--tw-border-opacity,1))}.dark\:border-amber-800{--tw-border-opacity:1;border-color:rgb(146 64 14/var(--tw-border-opacity,1))}.dark\:border-amber-900\/50{border-color:rgba(120,53,15,.5)}.dark\:border-blue-800{--tw-border-opacity:1;border-color:rgb(30 64 175/var(--tw-border-opacity,1))}.dark\:border-slate-600{--tw-border-opacity:1;border-color:rgb(71 85 105/var(--tw-border-opacity,1))}.dark\:border-slate-700{--tw-border-opacity:1;border-color:rgb(51 65 85/var(--tw-border-opacity,1))}.dark\:border-slate-800{--tw-border-opacity:1;border-color:rgb(30 41 59/var(--tw-border-opacity,1))}.dark\:bg-amber-900{--tw-bg-opacity:1;background-color:rgb(120 53 15/var(--tw-bg-opacity,1))}.dark\:bg-amber-900\/40{background-color:rgba(120,53,15,.4)}.dark\:bg-amber-950{--tw-bg-opacity:1;background-color:rgb(69 26 3/var(--tw-bg-opacity,1))}.dark\:bg-amber-950\/30{background-color:rgba(69,26,3,.3)}.dark\:bg-blue-950{--tw-bg-opacity:1;background-color:rgb(23 37 84/var(--tw-bg-opacity,1))}.dark\:bg-emerald-950\/40{background-color:rgba(2,44,34,.4)}.dark\:bg-rose-950\/40{background-color:rgba(76,5,25,.4)}.dark\:bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.dark\:bg-slate-800{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity,1))}.dark\:bg-slate-800\/60{background-color:rgba(30,41,59,.6)}.dark\:bg-slate-900{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity,1))}.dark\:bg-slate-950{--tw-bg-opacity:1;background-color:rgb(2 6 23/var(--tw-bg-opacity,1))}.dark\:text-amber-200{--tw-text-opacity:1;color:rgb(253 230 138/var(--tw-text-opacity,1))}.dark\:text-amber-300{--tw-text-opacity:1;color:rgb(252 211 77/var(--tw-text-opacity,1))}.dark\:text-amber-300\/90{color:rgba(252,211,77,.9)}.dark\:text-amber-400{--tw-text-opacity:1;color:rgb(251 191 36/var(--tw-text-opacity,1))}.dark\:text-blue-300{--tw-text-opacity:1;color:rgb(147 197 253/var(--tw-text-opacity,1))}.dark\:text-blue-400{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.dark\:text-emerald-200{--tw-text-opacity:1;color:rgb(167 243 208/var(--tw-text-opacity,1))}.dark\:text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity,1))}.dark\:text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.dark\:text-rose-200{--tw-text-opacity:1;color:rgb(254 205 211/var(--tw-text-opacity,1))}.dark\:text-slate-100{--tw-text-opacity:1;color:rgb(241 245 249/var(--tw-text-opacity,1))}.dark\:text-slate-200{--tw-text-opacity:1;color:rgb(226 232 240/var(--tw-text-opacity,1))}.dark\:text-slate-300{--tw-text-opacity:1;color:rgb(203 213 225/var(--tw-text-opacity,1))}.dark\:text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity,1))}.dark\:text-slate-700{--tw-text-opacity:1;color:rgb(51 65 85/var(--tw-text-opacity,1))}.dark\:text-slate-800{--tw-text-opacity:1;color:rgb(30 41 59/var(--tw-text-opacity,1))}.dark\:text-slate-900{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity,1))}.dark\:placeholder-slate-400::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(148 163 184/var(--tw-placeholder-opacity,1))}.dark\:placeholder-slate-400::placeholder{--tw-placeholder-opacity:1;color:rgb(148 163 184/var(--tw-placeholder-opacity,1))}.dark\:hover\:border-blue-600:hover{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity,1))}.dark\:hover\:bg-amber-900\/40:hover{background-color:rgba(120,53,15,.4)}.dark\:hover\:bg-slate-300:hover{--tw-bg-opacity:1;background-color:rgb(203 213 225/var(--tw-bg-opacity,1))}.dark\:hover\:bg-slate-700:hover{--tw-bg-opacity:1;background-color:rgb(51 65 85/var(--tw-bg-opacity,1))}.dark\:hover\:bg-slate-900:hover{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity,1))}.dark\:hover\:text-amber-100:hover{--tw-text-opacity:1;color:rgb(254 243 199/var(--tw-text-opacity,1))}.dark\:hover\:text-blue-400:hover{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.dark\:focus\:bg-slate-900:focus{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity,1))}.dark\:focus\:text-blue-400:focus{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}}.\[\&_a\]\:text-blue-600 a{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.\[\&_a\]\:underline a{text-decoration-line:underline}@media (prefers-color-scheme:dark){.\[\&_a\]\:dark\:text-blue-400 a{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}}.\[\&_blockquote\]\:my-3 blockquote{margin-bottom:.75rem;margin-top:.75rem}.\[\&_blockquote\]\:border-l-4 blockquote{border-left-width:4px}.\[\&_blockquote\]\:border-slate-300 blockquote{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity,1))}.\[\&_blockquote\]\:pl-4 blockquote{padding-left:1rem}.\[\&_blockquote\]\:italic blockquote{font-style:italic}.\[\&_blockquote\]\:text-slate-600 blockquote{--tw-text-opacity:1;color:rgb(71 85 105/var(--tw-text-opacity,1))}@media (prefers-color-scheme:dark){.\[\&_blockquote\]\:dark\:border-slate-700 blockquote{--tw-border-opacity:1;border-color:rgb(51 65 85/var(--tw-border-opacity,1))}.\[\&_blockquote\]\:dark\:text-slate-400 blockquote{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity,1))}}.\[\&_code\]\:rounded code{border-radius:.25rem}.\[\&_code\]\:bg-slate-100 code{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.\[\&_code\]\:px-1 code{padding-left:.25rem;padding-right:.25rem}.\[\&_code\]\:py-0\.5 code{padding-bottom:.125rem;padding-top:.125rem}.\[\&_code\]\:font-mono code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.\[\&_code\]\:text-sm code{font-size:.875rem;line-height:1.25rem}@media (prefers-color-scheme:dark){.\[\&_code\]\:dark\:bg-slate-800 code{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity,1))}}.\[\&_h1\]\:mb-3 h1{margin-bottom:.75rem}.\[\&_h1\]\:mt-6 h1{margin-top:1.5rem}.\[\&_h1\]\:text-3xl h1{font-size:1.875rem;line-height:2.25rem}.\[\&_h1\]\:font-bold h1{font-weight:700}.\[\&_h2\]\:mb-2 h2{margin-bottom:.5rem}.\[\&_h2\]\:mt-5 h2{margin-top:1.25rem}.\[\&_h2\]\:text-2xl h2{font-size:1.5rem;line-height:2rem}.\[\&_h2\]\:font-semibold h2{font-weight:600}.\[\&_h3\]\:mb-2 h3{margin-bottom:.5rem}.\[\&_h3\]\:mt-4 h3{margin-top:1rem}.\[\&_h3\]\:text-xl h3{font-size:1.25rem;line-height:1.75rem}.\[\&_h3\]\:font-semibold h3{font-weight:600}.\[\&_h4\]\:mb-1 h4{margin-bottom:.25rem}.\[\&_h4\]\:mt-3 h4{margin-top:.75rem}.\[\&_h4\]\:text-lg h4{font-size:1.125rem;line-height:1.75rem}.\[\&_h4\]\:font-semibold h4{font-weight:600}.\[\&_hr\]\:my-6 hr{margin-bottom:1.5rem;margin-top:1.5rem}.\[\&_hr\]\:border-slate-200 hr{--tw-border-opacity:1;border-color:rgb(226 232 240/var(--tw-border-opacity,1))}@media (prefers-color-scheme:dark){.\[\&_hr\]\:dark\:border-slate-800 hr{--tw-border-opacity:1;border-color:rgb(30 41 59/var(--tw-border-opacity,1))}}.\[\&_li\]\:my-1 li{margin-bottom:.25rem;margin-top:.25rem}.\[\&_mark\]\:bg-yellow-200 mark{--tw-bg-opacity:1;background-color:rgb(254 240 138/var(--tw-bg-opacity,1))}.\[\&_mark\]\:px-0\.5 mark{padding-left:.125rem;padding-right:.125rem}@media (prefers-color-scheme:dark){.\[\&_mark\]\:dark\:bg-yellow-800 mark{--tw-bg-opacity:1;background-color:rgb(133 77 14/var(--tw-bg-opacity,1))}}.\[\&_ol\]\:my-3 ol{margin-bottom:.75rem;margin-top:.75rem}.\[\&_ol\]\:list-decimal ol{list-style-type:decimal}.\[\&_ol\]\:pl-5 ol{padding-left:1.25rem}.\[\&_p\]\:my-3 p{margin-bottom:.75rem;margin-top:.75rem}.\[\&_p\]\:leading-relaxed p{line-height:1.625}.\[\&_pre\]\:my-3 pre{margin-bottom:.75rem;margin-top:.75rem}.\[\&_pre\]\:overflow-x-auto pre{overflow-x:auto}.\[\&_pre\]\:rounded pre{border-radius:.25rem}.\[\&_pre\]\:bg-slate-100 pre{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.\[\&_pre\]\:p-3 pre{padding:.75rem}@media (prefers-color-scheme:dark){.\[\&_pre\]\:dark\:bg-slate-800 pre{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity,1))}}.\[\&_pre_code\]\:bg-transparent pre code{background-color:transparent}.\[\&_pre_code\]\:p-0 pre code{padding:0}.\[\&_table\]\:my-3 table{margin-bottom:.75rem;margin-top:.75rem}.\[\&_table\]\:w-full table{width:100%}.\[\&_table\]\:border-collapse table{border-collapse:collapse}.\[\&_td\]\:border td{border-width:1px}.\[\&_td\]\:border-slate-300 td{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity,1))}.\[\&_td\]\:px-3 td{padding-left:.75rem;padding-right:.75rem}.\[\&_td\]\:py-2 td{padding-bottom:.5rem;padding-top:.5rem}@media (prefers-color-scheme:dark){.\[\&_td\]\:dark\:border-slate-700 td{--tw-border-opacity:1;border-color:rgb(51 65 85/var(--tw-border-opacity,1))}}.\[\&_th\]\:border th{border-width:1px}.\[\&_th\]\:border-slate-300 th{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity,1))}.\[\&_th\]\:bg-slate-50 th{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity,1))}.\[\&_th\]\:px-3 th{padding-left:.75rem;padding-right:.75rem}.\[\&_th\]\:py-2 th{padding-bottom:.5rem;padding-top:.5rem}.\[\&_th\]\:text-left th{text-align:left}@media (prefers-color-scheme:dark){.\[\&_th\]\:dark\:border-slate-700 th{--tw-border-opacity:1;border-color:rgb(51 65 85/var(--tw-border-opacity,1))}.\[\&_th\]\:dark\:bg-slate-800 th{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity,1))}}.\[\&_ul\]\:my-3 ul{margin-bottom:.75rem;margin-top:.75rem}.\[\&_ul\]\:list-disc ul{list-style-type:disc}.\[\&_ul\]\:pl-5 ul{padding-left:1.25rem}
diff --cc crates/ai-memory-web/templates/management/console.html
index 00000000,3eec17f2..f11576df
mode 000000,100644..100644
--- a/crates/ai-memory-web/templates/management/console.html
+++ b/crates/ai-memory-web/templates/management/console.html
@@@ -1,0 -1,46 +1,46 @@@
+ {% extends "management/base.html" %}
+ {% block content %}
+ {% if screen == "login" %}
+ <section class="management-panel max-w-md mx-auto"><h1>Sign in</h1><p class="management-muted mb-6">Use your ai-memory username and password.</p>
+ <form action="{{ root }}/action" method="post" class="space-y-4"><input type="hidden" name="action" value="login">
+ <label>Username<input name="username" autocomplete="username" required></label><label>Password<input name="password" type="password" autocomplete="current-password" required></label><button class="management-primary">Sign in</button></form></section>
+ {% else if screen == "password" %}
+ <section class="management-panel max-w-lg"><h1>Change password</h1><p class="management-muted mb-6">Choose a new password before continuing. Changing it signs out your other browser sessions.</p>
+ <form action="{{ root }}/action" method="post" class="space-y-4"><input type="hidden" name="action" value="password"><input type="hidden" name="csrf" value="{{ csrf }}">
+ <label>Current password<input type="password" name="current_password" autocomplete="current-password" required></label>
+ <label>New password (at least {{ min_password }} characters)<input type="password" name="new_password" autocomplete="new-password" minlength="{{ min_password }}" required></label>
+ <label>Confirm new password<input type="password" name="new_password_confirmation" autocomplete="new-password" minlength="{{ min_password }}" required></label><button class="management-primary">Change password</button></form></section>
+ {% else if screen == "sessions" %}
+ <h1>{% if admin %}All sessions{% else %}Your sessions{% endif %}</h1><p class="management-muted mb-6">Inspect captured events and manage sessions. Shared legacy sessions require an Admin to delete.</p>
+ <nav aria-label="Projects" class="flex flex-wrap gap-3 mb-6">{% for p in projects %}<a href="{{ p.href }}">{{ p.name }}</a>{% endfor %}</nav>
-<h2 class="mb-4">{{ workspace }} / {{ project }}</h2><div class="management-panel overflow-x-auto"><table class="w-full text-left text-sm"><thead><tr><th>Session</th><th>Owner</th><th>Started (UTC)</th><th>State</th><th>Events</th><th>Actions</th></tr></thead><tbody>
++<h2 class="mb-4">{{ workspace }} / {{ project }}</h2><div class="management-panel overflow-x-auto">{% if sessions.is_empty() %}<p class="management-muted py-8">No sessions in this project, or no accessible projects.</p>{% else %}<table class="w-full text-left text-sm"><thead><tr><th>Session</th><th>Owner</th><th>Started (UTC)</th><th>State</th><th>Events</th><th>Actions</th></tr></thead><tbody>
+ {% for s in sessions %}<tr><td>{{ s.agent }}<br><span class="management-mono management-muted" title="{{ s.id }}">{{ s.short_id }}</span></td><td>{{ s.owner }}</td><td>{{ s.started }}</td><td>{{ s.state }}</td><td>{{ s.count }}</td><td><div class="flex gap-2 items-center"><a class="management-button" href="{{ s.href }}">Inspect</a>
+ {% if s.can_delete %}<form action="{{ root }}/action" method="post"><input type="hidden" name="action" value="preview-purge"><input type="hidden" name="csrf" value="{{ csrf }}"><input type="hidden" name="session" value="{{ s.id }}"><input type="hidden" name="workspace" value="{{ workspace }}"><input type="hidden" name="project" value="{{ project }}"><button class="management-danger">Delete</button></form>{% endif %}</div></td></tr>{% endfor %}
-</tbody></table>{% if sessions.is_empty() %}<p class="management-muted py-8">No sessions in this project, or no accessible projects.</p>{% endif %}</div>
++</tbody></table>{% endif %}</div>
+ {% else if screen == "session" %}
+ <h1>Session events</h1><p class="management-mono management-muted mb-6">{{ session_id }}</p><div class="space-y-4">{% for o in observations %}<article class="management-panel"><h2>{{ o.kind }} · {{ o.title }}</h2><pre class="whitespace-pre-wrap break-words text-sm mt-4">{{ o.body }}</pre></article>{% endfor %}</div>
+ {% else if screen == "users" %}
+ <h1>Users</h1><p class="management-muted mb-6">Add operators and manage access. Disabling browser access does not revoke existing MCP API keys.</p>
+ <form action="{{ root }}/action" method="post" class="management-panel flex flex-wrap gap-4 items-end mb-6"><input type="hidden" name="action" value="add-user"><input type="hidden" name="csrf" value="{{ csrf }}"><label>Username<input name="username" required maxlength="64"></label><label>Display name<input name="name"></label><label>Role<select name="role"><option value="user">User</option><option value="root">Admin</option></select></label><button class="management-primary">Add user</button></form>
+ <div class="space-y-4">{% for u in users %}<article class="management-panel"><h2>{{ u.username }}</h2><p class="management-muted mb-4">{{ u.name }} · {{ u.role }} · {{ u.status }}</p>
+ <div class="flex flex-wrap gap-3">
+ <form action="{{ root }}/action" method="post"><input type="hidden" name="action" value="role"><input type="hidden" name="username" value="{{ u.username }}"><input type="hidden" name="role" value="{{ u.next_role }}"><input type="hidden" name="csrf" value="{{ csrf }}"><button>{% if u.next_role == "root" %}Make admin{% else %}Make user{% endif %}</button></form>
+ <form action="{{ root }}/action" method="post"><input type="hidden" name="action" value="reset-password"><input type="hidden" name="username" value="{{ u.username }}"><input type="hidden" name="csrf" value="{{ csrf }}"><button>Reset password</button></form>
+ <form action="{{ root }}/action" method="post"><input type="hidden" name="action" value="{% if u.enabled %}disable{% else %}enable{% endif %}"><input type="hidden" name="username" value="{{ u.username }}"><input type="hidden" name="csrf" value="{{ csrf }}"><button>{% if u.enabled %}Disable{% else %}Enable{% endif %}</button></form>
+ <form action="{{ root }}/action" method="post" class="flex gap-2"><input type="hidden" name="action" value="issue-key"><input type="hidden" name="username" value="{{ u.username }}"><input type="hidden" name="csrf" value="{{ csrf }}"><label>Key label<input name="label" value="console-issued" required></label><button>Issue MCP key</button></form>
+ </div><ul class="mt-5 space-y-2">{% for k in u.keys %}<li class="flex flex-wrap gap-3 items-center">{{ k.label }} · {% if k.active %}Active{% else %}Revoked{% endif %}{% if k.active %}<form action="{{ root }}/action" method="post"><input type="hidden" name="action" value="revoke-admin-key"><input type="hidden" name="credential" value="{{ k.id }}"><input type="hidden" name="csrf" value="{{ csrf }}"><button class="management-danger">Revoke</button></form>{% endif %}</li>{% endfor %}</ul>
+ </article>{% endfor %}</div>
+ {% else if screen == "keys" %}
+ <h1>MCP connection</h1><p class="management-muted mb-6">Connect your coding agent with a personal API key. Browser passwords and session cookies cannot authenticate MCP.</p>
+ <div class="management-panel mb-6"><p>Remote MCP endpoint: <code class="management-mono" id="mcp-endpoint">{{ mcp_path }}</code></p><p class="management-muted mt-3">Use your server's origin with this path and send the key as an Authorization: Bearer header. Use the same key for lifecycle hooks.</p></div>
+ <form action="{{ root }}/action" method="post" class="management-panel flex flex-wrap gap-4 items-end mb-6"><input type="hidden" name="action" value="create-key"><input type="hidden" name="csrf" value="{{ csrf }}"><label>Key label<input name="label" required></label><button class="management-primary">Create API key</button></form>
+ <div class="management-panel space-y-4">{% for k in keys %}<div class="flex flex-wrap gap-4 items-center justify-between"><span>{{ k.label }} <code>{{ k.preview }}</code> · {% if k.active %}Active{% else %}Revoked{% endif %}</span>{% if k.active %}<form action="{{ root }}/action" method="post"><input type="hidden" name="action" value="revoke-key"><input type="hidden" name="credential" value="{{ k.id }}"><input type="hidden" name="csrf" value="{{ csrf }}"><button class="management-danger">Revoke</button></form>{% endif %}</div>{% endfor %}{% if keys.is_empty() %}<p>No API keys yet.</p>{% endif %}</div>
+ {% else if screen == "secret" %}
+ <section class="management-panel max-w-lg"><h1>{{ secret_title }}</h1><p class="management-muted my-4">Shown once. Save it now; leaving this page clears it from the console.</p><pre class="management-mono whitespace-pre-wrap break-all" id="issued-secret" data-return="{{ root }}/sessions">{{ secret }}</pre><a class="management-button mt-6 inline-block" href="{{ root }}/sessions">I saved it</a></section>
+ {% else if screen == "purge" %}
+ <section class="management-panel max-w-lg"><h1>Delete session</h1><p class="management-muted mb-4">This removes captured events, authored handoffs, generated session-page versions, and review records. Maintained knowledge and later manual page versions are preserved. Git history and backups can retain earlier content.</p>
+ <dl class="grid grid-cols-2 gap-3 mb-5">{% for c in counts %}<dt>{{ c.label }}</dt><dd>{{ c.value }}</dd>{% endfor %}</dl>
+ <form action="{{ root }}/action" method="post"><input type="hidden" name="action" value="purge"><input type="hidden" name="csrf" value="{{ csrf }}"><input type="hidden" name="session" value="{{ session_id }}"><input type="hidden" name="workspace" value="{{ workspace }}"><input type="hidden" name="project" value="{{ project }}"><label class="flex gap-3"><input type="checkbox" name="confirm" value="true" required>I understand and want to delete this session.</label><button class="management-danger mt-5">Delete session</button></form></section>
+ {% endif %}
+ {% if !previous.is_empty() || !next.is_empty() %}<nav aria-label="Pagination" class="flex justify-between mt-5">{% if !previous.is_empty() %}<a class="management-button" href="{{ previous }}">Previous</a>{% else %}<span></span>{% endif %}{% if !next.is_empty() %}<a class="management-button" href="{{ next }}">Next</a>{% endif %}</nav>{% endif %}
+ {% endblock %}
diff --cc docs/management-ui.md
index 00000000,9c7a46eb..7563d878
mode 000000,100644..100644
--- a/docs/management-ui.md
+++ b/docs/management-ui.md
@@@ -1,0 -1,113 +1,116 @@@
+ # Management console
+
+ The optional console at `/manage` is server-rendered by askama in
+ `ai-memory-web`, using the existing vendored Tailwind stylesheet. Ordinary
+ Cargo builds require no Node, npm, bundler, or JavaScript framework. A small
+ hash-authorized inline script enhances theme selection and password validation;
+ login, account management, and session/key operations also work without JavaScript.
+
+ ## Enable it
+
+ ```bash
+ cargo build --locked --release -p ai-memory-cli --features management-ui
+ ./target/release/ai-memory serve --transport http --enable-management-ui
+ ```
+
+ The runtime setting is `AI_MEMORY_ENABLE_MANAGEMENT_UI=true`. Both build and
+ runtime switches default to off. Without either, the console is absent. The UI
+ build includes the independently reviewable `session-management` and
+ `self-service-keys` features; enabling the UI also enables their HTTP routes.
+ They can instead be built and enabled individually without a UI; see
+ [session management](session-management.md) and [self-service keys](self-service-keys.md).
+
+ With `AI_MEMORY_BASE_PATH=/memory`, open `/memory/manage`. No `--enable-web` or
+ `--enable-api` is required. If the wiki browser is also enabled, its `--web-slug`
+ must differ from `/manage`.
+
+ For Docker source builds, pass `--build-arg AI_MEMORY_FEATURES=management-ui` and
+ set `AI_MEMORY_ENABLE_MANAGEMENT_UI=true` when running the image. The standard
+ release image does not include the optional console.
+
+ ## Authentication and deployment
+
+ Use the existing human-password bootstrap/recovery described in
+ [installation](install.md#human-password-bootstrap-and-recovery). The console
+ reuses Argon2id verification, browser sessions, CSRF hashes, native credential
+ hashing, capability gates, and the same SQLite database. It adds no identity
+ provider, credential format, authentication implementation, or database schema.
+
+ The existing `root` role is labeled Admin and `user` is labeled User. Admins
+ create users, change roles, reset passwords, disable/enable accounts, issue and
+ revoke keys, and inspect or purge any session. Users inspect their own and shared
+ legacy sessions, purge exactly owned sessions with current project write access,
+ change passwords, and manage their own keys. The last-enabled-root safeguard
+ remains in force. New users must replace the temporary password before using
+ the console. The password form requires 12 Unicode code points; the engine's
+ underlying UTF-8 byte policy is unchanged.
+
+ Browser credentials cannot authenticate MCP or hooks. Use a personal `aim_` key
+ from MCP connection. Native keys remain User-level even for an Admin owner.
+ Disabling an account removes browser access but leaves existing machine keys
+ active until explicitly revoked, as with the existing CLI.
+
+ Use the existing [HTTPS reverse-proxy setup](https-via-proxy.md), secure cookies,
+ and `AI_MEMORY_ALLOWED_HOSTS`. A VPN is optional. Forward the original `Host`
+ header: plain POST forms require an HTTP(S) Origin with the same authority and
-reject cross-site fetch metadata. This preserves the login-CSRF barrier when
++accept only `Sec-Fetch-Site: same-origin` or `none` when that browser metadata
++is present; `same-site`, `cross-site`, malformed, and mismatched-origin
++requests are refused. This preserves the login-CSRF barrier when
+ converting HTML form data to the existing JSON authentication handler. Mutation
+ forms also carry the existing CSRF token. Machine bearers cannot use the console.
+
+ Templates autoescape stored text. Forms select from fixed operations and typed
+ session/key ids, and delegate in-process to the same authenticated engine
+ routers. Only transport peer identity is forwarded in request extensions, so
+ login rate limits retain the real peer and stale route/auth metadata cannot
+ change the delegated request. No localhost HTTP proxy is created. Every console
+ response denies framing and uses `private, no-store`; the inline enhancement has
+ a CSP SHA-256 hash. Passwords and new keys never appear in URLs or browser storage.
+
+ ## Session deletion
+
+ Deletion first previews counts and then requires an explicit confirmation.
+ Previews have no file, tombstone, audit, or admission effects. Confirmation uses
+ the existing wiki mutation guard, admission webhooks, pre/post git checkpoints,
+ and the single-writer transaction. Ownership and current write access are
+ rechecked in that transaction. Shared ownerless sessions and cross-project
+ collateral require an Admin; only an Admin receives their collateral preview.
+ Both collateral observations and handoffs appear in the preview.
+
+ Purging removes captured observations, authored handoffs, generated session-page
+ versions, and review records. Maintained knowledge and later manual page versions
+ remain, as do handoffs accepted by the session but authored elsewhere. Git
+ history, backups, and native transcripts may retain earlier content. A partial
+ file cleanup cannot roll back the database purge; the UI reports it and replay
+ and reindex respect the purge tombstone.
+
+ ## Interface and development
+
-The console follows the public website's light/dark palette, typography, and
-amber controls. System is the default theme; explicit Light/Dark preferences
-persist locally. Fonts and their license notice are embedded under
++The console uses a restrained operational light/dark palette with neutral
++surfaces, amber primary actions, and teal focus indicators. System is the
++default theme; explicit Light/Dark preferences persist locally. Fonts and
++their license notice are embedded under
+ `static/management/` and served only by the optional console.
+
+ Templates live in `templates/management/`. `src/management/views.rs` builds
+ escaped view models, `forms.rs` maps plain POST operations, and `backend.rs`
+ delegates to engine routers. The normal wiki browser remains read-only. Session
+ and event pagination uses the page size returned by the engine API.
+
+ ```bash
+ TAILWIND_BUILD=1 cargo build -p ai-memory-web --features management-ui
+ cargo fmt --all -- --check
+ git diff --check
+ cargo clippy --workspace --all-targets --features ai-memory-cli/management-ui -- -D warnings
+ cargo tf --features ai-memory-cli/management-ui
+ ```
+
+ Commit regenerated `static/tailwind.css` when templates or styles change.
+ The pinned standalone Tailwind CLI is the project's existing regeneration
+ exception; normal builds copy the vendored CSS and need no downloads.
+
+ Rust integration tests exercise real human sessions, cookie forwarding, same-
+ origin plain login, CSRF refusal, pending-password gates, foreign sessions/scopes/
+ credentials, HTML escaping, typed action ids, admission rejection, owned-purge
+ cleanup/recovery, optional assets, and subpath mounting. The same tests are run
+ in the feature-enabled CI job; no JavaScript toolchain is required there.
diff --cc docs/security-boundaries.md
index e6867a06,8dc5b8bd..092dfe84
--- a/docs/security-boundaries.md
+++ b/docs/security-boundaries.md
@@@ -113,13 -112,15 +113,14 @@@ means the boundary is not built yet
| 14g | Web project search and its recall trace honour `memory_query`'s scope rules (#708) and never describe another project | `ai-memory-web/src/routes/search.rs` resolves `workspace`+`project` through `resolve_read_scope` (`lookup_existing_scope_guarded`, no-create, `ProjectAccess::Read`) before any ranking, and refuses partial scope; scoped `/api/v1/search` keeps `lookup_project` / `resolve_many_existing_scopes_guarded`; `ai-memory-web/src/recall.rs` ranks only the resolved scopes through `ReaderPool::hybrid_search_scopes`, whose streams and graph expansion are bound to each `(workspace_id, project_id)`; a search with no scope stays `search_pages_with_meta(.., viewer)` (readable repositories only) | `ai-memory-web` `tests/suite/recall_trace.rs` — `project_search_refuses_a_restricted_project_without_a_grant` (bob, with no grant, gets 403 from `/web/search` with and without `explain=1` and from scoped `/api/v1/search`, with no path, body text or trace in the response, and a `scopes` POST naming the restricted project next to an open one is refused; alice's grant and an unrestricted viewer are the controls), `project_search_fails_closed_on_unknown_and_partial_scope` (unknown project or workspace 404 with nothing created, partial scope 400), `explain_renders_stream_ranks_rrf_authority_and_timings` (a better-matching page in a sibling project never reaches the hits or the trace), `search_scope_selector_lists_only_readable_projects` (the search page's "Search in" selector lists only projects the viewer may read, and a hand-typed `scope=` for an ungranted project is a 403 that leaks nothing; controls: the granted reader and an unrestricted viewer; passing no viewer to `list_projects_with_stats` in the handler fails it), `routes.rs` `search_page_scope_selector_round_trips_and_rejects_malformed_values` (a malformed `scope` is a 400); `recall_trace.rs` `kind_filter_does_not_widen_what_a_viewer_can_read` (a `kind`/`tier` filter only narrows: bob gets no hits and a 403 on a scoped search; alice and an unrestricted viewer are the controls), `search_filters_a_project_by_kind_and_tier_keeping_rank_order` (survivors of a filter keep the unfiltered order), `reranker_is_shown_only_the_pages_the_filter_keeps` (a dropped page never reaches the reranker), `kind_and_tier_filters_hold_in_every_stream` (FTS, entity, vector, observation and both graph directions each filter in SQL; dropping any one stream's predicate fails it), `kind_filter_finds_a_rare_kind_the_unfiltered_page_ranks_out` and `cross_project_kind_filter_sees_past_the_candidate_window` (the filter sees past the candidate window in both modes); `ai-memory-mcp` `tests/suite/web_search_parity.rs` (same top-k order as `memory_query` from `/web` and `/api/v1`, with a deterministic embedder and with none, explain on and off, and merged `scopes`; controls show a web search without the embedder, or the old FTS-only scoped search, would fail it) | STRONG. Bite checks: passing no viewer to `resolve_read_scope` in the search handler, to `lookup_project` or to `resolve_scopes` in the API each fails the restricted-project test; dropping the query vector in `recall.rs` fails the embedder parity tests |
| 15 | Agent-archive restore path confinement, resource bounds, and consistency | `ai-memory-cli/src/commands/restore_agents.rs` stages only bounded regular UTF-8 entries; requires a one-to-one manifest/body/checksum/target mapping; allowlists destinations by scope; rejects symlinked descendants; writes each file atomically and rolls back earlier writes after a later failure. `backup_agents.rs` skips direct and directory-root source symlinks, bounds individual assets, and atomically replaces a private archive only after gzip completion | `backup_agents.rs` `restore_agents_rejects_path_traversal`, `restore_agents_rejects_unauthorized_destination_path`, `restore_agents_verifies_sha256_integrity`, `restore_agents_requires_a_complete_one_to_one_manifest`, `restore_agents_rejects_oversized_entries_from_the_header`, `restore_agents_rejects_a_symlinked_destination_parent`, `backup_agents_does_not_follow_config_or_asset_root_symlinks`, and `failed_backup_leaves_the_previous_archive_intact`; `backup_and_restore_agents_round_trip` is the valid-path control; `restore_agents::tests::rollback_removes_new_files_and_restores_overwrites` covers recovery | STRONG |
| 16 | Relay queue identity, migration, and private filesystem state | `companions/ai-memory-relay/src/queue.rs` `Queue::open_inner` performs read-only identity preflight, rechecks under `IMMEDIATE`, commits schema and metadata together; `configure` checks the presence of user objects and rechecks `identity`/`schema_version` metadata on the same connection before every bounded BUSY/LOCKED retry; `fsguard.rs` checks existing paths and creates owner-only files before SQLite opens them | `tests/relay.rs` `a_foreign_database_is_refused_byte_for_byte`, `unknown_schemas_refuse_without_mutation`, `a_foreign_database_with_a_writer_is_refused_before_write_coordination`, `a_foreign_identity_after_preflight_is_refused_without_mutation`, `a_foreign_identity_during_journal_retry_is_refused_without_mutation`, `journal_retry_refuses_a_changed_version_or_empty_database_without_mutation`; controls: `journal_transition_retries_sqlite_lock_without_losing_v1_values`, `fresh_queue_init_and_v1_reopens_work_across_processes`; recovery: `interrupted_and_failed_migrations_roll_back_and_recover`, `journal_reclassification_busy_preserves_committed_migration_and_retries_same_queue`; diagnostics: `classification_read_failures_display_the_sqlite_cause_once_and_preserve_foreign_bytes`; Unix privacy: `the_queue_database_and_its_sidecars_are_owner_only` and the contended migration control | Guard-removal proof covers preflight, locked recheck, and journal retry identity/version checks; full table structure is outside this classification. Windows path rejection is preserved; Windows ACL hardening remains operator-owned |
-| 17 | `ai-memory setup --web` local wizard: only the page this process printed can read the plan or apply a setup | `ai-memory-cli/src/commands/setup_web.rs` `guard` (binds `127.0.0.1` on an OS-picked port; every request needs a `Host` of exactly `127.0.0.1:<port>` or `localhost:<port>` and the one-time 256-bit path secret, compared with `subtle`; a POST also needs this page's `Origin` and the CSRF token the page reads from its own JSON; no CORS grant; `no-store`, `no-referrer`, `DENY` framing, and a CSP with a per-run nonce and no outside sources on the page) and `apply` (agent names must be `--agent` values, de-duplicated, at least one; the child is always `ai-memory setup --yes --agent ...` with the wizard's own flags, never a caller-chosen argument) | `setup_web.rs` `the_page_is_served_only_to_our_host_and_secret` (a rebinding `Host`, a bare `127.0.0.1`, another port, a wrong secret and a missing one refused; controls: `127.0.0.1` and `localhost` with the secret), `apply_refuses_cross_site_and_unknown_input_and_starts_nothing` (no `Origin`, a foreign `Origin`, no CSRF token and a wrong one each refused; `--force`, a shell-like name and an empty choice refused; no child starts), `apply_runs_setup_with_the_picked_agents_and_streams_its_output` (legitimate control: exact argument list); `tests/suite/setup_e2e.rs` `setup_web_serves_the_plan_and_applies_the_picked_agent` (the same through the binary); bite-checked by removing the `Host` check, the `Origin` check, the CSRF check and the agent allowlist one at a time | STRONG |
-| 18 | `uninstall` removes only a service `setup` wrote, including the Windows logon entry | `ai-memory-cli/src/commands/user_service.rs` `planned_removal` / `is_rendered_by_setup` (a unit file whose identity digest still matches) and `planned_removal_for` / `is_setup_run_entry_for` (a `REG_SZ` `HKCU\...\Run\ai-memory` value that is a quoted `ai-memory.exe` ending in `service-host`, with no `&` or `|` chaining, whose `--data-dir`, the first argument after the quoted executable and a whole quoted argument ending at its closing quote, is the data dir being uninstalled, both absolute (`X:\…`, UNC or `\\?\Volume{GUID}\…`; a drive-relative `C:` matches nothing), compared without the verbatim `\\?\` / `\\?\UNC\` prefix, case or trailing separators) before `remove` stops anything or deletes it | `user_service.rs` `uninstall_removes_only_setups_logon_entry` (another install's entry, naming a different `--data-dir`, is left with only the query run; another program's value under the same name is left; absent value is nothing to do; control: this data dir's entry is deleted), `only_the_entry_for_this_data_dir_is_ours` (a temporary data dir does not claim the operator's entry, #1280), `a_volume_guid_data_dir_owns_its_entry` (a volume GUID data dir owns its rendered entry and not another volume's; `uninstall_removes_only_setups_logon_entry` drives both through `remove`), `a_drive_relative_data_dir_is_not_the_drive_root` (`--data-dir "C:"` does not claim `C:\`'s entry; control: the rendered drive-root entry does; `uninstall_removes_only_setups_logon_entry` drives it through `remove` and asserts nothing is stopped or deleted), `a_data_dir_that_runs_past_its_quote_is_not_ours` (`"C:\d"\other` and an escaped closing quote, which Windows reads as other directories, do not claim `C:\d`'s entry; control: the rendered entry does; `uninstall_removes_only_setups_logon_entry` drives the same case through `remove`), `the_data_dir_is_read_after_the_executable` and, on Windows, `a_rendered_entry_belongs_to_its_own_data_dir` (a ` --data-dir ` inside the executable's path neither hides nor fakes the option), `data_dirs_compare_without_prefix_case_or_trailing_separator` (verbatim UNC matches its plain spelling; another share does not), Windows-only `only_a_plain_string_value_is_read` (a `REG_EXPAND_SZ` value under the name is not read as setup's; control: the same data as `REG_SZ` is), `only_setups_entry_shape_counts_as_ours` (unquoted, other program, `serve`, `&`/`|` chaining all refused), and the unit-file identity tests in the same module | STRONG |
-| 19 | Human-session session inspection and owned purging (`serve --enable-session-management`, #1267) | `ai-memory-mcp/src/session_management.rs`: human session and CSRF, completed password change, guarded no-create scope lookup, and an exact-owner preflight before any admission or checkpoint side effect; `ai-memory-store/src/ops.rs` `purge_session_with_owner`: ownership and project write grant rechecked inside the deletion transaction (previews included), cross-project collateral refused unless an Admin purges; `Wiki::purge_owned_session`: wiki mutation lock, admission, pre/post checkpoints, partial-cleanup reporting and replay tombstones | MCP `session_management` suite: `management_refuses_foreign_ids_shared_deletion_and_missing_csrf_with_admin_control` (foreign and shared sessions, anonymous, machine bearer, missing CSRF refused; owner and Admin controls), `management_raw_session_ids_fail_closed_on_wrong_and_partial_scope`, `management_purge_admission_rejection_preserves_rows_and_files`, `management_pagination_reports_its_limit_and_keeps_pages_disjoint`; store `multi_session::owned_session_purge_refuses_foreign_shared_and_wrong_scope_sessions`, `owned_session_purge_refuses_cross_project_cascades_with_admin_control`; wiki `owned_session_purge_authorization_failure_preserves_page_and_index`, `owned_session_purge_cleanup_failure_is_reported_and_tombstoned`. Bite-checked: removing the transaction owner check fails `owned_session_purge_refuses_foreign_shared_and_wrong_scope_sessions`; removing it together with the handler preflight fails `management_refuses_foreign_ids_shared_deletion_and_missing_csrf_with_admin_control` (the two are defence in depth) | STRONG |
-| 20 | Human-session self-service native API keys (`serve --enable-self-service-keys`, #1268) | `ai-memory-mcp/src/self_service_keys.rs`: human session and CSRF (a disabled account's session is refused by `load_session`), completed password change; creation takes the authenticated `UserId`, never a supplied username, trims and bounds `label` (1 to 128 characters) and asks the writer for `create_api_credential_within_limit` (at most 20 active keys per user, counted on the writer thread); revocation answers 404 unless the credential is the caller's own and still active; the token appears only in the one-time create response; issued keys stay `AuthLevel::User` | `self_service_keys_refuse_foreign_ids_csrf_machine_and_pending_password_with_owner_controls` (anonymous, machine bearer, missing CSRF, pending password and foreign-id revoke refused; supplied username ignored; User and Root owner controls), `self_service_keys_refuse_blank_and_overlong_labels` (empty, whitespace, 129 ASCII and 129 multi-byte characters refused with nothing stored; control: 128 characters and a trimmed label accepted), `self_service_keys_cap_active_keys_per_user` (the 21st key refused with 409; controls: another user unaffected, a revoked key frees a slot), `self_service_keys_refuse_a_disabled_user` (list, create and revoke refused; key untouched; control: an enabled user), `self_service_keys_revoking_an_unknown_or_revoked_id_is_not_found` (unknown and already-revoked ids answer 404 without moving the revocation time or touching another user's key). Bite-checked: removing the owner filter fails the foreign-id test; removing the active filter or the key limit fails the revoked-id and cap tests | STRONG |
-
-
-| 17 | Human-session session inspection and owned purging | `mcp/src/session_management.rs`: human session/CSRF, completed password change, guarded scope lookup, exact ownership; `ops::purge_session_with_owner`: transaction ownership/write-grant checks and collateral refusal; `Wiki::purge_owned_session`: mutation lock, admission/checkpoints, partial cleanup/tombstones. | MCP `session_management` suite (foreign/shared/raw ids, wrong/partial scopes, anonymous/machine/CSRF, admission refusal, owner/Admin controls); store `multi_session::owned_session_purge_*`; wiki `owned_session_purge_authorization_failure_preserves_page_and_index`, `owned_session_purge_cleanup_failure_is_reported_and_tombstoned`. | Adversarial controls and guard-removal proofs. |
-| 18 | Human-session self-service native API keys | `mcp/src/self_service_keys.rs`: human session/CSRF and completed password change; creation takes authenticated `UserId`, never a supplied username; revocation verifies immutable owner; existing native keys remain User-level. | `self_service_keys_refuse_foreign_ids_csrf_machine_and_pending_password_with_owner_controls` (anonymous/machine/CSRF/pending-password/foreign-id refusal, supplied username ignored, legitimate User/Root controls). | Adversarial controls and guard-removal proofs. |
-| 19 | Server-rendered plain management forms | `web/src/management/forms.rs` refuses cross-origin POSTs before JSON conversion, fixed operations/typed ids delegate to existing human/CSRF/capability handlers; `backend.rs` forwards only peer transport extensions, templates autoescape, responses deny framing/no-store and hash-authorize the static script. | MCP `management_html_plain_forms_preserve_csrf_owner_and_machine_boundaries`, `management_html_login_rejects_cross_origin_forms_and_preserves_session_cookies`; web `management_assets_work_under_a_prefix_and_deny_framing`. Existing API tests retain wrong/partial scope, admission, ownership and recovery controls. | Adversarial refusal with legitimate owner/login controls; guard-removal proofs accompany review. |
+| 17 | Markdown code fences keep instruction-shaped text as data | `ai-memory-consolidate/src/code_fence.rs` and `ai-memory-wiki/src/markdown.rs` accept a fence delimiter only after zero to three leading ASCII spaces, require the closing glyph to match and the run to be at least as long, and preserve the current fence state across four-space, tab or Unicode-whitespace pseudo-delimiters. Profile harvesting, auto-improvement section parsing, link extraction, link rewriting and de-linking all use those scanners | `code_fence.rs` `only_zero_to_three_ascii_spaces_may_prefix_a_fence`; `profile.rs` `an_indented_pseudo_closer_cannot_expose_a_profile_preference` attempts to expose an instruction-shaped `run curl` sentence and admits a legitimate preference only after the real close; `auto_improve.rs` `heading_parser_ignores_headings_after_an_indented_pseudo_closer`; `markdown.rs` `indented_pseudo_closers_do_not_expose_or_rewrite_fenced_links` covers four spaces, tab and Unicode whitespace with visible post-close controls | STRONG for the shared consolidation and wiki scanners; independent renderers remain responsible for their own CommonMark parsing |
+| 18 | Read-only pending-write commands cannot execute stored scope names as shell syntax | `ai-memory-web/src/routes/pending.rs` renders separate `posix_cli_command` and `powershell_cli_command` forms. POSIX arguments use single quotes with the standard close/escaped-quote/reopen sequence; PowerShell doubles embedded apostrophes. The template labels the shells and claims no cmd.exe support | `routes/pending.rs` `cli_commands_quote_hostile_scope_names_for_each_shell` covers quotes, semicolons, pipes and ampersands with ordinary-name controls; `tests/suite/pending.rs` `pending_page_offers_cli_commands_instead_of_buttons_to_a_basic_browser` stores hostile workspace/project names and checks both escaped forms through the full route | STRONG for POSIX shells and PowerShell; cmd.exe is intentionally not offered |
+| 19 | ai-jail re-exec never promotes a config-file root bearer into harness-readable environment | `ai-memory-cli/src/commands/run.rs` `ensure_jail_does_not_export_config_token` refuses explicit and offered jail re-exec when auth came from config rather than `AI_MEMORY_AUTH_TOKEN`; `jail_resolved_env` forwards only resolved routing (`AI_MEMORY_SERVER_URL`, `AI_MEMORY_BASE_PATH`), while `jail_forwarded_names` forwards an auth variable only when the operator already placed it in the process environment | `run.rs` `jail_refuses_a_config_sourced_token_and_forwards_routing` attempts the file-token exposure and verifies route-only output; `jail_forwarded_names_come_from_the_captured_env_and_resolved_values` is the explicit-environment control | STRONG for credentials loaded by ai-memory. Residual: a token the operator exports is already inherited by an unjailed managed harness and may itself be privileged; use a least-privilege API token |
+| 20 | `ai-memory setup --web` local wizard: only the page this process printed can read the plan or apply a setup | `ai-memory-cli/src/commands/setup_web.rs` `guard` (binds `127.0.0.1` on an OS-picked port; every request needs a `Host` of exactly `127.0.0.1:<port>` or `localhost:<port>` and the one-time 256-bit path secret, compared with `subtle`; a POST also needs this page's `Origin` and the CSRF token the page reads from its own JSON; no CORS grant; `no-store`, `no-referrer`, `DENY` framing, and a CSP with a per-run nonce and no outside sources on the page) and `apply` (agent names must be `--agent` values, de-duplicated, at least one; the child is always `ai-memory setup --yes --agent ...` with the wizard's own flags, never a caller-chosen argument) | `setup_web.rs` `the_page_is_served_only_to_our_host_and_secret` (a rebinding `Host`, a bare `127.0.0.1`, another port, a wrong secret and a missing one refused; controls: `127.0.0.1` and `localhost` with the secret), `apply_refuses_cross_site_and_unknown_input_and_starts_nothing` (no `Origin`, a foreign `Origin`, no CSRF token and a wrong one each refused; `--force`, a shell-like name and an empty choice refused; no child starts), `apply_runs_setup_with_the_picked_agents_and_streams_its_output` (legitimate control: exact argument list); `tests/suite/setup_e2e.rs` `setup_web_serves_the_plan_and_applies_the_picked_agent` (the same through the binary); bite-checked by removing the `Host` check, the `Origin` check, the CSRF check and the agent allowlist one at a time | STRONG |
+| 21 | `uninstall` removes only a service `setup` wrote, including the Windows logon entry | `ai-memory-cli/src/commands/user_service.rs` `planned_removal` / `is_rendered_by_setup` (a unit file whose identity digest still matches) and `planned_removal_for` / `is_setup_run_entry_for` (a `REG_SZ` `HKCU\...\Run\ai-memory` value that is a quoted `ai-memory.exe` ending in `service-host`, with no `&` or `|` chaining, whose `--data-dir`, the first argument after the quoted executable and a whole quoted argument ending at its closing quote, is the data dir being uninstalled, both absolute (`X:\…`, UNC or `\\?\Volume{GUID}\…`; a drive-relative `C:` matches nothing), compared without the verbatim `\\?\` / `\\?\UNC\` prefix, case or trailing separators) before `remove` stops anything or deletes it | `user_service.rs` `uninstall_removes_only_setups_logon_entry` (another install's entry, naming a different `--data-dir`, is left with only the query run; another program's value under the same name is left; absent value is nothing to do; control: this data dir's entry is deleted), `only_the_entry_for_this_data_dir_is_ours` (a temporary data dir does not claim the operator's entry, #1280), `a_volume_guid_data_dir_owns_its_entry` (a volume GUID data dir owns its rendered entry and not another volume's; `uninstall_removes_only_setups_logon_entry` drives both through `remove`), `a_drive_relative_data_dir_is_not_the_drive_root` (`--data-dir "C:"` does not claim `C:\`'s entry; control: the rendered drive-root entry does; `uninstall_removes_only_setups_logon_entry` drives it through `remove` and asserts nothing is stopped or deleted), `a_data_dir_that_runs_past_its_quote_is_not_ours` (`"C:\d"\other` and an escaped closing quote, which Windows reads as other directories, do not claim `C:\d`'s entry; control: the rendered entry does; `uninstall_removes_only_setups_logon_entry` drives the same case through `remove`), `the_data_dir_is_read_after_the_executable` and, on Windows, `a_rendered_entry_belongs_to_its_own_data_dir` (a ` --data-dir ` inside the executable's path neither hides nor fakes the option), `data_dirs_compare_without_prefix_case_or_trailing_separator` (verbatim UNC matches its plain spelling; another share does not), Windows-only `only_a_plain_string_value_is_read` (a `REG_EXPAND_SZ` value under the name is not read as setup's; control: the same data as `REG_SZ` is), `only_setups_entry_shape_counts_as_ours` (unquoted, other program, `serve`, `&`/`|` chaining all refused), and the unit-file identity tests in the same module | STRONG |
+| 22 | Human-session session inspection and owned purging (`serve --enable-session-management`, #1267) | `ai-memory-mcp/src/session_management.rs`: human session and CSRF, completed password change, guarded no-create scope lookup, and an exact-owner preflight before any admission or checkpoint side effect; `ai-memory-store/src/ops.rs` `purge_session_with_owner`: ownership and project write grant rechecked inside the deletion transaction (previews included), cross-project collateral refused unless an Admin purges; `Wiki::purge_owned_session`: wiki mutation lock, admission, pre/post checkpoints, partial-cleanup reporting and replay tombstones | MCP `session_management` suite: `management_refuses_foreign_ids_shared_deletion_and_missing_csrf_with_admin_control` (foreign and shared sessions, anonymous, machine bearer, missing CSRF refused; owner and Admin controls), `management_raw_session_ids_fail_closed_on_wrong_and_partial_scope`, `management_purge_admission_rejection_preserves_rows_and_files`, `management_pagination_reports_its_limit_and_keeps_pages_disjoint`; store `multi_session::owned_session_purge_refuses_foreign_shared_and_wrong_scope_sessions`, `owned_session_purge_refuses_cross_project_cascades_with_admin_control`; wiki `owned_session_purge_authorization_failure_preserves_page_and_index`, `owned_session_purge_cleanup_failure_is_reported_and_tombstoned`. Bite-checked: removing the transaction owner check fails `owned_session_purge_refuses_foreign_shared_and_wrong_scope_sessions`; removing it together with the handler preflight fails `management_refuses_foreign_ids_shared_deletion_and_missing_csrf_with_admin_control` (the two are defence in depth) | STRONG |
+| 23 | Human-session self-service native API keys (`serve --enable-self-service-keys`, #1268) | `ai-memory-mcp/src/self_service_keys.rs`: human session and CSRF (a disabled account's session is refused by `load_session`), completed password change; creation takes the authenticated `UserId`, never a supplied username, trims and bounds `label` (1 to 128 characters) and asks the writer for `create_api_credential_within_limit` (at most 20 active keys per user, counted on the writer thread); revocation answers 404 unless the credential is the caller's own and still active; the token appears only in the one-time create response; issued keys stay `AuthLevel::User` | `self_service_keys_refuse_foreign_ids_csrf_machine_and_pending_password_with_owner_controls` (anonymous, machine bearer, missing CSRF, pending password and foreign-id revoke refused; supplied username ignored; User and Root owner controls), `self_service_keys_refuse_blank_and_overlong_labels` (empty, whitespace, 129 ASCII and 129 multi-byte characters refused with nothing stored; control: 128 characters and a trimmed label accepted), `self_service_keys_cap_active_keys_per_user` (the 21st key refused with 409; controls: another user unaffected, a revoked key frees a slot), `self_service_keys_refuse_a_disabled_user` (list, create and revoke refused; key untouched; control: an enabled user), `self_service_keys_revoking_an_unknown_or_revoked_id_is_not_found` (unknown and already-revoked ids answer 404 without moving the revocation time or touching another user's key). Bite-checked: removing the owner filter fails the foreign-id test; removing the active filter or the key limit fails the revoked-id and cap tests | STRONG |
++| 24 | Server-rendered management forms preserve browser, identity and origin boundaries | `ai-memory-web/src/management/forms.rs` requires matching `Origin`/`Host` and permits only `Sec-Fetch-Site: same-origin` or `none` when that header is present before translating a form; commands are a fixed enum with typed raw ids and delegate to the existing human-session, CSRF and capability handlers. `management/backend.rs` forwards only the real transport peer extension; Askama templates autoescape; `management/mod.rs` responses deny framing, disable caching and hash-authorize the fixed script. Machine bearer authentication is not accepted as a browser identity | MCP `management_html_plain_forms_preserve_csrf_owner_and_machine_boundaries` (foreign owner, forged CSRF and bearer-only console refusal, with owner/Admin controls), `management_html_login_rejects_cross_origin_forms_and_preserves_session_cookies` (foreign/missing origin and matching-authority `same-site`/`cross-site`/invalid fetch-site values refused; missing fetch metadata plus `same-origin` and `none` are legitimate controls); web `management_assets_work_under_a_prefix_and_deny_framing` (explicit assets only, traversal refused, CSP/framing/no-sniff present). Existing session/key API rows above retain wrong/partial scope, admission, ownership and recovery controls | STRONG |
## Keeping this current (the standing protocol)