.otp-public,
.otp-auth,
.otp-panel-theme {
    --otp-ink: #242119;
    --otp-muted: #615b50;
    --otp-border: #eae2d1;
    --otp-paper: #fff;
    --otp-canvas: #fcfaf4;
    --otp-yellow: #ffcf3d;
    --otp-tint: #fff5d3;
    --otp-shadow: 0 18px 48px #3f301310;
}

.otp-public,
.otp-auth {
    --ink: var(--otp-ink);
    --muted: var(--otp-muted);
    --line: var(--otp-border);
    --blue: #795305;
    --navy: var(--otp-ink);
    --shadow-sm: 0 8px 24px #3f301314;
    background: var(--otp-canvas);
    color: var(--otp-ink);
}

.otp-public :focus-visible,
.otp-auth :focus-visible,
.otp-panel-theme :focus-visible {
    outline: 2px solid #865c06;
    outline-offset: 3px;
}

.otp-public .brand-mark,
.otp-auth .brand-mark {
    width: 39px;
    height: 39px;
    border-radius: 12px;
    background: var(--otp-yellow);
    color: var(--otp-ink);
    box-shadow: none;
}

.otp-brand { font-size: 20px; letter-spacing: -.035em; }
.otp-public .public-nav .otp-brand span:last-child { display: inline; }
.otp-brand svg { width: 23px; height: 23px; }

.otp-public .public-nav {
    height: 72px;
    padding-inline: max(24px, calc((100vw - 1184px) / 2));
    border-bottom: 1px solid var(--otp-border);
    background: #fffdf7f5;
}
.otp-public .public-nav::after { content: none; }
.otp-public .public-nav nav { gap: 27px; color: var(--otp-muted); }
.otp-public .public-nav nav a:hover,
.otp-public .public-footer a:hover { color: #765000; }
.otp-public .nav-actions .btn { min-height: 40px; font-size: 13px; }

.otp-public .btn-primary,
.otp-auth .btn-primary {
    background: var(--otp-yellow);
    border-color: #efbd2d;
    color: #231a08;
}
.otp-public .btn-primary:hover,
.otp-auth .btn-primary:hover { background: #ffda62; }
.otp-public .btn-ghost { border-color: var(--otp-border); }
.otp-public .btn:disabled,
.otp-auth .btn:disabled { opacity: .65; cursor: wait; }

.otp-landing {
    max-width: 1232px;
    margin-inline: auto;
    padding: 38px 24px 70px;
}
.otp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr);
    grid-template-areas: "story login";
    gap: 22px;
    align-items: stretch;
}
.otp-story {
    grid-area: story;
    overflow: hidden;
    display: grid;
    grid-template-rows: 1fr auto;
    border: 1px solid #efde9f;
    border-radius: 27px;
    background: #fff1b8;
}
.otp-intro { padding: 33px 38px 4px; }
.otp-kicker,
.otp-story-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 750;
}
.otp-kicker {
    width: fit-content;
    margin: 0 0 16px;
    padding: 5px 12px;
    border: 1px solid #e9d896;
    border-radius: 999px;
    background: #fff8dc;
    color: #614a17;
    font-size: 12px;
}
.otp-kicker svg,
.otp-story-link svg { width: 17px; height: 17px; }
.otp-intro h1 {
    margin: 0;
    font-size: clamp(39px, 4.35vw, 66px);
    line-height: 1.02;
    letter-spacing: -.068em;
    font-weight: 850;
}
.otp-intro h1 span { color: #795305; }
.otp-intro > p:not(.otp-kicker) {
    max-width: 420px;
    margin: 15px 0 12px;
    color: #52462b;
    font-size: 15px;
}
.otp-story-link { padding-block: 5px; color: #47350f; }
.otp-story-link:hover { text-decoration: underline; }
.otp-art { position: relative; height: clamp(210px, 21vw, 293px); overflow: hidden; isolation: isolate; }
.otp-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.otp-art::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0 0 auto;
    height: 38px;
    pointer-events: none;
    background: linear-gradient(#fff1b8, transparent);
}

.otp-login {
    grid-area: login;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(26px, 3.4vw, 47px);
    border: 1px solid var(--otp-border);
    border-radius: 27px;
    background: var(--otp-paper);
    box-shadow: var(--otp-shadow);
}

.otp-login-heading { margin-bottom: 22px; }
.otp-login-mark,
.otp-step-icon,
.otp-benefits article > svg {
    background: var(--otp-tint);
    color: #765306;
    border-radius: 13px;
}
.otp-login-mark,
.otp-step-icon {
    display: grid;
    place-items: center;
    width: 47px;
    height: 47px;
}
.otp-login-mark svg,
.otp-step-icon svg { width: 23px; height: 23px; }
.otp-login-heading h2,
.otp-auth .auth-card .otp-login-heading h2 {
    margin: 10px 0 2px;
    font-size: clamp(32px, 3.1vw, 45px);
    font-weight: 820;
    line-height: 1.12;
    letter-spacing: -.06em;
}
.otp-login-heading p { margin: 0; font-size: 14px; color: var(--otp-muted); }
.otp-login-form .field { gap: 6px; }
.otp-public .field > span:first-child,
.otp-auth .field > span:first-child { color: var(--otp-ink); font-size: 13px; }
.otp-login-form .otp-input-wrap { position: relative; display: block; }
.otp-input-wrap > svg {
    position: absolute;
    top: 50%;
    left: 13px;
    width: 19px;
    height: 19px;
    transform: translateY(-50%);
    color: #86764a;
    pointer-events: none;
}
.otp-public .field input,
.otp-auth .field input,
.otp-auth .field select,
.otp-auth .field textarea {
    background: #fdfcf8;
    border-color: #e5dece;
    color: var(--otp-ink);
    min-height: 48px;
    font-size: 16px;
}
.otp-login-form .otp-input-wrap input { padding-left: 42px; }
.otp-login-form input::placeholder { color: #726b5b; font-size: 13px; }
.otp-public .field input:focus,
.otp-auth .field input:focus,
.otp-auth .field select:focus,
.otp-auth .field textarea:focus {
    border-color: #967014;
    box-shadow: 0 0 0 3px #ffcf3d30;
}
.otp-login-form .btn-primary {
    position: relative;
    min-height: 48px;
    margin-top: 3px;
    font-size: 15px;
}
.otp-login-form .btn-primary svg { position: absolute; right: 13px; width: 19px; height: 19px; }
.otp-public .divider,
.otp-auth .divider { margin: 13px 0; color: var(--otp-muted); }
.otp-public .btn-google,
.otp-auth .btn-google { min-height: 44px; border-color: var(--otp-border); box-shadow: none; }
.otp-public .auth-switch,
.otp-auth .auth-switch { margin: 17px 0 0; font-size: 13px; }
.otp-public .auth-switch a,
.otp-auth .auth-switch a { text-decoration: underline; text-underline-offset: 3px; }
.otp-login .alert,
.otp-auth .alert { margin-bottom: 13px; }

.otp-benefits,
.otp-process-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}
.otp-benefits { margin-top: 18px; }
.otp-benefits article {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--otp-border);
    border-radius: 17px;
    background: var(--otp-paper);
}
.otp-benefits article > svg { flex: none; width: 38px; height: 38px; padding: 9px; }
.otp-benefits h2,
.otp-process h3 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
.otp-benefits p,
.otp-process p { margin: 2px 0 0; color: var(--otp-muted); }
.otp-process { margin-top: 56px; }
.otp-section-title { margin-bottom: 19px; }
.otp-section-title h2 { margin: 0; font-size: clamp(28px, 3.3vw, 40px); letter-spacing: -.055em; }
.otp-process-list { margin: 0; padding: 0; list-style: none; }
.otp-process-list li { padding: 21px; background: #fff9e7; border: 1px solid var(--otp-border); border-radius: 18px; }
.otp-process-list .otp-step-icon { margin-bottom: 10px; }
.otp-public [id] { scroll-margin-top: 86px; }
.otp-public .public-footer {
    padding: 23px max(24px, calc((100vw - 1184px) / 2));
    border-top: 1px solid var(--otp-border);
    background: #fffdf7;
    color: var(--otp-muted);
}
.otp-public .public-footer strong { color: var(--otp-ink); }
.otp-public .content-page-card { background: var(--otp-paper); color: var(--otp-ink); border-color: var(--otp-border); }

.otp-auth { padding: 24px; }
.otp-auth .auth-shell {
    max-width: 1080px;
    min-height: calc(100vh - 48px);
    border: 1px solid var(--otp-border);
    border-radius: 25px;
    background: var(--otp-paper);
    box-shadow: var(--otp-shadow);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.otp-auth .auth-brand {
    justify-content: center;
    padding: 41px;
    background: #fff1b8;
    color: var(--otp-ink);
}
.otp-auth .auth-brand > p:not(.eyebrow) { color: #52462b; }
.otp-auth .auth-brand > .otp-auth-title {
    margin: 35px 0 0;
    color: var(--otp-ink);
    font-size: clamp(33px, 4vw, 55px);
    font-weight: 820;
    line-height: 1.08;
    letter-spacing: -.06em;
}
.otp-auth-art { width: 100%; height: auto; border-radius: 17px; }
.otp-auth .auth-card { padding: clamp(30px, 4vw, 55px); background: #fff; min-width: 0; }

.otp-panel-theme {
    --ink: var(--otp-ink);
    --muted: var(--otp-muted);
    --line: var(--otp-border);
    --paper: var(--otp-paper);
    --canvas: var(--otp-canvas);
    --navy: var(--otp-ink);
    --navy-2: #514222;
    --blue: #795305;
    --blue-2: #92660d;
    --purple: #865c06;
    --yellow: var(--otp-yellow);
    --sky: var(--otp-tint);
    --soft: #fffaf0;
    --shadow: var(--otp-shadow);
    --shadow-sm: 0 5px 16px #44310e0b;
    background: var(--otp-canvas);
    color: var(--otp-ink);
    color-scheme: light;
    accent-color: #a5710d;
}
.otp-panel-theme::before,
.otp-panel-theme::after { content: none; }

.otp-panel-theme .sidebar,
.otp-panel-theme .topbar {
    background: #fffdf7;
    color: var(--otp-ink);
    border-color: var(--otp-border);
    box-shadow: none;
}
.otp-panel-theme .sidebar { border-right: 1px solid var(--otp-border); }
.otp-panel-theme .sidebar .brand,
.otp-panel-theme .sidebar-user strong { color: var(--otp-ink); }
.otp-panel-theme .brand-mark {
    background: var(--otp-yellow);
    color: var(--otp-ink);
    box-shadow: none;
}
.otp-panel-theme .brand-mark svg { width: 21px; height: 21px; }
.otp-panel-theme .avatar { background: #fff0c0; color: #684a0e; }
.otp-panel-theme .sidebar-nav a,
.otp-panel-theme .sidebar-user small,
.otp-panel-theme .sidebar-context { color: var(--otp-muted); }
.otp-panel-theme .sidebar-nav a {
    border: 1px solid transparent;
    min-height: 41px;
    gap: 10px;
}
.otp-panel-theme .sidebar-nav a:hover,
.otp-panel-theme .sidebar-nav a.active {
    background: var(--otp-tint);
    border-color: #ead88d;
    color: var(--otp-ink);
    box-shadow: none;
}
.otp-panel-theme .sidebar-nav a.active { background: #ffe697; }
.otp-nav-icon {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    color: #78560f;
}
.otp-nav-icon svg,
.otp-panel-theme .menu-toggle svg,
.otp-panel-theme .notification-bell svg { width: 19px; height: 19px; }
.otp-panel-theme .sidebar-balance,
.otp-panel-theme .top-balance {
    background: var(--otp-tint);
    border: 1px solid #ead88d;
    color: var(--otp-ink);
    box-shadow: none;
}
.otp-panel-theme .sidebar-balance :is(strong, span, small) { color: var(--otp-ink); }
.otp-panel-theme .app-footer { color: var(--otp-muted); }

.otp-panel-theme .panel,
.otp-panel-theme .stat-card,
.otp-panel-theme .modal-card,
.otp-panel-theme .announcement-popup-card {
    background: var(--otp-paper);
    border-color: var(--otp-border);
    color: var(--otp-ink);
    box-shadow: var(--shadow-sm);
}
.otp-panel-theme .panel-head {
    background: #fffdf8;
    border-color: var(--otp-border);
}
.otp-panel-theme .panel-head p,
.otp-panel-theme .field > small { color: var(--otp-muted); }
.otp-panel-theme .field > span { color: var(--otp-ink); font-size: 12px; }
.otp-panel-theme :is(.field input, .field select, .field textarea, .input, .currency-switch select, .combobox-trigger, .combobox-popover) {
    background: #fefdf9;
    border-color: #e4dbca;
    color: var(--otp-ink);
}
.otp-panel-theme :is(.field input, .field select, .field textarea, .input, .combobox-trigger):focus {
    border-color: #9b6e16;
    box-shadow: 0 0 0 3px #ffcf3d33;
}
.otp-panel-theme :is(.btn-primary, .btn-spectrum, .buy-submit) {
    background: var(--otp-yellow);
    border-color: #edbc31;
    color: #241a0b;
    box-shadow: none;
}
.otp-panel-theme :is(.btn-primary, .btn-spectrum, .buy-submit):hover { background: #ffda61; }
.otp-panel-theme :is(.btn-ghost, .btn-light, .icon-btn, .notification-bell, .fraud-alert-bell) {
    background: #fff;
    border-color: var(--otp-border);
    color: #6c4f14;
}
.otp-panel-theme .btn:disabled { opacity: .62; cursor: not-allowed; }
.otp-panel-theme .fraud-alert-bell.has-alerts { background: #fff1f2; border-color: #f7cbd0; color: #a72a3a; }
.otp-panel-theme .settings-tabs a { background: #fff; border-color: var(--otp-border); color: var(--otp-muted); }
.otp-panel-theme .settings-tabs a.active,
.otp-panel-theme .pagination .active,
.otp-panel-theme .pagination .current {
    background: var(--otp-tint);
    border-color: #e5cc74;
    color: #573b0c;
}
.otp-panel-theme .server-admin-tabs,
.otp-panel-theme .panel-actions { background: #fffaf0; border-color: var(--otp-border); }
.otp-panel-theme th { background: #fff6db; border-color: var(--otp-border); color: #604610; }
.otp-panel-theme td { border-color: var(--otp-border); }
.otp-panel-theme tbody tr:hover td { background: #fffcf2; }

.otp-panel-theme :is(.dashboard-welcome, .quote-card, .security-lock-banner) {
    background: var(--otp-tint);
    border: 1px solid #ead88d;
    color: var(--otp-ink);
    box-shadow: none;
}
.otp-panel-theme :is(.quote-card, .security-lock-banner) .eyebrow { color: #78560f; }
.otp-panel-theme :is(.quote-line, .quote-note, .security-lock-banner p:not(.eyebrow)) { color: var(--otp-muted); }
.otp-panel-theme .quote-line strong { color: var(--otp-ink); }
.otp-panel-theme .quote-balance strong { color: #14643e !important; }
.otp-panel-theme .quote-lines { border-color: #e9d88e; }
.otp-panel-theme .quote-card .help-tip-light { background: #fffae8; border-color: #ead88d; color: #604610; }
.otp-panel-theme .api-doc-card pre { background: #faf6e9; color: var(--otp-ink); }

.otp-appearance-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #ead88d;
    border-radius: 12px;
    background: var(--otp-tint);
}
.otp-appearance-swatch { width: 23px; height: 23px; border-radius: 7px; background: var(--otp-yellow); }
.otp-appearance-note small { display: block; color: var(--otp-muted); }

@media (max-width: 767px) {
    .otp-panel-theme .topbar { padding-inline: 12px; }
    .otp-panel-theme :is(.topbar-left, .topbar-right) { gap: 7px; }
    .otp-panel-theme .topbar .icon-btn { width: 36px; height: 36px; }
    .otp-panel-theme .topbar .notification-bell,
    .otp-panel-theme .topbar .fraud-alert-bell { width: 34px; height: 34px; }
}
@media (max-width: 360px) {
    .otp-panel-theme .mobile-app-brand strong { display: none; }
}

@media (max-width: 900px) {
    .otp-hero { grid-template-columns: minmax(0, 1.25fr) minmax(305px, 1fr); gap: 15px; }
    .otp-intro { padding-inline: 24px; }
    .otp-login { padding: 24px; }
    .otp-auth .auth-shell { max-width: 610px; grid-template-columns: minmax(0, 1fr); min-height: auto; }
    .otp-auth .auth-card { min-height: 0; }
    .otp-auth .auth-brand { display: none; }
    .otp-auth .mobile-auth-logo { margin-bottom: 21px; }
}
@media (max-width: 767px) {
    .otp-public .public-nav { height: 62px; padding-inline: 16px; }
    .otp-public .public-nav nav { display: none; }
    .otp-public .public-nav .nav-login { min-height: 36px; }
    .otp-landing { padding: 14px 14px 42px; }
    .otp-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "login" "story"; gap: 14px; }
    .otp-login { padding: 20px; border-radius: 19px; }
    .otp-login-heading { margin-bottom: 17px; }
    .otp-login-mark { width: 38px; height: 38px; border-radius: 10px; }
    .otp-login-mark svg { width: 20px; height: 20px; }
    .otp-login-heading h2 { margin-top: 7px; }
    .otp-story { border-radius: 19px; }
    .otp-intro { padding: 23px 19px 5px; }
    .otp-intro h1 { font-size: clamp(32px, 8vw, 52px); }
    .otp-intro > p:not(.otp-kicker) { font-size: 14px; }
    .otp-art { height: clamp(165px, 47vw, 270px); }
    .otp-benefits, .otp-process-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .otp-benefits article, .otp-process-list li { padding: 14px; }
    .otp-process { margin-top: 32px; }
    .otp-public .public-footer { padding: 18px 16px; flex-direction: column; align-items: flex-start; }
    .otp-public .footer-links { justify-content: flex-start; flex-wrap: wrap; }
    .otp-auth { padding: 14px; }
    .otp-auth .auth-card { padding: 21px; }
    .otp-auth .mobile-auth-logo { display: inline-flex; margin-bottom: 21px; }
}
