:root{--shell-bg: #1a3a4a;--content-bg: #faf9f7;--nav-bg: #ffffff;--nav-active-bg: #e8f4f8;--nav-icon-bg: #1a3a4a;--header-bg: #ffffff;--border-color: #e5e7eb;--text-color: #1f2937;--text-muted: #6b7280;--text-secondary: #9ca3af;--avatar-bg: #6b7280;--avatar-fg: #ffffff;--nav-active-icon-bg: #1a3a4a;--nav-hover-bg: rgba(0, 0, 0, .04);--collapse-btn-bg: #ffffff;--shell-gutter: 16px;--nav-width-collapsed: 80px;--nav-width-expanded: 256px;--header-height: 64px;--nav-item-height: 44px;--nav-icon-size: 40px;--nav-border-radius: 12px;--content-border-radius: 12px;--transition-fast: .15s ease;--transition-normal: .2s ease;--transition-slow: .3s ease-in-out}.lvl-shell{height:100vh;background:var(--shell-bg);display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto 1fr;gap:var(--shell-gutter);padding:var(--shell-gutter);overflow:hidden}.lvl-shell:not(.collapsed){grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr}.lvl-shell.collapsed{grid-template-columns:var(--nav-width-collapsed) minmax(0,1fr);grid-template-rows:auto 1fr}.lvl-shell-header{height:var(--header-height);background:var(--header-bg);display:flex;align-items:center;justify-content:space-between;padding:0 16px;gap:12px;position:relative;z-index:100;border-radius:var(--content-border-radius);transition:all var(--transition-slow)}.lvl-shell:not(.collapsed) .lvl-shell-header{grid-column:1;grid-row:1}.lvl-shell.collapsed .lvl-shell-header{grid-column:1;grid-row:1;justify-content:center;padding:0 12px;border-radius:var(--nav-border-radius)}.lvl-shell-header-app-identity{display:flex;align-items:center;gap:12px;min-width:0;transition:width var(--transition-slow)}.lvl-shell.collapsed .lvl-shell-header .lvl-shell-header-app-identity{width:100%;justify-content:center;gap:8px}.lvl-shell.collapsed .lvl-shell-header .lvl-shell-header-app-info{display:none}.lvl-shell.collapsed .lvl-shell-header .lvl-shell-header-btn:not(.lvl-shell-mobile-menu-btn),.lvl-shell.collapsed .lvl-shell-header .lvl-shell-flex-1,.lvl-shell.collapsed .lvl-shell-header>.lvl-shell-relative{display:none}.lvl-shell-header-app-icon{width:44px;height:44px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;transition:width var(--transition-fast),height var(--transition-fast)}.lvl-shell.collapsed .lvl-shell-header .lvl-shell-header-app-icon{width:36px;height:36px;border-radius:8px}.lvl-shell-header-app-icon img{width:100%;height:100%;object-fit:contain}.lvl-shell-header-app-icon-fallback{font-size:20px;font-weight:600;color:var(--nav-icon-bg)}.lvl-shell.collapsed .lvl-shell-header .lvl-shell-header-app-icon-fallback{font-size:18px}.lvl-shell-header-app-info{display:flex;flex-direction:column;min-width:0}.lvl-shell-header-app-name{font-size:16px;font-weight:600;color:var(--text-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2}.lvl-shell-header-app-subtitle{font-size:12px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2}.lvl-shell-header-collapse-btn{position:absolute;left:calc(var(--nav-width-expanded) + var(--shell-gutter) - 12px);top:50%;transform:translateY(-50%);width:24px;height:24px;border-radius:50%;background:var(--shell-bg);border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;transition:left var(--transition-slow),transform var(--transition-fast),opacity var(--transition-fast);flex-shrink:0;z-index:10}.lvl-shell-header-collapse-btn:hover{opacity:.85}.lvl-shell.collapsed .lvl-shell-header .lvl-shell-header-collapse-btn{position:absolute;left:auto;right:-14px;top:50%;transform:translateY(-50%) rotate(180deg);z-index:10}.lvl-shell-header-btn{flex-shrink:0;width:40px;height:40px;border-radius:10px;background:transparent;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--text-color);transition:background var(--transition-fast);position:relative}.lvl-shell-header-btn:hover{background:#0000000a}.lvl-shell-header-btn:focus-visible{outline:2px solid var(--nav-icon-bg);outline-offset:2px}.lvl-shell-badge{position:absolute;top:4px;right:4px;min-width:18px;height:18px;padding:0 5px;background:#ef4444;color:#fff;font-size:11px;font-weight:600;border-radius:9px;display:flex;align-items:center;justify-content:center}.lvl-shell-header-btn.lvl-shell-workspace-avatar{background:transparent;border-radius:50%;overflow:hidden;padding:0}.lvl-shell-header-btn.lvl-shell-workspace-avatar:hover{background:transparent;opacity:.85}.lvl-shell-avatar-img{width:100%;height:100%;object-fit:cover}.lvl-shell-header-btn.lvl-shell-workspace-avatar .lvl-shell-initials{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;color:var(--avatar-fg);background:var(--avatar-bg);border-radius:50%}.lvl-shell-mobile-menu-btn{margin-right:8px}.lvl-shell-body{display:flex;gap:var(--shell-gutter);min-height:0;overflow:hidden}.lvl-shell:not(.collapsed) .lvl-shell-body{grid-column:1;grid-row:2}.lvl-shell.collapsed .lvl-shell-body{display:contents}.lvl-shell.collapsed .lvl-shell-nav{grid-column:1;grid-row:2}.lvl-shell.collapsed .lvl-shell-main{grid-column:2;grid-row:1 / -1}.lvl-shell-nav{width:var(--nav-width-expanded);height:100%;background:var(--nav-bg);border-radius:var(--nav-border-radius);display:flex;flex-direction:column;transition:width var(--transition-slow);overflow:hidden;flex-shrink:0}.lvl-shell-nav.collapsed{width:var(--nav-width-collapsed)}.lvl-shell-nav-menu{flex:1;overflow-y:auto;padding:12px 8px 8px}.lvl-shell-nav-loading{padding:16px}.lvl-shell-nav-skeleton{height:44px;margin-bottom:4px;border-radius:10px;background:#f3f4f6;animation:lvl-shell-pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes lvl-shell-pulse{0%,to{opacity:1}50%{opacity:.5}}.lvl-shell-nav-item{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;color:var(--text-color);text-decoration:none;transition:background var(--transition-fast);cursor:pointer;border:none;background:transparent;width:100%;text-align:left;font-size:14px}.lvl-shell-nav-item:hover{background:var(--nav-hover-bg)}.lvl-shell-nav-item.active{background:var(--nav-active-bg);font-weight:500}.lvl-shell-nav-item .lvl-shell-icon{width:var(--nav-icon-size);height:var(--nav-icon-size);border-radius:10px;background:transparent;color:var(--text-color);display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background var(--transition-fast),color var(--transition-fast)}.lvl-shell-nav-item .lvl-shell-icon svg{width:20px;height:20px;stroke-width:1.5}.lvl-shell-nav-item.active .lvl-shell-icon,.lvl-shell-nav.collapsed .lvl-shell-nav-item.active .lvl-shell-icon{background:var(--nav-active-icon-bg);color:#fff}.lvl-shell-nav-item .lvl-shell-label{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lvl-shell-nav.collapsed .lvl-shell-nav-item .lvl-shell-label{display:none}.lvl-shell-nav.collapsed .lvl-shell-nav-item{justify-content:center;padding:10px}.lvl-shell-nav-footer{border-top:1px solid var(--border-color);padding:8px}.lvl-shell-offload-btn{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;color:var(--text-color);text-decoration:none;transition:background var(--transition-fast);cursor:pointer;border:none;background:transparent;width:100%;text-align:left;font-size:14px}.lvl-shell-offload-btn:hover{background:#0000000a}.lvl-shell-offload-btn .lvl-shell-icon{width:24px;height:24px}.lvl-shell-nav.collapsed .lvl-shell-offload-btn .lvl-shell-label{display:none}.lvl-shell-nav.collapsed .lvl-shell-offload-btn{justify-content:center}.lvl-shell-nav-user{display:flex;align-items:center;gap:12px;padding:12px;margin-top:4px;background:#00000008;border-radius:10px;cursor:pointer;transition:background var(--transition-fast);width:100%;border:none;text-align:left}.lvl-shell-nav-user:hover{background:#0000000f}.lvl-shell-nav-user .lvl-shell-avatar{width:40px;height:40px;border-radius:50%;background:var(--avatar-bg);display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0}.lvl-shell-nav-user .lvl-shell-avatar img{width:100%;height:100%;object-fit:cover}.lvl-shell-nav-user .lvl-shell-initials{font-size:14px;font-weight:600;color:var(--avatar-fg)}.lvl-shell-user-info{flex:1;min-width:0;text-align:left}.lvl-shell-user-name{font-size:14px;font-weight:500;color:var(--text-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lvl-shell-user-action{font-size:12px;color:var(--text-muted)}.lvl-shell-nav.collapsed .lvl-shell-nav-user .lvl-shell-user-info{display:none}.lvl-shell-main{flex:1;display:flex;flex-direction:column;min-width:0;height:100%;overflow:hidden;background:var(--content-bg);border-radius:var(--content-border-radius)}.lvl-shell-content{flex:1;overflow-y:auto;padding:24px}.lvl-shell-app-switcher-panel{position:absolute;top:100%;right:0;margin-top:8px;width:360px;background:#fff;border-radius:20px;border:1px solid var(--border-color);box-shadow:0 12px 48px #0000001f,0 4px 16px #00000014;z-index:200;overflow:hidden}.lvl-shell-app-switcher-header{padding:16px 20px;font-size:13px;font-weight:500;color:var(--text-muted);border-bottom:1px solid var(--border-color)}.lvl-shell-app-switcher-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:20px;max-height:400px;overflow-x:hidden;overflow-y:auto}.lvl-shell-app-switcher-tile{display:flex;flex-direction:column;align-items:center;padding:12px 8px;border-radius:14px;cursor:pointer;transition:background var(--transition-fast),transform var(--transition-fast);border:none;background:transparent;min-width:0;width:100%}.lvl-shell-app-switcher-tile:hover{background:#0000000a;transform:scale(1.02)}.lvl-shell-app-switcher-tile:active{transform:scale(.98)}.lvl-shell-app-switcher-tile.active{background:var(--nav-active-bg)}.lvl-shell-app-switcher-tile .lvl-shell-app-icon{width:56px;height:56px;border-radius:14px;margin-bottom:10px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#f5f5f7;transition:background var(--transition-fast),box-shadow var(--transition-fast)}.lvl-shell-app-switcher-tile:hover .lvl-shell-app-icon{background:#ebebed;box-shadow:0 2px 8px #0000000f}.lvl-shell-app-switcher-tile .lvl-shell-app-icon img{width:100%;height:100%;object-fit:contain}.lvl-shell-app-name{font-size:12px;font-weight:500;color:var(--text-color);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;line-height:1.3}.lvl-shell-workspace-switcher-panel{position:absolute;top:100%;right:0;margin-top:8px;width:300px;background:#fff;border-radius:16px;box-shadow:0 10px 40px #00000026;z-index:200;overflow:hidden}.lvl-shell-workspace-switcher-header{padding:16px 20px;font-size:13px;color:var(--text-muted);border-bottom:1px solid var(--border-color)}.lvl-shell-workspace-switcher-list{max-height:320px;overflow-y:auto}.lvl-shell-workspace-section-heading{padding:10px 20px 6px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted);border-top:1px solid var(--border-color);cursor:default}.lvl-shell-workspace-section:first-child>.lvl-shell-workspace-section-heading{border-top:none}.lvl-shell-workspace-all-locations{padding-left:20px;font-style:italic;color:var(--text-muted)}.lvl-shell-workspace-switcher-item{display:flex;align-items:center;gap:12px;padding:12px 20px;cursor:pointer;transition:background var(--transition-fast);border:none;background:transparent;width:100%;text-align:left}.lvl-shell-workspace-switcher-item:hover{background:#0000000a}.lvl-shell-workspace-switcher-item.active{background:var(--nav-active-bg)}.lvl-shell-workspace-switcher-item .lvl-shell-avatar{width:40px;height:40px;border-radius:10px;background:var(--avatar-bg);display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0}.lvl-shell-workspace-switcher-item .lvl-shell-avatar img{width:100%;height:100%;object-fit:cover}.lvl-shell-workspace-switcher-item .lvl-shell-initials{font-size:14px;font-weight:600;color:var(--avatar-fg)}.lvl-shell-workspace-name{font-size:14px;font-weight:500;color:var(--text-color)}.lvl-shell-workspace-empty{padding:20px;text-align:center;font-size:14px;color:var(--text-muted)}.lvl-shell-workspace-switcher-footer{border-top:1px solid var(--border-color);padding:12px 20px}.lvl-shell-workspace-switcher-footer button{width:100%;padding:10px 16px;background:#0000000a;border:none;border-radius:10px;font-size:14px;font-weight:500;color:var(--text-color);cursor:pointer;transition:background var(--transition-fast)}.lvl-shell-workspace-switcher-footer button:hover{background:#00000014}.lvl-shell-notification-panel{position:absolute;top:100%;right:0;margin-top:8px;width:380px;max-height:480px;background:#fff;border-radius:16px;box-shadow:0 10px 40px #00000026;z-index:200;overflow:hidden;display:flex;flex-direction:column}@media (max-width: 768px){.lvl-shell-notification-panel{position:fixed;top:auto;bottom:0;left:0;right:0;width:100%;max-height:70vh;border-radius:16px 16px 0 0}}.lvl-shell-testing-mode-container{position:relative}.lvl-shell-header-quick-actions{display:flex;align-items:center;gap:12px}.lvl-shell-header-quick-action{display:flex;align-items:center}.lvl-shell.collapsed .lvl-shell-header>.lvl-shell-header-overflow{display:none}.lvl-shell-header-overflow{display:flex;align-items:center;position:relative}.lvl-shell-header-overflow-toggle{display:none}.lvl-shell-header-overflow-region{display:flex;align-items:center;gap:12px}.lvl-shell-testing-mode-button{position:relative}.lvl-shell-testing-mode-button.active{color:#d97706}.lvl-shell-testing-mode-button.active:hover{color:#b45309}.lvl-shell-testing-mode-indicator{position:absolute;top:4px;right:4px;width:8px;height:8px;background:#f59e0b;border-radius:50%;border:2px solid var(--shell-bg);animation:lvl-shell-testing-pulse 2s infinite}@keyframes lvl-shell-testing-pulse{0%,to{opacity:1}50%{opacity:.6}}.lvl-shell-testing-mode-panel{position:absolute;top:100%;right:0;margin-top:8px;width:340px;max-height:480px;background:#fff;border-radius:16px;box-shadow:0 10px 40px #00000026;z-index:200;overflow:hidden;display:flex;flex-direction:column}@media (max-width: 768px){.lvl-shell-testing-mode-panel{position:fixed;top:auto;bottom:0;left:0;right:0;width:100%;max-height:70vh;border-radius:16px 16px 0 0;margin-top:0}}.lvl-shell-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;z-index:199;opacity:0;visibility:hidden;transition:opacity var(--transition-normal),visibility var(--transition-normal)}.lvl-shell-overlay.visible{opacity:1;visibility:visible}.lvl-shell-flex-1{flex:1}.lvl-shell-relative{position:relative}@media (max-width: 768px){.lvl-shell-header{margin:0;border-radius:0;padding:0 12px}.lvl-shell-header-app-subtitle,.lvl-shell-header-collapse-btn{display:none}.lvl-shell-header-app-name{font-size:14px}.lvl-shell-header-app-icon{width:32px;height:32px}.lvl-shell-nav{position:fixed;top:0;left:0;bottom:0;z-index:200;border-radius:0;transform:translate(-100%);transition:transform var(--transition-slow)}.lvl-shell-nav.mobile-open{transform:translate(0)}.lvl-shell-body{padding:0;gap:0}.lvl-shell-main{border-radius:0}.lvl-shell-app-switcher-panel,.lvl-shell-workspace-switcher-panel{position:fixed;top:auto;bottom:0;left:0;right:0;width:100%;max-height:70vh;border-radius:16px 16px 0 0}.lvl-shell-app-switcher-grid{grid-template-columns:repeat(4,1fr)}}@media (max-width: 640px){.lvl-shell-header .lvl-shell-flex-1{display:none}.lvl-shell-header-app-identity{flex:1 1 auto}.lvl-shell-header-btn{width:44px;height:44px}.lvl-shell-header-overflow{position:static}.lvl-shell-header-overflow-toggle{display:flex}.lvl-shell-header-overflow-region{display:none}.lvl-shell-header-overflow.open .lvl-shell-header-overflow-region{display:flex;flex-direction:column;align-items:flex-end;gap:8px;position:absolute;top:100%;right:8px;margin-top:8px;padding:8px;max-width:calc(100% - 16px);background:var(--header-bg);border:1px solid var(--border-color);border-radius:12px;box-shadow:0 10px 40px #00000026;z-index:200}.lvl-shell-header-overflow.open .lvl-shell-header-quick-actions{flex-direction:column;align-items:flex-end;gap:8px}}@media (max-width: 480px){.lvl-shell-header{padding:0 8px;gap:4px}.lvl-shell-header-app-identity{gap:4px}.lvl-shell-mobile-menu-btn{margin-right:0}}@media (max-width: 360px){.lvl-shell-header-app-info{display:none}}@media (min-width: 769px){.lvl-shell-mobile-menu-btn{display:none}}.lvl-shell-app-access-redirect{display:flex;align-items:center;justify-content:center;width:100%;height:100vh;font-family:inherit;color:var(--shell-text-color, #333);background:var(--shell-bg, #fff)}.lvl-shell-app-access-redirect p{margin:0;font-size:.9375rem}.lvl-shell-member-denied{display:flex;align-items:center;justify-content:center;width:100%;min-height:100vh;padding:var(--shell-gutter, 1.5rem);background:var(--shell-bg, #0f172a);box-sizing:border-box;font-family:inherit}.lvl-shell-member-denied__card{display:flex;flex-direction:column;align-items:center;text-align:center;width:100%;max-width:26rem;padding:2rem;border-radius:var(--content-border-radius, .75rem);background:var(--content-bg, #ffffff);box-shadow:0 10px 30px #0000002e}.lvl-shell-member-denied__icon{display:flex;align-items:center;justify-content:center;width:3.5rem;height:3.5rem;margin-bottom:1rem;border-radius:9999px;background:#3b82f61f;color:#2563eb}.lvl-shell-member-denied__icon svg{width:1.75rem;height:1.75rem}.lvl-shell-member-denied__title{margin:0 0 .5rem;font-size:1.25rem;font-weight:700;line-height:1.3;color:var(--content-fg, #0f172a)}.lvl-shell-member-denied__body{margin:0;font-size:.9375rem;line-height:1.5;color:var(--content-fg-muted, #475569)}.lvl-shell-member-denied__home{display:inline-block;margin-top:1.5rem;padding:.5rem 1.25rem;border:1px solid var(--shell-bg, #1a3a4a);border-radius:.5rem;background:var(--shell-bg, #1a3a4a);font:inherit;font-size:.875rem;font-weight:600;color:#fff;text-decoration:none}.lvl-shell-member-denied__home:hover{filter:brightness(1.1)}.lvl-shell-member-denied__home:focus-visible,.lvl-shell-member-denied__signout:focus-visible{outline:2px solid var(--shell-bg, #1a3a4a);outline-offset:2px}.lvl-shell-member-denied__home+.lvl-shell-member-denied__signout{margin-top:.75rem}.lvl-shell-member-denied__signout{margin-top:1.5rem;padding:.5rem 1.25rem;border:1px solid var(--content-border, #cbd5e1);border-radius:.5rem;background:transparent;font:inherit;font-size:.875rem;font-weight:600;color:var(--content-fg, #0f172a);cursor:pointer}.lvl-shell-member-denied__signout:hover{background:#0f172a0d}.lvl-shell-partner-btn{display:flex;align-items:center;gap:.75rem;width:100%;padding:.625rem .75rem;border:none;border-radius:.5rem;background:transparent;color:var(--lvl-shell-nav-fg, inherit);cursor:pointer;font:inherit;text-align:left;transition:background-color .12s ease}.lvl-shell-partner-btn:hover{background:var(--lvl-shell-nav-item-hover-bg, rgba(127, 127, 127, .12))}.lvl-shell-partner-btn:focus-visible{outline:2px solid var(--lvl-shell-focus-ring, currentColor);outline-offset:2px}.lvl-shell-partner-btn[aria-expanded=true]{background:var(--lvl-shell-nav-item-active-bg, rgba(127, 127, 127, .18))}.lvl-shell-partner-floating{position:fixed;bottom:calc(1rem + env(safe-area-inset-bottom,0px));right:1rem;width:auto;padding:.875rem;border-radius:999px;background:var(--lvl-shell-accent, #4f46e5);color:var(--lvl-shell-accent-fg, #fff);box-shadow:0 4px 12px #0000002e;z-index:40}.lvl-shell-partner-bottom-nav,.lvl-shell-partner-header{width:auto;justify-content:center;padding:.5rem}@media (prefers-reduced-motion: reduce){.lvl-shell-partner-btn{transition:none}}.lvl-shell-workspace-search{padding:8px 12px 4px}.lvl-shell-workspace-search-input{box-sizing:border-box;width:100%;min-height:44px;padding:0 12px;font-size:16px;color:var(--lvl-shell-text, #111827);background:var(--lvl-shell-surface, #ffffff);border:1px solid var(--lvl-shell-border, #d1d5db);border-radius:8px}.lvl-shell-workspace-search-input:focus-visible{outline:2px solid var(--lvl-shell-focus, #2563eb);outline-offset:1px}.lvl-shell-workspace-search-count{padding:4px 2px 0;color:var(--lvl-shell-text-muted, #6d747f);font-size:12px}:root{--bg: #f8fafc;--surface: var(--content-bg, #ffffff);--text: var(--text-color, #0f172a);--muted: #475569;--border: var(--border-color, #e2e8f0);--accent: #0f766e;--warn-bg: #fffbeb;--warn-border: #fcd34d;--warn-text: #92400e;--space-1: .25rem;--space-2: .5rem;--space-3: .75rem;--space-4: 1rem;--space-5: 1.5rem;--space-6: 2rem;--text-title: 1.75rem;--text-section: 1.0625rem;--text-body: 1rem;--text-small: .875rem;--text-tiny: .8125rem;--control-height: 2.5rem;--radius-control: .5rem;--radius-surface: .75rem;--measure-prose: 60ch;--measure-field: 36rem;--workspace-max: 64rem;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}@media (prefers-color-scheme: dark){:root{--warn-bg: #2a2313;--warn-border: #a16207;--warn-text: #fde68a}}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}.centered{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;padding:2rem;text-align:center}.centered h1{font-size:1.25rem;margin:0}.centered p{color:var(--muted);margin:0;max-width:32rem}.button-link{display:inline-block;padding:.5rem 1rem;border-radius:.375rem;border:1px solid var(--accent);color:var(--accent);text-decoration:none}:where(.lvl-shell-content,.centered,.fallback-frame) button{font:inherit;height:var(--control-height);padding:0 var(--space-4);border-radius:var(--radius-control);border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer}:where(.lvl-shell-content,.centered,.fallback-frame) button:hover{border-color:var(--accent)}.app-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem 1.25rem;background:var(--surface);border-bottom:1px solid var(--border);flex-wrap:wrap}.app-identity{display:flex;flex-direction:column}.app-name{font-weight:600}.app-subtitle{color:var(--muted);font-size:.8125rem}.app-context{display:flex;align-items:center;gap:1rem;color:var(--muted);font-size:.875rem;flex-wrap:wrap}.status dl{display:grid;gap:.75rem;margin:0}.status dl>div{display:flex;justify-content:space-between;gap:1rem;padding-bottom:.5rem;border-bottom:1px solid var(--border)}.status dt{color:var(--muted)}.status dd{margin:0;text-align:right}.phi-banner{padding:.75rem 1rem;border-radius:.375rem;background:var(--warn-bg);border:1px solid var(--warn-border);color:var(--warn-text)!important;font-size:.875rem}.page{width:min(100%,var(--workspace-max));margin-inline:auto;padding:var(--space-5) var(--space-5) var(--space-6);display:flex;flex-direction:column;gap:var(--space-5)}.page h1{font-size:var(--text-title);line-height:1.2;margin:0;letter-spacing:-.01em}.page h2{font-size:var(--text-section);line-height:1.3;margin:0 0 var(--space-3)}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--space-4);flex-wrap:wrap}.page-header>div{display:flex;flex-direction:column;gap:var(--space-1);min-width:0}.page-lead{color:var(--muted);margin:0;max-width:var(--measure-prose)}.page-state{padding:var(--space-5) var(--space-4);color:var(--muted)}.panel{padding:var(--space-4) var(--space-5);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-surface)}.panel-flush{padding:0;overflow:hidden}.filters,.form-actions,.dialog-actions{display:flex;gap:var(--space-3);flex-wrap:wrap;align-items:flex-end}.filters .field{flex:1 1 12rem;min-width:0}.filters .field:last-of-type{flex:2 1 16rem}.form{display:flex;flex-direction:column;gap:var(--space-4)}.form>.field,.form>fieldset,.form>.hint,.form>.form-error,.form>.form-actions{max-width:var(--measure-field)}.field{display:flex;flex-direction:column;gap:var(--space-1)}.field label{font-size:var(--text-small);color:var(--muted);font-weight:500}.field input,.field select,.field textarea{font:inherit;height:var(--control-height);padding:0 var(--space-3);border-radius:var(--radius-control);border:1px solid var(--border);background:var(--surface);color:var(--text);width:100%}.field textarea{height:auto;padding:var(--space-2) var(--space-3)}.field input::placeholder{color:var(--muted)}.field input:hover,.field select:hover{border-color:#cbd5e1}.field select{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-right:calc(var(--space-3) * 2 + .75rem);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23475569' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right var(--space-3) center;background-size:.75rem}:where(.lvl-shell-content,.centered,.fallback-frame) fieldset{border:1px solid var(--border);border-radius:.5rem;padding:.75rem 1rem}.choice{display:flex;gap:.5rem;align-items:center;padding:.25rem 0}.hint{color:var(--muted);font-size:.8125rem;margin:0}.form-error{color:#b91c1c;margin:0}.notice{padding:.625rem .875rem;border-radius:.375rem;background:var(--surface);border:1px solid var(--accent);margin:0}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.button-primary,a.button-primary{background:var(--accent);border:1px solid var(--accent);color:#fff;height:var(--control-height);padding:0 var(--space-4);border-radius:var(--radius-control);text-decoration:none;font-weight:500;display:inline-flex;align-items:center;justify-content:center}.button-primary:hover,a.button-primary:hover{background:#0b5d56;border-color:#0b5d56}.button-secondary{background:var(--surface);border:1px solid var(--border);color:var(--text);font-weight:500}.button-secondary:hover{background:#f1f5f9;border-color:#cbd5e1}.button-danger{border-color:#b91c1c;color:#b91c1c}:where(.lvl-shell-content,.centered,.fallback-frame) button:disabled{opacity:.55;cursor:not-allowed}.table-scroll{overflow-x:auto}.data-table{width:100%;min-width:var(--table-min, 40rem);border-collapse:collapse;background:var(--surface)}.data-table th,.data-table td{text-align:left;padding:var(--space-3) var(--space-4);border-bottom:1px solid var(--border)}.data-table thead th{font-size:var(--text-tiny);color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.04em;background:#f8fafc}.data-table tbody tr:last-child td{border-bottom:none}.data-table tbody tr:hover{background:#f8fafc}.empty-state{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-2);padding:var(--space-6) var(--space-5);color:var(--muted)}.empty-state-title{color:var(--text);font-weight:600;margin:0;font-size:var(--text-body)}.empty-state p{margin:0;max-width:60ch}.details{display:grid;grid-template-columns:max-content 1fr;gap:.5rem 1.25rem;margin:0}.compare{display:grid;grid-template-columns:repeat(auto-fit,minmax(16rem,1fr));gap:var(--space-4);margin-bottom:var(--space-4)}.details dt{color:var(--muted)}.details dd{margin:0}.badge{display:inline-block;padding:.125rem .5rem;border-radius:999px;font-size:.75rem;font-weight:600}.badge-active{background:#dcfce7;color:#166534}.badge-inactive{background:#e2e8f0;color:#334155}.kind{color:var(--muted)}.dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;display:flex;align-items:center;justify-content:center;padding:1rem;z-index:1000}.dialog{width:min(32rem,100%);background:var(--surface);color:var(--text);border-radius:.5rem;padding:1.25rem;display:flex;flex-direction:column;gap:1rem}.dialog h2{margin:0;font-size:1.125rem}.dialog-body p{margin:0 0 .5rem}.fallback-header{display:flex;align-items:center;gap:1.25rem;padding:.75rem 1.25rem;background:var(--surface);border-bottom:1px solid var(--border)}.fallback-header nav{display:flex;gap:1rem;flex:1}.fallback-frame .notice{margin:1rem 1.25rem 0}.purpose-picker{border:1px solid #d0d5dd;border-radius:6px;padding:.75rem 1rem;margin:0 0 1rem}.purpose-picker legend{font-weight:600;padding:0 .25rem}.purpose-options,.purpose-picker>label{display:grid;gap:.5rem}.purpose-options label,.purpose-picker>label{display:grid;grid-template-columns:auto 1fr;column-gap:.5rem;align-items:baseline}.purpose-options small,.purpose-picker>label small{grid-column:2;color:#475467}.purpose-current{margin:.75rem 0 0}.actions{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;margin:1rem 0}.row-actions{display:flex;flex-wrap:wrap;gap:.5rem}.notice-warning{border-left:4px solid #b54708;background:#fffaeb}.notice-error{border-left:4px solid #b42318;background:#fef3f2}.badge-merged{background:#f2f4f7;color:#344054}.contact-fields{display:flex;flex-direction:column;gap:var(--space-3);max-width:var(--measure-field)}.field-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:var(--space-3)}.badge-denied{background:#fee4e2;color:#912018}.audit-detail td{background:#f8fafc}.audit-detail .actions{margin:var(--space-3) 0 0}.audit-detail code{font-size:var(--text-small);word-break:break-all}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media (max-width: 60rem){.page{padding:var(--space-4) var(--space-4) var(--space-5);gap:var(--space-4)}.page h1{font-size:1.5rem}.filters .field,.filters .field:last-of-type{flex:1 1 100%}.filters button{width:100%}}@media (max-width: 40rem){.page{padding:var(--space-4) var(--space-3) var(--space-5)}.page-header{flex-direction:column;align-items:stretch}.page-header .button-primary{width:100%}.panel{padding:var(--space-4)}.status dl>div{flex-direction:column;align-items:flex-start;gap:var(--space-1)}.status dd{text-align:left}.details{grid-template-columns:1fr;gap:var(--space-1) 0}.form-actions button,.form-actions .button-primary{width:100%}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}.plain-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--space-3)}.tabs{display:flex;gap:var(--space-2);border-bottom:1px solid var(--border);margin-bottom:var(--space-4)}.tabs [role=tab]{background:none;border:0;border-bottom:2px solid transparent;border-radius:0;padding:var(--space-2) var(--space-3);color:var(--muted);font-weight:500}.tabs [role=tab][aria-selected=true]{color:var(--text);border-bottom-color:currentColor}.chart-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(18rem,1fr));gap:var(--space-4)}.chart-card h2{font-size:var(--text-body);margin:0}.chart-entries{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--space-2)}.chart-entries>li{padding:var(--space-2) 0;border-top:1px solid var(--border)}.entry-title{font-weight:600}.entry-more summary{cursor:pointer;color:var(--muted);font-size:.8125rem}.inline-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--space-2);margin-top:var(--space-2)}.chart-add-form{margin-bottom:var(--space-3)}.concept-options{list-style:none;margin:var(--space-1) 0 0;padding:0;border:1px solid var(--border);border-radius:.375rem;max-height:16rem;overflow-y:auto}.concept-option{display:block;width:100%;text-align:left;background:var(--surface);border:0;border-bottom:1px solid var(--border);border-radius:0;padding:var(--space-2) var(--space-3);font-weight:400}.concept-chosen{margin:0}.field-label{font-weight:500}.badge-note-draft{background:#fef3c7;color:#92400e}.badge-note-final{background:#dcfce7;color:#166534}.badge-note-amended{background:#e0e7ff;color:#3730a3}.badge-note-entered_in_error{background:#e2e8f0;color:#334155;text-decoration:line-through}.badge-suggested{background:#ede9fe;color:#5b21b6;margin-left:.5rem}.badge-caution{background:#fef3c7;color:#92400e;margin-right:.25rem}.statement-quality{display:inline}.note{border-top:1px solid #e2e8f0;padding-top:.75rem;margin-top:.75rem}.note-header{display:flex;align-items:center;gap:.5rem}.note-header h3{margin:0}.note-text{white-space:pre-wrap}.suggestion{border-left:3px dashed #a78bfa;padding-left:.75rem;margin-top:.75rem;background:#a78bfa0f}.badge-ai{background:#f5f3ff;color:#5b21b6;border:1px dashed #a78bfa}.badge-merged{background:#fff7ed;color:#9a3412}.suggestion-not-record{margin:.25rem 0 0;font-style:italic}.provenance{display:block;margin-top:.125rem;font-size:var(--text-tiny);color:var(--muted)}.provenance-origin{font-weight:500}.provenance-not-current{color:var(--warn-text)}.badge-origin-clinician{background:#e2e8f0;color:#1e293b}.badge-origin-imported{background:#e0f2fe;color:#075985}.badge-origin-ai{background:#f5f3ff;color:#5b21b6;border:1px dashed #a78bfa}.entry-history{margin-top:var(--space-2)}.entry-history ul{list-style:none;padding:0;margin:var(--space-1) 0 0}.entry-history li{border-top:1px solid var(--border);padding:var(--space-1) 0}.entry-not-current .entry-title{text-decoration:line-through;color:var(--muted)}.suggested-items{list-style:none;padding:0}.suggested-item{border-top:1px dashed #ddd6fe;padding:.5rem 0}.suggested-item button[aria-pressed=true]{outline:2px solid #5b21b6}.badge-muted{background:#e2e8f0;color:#334155;margin-left:.25rem}.badge-attention{background:#fef3c7;color:#78350f}.workflow-nav{position:sticky;top:0;z-index:1;background:var(--surface, #fff);padding:.5rem 0}.workflow-steps{display:flex;flex-wrap:wrap;gap:.5rem 1rem;list-style:none;margin:0;padding:0}.workflow-step button{background:none;border:none;padding:0;font-weight:600;cursor:pointer;color:inherit}.workflow-step button[aria-current=step]{text-decoration:underline}.workflow-panel{margin-top:1.5rem;scroll-margin-top:4rem}.workflow-step-heading{font-size:1.125rem;border-bottom:1px solid #e2e8f0;padding-bottom:.25rem}.workflow-checklist{list-style:none;padding:0}.print-watermark{font-weight:700;color:#92400e;border:1px dashed #92400e;padding:.25rem .5rem}@media print{body *{visibility:hidden}.print-area,.print-area *{visibility:visible}.print-area{position:absolute;inset:0 auto auto 0;width:100%}.print-area:before{content:"[SYNTHETIC] — staff use — not a patient record release";position:fixed;top:45%;left:0;right:0;text-align:center;font-size:2rem;color:#92400e26;transform:rotate(-30deg);pointer-events:none}.print-watermark-foot{position:fixed;bottom:0;left:0;right:0}}
