:root{--bg:#f4f5f7;--surface:#fff;--text:#1c2024;--text-sub:#5f6873;--border:#dde1e6;--primary:#1f6feb;--primary-weak:#e7f0ff;--danger:#d1242f;--warn-bg:#fff4d6;--warn-text:#7a5200;--ok-bg:#e3f6e8;--ok-text:#1a6b34;--radius:12px;--tabbar-h:64px;color:var(--text);background:var(--bg);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;font-family:-apple-system,BlinkMacSystemFont,Hiragino Sans,Noto Sans JP,Segoe UI,sans-serif;font-size:16px;line-height:1.5}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.4}input,textarea,select{font:inherit;font-size:16px}h1,h2{margin:0}.app{max-width:640px;min-height:100dvh;margin:0 auto}.main{padding:0 16px calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom))}.page-header{z-index:5;padding:calc(12px + env(safe-area-inset-top)) 16px 12px;background:var(--bg);flex-direction:column;gap:10px;margin:0 -16px 12px;display:flex;position:sticky;top:0}.page-header h1{font-size:22px}.tabbar{z-index:10;background:var(--surface);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom);justify-content:center;display:flex;position:fixed;bottom:0;left:0;right:0}.tabbar-item{max-width:160px;height:var(--tabbar-h);color:var(--text-sub);background:0 0;border:0;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;font-size:12px;display:flex}.tabbar-item.is-active{color:var(--primary);font-weight:700}.tabbar-icon{font-size:22px;line-height:1}.segmented{background:#e4e7eb;border-radius:10px;padding:3px;display:flex}.segmented button{color:var(--text-sub);background:0 0;border:0;border-radius:8px;flex:1;padding:8px;font-weight:600}.segmented button.is-active{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #0000001f}.btn{border-radius:var(--radius);border:0;min-height:50px;padding:14px 16px;font-weight:700}.btn-block{width:100%;display:block}.btn-primary{background:var(--primary);color:#fff}.btn-danger{color:var(--danger);background:#fdecec}.btn-icon{width:40px;height:40px;color:var(--text-sub);background:0 0;border:0;border-radius:8px}.btn-icon:not(:disabled):active{background:#eef0f3}.hint{color:var(--text-sub);margin:8px 0;font-size:13px}.empty{background:var(--surface);border-radius:var(--radius);text-align:center;color:var(--text-sub);margin-bottom:16px;padding:32px 16px}.alert{border-radius:var(--radius);margin-bottom:12px;padding:10px 14px;font-size:14px}.alert-warn{background:var(--warn-bg);color:var(--warn-text)}.alert-ok{background:var(--ok-bg);color:var(--ok-text)}.text-danger{color:var(--danger)}.badge{vertical-align:2px;border-radius:999px;margin-left:6px;padding:1px 7px;font-size:11px;font-weight:700;display:inline-block}.list-sub .badge{margin-left:0}.badge-gray{color:var(--text-sub);background:#e4e7eb}.badge-line{color:#157a2f;background:#dff5e3}.badge-day{color:#8a5a00;background:#fff1d6}.badge-evening{color:#a3401b;background:#ffe4d9}.badge-night{color:#4636b8;background:#e6e4ff}.list{background:var(--surface);border-radius:var(--radius);margin:0 0 16px;padding:0;list-style:none;overflow:hidden}.list-item{border-bottom:1px solid var(--border);align-items:center;display:flex}.list-item:last-child{border-bottom:0}.list-item.is-muted .list-title{color:var(--text-sub)}.list-main{text-align:left;background:0 0;border:0;flex-direction:column;flex:1;gap:2px;min-width:0;padding:12px 16px;display:flex}.list-main:active{background:#f6f7f9}.list-title{font-size:17px;font-weight:700}.list-sub{color:var(--text-sub);flex-wrap:wrap;gap:4px 12px;font-size:13px;display:flex}.order-buttons{flex-direction:column;padding-right:6px;display:flex}.order-buttons .btn-icon{height:32px;font-size:12px}.filters{flex-direction:column;gap:8px;display:flex}.search{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);width:100%;padding:10px 14px}.chip-row{gap:6px;padding-bottom:2px;display:flex;overflow-x:auto}.chip{border:1px solid var(--border);background:var(--surface);border-radius:999px;flex:none;padding:6px 12px;font-size:14px}.chip.is-active{background:var(--text);border-color:var(--text);color:#fff}.sheet-backdrop{z-index:20;background:#0006;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--surface);border-radius:16px 16px 0 0;flex-direction:column;width:100%;max-width:640px;max-height:92dvh;display:flex}.sheet-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:12px 8px 8px 16px;display:flex}.sheet-header h2{font-size:18px}.sheet-body{flex:1;padding:16px;overflow-y:auto}.sheet-footer{padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--border)}.footer-buttons{gap:8px;display:flex}.footer-buttons .btn{flex:1}.field{flex-direction:column;gap:6px;margin-bottom:18px;display:flex}.field-label{font-size:14px;font-weight:700}.field input:not([type=checkbox]){border:1px solid var(--border);background:#fff;border-radius:10px;padding:12px}.field input:focus{outline:2px solid var(--primary);outline-offset:-1px}.field-error{color:var(--danger);font-size:13px}.field-switch{flex-direction:row;justify-content:space-between;align-items:center}.field-switch input{width:24px;height:24px}.choice-row{gap:8px;display:flex}.choice-wrap{flex-wrap:wrap}.choice{border:1px solid var(--border);background:#fff;border-radius:10px;flex:1;min-width:80px;min-height:44px;padding:8px 12px;font-weight:600}.choice.is-active{border-color:var(--primary);background:var(--primary-weak);color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary)}.danger-zone{border-top:1px dashed var(--border);margin-top:24px;padding-top:16px}.link-button{color:var(--primary);font-weight:700;font-size:inherit;background:0 0;border:0;padding:0 4px;text-decoration:underline}.date-nav{background:var(--surface);border-radius:var(--radius);justify-content:space-between;align-items:center;padding:4px;display:flex}.date-nav .btn-icon{font-size:26px;line-height:1}.date-nav-label{align-items:center;gap:4px;font-size:17px;font-weight:700;display:flex}.date-nav-label .link-button{font-size:13px}.badge-today{background:var(--primary-weak);color:var(--primary)}.summary{gap:8px;margin-bottom:16px;display:flex}.summary>div{background:var(--surface);border-radius:var(--radius);flex:1;padding:10px 14px;font-size:14px}.summary-num{margin-right:2px;font-size:26px;font-weight:800}.summary-label{color:var(--text-sub);margin-left:8px}.slot-section-title{border-left:4px solid var(--border);margin:0 0 8px 4px;padding-left:8px;font-size:15px}.slot-section-title.is-work{border-color:var(--primary)}.slot-section-title.is-am{border-color:#f0b232}.slot-section-title.is-pm{border-color:#6f5ee0}.slot-section-title.is-off{border-color:#9aa3ad}.slot-row-head{justify-content:space-between;align-items:center;display:flex}.count{background:var(--primary-weak);color:var(--primary);border-radius:999px;padding:2px 12px;font-size:15px;font-weight:800}.count.is-zero{color:var(--text-sub);background:#eef0f3}.slot-names{color:var(--text-sub);font-size:14px}.picker-tools{flex-direction:column;gap:8px;margin-bottom:12px;display:flex}.pick-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.pick-item{border:1px solid var(--border);border-radius:var(--radius);text-align:left;background:#fff;align-items:center;gap:12px;width:100%;min-height:52px;padding:10px 12px;display:flex}.pick-check{border:2px solid var(--border);color:#fff;border-radius:50%;flex:none;justify-content:center;align-items:center;width:26px;height:26px;font-weight:800;display:flex}.pick-body{flex-direction:column;min-width:0;display:flex}.pick-name{font-size:17px;font-weight:700}.pick-sub{color:var(--text-sub);font-size:13px}.pick-other{color:#b35c00;font-size:12px;font-weight:700}.mark-morning{color:#8a5a00;vertical-align:2px;background:#fff1d6;border-radius:4px;margin-left:3px;padding:2px 4px;font-size:10px;font-weight:800;line-height:1;display:inline-block}.assign-bar{margin-top:8px}.block-title{margin:4px 0 8px;font-size:15px}.check-list{flex-direction:column;gap:6px;margin:0 0 16px;padding:0;list-style:none;display:flex}.check-item{border-radius:var(--radius);background:#f6f7f9;padding:10px 12px;font-size:14px}.check-item.is-error{background:#fdecec}.check-head{align-items:flex-start;gap:8px;font-weight:600;display:flex}.check-icon{flex:none}.check-detail{color:var(--text-sub);font-weight:400}.problem{border-top:1px dashed #f0b4b4;margin:10px 0 0 26px;padding-top:8px}.problem-name{font-weight:700}.problem-slots{font-weight:400}.problem-actions{flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px;display:flex}.problem-actions .hint{width:100%;margin:0}.choice-sm{flex:none;min-width:0;min-height:38px;padding:6px 10px;font-size:14px}.driver-cards{flex-direction:column;gap:8px;display:flex}.driver-card{border:1px solid var(--border);border-radius:var(--radius);padding:12px}.driver-card-head{align-items:center;gap:4px;display:flex}.driver-card-head .count{margin-left:auto}.driver-card-lines{flex-direction:column;gap:6px;margin:8px 0 0;padding:0;font-size:14px;list-style:none;display:flex}.driver-card-lines li{flex-direction:column;display:flex}.driver-card-slot{font-weight:700}.finalized-note{margin:0}.finalized-footer{flex-direction:column;gap:8px;display:flex}.alert-info{background:var(--primary-weak);color:var(--primary);font-weight:700}.alert-sub{color:var(--text-sub);font-size:12px;font-weight:400;display:block}.message-cards{flex-direction:column;gap:12px;display:flex}.message-card{background:var(--surface);border-radius:var(--radius);border:2px solid #0000;flex-direction:column;gap:10px;padding:12px;display:flex}.message-card.is-sent{background:#f6fcf7;border-color:#9fd8ad}.message-text{border:1px solid var(--border);resize:vertical;background:#fbfbfc;border-radius:10px;width:100%;padding:10px 12px;line-height:1.6}.message-text:focus{outline:2px solid var(--primary);outline-offset:-1px;background:#fff}.count-check{border-radius:8px;padding:6px 10px;font-size:13px;font-weight:600}.count-check.is-ok{background:var(--ok-bg);color:var(--ok-text)}.count-check.is-ng{color:var(--danger);background:#fdecec}.message-actions{gap:8px;display:flex}.message-actions .btn{flex:1}.sent-toggle{color:var(--text);background:#eef0f3}.sent-toggle.is-on{color:#fff;background:#1a7f37}.reset-link{align-self:flex-start;padding:0;font-size:13px}.add-top{margin-bottom:12px}.choice-group{flex-direction:column;flex:none;align-items:center;min-width:72px;line-height:1.3;display:flex}.choice-sub{color:var(--text-sub);font-size:11px;font-weight:400}.choice-group.is-active .choice-sub{color:var(--primary)}.route-summary{background:#f6f7f9;border-radius:10px;flex-direction:column;gap:2px;margin:4px 0 0;padding:8px 12px;font-size:14px;list-style:none;display:flex}.slot-section-title .badge{margin-left:6px}.group-none{margin:0 0 16px 4px}.view-switch{margin-bottom:16px}.shift-input .segmented{margin-bottom:10px}.shift-counts{flex-wrap:wrap;gap:6px;margin-bottom:4px;display:flex}.shift-count{background:var(--surface);color:var(--text-sub);border-radius:999px;padding:3px 10px;font-size:13px}.shift-count strong{color:var(--primary);margin-left:2px}.shift-count.is-off strong{color:var(--text-sub)}.shift-count.is-unset strong{color:var(--danger)}.person-list{margin-bottom:16px}.person-row{border-bottom:1px solid var(--border);flex-direction:column;gap:6px;padding:10px 12px;display:flex}.person-row:last-child{border-bottom:0}.person-row.is-off .person-name{color:var(--text-sub)}.person-name{font-size:16px;font-weight:700}.person-chips{flex-wrap:wrap;align-items:center;gap:6px 12px;display:flex}.chip-group{align-items:center;gap:4px;display:flex}.chip-group-label{color:var(--text-sub);margin-right:2px;font-size:11px;font-weight:700}.time-chip{border:1px solid var(--border);background:#fff;border-radius:8px;min-height:38px;padding:6px 10px;font-size:14px;font-weight:600}.time-chip.is-on{background:var(--primary);border-color:var(--primary);color:#fff}.time-chip.is-off.is-on{background:#6b7480;border-color:#6b7480}.fill-box{flex-direction:column;gap:4px;display:flex}.fill-box .hint{margin:0}.fill-row{flex-wrap:wrap;align-items:center;gap:6px;margin:8px 0 0;display:flex}.fill-chip{border:1px dashed var(--primary);background:var(--primary-weak);color:var(--primary);border-radius:999px;padding:5px 12px;font-size:13px;font-weight:700}.driver-messages{flex-direction:column;gap:8px;margin-bottom:8px;display:flex}.driver-messages-head{align-items:center;gap:4px;padding:0 4px;font-size:18px;display:flex}.message-card-head{align-items:center;gap:4px;display:flex}.message-card-head .count{margin-left:auto}.block-badge{color:#fff;border-radius:6px;padding:2px 10px;font-size:14px;font-weight:800}.block-badge.is-am{background:#d98e04}.block-badge.is-pm{background:#6f5ee0}.message-card.is-empty{border:1px dashed var(--border);background:#f6f7f9}.message-card.is-empty .hint{margin:0}.segmented-4 button{padding:8px 2px;font-size:13px}.template-input,.field textarea{border:1px solid var(--border);resize:vertical;background:#fff;border-radius:10px;padding:10px 12px}.placeholder-help{background:var(--surface);border-radius:var(--radius);margin-bottom:18px;padding:10px 14px;font-size:13px}.placeholder-help ul{flex-direction:column;gap:2px;margin:6px 0 0;padding-left:0;list-style:none;display:flex}.placeholder-help code{background:var(--primary-weak);color:var(--primary);border-radius:4px;padding:0 4px;font-weight:700}.preview-head{justify-content:space-between;align-items:center;display:flex}.template-preview{border:1px solid var(--border);white-space:pre-wrap;background:#fbfbfc;border-radius:10px;margin:0;padding:10px 12px;font-family:inherit;font-size:14px;line-height:1.6}.template-buttons{margin-bottom:16px}.switch-hint{margin:-12px 0 18px}.assign-bar{flex-direction:column;gap:10px;display:flex}.assign-row{background:var(--surface);border-radius:var(--radius);flex-direction:column;gap:8px;padding:10px 12px;display:flex}.assign-row-head{justify-content:space-between;align-items:center;display:flex}.assign-status{font-size:13px;font-weight:700}.text-ok{color:var(--ok-text)}.text-warn{color:var(--warn-text)}.text-sub{color:var(--text-sub)}.segment-sub{color:var(--text-sub);font-size:11px;font-weight:400;display:block}.carry-note{color:var(--text);font-weight:400}.carry-button{min-height:42px;margin-top:8px;padding:8px 12px}.input-with-button{gap:6px;display:flex}.input-with-button input{flex:1;min-width:0}.btn-small{flex:none;min-height:0;padding:8px 10px;font-size:13px}.romaji-bulk{flex-direction:column;align-items:flex-start;gap:6px;display:flex}.confirm-backdrop{z-index:50;background:#00000080;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.confirm-box{background:var(--surface);border-radius:16px;width:100%;max-width:360px;padding:20px;box-shadow:0 10px 30px #00000040}.confirm-title{margin-bottom:8px;font-size:18px}.confirm-message{color:var(--text-sub);white-space:pre-wrap;margin:0 0 16px;font-size:14px}.confirm-buttons{gap:8px;display:flex}.confirm-buttons .btn{flex:1}.btn-danger-solid{background:var(--danger);color:#fff}.data-open{margin-top:24px}.data-buttons{margin-bottom:16px}:root{--bg:#eef7fc;--text:#10283a;--text-sub:#557085;--border:#d9e8f2;--primary:#0b93d4;--primary-weak:#e1f4fd;--navy:#0a6fa3;--grad:linear-gradient(135deg, #0a86c4 0%, #19a9e6 55%, #5fd0f5 100%);--shadow-sm:0 1px 2px #0a3c5a0d, 0 2px 6px #0a3c5a12;--shadow-md:0 6px 20px #0a3c5a1a;--radius:14px;--tabbar-h:60px}body{background:var(--bg)}.main{padding-bottom:calc(var(--tabbar-h) + 40px + env(safe-area-inset-bottom))}.page-header{background:var(--grad);color:#fff;padding:calc(16px + env(safe-area-inset-top)) 16px 14px;border-radius:0 0 22px 22px;margin:0 -16px 16px;box-shadow:0 8px 24px #0a86c440}.page-header h1{letter-spacing:.06em;color:#fff;text-shadow:0 1px 2px #003c6440;font-size:20px;font-weight:800}.page-header .date-nav{color:#fff;background:#ffffff24}.page-header .date-nav .btn-icon,.page-header .date-nav .link-button{color:#fff}.page-header .badge-today{color:var(--primary);background:#fff}.page-header .segmented{background:#ffffff24}.page-header .segmented button{color:#ffffffd9}.page-header .segmented button.is-active{color:var(--navy);background:#fff;box-shadow:0 2px 8px #00000026}.page-header .segment-sub{color:inherit;opacity:.75}.view-switch,.shift-input .segmented{background:var(--surface);box-shadow:var(--shadow-sm);border-radius:12px;padding:4px}.view-switch button.is-active,.shift-input .segmented button.is-active{background:var(--grad);color:#fff;box-shadow:0 3px 10px #0a86c44d}.list,.empty,.summary>div,.assign-row,.message-card,.placeholder-help,.shift-count{box-shadow:var(--shadow-sm)}.list,.empty,.summary>div,.assign-row,.message-card{border-radius:var(--radius)}.summary>div{padding:12px 16px}.summary-num{color:var(--navy);letter-spacing:-.02em}.list-item{border-bottom-color:#eef0f5}.list-title{letter-spacing:.01em}.slot-section-title{letter-spacing:.08em;color:var(--text-sub);border-left:0;align-items:center;gap:8px;padding-left:2px;font-size:13px;font-weight:800;display:flex}.slot-section-title:before{content:"";background:var(--primary);border-radius:3px;flex:none;width:10px;height:10px}.slot-section-title.is-am:before{background:#f59f00}.slot-section-title.is-pm:before{background:#7048e8}.slot-section-title.is-off:before{background:#adb5bd}.block-title{letter-spacing:.04em;color:var(--navy);font-size:14px}.btn{letter-spacing:.02em;border-radius:12px}.btn-primary{background:var(--grad);box-shadow:0 6px 16px #0b93d44d}.btn-primary:disabled{box-shadow:none}.btn-secondary{background:var(--primary-weak);color:var(--primary)}.btn:not(:disabled):active{transform:translateY(1px)}.count{background:var(--primary-weak);color:var(--primary)}.choice{border-color:var(--border)}.choice.is-active{background:var(--primary-weak);border-color:var(--primary);color:var(--primary)}.sheet{border-radius:24px 24px 0 0}.sheet-header h2{letter-spacing:.02em;font-weight:800}.pick-item{box-shadow:var(--shadow-sm);border-color:#0000}.pick-item.is-selected{border-color:var(--primary);background:var(--primary-weak)}.is-selected .pick-check,.time-chip.is-on{background:var(--grad);border-color:#0000}.tabbar{width:calc(100% - 24px);max-width:616px;left:50%;right:auto;bottom:calc(10px + env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(12px);background:#fffffff0;border:0;border-radius:22px;padding:0 6px;transform:translate(-50%);box-shadow:0 10px 30px #0a3c5a29}.tabbar-item{height:var(--tabbar-h);color:#86a0b3;gap:3px;font-size:11px;font-weight:600}.tabbar-icon{border-radius:12px;justify-content:center;align-items:center;width:48px;height:30px;transition:background .15s;display:flex}.tabbar-icon svg{width:22px;height:22px}.tabbar-item.is-active{color:var(--primary)}.tabbar-item.is-active .tabbar-icon{background:var(--primary-weak)}.date-picker{cursor:pointer;border-radius:10px;align-items:center;gap:6px;padding:4px 8px;display:inline-flex;position:relative}.date-picker:active{background:#ffffff26}.date-picker-icon{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;opacity:.9;width:18px;height:18px}.date-picker-input{opacity:0;cursor:pointer;appearance:none;border:0;width:100%;height:100%;margin:0;padding:0;position:absolute;inset:0}.date-picker-input::-webkit-calendar-picker-indicator{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.badge-wa{color:#6f3fd1;background:#efe7ff}.send-app{color:#fff;justify-content:center;align-items:center;font-size:16px;text-decoration:none;display:flex}.send-app.is-line{background:#06c755;box-shadow:0 6px 16px #06c7554d}.send-app.is-wa{background:#6f3fd1;box-shadow:0 6px 16px #6f3fd14d}.send-hint{margin:-4px 0 0}
