
    :root {
        --bg: #ffffff;
        --panel: #F7F8FA;
        --border: #E5E8EC;
        --border-strong: #D6DAE1;
        --ink: #14181F;
        --ink-soft: #5B6472;
        --ink-faint: #8A93A1;
        --blue: #2F6FED;
        --blue-dark: #2158C9;
        --blue-tint: #EAF1FF;
        --teal: #0FA37F;
        --teal-tint: #E6F8F3;
        --danger: #E14B4B;
        --radius: 12px;
        --radius-sm: 8px;
        --font-display: 'Arial', sans-serif;
        --font-body: Arial, sans-serif;
        --font-mono: monospace;
        --shadow-sm: 0 1px 2px rgba(20, 24, 31, 0.05);
        --shadow-md: 0 8px 24px rgba(20, 24, 31, 0.08);
    }

    * {
        box-sizing: border-box;
    }

    html,
    body {
        margin: 0;
        padding: 0;
    }

    body {
        font-family: var(--font-body);
        background: var(--bg);
        color: var(--ink);
        -webkit-font-smoothing: antialiased;
    }

    .wrap {
        max-width: 1080px;
        margin: 0 auto;
        padding: 48px 24px 96px;
    }

    .head {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 24px;
        flex-wrap: wrap;
        margin-bottom: 28px;
    }

    .eyebrow {
        font-family: var(--font-mono);
        font-size: 12px;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--teal);
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
    }

    .eyebrow::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--teal);
    }

    h1 {
        font-size: 34px;
        margin: 0 0 6px;
    }

    .sub {
        color: var(--ink-soft);
        font-size: 15px;
        max-width: 620px;
        line-height: 1.5;
        margin: 0;
    }

    .privacy-pill {
        font-family: var(--font-mono);
        font-size: 12px;
        color: var(--teal);
        background: var(--teal-tint);
        border: 1px solid #BFE9DC;
        border-radius: 999px;
        padding: 8px 14px;
    }

    .dropzone {
        border: 1.5px dashed var(--border-strong);
        border-radius: var(--radius);
        background: var(--panel);
        padding: 44px 24px;
        text-align: center;
        cursor: pointer;
        transition: .15s ease;
    }

    .dropzone.drag {
        border-color: var(--blue);
        background: var(--blue-tint);
    }

    .dz-icon {
        width: 44px;
        height: 44px;
        margin: 0 auto 14px;
        border-radius: 10px;
        background: var(--blue-tint);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--blue);
    }

    .dz-title {
        font-size: 17px;
        font-weight: 600;
        margin-bottom: 4px;
    }

    .dz-title span {
        color: var(--blue);
        text-decoration: underline;
    }

    .dz-sub {
        color: var(--ink-faint);
        font-size: 13px;
    }

    .dz-alt {
        margin-top: 10px;
        font-size: 13px;
        color: var(--ink-faint);
    }

    .dz-alt button {
        color: var(--blue);
        background: none;
        border: none;
        text-decoration: underline;
        cursor: pointer;
    }

    #fileInput,
    #folderInput {
        display: none;
    }

    .panel {
        margin-top: 22px;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        overflow: hidden;
        display: none;
    }

    .panel.show {
        display: block;
    }

    .panel-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 14px 18px;
        background: var(--panel);
        border-bottom: 1px solid var(--border);
        flex-wrap: wrap;
    }

    .toolbar-left {
        display: flex;
        align-items: center;
        gap: 14px;
        font-size: 13.5px;
        color: var(--ink-soft);
    }

    .toolbar-right {
        display: flex;
        gap: 8px;
    }

    .icon-btn {
        width: 34px;
        height: 34px;
        border-radius: var(--radius-sm);
        border: 1px solid var(--border);
        background: #fff;
        color: var(--ink-soft);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .icon-btn:hover {
        background: var(--blue-tint);
        color: var(--blue);
    }

    .icon-btn.danger:hover {
        background: #FCEAEA;
        color: var(--danger);
    }

    .icon-btn:disabled {
        opacity: .35;
        cursor: not-allowed;
        pointer-events: none;
    }

    table {
        width: 100%;
        border-collapse: collapse;
    }

    th {
        text-align: left;
        font-family: var(--font-mono);
        font-size: 11.5px;
        text-transform: uppercase;
        color: var(--ink-faint);
        font-weight: 500;
        padding: 12px 18px;
        border-bottom: 1px solid var(--border);
    }

    th:first-child {
        width: 44px;
    }

    td {
        padding: 12px 18px;
        font-size: 14px;
        border-bottom: 1px solid var(--border);
        vertical-align: middle;
    }

    tr:hover {
        background: #FAFBFD;
    }

    .chk {
        width: 18px;
        height: 18px;
        accent-color: var(--blue);
    }

    .file-cell {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    .file-ico {
        width: 30px;
        height: 30px;
        flex-shrink: 0;
        border-radius: 7px;
        background: var(--blue-tint);
        color: var(--blue);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: bold;
    }

    .file-name {
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 300px;
    }

    .file-path {
        font-family: var(--font-mono);
        font-size: 10.5px;
        color: var(--ink-faint);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 300px;
    }

    .type-badge {
        font-family: var(--font-mono);
        font-size: 11.5px;
        background: var(--panel);
        border: 1px solid var(--border);
        color: var(--ink-soft);
        padding: 3px 8px;
        border-radius: 6px;
        text-transform: uppercase;
    }

    .cell-mono {
        font-family: var(--font-mono);
        color: var(--ink-soft);
        font-size: 13px;
    }

    .row-actions {
        display: flex;
        justify-content: flex-end;
        gap: 5px;
    }

    .row-download,
    .row-remove {
        width: 28px;
        height: 28px;
        border: none;
        background: none;
        cursor: pointer;
        border-radius: 6px;
        color: var(--ink-faint);
    }

    .row-download:hover {
        background: var(--blue-tint);
        color: var(--blue);
    }

    .row-remove:hover {
        background: #FCEAEA;
        color: var(--danger);
    }

    .grid-view-wrap {
        display: none;
        padding: 18px;
    }

    .grid-view-wrap.show {
        display: block;
    }

    .table-view-wrap.hide {
        display: none;
    }

    .view-toggle {
        display: flex;
        gap: 3px;
        background: var(--panel);
        border: 1px solid var(--border);
        border-radius: 9px;
        padding: 3px;
    }

    .panel-header {
        display: flex;
        justify-content: flex-end;
        padding: 12px 18px;
        border-bottom: 1px solid var(--border);
    }

    .view-btn {
        width: 30px;
        height: 30px;
        border: none;
        background: transparent;
        border-radius: 6px;
        cursor: pointer;
    }

    .view-btn.active {
        background: #fff;
        color: var(--blue);
    }

    .grid-view {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 14px;
    }

    .grid-card {
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 14px;
        background: #fff;
        cursor: grab;
    }

    .grid-card.dragging {
        opacity: .45;
    }

    .grid-card.drop-target {
        border-color: var(--blue);
    }

    .grid-card-top {
        display: flex;
        justify-content: space-between;
        margin-bottom: 14px;
    }

    .font-preview {
        height: 120px;
        border-radius: 8px;
        background: var(--panel);
        border: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 46px;
        color: var(--blue);
        font-weight: 600;
    }

    .grid-card-name {
        margin-top: 10px;
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .grid-card-path {
        font-family: var(--font-mono);
        font-size: 10px;
        color: var(--ink-faint);
        margin-top: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .grid-meta {
        margin-top: 8px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .action-bar {
        display: none;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-top: 22px;
        flex-wrap: wrap;
    }

    .zip-name-field {
        display: flex;
        align-items: center;
        gap: 8px;
        border: 1px solid var(--border-strong);
        border-radius: var(--radius-sm);
        padding: 9px 12px;
    }

    .zip-name-field input {
        border: none;
        outline: none;
        font-family: var(--font-mono);
        width: 190px;
    }

    .btn-compress {
        font-weight: 600;
        font-size: 15px;
        color: #fff;
        background: linear-gradient(180deg, var(--blue), var(--blue-dark));
        border: none;
        border-radius: var(--radius-sm);
        padding: 13px 26px;
        cursor: pointer;
    }

    .btn-compress:disabled {
        opacity: .5;
        cursor: not-allowed;
    }

    .progress-wrap {
        display: none;
        align-items: center;
        gap: 12px;
        margin-top: 18px;
        font-family: var(--font-mono);
        font-size: 13px;
    }

    .progress-wrap.show {
        display: flex;
    }

    .progress-track {
        flex: 1;
        height: 8px;
        border-radius: 999px;
        background: var(--panel);
        overflow: hidden;
    }

    .progress-fill {
        height: 100%;
        width: 0;
        background: linear-gradient(90deg, var(--blue), var(--teal));
    }

    .toast {
        position: fixed;
        bottom: 28px;
        left: 50%;
        transform: translateX(-50%) translateY(12px);
        background: var(--ink);
        color: #fff;
        padding: 10px 18px;
        border-radius: 8px;
        opacity: 0;
        pointer-events: none;
        transition: .18s;
        z-index: 50;
        font-size: 13px;
    }

    .toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    @media(max-width:760px) {

        .file-name,
        .file-path {
            max-width: 140px;
        }

        th:nth-child(3),
        td:nth-child(3),
        th:nth-child(5),
        td:nth-child(5) {
            display: none;
        }
    }
