.gesnote-export-page {
    --export-navy: #13213a;
    --export-navy-soft: #1d3154;
    --export-orange: #f1911c;
    --export-green: #198754;
    --export-light: #f6f8fc;
    --export-border: #dce3ee;
    --export-muted: #64748b;
}

.gesnote-export-context-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(25, 135, 84, 0.2);
    border-radius: 999px;
    color: #137047;
    background: #ebf8f1;
    font-size: 0.86rem;
    font-weight: 800;
}

.gesnote-export-action-card {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 265px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    border: 1px solid var(--export-border);
    border-radius: 26px;
    color: var(--export-navy);
    background: #fff;
    text-align: left;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease,
        border-color 0.24s ease;
}

.gesnote-export-action-card::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -80px;
    z-index: -1;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    opacity: 0.13;
    background: currentColor;
}

.gesnote-export-action-card:hover,
.gesnote-export-action-card:focus-visible {
    transform: translateY(-6px);
    border-color: rgba(241, 145, 28, 0.5);
    box-shadow: 0 26px 65px rgba(15, 23, 42, 0.14);
    outline: none;
}

.gesnote-export-action-card.is-export {
    color: var(--export-navy);
}

.gesnote-export-action-card.is-import {
    color: var(--export-green);
}

.gesnote-export-card-glow {
    position: absolute;
    top: -70px;
    right: -55px;
    z-index: -1;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(241, 145, 28, 0.22),
        rgba(241, 145, 28, 0)
    );
}

.gesnote-export-card-icon {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(
        145deg,
        var(--export-navy),
        var(--export-navy-soft)
    );
    box-shadow: 0 14px 28px rgba(19, 33, 58, 0.22);
    font-size: 2rem;
}

.is-import .gesnote-export-card-icon {
    background: linear-gradient(145deg, #137047, #25a66a);
    box-shadow: 0 14px 28px rgba(25, 135, 84, 0.22);
}

.gesnote-export-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.gesnote-export-card-kicker {
    margin-bottom: 0.45rem;
    color: var(--export-orange);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.is-import .gesnote-export-card-kicker {
    color: var(--export-green);
}

.gesnote-export-card-title {
    margin-bottom: 0.65rem;
    color: var(--export-navy);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 900;
    line-height: 1.15;
}

.gesnote-export-card-text {
    max-width: 510px;
    color: var(--export-muted);
    font-size: 0.96rem;
    line-height: 1.65;
}

.gesnote-export-card-arrow {
    position: absolute;
    right: 1.7rem;
    bottom: 1.7rem;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--export-orange);
    font-size: 1.15rem;
    transition: transform 0.2s ease;
}

.gesnote-export-card-arrow.is-green {
    background: var(--export-green);
}

.gesnote-export-action-card:hover .gesnote-export-card-arrow {
    transform: translate(3px, -3px);
}

.gesnote-export-card-status {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    display: inline-flex;
    padding: 0.52rem 0.8rem;
    border-radius: 999px;
    color: #137047;
    background: #eaf8f1;
    font-size: 0.75rem;
    font-weight: 900;
}

.gesnote-export-modal {
    overflow: visible;
    border: 0;
    border-radius: 26px;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
}

.gesnote-export-modal-header {
    padding: 1.45rem 1.7rem;
    border: 0;
    color: #fff;
    background:
        radial-gradient(
            circle at 90% -40%,
            rgba(241, 145, 28, 0.42),
            transparent 43%
        ),
        linear-gradient(135deg, var(--export-navy), #20395f);
}

.gesnote-export-modal-header .modal-title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 900;
}

.gesnote-export-modal-header p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
}

.gesnote-import-modal-header {
    background:
        radial-gradient(
            circle at 90% -40%,
            rgba(255, 255, 255, 0.2),
            transparent 43%
        ),
        linear-gradient(135deg, #12633f, #1d9360);
}

.gesnote-import-modal-body {
    max-height: min(72vh, 780px);
    overflow-y: auto;
    background: #fbfcfe;
}

.gesnote-export-modal-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.11);
    font-size: 1.55rem;
}

.gesnote-export-form-intro,
.gesnote-export-criteria {
    border: 1px solid var(--export-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.055);
}

.gesnote-export-form-intro {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.35rem;
}

.gesnote-export-criteria {
    padding: 1.5rem;
}

.gesnote-export-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid #edf1f6;
}

.gesnote-export-section-heading h3 {
    margin: 0 0 0.25rem;
    color: var(--export-navy);
    font-size: 1.08rem;
    font-weight: 900;
}

.gesnote-export-section-heading p {
    margin: 0;
    color: var(--export-muted);
    font-size: 0.88rem;
}

.gesnote-export-step {
    width: 38px;
    height: 38px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: var(--export-orange);
    box-shadow: 0 8px 18px rgba(241, 145, 28, 0.24);
    font-size: 0.78rem;
    font-weight: 900;
}

.gesnote-export-step.is-green {
    background: var(--export-green);
    box-shadow: 0 8px 18px rgba(25, 135, 84, 0.24);
}

.gesnote-export-checkselect {
    position: relative;
}

.gesnote-export-checkselect > .form-select {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding-right: 1rem;
    background-image: none;
}

.gesnote-export-checkselect > .form-select:disabled {
    color: #94a3b8;
    background-color: #f8fafc;
    cursor: not-allowed;
}

.gesnote-export-checkselect.is-open > .form-select {
    border-color: var(--export-orange);
    box-shadow: 0 0 0 0.22rem rgba(241, 145, 28, 0.14);
}

.gesnote-export-checkselect.is-open
    > .form-select
    .bi-chevron-down {
    transform: rotate(180deg);
}

.gesnote-export-checkselect .bi-chevron-down {
    flex: 0 0 auto;
    color: #64748b;
    transition: transform 0.2s ease;
}

.gesnote-export-checkselect-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 1085;
    max-height: 280px;
    overflow: auto;
    padding: 0.55rem;
    border: 1px solid var(--export-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.18);
}

.gesnote-export-checkselect-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
    padding: 0.68rem 0.72rem;
    border-radius: 11px;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        color 0.16s ease,
        background 0.16s ease;
}

.gesnote-export-checkselect-option:hover {
    color: var(--export-navy);
    background: #f3f6fa;
}

.gesnote-export-checkselect-option.is-all {
    color: var(--export-navy);
    background: #f7f9fc;
    font-weight: 900;
}

.gesnote-export-checkselect-option input {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    accent-color: var(--export-orange);
}

.gesnote-export-checkselect-divider {
    height: 1px;
    margin: 0.4rem 0.25rem;
    background: #e9eef5;
}

.gesnote-export-checkselect-loading,
.gesnote-export-checkselect-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 76px;
    padding: 1rem;
    color: var(--export-muted);
    font-size: 0.86rem;
    text-align: center;
}

.gesnote-export-empty-state {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed #dbe3ee;
    border-radius: 22px;
    color: var(--export-muted);
    background: var(--export-light);
    text-align: center;
}

.gesnote-export-empty-state > span {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 18px;
    color: var(--export-orange);
    background: #fff4e7;
    font-size: 1.6rem;
}

.gesnote-export-empty-state strong {
    margin-bottom: 0.35rem;
    color: var(--export-navy);
    font-size: 1rem;
}

.gesnote-export-empty-state p {
    margin: 0;
    font-size: 0.88rem;
}

.gesnote-export-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.5rem;
    border-top: 1px solid #e8edf4;
    background: #f9fbfd;
}

.gesnote-export-security-note {
    max-width: 52%;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--export-muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.gesnote-export-security-note i {
    margin-top: 0.08rem;
    color: var(--export-green);
}

.gesnote-export-modal-footer [data-export-submit] {
    min-width: 235px;
    justify-content: center;
}

.gesnote-export-modal-footer [data-export-submit].is-loading .bi {
    animation: gesnote-export-pulse 0.9s ease-in-out infinite alternate;
}

.gesnote-import-requirements,
.gesnote-import-upload-section {
    padding: 1.5rem;
    border: 1px solid var(--export-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.055);
}

.gesnote-import-template-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(25, 135, 84, 0.22);
    border-radius: 12px;
    color: #137047;
    background: #eaf8f1;
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.gesnote-import-template-link:hover,
.gesnote-import-template-link:focus-visible {
    border-color: var(--export-green);
    color: #fff;
    background: var(--export-green);
    outline: none;
}

.gesnote-import-column-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gesnote-import-column-list li {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid #e8edf4;
    border-radius: 14px;
    color: #334155;
    background: #f9fbfd;
    font-size: 0.84rem;
    font-weight: 750;
    line-height: 1.35;
}

.gesnote-import-column-list li > span {
    width: 30px;
    height: 30px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #fff;
    background: var(--export-navy);
    font-size: 0.72rem;
    font-weight: 900;
}

.gesnote-import-rule-note {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(25, 135, 84, 0.18);
    border-radius: 14px;
    color: #16663f;
    background: #effaf4;
    font-size: 0.82rem;
    line-height: 1.55;
}

.gesnote-import-rule-note > i {
    margin-top: 0.12rem;
    color: var(--export-green);
}

.gesnote-import-rule-note.is-warning {
    border-color: rgba(241, 145, 28, 0.24);
    color: #8a5310;
    background: #fff7eb;
}

.gesnote-import-rule-note.is-warning > i {
    color: var(--export-orange);
}

.gesnote-import-dropzone {
    width: 100%;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed #b8c6d9;
    border-radius: 20px;
    color: var(--export-muted);
    background:
        radial-gradient(
            circle at 50% 0,
            rgba(25, 135, 84, 0.08),
            transparent 46%
        ),
        #f9fbfd;
    text-align: center;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.gesnote-import-dropzone:hover:not(:disabled),
.gesnote-import-dropzone:focus-visible:not(:disabled),
.gesnote-import-dropzone.is-dragover {
    transform: translateY(-2px);
    border-color: var(--export-green);
    background:
        radial-gradient(
            circle at 50% 0,
            rgba(25, 135, 84, 0.14),
            transparent 52%
        ),
        #f3fbf7;
    box-shadow: 0 16px 36px rgba(25, 135, 84, 0.1);
    outline: none;
}

.gesnote-import-dropzone.is-disabled,
.gesnote-import-dropzone:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.gesnote-import-dropzone-icon {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(145deg, #137047, #25a66a);
    box-shadow: 0 12px 25px rgba(25, 135, 84, 0.22);
    font-size: 1.8rem;
}

.gesnote-import-dropzone strong {
    margin-bottom: 0.35rem;
    color: var(--export-navy);
    font-size: 1.02rem;
}

.gesnote-import-dropzone > span:not(.gesnote-import-dropzone-icon) {
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
}

.gesnote-import-dropzone small {
    color: #8492a6;
    font-size: 0.76rem;
}

.gesnote-import-file-list {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
}

.gesnote-import-file-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid #e1e8f1;
    border-radius: 14px;
    background: #fff;
}

.gesnote-import-file-item-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #137047;
    background: #eaf8f1;
    font-size: 1.15rem;
}

.gesnote-import-file-item-content {
    min-width: 0;
}

.gesnote-import-file-item-content strong {
    display: block;
    overflow: hidden;
    color: var(--export-navy);
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gesnote-import-file-item-content span {
    color: var(--export-muted);
    font-size: 0.74rem;
}

.gesnote-import-file-remove {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    color: #b42318;
    background: #fff0ee;
    transition:
        color 0.16s ease,
        background 0.16s ease;
}

.gesnote-import-file-remove:hover,
.gesnote-import-file-remove:focus-visible {
    color: #fff;
    background: #dc3545;
    outline: none;
}

.gesnote-import-feedback {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid;
    border-radius: 18px;
}

.gesnote-import-feedback.is-error {
    border-color: #f3c4c0;
    color: #7f1d1d;
    background: #fff5f4;
}

.gesnote-import-feedback.is-success {
    border-color: #b8e4cb;
    color: #165f3d;
    background: #effaf4;
}

.gesnote-import-feedback-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: currentColor;
    background: rgba(255, 255, 255, 0.78);
    font-size: 1.35rem;
}

.gesnote-import-feedback h3 {
    margin: 0 0 0.3rem;
    color: currentColor;
    font-size: 1rem;
    font-weight: 900;
}

.gesnote-import-feedback p {
    margin: 0;
    font-size: 0.83rem;
}

.gesnote-import-error-list {
    max-height: 235px;
    overflow: auto;
    margin: 0.85rem 0 0;
    padding: 0.75rem 0.75rem 0.75rem 2.1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    line-height: 1.55;
}

.gesnote-import-error-list li + li {
    margin-top: 0.35rem;
}

.gesnote-import-result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.9rem;
}

.gesnote-import-result-grid > div {
    padding: 0.75rem;
    border: 1px solid rgba(25, 135, 84, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
}

.gesnote-import-result-grid strong,
.gesnote-import-result-grid span {
    display: block;
}

.gesnote-import-result-grid strong {
    color: var(--export-navy);
    font-size: 1.2rem;
    font-weight: 900;
}

.gesnote-import-result-grid span {
    margin-top: 0.12rem;
    color: var(--export-muted);
    font-size: 0.7rem;
    font-weight: 750;
}

.gesnote-import-feedback-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.7rem;
    font-size: 0.76rem;
    line-height: 1.45;
}

.gesnote-import-username-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.gesnote-import-username-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(25, 135, 84, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
}

.gesnote-import-username-list span {
    min-width: 0;
    overflow: hidden;
    color: var(--export-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gesnote-import-username-list strong {
    color: var(--export-navy);
}

.gesnote-btn-green {
    background: var(--export-green);
}

.gesnote-export-modal-footer [data-import-submit] {
    min-width: 220px;
    justify-content: center;
}

.gesnote-export-modal-footer [data-import-submit].is-loading .bi {
    animation: gesnote-export-pulse 0.9s ease-in-out infinite alternate;
}

@keyframes gesnote-export-pulse {
    from {
        opacity: 0.35;
        transform: translateY(1px);
    }
    to {
        opacity: 1;
        transform: translateY(-1px);
    }
}

@media (max-width: 767.98px) {
    .gesnote-export-action-card {
        min-height: 245px;
        padding: 1.5rem;
        border-radius: 22px;
    }

    .gesnote-export-modal {
        border-radius: 20px;
    }

    .gesnote-export-modal-header {
        padding: 1.15rem;
    }

    .gesnote-export-form-intro,
    .gesnote-export-section-heading {
        gap: 0.75rem;
    }

    .gesnote-export-modal-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .gesnote-export-security-note {
        max-width: 100%;
    }

    .gesnote-export-modal-footer > div:last-child,
    .gesnote-export-modal-footer button {
        width: 100%;
    }

    .gesnote-export-modal-footer [data-export-submit] {
        min-width: 0;
    }

    .gesnote-import-column-list,
    .gesnote-import-result-grid,
    .gesnote-import-username-list {
        grid-template-columns: 1fr;
    }

    .gesnote-import-requirements,
    .gesnote-import-upload-section {
        padding: 1.1rem;
    }

    .gesnote-import-requirements .gesnote-export-section-heading {
        flex-wrap: wrap;
    }

    .gesnote-import-template-link {
        width: 100%;
    }

    .gesnote-import-dropzone {
        min-height: 210px;
        padding: 1.4rem;
    }

    .gesnote-export-modal-footer [data-import-submit] {
        min-width: 0;
    }
}
