/*
 * 简约版页面细节
 *
 * 共用页面结构与局部优化；简约配色以 minimal-theme.css 为准。
 * 每页只保留一个深色主焦点，其他内容使用高可读白色表面。
 */

:root {
  --quiet-control-surface: linear-gradient(145deg, rgba(76, 73, 91, .98), rgba(47, 45, 58, .98));
  --quiet-glass-surface: linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(248, 247, 252, .62));
  --quiet-glass-surface-strong: linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(250, 249, 252, .72));
  --quiet-dark-surface: linear-gradient(145deg, rgba(57, 55, 70, .97), rgba(36, 34, 47, .96));
  --quiet-nav-active: rgba(56, 53, 67, .11);
  --quiet-surface-shadow: 0 16px 40px rgba(48, 44, 62, .075), 0 3px 10px rgba(48, 44, 62, .025);
  --quiet-floating-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 16px 34px rgba(35, 31, 48, .17);
  --quiet-control-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 7px 16px rgba(35, 31, 48, .14);
}

/* Calendar polish: a solid date, a visible primary add control, and a compact
   month grid with every day retaining a full-size touch target.
   实心日期是 DESIGN.md 的既定值（60px 实心数字），属交互呈现而非材质，
   两种外观共用同一套；简约模式此前漏掉这条才停在半调波点上。 */
.theme-liquid .schedule-day-view .date-hero > div > strong {
  background: none !important;
  color: var(--ink) !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 60px !important;
  font-variant-numeric: tabular-nums;
}

/* All workspace editors share one readable glass sheet; auth stays separate. */
/* The menu's own z-index cannot escape its parent's stacking context. */
.theme-liquid .stitch-schedule .date-hero {
  position: relative;
  z-index: 40;
}
.theme-liquid .stitch-schedule .date-tools {
  z-index: 40;
}
/* 中性高可读玻璃：去掉噪点和多层渐变竞争。 */
/* 每页最多一个深色焦点；写作页以正文为主，标题使用浅玻璃。 */
/* 选题列表是工作内容，不再把每张卡都做成英雄卡。 */
/* 项目库入口回到浅玻璃，避免日程页同时出现两块深色重量。 */
/* 主操作和选中态用中性深墨；紫色只保留语义强调。 */
/* 次要语音操作保持浅玻璃，发送是输入栏唯一深色焦点。 */
/* 录音时用状态紫区分静态按钮；无动画时也能看出正在收音。 */
/* 周历只保留外层玻璃与一个选中底；不再嵌套单日卡和数字圆底。 */
/* Section labels belong to their content surfaces, not the background. */
.theme-liquid .stitch-schedule .agenda-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  text-align: left;
}
.theme-liquid .stitch-schedule .agenda-card-heading h2,
.theme-liquid .stitch-schedule .agenda-card-title {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
  color: inherit;
}
.theme-liquid .stitch-schedule .agenda-card-heading > span:last-child {
  font-size: 11px;
  font-weight: 400;
  color: inherit;
  opacity: .75;
  white-space: nowrap;
}
.theme-liquid .stitch-schedule .daily-list {
  margin-top: 20px;
  padding-top: 18px;
}
.theme-liquid .stitch-schedule .daily-list > .agenda-card-heading {
  padding-inline: 4px;
  margin-bottom: 8px;
}
.theme-liquid .stitch-schedule .shoot-empty-panel {
  border-radius: 24px;
  padding: 18px 20px 0;
  background: var(--quiet-glass-surface);
  box-shadow: var(--quiet-surface-shadow);
  backdrop-filter: blur(22px);
}
.theme-liquid .stitch-schedule .spotlight-stack.stacked > .shoot-card:not(:first-child) {
  min-height: 196px;
}
.theme-liquid .stitch-schedule .spotlight-stack.stacked::after {
  display: none; /* The in-card node count replaces the overlapping stack badge. */
}
.theme-liquid .stitch-schedule .spotlight-stack.stacked > .shoot-card:nth-child(2) { top: 11px; left: 4px; right: 4px; }
.theme-liquid .stitch-schedule .spotlight-stack.stacked > .shoot-card:nth-child(3) { top: 21px; left: 8px; right: 8px; }
.theme-liquid .stitch-schedule .spotlight-stack.stacked > .shoot-card:nth-child(4) { top: 31px; left: 12px; right: 12px; }
.theme-liquid .stitch-schedule .spotlight-stack.stacked > .shoot-card:nth-child(n+5) { top: 41px; left: 16px; right: 16px; }
.theme-liquid .stitch-schedule .spotlight-stack.stacked > .shoot-card:nth-child(n+2):last-child { top: auto; left: auto; right: auto; }
.theme-liquid .stitch-schedule .spotlight-stack.stacked > .shoot-card:nth-child(2):last-child { margin: 11px 4px 6px; }
.theme-liquid .stitch-schedule .spotlight-stack.stacked > .shoot-card:nth-child(3):last-child { margin: 21px 8px 6px; }
.theme-liquid .stitch-schedule .spotlight-stack.stacked > .shoot-card:nth-child(4):last-child { margin: 31px 12px 6px; }
.theme-liquid .stitch-schedule .spotlight-stack.stacked > .shoot-card:nth-child(n+5):last-child { margin: 41px 16px 6px; }

/* 标签更安静，正文层级更清楚。 */
/* 胶囊、输入与弹层只保留轻折射，不使用彩色阴影。 */
/* 紫色只用于进度和状态。 */
/* 金额、月值等数值强调保持低饱和亮紫；排名序号回归中性深墨（DESIGN 令牌）。 */
/* 减少无关阴影和层中层。 */
/* 会员页沿用现有液态玻璃层级，紫色只表达权益状态。 */
.membership-page { display: grid; gap: 16px; padding-bottom: 20px; }
.membership-hero, .membership-entry {
  border: 0; border-radius: 24px; background: rgba(255,255,255,.56);
  box-shadow: 0 22px 54px rgba(39,28,75,.1), inset 0 1px 0 rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(24px) saturate(1.08); backdrop-filter: blur(24px) saturate(1.08);
}
.membership-hero { padding: 26px 24px; color: #211d2d; }
.membership-hero.active { background: linear-gradient(145deg, rgba(52,43,73,.94), rgba(34,30,45,.96)); color: #fff; }
.membership-hero p { margin-bottom: 18px; color: #7257e8; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.membership-hero.active p { color: #c7bdd6; }
.membership-hero h2 { margin-bottom: 8px; font-size: 28px; }
.membership-hero span { color: inherit; opacity: .64; font-size: 13px; }
.membership-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.membership-benefits span { padding: 11px 12px; border-radius: 12px; background: rgba(255,255,255,.46); color: #5e5669; font-size: 12px; text-align: center; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.membership-plans { display: grid; gap: 10px; }
.membership-plan { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 4px 14px; width: 100%; min-height: 94px; padding: 17px 18px; border: 0; border-radius: 18px; background: rgba(255,255,255,.62); box-shadow: 0 14px 34px rgba(39,28,75,.08), inset 0 1px 0 rgba(255,255,255,.78); text-align: left; -webkit-backdrop-filter: blur(22px) saturate(1.08); backdrop-filter: blur(22px) saturate(1.08); }
.membership-plan span { align-self: end; font-size: 16px; font-weight: 780; }
.membership-plan span small { display: inline-block; margin-left: 8px; padding: 4px 7px; border-radius: 999px; background: #7257e8; color: #fff; font-size: 9px; }
.membership-plan strong { grid-row: 1 / 3; grid-column: 2; align-self: center; color: #2f2543; font-size: 24px; }
.membership-plan strong i { margin-right: 2px; font-size: 12px; font-style: normal; }
.membership-plan em { color: #857c91; font-size: 11px; font-style: normal; }
.membership-plan.recommended { background: linear-gradient(145deg, rgba(114,87,232,.18), rgba(255,255,255,.68)); }
.membership-rule { margin: -2px 6px 0; color: #77707f; font-size: 11px; line-height: 1.7; }
.wechat-pay-hint { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(47,41,57,.08); color: #5f5867; font-size: 11px; }
.wechat-pay-hint button { flex: 0 0 auto; border: 0; border-radius: 12px; background: #2f2939; color: #fff; padding: 8px 10px; font-size: 11px; }
.membership-entry { display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 16px 0; padding: 18px; text-align: left; }
.membership-entry span { display: grid; gap: 3px; }
.membership-entry small { color: #7257e8; font-size: 10px; font-weight: 800; }
.membership-entry strong { font-size: 16px; }
.membership-entry em { color: #7b7484; font-size: 11px; font-style: normal; }
.membership-entry > b { color: #2f2543; font-size: 12px; }
.membership-entry.active { background: linear-gradient(145deg, rgba(48,40,65,.94), rgba(32,28,42,.96)); color: #fff; }
.membership-entry.active small, .membership-entry.active > b { color: #c7bdd6; }
.membership-entry.active em { color: rgba(255,255,255,.58); }
.membership-empty { padding: 18px; color: var(--muted); text-align: center; }
.membership-history { padding: 18px; border-radius: 18px; background: rgba(255,255,255,.52); box-shadow: 0 14px 34px rgba(39,28,75,.06); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.membership-history h3 { margin: 0 0 10px; }
.membership-history div { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; padding: 10px 0; border-bottom: 1px solid rgba(47,41,57,.07); font-size: 12px; }
.membership-history div:last-child { border-bottom: 0; }
.membership-history strong { color: #7257e8; }
.membership-history time { grid-column: 1 / -1; color: #8b8492; font-size: 10px; }
html[data-visual-mode="minimal"] :is(.membership-hero, .membership-plan, .membership-entry, .membership-benefits span) { background: #fff; box-shadow: 0 18px 46px rgba(17,19,21,.075); -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-visual-mode="minimal"] :is(.membership-hero.active, .membership-entry.active) { background-color:var(--dark-card-floor)!important;background-image:var(--dark-card-sheen)!important; }
html[data-visual-mode="minimal"] .membership-plan.recommended { box-shadow: inset 0 3px 0 var(--accent-yellow), 0 18px 46px rgba(17,19,21,.075); }

/* Cross-page audit: surface and foreground must be paired. */
/* 灵感：独立的视频内容拆解入口，继承浅玻璃与深墨操作。 */
.video-analysis { display: grid; gap: 14px; padding: 20px; border-radius: 18px; color: var(--ink); }
.video-analysis-head h2 { margin: 0 0 5px; font-size: 19px; line-height: 1.3; }
.video-analysis-head p, .video-analysis-hint { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.video-analysis-form { display: grid; gap: 8px; }
.video-analysis-form label { font-size: 12px; font-weight: 700; }
.video-analysis-form input { width: 100%; min-width: 0; min-height: 48px; padding: 0 13px; border: 0; border-radius: 12px; background: rgba(244,242,250,.8); color: var(--ink); font-size: 16px; }
.video-analysis-form input::placeholder { color: #686474; }
.video-analysis-form button { min-height: 44px; border: 0; border-radius: 12px; font-weight: 750; }
.video-analysis-form button:disabled { opacity: .55; cursor: not-allowed; }
.video-analysis-error { margin: 0; color: #a32c25; font-size: 12px; line-height: 1.5; }
.video-analysis-result { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid rgba(70,61,87,.12); }
.video-analysis-result-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.video-analysis-result-head h3 { margin: 0; font-size: 16px; }
.video-analysis-result-head a { color: var(--accent-purple-strong); font-size: 12px; font-weight: 700; white-space: nowrap; }
.video-analysis-copy { overflow-wrap: anywhere; font-size: 13px; line-height: 1.75; }
.video-analysis-result small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.video-chat-compose textarea { min-width: 0; min-height: 44px; max-height: 96px; padding: 9px 0; border: 0; background: transparent; font-size: 16px; line-height: 1.55; resize: none; }
.video-chat-compose .voice-input-button { width: 40px; min-width: 0; min-height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--ink); display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none; }
.video-chat-compose .voice-input-button svg { width: 22px; height: 22px; fill: currentColor; }
/* 次要语音操作保持浅玻璃，发送是输入栏唯一深色焦点（对齐选题对话输入栏的既有规则）。 */
.theme-liquid .editor-dialog.is-sheet:focus { outline: none; }
.theme-liquid .editor-dialog.is-sheet::before {
  content: "";
  display: block;
  flex: 0 0 auto;
  width: 40px;
  height: 5px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: rgba(81, 72, 95, .22);
}
.theme-liquid .editor-dialog.is-sheet form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom));
  overflow: hidden;
}
.theme-liquid .editor-dialog.is-sheet .dialog-head {
  position: static;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  background: transparent !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-radius: 0;
  margin: 0 0 12px;
  padding: 4px 2px 0;
}
.theme-liquid .editor-dialog.is-sheet .dialog-head h2 { font-size: 20px; margin: 0; }
.theme-liquid .editor-dialog.is-sheet .dialog-head .icon-button { background: transparent; box-shadow: none; }
.theme-liquid .editor-dialog.is-sheet .dialog-fields {
  flex: 1 1 auto;
  min-height: 0;
  gap: 16px;
  max-height: none;
  padding: 0;
  overflow-y: auto;
}
.theme-liquid .editor-dialog.is-sheet .dialog-actions {
  position: static;
  flex: 0 0 auto;
  margin: 0;
  padding: 10px;
}
/* 分组标题：去掉编号徽章与副标题后的轻量头——14px/700 深墨，层级靠卡片留白建立。
   副标题原来只有 2.18:1（--faint 10.5px），且内容多是复述字段标签，一并去掉。 */
.theme-liquid .editor-dialog.is-sheet .form-group-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
/* 抽屉内的操作说明按系统次级文字规范（12px/--muted）；
   基线是 9.5px + --faint，实测只有 2.2~2.7:1，而这里写的是必读规则而非装饰。 */
.theme-liquid .editor-dialog.is-sheet .field-help {
  font-size: 12px;
  color: var(--muted);
}

/* 筛选专属：一张 18px 玻璃卡装三组（照抄系统"一卡多个 field"的解剖）；
   选项走 3 列网格，去掉第二行孤项；单按钮操作栏；圆角回到控件级 12px。 */
.theme-liquid .inspiration-filter-dialog .filter-panel { gap: 18px; }
.theme-liquid .inspiration-filter-dialog .filter-group { display: grid; gap: 8px; }
.theme-liquid .inspiration-filter-dialog .filter-group-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.theme-liquid .inspiration-filter-dialog .filter-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.theme-liquid .inspiration-filter-dialog .filter-chip { position: relative; display: grid; }
.theme-liquid .inspiration-filter-dialog .filter-chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.theme-liquid .inspiration-filter-dialog .filter-chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.theme-liquid .inspiration-filter-dialog .filter-chip input:checked + span {
  background: var(--quiet-control-surface);
  background-image: var(--quiet-control-surface);
  color: #fff;
  box-shadow: var(--quiet-control-shadow);
}
.theme-liquid .inspiration-filter-dialog .filter-chip input:focus-visible + span {
  outline: 2px solid rgba(114, 87, 232, .74);
  outline-offset: 2px;
}
.theme-liquid .inspiration-filter-dialog .filter-chip input:disabled + span { opacity: .38; }
.theme-liquid .inspiration-filter-dialog .filter-chip input:disabled { cursor: not-allowed; }
.theme-liquid .inspiration-filter-dialog .dialog-hint { margin: 0; }
.theme-liquid .inspiration-filter-dialog .dialog-actions { grid-template-columns: 1fr; }
.theme-liquid .inspiration-filter-dialog .dialog-actions .button.primary { width: 100%; }

@media (prefers-reduced-transparency:reduce), (prefers-contrast:more){
html[data-visual-mode="minimal"] :is(.membership-hero.active, .membership-entry.active){background-image:none!important}
}
