:root {
  color-scheme: dark;
  --ink: #f0f8ff;
  --muted: #8ca9bf;
  --faint: #678397;
  --cyan: #73e6f3;
  --line: rgba(161, 214, 241, .13);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  background: #061727;
  color: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-width: 280px; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
button:disabled { cursor: wait; }
input { min-width: 0; color: var(--ink); border: 0; outline: 0; }
input::placeholder { color: #9db4c5; opacity: 1; }
input::-webkit-search-cancel-button { cursor: pointer; filter: grayscale(1); }
svg { display: block; flex-shrink: 0; }
button svg, .scroll-cue svg, .manage-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
::selection { background: #438393; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 50; left: 20px; top: -80px; background: #c4f6ff; color: #082335; padding: 12px 20px; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.scene { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; background: #092344 url('/assets/observatory-minimal-desktop.webp') center / cover no-repeat; }
.scene-shade { position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(180deg,#04172e0a,transparent 60%,#04172e0a); }
.hero { height: 100svh; min-height: 620px; position: relative; isolation: isolate; display: flex; justify-content: center; }
.hero-content { position: absolute; z-index: 4; left: 50%; width: min(760px, calc(100% - 48px)); top: 26%; text-align: center; transform: translateX(-50%); }
.brand-symbol { width: 30px; height: 22px; color: #64e4f7; filter: drop-shadow(0 0 9px #42d0f04d); }
h1 { font-size: clamp(30px, 3.1vw, 48px); font-weight: 560; line-height: 1.4; letter-spacing: .075em; margin: 0 -40px 32px; text-shadow: 0 2px 30px #0714257a; }
.web-search { position: relative; display: flex; align-items: center; height: 64px; width: min(660px,100%); margin: 0 auto; padding: 7px; gap: 8px; border: 1px solid rgba(144,220,255,.57); border-radius: 20px; background: linear-gradient(120deg,rgba(36,79,111,.48),rgba(15,43,69,.48)); box-shadow: 0 0 0 3px #81d7ff08, 0 12px 36px #0002, inset 0 1px 0 #def7ff13; backdrop-filter: blur(22px); transition: border-color .2s, box-shadow .2s; }
.web-search:focus-within { border-color: #9defff; box-shadow: 0 0 0 3px #79e2fa17,0 0 30px #41c9ff17,inset 0 1px 0 #def7ff20; }
.engine-wrap { flex-shrink: 0; }
.engine-button { display: flex; align-items: center; gap: 7px; background: transparent; padding: 12px 11px; border: 0; border-radius: 12px; color: #c7dce8; font-size: 13px; }
.engine-button:hover, .engine-button[aria-expanded="true"] { background: #c6eeff0b; }
.engine-button svg { width: 12px; height: 12px; color: #86afc6; }
.engine-menu { position: absolute; left: 0; top: calc(100% + 12px); z-index: 20; width: 236px; padding: 10px; border-radius: 17px; border: 1px solid #a0d5f129; background: rgba(9,30,48,.97); backdrop-filter: blur(30px); box-shadow: 0 20px 60px #0007; text-align: left; animation: menu-in .18s ease; }
.menu-label { color: var(--faint); font-size: 11px; margin: 6px 10px 9px; letter-spacing: .06em; }
#engine-options { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.engine-option { display: flex; gap: 9px; align-items: center; border: 0; border-radius: 9px; text-align: left; padding: 11px 9px; background: transparent; font-size: 12px; color: #acc7d8; }
.engine-option:hover { background: #92d8ee0c; color: #fff; }
.engine-option[aria-pressed="true"] { background: #69d9ef13; color: #96effb; }
.web-search input { flex: 1; width: 100%; background: transparent; font-size: 16px; height: 42px; letter-spacing: .03em; }
.web-search input:focus-visible { outline: none; }
.submit-search { display: grid; place-items: center; height: 45px; width: 49px; border: 1px solid #c7f9ff55; border-radius: 13px; background: linear-gradient(135deg,#9af2f7,#55ccea); box-shadow: 0 3px 12px #2dd5ef28; color: #06344b; transition: background .2s, transform .2s; }
.submit-search:hover { background: #b8f9ff; transform: translateX(1px); }
.submit-search svg { height: 23px; width: 23px; stroke-width: 1.8; }
.scope-tabs { display: flex; gap: 5px; margin-bottom: 18px; }
.scope-tabs button,.scope-tabs a { border: 1px solid transparent; border-radius: 8px; padding: 9px 17px; min-height: 38px; background: transparent; color: #91b2c9; font-size: 12px; }
.scope-tabs button[aria-pressed="true"],.scope-tabs a[aria-current="page"] { border-color: #8ed6ec35; color: #b0eaf5; background: #79c8e313; }
.scope-tabs button:hover,.scope-tabs a:hover { color: #dcf2fa; }
.search-suggestions { position: absolute; z-index: 15; top: calc(100% + 10px); left: 0; right: 0; padding: 10px; border: 1px solid #97d8fa38; border-radius: 17px; background: #092440f5; box-shadow: 0 20px 50px #0005; backdrop-filter: blur(28px); text-align: left; }
.suggestions-heading { display: flex; justify-content: space-between; padding: 6px 11px 10px; color: #8db9d6; font-size: 11px; letter-spacing: .05em; }
.suggestions-list { max-height: min(310px,calc(100svh - 410px)); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #5186a555 transparent; }
.suggestion-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 11px; min-height: 46px; border-radius: 9px; }
.suggestion-link:hover, .suggestion-link:focus-visible { background: #8ad9ff12; }
.suggestion-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #dfedf6; font-size: 13px; }
.suggestion-detail { flex-shrink: 0; max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #7da5c0; font-size: 11px; }
.suggestions-empty { padding: 8px 11px 13px; color: #a3bfd2; font-size: 12px; line-height: 1.7; margin: 0; }
.show-site-results { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 42px; background: #6dcde911; border: 0; border-top: 1px solid #8bb9d51a; border-radius: 0 0 9px 9px; margin-top: 5px; color: #8ce3f5; font-size: 12px; }
.show-site-results:hover { background: #6dcde91c; }
kbd { font-family: inherit; font-size: 10px; border: 1px solid #9ac1d22b; border-radius: 4px; min-width: 17px; padding: 1px 4px; color: #a0bacb; }
.caption-dot { margin: 0 11px; opacity: .55; }
.scroll-cue { position: absolute; z-index: 3; bottom: 32px; display: flex; flex-direction: column; gap: 10px; align-items: center; color: #c2dbe5; font-size: 10px; letter-spacing: .18em; padding: 14px 20px 4px; text-shadow: 0 1px 10px #000c; transition: color .2s; }
.scroll-cue:hover { color: #9ef2ff; }
.scroll-cue > svg { opacity: .7; width: 16px; height: 16px; }
.mouse-outline { width: 17px; height: 25px; border: 1px solid #c4eaff8c; border-radius: 12px; display: flex; justify-content: center; }
.mouse-outline i { height: 5px; width: 2px; margin-top: 5px; border-radius: 1px; background: #aee7fa; }
.directory { position: relative; z-index: 5; min-height: 100svh; padding: 42px 40px 0; background: linear-gradient(180deg,#0a2540,#081e35 380px,#06182a); border-top: 1px solid #a4ddf820; }
.directory-inner { max-width: 1180px; margin: 0 auto; }
.directory-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: 20px; }
.eyebrow { font-size: 10px; letter-spacing: .26em; font-weight: 600; color: #71c7d6; margin: 0 0 13px; }
h2 { font-size: clamp(22px,2.1vw,30px); line-height: 1.4; font-weight: 520; letter-spacing: .045em; margin: 0; }
.heading-dot { color: #75d6e3; }
.collection-meta { font-size: 12px; color: #7799b0; margin: 13px 0 0; letter-spacing: .04em; }
.search-collection { flex-shrink: 0; min-height: 42px; padding: 10px 16px; border: 1px solid #91c8e52b; border-radius: 11px; color: #a5dceb; background: #76bad609; font-size: 12px; }
.search-collection:hover { background: #76bad615; border-color: #91c8e555; }
.search-collection span { margin-left: 12px; }
.navigation-bar { position: sticky; top: 0; margin: 0 -12px 30px; z-index: 5; padding: 13px 12px; background: #081b2af2; border-bottom: 1px solid var(--line); backdrop-filter: blur(24px); }
.category-tabs { display: flex; gap: 8px; align-items: center; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #6e9cb62b transparent; padding-bottom: 4px; }
.category-tab { display: inline-flex; gap: 8px; align-items: center; justify-content: center; white-space: nowrap; flex-shrink: 0; min-height: 42px; padding: 11px 15px; background: transparent; border: 1px solid transparent; border-radius: 10px; color: #8facc1; font-size: 12px; letter-spacing: .025em; transition: background .2s,color .2s,border-color .2s; }
.category-tab:hover { color: #d8edf6; background: #a5d7ee08; }
.category-tab[aria-pressed="true"] { color: #a0eef8; background: #5cc9e414; border-color: #6acbe22b; }
.category-tab svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tab-count { font-size: 10px; opacity: .55; font-variant-numeric: tabular-nums; }
.nav-scroll-hint { position: absolute; right: 12px; top: 12px; bottom: 19px; width: 26px; pointer-events: none; background: linear-gradient(90deg,transparent,#081b2a); }
.results-bar { display: flex; align-items: center; justify-content: space-between; margin: 0 0 28px; color: #93b3c9; font-size: 12px; }
.results-bar p { margin: 0; min-width: 0; overflow-wrap: anywhere; line-height: 1.6; }
.results-bar button { flex-shrink: 0; background: none; border: 0; padding: 5px 0 5px 12px; color: #7bd9eb; font-size: 11px; }
.results-bar button span { padding-left: 5px; }
.bookmark-group { padding-bottom: 38px; scroll-margin-top: 100px; animation: cards-in .28s ease both; }
.group-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.group-heading > svg { width: 17px; height: 17px; fill: none; stroke: #8bbed4; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.group-heading h3 { font-size: 14px; font-weight: 500; letter-spacing: .05em; margin: 0; color: #d6e9f3; }
.group-count { color: #5b7a91; font-size: 11px; font-variant-numeric: tabular-nums; }
.group-rule { height: 1px; background: linear-gradient(90deg,#9fceed13,transparent); flex: 1; margin-left: 8px; }
.bookmark-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.bookmark-card { position: relative; display: flex; align-items: center; gap: 13px; padding: 19px 17px; min-height: 88px; min-width: 0; border: 1px solid #a8d5ed11; background: linear-gradient(120deg,#88bdd509,#548aa505); border-radius: 12px; transition: transform .2s,background .2s,border-color .2s,box-shadow .2s; overflow: hidden; }
.bookmark-card:hover { transform: translateY(-3px); background: linear-gradient(120deg,#8fdbf214,#6abbd20b); border-color: #91deef46; box-shadow: 0 9px 24px #0002; }
.bookmark-icon { display: grid; place-items: center; position: relative; flex-shrink: 0; width: 35px; height: 35px; border: 1px solid hsla(var(--icon-hue),50%,70%,.13); border-radius: 10px; background: hsla(var(--icon-hue),50%,60%,.09); color: hsl(var(--icon-hue),50%,78%); font-size: 15px; font-weight: 550; }
.bookmark-icon img { display: block; width: 22px; height: 22px; object-fit: contain; border-radius: 4px; }
.bookmark-text { min-width: 0; flex: 1; }
.bookmark-name { display: block; font-size: 12px; font-weight: 500; color: #d2e4f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.7; }
.bookmark-domain { display: block; color: #65879e; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.8; letter-spacing: .015em; }
.bookmark-arrow { color: #80d8e8; position: absolute; right: 11px; top: 8px; opacity: 0; font-size: 12px; transform: translate(-2px,2px); transition: opacity .2s,transform .2s; }
.bookmark-card:hover .bookmark-arrow { opacity: 1; transform: none; }
mark { background: #6edcee20; color: #9deefa; border-radius: 2px; padding: 0 1px; }
.empty-state, .loading-state, .fallback-message { min-height: 270px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #829fb3; text-align: center; }
.empty-state > svg { width: 38px; height: 38px; fill: none; stroke: #6b9aaf; stroke-width: 1; margin-bottom: 14px; }
.empty-state h3 { font-size: 18px; color: #bad2e2; font-weight: 450; margin: 0 0 12px; }
.empty-state p { font-size: 12px; margin: 0 0 19px; }
.text-button { color: #8fe5f2; background: #69bed610; border: 1px solid #69bed62b; border-radius: 8px; padding: 9px 15px; font-size: 12px; }
.loading-state p { font-size: 12px; }
.loading-ring { width: 23px; height: 23px; border: 1px solid #76d4ed30; border-top-color: #83e2f6; border-radius: 50%; animation: spin .8s linear infinite; }
.fallback-message a { text-decoration: underline; text-underline-offset: 5px; }
.directory-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px 0 35px; margin-top: 12px; border-top: 1px solid var(--line); color: #597b92; font-size: 11px; }
.footer-brand { display: flex; align-items: center; gap: 9px; letter-spacing: .12em; color: #85a6bb; }
.footer-brand .brand-symbol { width: 19px; height: 16px; opacity: .7; }
.footer-copy { opacity: .75; letter-spacing: .08em; }
.manage-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; }
.manage-link:hover { color: #a5d9e9; }
.manage-link svg { width: 12px; height: 12px; }
.back-home { position: fixed; right: 28px; bottom: 28px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid #95d6ee29; background: #0b293bec; backdrop-filter: blur(20px); color: #9dc7dc; z-index: 10; animation: cards-in .2s ease; }
.back-home:hover { border-color: #79dcee80; color: #9aeeff; }
.back-home svg { width: 17px; height: 17px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 30; padding: 12px 20px; border: 1px solid #a5d4ec2b; background: #102d41f5; color: #c8e2ef; border-radius: 12px; font-size: 13px; max-width: calc(100% - 40px); box-shadow: 0 6px 30px #0004; }
@keyframes cards-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 1800px) { .web-search { width: 710px; height: 68px; } }
@media (max-width: 1100px) { .bookmark-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .directory { padding-left: 30px; padding-right: 30px; } .bookmark-card { padding: 17px 14px; } }
@media (max-width: 760px) {
  .hero { min-height: 580px; }
  .hero-content { width: calc(100% - 40px); }
  h1 { font-size: clamp(26px,5.5vw,36px); margin: 0 0 28px; letter-spacing: .035em; }
  .web-search { height: 59px; border-radius: 17px; gap: 2px; padding: 6px; }
  .engine-button { gap: 5px; padding: 10px 8px; font-size: 11px; }
  .engine-button svg { width: 10px; height: 10px; }
  .web-search input { font-size: 14px; padding-left: 5px; }
  .submit-search { height: 43px; width: 44px; border-radius: 11px; }
  .desktop-hint { display: none; }
  .scroll-cue { bottom: max(22px,env(safe-area-inset-bottom)); }
  .directory { padding: 24px 20px 0; }
  .directory-header { align-items: flex-start; flex-direction: column; gap: 20px; padding-bottom: 20px; }
  h2 { font-size: 22px; }
  .collection-meta { margin-top: 10px; font-size: 11px; }
  .search-suggestions { padding: 7px; border-radius: 15px; }
  .suggestions-list { max-height: min(265px,calc(100svh - 360px)); }
  .suggestion-link { align-items: flex-start; flex-direction: column; gap: 4px; padding: 9px 10px; }
  .suggestion-name { max-width: 100%; font-size: 12px; }
  .suggestion-detail { max-width: 100%; font-size: 10px; }
  .navigation-bar { margin: 0 -8px 24px; padding: 9px 8px; }
  .category-tabs { gap: 4px; scrollbar-width: none; }
  .category-tabs::-webkit-scrollbar { display: none; }
  .category-tab { padding: 10px 11px; font-size: 11px; gap: 6px; min-height: 42px; }
  .tab-count { font-size: 9px; }
  .bookmark-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .bookmark-card { min-height: 85px; padding: 15px 12px; gap: 9px; border-radius: 11px; }
  .bookmark-icon { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
  .bookmark-icon img { width: 20px; height: 20px; }
  .bookmark-name { font-size: 11px; }
  .bookmark-domain { font-size: 9px; }
  .group-heading { margin-bottom: 13px; }
  .group-heading h3 { font-size: 13px; }
  .bookmark-group { padding-bottom: 30px; }
  .directory-footer { flex-wrap: wrap; padding: 24px 0 30px; gap: 12px; }
  .footer-copy { display: none; }
  .manage-link { font-size: 10px; }
  .back-home { width: 38px; height: 38px; right: 16px; bottom: 18px; }
}
@media (max-width: 900px) and (orientation: portrait) {
  .scene { background-image: url('/assets/observatory-minimal-portrait.webp'); background-position: center bottom; }
  .hero-content { top: 24%; }
  .scene-shade { background: linear-gradient(180deg,#04172e08,transparent 54%,#04172e08); }
}
@media (max-width: 370px) { .hero-content { width: calc(100% - 28px); } .engine-button { padding-left: 5px; padding-right: 5px; } .bookmark-card { padding: 14px 9px; gap: 7px; } .bookmark-icon { width: 27px; height: 27px; } .directory { padding-left: 16px; padding-right: 16px; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
