/* 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 {
    display: flex;
    flex-direction: column;
    width: min(760px, 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;
}
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: 64px;
    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: 12px;
    max-width: 100%;
    min-height: 48px;
    color: #0a2858 !important;
    font-size: 34px;
    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 36px;
    width: 36px;
    height: 44px;
    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: 20px;
    width: 100%;
    max-width: 320px;
    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 {
        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 {
        gap: 48px;
        padding: 16px 0;
    }
    html.ds-theme body.sd-entry-standalone .sd-entry-brand {
        gap: 10px;
        font-size: 30px;
    }
    html.ds-theme body.sd-entry-standalone .sd-entry-brand__mark {
        flex-basis: 30px;
        width: 30px;
        height: 36px;
    }
}


/* Login/signup introduction; onboarding screens retain their own layout. */
html.ds-theme body.sd-entry-standalone .sd-entry-page:not(.is-details) .sd-entry-content {
    gap: 32px;
}
html.ds-theme body.sd-entry-standalone .sd-entry-page:not(.is-details) .sd-entry-brand {
    gap: 10px;
    font-size: 30px;
}
html.ds-theme body.sd-entry-standalone .sd-entry-page:not(.is-details) .sd-entry-brand__mark {
    flex-basis: 30px;
    width: 30px;
    height: 36px;
}
html.ds-theme body.sd-entry-standalone .sd-entry-page:not(.is-details) .sd-entry-form {
    max-width: 360px;
    gap: 20px;
}
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;
}
