.chk { background-color: #fff; background-image: conic-gradient(#e4e2da 25%, transparent 0 50%, #e4e2da 0 75%, transparent 0); background-size: 16px 16px; }
:root[data-theme="dark"] .chk { background-color: #2b2b27; background-image: conic-gradient(#36352f 25%, transparent 0 50%, #36352f 0 75%, transparent 0); }
.drop { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; padding: 30px 20px 26px; border: 2px dashed var(--line-2); border-radius: var(--radius-l); background: var(--surface-2); cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.drop:hover { border-color: var(--ink-3); }
.drop:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.drop.is-over, body.is-dragging .drop { border-color: var(--ink); background: color-mix(in srgb, var(--mk-yellow) 32%, var(--surface)); }
.drop-ico { width: 62px; height: 54px; margin-bottom: 6px; }
.drop-ico .ico { width: 40px; height: 40px; }
.drop-t { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.drop-s { font-size: 14px; color: var(--ink-2); }
.drop-f { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.drop kbd { font: 600 12px/1 var(--font); padding: 3px 6px; border: 1px solid var(--line-2); border-radius: 5px; background: var(--surface); color: var(--ink-2); }
.drop.is-compact { grid-template-columns: auto 1fr; justify-items: start; align-items: center; text-align: left; column-gap: 12px; row-gap: 0; padding: 14px 16px; }
.drop.is-compact .drop-ico { grid-row: span 2; width: 44px; height: 40px; margin: 0; }
.drop.is-compact .drop-ico .ico { width: 28px; height: 28px; }
.drop.is-compact .drop-t { font-size: 15px; }
.drop.is-compact .drop-s { font-size: 13px; }
.drop.is-compact .drop-f { display: none; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.opt { display: grid; gap: 8px; min-width: 0; align-content: start; }
.opt-full { grid-column: 1 / -1; }
.opt-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.opt-h output, .opt-v { font-size: 13.5px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.opt .hint { margin-top: -2px; }
.opt .seg { justify-self: start; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.opt .seg::-webkit-scrollbar { display: none; }
.opt .seg button { flex: none; padding: 0 13px; }
.inline-in { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.num-in { width: 96px; height: 38px; padding: 6px 10px; font-size: 15px; font-variant-numeric: tabular-nums; }
.unit { font-size: 13.5px; color: var(--ink-3); }
.rng { width: 100%; height: 28px; margin: 0; accent-color: var(--ink); cursor: pointer; background: none; }
.rng:disabled { opacity: 0.45; cursor: default; }
.sw-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swc { position: relative; width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid rgb(22 22 19 / 0.18); background: var(--c, #fff); padding: 0; transition: box-shadow 0.15s, transform 0.1s; }
:root[data-theme="dark"] .swc { border-color: rgb(255 255 255 / 0.22); }
.swc:hover { transform: scale(1.06); }
.swc[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.swc-auto { background: conic-gradient(from 45deg, #161613 0 50%, #ffffff 0); }
.color-in { width: 30px; height: 30px; flex: none; padding: 0; border: 1px dashed var(--line-2); border-radius: 50%; background: var(--surface); cursor: pointer; }
.color-in::-webkit-color-swatch-wrapper { padding: 3px; }
.color-in::-webkit-color-swatch { border: 0; border-radius: 50%; }
.color-in::-moz-color-swatch { border: 0; border-radius: 50%; }
.color-in.is-on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); border-style: solid; }
.color-in:not(.is-on)::-webkit-color-swatch { background-image: conic-gradient(#e9bd00, #e8821a, #e3478e, #8459e3, #2690da, #23a152, #e9bd00); }
.color-in:not(.is-on)::-moz-color-swatch { background-image: conic-gradient(#e9bd00, #e8821a, #e3478e, #8459e3, #2690da, #23a152, #e9bd00); }
.prog { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.prog i { display: block; height: 100%; width: var(--p, 0%); background: var(--ink); border-radius: 999px; transition: width 0.2s var(--ease-out); }
.ilist { list-style: none; display: grid; gap: 10px; }
.irow { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px 12px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ithumb { width: 76px; height: 76px; border-radius: var(--radius-s); overflow: hidden; display: grid; place-items: center; border: 0; padding: 0; color: var(--ink-3); }
button.ithumb { cursor: zoom-in; }
.ithumb img { width: 100%; height: 100%; object-fit: cover; }
.ithumb .ico { width: 28px; height: 28px; }
.ibody { min-width: 0; display: grid; gap: 3px; }
.iname { font-size: 15px; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.iname small { font-weight: 500; color: var(--ink-3); }
.imeta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.imeta b { font-weight: 650; color: var(--ink); }
.imeta .down { color: var(--ok); font-weight: 650; }
.imeta .up { color: var(--red); font-weight: 650; }
.istate { font-size: 13px; color: var(--ink-3); }
.istate.bad { color: var(--red); }
.iact { display: flex; gap: 6px; align-items: center; }
.iact .btn .ico { width: 17px; height: 17px; }
.irow.is-busy .ithumb { animation: breathe 1.2s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.55; } }
.cmp { position: relative; overflow: hidden; border-radius: var(--radius); user-select: none; -webkit-user-select: none; }
.cmp img { display: block; width: 100%; height: auto; }
.cmp-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x, 50%)) 0 0); }
.cmp-before img { width: 100%; height: 100%; object-fit: fill; }
.cmp-bar { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.3); pointer-events: none; }
.cmp-knob { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgb(0 0 0 / 0.35); display: grid; place-items: center; color: #161613; }
.cmp-knob .ico { width: 18px; height: 18px; }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.cmp:has(.cmp-range:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.cmp-tag { position: absolute; top: 10px; padding: 3px 9px; border-radius: 999px; background: rgb(22 22 19 / 0.74); color: #fff; font-size: 12.5px; font-weight: 650; pointer-events: none; }
.cmp-tag.l { left: 10px; }
.cmp-tag.r { right: 10px; }
.imdlg { width: min(1040px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); overflow: hidden; }
.imdlg[open] { display: flex; flex-direction: column; animation: dlg-in 0.25s var(--ease-out); }
.imdlg.is-closing { animation: dlg-out 0.15s var(--ease-in) forwards; }
.imdlg::backdrop { background: rgb(10 10 8 / 0.55); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(8px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes dlg-out { to { opacity: 0; transform: translateY(4px) scale(0.99); } }
.dlg-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px 12px 20px; border-bottom: 1px solid var(--line); }
.dlg-h h2 { font-size: 16.5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlg-b { padding: 16px 20px 20px; overflow: auto; }
.dlg-x { width: 38px; height: 38px; padding: 0; }
@media (max-width: 720px) {
.opts { grid-template-columns: minmax(0, 1fr); }
.irow { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; }
.ithumb { width: 60px; height: 60px; }
.iact { grid-column: 1 / -1; justify-content: flex-end; flex-wrap: wrap; }
.drop { padding: 24px 16px 22px; }
.dlg-b { padding: 12px; }
}
.doc > section { min-width: 0; }
.doc section > p + .table-wrap, .doc section > .table-wrap + p { margin-top: 14px; }
@media (max-width: 480px) {
.doc .table-wrap th[scope="row"] { white-space: normal; word-break: keep-all; min-width: 4.5em; }
.doc .table-wrap th, .doc .table-wrap td { padding-left: 10px; padding-right: 10px; }
}
