:root{--primary:#4f46e5;--primary-strong:#4338ca;--primary-soft:#eef2ff;--accent:#06b6d4;--bg:#f6f7fb;--surface:#fff;--surface-2:#f1f2f8;--text:#1a1b2e;--text-muted:#6b6e82;--border:#e4e6ef;--danger:#dc2626;--success:#16a34a;--radius:14px;--radius-lg:20px;--shadow:0 10px 30px #1a1b2e14;--shadow-lg:0 18px 48px #1a1b2e29;--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif}.dark{--bg:#0e0f1c;--surface:#181a2a;--surface-2:#20233a;--text:#edeef7;--text-muted:#9a9db4;--border:#2a2d45;--primary-soft:#262a52;--shadow:0 10px 30px #0006;--shadow-lg:0 18px 48px #0000008c}*{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100%}body{font-family:var(--font-sans);background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;line-height:1.5}button{cursor:pointer;color:inherit;background:0 0;border:none;font-family:inherit}input{font-family:inherit}.splash{background:var(--bg);flex-direction:column;justify-content:center;align-items:center;height:100vh;display:flex}.splash-logo{width:76px;height:76px;box-shadow:var(--shadow-lg);border-radius:18px;animation:1.6s ease-in-out infinite pulse}.splash-title{color:var(--primary);margin-top:18px;font-size:18px;font-weight:700}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.06)}}.btn{border-radius:var(--radius);justify-content:center;align-items:center;gap:10px;width:100%;padding:14px 18px;font-size:16px;font-weight:600;transition:transform 80ms,opacity .15s;display:flex}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-strong)}.btn-google{background:var(--surface);color:var(--text);border:1px solid var(--border)}.btn-google:hover{background:var(--surface-2)}.auth{background:var(--bg);justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.auth-card{background:var(--surface);border-radius:var(--radius-lg);width:100%;max-width:400px;box-shadow:var(--shadow);flex-direction:column;gap:18px;padding:32px 24px;display:flex}.auth-brand{text-align:center;flex-direction:column;align-items:center;gap:10px;display:flex}.auth-logo{width:64px;height:64px;box-shadow:var(--shadow);border-radius:16px}.auth-title{letter-spacing:-.02em;font-size:24px;font-weight:800}.auth-subtitle{color:var(--text-muted);font-size:14px}.auth-divider{color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;align-items:center;gap:12px;font-size:12px;display:flex}.auth-divider:before,.auth-divider:after{content:"";background:var(--border);flex:1;height:1px}.field{flex-direction:column;gap:6px;display:flex}.field-label{color:var(--text-muted);font-size:13px;font-weight:600}.field-input{border-radius:var(--radius);border:1px solid var(--border);background:var(--surface-2);color:var(--text);outline:none;padding:13px 14px;font-size:16px;transition:border-color .15s,box-shadow .15s}.field-input:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}.auth-error{border-radius:var(--radius);color:var(--danger);background:#fef2f2;border:1px solid #fecaca;padding:10px 14px;font-size:14px}.dark .auth-error{background:#2a1518;border-color:#4a262b}.auth-switch{text-align:center;color:var(--text-muted);font-size:14px}.auth-link{color:var(--primary);font-weight:600}.app{background:var(--bg);flex-direction:column;height:100vh;display:flex}.header{background:var(--surface);border-bottom:1px solid var(--border);align-items:center;gap:12px;padding:14px 16px;display:flex}.header-logo{border-radius:10px;width:36px;height:36px}.header-text{flex:1;min-width:0}.header-title{letter-spacing:-.01em;font-size:18px;font-weight:800}.header-sub{color:var(--text-muted);font-size:12px;font-weight:500}.header-logout:hover{color:var(--danger);background:#fef2f2}.dark .header-logout:hover{background:#2a1518}.icon-btn{width:40px;height:40px;color:var(--text-muted);border-radius:12px;justify-content:center;align-items:center;transition:background .15s;display:flex}.icon-btn:hover{background:var(--surface-2)}.content{flex:1;padding:16px;overflow-y:auto}.card{background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow);padding:20px}.card-title{margin-bottom:6px;font-size:17px;font-weight:700}.card-text{color:var(--text-muted);font-size:14px}.hero{text-align:center;flex-direction:column;align-items:center;gap:12px;padding:32px 20px;display:flex}.hero-icon{background:var(--primary-soft);width:72px;height:72px;color:var(--primary);border-radius:20px;justify-content:center;align-items:center;display:flex}.hero h1{letter-spacing:-.02em;font-size:22px;font-weight:800}.hero p{color:var(--text-muted);max-width:320px;font-size:15px}.steps{flex-direction:column;gap:10px;margin-top:8px;display:flex}.step{text-align:left;background:var(--surface-2);border-radius:var(--radius);align-items:center;gap:12px;padding:12px 14px;font-size:14px;display:flex}.step-num{background:var(--primary);color:#fff;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:26px;height:26px;font-size:13px;font-weight:700;display:flex}.badge{background:var(--primary-soft);color:var(--primary);border-radius:999px;align-items:center;padding:3px 10px;font-size:12px;font-weight:600;display:inline-flex}.bottom-nav{border-top:1px solid var(--border);background:var(--surface);padding-bottom:env(safe-area-inset-bottom);display:flex}.nav-item{color:var(--text-muted);flex-direction:column;flex:1;align-items:center;gap:3px;padding:10px 0 12px;font-size:11px;font-weight:600;display:flex}.nav-item.active{color:var(--primary)}.profile{align-items:center;gap:14px;margin-bottom:16px;display:flex}.profile-avatar{background:var(--primary);color:#fff;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:56px;height:56px;font-size:22px;font-weight:700;display:flex}.profile-name{font-size:18px;font-weight:700}.profile-email{color:var(--text-muted);font-size:13px}.stack{flex-direction:column;gap:12px;display:flex}.plan-toolbar{justify-content:space-between;align-items:center;gap:8px;display:flex}.view-toggle{background:var(--surface-2);border-radius:var(--radius);padding:3px;display:flex}.view-btn{color:var(--text-muted);border-radius:10px;padding:7px 11px;font-size:12px;font-weight:600}.view-btn.active{background:var(--surface);color:var(--primary);box-shadow:var(--shadow)}.plan-nav{flex:1;justify-content:center;align-items:center;gap:4px;display:flex}.plan-title{text-align:center;min-width:120px;font-size:15px;font-weight:700}.calendar{background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow);overflow:hidden}.cal-weekdays{border-bottom:1px solid var(--border);background:var(--surface-2);grid-template-columns:repeat(7,1fr);display:grid}.cal-weekday{text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);justify-content:center;align-items:center;padding:8px 0;font-size:11px;font-weight:700;display:flex}.cal-grid{grid-template-columns:repeat(7,1fr);display:grid}.cal-day{border-right:1px solid var(--border);border-bottom:1px solid var(--border);text-align:left;background:0 0;flex-direction:column;align-items:stretch;gap:3px;min-height:74px;padding:4px 3px;display:flex}.cal-day:nth-child(7n){border-right:none}.cal-day.dim{opacity:.4}.cal-day.today .cal-day-num{background:var(--primary);color:#fff}.cal-day-num{border-radius:50%;justify-content:center;align-items:center;width:22px;height:22px;font-size:12px;font-weight:600;display:flex}.cal-day-shifts{flex-direction:column;gap:2px;width:100%;display:flex}.cal-chip{color:#fff;white-space:nowrap;text-overflow:ellipsis;text-align:left;border-radius:5px;align-items:center;gap:3px;width:100%;padding:2px 4px;font-size:9px;font-weight:600;line-height:1.2;display:flex;overflow:hidden}.cal-more{color:var(--text-muted);padding-left:2px;font-size:10px;font-weight:600}.cal-week{grid-template-columns:repeat(7,1fr);display:grid}.cal-weekday-col{border-right:1px solid var(--border);text-align:left;background:0 0;flex-direction:column;gap:4px;min-height:140px;padding:6px 3px;display:flex}.cal-weekday-col:last-child{border-right:none}.cal-weekday-col.today{background:var(--primary-soft)}.cal-weekday-head{flex-direction:column;align-items:center;gap:2px;display:flex}.cal-weekday-name{text-transform:uppercase;color:var(--text-muted);font-size:10px;font-weight:700}.cal-weekday-num{font-size:14px;font-weight:700}.cal-weekday-col.today .cal-weekday-num{color:var(--primary)}.cal-weekday-shifts{flex-direction:column;gap:3px;display:flex}.cal-weekday-shifts .cal-chip{flex-direction:column;align-items:flex-start;gap:1px;font-size:9px}.cal-chip .chip-sub{opacity:.85;font-size:8px;font-weight:500}.cal-empty{color:var(--text-muted);text-align:center;opacity:.4;font-size:14px}.legend{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);flex-direction:column;gap:8px;padding:14px 16px;display:flex}.legend-title{color:var(--text-muted);align-items:center;gap:6px;font-size:13px;font-weight:700;display:flex}.legend-items{flex-wrap:wrap;gap:8px 14px;display:flex}.legend-item{align-items:center;gap:5px;font-size:12px;font-weight:600;display:flex}.legend-dot{border-radius:3px;flex-shrink:0;width:10px;height:10px}.modal-backdrop{z-index:100;background:#00000080;justify-content:center;align-items:flex-end;padding:16px;display:flex;position:fixed;inset:0}@media (width>=560px){.modal-backdrop{align-items:center}}.modal{background:var(--surface);border-radius:var(--radius-lg);width:100%;max-width:480px;max-height:88vh;box-shadow:var(--shadow-lg);flex-direction:column;display:flex}.modal-head{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:16px 20px;display:flex}.modal-title{letter-spacing:-.01em;font-size:18px;font-weight:800}.modal-body{flex-direction:column;gap:16px;padding:16px 20px 20px;display:flex;overflow-y:auto}.modal-subtitle{color:var(--text-muted);margin-top:-6px;font-size:14px;font-weight:600}.shifttype-list{flex-direction:column;gap:8px;display:flex}.shifttype-row{background:var(--surface-2);border-radius:var(--radius);align-items:center;gap:10px;padding:10px 12px;display:flex}.shifttype-dot{border-radius:4px;flex-shrink:0;width:12px;height:12px}.shifttype-icon{font-size:18px}.shifttype-info{flex:1}.shifttype-name{font-size:15px;font-weight:700}.shifttype-time{color:var(--text-muted);font-size:12px}.icon-btn.danger{color:var(--danger)}.shifttype-form{flex-direction:column;gap:14px;display:flex}.form-title{color:var(--primary);font-size:15px;font-weight:700}.color-row,.icon-row{flex-wrap:wrap;gap:8px;display:flex}.color-swatch{border:2px solid #0000;border-radius:10px;width:32px;height:32px}.color-swatch.selected{border-color:var(--text);box-shadow:0 0 0 2px var(--surface), 0 0 0 4px var(--primary)}.icon-swatch{background:var(--surface-2);border:2px solid #0000;border-radius:10px;justify-content:center;align-items:center;width:38px;height:38px;font-size:20px;display:flex}.icon-swatch.selected{border-color:var(--primary)}.time-row{align-items:center;gap:10px;display:flex}.time-row .field-input{flex:1}.time-sep{color:var(--text-muted);font-weight:700}.form-actions{gap:10px;display:flex}.form-actions .btn{flex:1}.btn-danger{color:var(--danger);background:#fef2f2;border:1px solid #fecaca}.dark .btn-danger{background:#2a1518;border-color:#4a262b}.shifttype-grid{grid-template-columns:1fr 1fr;gap:8px;display:grid}.shifttype-chip{border-radius:var(--radius);border:2px solid var(--border);background:var(--surface-2);text-align:left;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;display:flex}.shifttype-chip.selected,.shifttype-chip:hover{border-color:var(--primary)}.shifttype-chip:active{transform:scale(.97)}.shifttype-chip:disabled{opacity:.6;cursor:not-allowed}.chip-icon{font-size:20px}.chip-name{font-size:14px;font-weight:700}.chip-time{color:var(--text-muted);font-size:11px}.plan-navbar{align-items:center;gap:8px;display:flex}.plan-navbar .plan-nav{flex:1}.filter-btn{color:var(--text-muted);background:var(--surface-2);border-radius:999px;align-items:center;gap:6px;padding:7px 12px;font-size:13px;font-weight:600;transition:background .15s,color .15s;display:flex}.filter-btn.active{background:var(--primary);color:#fff}.cal-chip.mine{box-shadow:inset 0 0 0 2px #fffffff2}.agenda{padding:6px 0}.agenda-empty{text-align:center;flex-direction:column;align-items:center;gap:4px;padding:36px 20px;display:flex}.agenda-day-head{justify-content:space-between;align-items:center;padding:10px 14px 6px;display:flex}.agenda-day-date{align-items:center;gap:8px;display:flex}.agenda-day-name{text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);font-size:11px;font-weight:700}.agenda-day-num{font-size:14px;font-weight:700}.agenda-row{text-align:left;border-top:1px solid var(--border);align-items:center;gap:10px;width:100%;padding:10px 14px;transition:background .12s;display:flex}.agenda-row:hover,.agenda-row:active{background:var(--surface-2)}.agenda-dot{border-radius:3px;flex-shrink:0;width:10px;height:10px}.agenda-main{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.agenda-title{font-size:14px;font-weight:700}.agenda-meta{color:var(--text-muted);white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.badge-mine{background:var(--primary);color:#fff;flex-shrink:0}.legend-hint{color:var(--text-muted);border-top:1px solid var(--border);padding-top:8px;font-size:12px}.day-shifts{flex-direction:column;gap:6px;display:flex}.day-shifts-title{text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);font-size:12px;font-weight:700}.day-shift{background:var(--surface-2);border-radius:var(--radius);text-align:left;align-items:center;gap:10px;padding:8px 10px;transition:background .12s;display:flex}.day-shift:hover{background:var(--border)}.day-shift-main{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.day-shift-name{font-size:14px;font-weight:700}.day-shift-time{color:var(--text-muted);white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.btn-danger.confirm,.dark .btn-danger.confirm{background:var(--danger);color:#fff;border-color:var(--danger)}
