/* EasyMovie local edit (挖礦紀錄, 總控 10/28 → 整站改版 11/01): 挖礦 › 收益紀錄 (kryptex-view.js), on admin.css's tokens, so it follows the light
   and the dark set. Chart colours: the formula and our own series in the mining amber, Kryptex's estimate in the platform blue (two hues apart in both
   sets); a failed hour is red with its word, never colour alone. */
#kx-body .sect { margin-top: 24px; }
#kx-body .sect > h2 { font-size: 17px; margin-bottom: 2px; }
#kx-body .sect > p { color: var(--ink2); font-size: 13px; margin-bottom: 8px; }
.kx-intro { color: var(--ink2); font-size: 13px; max-width: 86ch; margin-bottom: 6px; }
.kx-status { margin: 10px 0 4px; font-size: 13.5px; }
.kx-s { font-weight: 600; }
.kx-s.s-ok { color: var(--ok); } .kx-s.s-partial { color: var(--warn); } .kx-s.s-failed { color: var(--bad); }
.kx-fails { margin: 4px 0 8px; padding-left: 20px; color: var(--warn); font-size: 12.5px; }
.kx-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 12px 0 4px; }
.kx-tile { border-radius: 12px; background: var(--card); box-shadow: var(--shadow); padding: 10px 12px; min-width: 0; }
.kx-tl { font-size: 12px; color: var(--ink3); }
.kx-tv { font-size: 19px; font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }
.kx-ts { font-size: 12px; color: var(--ink2); margin-top: 3px; overflow-wrap: anywhere; }
.kx-pick, .kx-rigpick { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.kx-pick .btn.pri, .kx-rigpick .btn.pri { background: var(--mine); border-color: var(--mine); color: var(--on-mine); }
.kx-strip { display: flex; flex-wrap: wrap; gap: 2px; margin: 6px 0 4px; }
.kx-cell { display: inline-block; width: 10px; height: 14px; border-radius: 2px; background: var(--line2); flex: none; }
.kx-strip .kx-cell { flex: 1 1 0; min-width: 3px; max-width: 18px; }
.kx-cell.s-ok { background: var(--ok); } .kx-cell.s-partial { background: var(--warn); } .kx-cell.s-failed { background: var(--bad); }
.kx-cell.s-missing { background: repeating-linear-gradient(135deg, var(--ink3) 0 2px, transparent 2px 4px); outline: 1px solid var(--ink3); outline-offset: -1px; }
.kx-cell.s-wait { background: transparent; outline: 1px dashed var(--line2); outline-offset: -1px; }
.kx-skey { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 2px 0 10px; padding: 0; font-size: 12px; color: var(--ink2); }
.kx-skey li { display: flex; align-items: center; gap: 6px; }
.kx-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kx-chart { margin: 0; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); padding: 8px 10px 6px; min-width: 0; }
.kx-chart figcaption { font-size: 12.5px; color: var(--ink2); margin-bottom: 2px; }
.kx-svg { display: block; width: 100%; height: auto; }
.kx-grid { stroke: var(--line); stroke-width: 1; }
.kx-tick { fill: var(--ink3); font-size: 11px; font-variant-numeric: tabular-nums; }
.kx-endl { fill: var(--ink); font-size: 11.5px; }
.kx-line { stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; fill: none; }
.kx-line.kx-c1 { stroke: var(--mine); } .kx-line.kx-c2 { stroke: var(--plat); }
.kx-dot.kx-c1, .kx-end.kx-c1 { fill: var(--mine); } .kx-dot.kx-c2, .kx-end.kx-c2 { fill: var(--plat); }
.kx-end { stroke: var(--card); stroke-width: 2; }
/* 挖礦紀錄 趨勢2: an hour without a record draws Kryptex's public history. 收益紀錄 長期間 (CR-629): as a wide faded line (and so in the legend),
   so a dashed line means one thing only: 連線機器數 in the miners chart, on the right axis, whose numbers are in its colour. */
.kx-line.kx-hist { stroke-width: 5; stroke-opacity: .32; }
.kx-key.kx-key-hist { height: 6px; border-radius: 3px; opacity: .4; }
.kx-line.kx-dash { stroke-dasharray: 6 4; stroke-linecap: butt; }
.kx-key.kx-key-dash.kx-c2 { background: repeating-linear-gradient(90deg, var(--plat) 0 5px, transparent 5px 8px); }
.kx-tick.kx-c1 { fill: var(--mine-ink); } .kx-tick.kx-c2 { fill: var(--plat-ink); }
.kx-empty { fill: var(--ink3); font-size: 12px; }
.kx-legend { flex-wrap: wrap; row-gap: 2px; }
.kx-key { flex: none; }
.kx-hit { fill: transparent; }
.kx-hit:hover { fill: color-mix(in srgb, var(--ink) 6%, transparent); }
.kx-legend { display: flex; gap: 14px; list-style: none; margin: 2px 0 0; padding: 0; font-size: 12px; color: var(--ink2); }
.kx-legend li { display: flex; align-items: center; gap: 6px; }
.kx-key { display: inline-block; width: 14px; height: 2px; border-radius: 1px; }
.kx-key.kx-c1 { background: var(--mine); } .kx-key.kx-c2 { background: var(--plat); }
.kx-none { color: var(--ink2); font-size: 13px; }
.kx-righours { max-height: 560px; overflow-y: auto; }
.kx-bad td:last-child { white-space: normal; min-width: 22em; }
.kx-note { color: var(--ink2); font-size: 12.5px; margin: 6px 0; max-width: 86ch; }
.kx-chgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 4px; }
.kx-chgs > .kx-note { grid-column: 1 / -1; margin: 0; }
.kx-chg { border-radius: 12px; background: var(--card); box-shadow: var(--shadow); padding: 10px 12px; min-width: 0; }
.kx-chg-h { margin: 0 0 4px; font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.kx-chg-l { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--ink2); }
.kx-chg-l li { margin: 2px 0; overflow-wrap: anywhere; }
.kx-chg-o { color: var(--ink3); }
#kx-body .ban-n.warn { color: var(--warn); background: var(--warn-s); padding: 8px 10px; border-radius: 10px; font-size: 13px; margin: 6px 0; }
#kx-body.kx-busy { opacity: .6; transition: opacity .2s; }
@media (max-width: 760px) {
  .kx-charts, .kx-chgs { grid-template-columns: minmax(0, 1fr); }
  .kx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kx-tv { font-size: 16px; }
}
/* 挖礦紀錄 趨勢2's 30-day table: the long 資料 column may wrap, so the last column (the fleet's day) shows without scrolling on a desktop. */
.kx-market td:nth-child(7) { white-space: normal; min-width: 14em; }
/* EasyMovie local edit (後台記帳, 總控 11/08): the 記帳 page (bookkeeping-view.js). */
.bk-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 10px; align-items: end; margin: 8px 0 12px; }
.bk-f { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bk-fl { font-size: 12px; color: var(--ink2); }
.bk-form input[type=date], .bk-form input[type=file] { width: 100%; max-width: 100%; border: 1px solid var(--line2); background: var(--card); color: var(--ink); border-radius: 9px; padding: 6px 10px; min-height: 36px; }
.bk-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bk-group { margin: 8px 0; }
.bk-group > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 8px 2px; }
.bk-sum { color: var(--ink2); font-size: 13px; font-variant-numeric: tabular-nums; }
.bk-total td { font-weight: 600; }
.bk-thumb { display: inline-block; line-height: 0; }
.bk-thumb img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line2); background: var(--card); }
