.carousel-page{font-family:Arial,"Malgun Gothic",sans-serif;background:#f5f6fb}
.carousel-page [hidden]{display:none!important}
.carousel-main{width:min(1240px,calc(100% - 40px));margin:0 auto;padding:28px 0 48px}
.carousel-hero{display:flex;justify-content:space-between;align-items:center;gap:22px;margin-bottom:24px}
.tool-back{display:inline-flex;min-height:44px;align-items:center;color:#697188;font-size:13px}
.carousel-hero h1{margin:2px 0 10px;font-size:32px;letter-spacing:-.05em;line-height:1.3}
.carousel-hero p{margin:0;color:#6b7386;line-height:1.8;font-size:14px}
.local-badge{flex-shrink:0;border:1px solid #d7e9e6;color:#2c7770;background:#f0faf7;font-size:12px;padding:11px 14px;border-radius:24px}
.tool-card{min-width:0;background:#fff;border:1px solid #e0e4ef;border-radius:18px;padding:22px;box-shadow:0 6px 20px #27344d05}
.tool-card h2{font-size:18px;margin:0;letter-spacing:-.03em}.tool-card h3{font-size:14px;margin:0}
.card-heading,.upload-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;flex-wrap:wrap}
.tool-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:1px solid #dce1ed;border-radius:10px;padding:10px 16px;background:#fff;color:#4b5870;font-size:14px;font-weight:600;line-height:1.4}
.tool-button:hover{background:#f5f5ff;border-color:#b6b1ef}.tool-button.primary{background:#6860e9;color:white;border-color:#6860e9}.tool-button.primary:hover{background:#5750d3}
.tool-button:disabled{opacity:.45;cursor:not-allowed}
.carousel-page :is(button,input,select,a,canvas):focus-visible{outline:3px solid #8e88f4;outline-offset:3px}
.photo-drop{display:flex;width:100%;align-items:center;justify-content:center;gap:16px;border:1px dashed #c6cbe4;border-radius:12px;background:#fafbff;color:#38455e;padding:22px;min-height:116px}
.photo-drop.is-over{background:#efedff;border-color:#6860e9}.photo-drop:disabled{opacity:.6}
.photo-drop strong{display:block;font-size:16px;line-height:1.6}.photo-drop small{display:block;font-size:12px;color:#748097;line-height:1.7;margin-top:3px}
.upload-symbol{font-size:28px;font-weight:300;width:46px;height:46px;display:grid;place-items:center;background:#eeecfc;border-radius:12px;color:#7165d8;flex-shrink:0}
.photo-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.photo-summary>span{font-size:13px;color:#4e5a70;overflow-wrap:anywhere;min-width:0}
.photo-summary .tool-button{flex-shrink:0}.tool-hint{font-size:12px;color:#707c90;line-height:1.75;margin:10px 0 0;overflow-wrap:anywhere}
.carousel-jump{display:none}.carousel-layout{display:grid;grid-template-columns:minmax(0,1fr) 324px;gap:18px;margin-top:18px;align-items:start}
.carousel-preview{grid-column:1;grid-row:1}.carousel-settings{grid-column:2;grid-row:1/3}.carousel-export{grid-column:1;grid-row:2}
.count-chip{font-size:12px;border-radius:18px;background:#eeecff;color:#635adc;font-weight:700;padding:7px 12px}
.preview-tabs{display:flex;border-radius:10px;background:#f1f3f8;padding:4px;margin-bottom:16px;gap:4px}
.preview-tabs button{flex:1;min-width:0;min-height:44px;border:0;border-radius:8px;background:transparent;color:#788196;font-size:14px;font-weight:600}.preview-tabs button[aria-pressed=true]{color:#6159d8;background:#fff;box-shadow:0 2px 5px #30334f0d}
.empty-preview{min-height:340px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:30px 16px;background:#f6f7fb;border-radius:12px;color:#68758b}
.empty-preview>span{font-size:48px;color:#b3aedc;margin-bottom:16px}.empty-preview strong{font-size:16px}.empty-preview p{font-size:13px;line-height:1.7}
.source-frame{height:clamp(200px,35vh,370px);height:clamp(200px,35svh,370px);display:flex;align-items:center;justify-content:center;background:#eff1f7;border-radius:12px;overflow:hidden;padding:10px}
#cropCanvas{width:auto;height:auto;max-width:100%;max-height:100%;cursor:move;touch-action:none;box-shadow:0 2px 12px #1c254521}
.swipe-frame{height:clamp(260px,44vh,450px);height:clamp(260px,44svh,450px);display:flex;align-items:center;justify-content:center;background:#f3f4f9;border-radius:12px;padding:14px;touch-action:pan-y;overflow:hidden}
#slideCanvas{width:auto;height:auto;max-width:100%;max-height:100%;box-shadow:0 3px 14px #1c254521;object-fit:contain}
.slide-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.slide-controls output{font-size:14px;font-weight:700;color:#5d577b;font-variant-numeric:tabular-nums}
.thumbnail-strip{display:flex;overflow-x:auto;gap:8px;padding:6px 2px 10px;margin-top:16px;overscroll-behavior-x:contain}
.thumbnail-strip button{flex:0 0 66px;min-width:0;border:2px solid transparent;background:#f6f6fb;padding:3px 3px 0;border-radius:8px;color:#747187;font-size:12px}
.thumbnail-strip button[aria-pressed=true]{border-color:#7366ee;color:#5f53d2;background:#f1efff}.thumbnail-strip canvas{display:block;width:56px;height:auto;margin:auto;border-radius:3px}.thumbnail-strip span{display:block;padding:5px}
.crop-info{color:#6f7288;font-size:12px;line-height:1.8;margin:0;overflow-wrap:anywhere}.crop-info.is-warning{color:#91641b;background:#fff8e9;padding:10px;border-radius:8px}
.carousel-settings fieldset{border:0;padding:0;margin:0;min-width:0}.carousel-settings fieldset:disabled .tool-field,.carousel-settings fieldset:disabled .tool-button{opacity:.55}
.tool-field{display:grid;gap:8px;margin-bottom:16px;min-width:0}.tool-field>span{display:flex;justify-content:space-between;gap:8px;font-size:13px;color:#647189;line-height:1.5}.tool-field output{color:#6258d4;font-weight:700}
.tool-field :is(input[type=text],select){width:100%;min-width:0;min-height:46px;border:1px solid #dce1ed;border-radius:10px;padding:10px;background:#fff;color:#303c52;font-size:16px}
.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.range-field input{width:100%;min-width:0;min-height:32px;margin:0;accent-color:#7263ec}.range-field input:disabled{opacity:.45}
.position-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #edf0f5;padding-top:16px;margin:4px 0 12px}
.position-heading .tool-button{font-size:12px;padding:8px 12px}.watermark-heading{margin:20px 0 16px;border-top:1px solid #edf0f5;padding-top:12px}
.tool-check{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px;font-weight:600}.tool-check input{accent-color:#7062e8;width:18px;height:18px;flex-shrink:0}
#selectWatermark{width:100%}#imageWatermarkFields{margin-bottom:16px}.export-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.export-actions>button{flex:1;min-width:150px}
.export-status{font-size:13px;line-height:1.7;color:#5a5978;margin:14px 0 0;overflow-wrap:anywhere}.output-list{display:grid;gap:8px;margin-top:12px}.output-list a{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px;border:1px solid #e4e6ef;border-radius:9px;font-size:13px;min-height:48px;overflow-wrap:anywhere;color:#585384}.output-list a span{min-width:0}.output-list a small{white-space:nowrap;color:#8990a0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1180px){.carousel-preview{position:static}.carousel-hero{align-items:flex-start;flex-direction:column;gap:14px}.carousel-main{width:calc(100% - 24px);padding-top:14px}.carousel-layout{grid-template-columns:minmax(0,1fr) 290px;gap:12px}.tool-card{padding:16px}.carousel-jump{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}.carousel-jump a{display:flex;align-items:center;justify-content:center;text-align:center;min-height:44px;padding:8px 4px;background:#fff;border:1px solid #e0e4ef;border-radius:10px;color:#686184;font-size:13px;font-weight:600}.carousel-layout section{scroll-margin-top:16px}.empty-preview{min-height:280px}}
@media(min-width:600px) and (max-width:760px){.carousel-layout{grid-template-columns:minmax(0,1fr) 260px}.tool-card{padding:12px}.field-pair{gap:8px}.tool-card h2{font-size:16px}.slide-controls .tool-button{padding:8px 10px;font-size:12px}}
@media(max-width:599px){.carousel-main{width:calc(100% - 20px)}.carousel-hero h1{font-size:27px}.carousel-hero p{font-size:13px}.carousel-hero{margin-bottom:18px}.carousel-layout{display:flex;flex-direction:column}.carousel-layout>section{width:100%}.carousel-preview{order:0}.carousel-settings{order:1}.carousel-export{order:2}.tool-card{border-radius:14px;padding:14px}.photo-drop{padding:18px 12px;gap:10px}.photo-drop strong{font-size:14px}.photo-drop small{font-size:11px}.upload-symbol{width:34px;height:40px;font-size:23px}.photo-summary{align-items:flex-start}.photo-summary .tool-button{font-size:12px;padding:8px}.local-badge{font-size:11px}.empty-preview{min-height:240px}.export-actions{flex-direction:column}.export-actions>button{width:100%}.source-frame{height:280px}.swipe-frame{height:360px;height:min(360px,52svh)}.output-list a{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.carousel-page{scroll-behavior:auto}}
