:root {
    --ink: #1f2933;
    --muted: #65727e;
    --line: #e2e9e6;
    --surface: #ffffff;
    --soft: #f5f7f4;
    --green: #2f6f65;
    --green-dark: #244f4a;
    --coral: #427f73;
    --gold: #8b7450;
    --danger: #a64242;
    --shadow: 0 16px 40px rgba(31, 41, 51, 0.08);
}

/* Chatbot */
.chatbot-toggle {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.chatbot-toggle-icon {
    position: relative;
    display: grid;
    width: 84px;
    height: 84px;
    flex: 0 0 84px;
    place-items: center;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,.92);
    border-radius: 50%;
    background: linear-gradient(145deg, #e5f0ec, #bfd7d0);
    box-shadow: 0 12px 34px rgba(24,59,54,.28), 0 0 0 1px rgba(47,111,101,.16);
    transition: transform .2s ease, box-shadow .2s ease;
}

.chatbot-toggle-icon::after {
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(47,111,101,.18);
    border-radius: inherit;
    content: "";
}

.chatbot-toggle-icon img {
    width: 76px;
    height: 76px;
    max-width: none;
    object-fit: contain;
    transform: translateY(1px);
    filter: drop-shadow(0 4px 5px rgba(24,59,54,.12));
}

.chatbot-toggle-label {
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--green-dark);
    box-shadow: 0 8px 24px rgba(24,59,54,.2);
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity .2s ease, transform .2s ease;
}

.chatbot-toggle:hover .chatbot-toggle-label,
.chatbot-toggle:focus-visible .chatbot-toggle-label {
    opacity: 1;
    transform: translateX(0);
}

.chatbot-toggle:hover .chatbot-toggle-icon,
.chatbot-toggle:focus-visible .chatbot-toggle-icon {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(24,59,54,.34), 0 0 0 5px rgba(47,111,101,.12);
}

.chatbot-toggle:focus-visible { outline: none; }
.chatbot-toggle[aria-expanded="true"] .chatbot-toggle-icon { box-shadow: 0 12px 34px rgba(24,59,54,.3), 0 0 0 5px rgba(47,111,101,.16); }

.chatbot-panel {
    position: fixed;
    right: 24px;
    bottom: 84px;
    z-index: 1000;
    width: min(430px, calc(100vw - 32px));
    max-height: min(620px, calc(100vh - 120px));
    overflow: hidden;
    border: 1px solid #dbe4ea;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(23, 47, 64, 0.25);
}

.chatbot-panel[hidden] {
    display: none;
}

.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: var(--green-dark);
    color: #fff;
}

.chatbot-header div,
.chatbot-header strong,
.chatbot-header span {
    display: block;
}

.chatbot-header span {
    margin-top: 3px;
    color: #dceaf2;
    font-size: 0.78rem;
}

.chatbot-header button {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}

.chatbot-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 300px;
    overflow-y: auto;
    padding: 16px;
    background: #f7fafc;
}

.chatbot-message {
    max-width: 90%;
    margin: 0;
    padding: 12px 15px;
    border-radius: 16px;
    font-size: 0.96rem;
    line-height: 1.65;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.chatbot-message.bot {
    width: fit-content;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    background: #fff;
    color: #273b49;
}

.chatbot-message.user {
    max-width: 78%;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    background: var(--green);
    color: #fff;
}

.chatbot-message.loading {
    color: #70828d;
}

.chatbot-mode {
    display: block;
    margin-bottom: 5px;
    color: var(--green);
    font-size: 0.72rem;
    font-weight: 700;
}

.chatbot-message p {
    margin: 0 0 8px;
}

.chatbot-message p:last-child {
    margin-bottom: 0;
}

.chatbot-message ul,
.chatbot-message ol {
    margin: 8px 0 0;
    padding-left: 20px;
}

.chatbot-message li + li {
    margin-top: 4px;
}

.chatbot-topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 10px;
}

.chatbot-topic-grid span {
    padding: 8px 9px;
    border: 1px solid #d7e5ec;
    border-radius: 10px;
    background: #f3f8fa;
    color: #28546a;
    font-size: 0.82rem;
    line-height: 1.25;
    text-align: center;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.button.secondary {
    border: 1px solid #b9ced9;
    background: #fff;
    color: #28546a;
}

.user-content-preview {
    padding: 16px;
    border: 1px solid #dbe4ea;
    border-radius: 12px;
    background: #f8fbfc;
    line-height: 1.7;
}

.review-preview-card {
    padding: 20px;
    border: 1px solid #dbe4ea;
    border-radius: 16px;
    background: linear-gradient(145deg, #fff, #f5f9fa);
    box-shadow: 0 10px 28px rgba(31, 56, 70, 0.08);
}

.review-preview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.review-preview-head h2 {
    margin: 0;
}

.review-preview-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.review-preview-images:empty { display: none; }
.review-preview-images img { width: 100%; height: 210px; border-radius: 12px; object-fit: cover; background: #eef3f1; }

.chatbot-mode.fallback {
    color: #a15b25;
}

.chatbot-quick-actions {
    display: flex;
    gap: 6px;
    padding: 10px 14px 0;
    overflow-x: auto;
}

.chatbot-quick-actions button {
    flex: 0 0 auto;
    border: 1px solid #b9ced9;
    border-radius: 999px;
    padding: 7px 10px;
    background: #fff;
    color: #28546a;
    cursor: pointer;
}

.chatbot-form {
    display: flex;
    gap: 8px;
    padding: 12px 14px 8px;
}

.chatbot-form input {
    min-width: 0;
    flex: 1;
}

.chatbot-form button {
    border: 0;
    border-radius: 10px;
    padding: 0 15px;
    background: var(--green);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.chatbot-disclaimer {
    margin: 0;
    padding: 0 14px 12px;
    color: #7b8991;
    font-size: 0.72rem;
}

.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;
}

@media (max-width: 600px) {
    .chatbot-toggle {
        right: 16px;
        bottom: 16px;
    }

    .chatbot-toggle-icon {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }

    .chatbot-toggle-icon img { width: 65px; height: 65px; }
    .chatbot-toggle-label { display: none; }

    .chatbot-panel {
        right: 16px;
        bottom: 72px;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--soft);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
    line-height: 1.65;
    word-break: keep-all;
}

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

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

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    padding: 12px 14px;
    color: var(--ink);
}

textarea {
    resize: vertical;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    min-height: 90px;
    padding: 12px clamp(24px, 4.5vw, 72px);
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.site-header::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--green);
    content: "";
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
}

.brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
}

.main-nav,
.auth-nav {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.main-nav {
    justify-content: center;
    gap: clamp(20px, 2.2vw, 38px);
    font-size: 16px;
    font-weight: 700;
}

.main-nav a { position: relative; display: grid; gap: 1px; justify-items: center; padding: 22px 0 18px; line-height: 1.2; }
.main-nav a small { color: #9ba6a2; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.main-nav a::after { position: absolute; right: 50%; bottom: 13px; left: 50%; height: 2px; background: var(--green); content: ""; transition: .25s ease; }
.main-nav a:hover::after { right: 0; left: 0; }

.nav-group { position: relative; }
.nav-dropdown { position: absolute; top: calc(100% - 1px); left: 50%; display: grid; grid-template-columns: 190px minmax(150px, 1fr); gap: 28px; width: 430px; padding: 28px; border-top: 3px solid var(--green); background: #fff; box-shadow: 0 22px 48px rgba(31, 54, 48, .16); opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: .2s ease; }
.nav-group:hover .nav-dropdown, .nav-group:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-dropdown p { margin: 0; padding-right: 20px; border-right: 1px solid var(--line); }
.nav-dropdown p strong, .nav-dropdown p span { display: block; }
.nav-dropdown p strong { color: var(--green); font-size: 12px; letter-spacing: .1em; }
.nav-dropdown p span { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.nav-dropdown > div { display: grid; align-content: start; gap: 12px; }
.nav-dropdown > div > a { display: block; padding: 0; font-size: 14px; font-weight: 700; }
.nav-dropdown > div > a::after { display: none; }
.nav-dropdown > div > a:hover { color: var(--green); }
.surgery-dropdown { grid-template-columns: 210px 1fr; width: 670px; }
.surgery-dropdown > div { grid-template-columns: repeat(2, 1fr); gap: 18px 28px; }
.surgery-dropdown a b, .surgery-dropdown a small { display: block; }
.surgery-dropdown a small { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: 0; }

.auth-nav {
    justify-content: flex-end;
    gap: 8px;
}

.header-consult, .header-account { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px; border: 1px solid #9ba7a2; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.header-consult { border-color: var(--green); background: var(--green); color: #fff; }
.header-account:hover { border-color: var(--green); color: var(--green); }

.hello {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
}

.button,
.link-button {
    border: 0;
    cursor: pointer;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 2px;
    background: var(--green);
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.button:hover {
    background: var(--green-dark);
}

.button-outline {
    border: 1px solid var(--green);
    background: transparent;
    color: var(--green);
}

.button-light {
    background: #fff;
    color: var(--green-dark);
}

.button-small {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 14px;
}

.button-danger {
    background: var(--danger);
}

.link-button {
    background: transparent;
    color: var(--muted);
    padding: 0;
}

.hero {
    width: 100%;
    background: #f2f6f4;
    overflow: hidden;
}

.hero-links { display: grid; grid-template-columns: repeat(3, 1fr); width: min(1180px, calc(100% - 40px)); margin: -1px auto 0; background: var(--green-dark); color: #fff; }
.hero-links a { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; min-height: 92px; padding: 0 28px; border-right: 1px solid rgba(255,255,255,.18); }
.hero-links a:last-child { border-right: 0; }
.hero-links span { color: #a8ccc4; font-size: 12px; }
.hero-links strong { font-size: 17px; }
.hero-links b { color: #d9d0d2; font-size: 18px; font-weight: 400; }

.hero-image {
    display: block;
    width: 100%;
    height: auto;
}

.hero-actions,
.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.content-band,
.page-title,
.narrow,
.narrow-wide {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.content-band {
    padding: 100px 0;
}

.page-title {
    padding: 56px 0 24px;
}

.page-title h1,
.panel h1,
.content-band h2 {
    margin: 0 0 12px;
}

.with-action {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 56px;
    align-items: start;
}

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

.admin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card,
.panel,
.quick-form {
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.card {
    padding: 26px;
}

.product-card {
    display: flex;
    min-height: 320px;
    flex-direction: column;
    gap: 12px;
}

.product-card { transition: transform .25s ease, box-shadow .25s ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(36, 79, 74, .14); }
.product-card h3 { margin: 5px 0 0; font-size: 21px; }

.product-card p {
    color: var(--muted);
    flex: 1;
}

.product-card strong,
.price {
    display: block;
    color: var(--coral);
    font-size: 22px;
}

.quick-form,
.panel {
    padding: 32px;
}

.quick-form { scroll-margin-top: 110px; border: 0; border-top: 5px solid #78a99f; background: var(--green-dark); color: #fff; box-shadow: 0 24px 55px rgba(31, 71, 66, .18); }
.quick-form .eyebrow { color: #a8d2c9; }
.quick-form h2 { font-size: 30px; }
.quick-form-lead { margin: -3px 0 22px; color: #b9b0b2; font-size: 13px; }
.quick-date-label { margin-top: 2px; color: #b8d0cb; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.quick-form input, .quick-form select, .quick-form textarea { border: 0; border-bottom: 1px solid #67837e; border-radius: 0; background: transparent; color: #fff; }
.quick-form input[type="date"] { color-scheme: dark; color: #fff; }
.quick-form input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .75; cursor: pointer; }
.quick-form select option { color: #222; }
.quick-form .check { color: #b8c7c4; font-size: 12px; }
.quick-form .button { margin-top: 7px; background: #dcebe6; color: var(--green-dark); }

.quick-form form,
.stack-form {
    display: grid;
    gap: 12px;
}

.narrow {
    max-width: 520px;
    padding: 56px 0;
}

.narrow-wide {
    max-width: 820px;
    padding: 56px 0;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .16em;
}

.home-section-title { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 36px; }
.home-section-title h2 { margin: 0; font-size: clamp(36px, 3.8vw, 56px); font-weight: 500; line-height: 1.2; letter-spacing: -.05em; }
.home-section-title > p { margin: 0 0 9px; color: var(--muted); font-size: 14px; }
.board-band { background: #fff; }

.tag,
.state {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    background: #edf5f2;
    color: var(--green-dark);
    padding: 3px 10px;
    font-size: 13px;
    font-weight: 700;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
}

.section-head a {
    color: var(--green);
    font-weight: 700;
}

.board-list,
.table-list,
.mini-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.board-list li,
.table-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.table-list li {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.board-list a,
.table-list a,
.mini-list a {
    overflow-wrap: anywhere;
    font-weight: 700;
}

.board-list time,
.table-list span,
.table-list time,
.muted {
    color: var(--muted);
}

.mini-list li {
    display: grid;
    gap: 3px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.admin-procedure-panel {
    grid-column: 1 / -1;
}

.admin-procedure-list li {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.admin-procedure-list li > div {
    display: grid;
    gap: 4px;
}

.admin-procedure-list span {
    color: var(--muted);
}

.admin-procedure-list form {
    margin: 0;
}

.admin-users-page {
    min-height: 100vh;
    background: #f5f8f6;
}

.admin-user-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 34px 0 26px;
}

.admin-user-summary article {
    padding: 26px;
    border: 1px solid #d8e3df;
    background: #fff;
    box-shadow: 0 14px 32px rgba(31, 41, 51, 0.06);
}

.admin-user-summary span,
.admin-user-summary small {
    display: block;
}

.admin-user-summary span {
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.admin-user-summary strong {
    display: block;
    margin: 14px 0 5px;
    font-size: 38px;
    font-weight: 500;
    line-height: 1;
}

.admin-user-summary small {
    color: var(--muted);
    font-size: 12px;
}

.admin-user-panel {
    padding-top: 24px;
}

.admin-user-table-wrap {
    overflow-x: auto;
    border: 1px solid #d8e3df;
    background: #fff;
    box-shadow: var(--shadow);
}

.admin-user-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.admin-user-table th,
.admin-user-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.admin-user-table th {
    background: #eef4f1;
    color: #52625d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.admin-user-table tbody tr {
    transition: background .2s ease;
}

.admin-user-table tbody tr:hover {
    background: #f7faf8;
}

.admin-user-profile {
    display: flex;
    gap: 12px;
    align-items: center;
}

.admin-user-profile > span {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 50%;
    background: var(--green-dark);
    color: #fff;
    font-weight: 800;
}

.admin-user-profile strong,
.admin-user-profile small,
.admin-user-contact strong,
.admin-user-contact small {
    display: block;
}

.admin-user-profile small,
.admin-user-contact small,
.admin-user-table time {
    color: var(--muted);
    font-size: 12px;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #edf5f2;
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 800;
}

.role-admin {
    background: #283d39;
    color: #fff;
}

.point-balance {
    color: var(--green);
}

.empty-state {
    padding: 52px;
    border: 1px solid #d8e3df;
    background: #fff;
    text-align: center;
}

.empty-state strong {
    font-size: 22px;
}

.empty-state p {
    color: var(--muted);
}

.article-body {
    margin: 28px 0;
    white-space: pre-line;
}

.attachments,
.answer-box {
    display: grid;
    gap: 10px;
    margin: 22px 0;
    padding: 18px;
    border-radius: 8px;
    background: #f8faf8;
}

.attachments h2 {
    margin: 0;
    font-size: 18px;
}

.attachments a {
    color: var(--green);
    font-weight: 700;
}

.muted-box {
    color: var(--muted);
}

.answer-form {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.summary-list {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}

.summary-list div {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
}

.summary-list dt {
    color: var(--muted);
}

.summary-list dd {
    margin: 0;
    font-weight: 700;
}

.success-panel {
    border-top: 5px solid var(--green);
}

.flash {
    width: min(1180px, calc(100% - 40px));
    margin: 18px auto 0;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 700;
}

.flash.success {
    background: #e9f6ef;
    color: #1e5d48;
}

.flash.error {
    background: #fff1ed;
    color: #9b3e2d;
}

.check {
    display: flex;
    gap: 9px;
    align-items: center;
    color: var(--muted);
}

.check input {
    width: auto;
}

.profile-form {
    margin-top: 24px;
    gap: 18px;
}

.field {
    display: grid;
    gap: 6px;
}

.field span {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

.field input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(47, 111, 101, 0.14);
}

.field input:disabled {
    background: var(--soft);
    color: var(--muted);
}

.profile-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 620px);
    gap: 28px;
    padding: 36px clamp(20px, 5vw, 64px);
    background: #183b36;
    color: #fff;
}

.standard-band { padding: 115px 20px; background: #dfeae5; }
.standard-inner { width: min(1180px, 100%); margin: 0 auto; }
.standard-inner > h2 { margin: 12px 0 58px; font-size: clamp(40px, 5vw, 64px); font-weight: 500; line-height: 1.15; letter-spacing: -.055em; }
.standard-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(57, 39, 43, .25); }
.standard-grid article { display: grid; gap: 10px; padding: 34px 34px 4px 0; }
.standard-grid article + article { padding-left: 34px; border-left: 1px solid rgba(57, 39, 43, .2); }
.standard-grid b { color: var(--green); font-size: 12px; letter-spacing: .14em; }
.standard-grid strong { font-size: 21px; }
.standard-grid span { color: #60706b; font-size: 14px; }

.category-hero, .about-hero, .event-hero { min-height: 560px; padding: 110px max(40px, calc((100vw - 1180px) / 2)); background: linear-gradient(125deg, #e4eee9 0%, #f7f9f8 72%); }
.category-hero { position: relative; display: flex; align-items: center; overflow: hidden; }
.category-hero > div:first-child { position: relative; z-index: 1; max-width: 640px; }
.category-hero h1, .about-hero h1, .event-hero h1 { margin: 10px 0 24px; font-size: clamp(56px, 7vw, 94px); font-weight: 500; line-height: 1; letter-spacing: -.07em; }
.category-hero > div > p:not(.eyebrow), .about-hero > p:last-child, .event-hero > p:last-child { color: var(--muted); font-size: 18px; }
.category-cta { display: inline-flex; gap: 42px; align-items: center; margin-top: 34px; padding: 14px 0; border-bottom: 1px solid var(--ink); font-weight: 700; }
.category-mark { position: absolute; right: -20px; bottom: -80px; color: rgba(47,111,101,.07); font-size: clamp(110px, 18vw, 280px); font-weight: 900; letter-spacing: -.08em; white-space: nowrap; }
.category-content, .about-values { display: grid; grid-template-columns: 360px 1fr; gap: 80px; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 120px 0; }
.category-heading h2 { margin: 8px 0 0; font-size: clamp(38px, 4.5vw, 62px); font-weight: 500; line-height: 1.15; letter-spacing: -.055em; }
.category-card-grid, .about-value-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #b8c9c4; }
.category-card-grid article, .about-value-list article { padding: 32px 24px 20px 0; }
.category-card-grid article + article, .about-value-list article + article { padding-left: 24px; border-left: 1px solid var(--line); }
.category-card-grid b, .about-value-list b { color: var(--green); font-size: 12px; }
.category-card-grid h3, .about-value-list h3 { margin: 28px 0 12px; font-size: 21px; }
.category-card-grid p, .about-value-list p { color: var(--muted); font-size: 14px; }
.category-bottom-cta { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: end; padding: 100px max(40px, calc((100vw - 1180px) / 2)); background: var(--green-dark); color: #fff; }
.category-bottom-cta p { color: #93bdb4; font-size: 11px; letter-spacing: .15em; }
.category-bottom-cta h2 { margin: 10px 0 0; font-size: clamp(34px, 4.2vw, 54px); font-weight: 500; line-height: 1.18; letter-spacing: -.035em; }
.category-bottom-cta > div:last-child { display: grid; gap: 12px; }
.category-bottom-cta a { min-width: 250px; padding: 16px 20px; border: 1px solid rgba(255,255,255,.35); text-align: center; }
.about-hero, .event-hero { display: flex; flex-direction: column; justify-content: center; }
.about-hero { background: #e4eee9; }
.about-values { scroll-margin-top: 110px; }
.about-location { scroll-margin-top: 110px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 100px max(40px, calc((100vw - 1180px) / 2)); background: #f0f4f2; }
.about-location h2 { margin: 10px 0; font-size: clamp(38px, 4vw, 58px); font-weight: 500; line-height: 1.2; }
.about-location > div:last-child { align-self: center; padding: 36px; border-left: 3px solid var(--green); background: #fff; }
.about-location a { display: inline-block; margin-top: 18px; color: var(--green); font-weight: 700; }
.event-hero { min-height: 480px; background: var(--green-dark); color: #fff; }
.event-hero .eyebrow { color: #9bc6bd; }
.event-hero > p:last-child { color: #bfd2ce; }
.event-grid-wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 100px 0; }
.event-card { display: flex; min-height: 420px; flex-direction: column; padding: 38px; border: 1px solid var(--line); background: #fff; }
.event-card span { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.event-card h2 { margin: 24px 0 16px; font-size: 34px; line-height: 1.2; }
.event-card p { flex: 1; color: var(--muted); }
.event-card strong { color: var(--green); font-size: 24px; }
.event-card a { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 700; }
.event-welcome { background: #dceae5; }
.event-notice { display: flex; gap: 28px; width: min(1180px, calc(100% - 40px)); margin: 0 auto 100px; padding: 24px 28px; background: #edf2f0; }
.event-notice p { margin: 0; color: var(--muted); font-size: 13px; }

/* Aligned search controls */
.search-form { display: grid; grid-template-columns: minmax(0, 1fr) 104px; align-items: stretch; overflow: hidden; border: 1px solid #c9d6d2; border-radius: 7px; background: #fff; }
.search-form input { min-width: 0; height: 58px; padding: 0 18px; border: 0; border-radius: 0; background: transparent; font-size: 16px; }
.search-form input:focus { outline: 2px solid rgba(47,111,101,.2); outline-offset: -2px; }
.search-form .button { width: 100%; height: 58px; margin: 0; padding: 0 18px; border: 0; border-left: 1px solid #c9d6d2; border-radius: 0; }
.compact-search { margin-bottom: 18px; }
.program-search { margin-bottom: 18px; }

/* Clinic introduction */
.about-story { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 120px 0; }
.about-story h2 { margin: 12px 0 0; font-size: clamp(40px, 4.8vw, 66px); font-weight: 500; line-height: 1.12; letter-spacing: -.055em; }
.about-story-copy { display: grid; gap: 24px; align-content: start; padding-top: 36px; border-top: 1px solid #b8c9c4; }
.about-story-copy p { margin: 0; color: #4f625d; font-size: 17px; line-height: 1.9; }
.about-story-copy p:first-child { color: var(--ink); font-size: 21px; font-weight: 700; }
.care-journey { padding: 110px max(40px, calc((100vw - 1180px) / 2)); background: var(--green-dark); color: #fff; }
.care-journey > h2 { margin: 12px 0 54px; font-size: clamp(38px, 4vw, 56px); font-weight: 500; letter-spacing: -.045em; }
.care-journey > div { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.28); }
.care-journey article { padding: 30px 28px 4px 0; }
.care-journey article + article { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.18); }
.care-journey b { color: #94c5bb; font-size: 12px; letter-spacing: .14em; }
.care-journey strong { display: block; margin: 24px 0 12px; font-size: 21px; }
.care-journey article span { display: block; color: #bfd2ce; font-size: 14px; line-height: 1.75; }

/* Review and notice editorial lists */
.listing-page { min-height: 70vh; background: #f5f8f6; }
.listing-hero { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 82px 0 54px; border-bottom: 1px solid #cbd8d4; }
.listing-hero h1 { margin: 10px 0 16px; font-size: clamp(48px, 5vw, 68px); font-weight: 500; line-height: 1.1; letter-spacing: -.055em; }
.listing-hero > p:last-child { max-width: 620px; margin: 0; color: var(--muted); font-size: 16px; }
.listing-hero.with-action { display: grid; grid-template-columns: 1fr auto; align-items: end; }
.listing-hero .button { min-width: 138px; }
.listing-content { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 110px; }
.listing-search { display: grid; grid-template-columns: 1fr 110px; margin-bottom: 46px; border: 1px solid #cbd8d4; background: #fff; }
.listing-search input { min-width: 0; height: 62px; padding: 0 22px; border: 0; background: transparent; font-size: 16px; }
.listing-search input:focus { outline: 2px solid rgba(47,111,101,.25); outline-offset: -2px; }
.listing-search button { border: 0; border-left: 1px solid #cbd8d4; border-radius: 0; background: var(--green); color: #fff; font-weight: 800; }
.editorial-list { margin: 0; padding: 0; border-top: 2px solid var(--ink); list-style: none; }
.editorial-list li { display: grid; grid-template-columns: 54px minmax(0,1fr) auto auto auto; gap: 24px; align-items: center; min-height: 96px; padding: 20px 14px; border-bottom: 1px solid #d8e1de; transition: background .2s ease, padding .2s ease; }
.editorial-list li:hover { padding-right: 22px; padding-left: 22px; background: #eaf1ee; }
.editorial-list a { color: var(--ink); }
.list-index { color: #8aa098; font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.list-title { display: grid; gap: 6px; font-size: 18px; font-weight: 750; }
.list-title small { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.review-stars { color: #9a793d; font-size: 14px; letter-spacing: .05em; white-space: nowrap; }
.list-category { padding: 7px 11px; border: 1px solid #bdd0ca; border-radius: 999px; color: var(--green); font-size: 12px; white-space: nowrap; }
.editorial-list time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.notice-editorial-list li { grid-template-columns: 54px minmax(0,1fr) auto; }

/* Member dashboard */
.mypage-page { background: #f5f8f6; }
.mypage-hero { padding: 86px max(40px, calc((100vw - 1180px) / 2)) 76px; background: #dfeae5; }
.mypage-hero h1 { margin: 10px 0 20px; font-size: clamp(48px, 5vw, 70px); font-weight: 500; line-height: 1.08; letter-spacing: -.055em; }
.mypage-hero h1 strong { color: var(--green); font-weight: 500; }
.mypage-hero > p:last-child { margin: 0; color: #58706a; font-size: 16px; }
.mypage-dashboard { display: grid; grid-template-columns: 290px minmax(0,1fr); gap: 64px; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 110px; }
.mypage-profile { position: sticky; top: 118px; align-self: start; padding: 32px; background: var(--green-dark); color: #fff; }
.profile-monogram { display: grid; width: 66px; height: 66px; place-items: center; margin-bottom: 36px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(255,255,255,.08); font-size: 24px; }
.mypage-profile .eyebrow { color: #92bdb4; }
.mypage-profile h2 { margin: 8px 0 28px; font-size: 30px; font-weight: 500; }
.mypage-profile dl { display: grid; gap: 13px; margin: 0; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); }
.mypage-profile dl div { display: grid; grid-template-columns: 58px 1fr; gap: 10px; }
.mypage-profile dt { color: #91aaa5; font-size: 12px; }
.mypage-profile dd { min-width: 0; margin: 0; overflow: hidden; color: #e6eeec; font-size: 13px; text-overflow: ellipsis; }
.profile-edit-link { display: flex; justify-content: space-between; margin-top: 24px; color: #fff; font-size: 13px; font-weight: 700; }
.mypage-main { min-width: 0; }
.mypage-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 66px; border-top: 1px solid #aebfba; border-bottom: 1px solid #aebfba; }
.mypage-summary a { display: grid; gap: 5px; padding: 28px 24px; }
.mypage-summary a + a { border-left: 1px solid #cbd8d4; }
.mypage-summary span { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.mypage-summary strong { font-size: 40px; font-weight: 500; line-height: 1; }
.mypage-summary small { color: var(--muted); font-size: 13px; }
.mypage-section { scroll-margin-top: 120px; margin-top: 58px; }
.mypage-section .section-head { margin-bottom: 18px; }
.mypage-section .section-head h2 { font-size: 25px; }
.mypage-section .board-list { border-top: 2px solid var(--ink); }
.mypage-section .board-list li { grid-template-columns: minmax(0,1fr) auto auto auto; min-height: 68px; padding: 18px 8px; }
.mypage-section .state { color: var(--green); font-weight: 700; }
.withdraw-section .card { padding: 28px; border: 1px solid #d5dfdc; border-radius: 0; background: #fff; box-shadow: none; }
.withdraw-section .stack-form { grid-template-columns: 110px minmax(180px,1fr) auto; align-items: center; margin-top: 20px; }
.withdraw-section .stack-form input { min-width: 0; }
.withdraw-section .button { white-space: nowrap; }
.payment-detail-link { display: grid; gap: 3px; font-weight: 750; }
.payment-detail-link small { color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .04em; }
.payment-detail-page { padding-top: 72px; padding-bottom: 110px; }
.payment-detail-panel { padding: clamp(30px, 5vw, 58px); }
.payment-detail-head { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.payment-detail-head h1 { margin: 8px 0; font-size: clamp(36px, 4vw, 52px); font-weight: 500; letter-spacing: -.045em; }
.payment-detail-head p { margin: 0; color: var(--muted); }
.payment-status { padding: 8px 13px; border-radius: 999px; background: #dfeae5; color: var(--green); font-size: 13px; font-weight: 800; white-space: nowrap; }
.payment-product { display: grid; gap: 8px; margin: 34px 0; padding: 28px; background: #f0f4f2; }
.payment-product span { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.payment-product strong { font-size: 23px; }
.payment-product small { color: var(--muted); }
.payment-detail-summary { border-top: 2px solid var(--ink); }
.payment-detail-summary div { padding: 15px 4px; border-bottom: 1px solid var(--line); }
.payment-detail-summary dd { text-align: right; }
.payment-detail-summary .payment-total-row { padding-top: 24px; padding-bottom: 24px; }
.payment-detail-summary .payment-total-row dt, .payment-detail-summary .payment-total-row dd { color: var(--green); font-size: 20px; font-weight: 800; }

.site-footer { grid-template-columns: 1fr 1fr auto; align-items: start; padding-top: 54px; padding-bottom: 54px; }
.footer-search { width: min(100%, 440px); justify-self: end; }
.footer-search label { display: block; margin-bottom: 12px; color: #8eaaa4; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.footer-search > div { display: grid; grid-template-columns: minmax(0,1fr) 52px; border-bottom: 1px solid rgba(255,255,255,.4); }
.footer-search input { min-width: 0; height: 48px; padding: 0; border: 0; background: transparent; color: #fff; font-size: 15px; }
.footer-search input::placeholder { color: #91aaa5; }
.footer-search input:focus { outline: none; }
.footer-search button { border: 0; background: transparent; color: #fff; font-size: 25px; cursor: pointer; }
.footer-brand { display: grid; gap: 2px; }
.footer-brand strong { font-size: 22px; }
.footer-brand span, .footer-contact span { color: #8eaaa4; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.footer-contact { display: grid; gap: 3px; }
.footer-contact strong { font-size: 26px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 7px 22px; color: #d9e3e0; font-size: 13px; }
.site-footer .medical-note { grid-column: 1 / -1; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }

/* Global search results */
.global-search-page { min-height: 70vh; background: #f5f8f6; }
.global-search-hero { padding: 88px max(40px, calc((100vw - 1180px) / 2)) 70px; background: #dfeae5; }
.global-search-hero h1 { margin: 10px 0 34px; font-size: clamp(48px, 5vw, 70px); font-weight: 500; line-height: 1; letter-spacing: -.055em; }
.global-search-hero > p:last-child { margin: 20px 0 0; color: #58706a; }
.global-search-form { display: grid; grid-template-columns: minmax(0,1fr) 120px; width: min(760px, 100%); border-bottom: 2px solid var(--ink); }
.global-search-form input { min-width: 0; height: 64px; padding: 0 6px; border: 0; background: transparent; font-size: 20px; }
.global-search-form input:focus { outline: none; }
.global-search-form button { border: 0; background: var(--green-dark); color: #fff; font-weight: 800; }
.global-search-results { display: grid; gap: 64px; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 80px 0 120px; }
.search-result-group .section-head { padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.search-result-group .section-head span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #dfeae5; color: var(--green); font-size: 12px; font-weight: 800; }
.search-result-group ul { margin: 0; padding: 0; list-style: none; }
.search-result-group li { border-bottom: 1px solid #d8e1de; }
.search-result-group li a { display: grid; grid-template-columns: auto minmax(180px,.7fr) 1fr; gap: 22px; align-items: center; padding: 24px 10px; transition: background .2s ease, padding .2s ease; }
.search-result-group li a:hover { padding-right: 18px; padding-left: 18px; background: #eaf1ee; }
.search-result-group li strong { font-size: 18px; }
.search-result-group li small { color: var(--muted); font-size: 13px; }
.search-empty { padding: 60px; border: 1px solid #d5dfdc; background: #fff; text-align: center; }
.search-empty strong { font-size: 24px; }
.search-empty p { color: var(--muted); }

.site-footer p {
    margin: 6px 0 0;
    color: #cbd5df;
}

.medical-note {
    font-size: 14px;
}

@media (max-width: 920px) {
    .site-header {
        grid-template-columns: 1fr;
    }

    .main-nav,
    .auth-nav {
        justify-content: flex-start;
    }

    .split,
    .columns,
    .admin-grid,
    .admin-user-summary,
    .product-grid,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .quick-form {
        order: -1;
    }

    .site-header { position: relative; }
    .nav-group { width: 100%; }
    .nav-dropdown { display: none; }
    .main-nav a { justify-items: start; padding: 3px 0; }
    .hero-links { grid-template-columns: 1fr; }
    .hero-links a { min-height: 72px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
    .home-section-title { display: block; }
    .home-section-title > p { margin-top: 14px; }
    .standard-grid { grid-template-columns: 1fr; }
    .standard-grid article + article { padding-left: 0; border-top: 1px solid rgba(57, 39, 43, .2); border-left: 0; }
    .category-content, .about-values { grid-template-columns: 1fr; gap: 48px; }
    .category-card-grid, .about-value-list { grid-template-columns: 1fr; }
    .category-card-grid article + article, .about-value-list article + article { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
    .category-bottom-cta, .about-location { grid-template-columns: 1fr; }
    .event-grid-wrap { grid-template-columns: 1fr; }
    .footer-search { width: 100%; justify-self: stretch; }
    .about-story, .mypage-dashboard { grid-template-columns: 1fr; gap: 46px; }
    .care-journey > div { grid-template-columns: repeat(2, 1fr); }
    .care-journey article:nth-child(3) { padding-left: 0; border-top: 1px solid rgba(255,255,255,.18); border-left: 0; }
    .care-journey article:nth-child(4) { border-top: 1px solid rgba(255,255,255,.18); }
    .mypage-profile { position: static; }
    .editorial-list li { grid-template-columns: 42px minmax(0,1fr) auto; gap: 14px; }
    .review-stars { grid-column: 2; }
    .review-editorial-list .list-category { display: none; }
    .review-editorial-list time { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 560px) {
    .content-band,
    .page-title,
    .narrow,
    .narrow-wide {
        width: min(100% - 28px, 1180px);
    }

    .with-action,
    .board-list li,
    .table-list li,
    .summary-list div {
        grid-template-columns: 1fr;
    }

    .with-action {
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .search-form { grid-template-columns: minmax(0,1fr) 82px; }
    .search-form .button { width: 100%; }
    .global-search-form { grid-template-columns: minmax(0,1fr) 88px; }
    .search-result-group li a { grid-template-columns: 1fr; gap: 8px; }

    .listing-hero.with-action, .listing-search, .mypage-summary, .withdraw-section .stack-form { grid-template-columns: 1fr; }
    .listing-hero.with-action { gap: 24px; align-items: stretch; }
    .listing-search button { min-height: 52px; border-top: 1px solid #cbd8d4; border-left: 0; }
    .editorial-list li, .notice-editorial-list li { grid-template-columns: 36px minmax(0,1fr); }
    .editorial-list time, .review-editorial-list time { grid-column: 2; grid-row: auto; }
    .review-stars { grid-column: 2; }
    .mypage-summary a + a { border-top: 1px solid #cbd8d4; border-left: 0; }
    .mypage-section .board-list li { grid-template-columns: 1fr; }
    .payment-detail-head { display: grid; }
    .care-journey > div { grid-template-columns: 1fr; }
    .care-journey article + article, .care-journey article:nth-child(3) { padding-left: 0; border-top: 1px solid rgba(255,255,255,.18); border-left: 0; }
}
