/* ============================================================
   Icon Maker - stylesheet (rebuilt 2026-09-29, Icon Resizer layout)
   Everything is scoped under .imk / .imk-* so nothing leaks into
   the shared header, footer or other tools. Colours come from the
   site tokens in styles/custom_styles.css (loaded first); the tool
   accent is the site blue #3399cc - single colours, no gradients.
   ============================================================ */

.imk {
    --imk-accent: #3399cc;
    --imk-accent-strong: #237a9f;
    --imk-accent-soft: rgba(51, 153, 204, 0.10);
    --imk-accent-line: rgba(51, 153, 204, 0.45);
    --imk-good: #339966;
    --imk-good-soft: rgba(51, 153, 102, 0.12);
    --imk-warn: #b45309;
    --imk-warn-soft: #fff7e6;
    --imk-warn-line: #f5c26b;
    --imk-card: var(--bg-elevated, #fff);
    --imk-sunk: var(--card-tertiary, #f1f5f9);
    --imk-line: var(--border-color, #e0e0e0);
    --imk-text: var(--text-primary, #333);
    --imk-muted: var(--text-muted, #666);
    --imk-checker: var(--checker-color, #e5e7eb);
    --imk-radius: 12px;
}

[data-theme="dark"] .imk {
    --imk-accent: #60a5fa;
    --imk-accent-strong: #93c5fd;
    --imk-accent-soft: rgba(96, 165, 250, 0.14);
    --imk-accent-line: rgba(96, 165, 250, 0.5);
    --imk-good: #4ade80;
    --imk-good-soft: rgba(74, 222, 128, 0.14);
    --imk-warn: #fbbf24;
    --imk-warn-soft: rgba(251, 191, 36, 0.10);
    --imk-warn-line: rgba(251, 191, 36, 0.45);
    --imk-sunk: #172033;
}

.imk [hidden] { display: none !important; }

/* custom_styles.css sets `button { width: 100% }` on phones - undo it inside the tool;
   components that should stretch set their own width with a stronger selector. */
.imk button { width: auto; }
/* ...but the shared FAQ rows must stay full width (question left, chevron right) */

/* The floating back-to-top circle sits on top of the sticky Make icon bar on phones */
@media (max-width: 600px) {
    html.imk-editing .back-to-top-wrapper { display: none; }
}

/* ---------- title ---------- */
.imk .imk-title-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--imk-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.imk .imk-title-icon svg { width: 30px; height: 30px; display: block; }
.imk .tool-title { color: var(--imk-accent); }
.imk .tool-description a { color: var(--imk-accent); font-weight: 500; }

.imk .imk-main { overflow: visible; }

/* ---------- shared bits ---------- */
.imk .imk-card {
    background: var(--imk-card);
    border: 1px solid var(--imk-line);
    border-radius: var(--imk-radius);
    padding: 1rem 1.1rem;
    min-width: 0;
}
.imk .imk-card + .imk-card { margin-top: 0.875rem; }
.imk .imk-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}
.imk .imk-h {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--imk-text);
}
.imk .imk-h svg { width: 17px; height: 17px; color: var(--imk-accent); }
.imk .imk-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--imk-muted);
    white-space: nowrap;
}
.imk .imk-mini-label {
    display: block;
    margin: 0 0 0.45rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--imk-muted);
}
.imk .imk-checker {
    background-color: var(--imk-card);
    background-image:
        linear-gradient(45deg, var(--imk-checker) 25%, transparent 25%),
        linear-gradient(-45deg, var(--imk-checker) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--imk-checker) 75%),
        linear-gradient(-45deg, transparent 75%, var(--imk-checker) 75%);
    background-size: 12px 12px;
    background-position: 0 0, 0 6px, 6px -6px, -6px 0;
}
.imk .imk-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.2rem;
    background: none;
    border: none;
    color: var(--imk-accent);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.imk .imk-link-btn:hover { text-decoration: underline; }
.imk .imk-link-btn svg { width: 16px; height: 16px; }

.imk .imk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    border: 1px solid var(--imk-line);
    background: var(--imk-card);
    color: var(--imk-text);
    font: inherit;
    font-size: 0.925rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.imk .imk-btn svg { width: 17px; height: 17px; }
.imk .imk-btn:hover { border-color: var(--imk-accent); color: var(--imk-accent); }
.imk .imk-btn-outline { border-color: var(--imk-accent-line); color: var(--imk-accent); }
.imk .imk-btn-ghost { border-color: transparent; background: none; color: var(--imk-muted); }
.imk .imk-btn-accent { background: var(--primary-btn, #237a9f); border-color: var(--primary-btn, #237a9f); color: #fff; }
.imk .imk-btn-accent:hover { background: var(--primary-btn-hover, #1b6183); color: #fff; }
.imk .imk-btn-sm { min-height: 36px; padding: 0.4rem 0.8rem; font-size: 0.85rem; }

.imk .imk-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.7rem 1.6rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    border: none;
    cursor: pointer;
}
.imk .imk-go svg { width: 19px; height: 19px; }
.imk .imk-go:disabled { opacity: 0.55; cursor: not-allowed; }
/* Own the button colour instead of relying on the global .btn-primary token:
   with a stale/older custom_styles.css the token is undefined and the button
   rendered white-on-white (Download invisible, Resize looked disabled).
   (0,2,1) beats ":root .btn-primary" (0,2,0); fallbacks cover a missing token. */
.imk a.imk-go,
.imk button.imk-go {
    background: var(--primary-btn, #237a9f);
    color: #fff;
}
.imk a.imk-go:hover,
.imk button.imk-go:hover:not(:disabled) {
    background: var(--primary-btn-hover, #1b6183);
    color: #fff;
}
[data-theme="dark"] .imk a.imk-go,
[data-theme="dark"] .imk button.imk-go { background: var(--primary-btn, #2563eb); }
[data-theme="dark"] .imk a.imk-go:hover,
[data-theme="dark"] .imk button.imk-go:hover:not(:disabled) { background: var(--primary-btn-hover, #1d4ed8); }

/* Download = green (#339966 family, darkened to #2b8557 for 4.57:1 contrast with white text) */
.imk a.imk-go.imk-download,
[data-theme="dark"] .imk a.imk-go.imk-download { background: #2b8557; color: #fff; }
.imk a.imk-go.imk-download:hover,
[data-theme="dark"] .imk a.imk-go.imk-download:hover { background: #1f6b45; color: #fff; }

/* ---------- upload ---------- */
.imk .imk-upload {
    background: var(--imk-card);
    border: 1px solid var(--imk-line);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}
.imk .imk-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 2.6rem 1.25rem 2.2rem;
    border: 2px dashed var(--imk-accent-line);
    border-radius: 14px;
    background: var(--imk-sunk);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}
.imk .imk-drop:hover,
.imk .imk-drop:focus-visible,
.imk .imk-drop.is-drag {
    border-color: var(--imk-accent);
    background: var(--imk-accent-soft);
    outline: none;
}
.imk .imk-drop-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--imk-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.4rem;
}
.imk .imk-drop-icon svg { width: 30px; height: 30px; }
.imk .imk-drop-title { font-size: 1.3rem; font-weight: 700; color: var(--imk-text); }
.imk .imk-drop-sub { font-size: 0.925rem; color: var(--imk-muted); }
.imk .imk-drop-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.8rem;
}
.imk .imk-drop-chips span {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--imk-line);
    background: var(--imk-card);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--imk-muted);
}
.imk .imk-upload-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.8rem 0.25rem 0;
}
.imk .imk-upload-note {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--imk-muted);
}
.imk .imk-upload-note svg { width: 15px; height: 15px; color: var(--imk-good); }

/* ---------- editor ---------- */
.imk .imk-editor {
    background: var(--imk-sunk);
    border: 1px solid var(--imk-line);
    border-radius: 20px;
    padding: 1rem;
}
.imk .imk-filebar {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.875rem;
    background: var(--imk-card);
    border: 1px solid var(--imk-line);
    border-radius: var(--imk-radius);
}
.imk .imk-file-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--imk-line);
}
.imk .imk-file-thumb img { max-width: 36px; max-height: 36px; display: block; }
.imk .imk-file-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.imk .imk-file-meta strong {
    font-size: 0.925rem;
    color: var(--imk-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.imk .imk-file-meta span { font-size: 0.8rem; color: var(--imk-muted); }

.imk .imk-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 0.875rem;
    align-items: start;
}
.imk .imk-col-main,
.imk .imk-col-side { min-width: 0; }

/* presets */
.imk .imk-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
}
.imk .imk-preset {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--imk-line);
    border-radius: 999px;
    background: var(--imk-card);
    color: var(--imk-text);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.imk .imk-preset svg { width: 14px; height: 14px; color: var(--imk-accent); }
.imk .imk-preset em { font-style: normal; font-weight: 500; color: var(--imk-muted); font-size: 0.74rem; }
.imk .imk-preset:hover { border-color: var(--imk-accent); }
.imk .imk-preset.is-on { background: var(--imk-accent); border-color: var(--imk-accent); color: #fff; }
.imk .imk-preset.is-on svg,
.imk .imk-preset.is-on em { color: rgba(255, 255, 255, 0.9); }
[data-theme="dark"] .imk .imk-preset.is-on { color: #0f172a; }
[data-theme="dark"] .imk .imk-preset.is-on svg,
[data-theme="dark"] .imk .imk-preset.is-on em { color: rgba(15, 23, 42, 0.8); }

/* size tiles */
.imk .imk-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}
.imk .imk-tile-wrap { position: relative; min-width: 0; }
.imk .imk-tile {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.55rem 0.3rem 0.5rem;
    border: 1px solid var(--imk-line);
    border-radius: 10px;
    background: var(--imk-card);
    color: var(--imk-text);
    font: inherit;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.imk .imk-tile:hover { border-color: var(--imk-accent-line); }
.imk .imk-tile:focus-visible { outline: 2px solid var(--imk-accent); outline-offset: 2px; }
.imk .imk-tile.is-focus { box-shadow: 0 0 0 2px var(--imk-accent-line); }
.imk .imk-tile-prev {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.imk .imk-tile-prev img { display: block; }
.imk .imk-tile-size {
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.imk .imk-tile-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    color: var(--imk-muted);
    background: var(--imk-sunk);
}

/* states - single accent colour, no gradients */
.imk .imk-tile.is-keep { border-color: var(--imk-accent); background: var(--imk-accent-soft); }
.imk .imk-tile.is-keep .imk-tile-tag { background: var(--imk-accent); color: #fff; }
.imk .imk-tile.is-add { border-color: var(--imk-accent); background: var(--imk-accent-soft); }
.imk .imk-tile.is-add .imk-tile-tag { background: var(--imk-good-soft); color: var(--imk-good); }
.imk .imk-tile.is-up .imk-tile-tag { background: var(--imk-warn-soft); color: var(--imk-warn); }
.imk .imk-tile.is-off { border-style: dashed; }
.imk .imk-tile.is-off .imk-tile-prev img { opacity: 0.4; }
.imk .imk-tile.is-off .imk-tile-size { color: var(--imk-muted); font-weight: 600; }
.imk .imk-tile.is-off:not(.is-removed) .imk-tile-tag { visibility: hidden; }
.imk .imk-tile.is-off:not(.is-removed):hover .imk-tile-tag { visibility: visible; }
.imk .imk-tile.is-removed .imk-tile-size { text-decoration: line-through; }
.imk .imk-tile.is-removed .imk-tile-tag { color: var(--error-color, #e74c3c); background: var(--error-bg, #fadbd8); }
.imk .imk-tile.is-na { opacity: 0.6; border-style: dashed; }
[data-theme="dark"] .imk .imk-tile.is-keep .imk-tile-tag { color: #0f172a; }

.imk .imk-tile-add .imk-tile-prev {
    border: 1px dashed var(--imk-accent-line);
    color: var(--imk-accent);
}
.imk .imk-tile-add .imk-tile-prev svg { width: 22px; height: 22px; }
.imk .imk-tile-add .imk-tile-size { color: var(--imk-accent); }
.imk .imk-tile-x {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--imk-card);
    color: var(--imk-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.imk .imk-tile-x svg { width: 14px; height: 14px; }
.imk .imk-tile-x:hover { color: var(--error-color, #e74c3c); }

/* custom size form */
.imk .imk-custom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.75rem;
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
    background: var(--imk-sunk);
    border: 1px solid var(--imk-line);
}
.imk .imk-custom label {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.imk .imk-custom input[type="number"] {
    width: 84px;
    min-height: 36px;
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--input-border, #ddd);
    border-radius: 8px;
    background: var(--input-bg, #fff);
    color: var(--imk-text);
    font: inherit;
    font-size: 0.9rem;
}
.imk .imk-custom input[type="number"]:focus { outline: 2px solid var(--imk-accent-line); border-color: var(--imk-accent); }
.imk .imk-custom-hint { flex-basis: 100%; font-size: 0.75rem; color: var(--imk-muted); }
.imk .imk-custom-hint.is-error { color: var(--error-color, #e74c3c); font-weight: 600; }

.imk .imk-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin-top: 0.8rem;
    font-size: 0.75rem;
    color: var(--imk-muted);
}
.imk .imk-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.imk .imk-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.imk .imk-dot-keep { background: var(--imk-accent); }
.imk .imk-dot-add { background: var(--imk-good); }
.imk .imk-dot-off { border: 1px dashed var(--imk-muted); }

.imk .imk-notices:empty { display: none; }
.imk .imk-notices { margin-top: 0.8rem; display: flex; flex-direction: column; gap: 0.5rem; }
.imk .imk-notice {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    margin: 0;
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    font-size: 0.83rem;
    line-height: 1.5;
    color: var(--imk-text);
    border: 1px solid;
}
.imk .imk-notice svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 0.15rem; }
.imk .imk-notice a { color: var(--imk-accent); font-weight: 600; }
.imk .imk-notice-info { background: var(--imk-accent-soft); border-color: var(--imk-accent-line); }
.imk .imk-notice-info svg { color: var(--imk-accent); }
.imk .imk-notice-warn { background: var(--imk-warn-soft); border-color: var(--imk-warn-line); }
.imk .imk-notice-warn svg { color: var(--imk-warn); }

/* preview */
.imk .imk-zoom {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}
.imk .imk-zoom-box {
    flex: 1;
    min-width: 0;
    height: 184px;
    border-radius: 10px;
    border: 1px solid var(--imk-line);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.imk .imk-zoom-box img { display: block; max-width: 100%; max-height: 100%; }
.imk .imk-zoom-box img.is-pixel { image-rendering: pixelated; }
.imk .imk-zoom-side { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.imk .imk-zoom-actual {
    width: 76px;
    height: 76px;
    border-radius: 10px;
    border: 1px solid var(--imk-line);
    display: flex;
    align-items: center;
    justify-content: center;
}
.imk .imk-zoom-actual img { display: block; }
.imk .imk-zoom-side .imk-mini-label { margin: 0; }
.imk .imk-zoom-caption {
    margin: 0.55rem 0 0.9rem;
    font-size: 0.8rem;
    color: var(--imk-muted);
    min-height: 1.2em;
}

/* in-context mock-ups */
.imk .imk-ctx-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}
.imk .imk-ctx { min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.imk .imk-ctx-stage {
    height: 76px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.imk .imk-ctx-tab .imk-ctx-stage { background: #dfe3e8; align-items: flex-end; }
.imk .imk-ctx-taskbar .imk-ctx-stage { background: #1f2937; align-items: flex-end; }
.imk .imk-ctx-desktop .imk-ctx-stage { background: #2f6f9f; }
[data-theme="dark"] .imk .imk-ctx-tab .imk-ctx-stage { background: #2b313b; }
.imk .imk-ctx-label { font-size: 0.72rem; font-weight: 600; color: var(--imk-text); text-align: center; }
.imk .imk-ctx-label em { font-style: normal; color: var(--imk-muted); font-weight: 500; }
.imk .imk-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 88%;
    padding: 7px 8px;
    border-radius: 8px 8px 0 0;
    background: #fff;
    color: #333;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
}
[data-theme="dark"] .imk .imk-tab { background: #3b4350; color: #e5e7eb; }
.imk .imk-tab img { flex-shrink: 0; display: block; }
.imk .imk-tab span { overflow: hidden; text-overflow: ellipsis; flex: 1; }
.imk .imk-tab svg { width: 10px; height: 10px; flex-shrink: 0; opacity: 0.6; }
.imk .imk-taskbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 44px;
    background: rgba(255, 255, 255, 0.06);
}
.imk .imk-tb-item {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.imk .imk-tb-item:not(.is-active)::before {
    content: '';
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.18);
}
.imk .imk-tb-item.is-active { background: rgba(255, 255, 255, 0.12); position: relative; }
.imk .imk-tb-item.is-active::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 50%;
    width: 14px;
    height: 3px;
    margin-left: -7px;
    border-radius: 2px;
    background: #60a5fa;
}
.imk .imk-tb-item img { display: block; }
.imk .imk-desk {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #fff;
    font-size: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.imk .imk-desk img { display: block; }
.imk .imk-ctx-note {
    display: flex;
    gap: 0.4rem;
    margin: 0.6rem 0 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--imk-muted);
}
.imk .imk-ctx-note svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 0.1rem; color: var(--imk-accent); }

/* output format */
.imk .imk-seg {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border-radius: 10px;
    background: var(--imk-sunk);
    border: 1px solid var(--imk-line);
}
.imk .imk-seg button {
    min-height: 38px;
    padding: 0.35rem 0.4rem;
    border: none;
    border-radius: 7px;
    background: none;
    color: var(--imk-muted);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.imk .imk-seg button:hover { color: var(--imk-text); }
.imk .imk-seg button.is-on { background: var(--imk-card); color: var(--imk-accent); box-shadow: var(--shadow-sm); }
.imk .imk-seg button:focus-visible { outline: 2px solid var(--imk-accent); outline-offset: 1px; }
.imk .imk-hint { margin: 0.6rem 0 0; font-size: 0.8rem; line-height: 1.5; color: var(--imk-muted); }

.imk .imk-ad { margin-top: 0.875rem; min-width: 0; }

/* action bar */
.imk .imk-actionbar {
    position: sticky;
    bottom: 12px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.875rem;
    padding: 0.7rem 0.75rem 0.7rem 1.1rem;
    background: var(--imk-card);
    border: 1px solid var(--imk-line);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
}
.imk .imk-summary { display: flex; flex-direction: column; min-width: 0; }
.imk .imk-summary strong { font-size: 0.95rem; color: var(--imk-text); }
.imk .imk-summary span { font-size: 0.78rem; color: var(--imk-muted); }

/* ---------- result ---------- */
.imk .imk-result {
    background: var(--imk-card);
    border: 1px solid var(--imk-line);
    border-radius: 20px;
    padding: 1.4rem;
    box-shadow: var(--shadow-sm);
}
.imk .imk-result-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1rem; }
.imk .imk-result-check {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--imk-good);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
[data-theme="dark"] .imk .imk-result-check { color: #0f172a; }
.imk .imk-result-check svg { width: 24px; height: 24px; }
.imk .imk-result-title { margin: 0; font-size: 1.2rem; font-weight: 700; color: var(--imk-text); }
.imk .imk-result-sub { margin: 0; font-size: 0.85rem; color: var(--imk-muted); word-break: break-all; }
.imk .imk-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}
.imk .imk-stat {
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    background: var(--imk-sunk);
    border: 1px solid var(--imk-line);
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.imk .imk-stat span { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--imk-muted); }
.imk .imk-stat strong { font-size: 1rem; color: var(--imk-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imk .imk-stat em { font-style: normal; font-size: 0.75rem; font-weight: 700; color: var(--imk-muted); }
.imk .imk-stat em.is-good { color: var(--imk-good); }
.imk .imk-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.imk .imk-strip-item { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.imk .imk-strip-img {
    width: 76px;
    height: 76px;
    border-radius: 10px;
    border: 1px solid var(--imk-line);
    display: flex;
    align-items: center;
    justify-content: center;
}
.imk .imk-strip-img img { display: block; }
.imk .imk-strip-item figcaption { font-size: 0.75rem; font-weight: 700; color: var(--imk-text); text-align: center; line-height: 1.3; }
.imk .imk-strip-item figcaption em { display: block; font-style: normal; font-weight: 500; color: var(--imk-muted); font-size: 0.68rem; }
.imk .imk-result-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1rem;
}
.imk .imk-result-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.9rem 0 0;
    font-size: 0.8rem;
    color: var(--imk-muted);
}
.imk .imk-result-note svg { width: 14px; height: 14px; flex-shrink: 0; }
.imk .imk-result-note span { min-width: 0; }
.imk .imk-result-note a { color: var(--imk-accent); font-weight: 600; }

/* ---------- error ---------- */
.imk .imk-error {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: var(--error-bg, #fadbd8);
    border: 1px solid rgba(230, 78, 78, 0.35);
    color: var(--imk-text);
    font-size: 0.9rem;
    line-height: 1.55;
}
.imk .imk-error svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.15rem; color: #e64e4e; }
.imk .imk-error a { color: var(--imk-accent); font-weight: 600; }

/* ---------- overlay (compress-gif pattern) ---------- */
.imk .imk-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.imk .imk-overlay-card {
    min-width: 340px;
    max-width: 100%;
    padding: 1.5rem 1.6rem;
    border-radius: 16px;
    background: var(--imk-card);
    border: 1px solid var(--imk-line);
    text-align: center;
    box-shadow: var(--shadow-xl);
}
.imk .imk-stages { display: flex; align-items: center; justify-content: center; margin-bottom: 0.9rem; }
.imk .imk-stage-dot {
    width: 32px;
    height: 32px;
    padding: 6px;
    border-radius: 50%;
    background: var(--imk-sunk);
    color: var(--imk-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}
.imk .imk-stage-dot svg { width: 20px; height: 20px; }
.imk .imk-stage-dot.active { background: var(--imk-accent); color: #fff; }
.imk .imk-stage-dot.done { background: var(--imk-good); color: #fff; }
.imk .imk-stage-line { width: 28px; height: 2px; background: var(--imk-line); }
.imk .imk-overlay-msg { margin: 0 0 0.7rem; font-weight: 600; color: var(--imk-text); }
.imk .imk-bar { height: 8px; border-radius: 999px; background: var(--imk-sunk); overflow: hidden; }
.imk .imk-bar span { display: block; height: 100%; width: 0; background: var(--imk-accent); transition: width 0.2s ease; }
.imk .imk-bar-pct { display: block; margin-top: 0.45rem; font-size: 0.9rem; color: var(--imk-text); }

/* ---------- related + content ---------- */
.imk .related-tools { margin-top: 1.5rem; }
.imk .related-link svg { width: 16px; height: 16px; }
.imk .imk-info { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.imk .imk-info .info-card { background: var(--imk-card); border: 1px solid var(--imk-line); box-shadow: none; }
.imk .imk-info .info-card h2 svg { width: 22px; height: 22px; color: var(--imk-accent); }
.imk .imk-info p { margin: 0 0 0.8rem; line-height: 1.7; color: var(--text-secondary, #555); }
.imk .imk-info p:last-child { margin-bottom: 0; }
.imk .imk-info a { color: var(--imk-accent); font-weight: 500; }

.imk .imk-table-wrap { overflow-x: auto; margin: 0.4rem 0 1rem; border: 1px solid var(--imk-line); border-radius: 10px; }
.imk .imk-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.imk .imk-table th,
.imk .imk-table td { padding: 0.6rem 0.8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--imk-line); }
.imk .imk-table tr:last-child td { border-bottom: none; }
.imk .imk-table th { background: var(--imk-sunk); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--imk-muted); }
.imk .imk-table td { color: var(--text-secondary, #555); }
.imk .imk-table td:first-child { font-weight: 600; color: var(--imk-text); white-space: nowrap; }
.imk .imk-table td:nth-child(2) { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .imk .imk-grid { grid-template-columns: minmax(0, 1fr); }
    .imk .imk-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .imk .imk-editor { padding: 0.6rem; border-radius: 16px; }
    .imk .imk-upload { padding: 0.8rem; }
    .imk .imk-drop { padding: 2rem 0.8rem 1.8rem; }
    .imk .imk-drop-title { font-size: 1.1rem; }
    .imk .imk-card { padding: 0.85rem; }
    .imk .imk-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; }
    .imk .imk-filebar #imkChange span { display: none; }
    .imk .imk-tile-prev { width: 52px; height: 52px; }
    .imk .imk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .imk .imk-actionbar { bottom: 8px; padding: 0.6rem 0.6rem 0.6rem 0.9rem; }
    .imk .imk-actionbar .imk-go { padding: 0.65rem 1rem; }
    .imk .imk-result { padding: 1rem; }
    .imk .imk-result-actions > * { flex: 1 1 100%; }
    .imk .imk-overlay-card { min-width: 0; width: 100%; }
    .imk .imk-table td:nth-child(2) { white-space: normal; }
}

/* ============================================================
   Icon Maker additions: frame stage, style rows, shapes,
   swatches, tile states
   ============================================================ */
.imk .imk-sr {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* stage */
.imk .imk-stage-wrap {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    border: 1px solid var(--imk-line);
    overflow: hidden;
}
.imk .imk-stage {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: none;
}
.imk .imk-stage.is-grab { cursor: grabbing; }
.imk .imk-stage:focus-visible { outline: 2px solid var(--imk-accent); outline-offset: -2px; }
.imk .imk-zoom-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    max-width: 420px;
    margin: 0.85rem auto 0;
}
.imk .imk-zoom-row label { display: flex; color: var(--imk-muted); }
.imk .imk-zoom-row label svg { width: 18px; height: 18px; }
.imk .imk-zoom-row input[type="range"] {
    flex: 1;
    min-width: 0;
    height: 24px;
    margin: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.imk .imk-zoom-row input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: var(--imk-line); }
.imk .imk-zoom-row input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--imk-line); }
.imk .imk-zoom-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px; height: 18px;
    margin-top: -6px;
    border-radius: 50%;
    background: var(--imk-accent);
    border: 2px solid var(--imk-card);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.imk .imk-zoom-row input[type="range"]::-moz-range-thumb {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--imk-accent);
    border: 2px solid var(--imk-card);
}
.imk .imk-zoom-row input[type="range"]:focus-visible { outline: 2px solid var(--imk-accent-line); outline-offset: 4px; border-radius: 4px; }
.imk .imk-value {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 3.4rem;
    justify-content: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--imk-accent-soft);
    color: var(--imk-accent);
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.imk .imk-value-swatch::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: var(--imk-swatch, transparent);
    border: 1px solid var(--imk-line);
    flex-shrink: 0;
}
.imk .imk-value-swatch.is-clear::before {
    background-image:
        linear-gradient(45deg, var(--imk-checker) 25%, transparent 25%),
        linear-gradient(-45deg, var(--imk-checker) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--imk-checker) 75%),
        linear-gradient(-45deg, transparent 75%, var(--imk-checker) 75%);
    background-size: 6px 6px;
    background-position: 0 0, 0 3px, 3px -3px, -3px 0;
    background-color: var(--imk-card);
}
.imk .imk-frame-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

/* style rows (compact option rows) */
.imk .imk-style { padding: 0; overflow: hidden; }
.imk .imk-row + .imk-row { border-top: 1px solid var(--imk-line); }
.imk .imk-row-head {
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border: none;
    background: none;
    color: var(--imk-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.imk .imk-row-head:hover { background: var(--imk-sunk); }
.imk .imk-row-head:focus-visible { outline: 2px solid var(--imk-accent); outline-offset: -2px; }
.imk .imk-row-left { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.imk .imk-row-left > svg { width: 18px; height: 18px; color: var(--imk-accent); flex-shrink: 0; }
.imk .imk-row-text { display: flex; flex-direction: column; min-width: 0; }
.imk .imk-row-title { font-size: 0.925rem; font-weight: 700; }
.imk .imk-row-hint { font-size: 0.78rem; color: var(--imk-muted); line-height: 1.4; }
.imk .imk-row-right { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.imk .imk-chevron { width: 18px; height: 18px; color: var(--imk-muted); transition: transform 0.2s; }
.imk .imk-row.open .imk-chevron { transform: rotate(180deg); }
.imk .imk-row.open .imk-row-head,
.imk .imk-row.open .imk-row-body { background: var(--imk-sunk); }
.imk .imk-row-body { padding: 0.25rem 1rem 1rem; }
.imk .imk-row-body .imk-zoom-row { max-width: none; margin: 0.4rem 0 0; }

/* shapes */
.imk .imk-shapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.imk .imk-shape,
.imk .imk-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 0.3rem 0.55rem;
    border: 1px solid var(--imk-line);
    border-radius: 10px;
    background: var(--imk-card);
    color: var(--imk-text);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
    min-width: 0;
}
.imk .imk-shape:hover,
.imk .imk-swatch:hover { border-color: var(--imk-accent-line); }
.imk .imk-shape.is-on,
.imk .imk-swatch.is-on { border-color: var(--imk-accent); background: var(--imk-accent-soft); color: var(--imk-accent); }
.imk .imk-shape-prev { width: 30px; height: 30px; background: var(--imk-accent); display: block; }
.imk .imk-shape-rounded { border-radius: 7px; }
.imk .imk-shape-squircle { border-radius: 11px; }
.imk .imk-shape-circle { border-radius: 50%; }

/* swatches */
.imk .imk-swatches { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.45rem; position: relative; }
.imk .imk-swatch { padding: 0.55rem 0.2rem 0.5rem; font-size: 0.72rem; }
.imk .imk-swatch-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--imk-line);
    display: block;
    background-size: 8px 8px;
}
.imk .imk-color {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    border: 0;
    padding: 0;
}

/* tile states (size grid) */
.imk .imk-tile.is-on { border-color: var(--imk-accent); background: var(--imk-accent-soft); }
.imk .imk-tile.is-on .imk-tile-tag { background: var(--imk-accent); color: #fff; }
[data-theme="dark"] .imk .imk-tile.is-on .imk-tile-tag { color: #0f172a; }
.imk .imk-tile.is-up .imk-tile-tag { background: var(--imk-warn-soft); color: var(--imk-warn); }
.imk .imk-tile.is-na { opacity: 0.6; border-style: dashed; }
.imk .imk-tile-prev { width: 60px; height: 60px; }

@media (max-width: 600px) {
    .imk .imk-card-head { flex-wrap: wrap; row-gap: 0.2rem; }
    .imk .imk-shapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .imk .imk-swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .imk .imk-row-head { padding: 0.55rem 0.8rem; }
    .imk .imk-row-body { padding: 0.25rem 0.8rem 0.9rem; }
}

/* ---------- 2026-10-09: letter icons, border, shadow, snippet, recents ---------- */
.imk .imk-input {
    min-width: 0;
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid var(--imk-line);
    border-radius: 10px;
    background: var(--imk-card);
    color: var(--imk-text);
    font: inherit;
    font-size: 0.9rem;
}
.imk .imk-input:focus { outline: none; border-color: var(--imk-accent); box-shadow: 0 0 0 3px var(--imk-accent-soft); }
.imk .imk-textstart {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.85rem 0 0;
    padding: 0.4rem 0.4rem 0.4rem 0.75rem;
    border: 1px solid var(--imk-line);
    border-radius: 12px;
    background: var(--imk-card);
}
.imk .imk-textstart:focus-within { border-color: var(--imk-accent-line); box-shadow: 0 0 0 3px var(--imk-accent-soft); }
.imk .imk-textstart-icon svg { width: 18px; height: 18px; color: var(--imk-accent); display: block; }
.imk .imk-textstart .imk-input { flex: 1; border: none; height: 36px; padding: 0 0.25rem; box-shadow: none; background: transparent; }
.imk .imk-textstart .imk-btn { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 480px) { .imk .imk-textstart .imk-btn span { display: none; } }

.imk .imk-row[hidden] { display: none !important; }
.imk .imk-text-edit { width: 100%; margin: 0.4rem 0 0.8rem; font-size: 1.05rem; font-weight: 700; letter-spacing: 0.04em; }
.imk .imk-fonts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; margin-bottom: 0.8rem; }
.imk .imk-font {
    display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
    padding: 0.5rem 0.3rem; min-width: 0;
    border: 1px solid var(--imk-line); border-radius: 10px;
    background: var(--imk-card); color: var(--imk-text);
    font-size: 0.72rem; cursor: pointer;
}
.imk .imk-font .imk-font-aa { font-size: 1.25rem; font-weight: 800; line-height: 1.1; }
.imk .imk-font > span:last-child { font-family: inherit; font-weight: 600; }
.imk .imk-font:hover { border-color: var(--imk-accent-line); }
.imk .imk-font.is-on { border-color: var(--imk-accent); background: var(--imk-accent-soft); color: var(--imk-accent); }
.imk .imk-dots { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; position: relative; }
.imk .imk-dot {
    width: 30px; height: 30px; padding: 0;
    border-radius: 50%; border: 1px solid var(--imk-line);
    cursor: pointer; position: relative;
}
.imk .imk-dot.is-on { box-shadow: 0 0 0 2px var(--imk-card), 0 0 0 4px var(--imk-accent); }
.imk .imk-dot-custom { background: conic-gradient(#e64e4e, #f5b301, #339966, #3399cc, #8b5cf6, #e64e4e); }
.imk .imk-dot-custom > span:first-child { position: absolute; inset: 7px; border-radius: 50%; border: 2px solid #fff; }
.imk .imk-dots .imk-color { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; right: 0; bottom: 0; }
.imk .imk-seg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0.4rem 0 0.8rem; }
.imk .imk-row-body .imk-mini-label { margin-top: 0.2rem; }

.imk .imk-snippet { margin-top: 0.875rem; }
.imk .imk-snippet[hidden] { display: none !important; }
.imk .imk-code {
    margin: 0.2rem 0 0.6rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--imk-line);
    border-radius: 10px;
    background: var(--imk-sunk);
    font-family: Consolas, "Cascadia Code", monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
    color: var(--imk-text);
    overflow-x: auto;
}

.imk .imk-recent { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--imk-line); }
.imk .imk-recent[hidden] { display: none !important; }
.imk .imk-recent-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; }
.imk .imk-recent-head .imk-mini-label { display: inline-flex; align-items: center; gap: 0.35rem; margin: 0; }
.imk .imk-recent-head .imk-mini-label svg { width: 14px; height: 14px; }
.imk .imk-recent-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.5rem; }
.imk .imk-recent-item {
    display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-rows: auto auto;
    column-gap: 0.6rem; align-items: center; padding: 0.45rem 0.6rem;
    border: 1px solid var(--imk-line); border-radius: 10px;
    background: var(--imk-card); color: var(--imk-text); text-decoration: none; min-width: 0;
}
.imk .imk-recent-item:hover { border-color: var(--imk-accent-line); }
.imk .imk-recent-thumb { grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--imk-muted); }
.imk .imk-recent-thumb img { max-width: 32px; max-height: 32px; }
.imk .imk-recent-thumb svg { width: 18px; height: 18px; }
.imk .imk-recent-name { font-size: 0.8rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.imk .imk-recent-meta { grid-column: 2; font-size: 0.72rem; color: var(--imk-muted); }
.imk .imk-recent-dl { grid-row: 1 / 3; grid-column: 3; width: 16px; height: 16px; color: var(--imk-accent); }
.imk .imk-frame-btns { flex-wrap: wrap; }

/* Steps list circles follow the tool accent (2026-10-11) */
.imk.tool-container { --tool-accent: var(--imk-accent); }

/* 2026-10-11: four output choices (ICO, PNG, ICO + PNG, ICNS) */
.imk #imkFormat { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 420px) { .imk #imkFormat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
