:root {
  color-scheme: dark;
  font-family: "Inter", "Aptos", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: #100e0e;
  color: #fff3eb;
  --muted: #c1aca0;
  --accent: #ff8651;
  --border: #ffffff20;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 2px solid #ffb994; outline-offset: 4px; }
.site {
  margin: auto;
  min-height: 100dvh;
  max-width: 1232px;
  padding: 32px clamp(20px, 5vw, 72px) 26px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  background: radial-gradient(ellipse at 15% 48%, #69301853, transparent 49%),
    radial-gradient(ellipse at 87% 17%, #44212260, transparent 51%);
}
.top { padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; letter-spacing: .05em; }
.brand-sub { font-weight: 500; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
footer { border-top: 1px solid var(--border); padding-top: 22px; color: var(--muted); font-size: .875rem; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
#app { display: grid; align-items: center; padding: clamp(30px, 6vw, 86px) 0; }
#app[aria-busy=true]:empty::before { content: "Yuklanmoqda…"; color: var(--muted); text-align: center; }
.entry { display: grid; grid-template-columns: minmax(0,1fr) minmax(0, .82fr); gap: clamp(26px, 6vw, 100px); align-items: center; }
.intro { position: relative; isolation: isolate; }
.intro::before {
  position: absolute;
  z-index: -1;
  content: "";
  inset: -24% 5% -32% -18%;
  background: repeating-radial-gradient(ellipse at 35% 56%, transparent 0 35px, #ffc29d15 36px 37px, transparent 38px 66px);
  mask-image: radial-gradient(ellipse, #000 18%, transparent 72%);
  pointer-events: none;
}
h1, h2, p { margin: 0; }
.intro h1 { font-size: clamp(3.25rem, 7.4vw, 6.75rem); font-weight: 760; letter-spacing: -.085em; line-height: .93; }
.intro h1 span { display: block; color: var(--accent); }
.intro p { margin-top: 26px; font-size: clamp(1rem, 2vw, 1.15rem); line-height: 1.65; max-width: 28rem; }
.muted, .intro p, .handle { color: var(--muted); }
.panel {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(145deg, #ffffff0e, #ffffff04), #1f151680;
  box-shadow: 0 18px 60px #0004, inset 0 1px #ffffff0d;
  backdrop-filter: blur(22px);
  padding: clamp(20px, 3.5vw, 40px);
  min-width: 0;
}
h2 { font-size: 1.45rem; letter-spacing: -.04em; margin-bottom: 16px; }
.tabset { display: flex; gap: 5px; background: #130d0e; border-radius: 14px; padding: 5px; margin-bottom: 26px; }
.tabset button { flex: 1; background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: 11px; min-height: 44px; cursor: pointer; font-size: .92rem; }
.tabset button[aria-pressed=true] { color: #fff3eb; background: #352324; border-color: #ffffff10; }
.stack { display: grid; gap: 16px; }
label { display: grid; gap: 8px; font-size: .94rem; }
input:not([type=checkbox]), textarea {
  width: 100%;
  background: #110c0d;
  border: 1px solid #ffffff2a;
  border-radius: 12px;
  padding: 13px;
  color: inherit;
}
textarea { resize: vertical; min-height: 105px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #251007;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.button:hover { background: #ffa57c; }
.button.secondary { border-color: var(--border); color: #ffe7db; background: #ffffff0a; }
.button.secondary:hover { background: #ffffff16; }
button:disabled { opacity: .53; cursor: wait; }
.small-action { border: 0; background: none; color: #ffb48c; padding: 5px 0; width: fit-content; cursor: pointer; text-align: left; }
.small-action:hover { text-decoration: underline; }
.notice { color: #ffc2a6; font-size: .92rem; line-height: 1.55; }
.notice:empty { display: none; }
.notice[data-error=true] { color: #ffc1ba; }
.dashboard { align-self: start; display: grid; gap: 24px; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; }
.dashboard-header h1, .public-profile h1, .empty h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.06em; overflow-wrap: anywhere; }
.columns { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 20px; align-items: start; }
.controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.handle { margin-top: 5px; }
.check { display: flex; align-items: center; gap: 9px; min-height: 34px; }
input[type=checkbox] { accent-color: var(--accent); width: 1.18rem; height: 1.18rem; }
.public-profile, .empty { justify-self: center; text-align: center; width: min(100%, 500px); }
.public-profile .button, .empty .button { margin-top: 22px; }
.public-profile .notice { margin-top: 10px; }
.avatar { width: 74px; height: 74px; display: grid; place-items: center; background: #ff8651; color: #22100b; border-radius: 24px; font-weight: 800; font-size: 2.1rem; margin: 0 auto 18px; }
.public-bio { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; margin-top: 16px; }
.recovery-card { border-color: #ff865167; }
.recovery-card code { display: block; color: #fff; user-select: all; overflow-wrap: anywhere; background: #100b0d; border-radius: 10px; padding: 12px; }
[hidden] { display: none !important; }
@media (max-width: 720px) {
  .entry, .columns { grid-template-columns: 1fr; }
  .intro h1 { font-size: clamp(3rem, 12vw, 5.5rem); }
  .intro p { margin-top: 16px; }
  .site { padding-top: 20px; }
}
