/*
 * Passport Photo Maker: the tool's own components, styled in the site's design language (6 Oct 2026, on the UltraCompress
 * Pro template, the fourth of the twelve older tools brought onto it). Base: /libs/site-pages.css (tokens, Inter and Space
 * Grotesk, buttons, theme toggle, focus rings) and /libs/shared-nav.css (the site's header and footer). This file holds the
 * three-step row, the Photo Settings card (country, units, sizes, presets, paper, count), the Photo and Sheet card (the
 * drop zone in the site's look, the sheet preview and the download buttons), the editing card (crop canvas, fullscreen
 * button, sliders with the original's zoom, rotation and hue tracks, undo, redo and reset), the fullscreen editor window,
 * the loading overlay and the information sections. The script moves the drop zone into the editing card after an upload
 * (`.editing-section #upload-area`) and shows the containers it needs; every id and class it touches keeps its name. The
 * original's gradient header, floating buttons, scroll indicator, five privacy cards, own footer and own dark mode
 * (body.dark-mode) are gone: the site's toggle owns the theme and the shared footer carries the links.
 */

/* ----- Tokens the tool adds ----- */
:root {
    --surface: #ffffff;
    --surface-2: #f3f4f8;
    --ring: rgba(139, 92, 246, 0.18);
    --app-max: 1600px;
    --paper: #ffffff;
}
:root:not([data-theme="light"]) {
    --surface: #14141f;
    --surface-2: rgba(255, 255, 255, 0.05);
}

/* ----- Page: full width, the page provides the side space ----- */
.container.app-container {
    max-width: calc(var(--app-max) + 2 * var(--content-gutter));
    margin-top: 16px;
}
@media (min-width: 640px) { .container.app-container { margin-top: 24px; } }

/* ----- The site header is the first thing on the page and stays at the top (11 Oct 2026: the Tools bar above it was removed; the header's own Tools link leads to the same page) ----- */
body { padding-top: 0; }
body > header { position: sticky; top: 0; z-index: 50; }
header .site-nav { position: relative; top: auto; }
.theme-toggle { top: 90px; }
@media (max-width: 639.98px) { .theme-toggle { top: 75px; } } /* the header is 81 px tall from 640 px, 65 px below */

.hidden { display: none !important; }
.visually-hidden, .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; }

/* ----- Hero: brand row, headline, tagline ----- */
.app-hero { margin: 0 0 2rem; text-align: center; }
.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-strong);
}
.app-brand img { width: 44px; height: 44px; border-radius: 12px; display: block; }
.app-hero h1 { margin-bottom: 0.75rem; }
.app-tagline { color: var(--text-2); font-size: 1.125rem; line-height: 1.6; max-width: 46rem; margin: 0 auto; }

/* ----- Buttons: the site's pills in the tool's sizes ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 9999px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    padding: 12px 24px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn-primary { background: var(--gradient-brand); color: #fff; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text-strong); border: 1px solid var(--surface-border); padding: 11px 23px; }
.btn-secondary:hover:not(:disabled) { border-color: var(--brand); color: var(--link); transform: translateY(-2px); }
.btn-danger { background: var(--surface); color: var(--danger); border: 1px solid rgba(185, 28, 28, 0.35); padding: 11px 23px; }
.btn-danger:hover:not(:disabled) { background: var(--danger); color: #fff; border-color: transparent; transform: translateY(-2px); }
.btn-sm { font-size: 0.85rem; padding: 9px 16px; }
.btn-secondary.btn-sm, .btn-danger.btn-sm { padding: 8px 15px; }

/* ----- The app: the step row, two cards, the editing card ----- */
.app-shell { margin: 0 0 3rem; scroll-margin-top: 90px; }
.steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.25rem; }
.step {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 6px;
    border-radius: 9999px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    box-shadow: var(--surface-shadow);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-2);
    transition: border-color 0.2s ease, color 0.2s ease;
}
.step-number { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); color: var(--text-2); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; transition: background 0.2s ease, color 0.2s ease; }
.step.active { border-color: var(--brand); color: var(--text-strong); }
.step.active .step-number { background: var(--gradient-brand); color: #fff; }

.app-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: start; margin: 0 0 20px; }
.card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    box-shadow: var(--surface-shadow);
    overflow: hidden;
}
.card-header { padding: 14px 20px; border-bottom: 1px solid var(--surface-border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-title { margin: 0; font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--text-strong); }
.card-body { padding: 16px 20px 20px; }

/* ----- Forms ----- */
.form-group { margin-bottom: 18px; }
.form-group:last-child { margin-bottom: 0; }
.form-group > label, .form-label { display: block; margin-bottom: 6px; font-size: 0.85rem; font-weight: 600; color: var(--text-strong); }
.form-label--sub { margin-top: 12px; }
.sub-fields { margin-top: 10px; }
select, input[type="number"] {
    width: 100%;
    min-width: 0;
    padding: 10px 14px;
    background: var(--field);
    border: 1px solid var(--field-border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; cursor: pointer; }
select option { color: #0a0a14; background: #fff; }
select:focus, input[type="number"]:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.size-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.size-inputs label { display: block; margin-bottom: 6px; font-size: 0.8rem; font-weight: 600; color: var(--text-2); }
.unit-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 9999px; background: var(--surface-2); margin-bottom: 12px; }
.unit-btn {
    padding: 7px 14px;
    border: 0;
    border-radius: 9999px;
    background: transparent;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-2);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.unit-btn:hover { color: var(--link); }
.unit-btn.active { background: var(--gradient-brand); color: #fff; box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); }
.unit-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.preset-sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.preset-btn {
    padding: 6px 11px;
    border: 1px solid var(--chip-border);
    border-radius: 9999px;
    background: var(--chip);
    color: var(--text-2);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.preset-btn:hover { border-color: var(--brand); color: var(--link); }
.preset-btn.active { background: var(--gradient-brand); color: #fff; border-color: transparent; }
.radio-group { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.radio-label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.92rem; color: var(--text); }
.radio-label input[type="radio"] { width: 16px; height: 16px; accent-color: #8B5CF6; margin: 0; }
.success { margin: 10px 0 0; font-size: 0.85rem; font-weight: 600; color: var(--success); }
.success:empty { display: none; }
.success-info { font-size: 0.85rem; color: var(--text-2); }

/* ----- The drop zone: the site's look ----- */
#upload-area {
    border: 2px dashed var(--field-border);
    border-radius: 16px;
    padding: 44px 24px;
    text-align: center;
    cursor: pointer;
    background: var(--surface-2);
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
#upload-area:hover, #upload-area.dragover, #upload-area:focus-visible { border-color: var(--brand); background: var(--tint-brand); transform: translateY(-2px); box-shadow: var(--surface-hover-shadow); outline: none; }
#upload-area p { margin: 0; color: var(--text-2); font-size: 0.9rem; }
#upload-area p strong { display: block; color: var(--text-strong); font-size: 1rem; margin-bottom: 4px; }
.upload-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--gradient-brand); color: #fff; font-size: 1.6rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3); transition: transform 0.25s ease; }
#upload-area:hover .upload-icon, #upload-area.dragover .upload-icon { transform: scale(1.1); }
/* After an upload the script moves the zone into the editing card, as a quieter "another photo" box */
.editing-section #upload-area { margin-top: 20px; padding: 22px 20px; opacity: 0.85; }
.editing-section #upload-area:hover { opacity: 1; }
.editing-section #upload-area .upload-icon { width: 44px; height: 44px; font-size: 1.1rem; margin-bottom: 8px; }

/* ----- The sheet preview and the downloads ----- */
#preview-container { display: none; margin: 0 0 20px; padding: 16px; background: var(--surface-2); border-radius: 14px; text-align: center; }
#preview-container h3 { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); margin: 0 0 10px; }
#preview-canvas { max-width: 100%; height: auto; display: block; margin: 0 auto; border: 1px solid var(--surface-border); box-shadow: 0 10px 30px rgba(20, 20, 60, 0.12); background: var(--paper); border-radius: 4px; }
.info-box { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--tint-brand); border: 1px solid var(--tint-brand-border); text-align: left; }
.info-box p { margin: 0; font-size: 0.85rem; color: var(--text-2); }
.download-buttons { margin-top: 14px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.download-buttons .btn { flex: 1 1 auto; }

/* ----- Editing card: canvas left, sliders right ----- */
.editing-section { padding: 20px; }
.editing-section:not(:has(#crop-container[style*="block"])):not(:has(#upload-area)) { display: none; }
#crop-container { display: none; }
.editing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.editing-left { display: flex; flex-direction: column; gap: 14px; }
.editing-right { display: flex; flex-direction: column; }
#crop-canvas { max-width: 100%; height: auto; display: block; margin: 0 auto; cursor: grab; border-radius: 12px; border: 1px solid var(--surface-border); background: var(--paper); box-shadow: 0 10px 30px rgba(20, 20, 60, 0.12); }
#crop-canvas:active { cursor: grabbing; }
.crop-hint { user-select: none; }
.fullscreen-button-container { display: none; text-align: center; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.fullscreen-hint { margin: 8px 0 0; font-size: 0.78rem; color: var(--text-3); }
.controls { margin: 0; }
.slider-group { margin-bottom: 16px; position: relative; }
.slider-group label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 0.85rem; font-weight: 600; color: var(--text-strong); }
.slider-value { font-weight: 700; color: var(--link); background: var(--tint-brand); border: 1px solid var(--tint-brand-border); padding: 2px 10px; border-radius: 9999px; font-size: 0.78rem; min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; }
.slider { width: 100%; appearance: none; -webkit-appearance: none; height: 8px; border-radius: 4px; background: var(--surface-2); outline: none; margin: 4px 0; cursor: pointer; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid #8B5CF6; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); cursor: pointer; transition: transform 0.15s ease; }
.slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid #8B5CF6; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); cursor: pointer; }
.slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.slider:focus-visible { box-shadow: 0 0 0 3px var(--ring); }
/* The original's tinted tracks: zoom from the zoomed-out red to the brand at 300%, rotation from red to blue, hue a rainbow */
#zoom-slider, #modal-zoom-slider { background: linear-gradient(to right, #fce4e4 0%, var(--surface-2) 16.67%, #ede9fe 20%, #c4b5fd 60%, #8B5CF6 100%); }
#rotation-slider, #modal-rotation-slider { background: linear-gradient(to right, #ffd4d4 0%, var(--surface-2) 50%, #d4e8ff 100%); }
#hue-slider, #modal-hue-slider { background: linear-gradient(to right, hsl(0, 70%, 70%) 0%, hsl(30, 70%, 70%) 8.33%, hsl(60, 70%, 70%) 16.66%, hsl(90, 70%, 70%) 25%, hsl(120, 70%, 70%) 33.33%, hsl(150, 70%, 70%) 41.66%, hsl(180, 70%, 70%) 50%, hsl(210, 70%, 70%) 58.33%, hsl(240, 70%, 70%) 66.66%, hsl(270, 70%, 70%) 75%, hsl(300, 70%, 70%) 83.33%, hsl(330, 70%, 70%) 91.66%, hsl(360, 70%, 70%) 100%); }
.slider-group::after { content: ''; position: absolute; bottom: 7px; left: 50%; width: 2px; height: 12px; background: var(--text-3); transform: translateX(-50%); pointer-events: none; opacity: 0.5; border-radius: 1px; }
.slider-group.with-reset-btn { padding-right: 44px; }
.slider-group.with-reset-btn::after { left: calc(50% - 22px); }
.rotation-reset-btn {
    position: absolute;
    right: 0;
    top: 26px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--chip-border);
    background: var(--chip);
    color: var(--text-strong);
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, border-color 0.2s ease, color 0.2s ease;
}
.rotation-reset-btn:hover { transform: rotate(180deg); border-color: var(--brand); color: var(--link); }
.edit-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.edit-actions .btn { flex: 1 1 auto; }

/* ----- Fullscreen editor window (the script shows it with display: flex) ----- */
.modal-overlay { position: fixed; inset: 0; background: rgba(10, 10, 20, 0.7); backdrop-filter: blur(6px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-content {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    width: 100%;
    max-width: 1100px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--surface-border); }
.modal-header h3 { margin: 0; font-size: 1.15rem; }
.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--chip-border);
    background: var(--chip);
    color: var(--text-strong);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.modal-close:hover { border-color: var(--brand); color: var(--link); }
.modal-body { display: flex; flex: 1; min-height: 0; }
.modal-left { flex: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; background: var(--surface-2); border-right: 1px solid var(--surface-border); min-width: 0; }
.modal-right { flex: 1; min-width: 300px; padding: 20px; overflow-y: auto; }
#modal-canvas { max-width: 100%; max-height: 60vh; cursor: grab; border-radius: 10px; box-shadow: 0 10px 30px rgba(20, 20, 60, 0.15); background: var(--paper); }
#modal-canvas:active { cursor: grabbing; }
.modal-hint { margin: 12px 0 0; color: var(--text-3); font-size: 0.85rem; text-align: center; }
.modal-controls h4 { margin: 0 0 16px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.modal-buttons { margin-top: 16px; display: flex; gap: 10px; }
.modal-buttons .btn { flex: 1; }

/* ----- Loading overlay ----- */
.loading-overlay { position: fixed; inset: 0; background: rgba(10, 10, 20, 0.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 9999; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.loading-overlay.active { opacity: 1; visibility: visible; }
.loading-spinner { width: 56px; height: 56px; border: 4px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; }
.loading { display: inline-block; width: 20px; height: 20px; border: 3px solid var(--surface-2); border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ----- Information sections below the tool ----- */
.info-section { margin: 0 0 2.5rem; }
.info-section h2 { font-size: 1.75rem; margin: 0 0 1.25rem; }
.info-section > p { max-width: 70ch; color: var(--text-2); }
.info-section .info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1rem 0 1.5rem; }
.info-stack { display: grid; gap: 12px; }
.info-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    box-shadow: var(--surface-shadow);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--surface-hover-shadow); }
.info-card--small { padding: 16px; box-shadow: none; }
.info-card h3 { margin: 0 0 0.75rem; font-size: 1.15rem; }
.info-card p { color: var(--text-2); margin-bottom: 0.75rem; }
.info-card p:last-child { margin-bottom: 0; }
.step-card { position: relative; padding-top: 24px; }
.step-num {
    position: absolute;
    top: -16px;
    left: 20px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 0.75rem; }
.step-head h3 { margin: 0; }
.step-emoji { font-size: 1.6rem; line-height: 1; }
.info-section details.info-card { padding: 0; }
.info-section details.info-card summary {
    cursor: pointer;
    padding: 16px 20px;
    font-weight: 600;
    color: var(--text-strong);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.info-section details.info-card summary::-webkit-details-marker { display: none; }
.info-section details.info-card summary::after { content: '+'; color: var(--link); font-weight: 700; font-size: 1.2rem; line-height: 1; flex-shrink: 0; }
.info-section details.info-card[open] summary::after { content: '\2212'; }
.info-section details.info-card p { padding: 0 20px 16px; margin: 0; color: var(--text-2); }

/* ----- Tablets and phones ----- */
@media (max-width: 1023px) {
    .app-layout { grid-template-columns: 1fr; }
    .info-section .info-grid, .info-three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .editing-grid { grid-template-columns: 1fr; }
    .modal-overlay { padding: 8px; }
    .modal-content { max-height: 94vh; }
    .modal-body { flex-direction: column; overflow-y: auto; }
    .modal-left { border-right: 0; border-bottom: 1px solid var(--surface-border); padding: 16px; }
    .modal-right { min-width: 0; overflow: visible; }
    #modal-canvas { max-height: 45vh; }
    .slider::-webkit-slider-thumb { width: 28px; height: 28px; }
    .slider::-moz-range-thumb { width: 28px; height: 28px; }
}
@media (max-width: 639px) {
    .app-hero { margin-bottom: 1.5rem; }
    .app-tagline { font-size: 1rem; }
    .steps { gap: 6px; }
    .step { font-size: 0.8rem; padding: 4px 12px 4px 4px; }
    .step-number { width: 26px; height: 26px; font-size: 0.78rem; }
    .card-header { padding-left: 16px; padding-right: 16px; }
    .card-body { padding: 14px 16px 16px; }
    .editing-section { padding: 16px; }
    .size-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #upload-area { padding: 32px 16px; }
    .download-buttons .btn { flex: 1 1 100%; }
    .info-section h2 { font-size: 1.4rem; }
    .info-section .info-grid, .info-three { grid-template-columns: 1fr; }
    .info-card { padding: 16px; }
    .step-num { left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .btn, .info-card, #upload-area, .upload-icon, .rotation-reset-btn, .step, .step-number { transition: none; }
}
@media print {
    body > header, .theme-toggle, .steps, .info-section, footer, .modal-overlay, .loading-overlay, .editing-section, .download-buttons, .info-box { display: none !important; }
    .app-layout { display: block; }
    .card { box-shadow: none; border: 0; }
}

/* Phones: 16 px text, 44 px tap targets (AdSense audit H-04, 8 Oct 2026) */
@media (max-width: 639.98px) {
    main button, main select, main summary, main [role="button"],
    main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]) { min-height: 44px; }
    div#upload-area > p,
    div.form-group > p#fit-info.success { font-size: 1rem; }
}
