
:root {
  --bg: #05070b;
  --bg-soft: #0a0e18;
  --panel: rgba(10, 14, 24, 0.85);
  --panel-strong: rgba(8, 12, 21, 0.92);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.20);
  --text: #f8fbff;
  --muted: rgba(248, 251, 255, 0.78);
  --red: #ff6b78;
  --blue: #7ec0ff;
  --green: #8df28c;
  --orange: #ffb869;
  --yellow: #ffd45a;
  --danger: #ff5f6d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 16px 42px rgba(0, 0, 0, 0.22);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --transition: 240ms cubic-bezier(.2,.7,.18,1);
  --content-max: 1320px;
}

:root[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-soft: #eef3f8;
  --panel: rgba(255, 255, 255, 0.84);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(24, 32, 44, 0.14);
  --line-strong: rgba(24, 32, 44, 0.24);
  --text: #101722;
  --muted: rgba(16, 23, 34, 0.72);
  --blue: #1664c0;
  --green: #19773a;
  --orange: #a85d00;
  --yellow: #8b6a00;
  --shadow: 0 24px 80px rgba(38, 54, 78, 0.18);
  --shadow-soft: 0 16px 42px rgba(38, 54, 78, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Cascadia Code", "Cascadia Mono", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 184, 104, 0.14), transparent 22%),
    radial-gradient(circle at 78% 12%, rgba(124, 92, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #05070b 0%, #05070b 100%);
  overflow-x: hidden;
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 184, 104, 0.16), transparent 22%),
    radial-gradient(circle at 78% 12%, rgba(80, 150, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #f4f7fb 0%, #e9eff6 100%);
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

textarea {
  resize: vertical;
}

input,
textarea,
select {
  color: var(--text);
}

.sr-only,
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
}

.page {
  min-height: 100vh;
}

.topbar {
  position: fixed;
  inset: 20px 20px auto 20px;
  z-index: 80;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  pointer-events: none;
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  pointer-events: auto;
}

.theme-box {
  position: relative;
}

.mobile-topbar-menu {
  display: contents;
}

.mobile-topbar-menu__toggle {
  display: none;
}

.mobile-topbar-menu__panel {
  display: contents;
}

.theme-box::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 12px;
}

.topbar__button,
.language-box__button,
.language-box__item,
.theme-box__item,
.mobile-topbar-menu__toggle,
.avatar-button,
.panel-actions__button,
.project-card__toggle,
.form-button,
.modal-close,
.user-action__button,
.contact-chip__remove,
.repo-editor__remove {
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition),
    opacity var(--transition);
}

.topbar__button,
.language-box__button,
.avatar-button {
  min-height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 42px rgba(0,0,0,0.24);
}

.topbar__button {
  padding: 0 18px;
  cursor: pointer;
  color: #101317;
  background: rgba(255,255,255,0.92);
  font-size: 1rem;
  font-weight: 800;
}

.topbar__button:hover,
.topbar__button:focus-visible,
.language-box__button:hover,
.language-box__button:focus-visible,
.avatar-button:hover,
.avatar-button:focus-visible,
.panel-actions__button:hover,
.panel-actions__button:focus-visible,
.project-card__toggle:hover,
.project-card__toggle:focus-visible,
.form-button:hover,
.form-button:focus-visible,
.modal-close:hover,
.modal-close:focus-visible,
.user-action__button:hover,
.user-action__button:focus-visible,
.contact-chip__remove:hover,
.contact-chip__remove:focus-visible,
.repo-editor__remove:hover,
.repo-editor__remove:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.topbar__button--light {
  background: rgba(255,255,255,0.94);
  color: #171a20;
}

.topbar__button--green {
  background: rgba(24, 92, 33, 0.92);
  color: #ecfff0;
}

.avatar-button {
  width: 58px;
  height: 58px;
  padding: 4px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  background: rgba(11, 17, 28, 0.82);
  color: var(--text);
}

.avatar-button img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
}

.language-box {
  width: min(236px, calc(100vw - 48px));
}

.language-box__button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  color: var(--text);
  background: rgba(12, 18, 31, 0.76);
  cursor: pointer;
}

.theme-box__button {
  min-width: 92px;
}

.theme-box__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 142px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  background: rgba(12, 18, 31, 0.86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

:root[data-theme="light"] .topbar__button,
:root[data-theme="light"] .language-box__button,
:root[data-theme="light"] .icon-button {
  border-color: rgba(94, 38, 58, 0.14);
  background: rgba(255, 213, 226, 0.94);
  color: #111217;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

:root[data-theme="light"] .topbar__button--green {
  background: rgba(255, 198, 216, 0.96);
  color: #111217;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.theme-box:hover .theme-box__menu,
.theme-box.is-open .theme-box__menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.theme-box__item {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  padding: 0 12px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.theme-box__item:hover,
.theme-box__item:focus-visible,
.theme-box__item.is-active {
  background: rgba(255,255,255,0.12);
  outline: none;
}

.language-box__caret {
  transform-origin: center;
}

.language-box.is-open .language-box__caret {
  transform: rotate(180deg);
}

.language-box__menu {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  padding: 0 8px;
  border-radius: 18px;
  background: rgba(12, 18, 31, 0.82);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  transition:
    max-height 280ms cubic-bezier(.2,.7,.18,1),
    opacity 220ms ease,
    transform 220ms ease,
    padding 220ms ease;
  transform: translateY(-8px);
}

.language-box.is-open .language-box__menu {
  max-height: 200px;
  opacity: 1;
  pointer-events: auto;
  padding: 8px;
  transform: translateY(0);
}

.language-box__item {
  padding: 12px 14px;
  text-align: left;
  border-radius: 14px;
  cursor: pointer;
  color: var(--text);
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
}

.language-box__item:hover,
.language-box__item:focus-visible,
.language-box__item.is-active {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
}

.hero-banner {
  position: relative;
  min-height: 980px;
  overflow: clip;
  isolation: isolate;
}

.hero-banner--panel {
  min-height: 720px;
}

.hero-banner--article {
  min-height: 100vh;
}

.hero-banner__bg,
.hero-banner__veil {
  position: absolute;
  inset: 0;
}

.hero-banner__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  user-select: none;
  pointer-events: none;
}

.hero-banner__veil {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(5, 7, 11, 0.44)),
    linear-gradient(90deg, rgba(4, 5, 8, 0.10), rgba(4, 5, 8, 0.18) 42%, rgba(4, 5, 8, 0.34));
}

.hero-banner__content {
  position: relative;
  z-index: 2;
  width: min(var(--content-max), calc(100vw - 48px));
  margin: 0 auto;
  padding: 116px 0 108px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 720px);
  gap: 32px;
  min-height: 980px;
}

.hero-banner__content--panel {
  display: block;
  min-height: 720px;
  padding-top: 132px;
  padding-bottom: 64px;
}

.hero-banner__spacer {
  min-height: 1px;
}

.article-section {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 148px 0 96px;
}

.article {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-xl);
  background: rgba(8, 12, 21, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  padding: 34px 38px 38px;
}

.article h1 {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.05;
}

.article .info {
  color: var(--muted);
  margin-bottom: 28px;
}

.article .content {
  display: grid;
  gap: 18px;
  line-height: 1.8;
}

.article p {
  margin: 0;
}

.article a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.about-content {
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
  align-items: start;
  gap: 30px;
}

.about-copy {
  display: grid;
  gap: 18px;
}

.about-mascot {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 2px 0 0;
}

.about-mascot img {
  width: min(220px, 100%);
  height: auto;
  border-radius: 22px;
}

.about-mascot figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

.article-section--links {
  width: min(1040px, calc(100vw - 72px));
  padding-top: 176px;
}

.article--links {
  min-height: 520px;
  padding: 46px 54px 56px;
}

.links-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
}

.article--links h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.08;
}

.article--links .info,
.article--links .content > p {
  display: none;
}

.links-random-button {
  flex: 0 0 auto;
  padding: 22px 34px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.9);
  font-size: clamp(1rem, 1.9vw, 1.55rem);
  line-height: 1;
  text-decoration: none;
}

.links-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 28px;
  row-gap: 28px;
  margin-top: 0;
}

.friendly-link-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 22px;
  min-height: 132px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  overflow-wrap: normal;
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.article .friendly-link-card,
.article .friendly-link-card:hover,
.article .friendly-link-card:focus-visible {
  text-decoration: none;
}

.friendly-link-card:hover,
.friendly-link-card:focus-visible {
  transform: scale(1.025);
  border-color: rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.friendly-link-card__icon {
  width: 104px;
  height: 104px;
  border-radius: 14px;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}

.friendly-link-card__body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.friendly-link-card__name {
  color: #fff;
  font-size: clamp(1.45rem, 2.15vw, 2.3rem);
  line-height: 1.18;
}

.friendly-link-card__url,
.friendly-link-card__desc {
  color: rgba(255,255,255,0.62);
  font-size: clamp(1rem, 1.35vw, 1.45rem);
  line-height: 1.35;
}

.friendly-link-card__url {
  color: rgba(255,255,255,0.62);
  overflow-wrap: anywhere;
}

.friendly-link-card__arrow {
  display: grid;
  place-items: center;
  align-self: stretch;
  min-height: 104px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--blue);
  font-size: 4rem;
  line-height: 1;
}

.friendly-link-card--placeholder {
  opacity: 0.72;
  cursor: default;
}

:root[data-theme="light"] .hero-banner__veil {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(244, 247, 251, 0.42)),
    linear-gradient(90deg, rgba(255,255,255,0.18), rgba(255,255,255,0.20) 42%, rgba(255,255,255,0.32));
}

:root[data-theme="light"] .profile-panel,
:root[data-theme="light"] .user-panel,
:root[data-theme="light"] .section-card,
:root[data-theme="light"] .project-card,
:root[data-theme="light"] .modal-shell,
:root[data-theme="light"] .repo-editor,
:root[data-theme="light"] .contact-chip,
:root[data-theme="light"] .admin-user,
:root[data-theme="light"] .article {
  border-color: rgba(24, 32, 44, 0.14);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
}

:root[data-theme="light"] .article--links {
  background: rgba(255, 255, 255, 0.84);
}

:root[data-theme="light"] body[data-page="about"] .about-copy,
:root[data-theme="light"] body[data-page="about"] .about-mascot figcaption {
  color: #101722;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

:root[data-theme="light"] body[data-page="about"] .article a {
  -webkit-text-stroke: 0;
  text-shadow: none;
}

:root[data-theme="light"] body[data-page="about"] .article h1,
:root[data-theme="light"] body[data-page="links"] .article--links h1,
:root[data-theme="light"] body[data-page="board"] .board-page-heading {
  color: #fff;
  -webkit-text-stroke: 0.8px #111217;
  text-shadow:
    -1px -1px 0 #111217,
    1px -1px 0 #111217,
    -1px 1px 0 #111217,
    1px 1px 0 #111217;
}

:root[data-theme="light"] .friendly-link-card__name {
  color: var(--text);
  -webkit-text-stroke: 0;
  text-shadow: none;
}

:root[data-theme="light"] .links-random-button,
:root[data-theme="light"] .friendly-link-card__url,
:root[data-theme="light"] .friendly-link-card__desc,
:root[data-theme="light"] .panel-actions__button--primary,
:root[data-theme="light"] .panel-actions__button--danger,
:root[data-theme="light"] .form-button--primary,
:root[data-theme="light"] .form-button--danger,
:root[data-theme="light"] .user-action__button--danger,
:root[data-theme="light"] .contact-chip__remove,
:root[data-theme="light"] .repo-editor__remove,
:root[data-theme="light"] .toast {
  color: #111217;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

:root[data-theme="light"] .friendly-link-card,
:root[data-theme="light"] .links-random-button,
:root[data-theme="light"] .friendly-link-card__arrow,
:root[data-theme="light"] .form-control,
:root[data-theme="light"] .form-select,
:root[data-theme="light"] .form-textarea,
:root[data-theme="light"] .board-comment__body {
  border-color: rgba(24, 32, 44, 0.14);
  background: rgba(16, 23, 34, 0.06);
}

:root[data-theme="light"] .friendly-link-card:hover,
:root[data-theme="light"] .friendly-link-card:focus-visible {
  border-color: rgba(24, 32, 44, 0.24);
  background: rgba(16, 23, 34, 0.10);
}

:root[data-theme="light"] .theme-box__menu,
:root[data-theme="light"] .language-box__menu {
  border-color: rgba(24, 32, 44, 0.14);
  background: rgba(255, 255, 255, 0.90);
}

:root[data-theme="light"] .theme-box__item:hover,
:root[data-theme="light"] .theme-box__item:focus-visible,
:root[data-theme="light"] .theme-box__item.is-active,
:root[data-theme="light"] .language-box__item:hover,
:root[data-theme="light"] .language-box__item:focus-visible,
:root[data-theme="light"] .language-box__item.is-active {
  background: rgba(16, 23, 34, 0.08);
}

:root[data-theme="light"] .avatar-button {
  border-color: rgba(255, 155, 190, 0.72);
  background: rgba(255, 226, 236, 0.68);
  color: var(--text);
}

.profile-panel,
.user-panel,
.section-card,
.project-card,
.modal-shell,
.repo-editor,
.contact-chip,
.admin-user {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(8, 12, 21, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.profile-panel,
.user-panel,
.section-card,
.modal-shell {
  border-radius: var(--radius-xl);
}

.profile-panel,
.user-panel {
  padding: 28px 30px 30px;
}

.profile-panel {
  align-self: start;
  margin-top: 138px;
  margin-left: 56px;
  justify-self: end;
}

.profile-panel__loading {
  padding: 32px 20px;
  color: var(--muted);
}

:root[data-theme="light"] .profile-panel__loading {
  display: inline-grid;
  place-items: center;
  min-width: min(220px, 100%);
  border-radius: 18px;
  background: rgba(255, 184, 210, 0.58);
  color: #111217;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.profile-head {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.avatar-ring {
  width: clamp(150px, 13vw, 216px);
  height: clamp(150px, 13vw, 216px);
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid rgba(255,255,255,0.92);
  box-shadow:
    0 0 0 10px rgba(255,255,255,0.08),
    0 18px 60px rgba(0,0,0,0.32);
  background: rgba(255,255,255,0.10);
}

:root[data-theme="light"] .avatar-ring {
  border-color: rgba(255, 155, 190, 0.78);
  box-shadow:
    0 0 0 10px rgba(255, 184, 210, 0.16),
    0 18px 60px rgba(255, 155, 190, 0.20);
  background: rgba(255, 232, 240, 0.32);
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-copy {
  min-width: 0;
  padding-top: 6px;
}

.username {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  line-height: 1.2;
  color: var(--red);
  text-shadow: 0 6px 24px rgba(255, 95, 109, 0.28);
}

.lead,
.sublead,
.panel-bio {
  margin: 12px 0 0;
  font-size: clamp(0.96rem, 1.12vw, 1.08rem);
  line-height: 1.78;
  color: var(--text);
}

.panel-bio.panel-bio--fallback {
  color: var(--muted);
}

.contact-list {
  margin-top: 32px;
  display: grid;
  gap: 16px;
  padding-left: clamp(0px, 0.6vw, 10px);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.contact-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
}

.contact-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.contact-platform {
  color: var(--green);
}

.link-line {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  word-break: break-all;
}

.green-text {
  color: var(--green);
}

.orange-text {
  color: var(--orange);
}

.projects-section {
  position: relative;
  z-index: 3;
  margin-top: 48px;
  padding: 0 0 80px;
}

.projects-section__inner,
.admin-section {
  width: min(var(--content-max), calc(100vw - 48px));
  margin: 0 auto;
}

.projects-list {
  display: grid;
  gap: 18px;
}

.project-card {
  border-radius: 22px;
  padding: 0;
  background: rgba(6, 10, 18, 0.86);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.project-card__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 22px 18px 22px 24px;
}

.project-card__titleline {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  line-height: 1.55;
}

.project-card__name {
  color: var(--green);
}

.project-card__colon {
  color: var(--text);
}

.project-card__link {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  word-break: break-all;
}

.project-card__stats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffe58a;
  white-space: nowrap;
}

.project-card__stats img {
  width: 20px;
  height: 20px;
}

.project-card__stats .is-missing {
  color: var(--danger);
}

.project-card__toggle {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  cursor: pointer;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
}

.project-card__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms cubic-bezier(.2,.7,.18,1);
}

.project-card__body-inner {
  min-height: 0;
  overflow: hidden;
}

.project-card__description {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--orange);
  line-height: 1.75;
}

.project-card.is-open .project-card__body {
  grid-template-rows: 1fr;
}

.user-panel__head {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.user-panel__meta {
  min-width: 0;
  padding-top: 6px;
}

.panel-email {
  margin: 12px 0 0;
  color: var(--blue);
  word-break: break-all;
}

.panel-content {
  margin-top: 28px;
  display: grid;
  gap: 22px;
}

.panel-group {
  display: grid;
  gap: 14px;
}

.section-title {
  margin: 0 0 16px;
  font-size: 1.18rem;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 24px;
}

.panel-actions__button,
.form-button {
  min-height: 54px;
  padding: 0 20px;
  border-radius: 18px;
  cursor: pointer;
  font-weight: 800;
}

.panel-actions__button--primary,
.form-button--primary {
  background: linear-gradient(135deg, rgba(37, 95, 255, 0.92), rgba(124, 92, 255, 0.92));
  color: white;
}

.panel-actions__button--primary {
  margin-left: auto;
}

.panel-actions__button--danger,
.form-button--danger {
  background: linear-gradient(135deg, rgba(179, 38, 38, 0.94), rgba(255, 95, 109, 0.92));
  color: white;
}

.form-button--secondary {
  background: rgba(255,255,255,0.10);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.14);
}

.admin-section {
  padding-bottom: 80px;
}

.admin-users {
  display: grid;
  gap: 16px;
}

.admin-user {
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.admin-user__head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: space-between;
}

.admin-user__name {
  color: var(--green);
}

.admin-user__email {
  color: var(--blue);
  word-break: break-all;
}

.admin-user__body {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.user-action-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.user-action__button,
.contact-chip__remove,
.repo-editor__remove,
.modal-close {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  cursor: pointer;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.14);
}

.user-action__button--danger,
.contact-chip__remove,
.repo-editor__remove {
  color: #fff5f5;
  background: rgba(164, 35, 35, 0.76);
  border-color: rgba(255,255,255,0.12);
}

.admin-repos {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.admin-repo-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 8, 16, 0.58);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.site-loader.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.site-loader__dialog {
  min-width: min(280px, calc(100vw - 48px));
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 28px 32px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(8, 12, 21, 0.9);
  box-shadow: 0 28px 72px rgba(0,0,0,0.36);
}

:root[data-theme="light"] .site-loader {
  background: rgba(255, 224, 235, 0.38);
}

:root[data-theme="light"] .site-loader__dialog {
  border-color: rgba(255, 155, 190, 0.72);
  background: rgba(255, 184, 210, 0.58);
  box-shadow: 0 28px 72px rgba(255, 155, 190, 0.18);
}

.site-loader__spinner {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 7px solid rgba(255,255,255,0.14);
  border-top-color: rgba(126, 192, 255, 0.95);
  border-right-color: rgba(96, 255, 186, 0.78);
  animation: site-loader-spin 880ms linear infinite;
  transform: translateZ(0);
  will-change: transform;
}

.site-loader__label {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
}

:root[data-theme="light"] .site-loader__label {
  display: inline-block;
  color: #111217;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

@keyframes site-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 110;
  pointer-events: none;
}

.modal-root.is-open {
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 10, 0.68);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity var(--transition);
}

.modal-root.is-open .modal-overlay {
  opacity: 1;
}

.modal-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-shell {
  width: min(760px, calc(100vw - 32px));
  max-height: min(88vh, 980px);
  overflow: auto;
  padding: 28px;
  opacity: 0;
  transform: translateY(14px) scale(.98);
  transition: opacity var(--transition), transform var(--transition);
}

.modal-shell.modal-shell--narrow {
  width: min(560px, calc(100vw - 32px));
}

.modal-root.is-open .modal-shell {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.modal-title {
  margin: 0;
  font-size: 1.26rem;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row__label {
  color: var(--text);
}

.form-row__hint {
  color: var(--muted);
  font-size: 0.92rem;
}

.form-row__hint[data-state="error"] {
  color: var(--danger);
}

.password-strength {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.password-strength__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.password-strength__bar {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.11);
}

.password-strength__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--danger);
  transition: width var(--transition), background var(--transition);
}

.password-strength[data-strength="2"] .password-strength__bar span {
  background: var(--orange);
}

.password-strength[data-strength="3"] .password-strength__bar span {
  background: var(--blue);
}

.password-strength[data-strength="4"] .password-strength__bar span {
  background: var(--green);
}

.form-control,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 12px 14px;
  outline: none;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(126, 192, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(126, 192, 255, 0.16);
}

.form-textarea {
  min-height: 116px;
}

.form-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-editor,
.repo-editor-list {
  display: grid;
  gap: 14px;
}

.contact-chip,
.repo-editor {
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.contact-chip__grid,
.repo-editor__grid {
  display: grid;
  gap: 12px;
}

.repo-editor__remove {
  justify-self: start;
}

.inline-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: min(420px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  color: white;
  opacity: 0;
  transform: translateY(10px);
  animation: toast-in 180ms ease forwards;
}

.toast--success {
  background: rgba(20, 116, 47, 0.92);
}

.toast--error {
  background: rgba(164, 35, 35, 0.94);
}

.toast--info {
  background: rgba(28, 50, 115, 0.94);
}

@keyframes toast-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.empty-state {
  color: var(--muted);
}

.mono-link {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  word-break: break-all;
}

.repo-list-public {
  display: grid;
  gap: 14px;
}

.repo-list-public .project-card {
  margin: 0;
}

@media (max-width: 1280px) {
  .hero-banner__content {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 620px);
  }
}

@media (max-width: 1080px) {
  .topbar {
    flex-wrap: wrap;
  }

  .hero-banner,
  .hero-banner__content {
    min-height: auto;
  }

  .hero-banner__content {
    display: block;
    padding-top: 140px;
    padding-bottom: 96px;
  }

  .profile-panel {
    margin-top: 0;
    width: min(860px, 100%);
    margin-left: auto;
  }

  .hero-banner__spacer {
    display: none;
  }

  .article-section--links {
    width: min(980px, calc(100vw - 48px));
  }

  .article--links {
    padding: 38px 30px 44px;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-mascot {
    justify-self: center;
    max-width: 220px;
  }

  .links-grid {
    grid-template-columns: 1fr;
    row-gap: 36px;
  }
}

@media (max-width: 820px) {
  .topbar {
    inset: 14px 14px auto 14px;
  }

  .topbar__left,
  .topbar__right {
    gap: 10px;
  }

  .topbar__button {
    min-height: 50px;
    padding: 0 15px;
  }

  .avatar-button {
    width: 52px;
    height: 52px;
  }

  .hero-banner__content,
  .projects-section__inner,
  .admin-section {
    width: min(var(--content-max), calc(100vw - 24px));
  }

  .profile-panel,
  .user-panel,
  .section-card,
  .modal-shell {
    padding: 22px 18px;
  }

  .article-section--links {
    width: min(100%, calc(100vw - 24px));
    padding-top: 140px;
  }

  .article--links {
    padding: 32px 22px 40px;
  }

  .links-panel__head {
    flex-direction: column;
    gap: 18px;
    margin-bottom: 32px;
  }

  .links-random-button {
    width: 100%;
    padding: 18px 22px;
    text-align: center;
  }

  .friendly-link-card {
    grid-template-columns: 82px minmax(0, 1fr) 48px;
    gap: 16px;
    min-height: 104px;
    padding: 12px;
  }

  .friendly-link-card__icon {
    width: 82px;
    height: 82px;
  }

  .friendly-link-card__arrow {
    min-height: 82px;
    font-size: 2.7rem;
  }

  .profile-head,
  .user-panel__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .avatar-ring {
    width: 148px;
    height: 148px;
  }

  .project-card__head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .project-card__stats {
    justify-self: start;
  }

  .project-card__toggle {
    justify-self: start;
  }

  .inline-grid {
    grid-template-columns: 1fr;
  }

  .admin-repo-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1180px) {
  .topbar {
    position: sticky;
    inset: 0;
    padding: 12px;
    background: linear-gradient(180deg, rgba(5, 7, 11, 0.94), rgba(5, 7, 11, 0));
    backdrop-filter: blur(14px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
  }

  .language-box {
    width: min(236px, calc(100vw - 48px));
    min-width: 0;
    flex: 0 0 min(236px, calc(100vw - 48px));
  }

  .topbar__right {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .topbar__left {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .topbar__button,
  .language-box__button,
  .mobile-topbar-menu__toggle {
    min-height: 48px;
  }

  .topbar__right > :not([data-search-open]):not([data-panel-button]) {
    display: none;
  }

  .topbar__right > [data-search-open] {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 18px;
  }

  .topbar__right > [data-panel-button] {
    flex: 0 0 auto;
    width: auto;
    height: 48px;
    min-width: 0;
    padding: 0 12px;
    white-space: nowrap;
  }

  .mobile-topbar-menu {
    display: block;
    position: relative;
    flex: 0 0 auto;
  }

  .mobile-topbar-menu__toggle {
    display: inline-grid;
    place-items: center;
    width: 60px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.94);
    color: #171a20;
    cursor: pointer;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 14px 42px rgba(0,0,0,0.24);
    backdrop-filter: blur(14px);
    transition:
      transform var(--transition),
      background var(--transition),
      border-color var(--transition),
      box-shadow var(--transition);
  }

  .mobile-topbar-menu.is-open .mobile-topbar-menu__toggle {
    transform: rotate(90deg);
  }

  .mobile-topbar-menu__panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: auto;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: min(360px, calc(100vw - 24px));
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 22px;
    background: rgba(8, 12, 21, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition:
      opacity var(--transition),
      transform var(--transition);
  }

  .mobile-topbar-menu.is-open .mobile-topbar-menu__panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .mobile-topbar-menu__panel .topbar__button,
  .mobile-topbar-menu__panel .theme-box,
  .mobile-topbar-menu__panel .icon-button,
  .mobile-topbar-menu__panel .avatar-button {
    width: 100%;
  }

  .mobile-topbar-menu__panel .icon-button,
  .mobile-topbar-menu__panel .avatar-button {
    justify-self: stretch;
    border-radius: 18px;
  }

  .mobile-topbar-menu__panel .avatar-button {
    height: 52px;
  }

  .mobile-topbar-menu__panel .theme-box__menu {
    right: auto;
    left: 0;
  }

  :root[data-theme="light"] .mobile-topbar-menu__toggle {
    border-color: rgba(94, 38, 58, 0.14);
    background: rgba(255, 213, 226, 0.94);
    color: #111217;
    -webkit-text-stroke: 0;
    text-shadow: none;
  }

  :root[data-theme="light"] .mobile-topbar-menu__panel {
    border-color: rgba(24, 32, 44, 0.14);
    background: rgba(255,255,255,0.90);
  }

  .theme-box__button {
    width: 100%;
  }

  .profile-panel,
  .user-panel,
  .section-card,
  .modal-shell {
    border-radius: 22px;
  }

  .project-card {
    border-radius: 20px;
  }
}

.icon-button {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 42px rgba(0,0,0,0.24);
  background: rgba(12, 18, 31, 0.82);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.icon-button svg { width: 24px; height: 24px; }
.board-editor,
.board-list {
  width: min(100%, 1180px);
}
.board-compose__textarea {
  min-height: 160px;
}
.board-post {
  display: grid;
  gap: 18px;
}
.board-post__head,
.board-post__actions,
.board-comment__composer,
.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.board-post__author {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.board-post__body,
.board-comment {
  white-space: pre-wrap;
  word-break: break-word;
}
.board-comments {
  display: grid;
  gap: 12px;
}
.board-comments__list {
  display: grid;
  gap: 10px;
}
.avatar-ring--small {
  width: 56px;
  height: 56px;
}
.section-title--small {
  font-size: 1rem;
}
.panel-actions[hidden],
.admin-section[hidden] {
  display: none !important;
}

.admin-section .section-title {
  text-align: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 18px;
}

.admin-toolbar {
  justify-content: center;
  margin-bottom: 18px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: 0 0 40px;
}

.user-identity {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
}
.user-identity--compact {
  gap: 10px;
}
.user-identity__meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.avatar-ring--tiny {
  width: 42px;
  height: 42px;
  border-width: 3px;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.06), 0 10px 28px rgba(0,0,0,0.24);
}

.board-editor-card {
  display: grid;
  gap: 18px;
}

.board-list {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.board-post {
  display: grid;
  gap: 20px;
  padding: 22px 24px;
}

.board-post__head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.board-post__author {
  align-items: flex-start;
  gap: 14px;
  padding-left: 2px;
  padding-top: 2px;
}

.board-post__time {
  margin-left: auto;
  padding-top: 8px;
  white-space: nowrap;
}

.board-post__body {
  padding-left: 10px;
  line-height: 1.8;
}

.board-post__actions {
  padding-left: 10px;
}

.board-comments {
  gap: 14px;
  padding-left: 10px;
}

.board-comment {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 6px 0 10px;
}

.board-comment__body {
  line-height: 1.7;
  margin-top: 2px;
  padding: 12px 16px;
  border-radius: 18px 18px 18px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(126, 192, 255, 0.08));
  box-shadow: 0 12px 28px rgba(0,0,0,0.16);
}

.board-comment__composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.board-compose__actions,
.board-empty-state,
.empty-state--center {
  justify-content: center;
  text-align: center;
}

.board-list .section-card > .empty-state--center {
  padding: 22px 8px;
}

.board-page-heading {
  width: min(100%, 1180px);
  margin: 0 auto 18px;
  text-align: center;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 900;
  color: var(--text);
  text-shadow: 0 8px 28px rgba(0,0,0,0.28);
}

.board-editor-card {
  display: grid;
  gap: 14px;
}

.board-compose__actions {
  justify-content: center;
}

.empty-state--center {
  text-align: center;
  width: 100%;
}

.board-list .section-card > .empty-state--center {
  padding: 18px 8px;
}
