@font-face {
    font-family: "Pretendard Variable";
    src: url("/assets/fonts/PretendardVariable.woff2") format("woff2-variations");
    font-weight: 45 920;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
    --font-sans: "Pretendard Variable", "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    --white: #ffffff;
    --surface-soft: #f8fafc;
    --surface-blue: #f2f7ff;
    --text-strong: #172033;
    --text: #2f3a4e;
    --text-muted: #6b7689;
    --text-subtle: #98a1b1;
    --border: #dde3eb;
    --border-strong: #cbd4df;
    --blue: #1268e8;
    --blue-deep: #0c53bc;
    --blue-soft: #eaf3ff;
    --coral: #ef5a42;
    --coral-soft: #fff0ed;
    --green: #1d9b5b;
    --green-soft: #e9f7ef;
    --amber: #ba7410;
    --amber-soft: #fff6df;
    --shadow-sm: 0 1px 2px rgb(15 23 42 / 5%);
    --shadow-md: 0 14px 38px rgb(15 23 42 / 14%);
    --radius-sm: 6px;
    --radius-md: 9px;
    --radius-lg: 14px;
    --header-height: 64px;
    --focus: 0 0 0 3px rgb(18 104 232 / 22%);
}

/* Auth v2: mobile-first layout with a bordered single-card desktop composition. */
.auth-page.auth-page-login-v2,
.auth-page.auth-page-signup-v2 {
    min-height: 100vh;
    background: #fff;
    color: var(--kws-public-color-text-strong, #111827);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.auth-page-login-v2 .auth-card-logo,
.auth-page-signup-v2 .auth-card-logo {
    display: none;
}

.signup-page-main {
    width: min(var(--kws-public-container-form, 520px), calc(100% - (var(--kws-public-page-gutter, 24px) * 2)));
    margin: 0 auto;
    padding: 58px 0 64px;
}

/* The page intro is centred at every width; the eyebrow is a small step label above the title. */
.signup-intro {
    margin-bottom: 38px;
    text-align: center;
}

.signup-eyebrow {
    margin: 0 0 8px;
    color: var(--kws-public-color-action, #1264ed);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.4;
}

.signup-intro h1 {
    margin: 0;
    color: var(--kws-public-color-text-strong, #080d16);
    font-size: var(--kws-public-type-form-title-size, 28px);
    font-weight: var(--kws-public-type-form-title-weight, 800);
    letter-spacing: -0.045em;
    line-height: var(--kws-public-type-form-title-line, 1.35);
    word-break: keep-all;
}

.signup-intro h1 em {
    color: var(--kws-public-color-action, #1264ed);
    font-style: normal;
}

.signup-intro > p:last-child {
    margin: 14px 0 0;
    color: #58677d;
    font-size: 16px;
    letter-spacing: -0.035em;
    line-height: 1.6;
}

.signup-alert {
    margin: -24px 0 28px;
}

.signup-policy-gate {
    display: grid;
    gap: 4px;
    margin-top: -8px;
}

.signup-policy-gate strong {
    color: #182234;
}

.signup-policy-gate span {
    line-height: 1.6;
}

.signup-form-section {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.signup-form {
    display: grid;
    gap: 16px;
}

.auth-field-group {
    display: contents;
}

.auth-field-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.signup-field {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: var(--kws-public-control-lg, 54px);
    padding: 0 18px;
    border: 1px solid #d7dee8;
    border-radius: var(--kws-public-radius-control, 12px);
    background: #fff;
    color: #75839a;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.signup-field:focus-within {
    border-color: #9aa6b5;
    box-shadow: none;
}

.signup-field > i {
    flex: 0 0 auto;
    margin-right: 12px;
    font-size: 21px;
    line-height: 1;
}

.signup-field input:not([type="checkbox"]) {
    min-width: 0;
    flex: 1 1 auto;
    height: calc(var(--kws-public-control-lg, 54px) - 2px);
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111827;
    font: inherit;
    font-size: 16px;
    letter-spacing: -0.03em;
}

.signup-field input::placeholder {
    color: #718098;
    opacity: 1;
}

.auth-page-login-v2 .signup-field input:focus-visible,
.auth-page-signup-v2 .signup-field input:focus-visible {
    outline: none;
    box-shadow: none;
}

.signup-field input:-webkit-autofill,
.signup-field input:-webkit-autofill:hover,
.signup-field input:-webkit-autofill:focus,
.signup-field input:-webkit-autofill:active {
    -webkit-text-fill-color: #111827;
    caret-color: #111827;
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    box-shadow: 0 0 0 1000px #fff inset;
}

.signup-field input:autofill {
    color: #111827;
    background: #fff;
    box-shadow: 0 0 0 1000px #fff inset;
}

.signup-password-toggle {
    flex: 0 0 auto;
    border: 0;
    cursor: pointer;
}

.signup-password-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    color: #718098;
}

.signup-password-toggle i {
    font-size: 20px;
}

.signup-field-note {
    flex: 0 0 auto;
    color: #718098;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.signup-agreements {
    display: grid;
    gap: 14px;
    padding-top: 14px;
}

.signup-agreement-row,
.signup-agreement-check {
    display: flex;
    align-items: center;
}

.signup-agreement-row {
    justify-content: space-between;
    gap: 18px;
}

.signup-agreement-check {
    min-width: 0;
    gap: 10px;
    color: #182234;
    font-size: 14px;
    letter-spacing: -0.035em;
}

.signup-agreement-check input {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    margin: 0;
    accent-color: var(--kws-public-color-action, #1264ed);
}

.signup-agreement-row > button {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 2px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: #66748b;
    font-size: 14px;
    cursor: pointer;
}

.signup-agreement-row > button i {
    font-size: 20px;
}

.signup-agreement-check b { color: var(--kws-public-color-action, #1769f3); font-size: .92em; }
/* Signup agreements sit in their own box, set apart from the fields: "agree to all" heads it on a tinted bar. */
.signup-form .signup-agreements { gap: 12px; margin-top: 10px; padding: 0 18px 16px; border: 1px solid #d7dee8; border-radius: var(--kws-public-radius-control, 12px); background: #fff; overflow: hidden; }
.signup-form .signup-agreement-all { margin: 0 -18px 2px; padding: 14px 18px; border-bottom: 1px solid #e3e8ef; background: #f7f9fc; }
.signup-agreement-all .signup-agreement-check { color: #111827; font-size: 15px; font-weight: 800; }
.signup-form .signup-agreement-row > button { padding-block: 0; }
.signup-agreement-row > a { display: flex; flex: 0 0 auto; align-items: center; gap: 2px; color: #66748b; font-size: 14px; text-decoration: none; white-space: nowrap; }
.signup-agreement-row > a i { font-size: 20px; }
.signup-agreement-row > a:hover { color: var(--kws-public-color-action, #1264ed); }
.activate-note { margin: 0; text-align: center; }

/* Signup live field hints (ID format, password strength, confirmation, Caps Lock). */
.signup-hint { margin: -6px 0 0; color: #77818f; font-size: 12px; line-height: 1.55; }
.signup-hint:empty { display: none; }
.signup-hint[data-state="ok"] { color: #13804b; }
.signup-hint[data-state="warning"] { color: #a35a00; }
.signup-hint[data-state="error"] { color: #d93036; }
.signup-strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: -4px; }
.signup-strength span { height: 4px; border-radius: 999px; background: #e3e8ef; }
.signup-strength[data-level="1"] span:nth-child(-n+1) { background: #e5484d; }
.signup-strength[data-level="2"] span:nth-child(-n+2) { background: #f0a020; }
.signup-strength[data-level="3"] span:nth-child(-n+3) { background: #2f9e62; }
.signup-strength[data-level="4"] span { background: #13804b; }
.signup-form [aria-invalid="true"] { color: #d93036; }
.signup-form .signup-field:has([aria-invalid="true"]) { border-color: #e5484d; }
.signup-agreement-optional { padding-top: 12px; border-top: 1px dashed #e3e8ef; }
.signup-agreement-help { margin: -6px 0 2px 31px; color: #77818f; font-size: 11px; line-height: 1.55; }
.signup-field-help { margin: -6px 0 0; color: #77818f; font-size: 12px; line-height: 1.55; }
.signup-policy-full-link { display: inline-flex; align-items: center; justify-content: center; min-height: var(--kws-public-control-sm, 44px); padding: 0 16px; border: 1px solid #cfd8e6; border-radius: var(--kws-public-radius-control, 12px); color: var(--kws-public-color-action, #145dce); font-size: 13px; font-weight: 800; text-decoration: none; }
.signup-policy-full-link:hover { border-color: #8db4ef; background: #f4f8ff; }

.signup-submit {
    width: 100%;
    min-height: var(--kws-public-control-lg, 54px);
    margin-top: 4px;
    border: 0;
    border-radius: var(--kws-public-radius-control, 12px);
    background: var(--kws-public-color-action, #1264ed);
    color: #fff;
    font-size: 18px;
    font-weight: var(--kws-public-type-control-weight, 700);
    letter-spacing: -0.035em;
    cursor: pointer;
    box-shadow: 0 10px 22px rgb(37 99 235 / 18%);
}

.signup-submit:hover,
.signup-submit:focus-visible {
    background: var(--kws-public-color-action-hover, #0d56cc);
}

.signup-submit:disabled {
    background: #d8dee8;
    color: #66748b;
    cursor: not-allowed;
    box-shadow: none;
}

.signup-login-link {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid #e1e6ed;
    color: #59677c;
    font-size: 15px;
    text-align: center;
    letter-spacing: -0.035em;
}

.signup-login-link a {
    margin-left: 5px;
    color: var(--kws-public-color-action, #1264ed);
    font-weight: 800;
}

.auth-login-main {
    padding-block: 58px;
}

.auth-login-form {
    gap: 16px;
}

/* Shared login and signup parts: a form error shown inside the form, the switch to the other page,
   and the legal links under the card. On login both fields also turn red until edited. */
.auth-login-form.has-error .signup-field {
    border-color: #e5484d;
}

.auth-login-form.has-error .signup-field > i {
    color: #d93036;
}

.auth-form-error {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    margin: 2px 0 0;
    color: #d93036;
    font-size: 14px;
    letter-spacing: -0.025em;
    line-height: 1.5;
}

.auth-form-error > i {
    flex: 0 0 auto;
    font-size: 16px;
    line-height: 1.3;
}

.auth-alt-action {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.auth-alt-divider {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 0;
    color: #6b778a;
    font-size: 14px;
    letter-spacing: -0.025em;
}

.auth-alt-divider::before,
.auth-alt-divider::after {
    flex: 1;
    height: 1px;
    background: #e1e6ed;
    content: "";
}

.auth-alt-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--kws-public-control-lg, 54px);
    border: 1px solid #c9d3e1;
    border-radius: var(--kws-public-radius-control, 12px);
    background: #fff;
    color: #1d2939;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.035em;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease;
}

.auth-alt-button:hover,
.auth-alt-button:focus-visible {
    border-color: var(--kws-public-color-action, #1264ed);
    background: #f4f8ff;
    color: var(--kws-public-color-action, #1264ed);
}

.auth-page-footer {
    display: grid;
    gap: 6px;
    justify-items: center;
    padding: 0 20px 40px;
    color: #8a94a3;
    font-size: 12px;
}

.auth-page-footer nav {
    display: flex;
    gap: 16px;
}

.auth-page-footer a {
    color: #6b778a;
    text-decoration: none;
}

.auth-page-footer a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-page-footer strong {
    font-weight: 700;
}

.auth-page-footer p {
    margin: 0;
}

.auth-flow-demo {
    margin: -12px 0 26px;
}

.auth-flow-note {
    margin: 18px 0 0;
    color: #5f6b7d;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.signup-policy-dialog {
    width: min(540px, calc(100% - 36px));
    max-height: min(680px, calc(100vh - 48px));
    padding: 0;
    border: 1px solid #dce3ec;
    border-radius: 16px;
    background: #fff;
    color: #182234;
    box-shadow: 0 24px 70px rgb(23 35 58 / 22%);
}

.signup-policy-dialog::backdrop {
    background: rgb(18 27 43 / 48%);
}

.signup-policy-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid #e4e9f0;
}

.signup-policy-dialog-head h2 {
    margin: 0;
    font-size: 22px;
}

.signup-policy-dialog-head button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #334158;
    cursor: pointer;
}

.signup-policy-dialog-head i {
    font-size: 26px;
}

.signup-policy-dialog-body {
    display: grid;
    gap: 16px;
    padding: 24px;
    overflow: auto;
    color: #4f5e73;
    font-size: 15px;
    line-height: 1.75;
}

.signup-policy-dialog-body p {
    margin: 0;
}

.signup-policy-dialog-body strong {
    display: block;
    margin-bottom: 3px;
    color: #182234;
}

.signup-policy-note {
    padding: 12px 14px;
    border-radius: 8px;
    background: #f5f7fa;
    color: #6c788b;
}

@media (min-width: 1024px) {
    .auth-page.auth-page-login-v2,
.auth-page.auth-page-signup-v2 {
        background: #f5f7fa;
    }

    .signup-page-main {
        display: block;
        width: min(560px, calc(100% - (var(--kws-public-page-gutter, 32px) * 2)));
        margin: 48px auto;
        padding: 56px 60px 60px;
        border: 1px solid #d9e1eb;
        border-radius: 20px;
        background: #fff;
        box-shadow: none;
    }

    /* Signup uses the login card width: one field per row reads top to bottom. */
    .auth-page-signup-v2 .signup-page-main {
        width: min(var(--kws-public-container-form, 520px), calc(100% - (var(--kws-public-page-gutter, 32px) * 2)));
        padding: 56px 58px;
    }

    .auth-page-login-v2 {
        display: grid;
        padding: 40px 32px;
        place-items: center;
        align-content: center;
    }

    .auth-page.auth-page-login-v2 .signup-page-main.auth-login-main {
        margin: 40px auto 0;
    }

    .auth-page-login-v2 .auth-page-footer {
        padding: 20px 0 32px;
    }

    .auth-page.auth-page-signup-v2 .signup-page-main {
        margin-bottom: 0;
    }

    .auth-page-signup-v2 .auth-page-footer {
        padding: 20px 0 48px;
    }

    .auth-page-login-v2 .signup-page-main {
        width: min(var(--kws-public-container-form, 520px), 100%);
        min-height: 0;
        margin: 0;
        padding: 56px 58px;
    }

    .auth-page-login-v2 .auth-card-logo,
.auth-page-signup-v2 .auth-card-logo {
        display: block;
        width: 194px;
        margin: 0 auto 30px;
        line-height: 0;
    }

    .auth-page-login-v2 .auth-card-logo img,
.auth-page-signup-v2 .auth-card-logo img {
        display: block;
        width: 100%;
        height: auto;
    }

    .signup-intro {
        min-height: 0;
        margin: 0 0 34px;
        padding: 0;
        border: 0;
        background: transparent;
        text-align: center;
    }

    .signup-eyebrow {
        display: none;
    }

    .signup-intro h1 {
        font-size: var(--kws-public-type-form-title-size, 28px);
        line-height: var(--kws-public-type-form-title-line, 1.35);
    }

    .signup-intro h1 em {
        color: inherit;
    }

    .signup-intro > p:last-child {
        margin-top: 12px;
        font-size: 14px;
    }

    .signup-form-section {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .signup-form {
        gap: 18px;
    }

    .auth-field-group {
        display: grid;
        gap: 9px;
    }

    .auth-field-label {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: normal;
        color: #25324a;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: -0.025em;
    }

    .signup-submit {
        box-shadow: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {

    .signup-page-main {
        width: min(var(--kws-public-container-form, 520px), calc(100% - (var(--kws-public-page-gutter, 24px) * 2)));
        padding: 52px 0 60px;
    }

    .signup-intro {
        margin-bottom: 38px;
    }

    .signup-intro h1 {
        font-size: var(--kws-public-type-form-title-size, 28px);
    }

    .signup-intro > p:last-child {
        margin-top: 14px;
        font-size: 16px;
    }

    .signup-form {
        gap: 16px;
    }

    .signup-field {
        min-height: var(--kws-public-control-lg, 54px);
        padding: 0 18px;
        border-radius: var(--kws-public-radius-control, 12px);
    }

    .signup-field > i {
        margin-right: 12px;
        font-size: 21px;
    }

    .signup-field input:not([type="checkbox"]) {
        height: calc(var(--kws-public-control-lg, 54px) - 2px);
        font-size: 16px;
    }

    .signup-agreement-check {
        font-size: 14px;
    }

    .signup-agreement-row > button {
        font-size: 14px;
    }

    .signup-submit {
        min-height: var(--kws-public-control-lg, 54px);
        font-size: 18px;
    }

    .signup-login-link {
        margin-top: 34px;
        padding-top: 22px;
        font-size: 15px;
    }
}

@media (max-width: 767px) {

    .signup-page-main {
        width: calc(100% - (var(--kws-public-page-gutter, 20px) * 2));
        padding: 44px 0 52px;
    }

    .signup-intro {
        margin-bottom: 34px;
    }

    .signup-intro h1 {
        font-size: var(--kws-public-type-form-title-size, 25px);
        line-height: var(--kws-public-type-form-title-line, 1.35);
    }

    .signup-intro > p:last-child {
        margin-top: 12px;
        font-size: 16px;
        line-height: 1.6;
    }

    .signup-form {
        gap: 14px;
    }

    .signup-field {
        min-height: var(--kws-public-control-lg, 54px);
        padding: 0 16px;
        border-radius: var(--kws-public-radius-control, 12px);
    }

    .signup-field > i {
        margin-right: 12px;
        font-size: 20px;
    }

    .signup-field input:not([type="checkbox"]) {
        height: calc(var(--kws-public-control-lg, 54px) - 2px);
        font-size: 17px;
    }

    .signup-password-toggle {
        width: 44px;
        height: 44px;
    }

    .signup-password-toggle i {
        font-size: 20px;
    }

    .signup-agreements {
        gap: 14px;
        padding-top: 14px;
    }

    .signup-agreement-row {
        gap: 10px;
    }

    .signup-agreement-check {
        gap: 10px;
        font-size: 14px;
        line-height: 1.45;
    }

    .signup-agreement-check input {
        width: 22px;
        height: 22px;
    }

    .signup-agreement-row > button {
        font-size: 14px;
    }

    .signup-agreement-row > button i {
        font-size: 20px;
    }

    .signup-submit {
        min-height: var(--kws-public-control-lg, 54px);
        margin-top: 4px;
        border-radius: var(--kws-public-radius-control, 12px);
        font-size: 18px;
    }

    .signup-login-link {
        margin-top: 36px;
        padding-top: 24px;
        font-size: 16px;
    }
}

/* Saved business plan */

/* Customer logo review links */
.logo-review-page {
    min-height: 100vh;
    margin: 0;
    color: #151719;
    background: linear-gradient(180deg, #f7faff 0, #fff 42%);
    font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.logo-review-main {
    width: min(760px, calc(100% - 48px));
    margin: 36px auto 72px;
}

.logo-review-intro {
    margin-bottom: 32px;
    text-align: center;
}

.logo-review-intro > p {
    margin: 0 0 12px;
    color: #1769ea;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
}

.logo-review-intro h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.22;
    letter-spacing: -.045em;
}

.logo-review-intro h1 em {
    color: #1769ea;
    font-style: normal;
}

.logo-review-intro > span {
    display: block;
    margin-top: 16px;
    color: #6b7689;
    font-size: 17px;
}

.logo-review-alert {
    margin-bottom: 18px;
}

.logo-review-artwork {
    display: grid;
    min-height: 390px;
    padding: 48px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #dce5f1;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(27, 61, 112, .1);
}

.logo-review-artwork img {
    display: block;
    width: min(100%, 540px);
    max-height: 310px;
    object-fit: contain;
}

.result-share-artwork {
    min-height: 480px;
    padding: 24px;
}

.result-share-frame {
    width: 100%;
    min-height: 430px;
    border: 0;
    border-radius: 10px;
    background: #fff;
}

.result-share-text {
    width: 100%;
    min-height: 430px;
    margin: 0;
    padding: 28px;
    overflow: auto;
    border-radius: 10px;
    color: #263246;
    background: #f8fafc;
    font: 15px/1.8 "Pretendard", "Noto Sans KR", sans-serif;
    white-space: pre-wrap;
    word-break: break-word;
}

.logo-review-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.logo-review-summary > div {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 17px 20px;
    border: 1px solid #e1e7ef;
    border-radius: 14px;
    background: #fff;
}

.logo-review-summary span {
    color: #748096;
    font-size: 12px;
}

.logo-review-summary strong {
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logo-review-actions {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.logo-review-primary,
.logo-review-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 24px;
    border-radius: 12px;
    font: inherit;
    font-size: 16px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.logo-review-primary {
    border: 1px solid #1769ea;
    color: #fff;
    background: #1769ea;
    box-shadow: 0 10px 24px rgba(23, 105, 234, .2);
}

.logo-review-secondary {
    border: 1px solid #cfd9e7;
    color: #334155;
    background: #fff;
}

.logo-review-primary:hover,
.logo-review-primary:focus-visible {
    background: #0f5bd2;
}

.logo-review-secondary:hover,
.logo-review-secondary:focus-visible {
    border-color: #1769ea;
    color: #1769ea;
}

.logo-review-complete {
    margin-top: 28px;
    padding: 18px;
    border-radius: 12px;
    color: #186a3b;
    background: #eefaf2;
    text-align: center;
    font-weight: 700;
}

.logo-review-note {
    margin: 18px 0 0;
    color: #7b879a;
    font-size: 12px;
    text-align: center;
}

.logo-review-not-found {
    display: grid;
    min-height: 70vh;
    place-content: center;
    justify-items: center;
    text-align: center;
}

.logo-review-not-found > img {
    width: 230px;
    margin-bottom: 42px;
}

.logo-review-not-found h1 {
    margin: 0 0 12px;
    font-size: 32px;
}

.logo-review-not-found p {
    margin: 0 0 28px;
    color: #6b7689;
    line-height: 1.7;
}

.logo-review-not-found .logo-review-primary {
    min-width: 260px;
}

@media (max-width: 640px) {

    .logo-review-main {
        width: min(100% - 32px, 760px);
        margin-top: 28px;
        margin-bottom: 44px;
    }

    .logo-review-intro {
        margin-bottom: 24px;
        text-align: left;
    }

    .logo-review-intro h1 {
        font-size: 34px;
    }

    .logo-review-intro > span {
        font-size: 15px;
    }

    .logo-review-artwork {
        min-height: 300px;
        padding: 28px;
        border-radius: 18px;
    }

    .logo-review-artwork img {
        max-height: 240px;
    }

    .result-share-artwork {
        min-height: 400px;
        padding: 12px;
    }

    .result-share-frame {
        min-height: 376px;
    }

    .result-share-text {
        min-height: 376px;
        padding: 20px;
        font-size: 14px;
    }

    .logo-review-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 360px) {

    .signup-intro h1 {
        font-size: 23px;
    }

    .signup-agreement-check {
        font-size: 13px;
    }
}

/* Completion features: keep the portal airy while exposing the full workflow. */

/* Legal documents */
.legal-page { min-height: 100vh; margin: 0; background: var(--kws-public-color-surface, #f7f8fa); color: var(--kws-public-color-text-strong, #171b21); font-family: var(--kws-public-font-sans, Pretendard, "Noto Sans KR", Arial, sans-serif); }
.legal-policy-links { display: flex; gap: 8px; }
.legal-policy-links a { padding: 10px 12px; border-radius: 8px; color: #56606d; font-size: 13px; font-weight: 700; text-decoration: none; }
.legal-policy-links a[aria-current="page"] { background: var(--kws-public-color-action-soft, #edf3ff); color: var(--kws-public-color-action, #145dce); }
.legal-document { width: min(var(--kws-public-container-content, 960px), calc(100% - (var(--kws-public-page-gutter, 24px) * 2))); margin: 0 auto; padding: 72px 0 80px; }
.legal-heading { padding-bottom: 36px; border-bottom: 2px solid #1d2632; }
.legal-heading > p { margin: 0 0 12px; color: var(--kws-public-color-action, #1769f3); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.legal-heading h1 { margin: 0; font-size: var(--kws-public-type-page-title-size, clamp(36px, 4vw, 48px)); font-weight: var(--kws-public-type-page-title-weight, 800); line-height: var(--kws-public-type-page-title-line, 1.16); letter-spacing: -.045em; }
.legal-heading > div { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: #66717e; font-size: 13px; }
.legal-document section { padding: 38px 0; border-bottom: 1px solid #e0e4e8; }
.legal-document section h2 { margin: 0 0 17px; font-size: 21px; letter-spacing: -.02em; }
.legal-document section p,
.legal-document section li,
.legal-document dd { color: #414b57; font-size: 15px; line-height: 1.82; }
.legal-document section p { margin: 12px 0 0; }
.legal-document section ul { display: grid; gap: 7px; margin: 12px 0 0; padding-left: 22px; }
.legal-document a { color: var(--kws-public-color-action, #145dce); text-underline-offset: 3px; }
.legal-operator-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 22px 0 0; border-top: 1px solid #dce1e6; }
.legal-operator-list > div { display: grid; grid-template-columns: 128px 1fr; gap: 14px; padding: 13px 12px; border-bottom: 1px solid #e5e8eb; }
.legal-operator-list dt { color: #697481; font-size: 13px; font-weight: 700; }
.legal-operator-list dd { margin: 0; }
.legal-table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid #dce1e6; border-radius: 10px; background: #fff; }
.legal-table-wrap table { width: 100%; min-width: 760px; border-collapse: collapse; }
.legal-table-wrap th,
.legal-table-wrap td { padding: 14px 15px; border-right: 1px solid #e5e8eb; border-bottom: 1px solid #e5e8eb; text-align: left; vertical-align: top; font-size: 13px; line-height: 1.7; }
.legal-table-wrap th:last-child,
.legal-table-wrap td:last-child { border-right: 0; }
.legal-table-wrap tr:last-child td { border-bottom: 0; }
.legal-table-wrap th { background: #f4f6f8; color: #303944; font-weight: 800; white-space: nowrap; }
.legal-table-wrap td { color: #4a5562; }
.legal-operation-alert { margin-top: 18px; padding: 16px 18px; border: 1px solid #e5b9b9; border-radius: 9px; background: #fff7f7; color: #8f2f2f; }
.legal-operation-alert strong { font-size: 14px; }
.legal-operation-alert p { margin-top: 5px !important; color: inherit !important; font-size: 13px !important; }
.legal-link-list a { font-weight: 700; }
.legal-document-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 36px; color: #66717e; font-size: 13px; }
.legal-document-footer > a { font-weight: 800; text-decoration: none; }

@media (max-width: 767px) {
    .legal-policy-links a { padding: 9px 7px; font-size: 11px; }
    .legal-document { width: min(calc(100% - (var(--kws-public-page-gutter, 20px) * 2)), var(--kws-public-container-content, 960px)); padding: 48px 0 56px; }
    .legal-heading { padding-bottom: 28px; }
    .legal-document section { padding: 30px 0; }
    .legal-document section h2 { font-size: 19px; }
    .legal-operator-list { grid-template-columns: 1fr; }
    .legal-operator-list > div { grid-template-columns: 105px minmax(0, 1fr); padding-inline: 5px; }
    .legal-operator-list dd { min-width: 0; overflow-wrap: anywhere; }
    .legal-document-footer { align-items: flex-start; flex-direction: column; }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--canvas);
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    color: var(--text);
    background: var(--canvas);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}

.skip-link {
    position: fixed;
    z-index: 2000;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--white);
    background: var(--blue-deep);
    transform: translateY(-140%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    color: var(--white);
    background: var(--blue);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.brand-copy {
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
}

.brand-copy strong {
    font-weight: 700;
    letter-spacing: -0.035em;
}

.brand-copy small {
    font-weight: 500;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.icon-button {
    position: relative;
    width: 40px;
    color: var(--text);
}

.icon-button svg {
    width: 21px;
    height: 21px;
}

.icon-button:hover {
    background: var(--surface-soft);
}

.main-content {
    width: calc(100% - var(--sidebar-width));
    min-height: calc(100vh - var(--header-height));
    margin-left: var(--sidebar-width);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


.primary-button,
.secondary-button,
.danger-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--workspace-control-height, 40px);
    border-radius: var(--radius-sm);
    font-size: var(--workspace-font-label, 13px);
    font-weight: var(--workspace-control-weight, 600);
    cursor: pointer;
    gap: 7px;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.primary-button {
    font-size: var(--workspace-font-control, 13px);
    min-height: var(--workspace-primary-height, 40px);
    padding: 0 17px;
    color: var(--white);
    background: var(--blue);
}

.primary-button:hover {
    background: var(--blue-deep);
    transform: var(--workspace-control-hover-transform, translateY(-1px));
}

.secondary-button {
    padding: 0 16px;
    border: 1px solid var(--workspace-control-border, var(--border-strong));
    color: var(--workspace-control-border, var(--text));
    background: var(--white);
}

.secondary-button:hover {
    border-color: var(--workspace-control-border, #9eabba);
    background: var(--surface-soft);
}

.primary-button svg,
.secondary-button svg {
    width: 16px;
    height: 16px;
}

.summary-strip {
    display: grid;
    margin-bottom: 18px;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.summary-item {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 86px;
    padding: 16px 22px;
    background: transparent;
    cursor: pointer;
    gap: 14px;
    text-align: left;
}

.summary-item + .summary-item {
    border-left: 1px solid var(--border);
}

.summary-item::after {
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-top: 1.5px solid var(--text-subtle);
    border-right: 1.5px solid var(--text-subtle);
    content: "";
    transform: rotate(45deg);
}

.summary-icon {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    place-items: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    color: var(--blue);
}

.summary-icon svg {
    width: 21px;
    height: 21px;
}

.summary-item[data-tone="urgent"] .summary-icon {
    color: var(--coral);
}

.summary-item[data-tone="done"] .summary-icon {
    color: var(--green);
}

.summary-copy {
    display: grid;
    gap: 1px;
}

.summary-label {
    color: var(--text-muted);
    font-size: 12px;
}

.summary-value {
    color: var(--text-strong);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.home-grid {
    display: grid;
    margin-bottom: 18px;
    grid-template-columns: minmax(0, 1.95fr) minmax(300px, .95fr);
    gap: 12px;
}

.lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 12px;
}

.status-tag {
    display: inline-flex;
    width: max-content;
    min-height: 23px;
    align-items: center;
    padding: 0 8px;
    border: 1px solid #bbd7ff;
    border-radius: 999px;
    color: var(--blue-deep);
    background: var(--blue-soft);
    font-size: var(--workspace-font-small, 10px);
    font-weight: 600;
    white-space: nowrap;
}

.status-tag[data-status="고객 확인"],
.status-tag[data-status="확인 필요"],
.status-tag[data-status="수정 요청"] {
    border-color: #ffd1c8;
    color: #c53f2c;
    background: var(--coral-soft);
}

.status-tag[data-status="완료"],
.status-tag[data-status="완성"],
.status-tag[data-status="최종 확정"],
.status-tag[data-status="승인"] {
    border-color: #bde8cf;
    color: #167945;
    background: var(--green-soft);
}

.status-tag[data-status="미완성"],
.status-tag[data-status="초안"],
.status-tag[data-status="접수"] {
    border-color: #ead49d;
    color: #8d5d0b;
    background: var(--amber-soft);
}


.activity-list {
    padding: 10px 18px 12px;
}

.toolbar-spacer {
    margin-left: auto;
}

.data-title {
    color: var(--text-strong);
    font-weight: 600;
}

.profile-completion {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--surface-blue);
    gap: 15px;
}

.completion-ring {
    display: grid;
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: var(--blue-deep);
    background: conic-gradient(var(--blue) var(--completion), #d9e7f8 0);
    font-size: 13px;
    font-weight: 700;
}

.completion-ring::before {
    grid-area: 1 / 1;
    width: 47px;
    height: 47px;
    border-radius: 50%;
    background: var(--white);
    content: "";
}

.completion-ring span {
    z-index: 1;
}

.completion-copy strong {
    display: block;
    color: var(--text-strong);
    font-size: 14px;
}

.completion-copy p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 11px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
}

.info-item {
    min-width: 0;
}

.info-item dt {
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: var(--workspace-font-label, 11px);
}

.info-item dd {
    margin: 0;
    overflow: hidden;
    color: var(--text-strong);
    font-size: var(--workspace-font-body, 13px);
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.missing-list {
    display: grid;
    padding: 14px;
    gap: 8px;
}

.missing-item {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #f0d5b6;
    border-radius: var(--radius-sm);
    color: #835417;
    background: #fffaf0;
    font-size: 12px;
    gap: 9px;
}

.missing-item svg {
    width: 17px;
    height: 17px;
}

.request-empty {
    padding: 28px;
    text-align: center;
}

@keyframes fade-in {
    from { opacity: 0; }
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(10px) scale(.985); }
}

.toast-region {
    position: fixed;
    z-index: 800;
    right: 20px;
    bottom: 20px;
    display: grid;
    width: min(360px, calc(100vw - 40px));
    gap: 8px;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(8px); }
}

.quick-popover {
    position: fixed;
    z-index: 250;
    top: 58px;
    right: 84px;
    width: min(360px, calc(100vw - 28px));
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.quick-popover h2 {
    margin: 0 0 11px;
    color: var(--text-strong);
    font-size: 14px;
}

.mobile-backdrop {
    position: fixed;
    z-index: 60;
    inset: var(--header-height) 0 0;
    background: rgb(15 23 42 / 35%);
}

@media (max-width: 1180px) {
    .brand-copy small {
        display: none;
    }

    .home-grid,
.lower-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 980px) {

    .brand-mark {
        width: 31px;
        height: 31px;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 640px) {

    .brand-copy strong {
        max-width: 105px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


    .summary-strip {
        grid-template-columns: 1fr;
    }

    .summary-item {
        min-height: 66px;
        padding: 11px 15px;
    }

    .summary-item + .summary-item {
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .summary-icon {
        width: 37px;
        height: 37px;
    }

    .summary-value {
        font-size: 18px;
    }

    .lower-grid {
        gap: 12px;
    }

    .toolbar-spacer {
        display: none;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Authentication */
.auth-page {
    color: #16191f;
}

.auth-shell {
    gap: clamp(56px, 6vw, 96px);
}

.auth-shell-compact {
    grid-template-columns: minmax(320px, 560px);
    justify-content: center;
}

.auth-brand {
    min-height: min(640px, calc(100vh - 112px));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px 0 54px;
}

.auth-brand h1 {
    margin: 14px 0 24px;
    font-size: clamp(40px, 4.3vw, 62px);
    line-height: 1.15;
    letter-spacing: -.05em;
}

.auth-brand > div > p:last-child {
    max-width: 560px;
    margin: 0;
    color: #66707c;
    font-size: 17px;
    line-height: 1.8;
}

.auth-eyebrow,
.auth-kicker {
    margin: 0;
    color: #16806d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .13em;
}

.auth-card h1,
.auth-card h2 {
    margin: 8px 0 10px;
    font-size: 32px;
    letter-spacing: -.04em;
}

.auth-card > div:first-child > p:last-child {
    margin: 0 0 28px;
    color: #6b7380;
}

.auth-alert,
.auth-demo,
.admin-message {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 13px;
}

.auth-alert,
.admin-message.error {
    border: 1px solid #f2c5c5;
    background: #fff5f5;
    color: #a23a3a;
}

.auth-demo {
    display: grid;
    gap: 3px;
    border: 1px solid #cbe7e1;
    background: #f2fbf8;
    color: #2f5f57;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-form-grid {
    grid-template-columns: 1fr 1fr;
}

.auth-form label:not(.auth-check),
.admin-form label {
    display: grid;
    gap: 8px;
    color: #353b44;
    font-size: 13px;
    font-weight: 700;
}

.auth-form input:not([type="checkbox"]),
.auth-form select,
.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-inline-form select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d9dee4;
    border-radius: 9px;
    background: #fff;
    padding: 0 14px;
    color: #171a20;
    font: inherit;
}

.auth-form input:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    outline: 3px solid rgba(22, 128, 109, .13);
    border-color: #16806d;
}

.auth-span,
.admin-span {
    grid-column: 1 / -1;
}

.auth-check {
    display: flex;
    gap: 10px;
}

.auth-check input {
    margin-top: 3px;
}

.auth-submit {
    width: 100%;
    justify-content: center;
}

.auth-switch,
.auth-boundary {
    margin: 22px 0 0;
    text-align: center;
    color: #737c88;
    font-size: 13px;
}

.activate-policy-summary { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid #dfe4eb; border-radius: 10px; background: #f8fafc; color: #606b7a; font-size: 12px; line-height: 1.55; }
.activate-policy-summary > strong { color: #293444; font-size: 13px; }
.activate-policy-summary a { color: #145dce; font-weight: 700; text-underline-offset: 2px; }
.auth-check b { color: #1769f3; }
.auth-legal-links { display: flex; justify-content: center; gap: 15px; margin-top: 12px; }
.auth-legal-links a { color: #6f7a8b; font-size: 11px; font-weight: 700; text-underline-offset: 2px; }

/* Admin */


@media (max-width: 980px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1fr);
        max-width: 620px;
        gap: 40px;
        padding: 32px 0 40px;
    }
    .auth-brand {
        min-height: auto;
        display: grid;
        grid-template-columns: 226px minmax(0, 1fr);
        align-items: center;
        gap: 32px;
        padding: 0;
    }
    .auth-brand h1 {
        margin: 10px 0 16px;
        font-size: clamp(30px, 4vw, 36px);
    }
    .auth-brand > div > p:last-child {
        font-size: 15px;
        line-height: 1.7;
    }
    .auth-page .auth-brand .brand-context {
        display: none;
    }
    .auth-card {
        padding: 40px;
    }

}

@media (max-width: 640px) {
    .auth-shell {
        gap: 24px;
    }
    .auth-brand {
        display: block;
    }
    .auth-page .auth-brand .brand-context {
        display: block;
    }
    .auth-page .auth-brand .brand {
        width: 100%;
        min-width: 0;
    }
    .auth-page .auth-brand .brand-logo {
        width: min(226px, calc(100% - 88px));
    }
    .auth-brand > div {
        display: none;
    }
.auth-form-grid,
.admin-form-grid,
.admin-form-row,
.admin-stat-grid,
.admin-dual-grid {
        grid-template-columns: 1fr;
    }
    .auth-span,
.admin-span {
        grid-column: auto;
    }


}

/* -------------------------------------------------------------------------- */
/* Spacious customer-portal direction                                         */
/* -------------------------------------------------------------------------- */

:root {
    --canvas: #ffffff;
    --sidebar-width: 228px;
    --content-max: 1480px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body,
.main-content {
    background: var(--white);
}

.brand {
    min-width: calc(var(--sidebar-width) - 24px);
    gap: 10px;
}

.brand-logo {
    display: block;
    width: 142px;
    height: auto;
    flex: 0 0 auto;
    object-fit: contain;
}

.brand-context {
    color: #535b66;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.auth-brand .brand-logo {
    width: min(226px, 72vw);
}

.invite-logo {
    display: block;
    width: 170px;
    height: auto;
    margin-bottom: 24px;
}

.brand-symbol {
    position: relative;
    display: block;
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
}

.brand-symbol::before,
.brand-symbol::after,
.brand-symbol span {
    position: absolute;
    width: 13px;
    height: 13px;
    border: 3px solid #1d232b;
    border-radius: 3px;
    content: "";
}

.brand-symbol::before {
    top: 2px;
    left: 2px;
}

.brand-symbol::after {
    right: 2px;
    bottom: 2px;
}

.brand-symbol span:first-child {
    top: 2px;
    right: 2px;
    border-left: 0;
}

.brand-symbol span:last-child {
    bottom: 2px;
    left: 2px;
    border-top: 0;
}

.brand-copy strong {
    color: #15191f;
    font-size: 16px;
}

.brand-copy small {
    color: #535b66;
    font-size: 12px;
}

.main-content {
    padding: 54px clamp(42px, 5.2vw, 78px) 0;
}

.welcome-block {
    min-height: 174px;
}

.welcome-block p {
    margin: 0 0 5px;
    color: #4f5660;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.035em;
}

.welcome-block h1 {
    margin: 0;
    color: #151719;
    font-size: clamp(36px, 3.2vw, 46px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.055em;
}

.home-primary > h2,
.quick-work > h2,
.recent-news > h2 {
    margin: 0 0 15px;
    color: #252a31;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.primary-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.primary-home-card {
    position: relative;
    min-width: 0;
    min-height: 252px;
    padding: 28px 30px;
    border-radius: 10px;
    color: var(--white);
    background: #377eea;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: transform 180ms ease, filter 180ms ease;
}

.primary-home-card:hover {
    filter: saturate(1.05) brightness(.98);
    transform: translateY(-2px);
}

.primary-home-card:focus-visible {
    box-shadow: 0 0 0 4px rgb(18 104 232 / 22%);
}

.card-blue {
    background: #337eea;
}

.card-mint {
    background: #3fbab0;
}

.card-indigo {
    background: #707fdf;
}

.home-card-label {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    margin-bottom: 18px;
    padding: 0 11px;
    border: 1px solid rgb(255 255 255 / 80%);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
}

.primary-home-card > strong {
    position: relative;
    z-index: 2;
    display: block;
    max-width: 78%;
    margin-bottom: 5px;
    color: var(--white);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.04em;
}

.home-card-description {
    position: relative;
    z-index: 2;
    display: block;
    max-width: 75%;
    color: rgb(255 255 255 / 88%);
    font-size: 12px;
}

.home-card-progress {
    position: relative;
    z-index: 2;
    display: grid;
    width: min(54%, 180px);
    margin-top: 14px;
    gap: 5px;
}

.home-card-progress b {
    font-size: 22px;
    line-height: 1;
}

.home-card-progress > span {
    height: 5px;
    border-radius: 999px;
    background: rgb(255 255 255 / 34%);
    overflow: hidden;
}

.home-card-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--white);
}

.home-card-link {
    position: absolute;
    z-index: 2;
    bottom: 27px;
    left: 30px;
    display: inline-flex;
    align-items: center;
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    gap: 9px;
}

.home-card-link i {
    width: 8px;
    height: 8px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.home-card-art {
    position: absolute;
    right: 18px;
    bottom: 24px;
    display: grid;
    width: 104px;
    height: 104px;
    place-items: center;
    border-radius: 50%;
    color: rgb(255 255 255 / 82%);
    background: rgb(255 255 255 / 18%);
}

.home-card-art svg {
    width: 78px;
    height: 78px;
    stroke-width: 3.5;
}

.home-secondary {
    display: grid;
    margin-top: 48px;
    grid-template-columns: minmax(380px, .82fr) minmax(500px, 1.18fr);
    gap: 20px;
}

.quick-work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.quick-work-item {
    display: flex;
    min-height: 96px;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    border: 1px solid #e2e6eb;
    border-radius: 8px;
    color: #242a32;
    background: #fbfcfd;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease;
}

.quick-work-item:hover {
    border-color: #c7ced7;
    background: #f7f9fb;
}

.quick-icon {
    display: grid;
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 10px;
    color: #4b7fe9;
    background: #eaf1ff;
}

.quick-icon svg {
    width: 21px;
    height: 21px;
    stroke-width: 1.9;
}

.quick-services {
    color: #1aa49b;
    background: #e4f7f5;
}

.quick-content {
    color: #d99013;
    background: #fff4d9;
}

.quick-request {
    color: #1aa49b;
    background: #e4f7f5;
}

.recent-news-panel {
    min-height: 202px;
    padding: 0 24px;
    border: 1px solid #e2e6eb;
    border-radius: 8px;
    background: var(--white);
}

.recent-news-tabs {
    display: flex;
    align-items: flex-end;
    min-height: 58px;
    border-bottom: 1px solid #e4e7eb;
    gap: 28px;
}

.recent-news-tabs button {
    position: relative;
    min-height: 58px;
    padding: 0 1px;
    color: #626974;
    background: transparent;
    font-size: 12px;
    cursor: pointer;
}

.recent-news-list {
    margin: 0;
    padding: 15px 0 14px;
    list-style: none;
}

.recent-news-list li {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
    color: #3f4650;
    font-size: 11px;
    gap: 20px;
}

.recent-news-list li span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-news-list time {
    flex: 0 0 auto;
    color: #adb2ba;
}

.recent-news-list .news-empty {
    color: #8a919b;
}

@media (max-width: 1180px) {
    :root {
        --sidebar-width: 212px;
    }

    .brand {
        min-width: calc(var(--sidebar-width) - 22px);
    }

    .home-secondary {
        grid-template-columns: 1fr;
    }

    .recent-news-panel {
        min-height: 0;
    }
}

@media (max-width: 900px) {
    .main-content {
        padding: 42px 24px 0;
    }

    .welcome-block {
        min-height: 150px;
    }

    .primary-card-grid {
        grid-template-columns: 1fr;
    }

    .primary-home-card {
        min-height: 230px;
    }
}

@media (max-width: 640px) {

    .brand {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
    }

    .brand-copy small {
        display: none;
    }

    .brand-logo {
        width: 112px;
    }

    .brand-context {
        display: none;
    }

    .main-content {
        padding: 30px 16px 0;
    }

    .welcome-block {
        min-height: 134px;
    }

    .welcome-block p {
        font-size: 15px;
    }

    .welcome-block h1 {
        font-size: 31px;
    }

    .home-primary > h2,
.quick-work > h2,
.recent-news > h2 {
        font-size: 15px;
    }

    .primary-home-card {
        min-height: 224px;
        padding: 25px 24px;
    }

    .primary-home-card > strong {
        max-width: 70%;
        font-size: 20px;
    }

    .home-card-link {
        bottom: 24px;
        left: 24px;
    }

    .home-card-art {
        right: 12px;
        bottom: 22px;
        width: 92px;
        height: 92px;
    }

    .home-card-art svg {
        width: 68px;
        height: 68px;
    }

    .home-secondary {
        margin-top: 38px;
        gap: 34px;
    }

    .quick-work-grid {
        grid-template-columns: 1fr;
    }

    .quick-work-item {
        min-height: 76px;
    }

    .recent-news-panel {
        padding: 0 16px;
    }

    .recent-news-tabs {
        gap: 18px;
    }

    .recent-news-list li {
        min-height: 40px;
    }

    .recent-news-list time {
        display: none;
    }
}

/* -------------------------------------------------------------------------- */
/* Business hub navigation and customer flows                                */
/* -------------------------------------------------------------------------- */

.catalog-category-nav {
    display: flex;
    margin: -8px 0 34px;
    padding-bottom: 4px;
    gap: 8px;
    overflow-x: auto;
}

.catalog-category-nav a {
    flex: 0 0 auto;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    background: var(--white);
    font-size: 12px;
    font-weight: 700;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.catalog-card {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
}

.catalog-card-category {
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
}

.catalog-card h3 {
    margin: 15px 0 9px;
    color: var(--text-strong);
    font-size: 18px;
    letter-spacing: -.035em;
}

.catalog-card p {
    margin: 0 0 24px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.7;
}


/* Login and signup follow the approved business-hub auth mockup. */
.auth-page {
    min-height: 100vh;
    background: #f3f6fa;
}

.auth-shell {
    display: grid;
    width: min(500px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    padding: 42px 0;
}

.auth-shell-login {
    width: min(460px, calc(100% - 32px));
}

.auth-shell-signup {
    width: min(520px, calc(100% - 32px));
}

.auth-card {
    padding: 44px 38px 34px;
    border: 1px solid #e3e8ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
}

.auth-card-logo {
    display: flex;
    justify-content: center;
    margin: 0 auto 34px;
}

.auth-card-logo img {
    display: block;
    width: min(238px, 72vw);
    height: auto;
    object-fit: contain;
}

.auth-card-header {
    margin-bottom: 30px;
    text-align: center;
}

.auth-card .auth-card-header h1 {
    margin: 0;
    color: #101b2d;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.045em;
}

.auth-card .auth-card-header p {
    margin: 10px 0 0;
    color: #697386;
    font-size: 14px;
    line-height: 1.65;
}

.auth-form,
.auth-form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.auth-form label:not(.auth-check) {
    gap: 8px;
    color: #172033;
    font-size: 13px;
    font-weight: 700;
}

.auth-form label:not(.auth-check) > span {
    display: block;
}

.auth-form input:not([type="checkbox"]) {
    min-height: 56px;
    padding: 0 16px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    color: #111827;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.auth-form input:not([type="checkbox"])::placeholder {
    color: #a4adba;
    font-weight: 400;
}

.auth-form input:not([type="checkbox"]):hover {
    border-color: #bbc5d2;
}

.auth-form input:not([type="checkbox"]):focus {
    border-color: #1769f3;
    outline: 0;
    box-shadow: 0 0 0 3px rgb(23 105 243 / 12%);
}

.auth-span {
    grid-column: auto;
}

.auth-check {
    align-items: center;
    color: #596477;
    font-size: 12px;
    line-height: 1.5;
}

.auth-check + .auth-check {
    margin-top: -10px;
}

.auth-check input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #1769f3;
}

.auth-submit {
    min-height: 58px;
    margin-top: 4px;
    border: 1px solid #1769f3;
    border-radius: 8px;
    color: #fff;
    background: #1769f3;
    font-size: 16px;
    font-weight: 800;
    box-shadow: none;
}

.auth-submit:hover {
    border-color: #0d59d8;
    background: #0d59d8;
}

.auth-submit:focus-visible {
    outline: 3px solid rgb(23 105 243 / 25%);
    outline-offset: 3px;
}

.auth-divider {
    height: 1px;
    margin: 28px 0 0;
    background: #e7ebf0;
}

.auth-switch {
    margin-top: 20px;
    color: #687386;
    font-size: 13px;
}

.auth-switch a {
    color: #1769f3;
    font-weight: 800;
}

.auth-boundary {
    margin-top: 18px;
    color: #8993a3;
    font-size: 11px;
}

.auth-alert,
.auth-demo {
    margin-bottom: 22px;
    border-radius: 8px;
    line-height: 1.55;
}

.auth-page-signup .auth-card-logo {
    margin-bottom: 28px;
}

.auth-page-signup .auth-card-header {
    margin-bottom: 26px;
}

@media (max-width: 1080px) {
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    :root {
        --sidebar-width: min(78vw, 296px);
    }

    .main-content {
        padding-bottom: 104px;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .auth-shell {
        width: min(100% - 24px, 520px);
        align-items: start;
        padding: 18px 0;
    }

    .auth-card {
        padding: 32px 22px 28px;
        border-radius: 14px;
        box-shadow: 0 12px 36px rgb(31 48 75 / 8%);
    }

    .auth-card-logo {
        margin-bottom: 28px;
    }

    .auth-card-logo img {
        width: min(220px, 72vw);
    }

    .auth-card .auth-card-header h1 {
        font-size: 24px;
    }

    .auth-card .auth-card-header p {
        font-size: 13px;
    }

    .auth-form,
.auth-form-grid {
        gap: 16px;
    }

    .auth-form input:not([type="checkbox"]) {
        min-height: 54px;
    }

    .auth-submit {
        min-height: 56px;
    }

    .auth-page-signup .auth-card {
        padding-top: 28px;
    }

    .catalog-category-nav {
        margin-bottom: 26px;
    }

    .catalog-card {
        min-height: 190px;
        padding: 21px;
    }


}

/* -------------------------------------------------------------------------- */
/* Dashboard home                                                             */
/* -------------------------------------------------------------------------- */

/* Visual-first portal pages based on the approved mobile flow references. */
.service-product-icon-image { display: block; width: 74px; height: 74px; border-radius: 20px; object-fit: cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); }
.application-service-icon,
.channel-service-icon { display: grid; place-items: center; border-radius: 16px; }

.promotion-hero { position: relative; display: flex; align-items: center; min-height: 230px; margin-bottom: 26px; overflow: hidden; }
.promotion-hero h2 { margin: 0 0 14px; font-size: clamp(32px, 4vw, 48px); line-height: 1.35; }
.promotion-hero h2 strong { color: var(--visual-blue); }
.promotion-hero p { color: var(--visual-muted); }
.promotion-hero img { position: absolute; right: 1%; bottom: -15%; width: min(40%, 330px); }
.promotion-card { padding: 12px; border: 1px solid var(--visual-line); border-radius: 20px; text-align: left; color: var(--visual-ink); background: #fff; box-shadow: 0 7px 20px rgba(30, 50, 80, .06); cursor: pointer; }
.promotion-card.is-selected { border: 2px solid var(--visual-blue); }
.promotion-card > div { position: relative; display: grid; place-items: center; min-height: 190px; margin-bottom: 13px; border-radius: 15px; color: #1859c8; background: linear-gradient(145deg, #edf4ff, #f7f9fc); font-size: 72px; }
.promotion-card > div > span { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; background: var(--visual-blue); font-size: 19px; }
.promotion-card > strong,
.promotion-card > small { display: block; }
.promotion-card > strong { padding: 0 8px; font-size: 21px; }
.promotion-card > small { padding: 7px 8px 10px; color: var(--visual-muted); }
.completion-actions { display: grid; gap: 14px; width: min(100%, 720px); margin: 28px auto 0; }
.completion-actions button { min-height: 62px; border-radius: 16px; font-size: 18px; font-weight: 800; }
.industry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; margin-top: 7px; }
.industry-grid input { position: absolute; opacity: 0; pointer-events: none; }
.industry-grid label > span { display: flex; align-items: center; gap: 17px; min-height: 116px; padding: 22px; border: 1px solid #d7dfe9; border-radius: 18px; cursor: pointer; }
.industry-grid input:checked + span { border: 2px solid var(--visual-blue); box-shadow: 0 8px 18px rgba(17, 104, 243, .09); }
.industry-grid i { display: grid; place-items: center; width: 58px; height: 58px; flex: 0 0 auto; border-radius: 16px; font-size: 30px; }
.industry-grid b,
.industry-grid small { display: block; }
.industry-grid small { margin-top: 5px; color: var(--visual-muted); font-size: 13px; font-weight: 500; }

@media (max-width: 760px) {
    .service-product-icon-image { width: 46px; height: 46px; border-radius: 13px; }
    .promotion-hero { min-height: 180px; }
    .promotion-hero h2 { font-size: 29px; }
    .promotion-hero p { max-width: 58%; font-size: 13px; }
    .promotion-hero img { right: -9%; width: 48%; }
    .promotion-card { border-radius: 16px; }
    .promotion-card > div { min-height: 125px; font-size: 48px; }
    .promotion-card > strong { font-size: 16px; }
    .promotion-card > small { font-size: 11px; }
    .industry-grid { gap: 10px; }
    .industry-grid label > span { min-height: 100px; padding: 15px; }
    .industry-grid i { width: 48px; height: 48px; font-size: 26px; }
}

@media (max-width: 480px) {
    .industry-grid label > span { align-items: flex-start; flex-direction: column; }
}

/* Connected detail flows */
.policy-operation-note { display: flex; align-items: flex-start; gap: 8px; margin: 20px 0 !important; padding: 14px 16px; border-radius: 12px; color: #596579 !important; background: #f5f8fc; }
.policy-operation-note i { flex: 0 0 auto; color: var(--visual-blue); font-size: 18px; }
.detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.detail-heading h2,
.compact-heading h2 { margin: 0 0 7px; font-size: 28px; }
.detail-heading p,
.compact-heading p { margin: 0; color: var(--visual-muted); }
.detail-heading > button { min-height: 46px; padding: 0 18px; border-radius: 12px; }
.compact-heading { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; padding: 24px 28px; border-radius: 20px; background: #f4f8ff; }
.compact-heading > i { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; color: var(--visual-blue); background: #fff; font-size: 32px; }
.payment-summary-card { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 20px; margin-bottom: 24px; padding: 28px; border: 1px solid var(--visual-line); border-radius: 22px; background: linear-gradient(135deg, #f5f8ff, #fff); }
.payment-summary-card > span { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 18px; color: var(--visual-blue); background: #e7f0ff; font-size: 34px; }
.payment-summary-card small { color: var(--visual-blue); font-weight: 800; }
.payment-summary-card h2 { margin: 6px 0; font-size: 25px; }
.payment-summary-card p { margin: 0; color: var(--visual-muted); }
.payment-summary-card > b { padding: 8px 12px; border-radius: 999px; color: #0b8a40; background: #eaf8ef; }
.faq-list { overflow: hidden; border: 1px solid var(--visual-line); border-radius: var(--workspace-radius-card, 20px); }
.faq-list article { border-bottom: 1px solid #e8edf3; }
.faq-list article:last-child { border-bottom: 0; }
.faq-list article > button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 72px; padding: 18px 22px; border: 0; color: var(--visual-ink); background: #fff; font-size: var(--workspace-font-card-title, 16px); font-weight: 800; cursor: pointer; }
.faq-list article > button i { color: var(--visual-blue); font-size: 23px; transition: transform .2s ease; }
.faq-list article > button[aria-expanded="true"] i { transform: rotate(180deg); }
.faq-list article > div { padding: 0 22px 20px; color: var(--visual-muted); background: #fbfcfe; line-height: 1.7; }
.faq-list article > div p { margin: 0; }
.register-textarea textarea { min-height: 130px; padding: 15px; border: 1px solid #d6dee9; border-radius: 14px; font: inherit; }
.register-consent { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 10px !important; }

@media (max-width: 760px) {
    .detail-heading { align-items: flex-start; flex-direction: column; }
    .payment-summary-card { grid-template-columns: 58px 1fr; gap: 15px; padding: 21px; }
    .payment-summary-card > span { width: 56px; height: 56px; font-size: 29px; }
    .payment-summary-card > b { grid-column: 2; justify-self: start; }
}

@media (max-width: 480px) {
    .compact-heading { align-items: flex-start; padding: 20px; }
}

/* Activate: what the account is about to join is information, not a warning; consent carried from signup shows as a note. */
.activate-connect { display: flex; align-items: center; gap: 14px; margin: -8px 0 24px; padding: 16px 18px; border: 1px solid #d6e4ff; border-radius: var(--kws-public-radius-control, 12px); background: #f4f8ff; }
.activate-connect > i { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: #fff; color: var(--kws-public-color-action, #1769f3); font-size: 21px; }
.activate-connect > p { display: grid; gap: 2px; min-width: 0; margin: 0; }
.activate-connect strong { overflow-wrap: anywhere; color: #111827; font-size: 16px; font-weight: 800; }
.activate-connect span { color: #58677d; font-size: 14px; line-height: 1.55; word-break: keep-all; }
.activate-consent-note { word-break: keep-all; display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 0; padding: 14px 16px; border: 1px solid #e3e8ef; border-radius: var(--kws-public-radius-control, 12px); background: #f7f9fc; color: #3f4b5e; font-size: 14px; line-height: 1.6; }
.activate-consent-note > i { flex: 0 0 auto; color: #16a34a; font-size: 20px; line-height: 1.2; }
.activate-consent-note small { display: block; color: #7a8698; font-size: 13px; }
.auth-page-activate .signup-intro > p { word-break: keep-all; }
