:root{--p:#1b3a4b;--bg:#f3f5f8;--surface:#fff;--text:#14212b;--muted:#64717e;--border:#e2e7ed;--shadow:0 1px 2px rgba(16,32,48,.05),0 8px 30px rgba(16,32,48,.07);--r:20px;--font:system-ui,-apple-system,"Segoe UI","Noto Sans",Tahoma,Arial,sans-serif}
@media(prefers-color-scheme:dark){:root{--bg:#0d141a;--surface:#151f27;--text:#eaf0f5;--muted:#93a1ae;--border:#233240;--shadow:0 1px 2px rgba(0,0,0,.3),0 10px 34px rgba(0,0,0,.35)}}
*{box-sizing:border-box}html,body{margin:0}body{font-family:var(--font);background:var(--bg);color:var(--text);line-height:1.5;-webkit-text-size-adjust:100%;min-height:100vh}
a{color:inherit;text-decoration:none}
.fh-wrap{min-height:100vh;display:flex;flex-direction:column}
.fh-hero{position:relative;overflow:hidden;color:#fff;background:linear-gradient(135deg,color-mix(in srgb,var(--p) 92%,#000),color-mix(in srgb,var(--p) 70%,#5b7cff));padding:22px 20px 124px}
.fh-hero:before,.fh-hero:after{content:'';position:absolute;border-radius:50%;background:#fff;opacity:.08;filter:blur(2px);animation:fh-f 18s ease-in-out infinite alternate}
.fh-hero:before{width:420px;height:420px;top:-160px;inset-inline-end:-80px}.fh-hero:after{width:260px;height:260px;bottom:-130px;inset-inline-start:8%;animation-delay:-7s}
@keyframes fh-f{to{transform:translate(-30px,24px) scale(1.12)}}
.fh-hero-in{position:relative;z-index:1;max-width:1120px;margin:0 auto}
.fh-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:44px}
.fh-brand{display:flex;align-items:center;gap:12px;min-width:0}.fh-org{font-weight:650;font-size:15px;letter-spacing:.2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fh-logo-tile{width:42px;height:42px;border-radius:13px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.28);display:inline-flex;align-items:center;justify-content:center;backdrop-filter:blur(6px);flex:none}
.fh-logo-img{max-height:46px;object-fit:contain;display:block}
.fh-user{display:flex;align-items:center;gap:10px;font-size:13px;opacity:.95}.fh-user a{padding:6px 12px;border:1px solid rgba(255,255,255,.35);border-radius:99px}.fh-user a:hover{background:rgba(255,255,255,.14)}
.fh-hero h1{margin:0;font-size:clamp(30px,6vw,52px);line-height:1.08;letter-spacing:-.02em;font-weight:750;animation:fh-u .7s ease both}
.fh-tag{margin:12px 0 0;font-size:clamp(15px,2.6vw,19px);opacity:.92;animation:fh-u .7s .08s ease both}.fh-hint{margin:6px 0 0;opacity:.7;font-size:14px;animation:fh-u .7s .14s ease both}
@keyframes fh-u{from{opacity:0;transform:translateY(14px)}}
.fh-main{flex:1;max-width:1160px;width:100%;margin:-84px auto 0;padding:0 20px 40px;position:relative;z-index:2}
.fh-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:18px;animation:fh-u .6s .2s ease both}
.fh-search{display:flex;align-items:center;gap:10px;flex:1 1 260px;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:0 14px;box-shadow:var(--shadow);color:var(--muted)}
.fh-search input{flex:1;border:0;background:none;color:var(--text);font:inherit;padding:13px 0;outline:none;min-width:0}
.fh-cats{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;max-width:100%}.fh-cats::-webkit-scrollbar{display:none}
.fh-cats button{flex:none;border:1px solid var(--border);background:var(--surface);color:var(--text);padding:9px 16px;border-radius:99px;font:inherit;font-size:13px;cursor:pointer;box-shadow:var(--shadow)}.fh-cats button.on{background:var(--p);border-color:var(--p);color:#fff}
.fh-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px}
.fh-card{position:relative;display:flex;flex-direction:column;gap:14px;padding:22px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r);box-shadow:var(--shadow);overflow:hidden;min-height:210px;transition:transform .25s,box-shadow .25s,border-color .25s;animation:fh-u .6s calc(.12s + var(--i)*.06s) ease both}
.fh-card:before{content:'';position:absolute;inset:0 0 auto 0;height:4px;background:linear-gradient(90deg,var(--c),color-mix(in srgb,var(--c) 40%,#fff));opacity:.9}
.fh-card:after{content:'';position:absolute;width:180px;height:180px;border-radius:50%;background:var(--c);opacity:.07;inset-inline-end:-60px;top:-70px;transition:transform .4s,opacity .3s}
.fh-card:hover{transform:translateY(-5px);border-color:color-mix(in srgb,var(--c) 45%,var(--border));box-shadow:0 18px 44px color-mix(in srgb,var(--c) 22%,transparent)}.fh-card:hover:after{transform:scale(1.4);opacity:.12}
.fh-card:focus-visible{outline:3px solid color-mix(in srgb,var(--c) 60%,transparent);outline-offset:2px}
.fh-ico{width:54px;height:54px;border-radius:16px;display:inline-flex;align-items:center;justify-content:center;color:var(--c);background:color-mix(in srgb,var(--c) 13%,var(--surface));flex:none;position:relative;z-index:1}.fh-ico img{width:34px;height:34px;object-fit:contain;border-radius:8px}
.fh-st{position:absolute;top:20px;inset-inline-end:18px;display:inline-flex;align-items:center;gap:6px;font-size:11px;color:var(--muted);z-index:1}.fh-st i{width:8px;height:8px;border-radius:50%;background:#9aa7b3}
.fh-st[data-state=up] i{background:#1fa55b;box-shadow:0 0 0 0 rgba(31,165,91,.5);animation:fh-pulse 2.4s infinite}.fh-st[data-state=down] i{background:#d33}.fh-st[data-state=unknown] i{animation:fh-blink 1.2s infinite}
@keyframes fh-pulse{70%{box-shadow:0 0 0 7px rgba(31,165,91,0)}100%{box-shadow:0 0 0 0 rgba(31,165,91,0)}}@keyframes fh-blink{50%{opacity:.3}}
.fh-body{display:flex;flex-direction:column;gap:4px;flex:1;position:relative;z-index:1}.fh-name{font-size:20px;font-weight:700;letter-spacing:-.01em}.fh-desc{color:var(--muted);font-size:14px}
.fh-foot{display:flex;align-items:center;justify-content:flex-end;gap:10px;position:relative;z-index:1;padding-top:12px;border-top:1px solid var(--border)}
.fh-host{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fh-go{display:inline-flex;align-items:center;gap:6px;font-weight:650;font-size:14px;color:var(--c);flex:none}.fh-go svg{transition:transform .25s}.fh-card:hover .fh-go svg{transform:translateX(4px)}
[dir=rtl] .fh-go svg{transform:scaleX(-1)}
.fh-empty,.fh-none{background:var(--surface);border:1px dashed var(--border);border-radius:var(--r);padding:44px 20px;text-align:center;color:var(--muted)}.fh-empty a{color:var(--p);text-decoration:underline}
.fh-footer{padding:22px 20px 30px;text-align:center;color:var(--muted);font-size:13px}
[hidden]{display:none!important}
@media(max-width:640px){.fh-hero{padding:16px 16px 84px}.fh-top{margin-bottom:30px}.fh-main{padding:0 12px 28px;margin-top:-58px}.fh-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.fh-card{min-height:0;padding:14px 12px 12px;gap:10px;border-radius:16px}.fh-ico{width:44px;height:44px;border-radius:13px}.fh-ico svg{width:22px;height:22px}.fh-ico img{width:28px;height:28px}
.fh-body{min-width:0}.fh-name{font-size:15px;line-height:1.25;overflow-wrap:anywhere}.fh-desc{font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.fh-foot{padding-top:9px;justify-content:flex-start}.fh-go{font-size:13px}.fh-st{top:14px;inset-inline-end:12px}.fh-st b{display:none}.fh-card:after{width:120px;height:120px;top:-50px;inset-inline-end:-40px}.fh-user span{display:none}}
@media(max-width:340px){.fh-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
/* login */
.fh-login{display:flex;align-items:center;justify-content:center;padding:18px;background:linear-gradient(135deg,color-mix(in srgb,var(--p) 92%,#000),color-mix(in srgb,var(--p) 70%,#5b7cff))}
.fh-lcard{width:100%;max-width:400px;background:var(--surface);border-radius:24px;padding:30px 26px;display:flex;flex-direction:column;gap:14px;box-shadow:0 30px 80px rgba(0,0,0,.35);animation:fh-u .6s ease both}
.fh-lbrand{display:flex;justify-content:center}.fh-lbrand .fh-logo-tile{background:var(--p);border:0;color:#fff;width:56px;height:56px;border-radius:16px}.fh-lbrand img{max-height:80px}
.fh-lcard h1{margin:0;text-align:center;font-size:24px}.fh-lcard .fh-hint{text-align:center;margin:-8px 0 4px;color:var(--muted);animation:none}
.fh-lcard label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;color:var(--muted)}.fh-lcard input:not([type=checkbox]){padding:12px 13px;border:1px solid var(--border);border-radius:12px;font:inherit;font-size:15px;background:var(--bg);color:var(--text)}
.fh-lcard input:focus{outline:2px solid color-mix(in srgb,var(--p) 55%,transparent)}.fh-chk{flex-direction:row!important;align-items:center;font-weight:500!important}
.fh-lcard button{padding:13px;border:0;border-radius:12px;background:var(--p);color:#fff;font:inherit;font-weight:650;font-size:15px;cursor:pointer}.fh-err{padding:10px 12px;border-radius:10px;background:#fdecec;color:#b42318;font-size:13px}
