/* 한망울 편의 도구 — 디자인 토큰 "제도판" (2026-11-29 도구 플랫폼 담당)
   색: 제도 용지 / 흑연 / 청사진 / 모눈선 / 인주(서명 완료·도장에만)
   시그니처: 머리글 아래 모눈 눈금자 띠 하나. 나머지는 조용하게.
   전자서명 화면(esign.css)이 쓰는 --mu-* 이름은 아래 호환 변수로 이어 줌 */

:root {
    --t-paper: #f3f6f9;      /* 제도 용지 — 페이지 밑색 */
    --t-sheet: #ffffff;      /* 카드 면 */
    --t-graphite: #2a2f36;   /* 흑연 — 본문 강조 */
    --t-graphite-soft: #59626e; /* 보조 글자 */
    --t-blue: #2c5d95;       /* 청사진 — 주 색 */
    --t-blue-deep: #1f4573;  /* 눌림·링크 */
    --t-grid: #d5dfea;       /* 모눈선 — 테두리·구분 */
    --t-grid-soft: #e8eef5;
    --t-seal: #b5432e;       /* 인주 — 완료 도장·경고 */
    --t-amber: #a8701c;      /* 기다리는 중 */
    --t-radius: 10px;
    --t-font: "Pretendard Variable", Pretendard, "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif; /* 외부 글꼴 불러오기 없음(처리방침 — 외부 CDN 안 씀) */
    --t-mono: Consolas, "D2Coding", ui-monospace, monospace;

    /* 전자서명 화면 호환 */
    --mu-ink: var(--t-graphite);
    --mu-ink-soft: var(--t-graphite-soft);
    --mu-teal: var(--t-blue);
    --mu-teal-deep: var(--t-blue-deep);
    --mu-dew: var(--t-grid);
    --mu-gold: var(--t-amber);
    --mu-coral: var(--t-seal);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--t-font);
    font-size: clamp(14px, 0.35vw + 13px, 17px);
    line-height: 1.6;
    color: var(--t-graphite-soft);
    background: var(--t-paper);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: var(--t-blue-deep); }
:focus-visible { outline: 3px solid var(--t-blue); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
img { max-width: 100%; }

/* 머리글 */
.t-header { background: var(--t-sheet); border-bottom: 1px solid var(--t-grid); }
.t-header__inner {
    max-width: min(1200px, 94vw); margin: 0 auto; padding: 12px 0;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.t-brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--t-graphite); }
.t-brand__name { font-size: 1.15em; font-weight: 800; letter-spacing: -0.01em; }
.t-brand__sub { font-size: 0.8em; color: var(--t-graphite-soft); }
.t-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; align-items: center; }
.t-nav a, .t-nav button {
    font: inherit; font-size: 0.92em; font-weight: 600; color: var(--t-graphite);
    text-decoration: none; padding: 6px 12px; border-radius: 8px; border: 0; background: none; cursor: pointer;
}
.t-nav a:hover, .t-nav button:hover { background: var(--t-grid-soft); }
.t-nav a.is-active { color: var(--t-blue-deep); background: var(--t-grid-soft); }
.t-nav__me { font-size: 0.85em; color: var(--t-graphite-soft); padding: 0 6px; }

/* 시그니처 — 모눈 눈금자 띠 (1mm·5mm·10mm 눈금) */
.t-ruler {
    height: 14px;
    background-color: var(--t-sheet);
    background-image:
        linear-gradient(to right, var(--t-blue) 1px, transparent 1px),
        linear-gradient(to right, rgba(44, 93, 149, 0.55) 1px, transparent 1px),
        linear-gradient(to right, var(--t-grid) 1px, transparent 1px);
    background-size: 100px 14px, 50px 9px, 10px 5px;
    background-repeat: repeat-x;
    background-position: 0 0, 0 0, 0 0;
    border-bottom: 1px solid var(--t-grid);
}

/* 본문 */
.t-main { flex: 1; width: 100%; }
.t-wrap { max-width: min(1080px, 94vw); margin: 0 auto; padding: clamp(20px, 4vw, 40px) 0; }
.t-page-title { font-size: clamp(1.4em, 2vw + 1em, 2em); font-weight: 800; color: var(--t-graphite); margin: 0 0 6px; letter-spacing: -0.02em; }
.t-lead { margin: 0 0 24px; }

.t-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.t-tool {
    display: grid; gap: 8px; align-content: start;
    background: var(--t-sheet); border: 1px solid var(--t-grid); border-radius: var(--t-radius);
    padding: 22px; text-decoration: none; color: inherit;
    transition: border-color .15s, transform .15s;
}
.t-tool:hover { border-color: var(--t-blue); transform: translateY(-2px); }
.t-tool__name { font-size: 1.15em; font-weight: 800; color: var(--t-graphite); }
.t-tool__desc { margin: 0; font-size: 0.93em; }

/* 공용 부품 (전자서명 화면이 쓰는 이름 유지) */
.mu-title { font-size: clamp(1.4em, 2vw + 1em, 1.9em); font-weight: 800; color: var(--t-graphite); margin: 0 0 8px; letter-spacing: -0.02em; }
.mu-card { background: var(--t-sheet); border: 1px solid var(--t-grid); border-radius: var(--t-radius); padding: clamp(16px, 2.5vw, 24px); }
.mu-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font: inherit; font-weight: 700; font-size: 0.93em; line-height: 1.4;
    padding: 9px 18px; border-radius: 8px; border: 1px solid var(--t-blue);
    background: var(--t-blue); color: #fff; cursor: pointer; text-decoration: none;
}
.mu-btn:hover { background: var(--t-blue-deep); border-color: var(--t-blue-deep); color: #fff; }
.mu-btn:disabled { opacity: .5; cursor: not-allowed; }
.mu-btn--ghost { background: var(--t-sheet); color: var(--t-blue-deep); border-color: var(--t-grid); }
.mu-btn--ghost:hover { background: var(--t-grid-soft); color: var(--t-blue-deep); border-color: var(--t-blue); }
.mu-btn--danger { background: var(--t-sheet); color: var(--t-seal); border-color: var(--t-seal); }
.mu-btn--danger:hover { background: var(--t-seal); color: #fff; border-color: var(--t-seal); }
.btn-sm { padding: 5px 12px; font-size: 0.85em; }
.mu-input {
    width: 100%; font: inherit; color: var(--t-graphite);
    padding: 9px 12px; border: 1px solid var(--t-grid); border-radius: 8px; background: var(--t-sheet);
}
.mu-input:focus { border-color: var(--t-blue); outline: none; box-shadow: 0 0 0 3px rgba(44, 93, 149, .18); }
.mu-badge { display: inline-block; font-size: 0.78em; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--t-grid-soft); color: var(--t-blue-deep); }
.mu-badge--gold { color: var(--t-amber); background: #f6eedf; }
.mu-badge--coral { color: var(--t-seal); background: #f7e6e2; }
.custom_home { display: block; }

/* 계정 화면 */
.t-auth { max-width: 440px; margin: 0 auto; display: grid; gap: 14px; }
.t-field { display: grid; gap: 6px; }
.t-field > label { font-weight: 700; color: var(--t-graphite); font-size: 0.93em; }
.t-help { font-size: 0.85em; margin: 0; }
.t-check { display: flex; gap: 8px; align-items: flex-start; font-size: 0.93em; }
.t-check input { margin-top: 4px; }
.t-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.t-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; font-size: 0.88em; }

/* 바닥글 */
.t-footer { border-top: 1px solid var(--t-grid); background: var(--t-sheet); font-size: 0.82em; }
.t-footer__inner { max-width: min(1200px, 94vw); margin: 0 auto; padding: 18px 0; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.t-footer a { color: var(--t-graphite-soft); margin-right: 14px; }

.loading_area { position: fixed; inset: 0; background: rgba(243, 246, 249, .6); display: grid; place-items: center; z-index: 9999; }

@media (max-width: 640px) {
    .t-nav { margin-left: 0; width: 100%; }
    .t-brand__sub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* 설문조사 */
.sv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sv-stack { display: grid; gap: 14px; }
.sv-edit, .sv-respond { display: grid; gap: 16px; max-width: 820px; }
.sv-empty { display: grid; gap: 12px; justify-items: start; }
.sv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sv-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sv-item__main { display: grid; gap: 4px; min-width: 0; }
.sv-item__title { font-weight: 800; color: var(--t-graphite); overflow-wrap: anywhere; }
.sv-item__meta { font-size: 0.85em; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sv-item__actions, .sv-bar, .sv-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sv-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.sv-q { display: grid; gap: 10px; border-left: 4px solid var(--t-blue); }
.sv-q__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.sv-q__tools { display: flex; gap: 6px; }
.sv-opts { display: grid; gap: 6px; }
.sv-days { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9em; }
.sv-days .mu-input { width: 5em; }
.sv-desc { margin: 0; white-space: normal; overflow-wrap: anywhere; }
.sv-answer { border: 1px solid var(--t-grid); display: grid; gap: 8px; margin: 0; min-width: 0; }
.sv-answer legend { font-weight: 700; color: var(--t-graphite); padding: 0 4px; overflow-wrap: anywhere; }
.sv-req { color: var(--t-seal); font-weight: 600; font-size: 0.85em; }
.sv-scale { display: flex; gap: 6px; flex-wrap: wrap; }
.sv-scale label { display: grid; place-items: center; }
.sv-scale input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sv-scale span { min-width: 2.4em; padding: 6px 0; text-align: center; border: 1px solid var(--t-grid); border-radius: 8px; cursor: pointer; background: var(--t-sheet); }
.sv-scale input:checked + span { background: var(--t-blue); color: #fff; border-color: var(--t-blue); }
.sv-scale input:focus-visible + span { outline: 3px solid var(--t-blue); outline-offset: 2px; }
.sv-report { font-size: 0.88em; }
.sv-report summary { cursor: pointer; color: var(--t-graphite-soft); }
.sv-bar-row { display: grid; grid-template-columns: minmax(80px, 30%) 1fr auto; gap: 10px; align-items: center; font-size: 0.9em; }
.sv-bar-label { overflow-wrap: anywhere; }
.sv-bar-track { height: 12px; background: var(--t-grid-soft); border-radius: 6px; overflow: hidden; }
.sv-bar-fill { display: block; height: 100%; background: var(--t-blue); }
.sv-bar-num { font-family: var(--t-mono); font-size: 0.85em; white-space: nowrap; }
.sv-texts { margin: 0; padding-left: 18px; display: grid; gap: 6px; overflow-wrap: anywhere; }
.sv-table-wrap { overflow-x: auto; }
.sv-table { border-collapse: collapse; font-size: 0.85em; min-width: 100%; }
.sv-table th, .sv-table td { border: 1px solid var(--t-grid); padding: 6px 8px; text-align: left; vertical-align: top; overflow-wrap: anywhere; max-width: 24em; }
.sv-table th { background: var(--t-grid-soft); color: var(--t-graphite); }
@media (max-width: 640px) {
    .sv-bar-row { grid-template-columns: 1fr auto; }
    .sv-bar-track { grid-column: 1 / -1; grid-row: 2; }
}

/* 확인 창(SweetAlert) — 토큰 색으로 */
.swal2-popup { font-family: var(--t-font) !important; border-radius: var(--t-radius) !important; }
.swal2-title { font-size: 1.15em !important; color: var(--t-graphite) !important; line-height: 1.5 !important; white-space: pre-line; }
.swal2-confirm { background: var(--t-blue) !important; }
.swal2-deny { background: var(--t-graphite-soft) !important; }
.swal2-styled:focus-visible { box-shadow: 0 0 0 3px rgba(44, 93, 149, .35) !important; }
.sv-settings { align-items: start; }
@media (max-width: 640px) {
    .t-nav a, .t-nav button { padding: 5px 8px; }
    .t-wrap { max-width: 92vw; }
}
#svResults { display: grid; gap: 14px; max-width: min(980px, 92vw); }
#svResults > .t-help { margin: 0; }
#esmListView .mu-card { overflow-x: auto; }

/* 제공 서비스 (공통 목록) */
.t-services { max-width: min(1200px, 94vw); margin: 0 auto; padding: 20px 0 4px; }
.t-services__title { font-size: 0.95em; font-weight: 800; color: var(--t-graphite); margin: 0 0 10px; }
.t-services__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px; }
.t-services__list a, .t-services__here { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--t-graphite-soft); margin: 0; }
.t-services__list a:hover { background: var(--t-grid-soft); }
.t-services__list img { border-radius: 6px; object-fit: cover; }
.t-services__list b { display: block; color: var(--t-graphite); font-size: 0.95em; }
.t-services__list .is-here .t-services__here { background: var(--t-grid-soft); }
.t-footer .t-services__list a { margin-right: 0; }
.t-footer__inner { align-items: center; }
.t-footer__links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.t-footer__links a { margin-right: 0; }

/* 간편 로그인 단추 — 각 회사 단추 가이드(구글 Sign in with Google·네이버 로그인·카카오 로그인), 한망울 홈페이지와 같은 모양 */
.t-social { display: grid; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--t-grid); }
.gsi-material-button, .naver-login-btn, .kakao-login-btn { box-sizing: border-box; display: flex; align-items: center; width: 100%; height: 48px; border-radius: 8px; text-decoration: none; position: relative; overflow: hidden; cursor: pointer; white-space: nowrap; }
.gsi-material-button { background: #fff; border: 1px solid #747775; color: #1f1f1f; padding: 0 12px; font-family: 'Roboto', arial, sans-serif; font-size: 14px; letter-spacing: .25px; transition: box-shadow .218s; }
.gsi-material-button .gsi-material-button-content-wrapper { display: flex; align-items: center; width: 100%; height: 100%; position: relative; }
.gsi-material-button .gsi-material-button-icon { width: 20px; min-width: 20px; height: 20px; margin-right: 10px; }
.gsi-material-button .gsi-material-button-contents { flex-grow: 1; text-align: center; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.gsi-material-button .gsi-material-button-state { position: absolute; inset: 0; opacity: 0; transition: opacity .218s; }
.gsi-material-button:hover { box-shadow: 0 1px 2px 0 rgba(60,64,67,.30), 0 1px 3px 1px rgba(60,64,67,.15); }
.gsi-material-button:hover .gsi-material-button-state { background: #303030; opacity: .08; }
.gsi-material-button:focus-visible .gsi-material-button-state, .gsi-material-button:active .gsi-material-button-state { background: #303030; opacity: .12; }
.naver-login-btn, .kakao-login-btn { justify-content: center; border: none; font-family: var(--t-font); font-size: 15px; font-weight: 700; transition: background-color .2s, box-shadow .2s; }
.naver-login-btn .sns-icon, .kakao-login-btn .sns-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); display: flex; line-height: 0; }
.naver-login-btn { background: #03C75A; color: #fff; }
.naver-login-btn:hover { background: #02b652; box-shadow: 0 1px 2px rgba(0,0,0,.15); color: #fff; }
.naver-login-btn .sns-icon svg { width: 18px; height: 18px; fill: #fff; }
.kakao-login-btn { background: #FEE500; color: rgba(0,0,0,.85); }
.kakao-login-btn:hover { background: #f5dc00; box-shadow: 0 1px 2px rgba(0,0,0,.15); color: rgba(0,0,0,.85); }
.kakao-login-btn .sns-icon svg { width: 20px; height: 20px; fill: #000; }
.t-social-list .ac-link { flex: 1 1 100%; }
.t-notice { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--t-grid-soft); color: var(--t-graphite); font-size: .92em; }
.t-social-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.t-social-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.t-auth > .t-auth { width: 100%; }
.t-signup-cta { margin: 0; text-align: center; font-size: .92em; padding-top: 8px; border-top: 1px solid var(--t-grid); }

/* 한망울 응원하기 (공통 후원 꾸러미) */
.t-support { max-width: min(1200px, 94vw); margin: 0 auto; padding: 14px 0 4px; }
.t-support__lead, .t-support__note { margin: 0 0 8px; font-size: .88em; }
.t-support__note { margin-top: 6px; color: var(--t-graphite-soft); }
.t-support u { text-decoration: none; color: var(--t-blue-deep); font-weight: 700; white-space: nowrap; }

/* 카드·목록 안 행동 단추 — 누르기 편하게(2026-11-29 사용자 "카드형에 글자 버튼은 조금 크게"): 최소 높이 44px·글자 16px·주 행동 채움/보조 테두리 */
.mu-btn { min-height: 44px; font-size: 1rem; padding: 10px 18px; text-align: center; }
.btn-sm { min-height: 44px; font-size: 1rem; padding: 8px 14px; }
.t-actions, .es-actions, .sv-item__actions, .sv-bar, .es-inline > span { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.t-tool .t-actions { margin-top: 6px; }
@media (min-width: 641px) { .btn-sm { min-height: 40px; } }
@media (max-width: 640px) {
    .t-actions, .es-actions, .sv-item__actions, .sv-bar { flex-direction: column; align-items: stretch; }
    .t-actions > .mu-btn, .es-actions > .mu-btn, .sv-item__actions > .mu-btn, .sv-bar > .mu-btn, .sv-bar > label { width: 100%; }
    .sv-item { flex-direction: column; align-items: stretch; }
}

/* 주소 복사 상자 (공용 — 설문 응답 주소·전자서명 서명 링크) */
.t-copybox { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; text-align: left; }
.t-copybox__input { font-family: var(--t-mono); font-size: .92em; }
.t-copy.is-done { background: var(--t-graphite); border-color: var(--t-graphite); color: #fff; }
@media (max-width: 640px) { .t-copybox { grid-template-columns: 1fr; } .t-copybox .mu-btn { width: 100%; } }

/* 설문 응답: 질문 제목을 카드 안 첫 줄로(legend 가 테두리 위에 걸치지 않게), 선택지 누르는 영역 44px, 신고 칸 카드 폭 */
.sv-answer { padding: clamp(16px, 2.5vw, 24px); }
.sv-answer > legend { float: left; width: 100%; padding: 0; margin: 0 0 6px; font-size: 1.05em; font-weight: 800; color: var(--t-graphite); line-height: 1.5; }
.sv-answer > legend + * { clear: both; }
.sv-req { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #f7e6e2; color: var(--t-seal); font-size: .75em; font-weight: 700; vertical-align: middle; }
.sv-answer .t-check { min-height: 44px; align-items: center; gap: 10px; padding: 2px 0; cursor: pointer; }
.sv-answer .t-check input { width: 20px; height: 20px; margin: 0; flex: none; }
.sv-scale span { min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.sv-report { background: var(--t-sheet); border: 1px solid var(--t-grid); border-radius: var(--t-radius); padding: 0 clamp(16px, 2.5vw, 24px); }
.sv-report summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; }
.sv-report[open] { padding-bottom: 16px; }

/* OTP 2단계 인증 (2026-11-29) */
.t-pill { display: inline-block; margin-left: 6px; padding: 1px 10px; border-radius: 999px; background: var(--t-grid-soft); color: var(--t-graphite); font-size: .72em; font-weight: 700; vertical-align: middle; }
.t-pill.is-on { background: var(--t-blue); color: #fff; }
.otp-qr { display: block; width: min(220px, 70vw); height: auto; aspect-ratio: 1; image-rendering: pixelated; border: 1px solid var(--t-grid); border-radius: var(--t-radius); background: #fff; }
.otp-key { font-family: var(--t-mono); word-break: break-all; }
.otp-codes { display: grid; gap: 12px; }
.otp-code-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(9em, 1fr)); gap: 6px 16px; margin: 0; padding-left: 1.6em; font-family: var(--t-mono); font-size: 1.05em; }
.otp-lost { border-top: 1px solid var(--t-grid); padding-top: 8px; display: grid; gap: 10px; }
.otp-lost summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }

/* 오류 안내 화면 */
.t-error { text-align: center; justify-items: center; margin-block: clamp(24px, 8vh, 80px); }
.t-error__code { margin: 0; font-family: var(--t-mono); font-size: clamp(2.4rem, 8vw, 3.6rem); font-weight: 800; color: var(--t-blue); letter-spacing: .08em; line-height: 1; }
.t-error .t-actions { justify-content: center; }

/* 단추 바탕 규칙 (2026-11-29): 공용 클래스를 깜빡한 단추도 기본 모양으로 나오지 않게 — 보조(ghost) 모양, 44px·16px.
   :where 로 특이성 0 — 화면별 클래스(.es-doctab 등)가 언제나 이김 */
:where(button, input[type="submit"], input[type="button"], input[type="reset"]):not([class]) {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 44px; padding: 10px 18px; font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.4;
    border-radius: 8px; border: 1px solid var(--t-grid); background: var(--t-sheet); color: var(--t-blue-deep); cursor: pointer;
}
:where(button, input[type="submit"], input[type="button"], input[type="reset"]):not([class]):hover { background: var(--t-grid-soft); border-color: var(--t-blue); }
.t-nav button { min-height: 44px; }
.t-nav a { min-height: 44px; display: inline-flex; align-items: center; }

/* 전자서명 화면의 작은 단추들도 같은 규칙으로 (누르는 영역 44px, 글자 16px 가까이) */
.es-doctab { min-height: 44px; padding: 8px 16px; font-size: .95rem; font-family: inherit; }
.es-pad__clear { min-height: 44px; padding: 8px 14px; font-size: .9rem; font-family: inherit; font-weight: 700; }
.es-box__del { width: 24px; height: 24px; line-height: 24px; font-size: 14px; }
.es-box__del::after { content: ""; position: absolute; inset: -10px; } /* 문서 위 작은 손잡이 — 보이는 크기는 작게, 누르는 영역은 44px */

/* 일정 맞추기 (2026-11-29) — 칸 진하기는 청사진 색 4단계, 가장 많이 겹친 칸은 인주 테두리 */
.t-label { font-weight: 700; color: var(--t-graphite); }
.mt-range { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mt-cal { max-width: 420px; }
.mt-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.mt-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mt-cal__wd { text-align: center; font-size: .8em; color: var(--t-graphite-soft); }
.mt-day { min-height: 44px; border: 1px solid var(--t-grid); border-radius: 8px; background: var(--t-sheet); font: inherit; cursor: pointer; color: var(--t-graphite); }
.mt-day:hover:not(:disabled) { border-color: var(--t-blue); }
.mt-day.is-on { background: var(--t-blue); border-color: var(--t-blue); color: #fff; font-weight: 700; }
.mt-day:disabled { color: #b8c0ca; background: transparent; cursor: default; }
.mt-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mt-tab { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--t-grid); background: var(--t-sheet); font: inherit; font-weight: 700; color: var(--t-graphite); cursor: pointer; }
.mt-tab.is-on { background: var(--t-blue); border-color: var(--t-blue); color: #fff; }
.mt-tz { margin-left: auto; }
.mt-grid-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mt-grid { border-collapse: separate; border-spacing: 2px; user-select: none; -webkit-user-select: none; }
.mt-grid th { font-size: .8em; font-weight: 700; color: var(--t-graphite-soft); padding: 2px 4px; white-space: nowrap; }
.mt-grid .mt-time { position: sticky; left: 0; background: var(--t-sheet); text-align: right; vertical-align: top; font-family: var(--t-mono); font-weight: 500; touch-action: auto; }
.mt-cell { min-width: 52px; height: 26px; border-radius: 4px; background: var(--t-grid-soft); text-align: center; font-size: .78em; font-weight: 700; color: var(--t-graphite); }
.mt-grid--mine .mt-cell { cursor: pointer; touch-action: pan-x; }
.mt-grid--mine .mt-cell.is-on { background: var(--t-blue); }
.mt-heat-1 { background: #cfdcec; } .mt-heat-2 { background: #9fb9d9; } .mt-heat-3 { background: #5f8bbd; color: #fff; } .mt-heat-4 { background: var(--t-blue); color: #fff; }
.mt-cell.is-best { box-shadow: inset 0 0 0 2px var(--t-seal); }
.mt-grid--all .mt-cell { cursor: pointer; }
.mt-best { margin: 0; padding: 10px 12px; border-left: 4px solid var(--t-seal); background: #fbf3f1; border-radius: 6px; line-height: 1.7; }
@media (max-width: 640px) { .mt-range { grid-template-columns: 1fr 1fr; } .mt-tz { margin-left: 0; } .mt-cell { min-width: 44px; height: 30px; } }
@media (prefers-reduced-motion: reduce) { .mt-day, .mt-tab { transition: none; } }
/* 표가 카드·화면 폭을 밀어내지 않게 (넘치면 표 안에서만 가로 스크롤) */
.mt-view, .mt-view .sv-stack, #mtPane { min-width: 0; max-width: 100%; }
.mt-view .sv-stack { grid-template-columns: minmax(0, 1fr); }
.mt-grid-wrap { max-width: 100%; }

/* 참가 신청서 (2026-11-29) */
.sv-seat { margin: 0; font-weight: 700; color: var(--t-graphite); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sv-status { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--t-grid-soft); font-weight: 700; }
.sv-status.is-ok { background: #e3eefa; color: var(--t-blue-deep); }
.sv-status.is-wait { background: #f6eedf; color: var(--t-amber); }
.sv-contact { border-top: 1px solid var(--t-grid); padding-top: 12px; }
.sv-consent { margin: 0; padding-left: 1.3em; font-size: .9em; line-height: 1.7; color: var(--t-graphite-soft); }
