:root {
    --ok-bg: #f5f7fb;
    --ok-card: #ffffff;
    --ok-text: #1f2937;
    --ok-text-2: #6b7280;
    --ok-border: #e5e7eb;
    --ok-radius: 10px;
    --ok-shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04);
}

html { scrollbar-gutter: stable; }

/* ===== 本地字体：Inter（拉丁/数字），中文系统回退 ===== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('./fonts/InterVariable.woff2') format('woff2-variations');
}
@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('./fonts/InterVariable-Italic.woff2') format('woff2-variations');
}

body[data-dark="dark"], body[data-dark="auto"].is-dark {
    --ok-bg: #0f172a;
    --ok-card: #1e293b;
    --ok-text: #e5e7eb;
    --ok-text-2: #94a3b8;
    --ok-border: #334155;
    --ok-shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 20px rgba(0,0,0,.3);
}
body[data-dark="dark"] .ok-msg-error,
body[data-dark="auto"].is-dark .ok-msg-error { background: #3a1414; color: #fca5a5; }
body[data-dark="dark"] .ok-msg-info,
body[data-dark="auto"].is-dark .ok-msg-info { background: #14233a; color: #93c5fd; }
body[data-dark="dark"] .ok-msg-success,
body[data-dark="auto"].is-dark .ok-msg-success { background: #0f2a1c; color: #86efac; }
body[data-dark="dark"] .ok-tag-success,
body[data-dark="auto"].is-dark .ok-tag-success { background: #0f2a1c; color: #86efac; }
body[data-dark="dark"] .ok-tag-warn,
body[data-dark="auto"].is-dark .ok-tag-warn { background: #2a1f0a; color: #fcd34d; }
body[data-dark="dark"] .ok-tag-danger,
body[data-dark="auto"].is-dark .ok-tag-danger { background: #2a1212; color: #fca5a5; }

* { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0;
    background: var(--ok-bg);
    color: var(--ok-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    font-size: 14px; line-height: 1.5;
    font-feature-settings: 'cv11', 'ss01', 'ss03';   /* Inter 风格化字形：更顺眼的 a/g */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: var(--ok-accent); text-decoration: none; }
a:hover { color: var(--ok-accent-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--ok-accent); outline-offset: 2px; }

.ok-loading { display: flex; min-height: clamp(220px, 48vh, 520px); align-items: center; justify-content: center; }
.ok-loading-inline { display: flex; min-height: 32px; align-items: center; justify-content: center; }
.ok-loading-inline[hidden] { display: none; }
.ok-dl-shared-id-btn.is-loading { position: relative; color: transparent; }
.ok-button-loading { position: absolute; inset: 0; min-height: 0; pointer-events: none; }
.ok-sub-reset-actions { display: flex; align-items: center; gap: 12px; min-height: 38px; }
.ok-downloads-subscription-refresh-error:not([hidden]) { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ok-spinner {
    width: 32px; height: 32px; border-radius: 50%;
    border: 3px solid var(--ok-border); border-top-color: var(--ok-accent);
    animation: ok-spin .8s linear infinite;
}
@keyframes ok-spin { to { transform: rotate(360deg); } }

/* layout */
.ok-app { min-height: 100vh; display: flex; flex-direction: column; }
.ok-footer {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px;
    flex-shrink: 0; padding: 12px 76px 20px; color: var(--ok-text-2); font-size: 12px; text-align: center;
}
.ok-footer > * { min-width: 0; overflow-wrap: anywhere; }
.ok-footer-licenses { display: inline-flex; align-items: center; gap: 12px; padding: 4px 0; }
.ok-footer-link { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.ok-footer-link:hover { color: var(--ok-accent); }
.ok-license-intro { margin: 0 0 12px; color: var(--ok-text-2); font-size: 13px; }
.ok-license-list { list-style: none; margin: 0; padding: 0; }
.ok-license-list li { padding: 10px 0; border-bottom: 1px solid var(--ok-border); overflow-wrap: anywhere; }
.ok-license-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.ok-license-links { margin-top: 4px; font-size: 13px; }
.ok-license-links button {
    padding: 0; border: 0; background: transparent; color: var(--ok-text-2); text-align: left;
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.ok-license-links button:hover { color: var(--ok-text); }
.ok-license-detail-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.ok-license-back { padding: 6px 10px; min-height: 32px; flex-shrink: 0; }
.ok-license-detail-title { margin: 0; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.ok-license-status { margin: 0 0 12px; color: var(--ok-text-2); }
.ok-license-text { margin: 0; color: var(--ok-text); font-size: 12px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.ok-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px; background: var(--ok-card);
    border-bottom: 1px solid var(--ok-border); position: sticky; top: 0; z-index: 10;
}
.ok-header > div:first-child { min-width: 0; }
.ok-header-brand { display: flex; align-items: center; gap: 8px; }
.ok-header .ok-brand { font-weight: 600; font-size: 16px; }
.ok-header .ok-brand img { height: 24px; vertical-align: middle; margin-right: 8px; }
.ok-header .ok-brand {
    min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ok-header .ok-user {
    color: var(--ok-text-2); font-size: 13px; display: grid; align-items: center;
    grid-template-columns: 40px 40px 64px; column-gap: 4px; flex-shrink: 0;
}
.ok-header .ok-user .ok-top-action {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 28px; padding: 0 6px; box-sizing: border-box;
    white-space: nowrap; text-align: center; border-radius: 999px;
    border: 1px solid var(--ok-border); background: var(--ok-bg);
    color: var(--ok-text-2); font-weight: 600;
    transition: border-color .15s, color .15s, background .15s;
}
.ok-header .ok-user .ok-top-action-lang { width: 40px; }
.ok-header .ok-user .ok-top-action-theme { width: 40px; font-size: 15px; }
.ok-header .ok-user .ok-top-action-logout { width: 64px; }
.ok-header .ok-user .ok-logout,
.ok-header .ok-user .ok-link { cursor: pointer; }
.ok-header .ok-user .ok-link:hover {
    color: var(--ok-text); border-color: var(--ok-text-2);
}

.ok-auth-topbar {
    position: absolute; top: 14px; right: 18px; display: grid; align-items: center;
    grid-template-columns: 40px 40px; column-gap: 4px;
    color: var(--ok-text-2); font-size: 13px;
}
.ok-auth-topbar .ok-top-action {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 28px; padding: 0 6px; box-sizing: border-box;
    white-space: nowrap; text-align: center; border-radius: 999px;
    border: 1px solid var(--ok-border); background: var(--ok-bg);
    color: var(--ok-text-2); font-weight: 600;
    transition: border-color .15s, color .15s, background .15s;
}
.ok-auth-topbar .ok-top-action-lang { width: 40px; }
.ok-auth-topbar .ok-top-action-theme { width: 40px; font-size: 15px; }
.ok-auth-topbar .ok-link:hover {
    color: var(--ok-text); border-color: var(--ok-text-2);
}

.ok-main { flex: 1; display: flex; max-width: 1200px; width: 100%; margin: 0 auto; }
.ok-side {
    width: 200px; padding: 20px 0; flex-shrink: 0;
}
.ok-side ul { list-style: none; margin: 0; padding: 0; }
.ok-side li {
    cursor: pointer; border-radius: var(--ok-radius);
    margin: 2px 8px; color: var(--ok-text-2); font-weight: 500;
    transition: background .16s ease, color .16s ease;
}
.ok-side li a { display: block; padding: 10px 20px; color: inherit; border-radius: inherit; }
.ok-side li:hover { background: var(--ok-bg); color: var(--ok-text); }
.ok-side li.active { background: var(--ok-accent); color: #fff; }
.ok-side li.active:hover { background: var(--ok-accent-dark); color: #fff; }

.ok-content { flex: 1; padding: 20px; min-width: 0; }
.ok-page-view {
    animation: ok-content-pop .24s cubic-bezier(.22, 1, .36, 1);
    transform-origin: top center;
}
.ok-page-title { font-size: 20px; font-weight: 600; margin: 0 0 16px; }

@keyframes ok-content-pop {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ok-side li { transition: none; }
    .ok-page-view, .ok-auth-box { animation: none; }
}

.ok-card {
    background: var(--ok-card); border: 1px solid var(--ok-border);
    border-radius: var(--ok-radius); padding: 20px; margin-bottom: 16px;
    box-shadow: var(--ok-shadow);
}
.ok-card-clickable { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.ok-card-clickable:hover { border-color: var(--ok-accent); box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.ok-card-clickable:focus-visible { outline: 2px solid var(--ok-accent); outline-offset: 2px; }
.ok-card h3 { margin: 0 0 12px; font-size: 16px; }
.ok-subscription-reminder p { margin: 0 0 14px; color: var(--ok-text-2); line-height: 1.7; overflow-wrap: anywhere; }
.ok-subscription-reminder-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ok-dashboard-welcome {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px;
    padding: 12px 16px; color: var(--ok-text-2); font-size: 13px;
}
.ok-dashboard-welcome:hover { color: var(--ok-text-2); }
.ok-dashboard-account { flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.ok-dashboard-balance { flex-shrink: 0; white-space: nowrap; }
.ok-grid { display: grid; gap: 16px; }
.ok-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ok-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* form */
.ok-auth {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 20px; background: var(--ok-bg);
}
.ok-auth-app .ok-auth { min-height: 0; flex: 1; padding-top: 64px; padding-bottom: 32px; }
.ok-auth-box {
    width: 100%; max-width: 400px; background: var(--ok-card);
    border: 1px solid var(--ok-border); border-radius: var(--ok-radius);
    padding: 28px; box-shadow: var(--ok-shadow);
    display: flex; flex-direction: column;
    animation: ok-content-pop .24s cubic-bezier(.22, 1, .36, 1);
    transform-origin: top center;
}
.ok-auth-box h2 { margin: 0 0 20px; font-size: 20px; text-align: center; }
.ok-auth-tabs { display: flex; margin-bottom: 16px; gap: 10px; justify-content: center; align-items: center; font-size: 13px; }
.ok-auth-tabs a { color: var(--ok-text-2); cursor: pointer; }
.ok-auth-tabs a.active { color: var(--ok-accent); font-weight: 600; }
.ok-auth-sep { color: var(--ok-text-2); cursor: default !important; opacity: .7; user-select: none; }

.ok-field { margin-bottom: 12px; }
.ok-field label { display: block; margin-bottom: 4px; font-size: 13px; color: var(--ok-text-2); }
.ok-input, .ok-select, .ok-textarea {
    width: 100%; padding: 10px 12px; border-radius: 8px;
    border: 1px solid var(--ok-border); background: var(--ok-card);
    color: var(--ok-text); outline: none; transition: border-color .15s;
}
.ok-input:focus, .ok-select:focus, .ok-textarea:focus { border-color: var(--ok-accent); }
.ok-input-disabled, .ok-input:disabled { cursor: not-allowed; opacity: .72; }
.ok-number-input { position: relative; width: 100%; min-width: 0; }
.ok-number-input .ok-input { display: block; padding-right: 44px; }
.ok-number-input .ok-input,
.ok-input[type="number"]:disabled { -moz-appearance: textfield; appearance: textfield; }
.ok-number-input .ok-input::-webkit-inner-spin-button,
.ok-number-input .ok-input::-webkit-outer-spin-button,
.ok-input[type="number"]:disabled::-webkit-inner-spin-button,
.ok-input[type="number"]:disabled::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ok-number-input:focus-within .ok-input { border-color: var(--ok-accent); }
.ok-number-steps {
    position: absolute; top: 1px; right: 1px; bottom: 1px; width: 32px;
    display: flex; flex-direction: column; overflow: hidden;
    border-left: 1px solid var(--ok-border); border-radius: 0 7px 7px 0;
}
.ok-number-step {
    display: flex; flex: 1; align-items: center; justify-content: center; min-height: 0;
    padding: 0; border: 0; background: transparent; color: var(--ok-text-2); cursor: pointer;
}
.ok-number-step + .ok-number-step { border-top: 1px solid var(--ok-border); }
.ok-number-step:hover:not(:disabled) { background: var(--ok-bg); color: var(--ok-accent); }
.ok-number-step:focus-visible { outline-offset: -2px; }
.ok-number-step:disabled { opacity: .5; cursor: not-allowed; }
.ok-number-step span {
    width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
}
.ok-number-step-up span { transform: translateY(1.5px) rotate(-45deg); }
.ok-number-step-down span { transform: translateY(-1.5px) rotate(135deg); }
.ok-input-group { --ok-auth-side-width: 132px; display: flex; gap: 8px; }
.ok-input-group .ok-input { flex: 1; }
.ok-plans-giftcard .ok-input { min-width: 0; }
.ok-plans-giftcard .ok-input-group > .ok-btn { flex-shrink: 0; }
.ok-traffic-reset-controls, .ok-traffic-reset-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ok-traffic-reset-controls .ok-select { flex: 1 1 240px; min-width: 0; }
.ok-reset-card-select-wrap { position: relative; flex: 1 1 240px; min-width: 0; }
.ok-reset-card-select-wrap .ok-select { width: 100%; }
.ok-reset-card-select-wrap.is-loading .ok-select { color: transparent; }
.ok-reset-card-select-loading { position: absolute; inset: 0; pointer-events: none; }
@media (width > 768px) and (aspect-ratio > 10/13) and (forced-colors: none) {
    .ok-reset-card-select-wrap .ok-select {
        appearance: none; height: 43px; padding-right: 40px;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .ok-reset-card-select-wrap::after {
        --ok-reset-card-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 5.5 8 10.5 13 5.5' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        content: ''; position: absolute; top: 50%; right: 12px; width: 16px; height: 16px;
        background: var(--ok-text-2);
        -webkit-mask: var(--ok-reset-card-arrow) center / contain no-repeat;
        mask: var(--ok-reset-card-arrow) center / contain no-repeat;
        transform: translateY(-50%) rotate(0deg); transform-origin: center; pointer-events: none;
    }
    .ok-reset-card-select-wrap:has(.ok-select:disabled)::after { opacity: .5; }
    .ok-reset-card-select-wrap.is-loading::after { visibility: hidden; }
    .ok-reset-card-select-wrap:has(.ok-select:open)::after { transform: translateY(-50%) rotate(180deg); }
    @media (prefers-reduced-motion: no-preference) {
        .ok-reset-card-select-wrap::after { transition: transform .18s ease; }
    }
    @supports (appearance: base-select) and selector(select::picker(select)) {
        .ok-reset-card-select-wrap .ok-select,
        .ok-reset-card-select-wrap .ok-select::picker(select) { appearance: base-select; }
        .ok-reset-card-select-wrap .ok-select > button {
            display: flex; align-items: center; width: 100%; min-width: 0;
            padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left;
        }
        .ok-reset-card-select-wrap .ok-select selectedcontent {
            display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
        }
        .ok-reset-card-select-wrap .ok-select::picker-icon { display: none; }
        .ok-reset-card-select-wrap .ok-select::picker(select) {
            margin-block-start: 6px; padding: 4px; max-height: min(280px, 45vh);
            width: anchor-size(self-inline); max-width: calc(100vw - 32px); overflow-y: auto;
            border: 1px solid var(--ok-border); border-radius: 10px;
            color: var(--ok-text); background: var(--ok-card); box-shadow: var(--ok-shadow);
        }
        .ok-reset-card-select-wrap .ok-select option {
            padding: 10px 12px; border-radius: 6px; cursor: pointer;
            white-space: normal; overflow-wrap: anywhere;
        }
        .ok-reset-card-select-wrap .ok-select option:hover,
        .ok-reset-card-select-wrap .ok-select option:focus-visible,
        .ok-reset-card-select-wrap .ok-select option:checked { background: var(--ok-bg); }
        .ok-reset-card-select-wrap .ok-select option::checkmark { color: var(--ok-accent); }
        @media (prefers-reduced-motion: no-preference) {
            .ok-reset-card-select-wrap .ok-select::picker(select) {
                opacity: 0; transform: translateY(-6px);
                transition: opacity .18s ease, transform .18s ease, display .18s allow-discrete, overlay .18s allow-discrete;
            }
            .ok-reset-card-select-wrap .ok-select:open::picker(select) { opacity: 1; transform: translateY(0); }
            @starting-style {
                .ok-reset-card-select-wrap .ok-select:open::picker(select) { opacity: 0; transform: translateY(-6px); }
            }
        }
    }
}
.ok-traffic-reset-controls .ok-btn { flex: 0 0 auto; }
.ok-auth-side-control { flex: 0 0 var(--ok-auth-side-width, 116px); width: var(--ok-auth-side-width, 116px); padding-left: 10px; padding-right: 10px; }
.ok-email-combo { --ok-auth-side-width: 132px; display: flex; gap: 8px; }
.ok-email-combo .ok-input { flex: 1 1 auto; min-width: 0; }
.ok-email-combo .ok-email-suffix-select { flex: 0 0 var(--ok-auth-side-width); width: var(--ok-auth-side-width); min-width: 0; padding-left: 8px; padding-right: 8px; }
.ok-auth-strength {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ok-auth-strength-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: var(--ok-text-2);
}
.ok-auth-strength-value { font-weight: 600; }
.ok-auth-strength-value.is-empty { color: var(--ok-text-2); }
.ok-auth-strength-value.is-weak { color: #dc2626; }
.ok-auth-strength-value.is-medium { color: #d97706; }
.ok-auth-strength-value.is-strong { color: #16a34a; }
.ok-auth-strength-bar {
    height: 6px;
    background: var(--ok-border);
    border-radius: 999px;
    overflow: hidden;
}
.ok-auth-strength-bar > div {
    height: 100%;
    width: 0;
    background: transparent;
    transition: width .2s ease, background .2s ease;
}
.ok-auth-strength-bar > div.is-weak { background: #dc2626; }
.ok-auth-strength-bar > div.is-medium { background: #d97706; }
.ok-auth-strength-bar > div.is-strong { background: #16a34a; }
.ok-auth-strength-tip {
    font-size: 12px;
    line-height: 1.4;
    color: var(--ok-text-2);
}
.ok-field-error {
    font-size: 12px;
    line-height: 1.4;
    color: #dc2626;
}

.ok-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 16px; background: var(--ok-accent); color: #fff;
    border: none; border-radius: 8px; cursor: pointer; font-weight: 500;
    transition: background .15s; min-height: 38px;
}
.ok-btn:hover { background: var(--ok-accent-dark); }
.ok-btn:disabled { opacity: .6; cursor: not-allowed; }
.ok-btn-block { width: 100%; }
.ok-auth-box .ok-btn-block { margin-top: auto; }
.ok-btn-ghost {
    background: transparent; color: var(--ok-text);
    border: 1px solid var(--ok-border);
}
.ok-btn-ghost:hover { background: var(--ok-bg); color: var(--ok-text); }
.ok-btn-success { background: #16a34a; }
.ok-btn-success:hover { background: #15803d; }
.ok-btn-danger { background: #dc2626; }
.ok-btn-danger:hover { background: #b91c1c; }
.ok-btn-static { cursor: default; pointer-events: none; }

.ok-setting-list { display: flex; flex-direction: column; gap: 0; }
.ok-setting-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 14px 0;
}
.ok-setting-row + .ok-setting-row { border-top: 1px solid var(--ok-border); }
.ok-setting-copy { min-width: 0; flex: 1; }
.ok-setting-title { font-weight: 600; margin-bottom: 2px; }
.ok-setting-desc { color: var(--ok-text-2); font-size: 13px; }
.ok-switch {
    position: relative; display: inline-flex; align-items: center;
    width: 46px; height: 28px; flex: 0 0 auto; cursor: pointer;
}
.ok-switch-input {
    position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer;
}
.ok-switch-slider {
    position: relative; width: 46px; height: 28px; border-radius: 999px;
    background: var(--ok-border); transition: background .18s ease;
}
.ok-switch-slider::before {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 22px; height: 22px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.15); transition: transform .18s ease;
}
.ok-switch-input:checked + .ok-switch-slider { background: var(--ok-accent); }
.ok-switch-input:checked + .ok-switch-slider::before { transform: translateX(18px); }
.ok-switch-input:disabled + .ok-switch-slider { opacity: .6; }
.ok-switch-input:focus-visible + .ok-switch-slider {
    outline: 2px solid var(--ok-accent); outline-offset: 2px;
}

.ok-msg { padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 13px; }
.ok-msg-error { background: #fee2e2; color: #b91c1c; }
.ok-msg-info { background: #dbeafe; color: #1e40af; }
.ok-msg-success { background: #dcfce7; color: #166534; }

/* table */
.ok-table { width: 100%; border-collapse: collapse; }
.ok-table th, .ok-table td {
    padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--ok-border);
    font-size: 13px;
}
.ok-table th { color: var(--ok-text-2); font-weight: 500; background: var(--ok-bg); }
.ok-table tr:last-child td { border-bottom: none; }

/* progress */
.ok-progress { height: 6px; background: var(--ok-border); border-radius: 4px; overflow: hidden; }
.ok-progress > div { height: 100%; background: var(--ok-accent); }

/* toast */
.ok-toast {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,.85); color: #fff; padding: 10px 16px;
    border-radius: 6px; z-index: 999; font-size: 13px;
    animation: ok-toast-in .25s ease;
}
@keyframes ok-toast-in { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; } }

/* tag */
.ok-tag {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    background: var(--ok-bg); color: var(--ok-text-2); font-size: 12px;
}
.ok-tag-success { background: #dcfce7; color: #15803d; }
.ok-tag-warn { background: #fef3c7; color: #92400e; }
.ok-tag-danger { background: #fee2e2; color: #b91c1c; }

/* plan */
.ok-plan-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 224px), 1fr)); }
.ok-plan {
    background: var(--ok-card); border: 1px solid var(--ok-border);
    border-radius: var(--ok-radius); padding: 20px; box-shadow: var(--ok-shadow);
    display: flex; flex-direction: column;
}
.ok-plan h3 { margin: 0 0 8px; }
.ok-plan .ok-plan-desc { color: var(--ok-text-2); font-size: 13px; margin-bottom: 0; white-space: pre-wrap; }
.ok-plan .ok-plan-prices { margin: 4px 0 0; flex: 1; display: flex; flex-direction: column; }
.ok-plan .ok-plan-price-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0;
    border-bottom: 1px dashed var(--ok-border);
}
.ok-plan .ok-plan-price-row:last-child { border-bottom: none; }
.ok-plan .ok-plan-price-meta { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ok-plan .ok-plan-price-label { color: var(--ok-text-2); font-size: 12px; line-height: 1.3; }
.ok-plan .ok-plan-price-value { font-size: 18px; font-weight: 700; line-height: 1.2; }
.ok-plan .ok-plan-buy-btn, .ok-plans-giftcard .ok-input-group > .ok-btn {
    min-width: 96px;
    min-height: 46px;
    padding: 10px 18px;
    flex: 0 0 auto;
}

/* subscription overview */
.ok-sub-expiry, .ok-sub-reset-date {
    flex: 0 0 auto; border: 0; cursor: pointer;
    line-height: inherit; font-weight: inherit; vertical-align: middle;
    transition: background .15s, color .15s;
}
.ok-sub-expiry { display: inline-grid; }
.ok-sub-expiry > span { grid-area: 1 / 1; }
.ok-sub-expiry-action, .ok-sub-reset-date-action { visibility: hidden; text-align: center; }
.ok-sub-reset-date { display: block; }
.ok-sub-expiry:hover, .ok-sub-expiry:focus-visible,
.ok-sub-reset-date:hover, .ok-sub-reset-date:focus-visible { background: var(--ok-accent); color: #fff; }
.ok-sub-expiry:hover .ok-sub-expiry-date, .ok-sub-expiry:focus-visible .ok-sub-expiry-date { visibility: hidden; }
.ok-sub-expiry:hover .ok-sub-expiry-action, .ok-sub-expiry:focus-visible .ok-sub-expiry-action { visibility: visible; }
.ok-sub-reset-date:hover .ok-sub-reset-date-value, .ok-sub-reset-date:focus-visible .ok-sub-reset-date-value { visibility: hidden; }
.ok-sub-reset-date:hover .ok-sub-reset-date-action, .ok-sub-reset-date:focus-visible .ok-sub-reset-date-action { visibility: visible; }
.ok-sub-expiry:disabled, .ok-sub-reset-date:disabled { opacity: .6; cursor: wait; }
.ok-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 12px; }
.ok-stat-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ok-account-profile-stats { grid-auto-rows: 1fr; }
.ok-stat-row-current { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ok-stat-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ok-stat-row-2 .ok-stat, .ok-stat-row-current .ok-stat, .ok-stat-row-4 .ok-stat { min-width: 0; }
.ok-stat { padding: 12px; background: var(--ok-bg); border-radius: 8px; text-align: center; }
.ok-stat .ok-stat-label { display: block; color: var(--ok-text-2); font-size: 12px; }
.ok-stat .ok-stat-val { display: block; font-size: 18px; font-weight: 600; margin-top: 4px; overflow-wrap: anywhere; }
.ok-stat .ok-stat-swap { display: grid; }
.ok-stat-swap > span { grid-area: 1 / 1; min-width: 0; }
.ok-sub-traffic-stat { transition: background .15s, color .15s; }
.ok-sub-traffic-total { visibility: hidden; }
.ok-sub-traffic-stat:hover, .ok-sub-traffic-stat:focus-visible { background: var(--ok-accent); color: #fff; }
.ok-sub-traffic-stat:hover .ok-sub-traffic-remaining, .ok-sub-traffic-stat:focus-visible .ok-sub-traffic-remaining { visibility: hidden; }
.ok-sub-traffic-stat:hover .ok-sub-traffic-total, .ok-sub-traffic-stat:focus-visible .ok-sub-traffic-total { visibility: visible; }
.ok-sub-traffic-stat:hover .ok-stat-label, .ok-sub-traffic-stat:focus-visible .ok-stat-label,
.ok-sub-reset-date:hover .ok-stat-label, .ok-sub-reset-date:focus-visible .ok-stat-label { color: inherit; }
.ok-sub-traffic-stat:focus-visible { outline: 2px solid var(--ok-accent); outline-offset: 2px; }

/* traffic usage trend */
.ok-traffic-trend-card { container-type: inline-size; --ok-chart-line: var(--ok-accent); --ok-chart-average: #b7791f; }
body[data-dark="dark"] .ok-traffic-trend-card,
body[data-dark="auto"].is-dark .ok-traffic-trend-card {
    --ok-chart-line: color-mix(in srgb, var(--ok-accent) 65%, #fff);
    --ok-chart-average: #fbbf24;
}
.ok-traffic-trend-card > h3 { margin-bottom: 8px; }
.ok-traffic-trend-host { --ok-traffic-trend-height: 250px; min-width: 0; min-height: var(--ok-traffic-trend-height); }
.ok-traffic-trend-loading, .ok-traffic-trend-error {
    min-height: var(--ok-traffic-trend-height); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px;
}
@container (min-width: 500px) {
    .ok-traffic-trend-host { --ok-traffic-trend-height: 280px; }
}
.ok-traffic-trend-error p { color: var(--ok-text-2); margin: 0; text-align: center; }
.ok-traffic-trend-chart { display: block; width: 100%; height: var(--ok-traffic-trend-height); overflow: visible; }
.ok-traffic-trend-grid { stroke: var(--ok-border); stroke-width: 1; }
.ok-traffic-trend-axis { fill: var(--ok-text-2); font-size: 10px; }
.ok-traffic-trend-legend { fill: var(--ok-chart-line); font-size: 11px; }
.ok-traffic-trend-line { fill: none; stroke: var(--ok-chart-line); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ok-traffic-trend-area { fill: var(--ok-chart-line); opacity: .08; }
.ok-traffic-trend-point { fill: var(--ok-card); stroke: var(--ok-chart-line); stroke-width: 2.5; }
.ok-traffic-trend-value {
    fill: var(--ok-text); font-size: 11px; font-weight: 600;
    paint-order: stroke; stroke: var(--ok-card); stroke-width: 4px; stroke-linejoin: round;
}
.ok-traffic-trend-average { stroke: var(--ok-chart-average); stroke-width: 1.5; stroke-dasharray: 6 5; }
.ok-traffic-trend-average-label { fill: var(--ok-chart-average); font-size: 11px; font-weight: 500; }
.ok-traffic-trend-chart.is-animated .ok-traffic-trend-reveal {
    transform-box: fill-box; transform-origin: left center; animation: ok-traffic-trend-draw 1.4s ease-out both;
}
.ok-traffic-trend-chart.is-animated .ok-traffic-trend-average-group { animation: ok-traffic-trend-average .4s ease 1.4s both; }
@keyframes ok-traffic-trend-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ok-traffic-trend-average { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .ok-traffic-trend-chart.is-animated .ok-traffic-trend-reveal,
    .ok-traffic-trend-chart.is-animated .ok-traffic-trend-average-group { animation: none; }
}

/* dashboard quick actions: four columns on desktop, two on mobile */
.ok-quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ok-quick-grid .ok-btn { width: 100%; min-width: 0; white-space: normal; }

/* orders table cells */
.ok-orders-table-wrap { overflow-x: auto; }
.ok-orders-table { width: 100%; }
.ok-orders-plan { word-break: break-word; overflow-wrap: anywhere; }
.ok-orders-row { cursor: pointer; }
.ok-orders-row:hover td,
.ok-orders-row:focus-visible td { background: var(--ok-soft); }
.ok-orders-row:focus-visible { outline: none; }
.ok-orders-ops { vertical-align: top; }
.ok-orders-ops-stack { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.ok-orders-op-btn { padding: 4px 10px; min-height: auto; }
.ok-orders-ops-stack .ok-orders-op-btn + .ok-orders-op-btn { margin-left: 0; }
.ok-orders-detail { margin-top: 8px; }
.ok-orders-detail-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid var(--ok-border);
}
.ok-orders-detail-row:first-child { padding-top: 0; }
.ok-orders-detail-row:last-of-type { padding-bottom: 0; border-bottom: none; }
.ok-orders-detail-label {
    color: var(--ok-text-2);
    font-size: 12px;
    line-height: 1.5;
    padding-top: 2px;
}
.ok-orders-detail-value {
    min-width: 0;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
}
.ok-orders-detail-value .ok-tag { vertical-align: top; }
.ok-orders-detail-no { word-break: break-all; overflow-wrap: anywhere; }
.ok-orders-detail-note {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--ok-border);
    background: var(--ok-bg);
}
.ok-orders-detail-note-label {
    color: var(--ok-text-2);
    font-size: 12px;
    line-height: 1.5;
}
.ok-orders-detail-note-text {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.65;
    white-space: pre-wrap;
}

.ok-inline-card-note { color: var(--ok-text-2); font-size: 13px; margin-bottom: 12px; }
.ok-inline-card-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.ok-inline-card-row .ok-stat { min-width: 140px; }
.ok-inline-card-row .ok-field { flex: 1 1 220px; min-width: 0; margin-bottom: 0; }
.ok-invite-mode-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ok-invite-mode-btn { width: 100%; min-width: 0; white-space: normal; line-height: 1.35; }
.ok-invite-mode-label { min-width: 0; }
.ok-invite-mode-context { display: block; }
.ok-invite-code-actions { margin-top: 8px; }
.ok-invite-saved-mode { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.ok-invite-selection-note { color: var(--ok-text-2); font-size: 12px; margin-bottom: 12px; }
.ok-invite-record-type { color: var(--ok-text-2); font-size: 12px; margin-top: 3px; }
.ok-invite-record-detail .ok-orders-detail-row { grid-template-columns: minmax(0, 112px) minmax(0, 1fr); gap: 12px; }
.ok-invite-formula { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--ok-border); border-radius: 10px; background: var(--ok-bg); }
.ok-invite-formula h4 { margin: 0 0 10px; font-size: 14px; }
.ok-invite-formula-step + .ok-invite-formula-step { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ok-border); }
.ok-invite-formula-label { color: var(--ok-text-2); font-size: 12px; line-height: 1.5; margin-bottom: 4px; }
.ok-invite-formula-expression { font-size: 15px; font-weight: 600; line-height: 1.6; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ok-invite-formula-note { color: var(--ok-text-2); font-size: 12px; line-height: 1.6; margin: 8px 0 0; }
.ok-invite-chain { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ok-border); }
.ok-invite-chain h4 { font-size: 14px; margin: 0 0 8px; }
.ok-invite-chain-note { color: var(--ok-text-2); font-size: 12px; line-height: 1.65; margin: 8px 0; }
.ok-invite-chain-list { list-style: none; margin: 16px 0 8px 5px; padding: 0 0 0 18px; border-left: 2px solid var(--ok-border); }
.ok-invite-chain-node { position: relative; font-size: 13px; line-height: 1.6; padding: 0 0 18px; overflow-wrap: anywhere; }
.ok-invite-chain-node:last-child { padding-bottom: 0; }
.ok-invite-chain-node::before { content: ''; position: absolute; left: -24px; top: 5px; width: 10px; height: 10px; border: 2px solid var(--ok-border); border-radius: 50%; background: var(--ok-card); }
.ok-invite-chain-node.is-self > strong { color: var(--ok-accent); }
.ok-invite-chain-node.is-self::before { border-color: var(--ok-accent); background: var(--ok-accent); }
.ok-invite-chain-level { display: block; font-size: 12px; color: var(--ok-text-2); }
.ok-invite-chain-gap { color: var(--ok-text-2); font-size: 12px; }
.ok-invite-chain-gap::before { width: 6px; height: 6px; left: -22px; top: 7px; }
.ok-inline-card-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.ok-inline-card-actions .ok-btn, .ok-invite-mode-submit {
    height: 43px; padding-top: 0; padding-bottom: 0; box-sizing: border-box;
}

.ok-faq-list { display: flex; flex-direction: column; gap: 10px; }
.ok-faq-item {
    padding: 12px; border: 1px solid var(--ok-border); border-radius: 8px;
    background: var(--ok-bg);
}
.ok-faq-q { font-weight: 600; margin-bottom: 4px; }
.ok-faq-a { color: var(--ok-text-2); white-space: pre-wrap; }

.ok-sub-url {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; background: var(--ok-bg);
    border-radius: 8px; margin-top: 8px; word-break: break-all;
}
.ok-sub-url code { flex: 1 1 280px; min-width: 0; font-size: 12px; color: var(--ok-text); padding: 6px; }
.ok-sub-actions { display: flex; flex-wrap: wrap; gap: 8px; flex: 0 0 auto; }
.ok-sub-enable { min-width: 104px; }
@media (width > 768px) and (aspect-ratio > 10/13) {
    .ok-sub-actions .ok-btn { width: 80px; min-width: 80px; padding-left: 4px; padding-right: 4px; white-space: nowrap; }
}

/* tickets */
.ok-ticket-list { display: flex; flex-direction: column; gap: 8px; }
.ok-ticket-item {
    padding: 12px; border: 1px solid var(--ok-border); border-radius: 8px;
    cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
    width: 100%; background: var(--ok-card); text-align: left;
}
.ok-ticket-item > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.ok-ticket-item strong, .ok-ticket-item small { display: block; }
.ok-ticket-item small { color: var(--ok-text-2); margin-top: 4px; }
.ok-ticket-item:hover { border-color: var(--ok-accent); }
.ok-ticket-msg {
    padding: 10px 12px; margin-bottom: 8px; border-radius: 8px;
    background: var(--ok-bg); max-width: 80%;
}
.ok-ticket-msg.is-me { background: var(--ok-accent); color: #fff; margin-left: auto; }

.ok-content { padding-bottom: 92px; }
.ok-support-icon { display: inline-block; flex: 0 0 20px; width: 20px; height: 20px; background: currentColor; mask: no-repeat center / contain; -webkit-mask: no-repeat center / contain; }
.ok-support-launcher, .ok-mobile-nav-toggle { position: fixed; right: 24px; bottom: max(20px, env(safe-area-inset-bottom)); width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--ok-accent); color: #fff; box-shadow: var(--ok-shadow); display: grid; place-items: center; z-index: 20; cursor: pointer; }
.ok-support-launcher .ok-support-icon { width: 28px; height: 28px; }
@media (prefers-reduced-motion: no-preference) {
    .ok-support-launcher.is-notifying { animation: ok-support-bounce .38s ease-in-out 2; }
}
@keyframes ok-support-bounce { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-6px); } }
.ok-support-badge { position: absolute; right: -3px; top: -4px; min-width: 20px; height: 20px; border-radius: 10px; padding: 0 4px; background: #b42318; color: #fff; font-size: 11px; display: grid; place-items: center; border: 2px solid var(--ok-card); }
.ok-support-panel { position: fixed; inset: auto 24px calc(max(20px, env(safe-area-inset-bottom)) + 72px) auto; margin: 0; width: min(440px, calc(100vw - 32px)); height: min(640px, calc(100vh - max(20px, env(safe-area-inset-bottom)) - 96px)); height: min(640px, calc(100dvh - max(20px, env(safe-area-inset-bottom)) - 96px)); max-width: none; max-height: none; overflow: visible; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ok-text); }
.ok-support-panel[open] { display: flex; flex-direction: column; }
.ok-support-surface { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--ok-border); border-radius: inherit; background: var(--ok-card); box-shadow: 0 12px 48px rgba(0,0,0,.2); }
.ok-support-panel::backdrop { background: rgba(0,0,0,.16); }
@media (prefers-reduced-motion: no-preference) {
    .ok-support-panel[open]::backdrop { animation: ok-support-backdrop-in .36s ease both; }
    .ok-support-panel.is-closing::backdrop { animation: ok-support-backdrop-out .22s ease both; }
}
@keyframes ok-support-backdrop-in { from { background: transparent; } to { background: rgba(0,0,0,.16); } }
@keyframes ok-support-backdrop-out { from { background: rgba(0,0,0,.16); } to { background: transparent; } }
.ok-support-panel [hidden], .ok-support-launcher [hidden] { display: none !important; }
.ok-support-launcher:disabled { opacity: .5; cursor: not-allowed; }
.ok-support-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 14px 12px 12px 16px; border-bottom: 1px solid var(--ok-border); }
.ok-support-heading > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.ok-support-heading h2 { font-size: 17px; margin: 0; letter-spacing: 0; }
.ok-support-heading p { font-size: 12px; margin: 3px 0 0; color: var(--ok-text-2); }
.ok-support-tools { display: flex; gap: 2px; flex-shrink: 0; }
.ok-support-tool { width: 34px; height: 34px; flex: 0 0 34px; padding: 0; border-radius: 4px; border: 0; background: transparent; display: inline-grid; place-items: center; color: var(--ok-text-2); cursor: pointer; }
.ok-support-tool:hover { background: var(--ok-bg); color: var(--ok-text); }
.ok-support-tool[aria-busy="true"] { background: var(--ok-bg); color: var(--ok-accent); cursor: wait; }
@media (prefers-reduced-motion: no-preference) {
    .ok-support-tool[aria-busy="true"] .ok-support-icon { animation: ok-spin .6s linear infinite; }
}
.ok-support-context { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 16px; border-bottom: 1px solid var(--ok-border); font-size: 12px; }
.ok-support-subject { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ok-support-context .ok-tag { flex-shrink: 0; }
.ok-support-unread-link { position: sticky; top: 0; z-index: 1; flex-shrink: 0; min-height: 40px; padding: 9px 16px; border: 0; border-bottom: 1px solid var(--ok-border); background: var(--ok-card); color: var(--ok-accent); font-weight: 500; text-align: left; cursor: pointer; }
.ok-support-unread-link::before { content: '\2190'; margin-right: 8px; }
.ok-support-unread-link:hover:not(:disabled) { background: var(--ok-bg); }
.ok-support-inbox { display: flex; flex: 1; flex-direction: column; gap: 12px; min-height: 0; padding: 16px 12px; }
.ok-support-inbox h3 { margin: 0; font-size: 14px; }
.ok-support-inbox-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.ok-support-inbox-list .ok-ticket-item { flex-shrink: 0; color: var(--ok-text); }
.ok-support-inbox-list .ok-tag { flex-shrink: 0; }
.ok-support-inbox-contact { flex-shrink: 0; }
.ok-support-messages { flex: 1 1 0; min-height: 60px; overflow: auto; overscroll-behavior: contain; padding: 16px; background: var(--ok-card); }
.ok-support-message-meta { font-size: 11px; opacity: .85; margin-bottom: 4px; }
.ok-support-message-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.ok-support-empty { color: var(--ok-text-2); text-align: center; padding: 20px 8px; }
.ok-support-composer { --nudge-accent: #426ee3; position: relative; padding: 12px; border-top: 1px solid var(--ok-border); }
body[data-dark="dark"] .ok-support-composer, body[data-dark="auto"].is-dark .ok-support-composer { --nudge-accent: #9bb7ff; }
.ok-support-composer .ok-textarea { width: 100%; min-height: 72px; max-height: 140px; resize: vertical; }
.ok-support-compose-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; min-height: 36px; }
.ok-support-send-actions { display: flex; align-items: stretch; gap: 8px; min-height: 36px; }
.ok-support-compose-tools { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.ok-support-send-actions .ok-btn { white-space: nowrap; }
@media (max-width: 400px) {
    .ok-support-send-actions .ok-btn { padding: 8px; }
    .ok-support-send-actions { flex-shrink: 0; }
}
.ok-support-nudge-wrap { --nudge-level: 0; position: relative; width: 36px; height: 36px; }
.ok-support-nudge { position: relative; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 9px; color: var(--ok-text-2); background: transparent; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; overflow: clip; overflow-clip-margin: 40px; }
.ok-support-nudge-face { position: absolute; inset: 0; isolation: isolate; display: grid; place-items: center; border: 1px solid var(--ok-border); border-radius: inherit; background: var(--ok-card); transition: border-color .25s, color .25s, background .25s, box-shadow .3s; }
.ok-support-nudge-face::before { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background: radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--nudge-accent) 15%, transparent), transparent 90%); opacity: var(--nudge-level); }
.ok-support-nudge:hover:not(:disabled) .ok-support-nudge-face { background: var(--ok-bg); color: var(--ok-text); }
.is-charged .ok-support-nudge-face, .is-charged .ok-support-nudge:hover:not(:disabled) .ok-support-nudge-face { color: var(--nudge-accent); border-color: color-mix(in srgb, var(--nudge-accent) 44%, var(--ok-border)); box-shadow: 0 0 calc(var(--nudge-level) * 16px) color-mix(in srgb, var(--nudge-accent) 10%, transparent); }
.ok-support-nudge:disabled { cursor: default; opacity: .7; }
.ok-support-nudge:focus-visible { outline: 2px solid var(--ok-accent); outline-offset: 3px; }
.ok-support-nudge .ok-support-icon { width: 19px; height: 19px; flex-basis: 19px; }
.ok-support-nudge-glyph { display: grid; place-items: center; transform-origin: 50% 20%; }
.ok-support-nudge-flare { position: absolute; inset: 1px; border-radius: inherit; background: radial-gradient(ellipse at 45% 75%, color-mix(in srgb, var(--nudge-accent) 15%, transparent), transparent 80%); opacity: 0; pointer-events: none; }
.ok-support-nudge-ring { position: absolute; inset: -1px; border: 1px solid var(--nudge-accent); border-radius: 50%; opacity: 0; pointer-events: none; }
.ok-support-nudge-done { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.7); }
.is-sent .ok-support-nudge-done { opacity: 1; transform: none; transition: opacity .2s .16s, transform .4s cubic-bezier(.2,.8,.2,1) .12s; }
.is-sent .ok-support-nudge-glyph { opacity: 0; transition: opacity .12s; }
.ok-support-nudge-hint { position: absolute; z-index: 3; left: -38px; bottom: 49px; width: 224px; max-width: calc(100vw - 74px); padding: 13px 14px 12px; border: 1px solid var(--ok-border); border-radius: 12px; background: var(--ok-card); color: var(--ok-text); box-shadow: 0 8px 28px #18253b12, 0 1px 3px #18253b12; font-size: 11px; line-height: 1.5; pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(7px) scale(.97); transform-origin: 56px 100%; transition: opacity .18s, transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s .28s; }
body[data-dark="dark"] .ok-support-nudge-hint, body[data-dark="auto"].is-dark .ok-support-nudge-hint { box-shadow: 0 8px 28px #0005, 0 1px 3px #0005; }
.ok-support-nudge-hint.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ok-support-nudge-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; letter-spacing: .02em; }
.ok-support-nudge-status { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ok-support-nudge-status::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--nudge-accent); opacity: .7; flex-shrink: 0; }
.ok-support-nudge-count { color: var(--ok-text-2); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.ok-support-nudge-track { height: 3px; margin-top: 13px; border-radius: 5px; background: var(--ok-bg); overflow: hidden; }
.ok-support-nudge-fill { width: 100%; height: 100%; transform: scaleX(var(--nudge-level)); transform-origin: left; background: linear-gradient(90deg, color-mix(in srgb, var(--nudge-accent) 60%, var(--ok-card)), var(--nudge-accent)); border-radius: inherit; transition: transform .14s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.ok-support-nudge-ticks { display: flex; justify-content: space-between; margin-top: 5px; height: 5px; }
.ok-support-nudge-ticks span { width: 1px; height: 3px; background: var(--ok-border); }
.ok-support-nudge-ticks span:nth-child(5n+1) { height: 5px; }
.ok-support-nudge-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--ok-text-2); }
.ok-support-nudge-foot > span:last-child { flex-shrink: 0; white-space: nowrap; }
.is-draining .ok-support-nudge-fill { opacity: .45; }
.is-draining .ok-support-nudge-status::before { background: var(--ok-text-2); }
.is-sent .ok-support-nudge-count { visibility: hidden; }
.is-sent .ok-support-nudge-foot { opacity: .65; }
.ok-support-nudge-sweep { position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--nudge-accent), transparent); transform: scaleX(0); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
    .is-sent .ok-support-nudge-ring { animation: ok-nudge-pulse .85s cubic-bezier(.16,1,.3,1) both; }
    .is-sent .ok-support-nudge-ring:last-child { animation-delay: .095s; }
    .is-sent .ok-support-nudge-face { animation: ok-nudge-settle .4s cubic-bezier(.22,1,.36,1); }
    .is-nudged .ok-support-nudge-sweep { animation: ok-nudge-sweep .95s cubic-bezier(.2,.8,.2,1) both; }
}
@media (prefers-reduced-motion: reduce) {
    .ok-support-nudge-wrap *, .ok-support-nudge-wrap *::before { transition: none !important; animation: none !important; }
}
@keyframes ok-nudge-pulse { from { transform: scale(.72); opacity: 0; } 16% { transform: scale(1); opacity: .34; } to { transform: scale(2.9); opacity: 0; } }
@keyframes ok-nudge-settle { from { transform: scale(.92); } 55% { transform: scale(1.03); } to { transform: none; } }
@keyframes ok-nudge-sweep { from { transform: scaleX(.05); opacity: 0; } 25% { transform: scaleX(.35); opacity: .6; } to { transform: scaleX(1); opacity: 0; } }
.ok-support-compose-actions .ok-btn, .ok-support-page-actions .ok-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ok-support-feedback:has(.ok-msg:not([hidden])) { padding: 8px 12px; border-top: 1px solid var(--ok-border); max-height: 100px; overflow-y: auto; }
.ok-support-feedback .ok-msg { margin: 0 0 4px; overflow-wrap: anywhere; }
.ok-support-closed { flex-shrink: 0; padding: 12px 16px 0; color: var(--ok-text-2); text-align: center; font-size: 13px; }
.ok-support-closed p { margin: 0; }
.ok-support-closed .ok-support-closed-hint { margin: 4px 0 12px; font-size: 12px; }
.ok-support-continue { margin: 0 12px 12px; }
.ok-support-new-messages { margin: 0 auto 8px; padding: 4px 12px; border: 1px solid var(--ok-border); border-radius: 4px; background: var(--ok-bg); color: var(--ok-text); cursor: pointer; }
.ok-support-page-actions { display: flex; justify-content: flex-start; margin-bottom: 16px; }
.ok-support-faq p { color: var(--ok-text-2); margin: 0; font-size: 13px; line-height: 1.7; }
@media (max-width: 600px) {
    .ok-support-panel {
        inset: auto 12px calc(max(16px, env(safe-area-inset-bottom)) + 72px); width: calc(100% - 24px);
        height: min(640px, calc(100vh - max(16px, env(safe-area-inset-bottom)) - 96px));
        height: min(640px, calc(100dvh - max(16px, env(safe-area-inset-bottom)) - 96px));
    }
    .ok-support-launcher { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
    .ok-support-heading { flex-shrink: 0; padding-left: 12px; }
    .ok-support-messages { min-height: 0; padding: 12px; }
    .ok-support-context { flex-shrink: 0; padding-left: 12px; padding-right: 12px; }
    .ok-support-composer { flex-shrink: 0; }
    .ok-support-composer .ok-textarea { min-height: 64px; max-height: 112px; }
    .ok-support-continue { flex-shrink: 0; }
}

/* modal */
.ok-modal-mask {
    position: fixed; inset: 0; background: rgba(0,0,0,.45);
    z-index: 100; display: flex; align-items: center; justify-content: center;
    padding: 20px; animation: ok-fade .15s ease;
    width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0;
}
.ok-modal-mask::backdrop { background: transparent; }
@keyframes ok-fade { from { opacity: 0; } to { opacity: 1; } }
.ok-modal {
    background: var(--ok-card); color: var(--ok-text);
    border-radius: var(--ok-radius); width: 100%; max-width: 440px;
    box-shadow: 0 12px 40px rgba(0,0,0,.25); display: flex; flex-direction: column;
    max-height: calc(100vh - 40px); animation: ok-pop .18s ease;
}
.ok-modal-lg { max-width: 640px; }
@keyframes ok-pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.ok-modal-head {
    padding: 14px 18px; border-bottom: 1px solid var(--ok-border);
    display: flex; align-items: center; justify-content: space-between;
}
.ok-modal-title { font-weight: 600; font-size: 15px; }
.ok-modal-close {
    cursor: pointer; color: var(--ok-text-2); font-size: 22px; line-height: 1;
    padding: 0 4px; user-select: none; border: 0; background: transparent;
}
.ok-modal-close:hover { color: var(--ok-text); }
.ok-modal-body { padding: 18px; overflow-y: auto; flex: 1; }
.ok-sub-captcha { display: grid; gap: 14px; min-width: 0; }
.ok-sub-captcha-tip { margin: 0; line-height: 1.6; color: var(--ok-text-2); }
.ok-sub-captcha-widget { display: flex; justify-content: center; min-width: 0; }
.ok-sub-captcha-status { text-align: center; color: var(--ok-text-2); font-size: 13px; }
.ok-sub-captcha-status:empty { display: none; }
.ok-modal-foot {
    padding: 12px 18px; border-top: 1px solid var(--ok-border);
    display: flex; gap: 8px; justify-content: flex-end;
}
.ok-modal-notice .ok-modal-head { padding-top: 12px; padding-bottom: 12px; flex-shrink: 0; }
.ok-modal-notice .ok-modal-body { padding: 12px 18px; flex: 0 1 auto; min-height: 0; }
.ok-modal-notice .ok-modal-foot { padding-top: 10px; padding-bottom: 10px; flex-shrink: 0; flex-wrap: wrap; align-items: center; }
.ok-notice-remember { display: flex; align-items: center; gap: 6px; margin-right: auto; cursor: pointer; font-size: 13px; color: var(--ok-text-2); }
.ok-notice-remember input { margin: 0; accent-color: var(--ok-accent); }

/* notice items on dashboard */
.ok-notice-item {
    padding: 10px 0; border-bottom: 1px solid var(--ok-border); cursor: pointer;
}
.ok-notice-item:last-child { border-bottom: none; }
.ok-notice-item:hover { color: var(--ok-accent); }
.ok-notice-snippet {
    color: var(--ok-text-2); font-size: 12px;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
    overflow: hidden;
}
.ok-notice-item-latest .ok-notice-snippet {
    font-size: 13px;
    line-height: 1.6;
    display: block;
    overflow: visible;
}
.ok-notice-snippet img { max-width: 100%; height: auto; }
.ok-notice-body { font-size: 14px; line-height: 1.6; }
.ok-notice-content { overflow-wrap: anywhere; }
.ok-notice-content p { margin: 0 0 8px; }
.ok-notice-content h1, .ok-notice-content h2, .ok-notice-content h3,
.ok-notice-content h4, .ok-notice-content h5, .ok-notice-content h6 { margin: 14px 0 8px; line-height: 1.35; }
.ok-notice-content h1 { font-size: 1.45em; }
.ok-notice-content h2 { font-size: 1.3em; }
.ok-notice-content h3 { font-size: 1.15em; }
.ok-notice-content ul, .ok-notice-content ol { margin: 8px 0; padding-left: 24px; }
.ok-notice-content li { margin: 4px 0; }
.ok-notice-content blockquote { margin: 8px 0; padding-left: 12px; border-left: 3px solid var(--ok-border); color: var(--ok-text-2); }
.ok-notice-content pre { margin: 8px 0; padding: 10px; overflow-x: auto; background: var(--ok-bg); border-radius: 6px; overflow-wrap: normal; }
.ok-notice-content code { font-family: monospace; font-size: .9em; }
.ok-notice-content :not(pre) > code { padding: 2px 4px; background: var(--ok-bg); border-radius: 3px; }
.ok-notice-content table { display: block; max-width: 100%; overflow-x: auto; margin: 8px 0; border-collapse: collapse; }
.ok-notice-content th, .ok-notice-content td { padding: 6px 10px; border: 1px solid var(--ok-border); }
.ok-notice-content a { color: var(--ok-accent); }
.ok-notice-content img { max-width: 100%; height: auto; }
.ok-notice-content > :first-child { margin-top: 0; }
.ok-notice-content > :last-child { margin-bottom: 0; }

/* payment method cards */
.ok-pay-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px;
}
.ok-pay-card {
    border: 1px solid var(--ok-border); border-radius: 10px; padding: 14px 8px;
    text-align: center; cursor: pointer; background: var(--ok-card);
    transition: border-color .15s, transform .15s;
}
.ok-pay-card:hover { border-color: var(--ok-accent); transform: translateY(-1px); }
.ok-pay-card.is-active {
    border-color: var(--ok-accent);
    background: var(--ok-soft);
    box-shadow: inset 0 0 0 1px rgba(41, 120, 255, 0.15);
}
.ok-pay-card.is-active:hover { transform: none; }
.ok-pay-icon {
    width: 46px; height: 46px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px; background: var(--ok-bg);
    border: 1px solid transparent;
    transition: background .15s, border-color .15s, box-shadow .15s;
}
.ok-pay-card.is-active .ok-pay-icon {
    background: rgba(41, 120, 255, 0.12);
    border-color: rgba(41, 120, 255, 0.32);
    box-shadow: 0 0 0 1px rgba(41, 120, 255, 0.12);
}
.ok-pay-card img { height: 32px; max-width: 100%; object-fit: contain; }
.ok-pay-card.is-active img { filter: drop-shadow(0 2px 6px rgba(41, 120, 255, 0.18)); }
.ok-pay-ph {
    width: 32px; height: 32px; line-height: 32px; margin: 0 auto;
    background: rgba(255,255,255,.7); border-radius: 8px; color: var(--ok-text-2); font-weight: 600;
}
.ok-pay-card.is-active .ok-pay-ph { color: var(--ok-accent); }
.ok-pay-name { font-weight: 500; margin-top: 6px; font-size: 13px; }

/* qr code payment */
.ok-qr-pay { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0 4px; }
.ok-qr-pay-code {
    background: #fff; padding: 10px; border-radius: 10px; line-height: 0;
    border: 1px solid var(--ok-border);
}
.ok-qr-pay-code canvas { display: block; image-rendering: pixelated; }
.ok-qr-pay-hint { color: var(--ok-text-2); font-size: 13px; text-align: center; max-width: 260px; }

/* busy overlay */
.ok-busy-mask { z-index: 200; }
.ok-busy-box {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    background: var(--ok-card); border: 1px solid var(--ok-border);
    border-radius: 12px; padding: 24px 32px;
}
.ok-busy-text { color: var(--ok-text-2); font-size: 13px; }

/* one-click app buttons */
.ok-app-grid {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.ok-app-btn {
    display: inline-block; padding: 8px 14px; border: 1px solid var(--ok-border);
    border-radius: 6px; color: var(--ok-text); background: var(--ok-card);
    font-size: 13px; text-decoration: none; transition: border-color .15s, color .15s;
}
.ok-app-btn:hover { border-color: var(--ok-accent); color: var(--ok-accent); }

/* site client platform cards */
.ok-client-catalog { display: flow-root; }
.ok-client-catalog.is-resizing { overflow: hidden; }
.ok-downloads-page.is-client-catalog-resizing { overflow-anchor: none; }
.ok-dl-grid { display: flex; flex-direction: column; gap: 8px; }
.ok-dl-platform-card {
    border: 1px solid var(--ok-border);
    border-radius: 10px; background: var(--ok-card); overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.ok-dl-platform-card.is-recommended {
    border-color: var(--ok-accent); box-shadow: 0 0 0 1px var(--ok-accent);
}
.ok-dl-card-header {
    width: 100%; border: 0; background: transparent; text-align: left;
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; cursor: pointer; user-select: none;
}
.ok-dl-platform-icon {
    width: 28px; height: 28px; flex-shrink: 0;
    background-color: var(--ok-text-2);
    -webkit-mask-size: contain; mask-size: contain;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    transition: background-color .15s;
}
.ok-dl-platform-card.is-recommended .ok-dl-platform-icon { background-color: var(--ok-accent); }
[data-platform="windows"] .ok-dl-platform-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h8v8H3zm10 0h8v8h-8zM3 13h8v8H3zm10 0h8v8h-8z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h8v8H3zm10 0h8v8h-8zM3 13h8v8H3zm10 0h8v8h-8z'/%3E%3C/svg%3E");
}
[data-platform="macos"] .ok-dl-platform-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h18a1 1 0 0 1 1 1v12H2V4a1 1 0 0 1 1-1zM1 17h22v2H1z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h18a1 1 0 0 1 1 1v12H2V4a1 1 0 0 1 1-1zM1 17h22v2H1z'/%3E%3C/svg%3E");
}
[data-platform="ios"] .ok-dl-platform-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm-5 18a1 1 0 1 1 0-2 1 1 0 0 1 0 2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm-5 18a1 1 0 1 1 0-2 1 1 0 0 1 0 2z'/%3E%3C/svg%3E");
}
[data-platform="android"] .ok-dl-platform-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.5 9h9A2.5 2.5 0 0 1 19 11.5v7A2.5 2.5 0 0 1 16.5 21h-9A2.5 2.5 0 0 1 5 18.5v-7A2.5 2.5 0 0 1 7.5 9zM9 17a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm6 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zM8 9V6.5a.5.5 0 0 1 1 0V9H8zm7 0V6.5a.5.5 0 0 1 1 0V9h-1z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.5 9h9A2.5 2.5 0 0 1 19 11.5v7A2.5 2.5 0 0 1 16.5 21h-9A2.5 2.5 0 0 1 5 18.5v-7A2.5 2.5 0 0 1 7.5 9zM9 17a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm6 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zM8 9V6.5a.5.5 0 0 1 1 0V9H8zm7 0V6.5a.5.5 0 0 1 1 0V9h-1z'/%3E%3C/svg%3E");
}
[data-platform="linux"] .ok-dl-platform-icon,
[data-platform="other"] .ok-dl-platform-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 3h2v9h-2zM6 12l6 9 6-9H6zM3 22h18v-2H3z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 3h2v9h-2zM6 12l6 9 6-9H6zM3 22h18v-2H3z'/%3E%3C/svg%3E");
}
.ok-dl-platform-info { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.ok-dl-platform-name { font-size: 14px; font-weight: 500; }
.ok-dl-recommended-tag {
    background: var(--ok-accent); color: #fff;
    font-size: 10px; font-weight: 600; padding: 1px 6px;
    border-radius: 4px; letter-spacing: .03em; white-space: nowrap;
}
.ok-dl-chevron {
    width: 20px; height: 20px; flex-shrink: 0;
    background-color: var(--ok-text-2);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 9l7 7 7-7H5z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 9l7 7 7-7H5z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain; mask-size: contain;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    transition: transform .25s ease;
}
.ok-dl-platform-card.is-open .ok-dl-chevron { transform: rotate(180deg); }
.ok-dl-card-header:hover .ok-dl-chevron { background-color: var(--ok-text); }
/* expand / collapse */
.ok-dl-expand-body {
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows .25s ease;
}
.ok-dl-platform-card.is-open .ok-dl-expand-body { grid-template-rows: 1fr; }
.ok-dl-expand-inner {
    overflow: hidden; min-height: 0;
    padding: 0 16px; border-top: 0px solid var(--ok-border);
    transition: padding .25s ease, border-top-width 0s .25s;
}
.ok-dl-platform-card.is-open .ok-dl-expand-inner {
    padding: 14px 16px 16px; border-top-width: 1px;
    transition: padding .25s ease, border-top-width 0s;
}
.ok-dl-tutorial { margin-bottom: 12px; }
.ok-dl-tutorial-line { font-size: 13px; color: var(--ok-text-2); line-height: 1.7; margin: 0; }
.ok-dl-shared-id-line {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin: 6px 0; padding: 10px 12px; border-radius: 10px;
    background: color-mix(in srgb, var(--ok-accent) 10%, var(--ok-card));
    border: 1px solid color-mix(in srgb, var(--ok-accent) 18%, var(--ok-border));
}
.ok-dl-shared-id-label {
    font-size: 13px; color: var(--ok-text); font-weight: 600;
}
.ok-dl-shared-id-btn {
    padding: 6px 14px; min-height: 34px; font-size: 12px;
}
.ok-dl-apple-modal { display: grid; gap: 14px; }
.ok-apple-disclosure-wrap { display: grid; gap: 10px; }
.ok-apple-disclosure-main { margin: 0; line-height: 1.6; }
.ok-apple-risk-statement {
    padding: 12px 14px; border-radius: 8px;
    border: 1px solid color-mix(in srgb, #dc2626 32%, var(--ok-border));
    background: color-mix(in srgb, #dc2626 7%, var(--ok-card));
    color: var(--ok-text); font-size: 13px; font-weight: 600; line-height: 1.7;
    white-space: pre-wrap;
    -webkit-user-select: none; user-select: none;
}
.ok-apple-risk-char { transition: color .12s, background .12s, box-shadow .12s; }
.ok-apple-risk-char.is-matched { color: #16a34a; }
.ok-apple-risk-char.is-mismatch {
    color: #dc2626;
    background: color-mix(in srgb, #dc2626 16%, transparent);
    border-radius: 2px;
    box-shadow: inset 0 -2px #dc2626;
}
.ok-apple-risk-field { margin: 2px 0 0; }
.ok-apple-risk-field-head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 10px; margin-bottom: 6px;
}
.ok-apple-risk-field-head label {
    margin: 0; color: var(--ok-text); font-weight: 600; line-height: 1.5;
}
.ok-apple-risk-fill {
    flex: 0 0 auto; padding: 5px 10px; min-height: 32px; font-size: 12px;
}
.ok-apple-risk-input { min-height: 116px; resize: vertical; line-height: 1.6; }
.ok-apple-risk-input.is-error { border-color: #dc2626; }
.ok-apple-risk-input.is-success { border-color: #16a34a; }
.ok-apple-risk-hint {
    min-height: 18px; margin-top: 6px; color: var(--ok-text-2);
    font-size: 12px; line-height: 1.5;
}
.ok-apple-risk-hint.is-error { color: #dc2626; }
.ok-apple-risk-hint.is-success { color: #16a34a; font-weight: 600; }
.ok-apple-2fa-img { width: 100%; border-radius: 8px; display: block; margin-top: 4px; }
.ok-dl-apple-row {
    display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px;
    align-items: center;
}
.ok-dl-apple-row + .ok-dl-apple-row {
    padding-top: 12px; border-top: 1px solid var(--ok-border);
}
.ok-dl-apple-label {
    font-size: 12px; color: var(--ok-text-2); font-weight: 600;
    line-height: 1.5;
    padding-top: 2px;
}
.ok-dl-apple-value-wrap {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0;
}
.ok-dl-apple-value {
    display: inline-flex; align-items: center; min-height: 34px;
    padding: 7px 10px; border-radius: 8px; background: var(--ok-bg);
    color: var(--ok-text); border: 1px solid var(--ok-border);
    font-size: 12px; word-break: break-all; flex: 1 1 220px; min-width: 0;
}
.ok-dl-apple-value-copy {
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.ok-dl-apple-value-copy:hover {
    border-color: var(--ok-accent);
}
.ok-dl-apple-value-copy:focus {
    outline: none;
    border-color: var(--ok-accent);
    background: color-mix(in srgb, var(--ok-accent) 8%, var(--ok-bg));
}
.ok-dl-apple-copy {
    padding: 6px 12px; min-height: 34px; font-size: 12px;
}
.ok-dl-apple-value-wrap .ok-tag {
    padding: 7px 10px; border-radius: 8px; font-size: 12px; font-weight: 600;
}
.ok-dl-apple-detail {
    margin-top: 0;
    padding-top: 12px;
    border-top: 1px solid var(--ok-border);
}
.ok-dl-highlight {
    background: var(--ok-accent); color: #fff;
    padding: 1px 6px; border-radius: 3px; font-weight: 600; font-style: normal;
}
.ok-dl-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ok-dl-link {
    display: inline-block; padding: 7px 18px;
    background: var(--ok-accent); color: #fff;
    border-radius: 6px; font-size: 13px; text-decoration: none; font-weight: 500;
    transition: opacity .15s;
}
.ok-dl-link:hover { opacity: .82; }

/* mobile */
.ok-mobile-nav { display: none; --ok-nav-right: 24px; --ok-nav-bottom: max(20px, env(safe-area-inset-bottom)); }
.ok-mobile-nav-toggle { right: var(--ok-nav-right); bottom: calc(var(--ok-nav-bottom) + 72px); z-index: 23; }
.ok-mobile-nav-toggle .ok-support-icon { width: 28px; height: 28px; transform: rotate(-45deg); transition: transform .3s ease-in-out; }
.ok-mobile-nav-toggle[aria-expanded="true"] .ok-support-icon { transform: rotate(0); }
.ok-mobile-nav-dismiss { position: fixed; inset: 0; background: rgba(0,0,0,.08); z-index: 21; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .16s ease, visibility 0s .16s; }
.ok-mobile-nav-panel {
    /* Leave room for each pill's shadow inside the scrollport, keeping the links in place. */
    position: fixed; right: calc(var(--ok-nav-right) - 12px); bottom: calc(var(--ok-nav-bottom) + 128px); z-index: 22;
    width: 200px; max-width: calc(100vw - 8px); padding: 16px;
    max-height: calc(100vh - var(--ok-nav-bottom) - 188px); max-height: calc(100dvh - var(--ok-nav-bottom) - 188px);
    display: flex; flex-direction: column; gap: 4px; overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(10px);
    transition: opacity .16s ease, transform .16s ease, visibility 0s .16s;
}
.ok-mobile-nav-link { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--ok-border); border-radius: 24px; background: var(--ok-card); color: var(--ok-text); font-weight: 500; box-shadow: 0 2px 6px rgba(0,0,0,.12); text-align: center; }
.ok-mobile-nav-link:hover { background: var(--ok-bg); }
.ok-mobile-nav-link.is-active { background: var(--ok-accent); border-color: var(--ok-accent); color: #fff; }
.ok-mobile-nav.is-open .ok-mobile-nav-dismiss, .ok-mobile-nav.is-open .ok-mobile-nav-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.ok-mobile-nav.is-open ~ .ok-support-launcher { z-index: 23; }
.ok-app:has(.ok-mobile-nav.is-open) .ok-header { z-index: 24; }
body:has(.ok-support-panel[open]) .ok-mobile-nav { display: none; }
@media (prefers-reduced-motion: no-preference) {
    .ok-mobile-nav.is-open .ok-mobile-nav-link { animation: ok-mobile-nav-in .3s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(var(--ok-nav-order) * 40ms); }
}
@keyframes ok-mobile-nav-in { from { opacity: 0; transform: translateY(12px) scale(.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .ok-mobile-nav-toggle .ok-support-icon, .ok-mobile-nav-panel, .ok-mobile-nav-dismiss { transition: none; }
}
@media (max-width: 600px) {
    .ok-mobile-nav { --ok-nav-right: 16px; --ok-nav-bottom: max(16px, env(safe-area-inset-bottom)); }
}
.ok-menu-btn {
    display: none; background: none; border: none; padding: 6px 10px;
    font-size: 22px; cursor: pointer; color: var(--ok-text);
}
@media (max-width: 768px), (max-aspect-ratio: 10/13) {
    .ok-mobile-nav { display: block; }
    .ok-header { padding: 12px 14px; gap: 12px; }
    .ok-header .ok-user {
        font-size: 12px; grid-template-columns: 36px 36px 56px; column-gap: 3px;
    }
    .ok-header .ok-user .ok-top-action { min-height: 26px; padding: 0 4px; }
    .ok-header .ok-user .ok-top-action-lang { width: 36px; }
    .ok-header .ok-user .ok-top-action-theme { width: 36px; }
    .ok-header .ok-user .ok-top-action-logout { width: 56px; }
    .ok-auth-topbar {
        top: 12px; right: 12px; grid-template-columns: 36px 36px; column-gap: 3px; font-size: 12px;
    }
    .ok-auth-topbar .ok-top-action { min-height: 26px; padding: 0 4px; }
    .ok-auth-topbar .ok-top-action-lang { width: 36px; }
    .ok-auth-topbar .ok-top-action-theme { width: 36px; }
    .ok-header-brand { position: relative; flex: 1; }
    .ok-menu-btn { display: block; min-width: 44px; }
    .ok-menu-btn::after { content: ''; position: absolute; inset: -12px 0 -12px -14px; z-index: 1; }
    .ok-main { flex-direction: column; }
    .ok-side {
        width: 100%; padding: 18px 0 12px; border-bottom: 1px solid var(--ok-border);
        background: var(--ok-card); position: fixed; top: 64px; left: 0; right: 0;
        z-index: 9; transform: translateX(-100%); transition: transform .2s;
        height: calc(100vh - 64px); overflow-y: auto;
    }
    .ok-side.is-open { transform: translateX(0); }
    @media (prefers-reduced-motion: reduce) { .ok-side { transition: none; } }
    .ok-side ul { display: flex; flex-direction: column; }
    .ok-content { padding: 12px; }
    .ok-grid-2, .ok-grid-3 { grid-template-columns: 1fr; }
    .ok-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ok-plan-grid { grid-template-columns: 1fr; }
    .ok-invite-mode-tabs { grid-template-columns: 1fr; }
    .ok-invite-mode-context { display: inline; }
    .ok-invite-mode-submit { width: 100%; }
    .ok-support-page-actions .ok-btn { width: 100%; }
    .ok-account-telegram-copy, .ok-account-telegram-open, .ok-account-password-submit { width: 100%; }
    .ok-account-telegram-actions.has-bind-command { padding: 0 10px; }
    .ok-traffic-reset-controls { display: grid; grid-template-columns: minmax(0, 1fr); }
    .ok-traffic-reset-controls .ok-btn { width: 100%; }
    .ok-traffic-reset-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
    .ok-traffic-reset-actions .ok-btn { min-width: 0; width: 100%; padding-left: 10px; padding-right: 10px; }
    .ok-sub-reset-actions { position: relative; padding: 0 10px; }
    .ok-sub-reset-actions > .ok-btn { width: 100%; }
    .ok-sub-reset-actions > .ok-btn[aria-busy="true"] { color: transparent; }
    .ok-sub-reset-actions > .ok-downloads-subscription-refresh-status { position: absolute; top: 50%; left: 50%; width: 32px; transform: translate(-50%, -50%); pointer-events: none; }
    .ok-invite-code-row { flex-direction: column; align-items: stretch; }
    .ok-invite-code-row code { flex: 0 1 auto; width: 100%; }
    .ok-invite-code-actions { padding: 0 10px; }
    .ok-invite-code-copy, .ok-invite-code-actions .ok-btn { width: 100%; }
    .ok-plan .ok-plan-price-row { gap: 10px; }
    .ok-plan .ok-plan-buy-btn, .ok-plans-giftcard .ok-input-group > .ok-btn { min-width: 104px; }
    .ok-stat-row { grid-template-columns: 1fr 1fr; }
    .ok-stat-row-2 { grid-template-columns: 1fr; }
    .ok-stat-row-current { grid-template-columns: 1fr 1fr; }
    .ok-stat-row-4 { grid-template-columns: 1fr 1fr; }
    .ok-auth-box { padding: 20px; }
    .ok-table { font-size: 12px; }
    .ok-table th, .ok-table td { padding: 8px 6px; }
    .ok-orders-table-wrap { overflow-x: auto; }
    .ok-orders-table { min-width: 100%; width: max-content; table-layout: auto; }
    .ok-orders-table th, .ok-orders-table td {
        padding: 8px 3px; vertical-align: top; font-size: 12px;
        word-break: break-word; overflow-wrap: anywhere;
    }
    .ok-orders-col-ops { width: 60px; min-width: 60px; }
    .ok-orders-col-amount,
    .ok-orders-col-created { white-space: nowrap; }
    .ok-orders-col-status { text-align: center; }
    .ok-orders-ops { white-space: normal; }
    .ok-orders-ops-stack .ok-orders-op-btn,
    .ok-orders-ops-stack .ok-stat-label {
        display: block; width: 100%; margin: 0 0 6px;
        padding: 6px 4px; text-align: center;
    }
    .ok-orders-ops-stack .ok-orders-op-btn + .ok-orders-op-btn { margin-left: 0; }
    .ok-orders-ops-stack .ok-orders-op-btn:last-child,
    .ok-orders-ops-stack .ok-stat-label:last-child { margin-bottom: 0; }
    .ok-orders-plan { line-height: 1.45; }
    .ok-inline-card-row .ok-inline-card-stat-full-mobile {
        flex: 1 1 100%;
        width: 100%;
    }
    .ok-orders-detail-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 9px 0;
    }
    .ok-orders-detail-label { padding-top: 0; }
    .ok-orders-detail-note { margin-top: 12px; padding: 11px 12px; }
    .ok-orders-created { line-height: 1.3; }
    .ok-orders-status-tag { white-space: nowrap; }
    .ok-inline-card-actions { width: 100%; }
    .ok-inline-card-actions .ok-btn { width: 100%; }
    .ok-sub-actions { width: 100%; }
    .ok-sub-actions .ok-btn { width: 100%; }
    .ok-dl-shared-id-line { align-items: stretch; }
    .ok-dl-shared-id-btn { width: 100%; }
    .ok-dl-apple-row {
        grid-template-columns: 1fr;
        gap: 6px;
        align-items: start;
    }
    .ok-dl-apple-label { padding-top: 0; }
    .ok-dl-apple-value-wrap { align-items: stretch; }
    .ok-dl-apple-copy { width: 100%; }
    .ok-setting-row { align-items: flex-start; }
}

.ok-client-download{min-width:0}.ok-client-download .ok-dl-link{width:100%;text-align:left;cursor:pointer;border:0;font-family:inherit;overflow-wrap:anywhere}.ok-client-download .ok-dl-link:disabled{opacity:.6;cursor:wait}.ok-client-notes{font-size:12px;color:var(--ok-text-2);margin:8px 0;overflow-wrap:anywhere}.ok-client-notes summary{cursor:pointer}.ok-client-description{font-size:12px;color:var(--ok-text-2);margin:6px 0;overflow-wrap:anywhere}
