#image-board-dialog{width:min(1100px,94vw);max-width:94vw;max-height:92dvh;overflow:auto;padding:16px;border:1px solid #4e776d;border-radius:10px;background:#f8faf9;color:#19362d}#image-board-dialog::backdrop{background:#0008}#image-board-dialog h2{font-size:18px;margin:0}#image-board-dialog h3{font-size:15px;margin:10px 0}#image-board-dialog p{font-size:13px;margin:8px 0}#image-board-dialog button{width:auto;flex:none;min-height:30px}#image-board-dialog [hidden]{display:none!important}.image-title,.image-options,.image-footer{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.image-title{justify-content:space-between}.image-options{margin:10px 0}.image-options label{display:inline-flex;align-items:center;gap:4px}.image-options select{width:auto;min-width:3.5em}.image-options input[type=number]{width:6em}.image-options span{font-size:12px}.image-work{display:grid;grid-template-columns:1fr 1fr;gap:18px}.image-work section{min-width:0}.image-work canvas{display:block;width:100%;height:auto;max-height:none;border:1px solid #94aaa3;cursor:crosshair;touch-action:manipulation}.image-work details label{display:block;font-size:13px}.image-footer{justify-content:flex-end;border-top:1px solid #c4d3ce;padding-top:12px}#image-import{background:#206b59;color:white}#image-import:disabled{opacity:.45}#image-status{min-height:1.5em;color:#804400}#image-board-dialog small{font-size:12px}#image-board-dialog input[type=range]{width:140px}#analysis-first{white-space:nowrap}@media(max-width:650px){.image-work{grid-template-columns:1fr}#image-board-dialog{padding:10px}.image-options{gap:6px}#image-board-dialog button{min-height:38px}}

#image-stone-count{font-weight:700;color:#163e32;background:#e4efe9;padding:4px 8px;border-radius:4px}.image-confirm-label{display:block;font-weight:700;color:#183e32;padding:8px;background:#fff3c8;border-radius:4px}

.image-captured{flex-basis:100%;display:flex;align-items:center;gap:4px;flex-wrap:wrap}.image-captured input{width:5em}.game-title .image-position-note{display:inline-block;font-weight:400;font-size:.85em;margin-left:1em}

.image-game-info{border-top:1px solid #b8ccc4;padding-top:8px;font-size:12px;gap:8px}
#image-board-dialog .image-game-info input[type=number]{box-sizing:content-box;min-width:0;padding:3px 5px;appearance:textfield;font:inherit;height:1.5em}
.image-game-info input::-webkit-inner-spin-button{appearance:none}
#image-board-dialog #image-handicap{width:1.5ch}#image-board-dialog #image-komi{width:6ch}
#image-board-dialog #image-captured-black,#image-board-dialog #image-captured-white{width:4ch}
#image-board-dialog #image-turn{min-width:0;width:auto;padding:3px 5px;font:inherit}
#guide-dialog{width:min(880px,94vw);height:88dvh;max-width:94vw;max-height:94dvh;padding:12px;border:1px solid #527c74;border-radius:8px}#guide-dialog::backdrop{background:#0008}.guide-top{display:flex;align-items:center;justify-content:space-between;gap:10px}#guide-frame{display:block;width:100%;height:calc(100% - 45px);border:0;margin-top:8px}

/* Compact numbers: content-sized on desktop, taller targets on touch devices. */
html body :is(#numeric-sizing #numeric-field,input[type=number]){box-sizing:content-box!important;width:calc(var(--number-ch,4) * 1ch)!important;min-width:0!important;max-width:none!important;font:12px/16px Arial,sans-serif!important;font-variant-numeric:tabular-nums;height:16px!important;min-height:16px!important;padding:2px!important;margin-top:0!important;margin-bottom:0!important;appearance:textfield!important;flex:0 0 auto!important}
body input[type=number]::-webkit-inner-spin-button{appearance:none}
body #image-board-dialog .image-game-info{gap:5px;font-size:12px}
body #image-board-dialog .image-captured{flex-basis:auto;flex-wrap:nowrap;gap:2px;white-space:nowrap}
body #image-board-dialog .image-game-info label{gap:2px;white-space:nowrap}
body #image-board-dialog #image-handicap,body #image-board-dialog #image-turn{width:auto;min-width:0;min-height:22px;height:22px;padding:1px 2px;font:12px Arial,sans-serif}
.image-komi-stepper{display:inline-flex;align-items:center;gap:1px}
body #image-board-dialog .image-komi-stepper button{box-sizing:border-box;width:19px;min-width:19px;height:22px;min-height:22px;padding:1px;font:12px Arial,sans-serif}
body #image-board-dialog #image-komi{width:6ch!important}
body #image-board-dialog #image-captured-black,body #image-board-dialog #image-captured-white{width:4ch!important}
.about-open{display:block;margin:12px auto 0;font-size:12px}
#analysis-overlay .candidate-mark{pointer-events:all}#analysis-overlay .candidate-mark>*{pointer-events:all}
@media(pointer:coarse),(max-width:650px){html body :is(#numeric-sizing #numeric-field,input[type=number]){font-size:16px!important;line-height:24px!important;min-height:32px!important;height:32px!important;padding:4px!important}body #image-board-dialog #image-handicap,body #image-board-dialog #image-turn{font-size:16px;min-height:40px;height:40px}body #image-board-dialog .image-komi-stepper button{width:32px;min-width:32px;height:40px;min-height:40px;font-size:16px}body #image-board-dialog .image-game-info{gap:8px;flex-wrap:wrap}}

footer .about-open{display:block;width:max-content;max-width:100%;margin:6px auto 0;padding:0;border:0;background:transparent;box-shadow:none;font-weight:700;color:#17676a;cursor:pointer}footer .about-open:hover{text-decoration:underline}
/* GTP settings and footer — update 40 */
#engine-profile{display:none}#engine-order{display:flex;flex-direction:column;gap:3px;max-height:none;overflow-y:visible;margin:5px 0}
#engine-order .engine-order-row{display:flex;gap:4px;align-items:center}#engine-order button{min-height:27px;width:auto;flex:0 0 auto;padding:3px 8px;font-size:12px}#engine-order button:first-child{flex:1;text-align:left;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:grab}#engine-order [data-selected=true] button:first-child{background:#d7eee6;border-color:#398371;font-weight:700}
#engine-advanced{margin:8px 0}#engine-advanced textarea{width:100%;min-height:70px;font-size:12px}#engine-advanced input{width:100%}.engine-protocol{font-size:12px}
footer{width:100%;max-width:none!important;align-items:center;justify-content:space-between;flex-wrap:wrap}footer .release-label{margin-right:auto}footer .footer-links{display:flex;align-items:center;gap:14px;margin-left:auto}footer .footer-links .about-open{display:inline-block;margin:0;font-size:inherit}footer .footer-links a{margin:0}
@media(pointer:coarse){#engine-order button{min-height:36px}}

footer .footer-links a,footer .footer-links .about-open{text-decoration:underline;text-underline-offset:2px;font-weight:700}
.engine-kind-note{font-size:12px;line-height:1.6;color:#71531c}.engine-kind-row{display:flex;gap:8px;align-items:center}.engine-kind-row select{width:auto;max-width:100%}#engine-settings [hidden]{display:none!important}

#engine-order.expanded{max-height:none}
.engine-list-footer{display:flex;align-items:center;gap:10px;font-size:12px}.engine-list-footer button{width:auto;padding:2px 8px;min-height:26px}
