/* ============================================================
   Image Resizer — Apple-style Design
   Font: SF Pro / system-ui  |  Accent: #0071E3  |  BG: #F5F5F7
   ============================================================ */

* { box-sizing: border-box; }

body.image-resizer-page {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
                 'Helvetica Neue', Arial, sans-serif;
    color: #1d1d1f;
    background: #f5f5f7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.image-resizer-main {
    padding: 18px 0 56px;
}

.image-resizer-toolbar {
    margin-bottom: 14px;
}

.toolbar-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 3px 9px;
    border-radius: 20px;
    background: rgba(0, 113, 227, 0.09);
    color: #0071e3;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.toolbar-copy {
    display: grid;
    gap: 2px;
}

.toolbar-copy h1 {
    margin: 0;
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.15;
    color: #1d1d1f;
}

.toolbar-copy p {
    margin: 0;
    font-size: 0.84rem;
    color: #6e6e73;
    line-height: 1.4;
}

.toolbar-points {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: auto;
}

.toolbar-points span,
.toolbar-flow span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.04);
    color: #6e6e73;
    font-size: 0.77rem;
    font-weight: 500;
    white-space: nowrap;
}

.toolbar-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.toolbar-flow b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0071e3;
    color: #fff;
    font-size: 0.65rem;
}

.image-resizer-shell {
    display: grid;
}

.workspace-grid {
    display: grid;
    grid-template-columns: 344px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.card-panel {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.settings-panel,
.preview-panel {
    min-width: 0;
}

.settings-panel {
    position: sticky;
    top: 86px;
}

.panel-intro {
    display: none;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(0, 113, 227, 0.09);
    color: #0071e3;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    width: fit-content;
}

.action-note,
.settings-panel .section-tag {
    display: none;
}

.sidebar-upload {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.upload-dropzone {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 66px;
    padding: 12px 14px;
    background: #0071e3;
    border: none;
    border-radius: 14px;
    color: #ffffff;
    cursor: pointer;
    transition: opacity 0.14s ease, transform 0.12s ease;
}

.upload-dropzone:hover {
    opacity: 0.92;
    transform: scale(0.998);
}

.upload-dropzone.is-dragover {
    opacity: 0.85;
    transform: scale(0.996);
}

.dropzone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.upload-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.upload-dropzone strong {
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
}

.upload-copy span:last-child {
    font-size: 0.76rem;
    opacity: 0.82;
    line-height: 1.3;
    display: block;
}

.upload-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 13px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font: inherit;
    font-size: 0.77rem;
    font-weight: 600;
    white-space: nowrap;
}

.upload-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.upload-summary div {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.summary-label {
    display: block;
    font-size: 0.72rem;
    color: #6e6e73;
    font-weight: 500;
}

.upload-summary strong {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1d1d1f;
}

/* Segmented control */
.settings-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    padding: 3px;
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.06);
    margin-bottom: 12px;
}

.settings-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 33px;
    padding: 0 6px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #6e6e73;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.16s, color 0.16s, box-shadow 0.16s;
}

.settings-tab.active {
    background: #ffffff;
    color: #1d1d1f;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.06);
}

.settings-view {
    display: none;
}

.settings-view.active {
    display: grid;
    gap: 14px;
}

.panel-section {
    display: grid;
    gap: 10px;
}

.section-header,
.preview-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.section-header h2,
.preview-head h2 {
    font-size: 0.78rem;
    font-weight: 700;
    color: #6e6e73;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}

.section-header p,
.preview-head p {
    margin: 0;
    font-size: 0.82rem;
    color: #6e6e73;
}

.mode-switch,
.fit-mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    padding: 3px;
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.06);
}

.size-option-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    padding: 3px;
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.06);
}

.mode-btn,
.size-option-btn,
.fit-mode-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 34px;
    padding: 0 8px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #6e6e73;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.16s, color 0.16s, box-shadow 0.16s;
}

.mode-btn.active,
.size-option-btn.active,
.fit-mode-btn.active {
    background: #ffffff;
    color: #1d1d1f;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.06);
}

.mode-panel {
    display: none;
}

.mode-panel.active {
    display: grid;
    gap: 10px;
}

.range-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.range-head label {
    font-size: 0.86rem;
    font-weight: 500;
    color: #1d1d1f;
}

.range-head output {
    font-size: 0.86rem;
    font-weight: 700;
    color: #0071e3;
    min-width: 38px;
    text-align: right;
}

.slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.1);
    outline: none;
    accent-color: #0071e3;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.16);
    cursor: pointer;
    transition: transform 0.1s;
}

.slider::-webkit-slider-thumb:active {
    transform: scale(1.15);
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    outline: none;
    accent-color: #0071e3;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.16);
    cursor: pointer;
    transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.15);
}

.helper-text {
    margin: 0;
    font-size: 0.8rem;
    color: #6e6e73;
    line-height: 1.5;
}

.input-grid,
.output-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.input-item {
    display: grid;
    gap: 5px;
}

.input-item span {
    font-size: 0.78rem;
    font-weight: 500;
    color: #6e6e73;
}

.input-item input,
.input-item select,
.input-item textarea {
    width: 100%;
    min-width: 0;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.03);
    font: inherit;
    font-size: 0.9rem;
    color: #1d1d1f;
    transition: border-color 0.14s, background 0.14s, box-shadow 0.14s;
    -webkit-appearance: none;
    appearance: none;
}

.input-item input:focus,
.input-item select:focus,
.input-item textarea:focus {
    outline: none;
    border-color: #0071e3;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.input-item select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236e6e73' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.input-item input[readonly] {
    color: #6e6e73;
    cursor: default;
    background: rgba(0, 0, 0, 0.02);
}

.input-item textarea {
    min-height: 88px;
    resize: vertical;
    line-height: 1.5;
}

.stack-grid,
.range-stack {
    display: grid;
    gap: 10px;
}

.range-item {
    display: grid;
    gap: 6px;
}

.range-item input[type="range"] {
    padding: 0;
    border: none;
    background: rgba(0, 0, 0, 0.08);
}

.watermark-upload-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.watermark-file-meta {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.watermark-file-meta span {
    display: block;
    margin-bottom: 3px;
    font-size: 0.74rem;
    color: #6e6e73;
    font-weight: 500;
}

.watermark-file-meta strong {
    font-size: 0.86rem;
    color: #1d1d1f;
    word-break: break-all;
}

.settings-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 500;
    color: #1d1d1f;
    cursor: pointer;
}

.checkbox-item input {
    width: 16px;
    height: 16px;
    accent-color: #0071e3;
    cursor: pointer;
}

.hidden {
    display: none;
}

.action-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.ghost-btn,
.outline-btn,
.primary-btn,
.download-single-btn,
.compact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: 12px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.14s, transform 0.1s;
    -webkit-user-select: none;
    user-select: none;
}

.ghost-btn {
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.86rem;
    background: rgba(0, 0, 0, 0.05);
    color: #1d1d1f;
}

.ghost-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

.compact-btn {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 0.84rem;
    background: rgba(0, 0, 0, 0.05);
    color: #1d1d1f;
}

.compact-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

.compact-btn-muted {
    background: rgba(0, 0, 0, 0.04);
    color: #6e6e73;
}

.compact-btn-muted:hover {
    background: rgba(0, 0, 0, 0.07);
}

.outline-btn {
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.86rem;
    background: rgba(0, 113, 227, 0.08);
    color: #0071e3;
}

.outline-btn:hover {
    background: rgba(0, 113, 227, 0.12);
}

.primary-btn {
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.86rem;
    background: #0071e3;
    color: #ffffff;
}

.primary-btn:hover {
    background: #0077ed;
}

.download-single-btn {
    min-height: 34px;
    padding: 0 14px;
    font-size: 0.82rem;
    border-radius: 10px;
    background: #0071e3;
    color: #ffffff;
}

.ghost-btn:active,
.outline-btn:active,
.primary-btn:active,
.download-single-btn:active,
.compact-btn:active {
    transform: scale(0.97);
    opacity: 0.88;
}

.ghost-btn:disabled,
.outline-btn:disabled,
.primary-btn:disabled,
.download-single-btn:disabled {
    opacity: 0.32;
    cursor: not-allowed;
    transform: none;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(0, 113, 227, 0.09);
    color: #0071e3;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.editor-stage {
    margin-bottom: 14px;
}

.editor-shell {
    position: relative;
    min-height: 240px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    background: #fafafa;
}

.editor-canvas {
    display: block;
    width: 100%;
    height: 240px;
    cursor: default;
}

.editor-canvas.is-draggable { cursor: grab; }
.editor-canvas.is-dragging  { cursor: grabbing; }

.editor-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    color: #6e6e73;
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
}

.editor-placeholder[hidden] { display: none; }

.editor-placeholder i {
    font-size: 2rem;
    color: rgba(0, 113, 227, 0.4);
}

.editor-placeholder strong {
    font-size: 0.9rem;
    color: #1d1d1f;
}

.editor-placeholder span {
    font-size: 0.8rem;
    color: #6e6e73;
    line-height: 1.45;
}

.preview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 200px;
    border-radius: 12px;
    border: 1.5px dashed rgba(0, 0, 0, 0.1);
    color: #6e6e73;
    text-align: center;
    padding: 24px;
}

.preview-empty i {
    font-size: 2rem;
    color: rgba(0, 113, 227, 0.35);
}

.preview-empty strong {
    font-size: 0.9rem;
    color: #1d1d1f;
}

.preview-empty span {
    font-size: 0.8rem;
}

.preview-list {
    display: grid;
    gap: 8px;
}

.preview-card {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.preview-card:hover {
    border-color: rgba(0, 113, 227, 0.22);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.preview-card.is-selected {
    border-color: rgba(0, 113, 227, 0.36);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.08);
}

.preview-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.preview-frame img {
    display: block;
    max-width: 100%;
    max-height: 96px;
    border-radius: 8px;
}

.preview-body {
    display: grid;
    gap: 8px;
    min-width: 0;
    align-content: start;
}

.preview-title {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: flex-start;
}

.preview-title strong {
    font-size: 0.84rem;
    word-break: break-all;
    color: #1d1d1f;
    line-height: 1.4;
}

.preview-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 20px;
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.preview-badge.pending {
    background: rgba(255, 149, 0, 0.1);
    color: #ff9500;
}

.preview-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.meta-item {
    padding: 7px 9px;
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.03);
}

.meta-item span {
    display: block;
    font-size: 0.7rem;
    color: #6e6e73;
    margin-bottom: 2px;
}

.meta-item strong {
    font-size: 0.8rem;
    color: #1d1d1f;
}

.preview-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.preview-actions p {
    margin: 0;
    font-size: 0.76rem;
    color: #6e6e73;
}

.preview-actions a { color: inherit; }

.preview-head-queue {
    margin-top: 16px;
}

/* ── Annotation tools ─────────────────────────────────────── */
.anno-tools {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.anno-tool-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.04);
    color: #6e6e73;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.14s, color 0.14s;
    font: inherit;
}

.anno-tool-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #1d1d1f;
}

.anno-tool-btn.active {
    background: #0071e3;
    color: #ffffff;
}

.editor-canvas.anno-mode { cursor: crosshair; }
.editor-canvas.anno-mode.is-dragging { cursor: crosshair; }

.anno-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.anno-swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s;
}

.anno-swatch:hover { transform: scale(1.12); }

.anno-swatch.is-active {
    box-shadow: 0 0 0 2.5px #ffffff, 0 0 0 4.5px rgba(0, 113, 227, 0.55);
}

.anno-swatch[data-color="#ff3b30"] { background: #ff3b30; }
.anno-swatch[data-color="#ff9500"] { background: #ff9500; }
.anno-swatch[data-color="#ffcc00"] { background: #ffcc00; }
.anno-swatch[data-color="#34c759"] { background: #34c759; }
.anno-swatch[data-color="#0071e3"] { background: #0071e3; }
.anno-swatch[data-color="#ffffff"] { background: #ffffff; border-color: rgba(0, 0, 0, 0.12); }
.anno-swatch[data-color="#1d1d1f"] { background: #1d1d1f; }

.anno-color-picker {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    padding: 0;
    background: transparent;
    overflow: hidden;
    -webkit-appearance: none;
    appearance: none;
}

.anno-line-styles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    padding: 3px;
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.06);
}

.anno-stroke-controls {
    display: grid;
    grid-template-columns: 1fr 80px;
    gap: 8px;
    align-items: end;
}

.anno-fill-options {
    display: grid;
    gap: 10px;
}

.anno-fill-color-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.anno-sync-label {
    flex: 1;
}

.anno-fill-color-row .anno-color-picker:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.anno-style-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #6e6e73;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.16s, color 0.16s, box-shadow 0.16s;
}

.anno-style-btn.active {
    background: #ffffff;
    color: #1d1d1f;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.anno-clear-btn { width: 100%; }

@media (max-width: 1140px) {
    .workspace-grid {
        grid-template-columns: 1fr;
    }
    .settings-panel {
        position: static;
    }
    .toolbar-card {
        flex-wrap: wrap;
    }
    .toolbar-points {
        margin-left: 0;
    }
}

@media (max-width: 760px) {
    .image-resizer-main {
        padding: 12px 0 32px;
    }
    .toolbar-card,
    .card-panel {
        padding: 14px;
    }
    .upload-dropzone {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .upload-action {
        display: none;
    }
    .upload-summary {
        grid-template-columns: 1fr;
    }
    .settings-tabs {
        grid-template-columns: repeat(3, 1fr);
    }
    .mode-switch,
    .fit-mode-switch {
        grid-template-columns: 1fr;
    }
    .size-option-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .input-grid,
    .output-grid,
    .action-row,
    .preview-meta,
    .preview-card {
        grid-template-columns: 1fr;
    }
    .editor-canvas {
        height: 200px;
    }
    .toolbar-flow,
    .toolbar-copy p {
        display: none;
    }
}
