/* Shared app surfaces; existing LikeHobby fonts and palette. */
.apps-page { --ink:#25292c; --muted:#526168; --slate:#3d6175; --line:#d5dcde; --soft:#edf1f2; --word-paper:#fff; --word-ink:#25292c; --word-muted:#526168; --word-slate:#3d6175; --word-line:#d5dcde; --word-soft:#edf1f2; background:#f7f7f4; color:var(--ink); }
.apps-page *, .apps-page *::before, .apps-page *::after { box-sizing:border-box; }
.apps-page [hidden] { display:none !important; }
.apps-page a { color:var(--slate); text-underline-offset:.2em; }
body.apps-page .site-header.app-header { width:min(1120px,calc(100% - 40px)) !important; margin:12px auto 0 !important; padding:8px 0; display:flex; align-items:center; justify-content:space-between; gap:12px; border:0; border-bottom:1px solid var(--line); border-radius:0; background:transparent; box-shadow:none; min-height:66px; }
.apps-page .app-header .brand-wordmark { width:166px; height:48px; object-fit:cover; object-position:50% 54%; }
.apps-page .app-header nav { display:flex; gap:2px; }
body.apps-page .site-header.app-header nav > a,
body.apps-page.growth-refresh.hobby-atlas-home .site-header.commerce-header.app-header nav > a { display:inline-flex !important; align-items:center; min-height:44px; padding:var(--nav-padding,8px 12px); font-size:var(--nav-size,.88rem); font-weight:650; text-decoration:none; border:1px solid transparent; border-radius:10px; color:var(--muted); background:transparent; box-shadow:none; }
body.apps-page .site-header.app-header nav > a::after { content:none; }
body.apps-page .site-header.app-header nav > a:is(:hover,[aria-current]),
body.apps-page.growth-refresh.hobby-atlas-home .site-header.commerce-header.app-header nav > a:is(:hover,[aria-current]) { background:var(--soft); color:var(--slate); }
.apps-page :is(button,input,select,summary,a):focus-visible { outline:3px solid var(--slate); outline-offset:3px; }
.app-main { width:min(960px,calc(100% - 40px)); margin:24px auto 64px; }
.app-main h1 { margin:0 0 22px; font:500 clamp(2rem,4.5vw,3.1rem)/1.1 "Fraunces",Georgia,serif; letter-spacing:-.04em; }
.app-skip { position:absolute; top:0; left:12px; transform:translateY(-150%); z-index:20; background:white; padding:12px; }
.app-skip:focus { transform:translateY(0); }
.app-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:46px; padding:11px 17px; border:1px solid var(--line); border-radius:10px; background:white; color:var(--ink); font:650 .94rem/1.3 "Manrope",Arial,sans-serif; cursor:pointer; text-decoration:none; }
.app-button.primary { color:white; background:var(--slate); border-color:var(--slate); }
.app-button:hover { background:#e7edef; }
.app-button.primary:hover { background:#29495a; }
.app-button:disabled { opacity:.55; cursor:default; }
.app-caption { font-size:.8rem; color:var(--muted); margin:8px 0; line-height:1.5; }
.app-help { margin:32px 0 0; border-top:1px solid var(--line); padding-top:10px; color:var(--muted); font-size:.92rem; line-height:1.7; }
.app-help summary { min-height:44px; display:flex; align-items:center; cursor:pointer; font-weight:650; }
.app-help p { max-width:70ch; }
.app-help summary::after { content:"+"; margin-left:auto; font-size:1.3rem; }
.app-help[open] summary::after { content:"−"; }
.app-footer { width:min(1120px,calc(100% - 40px)); margin:0 auto; padding:24px 0; border-top:1px solid var(--line); display:flex; gap:16px; flex-wrap:wrap; font-size:.78rem; color:var(--muted); }
.app-footer a { text-decoration:none; min-height:36px; display:inline-flex; align-items:center; }
.app-footer .footer-brand { margin-right:auto; }
.app-status { min-height:1.5em; margin:10px 0 0; font-size:.85rem; color:var(--slate); }
.app-status.error { color:#8a3029; }
.grid-workspace { display:grid; grid-template-columns:minmax(0,1fr) 260px; gap:28px; align-items:start; }
.grid-preview { padding:12px; border:1px solid var(--line); background:white; border-radius:16px; }
.grid-preview canvas { display:block; width:100%; height:auto; max-height:530px; object-fit:contain; }
.grid-toolbar { display:grid; gap:16px; }
.grid-toolbar label { display:grid; gap:8px; font-size:.85rem; font-weight:650; }
.grid-toolbar input[type=range] { width:100%; accent-color:var(--slate); min-height:32px; }
.grid-toolbar select { width:100%; font:inherit; padding:10px; min-height:44px; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:white; }
.grid-toolbar .download-actions { display:grid; gap:10px; padding-top:8px; }
.grid-toolbar details { border-top:1px solid var(--line); padding-top:8px; }
.grid-toolbar summary { cursor:pointer; min-height:44px; display:flex; align-items:center; font-size:.85rem; }
.grid-toolbar details label { margin-bottom:12px; }
.grid-preview-switch { display:flex; gap:8px; margin-bottom:10px; }
.grid-preview-switch button { flex:1; min-height:40px; font-size:.8rem; }
.grid-preview-switch [aria-pressed=true] { background:var(--soft); border-color:var(--slate); }
.prompt-card { max-width:720px; margin:auto; padding:clamp(24px,5vw,48px); border:1px solid var(--line); border-radius:20px; background:#fff; }
.prompt-meta { display:flex; justify-content:space-between; gap:10px; font-size:.8rem; color:var(--muted); }
.prompt-card h2 { font:500 clamp(1.8rem,4vw,2.8rem)/1.22 "Fraunces",Georgia,serif; letter-spacing:-.03em; margin:30px 0; min-height:3.66em; }
.prompt-actions { display:flex; flex-wrap:wrap; gap:10px; }
.prompt-filters { display:flex; flex-wrap:wrap; gap:16px; margin:22px 0 0; }
.prompt-filters label { display:grid; gap:6px; font-size:.8rem; color:var(--muted); }
.prompt-filters select { padding:8px 28px 8px 10px; min-height:44px; border:1px solid var(--line); border-radius:8px; background:white; color:var(--ink); font:inherit; }
.prompt-saved { margin:28px auto 0; max-width:720px; }
.prompt-saved ul { padding:0; list-style:none; display:grid; gap:8px; }
.prompt-saved li { display:flex; justify-content:space-between; gap:12px; border-bottom:1px solid var(--line); padding:10px 0; }
.prompt-saved button { flex:none; min-height:44px; background:transparent; border:0; color:var(--slate); cursor:pointer; font:inherit; }
.home-app-main { width:min(960px,calc(100% - 40px)); margin:32px auto 60px; }
.home-app-main h1 { margin:0 0 24px; font:500 clamp(2.2rem,5vw,3.9rem)/1.07 "Fraunces",Georgia,serif; letter-spacing:-.04em; max-width:14ch; }
.home-switch { display:flex; gap:6px; margin-bottom:18px; }
.home-switch button,.home-switch a { flex:1; }
.home-switch [aria-pressed=true] { background:var(--ink); border-color:var(--ink); color:white; }
.home-app-main .word-card { width:100%; margin:0; padding:26px 32px; border-radius:18px; box-shadow:none; }
.home-app-main .word-story h2 { font-size:1.6rem; }
.home-app-main .word-progress { margin-bottom:16px; }
.home-app-main .word-copy { margin-top:14px; }
.home-app-main .word-copy .word-cloze { font-size:1.2rem; line-height:1.7; }
.home-app-main .word-source-note { margin-top:10px; }
.app-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:32px; }
.app-tile { padding:22px 18px; border:1px solid var(--line); border-radius:14px; background:transparent; text-decoration:none; transition:background .15s; }
.app-tile:hover { background:white; }
.app-tile svg { width:44px; height:44px; margin-bottom:14px; stroke:var(--slate); fill:none; stroke-width:1.5; }
.app-tile strong { display:block; color:var(--ink); font-size:.94rem; }
.app-tile small { display:block; margin-top:6px; color:var(--muted); font-size:.78rem; }
.legacy-explore { width:min(1120px,calc(100% - 40px)); margin:0 auto 44px; }
.legacy-explore > summary { cursor:pointer; min-height:44px; font-size:.85rem; color:var(--muted); }
.legacy-explore .atlas-hero { display:none; }
.legacy-explore .atlas-shell { padding-top:12px; }
.related-tool { margin-top:24px; font-size:.9rem; }
.app-ad-slot[hidden] { display:none; }
@media(max-width:760px) {
 body.apps-page .site-header.app-header { width:calc(100% - 28px) !important; margin:4px auto 0 !important; min-height:58px; gap:6px; --nav-padding:8px; --nav-size:.8rem; }
 .apps-page .app-header .brand-wordmark { width:134px; height:40px; }
 .apps-page .app-header nav a { padding:8px; font-size:.8rem; }
 .app-main,.home-app-main { width:calc(100% - 28px); margin:20px auto 40px; }
 .app-main h1 { font-size:2rem; margin-bottom:16px; }
 .home-app-main h1 { font-size:2.35rem; margin-bottom:22px; }
 .grid-workspace { grid-template-columns:1fr; gap:18px; }
 .grid-preview { padding:8px; }
 .grid-preview canvas { max-height:320px; }
 .grid-toolbar { gap:10px; }
 .grid-toolbar .download-actions { grid-template-columns:1fr 1fr; }
 .grid-toolbar .download-actions button { font-size:.8rem; padding:10px 8px; }
 .prompt-card { padding:24px 20px; }
 .prompt-card h2 { font-size:2rem; margin:22px 0; }
 .prompt-actions .primary { flex:1; }
 .app-cards { grid-template-columns:1fr 1fr; gap:10px; margin-top:24px; }
 .home-app-main .word-card { padding:20px 18px; }
 .home-app-main .word-copy .word-cloze { font-size:1.07rem; }
 .home-app-main .word-story h2 { font-size:1.45rem; }
 .app-footer,.legacy-explore { width:calc(100% - 28px); }
}
@media(max-width:360px) { body.apps-page .site-header.app-header { --nav-size:.76rem; --nav-padding:7px; } .apps-page .app-header .brand-wordmark { width:114px; height:36px; } .home-switch .app-button { padding:10px 6px; font-size:.8rem; } }
@media(prefers-reduced-motion:reduce) { .apps-page * { animation:none !important; transition:none !important; scroll-behavior:auto !important; } }
