:root {
  --bg: #07080c;
  --bg-2: #0c0e14;
  --panel: #11141c;
  --panel-2: #161a24;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eef0f5;
  --muted: #9aa1b2;
  --dim: #6b7285;
  --gold: #f5c518;
  --gold-2: #ffd84d;
  --orange: #ff7a18;
  --blue: #3d8bff;
  --green: #2fd480;
  --red: #ff4d5e;
  --discord: #5865f2;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.12; letter-spacing: .01em; margin: 0 0 .5em; text-transform: uppercase; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 700; letter-spacing: .005em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: 1.22rem; letter-spacing: .03em; }
p { margin: 0 0 1em; }
code, kbd { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9em; }
kbd { padding: .1em .45em; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; background: var(--panel-2); }
::selection { background: rgba(245, 197, 24, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--gold); color: #111; border-radius: 10px; font-weight: 700; transition: top .2s; }
.skip:focus { top: 16px; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--gold); font: 600 .8rem/1 var(--body); letter-spacing: .22em; text-transform: uppercase; }
.kicker::before { content: ""; width: 26px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--orange)); border-radius: 2px; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: #cfd3dd; max-width: 60ch; }

/* Buttons */
.btn {
  --b: var(--panel-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--b); color: var(--text);
  font: 600 .95rem/1 var(--body); letter-spacing: .01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, background .18s, border-color .18s, box-shadow .18s, color .18s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, .28); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .88rem; border-radius: 10px; }
.btn-sm svg { width: 18px; height: 18px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.02rem; border-radius: 14px; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, #e9a700); color: #14110a; border-color: transparent; box-shadow: 0 10px 30px rgba(245, 197, 24, .28), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-gold:hover { box-shadow: 0 14px 38px rgba(245, 197, 24, .4), inset 0 1px 0 rgba(255, 255, 255, .45); border-color: transparent; }
.btn-ghost { background: rgba(255, 255, 255, .04); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); }
.btn-discord { background: var(--discord); border-color: transparent; color: #fff; }
.btn-discord:hover { background: #4752e0; border-color: transparent; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 600; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .18s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: linear-gradient(180deg, rgba(7, 8, 12, .85), rgba(7, 8, 12, 0));
  transition: background .25s, box-shadow .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, .page-sub .site-header { background: rgba(7, 8, 12, .86); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(245, 197, 24, .25)); }
.brand-text { display: flex; flex-direction: column; line-height: .95; font-family: var(--head); text-transform: uppercase; }
.brand-text b { font-size: 1.28rem; font-weight: 700; letter-spacing: .06em; }
.brand-text small { font-size: .78rem; font-weight: 600; letter-spacing: .42em; color: var(--gold); margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav > a:not(.btn) { position: relative; padding: 10px 13px; color: #c8ccd6; font-weight: 500; font-size: .94rem; border-radius: 10px; transition: color .18s, background .18s; }
.site-nav > a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .05); }
.site-nav > a.active { color: #fff; }
.site-nav > a.active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--gold); }
.nav-cta { margin-left: 10px; }
.nav-drop { position: relative; }
.nav-drop-btn { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 10px 11px 10px 13px; border: 0; border-radius: 10px; background: none; color: #c8ccd6; font: 500 .94rem/1.65 var(--body); cursor: pointer; transition: color .18s, background .18s; }
.nav-drop-btn svg { width: 15px; height: 15px; transition: transform .2s; }
.nav-drop-btn:hover, .nav-drop.open .nav-drop-btn { color: #fff; background: rgba(255, 255, 255, .05); }
.nav-drop.open .nav-drop-btn svg { transform: rotate(180deg); }
.nav-drop-btn.active { color: #fff; }
.nav-drop-btn.active::after { content: ""; position: absolute; left: 13px; right: 26px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--gold); }
.nav-drop-menu { position: absolute; top: calc(100% + 10px); left: 50%; width: 330px; padding: 8px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(14, 16, 23, .98); box-shadow: var(--shadow); transform: translate(-50%, -6px); opacity: 0; visibility: hidden; transition: transform .18s, opacity .18s, visibility .18s; z-index: 30; }
.nav-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-drop.open .nav-drop-menu { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.nav-drop-menu a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: var(--text); transition: background .15s; }
.nav-drop-menu a:hover, .nav-drop-menu a:focus-visible { background: rgba(255, 255, 255, .06); }
.nav-drop-menu a[aria-current="page"] { background: rgba(245, 197, 24, .08); }
.nav-drop-menu b { display: block; font-size: .95rem; }
.nav-drop-menu small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.nav-app-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; font: 800 .78rem/1 var(--body); letter-spacing: .02em; }
.nav-app-pwx { background: linear-gradient(145deg, #1c1c1e, #000); color: var(--gold); border: 1px solid rgba(245, 197, 24, .35); }
.nav-app-mail { background: linear-gradient(145deg, #3d8bff, #1f5fd1); color: #fff; font-size: 1.2rem; }
.nav-drop-all { justify-content: center; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px !important; color: var(--gold) !important; font-size: .88rem; font-weight: 600; }
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255, 255, 255, .04); cursor: pointer; }
.nav-toggle i { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s, opacity .2s, top .25s; }
.nav-toggle i:nth-of-type(1) { top: 14px; }
.nav-toggle i:nth-of-type(2) { top: 21px; }
.nav-toggle i:nth-of-type(3) { top: 28px; }
.nav-open .nav-toggle i:nth-of-type(1) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle i:nth-of-type(2) { opacity: 0; }
.nav-open .nav-toggle i:nth-of-type(3) { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: min(100vh, 980px); min-height: min(100svh, 980px); display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 90px; isolation: isolate; overflow: hidden; }
.hero-bg, .community-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img, .community-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(900px 500px at 78% 40%, rgba(245, 197, 24, .12), transparent 60%),
  linear-gradient(90deg, rgba(7, 8, 12, .96) 0%, rgba(7, 8, 12, .82) 42%, rgba(7, 8, 12, .35) 100%),
  linear-gradient(0deg, var(--bg) 0%, rgba(7, 8, 12, 0) 38%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 40px; }
.hero h1 { margin-bottom: 22px; text-shadow: 0 6px 40px rgba(0, 0, 0, .5); }
.hero h1 .gold { background: linear-gradient(100deg, var(--gold-2), var(--gold) 40%, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; margin-bottom: 22px; border: 1px solid rgba(245, 197, 24, .3); border-radius: 999px; background: rgba(245, 197, 24, .08); color: #f7dc79; font-size: .84rem; font-weight: 600; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(245, 197, 24, .2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 28px; }
.hero-logo { justify-self: center; position: relative; }
.hero-logo::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(245, 197, 24, .35), transparent 70%); filter: blur(30px); z-index: -1; }
.hero-logo img { width: min(400px, 34vw); filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px; }
.scroll-hint i { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: scroll 1.8s ease-in-out infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Server status card */
.server-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 18px; align-items: center; max-width: 620px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 18px; background: rgba(12, 14, 20, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.server-state { display: flex; align-items: center; gap: 14px; min-width: 0; }
.server-state > div { min-width: 0; }
.server-state strong { display: block; font-size: 1rem; white-space: nowrap; }
.server-state small { display: block; color: var(--muted); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pulse { position: relative; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--dim); }
.is-online .pulse { background: var(--green); }
.is-online .pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--green); animation: ping 1.8s ease-out infinite; }
.is-offline .pulse { background: var(--red); }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.server-meter { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; order: 3; }
.server-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--orange)); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.connect-copy { display: inline-flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px dashed rgba(245, 197, 24, .45); border-radius: 10px; background: rgba(245, 197, 24, .06); color: #f6dd83; cursor: pointer; transition: background .18s, border-color .18s; }
.connect-copy:hover { background: rgba(245, 197, 24, .12); border-color: var(--gold); }
.connect-copy svg { width: 17px; height: 17px; flex: none; }
.connect-copy.copied { border-style: solid; border-color: var(--green); color: var(--green); background: rgba(47, 212, 128, .08); }
.connect-copy.small { margin-top: 4px; }

/* Sections */
.section { position: relative; padding: clamp(70px, 9vw, 120px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-head.row h2 { margin: 0; }

/* Alpha */
.alpha { padding-top: 40px; }
.alpha-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.phases { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.phase { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.phase::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); }
.phase-closed { --c: var(--blue); }
.phase-open { --c: var(--gold); }
.phase-tag { color: var(--c); font: 600 .78rem/1.2 var(--body); letter-spacing: .18em; text-transform: uppercase; }
.phase strong { font: 700 2rem/1.1 var(--head); letter-spacing: .02em; }
.phase-note { color: var(--muted); font-size: .9rem; }
.phase-state { margin-top: 10px; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: .8rem; font-weight: 600; color: #d6d9e2; }
.phase-state:empty { display: none; }
.phase.live .phase-state { background: rgba(47, 212, 128, .14); color: var(--green); }
.alpha-art, .showcase-art { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: var(--panel); }
.alpha-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Features */
.features { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .015) 30%, transparent); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { position: relative; padding: 26px 24px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), var(--bg-2)); transition: transform .25s, border-color .25s, box-shadow .25s; overflow: hidden; }
.feature::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 197, 24, .12), transparent 70%); opacity: 0; transition: opacity .3s; }
.feature:hover { transform: translateY(-4px); border-color: rgba(245, 197, 24, .35); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.feature:hover::after { opacity: 1; }
.feature svg { width: 46px; height: 46px; padding: 10px; margin-bottom: 18px; border-radius: 12px; background: rgba(245, 197, 24, .1); color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Showcase */
.showcase-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.showcase-art img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; color: #d3d7e0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 7px; background: rgba(245, 197, 24, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5c518' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { position: relative; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.steps p { color: var(--muted); font-size: .95rem; }
.step-no { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; background: linear-gradient(135deg, var(--gold), var(--orange)); color: #15110a; font: 700 1.3rem/1 var(--head); }

/* Feed (Discord content) */
.feed { display: grid; gap: 18px; }
.feed.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post { min-width: 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--muted); font-size: .84rem; }
.post-meta img { width: 28px; height: 28px; border-radius: 50%; }
.post-meta b { color: var(--text); font-weight: 600; }
.post-meta time { margin-left: auto; white-space: nowrap; }
.feed.compact .post { display: flex; flex-direction: column; max-height: 420px; overflow: hidden; position: relative; }
.feed.compact .post::after { content: ""; position: absolute; inset: auto 0 0; height: 70px; background: linear-gradient(0deg, var(--panel), rgba(17, 20, 28, 0)); pointer-events: none; }
.feed.compact .post.short::after { display: none; }
.feed-loading { grid-column: 1 / -1; display: grid; grid-template-columns: inherit; gap: 18px; }
.feed-loading span { display: block; height: 220px; border-radius: var(--radius); background: linear-gradient(100deg, var(--panel) 30%, var(--panel-2) 50%, var(--panel) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
.feed:not(.compact) .feed-loading { grid-template-columns: 1fr; }
.feed:not(.compact) .feed-loading span:nth-child(n+3) { display: none; }
@keyframes shimmer { to { background-position: -300% 0; } }
.feed-empty { grid-column: 1 / -1; padding: 40px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); text-align: center; color: var(--muted); }
.feed-empty a { color: var(--gold); font-weight: 600; }
.feed-more { justify-self: center; }

/* Rendered Discord markdown */
.md { color: #d8dbe3; overflow-wrap: anywhere; }
.md > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 .6em; }
.md a { color: #7cb4ff; text-decoration: underline; text-decoration-color: rgba(124, 180, 255, .35); text-underline-offset: 2px; }
.md a:hover { text-decoration-color: currentColor; }
.md strong { color: #fff; font-weight: 700; }
.md h1, .md h2, .md h3 { margin: .8em 0 .4em; color: #fff; text-transform: none; letter-spacing: 0; font-family: var(--body); font-weight: 700; }
.md h1 { font-size: 1.45rem; }
.md h2 { font-size: 1.25rem; }
.md h3 { font-size: 1.08rem; }
.md > h1:first-child, .md > h2:first-child, .md > h3:first-child { margin-top: 0; }
.md small, .md .subtext { display: block; color: var(--dim); font-size: .82rem; }
.md ul, .md ol { margin: .3em 0 .8em; padding-left: 1.4em; }
.md li { margin: .2em 0; }
.md li::marker { color: var(--gold); }
.md blockquote { margin: .5em 0; padding: 2px 0 2px 14px; border-left: 4px solid #4e5058; color: #c7cad3; }
.md code { padding: .12em .38em; border-radius: 5px; background: #1e2129; color: #f0f1f4; }
.md pre { margin: .6em 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #0b0d12; overflow-x: auto; }
.md pre code { padding: 0; background: none; font-size: .86rem; line-height: 1.5; }
.md .mention { padding: 0 3px; border-radius: 4px; background: rgba(88, 101, 242, .22); color: #c9cdfb; font-weight: 500; }
.md .mention.role { background: color-mix(in srgb, var(--mention, #5865f2) 20%, transparent); color: var(--mention, #c9cdfb); }
.md .spoiler { border-radius: 4px; background: #2b2d33; color: transparent; cursor: pointer; transition: color .2s, background .2s; }
.md .spoiler.open, .md .spoiler:focus { background: rgba(255, 255, 255, .08); color: inherit; }
.md .emoji { display: inline-block; width: 1.35em; height: 1.35em; vertical-align: -.3em; object-fit: contain; }
.md .emoji.big { width: 2.6em; height: 2.6em; }
.md time.ts { padding: 0 3px; border-radius: 4px; background: rgba(255, 255, 255, .06); }
.md u { text-decoration-thickness: 1px; }
.embed { --embed: #4e5058; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 16px; margin: 10px 0 0; padding: 14px 16px 16px 18px; border-radius: 8px; background: #14171f; border: 1px solid var(--line); border-left: 4px solid var(--embed); max-width: 640px; }
.embed > * { grid-column: 1; }
.embed-author { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .86rem; font-weight: 600; color: #fff; }
.embed-author img { width: 24px; height: 24px; border-radius: 50%; }
.embed-title { margin-bottom: 8px; font-weight: 700; color: #fff; font-size: 1.02rem; }
.embed-title a { color: #7cb4ff; }
.embed-body { font-size: .94rem; }
.embed-title { font-family: var(--body); text-transform: none; letter-spacing: 0; line-height: 1.35; }
.embed-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; margin-top: 10px; }
.embed-field { grid-column: 1 / -1; min-width: 0; font-size: .92rem; }
.embed-field.inline { grid-column: auto; }
.embed-field-name { margin-bottom: 2px; font-weight: 700; color: #fff; }
.embed-thumb { grid-column: 2; grid-row: 1 / span 4; width: 80px; height: 80px; object-fit: cover; border-radius: 6px; }
.embed-image { grid-column: 1 / -1; margin-top: 14px; border-radius: 6px; max-height: 420px; width: auto; }
.embed-footer { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--dim); font-size: .8rem; }
.embed-footer img { width: 20px; height: 20px; border-radius: 50%; }
.embed-field-value p { margin: 0 0 .3em; }
.msg-text + .embed { margin-top: 12px; }
.msg-media { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.msg-media img { max-height: 360px; width: auto; border-radius: 8px; border: 1px solid var(--line); }
.msg-files { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; }
.msg-files a { display: inline-flex; padding: 9px 13px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel-2); font-size: .9rem; color: #7cb4ff; text-decoration: none; }
.feed.compact .embed { max-width: none; }
.feed.compact .embed-image, .feed.compact .msg-media, .feed.compact .embed-thumb { display: none; }
.feed.compact .embed-fields { grid-template-columns: 1fr; }

/* Community */
.community { position: relative; padding: clamp(90px, 12vw, 150px) 0; isolation: isolate; overflow: hidden; text-align: center; }
.community::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 400px at 50% 50%, rgba(7, 8, 12, .55), rgba(7, 8, 12, .92)), linear-gradient(180deg, var(--bg), rgba(7, 8, 12, .2) 30%, rgba(7, 8, 12, .2) 70%, var(--bg)); }
.community-inner .kicker::after { content: ""; width: 26px; height: 2px; background: linear-gradient(90deg, var(--orange), var(--gold)); border-radius: 2px; }
.community .lead { margin: 0 auto 34px; }
.community-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.community-card { display: flex; align-items: center; gap: 16px; min-width: 300px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: 18px; background: rgba(12, 14, 20, .75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); text-align: left; transition: transform .2s, border-color .2s, background .2s; }
.community-card > svg:first-child { width: 48px; height: 48px; padding: 11px; border-radius: 14px; flex: none; }
.community-card.discord > svg:first-child { background: var(--discord); color: #fff; }
.community-card.topluyo > svg:first-child { background: linear-gradient(135deg, #22c55e, #0ea5e9); color: #fff; }
.community-card span { flex: 1; }
.community-card strong { display: block; font-size: 1.08rem; }
.community-card small { color: var(--muted); }
.community-card .go { width: 22px; height: 22px; color: var(--muted); transition: transform .2s, color .2s; }
.community-card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .3); background: rgba(18, 21, 30, .85); }
.community-card:hover .go { color: #fff; transform: translateX(3px); }

/* Sub pages */
.page-hero { position: relative; padding: calc(var(--header-h) + 60px) 0 50px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 300px at 15% 0%, rgba(245, 197, 24, .13), transparent 70%), radial-gradient(600px 300px at 90% 20%, rgba(255, 122, 24, .08), transparent 70%); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/assets/img/city-1200.webp") center 60% / cover; opacity: .12; mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 12px; }
.page-hero .lead { margin: 0; }
.page-body { padding: 44px 0 100px; }
.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.layout.single { grid-template-columns: minmax(0, 860px); justify-content: center; }
.side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 6px; }
.side a, .tabs button { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--muted); font-weight: 600; font-size: .94rem; text-align: left; cursor: pointer; transition: background .18s, color .18s, border-color .18s; }
.side a:hover, .tabs button:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.side a.active, .tabs button[aria-selected="true"] { color: #fff; border-color: rgba(245, 197, 24, .35); background: rgba(245, 197, 24, .08); }
.side a.active::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.tabs { display: inline-flex; gap: 6px; padding: 5px; margin-bottom: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.tabs button { padding: 10px 18px; }
.doc + .doc { margin-top: 56px; }
.doc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.doc-head h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.doc-head .count { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--muted); font-size: .8rem; font-weight: 600; }
.note { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin-bottom: 26px; border: 1px solid rgba(61, 139, 255, .3); border-radius: var(--radius); background: rgba(61, 139, 255, .07); color: #c9dcff; font-size: .94rem; }
.note svg { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--blue); }
.note a { color: #fff; font-weight: 600; text-decoration: underline; }
.prose { color: #d3d7e0; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.prose ul { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--gold); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 28px; align-items: start; }
.card { padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-size: .88rem; font-weight: 600; color: #d6d9e2; }
.field label .opt { color: var(--dim); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); color: var(--text); transition: border-color .18s, box-shadow .18s, background .18s; }
.field textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa1b2' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: #5d6476; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .24); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245, 197, 24, .14); background: #0e1018; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.field .err { min-height: 0; color: #ff8a95; font-size: .82rem; }
.field .err:empty { display: none; }
.field .hint { color: var(--dim); font-size: .8rem; text-align: right; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: #c7cbd5; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); }
.check a { color: var(--gold); text-decoration: underline; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.turnstile { min-height: 65px; }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border-radius: 12px; font-size: .94rem; }
.form-status:empty { display: none; }
.form-status.error { border: 1px solid rgba(255, 77, 94, .35); background: rgba(255, 77, 94, .08); color: #ffb3bb; }
.success { display: none; text-align: center; padding: 30px 10px; }
.success svg { width: 64px; height: 64px; margin: 0 auto 18px; padding: 14px; border-radius: 50%; background: rgba(47, 212, 128, .14); color: var(--green); }
.sent .form { display: none; }
.sent .success { display: block; }
.aside-list { display: grid; gap: 14px; }
.aside-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: border-color .2s; }
a.aside-item:hover { border-color: rgba(255, 255, 255, .24); }
.aside-item svg { width: 40px; height: 40px; flex: none; padding: 9px; border-radius: 11px; background: rgba(245, 197, 24, .1); color: var(--gold); }
.aside-item.discord svg { background: var(--discord); color: #fff; }
.aside-item strong { display: block; margin-bottom: 2px; }
.aside-item p { margin: 0; color: var(--muted); font-size: .9rem; }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) 20px 60px; }
.notfound .code { font: 700 clamp(6rem, 20vw, 12rem)/1 var(--head); background: linear-gradient(180deg, var(--gold), rgba(245, 197, 24, .1)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #05060a; padding: 60px 0 30px; color: var(--muted); font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand p { max-width: 42ch; margin-top: 16px; }
.site-footer h2 { margin-bottom: 14px; font-size: .86rem; letter-spacing: .2em; color: #fff; font-family: var(--body); font-weight: 700; }
.site-footer .footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .84rem; }
.footer-bottom a { color: var(--gold); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; padding: 12px 18px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(17, 20, 28, .95); box-shadow: var(--shadow); font-size: .92rem; font-weight: 600; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: transform .25s, opacity .25s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (min-width: 901px) and (max-width: 1140px) {
  .nav-cta { padding-inline: 11px; }
  .nav-cta-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (max-width: 1060px) {
  .site-nav > a:not(.btn) { padding: 10px 9px; font-size: .9rem; }
  .nav-drop-btn { padding: 10px 7px 10px 9px; font-size: .9rem; }
  .nav-drop-btn.active::after { left: 9px; right: 22px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed.compact { grid-template-columns: 1fr 1fr; }
  .feed.compact .post:nth-child(3) { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; z-index: 2; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 2px;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
    padding: 12px 20px 22px; background: #07080c;
    border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .22s, opacity .22s, visibility .22s;
  }
  .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .nav-open .site-header { background: rgba(7, 8, 12, .97); }
  .site-nav > a:not(.btn) { padding: 14px 12px; font-size: 1.02rem; }
  .site-nav > a.active::after { left: 0; right: auto; top: 14px; bottom: 14px; width: 3px; height: auto; }
  .nav-drop-btn { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.02rem; }
  .nav-drop-btn.active::after { left: 0; right: auto; top: 14px; bottom: 14px; width: 3px; height: auto; }
  .nav-drop-menu { position: static; width: auto; padding: 0 0 6px 10px; border: 0; background: none; box-shadow: none; transform: none; opacity: 1; visibility: visible; display: none; }
  .nav-drop.open .nav-drop-menu { display: block; transform: none; }
  .nav-drop-menu::before { display: none; }
  .nav-cta { margin: 10px 0 0; min-height: 48px; }
  .hero-inner, .alpha-grid, .showcase-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-logo { display: none; }
  .hero::before { background: radial-gradient(600px 400px at 70% 20%, rgba(245, 197, 24, .12), transparent 60%), linear-gradient(180deg, rgba(7, 8, 12, .7), rgba(7, 8, 12, .88) 50%, var(--bg)); }
  .steps { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; gap: 20px; }
  .side { position: sticky; top: var(--header-h); z-index: 5; display: flex; gap: 6px; margin: 0 -20px; padding: 10px 20px; overflow-x: auto; scrollbar-width: none; background: rgba(7, 8, 12, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .side::-webkit-scrollbar { display: none; }
  .side a { flex: none; padding: 9px 14px; border-color: var(--line); }
  .side a.active::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 32px, 1200px); }
  body { font-size: 15.5px; }
  .hero { padding-bottom: 80px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .server-card { grid-template-columns: 1fr; }
  .connect-copy { justify-content: space-between; }
  .connect-copy code { font-size: .82rem; }
  .phases { grid-template-columns: 1fr 1fr; gap: 10px; }
  .phase { padding: 16px; }
  .phase strong { font-size: 1.5rem; }
  .feature-grid, .feed.compact { grid-template-columns: 1fr; }
  .feed.compact .post:nth-child(3) { display: flex; }
  .feature { padding: 22px 20px 20px; }
  .post { padding: 18px; }
  .embed { padding: 12px 12px 14px 14px; }
  .embed-fields { grid-template-columns: 1fr 1fr; }
  .embed-thumb { width: 56px; height: 56px; }
  .community-card { min-width: 0; width: 100%; }
  .form { grid-template-columns: 1fr; }
  .tabs { display: flex; width: 100%; }
  .tabs button { flex: 1; justify-content: center; padding: 10px 8px; }
  .side { margin: 0 -16px; padding: 10px 16px; }
  .footer-grid { gap: 28px; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Account (/hesabim) ---------- */
[hidden] { display: none !important; }
.acc-loading { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.spinner { width: 20px; height: 20px; border: 2px solid var(--line-2); border-top-color: var(--gold); border-radius: 50%; animation: acc-spin .8s linear infinite; }
@keyframes acc-spin { to { transform: rotate(360deg); } }
.acc-login { max-width: 640px; display: grid; gap: 16px; justify-items: start; }
.acc-login h2, .acc-empty h2 { margin: 0; }
.acc-perks { display: grid; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; color: #c7cbd5; }
.acc-perks b { display: inline-block; min-width: 104px; color: var(--gold); }
.acc-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 20px; margin-bottom: 18px; }
.acc-avatar { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--gold); }
.acc-who { display: grid; flex: 1; min-width: 140px; }
.acc-char select, .acc-forward input { min-height: 40px; padding: 8px 36px 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); color: var(--text); }
.acc-char select { appearance: none; -webkit-appearance: none; background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa1b2' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 16px no-repeat; }
.acc-forward input { padding-right: 12px; flex: 1; min-width: 200px; }
.acc-char select:focus, .acc-forward input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245, 197, 24, .14); }
.note-ok { border-color: rgba(47, 212, 128, .35); background: rgba(47, 212, 128, .08); color: #bff3d8; }
.note-err { border-color: rgba(255, 77, 94, .35); background: rgba(255, 77, 94, .08); color: #ffc9cf; }
.acc-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.acc-stat { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.acc-stat small { color: var(--dim); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.acc-stat b { font-size: 1.06rem; overflow-wrap: anywhere; }
.gold { color: var(--gold); }
.green { color: var(--green); }
.small { font-size: .86rem; }
.acc-tabs { margin-bottom: 18px; }
.acc-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.acc-mail { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; padding: 20px; }
.acc-mail-side { display: grid; gap: 14px; align-content: start; }
.acc-mail-side .field span { font-size: .82rem; font-weight: 600; color: #d6d9e2; }
.acc-folders { display: grid; gap: 4px; }
.acc-folders button { text-align: left; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-weight: 600; cursor: pointer; }
.acc-folders button:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.acc-folders button[aria-pressed="true"] { background: rgba(245, 197, 24, .1); color: var(--gold); }
.acc-quota { font-size: .82rem; }
.acc-mail-main { min-width: 0; display: grid; gap: 12px; align-content: start; }
.acc-mail-tools { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.acc-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.acc-list-empty { padding: 26px 8px; text-align: center; }
.acc-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; width: 100%; padding: 12px 14px; border-radius: 12px; text-align: left; border: 1px solid transparent; background: none; cursor: pointer; }
.acc-item:hover { background: var(--panel-2); border-color: var(--line); }
.acc-item > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-item-from { font-weight: 600; }
.acc-item-date { font-size: .8rem; text-align: right; }
.acc-item-subject { grid-column: 1 / -1; }
.acc-item-preview { grid-column: 1 / -1; font-size: .86rem; }
.acc-item.unread { background: rgba(245, 197, 24, .05); }
.acc-item.unread .acc-item-from, .acc-item.unread .acc-item-subject { color: var(--text); font-weight: 700; }
.acc-item.unread .acc-item-from::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--gold); vertical-align: middle; }
.acc-more { justify-self: center; }
.acc-read { display: grid; gap: 10px; }
.acc-read h3 { margin: 6px 0 0; font-size: 1.3rem; overflow-wrap: anywhere; }
.acc-read-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.acc-attachments { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.acc-attach { padding: 10px 14px; border: 1px dashed var(--line-2); border-radius: 10px; }
.acc-compose { grid-template-columns: 1fr; }
.acc-compose h3 { margin: 0; }
.acc-forward { margin-top: 18px; display: grid; gap: 10px; }
.acc-forward h3 { margin: 0; }
@media (max-width: 760px) {
  .acc-mail { grid-template-columns: 1fr; }
  .acc-folders { grid-auto-flow: column; }
  .acc-folders button { text-align: center; }
  .acc-mail-tools { justify-content: flex-start; }
}
/* PWX Borsa tablet app (borsa.js) — design follows the in-game pw-banking PWX app */
.pwx { --x-bg: #000; --x-card: #1c1c1e; --x-card-2: #2c2c2e; --x-text: #f5f5f7; --x-muted: rgba(235, 235, 245, .6); --x-line: rgba(84, 84, 88, .55); --x-accent: #0a84ff; --x-up: #30d158; --x-down: #ff453a; --x-gold: #ffd60a; color: var(--x-text); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--body); }
.pwx-device { position: relative; padding: 16px; border-radius: 38px; background: linear-gradient(145deg, #2a2b30, #0d0e11 40%, #1a1b1f); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 90px rgba(0, 0, 0, .6), inset 0 0 0 2px #050506, inset 0 0 0 3px rgba(255, 255, 255, .05); }
.pwx-cam { position: absolute; top: 6px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #1b2a3a; box-shadow: 0 0 0 1.5px #08090b; }
.pwx-screen { position: relative; display: grid; grid-template-rows: auto auto auto auto minmax(0, 1fr); height: clamp(620px, calc(100vh - var(--header-h) - 120px), 820px); overflow: hidden; border-radius: 24px; background: var(--x-bg); isolation: isolate; }
.pwx-status { display: flex; align-items: center; justify-content: space-between; padding: 8px 22px 2px; font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pwx-status-mid { color: var(--x-muted); font-size: .7rem; letter-spacing: .14em; }
.pwx-status-right { display: inline-flex; align-items: center; gap: 6px; }
.pwx-wifi { width: 15px; height: 11px; background: currentColor; clip-path: polygon(50% 100%, 0 30%, 15% 15%, 50% 0, 85% 15%, 100% 30%); }
.pwx-batt { position: relative; width: 24px; height: 11px; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 3px; }
.pwx-batt::before { content: ""; position: absolute; inset: 1.5px; right: 5px; border-radius: 1px; background: currentColor; }
.pwx-batt::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(255, 255, 255, .55); }
.pwx-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 20px 10px; }
.pwx-brand { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.pwx-brand b { padding: 3px 8px; border-radius: 8px; background: var(--x-gold); color: #000; font-size: .9rem; font-weight: 800; letter-spacing: .04em; }
.pwx-brand span { font-size: 1.25rem; font-weight: 700; }
.pwx-live { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; padding: 3px 10px; border-radius: 999px; background: var(--x-card); color: var(--x-muted); font-size: .74rem; font-weight: 600; }
.pwx-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pwx-live.on { color: var(--x-up); }
.pwx-live.on::before { animation: pwx-pulse 1.6s ease-in-out infinite; }
.pwx-live.closed { color: var(--x-gold); }
.pwx-live.off { color: var(--x-down); }
@keyframes pwx-pulse { 50% { opacity: .3; } }
.pwx-segs { display: inline-flex; padding: 2px; border-radius: 10px; background: var(--x-card); }
.pwx-seg { min-width: 84px; padding: 6px 14px; border: 0; border-radius: 8px; background: none; color: var(--x-muted); font-size: .86rem; font-weight: 600; cursor: pointer; }
.pwx-seg[aria-pressed="true"] { background: var(--x-card-2); color: var(--x-text); box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.pwx-seg:disabled { opacity: .35; cursor: not-allowed; }
.pwx-who { display: flex; align-items: center; gap: 8px; }
.pwx-select { max-width: 200px; min-height: 34px; padding: 4px 30px 4px 12px; border: 0; border-radius: 10px; background: var(--x-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 9px center / 13px no-repeat; color: var(--x-text); font-size: .86rem; appearance: none; -webkit-appearance: none; }
.pwx-wallet { display: flex; gap: 8px; padding: 0 20px 10px; overflow-x: auto; scrollbar-width: none; }
.pwx-pill { display: grid; flex: 1 0 auto; min-width: 120px; padding: 8px 14px; border-radius: 12px; background: var(--x-card); }
.pwx-pill small { color: var(--x-muted); font-size: .72rem; }
.pwx-pill b { font-size: 1rem; font-variant-numeric: tabular-nums; }
.pwx-ticker { overflow: hidden; border-block: 1px solid var(--x-line); background: #0b0b0c; font-size: .8rem; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.pwx-ticker-strip { display: inline-flex; gap: 26px; padding: 7px 0; animation: pwx-marquee 70s linear infinite; }
.pwx-ticker-strip.still { animation: none; overflow-x: auto; padding-inline: 16px; }
.pwx-ticker:hover .pwx-ticker-strip { animation-play-state: paused; }
@keyframes pwx-marquee { to { transform: translateX(-50%); } }
.pwx-tick { font-variant-numeric: tabular-nums; color: var(--x-muted); }
.pwx-tick b { color: var(--x-text); }
.pwx-tick em { font-style: normal; }
.pwx .up { color: var(--x-up); }
.pwx .down { color: var(--x-down); }
.pwx .flat { color: var(--x-muted); }
.pwx .gold { color: var(--x-gold); }
.pwx-muted { color: var(--x-muted); }
.pwx-body { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); min-height: 0; }
.pwx-watch { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 12px 0 0 14px; border-right: 1px solid var(--x-line); }
.pwx-search { margin-right: 14px; min-height: 36px; padding: 6px 12px 6px 34px; border: 0; border-radius: 10px; background: var(--x-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 10px center / 15px no-repeat; color: var(--x-text); font-size: .9rem; }
.pwx-search:focus, .pwx-qty:focus, .pwx-select:focus { outline: 2px solid var(--x-accent); outline-offset: 1px; }
.pwx-chips { display: flex; gap: 6px; padding-right: 14px; overflow-x: auto; scrollbar-width: none; }
.pwx-chip { flex: none; padding: 5px 12px; border: 0; border-radius: 999px; background: var(--x-card); color: var(--x-text); font-size: .8rem; font-weight: 600; cursor: pointer; }
.pwx-chip[aria-pressed="true"] { background: var(--x-text); color: #000; }
.pwx-chip:disabled { opacity: .4; cursor: default; }
.pwx-list { flex: 1; min-height: 0; margin: 0; padding: 0 14px 14px 0; list-style: none; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.pwx-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 64px auto; align-items: center; gap: 10px; width: 100%; padding: 9px 8px; border: 0; border-bottom: 1px solid var(--x-line); border-radius: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.pwx-row:hover { background: rgba(255, 255, 255, .04); }
.pwx-row.active { background: var(--x-card); border-radius: 12px; border-bottom-color: transparent; }
.pwx-row-name { display: grid; min-width: 0; }
.pwx-row-name b { font-size: .95rem; }
.pwx-row-name small { overflow: hidden; color: var(--x-muted); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.pwx-row-name .pwx-own { color: var(--x-accent); }
.pwx-row-price { display: grid; justify-items: end; font-variant-numeric: tabular-nums; }
.pwx-row-price b { font-size: .92rem; }
.pwx-chg { font-style: normal; font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pwx-row-price .pwx-chg { min-width: 66px; margin-top: 2px; padding: 1px 6px; border-radius: 6px; text-align: right; }
.pwx-row-price .pwx-chg.up { background: rgba(48, 209, 88, .16); }
.pwx-row-price .pwx-chg.down { background: rgba(255, 69, 58, .16); }
.pwx-spark { width: 64px; height: 26px; }
.pwx-spark polyline { stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.pwx-badge { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--c) 22%, #111); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); font-size: .68rem; font-weight: 800; letter-spacing: .02em; }
.pwx-badge.big { width: 52px; height: 52px; border-radius: 14px; font-size: .86rem; }
.pwx-detail, .pwx-portfolio { min-height: 0; padding: 16px 22px 24px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.pwx-detail { display: flex; flex-direction: column; gap: 14px; }
.pwx-detail[hidden], .pwx-portfolio[hidden] { display: none; }
.pwx-detail-head { display: flex; align-items: center; gap: 12px; }
.pwx-detail-name { flex: 1; min-width: 0; }
.pwx-detail-name h3 { margin: 0; font-family: inherit; font-size: 1.3rem; font-weight: 700; text-transform: none; letter-spacing: 0; line-height: 1.2; }
.pwx-back { display: none; padding: 6px 8px 6px 0; border: 0; background: none; color: var(--x-accent); font-size: 1rem; cursor: pointer; }
.pwx-star { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--x-card); color: var(--x-muted); font-size: 1.2rem; cursor: pointer; }
.pwx-star.on { color: var(--x-gold); }
.pwx-quote { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pwx-price { font-size: 2.2rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pwx-chg.big { font-size: .95rem; }
.pwx-card { padding: 14px 16px; border-radius: 16px; background: var(--x-card); }
.pwx-card h4 { margin: 0 0 10px; font-family: inherit; font-size: .95rem; font-weight: 700; text-transform: none; letter-spacing: 0; }
.pwx-card p { margin: 0; font-size: .9rem; }
.pwx-chart-card { display: grid; gap: 10px; }
.pwx-chart-meta { display: flex; justify-content: space-between; font-size: .84rem; }
.pwx-chart { min-height: 230px; }
.pwx-plot { position: relative; height: 210px; touch-action: pan-y; cursor: crosshair; }
.pwx-graph { width: 100%; height: 100%; overflow: visible; }
.pwx-graph .grid { stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.pwx-graph .openline { stroke: rgba(255, 255, 255, .25); stroke-width: 1; stroke-dasharray: 4 4; }
.pwx-graph .line { stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.pwx-graph.up .line { stroke: var(--x-up); }
.pwx-graph.down .line { stroke: var(--x-down); }
.pwx-graph.flat .line { stroke: var(--x-accent); }
.pwx-graph .g0 { stop-opacity: .32; }
.pwx-graph .g1 { stop-opacity: 0; }
.pwx-graph.up stop { stop-color: var(--x-up); }
.pwx-graph.down stop { stop-color: var(--x-down); }
.pwx-graph.flat stop { stop-color: var(--x-accent); }
.pwx-cross { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .35); pointer-events: none; }
.pwx-dot { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border: 2px solid #000; border-radius: 50%; background: currentColor; pointer-events: none; }
.pwx-tip { position: absolute; top: -6px; transform: translateX(-50%); display: grid; justify-items: center; padding: 4px 10px; border-radius: 8px; background: var(--x-card-2); box-shadow: 0 6px 18px rgba(0, 0, 0, .5); font-size: .78rem; pointer-events: none; white-space: nowrap; }
.pwx-tip b { font-size: .9rem; font-variant-numeric: tabular-nums; }
.pwx-tip small { color: var(--x-muted); }
.pwx-scale { position: absolute; right: 4px; top: 4px; bottom: 4px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; color: var(--x-muted); font-size: .7rem; font-variant-numeric: tabular-nums; pointer-events: none; }
.pwx-scale span { padding: 0 4px; border-radius: 4px; background: rgba(28, 28, 30, .8); }
.pwx-axis { display: flex; justify-content: space-between; margin-top: 4px; color: var(--x-muted); font-size: .72rem; }
.pwx-ranges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 2px; border-radius: 10px; background: #111113; }
.pwx-range { padding: 6px 0; border: 0; border-radius: 8px; background: none; color: var(--x-muted); font-size: .82rem; font-weight: 700; cursor: pointer; }
.pwx-range[aria-pressed="true"] { background: var(--x-card-2); color: var(--x-text); }
.pwx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.pwx-stat { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--x-card); }
.pwx-card .pwx-stat { padding: 0; background: none; }
.pwx-stat small { color: var(--x-muted); font-size: .74rem; }
.pwx-stat b { font-size: .96rem; font-variant-numeric: tabular-nums; }
.pwx-comp { display: flex; flex-wrap: wrap; gap: 6px; }
.pwx-actions { position: sticky; bottom: -24px; display: grid; gap: 8px; margin: auto -22px -24px; padding: 12px 22px 20px; background: linear-gradient(transparent, #000 22%); }
.pwx-actions p { margin: 0; font-size: .86rem; text-align: center; }
.pwx-trade-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pwx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border: 0; border-radius: 14px; font-size: 1rem; font-weight: 700; cursor: pointer; text-decoration: none; transition: filter .15s, opacity .15s; }
.pwx-btn:hover { filter: brightness(1.1); }
.pwx-btn:disabled { opacity: .35; cursor: not-allowed; filter: none; }
.pwx-btn.wide { width: 100%; }
.pwx-btn-gold { min-height: 36px; padding: 6px 14px; border-radius: 10px; background: var(--x-gold); color: #000; font-size: .88rem; }
.pwx-actions .pwx-btn-gold { min-height: 46px; font-size: 1rem; }
.pwx-buy { background: var(--x-up); color: #00230c; }
.pwx-sell { background: var(--x-down); color: #fff; }
.pwx-ghost { background: var(--x-card-2); color: var(--x-text); }
.pwx-empty { padding: 30px 12px; color: var(--x-muted); text-align: center; font-size: .9rem; }
.pwx-empty.big { margin: auto; max-width: 340px; padding: 60px 12px; }
.pwx-portfolio h3 { margin: 0 0 10px; font-family: inherit; font-size: 1.2rem; text-transform: none; letter-spacing: 0; }
.pwx-holdings { padding-right: 0; overflow: visible; }
.pwx-holdings .pwx-row { grid-template-columns: auto minmax(0, 1fr) minmax(60px, 120px) auto; }
.pwx-alloc { height: 6px; border-radius: 3px; background: var(--x-card-2); overflow: hidden; }
.pwx-alloc i { display: block; height: 100%; border-radius: 3px; background: var(--c); }
.pwx-sheet-wrap { position: absolute; inset: 0; z-index: 5; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.pwx-sheet-wrap[hidden] { display: none; }
.pwx-sheet { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: min(460px, 100%); max-height: 92%; overflow-x: hidden; overflow-y: auto; padding: 8px 20px 22px; border-radius: 22px 22px 0 0; background: #1c1c1e; box-shadow: 0 -20px 50px rgba(0, 0, 0, .5); animation: pwx-up .22s ease-out; }
@keyframes pwx-up { from { transform: translateY(40px); opacity: 0; } }
.pwx-grab { justify-self: center; width: 40px; height: 5px; border-radius: 3px; background: #48484a; }
.pwx-sheet-head { display: flex; align-items: center; gap: 12px; }
.pwx-sheet-head > div { display: grid; flex: 1; }
.pwx-sheet .pwx-segs { display: grid; grid-template-columns: 1fr 1fr; background: #111113; }
.pwx-x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--x-card-2); color: var(--x-muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.pwx-qty-row { display: flex; gap: 8px; align-items: center; }
.pwx-qty { flex: 1; min-width: 0; min-height: 48px; padding: 6px 12px; border: 0; border-radius: 12px; background: #111113; color: var(--x-text); font-size: 1.3rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.pwx-step { width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--x-card-2); color: var(--x-text); font-size: 1.4rem; cursor: pointer; }
.pwx-sheet p { margin: 0; }
.pwx-est { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: #111113; font-size: .9rem; }
.pwx-est div { display: flex; justify-content: space-between; gap: 12px; }
.pwx-est span { color: var(--x-muted); }
.pwx-est b { font-variant-numeric: tabular-nums; }
.pwx-review { padding: 14px; border-radius: 12px; background: #111113; }
.pwx-review p:first-child { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.pwx-toast { position: absolute; left: 50%; top: 54px; z-index: 6; max-width: calc(100% - 40px); transform: translateX(-50%); padding: 10px 16px; border-radius: 14px; background: rgba(44, 44, 46, .96); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-size: .88rem; font-weight: 600; text-align: center; }
.pwx-toast.ok { color: #bff3d8; }
.pwx-toast.err { color: #ffc9cf; }
.pwx-toast[hidden] { display: none; }
.pwx button:focus-visible, .pwx a:focus-visible { outline: 2px solid var(--x-accent); outline-offset: 2px; }
/* Narrow: phone-like single pane */
.pwx-narrow .pwx-device { padding: 9px; border-radius: 30px; }
.pwx-narrow .pwx-cam { top: 2px; width: 5px; height: 5px; }
.pwx-narrow .pwx-screen { height: clamp(560px, calc(100dvh - var(--header-h) - 90px), 760px); border-radius: 22px; }
.pwx-narrow .pwx-head { padding: 8px 14px; gap: 10px; }
.pwx-narrow .pwx-brand span { font-size: 1.1rem; }
.pwx-narrow .pwx-segs { order: 3; width: 100%; }
.pwx-narrow .pwx-head > .pwx-segs .pwx-seg { flex: 1; }
.pwx-narrow .pwx-wallet { padding: 0 14px 8px; }
.pwx-narrow .pwx-pill { min-width: 104px; padding: 6px 10px; }
.pwx-narrow .pwx-body { grid-template-columns: 1fr; }
.pwx-narrow .pwx-watch { padding: 10px 0 0 12px; border-right: 0; }
.pwx-narrow .pwx-search { margin-right: 12px; }
.pwx-narrow .pwx-detail, .pwx-narrow .pwx-portfolio { display: none; padding: 12px 16px 20px; }
.pwx-narrow.pwx-show-detail .pwx-watch { display: none; }
.pwx-narrow.pwx-show-detail .pwx-detail:not([hidden]) { display: flex; }
.pwx-narrow.pwx-show-detail .pwx-portfolio:not([hidden]) { display: block; }
.pwx-narrow .pwx-back { display: inline-block; }
.pwx-narrow .pwx-price { font-size: 1.9rem; }
.pwx-narrow .pwx-plot { height: 180px; }
.pwx-narrow .pwx-chart { min-height: 200px; }
.pwx-narrow .pwx-actions { margin: auto -16px -20px; padding: 12px 16px 18px; bottom: -20px; }
.pwx-narrow .pwx-sheet { width: 100%; }
@media (max-width: 480px) {
  .pwx-narrow .pwx-device { margin-inline: -8px; }
  .pwx-narrow .pwx-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .pwx-narrow .pwx-row .pwx-spark { display: none; }
}
/* App pages (/uygulamalar, /borsa, /posta) */
.app-hero { padding-bottom: 28px; }
.app-body { padding-top: 8px; }
.borsa-host { max-width: 1240px; margin: 0 auto; }
.acc-panel .borsa-host { max-width: none; }
.app-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 1240px; margin: 28px auto 0; }
.app-notes div { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.app-notes span { color: var(--muted); font-size: .9rem; }
.apps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.app-card { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 26px; color: inherit; transition: border-color .2s, transform .2s; }
.app-card:hover { border-color: rgba(245, 197, 24, .4); transform: translateY(-2px); }
.app-card h2 { margin: 0 0 8px; font-size: 1.6rem; }
.app-card p { margin: 0 0 12px; }
.nav-app-icon.big { width: 72px; height: 72px; border-radius: 18px; font-size: 1.1rem; }
.nav-app-mail.big { font-size: 2rem; }
.app-feats { display: grid; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; font-size: .92rem; }
.app-feats li::before { content: "✓"; margin-right: 8px; color: var(--gold); font-weight: 700; }
.app-foot { margin-top: 22px; text-align: center; }
.mail-device { padding: 14px; border-radius: 34px; }
.mail-status { display: flex; justify-content: space-between; align-items: center; padding: 4px 18px 8px; color: #f5f5f7; font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.mail-status > span:nth-child(2) { color: var(--muted); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.mail-device .acc-mail { min-height: clamp(520px, calc(100vh - var(--header-h) - 200px), 760px); border-radius: 22px; border-color: transparent; background: var(--bg-2); }
.mail-app .acc-forward { max-width: none; }
@media (max-width: 900px) {
  .app-notes, .apps-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .app-card { grid-template-columns: 1fr; padding: 20px; }
  .mail-device { padding: 8px; border-radius: 26px; margin-inline: -8px; }
  .mail-device .acc-mail { padding: 14px; border-radius: 20px; min-height: 0; }
}