.repair-progress-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.repair-progress-heading h2{margin:0}
.repair-album-button,.repair-album button{transition:transform .12s,background .12s;cursor:pointer}
.repair-album-button{border:0;background:transparent;color:#087f83;padding:8px;display:inline-flex;align-items:center;justify-content:center}
.repair-album-button svg,.repair-album svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.repair-album-button:hover,.repair-album button:hover{transform:translateY(1px);background:#e7f4f3}
.repair-album-button:active,.repair-album button:active{transform:translateY(2px);background:#d7ecea}
.repair-album{box-sizing:border-box;width:min(860px,calc(100vw - 24px));max-height:90dvh;overflow:auto;border:1px solid #cfe3e6;border-radius:18px;padding:24px;color:#203e4c;background:#fff}
.repair-album::backdrop{background:rgba(23,62,72,.4)}
.repair-album h2{font-size:20px;margin:0 42px 18px 0}
.repair-album .album-close{position:absolute;right:8px;top:8px;border:0;background:transparent;width:40px;height:40px;font-size:27px;padding:0;color:#087f83}
.album-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.album-toolbar button{display:inline-flex;padding:8px;border:0;border-radius:8px;color:#087f83;background:#f3f7f8}
.album-toolbar button:disabled{opacity:.4;cursor:default;transform:none}
.album-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;max-height:46dvh;overflow:auto;padding:3px}
.album-tile{position:relative;border:1px solid #d5e4e7;border-radius:10px;overflow:hidden;min-width:0;background:#f3f7f8}
.album-tile:has(input:checked){outline:2px solid #087f83;outline-offset:-2px}
.album-tile label{position:absolute;top:5px;left:5px;z-index:1;padding:5px;background:#fff;border-radius:5px;display:flex}
.album-tile input{width:19px;height:19px;margin:0;accent-color:#087f83}
.album-tile button{display:block;border:0;background:transparent;padding:0;width:100%;color:inherit;text-align:left}
.album-tile img{display:block;width:100%;height:125px;object-fit:cover}
.album-tile span{display:block;font-size:12px;padding:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.album-drop{margin-top:18px;border:2px dashed #9dc7cb;border-radius:12px;padding:24px 12px;text-align:center;background:#f3f9f9;color:#087f83;cursor:pointer}
.album-drop.drag-over{background:#daf2ef;border-color:#087f83}
.album-drop small{display:block;margin-top:6px;color:#56747c}
.album-feedback{font-size:14px;min-height:22px;margin:12px 0 0;white-space:pre-line}
.album-preview{display:block;max-width:100%;max-height:72dvh;object-fit:contain;margin:auto}
.album-empty{grid-column:1/-1;text-align:center;padding:35px 10px;color:#647e85}
@media(max-width:480px){.repair-album{padding:18px}.album-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.repair-album-editor-host{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:transparent;overflow:hidden}
.repair-album-editor-host::backdrop{background:transparent}

.repair-album-editor-host .hbd-save-badge{font-size:0!important}
.repair-album-editor-host .hbd-save-badge::after{content:"편집본 보관함에 저장";font-size:14px}
.repair-album-editor-host .hbd-save-badge:disabled::after{content:"처리 중…"}

/* Keep a visible photo strip below the hover menu so the pointer can return to editing. */
html body .repair-album-editor-host .hbd-modal .hbd-panel .hbd-control-dock{height:min(44dvh,400px)!important;min-height:0!important;overflow:auto!important}

/* Album editor only: adjustable workspace, without stretching the source image. */
html body .repair-album-editor-host .repair-album-photo-editor .hbd-panel{overflow-y:auto!important}
html body .repair-album-editor-host .repair-album-photo-editor .hbd-stage{box-sizing:border-box;flex:none!important;min-height:160px!important;max-height:none!important;overflow:auto!important;display:block!important}
html body .repair-album-editor-host .repair-album-photo-editor .hbd-stage canvas{max-height:none!important}
.album-stage-resize{height:18px;flex:none;cursor:ns-resize;touch-action:none;display:flex;align-items:center;justify-content:center;border-radius:7px;background:#edf5f6;color:#087f83}
.album-stage-resize::after{content:"";width:52px;border-top:3px solid #82b9bf;border-bottom:3px solid #82b9bf;height:3px}
.album-stage-resize:hover,.album-stage-resize.dragging,.album-stage-resize:focus-visible{background:#cee9eb;outline:2px solid #087f83;outline-offset:-2px}

.album-tile button.album-photo-edit{position:absolute;top:5px;right:5px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;padding:0;border-radius:6px;background:#ffffffed;color:#087f83;z-index:2;cursor:pointer;transition:transform .12s,background .12s}
.album-tile button.album-photo-edit:hover{background:#d9f0ef;transform:translateY(-1px)}
.album-tile button.album-photo-edit:active{transform:scale(.92)}

/* Compact translucent photo actions; preserve the existing tile press effect. */
.album-tile label,.album-tile button.album-photo-edit{box-sizing:border-box;width:28px;height:28px;padding:0;display:flex;align-items:center;justify-content:center;border:0;border-radius:7px;background:rgba(255,221,45,.72);color:#29434a;opacity:0;pointer-events:none;transition:opacity .14s,background .14s}
.album-tile label{top:5px;left:5px;z-index:2;cursor:pointer}
.album-tile input{width:16px;height:16px;accent-color:#087f83;cursor:pointer}
.album-tile:hover label,.album-tile:hover button.album-photo-edit,.album-tile:has(:focus-visible) label,.album-tile:has(:focus-visible) button.album-photo-edit{opacity:1;pointer-events:auto}
.album-tile button.album-photo-edit:hover,.album-tile label:hover{background:rgba(255,221,45,.88);transform:none}
.album-tile button.album-photo-edit:active{transform:scale(.92)}
@media(hover:none){.album-tile label,.album-tile button.album-photo-edit{opacity:1;pointer-events:auto}}
@media(prefers-reduced-motion:reduce){.album-tile label,.album-tile button.album-photo-edit{transition:none}}

html body .repair-album .album-tile button.album-photo-edit{width:28px!important;min-width:28px!important;max-width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;aspect-ratio:1;flex:none!important}
html body .repair-album-editor-host .repair-album-photo-editor .album-scroll-stage{overflow-y:scroll!important;scrollbar-width:auto!important;scrollbar-gutter:stable;scrollbar-color:#638b96 #e1ecef;overflow-anchor:none}
.album-scroll-stage .album-photo-space{height:45vh;min-height:200px;pointer-events:none}
html body .album-scroll-stage::-webkit-scrollbar{display:block!important;width:14px!important}
html body .album-scroll-stage::-webkit-scrollbar-track{background:#e1ecef}
html body .album-scroll-stage::-webkit-scrollbar-thumb{background:#638b96;border:3px solid #e1ecef;border-radius:8px}

.album-scroll-stage{position:relative;overflow-x:auto!important}
.album-photo-navigation{position:sticky;top:4px;left:calc(50% - 140px);width:280px;height:34px;margin:0 auto 8px;display:flex;align-items:center;justify-content:center;gap:3px;z-index:10;border-radius:11px;background:rgba(255,255,255,.88);box-shadow:0 2px 10px #24445425;backdrop-filter:blur(6px)}
html body .album-photo-navigation button{width:30px!important;min-width:30px!important;max-width:30px!important;height:28px!important;min-height:28px!important;padding:0!important;border:0!important;border-radius:7px!important;display:flex;align-items:center;justify-content:center;background:transparent;color:#087f83;cursor:pointer}
html body .album-photo-navigation button:hover,html body .album-photo-navigation button[aria-pressed=true]{background:#d4eeed}
html body .album-photo-navigation button:active{transform:scale(.9)}

.album-tile .album-edited-badge{position:absolute;right:38px;top:6px;padding:3px 6px;border-radius:5px;background:#2672ed;color:white;font-size:11px;line-height:18px;z-index:2}
html body .repair-editor-save{margin-left:auto;margin-right:12px;width:34px!important;min-width:34px!important;height:34px!important;padding:5px!important;border:0;border-radius:8px;background:#087f83;color:white;cursor:pointer}
.repair-editor-save:hover{background:#05666b}.repair-editor-save:active{transform:scale(.92)}
.repair-editor-save.save-attention{animation:repair-save-flash .65s ease-in-out 4}
@keyframes repair-save-flash{50%{background:#ffdc40;color:#244454;box-shadow:0 0 0 4px #ffdc4040}}
html body .repair-confirm-icon{font-size:0!important;min-width:30px!important;width:30px!important;height:30px!important;padding:0!important;border-radius:50%!important}
.repair-confirm-icon::after{content:'✓';display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border:1.7px solid currentColor;border-radius:50%;font-size:17px;line-height:1}

html body .album-scroll-stage.photo-pan-active canvas{cursor:grab!important}
html body .album-scroll-stage.photo-pan-dragging,html body .album-scroll-stage.photo-pan-dragging canvas{cursor:grabbing!important}

html body .repair-album-photo-editor .hbd-panel>header .repair-editor-save,html body .repair-album-photo-editor .hbd-panel>header .hbd-x{box-sizing:border-box!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;min-height:32px!important;max-height:32px!important;aspect-ratio:1!important;flex:0 0 32px!important;align-self:center!important;padding:5px!important;border-radius:7px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important}

html body .repair-album-editor-host .hbd-modal .hbd-panel .hbd-control-dock{height:auto!important;max-height:55dvh!important;min-height:0!important;padding-bottom:6px!important}
html body .repair-album-photo-editor .hbd-save-row{display:none!important}
html body .repair-album-photo-editor .hbd-tip{height:auto!important;min-height:0!important;flex:0 0 auto!important;margin:5px 0!important;padding:0 5px!important;line-height:1.4!important;font-size:12px!important}
html body .repair-album-photo-editor .hbd-options{min-height:0!important;padding-bottom:0!important;margin-bottom:0!important}

html body .repair-album-editor-host .hbd-modal .hbd-panel .hbd-control-dock:has(.repair-menu-viewport){overflow:visible!important;height:auto!important;max-height:none!important;padding:0 0 3px!important;display:block!important}
.repair-menu-viewport{overflow:auto;min-height:0;box-sizing:border-box;overscroll-behavior:contain}
.repair-menu-content{display:flow-root}
.repair-menu-grip{height:10px;cursor:ns-resize;touch-action:none;display:flex;align-items:center;justify-content:center;background:#edf7f7}
.repair-menu-grip::after{content:'';height:3px;width:54px;background:#82b9bf;border-radius:3px}
.repair-menu-grip:hover{background:#cfe9e9}
html body .repair-album-photo-editor .repair-menu-grip+.hbd-tip{margin:0!important;padding:2px 5px!important;min-height:0!important;height:auto!important;line-height:16px!important}
html body .repair-menu-content .hbd-object-bar[hidden]{display:none!important}

.repair-window-resize{position:fixed;height:12px;z-index:400150;cursor:ns-resize;touch-action:none;border-radius:0 0 9px 9px;background:transparent}
.repair-window-resize:hover,.repair-window-resize:focus-visible{background:rgba(8,127,131,.22);outline:none}

html body .repair-album-photo-editor button.hbd-all-fold,html body .repair-album-photo-editor button.hbd-detail-fold{border:0!important;outline:none!important;box-shadow:none!important;background:transparent!important;padding:2px!important}
html body .repair-album-photo-editor button.hbd-all-fold:hover,html body .repair-album-photo-editor button.hbd-detail-fold:hover{color:#00a6a6!important;transform:scale(1.1)}
html body .repair-menu-content{padding-bottom:0!important;margin-bottom:0!important}
html body .repair-menu-content .hbd-options{margin-bottom:0!important;padding-bottom:0!important}

html body .repair-album-photo-editor .hbd-object-bar>button:not([data-object-action]){font-size:0!important;width:32px!important;min-width:32px!important;height:32px!important;padding:4px!important}
html body .repair-album-photo-editor .hbd-object-bar>button:nth-of-type(2)::after{content:'×';font-size:24px;line-height:1}
html body .repair-album-photo-editor .hbd-object-bar>button:nth-of-type(3)::after{content:'';display:block;width:24px;height:24px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Ccircle cx='8' cy='8' r='5'/%3E%3Cpath d='m11 12 4 4M14 12h9M16 12v-2h5v2M15 14l1 8h5l1-8M18 15v5'/%3E%3C/svg%3E") center/contain no-repeat}
.repair-focused-option{position:fixed;z-index:400210;background:white;border:1px solid #bdd9de;border-radius:10px;box-shadow:0 8px 24px #163b4933;width:320px;min-height:125px;padding:12px;box-sizing:border-box}
.repair-focused-option strong{font-size:13px}.repair-focused-option>button{position:absolute;right:8px;bottom:6px;width:30px;height:30px;padding:3px;border:0;border-radius:50%;background:#087f83;color:white;cursor:pointer}
html body .repair-option-mode .hbd-panel .hbd-control-dock{z-index:400220!important;clip-path:none!important;opacity:1!important;visibility:hidden!important;pointer-events:none!important;box-shadow:none!important;background:transparent!important}
html body .repair-option-mode .hbd-control-dock *{visibility:hidden!important}
html body .repair-option-mode .repair-option-floating,html body .repair-option-mode .repair-option-floating *{visibility:visible!important;pointer-events:auto!important}
html body .repair-option-mode .hbd-control-dock .repair-option-floating{position:fixed!important;z-index:400220!important;max-width:290px!important;background:#fff!important;margin:0!important;padding:0!important;border:0!important}

.album-repair-details{display:grid;grid-template-columns:1fr;gap:12px;margin:16px 0;padding:16px;border:1px solid #bddcdd;border-radius:12px;background:#f5fbfb}.album-repair-details label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:700}.album-repair-details input,.album-repair-details textarea{width:100%;box-sizing:border-box;padding:10px;border:1px solid #bddcdd;border-radius:8px;font:inherit;font-weight:400;color:#214b55;background:white}.album-repair-details [readonly]{background:#edf3f4}.album-notes-actions{display:flex;justify-content:space-between;align-items:center;gap:10px}.album-notes-actions span{font-size:12px;color:#557b83}

.album-record-top{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-bottom:10px}.album-record-top .album-close{position:static!important}.album-record-top button{border:0;background:transparent;color:#087f83}.album-record-customer{padding:12px 16px;background:#edf7f7;border-radius:10px;line-height:1.8;overflow-wrap:anywhere}.repair-record-summary{border:1px solid #badbdc;border-radius:12px;padding:16px;margin-top:14px}.repair-record-summary p{white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0}.repair-record-images{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.repair-record-images img{width:120px;height:90px;object-fit:contain;border-radius:6px;background:#f0f6f6}.all-repair-records [data-search]{width:100%;box-sizing:border-box;padding:10px}

.album-notes-actions [data-save-notes]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;padding:8px;border:0;background:transparent;box-shadow:none;color:#087f83;cursor:pointer}.album-notes-actions [data-save-notes].is-dirty{color:#c57500;background:#fff3d8;border-radius:8px}.album-notes-actions [data-save-notes]:disabled{opacity:.4;cursor:wait}

.album-record-dates{font-weight:400;display:block;padding:5px 0;overflow-wrap:anywhere}.album-contact-icon{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;width:30px;height:30px;margin-left:8px;color:#00858b;text-decoration:none}.album-contact-icon svg{width:21px;height:21px}

.album-record-customer .album-customer-emphasis{font-size:17px;font-weight:700;line-height:1.8}

.repair-record-board{width:100%;border-collapse:collapse;table-layout:fixed;border-top:2px solid #087f83;font-size:14px}.repair-record-board th{background:#edf6f7;padding:13px 7px;font-weight:700}.repair-record-board td{padding:15px 7px;border-bottom:1px solid #dbe7e9;text-align:center;overflow-wrap:anywhere}.repair-record-board th:first-child{width:50px}.repair-record-board th:nth-child(3){width:80px}.repair-record-board th:nth-child(4){width:100px}.repair-record-board th:last-child{width:50px}.repair-record-board td:nth-child(2){text-align:left}.repair-record-board .repair-board-title{border:0;background:none;padding:0;color:#173e48;text-align:left;font-size:15px;font-weight:600;cursor:pointer}.repair-record-board .repair-board-title:hover{text-decoration:underline;color:#00858b}.repair-board-pages{display:flex;gap:7px;justify-content:center;margin-top:22px}.repair-board-pages button{min-width:34px;padding:6px;border:0;background:transparent;color:#44636b}.repair-board-pages [aria-current]{background:#087f83;color:white;border-radius:5px}@media(max-width:600px){.repair-record-board th:first-child,.repair-record-board td:first-child,.repair-record-board th:last-child,.repair-record-board td:last-child{display:none}.repair-record-board th:nth-child(3){width:62px}.repair-record-board th:nth-child(4){width:78px}.repair-record-board td{font-size:12px;padding:12px 4px}}

.repair-album [data-files][hidden]{display:none!important}

.album-grid .album-file-group{grid-column:1 / -1;font-size:15px;font-weight:700;color:#176069;padding:12px 0 4px}.album-grid .album-file-group.has-divider{border-top:2px dashed #aacdd0;margin-top:18px;padding-top:20px}.album-file-extension{height:125px;display:grid;place-items:center;background:linear-gradient(135deg,#edf5f5,#dceced);color:#087f83;font-size:25px;font-weight:800;letter-spacing:.04em}

.album-repair-details .album-textarea-wrap{position:relative;width:100%;min-width:0}.album-repair-details .album-textarea-wrap textarea{display:block;resize:none!important;box-sizing:border-box;margin-bottom:0!important;max-height:none!important}.album-repair-details .album-textarea-edge{position:absolute;bottom:-4px;left:0;right:0;height:9px;cursor:ns-resize;touch-action:none;background:transparent;border:0;z-index:2}.album-repair-details .album-textarea-edge:focus-visible{outline:1px dotted #087f83}

/* Stable file tiles and persistent selected controls. */
.repair-album .album-tile:has(input:checked) label{opacity:1;pointer-events:auto}
.repair-album .album-tile .album-edited-badge{background:#ffdd2d;color:#29434a}
.repair-album .album-tile{align-self:start;box-sizing:border-box;height:162px;min-width:0}
.repair-album .album-tile>button:not(.album-photo-edit){height:160px;min-width:0;transform:none}
.repair-album .album-tile>button>span,.repair-album .album-tile>a{box-sizing:border-box;height:35px;line-height:19px;font-size:12px;display:block}
.album-document-preview{position:relative;height:125px;overflow:hidden}.album-document-preview img{position:absolute;inset:0;object-fit:contain!important;background:#f3f7f8;pointer-events:none}
.repair-album .album-tile video,.repair-album .album-tile audio{display:block}

.repair-album .album-record-top>button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;min-height:34px;padding:6px;box-sizing:border-box;border:1px solid #b4d8dc;border-radius:7px;background:#fff;color:#087f83}.repair-album .album-record-top>button svg{display:block;width:20px;height:20px;flex:none}.repair-album .album-record-top>button:hover{background:#e0f7f3}.repair-album .album-record-top>button:active{transform:translateY(1px)}
