*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1.5;color:#333;background:#f8fafc}.app{max-width:1400px;margin:0 auto;padding:20px;min-height:100vh}.app-header{text-align:center;margin-bottom:30px;padding-bottom:20px;border-bottom:2px solid #e2e8f0}.app-title{font-size:2rem;font-weight:700;color:#1e293b;margin-bottom:8px}.app-subtitle{color:#64748b;font-size:1rem}.container{display:grid;grid-template-columns:300px 1fr;gap:24px;align-items:start}.period-list{background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000001a;border:1px solid #e2e8f0}.period-list-header{padding:20px;border-bottom:1px solid #e2e8f0}.period-list-header h2{font-size:1.25rem;font-weight:600;color:#1e293b}.period-items{padding:8px}.period-item{margin-bottom:4px}.period-btn{width:100%;padding:12px 16px;border:none;border-radius:8px;background:#f8fafc;color:#475569;cursor:pointer;font-size:.9rem;text-align:left;transition:all .2s;border:1px solid transparent}.period-btn:hover:not(:disabled){background:#e2e8f0;border-color:#cbd5e1}.period-btn:disabled{background:#f1f5f9;color:#94a3b8;cursor:not-allowed}.period-btn.active{background:#3b82f6;color:#fff;border-color:#3b82f6}.period-btn.locked{background:#fef2f2;color:#dc2626;border-color:#fecaca}.locked-badge{background:#fef2f2;color:#dc2626;padding:4px 8px;border-radius:4px;font-size:.75rem;font-weight:500;border:1px solid #fecaca}.period-form{background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000001a;border:1px solid #e2e8f0;min-height:600px}.period-form-header{padding:20px;border-bottom:1px solid #e2e8f0;background:#f8fafc;border-radius:12px 12px 0 0}.period-form-title{font-size:1.25rem;font-weight:600;color:#1e293b;margin-bottom:8px}.period-info{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:12px;margin-top:12px}.info-item{display:flex;flex-direction:column;gap:4px}.info-label{font-size:.75rem;color:#64748b;font-weight:500}.info-value{font-size:.9rem;color:#1e293b;font-weight:500}.stages-grid{padding:20px;display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.stage-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:16px;transition:all .2s;min-height:120px;display:flex;flex-direction:column;justify-content:space-between}.stage-card:hover{border-color:#cbd5e1;box-shadow:0 2px 4px #0000000d}.stage-card:disabled,.stage-card.readonly{background:#f1f5f9;border-color:#e2e8f0;cursor:not-allowed}.stage-card.readonly:hover{border-color:#e2e8f0;box-shadow:none}.stage-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid #e2e8f0}.stage-level{font-size:1rem;font-weight:600;color:#1e293b}.stage-number{color:#64748b;font-size:.8rem;background:#e2e8f0;padding:2px 6px;border-radius:4px}.boss-display{width:100%;padding:8px 12px;border:1px solid #e2e8f0;border-radius:6px;font-size:.9rem;background:#fff;color:#1e293b;min-height:38px;display:flex;align-items:center}.boss-select{width:100%;padding:8px 12px;border:1px solid #cbd5e1;border-radius:6px;font-size:.9rem;background:#fff;color:#1e293b;cursor:pointer;min-height:38px}.boss-select:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.boss-select:disabled{background:#f8fafc;border-color:#e2e8f0;color:#64748b;cursor:not-allowed}.form-actions{padding:20px;border-top:1px solid #e2e8f0;background:#f8fafc;border-radius:0 0 12px 12px;display:flex;gap:12px;justify-content:flex-end}.btn{padding:10px 20px;border:none;border-radius:6px;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .2s}.btn-primary{background:#3b82f6;color:#fff}.btn-primary:hover:not(:disabled){background:#2563eb}.btn-primary:disabled{background:#93c5fd;cursor:not-allowed}.btn-secondary{background:#64748b;color:#fff}.btn-secondary:hover{background:#475569}.message{padding:12px 16px;border-radius:6px;margin:0 20px 20px;font-size:.9rem}.message.success{background:#dcfce7;color:#166534;border:1px solid #bbf7d0}.message.error{background:#fef2f2;color:#dc2626;border:1px solid #fecaca}.empty-state{padding:60px 20px;text-align:center;color:#64748b}.empty-state h3{font-size:1.1rem;margin-bottom:8px;color:#475569}@media(max-width:1024px){.container{grid-template-columns:1fr;gap:20px}.period-list{order:2}.period-form{order:1}}@media(max-width:768px){.stages-grid,.period-info{grid-template-columns:1fr}.app{padding:16px}}@media(max-width:1200px){.stages-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:900px){.stages-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.stages-grid,.period-info{grid-template-columns:1fr}}.period-btn{width:100%;padding:12px 16px;border:none;border-radius:8px;font-size:.9rem;text-align:left;transition:all .2s;border:2px solid transparent;position:relative}.period-btn.editable{background:#3b82f6;color:#fff}.period-btn.editable:hover{background:#2563eb}.period-btn.locked{background:#ef4444;color:#fff}.period-btn.locked:hover{background:#dc2626}.period-btn.active{border-color:#f59e0b;box-shadow:0 0 0 3px #f59e0b1a}.period-btn.active:after{content:"✓";position:absolute;top:8px;right:12px;background:#f59e0b;color:#fff;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700}.period-btn-content{display:flex;flex-direction:column;gap:4px}.period-btn-filename{font-weight:600;font-size:.9rem}.period-btn-meta{font-size:.75rem;opacity:.9;display:flex;flex-direction:column;gap:2px}
