/* Dedicated Daily Stock login and signup screens. */
html.ds-theme body.sd-entry-standalone {
    margin: 0;
    padding: 0 !important;
    min-width: 0;
    background: #f7f9fd !important;
    color: #0a2858;
}
html.ds-theme body.sd-entry-standalone .sd-header {
    display: none !important;
}
html.ds-theme body.sd-entry-standalone .sd-main {
    display: flex;
    justify-content: center;
    width: 100% !important;
    max-width: none !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f7f9fd !important;
    box-sizing: border-box;
}
html.ds-theme body.sd-entry-standalone .sd-entry-page {
    --sd-entry-page-width: 760px;
    --sd-entry-content-gap: 64px;
    --sd-entry-brand-gap: 12px;
    --sd-entry-brand-size: 34px;
    --sd-entry-mark-width: 36px;
    --sd-entry-mark-height: 44px;
    --sd-entry-form-width: 320px;
    --sd-entry-form-gap: 20px;
    display: flex;
    flex-direction: column;
    width: min(var(--sd-entry-page-width), 100%);
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 40px 24px 32px;
    box-sizing: border-box;
    background: linear-gradient(155deg, #fff 0%, #fff 60%, #fff 100%);
    color: #0a2858;
    font-size: 16px;
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: anywhere;
}
/* Introduction and nickname entry share the base layout and set their own measures. */
html.ds-theme body.sd-entry-standalone .sd-entry-page:not(.is-details) {
    --sd-entry-content-gap: 32px;
    --sd-entry-brand-gap: 10px;
    --sd-entry-brand-size: 30px;
    --sd-entry-mark-width: 30px;
    --sd-entry-mark-height: 36px;
    --sd-entry-form-width: 360px;
}
html.ds-theme body.sd-entry-standalone .sd-entry-content {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sd-entry-content-gap);
    min-width: 0;
    padding: 24px 0;
}
html.ds-theme body.sd-entry-standalone .sd-entry-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sd-entry-brand-gap);
    max-width: 100%;
    min-height: 48px;
    color: #0a2858 !important;
    font-size: var(--sd-entry-brand-size);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.04em;
    text-decoration: none !important;
}
html.ds-theme body.sd-entry-standalone .sd-entry-brand__mark {
    flex: 0 0 var(--sd-entry-mark-width);
    width: var(--sd-entry-mark-width);
    height: var(--sd-entry-mark-height);
    fill: #1764c7;
}
html.ds-theme body.sd-entry-standalone .sd-entry-brand__mark rect:last-child {
    fill: #0a2858;
}
html.ds-theme body.sd-entry-standalone .sd-entry-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--sd-entry-form-gap);
    width: 100%;
    max-width: var(--sd-entry-form-width);
    min-width: 0;
    text-align: center;
}
html.ds-theme body.sd-entry-standalone .sd-entry-form > * {
    min-width: 0;
}
html.ds-theme body.sd-entry-standalone .sd-entry-form h1 {
    margin: 0;
    color: #0a2858 !important;
    font-size: 24px;
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: -.03em;
}
html.ds-theme body.sd-entry-standalone .sd-entry-kakao {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    margin: 0;
    padding: 12px;
    border: 1px solid #fee500;
    border-radius: 8px;
    box-sizing: border-box;
    background: #fee500;
    color: #191919 !important;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.5;
    text-decoration: none !important;
}
html.ds-theme body.sd-entry-standalone .sd-entry-kakao i {
    flex: 0 0 22px;
    width: 22px;
    font-size: 22px;
    line-height: 1;
}
html.ds-theme body.sd-entry-standalone .sd-entry-kakao span {
    min-width: 0;
}
html.ds-theme body.sd-entry-standalone .sd-entry-kakao:hover {
    border-color: #f1d900;
    background: #f1d900;
    color: #191919 !important;
}
html.ds-theme body.sd-entry-standalone .sd-entry-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
html.ds-theme body.sd-entry-standalone .sd-entry-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    box-sizing: border-box;
    color: #0a2858 !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 3px;
}
html.ds-theme body.sd-entry-standalone .sd-entry-links .sd-entry-browse {
    color: #475569 !important;
    font-weight: 500;
}
html.ds-theme body.sd-entry-standalone .sd-entry-copyright {
    margin: 24px 0 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}
html.ds-theme body.sd-entry-standalone .sd-entry-notice {
    margin: 0;
    padding: 12px;
    border: 1px solid #dfe8f3;
    border-radius: 8px;
    background: #edf4ff;
    color: #0a2858;
    font-size: 16px;
    line-height: 1.65;
    white-space: pre-line;
}
html.ds-theme body.sd-entry-standalone .sd-entry-kakao.is-disabled {
    border-color: #d5dbe4;
    background: #e4e8ee;
    color: #45546b !important;
    cursor: default;
}
html.ds-theme body.sd-entry-standalone .sd-entry-hint {
    margin: 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.65;
}
html.ds-theme body.sd-entry-standalone a:focus-visible,
html.ds-theme body.sd-entry-standalone button:focus-visible,
html.ds-theme body.sd-entry-standalone input:focus-visible {
    outline: 3px solid #0a2858;
    outline-offset: 4px;
}
html.ds-theme body.sd-entry-standalone [hidden] { display: none !important; }
html.ds-theme body.sd-entry-standalone button,
html.ds-theme body.sd-entry-standalone input { font-family: inherit; }
html.ds-theme body.sd-entry-standalone button { cursor: pointer; }
html.ds-theme body.sd-entry-standalone button:disabled { cursor: default; }
html.ds-theme body.sd-entry-standalone .sd-entry-page.is-details {
    padding: 0;
    background: #fff;
}
html.ds-theme body.sd-entry-standalone .sd-entry-page.is-details .sd-entry-content {
    flex: 1;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
}
html.ds-theme body.sd-entry-standalone .sd-entry-page.is-details .sd-entry-copyright { display: none; }
html.ds-theme body.sd-entry-standalone .sd-entry-details {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}
html.ds-theme body.sd-entry-standalone .sd-entry-details__header {
    display: grid;
    grid-template-columns: 48px minmax(0,1fr) 48px;
    align-items: center;
    min-height: 72px;
    padding: max(8px, env(safe-area-inset-top, 0px)) 16px 8px;
    border-bottom: 1px solid #dfe8f3;
}
html.ds-theme body.sd-entry-standalone .sd-entry-details__header h2 {
    margin: 0;
    color: #0a2858 !important;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}
html.ds-theme body.sd-entry-standalone .sd-entry-icon,
html.ds-theme body.sd-entry-standalone .sd-entry-legal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #0a2858 !important;
    text-decoration: none;
    box-sizing: border-box;
}
html.ds-theme body.sd-entry-standalone .sd-entry-icon:hover,
html.ds-theme body.sd-entry-standalone .sd-entry-legal:hover { background: #edf4ff; }
html.ds-theme body.sd-entry-standalone .sd-entry-icon svg,
html.ds-theme body.sd-entry-standalone .sd-entry-legal svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
html.ds-theme body.sd-entry-standalone .sd-entry-details__form {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    min-width: 0;
    min-height: 320px;
    margin: 0;
    padding: 40px 32px max(24px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}
html.ds-theme body.sd-entry-standalone .sd-entry-details__field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
html.ds-theme body.sd-entry-standalone .sd-entry-details__field label {
    color: #0a2858;
    font-size: 18px;
    font-weight: 650;
    line-height: 1.5;
}
html.ds-theme body.sd-entry-standalone .sd-entry-details__field input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid #c7d5e8;
    border-radius: 8px;
    box-sizing: border-box;
    background: #f7f9fd;
    color: #0a2858;
    font-size: 16px;
    line-height: 1.5;
}
html.ds-theme body.sd-entry-standalone .sd-entry-details__field input::placeholder { color: #64748b; opacity: 1; }
html.ds-theme body.sd-entry-standalone .sd-entry-form-error {
    margin: 0;
    color: #b42318;
    font-size: 16px;
    line-height: 1.6;
}
html.ds-theme body.sd-entry-standalone .sd-entry-submit,
html.ds-theme body.sd-entry-standalone .sd-entry-cancel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    box-sizing: border-box;
    background: #1764c7;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}
html.ds-theme body.sd-entry-standalone .sd-entry-submit:hover { background: #1257b5; }
html.ds-theme body.sd-entry-standalone .sd-entry-submit:disabled {
    background: #e5edf7;
    color: #64748b !important;
    opacity: 1;
}
html.ds-theme body.sd-entry-standalone .sd-entry-cancel { background: #0a2858; }
html.ds-theme body.sd-entry-standalone .sd-entry-cancel:hover { background: #082044; }
html.ds-theme body.sd-entry-standalone .sd-entry-modal {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #0a285880;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 180ms ease;
    box-sizing: border-box;
    overscroll-behavior: contain;
}
html.ds-theme body.sd-entry-standalone .sd-entry-modal.is-open { opacity: 1; }
html.ds-theme body.sd-entry-standalone .sd-entry-modal__dialog {
    width: min(640px,100%);
    min-width: 0;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px;
    border: 1px solid #dfe8f3;
    border-radius: 16px;
    box-sizing: border-box;
    background: #fff;
    color: #0a2858;
    font-size: 16px;
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: anywhere;
    transform: translateY(12px);
    transition: transform 180ms ease;
}
html.ds-theme body.sd-entry-standalone .sd-entry-modal.is-open .sd-entry-modal__dialog { transform: translateY(0); }
html.ds-theme body.sd-entry-standalone .sd-entry-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
html.ds-theme body.sd-entry-standalone .sd-entry-modal__header h2 {
    margin: 0;
    color: #0a2858 !important;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}
html.ds-theme body.sd-entry-standalone .sd-entry-modal__description { margin: 0 0 16px; color: #475569; }
html.ds-theme body.sd-entry-standalone .sd-entry-agreement {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 52px;
    padding: 8px;
    box-sizing: border-box;
    color: #0a2858;
    font-size: 16px;
    line-height: 1.6;
    cursor: pointer;
}
html.ds-theme body.sd-entry-standalone .sd-entry-agreement input {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: #1764c7;
    cursor: pointer;
}
html.ds-theme body.sd-entry-standalone .sd-entry-agreement strong { color: #1764c7; font-weight: 500; white-space: nowrap; }
html.ds-theme body.sd-entry-standalone .sd-entry-agreement--all {
    margin-bottom: 8px;
    padding: 12px;
    border: 1px solid #dfe8f3;
    border-radius: 8px;
    background: #edf4ff;
    font-weight: 700;
}
html.ds-theme body.sd-entry-standalone .sd-entry-agreement__row { display: flex; align-items: center; gap: 4px; min-width: 0; }
html.ds-theme body.sd-entry-standalone .sd-entry-modal__actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 24px; }
@media (max-width: 760px) {
    html.ds-theme body.sd-entry-standalone .sd-entry-details__form { padding: 32px 20px max(20px, env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 640px) {
    html.ds-theme body.sd-entry-standalone .sd-entry-modal { align-items: flex-end; padding: 0; }
    html.ds-theme body.sd-entry-standalone .sd-entry-modal__dialog {
        width: 100%;
        max-height: calc(100dvh - 16px);
        padding: 20px 16px max(20px, env(safe-area-inset-bottom, 0px));
        border-radius: 16px 16px 0 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    html.ds-theme body.sd-entry-standalone .sd-entry-modal,
    html.ds-theme body.sd-entry-standalone .sd-entry-modal__dialog { transition: none; }
}
@media (max-width: 760px) {
    html.ds-theme body.sd-entry-standalone .sd-entry-page {
        --sd-entry-content-gap: 48px;
        --sd-entry-brand-gap: 10px;
        --sd-entry-brand-size: 30px;
        --sd-entry-mark-width: 30px;
        --sd-entry-mark-height: 36px;
        padding: max(24px, env(safe-area-inset-top, 0px)) 20px max(24px, env(safe-area-inset-bottom, 0px));
    }
    html.ds-theme body.sd-entry-standalone .sd-entry-content {
        padding: 16px 0;
    }
}


/* Login/signup introduction; onboarding screens retain their own layout. */
html.ds-theme body.sd-entry-standalone .sd-entry-page:not(.is-details) .sd-entry-form h1 {
    font-size: 22px;
    text-align: left;
}
html.ds-theme body.sd-entry-standalone .sd-entry-page:not(.is-details) .sd-entry-kakao {
    position: relative;
    padding-inline: 52px;
}
html.ds-theme body.sd-entry-standalone .sd-entry-page:not(.is-details) .sd-entry-kakao i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}
html.ds-theme body.sd-entry-standalone .sd-entry-page:not(.is-details) .sd-entry-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #dfe8f3;
}
html.ds-theme body.sd-entry-standalone .sd-entry-page:not(.is-details) .sd-entry-links a {
    padding: 8px 4px;
    font-size: 14px;
    text-decoration: none;
}
html.ds-theme body.sd-entry-standalone .sd-entry-page:not(.is-details) .sd-entry-links a:hover {
    color: #1764c7 !important;
    text-decoration: underline;
}


/* Login and signup share the same stage. */
html.ds-theme body.sd-entry-standalone .sd-entry-page--sheet {
    --sd-entry-page-width: 600px;
    --sd-entry-intro-top: max(56px, calc(50dvh - 120px));
    --sd-entry-brand-top: clamp(18px, calc(50dvh - 236px), 230px);
    --sd-entry-sheet-bottom: clamp(24px, calc(50dvh - 305px), 144px);
    --sd-entry-keyboard-gap: 0px;
    --sd-entry-shift-duration: var(--sd-motion-sheet, 420ms);
    --sd-entry-shift-ease: var(--sd-motion-ease, cubic-bezier(.22, 1, .36, 1));
    position: relative;
    isolation: isolate;
    padding: 0;
    border-inline: 1px solid #e4ecf7;
    background: radial-gradient(ellipse at 50% 4%, #e9f2ff, transparent 65%), #fff;
}
html.ds-theme body.sd-entry-standalone .sd-entry-page--sheet .sd-entry-content {
    justify-content: flex-start;
    padding: var(--sd-entry-intro-top) 24px 24px;
}
.sd-entry-page--sheet .sd-entry-brand {
    position: relative;
    z-index: 2;
    transition: transform var(--sd-entry-shift-duration) var(--sd-entry-shift-ease);
}
.sd-entry-page--sheet.is-sheet-open .sd-entry-brand {
    transform: translateY(calc(var(--sd-entry-brand-top) - var(--sd-entry-intro-top))) scale(.82);
}
.sd-entry-page--sheet .sd-entry-form,
.sd-entry-page--sheet .sd-entry-copyright {
    transition: opacity 240ms ease, transform 280ms ease;
}
html.ds-theme body.sd-entry-standalone .sd-entry-page--sheet .sd-entry-copyright {
    margin: 0;
    padding: 0 16px max(22px, env(safe-area-inset-bottom, 0px));
}
.sd-entry-page--sheet.is-sheet-open .sd-entry-form {
    opacity: 0;
    transform: translateY(12px);
}
.sd-entry-page--sheet.is-sheet-open .sd-entry-copyright { opacity: 0; }
.sd-entry-shade {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: #dbe8f980;
    opacity: 0;
    pointer-events: none;
    transition: opacity 260ms ease;
}
.sd-entry-page--sheet.is-sheet-open .sd-entry-shade {
    opacity: 1;
    pointer-events: auto;
}
html.ds-theme:has(.sd-entry-page--sheet.is-sheet-open) { overflow: hidden; }

.sd-entry-sheet {
    position: fixed;
    z-index: 3;
    inset-inline: 0;
    bottom: calc(var(--sd-entry-sheet-bottom) + var(--sd-entry-keyboard-gap));
    width: min(464px, calc(100% - 32px));
    max-height: max(120px, calc(100dvh - var(--sd-entry-brand-top) - 66px - var(--sd-entry-sheet-bottom) - var(--sd-entry-keyboard-gap)));
    margin-inline: auto;
    padding: 16px 24px 24px;
    border: 1px solid #d7e4f3;
    border-radius: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    box-shadow: 0 12px 35px #0a28581a;
    visibility: hidden;
    transform: translateY(calc(100% + var(--sd-entry-sheet-bottom) + var(--sd-entry-keyboard-gap) + 16px));
    transition: transform var(--sd-entry-shift-duration) var(--sd-entry-shift-ease),
        visibility 0s linear var(--sd-entry-shift-duration);
}
.sd-entry-page--sheet.is-sheet-open .sd-entry-sheet {
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}
.sd-entry-sheet__header {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.sd-entry-sheet__header h1 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    color: #0a2858;
    font-size: 20px;
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: -.02em;
    text-align: center;
}
.sd-entry-sheet__header [data-signup-back] { grid-column: 1; grid-row: 1; }
.sd-entry-sheet__header [data-signup-close] { grid-column: 3; grid-row: 1; }
.sd-entry-sheet__form { margin: 0; }
.sd-entry-sheet__description { margin: 0 0 12px; color: #475569; }
.sd-entry-sheet__step .sd-entry-form-error:not([hidden]) { margin-bottom: 8px; }
.sd-entry-sheet__step .sd-entry-agreement__row + .sd-entry-agreement__row {
    border-top: 1px solid #e4ecf7;
}
.sd-entry-sheet__actions { margin-top: 16px; }
.sd-entry-sheet__field {
    position: relative;
    display: grid;
    gap: 8px;
    padding-top: 4px;
}
.sd-entry-sheet__field .sd-entry-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.sd-entry-sheet__field input {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #bfcfe5;
    border-radius: 8px;
    box-sizing: border-box;
    background: #f7f9fd;
    color: #0a2858;
    font-size: 16px;
    line-height: 1.5;
}
.sd-entry-sheet__field input::placeholder { color: #54677f; opacity: 1; }
.sd-entry-sheet__field input[aria-invalid="true"] { border-color: #b42318; }
@media (max-width: 600px) {
    html.ds-theme body.sd-entry-standalone .sd-entry-page--sheet {
        --sd-entry-sheet-bottom: 0px;
        border-inline: 0;
    }
    html.ds-theme body.sd-entry-standalone .sd-entry-page--sheet .sd-entry-content {
        padding-inline: 20px;
    }
    .sd-entry-sheet {
        width: 100%;
        padding: 12px 20px max(20px, env(safe-area-inset-bottom, 0px));
        border-radius: 20px 20px 0 0;
    }
}
@media (max-height: 560px) {
    html.ds-theme body.sd-entry-standalone .sd-entry-page--sheet {
        --sd-entry-brand-top: 8px;
    }
    .sd-entry-sheet__header { margin-bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) {
    .sd-entry-page--sheet .sd-entry-brand,
    .sd-entry-page--sheet .sd-entry-form,
    .sd-entry-page--sheet .sd-entry-copyright,
    .sd-entry-page--sheet .sd-entry-shade,
    .sd-entry-page--sheet .sd-entry-sheet,
    .sd-entry-page--sheet.is-sheet-open .sd-entry-sheet { transition: none; }
}

/* Public mobile header. Load after the shared and page styles. */
html.ds-theme body .sd-header.ds-header.navbar .ds-mobile-menu-head,
html.ds-theme body .sd-header.ds-header.navbar .ds-mobile-menu-account,
html.ds-theme body .sd-header.ds-header.navbar .ds-mobile-menu-home,
html.ds-theme body .sd-header.ds-header.navbar .ds-mobile-menu-shortcuts,
html.ds-theme body .sd-header.ds-header.navbar .ds-search-close,
html.ds-theme body .sd-header.ds-header.navbar .ds-nav-icon,
html.ds-theme body .sd-header.ds-header.navbar .ds-header-backdrop {
    display: none;
}

@media (max-width: 1099px) {
    html.ds-theme body,
    html.ds-theme body.sd-rd {
        --ds-mobile-safe-top: env(safe-area-inset-top, 0px);
        --ds-mobile-header-h: calc(60px + var(--ds-mobile-safe-top));
        --ds-header-h: var(--ds-mobile-header-h);
        --rd-header-h: var(--ds-mobile-header-h);
    }

    html.ds-theme body .sd-header.ds-header.navbar {
        height: var(--ds-mobile-header-h);
        min-height: var(--ds-mobile-header-h);
        max-height: var(--ds-mobile-header-h);
        padding: var(--ds-mobile-safe-top) 0 0 !important;
        box-sizing: border-box;
        overflow: visible !important;
        border: 0 !important;
        background: #fff !important;
        box-shadow: inset 0 -1px 0 #dce5ef !important;
        backdrop-filter: none;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-wrap {
        width: 100% !important;
        max-width: none !important;
        padding: 0 12px !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-header__bar {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) auto;
        align-items: center;
        gap: 6px;
        height: 60px;
        min-height: 60px;
        position: static;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-logo {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        min-width: 0;
        gap: 7px;
        font-size: 17px;
        font-weight: 800;
        line-height: 1.25;
        letter-spacing: -.04em;
        white-space: nowrap;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-logo span {
        flex: 0 0 18px;
        width: 18px;
        height: 22px;
        border-radius: 0;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 22'%3E%3Cpath fill='%232564d5' d='M1 13h4v8H1zM7 7h4v14H7zM13 1h4v20h-4z'/%3E%3C/svg%3E") center / 18px 22px no-repeat;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-header__tools {
        display: flex;
        grid-column: 3;
        grid-row: 1;
        align-items: center;
        justify-content: flex-end;
        justify-self: end;
        gap: 6px;
        min-width: 0;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-icon-btn,
    html.ds-theme body .sd-header.ds-header.navbar .ds-user-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        height: 44px;
        border-radius: 8px;
        border: 1px solid transparent;
        font-size: 14px;
        line-height: 1;
        box-sizing: border-box;
        color: #18345c !important;
        background: transparent;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-icon-btn {
        flex: 0 0 44px;
        width: 44px;
        padding: 0;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-icon-btn i {
        font-size: 22px;
        line-height: 1;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-search-toggle {
        display: none;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-menu-toggle {
        display: inline-flex;
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-header-watch {
        display: none;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-user-link[data-ds-account="guest"],
    html.ds-theme body .sd-header.ds-header.navbar .ds-user-link[data-ds-account="admin"] {
        min-width: 60px;
        padding: 0 10px;
        background: #edf3ff;
        color: #16498f !important;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-user-link[data-ds-account="guest"] span {
        display: inline;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-user-link[data-ds-account="guest"] i {
        display: none;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-user-link[data-ds-account="member"] {
        flex: 0 0 44px;
        width: 44px;
        padding: 0;
        background: #edf3ff;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-user-link[data-ds-account="member"] span {
        display: none;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-user-link[data-ds-account="member"] i {
        font-size: 22px;
    }

    html.ds-theme body .sd-header.ds-header.navbar.is-nav-mounted,
    html.ds-theme body .sd-header.ds-header.navbar.is-nav-open,
    html.ds-theme body .sd-header.ds-header.navbar.is-search-open {
        z-index: 1080;
    }

    html.ds-theme body .sd-header.ds-header.navbar > .ds-header-backdrop {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        padding: 0;
        margin: 0;
        border: 0;
        border-radius: 0;
        appearance: none;
        background: rgba(18, 35, 59, .42);
        opacity: 0;
        transition: opacity var(--sd-motion-standard, 280ms) var(--sd-motion-ease, ease-out);
        z-index: 30;
    }

    html.ds-theme body .sd-header.ds-header.navbar.is-nav-mounted > .ds-header-backdrop:not([hidden]),
    html.ds-theme body .sd-header.ds-header.navbar.is-search-open > .ds-header-backdrop:not([hidden]) {
        display: block;
    }

    html.ds-theme body .sd-header.ds-header.navbar.is-nav-open > .ds-header-backdrop:not([hidden]),
    html.ds-theme body .sd-header.ds-header.navbar.is-search-open > .ds-header-backdrop:not([hidden]) {
        opacity: 1;
    }

    html.ds-theme body .sd-header.ds-header.navbar > .ds-header-backdrop[hidden] {
        display: none !important;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-nav {
        display: none;
    }

    html.ds-theme body .sd-header.ds-header.navbar.is-nav-mounted .ds-nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        position: fixed;
        inset: 0 auto 0 0;
        width: min(336px, calc(100vw - 48px));
        max-width: calc(100vw - 48px);
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        box-sizing: border-box;
        margin: 0;
        padding: max(12px, env(safe-area-inset-top, 0px)) 12px calc(16px + env(safe-area-inset-bottom, 0px));
        gap: 2px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        border: 0;
        border-radius: 0 12px 12px 0;
        background: #fff;
        box-shadow: 8px 0 36px rgba(18, 35, 59, .18);
        transform: translateX(-100%);
        transition: transform var(--sd-motion-standard, 280ms) var(--sd-motion-ease, cubic-bezier(.22, 1, .36, 1));
        will-change: transform;
        z-index: 40;
    }

    html.ds-theme body .sd-header.ds-header.navbar.is-nav-mounted.is-nav-open .ds-nav {
        transform: translateX(0);
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-nav::-webkit-scrollbar {
        display: block;
        width: 6px;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-nav::-webkit-scrollbar-thumb {
        background: #b9c8da;
        border-radius: 6px;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-mobile-menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex: 0 0 auto;
        gap: 8px;
        padding: 0 0 8px 8px;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-mobile-menu-head strong {
        font-size: 18px;
        font-weight: 750;
        line-height: 1.4;
        color: #182b49;
    }

    html.ds-theme body .sd-header.ds-header.navbar [data-ds-nav-close] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 8px;
        background: #f1f5fa;
        color: #18345c;
        font-size: 20px;
        line-height: 1;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-nav > a,
    html.ds-theme body .sd-header.ds-header.navbar .ds-mobile-menu-shortcuts > a {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        gap: 10px;
        min-height: 44px;
        width: 100%;
        padding: 10px 12px;
        margin: 0;
        border-radius: 8px;
        color: #293e5e !important;
        font-size: 15px;
        font-weight: 650;
        line-height: 1.5;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: keep-all;
        max-height: none;
        overflow: visible;
        text-decoration: none !important;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-nav a i {
        display: inline-block;
        flex: 0 0 20px;
        width: 20px;
        font-size: 19px;
        line-height: 1;
        text-align: center;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-nav-label {
        min-width: 0;
        line-height: 1.5;
        word-break: keep-all;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-nav > a:hover,
    html.ds-theme body .sd-header.ds-header.navbar .ds-nav > a.is-active,
    html.ds-theme body .sd-header.ds-header.navbar .ds-mobile-menu-shortcuts > a:hover {
        background: #edf3ff;
        color: #1764c7 !important;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-mobile-menu-account {
        display: flex;
        flex: 0 0 auto;
        gap: 8px;
        padding: 10px 0 12px;
        margin-bottom: 6px;
        border-top: 1px solid #e2e9f2;
        border-bottom: 1px solid #e2e9f2;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-mobile-menu-account > a {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1 1 0;
        gap: 6px;
        min-width: 0;
        min-height: 44px;
        padding: 8px;
        border: 1px solid #dce5ef;
        border-radius: 8px;
        background: #f6f9fd;
        font-size: 14px;
        font-weight: 650;
        color: #18345c !important;
        line-height: 1.5;
        white-space: normal;
        overflow-wrap: anywhere;
        text-decoration: none !important;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-mobile-menu-shortcuts {
        display: flex;
        flex-direction: column;
        flex: 0 0 auto;
        gap: 2px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #e2e9f2;
    }

    html.ds-theme body .sd-header.ds-header.navbar .ds-mobile-menu-shortcuts > strong {
        padding: 0 12px 4px;
        font-size: 13px;
        line-height: 1.5;
        color: #52647c;
        font-weight: 650;
    }

    html.ds-theme body .sd-header.ds-header.navbar #sdHeaderSearch.ds-search {
        display: none;
        opacity: 0;
        translate: 0 -12px;
        grid-template-columns: minmax(0, 1fr) 44px 44px;
        align-items: start;
        gap: 8px;
        position: fixed;
        top: var(--ds-mobile-header-h);
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        min-width: 0;
        max-height: calc(100vh - var(--ds-mobile-header-h));
        max-height: calc(100dvh - var(--ds-mobile-header-h));
        padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
        margin: 0;
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 0;
        border-radius: 0 0 12px 12px;
        background: #fff;
        box-shadow: 0 10px 32px rgba(18, 35, 59, .16);
        z-index: 40;
    }

    html.ds-theme body .sd-header.ds-header.navbar.is-search-open #sdHeaderSearch.ds-search {
        display: grid;
        opacity: 1;
        translate: none;
    }

    @supports (transition-behavior: allow-discrete) {
        html.ds-theme body .sd-header.ds-header.navbar #sdHeaderSearch.ds-search {
            transition: opacity var(--sd-motion-standard, 280ms) var(--sd-motion-ease, ease),
                translate var(--sd-motion-standard, 280ms) var(--sd-motion-ease, ease),
                display var(--sd-motion-standard, 280ms) allow-discrete;
        }
        html.ds-theme body .sd-header.ds-header.navbar > .ds-header-backdrop {
            transition: opacity var(--sd-motion-standard, 280ms) var(--sd-motion-ease, ease),
                display var(--sd-motion-standard, 280ms) allow-discrete;
        }
        @starting-style {
            html.ds-theme body .sd-header.ds-header.navbar.is-search-open #sdHeaderSearch.ds-search {
                opacity: 0;
                translate: 0 -12px;
            }
            html.ds-theme body .sd-header.ds-header.navbar.is-search-open > .ds-header-backdrop:not([hidden]) {
                opacity: 0;
            }
        }
    }

    html.ds-theme body .sd-header.ds-header.navbar #sdHeaderSearch.ds-search > input {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        min-width: 0;
        height: 44px;
        padding: 0 10px 0 36px;
        border: 1px solid #cdd9e7;
        border-radius: 8px;
        background: #f8faff;
        color: #182b49;
        font-size: 16px;
        line-height: 1.5;
        box-sizing: border-box;
    }

    html.ds-theme body .sd-header.ds-header.navbar #sdHeaderSearch.ds-search > .ds-search__icon {
        position: absolute;
        top: 34px;
        left: 24px;
        width: 18px;
        transform: translateY(-50%);
        color: #63799a;
        font-size: 16px;
        line-height: 1;
        pointer-events: none;
    }

    html.ds-theme body .sd-header.ds-header.navbar #sdHeaderSearch.ds-search > button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: static;
        top: auto;
        right: auto;
        left: auto;
        transform: none;
        grid-row: 1;
        width: 44px;
        min-width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 8px;
        margin: 0;
        font-size: 18px;
        line-height: 1;
    }

    html.ds-theme body .sd-header.ds-header.navbar #sdHeaderSearch.ds-search > button[type="submit"] {
        grid-column: 2;
        background: #1e5fce;
        color: #fff;
    }

    html.ds-theme body .sd-header.ds-header.navbar #sdHeaderSearch.ds-search > [data-ds-search-close] {
        grid-column: 3;
        background: #f1f5fa;
        color: #18345c;
    }

    html.ds-theme body .sd-header.ds-header.navbar #sdHeaderSearch.ds-search .ds-search__panel {
        position: static;
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        max-height: min(420px, calc(100dvh - var(--ds-mobile-header-h) - 92px));
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 12px;
        border: 1px solid #dce5ef;
        border-radius: 8px;
        background: #fff;
        box-shadow: none;
    }

    html.ds-theme body .sd-header.ds-header.navbar #sdHeaderSearch.ds-search .ds-search__suggestions {
        max-height: none;
        overflow: visible;
    }

    html.ds-theme body .sd-header.ds-header.navbar #sdHeaderSearch.ds-search .ds-search__panel .ds-chip {
        max-width: 100%;
        min-height: 44px;
        padding: 8px 12px;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: keep-all;
    }

    html.ds-theme body .sd-header.ds-header.navbar #sdHeaderSearch.ds-search .ds-search__option {
        min-height: 44px;
        padding: 10px 8px;
        gap: 8px;
        font-size: 14px;
        line-height: 1.5;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    html.ds-theme body .sd-header.ds-header.navbar #sdHeaderSearch.ds-search .ds-search__option span,
    html.ds-theme body .sd-header.ds-header.navbar #sdHeaderSearch.ds-search .ds-search__panel small {
        font-size: 12px;
        line-height: 1.5;
    }

    html.ds-theme body .sd-header.ds-header.navbar #sdHeaderSearch.ds-search .ds-search__status,
    html.ds-theme body .sd-header.ds-header.navbar #sdHeaderSearch.ds-search .ds-search__all {
        padding: 10px 8px;
        margin: 0;
        font-size: 14px;
        line-height: 1.6;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    html.ds-theme body.is-header-overlay-open {
        overscroll-behavior: none;
    }

    html.ds-theme body.sd-home-panels .ds-mobile-bottom-nav span {
        font-size: 12px;
        line-height: 1.4;
        white-space: nowrap;
    }

    html.ds-theme body .sd-header.ds-header.navbar a:focus-visible,
    html.ds-theme body .sd-header.ds-header.navbar button:focus-visible,
    html.ds-theme body .sd-header.ds-header.navbar input:focus-visible {
        outline: 3px solid #94b7fa;
        outline-offset: 2px;
    }
}

@media (max-width: 1099px) and (prefers-reduced-motion: reduce) {
    html.ds-theme body .sd-header.ds-header.navbar.is-nav-mounted .ds-nav,
    html.ds-theme body .sd-header.ds-header.navbar > .ds-header-backdrop {
        transition: none;
    }
}

