/* PassBy owns its palette, original system typography, and layout tokens. */
:root{
  color-scheme:light dark;
  --bg:#fafafa;--fg:#141414;--muted:#737373;--surface:#efefef;--hover:#e5e5e5;--border:#ddd;
  --button:#171717;--button-text:#fff;--dialog-width:600px;--dialog-height:640px;--dialog-padding:28px;
  --popover-shadow:0 12px 32px #00000016,0 2px 6px #00000008;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.5;
}
@media(prefers-color-scheme:dark){:root{--bg:#080808;--fg:#f6f6f6;--muted:#9a9a9a;--surface:#171717;--hover:#252525;--border:#333;--button:#f6f6f6;--button-text:#111;--popover-shadow:0 12px 32px #00000066,0 2px 6px #00000033}}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--fg)}
body:has(>.app){height:100dvh;min-height:460px;display:flex;flex-direction:column}
button,input,textarea,select{font:inherit;color:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
button{cursor:pointer;border:0;background:none}button:disabled{cursor:wait;opacity:.45}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--fg);outline-offset:3px}button:disabled:focus-visible{outline:none}[hidden]{display:none!important}
svg:not(.apple-auth-button-text){width:21px;height:21px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;fill:none;pointer-events:none}
.icon-button{width:44px;height:44px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex:none;background:var(--surface)}.icon-button:hover{background:var(--hover)}
.pill{min-height:44px;padding:10px 20px;border-radius:999px;font-weight:600;background:var(--surface);display:inline-flex;gap:9px;align-items:center;justify-content:center;line-height:1.5}.pill:hover{background:var(--hover)}
.primary{background:var(--button);color:var(--button-text)}.primary:hover{opacity:.85;background:var(--button)}
.text-button{padding:0;color:var(--muted);font-size:13px}.text-button:hover{color:var(--fg)}
.helper{font-size:12px;color:var(--muted);line-height:1.7}.error{font-size:14px;line-height:1.6;margin:16px 0;color:var(--fg)}

/* Desktop notebook: folder navigation, entries, then a reading area. */
.app{max-width:1500px;width:100%;flex:1;min-height:0;padding:28px 40px 0;margin:0 auto;display:flex;flex-direction:column}
.header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px;flex:none}
.wordmark{font-size:40px;letter-spacing:-2px;line-height:1.1;font-weight:750;display:flex;align-items:center}.wordmark:hover{text-decoration:none}
.tools{display:flex;gap:10px;align-items:center}#main{flex:1;min-height:0;display:flex;flex-direction:column}
.workspace{display:grid;grid-template-columns:180px 310px minmax(0,1fr);gap:28px;flex:1;min-height:0}
.folder-navigation{min-width:0;display:flex;flex-direction:column;padding:8px 12px 16px;background:var(--surface);border-radius:22px}
.navigation-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;padding-left:8px;flex:none}.navigation-heading h2{font-size:14px;font-weight:600;margin:0}.navigation-heading .icon-button{background:transparent}
.filters{display:flex;flex-direction:column;gap:6px;overflow:auto;min-height:0;scrollbar-width:thin;padding:2px}
.filter{width:100%;display:flex;align-items:center;gap:10px;min-height:44px;padding:10px;border-radius:12px;font-size:14px;text-align:left;background:transparent}.filter:hover{background:var(--hover)}
.filter[aria-pressed=true]{background:var(--button);color:var(--button-text)}.filter svg{width:18px;height:18px;flex:none}.filter-name{flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.5}.filter-count{font-size:12px;opacity:.65;flex:none}.folder-picker{display:none}
.sidebar{display:flex;flex-direction:column;min-width:0;min-height:0}.library-heading{display:flex;align-items:center;gap:10px;min-height:60px;flex:none;padding:0 12px 8px}.library-heading h2{font-size:22px;letter-spacing:-.5px;margin:0;overflow-wrap:anywhere}.library-count{font-size:13px;color:var(--muted)}
.entry-list,.search-results{padding:0;margin:0;list-style:none;min-height:0}.entry-list{flex:1;overflow:auto;scrollbar-width:thin;overscroll-behavior:contain}
.entry-button{display:flex;align-items:center;width:100%;text-align:left;gap:14px;padding:14px 12px;border-radius:16px;margin-bottom:4px;min-height:76px}.entry-button:hover,.entry-button[aria-pressed=true]{background:var(--surface)}
.avatar{width:42px;height:42px;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:18px;background:var(--surface);flex:none}.entry-button[aria-pressed=true] .avatar{background:var(--hover)}
.entry-info{min-width:0;flex:1}.entry-info strong,.entry-info small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entry-info strong{font-size:16px;font-weight:600}.entry-info small{font-size:13px;color:var(--muted);margin-top:3px}
.detail{padding:12px 24px 28px;max-width:700px;width:100%;margin:0 auto;min-width:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.detail-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.detail h1{font-size:32px;line-height:1.25;letter-spacing:-.8px;overflow-wrap:anywhere;margin:0}.detail-folder{font-size:13px;color:var(--muted);margin-top:12px}
.field{margin-top:36px}.field label{display:block;color:var(--muted);font-size:13px;margin-bottom:12px}.field-value{display:flex;align-items:center;gap:16px}.field-text{flex:1;min-width:0;font-size:18px;white-space:pre-wrap;overflow-wrap:anywhere}.field-text.secret{font-family:ui-monospace,SFMono-Regular,monospace;font-size:18px}.field-actions{display:flex;gap:8px;flex:none}.detail-bottom{margin-top:40px}
.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:280px;height:100%;text-align:center;color:var(--muted);padding:28px 16px}.empty svg{width:36px;height:36px;margin-bottom:20px}.empty h2{color:var(--fg);font-size:20px;line-height:1.4;margin:0 0 8px}.empty p{font-size:14px;line-height:1.7;max-width:290px;margin:0}
.mobile-back{display:none}
.page-bottom{max-width:1500px;width:100%;margin:0 auto;padding:20px 40px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex:none}
footer{display:flex;flex-direction:column;align-items:flex-start;font-size:12px;color:var(--muted);gap:8px;min-width:0}footer nav{display:flex;gap:20px;align-items:center;flex-wrap:wrap}footer .text-button{font-size:inherit}
#page-actions:empty{display:none}.new-password{min-height:48px;padding:12px 24px;white-space:nowrap}
#status{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px);padding:12px 20px;border-radius:999px;background:var(--button);color:var(--button-text);font-size:14px;z-index:20;box-shadow:0 6px 30px #0002}

/* One consistent entry composition across sign-in, authorization, and unlock. */
.app.entry-mode{max-width:520px;padding:40px 24px;justify-content:safe center;gap:24px;overflow:auto}
.entry-mode .header{margin:0}.entry-mode #main{flex:none}.welcome{width:100%;margin:0;padding:0}
.unlock-card{padding:32px;background:var(--surface);border-radius:24px}
.access-mark{display:block;width:44px;height:44px;margin-bottom:24px}
.unlock-card h1{margin:0 0 12px;font-size:28px;line-height:1.35;letter-spacing:-.7px}
.unlock-card h2{margin:0 0 12px;font-size:18px;line-height:1.5}.unlock-card p{color:var(--muted);font-size:14px;line-height:1.7;margin:0 0 20px}
.unlock-card .access-intro{margin:0}.access-identity{font-size:12px;color:var(--muted);margin-top:20px}
.tenon-actions,.access-actions{display:flex;flex-direction:column;gap:0;margin-top:28px}.tenon-actions{gap:12px}
.unlock-card .pill{width:100%;min-height:48px;font-size:15px}.unlock-card [role=alert]{margin:20px 0 0;color:var(--fg)}
.unlock-card form{margin:0}.unlock-card form label{display:block;font-size:14px;font-weight:550;margin-bottom:10px}
.unlock-card input[type=password]{background:var(--bg);color:var(--fg);width:100%;border:1px solid var(--border);border-radius:14px;padding:14px 16px;min-height:52px;margin:0 0 20px}
.unlock-card p.help{margin:20px 0 0;font-size:12px;line-height:1.75}
.auth-holder{min-height:48px;display:flex;justify-content:center;margin:0}.auth-holder:empty{display:none}
.auth-holder .apple-auth-button{width:100%!important;height:48px!important;border-radius:999px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:var(--button)!important;color:var(--button-text)!important}
.auth-holder .apple-auth-button>svg{display:none!important}.auth-holder .apple-auth-button-text{stroke:none}.auth-button-label{display:block;color:inherit!important;text-align:center;font:600 15px/48px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.account-switch{margin-top:24px;min-height:36px}.account-switch .apple-auth-button{background:transparent!important;color:var(--muted)!important;height:36px!important;border:0!important;font:13px/36px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;text-align:center!important}.account-switch .apple-auth-button:hover{color:var(--fg)!important}.account-switch .auth-button-label{font-size:13px;font-weight:400;line-height:36px}
.unlock-card .access-option-title{font-size:13px;font-weight:550;margin:24px 0 10px}.remember-option{display:flex;align-items:center;gap:6px;margin-top:0}.remember-row{display:flex;align-items:center;gap:10px;font-size:12px;line-height:1.6;cursor:pointer;min-width:0}.remember-option .info-control{margin:0}
.security-notes{margin:20px auto 0;display:flex;gap:8px;align-items:center;justify-content:center;color:var(--muted);font-size:12px;line-height:1.7}.security-notes svg{width:16px;height:16px;flex:none}
.access-state{padding:20px;background:var(--bg);border-radius:16px}.access-state p{margin:0 0 18px}.access-state p:last-child{margin:0}.access-state .error{margin:0 0 20px}
.access-progress{min-height:280px;display:flex;flex-direction:column;justify-content:center}.access-progress-status{display:flex;align-items:center;gap:12px;margin-top:24px;color:var(--muted);font-size:14px;cursor:default}

/* Shared modal shell: a compact header, scrolling body, and fixed actions. */
#dialog{padding:0;background:var(--bg);color:var(--fg);border:1px solid var(--border);border-radius:24px;width:min(var(--dialog-width),calc(100vw - 32px));height:min(var(--dialog-height),calc(var(--available-height,100dvh) - 32px));position:fixed;top:calc(var(--visual-top,0px) + (var(--available-height,100dvh) - min(var(--dialog-height),calc(var(--available-height,100dvh) - 32px))) / 2);bottom:auto;left:0;right:0;margin:0 auto;max-height:none;overflow:hidden;box-shadow:0 24px 100px #0003}
#dialog::backdrop{background:#0005;backdrop-filter:blur(6px)}
.dialog-inner{padding:0;height:100%;display:flex;flex-direction:column;min-height:0}
.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;margin:0;padding:16px var(--dialog-padding);background:var(--bg)}
.dialog-header h2{margin:0;font-size:22px;line-height:1.35;letter-spacing:-.5px}.dialog-header .icon-button{width:36px;height:36px}.dialog-header .icon-button svg{width:18px;height:18px}
.dialog-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:8px var(--dialog-padding) 24px;scrollbar-width:thin}
.dialog-footer{flex:none;padding:16px var(--dialog-padding) 24px;background:var(--bg)}.dialog-footer:empty{display:none}
.form-actions{display:flex;gap:12px;justify-content:flex-end;align-items:center;flex-wrap:wrap}.dialog-footer .form-actions{margin:0}
body:has(#dialog[open]){overflow:hidden}
.form-field{margin-bottom:22px}.form-field label{display:block;font-size:13px;color:var(--muted);margin-bottom:10px}
.form-field input,.form-field textarea{width:100%;background:var(--surface);border:1px solid transparent;border-radius:14px;padding:13px 14px;min-height:48px}.form-field textarea{display:block;resize:none;overflow:hidden;min-height:108px;max-height:none}.form-field .text-button{display:inline-flex;min-height:36px;margin-top:8px}
.password-input{display:flex;gap:10px;align-items:center}.password-input input{min-width:0;flex:1}
.generated{font:20px/1.65 ui-monospace,SFMono-Regular,monospace;overflow-wrap:anywhere;background:var(--surface);padding:22px;border-radius:18px;margin:4px 0 24px}
.generator-controls{display:flex;align-items:center;gap:20px;margin:8px 0 20px}.generator-controls input[type=number]{width:80px;border:0;background:var(--surface);border-radius:12px;padding:10px;appearance:textfield}.generator-controls input[type=number]::-webkit-inner-spin-button{appearance:none}
.generator-controls input[type=range]{appearance:none;background:transparent;height:28px;cursor:pointer;flex:1;min-width:0}.generator-controls input[type=range]::-webkit-slider-runnable-track{height:4px;background:var(--border);border-radius:999px}.generator-controls input[type=range]::-webkit-slider-thumb{appearance:none;width:20px;height:20px;border-radius:50%;background:var(--fg);margin-top:-8px}.generator-controls input[type=range]::-moz-range-track{height:4px;background:var(--border);border-radius:999px}.generator-controls input[type=range]::-moz-range-thumb{width:20px;height:20px;border:0;border-radius:50%;background:var(--fg)}
.check-row{display:flex;align-items:center;justify-content:space-between;padding:14px 0;font-size:14px}
.folder-row{display:flex;align-items:center;gap:12px;padding:14px 0}.folder-row strong{flex:1;min-width:0;font-size:15px;overflow-wrap:anywhere}
.search-wrap{position:sticky;top:-8px;background:var(--bg);padding:0 0 16px;margin:0 0 4px;z-index:1}.search-wrap input{border:0;border-radius:14px;background:var(--surface);width:100%;min-height:48px;padding:12px 16px}.search-results .empty{height:auto;min-height:220px}

/* Settings group headers are outside their quiet row surfaces. */
.settings-block{margin:0 0 24px}.settings-block:last-child{margin-bottom:0}.settings-section-title{font-size:12px;font-weight:600;color:var(--muted);margin:0 0 10px;padding:0 2px}
.settings-list{background:var(--surface);border-radius:16px;overflow:hidden}
.settings-policy{padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.settings-policy-title{display:flex;align-items:center;gap:6px}.settings-policy-title strong{font-size:14px;font-weight:550}.settings-policy-title .info-control{margin:0}.settings-policy-value{font-size:12px;color:var(--muted)}
.settings-language-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px;min-height:64px}.settings-language-row label{font-size:14px}.settings-language-row .choice{max-width:65%}.settings-language-row .choice-trigger{background:var(--bg);border-radius:999px;min-height:40px}
.settings-action{width:100%;display:flex;align-items:center;gap:14px;text-align:left;padding:16px 20px;min-height:58px;background:transparent;border-radius:0}.settings-action:hover{background:var(--hover)}.settings-action-icon{display:flex;align-items:center;flex:none;color:var(--muted)}.settings-action-icon svg{width:19px;height:19px}
.settings-action-content{display:flex;flex:1;min-width:0;flex-direction:column}.settings-action-title{font-size:14px;font-weight:550;line-height:1.5;overflow-wrap:anywhere}.settings-action-arrow{font-size:22px;line-height:1;color:var(--muted)}
.settings-identity{margin:0;padding:16px 20px 2px;font-size:13px;color:var(--muted);overflow-wrap:anywhere}

.settings-action:focus-visible{outline-offset:-3px}.settings-action.is-loading .settings-action-icon{display:none}
#dialog[data-kind=about] .wordmark{margin:8px 0 18px}.about-description{font-size:14px;line-height:1.8;margin:20px 0}.about-publisher{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:28px 0 12px}.about-publisher .helper{flex-basis:100%;margin:0}.about-publisher img{width:24px;height:24px}.about-website{display:block;text-decoration:underline;text-underline-offset:3px;margin-bottom:12px}

/* Product-designed controls; no native dropdown menu is visible. */
.info-control{display:inline-flex;align-items:center;flex:none;vertical-align:middle;margin-left:6px;letter-spacing:normal}
.info-trigger{width:26px;height:26px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);font:500 12px/1 Georgia,serif;position:relative;isolation:isolate}.info-trigger::before{content:'';position:absolute;inset:5px;border:1px solid currentColor;border-radius:50%;z-index:-1}.info-trigger:hover{color:var(--fg)}
.info-panel,.choice-panel{position:fixed;margin:0;border:0;border-radius:12px;padding:12px 14px;background:var(--surface);color:var(--fg);box-shadow:var(--popover-shadow);max-height:calc(100dvh - 32px);overflow:auto;text-align:left;font-size:13px;font-weight:400;line-height:1.6}.info-panel::backdrop,.choice-panel::backdrop{background:transparent}
.choice{min-width:0}.choice-trigger{background:var(--surface);border-radius:14px;min-height:48px;padding:10px 38px 10px 14px;width:100%;text-align:left;position:relative;font-size:14px;overflow-wrap:anywhere}.choice-trigger::after{content:'';width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);position:absolute;right:17px;top:18px}.choice-trigger:hover{background:var(--hover)}.choice-trigger[aria-expanded=true]::after{transform:rotate(225deg);top:22px}
.choice-panel{padding:6px}.choice-option{width:100%;padding:12px 36px 12px 12px;border-radius:8px;text-align:left;position:relative;min-height:44px;font-size:14px;overflow-wrap:anywhere}.choice-option:hover,.choice-option:focus-visible{background:var(--hover);outline:none}.choice-option[aria-selected=true]{font-weight:600}.choice-option[aria-selected=true]::after{content:'✓';position:absolute;right:14px}
input.capsule-switch{appearance:none!important;width:40px!important;height:24px!important;background:var(--border);border:0;border-radius:999px;position:relative;cursor:pointer;flex:none;margin:0!important;padding:0!important}input.capsule-switch::before{content:'';position:absolute;width:18px;height:18px;left:3px;top:3px;background:var(--bg);border-radius:50%;box-shadow:0 1px 3px #0003}input.capsule-switch:checked{background:var(--fg)}input.capsule-switch:checked::before{left:19px}input.capsule-switch:disabled{opacity:.45;cursor:wait}
.is-loading::before{content:'';display:inline-block;width:16px;height:16px;flex:none;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .8s linear infinite}.is-loading>svg{display:none}.is-loading{cursor:wait}@keyframes spin{to{transform:rotate(360deg)}}

@media(max-width:1100px){
  .app{padding:24px 28px 0}.page-bottom{padding:18px 28px}.workspace{grid-template-columns:280px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:20px 28px}
  .folder-navigation{grid-column:1/-1;flex-direction:row;align-items:center;gap:20px;padding:0;background:none}.navigation-heading{margin:0;padding:0}.filters{display:none}.folder-picker{display:block;width:260px;max-width:100%}.detail{padding:8px 12px 24px}.field-value{flex-wrap:wrap}.field-text{flex-basis:100%}
}
@media(max-width:700px){
  :root{--dialog-padding:22px}.app{padding:24px 20px 0}.header{margin-bottom:24px;gap:12px}.wordmark{font-size:32px}.tools{gap:7px}.tools .desktop-only{display:none}
  .workspace{display:flex;flex-direction:column;gap:20px}.folder-navigation{gap:16px;flex:none}.navigation-heading h2{display:none}.navigation-heading .icon-button{background:var(--surface)}.folder-picker{flex:1;width:auto}.sidebar{flex:1}.library-heading{min-height:44px;padding:0 4px 8px}.library-heading h2{font-size:20px}
  .detail{display:none;padding:0;flex:1}.workspace.has-detail .sidebar,.workspace.has-detail .folder-navigation{display:none}.workspace.has-detail .detail{display:block}.mobile-back{display:inline-flex;margin-bottom:24px}.detail h1{font-size:28px}.field-value{flex-wrap:nowrap}.field-text{flex-basis:auto;font-size:17px}.field-actions{gap:6px}.detail-top{gap:16px}
  .entry-button{padding-left:4px;padding-right:4px}.detail .empty{min-height:300px}
  .page-bottom{padding:18px 20px;gap:16px}footer nav{gap:16px}
  .app.entry-mode{padding:28px 20px;gap:24px}.entry-mode .header{margin:0}.unlock-card{padding:28px 24px}.unlock-card h1{font-size:26px}.remember-row{font-size:12px}
  .dialog-header{padding-top:14px;padding-bottom:14px}.dialog-header h2{font-size:20px}.dialog-footer{padding-top:12px;padding-bottom:20px}.dialog-footer .form-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.dialog-footer .form-actions:has(> :only-child){display:flex;justify-content:flex-end}.dialog-footer .pill{width:100%;font-size:14px;padding:10px 12px}.dialog-footer .form-actions:has(> :only-child) .pill{width:auto}
}
@media(max-width:480px){.new-password{width:48px;height:48px;padding:0;border-radius:50%}.new-password span{display:none}}
@media(max-width:380px){.app,.app.entry-mode{padding-left:16px;padding-right:16px}.page-bottom{padding-left:16px;padding-right:16px}.wordmark{font-size:24px;letter-spacing:-1px}.header{gap:12px}.unlock-card{padding:26px 22px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s,opacity .15s}input.capsule-switch,input.capsule-switch::before{transition:background .15s,left .15s}#dialog[open]{animation:appear .16s ease-out}@keyframes appear{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}}
@media(prefers-reduced-motion:reduce){.is-loading::before{animation:none;border-style:dotted}}

/* A real product route paints immediately before the central login request. */
.login-transition{width:min(360px,calc(100vw - 48px));min-height:100dvh;margin:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px 0}.login-transition h1{font-size:22px;line-height:1.5;letter-spacing:-.4px;margin:24px 0 12px}.transition-progress{display:flex;align-items:center;justify-content:center;gap:10px;color:var(--muted);font-size:14px;margin:0}.login-transition .tenon-actions{align-self:stretch;margin-top:28px}
