:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f7f6;
    color: #10251c;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

.field-wallet {
    position: relative;
    display: grid;
    min-width: 0;
    gap: 6px;
}

.wallet-picker {
    position: relative;
    min-width: 0;
}

.wallet-picker-trigger {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border: 1px solid #e1e8e3;
    border-radius: 8px;
    background: #fbfcfb;
    color: #20392b;
    font: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.wallet-picker-trigger > img, .wallet-picker-option img {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 50%;
    object-fit: contain;
}

.wallet-picker-trigger > span:first-of-type {
    min-width: 0;
    flex: 1;
    overflow-wrap: anywhere;
}

.wallet-picker-chevron {
    flex: 0 0 auto;
    color: #75867c;
    font-size: 16px;
}

.wallet-picker-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    padding: 8px;
    border: 1px solid #dfe8e2;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(21, 48, 34, .16);
}

.wallet-picker-menu[hidden] {
    display: none;
}

.wallet-picker-search-label {
    margin-bottom: 5px;
    color: #687970 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
}

#support-draft-form .wallet-picker-search {
    padding: 8px 9px;
}

.wallet-picker-options {
    display: grid;
    max-height: 236px;
    gap: 3px;
    margin-top: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.wallet-picker-option {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 7px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #20392b;
    font: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.wallet-picker-option:hover, .wallet-picker-option[aria-selected="true"] {
    background: #edf7f2;
}

.wallet-picker-option span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.wallet-picker-empty {
    margin: 8px 2px 2px;
    color: #738178;
    font-size: 11px;
}

* {
    box-sizing: border-box;
}

body {
    overflow-x: clip;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(ellipse at 82% 4%, rgba(32, 174, 122, .10), transparent 28rem),
        #f5f7f6;
}

a {
    color: inherit;
}

img, iframe {
    max-width: 100%;
}

button, input, textarea, select {
    max-width: 100%;
    min-width: 0;
}

.wallet-header {
    width: min(1180px, calc(100% - 40px));
    height: 62px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e4e9e6;
}

.wallet-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #14281f;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.wallet-brand-mark {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #173c2c;
    color: #fff;
    font-size: 12px;
}

.wallet-header nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wallet-main > *, #support-draft-form > *, .support-draft, .wallet-card {
    min-width: 0;
}

.wallet-header nav a {
    color: #52635a;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.wallet-header nav .discord-link {
    padding: 10px 14px;
    border: 1px solid #dfe7e2;
    border-radius: 9px;
    background: #fff;
    color: #173c2c;
}

.wallet-main {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0 32px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    align-items: start;
    gap: 16px;
}

.wallet-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #6b7c73;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.4px;
}

.secure-dot, .connected-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1ca875;
}

.wallet-card {
    padding: 18px;
    border: 1px solid #e3e9e5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(21, 48, 34, .06);
}

.wallet-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wallet-card-heading h2 {
    margin: 0;
    font-size: 17px;
    letter-spacing: -.4px;
}

.wallet-card-copy {
    margin: 6px 0 10px;
    color: #738178;
    font-size: 11px;
    line-height: 1.45;
}

.wallet-status {
    margin-bottom: 8px;
    color: #64746b;
    font-size: 10px;
    overflow-wrap: anywhere;
}

.wallet-options {
    display: grid;
    gap: 9px;
}

.wallet-option {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid #e5ebe7;
    border-radius: 11px;
    background: #fff;
    color: #183126;
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.wallet-option:hover {
    transform: translateY(-1px);
    border-color: #8ac8aa;
    background: #f8fcf9;
}

.wallet-option:focus-visible, .wallet-header a:focus-visible, .wallet-picker-trigger:focus-visible, .wallet-picker-option:focus-visible {
    outline: 3px solid rgba(28, 168, 117, .35);
    outline-offset: 3px;
}

.wallet-option:disabled {
    cursor: wait;
    opacity: .65;
}

.wallet-option-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #eaf5ef;
    color: #16845b;
    font-size: 12px;
    font-weight: 900;
}

.wallet-option-name {
    flex: 1;
    font-size: 13px;
    font-weight: 750;
}

.wallet-option-arrow {
    color: #7a8a81;
    font-size: 16px;
}

.wallet-empty {
    padding: 10px;
    border: 1px dashed #dbe5df;
    border-radius: 11px;
    background: #fafcfb;
}

.wallet-empty strong {
    font-size: 11px;
}

.wallet-empty p {
    margin: 4px 0 0;
    color: #738178;
    font-size: 10px;
    line-height: 1.4;
}

.connection-card {
    align-items: flex-start;
    gap: 11px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #cfe7d9;
    border-radius: 11px;
    background: #f3fbf6;
}

.connection-card:not([hidden]) {
    display: flex;
}

.connected-indicator {
    margin-top: 5px;
}

.connection-card > div {
    flex: 1;
    min-width: 0;
}

.connection-card strong {
    font-size: 12px;
}

.connection-card p {
    overflow-wrap: anywhere;
    margin: 4px 0;
    color: #40564a;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
}

.connection-card small {
    color: #75867c;
    font-size: 10px;
}

.connection-card button {
    padding: 5px 0 5px 8px;
    border: 0;
    background: none;
    color: #527060;
    font: inherit;
    font-size: 10px;
    cursor: pointer;
}

.support-draft {
    grid-column: auto;
    align-self: start;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 20px;
    border: 1px solid #e3e9e5;
    border-radius: 16px;
    background: #fff;
}

.support-draft-intro h1 {
    margin: 6px 0;
    color: #14281f;
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.12;
    letter-spacing: -.8px;
}

.support-draft-intro p {
    max-width: 460px;
    margin: 0;
    color: #738178;
    font-size: 11px;
    line-height: 1.5;
}

#support-draft-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 10px;
}

#support-draft-form label, .ticket-preview > label {
    display: grid;
    min-width: 0;
    gap: 6px;
    color: #30493a;
    font-size: 11px;
    font-weight: 800;
}

#support-draft-form label span {
    display: inline;
    color: #8a9890;
    font-size: 10px;
    font-weight: 500;
}

#support-draft-form .consent-label {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

#support-draft-form .consent-label input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-top: 1px;
    accent-color: #16845b;
}

#support-draft-form .consent-label span {
    color: #687970;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
}

.honeypot-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.turnstile-widget {
    grid-column: 1 / -1;
    max-width: 100%;
    min-height: 65px;
}

.field-issue {
    grid-column: 1 / -1;
}

.field-transaction {
    grid-column: 1 / -1;
}

#submit-ticket, #submit-status {
    grid-column: 1 / -1;
}

#support-draft-form input, #support-draft-form select, #support-draft-form textarea, #ticket-draft {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid #e1e8e3;
    border-radius: 8px;
    background: #fbfcfb;
    color: #20392b;
    font: inherit;
    font-size: 12px;
    line-height: 1.5;
}

#support-draft-form input:focus-visible, #support-draft-form select:focus-visible, #support-draft-form textarea:focus-visible, #ticket-draft:focus-visible {
    outline: 3px solid rgba(28, 168, 117, .2);
    border-color: #70b993;
}

#support-draft-form textarea {
    resize: vertical;
}

.draft-button {
    min-height: 40px;
    padding: 0 15px;
    border: 0;
    border-radius: 8px;
    background: #173c2c;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.draft-button:hover {
    background: #20553d;
}

.draft-button:disabled {
    cursor: not-allowed;
    opacity: .58;
}

.ticket-preview {
    grid-column: 1 / -1;
    display: grid;
    gap: 9px;
}

.ticket-preview[hidden] {
    display: none;
}

.ticket-preview:not([hidden]) {
    display: grid;
}

#ticket-draft {
    resize: vertical;
}

.ticket-draft-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ticket-draft-actions a {
    color: #16845b;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

#copy-status {
    min-height: 15px;
    color: #64746b;
    font-size: 10px;
}

#submit-status {
    min-height: 15px;
    margin: 0;
    color: #64746b;
    font-size: 10px;
    line-height: 1.5;
}

#submit-status[data-error="true"] {
    color: #a13838;
}

.draft-warning {
    grid-column: 1 / -1;
    margin: 0;
    color: #8a6542;
    font-size: 10px;
    line-height: 1.5;
}

@media (max-width: 850px) {
    .wallet-main {
        grid-template-columns: 1fr;
        gap: 14px;
        max-width: 560px;
        padding: 14px 0 24px;
    }

    .support-draft {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 520px) {
    .wallet-header, .wallet-main {
        width: calc(100% - 28px);
    }

    .wallet-header {
        height: 58px;
    }

    .wallet-header nav {
        gap: 10px;
    }

    .wallet-header nav a {
        font-size: 11px;
    }

    .wallet-header nav .discord-link {
        padding: 7px 9px;
    }

    .support-draft {
        padding: 15px;
    }

    .wallet-card {
        padding: 15px;
    }

    #support-draft-form {
        grid-template-columns: 1fr;
    }

    #support-draft-form > * {
        grid-column: 1;
    }

    .ticket-draft-actions {
        align-items: stretch;
        flex-direction: column;
    }
}
