:root {
  color-scheme: light;
  --page: #f8fbff;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --surface-warm: #fff7ed;
  --ink: #172033;
  --ink-muted: #4b5870;
  --ink-subtle: #7a8599;
  --line: #dfe6f2;
  --line-strong: #c7d2e4;
  --blue: #2563eb;
  --cyan: #0891b2;
  --green: #16a34a;
  --orange: #f97316;
  --violet: #7c3aed;
  --red: #dc2626;
  --shadow: 0 18px 55px rgba(28, 43, 72, 0.10);
  --shadow-soft: 0 10px 30px rgba(28, 43, 72, 0.08);
  --shadow-raised: 0 24px 70px rgba(28, 43, 72, 0.16);
  --radius: 20px;
  --font-sans: "Inter Variable", Inter, -apple-system, BlinkMacSystemFont, "Noto Sans SC Variable", "Noto Sans SC", "Segoe UI", "Microsoft YaHei UI", sans-serif;
  --font-mono: "Cascadia Code", "JetBrains Mono", ui-monospace, monospace;
  --site-header-top: 0px;
  --site-header-height: 64px;
  --site-header-space: var(--site-header-height);
  --filter-sticky-top: calc(var(--site-header-height) + 8px);
  --owl-aura-blue-dark: rgba(59, 130, 246, 0.22);
  --owl-aura-cyan-dark: rgba(34, 211, 238, 0.14);
  --owl-aura-white-dark: rgba(248, 250, 252, 0.16);
  --ambient-blue-glow: rgba(37, 99, 235, 0.115);
  --ambient-cyan-glow: rgba(8, 145, 178, 0.085);
  --ambient-green-glow: rgba(22, 163, 74, 0.06);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page: #111827;
  --canvas: #121a2b;
  --surface: #172033;
  --surface-soft: #1f2a44;
  --surface-warm: #332316;
  --ink: #f8fafc;
  --ink-muted: #cbd5e1;
  --ink-subtle: #94a3b8;
  --line: #2f3b52;
  --line-strong: #46546f;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.22);
  --ambient-blue-glow: rgba(59, 130, 246, 0.085);
  --ambient-cyan-glow: rgba(34, 211, 238, 0.052);
  --ambient-green-glow: rgba(34, 197, 94, 0.04);
}

html[data-theme="dark"] .home-hero .eyebrow,
html[data-theme="dark"] .community-hero .eyebrow,
html[data-theme="dark"] .services-hero .eyebrow,
html[data-theme="dark"] .about-hero .eyebrow,
html[data-theme="dark"] .hero .eyebrow,
html[data-theme="dark"] .placeholder-page .eyebrow,
html[data-theme="dark"] .system-page .eyebrow {
  border-color: color-mix(in srgb, var(--blue) 24%, var(--line));
  background: color-mix(in srgb, var(--blue) 14%, var(--surface));
  color: color-mix(in srgb, var(--blue) 62%, var(--ink));
  box-shadow: none;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--page);
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 980px 440px at 10% 16%, var(--ambient-blue-glow), transparent 72%),
    radial-gradient(ellipse 820px 380px at 92% 34%, var(--ambient-cyan-glow), transparent 74%),
    linear-gradient(180deg, #ffffff 0%, var(--page) 34rem, var(--page) 100%);
  color: var(--ink);
  font-family: var(--font-sans);
  letter-spacing: 0;
}

body:not(.admin-page):not(.admin-auth-page) {
  background:
    radial-gradient(ellipse 1180px 520px at 7% 16%, color-mix(in srgb, var(--ambient-blue-glow) 92%, transparent), transparent 72%),
    radial-gradient(ellipse 1040px 460px at 96% 34%, color-mix(in srgb, var(--ambient-cyan-glow) 84%, transparent), transparent 74%),
    radial-gradient(ellipse 760px 340px at 44% 88%, color-mix(in srgb, var(--ambient-green-glow) 62%, transparent), transparent 78%),
    linear-gradient(180deg, #ffffff 0%, var(--page) 34rem, var(--page) 100%);
  background-attachment: fixed, fixed, fixed, scroll;
}

html[data-theme="dark"] body:not(.admin-page):not(.admin-auth-page) {
  background:
    radial-gradient(ellipse 1180px 520px at 6% 18%, var(--ambient-blue-glow), transparent 70%),
    radial-gradient(ellipse 980px 440px at 96% 38%, var(--ambient-cyan-glow), transparent 72%),
    radial-gradient(ellipse 820px 390px at 38% 90%, var(--ambient-green-glow), transparent 76%),
    linear-gradient(180deg, color-mix(in srgb, var(--canvas) 44%, transparent), transparent 28rem),
    var(--page);
  background-attachment: fixed, fixed, fixed, scroll, scroll;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: var(--site-header-top);
  left: 0;
  z-index: 40;
  width: 100%;
  margin: 0;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: 0;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 10px 30px rgba(28, 43, 72, 0.07);
  backdrop-filter: blur(18px);
  transition: none;
}

body.has-stuck-community-tabs .site-header {
  box-shadow: none;
}

.site-header-inner {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 7px 0 8px;
}

.site-header-spacer {
  height: var(--site-header-space);
}

.brand,
.site-nav,
.site-tools {
  display: flex;
  align-items: center;
}

.brand {
  flex: 0 0 auto;
  gap: 8px;
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
}

.brand-mark {
  display: inline-flex;
  position: relative;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  line-height: 1;
  box-shadow: none;
}

.brand-word {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}

.brand-word-ai {
  color: var(--blue);
}

.brand-copy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.maintenance-popover-group {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.maintenance-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--orange) 26%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--orange) 9%, var(--surface));
  color: color-mix(in srgb, var(--orange) 72%, var(--ink));
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 0 9px;
  white-space: nowrap;
}

.maintenance-badge:hover,
.maintenance-badge:focus-visible,
.maintenance-popover-group.is-open .maintenance-badge {
  border-color: color-mix(in srgb, var(--orange) 40%, var(--line));
  background: color-mix(in srgb, var(--orange) 14%, var(--surface));
  outline: none;
}

.maintenance-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 120;
  width: min(360px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 98%, transparent);
  box-shadow: var(--shadow-soft);
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.65;
  padding: 12px 14px;
  transform: translateX(-50%);
}

.maintenance-popover[hidden] {
  display: none !important;
}

.maintenance-popover-mobile {
  left: auto;
  right: 0;
  transform: none;
}

html[data-theme="dark"] .maintenance-badge {
  border-color: color-mix(in srgb, var(--orange) 28%, var(--line));
  background: color-mix(in srgb, var(--orange) 14%, var(--surface));
  color: color-mix(in srgb, var(--orange) 82%, var(--ink));
}

html[data-theme="dark"] .maintenance-popover {
  background: color-mix(in srgb, var(--surface) 96%, #0f172a);
}

.site-logo-image {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

html[data-theme="dark"] .site-header .brand-mark .site-logo-image,
html[data-theme="dark"] .mobile-brand-mark .site-logo-image {
  filter: none;
}

.brand .site-logo-image {
  width: 56px;
  height: 56px;
  max-width: none;
}

.site-nav {
  justify-content: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

html[data-theme="dark"] .site-nav {
  border-color: color-mix(in srgb, var(--line) 58%, transparent);
  background: color-mix(in srgb, var(--surface) 68%, transparent);
}

.site-nav a,
.login-link,
.tool-button,
.icon-button {
  min-height: 36px;
  border-radius: 999px;
  font-size: 14px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  color: var(--ink-muted);
  font-weight: 600;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease;
}

.site-nav a.is-active,
.site-nav a:hover,
.site-nav a:focus-visible {
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
  color: var(--blue);
}

html[data-theme="dark"] .site-nav a.is-active,
html[data-theme="dark"] .site-nav a:hover,
html[data-theme="dark"] .site-nav a:focus-visible {
  background: color-mix(in srgb, var(--blue) 16%, var(--surface));
  color: color-mix(in srgb, #ffffff 28%, var(--blue));
}

.site-tools {
  flex: 0 0 auto;
  gap: 8px;
}

.mobile-app-actions,
.mobile-menu-panel,
.mobile-layer-backdrop,
.mobile-bottom-nav,
.mobile-reader-toolbar {
  display: none;
}

.tool-popover {
  position: relative;
}

.tool-button,
.icon-button,
.text-tool,
.filter-date {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.tool-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}

.flag-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 12px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12);
}

.flag-cn {
  background: #de2910;
}

.flag-cn::before {
  position: absolute;
  top: 2px;
  left: 3px;
  color: #ffde00;
  content: "★";
  font-size: 6px;
  line-height: 1;
}

.flag-us {
  background:
    linear-gradient(#b22234 0 7.69%, #fff 7.69% 15.38%, #b22234 15.38% 23.07%, #fff 23.07% 30.76%, #b22234 30.76% 38.45%, #fff 38.45% 46.14%, #b22234 46.14% 53.83%, #fff 53.83% 61.52%, #b22234 61.52% 69.21%, #fff 69.21% 76.9%, #b22234 76.9% 84.59%, #fff 84.59% 92.28%, #b22234 92.28% 100%);
}

.flag-us::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 7px;
  background: #3c3b6e;
  content: "";
}

.tool-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 164px;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.tool-menu[hidden] {
  display: none !important;
}

.tool-menu button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 9px 10px;
  text-align: left;
}

.tool-menu button:hover,
.tool-menu button.is-active {
  background: var(--surface-soft);
}

.theme-switch {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-soft) 70%, var(--surface));
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  min-height: 30px;
  border: 0;
  background: transparent;
}

.theme-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button.is-active {
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(28, 43, 72, 0.08);
}

.login-link {
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 700;
  box-shadow: none;
}

.header-avatar-link {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.header-avatar-link .user-avatar-small {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.account-menu-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 184px;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.account-menu-popover[hidden] {
  display: none !important;
}

.account-menu-popover a,
.account-menu-popover button {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  padding: 0 12px;
  text-align: left;
  text-decoration: none;
}

.account-menu-popover a:hover,
.account-menu-popover a:focus-visible {
  background: var(--surface-soft);
  outline: none;
}

.account-menu-popover form {
  margin: 6px 0 0;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.account-menu-popover button {
  justify-content: center;
  background: color-mix(in srgb, var(--blue) 7%, var(--surface-soft));
  color: color-mix(in srgb, var(--blue) 42%, var(--ink-muted));
}

.account-menu-popover button:hover,
.account-menu-popover button:focus-visible {
  background: color-mix(in srgb, var(--blue) 11%, var(--surface-soft));
  color: color-mix(in srgb, var(--blue) 56%, var(--ink));
  outline: none;
}

main {
  flex: 1 0 auto;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  justify-items: center;
  padding: 104px 0 74px;
  text-align: center;
}

.home-hero {
  --banner-primary-glow: rgba(37, 99, 235, 0.30);
  --banner-secondary-glow: rgba(8, 145, 178, 0.17);
  --banner-tertiary-glow: rgba(22, 163, 74, 0.12);
  position: relative;
  width: 100vw;
  margin-top: calc(-1 * var(--site-header-space));
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  padding: calc(var(--site-header-space) + clamp(64px, 8vw, 96px)) max(20px, calc((100vw - 1180px) / 2)) clamp(56px, 7vw, 84px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  text-align: center;
}

.home-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--page));
  pointer-events: none;
  content: "";
}

.hero-stack {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero-mascot {
  display: grid;
  position: relative;
  width: clamp(112px, 10vw, 132px);
  aspect-ratio: 1;
  place-items: center;
  margin: 0 auto 18px;
  line-height: 1;
}

.hero-mascot-home {
  width: clamp(112px, 10vw, 132px);
  margin-bottom: 18px;
}

.hero-mascot img {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 30px rgba(37, 99, 235, 0.14));
}

.hero-mascot::before {
  content: "";
  position: absolute;
  inset: 14% 12% 12%;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

html[data-theme="dark"] .hero-mascot img {
  filter: drop-shadow(0 18px 28px rgba(15, 23, 42, 0.28));
}

html[data-theme="dark"] .hero-mascot::before {
  opacity: 1;
  background:
    radial-gradient(circle at 50% 44%, var(--owl-aura-white-dark) 0%, transparent 38%),
    radial-gradient(circle at 50% 54%, var(--owl-aura-blue-dark) 0%, transparent 66%),
    radial-gradient(circle at 50% 58%, var(--owl-aura-cyan-dark) 0%, transparent 88%);
  filter: blur(18px);
}

.eyebrow {
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 14px;
  color: color-mix(in srgb, var(--blue) 72%, var(--ink-muted));
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}

.home-hero .eyebrow,
.community-hero .eyebrow,
.services-hero .eyebrow,
.about-hero .eyebrow,
.hero .eyebrow,
.placeholder-page .eyebrow,
.system-page .eyebrow {
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid color-mix(in srgb, var(--blue) 18%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
  color: color-mix(in srgb, var(--blue) 82%, var(--ink));
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.08);
}

.home-hero .eyebrow::before,
.community-hero .eyebrow::before,
.services-hero .eyebrow::before,
.about-hero .eyebrow::before,
.hero .eyebrow::before,
.placeholder-page .eyebrow::before,
.system-page .eyebrow::before {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: .72;
  content: "";
}

.home-hero .eyebrow,
.community-hero .eyebrow,
.services-hero .eyebrow,
.hero .eyebrow,
.placeholder-page .eyebrow,
.system-page .eyebrow,
.section-head .eyebrow,
.recommend-lane-head .eyebrow,
.service-section-head .eyebrow,
.about-section-head .eyebrow {
  margin-right: auto;
  margin-left: auto;
}

.section-head .eyebrow,
.recommend-lane-head .eyebrow,
.service-section-head .eyebrow,
.about-section-head .eyebrow {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: color-mix(in srgb, var(--blue) 76%, var(--ink-muted));
}

.home-hero h1,
.hero h1,
.list-hero h1,
.reader-header h1,
.about-hero h1,
.placeholder-page h1,
.system-page h1 {
  width: min(900px, 100%);
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.home-hero h1 {
  width: min(820px, 100%);
}

.hero-copy {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions,
.center-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .16s ease;
}

.button.primary {
  background: var(--blue);
  color: #ffffff;
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: color-mix(in srgb, var(--blue) 86%, #0f172a);
  transform: translateY(-1px);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: color-mix(in srgb, var(--blue) 32%, var(--line));
  background: color-mix(in srgb, var(--blue) 7%, var(--surface));
  color: var(--blue);
  transform: translateY(-1px);
}

body:not(.admin-page):not(.admin-auth-page) .button.secondary:not(.danger) {
  border-color: color-mix(in srgb, var(--ink) 34%, var(--line));
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

body:not(.admin-page):not(.admin-auth-page) .button.secondary:not(.danger):hover,
body:not(.admin-page):not(.admin-auth-page) .button.secondary:not(.danger):focus-visible {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
  box-shadow: none;
}

body:not(.admin-page):not(.admin-auth-page) :is(.home-hero, .community-hero, .services-hero, .about-hero, .skills-plaza-hero) .button.secondary:not(.danger) {
  border-color: color-mix(in srgb, var(--blue) 52%, var(--line));
  color: var(--blue);
}

html[data-theme="dark"] body:not(.admin-page):not(.admin-auth-page) .button.secondary:not(.danger) {
  border-color: color-mix(in srgb, #ffffff 28%, var(--line));
  background: transparent;
  color: color-mix(in srgb, #ffffff 88%, var(--ink));
}

html[data-theme="dark"] body:not(.admin-page):not(.admin-auth-page) .button.secondary:not(.danger):hover,
html[data-theme="dark"] body:not(.admin-page):not(.admin-auth-page) .button.secondary:not(.danger):focus-visible {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

html[data-theme="dark"] body:not(.admin-page):not(.admin-auth-page) :is(.home-hero, .community-hero, .services-hero, .about-hero, .skills-plaza-hero) .button.secondary:not(.danger) {
  border-color: color-mix(in srgb, var(--blue) 68%, var(--line));
  color: color-mix(in srgb, #ffffff 30%, var(--blue));
}

body:not(.admin-page):not(.admin-auth-page) :is(.home-hero, .community-hero, .services-hero, .about-hero, .skills-plaza-hero) .button.secondary:not(.danger):hover,
body:not(.admin-page):not(.admin-auth-page) :is(.home-hero, .community-hero, .services-hero, .about-hero, .skills-plaza-hero) .button.secondary:not(.danger):focus-visible {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.hero-note {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 0;
  padding: 9px 16px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--ink-subtle);
  font-size: 14px;
  font-weight: 700;
}

.section-head {
  display: grid;
  justify-items: center;
  max-width: 760px;
  margin: 72px auto 24px;
  text-align: center;
}

.section-head.compact {
  margin-top: 56px;
}

.section-head h2,
.final-cta h2,
.service-panel h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.decorated-section-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.35vw, 16px);
  max-width: 100%;
}

.decorated-section-title::before,
.decorated-section-title::after {
  content: "";
  flex: 0 0 clamp(26px, 2.6vw, 38px);
  width: clamp(26px, 2.6vw, 38px);
  height: clamp(26px, 2.6vw, 38px);
  background-color: currentColor;
  opacity: 1;
  pointer-events: none;
}

.decorated-section-title::before {
  -webkit-mask: url("/assets/images/title_left.png") center / contain no-repeat;
  mask: url("/assets/images/title_left.png") center / contain no-repeat;
}

.decorated-section-title::after {
  -webkit-mask: url("/assets/images/title_right.png") center / contain no-repeat;
  mask: url("/assets/images/title_right.png") center / contain no-repeat;
}

@media (max-width: 640px) {
  .decorated-section-title {
    gap: 9px;
  }

  .decorated-section-title::before,
  .decorated-section-title::after {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
  }
}

.section-head p,
.final-cta p {
  margin: 14px 0 0;
  color: var(--ink-muted);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.marquee-band {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  padding: 12px 0 22px;
}

.marquee-band::before,
.marquee-band::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: min(12vw, 170px);
  pointer-events: none;
  content: "";
}

.marquee-band::before {
  left: 0;
  background: linear-gradient(90deg, var(--page), transparent);
}

.marquee-band::after {
  right: 0;
  background: linear-gradient(270deg, var(--page), transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 18px;
  padding: 0 24px;
  animation: scroll-left 42s linear infinite;
}

.marquee-right .marquee-track {
  animation-name: scroll-right;
}

.marquee-band:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes scroll-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.content-card {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  width: 430px;
  min-height: 198px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.content-card.vertical {
  grid-template-columns: 1fr;
  width: auto;
  min-height: 100%;
}

.cover {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border: 0;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.72), transparent 22%),
    radial-gradient(circle at 76% 26%, rgba(255, 255, 255, 0.58), transparent 26%),
    linear-gradient(145deg, transparent 0 44%, rgba(255, 255, 255, 0.28) 44% 48%, transparent 48%),
    linear-gradient(135deg, #dbeafe, #eff6ff 52%, #ffffff);
}

.cover::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 54px;
  border: 0;
  border-radius: 16px;
  background:
    radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.92) 0 5px, transparent 6px),
    linear-gradient(135deg, transparent 0 55%, rgba(255, 255, 255, 0.78) 56% 72%, transparent 73%),
    linear-gradient(45deg, transparent 0 48%, rgba(255, 255, 255, 0.62) 49% 67%, transparent 68%),
    rgba(255, 255, 255, 0.34);
  content: "";
  transform: translate(-50%, -50%);
}

.cover-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  max-width: calc(100% - 28px);
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  text-overflow: ellipsis;
  transform: translateY(-5px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  visibility: hidden;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

:is(.content-card, .tutorial-card, .news-card, .account-favorite-item):is(:hover, :focus-within) .cover-category-badge,
.account-favorite-cover:is(:hover, :focus-visible) .cover-category-badge {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

html[data-theme="dark"] .cover-category-badge {
  border: 0;
  background: color-mix(in srgb, var(--surface) 82%, rgba(15, 23, 42, 0.82));
  box-shadow: none;
  color: color-mix(in srgb, #dbeafe 88%, var(--blue));
}

.content-card.vertical .cover {
  min-height: 176px;
}

.cover-blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe 54%, #ffffff); }
.cover-green { background: linear-gradient(135deg, #dcfce7, #bbf7d0 54%, #ffffff); }
.cover-cyan { background: linear-gradient(135deg, #cffafe, #bae6fd 54%, #ffffff); }
.cover-orange { background: linear-gradient(135deg, #ffedd5, #fed7aa 54%, #ffffff); }
.cover-violet { background: linear-gradient(135deg, #ede9fe, #ddd6fe 54%, #ffffff); }

.card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.card-body strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.card-body span:not(.meta-line):not(.stats) {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.7;
}

.meta-line,
.stats {
  color: var(--ink-subtle);
  font-size: 13px;
}

.stats {
  margin-top: auto;
}

.stats.split {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.recommend-lanes {
  display: grid;
  gap: clamp(58px, 8vw, 92px);
  margin-top: 72px;
}

.recommend-lane {
  display: grid;
  gap: 22px;
}

.recommend-lane-head {
  display: grid;
  justify-items: center;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.recommend-lane-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
}

.recommend-lane-head p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--ink-muted);
  line-height: 1.8;
}

.recommend-panel {
  position: relative;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  overflow-x: clip;
  overflow-y: visible;
  padding: 42px 0 88px;
  --recommend-fade-soft: clamp(18px, 2.2vw, 38px);
  --recommend-fade-start: clamp(34px, 4vw, 72px);
  --recommend-fade-mid: clamp(92px, 10vw, 158px);
  --recommend-fade-full: clamp(150px, 17vw, 268px);
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    rgba(0, 0, 0, 0.08) var(--recommend-fade-soft),
    rgba(0, 0, 0, 0.24) var(--recommend-fade-start),
    rgba(0, 0, 0, 0.56) var(--recommend-fade-mid),
    #000 var(--recommend-fade-full),
    #000 calc(100% - var(--recommend-fade-full)),
    rgba(0, 0, 0, 0.56) calc(100% - var(--recommend-fade-mid)),
    rgba(0, 0, 0, 0.24) calc(100% - var(--recommend-fade-start)),
    rgba(0, 0, 0, 0.08) calc(100% - var(--recommend-fade-soft)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    rgba(0, 0, 0, 0.08) var(--recommend-fade-soft),
    rgba(0, 0, 0, 0.24) var(--recommend-fade-start),
    rgba(0, 0, 0, 0.56) var(--recommend-fade-mid),
    #000 var(--recommend-fade-full),
    #000 calc(100% - var(--recommend-fade-full)),
    rgba(0, 0, 0, 0.56) calc(100% - var(--recommend-fade-mid)),
    rgba(0, 0, 0, 0.24) calc(100% - var(--recommend-fade-start)),
    rgba(0, 0, 0, 0.08) calc(100% - var(--recommend-fade-soft)),
    transparent 100%
  );
}

.recommend-panel::before,
.recommend-panel::after {
  display: none;
}

html[data-theme="dark"] .recommend-panel {
  --recommend-fade-soft: clamp(28px, 3.4vw, 58px);
  --recommend-fade-start: clamp(46px, 5.6vw, 96px);
  --recommend-fade-mid: clamp(128px, 13vw, 218px);
  --recommend-fade-full: clamp(214px, 23vw, 372px);
}

.recommend-grid {
  display: flex;
  width: max-content;
  gap: 18px;
  transform: translate3d(var(--recommend-cycle-start, 0), 0, 0);
  will-change: transform;
}

.recommend-grid.is-ready {
  animation: none;
}

.recommend-grid.is-reverse.is-ready {
  animation: none;
}

.recommend-grid.is-swipe-scroll {
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  will-change: transform;
}

.recommend-grid.is-swipe-scroll.is-dragging {
  cursor: grabbing;
}

.recommend-grid.is-swipe-scroll.is-snapping {
  transition: transform 360ms cubic-bezier(.22, .8, .18, 1);
}

.recommend-grid.is-paused,
.recommend-grid:focus-within {
  animation-play-state: paused;
}

@media (hover: none), (pointer: coarse) {
  .recommend-grid.is-paused,
  .recommend-grid:focus-within {
    animation-play-state: running;
  }
}

.recommend-sequence {
  display: flex;
  gap: 18px;
}

@keyframes recommend-marquee-left {
  from { transform: translate3d(var(--recommend-cycle-start, -2400px), 0, 0); }
  to { transform: translate3d(var(--recommend-cycle-end, -4800px), 0, 0); }
}

@keyframes recommend-marquee-right {
  from { transform: translate3d(var(--recommend-cycle-end, -4800px), 0, 0); }
  to { transform: translate3d(var(--recommend-cycle-start, -2400px), 0, 0); }
}

@media (max-width: 860px) {

  .recommend-panel {
    overflow-x: clip;
    overflow-y: visible;
    padding: 30px max(18px, env(safe-area-inset-left)) 70px max(18px, env(safe-area-inset-right));
    -webkit-mask-image: none;
    mask-image: none;
  }

  .recommend-grid,
  .recommend-grid.is-ready,
  .recommend-grid.is-reverse.is-ready {
    animation: none;
  }

  .recommend-grid {
    gap: 0;
  }

  .recommend-sequence {
    gap: 16px;
  }

  .recommend-card {
    scroll-snap-align: start;
  }
}

.recommend-card {
  flex: 0 0 clamp(300px, 29vw, 378px);
  display: flex;
  min-height: 348px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.recommend-card.tutorial-card,
.recommend-card.news-card {
  flex: 0 0 clamp(300px, 29vw, 378px);
  min-height: 348px;
}

.recommend-card.tutorial-card .card-cover,
.recommend-card.news-card .news-cover {
  flex: 0 0 176px;
  min-height: 176px;
}

.recommend-card.news-card .news-card-body {
  flex: 1;
}

.recommend-card.news-card .card-footer-row {
  margin-top: auto;
}

.recommend-card:hover,
.content-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-raised);
}

.recommend-cover {
  position: relative;
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 24px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--cover-b, #bfdbfe) 54%, transparent), transparent 32%),
    linear-gradient(135deg, color-mix(in srgb, var(--cover-a, #2563eb) 24%, #172033), #172033 72%);
  color: #ffffff;
  isolation: isolate;
}

.recommend-cover.cover-blue { --cover-a: #2563eb; --cover-b: #bfdbfe; }
.recommend-cover.cover-green { --cover-a: #16a34a; --cover-b: #bbf7d0; }
.recommend-cover.cover-cyan { --cover-a: #0891b2; --cover-b: #bae6fd; }
.recommend-cover.cover-orange { --cover-a: #f97316; --cover-b: #fed7aa; }
.recommend-cover.cover-violet { --cover-a: #7c3aed; --cover-b: #ddd6fe; }

.recommend-cover::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.10) 1px, transparent 1px);
  background-size: 18px 18px;
  content: "";
  opacity: .42;
}

.recommend-cover.news-image::before {
  background-image:
    radial-gradient(circle at 16% 22%, rgba(255, 255, 255, .22) 0 2px, transparent 3px),
    linear-gradient(90deg, rgba(255, 255, 255, .10) 1px, transparent 1px);
  background-size: 28px 28px, 22px 22px;
}

.recommend-cover::after {
  position: absolute;
  right: 22px;
  bottom: 12px;
  color: rgba(255, 255, 255, 0.18);
  content: attr(data-mark);
  font-size: clamp(46px, 6vw, 76px);
  font-weight: 700;
  line-height: 1;
}

.recommend-cover-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.recommend-cover-title {
  max-width: 13ch;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.08;
}

.recommend-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.recommend-body strong {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.25;
}

.recommend-body > span:not(.recommend-meta) {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.7;
}

.recommend-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  color: var(--ink-subtle);
  font-size: 13px;
}

.center-actions.compact {
  margin-top: 0;
}

.scenario-head {
  margin-top: 86px;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 84px;
}

.scenario-card {
  display: grid;
  min-height: 198px;
  justify-items: center;
  padding: 28px 24px 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, var(--surface-soft)), var(--surface));
  box-shadow: 0 18px 44px rgba(28, 43, 72, 0.08);
  text-align: center;
}

.glyph-card {
  display: inline-grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--blue) 18%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
  color: var(--blue);
}

.glyph-card svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: none;
  opacity: .9;
}

.glyph-card svg * {
  fill: currentColor;
  stroke: none;
}

.skill-ai-glyph {
  border-color: color-mix(in srgb, var(--blue) 22%, var(--line));
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
  color: var(--blue);
}

html[data-theme="dark"] .skill-ai-glyph {
  border-color: color-mix(in srgb, var(--blue) 32%, var(--line));
  background: color-mix(in srgb, var(--blue) 14%, var(--surface));
  color: color-mix(in srgb, var(--blue) 78%, #ffffff);
}

.glyph-tone-blue {
  border-color: color-mix(in srgb, var(--blue) 20%, var(--line));
  background: color-mix(in srgb, var(--blue) 11%, var(--surface));
  color: var(--blue);
}

.glyph-tone-green {
  border-color: color-mix(in srgb, var(--green) 20%, var(--line));
  background: color-mix(in srgb, var(--green) 11%, var(--surface));
  color: var(--green);
}

.glyph-tone-cyan {
  border-color: color-mix(in srgb, var(--cyan) 20%, var(--line));
  background: color-mix(in srgb, var(--cyan) 11%, var(--surface));
  color: var(--cyan);
}

.glyph-tone-violet {
  border-color: color-mix(in srgb, var(--violet) 20%, var(--line));
  background: color-mix(in srgb, var(--violet) 11%, var(--surface));
  color: var(--violet);
}

.glyph-tone-orange {
  border-color: color-mix(in srgb, var(--orange) 20%, var(--line));
  background: color-mix(in srgb, var(--orange) 11%, var(--surface));
  color: var(--orange);
}

html[data-theme="dark"] .glyph-tone-blue {
  border-color: color-mix(in srgb, var(--blue) 28%, var(--line));
  background: color-mix(in srgb, var(--blue) 16%, var(--surface));
  color: color-mix(in srgb, var(--blue) 72%, var(--ink));
}

html[data-theme="dark"] .glyph-tone-green {
  border-color: color-mix(in srgb, var(--green) 28%, var(--line));
  background: color-mix(in srgb, var(--green) 16%, var(--surface));
  color: color-mix(in srgb, var(--green) 72%, var(--ink));
}

html[data-theme="dark"] .glyph-tone-cyan {
  border-color: color-mix(in srgb, var(--cyan) 28%, var(--line));
  background: color-mix(in srgb, var(--cyan) 16%, var(--surface));
  color: color-mix(in srgb, var(--cyan) 72%, var(--ink));
}

html[data-theme="dark"] .glyph-tone-violet {
  border-color: color-mix(in srgb, var(--violet) 28%, var(--line));
  background: color-mix(in srgb, var(--violet) 16%, var(--surface));
  color: color-mix(in srgb, var(--violet) 72%, var(--ink));
}

html[data-theme="dark"] .glyph-tone-orange {
  border-color: color-mix(in srgb, var(--orange) 28%, var(--line));
  background: color-mix(in srgb, var(--orange) 16%, var(--surface));
  color: color-mix(in srgb, var(--orange) 72%, var(--ink));
}

.scenario-card h3 {
  margin: 20px 0 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.scenario-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.75;
}

.scene-grid,
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 72px 0;
}

.scene-grid article,
.status-grid article {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.status-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px;
  background: color-mix(in srgb, var(--green) 12%, var(--surface));
  color: var(--green);
  font-weight: 700;
}

.scene-grid h2,
.status-grid h2 {
  margin: 22px 0 10px;
  font-size: 20px;
}

.scene-grid p,
.status-grid p,
.placeholder-page p,
.system-page p {
  color: var(--ink-muted);
  line-height: 1.8;
}

.final-cta {
  display: grid;
  justify-items: center;
  margin: 88px 0 82px;
  padding: 62px 24px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.11), transparent 28rem),
    linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-soft) 46%, var(--surface)));
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.final-cta p:not(.eyebrow) {
  max-width: min(760px, 100%);
  white-space: normal;
  text-wrap: pretty;
}

.final-cta .button {
  margin-top: 28px;
}

.list-hero {
  display: grid;
  justify-items: center;
  margin: 42px 0 0;
  padding: 74px 24px 62px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 10%, rgba(37, 99, 235, 0.14), transparent 30rem),
    linear-gradient(135deg, color-mix(in srgb, var(--surface-soft) 70%, var(--surface)), var(--surface));
  text-align: center;
}

.news-hero {
  background:
    radial-gradient(circle at 50% 8%, rgba(8, 145, 178, 0.18), transparent 30rem),
    linear-gradient(135deg, color-mix(in srgb, #ecfeff 64%, var(--surface)), var(--surface));
}

.list-hero p {
  max-width: 720px;
  color: var(--ink-muted);
  line-height: 1.8;
}

.hero-search {
  display: flex;
  width: min(680px, 100%);
  gap: 10px;
  margin-top: 24px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0 14px;
  outline: 0;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  cursor: pointer;
  font-weight: 700;
  padding: 0 18px;
}

.filter-bar {
  position: sticky;
  top: var(--filter-sticky-top);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 calc(50% - 50vw) 34px;
  padding: 12px max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--page) 90%, transparent);
  backdrop-filter: blur(16px);
}

.filter-bar nav,
.filter-tags {
  display: flex;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-bar nav::-webkit-scrollbar,
.filter-tags::-webkit-scrollbar {
  display: none;
}

.filter-bar a,
.filter-tags a,
.filter-date,
.tag-row span {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-muted);
  padding: 9px 13px;
  font-size: 14px;
}

.filter-bar a.is-active,
.filter-tags a.is-active {
  border-color: color-mix(in srgb, var(--blue) 40%, var(--line));
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
  color: var(--blue);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 78px;
}

.content-grid.three {
  margin-bottom: 0;
}

.button.small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.community-hero {
  --banner-primary-glow: rgba(37, 99, 235, 0.28);
  --banner-secondary-glow: rgba(8, 145, 178, 0.16);
  --banner-tertiary-glow: rgba(22, 163, 74, 0.12);
  display: grid;
  justify-items: center;
  margin: calc(-1 * var(--site-header-space)) calc(50% - 50vw) 0;
  padding: calc(var(--site-header-space) + clamp(64px, 8vw, 96px)) max(20px, calc((100vw - 1180px) / 2)) clamp(56px, 7vw, 84px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
  text-align: center;
}

.tutorial-header {
  --banner-secondary-glow: rgba(22, 163, 74, 0.18);
}

.news-hero-page {
  --banner-secondary-glow: rgba(8, 145, 178, 0.20);
}

.community-hero h1 {
  width: min(920px, 100%);
  margin: 0;
  font-size: clamp(46px, 6.4vw, 78px);
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.community-hero .lead {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--ink-muted);
  line-height: 1.85;
}

.community-hero-note {
  max-width: 820px;
  margin: 14px 0 0;
  color: var(--ink-subtle);
  font-size: 14px;
  line-height: 1.7;
}

.community-hero-search {
  display: flex;
  width: min(720px, 100%);
  gap: 10px;
  margin-top: 28px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-soft);
}

.community-hero-search .search-input,
.community-tabs-search .search-input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: 0;
}

.community-hero-search .search-input {
  padding: 0 16px;
}

.community-hero-search .search-submit {
  min-height: 42px;
}

.community-tabs-shell {
  --tabs-bar-bg: transparent;
  --tabs-fade-bg: var(--page);
  position: sticky;
  top: var(--filter-sticky-top);
  z-index: 32;
  width: 100vw;
  margin: 0 calc(50% - 50vw) 38px;
  padding: 10px max(20px, calc((100vw - 1180px) / 2));
  transition: none;
}

.community-tabs-shell.is-stuck {
  --tabs-bar-bg: color-mix(in srgb, var(--surface) 96%, transparent);
  --tabs-fade-bg: color-mix(in srgb, var(--surface) 96%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  background: var(--tabs-bar-bg);
  box-shadow: 0 10px 30px rgba(28, 43, 72, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

html[data-theme="dark"] .community-tabs-shell.is-stuck {
  --tabs-bar-bg: color-mix(in srgb, var(--surface) 92%, transparent);
  --tabs-fade-bg: color-mix(in srgb, var(--surface) 92%, transparent);
  background: var(--tabs-bar-bg);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.community-tabs-shell.is-desktop-fixed {
  position: fixed;
  top: var(--filter-sticky-top);
  right: 0;
  left: 0;
  z-index: 39;
  width: 100%;
  margin: 0;
}

.tutorial-mobile-filter-sentinel,
.news-mobile-filter-sentinel {
  width: 100%;
  height: 0;
  pointer-events: none;
}

.tutorial-mobile-filter-spacer,
.news-mobile-filter-spacer {
  display: none;
  width: 100%;
  pointer-events: none;
}

.tutorial-mobile-filter-spacer.is-active,
.news-mobile-filter-spacer.is-active {
  display: block;
}

.community-tabs-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.community-tabs-scroll {
  --tabs-mask-left: 0px;
  --tabs-mask-right: 0px;
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--tabs-mask-left), #000 calc(100% - var(--tabs-mask-right)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--tabs-mask-left), #000 calc(100% - var(--tabs-mask-right)), transparent 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.community-tabs-shell.has-tab-overflow:not(.is-tab-scroll-start) .community-tabs-scroll {
  --tabs-mask-left: 34px;
}

.community-tabs-shell.has-tab-overflow:not(.is-tab-scroll-end) .community-tabs-scroll {
  --tabs-mask-right: 34px;
}

.community-tabs-list.filter-bar {
  position: static;
  z-index: auto;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  backdrop-filter: none;
}

.community-tabs-list.filter-bar::-webkit-scrollbar {
  display: none;
}

.community-tab,
.community-tab-arrow,
.tag-filter-trigger {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--ink-muted);
  cursor: pointer;
  font-weight: 650;
  padding: 0 14px;
  transition: background 160ms ease, color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.community-tab:hover,
.community-tab:focus-visible,
.tag-filter-trigger:hover,
.tag-filter-trigger:focus-visible {
  background: transparent;
  color: var(--blue);
}

.community-tab.is-active,
.tag-filter-trigger.is-active,
.tag-filter-trigger[aria-expanded="true"] {
  background: color-mix(in srgb, var(--blue) 11%, var(--surface));
  color: var(--blue);
}

.community-tab:focus-visible,
.community-tab-arrow:focus-visible,
.tag-filter-trigger:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--blue) 38%, transparent);
  outline-offset: 2px;
}

.community-tab-arrow {
  width: 32px;
  min-height: 40px;
  padding: 0;
  border-radius: 0;
  color: color-mix(in srgb, var(--ink) 58%, var(--ink-subtle));
  line-height: 1;
  opacity: .76;
}

.community-tab-arrow-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease, opacity 160ms ease;
}

.community-tab-arrow:hover,
.community-tab-arrow:focus-visible {
  background: transparent;
  color: var(--blue);
  opacity: 1;
}

.community-tab-arrow[data-scroll-tabs="left"]:hover .community-tab-arrow-icon,
.community-tab-arrow[data-scroll-tabs="left"]:focus-visible .community-tab-arrow-icon {
  transform: translateX(-1px);
}

.community-tab-arrow[data-scroll-tabs="right"]:hover .community-tab-arrow-icon,
.community-tab-arrow[data-scroll-tabs="right"]:focus-visible .community-tab-arrow-icon {
  transform: translateX(1px);
}

.community-tab-arrow.is-hidden {
  display: none;
}

.community-tabs-list.filter-bar .community-tab {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink-muted);
  padding: 0 14px;
}

.community-tabs-list.filter-bar .community-tab:hover,
.community-tabs-list.filter-bar .community-tab:focus-visible {
  border: 0;
  background: transparent;
  color: var(--blue);
}

.community-tabs-list.filter-bar .community-tab.is-active {
  border: 0;
  background: color-mix(in srgb, var(--blue) 11%, var(--surface));
  color: var(--blue);
}

.tutorial-tag-filter {
  position: relative;
  flex: 0 0 auto;
}

.community-tabs-shell.is-stuck .tutorial-tag-filter {
  order: 21;
}

.tutorial-mobile-search-filter,
.news-mobile-search-filter,
.tag-filter-label-mobile,
.tag-filter-label-mobile-short,
.news-date-label-mobile-short,
.news-mobile-filter-head,
.news-mobile-category-filter,
.news-mobile-filter-group > strong {
  display: none;
}

.tag-filter-trigger svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tag-filter-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 5;
  display: grid;
  width: min(420px, calc(100vw - 32px));
  max-height: min(72vh, 620px);
  min-height: 0;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-raised);
}

.tag-filter-panel[hidden] {
  display: none;
}

.tag-filter-panel.is-dropup {
  top: auto;
  bottom: calc(100% + 12px);
}

.tag-filter-head {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.tag-filter-head strong {
  font-size: 16px;
}

.tag-filter-head span {
  color: var(--ink-subtle);
  font-size: 13px;
}

.tag-filter-groups {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.tutorial-filter-category-group {
  display: none;
}

.tag-filter-group h3 {
  margin: 0 0 8px;
  color: var(--ink-muted);
  font-size: 13px;
}

.tag-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-filter-option {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 0 11px;
}

.tag-filter-option input {
  width: 14px;
  height: 14px;
  accent-color: var(--blue);
}

.tag-filter-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--blue) 46%, var(--line));
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
  color: var(--blue);
}

.tag-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.community-tabs-search {
  display: none;
  flex: 0 1 240px;
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 0 14px;
}

.community-tabs-shell.is-stuck .community-tabs-search {
  display: flex;
  order: 20;
  flex: 0 1 clamp(220px, 24vw, 300px);
  min-width: 200px;
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 34px;
}

.tutorial-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tutorial-card:hover,
.tutorial-card:has(.tutorial-card-main:focus-visible) {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-raised);
}

.tutorial-card-main {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.tutorial-card .card-cover {
  position: relative;
  display: flex;
  min-height: 170px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 0;
  isolation: isolate;
}

.tutorial-card .card-cover::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.74), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.68), transparent 30%),
    linear-gradient(145deg, transparent 0 44%, rgba(255, 255, 255, 0.3) 44% 48%, transparent 48%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 54%);
  content: "";
}

.tutorial-card .card-cover::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 78px;
  height: 58px;
  border: 0;
  border-radius: 18px;
  background:
    radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.92) 0 5px, transparent 6px),
    linear-gradient(135deg, transparent 0 55%, rgba(255, 255, 255, 0.78) 56% 72%, transparent 73%),
    linear-gradient(45deg, transparent 0 48%, rgba(255, 255, 255, 0.62) 49% 67%, transparent 68%),
    rgba(255, 255, 255, 0.34);
  content: "";
  transform: translate(-50%, -50%);
}

.tutorial-card .card-cover.has-cover-image::before,
.tutorial-card .card-cover.has-cover-image::after {
  display: none;
}

.tutorial-card .card-cover img,
.news-cover img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.tutorial-card .card-body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.tutorial-card .meta-line {
  color: var(--blue);
  font-weight: 700;
}

.tutorial-card-title {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 8px;
}

.tutorial-card-title strong,
.news-card-body strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  min-width: 0;
  font-size: 18px;
  line-height: 1.36;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.content-pro-badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--blue) 34%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
  color: color-mix(in srgb, var(--blue) 82%, var(--ink));
  flex: 0 0 auto;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.tutorial-card-title .content-pro-badge {
  margin-top: 1px;
}

.tag-row span.content-pro-badge {
  border-color: color-mix(in srgb, var(--blue) 34%, var(--line));
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
  color: color-mix(in srgb, var(--blue) 82%, var(--ink));
  font-weight: 800;
}

html[data-theme="dark"] .content-pro-badge,
html[data-theme="dark"] .tag-row span.content-pro-badge {
  border-color: color-mix(in srgb, var(--blue) 38%, var(--line));
  background: color-mix(in srgb, var(--blue) 18%, var(--surface));
  color: color-mix(in srgb, var(--blue) 74%, #ffffff);
}

.tutorial-card .card-body span.summary,
.news-card-body span.summary {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.75;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tutorial-card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 2px;
}

.tutorial-card .card-body span.tag {
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 7%, var(--surface));
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
}

.tutorial-card > .card-footer-row {
  padding: 0 20px 20px;
}

.tutorial-card-date {
  flex: 0 0 auto;
  color: var(--ink-subtle);
}

.news-tabs-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  order: 21;
}

.news-tabs-actions .community-tabs-search {
  order: 0;
}

.news-date-filter {
  position: relative;
  flex: 0 0 auto;
  order: 1;
}

.news-date-trigger {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-muted);
  cursor: pointer;
  font-weight: 650;
  padding: 0 13px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.news-date-trigger:hover,
.news-date-trigger:focus-visible,
.news-date-trigger[aria-expanded="true"] {
  border-color: color-mix(in srgb, var(--blue) 42%, var(--line));
  background: color-mix(in srgb, var(--blue) 12%, var(--surface));
  color: var(--blue);
}

.news-mobile-filter-icon,
.news-date-caret {
  width: 16px;
  height: 16px;
  margin-left: 2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.news-mobile-filter-icon {
  display: none;
  margin-right: 4px;
  margin-left: 0;
}

.news-date-trigger[aria-expanded="true"] .news-date-caret {
  transform: rotate(180deg);
}

.news-date-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 6;
  display: grid;
  width: min(360px, calc(100vw - 32px));
  max-height: min(72vh, 620px);
  min-height: 0;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-raised);
}

.news-date-popover[hidden] {
  display: none;
}

.news-mobile-filter-groups {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.date-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.date-option {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink-muted);
  cursor: pointer;
  font-weight: 650;
}

.date-option:hover,
.date-option:focus-visible,
.date-option.is-active {
  border-color: color-mix(in srgb, var(--blue) 42%, var(--line));
  background: color-mix(in srgb, var(--blue) 12%, var(--surface));
  color: var(--blue);
}

.date-range-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.date-field {
  display: grid;
  gap: 6px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 650;
}

.date-field input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  outline: 0;
  padding: 0 10px;
}

.date-field input:focus {
  border-color: color-mix(in srgb, var(--blue) 55%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 10%, transparent);
}

.date-popover-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.news-list-section {
  margin-bottom: 82px;
}

.news-toolbar-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 6px 0 22px;
}

.news-toolbar-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
}

.news-results-info {
  color: var(--ink-subtle);
  font-size: 14px;
  font-weight: 650;
}

.news-results-info .num {
  color: var(--blue);
}

.news-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 34px;
}

.news-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.news-card:hover,
.news-card:has(.news-card-main:focus-visible) {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-raised);
}

.news-card-main {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
}

.news-cover {
  position: relative;
  display: flex;
  min-height: 142px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 0;
  isolation: isolate;
}

.news-cover::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 16% 22%, rgba(255, 255, 255, .36) 0 2px, transparent 3px),
    radial-gradient(circle at 26% 76%, rgba(255, 255, 255, .3) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.56), transparent 30%),
    linear-gradient(145deg, transparent 0 44%, rgba(255, 255, 255, 0.24) 44% 48%, transparent 48%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 54%);
  background-size: 30px 30px, auto, auto;
  content: "";
}

.news-cover::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 56px;
  border: 0;
  border-radius: 18px;
  background:
    radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.92) 0 5px, transparent 6px),
    linear-gradient(135deg, transparent 0 55%, rgba(255, 255, 255, 0.76) 56% 72%, transparent 73%),
    linear-gradient(45deg, transparent 0 48%, rgba(255, 255, 255, 0.58) 49% 67%, transparent 68%),
    rgba(255, 255, 255, 0.32);
  content: "";
  transform: translate(-50%, -50%);
}

.news-cover.has-cover-image::before,
.news-cover.has-cover-image::after {
  display: none;
}

.news-card-body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.news-card > .card-footer-row {
  padding: 0 20px 20px;
}

.card-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  row-gap: 10px;
  margin-top: auto;
  color: var(--ink-subtle);
  font-size: 13px;
}

.card-footer-row .content-stats {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  min-width: 0;
  align-items: center;
  gap: 10px 12px;
}

.card-footer-row .stat-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  border: 0;
  background: transparent;
  color: var(--ink-subtle);
  font: inherit;
  font-size: 13px;
  line-height: 1;
  padding: 0;
  white-space: nowrap;
}

.card-footer-row .stat-action {
  cursor: pointer;
}

.card-footer-row .stat-action:hover,
.card-footer-row .stat-action:focus-visible,
.card-footer-row .stat-action.is-active {
  border-color: transparent;
  background: transparent;
  outline: 0;
  color: var(--blue);
}

.card-footer-row .stat-action:hover strong,
.card-footer-row .stat-action:focus-visible strong,
.card-footer-row .stat-action.is-active strong {
  color: var(--blue);
}

.card-footer-row svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-footer-row .stat-item strong {
  color: currentColor;
  font-weight: 650;
}

.card-date,
.news-card-date,
.tutorial-card-date {
  flex: 0 0 auto;
  margin-left: auto;
  align-self: center;
  color: var(--ink-subtle);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.pagination-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 80px;
}

.page-link,
.page-status {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 650;
  padding: 0 14px;
}

.page-link:hover,
.page-link:focus-visible,
.page-link.is-active {
  border-color: color-mix(in srgb, var(--blue) 42%, var(--line));
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
  color: var(--blue);
}

.page-link.is-disabled {
  pointer-events: none;
  opacity: .45;
}

.page-status {
  color: var(--ink-subtle);
  font-weight: 650;
}

.ui-native-control {
  display: none !important;
}

.ui-select,
.ui-date {
  position: relative;
  display: inline-flex;
  width: 100%;
  min-width: 0;
  vertical-align: middle;
}

.ui-select-trigger,
.ui-date-trigger {
  display: inline-flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, #fff), var(--surface));
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  outline: 0;
  padding: 0 12px;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.settings-form .ui-select-trigger,
.settings-form .ui-date-trigger,
.account-filter .ui-select-trigger,
.account-filter .ui-date-trigger {
  min-height: 46px;
  border-radius: 14px;
  padding: 0 14px;
}

.ui-select-trigger:hover,
.ui-select-trigger:focus-visible,
.ui-select.is-open .ui-select-trigger,
.ui-date-trigger:hover,
.ui-date-trigger:focus-visible,
.ui-date.is-open .ui-date-trigger {
  border-color: color-mix(in srgb, var(--blue) 46%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 10%, transparent);
}

.ui-select.is-disabled,
.ui-date.is-disabled {
  opacity: .72;
}

.ui-select.is-disabled .ui-select-trigger,
.ui-date.is-disabled .ui-date-trigger {
  cursor: not-allowed;
  background: color-mix(in srgb, var(--surface-soft) 68%, var(--surface));
  color: var(--ink-subtle);
}

.ui-select-value,
.ui-date-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-control-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .72;
  transition: transform 160ms ease, opacity 160ms ease;
}

.ui-select.is-open .ui-control-icon {
  opacity: 1;
  transform: rotate(180deg);
}

.ui-select-menu,
.ui-date-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 70;
  width: max(100%, 220px);
  border: 1px solid color-mix(in srgb, var(--blue) 18%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 96%, #fff);
  box-shadow: 0 22px 54px rgba(15, 23, 42, .14);
  padding: 8px;
}

.ui-option-group {
  display: flex;
  align-items: center;
  min-height: 28px;
  color: var(--ink-subtle);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 4px 10px 2px;
  pointer-events: none;
}

.ui-option {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 0 10px;
  text-align: left;
}

.ui-option:hover,
.ui-option:focus-visible {
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
  color: var(--blue);
  outline: 0;
}

.ui-option.is-active {
  background: color-mix(in srgb, var(--blue) 12%, var(--surface));
  color: var(--blue);
}

.ui-option:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.ui-date-popover {
  width: min(340px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: min(420px, calc(100vh - 24px));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 12px;
}

.ui-date.is-align-right .ui-date-popover {
  right: 0;
  left: auto;
}

.ui-date.is-open-upward .ui-date-popover {
  top: auto;
  bottom: calc(100% + 8px);
}

.ui-date-head {
  display: grid;
  grid-template-columns: 34px 34px minmax(0, 1fr) 34px 34px;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  text-align: center;
}

.ui-date-title {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.ui-date-title input {
  height: 34px;
  min-height: 34px !important;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 94%, var(--surface-soft));
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  outline: 0;
  text-align: center;
}

.ui-date-title input:first-child {
  width: 62px;
}

.ui-date-title input:nth-of-type(2) {
  width: 48px;
}

.ui-date-title input:focus {
  border-color: color-mix(in srgb, var(--blue) 48%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 10%, transparent);
}

.ui-date-nav {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-muted);
  cursor: pointer;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  padding: 0 0 1px;
  text-align: center;
}

.ui-date-nav:hover,
.ui-date-nav:focus-visible {
  border-color: color-mix(in srgb, var(--blue) 34%, var(--line));
  color: var(--blue);
  outline: 0;
}

.ui-date-week,
.ui-date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.ui-date-week {
  margin-bottom: 6px;
  color: var(--ink-subtle);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.ui-date-day,
.ui-date-blank {
  min-height: 32px;
}

.ui-date-day {
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
}

.ui-date-day:hover,
.ui-date-day:focus-visible {
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
  color: var(--blue);
  outline: 0;
}

.ui-date-day.is-active {
  background: var(--blue);
  color: #fff;
}

.ui-time-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--ink-muted);
  font-weight: 700;
}

.ui-time-row input {
  width: 54px !important;
  min-height: 36px !important;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 650;
  text-align: center;
}

.ui-date-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.tag-filter-option input {
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
}

.ui-pagination {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 12px;
  margin: 26px 0 80px;
  color: var(--ink-muted);
  font-size: 14px;
}

.admin-main .ui-pagination,
.account-panel .ui-pagination {
  margin: 22px 0 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 12px 14px;
}

.ui-pagination-status {
  display: inline-flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.ui-pagination-status strong {
  color: var(--ink);
  font-weight: 700;
}

.ui-pagination-pages,
.ui-page-size,
.ui-page-size label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ui-pagination-pages {
  justify-content: center;
}

.ui-page-size {
  justify-content: flex-end;
}

.ui-page-size label {
  color: var(--ink-muted);
  font-weight: 650;
}

.ui-page-size .ui-select {
  width: 82px;
}

.ui-page-size .ui-select.is-open {
  z-index: 85;
}

.ui-page-size .ui-select-menu {
  top: auto;
  bottom: calc(100% + 8px);
  width: max(100%, 96px);
  min-width: 0;
  max-height: min(180px, calc(100vh - 120px));
  overflow: auto;
}
.ui-page-link {
  display: inline-flex;
  min-width: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-muted);
  font-weight: 650;
  padding: 0 10px;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.ui-page-link:hover,
.ui-page-link:focus-visible,
.ui-page-link.is-active {
  border-color: color-mix(in srgb, var(--blue) 36%, var(--line));
  background: color-mix(in srgb, var(--blue) 9%, var(--surface));
  color: var(--blue);
}

.admin-main .ui-page-link.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.ui-page-link.is-disabled {
  pointer-events: none;
  opacity: .42;
}

html[data-theme="dark"] .ui-select-trigger,
html[data-theme="dark"] .ui-date-trigger,
html[data-theme="dark"] .ui-select-menu,
html[data-theme="dark"] .ui-date-popover,
html[data-theme="dark"] .ui-date-nav,
html[data-theme="dark"] .ui-time-row input,
html[data-theme="dark"] .ui-page-link,
html[data-theme="dark"] .ui-pagination {
  background: color-mix(in srgb, var(--surface) 92%, #0b1220);
}

html[data-theme="dark"] .ui-select-menu,
html[data-theme="dark"] .ui-date-popover {
  box-shadow: 0 24px 64px rgba(0, 0, 0, .42);
}

html[data-theme="dark"] .ui-option:hover,
html[data-theme="dark"] .ui-option:focus-visible,
html[data-theme="dark"] .ui-option.is-active,
html[data-theme="dark"] .ui-date-day:hover,
html[data-theme="dark"] .ui-date-day:focus-visible,
html[data-theme="dark"] .ui-page-link:hover,
html[data-theme="dark"] .ui-page-link:focus-visible,
html[data-theme="dark"] .ui-page-link.is-active {
  background: color-mix(in srgb, var(--blue) 18%, var(--surface));
}

.lazy-list-wrap {
  min-width: 0;
}

.lazy-load-footer {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 28px 0 80px;
}

.account-lazy-list-wrap .lazy-load-footer {
  margin: 18px 0 0;
}

.lazy-load-status {
  min-height: 20px;
  margin: 0;
  color: var(--ink-subtle);
  font-size: 14px;
  font-weight: 550;
}

.lazy-load-button {
  min-width: 148px;
  border-color: color-mix(in srgb, var(--blue) 22%, var(--line));
  background: color-mix(in srgb, var(--blue) 5%, var(--surface));
  color: var(--blue);
}

.lazy-load-button[hidden] {
  display: none !important;
}

.lazy-load-button:hover,
.lazy-load-button:focus-visible {
  border-color: color-mix(in srgb, var(--blue) 48%, var(--line));
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
}

.lazy-load-button:disabled {
  cursor: wait;
  opacity: .72;
}

.lazy-load-sentinel {
  width: 100%;
  height: 1px;
}

html[data-theme="dark"] .lazy-load-button {
  background: color-mix(in srgb, var(--blue) 12%, var(--surface));
}

.reader-shell {
  display: block;
  position: relative;
  overflow: visible;
  padding-top: clamp(38px, 5vw, 58px);
}

.reader-outline {
  position: fixed;
  top: calc(var(--site-header-space) + 22px);
  left: 0;
  z-index: 35;
  width: max-content;
  min-width: 286px;
  max-width: min(560px, calc((100vw - 1180px) / 2 - 24px));
  align-self: start;
  overflow: visible;
  padding: 10px 16px 22px 14px;
  pointer-events: none;
}

.reader-outline-rail {
  position: fixed;
  top: calc(var(--site-header-space) + 28px);
  left: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 46px;
  border: 0;
  border-left: 0;
  border-radius: 0 16px 16px 0;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--ink-muted);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  line-height: 0;
  padding: 0;
  box-shadow: 0 10px 24px rgba(28, 43, 72, 0.11);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.reader-outline-rail svg,
.reader-outline-icon-button svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.reader-outline.is-collapsed .reader-outline-rail {
  opacity: 1;
  pointer-events: auto;
}

.reader-outline-rail:hover,
.reader-outline-rail:focus-visible {
  border-color: color-mix(in srgb, var(--blue) 44%, var(--line));
  background: color-mix(in srgb, var(--blue) 9%, var(--surface));
  color: var(--blue);
  box-shadow: 0 12px 28px rgba(37, 99, 235, .13);
  outline: none;
}

.reader-outline-card {
  display: grid;
  gap: 14px;
  width: max-content;
  min-width: 286px;
  max-width: 100%;
  color: var(--ink-subtle);
  font-size: 14px;
  pointer-events: auto;
  transition: transform 220ms ease, opacity 160ms ease;
}

.reader-outline.is-collapsed .reader-outline-card {
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(-100% - 24px));
}

.reader-outline-desktop .reader-outline-card {
  max-height: calc(100dvh - var(--site-header-space) - 64px);
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  scrollbar-width: thin;
  backdrop-filter: blur(16px);
}

.reader-outline-card strong {
  color: var(--ink);
  font-size: 15px;
  letter-spacing: .02em;
}

.reader-outline-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.reader-outline-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.reader-outline-icon-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 82%, var(--surface-soft));
  color: var(--ink-muted);
  cursor: pointer;
  line-height: 0;
  padding: 0;
  box-shadow: 0 8px 20px rgba(28, 43, 72, .06);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.reader-outline-action {
  position: relative;
}

.reader-outline-action-icon {
  display: none;
  line-height: 0;
}

.reader-outline-action[data-outline-action-state="collapse"] .reader-outline-icon-collapse,
.reader-outline-action[data-outline-action-state="expand"] .reader-outline-icon-expand {
  display: inline-flex;
}

.reader-outline-icon-button:hover,
.reader-outline-icon-button:focus-visible {
  border-color: color-mix(in srgb, var(--blue) 42%, var(--line));
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
  color: var(--blue);
  box-shadow: 0 12px 28px rgba(37, 99, 235, .1);
  outline: none;
}

.reader-outline-close {
  color: var(--ink-muted);
}
.outline-tree {
  display: grid;
  gap: 0;
  overflow: visible;
  min-width: 0;
}

.outline-node {
  position: relative;
  min-width: 0;
}

.outline-node-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 30px;
  border-left: 2px solid transparent;
  line-height: 1.5;
  min-width: 0;
  padding: 5px 4px 5px 2px;
  transition: border-color 160ms ease, color 160ms ease;
}

.outline-node summary {
  list-style: none;
  cursor: pointer;
}

.outline-node summary::-webkit-details-marker {
  display: none;
}

.outline-node-depth-1 > .outline-node-row {
  color: var(--ink);
  font-weight: 650;
}

.outline-node-depth-1:not(:last-child) {
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 58%, transparent);
}

.outline-node-depth-2 > .outline-node-row {
  color: var(--ink-muted);
  font-size: 13.5px;
}

.outline-node-depth-3 > .outline-node-row,
.outline-node-depth-4 > .outline-node-row,
.outline-node-depth-5 > .outline-node-row,
.outline-node-depth-6 > .outline-node-row {
  color: var(--ink-subtle);
  font-size: 12.5px;
}

.outline-node-row:hover,
.outline-node-row:focus-within {
  border-left-color: color-mix(in srgb, var(--blue) 70%, var(--line));
  color: var(--blue);
}

.outline-node summary:focus-visible {
  outline: none;
}

.outline-toggle,
.outline-toggle-placeholder {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: color-mix(in srgb, var(--ink-subtle) 76%, transparent);
}

.outline-toggle::before {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor;
  content: "";
  transition: transform 160ms ease;
}

.outline-node[open] > .outline-node-row .outline-toggle::before {
  transform: rotate(90deg);
}

.outline-link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
}

.outline-number {
  flex: 0 0 auto;
  min-width: 24px;
  color: color-mix(in srgb, var(--ink-subtle) 78%, transparent);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: .02em;
}

.outline-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  white-space: nowrap;
}

.outline-link:hover,
.outline-link:focus-visible {
  color: var(--blue);
  outline: none;
}

.outline-branch {
  display: grid;
  gap: 0;
  position: relative;
  margin: 2px 0 8px 27px;
  border-left: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  padding-left: 11px;
}

.outline-branch .outline-node::before {
  position: absolute;
  top: 17px;
  left: -11px;
  width: 8px;
  border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  content: "";
}

.outline-leaf .outline-node-row {
  color: var(--ink-subtle);
}

.reader-main {
  width: 100%;
  margin: 0 auto;
  min-width: 0;
}

.reader-header {
  display: grid;
  gap: 16px;
  padding-bottom: 10px;
}

.reader-header h1 {
  width: 100%;
  max-width: none;
  margin: 0;
  font-size: clamp(32px, 3.1vw, 44px);
  line-height: 1.16;
}

.reader-header > p:not(.eyebrow) {
  max-width: none;
  margin: 0;
  color: var(--ink-muted);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.75;
}

.news-detail-note {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  color: var(--ink-subtle);
  font-size: 14px;
  line-height: 1.7;
}

.article-tools-row,
.article-engagement,
.article-quick-actions,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.article-tools-row {
  justify-content: space-between;
  gap: 14px 20px;
}

.article-engagement {
  gap: 16px;
  margin-top: 2px;
  border-top: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  padding-top: 14px;
}

.article-published-date {
  margin-left: auto;
  color: var(--ink-subtle);
  font-size: 14px;
  white-space: nowrap;
}

.content-share-cluster {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.content-share-cluster .article-published-date {
  margin-left: 0;
}

.content-share-wrap {
  position: relative;
  display: inline-flex;
}

.article-quick-actions,
.tag-row {
  gap: 10px;
}

.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.3;
  padding: 0;
}

.stat-item svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-item strong {
  color: var(--ink);
  font-weight: 700;
}

.article-engagement .stat-action {
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.article-engagement .stat-action:hover,
.article-engagement .stat-action:focus-visible,
.article-engagement .stat-action.is-active,
.content-share-trigger:hover,
.content-share-trigger:focus-visible,
.content-share-trigger.is-active {
  border-color: transparent;
  background: transparent;
  color: var(--blue);
}

.article-engagement .stat-action:hover strong,
.article-engagement .stat-action:focus-visible strong,
.article-engagement .stat-action.is-active strong {
  color: var(--blue);
}

.content-share-trigger {
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.share-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 35;
  display: grid;
  min-width: 218px;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shadow-soft);
  padding: 8px;
}

.share-popover[hidden] {
  display: none;
}

.share-popover button {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  padding: 0 10px;
  text-align: left;
}

.share-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-soft) 46%, var(--surface));
  color: var(--ink-muted);
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.share-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.share-brand-icon {
  border-color: transparent;
  background: var(--brand-color, var(--blue));
  color: #ffffff;
}

.share-brand-icon svg {
  fill: currentColor;
  stroke: none;
}

.brand-x {
  --brand-color: #0f1419;
}

.brand-linkedin {
  --brand-color: #0a66c2;
}

.brand-facebook {
  --brand-color: #1877f2;
}

.brand-whatsapp {
  --brand-color: #25d366;
}

.brand-telegram {
  --brand-color: #26a5e4;
}

.brand-reddit {
  --brand-color: #ff4500;
}

.share-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-popover button:hover,
.share-popover button:focus-visible {
  background: color-mix(in srgb, var(--blue) 8%, transparent);
  color: var(--blue);
  outline: 0;
}

.share-popover button:hover .share-icon,
.share-popover button:focus-visible .share-icon {
  border-color: color-mix(in srgb, var(--blue) 24%, var(--line));
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
  color: var(--blue);
}

.share-popover button:hover .share-brand-icon,
.share-popover button:focus-visible .share-brand-icon {
  border-color: transparent;
  background: var(--brand-color, var(--blue));
  color: #ffffff;
}

.reader-action-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  padding: 0 14px;
}

.reader-action-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.tts-podcast-icon {
  fill: none !important;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.reader-action-button.primary {
  border-color: color-mix(in srgb, var(--blue) 30%, var(--line));
  background: color-mix(in srgb, var(--blue) 9%, var(--surface));
  color: var(--blue);
}

.reader-action-button:hover,
.reader-action-button:focus-visible {
  border-color: color-mix(in srgb, var(--blue) 44%, var(--line));
  color: var(--blue);
}

.tag-row span.article-category-tag {
  border-color: color-mix(in srgb, var(--blue) 32%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue) 14%, var(--surface)), var(--surface));
  color: var(--blue);
  font-weight: 700;
}

.detail-tools span,
.text-tool,
.stat-action {
  border-radius: 999px;
  color: var(--ink-muted);
  font-size: 14px;
  padding: 8px 0;
}

.text-tool,
.stat-action {
  padding: 8px 12px;
}

.stat-action {
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.stat-action:hover,
.stat-action:focus-visible,
.stat-action.is-active {
  border-color: color-mix(in srgb, var(--blue) 26%, var(--line));
  background: color-mix(in srgb, var(--blue) 8%, transparent);
  color: var(--blue);
}

.stat-action:disabled {
  cursor: wait;
  opacity: 0.7;
}

.detail-cover {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.article-cover {
  display: block;
  width: 100%;
  overflow: hidden;
  margin: 32px 0 0;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 22px;
  background: var(--surface-soft);
  aspect-ratio: 16 / 9;
}

.article-cover img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.article-preview-body {
  position: relative;
  max-height: clamp(680px, 76vh, 920px);
  padding-bottom: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 220px), rgba(0, 0, 0, .86) calc(100% - 164px), rgba(0, 0, 0, .42) calc(100% - 72px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 220px), rgba(0, 0, 0, .86) calc(100% - 164px), rgba(0, 0, 0, .42) calc(100% - 72px), transparent 100%);
}

.article-preview-body::after {
  display: none;
  content: none;
}

.pro-access-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 28px 0 0;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--blue) 24%, var(--line));
  border-radius: 22px;
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--blue) 11%, transparent), transparent 28rem),
    color-mix(in srgb, var(--surface) 94%, var(--blue));
  box-shadow: var(--shadow);
}

.pro-access-copy {
  display: grid;
  min-width: 0;
  gap: 9px;
}

.pro-access-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.3;
}

.pro-access-copy p {
  max-width: 680px;
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.7;
}

.pro-access-copy .content-pro-badge {
  width: fit-content;
}

.pro-access-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}


html[data-theme="dark"] .pro-access-card {
  border-color: color-mix(in srgb, var(--blue) 34%, var(--line));
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--blue) 16%, transparent), transparent 28rem),
    color-mix(in srgb, var(--surface) 91%, #111827);
}

.article-cover-placeholder {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.article-cover-placeholder::before,
.article-cover-placeholder::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  opacity: .72;
}

.article-cover-placeholder::before {
  right: 8%;
  top: -26%;
  width: 34%;
  aspect-ratio: 1;
  background: color-mix(in srgb, var(--blue) 18%, transparent);
}

.article-cover-placeholder::after {
  left: 8%;
  bottom: -34%;
  width: 30%;
  aspect-ratio: 1;
  background: color-mix(in srgb, var(--green) 18%, transparent);
}

.article-cover-placeholder span {
  position: absolute;
  display: block;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.article-cover-placeholder span:nth-child(1) {
  left: 9%;
  top: 20%;
  width: 28%;
  height: 56%;
}

.article-cover-placeholder span:nth-child(2) {
  left: 42%;
  top: 25%;
  width: 43%;
  height: 13%;
}

.article-cover-placeholder span:nth-child(3) {
  left: 42%;
  top: 48%;
  width: 18%;
  height: 24%;
}

.access-note {
  width: max-content;
  max-width: 100%;
  border: 1px solid color-mix(in srgb, var(--orange) 22%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--orange) 8%, var(--surface));
  color: color-mix(in srgb, var(--orange) 72%, var(--ink));
  font-size: 14px !important;
  line-height: 1.4 !important;
  padding: 9px 13px;
}

.markdown-body {
  margin-top: 42px;
  max-width: none;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.82;
}

.markdown-body h1 {
  display: none;
}

.markdown-body h2 {
  scroll-margin-top: calc(var(--site-header-space) + 18px);
  margin: 42px 0 12px;
  font-size: 30px;
}

.markdown-body h3 {
  scroll-margin-top: calc(var(--site-header-space) + 18px);
  margin: 28px 0 10px;
  font-size: 22px;
}

.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  scroll-margin-top: calc(var(--site-header-space) + 18px);
  margin: 22px 0 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
}

.markdown-body p,
.markdown-body li {
  color: var(--ink-muted);
}

.markdown-body .is-tts-active {
  scroll-margin-top: calc(var(--site-header-space) + 28px);
  border-radius: 10px;
  background: color-mix(in srgb, var(--blue) 9%, transparent);
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--blue) 38%, transparent), 0 0 0 1px color-mix(in srgb, var(--blue) 11%, transparent);
  padding: .16em .42em;
  transition: background-color .18s ease, box-shadow .18s ease;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.markdown-body :is(p, li, blockquote).is-tts-active {
  line-height: 1.78;
  margin-top: .22em;
  margin-bottom: .22em;
}

.markdown-body li.is-tts-active {
  border-radius: 9px;
  padding-top: .08em;
  padding-bottom: .08em;
}

.markdown-body li.is-tts-active + li.is-tts-active {
  margin-top: .2em;
}

html[data-theme="dark"] .markdown-body .is-tts-active {
  background: rgba(59, 130, 246, .16);
  box-shadow: inset 3px 0 0 rgba(96, 165, 250, .55), 0 0 0 1px rgba(96, 165, 250, .18);
}

.markdown-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.markdown-body pre {
  position: relative;
  overflow: auto;
  padding: 18px;
  border-radius: 18px;
  background: #0f172a;
  color: #e2e8f0;
}

.code-block-shell {
  position: relative;
  margin: 24px 0;
}

.code-block-shell .markdown-body pre,
.markdown-body .code-block-shell pre {
  margin: 0;
}

.code-copy-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  min-height: 30px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 999px;
  background: rgba(15, 23, 42, .82);
  color: #e5edf8;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  padding: 0 11px;
  pointer-events: none;
  transition: opacity .16s ease, border-color .16s ease, background-color .16s ease, color .16s ease;
}

.code-block-shell:hover .code-copy-button,
.code-block-shell:focus-within .code-copy-button {
  opacity: 1;
  pointer-events: auto;
}

.code-copy-button:hover,
.code-copy-button:focus-visible {
  border-color: rgba(147, 197, 253, .56);
  background: rgba(30, 41, 59, .96);
  color: #ffffff;
  outline: 0;
}

.markdown-body code {
  font-family: var(--font-mono);
}

.markdown-body :not(pre) > code {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-soft) 60%, var(--surface));
  color: var(--ink);
  padding: 1px 6px;
}

html[data-theme="dark"] .markdown-body pre {
  margin: 28px 0;
  padding: 20px 22px;
  border: 1px solid rgba(71, 85, 105, .62);
  background: #0b1220;
  color: #e5edf8;
  box-shadow: none;
}

html[data-theme="dark"] .markdown-body .code-block-shell pre {
  margin: 0;
}

html[data-theme="dark"] .markdown-body pre code {
  color: inherit;
}

html[data-theme="dark"] .markdown-body :not(pre) > code {
  border-color: rgba(96, 165, 250, .26);
  background: rgba(37, 99, 235, .12);
  color: #dbeafe;
}

.markdown-body blockquote {
  margin: 24px 0;
  border-left: 4px solid color-mix(in srgb, var(--blue) 42%, var(--line));
  border-radius: 0 16px 16px 0;
  background: color-mix(in srgb, var(--surface-soft) 58%, transparent);
  color: var(--ink-muted);
  padding: 16px 18px;
}

.markdown-figure {
  margin: 30px 0;
}

.markdown-figure img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.markdown-figure figcaption {
  margin-top: 10px;
  color: var(--ink-subtle);
  font-size: 13px;
  text-align: center;
}

.markdown-table-wrap {
  overflow-x: auto;
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.markdown-table-wrap table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.markdown-table-wrap th,
.markdown-table-wrap td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

.markdown-table-wrap th {
  background: color-mix(in srgb, var(--surface-soft) 62%, var(--surface));
  color: var(--ink);
  font-size: 14px;
}

.markdown-table-wrap tr:last-child td {
  border-bottom: 0;
}

.attachment-card,
.access-gate,
.service-panel,
.about-hero {
  display: grid;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.attachment-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 44px 0 0;
  padding: 18px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface-soft) 36%, var(--surface));
  box-shadow: none;
}

.attachment-file {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.attachment-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--blue) 20%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
  color: var(--blue);
}

.attachment-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.attachment-copy {
  min-width: 0;
}

.attachment-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.attachment-copy p {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  margin: 6px 0 0;
  color: var(--ink-subtle);
  font-size: 13px;
  line-height: 1.5;
}

.attachment-copy strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-muted);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-copy span {
  flex: 0 0 auto;
}

.attachment-actions {
  display: inline-grid;
  align-items: center;
  align-content: center;
  justify-items: end;
  gap: 8px;
  min-width: 118px;
}

.attachment-quota {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  line-height: 1;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink-subtle);
  font-size: 12px;
  font-weight: 700;
}

.attachment-download-button {
  align-self: center;
  min-width: 112px;
}

.attachment-quota.is-limit-reached {
  color: color-mix(in srgb, var(--orange) 60%, var(--ink));
}

.attachment-quota strong {
  display: inline-flex;
  align-items: center;
  color: var(--blue);
}

.attachment-card .button.is-disabled {
  border-color: color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--surface-soft) 68%, var(--surface));
  color: var(--ink-subtle);
  cursor: not-allowed;
  opacity: .74;
  pointer-events: none;
  transform: none;
}

.access-gate {
  justify-items: center;
  margin: 42px 0 0;
  padding: 34px;
  text-align: center;
}

.access-gate h2 {
  margin: 0;
  font-size: 30px;
}

.access-gate p:not(.eyebrow) {
  max-width: 640px;
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.8;
}

.access-state {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.pro-hero {
  background:
    radial-gradient(circle at 50% 8%, rgba(249, 115, 22, 0.14), transparent 30rem),
    linear-gradient(135deg, color-mix(in srgb, #fff7ed 62%, var(--surface)), var(--surface));
}

.service-panel {
  grid-template-columns: minmax(0, 1fr) 330px;
  margin-bottom: 80px;
  padding: 34px;
}

.service-panel ul {
  margin: 22px 0 0;
  padding-left: 20px;
  color: var(--ink-muted);
  line-height: 1.9;
}

.service-panel aside {
  border-radius: 22px;
  background: var(--surface-soft);
  padding: 24px;
}

.services-page {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: clamp(30px, 6vw, 72px);
}

.services-hero {
  --banner-primary-glow: rgba(37, 99, 235, 0.26);
  --banner-secondary-glow: rgba(8, 145, 178, 0.15);
  --banner-tertiary-glow: rgba(22, 163, 74, 0.10);
  display: grid;
  justify-items: center;
  position: relative;
  overflow: visible;
  margin: calc(-1 * var(--site-header-space)) calc(50% - 50vw) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
  box-shadow: none;
  padding: calc(var(--site-header-space) + clamp(64px, 8vw, 96px)) max(20px, calc((100vw - 1180px) / 2)) clamp(56px, 7vw, 84px);
  text-align: center;
}

.services-hero::before,
.services-hero::after {
  display: none;
  content: none;
}

.service-hero-grid {
  display: block;
  width: min(920px, 100%);
}

.service-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.service-copy h1 {
  max-width: 820px;
  margin: 0 auto 22px;
  font-size: clamp(46px, 6.4vw, 78px);
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.service-copy .lead {
  max-width: 720px;
  margin: 0 auto 30px;
  color: var(--ink-muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.72;
}

.service-hero-actions,
.consult-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.consult-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 24px 60px rgba(28, 43, 72, .12);
  padding: clamp(24px, 4vw, 36px);
}

.consult-card::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface-soft) 72%, transparent), transparent 54%);
  content: "";
  pointer-events: none;
}

.consult-card > * {
  position: relative;
  z-index: 1;
}

.consult-badge {
  display: grid;
  width: 68px;
  height: 68px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--blue), color-mix(in srgb, var(--blue) 72%, var(--cyan)));
  color: #fff;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 14px 28px color-mix(in srgb, var(--blue) 24%, transparent);
}

.consult-card h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 34px);
}

.consult-card p {
  margin: 0 0 28px;
  color: var(--ink-muted);
  line-height: 1.7;
}

.consult-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.consult-meta div {
  min-height: 82px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
}

.consult-meta dt {
  margin-bottom: 6px;
  color: var(--ink-subtle);
  font-size: 12px;
  font-weight: 650;
}

.consult-meta dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.service-section {
  padding-block: clamp(42px, 7vw, 78px);
}

.service-section-head {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.service-section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.service-section-head p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.75;
}

.problem-grid,
.deliver-layout {
  display: grid;
  gap: 16px;
}

.problem-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.deliver-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.problem-card,
.deliver-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.problem-card .glyph-card,
.deliver-card .glyph-card {
  margin-bottom: 18px;
}

.problem-card h3,
.deliver-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.problem-card p,
.deliver-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.68;
}

.process-panel,
.intent-panel {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.process-panel {
  padding: clamp(24px, 4vw, 40px);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  min-height: 188px;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 22px;
  background: var(--surface-soft);
}

.process-list .glyph-card {
  margin-bottom: 22px;
}

.process-list h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.process-list p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.68;
}

.intent-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(28px, 5vw, 56px);
  align-items: stretch;
  padding: clamp(28px, 5vw, 48px);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-soft) 72%, transparent), transparent 46%),
    var(--surface);
}

.intent-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.intent-copy p {
  max-width: 58ch;
  color: var(--ink-muted);
  line-height: 1.75;
}

.intent-note {
  display: inline-flex;
  margin-top: 20px;
  color: var(--ink-subtle);
  font-size: 12px;
}

.contact-card {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
}

.contact-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.contact-label {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-subtle);
  font-size: 12px;
  font-weight: 650;
}

.contact-value {
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  word-break: break-all;
}

.contact-value:hover {
  color: var(--blue);
}

.contact-tag {
  display: inline-flex;
  min-height: 30px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 650;
  padding: 5px 10px;
  white-space: nowrap;
}

.contact-hint {
  margin: 0;
  color: var(--ink-subtle);
  font-size: 14px;
  line-height: 1.7;
}

.copy-contact {
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  padding: 0;
}

.copy-contact:hover,
.copy-contact:focus-visible {
  text-decoration: underline;
}

.muted {
  color: var(--ink-subtle);
}

.about-hero {
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  margin-top: 48px;
  padding: 48px;
}

.about-copy h1 {
  max-width: 760px;
  font-size: clamp(40px, 5vw, 66px);
}

.about-copy p:not(.eyebrow) {
  max-width: 720px;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 1.8;
}

.profile-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  border-radius: 28px;
  background: linear-gradient(145deg, var(--surface-soft), var(--surface));
  padding: 30px;
}

.profile-avatar {
  display: grid;
  width: 170px;
  aspect-ratio: 4 / 5;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(145deg, #dbeafe, #f8fafc);
  color: var(--blue);
  font-size: 44px;
  font-weight: 700;
}

.about-page {
  position: relative;
  padding-bottom: clamp(30px, 6vw, 72px);
}

.about-hero {
  --banner-primary-glow: rgba(37, 99, 235, 0.26);
  --banner-secondary-glow: rgba(8, 145, 178, 0.15);
  --banner-tertiary-glow: rgba(22, 163, 74, 0.10);
  display: grid;
  justify-items: center;
  grid-template-columns: 1fr;
  gap: 0;
  margin: calc(-1 * var(--site-header-space)) calc(50% - 50vw) 0;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
  border-radius: 0;
  box-shadow: none;
  padding: calc(var(--site-header-space) + clamp(64px, 8vw, 96px)) max(20px, calc((100vw - 1180px) / 2)) clamp(56px, 7vw, 84px);
  text-align: center;
}

.about-hero-copy {
  width: min(920px, 100%);
}

.home-hero,
.community-hero,
.services-hero,
.about-hero {
  background:
    radial-gradient(ellipse 920px 410px at 50% 4%, var(--banner-primary-glow), transparent 74%),
    radial-gradient(ellipse 760px 340px at 17% 78%, var(--banner-secondary-glow), transparent 78%),
    radial-gradient(ellipse 680px 300px at 83% 68%, var(--banner-tertiary-glow), transparent 78%),
    linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--page) 92%, #ffffff) 62%, var(--page) 100%);
}

html[data-theme="dark"] .home-hero,
html[data-theme="dark"] .community-hero,
html[data-theme="dark"] .services-hero,
html[data-theme="dark"] .about-hero {
  --banner-primary-glow: rgba(37, 99, 235, 0.22);
  --banner-secondary-glow: rgba(8, 145, 178, 0.13);
  --banner-tertiary-glow: rgba(22, 163, 74, 0.09);
  border-bottom-color: color-mix(in srgb, var(--line) 78%, transparent);
  background:
    radial-gradient(ellipse 900px 400px at 50% 2%, var(--banner-primary-glow), transparent 72%),
    radial-gradient(ellipse 720px 320px at 20% 76%, var(--banner-secondary-glow), transparent 76%),
    radial-gradient(ellipse 640px 280px at 80% 64%, var(--banner-tertiary-glow), transparent 75%),
    linear-gradient(180deg, var(--surface), var(--page));
}

.about-hero h1,
.about-copy h1 {
  max-width: 860px;
  margin: 0 auto 22px;
  font-size: clamp(46px, 6.4vw, 78px);
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.about-hero .lead,
.about-copy p:not(.eyebrow) {
  max-width: 760px;
  margin: 0 auto 30px;
  color: var(--ink-muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.76;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.about-profile-section {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 36px);
  align-items: stretch;
  padding: clamp(52px, 8vw, 92px) 0 0;
}

.profile-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: 30px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-soft);
  padding: clamp(22px, 4vw, 30px);
}

.profile-card-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.profile-photo-slot {
  display: grid;
  width: 124px;
  aspect-ratio: 4 / 5;
  place-items: center;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .22), transparent 46%),
    linear-gradient(135deg, var(--blue), color-mix(in srgb, var(--blue) 62%, var(--cyan)) 54%, var(--green));
  color: #fff;
  font-size: 34px;
  font-weight: 700;
}

.profile-id {
  min-width: 0;
}

.profile-label {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 650;
}

.profile-id strong {
  display: block;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.16;
}

.profile-id span {
  display: block;
  margin-top: 8px;
  color: var(--ink-muted);
  line-height: 1.56;
}

.profile-divider {
  height: 1px;
  margin: 24px 0;
  background: var(--line);
}

.profile-facts {
  display: grid;
  gap: 12px;
}

.profile-fact {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-soft) 54%, var(--surface));
  padding: 16px;
}

.profile-fact strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.16;
}

.profile-fact span,
.profile-photo-note {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.65;
}

.profile-photo-note {
  margin: 20px 0 0;
}

.profile-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.summary-card,
.capability-card,
.timeline-card {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.summary-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.summary-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 16px;
}

.summary-card span {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.68;
}

.about-section {
  padding: clamp(76px, 10vw, 118px) 0;
}

.about-section + .about-section {
  border-top: 1px solid color-mix(in srgb, var(--line) 64%, transparent);
}

.about-section-head {
  max-width: 760px;
  margin: 0 auto clamp(34px, 5vw, 58px);
  text-align: center;
}

.about-section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.about-section-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 1.75;
}

.story-panel {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 5vw, 52px);
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: clamp(30px, 5vw, 54px);
}

.story-quote {
  border: 1px solid color-mix(in srgb, var(--blue) 16%, var(--line));
  border-radius: 28px;
  background: color-mix(in srgb, var(--surface-soft) 68%, var(--surface));
  padding: clamp(24px, 4vw, 34px);
}

.story-label {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.story-quote p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 650;
  line-height: 1.36;
}

.story-copy p {
  margin: 0 0 20px;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.82;
}

.story-copy p:last-child {
  margin-bottom: 0;
}

.capability-grid,
.timeline-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.capability-card,
.timeline-card {
  display: flex;
  min-height: 236px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  padding: 24px;
}

.capability-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
  color: var(--blue);
}

.capability-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.capability-card h3,
.timeline-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.capability-card p,
.timeline-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.72;
}

.timeline-year {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 12px;
}

.summary-card:hover,
.capability-card:hover,
.timeline-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--blue) 30%, var(--line));
  box-shadow: var(--shadow-soft);
}

.mission-card {
  display: grid;
  justify-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--blue) 18%, var(--line));
  border-radius: 32px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue) 7%, transparent), color-mix(in srgb, var(--green) 7%, transparent)),
    var(--surface);
  box-shadow: var(--shadow-soft);
  padding: clamp(30px, 6vw, 58px);
  text-align: center;
}

.mission-card h2 {
  max-width: 820px;
  margin: 0 auto 16px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.08;
}

.mission-card p {
  max-width: 760px;
  margin: 0 auto 28px;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 1.75;
}

.tts-dock {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: min(540px, calc(100% - 40px));
  gap: 12px;
  margin: 0 auto;
  padding: 10px 10px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.94);
  color: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(18px);
}

.tts-dock[hidden] {
  display: none;
}

.tts-dock-status {
  display: grid;
  grid-template-columns: 32px minmax(5.8em, 1fr) 32px;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}

.tts-status-text {
  min-width: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tts-status-text.is-generating::before {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: tts-status-spin 0.8s linear infinite;
  content: "";
  vertical-align: -2px;
}

@keyframes tts-status-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tts-status-text.is-generating::before {
    animation: none;
  }
}

.tts-segment-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  padding: 0;
}

.tts-segment-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.tts-segment-button:hover,
.tts-segment-button:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.tts-segment-button:disabled {
  cursor: default;
  opacity: 0.38;
}

.tts-segment-button:disabled:hover,
.tts-segment-button:disabled:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
}

.tts-dock.is-single-segment .tts-segment-button {
  visibility: hidden;
}

.tts-dock-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.tts-settings-panel {
  position: absolute;
  right: 10px;
  bottom: calc(100% + 10px);
  z-index: 2;
  display: none;
  width: min(360px, calc(100vw - 32px));
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.tts-dock.is-settings-open .tts-settings-panel {
  display: grid;
}

.tts-control {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 650;
}

.tts-control .ui-select,
.tts-rate-control .ui-select {
  width: 100%;
  max-width: 100%;
}

.tts-dock .ui-select-trigger {
  min-height: 34px;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: none;
}

.tts-dock .ui-control-icon {
  color: rgba(255, 255, 255, 0.72);
}

.tts-dock .ui-select-menu {
  position: absolute;
  top: auto;
  right: auto;
  bottom: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 100%;
  max-height: 260px;
  overflow: auto;
  overscroll-behavior: contain;
  border-color: rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.98);
  color: #ffffff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  scrollbar-color: rgba(226, 232, 240, 0.36) transparent;
  scrollbar-width: thin;
}

.tts-dock .ui-select-menu::-webkit-scrollbar {
  width: 8px;
}

.tts-dock .ui-select-menu::-webkit-scrollbar-track {
  background: transparent;
}

.tts-dock .ui-select-menu::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.34);
  background-clip: content-box;
}

.tts-dock .ui-select-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(147, 197, 253, 0.58);
  background-clip: content-box;
}

.tts-dock .ui-option-group {
  color: rgba(203, 213, 225, 0.62);
  font-size: 11px;
  font-weight: 750;
  padding: 6px 10px 3px;
}

.tts-dock .ui-option {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tts-dock .ui-option:hover,
.tts-dock .ui-option:focus-visible,
.tts-dock .ui-option.is-active {
  background: rgba(37, 99, 235, 0.28);
  color: #ffffff;
}

.tts-dock .ui-option:disabled {
  background: transparent;
  color: rgba(203, 213, 225, 0.46);
  cursor: not-allowed;
  opacity: 1;
}

.tts-icon-button {
  position: relative;
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  padding: 0;
}

.tts-dock.is-playing .tts-toggle-button,
.tts-dock.is-paused .tts-toggle-button,
.tts-dock.is-stopped .tts-icon-button[data-tts-action="stop"] {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.34);
}

.tts-icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.tts-toggle-button .tts-pause-icon,
.tts-dock.is-playing .tts-toggle-button .tts-play-icon {
  display: none;
}

.tts-dock.is-playing .tts-toggle-button .tts-pause-icon {
  display: block;
}

.tts-icon-button:hover,
.tts-icon-button:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}

.tts-dock.is-playing .tts-toggle-button:hover,
.tts-dock.is-playing .tts-toggle-button:focus-visible,
.tts-dock.is-paused .tts-toggle-button:hover,
.tts-dock.is-paused .tts-toggle-button:focus-visible,
.tts-dock.is-stopped .tts-icon-button[data-tts-action="stop"]:hover,
.tts-dock.is-stopped .tts-icon-button[data-tts-action="stop"]:focus-visible {
  background: #1d4ed8;
}

@media (hover: hover) and (pointer: fine) {
  .tts-icon-button::after {
    position: absolute;
    right: 50%;
    bottom: calc(100% + 10px);
    z-index: 2;
    content: attr(aria-label);
    transform: translateX(50%) translateY(4px);
    opacity: 0;
    pointer-events: none;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.98);
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
    transition: opacity .16s ease, transform .16s ease;
  }

  .tts-icon-button:hover::after,
  .tts-icon-button:focus-visible::after {
    transform: translateX(50%) translateY(0);
    opacity: 1;
  }
}
.placeholder-page,
.system-page {
  display: grid;
  min-height: 62vh;
  place-items: center;
  text-align: center;
}

.placeholder-page p,
.system-page p {
  max-width: 560px;
  color: var(--ink-muted);
  line-height: 1.8;
}

.legal-page {
  width: min(920px, calc(100% - 40px));
  margin: 52px auto 86px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  box-shadow: var(--shadow-soft);
  padding: clamp(28px, 5vw, 52px);
}

.legal-page h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: 0;
}

.legal-updated {
  margin: 16px 0 34px;
  color: var(--ink-subtle);
  font-size: 14px;
}

.legal-page section {
  border-top: 1px solid var(--line);
  padding: 26px 0 0;
  margin: 26px 0 0;
}

.legal-page h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
}

.legal-page p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.85;
}

.legal-page a {
  color: var(--blue);
  font-weight: 700;
}

.auth-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--blue) 10%, transparent), transparent 26rem),
    radial-gradient(circle at 82% 22%, color-mix(in srgb, var(--green) 9%, transparent), transparent 24rem),
    linear-gradient(180deg, color-mix(in srgb, var(--canvas) 78%, transparent), transparent 34rem),
    var(--page);
}

.auth-page main {
  flex: 1;
}

.auth-shell,
.settings-shell {
  display: grid;
  justify-items: center;
  align-content: center;
  padding: 56px 0 76px;
}

.auth-card,
.settings-card,
.account-hero,
.account-layout {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shadow-soft);
}

.auth-card {
  position: relative;
  width: min(488px, 100%);
  overflow: hidden;
  padding: 38px;
  text-align: center;
}

.auth-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green), var(--orange));
  content: "";
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--ink);
  font-weight: 700;
}

.auth-brand-mark {
  display: inline-flex;
  position: relative;
  width: 124px;
  height: 124px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: transparent;
  box-shadow: none;
}

.auth-brand-mark::before {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

html[data-theme="dark"] .auth-brand-mark::before {
  opacity: 1;
  background:
    radial-gradient(circle at 50% 42%, rgba(248, 250, 252, 0.12) 0%, transparent 34%),
    radial-gradient(circle at 50% 52%, rgba(59, 130, 246, 0.16) 0%, transparent 62%),
    radial-gradient(circle at 50% 56%, rgba(34, 211, 238, 0.10) 0%, transparent 82%);
  filter: blur(14px);
}

.auth-card h1,
.settings-card h1 {
  margin: 0;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.14;
}

.auth-card > p:not(.eyebrow):not(.auth-switch):not(.form-message):not(.auth-legal) {
  margin: 16px 0 0;
  color: var(--ink-muted);
  line-height: 1.8;
}

.auth-form,
.settings-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  text-align: left;
}

.auth-form label,
.settings-form label,
.account-filter label {
  display: grid;
  gap: 8px;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 700;
}

.auth-form input,
.settings-form input,
.settings-form select,
.account-filter input,
.account-filter select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  outline: 0;
  padding: 0 14px;
}

.settings-form textarea {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  padding: 12px 14px;
}

.auth-form input:focus,
.settings-form input:focus,
.settings-form select:focus,
.account-filter input:focus,
.account-filter select:focus {
  border-color: color-mix(in srgb, var(--blue) 56%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 12%, transparent);
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 24px;
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--blue) 14%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-soft) 56%, var(--surface));
}

.auth-mode-button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 0 14px;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.auth-mode-button:hover {
  color: var(--ink);
}

.auth-mode-button.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(31, 41, 55, .08);
}

.auth-mode-panel[hidden] {
  display: none !important;
}

.auth-inline-link-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
  font-size: 14px;
}

.auth-inline-link-row a {
  color: var(--blue);
  font-weight: 700;
}

.settings-form input[readonly] {
  background: color-mix(in srgb, var(--surface-soft) 65%, var(--surface));
  color: var(--ink-subtle);
  cursor: not-allowed;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 -2px;
  color: var(--ink-subtle);
  font-size: 13px;
  font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-switch {
  margin: 22px 0 0;
  color: var(--ink-muted);
}

.auth-legal {
  margin: 14px 0 0;
  color: var(--ink-subtle);
  font-size: 13px;
  line-height: 1.7;
}

.auth-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 10px !important;
  border: 1px solid color-mix(in srgb, var(--blue) 18%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--blue) 5%, var(--surface));
  color: var(--ink-muted) !important;
  font-weight: 600 !important;
  line-height: 1.65;
  padding: 12px 14px;
}

.auth-consent input {
  width: 18px !important;
  min-width: 18px;
  height: 18px;
  min-height: 18px !important;
  margin-top: 2px;
  accent-color: var(--blue);
}

.auth-consent a,
.auth-legal a {
  color: var(--blue);
  font-weight: 700;
}

.auth-switch a,
.back-link {
  color: var(--blue);
  font-weight: 700;
}

.form-message {
  margin: 18px 0 0;
  border: 1px solid color-mix(in srgb, var(--green) 28%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--green) 9%, var(--surface));
  color: color-mix(in srgb, var(--green) 72%, var(--ink));
  line-height: 1.7;
  padding: 12px 14px;
}

.form-message.error {
  border-color: color-mix(in srgb, var(--red) 28%, var(--line));
  background: color-mix(in srgb, var(--red) 8%, var(--surface));
  color: var(--red);
}

.admin-page .form-message {
  display: none;
}

.account-shell {
  padding: 52px 0 78px;
}

.account-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
}

.account-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  gap: 22px;
}

.user-avatar-stack {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
}

.account-avatar-edit-trigger {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.avatar-edit-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0);
  color: #ffffff;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.16s ease, transform 0.16s ease, background 0.16s ease;
  pointer-events: none;
}

.avatar-edit-overlay svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.account-avatar-edit-trigger:hover .avatar-edit-overlay,
.account-avatar-edit-trigger:focus-visible .avatar-edit-overlay {
  opacity: 1;
  transform: scale(1);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}

.account-avatar-edit-trigger:focus-visible {
  border-radius: 999px;
  outline: 3px solid color-mix(in srgb, var(--blue) 24%, transparent);
  outline-offset: 4px;
}

.user-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--blue) 18%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 6%, var(--surface));
  background-position: center;
  background-size: cover;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: .02em;
}

.user-avatar.has-image {
  color: transparent;
}

.user-avatar-small {
  width: 32px;
  height: 32px;
  font-size: 13px;
}

.user-avatar-large {
  width: 104px;
  height: 104px;
  font-size: 32px;
}

.user-avatar-edit {
  width: 96px;
  height: 96px;
  font-size: 28px;
}

.gender-badge {
  position: absolute;
  right: -3px;
  bottom: -2px;
  z-index: 3;
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--line-strong) 82%, var(--surface));
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
  outline: 2px solid color-mix(in srgb, var(--surface) 90%, #ffffff);
  pointer-events: none;
}

.gender-badge.is-male {
  border-color: color-mix(in srgb, var(--blue) 26%, var(--surface));
  color: var(--blue);
}

.gender-badge.is-female {
  border-color: color-mix(in srgb, #db2777 24%, var(--surface));
  color: #db2777;
}

.account-identity-copy {
  min-width: 0;
}

.member-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 10px;
  white-space: nowrap;
}

.member-badge.is-normal {
  background: color-mix(in srgb, var(--surface-soft) 70%, var(--surface));
  color: var(--ink-muted);
}

.member-badge.is-pro {
  border-color: color-mix(in srgb, var(--blue) 34%, var(--line));
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
  color: color-mix(in srgb, var(--blue) 80%, var(--ink));
}

.member-badge.is-expired {
  background: color-mix(in srgb, var(--surface-soft) 62%, var(--surface));
  color: var(--ink-subtle);
}

.account-identity-copy h1,
.account-hero h1 {
  margin: 0;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.12;
  letter-spacing: 0;
}

.account-hero p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--ink-muted);
}

.account-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.account-meta-line > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.account-gender-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-soft) 58%, var(--surface));
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 9px;
  white-space: nowrap;
}

.account-gender-badge.is-male {
  border-color: color-mix(in srgb, var(--blue) 24%, var(--line));
  color: var(--blue);
}

.account-gender-badge.is-female {
  border-color: color-mix(in srgb, #db2777 22%, var(--line));
  color: #db2777;
}

.account-id-line {
  font-size: 13px;
  color: var(--ink-subtle);
}

.account-layout {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 0;
  margin-top: 24px;
  align-items: stretch;
  min-height: 860px;
  overflow: visible;
}

.account-menu {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 6px;
  align-content: start;
  align-self: stretch;
  box-sizing: border-box;
  height: 100%;
  min-height: 100%;
  border-right: 1px solid var(--line);
  border-radius: 30px 0 0 30px;
  background: color-mix(in srgb, var(--surface-soft) 34%, transparent);
  padding: 16px 12px;
}

.account-menu a {
  border-radius: 12px;
  color: var(--ink-muted);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  padding: 10px 10px;
}

.account-menu a:hover,
.account-menu a.is-active {
  background: var(--surface-soft);
  color: var(--ink);
}

.account-panel {
  min-width: 0;
  padding: 24px 26px 26px;
}

.account-panel-head {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.account-panel-head-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
}

.account-panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.account-panel-head h2 {
  margin: 0;
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.15;
}

.account-panel-head p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.65;
}

.account-settings-form {
  max-width: 860px;
  margin-top: 0;
  gap: 18px;
}

.account-settings-form.narrow {
  max-width: 560px;
}

.account-tts-card {
  max-width: 920px;
}

.account-tts-form {
  max-width: none;
  gap: 22px;
}

.account-tts-section {
  display: grid;
  gap: 12px;
}

.account-tts-section-head {
  display: grid;
  gap: 4px;
}

.account-tts-section-head h3,
.account-tts-voice-group-head h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.account-tts-section-head p,
.account-tts-voice-group-head p {
  margin: 0;
  color: var(--ink-subtle);
  font-size: 13px;
  line-height: 1.6;
}

.account-tts-voice-groups {
  display: grid;
  gap: 16px;
}

.account-tts-loading {
  margin: 0;
  color: var(--ink-subtle);
  font-size: 13px;
}

.account-tts-voice-group {
  display: grid;
  gap: 10px;
}

.account-tts-voice-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.account-tts-option-grid {
  display: grid;
  gap: 10px;
}

.account-tts-voice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-tts-rate-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.account-tts-option {
  position: relative;
  display: grid;
  min-height: 82px;
  gap: 5px;
  align-content: start;
  width: 100%;
  padding: 14px 14px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-muted);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, color .16s ease, transform .16s ease;
}

.account-tts-option:hover,
.account-tts-option:focus-visible {
  border-color: color-mix(in srgb, var(--blue) 36%, var(--line));
  background: color-mix(in srgb, var(--blue) 4%, var(--surface));
  box-shadow: 0 10px 24px rgba(37, 99, 235, .08);
  outline: none;
}

.account-tts-option.is-selected {
  border-color: color-mix(in srgb, var(--blue) 74%, var(--line));
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 46%, transparent), 0 12px 26px rgba(37, 99, 235, .1);
  color: var(--ink);
}

.account-tts-option.is-selected::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 14%, transparent);
}

.account-tts-option:disabled,
.account-tts-option.is-disabled {
  background: color-mix(in srgb, var(--surface-soft) 62%, var(--surface));
  color: var(--ink-subtle);
  cursor: not-allowed;
  opacity: .72;
  box-shadow: none;
  transform: none;
}

.account-tts-option-title {
  display: block;
  padding-right: 24px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.account-tts-option-meta,
.account-tts-option-desc {
  display: block;
  color: var(--ink-subtle);
  font-size: 12px;
  line-height: 1.45;
}

.account-tts-option-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 10%, transparent);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.account-tts-pro-note {
  margin: 0;
  color: var(--ink-subtle);
  font-size: 13px;
  line-height: 1.65;
}


html[data-theme="dark"] .account-tts-option {
  background: rgba(15, 23, 42, .72);
}

html[data-theme="dark"] .account-tts-option.is-selected {
  background: rgba(37, 99, 235, .18);
}

.account-password-verify-card {
  display: grid;
  gap: 14px;
  max-width: 560px;
  margin-bottom: 18px;
}

.account-password-verify-card p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.75;
}

.account-password-verify-meta {
  display: grid;
  gap: 4px;
}

.account-password-verify-meta strong {
  color: var(--ink);
  font-size: 14px;
}

.account-password-verify-meta span {
  color: var(--ink-muted);
  font-size: 14px;
}

.account-password-code-request {
  margin: 0;
}

.account-password-methods {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.account-password-methods legend {
  margin-bottom: 2px;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 700;
}

.account-password-method-option {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-soft) 34%, var(--surface));
  color: var(--ink) !important;
  padding: 12px 14px;
}

.account-password-method-option input {
  width: 18px !important;
  min-width: 18px;
  height: 18px;
  min-height: 18px !important;
  margin: 0;
  accent-color: var(--blue);
}

.account-password-method-option span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.account-password-flow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 860px;
}

.account-password-option-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 200px;
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.account-password-option-card strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.account-password-option-card p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.7;
}

.account-password-option-card span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.account-password-option-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--blue) 24%, var(--line));
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.account-password-option-card.is-disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.account-password-option-card.is-disabled:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--line) 82%, transparent);
  box-shadow: none;
}

.account-password-option-card.is-disabled span {
  color: var(--ink-muted);
}

.account-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 900px;
}

.account-security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.account-overview-card {
  border: 0;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-soft) 42%, var(--surface));
  padding: 18px;
}

.account-overview-card h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.account-info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.account-info-list div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.account-info-list dt {
  color: var(--ink-subtle);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.account-info-list dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.account-overview-empty {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.7;
}

.account-security-card {
  display: grid;
  align-content: start;
  gap: 8px;
}

.account-security-card h3 {
  margin-bottom: 0;
}

.account-security-card strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
}

.account-security-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.7;
}

.user-form-section {
  position: relative;
  display: grid;
  gap: 0;
  border: 0;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-soft) 54%, var(--surface));
  padding: 52px 18px 18px;
}

.user-form-section-label {
  position: absolute;
  top: -1px;
  left: -1px;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--blue) 24%, var(--line));
  border-top-color: color-mix(in srgb, var(--blue) 28%, var(--line));
  border-left-color: color-mix(in srgb, var(--blue) 28%, var(--line));
  border-radius: 18px 0 10px 0;
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
  color: color-mix(in srgb, var(--blue) 74%, var(--ink));
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 12px 16px;
}

.user-form-section-body {
  display: grid;
  gap: 14px;
}

.user-form-section-body.account-phone-grid {
  grid-template-columns: minmax(150px, .75fr) minmax(0, 1.25fr);
}

.account-phone-grid {
  display: grid;
  grid-template-columns: minmax(150px, .75fr) minmax(0, 1.25fr);
  gap: 16px;
}

.account-social-section {
  display: grid;
  gap: 14px;
  border-top: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  margin-top: 4px;
  padding-top: 18px;
}

.account-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.account-global-toast {
  position: fixed;
  top: calc(var(--site-header-space) + 14px);
  left: 50%;
  z-index: 120;
  width: max-content;
  max-width: min(520px, calc(100vw - 32px));
  transform: translateX(-50%);
  border: 1px solid color-mix(in srgb, var(--green) 30%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--green) 10%, var(--surface));
  color: color-mix(in srgb, var(--green) 74%, var(--ink));
  box-shadow: 0 18px 42px rgba(28, 43, 72, .16);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  padding: 10px 14px;
  pointer-events: none;
  animation: toast-fade 3.6s ease forwards;
}

.account-global-toast.error {
  border-color: color-mix(in srgb, var(--red) 30%, var(--line));
  background: color-mix(in srgb, var(--red) 8%, var(--surface));
  color: var(--red);
}

.site-toast-region {
  position: fixed;
  top: calc(var(--site-header-space) + 14px);
  left: 50%;
  z-index: 120;
  display: grid;
  gap: 10px;
  width: min(560px, calc(100vw - 32px));
  pointer-events: none;
  transform: translateX(-50%);
}

.site-toast {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--red) 30%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 95%, var(--red));
  color: color-mix(in srgb, var(--red) 88%, var(--ink));
  box-shadow: 0 18px 42px rgba(28, 43, 72, .14);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  padding: 12px 14px 12px 12px;
  transform: translateY(-8px);
  opacity: 0;
  animation: admin-toast-in .18s ease forwards;
}

.site-toast.is-success {
  border-color: color-mix(in srgb, var(--green) 28%, var(--line));
  background: color-mix(in srgb, var(--surface) 95%, var(--green));
  color: color-mix(in srgb, var(--green) 74%, var(--ink));
}

.site-toast.is-info {
  border-color: color-mix(in srgb, var(--blue) 28%, var(--line));
  background: color-mix(in srgb, var(--surface) 95%, var(--blue));
  color: color-mix(in srgb, var(--blue) 78%, var(--ink));
}

.site-toast.is-leaving {
  animation: admin-toast-out .22s ease forwards;
}

.site-toast-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  color: currentColor;
}

.site-toast-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

@keyframes toast-fade {
  0% {
    opacity: 0;
    transform: translate(-50%, -8px);
  }
  12%,
  74% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -8px);
  }
}

.favorite-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.favorite-metrics-hero {
  flex: 0 0 540px;
  width: min(540px, 100%);
  max-width: 540px;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-flow: column;
  gap: 10px;
}

.favorite-metrics-hero article {
  min-height: 92px;
  min-width: 0;
}

.favorite-metrics article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface-soft) 48%, var(--surface));
  padding: 18px 18px 16px;
}

.favorite-metric-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.favorite-metric-icon {
  align-self: center;
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  border-radius: 16px;
}

.favorite-metrics strong {
  display: block;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.favorite-metric-copy span {
  display: block;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.45;
}

.account-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px auto;
  gap: 12px;
  margin: 20px 0 24px;
}

.account-favorite-mobile-filter-shell {
  display: none;
}

.account-favorites {
  margin-bottom: 0;
}

.account-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 10px 0 14px;
  color: var(--ink-muted);
  font-size: 14px;
}

.account-list-head strong {
  color: var(--ink);
  font-size: 18px;
}

.account-favorite-list {
  display: grid;
  gap: 14px;
}

.account-favorite-item {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: none;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease;
}

.account-favorite-item:hover,
.account-favorite-item:has(.account-favorite-title:focus-visible) {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.account-favorite-item:hover .account-favorite-cover::after,
.account-favorite-item:has(.account-favorite-title:focus-visible) .account-favorite-cover::after {
  transform: translate(-50%, -50%) scale(1.01);
}

.account-favorite-cover {
  position: relative;
  display: block;
  min-height: 136px;
  overflow: hidden;
  isolation: isolate;
}

.account-favorite-cover::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 22% 28%, rgba(255, 255, 255, 0.72), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.6), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 58%);
  content: "";
}

.account-favorite-cover::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 66px;
  height: 48px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.9) 0 4px, transparent 5px),
    linear-gradient(135deg, transparent 0 56%, rgba(255, 255, 255, 0.76) 57% 72%, transparent 73%),
    rgba(255, 255, 255, 0.32);
  content: "";
  transform: translate(-50%, -50%);
}

.account-favorite-cover.has-cover-image::before,
.account-favorite-cover.has-cover-image::after {
  display: none;
}

.account-favorite-cover img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.account-favorite-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 9px;
  padding: 16px 18px;
}

.account-favorite-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.account-favorite-title-row {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 8px;
}

.account-favorite-title-row .content-pro-badge {
  margin-top: 1px;
}

.account-favorite-title {
  display: -webkit-box;
  overflow: hidden;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.account-favorite-title:hover,
.account-favorite-title:focus-visible {
  color: var(--blue);
}

.account-favorite-content p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.65;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.account-favorite-inline-category {
  display: none;
}

.account-favorite-tags {
  margin-top: 0;
}

.account-favorite-times {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--ink-subtle);
  font-size: 12px;
  line-height: 1.5;
}

.account-favorite-meta {
  margin-top: auto;
}

.account-favorite-meta .content-stats {
  gap: 10px 14px;
}

.account-favorite-menu {
  position: relative;
  flex: 0 0 auto;
}

.account-favorite-menu-toggle {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-subtle);
  color: var(--ink-muted);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.account-favorite-menu-toggle:hover,
.account-favorite-menu-toggle:focus-visible,
.account-favorite-menu.is-open .account-favorite-menu-toggle {
  border-color: rgba(58, 120, 246, 0.26);
  background: rgba(58, 120, 246, 0.08);
  color: var(--blue);
}

.account-favorite-menu-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.account-favorite-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 6;
  min-width: 132px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(18, 28, 45, 0.14);
}

.account-favorite-menu-item {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 0 12px;
  text-align: left;
  transition: background-color 160ms ease, color 160ms ease;
}

.account-favorite-menu-item:hover,
.account-favorite-menu-item:focus-visible {
  background: rgba(58, 120, 246, 0.08);
  color: var(--blue);
}

.account-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  color: var(--ink-muted);
  font-size: 14px;
}

.account-pagination form,
.account-pagination label,
.account-pagination nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.account-pagination select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 30px 0 10px;
}

.account-pagination a {
  display: inline-flex;
  min-width: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-muted);
  font-weight: 650;
  padding: 0 10px;
  text-decoration: none;
}

.account-pagination a:hover,
.account-pagination a:focus-visible,
.account-pagination a.is-active {
  border-color: color-mix(in srgb, var(--blue) 32%, var(--line));
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
  color: var(--blue);
}

.account-pagination a.is-disabled {
  pointer-events: none;
  opacity: .42;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line-strong);
  border-radius: 22px;
  color: var(--ink-muted);
  padding: 34px;
  text-align: center;
}

.settings-shell {
  justify-items: stretch;
}

.back-link {
  width: max-content;
  margin-bottom: 18px;
}

.settings-card {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 34px;
}

.settings-card.narrow {
  width: min(620px, 100%);
}

.two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.account-maintenance-note {
  margin-top: 10px;
  color: color-mix(in srgb, var(--orange) 72%, var(--ink-muted));
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.account-mobile-save-bar {
  display: none;
}

body.is-avatar-modal-open {
  overflow: hidden;
}

.avatar-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, .52);
  padding: 24px;
}

.avatar-modal-backdrop[hidden] {
  display: none !important;
}

.avatar-modal-card {
  width: min(720px, 100%);
  max-height: min(88vh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
}

.avatar-modal-card:focus {
  outline: none;
}

.avatar-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}

.avatar-modal-head-copy {
  min-width: 0;
}

.avatar-modal-head h3 {
  margin: 0;
  font-size: 20px;
}

.avatar-modal-head p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.avatar-modal-close {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-muted);
  cursor: pointer;
}

.avatar-modal-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.avatar-modal-body {
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  overflow: auto;
}

.avatar-preview-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--blue) 10%, transparent), transparent 65%),
    linear-gradient(180deg, color-mix(in srgb, var(--blue) 4%, var(--surface)), var(--surface));
}

.avatar-preview-panel-head {
  display: grid;
  gap: 10px;
}

.avatar-state-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--surface));
  background: color-mix(in srgb, var(--surface) 88%, #ffffff);
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
}

.avatar-state-badge.is-current {
  border-color: color-mix(in srgb, var(--blue) 22%, var(--line));
  color: var(--blue);
}

.avatar-state-badge.is-default {
  color: var(--ink-soft);
}

.avatar-state-badge.is-pending {
  border-color: color-mix(in srgb, var(--blue) 34%, var(--line));
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
  color: var(--blue);
}

.avatar-state-badge.is-remove {
  border-color: color-mix(in srgb, var(--red) 30%, var(--line));
  background: color-mix(in srgb, var(--red) 9%, var(--surface));
  color: var(--red);
}

.avatar-preview-caption {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.avatar-preview-stage {
  display: grid;
  min-height: 290px;
  place-items: center;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--line) 90%, #ffffff);
  border-radius: 26px;
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--blue) 9%, transparent), transparent 65%),
    color-mix(in srgb, var(--surface) 94%, #ffffff);
}

.avatar-control-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
}

.avatar-picker-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface-soft) 78%, #ffffff);
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.avatar-picker-card:hover,
.avatar-picker-card:focus-within {
  border-color: color-mix(in srgb, var(--blue) 26%, var(--line));
  background: color-mix(in srgb, var(--blue) 6%, var(--surface));
  transform: translateY(-1px);
}

.avatar-picker-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
  color: var(--blue);
}

.avatar-picker-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.avatar-picker-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.avatar-picker-copy strong {
  font-size: 15px;
}

.avatar-picker-copy span {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.avatar-picker-cta {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.avatar-inline-message {
  padding: 12px 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--red) 10%, var(--surface));
  color: var(--red);
  font-size: 13px;
  line-height: 1.6;
}

.avatar-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.avatar-secondary-action {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.avatar-secondary-action:hover,
.avatar-secondary-action:focus-visible {
  color: var(--blue);
}

.avatar-secondary-action[hidden] {
  display: none !important;
}

.avatar-secondary-action:disabled {
  cursor: not-allowed;
  color: var(--ink-light);
}

.avatar-secondary-action.danger-text:disabled {
  color: var(--ink-light) !important;
}

.avatar-rules {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-soft) 86%, #ffffff);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.avatar-modal-preview.profile-avatar {
  width: 172px;
  height: 172px;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 85%, #ffffff);
  background-position: center;
  background-size: cover;
  color: var(--blue);
  font-size: 48px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .08);
}

.avatar-modal-preview.profile-avatar.has-image {
  color: transparent;
}

.avatar-modal-foot {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 24px 24px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 95%, #ffffff);
}

@media (max-width: 860px) {

  .avatar-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .avatar-modal-card {
    width: 100%;
    max-height: min(90vh, 760px);
    border-radius: 26px 26px 0 0;
  }

  .avatar-modal-head {
    padding: 18px 18px 16px;
  }

  .avatar-modal-body {
    grid-template-columns: 1fr;
  }

  .avatar-preview-panel {
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .avatar-preview-stage {
    min-height: 228px;
    padding: 22px;
  }

  .avatar-modal-preview.profile-avatar {
    width: 136px;
    height: 136px;
    font-size: 40px;
  }

  .avatar-control-panel {
    padding: 18px;
  }

  .avatar-picker-card {
    grid-template-columns: 1fr;
    justify-items: flex-start;
  }

  .avatar-picker-cta {
    width: 100%;
  }

  .avatar-secondary-actions {
    justify-content: flex-start;
  }

  .avatar-modal-foot {
    padding: 14px 18px 18px;
  }

  .avatar-modal-foot .button {
    flex: 1 1 0;
  }
}

.site-footer {
  flex-shrink: 0;
  width: 100%;
  margin-top: 54px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background:
    radial-gradient(circle at 14% 0, rgba(37, 99, 235, .20), transparent 30rem),
    linear-gradient(180deg, #111827, #0b1120);
  color: #cbd5e1;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) minmax(0, 1.45fr);
  gap: clamp(32px, 7vw, 84px);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 42px;
}

.footer-brand-block {
  display: grid;
  align-content: start;
  gap: 18px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  color: #ffffff;
  font-weight: 700;
}

.footer-brand .brand-mark {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.footer-brand .brand-word,
.footer-brand .brand-word-ai {
  color: #ffffff;
}

.footer-brand-mark {
  width: 52px;
  height: 52px;
}

.footer-logo-image {
  object-fit: contain;
}

.footer-brand-block p {
  max-width: 470px;
  margin: 0;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.85;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #94a3b8;
  font-size: 14px;
}

.footer-contact a {
  color: #ffffff;
  font-weight: 700;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 22px;
}

.footer-links div {
  display: grid;
  align-content: start;
  gap: 11px;
}

.footer-links h2 {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0;
}

.footer-links a {
  width: max-content;
  max-width: 100%;
  color: #cbd5e1;
  font-size: 14px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .10);
  color: #94a3b8;
  font-size: 13px;
}

.back-to-top {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(28px, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(.96);
  transition: opacity .18s ease, transform .18s ease, background-color .18s ease, box-shadow .18s ease;
  backdrop-filter: blur(16px);
}

.back-to-top[hidden] {
  display: none;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top.is-docked {
  position: absolute;
  bottom: auto;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: color-mix(in srgb, #ffffff 82%, var(--surface-soft));
  box-shadow: 0 18px 42px rgba(15, 23, 42, .20);
  outline: 0;
  transform: translateY(-2px) scale(1);
}

.back-to-top svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

html[data-theme="dark"] .back-to-top {
  background: color-mix(in srgb, #1e293b 88%, var(--blue));
  color: #ffffff;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .34);
}

@media (max-width: 860px) {

  .back-to-top {
    right: max(14px, env(safe-area-inset-right));
    width: 42px;
    height: 42px;
    border-radius: 13px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .16);
  }

  .back-to-top svg {
    width: 19px;
    height: 19px;
  }
}
.cookie-consent {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 1300;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(760px, calc(100vw - 40px));
  border: 1px solid color-mix(in srgb, var(--blue) 18%, var(--line));
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
  padding: 16px;
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent-copy {
  min-width: 0;
}

.cookie-consent-copy strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}

.cookie-consent-copy p {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.65;
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
}

.cookie-consent-actions a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .cookie-consent {
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(var(--mobile-tabbar-height) + env(safe-area-inset-bottom, 0px) + 12px);
    left: max(12px, env(safe-area-inset-left, 0px));
    width: auto;
    max-height: calc(100dvh - var(--mobile-tabbar-height) - env(safe-area-inset-bottom, 0px) - 28px);
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px;
    border-radius: 18px;
  }

  .cookie-consent-copy {
    width: 100%;
  }

  .cookie-consent-copy strong {
    font-size: 14px;
  }

  .cookie-consent-copy p {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.6;
  }

  .cookie-consent-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px 10px;
  }

  .cookie-consent-actions a {
    flex: 1 0 100%;
  }

  .cookie-consent-actions .button {
    min-width: 0;
    flex: 1 1 0;
    padding: 0 12px;
    white-space: nowrap;
  }
}

.admin-page {
  --admin-header-height: 68px;
  --admin-sidebar-width: 264px;
  min-height: 100vh;
  background: #f3f6fb;
}

html[data-theme="dark"] body.admin-page {
  --page: #080f1d;
  --canvas: #0b1220;
  --surface: #111827;
  --surface-soft: #172033;
  --surface-warm: #2a1a12;
  --ink: #f8fafc;
  --ink-muted: #cbd5e1;
  --ink-subtle: #94a3b8;
  --line: #263348;
  --line-strong: #3b4a63;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.28);
  background:
    radial-gradient(circle at 52% -16%, rgba(37, 99, 235, .12), transparent 34rem),
    #080f1d;
}

html[data-theme="dark"] .admin-header {
  border-bottom-color: #202b3e;
  background: rgba(11, 18, 32, .94);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .035);
}

.admin-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 60;
  display: flex;
  height: var(--admin-header-height);
  min-height: var(--admin-header-height);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
  backdrop-filter: blur(18px);
}

.admin-brand,
.admin-header-actions,
.admin-header-actions form {
  display: flex;
  align-items: center;
}

.admin-brand {
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}

.admin-header-actions {
  position: relative;
  gap: 10px;
}

.admin-account-trigger {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--blue) 12%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 94%, var(--surface-soft));
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  padding: 5px 10px 5px 6px;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.admin-account-trigger:hover,
.admin-account-trigger:focus-visible,
.admin-account-popover.is-open .admin-account-trigger {
  border-color: color-mix(in srgb, var(--blue) 36%, var(--line));
  background: color-mix(in srgb, var(--blue) 6%, var(--surface));
  outline: 0;
}

.admin-account-avatar {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--blue) 16%, var(--line));
  border-radius: 999px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, var(--blue)), var(--surface-soft));
  color: color-mix(in srgb, var(--blue) 72%, var(--ink));
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.admin-account-summary {
  display: grid;
  min-width: 0;
  gap: 2px;
  text-align: left;
}

.admin-account-name {
  max-width: 96px;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-account-state {
  width: fit-content;
  border-radius: 999px;
  background: color-mix(in srgb, var(--green) 10%, transparent);
  color: color-mix(in srgb, var(--green) 68%, var(--ink-muted));
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.admin-account-chevron {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  color: var(--ink-subtle);
  transition: transform .16s ease;
}

.admin-account-popover.is-open .admin-account-chevron {
  transform: rotate(180deg);
}

.admin-account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 90;
  display: grid;
  width: 252px;
  gap: 6px;
  border: 1px solid color-mix(in srgb, var(--blue) 10%, var(--line));
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .16);
  padding: 10px;
}

.admin-account-menu[hidden] {
  display: none !important;
}

.admin-account-menu::before {
  position: absolute;
  top: -6px;
  right: 24px;
  width: 12px;
  height: 12px;
  border-top: 1px solid color-mix(in srgb, var(--blue) 10%, var(--line));
  border-left: 1px solid color-mix(in srgb, var(--blue) 10%, var(--line));
  background: var(--surface);
  content: "";
  transform: rotate(45deg);
}

.admin-account-menu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 8px 8px 12px;
}

.admin-account-menu-head strong,
.admin-account-menu-head small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-account-menu-head strong {
  color: var(--ink);
  font-size: 14px;
}

.admin-account-menu-head small {
  margin-top: 3px;
  color: var(--ink-subtle);
  font-size: 12px;
}

.admin-account-menu form {
  display: block;
}

.admin-account-menu-item {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  padding: 0 10px;
  text-align: left;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease;
}

.admin-account-menu-item svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.admin-account-menu-item:hover,
.admin-account-menu-item:focus-visible {
  background: color-mix(in srgb, var(--blue) 7%, var(--surface-soft));
  color: var(--blue);
  outline: 0;
}

.admin-account-logout {
  color: color-mix(in srgb, var(--ink-muted) 88%, var(--blue));
}

.admin-account-logout:hover,
.admin-account-logout:focus-visible {
  background: color-mix(in srgb, var(--blue) 7%, var(--surface-soft));
  color: color-mix(in srgb, var(--blue) 72%, var(--ink));
}

.admin-shell {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: var(--admin-header-height) 0 0;
}

.admin-sidebar {
  position: fixed;
  top: var(--admin-header-height);
  bottom: 0;
  left: 0;
  display: grid;
  gap: 10px;
  align-self: start;
  width: var(--admin-sidebar-width);
  height: calc(100dvh - var(--admin-header-height));
  min-height: calc(100dvh - var(--admin-header-height));
  max-height: none;
  align-content: start;
  box-sizing: border-box;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 98%, var(--page));
  padding: 18px 14px 24px;
}

html[data-theme="dark"] .admin-sidebar {
  border-right-color: #202b3e;
  background: #0b1220;
}

.admin-sidebar-group {
  display: grid;
  gap: 6px;
}

.admin-sidebar-group-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 12px 10px;
  text-align: left;
}

.admin-sidebar-group-trigger:hover {
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
  color: var(--blue);
}

.admin-sidebar-group.is-current .admin-sidebar-group-trigger {
  color: var(--blue);
}

.admin-sidebar-group-chevron {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform .2s ease;
}

.admin-sidebar-group.is-open .admin-sidebar-group-chevron {
  transform: rotate(180deg);
}

.admin-sidebar-group-panel {
  display: grid;
  gap: 4px;
  padding-left: 10px;
}

.admin-sidebar-group-panel[hidden] {
  display: none !important;
}

.admin-sidebar-group-panel a {
  border-radius: 12px;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
}

.admin-sidebar-group-panel a:hover,
.admin-sidebar-group-panel a.is-active {
  background: color-mix(in srgb, var(--blue) 11%, var(--surface));
  color: var(--blue);
}

html[data-theme="dark"] .admin-sidebar-group-trigger {
  color: #d9e3f6;
}

html[data-theme="dark"] .admin-sidebar-group-trigger:hover {
  background: rgba(37, 99, 235, .14);
  color: #8fb4ff;
}

html[data-theme="dark"] .admin-sidebar-group.is-current .admin-sidebar-group-trigger {
  color: #8fb4ff;
}

html[data-theme="dark"] .admin-sidebar-group-panel a:hover,
html[data-theme="dark"] .admin-sidebar-group-panel a.is-active {
  background: rgba(37, 99, 235, .16);
  color: #8fb4ff;
}

.admin-main {
  display: grid;
  min-width: 0;
  min-height: calc(100dvh - var(--admin-header-height));
  margin-left: var(--admin-sidebar-width);
  align-content: start;
  gap: 18px;
  padding: 28px 32px 64px;
}

html[data-theme="dark"] .admin-main {
  background:
    radial-gradient(circle at 50% -22%, rgba(8, 145, 178, .07), transparent 30rem),
    linear-gradient(180deg, rgba(15, 23, 42, .52), rgba(8, 15, 29, 0) 18rem);
}

.admin-title-row,
.admin-card-head,
.bulk-bar,
.trash-actions,
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-title-row h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-metrics-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-metrics article,
.admin-card,
.admin-empty {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

html[data-theme="dark"] .admin-metrics article,
html[data-theme="dark"] .admin-card,
html[data-theme="dark"] .admin-empty {
  border-color: #263348;
  background: #111827;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .22);
}

.admin-metrics article {
  padding: 20px;
}

.admin-metrics strong {
  display: block;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}

.admin-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 14px;
}

.admin-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(120px, 0.7fr)) auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
  padding: 14px;
}

html[data-theme="dark"] .admin-filter {
  border-color: #263348;
  background: #111827;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .20);
}

.admin-filter-users {
  grid-template-columns: minmax(240px, 1.5fr) repeat(4, minmax(132px, 0.8fr)) auto auto;
}

.admin-category-filter {
  grid-template-columns: minmax(260px, 1fr) minmax(160px, 220px) auto auto;
}
.admin-category-filter.admin-skill-category-filter {
  grid-template-columns: minmax(260px, 1fr) auto auto;
}

.admin-tag-filter {
  grid-template-columns: minmax(260px, 1fr) minmax(160px, 220px) auto auto;
}

.admin-category-table .admin-actions {
  min-width: 210px;
}

.admin-category-slug {
  display: inline-block;
  max-width: 240px;
  overflow: hidden;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.admin-modal-card.admin-category-modal {
  width: min(520px, 100%);
  gap: 18px;
  overflow: hidden;
}

.admin-modal-card.admin-tag-modal {
  width: min(520px, 100%);
  gap: 18px;
  overflow: hidden;
}

.admin-category-modal .admin-modal-actions {
  margin-top: 2px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.admin-tag-modal .admin-modal-actions {
  margin-top: 2px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.admin-filter input,
.admin-filter select,
.analytics-range-form input,
.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-inline-editor input,
.table-input,
.tiny-input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  outline: 0;
  padding: 0 12px;
}

html[data-theme="dark"] .admin-filter input,
html[data-theme="dark"] .admin-filter select,
html[data-theme="dark"] .analytics-range-form input,
html[data-theme="dark"] .admin-form input,
html[data-theme="dark"] .admin-form select,
html[data-theme="dark"] .admin-form textarea,
html[data-theme="dark"] .admin-inline-editor input,
html[data-theme="dark"] .table-input,
html[data-theme="dark"] .tiny-input {
  border-color: #334155;
  background: #0b1220;
}

.admin-filter input:focus,
.admin-filter select:focus,
.analytics-range-form input:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.admin-inline-editor input:focus,
.table-input:focus,
.tiny-input:focus {
  border-color: color-mix(in srgb, var(--blue) 55%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 10%, transparent);
}

.admin-filter .admin-filter-action,
.analytics-range-form .admin-filter-action {
  min-width: 74px;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  white-space: nowrap;
}

.bulk-bar,
.trash-actions {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-soft) 46%, var(--surface));
  padding: 12px 14px;
}

.admin-list-panel {
  display: grid;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 86%, var(--blue) 14%);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .07);
}

html[data-theme="dark"] .admin-list-panel {
  border-color: #263348;
  background: #111827;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .26);
}

.admin-list-panel .bulk-bar,
.admin-list-panel .trash-actions,
.admin-list-panel .admin-table-wrap,
.admin-list-panel .ui-pagination {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.admin-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: color-mix(in srgb, var(--surface-soft) 56%, var(--surface));
  border-bottom: 1px solid var(--line) !important;
  padding: 14px 16px;
}

html[data-theme="dark"] .admin-list-toolbar {
  border-bottom-color: #263348 !important;
  background: #0f172a;
}

.admin-list-toolbar-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-list-toolbar-copy strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.admin-list-toolbar-copy span {
  color: var(--ink-subtle);
  font-size: 12px;
  line-height: 1.45;
}

.admin-list-toolbar-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.admin-list-toolbar-actions form {
  display: inline-flex;
  margin: 0;
}

.admin-list-panel .ui-pagination {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 12px 16px;
}

html[data-theme="dark"] .admin-list-panel .ui-pagination {
  border-top-color: #263348;
  background: #111827;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

html[data-theme="dark"] .admin-table-wrap {
  border-color: #263348;
  background: #111827;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .20);
}

.admin-content-table-wrap {
  position: relative;
  border-color: color-mix(in srgb, var(--line) 86%, var(--blue) 14%);
  box-shadow: 0 16px 42px rgba(15, 23, 42, .06);
}

.admin-list-panel .admin-content-table-wrap {
  border-color: transparent;
  background: var(--surface);
}

html[data-theme="dark"] .admin-list-panel .admin-content-table-wrap {
  background: #111827;
}

.admin-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-users-table {
  min-width: 1180px;
}

.admin-user-identity {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-user-avatar {
  width: 40px;
  height: 40px;
  font-size: 15px;
  font-weight: 800;
}

.admin-content-table {
  min-width: 1380px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.admin-col-check {
  width: 46px;
}

.admin-col-title {
  width: 360px;
}

.admin-col-category {
  width: 104px;
}

.admin-col-tags {
  width: 148px;
}

.admin-col-access,
.admin-col-status {
  width: 82px;
}

.admin-col-time {
  width: 132px;
}

.admin-col-source {
  width: 104px;
}

.admin-col-featured {
  width: 196px;
}

.admin-col-stats {
  width: 86px;
}

.admin-col-actions {
  width: 160px;
}
.admin-message-table {
  min-width: 1240px;
}

.admin-col-message-title {
  width: 420px;
}

.admin-col-message-status {
  width: 92px;
}

.admin-col-message-target {
  width: 128px;
}

.admin-col-message-count {
  width: 92px;
}

.admin-col-message-read {
  width: 148px;
}

.admin-col-message-time {
  width: 156px;
}

.admin-col-message-actions {
  width: 170px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--ink-subtle);
  font-size: 12px;
  font-weight: 700;
}

.admin-content-table th,
.admin-content-table td {
  border-bottom: 0;
  padding: 15px 14px;
}

.admin-content-table thead th {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 64%, var(--surface));
  color: var(--ink-muted);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

html[data-theme="dark"] .admin-content-table thead th {
  border-bottom-color: #263348;
  background: #0f172a;
  color: #a8b4c8;
}

.admin-content-table thead th:first-child {
  border-top-left-radius: 18px;
}

.admin-content-table thead th:last-child {
  border-top-right-radius: 18px;
}

.admin-content-table tbody td {
  border-top: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: var(--admin-row-bg);
  transition: background-color .16s ease;
}

.admin-content-table tbody tr {
  --admin-row-bg: var(--surface);
}

html[data-theme="dark"] .admin-content-table tbody tr {
  --admin-row-bg: #111827;
}

.admin-content-table tbody tr:first-child td {
  border-top: 0;
}

.admin-content-table tbody tr:hover td {
  --admin-row-bg: color-mix(in srgb, var(--blue) 3.5%, var(--surface));
  background: var(--admin-row-bg);
}

html[data-theme="dark"] .admin-content-table tbody tr:hover td {
  --admin-row-bg: color-mix(in srgb, var(--blue) 9%, #111827);
}

.admin-content-table th:first-child,
.admin-content-table td:first-child,
.admin-content-table th:last-child,
.admin-content-table td:last-child {
  position: sticky;
  z-index: 5;
  background-clip: padding-box;
}

.admin-content-table th:first-child,
.admin-content-table td:first-child {
  left: 0;
  box-shadow: none;
}

.admin-content-table th:last-child,
.admin-content-table td:last-child {
  right: 0;
  box-shadow: none;
}

.admin-content-table thead th:first-child,
.admin-content-table thead th:last-child {
  z-index: 8;
  background: color-mix(in srgb, var(--surface-soft) 72%, var(--surface));
}

html[data-theme="dark"] .admin-content-table thead th:first-child,
html[data-theme="dark"] .admin-content-table thead th:last-child {
  background: #0f172a;
}

.admin-content-table tbody td:first-child,
.admin-content-table tbody td:last-child {
  background: var(--admin-row-bg);
}

.admin-content-table tbody td:first-child {
  background: var(--admin-row-bg);
}

.admin-content-table tbody td:last-child {
  background: var(--admin-row-bg);
}

.admin-content-table tbody tr:hover td:first-child,
.admin-content-table tbody tr:hover td:last-child {
  background: var(--admin-row-bg);
}

.admin-content-table tbody tr:hover td:first-child {
  background: var(--admin-row-bg);
}

.admin-content-table tbody tr:hover td:last-child {
  background: var(--admin-row-bg);
}

.admin-content-table thead th:first-child::after,
.admin-content-table tbody td:first-child::after,
.admin-content-table thead th:last-child::after,
.admin-content-table tbody td:last-child::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  pointer-events: none;
}

.admin-content-table thead th:first-child::after,
.admin-content-table tbody td:first-child::after {
  right: 0;
  background: color-mix(in srgb, var(--line) 62%, transparent);
}

.admin-content-table thead th:last-child::after,
.admin-content-table tbody td:last-child::after {
  left: 0;
  background: color-mix(in srgb, var(--line) 62%, transparent);
}

.admin-content-table thead th:first-child::before,
.admin-content-table tbody td:first-child::before,
.admin-content-table thead th:last-child::before,
.admin-content-table tbody td:last-child::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  pointer-events: none;
}

.admin-content-table thead th:first-child::before,
.admin-content-table tbody td:first-child::before {
  right: -18px;
  background: linear-gradient(90deg, rgba(15, 23, 42, .055), transparent);
}

.admin-content-table thead th:last-child::before,
.admin-content-table tbody td:last-child::before {
  left: -18px;
  background: linear-gradient(270deg, rgba(15, 23, 42, .065), transparent);
}

html[data-theme="dark"] .admin-content-table thead th:first-child::before,
html[data-theme="dark"] .admin-content-table tbody td:first-child::before {
  background: linear-gradient(90deg, rgba(0, 0, 0, .18), transparent);
}

html[data-theme="dark"] .admin-content-table thead th:last-child::before,
html[data-theme="dark"] .admin-content-table tbody td:last-child::before {
  background: linear-gradient(270deg, rgba(0, 0, 0, .2), transparent);
}

.admin-list-panel .admin-content-table thead th:first-child,
.admin-list-panel .admin-content-table thead th:last-child {
  border-radius: 0;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-title-cell {
  min-width: 0;
}

.admin-content-identity {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.admin-content-thumb {
  position: relative;
  display: block;
  width: 72px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-soft) 82%, var(--surface));
}

.admin-content-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 28%, rgba(255, 255, 255, .72), transparent 28%),
    linear-gradient(135deg, transparent 46%, rgba(255, 255, 255, .36) 46%, rgba(255, 255, 255, .36) 52%, transparent 52%);
}

.admin-content-thumb.has-cover-image::before {
  display: none;
}

.admin-content-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-content-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-row-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-subtext {
  display: block;
  margin-top: 6px;
  color: var(--ink-subtle);
  font-size: 13px;
  line-height: 1.5;
}

.admin-content-copy .admin-subtext {
  margin-top: 0;
}

.admin-user-identity .admin-subtext {
  display: block;
  margin-top: 0;
}

.admin-content-table .admin-subtext {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

html[data-theme="dark"] .admin-content-thumb {
  border-color: #263348;
  background: color-mix(in srgb, #1f2a44 78%, #111827);
}

.admin-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-tag,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 0 4px 4px 0;
  border-radius: 999px;
  font-size: 12px;
  padding: 0 8px;
}

.admin-tag {
  background: var(--surface-soft);
  color: var(--ink-muted);
}

.status-pill.published {
  background: color-mix(in srgb, var(--green) 12%, var(--surface));
  color: var(--green);
}

.status-pill.draft {
  background: color-mix(in srgb, var(--orange) 12%, var(--surface));
  color: var(--orange);
}

.admin-badge,
.admin-featured-disabled {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--line) 84%, var(--blue) 16%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-soft) 58%, var(--surface));
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 0 10px;
  white-space: nowrap;
}

.admin-badge.is-pro {
  border-color: color-mix(in srgb, var(--blue) 26%, var(--line));
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
  color: var(--blue);
}

.admin-badge.is-public {
  border-color: color-mix(in srgb, var(--green) 24%, var(--line));
  background: color-mix(in srgb, var(--green) 9%, var(--surface));
  color: var(--green);
}

.admin-badge.is-source {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-muted-dash {
  color: var(--ink-subtle);
}

.admin-time-text {
  display: inline-block;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.admin-stat-strip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}

.admin-stat-strip span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.admin-stat-strip svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.admin-featured-control {
  display: grid;
  grid-template-areas:
    "state state"
    "order action";
  grid-template-columns: 68px minmax(72px, 1fr);
  align-items: center;
  gap: 7px;
  width: min(100%, 190px);
}

.admin-featured-state {
  display: inline-flex;
  grid-area: state;
  min-width: 0;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-soft) 58%, var(--surface));
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 0 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-featured-control.is-featured .admin-featured-state {
  border-color: color-mix(in srgb, var(--blue) 26%, var(--line));
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
  color: var(--blue);
}

.admin-featured-control .tiny-input {
  grid-area: order;
  min-height: 30px;
  width: 100%;
  text-align: center;
}

.admin-featured-control button,
.admin-action {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-soft) 58%, var(--surface));
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 0 11px;
  white-space: nowrap;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .16s ease;
}

.admin-featured-control button {
  grid-area: action;
  width: 100%;
}

.admin-featured-control button:hover,
.admin-action:hover,
.admin-action:focus-visible {
  border-color: color-mix(in srgb, var(--blue) 35%, var(--line));
  background: color-mix(in srgb, var(--blue) 9%, var(--surface));
  color: var(--blue);
  transform: translateY(-1px);
}

.admin-action.is-primary {
  border-color: color-mix(in srgb, var(--blue) 30%, var(--line));
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
  color: var(--blue);
}

.admin-action.is-danger {
  border-color: color-mix(in srgb, var(--red) 20%, var(--line));
  background: color-mix(in srgb, var(--red) 7%, var(--surface));
}

.admin-actions,
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-content-table td.admin-actions {
  display: table-cell;
  vertical-align: top;
}

.admin-list-panel td.admin-actions {
  display: table-cell;
  vertical-align: top;
}

.admin-list-panel td.admin-actions form {
  display: inline-flex;
  margin: 0 6px 6px 0;
}

.admin-list-panel td.admin-actions .admin-action {
  margin: 0 6px 6px 0;
}

.admin-list-panel td.admin-actions form .admin-action {
  margin: 0;
}

.admin-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-content: flex-start;
}

.admin-actions a,
.admin-actions button,
.inline-form button,
.admin-table button {
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-weight: 700;
  padding: 0;
}

.admin-content-table .admin-actions a,
.admin-content-table .admin-actions button,
.admin-content-table .inline-form button,
.admin-content-table button.admin-action,
.admin-content-table .admin-featured-control button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-soft) 58%, var(--surface));
  color: var(--ink-muted);
  min-height: 30px;
  padding: 0 11px;
}

.admin-content-table .admin-action.is-primary {
  border-color: color-mix(in srgb, var(--blue) 30%, var(--line));
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
  color: var(--blue);
}

.admin-content-table .admin-action.is-danger {
  border-color: color-mix(in srgb, var(--red) 20%, var(--line));
  background: color-mix(in srgb, var(--red) 7%, var(--surface));
}

.admin-content-table .admin-featured-control button:hover,
.admin-content-table .admin-featured-control button:focus-visible,
.admin-content-table .admin-action:hover,
.admin-content-table .admin-action:focus-visible {
  border-color: color-mix(in srgb, var(--blue) 35%, var(--line));
  background: color-mix(in srgb, var(--blue) 9%, var(--surface));
  color: var(--blue);
  transform: translateY(-1px);
}

.admin-list-panel .admin-actions a.admin-action,
.admin-list-panel .admin-actions button.admin-action,
.admin-list-panel .inline-form button.admin-action {
  min-width: 76px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-soft) 58%, var(--surface));
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 0 15px;
}

.admin-list-panel .admin-actions a.admin-action.is-primary,
.admin-list-panel .admin-actions button.admin-action.is-primary,
.admin-list-panel .inline-form button.admin-action.is-primary {
  border-color: color-mix(in srgb, var(--blue) 30%, var(--line));
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
  color: var(--blue);
}

.admin-list-panel .admin-actions button.admin-action.is-danger,
.admin-list-panel .inline-form button.admin-action.is-danger {
  border-color: color-mix(in srgb, var(--red) 20%, var(--line));
  background: color-mix(in srgb, var(--red) 7%, var(--surface));
  color: var(--red);
}

.admin-list-panel .admin-actions a.admin-action:hover,
.admin-list-panel .admin-actions a.admin-action:focus-visible,
.admin-list-panel .admin-actions button.admin-action:hover,
.admin-list-panel .admin-actions button.admin-action:focus-visible,
.admin-list-panel .inline-form button.admin-action:hover,
.admin-list-panel .inline-form button.admin-action:focus-visible {
  border-color: color-mix(in srgb, var(--blue) 35%, var(--line));
  background: color-mix(in srgb, var(--blue) 9%, var(--surface));
  color: var(--blue);
  transform: translateY(-1px);
}

.danger-text,
.button.danger {
  color: var(--red) !important;
}

.tiny-input {
  width: 72px;
  min-height: 30px;
  padding: 0 8px;
}

.admin-pagination {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 12px 14px;
}

.admin-pagination form,
.admin-pagination label,
.admin-pagination nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-pagination select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 8px;
}

.admin-pagination a {
  display: inline-flex;
  min-width: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-muted);
  padding: 0 8px;
}

.admin-pagination a.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.admin-pagination a.is-disabled {
  opacity: 0.38;
  pointer-events: none;
}

.admin-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.admin-card h2,
.admin-card-head h2 {
  margin: 0;
  font-size: 22px;
}

.admin-card-head p {
  margin: 0;
  color: var(--ink-muted);
}

.admin-form {
  display: grid;
  gap: 18px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 700;
}

.admin-form textarea {
  min-height: 96px;
  resize: vertical;
  padding: 12px;
}

.admin-form .markdown-editor {
  min-height: 560px;
  font-family: var(--font-mono);
  line-height: 1.65;
}

.admin-content-form {
  max-width: none;
}

.cover-upload {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.cover-preview {
  position: relative;
  display: grid;
  min-height: 220px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed color-mix(in srgb, var(--blue) 30%, var(--line));
  border-radius: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue) 13%, transparent), transparent 42%),
    linear-gradient(145deg, #eef5ff, #f8fbff);
  background-position: center;
  background-size: cover;
  color: var(--blue);
  font-weight: 700;
}

.cover-preview.has-image {
  border-style: solid;
  color: transparent;
}

.cover-preview span {
  display: inline-flex;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  padding: 8px 12px;
}

.cover-controls {
  display: grid;
  align-content: start;
  gap: 12px;
}

.cover-controls input[type="file"],
.resource-uploader input[type="file"] {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 10px;
}

.markdown-editor-shell {
  display: grid;
  gap: 14px;
}

.markdown-editor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-soft) 42%, var(--surface));
  padding: 12px 14px;
}

.markdown-editor-actions .button {
  min-height: 36px;
  cursor: pointer;
}
.markdown-editor-commandbar {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.markdown-editor-tool {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.markdown-editor-tool:hover,
.markdown-editor-tool:focus-visible {
  border-color: color-mix(in srgb, var(--blue) 34%, var(--line));
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
  color: var(--blue);
}

.markdown-editor-tool:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.markdown-editor-upload {
  position: relative;
  overflow: hidden;
}

.markdown-editor-upload.is-disabled {
  cursor: not-allowed;
  opacity: .68;
}

.markdown-editor-helper {
  min-width: min(320px, 100%);
  margin-left: auto;
  color: var(--ink-subtle);
  font-size: 13px;
  line-height: 1.6;
}

.editor-link-modal {
  display: grid;
  gap: 18px;
  width: min(460px, calc(100vw - 32px));
}

.editor-link-modal label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.markdown-editor-shell textarea[data-markdown-source][hidden] {
  display: none;
}

.markdown-editor-workspace {
  --markdown-editor-height: 1080px;
  --markdown-toolbar-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
  height: var(--markdown-editor-height);
  min-height: var(--markdown-editor-height);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 92%, transparent);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: none;
}

.markdown-editor-compose {
  min-width: 0;
  height: var(--markdown-editor-height);
  min-height: var(--markdown-editor-height);
  overflow: hidden;
  background: var(--surface);
}

.markdown-editor-live-preview {
  min-width: 0;
  height: calc(var(--markdown-editor-height) - var(--markdown-toolbar-height));
  min-height: calc(var(--markdown-editor-height) - var(--markdown-toolbar-height));
  margin-top: var(--markdown-toolbar-height);
  overflow: auto;
  border-left: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  background: color-mix(in srgb, var(--surface-soft) 18%, var(--surface));
  box-shadow: none;
  padding: 24px 28px 36px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.85;
}

.markdown-editor-compose textarea[data-markdown-source] {
  min-height: var(--markdown-editor-height) !important;
  height: var(--markdown-editor-height) !important;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
  resize: none;
}

.markdown-editor-shell [data-toast-editor].admin-toast-editor {
  height: var(--markdown-editor-height);
  min-height: var(--markdown-editor-height);
}

.markdown-editor-shell.markdown-editor-fallback {
  gap: 14px;
}

.markdown-editor-shell.markdown-editor-fallback .markdown-editor-actions,
.markdown-editor-shell.markdown-editor-fallback .admin-modal-backdrop {
  grid-column: 1 / -1;
}

.markdown-editor-shell.markdown-editor-fallback textarea[data-markdown-source] {
  min-height: var(--markdown-editor-height);
  border: 0;
  border-radius: 0;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
  resize: none;
}

.markdown-editor-shell.markdown-editor-fallback .markdown-editor-live-preview {
  height: var(--markdown-editor-height);
  min-height: var(--markdown-editor-height);
  margin-top: 0;
}

.markdown-editor-shell .markdown-fallback-pane {
  overflow: hidden;
  border-left: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  background: color-mix(in srgb, var(--surface-soft) 18%, var(--surface));
}

.markdown-fallback-preview {
  height: 100%;
  overflow: auto;
  padding: 24px 28px 36px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.85;
}

.markdown-preview-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 18px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--blue) 18%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
  color: color-mix(in srgb, var(--blue) 80%, var(--ink));
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.markdown-fallback-preview h1,
.markdown-fallback-preview h2,
.markdown-fallback-preview h3,
.markdown-fallback-preview h4,
.markdown-editor-live-preview h1,
.markdown-editor-live-preview h2,
.markdown-editor-live-preview h3,
.markdown-editor-live-preview h4 {
  margin: 1.25em 0 .55em;
  color: var(--ink);
  line-height: 1.35;
}

.markdown-fallback-preview p,
.markdown-fallback-preview ul,
.markdown-fallback-preview ol,
.markdown-fallback-preview blockquote,
.markdown-fallback-preview pre,
.markdown-editor-live-preview p,
.markdown-editor-live-preview ul,
.markdown-editor-live-preview ol,
.markdown-editor-live-preview blockquote,
.markdown-editor-live-preview pre {
  margin: 0 0 1em;
}

.markdown-fallback-preview img,
.markdown-editor-live-preview img {
  max-width: 100%;
  border-radius: 16px;
}

.markdown-fallback-preview blockquote,
.markdown-editor-live-preview blockquote {
  padding: 12px 16px;
  border-left: 3px solid color-mix(in srgb, var(--blue) 42%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--blue) 6%, var(--surface));
  color: var(--ink-muted);
}

.markdown-fallback-preview code,
.markdown-editor-live-preview code {
  padding: 2px 6px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--surface-soft) 72%, var(--line));
  font-family: var(--font-mono);
  font-size: .92em;
}

.markdown-fallback-preview pre,
.markdown-editor-live-preview pre {
  overflow: auto;
  padding: 16px;
  border-radius: 14px;
  background: #111827;
  color: #e5e7eb;
}

.markdown-fallback-preview pre code,
.markdown-editor-live-preview pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.markdown-editor-shell .toastui-editor-defaultUI {
  height: var(--markdown-editor-height);
  min-height: var(--markdown-editor-height);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.markdown-editor-compose .toastui-editor-defaultUI {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.markdown-editor-compose .toastui-editor-md-tab-container,
.markdown-editor-compose .toastui-editor-md-preview {
  display: none !important;
}

.markdown-editor-compose .toastui-editor-md-container .toastui-editor {
  width: 100% !important;
}

.markdown-editor-shell .toastui-editor-defaultUI {
  overflow: hidden;
  border-color: color-mix(in srgb, var(--line) 92%, transparent);
  background: var(--surface);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.markdown-editor-shell.is-dragover .toastui-editor-defaultUI {
  border-color: color-mix(in srgb, var(--blue) 44%, var(--line));
  box-shadow: 0 18px 44px rgba(37, 99, 235, .14);
}

.markdown-editor-shell.is-uploading .toastui-editor-defaultUI {
  opacity: .94;
}

.markdown-editor-shell .toastui-editor-toolbar {
  border-bottom-color: color-mix(in srgb, var(--line) 84%, transparent);
  background: color-mix(in srgb, var(--surface-soft) 26%, var(--surface));
}

.markdown-editor-shell .toastui-editor-toolbar-group {
  border-color: color-mix(in srgb, var(--line) 86%, transparent);
}

.markdown-editor-shell .toastui-editor-toolbar-icons,
.markdown-editor-shell .toastui-editor-more {
  border-radius: 10px;
}

.markdown-editor-shell .toastui-editor-toolbar-icons:not(:disabled):hover,
.markdown-editor-shell .toastui-editor-toolbar-icons:not(:disabled):focus-visible,
.markdown-editor-shell .toastui-editor-toolbar-icons:not(:disabled).active,
.markdown-editor-shell .toastui-editor-more:hover,
.markdown-editor-shell .toastui-editor-more:focus-visible {
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
}

.markdown-editor-shell .toastui-editor-mode-switch {
  border-top-color: color-mix(in srgb, var(--line) 84%, transparent);
  background: color-mix(in srgb, var(--surface-soft) 18%, var(--surface));
}

.markdown-editor-shell .toastui-editor-mode-switch .tab-item {
  min-height: 40px;
  color: var(--ink-subtle);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
}

.markdown-editor-shell .toastui-editor-mode-switch .tab-item.active {
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
  color: var(--blue);
}

.markdown-editor-shell .toastui-editor-main {
  height: calc(var(--markdown-editor-height) - var(--markdown-toolbar-height)) !important;
  min-height: calc(var(--markdown-editor-height) - var(--markdown-toolbar-height)) !important;
}

.markdown-editor-shell .toastui-editor-md-container,
.markdown-editor-shell .toastui-editor-ww-container {
  height: 100%;
  background: var(--surface);
}

.markdown-editor-shell .toastui-editor-main .toastui-editor-md-vertical-style {
  display: flex;
  height: 100%;
}

.markdown-editor-shell .toastui-editor-md-container .toastui-editor,
.markdown-editor-shell .toastui-editor-main .toastui-editor-md-vertical-style .toastui-editor {
  display: block;
  width: 50% !important;
  height: 100%;
  background: var(--surface);
}

.markdown-editor-shell .toastui-editor-md-container .toastui-editor > div,
.markdown-editor-shell .toastui-editor-md-container .toastui-editor .ProseMirror {
  min-height: 100%;
}

.markdown-editor-shell .toastui-editor-md-container .toastui-editor-md-preview,
.markdown-editor-shell .toastui-editor-main .toastui-editor-md-vertical-style .toastui-editor-md-preview {
  display: block !important;
  width: 50% !important;
  height: 100%;
  border-left: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  background: color-mix(in srgb, var(--surface-soft) 18%, var(--surface));
  box-shadow: none;
}

.markdown-editor-compose .toastui-editor-md-container .toastui-editor,
.markdown-editor-compose .toastui-editor-main .toastui-editor-md-vertical-style .toastui-editor {
  width: 100% !important;
}

.markdown-editor-compose .toastui-editor-md-container .toastui-editor-md-preview,
.markdown-editor-compose .toastui-editor-main .toastui-editor-md-vertical-style .toastui-editor-md-preview {
  display: none !important;
}

.markdown-editor-shell .toastui-editor-main .toastui-editor-md-splitter {
  background: color-mix(in srgb, var(--line) 92%, transparent);
}

.markdown-editor-shell .toastui-editor-contents,
.markdown-editor-shell .ProseMirror {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.85;
}

.markdown-editor-shell .toastui-editor-contents-placeholder::before {
  color: var(--ink-subtle);
  font-style: normal;
}

.markdown-editor-shell .toastui-editor-md-preview .toastui-editor-contents::before {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 16px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--blue) 18%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
  color: color-mix(in srgb, var(--blue) 80%, var(--ink));
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  content: "实时预览";
}

.markdown-editor-shell .admin-modal-backdrop {
  z-index: 220;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(16px);
}

.markdown-editor-shell .toastui-editor-popup,
.markdown-editor-shell .toastui-editor-dropdown-toolbar {
  border-color: color-mix(in srgb, var(--line) 90%, transparent);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
}

.markdown-editor-shell .toastui-editor-popup-body {
  background: var(--surface);
}

.markdown-editor-shell .toastui-editor-popup-body input[type='text'],
.markdown-editor-shell .toastui-editor-popup-body input[type='file'] {
  border-color: color-mix(in srgb, var(--line) 90%, transparent);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
}

.markdown-editor-shell .toastui-editor-popup-body input[type='text']:focus,
.markdown-editor-shell .toastui-editor-popup-body input[type='file']:focus {
  border-color: color-mix(in srgb, var(--blue) 38%, var(--line));
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
  outline: none;
}

.markdown-editor-shell .toastui-editor-ok-button {
  border-radius: 999px;
  background: var(--blue);
  box-shadow: none;
}

.markdown-editor-shell .toastui-editor-close-button {
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-soft) 38%, var(--surface));
  color: var(--ink-muted);
}

.markdown-editor-shell.is-readonly .markdown-editor-actions {
  opacity: .78;
}

.markdown-editor-shell .is-readonly {
  opacity: .88;
}

@media (max-width: 980px) {
  .markdown-editor-workspace {
    --markdown-editor-height: 680px;
    grid-template-columns: 1fr;
  }

  .markdown-editor-compose,
  .markdown-editor-live-preview,
  .markdown-editor-compose textarea[data-markdown-source],
  .markdown-editor-shell [data-toast-editor].admin-toast-editor,
  .markdown-editor-shell .toastui-editor-defaultUI {
    min-height: var(--markdown-editor-height) !important;
    height: var(--markdown-editor-height) !important;
  }

  .markdown-editor-live-preview {
    margin-top: 0;
    border-left: 0;
    border-top: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  }
}

.resource-uploader {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .92fr);
  gap: 18px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-soft) 42%, var(--surface));
  padding: 18px;
}

.resource-uploader strong {
  color: var(--ink);
  font-size: 18px;
}

.resource-info-panel,
.resource-limit-fieldset {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.resource-info-panel {
  padding: 14px;
  border: 0;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 78%, var(--surface-soft));
}

.resource-info-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.resource-file-state {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 76%, var(--surface-soft));
  color: var(--ink-subtle);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.resource-current-file {
  display: grid;
  gap: 6px;
  padding: 2px 0 4px;
}

.resource-info-copy {
  line-height: 1.65;
}

.resource-section-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--blue) 20%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 7%, var(--surface));
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.resource-picker-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
}

.resource-picker-button {
  min-height: 40px;
  padding: 0 16px;
  white-space: nowrap;
}

.resource-selected-file {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.resource-selected-file strong,
.resource-selected-file span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-selected-file strong {
  font-size: 14px;
}

.resource-selected-file span {
  color: var(--ink-subtle);
  font-size: 12px;
  font-weight: 600;
}

.resource-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 650;
}

.resource-clear-button {
  min-height: 34px;
  padding: 0 13px;
  font-size: 13px;
}

.resource-clear-button.is-active {
  border-color: color-mix(in srgb, var(--blue) 32%, var(--line));
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
  color: var(--blue);
}

.resource-limit-field {
  display: grid;
  gap: 7px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
}

.resource-limit-fieldset {
  gap: 10px;
  color: var(--ink-muted);
  padding: 14px;
  border: 0;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 78%, var(--surface-soft));
}

.resource-limit-legend {
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
}

.resource-limit-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.resource-limit-option {
  display: block;
  min-width: 0;
}

.resource-limit-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.resource-limit-choice {
  display: grid;
  gap: 4px;
  min-height: 100%;
  padding: 12px 13px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
  cursor: pointer;
}

.resource-limit-choice strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.resource-limit-choice small {
  color: var(--ink-subtle);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.resource-limit-option input:checked + .resource-limit-choice {
  border-color: color-mix(in srgb, var(--blue) 36%, var(--line));
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 14%, transparent);
}

.resource-limit-field.is-disabled {
  opacity: .58;
}

.resource-limit-field.is-disabled input {
  cursor: not-allowed;
}

.resource-limit-summary {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-soft) 56%, var(--surface));
}

.resource-limit-summary strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.admin-settings-notes {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--ink-muted);
  font-size: 14px;
}

.admin-settings-notes li + li {
  margin-top: 6px;
}

.resource-limit-field input {
  width: 100%;
}

.admin-form-row {
  display: grid;
  gap: 14px;
}

.admin-form-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form-row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-form-row.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-form-row-phone {
  grid-template-columns: minmax(170px, .75fr) minmax(0, 1.25fr) minmax(0, 1fr);
}

.admin-card-head.compact {
  margin-top: 10px;
  margin-bottom: 8px;
  padding-top: 0;
}

.admin-card-head.compact h3 {
  margin: 0;
  font-size: 15px;
}

.admin-social-section {
  display: grid;
  gap: 14px;
}

.admin-social-group {
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-soft) 34%, var(--surface));
  padding: 16px;
}

.admin-user-form {
  gap: 16px;
}

.admin-user-form-section {
  background: color-mix(in srgb, var(--surface-soft) 38%, var(--surface));
  padding: 50px 16px 16px;
}

.admin-user-form-section .user-form-section-label {
  font-size: 12px;
  padding: 11px 14px;
}

.admin-user-avatar-editor {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.admin-user-avatar-preview,
.admin-user-avatar-actions {
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  padding: 16px;
}

.admin-user-avatar-preview {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.admin-user-avatar-stage {
  width: 88px;
  height: 88px;
  font-size: 30px;
  font-weight: 700;
}

.admin-user-avatar-copy {
  display: grid;
  gap: 4px;
}

.admin-user-avatar-copy strong {
  font-size: 15px;
}

.admin-user-avatar-copy .admin-subtext {
  margin-top: 0;
}

.admin-user-avatar-actions {
  display: grid;
  gap: 12px;
  align-content: start;
}

.admin-user-avatar-upload {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 18px;
  padding: 14px;
  background: color-mix(in srgb, var(--surface-soft) 30%, var(--surface));
  cursor: pointer;
}

.admin-user-avatar-upload:hover,
.admin-user-avatar-upload:focus-within {
  border-color: color-mix(in srgb, var(--blue) 34%, var(--line));
  background: color-mix(in srgb, var(--blue) 7%, var(--surface));
}

.admin-user-avatar-upload-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
  color: var(--blue);
}

.admin-user-avatar-upload-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-user-avatar-upload-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-user-avatar-upload-copy strong,
.admin-user-avatar-remove strong {
  font-size: 14px;
}

.admin-user-avatar-upload-copy span {
  color: var(--ink-subtle);
  font-size: 13px;
  line-height: 1.5;
}

.admin-user-avatar-remove {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 0;
  border-radius: 18px;
  padding: 14px;
  background: color-mix(in srgb, var(--surface-warm) 24%, var(--surface));
}

.admin-user-avatar-remove input {
  margin-top: 2px;
}

.admin-user-avatar-remove > span {
  display: grid;
  gap: 4px;
}

.ops-data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ops-data-grid label {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}

.admin-inline-editor {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) 120px auto;
  gap: 10px;
}

.admin-empty {
  display: grid;
  justify-items: center;
  min-height: 420px;
  place-content: center;
  text-align: center;
  padding: 34px;
}

.admin-empty h1 {
  margin: 0;
  font-size: 38px;
}

.admin-empty p {
  max-width: 520px;
  color: var(--ink-muted);
  line-height: 1.8;
}

.analytics-range-shell {
  position: relative;
  min-width: 0;
  margin-top: 18px;
}

.analytics-range-sentinel,
.analytics-range-spacer {
  display: block;
  width: 100%;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.analytics-range-spacer.is-active {
  overflow: visible;
}

.analytics-range-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.analytics-range-bar.is-stuck {
  z-index: 48;
}

.analytics-range-bar.is-fixed {
  position: fixed;
  box-sizing: border-box;
  margin-top: 0;
  padding: 14px 32px;
  border-top: 0;
  border-right: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line-strong) 30%, var(--line));
  border-left: 0;
  border-radius: 0;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.analytics-range-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.analytics-range-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 700;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.analytics-range-link:hover,
.analytics-range-link:focus-visible {
  border-color: color-mix(in srgb, var(--blue) 30%, var(--line));
  background: color-mix(in srgb, var(--blue) 7%, var(--surface));
  color: var(--blue);
  outline: none;
}

.analytics-range-link.is-active {
  border-color: color-mix(in srgb, var(--blue) 34%, var(--line));
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
  color: var(--blue);
}

.analytics-range-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(154px, 1fr)) auto auto;
  gap: 10px;
  align-items: center;
}

.analytics-range-controls {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.analytics-range-controls .analytics-range-form {
  margin-left: 0;
}

.analytics-range-mode-actions {
  flex: 0 0 auto;
  min-height: 40px;
}

.analytics-summary-grid,
.analytics-chart-grid,
.analytics-table-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.analytics-summary-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.analytics-chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analytics-table-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analytics-card {
  gap: 16px;
  align-content: start;
}

.analytics-card .admin-card-head.compact {
  margin-top: 0;
  margin-bottom: 0;
  align-items: flex-start;
}

.analytics-chart-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-soft) 62%, var(--surface));
}

.analytics-chart-filter {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 0 12px;
  white-space: nowrap;
}

.analytics-chart-filter:hover,
.analytics-chart-filter:focus-visible {
  color: var(--blue);
  outline: none;
}

.analytics-chart-filter.is-active {
  background: var(--surface);
  color: var(--blue);
}

.analytics-mode-current {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 9%, var(--surface));
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  padding: 0 8px;
}

.analytics-card-wide {
  grid-column: 1 / -1;
}

.analytics-mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.analytics-mini-metrics article,
.analytics-content-summary article {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 14px 16px;
  border: 0;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-soft) 38%, var(--surface));
}

.analytics-mini-metrics strong,
.analytics-content-summary strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.analytics-mini-metrics span,
.analytics-content-summary span {
  color: var(--ink-muted);
  font-size: 14px;
}

.analytics-content-summary {
  display: grid;
  gap: 12px;
  align-content: start;
}

.analytics-inline-pairs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink-subtle);
  font-size: 13px;
  font-weight: 700;
}

.analytics-inline-pairs b {
  color: var(--ink);
}

.analytics-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.analytics-fact-grid article {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-soft) 24%, var(--surface));
}

.analytics-fact-grid strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.analytics-fact-grid span {
  color: var(--ink-subtle);
  font-size: 12px;
  line-height: 1.5;
}

.analytics-completeness-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.analytics-completeness-meta span:last-child {
  flex: 0 0 auto;
  white-space: nowrap;
}

.analytics-completeness-list {
  display: grid;
  gap: 12px;
  align-content: start;
}

.analytics-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 1.2fr) auto;
  align-items: center;
  gap: 12px;
}

.analytics-progress-copy {
  display: grid;
  gap: 3px;
}

.analytics-progress-copy strong {
  color: var(--ink);
  font-size: 14px;
}

.analytics-progress-copy span,
.analytics-progress-row em {
  color: var(--ink-subtle);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.analytics-progress-track {
  position: relative;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-soft) 78%, var(--line));
}

.analytics-progress-track span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--blue) 82%, #ffffff), color-mix(in srgb, var(--cyan) 76%, #ffffff));
}

.analytics-chart {
  width: 100%;
  min-height: 320px;
}

.echarts-tooltip {
  z-index: 10080 !important;
}

.analytics-chart-ring {
  min-height: 300px;
}

.analytics-content-ranking-table {
  min-width: 620px;
  table-layout: fixed;
}

.analytics-content-ranking-table .analytics-col-content {
  width: auto;
}

.analytics-content-ranking-table .analytics-col-category {
  width: 106px;
}

.analytics-content-ranking-table .analytics-col-stats {
  width: 96px;
}

.analytics-content-ranking-table th,
.analytics-content-ranking-table td {
  padding: 12px 10px;
}

.analytics-content-ranking-table .admin-content-identity {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
}

.analytics-content-ranking-table .admin-content-thumb {
  width: 64px;
}

.analytics-table .admin-row-title a:hover,
.analytics-table .admin-row-title a:focus-visible {
  color: var(--blue);
  outline: none;
}

.analytics-empty-cell {
  padding: 30px 18px !important;
  color: var(--ink-subtle);
  text-align: center;
}

html[data-theme="dark"] .analytics-mini-metrics article,
html[data-theme="dark"] .analytics-content-summary article {
  border-color: #263348;
  background: color-mix(in srgb, #172033 88%, transparent);
}

html[data-theme="dark"] .analytics-fact-grid article {
  border-color: #263348;
  background: color-mix(in srgb, #172033 74%, transparent);
}

html[data-theme="dark"] .analytics-progress-track {
  background: color-mix(in srgb, #1f2a44 82%, #263348);
}

.automation-settings-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.automation-section-nav {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 10px;
}

.automation-section-nav button {
  display: grid;
  gap: 3px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 12px;
  text-align: left;
}

.automation-section-nav button:hover,
.automation-section-nav button.is-active {
  background: var(--surface-soft);
  color: var(--ink);
}

.automation-section-nav strong {
  font-size: 14px;
}

.automation-section-nav span {
  color: var(--ink-subtle);
  font-size: 12px;
  line-height: 1.45;
}

.automation-panel-stack,
.automation-panel {
  min-width: 0;
}

.automation-panel-stack {
  display: grid;
  gap: 18px;
}

.automation-panel[hidden],
.automation-panel:not(.is-active) {
  display: none !important;
}

.automation-config-card,
.one-time-key,
.nested-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-soft);
  padding: 16px;
}

.automation-config-card,
.one-time-key {
  display: grid;
  gap: 10px;
}

.automation-config-card code,
.one-time-key code {
  overflow-wrap: anywhere;
}

.api-key-prefix-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.api-key-prefix-cell code {
  flex: 0 0 auto;
}

.table-inline-button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 0 10px;
  white-space: nowrap;
}

.table-inline-button:hover,
.table-inline-button:focus-visible {
  border-color: color-mix(in srgb, var(--blue) 34%, var(--line));
  color: var(--blue);
  outline: 0;
}

.table-inline-button:disabled {
  cursor: not-allowed;
  opacity: .46;
}

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(10px);
}

.admin-modal-backdrop[hidden] {
  display: none !important;
}

.admin-modal-card {
  display: grid;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-raised);
  padding: 22px;
}

.admin-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.admin-modal-head h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.admin-modal-head p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.65;
}

.admin-modal-close {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--ink-muted);
  cursor: pointer;
}

.admin-modal-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.admin-modal-close:hover,
.admin-modal-close:focus-visible {
  border-color: color-mix(in srgb, var(--blue) 34%, var(--line));
  color: var(--blue);
  outline: 0;
}

.admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.admin-modal-actions.is-split {
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-modal-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-import-modal {
  width: min(980px, 100%);
  height: min(860px, calc(100vh - 40px));
  max-height: min(860px, calc(100vh - 40px));
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.admin-import-modal .admin-modal-head {
  flex: 0 0 auto;
  padding: 22px 24px 18px;
  border-bottom: 0;
  background: var(--surface);
}

.admin-import-modal .admin-modal-actions {
  flex: 0 0 auto;
  padding: 18px 24px 22px;
  border-top: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  background: var(--surface);
}

.admin-import-modal-body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
  min-height: 0;
  padding: 20px 24px;
  overflow: hidden;
}

.admin-import-picker {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
}

.admin-import-picker-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-import-picker-dropzone {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px dashed color-mix(in srgb, var(--blue) 28%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-soft) 76%, var(--surface));
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.admin-import-picker-dropzone:hover,
.admin-import-picker-dropzone:focus-visible {
  border-color: color-mix(in srgb, var(--blue) 44%, var(--line));
  background: color-mix(in srgb, var(--blue) 5%, var(--surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 12%, transparent);
  outline: 0;
}

.admin-import-picker-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
  color: var(--blue);
}

.admin-import-picker-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.admin-import-picker-copy {
  display: grid;
  gap: 4px;
}

.admin-import-picker-copy strong {
  font-size: 15px;
}

.admin-import-picker-copy span {
  color: var(--ink-muted);
  line-height: 1.6;
}

.admin-import-picker-button {
  pointer-events: none;
}

.admin-import-file-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 18px;
  background: var(--surface-soft);
}

.admin-import-file-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-import-file-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.admin-import-file-panel-head strong {
  font-size: 14px;
}

.admin-import-rules-inline {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.admin-import-rules-trigger {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-muted);
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background-color .16s ease;
}

.admin-import-rules-trigger:hover,
.admin-import-rules-trigger:focus-visible,
.admin-import-rules-trigger[aria-expanded='true'] {
  border-color: color-mix(in srgb, var(--blue) 32%, var(--line));
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
  color: var(--blue);
  outline: 0;
}

.admin-import-rules-trigger svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.admin-import-rules-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 12;
  width: min(360px, calc(100vw - 96px));
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

.admin-import-rules-popover[hidden] {
  display: none;
}

.admin-import-rules-popover strong {
  font-size: 14px;
}

.admin-import-rules-popover ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink-muted);
}

.admin-import-rules-popover li {
  line-height: 1.6;
}

.admin-import-rules-popover code {
  font-family: var(--font-mono);
  font-size: 12px;
}

.admin-import-clear-all {
  padding-inline: 12px;
}

.admin-import-empty {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
}

.admin-import-file-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: 0;
  overflow: auto;
  align-content: start;
}

.admin-import-file-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 14px;
  background: var(--surface);
}

.admin-import-file-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-import-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}

.admin-import-file-meta {
  color: var(--ink-muted);
  font-size: 12px;
}

.admin-import-file-size {
  color: var(--ink-muted);
  font-size: 12px;
  white-space: nowrap;
}

.admin-import-file-remove {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--ink-muted);
  cursor: pointer;
}

.admin-import-file-remove:hover,
.admin-import-file-remove:focus-visible {
  border-color: color-mix(in srgb, var(--red) 30%, var(--line));
  color: var(--red);
  outline: 0;
}

.admin-import-file-remove svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button:disabled,
.button[aria-disabled='true'] {
  cursor: not-allowed;
  opacity: .56;
  box-shadow: none;
}

.admin-import-progress-backdrop {
  z-index: 135;
}

.admin-import-progress-modal {
  width: min(620px, 100%);
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.admin-import-progress-head {
  padding: 22px 24px 18px;
  border-bottom: 0;
  background: var(--surface);
}

.admin-import-progress-body {
  display: grid;
  gap: 16px;
  padding: 22px 24px;
}

.admin-import-progress-current {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-import-progress-current span {
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-import-progress-current strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-import-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 62%, var(--surface-soft));
}

.admin-import-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), color-mix(in srgb, var(--cyan) 72%, var(--blue)));
  transition: width .2s ease;
}

.admin-import-progress-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-import-progress-stats span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--ink-muted);
  font-size: 12px;
}

.admin-import-progress-stats strong {
  color: var(--ink);
  font-size: 18px;
}

.admin-import-progress-error[hidden],
.admin-import-progress-failures[hidden],
.admin-import-progress-actions[hidden] {
  display: none;
}
.admin-import-progress-error {
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--red) 30%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 92%, var(--red));
  color: var(--red);
  font-weight: 700;
  line-height: 1.6;
}

.admin-import-progress-failures {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--red) 24%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 96%, var(--red));
}

.admin-import-progress-failures > strong {
  color: var(--red);
  font-size: 14px;
}

.admin-import-progress-failures ul {
  display: grid;
  max-height: 220px;
  gap: 8px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.admin-import-progress-failures li {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
}

.admin-import-progress-failures li strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-import-progress-failures li span {
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.55;
}

.admin-import-progress-actions {
  padding: 18px 24px 22px;
  border-top: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  background: var(--surface);
}
@media (max-width: 980px) {
  .admin-import-modal {
    width: min(100%, 100%);
    height: min(860px, calc(100vh - 28px));
    max-height: min(860px, calc(100vh - 28px));
  }
}

@media (max-width: 720px) {
  .account-tts-voice-group-head {
    display: grid;
    gap: 4px;
  }

  .account-tts-voice-grid,
  .account-tts-rate-grid {
    grid-template-columns: 1fr;
  }

  .account-tts-option {
    min-height: 74px;
  }
}

@media (max-width: 720px) {
  .admin-import-modal .admin-modal-head,
  .admin-import-modal .admin-modal-actions,
  .admin-import-modal-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .admin-import-picker-dropzone {
    grid-template-columns: 1fr;
    justify-items: flex-start;
  }

  .admin-modal-actions.is-split,
  .admin-modal-actions-group {
    width: 100%;
    flex-wrap: wrap;
  }

  .admin-modal-actions.is-split {
    align-items: stretch;
  }

  .admin-modal-actions-group:last-child {
    justify-content: flex-end;
  }

  .admin-import-rules-popover {
    left: auto;
    right: 0;
    width: min(320px, calc(100vw - 64px));
  }

  .admin-import-progress-head,
  .admin-import-progress-body,
  .admin-import-progress-actions {
    padding-left: 18px;
    padding-right: 18px;
  }

  .admin-import-progress-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-toast-region {
  position: fixed;
  top: calc(var(--admin-header-height, 68px) + 18px);
  right: 24px;
  z-index: 120;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

.admin-toast {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--green) 28%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 94%, var(--green));
  color: color-mix(in srgb, var(--green) 72%, var(--ink));
  box-shadow: 0 18px 42px rgba(28, 43, 72, .14);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  padding: 12px 14px 12px 12px;
  transform: translateY(-8px);
  opacity: 0;
  animation: admin-toast-in .18s ease forwards;
}

.admin-toast.is-error {
  border-color: color-mix(in srgb, var(--red) 30%, var(--line));
  background: color-mix(in srgb, var(--surface) 94%, var(--red));
  color: var(--red);
}

.admin-toast.is-leaving {
  animation: admin-toast-out .22s ease forwards;
}

.admin-toast-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  color: currentColor;
}

.admin-toast-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

@keyframes admin-toast-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes admin-toast-out {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.admin-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(12px);
  animation: admin-confirm-fade-in .14s ease forwards;
}

.admin-confirm-backdrop.is-leaving {
  animation: admin-confirm-fade-out .16s ease forwards;
}

.admin-confirm-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px 16px;
  width: min(460px, 100%);
  border: 1px solid color-mix(in srgb, var(--blue) 10%, var(--line));
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(15, 23, 42, .22);
  padding: 20px;
  transform: translateY(8px) scale(.98);
  animation: admin-confirm-card-in .16s ease forwards;
}

.admin-confirm-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--blue) 24%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--blue) 9%, var(--surface));
  color: var(--blue);
}

.admin-confirm-icon.is-danger {
  border-color: color-mix(in srgb, var(--orange) 28%, var(--line));
  background: color-mix(in srgb, var(--orange) 10%, var(--surface));
  color: var(--orange);
}

.admin-confirm-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.admin-confirm-copy h3 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: 0;
}

.admin-confirm-copy p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.7;
}

.admin-confirm-input-wrap {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
}

.admin-confirm-input-wrap span {
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-confirm-input-wrap input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 14px;
}

.admin-confirm-input-wrap input:focus {
  border-color: color-mix(in srgb, var(--blue) 44%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 14%, transparent);
  outline: none;
}

.admin-confirm-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

@keyframes admin-confirm-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes admin-confirm-fade-out {
  to {
    opacity: 0;
  }
}

@keyframes admin-confirm-card-in {
  to {
    transform: translateY(0) scale(1);
  }
}

.automation-actions,
.publish-control-grid,
.scope-grid,
.template-card-grid,
.scope-summary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.code-note {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--ink);
  color: var(--surface);
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
  padding: 16px;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scope-grid label,
.switch-card,
.scope-summary-grid article,
.template-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 14px;
}

.scope-grid label,
.switch-card {
  align-items: flex-start;
  display: flex;
  gap: 10px;
}

.switch-card {
  flex: 1 1 280px;
}

.switch-card small {
  color: var(--ink-muted);
  display: block;
  line-height: 1.55;
  margin-top: 4px;
}

.admin-maintenance-form {
  display: grid;
  gap: 18px;
  max-width: 920px;
}

.admin-maintenance-switch {
  align-items: center;
}

.admin-maintenance-switch input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.admin-maintenance-preview {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-soft) 46%, var(--surface));
}

.admin-maintenance-preview h3,
.admin-maintenance-preview p {
  margin: 0;
}

.admin-maintenance-preview h3 {
  font-size: 16px;
}

.admin-maintenance-preview p {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.7;
}

.scope-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scope-summary-grid article,
.template-card {
  display: grid;
  gap: 10px;
}

.scope-summary-grid h3,
.template-card h3 {
  margin: 0;
}

.template-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-key-table {
  min-width: 1120px;
}

.error-stack {
  max-width: min(820px, calc(100vw - 40px));
  overflow: auto;
  padding: 18px;
  border-radius: 14px;
  background: var(--surface-soft);
  text-align: left;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .recommend-grid {
    animation: none;
  }
}

@media (max-width: 1879px) {
  .reader-outline {
    top: calc(var(--site-header-space) + 12px);
    width: min(360px, calc(100vw - 52px));
    min-width: 0;
    max-width: none;
    padding: 8px 8px 18px 8px;
  }

  .reader-outline.is-open .reader-outline-card {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .reader-outline-rail,
  .reader-outline:not(.is-open) .reader-outline-rail {
    opacity: 1;
    pointer-events: auto;
  }

  .reader-outline.is-open .reader-outline-rail {
    opacity: 0;
    pointer-events: none;
  }

  .reader-outline-card {
    width: 100%;
    min-width: 0;
  }

}

@media (max-width: 980px) {
  :root {
    --site-header-top: 0px;
    --site-header-height: 112px;
    --site-header-space: var(--site-header-height);
    --filter-sticky-top: calc(var(--site-header-height) + 8px);
  }

  .site-header-inner {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-top: 4px;
  }

  .site-tools {
    margin-left: auto;
  }

  .recommend-card {
    flex-basis: min(72vw, 360px);
  }

  .final-cta p:not(.eyebrow) {
    max-width: 620px;
    white-space: normal;
  }

  .scenario-grid,
  .scene-grid,
  .status-grid,
  .content-grid,
  .tutorial-grid,
  .news-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reader-shell,
  .service-panel,
  .service-hero-grid,
  .intent-panel,
  .about-hero,
  .account-layout,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    width: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px;
  }

  .admin-sidebar {
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 1fr);
  }

  .admin-main {
    margin-left: 0;
    padding: 22px 18px 52px;
  }

  .automation-settings-layout {
    grid-template-columns: 1fr;
  }

  .automation-section-nav {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .automation-section-nav button {
    min-width: 160px;
  }

  .account-menu {
    position: static;
    grid-template-columns: repeat(5, max-content);
    height: auto;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 30px 30px 0 0;
    overflow-x: auto;
    padding: 12px;
  }

}

@media (max-width: 620px) {
  :root {
    --site-header-top: 0px;
    --site-header-height: 150px;
    --site-header-space: var(--site-header-height);
    --filter-sticky-top: calc(var(--site-header-height) + 8px);
  }

  main {
    width: calc(100% - 24px);
    max-width: 1180px;
  }

  .services-page {
    width: calc(100% - 24px);
  }

  .site-header-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px 12px;
    width: calc(100% - 24px);
    padding: 10px 0;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
  }

  .site-tools {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    display: flex !important;
    justify-content: flex-end;
    width: auto;
    max-width: 100%;
    margin-left: 0;
  }

  .site-nav {
    grid-column: 1;
    grid-row: 3;
    display: flex !important;
    justify-content: space-between;
    gap: 0;
    width: 100%;
    overflow: hidden;
    padding-top: 0;
  }

  .site-nav a {
    justify-content: center;
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 7px;
    font-size: 12px;
  }

  .brand span:last-child {
    display: none;
  }

  .site-tools {
    gap: 6px;
  }

  .tool-button {
    min-height: 32px;
    padding: 0 9px;
    font-size: 13px;
  }

  .theme-switch {
    gap: 1px;
    padding: 2px;
  }

  .icon-button {
    width: 28px;
    height: 28px;
    min-height: 28px;
  }

  .login-link {
    min-height: 32px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero {
    padding-top: 52px;
  }

  .services-hero {
    margin-top: calc(-1 * var(--site-header-space));
    padding-top: calc(var(--site-header-space) + 52px);
  }

  .service-copy h1 {
    max-width: none;
    font-size: clamp(42px, 13vw, 58px);
  }

  .service-hero-actions,
  .consult-actions {
    flex-direction: column;
  }

  .consult-meta,
  .problem-grid,
  .deliver-layout {
    grid-template-columns: 1fr;
  }

  .contact-method {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-tag {
    align-self: flex-start;
  }

  .home-hero {
    --banner-primary-glow: rgba(37, 99, 235, 0.22);
    --banner-secondary-glow: rgba(8, 145, 178, 0.12);
    --banner-tertiary-glow: rgba(22, 163, 74, 0.08);
    padding: calc(var(--site-header-space) + 30px) 18px 34px;
  }

  .community-hero,
  .services-hero,
  .about-hero {
    --banner-primary-glow: rgba(37, 99, 235, 0.21);
    --banner-secondary-glow: rgba(8, 145, 178, 0.12);
    --banner-tertiary-glow: rgba(22, 163, 74, 0.08);
  }

  .home-hero h1,
  .hero h1,
  .list-hero h1,
  .reader-header h1,
  .about-hero h1,
  .placeholder-page h1,
  .system-page h1 {
    width: min(310px, calc(100vw - 44px));
    max-width: 310px;
    font-size: 28px;
    line-height: 1.12;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .reader-header h1 {
    width: 100%;
    max-width: none;
  }

  .hero-copy,
  .recommend-lane-head p:not(.eyebrow) {
    width: min(330px, calc(100vw - 32px));
    max-width: 330px;
    font-size: 15px;
    line-height: 1.65;
    word-break: break-word;
  }

  .hero-search,
  .community-hero-search,
  .attachment-card {
    align-items: stretch;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .attachment-file {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .attachment-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .attachment-copy h2 {
    font-size: 17px;
  }

  .attachment-copy p {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .attachment-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: stretch;
    min-width: 0;
  }

  .attachment-quota {
    justify-self: start;
  }

  .hero-search button,
  .community-hero-search .search-submit {
    min-height: 42px;
  }

  .community-hero {
    margin-top: calc(-1 * var(--site-header-space));
    padding: calc(var(--site-header-space) + 30px) 18px 32px;
  }

  .community-hero h1 {
    width: min(330px, calc(100vw - 36px));
    max-width: 330px;
    font-size: 28px;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .community-hero .lead {
    max-width: 330px;
    font-size: 14px;
    line-height: 1.65;
  }

  .community-tabs-shell {
    margin-bottom: 26px;
    padding-inline: 12px;
  }

  .community-tabs-inner {
    gap: 6px;
  }

  .community-tab,
  .tag-filter-trigger {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 13px;
  }

  .community-tab-arrow {
    width: 28px;
    min-height: 36px;
  }

  .community-tab-arrow-icon {
    width: 18px;
    height: 18px;
  }

  .community-tabs-scroll::before,
  .community-tabs-scroll::after {
    width: 34px;
  }

  .community-tabs-list.filter-bar .community-tab {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 13px;
  }

  .community-tabs-search {
    flex-basis: 132px;
    min-height: 36px;
    padding-inline: 10px;
  }

  .tag-filter-panel,
  .news-date-popover {
    position: fixed;
    top: calc(var(--site-header-space) + 12px);
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100vh - var(--site-header-space) - 28px);
    overflow: auto;
  }

  .news-tabs-actions {
    margin-left: auto;
  }

  .news-date-trigger {
    min-height: 36px;
    padding-inline: 11px;
    font-size: 13px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .content-grid,
  .scenario-grid,
  .scene-grid,
  .status-grid,
  .tutorial-grid,
  .news-card-grid {
    grid-template-columns: 1fr;
  }

  .news-toolbar-head {
    align-items: start;
    flex-direction: column;
  }

  .date-range-fields {
    grid-template-columns: 1fr;
  }

  .card-footer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .tutorial-card > .card-footer-row,
  .news-card > .card-footer-row {
    align-items: center;
    flex-direction: row;
  }

  .tutorial-card > .card-footer-row .content-stats,
  .news-card > .card-footer-row .content-stats {
    gap: 8px 10px;
  }

  .tutorial-card > .card-footer-row .card-date,
  .news-card > .card-footer-row .card-date {
    align-self: center;
    font-size: 12px;
    margin-left: auto;
  }

  .content-card {
    grid-template-columns: 1fr;
    width: min(320px, calc(100vw - 40px));
  }

  .content-card.vertical {
    width: 100%;
  }

  .marquee-track {
    animation-duration: 34s;
  }

  .recommend-lanes {
    gap: 58px;
    margin-top: 54px;
  }

  .recommend-panel {
    padding-block: 18px 54px;
  }

  .recommend-panel::before,
  .recommend-panel::after {
    width: 54px;
  }

  .recommend-card {
    flex-basis: min(78vw, 328px);
    min-height: 330px;
  }

  .recommend-card.tutorial-card .card-cover,
  .recommend-card.news-card .news-cover {
    flex-basis: 156px;
    min-height: 156px;
  }

  .final-cta p:not(.eyebrow) {
    max-width: 330px;
    white-space: normal;
  }

  .article-cover,
  .detail-cover {
    min-height: 190px;
  }

  .content-share-cluster {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .share-popover {
    right: auto;
    left: 0;
    max-width: calc(100vw - 44px);
  }

  .tts-dock {
    border-radius: 18px;
  }

  .service-panel,
  .about-hero,
  .access-gate,
  .auth-card,
  .settings-card,
  .account-hero,
  .account-panel {
    padding: 24px;
  }

  .account-hero,
  .account-filter,
  .two-cols,
  .cover-upload,
  .resource-uploader,
  .admin-filter,
  .admin-user-avatar-editor,
  .admin-form-row.two,
  .admin-form-row.three,
  .admin-form-row.four,
  .admin-form-row-phone,
  .ops-data-grid,
  .admin-inline-editor,
  .scope-grid,
  .scope-summary-grid,
  .template-card-grid {
    grid-template-columns: 1fr;
  }

  .admin-category-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-category-filter.admin-skill-category-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-tag-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-category-filter > input,
  .admin-category-filter > select,
  .admin-category-filter > .ui-select {
    grid-column: 1 / -1;
  }

  .admin-tag-filter > input,
  .admin-tag-filter > select,
  .admin-tag-filter > .ui-select {
    grid-column: 1 / -1;
  }

  .admin-category-filter .admin-filter-action {
    width: 100%;
  }

  .admin-tag-filter .admin-filter-action {
    width: 100%;
  }

  .admin-title-row,
  .admin-card-head,
  .admin-list-toolbar,
  .bulk-bar,
  .trash-actions,
  .admin-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-list-toolbar-actions {
    justify-content: flex-start;
  }

  .markdown-editor-helper {
    flex-basis: 100%;
    margin-left: 0;
  }

  .admin-page {
    --admin-header-height: 72px;
  }

  .admin-header {
    gap: 12px;
    padding: 0 14px;
  }

  .admin-brand span:last-child {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-account-summary {
    display: none;
  }

  .admin-account-trigger {
    width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 5px;
  }

  .admin-account-chevron {
    display: none;
  }

  .admin-account-menu {
    right: 0;
    width: min(252px, calc(100vw - 28px));
  }

  .admin-shell {
    min-height: 100vh;
  }

  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .account-hero {
    display: grid;
  }

  .favorite-metrics-hero {
    flex: 1 1 auto;
    max-width: none;
    grid-template-columns: 1fr;
  }

  .account-layout {
    min-height: 720px;
  }

  .account-identity {
    align-items: flex-start;
  }

  .user-avatar-large {
    width: 58px;
    height: 58px;
    font-size: 20px;
  }

  .favorite-metrics {
    grid-template-columns: 1fr;
  }

  .account-list-head,
  .account-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-favorite-item {
    grid-template-columns: 1fr;
  }

  .account-favorite-cover {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .account-favorite-content {
    padding: 16px;
  }

  .account-favorite-head {
    align-items: flex-start;
  }

  .account-favorite-title {
    -webkit-line-clamp: 2;
  }

  .account-favorite-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-pagination nav {
    flex-wrap: wrap;
  }

  .settings-shell,
  .auth-shell {
    padding: 42px 0 58px;
  }

  .avatar-upload {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer-inner,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    width: calc(100% - 32px);
    padding: 44px 0 32px;
  }

  .footer-bottom {
    width: calc(100% - 32px);
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .about-profile-section,
  .story-panel {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    max-width: 680px;
    margin: 0 auto;
  }

  .profile-summary,
  .capability-grid,
  .timeline-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .about-hero {
    margin-top: calc(-1 * var(--site-header-space));
    padding: calc(var(--site-header-space) + 30px) 18px 32px;
  }

  .about-hero h1 {
    width: min(330px, calc(100vw - 44px));
    max-width: 330px;
  }

  .about-profile-section {
    padding-top: 42px;
  }

  .profile-card-top {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    text-align: left;
  }

  .profile-photo-slot {
    width: 92px;
    border-radius: 20px;
    font-size: 28px;
  }

  .profile-fact,
  .profile-summary,
  .capability-grid,
  .timeline-track {
    grid-template-columns: 1fr;
  }

  .about-section {
    padding: 56px 0;
  }

  .about-section-head h2,
  .mission-card h2 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .story-panel,
  .mission-card {
    border-radius: 26px;
  }
}

/* About page: method source layout */
.about-brand-page {
  width: 100%;
  max-width: none;
  margin: 0;
  overflow-x: clip;
}

.about-brand-page > .about-section {
  width: 100%;
  margin-inline: 0;
  padding-right: 0;
  padding-left: 0;
}

.about-section-inner {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.about-brand-hero {
  display: block;
  width: 100vw;
  margin-top: calc(-1 * var(--site-header-space));
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  padding: clamp(112px, 13vw, 156px) max(20px, calc((100vw - 1180px) / 2)) clamp(72px, 8vw, 104px);
  background:
    radial-gradient(ellipse 920px 410px at 50% 4%, var(--banner-primary-glow), transparent 74%),
    radial-gradient(ellipse 760px 340px at 17% 78%, var(--banner-secondary-glow), transparent 78%),
    radial-gradient(ellipse 680px 300px at 83% 68%, var(--banner-tertiary-glow), transparent 78%),
    linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--page) 92%, #ffffff) 62%, var(--page) 100%);
  text-align: center;
}

.about-hero-inner {
  display: grid;
  width: min(1180px, 100%);
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 26px;
  align-items: center;
  margin-inline: auto;
  text-align: center;
}

.about-brand-hero .about-hero-copy {
  display: grid;
  width: min(920px, 100%);
  min-width: 0;
  justify-items: center;
}

.about-brand-hero .about-hero-copy h1 {
  width: min(860px, 100%);
  max-width: 860px;
  margin: 0 auto 22px;
  text-align: center;
  font-size: clamp(38px, 4.7vw, 60px);
  line-height: 1.1;
  overflow-wrap: normal;
}

.about-brand-hero .lead {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.about-brand-hero .about-actions {
  justify-content: center;
}

.about-offering-grid,
  .proof-grid,
.evolution-grid {
  display: grid;
  gap: clamp(18px, 2.6vw, 28px);
}

.about-offering-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.evolution-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.about-offering-card,
  .proof-card,
.evolution-card,
.workflow-step {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.proof-card {
  min-height: 198px;
  padding: clamp(24px, 3vw, 30px);
}

.about-offering-card {
  position: relative;
  min-height: 226px;
  overflow: hidden;
  padding: clamp(24px, 3vw, 32px);
}

.about-offering-card .glyph-card,
.proof-card .glyph-card,
.evolution-card .glyph-card {
  margin-bottom: 18px;
}

.workflow-step .glyph-card {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  border-radius: 16px;
}

.about-offering-card h3,
.proof-card h3,
.evolution-card h3 {
  margin: 18px 0 10px;
  color: var(--ink);
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.32;
}

.about-brand-page .about-section-head h2 {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.12;
}

.about-workflow-section .about-section-head {
  max-width: 960px;
}

.about-workflow-section .about-section-head h2 {
  font-size: clamp(30px, 3.35vw, 42px);
}

@media (min-width: 980px) {
  .about-evolution-section .about-section-head {
    max-width: 960px;
  }

  .about-evolution-section .about-section-head h2 {
    font-size: clamp(30px, 3.15vw, 42px);
    white-space: normal;
  }

  .about-final-card h2 {
    max-width: 980px;
    font-size: clamp(30px, 3.35vw, 44px);
    white-space: normal;
  }
}

.about-offering-card p,
.proof-card p,
.evolution-card p,
.workflow-step p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.72;
}

.evolution-card {
  min-height: 220px;
  padding: clamp(24px, 3vw, 30px);
}


.workflow-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 1.7vw, 18px);
}

.workflow-step {
  display: flex;
  position: relative;
  min-height: 214px;
  flex-direction: column;
  padding: clamp(20px, 2.3vw, 24px);
}

.workflow-step-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.workflow-step strong {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.32;
}

.about-final-card .eyebrow {
  margin-bottom: 12px;
}

.about-final-card .about-actions {
  justify-content: center;
}

html[data-theme="dark"] .about-offering-card,
html[data-theme="dark"] .proof-card,
html[data-theme="dark"] .evolution-card,
html[data-theme="dark"] .workflow-step,
html[data-theme="dark"] .about-final-card {
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border-color: color-mix(in srgb, #ffffff 16%, var(--line));
  box-shadow: none;
}

@media (max-width: 1100px) {
  .workflow-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .about-section-inner {
    width: calc(100% - 40px);
  }
}

@media (max-width: 980px) {
  .about-hero-inner {
    grid-template-columns: 1fr;
  }

  .about-offering-grid,
  .evolution-grid {
    grid-template-columns: 1fr;
  }

  .resource-info-top {
    flex-wrap: wrap;
  }

  .resource-limit-options {
    grid-template-columns: 1fr;
  }

  .resource-picker-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .about-brand-page,
  .about-brand-hero,
  .about-hero-inner,
  .about-hero-copy {
    max-width: 100%;
  }

  .about-section-inner {
    width: calc(100% - 32px);
  }

  .about-brand-hero {
    padding: calc(var(--site-header-space) + 30px) 18px 34px;
    text-align: center;
  }

  .about-brand-hero .about-hero-copy h1,
  .about-brand-hero .lead {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .about-brand-hero .about-hero-copy h1 {
    width: min(320px, 100%);
    max-width: 320px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(28px, 7.8vw, 34px);
    line-height: 1.16;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .about-brand-hero .lead,
  .about-section-head p {
    max-width: 320px;
    margin-right: auto;
    margin-left: auto;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .about-brand-hero .about-actions {
    justify-content: center;
  }

  .about-brand-page .about-section-head h2 {
    width: min(320px, 100%);
    max-width: 320px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(27px, 7.6vw, 34px);
    overflow-wrap: anywhere;
  }

  .about-offering-grid,
  .proof-grid,
  .evolution-grid {
    grid-template-columns: 1fr;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .about-offering-card,
  .proof-card,
  .evolution-card,
  .workflow-step {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .ui-select-menu,
  .ui-date-popover {
    position: fixed;
    top: auto;
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: auto;
    max-height: min(560px, calc(100vh - 28px));
    overflow: auto;
    border-radius: 20px;
  }

  .tts-dock .ui-select.is-open {
    display: grid;
    gap: 6px;
  }

  .tts-dock .ui-select-menu {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 1;
    width: 100%;
    min-width: 0;
    max-height: min(190px, calc(100vh - 260px));
    border-radius: 16px;
  }

  .account-shell.account-tab-profile .ui-select.is-open,
  .account-shell.account-tab-profile .ui-date.is-open {
    z-index: 145;
  }

  .account-shell.account-tab-profile .ui-select-menu,
  .account-shell.account-tab-profile .ui-date-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: auto;
    bottom: auto;
    left: 0;
    z-index: 145;
    width: min(340px, calc(100vw - 36px));
    max-height: min(440px, calc(100dvh - 120px));
    overflow: auto;
    border-radius: 16px;
  }

  .account-shell.account-tab-profile .ui-select-menu {
    width: max(100%, min(260px, calc(100vw - 36px)));
    max-height: min(280px, calc(100dvh - 120px));
  }

  .ui-pagination,
  .admin-main .ui-pagination,
  .account-panel .ui-pagination {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 12px;
  }

  .ui-pagination-status,
  .ui-pagination-pages,
  .ui-page-size {
    justify-content: center;
  }

  .ui-pagination-pages {
    flex-wrap: wrap;
  }

.ui-page-size label {
  justify-content: center;
}
}

@media (max-width: 1200px) {
  .analytics-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-summary-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .analytics-chart-grid,
  .analytics-table-grid,
  .analytics-summary-grid {
    grid-template-columns: 1fr;
  }

  .analytics-progress-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 860px) {

  html,
  body {
    background: var(--page);
  }

  :root {
    --site-header-top: 0px;
    --site-header-safe-top: env(safe-area-inset-top, 0px);
    --site-header-content-height: 54px;
    --site-header-height: calc(var(--site-header-content-height) + var(--site-header-safe-top));
    --site-header-space: var(--site-header-height);
    --filter-sticky-top: var(--site-header-height);
    --mobile-tabbar-height: 68px;
  }

  body:not(.admin-page) {
    padding-bottom: calc(var(--mobile-tabbar-height) + env(safe-area-inset-bottom, 0px));
  }

  main {
    width: calc(100% - 24px);
  }

  .hero-mascot,
  .hero-mascot-home {
    width: clamp(58px, 17vw, 68px);
    margin-bottom: 10px;
  }

  .analytics-range-bar {
    gap: 8px;
  }

  .analytics-range-shell {
    margin-top: 16px;
  }

  .analytics-range-bar.is-fixed {
    padding-right: 18px;
    padding-left: 18px;
  }

  .analytics-range-links {
    width: 100%;
  }

  .analytics-range-form {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-range-controls {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .analytics-range-mode-actions {
    width: 100%;
  }

  .analytics-range-link {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }

  .analytics-card .admin-card-head.compact {
    align-items: stretch;
    flex-direction: column;
  }

  .analytics-chart-actions {
    align-self: flex-start;
    flex-wrap: wrap;
    border-radius: 16px;
  }

  .analytics-chart {
    min-height: 280px;
  }

  .analytics-chart-ring {
    min-height: 260px;
  }

  .analytics-mini-metrics {
    grid-template-columns: 1fr;
  }

  .analytics-fact-grid {
    grid-template-columns: 1fr;
  }

  .account-shell {
    width: calc(100% - 24px);
    padding-bottom: 34px;
  }

  .account-shell .account-hero,
  .account-shell .account-menu {
    display: none !important;
  }

  .account-shell .account-layout {
    display: block;
    min-height: 0;
    margin-top: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .account-shell .account-panel {
    padding: 0 0 28px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .account-shell .account-panel-head {
    margin-bottom: 10px;
  }

  .account-shell .account-panel-head h2 {
    display: none;
  }

  .account-shell .account-panel-head p {
    margin-top: 0;
    font-size: 13px;
    line-height: 1.55;
  }

  .account-shell.account-tab-profile,
  .account-shell.account-tab-email,
  .account-shell.account-tab-tts,
  .account-shell.account-tab-password {
    padding-top: 0;
  }

  .account-shell.account-tab-profile .account-panel,
  .account-shell.account-tab-email .account-panel,
  .account-shell.account-tab-tts .account-panel,
  .account-shell.account-tab-password .account-panel {
    padding-top: 12px;
  }

  .account-shell.account-tab-profile.account-mode-edit {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .account-shell.account-tab-profile.account-mode-edit .account-panel-head,
  .account-shell.account-tab-email .account-panel-head {
    display: none;
  }

  .account-shell.account-tab-password .account-panel-head {
    margin-bottom: 8px;
  }

  .account-shell .settings-form {
    gap: 12px;
    margin-top: 0;
  }

  .account-shell .settings-form label {
    gap: 6px;
  }

  .account-shell .account-phone-grid,
  .account-shell .account-social-grid {
    grid-template-columns: 1fr;
  }

  .account-shell .favorite-metrics {
    display: none;
  }

  .account-shell .account-filter {
    grid-template-columns: 1fr;
    margin: 14px 0 18px;
  }

  .account-shell .account-filter.account-filter-desktop-only {
    display: none;
  }

  .account-shell .account-favorite-mobile-filter-shell {
    display: block;
    margin-top: -4px;
    margin-bottom: 16px;
  }

  .account-shell .community-tabs-shell.account-favorite-mobile-filter-shell {
    margin-bottom: 16px;
  }

  .account-shell .account-favorite-mobile-filter-shell + .favorite-metrics {
    margin-top: 2px;
  }

  .account-shell .account-favorite-mobile-filter-panel .tag-filter-groups {
    max-height: min(52dvh, 360px);
  }

  .account-shell .account-list-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px;
    font-size: 13px;
  }

  .account-shell.account-tab-articles .account-list-head,
  .account-shell.account-tab-news .account-list-head {
    display: none;
  }

  .account-shell .account-list-head strong {
    flex: 0 0 auto;
    font-size: 17px;
  }

  .account-shell .account-list-head span {
    flex: 0 0 auto;
    color: var(--ink-subtle);
    white-space: nowrap;
  }

  .account-shell.account-tab-articles .account-favorite-list,
  .account-shell.account-tab-news .account-favorite-list {
    gap: 8px;
    margin-top: -20px;
  }

  .account-shell.account-tab-articles .account-favorite-item,
  .account-shell.account-tab-news .account-favorite-item {
    position: relative;
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    min-height: 84px;
    overflow: visible;
    border-radius: 16px;
    box-shadow: none;
    transform: none;
  }

  .account-shell.account-tab-articles .account-favorite-item:has(.account-favorite-menu.is-open),
  .account-shell.account-tab-news .account-favorite-item:has(.account-favorite-menu.is-open) {
    z-index: 22;
  }

  .account-shell.account-tab-articles .account-favorite-item:hover,
  .account-shell.account-tab-news .account-favorite-item:hover,
  .account-shell.account-tab-articles .account-favorite-item:has(.account-favorite-title:focus-visible),
  .account-shell.account-tab-news .account-favorite-item:has(.account-favorite-title:focus-visible) {
    box-shadow: none;
    transform: none;
  }

  .account-shell.account-tab-articles .account-favorite-cover,
  .account-shell.account-tab-news .account-favorite-cover {
    width: 88px;
    height: 84px;
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 16px 0 0 16px;
  }

  .account-shell.account-tab-articles .account-favorite-cover::after,
  .account-shell.account-tab-news .account-favorite-cover::after {
    width: 36px;
    height: 28px;
    border-radius: 10px;
  }

  .account-shell.account-tab-articles .account-favorite-cover .cover-category-badge,
  .account-shell.account-tab-news .account-favorite-cover .cover-category-badge {
    display: none;
  }

  .account-shell.account-tab-articles .account-favorite-list {
    gap: 10px;
    margin-top: -8px;
  }

  .account-shell.account-tab-articles .account-favorite-item {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 96px;
    align-items: stretch;
    border-color: color-mix(in srgb, var(--line) 86%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--surface) 98%, transparent);
  }

  .account-shell.account-tab-articles .account-favorite-cover {
    width: 112px;
    height: auto;
    min-height: 96px;
    align-self: stretch;
    border-radius: 12px 0 0 12px;
  }

  .account-shell.account-tab-articles .account-favorite-content {
    position: relative;
    justify-content: center;
    gap: 6px;
    min-height: 96px;
    padding: 12px 38px 12px 12px;
  }

  .account-shell.account-tab-articles .account-favorite-head {
    display: block;
    min-width: 0;
  }

  .account-shell.account-tab-articles .account-favorite-title-row {
    display: block;
    min-width: 0;
  }

  .account-shell.account-tab-articles .account-favorite-title {
    font-size: 15px;
    font-weight: 750;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }

  .account-shell.account-tab-articles .account-favorite-content p {
    font-size: 13px;
    line-height: 1.48;
    -webkit-line-clamp: 2;
  }

  .account-shell.account-tab-articles .account-favorite-title-row .content-pro-badge,
  .account-shell.account-tab-articles .account-favorite-inline-category,
  .account-shell.account-tab-articles .account-favorite-tags,
  .account-shell.account-tab-articles .account-favorite-times,
  .account-shell.account-tab-articles .account-favorite-meta {
    display: none;
  }

  .account-shell.account-tab-articles .account-favorite-menu {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 4;
  }

  .account-shell.account-tab-articles .account-favorite-menu-toggle {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ink-subtle);
  }

  .account-shell.account-tab-articles .account-favorite-menu-toggle:hover,
  .account-shell.account-tab-articles .account-favorite-menu-toggle:focus-visible,
  .account-shell.account-tab-articles .account-favorite-menu.is-open .account-favorite-menu-toggle {
    border-color: transparent;
    background: transparent;
    color: var(--blue);
    outline: none;
  }

  .account-shell.account-tab-articles .account-favorite-menu-toggle svg {
    width: 18px;
    height: 18px;
  }

  .account-shell.account-tab-articles .account-favorite-menu-panel {
    top: calc(100% + 4px);
    right: 0;
  }

  .account-shell.account-tab-news .account-favorite-list {
    gap: 10px;
    margin-top: -8px;
  }

  .account-shell.account-tab-news .account-favorite-item {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 96px;
    align-items: stretch;
    border-color: color-mix(in srgb, var(--line) 86%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--surface) 98%, transparent);
  }

  .account-shell.account-tab-news .account-favorite-cover {
    width: 112px;
    height: auto;
    min-height: 96px;
    align-self: stretch;
    border-radius: 12px 0 0 12px;
  }

  .account-shell.account-tab-news .account-favorite-content {
    position: relative;
    justify-content: center;
    gap: 6px;
    min-height: 96px;
    padding: 12px 38px 12px 12px;
  }

  .account-shell.account-tab-news .account-favorite-head,
  .account-shell.account-tab-news .account-favorite-title-row {
    display: block;
    min-width: 0;
  }

  .account-shell.account-tab-news .account-favorite-title {
    font-size: 15px;
    font-weight: 750;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }

  .account-shell.account-tab-news .account-favorite-content p {
    font-size: 13px;
    line-height: 1.48;
    -webkit-line-clamp: 2;
  }

  .account-shell.account-tab-news .account-favorite-inline-category,
  .account-shell.account-tab-news .account-favorite-tags,
  .account-shell.account-tab-news .account-favorite-times,
  .account-shell.account-tab-news .account-favorite-meta {
    display: none;
  }

  .account-shell.account-tab-news .account-favorite-menu {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 4;
  }

  .account-shell.account-tab-news .account-favorite-menu-toggle {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ink-subtle);
  }

  .account-shell.account-tab-news .account-favorite-menu-toggle:hover,
  .account-shell.account-tab-news .account-favorite-menu-toggle:focus-visible,
  .account-shell.account-tab-news .account-favorite-menu.is-open .account-favorite-menu-toggle {
    border-color: transparent;
    background: transparent;
    color: var(--blue);
    outline: none;
  }

  .account-shell.account-tab-news .account-favorite-menu-toggle svg {
    width: 18px;
    height: 18px;
  }

  .account-shell.account-tab-news .account-favorite-menu-panel {
    top: calc(100% + 4px);
    right: 0;
  }

  .account-shell.account-tab-profile,
  .account-shell.account-tab-password {
    width: 100%;
    max-width: none;
    padding: 12px 14px 34px;
  }

  .account-shell.account-tab-profile .account-panel,
  .account-shell.account-tab-password .account-panel {
    padding: 0 0 28px;
  }

  .account-shell.account-tab-profile .account-panel-head,
  .account-shell.account-tab-password .account-panel-head {
    margin: 0 0 14px;
  }

  .account-shell.account-tab-profile .account-panel-head-row,
  .account-shell.account-tab-password .account-panel-head-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }

  .account-shell.account-tab-profile .account-panel-head p,
  .account-shell.account-tab-password .account-panel-head p {
    margin: 0;
    color: var(--ink-subtle);
    font-size: 13px;
    line-height: 1.6;
  }

  .account-shell.account-tab-profile.account-mode-edit .account-panel-head {
    display: none;
  }

  .account-shell.account-tab-profile .account-panel-actions,
  .account-shell.account-tab-password .account-panel-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
  }

  .account-shell.account-tab-password:not(.account-mode-view) .account-panel-actions {
    display: none;
  }

  .account-shell.account-tab-profile .account-panel-actions .button,
  .account-shell.account-tab-password .account-panel-actions .button {
    min-height: 38px;
    border-radius: 14px;
    padding: 0 14px;
    font-size: 14px;
    white-space: nowrap;
  }

  .account-shell.account-tab-profile .account-overview-grid,
  .account-shell.account-tab-password .account-security-grid,
  .account-shell.account-tab-password .account-password-flow-grid {
    grid-template-columns: 1fr;
    max-width: none;
    gap: 12px;
  }

  .account-shell.account-tab-profile .account-overview-card,
  .account-shell.account-tab-password .account-overview-card {
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    border-radius: 20px;
    background: color-mix(in srgb, var(--surface) 94%, var(--surface-soft));
    padding: 16px;
    box-shadow: none;
  }

  .account-shell.account-tab-profile .account-overview-card h3,
  .account-shell.account-tab-password .account-overview-card h3 {
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 800;
  }

  .account-shell.account-tab-profile .account-info-list {
    gap: 0;
  }

  .account-shell.account-tab-profile .account-info-list div {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  }

  .account-shell.account-tab-profile .account-info-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .account-shell.account-tab-profile .account-info-list dt {
    color: var(--ink-subtle);
    font-size: 13px;
    font-weight: 700;
  }

  .account-shell.account-tab-profile .account-info-list dd {
    overflow-wrap: anywhere;
    text-align: right;
    font-size: 14px;
    line-height: 1.5;
  }

  .account-shell.account-tab-profile .account-overview-empty,
  .account-shell.account-tab-password .account-security-card p,
  .account-shell.account-tab-password .account-password-option-card p,
  .account-shell.account-tab-password .account-password-verify-card p {
    color: var(--ink-muted);
    font-size: 13px;
    line-height: 1.65;
  }

  .account-shell.account-tab-profile.account-mode-edit {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .account-shell.account-tab-profile .account-profile-form,
  .account-shell.account-tab-password .account-settings-form.narrow {
    max-width: none;
    gap: 14px;
  }

  .account-shell.account-tab-profile .account-profile-form .two-cols,
  .account-shell.account-tab-profile .account-profile-form .account-phone-grid,
  .account-shell.account-tab-profile .account-profile-form .account-social-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .account-shell.account-tab-profile .user-form-section {
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    border-radius: 20px;
    background: color-mix(in srgb, var(--surface) 94%, var(--surface-soft));
    padding: 48px 14px 14px;
  }

  .account-shell.account-tab-profile .user-form-section-label {
    border-radius: 19px 0 14px 0;
    font-size: 13px;
    padding: 11px 14px;
  }

  .account-shell.account-tab-profile .settings-form input,
  .account-shell.account-tab-profile .settings-form select,
  .account-shell.account-tab-password .settings-form input,
  .account-shell.account-tab-password .settings-form select {
    min-height: 48px;
    border-radius: 14px;
    font-size: 15px;
  }

  .account-shell.account-tab-profile .form-actions {
    display: none;
  }

  .account-shell.account-tab-profile.account-mode-edit .account-mobile-save-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 72;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 10px;
    border-top: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    box-shadow: 0 -10px 28px rgba(28, 43, 72, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 10px max(14px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
  }

  .account-shell.account-tab-profile.account-mode-edit .account-mobile-save-bar .button {
    min-height: 46px;
    border-radius: 16px;
    padding: 0 12px;
  }

  .account-shell.account-tab-password .account-security-card {
    min-height: auto;
    display: grid;
    gap: 8px;
  }

  .account-shell.account-tab-password .account-security-card strong {
    font-size: 20px;
    line-height: 1.25;
  }

  .account-shell.account-tab-password .account-password-option-card {
    min-height: auto;
    gap: 8px;
    padding: 16px;
  }

  .account-shell.account-tab-password .account-password-option-card strong {
    font-size: 16px;
  }

  .account-shell.account-tab-password .account-password-option-card span {
    overflow-wrap: anywhere;
    color: var(--blue);
    font-size: 12px;
  }

  .account-shell.account-tab-password .account-password-option-card:hover {
    transform: none;
    box-shadow: none;
  }

  .account-shell.account-tab-password .account-password-verify-card {
    max-width: none;
    margin-bottom: 12px;
  }

  .account-shell.account-tab-password .account-password-verify-meta {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
  }

  .account-shell.account-tab-password .account-password-verify-meta span {
    overflow-wrap: anywhere;
    text-align: right;
  }

  .account-shell.account-tab-password .account-settings-form.narrow .button,
  .account-shell.account-tab-password .account-password-code-request .button {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
  }

  html[data-theme="dark"] .account-shell.account-tab-profile .account-overview-card,
  html[data-theme="dark"] .account-shell.account-tab-password .account-overview-card,
  html[data-theme="dark"] .account-shell.account-tab-profile .user-form-section {
    background: color-mix(in srgb, var(--surface) 92%, #111827);
  }
}

.admin-message-thumb.is-announcement {
  background: color-mix(in srgb, var(--orange) 12%, var(--surface));
}

.admin-message-thumb.is-system {
  background: color-mix(in srgb, var(--blue) 12%, var(--surface));
}

.admin-message-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--blue) 72%, var(--ink));
  font-size: 22px;
  font-weight: 800;
}

.admin-message-thumb.is-announcement .admin-message-icon {
  color: var(--orange);
}

.admin-message-target-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 14px 16px;
}

.admin-message-target-summary > div {
  display: grid;
  gap: 4px;
}

.admin-message-target-summary span {
  color: var(--ink-muted);
  font-size: 13px;
}

.admin-message-target-summary.is-disabled {
  opacity: .58;
}

.message-recipient-modal {
  width: min(1040px, 100%);
}

.message-recipient-body {
  display: grid;
  min-height: 0;
  gap: 14px;
  overflow: hidden;
  padding: 18px 22px;
}

.message-recipient-filter {
  margin: 0;
}

.message-recipient-table-wrap {
  min-height: 360px;
  overflow: auto;
}

.message-recipient-table th:first-child,
.message-recipient-table td:first-child {
  width: 52px;
}

.message-recipient-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--ink-muted);
  font-size: 13px;
}

.admin-message-detail-cover {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.admin-message-detail-cover img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.admin-message-detail-summary {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.7;
}

.admin-message-markdown {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--ink);
  font: inherit;
  line-height: 1.75;
  padding: 18px;
}
.account-menu a {
  position: relative;
}

.account-menu-count {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.header-avatar-link {
  position: relative;
}

.account-unread-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: #ef4444;
}

.account-message-filter {
  grid-template-columns: minmax(220px, 1fr) 118px 118px 72px 72px;
  align-items: center;
  margin-top: 0;
  margin-bottom: 16px;
}

.account-message-filter input[type="search"] {
  min-width: 0;
}

.account-message-filter .button {
  justify-content: center;
  min-width: 0;
  padding-inline: 14px;
  white-space: nowrap;
}

.account-message-list-head {
  margin-top: 0;
}

.account-message-list-head > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 10px;
}

.account-message-list {
  display: grid;
  gap: 10px;
}

.account-message-item {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr) 190px;
  min-width: 0;
  gap: 14px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: none;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.account-message-item:hover,
.account-message-item:focus-visible {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
  outline: none;
}

.account-message-item.is-unread {
  border-color: color-mix(in srgb, var(--blue) 30%, var(--line));
}

.account-message-cover {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  align-self: center;
  place-items: center;
  overflow: hidden;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(135deg, rgba(58, 120, 246, 0.16), rgba(20, 184, 166, 0.14));
  color: var(--blue);
  font-size: 24px;
  font-weight: 800;
}

.account-message-cover.is-system {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(14, 165, 233, 0.16));
}

.account-message-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-message-main {
  display: flex;
  min-width: 0;
  padding: 14px 0;
}

.account-message-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.account-message-title-row,
.account-message-modal-title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.account-message-title-row {
  max-width: 100%;
}

.account-message-modal-title-row {
  align-items: flex-start;
}

.account-message-type {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  background: rgba(58, 120, 246, 0.08);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 5px 9px;
}

.account-message-title {
  display: -webkit-box;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.account-message-copy p {
  display: -webkit-box;
  overflow: hidden;
  max-width: 560px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.account-message-side {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding: 14px 14px 14px 0;
  text-align: right;
}

.account-message-side time {
  color: var(--ink-subtle);
  font-size: 12px;
  white-space: nowrap;
}

.account-message-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.account-message-actions form {
  margin: 0;
}

.account-message-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.42);
}

.account-message-modal-backdrop[hidden] {
  display: none;
}

.account-message-modal-card {
  display: flex;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
  padding: 0;
}

.account-message-modal-card:focus {
  outline: none;
}

.account-message-modal-head {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 22px 22px 14px;
}

.account-message-modal-head h3 {
  display: -webkit-box;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.account-message-modal-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.account-message-modal-head p,
.account-message-modal-summary {
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.6;
}

.account-message-modal-summary {
  margin: 0 0 14px;
}

.account-message-modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 22px 22px;
  scrollbar-color: color-mix(in srgb, var(--ink-subtle) 46%, transparent) transparent;
  scrollbar-width: thin;
}

.account-message-modal-scroll::-webkit-scrollbar {
  width: 8px;
}

.account-message-modal-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.account-message-modal-scroll::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink-subtle) 42%, transparent);
  background-clip: content-box;
}

.account-message-modal-scroll::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--blue) 54%, transparent);
  background-clip: content-box;
}

.account-message-modal-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.account-message-modal-cover[hidden] {
  display: none;
}

.account-message-modal-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-message-modal-body {
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-subtle);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.account-message-modal-body .markdown-figure {
  margin: 18px 0;
}

.account-message-modal-body .markdown-figure img {
  border-radius: 14px;
}

.account-message-modal-body .account-message-image-frame {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.account-message-modal-body .account-message-image-frame img {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: cover;
  box-shadow: none;
}

@media (max-width: 760px) {
  .account-message-filter {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .account-message-filter input[type="search"] {
    grid-column: 1 / -1;
  }

  .account-message-list-head {
    align-items: center;
  }

  .account-message-list-head > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .account-message-item {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 10px;
    border-radius: 16px;
  }

  .account-message-cover {
    min-height: 0;
  }

  .account-message-main {
    padding: 10px 0;
  }

  .account-message-title-row,
  .account-message-modal-title-row {
    gap: 6px;
  }

  .account-message-modal-title-row {
    flex-wrap: wrap;
  }

  .account-message-side {
    grid-column: 2;
    padding: 0 10px 10px 0;
    align-items: flex-end;
  }

  .account-message-actions {
    flex-wrap: wrap;
  }

  .account-message-modal-backdrop {
    align-items: end;
    padding: 12px;
  }

  .account-message-modal-card {
    max-height: calc(100vh - 24px);
    border-radius: 20px;
  }

  .account-message-modal-head {
    padding: 18px 18px 12px;
  }

  .account-message-modal-scroll {
    padding: 14px 18px 18px;
  }
}
.mobile-account-trigger {
  position: relative;
}

.mobile-account-trigger .account-unread-dot {
  top: 1px;
  right: 1px;
}

.account-filter.account-filter-desktop-only {
  grid-template-columns: minmax(0, 1fr) 180px auto auto;
  align-items: center;
  margin-top: 0;
  margin-bottom: 16px;
}

.account-filter.account-message-filter.account-filter-desktop-only {
  grid-template-columns: minmax(220px, 1fr) 118px 118px 72px 72px;
}

.account-message-mobile-filter-shell {
  display: none;
}

.account-message-lazy-list-wrap .lazy-load-footer {
  margin-top: 16px;
}

@media (max-width: 860px) {

  .account-shell.account-tab-messages .account-message-mobile-filter-shell {
    display: block;
    margin-top: -4px;
    margin-bottom: 6px;
  }

  .account-shell.account-tab-messages .account-message-filter.account-filter-desktop-only {
    display: none;
  }

  .account-shell.account-tab-messages .account-message-mobile-filter-panel .news-mobile-filter-groups {
    max-height: min(58dvh, 430px);
  }

  .account-shell.account-tab-messages .account-message-filter-groups {
    gap: 18px;
  }

  .account-shell.account-tab-messages .account-message-list-head {
    display: none;
  }

  .account-shell.account-tab-messages .account-message-list-head > div {
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .account-shell.account-tab-messages .account-message-list-head strong {
    font-size: 16px;
  }

  .account-shell.account-tab-messages .account-message-list-head span {
    font-size: 12px;
  }

  .account-shell.account-tab-messages .account-message-list-head .button {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .account-shell.account-tab-messages .account-message-list-head [data-message-read-all] {
    display: none;
  }
  .account-shell.account-tab-messages .account-message-list {
    gap: 10px;
    margin-top: -8px;
  }

  /* Keep account task lists close to the mobile search and filter row. */
  .account-shell.account-tab-articles .community-tabs-shell.account-favorite-mobile-filter-shell,
  .account-shell.account-tab-news .community-tabs-shell.account-favorite-mobile-filter-shell,
  .account-shell.account-tab-messages .community-tabs-shell.account-message-mobile-filter-shell {
    margin-bottom: 8px;
  }

  .account-shell.account-tab-articles .account-favorite-list,
  .account-shell.account-tab-news .account-favorite-list,
  .account-shell.account-tab-messages .account-message-list {
    margin-top: 14px;
  }

  .account-shell.account-tab-articles .tutorial-mobile-filter-spacer.is-active,
  .account-shell.account-tab-news .news-mobile-filter-spacer.is-active,
  .account-shell.account-tab-messages .news-mobile-filter-spacer.is-active {
    min-height: 14px;
  }

  .account-shell.account-tab-messages .account-message-item {
    position: relative;
    display: grid;
    grid-template-areas: "cover main";
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: minmax(96px, auto);
    min-height: 96px;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border-color: color-mix(in srgb, var(--line) 86%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--surface) 98%, transparent);
    box-shadow: none;
    transform: none;
  }

  .account-shell.account-tab-messages .account-message-item:hover,
  .account-shell.account-tab-messages .account-message-item:focus-visible {
    box-shadow: none;
    transform: none;
  }

  .account-shell.account-tab-messages .account-message-item.is-unread::after {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border: 2px solid var(--surface);
    border-radius: 999px;
    background: #ef4444;
    content: "";
  }

  .account-shell.account-tab-messages .account-message-cover {
    grid-area: cover;
    width: 112px;
    height: auto;
    aspect-ratio: auto;
    min-height: 96px;
    align-self: stretch;
    border-radius: 12px 0 0 12px;
  }

  .account-shell.account-tab-messages .account-message-cover img {
    display: block;
  }

  .account-shell.account-tab-messages .message-default-icon {
    width: 25px;
    height: 25px;
  }

  .account-shell.account-tab-messages .account-message-main {
    grid-area: main;
    min-width: 0;
    min-height: 0;
    align-items: center;
    padding: 12px 12px;
  }

  .account-shell.account-tab-messages .account-message-copy {
    width: 100%;
    justify-content: flex-start;
    gap: 4px;
  }

  .account-shell.account-tab-messages .account-message-title-row {
    display: block;
    min-width: 0;
  }

  .account-shell.account-tab-messages .account-message-title {
    flex: 1 1 auto;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }

  .account-shell.account-tab-messages .account-message-type {
    flex: 0 0 auto;
    min-height: 19px;
    padding: 0 7px;
    font-size: 10px;
    font-weight: 700;
  }

  .account-shell.account-tab-messages .account-message-copy p {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.48;
    -webkit-line-clamp: 2;
  }

  .account-shell.account-tab-messages .account-message-type,
  .account-shell.account-tab-messages .account-message-side {
    display: none;
  }

  .account-shell.account-tab-messages .account-message-side {
    grid-area: side;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 10px 9px;
    text-align: left;
  }

  .account-shell.account-tab-messages .account-message-side time {
    min-width: 0;
    overflow: hidden;
    color: var(--ink-subtle);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .account-shell.account-tab-messages .account-message-actions {
    flex: 0 0 auto;
  }

  .account-shell.account-tab-messages .account-message-actions .button {
    min-height: 28px;
    padding: 4px 8px;
    border-radius: 9px;
    font-size: 11px;
  }

  .account-shell.account-tab-messages .account-message-lazy-list-wrap .lazy-load-footer {
    margin-top: 14px;
  }
}


.account-tab-articles .account-list-head,
.account-tab-news .account-list-head {
  margin-top: 0;
}

.message-default-icon,
.admin-message-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.admin-message-icon svg {
  width: 24px;
  height: 24px;
}

.account-message-cover.is-announcement {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(251, 191, 36, 0.12));
  color: color-mix(in srgb, var(--orange) 84%, var(--ink));
}

.account-message-cover.is-system {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(58, 120, 246, 0.14));
  color: color-mix(in srgb, var(--blue) 88%, var(--ink));
}

.admin-message-thumb.is-system .admin-message-icon {
  color: color-mix(in srgb, var(--blue) 82%, var(--ink));
}

@media (max-width: 760px) {
  .account-filter.account-filter-desktop-only {
    display: none;
  }
}


/* Admin skill management */
.admin-skill-filter {
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(128px, .78fr)) auto auto;
}

.admin-skill-table {
  min-width: 1280px;
}

.admin-skill-identity {
  grid-template-columns: 54px minmax(0, 1fr);
}

.admin-skill-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
}

.admin-skill-mark svg {
  width: 22px;
  height: 22px;
}

.admin-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.admin-skill-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid color-mix(in srgb, var(--cyan) 20%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--cyan) 7%, var(--surface));
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
}

.admin-skill-form textarea[name="summary"] {
  min-height: 112px;
}

.admin-skill-form textarea[name="admin_note"] {
  min-height: 132px;
}
.admin-skill-ranking-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 6px 0 16px;
}

.admin-compact-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  min-height: 46px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 96%, var(--surface-soft));
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.admin-compact-check:hover,
.admin-compact-check:focus-within {
  border-color: color-mix(in srgb, var(--blue) 30%, var(--line));
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.07);
}

.admin-compact-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.admin-compact-check span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.admin-compact-check strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.admin-compact-check small {
  color: var(--ink-subtle);
  font-size: 12px;
  line-height: 1.45;
}
@media (max-width: 760px) {
  .admin-skill-ranking-options {
    grid-template-columns: 1fr;
  }
}

.admin-skill-category-editor {
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) 120px auto;
}

.admin-skill-category-table .inline-form {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) 100px auto;
  gap: 8px;
  align-items: center;
}


html[data-theme="dark"] .admin-skill-tags span {
  border-color: color-mix(in srgb, var(--cyan) 28%, #263348);
  background: color-mix(in srgb, var(--cyan) 13%, #111827);
}

/* Frontend skill plaza */
.skills-plaza-hero {
  display: grid;
  justify-items: center;
  width: 100vw;
  margin: calc(-1 * var(--site-header-space)) calc(50% - 50vw) 0;
  padding: calc(var(--site-header-space) + clamp(50px, 6.4vw, 78px)) max(20px, calc((100vw - 1180px) / 2)) clamp(42px, 5vw, 62px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
  background:
    radial-gradient(ellipse 920px 410px at 50% 4%, rgba(37, 99, 235, 0.21), transparent 74%),
    radial-gradient(ellipse 760px 340px at 17% 78%, rgba(8, 145, 178, 0.13), transparent 78%),
    radial-gradient(ellipse 680px 300px at 83% 68%, rgba(22, 163, 74, 0.08), transparent 78%),
    linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--page) 92%, #ffffff) 62%, var(--page) 100%);
  text-align: center;
}

.skills-plaza-mascot {
  width: clamp(112px, 10vw, 132px);
  margin-bottom: 18px;
}

.skills-plaza-hero h1 {
  width: min(760px, 100%);
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 5.2vw, 70px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

.skills-plaza-hero .lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--ink-muted);
  font-size: 17px;
  line-height: 1.85;
}

.skills-plaza-search {
  width: min(680px, 100%);
  margin-top: 28px;
  box-shadow: 0 18px 42px rgba(28, 43, 72, 0.09);
}

.skills-showcase-section,
.skills-hot-heading,
.skills-list-section {
  width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  padding-right: max(20px, calc((100vw - 1180px) / 2));
  padding-left: max(20px, calc((100vw - 1180px) / 2));
}

.skills-showcase-section {
  margin-top: clamp(42px, 6vw, 72px);
}

.skills-section-head {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}

.skills-section-head > div {
  display: grid;
  justify-items: center;
  min-width: 0;
}

.skills-section-head span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.skills-section-head h2 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
}

.skills-section-head p {
  max-width: 660px;
  margin: 8px auto 0;
  color: var(--ink-muted);
  line-height: 1.7;
}

.skills-section-head > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.skills-section-head > a:hover,
.skills-section-head > a:focus-visible {
  border-color: color-mix(in srgb, var(--blue) 28%, var(--line));
  color: var(--blue);
}

.skills-ranking-layout {
  --skills-ranking-row-height: 78px;
  --skills-ranking-visible-rows: 10;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 22px 58px rgba(28, 43, 72, 0.09);
}

.skills-ranking-window-header {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 98%, #eef4ff), color-mix(in srgb, var(--surface) 94%, var(--surface-soft)));
  padding: 0 16px;
}

.skills-ranking-window-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.skills-ranking-window-controls span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.skills-ranking-window-controls .is-close {
  background: #ff5f57;
}

.skills-ranking-window-controls .is-minimize {
  background: #ffbd2e;
}

.skills-ranking-window-controls .is-zoom {
  background: #28c840;
}

.skills-ranking-window-title {
  justify-self: center;
  color: var(--ink-subtle);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.skills-ranking-nav {
  position: relative;
  top: auto;
  display: grid;
  align-content: start;
  gap: 0;
  border: 0;
  border-right: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 0;
  padding: 18px;
  background: var(--surface);
  box-shadow: none;
}

.skills-ranking-nav > strong {
  padding: 0 4px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
}

.skills-ranking-nav > div {
  display: grid;
  gap: 6px;
}

.skills-ranking-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  padding: 8px 10px;
  color: var(--ink-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}

.skills-ranking-nav button:hover,
.skills-ranking-nav button:focus-visible,
.skills-ranking-nav button.is-active {
  background: color-mix(in srgb, var(--blue) 9%, var(--surface));
  color: var(--blue);
}

.skills-ranking-nav em {
  font-style: normal;
  color: var(--ink-subtle);
  font-size: 12px;
  font-weight: 700;
}

.skills-ranking-groups {
  box-sizing: border-box;
  min-width: 0;
  height: calc(var(--skills-ranking-row-height) * var(--skills-ranking-visible-rows) + 28px);
  padding: 14px 20px;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 98%, var(--surface-soft));
}

.skills-ranking-group {
  scroll-margin-top: 112px;
}

.skills-ranking-group[hidden] {
  display: none;
}

.skills-ranking-list {
  display: grid;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--blue) 38%, var(--line)) transparent;
}

.skills-ranking-list::-webkit-scrollbar {
  width: 8px;
}
.skills-ranking-list::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 34%, var(--line));
  background-clip: content-box;
}
.skills-ranking-list::-webkit-scrollbar-track {
  background: transparent;
}
.skills-ranking-row {
  display: grid;
  grid-template-columns: 46px 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  height: var(--skills-ranking-row-height);
  min-height: var(--skills-ranking-row-height);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  padding: 0 2px;
  color: inherit;
  text-decoration: none;
  transition: background .16s ease;
}

.skills-ranking-row:last-child {
  border-bottom: 0;
}

.skills-ranking-row:hover,
.skills-ranking-row:focus-visible {
  background: color-mix(in srgb, var(--blue) 5%, transparent);
}

.skills-ranking-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  color: color-mix(in srgb, var(--blue) 84%, var(--ink));
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.skills-ranking-index.is-medal {
  width: 42px;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.skills-ranking-index.is-medal::before,
.skills-ranking-index.is-medal::after {
  display: none;
  content: none;
}

.skills-ranking-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: 1;
}
.skills-ranking-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
}

.skills-ranking-icon svg {
  width: 20px;
  height: 20px;
}

.skills-ranking-main {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.skills-ranking-main strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skills-ranking-main span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.skills-ranking-meta {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.skills-ranking-meta {
  border: 0;
  color: var(--ink-subtle);
}


.skills-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.skills-topic-card {
  display: grid;
  min-height: 190px;
  align-content: start;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 18px;
  padding: 20px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(28, 43, 72, 0.06);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.skills-topic-card:hover,
.skills-topic-card:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--blue) 24%, var(--line));
  box-shadow: 0 20px 44px rgba(28, 43, 72, 0.11);
}

.skills-topic-index {
  width: fit-content;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.skills-topic-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.skills-topic-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.75;
}

.skills-topic-card > span:last-child {
  margin-top: auto;
  color: var(--ink-subtle);
  font-size: 13px;
  font-weight: 700;
}

.skills-hot-heading {
  margin-top: clamp(42px, 6vw, 72px);
}

.skills-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.skills-active-filters span,
.skills-active-filters strong,
.skills-active-filters a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.skills-active-filters span {
  color: var(--ink-subtle);
}

.skills-active-filters strong {
  border: 1px solid color-mix(in srgb, var(--blue) 18%, var(--line));
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
  color: var(--blue);
}

.skills-active-filters a {
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  color: var(--ink-muted);
}

.skills-tabs-shell {
  margin-top: 4px;
  margin-bottom: 24px;
}

.skills-list-section {
  margin-bottom: 88px;
}

.skill-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.skill-card {
  display: flex;
  min-width: 0;
  min-height: 254px;
  flex-direction: column;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 98%, var(--surface-soft));
  box-shadow: 0 14px 34px rgba(28, 43, 72, 0.07);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.skill-card:hover,
.skill-card:focus-within {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--blue) 28%, var(--line-strong));
  background: var(--surface);
  box-shadow: 0 22px 48px rgba(28, 43, 72, 0.12);
}

.skill-card-main {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  color: inherit;
  text-decoration: none;
}

.skill-card-header,
.skill-card-meta,
.skill-tags {
  display: flex;
  align-items: center;
  min-width: 0;
}

.skill-card-header {
  align-items: flex-start;
  gap: 14px;
}

.skill-card-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
}

.skill-card-icon svg {
  width: 23px;
  height: 23px;
}

.skill-card-heading {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.skill-card-meta {
  flex-wrap: wrap;
  gap: 7px;
}

.skill-category,
.skill-source-pill,
.skill-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.skill-category {
  background: color-mix(in srgb, var(--blue) 9%, var(--surface));
  color: var(--blue);
}

.skill-source-pill {
  background: color-mix(in srgb, var(--surface-soft) 72%, var(--surface));
  color: var(--ink-subtle);
}

.skill-source-pill.is-github {
  color: var(--ink-muted);
}

.skill-source-pill.is-official {
  background: color-mix(in srgb, var(--green) 9%, var(--surface));
  color: var(--green);
}
.skill-card-heading strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.skill-card-main .summary {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.skill-card-scenarios {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.skill-card-scenario-label {
  color: var(--ink-subtle);
  font-size: 12px;
  font-weight: 700;
}

.skill-tags {
  flex-wrap: wrap;
  gap: 7px;
}

.skill-tags span {
  border: 0;
  background: color-mix(in srgb, var(--surface-soft) 72%, var(--surface));
  color: var(--ink-muted);
  font-weight: 600;
}

.skill-tags.is-empty span {
  color: var(--ink-subtle);
}


html[data-theme="dark"] .skills-plaza-hero {
  background:
    radial-gradient(ellipse 900px 400px at 50% 10%, rgba(59, 130, 246, 0.22), transparent 72%),
    radial-gradient(ellipse 720px 320px at 18% 78%, rgba(34, 211, 238, 0.12), transparent 76%),
    radial-gradient(ellipse 640px 280px at 82% 68%, rgba(34, 197, 94, 0.08), transparent 75%),
    linear-gradient(180deg, #111827, color-mix(in srgb, var(--surface) 92%, #111827));
}

html[data-theme="dark"] .skills-ranking-layout,
html[data-theme="dark"] .skills-topic-card,
html[data-theme="dark"] .skill-card {
  border-color: color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--surface) 92%, #111827);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .skills-ranking-layout {
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] .skills-ranking-nav,
html[data-theme="dark"] .skills-ranking-groups {
  border-color: color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--surface) 90%, #111827);
}

html[data-theme="dark"] .skills-ranking-window-header {
  border-color: color-mix(in srgb, var(--line) 70%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, #111827), color-mix(in srgb, var(--surface) 88%, #111827));
}

html[data-theme="dark"] .skills-ranking-window-title {
  color: color-mix(in srgb, var(--ink-subtle) 84%, #ffffff);
}

html[data-theme="dark"] .skills-ranking-list {
  background: transparent;
  box-shadow: none;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--blue) 38%, var(--line)) transparent;
}

html[data-theme="dark"] .skills-ranking-nav button:hover,
html[data-theme="dark"] .skills-ranking-nav button:focus-visible,
html[data-theme="dark"] .skills-ranking-nav button.is-active,
html[data-theme="dark"] .skills-ranking-row:hover,
html[data-theme="dark"] .skills-ranking-row:focus-visible,
html[data-theme="dark"] .skill-card:hover,
html[data-theme="dark"] .skill-card:focus-within {
  background: color-mix(in srgb, var(--surface) 96%, #111827);
}

html[data-theme="dark"] .skill-source-pill,
html[data-theme="dark"] .skill-tags span,
html[data-theme="dark"] .skills-ranking-meta {
  border: 0;
  background: color-mix(in srgb, var(--surface) 82%, #111827);
}

@media (max-width: 1080px) {
  .skills-topic-grid,
  .skill-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skills-ranking-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .skills-ranking-groups {
    padding: 14px 18px 0;
  }

  .skills-ranking-row {
    grid-template-columns: 42px 40px minmax(0, 1fr) auto;
  }
}

@media (max-width: 860px) {

  .skills-plaza-hero {
    padding: calc(var(--site-header-space) + 30px) 18px 30px;
  }

  .skills-plaza-mascot {
    width: clamp(58px, 17vw, 68px);
    margin-bottom: 10px;
  }

  .skills-plaza-hero h1 {
    max-width: 320px;
    font-size: 28px;
    line-height: 1.12;
  }

  .skills-plaza-hero .lead {
    max-width: 330px;
    font-size: 14px;
    line-height: 1.65;
  }

  .skills-plaza-search {
    display: none;
  }

  .skills-showcase-section,
  .skills-hot-heading,
  .skills-list-section {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .skills-showcase-section,
  .skills-hot-heading {
    margin-top: 38px;
  }

  .skills-section-head {
    gap: 10px;
    margin-bottom: 18px;
  }

  .skills-section-head h2 {
    font-size: 24px;
  }

  .skills-section-head p {
    font-size: 14px;
  }

  .skills-active-filters {
    justify-content: center;
  }

  .skills-ranking-layout {
    --skills-ranking-row-height: 72px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 0;
    border-radius: 20px;
  }

  .skills-ranking-window-header {
    min-height: 40px;
    padding-inline: 14px;
  }

  .skills-ranking-window-controls {
    gap: 7px;
  }

  .skills-ranking-window-controls span {
    width: 10px;
    height: 10px;
  }

  .skills-ranking-window-title {
    font-size: 11px;
  }

  .skills-ranking-nav {
    position: relative;
    top: auto;
    display: block;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    border-radius: 0;
    padding: 12px;
    background: var(--surface);
    box-shadow: none;
  }

  .skills-ranking-nav > strong {
    display: none;
  }

  .skills-ranking-nav > div {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .skills-ranking-nav > div::-webkit-scrollbar {
    display: none;
  }

  .skills-ranking-nav button {
    flex: 0 0 auto;
    width: auto;
    min-height: 36px;
    border: 0;
    border-radius: 999px;
    background: var(--surface);
    padding: 7px 12px;
  }

  .skills-ranking-groups {
    height: calc(var(--skills-ranking-row-height) * var(--skills-ranking-visible-rows) + 24px);
    padding: 12px 14px;
  }

  .skills-ranking-group {
    scroll-margin-top: 92px;
  }

  .skills-ranking-list {
    border-radius: 0;
  }

  .skills-ranking-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    height: var(--skills-ranking-row-height);
    min-height: var(--skills-ranking-row-height);
    padding: 0;
  }

  .skills-ranking-icon,
  .skills-ranking-meta {
    display: none;
  }

  .skills-ranking-index {
    width: 34px;
    font-size: 15px;
  }

  .skills-ranking-index.is-medal {
    width: 34px;
    font-size: 20px;
  }

  .skills-ranking-medal {
    font-size: inherit;
  }
  .skills-ranking-main strong {
    font-size: 15px;
  }

  .skills-ranking-main span {
    -webkit-line-clamp: 2;
  }

  .skills-topic-grid,
  .skill-card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .skills-topic-card {
    min-height: 0;
    border-radius: 16px;
    padding: 17px;
  }

  .skills-topic-card h3 {
    font-size: 18px;
  }

  .skills-list-section {
    margin-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .skill-card {
    min-height: 0;
    border-radius: 16px;
  }

  .skill-card-main {
    gap: 12px;
    padding: 17px;
  }

  .skill-card-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .skill-card-heading strong {
    font-size: 18px;
  }


}
/* Pro membership page */
.pro-pricing-page {
  display: grid;
  align-items: start;
  width: min(980px, calc(100% - 40px));
  min-height: calc(100vh - var(--site-header-space) - 260px);
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) 0 clamp(44px, 7vw, 76px);
}

.pro-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.pro-pricing-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 560px;
  padding: 34px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 22px 60px rgba(28, 43, 72, .09);
}

.pro-pricing-card.is-pro {
  border-color: color-mix(in srgb, var(--blue) 48%, var(--line));
  box-shadow: 0 26px 70px rgba(37, 99, 235, .14);
}

.pro-pricing-head {
  display: grid;
  gap: 12px;
}

.pro-plan-kicker {
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 7%, var(--surface));
  color: color-mix(in srgb, var(--blue) 82%, var(--ink));
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.pro-pricing-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}

.pro-pricing-head p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.75;
}

.pro-pricing-price {
  display: grid;
  gap: 4px;
  padding: 18px 0 4px;
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.pro-pricing-price strong {
  color: var(--ink);
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 700;
  line-height: 1.12;
}

.pro-pricing-price span {
  color: var(--ink-subtle);
  font-size: 14px;
  line-height: 1.5;
}

.pro-benefit-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pro-benefit-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-muted);
  line-height: 1.7;
}

.pro-benefit-list li::before {
  content: '';
  position: absolute;
  top: .72em;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 12%, transparent);
}

.pro-plan-action {
  align-self: stretch;
  justify-self: stretch;
  margin-top: auto;
}

.pro-plan-action:disabled,
.pro-plan-action[aria-disabled='true'] {
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--surface-soft) 68%, var(--surface));
  color: var(--ink-subtle);
  cursor: not-allowed;
  opacity: 1;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

html[data-theme="dark"] .pro-pricing-card {
  border-color: color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--surface) 92%, #111827);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .pro-pricing-card.is-pro {
  border-color: color-mix(in srgb, var(--blue) 42%, var(--line));
  box-shadow: 0 26px 76px rgba(37, 99, 235, .2);
}

@media (max-width: 820px) {
  .pro-pricing-page {
    width: min(100% - 24px, 520px);
    padding: 28px 0 calc(92px + env(safe-area-inset-bottom));
  }

  .pro-pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pro-pricing-card {
    min-height: 0;
    padding: 24px;
    border-radius: 22px;
  }
}
.skills-section-head.is-centered {
  justify-content: center;
  text-align: center;
}

.skills-section-head.is-centered > div {
  max-width: 720px;
}

.skills-topic-article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.skills-topic-tutorial-card {
  min-height: 100%;
}

.skills-topic-tutorial-card .tutorial-card-main {
  min-height: 0;
}

.skills-topic-more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.admin-featured-cell {
  min-width: 132px;
}

.admin-featured-cell .admin-featured-control + .admin-featured-control {
  margin-top: 8px;
}


@media (max-width: 1080px) {
  .skills-topic-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .skills-topic-article-grid {
    grid-template-columns: 1fr;
  }
}
.skill-emoji-icon {
  color: inherit;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.skill-emoji-char {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  font-size: 1.16em;
  line-height: 1;
}

.skills-ranking-icon .skill-emoji-char {
  font-size: 20px;
}

.skill-card-icon .skill-emoji-char {
  font-size: 24px;
}

.admin-skill-mark .skill-emoji-char {
  font-size: 21px;
}

.admin-skill-emoji-field {
  display: grid;
  gap: 12px;
}

.admin-skill-emoji-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-skill-emoji-control input {
  max-width: 132px;
  text-align: center;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 24px;
  line-height: 1;
}

.admin-skill-emoji-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--blue) 7%, var(--surface));
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 25px;
  line-height: 1;
}

.admin-skill-emoji-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-skill-emoji-options button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--surface);
  color: var(--ink-muted);
  cursor: pointer;
}

.admin-skill-emoji-options button:hover,
.admin-skill-emoji-options button:focus-visible {
  border-color: color-mix(in srgb, var(--blue) 32%, var(--line));
  background: color-mix(in srgb, var(--blue) 7%, var(--surface));
  color: var(--blue);
}

.admin-skill-emoji-options button:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.admin-skill-emoji-options button span {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 18px;
  line-height: 1;
}

.admin-skill-emoji-options button em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.admin-field-help {
  margin: -2px 0 0;
  color: var(--ink-subtle);
  font-size: 12px;
  line-height: 1.6;
}

html[data-theme="dark"] .admin-skill-emoji-preview,
html[data-theme="dark"] .admin-skill-emoji-options button {
  border-color: color-mix(in srgb, var(--line) 64%, transparent);
  background: color-mix(in srgb, var(--surface) 88%, #111827);
}

/* Mobile app interaction guard */
@media (max-width: 860px) {
  :root {
    --site-header-top: 0px;
    --site-header-safe-top: env(safe-area-inset-top, 0px);
    --site-header-content-height: 54px;
    --site-header-height: calc(var(--site-header-content-height) + var(--site-header-safe-top));
    --site-header-space: var(--site-header-height);
    --filter-sticky-top: var(--site-header-height);
    --mobile-tabbar-height: 68px;
  }

  body:not(.admin-page):not(.admin-auth-page) {
    padding-bottom: calc(var(--mobile-tabbar-height) + env(safe-area-inset-bottom, 0px));
  }

  body:not(.admin-page) .site-footer,
  .auth-page .site-footer {
    display: none !important;
  }

  .tutorial-header .community-hero-search,
  .news-hero-page .community-hero-search {
    display: none !important;
  }

  .site-header {
    min-height: var(--site-header-height);
    border-bottom: 1px solid #e5eaf2;
    background: #ffffff;
    color: #172033;
    box-shadow: 0 8px 22px rgba(28, 43, 72, 0.06);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header-inner {
    display: block;
    width: 100%;
    height: var(--site-header-height);
    padding: 0;
  }

  .site-header .brand,
  .site-header .site-nav,
  .site-header .site-tools {
    display: none !important;
  }

  .mobile-app-actions {
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: minmax(44px, auto) minmax(0, 1fr) minmax(44px, auto);
    align-items: center;
    gap: 6px;
    height: var(--site-header-height);
    padding: var(--site-header-safe-top) max(10px, env(safe-area-inset-right, 0px)) 0 max(10px, env(safe-area-inset-left, 0px));
  }

  .mobile-app-title-wrap {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
  }

  .mobile-app-title {
    overflow: hidden;
    max-width: min(54vw, 240px);
    color: #172033;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-app-trailing {
    display: flex;
    min-width: 44px;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .mobile-brand-mark,
  .mobile-back-link,
  .mobile-outline-trigger,
  .mobile-detail-more-trigger,
  .mobile-account-trigger,
  .mobile-action-placeholder {
    display: inline-flex;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  .mobile-brand-mark {
    border: 0;
    background: transparent;
  }

  .mobile-brand-mark .site-logo-image {
    width: 38px;
    height: 38px;
  }

  .mobile-back-link,
  .mobile-outline-trigger,
  .mobile-detail-more-trigger,
  .mobile-account-trigger {
    border: 1px solid #dfe6f2;
    border-radius: 14px;
    background: #ffffff;
    color: #172033;
    box-shadow: none;
    cursor: pointer;
  }

  .mobile-account-trigger.has-user {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .mobile-account-trigger.has-user:hover,
  .mobile-account-trigger.has-user:focus-visible,
  .mobile-account-trigger.has-user[aria-expanded="true"] {
    background: transparent;
    box-shadow: none;
    outline: none;
  }

  .mobile-back-link svg,
  .mobile-outline-trigger svg,
  .mobile-detail-more-trigger svg,
  .mobile-account-trigger svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-header-avatar,
  .mobile-menu-avatar {
    width: 36px;
    height: 36px;
  }

  .mobile-action-placeholder {
    pointer-events: none;
  }

  .mobile-layer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: block;
    background: rgba(15, 23, 42, 0.42);
  }

  body.is-mobile-account-open .mobile-layer-backdrop {
    background: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .mobile-layer-backdrop[hidden],
  .mobile-menu-panel[hidden] {
    display: none !important;
  }

  .share-popover.is-mobile-share-popover {
    position: fixed;
    top: calc(var(--site-header-height) + 16px);
    right: auto;
    bottom: auto;
    left: 50%;
    z-index: 230;
    width: min(320px, calc(100vw - 24px));
    max-width: none;
    max-height: calc(100dvh - var(--site-header-height) - 32px);
    overflow-x: hidden;
    overflow-y: auto;
    transform: translateX(-50%);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.is-mobile-account-open .site-header,
  body.is-mobile-detail-more-open .site-header {
    z-index: 220;
  }

  body.is-mobile-outline-open .reader-outline {
    z-index: 220;
  }

  .mobile-menu-panel {
    position: fixed;
    top: calc(var(--site-header-height) + 8px);
    right: 12px;
    left: 12px;
    z-index: 230;
    display: grid;
    align-content: start;
    max-height: calc(100dvh - var(--site-header-height) - 24px);
    overflow: auto;
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    border-radius: 22px;
    background: color-mix(in srgb, var(--surface) 98%, transparent);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
    padding: 14px;
  }

  .mobile-account-panel {
    top: calc(var(--site-header-height) + 18px);
    right: max(14px, env(safe-area-inset-right, 0px));
    left: max(14px, env(safe-area-inset-left, 0px));
    max-height: calc(100dvh - var(--site-header-height) - 36px);
    border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
    border-radius: 28px;
    background: color-mix(in srgb, var(--surface) 97%, #f8fbff);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
    gap: 0;
    padding: 18px 16px 16px;
  }

  .mobile-detail-more-panel {
    right: 12px;
    left: auto;
    width: min(232px, calc(100vw - 24px));
    height: auto;
    min-height: 0;
    gap: 4px;
    padding: 8px;
  }

  .mobile-detail-more-panel button,
  .mobile-account-links a,
  .mobile-logout-form button {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    padding: 0 12px;
    text-align: left;
  }

  .mobile-detail-more-panel button {
    justify-content: flex-start;
    min-height: 44px;
    font-weight: 700;
  }

  .mobile-detail-more-panel button svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }

  .mobile-detail-more-panel button:hover,
  .mobile-account-links a:hover,
  .mobile-logout-form button:hover {
    background: color-mix(in srgb, var(--blue) 8%, var(--surface));
    color: var(--blue);
  }

  .mobile-user-card,
  .mobile-login-card,
  .mobile-menu-group {
    display: grid;
    align-items: center;
    gap: 10px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface-soft) 54%, var(--surface));
    padding: 12px;
  }

  .mobile-user-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .mobile-login-card {
    grid-template-columns: 42px minmax(0, 1fr);
    color: inherit;
  }

  .mobile-user-card strong,
  .mobile-login-card strong {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-user-card small,
  .mobile-login-card small {
    display: block;
    overflow: hidden;
    color: var(--ink-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-member-badge {
    border-radius: 999px;
    background: color-mix(in srgb, var(--blue) 9%, var(--surface));
    color: var(--blue);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    padding: 5px 8px;
    white-space: nowrap;
  }

  .mobile-member-badge.is-pro {
    background: color-mix(in srgb, var(--orange) 12%, var(--surface));
    color: var(--orange);
  }

  .mobile-menu-group > span {
    color: var(--ink-subtle);
    font-size: 12px;
    font-weight: 700;
  }

  .mobile-menu-options,
  .mobile-theme-options {
    display: flex;
    gap: 8px;
  }

  .mobile-menu-options button,
  .mobile-theme-options button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-muted);
    padding: 0 12px;
  }

  .mobile-theme-options button {
    width: 38px;
    padding: 0;
  }

  .mobile-account-panel .mobile-menu-group[aria-label="语言切换"] {
    display: none;
  }

  .mobile-account-panel .mobile-user-card,
  .mobile-account-panel .mobile-login-card {
    min-height: 78px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    border-radius: 22px;
    background: color-mix(in srgb, var(--blue) 4%, var(--surface));
    padding: 14px 16px;
  }

  .mobile-account-panel .mobile-login-card {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .mobile-account-panel .mobile-menu-avatar,
  .mobile-account-panel .mobile-login-icon {
    width: 54px;
    height: 54px;
    border: 2px solid color-mix(in srgb, var(--blue) 22%, transparent);
    background: color-mix(in srgb, var(--blue) 6%, var(--surface));
    color: var(--blue);
    font-size: 24px;
    font-weight: 850;
  }

  .mobile-account-panel .mobile-login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
  }

  .mobile-account-panel .mobile-login-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }

  .mobile-account-panel .gender-badge {
    display: none;
  }

  .mobile-account-panel .mobile-user-card strong,
  .mobile-account-panel .mobile-login-card strong {
    color: var(--ink);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0;
  }

  .mobile-account-panel .mobile-user-card small,
  .mobile-account-panel .mobile-login-card small {
    margin-top: 4px;
    color: var(--ink-subtle);
    font-size: 15px;
    font-weight: 500;
  }

  .mobile-account-panel .mobile-member-badge {
    justify-self: end;
    border: 2px solid color-mix(in srgb, var(--blue) 30%, transparent);
    border-radius: 16px;
    background: color-mix(in srgb, var(--blue) 8%, var(--surface));
    color: var(--blue);
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    padding: 9px 14px;
  }

  .mobile-account-panel .mobile-member-badge.is-pro {
    border-color: color-mix(in srgb, var(--blue) 34%, transparent);
    background: color-mix(in srgb, var(--blue) 9%, var(--surface));
    color: var(--blue);
  }

  .mobile-account-panel .mobile-menu-group[aria-label="主题切换"] {
    margin-top: 14px;
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    border-radius: 22px;
    background: color-mix(in srgb, var(--blue) 3%, var(--surface));
    gap: 12px;
    padding: 14px;
  }

  .mobile-account-panel .mobile-menu-group > span {
    color: var(--ink-subtle);
    font-size: 15px;
    font-weight: 800;
  }

  .mobile-account-panel .mobile-theme-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .mobile-account-panel .mobile-theme-options button {
    width: auto;
    min-height: 50px;
    border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
    border-radius: 16px;
    background: var(--surface);
    color: var(--ink-muted);
    padding: 0;
    box-shadow: none;
  }

  .mobile-account-panel .mobile-theme-options button.is-active {
    border-color: color-mix(in srgb, var(--blue) 44%, transparent);
    background: color-mix(in srgb, var(--blue) 10%, var(--surface));
    color: var(--blue);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 22%, transparent);
  }

  .mobile-account-panel .mobile-theme-options .theme-icon {
    width: 24px;
    height: 24px;
  }

  .mobile-account-panel .mobile-account-links {
    display: grid;
    gap: 0;
    margin-top: 16px;
    border-top: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    padding: 12px 0;
  }

  .mobile-account-panel .mobile-account-links a {
    min-height: 48px;
    justify-content: space-between;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    padding: 0 22px;
  }

  .mobile-account-panel .mobile-account-links a:hover,
  .mobile-account-panel .mobile-account-links a:focus-visible {
    background: transparent;
    color: var(--blue);
  }

  .mobile-account-panel .account-menu-count {
    margin-left: 10px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 7px;
  }

  .mobile-account-panel .mobile-logout-form {
    margin-top: 20px;
  }

  .mobile-account-panel .mobile-logout-form button {
    min-height: 50px;
    justify-content: center;
    border-radius: 16px;
    background: color-mix(in srgb, var(--blue) 11%, var(--surface));
    color: color-mix(in srgb, var(--blue) 78%, #334155);
    font-size: 16px;
    font-weight: 700;
    padding: 0 18px;
  }

  .mobile-account-panel .mobile-logout-form button:hover,
  .mobile-account-panel .mobile-logout-form button:focus-visible {
    background: color-mix(in srgb, var(--blue) 16%, var(--surface));
    color: var(--blue);
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(var(--mobile-tabbar-height) + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    box-shadow: 0 -10px 28px rgba(28, 43, 72, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
  }

  .mobile-bottom-nav.is-detail-hidden {
    display: none !important;
  }

  .mobile-bottom-nav a {
    display: flex;
    min-width: 0;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    border-radius: 16px;
    color: var(--ink-subtle);
    font-size: 11px;
    font-weight: 700;
  }

  .mobile-bottom-nav svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-bottom-nav a.is-active {
    background: color-mix(in srgb, var(--blue) 11%, var(--surface));
    color: var(--blue);
  }

  .mobile-reader-toolbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 66;
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: calc(var(--mobile-tabbar-height) + env(safe-area-inset-bottom, 0px));
    padding: 8px max(10px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
    border-top: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    box-shadow: 0 -10px 28px rgba(28, 43, 72, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .mobile-reader-stats,
  .mobile-reader-actions {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
  }

  .mobile-reader-actions {
    justify-content: flex-end;
  }

  .mobile-reader-stat,
  .mobile-reader-tool {
    display: inline-flex;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--ink-muted);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 0 7px;
    white-space: nowrap;
  }

  .mobile-reader-stat svg,
  .mobile-reader-tool svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }

  .mobile-reader-stat strong {
    color: var(--ink);
    font-size: 12px;
  }

  .mobile-reader-stat.stat-action,
  .mobile-reader-tool {
    cursor: pointer;
  }

  .mobile-reader-stat.stat-action:hover,
  .mobile-reader-stat.stat-action:focus-visible,
  .mobile-reader-stat.stat-action.is-active,
  .mobile-reader-tool:hover,
  .mobile-reader-tool:focus-visible {
    border-color: transparent;
    background: transparent;
    color: var(--blue);
    outline: none;
  }

  .mobile-reader-stat.stat-action:hover strong,
  .mobile-reader-stat.stat-action:focus-visible strong,
  .mobile-reader-stat.stat-action.is-active strong {
    color: var(--blue);
  }

  .community-tabs-shell,
  .community-tabs-shell.is-mobile-fixed,
  .community-tabs-shell.is-stuck {
    width: 100vw;
    margin: 0 calc(50% - 50vw) 18px;
    padding: 10px 12px;
  }

  .community-tabs-shell.is-mobile-fixed {
    position: fixed;
    right: 0;
    left: 0;
    z-index: 39;
    margin: 0;
  }

  .community-tabs-shell.is-stuck {
    border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    box-shadow: 0 8px 22px rgba(28, 43, 72, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .community-tabs-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    width: min(100%, 560px);
    margin: 0 auto;
    align-items: center;
  }

  .community-tab-arrow,
  .community-tabs-scroll,
  .community-tabs-search {
    display: none !important;
  }

  .tutorial-mobile-search-filter,
  .news-mobile-search-filter {
    display: flex !important;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 48px;
    border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface) 98%, transparent);
    padding: 4px 6px 4px 16px;
    box-shadow: 0 10px 28px rgba(28, 43, 72, 0.05);
  }

  .tutorial-mobile-search-filter .search-input,
  .news-mobile-search-filter .search-input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    color: var(--ink);
    font-size: 15px;
    box-shadow: none;
    outline: none;
  }

  .tutorial-mobile-search-filter .button,
  .news-mobile-search-filter .button {
    flex: 0 0 auto;
    min-width: 66px;
    min-height: 38px;
    border-radius: 14px;
    padding: 0 14px;
    box-shadow: none;
    white-space: nowrap;
  }

  .tag-filter-trigger,
  .news-date-trigger {
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
    padding: 0;
    box-shadow: none;
    white-space: nowrap;
  }

  .tutorial-tag-filter,
  .news-tabs-actions {
    display: block;
    position: relative;
    min-width: 0;
  }

  .tag-filter-trigger,
  .news-date-trigger {
    border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface) 98%, transparent);
    color: var(--ink);
    padding: 0;
    box-shadow: 0 10px 28px rgba(28, 43, 72, 0.05);
  }

  .tag-filter-trigger .tag-filter-label-desktop,
  .tag-filter-trigger .tag-filter-label-mobile,
  .tag-filter-trigger .tag-filter-label-mobile-short,
  .news-date-trigger .news-date-label-desktop,
  .news-date-trigger .news-date-label-mobile-short,
  .news-date-trigger .news-date-caret {
    display: none !important;
  }

  .tag-filter-trigger svg,
  .news-mobile-filter-icon {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }

  .tag-filter-panel.is-mobile-floating-filter,
  .news-date-popover.is-mobile-floating-filter {
    position: fixed;
    top: 50dvh;
    right: auto;
    bottom: auto;
    left: 50%;
    z-index: 190;
    display: grid;
    width: min(392px, calc(100vw - 24px));
    max-height: min(72dvh, 600px);
    min-height: 0;
    overflow: hidden;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border-radius: 22px;
    padding: 18px 16px 14px;
    box-shadow: 0 24px 70px color-mix(in srgb, var(--ink) 20%, transparent);
    transform: translate(-50%, -50%);
  }

  .tag-filter-panel.is-mobile-floating-filter[hidden],
  .news-date-popover.is-mobile-floating-filter[hidden] {
    display: none !important;
  }

  .tag-filter-head,
  .news-mobile-filter-head,
  .tutorial-filter-category-group,
  .news-mobile-category-filter,
  .news-mobile-filter-group > strong {
    display: block;
  }

  .tag-filter-head,
  .news-mobile-filter-head {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  }

  .tag-filter-groups,
  .news-mobile-filter-groups {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .news-mobile-filter-groups {
    display: grid;
    gap: 18px;
  }

  .tutorial-category-options,
  .news-category-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .tag-filter-option {
    min-height: 38px;
    justify-content: flex-start;
    padding: 0 12px;
    text-align: left;
  }

  .tag-filter-actions,
  .date-popover-actions {
    position: sticky;
    bottom: -18px;
    margin: 16px -18px -18px;
    border-top: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
    background: var(--surface);
    padding: 12px 18px 18px;
  }

  .tag-filter-actions .button,
  .date-popover-actions .button {
    flex: 1 1 0;
  }

  .reader-outline {
    top: 50dvh;
    right: auto;
    bottom: auto;
    left: 50%;
    z-index: 190;
    width: min(430px, calc(100vw - 28px));
    min-width: 0;
    max-width: calc(100vw - 28px);
    max-height: min(76dvh, 640px);
    padding: 0;
    transform: translate(-50%, -50%);
    transition: none;
  }

  .reader-outline-rail,
  .reader-outline:not(.is-open) .reader-outline-rail {
    display: none;
  }

  .reader-outline:not(.is-open) .reader-outline-card {
    display: none;
  }

  .reader-outline.is-open .reader-outline-card,
  .reader-outline.is-collapsed .reader-outline-card {
    transform: none;
  }

  .reader-outline.is-open .reader-outline-card {
    display: grid;
    width: 100%;
    max-height: min(76dvh, 640px);
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    box-shadow: 0 24px 70px color-mix(in srgb, var(--ink) 20%, transparent);
    opacity: 1;
    pointer-events: auto;
    padding: 18px;
    transition: none;
  }

  .reader-outline.is-open .reader-outline-close {
    display: none;
  }

  .reader-main > .content-grid:last-of-type {
    margin-bottom: calc(var(--mobile-tabbar-height) + env(safe-area-inset-bottom, 0px) + 36px);
  }

  .reader-header .article-quick-actions,
  .reader-header .article-engagement > .stat-item,
  .reader-header .article-engagement > .stat-action,
  .reader-header .content-share-wrap {
    display: none;
  }

  .article-published-date {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }

  .tts-dock {
    right: 12px;
    bottom: calc(var(--mobile-detail-toolbar-height, var(--mobile-tabbar-height, 68px)) + env(safe-area-inset-bottom, 0px) + 12px);
    left: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    width: auto;
    gap: 8px;
    padding: 9px 12px;
  }

  .tts-dock-status {
    grid-template-columns: 32px minmax(3.4em, 1fr) 32px;
    gap: 2px;
    font-size: 12px;
  }

  .tts-segment-button,
  .tts-icon-button {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .tts-icon-button {
    flex: 0 0 32px;
  }

  .tts-segment-button svg,
  .tts-icon-button svg {
    width: 16px;
    height: 16px;
  }

  .tts-dock-controls {
    gap: 3px;
  }

  .tts-settings-panel {
    right: 0;
    left: 0;
    z-index: 80;
    width: auto;
    grid-template-columns: 1fr;
    max-height: min(360px, calc(100vh - 190px));
    overflow: visible;
  }

  .skills-ranking-layout {
    border-radius: 20px;
    box-shadow: 0 16px 42px rgba(28, 43, 72, 0.08);
  }

  .skills-ranking-nav > div {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .skills-ranking-nav > div::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 860px) {
  html[data-theme="dark"] .mobile-menu-panel,
  html[data-theme="dark"] .mobile-bottom-nav,
  html[data-theme="dark"] .mobile-reader-toolbar {
    background: color-mix(in srgb, var(--surface) 92%, transparent);
  }

  html[data-theme="dark"] .site-header {
    border-bottom-color: #e5eaf2;
    background: #ffffff;
    color: #172033;
  }

  html[data-theme="dark"] .mobile-account-panel {
    border-color: color-mix(in srgb, var(--line) 64%, transparent);
    background: color-mix(in srgb, var(--surface) 94%, #111827);
  }

  html[data-theme="dark"] .mobile-account-panel .mobile-user-card,
  html[data-theme="dark"] .mobile-account-panel .mobile-login-card,
  html[data-theme="dark"] .mobile-account-panel .mobile-menu-group[aria-label="主题切换"] {
    background: color-mix(in srgb, var(--surface) 92%, #111827);
  }

  html[data-theme="dark"] .mobile-account-panel .mobile-theme-options button {
    background: color-mix(in srgb, var(--surface) 88%, #111827);
  }

  html[data-theme="dark"] .mobile-account-panel .mobile-theme-options button.is-active,
  html[data-theme="dark"] .mobile-account-panel .mobile-logout-form button {
    background: color-mix(in srgb, var(--blue) 18%, var(--surface));
  }
}
/* Password verification choices: shared desktop and mobile account UI. */
.account-password-primary-action {
  display: flex;
  margin-top: 18px;
}

.account-password-primary-action .button {
  min-height: 44px;
}

.account-password-option-card {
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  min-height: 156px;
}

.account-password-option-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
}

.account-password-option-icon img {
  width: 23px;
  height: 23px;
  opacity: .88;
}

.account-password-option-copy {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.account-password-option-copy strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.account-password-option-copy p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.7;
}

.account-password-option-copy > span {
  overflow-wrap: anywhere;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.account-password-option-card.is-disabled .account-password-option-icon {
  background: color-mix(in srgb, var(--line) 46%, var(--surface));
  filter: grayscale(1);
}

@media (max-width: 860px) {
  .account-shell.account-tab-password .account-password-option-card {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 112px;
    gap: 12px;
    padding: 16px;
  }

  .account-shell.account-tab-password .account-password-option-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .account-shell.account-tab-password .account-password-option-icon img {
    width: 21px;
    height: 21px;
  }

  .account-shell.account-tab-password .account-password-option-copy {
    gap: 4px;
  }

  .account-shell.account-tab-password .account-password-option-copy strong {
    font-size: 16px;
  }

  .account-shell.account-tab-password .account-password-option-copy > span {
    font-size: 12px;
  }

  .account-shell.account-tab-password .account-password-primary-action {
    display: block;
    margin-top: 14px;
  }

  .account-shell.account-tab-password .account-password-primary-action .button {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
  }
}

/* Admin table sticky-column state v2 */
.admin-col-sequence {
  width: 58px;
  min-width: 58px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  text-align: center !important;
  white-space: nowrap;
}

.admin-category-table {
  min-width: 960px;
}

.admin-content-table.admin-users-table {
  min-width: 1180px;
}

.analytics-content-ranking-table {
  min-width: 660px;
}

.admin-sequence-table th:first-child,
.admin-sequence-table td:first-child,
.admin-sticky-start-table th:first-child,
.admin-sticky-start-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 5;
  background: var(--surface);
  background-clip: padding-box;
}

.admin-sequence-table thead th:first-child,
.admin-sticky-start-table thead th:first-child {
  z-index: 8;
  background: color-mix(in srgb, var(--surface-soft) 72%, var(--surface));
}

html[data-theme="dark"] .admin-sequence-table th:first-child,
html[data-theme="dark"] .admin-sequence-table td:first-child,
html[data-theme="dark"] .admin-sticky-start-table th:first-child,
html[data-theme="dark"] .admin-sticky-start-table td:first-child {
  background: #111827;
}

html[data-theme="dark"] .admin-sequence-table thead th:first-child,
html[data-theme="dark"] .admin-sticky-start-table thead th:first-child {
  background: #0f172a;
}

.admin-sequence-table th:first-child::after,
.admin-sequence-table td:first-child::after,
.admin-sticky-start-table th:first-child::after,
.admin-sticky-start-table td:first-child::after,
.admin-sequence-table th:first-child::before,
.admin-sequence-table td:first-child::before,
.admin-sticky-start-table th:first-child::before,
.admin-sticky-start-table td:first-child::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
}

.admin-sequence-table th:first-child::after,
.admin-sequence-table td:first-child::after,
.admin-sticky-start-table th:first-child::after,
.admin-sticky-start-table td:first-child::after {
  right: 0;
  width: 1px;
  background: color-mix(in srgb, var(--line) 62%, transparent);
}

.admin-sequence-table th:first-child::before,
.admin-sequence-table td:first-child::before,
.admin-sticky-start-table th:first-child::before,
.admin-sticky-start-table td:first-child::before {
  right: -18px;
  width: 18px;
  background: linear-gradient(90deg, rgba(15, 23, 42, .055), transparent);
}

html[data-theme="dark"] .admin-sequence-table th:first-child::before,
html[data-theme="dark"] .admin-sequence-table td:first-child::before,
html[data-theme="dark"] .admin-sticky-start-table th:first-child::before,
html[data-theme="dark"] .admin-sticky-start-table td:first-child::before {
  background: linear-gradient(90deg, rgba(0, 0, 0, .18), transparent);
}

.admin-table-wrap :is(.admin-content-table, .admin-sequence-table, .admin-sticky-start-table) :is(th:first-child, td:first-child)::before,
.admin-table-wrap :is(.admin-content-table, .admin-sequence-table, .admin-sticky-start-table) :is(th:first-child, td:first-child)::after,
.admin-table-wrap .admin-content-table :is(th:last-child, td:last-child)::before,
.admin-table-wrap .admin-content-table :is(th:last-child, td:last-child)::after {
  opacity: 0;
  transition: opacity .16s ease;
}

.admin-table-wrap.has-horizontal-overflow.can-scroll-left :is(.admin-content-table, .admin-sequence-table, .admin-sticky-start-table) :is(th:first-child, td:first-child)::before,
.admin-table-wrap.has-horizontal-overflow.can-scroll-left :is(.admin-content-table, .admin-sequence-table, .admin-sticky-start-table) :is(th:first-child, td:first-child)::after,
.admin-table-wrap.has-horizontal-overflow.can-scroll-right .admin-content-table :is(th:last-child, td:last-child)::before,
.admin-table-wrap.has-horizontal-overflow.can-scroll-right .admin-content-table :is(th:last-child, td:last-child)::after {
  opacity: 1;
}
