
        :root {
            --bg: #f2f4f8;
            --surface: #ffffff;
            --surface-2: #f7f8fb;
            --accent: #0071e3;
            --accent-strong: #005bb5;
            --accent-soft: #eaf3fe;
            --accent-shadow: rgba(0, 113, 227, 0.28);
            --text: #16181d;
            --text-secondary: #61646c;
            --text-tertiary: #8a8d95;
            --border: #d8dbe2;
            --border-soft: #e6e8ee;
            --row-hover: #eef5fe;
            --row-stripe: #f8f9fc;
            --success: #34c759;
            --error: #ff3b30;
            --warning: #f59e0b;
            --success-bg: #e9f7ec; --success-fg: #1e7a35; --success-bd: #a9dcb6;
            --error-bg: #fdecea;  --error-fg: #b3261e;  --error-bd: #f3b1ac;
            --warning-bg: #fff8e6; --warning-fg: #8a5a00; --warning-bd: #f4d581;
            --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 28px rgba(16, 24, 40, 0.07);
            --shadow-pop: 0 24px 64px rgba(16, 24, 40, 0.22);
        }

        @media (prefers-color-scheme: dark) {
            :root {
                --bg: #0f1115;
                --surface: #191c22;
                --surface-2: #1f232b;
                --accent: #3f9bff;
                --accent-strong: #6cb2ff;
                --accent-soft: rgba(63, 155, 255, 0.14);
                --accent-shadow: rgba(63, 155, 255, 0.35);
                --text: #f2f3f6;
                --text-secondary: #a2a6b0;
                --text-tertiary: #7c808a;
                --border: #333845;
                --border-soft: #262b35;
                --row-hover: rgba(63, 155, 255, 0.12);
                --row-stripe: #1d212a;
                --success-bg: rgba(52, 199, 89, 0.14); --success-fg: #6fdd8b; --success-bd: rgba(52, 199, 89, 0.35);
                --error-bg: rgba(255, 69, 58, 0.14);   --error-fg: #ff8078;  --error-bd: rgba(255, 69, 58, 0.35);
                --warning-bg: rgba(245, 158, 11, 0.14);--warning-fg: #f7c368;--warning-bd: rgba(245, 158, 11, 0.35);
                --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 32px rgba(0, 0, 0, 0.45);
                --shadow-pop: 0 24px 64px rgba(0, 0, 0, 0.6);
            }
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            color-scheme: light dark;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
            background: var(--bg);
            color: var(--text);
            line-height: 1.5;
            overflow-x: hidden;
        }

        :focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 2px;
            border-radius: 6px;
        }

        .container {
            max-width: 960px;
            margin: 0 auto;
            padding: 0 1rem 3rem;
        }

        /* ===== Header ===== */
        .header {
            max-width: 960px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            gap: 1rem;
            padding: 1.1rem 1rem 0.35rem;
        }

        .app-name {
            display: flex;
            align-items: center;
            line-height: 0;
        }

        .app-name img {
            max-width: 100%;
            height: auto;
        }

        .header-spacer {
            min-width: 0;
        }

        .app-tagline {
            max-width: 960px;
            margin: 0 auto 1.4rem;
            padding: 0 1rem;
            text-align: center;
            font-size: 0.92rem;
            color: var(--text-secondary);
        }

        .app-tagline strong {
            color: var(--text);
            font-weight: 600;
        }

        .mode-switch {
            display: flex;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 9999px;
            padding: 4px;
            box-shadow: var(--shadow-card);
        }

        .mode-btn {
            appearance: none;
            background: transparent;
            border: none;
            font: inherit;
            padding: 10px 26px;
            border-radius: 9999px;
            font-weight: 500;
            cursor: pointer;
            transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
            color: var(--text-secondary);
            white-space: nowrap;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .mode-btn:hover {
            color: var(--text);
        }

        .mode-btn.active,
        .mode-btn[aria-current="page"] {
            background: var(--accent);
            color: #fff;
            box-shadow: 0 2px 8px var(--accent-shadow);
        }

        /* ===== Cards & sections ===== */
        .card {
            background: var(--surface);
            border: 1px solid var(--border-soft);
            border-radius: 20px;
            padding: 2rem;
            box-shadow: var(--shadow-card);
            margin-bottom: 2rem;
        }

        .section {
            display: none;
        }

        .section.active {
            display: block;
        }

        input[type="file"] {
            display: none;
        }

        /* ===== Drop zone (signature element) ===== */
        .file-picker {
            position: relative;
            border: 2px dashed var(--border);
            border-radius: 16px;
            padding: 2.75rem 2rem;
            text-align: center;
            cursor: pointer;
            transition: border-color 0.25s ease, background 0.25s ease, padding 0.3s ease;
            background: var(--surface-2);
        }

        .file-picker:hover,
        .file-picker:focus-visible {
            border-color: var(--accent);
            background: var(--accent-soft);
        }

        .file-picker__icon {
            width: 52px;
            height: 52px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 14px;
            background: var(--accent-soft);
            color: var(--accent);
            transition: transform 0.25s ease;
        }

        .file-picker:hover .file-picker__icon {
            transform: translateY(-2px);
        }

        .file-picker__title {
            margin-top: 0.9rem;
            font-size: 1.08rem;
            font-weight: 600;
            color: var(--text);
        }

        .file-picker__hint {
            margin-top: 0.35rem;
            font-size: 0.92rem;
            color: var(--text-secondary);
        }

        .file-picker__hint button {
            background: none;
            border: none;
            padding: 0;
            color: var(--accent);
            cursor: pointer;
            font: inherit;
            text-decoration: underline;
        }

        .file-picker--compact {
            padding: 1.1rem 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.9rem;
            text-align: left;
        }

        .file-picker--compact .file-picker__icon {
            width: 36px;
            height: 36px;
            margin: 0;
            border-radius: 10px;
        }

        .file-picker--compact .file-picker__icon svg {
            width: 18px;
            height: 18px;
        }

        .file-picker--compact .file-picker__title {
            margin-top: 0;
            font-size: 0.98rem;
        }

        .file-picker--compact .file-picker__hint {
            margin-top: 0.1rem;
            font-size: 0.85rem;
        }

        /* ===== Full-page drop overlay ===== */
        .drop-overlay {
            position: fixed;
            inset: 0;
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
            background: rgba(0, 113, 227, 0.14);
            background: color-mix(in srgb, var(--accent) 14%, transparent);
            backdrop-filter: blur(3px);
            pointer-events: none;
        }

        .drop-overlay[hidden] {
            display: none;
        }

        .drop-overlay__message {
            max-width: min(90vw, 720px);
            padding: 1.35rem 2rem;
            border-radius: 20px;
            background: var(--accent);
            color: #fff;
            font-size: clamp(1.05rem, 2.8vw, 1.45rem);
            font-weight: 600;
            text-align: center;
            line-height: 1.45;
            box-shadow: 0 24px 64px var(--accent-shadow);
        }

        /* ===== Entries panel ===== */
        .files-list {
            max-height: 340px;
            overflow-y: auto;
            margin: 0;
        }

        .entries-panel {
            border: 1px solid var(--border);
            border-radius: 14px;
            margin: 1rem 0;
            background: var(--surface);
            overflow: hidden;
        }

        .entries-list-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: 0.85rem 1rem;
            background: var(--accent-soft);
            border-bottom: 1px solid var(--border-soft);
        }

        .entries-summary {
            flex-shrink: 0;
            font-size: 0.82rem;
            font-weight: 500;
            color: var(--text-secondary);
            white-space: nowrap;
        }

        .files-list.files-table {
            display: block;
            padding: 0;
            background: var(--surface);
        }

        .files-list.files-table .file-item {
            display: flex;
            align-items: center;
            padding: 0.7rem 1rem;
            border: none;
            border-radius: 0;
            margin-bottom: 0;
            border-bottom: 1px solid var(--border-soft);
            background: var(--surface);
            transition: background 0.15s ease;
        }

        .files-list.files-table .file-item:last-child {
            border-bottom: none;
        }

        .files-list.files-table .file-item--striped {
            background: var(--row-stripe);
        }

        .files-list.files-table .file-item:hover {
            background: var(--row-hover);
        }

        .files-list.files-table .file-item:focus-visible {
            outline-offset: -2px;
        }

        .files-list.files-table .file-item--directory .entry-label {
            font-weight: 600;
        }

        .entries-table-head,
        .entries-table-head-spacer {
            display: flex;
            align-items: center;
            padding: 0.55rem 1rem;
            background: var(--surface-2);
            border-bottom: 1px solid var(--border-soft);
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--text-tertiary);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            position: sticky;
            top: 0;
            z-index: 1;
        }

        .entries-table-head-spacer {
            text-transform: none;
            letter-spacing: normal;
        }

        .entries-table-head .entry-type,
        .entry-type {
            flex-shrink: 0;
            width: 4rem;
        }

        .entries-table-head .entry-type {
            text-align: left;
        }

        .entry-type {
            color: var(--text-tertiary);
            font-size: 0.85rem;
            text-transform: capitalize;
        }

        .entries-table-head .entry-meta,
        .entry-meta {
            flex-shrink: 0;
            width: 5.5rem;
            text-align: right;
        }

        .entry-meta {
            color: var(--text-tertiary);
            font-size: 0.85rem;
            font-variant-numeric: tabular-nums;
        }

        .files-list.files-table .file-item--clickable,
        .icon-item--clickable,
        .files-list.files-table .file-item--navigable,
        .icon-item--navigable {
            cursor: pointer;
        }

        .entry-name {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 0.6rem;
            min-width: 0;
        }

        .entry-icon {
            flex-shrink: 0;
        }

        .entry-text {
            display: flex;
            flex-direction: column;
            min-width: 0;
        }

        .entry-label {
            font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
            font-size: 0.88rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .entry-path {
            font-size: 0.74rem;
            color: var(--text-tertiary);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .empty-folder {
            padding: 2.25rem 1rem;
            text-align: center;
            color: var(--text-secondary);
            font-size: 0.95rem;
        }

        /* ===== Buttons ===== */
        .btn {
            background: var(--accent);
            color: white;
            border: none;
            padding: 14px 32px;
            font-size: 1.02rem;
            font-weight: 600;
            font-family: inherit;
            border-radius: 9999px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
            box-shadow: 0 4px 12px var(--accent-shadow);
        }

        .btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 16px var(--accent-shadow);
        }

        .btn:active {
            transform: translateY(0);
        }

        .btn:disabled {
            opacity: 0.65;
            cursor: default;
            transform: none;
        }

        .btn-secondary {
            background: transparent;
            border: 2px solid var(--border);
            color: var(--text);
            box-shadow: none;
        }

        .btn-secondary:hover {
            border-color: var(--accent);
            color: var(--accent);
            box-shadow: none;
        }

        /* ===== Inputs ===== */
        input[type="text"], input[type="password"], input[type="search"], select {
            background: var(--surface);
            border: 1px solid var(--border);
            color: var(--text);
            padding: 13px 16px;
            border-radius: 12px;
            width: 100%;
            font-size: 1rem;
            font-family: inherit;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        input::placeholder {
            color: var(--text-tertiary);
        }

        select {
            appearance: none;
            -webkit-appearance: none;
            padding-right: 42px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 18px center;
            background-size: 12px;
        }

        input:focus, select:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
            box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
        }

        .toggle-group {
            display: flex;
            align-items: center;
            gap: 12px;
            margin: 1.25rem 0;
        }

        .toggle-group > label {
            font-weight: 500;
            min-width: 110px;
        }

        .field-suffix {
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-left: none;
            padding: 13px 16px;
            border-top-right-radius: 12px;
            border-bottom-right-radius: 12px;
            color: var(--text-secondary);
            font-size: 0.95rem;
            white-space: nowrap;
        }

        .password-wrap {
            position: relative;
            flex: 1;
            display: flex;
            align-items: center;
        }

        .password-wrap input {
            padding-right: 48px;
        }

        .pw-toggle {
            position: absolute;
            right: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 34px;
            height: 34px;
            border: none;
            border-radius: 9px;
            background: transparent;
            color: var(--text-tertiary);
            cursor: pointer;
            transition: color 0.2s ease, background 0.2s ease;
        }

        .pw-toggle:hover {
            color: var(--text);
            background: var(--surface-2);
        }

        .checkbox-option {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.92rem;
            color: var(--text-secondary);
            cursor: pointer;
            user-select: none;
            white-space: nowrap;
        }

        .checkbox-option input {
            width: auto;
            cursor: pointer;
            accent-color: var(--accent);
        }

        /* ===== Search ===== */
        .search-field {
            position: relative;
            flex: 1;
            min-width: 150px;
            max-width: 320px;
        }

        .search-field svg {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-tertiary);
            pointer-events: none;
        }

        .search-field input {
            padding: 9px 12px 9px 36px;
            font-size: 0.92rem;
            border-radius: 9999px;
        }

        input[type="search"]::-webkit-search-cancel-button {
            -webkit-appearance: none;
        }

        /* ===== Status & progress ===== */
        .status {
            margin-top: 1rem;
            padding: 0.9rem 1.1rem;
            border-radius: 12px;
            font-size: 0.95rem;
            display: none;
        }

        .status.has-content {
            display: block;
        }

        .success { background: var(--success-bg); color: var(--success-fg); border: 1px solid var(--success-bd); }
        .error   { background: var(--error-bg);   color: var(--error-fg);   border: 1px solid var(--error-bd); }
        .warning { background: var(--warning-bg); color: var(--warning-fg); border: 1px solid var(--warning-bd); }

        .progress {
            margin-top: 1.1rem;
        }

        .progress[hidden] {
            display: none;
        }

        .progress__track {
            height: 8px;
            border-radius: 9999px;
            background: var(--border-soft);
            overflow: hidden;
        }

        .progress__fill {
            height: 100%;
            width: 0%;
            border-radius: 9999px;
            background: var(--accent);
            transition: width 0.15s ease;
        }

        .progress__label {
            margin-top: 0.45rem;
            font-size: 0.85rem;
            color: var(--text-secondary);
            font-variant-numeric: tabular-nums;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* ===== Password reveal section ===== */
        .password-section {
            overflow: hidden;
            transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            max-height: 0;
            opacity: 0;
        }

        .password-section.visible {
            max-height: 160px;
            opacity: 1;
            margin-top: 1rem;
        }

        /* Locked: hide entry list/breadcrumb, but keep the close (×) available. */
        #zip-loaded.zip-locked #entries-list,
        #zip-loaded.zip-locked .zip-breadcrumb,
        #zip-loaded.zip-locked #open-summary {
            display: none;
        }

        #zip-loaded.zip-locked #entries-panel {
            display: block;
        }

        #zip-loaded.zip-locked .entries-list-header {
            justify-content: flex-end;
        }

        /* ===== Breadcrumb ===== */
        .zip-breadcrumb {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.25rem;
            min-width: 0;
            flex: 1;
        }

        .entries-list-header .zip-close-btn {
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 1.4rem;
            line-height: 1;
            padding: 4px 8px;
            border-radius: 8px;
            flex-shrink: 0;
            transition: color 0.2s ease, background 0.2s ease;
        }

        .entries-list-header .zip-close-btn:hover {
            color: var(--text);
            background: rgba(0, 113, 227, 0.1);
            background: color-mix(in srgb, var(--accent) 10%, transparent);
        }

        .breadcrumb-item {
            background: none;
            border: none;
            padding: 0;
            font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
            font-size: 0.92rem;
            color: var(--accent);
            cursor: pointer;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .breadcrumb-item:hover:not(.active) {
            text-decoration: underline;
        }

        .breadcrumb-item.active {
            color: var(--text);
            cursor: default;
            font-weight: 600;
        }

        .breadcrumb-separator {
            color: var(--text-tertiary);
            user-select: none;
            padding: 0 0.25rem;
        }

        /* ===== Toolbar & view switch ===== */
        .zip-toolbar {
            display: none;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 0.75rem;
            flex-wrap: wrap;
        }

        .view-switch {
            display: flex;
            margin-left: auto;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 9999px;
            padding: 3px;
        }

        .view-btn {
            padding: 7px 16px;
            border: none;
            border-radius: 9999px;
            background: transparent;
            font-size: 0.88rem;
            font-weight: 500;
            color: var(--text-secondary);
            cursor: pointer;
            font-family: inherit;
            transition: background 0.2s ease, color 0.2s ease;
        }

        .view-btn.active {
            background: var(--accent);
            color: white;
        }

        /* ===== Icon grid view ===== */
        .files-list.files-icons {
            padding: 1rem;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
            gap: 0.65rem;
            align-items: start;
            justify-items: stretch;
            background: var(--surface);
            width: 100%;
            box-sizing: border-box;
            max-height: 420px;
        }

        @media (min-width: 480px) {
            .files-list.files-icons {
                grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
            }
        }

        @media (min-width: 768px) {
            .files-list.files-icons {
                grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
            }
        }

        .icon-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 0.75rem 0.5rem;
            border-radius: 12px;
            border: 1px solid transparent;
            background: transparent;
            min-width: 0;
            width: 100%;
            box-sizing: border-box;
            transition: background 0.2s ease, border-color 0.2s ease;
        }

        .icon-item:hover {
            background: var(--row-hover);
            border-color: var(--border-soft);
        }

        .icon-item__glyph {
            font-size: 2.6rem;
            line-height: 1;
            margin-bottom: 0.5rem;
        }

        .icon-item__name {
            font-size: 0.78rem;
            font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
            word-break: break-word;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            width: 100%;
        }

        .icon-item__meta {
            font-size: 0.73rem;
            color: var(--text-tertiary);
            margin-top: 0.35rem;
        }

        /* ===== Banners ===== */
        .warning-banner {
            background: var(--warning-bg);
            border: 1px solid var(--warning-bd);
            color: var(--warning-fg);
            padding: 1rem 1.25rem;
            border-radius: 12px;
            margin-bottom: 1.25rem;
            font-size: 0.95rem;
        }

        /* ===== File dialog ===== */
        .file-dialog {
            border: none;
            border-radius: 20px;
            padding: 0;
            width: min(440px, calc(100vw - 2rem));
            max-height: calc(100vh - 2rem);
            overflow: visible;
            box-shadow: var(--shadow-pop);
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            margin: 0;
            background: var(--surface);
            color: var(--text);
        }

        .file-dialog__content {
            position: relative;
            padding: 2.5rem 1.75rem 1.75rem;
            max-height: calc(100vh - 2rem);
            overflow-y: auto;
        }

        .file-dialog:focus {
            outline: none;
        }

        .file-dialog::backdrop {
            background: rgba(0, 0, 0, 0.4);
        }

        .file-dialog__close {
            position: absolute;
            top: 0.75rem;
            right: 0.75rem;
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 1.5rem;
            line-height: 1;
            padding: 4px 9px;
            border-radius: 8px;
            user-select: none;
            transition: color 0.2s ease, background 0.2s ease;
        }

        .file-dialog__close:hover {
            color: var(--text);
            background: var(--surface-2);
        }

        .file-dialog__title {
            font-size: 1.05rem;
            font-weight: 600;
            color: var(--text);
            margin-bottom: 1.25rem;
            word-break: break-word;
            padding-right: 1.5rem;
        }

        .file-dialog__size {
            color: var(--text-secondary);
            font-weight: 500;
        }

        .file-dialog__preview {
            margin-bottom: 1.25rem;
        }

        .file-dialog__preview[hidden] {
            display: none;
        }

        .file-dialog__img {
            display: block;
            max-width: 100%;
            max-height: 260px;
            margin: 0 auto;
            border-radius: 12px;
            border: 1px solid var(--border-soft);
            background: var(--surface-2);
            object-fit: contain;
        }

        .file-dialog__text {
            max-height: 220px;
            overflow: auto;
            padding: 0.75rem 0.9rem;
            border-radius: 12px;
            border: 1px solid var(--border-soft);
            background: var(--surface-2);
            font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
            font-size: 0.78rem;
            line-height: 1.5;
            white-space: pre-wrap;
            word-break: break-word;
            color: var(--text-secondary);
        }

        .file-dialog__actions {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .file-dialog__remove {
            color: var(--error);
            border-color: var(--error);
            border-color: color-mix(in srgb, var(--error) 55%, var(--border));
        }

        .file-dialog__remove:hover {
            background: var(--error-bg);
            border-color: var(--error);
            color: var(--error);
        }

        .files-icons-section-label {
            grid-column: 1 / -1;
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.04em;
            padding: 0.5rem 0.25rem 0;
        }

        /* ===== Responsive ===== */
        @media (max-width: 700px) {
            .header {
                grid-template-columns: 1fr;
                justify-items: center;
                text-align: center;
                gap: 0.75rem;
            }
            .header-spacer { display: none; }
            .card { padding: 1.25rem; }
            .toggle-group {
                flex-direction: column;
                align-items: stretch;
                gap: 6px;
            }
            .toggle-group > label { min-width: 0; }
            .search-field { max-width: none; width: 100%; }
            .view-switch { margin-left: 0; }
            .zip-toolbar { justify-content: space-between; }
        }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                transition-duration: 0.01ms !important;
                animation-duration: 0.01ms !important;
            }
        }


        /* ===== Home hub (tool cards) ===== */
        .hero {
            max-width: 960px;
            margin: 0.5rem auto 1.75rem;
            padding: 0 1rem;
            text-align: center;
        }
        .hero h1 {
            font-size: clamp(1.65rem, 4vw, 2.15rem);
            font-weight: 800;
            letter-spacing: -0.02em;
            line-height: 1.2;
            text-wrap: balance;
        }
        .hero-subtitle {
            margin-top: 0.55rem;
            font-size: 1.02rem;
            color: var(--text-secondary);
        }
        .hero-subtitle strong {
            color: var(--text);
            font-weight: 600;
        }
        .tool-choice {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
            max-width: 960px;
            margin: 0 auto 2.5rem;
            padding: 0 1rem;
        }
        .tool-card {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            padding: 28px 18px;
            background: var(--surface);
            border: 1px solid var(--border-soft);
            border-top: 4px solid var(--accent);
            border-radius: 18px;
            text-decoration: none;
            text-align: center;
            color: var(--text);
            box-shadow: var(--shadow-card);
            transition: transform 0.12s ease-out;
        }
        .tool-card:hover { transform: translateY(-2px); }
        .tool-card-icon { color: var(--accent); }
        .tool-card-name {
            font-size: 1.45rem;
            font-weight: 800;
            letter-spacing: -0.01em;
        }
        .tool-card-text {
            color: var(--text-secondary);
            font-size: 0.95rem;
        }
        .home-content {
            max-width: 720px;
            margin: 0 auto;
            padding: 0 1rem 1rem;
        }
        .home-content h2 {
            font-size: 1.3rem;
            font-weight: 700;
            margin: 0 0 0.75rem;
        }
        .how-to { margin-bottom: 2rem; }
        .steps {
            padding-left: 1.25rem;
            color: var(--text-secondary);
        }
        .steps li { margin: 0.4rem 0; }
        .faq details {
            border: 1px solid var(--border-soft);
            background: var(--surface);
            border-radius: 12px;
            padding: 0.85rem 1rem;
            margin: 0.55rem 0;
        }
        .faq summary {
            cursor: pointer;
            font-weight: 600;
        }
        .faq details p {
            margin: 0.65rem 0 0.15rem;
            color: var(--text-secondary);
        }
        .home-header {
            max-width: 960px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: 1.1rem 1rem 0.35rem;
        }
        .home-nav {
            display: flex;
            gap: 1.1rem;
            list-style: none;
        }
        .home-nav a {
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 600;
            font-size: 0.95rem;
        }
        .home-nav a:hover { color: var(--text); }
        @media (max-width: 700px) {
            .tool-choice { grid-template-columns: 1fr; }
            .tool-card {
                flex-direction: row;
                flex-wrap: wrap;
                padding: 16px 18px;
                border-top: 1px solid var(--border-soft);
                border-left: 4px solid var(--accent);
                text-align: left;
                column-gap: 14px;
                row-gap: 0;
            }
            .tool-card-name { font-size: 1.2rem; flex: 1; }
            .tool-card-text { flex-basis: 100%; padding-left: 54px; margin-top: -4px; }
            .home-header { flex-direction: column; text-align: center; }
        }
        @media (prefers-reduced-motion: reduce) {
            .tool-card { transition: none; }
        }
