*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:#f5f6f8;-webkit-font-smoothing:antialiased;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,Helvetica Neue,Arial,sans-serif}.page{max-width:1080px;margin:0 auto;padding:24px 20px 64px}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px;flex-wrap:wrap}.page-title{font-size:22px;font-weight:600;color:#1f2329;margin:0 0 4px;letter-spacing:.3px}.page-sub{font-size:13px;color:#8a9099;margin:0}.card{background:#fff;border:1px solid #ecedf0;border-radius:14px;padding:20px;box-shadow:0 1px 2px #1f23290a}.card+.card{margin-top:16px}.card-title{font-size:14px;font-weight:600;color:#1f2329;margin:0 0 14px;display:flex;align-items:center;justify-content:space-between}.section-gap{margin-top:16px}.item-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}.item-card{border:1px solid #ecedf0;border-radius:12px;padding:14px 16px;background:#fff;display:flex;align-items:center;gap:12px;transition:border-color .15s ease,box-shadow .15s ease}.item-card.is-active{border-color:var(--item-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--item-color) 18%,transparent)}.item-card.is-off{opacity:.55}.item-dot{width:12px;height:12px;border-radius:50%;flex:none;background:var(--item-color)}.item-body{flex:1;min-width:0}.item-name{font-size:14px;font-weight:600;color:#1f2329;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item-meta{font-size:12px;color:#8a9099;margin-top:2px}.item-actions{display:flex;gap:4px;flex:none}.hint-text{font-size:12px;color:#8a9099;margin-top:10px}.stat-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px}.stat-cell{background:#fafbfc;border:1px solid #f0f1f3;border-radius:10px;padding:12px 14px}.stat-label{font-size:12px;color:#8a9099;margin-bottom:4px}.stat-value{font-size:22px;font-weight:600;color:#1f2329;line-height:1.2}.stat-value small{font-size:12px;font-weight:400;color:#8a9099;margin-left:2px}.cal-weekday{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin-bottom:6px}.cal-weekday span{text-align:center;font-size:12px;color:#8a9099}.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}.cal-cell{position:relative;aspect-ratio:1 / 1;min-height:62px;border:1px solid #f0f1f3;border-radius:10px;background:#fff;padding:7px 8px;cursor:pointer;transition:border-color .15s ease,background .15s ease;display:flex;flex-direction:column;justify-content:space-between;text-align:left;font-family:inherit}.cal-cell:hover{border-color:#c8cdd4}.cal-cell.is-outside{background:#fafbfc;color:#c8cdd4;cursor:default}.cal-cell.is-today{border-color:#5b8def;box-shadow:0 0 0 2px #5b8def29}.cal-cell.is-future{background:#fafbfc;color:#c8cdd4;cursor:not-allowed}.cal-daynum{font-size:13px;font-weight:600;color:inherit}.cal-dots{display:flex;gap:4px;flex-wrap:wrap}.cal-dot{width:9px;height:9px;border-radius:50%;background:var(--dot-color, #ccc)}.cal-dot.is-makeup{border:1.5px dashed var(--dot-color, #b58a00);background:color-mix(in srgb,var(--dot-color, #b58a00) 30%,#ffffff)}.cal-flag{position:absolute;top:6px;right:7px;font-size:10px;color:#b58a00}.heat-wrap{overflow-x:auto;padding-bottom:6px}.heat-months{display:grid;grid-template-columns:repeat(53,13px);gap:3px;margin:0 0 6px 26px;min-width:790px}.heat-months span{font-size:11px;color:#8a9099;white-space:nowrap}.heat-body{display:flex;gap:6px;min-width:790px}.heat-weekdays{display:grid;grid-template-rows:repeat(7,13px);gap:3px;font-size:10px;color:#b8bec6;width:20px;flex:none}.heat-weekdays span{height:13px;line-height:13px}.heat-grid{flex:1;display:grid;grid-auto-flow:column;grid-template-rows:repeat(7,13px);grid-auto-columns:13px;gap:3px}.heat-cell{width:13px;height:13px;border-radius:3px;background:#f0f1f3}.heat-cell.lv1{background:#d6e6ff}.heat-cell.lv2{background:#a8c8f5}.heat-cell.lv3{background:#6f9fe8}.heat-cell.lv4{background:#3f6fce}.heat-cell.is-makeup{position:relative}.heat-cell.is-makeup:after{content:"";position:absolute;top:1px;right:1px;width:0;height:0;border-top:4px solid #b58a00;border-left:4px solid transparent}.heat-legend{display:flex;align-items:center;gap:5px;margin-top:10px;font-size:11px;color:#8a9099;justify-content:flex-end}.heat-legend i{width:12px;height:12px;border-radius:3px;display:inline-block;background:#f0f1f3}.heat-legend .legend-makeup{position:relative;background:#6f9fe8!important}.heat-legend .legend-makeup:after{content:"";position:absolute;top:1px;right:1px;width:0;height:0;border-top:4px solid #b58a00;border-left:4px solid transparent}.month-bar-row{display:flex;align-items:center;gap:10px;padding:5px 0}.month-bar-label{font-size:12px;color:#646a73;width:34px;flex:none}.month-bar-track{flex:1;height:8px;background:#f0f1f3;border-radius:4px;overflow:hidden}.month-bar-fill{height:100%;border-radius:4px;background:#a8c8f5;transition:width .3s ease}.month-bar-value{font-size:12px;color:#8a9099;width:42px;text-align:right;flex:none}.nfc-url{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;background:#f7f8fa;border:1px solid #ecedf0;border-radius:8px;padding:8px 10px;word-break:break-all;color:#4a5058}.nfc-item-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #f0f1f3;flex-wrap:wrap}.nfc-item-row:last-child{border-bottom:none}.auth-wrap{min-height:100vh;background:#f5f6f8;display:flex;align-items:center;justify-content:center;padding:24px 16px}.auth-box{width:100%;max-width:400px;background:#fff;border:1px solid #ecedf0;border-radius:16px;padding:28px 26px;box-shadow:0 2px 10px #1f23290d}.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:22px}.auth-logo{width:38px;height:38px;border-radius:11px;background:linear-gradient(135deg,#5b8def,#7fb0f5);flex:none;position:relative}.auth-logo:after{content:"";position:absolute;left:11px;top:10px;width:9px;height:9px;border-radius:50%;background:#fff;box-shadow:0 0 0 4px #ffffff59}.auth-title{font-size:19px;font-weight:600;color:#1f2329;line-height:1.3}.auth-sub{font-size:12px;color:#8a9099;margin-top:2px}.auth-switch{margin-top:18px;padding-top:16px;border-top:1px solid #f0f1f3;text-align:center;font-size:13px;color:#8a9099}.auth-switch a{color:#5b8def;cursor:pointer;margin-left:4px;text-decoration:none}.auth-switch a:hover{text-decoration:underline}.auth-disabled-hint{color:#b8bec6;margin-left:4px}.nfc-page{min-height:100vh;background:#f5f6f8;display:flex;align-items:center;justify-content:center;padding:24px 16px}.nfc-box{width:100%;max-width:400px;background:#fff;border-radius:18px;border:1px solid #ecedf0;padding:28px 24px;text-align:center;box-shadow:0 2px 10px #1f23290d}.nfc-box h1{font-size:18px;font-weight:600;color:#1f2329;margin:0 0 6px}.nfc-box .nfc-date{font-size:13px;color:#8a9099;margin:0 0 20px}.nfc-target{display:flex;gap:8px;justify-content:center;margin-bottom:18px;flex-wrap:wrap}.nfc-target button{border:1px solid #ecedf0;background:#fff;border-radius:999px;padding:7px 16px;font-size:13px;cursor:pointer;color:#4a5058;font-family:inherit;transition:all .15s ease}.nfc-target button.on{color:#fff;font-weight:500}.nfc-target button:disabled{opacity:.45;cursor:not-allowed}.nfc-checkin-btn{width:100%;height:48px;border:none;border-radius:12px;background:#5b8def;color:#fff;font-size:15px;font-weight:500;cursor:pointer;font-family:inherit}.nfc-checkin-btn:disabled{background:#d0d4d9;cursor:not-allowed}.nfc-checkin-btn.ok{background:#52a35a}.nfc-msg{font-size:13px;margin-top:14px;min-height:20px}.nfc-msg.err{color:#d4380d}.nfc-msg.ok{color:#389e0d}.nfc-back{display:inline-block;margin-top:18px;font-size:12px;color:#8a9099;text-decoration:none}.empty-tip{text-align:center;color:#8a9099;font-size:13px;padding:28px 0}.settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}@media (max-width: 640px){.settings-grid{grid-template-columns:1fr}.page{padding:16px 12px 48px}.cal-grid,.cal-weekday{gap:4px}.cal-cell{min-height:48px;min-width:0;padding:4px 5px;aspect-ratio:auto;border-radius:8px}.cal-daynum{font-size:12px}.cal-dots{gap:3px}.cal-dot{width:7px;height:7px}.cal-flag{top:3px;right:4px;font-size:9px}.stat-value{font-size:19px}}
