/* Micup Lens — black, white and brushed silver; one fixed interface icon finish. */

:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #0c0c0c;
  --cell: #111111;
  --raised: #1b1b1b;
  --hover: #292929;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #ffffff;
  --text-2: #e4e4e4;
  --muted: #b3b3b3;
  --faint: #636363;
  --light: #f4f4f4;
  --light-hover: #ffffff;
  --on-light: #191919;
  --bar: #3a3a3a;
  --bar-top: #505050;
  --online: #43d986;
  --idle: #f1bd4c;
  --danger: #ef737b;
  --chart-1: #e4e4e4;
  --chart-2: #767676;
  --chart-empty: #202020;
  --plot-line: #ffffff;
  --plot-bar: #bcbcbc;
  --accent: #ffffff;
  --accent-2: #b3b3b3;
  --accent-3: #bdbdbd;
  --icon-face: #f5f5f5;
  --icon-frame: #030303;
  --icon-surface: linear-gradient(145deg, #242424, #090909 48%, #151515);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --t-xs: 12px; --t-sm: 13px; --t-md: 14px; --t-lg: 16px; --t-xl: 20px; --t-2xl: 28px;
  --t-hero: clamp(42px, 6.4vw, 76px);
  --t-section: clamp(34px, 4.4vw, 54px);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s14: 56px; --s20: 80px; --s28: 112px;
  --r-sm: 8px; --r-md: 10px; --r-lg: 14px; --r-xl: 18px; --r-pill: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --fast: 160ms;

  font-family: var(--font);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scrollbar-color: #2f2f2f var(--bg); scroll-padding-top: 96px; scroll-behavior: smooth; }
html.is-smooth-scrolling { scroll-behavior: auto; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-size: var(--t-md);
  line-height: 1.55;
  letter-spacing: -.011em;
  font-variant-numeric: tabular-nums;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .1) 1px, transparent 1.5px) 0 0 / 56px 56px,
    radial-gradient(ellipse 55% 38% at 50% -6%, rgba(255, 255, 255, .045), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
::selection { background: var(--light); color: var(--on-light); }
/* The canvas field replaces the CSS dot grid once it is running: dots behind the page, ribbon in front */
.has-field { background: radial-gradient(ellipse 55% 38% at 50% -6%, rgba(255, 255, 255, .045), transparent 70%), var(--bg); background-attachment: fixed; }
.has-field body { background: transparent; }
.field { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.field-dots { z-index: -1; }
.field-trail { z-index: 30; mix-blend-mode: screen; }
input { caret-color: var(--light); }
button, input, select { font: inherit; letter-spacing: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: not-allowed; opacity: .45; }
:focus-visible { outline: 2px solid var(--light); outline-offset: 2px; border-radius: var(--r-sm); }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
p, h1, h2, h3, h4, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: var(--s4); top: -60px; z-index: 50; padding: var(--s2) var(--s4); border-radius: var(--r-md); background: var(--light); color: var(--on-light); font-weight: 600; }
.skip-link:focus { top: var(--s4); }

/* ── Nav ── */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--s6); min-height: 72px; padding: var(--s3) max(var(--s8), calc((100% - 1200px) / 2)); background: rgba(11, 11, 11, .72); border-bottom: 1px solid transparent; backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px); transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease); }
.nav.is-scrolled { background: rgba(11, 11, 11, .88); border-bottom-color: var(--line); }
.brand { justify-self: start; display: flex; align-items: center; gap: var(--s3); white-space: nowrap; font: 650 var(--t-lg)/1 var(--font-display); letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-sm); background: #000000; border: 1px solid var(--line-2); }
.brand-mark svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark.small { width: 24px; height: 24px; border-radius: 6px; }
.brand-mark.small svg { width: 16px; height: 16px; }
.nav-links { display: flex; align-items: center; gap: var(--s1); margin-left: auto; }
.nav-link { position: relative; display: flex; align-items: center; min-height: 36px; padding: 0 var(--s3); font-size: var(--t-sm); font-weight: 600; color: var(--text-2); white-space: nowrap; transition: color var(--fast) var(--ease); }
.nav-link::after { content: ""; position: absolute; left: var(--s3); right: var(--s3); bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform var(--fast) var(--ease); }
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(.5); }
.nav-link.is-active { color: var(--accent); }
.nav-link.is-active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: var(--s2); }
.connection-pill { display: flex; align-items: center; gap: var(--s2); min-height: 36px; padding: 0 var(--s3); border-radius: var(--r-pill); border: 1px solid var(--line-2); background: rgba(23, 23, 23, .85); font-size: var(--t-xs); color: var(--muted); white-space: nowrap; transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.connection-pill:hover { color: var(--text); border-color: rgba(255, 255, 255, .2); }
.nav-cta { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 40px; padding: 0 var(--s4); border-radius: 12px; background: #f2f2f2; color: var(--on-light); font-size: var(--t-sm); font-weight: 650; white-space: nowrap; box-shadow: 0 1px 0 #ffffff inset, 0 4px 16px rgba(0, 0, 0, .2); transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background var(--fast) var(--ease); }
.nav-cta:hover { background: #ffffff; transform: translateY(-1px); box-shadow: 0 1px 0 #ffffff inset, 0 6px 20px rgba(0, 0, 0, .3); }
.nav-cta:active { transform: scale(.97); }
.nav-cta svg, .nav-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-toggle { display: none; place-items: center; width: 38px; height: 38px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: rgba(23, 23, 23, .85); color: var(--text); }
.nav-toggle svg { width: 18px; height: 18px; }

.status-dot { display: inline-block; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--online); }
.status-dot.connecting { background: var(--muted); animation: pulse 1.6s var(--ease) infinite; }
.status-dot.error { background: var(--danger); }
@keyframes pulse { 50% { opacity: .3; } }

/* ── Buttons ── */
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s5); border-radius: var(--r-md); font-size: var(--t-md); font-weight: 600; white-space: nowrap; transition: background var(--fast) var(--ease), transform var(--fast) var(--ease); }
.button:active:not(:disabled) { transform: scale(.98); }
.button-light { background: var(--light); color: var(--on-light); border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 8px 24px rgba(0, 0, 0, .35); }
.button-light:hover:not(:disabled) { background: var(--light-hover); }
.button-small { min-height: 36px; padding: 0 var(--s4); font-size: var(--t-sm); }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: var(--r-md); background: var(--cell); border: 1px solid var(--line-2); color: var(--text-2); transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
.icon-button:hover { background: var(--hover); color: var(--text); }
.link-button, .text-link { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--t-sm); color: var(--muted); transition: color var(--fast) var(--ease); }
.link-button:hover, .text-link:hover { color: var(--text); }
.text-link { color: var(--text); font-weight: 500; }

/* ── Hero ── */
.page { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--s8); }
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--s20) 0 var(--s14); }
.hero-pill { display: inline-flex; align-items: center; gap: var(--s2); padding: 6px var(--s4); border-radius: var(--r-pill); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); font-size: var(--t-xs); font-weight: 500; color: var(--text-2); }
h1 { margin-top: var(--s8); font: 600 var(--t-hero)/1.04 var(--font-display); letter-spacing: -.045em; text-wrap: balance; }
.silver { color: #929292; }
/* Solid wordmark; motion belongs to the entrance, not the letter color. */
.brand-title { padding-inline: .12em; font-size: clamp(56px, 9.5vw, 116px); font-weight: 700; line-height: 1; letter-spacing: -.048em; color: var(--text); }
.brand-title::selection { color: var(--on-light); }

/* Added only after the observer is ready, so content stays visible without JS. */
.motion-ready .motion-item { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 700ms var(--ease), transform 850ms var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.motion-ready .motion-item.is-revealed { opacity: 1; transform: none; }
.motion-ready .motion-item:focus-within { opacity: 1; transform: none; transition-delay: 0ms; }
.intro-copy { margin-top: var(--s6); max-width: 520px; font-size: var(--t-lg); line-height: 1.6; color: var(--muted); }
.search-form { display: flex; align-items: center; gap: var(--s2); width: min(560px, 100%); margin-top: var(--s10); padding: 6px; border-radius: var(--r-lg); background: rgba(22, 22, 22, .92); border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .4); transition: border-color var(--fast) var(--ease); }
.search-form:focus-within { border-color: var(--light); }
.search-form:has([aria-invalid=true]) { border-color: var(--danger); }
.search-input-wrap { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--s3); padding-left: var(--s3); color: var(--muted); }
.search-input-wrap input { flex: 1; min-width: 0; height: 42px; border: 0; outline: none; background: transparent; color: var(--text); font-size: var(--t-lg); }
.search-input-wrap input::placeholder { color: var(--muted); }
.search-input-wrap input:focus-visible { outline: none; }
#search-error { min-height: 22px; margin-top: var(--s3); font-size: var(--t-sm); color: var(--danger); }
.hero-points { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s8); margin-top: var(--s2); font-size: var(--t-sm); color: var(--muted); }

.has-profile .hero { padding: var(--s6) 0 var(--s4); }
.has-profile .hero-pill, .has-profile h1, .has-profile .intro-copy, .has-profile .hero-points { display: none; }
.has-profile .search-form { margin-top: 0; box-shadow: none; }

/* ── Panel ── */
.panel { max-width: 1040px; margin: 0 auto; overflow: hidden; border-radius: var(--r-xl); background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 50px 120px rgba(0, 0, 0, .6); }
.panel-sample { max-width: 1000px; border-radius: 20px; background: radial-gradient(ellipse 75% 40% at 65% 0%, rgba(183, 183, 183, .035), transparent), var(--panel); }
.panel-sample .panel-bar { min-height: 64px; padding: var(--s4) var(--s6); }
.sample-bar-divider { height: 16px; margin-inline: var(--s1); border-left: 1px solid var(--line-2); }
.sample-bar-caption { font: 400 var(--t-xs)/1.4 var(--font); color: var(--muted); letter-spacing: 0; }
.sample-body { padding: 28px; }
.sample-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.sample-eyebrow { margin-bottom: 6px; color: var(--muted); font-size: var(--t-xs); }
.sample-heading h2 { font: 600 26px/1.2 var(--font-display); letter-spacing: -.035em; }
.sample-period { display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: var(--t-xs); color: var(--text-2); white-space: nowrap; }
.sample-period .icon { width: 14px; height: 14px; }
.sample-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin: var(--s6) 0 var(--s8); }
.sample-metric { position: relative; min-width: 0; min-height: 182px; padding: var(--s4) var(--s5) 64px; overflow: hidden; border: 1px solid rgba(163, 163, 163, .34); border-radius: 12px; background: #111111; }
.metric-label { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 32px; color: var(--muted); font-size: var(--t-xs); font-weight: 500; }
.metric-card-icon { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 11px; background: rgba(255, 255, 255, .075); color: var(--plot-line); }
.metric-card-icon .icon { width: 16px; height: 16px; }
.sample-value-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s2); }
.sample-value { display: flex; align-items: baseline; gap: 5px; font: 650 28px/1.15 var(--font-display); letter-spacing: -.04em; }
.sample-value > span { font: 400 var(--t-sm)/1 var(--font); color: var(--muted); letter-spacing: 0; margin-right: 2px; }
.metric-change { display: inline-flex; align-items: center; gap: 2px; color: #afafaf; font-size: 11px; font-weight: 600; white-space: nowrap; }
.metric-change .icon { width: 13px; height: 13px; }
.metric-note { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.metric-note b { color: var(--text-2); font-weight: 600; }
.metric-wave-graphic { position: absolute; inset: auto 0 0; height: 58px; pointer-events: none; }
.metric-wave-graphic svg { display: block; width: 100%; height: 100%; }
.metric-wave-line { fill: none; stroke: var(--plot-line); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sample-chart-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.sample-chart-head h3, .sample-section-head h3 { font-size: var(--t-md); font-weight: 600; letter-spacing: -.015em; }
.sample-chart-head p { margin-top: 4px; color: var(--muted); font-size: var(--t-xs); }
.sample-peak { display: inline-flex; align-items: center; gap: 6px; padding: 6px var(--s3); background: rgba(183, 183, 183, .06); border: 1px solid rgba(183, 183, 183, .12); border-radius: var(--r-pill); color: var(--muted); font-size: 11px; white-space: nowrap; }
.sample-peak .icon { width: 13px; height: 13px; color: var(--plot-line); }
.sample-peak strong { color: var(--text-2); font-weight: 500; }
.sample-bottom { display: grid; grid-template-columns: 1.2fr 1fr; margin-top: var(--s6); padding-top: var(--s6); border-top: 1px solid var(--line); }
.sample-events { padding-right: var(--s6); border-right: 1px solid var(--line); min-width: 0; }
.sample-guilds { padding-left: var(--s6); min-width: 0; }
.sample-section-head { display: flex; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.sample-section-head > span { font-size: 11px; color: var(--muted); }
.sample-events .event-row { padding: var(--s3) 0; gap: var(--s3); }
.sample-events .row-icon { width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--cell); }
.sample-events .row-icon .icon { width: 15px; height: 15px; }
.sample-events .event-info strong { font-size: var(--t-sm); font-weight: 500; }
.sample-events .event-info p, .sample-events .event-meta { font-size: 11px; }
.sample-guild { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) 0; }
.sample-guild-avatar { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--cell); color: var(--text-2); font-size: 10px; font-weight: 500; }
.sample-guild strong { font-size: var(--t-sm); font-weight: 500; }
.sample-guild p { margin-top: 2px; font-size: 11px; color: var(--muted); }
.sample-guild-meter { margin-left: auto; width: 46px; height: 4px; flex-shrink: 0; border-radius: 2px; background: var(--chart-empty); overflow: hidden; }
.sample-guild-meter i { display: block; height: 100%; border-radius: inherit; background: var(--plot-bar); }
.sample-guild-note { display: flex; align-items: center; gap: 6px; margin-top: var(--s4); color: var(--muted); font-size: 11px; }
.sample-guild-note .icon { width: 13px; height: 13px; }
.sample-footer { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s4) 28px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .012); color: var(--muted); font-size: 11px; }
.sample-footer a { display: flex; align-items: center; gap: var(--s2); min-height: 28px; color: var(--text-2); font-size: var(--t-xs); }
.sample-footer a:hover { color: var(--text); }
.sample-footer a .icon { width: 14px; height: 14px; }
.panel-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 56px; padding: var(--s3) var(--s5); border-bottom: 1px solid var(--line); }
.panel-brand { display: flex; align-items: center; gap: var(--s3); font: 650 var(--t-md)/1 var(--font-display); letter-spacing: -.02em; }
.sample-tag { padding: 3px var(--s2); border-radius: 6px; border: 1px solid var(--line-2); font-size: var(--t-xs); color: var(--muted); }
.panel-body { padding: var(--s6) var(--s6) var(--s2); }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s5); }
.panel-title h2 { font: 600 var(--t-xl)/1.2 var(--font-display); letter-spacing: -.025em; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 var(--s3); border-radius: var(--r-md); border: 1px solid var(--line-2); font-size: var(--t-sm); color: var(--text-2); }
.chip .icon { width: 14px; height: 14px; }
.panel-foot { display: flex; align-items: center; justify-content: space-between; padding: var(--s4) var(--s6); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .015); font-size: var(--t-sm); color: var(--text-2); }
.toolbar-actions { display: flex; align-items: center; gap: var(--s2); }
.period-label { display: flex; align-items: center; gap: var(--s2); min-height: 36px; padding: 0 var(--s3); border-radius: var(--r-md); background: var(--cell); border: 1px solid var(--line-2); color: var(--muted); }
.period-label .icon { width: 14px; height: 14px; }
/* ── Identity ── */
.profile-cover { height: clamp(130px, 24vw, 230px); margin: calc(var(--s6) * -1) calc(var(--s6) * -1) var(--s6); overflow: hidden; background: var(--raised); border-bottom: 1px solid var(--line); }
.profile-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.who { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.avatar-wrap { position: relative; flex-shrink: 0; width: 60px; height: 60px; }
.avatar-stage { flex-shrink: 0; }
.avatar-stage.has-ultra { display: grid; place-items: center; width: 210px; min-height: 208px; }
.avatar { position: relative; z-index: 1; width: 60px; height: 60px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--raised); border: 1px solid var(--line-2); font: 600 var(--t-xl)/1 var(--font-display); }
.avatar-ultra { position: absolute; top: 50%; left: 50%; width: 346.8%; height: 346.8%; transform: translate(-50%, -50%); pointer-events: none; user-select: none; }
.avatar-ultra-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.avatar-ultra-behind { width: calc(3.4 * 648.4 / 635.6 * 100%); height: calc(3.4 * 648.4 / 635.6 * 100%); z-index: 0; }
.avatar-ultra-behind.custom { width: calc(var(--ultra-w) * 648.4 / 635.6 * 100%); height: calc(var(--ultra-h) * 648.4 / 635.6 * 100%); left: calc(50% + var(--ultra-x) * 100%); top: calc(50% + var(--ultra-y) * 100%); }
.avatar-ultra-front, .avatar-ultra-reveal { z-index: 2; }
.avatar-ultra-front .avatar-ultra-image { width: 50%; object-fit: fill; }
.avatar-ultra-front .mirrored { left: 50%; transform: scaleX(-1); }
.avatar-decoration { position: absolute; width: 120%; max-width: none; height: 120%; top: 50%; left: 50%; transform: translate(-50%, -50%); object-fit: contain; pointer-events: none; z-index: 1; }
.avatar-wrap .presence-indicator { z-index: 3; }
.device-chip { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: var(--t-xs); }
.device-chip .icon { width: 14px; height: 14px; color: var(--muted); flex-shrink: 0; }
.who-status > .device-chip { min-height: 32px; padding: 0 var(--s3); border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--cell); }
.device-observed { display: block; margin-top: 4px; font-size: var(--t-xs); color: var(--muted); }
.presence-indicator { position: absolute; right: -1px; bottom: -1px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--panel); background: var(--faint); }
/* Shape carries state: filled = online, ring = idle, bar = do not disturb */
.presence-indicator.online { background: var(--online); }
.presence-indicator.idle { background: var(--panel); box-shadow: inset 0 0 0 3px var(--idle); }
.presence-indicator.dnd { background: var(--danger); }
.presence-indicator.dnd::after { content: ""; position: absolute; left: 2px; right: 2px; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--panel); }
.presence-indicator.unknown { background: var(--panel); box-shadow: inset 0 0 0 1px var(--muted); }
.who-text { flex: 1; min-width: 0; }
.who-text h2 { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s3); font: 600 var(--t-2xl)/1.15 var(--font-display); letter-spacing: -.035em; overflow-wrap: anywhere; }
.profile-type { padding: 2px var(--s2); border-radius: 6px; border: 1px solid var(--line-2); font: 500 var(--t-xs)/1.4 var(--font); letter-spacing: 0; color: var(--muted); }
.profile-guild-tag { position: relative; display: inline-flex; align-items: center; gap: 5px; min-height: 25px; padding: 2px 7px 2px 5px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--raised); color: var(--text-2); font: 600 var(--t-sm)/1.4 var(--font); letter-spacing: .025em; cursor: help; white-space: nowrap; }
.guild-tag-badge { display: block; flex: 0 0 18px; width: 18px; height: 18px; image-rendering: pixelated; --gt-k: #292431; --gt-d: color-mix(in srgb, var(--guild-tag-color) 65%, #30243c); --gt-b: var(--guild-tag-color); --gt-l: color-mix(in srgb, var(--guild-tag-color) 55%, white); --gt-a: #f87171; --gt-w: #fff7ed; --gt-s: #a7804b; }
.handle { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s1); font-size: var(--t-sm); color: var(--muted); }
.joined-date { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: var(--s2); color: var(--muted); font-size: var(--t-xs); }
.joined-date .icon { width: 13px; height: 13px; }
.id-button { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; font-size: var(--t-sm); color: var(--muted); transition: color var(--fast) var(--ease); }
.id-button .icon { width: 13px; height: 13px; }
.id-button:hover { color: var(--text); }
.who-status { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); }
.status-chip, .custom-status { display: inline-flex; align-items: center; gap: var(--s2); min-height: 32px; padding: 0 var(--s3); border-radius: var(--r-md); border: 1px solid var(--line-2); font-size: var(--t-sm); color: var(--text-2); }
.custom-status { max-width: 360px; white-space: pre-wrap; overflow-wrap: anywhere; }
.status-chip.idle .status-dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--idle); width: 8px; height: 8px; }
.status-chip.dnd .status-dot { background: var(--danger); }
.status-chip.offline .status-dot, .status-chip.invisible .status-dot, .status-chip.unknown .status-dot { background: var(--faint); }
.status-chip.unknown .status-dot { background: transparent; box-shadow: inset 0 0 0 1px var(--muted); }

.inline-emoji { display: inline-block; width: 1.45em; height: 1.45em; object-fit: contain; vertical-align: -.35em; }
.profile-badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s2); }
.micup-badge { position: relative; display: inline-flex; align-items: center; font-size: var(--t-xs); color: var(--text-2); cursor: help; }
.micup-badge img { display: block; height: 26px; width: auto; max-width: 70px; object-fit: contain; }
.badge-tooltip { position: absolute; bottom: calc(100% + 10px); left: 50%; z-index: 20; width: max-content; max-width: min(260px, 70vw); padding: var(--s2) var(--s3); border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--raised); color: var(--text); font-size: var(--t-sm); font-weight: 500; line-height: 1.4; text-align: center; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 4px); transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), visibility var(--fast); }
.micup-badge:hover > .badge-tooltip, .micup-badge:focus > .badge-tooltip, .profile-guild-tag:hover > .badge-tooltip, .profile-guild-tag:focus > .badge-tooltip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.rich-link { color: #c2a1ff; text-decoration: none; text-underline-offset: 3px; overflow-wrap: anywhere; transition: text-decoration-color var(--fast) var(--ease); }
.rich-link:hover, .rich-link:focus-visible { text-decoration: underline; text-decoration-color: currentColor; }

/* ── Profile Hero Card ── */
.hero-card { position: relative; overflow: hidden; border-radius: 16px; background: #151515; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5); margin-bottom: 20px; }
.hero-card .profile-cover { position: relative; height: clamp(140px, 25vw, 240px); margin: 0; overflow: hidden; background: var(--raised); border-bottom: 1px solid var(--line); }
.hero-card .profile-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-glow { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(21, 21, 21, .95) 100%); pointer-events: none; }
.hero-card .who { position: relative; padding: 24px; }

/* ── Stats (Canvas Architecture) ── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 20px 0; }
.stat { position: relative; min-width: 0; min-height: 124px; padding: 22px 24px; overflow: hidden; border-radius: 16px; background: #151515; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.stat:hover { border-color: rgba(163, 163, 163, .3); transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6); }
.stat::before { content: ""; position: absolute; top: 0; left: 20px; right: 20px; height: 2px; background: linear-gradient(90deg, rgba(163, 163, 163, .5), transparent); border-radius: 2px; }
.stat.is-accent { background: linear-gradient(135deg, rgba(163, 163, 163, .18) 0%, #171717 80%); border-color: rgba(163, 163, 163, .45); box-shadow: 0 14px 40px -10px rgba(163, 163, 163, .25); }
.stat.is-accent::after { content: ""; position: absolute; right: -24px; bottom: -24px; width: 110px; height: 110px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .07); background: radial-gradient(circle, rgba(163, 163, 163, .18) 0%, transparent 70%); pointer-events: none; }
.stat.has-wave { min-height: 172px; padding-bottom: 64px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.stat-label { font: 700 11px/1.3 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: #acacac; }
.stat-badge { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(163, 163, 163, .12); border: 1px solid rgba(163, 163, 163, .25); color: var(--accent); }
.stat-badge svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.stat-main { position: relative; z-index: 1; }
.stat-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 10px; font: 700 32px/1.1 var(--font-display); letter-spacing: -.04em; color: #ffffff; }
.stat-value small { font: 500 12px/1 var(--font); letter-spacing: 0; color: var(--muted); }
.stat-note { display: block; margin-top: 5px; font-size: 11px; color: var(--text-2); }
.stats-stack { grid-template-columns: 1fr; margin: 0; }

/* ── Hourly activity: Ses & Mesaj Aktivitesi (Canvas Layout) ── */
.rhythm { margin: 24px 0 28px; padding: 24px 26px; border-radius: 16px; background: #151515; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 16px 40px -15px rgba(0, 0, 0, .5); }
.rhythm-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.rhythm-title-wrap { display: flex; align-items: center; gap: 12px; }
.rhythm-badge { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(163, 163, 163, .12); border: 1px solid rgba(163, 163, 163, .25); color: var(--accent); }
.rhythm-badge svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rhythm-title { font: 700 17px/1.2 var(--font-display); letter-spacing: -.025em; color: #f2f2f2; margin: 0; }
.rhythm-sub { margin: 3px 0 0; font-size: 11px; color: var(--muted); }
.activity-plot { min-width: 0; }
.plot-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 11px; color: var(--text-2); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.plot-key.line { width: 16px; height: 3px; border-radius: 2px; background: var(--plot-line); box-shadow: 0 0 8px rgba(163, 163, 163, .6); }
.plot-key.column { width: 8px; height: 10px; border-radius: 2px; background: #919191; }
.sample-peak { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(163, 163, 163, .1); border: 1px solid rgba(163, 163, 163, .25); color: var(--accent); font-size: 11px; font-weight: 600; }
.sample-peak svg { width: 13px; height: 13px; fill: currentColor; }
.plot-grid { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 8px; align-items: center; }
.plot-scale { display: flex; flex-direction: column; justify-content: space-between; height: 192px; color: #929292; font-size: 10px; font-weight: 500; font-variant-numeric: tabular-nums; }
.plot-scale.right { align-items: flex-end; }
.plot-canvas { position: relative; height: 205px; min-width: 0; }
.plot-canvas svg { display: block; width: 100%; height: 100%; overflow: visible; }
.plot-guides { fill: none; stroke: rgba(255, 255, 255, .08); stroke-dasharray: 4 6; }
.plot-bar { fill: #919191; opacity: .75; transition: opacity .2s; }
.plot-bar.is-peak { fill: #a3a3a3; opacity: 1; filter: drop-shadow(0 0 8px rgba(163, 163, 163, .6)); }
.plot-line { fill: none; stroke: var(--plot-line); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 8px rgba(163, 163, 163, .45)); }
.plot-peak-guide { fill: none; stroke: var(--plot-line); stroke-opacity: .5; stroke-dasharray: 3 5; }
.plot-hour { fill: transparent; }
.plot-hour:hover { fill: rgba(163, 163, 163, .06); }
.plot-insight { position: absolute; width: 0; height: 0; }
.plot-pin { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2.5px solid #151515; background: var(--plot-line); box-shadow: 0 0 0 4px rgba(163, 163, 163, .25), 0 0 12px var(--plot-line); cursor: help; }
.plot-pin::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; }
.plot-tip { position: absolute; left: 0; bottom: 18px; z-index: 5; display: block; min-width: 170px; padding: 10px 14px; background: #1d1d1d; border: 1px solid rgba(163, 163, 163, .35); border-radius: 12px; box-shadow: 0 14px 40px rgba(0, 0, 0, .7); opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 3px); transition: opacity var(--fast), transform var(--fast), visibility var(--fast); white-space: nowrap; }
.plot-tip strong { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); font-size: var(--t-sm); font-weight: 600; }
.plot-tip small { color: var(--muted); font-size: 10px; font-weight: 400; }
.plot-tip > span { display: block; margin-top: 5px; color: var(--text-2); font-size: 11px; }
.plot-insight:hover .plot-tip, .plot-insight:focus-within .plot-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.plot-insight.at-start .plot-tip { transform: translate(0, 3px); }
.plot-insight.at-start:hover .plot-tip, .plot-insight.at-start:focus-within .plot-tip { transform: translate(0, 0); }
.plot-insight.at-end .plot-tip { left: auto; right: 0; transform: translate(0, 3px); }
.plot-insight.at-end:hover .plot-tip, .plot-insight.at-end:focus-within .plot-tip { transform: translate(0, 0); }
.plot-xaxis { grid-column: 2; position: relative; height: 20px; margin-top: 10px; color: #929292; font-size: 10px; font-weight: 500; }
.plot-xaxis > span { position: absolute; transform: translateX(-50%); }
.plot-empty { position: absolute; left: 50%; top: 50%; padding: var(--s2) var(--s4); border-radius: var(--r-sm); background: #1a1a1a; border: 1px solid var(--line-2); color: var(--muted); font-size: var(--t-xs); white-space: nowrap; transform: translate(-50%, -50%); }

/* ── Tabs ── */
.tab-bar { display: flex; gap: 6px; padding: 6px; border-radius: var(--r-pill); background: rgba(21, 21, 21, .85); border: 1px solid rgba(255, 255, 255, .08); margin: 20px 0; overflow-x: auto; scrollbar-width: none; }
.tab-bar::-webkit-scrollbar { display: none; }
.tab-button { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: var(--r-pill); font-size: var(--t-sm); font-weight: 600; color: var(--muted); white-space: nowrap; transition: all var(--fast) var(--ease); }
.tab-button:hover { color: var(--text); }
.tab-button[aria-selected=true] { background: linear-gradient(135deg, rgba(163, 163, 163, .25) 0%, rgba(163, 163, 163, .1) 100%); color: #ffffff; border: 1px solid rgba(163, 163, 163, .4); box-shadow: 0 4px 16px -4px rgba(163, 163, 163, .4); }
.tab-panel { padding: var(--s2) 0 var(--s4); }

/* ── Blocks & Cards ── */
.block { padding: 24px; border-radius: 16px; background: #151515; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); margin-bottom: 20px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.block-head h3 { font: 700 var(--t-lg)/1.3 var(--font-display); letter-spacing: -.02em; }
.block-meta { font-size: var(--t-xs); color: var(--muted); }
.block-note { padding: var(--s2) 0; max-width: 70ch; font-size: var(--t-sm); color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }

.event-list { display: grid; }
.event-row { display: flex; align-items: center; gap: var(--s4); min-width: 0; padding: var(--s3) 0; content-visibility: auto; contain-intrinsic-size: auto 64px; }
.event-row + .event-row, .event-row + .message-item, .message-item + .event-row, .message-item + .message-item { border-top: 1px solid var(--line); }
.row-icon { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--r-md); background: #1b1b1b; border: 1px solid var(--line-2); color: var(--text-2); }
.row-icon .icon { width: 17px; height: 17px; }
.server-avatar { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--r-md); object-fit: cover; background: var(--raised); border: 1px solid var(--line-2); font-size: var(--t-xs); font-weight: 600; }
.event-info { flex: 1; min-width: 0; }
.event-info strong { display: block; font-size: var(--t-md); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-info p { margin-top: 2px; font-size: var(--t-xs); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-meta { flex-shrink: 0; display: grid; justify-items: end; gap: 2px; font-size: var(--t-xs); color: var(--muted); text-align: right; }
.event-figure { font-size: var(--t-md); font-weight: 600; color: var(--text); }
.event-figures { display: flex; gap: var(--s5); }
.event-figures strong { color: var(--text); font-weight: 600; }

.detail-list { display: grid; margin: 0; }
.detail-row { display: flex; justify-content: space-between; gap: var(--s5); padding: var(--s3) 0; }
.detail-row + .detail-row { border-top: 1px solid var(--line); }
.detail-row dt { color: var(--muted); white-space: nowrap; }
.detail-row dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.profile-bio, .name-history { margin: var(--s2) 0 var(--s3); padding: var(--s4); border-radius: var(--r-lg); background: var(--cell); border: 1px solid var(--line); }
.profile-bio > span, .name-history > span { font-size: var(--t-xs); color: var(--muted); }
.profile-bio p { margin-top: 6px; max-width: 70ch; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.name-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s2); }
.name-chip { max-width: 180px; padding: 3px var(--s2); border-radius: 6px; border: 1px solid var(--line-2); font-size: var(--t-sm); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.empty-state { display: flex; align-items: center; gap: var(--s4); padding: var(--s4) 0; }
.empty-state h4 { font-weight: 600; }
.empty-state p { margin-top: 2px; max-width: 60ch; font-size: var(--t-sm); color: var(--muted); }

.live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 500; color: var(--text); }
.live-pill .status-dot { animation: pulse 1.6s var(--ease) infinite; }
.live-wave { display: flex; align-items: center; justify-content: center; gap: 2px; }
.live-wave i { width: 2px; height: 8px; border-radius: 2px; background: var(--online); animation: wave 1.2s ease-in-out infinite; }
.live-wave i:nth-child(2) { height: 14px; animation-delay: .2s; }
.live-wave i:nth-child(3) { height: 10px; animation-delay: .4s; }
.live-wave i:nth-child(4) { height: 12px; animation-delay: .6s; }
@keyframes wave { 50% { transform: scaleY(.45); opacity: .5; } }

/* ── Messages ── */
.message-item { padding: var(--s4) 0; content-visibility: auto; contain-intrinsic-size: auto 140px; }
.message-heading { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s3); }
.message-content { padding-left: 52px; max-width: calc(70ch + 52px); white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
.message-unavailable { padding-left: 52px; font-size: var(--t-sm); color: var(--muted); font-style: italic; }
.message-embed { display: grid; gap: var(--s1); margin: var(--s3) 0 0 52px; padding: var(--s3); border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--cell); }
.message-embed .message-content { padding-left: 0; }
.message-embed > span, .message-embed > small { font-size: var(--t-xs); color: var(--muted); }
.message-files { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--s3) 0 0 52px; }
.message-file { display: inline-flex; align-items: center; gap: 6px; padding: var(--s1) var(--s3); border-radius: var(--r-sm); border: 1px solid var(--line-2); font-size: var(--t-xs); color: var(--text-2); overflow-wrap: anywhere; }
.message-file .icon { width: 13px; height: 13px; }
.message-file small { color: var(--muted); }
.message-footer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s4); margin: var(--s3) 0 0 52px; font-size: var(--t-xs); color: var(--muted); }
.message-footer > span:first-child { color: var(--text-2); }
.message-jump { margin-left: auto; font-weight: 600; color: var(--text); transition: color var(--fast) var(--ease); }
.message-jump:hover { color: var(--light-hover); text-decoration: underline; text-underline-offset: 3px; }

/* ── Hours ── */
.hours-layout { display: grid; grid-template-columns: 1fr 260px; gap: var(--s8); align-items: center; padding: var(--s2) 0; }
.clock-chart { display: block; width: 100%; max-width: 330px; margin: 0 auto; }
.chart-title, .chart-center-title { font: 500 10px var(--font); fill: var(--muted); }
.chart-center-value { font: 600 24px var(--font-display); fill: var(--text); }
.chart-legend { display: flex; justify-content: center; gap: var(--s5); margin-top: var(--s2); font-size: var(--t-xs); color: var(--muted); }
.legend-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; background: var(--chart-2); }
.legend-dot.light { background: var(--chart-1); }

/* ── History & timeline ── */
.change-row { padding: var(--s3) 0; }
.change-row + .change-row { border-top: 1px solid var(--line); }
.change-top { display: flex; justify-content: space-between; gap: var(--s3); }
.change-top time { font-size: var(--t-xs); color: var(--muted); }
.change-values { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); font-size: var(--t-sm); }
.change-before { color: var(--muted); text-decoration: line-through; overflow-wrap: anywhere; }
.change-arrow { color: var(--faint); }
.change-after { padding: 2px var(--s2); border-radius: 6px; background: var(--raised); overflow-wrap: anywhere; }
.timeline .event-row { position: relative; }
.timeline .event-row:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 50px; bottom: -12px; width: 1px; background: var(--line-2); }

.limited-notice { display: flex; align-items: center; gap: var(--s3); margin: var(--s2) 0; padding: var(--s3) var(--s4); border-radius: var(--r-md); border: 1px solid var(--line-2); font-size: var(--t-sm); color: var(--text-2); }

/* ── Welcome sections ── */
.steps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s14); align-items: start; margin-top: var(--s28); }
.steps-copy h2 { font: 600 var(--t-section)/1.06 var(--font-display); letter-spacing: -.04em; text-wrap: balance; }
.steps-copy p { margin-top: var(--s5); max-width: 40ch; color: var(--muted); }
.steps-copy .text-link { margin-top: var(--s6); }
.step-list { display: grid; gap: var(--s3); }
.step-list li { display: flex; align-items: center; gap: var(--s5); padding: var(--s5) var(--s6); border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line-2); }
.step-num { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); font-size: var(--t-xs); color: var(--muted); }
.step-list h3 { font: 600 var(--t-lg)/1.3 var(--font-display); letter-spacing: -.02em; }
.step-list p { margin-top: var(--s1); font-size: var(--t-sm); color: var(--muted); }

/* ── Footer ── */
.site-footer { margin-top: var(--s28); border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(11, 11, 11, .4), #060606 60%); font-size: var(--t-sm); color: var(--muted); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: var(--s14) var(--s8); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: var(--s10); }
.footer-about p { margin-top: var(--s5); max-width: 36ch; line-height: 1.7; }
.footer-social { display: flex; gap: var(--s2); margin-top: var(--s6); }
.footer-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-md); background: var(--cell); border: 1px solid var(--line); color: var(--muted); transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.footer-social a:hover { color: var(--text); border-color: var(--line-2); transform: translateY(-2px); }
.footer-social svg, .footer-info-icon svg, .footer-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.footer-col { display: grid; align-content: start; gap: var(--s4); }
.footer-col h2 { margin-bottom: var(--s1); font: 700 11px/1.3 var(--font-display); letter-spacing: .12em; text-transform: uppercase; }
.footer-col h2.tone-1 { color: var(--accent); }
.footer-col h2.tone-2 { color: var(--accent-2); }
.footer-col h2.tone-3 { color: var(--accent-3); }
.footer-col a { width: fit-content; font-weight: 550; color: var(--text-2); transition: color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.footer-col a:hover { color: var(--text); transform: translateX(2px); }
.footer-col .footer-cta { display: inline-flex; align-items: center; gap: var(--s2); margin-top: var(--s2); padding: 9px var(--s4); border-radius: var(--r-md); background: var(--light); color: var(--on-light); font-size: var(--t-xs); font-weight: 650; box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 8px 22px -10px rgba(228, 228, 228, .55); }
.footer-col .footer-cta:hover { color: var(--on-light); background: var(--light-hover); transform: translateY(-1px); }
.footer-col code, .doc code { padding: 1px 6px; border-radius: 6px; background: var(--cell); border: 1px solid var(--line); font: 500 .92em/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--text-2); }
.footer-bottom { border-top: 1px solid var(--line); background: #050505; }
.footer-bottom-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5) var(--s10); padding-block: var(--s6); }
.footer-info { display: flex; align-items: center; gap: var(--s3); }
.footer-info-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-md); background: var(--cell); border: 1px solid var(--line); color: var(--text-2); }
.footer-info small { display: block; font: 700 10px/1.3 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.footer-info span { color: var(--text-2); font-weight: 550; }
.footer-legal { display: grid; gap: 2px; margin-left: auto; text-align: right; font-size: var(--t-xs); }
.footer-legal strong { font: 700 11px/1.3 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }

/* ── Section pages (placeholders) ── */
.section-hero { display: flex; flex-direction: column; align-items: center; padding: var(--s20) 0 var(--s10); text-align: center; }
.section-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-lg); background: radial-gradient(circle at 30% 20%, rgba(163, 163, 163, .28), var(--cell) 70%); border: 1px solid rgba(163, 163, 163, .3); color: var(--accent); box-shadow: 0 12px 40px -12px rgba(163, 163, 163, .6); }
.section-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.section-eyebrow { margin-top: var(--s6); font: 700 11px/1.3 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.section-hero h1 { margin-top: var(--s3); font: 700 clamp(40px, 6vw, 64px)/1.04 var(--font-display); letter-spacing: -.045em; }
.section-hero .intro-copy { max-width: 56ch; margin-inline: auto; }
.soon-pill { display: inline-flex; align-items: center; gap: var(--s2); margin-top: var(--s6); padding: 6px var(--s4); border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--cell); font-size: var(--t-xs); color: var(--text-2); }
.section-preview { max-width: 900px; margin: 0 auto; padding: var(--s2); overflow: hidden; }
.section-preview-head { display: grid; grid-template-columns: 1fr 120px 100px; gap: var(--s4); padding: var(--s3) var(--s5); font: 700 10px/1.3 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.section-preview-head span:not(:first-child) { text-align: right; }
.skeleton-list { display: grid; gap: 2px; -webkit-mask-image: linear-gradient(180deg, #000000 40%, transparent); mask-image: linear-gradient(180deg, #000000 40%, transparent); }
.skeleton-row { display: grid; grid-template-columns: 28px 36px 1fr 120px 100px; align-items: center; gap: var(--s4); padding: var(--s3) var(--s5); border-radius: var(--r-md); background: var(--cell); }
.skeleton-rank { font-size: var(--t-xs); color: var(--faint); }
.skeleton-avatar { width: 36px; height: 36px; border-radius: 50%; }
.skeleton-line { height: 10px; border-radius: 5px; }
.skeleton-line.w-1 { width: 46%; } .skeleton-line.w-2 { width: 62%; } .skeleton-line.w-3 { width: 38%; }
.skeleton-pill { justify-self: end; width: 72px; height: 10px; border-radius: 5px; }
.skeleton-pill.short { width: 48px; }
.skeleton-avatar, .skeleton-line, .skeleton-pill { background: linear-gradient(90deg, var(--raised) 0%, var(--hover) 50%, var(--raised) 100%) 0 0 / 200% 100%; animation: shimmer 1.8s var(--ease) infinite; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Information pages ── */
.doc { max-width: 820px; }
.doc-head { padding: var(--s20) 0 var(--s10); border-bottom: 1px solid var(--line); }
.doc-head h1 { margin-top: 0; font-size: clamp(40px, 6vw, 64px); }
.doc-head .intro-copy { max-width: 60ch; }
.doc-updated { margin-top: var(--s4); font-size: var(--t-xs); color: var(--muted); }
.doc-notice { margin-top: var(--s6); padding: var(--s4) var(--s5); border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--cell); color: var(--text-2); line-height: 1.7; }
.doc-notice strong { color: var(--text); font-weight: 600; }
.doc-details { display: grid; gap: var(--s4); margin: var(--s5) 0; }
.doc-details > div { display: grid; grid-template-columns: minmax(160px, 1fr) 2fr; gap: var(--s3); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.doc-details dt, .doc-pending { color: var(--muted); }
.doc-details dd { min-width: 0; overflow-wrap: anywhere; }
.doc-section { padding: var(--s10) 0; border-bottom: 1px solid var(--line); }
.doc-section h2 { margin-bottom: var(--s4); font: 600 var(--t-xl)/1.25 var(--font-display); letter-spacing: -.025em; }
.doc-section p { max-width: 70ch; color: var(--text-2); line-height: 1.7; }
.doc-section p + p, .doc-section p + .doc-table, .doc-table + p, .doc-section .doc-code + p, .doc-section p + .doc-code { margin-top: var(--s4); }
.doc-list, .doc-points { display: grid; gap: var(--s3); margin-top: var(--s4); max-width: 70ch; color: var(--text-2); line-height: 1.65; }
.doc-list li { position: relative; padding-left: var(--s5); }
.doc-list li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.doc-points li { padding: var(--s4) var(--s5); border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line-2); }
.doc-points strong { color: var(--text); font-weight: 600; }
.doc-table { margin-top: var(--s4); overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--panel); }
.doc-table table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.doc-table th, .doc-table td { padding: var(--s3) var(--s4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc-table tr:last-child th, .doc-table tr:last-child td { border-bottom: 0; }
.doc-table thead th { font-weight: 600; color: var(--muted); font-size: var(--t-xs); background: var(--cell); }
.doc-table tbody th { font-weight: 600; color: var(--text); white-space: nowrap; }
.doc-table td { color: var(--text-2); }
.doc-table td:last-child { white-space: nowrap; color: var(--text); }
.doc-code { margin-top: var(--s4); padding: var(--s4) var(--s5); overflow-x: auto; border-radius: var(--r-lg); background: var(--cell); border: 1px solid var(--line-2); }
.doc-code code { padding: 0; border: 0; background: none; font-size: var(--t-sm); line-height: 1.7; color: var(--text); }
.has-profile .site-footer { margin-top: var(--s10); }

/* ── Overlays ── */
.loading-overlay { position: fixed; bottom: var(--s8); left: 50%; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s5); border-radius: var(--r-md); background: var(--raised); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); font-size: var(--t-sm); }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(242, 242, 242, .18); border-top-color: var(--text); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; bottom: var(--s8); right: var(--s8); z-index: 40; padding: var(--s3) var(--s5); border-radius: var(--r-md); background: var(--raised); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); font-size: var(--t-sm); }
dialog { width: min(460px, calc(100% - 32px)); padding: var(--s6); border-radius: var(--r-xl); background: var(--panel); color: var(--text); border: 1px solid var(--line-2); box-shadow: 0 40px 120px rgba(0, 0, 0, .65); overscroll-behavior: contain; }
dialog::backdrop { background: rgba(6, 6, 6, .78); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s4); font: 600 var(--t-xl)/1.2 var(--font-display); letter-spacing: -.025em; }
.dialog-copy { line-height: 1.6; color: var(--muted); }
.dialog-copy p { margin-bottom: var(--s3); }
.dialog-copy strong { font-weight: 600; color: var(--text); }
.dialog-details { display: grid; margin-top: var(--s3); border-top: 1px solid var(--line); }
.dialog-details > div { display: flex; justify-content: space-between; gap: var(--s5); padding: 10px 0; border-bottom: 1px solid var(--line); }
.dialog-details > div:last-child { border-bottom: 0; }
.dialog-details strong { font-weight: 600; color: var(--text); }

/* White stencil icons, a black machined frame and a restrained silver seam. */
.metric-card-icon, .stat-badge, .rhythm-badge, .row-icon, .sample-events .row-icon {
  color: var(--icon-face); background: var(--icon-surface); border: 2px solid var(--icon-frame);
  box-shadow: 0 1px 0 #ffffff28 inset, 0 0 0 1px #ffffff12, 0 3px 8px #0006;
}
.metric-card-icon svg, .stat-badge svg, .rhythm-badge svg, .row-icon > .icon { filter: drop-shadow(0 1px 0 #000); }
.nav-cta > svg { color: var(--icon-face); background: var(--icon-surface); border: 1px solid var(--icon-frame); border-radius: 6px; padding: 4px; width: 26px; height: 26px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .two-col, .hours-layout, .steps { grid-template-columns: 1fr; }
  .steps { gap: var(--s8); }
}
@media (max-width: 1120px) {
  .nav-toggle { display: grid; }
  .nav-actions { margin-left: auto; }
  .nav-links { position: absolute; top: calc(100% + 1px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: var(--s2) var(--s4) var(--s4); background: rgba(11, 11, 11, .97); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), visibility var(--fast); }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-link { min-height: 46px; padding: 0 var(--s3); border-radius: var(--r-md); font-size: var(--t-md); }
  .nav-link::after { display: none; }
  .nav-link.is-active { background: rgba(163, 163, 163, .1); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s8) var(--s5); }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav { min-height: 64px; padding: var(--s3) var(--s4); gap: var(--s3); }
  .nav-cta span { display: none; }
  .nav-cta { width: 38px; padding: 0; justify-content: center; }
  .connection-pill { padding: 0 var(--s3); }
  #connection-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .page { padding: 0 var(--s4); }
  .hero { padding: var(--s14) 0 var(--s10); }
  .intro-copy { font-size: var(--t-md); }
  .intro-copy br { display: none; }
  .hero-points { gap: var(--s1) var(--s5); font-size: var(--t-xs); }
  .sample-body { padding: var(--s5); }
  .sample-heading h2 { font-size: 23px; }
  .sample-period { padding: var(--s2); }
  .sample-metric { padding-inline: var(--s4); }
  .sample-value { font-size: 26px; }
  .sample-bottom { grid-template-columns: 1fr; }
  .sample-events { padding-right: 0; border-right: 0; }
  .sample-guilds { margin-top: var(--s5); padding: var(--s5) 0 0; border-top: 1px solid var(--line); }
  .sample-footer { padding-inline: var(--s5); }
  .panel-body { padding: var(--s5) var(--s4) var(--s2); }
  .profile-cover { margin: calc(var(--s5) * -1) calc(var(--s4) * -1) var(--s5); }
  .panel-bar { flex-wrap: wrap; padding: var(--s3) var(--s4); }
  .panel-brand { white-space: nowrap; }
  .panel-foot { padding: var(--s4); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: var(--s4); }
  .stat strong { font-size: var(--t-xl); white-space: nowrap; }
  .stats-stack { grid-template-columns: 1fr; }
  .who-status { flex-basis: 100%; }
  .event-figures { flex-direction: column; gap: 0; }
  .message-content, .message-unavailable { padding-left: 0; }
  .message-embed, .message-files, .message-footer { margin-left: 0; }
  .steps { margin-top: var(--s20); }
  .step-list li { padding: var(--s4); }
  .site-footer { margin-top: var(--s20); }
  .footer-inner { padding: var(--s10) var(--s4); }
  .footer-bottom-row { padding-block: var(--s5); }
  .footer-legal { margin-left: 0; text-align: left; }
  .section-hero { padding: var(--s14) 0 var(--s8); }
  .section-preview-head { grid-template-columns: 1fr 80px; }
  .section-preview-head span:last-child, .skeleton-pill.short { display: none; }
  .skeleton-row { grid-template-columns: 22px 32px 1fr 80px; gap: var(--s3); padding: var(--s3); }
  .skeleton-avatar { width: 32px; height: 32px; }
  .doc-head { padding: var(--s14) 0 var(--s8); }
  .doc-section { padding: var(--s8) 0; }
  .toast { left: var(--s4); right: var(--s4); bottom: var(--s4); text-align: center; }
}
@media (max-width: 520px) {
  .who.has-ultra { display: grid; grid-template-columns: minmax(0, 1fr); }
  .who.has-ultra .avatar-stage { justify-self: center; }
  .who.has-ultra .who-text { text-align: center; }
  .who.has-ultra .who-text h2, .who.has-ultra .handle, .who.has-ultra .joined-date, .who.has-ultra .profile-badges, .who.has-ultra .who-status { justify-content: center; }
  .doc-details > div { grid-template-columns: 1fr; gap: var(--s1); }
  .sample-bar-caption, .sample-bar-divider { display: none; }
  .panel-sample .panel-bar { min-height: 58px; padding: var(--s4) var(--s5); }
  .sample-metrics { grid-template-columns: 1fr; margin-block: var(--s5) var(--s6); }
  .sample-metric { min-height: 176px; }
  .sample-chart-head { align-items: flex-start; gap: var(--s2); }
  .sample-chart-head p { max-width: 150px; font-size: 11px; }
  .sample-peak { gap: 4px; padding: 5px var(--s2); font-size: 10px; }
  .sample-peak .icon { display: none; }
  .plot-legend { gap: var(--s3); font-size: 10px; }
  .plot-legend .plot-zone { display: none; }
  .plot-grid { grid-template-columns: 22px minmax(0, 1fr) 22px; }
  .plot-canvas, .plot-scale { height: 160px; }
  .plot-scale { font-size: 9px; }
  .plot-xaxis { font-size: 9px; }
  .sample-footer { flex-wrap: wrap; gap: 6px; }
}
@media (pointer: coarse) {
  .plot-pin::before { inset: -17px; }
  .icon-button { width: 44px; height: 44px; }
  .nav-link, .tab-button, .period-label, .id-button, .link-button, .text-link { min-height: 44px; }
  .button-small { min-height: 44px; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motion-ready .motion-item { opacity: 1; transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

