@import url("https://cdnjs.cloudflare.com/ajax/libs/pretendard/1.3.9/static/pretendard-dynamic-subset.min.css");
:root {
    --page: #f5f8fc;
    --ink: #182a40;
    --muted: #52657b;
    --line: #d9e3ee;
    --tint: #eaf2fc;
    --blue: #205690;
    --white: #fff;
    --gutter: max(5vw, calc((100vw - 1160px) / 2));
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--page); font: 16px/1.65 "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; word-break: keep-all; }
a { color: var(--blue); text-underline-offset: 4px; }
a:focus-visible, button:focus-visible { outline: 3px solid #6699d4; outline-offset: 3px; }
.skip { position: absolute; top: -5rem; padding: .75rem; background: var(--white); z-index: 5; }
.skip:focus { top: 0; }
.top { background: var(--white); border-top: 4px solid var(--blue); border-bottom: 1px solid var(--line); }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 22px; line-height: 1.2; font-weight: bold; color: var(--ink); }
.brand small { display: block; color: var(--muted); font-size: 12px; font-weight: normal; margin-top: 4px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; color: var(--blue); background: var(--tint); border: 1px solid var(--line); border-radius: 8px; font-family: Georgia, serif; }
nav, .actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
nav a { text-decoration: none; font-weight: bold; }
nav form { display: inline; margin: 0; }
main, footer { padding: 28px var(--gutter); }
main { min-height: 76vh; padding-bottom: 56px; }
footer { background: var(--white); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.32; letter-spacing: -.035em; }
h1 { font-size: clamp(29px, 4vw, 43px); }
h2 { font-size: 23px; }
h3 { font-size: 18px; }
p { margin: 0 0 14px; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(22px, 4vw, 48px); background: var(--tint); border: 1px solid var(--line); border-radius: 12px; }
.hero h1 { font-size: clamp(31px, 4vw, 51px); }
.hero img { display: block; width: 100%; height: 310px; border-radius: 8px; object-fit: cover; }
.hero p, .muted { color: var(--muted); }
.eyebrow { color: var(--blue); font-size: 14px; font-weight: bold; }
.service-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-list article { border-top: 2px solid #90afd2; padding-top: 16px; }
.service-list p { color: var(--muted); }
.cta, button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; border: 1px solid var(--blue); border-radius: 6px; background: var(--blue); color: var(--white); font: inherit; font-weight: bold; text-decoration: none; cursor: pointer; }
.cta:hover, button:hover { filter: brightness(.93); }
.secondary { background: var(--white); color: var(--blue); border-color: #b5c9e1; }
section, .followup { margin-top: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 9px; padding: clamp(16px, 3vw, 26px); }
form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 16px 0; }
label { display: grid; gap: 5px; font-size: 14px; font-weight: bold; }
input, select, textarea { width: 100%; min-height: 40px; padding: 8px 11px; border: 1px solid #b7c9db; border-radius: 5px; background: var(--white); color: var(--ink); font: inherit; }
input[type="checkbox"] { width: 17px; min-height: 17px; vertical-align: middle; }
textarea { resize: vertical; }
summary { cursor: pointer; font-weight: bold; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.page-title h1 { margin-top: 6px; }
.work-actions { padding: 12px 0; }
.tabs { padding: 8px 0; border-bottom: 1px solid var(--line); }
.tabs a { padding: 6px 10px; }
.tabs a[aria-current] { border-bottom: 3px solid var(--blue); }
.metrics { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; margin: 16px 0; }
.metrics article { flex: 1 1 125px; padding: 14px; background: var(--white); }
.metrics strong { display: block; font-size: 28px; color: var(--blue); }
.week, .badge { display: inline-block; padding: 4px 9px; margin: 3px; background: var(--tint); color: var(--blue); border-radius: 4px; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--white); }
th, td { padding: 10px; text-align: left; border-bottom: 1px solid var(--line); }
th { white-space: nowrap; background: var(--tint); }
.thumb { width: 76px; height: 60px; object-fit: cover; border-radius: 4px; }
.notice { padding: 12px; color: var(--blue); background: var(--tint); border-left: 3px solid var(--blue); }
.record-form { display: block; }
.record-form label { margin: 0 0 12px; }
.fields { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.fields label { flex: 1 1 155px; }
fieldset { border: 1px solid var(--line); margin: 16px 0 0; border-radius: 5px; }
.tree-choices { max-height: 190px; overflow: auto; }
.tree-choices label, .photo-card label { display: block; }
.upload-slot { border: 1px solid var(--line); border-radius: 7px; padding: 14px; margin: 12px 0; background: var(--page); }
.preview { display: block; max-width: min(100%, 260px); max-height: 180px; margin: 8px 0; object-fit: contain; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.followup label { margin-top: 10px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; margin-bottom: 12px; }
.photo-card { margin: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--page); }
.photo-card.single { max-width: 530px; }
.photo-card img { display: block; width: 100%; height: 245px; object-fit: contain; }
.photo-card figcaption { padding: 10px; overflow-wrap: anywhere; }
.photo-card figcaption a { display: block; }
.document { max-width: 930px; margin: 0 auto; padding: clamp(12px, 4vw, 36px); background: var(--white); border: 1px solid var(--line); }
.document section { margin-top: 10px; border-width: 1px 0 0; border-radius: 0; padding: 15px 0 5px; }
.document h1 { font-size: clamp(24px, 3vw, 34px); }
.metadata { display: grid; grid-template-columns: 120px 1fr; margin: 0; border-top: 1px solid var(--line); }
.metadata dt, .metadata dd { margin: 0; padding: 8px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.metadata dt { background: var(--tint); font-weight: bold; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.timeline { padding-left: 22px; }
@media(max-width: 700px) {
    .hero, .service-list { grid-template-columns: 1fr; }
    .hero img { height: 210px; }
    .bar, .page-title { align-items: flex-start; flex-wrap: wrap; }
    .bar nav { gap: 10px; font-size: 14px; }
    .metadata { grid-template-columns: 95px 1fr; }
}
@page { size: A4; margin: 14mm; }
@media print {
    body { background: white; color: black; font-size: 11pt; }
    .top, footer, .skip, .no-print, .notice { display: none !important; }
    main, .document { margin: 0; padding: 0; border: 0; max-width: none; }
    .document section { background: white; padding: 9pt 0; }
    .document h2, .document h3 { break-after: avoid; }
    .photo-grid { display: block; }
    .photo-card { break-inside: avoid; page-break-inside: avoid; margin-bottom: 8pt; }
    .photo-card img { height: auto; max-height: 92mm; }
    .document a { color: black; text-decoration: none; }
}

/* Shared form controls */
:root {
    --field-bg: #f6f8fb;
    --field-border: #d9e1e9;
    --field-placeholder: #66768a;
}
label {
    color: var(--ink);
    font-weight: 600;
}
input:not([type="checkbox"]), select, textarea {
    min-height: 45px;
    border: 1px solid var(--field-border);
    border-radius: 9px;
    background-color: var(--field-bg);
    font-size: 15px;
    padding: 10px 13px;
}
input::placeholder, textarea::placeholder {
    color: var(--field-placeholder);
    opacity: 1;
}
input:focus, select:focus, textarea:focus {
    outline: 2px solid #6a94c2;
    outline-offset: 1px;
    border-color: #6a94c2;
    background-color: var(--white);
}
input[type="file"] {
    min-width: 0;
    color: var(--muted);
}
input::file-selector-button {
    margin-right: 8px;
    background: var(--white);
    color: var(--blue);
    border: 1px solid var(--field-border);
    border-radius: 5px;
    padding: 5px 7px;
    font: inherit;
    cursor: pointer;
}
.control { position: relative; display: block; }
.control input { display: block; width: 100%; }
.has-icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 14px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    background: var(--field-icon) center / contain no-repeat;
    pointer-events: none;
}
.icon-user { --field-icon: url("field-user.png"); }
.icon-mail { --field-icon: url("field-mail.png"); }
.icon-lock { --field-icon: url("field-lock.png"); }
.icon-clip { --field-icon: url("field-clip.png"); }
.icon-note { --field-icon: url("field-note.png"); }
.has-icon input:not([type="checkbox"]) { padding-left: 42px; }
.has-toggle input:not([type="checkbox"]) { padding-right: 48px; }
.password-toggle {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    width: 44px;
    height: 42px;
    border: 0;
    background: transparent url("field-eye.png") center / 19px no-repeat;
}
.password-toggle[aria-pressed="true"] { background-image: url("field-eye-off.png"); }

.account-page {
    max-width: 492px;
    margin: clamp(14px, 5vw, 44px) auto;
    padding: clamp(20px, 5vw, 38px);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
}
.account-heading { padding-bottom: 12px; }
.account-heading h1 { font-size: 28px; }
.account-heading p, .account-switch, .field-help { color: var(--muted); }
.account-form { display: block; margin: 0; }
.account-group + .account-group {
    border-top: 1px solid var(--line);
    margin-top: 20px;
    padding-top: 18px;
}
.account-group h2 { font-size: 17px; }
.account-group label { display: block; margin: 14px 0 6px; }
.required-mark { color: #a52e3c; padding-left: 2px; }
.field-help { font-size: 13px; margin: 7px 0 0; }
.account-submit { width: 100%; min-height: 46px; margin-top: 24px; }
.account-switch { margin: 16px 0 0; text-align: center; font-size: 14px; }
.record-form { max-width: 980px; margin-inline: auto; }
.record-form .attachment-field { flex-basis: 230px; min-width: 0; }
.record-form .upload-slot { background: #f9fbfd; }

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

.join-consent {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.join-consent a {
    font-size: 13px;
}

@media (max-width: 420px) {
    .join-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* 회원가입·로그인 공통 타이포그래피 */
:is(.signup-page, .login-page) {
    --signup-heading: #0f172b;
    --signup-text: #3b3b3b;
    --signup-muted: #575957;
    --signup-placeholder: #98a2b3;
    --signup-required: #dc2626;
    --signup-link: #1866e1;

    color: var(--signup-text);
    font-family: "Pretendard", "Malgun Gothic", system-ui, sans-serif;
}

:is(.signup-page, .login-page) .account-heading h1 {
    color: var(--signup-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.025em;
}

:is(.signup-page, .login-page) .account-group h2 {
    color: var(--signup-heading);
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: -0.015em;
}

:is(.signup-page, .login-page) .account-heading p {
    color: var(--signup-muted);
    font-size: 14px;
    line-height: 20px;
}

:is(.signup-page, .login-page) .account-group label {
    color: var(--signup-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
}

:is(.signup-page, .login-page) .control input {
    color: var(--signup-text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

:is(.signup-page, .login-page) .control input::placeholder {
    color: var(--signup-placeholder);
    font-weight: 400;
    opacity: 1;
}

:is(.signup-page, .login-page) .required-mark {
    color: var(--signup-required);
    font-size: 13px;
    font-weight: 600;
}

:is(.signup-page, .login-page) .field-help,
:is(.signup-page, .login-page) .account-switch {
    color: var(--signup-muted);
    font-size: 12px;
    line-height: 18px;
}

:is(.signup-page, .login-page) .join-consent a,
:is(.signup-page, .login-page) .account-switch a {
    color: var(--signup-link);
    font-size: 12px;
    font-weight: 500;
}

:is(.signup-page, .login-page) .account-submit {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

@media (min-width: 768px) {
    :is(.signup-page, .login-page) .control input {
        font-size: 12px;
        line-height: 19.5px;
    }
}