/* ========== sin30° ========== */
:root {
  --bg: #F0EEE6;          /* 暖白,接近 Anthropic 官网底色(更浅可用 #FAF9F5) */
  --card: #FFFFFF;
  --ink: #141413;
  --muted: #87867F;
  --accent: #D97757;
  --hair: rgba(20, 20, 19, 0.1);
  --gutter: 24px;         /* 竖线与内容标题的间距 */
  --title-size: 40px;

  /* 以下由 main.js 写入 */
  --line-x: 96px;
  --line-top: 20vh;
  --line-h: 68vh;
  --div-y: 90vh;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html {
  scrollbar-gutter: stable;
}

button {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 左上角品牌按钮 ---------- */
.brand {
  position: fixed;
  top: 22px;
  left: 28px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, "Songti SC", serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.brand:hover {
  background: rgba(20, 20, 19, 0.06);
}

.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- 滚动舞台 ---------- */
.scrolly {
  position: relative;
  height: 380vh;          /* main.js 按正文高度补足滚动距离 */
}

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* 白色圆角矩形,尺寸由 main.js 按滚动进度写入 */
.card {
  position: absolute;
  top: 76px;
  left: 28px;
  width: calc(100% - 56px);
  height: calc(100% - 104px);
  border-radius: 32px;
  background: var(--card);
  box-shadow:
    0 1px 2px rgba(20, 20, 19, 0.04),
    0 18px 50px -24px rgba(80, 56, 30, 0.18);
  z-index: 1;
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* ---------- 标题:位于卡片左侧,1/2 作为背景;位置由 main.js 写入 ---------- */
.hero {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(20px, 3.2vh, 36px);
  max-width: 86vw;
  transform: translateY(-50%);
  pointer-events: none;     /* 鼠标穿透到背景的 1/2 粒子,仅按钮可点 */
  will-change: opacity, transform, filter;
  animation: title-in 1.1s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

@keyframes title-in {
  from { opacity: 0; filter: blur(8px); }
}

.hero-title {
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(40px, 6.4vw, 104px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--card);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  pointer-events: auto;
  transition: background-color 0.2s ease;
}

.hero-cta span {
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-cta:hover {
  background: var(--accent);
}

.hero-cta:hover span {
  transform: translateX(4px);
}

.hero-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- 滚动提示 ---------- */
.hint {
  position: absolute;
  left: 50%;
  top: calc(100svh - 112px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.2em;
  pointer-events: none;
}

.hint i {
  position: relative;
  width: 1px;
  height: 36px;
  overflow: hidden;
  background: var(--hair);
}

.hint i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: var(--ink);
  animation: drip 1.8s cubic-bezier(0.6, 0, 0.3, 1) infinite;
}

@keyframes drip {
  to { top: 100%; }
}

/* ---------- 正文分区(以数字 1 为左侧竖线) ---------- */
.content {
  position: absolute;
  z-index: 3;
  left: calc(var(--line-x) + var(--gutter));
  right: clamp(24px, 8vw, 140px);
  top: var(--line-top);
  min-height: var(--content-min-h, var(--line-h));
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.content-section {
  flex: 0 0 auto;
  min-height: 0;
  opacity: 0;
  transform: translateX(28px);
  will-change: opacity, transform;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
}

.title {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, "Songti SC", serif;
  font-size: var(--title-size);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}

.desc {
  max-width: 60ch;
  color: #65655F;
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* 两枚标志的可访问占位；画面由首页分流过来的同一批粒子绘制。 */
#intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 38%);
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
  min-height: 208px;
}

.intro-copy {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.intro-copy .desc {
  max-width: 44ch;
  line-height: 1.85;
}

.intro-art {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: clamp(20px, 2.4vw, 40px);
  width: 100%;
  max-width: 420px;
  justify-self: end;
}

.intro-mark {
  position: relative;
  flex: 1;
  min-width: 0;
}

.intro-mark--forge {
  flex: 1.3;
}

.particle-icon {
  position: relative;
  width: 100%;
  height: clamp(96px, 11vw, 148px);
}

.particle-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.particles-ready .particle-icon img {
  opacity: 0;
}

.intro-mark figcaption {
  margin-top: 14px;
  text-align: center;
  color: #65655F;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.intro-mark figcaption span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.feature-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
  width: 100%;
  margin-top: 8px;
}

.feature-category {
  min-width: 0;
  align-self: start;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
}

.feature-category h3 {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.feature-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  color: #65655F;
  font-size: 14px;
  line-height: 1.6;
}

.feature-modules li {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: 100%;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(20, 20, 19, 0.045);
  overflow-wrap: anywhere;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.feature-modules li:hover {
  border-color: var(--hair);
  background: rgba(20, 20, 19, 0.075);
  color: var(--ink);
}

/* Feel 驱动展开与收起；内容默认可见，脚本负责渐进增强。 */
.category-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 36px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.category-indicator {
  position: relative;
  flex: 0 0 14px;
  height: 14px;
}

.category-indicator::before,
.category-indicator::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 2px;
  width: 10px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
}

.category-indicator::after {
  transform: rotate(calc(90deg * (1 - var(--category-open, 1))));
  opacity: calc(1 - var(--category-open, 1));
}

.feature-list {
  overflow: hidden;
}

.feature-modules li:has(.module-trigger) {
  padding: 0;
}

.module-trigger {
  min-height: 32px;
  max-width: 100%;
  padding: 5px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  overflow-wrap: anywhere;
  text-align: left;
  cursor: pointer;
}

.feature-modules li:has(.module-trigger:focus-visible),
.feature-modules li.is-active {
  border-color: var(--hair);
  background: rgba(20, 20, 19, 0.075);
  color: var(--ink);
}

.category-toggle:focus-visible,
.module-trigger:focus-visible,
.drawer-handle:focus-visible,
.drawer-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* 浮层挂在 body 下，避开滚动舞台的裁切与变换。 */
.module-detail {
  position: fixed;
  z-index: 30; /* 页面 1–3，品牌 20，详情浮层 30；抽屉使用原生顶层。 */
  top: 0;
  left: 0;
  width: min(280px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: var(--card);
  opacity: 0;
  transform-origin: top center;
  overflow-wrap: anywhere;
}

.detail-category {
  margin-bottom: 6px;
  color: #65655F;
  font-size: 12px;
  line-height: 1.5;
}

.detail-title {
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.detail-description {
  margin-top: 12px;
  color: #65655F;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.module-drawer {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  overscroll-behavior: contain;
}

.module-drawer::backdrop {
  background: transparent;
}

.drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 19, 0.28);
  opacity: 0;
  touch-action: none;
}

.drawer-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  height: min(560px, calc(100% - 40px));
  padding: 0 24px max(24px, env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0;
  background: var(--card);
  transform: translateY(0);
}

.drawer-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: grab;
}

.drawer-handle:active {
  cursor: grabbing;
}

.drawer-handle span {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #A7A69F;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hair);
}

.drawer-close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border: 1px solid var(--hair);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.drawer-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.drawer-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (max-width: 1100px) {
  .feature-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #intro {
    grid-template-columns: minmax(0, 1fr) minmax(210px, 36%);
    gap: 28px;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
    --title-size: 28px;
  }

  .brand {
    top: 14px;
    left: 14px;
  }

  .content-section {
    gap: 8px;
    padding: 8px 0;
  }

  .desc {
    font-size: 14px;
  }

  #intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    min-height: 0;
  }

  .intro-copy {
    gap: 8px;
  }

  .intro-art {
    max-width: 272px;
    gap: 30px;
  }

  .particle-icon {
    height: 96px;
  }

  .feature-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .category-toggle {
    min-height: 44px;
  }

  .module-trigger {
    min-height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hint i::after {
    animation: none;
    top: 30%;
  }

  .hero {
    animation: none;
  }

  .feature-modules li {
    transition: none;
  }
}

/* ---------- 独立账号页与管理员页 ---------- */
.workspace-page { min-height: 100vh; background: var(--bg); }
.workspace-bar { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; }
.workspace-bar .brand { position: static; }
.workspace-nav { display: flex; align-items: center; gap: 18px; }
.workspace-nav a { color: var(--muted); font-size: 12px; text-decoration: none; transition: color 0.2s ease; }
.workspace-nav a:hover,
.workspace-nav a:focus-visible { color: var(--ink); }
.workspace-main { min-height: calc(100vh - 80px); padding: 48px 28px 72px; }
.workspace-shell { width: min(920px, 100%); margin: 0 auto; padding: clamp(28px, 5vw, 64px); border: 1px solid var(--hair); border-radius: 16px; background: var(--card); }
.workspace-shell--wide { width: min(1320px, 100%); }
.workspace-heading { margin-bottom: 42px; }
.workspace-heading--row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.workspace-heading h1 { margin-top: 8px; font-family: Georgia, serif; font-size: clamp(38px, 5vw, 64px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.workspace-heading > div > p:last-child,
.workspace-heading > p:last-child { max-width: 52ch; margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.page-kicker { color: var(--muted); font-size: 10px; letter-spacing: 0.16em; }
.page-gate { max-width: 520px; padding: 28px 0 8px; border-top: 1px solid var(--hair); }
.page-gate h2 { margin: 12px 0 10px; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.page-gate p:not(.page-kicker) { margin-bottom: 22px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.account-workspace { display: grid; gap: 18px; }
.workspace-panel { padding: 24px; border: 1px solid var(--hair); border-radius: 12px; background: rgba(255, 255, 255, 0.62); }
.workspace-panel--identity { padding-bottom: 20px; }
.workspace-panel__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.workspace-panel__heading h2 { margin-top: 7px; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.panel-index { color: var(--muted); font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; }
.panel-copy { max-width: 58ch; margin-bottom: 22px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.account-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.account-summary { min-width: 0; padding: 18px; border: 1px solid var(--hair); border-radius: 10px; background: rgba(255, 255, 255, 0.46); }
.account-summary span { display: block; margin-bottom: 9px; color: var(--muted); font-size: 11px; }
.account-summary strong { display: block; overflow-wrap: anywhere; font-size: 13px; font-weight: 500; }
.workspace-link { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 2px; border-top: 1px solid var(--hair); color: var(--ink); font-size: 13px; text-decoration: none; }
.workspace-link:hover { color: var(--accent); }

/* ---------- 账号登录浮窗 ---------- */
.account-bar {
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 20;
}

.account-trigger,
.ghost-button,
.outline-button,
.admin-link,
.auth-tab,
.account-close {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.account-trigger {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(20, 20, 19, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.account-trigger:hover,
.account-trigger:focus-visible { background: #fff; border-color: rgba(20, 20, 19, 0.35); transform: translateY(-1px); }

.account-dialog,
.admin-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.account-dialog::backdrop,
.admin-dialog::backdrop { background: rgba(20, 20, 19, 0.16); backdrop-filter: blur(10px); }
.account-dialog__scrim { position: absolute; inset: 0; }
.account-sheet,
.admin-sheet {
  position: relative;
  z-index: 1;
  overflow: auto;
  max-height: min(760px, calc(100vh - 48px));
  margin: 24px 28px 24px auto;
  padding: 40px;
  border: 1px solid rgba(20, 20, 19, 0.12);
  border-radius: 16px;
  background: rgba(250, 249, 245, 0.96);
  box-shadow: 0 20px 60px rgba(20, 20, 19, 0.18);
  animation: account-in 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.account-sheet { width: min(420px, calc(100% - 48px)); }
.admin-sheet { width: min(1100px, calc(100% - 48px)); }
@keyframes account-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.account-close { position: absolute; top: 15px; right: 18px; width: 32px; height: 32px; font-size: 28px; line-height: 1; color: var(--muted); }
.account-heading { margin-bottom: 28px; }
.account-heading .eyebrow,
.admin-label { color: var(--muted); font-size: 10px; letter-spacing: 0.16em; }
.account-heading h2 { margin-top: 7px; font-family: Georgia, serif; font-size: 34px; font-weight: 500; letter-spacing: -0.03em; }
.account-heading p:last-child { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.auth-tabs { display: flex; gap: 22px; margin-bottom: 20px; border-bottom: 1px solid var(--hair); }
.auth-tab { position: relative; padding: 0 0 11px; color: var(--muted); font-size: 14px; }
.auth-tab.is-active { color: var(--ink); }
.auth-tab.is-active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--accent); content: ''; }
.account-form,
.activation-form,
.code-form { display: grid; gap: 14px; }
.account-form label,
.activation-form label,
.code-form label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.account-form input,
.activation-form input,
.code-form input { width: 100%; height: 44px; padding: 0 13px; border: 1px solid rgba(20, 20, 19, 0.15); border-radius: 8px; outline: 0; background: #fff; color: var(--ink); font: inherit; }
.account-form input:focus,
.activation-form input:focus,
.code-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.15); }
.solid-button,
.outline-button { min-height: 44px; padding: 0 16px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.solid-button { border: 1px solid var(--ink); background: var(--ink); color: #fff; }
.solid-button span,
.outline-button span { float: right; }
.outline-button { border: 1px solid rgba(20, 20, 19, 0.2); background: transparent; color: var(--ink); }
.outline-button:hover { border-color: var(--accent); color: var(--accent); }
.ghost-button { color: var(--muted); font-size: 12px; }
.ghost-button:hover { color: var(--ink); }
.account-message { min-height: 20px; margin-top: 16px; color: var(--accent); font-size: 12px; line-height: 1.5; }
.account-identity { display: flex; align-items: center; gap: 11px; padding-bottom: 20px; border-bottom: 1px solid var(--hair); }
.account-identity > div:nth-child(2) { display: grid; gap: 4px; flex: 1; }
.account-identity strong { font-size: 15px; }
.account-identity span { color: var(--muted); font-size: 11px; }
.account-avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-family: Georgia, serif; font-size: 18px; }
.activation-status { margin: 20px 0; padding: 14px; border-radius: 8px; background: rgba(20, 20, 19, 0.05); color: var(--muted); font-size: 12px; line-height: 1.6; }
.activation-status.is-active { background: rgba(217, 119, 87, 0.12); color: var(--ink); }
.admin-link { width: 100%; margin-top: 20px; padding: 14px 0 2px; border-top: 1px solid var(--hair); color: var(--ink); text-align: left; font-size: 13px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.8fr); gap: 18px; }
.admin-card { min-width: 0; padding: 20px; border: 1px solid rgba(20, 20, 19, 0.1); border-radius: 12px; background: #fff; }
.admin-card__head { display: flex; align-items: start; justify-content: space-between; margin-bottom: 16px; }
.admin-card h2,
.admin-card h3 { margin-top: 6px; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table th { padding: 0 10px 10px; color: var(--muted); font-size: 10px; font-weight: 500; text-align: left; white-space: nowrap; }
.admin-table td { padding: 12px 10px; border-top: 1px solid rgba(20, 20, 19, 0.08); vertical-align: middle; white-space: nowrap; }
.admin-table td:first-child { padding-left: 0; }
.admin-table th:first-child { padding-left: 0; }
.admin-table input { width: 78px; height: 32px; padding: 0 7px; border: 1px solid rgba(20, 20, 19, 0.14); border-radius: 6px; font: inherit; }
.admin-table .user-cell { min-width: 145px; }
.admin-table .user-cell strong,
.admin-table .user-cell small { display: block; }
.admin-table .user-cell strong { font-weight: 600; }
.admin-table .user-cell small { margin-top: 3px; color: var(--muted); font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.admin-table .duration-hint { margin-left: 5px; color: var(--muted); font-size: 10px; }
.admin-table button { border: 0; background: transparent; color: var(--accent); cursor: pointer; font: inherit; }
.status-pill { display: inline-flex; padding: 4px 7px; border-radius: 999px; background: rgba(20, 20, 19, 0.07); color: var(--muted); font-size: 10px; }
.status-pill.is-on { background: rgba(109, 144, 102, 0.14); color: #4e7148; }
.code-form { grid-template-columns: 1fr 0.8fr; align-items: end; }
.code-form .solid-button { grid-column: 1 / -1; }
.generated-codes { min-height: 74px; margin: 16px 0; padding: 12px; overflow: auto; border-radius: 8px; background: #f0eee6; color: var(--ink); font: 11px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
.admin-code-list { display: grid; gap: 8px; color: var(--muted); font-size: 11px; }
.admin-code-row { display: flex; justify-content: space-between; gap: 10px; padding-top: 9px; border-top: 1px solid var(--hair); }

@media (max-width: 720px) {
  .workspace-bar { padding: 14px; }
  .workspace-nav { gap: 10px; }
  .workspace-nav a { display: none; }
  .workspace-main { padding: 24px 14px 40px; }
  .workspace-shell { padding: 28px 20px; }
  .workspace-heading { margin-bottom: 30px; }
  .workspace-heading--row { display: block; }
  .workspace-heading--row > .outline-button { margin-top: 20px; }
  .account-summary-grid { grid-template-columns: minmax(0, 1fr); }
  .workspace-panel { padding: 18px; }
  .account-bar { top: 14px; right: 14px; }
  .account-sheet,
  .admin-sheet { width: calc(100% - 28px); max-height: calc(100vh - 28px); margin: 14px; padding: 28px 20px; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-card { padding: 16px 12px; }
  .admin-table { min-width: 620px; }
}

@media (prefers-reduced-motion: reduce) {
  .account-sheet, .admin-sheet { animation: none; }
}

/* ---------- Feel workspace refresh ---------- */
.feel-workspace {
  --workspace-bg: #e4e5df;
  --workspace-surface: rgba(251, 252, 248, 0.92);
  --workspace-ink: #18201d;
  --workspace-muted: #6d7770;
  --workspace-accent: #d97757;
  --workspace-green: #547b63;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 6%, rgba(217, 119, 87, 0.18), transparent 24rem),
    radial-gradient(circle at 92% 88%, rgba(84, 123, 99, 0.14), transparent 28rem),
    var(--workspace-bg);
  color: var(--workspace-ink);
}

.feel-workspace::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(24, 32, 29, 0.14) 0.7px, transparent 0.7px);
  background-size: 15px 15px;
  opacity: 0.14;
  content: '';
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.feel-workspace .workspace-bar {
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(24, 32, 29, 0.12);
}

.feel-workspace .workspace-bar .brand {
  font-size: 21px;
}

.feel-workspace .workspace-nav a {
  color: var(--workspace-muted);
}

.feel-workspace .workspace-main {
  padding: clamp(26px, 5vw, 68px) clamp(16px, 4vw, 56px) 88px;
}

.feel-workspace .workspace-shell {
  position: relative;
  overflow: hidden;
  width: min(1080px, 100%);
  padding: clamp(24px, 5vw, 58px);
  border: 1px solid rgba(24, 32, 29, 0.14);
  border-radius: 16px;
  background: var(--workspace-surface);
  box-shadow: 0 8px 8px rgba(24, 32, 29, 0.08);
  transform-style: preserve-3d;
}

.feel-workspace .workspace-shell::after {
  position: absolute;
  top: 0;
  right: clamp(22px, 4vw, 58px);
  width: 1px;
  height: 100%;
  background: rgba(24, 32, 29, 0.08);
  content: '';
  opacity: 0.5;
  pointer-events: none;
}

.feel-workspace .workspace-heading {
  position: relative;
  z-index: 1;
  margin-bottom: 36px;
}

.feel-workspace .workspace-heading h1 {
  max-width: 11ch;
  color: var(--workspace-ink);
  font-family: "Inter", "Helvetica Neue", "PingFang SC", system-ui, sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 680;
  letter-spacing: -0.045em;
}

.feel-workspace .page-kicker,
.feel-workspace .admin-label {
  color: var(--workspace-accent);
  font-weight: 650;
  letter-spacing: 0.18em;
}

.feel-workspace .workspace-heading > div > p:last-child,
.feel-workspace .workspace-heading > p:last-child {
  color: var(--workspace-muted);
}

.feel-workspace .workspace-panel,
.feel-workspace .admin-card,
.feel-workspace .account-summary,
.feel-workspace .admin-stat {
  border: 1px solid rgba(24, 32, 29, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 6px 8px rgba(24, 32, 29, 0.06);
  transform-style: preserve-3d;
  will-change: transform;
}

.feel-workspace .workspace-panel,
.feel-workspace .admin-card {
  padding: 24px;
}

.feel-workspace .account-identity {
  border-bottom-color: rgba(24, 32, 29, 0.12);
}

.feel-workspace .account-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--workspace-ink);
  box-shadow: 4px 4px 0 rgba(217, 119, 87, 0.55);
}

.feel-workspace .activation-status {
  border: 1px solid rgba(24, 32, 29, 0.1);
  background: rgba(24, 32, 29, 0.05);
}

.feel-workspace .activation-status.is-active {
  border-color: rgba(84, 123, 99, 0.28);
  background: rgba(84, 123, 99, 0.14);
  color: var(--workspace-green);
}

.feel-workspace .account-summary-grid {
  gap: 14px;
}

.feel-workspace .account-summary {
  min-height: 98px;
  padding: 18px;
}

.feel-workspace .account-summary span,
.feel-workspace .admin-stat span {
  color: var(--workspace-muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feel-workspace .account-summary strong {
  margin-top: 12px;
  color: var(--workspace-ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.feel-workspace .activation-panel {
  position: relative;
  overflow: hidden;
}

.feel-workspace .activation-panel::before,
.feel-workspace .admin-card--codes::before {
  position: absolute;
  right: 22px;
  bottom: 20px;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(217, 119, 87, 0.24);
  border-radius: 50%;
  content: '';
  opacity: 0.7;
}

.feel-workspace .account-form input,
.feel-workspace .activation-form input,
.feel-workspace .code-form input,
.feel-workspace .admin-search input,
.feel-workspace .admin-filter select {
  border-color: rgba(24, 32, 29, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.feel-workspace .account-form input:focus,
.feel-workspace .activation-form input:focus,
.feel-workspace .code-form input:focus,
.feel-workspace .admin-search input:focus,
.feel-workspace .admin-filter select:focus {
  border-color: var(--workspace-accent);
  box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.14);
}

.feel-workspace .solid-button,
.feel-workspace .outline-button,
.feel-workspace .account-trigger {
  border-radius: 8px;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
  will-change: transform;
}

.feel-workspace .solid-button {
  border-color: var(--workspace-ink);
  background: var(--workspace-ink);
}

.feel-workspace .solid-button:hover,
.feel-workspace .solid-button:focus-visible {
  background: var(--workspace-accent);
  border-color: var(--workspace-accent);
}

.feel-workspace .outline-button:hover,
.feel-workspace .outline-button:focus-visible {
  border-color: var(--workspace-accent);
  background: rgba(217, 119, 87, 0.08);
  color: var(--workspace-accent);
}

.feel-workspace .account-message {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.feel-workspace .account-message[data-type="success"] {
  border-color: rgba(84, 123, 99, 0.22);
  background: rgba(84, 123, 99, 0.1);
  color: var(--workspace-green);
}

.feel-workspace .admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.feel-workspace .admin-stat {
  min-height: 118px;
  padding: 18px;
}

.feel-workspace .admin-stat strong {
  display: block;
  margin-top: 14px;
  color: var(--workspace-ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.feel-workspace .admin-stat small {
  display: block;
  margin-top: 8px;
  color: var(--workspace-muted);
  font-size: 11px;
}

.feel-workspace .admin-stat--accent {
  background: var(--workspace-ink);
}

.feel-workspace .admin-stat--accent span,
.feel-workspace .admin-stat--accent strong,
.feel-workspace .admin-stat--accent small {
  color: #f9fbf6;
}

.feel-workspace .admin-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
  align-items: start;
}

.feel-workspace .admin-card__head {
  align-items: center;
}

.feel-workspace .admin-card h2,
.feel-workspace .workspace-panel__heading h2 {
  color: var(--workspace-ink);
  font-family: "Inter", "Helvetica Neue", "PingFang SC", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 680;
  letter-spacing: -0.03em;
}

.feel-workspace .admin-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.feel-workspace .admin-search {
  flex: 1;
}

.feel-workspace .admin-search input,
.feel-workspace .admin-filter select {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  outline: 0;
  color: var(--workspace-ink);
  font: inherit;
  font-size: 12px;
}

.feel-workspace .admin-filter {
  width: 132px;
}

.feel-workspace .admin-table {
  font-size: 12px;
}

.feel-workspace .admin-table th {
  color: var(--workspace-muted);
  font-weight: 650;
  letter-spacing: 0.06em;
}

.feel-workspace .admin-table td {
  border-top-color: rgba(24, 32, 29, 0.1);
}

.feel-workspace .admin-table tbody tr {
  transition: background-color 160ms ease;
}

.feel-workspace .admin-table tbody tr:hover {
  background: rgba(217, 119, 87, 0.06);
}

.feel-workspace .role-label {
  color: var(--workspace-muted);
  font-size: 11px;
}

.feel-workspace .role-label.is-admin {
  color: var(--workspace-accent);
  font-weight: 650;
}

.feel-workspace .status-pill {
  border: 1px solid rgba(24, 32, 29, 0.1);
  background: rgba(24, 32, 29, 0.06);
}

.feel-workspace .status-pill.is-on {
  border-color: rgba(84, 123, 99, 0.2);
  background: rgba(84, 123, 99, 0.13);
  color: var(--workspace-green);
}

.feel-workspace .table-actions,
.feel-workspace .code-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feel-workspace .table-action {
  border: 0;
  background: transparent;
  color: var(--workspace-accent);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  white-space: nowrap;
  will-change: transform;
}

.feel-workspace .table-action:hover,
.feel-workspace .table-action:focus-visible {
  color: var(--workspace-ink);
}

.feel-workspace .table-action--danger {
  color: #a64d4d;
}

.feel-workspace .table-action:disabled {
  cursor: wait;
  opacity: 0.45;
}

.feel-workspace .table-loading,
.feel-workspace .table-empty {
  padding: 28px 0 !important;
  color: var(--workspace-muted);
  text-align: center;
}

.feel-workspace .generated-codes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  color: var(--workspace-muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feel-workspace .generated-codes {
  min-height: 74px;
  margin: 8px 0 18px;
  border: 1px solid rgba(24, 32, 29, 0.1);
  background: rgba(24, 32, 29, 0.06);
}

.feel-workspace .admin-code-list {
  gap: 0;
}

.feel-workspace .admin-code-row {
  align-items: center;
  padding: 12px 0;
  border-top-color: rgba(24, 32, 29, 0.1);
}

.feel-workspace .admin-code-row > div:first-child {
  display: grid;
  gap: 4px;
}

.feel-workspace .admin-code-row strong {
  color: var(--workspace-ink);
  font: 12px ui-monospace, SFMono-Regular, Consolas, monospace;
}

.feel-workspace .admin-code-row span {
  color: var(--workspace-muted);
  font-size: 11px;
}

.feel-workspace .admin-code-row.is-disabled {
  opacity: 0.58;
}

.feel-workspace .account-sheet,
.feel-workspace .admin-sheet {
  border-color: rgba(24, 32, 29, 0.14);
  border-radius: 16px;
  background: rgba(247, 248, 242, 0.98);
  box-shadow: 0 8px 8px rgba(24, 32, 29, 0.12);
}

@media (max-width: 900px) {
  .feel-workspace .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .feel-workspace .workspace-shell { padding: 24px 18px; }
  .feel-workspace .workspace-shell::after { right: 18px; }
  .feel-workspace .workspace-heading h1 { max-width: none; font-size: 36px; }
  .feel-workspace .admin-grid { grid-template-columns: 1fr; }
  .feel-workspace .admin-card { padding: 18px 14px; }
  .feel-workspace .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feel-workspace .admin-stat { min-height: 104px; padding: 14px; }
  .feel-workspace .admin-stat strong { font-size: 22px; }
  .feel-workspace .admin-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 118px; }
}

@media (prefers-reduced-motion: reduce) {
  .feel-workspace .workspace-panel,
  .feel-workspace .admin-card,
  .feel-workspace .account-summary,
  .feel-workspace .admin-stat { transform: none !important; }
}
