*,*:before,*:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Hiragino Sans,Noto Sans JP,sans-serif;font-size:16px;line-height:1.5;color:#222;background:#fff}img,table{max-width:100%}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}input[type=date],input[type=month],input[type=time],input[type=number],input[type=text],input[type=email],input[type=search],select,textarea{font:inherit;padding:.5rem;border:1px solid #bbb;border-radius:6px;background:#fff;color:inherit;min-height:44px;max-width:100%}textarea{width:100%;resize:vertical}.hint{color:#777;font-size:.8rem}button{font:inherit;min-height:44px;padding:0 .9rem;border:1px solid #bbb;border-radius:6px;background:#f7f7f7;color:inherit;cursor:pointer}button:disabled{color:#999;background:#f0f0f0;cursor:not-allowed}button.step{min-width:44px;padding:0;font-size:1.1rem}button.primary{flex:1 1 auto;font-weight:600;color:#fff;background:#1565c0;border-color:#1565c0}button.link{min-height:36px;padding:0 .5rem;border:none;background:none;color:#1565c0;text-decoration:underline}button.primary:disabled{color:#eee;background:#90a4ae;border-color:#90a4ae}:root{--header-h: 52px;--safe-top: env(safe-area-inset-top, 0px);--dev-band-h: 26px;--brand: #016bba;--brand-accent: #f4b451;--sat: #1565c0;--sun: #c62828;--approver: #8a4b00;--approver-line: #e08a00;--approver-bg: #fff3e0;--admin: #00574b;--admin-line: #00897b;--admin-bg: #e0f2f1}.page{max-width:48rem;margin:0 auto;padding-left:max(1rem,env(safe-area-inset-left,0px));padding-right:max(1rem,env(safe-area-inset-right,0px))}.spinner{display:inline-block;flex:0 0 auto;width:1em;height:1em;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spinner{display:none}}.segmented{display:flex;width:100%;max-width:20rem}.segmented .seg{flex:1;min-height:44px;margin:0;border:1px solid var(--brand);background:#fff;color:var(--brand);font-weight:600}.segmented .seg:first-child{border-radius:8px 0 0 8px}.segmented .seg:last-child{border-radius:0 8px 8px 0}.segmented .seg+.seg{border-left:none}.segmented .seg.on{background:var(--brand);color:#fff}.segmented .seg:focus-visible{outline:3px solid var(--brand-accent);outline-offset:2px}button.toggle{display:flex;align-items:center;gap:.6rem;width:100%;min-height:44px;padding:0 .25rem;border:none;background:none;text-align:left;color:inherit}button.toggle .knob{position:relative;flex:0 0 auto;width:44px;height:26px;border-radius:13px;background:#b0bec5;transition:background .15s}button.toggle .knob:after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0000004d;transition:transform .15s}button.toggle.on .knob{background:var(--brand)}button.toggle.on .knob:after{transform:translate(18px)}button.toggle .toggle-hint{margin-left:auto;font-size:.8rem;color:#666}@media(prefers-reduced-motion:reduce){button.toggle .knob,button.toggle .knob:after{transition:none}}.teirei-done{margin:0;min-height:44px;display:flex;align-items:center;color:#2e7d32;font-size:.9rem}details.block{border:1px solid #cfd8dc;border-radius:8px;background:#fff}details.block>summary{display:flex;align-items:baseline;gap:.6rem;min-height:44px;padding:.6rem .75rem;cursor:pointer;list-style:none}details.block>summary::-webkit-details-marker{display:none}details.block>summary:after{content:"\25b8";margin-left:auto;color:#607d8b}details.block[open]>summary:after{content:"\25be"}details.block>summary .block-title{font-weight:700;color:var(--brand);flex:0 0 auto}details.block>summary .block-sum{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.85rem;color:#555}details.block .block-body{display:flex;flex-direction:column;gap:.9rem;padding:0 .75rem .9rem}button.block-add{min-height:44px;border:1px dashed var(--brand);background:#f5f9fd;color:var(--brand);font-weight:600}button.block-remove{align-self:flex-end;color:#c62828}button.day-clear{align-self:flex-start;color:#c62828}.segmented .seg:disabled{color:#b0bec5;border-color:#cfd8dc;background:#fafafa}.segmented .seg{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;line-height:1.2;padding:.2rem .3rem}.segmented .seg .seg-sub{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.7rem;font-weight:400}.unsaved-badge{align-self:flex-start;margin:0;padding:.2rem .6rem;border-radius:999px;background:#fff3e0;color:#8a4b00;font-size:.8rem}.bulk-badge{align-self:flex-start;margin:0;padding:.2rem .6rem;border-radius:999px;background:#e3f2fd;color:#0d47a1;font-size:.8rem}.onboarding{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .5rem;margin:.5rem 0;padding:.25rem .25rem .25rem .75rem;border:1px solid #ffcc80;border-radius:8px;background:#fff8e1}.onboarding-title{flex:1 1 auto;min-width:0;margin:0;font-weight:700;color:#6d4c00}.onboarding-actions{display:flex;align-items:center;gap:.25rem;margin-left:auto}.onboarding-actions button{min-height:44px}.onboarding-actions .onboarding-close{min-width:44px;padding:0;border:none;background:none;color:#6d4c00}.adm-head{display:flex;align-items:center;gap:.25rem .5rem;flex-wrap:wrap;margin:.5rem 0}.adm-head h2{margin:0;font-size:1.1rem;color:var(--admin)}.adm-cards{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem}.adm-card{width:100%;text-align:left;display:flex;flex-direction:column;gap:.2rem;padding:.6rem .75rem;background:#fff;border:1px solid #cfd8dc;border-radius:8px;color:inherit;min-width:0}.adm-card .row1{display:flex;flex-wrap:wrap;align-items:baseline;gap:.25rem .5rem;min-width:0}.adm-card .name{font-weight:700;overflow-wrap:anywhere;min-width:0}.adm-card .sub{font-size:.85rem;color:#444;overflow-wrap:anywhere;min-width:0}.adm-card.unread{border-left:4px solid #d32f2f}.adm-card .unread-dot{flex:0 0 auto;align-self:center;width:10px;height:10px;border-radius:50%;background:#d32f2f}.adm-badge{font-size:.75rem;padding:.05rem .4rem;border-radius:4px;white-space:nowrap;background:#eceff1;color:#333}.adm-badge.on{background:#e8f5e9;color:#1b5e20}.adm-badge.off{background:#eceff1;color:#555}.adm-badge.warn{background:#fff3e0;color:#8a4b00}.adm-badge.role{background:var(--admin-bg);color:var(--admin)}.adm-field{display:flex;flex-direction:column;gap:.25rem;min-width:0}.adm-field>.label{font-weight:600;font-size:.9rem}.adm-field input[type=text],.adm-field input[type=email],.adm-field input[type=search],.adm-field select{width:100%}.adm-form{display:flex;flex-direction:column;gap:.9rem}.adm-box{padding:.6rem .75rem;border:1px solid #cfd8dc;border-radius:8px;background:#fafafa;overflow-wrap:anywhere}.adm-dl{margin:0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:.25rem .75rem;font-size:.9rem}.adm-dl dt{color:#555;white-space:nowrap}.adm-dl dd{margin:0;overflow-wrap:anywhere;min-width:0}.adm-choice{display:flex;align-items:center;gap:.5rem;min-height:44px;overflow-wrap:anywhere}.adm-choice input{flex:0 0 auto;width:1.2rem;height:1.2rem}.adm-actions{position:sticky;bottom:0;z-index:2;display:flex;flex-direction:column;gap:.5rem;margin-top:1rem;padding:.6rem 0;background:#fff;border-top:1px solid #e0e0e0}.adm-actions button{width:100%;min-height:44px}button.adm-danger{background:#fff;color:#b3261e;border-color:#b3261e}.adm-error{margin:0;color:#c62828;overflow-wrap:anywhere}.adm-flash{margin:.5rem 0;padding:.5rem .75rem;border-radius:6px;background:#e8f5e9;color:#1b5e20;overflow-wrap:anywhere}.adm-flash.ng{background:#fff3e0;color:#8a4b00}.adm-warn{margin:0;font-size:.85rem;color:#8a4b00}.feedback-open{flex:0 0 auto;min-height:44px;padding:0 .4rem;border:1px solid #b0bec5;border-radius:999px;background:#fff;color:#01497f;font-size:.8rem;line-height:1;white-space:nowrap}
