section.workspace .tabs.with-photo{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}section.workspace .tabs.with-photo [role=tab],section.workspace .tabs.with-photo #audio-tab{min-width:0;padding:15px 1px;font-size:clamp(12px,3.85vw,20px);font-weight:800;color:#29251e;white-space:nowrap;letter-spacing:0}.photo-panel{padding-top:24px}.photo-intro{padding:24px;border:1px solid #d5ccb7;border-radius:16px;background:linear-gradient(125deg,#eee8d6,#fbf8ef)}.photo-intro h3{font-size:clamp(22px,4vw,30px);margin:12px 0}.photo-intro p{line-height:1.8;margin:0}.photo-controls{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0}.photo-upload{border:2px dashed #c8bb99;border-radius:14px;padding:24px;text-align:center}.photo-upload.dragging{background:#eee7cf;border-color:#826f43}.photo-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.photo-upload .photo-actions{justify-content:center}#photo-preview{display:block;width:100%;max-height:400px;object-fit:contain;margin-top:20px;border-radius:12px;background:#e9e4d9}#photo-status{line-height:1.7;color:#6c5a34}#photo-error{padding:14px;border:1px solid #b59667;border-radius:8px;color:#7b351a}#photo-text{width:100%;box-sizing:border-box;margin-bottom:12px}.photo-match-card{border:1px solid #cbbd9e;border-radius:16px;padding:24px;margin-top:24px;background:#faf7ef}.photo-match-card h3{font-size:20px;line-height:1.6;margin:0 0 12px}.photo-original{white-space:pre-wrap;font-weight:400;line-height:1.9;font-size:16px}.photo-lecture-group{border-top:1px solid #ded4bd;padding-top:16px;margin-top:20px}.photo-lecture-group h4{font-size:18px;margin:0 0 10px}.photo-lecture-group ul{padding-left:22px}.photo-lecture-group li{margin:12px 0;line-height:1.7}.photo-lecture-group a{color:#69572b;font-weight:600;text-decoration:underline}.photo-match-card>button{margin-top:16px}@media(max-width:520px){.photo-intro,.photo-upload,.photo-match-card{padding:18px}.photo-controls{gap:10px}.photo-actions button{flex:1;min-width:120px}}

#photo-crop-canvas{display:block;width:100%;height:auto;touch-action:none;cursor:crosshair;border:2px solid #b8a884;border-radius:8px}#photo-crop-wrap{margin-top:20px;scroll-margin-top:16px}#photo-crop-wrap p{line-height:1.8}

#photo-text-wrap{margin:18px 0;border-top:1px solid #d8cdb6;padding-top:16px}#photo-text-wrap summary{cursor:pointer;color:#796b4b;font-size:14px}#photo-text-wrap[open] summary{margin-bottom:14px}#photo-results{scroll-margin-top:18px}

@media(max-width:700px){section.workspace .tabs.with-photo{margin-inline:-8px;width:calc(100% + 16px)}}@media(max-width:340px){section.workspace .tabs.with-photo [role=tab],section.workspace .tabs.with-photo #audio-tab{font-size:11.8px}}

.photo-playback-card{border:1px solid #d6c9ae;border-radius:10px;padding:16px;margin:12px 0}.photo-playback-card h4{font-size:17px;line-height:1.7}.photo-time-editor{margin-top:14px}.photo-time-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:16px 0}.photo-time-grid label{min-width:0}.photo-time-grid input{width:100%;box-sizing:border-box}.photo-time-grid .audio-time-fields{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.photo-time-control p{margin:0 0 8px}.photo-link-range{font-size:15px}.photo-match-card>details:last-child{margin-top:20px;padding-top:16px;border-top:1px solid #d6c9ae}.photo-lecture-group ul{list-style:none;padding:0}

.photo-playback-card{border:0;border-top:1px solid #d6c9ae;border-radius:0;padding:20px 0;margin:0}.photo-lecture-group li:first-child .photo-playback-card{border-top:0}.photo-playback-card h4{margin:0 0 14px}.photo-playback-card .edit-panel{border:0;border-top:1px solid #ded4bd;border-radius:0;padding:18px 0 0;margin-top:20px;background:transparent}.photo-playback-card .edit-panel h3{font-size:18px;margin:0 0 12px}.photo-playback-card .inline-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.photo-playback-card label{min-width:0}.photo-playback-card input{width:100%;min-width:0;box-sizing:border-box;font-size:16px}.photo-playback-card a.play{color:#fff;text-decoration:none}.photo-playback-card .link-actions{gap:10px}

.photo-playback-output.link-card{margin:0;padding:0;border:0;background:transparent;min-width:0}

.photo-panel .photo-controls{grid-template-columns:minmax(0,1fr);padding:20px;background:#eee7d3;border:2px solid #a68b4c;border-radius:12px}.photo-controls label{min-width:0}.photo-controls .photo-book-label{display:block;font-size:24px;font-weight:800;color:#272219;margin-bottom:12px}.photo-controls #photo-book{display:block;width:100%;box-sizing:border-box;min-height:64px;padding:14px 42px 14px 16px;font-size:22px;font-weight:700;color:#272219;background-color:#fffdf8;border:2px solid #9a8556;border-radius:8px}

.photo-one-page{background:#fbefed;border:2px solid #c89188;border-radius:10px;padding:18px 14px;text-align:left;color:#8b4138}.photo-one-page strong{display:block;font-size:clamp(21px,5.6vw,28px);font-weight:900;line-height:1.5}.photo-one-page p{font-size:18px;line-height:1.75;margin:10px 0 0}

.photo-panel .photo-jump-notice{background:#fbefed;border:1px solid #c89188;border-left:4px solid #b56960;color:#8b4138;padding:14px 16px;border-radius:8px}.photo-panel .photo-jump-notice p{color:inherit;font-size:18px;line-height:1.75;margin:6px 0;font-weight:500}.photo-panel .photo-jump-notice p:nth-child(2n+3){margin-top:16px}

.photo-panel .photo-jump-notice h4{color:#8b4138;font-size:20px;font-weight:700;margin:0 0 10px}

#photo-error{color:#a33f36;background:#fbefed;border-color:#c89188;white-space:pre-line;font-weight:600;line-height:1.8}

#photo-error{font-weight:800}

.photo-desktop-drop{display:none}@media(any-pointer:fine){.photo-desktop-drop{display:flex;min-height:140px;box-sizing:border-box;flex-direction:column;align-items:center;justify-content:center;gap:10px;margin:20px 0;padding:24px;border:2px dashed #aa9263;border-radius:12px;background:#f5efdf;color:#59492c;text-align:center}.photo-desktop-drop strong{font-size:20px}.photo-desktop-drop span{font-size:15px}.photo-upload.dragging .photo-desktop-drop{background:#fff0c2;border-color:#9b741e;border-style:solid}}
