/* Tool-specific details; layout and controls use the shared apps styles. */
.auto-crop-studio .auto-crop-empty { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 40px 24px; color: var(--muted); }
.auto-crop-studio .auto-crop-empty h3 { margin: 0; color: var(--ink); font-size: 18px; font-weight: 500; }
.auto-crop-studio .auto-crop-empty p { margin: 0; }
.auto-crop-studio .auto-crop-empty svg { color: var(--muted); margin-bottom: 8px; }
.auto-crop-studio .auto-crop-file-state { display: block; white-space: normal; overflow-wrap: anywhere; }
.auto-crop-studio .auto-crop-note { color: var(--muted); font-size: var(--type-caption); }
.auto-crop-studio .is-error { color: #b42318; }
.auto-crop-studio .queue .file-name { min-width: 0; }
.auto-crop-studio .queue .remove-file { min-width: 44px; min-height: 44px; }
.auto-crop-studio .status { overflow-wrap: anywhere; }
.auto-crop-studio .status:empty { display: none; }
.auto-crop-studio .upload-panel .section-title { justify-content: space-between; gap: 8px; flex-wrap: wrap; }
@media (max-width: 800px) { .auto-crop-studio .auto-crop-empty { min-height: 280px; padding: 32px 16px; } }

.auto-crop-studio .padding-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.auto-crop-studio .padding-presets button { min-height: 44px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); cursor: pointer; }
.auto-crop-studio .padding-presets button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.auto-crop-studio #crop-padding { width: 100%; min-height: 44px; }
.auto-crop-studio #crop-padding[aria-invalid="true"] { border-color: #b42318; }
.auto-crop-studio .padding-presets button:disabled { cursor: default; opacity: .5; }

/* Supporting content remains below the working tool. */
[data-c2-tool-content]{width:100%;max-width:960px;margin:48px auto 0;box-sizing:border-box;line-height:1.8;overflow-wrap:anywhere}
[data-c2-tool-content] section{padding:24px 0;border-top:1px solid var(--site-line,#ddd)}
[data-c2-tool-content] h2{font-size:20px;margin:0 0 12px}
[data-c2-tool-content] p{margin:0 0 12px}
[data-c2-tool-content] details{padding:12px 0}
[data-c2-tool-content] summary{cursor:pointer;min-height:44px;font-weight:600}
[data-c2-tool-content] .c2-demo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}
[data-c2-tool-content] .c2-demo img{display:block;width:100%;height:auto;max-height:300px;object-fit:contain;background:#fff}
