*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --ic-page-bg: #eef2ef;
    --ic-ink: #17211d;
    --ic-muted: #65706b;
    --ic-line: #d8dfdc;
    --ic-panel: #fbfcfb;
    --ic-accent: #147d6f;
    --ic-accent-strong: #0d6a9f;
    --ic-stage: #202725;
    --ic-stage-soft: #2e3835;
    --ic-danger: #aa3d2d;
    --ic-radius: 8px;
}

.ic-page-wrapper {
    min-height: 100%;
    margin: 0;
    background: var(--ic-page-bg);
    color: var(--ic-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ic-page {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 32px;
}

.ic-uploader {
    width: min(720px, 100%);
    display: grid;
    gap: 28px;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--ic-line);
    border-radius: var(--ic-radius);
    box-shadow: 0 18px 50px rgba(23, 33, 29, 0.08);
}

.ic-uploader__copy {
    display: grid;
    gap: 8px;
}

.ic-eyebrow,
.ic-modal__eyebrow,
.ic-result__label {
    margin: 0;
    color: var(--ic-accent);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ic-uploader h1,
.ic-modal h2,
.ic-panel h3 {
    margin: 0;
    letter-spacing: 0;
}

.ic-uploader h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1;
}

.ic-form {
    display: grid;
    gap: 18px;
}

.ic-file {
    display: grid;
    gap: 8px;
    color: var(--ic-muted);
    font-size: 0.95rem;
    font-weight: 700;
}

.ic-file input {
    width: 100%;
    padding: 14px;
    color: var(--ic-ink);
    background: #f7f9f8;
    border: 1px solid var(--ic-line);
    border-radius: var(--ic-radius);
}

.ic-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.ic-button {
    position: relative;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    color: var(--ic-ink);
    background: var(--ic-control-bg, #fff);
    border: 1px solid var(--ic-button-border, #bac6c1);
    border-radius: var(--ic-radius);
    font-weight: 760;
    line-height: 1;
    box-shadow: 0 0 0 0 transparent;
    transition:
        background 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
        color 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ic-button:hover:not(:disabled) {
    border-color: var(--ic-accent);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.ic-button:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 0 0 4px var(--ic-modal-focus, rgba(20, 125, 111, 0.22));
}

.ic-button:disabled {
    color: #93a09b;
    background: #edf1ef;
}

.ic-button--primary {
    color: #fff;
    background: var(--ic-accent);
    border-color: var(--ic-accent);
}

.ic-button--primary:hover:not(:disabled) {
    background: var(--ic-accent-hover, #0f6f63);
    border-color: var(--ic-accent-hover, #0f6f63);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}

.ic-file-name {
    min-width: 0;
    color: var(--ic-muted);
    overflow-wrap: anywhere;
}

.ic-result {
    display: grid;
    grid-template-columns: 112px 1fr;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--ic-line);
}

.ic-result[hidden] {
    display: none;
}

.ic-result__media {
    width: 112px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #e7ece9;
    border-radius: var(--ic-radius);
}

.ic-result__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ic-result__meta {
    margin: 6px 0 0;
    color: var(--ic-muted);
}

.ic-modal-lock {
    overflow: hidden;
}

.ic-modal {
    --ic-ink: rgb(15, 23, 42);
    --ic-muted: rgb(71, 85, 105);
    --ic-line: rgb(226, 232, 240);
    --ic-panel: rgb(248, 250, 252);
    --ic-accent: rgb(14, 165, 233);
    --ic-accent-hover: rgb(2, 132, 199);
    --ic-accent-strong: rgb(3, 105, 161);
    --ic-stage: rgb(15, 23, 42);
    --ic-danger: rgb(220, 38, 38);
    --ic-danger-hover: rgb(185, 28, 28);
    --ic-button-border: rgb(203, 213, 225);
    --ic-control-bg: rgb(255, 255, 255);
    --ic-modal-backdrop: rgb(15, 23, 42);
    --ic-modal-header-bg: rgb(255, 255, 255);
    --ic-modal-surface: rgb(248, 250, 252);
    --ic-modal-surface-muted: rgb(241, 245, 249);
    --ic-modal-stage-check: rgba(255, 255, 255, 0.035);
    --ic-modal-shade: rgba(15, 23, 42, 0.62);
    --ic-modal-focus: rgba(14, 165, 233, 0.35);
    --ic-modal-crop-border: rgb(255, 255, 255);
    --ic-modal-crop-ring: rgba(3, 105, 161, 0.85);
    --ic-modal-rule: rgba(255, 255, 255, 0.82);
    --ic-modal-center-bg: rgba(255, 255, 255, 0.94);
    --ic-modal-center-border: rgba(14, 165, 233, 0.65);
    --ic-modal-control-label: rgb(31, 41, 55);
    --ic-modal-control-border: rgb(203, 213, 225);
    --ic-modal-control-readonly-text: rgb(100, 116, 139);
    --ic-modal-control-readonly-bg: rgb(241, 245, 249);
    --ic-modal-input-unit-bg: rgb(241, 245, 249);
    --ic-modal-preview-bg: rgb(241, 245, 249);
    position: fixed;
    inset: 0;
    z-index: 1000;
    color: var(--ic-ink);
    background: var(--ic-modal-backdrop);
}

.ic-modal[hidden] {
    display: none;
}

.ic-modal[editor-theme="fod"],
.ic-modal[data-editor-theme="fod"],
.ic-modal[editor-theme="finishordrop"],
.ic-modal[data-editor-theme="finishordrop"],
.ic-modal[editor-theme="ginger"],
.ic-modal[data-editor-theme="ginger"] {
    --ic-ink: rgb(241, 245, 249);
    --ic-muted: rgb(148, 163, 184);
    --ic-line: rgba(35, 176, 147, 0.25);
    --ic-panel: rgb(18, 24, 21);
    --ic-accent: rgb(35, 176, 147);
    --ic-accent-hover: rgb(45, 212, 191);
    --ic-accent-strong: rgb(20, 130, 108);
    --ic-stage: rgb(12, 17, 15);
    --ic-danger: rgb(233, 70, 58);
    --ic-danger-hover: rgb(185, 28, 28);
    --ic-button-border: rgba(35, 176, 147, 0.35);
    --ic-control-bg: rgb(23, 31, 28);
    --ic-modal-backdrop: rgba(7, 10, 9, 0.88);
    --ic-modal-header-bg: rgb(15, 21, 18);
    --ic-modal-surface: rgb(20, 28, 25);
    --ic-modal-surface-muted: rgb(15, 21, 18);
    --ic-modal-stage-check: rgba(35, 176, 147, 0.05);
    --ic-modal-shade: rgba(7, 10, 9, 0.75);
    --ic-modal-focus: rgba(35, 176, 147, 0.4);
    --ic-modal-crop-border: rgb(35, 176, 147);
    --ic-modal-crop-ring: rgba(35, 176, 147, 0.85);
    --ic-modal-rule: rgba(35, 176, 147, 0.6);
    --ic-modal-center-bg: rgb(35, 176, 147);
    --ic-modal-center-border: rgba(255, 255, 255, 0.8);
    --ic-modal-control-label: rgb(226, 232, 240);
    --ic-modal-control-border: rgba(35, 176, 147, 0.3);
    --ic-modal-control-readonly-text: rgb(148, 163, 184);
    --ic-modal-control-readonly-bg: rgb(15, 21, 18);
    --ic-modal-input-unit-bg: rgb(15, 21, 18);
    --ic-modal-preview-bg: rgb(15, 21, 18);
}

.ic-modal__shell {
    width: 100%;
    height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr;
    background: var(--ic-panel);
}

.ic-modal__header {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 20px;
    background: var(--ic-modal-header-bg);
    border-bottom: 1px solid var(--ic-line);
}

.ic-modal h2 {
    margin-top: 2px;
    font-size: 1.25rem;
    line-height: 1.15;
}

.ic-icon-button {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--ic-ink);
    background: var(--ic-modal-surface-muted);
    border: 1px solid var(--ic-line);
    border-radius: 50%;
    line-height: 0;
    box-shadow: 0 0 0 0 transparent;
    transition:
        background 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
        color 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ic-icon-button::before {
    content: "";
    width: 20px;
    height: 20px;
    display: block;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 6l12 12M18 6L6 18' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 6l12 12M18 6L6 18' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ic-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}

.ic-icon-button:hover {
    color: var(--ic-modal-crop-border);
    background: var(--ic-danger);
    border-color: var(--ic-danger-hover);
    transform: scale(1.04);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}

.ic-icon-button:active {
    transform: scale(0.94);
    box-shadow: 0 0 0 4px var(--ic-modal-focus, rgba(20, 125, 111, 0.22));
}

.ic-button.is-click-feedback,
.ic-icon-button.is-click-feedback,
.ic-center-button.is-click-feedback {
    animation: ic-click-feedback 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes ic-click-feedback {
    0% {
        box-shadow: 0 0 0 0 var(--ic-modal-focus, rgba(20, 125, 111, 0.26));
    }

    58% {
        box-shadow: 0 0 0 7px var(--ic-modal-focus, rgba(20, 125, 111, 0.16));
    }

    100% {
        box-shadow: 0 0 0 0 rgba(20, 125, 111, 0);
    }
}

.ic-modal__body {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
    overflow: hidden;
}

.ic-workspace {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background:
        linear-gradient(45deg, var(--ic-modal-stage-check) 25%, transparent 25%),
        linear-gradient(-45deg, var(--ic-modal-stage-check) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--ic-modal-stage-check) 75%),
        linear-gradient(-45deg, transparent 75%, var(--ic-modal-stage-check) 75%),
        var(--ic-stage);
    background-size: 28px 28px;
    background-position: 0 0, 0 14px, 14px -14px, -14px 0;
}

.ic-stage {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 420px;
    overflow: hidden;
    outline: none;
    touch-action: none;
}

.ic-stage:focus-visible,
.ic-crop-box:focus-visible,
.ic-center-button:focus-visible,
.ic-handle:focus-visible,
.ic-button:focus-visible,
.ic-icon-button:focus-visible,
.ic-control input:focus-visible,
.ic-control select:focus-visible {
    outline: 3px solid var(--ic-modal-focus, rgba(20, 125, 111, 0.35));
    outline-offset: 2px;
}

.ic-stage__image {
    position: absolute;
    display: block;
    max-width: none;
    user-select: none;
    -webkit-user-drag: none;
}

.ic-shade {
    position: absolute;
    background: var(--ic-modal-shade);
    pointer-events: none;
}

.ic-crop-box {
    --ic-handle-size: 14px;
    position: absolute;
    border: 2px solid var(--ic-modal-crop-border);
    box-shadow: 0 0 0 1px var(--ic-modal-crop-ring), 0 0 0 9999px rgba(0, 0, 0, 0.02);
    cursor: move;
    outline: none;
    touch-action: none;
}

.ic-rule {
    position: absolute;
    opacity: 0.55;
    pointer-events: none;
}

.ic-rule--v {
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 1px dashed var(--ic-modal-rule);
}

.ic-rule--h {
    left: 0;
    right: 0;
    height: 0;
    border-top: 1px dashed var(--ic-modal-rule);
}

.ic-rule--v1 {
    left: 33.333%;
}

.ic-rule--v2 {
    left: 66.666%;
}

.ic-rule--h1 {
    top: 33.333%;
}

.ic-rule--h2 {
    top: 66.666%;
}

.ic-center-button {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--ic-accent);
    background: var(--ic-modal-center-bg);
    border: 2px solid var(--ic-modal-center-border);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.ic-center-button:hover {
    color: var(--ic-modal-crop-border);
    background: var(--ic-accent);
    border-color: var(--ic-modal-crop-border);
    transform: translate(-50%, -50%) scale(1.04);
}

.ic-center-button:active {
    transform: translate(-50%, -50%) scale(0.94);
    box-shadow: 0 0 0 5px var(--ic-modal-focus, rgba(20, 125, 111, 0.22));
}

.ic-center-button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.ic-handle {
    position: absolute;
    width: var(--ic-handle-size);
    height: var(--ic-handle-size);
    padding: 0;
    background: var(--ic-accent-strong);
    border: 2px solid var(--ic-modal-crop-border);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
    transition:
        background 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ic-handle:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.36);
}

.ic-handle:active {
    transform: scale(0.94);
}

.ic-handle--nw,
.ic-handle--ne,
.ic-handle--se,
.ic-handle--sw {
    width: 16px;
    height: 16px;
}

.ic-handle--nw {
    left: -8px;
    top: -8px;
    cursor: nwse-resize;
}

.ic-handle--n {
    left: calc(50% - 7px);
    top: -7px;
    cursor: ns-resize;
}

.ic-handle--ne {
    right: -8px;
    top: -8px;
    cursor: nesw-resize;
}

.ic-handle--e {
    right: -7px;
    top: calc(50% - 7px);
    cursor: ew-resize;
}

.ic-handle--se {
    right: -8px;
    bottom: -8px;
    cursor: nwse-resize;
}

.ic-handle--s {
    left: calc(50% - 7px);
    bottom: -7px;
    cursor: ns-resize;
}

.ic-handle--sw {
    left: -8px;
    bottom: -8px;
    cursor: nesw-resize;
}

.ic-handle--w {
    left: -7px;
    top: calc(50% - 7px);
    cursor: ew-resize;
}

.ic-panel {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto 1fr;
    align-content: start;
    gap: 22px;
    padding: 24px;
    overflow: auto;
    background: var(--ic-panel);
    border-left: 1px solid var(--ic-line);
}

.ic-panel__section {
    display: grid;
    gap: 16px;
}

.ic-panel h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ic-ink);
    font-size: 1rem;
}

.ic-panel h3::before,
.ic-panel h3::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--ic-line);
}

.ic-preview {
    min-height: 180px;
    display: grid;
    place-items: center;
    padding: 12px;
    overflow: hidden;
    background: var(--ic-modal-preview-bg);
    border: 1px solid var(--ic-line);
    border-radius: var(--ic-radius);
}

.ic-preview canvas {
    display: block;
    max-width: 100%;
    height: auto;
    background: var(--ic-control-bg);
}

.ic-control {
    min-width: 0;
    display: grid;
    gap: 8px;
    color: var(--ic-modal-control-label);
    font-size: 0.92rem;
    font-weight: 750;
}

.ic-control input,
.ic-control select {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    color: var(--ic-ink);
    background: var(--ic-control-bg);
    border: 1px solid var(--ic-modal-control-border);
    border-radius: var(--ic-radius);
}

.ic-control input[readonly] {
    color: var(--ic-modal-control-readonly-text);
    background: var(--ic-modal-control-readonly-bg);
}

.ic-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.ic-input-unit {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.ic-input-unit input {
    border-radius: var(--ic-radius) 0 0 var(--ic-radius);
}

.ic-input-unit span {
    min-width: 46px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--ic-muted);
    background: var(--ic-modal-input-unit-bg);
    border: 1px solid var(--ic-modal-control-border);
    border-left: 0;
    border-radius: 0 var(--ic-radius) var(--ic-radius) 0;
}

.ic-quality {
    gap: 10px;
}

.ic-quality__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ic-quality__value {
    min-width: 54px;
    padding: 5px 9px;
    color: var(--ic-accent);
    background: var(--ic-modal-surface-muted);
    border: 1px solid var(--ic-modal-control-border);
    border-radius: var(--ic-radius);
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.ic-quality__slider {
    --ic-quality-progress: 84%;
    position: relative;
    display: grid;
    align-items: center;
}

.ic-quality input[type="range"] {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 24px;
    padding: 0;
    appearance: none;
    background:
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent calc(20% - 1px),
            rgba(255, 255, 255, 0.72) calc(20% - 1px),
            rgba(255, 255, 255, 0.72) 20%
        ),
        linear-gradient(
            90deg,
            var(--ic-accent) 0%,
            var(--ic-accent) var(--ic-quality-progress),
            var(--ic-modal-control-readonly-bg) var(--ic-quality-progress),
            var(--ic-modal-control-readonly-bg) 100%
        );
    border: 1px solid var(--ic-modal-control-border);
    border-radius: var(--ic-radius);
    cursor: pointer;
    transition:
        border-color 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ic-quality input[type="range"]:hover {
    border-color: var(--ic-accent);
    box-shadow: 0 0 0 4px var(--ic-modal-focus, rgba(20, 125, 111, 0.18));
}

.ic-quality input[type="range"]::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
    appearance: none;
    background: var(--ic-modal-crop-border);
    border: 4px solid var(--ic-accent);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.28);
    transition:
        border-color 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ic-quality input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--ic-modal-crop-border);
    border: 4px solid var(--ic-accent);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.28);
    transition:
        border-color 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ic-quality input[type="range"]:active::-webkit-slider-thumb {
    transform: scale(1.12);
    box-shadow: 0 0 0 6px var(--ic-modal-focus, rgba(20, 125, 111, 0.18));
}

.ic-quality input[type="range"]:active::-moz-range-thumb {
    transform: scale(1.12);
    box-shadow: 0 0 0 6px var(--ic-modal-focus, rgba(20, 125, 111, 0.18));
}

.ic-quality input[type="range"]::-moz-range-track {
    height: 22px;
    background: transparent;
    border: 0;
}

.ic-quality__scale {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    color: var(--ic-muted);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
}

.ic-quality__scale span {
    min-width: 0;
    text-align: center;
}

.ic-quality__scale span:first-child {
    text-align: left;
}

.ic-quality__scale span:last-child {
    text-align: right;
}

.ic-panel__actions {
    display: grid;
    align-self: end;
    gap: 10px;
    padding-top: 8px;
}

.ic-status {
    min-height: 1.35em;
    margin: 2px 0 0;
    color: var(--ic-muted);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .ic-page {
        padding: 18px;
    }

    .ic-uploader {
        padding: 22px;
    }

    .ic-modal__body {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) minmax(300px, 42dvh);
    }

    .ic-stage {
        min-height: 0;
    }

    .ic-panel {
        grid-template-rows: auto auto auto;
        border-left: 0;
        border-top: 1px solid var(--ic-line);
    }
}

@media (max-width: 560px) {
    .ic-uploader h1 {
        font-size: 2.2rem;
    }

    .ic-modal__header {
        min-height: 64px;
        padding: 12px;
    }

    .ic-modal h2 {
        font-size: 1.05rem;
    }

    .ic-panel {
        padding: 16px;
    }

    .ic-grid-2,
    .ic-result {
        grid-template-columns: 1fr;
    }

    .ic-result__media {
        width: 100%;
        max-width: 220px;
    }
}
