/* result dashboard, sections, tools, predictions */
.wrap.narrow { width: min(760px, 100% - 32px); }
.res-bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); padding-block: var(--s3); }
.who { margin-inline-end: auto; min-width: 0; } .who h1 { font-size: var(--fs-xl); margin: 0; overflow-wrap: anywhere; } .who p { margin: 0; }
.acts { display: flex; gap: var(--s2); flex-wrap: wrap; }
.secnav { position: sticky; top: 60px; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; position: relative; padding-block: 6px; }
.nav-in::-webkit-scrollbar { display: none; }
.nav-in a { flex: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 var(--s4); border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; position: relative; z-index: 1; transition: color .25s; }
.nav-in a[aria-current] { color: var(--on-primary); }
.nav-in .ind { position: absolute; top: 6px; left: 0; height: 44px; width: 0; border-radius: 999px; background: var(--primary); transition: transform .4s var(--ease), width .4s var(--ease); }
.resbody { padding-block: var(--s5) var(--s7); }
.rsec { margin-block: var(--s7); scroll-margin-top: 130px; }
.rsec:first-child { margin-top: var(--s5); }
.rsec-h { margin-bottom: var(--s4); } .rsec-h h2 { margin-bottom: 4px; }
.two { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .two { grid-template-columns: 1.1fr 1fr; } }
.pn { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--gold-soft); color: var(--gold-text); font-weight: 700; margin-inline-end: 8px; line-height: 1; }
.pn.big { width: 52px; height: 52px; font-size: 1.5rem; flex: none; margin: 0; } .pn.gold { background: linear-gradient(135deg, #f1d98f, #d9a93f); color: #3b1018; }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; background: var(--gold-soft); color: var(--gold-text); margin: 2px 4px 2px 0; }
.badge.warn { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); margin-inline-start: 6px; }
.badge[data-aspect] { border: 1px solid currentColor; }

/* overview */
.ov { display: grid; gap: var(--s4); }
@media (min-width: 1000px) { .ov { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); align-items: start; } .ov-side { position: sticky; top: 130px; } }
.ov-main, .ov-side { display: grid; gap: var(--s4); min-width: 0; }
.chartcard { background: radial-gradient(120% 120% at 50% 0%, var(--hero-1), var(--hero-2)); border-color: transparent; color: var(--hero-ink); padding: var(--s4); }
.chartcard .seg { background: rgb(255 255 255 / .06); border-color: rgb(247 220 154 / .3); } .chartcard .seg button { color: #f1dcc0; } .chartcard .seg button[aria-pressed=true] { color: #2a0e10; } .chartcard .seg .ind { background: linear-gradient(135deg, #f0cd80, #d9a93f); }
.chartcard .icon-btn { color: var(--hero-ink); } .chartcard .muted, .chartcard .hint { color: #dcc3a4; } .chartcard .check input { accent-color: #d9a93f; } .chartcard .term { color: inherit; }
.ch-head { display: flex; gap: var(--s2); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.chart-box { width: min(100%, 560px); margin: var(--s3) auto; aspect-ratio: 1; }
.chart-svg { width: 100%; height: 100%; display: block; overflow: visible; touch-action: manipulation; }
.chart-svg text { user-select: none; -webkit-user-select: none; }
.ch-foot { display: grid; gap: 4px; }
.skipbtn { color: #f7dc9a; position: absolute; right: 12px; bottom: 8px; }
.info { min-height: 150px; } .info h3 { margin: 0; font-size: var(--fs-xl); }
.info-h { display: flex; gap: var(--s3); align-items: center; margin-bottom: var(--s3); }
.info-hint { display: flex; gap: var(--s3); align-items: center; color: var(--ink-2); } .info-hint svg { width: 32px; height: 32px; color: var(--gold); flex: none; }
.kvs { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2px var(--s4); }
.kv { padding: 6px 0; border-bottom: 1px dashed var(--line); } .kv dt { font-size: var(--fs-xs); color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }
.rels { margin-top: var(--s3); }
.lagna .lg-big { display: flex; gap: var(--s3); align-items: center; margin: var(--s2) 0; } .lg-r { font-size: var(--fs-xl); font-weight: 700; line-height: 1.3; } .lg-lines { margin: 0 0 var(--s2); padding-inline-start: 18px; color: var(--ink-2); }
.dms { letter-spacing: .02em; }
.chips2 { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--s2) 0; }
.pred-slot { margin-top: var(--s3); }

/* tables */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; }
.tbl { min-width: 100%; font-size: var(--fs-sm); } .tbl th, .tbl td { padding: 10px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; line-height: 1.5; }
.tbl thead th { color: var(--muted); font-weight: 600; font-size: var(--fs-xs); position: sticky; top: 0; background: var(--surface); }
.tbl tbody tr:hover { background: var(--gold-soft); } .tbl tr.now { background: var(--gold-soft); font-weight: 600; }
.tbl.planets th[scope=row] { white-space: nowrap; }
@media (max-width: 599px) { .hide-s { display: none; } }
.ptab { margin-top: var(--s3); }

/* taksa */
.pum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 420px; margin: var(--s3) auto; }
.pc { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 12px; display: grid; place-content: center; text-align: center; gap: 0; padding: 4px; position: relative; background: var(--bg); line-height: 1.35; }
.pc .pn { margin: 0 auto 2px; } .pc .pname { font-size: var(--fs-sm); font-weight: 600; } .pc .plab { font-size: var(--fs-xs); color: var(--muted); } .pc .plab.red { color: var(--red); font-weight: 700; }
.pc.mid { background: linear-gradient(135deg, var(--hero-1), var(--hero-2)); color: var(--hero-ink); border: 0; } .pc.mid small { opacity: .8; } .pc.mid b { font-size: var(--fs-lg); color: #f7dc9a; }
.pc.hi { border: 2px solid var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 15%, transparent); }
.tag { position: absolute; top: 4px; right: 4px; font-style: normal; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; line-height: 1.6; }
.tks { display: grid; gap: var(--s4); margin-bottom: var(--s3); }
.tk-h { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 6px 0; } .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #f1d98f); border-radius: inherit; transition: width .9s var(--ease); }
.life { margin-top: var(--s4); } .life-wrap { position: relative; margin: var(--s4) 0; }
.life-bar { display: flex; height: 44px; border-radius: 10px; overflow: hidden; gap: 2px; }
.seg-p { background: var(--surface-2); display: grid; place-items: center; font-size: 11px; min-width: 0; overflow: hidden; color: var(--ink-2); transition: background .3s; } .seg-p.now { background: var(--gold); color: #2a0e10; font-weight: 700; animation: bandp 2.4s ease-in-out infinite; } .seg-p.scr { outline: 2px solid var(--red); outline-offset: -2px; }
@keyframes bandp { 50% { filter: brightness(1.15); } }
.life-mark { position: absolute; top: -6px; bottom: -6px; width: 3px; background: var(--red); border-radius: 2px; transition: left .25s; }

/* triwai */
.tri { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tri .th { text-align: center; font-weight: 700; font-size: var(--fs-sm); padding: 4px 0; color: var(--gold-text); }
.tc { border: 1px solid var(--line); border-radius: 12px; padding: 8px 4px; text-align: center; display: grid; justify-items: center; gap: 0; position: relative; background: var(--bg); line-height: 1.4; transition: background .35s, border-color .35s, transform .35s var(--ease); min-width: 0; }
.tc .pn { margin: 0; } .tc .pname { font-size: var(--fs-sm); font-weight: 600; } .tc.empty { border: 0; background: none; }
.tc.cur { border-color: var(--gold); background: var(--gold-soft); animation: curp 2.6s ease-in-out infinite; } @keyframes curp { 50% { box-shadow: 0 0 0 4px rgb(217 169 63 / .28); } }
.tc.scr { background: var(--gold-soft); border: 2px solid var(--red); transform: scale(1.04); }
.tc .tag { background: var(--gold); color: #2a0e10; }
.scrub { margin-top: var(--s5); display: grid; gap: var(--s2); }
.scrub input[type=range] { width: 100%; height: 44px; accent-color: var(--primary); background: none; }
html[data-eff="dark"] .scrub input[type=range] { accent-color: var(--gold); }
.scr-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; justify-content: space-between; } .scr-out { font-weight: 700; }
.notes { color: var(--ink-2); font-size: var(--fs-sm); padding-inline-start: 20px; margin: var(--s4) 0 0; }
@media (max-width: 480px) { .tc .xs { font-size: 11px; } .tc .pname { font-size: 13px; } }

/* yoke */
.pairs { display: grid; gap: var(--s2); margin-top: var(--s4); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s2); align-items: center; padding: var(--s3); border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.pa { display: flex; align-items: center; flex-wrap: wrap; font-weight: 600; min-width: 0; } .pa.r { justify-content: flex-end; text-align: right; }
.pair .mid { display: grid; justify-items: center; line-height: 1.3; } .sep { font-weight: 700; } .asp { font-weight: 700; color: var(--gold-text); }
.plain { padding-inline-start: 18px; color: var(--ink-2); }

/* dates */
.dc p { margin: 0 0 4px; } .agebox { display: block; margin-top: var(--s2); } .age-cal { margin-top: 2px; } .age-main b { display: block; }
td.cu { position: relative; -webkit-text-fill-color: transparent; } td.cu::after { content: attr(data-cu); position: absolute; inset: 0; padding: inherit; -webkit-text-fill-color: currentcolor; pointer-events: none; } .dc h3 { font-size: var(--fs-lg); }
.credit { color: var(--muted); font-size: var(--fs-xs); margin-top: var(--s7); max-width: 80ch; }
.zoomdlg { border: 0; border-radius: var(--r-lg); padding: var(--s4); width: min(960px, 96vw); max-height: 96vh; background: var(--surface); color: var(--ink); overflow: auto; }
.zoomdlg::backdrop { background: rgb(20 4 10 / .7); } .zoomdlg .close { position: absolute; right: 8px; top: 8px; z-index: 2; background: var(--surface); }
.zoomwrap { width: min(100%, 78vh); margin: 0 auto var(--s4); aspect-ratio: 1; background: radial-gradient(var(--hero-1), var(--hero-2)); border-radius: var(--r); padding: var(--s3); }

/* predictions */
.pred-hero { display: grid; gap: var(--s4); margin-bottom: var(--s4); } .byline-big { display: flex; gap: var(--s3); align-items: center; } .byline-big svg { width: 36px; height: 36px; color: var(--gold); }
.ptopic { margin-block: var(--s6); scroll-margin-top: 130px; } .plist { display: grid; gap: var(--s3); }
.pred-empty { display: flex; gap: var(--s2); align-items: center; color: var(--muted); font-size: var(--fs-sm); padding: var(--s3); border: 1px dashed var(--line); border-radius: 12px; }
.pred-empty svg { color: var(--gold); width: 22px; height: 22px; flex: none; }
.pred-empty.big { padding: var(--s5); gap: var(--s4); background: var(--surface); } .pred-empty.big svg { width: 44px; height: 44px; animation: float 5s ease-in-out infinite; } .pred-empty.big b { color: var(--ink); font-size: var(--fs-lg); }
.pred { font-size: 1.06rem; line-height: 1.95; max-width: 68ch; } .pred h4 { margin-bottom: var(--s2); } .pred .pred-body p { margin-bottom: var(--s3); }
.pred.compact { font-size: var(--fs-md); border-inline-start: 3px solid var(--gold); padding-inline-start: var(--s4); margin-top: var(--s3); }
.pred.demo { background: repeating-linear-gradient(45deg, transparent 0 10px, var(--gold-soft) 10px 20px); border-radius: 12px; padding: var(--s4); } .demo-flag { font-size: var(--fs-xs); font-weight: 700; color: var(--red); }
.byline { display: flex; gap: 8px; align-items: center; font-size: var(--fs-sm); color: var(--gold-text); margin-top: var(--s3); } .byline svg { width: 18px; height: 18px; }
details.ent { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 var(--s4); } details.ent > summary { min-height: 52px; display: flex; align-items: center; cursor: pointer; font-weight: 700; } details.ent[open] { padding-bottom: var(--s4); }

/* tools */
.tools { display: grid; gap: var(--s5); padding-block: var(--s5) var(--s7); }
@media (min-width: 900px) { .tools { grid-template-columns: 260px minmax(0, 1fr); } }
.tside { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.tside a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 var(--s4); border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: var(--fs-sm); background: var(--surface); }
.tside a.on { background: var(--primary); color: var(--on-primary); border-color: transparent; }
@media (min-width: 900px) { .tside { flex-direction: column; position: sticky; top: 84px; align-self: start; overflow: visible; } .tside a { border-radius: 12px; border-color: transparent; background: none; } .tside a:hover { background: var(--surface-2); } .tside a.on { background: var(--primary); } }
.tmain { min-width: 0; }
.tgrid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tcard { text-decoration: none; color: inherit; display: block; transition: transform .25s var(--ease), box-shadow .25s; } .tcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.tool-h { display: flex; gap: var(--s4); align-items: center; margin-bottom: var(--s4); } .tool-h h2, .h2 { font-size: var(--fs-2xl); margin: 0; } .tool-h p { margin: 0; } .tool-h .ic-wrap { width: 56px; height: 56px; border-radius: 16px; background: var(--gold-soft); color: var(--gold-text); display: grid; place-items: center; flex: none; } .tool-h .ic-wrap svg { width: 30px; height: 30px; }
.tform { margin-bottom: var(--s4); } .tf-grid { display: grid; gap: var(--s4); } @media (min-width: 700px) { .tf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } } .tf-act { margin-top: var(--s4); }
.tout > .card { margin-bottom: var(--s4); }
.stats { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-block: var(--s4); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: var(--s3) var(--s4); } .sv { font-size: var(--fs-xl); font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.hero-res { background: linear-gradient(135deg, var(--hero-1), var(--hero-2)); color: var(--hero-ink); border-radius: var(--r); padding: var(--s5); } .hero-res .big { font-size: var(--fs-2xl); font-weight: 700; color: #f7dc9a; line-height: 1.4; }
.big2 { font-size: var(--fs-lg); font-weight: 600; }
.cal-head { display: flex; align-items: center; justify-content: space-between; } .cal-head h3 { margin: 0; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .wd { text-align: center; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); padding: 6px 0; }
.day { min-height: 64px; border: 1px solid var(--line); border-radius: 10px; padding: 4px 2px; display: grid; align-content: start; justify-items: center; background: var(--surface); line-height: 1.3; }
.day.blank { border: 0; background: none; } .day .dn { font-size: var(--fs-md); } .day .ln { font-size: 10.5px; color: var(--muted); } .day .mn { font-size: 10px; display: inline-flex; gap: 2px; align-items: center; color: var(--gold-text); font-weight: 700; } .day .mn svg { width: 10px; height: 10px; }
.day.today { border: 2px solid var(--red); } .day.full { background: var(--gold-soft); } .day.new { background: var(--surface-2); }
@media (max-width: 480px) { .day { min-height: 56px; } .day .ln { font-size: 9.5px; } }
.tline { list-style: none; margin: var(--s4) 0; padding: 0 0 0 20px; border-inline-start: 2px solid var(--gold); display: grid; gap: var(--s4); }
.tline li { position: relative; } .tline li::before { content: ""; position: absolute; left: -27px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid var(--bg); } .tline li.retro::before { background: var(--red); }
.tl-d { display: flex; gap: var(--s3); flex-wrap: wrap; } .arrow { color: var(--gold-text); }
.tkd { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 var(--s4); margin-bottom: 6px; } .tkd > summary { min-height: 52px; display: grid; grid-template-columns: 1fr auto; gap: 0 var(--s3); align-items: center; cursor: pointer; padding: 6px 0; } .tkd summary .xs { grid-column: 1 / -1; }
.sub-row { display: flex; justify-content: space-between; gap: var(--s3); padding: 8px 0; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.trace { overflow: auto; background: var(--surface-2); padding: var(--s3); border-radius: 10px; font-size: var(--fs-xs); line-height: 1.6; max-height: 320px; }
.errcard { display: flex; gap: var(--s3); border-color: var(--red); } .errcard svg { color: var(--red); width: 28px; height: 28px; flex: none; } .errcard ul { margin: 4px 0; padding-inline-start: 18px; }
.stack { display: grid; gap: var(--s3); }
.print-only { display: none; }
@media (max-width: 899px) { .res-bar .acts .btn { flex: 1 1 auto; } }

.chart-box { position: relative; } .zoom-btn { position: absolute; right: -4px; top: -4px; color: var(--hero-ink); background: rgb(0 0 0 / .25); }
.ch-head .seg { width: 100%; flex-wrap: nowrap; } .ch-head .seg button { flex: 1; padding: 0 6px; white-space: nowrap; }
@media (max-width: 599px) { .acts { width: 100%; justify-content: space-between; } .acts .btn { padding: 0; width: 48px; min-width: 48px; } .acts .btn .lbl { display: none; } .acts .btn.gold { flex: 1; } .acts .btn.gold .lbl { display: inline; } .acts .btn.gold { width: auto; padding: 0 var(--s4); } .chartcard { padding: var(--s3); margin-inline: -8px; } .ch-head .seg button { font-size: 13px; } }
.hero p.lead { max-width: 42ch; text-wrap: pretty; }

/* legend (เลขประจำดาว) + cross-highlight */
.legend { margin-top: var(--s2); border-top: 1px solid rgb(247 220 154 / .25); padding-top: var(--s2); } .legend > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; font-size: var(--fs-sm); color: #f7dc9a; }
.lg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 4px; margin-bottom: var(--s2); }
.lg-it { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid rgb(247 220 154 / .25); background: rgb(255 255 255 / .05); color: var(--hero-ink); font: inherit; font-size: var(--fs-sm); cursor: pointer; text-align: left; }
.lg-it:hover, .lg-it:focus-visible, .lg-it.hl { background: rgb(247 220 154 / .2); border-color: #f7dc9a; }
.lg-it .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgb(255 255 255 / .6); } .lg-it b { font-size: 1.1rem; min-width: 1em; } 
tr.hl, .pair .pa.hl, .tk.hl { background: var(--gold-soft); } .pc.hl, .tc.hl { outline: 3px solid var(--gold); outline-offset: -3px; animation: hlp 1.1s ease-in-out infinite; } @keyframes hlp { 50% { box-shadow: 0 0 0 5px rgb(217 169 63 / .3); } }
.pair .pa.hl { border-radius: 8px; } tr.hl th, tr.hl td { background: var(--gold-soft); }

/* wheel card: preset colour behind a cream disc so label hues keep AA contrast */
.chart-box { background: var(--w-cardbg, var(--w-card)); border-radius: 20px; padding: clamp(4px, 1.5vw, 12px); box-shadow: 0 6px 24px rgb(0 0 0 / .25); }
.zoomwrap { background: var(--w-cardbg, var(--w-card)); }
.wpal { position: relative; display: inline-block; } .wpal-btn { gap: 8px; } .wpal-dot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgb(0 0 0 / .3); display: inline-block; }
.wpal-pop { position: absolute; z-index: 30; left: 0; bottom: calc(100% + 6px); min-width: 220px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: 0 10px 30px rgb(0 0 0 / .35); display: grid; gap: 2px; }
.wpal-pop[hidden] { display: none; }
.wpal-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 10px; cursor: pointer; } .wpal-opt:hover, .wpal-opt:has(input:focus-visible) { background: var(--surface-2); } .wpal-opt:has(input:checked) { font-weight: 700; outline: 2px solid var(--gold); }
.wpal-opt input[type=radio] { position: absolute; opacity: 0; } .wpal-sw { width: 22px; height: 22px; border-radius: 50%; border: 2px solid; flex: none; } .wpal-opt input[type=color] { width: 32px; height: 28px; border: 0; padding: 0; background: none; }
.cell:hover, .cell:focus-visible { fill: var(--w-hl); } .cell.sel { fill: var(--w-hl); }
.ch-pal { display: flex; justify-content: flex-end; margin-top: var(--s2); } .ch-pal .wpal-btn { color: var(--hero-ink); }
.tri .wai { font-weight: 700; color: var(--primary); }

/* ปฏิทินดาวย้ายทั้งปี */
.yc-title { margin: 0 0 var(--s3); } .yc-bar-top { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; justify-content: space-between; margin-bottom: var(--s3); } .yc-acts { display: flex; gap: var(--s2); flex-wrap: wrap; }
.yc-filt { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s3); } .chipcheck { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; font-size: 14px; } .chipcheck:has(input:checked) { border-color: var(--gold); background: var(--surface-2); } .chipcheck input { accent-color: var(--primary); }
.yc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: var(--s3); margin-top: var(--s3); }
.yc-card { text-align: left; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: var(--s3); cursor: pointer; color: var(--ink); font: inherit; display: grid; gap: 6px; transition: transform .2s, box-shadow .2s; } .yc-card:hover, .yc-card:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 22px rgb(0 0 0 / .18); outline: 2px solid var(--gold); }
.yc-h { display: flex; align-items: baseline; gap: 8px; } .yc-mag { margin-left: auto; color: var(--primary); width: 20px; height: 20px; }
.chart-box.mini { width: 100%; margin: 0; padding: 4px; border-radius: 12px; box-shadow: none; }
.yc-dlg { width: min(960px, 96vw); max-height: 94vh; overflow: auto; padding: var(--s4); border-radius: 18px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); } .yc-dlg::backdrop { background: rgb(0 0 0 / .55); }
.yc-dbody { display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr); } @media (min-width: 800px) { .yc-dbody { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.yc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 70vh; overflow: auto; } .yc-row { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--surface); display: grid; gap: 2px; } .yc-row.retro { border-color: var(--w-red, #ED1C24); }
.yc-st { color: var(--w-red, #b3261e); font-size: 14px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; } html[data-eff=dark] .yc-st { color: #ff8f94; }
.tag.red { background: #ED1C24; color: #fff; } .term-l { color: var(--primary); font-weight: 600; }
.yc-month th, .yc-month td { white-space: nowrap; font-size: 13px; vertical-align: top; } .yc-month td.rm { background: rgb(237 28 36 / .08); } .yc-month .chip { display: inline-block; margin: 1px 2px; padding: 1px 6px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); } .yc-month .chip.retro { border-color: #ED1C24; }
.yc-tl { display: grid; gap: 8px; } .yc-ax { display: grid; grid-template-columns: repeat(12, 1fr); margin-left: 74px; font-size: 12px; color: var(--muted); } .yc-tr { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 4px; }
.yc-bar { position: relative; height: 30px; background: var(--surface-2); border-radius: 8px; overflow: hidden; } .seg-b { position: absolute; top: 0; bottom: 0; display: grid; place-items: center; font-size: 12px; color: #fff; border-right: 1px solid rgb(255 255 255 / .6); overflow: hidden; white-space: nowrap; } .seg-b.retro { background-image: repeating-linear-gradient(135deg, transparent 0 5px, rgb(255 255 255 / .35) 5px 8px); }
.seg-b.r0 { background: #006838; } .seg-b.r1 { background: #662C91; } .seg-b.r2 { background: #2A3890; } .seg-b.r3 { background: #8a5a14; } .seg-b.r4 { background: #1d6b55; } .seg-b.r5 { background: #8f2f4f; }
.yc-bar .st { position: absolute; top: 0; width: 4px; height: 100%; background: #ED1C24; }
@media print { .yc-acts, .yc-filt, .yc-bar-top .seg, .ov, .tform, .tside, .tool-h { display: none !important; } .yc-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } .yc-card { break-inside: avoid; border-color: #bbb; box-shadow: none; } }

/* ดวงที่บันทึก */
.sv-bar { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin: var(--s3) 0; } .sv-bar .inp { flex: 1 1 220px; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--surface); color: var(--ink); font: inherit; }
.sv-list { display: grid; gap: var(--s2); } .sv-it { display: flex; align-items: center; gap: var(--s2); padding: 8px 12px; flex-wrap: wrap; } .sv-it.pin { border-color: var(--gold); } .sv-go { flex: 1 1 200px; text-align: left; background: none; border: 0; color: var(--ink); font: inherit; cursor: pointer; display: grid; min-height: 44px; align-content: center; } .sv-act { display: flex; gap: 2px; } .sv-act [aria-pressed=true] { color: var(--gold); }
/* contrast: tags on dark surfaces >= 4.5:1 */
html[data-eff="dark"] .tag { background: #ff8a80; color: #2a0608; }
html[data-eff="dark"] .tc .tag { background: #e6bc62; color: #2a0e10; }
html[data-eff="dark"] .tag.red { background: #ff8a80; color: #2a0608; }
