:root{
  --bg: #0b1020;
  --fg: #eaf0ff;
  --muted: rgba(234,240,255,.72);
  --muted2: rgba(234,240,255,.55);
  --card: rgba(255,255,255,.08);
  --card2: rgba(255,255,255,.10);
  --border: rgba(255,255,255,.14);
  --shadow: 0 20px 60px rgba(0,0,0,.38);

  --accent: #8b5cf6;
  --accent2: #22d3ee;
  --ok: #34d399;
  --warn: #fbbf24;

  --radius: 18px;
  --radius2: 14px;
  --max: 720px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

[data-theme="light"]{
  --bg: #f7f8ff;
  --fg: #0b1020;
  --muted: rgba(11,16,32,.75);
  --muted2: rgba(11,16,32,.58);
  --card: rgba(255,255,255,.72);
  --card2: rgba(255,255,255,.82);
  --border: rgba(11,16,32,.10);
  --shadow: 0 18px 60px rgba(20,25,40,.12);
}

*{ box-sizing:border-box; }
html{
  min-height: 100%;
  background: var(--bg);
}
body{
  margin:0;
  font-family: var(--font);
  color: var(--fg);
  background: transparent;
  min-height: 100%;
  line-height: 1.45;
  position: relative;
}

a{ color: inherit; text-decoration: none; }

.skip-link{
  position:absolute;
  left: 12px;
  top: 10px;
  transform: translateY(-140%);
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--fg);
  z-index: 50;
  box-shadow: var(--shadow);
}
.skip-link:focus{ transform: translateY(0); outline: none; }

.bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(1100px 800px at 20% -10%, rgba(139,92,246,.35), transparent 60%),
              radial-gradient(900px 700px at 110% 10%, rgba(34,211,238,.26), transparent 55%),
              radial-gradient(700px 500px at 50% 115%, rgba(52,211,153,.18), transparent 60%),
              var(--bg);
  pointer-events: none;
}
.bg__blob{
  position: absolute;
  width: 640px;
  height: 640px;
  filter: blur(50px);
  opacity: .55;
  border-radius: 999px;
  mix-blend-mode: screen;
  transform: translate3d(0,0,0);
}
.bg__blob--a{
  left: -200px;
  top: -260px;
  background: radial-gradient(circle at 30% 30%, rgba(139,92,246,.85), transparent 60%),
              radial-gradient(circle at 70% 60%, rgba(34,211,238,.75), transparent 62%);
  animation: floatA 16s ease-in-out infinite;
}
.bg__blob--b{
  right: -220px;
  bottom: -260px;
  background: radial-gradient(circle at 35% 30%, rgba(34,211,238,.80), transparent 62%),
              radial-gradient(circle at 65% 70%, rgba(52,211,153,.55), transparent 62%);
  animation: floatB 18s ease-in-out infinite;
}
.bg__grain{
  position:absolute;
  inset:-120px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.30'/%3E%3C/svg%3E");
  opacity: .14;
  pointer-events:none;
}

@keyframes floatA{
  0%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(60px, 40px) scale(1.05); }
  100%{ transform: translate(0,0) scale(1); }
}
@keyframes floatB{
  0%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(-70px, -35px) scale(1.06); }
  100%{ transform: translate(0,0) scale(1); }
}

.shell{
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 28px 18px 44px;
  display:flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.card{
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--card2), var(--card));
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card__top{
  display:flex;
  gap: 14px;
  align-items: center;
}

.avatar{
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.10);
  flex: 0 0 auto;
}
.avatar img{ width: 100%; height: 100%; display:block; object-fit: cover; }

.titleblock{
  min-width: 0;
  flex: 1 1 auto;
}
.title{
  margin: 0;
  font-size: 22px;
  letter-spacing: .2px;
}
.subtitle{
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-actions{
  display:flex;
  gap: 10px;
  flex: 0 0 auto;
}
.icon-btn{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.08);
  color: var(--fg);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:grid;
  place-items: center;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.icon-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
}
.icon-btn:active{ transform: translateY(0); }
.icon-btn:focus-visible{
  outline: 3px solid color-mix(in oklab, var(--accent) 60%, transparent);
  outline-offset: 2px;
}

.icon{
  width: 20px;
  height: 20px;
  display:block;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
          mask-repeat: no-repeat;
          mask-position: center;
          mask-size: contain;
}
.icon[data-icon="theme"]{
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 18a6 6 0 1 1 0-12a6 6 0 0 1 0 12Zm0 4a1 1 0 0 1-1-1v-1.5a1 1 0 0 1 2 0V21a1 1 0 0 1-1 1ZM12 4.5a1 1 0 0 1-1-1V2a1 1 0 0 1 2 0v1.5a1 1 0 0 1-1 1ZM4.5 13H3a1 1 0 0 1 0-2h1.5a1 1 0 0 1 0 2ZM21 13h-1.5a1 1 0 0 1 0-2H21a1 1 0 0 1 0 2ZM6.05 6.05a1 1 0 0 1-1.41 0L3.58 5a1 1 0 0 1 1.41-1.41l1.06 1.06a1 1 0 0 1 0 1.4ZM20.42 19.42a1 1 0 0 1-1.41 0l-1.06-1.06a1 1 0 1 1 1.41-1.41l1.06 1.06a1 1 0 0 1 0 1.41ZM17.95 6.05a1 1 0 0 1 0-1.41L19.01 3.58A1 1 0 0 1 20.42 5l-1.06 1.06a1 1 0 0 1-1.41-.01ZM3.58 20.42A1 1 0 0 1 5 19.01l1.06-1.06a1 1 0 0 1 1.41 1.41L6.4 20.42a1 1 0 0 1-1.41 0Z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 18a6 6 0 1 1 0-12a6 6 0 0 1 0 12Zm0 4a1 1 0 0 1-1-1v-1.5a1 1 0 0 1 2 0V21a1 1 0 0 1-1 1ZM12 4.5a1 1 0 0 1-1-1V2a1 1 0 0 1 2 0v1.5a1 1 0 0 1-1 1ZM4.5 13H3a1 1 0 0 1 0-2h1.5a1 1 0 0 1 0 2ZM21 13h-1.5a1 1 0 0 1 0-2H21a1 1 0 0 1 0 2ZM6.05 6.05a1 1 0 0 1-1.41 0L3.58 5a1 1 0 0 1 1.41-1.41l1.06 1.06a1 1 0 0 1 0 1.4ZM20.42 19.42a1 1 0 0 1-1.41 0l-1.06-1.06a1 1 0 1 1 1.41-1.41l1.06 1.06a1 1 0 0 1 0 1.41ZM17.95 6.05a1 1 0 0 1 0-1.41L19.01 3.58A1 1 0 0 1 20.42 5l-1.06 1.06a1 1 0 0 1-1.41-.01ZM3.58 20.42A1 1 0 0 1 5 19.01l1.06-1.06a1 1 0 0 1 1.41 1.41L6.4 20.42a1 1 0 0 1-1.41 0Z'/%3E%3C/svg%3E");
}
.icon[data-icon="copy"]{
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8 8V5a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3h-3v1a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3h3Zm2 0h7a3 3 0 0 1 3 3v5h-3a3 3 0 0 1-3 3h-4V8Zm9-4h-8a1 1 0 0 0-1 1v1h4a3 3 0 0 1 3 3v7h2a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1Zm-7 16a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h7Z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8 8V5a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3h-3v1a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3h3Zm2 0h7a3 3 0 0 1 3 3v5h-3a3 3 0 0 1-3 3h-4V8Zm9-4h-8a1 1 0 0 0-1 1v1h4a3 3 0 0 1 3 3v7h2a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1Zm-7 16a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h7Z'/%3E%3C/svg%3E");
}

.bio{
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

.meta{
  margin-top: 12px;
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill{
  display:flex;
  align-items:center;
  gap: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.08);
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12.5px;
}
.pill__dot{
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--accent2);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent2) 20%, transparent);
}
.pill__dot--ok{ background: var(--ok); box-shadow: 0 0 0 4px color-mix(in oklab, var(--ok) 20%, transparent); }
.pill__dot--warn{ background: var(--warn); box-shadow: 0 0 0 4px color-mix(in oklab, var(--warn) 20%, transparent); }

.links{
  display:flex;
  flex-direction: column;
  gap: 12px;
}

.links__root{
  display:flex;
  flex-direction: column;
  gap: 12px;
}

.section{
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.section__head{
  padding: 12px 14px;
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 75%, transparent);
}
.section__title{
  margin:0;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.section__hint{
  margin:0;
  font-size: 12.5px;
  color: var(--muted2);
}
.section__body{
  padding: 10px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.link{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.07);
  border-radius: var(--radius2);
  padding: 12px 12px;
  display:flex;
  align-items:center;
  gap: 12px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.link:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
}
.link:active{ transform: translateY(0); }
.link:focus-visible{
  outline: 3px solid color-mix(in oklab, var(--accent) 58%, transparent);
  outline-offset: 2px;
}

.link__icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid color-mix(in oklab, var(--border) 85%, transparent);
  background:
    radial-gradient(26px 26px at 30% 30%, rgba(139,92,246,.40), transparent 60%),
    radial-gradient(26px 26px at 70% 70%, rgba(34,211,238,.30), transparent 62%),
    rgba(255,255,255,.06);
  display:grid;
  place-items: center;
  flex: 0 0 auto;
}
.link__icon > span{
  width: 22px;
  height: 22px;
}
.link__main{
  min-width:0;
  flex: 1 1 auto;
}
.link__label{
  margin:0;
  font-size: 15px;
  letter-spacing: .1px;
}
.link__desc{
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link__right{
  color: var(--muted);
  font-size: 12.5px;
  flex: 0 0 auto;
  padding-left: 4px;
}
.badge{
  border: 1px solid color-mix(in oklab, var(--border) 85%, transparent);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  display:flex;
  align-items:center;
  gap: 8px;
}
.badge__dot{
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--accent2);
}

.footer{
  padding-top: 2px;
  color: var(--muted2);
}
.footer__row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer__link{
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.footer__link:hover{ color: var(--fg); }

.toast{
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%) translateY(20px);
  z-index: 60;
  opacity: 0;
  pointer-events:none;
  background: rgba(0,0,0,.55);
  color: white;
  border: 1px solid rgba(255,255,255,.16);
  padding: 10px 12px;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity .18s ease, transform .18s ease;
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
  max-width: min(520px, calc(100% - 24px));
  text-align: center;
  font-size: 13px;
}
.toast.is-visible{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 420px){
  .shell{ padding: 22px 14px 40px; }
  .avatar{ width: 64px; height: 64px; border-radius: 16px; }
  .title{ font-size: 20px; }
  .icon-btn{ width: 42px; height: 42px; border-radius: 14px; }
  .link__desc{ display:none; }
}

@media (prefers-reduced-motion: reduce){
  .bg__blob{ animation: none !important; }
  .link, .icon-btn{ transition: none !important; }
}

