.foreground-summary{margin:0 0 24px;padding:16px;background:#f3f5ee;border:1px solid #e2e7db;border-radius:10px}.foreground-summary-head{display:flex;gap:8px;align-items:center}.foreground-summary h3{font-size:15px;font-weight:550}.step-tag{display:inline-grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#dce5d5;color:#36583f;font-size:12px;font-weight:600;flex-shrink:0}.foreground-summary .button{width:100%;margin-top:12px}.foreground-thumb{margin-top:12px;border-radius:8px;overflow:hidden;height:135px}.foreground-thumb img{width:100%;height:100%;object-fit:contain}.checker{background-color:#f2f1eb;background-image:linear-gradient(45deg,#e0e3d8 25%,transparent 25%),linear-gradient(-45deg,#e0e3d8 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e0e3d8 75%),linear-gradient(-45deg,transparent 75%,#e0e3d8 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}.foreground-error{font-size:12px;line-height:1.7;color:#94553b;margin-top:10px}.foreground-modes{border:0;padding:0;margin:0 0 20px}.foreground-modes legend{font-size:14px;font-weight:500;margin-bottom:10px}.foreground-modes label{display:flex;align-items:flex-start;gap:9px;padding:12px 0;cursor:pointer}.foreground-modes input{margin-top:5px;accent-color:var(--green)}.foreground-modes b{display:block;font-size:13px;font-weight:550}.foreground-modes small{display:block;font-size:11px;color:var(--muted);line-height:1.7;margin-top:3px}.general-subject{display:block;font-size:13px}.general-subject>span{font-size:11px;color:var(--muted);margin-left:5px}.general-subject input{margin-top:8px}.foreground-dialog{width:min(1080px,calc(100vw - 40px));max-width:1080px;padding:28px;max-height:94vh;overflow:auto}.foreground-dialog-head{display:flex;align-items:start;justify-content:space-between;gap:20px}.foreground-dialog-head h2{font-size:24px;margin-top:5px}.foreground-dialog-head .dialog-close{position:static;flex-shrink:0}.selection-tools{display:flex;gap:7px;flex-wrap:wrap;margin:19px 0 12px}.selection-tools button{min-height:42px;padding:9px 13px;border-radius:8px;border:1px solid var(--line);font-size:12px;background:#fff}.selection-tools button.active{background:var(--green);border-color:var(--green);color:white}.selection-options{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:14px}.selection-options label{display:flex;align-items:center;gap:8px;font-size:11px}.selection-options input{width:100px}.selection-options select{width:110px;min-height:36px;font-size:11px;padding:6px}.selection-options>button{font-size:12px;min-height:38px;border-bottom:1px solid var(--line)}.selection-workspace{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:18px}.selection-stage{max-height:52vh;min-height:220px;overflow:auto;border-radius:10px;border:1px solid var(--line)}#selectionCanvas{display:block;width:100%;height:auto;touch-action:none;cursor:crosshair}.selection-preview{font-size:12px;min-width:0}.selection-preview>.checker{margin:10px 0 15px;border:1px solid var(--line);border-radius:8px;overflow:hidden;min-height:110px}.selection-preview canvas{display:block;width:100%;height:auto}.selection-preview label{display:flex;gap:8px;flex-direction:column;font-size:11px}.selection-preview small{display:block;font-size:11px;color:var(--muted);margin-top:10px}.selection-footer{display:flex;gap:10px;align-items:center;margin-top:20px}.selection-footer>span{font-size:11px;color:var(--muted);margin-right:auto}.selection-footer .button{min-height:44px;font-size:12px}@media(max-width:760px){.foreground-dialog{width:calc(100vw - 16px);padding:18px;max-height:96dvh}.foreground-dialog-head h2{font-size:21px}.selection-workspace{grid-template-columns:1fr}.selection-stage{max-height:42dvh;min-height:160px}.selection-preview{display:grid;grid-template-columns:110px 1fr;column-gap:14px}.selection-preview>span{grid-column:1/-1}.selection-preview>.checker{grid-row:2/4;min-height:80px;margin:8px 0}.selection-preview label{margin-top:8px}.selection-preview small{margin:4px 0}.selection-tools{gap:5px}.selection-tools button{min-height:44px;font-size:11px;padding:8px 10px}.selection-options{gap:10px}.selection-footer{flex-wrap:wrap}.selection-footer>span{width:100%;margin-bottom:3px}.selection-footer .button{flex:1}}
#generalFields .foreground-modes input[type=radio]{display:inline-block;width:16px;min-width:16px;height:16px;min-height:16px;padding:0;margin:4px 0 0;border:0;background:transparent}
