/*
 * Planner quote face.
 *
 * Keep the supplied TTF intact: its embedded metadata requires permission
 * before modification, so this project does not subset or re-encode it.
 * Browsers fetch the file only on pages that use the family.
 */
@font-face {
    font-family: 'WMRenaissanceSecret';
    src: url("../fonts/OG 르네상스 비밀.2fe39975121a.ttf") format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.wm-planner-quote-font {
    font-family: 'WMRenaissanceSecret', 'NanumMyeongjo', Batang, serif;
    font-weight: 400;
    font-synthesis: none;
    color: #fff;
    opacity: 1;
    visibility: visible;
}

.wm-planner-quote-author {
    color: rgba(255, 255, 255, 0.72);
    opacity: 1;
    visibility: visible;
}

:root {
    --wm-theme-ink: #2f2a68;
    --wm-theme-muted: #667085;
    --wm-theme-line: #e6e9f3;
    --wm-theme-surface: #ffffff;
    --wm-theme-soft: #f6f7fb;
    --wm-theme-primary: #6d4aff;
    --wm-theme-primary-rgb: 109, 74, 255;
    --wm-theme-primary-dark: #4d3d99;
    --wm-theme-primary-gradient: linear-gradient(135deg, var(--wm-theme-primary), var(--wm-theme-primary-dark));
    --wm-theme-primary-gradient-hover: linear-gradient(135deg, #5f3fff, var(--wm-theme-primary-dark));
    --wm-theme-primary-shadow: 0 14px 28px rgba(109, 74, 255, 0.24);
    --wm-theme-success: #087b62;
    --wm-theme-success-soft: #e9fbf5;
    --wm-theme-danger: #e5484d;
    --wm-theme-danger-dark: #b42329;
    --wm-theme-amber: #f59e0b;
    --wm-theme-accent-blue: #5e8fff;
    --wm-theme-accent-cyan: paleturquoise;
    --wm-theme-accent-cyan-rgb: 95, 200, 255;
    --wm-theme-connector-line: rgba(109, 74, 255, 0.36);
    --wm-theme-progress-gradient: linear-gradient(90deg, var(--wm-theme-primary-dark), var(--wm-theme-primary));

    --wm-debug-outline: #d97706;

    --wm-ink: var(--wm-theme-ink);
    --wm-muted: var(--wm-theme-muted);
    --wm-line: var(--wm-theme-line);
    --wm-surface: var(--wm-theme-surface);
    --wm-soft: var(--wm-theme-soft);
    --wm-primary: var(--wm-theme-primary);
    --wm-primary-dark: var(--wm-theme-primary-dark);
    --wm-primary-gradient: var(--wm-theme-primary-gradient);
    --wm-primary-gradient-hover: var(--wm-theme-primary-gradient-hover);
    --wm-danger: var(--wm-theme-danger);

    --ink: var(--wm-theme-ink);
    --muted: var(--wm-theme-muted);
    --line: var(--wm-theme-line);
    --surface: var(--wm-theme-surface);
    --soft: var(--wm-theme-soft);
    --primary: var(--wm-theme-primary);
    --primary-dark: var(--wm-theme-primary-dark);
    --danger: var(--wm-theme-danger);
}

/*
 * Local-only UI contract.
 *
 * Render either the class or the data attribute only when DEBUG is enabled.
 * The boundary deliberately uses outline instead of border, background,
 * shadow, or pseudo-elements so existing component layout and visuals remain
 * untouched.
 */
.wm-debug-only,
[data-wm-debug-only] {
    outline: 2px dashed var(--wm-debug-outline, #d97706);
    outline-offset: 3px;
}

.wm-debug-only--compact {
    outline-offset: 1px;
}

.wm-debug-only--surface {
    outline-offset: -3px;
}

.wm-debug-only--page {
    outline-offset: -4px;
}

/* Fixed and edge-aligned tools keep their boundary inside the viewport. */
.wm-debug-only--tool {
    outline-offset: -3px;
}

.wm-primary-gradient {
    background-color: var(--wm-theme-primary) !important;
    background-image: var(--wm-theme-primary-gradient) !important;
}

.wm-primary-gradient-hover:hover,
.wm-primary-gradient-hover:focus-visible {
    background-color: var(--wm-theme-primary) !important;
    background-image: var(--wm-theme-primary-gradient-hover) !important;
}

.wm-progress-gradient {
    background-color: var(--wm-theme-primary-dark) !important;
    background-image: var(--wm-theme-progress-gradient) !important;
}

.wm-report-achievement .wm-progress-gradient {
    background-color: #9b8cff !important;
    background-image: linear-gradient(90deg, #aeb8ff 0%, #8f74ff 48%, #76f7ee 100%) !important;
    box-shadow: 0 0 14px rgba(118, 247, 238, 0.28), 0 0 18px rgba(143, 116, 255, 0.24);
}

.wm-report-surface {
    background-color: rgba(6, 8, 20, 0.3) !important;
}

.bg-\[linear-gradient\(135deg\,\#6d4aff\,\#5e8fff\)\] {
    background-color: var(--wm-theme-primary) !important;
    background-image: var(--wm-theme-primary-gradient) !important;
}

.bg-\[linear-gradient\(90deg\,\#6d4aff\,paleturquoise\)\] {
    background-image: var(--wm-theme-progress-gradient) !important;
}

.bg-\[linear-gradient\(90deg\,darkslateblue\,\#6d3aff\)\] {
    background-color: var(--wm-theme-primary-dark) !important;
    background-image: var(--wm-theme-progress-gradient) !important;
}

.text-\[\#6d4aff\],
.hover\:text-\[\#6d4aff\]:hover,
.group:hover .group-hover\:text-\[\#6d4aff\] {
    color: var(--wm-theme-primary) !important;
}

.focus-visible\:ring-\[\#6d4aff\]:focus-visible {
    --tw-ring-color: var(--wm-theme-primary) !important;
}

.bg-\[\#6d4aff\]\/25 {
    background-color: rgba(var(--wm-theme-primary-rgb), 0.25) !important;
}

html.wm-brand-notice-open,
body.wm-brand-notice-open {
    overflow: hidden;
}

.wm-brand-notice {
    position: fixed;
    z-index: 120;
    inset: 0;
    display: flex;
    align-items: center;
    align-items: safe center;
    justify-content: center;
    box-sizing: border-box;
    padding: 20px;
    overflow: auto;
    background: rgba(18, 20, 38, 0.48);
    backdrop-filter: blur(10px);
    text-align: center;
}

.wm-brand-notice[hidden] {
    display: none;
}

.wm-brand-notice__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(460px, calc(100vw - 40px));
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(109, 74, 255, 0.18);
    border-radius: 26px;
    background: var(--wm-theme-surface);
    padding: 24px 26px 26px;
    color: var(--wm-theme-ink);
    box-shadow: 0 30px 80px rgba(31, 35, 65, 0.26);
    font-family: Pretendard, Apple SD Gothic Neo, Noto Sans KR, sans-serif;
}

.wm-brand-notice__dialog::before {
    content: '';
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #6d4aff 0%, #7768dc 48%, #53bdb5 100%);
}

.wm-brand-notice__visual {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 116px;
    overflow: hidden;
    border-radius: 20px;
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.9) 0 5px, transparent 6px),
        radial-gradient(circle at 84% 28%, rgba(255, 255, 255, 0.74) 0 8px, transparent 9px),
        linear-gradient(135deg, rgba(109, 74, 255, 0.12), rgba(83, 189, 181, 0.16));
}

.wm-brand-notice__whale {
    position: relative;
    z-index: 2;
    width: 100px;
    height: 76px;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(77, 61, 153, 0.16));
    animation: wm-brand-notice-float 3.2s ease-in-out infinite;
}

.wm-brand-notice__bubble {
    position: absolute;
    z-index: 1;
    border: 2px solid rgba(109, 74, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
}

.wm-brand-notice__bubble--one {
    top: 24px;
    left: 21%;
    width: 13px;
    height: 13px;
}

.wm-brand-notice__bubble--two {
    top: 42px;
    left: 26%;
    width: 7px;
    height: 7px;
}

.wm-brand-notice__wave {
    position: absolute;
    right: -7%;
    bottom: 17px;
    left: -7%;
    height: 24px;
    border-top: 2px solid rgba(83, 189, 181, 0.28);
    border-radius: 50%;
}

.wm-brand-notice__wave--two {
    right: -13%;
    bottom: 5px;
    left: -13%;
    border-top-color: rgba(109, 74, 255, 0.18);
}

.wm-brand-notice__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    margin-top: 20px;
    border: 1px solid rgba(109, 74, 255, 0.18);
    border-radius: 9px;
    background: rgba(109, 74, 255, 0.09);
    color: var(--wm-theme-primary-dark);
    padding: 3px 11px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.wm-brand-notice__title {
    max-width: 100%;
    margin: 13px 0 0;
    color: var(--wm-theme-ink);
    font-size: clamp(21px, 2vw, 25px);
    font-weight: 800;
    line-height: 1.42;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.wm-brand-notice__description,
#social-disconnect-modal[data-social-disconnect-state="disconnect"] .wm-brand-notice__context {
    max-width: 100%;
    margin: 7px 0 0;
    color: var(--wm-theme-muted);
    font-size: clamp(14px, 1.3vw, 16px);
    font-weight: 500;
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.wm-brand-notice__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 260px;
    margin-top: 22px;
}

.wm-brand-notice__actions--split {
    max-width: 410px;
    gap: 12px;
}

.wm-brand-notice__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    box-sizing: border-box;
    border: 0;
    border-radius: 999px;
    background: var(--wm-theme-primary-gradient);
    color: #ffffff;
    padding: 10px 28px;
    cursor: pointer;
    font: inherit;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-shadow: var(--wm-theme-primary-shadow);
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

a.wm-brand-notice__button {
    text-decoration: none;
}

.wm-brand-notice__button--secondary {
    border: 1px solid rgba(109, 74, 255, 0.2);
    background: #ffffff;
    color: var(--wm-theme-primary-dark);
    box-shadow: none;
}

.wm-brand-notice__button.wm-brand-notice__button--secondary:hover,
.wm-brand-notice__button.wm-brand-notice__button--secondary:focus-visible {
    background: rgba(109, 74, 255, 0.07);
    color: var(--wm-theme-primary-dark);
    box-shadow: none;
}

.wm-brand-notice__button--danger {
    border: 1px solid rgba(194, 32, 38, 0.24);
    background: #fff8f8;
    color: var(--wm-theme-danger);
    box-shadow: none;
}

.wm-brand-notice__button.wm-brand-notice__button--danger:hover,
.wm-brand-notice__button.wm-brand-notice__button--danger:focus-visible {
    background: #fff0f0;
    color: var(--wm-theme-danger);
    box-shadow: 0 14px 30px rgba(194, 32, 38, 0.12);
}

.wm-brand-notice__button:disabled,
.wm-brand-notice__button:disabled:hover,
.wm-brand-notice__button:disabled:focus-visible {
    transform: none;
    border-color: rgba(102, 112, 133, 0.15);
    background: #f3f4f8;
    color: rgba(102, 112, 133, 0.54);
    cursor: not-allowed;
    outline: none;
    box-shadow: none;
}

.wm-brand-notice__form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.wm-brand-notice__prompt {
    margin: 16px 0 0;
    color: var(--wm-theme-muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    word-break: keep-all;
}

.wm-brand-notice__input {
    width: min(320px, 100%);
    min-height: 52px;
    box-sizing: border-box;
    margin-top: 10px;
    border: 1px solid var(--wm-theme-line);
    border-radius: 14px;
    background: #ffffff;
    color: var(--wm-theme-ink);
    padding: 10px 16px;
    font: inherit;
    font-size: 17px;
    font-weight: 800;
    text-align: center;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.wm-brand-notice__input:focus {
    border-color: rgba(109, 74, 255, 0.52);
    box-shadow: 0 0 0 4px rgba(109, 74, 255, 0.12);
}

.wm-brand-notice__input::placeholder {
    color: rgba(102, 112, 133, 0.48);
}

.wm-brand-notice__context {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    margin: 13px 0 0;
    color: var(--wm-theme-muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.wm-brand-notice--page {
    position: relative;
    z-index: 1;
    inset: auto;
    min-height: calc(100vh - 108px);
    padding: 24px 0;
    overflow: visible;
    background: transparent;
    backdrop-filter: none;
}

.wm-brand-notice--page .wm-brand-notice__dialog {
    width: min(520px, calc(100vw - 40px));
}

.wm-brand-notice__button:hover,
.wm-brand-notice__button:focus-visible {
    transform: translateY(-1px);
    background: var(--wm-theme-primary-gradient-hover);
    outline: none;
    box-shadow: 0 20px 38px rgba(109, 74, 255, 0.3);
}

.wm-brand-notice__button:focus-visible {
    outline: 3px solid var(--wm-theme-primary);
    outline-offset: 3px;
    box-shadow:
        0 0 0 4px rgba(109, 74, 255, 0.18),
        0 20px 38px rgba(109, 74, 255, 0.3);
}

.wm-brand-notice__button:active {
    transform: translateY(0);
}

.wm-brand-notice[data-copy-layout="single-line"] .wm-brand-notice__badge,
.wm-brand-notice[data-copy-layout="single-line"] .wm-brand-notice__button {
    white-space: nowrap;
}

@keyframes wm-brand-notice-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@media (max-width: 520px) {
    .wm-brand-notice {
        padding: 14px;
    }

    .wm-brand-notice__dialog {
        width: min(390px, calc(100vw - 28px));
        border-radius: 22px;
        padding: 18px 16px 22px;
    }

    .wm-brand-notice__visual {
        height: 102px;
        border-radius: 17px;
    }

    .wm-brand-notice__whale {
        width: 88px;
        height: 66px;
    }

    .wm-brand-notice__badge {
        margin-top: 17px;
    }

    .wm-brand-notice__title {
        font-size: 20px;
    }

    .wm-brand-notice__actions {
        max-width: none;
        margin-top: 19px;
    }

    .wm-brand-notice__actions--split {
        flex-direction: column;
    }

    .wm-brand-notice--page {
        min-height: calc(100vh - 64px);
        padding: 10px 0;
    }

    .wm-brand-notice--page .wm-brand-notice__dialog {
        width: min(390px, calc(100vw - 28px));
    }
}

@media (max-width: 359px) {
    .wm-brand-notice__title {
        font-size: 19px;
        letter-spacing: -0.02em;
    }

    .wm-brand-notice__description {
        font-size: 14px;
        letter-spacing: -0.02em;
    }
}

@media (max-height: 520px) and (orientation: landscape) {
    .wm-brand-notice {
        align-items: flex-start;
    }

    .wm-brand-notice__dialog {
        margin: auto;
    }

    .wm-brand-notice__visual {
        height: 78px;
    }

    .wm-brand-notice__whale {
        width: 72px;
        height: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wm-brand-notice__whale {
        animation: none;
    }
}

@media (max-width: 639px) {
    .wm-debug-only--tool {
        outline-offset: -2px;
    }
}

@media (forced-colors: active) {
    .wm-debug-only,
    [data-wm-debug-only] {
        outline-color: Highlight;
    }

}
