:root {
  --sidebar-width: 224px;
  --bg: #f5f6f7;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --text: #1a1d21;
  --muted: #727984;
  --line: #e7e9ec;
  --sidebar: #22252a;
  --sidebar-2: #2a2e34;
  --accent: #16c8b8;
  --accent-deep: #0f9f94;
  --accent-soft: #e9fbf8;
  --shadow: 0 16px 45px rgba(22, 31, 42, 0.07);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 11px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.page-loader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: #202329; transition: opacity .45s ease, visibility .45s ease;
}
body.ready .page-loader { opacity: 0; visibility: hidden; }
.loader-mark, .brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  color: #fff; font-size: 22px; font-weight: 900; font-style: italic;
  background: linear-gradient(145deg, #2ce3d1, #10aa9e); box-shadow: 0 10px 28px rgba(22, 200, 184, .28);
}
.loader-mark img, .brand-mark img { width: 100%; height: 100%; display: block; border-radius: inherit; object-fit: cover; }
.loader-mark { width: 62px; height: 62px; border-radius: 20px; animation: loaderPulse 1.2s ease-in-out infinite; }
@keyframes loaderPulse { 50% { transform: scale(.9); filter: brightness(1.25); } }

.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--sidebar-width); height: 100vh;
  display: flex; flex-direction: column; overflow: hidden; color: #b8bec6;
  background: linear-gradient(180deg, #24272c 0%, #1f2226 100%); border-right: 1px solid rgba(255,255,255,.045);
  transition: width .3s ease, transform .3s ease;
}
.brand { height: 76px; flex: 0 0 76px; display: flex; align-items: center; gap: 12px; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand .brand-mark { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; font-size: 18px; }
.brand-copy { display: flex; flex-direction: column; color: white; line-height: 1; }
.brand-copy strong { font-size: 16px; letter-spacing: 2px; }
.brand-copy small { margin-top: 7px; color: #777f88; font-size: 8px; letter-spacing: 2px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 24px 12px; scrollbar-width: none; }
.sidebar-nav::-webkit-scrollbar { display: none; }
.nav-label { display: block; padding: 0 13px 12px; color: #616870; font-size: 9px; font-weight: 800; letter-spacing: 2px; }
.sidebar-link { position: relative; display: flex; align-items: center; gap: 12px; height: 47px; padding: 0 13px; margin: 2px 0; border-radius: 10px; color: #aeb4bc; font-size: 13px; transition: .2s ease; }
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.055); transform: translateX(2px); }
.sidebar-link.active { color: #fff; background: rgba(22,200,184,.12); }
.sidebar-link.active::before { content: ""; position: absolute; left: -12px; width: 3px; height: 22px; border-radius: 0 5px 5px 0; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.sidebar-icon { display: grid; place-items: center; width: 24px; flex: 0 0 auto; color: #8f969e; font-size: 17px; }
.sidebar-link.active .sidebar-icon { color: var(--accent); }
.sidebar-link i { margin-left: auto; color: #646a72; font-size: 17px; font-style: normal; }
.sidebar-card { margin: 8px 14px 18px; padding: 14px; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; background: rgba(255,255,255,.035); }
.sidebar-card .status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: #43e1c8; box-shadow: 0 0 10px #43e1c8; }
.sidebar-card div { display: inline; }
.sidebar-card strong { color: #e6e8eb; font-size: 11px; }
.sidebar-card p { margin: 8px 0 11px; color: #737b84; font-size: 10px; line-height: 1.6; }
.sidebar-card a { color: var(--accent); font-size: 10px; font-weight: 700; }
.sidebar-footer { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 18px; border-top: 1px solid rgba(255,255,255,.06); color: #5e656d; font-size: 9px; }
.sidebar-footer button { border: 0; background: transparent; color: #737a82; cursor: pointer; font-size: 18px; }
.sidebar-scrim { display: none; position: fixed; inset: 0; z-index: 45; background: rgba(9,13,18,.6); backdrop-filter: blur(3px); }

.site-shell { min-height: 100vh; margin-left: var(--sidebar-width); transition: margin-left .3s ease; }
.topbar {
  position: sticky; top: 0; z-index: 40; height: 76px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px);
}
.topbar-left, .topbar-actions, .top-links { display: flex; align-items: center; }
.topbar-left { gap: 24px; }
.menu-button { display: none !important; flex-direction: column; gap: 4px; }
.menu-button span { width: 17px; height: 1.5px; border-radius: 2px; background: currentColor; }
.top-links { gap: 28px; }
.top-links a { position: relative; color: #575d65; font-size: 13px; }
.top-links a:hover, .top-links a.active { color: var(--text); }
.top-links a.active::after { content: ""; position: absolute; left: 50%; bottom: -27px; width: 16px; height: 2px; transform: translateX(-50%); background: var(--accent); }
.topbar-actions { gap: 10px; }
.icon-button, .action-button { border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.icon-button { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.icon-button:hover { border-color: #cfd3d8; background: var(--surface-2); }
.action-button { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 13px; border-radius: 12px; color: #69717b; font-size: 12px; }
.action-icon { font-size: 22px; line-height: 1; transform: rotate(-18deg); }
kbd { padding: 3px 6px; border: 1px solid #e0e3e6; border-bottom-width: 2px; border-radius: 6px; background: #f5f6f7; color: #999fa6; font: 9px/1.2 inherit; }
.contact-button { height: 40px; display: flex; align-items: center; padding: 0 17px; margin-left: 4px; border-radius: 12px; background: var(--sidebar); color: #fff; font-size: 12px; font-weight: 650; transition: .2s; }
.contact-button:hover { background: var(--accent-deep); transform: translateY(-1px); }

.main-content { width: min(100% - 40px, 1320px); margin: 0 auto; padding: 18px 0 70px; }
.notice-bar { height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 13px; margin-bottom: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: #747b84; transition: .25s; }
.notice-bar.dismissed { height: 0; margin: 0; border: 0; opacity: 0; }
.notice-icon { color: var(--accent-deep); }
.notice-track { flex: 1; overflow: hidden; }
.notice-content { width: max-content; display: flex; gap: 70px; font-size: 11px; animation: ticker 24s linear infinite; }
.notice-bar button { border: 0; background: none; color: #99a0a8; cursor: pointer; font-size: 20px; }
@keyframes ticker { from { transform: translateX(70%); } to { transform: translateX(-100%); } }

.hero { position: relative; height: 330px; overflow: hidden; margin-bottom: 18px; border-radius: var(--radius-lg); background: #111820; box-shadow: var(--shadow); }
.hero-slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; transform: scale(1.02); transition: opacity .7s ease, transform 1.2s ease; pointer-events: none; }
.hero-slide.active { opacity: 1; transform: scale(1); pointer-events: auto; }
.hero-banner-image { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide.has-banner-image::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8,13,20,.93) 0%, rgba(8,13,20,.74) 48%, rgba(8,13,20,.26) 100%); }
.hero-slide.has-banner-image .hero-content { z-index: 3; }
.hero-one { color: #fff; background: radial-gradient(circle at 76% 52%, #114a50 0, #0d242c 27%, #0e151d 62%, #10151b 100%); }
.hero-grid { position: absolute; inset: 0; opacity: .17; background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(90deg, #000, transparent 72%); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-one { width: 250px; height: 250px; right: 9%; top: 7%; border: 1px solid rgba(65,241,218,.35); box-shadow: inset 0 0 60px rgba(22,200,184,.1), 0 0 90px rgba(22,200,184,.08); }
.orb-two { width: 130px; height: 130px; right: 14%; top: 26%; background: radial-gradient(circle at 35% 30%, #54f1dd, #0ca89c 25%, #0c3b41 64%, #091a20); box-shadow: 0 0 80px rgba(22,200,184,.32); }
.hero-content { position: relative; z-index: 3; width: 56%; padding: 57px 0 0 60px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 19px; color: #8ea3a8; font-size: 9px; font-weight: 800; letter-spacing: 2.4px; }
.eyebrow i { width: 18px; height: 1px; background: var(--accent); }
.hero h1 { margin: 0; font-size: clamp(34px, 3.2vw, 49px); line-height: 1.15; letter-spacing: -2.5px; }
.hero p { margin: 16px 0 23px; color: #a6b0b6; font-size: 13px; line-height: 1.6; }
.hero-content > a { display: inline-flex; align-items: center; gap: 22px; padding: 10px 15px; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; color: #e9f6f4; font-size: 11px; transition: .2s; }
.hero-content > a:hover { border-color: var(--accent); background: rgba(22,200,184,.1); }
.hero-symbol { position: absolute; right: 14.1%; top: 21.5%; z-index: 2; color: rgba(255,255,255,.88); font-size: 108px; font-weight: 900; font-style: italic; text-shadow: 0 15px 50px rgba(0,0,0,.55); transform: rotate(-8deg); }
.hero-two { color: #fff; background: linear-gradient(115deg, #171829 0%, #29254f 48%, #624465 100%); }
.hero-two::after { content: ""; position: absolute; right: -5%; top: -60%; width: 55%; height: 210%; background: linear-gradient(120deg, transparent 25%, rgba(255,255,255,.07) 26%, transparent 27%, transparent 43%, rgba(255,255,255,.05) 44%, transparent 45%); transform: rotate(10deg); }
.hero-rings { position: absolute; right: 9%; top: 50%; width: 220px; height: 220px; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; transform: translateY(-50%); box-shadow: 0 0 0 38px rgba(255,255,255,.025), 0 0 0 76px rgba(255,255,255,.018); }
.hero-stat { position: absolute; z-index: 2; right: 12%; top: 50%; display: flex; flex-direction: column; align-items: center; transform: translateY(-50%); }
.hero-stat b { font-size: 58px; letter-spacing: -4px; }
.hero-stat span { color: #c6bacb; font-size: 10px; letter-spacing: 2px; }
.hero-three { color: #fff; background: radial-gradient(circle at 72% 15%, #27314a, transparent 35%), linear-gradient(120deg, #12151b, #1b202c 60%, #13171e); }
.hero-sunset { color: #fff; background: radial-gradient(circle at 78% 40%, rgba(255,196,126,.52), transparent 30%), linear-gradient(120deg, #3a1735, #8a3b52 56%, #f08a5d); }
.code-window { position: absolute; right: 6%; top: 57px; width: 39%; padding: 20px 23px 25px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(6,9,14,.64); box-shadow: 0 25px 80px rgba(0,0,0,.28); transform: rotate(2deg); }
.code-head { display: flex; gap: 6px; padding-bottom: 19px; border-bottom: 1px solid rgba(255,255,255,.08); }
.code-head i { width: 7px; height: 7px; border-radius: 50%; background: #ff6b6b; }
.code-head i:nth-child(2) { background: #ffd166; }.code-head i:nth-child(3) { background: #29d6a3; }
.code-window p { margin: 19px 0 0; color: #aab4c2; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.code-window em { color: #c792ea; font-style: normal; }.code-window strong { color: #c3e88d; }.code-window b { color: #82aaff; }.code-window .code-ok { color: var(--accent); }
.hero-dots { position: absolute; z-index: 10; left: 60px; bottom: 27px; display: flex; gap: 7px; }
.hero-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 20px; background: rgba(255,255,255,.34); cursor: pointer; transition: .25s; }
.hero-dots button.active { width: 24px; background: var(--accent); }

.category-block { margin: 0 0 54px; opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.category-block.visible { opacity: 1; transform: translateY(0); }
#app-downloads { padding: 24px; border: 1px solid rgba(22,200,184,.2); border-radius: 22px; background: linear-gradient(135deg, rgba(233,251,248,.86), rgba(255,255,255,.72) 48%, rgba(240,245,255,.8)); box-shadow: 0 18px 45px rgba(22,31,42,.05); }
#app-downloads .category-symbol { border-color: rgba(22,200,184,.3); background: var(--accent); color: #0c3330; box-shadow: 0 8px 22px rgba(22,200,184,.2); }
.category-header { display: grid; grid-template-columns: minmax(200px, .85fr) 1.6fr auto; align-items: end; gap: 22px; margin-bottom: 17px; }
.category-title { display: flex; align-items: center; gap: 13px; }
.category-symbol { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--accent-deep); font-size: 18px; box-shadow: 0 6px 18px rgba(20,30,40,.04); }
.category-title div > span { color: #a2a7ad; font-size: 7px; font-weight: 800; letter-spacing: 1.5px; }
.category-title h2 { margin: 3px 0 0; font-size: 19px; letter-spacing: -.6px; }
.category-tabs { display: flex; justify-content: center; gap: 4px; }
.category-tabs button { padding: 7px 12px; border: 0; border-radius: 8px; background: transparent; color: #8b929a; cursor: pointer; font-size: 9px; transition: .2s; }
.category-tabs button:hover { color: var(--text); background: var(--surface); }
.category-tabs button.active { background: var(--surface); color: var(--text); box-shadow: 0 4px 14px rgba(20,30,40,.05); }
.view-all { padding: 0 0 5px; border: 0; background: none; color: #8f969e; cursor: pointer; font-size: 9px; }
.view-all span { margin-left: 5px; color: var(--accent-deep); }
.site-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.site-card { position: relative; min-width: 0; min-height: 126px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.site-card[hidden] { display: none; }
.site-card:hover { z-index: 2; transform: translateY(-4px); border-color: rgba(22,200,184,.36); box-shadow: 0 16px 34px rgba(20,30,40,.09); }
.site-main-link { height: 100%; min-height: 126px; display: flex; align-items: flex-start; gap: 12px; padding: 18px 36px 16px 16px; }
.site-logo { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.site-logo img { width: 24px; height: 24px; object-fit: contain; }
.site-logo b, .result-logo { place-items: center; width: 100%; height: 100%; color: var(--logo-color); font-size: 18px; }
.site-info { min-width: 0; display: block; }
.site-info strong { display: block; margin: 2px 0 7px; overflow: hidden; color: var(--text); font-size: 12px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.site-info small { display: -webkit-box; min-height: 31px; overflow: hidden; color: #8a9199; font-size: 9px; line-height: 1.65; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.site-info em { display: block; margin-top: 8px; overflow: hidden; color: #b2b7bc; font-size: 7px; font-style: normal; white-space: nowrap; text-overflow: ellipsis; }
.site-info em.download-meta { display: flex; align-items: center; gap: 6px; }
.download-badge { flex: 0 0 auto; padding: 2px 5px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-deep); font-size: 7px; font-weight: 800; letter-spacing: .3px; }
.download-card { min-height: 174px; }
.download-card .site-main-link { height: auto; min-height: 118px; padding: 16px 16px 9px; }
.download-card:hover { border-color: rgba(22,200,184,.55); box-shadow: 0 16px 34px rgba(15,159,148,.12); }
.app-package-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0 12px 12px; }
.app-package-button { min-width: 0; min-height: 38px; display: flex; flex-direction: column; justify-content: center; padding: 6px 8px; border: 1px solid rgba(22,200,184,.22); border-radius: 9px; background: var(--accent-soft); color: var(--accent-deep); }
.app-package-button.ios { border-color: rgba(77,101,145,.2); background: #f0f4fb; color: #415879; }
.app-package-button:hover { transform: translateY(-1px); border-color: currentColor; }
.app-package-button b { overflow: hidden; font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }
.app-package-button small { overflow: hidden; margin-top: 3px; color: #7c9793; font-size: 6.5px; white-space: nowrap; text-overflow: ellipsis; }
.app-package-button.ios small { color: #8290a5; }
.package-unavailable { grid-column: 1 / -1; min-height: 38px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 9px; color: #9aa1a8; font-size: 8px; }
.card-arrow { position: absolute; right: 13px; bottom: 11px; color: #c5c9cd; font-size: 12px; opacity: 0; transform: translate(-4px, 4px); transition: .2s; }
.site-card:hover .card-arrow { color: var(--accent-deep); opacity: 1; transform: translate(0); }

footer { padding: 50px max(28px, calc((100% - 1280px)/2)); margin-top: 10px; color: #9aa2ab; background: #202329; }
.footer-main { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 60px; padding-bottom: 42px; }
.footer-brand { display: flex; align-items: center; gap: 15px; color: #fff; }
.footer-brand strong { font-size: 15px; letter-spacing: 1px; }.footer-brand p { margin: 6px 0 0; color: #737b84; font-size: 10px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer-links div { display: flex; flex-direction: column; gap: 9px; }.footer-links strong, .footer-newsletter strong { margin-bottom: 5px; color: #e7eaed; font-size: 11px; }
.footer-links a { font-size: 9px; }.footer-links a:hover { color: var(--accent); }
.footer-newsletter p { margin: 8px 0 14px; color: #737b84; font-size: 9px; }
.footer-newsletter form { display: flex; height: 38px; overflow: hidden; border: 1px solid #34383e; border-radius: 9px; }
.footer-newsletter input { flex: 1; min-width: 0; padding: 0 12px; border: 0; outline: none; background: #292c31; color: #fff; font-size: 9px; }
.footer-newsletter button { padding: 0 15px; border: 0; background: var(--accent); color: #102522; cursor: pointer; font-size: 9px; font-weight: 700; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid #30343a; color: #626a73; font-size: 8px; }

.back-to-top { position: fixed; right: 25px; bottom: 25px; z-index: 30; width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--accent); color: #0c3330; box-shadow: 0 8px 25px rgba(22,200,184,.28); cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .25s; }
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.search-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: start center; padding-top: 10vh; visibility: hidden; opacity: 0; transition: .2s; }
.search-modal.open { visibility: visible; opacity: 1; }
.search-backdrop { position: absolute; inset: 0; background: rgba(13,17,23,.72); backdrop-filter: blur(6px); }
.search-dialog { position: relative; z-index: 2; width: min(680px, calc(100% - 32px)); max-height: 76vh; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: var(--surface); box-shadow: 0 30px 100px rgba(0,0,0,.35); transform: translateY(-10px) scale(.98); transition: .25s; }
.search-modal.open .search-dialog { transform: none; }
.search-field-wrap { height: 68px; display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.search-field-wrap > span { color: var(--accent-deep); font-size: 27px; transform: rotate(-18deg); }
.search-field-wrap input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text); font-size: 15px; }
.search-meta { display: flex; justify-content: space-between; padding: 12px 20px 8px; color: #a0a6ad; font-size: 9px; }
.search-results { max-height: calc(76vh - 110px); overflow-y: auto; padding: 7px 10px 14px; }
.search-results a { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; padding: 11px; border-radius: 11px; }
.search-results a:hover { background: var(--surface-2); }
.result-logo { width: 38px; height: 38px; display: grid; border-radius: 11px; background: color-mix(in srgb, var(--logo-color) 10%, white); color: var(--logo-color); font-size: 14px; font-weight: 800; }
.search-results strong { display: block; font-size: 11px; }.search-results small { display: block; margin-top: 4px; overflow: hidden; color: #939aa2; font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }
.search-results em { padding: 4px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-deep); font-size: 8px; font-style: normal; }.search-results i { color: #a4abb2; font-style: normal; }
.empty-result { padding: 55px 20px 65px; text-align: center; }.empty-result span { display: block; margin-bottom: 10px; color: var(--accent); font-size: 34px; }.empty-result strong { font-size: 13px; }.empty-result p { color: #969da5; font-size: 9px; }
.submission-modal { position: fixed; inset: 0; z-index: 105; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: .2s; }
.submission-modal.open { visibility: visible; opacity: 1; }
.submission-backdrop { position: absolute; inset: 0; background: rgba(13,17,23,.76); backdrop-filter: blur(7px); }
.submission-dialog { position: relative; z-index: 2; width: min(540px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 27px; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: var(--surface); box-shadow: 0 30px 100px rgba(0,0,0,.35); transform: translateY(12px) scale(.98); transition: .25s; }
.submission-modal.open .submission-dialog { transform: none; }
.submission-head { display: flex; align-items: flex-start; justify-content: space-between; }
.submission-head span { color: var(--accent-deep); font-size: 8px; font-weight: 800; letter-spacing: 1.7px; }
.submission-head h2 { margin: 6px 0 0; font-size: 22px; }
.submission-head > button { width: 32px; height: 32px; border: 0; border-radius: 9px; background: var(--surface-2); color: #949ba3; cursor: pointer; font-size: 21px; }
.submission-dialog > p { margin: 13px 0 22px; color: #8e959d; font-size: 10px; line-height: 1.6; }
.submission-dialog label { display: block; margin-top: 13px; color: #69717a; font-size: 10px; font-weight: 650; }
.submission-dialog input, .submission-dialog textarea { width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: var(--surface-2); color: var(--text); font-size: 11px; resize: vertical; }
.submission-dialog input:focus, .submission-dialog textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22,200,184,.09); }
.submission-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.submission-actions button { height: 40px; padding: 0 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; font-size: 10px; }
.submission-actions button.primary { border-color: var(--accent); background: var(--accent); color: #0e3431; font-weight: 750; }
.submission-actions button:disabled { cursor: wait; opacity: .6; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 34px; padding: 10px 16px; border-radius: 10px; background: #1f2328; color: #fff; box-shadow: 0 12px 34px rgba(0,0,0,.25); font-size: 10px; opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.dark { --bg: #111419; --surface: #1b1f25; --surface-2: #20252c; --text: #f0f2f4; --muted: #9aa1aa; --line: #2d3239; --accent-soft: #143c38; --shadow: 0 18px 50px rgba(0,0,0,.22); }
.dark .topbar { background: rgba(27,31,37,.92); }.dark .top-links a { color: #adb3ba; }.dark .site-logo { background: #fff; }.dark kbd { border-color: #383e46; background: #252a31; }
.dark #app-downloads { border-color: rgba(22,200,184,.2); background: linear-gradient(135deg, rgba(20,60,56,.38), rgba(27,31,37,.9) 52%, rgba(31,36,48,.86)); }
.dark .app-package-button.ios { border-color: #3b4658; background: #252d3a; color: #b8c8df; }.dark .app-package-button.ios small { color: #8d9bb0; }

body.sidebar-collapsed { --sidebar-width: 74px; }
body.sidebar-collapsed .brand { padding: 0 17px; }
body.sidebar-collapsed .brand-copy, body.sidebar-collapsed .nav-label, body.sidebar-collapsed .sidebar-link > span:not(.sidebar-icon), body.sidebar-collapsed .sidebar-link i, body.sidebar-collapsed .sidebar-card, body.sidebar-collapsed .sidebar-footer span { display: none; }
body.sidebar-collapsed .sidebar-link { justify-content: center; padding: 0; }
body.sidebar-collapsed .sidebar-link.active::before { left: -12px; }
body.sidebar-collapsed .sidebar-footer { justify-content: center; }
body.sidebar-collapsed .sidebar-footer button { transform: rotate(180deg); }

@media (max-width: 1120px) {
  .top-links { gap: 18px; }.top-links a:nth-child(3), .top-links a:nth-child(4) { display: none; }
  .site-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-header { grid-template-columns: 1fr auto; }.category-tabs { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; }.view-all { grid-column: 2; grid-row: 1; }
}

@media (max-width: 820px) {
  :root { --sidebar-width: 0px; }
  .sidebar { width: 240px; transform: translateX(-100%); }.sidebar-scrim { display: block; opacity: 0; visibility: hidden; transition: .25s; }
  body.sidebar-open .sidebar { transform: translateX(0); }.sidebar-open .sidebar-scrim { opacity: 1; visibility: visible; }
  .menu-button { display: flex !important; }.topbar { height: 66px; padding: 0 16px; }.topbar-left { gap: 16px; }.top-links a { display: none !important; }.top-links a.active { display: block !important; }.top-links a.active::after { bottom: -22px; }
  .action-button span:not(.action-icon), .action-button kbd, .contact-button { display: none; }.action-button { width: 40px; justify-content: center; padding: 0; }
  .main-content { width: min(100% - 24px, 720px); padding-top: 12px; }.hero { height: 330px; }.hero-content { width: 76%; padding: 52px 0 0 36px; }.hero h1 { font-size: 37px; }.hero-symbol { right: 7%; opacity: .28; }.hero-stat { right: 8%; opacity: .42; }.code-window { right: -9%; width: 48%; opacity: .4; }.hero-dots { left: 36px; }
  .site-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer { padding: 42px 24px; }.footer-main { grid-template-columns: 1fr 1fr; gap: 35px; }.footer-newsletter { grid-column: 1 / -1; }
}

@media (max-width: 580px) {
  .notice-bar { margin-bottom: 12px; }.notice-content { gap: 50px; }
  #app-downloads { padding: 16px; border-radius: 17px; }
  .hero { height: 360px; border-radius: 17px; }.hero-content { width: 92%; padding: 48px 25px 0; }.hero h1 { font-size: 34px; letter-spacing: -1.7px; }.hero p { max-width: 85%; }.hero-symbol, .hero-stat, .code-window { opacity: .16; }.hero-symbol { right: -5%; top: 34%; }.hero-dots { left: 25px; bottom: 25px; }
  .category-header { align-items: center; }.category-tabs { padding-bottom: 3px; }.category-tabs button { flex: 0 0 auto; }.site-grid { grid-template-columns: 1fr; }.site-main-link { min-height: 116px; }.category-block { margin-bottom: 44px; }
  .footer-main { grid-template-columns: 1fr; }.footer-newsletter { grid-column: auto; }.footer-bottom { flex-direction: column; gap: 8px; }
  .search-results a { grid-template-columns: 38px minmax(0, 1fr) 16px; }.search-results em { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
