/* Shared task screenshots. These rules do not alter the six-column board. */
.thumbnail-editor.task-gallery-editor,.task-gallery-editor{display:block;min-width:0;padding:12px;border:1px dashed #c5d4c7;border-radius:10px;background:#f7faf5;margin-bottom:18px}
.tg-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.tg-toolbar strong{font-size:12px;color:#395341;font-weight:700}
.tg-count{font-size:10px;color:#7c907e;font-variant-numeric:tabular-nums}
.tg-upload{position:relative;display:inline-flex;align-items:center;margin-left:auto;overflow:hidden;padding:7px 9px;border:1px solid #bbcebc;border-radius:7px;background:#fff;color:#245342;font-size:11px;font-weight:650;cursor:pointer}
.tg-upload:hover{background:#eaf3e8}
.tg-upload.is-disabled,.tg-empty.is-disabled{opacity:.5;cursor:default}
.tg-upload:focus-within{outline:3px solid #94b7e9;outline-offset:2px}
.tg-upload input{position:absolute;width:1px;height:1px;opacity:0;padding:0;margin:0}
.tg-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:105px;border:1px dashed #d0dbcd;border-radius:7px;background:#eef3eb;color:#84957f;text-align:center;cursor:pointer;padding:12px}
div.tg-empty{cursor:default}
.tg-empty svg{width:30px;height:30px;color:#96a790}
.tg-empty span{font-size:12px;font-weight:600}
.tg-empty small{font-size:10px;color:#8c9b89}
.tg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tg-item{min-width:0;padding:0;border:1px solid #d7e0d2;border-radius:7px;background:#fff;overflow:hidden}
.tg-picture{position:relative;display:block;width:100%;padding:0;border:0;border-radius:0;background:#e9efe5;cursor:zoom-in;overflow:hidden}
.tg-picture img{display:block;width:100%;aspect-ratio:16/10;object-fit:contain;pointer-events:none;-webkit-user-drag:none}
.tg-number{position:absolute;left:4px;bottom:4px;padding:2px 5px;border-radius:4px;background:#fffffff0;color:#365140;font-size:9px;line-height:1.3;font-weight:600}
.tg-enlarge{position:absolute;right:4px;top:4px;display:grid;place-items:center;width:21px;height:21px;border-radius:4px;background:#1e513de8;color:#fff;font-size:17px;line-height:1;pointer-events:none}
.tg-item-actions{display:flex;align-items:center;gap:3px;padding:5px}
.tg-item-actions button{font-size:17px;line-height:1;min-height:25px;min-width:23px;padding:1px 5px;border-color:#e1e8dc;border-radius:4px;font-weight:500}
.tg-item-actions .tg-remove{margin-left:auto;font-size:9px;font-weight:600;min-width:0;padding:4px 5px;color:#a2464c;border-color:transparent;background:transparent}
.tg-help{margin:9px 0 0!important;color:#7d907c;font-size:10px!important;line-height:1.45!important}
.task-gallery-viewer .task-image-heading h2{flex:1}
.task-gallery-position{font-size:12px;color:#6f8273;font-variant-numeric:tabular-nums;white-space:nowrap}
.task-gallery-viewer-body{position:relative;display:flex;flex:1 1 0;min-width:0;min-height:0;overflow:hidden}
.task-gallery-side{position:absolute;top:50%;transform:translateY(-50%);z-index:2;display:grid;place-items:center;min-width:44px;width:44px;height:64px;padding:0;border:1px solid #ffffffc9;border-radius:10px;background:#123d31dd;color:#fff;box-shadow:0 3px 14px #10251d3d;font-size:42px;line-height:1;font-weight:400}
.task-gallery-side:hover{background:#245c49;color:#fff;border-color:#fff}
.task-gallery-side:disabled{opacity:.18;pointer-events:none}
.task-gallery-side.previous{left:10px}
.task-gallery-side.next{right:10px}
.task-gallery-viewer .task-image-stage{flex:1 1 auto}
.task-gallery-viewer .task-image-full{padding:0 58px}
.task-gallery-viewer.is-native .task-image-full{padding:0}
.task-gallery-viewer .task-image-status{z-index:1}
.task-image-count{position:absolute;top:5px;right:5px;max-width:calc(100% - 10px);padding:2px 5px;border-radius:4px;background:#183d34e8;color:#fff;font-size:9px;line-height:1.35;font-weight:650;pointer-events:none}
.board-section .task-image-count{top:calc(5 * var(--board-unit));right:calc(5 * var(--board-unit));padding:calc(2 * var(--board-unit)) calc(5 * var(--board-unit));font-size:max(5px,calc(9 * var(--board-unit)))}
.task-time-summary{display:block;min-width:0}
@media(max-width:500px){.thumbnail-editor.task-gallery-editor,.task-gallery-editor{padding:10px}.tg-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.tg-upload{padding:7px 8px}.tg-help{font-size:9px!important}.task-gallery-viewer .task-image-heading{flex-wrap:wrap;gap:7px}.task-gallery-viewer .task-image-heading h2{flex:1 1 55%}.task-gallery-viewer .task-image-tools{margin-left:auto}.task-gallery-position{font-size:11px}.task-gallery-side{width:36px;min-width:36px;height:50px;font-size:35px}.task-gallery-side.previous{left:5px}.task-gallery-side.next{right:5px}.task-gallery-viewer .task-image-full{padding:0 43px}.task-gallery-viewer.is-native .task-image-full{padding:0}}
