/* 占卜类工具（塔罗/六爻/梅花易数/奇门遁甲/大六壬/小六壬/太乙/黄历/金口诀）的起卦栏与"待起盘"页（v2）。
 * 版式参考灵枢（一行副标题+时辰 → 下划线式大号问题 → 起卦方式分段选择+方式说明 → 示意空盘 → 起卦后所得 → 大号起卦键 → 示例问法；标题不重复，页签已是标题），颜色全部取本站主题变量，
 * 默认 / 羊皮纸 / 大师风格（亮暗）都跟随。不改宿主脚本：起卦栏只做样式重绘，待起盘页由 tongtang-cast-stage-20261106.js 注入。 */

/* ───────────── 一、起卦栏 #tt-cast-bar：圆角药丸控件 + 分段选择（所有状态通用） ───────────── */
#tt-panel #tt-cast-bar {
  --cb-ink: var(--color-text, #222);
  --cb-tint: color-mix(in srgb, var(--cb-ink) 5%, transparent);
  --cb-tint2: color-mix(in srgb, var(--cb-ink) 8%, transparent);
  --cb-line: var(--color-line, color-mix(in srgb, var(--cb-ink) 14%, transparent));
  --cb-text: color-mix(in srgb, var(--cb-ink) 76%, transparent);
  --cb-accent: var(--color-accent, #c8161d);
  --cb-raised: var(--color-surface-raised, #fff);
  padding: 12px 14px 10px; gap: 6px;
}
#tt-panel #tt-cast-bar .tt-cast-row { gap: 8px; align-items: center; }
#tt-panel #tt-cast-bar .tt-cast-question {
  flex: 1 1 180px; min-height: 38px; max-height: 120px; resize: none; padding: 9px 14px; border-radius: 14px;
  font-size: 13px; line-height: 1.55; color: var(--cb-ink); background: var(--cb-tint); border: 1px solid var(--cb-line);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
#tt-panel #tt-cast-bar .tt-cast-question::placeholder { color: color-mix(in srgb, var(--cb-ink) 76%, transparent); }
#tt-panel #tt-cast-bar .tt-cast-question:focus { outline: 0; border-color: color-mix(in srgb, var(--cb-accent) 65%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cb-accent) 15%, transparent); }
#tt-panel #tt-cast-bar .tt-cast-datetime, #tt-panel #tt-cast-bar .tt-cast-num, #tt-panel #tt-cast-bar .tt-cast-hex, #tt-panel #tt-cast-bar .tt-cast-hex-changed,
#tt-panel #tt-cast-bar .tt-cast-text, #tt-panel #tt-cast-bar .tt-cast-lunar-month, #tt-panel #tt-cast-bar .tt-cast-lunar-day, #tt-panel #tt-cast-bar .tt-cast-lunar-hour {
  height: 36px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; color: var(--cb-ink); background: var(--cb-tint); border: 1px solid var(--cb-line);
}
#tt-panel #tt-cast-bar .tt-cast-datetime:focus, #tt-panel #tt-cast-bar .tt-cast-num:focus, #tt-panel #tt-cast-bar .tt-cast-hex:focus, #tt-panel #tt-cast-bar .tt-cast-hex-changed:focus,
#tt-panel #tt-cast-bar .tt-cast-text:focus { outline: 0; border-color: color-mix(in srgb, var(--cb-accent) 65%, transparent); }
#tt-panel #tt-cast-bar .tt-cast-num, #tt-panel #tt-cast-bar .tt-cast-lunar-month, #tt-panel #tt-cast-bar .tt-cast-lunar-day, #tt-panel #tt-cast-bar .tt-cast-lunar-hour { width: 72px; padding: 0 10px; text-align: center; }
#tt-panel #tt-cast-bar .tt-cast-extra, #tt-panel #tt-cast-bar .tt-cast-lunar { gap: 6px 8px; align-items: center; color: var(--cb-text); font-size: 12px; }

/* 起卦方式 / 尺度：分段选择（选中项浮起） */
#tt-panel #tt-cast-bar .tt-cast-methods { display: inline-flex; flex-wrap: nowrap; gap: 2px; padding: 3px; border-radius: 999px; background: var(--cb-tint2); align-items: center; font-size: 12px; color: var(--cb-text); }
#tt-panel #tt-cast-bar .tt-cast-methods:has(> .tt-cast-opt .tt-cast-mode) { padding-left: 14px; }
#tt-panel #tt-cast-bar .tt-cast-methods .tt-cast-opt { position: relative; gap: 0; padding: 6px 16px; border-radius: 999px; font-size: 13px; color: var(--cb-text); transition: background .15s, color .15s; }
#tt-panel #tt-cast-bar .tt-cast-methods .tt-cast-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
#tt-panel #tt-cast-bar .tt-cast-methods .tt-cast-opt:hover { color: var(--cb-ink); }
#tt-panel #tt-cast-bar .tt-cast-methods .tt-cast-opt:has(input:checked) { background: var(--cb-raised); color: var(--cb-ink); font-weight: 650; box-shadow: 0 1px 4px rgba(0,0,0,.16), 0 0 0 .5px var(--cb-line); }

/* 单独的选项（牌阵下拉 / 允许逆位）：药丸 */
#tt-panel #tt-cast-bar .tt-cast-row > .tt-cast-opt {
  gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; color: var(--cb-text); background: var(--cb-tint); border: 1px solid var(--cb-line);
}
#tt-panel #tt-cast-bar .tt-cast-spread { height: auto; padding: 0 2px; border: 0; border-radius: 0; color: var(--cb-ink); font-size: 13px; font-weight: 650; cursor: pointer;
  background-color: color-mix(in srgb, var(--cb-ink) 5%, var(--cb-raised)); }   /* 必须是不透明色：下拉弹层取这个底色，透明会变成白底白字 */
#tt-panel #tt-cast-bar .tt-cast-spread:focus { outline: 0; }
#tt-panel #tt-cast-bar .tt-cast-spread option, #tt-panel #tt-cast-bar .tt-cast-spread optgroup { background-color: var(--cb-raised); color: var(--cb-ink); font-weight: 500; }
#tt-panel #tt-cast-bar .tt-cast-row > .tt-cast-opt:has(.tt-cast-spread:focus-visible), #tt-panel #tt-cast-bar .tt-cast-row > .tt-cast-opt:has(.tt-cast-reversed:focus-visible),
#tt-panel #tt-cast-bar .tt-cast-methods .tt-cast-opt:has(input:focus-visible) { outline: 2px solid color-mix(in srgb, var(--cb-accent) 70%, transparent); outline-offset: 2px; }
#tt-panel #tt-cast-bar .tt-cast-reversed { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
#tt-panel #tt-cast-bar .tt-cast-row > .tt-cast-opt:has(.tt-cast-reversed) { position: relative; }
#tt-panel #tt-cast-bar .tt-cast-row > .tt-cast-opt:has(.tt-cast-reversed)::before { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--cb-ink) 45%, transparent); transition: .15s; }
#tt-panel #tt-cast-bar .tt-cast-row > .tt-cast-opt:has(.tt-cast-reversed:checked) { color: var(--cb-ink); border-color: color-mix(in srgb, var(--cb-accent) 55%, transparent); background: color-mix(in srgb, var(--cb-accent) 8%, transparent); }
#tt-panel #tt-cast-bar .tt-cast-row > .tt-cast-opt:has(.tt-cast-reversed:checked)::before { background: var(--cb-accent); border-color: var(--cb-accent); }

#tt-panel #tt-cast-bar .tt-cast-meta { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--cb-tint); color: var(--cb-text); font-size: 12px; }
#tt-panel #tt-cast-bar .tt-cast-link { height: 30px; padding: 0 8px; border-radius: 999px; font-size: 12px; color: color-mix(in srgb, var(--cb-accent) 70%, var(--cb-ink)); }
#tt-panel #tt-cast-bar .tt-cast-go { height: 36px; padding: 0 22px; border-radius: 999px; font-size: 13px; letter-spacing: .12em; box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--cb-accent) 70%, transparent); }
#tt-panel #tt-cast-bar #tt-cast-error { text-align: center; }
#tt-panel #tt-cast-bar #tt-cast-error:empty { display: none; }

/* ───────────── 二、待起盘状态：起卦栏按灵枢排版（下划线式大问题，选项居中） ───────────── */
#tt-panel:has(.tt-cs) #tt-cast-bar { padding: 20px 24px 2px; border-bottom: 0; gap: 8px; align-items: stretch; background: var(--cb-raised) !important; }   /* 与下面的盘面同一底色，整体是一页 */
#tt-panel:has(.tt-cs) #tt-cast-bar .tt-cast-row { justify-content: center; gap: 10px 12px; }
#tt-panel:has(.tt-cs) #tt-cast-bar .tt-cast-question {
  flex: 1 1 100%; min-height: 58px; max-height: 150px; field-sizing: content; padding: 14px 12px 13px; text-align: center; resize: none;
  font-size: 20px; line-height: 1.6; letter-spacing: .04em; font-family: var(--font-serif, "Songti SC", "Noto Serif SC", "SimSun", serif);
  background: transparent; border: 0; border-bottom: 1px solid transparent; border-radius: 0; box-shadow: none;
  border-image: linear-gradient(90deg, transparent, color-mix(in srgb, var(--cb-ink) 32%, transparent) 16%, color-mix(in srgb, var(--cb-ink) 32%, transparent) 84%, transparent) 1;
}
#tt-panel:has(.tt-cs) #tt-cast-bar .tt-cast-question::placeholder { font-family: inherit; letter-spacing: .1em; }
#tt-panel:has(.tt-cs) #tt-cast-bar .tt-cast-question:focus { outline: 0; box-shadow: none; border-image: linear-gradient(90deg, transparent, var(--cb-accent) 16%, var(--cb-accent) 84%, transparent) 1; }
#tt-panel:has(.tt-cs) #tt-cast-bar .tt-cast-go { display: none !important; }      /* 起卦键改由下方的大号起卦键代点 */
#tt-panel:has(.tt-cs) #tt-cast-bar .tt-cast-methods .tt-cast-opt { padding: 7px 20px; font-size: 13.5px; }
/* 命主 / 盘式：独占一行，素字，不做药丸 */
#tt-panel:has(.tt-cs) #tt-cast-bar .tt-cast-row:has(.tt-cast-meta)::after { content: ''; order: 4; flex: 0 0 100%; height: 0; margin-top: -4px; }
#tt-panel:has(.tt-cs) #tt-cast-bar .tt-cast-meta { order: 5; height: auto; padding: 0; background: none; border-radius: 0; font-size: 12px; }
#tt-panel:has(.tt-cs) #tt-cast-bar .tt-cast-link { order: 6; height: auto; padding: 0 2px; margin-left: -4px; font-size: 12px; background: none; }
#tt-panel:has(.tt-cs) #tt-cast-bar .tt-cast-link::before { content: '·'; margin-right: 8px; color: var(--cb-text); }
/* 顶部一行：副标题 · 此刻时辰；选项下面一行：方式说明 */
.tt-cs-info { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; letter-spacing: .06em; color: var(--cb-text, var(--cs-text)); text-align: center; }
.tt-cs-info i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.tt-cs-info .sc { color: var(--cb-accent, var(--cs-accent)); font-weight: 600; }
.tt-cs-info .ck { font-weight: 500; font-variant-numeric: tabular-nums; }
.tt-cs-hint { margin: 2px 0 0; text-align: center; font-size: 12.5px; line-height: 1.6; letter-spacing: .04em; color: var(--cb-text); }
#tt-chart-body .tt-cs > .tt-cs-info { margin: 6px 0 0; color: var(--cs-text); }
#tt-chart-body .tt-cs > .tt-cs-info .sc { color: var(--cs-accent); }

/* 待起盘页面里不再重复宿主的页头（印章页头在下面自带） */
#tt-panel .tt-ext-chart:has(.tt-cs) > .tt-ext-chart-head { display: none; }

/* ───────────── 三、待起盘页 ───────────── */
#tt-chart-body .tt-cs {
  --cs-ink: var(--color-text, #222);
  --cs-line: color-mix(in srgb, var(--cs-ink) 34%, transparent);
  --cs-faint: color-mix(in srgb, var(--cs-ink) 15%, transparent);
  --cs-muted: color-mix(in srgb, var(--cs-ink) 56%, transparent);
  --cs-text: color-mix(in srgb, var(--cs-ink) 76%, transparent);
  --cs-accent: var(--color-accent, #c8161d);
  --cs-on-accent: var(--color-text-on-accent, #fff);
  --cs-bg: var(--color-surface-raised, #fff);
  --cs-serif: var(--font-serif, "Songti SC", "Noto Serif SC", "SimSun", serif);
  display: flex; flex-direction: column; align-items: center; padding: 2px 14px 14px; text-align: center; color: var(--cs-ink);
  text-shadow: none; -webkit-text-stroke: 0; overflow: clip;
  flex: 1 1 auto; min-height: 0; box-sizing: border-box;
}
#tt-chart-body .tt-cs > * { animation: tt-cs-rise .6s cubic-bezier(.2,.7,.2,1) both; }
#tt-chart-body .tt-cs > :nth-child(2) { animation-delay: .06s; } #tt-chart-body .tt-cs > :nth-child(3) { animation-delay: .12s; }
#tt-chart-body .tt-cs > :nth-child(4) { animation-delay: .18s; } #tt-chart-body .tt-cs > :nth-child(5) { animation-delay: .24s; }

/* ───────────── 不出现滚动条：盘面区域吃掉剩余高度，示意盘与牌位按空间缩放 ───────────── */
#tt-panel #tt-chart-body:has(.tt-cs) { padding: 0 12px; display: flex; flex-direction: column; }
#tt-panel .tt-ext-chart:has(.tt-cs) { margin: 0; padding: 0; min-height: 0; flex: 1 1 auto; display: flex; flex-direction: column; }
.tt-cs-art { flex: 1 1 0; min-height: var(--art-min, 190px); width: min(100%, 420px); align-self: center; container-type: size; }
.tt-cs-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tt-cs-spread { position: absolute; inset: 0; justify-content: center; padding: 0; }
.tt-cs-spread { --cw: max(34px, min(var(--cwmax, 92px), var(--wcap, 28cqw), calc((100cqh - var(--extra, 0px) - (var(--rows, 1) - 1) * 14px) / var(--rows, 1) / 1.6))); }
.tt-cs-spread[data-dense] .face em { display: none; }
.tt-cs-spread[data-dense] .face .nm { white-space: normal; font-size: max(10px, calc(var(--cw) * .15)); line-height: 1.25; }
@media (max-height: 760px) { .tt-cs-chips, .tt-cs-or { display: none; } .tt-cs-actions { margin-top: 12px; } }
@media (max-height: 640px) { .tt-cs-cap { display: none; } }

/* 示意盘 */
.tt-cs-art { position: relative; margin: 8px auto 0; }
.tt-cs-art svg { display: block; overflow: visible; }
.tt-cs-art .l { fill: none; stroke: var(--cs-line); stroke-width: 1.2; stroke-linecap: round; }
.tt-cs-art .f { fill: none; stroke: var(--cs-faint); stroke-width: 1; stroke-linecap: round; }
.tt-cs-art .fd { fill: none; stroke: color-mix(in srgb, var(--cs-ink) 24%, transparent); stroke-width: 1; stroke-dasharray: 3 4; }
.tt-cs-art .fill { fill: var(--cs-faint); stroke: none; }
.tt-cs-art .solid { fill: var(--cs-line); stroke: none; }
.tt-cs-art .a { fill: var(--cs-accent); stroke: none; }
.tt-cs-art .as { fill: none; stroke: var(--cs-accent); stroke-width: 1.4; }
.tt-cs-art .bgf { fill: var(--cs-bg); stroke: none; }
.tt-cs-art .hd { fill: var(--cs-accent); opacity: .92; }
.tt-cs-art text { fill: var(--cs-muted); font-size: 10px; font-family: inherit; text-anchor: middle; dominant-baseline: central; }
.tt-cs-art text.xs { font-size: 8px; } .tt-cs-art text.sm { font-size: 9.5px; }
.tt-cs-art text.lbl { font-size: 11.5px; fill: var(--cs-text); }
.tt-cs-art text.mid { font-size: 13px; fill: var(--cs-text); font-family: var(--cs-serif); }
.tt-cs-art text.big { font-size: 58px; font-weight: 600; fill: var(--cs-ink); font-family: var(--cs-serif); }
.tt-cs-art text.hdt { fill: var(--cs-on-accent); font-size: 12px; letter-spacing: .08em; }
.tt-cs .box { transform-box: fill-box; transform-origin: center; }

/* 塔罗占位牌位（灵枢式：素净的圆角牌，罗马数字 + 牌位名 + 待翻开） */
.tt-cs-spread { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tt-cs-spread .row { display: flex; justify-content: center; align-items: flex-start; gap: calc(var(--cw) * .2); }
.tt-cs-card { margin: 0; width: var(--cw); transform: translateY(var(--y, 0px)) rotate(var(--rot, 0deg)); }
.tt-cs-card .face {
  position: relative; width: 100%; aspect-ratio: 5 / 8; border-radius: calc(var(--cw) * .16); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--cw) * .08);
  border: 1px solid color-mix(in srgb, var(--cs-ink) 20%, transparent); background: color-mix(in srgb, var(--cs-ink) 2.5%, var(--cs-bg));
  animation: tt-cs-float 6s ease-in-out infinite; animation-delay: var(--d, 0s);
}
.tt-cs-card .face b { font-family: Georgia, "Times New Roman", var(--cs-serif), serif; font-weight: 500; font-size: calc(var(--cw) * .22); line-height: 1; color: var(--cs-accent); }
.tt-cs-card .face .nm { font-family: var(--cs-serif); font-size: max(11px, calc(var(--cw) * .15)); line-height: 1.2; color: var(--cs-ink); letter-spacing: .06em; text-align: center; padding: 0 4px; }
.tt-cs-card .face em { font-style: normal; font-size: 10.5px; line-height: 1; color: var(--cs-text); letter-spacing: .12em; }
.tt-cs-spread .cross { display: grid; grid-template-columns: repeat(3, var(--cw)) calc(var(--cw) * .55) var(--cw); gap: calc(var(--cw) * .2); justify-content: center; }
.tt-cs-spread .cross .tt-cs-card .face b { font-size: calc(var(--cw) * .28); }
.tt-cs-spread .cross .tt-cs-card[style*="90deg"] .face { background: color-mix(in srgb, var(--cs-accent) 7%, var(--cs-bg)); border-color: color-mix(in srgb, var(--cs-accent) 50%, transparent); animation: none; }

.tt-cs-cap { margin: 10px 0 0; max-width: 30em; font-size: 13px; line-height: 1.75; letter-spacing: .04em; color: var(--cs-text); }
.tt-cs-cap b { color: var(--cs-ink); font-weight: 650; }

/* 起卦键与示例问法 */
.tt-cs-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 14px; }
.tt-cs-go {
  appearance: none; border: 0; cursor: pointer; min-width: min(250px, 78%); height: 54px; padding: 0 36px; border-radius: 999px;
  font-size: 18px; font-weight: 650; font-family: var(--cs-serif); background: var(--cs-accent); color: var(--cs-on-accent);
  box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--cs-accent) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.2);
  transition: filter .15s, transform .15s, box-shadow .15s;
}
.tt-cs-go span { display: inline-block; letter-spacing: .9em; margin-right: -.9em; }
.tt-cs-go:hover { filter: brightness(1.07); transform: translateY(-2px); }
.tt-cs-go:active { transform: translateY(0); filter: brightness(.97); }
.tt-cs-go:focus-visible, .tt-cs-or:focus-visible, .tt-cs-chips button:focus-visible { outline: 2px solid color-mix(in srgb, var(--cs-accent) 70%, transparent); outline-offset: 3px; }
.tt-cs-or { appearance: none; border: 0; background: transparent; cursor: pointer; font-size: 12.5px; color: var(--cs-text); padding: 4px 10px; border-radius: 8px; }
.tt-cs-or:hover { color: var(--cs-ink); background: var(--color-hover, color-mix(in srgb, var(--cs-ink) 6%, transparent)); }
.tt-cs-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; max-width: 30em; }
.tt-cs-chips button {
  appearance: none; cursor: pointer; font-size: 12.5px; padding: 6px 14px; border-radius: 999px; color: var(--cs-text); border: 0;
  background: color-mix(in srgb, var(--cs-ink) 6.5%, transparent); transition: color .15s, background .15s;
}
.tt-cs-chips button:hover { color: var(--cs-ink); background: color-mix(in srgb, var(--cs-accent) 12%, transparent); }
.tt-cast-question.tt-cs-nudge { animation: tt-cs-nudge .9s ease-out 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent, #c8161d) 55%, transparent) !important; }

/* 动效：都很慢、很轻，只在面板里"呼吸"；系统要求减少动态效果时全部静止 */
@keyframes tt-cs-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes tt-cs-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes tt-cs-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes tt-cs-spin { to { transform: rotate(360deg); } }
@keyframes tt-cs-spin-rev { to { transform: rotate(-360deg); } }
@keyframes tt-cs-wave { 0%, 60%, 100% { opacity: .3; } 25% { opacity: 1; } }
@keyframes tt-cs-lit { 0%, 70%, 100% { opacity: 0; } 12% { opacity: .26; } }
@keyframes tt-cs-nudge { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.tt-cs .float { animation: tt-cs-float 5s ease-in-out infinite; }
.tt-cs .spin { transform-box: view-box; transform-origin: 180px 125px; animation: tt-cs-spin 60s linear infinite; }
.tt-cs .spin-rev { transform-box: view-box; transform-origin: 180px 125px; animation: tt-cs-spin-rev 120s linear infinite; }
.tt-cs .hop { transform-box: view-box; transform-origin: 180px 125px; animation: tt-cs-spin 9s steps(6, end) infinite; }
.tt-cs .wave { animation: tt-cs-wave 6s ease-in-out infinite; }
.tt-cs .lit { opacity: 0; animation: tt-cs-lit 9s ease-in-out infinite; }
.tt-cs .pulse { animation: tt-cs-pulse 2.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .tt-cs *, .tt-cs, .tt-cast-question.tt-cs-nudge { animation: none !important; }
  .tt-cs .lit { opacity: .1; }
}
/* 自绘下拉菜单（牌阵）：本站配色，亮暗/各主题一致 */
.tt-cs-menu {
  position: fixed; z-index: 2147483000; box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; padding: 6px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--color-surface-raised, #fff); color: var(--color-text, #222); border: 1px solid var(--color-line, rgba(128,128,128,.28)); border-radius: 16px;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.12); animation: tt-cs-rise .16s ease-out both;
}
.tt-cs-menu button {
  appearance: none; border: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; font: inherit; font-size: 13.5px; line-height: 1.3;
  padding: 9px 14px 9px 30px; border-radius: 10px; position: relative; white-space: nowrap;
}
.tt-cs-menu button.on { background: color-mix(in srgb, var(--color-text, #222) 8%, transparent); }
.tt-cs-menu button.sel { font-weight: 650; color: var(--color-accent, #c8161d); }
.tt-cs-menu button.sel::before { content: ''; position: absolute; left: 13px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: currentColor; }

@media (max-height: 760px) {   /* 矮屏：问题行收小，给下面的盘面多留地方 */
  #tt-panel:has(.tt-cs) #tt-cast-bar { padding-top: 12px; }
  #tt-panel:has(.tt-cs) #tt-cast-bar .tt-cast-question { min-height: 46px; padding: 8px 12px 9px; font-size: 18px; }
}
@media (max-width: 380px) {
  #tt-panel #tt-cast-bar .tt-cast-methods .tt-cast-opt, #tt-panel:has(.tt-cs) #tt-cast-bar .tt-cast-methods .tt-cast-opt { padding: 6px 11px; font-size: 12.5px; }
}
@media (max-width: 420px) {
  #tt-chart-body .tt-cs { padding-left: 8px; padding-right: 8px; }
  #tt-panel:has(.tt-cs) #tt-cast-bar { padding-left: 12px; padding-right: 12px; }
  #tt-panel:has(.tt-cs) #tt-cast-bar .tt-cast-question { font-size: 17px; }
}
#tt-panel:has(.tt-cs) #tt-cast-bar .tt-cast-question.tt-cs-nudge { box-shadow: none !important; border-image: linear-gradient(90deg, transparent, var(--cb-accent) 10%, var(--cb-accent) 90%, transparent) 1; }
@media (max-height: 680px) { .tt-cs-art { min-height: calc(var(--art-min, 190px) * .66); } #tt-chart-body .tt-cs { padding-bottom: 6px; } #tt-panel:has(.tt-cs) #tt-cast-bar { padding-top: 8px; } .tt-cs-actions { margin-top: 8px; } }
.tt-cs-art { max-height: 480px; } #tt-chart-body .tt-cs { justify-content: center; }
