:root{--rail:224px;--header:76px;background:var(--paper);scrollbar-color:#c3c6bd transparent;scrollbar-width:thin}
*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit;color:inherit}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}a{color:inherit;text-underline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #667755;outline-offset:3px}::selection{background:#dfe6d5;color:#20211f}input,textarea{caret-color:var(--ink)}[hidden]{display:none!important}
svg.icon{width:19px;height:19px;stroke:currentColor;stroke-width:1.65;fill:none;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex-shrink:0}h1,h2,h3,p{margin-top:0}h1,h2,h3{text-wrap:balance}h1{font-size:23px;font-weight:600;letter-spacing:-.025em;margin:0}h2{font-size:24px;line-height:1.4;letter-spacing:-.025em;margin-bottom:12px;font-weight:600}h3{font-size:15px;margin-bottom:7px;font-weight:600}p{margin-bottom:12px}small,.muted{color:var(--muted)}small{font-size:12px}
input,textarea,select{border:1px solid #d8dad2;background:var(--surface);border-radius:var(--radius);padding:10px 12px;min-height:44px;max-width:100%;transition:border-color .16s}input:hover,textarea:hover,select:hover{border-color:#a9aea1}textarea{resize:vertical;line-height:1.8}input[type=checkbox]{width:17px;height:17px;min-height:0;padding:0;accent-color:var(--ink)}input[type=search]{appearance:none}label{display:block}
.client-shell{min-height:100svh;display:grid;grid-template-columns:var(--rail) minmax(0,1fr);padding:8px 8px 8px 0}.sidebar{position:sticky;top:8px;height:calc(100svh - 16px);display:flex;flex-direction:column;padding:24px 14px 12px;overflow-y:auto}.client-brand{border:0;background:transparent;color:inherit;text-align:left;display:flex;align-items:center;gap:9px;font-family:ContextBrand,sans-serif;font-size:22px;font-weight:700;letter-spacing:-.04em;text-decoration:none;padding:0 16px;margin-bottom:36px}.client-brand img{display:block;width:27px;height:27px}.nav-item{width:100%;display:flex;align-items:center;gap:11px;border:0;border-radius:var(--radius);padding:10px 13px;background:transparent;min-height:42px;text-align:left;font-size:14px;margin:3px 0;color:var(--muted);transition:background .16s,color .16s}.nav-item:hover:not(:disabled){background:#eceee7;color:var(--ink)}.nav-item.active{background:#e5e8df;color:var(--ink);font-weight:600}.nav-count{margin-left:auto;font-size:12px;font-variant-numeric:tabular-nums}.sidebar-bottom{margin-top:auto;padding-top:36px}.account-row{display:flex;align-items:center;gap:9px;padding:18px 9px 10px;margin-top:14px;border-top:1px solid var(--line)}.account-copy{min-width:0;flex:1}.account-copy small{display:block;font-size:11px;margin-top:1px}.account-row #account-label{display:block;font-size:13px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.avatar{width:32px;height:32px;display:grid;place-items:center;background:#e4e7dd;font-size:13px;font-weight:600;border-radius:9px;flex:none}.mobile-settings{display:none}.main-column{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:clip}.workspace-header{position:sticky;top:8px;z-index:5;background:var(--surface);height:var(--header);display:flex;align-items:center;justify-content:space-between;padding:0 32px;border-bottom:1px solid var(--line);gap:16px}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.button{display:inline-flex;gap:7px;align-items:center;justify-content:center;border:1px solid #daddd4;background:var(--surface);border-radius:var(--radius);padding:8px 14px;min-height:38px;text-decoration:none;line-height:1.4;font-size:13px;font-weight:500;transition:background .16s,border-color .16s,color .16s}.button:hover:not(:disabled){background:#f2f3ef;border-color:#c6cbbf}.button.primary{background:var(--ink);border-color:var(--ink);color:#fff}.button.primary:hover:not(:disabled){background:#41443b;border-color:#41443b}.button:active:not(:disabled){transform:translateY(1px)}.button.quiet{border-color:transparent;background:transparent}.button.quiet:hover:not(:disabled){background:var(--paper);border-color:transparent}.button.danger{color:var(--error)}.button.text{padding-inline:0;border:0;background:transparent;text-decoration:underline;text-underline-offset:4px}.icon-button{display:grid;place-items:center;padding:8px;width:36px;height:36px;border:0;border-radius:7px;background:transparent;flex:none}.icon-button:hover{background:#e9ece3}.global-notice{margin:18px 32px 0;font-size:13px;display:flex;justify-content:space-between;align-items:center;gap:20px;border:1px solid var(--line);border-radius:var(--radius);padding:10px 14px;background:#f7f8f4}.global-notice.error{color:var(--error);border-color:#e6c7c1;background:#fffaf8}.global-notice .icon-button{color:inherit}#workspace{outline:none;min-height:calc(100svh - var(--header) - 18px)}
.center-state{min-height:calc(100svh - var(--header) - 40px);padding:48px 28px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.center-state>p{max-width:380px;color:var(--muted);line-height:1.8}.center-state h2{font-size:24px;margin-top:20px}.center-state .state-icon{display:inline-flex;justify-content:center;align-items:center;width:52px;height:52px;color:#707961;background:var(--paper);border-radius:12px}.center-state .state-icon svg{width:25px;height:25px;stroke-width:1.5}.loading-mark{width:26px;height:26px;border:2px solid #e1e5da;border-top-color:#626f52;border-radius:50%;animation:loading .8s linear infinite}@keyframes loading{to{transform:rotate(360deg)}}
.welcome-state{display:grid;grid-template-columns:minmax(240px,1fr) minmax(280px,370px);gap:40px;align-items:center;max-width:960px;margin:auto;text-align:left;padding:60px 48px}.welcome-art{width:100%;aspect-ratio:1.25;display:block}.enrollment{width:100%;max-width:400px;margin:0 auto}.welcome-state .enrollment{max-width:none}.enrollment h2{margin-top:0;font-size:27px;letter-spacing:-.03em}.enrollment>.muted{line-height:1.8}.enrollment>.button.primary{min-height:44px;padding-inline:22px}.enrollment .state-icon{margin-bottom:20px}.verification-code{font-family:ui-monospace,SFMono-Regular,monospace;font-size:25px;letter-spacing:.05em;font-variant-numeric:tabular-nums;padding:18px 20px;margin:24px 0;background:var(--paper);border:1px solid var(--line);border-radius:8px}.setup-choice{display:flex;gap:10px;align-items:start;margin:24px 0;text-align:left;font-size:14px}.setup-choice input{flex:none;margin-top:3px}.setup-choice small{display:block;margin-top:5px;line-height:1.7}.recovery-secret{display:block;white-space:pre-wrap;overflow-wrap:anywhere;padding:20px;background:var(--paper);border:1px solid var(--line);border-radius:8px;font-family:ui-monospace,monospace;font-size:14px;line-height:1.9;text-align:left;max-width:100%;user-select:all;margin:20px 0}.secret-input{width:100%;margin:12px 0 20px}
.library-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 32px 0;min-height:73px}.filters{display:flex;gap:24px;overflow-x:auto;scrollbar-width:none;align-self:stretch}.filter{position:relative;border:0;border-bottom:2px solid transparent;background:transparent;white-space:nowrap;padding:10px 1px 18px;color:var(--muted);min-height:44px;font-size:13px}.filter:hover{color:var(--ink)}.filter.active{color:var(--ink);border-bottom-color:var(--ink);font-weight:600}.filter:focus-visible{outline-offset:-2px}.search-field{position:relative;min-width:170px;width:240px;margin-bottom:16px}.search-field input{width:100%;padding-left:35px;min-height:36px;font-size:13px;border-color:var(--line);background:#fafaf8}.search-field>.icon{position:absolute;left:11px;top:10px;width:16px;height:16px;color:var(--muted)}.library-layout{display:grid;grid-template-columns:316px minmax(0,1fr);border-top:1px solid var(--line);min-height:calc(100svh - 168px)}.record-list{border-right:1px solid var(--line);padding:0 8px 32px;max-height:calc(100svh - 168px);overflow:auto}.list-summary{padding:17px 16px 10px;color:var(--muted);font-size:12px}.record-row{display:block;width:100%;border:0;border-radius:8px;background:transparent;padding:17px 16px;text-align:left;margin-bottom:3px;transition:background .14s}.record-row:hover{background:#f7f8f4}.record-row.selected{background:#edf0e8}.record-row h3{font-size:14px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0 0 6px}.record-row.selected h3{font-weight:600}.record-row p{font-size:12px;color:var(--muted);line-height:1.7;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;margin:0 0 12px;word-break:break-word}.record-meta{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}.record-meta time{margin-left:auto}.record-meta .icon{width:12px;height:12px}.record-detail{padding:30px 40px 64px;min-width:0;max-height:calc(100svh - 168px);overflow:auto}.detail-empty{min-height:420px;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.detail-empty .context-art{display:block;width:min(320px,100%);aspect-ratio:1.4;margin-bottom:8px}.detail-empty h2{font-size:18px;margin-bottom:8px}.detail-empty p{font-size:13px;color:var(--muted);max-width:280px}.detail-empty .icon{width:28px;height:28px;margin:0 auto 16px;stroke-width:1.2}.detail-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:28px}.detail-kinds{display:flex;flex-wrap:wrap;gap:12px;color:var(--muted);font-size:12px}.detail-kinds>span+span{border-left:1px solid var(--line);padding-left:12px}.detail-title{font-size:26px;line-height:1.45;font-weight:600;letter-spacing:-.025em;margin:0 0 26px;overflow-wrap:anywhere}.record-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.95;max-width:72ch;margin-bottom:36px}.record-fields{margin:0 0 32px;max-width:72ch}.record-fields>div{display:grid;grid-template-columns:130px 1fr;padding:13px 0;border-top:1px solid var(--line);gap:16px}.record-fields dt{color:var(--muted);font-size:12px}.record-fields dd{margin:0;overflow-wrap:anywhere}.detail-footer{border-top:1px solid var(--line);padding-top:18px;display:flex;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:12px}.detail-footer>span{overflow-wrap:anywhere}.source-evidence{margin:28px 0;max-width:72ch}.source-evidence summary{cursor:pointer;font-size:13px;color:var(--muted);min-height:36px}.source-evidence blockquote{margin:12px 0;padding:0 0 0 16px;border-left:1px solid #c5cabe;color:#5e6556;font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.mobile-back{display:none}
.full-page{padding:40px 40px 64px;max-width:1080px;margin:0 auto}.full-page.narrow{max-width:880px}.page-intro{margin-bottom:32px}.page-intro h2{font-size:25px;margin-bottom:8px}.page-intro p{color:var(--muted);font-size:14px;margin:0;max-width:54ch}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 18px}.section-heading h2{font-size:18px;margin:0}.section-heading>.muted{font-size:12px}.empty-list-art{display:none!important}.empty-inline{padding:36px 16px;text-align:center;color:var(--muted);font-size:13px}.empty-illustrated{padding:26px 24px 36px;display:flex;flex-direction:column;align-items:center;border-block:1px solid var(--line)}.empty-illustrated .context-art{width:180px;aspect-ratio:1.6;display:block}.empty-illustrated p{margin:0;font-size:13px;color:var(--muted)}
.add-control{position:relative;flex:none}.add-menu{position:absolute;top:calc(100% + 10px);right:0;width:220px;max-width:calc(100vw - 40px);padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 32px #20211f12}.add-option{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:10px 12px;text-align:left;background:transparent;border:0;border-radius:6px;font-size:14px}.add-option:hover:not(:disabled),.add-option:focus-visible{background:var(--hover)}.add-option:focus-visible{outline-offset:-3px}.add-option .icon{color:var(--muted)}.add-divider{height:1px;margin:5px 8px;background:var(--line)}
.edit-form{max-width:820px;margin:0 auto;padding:36px 44px 28px}.edit-form .field{min-width:0;margin:0}.edit-form label{font-size:12px;color:var(--muted);margin-bottom:6px}.edit-form input:not([type=checkbox]),.edit-form textarea,.edit-form select{width:100%}.editor-writing{padding-bottom:26px;border-bottom:1px solid var(--line)}.editor-title{margin-bottom:26px!important}.edit-form .title-input{font-size:28px;font-weight:600;letter-spacing:-.025em;line-height:1.4;border:0;border-radius:0;padding:4px 0 8px;background:transparent}.editor-writing input:focus-visible,.editor-writing textarea:focus-visible{outline:none;box-shadow:inset 0 -2px 0 #667755}.edit-form textarea{min-height:240px;padding:6px 0;border:0;border-radius:0;background:transparent;font-size:16px;line-height:1.85}.edit-form .title-input::placeholder,.edit-form textarea::placeholder{color:var(--muted);opacity:1}.editor-properties{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:22px 0 12px}.editor-properties select{min-height:42px;padding:8px 10px;border:1px solid transparent;background:var(--paper)}.editor-properties select:hover{border-color:#d8dad2}.editor-properties .subject-name{grid-column:1/-1;max-width:360px}.level-note{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 20px}.editor-extra{border-top:1px solid var(--line)}.editor-extra>summary{display:flex;align-items:center;gap:12px;min-height:48px;cursor:pointer;list-style:none;font-size:13px}.editor-extra>summary::-webkit-details-marker{display:none}.editor-extra>summary::before{content:'';width:6px;height:6px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(-45deg);margin-left:2px}.editor-extra[open]>summary::before{transform:rotate(45deg)}.editor-extra>summary>span{margin-left:auto;color:var(--muted);font-size:12px}.editor-reference-fields{margin:0 0 20px}.edit-actions{position:sticky;bottom:0;z-index:4;display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:26px;padding:16px 0;background:var(--surface);border-top:1px solid var(--line)}.domain-field{border:0;padding:0;margin:4px 0 22px}.domain-field legend{font-size:12px;color:var(--muted);margin-bottom:12px}.domain-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}.domain-options label{display:flex;gap:8px;align-items:center;font-size:13px;margin:0;min-height:32px}

.access-section{margin-bottom:44px}.request-block{padding:24px;border:1px solid var(--line);border-radius:10px;margin-top:14px}.request-top{display:flex;align-items:start;justify-content:space-between;gap:18px;margin-bottom:20px}.request-top h3{font-size:16px}.request-top p{font-size:13px;color:var(--muted);margin:0}.request-top time{font-size:12px;color:var(--muted);white-space:nowrap}.check-record{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:11px 0;min-height:44px;border-top:1px solid var(--line)}.record-choice{display:flex;align-items:center;gap:12px;min-width:0;flex:1}.check-record span{flex:1;min-width:0;overflow-wrap:anywhere}.check-record small{margin-left:auto}.request-actions{margin-top:20px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.request-actions select{font-size:13px;min-height:38px}.session-scope-row{font-size:12px;color:var(--muted);display:flex;gap:8px;align-items:center;margin:16px 0 0}.grant-row,.activity-row,.setting-row,.device-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 0;border-bottom:1px solid var(--line)}.grant-row>div,.activity-row>div,.setting-row>div,.device-row>div{min-width:0}.grant-row h3,.setting-row h3,.device-row h3{margin-bottom:5px;font-weight:500;font-size:14px}.grant-row p,.setting-row p,.device-row p,.activity-row p{margin:0;font-size:12px;line-height:1.8;color:var(--muted);overflow-wrap:anywhere}.activity-row{align-items:start}.activity-row h3{font-weight:500;font-size:14px}.activity-row time{font-size:12px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}.settings-section{margin:0 0 38px}.settings-section>h2{font-size:16px;margin-bottom:2px;font-weight:600}.settings-section>.setting-row>.actions{justify-content:flex-end}.settings-section>.setting-row>.actions .button{white-space:nowrap}.device-row .device-icon{margin-right:12px;display:inline-flex;color:var(--muted)}.settings-note{font-size:12px;color:var(--muted);line-height:1.8;margin:14px 0 0}.pending-heading{margin-top:24px}.settings-identity{display:flex;gap:14px;align-items:center}.settings-identity>div,.device-heading>div{min-width:0}.settings-identity h3,.device-row h3,.grant-row h3,.request-top h3,.activity-row h3{overflow-wrap:anywhere}.device-row>small{flex:none}.settings-identity .avatar{width:42px;height:42px;font-size:16px}.device-heading{display:flex;align-items:center;gap:12px}.device-heading>.icon{width:20px;height:20px;color:var(--muted);flex:none}
.confirm-dialog{border:1px solid var(--line);border-radius:12px;padding:28px;max-width:420px;width:calc(100% - 40px);color:var(--ink);background:var(--surface)}.confirm-dialog::backdrop{background:#20211f42}.confirm-dialog h2{font-size:20px;overflow-wrap:anywhere}.confirm-dialog p{font-size:13px;color:var(--muted);line-height:1.8}.confirm-dialog .actions{justify-content:flex-end;margin-top:24px}.skip-link{position:fixed;top:12px;left:24px;transform:translateY(-200%);z-index:20;padding:10px 14px;background:var(--ink);color:#fff}.skip-link:focus{transform:none}.content-reveal{border:0;background:transparent;text-align:left;padding:4px 0;color:inherit;text-decoration:underline;text-underline-offset:4px}.block-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.source-view audio{width:100%;margin:20px 0}.source-view img{max-width:100%;height:auto;max-height:70svh;object-fit:contain}.source-view pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.8}.collection-page{max-width:1160px}
@media(min-width:1600px){:root{--rail:240px}.workspace-header,.library-toolbar{padding-inline:40px}.library-layout{grid-template-columns:350px minmax(0,1fr)}.record-detail{padding-inline:56px}}
@media(max-width:1150px){:root{--rail:196px}.sidebar{padding-inline:10px}.client-brand{padding-inline:12px;font-size:21px}.workspace-header{padding-inline:24px}.library-toolbar{padding-inline:24px;gap:18px}.filters{gap:17px}.search-field{width:205px;min-width:150px}.library-layout{grid-template-columns:280px minmax(0,1fr)}.record-detail{padding:28px}.full-page{padding-inline:28px}.welcome-state{gap:24px;padding-inline:28px}.global-notice{margin-inline:24px}}
@media(max-width:940px){#workspace:has(.library-layout.has-selection) .library-toolbar{display:none}.empty-library{min-height:420px;display:flex;flex-direction:column;align-items:center;justify-content:center}.empty-list-art{display:block!important;width:210px!important;aspect-ratio:1.5;margin-bottom:18px}.library-toolbar{flex-wrap:wrap;padding:18px 24px 0;gap:12px}.search-field{width:100%;order:-1;margin:0}.filters{width:100%;gap:24px}.filter{padding-bottom:12px}.library-layout{display:block;min-height:calc(100svh - 210px)}.record-list{border:0;max-height:none;padding-inline:12px}.record-row{border-bottom:1px solid var(--line);border-radius:0;padding:18px 12px}.record-detail{display:none;max-height:none;min-height:calc(100svh - 210px)}.library-layout.has-selection .record-list{display:none}.library-layout.has-selection .record-detail{display:block}.mobile-back{display:inline-flex}.welcome-state{display:flex;gap:16px;text-align:center;max-width:460px;padding-block:36px}.welcome-art{max-width:280px;aspect-ratio:1.7}.welcome-state .enrollment{max-width:370px}.full-page{padding-top:32px}}
@media(max-width:700px){:root{--header:68px}.client-shell{display:block;padding:0 0 calc(70px + env(safe-area-inset-bottom))}.sidebar{position:fixed;inset:auto 0 0;height:calc(66px + env(safe-area-inset-bottom));padding:0 8px env(safe-area-inset-bottom);background:#f5f5f2;border:0;border-top:1px solid var(--line);z-index:10;display:block}.client-brand,.sidebar-bottom,.sidebar #navigation>[data-view=activity]{display:none}#navigation{display:flex;justify-content:space-around;height:66px}.sidebar .nav-item{position:relative;width:auto;flex:1;flex-direction:column;gap:4px;padding:9px 6px 7px;font-size:11px;min-height:0;border-radius:0;margin:0}.sidebar .nav-item.active{background:transparent;color:#232b1c}.sidebar .nav-item.active .icon{stroke-width:2}.sidebar .nav-count{position:absolute;top:5px;right:24%;margin:0;font-size:10px}.mobile-settings{display:flex!important}.main-column{border:0;border-radius:0;min-height:calc(100svh - 66px)}.workspace-header{top:0;padding:0 20px}.workspace-header h1{font-size:22px}.workspace-header .button{padding:8px 10px;min-height:44px}.workspace-header .button .icon{width:16px;height:16px}.workspace-header .actions{gap:3px}.library-toolbar{padding:18px 20px 0}.filters{justify-content:space-between;gap:16px}.filter{font-size:13px;padding-block:8px 12px}.search-field input{font-size:16px;min-height:42px}.search-field>.icon{top:13px}.list-summary{padding:14px 8px 6px}.record-row{padding:18px 8px}.record-row h3{font-size:15px}.record-row p{font-size:13px}.record-meta{font-size:12px}.record-detail{padding:24px 20px 40px}.detail-top{margin-bottom:24px;flex-wrap:wrap}.detail-title{font-size:25px}.record-body{font-size:16px;line-height:1.9}.record-fields>div{grid-template-columns:90px 1fr}.center-state{min-height:calc(100svh - 155px);padding:32px 24px}.enrollment h2{font-size:25px}.welcome-state{gap:12px}.welcome-art{max-width:250px;aspect-ratio:1.8}.global-notice{margin:14px 16px 0}.full-page{padding:28px 20px 40px}.page-intro{margin-bottom:26px}.page-intro h2{font-size:23px}.edit-form{padding:28px 20px}.edit-form input:not([type=checkbox]),.edit-form textarea,.edit-form select,.secret-input{font-size:16px}.edit-form textarea{min-height:220px}.editor-properties{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.editor-properties>.field:nth-child(3){grid-column:1/-1}.edit-form input.title-input{font-size:25px}.edit-actions{bottom:calc(66px + env(safe-area-inset-bottom))}.edit-form:has(input:focus,textarea:focus,select:focus) .edit-actions{position:static}.edit-form input,.edit-form textarea,.edit-form select{scroll-margin-block:90px 150px}.editor-title{margin-bottom:22px!important}.editor-writing{padding-bottom:20px}.request-block{padding:18px 16px}.request-top{display:block}.request-top time{display:block;margin-top:8px}.activity-row{gap:14px}.activity-row time{font-size:11px}.setting-row,.device-row{gap:12px;align-items:flex-start}.setting-row:has(.actions){flex-wrap:wrap}.setting-row:has(.actions)>.actions{width:100%;justify-content:flex-start}.setting-row .button,.device-row .button{font-size:12px;flex:none;min-height:44px}.icon-button{width:44px;height:44px}.button{min-height:44px}.full-page .section-heading{align-items:start}.settings-section{margin-bottom:32px}.domain-options{gap:8px 12px}.domain-options label{font-size:12px;min-height:36px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important;transition:none!important}.button:active:not(:disabled){transform:none}.loading-mark{border-style:dotted}}

/* Source privacy is shared by the complete semantic unit. */
.privacy-badge{display:inline-flex;align-items:center;white-space:nowrap;font-size:11px;font-weight:600;line-height:1.5;padding:3px 7px;border-radius:5px;color:var(--privacy-neutral);background:color-mix(in srgb,var(--privacy-neutral) 9%,transparent)}.privacy-level-1{color:var(--privacy-personal);background:color-mix(in srgb,var(--privacy-personal) 9%,transparent)}.privacy-level-2{color:var(--privacy-sensitive);background:color-mix(in srgb,var(--privacy-sensitive) 9%,transparent)}.privacy-level-3{color:var(--privacy-private);background:color-mix(in srgb,var(--privacy-private) 9%,transparent)}.unit-privacy{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.unit-level-control{margin-left:auto}.unit-level-control select{min-height:36px;padding:6px 9px;font-size:12px}.approval-scope{font-size:13px;color:var(--muted);margin:16px 0}.memory-source-filters{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 16px}.memory-source-filters label{display:flex;gap:7px;align-items:center;font-size:12px;color:var(--muted)}.memory-source-filters select{max-width:220px;min-height:36px;padding:6px 9px;font-size:12px}

.memory-deletion-status{margin:18px 32px 0;padding:14px 16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);font-size:13px}.memory-deletion-status h3{font-size:13px;margin-bottom:6px}.memory-deletion-status .section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0}.memory-deletion-status p{margin-bottom:6px}.memory-deletion-status .muted{font-size:12px}.memory-deletion-status .button{flex-shrink:0}.memory-deletion-status [data-deletion-refresh]{font-size:12px;min-height:32px;padding-block:3px}@media(max-width:700px){.memory-deletion-status{margin:14px 16px 0;padding:12px 14px}.memory-deletion-status .section-heading{align-items:flex-start;flex-wrap:wrap}.memory-deletion-status [data-deletion-refresh]{min-height:44px}}

/* Foreground device authorization stays in one modal through completion. */
.device-request-trigger{margin-left:auto;white-space:nowrap}
.device-approval-dialog,.device-invitation-dialog{width:min(460px,calc(100vw - 32px));max-height:calc(100svh - 48px);overflow:auto;border:1px solid var(--line);border-radius:14px;padding:28px;background:var(--surface);color:var(--ink)}
.device-approval-dialog::backdrop,.device-invitation-dialog::backdrop{background:rgba(0,0,0,.28)}
.device-approval-content h2{font-size:21px;overflow-wrap:anywhere}.device-approval-content p{color:var(--muted);line-height:1.7}.device-approval-content .actions{flex-wrap:wrap;margin-top:24px}.device-approval-content [data-error]{color:var(--error)}
/* A defined footer keeps the primary action distinct without loose text links. */
.device-dialog-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.device-dialog-actions .button{min-height:38px;padding:8px 16px;border-radius:9px;line-height:1.4;font-size:13px;font-weight:500;white-space:nowrap}
.device-dialog-actions .button.quiet{border-color:var(--line);background:var(--surface);color:var(--muted)}
.device-dialog-actions .button.quiet:hover:not(:disabled){background:var(--paper);border-color:#c6cbbf;color:var(--ink)}
.device-dialog-actions .button.primary{min-width:108px;order:3}.device-dialog-actions [data-done]{order:2}
@media(max-width:600px){.device-dialog-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-top:18px}.device-dialog-actions .button{min-width:0;min-height:44px;width:100%;padding:10px 12px;font-size:14px}.device-dialog-actions .button.primary{order:2}.device-dialog-actions .button:only-child,.device-dialog-actions:not(:has(.button.primary:not([hidden]))) .button:not([hidden]){grid-column:1/-1}.device-dialog-actions [hidden]{display:none}}
.device-admission-code{display:block;font:600 36px ui-monospace,SFMono-Regular,monospace;letter-spacing:.2em;text-align:center;margin:24px 0;user-select:all}
#device-code-form{display:grid;gap:12px;margin:24px 0;text-align:left}#device-code-input{width:100%;font-size:26px;letter-spacing:.22em;text-align:center;font-variant-numeric:tabular-nums}#device-code-error{margin:0;color:var(--error);font-size:14px}
@media(max-width:600px){.device-approval-dialog,.device-invitation-dialog{padding:24px}.workspace-header:has(.device-request-trigger:not([hidden])){gap:10px;flex-wrap:wrap;height:auto;min-height:var(--header);padding-block:12px}.device-admission-code{font-size:32px}}

.device-invitation-qr{display:block;width:240px;max-width:100%;height:auto;shape-rendering:crispEdges;margin:12px 0}

.temporary-browser .sidebar{display:none}.temporary-browser .client-shell{grid-template-columns:1fr}.temporary-browser .main-column{grid-column:1;width:100%;margin:0}.temporary-space form{display:grid;gap:12px;margin:28px 0}.temporary-space label{font-size:14px}.temporary-space textarea,.temporary-space input{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit}.temporary-space form .button{justify-self:start}.temporary-record{padding:20px 0;border-top:1px solid var(--line)}.temporary-record pre{white-space:pre-wrap;overflow-wrap:anywhere}

.recent-auth{max-width:min(440px,calc(100vw - 32px))}.recent-auth>button{display:block;width:100%;margin-top:12px}.recent-auth form{display:grid;gap:12px;margin-top:20px}.recent-auth [data-error]{color:var(--error)}

.recovery-export{width:min(480px,calc(100vw - 32px));max-height:calc(100svh - 48px);overflow:auto}.recovery-export form{display:grid;gap:12px}.recovery-export>button{display:block;margin-top:14px}.recovery-export [data-error]{color:var(--error)}

.check-record [data-approval-preview]{flex-basis:100%;max-height:360px;overflow:auto;margin:4px 0 8px;padding:16px;background:var(--paper);border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere}.check-record [data-approval-preview] h4{font-size:14px}.check-record [data-approval-preview] p{font-size:13px;margin:8px 0}
