:root {
    --bg: #f8f9ff;
    --surface: #ffffff;
    --surface-soft: #eff4ff;
    --surface-mid: #e5eeff;
    --text: #0b1c30;
    --muted: #45464d;
    --line: #d9e2f2;
    --line-strong: #c6c6cd;
    --navy: #131b2e;
    --blue: #0051d5;
    --blue-strong: #316bf3;
    --green: #16803c;
    --red: #ba1a1a;
    --gray: #64748b;
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0;
}

body.modal-open {
    overflow: hidden;
}

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

button,
input,
select,
textarea {
    font: inherit;
    letter-spacing: 0;
}

img {
    display: block;
    max-width: 100%;
}

.material-symbols-outlined {
    font-size: 22px;
    font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
    line-height: 1;
}

.page-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--navy);
    color: #fff;
}

.btn-primary:hover {
    background: var(--blue);
}

.btn-secondary {
    border-color: var(--line-strong);
    color: var(--navy);
}

.btn-danger {
    background: #fff3f2;
    border-color: #ffd1cc;
    color: var(--red);
}

.btn-small {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.btn-hero {
    background: #fff;
    color: var(--navy);
}

.full-width {
    width: 100%;
}

.alert {
    padding: 14px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
}

.alert p {
    margin: 6px 0 0;
}

.alert-success {
    border-color: #b7e3c4;
    background: #effaf2;
    color: #0f6b2f;
}

.alert-error {
    border-color: #ffd1cc;
    background: #fff3f2;
    color: var(--red);
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    padding: 11px 12px;
    outline: none;
}

.admin-body input,
.admin-body select,
.admin-body textarea {
    font-weight: 200;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 81, 213, 0.14);
}

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

.span-2 {
    grid-column: 1 / -1;
}

.check-label {
    display: inline-flex;
    grid-template-columns: none;
    align-items: center;
    width: fit-content;
    gap: 8px;
}

.check-label input {
    width: 16px;
    height: 16px;
}

.inline-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.badge-red {
    background: #fff3f2;
    color: var(--red);
}

.badge-blue {
    background: #eaf1ff;
    color: var(--blue);
}

.badge-green {
    background: #effaf2;
    color: var(--green);
}

.badge-gray {
    background: #edf2f7;
    color: var(--gray);
}

/* Public site */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    padding: 0 32px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-size: 20px;
    font-weight: 900;
}

.brand-image {
    min-width: 120px;
    min-height: 44px;
}

.brand-image img {
    max-width: 180px;
    max-height: 46px;
    object-fit: contain;
}

.site-header-simple {
    justify-content: flex-start;
    padding-left: max(24px, calc((100% - 1200px) / 2));
    padding-right: max(24px, calc((100% - 1200px) / 2));
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.site-nav a:hover {
    color: var(--blue);
}

.hero-section {
    position: relative;
    width: min(1200px, calc(100% - 48px));
    min-height: 400px;
    margin: 28px auto 0;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    isolation: isolate;
    overflow: hidden;
    background: var(--navy);
}

.hero-slideshow {
    height: 400px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
    transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide.has-copy::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 18, 36, 0.72), rgba(8, 18, 36, 0.3) 48%, rgba(8, 18, 36, 0.08));
    pointer-events: none;
}

.hero-slide.is-active {
    transform: translateX(0);
    z-index: 1;
}

.hero-slide-copy {
    position: absolute;
    left: clamp(28px, 6vw, 72px);
    top: 58%;
    z-index: 2;
    max-width: min(620px, calc(100% - 56px));
    color: #fff;
    transform: translateY(-50%);
}

.hero-slide-copy h1 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(30px, 4.4vw, 54px);
    line-height: 1.14;
    white-space: pre-line;
}

.hero-slide-copy p {
    max-width: 520px;
    margin: 0;
    color: #e9f1ff;
    font-size: 18px;
    line-height: 1.7;
    white-space: pre-line;
}

.hero-empty {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #131b2e, #316bf3);
}

.slide-nav {
    position: absolute;
    left: 50%;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(10px);
    transform: translateX(-50%);
    z-index: 3;
}

.slide-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slide-dots button {
    width: 26px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.slide-dots button.is-active {
    background: #fff;
}

.slide-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
}

.slide-arrow:hover {
    background: rgba(255, 255, 255, 0.28);
}

.slide-arrow:disabled {
    opacity: 0.42;
    cursor: default;
}

.slide-arrow:disabled:hover {
    background: rgba(255, 255, 255, 0.14);
}

.slide-arrow .material-symbols-outlined {
    font-size: 20px;
}

.slide-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    height: 4px;
    background: rgba(49, 107, 243, 0.24);
}

.slide-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--blue-strong);
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(19, 27, 46, 0.94), rgba(19, 27, 46, 0.54), rgba(19, 27, 46, 0.12));
}

.hero-content {
    width: min(1200px, calc(100% - 48px));
    min-height: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #fff;
}

.hero-content .eyebrow {
    color: #b4c5ff;
}

.hero-content h1 {
    max-width: 680px;
    margin: 16px 0;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.12;
    letter-spacing: 0;
}

.hero-content p {
    max-width: 620px;
    margin: 0 0 28px;
    color: #eaf1ff;
    font-size: 19px;
}

.home-band {
    padding: 28px 0 56px;
    background: var(--bg);
}

.home-band .hero-section {
    margin-top: 0;
}

.home-band .portal-grid {
    padding-bottom: 0;
}

.portal-grid {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 24px;
    padding: 56px 0 24px;
}

.portal-side,
.content-panel,
.service-card,
.contact-form,
.contact-info,
.admin-panel,
.setup-card,
.login-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.admin-panel,
.setup-card,
.login-card {
    box-shadow: var(--shadow);
}

.portal-side {
    align-self: start;
    display: grid;
    gap: 12px;
    padding: 22px;
}

.portal-side strong {
    font-size: 15px;
    font-weight: 600;
}

.portal-side > span {
    color: var(--muted);
    font-size: 14px;
}

.side-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--muted);
    font-weight: 600;
}

.side-link-count {
    color: var(--gray);
    font-size: 12px;
    font-weight: 500;
    opacity: 0.52;
}

.side-link.is-active,
.side-link:hover {
    border-color: #dbe8ff;
    background: #f3f7ff;
    color: var(--navy);
}

.content-panel {
    padding: 24px;
}

.panel-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.panel-header,
.section-heading {
    margin-bottom: 20px;
}

.panel-header h2,
.panel-header h1,
.section-heading h2,
.contact-info h2,
.admin-topbar h1,
.setup-card h1,
.login-card h1 {
    margin: 6px 0 0;
    color: var(--text);
    line-height: 1.24;
    letter-spacing: 0;
}

.post-list {
    display: grid;
}

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

.board-columns h3 {
    margin: 0 0 10px;
    font-size: 17px;
}

.post-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid #edf2f7;
}

.post-row strong {
    display: block;
    font-size: 15px;
}

.post-row .post-title-line {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.post-category-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
}

.post-row time {
    flex: 0 0 auto;
    color: var(--gray);
    font-size: 13px;
}

.board-mini-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    margin-top: 18px;
}

.board-mini-pager button {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.board-mini-pager button:hover,
.board-mini-pager button.is-active {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}

.section-block {
    padding: 56px 0;
}

.service-band {
    padding: 56px 0;
    background: #fff;
}

.section-heading {
    max-width: 640px;
}

.section-heading p {
    margin: 10px 0 0;
    color: var(--muted);
}

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

.service-card {
    display: grid;
    align-content: start;
    min-height: 220px;
    padding: 22px;
    color: var(--text);
    transition: transform 160ms ease, border-color 160ms ease;
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: var(--blue);
}

.service-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.service-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: var(--radius);
    background: var(--surface-soft);
    color: var(--blue);
    font-size: 30px;
}

.service-icon-fa {
    font-size: 26px;
}

.service-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.partner-band {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 30px 0 34px;
    overflow: hidden;
    background: transparent;
}

.partner-track {
    display: flex;
    width: max-content;
    animation: partner-marquee 28s linear infinite;
}

.partner-band:hover .partner-track {
    animation-play-state: paused;
}

.partner-logo-row {
    display: flex;
    align-items: center;
    gap: 54px;
    padding: 0 27px;
}

.partner-logo-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.partner-logo-item img {
    width: auto;
    height: 38px;
    max-width: none;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.38;
    transition: filter 180ms ease, opacity 180ms ease;
}

.partner-logo-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes partner-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.contact-band {
    padding: 60px 0;
    background: var(--surface-soft);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 54px min(7vw, 80px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.contact-info,
.contact-form {
    padding: 0;
    border: 0;
    background: transparent;
}

.contact-info {
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
}

.contact-info h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 40px);
}

.contact-info p {
    max-width: none;
    margin: 0;
    color: #3b4150;
    font-size: 18px;
}

.contact-info dl,
.compact-dl {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
}

.contact-info dl {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 4px;
}

.contact-info dl div,
.compact-dl div {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
}

dt {
    color: var(--gray);
    font-weight: 800;
}

dd {
    margin: 0;
}

.contact-form {
    display: grid;
    width: min(850px, 100%);
    justify-self: center;
    gap: 24px;
}

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

.contact-alert {
    margin: 0;
}

.field-control {
    min-width: 0;
    margin: 0;
    padding: 0 12px 10px;
    border: 1px solid #7b828c;
    border-radius: 8px;
}

.field-control:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 81, 213, 0.12);
}

.field-control legend {
    padding: 0 6px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 700;
}

.field-control input,
.field-control textarea {
    border: 0;
    border-radius: 0;
    padding: 10px 4px 14px;
    box-shadow: none;
    font-weight: 400;
}

.field-control input::placeholder,
.field-control textarea::placeholder {
    color: #aeb7c4;
    opacity: 1;
}

.field-control input:focus,
.field-control textarea:focus {
    border-color: transparent;
    box-shadow: none;
}

.field-control textarea {
    min-height: 160px;
}

.contact-file-drop {
    position: relative;
    display: grid;
    min-height: 126px;
    border: 1px dashed #8d96a4;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--text);
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.contact-file-drop:hover,
.contact-file-drop.is-dragging,
.contact-file-drop:focus-within {
    border-color: var(--blue);
    background: #f2f7ff;
    box-shadow: 0 0 0 3px rgba(0, 81, 213, 0.12);
}

.contact-file-drop input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.contact-file-drop label {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 8px;
    min-width: 0;
    padding: 22px;
    text-align: center;
    pointer-events: none;
}

.contact-file-drop .material-symbols-outlined {
    color: var(--blue);
    font-size: 30px;
}

.contact-file-drop strong {
    font-size: 15px;
}

.contact-file-drop small {
    max-width: 100%;
    color: var(--gray);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.contact-submit {
    justify-self: end;
    min-width: 200px;
    border-radius: 999px;
    background: #000;
}

.contact-submit:hover {
    background: var(--navy);
}

.site-footer {
    padding: 24px 0 28px;
    border-top: 1px solid var(--line);
    background: #fff;
    color: #555;
}

.footer-company-info {
    display: grid;
    gap: 16px;
    font-size: 13px;
    line-height: 1.35;
}

.footer-logo {
    width: auto;
    max-width: 180px;
    max-height: 56px;
    object-fit: contain;
}

.footer-company-info p {
    margin: 0;
}

.footer-copy {
    white-space: pre-wrap;
    line-height: 1.35;
    color: #888;
}

.board-page {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 24px;
    padding: 48px 0 72px;
}

.post-page {
    padding: 48px 0 72px;
}

.post-detail {
    max-width: 920px;
    margin: 0 auto;
    padding: 36px;
}

.post-detail h1 {
    margin: 8px 0 8px;
    font-size: 34px;
    line-height: 1.25;
}

.post-detail time {
    display: block;
    color: var(--gray);
    margin-bottom: 28px;
}

.post-content h1,
.post-content h2,
.post-content h3 {
    line-height: 1.3;
}

.post-content img {
    height: auto;
    margin: 18px 0;
    border-radius: var(--radius);
}

.post-modal[hidden] {
    display: none;
}

.post-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.post-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 28, 48, 0.46);
    backdrop-filter: blur(3px);
}

.post-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(900px, 100%);
    max-height: min(820px, calc(100vh - 48px));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 18px 60px rgba(11, 28, 48, 0.22);
    overflow: hidden;
}

.post-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--text);
    cursor: pointer;
}

.post-modal-scroll {
    display: grid;
    gap: 16px;
    max-height: min(820px, calc(100vh - 48px));
    overflow-y: auto;
    padding: 34px;
}

.post-modal-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 48px;
}

.post-modal-meta time {
    color: var(--gray);
    font-size: 13px;
}

.post-modal h2 {
    margin: 0;
    padding-right: 48px;
    font-size: 26px;
    line-height: 1.3;
}

.post-modal-content {
    min-height: 120px;
    padding: 20px 0 8px;
    border-top: 1px solid var(--line);
}

.post-modal-list-wrap {
    display: grid;
    gap: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.post-modal-list-wrap h3 {
    margin: 0 0 2px;
    font-size: 16px;
}

.post-modal-list {
    display: grid;
}

.post-modal-list button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid #edf2f7;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.post-modal-list button:hover,
.post-modal-list button.is-active {
    color: var(--blue);
}

.post-modal-list time {
    flex: 0 0 auto;
    color: var(--gray);
    font-size: 12px;
}

.post-content blockquote {
    margin: 18px 0;
    padding: 14px 18px;
    border-left: 4px solid var(--blue);
    background: var(--surface-soft);
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
}

.post-content th,
.post-content td {
    padding: 10px;
    border: 1px solid var(--line);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.pagination a {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    font-weight: 800;
}

.pagination a.is-active {
    background: var(--navy);
    color: #fff;
}

/* Setup and login */
.setup-page,
.admin-login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--bg);
}

.setup-shell {
    width: min(820px, 100%);
}

.admin-login-page .setup-shell {
    width: min(420px, 100%);
}

.setup-card,
.login-card {
    padding: 34px;
}

.setup-heading p,
.login-card p {
    margin: 8px 0 24px;
    color: var(--muted);
}

.install-status {
    margin: 22px 0;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-weight: 800;
}

.install-status.is-changed {
    background: #effaf2;
    color: var(--green);
}

.install-status.is-current {
    background: #eaf1ff;
    color: var(--blue);
}

.install-steps {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.install-step {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.install-step span {
    width: 14px;
    height: 14px;
    margin-top: 5px;
    border-radius: 999px;
    background: var(--blue);
}

.install-step-warning span {
    background: #b7791f;
}

.install-step-success span {
    background: var(--green);
}

.install-step p {
    margin: 0;
}

.setup-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.debug-box {
    overflow: auto;
    padding: 16px;
    border-radius: var(--radius);
    background: #111827;
    color: #e5e7eb;
}

.login-card {
    width: min(420px, 100%);
}

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

.login-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--blue);
    font-weight: 800;
}

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

/* Admin */
.admin-body {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    background: var(--bg);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid var(--line);
    background: #f9fbff;
    overflow-y: auto;
}

.admin-brand {
    display: grid;
    align-items: center;
    height: 77px;
    min-height: 77px;
    padding: 0 24px;
    border-bottom: 1px solid var(--line);
}

.admin-brand strong {
    color: var(--navy);
    font-size: 20px;
    font-weight: 900;
}

.admin-brand-logo {
    width: auto;
    max-width: 176px;
    max-height: 46px;
    object-fit: contain;
}

.admin-sidebar nav {
    display: grid;
    gap: 4px;
    padding: 18px 0;
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 20px;
    border-left: 4px solid transparent;
    color: var(--muted);
    font-weight: 800;
}

.admin-sidebar a:hover,
.admin-sidebar a.is-active {
    border-left-color: var(--blue);
    background: #fff;
    color: var(--blue);
}

.admin-main {
    min-width: 0;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 77px;
    padding: 18px 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
}

.admin-topbar h1 {
    margin: 0;
    font-size: 24px;
}

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

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--navy);
    cursor: pointer;
}

.admin-content {
    width: 100%;
    padding: 28px;
    display: grid;
    gap: 22px;
}

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

.kpi-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    min-height: 132px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.kpi-card span:first-child {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.kpi-card strong {
    display: block;
    margin-top: 10px;
    font-size: 32px;
    line-height: 1;
}

.kpi-card > .material-symbols-outlined {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--surface-soft);
    color: var(--blue);
}

.kpi-green > .material-symbols-outlined {
    color: var(--green);
}

.kpi-red > .material-symbols-outlined {
    color: var(--red);
}

.kpi-gray > .material-symbols-outlined {
    color: var(--gray);
}

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

.admin-two-col-form {
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
    align-items: start;
}

.admin-panel {
    min-width: 0;
    padding: 20px;
}

.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.admin-panel-header h2 {
    margin: 0;
    font-size: 18px;
}

.admin-panel-header a:not(.btn) {
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
}

.table-wrap {
    overflow-x: auto;
}

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

.admin-table th,
.admin-table td {
    padding: 13px 12px;
    border-bottom: 1px solid #edf2f7;
    text-align: left;
    vertical-align: middle;
    font-size: 14px;
}

.admin-table th {
    color: var(--gray);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    background: #f8fafc;
}

.admin-table tr:hover td {
    background: #fbfdff;
}

.admin-table th:last-child,
.admin-table td:last-child {
    text-align: right;
}

.admin-table td:last-child .row-actions {
    justify-content: flex-end;
}

.admin-table td[colspan] {
    text-align: center;
}

.table-thumb {
    width: 92px;
    height: 54px;
    border-radius: var(--radius);
    object-fit: cover;
}

.table-logo-thumb {
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    padding: 6px;
}

.admin-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    background: var(--surface-soft);
    color: var(--blue);
    font-size: 18px;
}

.media-preview {
    display: grid;
    gap: 10px;
}

.media-preview img {
    max-width: 220px;
    max-height: 140px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 8px;
}

.file-dropzone {
    position: relative;
    display: grid;
    min-height: 210px;
    border: 1px dashed #aeb9cb;
    border-radius: var(--radius);
    background: #f8fafc;
    transition: border-color 160ms ease, background 160ms ease;
}

.file-dropzone:hover,
.file-dropzone.is-dragging {
    border-color: var(--blue);
    background: #f2f7ff;
}

.file-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-dropzone-content {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 24px;
    text-align: center;
    color: var(--muted);
}

.file-dropzone-content .material-symbols-outlined {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: #eaf1ff;
    color: var(--blue);
    font-size: 28px;
}

.file-dropzone-content strong {
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

.file-dropzone-content small,
.file-dropzone-content [data-file-dropzone-text] {
    color: var(--gray);
    font-size: 12px;
    font-weight: 600;
}

.file-dropzone-content img {
    max-width: 180px;
    max-height: 76px;
    margin-top: 6px;
    object-fit: contain;
}

.logo-upload-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
}

.admin-form {
    display: grid;
    gap: 15px;
}

.form-help {
    color: var(--gray);
    font-size: 12px;
    font-weight: 700;
}

.form-label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.form-field {
    display: grid;
    gap: 8px;
}

.admin-form-grid {
    margin-bottom: 2px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.icon-picker {
    position: relative;
    display: grid;
    gap: 10px;
}

.icon-select-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
}

.icon-select-button > span:first-child {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.icon-select-button .material-symbols-outlined {
    color: var(--gray);
}

.icon-option-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 20;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.icon-picker.is-open .icon-option-list {
    display: grid;
}

.icon-option-list button {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: transparent;
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

.icon-option-list button:hover,
.icon-option-list button.is-active {
    border-color: #dbe8ff;
    background: #f3f7ff;
    color: var(--blue);
}

.icon-option-list i {
    width: 20px;
    text-align: center;
}

.icon-preview-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: var(--surface-soft);
    color: var(--blue);
    font-size: 18px;
}

.board-manager {
    scroll-margin-top: 96px;
}

.board-post-form {
    max-width: 100%;
}

.post-editor-wrap {
    overflow: visible;
    border-radius: var(--radius);
}

.post-editor-wrap .toastui-editor-defaultUI,
.post-editor-wrap .toastui-editor-toolbar {
    overflow: visible;
}

.post-editor-wrap .toastui-editor-popup {
    z-index: 40;
}

.post-editor-wrap .toastui-editor-contents,
.post-editor-wrap .ProseMirror {
    color: var(--text);
    font-weight: 400;
}

.editor-source {
    display: none;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.row-actions-wrap {
    flex-wrap: wrap;
}

.row-actions form {
    margin: 0;
}

.category-editor {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfdff;
}

.category-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.category-editor-head > div {
    display: grid;
    gap: 4px;
}

.category-editor-head strong {
    font-size: 17px;
}

.category-editor-head span {
    color: var(--gray);
    font-size: 13px;
}

.category-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 100px 110px auto;
    gap: 10px;
    align-items: center;
}

.category-list {
    display: grid;
    gap: 10px;
}

.category-row-heading {
    color: var(--gray);
    font-size: 12px;
    font-weight: 900;
}

.inquiry-list {
    display: grid;
    gap: 14px;
}

.inquiry-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.inquiry-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.inquiry-head strong {
    display: block;
    font-size: 17px;
}

.inquiry-head span:not(.badge) {
    color: var(--gray);
    font-size: 13px;
}

.inquiry-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.inquiry-meta div {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #edf2f7;
    border-radius: var(--radius);
    background: #f8fafc;
}

.inquiry-meta dt {
    margin-bottom: 3px;
    font-size: 12px;
}

.inquiry-meta dd {
    overflow-wrap: anywhere;
}

.inquiry-message {
    min-width: 0;
    padding: 14px;
    border-radius: var(--radius);
    background: #fbfdff;
    color: var(--text);
    overflow-wrap: anywhere;
}

.inquiry-attachment-preview {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    justify-self: start;
    max-width: min(100%, 480px);
    padding: 8px;
    border: 1px solid #edf2f7;
    border-radius: var(--radius);
    background: #f8fafc;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.inquiry-attachment-preview img {
    width: 112px;
    height: 84px;
    border-radius: 6px;
    object-fit: cover;
    background: #fff;
}

.inquiry-attachment-preview > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.inquiry-attachment-preview .material-symbols-outlined {
    flex: 0 0 auto;
    font-size: 18px;
}

.inquiry-form {
    display: grid;
    grid-template-columns: 160px auto;
    gap: 12px;
    justify-content: start;
    align-items: start;
}

.empty-text {
    margin: 0;
    color: var(--gray);
}

@media (max-width: 1024px) {
    .site-header {
        gap: 16px;
        padding: 0 20px;
    }

    .site-header-simple {
        padding-left: max(24px, calc((100% - 1200px) / 2));
        padding-right: max(24px, calc((100% - 1200px) / 2));
    }

    .site-nav {
        display: none;
    }

    .portal-grid,
    .board-page,
    .contact-grid,
    .admin-two-col,
    .admin-two-col-form {
        grid-template-columns: 1fr;
    }

    .category-row {
        grid-template-columns: minmax(160px, 1fr) 96px 96px;
    }

    .category-row > :nth-child(4) {
        grid-column: span 1;
    }

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

    .contact-info dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-body {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .admin-sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 12px;
    }

    .admin-sidebar a {
        border-left: 0;
        border-radius: var(--radius);
    }
}

@media (max-width: 720px) {
    .page-container,
    .hero-content {
        width: min(100% - 28px, 1200px);
    }

    .header-cta {
        display: none;
    }

    .site-header-simple {
        padding-left: max(14px, calc((100% - 1200px) / 2));
        padding-right: max(14px, calc((100% - 1200px) / 2));
    }

    .hero-section,
    .hero-content {
        min-height: 300px;
    }

    .hero-section {
        width: min(100% - 28px, 1200px);
        margin-top: 18px;
    }

    .hero-slideshow {
        height: 300px;
    }

    .hero-overlay {
        background: rgba(19, 27, 46, 0.72);
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-slide-copy {
        left: 24px;
        top: 58%;
        max-width: calc(100% - 48px);
    }

    .hero-slide-copy h1 {
        font-size: 30px;
    }

    .hero-slide-copy p {
        font-size: 15px;
    }

    .contact-grid {
        gap: 26px;
        padding: 34px 18px;
        border-radius: var(--radius);
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .contact-submit {
        width: 100%;
        justify-self: stretch;
    }

    .service-grid {
        grid-template-columns: repeat(5, minmax(140px, 1fr));
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .board-columns,
    .form-grid,
    .kpi-grid,
    .contact-info dl,
    .compact-dl,
    .inquiry-meta,
    .inquiry-form,
    .logo-upload-row,
    .category-row {
        grid-template-columns: 1fr;
    }

    .category-row-heading {
        display: none;
    }

    .post-row,
    .inquiry-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-content {
        padding: 18px;
    }

    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-sidebar nav {
        grid-template-columns: 1fr;
    }

    .setup-actions {
        flex-direction: column;
    }
}
