:root {
  color-scheme: dark;
  font-family: system-ui, 'Segoe UI', sans-serif;
  --bg: #090909;
  --text: #f8f8f8;
  --muted: #ababab;
  --border: #292929;
  --surface: #111;
  --control-border: #3c3c3c;
  --control-hover: #222;
  --control-hover-border: #777;
  --control-radius: 10px;
  --panel-radius: 16px;
  --primary-hover: #dcdcdc;
  --width: 1224px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
a { color: inherit; text-underline-offset: .25em; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .48; }
p { margin: 0; }
h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: -.045em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
small, .muted { color: var(--muted); }
.skip { position: fixed; top: -100px; left: 1rem; background: #fff; color: #000; padding: .75rem; z-index: 9; }
.skip:focus { top: 1rem; }
.masthead { background: #0d0d0d; border-bottom: 1px solid #ffffff12; }
.nav-wrap, .footer-wrap, main { width: min(calc(100% - 72px), var(--width)); margin-inline: auto; }
.nav-wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.header-actions { display: flex; align-items: center; gap: .45rem; justify-self: end; }
.header-actions select { width: auto; min-height: 40px; padding: .4rem .5rem; font-size: .9rem; }
.header-actions #account { display: block; max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-actions #notifications { position: relative; min-width: 40px; padding-inline: .55rem; }
.notification-bell { flex: none; }
#unread-count { position: absolute; inset: -5px -5px auto auto; min-width: 18px; padding-inline: 4px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: .7rem; font-weight: 700; line-height: 18px; }
.notification-card[data-unread] { border-inline-start-color: var(--text); }
.notification-card h3 { overflow-wrap: anywhere; }
.brand { display: inline-flex; align-items: center; justify-self: start; }
.brand-wordmark { display: block; width: auto; height: 32px; }
nav { display: flex; align-items: center; gap: .22rem; padding: .24rem; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); }
nav a { display: flex; align-items: center; min-height: 36px; padding: .3rem .78rem; border: 1px solid transparent; border-radius: 999px; font-size: .84rem; font-weight: 550; text-decoration: none; color: var(--muted); }
nav a:hover, nav a[aria-current='page'] { color: var(--text); background: var(--control-hover); }
nav a[aria-current='page'] { border-color: var(--control-border); }
main { flex: 1; padding-bottom: 5rem; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; gap: .8rem; min-height: 490px; margin-top: 1.5rem; padding: clamp(1.5rem, 5vw, 4.25rem); border: 1px solid #323232; border-radius: 24px; background: radial-gradient(ellipse at 79% 46%, #202020, transparent 66%), #111; box-shadow: inset 0 1px #ffffff0a, 0 16px 80px #0005; }
.hero h1 { font-size: clamp(3.4rem, 7.2vw, 6.6rem); font-weight: 650; letter-spacing: -.075em; line-height: .95; }
.hero h1 em { display: block; color: #cecece; padding-inline-end: .1em; font-family: 'Baskerville', 'Times New Roman', serif; font-weight: 400; letter-spacing: -.075em; }
.hero p { max-width: 42ch; margin-top: 1.35rem; color: #bdbdbd; font-size: 1.04rem; text-wrap: pretty; }
.hero-copy { position: relative; z-index: 1; }
.hero .actions { margin-top: 1.65rem; }
.hero .text-button { display: inline-flex; align-items: center; padding-inline: .55rem; text-decoration: none; }
.hero .text-button:hover { text-decoration: underline; }
.browse-button::after { content: ''; width: .38em; height: .38em; margin-inline-start: .18em; margin-block-start: -.2em; border-inline-end: 1.5px solid; border-block-end: 1.5px solid; rotate: 45deg; }
.pulse-wordmark { display: block; width: min(100%, 329px); height: auto; }
.pulse-logo { display: block; justify-self: center; width: min(75%, 290px); height: auto; filter: drop-shadow(0 0 22px #ffffff29); }
.store-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 0 34%;
  background-image: linear-gradient(#ffffff0c 1px, transparent 1px), linear-gradient(90deg, #ffffff0c 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 72% 50%, #000 12%, transparent 75%);
}
.graphic {
  position: relative;
  justify-self: center;
  display: grid;
  place-items: center;
  width: min(100%, 420px);
  aspect-ratio: 1;
  isolation: isolate;
  background:
    radial-gradient(circle at 15% 29%, #bcbcbc 1px, transparent 2px),
    radial-gradient(circle at 84% 27%, #eee 1px, transparent 2px),
    radial-gradient(circle at 92% 58%, #aaa 1px, transparent 2px),
    radial-gradient(circle at 23% 81%, #aaa 1px, transparent 2px),
    radial-gradient(circle at 76% 78%, #e7e7e7 1px, transparent 2px),
    radial-gradient(circle, #e9e9e92c, transparent 51%);
}
.graphic::before, .graphic::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; }
.graphic::before { inset: 5%; border: 1px dashed #ffffff30; }
.graphic::after { inset: 12%; border: 1px solid #ffffff36; box-shadow: inset 0 0 40px #ffffff08, 0 0 50px #ffffff09; }
.orbits { position: relative; width: 50%; aspect-ratio: 1; rotate: 45deg; }
.orbits i { position: absolute; inset: var(--inset); border: 1px solid var(--shade); border-radius: 9%; background: linear-gradient(135deg, #ffffff17, transparent 56%); box-shadow: inset 0 0 28px #ffffff0b; }
.orbits i:nth-child(1) { --inset: -2%; --shade: #888; }
.orbits i:nth-child(2) { --inset: 7%; --shade: #9d9d9d; }
.orbits i:nth-child(3) { --inset: 17%; --shade: #b4b4b4; }
.orbits i:nth-child(4) { --inset: 27%; --shade: #dfdfdf; }
.orbit-mark { position: absolute; inset: 37%; width: 26%; height: 26%; filter: drop-shadow(0 0 12px #fff6); }
.section { margin-top: 2.5rem; }
#catalog { scroll-margin-top: 1.25rem; }
.section-head, .row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.section-head { margin-bottom: 1.5rem; }
.page-head { padding: clamp(1.5rem, 5vw, 3.5rem); margin-top: 1.5rem; border: 1px solid var(--border); border-radius: var(--panel-radius); background: radial-gradient(ellipse at 95% 0, #212121, transparent 65%), var(--surface); }
.page-head h1 { font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 600; letter-spacing: -.075em; }
.page-head p { color: var(--muted); margin-top: .65rem; }
.actions, .filters { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.filters { margin-bottom: 1.5rem; }
.button, .chip { display: inline-flex; justify-content: center; align-items: center; text-align: center; gap: .5rem; min-height: 44px; padding: .57rem 1rem; border: 1px solid var(--control-border); border-radius: var(--control-radius); background: var(--surface); color: var(--text); font-weight: 600; font-size: .9rem; text-decoration: none; }
.button:hover, .chip:hover { background: var(--control-hover); border-color: var(--control-hover-border); }
.button[aria-pressed='true'], .chip[aria-current] { background: var(--surface); border-color: var(--text); }
.button[aria-pressed='true']:hover, .chip[aria-current]:hover { background: var(--control-hover); }
.primary, .chip[aria-pressed='true'] { background: var(--text); color: var(--bg); border-color: var(--text); }
.primary:hover, .chip[aria-pressed='true']:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.library-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.collection-name { overflow-wrap: anywhere; max-width: 100%; }
.small, .chip { padding: .45rem .8rem; min-height: 40px; }
.chip { border-radius: 999px; }
.chat-layout { display: grid; grid-template-columns: minmax(12rem, .38fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.chat-sidebar, .chat-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--panel-radius); min-width: 0; }
.chat-sidebar { padding: 1rem; }
.chat-sidebar > .button { justify-self: start; }
.chat-rooms .stack { gap: .45rem; }
.chat-room { display: grid; gap: .15rem; padding: .65rem .75rem; text-decoration: none; border: 1px solid var(--border); border-radius: var(--control-radius); overflow-wrap: anywhere; }
.chat-room:hover, .chat-room[aria-current] { background: var(--surface); border-color: var(--control-hover-border); }
.chat-back { display: none; }
.chat-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; padding: 1rem; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.chat-header .stack { gap: .3rem; min-width: 0; }
.chat-panel > .muted, .chat-state { padding: 1.1rem; }
.chat-history { height: clamp(14rem, 48vh, 32rem); overflow-y: auto; overscroll-behavior: contain; padding: 1rem; }
.chat-log { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.chat-message { display: grid; gap: .3rem; justify-self: start; max-width: min(88%, 42rem); padding: .55rem .8rem; background: #191919; border: 1px solid var(--border); border-radius: var(--panel-radius); overflow-wrap: anywhere; }
.chat-message[data-own] { justify-self: end; border-color: var(--control-border); }
.chat-message p { white-space: pre-wrap; }
.chat-message-meta { display: flex; flex-wrap: wrap; gap: .2rem .7rem; align-items: baseline; color: var(--muted); font-size: .8rem; }
.chat-older:has(button) { margin-bottom: .8rem; }
.chat-compose { padding: .8rem 1rem 1rem; border-top: 1px solid var(--border); }
.chat-compose textarea { min-height: 4.3rem; }
.chat-status { color: var(--muted); font-size: .85rem; }
.chat-status:not(:empty) { margin-bottom: .5rem; }
.chat-members { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.chat-members li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; padding-top: .7rem; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
.chat-members .stack { gap: .2rem; }
.chat-members select { width: auto; }
.chat-invite:empty { display: none; }
.text-button { min-height: 36px; padding: .2rem .25rem; border: 0; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: .25em; font-size: .9rem; }
.text-button:hover { color: var(--text); }
.search { position: relative; display: flex; gap: .5rem; width: min(430px, 100%); }
.search::before, .search::after { content: ''; position: absolute; pointer-events: none; color: var(--muted); }
.search::before { inset-block-start: calc(50% - 7px); inset-inline-start: 15px; width: 9px; height: 9px; border: 1.5px solid; border-radius: 50%; }
.search::after { inset-block-start: calc(50% + 4px); inset-inline-start: 24px; width: 6px; border-top: 1.5px solid; rotate: 45deg; }
.search input { flex: 1; min-width: 0; padding-inline-start: 2.4rem; background: var(--bg); }
.catalog-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; padding: clamp(.8rem, 2vw, 1.2rem); margin-bottom: 1.5rem; border: 1px solid var(--border); border-radius: var(--panel-radius); background: var(--surface); }
.catalog-tools .search { width: 100%; }
.catalog-filters, .catalog-options { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.catalog-filters { justify-content: space-between; }
.catalog-filters .filters { margin: 0; }
.catalog-sort { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; max-width: 100%; color: var(--muted); }
.catalog-sort select { width: auto; max-width: 100%; min-height: 40px; margin: 0; padding: .45rem .65rem; color: var(--text); }
input, textarea, select { width: 100%; display: block; padding: .65rem .75rem; background: var(--surface); border: 1px solid var(--control-border); border-radius: var(--control-radius); }
select { cursor: pointer; }
select:hover { background: var(--control-hover); border-color: var(--control-hover-border); }
input::placeholder, textarea::placeholder { color: #a6a6a6; }
input[type='file'] { font-size: .9rem; }
input::file-selector-button { margin-inline-end: .6rem; padding: .3rem .6rem; color: var(--text); background: var(--bg); border: 1px solid var(--control-border); border-radius: var(--control-radius); font: inherit; cursor: pointer; }
input::file-selector-button:hover { background: var(--control-hover); border-color: var(--control-hover-border); }
textarea { min-height: 98px; resize: vertical; }
form.stack, .stack { display: grid; gap: 1rem; }
label { font-size: .9rem; font-weight: 600; }
label :is(input, textarea, select) { margin-top: .4rem; }
.check-option { display: flex; align-items: center; gap: .6rem; }
.check-option input { width: auto; margin: 0; accent-color: var(--text); }
.form-hint { color: var(--muted); font-size: .86rem; }
.error { color: #fff; border-left: 2px solid #fff; padding-left: .7rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.software-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pulse-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pulse-metrics { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin: 0; }
.pulse-metrics dt { color: var(--muted); font-size: .9rem; }
.pulse-metrics dd { margin: 0; font-size: 1.2rem; font-weight: 600; }
.card, .post, .empty, .composer { border: 1px solid var(--border); border-radius: var(--panel-radius); padding: clamp(1rem, 2vw, 1.4rem); background: linear-gradient(150deg, #151515, var(--surface) 66%); }
.card { display: flex; flex-direction: column; align-items: start; gap: .85rem; overflow-wrap: anywhere; }
.card:focus-within { border-color: var(--control-hover-border); }
.card .actions { margin-top: auto; }
.tag { border: 1px solid var(--control-border); border-radius: 999px; padding: .19rem .58rem; color: #ddd; font-size: .78rem; }
.official-app-title { display: flex; align-items: center; gap: .55rem; }
.official-app-title img { flex: none; }
.official-certification { border-color: var(--muted); }
.card-meta, .post-meta { color: var(--muted); font-size: .88rem; }
.listing-date { display: block; }
.item-title { padding: 0; border: 0; background: none; color: #fff; text-align: left; font: inherit; }
.item-title:hover { text-decoration: underline; text-underline-offset: .25em; }
.card-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.card p, .post p, .detail { overflow-wrap: anywhere; white-space: pre-wrap; }
.file-preview { border: 1px solid var(--border); border-radius: var(--panel-radius); }
.file-preview summary { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .85rem 1rem; border-radius: var(--control-radius); list-style: none; cursor: pointer; font-size: .9rem; font-weight: 600; }
.file-preview summary::-webkit-details-marker { display: none; }
.file-preview summary::after { content: ''; width: .48rem; height: .48rem; flex: none; border-inline-end: 1px solid currentColor; border-block-end: 1px solid currentColor; transform: rotate(45deg); }
.file-preview summary:hover { background: var(--control-hover); }
.file-preview[open] summary::after { transform: rotate(225deg); }
.preview-output { padding: .75rem 1rem .85rem; border-top: 1px solid var(--border); }
.preview-text { margin: 0; max-height: 22rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.preview-image { display: block; max-width: 100%; max-height: 32rem; object-fit: contain; object-position: left; }
.file-preview audio { width: 100%; max-width: 32rem; }
.empty { display: grid; justify-items: start; gap: .6rem; min-height: 140px; align-content: center; }
.empty p { color: var(--muted); }
.loading { margin-top: 3rem; color: var(--muted); }
.narrow { max-width: 720px; }
.account-security { border-top: 1px solid var(--border); padding-top: 1.75rem; }
.experience-interests { margin: 0; padding: .65rem .8rem .8rem; border: 1px solid var(--border); border-radius: var(--control-radius); }
.experience-interests legend { padding: 0 .25rem; font-weight: 600; font-size: .9rem; }
.experience-interests:disabled { color: var(--muted); }
.experience-interests .actions { gap: .6rem 1.25rem; }
.insight-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.insight-table :is(th, td) { padding: .6rem .35rem; border-bottom: 1px solid var(--border); text-align: end; }
.insight-table th:first-child { text-align: start; }
.account-email-status { overflow-wrap: anywhere; }
.session-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--panel-radius); }
.session-list li { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .2rem 1rem; padding: .75rem 1rem; }
.session-list li + li { border-top: 1px solid var(--border); }
.session-list time { white-space: nowrap; }
.passkey-name { min-width: 0; overflow-wrap: anywhere; }
.passkey-name p { font-size: .9rem; }
.post { display: grid; gap: .85rem; }
.post-meta, .byline { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; min-width: 0; overflow-wrap: anywhere; }
.byline .text-button { color: #fff; font-weight: 600; }
.comment { border-top: 1px solid var(--border); padding: .75rem 0; }
.comment p { white-space: pre-wrap; overflow-wrap: anywhere; }
.more { margin-top: 1rem; }
footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-wrap { min-height: 76px; display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; padding: .75rem 0; }
.footer-wrap a { color: var(--muted); font-size: .875rem; }
.footer-brand { margin-right: auto; }
.footer-brand .brand-wordmark { height: 27px; }
dialog { width: min(calc(100% - 32px), 550px); max-height: calc(100% - 32px); border: 1px solid #505050; border-radius: var(--panel-radius); padding: 1.4rem; background: #151515; color: var(--text); box-shadow: 0 28px 100px #000a; }
dialog::backdrop { background: #000a; backdrop-filter: blur(7px); }
.dialog-head { margin-bottom: 1rem; }
.dialog-head h2 { overflow-wrap: anywhere; }
.close { font-size: 1.25rem; min-width: 42px; padding: 0; }
.notice { position: fixed; z-index: 10; right: 1rem; bottom: 1rem; max-width: min(420px, calc(100% - 2rem)); padding: .85rem 1rem; background: var(--text); color: var(--bg); border-radius: var(--control-radius); box-shadow: 0 0 0 1px var(--control-border); }
@media (prefers-reduced-motion: no-preference) {
  .button, .chip, .text-button, nav a, select, .file-preview summary, .card {
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
  }
  .orbits { animation: orbit-float 4.8s ease-in-out; }
}
@keyframes orbit-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}
@media (max-width: 1020px) {
  .nav-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem; padding: .7rem 0; }
  nav { grid-row: 2; grid-column: 1 / -1; justify-self: start; flex-wrap: wrap; border-radius: 16px; }
}
@media (max-width: 840px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 390px; }
}
@media (max-width: 650px) {
  .chat-layout { grid-template-columns: minmax(0, 1fr); }
  .chat-layout[data-open] .chat-sidebar, .chat-layout:not([data-open]) .chat-panel { display: none; }
  .chat-back { display: inline-block; justify-self: start; }
  .nav-wrap, .footer-wrap, main { width: calc(100% - 32px); }
  .nav-wrap .brand-wordmark { height: 27px; }
  nav { gap: .12rem; }
  nav a { min-height: 38px; padding-inline: .32rem; font-size: .82rem; }
  .header-actions #account { max-width: min(9rem, 29vw); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1rem; min-height: auto; margin-top: 1rem; padding: 1.9rem 1.15rem 1rem; border-radius: 19px; background: radial-gradient(ellipse at 72% 89%, #242424, transparent 62%), #111; }
  .hero h1 { font-size: clamp(3rem, 11vw, 5rem); }
  .store-hero::before { inset: 25% 0 0; mask-image: radial-gradient(ellipse at 50% 70%, #000, transparent 70%); }
  .graphic { width: min(68%, 250px); }
  .pulse-logo { width: min(70%, 250px); }
  .pulse-details { grid-template-columns: 1fr; }
  .section-head { align-items: stretch; flex-direction: column; }
  .catalog-filters .filters { gap: .4rem; }
  .catalog-filters .chip { padding-inline: .65rem; }
  .catalog-options { justify-content: space-between; width: 100%; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 410px) {
  .nav-wrap:has(#notifications:not([hidden])) .header-actions { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .nav-wrap:has(#notifications:not([hidden])) nav { grid-row: 3; }
}
@media (max-width: 355px) {
  .header-actions { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  nav { grid-row: 3; }
}
