@import url("guardian-app-loading.css");
@import url("staff-app-shell.css");

:root { color-scheme: light; --ink: #302b20; --cream: #fff; --line: #e5e8eb; --soft: #f5f6f7; --muted: #667078; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Arial, "맑은 고딕", sans-serif; }
.mobileAppStart { display: none; }
.appStartChecking body { min-height: 100dvh; background: #fff; }
.appStartChecking body > :not(.mobileAppStart) { display: none !important; }
.appStartChecking .mobileAppStart { display: grid; min-height: 100dvh; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; }
.mobileAppStart img { width: 72px; height: 72px; border-radius: 22px; }
.mobileAppStart strong { color: #1f3566; font-size: 22px; }
.mobileAppStart p { margin: 0; color: #667078; font-size: 14px; }
.mobileAppStart button, .mobileAppStart a { min-width: 140px; min-height: 48px; margin-top: 10px; border: 1px solid #1c84c6; border-radius: 12px; background: #1c84c6; color: #fff; font: inherit; font-weight: 800; text-decoration: none; display: grid; place-items: center; padding: 0 16px; box-sizing: border-box; }
.mobileAppStart button[hidden] { display: none; }
.appStartChecking .mobileAppStart[hidden] { display: none; }
a { color: inherit; text-decoration: none; }
.mobileHeader { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; height: calc(64px + env(safe-area-inset-top)); padding: calc(10px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left)); border-bottom: 1px solid rgba(35, 59, 54, .08); background: #ffca28; backdrop-filter: blur(10px); }
.headerMenuButton { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 26px; line-height: 1; }
.mobileHeader strong { margin-right: auto; margin-left: 10px; }
.appMenuShade { position: fixed; z-index: 9; inset: 0; border: 0; background: rgba(0, 0, 0, .35); }
.appMenuShade[hidden], .appMenuDrawer[hidden] { display: none; }
.appMenuOpen { overflow: hidden; overscroll-behavior: none; }
.appMenuDrawer { position: fixed; z-index: 10; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; width: min(84vw, 320px); overscroll-behavior: contain; background: #fff; box-shadow: 4px 0 18px rgba(0, 0, 0, .18); }
.appMenuDrawer header { display: flex; align-items: center; justify-content: space-between; padding: calc(20px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 20px max(20px, env(safe-area-inset-left)); border-bottom: 1px solid var(--line); background: #ffca28; }
.appMenuDrawer header button { width: 36px; height: 36px; border: 0; background: transparent; font-size: 28px; }
.appMenuDrawer nav { display: grid; overflow-y: auto; padding: 10px 16px; }
.appMenuSearch { display: grid; gap: 6px; padding: 4px 0 10px; color: #53625d; font-size: 12px; font-weight: 800; }
.appMenuSearch input { width: 100%; min-height: 42px; border: 1px solid #cfd8d4; border-radius: 9px; padding: 0 12px; background: #fff; font: inherit; }
.appMenuSearch input:focus { border-color: #27756d; outline: 2px solid rgba(39,117,109,.16); }
.appMenuSearchEmpty { margin: 8px 0; padding: 14px; border-radius: 8px; background: #f5f6f7; color: #667078; text-align: center; font-size: 13px; }
.appMenuDrawer details { border-bottom: 1px solid var(--line); }
.appMenuSectionTitle { min-height: 48px; display: flex; align-items: center; color: #53625d; font-size: 13px; font-weight: 800; cursor: pointer; }
summary.appMenuSectionTitle::after { content: '+'; margin-left: auto; font-size: 19px; }
.appMenuDrawer details[open] .appMenuSectionTitle { color: #1d5446; }
.appMenuDrawer details[open] .appMenuSectionTitle::after { content: '−'; }
.appMenuGroup { display: grid; padding: 0; border: 0; }
.appMenuGroup .appMenuSectionTitle { min-height: 34px; margin: 8px 0 0; cursor: default; }
.appMenuDrawer a { display: block; padding: 14px 12px; border-top: 1px solid var(--line); font-weight: 700; }
.appMenuDrawer a.active, .appMenuDrawer a[aria-current="page"] { color: #1d5446; background: #edf6f1; }
.appMenuDrawer footer { padding: 12px 16px; border-top: 1px solid var(--line); }
.appMenuLogout { width: 100%; min-height: 44px; border: 1px solid #a83d3d; border-radius: 10px; background: #fff; color: #8a3030; font: inherit; font-weight: 800; }
.brand img { display: block; width: 146px; height: auto; }
.headerLogin { padding: 8px 12px; border-radius: 8px; background: #1c84c6; color: #fff; font-size: 13px; font-weight: 700; }
.hero { padding: 46px 24px 32px; background: linear-gradient(160deg, #e6f0e7, #fffdf8 68%); }
.eyebrow, .sectionLabel { margin: 0 0 10px; color: #567064; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
h1, h2 { margin: 0; letter-spacing: -.05em; }
h1 { font-size: clamp(31px, 9vw, 40px); line-height: 1.25; }
h2 { font-size: 28px; line-height: 1.3; }
.hero > p:not(.eyebrow) { margin: 18px 0 22px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.heroImage { display: grid; height: 190px; margin: 0 0 22px; place-items: center; border-radius: 24px; background: #dcebdc; overflow: hidden; }
.heroImage img { width: 176px; max-height: 165px; object-fit: contain; }
.primaryButton { display: block; padding: 17px; border-radius: 12px; background: #1c84c6; color: #fff; text-align: center; font-size: 16px; font-weight: 800; }
.secondaryButton { display: block; width: 100%; padding: 15px; border: 1px solid #a83d3d; border-radius: 12px; background: #fff; color: #8a3030; text-align: center; font-size: 15px; font-weight: 800; }
.quickMenu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 18px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.quickMenu a { display: grid; gap: 6px; place-items: center; min-height: 70px; border: 1px solid var(--line); border-radius: 12px; font-size: 12px; font-weight: 700; }
.quickMenu span { font-size: 20px; color: #507563; }
.contentSection { padding: 44px 24px; border-bottom: 8px solid #f2f4f0; }
.intro ul { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.intro li { padding: 17px; border-radius: 14px; background: var(--soft); }
.intro b, .intro span { display: block; }
.intro b { margin-bottom: 5px; font-size: 16px; }
.intro span, .programList p, .location > p, .location > address { color: var(--muted); font-size: 14px; line-height: 1.65; }
.programList { display: grid; gap: 10px; margin-top: 24px; }
.programList article { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.appRole { display: block; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.roleFeatures { display: grid; gap: 4px; margin: 14px 0 0; padding: 12px 0 0 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.programList strong { font-size: 17px; }
.programList p { margin: 7px 0 0; }
.programList a, .mobileGuideLink { display: inline-block; margin-top: 12px; color: #1d5446; text-decoration: underline; text-underline-offset: 4px; font-size: 14px; font-weight: 800; }
.mobileGuideLinks { display: grid; gap: 2px; }
.location { background: #f1f6f0; }
.location > p, .location > address { margin: 12px 0 0; font-style: normal; }
.location .subtext { margin-top: 4px; }
.phone { display: inline-block; margin: 22px 0; font-size: 27px; font-weight: 800; letter-spacing: -.03em; }
.mapButtons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mapButtons a { padding: 14px 8px; border: 1px solid #cbd9cd; border-radius: 10px; background: #fff; text-align: center; font-size: 14px; font-weight: 800; }
.teacherScheduleHead { padding-bottom: 22px; }
.teacherScheduleList { padding-top: 20px; }
.teacherScheduleCard { display: grid; gap: 7px; margin-bottom: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.teacherScheduleCard p, .teacherScheduleCard span { margin: 0; color: var(--muted); font-size: 14px; }
.teacherScheduleCard strong { font-size: 18px; }
.teacherScheduleCard a { margin-top: 5px; color: #315c4a; font-size: 14px; font-weight: 800; }
.reservationRequestDetails { display: grid; gap: 7px; padding-top: 5px; border-top: 1px solid var(--line); }
.reservationRequestDetails summary { color: #315c4a; cursor: pointer; font-size: 14px; font-weight: 800; }
.reservationRequestDetails span { display: block; margin-top: 7px; overflow-wrap: anywhere; white-space: pre-wrap; }
.reservationFilters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 12px; }
.reservationFilters button { min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); font-weight: 800; }
.reservationFilters button[aria-pressed="true"] { border-color: #315c4a; background: #315c4a; color: #fff; }
.recordDetails { display: grid; gap: 7px; padding-top: 5px; border-top: 1px solid var(--line); }
.recordDetails summary { color: #315c4a; cursor: pointer; font-size: 14px; font-weight: 800; }
.recordDetails p { margin-top: 7px; overflow-wrap: anywhere; white-space: pre-wrap; }
.noticeDetails { display: grid; gap: 7px; padding-top: 5px; border-top: 1px solid var(--line); }
.noticeDetails summary { color: #315c4a; cursor: pointer; font-size: 14px; font-weight: 800; }
.noticeDetails p { margin-top: 7px; overflow-wrap: anywhere; white-space: pre-wrap; }
.emptySchedule { padding: 28px 0; color: var(--muted); text-align: center; }
.guardianSummary { padding-top: 0; padding-bottom: 22px; }
.managerSummary { padding-top: 24px; padding-bottom: 22px; }
.managerSummary .guardianStats { grid-template-columns: repeat(2, 1fr); }
.managerPendingSummary { display: grid; gap: 4px; width: 100%; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.managerSummary .managerPendingSummary { padding: 15px 8px; border-radius: 12px; background: var(--soft); text-align: center; }
.managerPendingSummary:focus-visible { outline: 3px solid #315c4a; outline-offset: 5px; border-radius: 6px; }
.managerPaymentCancel { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.managerPaymentAmounts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; margin: 5px 0; padding: 10px; border-radius: 10px; background: var(--soft); }
.managerPaymentAmounts div { display: flex; justify-content: space-between; gap: 6px; }
.managerPaymentAmounts dt { color: var(--muted); font-size: 12px; }
.managerPaymentAmounts dd { margin: 0; font-size: 13px; font-weight: 800; }
.managerPaymentAmounts .pending { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 7px; color: #9b3f2e; }
.managerPaymentMeta { display: flex; flex-wrap: wrap; gap: 5px 12px; }
.managerPaymentMeta span { overflow-wrap: anywhere; }
.managerPaymentCancel summary { color: #315c4a; font-size: 14px; font-weight: 800; cursor: pointer; }
.managerPaymentCancel form { display: grid; gap: 8px; margin-top: 10px; }
.managerPaymentCancel label { display: grid; gap: 5px; color: var(--muted); font-size: 13px; }
.managerPaymentCancel input, .managerPaymentCancel button { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; }
.managerPaymentCancel button { background: #315c4a; color: #fff; font-weight: 800; }
.managerPaymentCancel button:disabled { opacity: .55; }
.managerPaymentEdit { min-height: 44px; border: 1px solid #315c4a; border-radius: 10px; background: #fff; color: #315c4a; font-weight: 800; }
.managerPaymentCreate > summary { color: #315c4a; font-size: 18px; font-weight: 800; cursor: pointer; }
.managerPaymentCreate form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.managerPaymentCreate label { display: grid; gap: 5px; color: var(--muted); font-size: 13px; }
.managerPaymentCreate label:first-child, .managerPaymentCreate label:last-of-type, .managerPaymentCreate button { grid-column: 1 / -1; }
.managerPaymentCreate input, .managerPaymentCreate select, .managerPaymentCreate button { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: #fff; font: inherit; }
.managerPaymentCreate button { background: #1c84c6; color: #fff; font-weight: 800; }
.managerPaymentCreate #managerPaymentEditCancel { background: #fff; color: #315c4a; }
.managerPaymentCreate button:disabled { opacity: .55; }
.managerPaymentCalculation { grid-column: 1 / -1; margin: 0; padding: 10px; border-radius: 10px; background: #eef7f3; color: #315c4a; font-weight: 700; }
.managerPaymentCalculation.invalid { background: #fff0ee; color: #a93226; }
.managerPaymentCalculation.warning { background: #fff8df; color: #745600; }
.managerPaymentExisting { grid-column: 1 / -1; margin: 0; color: #745600; font-size: 13px; line-height: 1.5; }
.managerPaymentExisting button { min-height: 36px; margin-top: 6px; border: 1px solid #987200; background: #fff; color: #745600; }
.managerPaymentExisting [data-existing-confirm] { display: block; margin-bottom: 4px; color: #a93226; }
.managerFinanceHistoryDialog { width: min(92vw, 520px); max-height: 88vh; border: 0; border-radius: 16px; padding: 18px; }
.managerFinanceHistoryDialog::backdrop { background: rgba(20, 28, 25, .6); }
.managerFinanceHistoryDialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.managerFinanceHistoryDialog header h2 { margin: 0; }
.managerFinanceHistoryDialog header button { min-height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.managerFinanceHistoryDialog [data-list] { display: grid; gap: 10px; overflow: auto; }
.managerFinanceHistoryDialog article { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #f8faf9; }
.managerFinanceHistoryDialog article p { margin: 6px 0 0; overflow-wrap: anywhere; }
.managerPaymentRefresh { width: 100%; min-height: 44px; margin: 8px 0; border: 1px solid #315c4a; border-radius: 10px; background: #fff; color: #315c4a; font-weight: 800; }
.managerPaymentRefresh:disabled { opacity: .55; }
.managerFinanceConnection { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: #eef7f2; color: #315c4a; font-size: 13px; font-weight: 700; }
.managerFinanceConnection.offline { background: #fff4f2; color: #7f251d; }
.managerPaymentLastUpdated { margin: 4px 0 10px; color: #52615b; font-size: 12px; }
.managerPaymentLastUpdated.stale { color: #a93226; font-weight: 700; }
.managerFinanceLoadFailure { display: grid; gap: 10px; padding: 16px; border: 1px solid #d7a8a2; border-radius: 12px; background: #fff4f2; color: #7f251d; }
.managerFinanceLoadFailure p { margin: 0; }
.managerFinanceLoadFailure button { min-height: 44px; border: 1px solid #7f251d; border-radius: 10px; background: #fff; color: #7f251d; font-weight: 800; }
.managerPaymentPager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 16px; }
.managerPaymentPager span { color: var(--muted); font-size: 14px; text-align: center; }
.managerPaymentPager button { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #315c4a; font-weight: 800; }
.managerPaymentPager button:disabled { color: #8a918d; opacity: .55; }
.managerPaymentSearch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.managerPaymentSearch label { display: grid; gap: 5px; color: var(--muted); font-size: 13px; }
.managerPaymentSearch input, .managerPaymentSearch select, .managerPaymentSearch button { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: #fff; font: inherit; }
.managerPaymentSearch button { color: #315c4a; font-weight: 800; }
.managerPaymentSearch button[type="submit"] { background: #315c4a; color: #fff; }
.managerPaymentSearch button:disabled { opacity: .55; }
.managerPaymentResultSummary { margin: 8px 0 14px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.managerReceiptDialog { width: min(92vw, 430px); max-height: 90vh; border: 0; border-radius: 16px; padding: 20px; color: var(--ink); }
.managerReceiptDialog::backdrop { background: rgba(20, 28, 25, .6); }
.managerReceiptDialog article { display: grid; gap: 18px; }
.managerReceiptDialog header { text-align: center; }
.managerReceiptDialog header p, .managerReceiptDialog h2 { margin: 0 0 6px; }
.managerReceiptDialog dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; }
.managerReceiptDialog dt { color: var(--muted); }
.managerReceiptDialog dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.managerReceiptDialog footer { border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); font-size: 12px; }
.managerReceiptDialog [data-stamp] { display: block; width: 72px; max-height: 72px; margin: 8px 0 0 auto; object-fit: contain; }
.managerReceiptDialog [data-stamp][hidden] { display: none; }
.managerReceiptActions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.managerReceiptActions button { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 800; }
.managerReceiptActions button:first-child { background: #315c4a; color: #fff; }
.managerReceiptActions [data-print] { grid-column: 1 / -1; }
.managerPrintHistory { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.managerPrintHistory > summary { color: #315c4a; font-weight: 800; cursor: pointer; }
.managerPrintHistorySearch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.managerPrintHistorySearch .wide { grid-column: 1 / -1; }
.managerPrintHistorySearch label { display: grid; gap: 4px; color: var(--muted); font-size: 13px; }
.managerPrintHistorySearch input, .managerPrintHistorySearch button { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: #fff; font: inherit; }
.managerPrintHistorySearch button { color: #315c4a; font-weight: 800; }
.managerPrintHistorySearch button[type="submit"] { background: #315c4a; color: #fff; }
.managerPrintHistoryHead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0; }
.managerPrintHistoryHead p { margin: 0; color: var(--muted); font-size: 13px; }
.managerPrintHistoryHead button { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #315c4a; font-weight: 800; }
.managerPrintHistoryCard { display: grid; gap: 5px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.managerPrintHistoryCard span, .managerPrintHistoryCard time { color: var(--muted); font-size: 13px; }
.managerPrintHistoryCard button { min-height: 40px; margin-top: 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #315c4a; font-weight: 800; }
.managerPrintHistoryCard button:disabled { opacity: .55; }
.guardianStats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.guardianStats article { display: grid; gap: 4px; padding: 15px 8px; border-radius: 12px; background: var(--soft); text-align: center; }
.guardianSummaryLink { display: grid; gap: 4px; padding: 15px 8px; border-radius: 12px; background: var(--soft); color: inherit; text-align: center; }
.guardianStats b { font-size: 24px; }
.guardianStats span { color: var(--muted); font-size: 12px; }
.nextSchedule { display: grid; gap: 4px; margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.nextSchedule span, .nextSchedule small { color: var(--muted); font-size: 13px; }
.nextSchedule strong { font-size: 16px; }
.appMenuDrawer .chatNavBadge { display: inline-grid; min-width: 18px; height: 18px; margin-left: 5px; place-items: center; border-radius: 999px; padding: 0 5px; background: #d94841; color: #fff; font-size: 10px; font-style: normal; font-weight: 900; }
@media (min-width: 768px) { body { max-width: 480px; margin: 0 auto; box-shadow: 0 0 30px rgba(35, 59, 54, .12); } .mobileHeader { width: min(100%, 480px); margin: auto; } }
@media print { body.managerReceiptPrinting > *:not(.managerReceiptDialog) { display: none !important; } .managerReceiptDialog { position: static; width: 100%; max-width: none; max-height: none; border-radius: 0; } .managerReceiptActions { display: none; } }
