.tk-photo-dialog{position:fixed;inset:0;width:min(1240px,96vw);height:min(920px,94dvh);max-width:96vw;max-height:94dvh;margin:auto;padding:0;border:1px solid #d7d7cd;border-radius:16px;background:#f7f4ed;color:#253b31;box-shadow:0 22px 80px #0005;font:15px/1.5 Arial,sans-serif;overflow:hidden;z-index:100000}.tk-photo-dialog::backdrop{background:#17251ee0}.tk-photo-dialog[open]{display:flex;flex-direction:column}.tk-photo-dialog *{box-sizing:border-box}.tk-photo-dialog [hidden]{display:none!important}.tk-photo-head{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#293e33;color:#fff;padding:15px 22px}.tk-photo-head h2{color:inherit!important;font-size:22px!important;line-height:1.25!important;margin:4px 0!important}.tk-photo-head small{font-size:12px;opacity:.8}.tk-photo-dialog button,.tk-photo-upload-label{display:inline-flex;align-items:center;justify-content:center;border:1px solid #bfc8bd;border-radius:9px;background:#fff;color:#293e33;padding:10px 13px;min-height:44px;font:600 13px/1.25 Arial,sans-serif;cursor:pointer;text-align:center}.tk-photo-dialog button:disabled{opacity:.4;cursor:default}.tk-photo-dialog button:focus-visible,.tk-photo-dialog input:focus-visible,.tk-photo-dialog canvas:focus-visible{outline:3px solid #b54b35;outline-offset:2px}.tk-photo-dialog .tk-photo-primary{background:#ac4933;border-color:#ac4933;color:#fff}.tk-photo-body{display:grid;grid-template-columns:minmax(0,1fr) 330px;flex:1;min-height:0}.tk-photo-stage{background:#e7e6df;min-width:0;min-height:0;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}.tk-photo-stage canvas{display:block;touch-action:none;max-width:100%;max-height:100%;object-fit:contain}.tk-photo-empty{text-align:center;max-width:360px;padding:25px}.tk-photo-empty strong{font-size:23px;font-weight:500}.tk-photo-empty p{color:#626b60}.tk-photo-tools{overflow:auto;padding:18px;border-left:1px solid #deded3}.tk-photo-dialog p{font:13px/1.5 Arial,sans-serif;margin:10px 0}.tk-photo-upload{display:flex;gap:8px;flex-wrap:wrap}.tk-photo-upload-label{position:relative;overflow:hidden;background:#293e33;color:#fff}.tk-photo-upload-label:focus-within{outline:3px solid #b54b35;outline-offset:2px}.tk-photo-upload-label input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}.tk-photo-actions{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}.tk-photo-dialog button[aria-pressed=true]{background:#e2e9dd;border-color:#71836c}.tk-photo-dialog fieldset{border:0;padding:0;margin:15px 0}.tk-photo-dialog legend{font-size:14px;font-weight:600;margin-bottom:12px}.tk-photo-fields label,.tk-photo-exposure{display:block;margin:0 0 9px}.tk-photo-fields label>span{display:flex;justify-content:space-between;gap:8px;font-size:13px}.tk-photo-dialog output{font-variant-numeric:tabular-nums;color:#a24832}.tk-photo-dialog input[type=range]{width:100%;accent-color:#ac4933;margin:4px 0;min-height:25px}.tk-photo-dialog input[type=number]{width:100%;border:1px solid #c9cfc4;background:#fff;color:#293e33;border-radius:7px;font:16px Arial;padding:10px;min-height:44px;margin:5px 0 10px}.tk-photo-dialog details{border-top:1px solid #deded3;padding:12px 0}.tk-photo-dialog summary{cursor:pointer;font-size:13px;font-weight:600}.tk-photo-note{color:#687064}.tk-photo-foot{padding:13px 22px;border-top:1px solid #d8ddcf;display:flex;gap:10px;justify-content:flex-end;align-items:center;background:#f7f4ed}.tk-photo-foot span{margin-right:auto;font-size:12px;color:#65705e}.tk-photo-foot button{flex-shrink:0}#tk-photo-lock-badge{position:absolute;top:12px;left:12px;padding:7px 10px;border-radius:6px;background:#293e33ed;color:#fff;font-size:12px;pointer-events:none}#tk-photo-entry{width:100%;margin:10px 0 0;padding:13px 18px;border-radius:10px;border:1px solid #aab8a5;background:#f7f4ed;color:#304a3d;font:600 14px Arial;cursor:pointer}#tk-photo-summary{padding:12px;border-radius:8px;background:#eef0e7;color:#304a3d;font-size:13px}#tk-photo-summary button{display:block;margin-top:8px;padding:8px 12px;border:1px solid #aab8a5;border-radius:7px;background:#fff;color:#304a3d;cursor:pointer}.tk-working #tk-photo-entry{display:none}@media(max-width:740px){.tk-photo-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;border:0}.tk-photo-head{padding:10px 12px}.tk-photo-head h2{font-size:18px!important}.tk-photo-head button{max-width:130px}.tk-photo-body{display:flex;flex-direction:column}.tk-photo-stage{flex:0 0 38%;min-height:150px}.tk-photo-tools{flex:1;min-height:0;border-left:0;border-top:1px solid #deded3;padding:12px 16px}.tk-photo-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px 15px}.tk-photo-foot{padding:9px 12px;flex-wrap:wrap;gap:7px}.tk-photo-foot span{width:100%;margin:0;font-size:11px}.tk-photo-foot button{flex:1;padding:10px 8px;font-size:12px}}@media(max-height:480px) and (min-width:600px){.tk-photo-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.tk-photo-body{display:grid;grid-template-columns:minmax(0,1fr) 290px}.tk-photo-stage{height:100%;min-height:0}.tk-photo-head{padding:7px 12px}.tk-photo-foot span{width:auto}.tk-photo-foot{padding:7px 12px}.tk-photo-head h2{font-size:17px!important}}
