.usage-limit-actions {
    display: flex;
    align-items: center;
}

.usage-limit-modal a {
    color: #126e78;
    font-weight: 750;
}

.usage-limit-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 17, 30, 0.76);
    backdrop-filter: blur(5px);
}

.usage-limit-overlay.is-open {
    display: flex;
}

.usage-limit-modal {
    position: relative;
    width: min(100%, 540px);
    padding: 30px;
    border: 1px solid rgba(117, 174, 182, 0.58);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
    color: #13283d;
}

.usage-limit-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #edf3f5;
    color: #36556a;
    cursor: pointer;
    font-size: 1.45rem;
}

.usage-limit-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 13px;
    background: linear-gradient(145deg, #176b76, #2a9290);
    color: #fff;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.usage-limit-kicker {
    color: #1c747a;
    font-size: 0.73rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.usage-limit-modal h2 {
    margin: 5px 40px 14px 0;
    font-size: 1.55rem;
}

.usage-limit-modal p {
    margin: 9px 0;
    color: #4e6475;
    line-height: 1.6;
}

.usage-limit-modal .usage-limit-detail {
    padding: 11px 13px;
    border-left: 3px solid #d88b30;
    border-radius: 7px;
    background: #fff7eb;
    color: #573713;
    font-weight: 780;
}

.usage-shared-network-note {
    font-size: 0.78rem;
}

.usage-unlock-panel {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #cbd9df;
    border-radius: 10px;
    background: #f4f8f9;
}

.usage-unlock-panel[hidden] {
    display: none;
}

.usage-unlock-panel > label {
    display: block;
    margin-bottom: 7px;
    color: #294b60;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.usage-unlock-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.usage-unlock-controls input,
.usage-unlock-controls button {
    min-height: 42px;
    border-radius: 8px;
    font: inherit;
}

.usage-unlock-controls input {
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid #b8cbd3;
    background: #fff;
    color: #13283d;
}

.usage-unlock-controls input:focus {
    border-color: #20888a;
    box-shadow: 0 0 0 3px rgba(32, 136, 138, 0.14);
    outline: none;
}

.usage-unlock-controls button {
    padding: 9px 14px;
    border: 1px solid #16777b;
    background: #16777b;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

.usage-unlock-controls button:disabled {
    cursor: wait;
    opacity: 0.68;
}

.usage-limit-modal .usage-unlock-error {
    margin: 8px 0 0;
    color: #b33232;
    font-size: 0.79rem;
    font-weight: 750;
}

.usage-limit-actions {
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.usage-limit-actions button,
.usage-limit-contact {
    min-height: 40px;
    padding: 9px 15px;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
}

.usage-limit-ok,
.usage-limit-contact {
    border: 1px solid #16777b;
    background: #16777b;
    color: #fff !important;
}

.usage-copy-email {
    border: 1px solid #c7d5dc;
    background: #f7fafb;
    color: #28475d;
}

.usage-print-notice {
    display: none;
}

.privacy-panel {
    width: min(100%, 820px);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 44px);
}

.legal-document {
    font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.82rem;
    letter-spacing: -0.012em;
}

.legal-document h1 {
    margin: 0 0 18px;
    font-family: inherit;
    font-size: clamp(1.35rem, 2.6vw, 1.65rem);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.legal-document h2 {
    margin: 26px 0 8px;
    font-family: inherit;
    font-size: 0.92rem;
    letter-spacing: -0.018em;
    line-height: 1.4;
}

.legal-document p {
    margin: 9px 0;
    color: #4d6475;
    line-height: 1.68;
}

.legal-document ul {
    margin: 8px 0 12px;
    padding-left: 20px;
    color: #4d6475;
    line-height: 1.65;
}

.legal-document li + li {
    margin-top: 4px;
}

.legal-document .legal-updated {
    margin: -9px 0 20px;
    color: #647b8c;
    font-size: 0.74rem;
    letter-spacing: 0;
}

.legal-document a {
    color: #126e78;
    font-weight: 750;
}

body.theme-dark .legal-document p,
body.theme-dark .legal-document ul,
body.theme-dark .legal-document .legal-updated {
    color: #bfd0da;
}

@media (max-width: 640px) {
    .usage-unlock-controls {
        grid-template-columns: 1fr;
    }

    .usage-limit-modal {
        padding: 26px 20px 22px;
    }
}

@media print {
    .usage-limit-overlay {
        display: none !important;
    }

    body.usage-limits-active:not(.usage-report-mode) .usage-print-notice {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        padding: 18px;
        border: 2px solid #204f6e;
        color: #13283d;
    }

    body.usage-limits-active:not(.usage-report-mode) .results,
    body.usage-limits-active:not(.usage-report-mode) .ec10-results-shell {
        display: none !important;
    }
}
