#s57Photo{position:fixed;inset:0;width:100dvw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#f6f8fb;color:#172d44;font:14px system-ui;overflow:hidden}#s57Photo[open]{display:flex;flex-direction:column}#s57Photo header{display:flex;gap:12px;align-items:center;background:#fff;border-bottom:1px solid #d6e0ea;padding:12px;flex:none}#s57Photo header div{flex:1;min-width:0}#s57Photo header strong{display:block;letter-spacing:.05em}#s57Photo header em{font-style:normal;color:#176ac4}#s57Photo small{display:block;color:#607489}#s57Photo button{border:1px solid #cddbe9;background:#fff;border-radius:7px;color:#183650;padding:8px 10px;font:600 12px system-ui;cursor:pointer}#s57Photo button.active,#s57Photo #phConfirm,#s57Photo #phSave{background:#1268c7;color:#fff;border-color:#1268c7}#s57Photo button:disabled{opacity:.5;cursor:default}#s57Photo .ph-layout{flex:1;min-height:0;display:grid;grid-template-columns:220px minmax(0,1fr) 255px}#s57Photo aside{padding:12px;overflow:auto;background:#fff;border-right:1px solid #d6e0ea}#s57Photo aside h3{font-size:14px;margin:10px 0}#s57Photo aside button{margin-bottom:5px;width:100%;text-align:left}#s57Photo aside label{display:block;margin:8px 0;font-size:12px}#s57Photo input:not([type=file]){width:100%;padding:8px;border:1px solid #cddbe9;border-radius:5px;margin-top:4px;color:#183650}#s57Photo main{min-height:0;display:flex;flex-direction:column;background:#142235;min-width:0}#s57Photo .ph-top{display:flex;align-items:center;gap:8px;background:#edf2f6;padding:8px;flex-wrap:wrap}#phName{flex:1}#phScale{font-size:11px}#s57Photo .ph-stage{position:relative;flex:1;min-height:0}#phCanvas{width:100%;height:100%;display:block;touch-action:none}#phEmpty{position:absolute;top:45%;left:12%;right:12%;text-align:center;color:#c7d7e9;pointer-events:none}#phStatus{color:#e0edff;font-size:12px;padding:10px;min-height:36px;background:#20344e}#s57Photo .ph-note{font-size:11px;color:#607489;line-height:1.5}#phMarks article{border:1px solid #d6e0ea;border-radius:8px;padding:9px;margin-bottom:7px}#s57Photo hr{border:0;border-top:1px solid #dce5ed;margin:14px 0}@media(max-width:760px){#s57Photo .ph-layout{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr) minmax(0,.7fr)}#s57Photo main{grid-row:1;grid-column:1/3}#s57Photo aside{grid-row:2}#s57Photo aside:last-child{grid-column:2}#s57Photo header{padding:7px}#s57Photo header small{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
