/* 🌙 夜語 pages (plan C6). Night accents on the studio's existing paper and ink tokens. */
#yeyu-strategy,#yeyu-diary{--night:#2e2a5e;--night-soft:#ede9fe;--night-line:#c7bff5;display:grid;gap:16px}
#yeyu-strategy .panel h2 small,#yeyu-diary .panel h2 small{font-weight:400;font-size:.8rem}
.yeyu-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:16px}
#yeyu-strategy>*,#yeyu-diary>*,.yeyu-grid>*{min-width:0}
.yeyu-row{display:flex;gap:12px;align-items:flex-start;margin:10px 0}
.yeyu-switch{flex:none;width:48px;height:28px;border-radius:14px;border:0;background:#cfcfc8;position:relative;cursor:pointer;padding:0;margin-top:2px}
.yeyu-switch span{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:left .15s}
.yeyu-switch.on{background:var(--night)}
.yeyu-switch.on span{left:23px}
.yeyu-switch.small{width:40px;height:24px}
.yeyu-switch.small span{width:18px;height:18px}
.yeyu-switch.small.on span{left:19px}
.yeyu-switch.warn.on{background:var(--warn)}
.yeyu-switch:disabled{opacity:.45;cursor:not-allowed}
.yeyu-switch:focus-visible{outline:3px solid var(--night-line);outline-offset:2px}
.yeyu-pending{background:var(--night-soft);border:1px dashed var(--night-line);border-radius:var(--radius);padding:12px 14px;color:var(--night);margin:8px 0}
.yeyu-pending small{color:var(--muted)}
.yeyu-resources{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:8px;margin:10px 0}
.yeyu-resources div{background:var(--soft);border-radius:8px;padding:8px 10px}
.yeyu-resources small{display:block;color:var(--muted)}
.yeyu-resources strong{font-size:1.3rem;font-variant-numeric:tabular-nums}
.yeyu-balance{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:16px}
.yeyu-balance h3{font-size:.9rem;margin:4px 0 8px}
.yeyu-bar{display:grid;grid-template-columns:7em 1fr 2em;gap:8px;align-items:center;font-size:.85rem;margin:4px 0}
.yeyu-bar span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.yeyu-bar i{display:block;height:8px;border-radius:4px;background:linear-gradient(to right,var(--night) var(--w),var(--line) var(--w))}
.yeyu-bar b{text-align:right;font-variant-numeric:tabular-nums}
.yeyu-curve{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;height:120px;align-items:end;margin:10px 0}
.yeyu-curve div{display:flex;gap:2px;align-items:flex-end;height:100%;position:relative;padding-bottom:18px}
.yeyu-curve span{flex:1;height:var(--h);border-radius:3px 3px 0 0;min-height:2px}
.yeyu-curve .plan,.yeyu-key.plan{background:var(--night-line)}
.yeyu-curve .actual,.yeyu-key.actual{background:var(--night)}
.yeyu-curve small{position:absolute;bottom:0;left:0;right:0;text-align:center;color:var(--muted)}
.yeyu-key{display:inline-block;width:10px;height:10px;border-radius:2px;margin:0 4px 0 10px;vertical-align:-1px}
.yeyu-today td{background:var(--night-soft)}
#yeyu-strategy td small{display:block;color:var(--muted);font-size:.78rem}
.yeyu-members,.yeyu-beliefs,.yeyu-list{list-style:none;padding:0;margin:8px 0;display:grid;gap:10px}
.yeyu-members li{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;border-bottom:1px solid var(--line);padding-bottom:10px}
.yeyu-members li small,.yeyu-beliefs li small{display:block;color:var(--muted)}
.yeyu-stop{grid-column:1/-1;background:#fff7ed;border:1px solid #f3c69b;border-radius:var(--radius);padding:10px}
.yeyu-stop label{display:grid;gap:4px;font-size:.85rem}
.yeyu-stop input{padding:6px 8px;border:1px solid var(--line);border-radius:6px}
.yeyu-beliefs li{border-left:3px solid var(--night-line);padding-left:10px}
.yeyu-confidence{height:6px;border-radius:3px;background:var(--line);margin:6px 0 2px;max-width:320px}
.yeyu-confidence i{display:block;height:100%;width:var(--w);border-radius:3px;background:var(--night)}
.yeyu-entry{border-left:3px solid var(--night);padding:4px 0 10px 14px;margin:12px 0}
.yeyu-entry.weekly{border-color:var(--warn)}
.yeyu-entry.pick{border-color:var(--accent)}
.yeyu-entry h3{margin:0 0 6px;font-size:1rem}
.yeyu-entry h4{margin:10px 0 2px;font-size:.85rem;color:var(--night)}
.yeyu-entry p{margin:0;line-height:1.75;white-space:pre-wrap}
.yeyu-status{margin:0}
.linklike{background:none;border:0;padding:0;color:var(--accent);text-decoration:underline;cursor:pointer;font:inherit}
.btn.danger{background:#b91c1c;color:#fff;border-color:#b91c1c}
@media (max-width:640px){.yeyu-members li{grid-template-columns:1fr}.yeyu-bar{grid-template-columns:5.5em 1fr 2em}}
.yeyu-reason{background:var(--night-soft);border-radius:8px;padding:10px 12px;margin:6px 0;line-height:1.7}
