:root {
--ch-green: #23a152;
--ch-sky: #2690da;
--ch-orange: #d4700f;
--ch-muted: #b3b0a6;
--hm-0: var(--surface-3);
--hm-1: #74c48a;
--hm-2: #38a05c;
--hm-3: #1b7039;
}
:root[data-theme="dark"] {
--ch-green: #36b064;
--ch-sky: #3797dc;
--ch-orange: #d9822c;
--ch-muted: #5d5b54;
--hm-1: #2b6e45;
--hm-2: #38975a;
--hm-3: #5cc882;
}
.s-green { --c: var(--ch-green); }
.s-sky { --c: var(--ch-sky); }
.s-orange { --c: var(--ch-orange); }
.s-muted { --c: var(--ch-muted); }
.ch { position: relative; }
.ch-box { position: relative; border-radius: var(--radius-s); cursor: crosshair; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.ch-box:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.ch-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font); user-select: none; -webkit-user-select: none; }
.ch.is-heat .ch-box { overflow-x: auto; overflow-y: hidden; cursor: pointer; touch-action: auto; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.ch.is-heat .ch-svg { width: auto; max-width: none; }
.ch-yl, .ch-xl { font-size: 12px; fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.ch-grid { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.ch-grid.is-base { stroke: var(--line-2); }
.ch-line { fill: none; stroke: var(--c, var(--ink-3)); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-line.is-thin { stroke-width: 1.5; }
.ch-dot { fill: var(--c, var(--ink-3)); }
.ch-band { fill: var(--c, var(--ink-3)); fill-opacity: 0.12; stroke: none; }
.ch-band-edge { fill: none; stroke: var(--c, var(--ink-3)); stroke-opacity: 0.45; stroke-width: 1; }
.ch-ref { stroke: var(--ink-3); stroke-width: 1.25; stroke-dasharray: 4 4; }
.ch-vref { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 3; }
.ch-ref-l { font-size: 12px; font-weight: 650; fill: var(--ink-2); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.ch-mark { fill: var(--c, var(--ink)); stroke: var(--surface); stroke-width: 2; }
.ch-cross { stroke: var(--ink-3); stroke-width: 1; pointer-events: none; }
.ch-focus { fill: var(--c, var(--ink)); stroke: var(--surface); stroke-width: 2; pointer-events: none; }
.ch-bar { fill: var(--c, var(--ink-3)); transition: opacity 0.15s ease-out; }
.ch-col.is-dim .ch-bar { opacity: 0.35; }
.ch-val { font-size: 12px; font-weight: 650; fill: var(--ink-2); font-variant-numeric: tabular-nums; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.hm { fill: var(--hm-0); }
.hm-1 { fill: var(--hm-1); }
.hm-2 { fill: var(--hm-2); }
.hm-3 { fill: var(--hm-3); }
.hm.is-today { stroke: var(--ink-2); stroke-width: 1.5; }
.hm-focus { fill: none; stroke: var(--ink); stroke-width: 2; pointer-events: none; }
.ch-tip {
position: absolute; left: 0; top: 0; z-index: 8;
min-width: 128px; max-width: 250px; padding: 9px 12px 10px;
border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
box-shadow: var(--shadow-2); font-size: 13px; line-height: 1.5; pointer-events: none;
opacity: 0; scale: 0.98; transform-origin: 0 50%;
transition: opacity 50ms ease-out, scale 50ms ease-out;
}
.ch-tip.is-on { opacity: 1; scale: 1; transition: opacity 150ms ease-out, scale 150ms ease-out; }
.ch-tip-t { font-size: 12.5px; font-weight: 650; color: var(--ink-2); margin-bottom: 3px; white-space: nowrap; }
.ch-tip-r { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.ch-tip-r b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ch-tip-r span { color: var(--ink-3); }
.ch-tip-n { margin-top: 4px; font-size: 12px; color: var(--ink-3); white-space: normal; }
.ch-key { display: inline-block; flex: none; width: 14px; height: 3px; border-radius: 2px; background: var(--c, var(--ink-3)); }
.ch-key.is-box { width: 10px; height: 10px; border-radius: 3px; }
.ch-key.is-band { width: 14px; height: 10px; border-radius: 3px; background: color-mix(in srgb, var(--c, var(--ink-3)) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--ink-3)) 50%, transparent); }
.ch-key.is-ref { height: 2px; border-radius: 0; background: repeating-linear-gradient(90deg, var(--ink-3) 0 4px, transparent 4px 7px); }
.ch-key.hm-k0 { background: var(--hm-0); }
.ch-key.hm-k1 { background: var(--hm-1); }
.ch-key.hm-k2 { background: var(--hm-2); }
.ch-key.hm-k3 { background: var(--hm-3); }
.ch-legend { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 13px; color: var(--ink-2); }
.ch-legend li { display: inline-flex; align-items: center; gap: 7px; }
.ch-table { margin-top: 12px; }
.ch-table > summary { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 2px; border-radius: 6px; list-style: none; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink-3); transition: color 0.15s; }
.ch-table > summary::-webkit-details-marker { display: none; }
.ch-table > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 0.25s var(--ease-out); }
.ch-table[open] > summary::before { transform: rotate(45deg); }
.ch-table > summary:hover { color: var(--ink); }
.ch-table::details-content { block-size: 0; overflow: hidden; transition: block-size 0.25s var(--ease-out), content-visibility 0.25s allow-discrete; }
.ch-table[open]::details-content { block-size: auto; }
.ch-table .table-wrap { margin-top: 8px; max-height: 360px; overflow: auto; }
.ch-table th, .ch-table td { padding: 8px 12px; font-size: 13.5px; }
.ch-table .rtable tbody th[scope="row"] { font-size: 13.5px; }
.ch-table thead th { position: sticky; top: 0; z-index: 1; }
.ch-table tbody th { background: none; font-weight: 600; color: var(--ink); }
.ch-empty { display: grid; place-items: center; min-height: 160px; padding: 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--ink-3); font-size: 14.5px; text-align: center; }
.gd-panel .panel-h { align-items: flex-start; flex-wrap: wrap; }
.gd-panel .panel-h > div { min-width: 0; }
.gd-panel .panel-sub { margin-top: 2px; }
.gd-head-r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gd-legend { margin: -2px 0 12px; }
.chip.is-sample { background: var(--mk-yellow); border-color: transparent; color: var(--mark-ink); font-weight: 700; }
.gd-dialog { width: min(440px, calc(100vw - 32px)); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); }
.gd-dialog[open] { animation: gd-in 250ms cubic-bezier(0.22, 1, 0.36, 1); }
.gd-dialog.is-closing { animation: gd-out 150ms cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.gd-dialog::backdrop { background: rgb(10 10 8 / 0.45); animation: gd-fade 250ms ease-out; }
.gd-dialog.is-closing::backdrop { animation: gd-fade-out 150ms ease-out forwards; }
@keyframes gd-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes gd-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(0.96); } }
@keyframes gd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gd-fade-out { from { opacity: 1; } to { opacity: 0; } }
.gd-in { padding: 24px 24px 20px; }
.gd-title { font-size: 19px; letter-spacing: -0.025em; }
.gd-body { margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.gd-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { background: color-mix(in srgb, var(--red) 86%, var(--ink)); border-color: color-mix(in srgb, var(--red) 86%, var(--ink)); }
:root[data-theme="dark"] .btn-danger { color: #1b0d0b; }
.btn-quiet-danger { color: var(--red); }
.btn-quiet-danger:hover { background: var(--red-bg); }
.stepper { display: grid; grid-template-columns: 44px minmax(40px, 1fr) 44px; height: 48px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s; }
.stepper:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mk-yellow) 75%, transparent); }
.stepper-b { display: grid; place-items: center; border: 0; background: none; color: var(--ink-2); transition: background-color 0.15s; }
.stepper-b:hover { background: var(--surface-2); }
.stepper-b:active { background: var(--surface-3); }
.stepper-b:focus-visible { outline-offset: -3px; }
.stepper-b .ico { width: 18px; height: 18px; }
.stepper-b[disabled] { opacity: 0.35; pointer-events: none; }
.stepper .stepper-in { height: 100%; min-width: 0; border: 0; border-radius: 0; padding: 0 2px; background: none; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; box-shadow: none; }
.stepper .stepper-in:focus { box-shadow: none; }
.stepper-s { display: inline-grid; height: 38px; grid-template-columns: 36px 52px 36px; }
.stepper-s .stepper-in { font-size: 15px; }
.input.is-bad, .select.is-bad { border-color: var(--red); }
.field-err { font-size: 13px; color: var(--red); font-weight: 600; }
.input-unit { position: relative; display: block; }
.input-unit .input { padding-right: 44px; font-variant-numeric: tabular-nums; }
.input-unit > i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 14.5px; color: var(--ink-3); pointer-events: none; }
.gd-meter { display: block; height: 6px; margin-top: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.gd-meter > i { display: block; height: 100%; width: var(--w, 0%); border-radius: 999px; background: var(--ch-green); transition: width 0.4s var(--ease-out); }
.gd-acc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.gd-acc > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 16px; list-style: none; cursor: pointer; font-weight: 650; font-size: 15.5px; border-radius: var(--radius); }
.gd-acc > summary::-webkit-details-marker { display: none; }
.gd-acc > summary .ico { width: 22px; height: 22px; flex: none; }
.gd-acc > summary .gd-acc-sub { margin-left: auto; font-size: 13px; font-weight: 550; color: var(--ink-3); }
.gd-acc > summary::after { content: ""; flex: none; width: 9px; height: 9px; margin: 0 4px 4px 6px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform 0.25s var(--ease-out); }
.gd-acc[open] > summary::after { transform: rotate(225deg); margin-bottom: -4px; }
.gd-acc > summary:hover { background: var(--surface-2); }
.gd-acc::details-content { block-size: 0; overflow: hidden; transition: block-size 0.25s var(--ease-out), content-visibility 0.25s allow-discrete; }
.gd-acc[open]::details-content { block-size: auto; }
.gd-acc-in { padding: 4px 16px 18px; }
.doc .table-wrap + p { margin-top: 14px; }
.rtable tbody th[scope="row"] { background: none; font-size: 14.5px; font-weight: 650; color: var(--ink); white-space: nowrap; }
.rtable tbody tr:last-child th { border-bottom: 0; }
.rtable td.acts { white-space: nowrap; text-align: right; width: 1%; }
.rtable td.acts .btn { margin-left: 2px; }
.rtable td.memo { color: var(--ink-2); min-width: 10em; }
.rtable td.dim { color: var(--ink-3); }
.rtable .btn-icon { width: 34px; padding: 0; }
@media (max-width: 720px) {
.rtable-wrap { border: 0; background: none; overflow: visible; }
.rtable, .rtable tbody, .rtable tr, .rtable td, .rtable th { display: block; }
.rtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rtable tbody { display: grid; gap: 10px; }
.rtable tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rtable td, .rtable th { padding: 0; border: 0; background: none; text-align: left; white-space: normal; }
.rtable th[scope="row"] { grid-column: 1 / -1; font-size: 15px; color: var(--ink); }
.rtable td[data-k]::before { content: attr(data-k); display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.rtable td.n { text-align: left; }
.rtable td.memo, .rtable td.wide { grid-column: 1 / -1; min-width: 0; }
.rtable td.acts { grid-column: 1 / -1; width: auto; text-align: left; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.rtable td.acts .btn { margin: 0; }
.ch-table .rtable-wrap { max-height: none; }
.ch-table .rtable tr { padding: 10px 12px; }
}
.gd-undo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; padding: 10px 12px 10px 16px; border-radius: var(--radius); background: var(--ink); color: var(--on-ink); font-size: 14.5px; animation: gd-up 250ms cubic-bezier(0.22, 1, 0.36, 1); }
.gd-undo .btn { background: transparent; border-color: color-mix(in srgb, var(--on-ink) 40%, transparent); color: var(--on-ink); }
.gd-undo .btn:hover { background: color-mix(in srgb, var(--on-ink) 12%, transparent); }
@keyframes gd-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.gd-undo.is-float { pointer-events: auto; margin: 0; padding: 6px 6px 6px 18px; border-radius: 999px; box-shadow: var(--shadow-2); max-width: calc(100vw - 32px); }
.gd-undo.is-out { animation: gd-down 150ms ease-in forwards; }
@keyframes gd-down { to { opacity: 0; transform: translateY(6px); } }
.gd-sample { align-items: center; flex-wrap: wrap; }
.gd-sample > span { flex: 1 1 16em; }
@media (max-width: 720px) {
.gd-in { padding: 20px 18px 16px; }
.gd-acts { flex-direction: column-reverse; }
.gd-acts .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
.ch-tip, .ch-bar, .gd-meter > i, .ch-table > summary::before, .gd-acc > summary::after { transition: none !important; }
.ch-table::details-content, .gd-acc::details-content { transition: none !important; }
.gd-dialog[open], .gd-dialog.is-closing, .gd-dialog::backdrop, .gd-undo, .gd-undo.is-out { animation: none !important; }
}
