.attendance-menu-entry { margin: 12px 8px; padding: 12px 8px; min-height: 44px; border: 1px solid #567066; border-radius: 8px; background: #fff; color: #184c38; font: inherit; cursor: pointer; }
.attendance-menu-entry[hidden] { display: none !important; }
.attendance-dialog { font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", sans-serif; box-sizing: border-box; width: min(94vw, 440px); max-height: 94dvh; margin: auto; padding: 24px 20px; border: 0; border-radius: 24px; color: #233640; background: #f4fcff; overflow: auto; box-shadow: 0 16px 70px #142d3d44; }
.attendance-dialog::backdrop { background: #172a406b; }
.attendance-dialog.attendance-in { background: #dcf6ff; }
.attendance-dialog.attendance-out { background: #ffe8ef; }
.attendance-dialog.attendance-confirm { background: #fff4df; }
.attendance-content { display: flex; flex-direction: column; align-items: stretch; gap: 12px; text-align: center; }
.attendance-content h2 { margin: 0; font-size: 24px; line-height: 1.4; }
.attendance-content p { margin: 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.attendance-content .attendance-time { font-size: clamp(36px, 12vw, 56px); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.attendance-content .attendance-question { color: #e78416; font-size: 70px; font-weight: 800; }
.attendance-content button { font: inherit; font-weight: 700; min-height: 48px; padding: 12px 16px; border-radius: 12px; cursor: pointer; }
.attendance-primary { border: 0; background: #247992; color: #fff; }
.attendance-out .attendance-primary { background: #b9446f; }
.attendance-confirm .attendance-primary { background: #a75a12; }
.attendance-secondary { border: 1px solid #82959d; color: #304c57; background: #fff; }
.attendance-mascot { width: min(240px, 100%); height: 240px; align-self: center; display: grid; place-items: center; font-size: 80px; color: #247b60; }
.attendance-mascot img, .attendance-mascot canvas { max-width: 100%; width: 240px; height: auto; }
.attendance-content a { color: #185973; padding: 10px; text-decoration: underline; }
.attendance-error { background: #fff5f4; }
@media(max-height: 640px) { .attendance-dialog { padding: 18px 16px; } .attendance-mascot { width: 170px; height: 170px; } .attendance-content { gap: 8px; } }

.attendance-content .attendance-classification { align-self: center; padding: 4px 20px; border-radius: 20px; background: #fff0cc; color: #8d4600; font-size: 20px; font-weight: 800; }
.attendance-classified .attendance-mascot { width: 180px; height: 180px; }

.attendance-reason-label { display: grid; gap: 8px; text-align: left; font-size: 15px; }
.attendance-reason { box-sizing: border-box; width: 100%; border: 1px solid #899ca3; border-radius: 8px; padding: 10px; font: inherit; resize: vertical; background: white; color: #193c48; }
.attendance-reason-error:empty { display: none; }
.attendance-reason-error { color: #a51d3e; font-size: 14px; }
.attendance-has-decision .attendance-mascot { width: 140px; height: 140px; }

.attendance-dialog.attendance-missing-out { background: #c62828; color: #fff; }
.attendance-missing-out .attendance-content h2 { font-size: 23px; text-wrap: balance; }
.attendance-missing-out .attendance-missing-shift { font-size: 18px; font-weight: 700; }
.attendance-missing-out .attendance-primary { background: #fff; color: #a71919; }
.attendance-missing-out .attendance-missing-mascot { width: min(280px, 100%); height: auto; margin-top: 14px; }
.attendance-missing-mascot img { width: 100%; height: auto; display: block; }

.attendance-dialog.attendance-absence { background: #ffb74d; color: #432600; }
.attendance-dialog.attendance-paid-leave { background: #c5e86c; color: #263d09; }
.attendance-dialog.attendance-absence .attendance-primary { background: #9a4a08; color: #fff; }
.attendance-dialog.attendance-paid-leave .attendance-primary { background: #4d7618; color: #fff; }
.attendance-leave-mascot img { width: 100%; height: auto; }
.attendance-content button:disabled { opacity: .6; cursor: default; }
