:root {
  --ink: #101c24;
  --ink-soft: #5a6d7a;
  --muted: #8496a4;
  --line: rgba(16, 28, 36, 0.09);
  --line-strong: rgba(16, 28, 36, 0.14);
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --accent: #0c625d;
  --accent-deep: #084843;
  --accent-soft: rgba(12, 98, 93, 0.11);
  --tone-a: #2b6f98;
  --tone-a-soft: rgba(43, 111, 152, 0.12);
  --tone-a-line: rgba(43, 111, 152, 0.18);
  --tone-b: #9a6a1a;
  --tone-b-soft: rgba(154, 106, 26, 0.12);
  --tone-b-line: rgba(154, 106, 26, 0.18);
  --tone-c: #1b6a44;
  --tone-c-soft: rgba(27, 106, 68, 0.12);
  --tone-c-line: rgba(27, 106, 68, 0.18);
  --tone-d: #6b4f9a;
  --tone-d-soft: rgba(107, 79, 154, 0.12);
  --tone-d-line: rgba(107, 79, 154, 0.18);
  --tone-e: #b42318;
  --tone-e-soft: rgba(180, 35, 24, 0.12);
  --tone-e-line: rgba(180, 35, 24, 0.18);
  --tone-f: #0c625d;
  --tone-f-soft: rgba(12, 98, 93, 0.12);
  --tone-f-line: rgba(12, 98, 93, 0.18);
  --tone-g: #8a4b3a;
  --tone-g-soft: rgba(138, 75, 58, 0.12);
  --tone-g-line: rgba(138, 75, 58, 0.18);
  --tone-h: #3d5a80;
  --tone-h-soft: rgba(61, 90, 128, 0.12);
  --tone-h-line: rgba(61, 90, 128, 0.18);
  --tone-i: #c45c26;
  --tone-i-soft: rgba(196, 92, 38, 0.12);
  --tone-i-line: rgba(196, 92, 38, 0.18);
  --tone-j: #5c6bc0;
  --tone-j-soft: rgba(92, 107, 192, 0.12);
  --tone-j-line: rgba(92, 107, 192, 0.18);
  --tone-k: #00796b;
  --tone-k-soft: rgba(0, 121, 107, 0.12);
  --tone-k-line: rgba(0, 121, 107, 0.18);
  --tone-l: #7b1fa2;
  --tone-l-soft: rgba(123, 31, 162, 0.12);
  --tone-l-line: rgba(123, 31, 162, 0.18);
  --shadow: 0 22px 60px rgba(16, 28, 36, 0.07);
  --shadow-soft: 0 8px 24px rgba(16, 28, 36, 0.05);
  --radius: 16px;
  --font-display: "Syne", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --page-pad: clamp(0.9rem, 3.5vw, 2.8rem);
  --content-max: 1180px;
  --layout-cols: 1;
  --rail-scale: 1;
  --rail-opacity: 1;
  --auth-bar-max: min(24rem, calc(100vw - 2 * var(--page-pad) - var(--safe-left) - var(--safe-right)));
  --card-min: min(100%, 320px);
  --touch-min: 44px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-body);
  background: #e7eef3;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(980px 620px at 4% -12%, #c5dce8 0%, transparent 58%),
    radial-gradient(820px 520px at 96% 0%, #b9d5cb 0%, transparent 54%),
    radial-gradient(700px 480px at 70% 90%, #d5e2d8 0%, transparent 55%),
    linear-gradient(165deg, #f0f5f8 0%, #e4ecf1 46%, #dce6e3 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.38;
  animation: drift 20s var(--ease) infinite alternate;
}

.orb-a {
  width: 420px;
  height: 420px;
  top: 6%;
  right: 2%;
  background: #95c0bb;
}

.orb-b {
  width: 280px;
  height: 280px;
  bottom: 12%;
  left: 0;
  background: #9dbad0;
  animation-delay: -7s;
}

.orb-c {
  width: 200px;
  height: 200px;
  top: 42%;
  left: 48%;
  background: #c4d4b5;
  opacity: 0.22;
  animation-delay: -12s;
}

.grid-wash {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(16, 28, 36, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 28, 36, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at 50% 12%, black 10%, transparent 70%);
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-28px, 34px) scale(1.08); }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.is-authed .hero,
body.is-authed .panel,
body.is-authed .project-card,
body.is-content-ready .hero,
body.is-content-ready .panel,
body.is-content-ready .project-card {
  animation: none;
}

body.is-authed .page-rail,
body.is-content-ready .page-rail {
  visibility: visible;
  opacity: 1;
  transition: none;
}

body.is-authed .page-rail-left .rail-inner,
body.is-authed .page-rail-right .rail-inner,
body.is-content-ready .page-rail-left .rail-inner,
body.is-content-ready .page-rail-right .rail-inner {
  transition: none;
}

@media (min-width: 1240px) {
  body.is-authed .page-rail-left .rail-glass-left,
  body.is-authed .page-rail-right .rail-glass-right,
  body.is-content-ready .page-rail-left .rail-glass-left,
  body.is-content-ready .page-rail-right .rail-glass-right {
    animation: none;
  }
}

main {
  position: relative;
  z-index: 1;
  width: min(var(--content-max), calc(100% - 2 * var(--page-pad)));
  margin: 0 auto;
  padding-bottom: calc(1.2rem + var(--safe-bottom));
}

.page-rails {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(3.5rem, calc((100vw - min(var(--content-max), 100vw - 2 * var(--page-pad))) / 2), 22rem);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s var(--ease),
    visibility 0.4s var(--ease);
}

.page-rail-left {
  left: 0;
}

.page-rail-right {
  right: 0;
}

.rail-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  transition: transform 0.4s var(--ease);
}

.page-rail-left .rail-inner {
  justify-content: flex-end;
  padding: calc(2rem + var(--safe-top)) 1.35rem 2rem clamp(0.75rem, 2vw, 1.75rem);
}

.page-rail-right .rail-inner {
  justify-content: flex-start;
  padding: calc(2rem + var(--safe-top)) clamp(0.75rem, 2vw, 1.75rem) 2rem 1.35rem;
}

.rail-spine {
  position: absolute;
  top: 12%;
  bottom: 14%;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(12, 98, 93, 0.08) 8%,
    rgba(12, 98, 93, 0.55) 42%,
    rgba(43, 111, 152, 0.45) 68%,
    transparent 100%
  );
  box-shadow: 0 0 24px rgba(12, 98, 93, 0.18);
}

.page-rail-left .rail-spine {
  right: 0.55rem;
}

.page-rail-right .rail-spine {
  left: 0.55rem;
}

.rail-spine-dot {
  position: absolute;
  left: 50%;
  width: clamp(5px, 0.55vw, 7px);
  height: clamp(5px, 0.55vw, 7px);
  border-radius: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 2px solid rgba(12, 98, 93, 0.55);
  box-shadow: 0 0 0 4px rgba(12, 98, 93, 0.08);
}

.rail-spine-dot:nth-child(1) {
  top: 18%;
}

.rail-spine-dot:nth-child(2) {
  top: 48%;
  background: var(--accent);
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 4px rgba(12, 98, 93, 0.14), 0 0 18px rgba(12, 98, 93, 0.35);
}

.rail-spine-dot:nth-child(3) {
  top: 78%;
}

.rail-glass {
  position: relative;
  width: min(100%, clamp(7rem, 14vw, 11.5rem));
  padding: clamp(0.7rem, 1.2vw, 1rem) clamp(0.7rem, 1.1vw, 0.95rem);
  border-radius: clamp(14px, 1.4vw, 18px);
  transition:
    transform 0.4s var(--ease),
    opacity 0.4s var(--ease),
    padding 0.4s var(--ease);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.52) 100%);
  backdrop-filter: blur(16px) saturate(1.15);
  box-shadow:
    0 18px 40px rgba(16, 28, 36, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.rail-kicker {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.rail-title {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 0.5rem + 0.85vw, 1.08rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--accent-deep);
  letter-spacing: 0.02em;
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.rail-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(12, 98, 93, 0.08);
  border: 1px solid rgba(12, 98, 93, 0.12);
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 600;
}

.rail-orbit {
  position: absolute;
  top: 18%;
  width: clamp(4.25rem, 7vw, 7.5rem);
  height: clamp(4.25rem, 7vw, 7.5rem);
  transform: translateY(-50%);
  transition:
    width 0.4s var(--ease),
    height 0.4s var(--ease),
    opacity 0.4s var(--ease);
}

.page-rail-right .rail-orbit {
  left: 0.2rem;
}

.rail-orbit-ring,
.rail-orbit-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.rail-orbit-ring:nth-child(1) {
  border: 1px solid rgba(12, 98, 93, 0.18);
  animation: rail-spin 28s linear infinite;
}

.rail-orbit-ring:nth-child(2) {
  inset: 18%;
  border: 1px dashed rgba(43, 111, 152, 0.28);
  animation: rail-spin 18s linear infinite reverse;
}

.rail-orbit-core {
  inset: 38%;
  background: radial-gradient(circle at 35% 35%, #fff 0%, rgba(12, 98, 93, 0.18) 100%);
  box-shadow: 0 0 28px rgba(12, 98, 93, 0.22);
}

.rail-mono {
  margin: 0.35rem 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
}

.rail-metrics {
  display: grid;
  gap: 0.45rem;
}

.rail-metrics span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.38rem 0.55rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(16, 28, 36, 0.06);
}

.rail-metrics i {
  font-style: normal;
  color: var(--muted);
  font-size: 0.72rem;
}

.rail-metrics b {
  font-family: var(--font-display);
  color: var(--accent-deep);
  font-size: 0.82rem;
}

.rail-float {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.55;
  animation: rail-float 9s var(--ease) infinite alternate;
}

.rail-float-a {
  width: clamp(2.5rem, 5vw, 4.5rem);
  height: clamp(2.5rem, 5vw, 4.5rem);
  left: 12%;
  bottom: 18%;
  background: rgba(149, 192, 187, 0.55);
}

.rail-float-b {
  width: clamp(1.75rem, 3.5vw, 3rem);
  height: clamp(1.75rem, 3.5vw, 3rem);
  right: 18%;
  top: 22%;
  background: rgba(157, 186, 208, 0.45);
  animation-delay: -3s;
}

.rail-grid-accent {
  position: absolute;
  right: 0.5rem;
  bottom: 12%;
  width: clamp(4rem, 8vw, 6.5rem);
  height: clamp(4rem, 8vw, 6.5rem);
  opacity: 0.35;
  transition:
    width 0.4s var(--ease),
    height 0.4s var(--ease),
    opacity 0.4s var(--ease);
  background-image:
    linear-gradient(rgba(12, 98, 93, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 98, 93, 0.16) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 72%);
}

@keyframes rail-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rail-float {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}

/* 左右装饰栏：768px 以上渐进显示，随屏宽缩放 */
@media (min-width: 768px) {
  .page-rail {
    visibility: visible;
    opacity: clamp(0.42, 0.42 + (100vw - 768px) / 920, 1);
  }

  .page-rail-left .rail-inner {
    transform: scale(clamp(0.78, 0.78 + (100vw - 768px) / 1680, 1));
    transform-origin: center right;
  }

  .page-rail-right .rail-inner {
    transform: scale(clamp(0.78, 0.78 + (100vw - 768px) / 1680, 1));
    transform-origin: center left;
  }
}

@media (min-width: 1240px) {
  .page-rail-left .rail-glass-left {
    animation: rise 1s var(--ease) 0.12s both;
  }

  .page-rail-right .rail-glass-right {
    animation: rise 1s var(--ease) 0.22s both;
  }

  body.is-workbench .page-rail-left .rail-inner {
    padding-right: clamp(2.5rem, 5.5vw, 4.25rem);
  }

  body.is-workbench .page-rail-right .rail-inner {
    padding-left: clamp(2.5rem, 5.5vw, 4.25rem);
  }

  body.is-workbench .page-rail-left .rail-spine {
    right: clamp(1.35rem, 3vw, 2.35rem);
  }

  body.is-workbench .page-rail-right .rail-spine {
    left: clamp(1.35rem, 3vw, 2.35rem);
  }

  body.is-workbench .page-rail-left .rail-glass-left {
    transform: translateX(-0.75rem);
  }

  body.is-workbench .page-rail-left .rail-float-a {
    left: 8%;
  }

  body.is-workbench .page-rail-left .rail-float-b {
    right: 24%;
  }

  body.is-workbench .page-rail-right .rail-glass-right,
  body.is-workbench .page-rail-right .rail-grid-accent {
    transform: translateX(0.75rem);
  }

  body.is-workbench .page-rail-right .rail-orbit {
    left: clamp(0.85rem, 2vw, 1.35rem);
    transform: translate(0.75rem, -50%);
  }
}

/* 小屏平板：仅保留轨道/竖线，隐藏玻璃卡片避免挤压主内容 */
@media (min-width: 768px) and (max-width: 899px) {
  .rail-glass {
    opacity: 0;
    visibility: hidden;
  }

  .rail-float,
  .rail-grid-accent {
    opacity: 0.2;
  }

  .page-rail {
    opacity: clamp(0.3, 0.3 + (100vw - 768px) / 440, 0.55);
  }
}

/* 平板：精简文案与标签 */
@media (min-width: 900px) and (max-width: 1023px) {
  .rail-list,
  .rail-metrics {
    display: none;
  }

  .rail-title,
  .rail-mono {
    margin-bottom: 0.35rem;
    font-size: clamp(0.82rem, 1.6vw, 0.95rem);
  }

  .rail-kicker {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }

  .rail-float,
  .rail-grid-accent {
    opacity: 0.35;
  }
}

/* 窄屏桌面：保留结构，缩小卡片 */
@media (min-width: 1024px) and (max-width: 1239px) {
  .rail-chip {
    font-size: 0.7rem;
    min-height: 1.55rem;
    padding: 0.14rem 0.45rem;
  }

  .rail-metrics i {
    font-size: 0.68rem;
  }

  .rail-metrics b {
    font-size: 0.76rem;
  }
}

/* 超宽屏：略放大装饰，避免两侧显得空 */
@media (min-width: 1600px) {
  .page-rail {
    max-width: 24rem;
  }

  .rail-glass {
    width: min(100%, 12.5rem);
  }

  .rail-orbit {
    width: 8.25rem;
    height: 8.25rem;
  }
}

/* 窄屏 Web：单列堆叠，避免卡片挤压 */
@media (min-width: 721px) and (max-width: 959px) {
  :root {
    --page-pad: clamp(0.85rem, 3vw, 1.35rem);
    --content-max: 760px;
    --rail-scale: 0;
    --rail-opacity: 0;
    --auth-bar-max: min(18rem, calc(100vw - 2 * var(--page-pad) - var(--safe-left) - var(--safe-right)));
  }

  main {
    width: min(var(--content-max), calc(100% - 2 * var(--page-pad)));
  }

  .hero {
    max-width: none;
    padding-top: calc(0.85rem + var(--safe-top));
  }

  .hero-title-row {
    gap: 0.75rem;
  }

  .search-dock {
    margin-bottom: 0.85rem;
  }

  .project-card {
    padding: 0.95rem 0.9rem 0.9rem;
  }
}

/* 中屏 Web：双列网格 */
@media (min-width: 960px) and (max-width: 1279px) {
  :root {
    --layout-cols: 2;
    --page-pad: clamp(1rem, 2.5vw, 1.75rem);
    --content-max: 1040px;
    --rail-scale: 0.88;
    --rail-opacity: 0.72;
    --auth-bar-max: min(20rem, 36vw);
  }

  .hero h1 {
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  }

  .project-card {
    padding: 0.98rem 0.92rem 0.92rem;
  }
}

/* 宽屏 Web：三列网格 */
@media (min-width: 1280px) {
  :root {
    --layout-cols: 3;
    --content-max: 1180px;
    --rail-scale: 1;
    --rail-opacity: 1;
    --auth-bar-max: 24rem;
  }
}

/* 布局档位：左右装饰栏 + 右上角用户栏 */
html[data-layout-tier="compact"] .page-rails {
  display: none !important;
}

html[data-layout-tier="compact"].is-web body.is-authed .hero,
html[data-layout-tier="compact"].is-web body.is-authed-hint .hero {
  padding-top: calc(3.15rem + var(--safe-top));
}

html[data-layout-tier="compact"] .auth-user-bar {
  top: calc(0.55rem + var(--safe-top));
  right: calc(0.55rem + var(--safe-right));
  left: auto;
  gap: 0.4rem;
  padding: 0.32rem 0.5rem;
  font-size: 0.78rem;
  max-width: var(--auth-bar-max);
}

html[data-layout-tier="compact"] .auth-user-bar__text::before {
  content: none !important;
}

html[data-layout-tier="compact"] .auth-user-bar__profile {
  gap: 0.38rem;
  min-width: 0;
  max-width: calc(100% - 3.5rem);
}

html[data-layout-tier="compact"] .auth-user-bar__text strong {
  display: block;
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-layout-tier="compact"] .auth-user-bar__logout {
  min-height: var(--touch-min);
  padding: 0 0.35rem;
  font-size: 0.76rem;
}

html[data-layout-tier="medium"] {
  --rail-scale: 0.88;
  --rail-opacity: 0.72;
  --auth-bar-max: min(20rem, 36vw);
}

html[data-layout-tier="medium"] .page-rail {
  opacity: var(--rail-opacity);
}

html[data-layout-tier="medium"] .page-rail-left .rail-inner,
html[data-layout-tier="medium"] .page-rail-right .rail-inner {
  transform: scale(var(--rail-scale));
}

html[data-layout-tier="medium"] .rail-list,
html[data-layout-tier="medium"] .rail-metrics,
html[data-layout-tier="medium"] .rail-float,
html[data-layout-tier="medium"] .rail-grid-accent {
  display: none;
}

html[data-layout-tier="medium"] .rail-glass {
  width: min(100%, 8.5rem);
  padding: 0.65rem 0.7rem;
}

html[data-layout-tier="medium"] .rail-orbit {
  width: 5.5rem;
  height: 5.5rem;
  opacity: 0.75;
}

html[data-layout-tier="medium"] .auth-user-bar {
  top: calc(0.65rem + var(--safe-top));
  right: calc(0.65rem + var(--safe-right));
  max-width: var(--auth-bar-max);
  gap: 0.55rem;
  padding: 0.38rem 0.62rem;
  font-size: 0.8rem;
}

html[data-layout-tier="medium"] .auth-user-bar__text::before {
  content: none !important;
}

html[data-layout-tier="medium"] .auth-user-bar__text strong {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: bottom;
}

html[data-layout-tier="medium"].is-web body.is-authed .hero-title-row,
html[data-layout-tier="medium"].is-web body.is-authed-hint .hero-title-row {
  padding-right: min(11rem, 30vw);
}

html[data-layout-tier="wide"] .auth-user-bar {
  max-width: var(--auth-bar-max);
}

html[data-layout-tier="wide"].is-web body.is-authed .hero-title-row,
html[data-layout-tier="wide"].is-web body.is-authed-hint .hero-title-row {
  padding-right: min(12rem, 22vw);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}

.brand-mark {
  width: clamp(3rem, 4.8vw, 3.4rem);
  height: clamp(3rem, 4.8vw, 3.4rem);
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 12px 28px rgba(12, 98, 93, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-mark svg,
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero {
  max-width: 42rem;
  padding: calc(1.15rem + var(--safe-top)) 0 clamp(1.1rem, 3vw, 1.6rem);
  animation: rise 0.85s var(--ease) both;
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hero-copy {
  min-width: 0;
  display: grid;
  gap: 0.45rem;
  align-content: center;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--accent-deep);
}

.hero-lead {
  margin: 0;
  max-width: 30rem;
  color: var(--ink-soft);
  font-size: clamp(0.92rem, 2.4vw, 1.02rem);
}

.search-dock {
  position: sticky;
  top: var(--safe-top);
  z-index: 20;
  padding: 0.55rem;
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: var(--shadow-soft);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: var(--touch-min);
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  background: var(--surface-solid);
  border: 1px solid transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.22s, border-color 0.22s;
}

.search-field:focus-within {
  box-shadow:
    inset 0 0 0 1px var(--accent),
    0 0 0 4px var(--accent-soft);
}

.search-icon {
  width: 1.1rem;
  height: 1.1rem;
  stroke: var(--muted);
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

#searchInput {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  min-height: 1.5rem;
}

#searchInput::placeholder {
  color: var(--muted);
}

.panel {
  margin-bottom: 2rem;
  animation: rise 0.7s var(--ease) both;
}

.project-list {
  column-width: 320px;
  column-gap: 1.1rem;
  column-fill: balance;
}

.project-list.layout-columns {
  display: grid;
  grid-template-columns: repeat(var(--layout-cols), minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.1rem);
  column-width: auto;
  columns: auto;
}

.project-list.layout-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 2vw, 1.1rem);
  column-width: auto;
  columns: auto;
}

.project-list.layout-search {
  display: grid;
  grid-template-columns: repeat(var(--layout-cols), minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.1rem);
  column-width: auto;
  columns: auto;
}

.project-column {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
}

.project-list.layout-columns .project-card,
.project-list.layout-stack .project-card,
.project-list.layout-search .project-card {
  margin-bottom: 0;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  height: auto;
  margin-bottom: 1.1rem;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  padding: 1.05rem 1rem 1rem;
  border: 1px solid rgba(16, 28, 36, 0.06);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(16, 28, 36, 0.05);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
  animation: rise 0.55s var(--ease) both;
  -webkit-user-drag: none;
  user-drag: none;
}

.project-list.is-layout-draggable .project-card.has-drag-handle {
  position: relative;
}

.project-card.has-drag-handle .project-logo {
  margin-left: 1.2rem;
}

.project-card.is-dragging {
  opacity: 0.72;
  transform: scale(0.985);
  border-color: rgba(12, 98, 93, 0.28);
  box-shadow: 0 18px 36px rgba(12, 98, 93, 0.14);
}

.project-column.is-drop-target {
  border-radius: 18px;
  outline: 2px dashed rgba(12, 98, 93, 0.28);
  outline-offset: 4px;
  background: rgba(12, 98, 93, 0.03);
}

.card-drag-handle {
  position: absolute;
  top: 0.62rem;
  left: 0.62rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: none;
  border-radius: 7px;
  background: #ffffff;
  color: rgba(16, 28, 36, 0.26);
  box-shadow: none;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  transition: background 0.18s, color 0.18s;
}

.card-drag-handle:hover {
  color: rgba(16, 28, 36, 0.38);
  background: rgba(16, 28, 36, 0.03);
}

.card-drag-grip {
  width: 0.58rem;
  height: 0.72rem;
  background:
    radial-gradient(circle, currentColor 1.1px, transparent 1.2px) 0 0 / 100% 33.33%,
    radial-gradient(circle, currentColor 1.1px, transparent 1.2px) 0 50% / 100% 33.33%,
    radial-gradient(circle, currentColor 1.1px, transparent 1.2px) 0 100% / 100% 33.33%;
  opacity: 0.9;
}

.card-drag-handle:focus-visible {
  outline: none;
  color: rgba(12, 98, 93, 0.55);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.card-drag-handle:active {
  cursor: grabbing;
  color: rgba(12, 98, 93, 0.62);
  background: rgba(12, 98, 93, 0.05);
}

body.is-card-dragging {
  cursor: grabbing;
  user-select: none;
}

body.is-card-dragging .card-drag-handle {
  cursor: grabbing;
}

body.is-card-dragging .project-card {
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease), border-color 0.18s var(--ease);
}

body.is-card-dragging .module-link {
  pointer-events: none;
}

.layout-toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.2rem + var(--safe-bottom));
  z-index: 40;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  background: rgba(16, 28, 36, 0.88);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(16, 28, 36, 0.18);
  pointer-events: none;
}

.layout-toast[data-state="error"] {
  background: rgba(180, 35, 24, 0.92);
}

.project-head {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.65rem;
}

.project-logo {
  width: 2.55rem;
  height: 2.55rem;
  flex-shrink: 0;
  border-radius: 11px;
  overflow: hidden;
  background: #f4f8fa;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem;
  box-sizing: border-box;
}

.project-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.project-meta {
  min-width: 0;
  display: grid;
  gap: 0.22rem;
  padding-top: 0.04rem;
}

.project-title-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  flex-wrap: wrap;
}

.project-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #152028;
  text-align: left;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.project-category {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #f2f5f8;
  color: #6b7c89;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.35;
}

.project-desc {
  margin: 0;
  color: #8a9aa7;
  font-size: 0.74rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-head-aside {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-top: 0.08rem;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  flex-shrink: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.project-status i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
}

.project-status.status-normal {
  color: #1b6a44;
  background: rgba(27, 106, 68, 0.1);
}

.project-status.status-maintenance {
  color: #9a6a1a;
  background: rgba(154, 106, 26, 0.12);
}

.project-status.status-offline {
  color: #8a4b3a;
  background: rgba(138, 75, 58, 0.12);
}

.module-buttons {
  display: grid;
  gap: 0.55rem;
  flex: 0 0 auto;
  width: 100%;
  align-content: start;
  margin-top: 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(16, 28, 36, 0.06);
}

.module-buttons.has-lang {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.module-buttons.has-lang.layout-grid,
.module-buttons.has-lang.layout-2,
.module-buttons.has-lang.layout-3,
.module-buttons.has-lang.layout-1 {
  display: flex;
  flex-direction: column;
}

.module-buttons.has-lang .module-pair-row {
  flex: 0 0 auto;
  align-items: stretch;
}

.module-buttons.has-lang .module-lang-block {
  flex: 0 0 auto;
}

.module-buttons.has-custom-groups {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.module-buttons.has-custom-groups .module-pair-row,
.module-buttons.has-custom-groups .module-custom-group-block {
  width: 100%;
}

.module-buttons.has-app .module-app-block,
.module-buttons.has-ticket .module-ticket-block,
.module-buttons.has-hotel .module-hotel-block,
.module-buttons.has-custom-groups .module-custom-group-block {
  grid-column: 1 / -1;
  flex: 0 0 auto;
  width: 100%;
}

.module-buttons.is-bawanli {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.module-buttons.is-bawanli .module-pair-row,
.module-buttons.is-bawanli .module-ticket-block,
.module-buttons.is-bawanli .module-hotel-block {
  width: 100%;
}

.module-app-block,
.module-ticket-block,
.module-hotel-block,
.module-custom-group-block {
  display: grid;
  gap: 0.45rem;
}

.module-app-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.module-pair-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  width: 100%;
}

.module-link.is-pair {
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  min-height: 3.15rem;
  height: auto;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  gap: 0.55rem;
}

.module-link.is-pair .module-tag {
  width: 2.15rem;
  min-width: 2.15rem;
  min-height: 1.45rem;
  padding: 0.18rem 0;
  border-radius: 7px;
  font-size: 0.72rem;
}

.module-link.is-pair .module-label {
  flex: 1 1 auto;
  font-size: 0.84rem;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.35;
  word-break: break-word;
}

.module-link.is-pair .module-arrow {
  width: 0.95rem;
  height: 0.95rem;
  opacity: 0.8;
}

.module-lang-block {
  display: grid;
  gap: 0.45rem;
}

.module-lang-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 1.1rem;
  padding: 0 0.1rem;
  line-height: 1.2;
}

.module-lang-title {
  color: #5f717e;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.2;
}

.module-lang-region {
  color: #9aa8b4;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
}

.module-lang-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.module-link.is-lang {
  justify-content: center;
  height: 2.15rem;
  min-height: 2.15rem;
  padding: 0.3rem 0.4rem;
  border-radius: 999px;
  background: transparent !important;
  gap: 0.28rem;
}

.module-link.is-lang .module-tag {
  min-width: 0;
  padding: 0;
  background: transparent !important;
  color: inherit;
  font-size: 0.7rem;
}

.module-link.is-lang .module-label {
  flex: 0 1 auto;
  font-size: 0.72rem;
}

.module-link.is-lang .module-arrow {
  display: none;
}

.module-link.is-lang.tone-a {
  color: var(--tone-a);
  border-color: var(--tone-a-line);
  background: rgba(43, 111, 152, 0.06) !important;
}

.module-link.is-lang.tone-b {
  color: var(--tone-b);
  border-color: var(--tone-b-line);
  background: rgba(154, 106, 26, 0.06) !important;
}

.module-link.is-lang.tone-c {
  color: var(--tone-c);
  border-color: var(--tone-c-line);
  background: rgba(27, 106, 68, 0.06) !important;
}

.module-link.is-lang.tone-d {
  color: var(--tone-d);
  border-color: var(--tone-d-line);
  background: rgba(107, 79, 154, 0.06) !important;
}

.module-link.is-lang.tone-e {
  color: var(--tone-e);
  border-color: var(--tone-e-line);
  background: rgba(180, 35, 24, 0.06) !important;
}

.module-link.is-lang.tone-f {
  color: var(--tone-f);
  border-color: var(--tone-f-line);
  background: rgba(12, 98, 93, 0.06) !important;
}

.module-link.is-lang.tone-g {
  color: var(--tone-g);
  border-color: var(--tone-g-line);
  background: rgba(138, 75, 58, 0.06) !important;
}

.module-link.is-lang.tone-h {
  color: var(--tone-h);
  border-color: var(--tone-h-line);
  background: rgba(61, 90, 128, 0.06) !important;
}

.module-link.is-lang.tone-i {
  color: var(--tone-i);
  border-color: var(--tone-i-line);
  background: rgba(196, 92, 38, 0.06) !important;
}

.module-link.is-lang.tone-j {
  color: var(--tone-j);
  border-color: var(--tone-j-line);
  background: rgba(92, 107, 192, 0.06) !important;
}

.module-link.is-lang.tone-k {
  color: var(--tone-k);
  border-color: var(--tone-k-line);
  background: rgba(0, 121, 107, 0.06) !important;
}

.module-link.is-lang.tone-l {
  color: var(--tone-l);
  border-color: var(--tone-l-line);
  background: rgba(123, 31, 162, 0.06) !important;
}

.module-buttons.layout-grid,
.module-buttons.layout-3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
}

.module-buttons.layout-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
}

.module-buttons.layout-1 {
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  display: grid;
}

.module-buttons.layout-3 > :first-child {
  grid-column: 1 / -1;
}

.module-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
  min-height: 3.15rem;
  padding: 0.45rem 0.6rem;
  border-radius: 11px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
  touch-action: manipulation;
}

.module-link.is-compact {
  justify-content: flex-start;
}

.module-link.is-tile {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.42rem;
  min-height: 2.45rem;
  height: 2.45rem;
  padding: 0.45rem 0.6rem;
}

.module-link.is-single {
  min-height: 3.9rem;
  padding: 0.7rem 0.75rem;
  gap: 0.65rem;
}

.module-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 1.7rem;
  padding: 0.12rem 0.38rem;
  border-radius: 6px;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #fff;
}

.module-label {
  min-width: 0;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  line-height: 1.35;
  word-break: break-word;
  font-size: 0.78rem;
  font-weight: 700;
}

.module-link.is-compact .module-label {
  flex: 1 1 auto;
}

.module-arrow {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
  margin-left: auto;
  opacity: 0.72;
}

.module-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.4rem;
}

.module-link.is-tile .module-label {
  font-size: 0.86rem;
  white-space: normal;
}

.module-hint {
  color: #8496a4;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.module-single-icon {
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid currentColor;
  opacity: 0.9;
}

.module-single-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.module-single-body {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 0.18rem;
}

.module-single-title-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.module-single-title-row .module-label {
  color: var(--ink);
  font-size: 0.84rem;
}

.module-enter {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  min-height: 2rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
}

.module-enter .module-arrow {
  margin-left: 0;
  width: 0.78rem;
  height: 0.78rem;
}

.module-link.tone-a {
  color: var(--tone-a);
  background: var(--tone-a-soft);
  border-color: var(--tone-a-line);
}

.module-link.tone-a .module-tag {
  background: var(--tone-a);
}

.module-link.tone-b {
  color: var(--tone-b);
  background: var(--tone-b-soft);
  border-color: var(--tone-b-line);
}

.module-link.tone-b .module-tag {
  background: var(--tone-b);
}

.module-link.tone-c {
  color: var(--tone-c);
  background: var(--tone-c-soft);
  border-color: var(--tone-c-line);
}

.module-link.tone-c .module-tag {
  background: var(--tone-c);
}

.module-link.tone-d {
  color: var(--tone-d);
  background: var(--tone-d-soft);
  border-color: var(--tone-d-line);
}

.module-link.tone-d .module-tag {
  background: var(--tone-d);
}

.module-link.tone-e {
  color: var(--tone-e);
  background: var(--tone-e-soft);
  border-color: var(--tone-e-line);
}

.module-link.tone-e .module-tag {
  background: var(--tone-e);
}

.module-link.tone-f {
  color: var(--tone-f);
  background: var(--tone-f-soft);
  border-color: var(--tone-f-line);
}

.module-link.tone-f .module-tag {
  background: var(--tone-f);
}

.module-link.tone-g {
  color: var(--tone-g);
  background: var(--tone-g-soft);
  border-color: var(--tone-g-line);
}

.module-link.tone-g .module-tag {
  background: var(--tone-g);
}

.module-link.tone-h {
  color: var(--tone-h);
  background: var(--tone-h-soft);
  border-color: var(--tone-h-line);
}

.module-link.tone-h .module-tag {
  background: var(--tone-h);
}

.module-link.tone-i {
  color: var(--tone-i);
  background: var(--tone-i-soft);
  border-color: var(--tone-i-line);
}

.module-link.tone-i .module-tag {
  background: var(--tone-i);
}

.module-link.tone-j {
  color: var(--tone-j);
  background: var(--tone-j-soft);
  border-color: var(--tone-j-line);
}

.module-link.tone-j .module-tag {
  background: var(--tone-j);
}

.module-link.tone-k {
  color: var(--tone-k);
  background: var(--tone-k-soft);
  border-color: var(--tone-k-line);
}

.module-link.tone-k .module-tag {
  background: var(--tone-k);
}

.module-link.tone-l {
  color: var(--tone-l);
  background: var(--tone-l-soft);
  border-color: var(--tone-l-line);
}

.module-link.tone-l .module-tag {
  background: var(--tone-l);
}

.module-link.unavailable {
  opacity: 0.48;
  color: var(--muted);
  background: #f5f7f9;
  border-color: var(--line);
  pointer-events: none;
}

.module-link.unavailable .module-tag {
  background: #9aa8b4;
}

.module-link.unavailable .module-enter {
  border-color: #c5ced6;
  color: #8496a4;
}

.empty-state {
  margin: 1.2rem 0 0;
  padding: 2rem 1.2rem;
  text-align: center;
  color: var(--ink-soft);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.4);
}

.site-footer {
  margin-top: 3rem;
  padding: 0.6rem 0.5rem calc(0.6rem + var(--safe-bottom));
  text-align: center;
}

.footer-title {
  margin: 0;
  color: #5a6d7a;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.footer-meta {
  margin: 0.45rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.55rem;
  color: #8a9aa7;
  font-size: 0.78rem;
  line-height: 1.5;
}

.footer-dot {
  color: #b3c0ca;
}

@media (prefers-reduced-motion: reduce) {
  .page-rail,
  .page-rail *,
  .rail-glass,
  .rail-inner,
  .rail-orbit,
  .rail-orbit-ring,
  .rail-float {
    animation: none !important;
    transition: none !important;
  }
}

@media (hover: hover) and (pointer: fine) {
  .brand:hover {
    transform: translateY(-1px);
  }

  .project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(12, 98, 93, 0.18);
    box-shadow: var(--shadow);
  }

  .module-link:not(.unavailable):hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
  }
}

@media (max-width: 720px) {
  :root {
    --page-pad: 0.85rem;
    --radius: 16px;
    --h5-appbar-height: 3.35rem;
    --h5-surface: #f4f7f6;
    --h5-card: #ffffff;
    --h5-ink-on-dark: rgba(255, 255, 255, 0.92);
  }

  body {
    background: var(--h5-surface);
  }

  body.is-h5 .atmosphere {
    background:
      radial-gradient(520px 320px at 0% -8%, rgba(12, 98, 93, 0.14), transparent 62%),
      radial-gradient(420px 280px at 100% 0%, rgba(43, 111, 152, 0.1), transparent 58%),
      linear-gradient(180deg, #eef4f2 0%, var(--h5-surface) 42%, #fafbfb 100%);
  }

  .page-rails {
    display: none !important;
  }

  .atmosphere .orb {
    opacity: 0.12;
    filter: blur(48px);
  }

  .grid-wash {
    opacity: 0.05;
  }

  html.is-authed-hint .h5-shell,
  html.is-authed .h5-shell,
  body.is-authed .h5-shell {
    display: block;
    position: sticky;
    top: 0;
    z-index: 140;
    padding:
      calc(0.55rem + var(--safe-top))
      calc(var(--page-pad) + var(--safe-right))
      0.55rem
      calc(var(--page-pad) + var(--safe-left));
    background:
      linear-gradient(135deg, #0a5652 0%, #0c625d 48%, #0f756f 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 28px rgba(8, 72, 67, 0.22);
  }

  .h5-appbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    min-height: var(--h5-appbar-height);
  }

  .h5-appbar-brand {
    display: flex;
    align-items: center;
    gap: 0.62rem;
    min-width: 0;
    flex: 1;
    text-decoration: none;
    color: inherit;
  }

  .h5-appbar-logo {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
      0 8px 18px rgba(0, 0, 0, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.24);
  }

  .h5-appbar-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .h5-appbar-copy {
    min-width: 0;
    display: grid;
    gap: 0.06rem;
  }

  .h5-appbar-kicker {
    color: rgba(255, 255, 255, 0.68);
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1.2;
  }

  .h5-appbar-name {
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .h5-shell .auth-user-bar.h5-session {
    position: static;
    top: auto;
    right: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 0.82rem;
    color: var(--h5-ink-on-dark);
  }

  .h5-session-user {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    min-width: 0;
    max-width: 8.5rem;
    padding: 0.22rem 0.55rem 0.22rem 0.22rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  .h5-shell .auth-user-bar__avatar.h5-session-avatar {
    display: grid !important;
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.78rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
  }

  .h5-session-text {
    display: grid;
    gap: 0.06rem;
    min-width: 0;
  }

  .h5-session-label {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.62rem;
    line-height: 1.2;
  }

  .h5-session-text strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
  }

  .h5-shell .auth-user-bar.h5-session .auth-user-bar__logout.h5-session-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.22rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
    color: #ffffff !important;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    flex-shrink: 0;
  }

  .h5-shell .auth-user-bar.h5-session .h5-session-logout-text {
    display: inline !important;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: normal;
    line-height: inherit;
    color: inherit !important;
  }

  .h5-shell .auth-user-bar.h5-session .h5-session-logout-icon {
    display: none;
  }

  .h5-shell .auth-user-bar.h5-session .auth-user-bar__logout.h5-session-logout:active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff !important;
  }

  .auth-gate-shell {
    width: min(100%, 24rem);
  }

  .auth-gate-card {
    padding: 1.75rem 1.35rem 1.45rem;
    border-radius: 22px;
  }

  .auth-gate-mark {
    width: 4.25rem;
    height: 4.25rem;
    margin-bottom: 0.15rem;
  }

  .auth-gate-brand {
    font-size: 0.95rem;
  }

  .auth-gate-head h2 {
    font-size: 1.34rem;
    line-height: 1.3;
  }

  .auth-gate-lead {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .auth-gate {
    padding:
      calc(0.85rem + var(--safe-top))
      calc(0.85rem + var(--safe-right))
      calc(0.85rem + var(--safe-bottom))
      calc(0.85rem + var(--safe-left));
  }

  .auth-gate-btn {
    min-height: 3rem;
    font-size: 0.96rem;
  }

  .auth-gate.is-h5-gate .auth-gate-browser {
    display: flex;
    flex-direction: column;
  }

  .auth-gate.is-h5-gate #wecomOAuthBtn {
    order: 1;
  }

  .auth-gate.is-h5-gate .auth-gate-or {
    order: 2;
  }

  .auth-gate.is-h5-gate #wecomQrBtn {
    order: 3;
  }

  html.is-authed-hint .hero,
  html.is-authed .hero,
  body.is-authed .hero {
    display: none;
  }

  html.is-h5 .hero,
  html.is-h5 .panel,
  html.is-h5 .project-card {
    animation: none;
  }

  main {
    width: min(var(--content-max), calc(100% - 2 * var(--page-pad)));
    padding-bottom: calc(1.25rem + var(--safe-bottom));
  }

  html.is-authed-hint main,
  html.is-authed main,
  body.is-authed main {
    padding-top: 0.65rem;
  }

  html.auth-booting body main,
  html.auth-booting body .h5-shell {
    visibility: hidden;
  }

  html.auth-ready body main,
  html.auth-ready body .h5-shell {
    visibility: visible;
  }

  .h5-hero {
    max-width: none;
    margin-bottom: 0.35rem;
    padding:
      calc(0.75rem + var(--safe-top))
      0
      0.85rem;
  }

  .h5-hero .hero-title-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.15rem 1rem 1.05rem;
    border-radius: 22px;
    background:
      linear-gradient(145deg, rgba(12, 98, 93, 0.96) 0%, rgba(8, 72, 67, 0.98) 100%);
    box-shadow: 0 16px 36px rgba(8, 72, 67, 0.22);
    position: relative;
    overflow: hidden;
  }

  .h5-hero .hero-title-row::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.16), transparent 42%),
      radial-gradient(circle at 8% 88%, rgba(255, 255, 255, 0.08), transparent 38%);
    pointer-events: none;
  }

  .h5-hero .brand {
    position: relative;
    z-index: 1;
    align-self: flex-start;
  }

  .h5-hero .brand-mark {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 14px;
    box-shadow:
      0 12px 28px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }

  .h5-hero .hero-copy {
    position: relative;
    z-index: 1;
    gap: 0.55rem;
    margin-top: 0.85rem;
  }

  .h5-hero h1 {
    color: #fff;
    font-size: 1.38rem;
    line-height: 1.32;
  }

  .h5-hero .hero-lead {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.86rem;
    line-height: 1.55;
    max-width: none;
  }

  .h5-panel {
    margin-bottom: 1rem;
  }

  .h5-list-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
    padding: 0 0.1rem;
  }

  .h5-list-head[hidden] {
    display: none !important;
  }

  .h5-list-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-deep);
    letter-spacing: -0.02em;
  }

  .h5-list-count {
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 500;
    white-space: nowrap;
  }

  .h5-search {
    position: sticky;
    top: calc(var(--h5-appbar-height) + var(--safe-top) + 0.55rem);
    z-index: 30;
    margin-bottom: 0.85rem;
    padding: 0.35rem;
    border: 1px solid rgba(16, 28, 36, 0.06);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 22px rgba(16, 28, 36, 0.06);
    backdrop-filter: blur(12px) saturate(1.05);
  }

  body:not(.is-authed):not(.is-authed-hint) .h5-search {
    top: calc(0.35rem + var(--safe-top));
  }

  .h5-search .search-field {
    min-height: 2.65rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
  }

  .h5-search .search-field:focus-within {
    box-shadow: inset 0 0 0 1px rgba(12, 98, 93, 0.35);
  }

  #searchInput {
    font-size: 0.94rem;
    min-height: 1.75rem;
  }

  .project-list,
  .project-list.layout-columns,
  .project-list.layout-stack,
  .project-list.layout-search {
    column-width: auto;
    columns: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .project-column {
    display: contents;
  }

  .project-card {
    margin-bottom: 0;
    padding: 0;
    border-radius: 20px;
    border: 1px solid rgba(16, 28, 36, 0.05);
    background: var(--h5-card);
    box-shadow: 0 8px 24px rgba(16, 28, 36, 0.05);
    overflow: hidden;
  }

  .project-card[data-status="normal"] {
    border-top: 3px solid var(--accent);
  }

  .project-card[data-status="warning"] {
    border-top: 3px solid #c45c26;
  }

  .project-card[data-status="error"] {
    border-top: 3px solid #b42318;
  }

  .project-head {
    gap: 0.72rem;
    align-items: center;
    padding: 0.95rem 0.95rem 0.55rem;
  }

  .project-logo {
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    padding: 0.18rem;
    background: #f6faf9;
  }

  .project-name {
    font-size: 1.06rem;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .project-desc {
    font-size: 0.78rem;
    line-height: 1.48;
    -webkit-line-clamp: 2;
    color: var(--ink-soft);
  }

  .project-head-aside {
    align-self: center;
  }

  .project-status {
    font-size: 0.64rem;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    background: rgba(12, 98, 93, 0.08);
  }

  .module-buttons {
    flex: 0 0 auto;
    gap: 0;
    padding: 0 0.65rem 0.65rem;
  }

  .module-buttons.layout-grid,
  .module-buttons.layout-3,
  .module-buttons.layout-2,
  .module-buttons.layout-1 {
    grid-template-rows: auto;
    gap: 0.45rem;
  }

  .module-pair-row {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }

  .module-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    width: 100%;
    font-size: 0.84rem;
    font-weight: 600;
    border-radius: 14px;
    min-height: 2.85rem;
    padding: 0.62rem 0.75rem;
    border: 1px solid rgba(16, 28, 36, 0.06);
    background: #f8fbfa;
    box-shadow: none;
  }

  .module-link:active {
    transform: scale(0.985);
    background: #eef6f3;
  }

  .module-link.is-pair,
  .module-link.is-single {
    min-height: 2.85rem;
    height: auto;
    padding: 0.62rem 0.75rem;
  }

  .module-arrow {
    flex-shrink: 0;
    width: 0.95rem;
    height: 0.95rem;
    opacity: 0.55;
  }

  .module-lang-block,
  .module-app-block,
  .module-ticket-block,
  .module-hotel-block,
  .module-custom-group-block {
    border-radius: 14px;
    padding: 0.55rem;
    background: rgba(16, 28, 36, 0.02);
    border: 1px solid rgba(16, 28, 36, 0.05);
  }

  .module-lang-head,
  .module-lang-title {
    font-size: 0.72rem;
  }

  .module-lang-row {
    gap: 0.4rem;
  }

  .module-link.is-lang {
    min-height: 2.5rem;
    font-size: 0.78rem;
    justify-content: center;
  }

  .site-footer {
    margin-top: 1.25rem;
    padding-bottom: calc(0.5rem + var(--safe-bottom));
    text-align: center;
  }

  .footer-title {
    font-size: 0.74rem;
    line-height: 1.5;
    color: var(--muted);
  }

  .footer-meta {
    font-size: 0.72rem;
    gap: 0.25rem 0.4rem;
  }
}

@media (max-width: 380px) {
  .module-link {
    font-size: 0.74rem;
  }

  .h5-appbar-logo {
    width: 2.1rem;
    height: 2.1rem;
  }

  .h5-appbar-name {
    font-size: 0.9rem;
  }

  .h5-session-user {
    max-width: 6.5rem;
    padding-right: 0.35rem;
  }

  .h5-session-text strong {
    max-width: 4.5rem;
  }

  .h5-shell .auth-user-bar.h5-session .auth-user-bar__logout.h5-session-logout {
    min-width: 2.35rem;
    padding: 0.22rem;
  }

  .h5-shell .auth-user-bar.h5-session .h5-session-logout-text {
    display: none !important;
  }

  .h5-shell .auth-user-bar.h5-session .h5-session-logout-icon {
    display: block !important;
    width: 1.05rem;
    height: 1.05rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body.is-locked main,
body.is-locked .page-rails,
body.is-locked .h5-shell,
body.is-locked .auth-user-bar {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

body.is-locked .atmosphere {
  filter: blur(2px) saturate(1.15) hue-rotate(-8deg);
  opacity: 0.88;
}

html.auth-pending-oauth body .auth-gate,
html.auth-pending-oauth body main,
html.auth-pending-oauth body .page-rails,
html.auth-pending-oauth body .h5-shell,
html.auth-pending-oauth body .auth-user-bar {
  visibility: hidden !important;
  pointer-events: none !important;
}

html.auth-pending-oauth body {
  background: linear-gradient(168deg, #f0f8f1 0%, #e8f4ea 50%, #e2f0e4 100%);
}

.auth-gate[hidden] {
  display: none !important;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: calc(1.25rem + var(--safe-top)) 1.25rem calc(1.25rem + var(--safe-bottom));
  background: linear-gradient(168deg, #f0f8f1 0%, #e8f4ea 50%, #e2f0e4 100%);
}

.auth-gate-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-gate-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(165, 214, 167, 0.28), transparent 44%),
    radial-gradient(circle at 82% 16%, rgba(200, 230, 201, 0.24), transparent 48%),
    radial-gradient(circle at 74% 82%, rgba(129, 199, 132, 0.22), transparent 46%);
  opacity: 0.88;
  animation: authAmbientBreath 40s ease-in-out infinite;
}

.auth-gate-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.34;
  animation: authOrbDrift 52s ease-in-out infinite alternate;
}

.auth-gate-orb-a {
  top: 6%;
  left: 8%;
  width: min(46vw, 300px);
  height: min(46vw, 300px);
  background: radial-gradient(circle, rgba(102, 187, 106, 0.42), transparent 72%);
}

.auth-gate-orb-b {
  right: 6%;
  bottom: 8%;
  width: min(50vw, 340px);
  height: min(50vw, 340px);
  background: radial-gradient(circle, rgba(129, 199, 132, 0.38), transparent 74%);
  animation-duration: 64s;
  animation-delay: -20s;
}

.auth-gate-orb-c {
  top: 42%;
  left: 52%;
  width: min(38vw, 240px);
  height: min(38vw, 240px);
  background: radial-gradient(circle, rgba(165, 214, 167, 0.4), transparent 76%);
  opacity: 0.28;
  animation-duration: 72s;
  animation-delay: -32s;
}

@keyframes authAmbientBreath {
  0%,
  100% {
    opacity: 0.84;
  }
  50% {
    opacity: 0.96;
  }
}

@keyframes authOrbDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-10px, 12px, 0);
  }
}

.auth-gate-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  display: grid;
  gap: 0.85rem;
  animation: rise 0.65s var(--ease) both;
}

.auth-gate-card {
  position: relative;
  overflow: hidden;
  padding: 2rem 1.65rem 1.55rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: linear-gradient(180deg, #ffffff 0%, #fbfefb 100%);
  box-shadow:
    0 24px 60px rgba(46, 125, 50, 0.1),
    0 4px 16px rgba(16, 28, 36, 0.05);
}

.auth-gate-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.auth-gate-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(76, 175, 80, 0.12);
}

.auth-gate-mark {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 0.15rem;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 3px solid rgba(129, 199, 132, 0.55);
  box-shadow:
    0 0 0 6px rgba(129, 199, 132, 0.12),
    0 10px 24px rgba(76, 175, 80, 0.14);
}

.auth-gate-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-gate-brand {
  margin: 0;
  font: 700 1rem/1 var(--font-display);
  color: #2e7d32;
  letter-spacing: 0.12em;
}

.auth-gate-head h2 {
  margin: 0.15rem 0 0;
  font: 700 1.45rem/1.28 var(--font-display);
  letter-spacing: -0.01em;
  color: #1b3a34;
}

.auth-gate-access {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #7a8a93;
}

.auth-gate-body {
  display: grid;
  gap: 0.85rem;
  padding-top: 1.15rem;
}

.auth-gate-actions,
.auth-gate-browser {
  display: grid;
  gap: 0.75rem;
}

.auth-gate.is-workbench-gate .auth-gate-browser {
  display: none !important;
}

.auth-gate.is-workbench-gate #wecomLoginBtn {
  display: inline-flex !important;
}

.auth-gate.is-browser-gate #wecomLoginBtn {
  display: none !important;
}

.auth-gate.is-browser-gate .auth-gate-browser {
  display: grid;
}

.auth-gate-browser .auth-gate-btn {
  font-size: 0.9rem;
  line-height: 1.35;
  padding-inline: 0.85rem;
  text-wrap: balance;
}

.auth-gate-or {
  margin: 0;
  text-align: center;
  color: #9aa8b3;
  font-size: 0.78rem;
  line-height: 1;
}

.auth-gate-btn-secondary {
  background: #fff;
  color: var(--accent-deep);
  border: 1px solid rgba(12, 98, 93, 0.22);
  box-shadow: 0 8px 20px rgba(16, 28, 36, 0.05);
}

.auth-gate-btn-secondary:hover {
  box-shadow: 0 10px 24px rgba(16, 28, 36, 0.08);
  border-color: rgba(12, 98, 93, 0.32);
}

.auth-gate-btn-secondary:active {
  background: rgba(12, 98, 93, 0.04);
}

.auth-gate-btn-secondary:focus-visible {
  box-shadow:
    0 0 0 4px rgba(12, 98, 93, 0.12),
    0 8px 20px rgba(16, 28, 36, 0.05);
}

.auth-gate-lead {
  margin: 0;
  text-align: center;
  color: #6b7c85;
  font-size: 0.84rem;
  line-height: 1.7;
}

.auth-gate-hint {
  margin: 0;
  text-align: center;
  color: #8a9aa4;
  font-size: 0.74rem;
  line-height: 1.55;
}

.auth-gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: var(--touch-min);
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  background: linear-gradient(90deg, #43a047 0%, #2e7d32 52%, #1b5e20 100%);
  color: #fff;
  font: 600 0.96rem/1 var(--font-body);
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(46, 125, 50, 0.28);
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    filter 0.22s var(--ease);
}

.auth-gate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(46, 125, 50, 0.32);
}

.auth-gate-btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.auth-gate-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(76, 175, 80, 0.22),
    0 12px 28px rgba(46, 125, 50, 0.28);
}

.auth-gate-btn-icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.95;
}

.auth-gate-error {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(180, 35, 24, 0.08);
  border: 1px solid rgba(180, 35, 24, 0.14);
  color: #9f1f18;
  font-size: 0.84rem;
  line-height: 1.45;
}

.auth-gate-foot {
  margin: 0;
  text-align: center;
  color: rgba(76, 175, 80, 0.72);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

@media (max-width: 480px) {
  .auth-gate-card {
    padding: 1.65rem 1.2rem 1.35rem;
    border-radius: 22px;
  }

  .auth-gate-mark {
    width: 3.85rem;
    height: 3.85rem;
  }

  .auth-gate-head h2 {
    font-size: 1.26rem;
  }
}

@media (min-width: 721px) and (max-width: 959px) {
  .auth-gate-shell {
    width: min(100%, 26rem);
  }

  .auth-gate-card {
    padding: 2rem 1.65rem 1.55rem;
  }
}

@media (min-width: 960px) and (max-width: 1279px) {
  .auth-gate-shell {
    width: min(100%, 28rem);
  }
}

.h5-shell {
  display: contents;
}

.h5-appbar {
  display: contents;
}

.h5-appbar-brand {
  display: none;
}

.h5-list-head {
  display: none;
}

.h5-session-label {
  display: none;
}

.auth-user-bar {
  position: fixed;
  top: calc(0.75rem + var(--safe-top));
  right: calc(0.75rem + var(--safe-right));
  left: auto;
  z-index: 900;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.75rem;
  max-width: var(--auth-bar-max);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line-strong);
  font-size: 0.82rem;
  color: var(--ink-soft);
  box-shadow: 0 8px 24px rgba(16, 28, 36, 0.08);
  backdrop-filter: blur(12px) saturate(1.05);
}

.auth-user-bar__profile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.auth-user-bar__avatar {
  display: none;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  place-items: center;
}

.auth-user-bar__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-user-bar__text strong {
  color: var(--ink);
  font-weight: 600;
}

.auth-user-bar__logout {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

@media (min-width: 721px) {
  .auth-user-bar__text::before {
    content: "已登录：";
    font-weight: 400;
    color: var(--ink-soft);
  }

  html[data-layout-tier="wide"] .auth-user-bar__text::before {
    content: "已登录：";
  }

  .auth-user-bar__avatar {
    display: none !important;
  }

  .h5-session-logout-icon {
    display: none;
  }

  .h5-session-logout-text {
    display: inline;
    font-weight: 600;
    letter-spacing: normal;
  }

  .h5-session-label {
    display: none;
  }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .auth-user-bar__logout {
    min-height: 2rem;
    padding: 0 0.25rem;
  }
}

