/* FOL-147: ocean-blue app brand (from foldoo-cloud.stage45.css; old brand colours mapped by scripts/brand/recolour.mjs, site-content rules unchanged). */
body.cloud-locked{overflow:hidden}body.cloud-locked> :not(#cloudAuth):not(#toast):not(script):not(style){visibility:hidden!important}
#cloudAuth{position:fixed;inset:0;z-index:2147483646;display:grid;place-items:center;overflow:auto;padding:24px;background:var(--ui-bg,#f5f6fa);color:var(--ui-ink,#222);font-family:Arial,sans-serif}#cloudAuth[hidden]{display:none}
.cloud-auth-card{box-sizing:border-box;width:min(100%,450px);padding:32px;border:1px solid var(--ui-line,#ddd);border-radius:20px;background:var(--ui-panel,#fff);box-shadow:0 18px 70px #1d164c12}.cloud-wordmark{display:flex;align-items:center;gap:10px;font-size:30px;font-weight:750;color:var(--ui-ink,#222);margin-bottom:28px}.cloud-wordmark>span{color:#106c96}.cloud-wordmark small{font-size:13px;color:var(--ui-muted,#6f6f6f);border:1px solid var(--ui-line,#ddd);border-radius:20px;padding:4px 8px}.cloud-auth-card h1{font-size:26px;line-height:1.15;margin:0 0 12px}.cloud-auth-card p{line-height:1.5}.cloud-auth-card form{display:grid;gap:14px;margin-top:24px}.cloud-auth-card label{display:grid;gap:7px;font-size:14px;font-weight:600}.cloud-auth-card label[hidden]{display:none}.cloud-auth-card input{width:100%;min-height:46px}.cloud-auth-card button{min-height:44px}.cloud-auth-links{display:flex;gap:10px;flex-wrap:wrap;justify-content:space-between;margin:14px 0}.cloud-auth-links button{border:0;background:none;color:var(--ui-ac,#106c96);cursor:pointer;padding:8px 0;font:inherit;font-size:14px}.cloud-auth-message{font-size:14px;margin:0;min-height:20px}.cloud-auth-note{font-size:12px!important;color:var(--ui-muted,#6f6f6f);line-height:1.6!important}.cloud-summary{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:22px;padding:12px 16px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-panel)}.cloud-summary>span:first-child{margin-right:auto;display:grid;gap:4px}.cloud-summary small{color:var(--ui-muted);overflow-wrap:anywhere}.cloud-summary [data-cloud-label]{font-size:13px}.cloud-account-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.cloud-account-head h2{margin:0}.cloud-pending-list{max-height:40dvh;overflow:auto}.cloud-pending-list article{display:grid;gap:8px;padding:14px 0;border-top:1px solid var(--ui-line)}.cloud-pending-list small,.cloud-warning{color:var(--ui-muted);line-height:1.5}.cloud-warning{padding:12px;background:var(--ui-bg);border-radius:8px}.cloud-account .ui-row{margin:20px 0}.cloud-account>p{overflow-wrap:anywhere}
@media(max-width:600px){#cloudAuth{padding:16px;place-items:start center}.cloud-auth-card{padding:24px;margin:auto}.cloud-summary{gap:8px;padding:12px}.cloud-summary [data-cloud-label]{width:100%;order:2}body.phone-layout #cloudAccountButton{display:none}}
.cloud-default-appearance{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.cloud-default-appearance>span{font-size:12px;color:var(--ui-muted)}
#cloudAuth{color-scheme:light;--ui-bg:#fff;--ui-panel:#fff;--ui-raise:#fff;--ui-line:#dce0ea;--ui-line-2:#c6cbd8;--ui-ink:#18262e;--ui-muted:#626777;--ui-ac:#106c96;--ui-accent:#106c96;--ui-accent-ink:#fff;--ui-accent-soft:#e7f3f8;--ui-hover:#f5f6fa;background:#fff;color:#18262e}
#cloudAuth .ui-input{background:#fff;color:#18262e;border-color:#c6cbd8}#cloudAuth .ui-btn.primary{background:#147dad;color:#fff}#cloudAuth .cloud-auth-card{background:#fff;border-color:#dce0ea}#cloudAuth .cloud-wordmark{color:#18262e}
.cloud-name-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.cloud-name-fields input{min-width:0;box-sizing:border-box}
#cloudProfile{position:fixed;inset:0;z-index:55;overflow:auto;background:var(--ui-bg);color:var(--ui-ink);padding:24px max(20px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));box-sizing:border-box}#cloudProfile[hidden]{display:none}
.cloud-profile-shell{max-width:960px;margin:auto}.cloud-profile-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:28px;border-bottom:1px solid var(--ui-line)}.cloud-profile-top .cloud-wordmark{margin:0;font-size:24px}.cloud-profile-main{max-width:680px;margin:36px auto}.cloud-profile-intro{display:flex;gap:18px;align-items:center;margin-bottom:28px}.cloud-profile-intro h1{font-size:30px;margin:0}.cloud-profile-intro p{margin:6px 0 0;color:var(--ui-muted)}.cloud-profile-avatar{display:grid;place-items:center;width:64px;height:64px;border-radius:18px;background:var(--ui-accent-soft);color:var(--ui-accent);font-size:28px;font-weight:700;flex-shrink:0}.cloud-profile-card{background:var(--ui-panel);border:1px solid var(--ui-line);border-radius:16px;padding:28px;margin:20px 0}.cloud-profile-card h2{font-size:18px;margin:0 0 20px}.cloud-profile-card form{display:grid;gap:16px}.cloud-profile-card label{display:grid;gap:8px;font-weight:600}.cloud-profile-card input{width:100%;box-sizing:border-box;min-height:44px}.cloud-profile-card input[readonly]{background:var(--ui-bg);color:var(--ui-muted)}.cloud-profile-card .hint{margin:0;line-height:1.6}.cloud-profile-card [type=submit]{justify-self:start;min-height:44px}.cloud-profile-card [role=status]{margin:0;min-height:20px}.cloud-profile-card>p{color:var(--ui-muted);line-height:1.6}body.view-account{overflow:hidden}
@media(max-width:480px){.cloud-name-fields{grid-template-columns:minmax(0,1fr)}.cloud-profile-card{padding:20px}.cloud-profile-main{margin:24px auto}.cloud-profile-top{padding-bottom:20px}.cloud-profile-intro h1{font-size:26px}#cloudAuth .cloud-auth-card{padding:24px}.cloud-profile-top .cloud-wordmark{font-size:21px}}
/* Dashboard only: project browser leaves the editor's layout untouched. */
body.view-dash:not(.view-account) .ui-top,body.view-dash .ui-stabs{display:none!important}body.view-dash .ui-dash{grid-row:1/-1}
.project-browser{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100%;background:var(--ui-bg)}.project-browser-nav{position:sticky;top:0;height:100dvh;box-sizing:border-box;display:flex;flex-direction:column;gap:26px;padding:26px 16px 20px;border-right:1px solid var(--ui-line);background:var(--ui-panel);overflow:auto}.browser-brand{display:flex;align-items:center;gap:8px;padding:0 12px;font-size:27px;font-weight:750;letter-spacing:-1px;color:var(--ui-ink)}.browser-brand>span{color:var(--ui-accent)}.browser-nav-item{display:flex;align-items:center;gap:10px;min-height:42px;padding:10px 12px;width:100%;border:0;border-radius:8px;background:transparent;text-align:left;cursor:pointer;color:var(--ui-muted);box-sizing:border-box;font-weight:550}.browser-nav-item:hover{background:var(--ui-hover);color:var(--ui-ink)}.browser-nav-item.active{background:var(--ui-accent-soft);color:var(--ui-accent)}.browser-nav-item>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.browser-nav-item>small{margin-left:auto;color:var(--ui-muted)}.browser-nav-item svg{flex-shrink:0}.browser-folder-heading{display:flex;align-items:center;justify-content:space-between;margin:28px 10px 8px;color:var(--ui-muted);font-size:11px;text-transform:uppercase;letter-spacing:.08em}.browser-folder-empty{font-size:12px;color:var(--ui-muted);line-height:1.5;margin:10px 12px}.browser-nav-bottom{margin-top:auto;padding-top:24px;border-top:1px solid var(--ui-line)}.browser-nav-bottom .cloud-default-appearance{padding:0 12px 18px}.browser-nav-bottom .cloud-default-appearance>span{width:100%}.project-browser-work{min-width:0}.browser-topbar{position:sticky;top:0;z-index:12;display:flex;align-items:center;gap:12px;min-height:76px;padding:14px 32px;box-sizing:border-box;border-bottom:1px solid var(--ui-line);background:var(--ui-panel)}.browser-search{flex:1;max-width:540px;min-width:100px;margin-right:auto}.browser-search input{min-height:40px}.browser-avatar{width:38px;height:38px;border-radius:50%;border:1px solid var(--ui-line);background:var(--ui-accent-soft);color:var(--ui-accent);font-weight:700;cursor:pointer;flex-shrink:0}.browser-main{max-width:1480px;margin:auto;padding:36px 32px 24px}.browser-greeting{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:38px}.browser-greeting h1{font-size:28px;line-height:1.2;margin:0;letter-spacing:-.025em;overflow-wrap:anywhere}.browser-greeting p{color:var(--ui-muted);font-size:14px;margin:9px 0 0}.browser-cloud-state.cloud-summary{border:0;background:transparent;padding:0;margin:0;gap:6px;flex-shrink:0}.browser-cloud-state [data-cloud-label]{color:var(--ui-muted);font-size:11px}.browser-cloud-state .ui-btn{width:30px;height:30px}.browser-section-top{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 22px}.browser-section-top h2{font-size:19px;margin:0 0 4px}.browser-result-count{font-size:12px;color:var(--ui-muted)}.browser-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.browser-controls select{width:auto;min-width:124px;min-height:34px}.browser-controls .ui-btn{min-height:34px}.browser-view-switch button{min-width:34px;display:flex;align-items:center;justify-content:center}.browser-projects.ui-dash-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:22px}.browser-projects .ui-site{position:relative;border-radius:12px;overflow:visible;transition:box-shadow .15s,border-color .15s}.browser-projects .ui-site:hover{border-color:var(--ui-line-2);box-shadow:var(--ui-shadow)}.browser-projects .ui-thumb{height:172px;border-radius:11px 11px 0 0;overflow:hidden;background:#fff}.browser-projects .ui-site-row{padding:15px 14px 17px;gap:8px;min-height:98px;box-sizing:border-box}.browser-projects .ui-site-meta{min-width:0;flex:1}.browser-project-title{display:block;width:100%;padding:0;margin:0 0 10px;border:0;background:transparent;text-align:left;font-size:14px;font-weight:650;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.browser-project-title:hover{color:var(--ui-accent)}.browser-projects .ui-site-sub{display:flex;flex-wrap:wrap;align-items:center;gap:7px;color:var(--ui-muted);font-size:11px}.browser-project-type,.browser-project-folder{display:inline-flex;align-items:center;gap:5px}.browser-project-type svg,.browser-project-folder svg{width:12px;height:12px}.browser-private{padding:2px 6px;border-radius:4px;background:var(--ui-bg);font-size:10px}.browser-project-date{width:100%;margin-top:3px}.browser-project-folder{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.browser-favourite{position:absolute;right:10px;top:10px;z-index:2!important;background:var(--ui-panel)!important;border:1px solid var(--ui-line)!important;box-shadow:0 2px 5px #0001}.browser-favourite.is-favourite{color:var(--ui-accent);background:var(--ui-accent-soft)!important}.browser-save-warning{color:var(--ui-danger);width:100%}.browser-folders{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:22px;margin-bottom:26px}.browser-folders .ui-folder{min-height:112px}.browser-folder-actions{display:flex;gap:8px;margin:-8px 0 20px}.browser-empty{display:grid;justify-items:center;padding:64px 24px;text-align:center;border:1px dashed var(--ui-line);border-radius:12px;background:var(--ui-panel)}.browser-empty>span{color:var(--ui-accent)}.browser-empty>span svg{width:28px;height:28px}.browser-empty h3{font-size:18px;margin:16px 0 0}.browser-empty p{max-width:420px;color:var(--ui-muted);line-height:1.6;margin:10px 0 20px}.browser-load-more{display:block;margin:28px auto}.browser-recovery{border-top:1px solid var(--ui-line);margin-top:42px;padding-top:20px;color:var(--ui-muted)}.browser-recovery summary{cursor:pointer;max-width:max-content}.browser-recovery .ui-dash-foot{margin-top:16px;padding-top:0;border:0}.browser-footer{display:flex;justify-content:space-between;gap:12px;margin-top:26px;font-size:11px;color:var(--ui-muted)}.browser-import-notice{display:flex;gap:12px;align-items:center;flex-wrap:wrap;border:1px solid var(--ui-line);background:var(--ui-panel);border-radius:10px;padding:14px;margin-bottom:24px}.browser-nav-toggle,.browser-nav-close,.browser-nav-scrim{display:none!important}.browser-projects.is-list{display:flex;flex-direction:column;gap:8px}.browser-projects.is-list .ui-site{display:flex;align-items:center;padding:10px 12px;min-height:94px}.browser-projects.is-list .ui-thumb{width:106px;height:72px;flex-shrink:0;border-radius:6px;border:1px solid var(--ui-line)}.browser-projects.is-list .ui-site-row{flex:1;min-height:0;padding:4px 4px 4px 18px;min-width:0;padding-right:44px}.browser-projects.is-list .browser-project-title{margin-bottom:7px}.browser-projects.is-list .browser-favourite{top:50%;transform:translateY(-50%);right:49px;box-shadow:none;background:transparent!important;border:0!important}.browser-projects.is-list .browser-project-date{width:auto;margin:0}.browser-projects.is-list .ui-menu{top:calc(100% - 5px)}.project-browser .ui-welcome{margin-top:0}.project-browser .ui-welcome-top{padding-top:0}.project-browser .ui-welcome-top h1{font-size:28px}
@media(max-width:1150px){.project-browser{grid-template-columns:200px minmax(0,1fr)}.browser-topbar{padding:14px 24px}.browser-main{padding:28px 24px}.browser-section-top{align-items:flex-start;flex-wrap:wrap}.browser-cloud-state [data-cloud-label]{max-width:135px}.browser-projects.ui-dash-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}}
@media(max-width:800px){.project-browser{grid-template-columns:minmax(0,1fr)}.project-browser-nav{display:none;position:fixed;inset:0 auto 0 0;width:252px;height:100dvh;z-index:51;box-shadow:var(--ui-shadow)}.project-browser-nav.is-open{display:flex}.browser-nav-toggle,.browser-nav-close{display:inline-flex!important}.browser-nav-close{margin-left:auto}.browser-nav-scrim{display:block!important;position:fixed;inset:0;z-index:50;border:0;background:#0006}.browser-topbar{gap:8px;padding:12px 16px;min-height:66px}.browser-upload{display:none}.browser-main{padding:24px 20px}.browser-greeting{align-items:flex-start;flex-direction:column;gap:12px;margin-bottom:28px}.browser-greeting h1{font-size:25px}.browser-cloud-state.cloud-summary{gap:8px}.browser-cloud-state [data-cloud-label]{max-width:none;width:auto!important;order:0!important}.browser-projects.ui-dash-grid{gap:16px}.browser-footer{flex-direction:column}}
@media(max-width:600px){.browser-topbar{flex-wrap:wrap}.browser-search{order:5;flex-basis:100%;max-width:none}.browser-topbar>.ui-btn.primary{margin-left:auto;min-height:38px}.browser-main{padding:24px 16px}.browser-controls{width:100%;gap:7px}.browser-controls select{flex:1;min-width:0;width:110px}.browser-view-switch{display:none}.browser-controls>.ui-btn{min-width:44px}.browser-controls>.ui-btn>span{display:none}.browser-projects.is-list .ui-site{padding:10px 8px}.browser-projects.is-list .ui-thumb{width:78px;height:64px}.browser-projects.is-list .ui-site-row{padding-left:12px;padding-right:32px}.browser-projects.is-list .browser-favourite{right:40px;width:27px}.browser-projects.is-list .browser-project-date{width:100%;margin-top:2px}.browser-projects.is-list .browser-project-folder{display:none}.browser-project-title{font-size:13px}.browser-projects .ui-site-sub{font-size:10px;gap:5px}.browser-section-top{gap:16px}.browser-folder-actions{flex-wrap:wrap}.browser-recovery .ui-row{flex-wrap:wrap}.browser-empty{padding:40px 18px}.browser-nav-bottom .cloud-default-appearance{gap:8px}.project-browser .ui-welcome-grid{grid-template-columns:1fr 1fr}.project-browser .ui-wcard{padding:16px}.project-browser .ui-welcome-top h1{font-size:24px}.project-browser .ui-welcome-top p{font-size:13px}}
.browser-projects.is-list .ui-site{flex-direction:row}
.browser-projects.is-list .ui-site-row{padding-right:76px}.browser-projects.is-list .ui-site-row>[data-menu]{position:absolute;right:0;top:50%;transform:translateY(-50%)}
@media(max-width:600px){.browser-projects.is-list .ui-site-row{padding-right:68px}.browser-projects.is-list .browser-favourite{right:44px;width:36px;height:44px}.browser-projects.is-list .ui-site-row>[data-menu]{width:36px;height:44px}.browser-nav-item{min-height:44px}}
@media(max-width:600px){.browser-topbar>.ui-btn.primary,.browser-avatar,.browser-nav-toggle{min-height:44px}.browser-avatar{width:44px}.browser-topbar{scroll-padding-top:120px}}
#modalCard.cloud-conflict{max-width:1200px;width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto}.cloud-compare{display:grid;grid-template-columns:1fr 1fr;gap:20px}.cloud-compare article{min-width:0;padding:16px;border:1px solid var(--ui-line);border-radius:12px}.cloud-compare h3{margin:0 0 8px}.cloud-compare p{font-size:12px;color:var(--ui-muted)}.cloud-compare iframe{display:block;width:100%;height:360px;border:1px solid var(--ui-line);background:white;margin:12px 0}.cloud-conflict #conflictStatus{color:var(--ui-accent)}@media(max-width:700px){.cloud-compare{grid-template-columns:1fr}.cloud-compare iframe{height:260px}}
#cloudConnectionNotice,#cloudEditorPausedNotice{position:fixed;inset:76px 0 0;z-index:450;background:color-mix(in srgb,var(--ui-bg) 94%,transparent);display:grid;place-items:center;padding:24px}#cloudConnectionNotice[hidden],#cloudEditorPausedNotice[hidden]{display:none}#cloudConnectionNotice>div,#cloudEditorPausedNotice>div{max-width:520px;border:1px solid var(--ui-line);border-radius:16px;background:var(--ui-raise);padding:28px;box-shadow:var(--ui-shadow)}#cloudConnectionNotice button,#cloudEditorPausedNotice button{margin:8px 8px 0 0}.cloud-edit-paused .ui-top .ui-edit-only:not(#status):not(#btnExport){pointer-events:none;opacity:.5}.cloud-edit-paused .phone-bar{pointer-events:none;opacity:.5}body:has(#modal:not([hidden])) :is(#cloudConnectionNotice,#cloudEditorPausedNotice){display:none}
#modalCard.cloud-share{max-width:640px}.cloud-share form{display:grid;gap:12px;padding:18px 0 24px;border-bottom:1px solid var(--ui-line)}.cloud-share form label{font-weight:600;font-size:13px}.cloud-share form .hint{margin:0}.cloud-share-people article{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--ui-line)}.cloud-share-people article>div{flex:1;min-width:0}.cloud-share-people b{overflow-wrap:anywhere;font-size:13px}.cloud-share-people small{display:block;color:var(--ui-muted);margin-top:5px}.cloud-share-people select{width:145px}.cloud-share-people .danger{flex:none}.cloud-incoming{border:1px solid var(--ui-accent);border-radius:12px;padding:20px;margin:0 0 30px;background:var(--ui-accent-soft)}.cloud-incoming-head h2{margin:0;font-size:19px}.cloud-incoming-head p,.cloud-incoming article p{font-size:13px;color:var(--ui-muted)}.cloud-incoming article{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 0;border-top:1px solid var(--ui-line)}.cloud-incoming article b{overflow-wrap:anywhere}.cloud-incoming .ui-row{flex:none;margin:0}.cloud-is-shared,.cloud-access-badge{background:var(--ui-accent-soft);color:var(--ui-accent);padding:4px 8px;border-radius:5px;font-size:11px}.cloud-project-owner{width:100%;color:var(--ui-muted)}.cloud-comment-author{font-weight:600;overflow-wrap:anywhere}.cloud-review-only #modeSeg,.cloud-review-only #btnUndo,.cloud-review-only #btnRedo,.cloud-review-only .ui-left,.cloud-review-only #miniDock,.cloud-review-only #btnRight{display:none!important}.cloud-review-only #siteName{pointer-events:none}.cloud-access-removed .ui-main{pointer-events:none}.cloud-review-only [data-phone=add],.cloud-review-only [data-phone=inspect],.cloud-review-only [data-phone=outline]{display:none!important}@media(max-width:600px){.cloud-incoming{padding:16px}.cloud-incoming article{align-items:stretch;flex-direction:column;gap:8px}.cloud-incoming .ui-row{justify-content:flex-end}.cloud-share-people article{flex-wrap:wrap}.cloud-share-people article>div{flex-basis:100%}.cloud-share-people select{flex:1}.cloud-review-only #cloudReviewBadge{display:none}#cloudShareButton{font-size:12px;padding:8px}}
.cloud-review-only [data-phone=data],.cloud-review-only [data-phone=design]{display:none!important}body.phone-layout.cloud-review-only #phoneDock{grid-template-columns:repeat(2,minmax(0,1fr))}.cloud-share-people select{width:168px}

.cloud-review-only #btnFileActions,.cloud-review-only #btnExport,.cloud-review-only #projectTools,.cloud-review-only [data-phone-action="export"],.cloud-review-only [data-phone-action="recovery"]{display:none!important}
.cloud-comment-thread{margin:12px 0 0 12px;border-left:2px solid var(--ui-line,#777);padding-left:12px}.cloud-comment-thread article{padding:10px 0}.cloud-comment-thread time{display:block;font-size:11px;opacity:.7}.cloud-comment-thread p{white-space:pre-wrap}.cloud-comment-thread textarea{width:100%;min-height:64px;margin:6px 0}.cloud-edit-request{padding:12px 0}

@media print{body.cloud-review-only{display:none!important}}

.cloud-thread-controls{display:flex;align-items:center;gap:14px;margin-top:8px}.cloud-thread-controls button{display:inline-flex;align-items:center;gap:5px;font-size:12px;min-height:32px;padding:3px 0}.cloud-thread-controls svg{width:15px;height:15px}.cloud-comment-thread{margin:4px 0 0 4px;padding-left:10px}.cloud-comment-thread[hidden],.cloud-comment-thread [hidden]{display:none!important}.cloud-comment-thread article{padding:8px 0}.cloud-reply-meta{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:12px}.cloud-reply-meta time{display:inline;font-size:10px;white-space:nowrap}.cloud-comment-thread article p{font-size:13px;margin:4px 0;line-height:1.45;overflow-wrap:anywhere}.cloud-comment-thread textarea{min-height:60px;font-size:13px;margin:6px 0}.cloud-reply-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px}.cloud-reply-actions button{font-size:12px;min-height:32px;padding:5px 10px}

.browser-restore-tabs{display:flex;align-items:center;gap:14px;margin:0 0 22px}.browser-restore-tabs>span{font-size:12px;color:var(--ui-muted)}.browser-restore-tabs button{display:inline-flex;align-items:center;gap:8px}.browser-restore-tabs small{background:var(--ui-accent-soft);color:var(--ui-accent);padding:2px 6px;border-radius:4px}@media(max-width:600px){.browser-restore-tabs{align-items:flex-start;flex-direction:column;gap:6px}}

.cloud-project-placeholder{height:100%;box-sizing:border-box;padding:24px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;background:linear-gradient(145deg,#e7f3f8,#f7f7fc);color:#18262e;text-align:center;overflow:hidden}.cloud-project-placeholder svg{width:28px;height:28px;color:#106c96}.cloud-project-placeholder b{font-size:15px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cloud-project-placeholder small{font-size:11px;color:#6f6f6f}@media(max-width:600px){.browser-projects.is-list .cloud-project-placeholder{padding:10px}.browser-projects.is-list .cloud-project-placeholder b,.browser-projects.is-list .cloud-project-placeholder small{display:none}}

/* Compact dashboard overview: preserve actions, prioritise project space. */
.browser-main{padding-top:20px}
.browser-greeting{gap:12px;margin-bottom:20px;flex-wrap:wrap}
.browser-greeting>div:first-child{flex:1;min-width:180px}
.browser-greeting h1{font-size:23px}
.browser-restore-tabs{margin:0;gap:0;flex-shrink:0}
.browser-restore-tabs button{min-height:36px}
.browser-section-top{gap:12px;margin-bottom:14px;flex-wrap:wrap}
.browser-section-top>div:first-child{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.browser-section-top h2{margin:0}
.browser-controls{margin-left:auto}
@media(max-width:800px){
.browser-main{padding-top:16px}
.browser-greeting{flex-direction:row;align-items:center;gap:10px;margin-bottom:16px}
.browser-greeting h1{font-size:22px}
.browser-greeting>div:first-child{flex-basis:100%}
.browser-cloud-state.cloud-summary{margin-left:auto;flex-shrink:1;flex-wrap:wrap}
.browser-restore-tabs button,.browser-cloud-state .ui-btn{min-height:44px}
.browser-cloud-state .ui-btn{width:44px}
}
@media(max-width:600px){
.browser-section-top{gap:10px}
.browser-controls select,.browser-controls>.ui-btn{min-height:44px}
.browser-greeting .browser-cloud-state [data-cloud-label]{font-size:10px}
}

.browser-private:has([data-project-presence]){display:inline-flex;align-items:center;gap:5px}
[data-project-presence]{display:inline-flex;align-items:center;justify-content:center;min-width:22px;min-height:22px;border-radius:4px;color:var(--ui-muted)}
[data-project-presence] svg{width:16px;height:16px}
[data-project-presence][data-state="available"]{color:#17803d;background:#dcfce7}
[data-project-presence][data-state="occupied"]{color:#b91c1c;background:#fee2e2}
[data-project-presence]:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}

.cloud-publish{max-width:580px}.cloud-publish-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.cloud-publish-message{min-height:1.5em;overflow-wrap:anywhere}.cloud-publish input{width:100%;box-sizing:border-box}.cloud-publish .ui-row{flex-wrap:wrap}
#fileActionsMenu [data-file-action="publish"][hidden]{display:none}

.cloud-publish a.ui-btn{color:var(--ui-ink);text-decoration:none}.cloud-publish .ui-field{display:block;margin:16px 0 10px}

.browser-published-preview{display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:28px;border-radius:5px;background:var(--ui-accent-soft);color:var(--ui-accent);text-decoration:none}.browser-published-preview svg{width:16px;height:16px}.browser-published-preview:hover{background:var(--ui-hover)}.browser-published-preview:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}@media(max-width:600px){.browser-published-preview{min-width:44px;min-height:44px}}

/* Project cards separate access, presence and public sharing with visible labels. */
.browser-projects .ui-site{display:flex;flex-direction:column}
.browser-projects .ui-site-row{display:flex;flex-direction:column;align-items:stretch;flex:1;padding:16px 14px 10px;gap:12px;min-height:0}
.browser-projects .ui-site-meta{width:100%}
.browser-projects .browser-project-title{white-space:normal;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.4;font-size:15px;margin-bottom:9px;text-overflow:ellipsis}
.browser-projects .ui-site-sub{display:flex;flex-direction:column;align-items:flex-start;gap:7px;font-size:12px;line-height:1.4}
.browser-project-type{order:0;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--ui-muted)}
.browser-private,.browser-private.cloud-is-shared{order:1;display:inline-flex;align-items:center;gap:6px;background:none;padding:0;border-radius:0;font-size:12px;color:var(--ui-ink);font-weight:500}
.browser-private svg{width:14px;height:14px;flex-shrink:0;color:var(--ui-muted)}
.browser-projects .cloud-project-owner{order:2;font-size:11px;overflow-wrap:anywhere}
.browser-project-live{order:3}
.browser-project-live:empty{display:none}
.browser-project-live [data-project-presence]{gap:6px;min-height:0;min-width:0;font-size:11px;padding:0;background:none!important;border-radius:0}
.browser-project-live [data-project-presence] svg{width:14px;height:14px;flex-shrink:0}
.browser-project-live [data-project-presence][data-state="available"]{color:var(--ui-muted)}
.browser-project-live [data-project-presence][data-state="available"] svg{color:#17803d}
.browser-project-live [data-project-presence][data-state="occupied"]{color:#b91c1c}
.browser-published-preview{order:4;display:inline-flex;gap:6px;min-width:0;min-height:28px;padding:0;background:none;border-radius:4px;font-size:12px;font-weight:550}
.browser-published-preview:hover{text-decoration:underline;background:none}
.browser-published-preview svg{width:14px;height:14px}
.browser-published-preview svg:last-child{width:12px;height:12px}
.browser-project-folder{order:5;font-size:11px}
.browser-project-date{order:6;width:auto;margin:0;font-size:11px;color:var(--ui-muted)}
.browser-save-warning{order:7;font-size:11px}
.browser-card-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--ui-line);padding-top:8px;margin-top:auto}
.browser-card-actions .ui-btn{min-height:34px;font-size:11px;padding:6px 8px;gap:6px}
.browser-card-actions .ui-btn svg{width:15px;height:15px}
.browser-projects .browser-favourite,.browser-projects.is-list .browser-favourite{position:static;transform:none;width:auto;height:auto;box-shadow:none!important;background:transparent!important;border:0!important;color:var(--ui-muted)}
.browser-projects .browser-favourite.is-favourite{color:var(--ui-accent)}
.browser-projects.is-list .ui-site{align-items:flex-start;padding:12px}
.browser-projects.is-list .ui-site-row{padding:0 0 0 14px;gap:10px}
.browser-projects.is-list .ui-site-row>[data-menu]{position:static;transform:none}
.browser-projects.is-list .browser-project-title{margin-bottom:7px}
.browser-projects.is-list .ui-thumb{margin-top:2px}
.browser-group-label{font-size:12px;color:var(--ui-muted);font-weight:600;margin:20px 0 12px}
.browser-folders{margin-bottom:22px}
.browser-folders .browser-folder-card{position:relative;min-height:222px;height:222px;background:var(--ui-panel)}
.browser-folder-card .ui-folder-go{position:absolute;inset:0;justify-content:flex-start;gap:6px;padding:16px;border-radius:12px}
.browser-folder-name{display:flex;align-items:center;gap:8px;width:100%;padding-right:28px;box-sizing:border-box}
.browser-folder-name svg{color:var(--ui-accent);width:20px;height:20px;flex-shrink:0}
.browser-folder-name b{padding:0;font-size:14px}
.browser-folder-card .ui-folder-go>span:nth-child(2){color:var(--ui-muted);font-size:11px}
.browser-folder-card .ui-folder-previews{left:16px;right:16px;top:78px;bottom:16px;gap:6px;grid-template-rows:repeat(2,minmax(0,1fr))}
.browser-folder-card .ui-folder-preview{border-radius:5px;box-shadow:none}
.browser-folder-card .cloud-project-placeholder{padding:8px;gap:2px}
.browser-folder-card .cloud-project-placeholder b{font-size:9px}
.browser-folder-card .cloud-project-placeholder svg{width:18px;height:18px}
.browser-folder-card .cloud-project-placeholder small{display:none}
.browser-folder-empty-hint{font-size:12px;color:var(--ui-muted);line-height:1.5;max-width:190px;margin-top:45px}
@media(max-width:600px){
 .browser-projects.is-list .ui-thumb{width:90px;height:70px}
 .browser-projects.is-list .ui-site-row{padding:0 0 0 12px}
 .browser-projects .browser-project-title{font-size:14px}
 .browser-card-actions .ui-btn{min-height:44px}
 .browser-projects .browser-published-preview{min-height:44px}
 .browser-folders{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
 .browser-folders .browser-folder-card{height:192px;min-height:192px}
 .browser-folder-card .ui-folder-go{padding:12px}
 .browser-folder-card .ui-folder-previews{left:12px;right:12px;top:78px;bottom:12px;gap:4px}
 .browser-folder-name{gap:5px;padding-right:22px}
 .browser-folder-name b{font-size:12px}
 .browser-folder-name svg{width:16px;height:16px}
 .browser-folder-card>[data-menu]{top:6px;right:2px;width:32px;min-height:44px}
}

:root[data-editor-mode="dark"] .browser-project-live [data-project-presence][data-state="occupied"]{color:#fda4af}:root[data-editor-mode="dark"] .browser-project-live [data-project-presence][data-state="available"] svg{color:#86efac}

/* Preview status tools reveal on hover and keyboard focus; More stays in the footer. */
.browser-preview-wrap{position:relative;border-radius:11px 11px 0 0}
.browser-preview-shade{position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:linear-gradient(180deg,#10152488,transparent 75%);opacity:0;transition:opacity .2s ease}
.browser-project-tools{position:absolute;z-index:3;right:10px;top:10px;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;max-width:calc(100% - 20px);opacity:0;transform:translateY(-5px);transition:opacity .2s ease,transform .2s ease;pointer-events:none}
.browser-projects .ui-site:hover .browser-project-tools,.browser-projects .ui-site:focus-within .browser-project-tools{opacity:1;transform:translateY(0);pointer-events:auto}
.browser-projects .ui-site:hover .browser-preview-shade,.browser-projects .ui-site:focus-within .browser-preview-shade{opacity:1}
.browser-project-tools .browser-preview-tool,.browser-project-tools .browser-favourite,.browser-project-tools .browser-published-preview{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;min-width:32px;min-height:32px;padding:0;border:1px solid #ffffff70!important;border-radius:7px;background:#fff!important;color:#424242!important;box-shadow:0 2px 8px #0002!important;text-decoration:none;transform:none;cursor:pointer}
.browser-project-tools .browser-preview-tool{box-sizing:border-box}
.browser-project-tools .browser-preview-tool svg{width:17px;height:17px;flex:none}
.browser-project-tools .browser-favourite{order:40}
.browser-project-tools .browser-favourite.is-favourite{color:#106c96!important;background:#e7f3f8!important}
.browser-project-tools .browser-favourite.is-favourite svg{fill:#3346d325}
.browser-shared-status{order:10}
.browser-project-tools [data-project-presence]{order:20;cursor:default}
.browser-project-tools .browser-published-preview{order:30;color:#106c96!important}
.browser-preview-tool:hover{filter:brightness(.96)}
.browser-preview-tool:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}
.browser-tool-label{position:absolute;right:0;top:calc(100% + 8px);z-index:10;width:max-content;max-width:210px;box-sizing:border-box;padding:7px 9px;border-radius:6px;background:#151923;color:#fff;font-size:11px;font-weight:500;line-height:1.4;text-align:left;white-space:normal;box-shadow:0 3px 12px #0003;opacity:0;visibility:hidden;transform:translateY(-3px);transition:opacity .15s ease,transform .15s ease,visibility .15s;pointer-events:none}
.browser-preview-tool:hover .browser-tool-label,.browser-preview-tool:focus-visible .browser-tool-label{opacity:1;visibility:visible;transform:translateY(0)}
.browser-presence-dot{box-sizing:border-box;width:17px;height:17px;flex:none;border-radius:50%;background:#707783;border:2px solid #fff;box-shadow:inset 0 0 0 1px #707783}
[data-project-presence][data-state="available"] .browser-presence-dot{background:#17803d;box-shadow:inset 0 0 0 1px #17803d}
[data-project-presence][data-state="occupied"] .browser-presence-dot{background:#b91c1c;box-shadow:inset 0 0 0 1px #b91c1c}
.browser-card-actions{position:relative;justify-content:flex-end}
.browser-card-actions>.ui-menu{right:0;top:auto!important;bottom:calc(100% + 6px);z-index:20;min-width:175px}
.browser-projects.is-list .browser-preview-wrap{flex:none;width:106px;border-radius:6px}
.browser-projects.is-list .ui-thumb{width:106px;height:100px;margin:0}
.browser-projects.is-list .browser-project-tools{top:6px;right:6px;gap:4px;max-width:calc(100% - 12px)}
.browser-projects.is-list .browser-preview-shade{border-radius:6px}
@media(hover:none),(pointer:coarse){
 .browser-project-tools{opacity:1;transform:none;pointer-events:auto}
 .browser-preview-shade{opacity:1}
 .browser-project-tools .browser-preview-tool{width:44px;height:44px;min-width:44px;min-height:44px}
}
@media(max-width:600px){
 .browser-projects.is-list .browser-preview-wrap{width:106px}
 .browser-projects.is-list .ui-thumb{width:106px;height:104px}
 .browser-project-tools{opacity:1;transform:none;pointer-events:auto}
 .browser-preview-shade{opacity:1}
 .browser-project-tools .browser-preview-tool,.browser-project-tools .browser-favourite,.browser-project-tools .browser-published-preview{width:44px;height:44px;min-width:44px;min-height:44px}
 .browser-project-tools .browser-tool-label{max-width:180px}
}
@media(prefers-reduced-motion:reduce){.browser-project-tools,.browser-preview-shade,.browser-tool-label{transition:none}}
.browser-projects.is-list .browser-project-tools .browser-preview-tool{position:relative;width:32px;height:32px;min-width:32px;min-height:32px}
@media(max-width:600px),(hover:none),(pointer:coarse){.browser-projects.is-list .browser-project-tools .browser-preview-tool{width:44px;height:44px;min-width:44px;min-height:44px}}
.browser-projects.is-list .browser-tool-label{left:0;right:auto}
.browser-projects .browser-project-tools .browser-preview-tool{inset:auto;transform:none;margin:0}

/* Compact card details and dashboard filters. */
.browser-projects .ui-site-row{position:relative;padding-bottom:16px;min-height:78px}
.browser-projects .ui-site-sub{padding-right:74px}
.browser-projects .browser-card-actions{position:absolute;right:12px;bottom:8px;margin:0;padding:0;border:0;gap:0}
.browser-projects.is-list .ui-site-row{padding-bottom:12px;min-height:104px}
.browser-projects.is-list .browser-card-actions{right:0;bottom:0}
.browser-preview-shade{background:linear-gradient(180deg,#101524d9 0%,#1015249c 55%,#10152455 100%)}
.browser-type-status{order:0;cursor:default!important}
.browser-projects .browser-project-tools .browser-favourite{background:#fff!important}
.browser-projects .browser-project-tools .browser-favourite.is-favourite{background:#e7f3f8!important}
.browser-controls select.ui-input{box-sizing:border-box;appearance:none;-webkit-appearance:none;min-width:150px;padding:8px 38px 8px 12px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236f7774' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px 16px}
@media(max-width:600px){
 .browser-controls select.ui-input{min-width:0;padding:10px 34px 10px 12px;background-position:right 10px center}
 .browser-projects.is-list .browser-preview-wrap:has([data-project-presence]):has([data-published-preview]) .ui-thumb{height:152px}
 .browser-projects.is-list .browser-preview-wrap:has([data-project-presence]):has([data-published-preview]){min-height:152px}
}
@media(hover:none),(pointer:coarse){.browser-projects.is-list .browser-preview-wrap:has([data-project-presence]):has([data-published-preview]) .ui-thumb{height:152px}}

.browser-projects .ui-site-sub{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:8px;row-gap:5px;padding-right:0}
.browser-projects .cloud-project-owner,.browser-projects .browser-project-folder,.browser-projects .browser-save-warning{grid-column:1 / -1}
.browser-projects .browser-project-date{grid-column:1;order:6}
.browser-projects .browser-card-actions,.browser-projects.is-list .browser-card-actions{position:relative;inset:auto;grid-column:2;order:6;margin:0;padding:0;border:0}
:root[data-editor-mode="dark"] .browser-controls select.ui-input{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b9c1bd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}

/* Compact status row below the title on phones and tablets. */
@media(max-width:1100px),(max-width:1366px) and (pointer:coarse){
 .browser-projects .ui-site-meta>.browser-project-tools{position:relative;inset:auto;display:flex;justify-content:flex-start;align-items:center;gap:8px;max-width:100%;margin:7px 0 6px;opacity:1;transform:none;pointer-events:auto;z-index:3}
 .browser-projects .browser-project-tools .browser-preview-tool,
 .browser-projects.is-list .browser-project-tools .browser-preview-tool{width:24px;height:24px;min-width:24px;min-height:24px;border-radius:5px;box-shadow:none!important;background:transparent!important;border-color:transparent!important;color:var(--ui-ink)!important}
 .browser-projects .browser-project-tools .browser-preview-tool svg{width:14px;height:14px}
 .browser-projects .browser-project-tools .browser-presence-dot{width:14px;height:14px;border-width:1px}
 .browser-projects .browser-project-tools .browser-favourite.is-favourite{color:var(--ui-accent)!important;background:var(--ui-accent-soft,#e7f3f8)!important}
 .browser-projects .browser-preview-shade{display:none}
 .browser-projects .browser-tool-label{left:0;right:auto}
 .browser-projects.is-list .ui-thumb{height:104px}
}
.project-size-summary{display:grid;gap:0;margin:20px 0}.project-size-summary>div{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid var(--ui-line)}.project-size-summary dt{color:var(--ui-muted);font-size:14px}.project-size-summary dd{margin:0;color:var(--ui-ink);font-weight:600;font-size:20px;font-variant-numeric:tabular-nums}

.phone-action-grid>.phone-file-group{grid-column:1/-1;border:1px solid var(--ui-line);border-radius:12px;overflow:hidden}
.phone-file-group>summary{display:flex;align-items:center;gap:12px;padding:14px 16px;min-height:48px;cursor:pointer;list-style:none}
.phone-file-group>summary::-webkit-details-marker{display:none}
.phone-file-group>summary>span{flex:1}
.phone-file-group>summary small{display:block;color:var(--ui-muted);font-size:12px;margin-top:3px}
.phone-file-group>summary svg{width:20px;height:20px;flex-shrink:0}
.phone-file-group[open]>summary{border-bottom:1px solid var(--ui-line)}
.phone-file-group[open]>summary>svg:last-child{transform:rotate(180deg)}
.phone-file-options{padding:8px 12px 12px;display:grid;gap:6px}
.phone-file-options h3{font-size:12px;color:var(--ui-muted);margin:12px 4px 4px}
.phone-action-grid .phone-file-options button{min-height:44px;padding:10px 12px;justify-content:flex-start}
.phone-file-options .hint{margin:8px 4px 0}
.ui-sheet .rown{min-width:76px}
.ui-dsgrip{display:inline-flex;align-items:center;gap:3px;min-height:28px;padding:2px 4px;border:0;border-radius:4px;background:transparent;color:inherit;font:inherit;cursor:grab;touch-action:none}
.ui-dsgrip svg{width:12px;height:16px;opacity:.55}
.ui-dsgrip:focus-visible{outline:2px solid var(--ui-accent);outline-offset:1px}
.ds-is-dragging,.ds-is-dragging *{cursor:grabbing!important;user-select:none!important}
.ui-sheet tr.ds-drop-before>*{box-shadow:inset 0 3px var(--ui-accent)}
.ui-sheet tr.ds-drop-after>*{box-shadow:inset 0 -3px var(--ui-accent)}
.ui-sheet .ds-drop-before:not(tr){box-shadow:inset 3px 0 var(--ui-accent)}
.ui-sheet .ds-drop-after:not(tr){box-shadow:inset -3px 0 var(--ui-accent)}
.foldoo-admin-shell{position:fixed;inset:0;z-index:1200;background:#f6f7fb}
.foldoo-admin-shell[hidden]{display:none}
.foldoo-admin-shell iframe{display:block;border:0;width:100%;height:100dvh}
body.view-admin{overflow:hidden}
/* Dashboard announcements use existing workspace colours. */
.foldoo-announcements{display:grid;gap:10px;margin:0 0 20px}.foldoo-announcement{border:1px solid var(--ui-line,#d9dce5);border-left:3px solid #147dad;border-radius:8px;padding:12px 16px;background:var(--ui-panel,#fff);color:var(--ui-ink,#202332)}.foldoo-announcement-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.foldoo-announcement h3{font-size:14px;margin:2px 0}.foldoo-announcement small{font-size:11px;opacity:.75}.foldoo-announcement summary{cursor:pointer;font-size:12px;margin-top:6px}.foldoo-announcement-body{overflow-wrap:anywhere;line-height:1.6;font-size:14px}.foldoo-announcement a{display:inline-block;margin:8px 0}.foldoo-updates-dialog{width:min(600px,calc(100vw - 24px));max-height:85dvh;border:1px solid var(--ui-line,#ddd);border-radius:14px;padding:0;background:var(--ui-panel,#fff);color:var(--ui-ink,#202332)}.foldoo-updates-dialog::backdrop{background:#12152c66}.foldoo-updates-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--ui-line,#ddd);position:sticky;top:0;background:inherit}.foldoo-updates-dialog h2{font-size:18px;margin:0}.foldoo-updates-content{padding:16px;display:grid;gap:12px}

.foldoo-announcement-body p{margin:8px 0}.foldoo-announcement-body ul,.foldoo-announcement-body ol{padding-left:24px;margin:8px 0}.foldoo-announcement-body h3{font-size:17px;margin:12px 0 6px}
.browser-feedback-link{display:inline-flex;align-items:center;gap:6px;font-size:12px}.browser-feedback-link svg{width:15px;height:15px}.foldoo-feedback-dialog{width:min(560px,calc(100vw - 24px));max-height:90dvh;overflow:auto;border:1px solid var(--ui-line);border-radius:14px;background:var(--ui-panel);color:var(--ui-ink);padding:0}.foldoo-feedback-dialog::backdrop{background:#12152c66}.foldoo-feedback-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid var(--ui-line)}.foldoo-feedback-dialog h2{font-size:20px;line-height:1.3;margin:0}.foldoo-feedback-dialog header p{font-size:13px;color:var(--ui-muted);margin:8px 0 0}.foldoo-feedback-dialog form,.foldoo-feedback-content{padding:20px 24px}.foldoo-feedback-dialog .ui-field{display:grid;gap:7px;margin-bottom:16px}.foldoo-feedback-dialog textarea{resize:vertical;min-height:130px}.foldoo-feedback-dialog footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:18px}.foldoo-feedback-context{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.5}.foldoo-feedback-tabs{padding:12px 24px 0;display:flex;gap:16px;align-items:center}.foldoo-feedback-dialog [data-feedback-message]{font-size:13px;overflow-wrap:anywhere}.foldoo-feedback-record{padding:16px 0;border-bottom:1px solid var(--ui-line)}.foldoo-feedback-record>div{display:flex;justify-content:space-between;gap:12px}.foldoo-feedback-record span,.foldoo-feedback-record small{color:var(--ui-muted);font-size:11px}.foldoo-feedback-record summary{cursor:pointer;font-size:12px;margin-top:8px}.foldoo-feedback-record p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6}@media(max-width:600px){.foldoo-feedback-dialog>header,.foldoo-feedback-dialog form,.foldoo-feedback-content{padding:16px}.foldoo-feedback-tabs{padding:12px 16px 0}.browser-footer{flex-wrap:wrap;gap:12px}}

.cloud-design-bar{display:flex;gap:16px;justify-content:space-between;align-items:center;padding:12px 20px;border-bottom:1px solid var(--ui-line);background:var(--ui-raise);z-index:480}.cloud-design-bar[hidden]{display:none}.cloud-design-bar small{display:block;color:var(--ui-muted);margin-top:4px}.cloud-design-bar>div:last-child{display:flex;gap:8px;flex-wrap:wrap}.design-editor #btnExport,.design-editor #btnSites,.design-editor #status,.design-editor .ui-tabs{display:none!important}@media(max-width:700px){.cloud-design-bar{flex-wrap:wrap;padding:10px;font-size:12px}.cloud-design-bar .ui-btn{font-size:12px;min-height:36px}}
.project-library-dialog{width:min(1100px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--ui-line);border-radius:16px;background:var(--ui-bg);color:var(--ui-ink);overflow:auto}.project-library-dialog::backdrop{background:#0009}.project-library-dialog>header,.project-library-dialog>footer{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--ui-line);flex-wrap:wrap}.project-library-dialog>footer{border-top:1px solid var(--ui-line);border-bottom:0;justify-content:flex-end}.project-library-body{padding:20px}.project-library-body>p{margin:0 0 18px}.project-library-body label{display:block;margin:16px 0}.project-library-body select{display:block;width:100%;margin-top:8px}.project-library-list article{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--ui-line)}.project-library-list article>div{min-width:0;overflow-wrap:anywhere}.project-library-list small{display:block;margin-top:5px;color:var(--ui-muted)}.project-library-compare{display:grid;grid-template-columns:1fr 1fr;gap:16px}.project-library-compare section{min-width:0}.project-library-compare iframe{width:100%;height:52dvh;border:1px solid var(--ui-line);background:white;margin-top:10px}@media(max-width:650px){.project-library-compare{grid-template-columns:1fr}.project-library-compare iframe{height:38dvh}.project-library-dialog>header,.project-library-dialog>footer,.project-library-body{padding:14px}.project-library-dialog>footer .ui-btn{white-space:normal}}

.cloud-billing-banner{position:fixed;bottom:calc(env(safe-area-inset-bottom) + 90px);left:50%;transform:translateX(-50%);max-width:min(760px,calc(100% - 24px));padding:12px 16px;background:var(--ui-bg,#fff);color:var(--ui-text,#222);border:1px solid #bfe3f2;border-radius:12px;box-shadow:0 8px 24px #0002;z-index:1100;display:flex;align-items:center;gap:16px;font-size:13px}.cloud-billing-banner[hidden]{display:none}.cloud-billing-banner span{flex:1}.cloud-billing-usage{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.cloud-billing-usage div{background:#f1f2f9;padding:14px;border-radius:10px;color:#222;overflow-wrap:anywhere}.cloud-billing-usage span{display:block;margin-top:8px}.cloud-billing-choice{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #ddd;min-height:44px}.cloud-billing-choice input{width:20px;height:20px}.cloud-billing-choice span{overflow-wrap:anywhere}.cloud-billing-readonly #modeSeg{opacity:.65}@media(max-width:600px){.cloud-billing-usage{grid-template-columns:minmax(0,1fr)}.cloud-billing-banner{font-size:12px;gap:8px;padding:10px;bottom:calc(env(safe-area-inset-bottom) + 80px)}.cloud-billing-banner button{flex-shrink:0}}

.cloud-billing-dialog{box-sizing:border-box}.cloud-billing-dialog .ui-row{flex-wrap:wrap}.cloud-billing-dialog .ui-btn{white-space:normal;max-width:100%}.cloud-billing-dialog .foldoo-feedback-content{min-width:0;overflow-wrap:anywhere}.cloud-billing-dialog #cloudBillingChoose{padding:0}.cloud-billing-choice span{flex:1;min-width:0;overflow-wrap:anywhere}.cloud-billing-choice button{flex:none}@media(max-width:600px){.cloud-billing-dialog .ui-row{display:grid;grid-template-columns:1fr}.cloud-billing-dialog .ui-row .ui-btn{width:100%}.cloud-billing-dialog .cloud-billing-choice{gap:8px}.cloud-billing-dialog .cloud-billing-choice button{padding:8px;font-size:12px}}

.cloud-ai-connections{box-sizing:border-box}.cloud-ai-connections .ui-row{flex-wrap:wrap}.cloud-ai-connections .ui-btn{white-space:normal;max-width:100%}.cloud-ai-connections form{padding:16px 0;border-top:1px solid var(--ui-line)}.cloud-ai-connections .ui-field{display:grid;gap:8px;margin:16px 0}.cloud-ai-connections .ui-input{width:100%;min-width:0;box-sizing:border-box}.cloud-ai-connections .foldoo-feedback-content{overflow-wrap:anywhere;min-width:0}.cloud-ai-links{display:flex;flex-wrap:wrap;gap:16px;margin:12px 0}.cloud-ai-connections summary{cursor:pointer;margin:14px 0}.cloud-ai-status{font-weight:600}.cloud-ai-connections .ui-seg [aria-pressed=true]{background:var(--ui-accent-soft);color:var(--ui-accent)}@media(max-width:600px){.cloud-ai-connections .ui-row{display:grid;grid-template-columns:1fr}.cloud-ai-connections .ui-row .ui-btn{width:100%}}

#cloudBuddyButton[hidden],#cloudBuddyPanel[hidden]{display:none!important}#cloudBuddyPanel{position:fixed;right:8px;top:var(--buddy-top,90px);bottom:12px;width:min(348px,calc(100vw - 16px));z-index:800;display:flex;flex-direction:column;background:var(--ui-panel);color:var(--ui-ink);border:1px solid var(--ui-line);border-radius:12px;box-shadow:0 8px 28px #0003;font-size:13px;box-sizing:border-box}#cloudBuddyPanel>header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid var(--ui-line)}#cloudBuddyPanel h2{display:flex;align-items:center;gap:8px;font-size:16px;margin:0}#cloudBuddyPanel h2 svg{width:18px;height:18px}#cloudBuddyPanel .ui-btn{font-size:12px;min-height:36px;white-space:normal}#cloudBuddyPanel .cloud-buddy-target{padding:12px 14px;border-bottom:1px solid var(--ui-line);overflow-wrap:anywhere}#cloudBuddyPanel .cloud-buddy-target small{display:block;margin:6px 0;color:var(--ui-muted)}#cloudBuddyPanel .cloud-buddy-target>div,.cloud-buddy-draft>div{display:flex;flex-wrap:wrap;gap:6px}#cloudBuddyPanel .cloud-buddy-connection{padding:10px 14px;display:flex;gap:10px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--ui-line)}#cloudBuddyPanel .cloud-buddy-connection>span{min-width:0;overflow-wrap:anywhere}#cloudBuddyPanel .cloud-buddy-connection button{flex:none;max-width:110px}#cloudBuddyPanel .cloud-buddy-body{padding:12px 14px;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}#cloudBuddyPanel summary{cursor:pointer;font-weight:600}#cloudBuddyPanel .cloud-buddy-original,#cloudBuddyPanel [data-buddy-draft]{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}#cloudBuddyPanel .cloud-buddy-error{background:var(--ui-bg);border-left:3px solid var(--ui-accent);padding:10px;overflow-wrap:anywhere}#cloudBuddyPanel .cloud-buddy-draft{padding:12px;border:1px solid var(--ui-accent);border-radius:8px;margin:12px 0}#cloudBuddyPanel .cloud-buddy-draft h3{margin:0;font-size:13px}#cloudBuddyPanel .cloud-buddy-chat p{padding:8px 10px;border-radius:8px;background:var(--ui-bg);overflow-wrap:anywhere;white-space:pre-wrap}#cloudBuddyPanel .cloud-buddy-compose{padding:12px 14px;border-top:1px solid var(--ui-line)}#cloudBuddyPanel textarea{width:100%;box-sizing:border-box;resize:vertical;max-height:130px;min-height:60px;font-size:14px}#cloudBuddyPanel .cloud-buddy-compose>div{display:flex;gap:8px;align-items:center;justify-content:flex-end;margin-top:8px}#cloudBuddyPanel .cloud-buddy-compose .hint{margin-right:auto}#cloudBuddyPanel .sr-only{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}@media(max-width:700px){#cloudBuddyButton{display:none!important}#cloudBuddyPanel{left:8px;right:8px;top:auto;bottom:calc(env(safe-area-inset-bottom) + 106px);width:auto;height:min(58dvh,calc(100dvh - var(--buddy-top,90px) - 116px));border-radius:16px}#cloudBuddyPanel .cloud-buddy-target{padding:8px 12px}#cloudBuddyPanel .cloud-buddy-connection{padding:8px 12px;font-size:11px}#cloudBuddyPanel .cloud-buddy-body{padding:10px 12px}#cloudBuddyPanel .cloud-buddy-compose{padding:8px 12px}#cloudBuddyPanel textarea{font-size:16px;min-height:48px}#cloudBuddyPanel .ui-btn{min-height:40px}}

#cloudBuddyPanel>header h2{margin-right:auto}#cloudBuddyPanel.is-collapsed{bottom:auto;height:auto}#cloudBuddyPanel.is-collapsed>:not(header){display:none}#cloudBuddyPanel.is-collapsed>header{border-bottom:0}@media(max-width:1100px){#cloudBuddyButton>span{display:none}}@media(max-width:700px){#cloudBuddyPanel.is-collapsed{bottom:calc(env(safe-area-inset-bottom) + 106px);top:auto;height:auto}}

/* Writing buddy remains reachable above the phone keyboard. Canvas layout is untouched. */
@media(max-width:700px){#cloudBuddyPanel.keyboard-open:not(.is-collapsed){bottom:var(--buddy-keyboard-bottom,8px);height:var(--buddy-keyboard-height,60dvh);max-height:none}#cloudBuddyPanel .ui-btn{min-height:44px}#cloudBuddyPanel.keyboard-open>header{padding:6px 12px}#cloudBuddyPanel.keyboard-open .cloud-buddy-target{padding:6px 12px}#cloudBuddyPanel.keyboard-open .cloud-buddy-target>b{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#cloudBuddyPanel.keyboard-open .cloud-buddy-target>small{display:none}#cloudBuddyPanel.keyboard-open .cloud-buddy-target>div{flex-wrap:nowrap}#cloudBuddyPanel.keyboard-open .cloud-buddy-connection{padding:4px 12px}}

/* Stage 5 — focused AI authoring workspace */
#cloudBuddyPanel{width:min(430px,calc(100vw - 20px));border-radius:18px;box-shadow:0 20px 65px #0003;overflow:hidden;font-size:14px}
#cloudBuddyPanel>header{padding:16px 18px;background:var(--ui-panel)}
#cloudBuddyPanel h2{font-size:17px;font-weight:750;margin-right:auto}
#cloudBuddyPanel .cloud-buddy-target{padding:13px 18px 10px;border-bottom:0;background:var(--ui-bg)}
#cloudBuddyPanel .cloud-buddy-target>b{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#cloudBuddyPanel .cloud-buddy-target small{font-size:11px;margin:4px 0 8px}
#cloudBuddyPanel .cloud-buddy-target>div{gap:8px}
#cloudBuddyPanel .cloud-buddy-target .ui-btn{min-height:30px;font-size:11px;padding:5px 10px}
#cloudBuddyPanel .cloud-buddy-connection{padding:9px 18px;gap:7px;border-bottom:1px solid var(--ui-line);font-size:12px}
#cloudBuddyPanel .cloud-buddy-powered{font-size:10px;color:var(--ui-muted);white-space:nowrap}
#cloudBuddyPanel .cloud-buddy-body{padding:10px 18px 15px;display:flex;flex-direction:column;gap:10px}
#cloudBuddyPanel .cloud-buddy-context{padding:10px 12px;border:1px solid var(--ui-line);border-radius:12px}
#cloudBuddyPanel .cloud-buddy-context-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px}
#cloudBuddyPanel .cloud-buddy-context-top span{color:var(--ui-muted);font-size:10px}
#cloudBuddyPanel .cloud-buddy-context-options{display:flex;gap:7px;margin-top:9px}
#cloudBuddyPanel .cloud-buddy-context-options label{border:1px solid var(--ui-line);border-radius:20px;padding:6px 10px;font-size:12px;cursor:pointer;display:flex;align-items:center;gap:5px}
#cloudBuddyPanel .cloud-buddy-context-options label:has(input:checked){background:var(--ui-bg);border-color:var(--ui-accent);font-weight:700}
#cloudBuddyPanel .cloud-buddy-context-options input{accent-color:var(--ui-accent)}
#cloudBuddyPanel .cloud-buddy-context .hint{font-size:11px;line-height:1.45;margin:8px 0 0}
#cloudBuddyPanel .cloud-buddy-original-details{font-size:12px}
#cloudBuddyPanel .cloud-buddy-original{background:var(--ui-bg);padding:10px;border-radius:9px}
#cloudBuddyPanel .cloud-buddy-chat{flex:1;min-height:90px;display:flex;flex-direction:column;justify-content:flex-end;gap:8px}
#cloudBuddyPanel .cloud-buddy-chat:empty:after{content:'Describe how you want to improve this text. I’ll draft a version you can review before applying.';display:block;font-size:13px;line-height:1.6;color:var(--ui-muted);padding:12px 4px}
#cloudBuddyPanel .cloud-buddy-chat p{margin:0;max-width:90%;padding:12px;border-radius:13px;line-height:1.5}
#cloudBuddyPanel .cloud-buddy-chat p.user{align-self:flex-end;background:var(--ui-accent);color:white}
#cloudBuddyPanel .cloud-buddy-chat p.assistant{align-self:flex-start}
#cloudBuddyPanel .cloud-buddy-draft{border-radius:12px;padding:15px;margin:3px 0}
#cloudBuddyPanel .cloud-buddy-draft h3{font-size:13px;margin-bottom:7px}
#cloudBuddyPanel .cloud-buddy-compose{padding:12px 18px 16px;background:var(--ui-panel)}
#cloudBuddyPanel textarea{border-radius:12px;padding:11px 12px;min-height:78px;line-height:1.5}
#cloudBuddyPanel .cloud-buddy-compose .hint{font-size:10px}
#cloudBuddyPanel [data-buddy-send]{border-radius:11px;padding-inline:19px}
@media(max-width:700px){#cloudBuddyPanel{width:auto;border-radius:17px}#cloudBuddyPanel .cloud-buddy-body{padding:10px 12px}#cloudBuddyPanel .cloud-buddy-context{padding:9px}#cloudBuddyPanel .cloud-buddy-compose{padding:10px 12px}#cloudBuddyPanel .cloud-buddy-powered{display:none}}

/* Stage 6 marketing intelligence */
#cloudBuddyPanel .cloud-buddy-mode-label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;font-weight:650;margin-top:10px}
#cloudBuddyPanel [data-buddy-specialty]{min-width:0;max-width:235px;padding:7px 9px;border-radius:9px;font-size:12px}
.cloud-stage6-pref{margin-top:15px}.cloud-stage6-pref form{display:grid;gap:10px;margin-top:10px}.cloud-stage6-pref .ui-field{display:flex;flex-direction:column;gap:5px}.cloud-stage6-pref textarea{resize:vertical}.cloud-stage6-pref [data-brief-feedback]{min-height:16px}

/* Stage 7: compact AI assistant, attached to existing inspector rail */
@media(min-width:901px){#cloudBuddyPanel{max-width:none;min-width:0;border-radius:0;border-top:0;border-bottom:0;border-right:0;box-shadow:-8px 0 20px #00000013}}
#cloudBuddyPanel .cloud-buddy-target{padding:9px 14px;border-bottom:1px solid var(--ui-line);background:var(--ui-panel)}
#cloudBuddyPanel .cloud-buddy-target b{font-size:12px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#cloudBuddyPanel .cloud-buddy-target small{display:none}
#cloudBuddyPanel .cloud-buddy-target.no-target b{white-space:normal;color:var(--ui-muted)}
#cloudBuddyPanel .cloud-buddy-connection{padding:7px 14px}
#cloudBuddyPanel .cloud-buddy-context{padding:0;border:1px solid var(--ui-line);border-radius:10px;flex:none}
#cloudBuddyPanel .cloud-buddy-context>summary{display:flex;align-items:center;gap:7px;justify-content:space-between;list-style:none;padding:10px 11px;font-size:12px;cursor:pointer}
#cloudBuddyPanel .cloud-buddy-context>summary::-webkit-details-marker{display:none}
#cloudBuddyPanel .cloud-buddy-context>summary:before{content:'⚙';font-size:13px;color:var(--ui-muted)}
#cloudBuddyPanel .cloud-buddy-context>summary span{margin-left:auto;color:var(--ui-muted);font-size:10px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:67%}
#cloudBuddyPanel .cloud-buddy-context[open]>summary{border-bottom:1px solid var(--ui-line)}
#cloudBuddyPanel .cloud-buddy-context-inner{padding:9px 11px 11px}
#cloudBuddyPanel .cloud-buddy-mode-label{margin-top:0;flex-wrap:wrap;align-items:flex-start}
#cloudBuddyPanel [data-buddy-specialty]{width:100%;max-width:100%}
#cloudBuddyPanel .cloud-buddy-body{padding:10px 12px;gap:9px}
#cloudBuddyPanel>header{padding:12px 14px}
#cloudBuddyPanel .cloud-buddy-compose{padding:10px 12px}
#cloudBuddyPanel textarea{min-height:66px}
#cloudBuddyPanel .cloud-buddy-chat{min-height:55px}

/* Stage 8: physically dock into the right inspector instead of floating over the canvas. */
@media (min-width:901px){
  .ui-right>#cloudBuddyPanel.cloud-buddy-in-rail{position:absolute!important;inset:0!important;top:0!important;right:0!important;bottom:0!important;left:0!important;width:100%!important;max-width:100%!important;min-width:0!important;height:100%!important;max-height:100%!important;transform:none!important;margin:0!important;border-radius:0!important;box-shadow:none!important;z-index:40!important;box-sizing:border-box!important}
}
#cloudBuddyPanel .cloud-buddy-target{padding:8px 12px}
#cloudBuddyPanel .cloud-buddy-target b{font-size:12px}
#cloudBuddyPanel .cloud-buddy-body{min-width:0}
#cloudBuddyPanel .cloud-buddy-context>summary span{max-width:52%}

/* Stage 10: mobile entry point and keyboard-safe writing workspace. */
#cloudBuddyMobileButton[hidden]{display:none!important}
#cloudBuddyMobileButton{display:none}
@media(max-width:700px){
  #cloudBuddyMobileButton:not([hidden]){display:flex;position:fixed;right:12px;bottom:calc(env(safe-area-inset-bottom) + 78px);z-index:790;align-items:center;justify-content:center;gap:5px;min-height:44px;min-width:62px;padding:9px 13px;border-radius:100px;box-shadow:0 4px 16px #0003}
  #cloudBuddyMobileButton svg{width:18px;height:18px}
  body:has(#cloudBuddyPanel:not([hidden])) #cloudBuddyMobileButton{display:none!important}
  #cloudBuddyPanel:not(.cloud-buddy-in-rail){position:fixed;left:0!important;right:0!important;width:100%!important;max-width:100%!important;top:auto;bottom:calc(env(safe-area-inset-bottom) + 66px);height:min(70dvh,calc(100dvh - 105px));max-height:calc(100dvh - 105px);border-radius:16px 16px 0 0;box-shadow:0 -9px 30px #0003;z-index:1100}
  #cloudBuddyPanel .cloud-buddy-body{overflow-y:auto;min-height:0}
  #cloudBuddyPanel .cloud-buddy-compose{flex-shrink:0}
  #cloudBuddyPanel .cloud-buddy-compose .hint{display:none}
  #cloudBuddyPanel.keyboard-open:not(.is-collapsed){bottom:var(--buddy-keyboard-bottom,8px)!important;height:min(var(--buddy-keyboard-height,60dvh),calc(100dvh - 18px))!important;max-height:none}
  #cloudBuddyPanel.is-collapsed{height:auto!important;top:auto!important}
}
@media(min-width:701px){#cloudBuddyMobileButton{display:none!important}}

/* Stage 11: multi-element review stays usable at inspector width */
.cloud-buddy-proposal{display:flex;align-items:flex-start;gap:10px;padding:10px 0;border-bottom:1px solid var(--ui-line,#ddd);font-size:13px;line-height:1.45;cursor:pointer}
.cloud-buddy-proposal input{margin-top:3px;flex:none}
.cloud-buddy-proposal span{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}
#cloudBuddyPanel .cloud-buddy-draft{max-width:100%;min-width:0;overflow-wrap:anywhere}

/* Stage 12: one-at-a-time suggestions anchored to canvas text. */
#cloudBuddyInlineReview{position:fixed;z-index:1600;box-sizing:border-box;max-width:calc(100vw - 24px);padding:12px;background:var(--ui-panel,#fff);color:var(--ui-text,#20232b);border:1px solid var(--ui-line,#ddd);border-radius:13px;box-shadow:0 12px 40px #0003;overflow-wrap:anywhere}
#cloudBuddyInlineReview[hidden]{display:none!important}
#cloudBuddyInlineReview .buddy-inline-head{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:700;color:var(--ui-muted,#666);margin-bottom:8px}
#cloudBuddyInlineReview [data-inline-stop]{border:0;background:none;font-size:21px;cursor:pointer;color:inherit}
#cloudBuddyInlineReview .buddy-inline-label{font-weight:650;font-size:12px;margin-bottom:5px}
#cloudBuddyInlineReview .buddy-inline-text{font-size:13px;line-height:1.45;max-height:180px;overflow-y:auto;white-space:pre-wrap}
#cloudBuddyInlineReview .buddy-inline-actions{display:flex;gap:8px;margin-top:12px}
#cloudBuddyInlineReview .buddy-inline-actions button{flex:1}
@media(max-width:700px){#cloudBuddyInlineReview{left:12px!important;right:12px!important;top:auto!important;bottom:calc(env(safe-area-inset-bottom) + 75px);width:auto!important;max-height:48dvh}}

/* Stage 13: true compact editing card, anchored within the canvas. */
#cloudBuddyInlineReview{width:min(348px,calc(100vw - 24px))!important;max-width:348px!important;padding:12px!important;z-index:1600!important}
#cloudBuddyInlineReview .buddy-inline-edit-label{display:block;font-size:11px;font-weight:600;color:var(--ui-muted,#555);margin:8px 0 5px}
#cloudBuddyInlineReview .buddy-inline-edit{box-sizing:border-box;display:block;width:100%;min-height:90px;max-height:26vh;resize:vertical;border:1px solid var(--ui-line,#c7c7c7);border-radius:8px;background:var(--ui-panel,#fff);color:var(--ui-text,#20232b);font:inherit;font-size:13px;line-height:1.4;padding:9px;overflow:auto}
#cloudBuddyInlineReview .buddy-inline-edit:focus{outline:2px solid #147dad;outline-offset:1px}
#cloudBuddyInlineReview .buddy-inline-hint{font-size:11px;color:var(--ui-muted,#666);line-height:1.4;margin:7px 0}
@media(max-width:700px){#cloudBuddyInlineReview{width:auto!important;max-width:none!important;max-height:58dvh;overflow:auto}}

/* Stage 14: compact side-by-side-in-flow comparison, no element type labels. */
#cloudBuddyInlineReview .buddy-inline-compare{display:grid;gap:9px}
#cloudBuddyInlineReview .buddy-inline-current{padding:9px;border:1px solid var(--ui-line,#ddd);background:var(--ui-soft,#f4f5f6);border-radius:8px}
#cloudBuddyInlineReview .buddy-inline-current strong,#cloudBuddyInlineReview .buddy-inline-edit-label{display:block;font-size:12px;font-weight:650;margin:0 0 6px;color:var(--ui-muted,#555)}
#cloudBuddyInlineReview .buddy-inline-current p{font-size:13px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;max-height:100px;overflow:auto;margin:0}
#cloudBuddyInlineReview .buddy-inline-edit{min-height:90px;max-height:26dvh}

/* Foldoo account onboarding */
.foldoo-ob-progress{margin:8px 0 24px;color:#616b67;font-size:13px;font-weight:600}.foldoo-ob-bars{display:flex;gap:6px;margin-top:10px}.foldoo-ob-bars i{height:5px;flex:1;background:#e2e5e2;border-radius:5px}.foldoo-ob-bars i.active{background:#147dad}.foldoo-ob-choices{display:grid;gap:12px;margin:18px 0}.foldoo-ob-choice{border:1px solid #c9d0cb;background:#fff;color:#1f2824;border-radius:14px;text-align:left;padding:18px;display:grid;gap:6px;cursor:pointer;width:100%;font:inherit}.foldoo-ob-choice strong{font-size:17px}.foldoo-ob-choice small{font-size:13px;color:#606b65;line-height:1.4}.foldoo-ob-choice.selected,.foldoo-ob-choice:hover,.foldoo-ob-choice:focus-visible{border:2px solid #147dad;outline-offset:2px}.foldoo-ob-choice:disabled{opacity:.6}.foldoo-ob-footnote{font-size:12px;color:#66716a}.foldoo-ob-terms{display:flex!important;align-items:start;gap:9px;font-size:12px;line-height:1.45;margin:10px 0}.foldoo-ob-terms input{width:auto!important;min-width:16px;margin-top:2px}.foldoo-onboarding{max-height:min(95dvh,800px);overflow:auto}@media(max-width:600px){.foldoo-onboarding{padding:24px 20px!important;max-width:calc(100vw - 24px)}}

/* Stage 16 AI setup stays in account onboarding, no dashboard detour. */
.foldoo-ob-providers{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.foldoo-ob-providers .foldoo-ob-choice{min-height:105px;padding:15px}
.foldoo-ob-ai-help{display:flex;gap:12px;margin:16px 0;align-items:flex-start}
.foldoo-ob-ai-help p{font-size:13px;margin:5px 0;color:#647069}
.foldoo-ob-ai-help a{color:#106c96;font-weight:650;display:inline-block;margin-top:7px}
.foldoo-ob-ai-count{flex:none;width:27px;height:27px;border-radius:50%;background:#e9ecff;color:#106c96;display:grid;place-items:center;font-weight:700}
.foldoo-ob-ai-footer{display:flex;justify-content:space-between;gap:14px;margin-top:15px;flex-wrap:wrap}
.foldoo-ob-ai-footer button{border:0;background:transparent;font:inherit;font-size:13px;color:#616b67;padding:8px 0;cursor:pointer}
.foldoo-ob-ai-footer button:hover{text-decoration:underline}
.foldoo-onboarding #obAIKeyForm,.foldoo-onboarding #obAIModelForm{display:grid;gap:13px;margin:18px 0}
.foldoo-onboarding .ui-field{display:grid;gap:8px;font-size:13px;font-weight:600}
@media(max-width:420px){.foldoo-ob-providers{grid-template-columns:1fr}.foldoo-ob-providers .foldoo-ob-choice{min-height:auto}}

/* AI Website Creator dialog, kept inside the viewport on all screens */
#siteCreatorDialog{border:0;border-radius:18px;padding:0;width:min(640px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;box-shadow:0 22px 70px #0005;color:var(--text,#242336);background:var(--surface,#fff)}#siteCreatorDialog::backdrop{background:#11162aaa}#siteCreatorDialog .site-creator-shell>header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e6e8f0;font-weight:700}#siteCreatorDialog .site-creator-main{padding:20px;display:grid;gap:16px}#siteCreatorDialog h2{font-size:24px;line-height:1.2;margin:0}#siteCreatorDialog p{margin:0;line-height:1.5}#siteCreatorDialog .ui-field{display:grid;gap:8px}#siteCreatorDialog textarea{resize:vertical;width:100%;box-sizing:border-box}#siteCreatorDialog footer{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}#siteCreatorDialog .creator-questions{display:grid;gap:14px;max-height:45dvh;overflow:auto}#siteCreatorDialog .creator-questions section{padding:12px;border:1px solid #e6e8f0;border-radius:10px}#siteCreatorDialog .creator-questions ul{margin:8px 0;padding-left:22px}#siteCreatorDialog .hint{font-size:12px;color:#727685}#siteCreatorDialog .cloud-warning{color:#b42318}

/* Stage 33: customer dashboard redesign */
.project-browser.dashboard-shell{grid-template-columns:220px minmax(0,1fr);background:#fafafb;min-height:100%}
.project-browser.dashboard-shell .project-browser-work{min-width:0}
.dashboard-sidebar{padding:20px 14px 16px;background:#fff;border-right:1px solid #e7e9f0;gap:18px}
.dashboard-sidebar .browser-brand{padding:4px 10px 12px;font-size:17px;font-weight:800;letter-spacing:-.03em;gap:10px}
.dashboard-brand-mark{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#101828;color:#fff;font-size:15px;font-weight:700}
.dashboard-nav-links{display:grid;gap:6px}
.dashboard-sidebar .browser-nav-item{min-height:44px;border-radius:12px;padding:11px 12px;font-weight:600;color:#495267}
.dashboard-sidebar .browser-nav-item.active{background:#f1f4f8;color:#111827}
.dashboard-sidebar .browser-nav-item:hover{background:#f6f7fb;color:#111827}
.dashboard-sidebar .browser-nav-bottom{display:grid;gap:8px;margin-top:auto;padding-top:18px;border-top:1px solid #eceef4}
.dashboard-sidebar-spacer{min-height:4px}
.dashboard-upgrade-card{width:100%;display:grid;gap:6px;padding:14px 14px 12px;border:1px solid #e6e8ee;border-radius:14px;background:#fff;text-align:left;cursor:pointer;color:#111827}
.dashboard-upgrade-card strong{font-size:14px}
.dashboard-upgrade-card small{font-size:12px;line-height:1.5;color:#697386}
.dashboard-upgrade-card:hover{border-color:#d5dae6;box-shadow:0 8px 24px rgba(16,24,40,.06)}
.dashboard-upgrade-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;background:#fbf6df;color:#8b6b00}
.dashboard-upgrade-link{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:#106c96}
.dashboard-topbar{position:sticky;top:0;padding:16px 28px;background:#fff;border-bottom:1px solid #eceef4;z-index:14;gap:16px;min-height:74px}
.dashboard-search{max-width:none;flex:1;background:#f7f8fb;border-radius:14px;padding-right:10px}
.dashboard-search .ui-input{border:0;background:transparent;min-height:42px;box-shadow:none;padding-right:0}
.dashboard-search-shortcut{margin-left:auto;padding:3px 7px;border:1px solid #d9deea;border-radius:8px;font-size:11px;color:#6c7486;background:#fff}
.dashboard-top-actions{display:flex;align-items:center;gap:12px;margin-left:auto}
.dashboard-top-icon,.dashboard-avatar{width:40px;height:40px}
.dashboard-avatar{border:1px solid #e6e8ef;background:#f4f6fb;color:#364152;font-weight:700}
.dashboard-body{max-width:none;padding:22px 28px 28px}
.dashboard-content-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:28px;align-items:start}
.dashboard-main-column{display:grid;gap:24px;min-width:0}
.dashboard-rail{display:grid;gap:16px;align-content:start;position:sticky;top:98px}
.dashboard-greeting{margin:0;align-items:flex-start;gap:20px}
.dashboard-kicker{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#f3f4f8;color:#667085;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;margin-bottom:12px}
.dashboard-greeting h1{font-size:28px;line-height:1.12;margin:0 0 8px;color:#0f1728}
.dashboard-greeting p{margin:0;color:#6b7280;font-size:15px}
.dashboard-greeting-side{display:grid;justify-items:end;gap:14px;flex-shrink:0}
.dashboard-date{font-size:14px;color:#677185}
.dashboard-greeting .browser-cloud-state{align-items:center;justify-content:flex-end}
.dashboard-greeting .browser-cloud-state [data-cloud-label]{font-size:12px;color:#6b7280}
.dashboard-panel,.dashboard-side-card{background:#fff;border:1px solid #eaecf1;border-radius:18px;padding:18px 18px 20px;box-shadow:0 10px 30px rgba(15,23,40,.03)}
.dashboard-panel .browser-empty{border:1px dashed #d8deea;background:#fafbfd}
.dashboard-section-head,.dashboard-rail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.dashboard-section-head h2,.dashboard-rail-head h2,.dashboard-side-card h2{font-size:15px;line-height:1.3;margin:0;color:#101828}
.dashboard-section-note{font-size:13px;color:#6b7280;margin:6px 0 0}
.dashboard-inline-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.dashboard-chip-group{background:#f5f6fa;padding:4px;border-radius:999px;gap:4px}
.dashboard-chip-group button{border-radius:999px;min-height:34px;padding:0 14px;font-size:13px;font-weight:600;color:#667085}
.dashboard-chip-group button[aria-pressed="true"]{background:#fff;color:#111827;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.dashboard-select-btn{min-height:34px}
.dashboard-folder-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px}
.dashboard-shell .browser-folders .browser-folder-card{min-height:126px;height:auto;border-radius:16px;border:1px solid #eceef4;background:#fff;box-shadow:none}
.dashboard-shell .browser-folders .browser-folder-card:hover{box-shadow:0 10px 24px rgba(15,23,42,.06)}
.dashboard-shell .browser-folder-card .ui-folder-go{padding:16px;gap:8px}
.dashboard-shell .browser-folder-name b{font-size:15px}
.dashboard-shell .browser-folder-empty-hint{margin-top:8px;max-width:none}
.dashboard-shell .browser-folder-card .ui-folder-previews{left:16px;right:16px;top:auto;bottom:16px;height:48px}
.dashboard-shell .browser-folder-card>[data-menu]{top:10px;right:8px}
.dashboard-project-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px}
.dashboard-shell .browser-projects .ui-site{background:#fff;border:1px solid #eceef4;border-radius:18px;overflow:hidden;box-shadow:none}
.dashboard-shell .browser-projects .ui-site:hover{box-shadow:0 12px 28px rgba(15,23,42,.08);border-color:#dde3ee}
.dashboard-shell .browser-projects .ui-thumb{height:180px;border-radius:16px 16px 0 0;background:#fff}
.dashboard-shell .browser-projects .ui-site-row{padding:16px 16px 18px;min-height:120px}
.dashboard-shell .browser-project-title{font-size:18px;font-weight:700;line-height:1.25;margin-bottom:10px;color:#101828}
.dashboard-shell .browser-projects .ui-site-sub{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center;font-size:12px;color:#667085}
.dashboard-project-status{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:#eef8f1;color:#207446;font-weight:600;width:max-content}
.dashboard-shell .browser-project-folder,.dashboard-shell .browser-save-warning,.dashboard-shell .cloud-project-owner{grid-column:1 / -1}
.dashboard-shell .browser-project-date{grid-column:1;color:#667085;font-size:12px}
.dashboard-shell .browser-card-actions{grid-column:2;align-self:end}
.dashboard-shell .browser-card-actions>[data-menu]{border:0;background:transparent;color:#475467;padding:0;min-height:auto;font-size:13px}
.dashboard-shell .browser-card-actions .dashboard-menu-label{display:none}
.dashboard-shell .browser-project-tools{top:12px;right:12px;gap:8px}
.dashboard-shell .browser-project-tools .browser-preview-tool{width:36px;height:36px;min-width:36px;min-height:36px;border-radius:12px;background:rgba(255,255,255,.92)!important;border:1px solid rgba(16,24,40,.08)!important;box-shadow:0 10px 24px rgba(15,23,40,.08)!important;color:#111827!important}
.dashboard-shell .browser-project-tools .browser-preview-tool svg{width:17px;height:17px}
.dashboard-shell .browser-project-tools .browser-favourite.is-favourite{background:#eef2ff!important;color:#106c96!important}
.dashboard-shell .browser-project-tools .browser-tool-label{left:auto;right:0}
.dashboard-shell .browser-projects.is-list{gap:12px}
.dashboard-shell .browser-projects.is-list .ui-site{display:grid;grid-template-columns:128px minmax(0,1fr);padding:0}
.dashboard-shell .browser-projects.is-list .browser-preview-wrap{width:128px;min-height:100%;border-radius:16px 0 0 16px}
.dashboard-shell .browser-projects.is-list .ui-thumb{width:128px;height:100%;min-height:118px;border-radius:16px 0 0 16px}
.dashboard-shell .browser-projects.is-list .ui-site-row{padding:16px;min-height:118px}
.dashboard-shell .browser-projects.is-list .browser-card-actions{position:static}
.dashboard-view-all-sites{margin-top:14px}
.dashboard-side-card p{font-size:14px;line-height:1.6;color:#6b7280;margin:8px 0 0}
.dashboard-card-top{display:flex;align-items:center;gap:10px}
.dashboard-card-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:10px;background:#e7f3f8;color:#106c96}
.dashboard-ai-card .ui-btn{margin-top:16px;width:100%;justify-content:center}
.dashboard-ai-card.is-muted{background:#fafafb}
.dashboard-quick-links{display:grid;gap:6px;margin-top:6px}
.dashboard-quick-link{display:flex;align-items:center;gap:10px;justify-content:space-between;width:100%;padding:10px 0;border:0;border-bottom:1px solid #eef1f5;background:transparent;text-align:left;color:#344054;cursor:pointer}
.dashboard-quick-link:last-child{border-bottom:0;padding-bottom:0}
.dashboard-quick-link span{flex:1}
.browser-rail-empty{font-size:13px;color:#6b7280;margin:4px 0 0}
.dashboard-announcement-item{display:grid;grid-template-columns:8px minmax(0,1fr) auto;gap:12px;align-items:flex-start;padding:10px 0;border-bottom:1px solid #eef1f5}
.dashboard-announcement-item:last-child{border-bottom:0;padding-bottom:0}
.dashboard-announcement-item strong{display:block;font-size:14px;color:#101828;margin-bottom:4px}
.dashboard-announcement-item p{margin:0;font-size:13px;line-height:1.55;color:#6b7280}
.dashboard-announcement-item small{display:block;margin-top:6px;font-size:12px;color:#98a2b3}
.dashboard-announcement-dot{width:8px;height:8px;border-radius:50%;margin-top:6px;background:#147dad}
.dashboard-announcement-dot.warning{background:#f59e0b}.dashboard-announcement-dot.info{background:#3b82f6}.dashboard-announcement-dot.success{background:#22c55e}
.dashboard-announcement-item .ui-btn.icon{width:30px;height:30px;min-width:30px;border-color:#eceef4}
.dashboard-quote-card blockquote{margin:0;font-size:26px;line-height:1.35;font-style:italic;color:#6b7280;text-align:center}
.dashboard-quote-card cite{display:block;margin-top:12px;text-align:center;font-size:14px;color:#98a2b3;font-style:normal}
@media (max-width:1240px){
  .dashboard-content-grid{grid-template-columns:minmax(0,1fr)}
  .dashboard-rail{position:static;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .dashboard-quote-card{grid-column:1 / -1}
}
@media (max-width:920px){
  .project-browser.dashboard-shell{grid-template-columns:minmax(0,1fr)}
  .dashboard-sidebar{display:none;position:fixed;inset:0 auto 0 0;width:270px;z-index:60;box-shadow:0 20px 40px rgba(15,23,40,.18)}
  .dashboard-sidebar.is-open{display:flex}
  .browser-nav-toggle,.browser-nav-close{display:inline-flex!important}
  .browser-nav-scrim{display:block!important;position:fixed;inset:0;z-index:55;background:rgba(15,23,42,.4);border:0}
  .dashboard-topbar{padding:14px 18px}
  .dashboard-body{padding:18px}
  .dashboard-greeting{flex-direction:column;align-items:flex-start}
  .dashboard-greeting-side{justify-items:start}
  .dashboard-rail{grid-template-columns:1fr}
}
@media (max-width:680px){
  .dashboard-topbar{flex-wrap:wrap;gap:10px}
  .dashboard-search{order:3;flex-basis:100%}
  .dashboard-search-shortcut{display:none}
  .dashboard-top-actions{width:100%;justify-content:flex-end}
  .dashboard-body{padding:16px}
  .dashboard-inline-tools,.dashboard-section-head,.dashboard-rail-head{flex-direction:column;align-items:flex-start}
  .dashboard-chip-group{width:100%;overflow:auto}
  .dashboard-project-grid{grid-template-columns:1fr}
  .dashboard-folder-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-shell .browser-projects .ui-thumb{height:160px}
  .dashboard-shell .browser-project-title{font-size:16px}
  .dashboard-quote-card blockquote{font-size:20px}
}

/* Stage 35: refined customer dashboard, editor untouched */
.dashboard-sidebar .browser-brand{height:54px;padding:4px 10px 15px;align-items:center;gap:10px}
.dashboard-brand-image{display:block;width:143px;max-width:calc(100% - 32px);height:38px;object-fit:contain;object-position:left center}
.dashboard-sidebar .browser-nav-item svg,.dashboard-topbar button svg,.dashboard-quick-link svg{stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.dashboard-sidebar .browser-nav-item{font-size:13px;min-height:42px;padding:9px 12px;gap:12px;border-radius:8px}
.dashboard-sidebar .browser-nav-item svg{width:18px;height:18px;color:#677185}
.dashboard-sidebar .browser-nav-item.active svg{color:#106c96}
.dashboard-sidebar .browser-nav-bottom{margin-top:auto;border-top:1px solid #ebedf2;padding-top:13px}
.dashboard-shell .dashboard-chip-group{display:none!important}
.dashboard-shell .dashboard-inline-tools{justify-content:flex-end}
.dashboard-side-card.dashboard-quote-card,.dashboard-upgrade-card{display:none!important}
.dashboard-shell .dashboard-project-grid{gap:14px}
.dashboard-shell .dashboard-folder-grid{gap:12px}
.dashboard-shell .browser-projects .ui-site{border-radius:11px}
.dashboard-shell .browser-projects .ui-thumb{border-radius:10px 10px 0 0}
.dashboard-shell .browser-folders .browser-folder-card{border-radius:10px}
.dashboard-panel,.dashboard-side-card{border-radius:11px;box-shadow:none}
.dashboard-search{border-radius:8px}
.dashboard-quick-link{font-size:13px}
.dashboard-rail .dashboard-side-card{padding:18px}

/* Stage 36: accurate, restrained customer dashboard. Editor and site canvas unaffected. */
.project-browser.dashboard-shell{grid-template-columns:220px minmax(0,1fr);background:#fbfbfc;color:#18202e}
.dashboard-shell .dashboard-sidebar{background:#fff;border-right:1px solid #e8ebf0;padding:20px 14px 16px}
.dashboard-shell .browser-brand{height:68px;padding:0 10px 20px;margin:0;display:flex;align-items:center}
.dashboard-shell .dashboard-brand-image{width:152px;max-width:calc(100% - 32px);height:45px;object-fit:contain;object-position:left center}
.dashboard-shell .dashboard-nav-links{gap:4px}
.dashboard-shell .dashboard-sidebar .browser-nav-item{font-size:13px;line-height:1.35;font-weight:560;letter-spacing:0;min-height:43px;padding:10px 12px;border-radius:8px;gap:13px;color:#596274}
.dashboard-shell .dashboard-sidebar .browser-nav-item svg.dashboard-nav-icon{width:19px;height:19px;flex:none;color:#667085;stroke-width:1.8}
.dashboard-shell .dashboard-sidebar .browser-nav-item.active{background:#f0f2f7;color:#18202d;font-weight:680}
.dashboard-shell .dashboard-sidebar .browser-nav-item.active svg.dashboard-nav-icon{color:#106c96}
.dashboard-shell .dashboard-sidebar .browser-nav-item:hover{background:#f4f6fa;color:#18202d}
.dashboard-shell .dashboard-sidebar .browser-nav-bottom{border-top:1px solid #eceef3;padding-top:13px;gap:2px}
.dashboard-shell .dashboard-sidebar [data-cloud-admin]{font-weight:560}
.dashboard-shell .dashboard-topbar{height:70px;min-height:70px;padding:12px 28px;gap:12px;background:#fff;border-bottom:1px solid #eceef3}
.dashboard-shell .dashboard-topbar .dashboard-search{position:relative;flex:0 1 520px;max-width:520px;width:100%;height:42px;min-width:180px;box-sizing:border-box;margin-right:auto;border:1px solid #e8ebf1;border-radius:9px;background:#f8f9fb;padding:0}
.dashboard-shell .dashboard-topbar .dashboard-search>span:first-child{position:absolute;inset:0 auto 0 12px;display:flex;align-items:center;justify-content:center;pointer-events:none;width:18px}
.dashboard-shell .dashboard-topbar .dashboard-search svg{position:relative;left:auto;top:auto;transform:none;width:17px;height:17px;color:#7a8496}
.dashboard-shell .dashboard-topbar .dashboard-search input.ui-input{display:block;box-sizing:border-box;width:100%;height:40px;min-height:40px;padding:0 62px 0 39px!important;margin:0;border:0!important;box-shadow:none!important;background:transparent!important;font-size:13px;color:#243048;line-height:40px}
.dashboard-shell .dashboard-topbar .dashboard-search input::placeholder{color:#929baa}
.dashboard-shell .dashboard-topbar .dashboard-search:focus-within{border-color:#77c9ea;box-shadow:0 0 0 3px #3346d311}
.dashboard-shell .dashboard-topbar .dashboard-search-shortcut{position:absolute;right:10px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;line-height:1;height:24px;min-width:34px;padding:0 5px;border:1px solid #e4e6eb;border-radius:5px;background:#fff;color:#8b94a3;font-size:11px;font-family:inherit;font-weight:500;margin:0}
.dashboard-shell .dashboard-top-actions{gap:9px;width:auto;flex-shrink:0}
.dashboard-shell .dashboard-topbar [data-creator-open]{display:none!important}
.dashboard-shell .dashboard-topbar [data-dash="templates"].primary{background:#161b27!important;border-color:#161b27!important;color:#fff!important;border-radius:8px;min-height:39px;padding:8px 16px;font-size:13px;font-weight:670;box-shadow:none}
.dashboard-shell .dashboard-topbar [data-dash="templates"].primary:hover{background:#303747!important}
.dashboard-shell .dashboard-top-icon{border:0;background:transparent;color:#535e72;border-radius:8px;width:39px;height:39px}
.dashboard-shell .dashboard-avatar{width:38px;height:38px;background:#eef1f7;color:#444c60;border-radius:50%;font-size:13px;border:1px solid #eaedf3}
.dashboard-shell .dashboard-body{max-width:none;margin:0;padding:26px 29px 42px;background:#fbfbfc;min-height:calc(100dvh - 70px)}
.dashboard-shell .dashboard-content-grid{display:grid;grid-template-columns:minmax(0,1fr) 303px;align-items:start;column-gap:27px}
.dashboard-shell .dashboard-main-column{display:flex;flex-direction:column;gap:24px;min-width:0}
.dashboard-shell .dashboard-greeting{align-items:flex-start;gap:16px;margin:0 0 5px;min-height:72px;flex-wrap:nowrap}
.dashboard-shell .dashboard-greeting h1{font-size:27px;line-height:1.16;letter-spacing:-.035em;font-weight:750;margin:0 0 8px;color:#141923}
.dashboard-shell .dashboard-greeting p{font-size:14px;line-height:1.45;color:#7a8190;margin:0}
.dashboard-shell .dashboard-greeting-side{display:grid;justify-items:end;gap:9px;padding-top:3px}
.dashboard-shell .dashboard-date{color:#9099a7;font-size:12px;white-space:nowrap}
.dashboard-shell .browser-cloud-state.cloud-summary{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px}
.dashboard-shell .browser-cloud-state [data-cloud-label]{font-size:11px;color:#8993a2}
.dashboard-shell .browser-cloud-state .ui-btn{width:30px;height:30px;min-width:30px;min-height:30px;padding:4px}
.dashboard-shell .browser-cloud-state .ui-btn svg{width:16px;height:16px}
/* Match the mockup: folders and sites are sections, not enormous nested cards. */
.dashboard-shell .dashboard-panel{background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;margin:0;min-width:0}
.dashboard-shell .dashboard-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 14px;min-height:25px}
.dashboard-shell .dashboard-section-head h2{font-size:18px;font-weight:720;letter-spacing:-.02em;margin:0;color:#1d2330;line-height:1.25}
.dashboard-shell .dashboard-section-note{font-size:11px;margin:4px 0 0;color:#8b93a1}
.dashboard-shell .dashboard-section-link{display:inline-flex;align-items:center;gap:6px;padding:3px 0;border:0;background:none;color:#566985;font-weight:570;font-size:12px;white-space:nowrap}
.dashboard-shell .dashboard-section-link svg{width:14px;height:14px}
.dashboard-shell .dashboard-section-link:hover{color:#106c96;text-decoration:underline}
.dashboard-shell .dashboard-inline-tools{justify-content:flex-end;flex-wrap:nowrap}
.dashboard-shell .dashboard-select-btn{font-size:12px;padding:6px 10px;min-height:32px;border-radius:7px}
/* auto-fill (not auto-fit) prevents a single item expanding across a row. */
.dashboard-shell .browser-folders.dashboard-folder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr))!important;gap:12px!important;margin:0!important;align-items:start}
.dashboard-shell .browser-folders .browser-folder-card.dashboard-folder-tile{box-sizing:border-box;min-height:126px!important;height:126px!important;display:block;position:relative;padding:0;background:#fff;border:1px solid #e5e9f0;border-radius:10px;box-shadow:none;min-width:0;overflow:visible}
.dashboard-shell .browser-folder-card.dashboard-folder-tile:hover{border-color:#c9d3e2;box-shadow:0 5px 16px #141a290c}
.dashboard-shell .browser-folder-card.dashboard-folder-tile .ui-folder-go{position:absolute!important;inset:0!important;width:100%;height:100%;min-height:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:8px;padding:16px 12px 13px;border-radius:9px;overflow:hidden;text-align:left}
.dashboard-shell .dashboard-folder-icon{display:inline-flex;align-items:center;justify-content:center;width:37px;height:37px;background:#eaf1ff;border-radius:8px;color:#4b78cd;flex:none}
.dashboard-shell .dashboard-folder-icon svg{width:22px;height:22px;stroke-width:1.7}
.dashboard-shell .dashboard-folder-label{display:flex;flex-direction:column;align-items:flex-start;gap:3px;max-width:100%;min-width:0;padding-right:2px}
.dashboard-shell .dashboard-folder-label b{display:block;max-width:100%;color:#273143;font-weight:660;font-size:12.5px;line-height:1.3;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.dashboard-shell .dashboard-folder-label small{color:#929aaa;font-size:11px;line-height:1.2}
.dashboard-shell .dashboard-folder-grid .dashboard-folder-tile:nth-child(5n+2) .dashboard-folder-icon{background:#f2eaff;color:#8d67c7}
.dashboard-shell .dashboard-folder-grid .dashboard-folder-tile:nth-child(5n+3) .dashboard-folder-icon{background:#e8f5ef;color:#56a382}
.dashboard-shell .dashboard-folder-grid .dashboard-folder-tile:nth-child(5n+4) .dashboard-folder-icon{background:#fff4dc;color:#b68a3e}
.dashboard-shell .dashboard-folder-grid .dashboard-folder-tile:nth-child(5n+5) .dashboard-folder-icon{background:#f1f3f6;color:#7c899c}
.dashboard-shell .dashboard-folder-tile>[data-menu]{position:absolute;right:6px;top:7px;width:32px;min-height:32px;height:32px;padding:0;z-index:5;border:0;color:#69768a;background:transparent}
.dashboard-shell .dashboard-folder-tile>.ui-menu{z-index:55;top:41px;right:8px}
/* Website cards are a proper gallery of restrained thumbnail tiles. */
.dashboard-shell .browser-projects.ui-dash-grid.dashboard-project-grid:not(.is-list){display:grid!important;grid-template-columns:repeat(auto-fill,minmax(225px,1fr))!important;gap:16px!important;align-items:start}
.dashboard-shell .browser-projects .ui-site{border-radius:10px!important;border:1px solid #e5e9f0;background:#fff;box-shadow:none;overflow:visible}
.dashboard-shell .browser-projects .ui-site:hover{border-color:#cfd6e0;box-shadow:0 6px 18px #151c2910}
.dashboard-shell .browser-projects .browser-preview-wrap{position:relative;border-radius:9px 9px 0 0;overflow:visible}
.dashboard-shell .browser-projects:not(.is-list) .ui-thumb{height:auto!important;aspect-ratio:16/9;display:block;border-radius:9px 9px 0 0!important;border-bottom:1px solid #e9edf2;overflow:hidden;background:#f4f5f6}
.dashboard-shell .browser-projects .ui-site-row{min-height:98px!important;display:flex;flex-direction:column;gap:0;padding:13px 13px 12px!important;position:relative;box-sizing:border-box}
.dashboard-shell .browser-projects .ui-site-meta{width:100%;min-width:0}
.dashboard-shell .browser-project-title{display:block;width:100%;min-height:0;font-size:14px!important;line-height:1.35!important;font-weight:690;letter-spacing:-.015em;margin:0 0 7px!important;white-space:nowrap;-webkit-line-clamp:1;overflow:hidden;text-overflow:ellipsis;color:#222b3b}
.dashboard-shell .browser-projects .ui-site-sub{display:flex!important;flex-wrap:wrap;flex-direction:row;align-items:center;gap:5px 9px;min-width:0;padding:0;margin:0;font-size:11px;line-height:1.4;color:#8993a2}
.dashboard-shell .dashboard-project-status{display:inline-flex;align-items:center;min-width:0;max-width:100%;padding:3px 7px;border-radius:5px;background:#eaf7f1;color:#25815b;font-size:10.5px;line-height:1.25;font-weight:620;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashboard-shell .browser-project-folder{display:inline-flex;gap:4px;align-items:center;max-width:100%;font-size:10.5px;color:#8290a3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashboard-shell .browser-project-date{flex:0 1 auto;order:8;width:100%!important;margin:6px 0 0!important;font-size:11px;color:#949ba9}
.dashboard-shell .browser-projects .browser-card-actions{position:absolute!important;right:8px!important;bottom:8px!important;margin:0!important;border:0!important;padding:0!important;gap:0!important;z-index:10}
.dashboard-shell .browser-card-actions>[data-menu]{width:28px;min-height:28px;height:28px;display:inline-flex;justify-content:center;align-items:center;color:#667085;border:0;border-radius:7px;background:none}
.dashboard-shell .browser-card-actions>[data-menu] svg{width:17px;height:17px}
.dashboard-shell .browser-project-tools{opacity:0;pointer-events:none;right:8px;top:8px;gap:5px;transform:translateY(-2px)}
.dashboard-shell .browser-projects .ui-site:hover .browser-project-tools,.dashboard-shell .browser-projects .ui-site:focus-within .browser-project-tools{opacity:1;pointer-events:auto;transform:none}
.dashboard-shell .browser-project-tools .browser-preview-tool{width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;border:1px solid #ffffffb0!important;border-radius:7px!important;background:#ffffffee!important;color:#374151!important;box-shadow:0 2px 7px #0002!important}
.dashboard-shell .browser-project-tools .browser-preview-tool svg{width:15px!important;height:15px!important}
.dashboard-shell .browser-projects .browser-preview-shade{display:none}
.dashboard-shell .browser-projects .ui-menu{z-index:60}
.dashboard-shell .browser-projects.is-list .ui-site{display:flex;min-height:86px;padding:0}
.dashboard-shell .browser-projects.is-list .browser-preview-wrap{min-height:86px;width:118px;flex:none}
.dashboard-shell .browser-projects.is-list .ui-thumb{width:118px;height:86px!important;aspect-ratio:unset;border-radius:9px 0 0 9px!important}
.dashboard-shell .browser-projects.is-list .ui-site-row{padding:12px!important;min-height:86px!important}
.dashboard-shell .browser-projects.is-list .browser-project-title{margin-bottom:6px!important}
.dashboard-shell .browser-projects.is-list .browser-card-actions{position:absolute!important}
/* Right rail should feel like informative utility cards, not a marketing page. */
.dashboard-shell .dashboard-rail{position:sticky;top:96px;display:grid;gap:14px;align-content:start}
.dashboard-shell .dashboard-side-card{padding:18px 17px;background:#fff;border:1px solid #e7eaf0;border-radius:10px;box-shadow:none}
.dashboard-shell .dashboard-side-card h2{font-size:14px;font-weight:710;color:#232a36}
.dashboard-shell .dashboard-side-card p{font-size:12px;line-height:1.6;color:#7b8595;margin:11px 0 0}
.dashboard-shell .dashboard-card-top{gap:9px}
.dashboard-shell .dashboard-card-icon{width:32px;height:32px;border-radius:8px;background:#e7f3f8;color:#106c96}
.dashboard-shell .dashboard-ai-card .ui-btn{margin-top:15px;min-height:38px;border-radius:7px;font-weight:630;font-size:12px}
.dashboard-shell .dashboard-ai-card .ui-btn.primary{background:#181c28;border-color:#181c28;color:#fff}
.dashboard-shell .dashboard-rail-head{display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin-bottom:8px}
.dashboard-shell .dashboard-rail-head .ui-linkbtn{font-size:11px;color:#5b6e89;padding:4px 0}
.dashboard-shell .dashboard-announcement-item{padding:11px 0;gap:10px;grid-template-columns:7px minmax(0,1fr) auto}
.dashboard-shell .dashboard-announcement-item strong{font-size:12px;line-height:1.4;font-weight:650}
.dashboard-shell .dashboard-announcement-item p{font-size:11px;line-height:1.55;margin:4px 0 0}
.dashboard-shell .dashboard-announcement-item small{font-size:10px;margin-top:7px}
.dashboard-shell .dashboard-announcement-dot{width:7px;height:7px;margin-top:6px}
.dashboard-shell .dashboard-quick-links{margin-top:6px;gap:0}
.dashboard-shell .dashboard-quick-link{font-size:12px;min-height:39px;padding:8px 0;gap:10px;border-bottom:1px solid #edf0f4}
.dashboard-shell .dashboard-quick-link svg{width:16px;height:16px;stroke-width:1.75}
.dashboard-shell .dashboard-quote-card,.dashboard-shell .dashboard-upgrade-card{display:none!important}
.dashboard-shell .browser-recovery{margin-top:8px;border-top:1px solid #e8ebf0;font-size:11px;padding-top:15px}
.dashboard-shell .browser-footer{font-size:10px;margin-top:15px}
@media(max-width:1250px){
  .dashboard-shell .dashboard-content-grid{grid-template-columns:minmax(0,1fr) 282px;gap:22px}
  .dashboard-shell .dashboard-body{padding:22px 23px 36px}
  .dashboard-shell .browser-folders.dashboard-folder-grid{grid-template-columns:repeat(auto-fill,minmax(142px,1fr))!important}
  .dashboard-shell .browser-projects.ui-dash-grid.dashboard-project-grid:not(.is-list){grid-template-columns:repeat(auto-fill,minmax(215px,1fr))!important}
}
@media(max-width:1080px){
  .dashboard-shell .dashboard-content-grid{grid-template-columns:minmax(0,1fr);gap:22px}
  .dashboard-shell .dashboard-rail{position:static;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
  .dashboard-shell .dashboard-rail>.dashboard-side-card:last-child{grid-column:1 / -1}
  .dashboard-shell .dashboard-greeting{margin-bottom:2px}
}
@media(max-width:920px){
  .project-browser.dashboard-shell{grid-template-columns:minmax(0,1fr)}
  .dashboard-shell .dashboard-sidebar{display:none;position:fixed;inset:0 auto 0 0;width:265px;height:100dvh;z-index:60;box-shadow:0 14px 45px #16213b30}
  .dashboard-shell .dashboard-sidebar.is-open{display:flex}
  .dashboard-shell .browser-nav-scrim{display:block!important;position:fixed;inset:0;z-index:55;background:#17213066;border:0}
  .dashboard-shell .browser-nav-toggle,.dashboard-shell .browser-nav-close{display:inline-flex!important}
  .dashboard-shell .dashboard-topbar{padding:12px 18px}
  .dashboard-shell .dashboard-body{padding:21px 18px 32px}
}
@media(max-width:640px){
  .dashboard-shell .dashboard-topbar{height:auto;min-height:65px;flex-wrap:wrap;padding:10px 14px;gap:9px}
  .dashboard-shell .dashboard-topbar .dashboard-search{order:2;flex:0 0 100%;max-width:100%}
  .dashboard-shell .dashboard-top-actions{order:1;flex:1;margin-left:auto;justify-content:flex-end}
  .dashboard-shell .dashboard-body{padding:18px 14px 28px}
  .dashboard-shell .dashboard-greeting{flex-direction:column;align-items:flex-start;gap:7px}
  .dashboard-shell .dashboard-greeting h1{font-size:23px}
  .dashboard-shell .dashboard-greeting-side{width:100%;justify-items:start;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
  .dashboard-shell .browser-folders.dashboard-folder-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .dashboard-shell .browser-folders .browser-folder-card.dashboard-folder-tile{height:119px!important;min-height:119px!important}
  .dashboard-shell .browser-projects.ui-dash-grid.dashboard-project-grid:not(.is-list){grid-template-columns:1fr!important}
  .dashboard-shell .browser-projects.is-list .browser-preview-wrap{width:94px}
  .dashboard-shell .browser-projects.is-list .ui-thumb{width:94px!important}
  .dashboard-shell .dashboard-rail{grid-template-columns:1fr}
  .dashboard-shell .dashboard-rail>.dashboard-side-card:last-child{grid-column:auto}
  .dashboard-shell .dashboard-section-head{flex-direction:row;align-items:center}
  .dashboard-shell .dashboard-section-head h2{font-size:17px}
}

/* Stage 37: account settings live within the customer dashboard.
   These selectors are explicitly dashboard-only. The editor has not been restyled. */
.dashboard-shell .dashboard-sidebar .dashboard-person-card{
  display:flex;width:100%;align-items:center;gap:11px;padding:14px 10px;
  border:0;border-top:1px solid #e9edf3;border-radius:0;background:transparent;
  text-align:left;cursor:default;min-width:0;color:#151b28;
}
.dashboard-shell .dashboard-sidebar .dashboard-person-avatar{
  flex:0 0 42px;width:42px;height:42px;display:grid;place-items:center;
  background:#e7f3f8;color:#106c96;border-radius:50%;font-size:14px;font-weight:750;letter-spacing:.01em;
}
.dashboard-shell .dashboard-sidebar .dashboard-person-info{display:grid;gap:4px;min-width:0;overflow:hidden}
.dashboard-shell .dashboard-sidebar .dashboard-person-name{font-size:13px;font-weight:700;line-height:1.25;color:#1d2433;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-shell .dashboard-sidebar .dashboard-person-email{font-size:11px;line-height:1.25;color:#717b8d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-shell .dashboard-sidebar .browser-nav-bottom{gap:0}
.dashboard-settings-main{display:block;min-width:0}
.dashboard-settings-main > .dashboard-content-grid[hidden]{display:none!important}
.dashboard-settings-main #cloudProfile[hidden],.dashboard-settings-main [data-dashboard-ai-wizard][hidden]{display:none!important}
.dashboard-settings-main #cloudProfile{
 position:static;inset:auto;z-index:auto;overflow:visible;
 margin:0;max-width:none;width:100%;height:auto;box-sizing:border-box;
 padding:0;background:transparent;color:var(--ui-ink);
}
.dashboard-settings-main #cloudProfile .dashboard-profile-shell{max-width:930px;margin:0 auto}
.dashboard-settings-main #cloudProfile .dashboard-profile-heading{padding:2px 0 23px;border-bottom:1px solid #e8ebf1;display:block}
.dashboard-settings-main #cloudProfile .dashboard-profile-eyebrow{display:block;font-size:10px;font-weight:800;color:#697386;letter-spacing:.11em;margin-bottom:11px}
.dashboard-settings-main #cloudProfile .dashboard-profile-heading h1{font-size:25px;font-weight:750;line-height:1.2;letter-spacing:-.035em;margin:0 0 7px;color:#161d29}
.dashboard-settings-main #cloudProfile .dashboard-profile-heading p{font-size:13px;color:#687385;margin:0}
.dashboard-settings-main #cloudProfile .dashboard-profile-content{max-width:none;width:100%;margin:22px 0 36px;display:grid;gap:16px}
.dashboard-settings-main #cloudProfile .dashboard-profile-card{padding:22px 24px;margin:0;border:1px solid #e6eaf1;border-radius:11px;background:#fff;box-shadow:none}
.dashboard-settings-main #cloudProfile .dashboard-profile-card h2{font-size:16px;font-weight:730;letter-spacing:-.015em;margin:0 0 6px;color:#192233}
.dashboard-settings-main #cloudProfile .dashboard-profile-card > p{margin:0 0 15px;color:#6b7587;font-size:13px;line-height:1.55}
.dashboard-settings-main #cloudProfile .dashboard-profile-card-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}
.dashboard-settings-main #cloudProfile .dashboard-profile-card-heading p{margin:0;color:#6d7686;font-size:13px;line-height:1.45}
.dashboard-settings-main #cloudProfile .cloud-profile-avatar{width:44px;height:44px;border-radius:50%;font-size:14px}
.dashboard-settings-main #cloudProfile .dashboard-ai-settings-icon{display:grid;place-items:center;width:42px;height:42px;border:1px solid #e9eaf7;border-radius:11px;background:#f4f4fc;color:#106c96}
.dashboard-settings-main #cloudProfile .dashboard-profile-card .ui-input{height:42px;min-height:42px;font-size:13px;border-radius:8px;border-color:#cdd3de}
.dashboard-settings-main #cloudProfile .dashboard-profile-card label{font-size:12px;font-weight:650;color:#2d3544}
.dashboard-settings-main #cloudProfile .dashboard-profile-card .hint{font-size:12px;color:#7a8291;line-height:1.5}
.dashboard-settings-main #cloudProfile .dashboard-profile-card form{gap:13px}
.dashboard-settings-main #cloudProfile .dashboard-profile-card .ui-btn{min-height:38px;font-size:13px;border-radius:8px}
.dashboard-ai-connection-summary{display:flex;align-items:center;gap:9px;font-size:13px;color:#344054;background:#f8f9fc;border:1px solid #edf0f5;border-radius:8px;padding:12px 14px;min-height:18px;line-height:1.45}
.dashboard-ai-connection-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:13px 0 4px}
.dashboard-ai-disclaimer{font-size:12px!important;color:#798394!important;line-height:1.55!important;margin:14px 0 0!important}
.dashboard-settings-main #cloudProfile .dashboard-ai-wizard{
 padding:22px;border:1px solid #dadff0;border-radius:10px;background:#fbfcff;margin:19px 0 4px;
}
.dashboard-ai-wizard-header{display:flex;align-items:start;justify-content:space-between;gap:12px}
.dashboard-ai-wizard-header h3{font-size:17px;font-weight:720;margin:7px 0 7px;color:#172133}
.dashboard-ai-wizard-header p{font-size:13px;color:#697386;line-height:1.5;margin:0}
.dashboard-ai-steps-label{font-size:10px;letter-spacing:.08em;font-weight:750;color:#697386}
.dashboard-ai-wizard-progress{display:flex;gap:6px;margin:18px 0 23px}
.dashboard-ai-wizard-progress i{display:block;flex:1;height:4px;border-radius:99px;background:#e3e8f1}
.dashboard-ai-wizard-progress i.active{background:#147dad}
.dashboard-settings-main #cloudProfile .dashboard-ai-provider-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 17px}
.dashboard-settings-main #cloudProfile .dashboard-ai-provider-grid .foldoo-ob-choice{min-height:105px;padding:18px;border-radius:9px;border:1px solid #d9dfe9;background:#fff}
.dashboard-settings-main #cloudProfile .dashboard-ai-provider-grid .foldoo-ob-choice.selected{border:2px solid #147dad;background:#f6f7ff}
.dashboard-settings-main #cloudProfile .dashboard-ai-provider-grid .foldoo-ob-choice strong{font-size:15px}
.dashboard-settings-main #cloudProfile .dashboard-ai-provider-grid .foldoo-ob-choice small{font-size:12px}
.dashboard-settings-main #cloudProfile .dashboard-ai-wizard form{display:grid;gap:15px;margin:18px 0}
.dashboard-settings-main #cloudProfile .dashboard-ai-wizard form .ui-btn{justify-self:start}
.dashboard-settings-main #cloudProfile .foldoo-ob-ai-help{display:flex;gap:12px;align-items:flex-start}
.dashboard-settings-main #cloudProfile .foldoo-ob-ai-help strong{font-size:13px;color:#273143}
.dashboard-settings-main #cloudProfile .foldoo-ob-ai-help p{font-size:12px;color:#6b7484;line-height:1.5}
.dashboard-settings-main #cloudProfile .foldoo-ob-ai-help a{display:inline-flex;align-items:center;gap:6px;font-size:12px}
.dashboard-settings-main #cloudProfile .foldoo-ob-ai-help svg{width:14px;height:14px}
.dashboard-ai-wizard-hint{font-size:12px;color:#788295;line-height:1.55;margin:17px 0 10px}
.dashboard-ai-wizard-message{font-size:12px;line-height:1.5;padding:12px 14px;border-radius:7px;color:#a13a22;background:#fff0ea;overflow-wrap:anywhere}
.dashboard-ai-wizard-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-top:16px}
.dashboard-ai-wizard-footer button{font-size:12px;border:0;background:transparent;color:#536074;cursor:pointer;padding:6px 0}
.dashboard-ai-wizard-footer button:hover{text-decoration:underline}
@media(max-width:800px){.dashboard-settings-main #cloudProfile .dashboard-profile-shell{max-width:none}}
@media(max-width:600px){
 .dashboard-shell .dashboard-sidebar .dashboard-person-card{padding:12px 8px}
 .dashboard-settings-main #cloudProfile .dashboard-profile-heading h1{font-size:23px}
 .dashboard-settings-main #cloudProfile .dashboard-profile-card{padding:17px}
 .dashboard-settings-main #cloudProfile .dashboard-ai-wizard{padding:15px}
 .dashboard-settings-main #cloudProfile .dashboard-ai-provider-grid{grid-template-columns:1fr}
 .dashboard-settings-main #cloudProfile .dashboard-ai-provider-grid .foldoo-ob-choice{min-height:0}
 .dashboard-settings-main #cloudProfile .cloud-name-fields{grid-template-columns:1fr}
 .dashboard-settings-main #cloudProfile .dashboard-profile-card-heading{align-items:flex-start}
}
/* Keep the existing billing card visually consistent with the rest of Settings. */
.dashboard-settings-main #cloudProfile .cloud-profile-main > .cloud-profile-card:not(.dashboard-profile-card){
 margin:0;padding:22px 24px;border:1px solid #e6eaf1;border-radius:11px;background:#fff;box-shadow:none;
}
.dashboard-settings-main #cloudProfile .cloud-profile-main > .cloud-profile-card:not(.dashboard-profile-card) h2{
 font-size:16px;font-weight:730;letter-spacing:-.015em;margin:0 0 9px;color:#192233;
}
.dashboard-settings-main #cloudProfile .cloud-profile-main > .cloud-profile-card:not(.dashboard-profile-card) p{
 font-size:13px;color:#687385;line-height:1.55;margin:0 0 15px;
}
@media(max-width:600px){.dashboard-settings-main #cloudProfile .cloud-profile-main > .cloud-profile-card:not(.dashboard-profile-card){padding:17px}}

/* Stage 45: customer-confirmed readable preview addresses */
.ui-modal-card.cloud-publish{box-sizing:border-box;width:min(720px,calc(100dvw - 40px));max-width:100%;max-height:calc(100dvh - 40px);overflow:auto}
.cloud-preview-address{padding:16px;border:1px solid var(--ui-line,#ddd);border-radius:12px;margin:20px 0 8px;min-width:0}
.cloud-preview-address h3{margin:0 0 6px;font-size:16px}
.cloud-preview-address>.hint{margin:0 0 12px;line-height:1.5}
.cloud-address-option{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--ui-line,#ddd);border-radius:9px;padding:11px;margin:8px 0;cursor:pointer;min-width:0}
.cloud-address-option:has(input:checked){border-color:var(--ui-accent,#147dad);background:var(--ui-accent-soft,#e7f3f8)}
.cloud-address-option input{margin:2px 0 0;width:17px;min-width:17px;min-height:17px;accent-color:var(--ui-accent,#147dad)}
.cloud-address-option span{display:grid;gap:5px;min-width:0}
.cloud-address-option b{font-size:13px}
.cloud-address-option small{font-size:11px;color:var(--ui-muted,#666);overflow-wrap:anywhere}
.cloud-address-detail{padding:12px 0 2px;min-width:0}
.cloud-address-detail>label{display:block;font-size:12px;font-weight:700;margin-bottom:8px}
.cloud-address-input{display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px;min-width:0;padding:7px 10px;border:1px solid var(--ui-line-2,#ccc);border-radius:9px;background:var(--ui-raise,#fff)}
.cloud-address-input span{font-size:12px;overflow-wrap:anywhere;color:var(--ui-muted,#666)}
.cloud-address-input input{flex:1 1 160px;max-width:100%;min-width:90px;height:35px}
.cloud-name-check{display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap;margin-top:8px}
.cloud-name-check p{margin:0;min-width:0;flex:1 1 180px;font-size:12px;overflow-wrap:anywhere;color:var(--ui-muted,#666)}
.cloud-name-check p[data-state=available]{color:#147442}
.cloud-name-check p[data-state=unavailable]{color:var(--ui-danger,#b43636)}
.cloud-address-save{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}
.cloud-address-save small{flex:1 1 210px;color:var(--ui-muted,#666);font-size:11px;line-height:1.45}
.cloud-address-ok{display:flex;align-items:center;gap:6px;font-size:12px;color:#147442;margin:11px 0 0}
.cloud-address-ok svg{width:17px;height:17px;flex:none}
@media(max-width:660px){.ui-modal-card.cloud-publish{width:calc(100dvw - 20px);max-height:calc(100dvh - 20px)}.cloud-preview-address{padding:12px}.cloud-address-input input{flex-basis:100%}}

/* Foldoo account security: visible above sign-out in Save & recovery */
.foldoo-security-link{margin:18px 0;padding:16px;border:1px solid #bfe3f2;border-radius:12px;background:#f4f5ff;color:#18262e}.foldoo-security-link strong{display:block;font-size:16px}.foldoo-security-link p{margin:8px 0 14px;line-height:1.5}.foldoo-security-link button{min-height:44px}.foldoo-mfa-state{border:1px solid #bfe3f2;border-radius:10px;padding:14px;margin:14px 0}.foldoo-mfa-qr{display:block;max-width:240px;width:100%;margin:12px auto}.foldoo-mfa-secret{display:block;overflow-wrap:anywhere;user-select:all;padding:10px;background:#f2f2f5;border-radius:8px}.cloud-account [data-mfa-enroll]{min-height:44px}

#foldooSecurityShortcut{font-weight:650;white-space:nowrap;min-height:38px}@media(max-width:650px){#foldooSecurityShortcut{font-size:12px;padding:8px}}

/* Stage 49 MFA verification: keep the QR and the six-digit input in view.
   Use a dedicated dialog class so the Save & recovery repaint cannot erase it. */
.ui-modal-card.foldoo-mfa-dialog{box-sizing:border-box;width:min(780px,calc(100dvw - 32px));max-width:100%;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;background:var(--ui-panel);color:var(--ui-ink)}
.foldoo-mfa-dialog .foldoo-mfa-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.foldoo-mfa-dialog .foldoo-mfa-head h2{margin:0;font-size:clamp(18px,2.5vw,23px);line-height:1.25}
.foldoo-mfa-dialog .foldoo-mfa-head button{flex:none}
.foldoo-mfa-dialog .foldoo-mfa-intro{line-height:1.55;margin:14px 0 20px}
.foldoo-mfa-dialog .foldoo-mfa-setup-grid{display:grid;grid-template-columns:minmax(0,235px) minmax(0,1fr);gap:18px;align-items:stretch}
.foldoo-mfa-dialog .foldoo-mfa-setup-step{padding:16px;border:1px solid var(--ui-line);border-radius:12px;min-width:0}
.foldoo-mfa-dialog .foldoo-mfa-setup-step h3{display:flex;align-items:center;gap:9px;margin:0 0 14px;font-size:16px;line-height:1.35}
.foldoo-mfa-dialog .foldoo-mfa-step-number{flex:0 0 26px;height:26px;display:grid;place-items:center;border-radius:50%;background:#147dad;color:#fff;font-weight:700;font-size:13px}
.foldoo-mfa-dialog .foldoo-mfa-setup-step>p{margin:0 0 14px;font-size:13px;line-height:1.5;color:var(--ui-muted)}
.foldoo-mfa-dialog .foldoo-mfa-qr{width:min(200px,100%);height:auto;aspect-ratio:1;object-fit:contain;margin:10px auto;display:block;border:1px solid var(--ui-line);border-radius:8px;background:#fff;padding:5px;box-sizing:border-box}
.foldoo-mfa-dialog .foldoo-mfa-manual{font-size:12px;margin:12px 0 0;line-height:1.4}
.foldoo-mfa-dialog .foldoo-mfa-manual summary{cursor:pointer;color:var(--ui-accent);font-weight:650}
.foldoo-mfa-dialog .foldoo-mfa-manual p{margin:8px 0}
.foldoo-mfa-dialog .foldoo-mfa-secret{background:var(--ui-hover);color:var(--ui-ink);font-size:12px}
.foldoo-mfa-dialog #foldooMfaVerify{display:flex;flex-direction:column;gap:11px;margin-top:12px}
.foldoo-mfa-dialog #foldooMfaVerify label{font-size:13px;font-weight:650}
.foldoo-mfa-dialog .foldoo-mfa-code-input{width:100%;max-width:260px;box-sizing:border-box;height:48px;font-size:22px;letter-spacing:.2em;font-variant-numeric:tabular-nums}
.foldoo-mfa-dialog #foldooMfaMessage{color:var(--ui-inh,#a9362a);font-size:12px;line-height:1.45;min-height:1em;margin:0}
.foldoo-mfa-dialog .foldoo-mfa-enable{min-height:44px;align-self:flex-start;max-width:100%}
.foldoo-mfa-dialog .foldoo-mfa-restart{min-height:40px;max-width:100%;font-size:12px;margin-top:16px;white-space:normal}
@media(max-width:640px){.ui-modal-card.foldoo-mfa-dialog{box-sizing:border-box;width:calc(100dvw - 16px);max-height:calc(100dvh - 16px);padding:18px;scrollbar-gutter:auto}.foldoo-mfa-dialog .foldoo-mfa-setup-grid{grid-template-columns:minmax(0,1fr);gap:12px}.foldoo-mfa-dialog .foldoo-mfa-setup-step{padding:14px}.foldoo-mfa-dialog .foldoo-mfa-qr{width:min(185px,100%)}.foldoo-mfa-dialog .foldoo-mfa-code-input{max-width:100%;font-size:20px}.foldoo-mfa-dialog .foldoo-mfa-enable{width:100%}}
