:root{--bg:#f5f7fb;--ink:#172238;--muted:#667187;--blue:#335eea;--line:#e4e9f1;--soft:#eef2ff;--white:#fff;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0;line-height:1.55}a{color:inherit;text-decoration:none}button,input,textarea{font:inherit}button,a,input,textarea,summary{-webkit-tap-highlight-color:transparent}a,button,input,textarea,summary{touch-action:manipulation}button,summary{cursor:pointer}img{max-width:100%;object-fit:cover}button{border:0}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #92aaff;outline-offset:4px}input:focus,textarea:focus,[contenteditable]:focus{outline:2px solid #a7b8fc;outline-offset:1px}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}h1{letter-spacing:-.055em;line-height:1.13}h2{letter-spacing:-.035em}small{display:block;font-size:12px;color:var(--muted);font-weight:400;margin-top:7px}.public-shell{max-width:960px;margin:auto;padding:0 28px}.topbar,.admin-header{height:92px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;font-size:21px;font-weight:800;letter-spacing:-.05em}.brand-icon{width:37px;height:37px;background:var(--blue);color:#fff;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;font-weight:850;font-size:26px;letter-spacing:-3px;box-shadow:0 4px 9px #335eea16;flex-shrink:0}.brand-icon span{font-size:17px;margin-top:-9px;margin-right:2px}.top-label{font-size:10px;letter-spacing:.18em;color:#7c8698;font-weight:700}.hero{position:relative;padding:52px 0 36px;overflow:hidden;min-height:278px}.eyebrow{font-size:10px;letter-spacing:.13em;font-weight:800;color:var(--blue);display:block}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--blue);margin-right:5px}.hero h1{font-size:48px;margin:17px 0}.hero h1 span{color:var(--blue)}.hero p{font-size:14px;color:var(--muted);max-width:540px;margin:0}.hero-art{position:absolute;right:14px;top:48px;width:220px;height:180px;z-index:-1}.art-tile{position:absolute;width:95px;height:95px;border-radius:28px;display:grid;place-items:center;font-size:48px;box-shadow:0 18px 30px #335eea18}.tile-a{background:#dce5ff;color:#335eea;top:3px;left:90px;transform:rotate(15deg)}.tile-b{background:#335eea;color:white;top:65px;left:25px;transform:rotate(-16deg)}.orbit{position:absolute;inset:-10px;border:1px solid #335eea15;border-radius:50%;transform:rotate(30deg);z-index:-1}.search{background:#fff;border:1px solid var(--line);border-radius:15px;display:flex;gap:12px;align-items:center;padding:0 18px;box-shadow:0 4px 14px #1b335303;height:60px;margin:0}.search>span:first-child{font-size:30px;line-height:1;color:#7b879c}.search input{border:0!important;background:transparent;padding:0!important;min-width:0;flex:1;width:100%;font-size:15px;box-shadow:none!important}.search input:focus{outline:none}.search:focus-within{outline:2px solid #a7b8fc}.search-hint{font-size:9px;letter-spacing:.12em;color:#9ca6b6;font-weight:700}.collection-heading{display:flex;justify-content:space-between;align-items:end;margin:34px 0 18px;gap:12px}.collection-heading h2{font-size:25px;margin:4px 0 0}.count{font-size:12px;font-weight:700;border:1px solid var(--line);padding:3px 8px;border-radius:7px;vertical-align:middle;margin-left:5px;color:#727d92}.subtle{font-size:13px;color:var(--muted)}.app-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.app-card{background:#fff;border:1px solid var(--line);padding:24px;border-radius:22px;transition:transform .18s,box-shadow .18s;display:flex;flex-direction:column;min-width:0}.app-card:hover{transform:translateY(-3px);box-shadow:0 12px 25px #293c7310;border-color:#c8d4f4}.card-top{display:flex;justify-content:space-between;align-items:start;margin-bottom:20px}.app-icon{width:88px;height:88px;border-radius:22px;border:1px solid #00000008;flex-shrink:0;background:#edf1fa}.card-arrow{width:32px;height:32px;border-radius:50%;background:#f6f8fc;color:#7b869d;display:grid;place-items:center;font-size:19px}.category{font-size:11px;color:var(--muted);margin-bottom:5px}.app-card h2{font-size:25px;margin:0 0 8px;overflow-wrap:anywhere}.app-card p{font-size:13px;color:var(--muted);margin:0 0 22px;flex:1;overflow-wrap:anywhere}.card-bottom{padding-top:15px;border-top:1px solid #edf0f5;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:#737e92}.card-bottom strong{color:var(--blue);font-size:12px}.info-strip{display:flex;align-items:center;gap:14px;border:1px dashed #d5ddec;border-radius:14px;padding:19px;margin:24px 0 38px;color:#778297}.info-strip p{margin:0;font-size:12px}.info-strip strong{color:#536078;font-weight:600}.info-symbol{width:28px;height:28px;border:1px solid #bcc9e5;border-radius:50%;display:grid;place-items:center;color:#8192b8;flex-shrink:0}.public-footer{border-top:1px solid var(--line);padding:22px 0 30px;display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#7f8aa0;margin-top:28px}.back{display:inline-block;color:#65738d;font-size:13px;margin:26px 0}.detail-hero{display:flex;align-items:center;gap:22px;margin:8px 0 20px}.detail-hero .app-icon{width:104px;height:104px;border-radius:25px}.detail-hero h1{font-size:38px;margin:8px 0 7px;overflow-wrap:anywhere}.detail-hero p{font-size:13px;color:var(--muted);margin:0}.detail-summary{color:#64718a;font-size:15px;max-width:680px;overflow-wrap:anywhere}.article-meta{border-bottom:1px solid var(--line);padding:24px 0 16px;display:flex;justify-content:space-between;gap:12px;font-size:10px;font-weight:700;color:#687891;letter-spacing:.07em}.article-meta span{font-weight:400;letter-spacing:0}.article{font-size:16px;line-height:1.85;overflow-wrap:anywhere;color:#38465d}.article h2{font-size:24px;color:var(--ink);line-height:1.35;margin:30px 0 14px}.article h3{font-size:20px;line-height:1.4;margin:24px 0 12px}.article p{margin-bottom:17px}.article a{color:var(--blue);text-decoration:underline;text-underline-offset:4px;font-weight:600}.article li{margin:8px 0}.article blockquote{border-left:3px solid #aabbf4;margin:20px 0;padding:14px 20px;background:var(--soft)}.bottom-callout{border-radius:14px;background:#eaf0ff;padding:20px;display:flex;justify-content:space-between;gap:12px;font-size:13px;margin-top:36px}.bottom-callout a{font-weight:700;color:var(--blue)}.empty{text-align:center;padding:55px 15px;color:var(--muted)}.empty h1{font-size:32px;color:var(--ink)}.primary,.secondary,.danger{border-radius:10px;padding:12px 20px;font-size:14px;font-weight:650;display:inline-flex;justify-content:center;align-items:center;min-height:46px;gap:8px;text-align:center}.primary{background:var(--blue);color:white}.primary:hover{background:#254aca}.secondary{background:#edf1fa;color:#35445f}.danger{background:#fff0f0;color:#bd3f3f}.full{width:100%}.auth-shell{width:min(480px,100%);margin:45px auto;padding:0 20px}.auth-card{background:white;border:1px solid var(--line);border-radius:24px;padding:32px}.auth-card>.brand-icon{margin-bottom:28px}.auth-card h1{font-size:31px;margin:12px 0 16px}.auth-card form{margin-top:28px}form label{display:block;font-size:13px;font-weight:600;margin:18px 0}input:not([type=checkbox]),textarea{display:block;width:100%;border:1px solid #dce3ee;background:white;border-radius:9px;padding:12px;color:var(--ink);margin-top:7px;font-size:16px}textarea{resize:vertical}input[type=file]{font-size:12px;background:#f7f9fd;padding:10px}input[type=checkbox]{accent-color:var(--blue);width:18px;height:18px;flex-shrink:0}.check{display:flex;align-items:center;gap:9px;margin:0;font-weight:500}.alert{padding:13px 16px;border-radius:10px;font-size:14px;overflow-wrap:anywhere}.error{background:#fff0ee;color:#a32c23;border:1px solid #f0c8c3}.success{background:#eaf7f0;color:#26714c;border:1px solid #cee9db}.admin-shell{max-width:1000px;margin:auto;padding:0 28px}.admin-nav{display:flex;gap:8px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line);font-size:13px}.admin-nav>a{padding:9px 15px;border-radius:8px}.admin-nav .active{background:#e6edff;color:var(--blue);font-weight:700}.admin-nav form{margin-left:auto}.plain{background:none;color:#66748e;font-size:13px;padding:10px}.text-link{color:var(--blue);font-size:13px;font-weight:600}.page-heading{margin:32px 0 23px}.page-heading h1{font-size:35px;margin:8px 0 10px}.heading-row{display:flex;align-items:center;justify-content:space-between;gap:18px}.heading-row p{margin:0}.admin-list{display:grid;gap:13px}.admin-app{display:flex;align-items:center;gap:18px;background:#fff;border:1px solid var(--line);padding:20px;border-radius:15px}.admin-app .app-icon{width:62px;height:62px;border-radius:15px}.admin-app h2{font-size:19px;margin:0 0 5px}.admin-app p{font-size:12px;color:var(--muted);margin:0}.admin-app>div{min-width:0;overflow-wrap:anywhere}.edit-label{margin-left:auto;color:var(--blue);font-size:13px;white-space:nowrap}.status{color:#46765f}.admin-panel{padding:25px;background:white;border:1px solid var(--line);border-radius:16px;margin-bottom:22px}.admin-panel h2{font-size:21px;margin-bottom:15px}.admin-panel form>label:first-of-type{margin-top:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid label{margin-bottom:0}.icon-field{display:flex;align-items:center;gap:20px}.icon-field label{flex:1;min-width:0}.icon-field .app-icon{width:76px;height:76px;border-radius:19px}.editor-panel{padding:0;overflow:hidden}.editor-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:22px 24px 14px}.editor-heading h2{margin:0}.toolbar{padding:10px 15px;background:#f6f8fd;border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;flex-wrap:wrap;gap:5px}.toolbar button{padding:10px 12px;background:white;border:1px solid #e0e6f1;border-radius:7px;font-size:12px;min-height:40px;color:#405270}.toolbar button:hover{background:#e7edfc}.editor{min-height:360px;padding:10px 25px 28px}.editor:focus{outline:none;box-shadow:inset 0 0 0 2px #a7b8fc}.editor-help{font-size:12px;color:var(--muted);padding:16px 24px;border-top:1px solid var(--line);margin:0;background:#fcfdff}.preview{padding:10px 25px 28px;min-height:360px;background:#fdfefe}.save-bar{display:flex;justify-content:space-between;align-items:center;gap:14px;position:sticky;bottom:12px;background:#ffffffed;border:1px solid #d8e1f0;border-radius:14px;padding:15px;box-shadow:0 6px 25px #15306512;z-index:3}.save-bar .check{font-size:13px}.edit-extras{margin:28px 0}.delete-box{margin-top:20px;font-size:13px;color:#ad4545}.delete-box form{padding:16px;border:1px solid #f0d1d1;border-radius:12px;margin-top:10px}.delete-box button{margin-top:14px}dialog{border:1px solid var(--line);border-radius:18px;padding:26px;width:min(440px,calc(100% - 28px));color:var(--ink)}dialog::backdrop{background:#16203988}.dialog-buttons{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}
@media(min-width:800px){.hero-art{z-index:0}.hero h1,.hero p,.hero>.eyebrow{position:relative;z-index:1;max-width:650px}.hero h1{max-width:600px}.hero p{max-width:570px}}
@media(max-width:600px){.public-shell,.admin-shell{padding:0 20px}.topbar,.admin-header{height:75px}.brand{font-size:19px;gap:9px}.brand-icon{width:33px;height:33px;font-size:23px;border-radius:10px}.top-label{font-size:8px;letter-spacing:.08em}.hero{padding:34px 0 28px;min-height:0}.hero h1{font-size:36px;margin:16px 0}.hero p{font-size:13px}.hero>.eyebrow{font-size:8px;letter-spacing:.08em}.hero-art{display:none}.search{height:55px;padding:0 14px;border-radius:12px}.search-hint{display:none}.collection-heading{margin:28px 0 16px}.collection-heading h2{font-size:23px}.collection-heading>.subtle{display:none}.app-grid{gap:12px}.app-card{padding:16px 13px;border-radius:17px}.card-top{margin-bottom:18px}.app-icon{width:66px;height:66px;border-radius:17px}.card-arrow{width:23px;height:23px;font-size:15px}.category{font-size:9px}.app-card h2{font-size:19px;letter-spacing:-.04em;margin-bottom:7px}.app-card p{font-size:11px;line-height:1.65;margin-bottom:17px}.card-bottom{align-items:start;flex-direction:column;gap:7px;font-size:9px;padding-top:11px}.card-bottom strong{font-size:11px}.info-strip{padding:15px;gap:11px;margin:21px 0 28px}.info-strip p{font-size:11px}.public-footer{font-size:9px;gap:8px;flex-wrap:wrap}.detail-hero{gap:16px}.detail-hero .app-icon{width:78px;height:78px;border-radius:20px}.detail-hero h1{font-size:29px}.detail-hero .eyebrow{font-size:9px}.detail-summary{font-size:14px}.article-meta{font-size:9px;letter-spacing:0}.article h2{font-size:23px}.article{font-size:15px}.bottom-callout{flex-direction:column;font-size:12px}.auth-shell{margin-top:28px;padding:0 16px}.auth-card{padding:24px}.auth-card h1{font-size:28px}.page-heading h1{font-size:29px}.heading-row{align-items:start;flex-direction:column}.heading-row>.primary{width:100%}.admin-app{gap:12px;padding:15px}.admin-app .app-icon{width:52px;height:52px;border-radius:13px}.admin-app h2{font-size:17px}.admin-app p{font-size:10px}.edit-label{font-size:0}.edit-label::after{content:'→';font-size:19px}.admin-panel{padding:18px}.form-grid{grid-template-columns:1fr;gap:0}.editor-panel{padding:0}.editor-heading{padding:18px;flex-direction:column;align-items:start;gap:4px}.toolbar{padding:9px}.toolbar button{padding:9px 10px}.editor,.preview{padding:10px 18px 25px;min-height:350px}.editor-help{padding:14px 18px}.save-bar{padding:12px;bottom:8px;flex-wrap:wrap}.save-bar .primary{width:100%}.icon-field{gap:13px}.icon-field .app-icon{width:60px;height:60px}.public-footer{margin-top:25px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Article images v2 */
.article img{display:block;max-width:100%;height:auto;object-fit:contain;border-radius:10px;margin:18px auto}
.image-status{margin:0;padding:12px 18px;font-size:13px;color:#335eea;background:#eef2ff;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.image-status.is-error{color:#a32c23;background:#fff0ee}
.image-upload-pending{display:inline-block;padding:12px 18px;margin:12px 0;border:1px dashed #a7b8fc;border-radius:8px;color:#5068a8;background:#eef2ff;font-size:13px}
button:disabled{opacity:.55;cursor:wait}
