
.sectionnav{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin;margin-bottom:14px;padding-bottom:5px}.sectionnav button{white-space:nowrap;min-height:45px}.sectionnav button.selected{background:#3359a3;color:#fff;border-color:#628afa}.collectiontop{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}.collectiontop h2{margin:0 0 6px}.collectiontop p{margin:0}.recordcard{min-height:155px}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #90b1ff;outline-offset:2px}body.editing{overflow:hidden}@media(max-width:760px){.app{padding:12px 12px max(20px,env(safe-area-inset-bottom))}.top{align-items:stretch}.top .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.actions button{min-height:45px}.sectionnav{position:sticky;top:0;z-index:2;background:#0b1220;padding:8px 0}.cards{grid-template-columns:1fr}.note{min-height:120px}.collectiontop button{width:100%;min-height:48px}.modalbg{padding:0;align-items:stretch}.modal{width:100%;max-height:100dvh;height:100dvh;border-radius:0;border:0;padding:16px 16px max(28px,env(safe-area-inset-bottom))}.modal .footer{position:sticky;bottom:0;background:#111d31;padding:12px 0;z-index:2}.modal .footer button{flex:1;min-height:48px}.field input,.field select,.field textarea{font-size:16px;min-height:46px}.login{margin:12vh auto}.stats{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:380px){.stats{grid-template-columns:1fr 1fr}.stats .stat:last-child{grid-column:1/-1}.stat b{font-size:20px}}

:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#e6ebf4;background:#0b1220;font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button,input,select,textarea{border:1px solid #334155;border-radius:10px;background:#152137;color:#e6ebf4;padding:11px}button:hover{background:#223451}.primary{background:#3c75f5;border-color:#3c75f5;color:white}.danger{color:#fecaca}.muted{color:#97a8c1}.app{max-width:1400px;margin:auto;padding:20px}.top{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:20px;flex-wrap:wrap}.brand{font-weight:800;font-size:23px;letter-spacing:-.5px}.subtitle{color:#97a8c1;font-size:13px;margin-top:3px}.actions{display:flex;gap:8px;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}.stat{border:1px solid #25334b;background:#121e32;padding:16px;border-radius:15px}.stat b{display:block;font-size:25px}.stat span{font-size:12px;color:#97a8c1}.layout{display:grid;grid-template-columns:235px 1fr;gap:18px}.panel{border:1px solid #25334b;background:#111c30;border-radius:15px;padding:16px}.side button{display:block;width:100%;text-align:left;background:transparent;border:0;padding:11px;color:#adbed5}.side button.active{background:#21365a;color:white}.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}.toolbar input{flex:2;min-width:140px}.toolbar select{flex:1;min-width:130px}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:13px}.note{padding:17px;border-radius:13px;background:#18263e;border:1px solid #30405a;text-align:left;width:100%;min-height:165px}.note:hover{border-color:#6b96ef}.note h3{font-size:17px;margin:8px 0}.chip{display:inline-block;font-size:11px;background:#2d4263;border-radius:50px;padding:5px 9px;color:#d5e1f8}.note p{color:#aebdd3;line-height:1.5;font-size:13px;white-space:pre-wrap;max-height:58px;overflow:hidden}.note small{color:#91a8c4}.line{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.empty{padding:48px;text-align:center;color:#97a8c1}.modalbg{position:fixed;inset:0;background:#050a13d9;display:flex;align-items:center;justify-content:center;z-index:5;padding:15px}.modal{width:min(750px,100%);max-height:94dvh;overflow:auto;background:#111d31;border:1px solid #3d5272;border-radius:17px;padding:22px}.modal h2{margin:0 0 18px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:13px}.field label{font-size:13px;color:#bac8da}.field input,.field select,.field textarea{width:100%}textarea{min-height:98px;resize:vertical}.wide{grid-column:1/-1}.checks{display:flex;gap:20px;flex-wrap:wrap}.checks label{display:flex;gap:8px;align-items:center}.checks input{width:18px;height:18px}.footer{display:flex;gap:10px;justify-content:flex-end;align-items:center;flex-wrap:wrap;margin-top:16px}.login{width:min(420px,94%);margin:15vh auto;padding:30px}.login input{width:100%;margin:16px 0}.login button{width:100%}.err{color:#ffb4b4;font-size:13px;min-height:19px}.hidden{display:none!important}.toast{position:fixed;bottom:20px;right:20px;background:#294268;padding:12px 18px;border-radius:11px;z-index:10}.notice{font-size:12px;color:#b4c5de;padding:9px 0}@media(max-width:760px){.app{padding:12px}.layout{display:block}.side{display:flex;overflow:auto;gap:5px;margin-bottom:12px;padding:8px}.side button{width:auto;white-space:nowrap}.stats{gap:7px}.stat{padding:10px}.stat b{font-size:20px}.fields{grid-template-columns:1fr}.toolbar>*{width:100%}.brand{font-size:20px}.modal{padding:16px}}

/* Fieldbook personal workspace */
:root{--accent:#3c75f5;--accent-soft:#294c8a;--focus:#91b2ff}
:root[data-theme="forest"]{--accent:#2e9773;--accent-soft:#1d5c4b;--focus:#83dbb6}
:root[data-theme="violet"]{--accent:#8760d9;--accent-soft:#493578;--focus:#c2a5ff}
:root[data-theme="sunset"]{--accent:#be7741;--accent-soft:#794c2e;--focus:#f1b884}
:root[data-theme="slate"]{--accent:#657b99;--accent-soft:#34465f;--focus:#bbd1e7}
.primary{background:var(--accent);border-color:var(--accent)}button.selected,.sectionnav button.selected{background:var(--accent-soft);border-color:var(--accent)}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-color:var(--focus)}.note:hover{border-color:var(--accent)}.welcome{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px;background:linear-gradient(120deg,#172a47,#141d32)}.welcome strong{font-size:19px}.welcome-actions{display:flex;gap:8px;flex-wrap:wrap}.viewbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;gap:12px}.viewbar button{padding:8px 12px}.cards.aslist{display:flex;flex-direction:column}.cards.aslist .note{min-height:unset}.cards.aslist .note p{max-height:40px;margin:6px 0}.cards.aslist .note h3{margin:6px 0}.notebookchip{background:var(--accent-soft)}:root[data-density="compact"] .note{padding:11px;min-height:110px}:root[data-density="compact"] .note p{max-height:32px}:root[data-density="compact"] .stat{padding:10px}:root[data-density="compact"] .panel{padding:11px}@media(max-width:760px){.welcome{align-items:stretch;flex-direction:column}.welcome-actions{display:grid;grid-template-columns:1fr 1fr}.welcome-actions button{min-height:45px}.viewbar{padding-top:6px}.settingsmodal{height:100dvh}.sectionnav{top:0}}

/* v4 responsive workspace */
.dashboard{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:12px;margin:0 0 14px}.widget{background:#14233b;border:1px solid #314462;border-radius:14px;padding:15px}.widget h3{margin:0 0 10px;font-size:15px}.widget p{margin:7px 0;color:#becde3}.editor-toolbar{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:6px}.editor-toolbar button{padding:9px 12px;min-width:42px}.rich-editor{border:1px solid #334155;border-radius:11px;background:#152137;padding:14px;min-height:190px;max-height:45vh;overflow:auto;line-height:1.55;overflow-wrap:anywhere}.rich-editor:focus{outline:2px solid var(--focus)}.rich-editor a{color:#a3c3ff}.rich-editor img{max-width:100%}.rich-editor h2{font-size:19px}.attachment-line{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#182943;border-radius:9px;padding:8px;margin:6px 0;overflow-wrap:anywhere}.attachment-line a{color:#a9c5ff}.attach-actions{display:flex;gap:6px}.chipbutton{padding:7px 10px;font-size:12px}.history-item{display:flex;justify-content:space-between;gap:10px;padding:8px;border-bottom:1px solid #30405a}.commandbg{position:fixed;inset:0;z-index:30;background:#000b;display:flex;align-items:flex-start;justify-content:center;padding:10vh 15px}.commandpanel{width:min(650px,100%);background:#111d31;border:1px solid #526c91;padding:17px;border-radius:16px;max-height:75vh;overflow:auto}.commandpanel input{width:100%;margin-bottom:12px}.commandpanel button{width:100%;display:block;text-align:left;margin:4px 0}.dashsetting{display:flex;gap:7px;flex-wrap:wrap;margin:6px 0 14px}.dashsetting button{min-height:40px}.journal-preview{white-space:pre-wrap}.modal .footer{z-index:3}.save-state{font-size:12px;color:#a5bedc;margin-left:auto}.mobile-only{display:none}@media(max-width:760px){.dashboard{grid-template-columns:1fr}.rich-editor{min-height:220px;max-height:none}.editor-toolbar{position:sticky;top:0;background:#111d31;z-index:2;padding:6px 0}.editor-toolbar button{min-height:44px}.modal .footer{bottom:0}.mobile-only{display:inline}.commandpanel{max-height:85dvh}}

/* v5: accessible touch controls, appearance options, mobile-first cards */
:root[data-theme="carbon"]{--accent:#becf5c;--accent-soft:#38432d;--focus:#d6e794}
:root[data-theme="ocean"]{--accent:#48c6db;--accent-soft:#1c5265;--focus:#8ce7ee}
:root[data-theme="midnight"]{--accent:#6589ff;--accent-soft:#344671;--focus:#94b7ff}
:root[data-theme="light"]{--accent:#3669de;--accent-soft:#d3def9;--focus:#3669de;color:#17243a;background:#eef3f9}
:root[data-theme="light"] body{background:#eef3f9;color:#17243a}
:root[data-theme="light"] .panel,:root[data-theme="light"] .widget,:root[data-theme="light"] .stat,:root[data-theme="light"] .modal,:root[data-theme="light"] .note,:root[data-theme="light"] .rich-editor,:root[data-theme="light"] input,:root[data-theme="light"] select,:root[data-theme="light"] textarea{background:#fff;color:#17243a;border-color:#c4d0e2}
:root[data-theme="light"] .muted,:root[data-theme="light"] .subtitle,:root[data-theme="light"] .field label{color:#415775}
:root[data-theme="light"] .side button{color:#234567}
:root[data-theme="light"] .welcome{background:#fff}
:root[data-theme="light"] .modal .footer{background:#fff}
:root[data-theme="light"] .sectionnav{background:#eef3f9}
:root[data-theme="light"] .commandpanel{background:#fff;color:#17243a}
:root[data-theme="light"] .chip{background:#e8effa;color:#263d5c}
:root[data-theme="light"] .note p{color:#36506a}
:root[data-theme="light"] button{color:inherit}
:root[data-theme="light"] .primary{color:white}
:root[data-font="large"]{font-size:17px}
:root[data-font="xlarge"]{font-size:19px}
:root[data-theme="carbon"] body{background:#111615}
:root[data-theme="ocean"] body{background:#0b1b29}
.v5bar{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.v5bar button{min-height:44px}
.review-box{padding:12px;margin:8px 0;background:#21314b;border-radius:10px}
.print-only{display:none}
@media(max-width:760px){.sectionnav button{min-height:48px}.v5bar button{flex:1}.recordcard{min-height:125px}.sectionnav{scroll-snap-type:x proximity}.sectionnav button{scroll-snap-align:start}}
@media print{body{background:#fff!important;color:#000!important}.app,.modalbg,.commandbg,.top,.sectionnav,.actions{display:none!important}.print-only{display:block!important;font:12pt/1.5 Georgia,serif;color:#111}.print-only h1{font-size:21pt}}

/* v6 layout: mobile-first, no changes to persistence or API */
:root{--v6-bg:#0c1420;--v6-panel:#172438;--v6-border:#304258;--v6-text:#ecf2fb;--v6-muted:#9bb0c6;--v6-cyan:#65bfd1}
body{background:var(--v6-bg)} .app{max-width:1560px;padding:20px 26px 34px 264px}.app .top{display:none}.v5bar{display:none!important}.sectionnav{display:none!important}
.v6-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 24px}.v6-brand{display:flex;gap:12px;align-items:center}.v6-logo{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#194457;color:#89deef;font-size:22px}.v6-name{font-weight:780;font-size:21px;line-height:1.1}.v6-sub{font-size:12px;color:var(--v6-muted);margin-top:5px}.v6-headtools{display:flex;gap:8px}.v6-headtools button{width:44px;height:44px;padding:8px;font-size:19px}
.v6-rail{position:fixed;left:0;top:0;bottom:0;width:238px;background:#111e30;border-right:1px solid #2a3d55;padding:22px 12px;display:flex;flex-direction:column;z-index:4;overflow-y:auto}.v6-railname{font-size:21px;font-weight:750;padding:4px 12px 24px}.v6-rail button{border:0;text-align:left;background:none;padding:12px 14px;width:100%;font-size:14px;color:#afc1d5;margin-bottom:3px}.v6-rail button.v6-current{background:#244457;color:#bcf3ff;border-radius:11px}.v6-rail button:focus-visible,.v6-nav button:focus-visible{outline:2px solid #8de7f1}.v6-railbottom{margin-top:auto;border-top:1px solid #33435b;padding-top:10px}
.v6-home{display:none}.v6-home.v6-visible{display:block}.v6-herotext{color:var(--v6-muted);font-size:13px;margin:0 0 7px}.v6-hero h1{font-size:clamp(25px,3vw,34px);margin:0 0 9px;letter-spacing:-.7px}.v6-hero p{margin:0;color:var(--v6-muted)}.v6-capture{display:block;background:linear-gradient(120deg,#6ac0d3,#5daac6);color:#0b2c38;border:0;text-align:left;width:100%;border-radius:16px;padding:20px 22px;margin:25px 0 16px}.v6-capture strong{font-size:18px;display:block}.v6-capture span{font-size:13px;display:block;margin-top:6px}.v6-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.v6-shortcuts button{background:var(--v6-panel);border-color:var(--v6-border);min-height:95px;text-align:left;padding:17px}.v6-shortcuts b{display:block;font-size:15px;margin-top:10px}.v6-shortcuts .v6-symbol{color:var(--v6-cyan);font-size:23px}.v6-home h2{font-size:18px;margin:30px 0 14px}.v6-home .dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}.v6-home .widget{background:var(--v6-panel);min-width:0}.v6-home .widget button{margin:3px}.v6-home .stats{margin:0;grid-template-columns:repeat(3,1fr)}.v6-home .stat{background:var(--v6-panel)}.v6-workspace{display:none}.v6-workspace.v6-visible{display:block}.v6-workspace-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px}.v6-workspace-head h1{font-size:25px;margin:0}.v6-workspace-head p{font-size:13px;color:var(--v6-muted);margin:5px 0 0}.v6-workspace-head .primary{white-space:nowrap}.v6-more{display:none}.v6-more.v6-visible{display:block}.v6-toolgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(195px,1fr));gap:12px}.v6-toolgrid button{text-align:left;min-height:96px;padding:19px;background:var(--v6-panel);border-color:var(--v6-border);font-size:15px}.v6-toolgrid span{display:block;font-size:23px;margin-bottom:12px;color:var(--v6-cyan)}
.v6-nav{display:none}.v6-settings{display:none}.v6-settings.v6-visible{display:block}.v6-settinggrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(195px,1fr));gap:10px}.v6-settinggrid button{min-height:55px}.v6-settings h2{font-size:19px}.v6-note-top{display:none}.v6-footer{font-size:12px;color:var(--v6-muted);padding:24px 0}.v6-home .welcome{display:none}.app>.notice{display:none}.v6-workspace #notesLayout{grid-template-columns:205px minmax(0,1fr)}.v6-workspace .panel{background:var(--v6-panel)}
@media(max-width:950px){.app{padding-left:22px}.v6-rail{display:none}.v6-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:4;background:#121f31;border-top:1px solid #304359;padding:7px 8px max(8px,env(safe-area-inset-bottom));justify-content:space-around}.v6-nav button{width:25%;background:transparent;border:0;border-radius:11px;padding:7px 3px;color:#9eb2c8;font-size:11px;min-height:52px}.v6-nav button span{display:block;font-size:21px;line-height:1.3;margin-bottom:2px}.v6-nav button.v6-current{color:#8cdeef;background:#234355}.app{padding-bottom:calc(96px + env(safe-area-inset-bottom))}}
@media(max-width:760px){.app{padding:16px 15px calc(95px + env(safe-area-inset-bottom))}.v6-head{margin-bottom:25px}.v6-sub{display:none}.v6-name{font-size:19px}.v6-logo{width:41px;height:41px}.v6-hero h1{font-size:26px}.v6-capture{margin:23px 0 13px}.v6-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.v6-shortcuts button{min-height:94px}.v6-home .dashboard{grid-template-columns:1fr}.v6-home .stats{gap:7px}.v6-home .stat{padding:12px 8px}.v6-workspace-head h1{font-size:22px}.v6-workspace #notesLayout{display:block}.v6-workspace .side{display:flex}.v6-workspace .toolbar{gap:8px}.v6-toolgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.v6-toolgrid button{min-height:100px}.v6-headtools button{width:42px;height:42px}}
:root[data-theme=light] .v6-rail,:root[data-theme=light] .v6-nav{background:#e0e8f5;color:#17243a}:root[data-theme=light] .v6-home .widget,:root[data-theme=light] .v6-shortcuts button,:root[data-theme=light] .v6-toolgrid button,:root[data-theme=light] .v6-settings .panel{background:#fff;color:#17243a}:root[data-theme=light] .v6-hero h1,:root[data-theme=light] .v6-workspace-head h1{color:#17243a}

/* v6.1 mobile-first refinement */
.v6-capture{margin:15px 0 10px;padding:13px 17px;border-radius:13px}.v6-capture strong{font-size:16px}.v6-capture span{font-size:12px;margin-top:3px}.v6-shortcuts button{min-height:68px;padding:11px 13px}.v6-shortcuts b{font-size:13px;margin-top:5px}.v6-shortcuts .v6-symbol{font-size:19px}.v6-home h2{margin:19px 0 9px;font-size:16px}.v6-home .widget{padding:13px}.v6-home .widget h3{font-size:14px;margin-bottom:6px}.v6-home .widget p{font-size:12px;margin:5px 0}.v6-toolgrid button{min-height:70px;padding:13px;font-size:14px}.v6-toolgrid span{font-size:17px;margin-bottom:6px}.v61-widget-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.v61-widget-head button{padding:5px 8px;font-size:12px}.v61-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}.v61-actions button,.v61-entry{padding:7px 10px;font-size:13px}.v61-entry{display:block;width:100%;text-align:left;background:transparent;border:0;border-bottom:1px solid #34415a;color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v61-entry:last-child{border-bottom:0}.v61-empty{color:var(--v6-muted);font-size:13px;margin:8px 0}.v61-config-row{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--v6-border)}.v61-config-row label{flex:1;display:flex;align-items:center;gap:8px}.v61-config-row input{width:auto;min-height:20px}.v61-config-row button{padding:7px 10px}.v61-popup{position:fixed;inset:0;z-index:65;background:#020817aa;display:flex;align-items:center;justify-content:center;padding:16px}.v61-popup>div{background:#18263b;border:1px solid #3c5772;border-radius:17px;width:min(540px,100%);max-height:80dvh;overflow:auto;padding:18px}.v61-popup.hidden{display:none}.v61-popup h2{margin:0 0 10px}.v61-tag{font-size:11px;color:#80ccdd}.v61-section-actions{display:flex;gap:8px;flex-wrap:wrap}.v61-more-tools{margin-bottom:12px} .v61-compact .v6-home .widget{padding:11px}
@media(max-width:760px){.v6-head{margin-bottom:17px}.v6-shortcuts button{min-height:69px}.v6-toolgrid button{min-height:68px}.v6-home .widget{padding:12px}.v6-herotext{font-size:12px}.v6-hero p{font-size:13px}.v6-hero h1{font-size:24px}.v6-shortcuts{gap:8px}.v6-home .stats{display:none}}

/* v6.2 Projects and app-native selection sheets */
.fb-projects{display:none;padding:16px 14px 110px;max-width:1120px;margin:auto}.fb-projects.active{display:block}
.fb-projects h1{margin:10px 0}.fb-project-controls{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.fb-project-controls input{flex:2;min-width:170px}.fb-project-controls button{flex:0 0 auto}
.fb-project-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.fb-project-card{width:100%;text-align:left;background:#1a2639;border:1px solid #35445d;border-radius:16px;padding:17px;color:#e8f0fa}.fb-project-card strong{display:block}.fb-project-card small{display:block;margin-top:9px;color:#a9b9c9}
.fb-project-results{display:grid;gap:10px}.fb-project-result{border:1px solid #35445d;border-radius:12px;padding:12px;width:100%;background:#1a2639;text-align:left;color:#e8f0fa}.fb-project-result small{display:block;color:#a9b9c9;margin-top:4px}.fb-project-panel{border:1px solid #35445d;border-radius:15px;padding:15px;background:#152236;margin-top:15px}
.fb-native-sheet{position:fixed;inset:0;z-index:99999;background:#040913bb;display:flex;align-items:flex-end;justify-content:center}.fb-native-dialog{width:100%;max-width:560px;max-height:83dvh;background:#17243a;border:1px solid #40516b;border-radius:22px 22px 0 0;display:flex;flex-direction:column;padding:16px;padding-bottom:max(20px,env(safe-area-inset-bottom));color:#e6f0fb}.fb-native-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.fb-native-top button{width:auto}.fb-native-items{overflow-y:auto;display:grid;gap:4px;padding:12px 0}.fb-native-items button{width:100%;text-align:left;padding:15px;border-radius:10px;border:0;background:transparent;color:#e9f1fa}.fb-native-items button.selected{background:#29485c;color:#9cdeec}.fb-native-items button:focus-visible{outline:2px solid #78c8d9}.fb-native-dialog input{width:100%}
.fb-select-proxy{cursor:pointer}.fb-select-shell{position:relative}.fb-select-shell>select{position:absolute;left:0;top:0;width:1px;height:1px;opacity:0;pointer-events:none}.fb-select-shell>button{width:100%;text-align:left;min-height:46px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fb-select-shell:has(>select.hidden){display:none}
@media(min-width:720px){.fb-native-sheet{align-items:center}.fb-native-dialog{border-radius:20px;padding-bottom:16px}}

/* v6.3: low-friction site walks */
.fb63-walk-tools{grid-column:1/-1;background:#15263a;border:1px solid #355269;border-radius:14px;padding:12px;display:grid;gap:10px}
.fb63-tools-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.fb63-tools-row button{width:auto;min-height:42px;padding:9px 13px}
.fb63-walk-tools h3{font-size:15px;margin:0}.fb63-walk-tools p{font-size:12px;color:#adc1d1;margin:0}
.fb63-checks{display:grid;gap:8px;max-height:290px;overflow:auto}.fb63-check{display:flex;align-items:flex-start;gap:10px;background:#203249;border-radius:10px;padding:10px;font-size:13px}.fb63-check input{width:20px;height:20px;flex:none;margin:0}
.fb63-scratch{min-height:175px;font-size:16px;line-height:1.55;width:100%}
.fb63-label{display:flex;justify-content:space-between;align-items:center;gap:10px}
.fb63-fast-project{display:flex;gap:8px;align-items:center}.fb63-fast-project button{width:auto;min-height:42px;white-space:nowrap}
@media(max-width:620px){.fb63-walk-tools{padding:11px}.fb63-tools-row button{flex:1}.fb63-fast-project{flex-wrap:wrap}.fb63-fast-project button{width:100%}}


/* Stable mobile bottom navigation: no visualViewport-dependent bottom offset. */
@media(max-width:950px){
  #main > .v6-nav{
    position:fixed!important;
    inset:auto 0 0 0!important;
    width:100%!important;
    box-sizing:border-box!important;
    padding-bottom:max(8px,env(safe-area-inset-bottom))!important;
  }
  .app{
    padding-bottom:calc(96px + env(safe-area-inset-bottom))!important;
  }
}


/* Shared password visibility controls */
.fb-password-shell{position:relative;display:block;width:100%}
.fb-password-shell>input{width:100%;box-sizing:border-box;padding-right:46px!important}
.fb-password-toggle{position:absolute;right:7px;top:50%;transform:translateY(-50%);width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;padding:0!important;display:grid!important;place-items:center;background:transparent!important;border:0!important;border-radius:8px!important;font-size:16px;line-height:1;color:inherit;opacity:.72;z-index:2}
.fb-password-toggle:hover,.fb-password-toggle:focus-visible{opacity:1;background:color-mix(in srgb,var(--accent) 16%,transparent)!important}
.fb-password-toggle:focus-visible{outline:2px solid var(--focus)!important;outline-offset:1px}
.account-profile-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.account-profile-actions #account-profile-logout{white-space:nowrap}
@media(max-width:620px){.account-profile-actions{grid-template-columns:1fr}.account-profile-actions #account-profile-logout{width:100%}}

/* Trusted-device sign-in stays compact and theme-aware instead of using browser-native checkbox spacing. */
.login .login-trusted-device{display:flex;align-items:flex-start;gap:10px;margin:2px 0 16px;padding:11px 12px;border:1px solid #334155;border-radius:10px;background:#121e32;cursor:pointer;text-align:left}.login .login-trusted-device[hidden]{display:none!important}.login .login-trusted-device input{width:18px;height:18px;min-height:18px;margin:2px 0 0;flex:0 0 auto;accent-color:#3c75f5}.login .login-trusted-device span{display:grid;gap:3px;line-height:1.25}.login .login-trusted-device b{font-size:13px}.login .login-trusted-device small{font-size:11px;color:#97a8c1}.login .login-trusted-device:hover{border-color:#628afa;background:#172944}
