:root{--font-core: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;--weight-regular: 400;--weight-medium: 500;--weight-semibold: 600;--weight-bold: 700;--text-display-2: 2.25rem;--text-h1: 1.75rem;--text-h2: 1.375rem;--text-h3: 1.125rem;--text-h4: 1rem;--text-body-lg: 1.0625rem;--text-body: .9375rem;--text-body-sm: .8125rem;--text-caption: .75rem;--text-micro: .6875rem;--leading-tight: 1.2;--leading-snug: 1.35;--leading-heading: 1.25;--leading-body: 1.5;--tracking-display: -.02em;--tracking-heading: -.01em;--tracking-eyebrow: .08em;--tracking-mono: -.01em;--color-drive: #2B313A;--color-files: #13328C;--color-transfer: #1F4FE0;--color-meridian: #1E4FD9;--color-vantage: #059669;--color-mail: #4F46E5;--color-eidos: #7C3AED;--color-corporate: #B23A48;--color-amber: #D97706;--brand-primary: #1C2128;--brand-accent: #B23A48;--surface-page: #FBFBFA;--surface-card: #FFFFFF;--surface-sunken: #F2F1ED;--surface-hover: #F4F3F0;--surface-inverse: #1C2128;--surface-raised: #FFFFFF;--surface-selected: #EBF1F5;--text-heading: #1C2128;--text-body: #1C2128;--text-muted: #51616F;--text-faint: #8A97A2;--text-inverse: #FFFFFF;--text-inverse-muted: #CBD5E1;--text-accent: #B23A48;--text-link: #1F4FE0;--text-link-hover: #1740C4;--border-subtle: #E8EBEF;--border-default: #D7DCE0;--border-strong: #A9B4BE;--border-inverse: #2E3F50;--border-focus: #1C2128;--status-ok-fg: #0F8A5F;--status-ok-bg: #EAF7F1;--status-caution-fg: #B26B00;--status-caution-bg: #FDF4E7;--status-alert-fg: #D0342C;--status-alert-bg: #FDF0EF;--status-info-fg: #1F4FE0;--status-info-bg: #F2F5FE;--status-neutral-fg: #5B6270;--status-neutral-bg: #F0F2F5;--grid-line: rgba(16, 35, 58, .06);--space-2: .125rem;--space-3: .25rem;--space-4: .5rem;--space-5: .75rem;--space-6: 1rem;--space-7: 1.25rem;--space-8: 1.5rem;--space-9: 2rem;--space-10: 2.5rem;--space-11: 3rem;--space-12: 4rem;--space-13: 5rem;--space-14: 6rem;--container-max: 1200px;--gutter: 1.5rem;--radius-tag: 4px;--radius-panel: 8px;--radius-card: 12px;--radius-pill: 9999px;--shadow-xs: 0 1px 2px rgba(16, 35, 58, .05);--shadow-dropdown: 0 10px 25px -5px rgba(16, 35, 58, .1), 0 8px 10px -6px rgba(16, 35, 58, .05);--dur-fast: .15s;--ease-standard: cubic-bezier(.2, 0, 0, 1);--transition-control: all .15s cubic-bezier(.2, 0, 0, 1);--provenance-bg: #F4F3F0;--provenance-fg: #51616F;--provenance-border: #E2E0D8;--provenance-icon-size: 14px;--policy-writeback-bg: #EEF6F4;--policy-writeback-fg: #1A6354;--policy-writeback-border: #C8E5DF;--policy-readonly-bg: #F0F2F4;--policy-readonly-fg: #51616F;--policy-readonly-border: #D7DCE0;--app-switcher-surface: #FFFFFF;--app-switcher-shadow: 0 12px 32px rgba(16, 35, 58, .12);--app-switcher-item-hover: #F6F7F9;--app-switcher-icon-container: 44px}:where(*:not(.xs-mount>*)){box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font-core);font-size:var(--text-body);line-height:var(--leading-body);color:var(--text-body);background:var(--surface-page);min-height:100vh;display:flex;flex-direction:column;-webkit-font-smoothing:antialiased}:focus-visible{outline:2px solid var(--border-focus);outline-offset:2px}.shell-header{height:60px;background:var(--surface-card);border-bottom:1px solid var(--border-subtle);display:flex;align-items:center;justify-content:space-between;padding:0 var(--space-6);position:sticky;top:0;z-index:50}.shell-header-left{display:flex;align-items:center;gap:var(--space-6)}.brand-logo{display:flex;align-items:center;gap:var(--space-3);text-decoration:none;color:var(--brand-primary);font-weight:var(--weight-bold);font-size:1.125rem;letter-spacing:.06em}.brand-glyph{width:24px;height:24px;background:var(--brand-primary);color:#fff;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-tag);font-weight:800;font-size:14px}.tenant-badge{font-size:var(--text-caption);color:var(--text-muted);background:var(--surface-sunken);padding:3px 8px;border-radius:var(--radius-tag);font-weight:var(--weight-medium)}.shell-search-bar{flex:1;max-width:580px;margin:0 var(--space-8);position:relative}.search-input-wrapper{display:flex;align-items:center;background:var(--surface-sunken);border:1px solid transparent;border-radius:var(--radius-card);padding:0 var(--space-5);height:42px;transition:var(--transition-control)}.search-input-wrapper:focus-within{background:var(--surface-card);border-color:var(--border-strong);box-shadow:0 1px 3px #10233a14}.search-input{border:none;background:transparent;width:100%;font-size:var(--text-body);color:var(--text-body);outline:none;margin-left:var(--space-4)}.search-shortcut-hint{font-size:var(--text-micro);background:var(--surface-card);border:1px solid var(--border-subtle);padding:2px 6px;border-radius:4px;color:var(--text-muted)}.shell-header-right{display:flex;align-items:center;gap:var(--space-4)}.icon-button{width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:50%;border:none;background:transparent;cursor:pointer;color:var(--text-muted);transition:var(--transition-control)}.icon-button:hover{background:var(--surface-hover);color:var(--brand-primary)}.app-switcher-menu{position:absolute;top:64px;right:60px;width:320px;background:var(--app-switcher-surface);border-radius:var(--radius-card);box-shadow:var(--app-switcher-shadow);border:1px solid var(--border-subtle);padding:var(--space-5);display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-4);z-index:100}.app-switcher-item{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--space-4) var(--space-2);border-radius:var(--radius-panel);text-decoration:none;color:var(--text-body);transition:var(--transition-control)}.app-switcher-item:hover{background:var(--app-switcher-item-hover)}.app-switcher-icon{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;color:#fff;margin-bottom:var(--space-2)}.app-switcher-name{font-size:var(--text-caption);font-weight:var(--weight-medium)}.workspace-layout{display:flex;flex:1;overflow:hidden}.workspace-sidebar{width:260px;background:var(--surface-card);border-right:1px solid var(--border-subtle);padding:var(--space-6);display:flex;flex-direction:column;gap:var(--space-6);flex-shrink:0}.nav-section-title{font-size:var(--text-micro);font-weight:var(--weight-bold);letter-spacing:var(--tracking-eyebrow);color:var(--text-faint);text-transform:uppercase;margin-bottom:var(--space-3)}.nav-item{display:flex;align-items:center;justify-content:space-between;padding:var(--space-3) var(--space-4);border-radius:var(--radius-panel);text-decoration:none;color:var(--text-muted);font-size:var(--text-body-sm);transition:var(--transition-control)}.nav-item:hover{background:var(--surface-hover);color:var(--brand-primary)}.nav-item.active{background:var(--surface-selected);color:var(--brand-primary);font-weight:var(--weight-medium)}.workspace-canvas{flex:1;overflow-y:auto;padding:var(--space-10) var(--space-12);display:flex;justify-content:center}.document-sheet{max-width:860px;width:100%;background:var(--surface-card);border-radius:var(--radius-card);padding:var(--space-10);box-shadow:var(--shadow-xs);border:1px solid var(--border-subtle)}.document-header{border-bottom:1px solid var(--border-subtle);padding-bottom:var(--space-6);margin-bottom:var(--space-8)}.document-title{font-size:var(--text-display-2);font-weight:var(--weight-bold);color:var(--text-heading);line-height:var(--leading-tight);margin-bottom:var(--space-3)}.document-meta-bar{display:flex;align-items:center;gap:var(--space-4);flex-wrap:wrap}.provenance-badge{display:inline-flex;align-items:center;gap:var(--space-2);background:var(--provenance-bg);color:var(--provenance-fg);border:1px solid var(--provenance-border);padding:2px 8px;border-radius:var(--radius-tag);font-size:var(--text-caption);font-weight:var(--weight-medium)}.policy-badge{display:inline-flex;align-items:center;gap:var(--space-2);padding:2px 8px;border-radius:var(--radius-tag);font-size:var(--text-caption);font-weight:var(--weight-medium)}.policy-badge.writeback{background:var(--policy-writeback-bg);color:var(--policy-writeback-fg);border:1px solid var(--policy-writeback-border)}.policy-badge.readonly{background:var(--policy-readonly-bg);color:var(--policy-readonly-fg);border:1px solid var(--policy-readonly-border)}.projected-card{margin:var(--space-6) 0;border:1px solid var(--border-default);border-radius:var(--radius-panel);background:var(--surface-card);overflow:hidden}.projected-card-header{background:var(--surface-sunken);padding:var(--space-3) var(--space-5);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border-subtle);font-size:var(--text-body-sm);font-weight:var(--weight-semibold)}.projected-table{width:100%;border-collapse:collapse;font-size:var(--text-body-sm)}.projected-table th,.projected-table td{padding:var(--space-3) var(--space-5);border-bottom:1px solid var(--border-subtle);text-align:left}.projected-table th{background:var(--surface-hover);color:var(--text-muted);font-weight:var(--weight-semibold)}.relation-chip-list{display:flex;gap:var(--space-2);flex-wrap:wrap;margin-top:var(--space-4)}.relation-chip{display:inline-flex;align-items:center;gap:var(--space-2);padding:3px 10px;border-radius:var(--radius-pill);background:var(--surface-sunken);border:1px solid var(--border-subtle);font-size:var(--text-caption);color:var(--text-body);text-decoration:none;transition:var(--transition-control)}.relation-chip:hover{border-color:var(--border-strong);background:var(--surface-hover)}:root{--shell-role-owner: light-dark(#6b3fd4, #b79cff);--shell-role-owner-bg: light-dark(#f2edff, #2a2140);--shell-role-admin: light-dark(#0b6b57, #6fd6bd);--shell-role-admin-bg: light-dark(#e6f6f1, #13302a);--shell-role-member: light-dark(#3c4a5c, #b9c3d1);--shell-role-member-bg: light-dark(#eef1f5, #1f2533)}.xs-mount>*{flex:1 0 auto}.shell-page{flex:1;min-height:0;overflow:auto;background:var(--xtnd-surface);color:var(--xtnd-text);font-family:var(--xtnd-font)}.shell-page__inner{max-inline-size:960px;margin-inline:auto;padding:var(--xtnd-space-8) var(--xtnd-space-6) var(--xtnd-space-8)}.shell-eyebrow{font-size:.6875rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--xtnd-text-muted)}.shell-title{font-size:1.5rem;font-weight:700;letter-spacing:-.01em;line-height:1.25;color:var(--xtnd-text)}.shell-lead{color:var(--xtnd-text-muted);font-size:.9375rem;line-height:1.5}.shell-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--xtnd-space-2);block-size:var(--xtnd-control-height);padding-inline:var(--xtnd-space-4);border-radius:var(--xtnd-radius-sm);border:1px solid var(--xtnd-border);background:var(--xtnd-surface-raised);color:var(--xtnd-text);font:inherit;font-size:.875rem;font-weight:600;white-space:nowrap;cursor:pointer;text-decoration:none;transition:background-color .15s var(--xtnd-ease),border-color .15s var(--xtnd-ease),color .15s var(--xtnd-ease)}.shell-btn:hover{border-color:var(--xtnd-text-muted)}.shell-btn:focus-visible,.shell-link:focus-visible,.shell-tab:focus-visible,.shell-menu button:focus-visible{outline:3px solid var(--xtnd-focus);outline-offset:2px}.shell-btn:disabled{opacity:.55;cursor:not-allowed}.shell-btn--primary{background:var(--xtnd-accent);border-color:var(--xtnd-accent);color:var(--xtnd-accent-text)}.shell-btn--primary:hover{border-color:var(--xtnd-accent);filter:brightness(1.08)}.shell-btn--ghost{background:transparent;border-color:transparent;color:var(--xtnd-text-muted)}.shell-btn--ghost:hover{background:var(--xtnd-surface);border-color:var(--xtnd-border);color:var(--xtnd-text)}.shell-btn--danger{background:var(--xtnd-danger);border-color:var(--xtnd-danger);color:light-dark(#ffffff,#0b0d12)}.shell-btn--small{block-size:30px;padding-inline:var(--xtnd-space-3);font-size:.8125rem}.shell-link{color:var(--xtnd-accent);text-decoration:none;font-weight:600}.shell-link:hover{text-decoration:underline}.role-badge{display:inline-flex;align-items:center;gap:var(--xtnd-space-1);padding:2px 10px;border-radius:999px;font-size:.75rem;font-weight:700;letter-spacing:.01em;color:var(--shell-role-member);background:var(--shell-role-member-bg);white-space:nowrap}.role-badge[data-role=owner]{color:var(--shell-role-owner);background:var(--shell-role-owner-bg)}.role-badge[data-role=admin]{color:var(--shell-role-admin);background:var(--shell-role-admin-bg)}.role-via{font-size:.8125rem;color:var(--xtnd-text-muted)}.shell-notice,.shell-problem{padding:var(--xtnd-space-3) var(--xtnd-space-4);border-radius:var(--xtnd-radius-sm);font-size:.875rem;line-height:1.45;border:1px solid var(--xtnd-border);background:var(--xtnd-surface-raised);overflow-wrap:anywhere}.shell-notice{border-inline-start:4px solid var(--xtnd-success)}.shell-problem{border-inline-start:4px solid var(--xtnd-danger)}.shell-status{display:flex;align-items:center;gap:var(--xtnd-space-3);padding:var(--xtnd-space-6) 0;color:var(--xtnd-text-muted)}.shell-empty{padding:var(--xtnd-space-8) var(--xtnd-space-6);border:1px dashed var(--xtnd-border);border-radius:var(--xtnd-radius);text-align:center;color:var(--xtnd-text-muted);background:var(--xtnd-surface-raised)}.shell-empty strong{display:block;color:var(--xtnd-text);margin-block-end:var(--xtnd-space-2)}.shell-field{display:grid;gap:var(--xtnd-space-2);font-size:.875rem;font-weight:600;color:var(--xtnd-text)}.shell-field small{font-weight:400;color:var(--xtnd-text-muted)}.shell-input,.shell-select,.shell-textarea{font:inherit;font-size:.9375rem;font-weight:400;color:var(--xtnd-text);background:var(--xtnd-bg);border:1px solid var(--xtnd-border);border-radius:var(--xtnd-radius-sm);padding:var(--xtnd-space-2) var(--xtnd-space-3);min-block-size:var(--xtnd-control-height);inline-size:100%}.shell-textarea{resize:vertical;min-block-size:96px;line-height:1.45}.shell-input:focus-visible,.shell-select:focus-visible,.shell-textarea:focus-visible{outline:3px solid var(--xtnd-focus);outline-offset:1px;border-color:var(--xtnd-accent)}.shell-dialog{inline-size:min(520px,calc(100vw - 32px));max-block-size:calc(100dvh - 48px);margin:auto;padding:0;border:1px solid var(--xtnd-border);border-radius:var(--xtnd-radius-lg);background:var(--xtnd-surface-raised);color:var(--xtnd-text);box-shadow:var(--xtnd-shadow);font-family:var(--xtnd-font)}.shell-dialog::backdrop{background:var(--xtnd-shade)}.shell-dialog[open]{animation:shell-dialog-in .18s var(--xtnd-ease)}@keyframes shell-dialog-in{0%{opacity:0;transform:translateY(6px) scale(.99)}}.shell-dialog__body{display:grid;gap:var(--xtnd-space-4);padding:var(--xtnd-space-6)}.shell-dialog__title{font-size:1.125rem;font-weight:700}.shell-dialog__actions{display:flex;justify-content:flex-end;gap:var(--xtnd-space-2);flex-wrap:wrap}.shell-menu{margin:0;padding:var(--xtnd-space-1);min-inline-size:240px;border:1px solid var(--xtnd-border);border-radius:var(--xtnd-radius);background:var(--xtnd-surface-raised);color:var(--xtnd-text);box-shadow:var(--xtnd-shadow);font-family:var(--xtnd-font)}.shell-menu:popover-open{display:grid;gap:2px}@supports (anchor-name: --a){.shell-menu[popover]{position:fixed;inset:auto;margin-block-start:var(--xtnd-space-1);position-area:block-end span-inline-start;position-try-fallbacks:flip-block,flip-inline}}.shell-menu button{display:grid;gap:2px;text-align:start;padding:var(--xtnd-space-2) var(--xtnd-space-3);border:0;border-radius:var(--xtnd-radius-sm);background:transparent;color:inherit;font:inherit;font-size:.875rem;font-weight:600;cursor:pointer}.shell-menu button small{font-weight:400;font-size:.75rem;color:var(--xtnd-text-muted)}.shell-menu button:hover,.shell-menu button:focus-visible{background:var(--xtnd-surface)}.shell-menu button[aria-checked=true]:after{content:"Current";justify-self:start;font-size:.6875rem;font-weight:700;color:var(--xtnd-accent)}.shell-menu hr{border:0;border-block-start:1px solid var(--xtnd-border);margin:var(--xtnd-space-1) 0}.shell-menu .shell-menu__danger{color:var(--xtnd-danger)}::view-transition-old(root),::view-transition-new(root){animation-duration:.2s}.shell-section-area{view-transition-name:shell-section}::view-transition-old(shell-section){animation:.16s var(--xtnd-ease) both shell-fade-out}::view-transition-new(shell-section){animation:.22s var(--xtnd-ease) both shell-fade-in}@keyframes shell-fade-out{to{opacity:0;transform:translate(-8px)}}@keyframes shell-fade-in{0%{opacity:0;transform:translate(8px)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}.visually-hidden{position:absolute!important;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}:where(*:not(.xs-mount>*)),*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body{height:100%;font-family:var(--font-core);background-color:var(--surface-canvas);color:var(--text-primary);overflow:hidden}a{color:inherit;text-decoration:none}
