/* Cloud features use the established AtlasNote tokens, spacing and controls. */
.sync-badge{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--muted);min-height:40px;padding:8px 10px;cursor:pointer;font:inherit;font-size:.78rem;white-space:nowrap}.sync-badge[data-state=synced]{color:var(--success)}.sync-badge[data-state=conflict],.sync-badge[data-state=cloudError]{color:var(--danger)}.sync-badge[data-state=syncing] i,.sync-badge[data-state=connecting] i{animation:cloud-spin 1.5s linear infinite}.sync-badge:focus-visible{outline:2px solid var(--primary);outline-offset:3px}.resource-stack{display:grid;gap:16px;min-width:0}.resource-card{min-width:0;padding:22px}.resource-pair{display:flex;justify-content:space-between;gap:20px;margin:18px 0}.resource-pair>div{min-width:0;display:grid;gap:5px}.resource-pair>div:last-child{text-align:right}.resource-pair span{font-size:.8rem;color:var(--muted)}.resource-pair strong{font-size:clamp(1rem,2vw,1.6rem);font-weight:650;overflow-wrap:anywhere}.resource-number{display:flex;align-items:baseline;gap:9px;font-size:1.75rem;font-weight:650;margin:14px 0}.resource-number small{font-size:.8rem;color:var(--muted);font-weight:400}.resource-card .hint{margin:13px 0 0}.allowance-card .meter span{background:var(--success)}.allowance-card.medium .meter span{background:#dca96b}.allowance-card.low .meter span{background:var(--danger)}.dashboard-metrics{display:grid;grid-template-columns:minmax(160px,.65fr) minmax(0,2fr);gap:20px;margin:0 0 42px}.dashboard-resources .resource-stack{grid-template-columns:1fr 1fr;height:100%}.count-card{display:flex;flex-direction:column;justify-content:space-between;gap:16px;min-width:0}.count-card>strong{font-size:3rem;font-weight:600;line-height:1.2}.count-card>a{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.85rem}.dashboard-greeting{overflow-wrap:anywhere}.section-head{display:flex;justify-content:space-between;align-items:center;gap:20px;min-width:0;margin-bottom:20px}.section-head h2{margin:0}.section-head>a,.account-links{display:flex;align-items:center;gap:12px}.section-head>a{white-space:nowrap;font-size:.85rem}.dashboard-note{padding:20px;display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:16px;align-items:center;text-decoration:none!important}.dashboard-note h3{margin:0 0 5px;overflow-wrap:anywhere}.dashboard-note .muted{font-size:.8rem}.note-symbol{color:var(--primary);font-size:1.2rem}.note-size{display:flex;gap:16px;align-items:center;color:var(--muted);font-size:.85rem}.account-settings{margin-bottom:24px}.account-settings h2{margin:5px 0 8px;overflow-wrap:anywhere}.account-links{flex-wrap:wrap}.data-safety{margin-top:24px}.data-safety p{max-width:75ch;color:var(--muted);line-height:1.8}.auth-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:32px;align-items:center;max-width:940px;margin:48px auto 64px}.auth-card{padding:clamp(24px,4vw,44px)}.auth-card h1{font-size:clamp(1.65rem,3vw,2.4rem);line-height:1.35;max-width:18ch;text-wrap:balance;letter-spacing:-.035em;margin:20px 0}.auth-card .lead{font-size:1rem;line-height:1.8;color:var(--muted);max-width:45ch}.auth-connect-status{display:flex;gap:12px;align-items:flex-start;border-top:1px solid var(--line);padding-top:22px;margin:26px 0;color:var(--muted);line-height:1.65;font-size:.86rem}.auth-connect-status i{margin-top:5px;color:var(--primary)}.auth-buttons .button{width:100%;justify-content:center;min-height:48px}.auth-legal{display:flex;gap:14px;justify-content:center;align-items:center;margin:22px 0 0}.auth-art{position:relative;display:flex;min-height:350px;flex-direction:column;align-items:center;justify-content:center;gap:28px;isolation:isolate}.auth-art>span{font-size:1.5rem;line-height:1.5;font-weight:500;text-align:center;letter-spacing:-.025em}.auth-orbit{position:absolute;width:290px;height:290px;border:1px solid var(--line);border-radius:50%;z-index:-1;transform:rotate(-25deg) scaleY(.7)}.auth-orbit:after{content:'';position:absolute;inset:25px;border:1px solid var(--line);border-radius:50%;transform:rotate(70deg)}.agent-prompt{resize:vertical;min-height:145px}.agent-dialog{width:min(540px,calc(100% - 32px))}.agent-loading{display:flex;align-items:center;gap:14px;color:var(--primary);padding:20px 0}.agent-progress{height:5px;overflow:hidden;border-radius:5px;background:var(--line);margin:8px 0 18px}.agent-progress span{display:block;height:100%;width:35%;background:var(--primary);animation:agent-progress 1.4s ease-in-out infinite}.agent-wait{font-size:.85rem;color:var(--muted)}.agent-preview{padding:20px;border:1px solid var(--line);border-radius:var(--radius);max-height:55vh;overflow:auto}.agent-preview h3{font-size:1.35rem;overflow-wrap:anywhere}.agent-preview .prose{padding:0}.note-actions .button{min-height:42px;padding:9px 14px}.cloud-blocked{filter:blur(5px);pointer-events:none;user-select:none}.cloud-guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0}.cloud-guide-grid h3{font-size:1.05rem;margin:0 0 10px}.cloud-guide-grid p{margin:0;font-size:.95rem}.cloud-flow{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:24px;border:1px solid var(--line);border-radius:var(--radius);margin:24px 0}.cloud-flow span{flex:1;min-width:100px;text-align:center;font-weight:600}.cloud-flow i{color:var(--primary)}
@keyframes cloud-spin{to{transform:rotate(360deg)}}@keyframes agent-progress{0%{transform:translateX(-110%)}100%{transform:translateX(390%)}}
@media(min-width:901px) and (max-width:1150px){.nav-link{gap:6px;padding-inline:8px}.nav-link i{display:none}.nav-actions{gap:6px}.sync-badge span{display:none}}
@media(max-width:900px){.dashboard-metrics{grid-template-columns:1fr}.count-card{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px 20px}.count-card>strong{grid-row:1/3;grid-column:2}.count-card>a{justify-content:flex-start;gap:12px}.auth-layout{gap:18px}.auth-art{min-height:280px}.auth-orbit{width:230px;height:230px}.auth-art img{width:90px;height:90px}.auth-art>span{font-size:1.2rem}.sync-badge span{display:none}.sync-badge{width:40px;justify-content:center}.dashboard-metrics{margin-bottom:32px}}
@media(max-width:600px){.auth-layout{display:block;margin:24px auto 40px}.auth-art{display:none}.auth-card{padding:24px}.auth-card h1{max-width:none;font-size:1.8rem}.resource-card{padding:20px}.dashboard-resources .resource-stack{grid-template-columns:1fr}.resource-number{font-size:1.8rem}.dashboard-note{padding:16px;grid-template-columns:24px minmax(0,1fr);gap:12px}.note-size{grid-column:2;justify-content:space-between}.dashboard-note h3{font-size:1rem}.section-head{gap:12px}.section-head h2{font-size:1.2rem}.account-settings .section-head{align-items:flex-start}.account-settings .button{padding:10px 12px}.account-links{gap:14px}.cloud-guide-grid{grid-template-columns:1fr}.cloud-flow{padding:20px 12px;gap:8px}.cloud-flow span{min-width:60px;font-size:.85rem}.note-actions{gap:8px}.note-actions .button{min-height:44px;padding:10px 12px}.note-actions .icon-mobile:not(.primary) .compact-label{display:none}.nav-actions .icon-btn,.sync-badge{width:36px;min-width:36px}.sync-badge{min-height:44px}.auth-connect-status{margin:22px 0}.agent-preview{padding:14px}}
@media(prefers-reduced-motion:reduce){.sync-badge i,.agent-progress span{animation:none!important}.agent-progress span{width:100%;opacity:.55}}
@media(max-width:1150px){.site-nav{flex-wrap:wrap;gap:8px}.nav-links{display:none;order:3;width:100%;flex-wrap:wrap;padding:10px 0 4px;border-top:1px solid var(--line)}.site-nav.open .nav-links{display:flex;justify-content:space-evenly}.nav-link{flex:1 0 auto;padding:8px 10px}.nav-actions{margin-left:auto}.mobile-toggle{display:inline-flex}.sync-badge span{display:none}.sync-badge{width:38px;justify-content:center}.nav-link i{display:inline-block}}
@media(max-width:600px){.nav-actions>[data-install-control]{display:none}.site-nav .brand{font-size:16px;gap:8px}.site-nav .brand img{width:27px;height:27px}.nav-actions .language-select{width:87px;min-width:0}.site-nav{flex-wrap:wrap;gap:4px}.nav-actions{gap:0}.nav-actions .sync-badge{width:32px;min-width:32px}.nav-links .nav-link{flex:1 0 28%;font-size:12px}.resource-pair strong{font-size:1.4rem}}
.settings-card #settings-storage .resource-card .eyebrow{display:flex}.settings-card #settings-storage>.resource-stack>.resource-card{padding:0;border:0;background:none}.settings-card #settings-storage .resource-card+.resource-card{padding-top:22px;border-top:1px solid var(--line);border-radius:0}.settings-card #settings-storage .resource-number{font-size:1.65rem}.language-select{font-size:12px}.sync-badge[data-state^=cloud]{color:var(--danger)}
@media(max-width:600px){.nav-actions .language-select{width:99px;padding-right:18px;padding-left:5px;font-size:11px}}@media(max-width:360px){.site-nav .brand{font-size:15px;gap:6px}.site-nav .brand img{width:25px;height:25px}}

/* Product and documentation share the same restrained visual rhythm. */
.home-detail{padding:64px 0;border-top:1px solid var(--line)}
.detail-heading{max-width:760px;margin:0 auto 30px;text-align:center}
.home-detail h2,.home-final h2{font-size:clamp(1.55rem,3vw,2.25rem);line-height:1.4;letter-spacing:-.035em;text-wrap:balance;margin:12px 0 18px}
.home-detail p{color:var(--muted);line-height:1.85;text-wrap:pretty}
.use-case-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.detail-card{padding:26px;min-width:0}
.detail-card>i{font-size:1.45rem;color:var(--primary);margin-bottom:16px}
.detail-card h3{font-size:1.05rem;line-height:1.6;margin:0 0 10px;text-wrap:balance}
.detail-card p{font-size:.92rem;margin:0}
.detail-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:48px;align-items:center}
.detail-checks{list-style:none;padding:0;display:grid;gap:17px;margin:25px 0}
.detail-checks li{display:flex;align-items:flex-start;gap:13px;line-height:1.6;font-size:.93rem}
.detail-checks i{width:20px;flex:none;margin-top:4px;color:var(--primary)}
.workspace-illustration{padding:25px;min-width:0;transform:rotate(-1deg)}
.illustration-top{display:flex;gap:12px;align-items:center;padding-bottom:20px;border-bottom:1px solid var(--line);font-size:.9rem}
.illustration-top span{margin-left:auto;color:var(--muted)}
.illustration-note{display:grid;grid-template-columns:20px minmax(0,1fr) 16px;align-items:center;gap:15px;padding:23px 0;border-bottom:1px solid var(--line)}
.illustration-note>i{color:var(--primary)}.illustration-note>i:last-child{color:var(--muted);font-size:.8rem}
.illustration-note strong{font-size:.92rem;font-weight:500;line-height:1.6}
.illustration-line{display:block;width:80%;height:5px;border-radius:5px;background:var(--line);margin-top:12px}.illustration-line.short{width:55%}
.illustration-foot{font-size:.8rem;color:var(--muted);display:flex;align-items:center;gap:10px;padding-top:20px;line-height:1.6}
.section-link{text-align:center;margin:24px 0 0}.section-link a{display:inline-flex;gap:12px;align-items:center;min-height:44px}
.agent-example{padding:28px}.agent-example blockquote{margin:20px 0 30px;padding:0;border:0;font-size:1.2rem;line-height:1.7;text-wrap:balance}
.agent-example-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;border-top:1px solid var(--line);padding-top:22px}
.agent-example-flow>span{color:var(--primary);font-size:.8rem}.agent-example-flow strong{display:block;color:var(--text);margin-top:8px;font-size:.8rem;font-weight:500;line-height:1.6}
.home-final{text-align:center;padding:42px 24px;margin:16px 0 55px}.home-final img{display:block;margin:auto}.home-final .actions{justify-content:center}
.agent-image-picker{border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin:20px 0}
.agent-image-picker legend{font-size:.9rem;font-weight:600;padding:0 8px}
.agent-image-picker>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.agent-image-picker label{min-width:0;display:grid;grid-template-columns:20px minmax(0,1fr);gap:8px;align-items:center;cursor:pointer;padding:8px;border:1px solid var(--line);border-radius:10px}
.agent-image-picker label:has(input:checked){border-color:var(--primary);background:color-mix(in srgb,var(--primary) 10%,transparent)}
.agent-image-picker input{width:18px;height:18px;accent-color:var(--primary)}.agent-image-picker img{width:100%;height:90px;object-fit:contain;background:var(--bg);border-radius:6px}.agent-image-picker label span{grid-column:1/-1;font-size:.8rem;overflow-wrap:anywhere}
.guide-block{margin:32px 0}.guide-block>h2{font-size:1.25rem;line-height:1.5;margin:0 0 18px;text-wrap:balance}.guide-block>p{line-height:1.9;color:var(--muted)}
.guide-steps{list-style:none;counter-reset:guide;padding:0;display:grid;gap:12px}.guide-steps li{counter-increment:guide;display:grid;grid-template-columns:28px minmax(0,1fr);gap:12px;padding:18px;border:1px solid var(--line);border-radius:var(--radius);line-height:1.85}.guide-steps li:before{content:counter(guide);color:var(--primary);font-size:.85rem;font-weight:600}
.guide-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius)}.guide-table{width:100%;border-collapse:collapse;text-align:left;font-size:.88rem}.guide-table th,.guide-table td{padding:16px;line-height:1.75;border-bottom:1px solid var(--line);vertical-align:top;min-width:120px}.guide-table th{color:var(--text);font-weight:600;background:color-mix(in srgb,var(--primary) 5%,transparent)}.guide-table td{color:var(--muted)}.guide-table tr:last-child td{border-bottom:0}
.guide-key-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.guide-key-flow>div{padding:20px 15px;border:1px solid var(--line);border-radius:var(--radius);min-width:0;text-align:center}.guide-key-flow i{color:var(--primary);font-size:1.2rem;display:block;margin-bottom:12px}.guide-key-flow strong{font-size:.9rem;line-height:1.6;display:block}.guide-key-flow p{font-size:.82rem;line-height:1.8;margin-bottom:0}
.guide-callout{padding:20px;border-left:3px solid var(--primary);border-radius:0 var(--radius) var(--radius) 0;background:color-mix(in srgb,var(--primary) 6%,transparent);line-height:1.9;font-size:.92rem}.guide-callout p{margin:0}.docs-content details summary{line-height:1.7}
@media(max-width:800px){.home-detail{padding:42px 0}.detail-split{grid-template-columns:1fr;gap:25px}.workspace-illustration{transform:none}.use-case-grid{grid-template-columns:1fr}.detail-card{padding:23px}.detail-heading{text-align:left;margin-bottom:25px}.home-final{padding:30px 20px}.guide-key-flow{grid-template-columns:1fr}.guide-key-flow>div{text-align:left;display:grid;grid-template-columns:24px minmax(0,1fr);gap:6px 12px}.guide-key-flow p{grid-column:2;margin:0}.guide-key-flow i{margin:4px 0 0}.guide-table th,.guide-table td{padding:12px}}
@media(max-width:600px){.agent-image-picker>div{grid-template-columns:1fr}.agent-image-picker label{grid-template-columns:20px 70px minmax(0,1fr)}.agent-image-picker label span{grid-column:auto}.agent-image-picker img{height:65px}.note-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.note-actions .button{min-width:0;white-space:normal;text-wrap:balance;justify-content:center;font-size:.82rem;line-height:1.5}.note-actions .icon-mobile:not(.primary) .compact-label{display:inline}.note-actions .button:last-child{grid-column:1/-1}.agent-example{padding:21px}.agent-example-flow{gap:9px}.agent-example blockquote{font-size:1.08rem}.guide-steps li{padding:15px;gap:9px}.home-detail h2{font-size:1.6rem}}
@media(max-width:600px){.note-actions .button>span{display:inline}.agent-example-flow strong{font-size:.76rem}}
.docs-content .cloud-guide-grid{align-items:stretch}.docs-content .cloud-guide-grid>.guide-card{margin:0}.docs-content .cloud-guide-grid:has(>.guide-card:last-child:nth-child(odd)){grid-template-columns:1fr}.docs-content .cloud-guide-grid>.card+.card{margin-top:0}
/* Mobile comparisons become labelled rows rather than narrow table columns. */
body:not([data-page=home]) .starfield{opacity:.28}
@media(max-width:600px){
 .note-actions .button.icon-mobile,.note-actions .button{width:100%;min-width:0}
 .note-actions .button>span:not(.spinner){display:inline}
 .note-actions .button:last-child:nth-child(even){grid-column:auto}
 .dialog-actions .button{font-size:13px;padding-inline:12px;gap:8px}
 .guide-table-wrap{border:0;overflow:visible}
 .guide-table,.guide-table tbody{display:block}
 .guide-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .guide-table tr{display:block;border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin-bottom:12px;background:var(--card)}
 .guide-table td{display:grid;grid-template-columns:84px minmax(0,1fr);gap:12px;min-width:0;padding:7px 0;border:0;line-height:1.8;font-size:.86rem}
 .guide-table td:before{content:attr(data-label);color:var(--muted);font-size:.8rem}
 .guide-table td:first-child{display:block;font-weight:600;color:var(--text);font-size:.94rem;border-bottom:1px solid var(--line);padding:0 0 10px;margin-bottom:7px}
 .guide-table td:first-child:before{display:none}
}
@media(max-width:360px){.nav-actions>button:first-child{display:inline-flex}}
@media(max-width:600px){.note-actions{align-items:stretch}.note-actions .button{height:100%}.guide-table td{grid-template-columns:110px minmax(0,1fr)}}
@media(max-width:360px){.note-actions .button{font-size:12px;padding-inline:10px;gap:7px}}

/* Account actions and storage are deliberately separate. */
.nav-auth{white-space:nowrap;min-height:44px;padding:9px 13px}.nav-auth i{font-size:14px}
.notes-workspace{grid-template-columns:minmax(0,1fr)}
.dashboard-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.dashboard-resources,.dashboard-resources>.resource-stack{display:contents}
.resource-pair{gap:14px}.resource-pair strong{font-size:clamp(1rem,1.6vw,1.4rem);white-space:nowrap;overflow-wrap:normal}
.resource-card .meter{height:7px}.meter-caption{font-size:.8rem;color:var(--muted);text-align:right;margin:7px 0 0;font-variant-numeric:tabular-nums}
.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.settings-grid>.app-settings{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;gap:20px}
.settings-grid>.app-settings>h2{margin:0}
@media(max-width:600px){.settings-grid>.app-settings{flex-direction:column;align-items:stretch}.app-install-row .button{width:100%}}
.trash-note-banner{display:flex;align-items:center;gap:12px;padding:14px 18px;border:1px solid var(--line);border-radius:10px;color:var(--muted);font-size:.88rem;line-height:1.7}
.home-purpose{border-top:0;padding-top:8px}
.home-purpose .detail-heading{max-width:780px}
.home-purpose .detail-card h3,.detail-card h3{display:flex;align-items:flex-start;gap:11px;text-align:left}
.detail-card h3>i{color:var(--primary);font-size:1.15rem;margin-top:4px}
.home-purpose .feature-grid{gap:16px}.home-purpose .detail-card{padding:24px 21px}.home-purpose .detail-card p{font-size:.87rem}
.hero .intro{white-space:pre-line}
@media(prefers-reduced-motion:no-preference){body[data-page=home] .reveal{animation-duration:.1125s}body[data-page=home] .hero-preview{animation-duration:.125s}}
@media(max-width:1150px){.nav-actions .sync-badge{display:none}.nav-auth{font-size:12px}.resource-pair strong{font-size:1.1rem}}
@media(max-width:900px){.dashboard-metrics{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.resource-pair strong{font-size:1.4rem}}
@media(max-width:600px){
 .nav-actions .sync-badge{display:none!important}
 .nav-actions .nav-auth{display:inline-flex;width:40px;min-width:40px;height:44px;padding:0;border-radius:9px}
 .nav-actions .nav-auth>span{display:none}
 .nav-actions .language-select{width:99px}
 .nav-actions .mobile-toggle{width:36px;min-width:36px}
 .home-purpose .detail-card{padding:20px 17px}.home-purpose .feature-grid{gap:12px}.home-purpose .detail-card h3{font-size:.93rem;line-height:1.6;gap:9px}.home-purpose .detail-card h3>i{font-size:1rem}.home-purpose .detail-card p{font-size:.81rem}
}
@media(max-width:360px){.home-purpose .feature-grid{grid-template-columns:1fr}.nav-actions .language-select{width:88px}}
.home-final .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:390px;margin-inline:auto;align-items:stretch}.home-final .actions .button{min-width:0;min-height:44px;font-size:12px;padding:10px 12px;gap:7px}
